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
assertEquals( ((IASTFunction)node.getCompletionScope()).getName(), "foo" );
assertEquals( ((IASTFunction)node.getCompletionScope()).getName(), "foo" );
public void testMemberCompletion_Arrow() throws Exception { StringWriter writer = new StringWriter(); writer.write( "class A {" ); writer.write( " public: void aPublicBaseMethod();" ); writer.write( " private: void aPrivateBaseMethod();" ); writer.write( "};" ); writer.write( "class B : public A {" ); writer.write( " public: void aMethod();" ); writer.write( "};" ); writer.write( "void foo(){" ); writer.write( " B * b = new B();" ); writer.write( " b-> \n" ); String code = writer.toString(); int index = code.indexOf( "b->" ); IASTCompletionNode node = parse( code, index + 3 ); assertNotNull(node); assertEquals( node.getCompletionPrefix(), "" ); assertEquals(node.getCompletionKind(), IASTCompletionNode.CompletionKind.MEMBER_REFERENCE); assertTrue(node.getCompletionScope() instanceof IASTFunction ); assertEquals( ((IASTFunction)node.getCompletionScope()).getName(), "foo" ); assertTrue(node.getCompletionContext() instanceof IASTVariable ); assertEquals( ((IASTVariable)node.getCompletionContext()).getName(), "b" ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d730ff0f947954910a1a59eb5fe977d0983fd23e/CompletionParseTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompletionParseTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4419, 11238, 67, 18691, 1435, 1216, 1185, 202, 95, 202, 202, 780, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 12, 315, 1106, 432, 12528, 11272, 202, 202, 6299, 18, 2626, 12, 315, 282, 1071, 30, 282, 918, 279, 4782, 2171, 1305, 26994, 11272, 202, 202, 6299, 18, 2626, 12, 315, 282, 3238, 30, 225, 918, 279, 6014, 2171, 1305, 26994, 11272, 202, 202, 6299, 18, 2626, 12, 27342, 4868, 11272, 202, 202, 6299, 18, 2626, 12, 315, 1106, 605, 294, 1071, 432, 12528, 11272, 202, 202, 6299, 18, 2626, 12, 315, 282, 1071, 30, 282, 918, 279, 1305, 26994, 11272, 202, 202, 6299, 18, 2626, 12, 27342, 4868, 11272, 9506, 202, 6299, 18, 2626, 12, 315, 6459, 8431, 1435, 16711, 11272, 9506, 202, 6299, 18, 2626, 12, 315, 282, 605, 380, 324, 273, 394, 605, 26994, 11272, 9506, 202, 6299, 18, 2626, 12, 315, 282, 324, 2122, 521, 82, 6, 11272, 9506, 202, 780, 981, 273, 2633, 18, 10492, 5621, 202, 202, 474, 770, 273, 981, 18, 31806, 12, 315, 70, 2122, 6, 11272, 9506, 202, 45, 9053, 11238, 907, 756, 273, 1109, 12, 981, 16, 770, 397, 890, 11272, 202, 202, 11231, 5962, 12, 2159, 1769, 202, 202, 11231, 8867, 12, 756, 18, 588, 11238, 2244, 9334, 1408, 11272, 9506, 202, 11231, 8867, 12, 2159, 18, 588, 11238, 5677, 9334, 467, 9053, 11238, 907, 18, 11238, 5677, 18, 19630, 67, 14617, 1769, 202, 202, 11231, 5510, 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, 225, 202, 482, 918, 1842, 4419, 11238, 67, 18691, 1435, 1216, 1185, 202, 95, 202, 202, 780, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 12, 315, 1106, 432, 12528, 11272, 202, 202, 6299, 18, 2626, 12, 315, 282, 1071, 30, 282, 918, 279, 4782, 2171, 1305, 26994, 11272, 202, 202, 6299, 18, 2626, 12, 315, 282, 3238, 30, 225, 918, 279, 6014, 2171, 1305, 26994, 11272, 202, 202, 6299, 18, 2626, 12, 27342, 4868, 11272, 202, 202, 6299, 18, 2626, 12, 315, 1106, 605, 294, 1071, 432, 12528, 11272, 202, 202, 6299, 18, 2626, 12, 315, 282, 1071, 30, 282, 918, 279, 1305, 26994, 11272, 202, 202, 6299, 18, 2626, 12, 27342, 4868, 11272, 9506, 2 ]
if (rs.wasNull()) {
/*if (rs.wasNull()) {
public Document getUserLayout (IPerson person, UserProfile profile) throws Exception { int userId = person.getID(); int realUserId = userId; ResultSet rs; Connection con = RDBMServices.getConnection(); RDBMServices.setAutoCommit(con, false); // May speed things up, can't hurt try { DocumentImpl doc = new DocumentImpl(); Element root = doc.createElement("layout"); root.setAttribute("ID","root"); doc.putIdentifier("root",root); 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(); LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + subSelectString); int layoutId; rs = stmt.executeQuery(subSelectString); try { rs.next(); layoutId = rs.getInt(1); if (rs.wasNull()) { layoutId = 0; } } 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; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { 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; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); int nextStructId; rs = stmt.executeQuery(sQuery); try { rs.next(); nextStructId = rs.getInt(1); } finally { rs.close(); } sQuery = "UPDATE UP_USER SET NEXT_STRUCT_ID=" + nextStructId + " WHERE USER_ID=" + realUserId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); /* insert row(s) into up_ss_user_atts */ sQuery = "DELETE FROM UP_SS_USER_ATTS WHERE USER_ID=" + realUserId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); // modifed INSERT INTO SELECT statement for MySQL support 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.getInt("STRUCT_ID")+"," + "'"+rs.getString("PARAM_NAME")+"'," + rs.getInt("PARAM_TYPE")+"," + "'"+rs.getString("PARAM_VAL")+"')";// old code// String Insert = "INSERT INTO UP_SS_USER_ATTS (USER_ID, PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL) "+// " SELECT "+realUserId+", USUA.PROFILE_ID, USUA.SS_ID, USUA.SS_TYPE, USUA.STRUCT_ID, USUA.PARAM_NAME, USUA.PARAM_TYPE, USUA.PARAM_VAL "+// " FROM UP_SS_USER_ATTS USUA WHERE USUA.USER_ID="+userId; LogService.log(LogService.DEBUG, "RDBMUserLayoutStore::setUserLayout(): " + Insert); insertStmt.executeUpdate(Insert); } RDBMServices.commit(con); // Make sure it appears in the store } int firstStructId = -1; String sQuery = "SELECT INIT_STRUCT_ID FROM UP_USER_LAYOUT WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { rs.next(); firstStructId = rs.getInt(1); } finally { rs.close(); } String sql = "SELECT ULS.STRUCT_ID,ULS.NEXT_STRUCT_ID,ULS.CHLD_STRUCT_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,"+ "ULS.UNREMOVABLE,ULS.IMMUTABLE"; if (RDBMServices.supportsOuterJoins) { sql += ",USP.STRUCT_PARM_NM,USP.STRUCT_PARM_VAL FROM " + RDBMServices.joinQuery.getQuery("layout"); } else { sql += " FROM UP_LAYOUT_STRUCT ULS WHERE "; } sql += " ULS.USER_ID=" + userId + " AND ULS.LAYOUT_ID=" + layoutId + " ORDER BY ULS.STRUCT_ID"; HashMap layoutStructure = new HashMap(); ArrayList chanIds = new ArrayList(); LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); StringBuffer structParms = new StringBuffer(); rs = stmt.executeQuery(sql); try { int lastStructId = 0; LayoutStructure ls = null; 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 chanId = rs.getInt(4); if (rs.wasNull()) { chanId = 0; } ls = new LayoutStructure(structId, nextId, childId, chanId, rs.getString(7),rs.getString(8),rs.getString(9)); layoutStructure.put(new Integer(structId), ls); lastStructId = structId; if (!ls.isChannel()) { ls.addFolderData(rs.getString(5), rs.getString(6)); } else { chanIds.add(new Integer(chanId)); // For later } if (RDBMServices.supportsOuterJoins) { do { String name = rs.getString(10); String value = rs.getString(11); // Oracle JDBC requires us to do this for longs if (name != null) { // may not be there because of the join ls.addParameter(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 if (ls.isChannel()) { structParms.append(sepChar + ls.chanId); sepChar = ","; } if (rs.next()) { structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } else { break readLayout; } } } // while } } 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) { RDBMServices.PreparedStatement pstmtChannel = crsdb.getChannelPstmt(con); try { RDBMServices.PreparedStatement pstmtChannelParm = crsdb.getChannelParmPstmt(con); try { // Pre-prime the channel pump for (int i = 0; i < chanIds.size(); i++) { int chanId = ((Integer) chanIds.get(i)).intValue(); crsdb.getChannel(chanId, true, pstmtChannel, pstmtChannelParm); if (DEBUG > 1) { System.err.println("Precached " + chanId); } } } finally { if (pstmtChannelParm != null) { pstmtChannelParm.close(); } } } finally { pstmtChannel.close(); } chanIds.clear(); } if (!RDBMServices.supportsOuterJoins) { // Pick up structure parameters sql = "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"; LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): " + sql); rs = stmt.executeQuery(sql); try { if (rs.next()) { int structId = rs.getInt(1); readParm: while(true) { LayoutStructure ls = (LayoutStructure)layoutStructure.get(new Integer(structId)); int lastStructId = structId; do { ls.addParameter(rs.getString(2), rs.getString(3)); if (!rs.next()) { break readParm; } } while ((structId = rs.getInt(1)) == lastStructId); } } } finally { rs.close(); } } if (layoutStructure.size() > 0) { // We have a layout to work with createLayout(layoutStructure, doc, root, firstStructId); layoutStructure.clear(); long stopTime = System.currentTimeMillis(); LogService.instance().log(LogService.DEBUG, "RDBMUserLayoutStore::getUserLayout(): Layout document for user " + userId + " took " + (stopTime - startTime) + " milliseconds to create"); doc.appendChild(root); if (DEBUG > 1) { System.err.println("--> created document"); dumpDoc(doc, ""); System.err.println("<--"); } } } finally { stmt.close(); insertStmt.close(); } return doc; } finally { RDBMServices.releaseConnection(con); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/3e55c7763f1ad0bfc97661dcd35356e72d5f195e/RDBMUserLayoutStore.java/buggy/source/org/jasig/portal/RDBMUserLayoutStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 2177, 4029, 3042, 13, 1216, 1185, 288, 377, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 2863, 10502, 273, 6249, 31, 565, 10842, 3597, 31, 565, 4050, 356, 273, 534, 2290, 49, 5676, 18, 588, 1952, 5621, 565, 534, 2290, 49, 5676, 18, 542, 4965, 5580, 12, 591, 16, 629, 1769, 1850, 368, 16734, 8632, 9198, 731, 16, 848, 1404, 366, 295, 88, 565, 775, 288, 1377, 4319, 2828, 997, 273, 394, 4319, 2828, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 1365, 18, 542, 1499, 2932, 734, 15937, 3085, 8863, 1377, 997, 18, 458, 3004, 2932, 3085, 3113, 3085, 1769, 1377, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 1377, 368, 432, 9004, 3021, 353, 3577, 1427, 487, 486, 358, 1554, 586, 73, 598, 10842, 1377, 368, 434, 6317, 1399, 364, 6218, 1377, 8056, 2243, 8952, 273, 356, 18, 2640, 3406, 5621, 1377, 775, 288, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 3639, 368, 18011, 16, 732, 1608, 358, 2917, 1542, 3511, 16164, 1427, 1846, 848, 2537, 741, 333, 30, 3639, 368, 3639, 509, 3511, 548, 33, 5040, 18, 588, 3744, 548, 5621, 3639, 368, 1496, 364, 2037, 30, 3639, 514, 720, 3391, 780, 273, 315, 4803, 25239, 5069, 67, 734, 4571, 7376, 67, 4714, 67, 22462, 4852, 7443, 67, 734, 1546, 397, 6249, 397, 315, 4116, 4629, 3776, 67, 734, 1546, 397, 3042, 18, 588, 4029, 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, 4319, 4735, 3744, 261, 2579, 3565, 6175, 16, 2177, 4029, 3042, 13, 1216, 1185, 288, 377, 509, 6249, 273, 6175, 18, 588, 734, 5621, 565, 509, 2863, 10502, 273, 6249, 31, 565, 10842, 3597, 31, 565, 4050, 356, 273, 534, 2290, 49, 5676, 18, 588, 1952, 5621, 565, 534, 2290, 49, 5676, 18, 542, 4965, 5580, 12, 591, 16, 629, 1769, 1850, 368, 16734, 8632, 9198, 731, 16, 848, 1404, 366, 295, 88, 565, 775, 288, 1377, 4319, 2828, 997, 273, 394, 4319, 2828, 5621, 1377, 3010, 1365, 273, 997, 18, 2640, 1046, 2932, 6741, 8863, 1377, 1365, 18, 542, 1499, 2932, 734, 15937, 3085, 8863, 1377, 997, 18, 458, 3004, 2932, 3085, 3113, 3085, 1769, 1377, 2 ]
} else if (xsd >=0) {
} else if (xsd >= 0) {
public void processListService(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { String filePart = req.getRequestURL().toString(); String serviceName = filePart.substring(filePart.lastIndexOf("/") + 1, filePart.length()); HashMap services = configContext.getAxisConfiguration().getServices(); String query = req.getQueryString(); int wsdl2 = query.indexOf("wsdl2"); int wsdl = query.indexOf("wsdl"); int xsd = query.indexOf("xsd"); if ((services != null) && !services.isEmpty()) { Object serviceObj = services.get(serviceName); if (serviceObj != null) { if (wsdl2 >=0) { OutputStream out = res.getOutputStream(); res.setContentType("text/xml"); int ipindex = filePart.indexOf("//"); String ip = null; if (ipindex >= 0) { ip = filePart.substring(ipindex + 2, filePart.length()); int seperatorIndex = ip.indexOf(":"); int slashIndex = ip.indexOf("/"); String port = ip.substring(seperatorIndex + 1, slashIndex); if ("http".equals(req.getScheme())) { configContext.setProperty(RUNNING_PORT, port); } if (seperatorIndex > 0) { ip = ip.substring(0, seperatorIndex); } } ((AxisService) serviceObj).printWSDL2(out, ip, configContext.getServiceContextPath()); out.flush(); out.close(); return; } else if (wsdl >=0) { OutputStream out = res.getOutputStream(); res.setContentType("text/xml"); int ipindex = filePart.indexOf("//"); String ip = null; if (ipindex >= 0) { ip = filePart.substring(ipindex + 2, filePart.length()); int seperatorIndex = ip.indexOf(":"); int slashIndex = ip.indexOf("/"); String port = ip.substring(seperatorIndex + 1, slashIndex); if ("http".equals(req.getScheme())) { configContext.setProperty(RUNNING_PORT, port); } if (seperatorIndex > 0) { ip = ip.substring(0, seperatorIndex); } } ((AxisService) serviceObj).printWSDL(out, ip, configContext.getServicePath()); out.flush(); out.close(); return; } else if (xsd >=0) { OutputStream out = res.getOutputStream(); res.setContentType("text/xml"); AxisService axisService = (AxisService) serviceObj; //call the populator axisService.populateSchemaMappings(); Map schemaMappingtable = axisService.getSchemaMappingTable(); ArrayList schemas = axisService.getSchema(); //a name is present - try to pump the requested schema String xsds = req.getParameter("xsd"); if (!"".equals(xsds)) { XmlSchema schema = (XmlSchema) schemaMappingtable.get(xsds); if (schema != null) { //schema is there - pump it outs schema.write(out); out.flush(); out.close(); } else { //the schema is not found - pump a 404 res.sendError(HttpServletResponse.SC_NOT_FOUND); } //multiple schemas are present and the user specified //no name - in this case we cannot possibly pump a schema //so redirect to the service root } else if (schemas.size() > 1) { res.sendRedirect(""); //user specified no name and there is only one schema //so pump that out } else { XmlSchema schema = axisService.getSchema(0); if (schema != null) { schema.write(out); out.flush(); out.close(); } } return; } else { req.getSession().setAttribute(Constants.SINGLE_SERVICE, serviceObj); } } else { req.getSession().setAttribute(Constants.SINGLE_SERVICE, null); } } renderView(LIST_SINGLE_SERVICE_JSP_NAME, req, res); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/0dba59405c8e6045965add4f25879670d8133a7b/ListingAgent.java/buggy/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 682, 1179, 12, 2940, 18572, 1111, 16, 4766, 282, 12446, 400, 13, 5411, 1216, 1860, 16, 16517, 288, 3639, 514, 585, 1988, 273, 1111, 18, 588, 691, 1785, 7675, 10492, 5621, 3639, 514, 6773, 273, 585, 1988, 18, 28023, 12, 768, 1988, 18, 2722, 31985, 2932, 4898, 13, 397, 404, 16, 7734, 585, 1988, 18, 2469, 10663, 3639, 4317, 4028, 273, 642, 1042, 18, 588, 6558, 1750, 7675, 588, 5676, 5621, 3639, 514, 843, 273, 1111, 18, 588, 15276, 5621, 3639, 509, 17642, 22, 273, 843, 18, 31806, 2932, 4749, 5761, 22, 8863, 3639, 509, 17642, 273, 843, 18, 31806, 2932, 4749, 5761, 8863, 3639, 509, 14802, 273, 843, 18, 31806, 2932, 19144, 8863, 3639, 309, 14015, 8387, 480, 446, 13, 597, 401, 8387, 18, 291, 1921, 10756, 288, 5411, 1033, 1156, 2675, 273, 4028, 18, 588, 12, 15423, 1769, 5411, 309, 261, 3278, 2675, 480, 446, 13, 288, 7734, 309, 261, 4749, 5761, 22, 1545, 20, 13, 288, 10792, 8962, 596, 273, 400, 18, 588, 4632, 5621, 10792, 400, 18, 542, 8046, 2932, 955, 19, 2902, 8863, 10792, 509, 2359, 1615, 273, 585, 1988, 18, 31806, 2932, 759, 8863, 10792, 514, 2359, 273, 446, 31, 10792, 309, 261, 625, 1615, 1545, 374, 13, 288, 13491, 2359, 273, 585, 1988, 18, 28023, 12, 625, 1615, 397, 576, 16, 585, 1988, 18, 2469, 10663, 13491, 509, 22282, 639, 1016, 273, 2359, 18, 31806, 2932, 2773, 1769, 13491, 509, 9026, 1016, 273, 2359, 18, 31806, 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, 1207, 682, 1179, 12, 2940, 18572, 1111, 16, 4766, 282, 12446, 400, 13, 5411, 1216, 1860, 16, 16517, 288, 3639, 514, 585, 1988, 273, 1111, 18, 588, 691, 1785, 7675, 10492, 5621, 3639, 514, 6773, 273, 585, 1988, 18, 28023, 12, 768, 1988, 18, 2722, 31985, 2932, 4898, 13, 397, 404, 16, 7734, 585, 1988, 18, 2469, 10663, 3639, 4317, 4028, 273, 642, 1042, 18, 588, 6558, 1750, 7675, 588, 5676, 5621, 3639, 514, 843, 273, 1111, 18, 588, 15276, 5621, 3639, 509, 17642, 22, 273, 843, 18, 31806, 2932, 4749, 5761, 22, 8863, 3639, 509, 17642, 273, 843, 18, 31806, 2932, 4749, 5761, 8863, 3639, 509, 14802, 273, 843, 18, 31806, 2932, 19144, 8863, 3639, 2 ]
Uu.p("calc layout null was called");
protected void calcLayout() { // set body box to null to trigger new layout Uu.p("calc layout null was called"); body_box = null; }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/a821099cb0ae20c2cf9015c8152b89c95600f113/BasicPanel.java/buggy/src/java/org/xhtmlrenderer/swing/BasicPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 7029, 3744, 1435, 288, 3639, 368, 444, 1417, 3919, 358, 446, 358, 3080, 394, 3511, 7734, 1417, 67, 2147, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 4750, 918, 7029, 3744, 1435, 288, 3639, 368, 444, 1417, 3919, 358, 446, 358, 3080, 394, 3511, 7734, 1417, 67, 2147, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 Token.TYPEOFNAME :
case Icode_TYPEOFNAME :
private static int icodeTokenLength(int icodeToken) { switch (icodeToken) { case Icode_SCOPE : case Icode_GETPROTO : case Icode_GETPARENT : case Icode_GETSCOPEPARENT : case Icode_SETPROTO : case Icode_SETPARENT : case Token.DELPROP : case Token.TYPEOF : case Token.NEWSCOPE : case Token.ENTERWITH : case Token.LEAVEWITH : case Token.RETURN : case Token.THROW : case Token.GETTHIS : case Token.SETELEM : case Token.GETELEM : case Token.SETPROP : case Token.GETPROP : case Token.PROPINC : case Token.PROPDEC : case Token.ELEMINC : case Token.ELEMDEC : case Token.BITNOT : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.NEG : case Token.POS : case Token.SUB : case Token.MUL : case Token.DIV : case Token.MOD : case Token.ADD : case Token.POPV : case Token.POP : case Icode_DUP : case Token.LT : case Token.GT : case Token.LE : case Token.GE : case Token.IN : case Token.INSTANCEOF : case Token.EQ : case Token.NE : case Token.SHEQ : case Token.SHNE : case Token.ZERO : case Token.ONE : case Token.NULL : case Token.THIS : case Token.THISFN : case Token.FALSE : case Token.TRUE : case Token.UNDEFINED : case Icode_CATCH: case Icode_RETUNDEF: case Icode_END: return 1; case Icode_GOSUB : case Token.GOTO : case Token.IFEQ : case Token.IFNE : // target pc offset return 1 + 2; case Icode_RETSUB : case Token.ENUMINIT : case Token.ENUMNEXT : case Token.VARINC : case Token.VARDEC : case Token.GETVAR : case Token.SETVAR : case Token.NEWTEMP : case Token.USETEMP : // slot index return 1 + 1; case Icode_CALLSPECIAL : // call type // is new // line number // arg count return 1 + 1 + 1 + 2 + 2; case Token.REGEXP : // regexp index return 1 + 2; case Token.CLOSURE : // index of closure master copy return 1 + 2; case Token.NEW : case Token.CALL : // name string index // arg count return 1 + 2 + 2; case Icode_SHORTNUMBER : // short number return 1 + 2; case Icode_INTNUMBER : // int number return 1 + 4; case Token.NUMBER : // index of double number return 1 + 2; case Token.TYPEOFNAME : case Token.GETBASE : case Token.BINDNAME : case Token.SETNAME : case Token.NAME : case Token.NAMEINC : case Token.NAMEDEC : case Token.STRING : // string index return 1 + 2; case Icode_LINE : // line number return 1 + 2; default: Context.codeBug(); // Bad icodeToken return 0; } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 277, 710, 1345, 1782, 12, 474, 277, 710, 1345, 13, 288, 3639, 1620, 261, 3487, 1345, 13, 288, 5411, 648, 467, 710, 67, 19444, 294, 5411, 648, 467, 710, 67, 3264, 25455, 294, 5411, 648, 467, 710, 67, 3264, 14943, 294, 5411, 648, 467, 710, 67, 3264, 19444, 14943, 294, 5411, 648, 467, 710, 67, 4043, 25455, 294, 5411, 648, 467, 710, 67, 4043, 14943, 294, 5411, 648, 3155, 18, 24733, 15811, 294, 5411, 648, 3155, 18, 2399, 3932, 294, 5411, 648, 3155, 18, 12917, 19444, 294, 5411, 648, 3155, 18, 12278, 9147, 294, 5411, 648, 3155, 18, 900, 26714, 9147, 294, 5411, 648, 3155, 18, 14033, 294, 5411, 648, 3155, 18, 2455, 11226, 294, 5411, 648, 3155, 18, 7113, 1470, 44, 5127, 294, 5411, 648, 3155, 18, 1090, 1448, 26817, 294, 5411, 648, 3155, 18, 7113, 1448, 26817, 294, 5411, 648, 3155, 18, 4043, 15811, 294, 5411, 648, 3155, 18, 3264, 15811, 294, 5411, 648, 3155, 18, 15811, 23213, 294, 5411, 648, 3155, 18, 15811, 1639, 39, 294, 5411, 648, 3155, 18, 41, 900, 6236, 39, 294, 5411, 648, 3155, 18, 41, 26817, 1639, 39, 294, 5411, 648, 3155, 18, 15650, 4400, 294, 5411, 648, 3155, 18, 15650, 4307, 294, 5411, 648, 3155, 18, 15650, 916, 294, 5411, 648, 3155, 18, 15650, 60, 916, 294, 5411, 648, 3155, 18, 48, 2664, 294, 5411, 648, 3155, 18, 54, 2664, 294, 5411, 648, 3155, 18, 1099, 2664, 294, 5411, 648, 3155, 18, 5407, 43, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 277, 710, 1345, 1782, 12, 474, 277, 710, 1345, 13, 288, 3639, 1620, 261, 3487, 1345, 13, 288, 5411, 648, 467, 710, 67, 19444, 294, 5411, 648, 467, 710, 67, 3264, 25455, 294, 5411, 648, 467, 710, 67, 3264, 14943, 294, 5411, 648, 467, 710, 67, 3264, 19444, 14943, 294, 5411, 648, 467, 710, 67, 4043, 25455, 294, 5411, 648, 467, 710, 67, 4043, 14943, 294, 5411, 648, 3155, 18, 24733, 15811, 294, 5411, 648, 3155, 18, 2399, 3932, 294, 5411, 648, 3155, 18, 12917, 19444, 294, 5411, 648, 3155, 18, 12278, 9147, 294, 5411, 648, 3155, 18, 900, 26714, 9147, 294, 5411, 648, 3155, 18, 14033, 294, 5411, 648, 3155, 18, 2455, 11226, 294, 2 ]
Number num = node.getNumber();
double num = node.getDouble();
private void visitLiteral(Node node) { if (node.getType() == TokenStream.STRING) { // just load the string constant push(node.getString()); } else { Number num = node.getNumber(); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { push(num.doubleValue()); } else { /* * Generate code to create the new numeric constant * * new java/lang/<WrapperType> * dup * push <number> * invokestatic java/lang/<WrapperType>/<init>(D)V */ String wrapperType = ""; String signature = ""; boolean isInteger = false; if (num instanceof Float) num = new Double(num.floatValue()); // OPT: cache getClass() and compare == Type.class if (num instanceof Integer) { wrapperType = "Integer"; signature = "I"; isInteger = true; /* } else if (num instanceof Float) { wrapperType = "Float"; signature = "F"; */ } else if (num instanceof Double) { wrapperType = "Double"; signature = "D"; } else if (num instanceof Byte) { wrapperType = "Byte"; signature = "B"; isInteger = true; } else if (num instanceof Short) { wrapperType = "Short"; signature = "S"; isInteger = true; } else { throw Context.reportRuntimeError( "NumberNode contains unsupported Number type: " + num.getClass().getName()); } /* There appears to be a limit in the JVM on either the number of static fields in a class or the size of the class initializer. Either way, we can't have any more than 2000 statically init'd constants. */ if (itsConstantList.itsTop >= 2000) { addByteCode(ByteCode.NEW, "java/lang/" + wrapperType); addByteCode(ByteCode.DUP); if (isInteger) push(num.longValue()); else push(num.doubleValue()); addSpecialInvoke("java/lang/" + wrapperType, "<init>", "(" + signature + ")", "V"); } else { classFile.add(ByteCode.GETSTATIC, classFile.fullyQualifiedForm(this.name), "jsK_" + itsConstantList.addConstant(wrapperType, signature, num, isInteger), "Ljava/lang/" + wrapperType + ";"); } } } }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/25cf3abe2684f0b663feb97656e36e920cb83cfb/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 6177, 12, 907, 756, 13, 288, 3639, 309, 261, 2159, 18, 588, 559, 1435, 422, 3155, 1228, 18, 5804, 13, 288, 5411, 368, 2537, 1262, 326, 533, 5381, 5411, 1817, 12, 2159, 18, 588, 780, 10663, 3639, 289, 469, 288, 5411, 1645, 818, 273, 756, 18, 588, 5265, 5621, 5411, 309, 261, 2159, 18, 588, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 300, 21, 13, 480, 300, 21, 13, 288, 7734, 1817, 12, 2107, 18, 9056, 620, 10663, 5411, 289, 5411, 469, 288, 10792, 1748, 5397, 380, 6654, 981, 358, 752, 326, 394, 6389, 5381, 5397, 380, 5397, 380, 394, 2252, 19, 4936, 28177, 3611, 559, 34, 5397, 380, 9417, 5397, 380, 1817, 411, 2696, 34, 5397, 380, 5770, 395, 2126, 2252, 19, 4936, 28177, 3611, 559, 16893, 32, 2738, 34, 12, 40, 13, 58, 5397, 1195, 7734, 514, 4053, 559, 273, 1408, 31, 7734, 514, 3372, 273, 1408, 31, 7734, 1250, 353, 4522, 273, 629, 31, 7734, 309, 261, 2107, 1276, 5450, 13, 5375, 818, 273, 394, 3698, 12, 2107, 18, 5659, 620, 10663, 7734, 368, 16456, 30, 1247, 2900, 1435, 471, 3400, 422, 1412, 18, 1106, 7734, 309, 261, 2107, 1276, 2144, 13, 288, 10792, 4053, 559, 273, 315, 4522, 14432, 10792, 3372, 273, 315, 45, 14432, 10792, 353, 4522, 273, 638, 31, 10792, 1748, 10792, 289, 469, 309, 261, 2107, 1276, 5450, 13, 288, 10792, 4053, 559, 273, 315, 4723, 14432, 10792, 3372, 273, 315, 42, 14432, 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, 3757, 6177, 12, 907, 756, 13, 288, 3639, 309, 261, 2159, 18, 588, 559, 1435, 422, 3155, 1228, 18, 5804, 13, 288, 5411, 368, 2537, 1262, 326, 533, 5381, 5411, 1817, 12, 2159, 18, 588, 780, 10663, 3639, 289, 469, 288, 5411, 1645, 818, 273, 756, 18, 588, 5265, 5621, 5411, 309, 261, 2159, 18, 588, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 300, 21, 13, 480, 300, 21, 13, 288, 7734, 1817, 12, 2107, 18, 9056, 620, 10663, 5411, 289, 5411, 469, 288, 10792, 1748, 5397, 380, 6654, 981, 358, 752, 326, 394, 6389, 5381, 5397, 380, 5397, 380, 394, 2252, 19, 4936, 28177, 3611, 559, 34, 5397, 380, 9417, 5397, 380, 2 ]
send(p.sysex);
send(((Patch)p).sysex);
public void sendPatch(Patch p) { p.sysex[2]=(byte)(0x30 + getChannel() - 1); // the only thing to do is to set the byte to 3n (n = channel) try { send(p.sysex); }catch (Exception e) {ErrorMsg.reportStatus(e);} }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/KorgWavestationPerformanceMapDriver.java/clean/JSynthLib/synthdrivers/KorgWavestation/KorgWavestationPerformanceMapDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 7332, 12, 7332, 293, 13, 288, 3639, 293, 18, 9009, 20909, 63, 22, 65, 28657, 7229, 21433, 20, 92, 5082, 397, 16454, 1435, 300, 404, 1769, 368, 326, 1338, 7757, 358, 741, 353, 358, 444, 326, 1160, 358, 890, 82, 261, 82, 273, 1904, 13, 3639, 775, 288, 5411, 1366, 12443, 12, 7332, 13, 84, 2934, 9009, 20909, 1769, 3639, 289, 14683, 261, 503, 425, 13, 3639, 288, 668, 3332, 18, 6006, 1482, 12, 73, 1769, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 7332, 12, 7332, 293, 13, 288, 3639, 293, 18, 9009, 20909, 63, 22, 65, 28657, 7229, 21433, 20, 92, 5082, 397, 16454, 1435, 300, 404, 1769, 368, 326, 1338, 7757, 358, 741, 353, 358, 444, 326, 1160, 358, 890, 82, 261, 82, 273, 1904, 13, 3639, 775, 288, 5411, 1366, 12443, 12, 7332, 13, 84, 2934, 9009, 20909, 1769, 3639, 289, 14683, 261, 503, 425, 13, 3639, 288, 668, 3332, 18, 6006, 1482, 12, 73, 1769, 97, 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 ]
SingleBlockInserter metaPutter = new SingleBlockInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true);
ClientPutState metaPutter = createInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true);
private void tryCompress() throws InserterException { // First, determine how small it needs to be Bucket origData = block.getData(); Bucket data = origData; int blockSize; boolean dontCompress = ctx.dontCompress; long origSize = data.size(); String type = block.desiredURI.getKeyType().toUpperCase(); if(type.equals("SSK") || type.equals("KSK")) { blockSize = SSKBlock.DATA_LENGTH; } else if(type.equals("CHK")) { blockSize = CHKBlock.DATA_LENGTH; } else { throw new InserterException(InserterException.INVALID_URI); } Compressor bestCodec = null; Bucket bestCompressedData = null; if(origSize > blockSize && (!ctx.dontCompress) && (!dontCompress)) { // Try to compress the data. // Try each algorithm, starting with the fastest and weakest. // Stop when run out of algorithms, or the compressed data fits in a single block. int algos = Compressor.countCompressAlgorithms(); try { for(int i=0;i<algos;i++) { // Only produce if we are compressing *the original data* if(parent == cb) ctx.eventProducer.produceEvent(new StartedCompressionEvent(i)); Compressor comp = Compressor.getCompressionAlgorithmByDifficulty(i); Bucket result; result = comp.compress(origData, ctx.bf, Long.MAX_VALUE); if(result.size() < blockSize) { bestCodec = comp; data = result; if(bestCompressedData != null) ctx.bf.freeBucket(bestCompressedData); bestCompressedData = data; break; } if(bestCompressedData != null && result.size() < bestCompressedData.size()) { ctx.bf.freeBucket(bestCompressedData); bestCompressedData = result; data = result; bestCodec = comp; } else if(bestCompressedData == null && result.size() < data.size()) { bestCompressedData = result; bestCodec = comp; data = result; } } } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (CompressionOutputSizeException e) { // Impossible throw new Error(e); } } if(parent == cb) { ctx.eventProducer.produceEvent(new FinishedCompressionEvent(bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(), origSize, data.size())); } // Compressed data // Insert it... short codecNumber = bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(); if(block.getData().size() > Integer.MAX_VALUE) throw new InserterException(InserterException.INTERNAL_ERROR, "2GB+ should not encode to one block!", null); if((block.clientMetadata == null || block.clientMetadata.isTrivial())) { if(data.size() < blockSize) { // Just insert it SingleBlockInserter bi = new SingleBlockInserter(parent, data, codecNumber, block.desiredURI, ctx, cb, metadata, (int)block.getData().size(), -1, getCHKOnly, true); cb.onTransition(this, bi); bi.schedule(); cb.onBlockSetFinished(this); return; } } if (data.size() < ClientCHKBlock.MAX_COMPRESSED_DATA_LENGTH) { // Insert single block, then insert pointer to it if(reportMetadataOnly) { SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, cb, metadata, (int)origSize, -1, getCHKOnly, true); Metadata meta = new Metadata(Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); cb.onMetadata(meta, this); cb.onTransition(this, dataPutter); dataPutter.schedule(); cb.onBlockSetFinished(this); } else { MultiPutCompletionCallback mcb = new MultiPutCompletionCallback(cb, parent); SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, mcb, metadata, (int)origSize, -1, getCHKOnly, true); Metadata meta = new Metadata(Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } SingleBlockInserter metaPutter = new SingleBlockInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true); mcb.addURIGenerator(metaPutter); mcb.add(dataPutter); cb.onTransition(this, mcb); mcb.arm(); dataPutter.schedule(); metaPutter.schedule(); cb.onBlockSetFinished(this); } return; } // Otherwise the file is too big to fit into one block // We therefore must make a splitfile // Job of SplitHandler: when the splitinserter has the metadata, // insert it. Then when the splitinserter has finished, and the // metadata insert has finished too, tell the master callback. if(reportMetadataOnly) { SplitFileInserter sfi = new SplitFileInserter(parent, cb, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata); cb.onTransition(this, sfi); sfi.start(); } else { SplitHandler sh = new SplitHandler(); SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata); sh.sfi = sfi; cb.onTransition(this, sh); sfi.start(); } return; }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/c6aa82ac420d1cc2277bea0c09c5c8fcbaf51ad0/SingleFileInserter.java/clean/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621, 202, 202, 4103, 501, 273, 1647, 751, 31, 202, 202, 474, 13766, 31, 202, 202, 6494, 14046, 16552, 273, 1103, 18, 72, 1580, 16552, 31, 9506, 202, 5748, 1647, 1225, 273, 501, 18, 1467, 5621, 202, 202, 780, 618, 273, 1203, 18, 30458, 3098, 18, 588, 22100, 7675, 869, 8915, 5621, 202, 202, 430, 12, 723, 18, 14963, 2932, 1260, 47, 7923, 747, 618, 18, 14963, 2932, 47, 11129, 6, 3719, 288, 1082, 202, 2629, 1225, 273, 348, 11129, 1768, 18, 4883, 67, 7096, 31, 202, 202, 97, 469, 309, 12, 723, 18, 14963, 2932, 1792, 47, 6, 3719, 288, 1082, 202, 2629, 1225, 273, 6469, 47, 1768, 18, 4883, 67, 7096, 31, 202, 202, 97, 469, 288, 1082, 202, 12849, 394, 657, 550, 387, 503, 12, 382, 550, 387, 503, 18, 9347, 67, 3098, 1769, 202, 202, 97, 9506, 202, 16552, 280, 3796, 11008, 273, 446, 31, 202, 202, 4103, 3796, 16841, 751, 273, 446, 31, 202, 202, 430, 12, 4949, 1225, 405, 13766, 597, 16051, 5900, 18, 72, 1580, 16552, 13, 597, 16051, 72, 1580, 16552, 3719, 288, 1082, 202, 759, 6161, 358, 8099, 326, 501, 18, 1082, 202, 759, 6161, 1517, 4886, 16, 5023, 598, 326, 4797, 395, 471, 16046, 395, 18, 1082, 202, 759, 5131, 1347, 1086, 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, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621, 202, 202, 4103, 501, 273, 1647, 751, 31, 202, 202, 474, 13766, 31, 202, 202, 6494, 14046, 16552, 273, 1103, 18, 72, 1580, 16552, 31, 9506, 202, 5748, 1647, 1225, 273, 501, 18, 1467, 5621, 202, 202, 780, 618, 273, 1203, 18, 30458, 3098, 18, 588, 22100, 7675, 869, 8915, 5621, 202, 202, 430, 12, 723, 18, 14963, 2932, 1260, 47, 7923, 747, 618, 18, 14963, 2932, 47, 11129, 6, 3719, 288, 1082, 202, 2629, 1225, 273, 348, 11129, 1768, 18, 4883, 67, 2 ]
public AdaptableList add(IAdaptable a) {
public void add(IAdaptable a) {
public AdaptableList add(IAdaptable a) { if (a instanceof WorkbenchWizardElement) { wizards.add(a); } else { super.add(a); } return this;}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5879d03f82c86871e58839006ceaa7f5654229d5/WizardCollectionElement.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/dialogs/WizardCollectionElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 22792, 429, 682, 527, 12, 45, 13716, 429, 279, 13, 288, 202, 430, 261, 69, 1276, 4147, 22144, 27130, 1046, 13, 288, 202, 202, 31837, 87, 18, 1289, 12, 69, 1769, 202, 97, 469, 288, 202, 202, 9565, 18, 1289, 12, 69, 1769, 202, 97, 202, 2463, 333, 31, 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, 1071, 22792, 429, 682, 527, 12, 45, 13716, 429, 279, 13, 288, 202, 430, 261, 69, 1276, 4147, 22144, 27130, 1046, 13, 288, 202, 202, 31837, 87, 18, 1289, 12, 69, 1769, 202, 97, 469, 288, 202, 202, 9565, 18, 1289, 12, 69, 1769, 202, 97, 202, 2463, 333, 31, 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 void visitForNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitForNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitForNode(Node iVisited) { visit(iVisited); leave(iVisited); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 31058, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 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, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 31058, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 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, -100, -100, -100, -100, -100 ]
public static void main(String[] args) throws Exception { if (args.length == 0) { System.out.println( "Usage: java " + TaglibReport.class.getName() + " <file list>"); System.exit(0); } File[] files = new File[args.length]; for (int i = 0; i < files.length; i++) files[i] = new File(args[i]); TaglibDoc td = new TaglibDoc(); td.handleFiles(Arrays.asList(files)); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibReport.java/clean/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3845, 6459, 5254, 12, 780, 8526, 1968, 13, 15069, 503, 95, 202, 202, 430, 12, 1968, 18, 2469, 631, 20, 15329, 1082, 202, 3163, 18, 659, 18, 8222, 12, 9506, 202, 6, 5357, 30, 6290, 6, 15, 1805, 2941, 4820, 18, 1106, 18, 17994, 1435, 9078, 32, 7540, 5449, 2984, 1769, 1082, 202, 3163, 18, 8593, 12, 20, 1769, 202, 202, 97, 202, 202, 812, 8526, 2354, 33, 2704, 812, 63, 1968, 18, 2469, 15533, 202, 202, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 2354, 18, 2469, 31, 77, 27245, 1082, 202, 2354, 63, 77, 65, 33, 2704, 812, 12, 1968, 63, 77, 19226, 202, 202, 1805, 2941, 3244, 299, 72, 33, 2704, 1805, 2941, 1759, 5621, 202, 202, 4465, 18, 4110, 2697, 12, 12726, 18, 345, 682, 12, 2354, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3845, 6459, 5254, 12, 780, 8526, 1968, 13, 15069, 503, 95, 202, 202, 430, 12, 1968, 18, 2469, 631, 20, 15329, 1082, 202, 3163, 18, 659, 18, 8222, 12, 9506, 202, 6, 5357, 30, 6290, 6, 15, 1805, 2941, 4820, 18, 1106, 18, 17994, 1435, 9078, 32, 7540, 5449, 2984, 1769, 1082, 202, 3163, 18, 8593, 12, 20, 1769, 202, 202, 97, 202, 202, 812, 8526, 2354, 33, 2704, 812, 63, 1968, 18, 2469, 15533, 202, 202, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 2354, 18, 2469, 31, 77, 27245, 1082, 202, 2354, 63, 77, 65, 33, 2704, 812, 12, 1968, 63, 77, 19226, 202, 202, 1805, 2941, 3244, 299, 72, 33, 2704, 1805, 2 ]
if (!(isStatic || (isConstrCall && !isSuperCall))) genLoadQualifier(ctx, fun);
if (!isStatic) genLoadQualifier(ctx, fun, !isConstrCall);
protected JType genLoad(Context ctx, Tree tree, JType expectedType) { startCodeForTree(ctx, tree); JType generatedType = null; Symbol sym = tree.symbol(); switch (tree) { case LabelDef(_, Tree.Ident[] params, Tree rhs): { JCode.Label label = ctx.code.newLabel(); label.anchorToNext(); ctx.labels.put(sym, new Pair(label, params)); generatedType = genLoad(ctx, rhs, expectedType); ctx.labels.remove(sym); } break; case Block(Tree[] stats): { int statsNum = stats.length; for (int i = 0; i < statsNum - 1; ++i) gen(ctx, stats[i]); if (statsNum == 0) maybeGenLoadUnit(ctx, expectedType); else genLoad(ctx, stats[stats.length - 1], expectedType); generatedType = expectedType; } break; case Typed(Tree expr, _): genLoad(ctx, expr, expectedType); generatedType = expectedType; break; case New(Tree.Template templ): { assert templ.body.length == 0; assert templ.parents.length == 1; String className = javaName(tree.type.symbol()); ctx.code.emitNEW(className); ctx.code.emitDUP(); gen(ctx, templ.parents[0]); generatedType = new JObjectType(className); } break; case Apply(TypeApply(Tree fun, Tree[] args), _): { genLoadQualifier(ctx, fun); JType type = typeStoJ(args[0].type); if (fun.symbol() == defs.IS) { ctx.code.emitINSTANCEOF((JReferenceType)type); generatedType = JType.BOOLEAN; } else if (fun.symbol() == defs.AS) { ctx.code.emitCHECKCAST((JReferenceType)type); generatedType = type; } else global.fail("unexpected type application"); } break; case Apply(Tree fun, Tree[] args): { Symbol funSym = fun.symbol(); if (funSym.isLabel()) { Pair/*<Label, Tree[]>*/ labelAndIdents = (Pair)ctx.labels.get(funSym); assert labelAndIdents != null : Debug.show(funSym); JMethodType funType = (JMethodType)typeStoJ(funSym.info()); JCode.Label label = (JCode.Label)labelAndIdents.fst; Tree[] idents = (Tree[])labelAndIdents.snd; assert idents.length == args.length; for (int i = 0; i < args.length; ++i) genLoad(ctx, args[i], typeStoJ(args[i].type)); for (int i = idents.length; i > 0; --i) genStoreEpilogue(ctx, idents[i-1]); ctx.code.emitGOTO(label); generatedType = funType.getReturnType(); } else if (isKnownPrimitive(funSym)) { Primitive prim = prims.getPrimitive(funSym); switch (prim) { case CONCAT: genStringConcatenation(ctx, liftStringConcatenations(tree)); generatedType = JAVA_LANG_STRING_T; break; case POS: case NEG: case ADD: case SUB: case MUL: case DIV: case MOD: case NOT: case OR : case XOR: case AND: case LSL: case LSR: case ASR: Tree[] allArgs = extractPrimitiveArgs((Tree.Apply)tree); JType resType = typeStoJ(tree.type); genArithPrim(ctx, prim, allArgs, resType, expectedType); generatedType = resType; break; case ID: case EQ: case NE: case LT: case LE: case GE: case GT: case ZNOT: case ZOR: case ZAND: JCode.Label falseLabel = ctx.code.newLabel(); JCode.Label afterLabel = ctx.code.newLabel(); genCond(ctx, tree, falseLabel, false); ctx.code.emitICONST_1(); ctx.code.emitGOTO(afterLabel); falseLabel.anchorToNext(); ctx.code.emitICONST_0(); afterLabel.anchorToNext(); generatedType = JType.BOOLEAN; break; case THROW: assert args.length == 0; genThrow(ctx, ((Tree.Select)fun).qualifier); // We pretend that we generated something of the // expected type, to avoid trying to generate // bogus conversions. generatedType = expectedType; break; case NEW_ZARRAY : case NEW_BARRAY : case NEW_SARRAY : case NEW_CARRAY : case NEW_IARRAY : case NEW_LARRAY : case NEW_FARRAY : case NEW_DARRAY : assert args.length == 1; genArrayCreate(ctx, prim, args[0]); generatedType = JAVA_LANG_OBJECT_T; // TODO refine break; case ZARRAY_SET : case BARRAY_SET : case SARRAY_SET : case CARRAY_SET : case IARRAY_SET : case LARRAY_SET : case FARRAY_SET : case DARRAY_SET : case OARRAY_SET : assert args.length == 3; genArrayUpdate(ctx, args[0], args[1], args[2]); generatedType = JType.VOID; break; case ZARRAY_GET : case BARRAY_GET : case SARRAY_GET : case CARRAY_GET : case IARRAY_GET : case LARRAY_GET : case FARRAY_GET : case DARRAY_GET : case OARRAY_GET : assert args.length == 2 : "get - " + args.length; genArrayAccess(ctx, args[0], args[1]); generatedType = getArrayElementType(args[0]); break; case ZARRAY_LENGTH : case BARRAY_LENGTH : case SARRAY_LENGTH : case CARRAY_LENGTH : case IARRAY_LENGTH : case LARRAY_LENGTH : case FARRAY_LENGTH : case DARRAY_LENGTH : case OARRAY_LENGTH : assert args.length == 1 : args.length; genArrayLength(ctx, args[0]); generatedType = JType.INT; break; case AS_UVALUE : assert args.length == 0; gen(ctx, ((Tree.Select)fun).qualifier); generatedType = JType.VOID; break; default: throw Debug.abort("unknown primitive ", prim); } } else { JMethodType funType = (JMethodType)typeStoJ(funSym.info()); JType[] argTypes = funType.getArgumentTypes(); boolean isConstrCall = (funSym.name == CONSTRUCTOR_NAME); boolean isSuperCall; switch (fun) { case Select(Super(_, _), _): isSuperCall = true; break; default: isSuperCall = false; break; } boolean isStatic = isStaticMember(funSym); if (!(isStatic || (isConstrCall && !isSuperCall))) genLoadQualifier(ctx, fun); for (int i = 0; i < args.length; ++i) genLoad(ctx, args[i], argTypes[i]); String clsName = isSuperCall ? ctx.clazz.getSuperclassName() : javaName(funSym.owner()); String mthName = funSym.name.toString(); funSym.owner().info(); // [HACK] ensure that flags are // transformed. // [HACK] in reality isSuperCall should never be true // is the owner is an interface, but this is a quick // fix before ExpandMixins is fixed. if (funSym.owner().isInterface() && !isSuperCall) ctx.code.emitINVOKEINTERFACE(clsName, mthName, funType); else { if (isConstrCall || isSuperCall) { ctx.code.emitINVOKESPECIAL(clsName, mthName, funType); if (isConstrCall && isSuperCall && ctx.isModuleClass) { // Initialise module instance field ASAP ctx.code.emitALOAD_0(); ctx.code.emitPUTSTATIC(ctx.clazz.getName(), MODULE_INSTANCE_FIELD_NAME, ctx.clazz.getType()); } } else if (isStatic) ctx.code.emitINVOKESTATIC(clsName, mthName, funType); else ctx.code.emitINVOKEVIRTUAL(clsName, mthName, funType); } generatedType = funType.getReturnType(); } } break; case Ident(Name name): { JType type = typeStoJ(sym.info()); if (sym.isModule()) generatedType = genLoadModule(ctx, sym); else if (sym == defs.NULL) { ctx.code.emitACONST_NULL(); generatedType = expectedType; } else if (sym.owner().isClass()) { ctx.code.emitALOAD_0(); ctx.code.emitGETFIELD(ctx.clazz.getName(), name.toString(), type); generatedType = type; } else { assert ctx.locals.containsKey(sym) : Debug.show(sym) + " not in " + ctx.locals; int index = ((Integer)(ctx.locals.get(sym))).intValue(); ctx.code.emitLOAD(index, type); generatedType = type; } } break; case Select(Tree qualifier, Name selector): { if (sym.isModule()) generatedType = genLoadModule(ctx, sym); else { JType fieldType = typeStoJ(sym.info()); String className = javaName(sym.owner()); String fieldName = selector.toString(); if (isStaticMember(sym)) ctx.code.emitGETSTATIC(className, fieldName, fieldType); else { genLoadQualifier(ctx, tree); ctx.code.emitGETFIELD(className, fieldName, fieldType); } generatedType = fieldType; } } break; case Assign(Tree lhs, Tree rhs): { genStorePrologue(ctx, lhs); genLoad(ctx, rhs, typeStoJ(lhs.symbol().info())); genStoreEpilogue(ctx, lhs); generatedType = JType.VOID; } break; case If(Tree cond, Tree thenp, Tree elsep): { JType finalType = typeStoJ(tree.type); JCode.Label elseLabel = ctx.code.newLabel(); genCond(ctx, cond, elseLabel, false); genLoad(ctx, thenp, finalType); JCode.Label afterLabel = ctx.code.newLabel(); ctx.code.emitGOTO(afterLabel); elseLabel.anchorToNext(); if (elsep == Tree.Empty) maybeGenLoadUnit(ctx, finalType); else genLoad(ctx, elsep, finalType); afterLabel.anchorToNext(); generatedType = finalType; } break; case Switch(Tree test, int[] tags, Tree[] bodies, Tree otherwise): { JCode.Label[] labels = ctx.code.newLabels(bodies.length); JCode.Label defaultLabel = ctx.code.newLabel(); JCode.Label afterLabel = ctx.code.newLabel(); genLoad(ctx, test, JType.INT); ctx.code.emitSWITCH(tags, labels, defaultLabel, 0.9); for (int i = 0; i < bodies.length; ++i) { labels[i].anchorToNext(); genLoad(ctx, bodies[i], expectedType); ctx.code.emitGOTO(afterLabel); } defaultLabel.anchorToNext(); genLoad(ctx, otherwise, expectedType); afterLabel.anchorToNext(); generatedType = expectedType; } break; case This(_): case Super(_, _): ctx.code.emitALOAD_0(); generatedType = JAVA_LANG_OBJECT_T; break; case Literal(Object value): if (value instanceof Integer) { generatedType = JType.INT; ctx.code.emitPUSH((Integer)value); } else if (value instanceof Long) { generatedType = JType.LONG; ctx.code.emitPUSH((Long)value); } else if (value instanceof Float) { generatedType = JType.FLOAT; ctx.code.emitPUSH((Float)value); } else if (value instanceof Double) { generatedType = JType.DOUBLE; ctx.code.emitPUSH((Double)value); } else if (value instanceof Character) { generatedType = JType.CHAR; ctx.code.emitPUSH((Character)value); } else if (value instanceof String) { generatedType = JAVA_LANG_STRING_T; ctx.code.emitPUSH((String)value); } else if (value instanceof Boolean) { generatedType = JType.BOOLEAN; ctx.code.emitPUSH((Boolean)value); } else throw global.fail("unknown literal " + value); break; case Empty: case AbsTypeDef(_, _, _, _): case AliasTypeDef(_, _, _, _): case TypeApply(_, _): case FunType(_, _): case CompoundType(_, _): case AppliedType(_,_): generatedType = JType.VOID; break; case Sequence(_): case ModuleDef(_,_,_,_): case PatDef(_,_,_): case Import(_, _): case CaseDef(_, _, _): case Visitor(_): case Function(_, _): throw global.fail("unexpected node", tree); case Bad(): throw global.fail("bad tree"); default: throw global.fail("unknown node", tree); } // Pop unneeded result from stack, or widen it if needed. if (expectedType == JType.VOID && generatedType != JType.VOID) { if (generatedType == JType.LONG || generatedType == JType.DOUBLE) ctx.code.emitPOP2(); else ctx.code.emitPOP(); } else if (! (expectedType == JType.VOID || generatedType == expectedType || generatedType.isReferenceType())) genWidenConversion(ctx, generatedType, expectedType); endCodeForTree(ctx, tree); return expectedType; }
5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/b54aee87fef029cd337fbdd1a7aa546f87f1ea25/GenJVM.java/clean/sources/scalac/backend/jvm/GenJVM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 559, 3157, 2563, 12, 1042, 1103, 16, 4902, 2151, 16, 804, 559, 23192, 13, 288, 3639, 787, 1085, 1290, 2471, 12, 5900, 16, 2151, 1769, 3639, 804, 559, 4374, 559, 273, 446, 31, 3639, 8565, 5382, 273, 2151, 18, 7175, 5621, 3639, 1620, 261, 3413, 13, 288, 3639, 648, 5287, 3262, 24899, 16, 4902, 18, 6106, 8526, 859, 16, 4902, 7711, 4672, 288, 5411, 804, 1085, 18, 2224, 1433, 273, 1103, 18, 710, 18, 2704, 2224, 5621, 5411, 1433, 18, 16215, 774, 2134, 5621, 5411, 1103, 18, 5336, 18, 458, 12, 8117, 16, 394, 8599, 12, 1925, 16, 859, 10019, 5411, 4374, 559, 273, 3157, 2563, 12, 5900, 16, 7711, 16, 23192, 1769, 5411, 1103, 18, 5336, 18, 4479, 12, 8117, 1769, 3639, 289, 898, 31, 3639, 648, 3914, 12, 2471, 8526, 3177, 4672, 288, 5411, 509, 3177, 2578, 273, 3177, 18, 2469, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3177, 2578, 300, 404, 31, 965, 77, 13, 7734, 3157, 12, 5900, 16, 3177, 63, 77, 19226, 5411, 309, 261, 5296, 2578, 422, 374, 13, 7734, 6944, 7642, 2563, 2802, 12, 5900, 16, 23192, 1769, 5411, 469, 7734, 3157, 2563, 12, 5900, 16, 3177, 63, 5296, 18, 2469, 300, 404, 6487, 23192, 1769, 5411, 4374, 559, 273, 23192, 31, 3639, 289, 898, 31, 3639, 648, 13833, 12, 2471, 3065, 16, 389, 4672, 5411, 3157, 2563, 12, 5900, 16, 3065, 16, 23192, 1769, 5411, 4374, 559, 273, 23192, 31, 5411, 898, 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, 804, 559, 3157, 2563, 12, 1042, 1103, 16, 4902, 2151, 16, 804, 559, 23192, 13, 288, 3639, 787, 1085, 1290, 2471, 12, 5900, 16, 2151, 1769, 3639, 804, 559, 4374, 559, 273, 446, 31, 3639, 8565, 5382, 273, 2151, 18, 7175, 5621, 3639, 1620, 261, 3413, 13, 288, 3639, 648, 5287, 3262, 24899, 16, 4902, 18, 6106, 8526, 859, 16, 4902, 7711, 4672, 288, 5411, 804, 1085, 18, 2224, 1433, 273, 1103, 18, 710, 18, 2704, 2224, 5621, 5411, 1433, 18, 16215, 774, 2134, 5621, 5411, 1103, 18, 5336, 18, 458, 12, 8117, 16, 394, 8599, 12, 1925, 16, 859, 10019, 5411, 4374, 559, 273, 3157, 2563, 12, 5900, 16, 7711, 16, 23192, 1769, 5411, 1103, 18, 2 ]
setTitle((String) evalAttr("title", getTitle(), String.class));
setTitle((String) evalAttr("title", getTitleExpr(), String.class));
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELMultiboxTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELMultiboxTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 653, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 8853, 12, 5743, 1769, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 6788, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 22131, 27065, 12443, 780, 13, 5302, 3843, 2932, 265, 27065, 3113, 30070, 27065, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 2 ]
ParameterList additionalHeaders = (ParameterList)call.getAttributes().get("restlet.http.requestHeaders");
ParameterList additionalHeaders = (ParameterList)call.getAttributes().get("org.restlet.http.requestHeaders");
protected void addRequestHeaders(HttpClientCall httpCall, Call call) { ParameterList requestHeaders = httpCall.getRequestHeaders(); // Add the user agent header if (call.getClient().getName() != null) { requestHeaders.add(HttpConstants.HEADER_USER_AGENT, call.getClient().getName()); } else { requestHeaders.add(HttpConstants.HEADER_USER_AGENT, Factory.VERSION_HEADER); } // Add the conditions ConditionData condition = call.getCondition(); if (condition.getMatch() != null) { StringBuilder value = new StringBuilder(); for (int i = 0; i < condition.getMatch().size(); i++) { if (i > 0) value.append(", "); value.append(condition.getMatch().get(i).getName()); } httpCall.getRequestHeaders() .add(HttpConstants.HEADER_IF_MATCH, value.toString()); } if (condition.getModifiedSince() != null) { String imsDate = DateUtils.format(condition.getModifiedSince(), DateUtils.FORMAT_RFC_1123[0]); requestHeaders.add(HttpConstants.HEADER_IF_MODIFIED_SINCE, imsDate); } if (condition.getNoneMatch() != null) { StringBuilder value = new StringBuilder(); for (int i = 0; i < condition.getNoneMatch().size(); i++) { if (i > 0) value.append(", "); value.append(condition.getNoneMatch().get(i).getName()); } requestHeaders.add(HttpConstants.HEADER_IF_NONE_MATCH, value.toString()); } if (condition.getUnmodifiedSince() != null) { String iusDate = DateUtils.format(condition.getUnmodifiedSince(), DateUtils.FORMAT_RFC_1123[0]); requestHeaders.add(HttpConstants.HEADER_IF_UNMODIFIED_SINCE, iusDate); } // Add the cookies if (call.getCookies().size() > 0) { String cookies = CookieUtils.format(call.getCookies()); requestHeaders.add(HttpConstants.HEADER_COOKIE, cookies); } // Add the referrer header if (call.getReferrerRef() != null) { requestHeaders.add(HttpConstants.HEADER_REFERRER, call.getReferrerRef().toString()); } // Add the preferences ClientData client = call.getClient(); if (client.getAcceptedMediaTypes().size() > 0) { try { requestHeaders.add(HttpConstants.HEADER_ACCEPT, PreferenceUtils.format(client.getAcceptedMediaTypes())); } catch (IOException ioe) { logger.log(Level.WARNING, "Unable to format the HTTP Accept header", ioe); } } else { requestHeaders.add(HttpConstants.HEADER_ACCEPT, MediaType.ALL.getName()); } if (client.getAcceptedCharacterSets().size() > 0) { try { requestHeaders.add(HttpConstants.HEADER_ACCEPT_CHARSET, PreferenceUtils.format(client.getAcceptedCharacterSets())); } catch (IOException ioe) { logger.log(Level.WARNING, "Unable to format the HTTP Accept header", ioe); } } if (client.getAcceptedEncodings().size() > 0) { try { requestHeaders.add(HttpConstants.HEADER_ACCEPT_ENCODING, PreferenceUtils.format(client.getAcceptedEncodings())); } catch (IOException ioe) { logger.log(Level.WARNING, "Unable to format the HTTP Accept header", ioe); } } if (client.getAcceptedLanguages().size() > 0) { try { requestHeaders.add(HttpConstants.HEADER_ACCEPT_LANGUAGE, PreferenceUtils.format(client.getAcceptedLanguages())); } catch (IOException ioe) { logger.log(Level.WARNING, "Unable to format the HTTP Accept header", ioe); } } // Add the security ChallengeResponse response = call.getSecurity().getChallengeResponse(); if (response != null) { requestHeaders.add(HttpConstants.HEADER_AUTHORIZATION, SecurityUtils.format(response)); } // Send the input representation if (call.getInput() != null) { if (call.getInput().getMediaType() != null) { requestHeaders.add(HttpConstants.HEADER_CONTENT_TYPE, call.getInput().getMediaType().toString()); } if (call.getInput().getEncoding() != null) { requestHeaders.add(HttpConstants.HEADER_CONTENT_ENCODING, call.getInput().getEncoding().toString()); } if (call.getInput().getLanguage() != null) { requestHeaders.add(HttpConstants.HEADER_CONTENT_LANGUAGE, call.getInput().getLanguage().toString()); } } // Add user-defined extension headers ParameterList additionalHeaders = (ParameterList)call.getAttributes().get("restlet.http.requestHeaders"); if(additionalHeaders != null) { for(Parameter param : additionalHeaders) { if( param.getName().equalsIgnoreCase(HttpConstants.HEADER_ACCEPT) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_ACCEPT_CHARSET) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_ACCEPT_ENCODING) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_ACCEPT_LANGUAGE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_ACCEPT_RANGES) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_AGE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_ALLOW) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_AUTHORIZATION) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CACHE_CONTROL) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONNECTION) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONTENT_ENCODING) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONTENT_LANGUAGE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONTENT_LENGTH) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONTENT_LOCATION) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONTENT_MD5) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONTENT_RANGE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_CONTENT_TYPE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_COOKIE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_DATE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_ETAG) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_EXPECT) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_EXPIRES) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_FROM) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_HOST) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_IF_MATCH) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_IF_MODIFIED_SINCE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_IF_NONE_MATCH) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_IF_RANGE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_IF_UNMODIFIED_SINCE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_LAST_MODIFIED) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_LOCATION) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_MAX_FORWARDS) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_PRAGMA) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_PROXY_AUTHENTICATE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_PROXY_AUTHORIZATION) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_RANGE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_REFERRER) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_RETRY_AFTER) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_SERVER) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_SET_COOKIE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_SET_COOKIE2) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_TRAILER) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_TRANSFER_ENCODING) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_TRANSFER_EXTENSION) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_UPGRADE) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_USER_AGENT) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_VARY) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_VIA) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_WARNING) || param.getName().equalsIgnoreCase(HttpConstants.HEADER_WWW_AUTHENTICATE) ) { // Standard headers can't be overriden logger.warning("Addition of the standard header \"" + param.getName() + "\" is not allowed."); } else { requestHeaders.add(param); } } } }
14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/6f2ed99572e9ea05cdf64618f5a0dc37a768860e/HttpClientConverter.java/buggy/plugins/internal/com.noelios.restlet/src/com/noelios/restlet/impl/connector/HttpClientConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 691, 3121, 12, 11895, 1477, 1062, 1477, 16, 3049, 745, 13, 202, 95, 202, 202, 1662, 682, 23129, 273, 1062, 1477, 18, 588, 691, 3121, 5621, 9506, 202, 759, 1436, 326, 729, 4040, 1446, 202, 202, 430, 261, 1991, 18, 588, 1227, 7675, 17994, 1435, 480, 446, 13, 202, 202, 95, 1082, 202, 2293, 3121, 18, 1289, 12, 2940, 2918, 18, 7557, 67, 4714, 67, 15005, 16, 6862, 202, 1991, 18, 588, 1227, 7675, 17994, 10663, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 2293, 3121, 18, 1289, 12, 2940, 2918, 18, 7557, 67, 4714, 67, 15005, 16, 6862, 202, 1733, 18, 5757, 67, 7557, 1769, 202, 202, 97, 202, 202, 759, 1436, 326, 4636, 202, 202, 3418, 751, 2269, 273, 745, 18, 588, 3418, 5621, 202, 202, 430, 261, 4175, 18, 588, 2060, 1435, 480, 446, 13, 202, 202, 95, 1082, 202, 21253, 460, 273, 394, 3225, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2269, 18, 588, 2060, 7675, 1467, 5621, 277, 27245, 1082, 202, 95, 9506, 202, 430, 261, 77, 405, 374, 13, 460, 18, 6923, 2932, 16, 315, 1769, 9506, 202, 1132, 18, 6923, 12, 4175, 18, 588, 2060, 7675, 588, 12, 77, 2934, 17994, 10663, 1082, 202, 97, 1082, 202, 2505, 1477, 18, 588, 691, 3121, 1435, 6862, 202, 18, 1289, 12, 2940, 2918, 18, 7557, 67, 5501, 67, 11793, 16, 460, 18, 10492, 10663, 202, 202, 97, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 691, 3121, 12, 11895, 1477, 1062, 1477, 16, 3049, 745, 13, 202, 95, 202, 202, 1662, 682, 23129, 273, 1062, 1477, 18, 588, 691, 3121, 5621, 9506, 202, 759, 1436, 326, 729, 4040, 1446, 202, 202, 430, 261, 1991, 18, 588, 1227, 7675, 17994, 1435, 480, 446, 13, 202, 202, 95, 1082, 202, 2293, 3121, 18, 1289, 12, 2940, 2918, 18, 7557, 67, 4714, 67, 15005, 16, 6862, 202, 1991, 18, 588, 1227, 7675, 17994, 10663, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 2293, 3121, 18, 1289, 12, 2940, 2918, 18, 7557, 67, 4714, 67, 15005, 16, 6862, 202, 1733, 18, 5757, 67, 7557, 1769, 202, 202, 97, 202, 202, 2 ]
if (c != '\0') { break; }
if (c != '\0') { break; }
public static RubyArray unpack(String encodedString, RubyString formatString) { IRuby runtime = formatString.getRuntime(); RubyArray result = runtime.newArray(); PtrList format = new PtrList(formatString.getValue()); PtrList encode = new PtrList(encodedString); char type = format.nextChar(); // Type to be unpacked while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); // Next indicates to decode using native encoding format if (next == '_' || next == '!') { if (NATIVE_CODES.indexOf(type) == -1) { throw runtime.newArgumentError("'" + next + "' allowed only after types " + NATIVE_CODES); } // We advance in case occurences follows next = format.nextChar(); } // How many occurrences of 'type' we want int occurrences = 0; if (format.isAtEnd()) { occurrences = 1; } else if (next == '*') { occurrences = IS_STAR; next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); occurrences = format.nextAsciiNumber(); next = format.nextChar(); } else { occurrences = type == '@' ? 0 : 1; } // See if we have a converter for the job... Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { decode(runtime, encode, occurrences, result, converter); type = next; continue; } // Otherwise the unpack should be here... switch (type) { case '@' : encode.setPosition(occurrences); break; case '%' : throw runtime.newArgumentError("% is not supported"); case 'A' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } String potential = encode.nextSubstring(occurrences); for (int t = occurrences - 1; occurrences > 0; occurrences--, t--) { char c = potential.charAt(t); if (c != '\0' && c != ' ') { break; } } potential = potential.substring(0, occurrences); result.append(runtime.newString(potential)); } break; case 'Z' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } String potential = encode.nextSubstring(occurrences); for (int t = occurrences - 1; occurrences > 0; occurrences--, t--) { char c = potential.charAt(t); if (c != '\0') { break; } } potential = potential.substring(0, occurrences); result.append(runtime.newString(potential)); } break; case 'a' : if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } result.append(runtime.newString(encode.nextSubstring(occurrences))); break; case 'b' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 8) { occurrences = encode.remaining() * 8; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 7) != 0) { bits >>>= 1; } else { bits = encode.nextChar(); } lElem.append((bits & 1) != 0 ? '1' : '0'); } result.append(runtime.newString(lElem.toString())); } break; case 'B' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 8) { occurrences = encode.remaining() * 8; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 7) != 0) bits <<= 1; else bits = encode.nextChar(); lElem.append((bits & 128) != 0 ? '1' : '0'); } result.append(runtime.newString(lElem.toString())); } break; case 'h' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 2) { occurrences = encode.remaining() * 2; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 1) != 0) { bits >>>= 4; } else { bits = encode.nextChar(); } lElem.append(sHexDigits[bits & 15]); } result.append(runtime.newString(lElem.toString())); } break; case 'H' : { if (occurrences == IS_STAR || occurrences > encode.remaining() * 2) { occurrences = encode.remaining() * 2; } int bits = 0; StringBuffer lElem = new StringBuffer(occurrences); for (int lCurByte = 0; lCurByte < occurrences; lCurByte++) { if ((lCurByte & 1) != 0) bits <<= 4; else bits = encode.nextChar(); lElem.append(sHexDigits[(bits >>> 4) & 15]); } result.append(runtime.newString(lElem.toString())); } break; case 'U' : { if (occurrences == IS_STAR || occurrences > encode.remaining()) { occurrences = encode.remaining(); } //get the correct substring String toUnpack = encode.nextSubstring(occurrences); String lUtf8 = null; try { lUtf8 = new String(toUnpack.getBytes("iso8859-1"), "UTF-8"); } catch (java.io.UnsupportedEncodingException e) { assert false : "can't convert from UTF8"; } char[] c = lUtf8.toCharArray(); for (int lCurCharIdx = 0; occurrences-- > 0 && lCurCharIdx < c.length; lCurCharIdx++) result.append(runtime.newFixnum(c[lCurCharIdx])); } break; case 'X': if (occurrences == IS_STAR) { occurrences = encode.getLength() - encode.remaining(); } try { encode.backup(occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `unpack': X outside of string"); } break; case 'x': if (occurrences == IS_STAR) { occurrences = encode.remaining(); } try { encode.nextSubstring(occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `unpack': x outside of string"); } break; } type = next; } return result; }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/clean/src/org/jruby/util/Pack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 1076, 6167, 12, 780, 3749, 780, 16, 2398, 19817, 780, 27107, 13, 288, 3639, 15908, 10340, 3099, 273, 27107, 18, 588, 5576, 5621, 3639, 19817, 1076, 563, 273, 3099, 18, 2704, 1076, 5621, 3639, 14898, 682, 740, 273, 394, 14898, 682, 12, 2139, 780, 18, 24805, 10663, 3639, 14898, 682, 2017, 273, 394, 14898, 682, 12, 10787, 780, 1769, 3639, 1149, 618, 273, 740, 18, 4285, 2156, 5621, 368, 1412, 358, 506, 24195, 7734, 1323, 12, 5, 2139, 18, 291, 861, 1638, 10756, 288, 5411, 368, 25433, 1024, 618, 16, 740, 434, 783, 618, 16, 15698, 434, 618, 5411, 1149, 1024, 273, 740, 18, 4285, 2156, 5621, 13491, 368, 4804, 8527, 358, 2495, 1450, 6448, 2688, 740, 5411, 309, 261, 4285, 422, 4427, 747, 1024, 422, 15502, 13, 288, 7734, 309, 261, 50, 12992, 67, 17070, 18, 31806, 12, 723, 13, 422, 300, 21, 13, 288, 1171, 202, 12849, 3099, 18, 2704, 1379, 668, 2932, 4970, 397, 1024, 397, 1171, 3196, 3639, 2491, 2935, 1338, 1839, 1953, 315, 397, 423, 12992, 67, 17070, 1769, 7734, 289, 1171, 368, 1660, 8312, 316, 648, 9145, 18842, 764, 13040, 7734, 1024, 273, 740, 18, 4285, 2156, 5621, 5411, 289, 13491, 368, 9017, 4906, 15698, 434, 296, 723, 11, 732, 2545, 5411, 509, 15698, 273, 374, 31, 5411, 309, 261, 2139, 18, 291, 861, 1638, 10756, 288, 2398, 202, 26635, 12228, 273, 404, 31, 5411, 289, 469, 309, 261, 4285, 422, 5306, 13, 288, 2398, 202, 26635, 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, 19817, 1076, 6167, 12, 780, 3749, 780, 16, 2398, 19817, 780, 27107, 13, 288, 3639, 15908, 10340, 3099, 273, 27107, 18, 588, 5576, 5621, 3639, 19817, 1076, 563, 273, 3099, 18, 2704, 1076, 5621, 3639, 14898, 682, 740, 273, 394, 14898, 682, 12, 2139, 780, 18, 24805, 10663, 3639, 14898, 682, 2017, 273, 394, 14898, 682, 12, 10787, 780, 1769, 3639, 1149, 618, 273, 740, 18, 4285, 2156, 5621, 368, 1412, 358, 506, 24195, 7734, 1323, 12, 5, 2139, 18, 291, 861, 1638, 10756, 288, 5411, 368, 25433, 1024, 618, 16, 740, 434, 783, 618, 16, 15698, 434, 618, 5411, 1149, 1024, 273, 740, 18, 4285, 2156, 5621, 13491, 368, 4804, 8527, 358, 2495, 1450, 6448, 2 ]
if (s.equals("") || (s.equals("tt") && m_boardSize <= 19))
if (s.equals("tt") && m_boardSize <= 19)
private Point parsePoint(String s) throws Error { s = s.trim().toLowerCase(); if (s.length() < 2) loadError("Invalid coordinates."); if (s.equals("") || (s.equals("tt") && m_boardSize <= 19)) return null; int x = s.charAt(0) - 'a'; int y = m_boardSize - (s.charAt(1) - 'a') - 1; if (x < 0 || x >= m_boardSize || y < 0 || y >= m_boardSize) loadError("Invalid coordinates."); return new Point(x, y); }
48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/643d5506d9cbccdd9c773d49e29016f3cf72eac4/Reader.java/clean/sgf/Reader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4686, 1109, 2148, 12, 780, 272, 13, 1216, 1068, 565, 288, 3639, 272, 273, 272, 18, 5290, 7675, 869, 5630, 5621, 3639, 309, 261, 87, 18, 2469, 1435, 411, 576, 13, 5411, 1262, 668, 2932, 1941, 5513, 1199, 1769, 3639, 309, 261, 87, 18, 14963, 2932, 748, 7923, 597, 312, 67, 3752, 1225, 1648, 5342, 13, 5411, 327, 446, 31, 3639, 509, 619, 273, 272, 18, 3001, 861, 12, 20, 13, 300, 296, 69, 13506, 3639, 509, 677, 273, 312, 67, 3752, 1225, 300, 261, 87, 18, 3001, 861, 12, 21, 13, 300, 296, 69, 6134, 300, 404, 31, 3639, 309, 261, 92, 411, 374, 747, 619, 1545, 312, 67, 3752, 1225, 747, 677, 411, 374, 747, 677, 1545, 312, 67, 3752, 1225, 13, 5411, 1262, 668, 2932, 1941, 5513, 1199, 1769, 3639, 327, 394, 4686, 12, 92, 16, 677, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4686, 1109, 2148, 12, 780, 272, 13, 1216, 1068, 565, 288, 3639, 272, 273, 272, 18, 5290, 7675, 869, 5630, 5621, 3639, 309, 261, 87, 18, 2469, 1435, 411, 576, 13, 5411, 1262, 668, 2932, 1941, 5513, 1199, 1769, 3639, 309, 261, 87, 18, 14963, 2932, 748, 7923, 597, 312, 67, 3752, 1225, 1648, 5342, 13, 5411, 327, 446, 31, 3639, 509, 619, 273, 272, 18, 3001, 861, 12, 20, 13, 300, 296, 69, 13506, 3639, 509, 677, 273, 312, 67, 3752, 1225, 300, 261, 87, 18, 3001, 861, 12, 21, 13, 300, 296, 69, 6134, 300, 404, 31, 3639, 309, 261, 92, 411, 374, 747, 619, 1545, 312, 67, 3752, 1225, 747, 677, 411, 374, 747, 2 ]
} if (c != '=') {
} else if (c != '=') {
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 11, 294, 368, 423, 1506, 7734, 648, 2337, 26565, 11, 294, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 11, 294, 368, 3602, 62, 7734, 648, 300, 21, 294, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 10792, 368, 9578, 7292, 7734, 648, 296, 296, 294, 7734, 648, 2337, 88, 11, 294, 7734, 648, 2337, 74, 11, 294, 7734, 648, 2337, 86, 11, 294, 7734, 648, 2337, 1611, 23, 11, 294, 368, 2337, 90, 11, 10792, 3476, 67, 15156, 9904, 31, 10792, 1324, 3300, 31, 7734, 648, 6501, 294, 368, 518, 1807, 279, 2879, 10792, 1323, 14015, 71, 273, 1024, 71, 10756, 480, 2337, 82, 6134, 288, 13491, 309, 261, 71, 422, 300, 21, 13, 288, 18701, 327, 374, 31, 13491, 289, 10792, 289, 10792, 368, 4159, 3059, 7734, 648, 2337, 82, 11, 294, 10792, 1620, 261, 844, 18, 588, 14756, 1119, 10756, 288, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 5948, 43, 294, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 42, 1985, 294, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 17591, 294, 18701, 1324, 3300, 31, 13491, 805, 294, 18701, 898, 31, 10792, 289, 10792, 1844, 18, 542, 14756, 1119, 12, 14756, 1119, 18, 2294, 8025, 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, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 11, 294, 368, 423, 1506, 7734, 648, 2337, 26565, 11, 294, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 11, 294, 368, 3602, 62, 7734, 648, 300, 21, 294, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 10792, 368, 9578, 7292, 7734, 648, 296, 296, 294, 7734, 648, 2337, 88, 11, 294, 7734, 648, 2337, 74, 11, 294, 7734, 648, 2337, 86, 11, 294, 7734, 648, 2337, 1611, 23, 11, 294, 368, 2 ]
cl.loadClass("org.codehaus.groovy.grails.domain.RelationshipsTest"); cl.loadClass("org.codehaus.groovy.grails.domain.Test1"); cl.loadClass("org.codehaus.groovy.grails.domain.Test2");
protected void onSetUp() throws Exception { Thread.currentThread().setContextClassLoader(cl); Class[] loadedClasses = cl.getLoadedClasses(); grailsApplication = new DefaultGrailsApplication(loadedClasses,cl); DefaultGrailsDomainConfiguration config = new DefaultGrailsDomainConfiguration(); config.setGrailsApplication(this.grailsApplication); Properties props = new Properties(); props.put("hibernate.connection.username","sa"); props.put("hibernate.connection.password",""); props.put("hibernate.connection.url","jdbc:hsqldb:mem:grailsDB"); props.put("hibernate.connection.driver_class","org.hsqldb.jdbcDriver"); props.put("hibernate.dialect","org.hibernate.dialect.HSQLDialect"); props.put("hibernate.hbm2ddl.auto","create-drop"); //props.put("hibernate.hbm2ddl.auto","update"); config.setProperties(props); //originalClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.cl); this.sessionFactory = config.buildSessionFactory(); if(!TransactionSynchronizationManager.hasResource(this.sessionFactory)) { Session hibSession = this.sessionFactory.openSession(); TransactionSynchronizationManager.bindResource(this.sessionFactory, new SessionHolder(hibSession)); } }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/c1a1d5f9cc68af09af234375c679490067ef0d0f/GrailsHibernateConfigurationTests.java/buggy/test/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateConfigurationTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 603, 694, 1211, 1435, 1216, 1185, 288, 202, 202, 3830, 18, 2972, 3830, 7675, 542, 1042, 7805, 12, 830, 1769, 25083, 202, 797, 8526, 4203, 4818, 273, 927, 18, 588, 8835, 4818, 5621, 202, 202, 2752, 14573, 3208, 273, 394, 2989, 14571, 14573, 3208, 12, 4230, 4818, 16, 830, 1769, 9506, 202, 1868, 14571, 14573, 3748, 1750, 642, 273, 394, 2989, 14571, 14573, 3748, 1750, 5621, 202, 202, 1425, 18, 542, 14571, 14573, 3208, 12, 2211, 18, 2752, 14573, 3208, 1769, 202, 202, 2297, 3458, 273, 394, 6183, 5621, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 4071, 18, 5053, 15937, 13098, 8863, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 4071, 18, 3664, 3113, 3660, 1769, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 4071, 18, 718, 15937, 24687, 30, 4487, 1217, 1966, 30, 3917, 30, 2752, 14573, 2290, 8863, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 4071, 18, 7407, 67, 1106, 15937, 3341, 18, 4487, 1217, 1966, 18, 24687, 4668, 8863, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 25909, 386, 15937, 3341, 18, 15769, 22828, 18, 25909, 386, 18, 44, 3997, 23030, 8863, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 76, 25709, 22, 449, 80, 18, 6079, 15937, 2640, 17, 7285, 8863, 9506, 202, 759, 9693, 18, 458, 2932, 15769, 22828, 18, 76, 25709, 22, 449, 80, 18, 6079, 15937, 2725, 8863, 9506, 202, 1425, 18, 542, 2297, 12, 9693, 1769, 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, 1117, 918, 603, 694, 1211, 1435, 1216, 1185, 288, 202, 202, 3830, 18, 2972, 3830, 7675, 542, 1042, 7805, 12, 830, 1769, 25083, 202, 797, 8526, 4203, 4818, 273, 927, 18, 588, 8835, 4818, 5621, 202, 202, 2752, 14573, 3208, 273, 394, 2989, 14571, 14573, 3208, 12, 4230, 4818, 16, 830, 1769, 9506, 202, 1868, 14571, 14573, 3748, 1750, 642, 273, 394, 2989, 14571, 14573, 3748, 1750, 5621, 202, 202, 1425, 18, 542, 14571, 14573, 3208, 12, 2211, 18, 2752, 14573, 3208, 1769, 202, 202, 2297, 3458, 273, 394, 6183, 5621, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 4071, 18, 5053, 15937, 13098, 8863, 202, 202, 9693, 18, 458, 2932, 15769, 22828, 18, 4071, 18, 2 ]
_context.statManager().addRateData("router.throttleTunnelProbTestSlow", (long)(avg10m-avg60m), 0);
_context.statManager().addRateData("router.throttleTunnelProbTestSlow", (long)(avg1m-avg60m), 0);
public int acceptTunnelRequest() { if (_context.getProperty(Router.PROP_SHUTDOWN_IN_PROGRESS) != null) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are shutting down ASAP"); return TunnelHistory.TUNNEL_REJECT_CRIT; } long lag = _context.jobQueue().getMaxLag(); RateStat rs = _context.statManager().getRate("transport.sendProcessingTime"); Rate r = null; if (rs != null) r = rs.getRate(60*1000); double processTime = (r != null ? r.getAverageValue() : 0); if (processTime > 5000) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + "since the 1 minute message processing time is too slow (" + processTime + ")"); _context.statManager().addRateData("router.throttleTunnelProcessingTime1m", (long)processTime, (long)processTime); return TunnelHistory.TUNNEL_REJECT_TRANSIENT_OVERLOAD; } int numTunnels = _context.tunnelManager().getParticipatingCount(); if (numTunnels > getMinThrottleTunnels()) { double growthFactor = getTunnelGrowthFactor(); Rate avgTunnels = _context.statManager().getRate("tunnel.participatingTunnels").getRate(60*60*1000); if (avgTunnels != null) { double avg = 0; if (avgTunnels.getLastEventCount() > 0) avg = avgTunnels.getAverageValue(); else avg = avgTunnels.getLifetimeAverageValue(); int min = getMinThrottleTunnels(); if (avg < min) avg = min; if ( (avg > 0) && (avg*growthFactor < numTunnels) ) { // we're accelerating, lets try not to take on too much too fast double probAccept = (avg*growthFactor) / numTunnels; int v = _context.random().nextInt(100); if (v < probAccept*100) { // ok if (_log.shouldLog(Log.INFO)) _log.info("Probabalistically accept tunnel request (p=" + probAccept + " v=" + v + " avg=" + avg + " current=" + numTunnels + ")"); } else { if (_log.shouldLog(Log.WARN)) _log.warn("Probabalistically refusing tunnel request (avg=" + avg + " current=" + numTunnels + ")"); _context.statManager().addRateData("router.throttleTunnelProbTooFast", (long)(numTunnels-avg), 0); return TunnelHistory.TUNNEL_REJECT_PROBABALISTIC_REJECT; } } else { if (_log.shouldLog(Log.INFO)) _log.info("Accepting tunnel request, since the average is " + avg + " and we only have " + numTunnels + ")"); } } Rate tunnelTestTime10m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(10*60*1000); Rate tunnelTestTime60m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(60*60*1000); if ( (tunnelTestTime10m != null) && (tunnelTestTime60m != null) && (tunnelTestTime10m.getLastEventCount() > 0) ) { double avg10m = tunnelTestTime10m.getAverageValue(); double avg60m = 0; if (tunnelTestTime60m.getLastEventCount() > 0) avg60m = tunnelTestTime60m.getAverageValue(); else avg60m = tunnelTestTime60m.getLifetimeAverageValue(); if (avg60m < 2000) avg60m = 2000; // minimum before complaining if ( (avg60m > 0) && (avg10m > avg60m * growthFactor) ) { double probAccept = (avg60m*growthFactor)/avg10m; int v = _context.random().nextInt(100); if (v < probAccept*100) { // ok if (_log.shouldLog(Log.INFO)) _log.info("Probabalistically accept tunnel request (p=" + probAccept + " v=" + v + " test time avg 10m=" + avg10m + " 60m=" + avg60m + ")"); } else { if (_log.shouldLog(Log.WARN)) _log.warn("Probabalistically refusing tunnel request (test time avg 10m=" + avg10m + " 60m=" + avg60m + ")"); _context.statManager().addRateData("router.throttleTunnelProbTestSlow", (long)(avg10m-avg60m), 0); return TunnelHistory.TUNNEL_REJECT_PROBABALISTIC_REJECT; } } } } String maxTunnels = _context.getProperty(PROP_MAX_TUNNELS); if (maxTunnels != null) { try { int max = Integer.parseInt(maxTunnels); if (numTunnels >= max) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are already participating in " + numTunnels + " (our max is " + max + ")"); _context.statManager().addRateData("router.throttleTunnelMaxExceeded", numTunnels, 0); return TunnelHistory.TUNNEL_REJECT_BANDWIDTH; } } catch (NumberFormatException nfe) { // no default, ignore it } } // ok, we're not hosed, but can we handle the bandwidth requirements // of another tunnel? rs = _context.statManager().getRate("tunnel.participatingMessageCount"); r = null; double messagesPerTunnel = DEFAULT_MESSAGES_PER_TUNNEL_ESTIMATE; if (rs != null) { r = rs.getRate(10*60*1000); if (r != null) { if (r.getLastEventCount() > 0) messagesPerTunnel = r.getAverageValue(); else messagesPerTunnel = r.getLifetimeAverageValue(); } } if (messagesPerTunnel < DEFAULT_MESSAGES_PER_TUNNEL_ESTIMATE) messagesPerTunnel = DEFAULT_MESSAGES_PER_TUNNEL_ESTIMATE; int participatingTunnels = _context.tunnelManager().getParticipatingCount(); double bytesAllocated = messagesPerTunnel * participatingTunnels * 1024; if (!allowTunnel(bytesAllocated, numTunnels)) { _context.statManager().addRateData("router.throttleTunnelBandwidthExceeded", (long)bytesAllocated, 0); return TunnelHistory.TUNNEL_REJECT_BANDWIDTH; } _context.statManager().addRateData("tunnel.bytesAllocatedAtAccept", (long)bytesAllocated, 60*10*1000); if (_log.shouldLog(Log.DEBUG)) _log.debug("Accepting a new tunnel request (now allocating " + bytesAllocated + " bytes across " + numTunnels + " tunnels with lag of " + lag + ")"); return TUNNEL_ACCEPT; }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/5f17557e54ec9089eb6c5f088a504ffb0c22e153/RouterThrottleImpl.java/buggy/router/java/src/net/i2p/router/RouterThrottleImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 2791, 20329, 691, 1435, 288, 540, 309, 261, 67, 2472, 18, 588, 1396, 12, 8259, 18, 15811, 67, 2664, 1693, 12711, 67, 706, 67, 24022, 13, 480, 446, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 7734, 389, 1330, 18, 8935, 2932, 1957, 9940, 14825, 590, 3241, 732, 854, 24376, 2588, 5355, 2203, 8863, 5411, 327, 399, 8564, 5623, 18, 56, 2124, 50, 2247, 67, 862, 5304, 67, 5093, 1285, 31, 3639, 289, 7734, 1525, 17241, 273, 389, 2472, 18, 4688, 3183, 7675, 588, 2747, 26093, 5621, 3639, 13025, 5000, 3597, 273, 389, 2472, 18, 5642, 1318, 7675, 588, 4727, 2932, 13049, 18, 4661, 7798, 950, 8863, 3639, 13025, 436, 273, 446, 31, 3639, 309, 261, 5453, 480, 446, 13, 5411, 436, 273, 3597, 18, 588, 4727, 12, 4848, 14, 18088, 1769, 3639, 1645, 1207, 950, 273, 261, 86, 480, 446, 692, 436, 18, 588, 17115, 620, 1435, 294, 374, 1769, 3639, 309, 261, 2567, 950, 405, 20190, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 2932, 1957, 9940, 14825, 590, 598, 326, 1719, 17241, 434, 315, 397, 17241, 18701, 397, 315, 9256, 326, 404, 8044, 883, 4929, 813, 353, 4885, 11816, 7566, 397, 1207, 950, 397, 7310, 1769, 5411, 389, 2472, 18, 5642, 1318, 7675, 1289, 4727, 751, 2932, 10717, 18, 27971, 298, 20329, 7798, 950, 21, 81, 3113, 261, 5748, 13, 2567, 950, 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, 2791, 20329, 691, 1435, 288, 540, 309, 261, 67, 2472, 18, 588, 1396, 12, 8259, 18, 15811, 67, 2664, 1693, 12711, 67, 706, 67, 24022, 13, 480, 446, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 7734, 389, 1330, 18, 8935, 2932, 1957, 9940, 14825, 590, 3241, 732, 854, 24376, 2588, 5355, 2203, 8863, 5411, 327, 399, 8564, 5623, 18, 56, 2124, 50, 2247, 67, 862, 5304, 67, 5093, 1285, 31, 3639, 289, 7734, 1525, 17241, 273, 389, 2472, 18, 4688, 3183, 7675, 588, 2747, 26093, 5621, 3639, 13025, 5000, 3597, 273, 389, 2472, 18, 5642, 1318, 7675, 588, 4727, 2932, 13049, 18, 4661, 7798, 950, 8863, 3639, 13025, 2 ]
if (re.executeRegExp(funObj, target, ip, true) != Boolean.TRUE)
if (re.executeRegExp(funObj, target, ip, NativeRegExp.TEST) != Boolean.TRUE)
public int find_split(Function funObj, String target, String separator, Object reObj, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp) { int i = ip[0]; int length = target.length(); int result; Context cx = Context.getCurrentContext(); int version = cx.getLanguageVersion(); NativeRegExp re = (NativeRegExp) reObj; again: while (true) { // imitating C label /* JS1.2 deviated from Perl by never matching at end of string. */ int ipsave = ip[0]; // reuse ip to save object creation ip[0] = i; if (re.executeRegExp(funObj, target, ip, true) != Boolean.TRUE) { // Mismatch: ensure our caller advances i past end of string. ip[0] = ipsave; matchlen[0] = 1; matched[0] = false; return length; } i = ip[0]; ip[0] = ipsave; matched[0] = true; SubString sep = this.lastMatch; matchlen[0] = sep.length; if (matchlen[0] == 0) { /* * Empty string match: never split on an empty * match at the start of a find_split cycle. Same * rule as for an empty global match in * match_or_replace. */ if (i == ip[0]) { /* * "Bump-along" to avoid sticking at an empty * match, but don't bump past end of string -- * our caller must do that by adding * sep->length to our return value. */ if (i == length) { if (version == Context.VERSION_1_2) { matchlen[0] = 1; result = i; } else result = -1; break; } i++; continue again; // imitating C goto } } // PR_ASSERT((size_t)i >= sep->length); result = i - matchlen[0]; break; } int size = parens.size(); parensp[0] = new String[size]; for (int num = 0; num < size; num++) { SubString parsub = getParenSubString(num); parensp[0][num] = parsub.toString(); } return result; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/4aee7d25d756bce350cfec71216aff6e8c8bbc4b/RegExpImpl.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1104, 67, 4939, 12, 2083, 9831, 2675, 16, 514, 1018, 16, 514, 4182, 16, 21821, 1033, 283, 2675, 16, 509, 8526, 2359, 16, 509, 8526, 845, 1897, 16, 21821, 1250, 8526, 4847, 16, 514, 63, 6362, 65, 22146, 1752, 13, 565, 288, 3639, 509, 277, 273, 2359, 63, 20, 15533, 3639, 509, 769, 273, 1018, 18, 2469, 5621, 3639, 509, 563, 31, 3639, 1772, 9494, 273, 1772, 18, 588, 3935, 1042, 5621, 3639, 509, 1177, 273, 9494, 18, 588, 3779, 1444, 5621, 3639, 16717, 13673, 283, 273, 261, 9220, 13673, 13, 283, 2675, 31, 3639, 3382, 30, 3639, 1323, 261, 3767, 13, 288, 225, 368, 709, 305, 1776, 385, 1433, 5411, 1748, 6756, 21, 18, 22, 27492, 690, 628, 5722, 80, 635, 5903, 3607, 622, 679, 434, 533, 18, 1195, 5411, 509, 13872, 836, 273, 2359, 63, 20, 15533, 368, 11827, 2359, 358, 1923, 733, 6710, 5411, 2359, 63, 20, 65, 273, 277, 31, 5411, 309, 261, 266, 18, 8837, 13673, 12, 12125, 2675, 16, 1018, 16, 2359, 16, 16717, 13673, 18, 16961, 13, 480, 3411, 18, 18724, 13, 2398, 288, 7734, 368, 16584, 1916, 30, 3387, 3134, 4894, 17825, 6872, 277, 8854, 679, 434, 533, 18, 7734, 2359, 63, 20, 65, 273, 13872, 836, 31, 7734, 845, 1897, 63, 20, 65, 273, 404, 31, 7734, 4847, 63, 20, 65, 273, 629, 31, 7734, 327, 769, 31, 5411, 289, 5411, 277, 273, 2359, 63, 20, 15533, 5411, 2359, 63, 20, 65, 273, 13872, 836, 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, 1104, 67, 4939, 12, 2083, 9831, 2675, 16, 514, 1018, 16, 514, 4182, 16, 21821, 1033, 283, 2675, 16, 509, 8526, 2359, 16, 509, 8526, 845, 1897, 16, 21821, 1250, 8526, 4847, 16, 514, 63, 6362, 65, 22146, 1752, 13, 565, 288, 3639, 509, 277, 273, 2359, 63, 20, 15533, 3639, 509, 769, 273, 1018, 18, 2469, 5621, 3639, 509, 563, 31, 3639, 1772, 9494, 273, 1772, 18, 588, 3935, 1042, 5621, 3639, 509, 1177, 273, 9494, 18, 588, 3779, 1444, 5621, 3639, 16717, 13673, 283, 273, 261, 9220, 13673, 13, 283, 2675, 31, 3639, 3382, 30, 3639, 1323, 261, 3767, 13, 288, 225, 368, 709, 305, 1776, 385, 1433, 5411, 1748, 6756, 21, 18, 22, 2 ]
/* (non-Javadoc) * @see org.argouml.ui.targetmanager.TargetListener#targetRemoved(org.argouml.ui.targetmanager.TargetEvent) */ public void targetRemoved(TargetEvent e) { counter++; TargetManager.getInstance().addTarget(new Object()); TargetManager.getInstance().setTarget(new Object()); list.add(new Object()); TargetManager.getInstance().setTargets(list); TargetManager.getInstance().setTarget(new Object());
/* (non-Javadoc) * @see org.argouml.ui.targetmanager.TargetListener#targetRemoved(org.argouml.ui.targetmanager.TargetEvent) */ public void targetRemoved(TargetEvent e) { counter++; TargetManager.getInstance().addTarget(new Object()); TargetManager.getInstance().setTarget(new Object()); list.add(new Object()); TargetManager.getInstance().setTargets(list); TargetManager.getInstance().setTarget(new Object());
public void testTransaction() { class Listener implements TargetListener { int counter = 0; List list = new ArrayList(); /* (non-Javadoc) * @see org.argouml.ui.targetmanager.TargetListener#targetAdded(org.argouml.ui.targetmanager.TargetEvent) */ public void targetAdded(TargetEvent e) { counter++; TargetManager.getInstance().addTarget(new Object()); TargetManager.getInstance().setTarget(new Object()); list.add(new Object()); TargetManager.getInstance().setTargets(list); TargetManager.getInstance().setTarget(new Object()); } /* (non-Javadoc) * @see org.argouml.ui.targetmanager.TargetListener#targetRemoved(org.argouml.ui.targetmanager.TargetEvent) */ public void targetRemoved(TargetEvent e) { counter++; TargetManager.getInstance().addTarget(new Object()); TargetManager.getInstance().setTarget(new Object()); list.add(new Object()); TargetManager.getInstance().setTargets(list); TargetManager.getInstance().setTarget(new Object()); } /* (non-Javadoc) * @see org.argouml.ui.targetmanager.TargetListener#targetSet(org.argouml.ui.targetmanager.TargetEvent) */ public void targetSet(TargetEvent e) { counter++; TargetManager.getInstance().addTarget(new Object()); TargetManager.getInstance().setTarget(new Object()); list.add(new Object()); TargetManager.getInstance().setTargets(list); TargetManager.getInstance().setTarget(new Object()); } } Listener listener = new Listener(); TargetManager.getInstance().addTargetListener(listener); TargetManager.getInstance().addTarget(new Object()); assertEquals(1, listener.counter); assertEquals(1, listener.counter); listener = new Listener(); TargetManager.getInstance().addTargetListener(listener); TargetManager.getInstance().setTarget(new Object()); assertEquals(1, listener.counter); listener = new Listener(); List list = new ArrayList(); list.add(new Object()); TargetManager.getInstance().addTargetListener(listener); TargetManager.getInstance().setTargets(list); list.add(new Object()); assertEquals(1, listener.counter); listener = new Listener(); TargetManager.getInstance().addTargetListener(listener); TargetManager.getInstance().removeTarget(list.get(0)); assertEquals(1, listener.counter); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5f6191c876d7ba33373fe98de4e3c7d94a09c303/TestTargetManager.java/clean/tests/org/argouml/ui/targetmanager/TestTargetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3342, 1435, 288, 202, 202, 1106, 10652, 4792, 5916, 2223, 288, 1082, 202, 474, 3895, 273, 374, 31, 1082, 202, 682, 666, 273, 394, 2407, 5621, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 1082, 202, 14, 632, 5946, 2358, 18, 26999, 22192, 18, 4881, 18, 3299, 4181, 18, 2326, 2223, 7, 3299, 8602, 12, 3341, 18, 26999, 22192, 18, 4881, 18, 3299, 4181, 18, 2326, 1133, 13, 1082, 202, 5549, 1082, 202, 482, 918, 1018, 8602, 12, 2326, 1133, 425, 13, 288, 9506, 202, 7476, 9904, 31, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 1289, 2326, 12, 2704, 1033, 10663, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 542, 2326, 12, 2704, 1033, 10663, 9506, 202, 1098, 18, 1289, 12, 2704, 1033, 10663, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 542, 9432, 12, 1098, 1769, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 542, 2326, 12, 2704, 1033, 10663, 1082, 202, 97, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946, 2358, 18, 26999, 22192, 18, 4881, 18, 3299, 4181, 18, 2326, 2223, 7, 3299, 10026, 12, 3341, 18, 26999, 22192, 18, 4881, 18, 3299, 4181, 18, 2326, 1133, 13, 9506, 1195, 1082, 202, 482, 918, 1018, 10026, 12, 2326, 1133, 425, 13, 288, 9506, 202, 7476, 9904, 31, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 1289, 2326, 12, 2704, 1033, 10663, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 542, 2326, 12, 2704, 1033, 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, 1842, 3342, 1435, 288, 202, 202, 1106, 10652, 4792, 5916, 2223, 288, 1082, 202, 474, 3895, 273, 374, 31, 1082, 202, 682, 666, 273, 394, 2407, 5621, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 1082, 202, 14, 632, 5946, 2358, 18, 26999, 22192, 18, 4881, 18, 3299, 4181, 18, 2326, 2223, 7, 3299, 8602, 12, 3341, 18, 26999, 22192, 18, 4881, 18, 3299, 4181, 18, 2326, 1133, 13, 1082, 202, 5549, 1082, 202, 482, 918, 1018, 8602, 12, 2326, 1133, 425, 13, 288, 9506, 202, 7476, 9904, 31, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 1289, 2326, 12, 2704, 1033, 10663, 9506, 202, 2326, 1318, 18, 588, 1442, 7675, 542, 2326, 12, 2704, 2 ]
if(backoff > 0 && backoff < 1000 )
if((backoff > 0) && (backoff < 1000) )
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } StringBuffer buf = new StringBuffer(1024); //HTTPRequest request = new HTTPRequest(uri); final boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); /* gather connection statistics */ int numberOfConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_DISABLED); int numberOfListening = node.getPeerNodeStatusSize(Node.PEER_NODE_STATUS_LISTENING); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfListening; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew+numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = new Integer(numberOfSimpleConnected).toString(); } String pageTitle = titleCountString + " Darknet Peers"; ctx.getPageMaker().makeHead(buf, pageTitle); // FIXME! We need some nice images PeerNode[] peerNodes = node.getDarknetConnections(); long now = System.currentTimeMillis(); node.alerts.toSummaryHtml(buf); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = (int) node.getNetworkSizeEstimate( 0 ); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); buf.append("<table class=\"column\"><tr><td class=\"first\">"); /* node status overview box */ if(advancedEnabled) { buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Node status overview</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); buf.append("<li>bwlimitDelayTime:&nbsp;").append(bwlimitDelayTime).append("ms</li>"); buf.append("<li>nodeAveragePingTime:&nbsp;").append(nodeAveragePingTime).append("ms</li>"); buf.append("<li>networkSizeEstimate:&nbsp;").append(networkSizeEstimate).append("&nbsp;nodes</li>"); buf.append("<li>nodeUptime:&nbsp;").append(nodeUptimeString).append("</li>"); buf.append("<li>missRoutingDistance:&nbsp;").append(fix4.format(missRoutingDistance)).append("</li>"); buf.append("<li>backedoffPercent:&nbsp;").append(fix1.format(backedoffPercent)).append("</li>"); buf.append("</ul></div>"); buf.append("</div>\n"); buf.append("</td><td>"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); buf.append("<div class=\"infobox\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Current Activity\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { buf.append("Your node is not processing any requests right now."); } else { buf.append("<ul id=\"activity\">\n"); if (numInserts > 0) { buf.append("<li>Inserts:&nbsp;").append(numInserts).append("</li>"); } if (numRequests > 0) { buf.append("<li>Requests:&nbsp;").append(numRequests).append("</li>"); } if (numTransferringRequests > 0) { buf.append("<li>Transferring&nbsp;Requests:&nbsp;").append(numTransferringRequests).append("</li>"); } if(advancedEnabled) { if (numARKFetchers > 0) { buf.append("<li>ARK&nbsp;Fetch&nbsp;Requests:&nbsp;").append(numARKFetchers).append("</li>"); } } buf.append("</ul>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); buf.append("</td><td>"); // Peer statistics box buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer statistics</div>"); buf.append("<div class=\"infobox-content\">"); buf.append("<ul>"); if (numberOfConnected > 0) { buf.append("<li><span class=\"peer_connected\">Connected:&nbsp;").append(numberOfConnected).append("</span></li>"); } if (numberOfRoutingBackedOff > 0) { String backoffName = "Busy"; if(advancedEnabled) { backoffName = "Backed off"; } buf.append("<li><span class=\"peer_backedoff\">").append(backoffName).append(":&nbsp;").append(numberOfRoutingBackedOff).append("</span></li>"); } if (numberOfTooNew > 0) { buf.append("<li><span class=\"peer_too_new\">Too new:&nbsp;").append(numberOfTooNew).append("</span></li>"); } if (numberOfTooOld > 0) { buf.append("<li><span class=\"peer_too_old\">Too old:&nbsp;").append(numberOfTooOld).append("</span></li>"); } if (numberOfDisconnected > 0) { buf.append("<li><span class=\"peer_disconnected\">Disconnected:&nbsp;").append(numberOfDisconnected).append("</span></li>"); } if (numberOfNeverConnected > 0) { buf.append("<li><span class=\"peer_never_connected\">Never Connected:&nbsp;").append(numberOfNeverConnected).append("</span></li>"); } if (numberOfDisabled > 0) { buf.append("<li><span class=\"peer_never_connected\">Disabled:&nbsp;").append(numberOfDisabled).append("</span></li>"); // **FIXME** } if (numberOfListening > 0) { buf.append("<li><span class=\"peer_never_connected\">Listening:&nbsp;").append(numberOfListening).append("</span></li>"); // **FIXME** } buf.append("</ul>"); buf.append("</div>"); buf.append("</div>\n"); // Peer routing backoff reason box if(advancedEnabled) { buf.append("</td><td class=\"last\">"); buf.append("<div class=\"infobox\">"); buf.append("<div class=\"infobox-header\">Peer backoff reasons</div>"); buf.append("<div class=\"infobox-content\">"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { buf.append("Good, your node is not backed off from any peers!<br/>\n"); } else { buf.append("<ul>\n"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { buf.append("<li>").append(routingBackoffReasons[i]).append(":&nbsp;").append(reasonCount).append("</li>\n"); } } buf.append("</ul>\n"); } buf.append("</div>"); buf.append("</div>\n"); } buf.append("</td></tr></table>\n"); buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("My Peers"); if(advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { buf.append(" <a href=\"displaymessagetypes.html\">(more detailed)</a>"); } } buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); StringBuffer buf2 = new StringBuffer(1024); buf2.append("<table class=\"darknet_connections\">\n"); buf2.append(" <tr>\n"); buf2.append(" <th></th>\n"); buf2.append(" <th>Status</th>\n"); buf2.append(" <th><span title=\"Click on the nodename link to send a N2NTM\" style=\"border-bottom:1px dotted;cursor:help;\">Name</span></th>\n"); if(advancedEnabled) { buf2.append(" <th><span title=\"Address:Port\" style=\"border-bottom:1px dotted;cursor:help;\">Address</span></th>\n"); } buf2.append(" <th>Version</th>\n"); if(advancedEnabled) { buf2.append(" <th>Location</th>\n"); buf2.append(" <th><span title=\"Temporarily disconnected. Other node busy? Wait time(s) remaining/total\" style=\"border-bottom:1px dotted;cursor:help;\">Backoff</span></th>\n"); } buf2.append(" <th><span title=\"How long since the node was last seen\" style=\"border-bottom:1px dotted;cursor:help;\">Idle</span></th>\n"); buf2.append(" </tr>\n"); if (peerNodes.length == 0) { buf2.append("<tr><td colspan=\"8\">Freenet can't work - you have not added any peers so far. <a href=\"/\">Go here</a> and read the top infobox to see how it's done.</td></tr>\n"); buf2.append("</table>\n"); // buf.append(buf2); } else { // Create array Object[][] rows = new Object[peerNodes.length][]; for(int i=0;i<peerNodes.length;i++) { PeerNode pn = peerNodes[i]; long routingBackedOffUntil = pn.getRoutingBackedOffUntil(); int backoff = (int)(Math.max(routingBackedOffUntil - now, 0)); // Don't list the backoff as zero before it's actually zero if(backoff > 0 && backoff < 1000 ) backoff = 1000; // Elements must be HTML encoded. Object[] row = new Object[10]; // where [0] is the pn object and 9 is the node name only for sorting! rows[i] = row; Object status = new Integer(pn.getPeerNodeStatus()); long idle = pn.lastReceivedPacketTime(); if(((Integer) status).intValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) idle = pn.getPeerAddedTime(); String lastBackoffReasonOutputString = ""; if(advancedEnabled) { String backoffReason = pn.getLastBackoffReason(); if( backoffReason != null ) { lastBackoffReasonOutputString = "/"+backoffReason; } else { lastBackoffReasonOutputString = "/"; } } String avgPingTimeString = ""; if(advancedEnabled) { if(pn.isConnected()) { avgPingTimeString = " ("+(int) pn.averagePingTime()+"ms)"; } } String versionPrefixString = ""; String versionString = ""; String versionSuffixString = ""; if(pn.publicInvalidVersion() || pn.publicReverseInvalidVersion()) { versionPrefixString = "<span class=\"peer_version_problem\">"; versionSuffixString = "</span>"; } String namePrefixString = ""; String nameSuffixString = ""; if(pn.isConnected()) { namePrefixString = "<a href=\"/send_n2ntm/?peernode_hashcode="+pn.hashCode()+"\">"; nameSuffixString = "</a>"; } if(advancedEnabled) { versionString = HTMLEncoder.encode(pn.getVersion()); } else { versionString = HTMLEncoder.encode(pn.getSimpleVersion()); } row[0] = pn; row[1] = "<input type=\"checkbox\" name=\"node_"+pn.hashCode()+"\" />"; row[2] = status; row[3] = namePrefixString+HTMLEncoder.encode(pn.getName())+nameSuffixString; row[4] = ( pn.getDetectedPeer() != null ? HTMLEncoder.encode(pn.getDetectedPeer().toString()) : "(address unknown)" ) + avgPingTimeString; row[5] = versionPrefixString+versionString+versionSuffixString; row[6] = new Double(pn.getLocation().getValue()); row[7] = fix1.format(pn.backedOffPercent.currentValue())+" "+backoff/1000 + "/" + pn.getRoutingBackoffLength()/1000+lastBackoffReasonOutputString; row[8] = idleToString(now, idle, ((Integer) status).intValue()); row[9] = HTMLEncoder.encode(pn.getName()); } // Sort array Arrays.sort(rows, new MyComparator()); // Convert status codes into status strings for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; String arkAsterisk = ""; if(advancedEnabled) { if(((PeerNode) row[0]).isFetchingARK()) { arkAsterisk = "*"; } } String statusString = ((PeerNode) row[0]).getPeerNodeStatusString(); if(!advancedEnabled && ((PeerNode) row[0]).getPeerNodeStatus() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF) { statusString = "BUSY"; } row[2] = "<span class=\""+((PeerNode) row[0]).getPeerNodeStatusCSSClassName()+"\">"+statusString+arkAsterisk+"</span>"; } // Turn array into HTML for(int i=0;i<rows.length;i++) { Object[] row = rows[i]; buf2.append("<tr>"); for(int j=1;j<row.length;j++) { // skip index 0 as it's the PeerNode object if(j == 9) { // skip index 9 as it's used for sorting purposes only continue; } if(!advancedEnabled) { // if not in advanced Darknet page output mode if( j == 4 || j == 6 || j == 7 ) { // skip IP address/name, location and backoff times continue; } } buf2.append("<td>"+row[j]+"</td>"); } buf2.append("</tr>\n"); if (path.endsWith("displaymessagetypes.html")) { buf2.append("<tr class=\"messagetypes\"><td colspan=\"8\">\n"); buf2.append("<table class=\"sentmessagetypes\">\n"); buf2.append("<tr><th>Sent Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeSentMessagesToStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("<table class=\"receivedmessagetypes\">\n"); buf2.append("<tr><th>Received Message Type</th><th>Count</th></tr>\n"); for (Enumeration keys=((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().keys(); keys.hasMoreElements(); ) { Object curkey = keys.nextElement(); buf2.append("<tr><td>"); buf2.append((String)curkey); buf2.append("</td><td>"); buf2.append(((Long)((PeerNode)row[0]).getLocalNodeReceivedMessagesFromStatistic().get(curkey)) + ""); buf2.append("</td></tr>\n"); } buf2.append("</table>\n"); buf2.append("</td></tr>\n"); } } buf2.append("</table>\n"); // buf.append(buf2); // if(!advancedEnabled) { buf.append("<input type=\"submit\" name=\"remove\" value=\"Remove selected peers\" />"); } else { buf.append("<select name=\"action\">\n"); buf.append(" <option value=\"\">-- Select Action --</option>\n"); buf.append(" <option value=\"enable\">Enable Selected Peers</option>\n"); buf.append(" <option value=\"disable\">Disable Selected Peers</option>\n"); buf.append(" <option value=\"set_listen_only\">On Selected Peers, Set ListenOnly</option>\n"); buf.append(" <option value=\"clear_listen_only\">On Selected Peers, Clear ListenOnly</option>\n"); buf.append(" <option value=\"\">-- -- --</option>\n"); buf.append(" <option value=\"remove\">Remove Selected Peers</option>\n"); buf.append("</select>\n"); buf.append("<input type=\"submit\" name=\"submit\" value=\"Go\" />\n"); buf.append("&nbsp;&nbsp;&nbsp;<span class=\"darknet_connections\">* Requesting ARK</span>\n"); } buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("</form>\n"); } buf.append("</div>\n"); buf.append("</div>\n"); // new peer addition box buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Add another peer\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<form action=\".\" method=\"post\" enctype=\"multipart/form-data\">\n"); buf.append("Reference:<br />\n"); buf.append("<textarea id=\"reftext\" name=\"ref\" rows=\"8\" cols=\"74\"></textarea>\n"); buf.append("<br />\n"); buf.append("or URL:\n"); buf.append("<input id=\"refurl\" type=\"text\" name=\"url\" />\n"); buf.append("<br />\n"); buf.append("or file:\n"); buf.append("<input id=\"reffile\" type=\"file\" name=\"reffile\" />\n"); buf.append("<br />\n"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\"").append(node.formPassword).append("\" />"); buf.append("<input type=\"submit\" name=\"add\" value=\"Add\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // our reference buf.append("<div class=\"infobox infobox-normal\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("<a href=\"myref.txt\">My Reference</a>\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("<pre id=\"reference\">\n"); buf.append(HTMLEncoder.encode(this.node.exportPublicFieldSet().toString())); buf.append("</pre>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.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, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 780, 1892, 1681, 273, 394, 6674, 12, 2163, 3247, 1769, 9506, 202, 759, 23891, 590, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 6385, 1250, 16111, 1526, 273, 756, 18, 588, 774, 361, 1810, 2170, 7675, 291, 23618, 40, 1313, 2758, 1526, 5621, 9506, 202, 20308, 11090, 1459, 7691, 1195, 202, 202, 474, 7922, 8932, 273, 756, 18, 588, 6813, 907, 1482, 1225, 12, 907, 18, 1423, 654, 67, 8744, 67, 8608, 67, 29011, 1769, 202, 202, 474, 7922, 13966, 2711, 329, 7210, 273, 756, 18, 588, 6813, 907, 1482, 1225, 12, 907, 18, 1423, 654, 67, 8744, 67, 8608, 67, 1457, 1693, 1360, 67, 8720, 2056, 67, 8797, 1769, 202, 202, 474, 7922, 10703, 1908, 273, 756, 18, 588, 6813, 907, 1482, 1225, 12, 907, 18, 1423, 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, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, 588, 743, 5621, 202, 202, 430, 12, 803, 18, 5839, 1190, 2932, 4811, 1734, 18, 5830, 6, 3719, 288, 1082, 202, 5784, 974, 694, 2662, 273, 756, 18, 6530, 4782, 974, 694, 5621, 1082, 202, 780, 2289, 1352, 273, 394, 17436, 5621, 1082, 202, 2556, 18, 2626, 774, 12, 5328, 1769, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 4044, 16, 315, 955, 19, 7446, 3113, 315, 3141, 3113, 1352, 18, 10492, 10663, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2 ]
for (int i = 0; i < l.length; i++) {
for(int i = 0; i < l.length; i++) {
public void connectionDidClose() { this.connected = false; if (Preferences.instance().getBoolean("connection.keepalive") && this.keepAliveTimer != null) { this.keepAliveTimer.cancel(); } this.cache().clear(); SessionPool.instance().release(this); this.message(NSBundle.localizedString("Disconnected", "Status", "")); ConnectionListener[] l = (ConnectionListener[]) connectionListners.toArray(new ConnectionListener[]{}); for (int i = 0; i < l.length; i++) { l[i].connectionDidClose(); } }
36419 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36419/bcecb447ced6c5ac6bdfaf9ddaaae4c2ebf2116c/Session.java/clean/source/ch/cyberduck/core/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1459, 18250, 4605, 1435, 288, 3639, 333, 18, 8537, 273, 629, 31, 3639, 309, 261, 12377, 18, 1336, 7675, 588, 5507, 2932, 4071, 18, 10102, 11462, 7923, 597, 333, 18, 10102, 10608, 6777, 480, 446, 13, 288, 5411, 333, 18, 10102, 10608, 6777, 18, 10996, 5621, 3639, 289, 3639, 333, 18, 2493, 7675, 8507, 5621, 3639, 3877, 2864, 18, 1336, 7675, 9340, 12, 2211, 1769, 3639, 333, 18, 2150, 12, 3156, 3405, 18, 3729, 1235, 780, 2932, 26303, 3113, 315, 1482, 3113, 1408, 10019, 3639, 4050, 2223, 8526, 328, 273, 261, 1952, 2223, 63, 5717, 1459, 682, 9646, 18, 31447, 12, 2704, 4050, 2223, 8526, 2916, 1769, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 328, 18, 2469, 31, 277, 27245, 288, 5411, 328, 63, 77, 8009, 4071, 18250, 4605, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1459, 18250, 4605, 1435, 288, 3639, 333, 18, 8537, 273, 629, 31, 3639, 309, 261, 12377, 18, 1336, 7675, 588, 5507, 2932, 4071, 18, 10102, 11462, 7923, 597, 333, 18, 10102, 10608, 6777, 480, 446, 13, 288, 5411, 333, 18, 10102, 10608, 6777, 18, 10996, 5621, 3639, 289, 3639, 333, 18, 2493, 7675, 8507, 5621, 3639, 3877, 2864, 18, 1336, 7675, 9340, 12, 2211, 1769, 3639, 333, 18, 2150, 12, 3156, 3405, 18, 3729, 1235, 780, 2932, 26303, 3113, 315, 1482, 3113, 1408, 10019, 3639, 4050, 2223, 8526, 328, 273, 261, 1952, 2223, 63, 5717, 1459, 682, 9646, 18, 31447, 12, 2704, 4050, 2223, 8526, 2916, 1769, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 2 ]
sourceArtifact.getArtifactId() ) );
sourceArtifact.getId() ) );
private void addDependency( XMLWriter writer, Artifact artifact, List referencedReactorArtifacts, ArtifactRepository localRepository, ArtifactResolver artifactResolver, ArtifactFactory artifactFactory, List remoteArtifactRepositories, boolean downloadSources ) throws MojoExecutionException { String path; String kind; String sourcepath = null; if ( referencedReactorArtifacts.contains( artifact ) ) { path = "/" + artifact.getArtifactId(); //$NON-NLS-1$ kind = "src"; //$NON-NLS-1$ } else { File artifactPath = artifact.getFile(); if ( artifactPath == null ) { log.error( Messages.getString( "EclipsePlugin.artifactpathisnull", artifact.getId() ) ); //$NON-NLS-1$ return; } if ( Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) ) { try { path = StringUtils.replace( artifactPath.getCanonicalPath(), "\\", "/" ); } catch ( IOException e ) { String message = Messages.getString( "EclipsePlugin.cantcanonicalize", artifactPath ); throw new MojoExecutionException( message, e ); } log.info( Messages.getString( "EclipsePlugin.artifactissystemscoped", //$NON-NLS-1$ new Object[] { artifact.getArtifactId(), path } ) ); log.info( Messages.getString( "EclipseClasspathWriter.sourcesnotavailable", //$NON-NLS-1$ artifact.getArtifactId() ) ); kind = "lib"; //$NON-NLS-1$ } else { File localRepositoryFile = new File( localRepository.getBasedir() ); String fullPath = artifactPath.getPath(); path = "M2_REPO/" //$NON-NLS-1$ + EclipseUtils.toRelativeAndFixSeparator( localRepositoryFile, fullPath, false ); if ( downloadSources ) { Artifact sourceArtifact = retrieveSourceArtifact( artifact, remoteArtifactRepositories, localRepository, artifactResolver, artifactFactory ); if ( !sourceArtifact.isResolved() ) { log.info( Messages.getString( "EclipseClasspathWriter.sourcesnotavailable", //$NON-NLS-1$ sourceArtifact.getArtifactId() ) ); } else { log.debug( Messages.getString( "EclipseClasspathWriter.sourcesavailable", //$NON-NLS-1$ new Object[] { sourceArtifact.getArtifactId(), sourceArtifact.getFile().getAbsolutePath() } ) ); sourcepath = "M2_REPO/" //$NON-NLS-1$ + EclipseUtils.toRelativeAndFixSeparator( localRepositoryFile, sourceArtifact.getFile() .getAbsolutePath(), false ); } } kind = "var"; //$NON-NLS-1$ } } writer.startElement( "classpathentry" ); //$NON-NLS-1$ writer.addAttribute( "kind", kind ); //$NON-NLS-1$ writer.addAttribute( "path", path ); //$NON-NLS-1$ if ( sourcepath != null ) { writer.addAttribute( "sourcepath", sourcepath ); //$NON-NLS-1$ } writer.endElement(); }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/f0d674133e4e2d777639ff377cc8c7e29c3d6874/EclipseClasspathWriter.java/clean/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseClasspathWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7787, 12, 3167, 2289, 2633, 16, 14022, 6462, 16, 987, 8042, 426, 3362, 16981, 16, 1171, 9079, 14022, 3305, 1191, 3305, 16, 14022, 4301, 6462, 4301, 16, 1171, 9079, 14022, 1733, 6462, 1733, 16, 987, 2632, 7581, 18429, 16, 1250, 4224, 8628, 262, 3639, 1216, 18780, 565, 288, 3639, 514, 589, 31, 3639, 514, 3846, 31, 3639, 514, 1084, 803, 273, 446, 31, 3639, 309, 261, 8042, 426, 3362, 16981, 18, 12298, 12, 6462, 262, 262, 3639, 288, 5411, 589, 273, 4016, 397, 6462, 18, 588, 7581, 548, 5621, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 3846, 273, 315, 4816, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 469, 3639, 288, 5411, 1387, 6462, 743, 273, 6462, 18, 29925, 5621, 5411, 309, 261, 6462, 743, 422, 446, 262, 5411, 288, 7734, 613, 18, 1636, 12, 4838, 18, 588, 780, 12, 315, 23057, 10472, 3773, 18, 17706, 803, 291, 2011, 3113, 6462, 18, 26321, 1435, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 327, 31, 5411, 289, 5411, 309, 261, 14022, 18, 19444, 67, 14318, 18, 14963, 12, 6462, 18, 588, 3876, 1435, 262, 262, 5411, 288, 7734, 775, 7734, 288, 10792, 589, 273, 5778, 18, 2079, 12, 6462, 743, 18, 588, 15512, 743, 9334, 14520, 16, 4016, 11272, 7734, 289, 7734, 1044, 261, 1860, 425, 262, 7734, 288, 10792, 514, 883, 273, 4838, 18, 588, 780, 12, 315, 23057, 10472, 3773, 18, 71, 970, 18288, 554, 3113, 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, 527, 7787, 12, 3167, 2289, 2633, 16, 14022, 6462, 16, 987, 8042, 426, 3362, 16981, 16, 1171, 9079, 14022, 3305, 1191, 3305, 16, 14022, 4301, 6462, 4301, 16, 1171, 9079, 14022, 1733, 6462, 1733, 16, 987, 2632, 7581, 18429, 16, 1250, 4224, 8628, 262, 3639, 1216, 18780, 565, 288, 3639, 514, 589, 31, 3639, 514, 3846, 31, 3639, 514, 1084, 803, 273, 446, 31, 3639, 309, 261, 8042, 426, 3362, 16981, 18, 12298, 12, 6462, 262, 262, 3639, 288, 5411, 589, 273, 4016, 397, 6462, 18, 588, 7581, 548, 5621, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 3846, 273, 315, 4816, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 469, 3639, 288, 2 ]
OMElement h2Val3=omfactory.createOMElement("varFloat",null); h2Val3.addAttribute("xsi:type","xsd:float",null);
OMElement h2Val3 = omfactory.createOMElement("varFloat", null); h2Val3.declareNamespace(typeNs); h2Val3.addAttribute("type", "xsd:float", typeNs);
public SOAPEnvelope getEchoSoapEnvelope() { SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory(); SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope(); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv"); reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); //xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi"); reqEnv.declareNamespace("http://soapinterop.org/xsd", "s"); reqEnv.declareNamespace("http://soapinterop.org/","m"); SOAPHeader header = omfactory.createSOAPHeader(reqEnv); OMNamespace hns= reqEnv.declareNamespace("http://soapinterop.org/echoheader/","hns"); //xmlns:m0="http://soapinterop.org/echoheader/ SOAPHeaderBlock block1 = header.addHeaderBlock("echoMeStringRequest",hns); block1.addAttribute("xsi:type","xsd:string",null); block1.addChild(omfactory.createText("string")); // header.addChild(headerChild); header.addChild(block1); SOAPHeaderBlock block2 = header.addHeaderBlock("echoMeStructRequest",hns); block2.addAttribute("xsi:type","s:SOAPStruct",null); OMElement h2Val1=omfactory.createOMElement("varString",null); h2Val1.addAttribute("xsi:type","xsd:string",null); h2Val1.addChild(omfactory.createText("string")); OMElement h2Val2=omfactory.createOMElement("varInt",null); h2Val2.addAttribute("xsi:type","xsd:int",null); h2Val2.addChild(omfactory.createText("150")); OMElement h2Val3=omfactory.createOMElement("varFloat",null); h2Val3.addAttribute("xsi:type","xsd:float",null); h2Val3.addChild(omfactory.createText("456.321")); block2.addChild(h2Val1); block2.addChild(h2Val2); block2.addChild(h2Val3); OMElement operation = omfactory.createOMElement("echoString","http://soapinterop.org/", null); //operation.setNamespace(ns); SOAPBody body = omfactory.createSOAPBody(reqEnv); body.addChild(operation); operation.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null); OMElement part = omfactory.createOMElement("inputString", null); part.addAttribute("xsi:type", "xsd:string", null); part.addChild(omfactory.createText("strssfdfing1")); operation.addChild(part); //reqEnv.getBody().addChild(method); return reqEnv; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95f09abc768fee06d65b12836e31273ac0e15eb3/GroupcEchoStringUtil.java/clean/modules/integration/src/test/interop/whitemesa/round2/util/GroupcEchoStringUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16434, 10862, 4774, 2599, 20601, 10862, 1435, 288, 3639, 16434, 1733, 8068, 6848, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 16434, 10862, 1111, 3491, 273, 8068, 6848, 18, 2640, 27952, 10862, 5621, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 30290, 19, 3113, 315, 19215, 3074, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 3113, 315, 19144, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 5999, 19, 3113, 315, 27952, 17, 30445, 8863, 368, 16741, 30, 27952, 17, 30445, 1546, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 5999, 4898, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 17, 1336, 3113, 315, 29262, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 19215, 30376, 18, 3341, 19, 19144, 3113, 315, 87, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 19215, 30376, 18, 3341, 19, 15937, 81, 8863, 3639, 16434, 1864, 1446, 273, 8068, 6848, 18, 2640, 27952, 1864, 12, 3658, 3491, 1769, 3639, 28839, 3402, 366, 2387, 33, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 19215, 30376, 18, 3341, 19, 12946, 3374, 19, 15937, 76, 2387, 8863, 368, 16741, 30, 81, 20, 1546, 2505, 2207, 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, 16434, 10862, 4774, 2599, 20601, 10862, 1435, 288, 3639, 16434, 1733, 8068, 6848, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 16434, 10862, 1111, 3491, 273, 8068, 6848, 18, 2640, 27952, 10862, 5621, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 30290, 19, 3113, 315, 19215, 3074, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 21, 19, 4201, 3078, 3113, 315, 19144, 8863, 3639, 1111, 3491, 18, 29554, 3402, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 5999, 19, 3113, 315, 27952, 17, 30445, 8863, 368, 16741, 30, 27952, 2 ]
{ contentHandler.characters (ch, start, length); }
{ contentHandler.characters(ch, start, length); }
void charData (char ch[], int start, int length) throws SAXException { contentHandler.characters (ch, start, length); }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/buggy/libjava/gnu/xml/aelfred2/SAXDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1149, 751, 261, 3001, 462, 63, 6487, 509, 787, 16, 509, 769, 13, 565, 1216, 14366, 565, 288, 202, 1745, 1503, 18, 20558, 261, 343, 16, 787, 16, 769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 918, 1149, 751, 261, 3001, 462, 63, 6487, 509, 787, 16, 509, 769, 13, 565, 1216, 14366, 565, 288, 202, 1745, 1503, 18, 20558, 261, 343, 16, 787, 16, 769, 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 ]
msg.setSubject(subject);
email.setSubject(subject);
public Object transform(Object src, String encoding, UMOEventContext context) throws TransformerException { String endpointAddress = endpoint.getEndpointURI().getAddress(); SmtpConnector connector = (SmtpConnector)endpoint.getConnector(); UMOMessage eventMsg = context.getMessage(); String to = eventMsg.getStringProperty(MailProperties.TO_ADDRESSES_PROPERTY, endpointAddress); String cc = eventMsg.getStringProperty(MailProperties.CC_ADDRESSES_PROPERTY, connector.getCcAddresses()); String bcc = eventMsg.getStringProperty(MailProperties.BCC_ADDRESSES_PROPERTY, connector.getBccAddresses()); String from = eventMsg.getStringProperty(MailProperties.FROM_ADDRESS_PROPERTY, connector.getFromAddress()); String replyTo = eventMsg.getStringProperty(MailProperties.REPLY_TO_ADDRESSES_PROPERTY, connector.getReplyToAddresses()); String subject = eventMsg.getStringProperty(MailProperties.SUBJECT_PROPERTY, connector.getSubject()); String contentType = eventMsg.getStringProperty(MailProperties.CONTENT_TYPE_PROPERTY, connector.getContentType()); Properties headers = new Properties(); Properties customHeaders = connector.getCustomHeaders(); if(customHeaders != null && !customHeaders.isEmpty()) { headers.putAll(customHeaders); } Properties otherHeaders = (Properties)eventMsg.getProperty(MailProperties.CUSTOM_HEADERS_MAP_PROPERTY); if(otherHeaders != null && !otherHeaders.isEmpty()) { Map props = new HashMap(MuleManager.getInstance().getProperties()); UMOMessage msg = context.getMessage(); for (Iterator iterator = msg.getPropertyNames().iterator(); iterator.hasNext();) { String propertyKey = (String)iterator.next(); props.put(propertyKey, context.getMessage().getProperty(propertyKey)); } headers.putAll(templateParser.parse(props, otherHeaders)); } if(logger.isDebugEnabled()) { StringBuffer buf = new StringBuffer(256); buf.append("Constructing email using:\n"); buf.append("To: ").append(to); buf.append("From: ").append(from); buf.append("CC: ").append(cc); buf.append("BCC: ").append(bcc); buf.append("Subject: ").append(subject); buf.append("ReplyTo: ").append(replyTo); buf.append("Content type: ").append(contentType); buf.append("Payload type: ").append(src.getClass().getName()); buf.append("Custom Headers: ").append(PropertiesUtils.propertiesToString(headers, false)); logger.debug(buf.toString()); } try { Message msg = new MimeMessage((Session) endpoint.getConnector().getDispatcher(endpoint).getDelegateSession()); msg.setRecipients(Message.RecipientType.TO, MailUtils.stringToInternetAddresses(to)); // sent date msg.setSentDate(Calendar.getInstance().getTime()); if (StringUtils.isNotBlank(from)) { msg.setFrom(MailUtils.stringToInternetAddresses(from)[0]); } if (StringUtils.isNotBlank(cc)) { msg.setRecipients(Message.RecipientType.CC, MailUtils.stringToInternetAddresses(cc)); } if (StringUtils.isNotBlank(bcc)) { msg.setRecipients(Message.RecipientType.BCC, MailUtils.stringToInternetAddresses(bcc)); } if (StringUtils.isNotBlank(replyTo)) { eventMsg.setReplyTo(MailUtils.stringToInternetAddresses(replyTo)); } msg.setSubject(subject); Map.Entry entry; for (Iterator iterator = headers.entrySet().iterator(); iterator.hasNext();) { entry = (Map.Entry)iterator.next(); msg.setHeader(entry.getKey().toString(), entry.getValue().toString()); } setContent(src, msg, contentType, context); return msg; } catch (Exception e) { throw new TransformerException(this, e); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/c20bbba4755cdbd796861f9221bb2095c830aa8a/StringToEmailMessage.java/buggy/providers/email/src/main/java/org/mule/providers/email/transformers/StringToEmailMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2510, 12, 921, 1705, 16, 514, 2688, 16, 587, 5980, 1133, 1042, 819, 13, 1216, 21684, 565, 288, 3639, 514, 2494, 1887, 273, 2494, 18, 588, 3293, 3098, 7675, 588, 1887, 5621, 3639, 348, 11091, 7487, 8703, 273, 261, 55, 11091, 7487, 13, 8003, 18, 588, 7487, 5621, 3639, 587, 5980, 1079, 871, 3332, 273, 819, 18, 24906, 5621, 3639, 514, 358, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 4296, 67, 8355, 7031, 1090, 55, 67, 9900, 16, 2494, 1887, 1769, 3639, 514, 4946, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 6743, 67, 8355, 7031, 1090, 55, 67, 9900, 16, 8703, 18, 588, 39, 71, 7148, 10663, 3639, 514, 16915, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 38, 6743, 67, 8355, 7031, 1090, 55, 67, 9900, 16, 8703, 18, 588, 38, 952, 7148, 10663, 3639, 514, 628, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 11249, 67, 15140, 67, 9900, 16, 8703, 18, 588, 1265, 1887, 10663, 3639, 514, 30934, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 862, 23893, 67, 4296, 67, 8355, 7031, 1090, 55, 67, 9900, 16, 8703, 18, 588, 7817, 774, 7148, 10663, 3639, 514, 3221, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 8362, 5304, 67, 9900, 16, 8703, 18, 588, 6638, 10663, 3639, 514, 5064, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 9689, 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, 2510, 12, 921, 1705, 16, 514, 2688, 16, 587, 5980, 1133, 1042, 819, 13, 1216, 21684, 565, 288, 3639, 514, 2494, 1887, 273, 2494, 18, 588, 3293, 3098, 7675, 588, 1887, 5621, 3639, 348, 11091, 7487, 8703, 273, 261, 55, 11091, 7487, 13, 8003, 18, 588, 7487, 5621, 3639, 587, 5980, 1079, 871, 3332, 273, 819, 18, 24906, 5621, 3639, 514, 358, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 4296, 67, 8355, 7031, 1090, 55, 67, 9900, 16, 2494, 1887, 1769, 3639, 514, 4946, 273, 871, 3332, 18, 588, 780, 1396, 12, 6759, 2297, 18, 6743, 67, 8355, 7031, 1090, 55, 67, 9900, 16, 8703, 18, 588, 39, 71, 7148, 10663, 3639, 2 ]
if (_published <= 0) throw new DataFormatException("Invalid published date: " + _published);
if (_published < 0) throw new DataFormatException("Invalid published date: " + _published);
public synchronized void writeBytes(OutputStream out) throws DataFormatException, IOException { if (_identity == null) throw new DataFormatException("Missing identity"); if (_published <= 0) throw new DataFormatException("Invalid published date: " + _published); if (_signature == null) throw new DataFormatException("Signature is null"); //if (!isValid()) // throw new DataFormatException("Data is not valid"); ByteArrayOutputStream baos = new ByteArrayOutputStream(512); baos.write(getBytes()); _signature.writeBytes(baos); byte data[] = baos.toByteArray(); //_log.debug("Writing routerInfo [len=" + data.length + "]: " + toString()); out.write(data); }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/1107e50108f2845c6b117044e0ab95019b20a309/RouterInfo.java/clean/core/java/src/net/i2p/data/RouterInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 29579, 12, 4632, 596, 13, 1216, 1910, 9291, 16, 1860, 288, 3639, 309, 261, 67, 10781, 422, 446, 13, 604, 394, 1910, 9291, 2932, 4841, 4215, 8863, 3639, 309, 261, 67, 12614, 411, 374, 13, 604, 394, 1910, 9291, 2932, 1941, 9487, 1509, 30, 315, 397, 389, 12614, 1769, 3639, 309, 261, 67, 8195, 422, 446, 13, 604, 394, 1910, 9291, 2932, 5374, 353, 446, 8863, 3639, 368, 430, 16051, 26810, 10756, 3639, 368, 565, 604, 394, 1910, 9291, 2932, 751, 353, 486, 923, 8863, 3639, 11559, 17548, 273, 394, 11559, 12, 13757, 1769, 3639, 17548, 18, 2626, 12, 588, 2160, 10663, 3639, 389, 8195, 18, 2626, 2160, 12, 12124, 538, 1769, 3639, 1160, 501, 8526, 273, 17548, 18, 869, 8826, 5621, 3639, 368, 67, 1330, 18, 4148, 2932, 18835, 4633, 966, 306, 1897, 1546, 397, 501, 18, 2469, 397, 9850, 30, 315, 397, 1762, 10663, 3639, 596, 18, 2626, 12, 892, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 29579, 12, 4632, 596, 13, 1216, 1910, 9291, 16, 1860, 288, 3639, 309, 261, 67, 10781, 422, 446, 13, 604, 394, 1910, 9291, 2932, 4841, 4215, 8863, 3639, 309, 261, 67, 12614, 411, 374, 13, 604, 394, 1910, 9291, 2932, 1941, 9487, 1509, 30, 315, 397, 389, 12614, 1769, 3639, 309, 261, 67, 8195, 422, 446, 13, 604, 394, 1910, 9291, 2932, 5374, 353, 446, 8863, 3639, 368, 430, 16051, 26810, 10756, 3639, 368, 565, 604, 394, 1910, 9291, 2932, 751, 353, 486, 923, 8863, 3639, 11559, 17548, 273, 394, 11559, 12, 13757, 1769, 3639, 17548, 18, 2626, 12, 588, 2160, 10663, 3639, 389, 8195, 18, 2626, 2160, 12, 12124, 538, 1769, 3639, 1160, 501, 2 ]
public static double jsFunction_setDate(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 1, true, funObj);
private double jsFunction_setDate(Object[] args) { return makeDate(args, 1, true);
public static double jsFunction_setDate(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeDate(thisObj, args, 1, true, funObj); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 1626, 12, 1042, 9494, 16, 4766, 5411, 22780, 15261, 16, 4766, 5411, 1033, 8526, 833, 16, 4766, 5411, 4284, 9831, 2675, 13, 565, 288, 3639, 327, 1221, 1626, 12, 2211, 2675, 16, 833, 16, 404, 16, 638, 16, 9831, 2675, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 1626, 12, 1042, 9494, 16, 4766, 5411, 22780, 15261, 16, 4766, 5411, 1033, 8526, 833, 16, 4766, 5411, 4284, 9831, 2675, 13, 565, 288, 3639, 327, 1221, 1626, 12, 2211, 2675, 16, 833, 16, 404, 16, 638, 16, 9831, 2675, 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 ]
if( c1 != c2 ) {
if( c1 != c2 ) {
private boolean fullGtU( int i1, int i2 ) { int k; char c1; char c2; int s1; int s2; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } i1++; i2++; k = last + 1; do { c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } s1 = quadrant[ i1 ]; s2 = quadrant[ i2 ]; if( s1 != s2 ) { return ( s1 > s2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } s1 = quadrant[ i1 ]; s2 = quadrant[ i2 ]; if( s1 != s2 ) { return ( s1 > s2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } s1 = quadrant[ i1 ]; s2 = quadrant[ i2 ]; if( s1 != s2 ) { return ( s1 > s2 ); } i1++; i2++; c1 = block[ i1 + 1 ]; c2 = block[ i2 + 1 ]; if( c1 != c2 ) { return ( c1 > c2 ); } s1 = quadrant[ i1 ]; s2 = quadrant[ i2 ]; if( s1 != s2 ) { return ( s1 > s2 ); } i1++; i2++; if( i1 > last ) { i1 -= last; i1--; } ; if( i2 > last ) { i2 -= last; i2--; } ; k -= 4; workDone++; } while( k >= 0 ); return false; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/84717d4b5b511f43b98719d95241c7e4ac0dc31d/CBZip2OutputStream.java/clean/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1983, 43, 88, 57, 12, 509, 277, 21, 16, 509, 277, 22, 262, 565, 288, 3639, 509, 417, 31, 3639, 1149, 276, 21, 31, 3639, 1149, 276, 22, 31, 3639, 509, 272, 21, 31, 3639, 509, 272, 22, 31, 3639, 276, 21, 273, 1203, 63, 277, 21, 397, 404, 308, 31, 3639, 276, 22, 273, 1203, 63, 277, 22, 397, 404, 308, 31, 3639, 309, 12, 276, 21, 480, 276, 22, 262, 288, 5411, 327, 261, 276, 21, 405, 276, 22, 11272, 3639, 289, 3639, 277, 21, 9904, 31, 3639, 277, 22, 9904, 31, 3639, 276, 21, 273, 1203, 63, 277, 21, 397, 404, 308, 31, 3639, 276, 22, 273, 1203, 63, 277, 22, 397, 404, 308, 31, 3639, 309, 12, 276, 21, 480, 276, 22, 262, 288, 5411, 327, 261, 276, 21, 405, 276, 22, 11272, 3639, 289, 3639, 277, 21, 9904, 31, 3639, 277, 22, 9904, 31, 3639, 276, 21, 273, 1203, 63, 277, 21, 397, 404, 308, 31, 3639, 276, 22, 273, 1203, 63, 277, 22, 397, 404, 308, 31, 3639, 309, 12, 276, 21, 480, 276, 22, 262, 288, 5411, 327, 261, 276, 21, 405, 276, 22, 11272, 3639, 289, 3639, 277, 21, 9904, 31, 3639, 277, 22, 9904, 31, 3639, 276, 21, 273, 1203, 63, 277, 21, 397, 404, 308, 31, 3639, 276, 22, 273, 1203, 63, 277, 22, 397, 404, 308, 31, 3639, 309, 12, 276, 21, 480, 276, 22, 262, 288, 5411, 327, 261, 276, 21, 405, 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, 1983, 43, 88, 57, 12, 509, 277, 21, 16, 509, 277, 22, 262, 565, 288, 3639, 509, 417, 31, 3639, 1149, 276, 21, 31, 3639, 1149, 276, 22, 31, 3639, 509, 272, 21, 31, 3639, 509, 272, 22, 31, 3639, 276, 21, 273, 1203, 63, 277, 21, 397, 404, 308, 31, 3639, 276, 22, 273, 1203, 63, 277, 22, 397, 404, 308, 31, 3639, 309, 12, 276, 21, 480, 276, 22, 262, 288, 5411, 327, 261, 276, 21, 405, 276, 22, 11272, 3639, 289, 3639, 277, 21, 9904, 31, 3639, 277, 22, 9904, 31, 3639, 276, 21, 273, 1203, 63, 277, 21, 397, 404, 308, 31, 3639, 276, 22, 273, 1203, 63, 277, 22, 397, 404, 2 ]
public void add(IUsageStatsCollector collector) { collectors.add(collector);
public void add(int index, IUsageCollector collector) { collectors.add(index, collector);
public void add(IUsageStatsCollector collector) { collectors.add(collector); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/63af75fe00dd954598a42d93c9dd7823a9d5daec/UsageStatisticsSummary.java/buggy/sandbox/org.eclipse.mylyn.monitor.reports/src/org/eclipse/mylyn/monitor/reports/ui/views/UsageStatisticsSummary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 45, 5357, 4195, 7134, 8543, 13, 288, 202, 202, 14676, 1383, 18, 1289, 12, 21356, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 45, 5357, 4195, 7134, 8543, 13, 288, 202, 202, 14676, 1383, 18, 1289, 12, 21356, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
listener.secondPhaseComplete(nodeId, foundNodes, time);
listener.secondPhaseComplete(nodeId, foundNodes, totalTime);
public void run() { listener.secondPhaseComplete(nodeId, foundNodes, time); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/d8bbc48ee76176ab89f4b334dd5948861a62a240/Context.java/clean/components/mojito/de/kapsi/net/kademlia/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 1086, 1435, 288, 13491, 2991, 18, 8538, 11406, 6322, 12, 2159, 548, 16, 1392, 3205, 16, 2078, 950, 1769, 10792, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 1086, 1435, 288, 13491, 2991, 18, 8538, 11406, 6322, 12, 2159, 548, 16, 1392, 3205, 16, 2078, 950, 1769, 10792, 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 ]
universalHolder uku = new universalHolder(h.reply);
GeneralHolder uku = new GeneralHolder(h.reply);
public static void invoke(ServerRequest request, InvokeHandler target, Streamable result ) { try { int IN = ARG_IN.value; int OUT = ARG_OUT.value; // Write all arguments to the buffer output stream. cdrBufOutput buffer = new cdrBufOutput(); gnuNVList args = new gnuNVList(); request.arguments(args); for (int i = 0; i < args.count(); i++) { if ((args.item(i).flags() & IN) != 0) { args.item(i).value().write_value(buffer); } } ServiceRequestAdapter h = new ServiceRequestAdapter(); target._invoke(request.operation(), buffer.create_input_stream(), h); InputStream in = h.reply.create_input_stream(); if (h.isException) { // Write the exception information gnuAny exc = new gnuAny(); universalHolder uku = new universalHolder(h.reply); exc.insert_Streamable(uku); request.set_exception(exc); } else { if (result != null) { // Use the holder for the return value, if provided. result._read(in); gnuAny r = new gnuAny(); r.insert_Streamable(result); request.set_result(r); } else { // Use the universal holder otherwise. gnuAny r = new gnuAny(); r.insert_Streamable(new streamReadyHolder(in)); } // Unpack the arguments for (int i = 0; i < args.count(); i++) { if ((args.item(i).flags() & OUT) != 0) { Any a = args.item(i).value(); a.read_value(in, a.type()); } } } } catch (Bounds ex) { throw new InternalError(); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e9344cb85925e12da0e0cccb4ba0521d8696a226/ServiceRequestAdapter.java/buggy/core/src/classpath/gnu/gnu/CORBA/ServiceRequestAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 4356, 12, 2081, 691, 590, 16, 14373, 1503, 1018, 16, 18701, 3961, 429, 563, 21821, 262, 225, 288, 565, 775, 1377, 288, 3639, 509, 2120, 273, 13984, 67, 706, 18, 1132, 31, 3639, 509, 8210, 273, 13984, 67, 5069, 18, 1132, 31, 3639, 368, 2598, 777, 1775, 358, 326, 1613, 876, 1407, 18, 3639, 276, 3069, 5503, 1447, 1613, 273, 394, 276, 3069, 5503, 1447, 5621, 3639, 314, 13053, 11679, 682, 833, 273, 394, 314, 13053, 11679, 682, 5621, 3639, 590, 18, 7099, 12, 1968, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 1883, 5621, 277, 27245, 1850, 288, 5411, 309, 14015, 1968, 18, 1726, 12, 77, 2934, 7133, 1435, 473, 2120, 13, 480, 374, 13, 2868, 288, 7734, 833, 18, 1726, 12, 77, 2934, 1132, 7675, 2626, 67, 1132, 12, 4106, 1769, 2868, 289, 1850, 289, 3639, 1956, 691, 4216, 366, 273, 394, 1956, 691, 4216, 5621, 3639, 1018, 6315, 14407, 12, 2293, 18, 7624, 9334, 1613, 18, 2640, 67, 2630, 67, 3256, 9334, 366, 1769, 3639, 5037, 316, 273, 366, 18, 10629, 18, 2640, 67, 2630, 67, 3256, 5621, 3639, 309, 261, 76, 18, 291, 503, 13, 1850, 288, 5411, 368, 2598, 326, 1520, 1779, 5411, 314, 13053, 2961, 3533, 273, 394, 314, 13053, 2961, 5621, 5411, 9544, 6064, 27178, 89, 273, 394, 9544, 6064, 12, 76, 18, 10629, 1769, 5411, 3533, 18, 6387, 67, 1228, 429, 12, 19445, 89, 1769, 5411, 590, 18, 542, 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, 282, 1071, 760, 918, 4356, 12, 2081, 691, 590, 16, 14373, 1503, 1018, 16, 18701, 3961, 429, 563, 21821, 262, 225, 288, 565, 775, 1377, 288, 3639, 509, 2120, 273, 13984, 67, 706, 18, 1132, 31, 3639, 509, 8210, 273, 13984, 67, 5069, 18, 1132, 31, 3639, 368, 2598, 777, 1775, 358, 326, 1613, 876, 1407, 18, 3639, 276, 3069, 5503, 1447, 1613, 273, 394, 276, 3069, 5503, 1447, 5621, 3639, 314, 13053, 11679, 682, 833, 273, 394, 314, 13053, 11679, 682, 5621, 3639, 590, 18, 7099, 12, 1968, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 1883, 5621, 277, 27245, 1850, 288, 5411, 309, 14015, 1968, 18, 1726, 12, 77, 2934, 7133, 1435, 2 ]
double v = (double)Long.valueOf(val).longValue();
double v = (double)Double.valueOf(val).doubleValue();
private double[] parseResults() throws IOException { BufferedReader in = new BufferedReader(new FileReader(SOLUTION_FILE)); // find variable output String line; do { line = in.readLine(); } while (line.indexOf("Column name")==-1); // read one more dummy line in.readLine(); double[] result = new double[numVars]; while (!(line = in.readLine()).equals("")) { String index = line.substring(8, 13).trim(); String val = line.substring(23, 36).trim(); int i = Integer.valueOf(index).intValue(); double v = (double)Long.valueOf(val).longValue(); result[i] = v; } return result; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/10fd15274fa33ee280145d8761d20f0e276597ec/GLPKSolve.java/clean/streams/src/at/dms/kjc/linprog/GLPKSolve.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 8526, 1109, 3447, 1435, 1216, 1860, 288, 202, 17947, 2514, 316, 273, 394, 10633, 12, 2704, 23010, 12, 19815, 13269, 67, 3776, 10019, 202, 202, 759, 1104, 2190, 876, 202, 780, 980, 31, 202, 2896, 288, 202, 565, 980, 273, 316, 18, 896, 1670, 5621, 202, 97, 1323, 261, 1369, 18, 31806, 2932, 1494, 508, 7923, 631, 17, 21, 1769, 202, 759, 855, 1245, 1898, 9609, 980, 202, 267, 18, 896, 1670, 5621, 202, 202, 9056, 8526, 563, 273, 394, 1645, 63, 2107, 5555, 15533, 202, 17523, 16051, 12, 1369, 273, 316, 18, 896, 1670, 1435, 2934, 14963, 2932, 6, 3719, 288, 202, 565, 514, 770, 273, 980, 18, 28023, 12, 28, 16, 5958, 2934, 5290, 5621, 202, 565, 514, 1244, 273, 980, 18, 28023, 12, 4366, 16, 6580, 2934, 5290, 5621, 202, 565, 509, 277, 273, 2144, 18, 1132, 951, 12, 1615, 2934, 474, 620, 5621, 202, 565, 1645, 331, 273, 261, 9056, 13, 3708, 18, 1132, 951, 12, 1125, 2934, 5748, 620, 5621, 202, 565, 563, 63, 77, 65, 273, 331, 31, 202, 97, 202, 202, 2463, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 8526, 1109, 3447, 1435, 1216, 1860, 288, 202, 17947, 2514, 316, 273, 394, 10633, 12, 2704, 23010, 12, 19815, 13269, 67, 3776, 10019, 202, 202, 759, 1104, 2190, 876, 202, 780, 980, 31, 202, 2896, 288, 202, 565, 980, 273, 316, 18, 896, 1670, 5621, 202, 97, 1323, 261, 1369, 18, 31806, 2932, 1494, 508, 7923, 631, 17, 21, 1769, 202, 759, 855, 1245, 1898, 9609, 980, 202, 267, 18, 896, 1670, 5621, 202, 202, 9056, 8526, 563, 273, 394, 1645, 63, 2107, 5555, 15533, 202, 17523, 16051, 12, 1369, 273, 316, 18, 896, 1670, 1435, 2934, 14963, 2932, 6, 3719, 288, 202, 565, 514, 770, 273, 980, 18, 28023, 12, 28, 16, 5958, 2934, 5290, 2 ]
if (DEBUG) { System.out.println(" -> \"" + Utility.escape(rsubstring(text, start, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, limit)) + "\""); } index.contextLimit += limit - index.limit; index.limit = limit; index.start = cursor;
protected void handleTransliterate(Replaceable text, Position index, boolean incremental) { /* We keep start and limit fixed the entire time, * relative to the text -- limit may move numerically if text is * inserted or removed. The cursor moves from start to limit, with * replacements happening under it. * * Example: rules 1. ab>x|y * 2. yc>z * * |eabcd start - no match, advance cursor * e|abcd match rule 1 - change text & adjust cursor * ex|ycd match rule 2 - change text & adjust cursor * exz|d no match, advance cursor * exzd| done */ int start = index.contextStart; int limit = index.limit; int cursor = index.start; if (DEBUG) { System.out.print("\"" + Utility.escape(rsubstring(text, start, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, limit)) + "\""); } /* A rule like * a>b|a * creates an infinite loop. To prevent that, we put an arbitrary * limit on the number of iterations that we take, one that is * high enough that any reasonable rules are ok, but low enough to * prevent a server from hanging. The limit is 16 times the * number of characters n, unless n is so large that 16n exceeds a * uint32_t. */ int loopCount = 0; int loopLimit = limit - cursor; if (loopLimit >= 0x08000000) { loopLimit = 0x7FFFFFFF; } else { loopLimit <<= 4; } boolean partial[] = new boolean[1]; partial[0] = false; while (cursor < limit && loopCount <= loopLimit) { TransliterationRule r = incremental ? data.ruleSet.findIncrementalMatch(text, index.contextStart, limit, cursor, data, partial, getFilter()) : data.ruleSet.findMatch(text, index.contextStart, limit, cursor, data, getFilter()); /* If we match a rule then apply it by replacing the key * with the rule output and repositioning the cursor * appropriately. If we get a partial match, then we * can't do anything without more text; return with the * cursor at the current position. If we get null, then * there is no match at this position, and we can advance * the cursor. */ if (r == null) { if (partial[0]) { break; } else { ++cursor; } } else { // Delegate replacement to TransliterationRule object limit += r.replace(text, cursor, data); // text.replace(cursor, cursor + r.getKeyLength(), r.getOutput()); // limit += r.getOutput().length() - r.getKeyLength(); cursor += r.getCursorPos(); ++loopCount; } } if (DEBUG) { System.out.println(" -> \"" + Utility.escape(rsubstring(text, start, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, cursor)) + '|' + Utility.escape(rsubstring(text, cursor, limit)) + "\""); } index.contextLimit += limit - index.limit; index.limit = limit; index.start = cursor; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/5ad646673b22c14c6dc35effab34a64674c33298/RuleBasedTransliterator.java/clean/icu4j/src/com/ibm/icu/text/RuleBasedTransliterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 3873, 18793, 12, 5729, 429, 977, 16, 4766, 4202, 11010, 770, 16, 1250, 20649, 13, 288, 3639, 1748, 1660, 3455, 787, 471, 1800, 5499, 326, 7278, 813, 16, 540, 380, 3632, 358, 326, 977, 1493, 1800, 2026, 3635, 6389, 1230, 309, 977, 353, 540, 380, 9564, 578, 3723, 18, 225, 1021, 3347, 13934, 628, 787, 358, 1800, 16, 598, 540, 380, 11413, 5865, 310, 3613, 518, 18, 540, 380, 540, 380, 5090, 30, 2931, 404, 18, 1223, 34, 92, 96, 93, 540, 380, 7734, 576, 18, 27495, 34, 94, 540, 380, 540, 380, 571, 73, 378, 4315, 282, 787, 300, 1158, 845, 16, 8312, 3347, 540, 380, 425, 96, 378, 4315, 282, 845, 1720, 404, 300, 2549, 977, 473, 5765, 3347, 540, 380, 431, 96, 93, 4315, 282, 845, 1720, 576, 300, 2549, 977, 473, 5765, 3347, 540, 380, 431, 94, 96, 72, 565, 1158, 845, 16, 8312, 3347, 540, 380, 431, 94, 72, 96, 565, 2731, 540, 1195, 3639, 509, 787, 273, 770, 18, 2472, 1685, 31, 3639, 509, 1800, 273, 770, 18, 3595, 31, 3639, 509, 3347, 273, 770, 18, 1937, 31, 3639, 309, 261, 9394, 13, 288, 5411, 2332, 18, 659, 18, 1188, 2932, 8530, 397, 7734, 13134, 18, 6939, 12, 86, 28023, 12, 955, 16, 787, 16, 3347, 3719, 397, 8030, 397, 7734, 13134, 18, 6939, 12, 86, 28023, 12, 955, 16, 3347, 16, 1800, 3719, 397, 11143, 1769, 3639, 289, 3639, 1748, 432, 1720, 3007, 540, 380, 282, 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, 1640, 3873, 18793, 12, 5729, 429, 977, 16, 4766, 4202, 11010, 770, 16, 1250, 20649, 13, 288, 3639, 1748, 1660, 3455, 787, 471, 1800, 5499, 326, 7278, 813, 16, 540, 380, 3632, 358, 326, 977, 1493, 1800, 2026, 3635, 6389, 1230, 309, 977, 353, 540, 380, 9564, 578, 3723, 18, 225, 1021, 3347, 13934, 628, 787, 358, 1800, 16, 598, 540, 380, 11413, 5865, 310, 3613, 518, 18, 540, 380, 540, 380, 5090, 30, 2931, 404, 18, 1223, 34, 92, 96, 93, 540, 380, 7734, 576, 18, 27495, 34, 94, 540, 380, 540, 380, 571, 73, 378, 4315, 282, 787, 300, 1158, 845, 16, 8312, 3347, 540, 380, 425, 96, 378, 4315, 282, 845, 1720, 404, 2 ]
public RegexpValidator(Validatable component, String regexp) { super(component); this.regexp = regexp;
public RegexpValidator(Validatable component) { this(component, ".*");
public RegexpValidator(Validatable component, String regexp) { super(component); this.regexp = regexp; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/4114c93302d9829ac160ac7f83a8a1d7cf543d49/RegexpValidator.java/buggy/src/net/sourceforge/fenixedu/renderers/validators/RegexpValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17011, 5126, 12, 1556, 8163, 1794, 16, 514, 7195, 13, 288, 3639, 2240, 12, 4652, 1769, 3639, 333, 18, 17745, 273, 7195, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 17011, 5126, 12, 1556, 8163, 1794, 16, 514, 7195, 13, 288, 3639, 2240, 12, 4652, 1769, 3639, 333, 18, 17745, 273, 7195, 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 ]
source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source);
sourceAdd((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); Object ifTrue = statement(ts);
private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case TokenStream.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case TokenStream.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case TokenStream.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case TokenStream.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case TokenStream.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case TokenStream.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case TokenStream.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case TokenStream.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case TokenStream.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case TokenStream.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case TokenStream.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case TokenStream.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case TokenStream.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case TokenStream.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case TokenStream.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case TokenStream.ERROR: // Fall thru, to have a node for error recovery to work on case TokenStream.EOL: case TokenStream.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 5501, 30, 288, 5411, 2488, 307, 9197, 273, 638, 31, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5501, 1769, 5411, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 5411, 1033, 6941, 273, 2269, 12, 3428, 16, 1084, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 5411, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 5842, 1769, 5411, 1033, 309, 5510, 273, 3021, 12, 3428, 16, 1084, 1769, 5411, 1033, 309, 8381, 273, 446, 31, 5411, 309, 261, 3428, 18, 1916, 1345, 12, 3428, 18, 2247, 1090, 3719, 288, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 11529, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 2247, 1090, 1769, 7734, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 13394, 1769, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, 16, 2727, 1404, 527, 3174, 7492, 397, 19995, 358, 1084, 622, 326, 3639, 368, 679, 434, 333, 610, 475, 18, 225, 2457, 11360, 6317, 16, 11083, 19, 7473, 5527, 18, 3639, 1250, 2488, 307, 9197, 273, 629, 31, 3639, 509, 3574, 31, 3639, 509, 1142, 4742, 559, 273, 374, 31, 225, 368, 2457, 5492, 21888, 18, 225, 374, 358, 4543, 3436, 18, 3639, 3574, 273, 3742, 18, 588, 1345, 5621, 3639, 1620, 12, 748, 13, 288, 3639, 648, 3155, 1228, 18, 5501, 30, 288, 2 ]
if( elemLen == 2 && path.charAt( startElem ) == '.' && path.charAt( startElem + 1 ) == '.' )
if( elemLen == 2 && path.charAt( startElem ) == '.' && path.charAt( startElem + 1 ) == '.' )
public void normalisePath( StringBuffer path ) throws FileSystemException { if( path.length() == 0 ) { return; } // Adjust separators fixSeparators( path ); // Determine the start of the first element int startFirstElem = 0; if( path.charAt( 0 ) == m_separatorChar ) { if( path.length() == 1 ) { return; } startFirstElem = 1; } // Iterate over each element int startElem = startFirstElem; int maxlen = path.length(); while( startElem < maxlen ) { // Find the end of the element int endElem = startElem; for( ; endElem < maxlen && path.charAt( endElem ) != m_separatorChar; endElem++ ) { } int elemLen = endElem - startElem; if( elemLen == 0 ) { // An empty element - axe it path.delete( endElem, endElem + 1 ); maxlen = path.length(); continue; } if( elemLen == 1 && path.charAt( startElem ) == '.' ) { // A '.' element - axe it path.delete( startElem, endElem + 1 ); maxlen = path.length(); continue; } if( elemLen == 2 && path.charAt( startElem ) == '.' && path.charAt( startElem + 1 ) == '.' ) { // A '..' element - remove the previous element if( startElem > startFirstElem ) { int pos = startElem - 2; for( ; path.charAt( pos ) != m_separatorChar; pos-- ) { } startElem = pos + 1; } path.delete( startElem, endElem + 1 ); maxlen = path.length(); continue; } // A regular element startElem = endElem + 1; } // Remove trailing separator if( path.charAt( maxlen - 1 ) == m_separatorChar && maxlen > 1 ) { path.delete( maxlen - 1, maxlen ); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/93f927c6354dfe8c9a27ef9ad548cb36c212a6c9/UriParser.java/buggy/proposal/myrmidon/src/java/org/apache/aut/vfs/provider/UriParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25475, 743, 12, 6674, 589, 262, 1216, 10931, 503, 565, 288, 3639, 309, 12, 589, 18, 2469, 1435, 422, 374, 262, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 368, 17720, 14815, 3639, 2917, 16842, 3062, 12, 589, 11272, 3639, 368, 10229, 326, 787, 434, 326, 1122, 930, 3639, 509, 787, 3759, 7498, 273, 374, 31, 3639, 309, 12, 589, 18, 3001, 861, 12, 374, 262, 422, 312, 67, 11287, 2156, 262, 3639, 288, 5411, 309, 12, 589, 18, 2469, 1435, 422, 404, 262, 5411, 288, 7734, 327, 31, 5411, 289, 5411, 787, 3759, 7498, 273, 404, 31, 3639, 289, 3639, 368, 11436, 1879, 1517, 930, 3639, 509, 787, 7498, 273, 787, 3759, 7498, 31, 3639, 509, 21882, 273, 589, 18, 2469, 5621, 3639, 1323, 12, 787, 7498, 411, 21882, 262, 3639, 288, 5411, 368, 4163, 326, 679, 434, 326, 930, 5411, 509, 679, 7498, 273, 787, 7498, 31, 5411, 364, 12, 274, 679, 7498, 411, 21882, 597, 589, 18, 3001, 861, 12, 679, 7498, 262, 480, 312, 67, 11287, 2156, 31, 679, 7498, 9904, 262, 5411, 288, 5411, 289, 5411, 509, 3659, 2891, 273, 679, 7498, 300, 787, 7498, 31, 5411, 309, 12, 3659, 2891, 422, 374, 262, 5411, 288, 7734, 368, 1922, 1008, 930, 300, 1740, 73, 518, 7734, 589, 18, 3733, 12, 679, 7498, 16, 679, 7498, 397, 404, 11272, 7734, 21882, 273, 589, 18, 2469, 5621, 7734, 1324, 31, 5411, 289, 5411, 309, 12, 3659, 2891, 422, 404, 597, 589, 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, 25475, 743, 12, 6674, 589, 262, 1216, 10931, 503, 565, 288, 3639, 309, 12, 589, 18, 2469, 1435, 422, 374, 262, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 368, 17720, 14815, 3639, 2917, 16842, 3062, 12, 589, 11272, 3639, 368, 10229, 326, 787, 434, 326, 1122, 930, 3639, 509, 787, 3759, 7498, 273, 374, 31, 3639, 309, 12, 589, 18, 3001, 861, 12, 374, 262, 422, 312, 67, 11287, 2156, 262, 3639, 288, 5411, 309, 12, 589, 18, 2469, 1435, 422, 404, 262, 5411, 288, 7734, 327, 31, 5411, 289, 5411, 787, 3759, 7498, 273, 404, 31, 3639, 289, 3639, 368, 11436, 1879, 1517, 930, 3639, 509, 787, 7498, 273, 787, 3759, 7498, 31, 3639, 2 ]
out.print("<tr><td style=\"background-color:" + m_colorHeader
out.print("<tr><td style=\"background-color:" + COLOR_HEADER
private void writeGameTable(PrintStream out) throws Exception { out.print("<table class=\"smalltable\">\n" + "<thead><tr><th>Game</th><th>File</th><th>Positions</th>"); for (int i = 0; i < m_gameGlobalCommands.size(); ++i) if (! getGameGlobalCommand(i).allEmpty()) out.print("<th>" + getGameGlobalCommand(i).m_name + "</th>"); out.print("</tr></thead>\n"); for (int i = 0; i < m_gameInfo.size(); ++i) { GameInfo info = (GameInfo)(m_gameInfo.get(i)); String file = getGameFile(i).getName(); out.print("<tr><td style=\"background-color:" + m_colorHeader + "\"><a href=\"" + file + "\">Game " + (i + 1) + "</a></td><td>" + info.m_name + "</td><td>" + info.m_numberPositions + "</td>"); for (int j = 0; j < m_gameGlobalCommands.size(); ++j) if (! getGameGlobalCommand(j).allEmpty()) out.print("<td>" + getGameGlobalCommand(j).getResult(i) + "</td>"); out.print("</tr>\n"); writeGamePage(info.m_file, info.m_name, i); } out.print("</table>\n"); }
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/62ec409c99a6a9e32f06d012360ebb98d383e69d/Analyze.java/buggy/src/net/sf/gogui/gtpstatistics/Analyze.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 12496, 1388, 12, 5108, 1228, 596, 13, 3639, 1216, 1185, 565, 288, 3639, 596, 18, 1188, 2932, 32, 2121, 667, 5189, 12019, 2121, 28219, 82, 6, 397, 5375, 3532, 24604, 4438, 313, 4438, 451, 34, 12496, 1757, 451, 4438, 451, 34, 812, 1757, 451, 4438, 451, 34, 11024, 1757, 451, 2984, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 67, 13957, 5160, 9127, 18, 1467, 5621, 965, 77, 13, 5411, 309, 16051, 7162, 339, 5160, 2189, 12, 77, 2934, 454, 1921, 10756, 7734, 596, 18, 1188, 2932, 32, 451, 2984, 397, 7162, 339, 5160, 2189, 12, 77, 2934, 81, 67, 529, 397, 6823, 451, 2984, 1769, 3639, 596, 18, 1188, 2932, 1757, 313, 4695, 24604, 5333, 82, 8863, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 67, 13957, 966, 18, 1467, 5621, 965, 77, 13, 3639, 288, 5411, 14121, 966, 1123, 273, 261, 12496, 966, 21433, 81, 67, 13957, 966, 18, 588, 12, 77, 10019, 5411, 514, 585, 273, 7162, 339, 812, 12, 77, 2934, 17994, 5621, 5411, 596, 18, 1188, 2932, 32, 313, 4438, 4465, 2154, 5189, 9342, 17, 3266, 2773, 397, 15590, 67, 7557, 8227, 397, 7023, 4438, 69, 3897, 13186, 397, 585, 397, 1548, 6441, 12496, 315, 397, 261, 77, 397, 404, 13, 8227, 397, 6823, 69, 4695, 4465, 4438, 4465, 2984, 397, 1123, 18, 81, 67, 529, 8227, 397, 6823, 4465, 4438, 4465, 2984, 397, 1123, 18, 81, 67, 2696, 11024, 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, 3238, 918, 1045, 12496, 1388, 12, 5108, 1228, 596, 13, 3639, 1216, 1185, 565, 288, 3639, 596, 18, 1188, 2932, 32, 2121, 667, 5189, 12019, 2121, 28219, 82, 6, 397, 5375, 3532, 24604, 4438, 313, 4438, 451, 34, 12496, 1757, 451, 4438, 451, 34, 812, 1757, 451, 4438, 451, 34, 11024, 1757, 451, 2984, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 67, 13957, 5160, 9127, 18, 1467, 5621, 965, 77, 13, 5411, 309, 16051, 7162, 339, 5160, 2189, 12, 77, 2934, 454, 1921, 10756, 7734, 596, 18, 1188, 2932, 32, 451, 2984, 397, 7162, 339, 5160, 2189, 12, 77, 2934, 81, 67, 529, 397, 6823, 451, 2984, 1769, 3639, 596, 18, 1188, 2932, 2 ]
saveObject( archive.createRandomAccessStream( BOOKMARK_STREAM ), bookmarks );
saveObject( archive.createRandomAccessStream( BOOKMARK_STREAM ), bookmarks );
public void saveBookmarks( HashMap bookmarks ) { try { saveObject( archive.createRandomAccessStream( BOOKMARK_STREAM ), bookmarks ); } catch ( Exception ex ) { logger.log( Level.SEVERE, "Failed to save the bookmarks!", ex ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2cddb11bd3ba6029162b08a70baf910b7641f0ba/ReportDocumentWriter.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportDocumentWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 9084, 17439, 12, 4317, 13696, 87, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 5688, 921, 12, 5052, 18, 2640, 8529, 1862, 1228, 12, 9784, 3141, 12693, 67, 13693, 262, 16, 13696, 87, 11272, 202, 202, 97, 202, 202, 14683, 261, 1185, 431, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 4557, 18, 1090, 2204, 41, 16, 315, 2925, 358, 1923, 326, 13696, 87, 5, 3113, 431, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 9084, 17439, 12, 4317, 13696, 87, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 5688, 921, 12, 5052, 18, 2640, 8529, 1862, 1228, 12, 9784, 3141, 12693, 67, 13693, 262, 16, 13696, 87, 11272, 202, 202, 97, 202, 202, 14683, 261, 1185, 431, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 4557, 18, 1090, 2204, 41, 16, 315, 2925, 358, 1923, 326, 13696, 87, 5, 3113, 431, 11272, 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 ]
AST tmp1743_AST_in = (AST)_t;
AST tmp1755_AST_in = (AST)_t;
public final void insertintostate(AST _t) throws RecognitionException { AST insertintostate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1297 = _t; AST tmp1736_AST_in = (AST)_t; match(_t,INSERT); _t = _t.getFirstChild(); AST tmp1737_AST_in = (AST)_t; match(_t,INTO); _t = _t.getNextSibling(); tbl(_t,CQ.SCHEMATABLESYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_list: { AST __t1299 = _t; AST tmp1738_AST_in = (AST)_t; match(_t,Field_list); _t = _t.getFirstChild(); AST tmp1739_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); fld(_t,CQ.UPDATING); _t = _retTree; { _loop1301: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1740_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); fld(_t,CQ.UPDATING); _t = _retTree; } else { break _loop1301; } } while (true); } AST tmp1741_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1299; _t = _t.getNextSibling(); break; } case SELECT: case VALUES: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUES: { AST __t1303 = _t; AST tmp1742_AST_in = (AST)_t; match(_t,VALUES); _t = _t.getFirstChild(); AST tmp1743_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INDICATOR: case Field_ref: { fetch_indicator(_t); _t = _retTree; break; } case COMMA: case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1307: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1744_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sqlexpression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INDICATOR: case Field_ref: { fetch_indicator(_t); _t = _retTree; break; } case COMMA: case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1307; } } while (true); } AST tmp1745_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1303; _t = _t.getNextSibling(); break; } case SELECT: { selectstatea(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1297; _t = _t.getNextSibling(); _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, 2243, 474, 669, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2243, 474, 669, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 2138, 10580, 273, 389, 88, 31, 202, 202, 9053, 1853, 4033, 5718, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 11356, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 4033, 6418, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 3217, 51, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 16187, 24899, 88, 16, 39, 53, 18, 55, 10390, 789, 2782, 22093, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 2286, 67, 1098, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 2138, 2733, 273, 389, 88, 31, 1082, 202, 9053, 1853, 4033, 7414, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 974, 67, 1098, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 9053, 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, 2243, 474, 669, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2243, 474, 669, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 2138, 10580, 273, 389, 88, 31, 202, 202, 9053, 1853, 4033, 5718, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 11356, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 4033, 6418, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 3217, 51, 1769, 2 ]
fIsEclipseNLS.setSelection(fNLSRefactoring.isEclipseNLS()); fIsEclipseNLS.setEnabled(willCreateAccessorClass());
if (fIsEclipseNLS != null) { fIsEclipseNLS.setSelection(fNLSRefactoring.isEclipseNLS()); fIsEclipseNLS.setEnabled(willCreateAccessorClass()); }
private void doConfigureButtonPressed() { NLSAccessorConfigurationDialog dialog= new NLSAccessorConfigurationDialog(getShell(), fNLSRefactoring); if (dialog.open() == Window.OK) { NLSSubstitution.updateSubtitutions(fSubstitutions, getProperties(fNLSRefactoring.getPropertyFileHandle()), fNLSRefactoring.getAccessorClassName()); fIsEclipseNLS.setSelection(fNLSRefactoring.isEclipseNLS()); fIsEclipseNLS.setEnabled(willCreateAccessorClass()); validateKeys(true); updateAccessorChoices(); } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a3e2b406c5f02f374b181d8216bb4cc8ca444588/ExternalizeWizardPage.java/clean/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/ExternalizeWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 11207, 3616, 24624, 1435, 288, 202, 202, 5106, 8235, 1750, 6353, 6176, 33, 394, 29117, 8235, 1750, 6353, 12, 588, 13220, 9334, 284, 5106, 426, 3493, 6053, 1769, 202, 202, 430, 261, 12730, 18, 3190, 1435, 422, 6076, 18, 3141, 13, 288, 1082, 202, 24924, 1260, 373, 14278, 18, 2725, 1676, 88, 305, 6170, 12, 74, 1676, 30892, 16, 9392, 12, 74, 5106, 426, 3493, 6053, 18, 588, 1396, 812, 3259, 1435, 3631, 284, 5106, 426, 3493, 6053, 18, 588, 8235, 3834, 10663, 1082, 202, 74, 2520, 23057, 10472, 5106, 18, 542, 6233, 12, 74, 5106, 426, 3493, 6053, 18, 291, 23057, 10472, 5106, 10663, 1082, 202, 74, 2520, 23057, 10472, 5106, 18, 542, 1526, 12, 20194, 1684, 8235, 797, 10663, 1082, 202, 5662, 2396, 12, 3767, 1769, 1082, 202, 2725, 8235, 17442, 5621, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 11207, 3616, 24624, 1435, 288, 202, 202, 5106, 8235, 1750, 6353, 6176, 33, 394, 29117, 8235, 1750, 6353, 12, 588, 13220, 9334, 284, 5106, 426, 3493, 6053, 1769, 202, 202, 430, 261, 12730, 18, 3190, 1435, 422, 6076, 18, 3141, 13, 288, 1082, 202, 24924, 1260, 373, 14278, 18, 2725, 1676, 88, 305, 6170, 12, 74, 1676, 30892, 16, 9392, 12, 74, 5106, 426, 3493, 6053, 18, 588, 1396, 812, 3259, 1435, 3631, 284, 5106, 426, 3493, 6053, 18, 588, 8235, 3834, 10663, 1082, 202, 74, 2520, 23057, 10472, 5106, 18, 542, 6233, 12, 74, 5106, 426, 3493, 6053, 18, 291, 23057, 10472, 5106, 10663, 1082, 202, 74, 2520, 23057, 10472, 5106, 18, 542, 2 ]
hasOldStyleCalendarData = false;
public void setInfo(ReportInfo info) throws IllegalArgumentException { if (info == null || !CosmoDavConstants.ELEMENT_CALDAV_CALENDAR_MULTIGET .equals(info.getReportElement().getLocalName())) { throw new IllegalArgumentException( "CALDAV:calendar-multiget element expected."); } this.info = info; // Parse the report element. // calendar-multiget is basically a PROPFIND request but with a list of // hrefs also added in. // The code here is pretty much copied from // WebdavRequestImpl.parsePropFindRequest. propfindProps = new DavPropertyNameSet(); hrefs = new Vector(); hasOldStyleCalendarData = false; boolean gotPropType = false; ElementIterator i = DomUtil.getChildren(info.getReportElement()); while (i.hasNext()) { Element child = i.nextElement(); String nodeName = child.getLocalName(); if (XML_PROP.equals(nodeName)) { if (gotPropType) { throw new IllegalArgumentException( "CALDAV:calendar-multiget must contain only one prop/propname/allprop element."); } propfindType = PROPFIND_BY_PROPERTY; propfindProps = new DavPropertyNameSet(child); gotPropType = true; // Look for CALDAV:calendar-data element as a property Iterator iter = propfindProps.iterator(); while (iter.hasNext()) { DavPropertyName name = (DavPropertyName) iter.next(); if (CosmoDavConstants.CALENDARDATA.equals(name)) { // Remove it from the property list that the report will // return as we will handle this one ourselves propfindProps.remove(name); // Now find the calendar-data element inside the prop // element and cache that calendarDataElement = DomUtil.getChildElement(child, CosmoDavConstants.ELEMENT_CALDAV_CALENDAR_DATA, CosmoDavConstants.NAMESPACE_CALDAV); } } } else if (XML_PROPNAME.equals(nodeName)) { if (gotPropType) { throw new IllegalArgumentException( "CALDAV:calendar-multiget must contain only one prop/propname/allprop element."); } propfindType = PROPFIND_PROPERTY_NAMES; gotPropType = true; } else if (XML_ALLPROP.equals(nodeName)) { if (gotPropType) { throw new IllegalArgumentException( "CALDAV:calendar-multiget must contain only one prop/propname/allprop element."); } propfindType = PROPFIND_ALL_PROP; gotPropType = true; } else if (XML_HREF.equals(nodeName)) { hrefs.add(DomUtil.getTextTrim(child)); } else if (CosmoDavConstants.ELEMENT_CALDAV_CALENDAR_DATA .equals(nodeName)) { // TODO this is the old-style calendar-data location. Eventually // the option to handle this will go away as old-style clients // are updated. hasOldStyleCalendarData = true; calendarDataElement = child; } } // Must have at least one href if (hrefs.size() == 0) { throw new IllegalArgumentException( "CALDAV:calendar-multiget must contain at least one href element."); } }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/8f5248df6b8fe2f548c946cd1982665d080201c9/MultigetReport.java/buggy/src/main/java/org/osaf/cosmo/dav/report/caldav/MultigetReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 966, 12, 4820, 966, 1123, 13, 3639, 1216, 2754, 288, 3639, 309, 261, 1376, 422, 446, 7734, 747, 401, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 7913, 17735, 67, 12983, 29154, 67, 12845, 3047, 1584, 13491, 263, 14963, 12, 1376, 18, 588, 4820, 1046, 7675, 588, 29583, 1435, 3719, 288, 5411, 604, 394, 2754, 12, 10792, 315, 7913, 17735, 30, 11650, 17, 5421, 360, 278, 930, 2665, 1199, 1769, 3639, 289, 3639, 333, 18, 1376, 273, 1123, 31, 3639, 368, 2884, 326, 2605, 930, 18, 3639, 368, 5686, 17, 5421, 360, 278, 353, 23772, 279, 16258, 42, 2356, 590, 1496, 598, 279, 666, 434, 3639, 368, 3897, 87, 2546, 3096, 316, 18, 3639, 368, 1021, 981, 2674, 353, 7517, 9816, 9268, 628, 3639, 368, 2999, 20752, 691, 2828, 18, 2670, 4658, 3125, 691, 18, 3639, 2270, 4720, 5047, 273, 394, 463, 842, 13073, 694, 5621, 3639, 3897, 87, 273, 394, 5589, 5621, 9079, 1250, 2363, 4658, 559, 273, 629, 31, 3639, 3010, 3198, 277, 273, 12965, 1304, 18, 588, 4212, 12, 1376, 18, 588, 4820, 1046, 10663, 3639, 1323, 261, 77, 18, 5332, 2134, 10756, 288, 5411, 3010, 1151, 273, 277, 18, 4285, 1046, 5621, 5411, 514, 7553, 273, 1151, 18, 588, 29583, 5621, 5411, 309, 261, 4201, 67, 15811, 18, 14963, 12, 2159, 461, 3719, 288, 7734, 309, 261, 13212, 4658, 559, 13, 288, 10792, 604, 394, 2754, 12, 18701, 315, 7913, 17735, 30, 11650, 17, 5421, 360, 278, 1297, 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, 444, 966, 12, 4820, 966, 1123, 13, 3639, 1216, 2754, 288, 3639, 309, 261, 1376, 422, 446, 7734, 747, 401, 39, 538, 8683, 40, 842, 2918, 18, 10976, 67, 7913, 17735, 67, 12983, 29154, 67, 12845, 3047, 1584, 13491, 263, 14963, 12, 1376, 18, 588, 4820, 1046, 7675, 588, 29583, 1435, 3719, 288, 5411, 604, 394, 2754, 12, 10792, 315, 7913, 17735, 30, 11650, 17, 5421, 360, 278, 930, 2665, 1199, 1769, 3639, 289, 3639, 333, 18, 1376, 273, 1123, 31, 3639, 368, 2884, 326, 2605, 930, 18, 3639, 368, 5686, 17, 5421, 360, 278, 353, 23772, 279, 16258, 42, 2356, 590, 1496, 598, 279, 666, 434, 3639, 368, 3897, 87, 2546, 3096, 316, 18, 3639, 2 ]
if (step1.getType() != step2.getType()) {
int type1 = step1.getType(); int type2 = step2.getType(); if (type1 == Step.TAIL && type2 == Step.ELEM) { return 1; } if (type1 == Step.ELEM && type2 == Step.TAIL) { return -1; } if (type1 != type2) {
public Iterator altFieldIterator(final String altId) { Comparator comp; //{{{ comp = new Comparator() { ... } comp = new Comparator() { public int compare(Object o1, Object o2) { Field field1 = (Field)o1; Field field2 = (Field)o2; Iterator path1 = field1.getLocation(altId).stepIterator(); Iterator path2 = field2.getLocation(altId).stepIterator(); while (path1.hasNext()) { if (!path2.hasNext()) { throw new RuntimeException("incompatible paths: " + field1 + "," + field2); } Step step1 = (Step)path1.next(); Step step2 = (Step)path2.next(); if (step1.getType() != step2.getType()) { throw new RuntimeException("incompatible paths: " + field1 + "," + field2); } if (step1.getIndex() < step2.getIndex()) { return -1; } if (step1.getIndex() > step2.getIndex()) { return 1; } } if (path2.hasNext()) { throw new RuntimeException("incompatible paths: " + field1 + "," + field2); } if (o1 != o2) { throw new RuntimeException("asjemenou?"); } return 0; } }; //}}} SortedSet sortedAltFields = new TreeSet(comp); Iterator iter = fields.values().iterator(); while (iter.hasNext()) { Field field = (Field)iter.next(); if (field.hasAltId(altId)) { sortedAltFields.add(field); } } return sortedAltFields.iterator(); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/654e14fc8356b73b0f004567e92c7a945a145791/Type.java/buggy/apigen/apigen/Type.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4498, 3770, 974, 3198, 12, 6385, 514, 3770, 548, 13, 225, 288, 565, 13359, 1161, 31, 565, 368, 12187, 95, 1161, 273, 394, 13359, 1435, 288, 1372, 289, 565, 1161, 273, 394, 13359, 1435, 288, 1377, 1071, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 202, 974, 652, 21, 273, 261, 974, 13, 83, 21, 31, 202, 974, 652, 22, 273, 261, 974, 13, 83, 22, 31, 202, 3198, 589, 21, 273, 652, 21, 18, 588, 2735, 12, 2390, 548, 2934, 4119, 3198, 5621, 202, 3198, 589, 22, 273, 652, 22, 18, 588, 2735, 12, 2390, 548, 2934, 4119, 3198, 5621, 202, 17523, 261, 803, 21, 18, 5332, 2134, 10756, 288, 202, 225, 309, 16051, 803, 22, 18, 5332, 2134, 10756, 288, 202, 565, 604, 394, 3235, 2932, 267, 10943, 2953, 30, 315, 6862, 4202, 397, 652, 21, 397, 5753, 397, 652, 22, 1769, 202, 225, 289, 202, 225, 8693, 2235, 21, 273, 261, 4160, 13, 803, 21, 18, 4285, 5621, 202, 225, 8693, 2235, 22, 273, 261, 4160, 13, 803, 22, 18, 4285, 5621, 202, 225, 309, 261, 4119, 21, 18, 588, 559, 1435, 480, 2235, 22, 18, 588, 559, 10756, 288, 202, 565, 604, 394, 3235, 2932, 267, 10943, 2953, 30, 315, 6862, 4202, 397, 652, 21, 397, 5753, 397, 652, 22, 1769, 202, 225, 289, 202, 225, 309, 261, 4119, 21, 18, 588, 1016, 1435, 411, 2235, 22, 18, 588, 1016, 10756, 288, 202, 565, 327, 300, 21, 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, 4498, 3770, 974, 3198, 12, 6385, 514, 3770, 548, 13, 225, 288, 565, 13359, 1161, 31, 565, 368, 12187, 95, 1161, 273, 394, 13359, 1435, 288, 1372, 289, 565, 1161, 273, 394, 13359, 1435, 288, 1377, 1071, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 202, 974, 652, 21, 273, 261, 974, 13, 83, 21, 31, 202, 974, 652, 22, 273, 261, 974, 13, 83, 22, 31, 202, 3198, 589, 21, 273, 652, 21, 18, 588, 2735, 12, 2390, 548, 2934, 4119, 3198, 5621, 202, 3198, 589, 22, 273, 652, 22, 18, 588, 2735, 12, 2390, 548, 2934, 4119, 3198, 5621, 202, 17523, 261, 803, 21, 18, 5332, 2134, 10756, 288, 202, 225, 2 ]
generalSettings.fireRendererSettingsChanged(); }
if (renderersWereModified) { NodeRendererSettings.getInstance().fireRenderersChanged(); } }
public void apply() { if (myPanel != null) { ViewsGeneralSettings generalSettings = ViewsGeneralSettings.getInstance(); applyTo(generalSettings); myArrayRendererConfigurable.apply(); generalSettings.fireRendererSettingsChanged(); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/bfe82dc83a75d544fa3ff4054e33414a2a195961/ViewsGeneralConfigurable.java/clean/source/com/intellij/debugger/settings/ViewsGeneralConfigurable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 1435, 288, 565, 309, 261, 4811, 5537, 480, 446, 13, 288, 1377, 31117, 12580, 2628, 7470, 2628, 273, 31117, 12580, 2628, 18, 588, 1442, 5621, 1377, 28681, 12, 12259, 2628, 1769, 1377, 3399, 1076, 6747, 31660, 18, 9010, 5621, 1377, 7470, 2628, 18, 12179, 6747, 2628, 5033, 5621, 377, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2230, 1435, 288, 565, 309, 261, 4811, 5537, 480, 446, 13, 288, 1377, 31117, 12580, 2628, 7470, 2628, 273, 31117, 12580, 2628, 18, 588, 1442, 5621, 1377, 28681, 12, 12259, 2628, 1769, 1377, 3399, 1076, 6747, 31660, 18, 9010, 5621, 1377, 7470, 2628, 18, 12179, 6747, 2628, 5033, 5621, 377, 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 ]
throw new PDOMNotImplementedError();
return null;
public IType getType() throws DOMException { throw new PDOMNotImplementedError(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f5223537de566582ce63c2617aced7ac7e6591dc/PDOMCPPField.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 559, 3130, 1435, 1216, 4703, 503, 288, 202, 202, 12849, 394, 453, 8168, 1248, 8644, 668, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 559, 3130, 1435, 1216, 4703, 503, 288, 202, 202, 12849, 394, 453, 8168, 1248, 8644, 668, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator(); i.hasNext(); ) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Channel channel = (Channel) i.next(); double gMin = channel.getStatsInfo().getGlobalMin().doubleValue(); double gMax = channel.getStatsInfo().getGlobalMax().doubleValue(); //TEst sf.computeLocationStats(metadata, buffer, pd, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb[w].setNoiseReduction(Boolean.TRUE); float start = cb[w].getInputStart().floatValue(); float end = cb[w].getInputEnd().floatValue(); //TODO: find a better way. if (gMax == end && gMin == start) cb[w].setInputStart(new Float(sf.getInputStart())); cb[w].setInputEnd(new Float(sf.getInputEnd())); // TODO double / Float? } }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/clean/components/rendering/src/omeis/providers/re/Renderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 282, 918, 282, 3671, 2735, 4195, 12, 19505, 3262, 282, 4863, 13, 5411, 288, 13491, 309, 282, 261, 22353, 282, 422, 282, 446, 13, 7682, 202, 12849, 282, 394, 282, 10108, 2932, 2279, 282, 11017, 282, 2379, 1199, 1769, 13491, 5307, 5250, 8526, 282, 2875, 282, 273, 282, 16454, 10497, 5621, 13491, 11486, 1733, 282, 9033, 282, 273, 282, 394, 282, 11486, 1733, 5621, 13491, 509, 282, 341, 282, 273, 282, 374, 31, 13491, 364, 282, 261, 3198, 282, 277, 282, 273, 282, 11159, 7675, 588, 10585, 7675, 9838, 5621, 282, 277, 18, 5332, 2134, 5621, 282, 262, 13491, 288, 7682, 202, 759, 282, 9852, 30, 282, 1220, 282, 353, 282, 1625, 282, 732, 282, 1608, 282, 358, 282, 1240, 282, 326, 282, 5307, 5250, 282, 15431, 7682, 202, 759, 282, 5307, 282, 1692, 410, 18, 7682, 202, 2909, 282, 1904, 282, 273, 282, 261, 2909, 13, 282, 277, 18, 4285, 5621, 7682, 202, 9056, 282, 314, 2930, 282, 273, 282, 1904, 18, 588, 4195, 966, 7675, 588, 5160, 2930, 7675, 9056, 620, 5621, 7682, 202, 9056, 282, 314, 2747, 282, 273, 282, 1904, 18, 588, 4195, 966, 7675, 588, 5160, 2747, 7675, 9056, 620, 5621, 4766, 565, 368, 1448, 334, 7682, 202, 21668, 18, 9200, 2735, 4195, 12, 4165, 16, 282, 1613, 16, 282, 4863, 16, 282, 341, 1769, 7682, 202, 759, 7358, 63, 91, 8009, 542, 2279, 784, 3715, 4062, 12, 2704, 282, 3411, 12, 21668, 18, 291, 2279, 784, 3715, 4062, 1435, 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, 282, 918, 282, 3671, 2735, 4195, 12, 19505, 3262, 282, 4863, 13, 5411, 288, 13491, 309, 282, 261, 22353, 282, 422, 282, 446, 13, 7682, 202, 12849, 282, 394, 282, 10108, 2932, 2279, 282, 11017, 282, 2379, 1199, 1769, 13491, 5307, 5250, 8526, 282, 2875, 282, 273, 282, 16454, 10497, 5621, 13491, 11486, 1733, 282, 9033, 282, 273, 282, 394, 282, 11486, 1733, 5621, 13491, 509, 282, 341, 282, 273, 282, 374, 31, 13491, 364, 282, 261, 3198, 282, 277, 282, 273, 282, 11159, 7675, 588, 10585, 7675, 9838, 5621, 282, 277, 18, 5332, 2134, 5621, 282, 262, 13491, 288, 7682, 202, 759, 282, 9852, 30, 282, 1220, 282, 353, 282, 1625, 282, 732, 282, 1608, 282, 2 ]
createRotationPanel();
createRotationPanel( );
private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); GridLayout glGeneral = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpGeneral = new Composite(cmpContent, SWT.NONE); GridData gdCMPGeneral = new GridData(GridData.FILL_BOTH); cmpGeneral.setLayoutData(gdCMPGeneral); cmpGeneral.setLayout(glGeneral); Label lblStartColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLStartColor = new GridData(); lblStartColor.setLayoutData(gdLBLStartColor); lblStartColor.setText(Messages.getString("GradientEditorDialog.Lbl.StartColor")); //$NON-NLS-1$ fccStartColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getStartColor(), false, false); GridData gdFCCStartColor = new GridData(GridData.FILL_HORIZONTAL); fccStartColor.setLayoutData(gdFCCStartColor); fccStartColor.addListener(this); Label lblEndColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLEndColor = new GridData(); lblEndColor.setLayoutData(gdLBLEndColor); lblEndColor.setText(Messages.getString("GradientEditorDialog.Lbl.EndColor")); //$NON-NLS-1$ fccEndColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getEndColor(), false, false); GridData gdFCCEndColor = new GridData(GridData.FILL_HORIZONTAL); fccEndColor.setLayoutData(gdFCCEndColor); fccEndColor.addListener(this); Label lblDummy = new Label(cmpGeneral, SWT.NONE); GridData gdLBLDummy = new GridData(GridData.FILL_BOTH); lblDummy.setLayoutData(gdLBLDummy); createRotationPanel(); /* * cbCyclic = new Button(cmpContent, SWT.CHECK); GridData gdCBCyclic = new GridData(GridData.FILL_HORIZONTAL); * gdCBCyclic.horizontalSpan = 4; cbCyclic.setLayoutData(gdCBCyclic); cbCyclic.setText("Is Cyclic"); * cbCyclic.setSelection(gCurrent.isCyclic()); */ Group grpPreview = new Group(cmpContent, SWT.NONE); GridData gdGRPPreview = new GridData(GridData.FILL_BOTH); gdGRPPreview.horizontalSpan = 2; grpPreview.setLayoutData(gdGRPPreview); grpPreview.setLayout(new FillLayout()); grpPreview.setText(Messages.getString("GradientEditorDialog.Lbl.Preview")); //$NON-NLS-1$ cnvPreview = new FillCanvas(grpPreview, SWT.NO_FOCUS); cnvPreview.setFill(gCurrent); GridLayout glButtons = new GridLayout(); glButtons.numColumns = 2; glButtons.horizontalSpacing = 5; glButtons.verticalSpacing = 5; glButtons.marginHeight = 2; glButtons.marginWidth = 7; cmpButtons = new Composite(cmpContent, SWT.NONE); GridData gdCMPButtons = new GridData(GridData.FILL_HORIZONTAL); gdCMPButtons.horizontalSpan = 4; cmpButtons.setLayoutData(gdCMPButtons); cmpButtons.setLayout(glButtons); btnAccept = new Button(cmpButtons, SWT.PUSH); GridData gdBTNAccept = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END); gdBTNAccept.grabExcessHorizontalSpace = true; btnAccept.setLayoutData(gdBTNAccept); btnAccept.setText(Messages.getString("Shared.Lbl.OK")); //$NON-NLS-1$ btnAccept.addSelectionListener(this); btnCancel = new Button(cmpButtons, SWT.PUSH); GridData gdBTNCancel = new GridData(GridData.HORIZONTAL_ALIGN_END); gdBTNCancel.grabExcessHorizontalSpace = false; btnCancel.setLayoutData(gdBTNCancel); btnCancel.setText(Messages.getString("Shared.Lbl.Cancel")); //$NON-NLS-1$ btnCancel.addSelectionListener(this); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c60a4815037b62e9358af2625eb6236e7c979d0f/GradientEditorDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/GradientEditorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 7145, 3744, 5118, 1350, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 2107, 3380, 273, 576, 31, 3639, 5118, 1350, 18, 18396, 18006, 273, 1381, 31, 3639, 5118, 1350, 18, 17824, 18006, 273, 1381, 31, 3639, 9411, 1350, 273, 394, 14728, 12, 10304, 16, 348, 8588, 18, 9826, 1769, 3639, 9411, 1350, 18, 542, 3744, 12, 7043, 1350, 1769, 3639, 7145, 3744, 5118, 12580, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 2107, 3380, 273, 576, 31, 3639, 5118, 1350, 18, 18396, 18006, 273, 1381, 31, 3639, 5118, 1350, 18, 17824, 18006, 273, 1381, 31, 3639, 9411, 12580, 273, 394, 14728, 12, 9625, 1350, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 751, 15551, 39, 4566, 12580, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 1769, 3639, 9411, 12580, 18, 542, 3744, 751, 12, 19016, 39, 4566, 12580, 1769, 3639, 9411, 12580, 18, 542, 3744, 12, 7043, 12580, 1769, 3639, 5287, 14284, 1685, 2957, 273, 394, 5287, 12, 9625, 12580, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 751, 15551, 12995, 48, 1685, 2957, 273, 394, 7145, 751, 5621, 3639, 14284, 1685, 2957, 18, 542, 3744, 751, 12, 19016, 12995, 48, 1685, 2957, 1769, 3639, 14284, 1685, 2957, 18, 542, 1528, 12, 5058, 18, 588, 780, 2932, 15651, 6946, 6353, 18, 48, 3083, 18, 1685, 2957, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 284, 952, 1685, 2957, 273, 394, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3166, 7171, 1435, 565, 288, 3639, 7145, 3744, 5118, 1350, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 2107, 3380, 273, 576, 31, 3639, 5118, 1350, 18, 18396, 18006, 273, 1381, 31, 3639, 5118, 1350, 18, 17824, 18006, 273, 1381, 31, 3639, 9411, 1350, 273, 394, 14728, 12, 10304, 16, 348, 8588, 18, 9826, 1769, 3639, 9411, 1350, 18, 542, 3744, 12, 7043, 1350, 1769, 3639, 7145, 3744, 5118, 12580, 273, 394, 7145, 3744, 5621, 3639, 5118, 1350, 18, 2107, 3380, 273, 576, 31, 3639, 5118, 1350, 18, 18396, 18006, 273, 1381, 31, 3639, 5118, 1350, 18, 17824, 18006, 273, 1381, 31, 3639, 9411, 12580, 273, 394, 14728, 12, 9625, 1350, 16, 348, 8588, 18, 2 ]
String name = heads.text(); columnBindings[i] = Binding.create(this, name);
columnBindings[i] = createBinding(i, heads);
protected void bind(Parse heads) { try { columnBindings = new Binding[heads.size()]; for(int i = 0; heads != null; i++, heads = heads.more) { String name = heads.text(); columnBindings[i] = Binding.create(this, name); } } catch(Throwable throwable) { exception(heads, throwable); } }
52502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52502/ec2576158a28bfaeeb5879001e3d4802a1e122b1/ColumnFixture.java/buggy/src/fit/ColumnFixture.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1993, 12, 3201, 22742, 13, 225, 288, 202, 225, 775, 202, 225, 288, 1082, 225, 1057, 10497, 273, 394, 15689, 63, 20263, 18, 1467, 1435, 15533, 1082, 225, 364, 12, 474, 277, 273, 374, 31, 22742, 480, 446, 31, 277, 9904, 16, 22742, 273, 22742, 18, 10161, 13, 1082, 225, 288, 1082, 565, 514, 508, 273, 22742, 18, 955, 5621, 9506, 225, 1057, 10497, 63, 77, 65, 273, 15689, 18, 2640, 12, 2211, 16, 508, 1769, 1082, 225, 289, 202, 225, 289, 202, 225, 1044, 12, 15155, 10132, 13, 202, 225, 288, 1082, 225, 1520, 12, 20263, 16, 10132, 1769, 202, 225, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 4750, 918, 1993, 12, 3201, 22742, 13, 225, 288, 202, 225, 775, 202, 225, 288, 1082, 225, 1057, 10497, 273, 394, 15689, 63, 20263, 18, 1467, 1435, 15533, 1082, 225, 364, 12, 474, 277, 273, 374, 31, 22742, 480, 446, 31, 277, 9904, 16, 22742, 273, 22742, 18, 10161, 13, 1082, 225, 288, 1082, 565, 514, 508, 273, 22742, 18, 955, 5621, 9506, 225, 1057, 10497, 63, 77, 65, 273, 15689, 18, 2640, 12, 2211, 16, 508, 1769, 1082, 225, 289, 202, 225, 289, 202, 225, 1044, 12, 15155, 10132, 13, 202, 225, 288, 1082, 225, 1520, 12, 20263, 16, 10132, 1769, 202, 225, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
push(N); addByteCode(ByteCode.ANEWARRAY, "java/lang/String");
cfw.addPush(N); cfw.add(ByteCode.ANEWARRAY, "java/lang/String");
private void generateInit(Context cx, String superClassName) { String methodName = (inFunction) ? "<init>" : "initScript"; classFile.startMethod(methodName, "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;)V", ClassFileWriter.ACC_PUBLIC); final byte ALOAD_SCOPE = ByteCode.ALOAD_1; final byte ALOAD_CONTEXT = ByteCode.ALOAD_2; if (inFunction) { addByteCode(ByteCode.ALOAD_0); addSpecialInvoke(superClassName, "<init>", "()V"); addByteCode(ByteCode.ALOAD_0); addByteCode(ALOAD_SCOPE); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/ScriptableObject", "parent", "Lorg/mozilla/javascript/Scriptable;"); /* * Generate code to initialize functionName field with the name * of the function. */ String name = fnCurrent.getFunctionName(); if (name.length() != 0) { addByteCode(ByteCode.ALOAD_0); classFile.addLoadConstant(name); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "functionName", "Ljava/lang/String;"); } } /* * Generate code to initialize argNames string array with the names * of the parameters and the vars. Initialize argCount * to the number of formal parameters. */ int N = scriptOrFn.getParamAndVarCount(); if (N != 0) { push(N); addByteCode(ByteCode.ANEWARRAY, "java/lang/String"); for (int i = 0; i != N; i++) { addByteCode(ByteCode.DUP); push(i); push(scriptOrFn.getParamOrVarName(i)); addByteCode(ByteCode.AASTORE); } addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.SWAP); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "argNames", "[Ljava/lang/String;"); } int parmCount = scriptOrFn.getParamCount(); if (parmCount != 0) { if (!inFunction) Context.codeBug(); addByteCode(ByteCode.ALOAD_0); push(parmCount); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "argCount", "S"); } // Initialize NativeFunction.version with Context's version. if (cx.getLanguageVersion() != 0) { addByteCode(ByteCode.ALOAD_0); push(cx.getLanguageVersion()); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "version", "S"); } // precompile all regexp literals int regexpCount = scriptOrFn.getRegexpCount(); if (regexpCount != 0) { for (int i = 0; i != regexpCount; ++i) { String fieldName = getRegexpFieldName(i); short flags = ClassFileWriter.ACC_PRIVATE; if (inFunction) { flags |= ClassFileWriter.ACC_FINAL; } classFile.addField( fieldName, "Lorg/mozilla/javascript/regexp/NativeRegExp;", flags); addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ByteCode.NEW, "org/mozilla/javascript/regexp/NativeRegExp"); addByteCode(ByteCode.DUP); addByteCode(ALOAD_CONTEXT); addByteCode(ALOAD_SCOPE); push(scriptOrFn.getRegexpString(i)); String regexpFlags = scriptOrFn.getRegexpFlags(i); if (regexpFlags == null) { addByteCode(ByteCode.ACONST_NULL); } else { push(regexpFlags); } push(0); addSpecialInvoke("org/mozilla/javascript/regexp/NativeRegExp", "<init>", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;Ljava/lang/String;" +"Z" +")V"); classFile.add(ByteCode.PUTFIELD, generatedClassName, fieldName, "Lorg/mozilla/javascript/regexp/NativeRegExp;"); } } classFile.addField(MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature, (short)0); // For top level script or function init scriptMaster to self if (isMainCodegen) { addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.DUP); classFile.add(ByteCode.PUTFIELD, generatedClassName, MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); } addByteCode(ByteCode.RETURN); // 3 = this + scope + context classFile.stopMethod((short)3, null); // Add static method to return encoded source tree for decompilation // which will be called from OptFunction/OptScrript.getSourcesTree // via reflection. See NativeFunction.getSourcesTree for documentation. // Note that nested function decompilation currently depends on the // elements of the fns array being defined in source order. // (per function/script, starting from 0.) // Change Parser if changing ordering. if (mainCodegen.encodedSource != null) { // Override NativeFunction.getEncodedSourceg() with // public String getEncodedSource() // { // return main_class.getEncodedSourceImpl(START, END); // } short flags = ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_STATIC; String getSourceMethodStr = "getEncodedSourceImpl"; String mainImplSig = "(II)Ljava/lang/String;"; classFile.startMethod("getEncodedSource", "()Ljava/lang/Object;", ClassFileWriter.ACC_PUBLIC); push(scriptOrFn.getEncodedSourceStart()); push(scriptOrFn.getEncodedSourceEnd()); classFile.addInvoke(ByteCode.INVOKESTATIC, mainCodegen.generatedClassName, getSourceMethodStr, mainImplSig); addByteCode(ByteCode.ARETURN); // 1: this and no argument or locals classFile.stopMethod((short)1, null); if (isMainCodegen) { // generate // public static String getEncodedSourceImpl(int start, int end) // { // return ENCODED.substring(start, end); // } classFile.startMethod(getSourceMethodStr, mainImplSig, (short)flags); push(encodedSource); addByteCode(ByteCode.ILOAD_0); addByteCode(ByteCode.ILOAD_1); classFile.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/String", "substring", "(II)Ljava/lang/String;"); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)2, null); } } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2570, 12, 1042, 9494, 16, 514, 2240, 3834, 13, 565, 288, 3639, 514, 4918, 273, 261, 267, 2083, 13, 692, 3532, 2738, 2984, 294, 225, 315, 2738, 3651, 14432, 3639, 29728, 18, 1937, 1305, 12, 2039, 461, 16, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 17311, 397, 6, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 30943, 58, 3113, 17311, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 727, 1160, 432, 7783, 67, 19444, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 21, 31, 3639, 727, 1160, 432, 7783, 67, 13181, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 22, 31, 3639, 309, 261, 267, 2083, 13, 288, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 5411, 527, 12193, 10969, 12, 9565, 3834, 16, 3532, 2738, 2984, 16, 25605, 58, 8863, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 5411, 527, 3216, 1085, 12, 1013, 51, 1880, 67, 19444, 1769, 5411, 29728, 18, 1289, 12, 3216, 1085, 18, 4762, 6776, 16, 12900, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 921, 3113, 12900, 315, 2938, 3113, 315, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 1769, 5411, 1748, 2398, 380, 6654, 981, 358, 4046, 14117, 652, 598, 326, 508, 2398, 380, 434, 326, 445, 18, 2398, 1195, 5411, 514, 508, 273, 2295, 3935, 18, 588, 25258, 5621, 5411, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2570, 12, 1042, 9494, 16, 514, 2240, 3834, 13, 565, 288, 3639, 514, 4918, 273, 261, 267, 2083, 13, 692, 3532, 2738, 2984, 294, 225, 315, 2738, 3651, 14432, 3639, 29728, 18, 1937, 1305, 12, 2039, 461, 16, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 17311, 397, 6, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 30943, 58, 3113, 17311, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 727, 1160, 432, 7783, 67, 19444, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 21, 31, 3639, 727, 1160, 432, 7783, 67, 13181, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 22, 31, 3639, 309, 261, 267, 2083, 13, 288, 2 ]
Iterator<ImportElement> iterator = myImports.iterator(); while (iterator.hasNext()) { ImportElement importElement = iterator.next();
for (ImportElement importElement : myImports) {
SModelUID getImportedModelUID(int referenceID) { Iterator<ImportElement> iterator = myImports.iterator(); while (iterator.hasNext()) { ImportElement importElement = iterator.next(); if (importElement.getReferenceID() == referenceID) { return importElement.getModelUID(); } } return null; }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/a74e02026bf22498daeacdbb4ecac40d01bd342c/SModel.java/buggy/source/jetbrains/mps/smodel/SModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 348, 1488, 3060, 336, 24934, 1488, 3060, 12, 474, 2114, 734, 13, 288, 565, 4498, 32, 5010, 1046, 34, 2775, 273, 3399, 13347, 18, 9838, 5621, 565, 1323, 261, 9838, 18, 5332, 2134, 10756, 288, 1377, 6164, 1046, 1930, 1046, 273, 2775, 18, 4285, 5621, 1377, 309, 261, 5666, 1046, 18, 588, 2404, 734, 1435, 422, 2114, 734, 13, 288, 3639, 327, 1930, 1046, 18, 588, 1488, 3060, 5621, 1377, 289, 565, 289, 565, 327, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 348, 1488, 3060, 336, 24934, 1488, 3060, 12, 474, 2114, 734, 13, 288, 565, 4498, 32, 5010, 1046, 34, 2775, 273, 3399, 13347, 18, 9838, 5621, 565, 1323, 261, 9838, 18, 5332, 2134, 10756, 288, 1377, 6164, 1046, 1930, 1046, 273, 2775, 18, 4285, 5621, 1377, 309, 261, 5666, 1046, 18, 588, 2404, 734, 1435, 422, 2114, 734, 13, 288, 3639, 327, 1930, 1046, 18, 588, 1488, 3060, 5621, 1377, 289, 565, 289, 565, 327, 446, 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 ]
engine.search(workspace, pattern, scope, collector, true);
try { engine.search(workspace, pattern, scope, collector, true); } catch (OperationCanceledException e) { throw new InterruptedException(); }
public void run(IProgressMonitor monitor) throws InterruptedException { collector.setProgressMonitor(monitor); engine.search(workspace, pattern, scope, collector, true); if (monitor.isCanceled()) { throw new InterruptedException(); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6cd03b77ff666533b43dc862a6a41cb8ba057cb7/TypeSearchOperation.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 7558, 288, 202, 202, 21356, 18, 542, 5491, 7187, 12, 10259, 1769, 202, 202, 8944, 18, 3072, 12, 14915, 16, 1936, 16, 2146, 16, 8543, 16, 638, 1769, 202, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 1082, 202, 12849, 394, 7558, 5621, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 5491, 7187, 6438, 13, 1216, 7558, 288, 202, 202, 21356, 18, 542, 5491, 7187, 12, 10259, 1769, 202, 202, 8944, 18, 3072, 12, 14915, 16, 1936, 16, 2146, 16, 8543, 16, 638, 1769, 202, 202, 430, 261, 10259, 18, 291, 23163, 10756, 288, 1082, 202, 12849, 394, 7558, 5621, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
OPT_MemoryOperand.BD(R(PR),
OPT_MemoryOperand.BD(new OPT_RegisterOperand(PR, VM_TypeReference.Int),
void insertNormalPrologue() { OPT_PhysicalRegisterSet phys = ir.regpool.getPhysicalRegisterSet(); OPT_Register ESP = phys.getESP(); OPT_Register PR = phys.getPR(); OPT_MemoryOperand fpHome = OPT_MemoryOperand.BD(R(PR), VM_Entrypoints.framePointerField.getOffset(), (byte)WORDSIZE, null, null); // inst is the instruction immediately after the IR_PROLOGUE // instruction OPT_Instruction inst = ir.firstInstructionInCodeOrder().nextInstructionInCodeOrder().nextInstructionInCodeOrder(); OPT_Instruction plg = inst.getPrev(); int frameFixedSize = getFrameFixedSize(); ir.compiledMethod.setFrameFixedSize(frameFixedSize); // I. Buy a stackframe (including overflow check) // NOTE: We play a little game here. If the frame we are buying is // very small (less than 256) then we can be sloppy with the // stackoverflow check and actually allocate the frame in the guard // region. We'll notice when this frame calls someone and take the // stackoverflow in the callee. We can't do this if the frame is too big, // because growing the stack in the callee and/or handling a hardware trap // in this frame will require most of the guard region to complete. // See libvm.C. if (frameFixedSize >= 256) { // 1. Insert Stack overflow check. insertBigFrameStackOverflowCheck(plg); // 2. Save caller's frame pointer inst.insertBefore(MIR_UnaryNoRes.create(IA32_PUSH, fpHome)); // 3. Set my frame pointer to current value of stackpointer inst.insertBefore(MIR_Move.create(IA32_MOV, fpHome.copy(), R(ESP))); // 4. Store my compiled method id int cmid = ir.compiledMethod.getId(); inst.insertBefore(MIR_UnaryNoRes.create(IA32_PUSH, IC(cmid))); } else { // 1. Save caller's frame pointer inst.insertBefore(MIR_UnaryNoRes.create(IA32_PUSH, fpHome)); // 2. Set my frame pointer to current value of stackpointer inst.insertBefore(MIR_Move.create(IA32_MOV, fpHome.copy(), R(ESP))); // 3. Store my compiled method id int cmid = ir.compiledMethod.getId(); inst.insertBefore(MIR_UnaryNoRes.create(IA32_PUSH, IC(cmid))); // 4. Insert Stack overflow check. insertNormalStackOverflowCheck(plg); } // II. Save any used volatile and non-volatile registers if (ir.compiledMethod.isSaveVolatile()) { saveVolatiles(inst); saveFloatingPointState(inst); } saveNonVolatiles(inst); inst.insertBefore(Empty.create(IR_ENDPROLOGUE)); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/34d593e20db098ebb2906460112536d78ee1592a/OPT_StackManager.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/regalloc/OPT_StackManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 2243, 5506, 626, 1330, 344, 1435, 288, 565, 16456, 67, 18136, 3996, 694, 24758, 273, 9482, 18, 1574, 6011, 18, 588, 18136, 3996, 694, 5621, 565, 16456, 67, 3996, 512, 3118, 273, 24758, 18, 588, 41, 3118, 5621, 377, 16456, 67, 3996, 11770, 273, 24758, 18, 588, 8025, 5621, 565, 16456, 67, 6031, 10265, 4253, 8684, 273, 4202, 16456, 67, 6031, 10265, 18, 18096, 12, 2704, 16456, 67, 3996, 10265, 12, 8025, 16, 8251, 67, 7534, 18, 1702, 3631, 21821, 8251, 67, 1622, 4139, 18, 3789, 4926, 974, 18, 588, 2335, 9334, 21821, 261, 7229, 13, 7952, 4574, 16, 446, 16, 446, 1769, 565, 368, 1804, 353, 326, 7592, 7636, 1839, 326, 15908, 67, 3373, 4842, 1821, 565, 368, 7592, 565, 16456, 67, 11983, 1804, 273, 9482, 18, 3645, 11983, 382, 1085, 2448, 7675, 4285, 11983, 382, 1085, 2448, 7675, 4285, 11983, 382, 1085, 2448, 5621, 565, 16456, 67, 11983, 886, 75, 273, 1804, 18, 588, 9958, 5621, 565, 509, 2623, 7505, 1225, 273, 25396, 7505, 1225, 5621, 565, 9482, 18, 19397, 1305, 18, 542, 3219, 7505, 1225, 12, 3789, 7505, 1225, 1769, 565, 368, 467, 18, 605, 9835, 279, 2110, 3789, 261, 31348, 9391, 866, 13, 565, 368, 5219, 30, 1660, 6599, 279, 12720, 7920, 2674, 18, 225, 971, 326, 2623, 732, 854, 30143, 310, 353, 565, 368, 4202, 8572, 5264, 261, 2656, 2353, 8303, 13, 1508, 732, 848, 506, 30748, 2074, 598, 326, 377, 368, 4202, 22180, 866, 471, 6013, 10101, 326, 2623, 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, 918, 2243, 5506, 626, 1330, 344, 1435, 288, 565, 16456, 67, 18136, 3996, 694, 24758, 273, 9482, 18, 1574, 6011, 18, 588, 18136, 3996, 694, 5621, 565, 16456, 67, 3996, 512, 3118, 273, 24758, 18, 588, 41, 3118, 5621, 377, 16456, 67, 3996, 11770, 273, 24758, 18, 588, 8025, 5621, 565, 16456, 67, 6031, 10265, 4253, 8684, 273, 4202, 16456, 67, 6031, 10265, 18, 18096, 12, 2704, 16456, 67, 3996, 10265, 12, 8025, 16, 8251, 67, 7534, 18, 1702, 3631, 21821, 8251, 67, 1622, 4139, 18, 3789, 4926, 974, 18, 588, 2335, 9334, 21821, 261, 7229, 13, 7952, 4574, 16, 446, 16, 446, 1769, 565, 368, 1804, 353, 326, 7592, 7636, 1839, 326, 15908, 67, 3373, 4842, 1821, 2 ]
public void detectNewRow(String path);
public void detectNewRow( String path, boolean start );
public void detectNewRow(String path);
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/857f08d2976a6c670029ef1e5217acb85d868190/ISaxParserConsumer.java/buggy/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ISaxParserConsumer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5966, 1908, 1999, 12, 780, 589, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5966, 1908, 1999, 12, 780, 589, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
EquipmentType.addType(createISTAG()); EquipmentType.addType(createISLightTAG()); EquipmentType.addType(createCLTAG()); EquipmentType.addType(createCLLightTAG());
public static void initializeTypes() { // all tech level 1 stuff EquipmentType.addType(createHeatSink()); EquipmentType.addType(createJumpJet()); EquipmentType.addType(createTreeClub()); EquipmentType.addType(createGirderClub()); EquipmentType.addType(createLimbClub()); EquipmentType.addType(createHatchet()); // Start of Level2 stuff EquipmentType.addType(createISDoubleHeatSink()); EquipmentType.addType(createCLDoubleHeatSink()); EquipmentType.addType(createISCASE()); EquipmentType.addType(createCLCASE()); EquipmentType.addType(createISMASC()); EquipmentType.addType(createCLMASC()); EquipmentType.addType(createTSM()); EquipmentType.addType(createC3S()); EquipmentType.addType(createC3M()); EquipmentType.addType(createC3I()); EquipmentType.addType(createISArtemis()); EquipmentType.addType(createCLArtemis()); EquipmentType.addType(createGECM()); EquipmentType.addType(createCLECM()); EquipmentType.addType(createISTargComp()); EquipmentType.addType(createCLTargComp()); EquipmentType.addType(createMekStealth()); EquipmentType.addType(createFerroFibrous()); EquipmentType.addType(createEndoSteel()); EquipmentType.addType(createBeagleActiveProbe()); EquipmentType.addType(createCLActiveProbe()); EquipmentType.addType(createCLLightActiveProbe()); EquipmentType.addType(createISTAG()); EquipmentType.addType(createISLightTAG()); EquipmentType.addType(createCLTAG()); EquipmentType.addType(createCLLightTAG()); EquipmentType.addType(createISAPPod()); EquipmentType.addType(createCLAPPod()); EquipmentType.addType(createSword()); // Start of level 3 stuff EquipmentType.addType(createFerroFibrousPrototype()); EquipmentType.addType(createLightFerroFibrous()); EquipmentType.addType(createHeavyFerroFibrous()); EquipmentType.addType(createEndoSteelPrototype()); EquipmentType.addType(createReinforcedStructure()); EquipmentType.addType(createCompositeStructure()); // Start BattleArmor equipment EquipmentType.addType( createBABoardingClaw() ); EquipmentType.addType( createBAAssaultClaws() ); EquipmentType.addType( createBAFireResistantArmor() ); EquipmentType.addType( createBasicStealth() ); EquipmentType.addType( createStandardStealth() ); EquipmentType.addType( createImprovedStealth() ); EquipmentType.addType( createMine() ); EquipmentType.addType( createMinesweeper() ); EquipmentType.addType( createBAMagneticClamp() ); EquipmentType.addType( createSingleHexECM() ); EquipmentType.addType( createMimeticCamo() ); EquipmentType.addType( createSimpleCamo() ); EquipmentType.addType( createParafoil() ); EquipmentType.addType( createBASearchlight() ); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/53880d9aa3f7216685d985bb0cd5f379432ce25d/MiscType.java/clean/megamek/src/megamek/common/MiscType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 4046, 2016, 1435, 288, 3639, 368, 777, 13878, 1801, 404, 10769, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5256, 270, 11326, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 26743, 46, 278, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 2471, 2009, 373, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 43, 481, 765, 2009, 373, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 48, 381, 70, 2009, 373, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 44, 505, 278, 10663, 7734, 368, 3603, 434, 4557, 22, 10769, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5127, 5265, 5256, 270, 11326, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5017, 5265, 5256, 270, 11326, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 45, 2312, 4429, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5017, 13415, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5127, 5535, 2312, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5017, 5535, 2312, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 56, 7303, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 39, 23, 55, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 39, 23, 49, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 39, 23, 45, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5127, 686, 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, 4046, 2016, 1435, 288, 3639, 368, 777, 13878, 1801, 404, 10769, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5256, 270, 11326, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 26743, 46, 278, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 2471, 2009, 373, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 43, 481, 765, 2009, 373, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 48, 381, 70, 2009, 373, 10663, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 44, 505, 278, 10663, 7734, 368, 3603, 434, 4557, 22, 10769, 3639, 19008, 11568, 559, 18, 1289, 559, 12, 2640, 5127, 5265, 5256, 270, 11326, 10663, 2 ]
} else if (tagName.equals("Session")) { } else {
} else {
private void processRequest(Element element, SAXHandler saxHandler) { String tagName = element.getLocalName(); if (tagName.equals("Discover")) { discover(element, saxHandler); } else if (tagName.equals("Execute")) { execute(element, saxHandler); } else if (tagName.equals("Session")) { // Ignore this and don't throw } else { throw Util.newError("Element <" + tagName + "> not supported"); } }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/6a0bccf4b2f4db71715c51cb88065a65f97acd80/XmlaMediator.java/clean/src/main/mondrian/xmla/XmlaMediator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 691, 12, 1046, 930, 16, 10168, 1503, 20319, 1503, 13, 288, 3639, 514, 7196, 273, 930, 18, 588, 29583, 5621, 3639, 309, 261, 2692, 461, 18, 14963, 2932, 26082, 6, 3719, 288, 5411, 10372, 12, 2956, 16, 20319, 1503, 1769, 3639, 289, 469, 309, 261, 2692, 461, 18, 14963, 2932, 5289, 6, 3719, 288, 5411, 1836, 12, 2956, 16, 20319, 1503, 1769, 3639, 289, 469, 309, 261, 2692, 461, 18, 14963, 2932, 2157, 6, 3719, 288, 202, 565, 368, 8049, 333, 471, 2727, 1404, 604, 202, 97, 469, 288, 5411, 604, 3564, 18, 2704, 668, 2932, 1046, 411, 6, 397, 7196, 397, 14402, 486, 3260, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 691, 12, 1046, 930, 16, 10168, 1503, 20319, 1503, 13, 288, 3639, 514, 7196, 273, 930, 18, 588, 29583, 5621, 3639, 309, 261, 2692, 461, 18, 14963, 2932, 26082, 6, 3719, 288, 5411, 10372, 12, 2956, 16, 20319, 1503, 1769, 3639, 289, 469, 309, 261, 2692, 461, 18, 14963, 2932, 5289, 6, 3719, 288, 5411, 1836, 12, 2956, 16, 20319, 1503, 1769, 3639, 289, 469, 309, 261, 2692, 461, 18, 14963, 2932, 2157, 6, 3719, 288, 202, 565, 368, 8049, 333, 471, 2727, 1404, 604, 202, 97, 469, 288, 5411, 604, 3564, 18, 2704, 668, 2932, 1046, 411, 6, 397, 7196, 397, 14402, 486, 3260, 8863, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100 ]
final MainFrame main = new MainFrame();
final MainFrame main = new MainFrame(new Household());
public void start() { logVersionInfo(); final MainFrame main = new MainFrame(); main.show(); }
13936 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13936/fb2bbf9d4379206ed10cec29ce94c3e1ebbc1f8d/ApplicationController.java/buggy/Housekeeper/trunk/housekeeper/src/java/net/sf/housekeeper/ApplicationController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1435, 565, 288, 3639, 613, 28571, 5621, 3639, 727, 12740, 3219, 2774, 273, 394, 12740, 3219, 12, 2704, 670, 3793, 21056, 10663, 3639, 2774, 18, 4500, 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, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1435, 565, 288, 3639, 613, 28571, 5621, 3639, 727, 12740, 3219, 2774, 273, 394, 12740, 3219, 12, 2704, 670, 3793, 21056, 10663, 3639, 2774, 18, 4500, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
XMLUtil.dumpAttributes(attrcopy, xmlw); pos.println(">");
replaceAttributesOpen(rendercontext);
public int renderComponent(UIComponent torendero, View view, XMLLump lump, PrintOutputStream pos, String IDStrategy, XMLLumpMMap collecteds) { XMLWriter xmlw = new XMLWriter(pos); int lumpindex = lump.lumpindex; XMLLump[] lumps = lump.parent.lumps; int nextpos = -1; XMLLump outerendopen = lump.open_end; XMLLump outerclose = lump.close_tag; nextpos = outerclose.lumpindex + 1; XMLLumpList payloadlist = lump.downmap == null ? null : lump.downmap.headsForID(XMLLump.PAYLOAD_COMPONENT); XMLLump payload = payloadlist == null ? null : payloadlist.lumpAt(0); // if there is no peer component, it might still be a static resource holder // that needs URLs rewriting. // we assume there is no payload component here, since there is no producer // ID that might govern selection. So we use "outer" indices. if (torendero == null) { if (lump.rsfID.startsWith(XMLLump.SCR_PREFIX)) { String scrname = lump.rsfID.substring(XMLLump.SCR_PREFIX.length()); StaticComponentRenderer scr = scrc.getSCR(scrname); if (scr == null) { Logger.log .info("Warning: unrecognised static component renderer reference with key " + scrname + " at lump " + lump.toDebugString()); scr = NullRewriteSCR.instance; } int tagtype = RenderUtil.renderSCR(scr, lump, xmlw, collecteds); nextpos = tagtype == ComponentRenderer.LEAF_TAG ? outerclose.lumpindex + 1 : outerendopen.lumpindex + 1; } if (lump.textEquals("<form ")) { Logger.log.warn("Warning: skipping form tag with rsf:id " + lump.rsfID + " and all children at " + lump.toDebugString() + " since no peer component"); } } else { // else there IS a component and we are going to render it. First make // sure we render any preamble. XMLLump endopen = outerendopen; XMLLump close = outerclose; XMLLump uselump = lump; if (payload != null) { endopen = payload.open_end; close = payload.close_tag; uselump = payload; RenderUtil.dumpTillLump(lumps, lumpindex, payload.lumpindex, pos); lumpindex = payload.lumpindex; } String fullID = torendero.getFullID(); HashMap attrcopy = new HashMap(); attrcopy.putAll(uselump.attributemap); IDStrategy = RenderUtil.determineIDStrategy(torendero, IDStrategy); RenderUtil.adjustForID(attrcopy, IDStrategy, fullID); decoratormanager.decorate(torendero.decorators, uselump.getTag(), attrcopy); TagRenderContext rendercontext = new TagRenderContext(attrcopy, uselump, endopen, close, pos, xmlw); // ALWAYS dump the tag name, this can never be rewritten. (probably?!) pos.write(uselump.parent.buffer, uselump.start, uselump.length); // TODO: Note that these are actually BOUND now. Create some kind of // defaultBoundRenderer. if (torendero instanceof UIBound) { UIBound torender = (UIBound) torendero; if (!torender.willinput) { if (torendero.getClass() == UIOutput.class) { String value = ((UIOutput) torendero).getValue(); rewriteLeaf(value, rendercontext); } else if (torendero.getClass() == UIOutputMultiline.class) { StringList value = ((UIOutputMultiline) torendero).getValue(); if (value == null) { RenderUtil.dumpTillLump(lumps, lumpindex + 1, close.lumpindex + 1, pos); } else { XMLUtil.dumpAttributes(attrcopy, xmlw); pos.print(">"); for (int i = 0; i < value.size(); ++i) { if (i != 0) { pos.print("<br/>"); } xmlw.write(value.stringAt(i)); } closeTag(pos, uselump); } } else if (torender.getClass() == UIAnchor.class) { String value = ((UIAnchor) torendero).getValue(); if (UITypes.isPlaceholder(value)) { renderUnchanged(rendercontext); } else { attrcopy.put("name", value); replaceAttributes(rendercontext); } } } // factor out component-invariant processing of UIBound. else { // Bound with willinput = true attrcopy.put("name", torender.submittingname); // attrcopy.put("id", fullID); String value = ""; String body = null; if (torendero instanceof UIInput) { value = ((UIInput) torender).getValue(); if (uselump.textEquals("<textarea ")) { if (UITypes.isPlaceholder(value)) { // FORCE a blank value for input components if nothing from // model. value = ""; } body = value; } else { attrcopy.put("value", value); } } else if (torendero instanceof UIBoundBoolean) { if (((UIBoundBoolean) torender).getValue()) { attrcopy.put("checked", "yes"); } else { attrcopy.remove("checked"); } attrcopy.put("value", "true"); } rewriteLeaf(body, rendercontext); // unify hidden field processing? ANY parameter children found must // be dumped as hidden fields. } // dump any fossilized binding for this component. dumpBoundFields(torender, xmlw); } // end if UIBound else if (torendero instanceof UISelect) { UISelect select = (UISelect) torendero; // The HTML submitted value from a <select> actually corresponds // with the selection member, not the top-level component. attrcopy.put("name", select.selection.submittingname); attrcopy.put("id", select.selection.getFullID()); boolean ishtmlselect = uselump.textEquals("<select "); if (select.selection instanceof UIBoundList && ishtmlselect) { attrcopy.put("multiple", "true"); } XMLUtil.dumpAttributes(attrcopy, xmlw); if (ishtmlselect) { pos.print(">"); String[] values = select.optionlist.getValue(); String[] names = select.optionnames == null ? values : select.optionnames.getValue(); for (int i = 0; i < names.length; ++i) { pos.print("<option value=\""); String value = values[i]; if (value == null) value = Constants.NULL_STRING; xmlw.write(value); if (select.selected.contains(value)) { pos.print("\" selected=\"selected"); } pos.print("\">"); xmlw.write(names[i]); pos.print("</option>\n"); } closeTag(pos, uselump); } else { dumpTemplateBody(rendercontext); } dumpBoundFields(select.selection, xmlw); dumpBoundFields(select.optionlist, xmlw); dumpBoundFields(select.optionnames, xmlw); } else if (torendero instanceof UISelectChoice) { UISelectChoice torender = (UISelectChoice) torendero; UISelect parent = (UISelect) view.getComponent(torender.parentFullID); String value = parent.optionlist.getValue()[torender.choiceindex]; // currently only peers with "input type="radio"". attrcopy.put("name", parent.selection.submittingname); attrcopy.put("value", value); attrcopy.remove("checked"); if (parent.selected.contains(value)) { attrcopy.put("checked", "true"); } replaceAttributes(rendercontext); } else if (torendero instanceof UISelectLabel) { UISelectLabel torender = (UISelectLabel) torendero; UISelect parent = (UISelect) view.getComponent(torender.parentFullID); String value = parent.optionnames.getValue()[torender.choiceindex]; replaceBody(value, rendercontext); } else if (torendero instanceof UILink) { UILink torender = (UILink) torendero; // TODO - imagine that an image link has been provided. this // both needs URL rewritten inside, and also NOT BEING REPLACED with // the supplied body text. String attrname = URLRewriteSCR.getLinkAttribute(uselump); if (attrname != null) { String target = torender.target.getValue(); if (target == null || target.length() == 0) { // some people may perversely want empty links - but they would always // refer to *real* self and hence not be rewritten. target = ""; } else if (!(torendero instanceof UIInternalLink)) { URLRewriteSCR urlrewriter = (URLRewriteSCR) scrc .getSCR(URLRewriteSCR.NAME); if (!URLUtil.isAbsolute(target)) { String rewritten = urlrewriter.resolveURL(uselump.parent, target); if (rewritten != null) target = rewritten; } } attrcopy.put(attrname, target); } String value = torender.linktext == null ? null : torender.linktext.getValue(); if (value == null) { XMLUtil.dumpAttributes(attrcopy, xmlw); pos.print(">"); nextpos = endopen.lumpindex + 1; } else { rewriteLeaf(value, rendercontext); } } else if (torendero instanceof UICommand) { UICommand torender = (UICommand) torendero; String value = RenderUtil.makeURLAttributes(torender.parameters); // any desired "attributes" decoded for JUST THIS ACTION must be // secretly // bundled as this special attribute. attrcopy.put("name", FossilizedConverter.COMMAND_LINK_PARAMETERS + value); String text = torender.commandtext; boolean isbutton = lump.textEquals("<button "); if (text != null && !isbutton) { attrcopy.put("value", torender.commandtext); text = null; } rewriteLeaf(text, rendercontext); // RenderUtil.dumpHiddenField(SubmittedValueEntry.ACTION_METHOD, // torender.actionhandler, pos); } // Forms behave slightly oddly in the hierarchy - by the time they reach // the renderer, they have been "shunted out" of line with their children, // i.e. any "submitting" controls, if indeed they ever were there. else if (torendero instanceof UIForm) { UIForm torender = (UIForm) torendero; if (attrcopy.get("method") == null) { // forms DEFAULT to be post attrcopy.put("method", "post"); } // form fixer guarantees that this URL is attribute free. attrcopy.put("action", torender.targetURL); XMLUtil.dumpAttributes(attrcopy, xmlw); pos.println(">"); for (int i = 0; i < torender.parameters.size(); ++i) { UIParameter param = torender.parameters.parameterAt(i); RenderUtil.dumpHiddenField(param.name, param.value, xmlw); } // override "nextpos" - form is expected to contain numerous nested // Components. // this is the only ANOMALY!! Forms together with payload cannot work. // the fact we are at the wrong recursion level will "come out in the // wash" // since we must return to the base recursion level before we exit this // domain. // Assuming there are no paths *IN* through forms that do not also lead // *OUT* there will be no problem. Check what this *MEANS* tomorrow. nextpos = endopen.lumpindex + 1; } else if (torendero instanceof UIVerbatim) { UIVerbatim torender = (UIVerbatim) torendero; String rendered = null; // inefficient implementation for now, upgrade when we write bulk POS // utils. if (torender.markup instanceof InputStream) { rendered = StreamCopyUtil .streamToString((InputStream) torender.markup); } else if (torender.markup instanceof Reader) { rendered = StreamCopyUtil.readerToString((Reader) torender.markup); } else if (torender.markup != null) { rendered = torender.markup.toString(); } if (rendered == null) { renderUnchanged(rendercontext); } else { XMLUtil.dumpAttributes(attrcopy, xmlw); pos.print(">"); pos.print(rendered); closeTag(pos, uselump); } } // if there is a payload, dump the postamble. if (payload != null) { RenderUtil.dumpTillLump(lumps, close.lumpindex + 1, outerclose.lumpindex + 1, pos); } } return nextpos; }
49142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49142/7f7d401df22843a02ed56370476568b0a0537f1c/BasicHTMLRenderSystem.java/clean/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1743, 1841, 12, 5370, 1841, 358, 5902, 83, 16, 4441, 1476, 16, 3167, 48, 2801, 328, 2801, 16, 4202, 3038, 4632, 949, 16, 514, 1599, 4525, 16, 3167, 48, 2801, 49, 863, 3274, 9765, 13, 288, 565, 3167, 2289, 2025, 91, 273, 394, 3167, 2289, 12, 917, 1769, 565, 509, 328, 2801, 1615, 273, 328, 2801, 18, 80, 2801, 1615, 31, 565, 3167, 48, 2801, 8526, 328, 23868, 273, 328, 2801, 18, 2938, 18, 80, 23868, 31, 565, 509, 1024, 917, 273, 300, 21, 31, 565, 3167, 48, 2801, 6390, 409, 3190, 273, 328, 2801, 18, 3190, 67, 409, 31, 565, 3167, 48, 2801, 6390, 4412, 273, 328, 2801, 18, 4412, 67, 2692, 31, 565, 1024, 917, 273, 6390, 4412, 18, 80, 2801, 1615, 397, 404, 31, 565, 3167, 48, 2801, 682, 2385, 1098, 273, 328, 2801, 18, 2378, 1458, 422, 446, 692, 446, 3639, 294, 328, 2801, 18, 2378, 1458, 18, 20263, 1290, 734, 12, 4201, 48, 2801, 18, 11389, 7783, 67, 22922, 1769, 565, 3167, 48, 2801, 2385, 273, 2385, 1098, 422, 446, 692, 446, 3639, 294, 2385, 1098, 18, 80, 2801, 861, 12, 20, 1769, 565, 368, 309, 1915, 353, 1158, 4261, 1794, 16, 518, 4825, 4859, 506, 279, 760, 1058, 10438, 565, 368, 716, 4260, 10414, 283, 14345, 18, 565, 368, 732, 6750, 1915, 353, 1158, 2385, 1794, 2674, 16, 3241, 1915, 353, 1158, 12608, 565, 368, 1599, 716, 4825, 314, 1643, 82, 4421, 18, 6155, 732, 999, 315, 14068, 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, 509, 1743, 1841, 12, 5370, 1841, 358, 5902, 83, 16, 4441, 1476, 16, 3167, 48, 2801, 328, 2801, 16, 4202, 3038, 4632, 949, 16, 514, 1599, 4525, 16, 3167, 48, 2801, 49, 863, 3274, 9765, 13, 288, 565, 3167, 2289, 2025, 91, 273, 394, 3167, 2289, 12, 917, 1769, 565, 509, 328, 2801, 1615, 273, 328, 2801, 18, 80, 2801, 1615, 31, 565, 3167, 48, 2801, 8526, 328, 23868, 273, 328, 2801, 18, 2938, 18, 80, 23868, 31, 565, 509, 1024, 917, 273, 300, 21, 31, 565, 3167, 48, 2801, 6390, 409, 3190, 273, 328, 2801, 18, 3190, 67, 409, 31, 565, 3167, 48, 2801, 6390, 4412, 273, 328, 2801, 18, 4412, 67, 2692, 31, 565, 1024, 2 ]
return value;
} value = buffer.toString(); } else { value = getEmptyCollection();
public String formatCollection(Iterator iter, MNamespace namespace) { String value = null; if (iter.hasNext()) { StringBuffer buffer = new StringBuffer(); String elementSep = getElementSeparator(); Object obj = null; for (int i = 0; iter.hasNext(); i++) { if (i > 0) { buffer.append(elementSep); } obj = iter.next(); if (obj instanceof MModelElement) { buffer.append( formatElement((MModelElement) obj, namespace)); } else { buffer.append(obj.toString()); } } value = buffer.toString(); } else { value = getEmptyCollection(); } return value; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ProfileJava.java/buggy/src_new/org/argouml/uml/ProfileJava.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 740, 2532, 12, 3198, 1400, 16, 490, 3402, 1981, 13, 288, 202, 202, 780, 460, 273, 446, 31, 202, 202, 430, 261, 2165, 18, 5332, 2134, 10756, 288, 1082, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 1082, 202, 780, 930, 5097, 273, 7426, 6581, 5621, 1082, 202, 921, 1081, 273, 446, 31, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 1400, 18, 5332, 2134, 5621, 277, 27245, 288, 9506, 202, 430, 261, 77, 405, 374, 13, 288, 6862, 202, 4106, 18, 6923, 12, 2956, 5097, 1769, 9506, 202, 97, 9506, 202, 2603, 273, 1400, 18, 4285, 5621, 9506, 202, 430, 261, 2603, 1276, 490, 1488, 1046, 13, 288, 6862, 202, 4106, 18, 6923, 12, 25083, 202, 2139, 1046, 12443, 49, 1488, 1046, 13, 1081, 16, 1981, 10019, 9506, 202, 97, 469, 288, 6862, 202, 4106, 18, 6923, 12, 2603, 18, 10492, 10663, 9506, 202, 97, 1082, 202, 97, 1082, 202, 1132, 273, 1613, 18, 10492, 5621, 202, 202, 97, 469, 288, 1082, 202, 1132, 273, 30824, 2532, 5621, 202, 202, 97, 202, 202, 2463, 460, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 740, 2532, 12, 3198, 1400, 16, 490, 3402, 1981, 13, 288, 202, 202, 780, 460, 273, 446, 31, 202, 202, 430, 261, 2165, 18, 5332, 2134, 10756, 288, 1082, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 1082, 202, 780, 930, 5097, 273, 7426, 6581, 5621, 1082, 202, 921, 1081, 273, 446, 31, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 1400, 18, 5332, 2134, 5621, 277, 27245, 288, 9506, 202, 430, 261, 77, 405, 374, 13, 288, 6862, 202, 4106, 18, 6923, 12, 2956, 5097, 1769, 9506, 202, 97, 9506, 202, 2603, 273, 1400, 18, 4285, 5621, 9506, 202, 430, 261, 2603, 1276, 490, 1488, 1046, 13, 288, 6862, 202, 4106, 18, 6923, 2 ]
logger.warning( "adaptorName = " + adaptorName );
public DatabaseDSViewAdaptor(DetailedDataSource ds, String user) throws ConfigurationException { if (ds == null || user == null) throw new ConfigurationException("DatabaseDSViewAdaptor Objects must be instantiated with a DataSource and User\n"); this.user = user; dataSource = ds; String host = ds.getHost(); String port = ds.getPort(); String databaseName = ds.getDatabaseName(); adaptorName = ds.getDisplayName(); logger.warning( "adaptorName = " + adaptorName ); try { //set up the preferences node with the datasource information as the root node xmlCache = BigPreferences.userNodeForPackage(DatabaseDSViewAdaptor.class).node( host + "/" + port + "/" + databaseName); } catch (IllegalArgumentException e) { throw new ConfigurationException( "Caught IllegalArgumentException during parse of Connection for Connection Parameters " + e.getMessage(), e); } int tmp = user.hashCode(); tmp = (31 * tmp) + host.hashCode(); tmp = (port != null) ? (31 * tmp) + port.hashCode() : tmp; tmp = (ds.getDatabaseType() != null) ? (31 * tmp) + ds.getDatabaseType().hashCode() : tmp; tmp = (databaseName != null) ? (31 * tmp) + databaseName.hashCode() : tmp; tmp = (31 * tmp) + ds.getJdbcDriverClassName().hashCode(); hashcode = tmp; update(); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/b8a77b484b5e34bb762769aa1524b4883631ced2/DatabaseDSViewAdaptor.java/buggy/src/java/org/ensembl/mart/lib/config/DatabaseDSViewAdaptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5130, 3948, 1767, 29888, 12, 40, 6372, 8597, 3780, 16, 514, 729, 13, 1216, 22196, 288, 565, 309, 261, 2377, 422, 446, 747, 729, 422, 446, 13, 1377, 604, 394, 22196, 2932, 4254, 3948, 1767, 29888, 8487, 1297, 506, 17651, 598, 279, 12806, 471, 2177, 64, 82, 8863, 565, 333, 18, 1355, 273, 729, 31, 565, 10233, 273, 3780, 31, 565, 514, 1479, 273, 3780, 18, 588, 2594, 5621, 565, 514, 1756, 273, 3780, 18, 588, 2617, 5621, 565, 514, 15165, 273, 3780, 18, 588, 4254, 461, 5621, 565, 9087, 461, 273, 3780, 18, 588, 20524, 5621, 1850, 775, 288, 1377, 368, 542, 731, 326, 12750, 756, 598, 326, 9181, 1779, 487, 326, 1365, 756, 1377, 2025, 1649, 273, 3639, 4454, 12377, 18, 1355, 907, 1290, 2261, 12, 4254, 3948, 1767, 29888, 18, 1106, 2934, 2159, 12, 1850, 1479, 397, 4016, 397, 1756, 397, 4016, 397, 15165, 1769, 565, 289, 1044, 261, 31237, 425, 13, 288, 1377, 604, 394, 22196, 12, 3639, 315, 24512, 2754, 4982, 1109, 434, 4050, 364, 4050, 7012, 315, 397, 425, 18, 24906, 9334, 3639, 425, 1769, 565, 289, 565, 509, 1853, 273, 729, 18, 2816, 1085, 5621, 565, 1853, 273, 261, 6938, 380, 1853, 13, 397, 1479, 18, 2816, 1085, 5621, 565, 1853, 273, 261, 655, 480, 446, 13, 692, 261, 6938, 380, 1853, 13, 397, 1756, 18, 2816, 1085, 1435, 294, 1853, 31, 565, 1853, 273, 261, 2377, 18, 588, 4254, 559, 1435, 480, 446, 13, 692, 261, 6938, 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, 5130, 3948, 1767, 29888, 12, 40, 6372, 8597, 3780, 16, 514, 729, 13, 1216, 22196, 288, 565, 309, 261, 2377, 422, 446, 747, 729, 422, 446, 13, 1377, 604, 394, 22196, 2932, 4254, 3948, 1767, 29888, 8487, 1297, 506, 17651, 598, 279, 12806, 471, 2177, 64, 82, 8863, 565, 333, 18, 1355, 273, 729, 31, 565, 10233, 273, 3780, 31, 565, 514, 1479, 273, 3780, 18, 588, 2594, 5621, 565, 514, 1756, 273, 3780, 18, 588, 2617, 5621, 565, 514, 15165, 273, 3780, 18, 588, 4254, 461, 5621, 565, 9087, 461, 273, 3780, 18, 588, 20524, 5621, 1850, 775, 288, 1377, 368, 542, 731, 326, 12750, 756, 598, 326, 9181, 1779, 487, 326, 1365, 756, 1377, 2025, 2 ]
String report_design=path+INPUT_FOLDER+System.getProperty("file.separator")+"report_document.rptdesign"; String report_document=path+OUTPUT_FOLDER+System.getProperty("file.separator")+"report_document";
String report_design = path + INPUT_FOLDER + System.getProperty( "file.separator" ) + "report_document.rptdesign"; String report_document = path + OUTPUT_FOLDER + System.getProperty( "file.separator" ) + "report_document";
public void testReportDocument(){ String report_design=path+INPUT_FOLDER+System.getProperty("file.separator")+"report_document.rptdesign"; String report_document=path+OUTPUT_FOLDER+System.getProperty("file.separator")+"report_document"; try{ createReportDocument_param(report_design,report_document); IDocArchiveReader archive=new FileArchiveReader(report_document); IReportDocument reportDoc=engine.openReportDocument(report_document); //checkTOC(done) TOCNode root,tableNode,headerNode,groupNode,detailNode,footerNode; root=reportDoc.findTOC("/"); assertNotNull("get root toc",root); assertNotNull("root contain no children toc",root.getChildren()); tableNode=(TOCNode)root.getChildren().get(0); assertNotNull("table toc doesn't exist.",tableNode); assertEquals("table toc expression isn't TableSection","TableSection",tableNode.getDisplayString() ); assertNotNull("table toc doesn't contain nodes",tableNode.getChildren()); assertEquals("table toc doesn't contain 6 nodes",6,tableNode.getChildren().size()); headerNode=(TOCNode)tableNode.getChildren().get(0); groupNode=(TOCNode)((TOCNode)tableNode.getChildren().get(1)).getChildren().get(0); footerNode=(TOCNode)tableNode.getChildren().get(5); assertNotNull("table header toc doesn't exist",headerNode); assertNotNull("table group toc doesn't exist",groupNode); assertNotNull("table footer toc doesn't exist",footerNode); assertEquals("header toc expression isn't HeaderSection","HeaderSection",headerNode.getDisplayString() ); assertEquals("group toc expression isn't GroupSection","GroupSection",groupNode.getDisplayString() ); assertEquals("footer toc expression isn't FooterSection","FooterSection",footerNode.getDisplayString() ); assertNotNull("table group toc doesn't contain nodes",groupNode.getChildren()); detailNode=(TOCNode)((TOCNode)tableNode.getChildren().get(1)).getChildren().get(1); assertEquals("detail toc expression isn't DetailSection","DetailSection",detailNode.getDisplayString() ); //check Archive(done) IDocArchiveReader arch=reportDoc.getArchive(); assertNotNull("get null document archive",arch); assertEquals("get incorrect document archive",archive.getName(),arch.getName()); //check bookmarks ArrayList bookmarks=(ArrayList)reportDoc.getBookmarks(); String hMark="TableHeaderMark",gMark="TableGroupMark",dMark="TableDetailMark"; String fMark="TableFooterMark",pMark="ParameterMark"; assertNotNull("get no bookmarks",bookmarks); //assertEquals("bookmarks doesn't contain 19 nodes",19,bookmarks.size()); assertTrue("bookmarks doesn't contain "+hMark,bookmarks.contains(hMark)); assertTrue("bookmarks doesn't contain "+gMark,bookmarks.contains(gMark)); assertTrue("bookmarks doesn't contain "+dMark,bookmarks.contains(dMark)); assertTrue("bookmarks doesn't contain "+fMark,bookmarks.contains(fMark)); assertTrue("bookmarks doesn't contain "+pMark,bookmarks.contains(pMark)); //check children(done) List root_children=reportDoc.getChildren("/"); assertNotNull("cannot get root toc's children",root_children); assertNotNull("cannot get table toc",root_children.get(0)); TOCNode table_toc=(TOCNode)root_children.get(0); List table_children=reportDoc.getChildren(table_toc.getNodeID() ); assertNotNull("table toc's children is null",table_children); assertEquals("table toc contains 6 children",6,table_children.size()); //check designStream InputStream designStream=reportDoc.getDesignStream(); FileInputStream designFile=new FileInputStream(report_design); assertNotNull("return null design stream",designStream); //generate design file through designStream. int length=designStream.available(); byte[] fBytes=new byte[length]; designStream.read(fBytes,0,length); //String tempFile="D:/TEMP/workspace3.1/org.eclipse.birt.report.tests.engine/output/report_document_tmp.rptdesign"; String tempFile=path+OUTPUT_FOLDER+"report_document_tmp.rptdesign"; File tmp=new File(tempFile); FileOutputStream fos=new FileOutputStream(tmp); fos.write(fBytes); fos.close(); designStream.close(); designFile.close(); assertEquals("return wrong design stream",-6,new File(report_design).compareTo(tmp)); //remove tmp file. removeFile(tempFile); //check page count(done) assertEquals("return wrong page count",2,reportDoc.getPageCount()); //check getPageNumber(InstanceID) //TODO: //check getPageNumber(bookmark) assertEquals("return wrong page number which contains bookmark",2,reportDoc.getPageNumber(pMark)); //check parameters(done) HashMap params=(HashMap)reportDoc.getParameterValues(); assertNotNull("return no parameters",params); assertEquals("parameter amount isn't 2",2,params.size() ); assertNotNull("p1 parameter returned null",params.get(new String("p1"))); assertNotNull("p2 parameter returned null",params.get(new String("p2"))); assertEquals("p1 parameter returned wrong value","p1string",params.get(new String("p1"))); assertEquals("p1 parameter returned wrong value",new Integer(2),params.get(new String("p2"))); //check report document name String name=report_document; name=name.replace('/','\\'); assertEquals("return wrong report document name",name,reportDoc.getName()); //check reportrunnable IReportRunnable report=reportDoc.getReportRunnable(); assertNotNull("return null reportRunnable",report); assertEquals("return wrong reportRunnable",reportRunnable.getReportEngine(), report.getReportEngine()); }catch(Exception e){ e.printStackTrace(); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/3d7502d5c8108135c6c10a5dd6deaab12120cb14/ReportDocumentTest.java/clean/testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/ReportDocumentTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 4820, 2519, 1435, 95, 202, 202, 780, 2605, 67, 16934, 33, 803, 15, 15934, 67, 17357, 15, 3163, 18, 588, 1396, 2932, 768, 18, 11287, 7923, 9078, 6006, 67, 5457, 18, 86, 337, 16934, 14432, 202, 202, 780, 2605, 67, 5457, 33, 803, 15, 15527, 67, 17357, 15, 3163, 18, 588, 1396, 2932, 768, 18, 11287, 7923, 9078, 6006, 67, 5457, 14432, 202, 202, 698, 95, 1082, 202, 2640, 4820, 2519, 67, 891, 12, 6006, 67, 16934, 16, 6006, 67, 5457, 1769, 1082, 202, 734, 504, 7465, 2514, 5052, 33, 2704, 1387, 7465, 2514, 12, 6006, 67, 5457, 1769, 1082, 202, 45, 4820, 2519, 2605, 1759, 33, 8944, 18, 3190, 4820, 2519, 12, 6006, 67, 5457, 1769, 25083, 202, 759, 1893, 4296, 39, 12, 8734, 13, 1082, 202, 4296, 39, 907, 1365, 16, 2121, 907, 16, 3374, 907, 16, 1655, 907, 16, 8992, 907, 16, 14723, 907, 31, 1082, 202, 3085, 33, 6006, 1759, 18, 4720, 4296, 39, 2932, 4898, 1769, 1082, 202, 11231, 5962, 2932, 588, 1365, 17919, 3113, 3085, 1769, 1082, 202, 11231, 5962, 2932, 3085, 912, 1158, 2325, 17919, 3113, 3085, 18, 588, 4212, 10663, 1082, 202, 2121, 907, 28657, 4296, 39, 907, 13, 3085, 18, 588, 4212, 7675, 588, 12, 20, 1769, 1082, 202, 11231, 5962, 2932, 2121, 17919, 3302, 1404, 1005, 1199, 16, 2121, 907, 1769, 1082, 202, 11231, 8867, 2932, 2121, 17919, 2652, 5177, 1404, 3555, 5285, 15937, 1388, 5285, 3113, 2121, 907, 18, 588, 4236, 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, 1842, 4820, 2519, 1435, 95, 202, 202, 780, 2605, 67, 16934, 33, 803, 15, 15934, 67, 17357, 15, 3163, 18, 588, 1396, 2932, 768, 18, 11287, 7923, 9078, 6006, 67, 5457, 18, 86, 337, 16934, 14432, 202, 202, 780, 2605, 67, 5457, 33, 803, 15, 15527, 67, 17357, 15, 3163, 18, 588, 1396, 2932, 768, 18, 11287, 7923, 9078, 6006, 67, 5457, 14432, 202, 202, 698, 95, 1082, 202, 2640, 4820, 2519, 67, 891, 12, 6006, 67, 16934, 16, 6006, 67, 5457, 1769, 1082, 202, 734, 504, 7465, 2514, 5052, 33, 2704, 1387, 7465, 2514, 12, 6006, 67, 5457, 1769, 1082, 202, 45, 4820, 2519, 2605, 1759, 33, 8944, 18, 3190, 4820, 2519, 12, 6006, 2 ]
return noex; }
return noex; }
public int getNoex() { return noex; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 336, 2279, 338, 1435, 288, 1082, 202, 2463, 1158, 338, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 509, 336, 2279, 338, 1435, 288, 1082, 202, 2463, 1158, 338, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
setter.setProperty("OnMatch", "raven"); assertEquals("raven", house.getOnMatch());
public void testSetCamelProperty() { House house = new House(); PropertySetter setter = new PropertySetter(house); setter.setProperty("camelCase", "trot"); assertEquals("trot", house.getCamelCase()); setter.setProperty("camelCase", "gh"); assertEquals("gh", house.getCamelCase()); setter.setProperty("OnMatch", "raven"); assertEquals("raven", house.getOnMatch()); }
48264 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48264/445c93509c33d1cf431a1f997c92db98d3b8fd69/PropertySetterTest.java/clean/logback-core/src/test/java/ch/qos/logback/core/util/PropertySetterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 694, 16373, 1396, 1435, 288, 565, 670, 3793, 23867, 273, 394, 670, 3793, 5621, 565, 4276, 8465, 7794, 273, 394, 4276, 8465, 12, 13028, 1769, 3639, 7794, 18, 542, 1396, 2932, 29021, 2449, 3113, 315, 88, 8342, 8863, 565, 1815, 8867, 2932, 88, 8342, 3113, 23867, 18, 588, 21235, 10663, 3639, 7794, 18, 542, 1396, 2932, 29021, 2449, 3113, 315, 17680, 8863, 565, 1815, 8867, 2932, 17680, 3113, 23867, 18, 588, 21235, 10663, 3639, 7794, 18, 542, 1396, 2932, 1398, 2060, 3113, 315, 354, 3995, 8863, 565, 1815, 8867, 2932, 354, 3995, 3113, 23867, 18, 588, 1398, 2060, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1842, 694, 16373, 1396, 1435, 288, 565, 670, 3793, 23867, 273, 394, 670, 3793, 5621, 565, 4276, 8465, 7794, 273, 394, 4276, 8465, 12, 13028, 1769, 3639, 7794, 18, 542, 1396, 2932, 29021, 2449, 3113, 315, 88, 8342, 8863, 565, 1815, 8867, 2932, 88, 8342, 3113, 23867, 18, 588, 21235, 10663, 3639, 7794, 18, 542, 1396, 2932, 29021, 2449, 3113, 315, 17680, 8863, 565, 1815, 8867, 2932, 17680, 3113, 23867, 18, 588, 21235, 10663, 3639, 7794, 18, 542, 1396, 2932, 1398, 2060, 3113, 315, 354, 3995, 8863, 565, 1815, 8867, 2932, 354, 3995, 3113, 23867, 18, 588, 1398, 2060, 10663, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public List getPreferenceContributions(IPluginRegistry registry) { loadNodesFromRegistry(registry); //all nodes keyed on category List contributions = new ArrayList(); //root nodes (which contain subnodes) //Add root nodes to the contributions vector StringTokenizer tokenizer; String currentToken; // Make the adviser's favorite the first category IPreferenceNode favorite = null; String favoriteId = ((Workbench) workbench).getMainPreferencePageId(); if (favoriteId != null) { favorite = findNode(favoriteId); } if (favorite != null) { contributions.add(favorite); } // Sort nodes based on flattened display path composed of // actual labels of nodes referenced in category attribute. Object[] sortedNodes = sortByCategories(nodes); for (int i = 0; i < sortedNodes.length; i++) { //Iterate through all the nodes CategoryNode categoryNode = (CategoryNode) sortedNodes[i]; WorkbenchPreferenceNode node = categoryNode.getNode(); String category = node.getCategory(); if (category == null) { contributions.add(node); continue; } // has category tokenizer = new StringTokenizer(category, PREFERENCE_SEPARATOR); WorkbenchPreferenceNode parent = null; while (tokenizer.hasMoreElements()) { currentToken = tokenizer.nextToken(); WorkbenchPreferenceNode child = null; if (parent == null) child = findNode(currentToken); else child = findNode(parent, currentToken); if (child == null) { parent = null; break; } else { parent = child; } } if (parent != null) { parent.add(node); } else { //Could not find the parent - log WorkbenchPlugin.log("Invalid preference page path: " + categoryNode.getFlatCategory()); //$NON-NLS-1$ contributions.add(node); } } return contributions; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/2a9e285012b5b01ed76dddb9f4293cffdad5d56c/PreferencePageRegistryReader.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PreferencePageRegistryReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 336, 9624, 442, 15326, 12, 45, 3773, 4243, 4023, 13, 288, 202, 202, 945, 3205, 1265, 4243, 12, 9893, 1769, 368, 454, 2199, 17408, 603, 3150, 202, 202, 682, 13608, 6170, 273, 394, 2407, 5621, 202, 202, 759, 3085, 2199, 261, 12784, 912, 720, 4690, 13, 202, 202, 759, 986, 1365, 2199, 358, 326, 13608, 6170, 3806, 1082, 202, 780, 10524, 10123, 31, 202, 202, 780, 23719, 31, 202, 202, 759, 4344, 326, 1261, 3516, 264, 1807, 30705, 326, 1122, 3150, 202, 202, 45, 9624, 907, 30705, 273, 446, 31, 202, 202, 780, 30705, 548, 273, 14015, 2421, 22144, 13, 1440, 22144, 2934, 588, 6376, 9624, 23053, 5621, 202, 202, 430, 261, 19731, 280, 1137, 548, 480, 446, 13, 288, 1082, 202, 19731, 280, 1137, 273, 1104, 907, 12, 19731, 280, 1137, 548, 1769, 202, 202, 97, 202, 202, 430, 261, 19731, 280, 1137, 480, 446, 13, 288, 1082, 202, 591, 15326, 18, 1289, 12, 19731, 280, 1137, 1769, 202, 202, 97, 202, 202, 759, 5928, 2199, 2511, 603, 14171, 2562, 589, 18673, 434, 202, 202, 759, 3214, 3249, 434, 2199, 8042, 316, 3150, 1566, 18, 202, 202, 921, 8526, 3115, 3205, 273, 14021, 10487, 12, 4690, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3115, 3205, 18, 2469, 31, 277, 27245, 288, 1082, 202, 759, 14916, 3059, 777, 326, 2199, 1082, 202, 4457, 907, 3150, 907, 273, 261, 4457, 907, 13, 3115, 3205, 63, 77, 15533, 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, 482, 987, 336, 9624, 442, 15326, 12, 45, 3773, 4243, 4023, 13, 288, 202, 202, 945, 3205, 1265, 4243, 12, 9893, 1769, 368, 454, 2199, 17408, 603, 3150, 202, 202, 682, 13608, 6170, 273, 394, 2407, 5621, 202, 202, 759, 3085, 2199, 261, 12784, 912, 720, 4690, 13, 202, 202, 759, 986, 1365, 2199, 358, 326, 13608, 6170, 3806, 1082, 202, 780, 10524, 10123, 31, 202, 202, 780, 23719, 31, 202, 202, 759, 4344, 326, 1261, 3516, 264, 1807, 30705, 326, 1122, 3150, 202, 202, 45, 9624, 907, 30705, 273, 446, 31, 202, 202, 780, 30705, 548, 273, 14015, 2421, 22144, 13, 1440, 22144, 2934, 588, 6376, 9624, 23053, 5621, 202, 202, 430, 261, 19731, 280, 1137, 2 ]
loa[2].set( zeroLocation, y1 + kError - dTapeWidth );
loa[2].set( zeroLocation + dTapeWidth, y1 + kError - dTapeWidth );
private final void plotPlane( IPrimitiveRenderer ipr, double x1, double y1, double x2, double y2, double z1, double z2, boolean drawSide, boolean leftSide ) throws ChartException { if ( bRendering3D ) { final Polygon3DRenderEvent pre = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( oSource, Polygon3DRenderEvent.class ); pre.setOutline( null ); pre.setDoubleSided( true ); pre.setBackground( tapeColor ); if ( !leftSide ) { loa3d[0].set( x1 + kError, y1 + kError, z1 ); loa3d[1].set( x2 + kError, y2 + kError, z2 ); loa3d[2].set( x2 + kError, y2 + kError, z2 - dTapeWidth ); loa3d[3].set( x1 + kError, y1 + kError, z1 - dTapeWidth ); pre.setPoints3D( loa3d ); dc.addPlane( pre, PrimitiveRenderEvent.FILL ); } if ( drawSide ) { pre.setBackground( sideColor ); if ( leftSide ) { if ( y1 + kError > zeroLocation ) { loa3d[0].set( x1 + kError, y1 + kError, z1 ); loa3d[1].set( x1 + kError, y1 + kError, z1 - dTapeWidth ); loa3d[2].set( x1 + kError, zeroLocation, z1 - dTapeWidth ); loa3d[3].set( x1 + kError, zeroLocation, z1 ); } else { loa3d[0].set( x1 + kError, y1 + kError, z1 ); loa3d[1].set( x1 + kError, zeroLocation, z1 ); loa3d[2].set( x1 + kError, zeroLocation, z1 - dTapeWidth ); loa3d[3].set( x1 + kError, y1 + kError, z1 - dTapeWidth ); } } else { if ( y2 + kError > zeroLocation ) { loa3d[0].set( x2 + kError, y2 + kError, z2 ); loa3d[1].set( x2 + kError, zeroLocation, z2 ); loa3d[2].set( x2 + kError, zeroLocation, z2 - dTapeWidth ); loa3d[3].set( x2 + kError, y2 + kError, z2 - dTapeWidth ); } else { loa3d[0].set( x2 + kError, y2 + kError, z2 ); loa3d[1].set( x2 + kError, y2 + kError, z2 - dTapeWidth ); loa3d[2].set( x2 + kError, zeroLocation, z2 - dTapeWidth ); loa3d[3].set( x2 + kError, zeroLocation, z2 ); } } pre.setPoints3D( loa3d ); dc.addPlane( pre, PrimitiveRenderEvent.FILL ); } } else { final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( oSource, PolygonRenderEvent.class ); pre.setOutline( null ); pre.setBackground( tapeColor ); loa[0].set( x1 + kError, y1 + kError ); loa[1].set( x2 + kError, y2 + kError ); loa[2].set( x2 + kError + dTapeWidth, y2 + kError - dTapeWidth ); loa[3].set( x1 + kError + dTapeWidth, y1 + kError - dTapeWidth ); pre.setPoints( loa ); if ( bDeferred ) { dc.addPlane( pre, PrimitiveRenderEvent.FILL ); } else { ipr.fillPolygon( pre ); } if ( drawSide ) { pre.setBackground( sideColor ); if ( leftSide ) { loa[0].set( x1 + kError, y1 + kError ); loa[1].set( x1 + kError + dTapeWidth, y1 + kError - dTapeWidth ); if ( cwa.isTransposed( ) ) { loa[2].set( zeroLocation, y1 + kError - dTapeWidth ); loa[3].set( zeroLocation, y1 + kError ); } else { loa[2].set( x1 + kError + dTapeWidth, zeroLocation ); loa[3].set( x1 + kError, zeroLocation ); } } else { loa[0].set( x2 + kError, y2 + kError ); loa[1].set( x2 + kError + dTapeWidth, y2 + kError - dTapeWidth ); if ( cwa.isTransposed( ) ) { loa[2].set( zeroLocation, y2 + kError - dTapeWidth ); loa[3].set( zeroLocation, y2 + kError ); } else { loa[2].set( x2 + kError + dTapeWidth, zeroLocation ); loa[3].set( x2 + kError, zeroLocation ); } } pre.setPoints( loa ); if ( bDeferred ) { dc.addPlane( pre, PrimitiveRenderEvent.FILL ); } else { ipr.fillPolygon( pre ); } } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/855985a2779527c3517f5dc48c3079e69bb4c3a2/CurveRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/CurveRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 3207, 19505, 12, 467, 9840, 6747, 277, 683, 16, 1645, 619, 21, 16, 1645, 677, 21, 16, 1082, 202, 9056, 619, 22, 16, 1645, 677, 22, 16, 1645, 998, 21, 16, 1645, 998, 22, 16, 1250, 3724, 8895, 16, 1082, 202, 6494, 2002, 8895, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 324, 14261, 23, 40, 262, 202, 202, 95, 1082, 202, 6385, 12681, 23, 40, 3420, 1133, 675, 273, 261, 11787, 23, 40, 3420, 1133, 13, 261, 261, 1133, 921, 1649, 13, 277, 683, 262, 18, 588, 1133, 921, 12, 320, 1830, 16, 6862, 202, 11787, 23, 40, 3420, 1133, 18, 1106, 11272, 1082, 202, 1484, 18, 542, 21805, 12, 446, 11272, 1082, 202, 1484, 18, 542, 5265, 55, 13898, 12, 638, 11272, 1082, 202, 1484, 18, 542, 8199, 12, 268, 1273, 2957, 11272, 1082, 202, 430, 261, 401, 4482, 8895, 262, 1082, 202, 95, 9506, 202, 383, 69, 23, 72, 63, 20, 8009, 542, 12, 619, 21, 397, 417, 668, 16, 677, 21, 397, 417, 668, 16, 998, 21, 11272, 9506, 202, 383, 69, 23, 72, 63, 21, 8009, 542, 12, 619, 22, 397, 417, 668, 16, 677, 22, 397, 417, 668, 16, 998, 22, 11272, 9506, 202, 383, 69, 23, 72, 63, 22, 8009, 542, 12, 619, 22, 397, 417, 668, 16, 677, 22, 397, 417, 668, 16, 998, 22, 300, 302, 30421, 2384, 11272, 9506, 202, 383, 69, 23, 72, 63, 23, 8009, 542, 12, 619, 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, 3207, 19505, 12, 467, 9840, 6747, 277, 683, 16, 1645, 619, 21, 16, 1645, 677, 21, 16, 1082, 202, 9056, 619, 22, 16, 1645, 677, 22, 16, 1645, 998, 21, 16, 1645, 998, 22, 16, 1250, 3724, 8895, 16, 1082, 202, 6494, 2002, 8895, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 324, 14261, 23, 40, 262, 202, 202, 95, 1082, 202, 6385, 12681, 23, 40, 3420, 1133, 675, 273, 261, 11787, 23, 40, 3420, 1133, 13, 261, 261, 1133, 921, 1649, 13, 277, 683, 262, 18, 588, 1133, 921, 12, 320, 1830, 16, 6862, 202, 11787, 23, 40, 3420, 1133, 18, 1106, 11272, 1082, 202, 1484, 18, 542, 21805, 12, 446, 2 ]
public Analyser(Configurator inspecter,
public Analyser(Configurator configurator,
public Analyser(Configurator inspecter, net.java.dev.jminimizer.util.Repository repository) throws ClassNotFoundException { super(); this.inspecter = inspecter; this.repository = repository; this.notProcessedMethods = new HashSet(); this.classes = new TreeSet(Collections.reverseOrder()); this.methodsThatUseClassForName = new HashSet(); Repository.setRepository(this.repository); }
10293 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10293/7df17bf57642b25e7799045e46c8ffa4d099dae4/Analyser.java/buggy/src/java/net/java/dev/jminimizer/Analyser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1922, 3450, 550, 12, 17182, 18700, 16, 5411, 2901, 18, 6290, 18, 5206, 18, 78, 1154, 381, 1824, 18, 1367, 18, 3305, 3352, 13, 5411, 1216, 10403, 288, 3639, 2240, 5621, 3639, 333, 18, 12009, 264, 273, 5334, 264, 31, 3639, 333, 18, 9071, 273, 3352, 31, 3639, 333, 18, 902, 13533, 4712, 273, 394, 6847, 5621, 3639, 333, 18, 4701, 273, 394, 19461, 12, 15150, 18, 9845, 2448, 10663, 3639, 333, 18, 5163, 18163, 3727, 797, 1290, 461, 273, 394, 6847, 5621, 3639, 6281, 18, 542, 3305, 12, 2211, 18, 9071, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1922, 3450, 550, 12, 17182, 18700, 16, 5411, 2901, 18, 6290, 18, 5206, 18, 78, 1154, 381, 1824, 18, 1367, 18, 3305, 3352, 13, 5411, 1216, 10403, 288, 3639, 2240, 5621, 3639, 333, 18, 12009, 264, 273, 5334, 264, 31, 3639, 333, 18, 9071, 273, 3352, 31, 3639, 333, 18, 902, 13533, 4712, 273, 394, 6847, 5621, 3639, 333, 18, 4701, 273, 394, 19461, 12, 15150, 18, 9845, 2448, 10663, 3639, 333, 18, 5163, 18163, 3727, 797, 1290, 461, 273, 394, 6847, 5621, 3639, 6281, 18, 542, 3305, 12, 2211, 18, 9071, 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 ]
if(mimeBoundary != null) {
if(mimeBoundary == null) {
public String getMimeBoundary() { if(mimeBoundary != null) { mimeBoundary = "--MIMEBoundary" + MIMEOutputUtils.getRandomStringOf18Characters(); } return mimeBoundary; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6b837761245e5808604e038ea8d68a60c077cc4b/OMOutputImpl.java/clean/modules/xml/src/org/apache/axis2/om/impl/OMOutputImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2108, 494, 11941, 1435, 288, 3639, 309, 12, 11757, 11941, 422, 446, 13, 288, 5411, 4892, 11941, 273, 5238, 18178, 11941, 6, 397, 13195, 1447, 1989, 18, 588, 8529, 780, 951, 2643, 11600, 5621, 3639, 289, 3639, 327, 4892, 11941, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2108, 494, 11941, 1435, 288, 3639, 309, 12, 11757, 11941, 422, 446, 13, 288, 5411, 4892, 11941, 273, 5238, 18178, 11941, 6, 397, 13195, 1447, 1989, 18, 588, 8529, 780, 951, 2643, 11600, 5621, 3639, 289, 3639, 327, 4892, 11941, 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 ]
for (int i=0; i < args.length; i++) { String arg = args[i];
for (int i=0; i < origArgs.length; i++) { String arg = origArgs[i];
public static int exec(String args[]) { for (int i=0; i < args.length; i++) { String arg = args[i]; if (arg.equals("-sealedlib")) { sealedStdLib = true; break; } } Context cx = enterContext(); // Create the top-level scope object. global = getGlobal(); errorReporter = new ToolErrorReporter(false, global.getErr()); cx.setErrorReporter(errorReporter); args = processOptions(cx, args); if (processStdin) fileList.addElement(null); // define "arguments" array in the top-level object: // need to allocate new array since newArray requires instances // of exactly Object[], not ObjectSubclass[] Object[] array = new Object[args.length]; System.arraycopy(args, 0, array, 0, args.length); Scriptable argsObj = cx.newArray(global, array); global.defineProperty("arguments", argsObj, ScriptableObject.DONTENUM); for (int i=0; i < fileList.size(); i++) { processSource(cx, (String) fileList.elementAt(i)); } cx.exit(); return exitCode; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/a58e08501caae13f01f703a28dc826fc6d644fde/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 1196, 12, 780, 833, 63, 5717, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 514, 1501, 273, 833, 63, 77, 15533, 5411, 309, 261, 3175, 18, 14963, 2932, 17, 307, 18931, 2941, 6, 3719, 288, 7734, 695, 18931, 10436, 5664, 273, 638, 31, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 1772, 9494, 273, 6103, 1042, 5621, 3639, 368, 1788, 326, 1760, 17, 2815, 2146, 733, 18, 3639, 2552, 273, 20591, 5621, 3639, 555, 13289, 273, 394, 13288, 668, 13289, 12, 5743, 16, 2552, 18, 588, 2524, 10663, 3639, 9494, 18, 542, 668, 13289, 12, 1636, 13289, 1769, 3639, 833, 273, 1207, 1320, 12, 71, 92, 16, 833, 1769, 3639, 309, 261, 2567, 10436, 267, 13, 5411, 18645, 18, 1289, 1046, 12, 2011, 1769, 3639, 368, 4426, 315, 7099, 6, 526, 316, 326, 1760, 17, 2815, 733, 30, 3639, 368, 1608, 358, 10101, 394, 526, 3241, 11653, 4991, 3884, 3639, 368, 434, 8950, 1033, 63, 6487, 486, 1033, 1676, 1106, 8526, 3639, 1033, 8526, 526, 273, 394, 1033, 63, 1968, 18, 2469, 15533, 3639, 2332, 18, 1126, 3530, 12, 1968, 16, 374, 16, 526, 16, 374, 16, 833, 18, 2469, 1769, 3639, 22780, 833, 2675, 273, 9494, 18, 2704, 1076, 12, 6347, 16, 526, 1769, 3639, 2552, 18, 11255, 1396, 2932, 7099, 3113, 833, 2675, 16, 17311, 22780, 921, 18, 40, 10079, 16509, 1769, 3639, 364, 261, 474, 277, 33, 20, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 1196, 12, 780, 833, 63, 5717, 288, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 514, 1501, 273, 833, 63, 77, 15533, 5411, 309, 261, 3175, 18, 14963, 2932, 17, 307, 18931, 2941, 6, 3719, 288, 7734, 695, 18931, 10436, 5664, 273, 638, 31, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 1772, 9494, 273, 6103, 1042, 5621, 3639, 368, 1788, 326, 1760, 17, 2815, 2146, 733, 18, 3639, 2552, 273, 20591, 5621, 3639, 555, 13289, 273, 394, 13288, 668, 13289, 12, 5743, 16, 2552, 18, 588, 2524, 10663, 3639, 9494, 18, 542, 668, 13289, 12, 1636, 13289, 1769, 3639, 833, 273, 1207, 1320, 12, 2 ]
setOrientation((Orientation)newValue);
setOrientation((Orientation) newValue);
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case LayoutPackage.LEGEND__CHILDREN: getChildren().clear(); getChildren().addAll((Collection)newValue); return; case LayoutPackage.LEGEND__BOUNDS: setBounds((Bounds)newValue); return; case LayoutPackage.LEGEND__ANCHOR: setAnchor((Anchor)newValue); return; case LayoutPackage.LEGEND__STRETCH: setStretch((Stretch)newValue); return; case LayoutPackage.LEGEND__INSETS: setInsets((Insets)newValue); return; case LayoutPackage.LEGEND__ROW: setRow(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__COLUMN: setColumn(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__ROWSPAN: setRowspan(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__COLUMNSPAN: setColumnspan(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__MIN_SIZE: setMinSize((Size)newValue); return; case LayoutPackage.LEGEND__OUTLINE: setOutline((LineAttributes)newValue); return; case LayoutPackage.LEGEND__BACKGROUND: setBackground((Fill)newValue); return; case LayoutPackage.LEGEND__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case LayoutPackage.LEGEND__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case LayoutPackage.LEGEND__HORIZONTAL_SPACING: setHorizontalSpacing(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__VERTICAL_SPACING: setVerticalSpacing(((Integer)newValue).intValue()); return; case LayoutPackage.LEGEND__CLIENT_AREA: setClientArea((ClientArea)newValue); return; case LayoutPackage.LEGEND__TEXT: setText((Text)newValue); return; case LayoutPackage.LEGEND__ORIENTATION: setOrientation((Orientation)newValue); return; case LayoutPackage.LEGEND__DIRECTION: setDirection((Direction)newValue); return; case LayoutPackage.LEGEND__SEPARATOR: setSeparator((LineAttributes)newValue); return; case LayoutPackage.LEGEND__POSITION: setPosition((Position)newValue); return; case LayoutPackage.LEGEND__ITEM_TYPE: setItemType((LegendItemType)newValue); return; } eDynamicSet(eFeature, newValue); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LegendImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LegendImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 27043, 24296, 30, 7734, 10268, 7675, 8507, 5621, 7734, 10268, 7675, 1289, 1595, 12443, 2532, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 5315, 2124, 3948, 30, 7734, 444, 5694, 12443, 5694, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 20360, 916, 30, 7734, 444, 11605, 12443, 11605, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 882, 10238, 1792, 30, 7734, 444, 510, 20783, 12443, 510, 20783, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 706, 28092, 30, 7734, 444, 382, 4424, 12443, 382, 4424, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 11226, 30, 7734, 444, 1999, 12443, 12, 4522, 13, 2704, 620, 2934, 474, 620, 10663, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 11009, 30, 7734, 25918, 12443, 12, 4522, 13, 2704, 620, 2934, 474, 620, 10663, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 28402, 30819, 30, 7734, 444, 1999, 3969, 12443, 12, 4522, 13, 2704, 620, 2934, 474, 620, 10663, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 11009, 3118, 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, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 27043, 24296, 30, 7734, 10268, 7675, 8507, 5621, 7734, 10268, 7675, 1289, 1595, 12443, 2532, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 5315, 2124, 3948, 30, 7734, 444, 5694, 12443, 5694, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 20360, 916, 30, 7734, 444, 11605, 12443, 11605, 13, 2704, 620, 1769, 7734, 327, 31, 5411, 648, 9995, 2261, 18, 19384, 4415, 972, 882, 10238, 1792, 30, 2 ]
spoon.copySelected(spoon.getTransMeta().getSelectedSteps(), spoon.getTransMeta().getSelectedNotes());
try { if (spoon.getTransMeta().nrSelectedSteps() <= 1) { spoon.dupeStep(stepMeta.getName()); } else { for (int i = 0; i < spoon.getTransMeta().nrSteps(); i++) { StepMeta stepMeta = spoon.getTransMeta().getStep(i); if (stepMeta.isSelected()) { spoon.dupeStep(stepMeta.getName()); } } } } catch(Exception ex) { new ErrorDialog(shell, Messages.getString("SpoonGraph.Dialog.ErrorDuplicatingStep.Title"), Messages.getString("SpoonGraph.Dialog.ErrorDuplicatingStep.Message"), ex); }
public void widgetSelected(SelectionEvent e) { spoon.copySelected(spoon.getTransMeta().getSelectedSteps(), spoon.getTransMeta().getSelectedNotes()); }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/f80c12f2b1ca0a23ae9f9a81960309aad6e684d8/SpoonGraph.java/clean/kettle/src/be/ibridge/kettle/spoon/SpoonGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 7734, 288, 10792, 775, 288, 309, 261, 87, 1631, 265, 18, 588, 1429, 2781, 7675, 11611, 7416, 11811, 1435, 1648, 404, 13, 288, 25204, 265, 18, 2544, 347, 4160, 12, 4119, 2781, 18, 17994, 10663, 289, 469, 288, 364, 261, 474, 277, 273, 374, 31, 277, 411, 25204, 265, 18, 588, 1429, 2781, 7675, 11611, 11811, 5621, 277, 27245, 288, 8693, 2781, 2235, 2781, 273, 25204, 265, 18, 588, 1429, 2781, 7675, 588, 4160, 12, 77, 1769, 309, 261, 4119, 2781, 18, 291, 7416, 10756, 288, 25204, 265, 18, 2544, 347, 4160, 12, 4119, 2781, 18, 17994, 10663, 289, 289, 289, 289, 1044, 12, 503, 431, 13, 288, 394, 1068, 6353, 12, 10304, 16, 4838, 18, 588, 780, 2932, 55, 1631, 265, 4137, 18, 6353, 18, 668, 19682, 1776, 4160, 18, 4247, 6, 3631, 4838, 18, 588, 780, 2932, 55, 1631, 265, 4137, 18, 6353, 18, 668, 19682, 1776, 4160, 18, 1079, 6, 3631, 431, 1769, 289, 7734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 7734, 288, 10792, 775, 288, 309, 261, 87, 1631, 265, 18, 588, 1429, 2781, 7675, 11611, 7416, 11811, 1435, 1648, 404, 13, 288, 25204, 265, 18, 2544, 347, 4160, 12, 4119, 2781, 18, 17994, 10663, 289, 469, 288, 364, 261, 474, 277, 273, 374, 31, 277, 411, 25204, 265, 18, 588, 1429, 2781, 7675, 11611, 11811, 5621, 277, 27245, 288, 8693, 2781, 2235, 2781, 273, 25204, 265, 18, 588, 1429, 2781, 7675, 588, 4160, 12, 77, 1769, 309, 261, 4119, 2781, 18, 291, 7416, 10756, 288, 25204, 265, 18, 2544, 347, 4160, 12, 4119, 2781, 18, 17994, 10663, 289, 289, 289, 289, 1044, 12, 503, 431, 13, 288, 394, 2 ]
if (root.hasNode(TEST_ROOT)) { root.remove(TEST_ROOT);
if (root.hasNode(TEST_PATH)) { root.remove(TEST_PATH);
protected void tearDown() throws Exception { if (superuser != null) { // do a 'rollback' superuser.refresh(false); Node root = superuser.getRootNode(); if (root.hasNode(TEST_ROOT)) { root.remove(TEST_ROOT); root.save(); } superuser.logout(); } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/a8e9611452abb1c8c64e644f003af347954188d9/AbstractTest.java/buggy/src/test/org/apache/jackrabbit/test/AbstractTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 3639, 309, 261, 9565, 1355, 480, 446, 13, 288, 5411, 368, 741, 279, 296, 20050, 11, 5411, 2240, 1355, 18, 9144, 12, 5743, 1769, 5411, 2029, 1365, 273, 2240, 1355, 18, 588, 29658, 5621, 5411, 309, 261, 3085, 18, 5332, 907, 12, 16961, 67, 9185, 3719, 288, 7734, 1365, 18, 4479, 12, 16961, 67, 9185, 1769, 7734, 1365, 18, 5688, 5621, 5411, 289, 5411, 2240, 1355, 18, 21229, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 3639, 309, 261, 9565, 1355, 480, 446, 13, 288, 5411, 368, 741, 279, 296, 20050, 11, 5411, 2240, 1355, 18, 9144, 12, 5743, 1769, 5411, 2029, 1365, 273, 2240, 1355, 18, 588, 29658, 5621, 5411, 309, 261, 3085, 18, 5332, 907, 12, 16961, 67, 9185, 3719, 288, 7734, 1365, 18, 4479, 12, 16961, 67, 9185, 1769, 7734, 1365, 18, 5688, 5621, 5411, 289, 5411, 2240, 1355, 18, 21229, 5621, 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 ]
zactor.GetTextProperty().SetColor(0.0, 0.0, 0.0);
zactor.GetTextProperty().SetColor(1.0, 1.0, 1.0);
public void createAxes() { vtkAxes axes = new vtkAxes(); axes.SetOrigin(0, 0, 0); axes.SetScaleFactor(axisLength); xactor = new vtkTextActor(); yactor = new vtkTextActor(); zactor = new vtkTextActor(); xactor.SetInput("X"); yactor.SetInput("Y"); zactor.SetInput("Z"); xactor.ScaledTextOn(); yactor.ScaledTextOn(); zactor.ScaledTextOn(); xactor.GetPositionCoordinate().SetCoordinateSystemToWorld(); yactor.GetPositionCoordinate().SetCoordinateSystemToWorld(); zactor.GetPositionCoordinate().SetCoordinateSystemToWorld(); xactor.GetPositionCoordinate().SetValue(axisLength, 0.0, 0.0); yactor.GetPositionCoordinate().SetValue(0.0, axisLength, 0.0); zactor.GetPositionCoordinate().SetValue(0.0, 0.0, axisLength); xactor.GetTextProperty().SetColor(0.0, 0.0, 0.0); xactor.GetTextProperty().ShadowOn(); xactor.GetTextProperty().ItalicOn(); xactor.GetTextProperty().BoldOff(); yactor.GetTextProperty().SetColor(0.0, 0.0, 0.0); yactor.GetTextProperty().ShadowOn(); yactor.GetTextProperty().ItalicOn(); yactor.GetTextProperty().BoldOff(); zactor.GetTextProperty().SetColor(0.0, 0.0, 0.0); zactor.GetTextProperty().ShadowOn(); zactor.GetTextProperty().ItalicOn(); zactor.GetTextProperty().BoldOff(); xactor.SetMaximumLineHeight(0.25); yactor.SetMaximumLineHeight(0.25); zactor.SetMaximumLineHeight(0.25); vtkTubeFilter tube = new vtkTubeFilter(); tube.SetInput(axes.GetOutput()); tube.SetRadius(0.05); tube.SetNumberOfSides(8); vtkPolyDataMapper tubeMapper = new vtkPolyDataMapper(); tubeMapper.SetInput(tube.GetOutput()); vtkActor tubeActor = new vtkActor(); tubeActor.SetMapper(tubeMapper); tubeActor.PickableOff(); int coneRes = 12; double coneScale = 0.3; //--- x-Cone vtkConeSource xcone = new vtkConeSource(); xcone.SetResolution(coneRes); vtkPolyDataMapper xconeMapper = new vtkPolyDataMapper(); xconeMapper.SetInput(xcone.GetOutput()); vtkActor xconeActor = new vtkActor(); xconeActor.SetMapper(xconeMapper); xconeActor.GetProperty().SetColor(1,0,0); xconeActor.SetScale(coneScale, coneScale, coneScale); xconeActor.SetPosition(axisLength, 0.0, 0.0); //--- y-Cone vtkConeSource ycone = new vtkConeSource(); ycone.SetResolution(coneRes); vtkPolyDataMapper yconeMapper = new vtkPolyDataMapper(); yconeMapper.SetInput(ycone.GetOutput()); vtkActor yconeActor = new vtkActor(); yconeActor.SetMapper(yconeMapper); yconeActor.GetProperty().SetColor(1,1,0); yconeActor.RotateZ(90); yconeActor.SetScale(coneScale, coneScale, coneScale); yconeActor.SetPosition(0.0, axisLength, 0.0); //--- z-Cone vtkConeSource zcone = new vtkConeSource(); zcone.SetResolution(coneRes); vtkPolyDataMapper zconeMapper = new vtkPolyDataMapper(); zconeMapper.SetInput(zcone.GetOutput()); vtkActor zconeActor = new vtkActor(); zconeActor.SetMapper(zconeMapper); zconeActor.GetProperty().SetColor(0,1,0); zconeActor.RotateY(-90); zconeActor.SetScale(coneScale, coneScale, coneScale); zconeActor.SetPosition(0.0, 0.0, axisLength); ren.AddActor2D(xactor); ren.AddActor2D(yactor); ren.AddActor2D(zactor); this.AddPart(tubeActor); this.AddPart(xconeActor); this.AddPart(yconeActor); this.AddPart(zconeActor); ren.AddActor(this); }
45477 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45477/78c9816548cc34acc595dcb3c23692b7344e8d5c/AxesActor.java/buggy/Wrapping/Java/AxesActor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 752, 26494, 1435, 288, 565, 13659, 26494, 6515, 273, 394, 13659, 26494, 5621, 565, 6515, 18, 694, 7571, 12, 20, 16, 374, 16, 374, 1769, 565, 6515, 18, 694, 5587, 6837, 12, 4890, 1782, 1769, 565, 619, 3362, 273, 394, 13659, 1528, 17876, 5621, 565, 677, 3362, 273, 394, 13659, 1528, 17876, 5621, 565, 998, 3362, 273, 394, 13659, 1528, 17876, 5621, 565, 619, 3362, 18, 28299, 2932, 60, 8863, 565, 677, 3362, 18, 28299, 2932, 61, 8863, 565, 998, 3362, 18, 28299, 2932, 62, 8863, 565, 619, 3362, 18, 55, 12825, 1528, 1398, 5621, 565, 677, 3362, 18, 55, 12825, 1528, 1398, 5621, 565, 998, 3362, 18, 55, 12825, 1528, 1398, 5621, 565, 619, 3362, 18, 967, 2555, 13503, 7675, 694, 13503, 3163, 774, 18071, 5621, 565, 677, 3362, 18, 967, 2555, 13503, 7675, 694, 13503, 3163, 774, 18071, 5621, 565, 998, 3362, 18, 967, 2555, 13503, 7675, 694, 13503, 3163, 774, 18071, 5621, 565, 619, 3362, 18, 967, 2555, 13503, 7675, 694, 620, 12, 4890, 1782, 16, 374, 18, 20, 16, 374, 18, 20, 1769, 565, 677, 3362, 18, 967, 2555, 13503, 7675, 694, 620, 12, 20, 18, 20, 16, 2654, 1782, 16, 374, 18, 20, 1769, 565, 998, 3362, 18, 967, 2555, 13503, 7675, 694, 620, 12, 20, 18, 20, 16, 374, 18, 20, 16, 2654, 1782, 1769, 565, 619, 3362, 18, 967, 1528, 1396, 7675, 694, 2957, 12, 20, 18, 20, 16, 374, 18, 20, 16, 374, 18, 20, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 752, 26494, 1435, 288, 565, 13659, 26494, 6515, 273, 394, 13659, 26494, 5621, 565, 6515, 18, 694, 7571, 12, 20, 16, 374, 16, 374, 1769, 565, 6515, 18, 694, 5587, 6837, 12, 4890, 1782, 1769, 565, 619, 3362, 273, 394, 13659, 1528, 17876, 5621, 565, 677, 3362, 273, 394, 13659, 1528, 17876, 5621, 565, 998, 3362, 273, 394, 13659, 1528, 17876, 5621, 565, 619, 3362, 18, 28299, 2932, 60, 8863, 565, 677, 3362, 18, 28299, 2932, 61, 8863, 565, 998, 3362, 18, 28299, 2932, 62, 8863, 565, 619, 3362, 18, 55, 12825, 1528, 1398, 5621, 565, 677, 3362, 18, 55, 12825, 1528, 1398, 5621, 565, 998, 3362, 18, 55, 12825, 1528, 1398, 5621, 565, 619, 3362, 2 ]
if(importProposals.length > 0) jspResults = merge(jspResults, importProposals);
if (importProposals.length > 0) jspResults = merge(jspResults, importProposals);
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentPosition) { fTemplateContexts.clear(); IStructuredDocumentRegion sdRegion = ContentAssistUtils.getStructuredDocumentRegion((StructuredTextViewer) viewer, documentPosition); fViewer = viewer; ICompletionProposal[] jspResults = EMPTY_PROPOSAL_SET; ICompletionProposal[] embeddedResults = EMPTY_PROPOSAL_SET; // check the actual partition type String partitionType = getPartitionType((StructuredTextViewer) viewer, documentPosition); IStructuredDocument structuredDocument = (IStructuredDocument)viewer.getDocument(); IStructuredDocumentRegion fn = structuredDocument.getRegionAtCharacterOffset(documentPosition); // //////////////////////////////////////////////////////////////////////////// // ANOTHER WORKAROUND UNTIL PARTITIONING TAKES CARE OF THIS // check for xml-jsp tags... if (partitionType == IJSPPartitions.JSP_DIRECTIVE && fn != null) { IStructuredDocumentRegion possibleXMLJSP = ((fn.getType() == DOMRegionContext.XML_CONTENT) && fn.getPrevious() != null) ? fn.getPrevious() : fn; ITextRegionList regions = possibleXMLJSP.getRegions(); if (regions.size() > 1) { // check bounds cases ITextRegion xmlOpenOrClose = regions.get(0); if (xmlOpenOrClose.getType() == DOMRegionContext.XML_TAG_OPEN && documentPosition == possibleXMLJSP.getStartOffset()) { // do regular jsp content assist } else if (xmlOpenOrClose.getType() == DOMRegionContext.XML_END_TAG_OPEN && documentPosition > possibleXMLJSP.getStartOffset()) { // do regular jsp content assist } else { // possible xml-jsp ITextRegion nameRegion = regions.get(1); String name = possibleXMLJSP.getText(nameRegion); if (name.equals("jsp:scriptlet") || name.equals("jsp:expression") || name.equals("jsp:declaration")) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } // //////////////////////////////////////////////////////////////////////////// // ** THIS IS A TEMP FIX UNTIL PARTITIONING TAKES CARE OF THIS... // check for XML-JSP in a <script> region if (partitionType == IJSPPartitions.JSP_CONTENT_JAVASCRIPT || partitionType == IHTMLPartitions.SCRIPT) { // fn should be block text IStructuredDocumentRegion decodedSDRegion = decodeScriptBlock(fn.getFullText()); // System.out.println("decoded > " + // blockOfText.substring(decodedSDRegion.getStartOffset(), // decodedSDRegion.getEndOffset())); if (decodedSDRegion != null) { IStructuredDocumentRegion sdr = decodedSDRegion; while (sdr != null) { // System.out.println("sdr " + sdr.getType()); // System.out.println("sdr > " + // blockOfText.substring(sdr.getStartOffset(), // sdr.getEndOffset())); if (sdr.getType() == DOMJSPRegionContexts.JSP_CONTENT) { if (documentPosition >= fn.getStartOffset() + sdr.getStartOffset() && documentPosition <= fn.getStartOffset() + sdr.getEndOffset()) { return getJSPJavaCompletionProposals(viewer, documentPosition); } } else if (sdr.getType() == DOMRegionContext.XML_TAG_NAME) { if (documentPosition > fn.getStartOffset() + sdr.getStartOffset() && documentPosition < fn.getStartOffset() + sdr.getEndOffset()) { return EMPTY_PROPOSAL_SET; } else if (documentPosition == fn.getStartOffset() + sdr.getEndOffset() && sdr.getNext() != null && sdr.getNext().getType() == DOMJSPRegionContexts.JSP_CONTENT) { // the end of an open tag <script> // <jsp:scriptlet>| blah </jsp:scriptlet> return getJSPJavaCompletionProposals(viewer, documentPosition); } else if (documentPosition == fn.getStartOffset() + sdr.getStartOffset() && sdr.getPrevious() != null && sdr.getPrevious().getType() == DOMRegionContext.XML_TAG_NAME) { return getJSPJavaCompletionProposals(viewer, documentPosition); } } sdr = sdr.getNext(); } } } // ///////////////////////////////////////////////////////////////////////// // check special JSP delimiter cases if (fn != null && partitionType == IJSPPartitions.JSP_CONTENT_DELIMITER) { IStructuredDocumentRegion fnDelim = fn; // if it's a nested JSP region, need to get the correct // StructuredDocumentRegion // not sure why this check was there... // if (fnDelim.getType() == XMLRegionContext.BLOCK_TEXT) { Iterator blockRegions = fnDelim.getRegions().iterator(); ITextRegion temp = null; ITextRegionContainer trc; while (blockRegions.hasNext()) { temp = (ITextRegion) blockRegions.next(); // we hit a nested if (temp instanceof ITextRegionContainer) { trc = (ITextRegionContainer) temp; // it's in this region if (documentPosition >= trc.getStartOffset() && documentPosition < trc.getEndOffset()) { Iterator nestedJSPRegions = trc.getRegions().iterator(); while (nestedJSPRegions.hasNext()) { temp = (ITextRegion) nestedJSPRegions.next(); if (XMLContentAssistUtilities.isJSPOpenDelimiter(temp.getType()) && documentPosition == trc.getStartOffset(temp)) { // HTML content assist // we actually want content assist for the // previous type of region, // well get those proposals from the embedded // adapter if (documentPosition > 0) { partitionType = getPartitionType((StructuredTextViewer) viewer, documentPosition - 1); break; } } else if (XMLContentAssistUtilities.isJSPCloseDelimiter(temp.getType()) && documentPosition == trc.getStartOffset(temp)) { // JSP content assist return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } // } } // take care of XML-JSP delimter cases if (XMLContentAssistUtilities.isXMLJSPDelimiter(fnDelim)) { // since it's a delimiter, we know it's a ITextRegionContainer ITextRegion firstRegion = fnDelim.getRegions().get(0); if (fnDelim.getStartOffset() == documentPosition && (firstRegion.getType() == DOMRegionContext.XML_TAG_OPEN)) { // |<jsp:scriptlet> </jsp:scriptlet> // (pa) commented out so that we get regular behavior JSP // macros etc... // return getHTMLCompletionProposals(viewer, // documentPosition); } else if (fnDelim.getStartOffset() == documentPosition && (firstRegion.getType() == DOMRegionContext.XML_END_TAG_OPEN)) { // <jsp:scriptlet> |</jsp:scriptlet> // check previous partition type to see if it's JAVASCRIPT // if it is, we're just gonna let the embedded JAVASCRIPT // adapter get the proposals if (documentPosition > 0) { String checkType = getPartitionType((StructuredTextViewer) viewer, documentPosition - 1); if (checkType != IJSPPartitions.JSP_CONTENT_JAVASCRIPT) { // this // check // is // failing // for // XML-JSP // (region // is // not // javascript...) return getJSPJavaCompletionProposals(viewer, documentPosition); } partitionType = IJSPPartitions.JSP_CONTENT_JAVASCRIPT; } } else if ((firstRegion.getType() == DOMRegionContext.XML_TAG_OPEN) && documentPosition >= fnDelim.getEndOffset()) { // anything else inbetween return getJSPJavaCompletionProposals(viewer, documentPosition); } } else if (XMLContentAssistUtilities.isJSPDelimiter(fnDelim)) { // the delimiter <%, <%=, <%!, ... if (XMLContentAssistUtilities.isJSPCloseDelimiter(fnDelim)) { if (documentPosition == fnDelim.getStartOffset()) { // check previous partition type to see if it's // JAVASCRIPT // if it is, we're just gonna let the embedded // JAVASCRIPT adapter get the proposals if (documentPosition > 0) { String checkType = getPartitionType((StructuredTextViewer) viewer, documentPosition - 1); if (checkType != IJSPPartitions.JSP_CONTENT_JAVASCRIPT) { return getJSPJavaCompletionProposals(viewer, documentPosition); } partitionType = IJSPPartitions.JSP_CONTENT_JAVASCRIPT; } } } else if (XMLContentAssistUtilities.isJSPOpenDelimiter(fnDelim)) { // if it's the first position of open delimiter // use embedded HTML results if (documentPosition == fnDelim.getStartOffset()) { embeddedResults = getHTMLCompletionProposals(viewer, documentPosition); } else if (documentPosition == fnDelim.getEndOffset()) { // it's at the EOF <%| return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } // need to check if it's JSP region inside of CDATA w/ no region // <![CDATA[ <%|%> ]]> // or a comment region // <!-- <% |%> --> if (fn != null && (fn.getType() == DOMRegionContext.XML_CDATA_TEXT || fn.getType() == DOMRegionContext.XML_COMMENT_TEXT)) { if (fn instanceof ITextRegionContainer) { Object[] cdataRegions = fn.getRegions().toArray(); ITextRegion r = null; ITextRegion jspRegion = null; for (int i = 0; i < cdataRegions.length; i++) { r = (ITextRegion) cdataRegions[i]; if (r instanceof ITextRegionContainer) { // CDATA embedded container, or comment container Object[] jspRegions = ((ITextRegionContainer) r).getRegions().toArray(); for (int j = 0; j < jspRegions.length; j++) { jspRegion = (ITextRegion) jspRegions[j]; if (jspRegion.getType() == DOMJSPRegionContexts.JSP_CLOSE) { if (sdRegion.getStartOffset(jspRegion) == documentPosition) return getJSPJavaCompletionProposals(viewer, documentPosition); } } } } } } // check if it's in an attribute value, if so, don't add CDATA // proposal ITextRegion attrContainer = (fn != null) ? fn.getRegionAtCharacterOffset(documentPosition) : null; if (attrContainer != null && attrContainer instanceof ITextRegionContainer) { if (attrContainer.getType() == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE) { // test location of the cursor // return null if it's in the middle of an open/close // delimeter Iterator attrRegions = ((ITextRegionContainer) attrContainer).getRegions().iterator(); ITextRegion testRegion = null; while (attrRegions.hasNext()) { testRegion = (ITextRegion) attrRegions.next(); // need to check for other valid attribute regions if (XMLContentAssistUtilities.isJSPOpenDelimiter(testRegion.getType())) { if (!(((ITextRegionContainer) attrContainer).getEndOffset(testRegion) <= documentPosition)) return EMPTY_PROPOSAL_SET; } else if (XMLContentAssistUtilities.isJSPCloseDelimiter(testRegion.getType())) { if (!(((ITextRegionContainer) attrContainer).getStartOffset(testRegion) >= documentPosition)) return EMPTY_PROPOSAL_SET; } } // TODO: handle non-Java code such as nested tags if (testRegion.getType().equals(DOMJSPRegionContexts.JSP_CONTENT)) return getJSPJavaCompletionProposals(viewer, documentPosition); return EMPTY_PROPOSAL_SET; } } IContentAssistProcessor p = (IContentAssistProcessor) fPartitionToProcessorMap.get(partitionType); if (p != null) { embeddedResults = p.computeCompletionProposals(viewer, documentPosition); // get bean methods, objects, and constants if there are any... if (partitionType == IJSPPartitions.JSP_CONTENT_JAVASCRIPT || partitionType == IHTMLPartitions.SCRIPT) { ICompletionProposal[] beanResults = getJSPJavaBeanProposals(viewer, documentPosition); if (beanResults != null && beanResults.length > 0) { ICompletionProposal[] added = new ICompletionProposal[beanResults.length + embeddedResults.length]; System.arraycopy(beanResults, 0, added, 0, beanResults.length); System.arraycopy(embeddedResults, 0, added, beanResults.length, embeddedResults.length); embeddedResults = added; } } } else { // the partition type is probably not mapped } // fix for: // HTML content assist give JSP tags in between empty script tags if (!(p instanceof JavaScriptContentAssistProcessor || p instanceof CSSContentAssistProcessor)) { fTemplateContexts.clear(); jspResults = super.computeCompletionProposals(viewer, documentPosition); } if (useEmbeddedResults) { if (embeddedResults != null && embeddedResults.length > 0) { List results = new ArrayList(); for (int i = 0; i < embeddedResults.length; i++) results.add(embeddedResults[i]); if (jspResults != null) { for (int i = 0; i < jspResults.length; i++) results.add(jspResults[i]); } jspResults = new ICompletionProposal[results.size()]; Collections.sort(results, new ProposalComparator()); for (int i = 0; i < results.size(); i++) jspResults[i] = (ICompletionProposal) results.get(i); } } if (jspResults == null) jspResults = EMPTY_PROPOSAL_SET; setErrorMessage(jspResults.length == 0 ? UNKNOWN_CONTEXT : null); // fix for: // check for |<%-- --%> first position of jsp comment if (partitionType == IJSPPartitions.JSP_COMMENT) { if (sdRegion.getStartOffset() == documentPosition) { ICompletionProposal[] htmlResults = getHTMLCompletionProposals(viewer, documentPosition); jspResults = merge(jspResults, htmlResults); } } // https://bugs.eclipse.org/bugs/show_bug.cgi?id=86656 if(partitionType == IJSPPartitions.JSP_DIRECTIVE) { ICompletionProposal[] importProposals = getImportProposals(viewer, documentPosition); if(importProposals.length > 0) jspResults = merge(jspResults, importProposals); } return jspResults; }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/599ba655e87717cb12b3b35c378ea85552f1a329/JSPContentAssistProcessor.java/clean/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/contentassist/JSPContentAssistProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 11238, 14592, 8526, 3671, 11238, 626, 22536, 12, 1285, 408, 18415, 14157, 16, 509, 1668, 2555, 13, 288, 202, 202, 74, 2283, 15518, 18, 8507, 5621, 9506, 202, 45, 30733, 2519, 5165, 8349, 5165, 273, 3697, 2610, 376, 1989, 18, 588, 30733, 2519, 5165, 12443, 30733, 1528, 18415, 13, 14157, 16, 1668, 2555, 1769, 202, 202, 74, 18415, 273, 14157, 31, 202, 202, 45, 11238, 14592, 8526, 22535, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 45, 11238, 14592, 8526, 7488, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 759, 866, 326, 3214, 3590, 618, 202, 202, 780, 3590, 559, 273, 25290, 559, 12443, 30733, 1528, 18415, 13, 14157, 16, 1668, 2555, 1769, 202, 202, 45, 30733, 2519, 19788, 2519, 273, 261, 45, 30733, 2519, 13, 25256, 18, 588, 2519, 5621, 9506, 202, 45, 30733, 2519, 5165, 2295, 273, 19788, 2519, 18, 588, 5165, 861, 7069, 2335, 12, 5457, 2555, 1769, 202, 202, 759, 26398, 2105, 759, 202, 202, 759, 432, 4400, 3891, 17062, 985, 51, 5240, 587, 1784, 2627, 20814, 7022, 1360, 399, 14607, 3991, 6425, 862, 15932, 20676, 202, 202, 759, 866, 364, 2025, 17, 24926, 2342, 2777, 202, 202, 430, 261, 10534, 559, 422, 467, 46, 3118, 13738, 18, 46, 3118, 67, 17541, 5354, 597, 2295, 480, 446, 13, 288, 1082, 202, 45, 30733, 2519, 5165, 3323, 4201, 46, 3118, 273, 14015, 4293, 18, 588, 559, 1435, 422, 4703, 5165, 1042, 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, 467, 11238, 14592, 8526, 3671, 11238, 626, 22536, 12, 1285, 408, 18415, 14157, 16, 509, 1668, 2555, 13, 288, 202, 202, 74, 2283, 15518, 18, 8507, 5621, 9506, 202, 45, 30733, 2519, 5165, 8349, 5165, 273, 3697, 2610, 376, 1989, 18, 588, 30733, 2519, 5165, 12443, 30733, 1528, 18415, 13, 14157, 16, 1668, 2555, 1769, 202, 202, 74, 18415, 273, 14157, 31, 202, 202, 45, 11238, 14592, 8526, 22535, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 45, 11238, 14592, 8526, 7488, 3447, 273, 8984, 67, 3373, 7057, 1013, 67, 4043, 31, 202, 202, 759, 866, 326, 3214, 3590, 618, 202, 202, 780, 3590, 559, 273, 25290, 559, 12443, 30733, 1528, 18415, 2 ]
List<Tid> l = new LinkedList<Tid>();
Tid[] tidArray = tids.keySet().toArray(TID_PROTO);
public Tid[] transformInstances(String mackageName) { List<Tid> l = new LinkedList<Tid>(); for (Iterator i = tids.keySet().iterator(); i.hasNext(); ) { Tid tid = (Tid)i.next(); TransformContext tc = tids.get(tid); if (tc.getTransformDesc().getName().equals(mackageName)) { l.add(tid); } } return l.toArray(TID_PROTO); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/3fba8077b4c1064bdf717c823010583fa91d9744/TransformManagerImpl.java/buggy/mvvm/main/com/metavize/mvvm/engine/TransformManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 350, 8526, 2510, 5361, 12, 780, 312, 1270, 461, 13, 565, 288, 3639, 399, 350, 8526, 11594, 1076, 273, 268, 2232, 18, 856, 694, 7675, 31447, 12, 56, 734, 67, 25455, 1769, 3639, 364, 261, 3198, 277, 273, 268, 2232, 18, 856, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 5411, 399, 350, 11594, 273, 261, 56, 350, 13, 77, 18, 4285, 5621, 5411, 11514, 1042, 1715, 273, 268, 2232, 18, 588, 12, 18081, 1769, 5411, 309, 261, 5111, 18, 588, 4059, 4217, 7675, 17994, 7675, 14963, 12, 81, 1270, 461, 3719, 288, 7734, 328, 18, 1289, 12, 18081, 1769, 5411, 289, 3639, 289, 3639, 327, 328, 18, 31447, 12, 56, 734, 67, 25455, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 350, 8526, 2510, 5361, 12, 780, 312, 1270, 461, 13, 565, 288, 3639, 399, 350, 8526, 11594, 1076, 273, 268, 2232, 18, 856, 694, 7675, 31447, 12, 56, 734, 67, 25455, 1769, 3639, 364, 261, 3198, 277, 273, 268, 2232, 18, 856, 694, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 5411, 399, 350, 11594, 273, 261, 56, 350, 13, 77, 18, 4285, 5621, 5411, 11514, 1042, 1715, 273, 268, 2232, 18, 588, 12, 18081, 1769, 5411, 309, 261, 5111, 18, 588, 4059, 4217, 7675, 17994, 7675, 14963, 12, 81, 1270, 461, 3719, 288, 7734, 328, 18, 1289, 12, 18081, 1769, 5411, 289, 3639, 289, 3639, 327, 328, 18, 31447, 12, 56, 734, 67, 2 ]
"Item X22", null);
null, null, "Item X22", null, null);
public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null); additions.add(item); MenuManager submenu = new MenuManager("Menu X21", "org.eclipse.ui.tests.menus.menuX21"); item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX22", "org.eclipse.ui.tests.menus.updateWorld", null, null, "Item X22", null); submenu.add(item); item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX23", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X23", null); submenu.add(item); additions.add(submenu); item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX24", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X24", null); additions.add(item); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 752, 442, 4027, 3126, 12, 3445, 2104, 1179, 3824, 1179, 16, 987, 26260, 13, 288, 9506, 202, 2189, 442, 4027, 1180, 761, 273, 394, 3498, 442, 4027, 1180, 12, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 1726, 60, 3462, 3113, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 5745, 18071, 3113, 446, 16, 446, 16, 25083, 202, 6, 1180, 1139, 3462, 3113, 446, 1769, 9506, 202, 1289, 5029, 18, 1289, 12, 1726, 1769, 9506, 202, 4599, 1318, 27539, 273, 394, 9809, 1318, 2932, 4599, 1139, 5340, 3113, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 5414, 60, 5340, 8863, 9506, 202, 1726, 273, 394, 3498, 442, 4027, 1180, 12, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 1726, 60, 3787, 3113, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 2725, 18071, 3113, 446, 16, 446, 16, 25083, 202, 6, 1180, 1139, 3787, 3113, 446, 1769, 9506, 202, 1717, 5414, 18, 1289, 12, 1726, 1769, 9506, 202, 1726, 273, 394, 3498, 442, 4027, 1180, 12, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 1726, 60, 4366, 3113, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 5745, 18071, 3113, 446, 16, 446, 16, 25083, 202, 6, 1180, 1139, 4366, 3113, 446, 1769, 9506, 202, 1717, 5414, 18, 1289, 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, 1875, 202, 482, 918, 752, 442, 4027, 3126, 12, 3445, 2104, 1179, 3824, 1179, 16, 987, 26260, 13, 288, 9506, 202, 2189, 442, 4027, 1180, 761, 273, 394, 3498, 442, 4027, 1180, 12, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 1726, 60, 3462, 3113, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 5745, 18071, 3113, 446, 16, 446, 16, 25083, 202, 6, 1180, 1139, 3462, 3113, 446, 1769, 9506, 202, 1289, 5029, 18, 1289, 12, 1726, 1769, 9506, 202, 4599, 1318, 27539, 273, 394, 9809, 1318, 2932, 4599, 1139, 5340, 3113, 25083, 202, 6, 3341, 18, 20416, 18, 4881, 18, 16341, 18, 26065, 18, 5414, 60, 5340, 8863, 2 ]
ser.fFeatures.put(Constants.NAMESPACES_FEATURE, Boolean.TRUE);
ser.fFeatures.put(Constants.DOM_NAMESPACES, Boolean.TRUE);
private void initSerializer(XMLSerializer ser) { ser.fNamespaces = true; ser.fNSBinder = new NamespaceSupport(); ser.fLocalNSBinder = new NamespaceSupport(); ser.fSymbolTable = new SymbolTable(); ser.fFeatures = new Hashtable(); ser.fFeatures.put(Constants.NAMESPACES_FEATURE, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_NORMALIZE_CHARACTERS, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_SPLIT_CDATA, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_VALIDATE, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_ENTITIES, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_WHITESPACE_IN_ELEMENT_CONTENT, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_DISCARD_DEFAULT_CONTENT, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_CANONICAL_FORM, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_FORMAT_PRETTY_PRINT, Boolean.FALSE); ser.fFeatures.put(Constants.DOM_XMLDECL, Boolean.TRUE); ser.fFeatures.put(Constants.DOM_UNKNOWNCHARS, Boolean.TRUE); }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/8eddf8658a4037adbc5f580f1e045a2d978fde56/DOMWriterImpl.java/buggy/src/org/apache/xml/serialize/DOMWriterImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 6306, 12, 4201, 6306, 703, 13, 288, 3639, 703, 18, 74, 13180, 273, 638, 31, 3639, 703, 18, 74, 3156, 17700, 273, 394, 6005, 6289, 5621, 3639, 703, 18, 74, 2042, 3156, 17700, 273, 394, 6005, 6289, 5621, 3639, 703, 18, 74, 5335, 1388, 273, 394, 8565, 1388, 5621, 3639, 703, 18, 74, 8696, 273, 394, 18559, 5621, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 11368, 55, 16, 3411, 18, 18724, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 15480, 15641, 67, 7305, 6526, 11367, 16, 3411, 18, 21053, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 17482, 67, 18375, 16, 3411, 18, 18724, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 14687, 16, 3411, 18, 21053, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 2222, 25673, 16, 3411, 18, 21053, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 20767, 67, 706, 67, 10976, 67, 9689, 16, 3411, 18, 18724, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 2565, 2312, 8085, 67, 5280, 67, 9689, 16, 3411, 18, 18724, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 39, 1258, 673, 10109, 67, 4983, 16, 3411, 18, 21053, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 7254, 67, 27608, 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, 1208, 6306, 12, 4201, 6306, 703, 13, 288, 3639, 703, 18, 74, 13180, 273, 638, 31, 3639, 703, 18, 74, 3156, 17700, 273, 394, 6005, 6289, 5621, 3639, 703, 18, 74, 2042, 3156, 17700, 273, 394, 6005, 6289, 5621, 3639, 703, 18, 74, 5335, 1388, 273, 394, 8565, 1388, 5621, 3639, 703, 18, 74, 8696, 273, 394, 18559, 5621, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 11368, 55, 16, 3411, 18, 18724, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 15480, 15641, 67, 7305, 6526, 11367, 16, 3411, 18, 21053, 1769, 3639, 703, 18, 74, 8696, 18, 458, 12, 2918, 18, 8168, 67, 17482, 67, 18375, 2 ]
if (value == Undefined.instance) { return "undefined"; }
static String uneval(Context cx, Scriptable scope, Object value) { if (value == null) { return "null"; } if (value instanceof String) { String escaped = escapeString((String)value); StringBuffer sb = new StringBuffer(escaped.length() + 2); sb.append('\"'); sb.append(escaped); sb.append('\"'); return sb.toString(); } if (value instanceof Number) { double d = ((Number)value).doubleValue(); if (d == 0 && 1 / d < 0) { return "-0"; } return toString(d); } if (value instanceof Boolean) { return toString(value); } if (value == Undefined.instance) { return "undefined"; } if (value instanceof Scriptable) { Scriptable obj = (Scriptable)value; Object v = ScriptableObject.getProperty(obj, "toSource"); if (v instanceof Function) { Function f = (Function)v; return toString(f.call(cx, scope, obj, emptyArgs)); } return toString(value); } warnAboutNonJSObject(value); return value.toString(); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/c33fa5238e1757bd738a4582f5fcdb06735c66f5/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 514, 640, 8622, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 460, 13, 565, 288, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 315, 2011, 14432, 3639, 289, 3639, 309, 261, 1132, 1276, 514, 13, 288, 5411, 514, 8345, 273, 28028, 12443, 780, 13, 1132, 1769, 5411, 6674, 2393, 273, 394, 6674, 12, 16502, 18, 2469, 1435, 397, 576, 1769, 5411, 2393, 18, 6923, 2668, 2412, 8284, 5411, 2393, 18, 6923, 12, 16502, 1769, 5411, 2393, 18, 6923, 2668, 2412, 8284, 5411, 327, 2393, 18, 10492, 5621, 3639, 289, 3639, 309, 261, 1132, 1276, 3588, 13, 288, 5411, 1645, 302, 273, 14015, 1854, 13, 1132, 2934, 9056, 620, 5621, 5411, 309, 261, 72, 422, 374, 597, 404, 342, 302, 411, 374, 13, 288, 7734, 327, 3701, 20, 14432, 5411, 289, 5411, 327, 1762, 12, 72, 1769, 3639, 289, 3639, 309, 261, 1132, 1276, 3411, 13, 288, 5411, 327, 1762, 12, 1132, 1769, 3639, 289, 3639, 309, 261, 1132, 422, 22243, 18, 1336, 13, 288, 5411, 327, 315, 5978, 14432, 3639, 289, 3639, 309, 261, 1132, 1276, 22780, 13, 288, 5411, 22780, 1081, 273, 261, 3651, 429, 13, 1132, 31, 5411, 1033, 331, 273, 22780, 921, 18, 588, 1396, 12, 2603, 16, 315, 869, 1830, 8863, 5411, 309, 261, 90, 1276, 4284, 13, 288, 7734, 4284, 284, 273, 261, 2083, 13, 90, 31, 7734, 327, 1762, 12, 74, 18, 1991, 12, 71, 92, 16, 2146, 16, 1081, 16, 1008, 2615, 10019, 5411, 289, 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, 760, 514, 640, 8622, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 460, 13, 565, 288, 3639, 309, 261, 1132, 422, 446, 13, 288, 5411, 327, 315, 2011, 14432, 3639, 289, 3639, 309, 261, 1132, 1276, 514, 13, 288, 5411, 514, 8345, 273, 28028, 12443, 780, 13, 1132, 1769, 5411, 6674, 2393, 273, 394, 6674, 12, 16502, 18, 2469, 1435, 397, 576, 1769, 5411, 2393, 18, 6923, 2668, 2412, 8284, 5411, 2393, 18, 6923, 12, 16502, 1769, 5411, 2393, 18, 6923, 2668, 2412, 8284, 5411, 327, 2393, 18, 10492, 5621, 3639, 289, 3639, 309, 261, 1132, 1276, 3588, 13, 288, 5411, 1645, 302, 273, 14015, 1854, 13, 1132, 2934, 9056, 620, 5621, 5411, 309, 261, 72, 422, 374, 2 ]
if (!isValidText(getOriginalText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().orphan(fe.nextFigure()); } } else if (!isValidText(getBackupText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().add(fe.nextFigure()); } setText(getOriginalText()); } else { setText(getOriginalText()); }
setText(getOriginalText());
public boolean undo() { if (!super.undo()) { return false; } getDrawingView().clearSelection(); if (!isValidText(getOriginalText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().orphan(fe.nextFigure()); } } // add text figure if it has been removed (no backup text) else if (!isValidText(getBackupText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().add(fe.nextFigure()); } setText(getOriginalText()); } else { setText(getOriginalText()); } return true; }
5626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5626/fd6141583eb286d7a0c6fb88b32b06eb519af75e/TextTool.java/buggy/JHotDraw/src/CH/ifa/draw/figures/TextTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 15436, 1435, 288, 1082, 202, 430, 16051, 9565, 18, 31226, 10756, 288, 9506, 202, 2463, 629, 31, 1082, 202, 97, 1082, 202, 588, 26885, 1767, 7675, 8507, 6233, 5621, 1082, 202, 430, 16051, 26810, 1528, 12, 588, 8176, 1528, 1435, 3719, 288, 9506, 202, 42, 15906, 21847, 1656, 225, 273, 4506, 1403, 828, 42, 360, 1823, 5621, 9506, 202, 17523, 261, 3030, 18, 5332, 2134, 42, 15906, 10756, 288, 6862, 202, 588, 26885, 1767, 7675, 9446, 310, 7675, 7657, 304, 12, 3030, 18, 4285, 42, 15906, 10663, 9506, 202, 97, 1082, 202, 97, 1082, 202, 759, 527, 977, 7837, 309, 518, 711, 2118, 3723, 261, 2135, 5114, 977, 13, 1082, 202, 12107, 309, 16051, 26810, 1528, 12, 588, 6248, 1528, 1435, 3719, 288, 9506, 202, 42, 15906, 21847, 1656, 225, 273, 4506, 1403, 828, 42, 360, 1823, 5621, 9506, 202, 17523, 261, 3030, 18, 5332, 2134, 42, 15906, 10756, 288, 6862, 202, 588, 26885, 1767, 7675, 1289, 12, 3030, 18, 4285, 42, 15906, 10663, 9506, 202, 97, 9506, 202, 542, 1528, 12, 588, 8176, 1528, 10663, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 542, 1528, 12, 588, 8176, 1528, 10663, 1082, 202, 97, 1082, 202, 2463, 638, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 15436, 1435, 288, 1082, 202, 430, 16051, 9565, 18, 31226, 10756, 288, 9506, 202, 2463, 629, 31, 1082, 202, 97, 1082, 202, 588, 26885, 1767, 7675, 8507, 6233, 5621, 1082, 202, 430, 16051, 26810, 1528, 12, 588, 8176, 1528, 1435, 3719, 288, 9506, 202, 42, 15906, 21847, 1656, 225, 273, 4506, 1403, 828, 42, 360, 1823, 5621, 9506, 202, 17523, 261, 3030, 18, 5332, 2134, 42, 15906, 10756, 288, 6862, 202, 588, 26885, 1767, 7675, 9446, 310, 7675, 7657, 304, 12, 3030, 18, 4285, 42, 15906, 10663, 9506, 202, 97, 1082, 202, 97, 1082, 202, 759, 527, 977, 7837, 309, 518, 711, 2118, 3723, 261, 2135, 5114, 977, 13, 1082, 202, 12107, 309, 16051, 26810, 2 ]
mockDispatcher.clearCalls.setExpected(1);
mockDispatcher.clearCalls.setExpected(1);
public void testResetsDispatcher() { mockDispatcher.clearCalls.setExpected(1); coreMock.reset(); mockDispatcher.verifyExpectations(); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/CoreMockTest.java/buggy/jmock/core/src/test/jmock/core/CoreMockTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 18900, 6681, 1435, 288, 3639, 5416, 6681, 18, 8507, 10125, 18, 542, 6861, 12, 21, 1769, 3639, 2922, 9865, 18, 6208, 5621, 3639, 5416, 6681, 18, 8705, 11988, 1012, 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, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18900, 6681, 1435, 288, 3639, 5416, 6681, 18, 8507, 10125, 18, 542, 6861, 12, 21, 1769, 3639, 2922, 9865, 18, 6208, 5621, 3639, 5416, 6681, 18, 8705, 11988, 1012, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super(name);
super(name);
public TestRubyHash(String name) { super(name); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/2f13ba47385b7584839c7f6f6f1abfee251cbe53/TestRubyHash.java/clean/org/jruby/test/TestRubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7766, 54, 10340, 2310, 12, 780, 508, 13, 288, 202, 9565, 12, 529, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7766, 54, 10340, 2310, 12, 780, 508, 13, 288, 202, 9565, 12, 529, 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, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (isValidProperty(member, s)) { o = member.getHierarchy().getNullMember(); } else {
if (!isValidProperty(member, s)) {
public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); String s = getStringArg(evaluator, args, 1, null); Object o = member.getPropertyValue(s); if (o == null) { if (isValidProperty(member, s)) { o = member.getHierarchy().getNullMember(); } else { throw new MondrianEvaluationException( "Property '" + s + "' is not valid for member '" + member + "'"); } } return o; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/0a1d8c97b0057a4652e57ec03914f74e9c7133f8/PropertiesFunDef.java/buggy/src/main/mondrian/olap/fun/PropertiesFunDef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 3639, 8596, 3140, 273, 18925, 4117, 12, 14168, 639, 16, 833, 16, 374, 16, 638, 1769, 3639, 514, 272, 273, 4997, 4117, 12, 14168, 639, 16, 833, 16, 404, 16, 446, 1769, 3639, 1033, 320, 273, 3140, 18, 588, 16107, 12, 87, 1769, 3639, 309, 261, 83, 422, 446, 13, 288, 5411, 309, 261, 26810, 1396, 12, 5990, 16, 272, 3719, 288, 7734, 320, 273, 3140, 18, 588, 12074, 7675, 588, 2041, 4419, 5621, 5411, 289, 469, 288, 7734, 604, 394, 490, 1434, 566, 304, 13468, 503, 12, 13491, 315, 1396, 2119, 397, 272, 397, 13491, 2491, 353, 486, 923, 364, 3140, 2119, 397, 3140, 397, 5862, 1769, 5411, 289, 3639, 289, 3639, 327, 320, 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, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 3639, 8596, 3140, 273, 18925, 4117, 12, 14168, 639, 16, 833, 16, 374, 16, 638, 1769, 3639, 514, 272, 273, 4997, 4117, 12, 14168, 639, 16, 833, 16, 404, 16, 446, 1769, 3639, 1033, 320, 273, 3140, 18, 588, 16107, 12, 87, 1769, 3639, 309, 261, 83, 422, 446, 13, 288, 5411, 309, 261, 26810, 1396, 12, 5990, 16, 272, 3719, 288, 7734, 320, 273, 3140, 18, 588, 12074, 7675, 588, 2041, 4419, 5621, 5411, 289, 469, 288, 7734, 604, 394, 490, 1434, 566, 304, 13468, 503, 12, 13491, 315, 1396, 2119, 397, 272, 397, 13491, 2491, 353, 486, 923, 364, 3140, 2119, 397, 3140, 397, 2 ]
this.position =position;
this.position = position;
public void showDialog(String in , JTextArea textarea , int position){ this.textarea = textarea; this.position =position; this.show(); this.val = in; this.setVisible(true); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/5ce9b17c12a2b8c491678a62c14ea1084efd627e/ModuleDialog.java/clean/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/ModuleDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2405, 6353, 12, 780, 316, 269, 804, 1528, 5484, 19691, 269, 509, 1754, 15329, 3639, 333, 18, 16701, 273, 19691, 31, 3639, 333, 18, 3276, 273, 1754, 31, 3639, 333, 18, 4500, 5621, 3639, 333, 18, 1125, 273, 316, 31, 3639, 333, 18, 542, 6207, 12, 3767, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2405, 6353, 12, 780, 316, 269, 804, 1528, 5484, 19691, 269, 509, 1754, 15329, 3639, 333, 18, 16701, 273, 19691, 31, 3639, 333, 18, 3276, 273, 1754, 31, 3639, 333, 18, 4500, 5621, 3639, 333, 18, 1125, 273, 316, 31, 3639, 333, 18, 542, 6207, 12, 3767, 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 ]
if (localUntranslated != null) { globalUntranslated = untranslated; untranslated = localUntranslated; } if (untranslated != null) { untranslatedRecorder = new MirrorRecorder(); untranslatedRecorder.characters(untranslated.toCharArray(), 0, untranslated.length()); }
String lc = parameters.getParameter(I18N_LOCALE, null); String localDefaultCatalogueId = parameters.getParameter(I18N_DEFAULT_CATALOGUE_ID, null);
public void setup(SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws ProcessingException, SAXException, IOException { this.sourceResolver = resolver; this.objectModel = objectModel; try { // check parameters to see if anything has been locally overloaded String localUntranslated = null; String lc = null; String localDefaultCatalogueId = null; if (parameters != null) { localUntranslated = parameters.getParameter(I18N_UNTRANSLATED, null); lc = parameters.getParameter(I18N_LOCALE, null); localDefaultCatalogueId = parameters.getParameter(I18N_DEFAULT_CATALOGUE_ID, null); } // if untranslated-text has been overridden, save the original // value so it can be restored when this object is recycled. if (localUntranslated != null) { globalUntranslated = untranslated; untranslated = localUntranslated; } if (untranslated != null) { untranslatedRecorder = new MirrorRecorder(); untranslatedRecorder.characters(untranslated.toCharArray(), 0, untranslated.length()); } // Get current locale Locale locale = I18nUtils.parseLocale(lc); if (getLogger().isDebugEnabled()) { getLogger().debug("Using locale " + locale.toString()); } // Initialize instance state variables this.locale = locale; this.current_state = STATE_OUTSIDE; this.prev_state = STATE_OUTSIDE; this.current_key = null; this.currentCatalogueId = null; this.translate_copy = false; this.tr_text_recorder = null; this.text_recorder = new MirrorRecorder(); this.param_count = 0; this.param_name = null; this.param_value = null; this.param_recorder = null; this.indexedParams = new HashMap(3); this.formattingParams = null; this.strBuffer = null; // give the defaultCatalogue variable its value -- first look if it's locally overridden // and otherwise use the component-wide defaults. if (localDefaultCatalogueId != null) { CatalogueInfo catalogueInfo = (CatalogueInfo)catalogues.get(localDefaultCatalogueId); if (catalogueInfo == null) { throw new ProcessingException("I18nTransformer: '" + localDefaultCatalogueId + "' is not an existing catalogue id."); } defaultCatalogue = catalogueInfo.getCatalogue(); } else { defaultCatalogue = ((CatalogueInfo)catalogues.get(defaultCatalogueId)).getCatalogue(); } if (getLogger().isDebugEnabled()) { getLogger().debug("Using default catalogue " + defaultCatalogue); } // Create and initialize a formatter this.formatter = new MessageFormat(""); this.formatter.setLocale(locale); } catch (Exception e) { getLogger().debug("exception generated, leaving unconfigured"); throw new ProcessingException(e.getMessage(), e); } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/42f934e1b34d65b4b4d5d33391c9a2c8a5c48360/I18nTransformer.java/buggy/src/java/org/apache/cocoon/transformation/I18nTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3875, 12, 1830, 4301, 5039, 16, 1635, 733, 1488, 16, 514, 1084, 16, 8227, 7012, 1472, 13, 565, 1216, 19652, 503, 16, 14366, 16, 1860, 288, 3639, 333, 18, 3168, 4301, 273, 5039, 31, 3639, 333, 18, 1612, 1488, 273, 733, 1488, 31, 3639, 775, 288, 5411, 368, 866, 1472, 358, 2621, 309, 6967, 711, 2118, 13760, 1879, 4230, 5411, 514, 1191, 984, 22899, 273, 446, 31, 5411, 514, 9109, 273, 446, 31, 5411, 514, 1191, 1868, 9769, 344, 548, 273, 446, 31, 5411, 309, 261, 3977, 480, 446, 13, 288, 7734, 1191, 984, 22899, 273, 13491, 1472, 18, 588, 1662, 12, 45, 2643, 50, 67, 5321, 54, 1258, 4559, 6344, 16, 446, 1769, 7734, 9109, 273, 1472, 18, 588, 1662, 12, 45, 2643, 50, 67, 25368, 16, 446, 1769, 7734, 1191, 1868, 9769, 344, 548, 273, 1472, 18, 588, 1662, 12, 45, 2643, 50, 67, 5280, 67, 14130, 18683, 1821, 67, 734, 16, 446, 1769, 5411, 289, 5411, 368, 309, 640, 22899, 17, 955, 711, 2118, 11000, 16, 1923, 326, 2282, 5411, 368, 460, 1427, 518, 848, 506, 18751, 1347, 333, 733, 353, 25745, 71, 1259, 18, 5411, 309, 261, 3729, 984, 22899, 480, 446, 13, 288, 7734, 2552, 984, 22899, 273, 640, 22899, 31, 7734, 640, 22899, 273, 1191, 984, 22899, 31, 5411, 289, 5411, 309, 261, 318, 22899, 480, 446, 13, 288, 7734, 640, 22899, 10777, 273, 394, 490, 8299, 10777, 5621, 7734, 640, 22899, 10777, 18, 20558, 12, 318, 22899, 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, 3875, 12, 1830, 4301, 5039, 16, 1635, 733, 1488, 16, 514, 1084, 16, 8227, 7012, 1472, 13, 565, 1216, 19652, 503, 16, 14366, 16, 1860, 288, 3639, 333, 18, 3168, 4301, 273, 5039, 31, 3639, 333, 18, 1612, 1488, 273, 733, 1488, 31, 3639, 775, 288, 5411, 368, 866, 1472, 358, 2621, 309, 6967, 711, 2118, 13760, 1879, 4230, 5411, 514, 1191, 984, 22899, 273, 446, 31, 5411, 514, 9109, 273, 446, 31, 5411, 514, 1191, 1868, 9769, 344, 548, 273, 446, 31, 5411, 309, 261, 3977, 480, 446, 13, 288, 7734, 1191, 984, 22899, 273, 13491, 1472, 18, 588, 1662, 12, 45, 2643, 50, 67, 5321, 54, 1258, 4559, 6344, 16, 446, 1769, 7734, 9109, 2 ]
public int hashCode() { int hv = 0; if (key != -999) return key; for (int i=0;i<attributes.length;i++) if (missing[i]) hv += (i*13); else hv += (i * 5 * (attributes[i]+1)); if (key == -999) key = hv; return hv; }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/f6f62667723170f4030ae82f079e537cd6065be3/DecisionTable.java/clean/classifiers/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 13374, 1435, 565, 288, 1377, 509, 366, 90, 273, 374, 31, 1377, 309, 261, 856, 480, 300, 11984, 13, 202, 2463, 498, 31, 1377, 364, 261, 474, 277, 33, 20, 31, 77, 32, 4350, 18, 2469, 31, 77, 27245, 202, 430, 261, 7337, 63, 77, 5717, 202, 225, 366, 90, 1011, 261, 77, 14, 3437, 1769, 202, 12107, 202, 225, 366, 90, 1011, 261, 77, 380, 1381, 380, 261, 4350, 63, 77, 3737, 21, 10019, 1377, 309, 261, 856, 422, 300, 11984, 13, 202, 856, 273, 366, 90, 31, 1377, 327, 366, 90, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 509, 13374, 1435, 565, 288, 1377, 509, 366, 90, 273, 374, 31, 1377, 309, 261, 856, 480, 300, 11984, 13, 202, 2463, 498, 31, 1377, 364, 261, 474, 277, 33, 20, 31, 77, 32, 4350, 18, 2469, 31, 77, 27245, 202, 430, 261, 7337, 63, 77, 5717, 202, 225, 366, 90, 1011, 261, 77, 14, 3437, 1769, 202, 12107, 202, 225, 366, 90, 1011, 261, 77, 380, 1381, 380, 261, 4350, 63, 77, 3737, 21, 10019, 1377, 309, 261, 856, 422, 300, 11984, 13, 202, 856, 273, 366, 90, 31, 1377, 327, 366, 90, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
mock.stubs().method("invokedMethod").withNoArguments(); mock.expects(never()).method("invokedMethod").withNoArguments();
mock.stubs().method("invokedMethod").withNoArguments(); mock.expects(never()).method("invokedMethod").withNoArguments();
public void testExpectNotCalledOverridesStubAndFailsIfCalled() { Mock mock = mock(MockedInterface.class, "mock"); mock.stubs().method("invokedMethod").withNoArguments(); mock.expects(never()).method("invokedMethod").withNoArguments(); try { ((MockedInterface)mock.proxy()).method(); } catch (DynamicMockError error) { return; } fail("DynamicMockError expected"); }
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectNeverAcceptanceTest.java/buggy/jmock/core/acceptance-tests/atest/jmock/ExpectNeverAcceptanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11988, 1248, 8185, 13084, 11974, 1876, 30800, 2047, 8185, 1435, 288, 202, 202, 9865, 5416, 273, 5416, 12, 9865, 329, 1358, 18, 1106, 16, 315, 22851, 8863, 202, 202, 22851, 18, 31960, 7675, 2039, 2932, 5768, 14276, 1305, 20387, 1918, 2279, 4628, 5621, 202, 202, 22851, 18, 12339, 87, 12, 4644, 502, 1435, 2934, 2039, 2932, 5768, 14276, 1305, 20387, 1918, 2279, 4628, 5621, 202, 202, 698, 288, 1082, 202, 12443, 9865, 329, 1358, 13, 22851, 18, 5656, 1435, 2934, 2039, 5621, 202, 202, 97, 202, 202, 14683, 261, 9791, 9865, 668, 555, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6870, 2932, 9791, 9865, 668, 2665, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11988, 1248, 8185, 13084, 11974, 1876, 30800, 2047, 8185, 1435, 288, 202, 202, 9865, 5416, 273, 5416, 12, 9865, 329, 1358, 18, 1106, 16, 315, 22851, 8863, 202, 202, 22851, 18, 31960, 7675, 2039, 2932, 5768, 14276, 1305, 20387, 1918, 2279, 4628, 5621, 202, 202, 22851, 18, 12339, 87, 12, 4644, 502, 1435, 2934, 2039, 2932, 5768, 14276, 1305, 20387, 1918, 2279, 4628, 5621, 202, 202, 698, 288, 1082, 202, 12443, 9865, 329, 1358, 13, 22851, 18, 5656, 1435, 2934, 2039, 5621, 202, 202, 97, 202, 202, 14683, 261, 9791, 9865, 668, 555, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6870, 2932, 9791, 9865, 668, 2665, 8863, 202, 97, 2, -100 ]
return p; }
return p; }
public Patch createNewPatch() { Patch p = new Patch(DX7Constants.INIT_PERFORMANCE,getDeviceNum(),getDriverNum()); return p; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/4257a12add320e7386d2e846e2e34d26914720ec/YamahaDX7PerformanceSingleDriver.java/buggy/JSynthLib/synthdrivers/YamahaDX7/YamahaDX7PerformanceSingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12042, 15291, 7332, 1435, 225, 288, 565, 12042, 293, 273, 394, 12042, 12, 28826, 27, 2918, 18, 12919, 67, 3194, 4983, 4722, 16, 588, 3654, 2578, 9334, 588, 4668, 2578, 10663, 565, 327, 293, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12042, 15291, 7332, 1435, 225, 288, 565, 12042, 293, 273, 394, 12042, 12, 28826, 27, 2918, 18, 12919, 67, 3194, 4983, 4722, 16, 588, 3654, 2578, 9334, 588, 4668, 2578, 10663, 565, 327, 293, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
context.pushClass(context.getWrapper());
oldParent = context.setRubyClass(context.getWrapper());
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); context.pushDynamicVars(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pushClass(getClasses().getObjectClass()); context.setWrapper(null); } else { /* load in anonymous module as toplevel */ context.setWrapper(RubyModule.newModule(this, null)); context.pushClass(context.getWrapper()); self = getTopSelf().rbClone(); self.extendObject(context.getRubyClass()); } String last_func = getCurrentFrame().getLastFunc(); context.getFrameStack().push(); context.getCurrentFrame().setLastFunc(null); context.getCurrentFrame().setLastClass(null); context.getCurrentFrame().setSelf(self); context.getScopeStack().push(); /* default visibility is private at loading toplevel */ setCurrentVisibility(Visibility.PRIVATE); try { self.eval(node); } finally { context.getCurrentFrame().setLastFunc(last_func); context.getScopeStack().pop(); context.getFrameStack().pop(); context.popClass(); context.popDynamicVars(); context.setWrapper(wrapper); } }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/abfe85d15f992ecf4447b155d177050fe2239c3b/Ruby.java/buggy/src/org/jruby/Ruby.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 907, 12, 780, 31008, 16, 2029, 756, 16, 1250, 2193, 13, 288, 3639, 15908, 10340, 921, 365, 273, 13729, 10084, 5621, 3639, 4884, 1042, 819, 273, 5175, 1042, 5621, 3639, 819, 18, 6206, 9791, 5555, 5621, 3639, 19817, 3120, 4053, 273, 819, 18, 588, 3611, 5621, 3639, 309, 16051, 4113, 13, 288, 5411, 8177, 12, 24, 1769, 1748, 1410, 10182, 2552, 919, 1195, 5411, 819, 18, 6206, 797, 12, 588, 4818, 7675, 588, 921, 797, 10663, 5411, 819, 18, 542, 3611, 12, 2011, 1769, 3639, 289, 469, 288, 5411, 1748, 1262, 316, 13236, 1605, 487, 28999, 1195, 5411, 819, 18, 542, 3611, 12, 54, 10340, 3120, 18, 2704, 3120, 12, 2211, 16, 446, 10019, 5411, 1592, 3054, 273, 819, 18, 542, 54, 10340, 797, 12, 2472, 18, 588, 3611, 10663, 5411, 365, 273, 13729, 10084, 7675, 6731, 10930, 5621, 5411, 365, 18, 14313, 921, 12, 2472, 18, 588, 54, 10340, 797, 10663, 3639, 289, 3639, 514, 1142, 67, 644, 273, 5175, 3219, 7675, 588, 3024, 2622, 5621, 3639, 819, 18, 588, 3219, 2624, 7675, 6206, 5621, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 3024, 2622, 12, 2011, 1769, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 3024, 797, 12, 2011, 1769, 3639, 819, 18, 588, 3935, 3219, 7675, 542, 10084, 12, 2890, 1769, 3639, 819, 18, 588, 3876, 2624, 7675, 6206, 5621, 3639, 1748, 805, 9478, 353, 3238, 622, 7153, 28999, 1195, 3639, 12589, 10135, 12, 10135, 18, 20055, 1769, 3639, 775, 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, 1262, 907, 12, 780, 31008, 16, 2029, 756, 16, 1250, 2193, 13, 288, 3639, 15908, 10340, 921, 365, 273, 13729, 10084, 5621, 3639, 4884, 1042, 819, 273, 5175, 1042, 5621, 3639, 819, 18, 6206, 9791, 5555, 5621, 3639, 19817, 3120, 4053, 273, 819, 18, 588, 3611, 5621, 3639, 309, 16051, 4113, 13, 288, 5411, 8177, 12, 24, 1769, 1748, 1410, 10182, 2552, 919, 1195, 5411, 819, 18, 6206, 797, 12, 588, 4818, 7675, 588, 921, 797, 10663, 5411, 819, 18, 542, 3611, 12, 2011, 1769, 3639, 289, 469, 288, 5411, 1748, 1262, 316, 13236, 1605, 487, 28999, 1195, 5411, 819, 18, 542, 3611, 12, 54, 10340, 3120, 18, 2704, 3120, 12, 2211, 16, 446, 10019, 5411, 2 ]
AuthorizationClient client = new AuthorizationClient("foo", "foo", "foo", "foo", "foo", affiliation, emptySet, emptyMap);
AuthorizationClient client = new AuthorizationClient("foo", "foo", "foo", "foo", "foo", affiliation, emptySet, emptyMap);
public void testHasAffiliation() { HashSet affiliation = new HashSet(); affiliation.add("uio.no"); affiliation.add("uninett.no"); AuthorizationClient client = new AuthorizationClient("foo", "foo", "foo", "foo", "foo", affiliation, emptySet, emptyMap); /* Illegal arguments */ try { client.hasAffiliation(null); fail("Should raise IllegalArgumentException, null value"); } catch (IllegalArgumentException success) { } try { client.hasAffiliation(""); fail("Should raise IllegalArgumentException, empty string"); } catch (IllegalArgumentException success) { } /* Legal arguments */ Assert.assertTrue("Should be affiliated with", client.hasAffiliation("uio.no")); Assert.assertFalse("Should not be affiliated with", client.hasAffiliation("wrong.no")); }
1637 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1637/aae449b8f0b3690db2dc4c5b5a6e10bd6c5b319c/AuthorizationClientTest.java/buggy/moria2/modules/moria-am/src/test/java/no/feide/moria/authorization/AuthorizationClientTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5582, 13785, 16278, 1435, 288, 202, 202, 13482, 7103, 16278, 273, 394, 6847, 5621, 202, 202, 7329, 16278, 18, 1289, 2932, 89, 1594, 18, 2135, 8863, 202, 202, 7329, 16278, 18, 1289, 2932, 318, 23864, 88, 18, 2135, 8863, 202, 202, 6063, 1227, 1004, 273, 1082, 202, 2704, 10234, 1227, 2932, 11351, 3113, 315, 11351, 3113, 315, 11351, 3113, 315, 11351, 3113, 315, 11351, 3113, 7103, 16278, 16, 26862, 16, 27541, 1769, 202, 202, 20308, 2141, 1775, 1195, 202, 202, 698, 288, 1082, 202, 2625, 18, 5332, 13785, 16278, 12, 2011, 1769, 1082, 202, 6870, 2932, 14309, 1002, 2754, 16, 446, 460, 8863, 202, 202, 97, 1044, 261, 31237, 2216, 13, 288, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 2625, 18, 5332, 13785, 16278, 2932, 8863, 1082, 202, 6870, 2932, 14309, 1002, 2754, 16, 1008, 533, 8863, 202, 202, 97, 1044, 261, 31237, 2216, 13, 288, 202, 202, 97, 202, 202, 20308, 17167, 287, 1775, 1195, 202, 202, 8213, 18, 11231, 5510, 2932, 14309, 506, 7103, 330, 10206, 598, 3113, 1004, 18, 5332, 13785, 16278, 2932, 89, 1594, 18, 2135, 7923, 1769, 202, 202, 8213, 18, 11231, 8381, 2932, 14309, 486, 506, 7103, 330, 10206, 598, 3113, 1004, 18, 5332, 13785, 16278, 2932, 21530, 18, 2135, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 1842, 5582, 13785, 16278, 1435, 288, 202, 202, 13482, 7103, 16278, 273, 394, 6847, 5621, 202, 202, 7329, 16278, 18, 1289, 2932, 89, 1594, 18, 2135, 8863, 202, 202, 7329, 16278, 18, 1289, 2932, 318, 23864, 88, 18, 2135, 8863, 202, 202, 6063, 1227, 1004, 273, 1082, 202, 2704, 10234, 1227, 2932, 11351, 3113, 315, 11351, 3113, 315, 11351, 3113, 315, 11351, 3113, 315, 11351, 3113, 7103, 16278, 16, 26862, 16, 27541, 1769, 202, 202, 20308, 2141, 1775, 1195, 202, 202, 698, 288, 1082, 202, 2625, 18, 5332, 13785, 16278, 12, 2011, 1769, 1082, 202, 6870, 2932, 14309, 1002, 2754, 16, 446, 460, 8863, 202, 202, 97, 1044, 261, 31237, 2216, 13, 288, 202, 202, 2 ]
Connection conn = dsource.getConnection(); PreparedStatement ps = conn.prepareStatement(sql); ps.setString(1, displayName);
Connection conn = dsource.getConnection(); PreparedStatement ps = conn.prepareStatement(sql); ps.setString(1, displayName);
public static DatasetView getDatasetViewByDisplayName(DataSource dsource, String user, String displayName) throws ConfigurationException { try { String metatable = getDSViewTableFor(dsource, user); String sql = GETBYDNAMESELECT + metatable + GETBYDNAMEWHERE; if (logger.isLoggable(Level.WARNING)) logger.warning("Using " + sql + " to get DatasetView for displayName " + displayName + "\n"); Connection conn = dsource.getConnection(); PreparedStatement ps = conn.prepareStatement(sql); ps.setString(1, displayName); ResultSet rs = ps.executeQuery(); if (!rs.next()) { // will only get one result rs.close(); conn.close(); return null; } byte[] stream = rs.getBytes(1); byte[] cstream = rs.getBytes(2); byte[] digest = rs.getBytes(3); String algorithm = rs.getString(4); rs.close(); conn.close(); InputStream rstream = null; if (cstream != null) rstream = new GZIPInputStream(new ByteArrayInputStream(cstream)); else rstream = new ByteArrayInputStream(stream); return DatasetViewXMLUtils.XMLStreamToDatasetView(rstream, algorithm, digest); } catch (SQLException e) { throw new ConfigurationException("Caught SQL Exception during fetch of requested DatasetView: " + e.getMessage(),e); } catch (IOException e) { throw new ConfigurationException("Caught IOException during fetch of requested DatasetView: " + e.getMessage(),e); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/e60c341365a8c15a3b62b5f7aa689f8e2ded72c0/DatabaseDatasetViewUtils.java/clean/src/java/org/ensembl/mart/lib/config/DatabaseDatasetViewUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 10778, 1767, 24211, 2759, 1767, 858, 20524, 12, 8597, 302, 3168, 16, 514, 729, 16, 514, 16218, 13, 1216, 22196, 288, 202, 202, 698, 288, 1082, 202, 780, 5100, 8163, 273, 2343, 55, 1767, 1388, 1290, 12, 2377, 552, 16, 729, 1769, 1082, 202, 780, 1847, 273, 4978, 6486, 40, 1985, 4803, 397, 5100, 8163, 397, 4978, 6486, 40, 1985, 12299, 31, 1082, 202, 430, 261, 4901, 18, 291, 1343, 8455, 12, 2355, 18, 9511, 3719, 9506, 202, 4901, 18, 8551, 2932, 7736, 315, 397, 1847, 397, 315, 358, 336, 10778, 1767, 364, 16218, 315, 397, 16218, 397, 1548, 82, 8863, 1082, 202, 1952, 1487, 273, 302, 3168, 18, 588, 1952, 5621, 1082, 202, 29325, 4250, 273, 1487, 18, 9366, 3406, 12, 4669, 1769, 1082, 202, 1121, 18, 542, 780, 12, 21, 16, 16218, 1769, 1082, 202, 13198, 3597, 273, 4250, 18, 8837, 1138, 5621, 1377, 309, 16051, 5453, 18, 4285, 10756, 288, 540, 368, 903, 1338, 336, 1245, 563, 540, 3597, 18, 4412, 5621, 540, 1487, 18, 4412, 5621, 540, 327, 446, 31, 1377, 289, 1082, 202, 7229, 8526, 1407, 273, 3597, 18, 588, 2160, 12, 21, 1769, 1082, 202, 7229, 8526, 276, 3256, 273, 3597, 18, 588, 2160, 12, 22, 1769, 1082, 202, 7229, 8526, 5403, 273, 3597, 18, 588, 2160, 12, 23, 1769, 1082, 202, 780, 4886, 273, 3597, 18, 588, 780, 12, 24, 1769, 1082, 202, 5453, 18, 4412, 5621, 1082, 202, 4646, 18, 4412, 5621, 1082, 202, 4348, 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, 10778, 1767, 24211, 2759, 1767, 858, 20524, 12, 8597, 302, 3168, 16, 514, 729, 16, 514, 16218, 13, 1216, 22196, 288, 202, 202, 698, 288, 1082, 202, 780, 5100, 8163, 273, 2343, 55, 1767, 1388, 1290, 12, 2377, 552, 16, 729, 1769, 1082, 202, 780, 1847, 273, 4978, 6486, 40, 1985, 4803, 397, 5100, 8163, 397, 4978, 6486, 40, 1985, 12299, 31, 1082, 202, 430, 261, 4901, 18, 291, 1343, 8455, 12, 2355, 18, 9511, 3719, 9506, 202, 4901, 18, 8551, 2932, 7736, 315, 397, 1847, 397, 315, 358, 336, 10778, 1767, 364, 16218, 315, 397, 16218, 397, 1548, 82, 8863, 1082, 202, 1952, 1487, 273, 302, 3168, 18, 588, 1952, 5621, 1082, 202, 29325, 2 ]
assertionList = (List) iterator.next();
writer.writeStartElement(Constants.ATTR_WSP, Constants.ELEM_ALL, Constants.URI_POLICY_NS);
public void serialize(Policy policy, OutputStream os) { try { XMLStreamWriter writer = XMLOutputFactory.newInstance() .createXMLStreamWriter(os); policy = (Policy) policy.normalize(false); String prefix = writer.getPrefix(Constants.ATTR_WSP); String wsuPrefix = writer.getPrefix(Constants.URI_WSU_NS); if (prefix == null) { prefix = Constants.ATTR_WSP; writer.setPrefix(prefix, Constants.URI_POLICY_NS); } if (wsuPrefix == null) { // TODO move this 'wsu' value to Neethi2 constants wsuPrefix = "wsu"; writer.setPrefix(wsuPrefix, Constants.URI_WSU_NS); } // write <wsp:Policy tag writer.writeStartElement(prefix, Constants.ELEM_POLICY, Constants.URI_POLICY_NS); // write xmlns:wsp=".." writer.writeNamespace(prefix, Constants.URI_POLICY_NS); String name = policy.getName(); if (name != null) { // write Name=".." writer.writeAttribute(Constants.ATTR_NAME, name); } String id = policy.getId(); if (id != null) { // write wsu:Id=".." writer.writeAttribute(Constants.ATTR_ID, id); } writer.writeStartElement(Constants.ATTR_WSP, Constants.ELEM_EXACTLYONE, Constants.URI_POLICY_NS); // write <wsp:ExactlyOne> List assertionList; for (Iterator iterator = policy.getAlternatives(); iterator .hasNext();) { // write <wsp:All> assertionList = (List) iterator.next(); Assertion assertion; for (Iterator assertions = assertionList.iterator(); assertions .hasNext();) { assertion = (Assertion) assertions.next(); if (assertions2Filter.contains(assertion.getName())) { // since this is an assertion to filter, we will not serialize this continue; } assertion.serialize(writer); } } // write </wsp:ExactlyOne> writer.writeEndElement(); // write </wsp:Policy> writer.writeEndElement(); writer.flush(); } catch (Exception ex) { throw new RuntimeException(ex); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/51959af31693a486bec279a19c0b64e97709d9f6/ExternalPolicySerializer.java/clean/modules/kernel/src/org/apache/axis2/util/ExternalPolicySerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4472, 12, 2582, 3329, 16, 8962, 1140, 13, 288, 3639, 775, 288, 5411, 15595, 2289, 2633, 273, 3167, 1447, 1733, 18, 2704, 1442, 1435, 10792, 263, 2640, 4201, 29421, 12, 538, 1769, 5411, 3329, 273, 261, 2582, 13, 3329, 18, 12237, 12, 5743, 1769, 5411, 514, 1633, 273, 2633, 18, 588, 2244, 12, 2918, 18, 12043, 67, 2651, 52, 1769, 5411, 514, 4945, 89, 2244, 273, 2633, 18, 588, 2244, 12, 2918, 18, 3098, 67, 2651, 57, 67, 3156, 1769, 5411, 309, 261, 3239, 422, 446, 13, 288, 7734, 1633, 273, 5245, 18, 12043, 67, 2651, 52, 31, 7734, 2633, 18, 542, 2244, 12, 3239, 16, 5245, 18, 3098, 67, 26366, 67, 3156, 1769, 5411, 289, 5411, 309, 261, 4749, 89, 2244, 422, 446, 13, 288, 7734, 368, 2660, 3635, 333, 296, 4749, 89, 11, 460, 358, 7455, 546, 77, 22, 6810, 7734, 4945, 89, 2244, 273, 315, 4749, 89, 14432, 7734, 2633, 18, 542, 2244, 12, 4749, 89, 2244, 16, 5245, 18, 3098, 67, 2651, 57, 67, 3156, 1769, 5411, 289, 5411, 368, 1045, 411, 91, 1752, 30, 2582, 1047, 5411, 2633, 18, 2626, 1685, 1046, 12, 3239, 16, 5245, 18, 41, 26817, 67, 26366, 16, 10792, 5245, 18, 3098, 67, 26366, 67, 3156, 1769, 5411, 368, 1045, 12302, 30, 91, 1752, 1546, 18460, 5411, 2633, 18, 2626, 3402, 12, 3239, 16, 5245, 18, 3098, 67, 26366, 67, 3156, 1769, 5411, 514, 508, 273, 3329, 18, 17994, 5621, 5411, 309, 261, 529, 480, 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, 4472, 12, 2582, 3329, 16, 8962, 1140, 13, 288, 3639, 775, 288, 5411, 15595, 2289, 2633, 273, 3167, 1447, 1733, 18, 2704, 1442, 1435, 10792, 263, 2640, 4201, 29421, 12, 538, 1769, 5411, 3329, 273, 261, 2582, 13, 3329, 18, 12237, 12, 5743, 1769, 5411, 514, 1633, 273, 2633, 18, 588, 2244, 12, 2918, 18, 12043, 67, 2651, 52, 1769, 5411, 514, 4945, 89, 2244, 273, 2633, 18, 588, 2244, 12, 2918, 18, 3098, 67, 2651, 57, 67, 3156, 1769, 5411, 309, 261, 3239, 422, 446, 13, 288, 7734, 1633, 273, 5245, 18, 12043, 67, 2651, 52, 31, 7734, 2633, 18, 542, 2244, 12, 3239, 16, 5245, 18, 3098, 67, 26366, 67, 3156, 1769, 5411, 289, 2 ]
if (result.isOK() && workspace.getRoot().exists(testPath)) return workspace.getRoot().findMember(testPath);
if (result.isOK() && workspace.getRoot().exists(testPath)) { return workspace.getRoot().findMember(testPath); }
protected IResource getSourceResource() { IWorkspace workspace = IDEWorkbenchPlugin.getPluginWorkspace(); //make the path absolute to allow for optional leading slash IPath testPath = getResourcePath(); IStatus result = workspace.validatePath(testPath.toString(), IResource.ROOT | IResource.PROJECT | IResource.FOLDER | IResource.FILE); if (result.isOK() && workspace.getRoot().exists(testPath)) return workspace.getRoot().findMember(testPath); return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardExportPage.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 1420, 7889, 1420, 1435, 288, 3639, 467, 8241, 6003, 273, 1599, 41, 2421, 22144, 3773, 18, 588, 3773, 8241, 5621, 3639, 368, 6540, 326, 589, 4967, 358, 1699, 364, 3129, 7676, 9026, 3639, 467, 743, 1842, 743, 273, 5070, 743, 5621, 3639, 467, 1482, 563, 273, 6003, 18, 5662, 743, 12, 3813, 743, 18, 10492, 9334, 7734, 467, 1420, 18, 9185, 571, 467, 1420, 18, 17147, 571, 467, 1420, 18, 17357, 13491, 571, 467, 1420, 18, 3776, 1769, 3639, 309, 261, 2088, 18, 291, 3141, 1435, 597, 6003, 18, 588, 2375, 7675, 1808, 12, 3813, 743, 3719, 5411, 327, 6003, 18, 588, 2375, 7675, 4720, 4419, 12, 3813, 743, 1769, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 1420, 7889, 1420, 1435, 288, 3639, 467, 8241, 6003, 273, 1599, 41, 2421, 22144, 3773, 18, 588, 3773, 8241, 5621, 3639, 368, 6540, 326, 589, 4967, 358, 1699, 364, 3129, 7676, 9026, 3639, 467, 743, 1842, 743, 273, 5070, 743, 5621, 3639, 467, 1482, 563, 273, 6003, 18, 5662, 743, 12, 3813, 743, 18, 10492, 9334, 7734, 467, 1420, 18, 9185, 571, 467, 1420, 18, 17147, 571, 467, 1420, 18, 17357, 13491, 571, 467, 1420, 18, 3776, 1769, 3639, 309, 261, 2088, 18, 291, 3141, 1435, 597, 6003, 18, 588, 2375, 7675, 1808, 12, 3813, 743, 3719, 5411, 327, 6003, 18, 588, 2375, 7675, 4720, 4419, 12, 3813, 743, 1769, 3639, 327, 446, 31, 565, 289, 2 ]
functionType = new CPPFunctionType(returnType, parms);
functionType = new CPPFunctionType(cpp_long_double, parms);
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); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e5e342776ddb4235e342044729523a01bf8c688b/GCCBuiltinSymbolProvider.java/buggy/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, 918, 1001, 24553, 67, 13569, 1435, 288, 202, 202, 759, 1866, 1149, 380, 202, 202, 2871, 9053, 5784, 3456, 21416, 19924, 55, 2377, 273, 394, 6425, 882, 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, 276, 67, 10248, 67, 3001, 67, 84, 273, 394, 385, 4926, 559, 12, 2704, 385, 16185, 559, 12, 1065, 81, 55, 2377, 10019, 202, 202, 71, 67, 10248, 67, 3001, 67, 84, 18, 542, 4926, 12, 2704, 6425, 882, 4926, 10663, 202, 202, 45, 559, 3283, 84, 67, 10248, 67, 3001, 67, 84, 273, 394, 5181, 52, 4926, 559, 12, 2704, 5181, 52, 16185, 559, 12, 2704, 5181, 52, 8252, 559, 12, 45, 8252, 559, 18, 88, 67, 3001, 16, 374, 3631, 638, 16, 629, 10019, 202, 202, 759, 9056, 1001, 24553, 67, 13569, 261, 10248, 1149, 380, 609, 13, 202, 202, 45, 5250, 1906, 273, 446, 31, 9506, 202, 430, 261, 4936, 422, 6783, 3779, 18, 39, 13, 288, 1082, 202, 2871, 9053, 5784, 3456, 21416, 272, 2377, 273, 394, 6425, 882, 5784, 3456, 21416, 5621, 1082, 202, 87, 2377, 18, 542, 559, 12, 45, 9053, 5784, 3456, 21416, 18, 88, 67, 9056, 1769, 1082, 202, 45, 559, 9424, 273, 394, 385, 8252, 559, 12, 87, 2377, 1769, 1082, 202, 45, 2083, 559, 445, 559, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1001, 24553, 67, 13569, 1435, 288, 202, 202, 759, 1866, 1149, 380, 202, 202, 2871, 9053, 5784, 3456, 21416, 19924, 55, 2377, 273, 394, 6425, 882, 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, 276, 67, 10248, 67, 3001, 67, 84, 273, 394, 385, 4926, 559, 12, 2704, 385, 16185, 559, 12, 1065, 81, 55, 2377, 10019, 202, 202, 71, 67, 10248, 67, 3001, 67, 84, 18, 542, 4926, 12, 2704, 6425, 882, 4926, 10663, 202, 202, 45, 559, 3283, 84, 67, 2 ]
"where ma.kind = ? and mo.conference = ? " +
"where ma.kind = ? and mo.conference = ? and mo.kind <> 3 " +
public MessageManager(Connection conn) throws SQLException { m_conn = conn; m_loadMessageStmt = m_conn.prepareStatement( "SELECT created, author, author_name, reply_to, thread, subject, body FROM messages WHERE id = ?"); m_loadMessageInConfStmt = m_conn.prepareStatement( "SELECT m.id, m.created, m.author, m.author_name, m.reply_to, m.thread, m.subject, m.body " + "FROM messages m, messageoccurrences mo " + "WHERE m.id = mo.message AND mo.conference = ? AND mo.localnum = ?"); m_loadMessageHeaderStmt = m_conn.prepareStatement( "SELECT created, author, author_name, reply_to, thread, subject FROM messages WHERE id = ?"); m_loadMessageOccurrenceStmt = m_conn.prepareStatement( "SELECT message, action_ts, kind, user, user_name FROM messages " + "WHERE conference = ? AND localNum = ?"); m_getNextNumStmt = m_conn.prepareStatement( "SELECT MAX(localnum) FROM messageoccurrences WHERE conference = ? FOR UPDATE"); m_addMessageStmt = m_conn.prepareStatement( "INSERT INTO messages(created, author, author_name, reply_to, subject, body) " + "VALUES(?, ?, ?, ?, ?, ?)"); m_addMessageSearchStmt = m_conn.prepareStatement( "REPLACE INTO messagesearch(id, subject, body) " + "VALUES(?, ?, ?)"); m_addMessageOccurrenceStmt = m_conn.prepareStatement( "INSERT INTO messageoccurrences(message, action_ts, kind, user, user_name, conference, localnum) " + "VALUES(?, ?, ?, ?, ?, ?, ?)"); m_updateConferenceLasttext = m_conn.prepareStatement( "UPDATE conferences SET lasttext=? WHERE id=?"); m_listOccurrencesStmt = m_conn.prepareStatement( "SELECT message, action_ts, kind, user, user_name, conference, localnum FROM messageoccurrences " + "WHERE message = ? ORDER BY action_ts"); m_getOccurrenceInConferenceStmt = m_conn.prepareStatement( "SELECT message, action_ts, kind, user, user_name, conference, localnum FROM messageoccurrences " + "WHERE conference = ? AND message = ?"); m_getFirstOccurrenceInMyConfsStmt = m_conn.prepareStatement( "SELECT mo.message, mo.action_ts, mo.kind, mo.user, mo.user_name, mo.conference, mo.localnum FROM messageoccurrences mo, memberships mbr " + "WHERE mbr.conference = mo.conference AND mbr.user = ? AND mo.message = ?"); m_getFirstOccurrenceStmt = m_conn.prepareStatement( "SELECT message, action_ts, kind, user, user_name, conference, localnum FROM messageoccurrences " + "WHERE message = ? ORDER BY action_ts LIMIT 1"); m_getGlobalIdStmt = m_conn.prepareStatement( "SELECT message FROM messageoccurrences WHERE conference = ? AND localnum = ?"); m_getRepliesStmt = m_conn.prepareStatement( "SELECT id, created, author, author_name, reply_to, thread, subject FROM messages " + "WHERE reply_to = ?"); m_getReplyIdsStmt = m_conn.prepareStatement( "SELECT id FROM messages WHERE reply_to = ?"); m_loadOccurrenceStmt = m_conn.prepareStatement( "SELECT message, action_ts, kind, user, conference, localnum FROM messageoccurrences " + "WHERE conference = ? AND localnum = ?"); m_getVisibleOccurrencesStmt = m_conn.prepareStatement( "SELECT o.message, o.action_ts, o.kind, o.user, o.user_name, o.conference, o.localnum " + "FROM messageoccurrences o, memberships m " + "WHERE o.conference = m.conference AND m.active = 1 AND m.user = ? AND o.message = ?"); m_getMessageAttributesStmt = m_conn.prepareStatement( "SELECT id, message, kind, created, value " + "FROM messageattributes " + "WHERE message = ? " + "order by created asc"); m_addMessageAttributeStmt = m_conn.prepareStatement( "INSERT INTO messageattributes (message, kind, created, value) " + "VALUES (?, ?, ?, ?)"); m_dropMessageAttributeStmt = m_conn.prepareStatement( "DELETE FROM messageattributes WHERE id = ? AND message = ?"); m_dropMessageOccurrenceStmt = m_conn.prepareStatement( "delete from messageoccurrences " + "where localnum = ? and conference = ?"); m_countMessageOccurrencesStmt = m_conn.prepareStatement( "select count(*) from messageoccurrences " + "where message = ?"); m_dropMessageStmt = m_conn.prepareStatement( "delete from messages " + "where id = ?"); m_dropMessageSearchStmt = m_conn.prepareStatement( "delete from messagesearch " + "where id = ?"); // Ooooh! There's room for optimization here :-) I suggest we optimize by moving to an // RDBMS that supports indexed views (not to mention stored procedures..) // m_getGlobalBySubjectStmt = m_conn.prepareStatement( "select message " + "from messageoccurrences as mo " + "join memberships as ms on mo.conference = ms.conference " + "join messages on mo.message = messages.id " + "where ms.user = ? and subject = ?"); m_getLocalBySubjectStmt = m_conn.prepareStatement( "select mo.localnum " + "from messageoccurrences mo, messages m " + "where m.id = mo.message and mo.conference = ? and m.subject = ?"); // To speed things up, a special version to just retrieve the local ID. // m_getLocalIdsInConfStmt = m_conn.prepareStatement( "select localnum from messageoccurrences where conference = ?"); m_dropConferenceStmt = m_conn.prepareStatement( "delete from conferences where id = ?"); m_findLastOccurrenceInConferenceWithAttrStmt = m_conn.prepareStatement( "select localnum " + "from messageoccurrences as mo " + "join messageattributes as ma on mo.message = ma.message " + "where ma.kind = ? and mo.conference = ? " + "order by mo.message desc " + "limit 1 offset 0"); m_getLatestMagicMessageStmt = m_conn.prepareStatement( "select m.id " + "from messages as m, messageattributes ma " + "where ma.kind = ? and ma.value = ? and ma.message = m.id " + "order by m.created desc " + "limit 1 offset 0"); m_searchMessagesLocally = m_conn.prepareStatement( "SELECT ms.id, mo.localnum, mo.user, m.author_name, ms.subject, m.reply_to " + "FROM messagesearch ms, messageoccurrences mo, messages m " + "WHERE ms.id = mo.message AND ms.id = m.id AND mo.conference = ? " + "AND MATCH(ms.subject, ms.body) AGAINST (? IN BOOLEAN MODE) " + "ORDER BY localnum DESC " + "LIMIT ? OFFSET ?"); // Selecting from messagesearch is a couple of 1000 times faster. InnoDB... // m_countStmt = m_conn.prepareStatement( "SELECT COUNT(*) FROM messagesearch"); m_grepMessagesLocally = m_conn.prepareStatement( "SELECT ms.id, mo.localnum, mo.user, m.author_name, ms.subject, m.reply_to " + "FROM messagesearch ms, messageoccurrences mo, messages m " + "WHERE ms.id = mo.message AND ms.id = m.id AND mo.conference = ? " + "AND (ms.subject LIKE ? OR ms.body LIKE ?) " + "ORDER BY localnum DESC " + "LIMIT ? OFFSET ?"); m_listAllMessagesLocally = m_conn.prepareStatement( "SELECT m.id, mo.localnum, mo.user, m.author_name, m.subject, m.reply_to " + "FROM messages m JOIN messageoccurrences mo " + "ON m.id = mo.message " + "WHERE mo.conference = ? " + "ORDER BY localnum DESC " + "LIMIT ? OFFSET ?"); m_listMessagesLocallyByAuthor = m_conn.prepareStatement( "SELECT m.id, mo.localnum, mo.user, m.author_name, m.subject, m.reply_to " + "FROM messages m JOIN messageoccurrences mo " + "ON m.id = mo.message " + "WHERE mo.conference = ? AND m.author = ? " + "ORDER BY localnum DESC " + "LIMIT ? OFFSET ?"); m_listMessagesGloballyByAuthor = m_conn.prepareStatement( "SELECT m.id, mo.localnum, mo.conference, n.fullname, n.visibility, mo.user, m.author_name, m.subject, m.reply_to " + "FROM messages m force index(msg_author_created), messageoccurrences mo, names n " + "WHERE m.id = mo.message AND n.id = mo.conference AND m.author = ? " + "ORDER BY m.created DESC " + "LIMIT ? OFFSET ?"); m_searchMessagesGlobally = m_conn.prepareStatement( "SELECT m.id, mo.localnum, mo.conference, n.fullname, n.visibility, mo.user, me.author_name, m.subject, me.reply_to " + "FROM messagesearch m, messages me, messageoccurrences mo, names n " + "WHERE m.id = mo.message AND n.id = mo.conference AND m.id = me.id " + "AND MATCH(m.subject, m.body) AGAINST (? IN BOOLEAN MODE) " + "ORDER BY mo.action_ts DESC " + "LIMIT ? OFFSET ?"); m_setThreadIdStmt = m_conn.prepareStatement( "UPDATE messages SET thread = ? WHERE id = ?"); m_selectByThreadStmt = m_conn.prepareStatement( "SELECT id FROM messages WHERE thread = ?"); m_countMessagesLocallyByAuthor = m_conn.prepareStatement( "SELECT COUNT(*) FROM messages m, messageoccurrences mo WHERE " + "mo.message = m.id AND mo.message = m.id AND mo.conference = ? AND m.author = ?"); m_countMessagesGloballyByAuthor = m_conn.prepareStatement( "SELECT COUNT(*) FROM messages m, messageoccurrences mo, memberships me WHERE " + "mo.message = m.id AND mo.message = m.id AND m.author = ? " + "AND me.user = ? AND me.conference = mo.conference"); m_countSearchMessagesGlobally = m_conn.prepareStatement( "SELECT COUNT(*) FROM messagesearch m, messageoccurrences mo, memberships me WHERE " + "mo.message = m.id AND mo.message = m.id " + "AND me.user = ? AND me.conference = mo.conference AND MATCH(m.subject, m.body) AGAINST (? IN BOOLEAN MODE)"); m_countSearchMessagesLocally = m_conn.prepareStatement( "SELECT COUNT(*) FROM messagesearch m, messageoccurrences mo WHERE " + "mo.message = m.id AND mo.message = m.id AND mo.conference = ? " + "AND MATCH(m.subject, m.body) AGAINST (? IN BOOLEAN MODE)"); m_countGrepMessagesLocally = m_conn.prepareStatement( "SELECT COUNT(*) FROM messagesearch m, messageoccurrences mo WHERE " + "mo.message = m.id AND mo.message = m.id AND mo.conference = ? " + "AND (m.subject LIKE ? OR m.body LIKE ?)"); m_countAllMessagesLocally = m_conn.prepareStatement( "SELECT COUNT(*) FROM messageoccurrences WHERE conference = ?"); m_listCommentsGloballyToAuthor = m_conn.prepareStatement( "SELECT m.id, mo.localnum, mo.conference, n.fullname, n.visibility, mo.user, m.author_name, m.subject, m.reply_to " + "FROM messages m, messages r, messageoccurrences mo, names n " + "WHERE m.reply_to = r.id AND m.id = mo.message AND n.id = mo.conference " + "AND r.author = ? AND r.created > ? " + "ORDER BY mo.action_ts DESC LIMIT ? OFFSET ?"); m_countCommentsGloballyToAuthor = m_conn.prepareStatement( "SELECT COUNT(*) FROM messages m, messages r, messageoccurrences mo, memberships me " + "WHERE m.reply_to = r.id AND mo.message = m.id AND mo.message = m.id AND r.author = ? " + "AND me.user = ? AND me.conference = mo.conference AND r.created > ?"); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/2a9e9fcd115a22fe2a14595bdccaf4d3a704fa4c/MessageManager.java/clean/kom/java/nu/rydin/kom/backend/data/MessageManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2350, 1318, 12, 1952, 1487, 13, 202, 15069, 6483, 202, 95, 202, 202, 81, 67, 4646, 273, 1487, 31, 202, 202, 81, 67, 945, 1079, 8952, 273, 312, 67, 4646, 18, 9366, 3406, 12, 1082, 202, 6, 4803, 2522, 16, 2869, 16, 2869, 67, 529, 16, 4332, 67, 869, 16, 2650, 16, 3221, 16, 1417, 4571, 2743, 4852, 612, 273, 692, 8863, 202, 202, 81, 67, 945, 1079, 382, 3976, 8952, 273, 312, 67, 4646, 18, 9366, 3406, 12, 1082, 202, 6, 4803, 312, 18, 350, 16, 312, 18, 4824, 16, 312, 18, 4161, 16, 312, 18, 4161, 67, 529, 16, 312, 18, 10629, 67, 869, 16, 312, 18, 5930, 16, 312, 18, 7857, 16, 312, 18, 3432, 315, 397, 1082, 202, 6, 11249, 2743, 312, 16, 883, 26635, 12228, 7344, 315, 397, 1082, 202, 6, 12299, 312, 18, 350, 273, 7344, 18, 2150, 4116, 7344, 18, 591, 1134, 273, 692, 4116, 7344, 18, 3729, 2107, 273, 692, 8863, 202, 202, 81, 67, 945, 24319, 8952, 273, 312, 67, 4646, 18, 9366, 3406, 12, 1082, 202, 6, 4803, 2522, 16, 2869, 16, 2869, 67, 529, 16, 4332, 67, 869, 16, 2650, 16, 3221, 4571, 2743, 4852, 612, 273, 692, 8863, 6862, 202, 81, 67, 945, 1079, 24267, 8952, 273, 312, 67, 4646, 18, 9366, 3406, 12, 1082, 202, 6, 4803, 883, 16, 1301, 67, 3428, 16, 3846, 16, 729, 16, 729, 67, 529, 4571, 2743, 315, 397, 1082, 202, 6, 12299, 356, 1134, 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, 225, 202, 482, 2350, 1318, 12, 1952, 1487, 13, 202, 15069, 6483, 202, 95, 202, 202, 81, 67, 4646, 273, 1487, 31, 202, 202, 81, 67, 945, 1079, 8952, 273, 312, 67, 4646, 18, 9366, 3406, 12, 1082, 202, 6, 4803, 2522, 16, 2869, 16, 2869, 67, 529, 16, 4332, 67, 869, 16, 2650, 16, 3221, 16, 1417, 4571, 2743, 4852, 612, 273, 692, 8863, 202, 202, 81, 67, 945, 1079, 382, 3976, 8952, 273, 312, 67, 4646, 18, 9366, 3406, 12, 1082, 202, 6, 4803, 312, 18, 350, 16, 312, 18, 4824, 16, 312, 18, 4161, 16, 312, 18, 4161, 67, 529, 16, 312, 18, 10629, 67, 869, 16, 312, 18, 5930, 16, 312, 18, 7857, 16, 312, 2 ]
al.sourceQueueBuffers(source.getInt(4*0), 4, Sys.getDirectBufferAddress(buffers));
al.sourceQueueBuffers(source.get(0), 4, Sys.getDirectBufferAddress(buffers));
protected void i_QueueTest() { int error; ByteBuffer source = ByteBuffer.allocateDirect(4); source.order(ByteOrder.nativeOrder()); int ch = -1; ByteBuffer tbuffers = ByteBuffer.allocateDirect(4*5); tbuffers.order(ByteOrder.nativeOrder()); ByteBuffer buffersremoved = ByteBuffer.allocateDirect(4*5); buffersremoved.order(ByteOrder.nativeOrder()); int bLooping; ByteBuffer BuffersInQueue = ByteBuffer.allocateDirect(4); BuffersInQueue.order(ByteOrder.nativeOrder()); ByteBuffer BuffersProcessed = ByteBuffer.allocateDirect(4); BuffersProcessed.order(ByteOrder.nativeOrder()); ByteBuffer source0Pos = ByteBuffer.allocateDirect(12); source0Pos.order(ByteOrder.nativeOrder()); source0Pos.putFloat(0.0f); source0Pos.putFloat(0.0f); source0Pos.putFloat(-2.0f); ByteBuffer source0Vel = ByteBuffer.allocateDirect(12); source0Vel.order(ByteOrder.nativeOrder()); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); ByteBuffer Buffer = ByteBuffer.allocateDirect(4); Buffer.order(ByteOrder.nativeOrder()); int i; // Clear Error Code al.getError(); al.genSources(1,Sys.getDirectBufferAddress(source)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alGenSources 1 : ", error); return; } al.sourcef(source.getInt(4*0),AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_PITCH : ", error); } al.sourcef(source.getInt(4*0),AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_GAIN : ", error); } al.sourcefv(source.getInt(4*0),AL.POSITION,Sys.getDirectBufferAddress(source0Pos)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_POSITION : ", error); } al.sourcefv(source.getInt(4*0),AL.VELOCITY,Sys.getDirectBufferAddress(source0Vel)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_VELOCITY : ", error); } al.sourcei(source.getInt(4*0),AL.LOOPING,AL.FALSE); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 0 AL_LOOPING false: ", error); } bLooping = AL.FALSE; System.out.print("Queue Test\n\n"); System.out.print("Press '1' to start playing source 0\n"); System.out.print("Press '2' to stop source 0\n"); System.out.print("Press '3' to toggle looping on source 0\n"); System.out.print("Press '4' to queue 4 buffers on source 0\n"); System.out.print("Press '5' to queue 1st buffer on source 0\n"); System.out.print("Press '6' to queue 2nd buffer on source 0\n"); System.out.print("Press '7' to queue 3rd buffer on source 0\n"); System.out.print("Press '8' to queue 4th buffer on source 0\n"); System.out.print("Press '9' to queue 5th buffer (Buffer 0) on source 0\n"); System.out.print("Press '0' to display stats\n"); System.out.print("Press 'A' to unqueue first Buffer\n"); System.out.print("Press 'B' to unqueue first 2 Buffers\n"); System.out.print("Press 'C' to unqueue first 3 Buffers\n"); System.out.print("Press 'D' to unqueue first 4 Buffers\n"); System.out.print("Press 'E' to unqueue first 5 Buffers\n"); System.out.print("Press 'F' to unqueue all buffers\n"); System.out.print("Press 'Q' to quit\n"); System.out.print("Source 0 not looping\n"); tbuffers.putInt(4*0, buffers.getInt(4*2)); tbuffers.putInt(4*1, buffers.getInt(4*3)); tbuffers.putInt(4*2, buffers.getInt(4*4)); tbuffers.putInt(4*3, buffers.getInt(4*5)); tbuffers.putInt(4*4, 0); do { try { ch = System.in.read(); } catch (IOException ioe) { } switch (ch) { case '1': al.sourcePlay(source.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 0 : ", error); break; case '2': al.sourceStop(source.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop source 0 : ", error); break; case '3': if (bLooping == AL.TRUE) { bLooping = AL.FALSE; System.out.print("Source 0 not looping\n"); } else { bLooping = AL.TRUE; System.out.print("Source 0 looping \n"); } al.sourcei(source.getInt(4*0), AL.LOOPING, bLooping); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcei AL_LOOPING : ", error); break; case '4': al.sourceQueueBuffers(source.getInt(4*0), 4, Sys.getDirectBufferAddress(buffers)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceQueueBuffers 4 : ", error); break; case '5': al.sourceQueueBuffers(source.getInt(4*0), 1, Sys.getDirectBufferAddress(buffers) + (4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceQueueBuffers 1 : ", error); break; case '6': al.sourceQueueBuffers(source.getInt(4*0), 1, Sys.getDirectBufferAddress(buffers) + (4*1)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceQueueBuffers 1 : ", error); break; case '7': al.sourceQueueBuffers(source.getInt(4*0), 1, Sys.getDirectBufferAddress(buffers) + (4*2)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceQueueBuffers 1 : ", error); break; case '8': al.sourceQueueBuffers(source.getInt(4*0), 1, Sys.getDirectBufferAddress(buffers) + (4*3)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceQueueBuffers 1 : ", error); break; case '9': // Queue buffer 0 al.sourceQueueBuffers(source.getInt(4*0), 1, Sys.getDirectBufferAddress(buffers) + (4*4)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceQueueBuffers 1 (buffer 0) : ", error); break; case 'A': // Unqueue first Buffer buffersremoved.clear(); al.sourceUnqueueBuffers(source.getInt(4*0), 1, Sys.getDirectBufferAddress(buffersremoved)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourceUnqueueBuffers 1 : ", error); } else { if (buffersremoved.getInt(4*0) == buffers.getInt(4*0)) buffersremoved.putInt(4*0, 1); if (buffersremoved.getInt(4*0) == buffers.getInt(4*1)) buffersremoved.putInt(4*0, 2); if (buffersremoved.getInt(4*0) == buffers.getInt(4*2)) buffersremoved.putInt(4*0, 3); if (buffersremoved.getInt(4*0) == buffers.getInt(4*3)) buffersremoved.putInt(4*0, 4); else buffersremoved.putInt(4*0, 0); System.out.print("\nRemoved Buffer " + buffersremoved.getInt(4*0) + " from queue\n"); } break; case 'B': // Unqueue first 2 Buffers buffersremoved.clear(); al.sourceUnqueueBuffers(source.getInt(4*0), 2, Sys.getDirectBufferAddress(buffersremoved)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourceUnqueueBuffers 2 : ", error); } else { for (i = 0; i < 2; i++) { if (buffersremoved.getInt(4*i) == buffers.getInt(4*0)) buffersremoved.putInt(4*i, 1); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*1)) buffersremoved.putInt(4*i, 2); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*2)) buffersremoved.putInt(4*i, 3); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*3)) buffersremoved.putInt(4*i, 4); else buffersremoved.putInt(4*i, 0); } System.out.print("\nRemoved Buffers " + buffersremoved.getInt(4*0) + " and " + buffersremoved.getInt(4*1) + " from queue\n"); } break; case 'C': // Unqueue first 3 Buffers buffersremoved.clear(); al.sourceUnqueueBuffers(source.getInt(0), 3, Sys.getDirectBufferAddress(buffersremoved)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourceUnqueueBuffers 3 : ", error); } else { for (i = 0; i < 2; i++) { if (buffersremoved.getInt(4*i) == buffers.getInt(4*0)) buffersremoved.putInt(4*i, 1); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*1)) buffersremoved.putInt(4*i, 2); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*2)) buffersremoved.putInt(4*i, 3); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*3)) buffersremoved.putInt(4*i, 4); else buffersremoved.putInt(4*i, 0); } System.out.print("\nRemoved Buffers " + buffersremoved.getInt(4*0) + ", " + buffersremoved.getInt(4*1) + " and " + buffersremoved.getInt(4*2) +" from queue\n"); } break; case 'D': // Unqueue first 4 Buffers buffersremoved.clear(); al.sourceUnqueueBuffers(source.getInt(4*0), 4, Sys.getDirectBufferAddress(buffersremoved)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourceUnqueueBuffers 1 : ", error); } else { for (i = 0; i < 2; i++) { if (buffersremoved.getInt(4*i) == buffers.getInt(4*0)) buffersremoved.putInt(4*i, 1); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*1)) buffersremoved.putInt(4*i, 2); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*2)) buffersremoved.putInt(4*i, 3); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*3)) buffersremoved.putInt(4*i, 4); else buffersremoved.putInt(4*i, 0); } System.out.print("\nRemoved Buffers " + buffersremoved.getInt(4*0) + ", " + buffersremoved.getInt(4*1) + ", " + buffersremoved.getInt(4*2) + "and " + buffersremoved.getInt(4*3) + " from queue\n"); } buffersremoved = null; break; case 'E': // Unqueue first 5 Buffers buffersremoved.clear(); al.sourceUnqueueBuffers(source.getInt(4*0), 5, Sys.getDirectBufferAddress(buffersremoved)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourceUnqueueBuffers 1 : ", error); } else { for (i = 0; i < 2; i++) { if (buffersremoved.getInt(4*i) == buffers.getInt(4*0)) buffersremoved.putInt(4*i, 1); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*1)) buffersremoved.putInt(4*i, 2); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*2)) buffersremoved.putInt(4*i, 3); else if (buffersremoved.getInt(4*i) == buffers.getInt(4*3)) buffersremoved.putInt(4*i, 4); else buffersremoved.putInt(4*i, 0); } System.out.print("\nRemoved Buffers " + buffersremoved.getInt(4*0) + ", " + buffersremoved.getInt(4*1) + ", " + buffersremoved.getInt(4*2) + ", " + buffersremoved.getInt(4*3) + "and " + buffersremoved.getInt(4*4) + " from queue\n"); } buffersremoved = null; break; case 'F': al.sourcei(source.getInt(4*0), AL.BUFFER, 0); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSource AL_BUFFER NULL : ", error); break; case '0': // Retrieve number of buffers in queue al.getSourcei(source.getInt(4*0), AL.BUFFERS_QUEUED, Sys.getDirectBufferAddress(BuffersInQueue)); // Retrieve number of processed buffers al.getSourcei(source.getInt(4*0), AL.BUFFERS_PROCESSED, Sys.getDirectBufferAddress(BuffersProcessed)); // Retrieve current buffer al.getSourcei(source.getInt(4*0), AL.BUFFER, Sys.getDirectBufferAddress(Buffer)); int address = Buffer.getInt(); if (address == buffers.getInt(4*0)) address = 1; else if (address == buffers.getInt(4*1)) address = 2; else if (address == buffers.getInt(4*2)) address = 3; else if (address == buffers.getInt(4*3)) address = 4; else address = 0; System.out.print("Current Buffer is " + address + ", " + BuffersInQueue.getInt() + " Buffers in queue, " + BuffersProcessed.getInt() + " Processed\n"); Buffer.clear(); BuffersProcessed.clear(); BuffersInQueue.clear(); break; } } while (ch != 'Q'); // Release resources al.sourceStop(source.getInt(4*0)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop : ", error); al.deleteSources(1, Sys.getDirectBufferAddress(source)); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alDeleteSources 1 : ", error); }
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/c18e8bd28afc8401f80a918520500157aa5f199d/ALTest.java/buggy/src/java/org/lwjgl/openal/test/ALTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 277, 67, 3183, 4709, 1435, 288, 3639, 509, 377, 555, 31, 3639, 7400, 1084, 273, 7400, 18, 16247, 5368, 12, 24, 1769, 3639, 1084, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 3639, 509, 377, 462, 273, 300, 21, 31, 3639, 7400, 8739, 3809, 414, 273, 7400, 18, 16247, 5368, 12, 24, 14, 25, 1769, 3639, 8739, 3809, 414, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 3639, 7400, 9664, 14923, 273, 7400, 18, 16247, 5368, 12, 24, 14, 25, 1769, 3639, 9664, 14923, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 3639, 509, 324, 6452, 310, 31, 7734, 7400, 605, 3809, 414, 382, 3183, 273, 7400, 18, 16247, 5368, 12, 24, 1769, 3639, 605, 3809, 414, 382, 3183, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 7734, 7400, 605, 3809, 414, 13533, 273, 7400, 18, 16247, 5368, 12, 24, 1769, 3639, 605, 3809, 414, 13533, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 7734, 7400, 1084, 20, 1616, 273, 7400, 18, 16247, 5368, 12, 2138, 1769, 3639, 1084, 20, 1616, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 3639, 1084, 20, 1616, 18, 458, 4723, 12, 20, 18, 20, 74, 1769, 3639, 1084, 20, 1616, 18, 458, 4723, 12, 20, 18, 20, 74, 1769, 3639, 1084, 20, 1616, 18, 458, 4723, 19236, 22, 18, 20, 74, 1769, 7734, 7400, 1084, 20, 58, 292, 273, 7400, 18, 16247, 5368, 12, 2138, 1769, 3639, 1084, 20, 58, 292, 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, 4750, 918, 277, 67, 3183, 4709, 1435, 288, 3639, 509, 377, 555, 31, 3639, 7400, 1084, 273, 7400, 18, 16247, 5368, 12, 24, 1769, 3639, 1084, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 3639, 509, 377, 462, 273, 300, 21, 31, 3639, 7400, 8739, 3809, 414, 273, 7400, 18, 16247, 5368, 12, 24, 14, 25, 1769, 3639, 8739, 3809, 414, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 3639, 7400, 9664, 14923, 273, 7400, 18, 16247, 5368, 12, 24, 14, 25, 1769, 3639, 9664, 14923, 18, 1019, 12, 3216, 2448, 18, 13635, 2448, 10663, 3639, 509, 324, 6452, 310, 31, 7734, 7400, 605, 3809, 414, 382, 3183, 273, 7400, 18, 16247, 5368, 12, 24, 1769, 2 ]
return TaskListImages.BOLD;
return TaskListColorsAndFonts.BOLD;
public Font getFont(Object element) { if (!(element instanceof ITaskListElement)) { return null; } ITask task = getCorrespondingTask((ITaskListElement) element); if (task instanceof AbstractRepositoryTask) { AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask)task; if (repositoryTask.isCurrentlySynchronizing()) { return TaskListImages.ITALIC; } } if (element instanceof ITaskContainer) { if (element instanceof AbstractRepositoryQuery) { if (((AbstractRepositoryQuery)element).isCurrentlySynchronizing()) { return TaskListImages.ITALIC; } } for (ITask child : ((ITaskContainer) element).getChildren()) { if (child.isActive()) return TaskListImages.BOLD; } } if (task != null) { if (task.isActive()) return TaskListImages.BOLD; for (ITask child : task.getChildren()) { if (child.isActive()) return TaskListImages.BOLD; } } return null; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f51950c8eb4581bb69c0bd0e3301796b9938456c/TaskElementLabelProvider.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskElementLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 10063, 18776, 12, 921, 930, 13, 288, 202, 202, 430, 16051, 12, 2956, 1276, 467, 2174, 682, 1046, 3719, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 1285, 835, 1562, 273, 18399, 17863, 310, 2174, 12443, 1285, 835, 682, 1046, 13, 930, 1769, 202, 202, 430, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 1082, 202, 7469, 3305, 2174, 3352, 2174, 273, 261, 7469, 3305, 2174, 13, 4146, 31, 1082, 202, 430, 261, 9071, 2174, 18, 291, 3935, 715, 19298, 6894, 10756, 288, 9506, 202, 2463, 3837, 682, 8946, 18, 1285, 1013, 2871, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 2956, 1276, 467, 2174, 2170, 13, 288, 1082, 202, 430, 261, 2956, 1276, 4115, 3305, 1138, 13, 288, 9506, 202, 430, 261, 12443, 7469, 3305, 1138, 13, 2956, 2934, 291, 3935, 715, 19298, 6894, 10756, 288, 6862, 202, 2463, 3837, 682, 8946, 18, 1285, 1013, 2871, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 1884, 261, 1285, 835, 1151, 294, 14015, 1285, 835, 2170, 13, 930, 2934, 588, 4212, 10756, 288, 9506, 202, 430, 261, 3624, 18, 291, 3896, 10756, 6862, 202, 2463, 3837, 682, 8946, 18, 38, 11846, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 4146, 480, 446, 13, 288, 1082, 202, 430, 261, 4146, 18, 291, 3896, 10756, 9506, 202, 2463, 3837, 682, 8946, 18, 38, 11846, 31, 1082, 202, 1884, 261, 1285, 835, 1151, 294, 1562, 18, 588, 4212, 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, 10063, 18776, 12, 921, 930, 13, 288, 202, 202, 430, 16051, 12, 2956, 1276, 467, 2174, 682, 1046, 3719, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 1285, 835, 1562, 273, 18399, 17863, 310, 2174, 12443, 1285, 835, 682, 1046, 13, 930, 1769, 202, 202, 430, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 1082, 202, 7469, 3305, 2174, 3352, 2174, 273, 261, 7469, 3305, 2174, 13, 4146, 31, 1082, 202, 430, 261, 9071, 2174, 18, 291, 3935, 715, 19298, 6894, 10756, 288, 9506, 202, 2463, 3837, 682, 8946, 18, 1285, 1013, 2871, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 2956, 1276, 467, 2174, 2170, 13, 288, 1082, 202, 2 ]
_cnt165++;
_cnt170++;
public final void buffercomparestate(AST _t) throws RecognitionException { AST buffercomparestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t158 = _t; AST tmp728_AST_in = (AST)_t; match(_t,BUFFERCOMPARE); _t = _t.getFirstChild(); tbl(_t,CQ.REF); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t160 = _t; AST tmp729_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop162: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop162; } } while (true); } _t = __t160; _t = _t.getNextSibling(); break; } case USING: { AST __t163 = _t; AST tmp730_AST_in = (AST)_t; match(_t,USING); _t = _t.getFirstChild(); { int _cnt165=0; _loop165: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.REF); _t = _retTree; } else { if ( _cnt165>=1 ) { break _loop165; } else {throw new NoViableAltException(_t);} } _cnt165++; } while (true); } _t = __t163; _t = _t.getNextSibling(); break; } case TO: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp731_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); tbl(_t,CQ.REF); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CASESENSITIVE: { AST tmp732_AST_in = (AST)_t; match(_t,CASESENSITIVE); _t = _t.getNextSibling(); break; } case BINARY: { AST tmp733_AST_in = (AST)_t; match(_t,BINARY); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case SAVE: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SAVE: { AST __t168 = _t; AST tmp734_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RESULT: { AST __t170 = _t; AST tmp735_AST_in = (AST)_t; match(_t,RESULT); _t = _t.getFirstChild(); AST tmp736_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); _t = __t170; _t = _t.getNextSibling(); break; } case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } fld(_t,CQ.UPDATING); _t = _retTree; _t = __t168; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXPLICIT: { AST tmp737_AST_in = (AST)_t; match(_t,EXPLICIT); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp738_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp739_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } block_colon(_t); _t = _retTree; AST __t174 = _t; AST tmp740_AST_in = (AST)_t; match(_t,Code_block); _t = _t.getFirstChild(); { _loop177: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WHEN)) { AST __t176 = _t; AST tmp741_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp742_AST_in = (AST)_t; match(_t,THEN); _t = _t.getNextSibling(); blockorstate(_t); _t = _retTree; _t = __t176; _t = _t.getNextSibling(); } else { break _loop177; } } while (true); } _t = __t174; _t = _t.getNextSibling(); AST __t178 = _t; AST tmp743_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp744_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t178; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOLOBS: { AST tmp745_AST_in = (AST)_t; match(_t,NOLOBS); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp746_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t158; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1613, 9877, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1613, 9877, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 25984, 273, 389, 88, 31, 202, 202, 9053, 1853, 27, 6030, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 11302, 4208, 11713, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 16187, 24899, 88, 16, 39, 53, 18, 10771, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 5675, 14514, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 16874, 273, 389, 88, 31, 1082, 202, 9053, 1853, 27, 5540, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 2294, 14514, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 95, 1082, 202, 67, 6498, 30042, 30, 1082, 202, 2896, 288, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 9506, 202, 430, 14015, 67, 88, 18, 588, 559, 1435, 631, 974, 67, 1734, 3719, 288, 6862, 202, 19794, 21, 24899, 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, 1613, 9877, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1613, 9877, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 25984, 273, 389, 88, 31, 202, 202, 9053, 1853, 27, 6030, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 11302, 4208, 11713, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 16187, 24899, 88, 16, 39, 53, 18, 10771, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 430, 261, 2 ]
cat1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "First Category"); cat1.setIsCategory(true);
cat1 = new Category("First Category");
public void setUp() throws PartInitException{ MylarTasksPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("org.eclipse.mylar.tasks.ui.views.TaskListView"); File file = new File("foo" + MylarTasksPlugin.FILE_EXTENSION); TaskListManager manager = new TaskListManager(file); tlist = manager.createNewTaskList(); cat1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "First Category"); cat1.setIsCategory(true); cat1task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 1"); cat1task1.setPriority("P1"); cat1task1.setCompleted(true); cat1.addSubtask(cat1task1); cat1task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 2"); cat1task2.setPriority("P2"); cat1.addSubtask(cat1task2); cat1task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 3"); cat1task3.setPriority("P3"); cat1task3.setCompleted(true); cat1.addSubtask(cat1task3); cat1task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 4"); cat1task4.setPriority("P4"); cat1.addSubtask(cat1task4); cat1task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 5"); cat1task5.setPriority("P5"); cat1task5.setCompleted(true); cat1.addSubtask(cat1task5); tlist.addRootTask(cat1); assertEquals(cat1.getChildren().size(), 5); cat2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "Second Category"); cat2.setIsCategory(true); cat2task1 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 1"); cat2task1.setPriority("P1"); cat2.addSubtask(cat2task1); cat2task2 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 2"); cat2task2.setPriority("P2"); cat2task2.setCompleted(true); cat2.addSubtask(cat2task2); cat2task3 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 3"); cat2task3.setPriority("P3"); cat2.addSubtask(cat2task3); cat2task4 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 4"); cat2task4.setPriority("P4"); cat2task4.setCompleted(true); cat2.addSubtask(cat2task4); cat2task5 = new Task(MylarTasksPlugin.getTaskListManager().genUniqueTaskId(), "sub task 5"); cat2task5.setPriority("P5"); cat2.addSubtask(cat2task5); tlist.addRootTask(cat2); manager.saveTaskList(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bfd6c75025dd41ab813783fc0743c23cfe1c2fc2/TaskListUiTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListUiTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24292, 1435, 1216, 6393, 2570, 503, 95, 9506, 202, 12062, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 7675, 4500, 1767, 2932, 3341, 18, 20416, 18, 4811, 7901, 18, 9416, 18, 4881, 18, 7061, 18, 2174, 682, 1767, 8863, 202, 202, 812, 585, 273, 394, 1387, 2932, 11351, 6, 397, 8005, 7901, 6685, 3773, 18, 3776, 67, 12796, 1769, 3639, 3837, 682, 1318, 3301, 273, 394, 3837, 682, 1318, 12, 768, 1769, 7734, 268, 1098, 273, 3301, 18, 2640, 1908, 2174, 682, 5621, 7734, 6573, 21, 273, 394, 3837, 12, 12062, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 4507, 6303, 30182, 9334, 315, 3759, 9856, 8863, 3639, 6573, 21, 18, 542, 2520, 4457, 12, 3767, 1769, 7734, 6573, 21, 4146, 21, 273, 394, 3837, 12, 12062, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 4507, 6303, 30182, 9334, 315, 1717, 1562, 404, 8863, 3639, 6573, 21, 4146, 21, 18, 542, 8183, 2932, 52, 21, 8863, 3639, 6573, 21, 4146, 21, 18, 542, 9556, 12, 3767, 1769, 202, 202, 2574, 21, 18, 1289, 1676, 4146, 12, 2574, 21, 4146, 21, 1769, 9506, 202, 2574, 21, 4146, 22, 273, 394, 3837, 12, 12062, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 4507, 6303, 30182, 9334, 315, 1717, 1562, 576, 8863, 202, 202, 2574, 21, 4146, 22, 18, 542, 8183, 2932, 52, 22, 8863, 202, 202, 2574, 21, 18, 1289, 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, 24292, 1435, 1216, 6393, 2570, 503, 95, 9506, 202, 12062, 7901, 6685, 3773, 18, 588, 1868, 7675, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 3896, 1964, 7675, 4500, 1767, 2932, 3341, 18, 20416, 18, 4811, 7901, 18, 9416, 18, 4881, 18, 7061, 18, 2174, 682, 1767, 8863, 202, 202, 812, 585, 273, 394, 1387, 2932, 11351, 6, 397, 8005, 7901, 6685, 3773, 18, 3776, 67, 12796, 1769, 3639, 3837, 682, 1318, 3301, 273, 394, 3837, 682, 1318, 12, 768, 1769, 7734, 268, 1098, 273, 3301, 18, 2640, 1908, 2174, 682, 5621, 7734, 6573, 21, 273, 394, 3837, 12, 12062, 7901, 6685, 3773, 18, 588, 2174, 682, 1318, 7675, 4507, 6303, 30182, 2 ]
public org.quickfix.field.UnderlyingProduct getUnderlyingProduct() throws FieldNotFound { org.quickfix.field.UnderlyingProduct value = new org.quickfix.field.UnderlyingProduct();
public quickfix.field.UnderlyingProduct getUnderlyingProduct() throws FieldNotFound { quickfix.field.UnderlyingProduct value = new quickfix.field.UnderlyingProduct();
public org.quickfix.field.UnderlyingProduct getUnderlyingProduct() throws FieldNotFound { org.quickfix.field.UnderlyingProduct value = new org.quickfix.field.UnderlyingProduct(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RFQRequest.java/buggy/src/java/src/quickfix/fix44/RFQRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4133, 10833, 765, 6291, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4133, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4133, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4133, 10833, 765, 6291, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4133, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4133, 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 ]
} catch (Exception e) { System.out.println(e); return; } }
} catch (Throwable e) { e.printStackTrace(); log.error("Could not load TempleList", e); return; } }
private void loadListFromFile() { System.out.println("Loading TempleList..."); Mapping mapping = new Mapping(); try { // 1. Load the mapping information from the file mapping.loadMapping( NSBundle.mainBundle().resourcePath()+"/temple-mapping.xml" ); // 2. Unmarshal the data Unmarshaller unmar = new Unmarshaller(mapping); TempleXML tempList = (TempleXML)unmar.unmarshal(new InputSource(new FileReader(NSBundle.mainBundle().resourcePath()+"/TempleList.xml")));// instance = (TempleList)unmar.unmarshal(new InputSource(new FileReader(NSBundle.mainBundle().resourcePath()+"/TempleList.xml"))); setTempleList(tempList.getTempleList()); // 3. Do some processing on the data // 4. marshal the data with the total price back and print the XML in the console// Marshaller marshaller = new Marshaller(new OutputStreamWriter(System.out));// marshaller.setMapping(mapping);// marshaller.marshal(order); } catch (Exception e) { System.out.println(e); return; } }
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/7b30da2f47cbda6e16406770c133332adb1b4079/TempleList.java/clean/MacPAF/src/com/redbugz/macpaf/TempleList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 682, 13087, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 10515, 3955, 1802, 682, 7070, 1769, 3639, 9408, 1377, 2874, 273, 394, 9408, 5621, 3639, 775, 288, 5411, 368, 404, 18, 4444, 326, 2874, 1779, 628, 326, 585, 5411, 2874, 18, 945, 3233, 12, 11472, 3405, 18, 5254, 3405, 7675, 3146, 743, 1435, 9078, 19, 874, 1802, 17, 6770, 18, 2902, 6, 11272, 5411, 368, 576, 18, 3814, 326, 501, 5411, 1351, 27296, 640, 3684, 273, 394, 1351, 27296, 12, 6770, 1769, 6647, 3955, 1802, 4201, 1906, 682, 273, 261, 1837, 1802, 4201, 13, 318, 3684, 18, 318, 3108, 12, 2704, 23699, 12, 2704, 23010, 12, 3156, 3405, 18, 5254, 3405, 7675, 3146, 743, 1435, 9078, 19, 1837, 1802, 682, 18, 2902, 6, 3719, 1769, 759, 6647, 791, 273, 261, 1837, 1802, 682, 13, 318, 3684, 18, 318, 3108, 12, 2704, 23699, 12, 2704, 23010, 12, 3156, 3405, 18, 5254, 3405, 7675, 3146, 743, 1435, 9078, 19, 1837, 1802, 682, 18, 2902, 6, 3719, 1769, 5411, 444, 1837, 1802, 682, 12, 5814, 682, 18, 588, 1837, 1802, 682, 10663, 5411, 368, 890, 18, 2256, 2690, 4929, 603, 326, 501, 5411, 368, 1059, 18, 10893, 326, 501, 598, 326, 2078, 6205, 1473, 471, 1172, 326, 3167, 316, 326, 2983, 759, 5411, 26026, 264, 19927, 273, 394, 26026, 264, 12, 2704, 24248, 12, 3163, 18, 659, 10019, 759, 5411, 19927, 18, 542, 3233, 12, 6770, 1769, 759, 5411, 19927, 18, 3108, 12, 1019, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 682, 13087, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 10515, 3955, 1802, 682, 7070, 1769, 3639, 9408, 1377, 2874, 273, 394, 9408, 5621, 3639, 775, 288, 5411, 368, 404, 18, 4444, 326, 2874, 1779, 628, 326, 585, 5411, 2874, 18, 945, 3233, 12, 11472, 3405, 18, 5254, 3405, 7675, 3146, 743, 1435, 9078, 19, 874, 1802, 17, 6770, 18, 2902, 6, 11272, 5411, 368, 576, 18, 3814, 326, 501, 5411, 1351, 27296, 640, 3684, 273, 394, 1351, 27296, 12, 6770, 1769, 6647, 3955, 1802, 4201, 1906, 682, 273, 261, 1837, 1802, 4201, 13, 318, 3684, 18, 318, 3108, 12, 2704, 23699, 12, 2704, 23010, 12, 3156, 3405, 18, 5254, 3405, 7675, 3146, 743, 2 ]
finally { buffer.writeUnlock(); } foldStructureChanged();
else expandFolds((int)(digit - '1') + 1);
public void expandFolds(int foldLevel) { try { buffer.writeLock(); // so that getFoldLevel() calling fireFoldLevelsChanged() // won't break buffer._setVirtualLineCount(index,buffer.getLineCount()); int newVirtualLineCount = 0; foldLevel = (foldLevel - 1) * buffer.getIndentSize() + 1; /* this ensures that the first line is always visible */ boolean seenVisibleLine = false; for(int i = 0; i < buffer.getLineCount(); i++) { if(!seenVisibleLine || buffer.getFoldLevel(i) < foldLevel) { seenVisibleLine = true; buffer._setLineVisible(i,index,true); newVirtualLineCount++; } else buffer._setLineVisible(i,index,false); } buffer._setVirtualLineCount(index,newVirtualLineCount); } finally { buffer.writeUnlock(); } foldStructureChanged(); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/1929546459c038f210825297b4877525012561b7/FoldVisibilityManager.java/buggy/org/gjt/sp/jedit/textarea/FoldVisibilityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4542, 15592, 87, 12, 474, 11590, 2355, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4106, 18, 2626, 2531, 5621, 1082, 202, 759, 1427, 716, 2812, 1673, 2355, 1435, 4440, 4452, 15592, 12240, 5033, 1435, 1082, 202, 759, 8462, 1404, 898, 1082, 202, 4106, 6315, 542, 6466, 1670, 1380, 12, 1615, 16, 4106, 18, 588, 1670, 1380, 10663, 1082, 202, 474, 394, 6466, 1670, 1380, 273, 374, 31, 1082, 202, 16007, 2355, 273, 261, 16007, 2355, 300, 404, 13, 380, 1613, 18, 588, 7790, 1225, 1435, 397, 404, 31, 1082, 202, 20308, 333, 11932, 716, 326, 1122, 980, 353, 3712, 6021, 1195, 1082, 202, 6494, 5881, 6207, 1670, 273, 629, 31, 1082, 202, 1884, 12, 474, 277, 273, 374, 31, 277, 411, 1613, 18, 588, 1670, 1380, 5621, 277, 27245, 1082, 202, 95, 9506, 202, 430, 12, 5, 15156, 6207, 1670, 747, 1613, 18, 588, 15592, 2355, 12, 77, 13, 411, 11590, 2355, 13, 9506, 202, 95, 6862, 202, 15156, 6207, 1670, 273, 638, 31, 6862, 202, 4106, 6315, 542, 1670, 6207, 12, 77, 16, 1615, 16, 3767, 1769, 6862, 202, 2704, 6466, 1670, 1380, 9904, 31, 9506, 202, 97, 9506, 202, 12107, 6862, 202, 4106, 6315, 542, 1670, 6207, 12, 77, 16, 1615, 16, 5743, 1769, 1082, 202, 97, 1082, 202, 4106, 6315, 542, 6466, 1670, 1380, 12, 1615, 16, 2704, 6466, 1670, 1380, 1769, 202, 202, 97, 202, 202, 23417, 202, 202, 95, 1082, 202, 4106, 18, 2626, 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, 4542, 15592, 87, 12, 474, 11590, 2355, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 4106, 18, 2626, 2531, 5621, 1082, 202, 759, 1427, 716, 2812, 1673, 2355, 1435, 4440, 4452, 15592, 12240, 5033, 1435, 1082, 202, 759, 8462, 1404, 898, 1082, 202, 4106, 6315, 542, 6466, 1670, 1380, 12, 1615, 16, 4106, 18, 588, 1670, 1380, 10663, 1082, 202, 474, 394, 6466, 1670, 1380, 273, 374, 31, 1082, 202, 16007, 2355, 273, 261, 16007, 2355, 300, 404, 13, 380, 1613, 18, 588, 7790, 1225, 1435, 397, 404, 31, 1082, 202, 20308, 333, 11932, 716, 326, 1122, 980, 353, 3712, 6021, 1195, 1082, 202, 6494, 5881, 6207, 1670, 273, 629, 31, 1082, 2 ]