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 |
|---|---|---|---|---|---|---|
return addr2line.getLineNumber(getAddress() + offset); | return addr2line.getLineNumber(getAddress().add(BigInteger.valueOf(offset))); | public int getLineNumber(long offset) { int line = -1; Addr2line addr2line = ((SOMBinaryObject)binary).getAddr2line(true); if (addr2line != null) { try { return addr2line.getLineNumber(getAddress() + offset); } catch (IOException e) { // ignore } } return line; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9e051b52c2a88d5d7240aefaae2ee8e5109c72c6/SomSymbol.java/clean/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/som/parser/SomSymbol.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
26089,
12,
5748,
1384,
13,
288,
202,
202,
474,
980,
273,
300,
21,
31,
202,
202,
3178,
22,
1369,
3091,
22,
1369,
273,
14015,
55,
1872,
5905,
921,
13,
8578,
2934,
588,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
26089,
12,
5748,
1384,
13,
288,
202,
202,
474,
980,
273,
300,
21,
31,
202,
202,
3178,
22,
1369,
3091,
22,
1369,
273,
14015,
55,
1872,
5905,
921,
13,
8578,
2934,
588,
31... |
protected boolean protocolConnect(String host, int port, String user, String password) throws MessagingException { if (nntp != null) return true; // Already connected. if (host == null) { // #### better name? host = session.getProperty("mail.default_nntp_server"); if (host == null || host == "") { // #### pop up a dialog box instead? host = "news"; } } try { loadNewsRC(host); } catch (IOException e) { throw new MessagingException("loading newsrc file", e); } nntp = new NNTPConnection(); try { boolean status = nntp.connect(host, port, user, password); if (!status) return false; } catch (UnknownHostException e) { // This sucks, Beavis! throw new MessagingException("Unknown host", e); } catch (IOException e) { throw new MessagingException("I/O Error", e); } if (!newsrc.file().exists()) { // #### subscribe to the server's default groups } notifyStoreListeners(StoreEvent.NOTICE, "opened"); // #### ???// notifyConnectionListeners(ConnectionEvent.OPENED); return true; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/142ac2d2574885f73cb7b993d3684a66a2343069/NewsStore.java/buggy/grendel/sources/grendel/storage/NewsStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
1771,
5215,
12,
780,
1479,
16,
4766,
565,
509,
1756,
16,
4766,
565,
514,
729,
16,
4766,
565,
514,
2201,
13,
565,
1216,
23794,
503,
288,
565,
309,
261,
82,
496,
84,
480,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
1771,
5215,
12,
780,
1479,
16,
4766,
565,
509,
1756,
16,
4766,
565,
514,
729,
16,
4766,
565,
514,
2201,
13,
565,
1216,
23794,
503,
288,
565,
309,
261,
82,
496,
84,
480,
44... | ||
public void classDefinition() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:126:17: ( 'class' IDENT superClassClause implementsClause classBlock ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:126:17: 'class' IDENT superClassClause implementsClause classBlock { match(input,89,FOLLOW_89_in_classDefinition356); match(input,IDENT,FOLLOW_IDENT_in_classDefinition358); following.push(FOLLOW_superClassClause_in_classDefinition365); superClassClause(); following.pop(); following.push(FOLLOW_implementsClause_in_classDefinition372); implementsClause(); following.pop(); following.push(FOLLOW_classBlock_in_classDefinition379); classBlock(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27494,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
629... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27494,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
629... | ||
QueryableNode node = new QueryableNode(); node.nodeId = rs.getInt("nodeid"); node.nodeLabel = rs.getString("nodeLabel"); nodeList.add(node); | String ipAddr = rs.getString("ipAddr"); if (queryableIpAddrs.contains(ipAddr)) { QueryableNode node = new QueryableNode(); node.nodeId = rs.getInt("nodeid"); node.nodeLabel = rs.getString("nodeLabel"); nodeList.add(node); } | public QueryableNode[] getQueryableNodes() throws SQLException { QueryableNode[] nodes = new QueryableNode[0]; // Get all of the numeric directory names in the RRD directory; these // are the nodeids of the nodes that have performance data File[] intDirs = this.rrdDirectory.listFiles(INTERFACE_DIRECTORY_FILTER); if(intDirs != null && intDirs.length > 0) { ArrayList nodeList = new ArrayList(); //create the main stem of the select statement StringBuffer select = new StringBuffer("SELECT DISTINCT ipinterface.nodeid, node.nodeLabel FROM node, ipinterface WHERE node.nodetype != 'D' AND ipinterface.nodeid=node.nodeid AND ipinterface.ipaddr IN ('"); //add all but the last node id with a comma for( int i=0; i < intDirs.length - 1; i++ ) { select.append(intDirs[i].getName()); select.append("','"); } //add the last node id without a comma select.append(intDirs[intDirs.length - 1].getName()); //close the select select.append("') ORDER BY node.nodeLabel"); Connection conn = Vault.getDbConnection(); try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(select.toString()); while( rs.next() ) { QueryableNode node = new QueryableNode(); node.nodeId = rs.getInt("nodeid"); node.nodeLabel = rs.getString("nodeLabel"); nodeList.add(node); } rs.close(); stmt.close(); } finally { Vault.releaseDbConnection(conn); } nodes = (QueryableNode[])nodeList.toArray(new QueryableNode[nodeList.size()]); } return( nodes ); } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/8ae9a128f384d69afee48f5ecc618541a3876e89/ResponseTimeModel.java/clean/src/web/src/org/opennms/web/response/ResponseTimeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
429,
907,
8526,
6041,
429,
3205,
1435,
1216,
6483,
288,
3639,
2770,
429,
907,
8526,
2199,
273,
394,
2770,
429,
907,
63,
20,
15533,
3639,
368,
968,
777,
434,
326,
6389,
1867,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2770,
429,
907,
8526,
6041,
429,
3205,
1435,
1216,
6483,
288,
3639,
2770,
429,
907,
8526,
2199,
273,
394,
2770,
429,
907,
63,
20,
15533,
3639,
368,
968,
777,
434,
326,
6389,
1867,
... |
currentTask = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(event.getStructureHandle()); | currentTask = MylarTaskListPlugin.getTaskListManager().getTaskList() .getTask(event.getStructureHandle()); | public void parseInteractionEvent(InteractionEvent event) { if (event.getDelta().equals(MylarContextManager.ACTIVITY_ACTIVATED)) { if (!event.getStructureHandle().equals(MylarContextManager.ACTIVITY_HANDLE)) { if (isInactive) { isInactive = false; totalInactive = 0; startInactive = 0; } currentTask = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(event.getStructureHandle()); if (currentTask != null) { GregorianCalendar calendar = new GregorianCalendar(); calendar.setTime(event.getDate()); currentTaskStart = calendar; currentHandle = event.getStructureHandle(); } } else if (event.getStructureHandle().equals(MylarContextManager.ACTIVITY_HANDLE) && isInactive) { isInactive = false; totalInactive = event.getDate().getTime() - startInactive; } } else if (event.getDelta().equals(MylarContextManager.ACTIVITY_DEACTIVATED)) { if (!event.getStructureHandle().equals(MylarContextManager.ACTIVITY_HANDLE) && currentHandle.equals(event.getStructureHandle())) { GregorianCalendar calendarEnd = new GregorianCalendar(); calendarEnd.setTime(event.getDate()); calendarEnd.getTime(); currentTaskEnd = calendarEnd; if (isInactive) { isInactive = false; totalInactive = event.getDate().getTime() - startInactive; } for (DateRangeContainer week : dateRangeContainers) { if (week.includes(currentTaskStart)) { if (currentTask != null) { week.addTask(new DateRangeActivityDelegate(week, currentTask, currentTaskStart, currentTaskEnd, totalInactive)); if (taskActivityHistoryInitialized) { for (ITaskActivityListener listener : activityListeners) { listener.activityChanged(week); } } } } } currentTask = null; currentHandle = ""; totalInactive = 0; startInactive = 0; } else if (event.getStructureHandle().equals(MylarContextManager.ACTIVITY_HANDLE) && !isInactive) { isInactive = true; startInactive = event.getDate().getTime(); } } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/609efd06698359278496d3739d02c5352f294226/TaskListManager.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/TaskListManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1109,
17419,
1133,
12,
17419,
1133,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
588,
9242,
7675,
14963,
12,
12062,
7901,
1042,
1318,
18,
22271,
4107,
67,
22271,
6344,
3719,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
17419,
1133,
12,
17419,
1133,
871,
13,
288,
202,
202,
430,
261,
2575,
18,
588,
9242,
7675,
14963,
12,
12062,
7901,
1042,
1318,
18,
22271,
4107,
67,
22271,
6344,
3719,... |
public final Field getFields() | public final synchronized Field getFields() | public final Field getFields() { if ((flags & (ADD_FIELDS_DONE|EXISTING_CLASS)) == EXISTING_CLASS) addFields(); return fields; } | 40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/afd8cec736ed6f07a0ed1ee47bd7a34acb38ca87/ClassType.java/buggy/gnu/bytecode/ClassType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
3852,
2286,
12612,
1435,
225,
288,
565,
309,
14015,
7133,
473,
261,
8355,
67,
12683,
67,
26875,
96,
11838,
1360,
67,
5237,
3719,
422,
19052,
1360,
67,
5237,
13,
1377,
527,
2314... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
3852,
2286,
12612,
1435,
225,
288,
565,
309,
14015,
7133,
473,
261,
8355,
67,
12683,
67,
26875,
96,
11838,
1360,
67,
5237,
3719,
422,
19052,
1360,
67,
5237,
13,
1377,
527,
2314... |
public synchronized void killAndCleanup() throws IOException { | public synchronized void killAndCleanup(boolean wasFailure ) throws IOException { | public synchronized void killAndCleanup() throws IOException { if (runstate == TaskStatus.RUNNING) { wasKilled = true; runner.kill(); } } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/74bc43b8073ede3782a2b2561c09d7829f061901/TaskTracker.java/buggy/src/java/org/apache/hadoop/mapred/TaskTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3852,
918,
8673,
1876,
15007,
12,
6494,
1703,
5247,
262,
1216,
1860,
288,
5411,
309,
261,
2681,
2019,
422,
29628,
18,
29358,
13,
288,
7734,
1703,
47,
13148,
273,
638,
31,
7734,
8419... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3852,
918,
8673,
1876,
15007,
12,
6494,
1703,
5247,
262,
1216,
1860,
288,
5411,
309,
261,
2681,
2019,
422,
29628,
18,
29358,
13,
288,
7734,
1703,
47,
13148,
273,
638,
31,
7734,
8419... |
private static void removeProperty( Setting setting, String property ) { properties.remove( getPropertyIdentifier(setting, property) ); | public void removeProperty( String property ) { if( properties.containsKey( property ) ) { properties.remove( property ); Iterator i = this.listeners.iterator(); while( i.hasNext() == true ) { ISettingListener listener = (ISettingListener) i.next(); if( listener instanceof ISettingPropertyListener ) { ISettingPropertyListener propertyListener = (ISettingPropertyListener) listener; propertyListener.settingPropertyRemoved( this, property ); } } } | private static void removeProperty( Setting setting, String property ) { properties.remove( getPropertyIdentifier(setting, property) ); } | 807 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/807/6ac87e182b7296f808bbaf48a8f88cd3d316c1b9/Setting.java/buggy/eclox/src/eclox/doxyfiles/Setting.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1206,
1396,
12,
13274,
3637,
16,
514,
1272,
262,
288,
202,
202,
4738,
18,
4479,
12,
3911,
3004,
12,
8920,
16,
1272,
13,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1206,
1396,
12,
13274,
3637,
16,
514,
1272,
262,
288,
202,
202,
4738,
18,
4479,
12,
3911,
3004,
12,
8920,
16,
1272,
13,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
... |
" AND a.attrelid=ci.oid AND i.indisprimary "+ " AND ct.relname = '"+escapeQuotes(table)+"' "+ where+ | " AND a.attrelid=ci.oid AND i.indisprimary "; if (table != null && !"".equals(table)) { sql += " AND ct.relname = '"+escapeQuotes(table)+"' "; } sql += where+ | public java.sql.ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { String select; String from; String where = ""; if (connection.haveMinimumServerVersion("7.3")) { select = "SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, "; from = " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class ct, pg_catalog.pg_class ci, pg_catalog.pg_attribute a, pg_catalog.pg_index i "; where = " AND ct.relnamespace = n.oid "; if (schema != null && !"".equals(schema)) { where += " AND n.nspname = '"+escapeQuotes(schema)+"' "; } } else { select = "SELECT NULL AS TABLE_CAT, NULL AS TABLE_SCHEM, "; from = " FROM pg_class ct, pg_class ci, pg_attribute a, pg_index i "; } String sql = select+ " ct.relname AS TABLE_NAME, "+ " a.attname AS COLUMN_NAME, "+ " a.attnum AS KEY_SEQ, "+ " ci.relname AS PK_NAME "+ from+ " WHERE ct.oid=i.indrelid AND ci.oid=i.indexrelid "+ " AND a.attrelid=ci.oid AND i.indisprimary "+ " AND ct.relname = '"+escapeQuotes(table)+"' "+ where+ " ORDER BY table_name, pk_name, key_seq"; return connection.createStatement().executeQuery(sql); } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/90cf8d37cce7bf7ea0834d92cdbe90408fdd3487/AbstractJdbc1DatabaseMetaData.java/buggy/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
11398,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
13,
1216,
6483,
202,
95,
202,
202,
780,
2027,
31,
202,
202,
780,
628,
31,
202,
202,
780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
11398,
2396,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
13,
1216,
6483,
202,
95,
202,
202,
780,
2027,
31,
202,
202,
780,
628,
31,
202,
202,
780,... |
} ArrayList result = new ArrayList(specs.length); boolean osgiRequired = false; for (int i = 0; i < specs.length; i++) { if (Constants.getInternalSymbolicName().equals(specs[i].getValue())) osgiRequired = true; result.add(createRequiredBundle(specs[i])); } if (forceRequireOSGi && !osgiRequired) result.add(0, createRequireSystemBundle()); return (BundleSpecification[]) result.toArray(new BundleSpecification[result.size()]); | BundleSpecification[] result = new BundleSpecification[specs.length]; for (int i = 0; i < specs.length; i++) result[i] = createRequiredBundle(specs[i]); return result; | private static BundleSpecification[] createRequiredBundles(ManifestElement[] specs, boolean forceRequireOSGi) { if (specs == null) { if (forceRequireOSGi) return new BundleSpecification[] {createRequireSystemBundle()}; return null; } ArrayList result = new ArrayList(specs.length); boolean osgiRequired = false; for (int i = 0; i < specs.length; i++) { if (Constants.getInternalSymbolicName().equals(specs[i].getValue())) osgiRequired = true; result.add(createRequiredBundle(specs[i])); } if (forceRequireOSGi && !osgiRequired) result.add(0, createRequireSystemBundle()); return (BundleSpecification[]) result.toArray(new BundleSpecification[result.size()]); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/db4cd7f6ab7b35206274de63cfd9382ae98d4e5a/StateBuilder.java/buggy/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
8539,
8615,
8526,
752,
3705,
16151,
12,
9121,
1046,
8526,
10607,
16,
1250,
2944,
8115,
4618,
43,
77,
13,
288,
202,
202,
430,
261,
15115,
422,
446,
13,
288,
1082,
202,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
8539,
8615,
8526,
752,
3705,
16151,
12,
9121,
1046,
8526,
10607,
16,
1250,
2944,
8115,
4618,
43,
77,
13,
288,
202,
202,
430,
261,
15115,
422,
446,
13,
288,
1082,
202,
43... |
String[] args = { id }; String message = getMessage("msg.assn.create", args); | String message = getMessage1("msg.assn.create", id); | public static Object setName(Scriptable bound, Object value, Scriptable scope, String id) { if (bound == null) { // "newname = 7;", where 'newname' has not yet // been defined, creates a new property in the // global object. Find the global object by // walking up the scope chain. Scriptable next = scope; do { bound = next; next = bound.getParentScope(); } while (next != null); bound.put(id, bound, value); /* This code is causing immense performance problems in scripts that assign to the variables as a way of creating them. XXX need strict mode String[] args = { id }; String message = getMessage("msg.assn.create", args); Context.reportWarning(message); */ return value; } return setProp(bound, id, value, scope); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/45820b15541f8822cc8d463aa50caef2201b19b4/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
6788,
12,
3651,
429,
2489,
16,
1033,
460,
16,
4766,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
309,
261,
3653,
422,
446,
13,
288,
5411,
368,
315,
2704,
529,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
6788,
12,
3651,
429,
2489,
16,
1033,
460,
16,
4766,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
309,
261,
3653,
422,
446,
13,
288,
5411,
368,
315,
2704,
529,
273,
... |
if (!msg.equals("syntax error")) { out.indent(ErrIndent).print(msg); | if (!"syntax error".equals(msg)) { out.indent(ErrIndent).println(msg); | public void __printOn(TextWriter out) throws IOException { out.print(ErrPrefix); String msg = getMessage(); if (!msg.equals("syntax error")) { out.indent(ErrIndent).print(msg); } if (null != myOptLine) { out = out.indent(" "); out.lnPrint(myOptLine.replaceAll("\t", " ")); if (!myOptLine.endsWith("\n")) { out.println(); } out.print(StringHelper.multiply(" ", myStart)); out.print(StringHelper.multiply("^", myBound - myStart)); SourceSpan optSpan = optDamage().getOptSpan(); if (null != optSpan) { out.lnPrint("@ " + optSpan); } } } | 48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/31438388ca8b2d50dd072b526e08fd0a4f2c0103/SyntaxException.java/clean/src/jsrc/org/quasiliteral/syntax/SyntaxException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1001,
1188,
1398,
12,
1528,
2289,
596,
13,
1216,
1860,
288,
3639,
596,
18,
1188,
12,
2524,
2244,
1769,
3639,
514,
1234,
273,
2381,
5621,
3639,
309,
16051,
3576,
18,
14963,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1001,
1188,
1398,
12,
1528,
2289,
596,
13,
1216,
1860,
288,
3639,
596,
18,
1188,
12,
2524,
2244,
1769,
3639,
514,
1234,
273,
2381,
5621,
3639,
309,
16051,
3576,
18,
14963,
2932... |
return getAnimatedNumberAttribute(null, SVG_SLOPE_ATTRIBUTE, 1f); | return slope; | public SVGAnimatedNumber getSlope() { return getAnimatedNumberAttribute(null, SVG_SLOPE_ATTRIBUTE, 1f); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/6cd7a6a45cf75920b5149201c434a76d795b3b89/SVGOMComponentTransferFunctionElement.java/clean/sources/org/apache/batik/dom/svg/SVGOMComponentTransferFunctionElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
979,
17275,
1854,
1322,
12232,
1435,
288,
3639,
327,
17543,
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... | [
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11281,
979,
17275,
1854,
1322,
12232,
1435,
288,
3639,
327,
17543,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (loopType == LOOP_FOR && cond.getType() == Token.VOID) { | if (loopType == LOOP_FOR && cond.getType() == Token.EMPTY) { | private Node createLoop(int loopType, Node body, Node cond, Node init, Node incr, int lineno) { Node bodyTarget = new Node(Token.TARGET); Node condTarget = new Node(Token.TARGET); if (loopType == LOOP_FOR && cond.getType() == Token.VOID) { cond = new Node(Token.TRUE); } Node IFEQ = new Node(Token.IFEQ, (Node)cond); IFEQ.putProp(Node.TARGET_PROP, bodyTarget); Node breakTarget = new Node(Token.TARGET); Node result = new Node(Token.LOOP, lineno); result.addChildToBack(bodyTarget); result.addChildrenToBack(body); result.addChildToBack(condTarget); result.addChildToBack(IFEQ); result.addChildToBack(breakTarget); result.putProp(Node.BREAK_PROP, breakTarget); Node continueTarget = condTarget; if (loopType == LOOP_WHILE || loopType == LOOP_FOR) { // Just add a GOTO to the condition in the do..while Node GOTO = new Node(Token.GOTO); GOTO.putProp(Node.TARGET_PROP, condTarget); result.addChildToFront(GOTO); if (loopType == LOOP_FOR) { if (init.getType() != Token.VOID) { if (init.getType() != Token.VAR) { init = new Node(Token.POP, init); } result.addChildToFront(init); } Node incrTarget = new Node(Token.TARGET); result.addChildAfter(incrTarget, body); if (incr.getType() != Token.VOID) { incr = (Node)createUnary(Token.POP, incr); result.addChildAfter(incr, incrTarget); } continueTarget = incrTarget; } } result.putProp(Node.CONTINUE_PROP, continueTarget); return result; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/9fce703481e10b63f4a6c2a5b81c29dc4fac9dca/IRFactory.java/clean/js/rhino/src/org/mozilla/javascript/IRFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
752,
6452,
12,
474,
2798,
559,
16,
2029,
1417,
16,
2029,
6941,
16,
18701,
2029,
1208,
16,
2029,
17633,
16,
509,
7586,
13,
565,
288,
3639,
2029,
1417,
2326,
273,
394,
2029,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
752,
6452,
12,
474,
2798,
559,
16,
2029,
1417,
16,
2029,
6941,
16,
18701,
2029,
1208,
16,
2029,
17633,
16,
509,
7586,
13,
565,
288,
3639,
2029,
1417,
2326,
273,
394,
2029,
1... |
_cachedExpandedDescription = _poster.expand(_description, _offenders); | _cachedExpandedDescription = _poster.expand(_description, _offenders); | public String getDescription() { if (_cachedExpandedDescription == null) { _cachedExpandedDescription = _poster.expand(_description, _offenders); } return _cachedExpandedDescription; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/ToDoItem.java/buggy/src_new/org/argouml/cognitive/ToDoItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11056,
1435,
288,
202,
430,
261,
67,
7097,
17957,
3291,
422,
446,
13,
288,
202,
565,
389,
7097,
17957,
3291,
273,
389,
2767,
264,
18,
12320,
24899,
3384,
16,
389,
3674,
10130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11056,
1435,
288,
202,
430,
261,
67,
7097,
17957,
3291,
422,
446,
13,
288,
202,
565,
389,
7097,
17957,
3291,
273,
389,
2767,
264,
18,
12320,
24899,
3384,
16,
389,
3674,
10130,
... |
if(checkNewSelection){ | if (checkNewSelection) { | protected void checkOpenEditors(boolean checkNewSelection) { IEditorReference[] editorReferences = getSite().getPage().getEditorReferences(); if(editorReferences == null || editorReferences.length == 0){ deActivateView(); } else { if(checkNewSelection){ IEditorPart activeEditor = EclipseUtils.getActiveEditor(); if(activeEditor instanceof JavaEditor){ ITextSelection selection = EclipseUtils .getSelection(((JavaEditor) activeEditor) .getSelectionProvider()); handleSelectionChanged(activeEditor, selection); return; } } for (int i = 0; i < editorReferences.length; i++) { IEditorPart editor = editorReferences[i].getEditor(false); if(editor instanceof JavaEditor){ return; } } // here are all editors checked and no one is java editor deActivateView(); } } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/fd19bc74dba4e4810f9cc170df9e970cc2d06b7b/BytecodeOutlineView.java/buggy/eclipse/plugin/src/de/loskutov/bco/views/BytecodeOutlineView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
866,
3678,
4666,
1383,
12,
6494,
866,
1908,
6233,
13,
288,
3639,
467,
6946,
2404,
8526,
4858,
8221,
273,
11021,
7675,
588,
1964,
7675,
588,
6946,
8221,
5621,
3639,
309,
12,
917... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
3678,
4666,
1383,
12,
6494,
866,
1908,
6233,
13,
288,
3639,
467,
6946,
2404,
8526,
4858,
8221,
273,
11021,
7675,
588,
1964,
7675,
588,
6946,
8221,
5621,
3639,
309,
12,
917... |
modelWriter = new MavenXpp3Writer(); | public void initialize() throws Exception { modelWriter = new MavenXpp3Writer(); modelReader = new MavenXpp3Reader(); } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/74c818888a284151227cefd6817889782c9ace30/DefaultMavenProjectBuilder.java/clean/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
3639,
1216,
1185,
565,
288,
2868,
938,
2514,
273,
394,
17176,
60,
11858,
23,
2514,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
3639,
1216,
1185,
565,
288,
2868,
938,
2514,
273,
394,
17176,
60,
11858,
23,
2514,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
{ BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } | { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } | public void keyPressed(KeyEvent e) { TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); DefaultMutableTreeNode last = null; if (start != null) last = (DefaultMutableTreeNode) start.getLastPathComponent(); if (last != null) { // DOWN, KP_DOWN if (e.getKeyCode() == KeyEvent.VK_DOWN || e.getKeyCode() == KeyEvent.VK_KP_DOWN) { DefaultMutableTreeNode next = (DefaultMutableTreeNode) BasicTreeUI.this.getNextVisibleNode(last); if (next != null) { TreePath newPath = new TreePath(next.getPath()); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, newPath); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!next.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // UP, KP_UP else if (e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_KP_UP) { DefaultMutableTreeNode prev = (DefaultMutableTreeNode) BasicTreeUI.this.getPreviousVisibleNode(last); if (prev != null) { TreePath newPath = new TreePath(prev.getPath()); BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(prev.getPath())); if (e.isControlDown()) tree.setLeadSelectionPath(newPath); else if (!prev.isLeaf() && e.isShiftDown()) { BasicTreeUI.this.tree.expandPath(newPath); BasicTreeUI.this.tree.fireTreeExpanded(newPath); } } } // LEFT, KP_LEFT else if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_KP_LEFT) { TreePath path = new TreePath(last.getPath()); DefaultMutableTreeNode p = (DefaultMutableTreeNode) last .getParent(); if (!last.isLeaf() && BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else if (p != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(p.getPath())); } // RIGHT, KP_RIGHT else if (e.getKeyCode() == KeyEvent.VK_RIGHT || e.getKeyCode() == KeyEvent.VK_KP_RIGHT) { TreePath path = new TreePath(last.getPath()); if (!last.isLeaf() && BasicTreeUI.this.tree.isCollapsed(path)) { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } else { DefaultMutableTreeNode next = (DefaultMutableTreeNode) BasicTreeUI.this.getNextVisibleNode(last); if (next != null) BasicTreeUI.this.selectPath(BasicTreeUI.this.tree, new TreePath(next.getPath())); } } // Enter else if (e.getKeyCode() == KeyEvent.VK_ENTER) { TreePath path = new TreePath(last.getPath()); if (!last.isLeaf()) { if (BasicTreeUI.this.tree.isExpanded(path)) { BasicTreeUI.this.tree.collapsePath(path); BasicTreeUI.this.tree.fireTreeCollapsed(path); } else { BasicTreeUI.this.tree.expandPath(path); BasicTreeUI.this.tree.fireTreeExpanded(path); } } } } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f5ca4b7d89f5302860ae8a91105c0afc2b7b0e35/BasicTreeUI.java/buggy/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
498,
24624,
12,
653,
1133,
425,
13,
1377,
288,
540,
4902,
743,
787,
273,
7651,
2471,
5370,
18,
2211,
18,
3413,
18,
588,
9678,
6233,
743,
5621,
540,
2989,
19536,
12513,
1142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
498,
24624,
12,
653,
1133,
425,
13,
1377,
288,
540,
4902,
743,
787,
273,
7651,
2471,
5370,
18,
2211,
18,
3413,
18,
588,
9678,
6233,
743,
5621,
540,
2989,
19536,
12513,
1142,
... |
return labeledStatementsAreEquivalent( (PsiLabeledStatement) exp1, (PsiLabeledStatement)exp2); | final PsiLabeledStatement labeledStatement1 = (PsiLabeledStatement)statement1; final PsiLabeledStatement labeledStatement2 = (PsiLabeledStatement)statement2; return labeledStatementsAreEquivalent(labeledStatement1, labeledStatement2); | public static boolean statementsAreEquivalent(@Nullable PsiStatement exp1, @Nullable PsiStatement exp2){ if(exp1 == null && exp2 == null){ return true; } if(exp1 == null || exp2 == null){ return false; } final int type1 = getStatementType(exp1); final int type2 = getStatementType(exp2); if(type1 != type2){ return false; } switch(type1){ case ASSERT_STATEMENT: return assertStatementsAreEquivalent((PsiAssertStatement) exp1, (PsiAssertStatement) exp2); case BLOCK_STATEMENT: return blockStatementsAreEquivalent((PsiBlockStatement) exp1, (PsiBlockStatement) exp2); case BREAK_STATEMENT: return breakStatementsAreEquivalent((PsiBreakStatement) exp1, (PsiBreakStatement) exp2); case CONTINUE_STATEMENT: return continueStatementsAreEquivalent( (PsiContinueStatement) exp1, (PsiContinueStatement)exp2); case DECLARATION_STATEMENT: return declarationStatementsAreEquivalent( (PsiDeclarationStatement) exp1, (PsiDeclarationStatement)exp2); case DO_WHILE_STATEMENT: return doWhileStatementsAreEquivalent( (PsiDoWhileStatement) exp1, (PsiDoWhileStatement)exp2); case EMPTY_STATEMENT: return true; case EXPRESSION_LIST_STATEMENT: return expressionListStatementsAreEquivalent( (PsiExpressionListStatement) exp1, (PsiExpressionListStatement)exp2); case EXPRESSION_STATEMENT: return expressionStatementsAreEquivalent( (PsiExpressionStatement) exp1, (PsiExpressionStatement)exp2); case FOR_STATEMENT: return forStatementsAreEquivalent((PsiForStatement) exp1, (PsiForStatement) exp2); case FOR_EACH_STATEMENT: return forEachStatementsAreEquivalent( (PsiForeachStatement) exp1, (PsiForeachStatement)exp2); case IF_STATEMENT: return ifStatementsAreEquivalent((PsiIfStatement) exp1, (PsiIfStatement) exp2); case LABELED_STATEMENT: return labeledStatementsAreEquivalent( (PsiLabeledStatement) exp1, (PsiLabeledStatement)exp2); case RETURN_STATEMENT: return returnStatementsAreEquivalent((PsiReturnStatement) exp1, (PsiReturnStatement) exp2); case SWITCH_LABEL_STATEMENT: return switchLabelStatementsAreEquivalent( (PsiSwitchLabelStatement) exp1, (PsiSwitchLabelStatement)exp2); case SWITCH_STATEMENT: return switchStatementsAreEquivalent((PsiSwitchStatement) exp1, (PsiSwitchStatement) exp2); case SYNCHRONIZED_STATEMENT: return synchronizedStatementsAreEquivalent( (PsiSynchronizedStatement) exp1, (PsiSynchronizedStatement)exp2); case THROW_STATEMENT: return throwStatementsAreEquivalent((PsiThrowStatement) exp1, (PsiThrowStatement) exp2); case TRY_STATEMENT: return tryStatementsAreEquivalent((PsiTryStatement) exp1, (PsiTryStatement) exp2); case WHILE_STATEMENT: return whileStatementsAreEquivalent((PsiWhileStatement) exp1, (PsiWhileStatement) exp2); default: return false; } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/56cd877e6165ef40ca5d20020e04147ae7f2dee4/EquivalenceChecker.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/EquivalenceChecker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
6317,
4704,
22606,
26964,
13349,
453,
7722,
3406,
1329,
21,
16,
4766,
5375,
632,
13349,
453,
7722,
3406,
1329,
22,
15329,
3639,
309,
12,
2749,
21,
422,
446,
597,
1329,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
6317,
4704,
22606,
26964,
13349,
453,
7722,
3406,
1329,
21,
16,
4766,
5375,
632,
13349,
453,
7722,
3406,
1329,
22,
15329,
3639,
309,
12,
2749,
21,
422,
446,
597,
1329,
22... |
XSParticleDecl derivedParticle=types[j].fParticle; XSParticleDecl baseParticle= | XSParticleDecl derivedParticle=types[j].fParticle; XSParticleDecl baseParticle= | public static void fullSchemaChecking(XSGrammarBucket grammarBucket, SubstitutionGroupHandler SGHandler, CMBuilder cmBuilder, XMLErrorReporter errorReporter) { // get all grammars, and put all substitution group information // in the substitution group handler SchemaGrammar[] grammars = grammarBucket.getGrammars(); for (int i = grammars.length-1; i >= 0; i--) { SGHandler.addSubstitutionGroup(grammars[i].getSubstitutionGroups()); } XSParticleDecl fakeDerived = new XSParticleDecl(); XSParticleDecl fakeBase = new XSParticleDecl(); fakeDerived.fType = XSParticleDecl.PARTICLE_MODELGROUP; fakeBase.fType = XSParticleDecl.PARTICLE_MODELGROUP; // before worrying about complexTypes, let's get // groups redefined by restriction out of the way. for (int g = grammars.length-1; g >= 0; g--) { XSGroupDecl [] redefinedGroups = grammars[g].getRedefinedGroupDecls(); SimpleLocator [] rgLocators = grammars[g].getRGLocators(); for(int i=0; i<redefinedGroups.length; ) { XSGroupDecl derivedGrp = redefinedGroups[i++]; XSModelGroupImpl derivedMG = derivedGrp.fModelGroup; XSGroupDecl baseGrp = redefinedGroups[i++]; XSModelGroupImpl baseMG = baseGrp.fModelGroup; if(baseMG == null) { if(derivedMG != null) { // can't be a restriction! reportSchemaError(errorReporter, rgLocators[i/2-1], "src-redefine.6.2.2", new Object[]{derivedGrp.fName, "rcase-Recurse.2"}); } } else { fakeDerived.fValue = derivedMG; fakeBase.fValue = baseMG; try { particleValidRestriction(fakeDerived, SGHandler, fakeBase, SGHandler); } catch (XMLSchemaException e) { String key = e.getKey(); reportSchemaError(errorReporter, rgLocators[i/2-1], key, e.getArgs()); reportSchemaError(errorReporter, rgLocators[i/2-1], "src-redefine.6.2.2", new Object[]{derivedGrp.fName, key}); } } } } // for each complex type, check the 3 constraints. // types need to be checked XSComplexTypeDecl[] types; SimpleLocator [] ctLocators; // to hold the errors // REVISIT: do we want to report all errors? or just one? //XMLSchemaError1D errors = new XMLSchemaError1D(); // whether need to check this type again; // whether only do UPA checking boolean further, fullChecked; // if do all checkings, how many need to be checked again. int keepType; // i: grammar; j: type; k: error // for all grammars SymbolHash elemTable = new SymbolHash(); for (int i = grammars.length-1, j, k; i >= 0; i--) { // get whether to skip EDC, and types need to be checked keepType = 0; fullChecked = grammars[i].fFullChecked; types = grammars[i].getUncheckedComplexTypeDecls(); ctLocators = grammars[i].getUncheckedCTLocators(); // for each type for (j = types.length-1; j >= 0; j--) { // if we've already full-checked this grammar, then // skip the EDC constraint if (!fullChecked) { // 1. Element Decl Consistent if (types[j].fParticle!=null) { elemTable.clear(); try { checkElementDeclsConsistent(types[j], types[j].fParticle, elemTable, SGHandler); } catch (XMLSchemaException e) { reportSchemaError(errorReporter, ctLocators[j], e.getKey(), e.getArgs()); } } } // 2. Particle Derivation if (types[j].fBaseType != null && types[j].fBaseType != SchemaGrammar.fAnyType && types[j].fDerivedBy == XSConstants.DERIVATION_RESTRICTION && (types[j].fBaseType instanceof XSComplexTypeDecl)) { XSParticleDecl derivedParticle=types[j].fParticle; XSParticleDecl baseParticle= ((XSComplexTypeDecl)(types[j].fBaseType)).fParticle; if (derivedParticle==null && (!(baseParticle==null || baseParticle.emptiable()))) { reportSchemaError(errorReporter,ctLocators[j], "derivation-ok-restriction.5.3.2", new Object[]{types[j].fName, types[j].fBaseType.getName()}); } else if (derivedParticle!=null && baseParticle!=null) try { particleValidRestriction(types[j].fParticle, SGHandler, ((XSComplexTypeDecl)(types[j].fBaseType)).fParticle, SGHandler); } catch (XMLSchemaException e) { reportSchemaError(errorReporter, ctLocators[j], e.getKey(), e.getArgs()); reportSchemaError(errorReporter, ctLocators[j], "derivation-ok-restriction.5.4.2", new Object[]{types[j].fName}); } } // 3. UPA // get the content model and check UPA XSCMValidator cm = types[j].getContentModel(cmBuilder); further = false; if (cm != null) { try { further = cm.checkUniqueParticleAttribution(SGHandler); } catch (XMLSchemaException e) { reportSchemaError(errorReporter, ctLocators[j], e.getKey(), e.getArgs()); } } // now report all errors // REVISIT: do we want to report all errors? or just one? /*for (k = errors.getErrorCodeNum()-1; k >= 0; k--) { reportSchemaError(errorReporter, ctLocators[j], errors.getErrorCode(k), errors.getArgs(k)); }*/ // if we are doing all checkings, and this one needs further // checking, store it in the type array. if (!fullChecked && further) types[keepType++] = types[j]; // clear errors for the next type. // REVISIT: do we want to report all errors? or just one? //errors.clear(); } // we've done with the types in this grammar. if we are checking // all constraints, need to trim type array to a proper size: // only contain those need further checking. // and mark this grammar that it only needs UPA checking. if (!fullChecked) { grammars[i].setUncheckedTypeNum(keepType); grammars[i].fFullChecked = true; } } } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/101cb5d09fcd669e76704ea240165c5632fe36d8/XSConstraints.java/clean/src/org/apache/xerces/impl/xs/XSConstraints.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1983,
3078,
14294,
12,
60,
55,
18576,
4103,
6473,
4103,
16,
4766,
1850,
2592,
14278,
1114,
1503,
348,
43,
1503,
16,
4766,
1850,
15871,
1263,
5003,
1263,
16,
4766,
1850,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1983,
3078,
14294,
12,
60,
55,
18576,
4103,
6473,
4103,
16,
4766,
1850,
2592,
14278,
1114,
1503,
348,
43,
1503,
16,
4766,
1850,
15871,
1263,
5003,
1263,
16,
4766,
1850,
31... |
iCodeTop = addByte(Icode_SETPROTO, iCodeTop); | iCodeTop = addIcode(Icode_SETPROTO, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.itsFunctionType != FunctionNode.FUNCTION_STATEMENT) { // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addByte(Token.CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNext(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.VOID : case Token.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.COMMA : iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(Token.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(Token.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, Token.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(Token.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : { markTargetLabel(node, iCodeTop); break; } case Token.EQOP : case Token.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == Token.EQ) { op = Token.SHEQ; } else if (op == Token.NE) { op = Token.SHNE; } } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; break; } case Token.NEW : case Token.CALL : { int childCount = 0; String functionName = null; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (functionName == null) { int childType = child.getType(); if (childType == Token.NAME || childType == Token.GETPROP) { functionName = lastAddString; } } child = child.getNext(); childCount++; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addByte(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(functionName, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == Token.NEW) { childCount -= 1; } else { childCount -= 2; } iCodeTop = addIndex(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; break; } case Token.NEWLOCAL : case Token.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); break; } case Token.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) { iCodeTop = addByte(Icode_RETSUB, iCodeTop); } else { iCodeTop = addByte(Token.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); break; } case Token.USETEMP : { iCodeTop = addByte(Token.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); break; } case Token.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); break; } case Token.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_GETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } break; } case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { iCodeTop = addByte(Token.POS, iCodeTop); } else { badTree(node); } break; } case Token.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case Token.VOID : iCodeTop = addByte(Token.POP, iCodeTop); iCodeTop = addByte(Token.UNDEFINED, iCodeTop); break; case Token.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(Token.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); break; } case Token.BITNOT : iCodeTop = addByte(Token.BITNOT, iCodeTop); break; case Token.TYPEOF : iCodeTop = addByte(Token.TYPEOF, iCodeTop); break; case Token.SUB : iCodeTop = addByte(Token.NEG, iCodeTop); break; case Token.ADD : iCodeTop = addByte(Token.POS, iCodeTop); break; default: badTree(node); break; } break; case Token.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_SETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_SETPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addByte(Token.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(Token.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_GETPARENT, iCodeTop); break; case Token.GETBASE : case Token.BINDNAME : case Token.NAME : case Token.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.INC : case Token.DEC : { int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(type == Token.INC ? Token.VARINC : Token.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == Token.GETPROP) { iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); } else { iCodeTop = addByte(type == Token.INC ? Token.ELEMINC : Token.ELEMDEC, iCodeTop); } itsStackDepth--; break; } default : { iCodeTop = addByte(type == Token.INC ? Token.NAMEINC : Token.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(Token.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POP : case Token.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case Token.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case Token.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case Token.TRY : { Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd >= 0) Context.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Catch code has exception object on the stack itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else if (child == finallyTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Adjust stack for finally code: on the top of the // stack it has either a PC value when called from // GOSUB or exception object to rethrow when called // from exception handler itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) { itsData.itsMaxStack = itsStackDepth; } } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } itsStackDepth = 0; // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth); break; } case Token.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.THROW, iCodeTop); itsStackDepth--; break; case Token.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(Icode_RETUNDEF, iCodeTop); } break; case Token.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUMNEXT : { iCodeTop = addByte(Token.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.ENUMDONE : // could release the local here?? break; case Token.REGEXP : { int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } default : badTree(node); break; } return iCodeTop; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/e7e3848925d289272caa163d4d470f03f2eebac5/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... |
public boolean rawWrite(byte[] data) { if(this.bufferedOut != null) return this.bufferedOut.write(data); | public boolean rawWrite(final byte[] data) { if(bufferedOut != null) return bufferedOut.write(data); | public boolean rawWrite(byte[] data) { if(this.bufferedOut != null) return this.bufferedOut.write(data); else { Logger.notice(this, "rawWrite(), bufferedOut == null ? Socket closed ?"); this.disconnect(); return false; } } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/FCPConnection.java/buggy/src/thaw/fcp/FCPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1831,
3067,
12,
7229,
8526,
501,
13,
288,
202,
202,
430,
12,
2211,
18,
26385,
1182,
480,
446,
13,
1082,
202,
2463,
333,
18,
26385,
1182,
18,
2626,
12,
892,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1831,
3067,
12,
7229,
8526,
501,
13,
288,
202,
202,
430,
12,
2211,
18,
26385,
1182,
480,
446,
13,
1082,
202,
2463,
333,
18,
26385,
1182,
18,
2626,
12,
892,
1769,
202,
... |
assertEquals(new File("./samples/fib.rb"), ruby.findFile(testFile)); | assertEquals(new File("./samples/fib.rb"), ruby.findFile(ruby, testFile)); | public void testFindFile() { ArrayList list = new ArrayList(); ruby.initLoad(list); list.clear(); File testFile = new File("fib.rb"); try { ruby.findFile(testFile); fail("should have thrown an exception, the file fib.rb is not in the search path"); } catch (Exception e) { } list.add("./samples"); //now we valuate the path ruby.initLoad(list); assertEquals(new File("./samples/fib.rb"), ruby.findFile(testFile)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca0297671a9134bbd35c936224da11609c37fa62/TestRuby.java/clean/org/jruby/test/TestRuby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3125,
812,
1435,
288,
3639,
2407,
666,
273,
394,
2407,
5621,
3639,
22155,
18,
2738,
2563,
12,
1098,
1769,
3639,
666,
18,
8507,
5621,
3639,
1387,
1842,
812,
273,
394,
1387... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3125,
812,
1435,
288,
3639,
2407,
666,
273,
394,
2407,
5621,
3639,
22155,
18,
2738,
2563,
12,
1098,
1769,
3639,
666,
18,
8507,
5621,
3639,
1387,
1842,
812,
273,
394,
1387... |
public void indicateSharedFolder(String folderName){ if (folderName.equals("")){ if (isPaused){ setPartName("(paused) " + PART_NAME); } else{ setPartName(PART_NAME); } } else{ if (isPaused){ setPartName("(paused) " + folderName + " " + PART_NAME); } else{ setPartName(folderName + " " + PART_NAME); } } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d1509cef0732a1841f8062e4058ceb7dced6436a/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10768,
7887,
3899,
12,
780,
31814,
15329,
202,
202,
430,
261,
5609,
461,
18,
14963,
2932,
6,
3719,
95,
1082,
202,
430,
261,
291,
28590,
15329,
9506,
202,
542,
1988,
461,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10768,
7887,
3899,
12,
780,
31814,
15329,
202,
202,
430,
261,
5609,
461,
18,
14963,
2932,
6,
3719,
95,
1082,
202,
430,
261,
291,
28590,
15329,
9506,
202,
542,
1988,
461,
... | ||
public CodeReader createCodeReaderForInclusion(String path); | public CodeReader createCodeReaderForInclusion(IScanner scanner, String path); | public CodeReader createCodeReaderForInclusion(String path); | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/be3041c07d95af4cc47cbc48bd24143e0a464a2a/ICodeReaderFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ICodeReaderFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3356,
2514,
752,
1085,
2514,
1290,
382,
15335,
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,
... | [
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,
225,
202,
482,
3356,
2514,
752,
1085,
2514,
1290,
382,
15335,
12,
780,
589,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void makeObjects( Statement stmt, int count ) throws SQLException { stmt.execute( "TRUNCATE TABLE #test" ); for (int i=0; i<count; i++ ) { | public void makeObjects(Statement stmt, int count) throws SQLException { stmt = con.createStatement(); stmt.execute("TRUNCATE TABLE #test"); for (int i = 0; i < count; i++) { | public void makeObjects( Statement stmt, int count ) throws SQLException { stmt.execute( "TRUNCATE TABLE #test" ); for (int i=0; i<count; i++ ) { String sql = "INSERT INTO #test(f_int, f_varchar)" + " VALUES (" + i + ", 'Row " + i + "')"; stmt.execute(sql); } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d48066e24a9a4b4edf35b9545de98ba05acafd4d/TestBase.java/clean/src/test/net/sourceforge/jtds/test/TestBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1221,
4710,
12,
8056,
3480,
16,
509,
1056,
262,
3639,
1216,
6483,
565,
288,
3639,
3480,
18,
8837,
12,
315,
4349,
2124,
13000,
7567,
468,
3813,
6,
11272,
3639,
364,
261,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
4710,
12,
8056,
3480,
16,
509,
1056,
262,
3639,
1216,
6483,
565,
288,
3639,
3480,
18,
8837,
12,
315,
4349,
2124,
13000,
7567,
468,
3813,
6,
11272,
3639,
364,
261,
474,
... |
super(name, true, false, frac, top); | super(name, true, false, start, bytes); | public CopySpace(String name, int pageBudget, float frac, boolean top, boolean fromSpace) { super(name, true, false, frac, top); this.fromSpace = fromSpace; pr = new MonotonePageResource(pageBudget, this, start, extent); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/05b5da8c973ff823165cb8d9824e1fe42312ed72/CopySpace.java/buggy/MMTk/src/org/mmtk/policy/CopySpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5631,
3819,
12,
780,
508,
16,
509,
1363,
16124,
16,
1431,
12445,
16,
1250,
1760,
16,
1377,
1250,
628,
3819,
13,
288,
565,
2240,
12,
529,
16,
638,
16,
629,
16,
787,
16,
1731,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5631,
3819,
12,
780,
508,
16,
509,
1363,
16124,
16,
1431,
12445,
16,
1250,
1760,
16,
1377,
1250,
628,
3819,
13,
288,
565,
2240,
12,
529,
16,
638,
16,
629,
16,
787,
16,
1731,
176... |
else { | } else { | public void widgetSelected(SelectionEvent e) { if (e.detail == SWT.CHECK) { TableItem tableItem = (TableItem) e.item; ICategory category = (ICategory) tableItem.getData(); if (isLocked(category)) { tableItem.setChecked(true); e.doit = false; // veto the check return; } Set activitySet = WorkbenchActivityHelper .getActivityIdsForCategory(category); if (tableItem.getChecked()) activitySet.addAll(workingCopy.getEnabledActivityIds()); else { HashSet newSet = new HashSet(workingCopy .getEnabledActivityIds()); newSet.removeAll(activitySet); activitySet = newSet; } workingCopy.setEnabledActivityIds(activitySet); updateCategoryCheckState(); // even though we're reacting to // a check change we may need to // refresh a greying change. // Just process the whole thing. } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ActivityCategoryPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/ActivityCategoryPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
430,
261,
73,
18,
8992,
422,
348,
8588,
18,
10687,
13,
288,
6862,
202,
1388,
1180,
1014,
1180,
273,
261,
1388,
1180,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
430,
261,
73,
18,
8992,
422,
348,
8588,
18,
10687,
13,
288,
6862,
202,
1388,
1180,
1014,
1180,
273,
261,
1388,
1180,... |
public void marshalTo(MarshalStream output) throws java.io.IOException { | public void marshalTo(MarshalStream output) throws IOException { output.writeIVar(this, output); output.writeUserClass(this, getRuntime().getClass("Hash"), output); | public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('{'); output.dumpInt(getValueMap().size()); for (Iterator iter = entryIterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); output.dumpObject((IRubyObject) entry.getKey()); output.dumpObject((IRubyObject) entry.getValue()); } } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/d70012034b8795a6917f9e3b903281a59f12d372/RubyHash.java/buggy/src/org/jruby/RubyHash.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10893,
774,
12,
8105,
1228,
876,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
202,
202,
2844,
18,
2626,
2668,
95,
8284,
202,
202,
2844,
18,
8481,
1702,
12,
24805,
863,
7675,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10893,
774,
12,
8105,
1228,
876,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
202,
202,
2844,
18,
2626,
2668,
95,
8284,
202,
202,
2844,
18,
8481,
1702,
12,
24805,
863,
7675,... |
wait(delay); | schedulable.schedule(delay); | public synchronized void run() { long delay; while (running) { try { if (pendingAnnouncement == null) { wait(); } else if ((delay = getDelay()) > 0L) { wait(delay); } else { event(pendingAnnouncement); pendingAnnouncement = null; lastAnnouncedQuiescence = true; } } catch (Exception e) { logger.error("QuiescenceAnnouncer", e); } } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/726b107ea3c7731d08b030e81423b48a8d0f01fb/QuiescenceReportServiceProvider.java/clean/core/src/org/cougaar/core/node/QuiescenceReportServiceProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1086,
1435,
288,
1377,
1525,
4624,
31,
1377,
1323,
261,
8704,
13,
288,
3639,
775,
288,
1850,
309,
261,
9561,
23137,
475,
422,
446,
13,
288,
5411,
2529,
5621,
1850,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1086,
1435,
288,
1377,
1525,
4624,
31,
1377,
1323,
261,
8704,
13,
288,
3639,
775,
288,
1850,
309,
261,
9561,
23137,
475,
422,
446,
13,
288,
5411,
2529,
5621,
1850,
289,
... |
private void analyzeRequestInformation() { params.clear(); String windowId = windowOfAction.getId().toString(); for (Iterator i = runtimeData.getParameters().keySet().iterator(); i.hasNext();) { String paramName = (String)i.next(); String[] values = runtimeData.getParameterValues(paramName); if (ACTION.equals(paramName)) { if ("true".equals(values[0])) isAction = true; } else if (UP_HELP_TARGET.equals(paramName) && windowId.equals(values[0])) { setMode(windowOfAction, PortletMode.HELP); } else if (UP_EDIT_TARGET.equals(paramName) && windowId.equals(values[0])) { setMode(windowOfAction, PortletMode.EDIT); } else if (UP_VIEW_TARGET.equals(paramName) && windowId.equals(values[0])) { setMode(windowOfAction, PortletMode.VIEW); } else if (UP_ROOT.equals(paramName)) { if (!ROOT.equals(values[0])) setState(windowOfAction, WindowState.MAXIMIZED); else if (getPrevState(windowOfAction).equals(WindowState.MAXIMIZED)) setState(windowOfAction, WindowState.NORMAL); } else if (UP_TCATTR.equals(paramName)) { if (MINIMIZED.equals(values[0])) { String state = runtimeData.getParameter(MINIMIZED + "_" + windowId + "_value"); if ("true".equals(state)) setState(windowOfAction, WindowState.MINIMIZED); else setState(windowOfAction, WindowState.NORMAL); } } } } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/8330cbc23d81bb2476500bb77aff5b87cb528e25/PortletStateManager.java/clean/source/org/jasig/portal/container/services/information/PortletStateManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12375,
691,
5369,
1435,
288,
3639,
859,
18,
8507,
5621,
3639,
514,
2742,
548,
273,
2742,
951,
1803,
18,
26321,
7675,
10492,
5621,
3639,
364,
261,
3198,
277,
273,
3099,
751,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12375,
691,
5369,
1435,
288,
3639,
859,
18,
8507,
5621,
3639,
514,
2742,
548,
273,
2742,
951,
1803,
18,
26321,
7675,
10492,
5621,
3639,
364,
261,
3198,
277,
273,
3099,
751,
18,... | ||
if (numMissing == 0) { bestDist[2][0] = meanNoMissing; } | private double findSplitNumericNumeric(int index) throws Exception { double bestVal = Double.MAX_VALUE, currVal, currCutPoint; int numMissing = 0; double[] sumsSquares = new double[3], sumOfWeights = new double[3]; double[][] bestDist = new double[3][1]; double meanNoMissing; // Compute counts for all the values for (int i = 0; i < theInstances.numInstances(); i++) { Instance inst = theInstances.instance(i); if (!inst.isMissing(index)) { m_Distribution[1][0] += inst.classValue() * inst.weight(); sumsSquares[1] += inst.classValue() * inst.classValue() * inst.weight(); sumOfWeights[1] += inst.weight(); } else { m_Distribution[2][0] += inst.classValue() * inst.weight(); sumsSquares[2] += inst.classValue() * inst.classValue() * inst.weight(); sumOfWeights[2] += inst.weight(); numMissing++; } } meanNoMissing = m_Distribution[1][0] / sumOfWeights[1]; // Sort instances theInstances.sort(index); // Make split counts for each possible split and evaluate for (int i = 0; i < theInstances.numInstances() - (numMissing + 1); i++) { Instance inst = theInstances.instance(i); Instance instPlusOne = theInstances.instance(i + 1); m_Distribution[0][0] += inst.classValue() * inst.weight(); sumsSquares[0] += inst.classValue() * inst.classValue() * inst.weight(); sumOfWeights[0] += inst.weight(); m_Distribution[1][0] -= inst.classValue() * inst.weight(); sumsSquares[1] -= inst.classValue() * inst.classValue() * inst.weight(); sumOfWeights[1] -= inst.weight(); if (Utils.sm(inst.value(index), instPlusOne.value(index))) { currCutPoint = (inst.value(index) + instPlusOne.value(index)) / 2.0; currVal = variance(m_Distribution, sumsSquares, sumOfWeights); if (Utils.sm(currVal, bestVal)) { m_SplitPoint = currCutPoint; bestVal = currVal; for (int j = 0; j < 3; j++) { bestDist[j][0] = m_Distribution[j][0] / sumOfWeights[j]; } } } } // No missing values in training data if (numMissing == 0) { bestDist[2][0] = meanNoMissing; } m_Distribution = bestDist; return bestVal; } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/6f8b80c11f2402133a2097b26950719778fd77e0/DecisionStump.java/clean/weka/classifiers/DecisionStump.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
1104,
5521,
9902,
9902,
12,
474,
770,
13,
1216,
1185,
288,
565,
1645,
3796,
3053,
273,
3698,
18,
6694,
67,
4051,
16,
4306,
3053,
16,
4306,
15812,
2148,
31,
565,
509,
818,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
1104,
5521,
9902,
9902,
12,
474,
770,
13,
1216,
1185,
288,
565,
1645,
3796,
3053,
273,
3698,
18,
6694,
67,
4051,
16,
4306,
3053,
16,
4306,
15812,
2148,
31,
565,
509,
818,
48... | |
public Object visit(ConstructorInvocation node) { Expression exp = node.getExpression(); if (exp == null) { ClassInfo sc = classInfo.getSuperclass(); ClassInfo sdc = sc.getDeclaringClass(); ClassInfo dc = classInfo.getDeclaringClass(); if (dc != null && dc.equals(sdc) && !Modifier.isStatic(sc.getModifiers())) { List<IdentifierToken> l = new LinkedList<IdentifierToken>(); l.add(new Identifier("param$0")); exp = new QualifiedName(l); node.setExpression(exp); } else if (sdc != null && sdc.equals(classInfo.getAnonymousDeclaringClass()) && !Modifier.isStatic(sc.getModifiers())) { List<IdentifierToken> l = new LinkedList<IdentifierToken>(); l.add(new Identifier("param$0")); exp = new QualifiedName(l); node.setExpression(exp); } } List<Expression> args = node.getArguments(); if (exp != null) { if (args == null) { args = new LinkedList<Expression>(); node.setArguments(args); } args.add(0, exp); } if (args != null) { ListIterator<Expression> it = args.listIterator(); while (it.hasNext()) { Object o = it.next().acceptVisitor(this); if (o != null) { if (o instanceof Expression) { it.set((Expression)o); } else { throw new ExecutionError("malformed.argument", node); } } } ConstructorInfo cons = null; try { ClassInfo[] params = null; it = args.listIterator(); int i = 0; params = new ClassInfo[args.size()]; while (it.hasNext()) { params[i++] = NodeProperties.getClassInfo((Expression)it.next()); } if (node.isSuper()) { ClassInfo sc = classInfo.getSuperclass(); cons = ClassInfoUtilities.lookupConstructor(sc, params); superConstructor = sc.getName(); } else { cons = ClassInfoUtilities.lookupConstructor(classInfo, params); superConstructor = classInfo.getName(); } } catch (NoSuchMethodException e) { throw new CatchedExceptionError(e, node); } ClassInfo[] pt = cons.getParameterTypes(); constructorParameters = new String[pt.length]; for (int i = 0; i < pt.length; i++) { constructorParameters[i] = pt[i].getName(); } } if (superConstructor == null) { ClassInfo sc = classInfo.getSuperclass(); superConstructor = sc.getName(); } return null; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/56602892a0ed21c5100101190a7b3d24e2204871/ClassInfoCompiler.java/buggy/dynamicjava/src/koala/dynamicjava/interpreter/ClassInfoCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3757,
12,
6293,
9267,
756,
13,
288,
1377,
5371,
1329,
273,
756,
18,
588,
2300,
5621,
1377,
309,
261,
2749,
422,
446,
13,
288,
3639,
19010,
888,
225,
273,
23566,
18,
588,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
3757,
12,
6293,
9267,
756,
13,
288,
1377,
5371,
1329,
273,
756,
18,
588,
2300,
5621,
1377,
309,
261,
2749,
422,
446,
13,
288,
3639,
19010,
888,
225,
273,
23566,
18,
588,
284... | ||
sw.appendComment( "Script to be executed after the bridge configuration script is executed\n" ); | sw.appendComment( "Script to be executed after /etc/network/interfaces is executed\n" ); | private void saveFlags( RemoteInternalSettings remote ) { ScriptWriter sw = new ScriptWriter(); sw.appendComment( "Set to true to enable\n" ); sw.appendComment( "false or undefined is disabled.\n" ); sw.appendVariable( FLAG_TCP_WIN, "" + remote.isTcpWindowScalingEnabled()); sw.appendComment( "Allow inside HTTP true to enable" ); sw.appendComment( "false or undefined is disabled." ); sw.appendVariable( FLAG_HTTP_IN, "" + remote.isInsideInsecureEnabled()); sw.appendComment( "Allow outside HTTPS true to enable" ); sw.appendComment( "false or undefined to disable." ); sw.appendVariable( FLAG_HTTPS_OUT, "" + remote.isOutsideAccessEnabled()); sw.appendComment( "Restrict outside HTTPS access" ); sw.appendComment( "True if restricted, undefined or false if unrestricted" ); sw.appendVariable( FLAG_HTTPS_RES, "" + remote.isOutsideAccessRestricted()); sw.appendComment( "Report exceptions\n" ); sw.appendComment( "True to send out exception logs, undefined or false for not" ); sw.appendVariable( FLAG_EXCEPTION, "" + remote.isExceptionReportingEnabled()); if ( !remote.outsideNetwork().isEmpty()) { IPaddr network = remote.outsideNetwork(); IPaddr netmask = remote.outsideNetmask(); sw.appendComment( "If outside access is enabled and restricted, only allow access from" ); sw.appendComment( "this network.\n" ); sw.appendVariable( FLAG_OUT_NET, network.toString()); if ( !netmask.isEmpty()) sw.appendVariable( FLAG_OUT_MASK, netmask.toString()); sw.appendLine(); } if ( remote.getPostConfigurationScript().length() > 0 ) { sw.appendComment( "Script to be executed after the bridge configuration script is executed\n" ); sw.appendLine( DECL_POST_CONF ); /* The post configuration script should be an object, allowing it to * be prevalidated */ sw.appendLine( remote.getPostConfigurationScript().toString().trim()); sw.appendLine( "}" ); sw.appendComment( "Flag to indicate that there is a post configuuration script" ); sw.appendVariable( FLAG_POST_FUNC, POST_FUNC_NAME ); } HostName hostname = remote.getHostname(); /* The hostname itself is stored inside of /etc/hostname in saveHostname() */ if ( hostname != null && !NetworkUtil.DEFAULT_HOSTNAME.equals( hostname )) { sw.appendVariable( FLAG_IS_HOSTNAME_PUBLIC, "" + remote.getIsHostnamePublic()); } else { sw.appendVariable( FLAG_IS_HOSTNAME_PUBLIC, "" + false ); } /* Append whether or not the public address is enabled */ sw.appendVariable( FLAG_PUBLIC_ADDRESS_EN, "" + remote.getIsPublicAddressEnabled()); if ( remote.getPublicAddress() != null ) { sw.appendVariable( FLAG_PUBLIC_ADDRESS, remote.getPublicAddress()); } sw.writeFile( FLAGS_CFG_FILE ); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f8b1c46f813ff3ef98cfde0c4182f3e2c5a6d2a9/NetworkConfigurationLoader.java/clean/mvvm/impl/com/metavize/mvvm/networking/NetworkConfigurationLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
5094,
12,
6304,
3061,
2628,
2632,
262,
288,
3639,
7739,
2289,
1352,
273,
394,
7739,
2289,
5621,
3639,
1352,
18,
6923,
4469,
12,
315,
694,
358,
638,
358,
4237,
64,
82,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1923,
5094,
12,
6304,
3061,
2628,
2632,
262,
288,
3639,
7739,
2289,
1352,
273,
394,
7739,
2289,
5621,
3639,
1352,
18,
6923,
4469,
12,
315,
694,
358,
638,
358,
4237,
64,
82,
6... |
IBond[] bonds = container.getBonds(); for (int g = 0; g < bonds.length; g++) { IBond bond = bonds[g]; | Iterator bonds = container.bonds(); while (bonds.hasNext()) { IBond bond = (IBond) bonds.next(); | public void writeMolecule(IMolecule container) throws Exception { String line = ""; // taking care of the $$$$ signs: // we do not write such a sign at the end of the first molecule, thus we have to write on BEFORE the second molecule if(moleculeNumber == 2) { writer.write("$$$$"); writer.newLine(); } // write header block // lines get shortened to 80 chars, that's in the spec String title = (String)container.getProperty(CDKConstants.TITLE); if (title == null) title = ""; if(title.length()>80) title=title.substring(0,80); writer.write(title + "\n"); /* From CTX spec * This line has the format: * IIPPPPPPPPMMDDYYHHmmddSSssssssssssEEEEEEEEEEEERRRRRR * (FORTRAN: A2<--A8--><---A10-->A2I2<--F10.5-><---F12.5--><-I6-> ) * User's first and last initials (l), program name (P), * date/time (M/D/Y,H:m), dimensional codes (d), scaling factors (S, s), * energy (E) if modeling program input, internal registry number (R) * if input through MDL form. * A blank line can be substituted for line 2. */ writer.write(" CDK "); writer.write(new SimpleDateFormat("M/d/y,H:m",Locale.US).format( Calendar.getInstance(TimeZone.getDefault()).getTime()) ); writer.write('\n'); String comment = (String)container.getProperty(CDKConstants.REMARK); if (comment == null) comment = ""; if(comment.length()>80) comment=comment.substring(0,80); writer.write(comment + "\n"); // write Counts line line += formatMDLInt(container.getAtomCount(), 3); line += formatMDLInt(container.getBondCount(), 3); line += " 0 0 0 0 0 0 0 0999 V2000\n"; writer.write(line); // write Atom block for (int f = 0; f < container.getAtomCount(); f++) { IAtom atom = container.getAtom(f); line = ""; if (atom.getPoint3d() != null) { line += formatMDLFloat((float) atom.getPoint3d().x); line += formatMDLFloat((float) atom.getPoint3d().y); line += formatMDLFloat((float) atom.getPoint3d().z) + " "; } else if (atom.getPoint2d() != null) { line += formatMDLFloat((float) atom.getPoint2d().x); line += formatMDLFloat((float) atom.getPoint2d().y); line += " 0.0000 "; } else { // if no coordinates available, then output a number // of zeros line += formatMDLFloat((float)0.0); line += formatMDLFloat((float)0.0); line += formatMDLFloat((float)0.0) + " "; } if(container.getAtom(f) instanceof IPseudoAtom) line += formatMDLString(((IPseudoAtom) container.getAtom(f)).getLabel(), 3); else line += formatMDLString(container.getAtom(f).getSymbol(), 3); line += " 0 0 0 0 0 0 0 0 0 0 0 0"; writer.write(line); writer.newLine(); } // write Bond block IBond[] bonds = container.getBonds(); for (int g = 0; g < bonds.length; g++) { IBond bond = bonds[g]; if (bond.getAtomCount() != 2) { logger.warn("Skipping bond with more/less than two atoms: " + bond); } else { if (bond.getStereo() == CDKConstants.STEREO_BOND_UP_INV || bond.getStereo() == CDKConstants.STEREO_BOND_DOWN_INV) { // turn around atom coding to correct for inv stereo line = formatMDLInt(container.getAtomNumber(bond.getAtom(1)) + 1,3); line += formatMDLInt(container.getAtomNumber(bond.getAtom(0)) + 1,3); } else { line = formatMDLInt(container.getAtomNumber(bond.getAtom(0)) + 1,3); line += formatMDLInt(container.getAtomNumber(bond.getAtom(1)) + 1,3); } line += formatMDLInt((int)bond.getOrder(),3); line += " "; switch(bond.getStereo()){ case CDKConstants.STEREO_BOND_UP: line += "1"; break; case CDKConstants.STEREO_BOND_UP_INV: line += "1"; break; case CDKConstants.STEREO_BOND_DOWN: line += "6"; break; case CDKConstants.STEREO_BOND_DOWN_INV: line += "6"; break; default: line += "0"; } line += " 0 0 0 "; writer.write(line); writer.newLine(); } } // write formal atomic charges for (int i = 0; i < container.getAtomCount(); i++) { IAtom atom = container.getAtom(i); int charge = atom.getFormalCharge(); if (charge != 0) { writer.write("M CHG 1 "); writer.write(formatMDLInt(i+1,3)); writer.write(" "); writer.write(formatMDLInt(charge,3)); writer.newLine(); } } // write formal isotope information for (int i = 0; i < container.getAtomCount(); i++) { IAtom atom = container.getAtom(i); if (!(atom instanceof IPseudoAtom)) { int atomicMass = atom.getMassNumber(); int majorMass = IsotopeFactory.getInstance(atom.getBuilder()).getMajorIsotope(atom.getSymbol()).getMassNumber(); if (atomicMass != 0 && atomicMass != majorMass) { writer.write("M ISO 1 "); writer.write(formatMDLInt(i+1,3)); writer.write(" "); writer.write(formatMDLInt(atomicMass,3)); writer.newLine(); } } } // close molecule writer.write("M END"); writer.newLine(); //write sdfields, if any if(sdFields!=null){ Set set = sdFields.keySet(); Iterator iterator = set.iterator(); while (iterator.hasNext()) { Object element = iterator.next(); writer.write("> <"+(String)element+">"); writer.newLine(); writer.write(sdFields.get(element).toString()); writer.newLine(); writer.newLine(); } } // taking care of the $$$$ signs: // we write such a sign at the end of all except the first molecule if(moleculeNumber != 1) { writer.write("$$$$"); writer.newLine(); } moleculeNumber++; writer.flush(); } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/faceb822f3e0fe5e4e38b65a240031e87281aa11/MDLWriter.java/clean/src/org/openscience/cdk/io/MDLWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
29669,
12,
3445,
10545,
1478,
13,
1216,
1185,
288,
3639,
514,
980,
273,
1408,
31,
3639,
368,
13763,
7671,
434,
326,
5366,
16547,
21588,
30,
3639,
368,
732,
741,
486,
1045... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
29669,
12,
3445,
10545,
1478,
13,
1216,
1185,
288,
3639,
514,
980,
273,
1408,
31,
3639,
368,
13763,
7671,
434,
326,
5366,
16547,
21588,
30,
3639,
368,
732,
741,
486,
1045... |
Log.setApplicationVersionDate("$Id: CurrentPageImpl.java,v 1.1 2001/07/27 21:01:08 ashuk%eng.sun.com Exp $"); | Log.setApplicationVersionDate("$Id: CurrentPageImpl.java,v 1.2 2003/04/09 17:42:38 edburns%acm.org Exp $"); | public static void main(String [] args){ Assert.setEnabled(true); Log.setApplicationName("CurrentPageImpl"); Log.setApplicationVersion("0.0"); Log.setApplicationVersionDate("$Id: CurrentPageImpl.java,v 1.1 2001/07/27 21:01:08 ashuk%eng.sun.com Exp $"); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8fe43ad62a9bc8c93aaf088f374eb7b08f06db35/CurrentPageImpl.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/wrapper_nonnative/CurrentPageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
918,
2774,
12,
780,
5378,
833,
15329,
565,
5452,
18,
542,
1526,
12,
3767,
1769,
565,
1827,
18,
542,
3208,
461,
2932,
3935,
1964,
2828,
8863,
565,
1827,
18,
542,
3208,
1444,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
918,
2774,
12,
780,
5378,
833,
15329,
565,
5452,
18,
542,
1526,
12,
3767,
1769,
565,
1827,
18,
542,
3208,
461,
2932,
3935,
1964,
2828,
8863,
565,
1827,
18,
542,
3208,
1444,
2932,
... |
logger.info(msg.toString()); | if (DEBUG) { logger.fine(msg.toString()); } | private void mergeRoot() { if (numKeys > 0) throw new IllegalStateException("This node has no underflow!"); if (parentID != null && this.nodeID != 0) throw new IllegalStateException("This node is not root!"); if (isLeaf) { return; } StringBuffer msg = new StringBuffer(); msg.append("\n this.data "); msg.append(Arrays.asList(this.data)); BTreeNode<K, V> left = file.readPage(this.childIDs[0]); // move the data for (int i = 0; i < left.numKeys; i++) { data[numKeys++] = left.data[i]; } if (this.numKeys > 2 * m) throw new IllegalStateException("Should never happen!"); // root is now a leaf if (left.isLeaf) { isLeaf = true; this.childIDs[0] = null; } // root is not a leaf: move the children, set the parent ids and the leaf flags if (!isLeaf) { for (int i = 0; i <= left.numKeys; i++) { BTreeNode<K, V> child = file.readPage(left.childIDs[i]); childIDs[i] = child.nodeID; child.parentID = nodeID; file.writePage(child); } } msg.append("\n this.data "); msg.append(Arrays.asList(this.data)); file.deletePage(left.nodeID); file.writePage(this); logger.info(msg.toString()); } | 5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/60a89dac3b7fb112673b96db96d54fd2df1a35d7/BTreeNode.java/clean/src/de/lmu/ifi/dbs/index/btree/BTreeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2691,
2375,
1435,
288,
565,
309,
261,
2107,
2396,
405,
374,
13,
1377,
604,
394,
5477,
2932,
2503,
756,
711,
1158,
3613,
2426,
4442,
1769,
565,
309,
261,
2938,
734,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2691,
2375,
1435,
288,
565,
309,
261,
2107,
2396,
405,
374,
13,
1377,
604,
394,
5477,
2932,
2503,
756,
711,
1158,
3613,
2426,
4442,
1769,
565,
309,
261,
2938,
734,
480,
446,
... |
while (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) { iconName = iconName.substring(0, iconName.length() - 1); } } | while (fm.stringWidth(iconName) > Entity.ICON_NAME_MAX_LENGTH) { iconName = iconName.substring(0, iconName.length() - 1); } } | public void generateIconName(FontMetrics fm) { iconName = getShortName(); if (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) { Vector v = StringUtil.splitString(iconName, " "); iconName = (String) v.elementAt(0); } while (fm.stringWidth(iconName) > UnitOverview.ICON_NAME_MAX_LENGTH) { iconName = iconName.substring(0, iconName.length() - 1); } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/17c16e4e36c2344a26b7baa33122f4a305b86c08/Tank.java/clean/megamek/src/megamek/common/Tank.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2103,
5554,
461,
12,
5711,
5653,
10940,
13,
288,
202,
202,
3950,
461,
273,
23387,
5621,
9506,
202,
430,
261,
25089,
18,
1080,
2384,
12,
3950,
461,
13,
405,
8380,
26648,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
5554,
461,
12,
5711,
5653,
10940,
13,
288,
202,
202,
3950,
461,
273,
23387,
5621,
9506,
202,
430,
261,
25089,
18,
1080,
2384,
12,
3950,
461,
13,
405,
8380,
26648,
1... |
nodeRet, node); | nodeRet, copyNode(node)); | private CMNode expandContentModel(CMNode node, int minOccurs, int maxOccurs) { CMNode nodeRet = null; if (minOccurs==1 && maxOccurs==1) { nodeRet = node; } else if (minOccurs==0 && maxOccurs==1) { //zero or one nodeRet = new XSCMUniOp(XSParticleDecl.PARTICLE_ZERO_OR_ONE, node); } else if (minOccurs == 0 && maxOccurs==SchemaSymbols.OCCURRENCE_UNBOUNDED) { //zero or more nodeRet = new XSCMUniOp(XSParticleDecl.PARTICLE_ZERO_OR_MORE, node); } else if (minOccurs == 1 && maxOccurs==SchemaSymbols.OCCURRENCE_UNBOUNDED) { //one or more nodeRet = new XSCMUniOp(XSParticleDecl.PARTICLE_ONE_OR_MORE, node); } else if (maxOccurs == SchemaSymbols.OCCURRENCE_UNBOUNDED) { // => a,a,..,a+ // create a+ node first, then put minOccurs-1 a's in front of it // for the first time "node" is used, we don't need to make a copy // and for other references to node, we make copies nodeRet = new XSCMUniOp(XSParticleDecl.PARTICLE_ONE_OR_MORE, node); for (int i=0; i < minOccurs-1; i++) { // (task 4) we need to call copyNode here, so that we append // an entire new copy of the node (a subtree). this is to ensure // all leaf nodes have distinct position nodeRet = new XSCMBinOp(XSModelGroupImpl.MODELGROUP_SEQUENCE, copyNode(node), nodeRet); } } else { // {n,m} => a,a,a,...(a),(a),... // first n a's, then m-n a?'s. // copyNode is called, for the same reason as above if (minOccurs > 0) { nodeRet = node; for (int i=0; i<minOccurs-1; i++) { nodeRet = new XSCMBinOp(XSModelGroupImpl.MODELGROUP_SEQUENCE, nodeRet, copyNode(node)); } } if (maxOccurs > minOccurs) { node = new XSCMUniOp(XSParticleDecl.PARTICLE_ZERO_OR_ONE, node); if (nodeRet == null) { nodeRet = node; } else { nodeRet = new XSCMBinOp(XSModelGroupImpl.MODELGROUP_SEQUENCE, nodeRet, copyNode(node)); } for (int i=minOccurs; i<maxOccurs-1; i++) { nodeRet = new XSCMBinOp(XSModelGroupImpl.MODELGROUP_SEQUENCE, nodeRet, node); } } } return nodeRet; } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/d5f44a9eb9563d09f25bc85ae70d426222c8d566/CMBuilder.java/buggy/src/org/apache/xerces/impl/xs/models/CMBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15871,
907,
4542,
1350,
1488,
12,
9611,
907,
756,
16,
4766,
1377,
509,
1131,
31084,
16,
509,
943,
31084,
13,
288,
3639,
15871,
907,
756,
7055,
273,
446,
31,
3639,
309,
261,
1154,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15871,
907,
4542,
1350,
1488,
12,
9611,
907,
756,
16,
4766,
1377,
509,
1131,
31084,
16,
509,
943,
31084,
13,
288,
3639,
15871,
907,
756,
7055,
273,
446,
31,
3639,
309,
261,
1154,
... |
public FrostBoard(String name, String pubKey, String privKey) { this(name); setPublicKey(pubKey); setPrivateKey(privKey); | public FrostBoard(String name) { boardName = name; | public FrostBoard(String name, String pubKey, String privKey) { this(name); setPublicKey(pubKey); setPrivateKey(privKey); } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/463e1c2814ef80eab9cbef79e58a1594fa8ec102/FrostBoard.java/buggy/src/freenet/frost/message/FrostBoard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
478,
303,
334,
22233,
12,
780,
508,
16,
514,
18659,
16,
514,
22849,
13,
288,
3639,
333,
12,
529,
1769,
3639,
444,
9632,
12,
10174,
653,
1769,
3639,
444,
10824,
12,
11365,
653,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
478,
303,
334,
22233,
12,
780,
508,
16,
514,
18659,
16,
514,
22849,
13,
288,
3639,
333,
12,
529,
1769,
3639,
444,
9632,
12,
10174,
653,
1769,
3639,
444,
10824,
12,
11365,
653,
176... |
public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name); | private ThreadGroup() { this.parent = null; this.name = "Root Thread Group"; this.maxPriority = java.lang.Thread.MAX_PRIORITY; this.daemon = false; this.process = VmProcess.getRootProcess(this); | public ThreadGroup(String name) { this(Thread.currentThread().getThreadGroup(), name); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/904d9bc62a0cd342336f5fe6de15a27181e40dab/ThreadGroup.java/buggy/core/src/classpath/java/java/lang/ThreadGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4884,
1114,
12,
780,
508,
13,
288,
202,
202,
2211,
12,
3830,
18,
2972,
3830,
7675,
588,
3830,
1114,
9334,
508,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4884,
1114,
12,
780,
508,
13,
288,
202,
202,
2211,
12,
3830,
18,
2972,
3830,
7675,
588,
3830,
1114,
9334,
508,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
break; } | } break; | protected void parseManifest(IDocument document, IProgressMonitor monitor) { try { fHeaders = new HashMap(); JarManifestHeader header = null; int l = 0; for (; l < document.getNumberOfLines(); l++) { if(l % 100 ==0) checkCanceled(monitor); IRegion lineInfo = document.getLineInformation(l); String line = document.get(lineInfo.getOffset(), lineInfo .getLength()); // test lines' length Charset charset = Charset.forName("UTF-8"); //$NON-NLS-1$ String lineDelimiter = document.getLineDelimiter(l); if (lineDelimiter == null) { lineDelimiter = ""; //$NON-NLS-1$ } ByteBuffer byteBuf = charset.encode(line); if (byteBuf.limit() + lineDelimiter.length() > 512) { report( PDECoreMessages.BundleErrorReporter_lineTooLong, l + 1, CompilerFlags.ERROR); return; } // parse if (line.length() == 0) { // Empty Line if (l == 0) { report( PDECoreMessages.BundleErrorReporter_noMainSection, 1, CompilerFlags.ERROR); return; } /* flush last line */ if (header != null) { fHeaders.put(header.getName(), header); header = null; } break; /* done processing main attributes */ } if (line.charAt(0) == ' ') { // Continuation Line if (l == 0) { /* if no previous line */ report( PDECoreMessages.BundleErrorReporter_noMainSection, 1, CompilerFlags.ERROR); return; } if (header != null) { header.append(line.substring(1)); } continue; } // Expecting New Header if (header != null) { fHeaders.put(header.getName(), header); header = null; } int colon = line.indexOf(':'); if (colon == -1) { /* no colon */ report( PDECoreMessages.BundleErrorReporter_noColon, l + 1, CompilerFlags.ERROR); return; } String headerName = getHeaderName(line); if (headerName == null) { report( PDECoreMessages.BundleErrorReporter_invalidHeaderName, l + 1, CompilerFlags.ERROR); return; } if (line.length() < colon + 2 || line.charAt(colon + 1) != ' ') { report( PDECoreMessages.BundleErrorReporter_noSpaceValue, l + 1, CompilerFlags.ERROR); return; } if ("Name".equals(headerName)) { //$NON-NLS-1$ report( PDECoreMessages.BundleErrorReporter_nameHeaderInMain, l + 1, CompilerFlags.ERROR); return; } header = new JarManifestHeader(headerName, line .substring(colon + 2), l, this); if (fHeaders.containsKey(header.getName())) { report( PDECoreMessages.BundleErrorReporter_duplicateHeader, l + 1, CompilerFlags.WARNING); } } if (header != null) { // lingering header, line not terminated report( PDECoreMessages.BundleErrorReporter_noLineTermination, l, CompilerFlags.ERROR); return; } // If there is any more headers, not starting with a Name header // the empty lines are a mistake, report it. for (; l < document.getNumberOfLines(); l++) { IRegion lineInfo = document.getLineInformation(l); String line = document.get(lineInfo.getOffset(), lineInfo .getLength()); if (line.length() == 0) { continue; } if (!line.startsWith("Name:")) { //$NON-NLS-1$ report( PDECoreMessages.BundleErrorReporter_noNameHeader, l, CompilerFlags.ERROR); break; } } return; } catch (BadLocationException ble) { PDECore.logException(ble); } } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/9bdb526c75d49665ac60a38f73a1868ef0cf90b9/JarManifestErrorReporter.java/clean/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders/JarManifestErrorReporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1109,
9121,
12,
734,
504,
650,
1668,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
698,
288,
1082,
202,
74,
3121,
273,
394,
4317,
5621,
1082,
202,
10813,
9121,
1864,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
9121,
12,
734,
504,
650,
1668,
16,
467,
5491,
7187,
6438,
13,
288,
202,
202,
698,
288,
1082,
202,
74,
3121,
273,
394,
4317,
5621,
1082,
202,
10813,
9121,
1864,
144... |
Logger.minor(this, "Running fetch for: "+uri); | FetchResult realRun(ClientMetadata dm, int recursionLevel, FreenetURI uri, boolean dontEnterImplicitArchives, boolean localOnly) throws FetchException, MetadataParseException, ArchiveFailureException, ArchiveRestartException { Logger.minor(this, "Running fetch for: "+uri); ClientKey key; try { key = ClientKey.getBaseKey(uri); } catch (MalformedURLException e2) { throw new FetchException(FetchException.INVALID_URI, "Invalid URI: "+uri); } LinkedList metaStrings = uri.listMetaStrings(); recursionLevel++; if(recursionLevel > ctx.maxRecursionLevel) throw new FetchException(FetchException.TOO_MUCH_RECURSION, ""+recursionLevel+" should be < "+ctx.maxRecursionLevel); // Do the fetch ClientKeyBlock block; try { block = ctx.client.getKey(key, localOnly, ctx.starterClient, ctx.cacheLocalRequests); } catch (LowLevelGetException e) { switch(e.code) { case LowLevelGetException.DATA_NOT_FOUND: throw new FetchException(FetchException.DATA_NOT_FOUND); case LowLevelGetException.DATA_NOT_FOUND_IN_STORE: throw new FetchException(FetchException.DATA_NOT_FOUND); case LowLevelGetException.DECODE_FAILED: throw new FetchException(FetchException.BLOCK_DECODE_ERROR); case LowLevelGetException.INTERNAL_ERROR: throw new FetchException(FetchException.INTERNAL_ERROR); case LowLevelGetException.REJECTED_OVERLOAD: throw new FetchException(FetchException.REJECTED_OVERLOAD); case LowLevelGetException.ROUTE_NOT_FOUND: throw new FetchException(FetchException.ROUTE_NOT_FOUND); case LowLevelGetException.TRANSFER_FAILED: throw new FetchException(FetchException.TRANSFER_FAILED); case LowLevelGetException.VERIFY_FAILED: throw new FetchException(FetchException.BLOCK_DECODE_ERROR); default: Logger.error(this, "Unknown LowLevelGetException code: "+e.code); throw new FetchException(FetchException.INTERNAL_ERROR); } } ctx.eventProducer.produceEvent(new GotBlockEvent(key)); Bucket data; try { data = block.decode(ctx.bucketFactory, (int) (Math.min(ctx.maxTempLength, Integer.MAX_VALUE))); } catch (KeyDecodeException e1) { throw new FetchException(FetchException.BLOCK_DECODE_ERROR, e1.getMessage()); } catch (IOException e) { Logger.error(this, "Could not capture data - disk full?: "+e, e); throw new FetchException(FetchException.BUCKET_ERROR, e); } ctx.eventProducer.produceEvent(new DecodedBlockEvent(key)); if(!block.isMetadata()) { // Just return the data return new FetchResult(dm, data); } // Otherwise we need to parse the metadata if(data.size() > ctx.maxMetadataSize) throw new FetchException(FetchException.TOO_BIG_METADATA); Metadata metadata; try { metadata = Metadata.construct(BucketTools.toByteArray(data)); } catch (IOException e) { throw new FetchException(FetchException.BUCKET_ERROR, e); } ctx.eventProducer.produceEvent(new FetchedMetadataEvent()); FetchResult result = runMetadata(dm, recursionLevel, key, metaStrings, metadata, null, key.getURI(), dontEnterImplicitArchives, localOnly); if(metaStrings.isEmpty()) return result; // Still got some meta-strings throw new FetchException(FetchException.HAS_MORE_METASTRINGS); } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/eeb69ae96b5639353695b186fc695ec8ced4dd50/Fetcher.java/buggy/src/freenet/client/Fetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
5005,
1253,
2863,
1997,
12,
1227,
2277,
9113,
16,
509,
13917,
2355,
16,
478,
2842,
278,
3098,
2003,
16,
1250,
14046,
10237,
15787,
12269,
3606,
16,
1250,
1191,
3386,
13,
225,
202,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
5005,
1253,
2863,
1997,
12,
1227,
2277,
9113,
16,
509,
13917,
2355,
16,
478,
2842,
278,
3098,
2003,
16,
1250,
14046,
10237,
15787,
12269,
3606,
16,
1250,
1191,
3386,
13,
225,
202,
15... | |
return FileUtils.ensureTrailingSlash(repository) + fileRepository; | public String getRepositoryForDirectory(DirectoryObject directoryObject, String repository, ICvsFileSystem cvsFileSystem) throws IOException { final File directory = cvsFileSystem.getAdminFileSystem().getFile(directoryObject); // if there is no "CVS/Repository" file, try to search up the file-hierarchy File repositoryFile; String repositoryDirs = ""; File dirFile = directory; while (true) { // if there is no Repository file we cannot very well get any repository from it if (dirFile == null || dirFile.getName().length() == 0 || !dirFile.exists()) { throw new FileNotFoundException("Repository file not found for directory " + directory); } repositoryFile = new File(dirFile, "CVS/Repository"); if (repositoryFile.exists()) { break; } repositoryDirs = '/' + dirFile.getName() + repositoryDirs; dirFile = dirFile.getParentFile(); } String fileRepository = FileUtils.readLineFromFile(repositoryFile); if (fileRepository == null) { fileRepository = ""; } fileRepository += repositoryDirs; // absolute repository path ? if (fileRepository.startsWith("/")) { return fileRepository; } // otherwise the cvs is using relative repository path // must be a forward slash, regardless of the local filing system return FileUtils.ensureTrailingSlash(repository) + fileRepository; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/59cd02fe81607787f0205dacad6836a2ed8e852c/AdminReader.java/clean/plugins/cvs2/smartcvs-src/org/netbeans/lib/cvsclient/admin/AdminReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8261,
1290,
2853,
12,
2853,
921,
1867,
921,
16,
514,
3352,
16,
26899,
6904,
11785,
276,
6904,
11785,
13,
1216,
1860,
288,
202,
202,
6385,
1387,
1867,
273,
276,
6904,
11785,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8261,
1290,
2853,
12,
2853,
921,
1867,
921,
16,
514,
3352,
16,
26899,
6904,
11785,
276,
6904,
11785,
13,
1216,
1860,
288,
202,
202,
6385,
1387,
1867,
273,
276,
6904,
11785,... | |
assertEquals(true, test.isPrecise()); assertEquals(dt2.getMillis() - dt1.getMillis(), test.toDurationMillis()); | assertEquals(false, test.isPrecise()); try { test.toDurationMillis(); fail(); } catch (IllegalStateException ex) {} | public void testConstructor_long_long_DurationType1() throws Throwable { DateTime dt1 = new DateTime(2004, 6, 9, 0, 0, 0, 0); DateTime dt2 = new DateTime(2005, 7, 10, 1, 1, 1, 1); TimePeriod test = new TimePeriod(dt1.getMillis(), dt2.getMillis(), null); assertEquals(DurationType.getAllType(), test.getDurationType()); assertEquals(1, test.getYears()); assertEquals(1, test.getMonths()); assertEquals(0, test.getWeeks()); assertEquals(1, test.getDays()); assertEquals(1, test.getHours()); assertEquals(1, test.getMinutes()); assertEquals(1, test.getSeconds()); assertEquals(1, test.getMillis()); assertEquals(true, test.isPrecise()); assertEquals(dt2.getMillis() - dt1.getMillis(), test.toDurationMillis()); } | 52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/1c524312cdc4a8c8a38a4226aeea6da77b519fe8/TestPeriod_Constructors.java/buggy/JodaTime/src/test/org/joda/time/TestPeriod_Constructors.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6293,
67,
5748,
67,
5748,
67,
5326,
559,
21,
1435,
1216,
4206,
288,
3639,
3716,
3681,
21,
273,
394,
3716,
12,
6976,
24,
16,
1666,
16,
2468,
16,
374,
16,
374,
16,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6293,
67,
5748,
67,
5748,
67,
5326,
559,
21,
1435,
1216,
4206,
288,
3639,
3716,
3681,
21,
273,
394,
3716,
12,
6976,
24,
16,
1666,
16,
2468,
16,
374,
16,
374,
16,
374,... |
public ResultEdge(ResultDescriptor descriptor, Point labelPos) | public ResultEdge(ResultDescriptor descriptor, Point2D labelPos) | public ResultEdge(ResultDescriptor descriptor, Point labelPos) { super(descriptor); setAttributes(new WorkflowAttributeMap(getAttributes())); this.descriptor = descriptor; int arrow = GraphConstants.ARROW_CLASSIC; //GraphConstants.setLabelAlongEdge(attributes, true); GraphConstants.setLineEnd(attributes, arrow); GraphConstants.setEndFill(attributes, true); GraphConstants.setDisconnectable(attributes, true); GraphConstants.setBendable(attributes, true); GraphConstants.setForeground(attributes, Color.BLACK); //GraphConstants.setRouting(attributes, EDGE_ROUTER); GraphConstants.setMoveable(attributes, true); if(labelPos != null) { GraphConstants.setLabelPosition(attributes, labelPos); } } | 7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/076e0fc658605b631711ff66cc32556e5c13c6ba/ResultEdge.java/buggy/src/designer/com/opensymphony/workflow/designer/ResultEdge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3438,
6098,
12,
1253,
3187,
4950,
16,
4686,
22,
40,
1433,
1616,
13,
225,
288,
565,
2240,
12,
12628,
1769,
565,
21175,
12,
2704,
11363,
1499,
863,
12,
588,
2498,
1435,
10019,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3438,
6098,
12,
1253,
3187,
4950,
16,
4686,
22,
40,
1433,
1616,
13,
225,
288,
565,
2240,
12,
12628,
1769,
565,
21175,
12,
2704,
11363,
1499,
863,
12,
588,
2498,
1435,
10019,
565,
... |
public final void RXD (int i, String op, byte R0, byte X, short s, int d) { | public final void RXD (int i, String op, byte R0, byte X, short s, Offset d) { | public final void RXD (int i, String op, byte R0, byte X, short s, int d) { i = begin(i, op); VM.sysWrite(right("[" + decimal(d) + "+" + GPR_NAMES[R0] + "+" + GPR_NAMES[X] + "<<" + decimal(s) + "]", DEST_AREA_SIZE)); VM.sysWrite(right("", SOURCE_AREA_SIZE)); end(i); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Lister.java/clean/rvm/src/vm/arch/intel/assembler/VM_Lister.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
534,
22953,
261,
474,
277,
16,
514,
1061,
16,
1160,
534,
20,
16,
1160,
1139,
16,
3025,
272,
16,
9874,
302,
13,
288,
565,
277,
273,
2376,
12,
77,
16,
1061,
1769,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
534,
22953,
261,
474,
277,
16,
514,
1061,
16,
1160,
534,
20,
16,
1160,
1139,
16,
3025,
272,
16,
9874,
302,
13,
288,
565,
277,
273,
2376,
12,
77,
16,
1061,
1769,
565,
... |
public Collection<String> getSearchFields() throws UnsupportedOperationException { return Collections.unmodifiableCollection(searchFields.keySet()); | public Set<String> getSearchFields() throws UnsupportedOperationException { return Collections.unmodifiableSet(searchFields.keySet()); | public Collection<String> getSearchFields() throws UnsupportedOperationException { return Collections.unmodifiableCollection(searchFields.keySet()); } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/6531fac8c7cb90a82c64ddec8819dc248da2d8b6/LdapUserProvider.java/buggy/src/java/org/jivesoftware/messenger/ldap/LdapUserProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
780,
34,
15627,
2314,
1435,
1216,
13172,
288,
3639,
327,
5737,
18,
318,
13388,
2532,
12,
3072,
2314,
18,
856,
694,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
780,
34,
15627,
2314,
1435,
1216,
13172,
288,
3639,
327,
5737,
18,
318,
13388,
2532,
12,
3072,
2314,
18,
856,
694,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public Base64BinaryDatatypeValidator () throws InvalidDatatypeFacetException{ super( null, null, false ); | public Base64BinaryDatatypeValidator () { super( null, null, false , null); | public Base64BinaryDatatypeValidator () throws InvalidDatatypeFacetException{ super( null, null, false ); // Native, No Facets defined, Restriction } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/4b01142cc37cb03a4b40a1d07569328af4773755/Base64BinaryDatatypeValidator.java/buggy/src/org/apache/xerces/impl/v2/datatypes/Base64BinaryDatatypeValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
3360,
1105,
5905,
20228,
5126,
1832,
1216,
1962,
20228,
11137,
503,
95,
3639,
2240,
12,
446,
16,
446,
16,
629,
11272,
368,
16717,
16,
2631,
12618,
2413,
2553,
16,
1124,
6192,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
3360,
1105,
5905,
20228,
5126,
1832,
1216,
1962,
20228,
11137,
503,
95,
3639,
2240,
12,
446,
16,
446,
16,
629,
11272,
368,
16717,
16,
2631,
12618,
2413,
2553,
16,
1124,
6192,
5... |
public static synchronized IProcessorFactory getInstance( ) throws AxisFault { if ( instance != null ) { return instance; } try { instance = ( IProcessorFactory ) Class.forName( "com.actuate.common.processor.ProcessorFactory" ) .newInstance( ); //$NON-NLS-1$ } catch ( Exception e ) { instance = null; } if ( instance == null ) { instance = new BaseProcessorFactory( ); } instance.init( ); return instance; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/6f200516dd6e313325dd2c5637ad596549bf99c5/BaseProcessorFactory.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/soapengine/processor/BaseProcessorFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3852,
467,
5164,
1733,
3694,
12,
262,
1216,
15509,
7083,
202,
95,
202,
202,
430,
261,
791,
480,
446,
262,
202,
202,
95,
1082,
202,
2463,
791,
31,
202,
202,
97,
9506,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3852,
467,
5164,
1733,
3694,
12,
262,
1216,
15509,
7083,
202,
95,
202,
202,
430,
261,
791,
480,
446,
262,
202,
202,
95,
1082,
202,
2463,
791,
31,
202,
202,
97,
9506,
20... | ||
System.out.println("class is " + getClass().getName() + " Before group "); } | System.out.println("class is " + getClass().getName() + " Before group "); Assert.assertFalse(s_childBWasRun || s_childBWasRun, "Static field was not reset: @AfterGroup method not invoked"); } | public void setUp() throws Exception { System.out.println("class is " + getClass().getName() + " Before group "); } | 50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/4a9f5e1bbd5511495182bbd21cb62ce6eb71985d/Base.java/clean/test/src/test/regression/groupsordering/Base.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
1216,
1185,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
1106,
353,
315,
397,
2900,
7675,
17994,
1435,
397,
315,
11672,
1041,
225,
315,
1769,
565,
289,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
1435,
1216,
1185,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
1106,
353,
315,
397,
2900,
7675,
17994,
1435,
397,
315,
11672,
1041,
225,
315,
1769,
565,
289,
2,
-100,
-100,... |
protected boolean prePageChanges( Object oldPage, Object newPage ) { boolean isNewPageValid = true; if ( oldPage instanceof IReportEditorPage && newPage instanceof IReportEditorPage ) { isNewPageValid = ( (IReportEditorPage) newPage ).onBroughtToTop( (IReportEditorPage) oldPage ); // TODO: HOW TO RESET MODEL????????? // model = SessionHandleAdapter.getInstance( // ).getReportDesignHandle( ); } return isNewPageValid; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e813e4939207f9a25da25a7791da1a881207e029/MultiPageReportEditor.java/buggy/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/ui/editors/MultiPageReportEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
675,
1964,
7173,
12,
1033,
1592,
1964,
16,
1033,
394,
1964,
262,
202,
95,
202,
202,
6494,
10783,
1964,
1556,
273,
638,
31,
202,
202,
430,
261,
1592,
1964,
1276,
467,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
675,
1964,
7173,
12,
1033,
1592,
1964,
16,
1033,
394,
1964,
262,
202,
95,
202,
202,
6494,
10783,
1964,
1556,
273,
638,
31,
202,
202,
430,
261,
1592,
1964,
1276,
467,
48... | ||
if ((pkgName == null || exports[i].getName().equals(pkgName)) && !isSystemExport(exports[i]) && isFriend(symbolicName, exports[i], strict) && !importList.contains(exports[i].getName())) | if ((pkgName == null || exports[i].getName().equals(pkgName)) && !isSystemExport(exports[i]) && isFriend(symbolicName, exports[i], strict) && !importList.contains(exports[i].getName())) { | private void getPackages(BundleDescription requiredBundle, String symbolicName, List importList, List packageList, List visited, boolean strict, String pkgName) { if (visited.contains(requiredBundle)) return; // prevent duplicate entries and infinate loops incase of cycles visited.add(requiredBundle); // add all the exported packages from the required bundle; take x-friends into account. ExportPackageDescription[] exports = requiredBundle.getSelectedExports(); for (int i = 0; i < exports.length; i++) if ((pkgName == null || exports[i].getName().equals(pkgName)) && !isSystemExport(exports[i]) && isFriend(symbolicName, exports[i], strict) && !importList.contains(exports[i].getName())) packageList.add(exports[i]); // now look for reexported bundles from the required bundle. BundleSpecification[] requiredBundles = requiredBundle.getRequiredBundles(); for (int i = 0; i < requiredBundles.length; i++) if ((pkgName != null || requiredBundles[i].isExported()) && requiredBundles[i].getSupplier() != null) getPackages((BundleDescription) requiredBundles[i].getSupplier(), symbolicName, importList, packageList, visited, strict, pkgName); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/8194993357a72283eb2e4a77483b6c96cdc5e300/StateHelperImpl.java/clean/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateHelperImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
30401,
1023,
12,
3405,
3291,
1931,
3405,
16,
514,
16754,
461,
16,
987,
1930,
682,
16,
987,
2181,
682,
16,
987,
9711,
16,
1250,
5490,
16,
514,
27288,
13,
288,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
30401,
1023,
12,
3405,
3291,
1931,
3405,
16,
514,
16754,
461,
16,
987,
1930,
682,
16,
987,
2181,
682,
16,
987,
9711,
16,
1250,
5490,
16,
514,
27288,
13,
288,
202,
202,
... |
IStructuredSelection ssel = null; | public IStatus execute(IProgressMonitor monitor, IAdaptable info) { boolean updateExtensionActivation = false; // we sort the array in order to use Array.binarySearch(); Arrays.sort(contentExtensionsToActivate); try { commonViewer.getControl().setRedraw(false); INavigatorContentDescriptor[] visibleContentDescriptors = contentService .getVisibleExtensions(); int indexofContentExtensionIdToBeActivated; /* is there a delta? */ for (int i = 0; i < visibleContentDescriptors.length && !updateExtensionActivation; i++) { indexofContentExtensionIdToBeActivated = Arrays.binarySearch( contentExtensionsToActivate, visibleContentDescriptors[i].getId()); /* * Either we have a filter that should be active that isn't XOR * a filter that shouldn't be active that is currently */ if (indexofContentExtensionIdToBeActivated >= 0 ^ contentService.isActive(visibleContentDescriptors[i] .getId())) { updateExtensionActivation = true; } } /* If so, update */ if (updateExtensionActivation) { contentService.getActivationService().activateExtensions( contentExtensionsToActivate, true); contentService.getActivationService() .persistExtensionActivations(); // automatically calls viewer.refresh() contentService.update(); // the action providers may no longer be enabled, so we reset // the selection. commonViewer.setSelection(StructuredSelection.EMPTY); } } finally { commonViewer.getControl().setRedraw(true); } return Status.OK_STATUS; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/UpdateActiveExtensionsOperation.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/filters/UpdateActiveExtensionsOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
30733,
6233,
272,
1786,
273,
446,
31,
225,
467,
1482,
467,
30733,
6233,
272,
1786,
273,
446,
31,
225,
1836,
12,
45,
5491,
7187,
467,
30733,
6233,
272,
1786,
273,
446,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
30733,
6233,
272,
1786,
273,
446,
31,
225,
467,
1482,
467,
30733,
6233,
272,
1786,
273,
446,
31,
225,
1836,
12,
45,
5491,
7187,
467,
30733,
6233,
272,
1786,
273,
446,
31,... | |
static public final Treadmill getTreadmill (Address node) { | static public final Treadmill getTreadmill(Address node) { | static public final Treadmill getTreadmill (Address node) { return (Treadmill) DoublyLinkedList.getOwner(node); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/Treadmill.java/buggy/MMTk/src/org/mmtk/utility/Treadmill.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1071,
727,
399,
896,
81,
737,
3181,
896,
81,
737,
12,
1887,
756,
13,
288,
565,
327,
261,
56,
896,
81,
737,
13,
2256,
440,
93,
13174,
682,
18,
588,
5541,
12,
2159,
1769,
225,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
1071,
727,
399,
896,
81,
737,
3181,
896,
81,
737,
12,
1887,
756,
13,
288,
565,
327,
261,
56,
896,
81,
737,
13,
2256,
440,
93,
13174,
682,
18,
588,
5541,
12,
2159,
1769,
225,
28... |
final Set overriddenMethods = calculateOverriddenMethods(methods); | final Set<PsiMethod> overriddenMethods = calculateOverriddenMethods(methods); | private static boolean hasAbstractMethods(PsiClass aClass) { final PsiMethod[] methods = aClass.getMethods(); final Set overriddenMethods = calculateOverriddenMethods(methods); final PsiMethod[] allMethods = aClass.getAllMethods(); for (int i = 0; i < allMethods.length; i++) { final PsiMethod method = allMethods[i]; if (method.hasModifierProperty(PsiModifier.ABSTRACT) && !overriddenMethods.contains(method)) { return true; } } return false; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/2d46d291193579a7564649b4881c7ea8e02eda5b/AbstractClassWithoutAbstractMethodsInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/AbstractClassWithoutAbstractMethodsInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
1250,
711,
7469,
4712,
12,
52,
7722,
797,
20148,
13,
288,
5411,
727,
453,
7722,
1305,
8526,
2590,
273,
20148,
18,
588,
4712,
5621,
5411,
727,
1000,
32,
52,
7722,
1305,
34,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
760,
1250,
711,
7469,
4712,
12,
52,
7722,
797,
20148,
13,
288,
5411,
727,
453,
7722,
1305,
8526,
2590,
273,
20148,
18,
588,
4712,
5621,
5411,
727,
1000,
32,
52,
7722,
1305,
34,
11... |
incrementalSearch(start,true); | timerIncrementalSearch(start,true); | public void removeUpdate(DocumentEvent evt) { // on backspace, restart from beginning if(!hyperSearch.isSelected()) { String text = find.getText(); if(text.length() != 0) { // don't beep if not found. // subsequent beeps are very // annoying when backspacing an // invalid search string. if(regexp.isSelected()) { // reverse regexp search // not supported yet, so // 'sumulate' with restart incrementalSearch(0,false); } else { int start; JEditTextArea textArea = view.getTextArea(); Selection s = textArea.getSelectionAtOffset( textArea.getCaretPosition()); if(s == null) start = textArea.getCaretPosition(); else start = s.getStart(); incrementalSearch(start,true); } } } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/af9be1932ec49cc12ed1a405bf423d364278397d/SearchBar.java/buggy/org/gjt/sp/jedit/search/SearchBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1206,
1891,
12,
2519,
1133,
6324,
13,
202,
202,
95,
1082,
202,
759,
603,
1473,
2981,
16,
7870,
628,
8435,
1082,
202,
430,
12,
5,
17203,
2979,
18,
291,
7416,
10756,
1082,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1206,
1891,
12,
2519,
1133,
6324,
13,
202,
202,
95,
1082,
202,
759,
603,
1473,
2981,
16,
7870,
628,
8435,
1082,
202,
430,
12,
5,
17203,
2979,
18,
291,
7416,
10756,
1082,... |
component = (Component)iterator.next(); | component = (Component)iterator.next(); | public Object next() { component = (Component)iterator.next(); return component; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/a8a971d915a5adf9e0e7067e51e3fe4e2cbf88ac/MarkupContainer.java/buggy/wicket/src/java/wicket/MarkupContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
1024,
1435,
202,
202,
95,
1082,
202,
4652,
273,
261,
1841,
13,
9838,
18,
4285,
5621,
1875,
202,
2463,
1794,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
1024,
1435,
202,
202,
95,
1082,
202,
4652,
273,
261,
1841,
13,
9838,
18,
4285,
5621,
1875,
202,
2463,
1794,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
"chi-square test -- will fail about 1 in 100 times", chiSquare(expected,observed) < 6.64); | "chi-square test -- will fail about 1 in 1000 times", chiSquare(expected,observed) < 10.83); | private void tstNextFloat(Random rnd) { int[] expected = new int[] {500,500}; int[] observed = new int[] {0,0}; float result = 0; for (int i = 0; i < 1000; i ++) { if (rnd == null) { result = RandomUtils.nextFloat(); } else { result = RandomUtils.nextFloat(rnd); } if (result < 0.5) { observed[0]++; } else { observed[1]++; } } /* Use ChiSquare dist with df = 2-1 = 1, alpha = .01 * Change to 10.83 for alpha = .001 */ assertTrue( "chi-square test -- will fail about 1 in 100 times", chiSquare(expected,observed) < 6.64); } | 4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/8f45918465c1c992d55fe08f2d7e49689b722b38/RandomUtilsTest.java/clean/src/test/org/apache/commons/lang/math/RandomUtilsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
268,
334,
2134,
4723,
12,
8529,
20391,
13,
288,
3639,
509,
8526,
2665,
273,
394,
509,
8526,
288,
12483,
16,
12483,
20451,
3639,
509,
8526,
12117,
273,
394,
509,
8526,
288,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
268,
334,
2134,
4723,
12,
8529,
20391,
13,
288,
3639,
509,
8526,
2665,
273,
394,
509,
8526,
288,
12483,
16,
12483,
20451,
3639,
509,
8526,
12117,
273,
394,
509,
8526,
288,
20,
... |
public void mT64() throws RecognitionException { try { ruleNestingLevel++; int _type = T64; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: ( 'matches' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:44:7: 'matches' { match("matches"); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
1105,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
1105,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
1105,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
1105,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621... | ||
applyFacets(facets, presentFacet, fixedFacet, (short)0); | applyFacets(facets, presentFacet, fixedFacet, (short)0, null); | void applyFacets1(XSFacets facets, short presentFacet, short fixedFacet) { try { applyFacets(facets, presentFacet, fixedFacet, (short)0); } catch (InvalidDatatypeFacetException e) { // should never gets here, internel error throw new RuntimeException("internal error"); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/e3113b434427fb887f541ab39859accc6056aa47/XSSimpleTypeDecl.java/buggy/src/org/apache/xerces/impl/dv/xs_new/XSSimpleTypeDecl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2230,
6645,
2413,
21,
12,
60,
55,
6645,
2413,
21681,
16,
3025,
3430,
11137,
16,
3025,
5499,
11137,
13,
288,
3639,
775,
288,
5411,
2230,
6645,
2413,
12,
11639,
2413,
16,
3430,
11137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2230,
6645,
2413,
21,
12,
60,
55,
6645,
2413,
21681,
16,
3025,
3430,
11137,
16,
3025,
5499,
11137,
13,
288,
3639,
775,
288,
5411,
2230,
6645,
2413,
12,
11639,
2413,
16,
3430,
11137,
... |
throw new PSQLException("postgresql.prep.param", new Integer(i + 1)); | throw new PSQLException("postgresql.prep.param", PSQLState.PARAMETER_ERROR, new Integer(i + 1)); | private void sendQueryV2() throws SQLException { for ( int i = 0; i < m_binds.length ; i++ ) { if ( m_binds[i] == null ) throw new PSQLException("postgresql.prep.param", new Integer(i + 1)); } try { pgStream.SendChar('Q'); for (int i = 0 ; i < m_binds.length ; ++i) { pgStream.Send(connection.getEncoding().encode(m_sqlFrags[i])); pgStream.Send(connection.getEncoding().encode(m_binds[i].toString())); } pgStream.Send(connection.getEncoding().encode(m_sqlFrags[m_binds.length])); pgStream.SendChar(0); pgStream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror", e); } } | 45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/0378a269f3ab3c44e67b14f96414b6ca95263263/QueryExecutor.java/buggy/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1366,
1138,
58,
22,
1435,
1216,
6483,
202,
95,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
312,
67,
4376,
87,
18,
2469,
274,
277,
9904,
262,
202,
202,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
1138,
58,
22,
1435,
1216,
6483,
202,
95,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
312,
67,
4376,
87,
18,
2469,
274,
277,
9904,
262,
202,
202,
95,
... |
super(name, containers, searchFor, limit, mode, caseSensitive); | super(name, containers, searchFor, limit, mode, caseSensitive, false); | public DerivedTypesPattern(char[] name, char[][] containers, SearchFor searchFor, LimitTo limit, int mode, boolean caseSensitive) { super(name, containers, searchFor, limit, mode, caseSensitive); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/9df1ac81b8bb26202e5912b5a24e7aa467b6ce85/DerivedTypesPattern.java/clean/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/DerivedTypesPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14969,
2950,
2016,
3234,
12,
3001,
8526,
508,
16,
1149,
63,
6362,
65,
8475,
16,
5167,
1290,
1623,
1290,
16,
7214,
774,
1800,
16,
509,
1965,
16,
1250,
20975,
13,
288,
202,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14969,
2950,
2016,
3234,
12,
3001,
8526,
508,
16,
1149,
63,
6362,
65,
8475,
16,
5167,
1290,
1623,
1290,
16,
7214,
774,
1800,
16,
509,
1965,
16,
1250,
20975,
13,
288,
202,
202,... |
protected boolean isXmlTag(final ASTNode child) { | protected static boolean isXmlTag(final ASTNode child) { | protected boolean isXmlTag(final ASTNode child) { return isXmlTag(child.getPsi()); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dc059db62583674c0778a94e2c9bc2c5d7ca147a/AbstractXmlBlock.java/buggy/source/com/intellij/psi/formatter/xml/AbstractXmlBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1250,
353,
4432,
1805,
12,
6385,
9183,
907,
1151,
13,
288,
565,
327,
353,
4432,
1805,
12,
3624,
18,
588,
52,
7722,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1250,
353,
4432,
1805,
12,
6385,
9183,
907,
1151,
13,
288,
565,
327,
353,
4432,
1805,
12,
3624,
18,
588,
52,
7722,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public boolean wasSuccessful () | public boolean wasSuccessful() | public boolean wasSuccessful () { return ! this.compileFailed; } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/47db88bfea6b64e47a33aa3c937b2ce6e8640d56/Compiler.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1703,
14277,
1435,
225,
288,
565,
327,
401,
333,
18,
11100,
2925,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1703,
14277,
1435,
225,
288,
565,
327,
401,
333,
18,
11100,
2925,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
public static CSSOMReadOnlyStyleDeclaration getComputedStyle(Element e) { return getViewCSS(e).getComputedStyleInternal(e, null); | public static Value getComputedStyle(Element e, int property) { return getCSSEngine(e).getComputedStyle((CSSStylableElement)e, null, property); | public static CSSOMReadOnlyStyleDeclaration getComputedStyle(Element e) { return getViewCSS(e).getComputedStyleInternal(e, null); } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/73c18fe9666e3e12716d10fc9afa64073db4c647/CSSUtilities.java/buggy/sources/org/apache/batik/bridge/CSSUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6765,
1872,
12066,
2885,
6094,
29567,
2885,
12,
1046,
425,
13,
288,
3639,
327,
8893,
10276,
12,
73,
2934,
588,
17934,
2885,
3061,
12,
73,
16,
446,
1769,
565,
289,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6765,
1872,
12066,
2885,
6094,
29567,
2885,
12,
1046,
425,
13,
288,
3639,
327,
8893,
10276,
12,
73,
2934,
588,
17934,
2885,
3061,
12,
73,
16,
446,
1769,
565,
289,
2,
-100,
-1... |
String command = "up pump " + flags + " -i " + name + " || ifconfig " + name + " " + DHCP_BOGUS_ADDRESS + space.getIndex() + " netmask 255.255.255.0"; | String command = "up "; if ( isBridge ) { /* Give some time for the bridge to come alive */ command += "sleep 5; "; } command += "pump " + flags + " -i " + name + " || "; command += " ( ifconfig " + name + " " + DHCP_BOGUS_ADDRESS + space.getIndex() + " netmask 255.255.0.0; "; /* Don't need to check if it exists, because if it doesn't * the || true at the end will catch it. Make sure to background * this since it can block */ command += " nohup sh " + DHCP_AUTO_RENEW + " " + name + " & )"; | private void addNetworkSpace( NetworkSpaceInternal space, boolean isFirst ) throws NetworkException, ArgonException { NetworkUtilPriv nu = NetworkUtilPriv.getPrivInstance(); List<InterfaceInternal> interfaceList = (List<InterfaceInternal>)space.getInterfaceList(); String name = space.getDeviceName(); boolean isBridge = space.isBridge(); int mtu = space.getMtu(); appendLine( "auto " + name ); List<IPNetwork> networkList = (List<IPNetwork>)space.getNetworkList(); IPNetwork primaryAddress = null; appendLine( "iface " + name + " inet manual" ); /* Insert the flush command for the first network space */ if ( isFirst ) { appendCommands( "pre-up if [ -r " + FLUSH_CONFIG + " ]; then sh " + FLUSH_CONFIG + "; fi" ); } /* If this is a bridge, then add the necessary settings for the bridge */ if ( isBridge ) { appendCommands( "up brctl addbr " + name ); /* Build a list of all of the ports inside of the bridge */ for ( InterfaceInternal intf : interfaceList ) { String dev = intf.getIntfName(); appendCommands( "up brctl addif " + name + " " + dev, "up ifconfig " + dev + " 0.0.0.0 mtu " + mtu + " up" ); EthernetMedia media = intf.getEthernetMedia(); if ( media.isAuto()) { appendCommands( "up ethtool -s " + dev + " autoneg on" ); } else { appendCommands( "up ethtool -s " + dev + " autoneg off" + " speed " + media.getSpeed() + " duplex " + media.getDuplex()); } } } /* Add the primary address */ if ( space.getIsDhcpEnabled()) { /* This jibberish guarantees that if the device doesn't come up, it still * gets an address */ String flags = ""; /* If this is not the primary space, then the gateway and * /etc/resolv.conf should not be updated. */ if ( !isFirst ) flags = DHCP_FLAG_ADDRESS_ONLY; String command = "up pump " + flags + " -i " + name + " || ifconfig " + name + " " + DHCP_BOGUS_ADDRESS + space.getIndex() + " netmask 255.255.255.0"; appendCommands( command ); appendCommands( "up ifconfig " + name + " mtu " + mtu ); } else { primaryAddress = space.getPrimaryAddress(); appendCommands( "up ifconfig " + name + " " + primaryAddress.getNetwork() + " netmask " + primaryAddress.getNetmask() + " mtu " + mtu ); } /* Add all of the aliases */ int aliasIndex = 0; for ( IPNetwork network : networkList ) { /* Only add the primary address is DHCP is not enabled */ if ( !space.getIsDhcpEnabled() && network.equals( primaryAddress )) continue; if ( nu.isUnicast( network )) { String aliasName = name + ":" + aliasIndex++; appendCommands( "up ifconfig " + aliasName + " " + network.getNetwork() + " netmask " + network.getNetmask() + " mtu " + mtu ); } else { appendCommands( "up ip route add to " + nu.toRouteString( network ) + " dev " + name ); } } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/cea08e3237366d7d5802e376b544c6eb1f0cb321/InterfacesScriptWriter.java/clean/mvvm/main/com/metavize/mvvm/networking/InterfacesScriptWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
3906,
3819,
12,
5128,
3819,
3061,
3476,
16,
1250,
17447,
262,
3639,
1216,
5128,
503,
16,
14448,
265,
503,
565,
288,
3639,
5128,
1304,
15475,
9244,
273,
5128,
1304,
15475,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3906,
3819,
12,
5128,
3819,
3061,
3476,
16,
1250,
17447,
262,
3639,
1216,
5128,
503,
16,
14448,
265,
503,
565,
288,
3639,
5128,
1304,
15475,
9244,
273,
5128,
1304,
15475,
... |
languageModel = LanguageModelFactory.createLanguageModel(context); | languageModel = LanguageModelFactory.createLanguageModel (context, dictionary); | public LMGramTest(String propertiesFile) throws Exception { LanguageModel languageModel; edu.cmu.sphinx.decoder.linguist.Grammar grammar; String pwd = System.getProperty("user.dir"); SphinxProperties.initContext (context, new URL ("file://" + pwd + File.separatorChar + propertiesFile)); SphinxProperties props = SphinxProperties.getSphinxProperties(context); Timer lmTimer = Timer.getTimer("LMGramTest", "LanguageModel"); Timer gramTimer = Timer.getTimer("LMGramTest", "Grammar"); lmTimer.start(); languageModel = LanguageModelFactory.createLanguageModel(context); lmTimer.stop(); Utilities.dumpMemoryInfo("before grammar load"); gramTimer.start(); grammar = new edu.cmu.sphinx.decoder.linguist.LMGrammar(); grammar.initialize(props.getContext(), languageModel, null); gramTimer.stop(); Utilities.dumpMemoryInfo("after grammar load"); Timer.dumpAll(); grammar.dumpStatistics(); } | 48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/72c5caae6fb9536f9adae72376d9ed3745996aee/LMGramTest.java/clean/sphinx4/tests/knowledge/language/LMGramTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
511,
49,
43,
1940,
4709,
12,
780,
1790,
812,
13,
1216,
1185,
288,
7734,
9889,
1488,
2653,
1488,
31,
3639,
1675,
89,
18,
7670,
89,
18,
87,
15922,
18,
21070,
18,
2456,
89,
376,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
511,
49,
43,
1940,
4709,
12,
780,
1790,
812,
13,
1216,
1185,
288,
7734,
9889,
1488,
2653,
1488,
31,
3639,
1675,
89,
18,
7670,
89,
18,
87,
15922,
18,
21070,
18,
2456,
89,
376,
18... |
else if(type == OrderType.STOP) | else if (type == OrderType.STOP) { | public quickfix.Message populateOrder (Order order, quickfix.Message newOrderSingle) { OrderType type = order.getType(); if(type == OrderType.LIMIT) newOrderSingle.setField(new Price(order.getLimit().doubleValue())); else if(type == OrderType.STOP) newOrderSingle.setField(new StopPx(order.getStop().doubleValue())); else if(type == OrderType.STOP_LIMIT) { newOrderSingle.setField(new Price(order.getLimit().doubleValue())); newOrderSingle.setField(new StopPx(order.getStop().doubleValue())); } newOrderSingle.setField(tifToFIXTif(order.getTIF())) ; return newOrderSingle; } | 6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/0bd1e934eb1e5bceb1fadcbbc9c4e690607da873/BanzaiApplication.java/buggy/examples/quickfix/examples/banzai/BanzaiApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
9549,
904,
18,
1079,
6490,
2448,
565,
261,
2448,
1353,
16,
9549,
904,
18,
1079,
394,
2448,
5281,
13,
288,
3639,
4347,
559,
618,
273,
1353,
18,
588,
559,
5621,
3639,
309,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
225,
9549,
904,
18,
1079,
6490,
2448,
565,
261,
2448,
1353,
16,
9549,
904,
18,
1079,
394,
2448,
5281,
13,
288,
3639,
4347,
559,
618,
273,
1353,
18,
588,
559,
5621,
3639,
309,
12,
... |
sessionTempDirStr = tempRootDirStr + File.separator + prefix + System.currentTimeMillis( ); | i++; sessionTempDirStr = sessionTempDirStr + "_" + i; | public static String createSessionTempDir( String tempRootDirStr ) { String sessionTempDirStr; final String prefix = "session_"; sessionTempDirStr = tempRootDirStr + File.separator + prefix + System.currentTimeMillis( ); File file = new File( sessionTempDirStr ); synchronized ( CacheUtil.class ) { while ( file.exists( ) ) { sessionTempDirStr = tempRootDirStr + File.separator + prefix + System.currentTimeMillis( ); file = new File( sessionTempDirStr ); } file.mkdir( ); } return sessionTempDirStr; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/610c5b64b0f592722ce6c2d29c132207ea052e63/CacheUtil.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/CacheUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
752,
2157,
7185,
1621,
12,
514,
1906,
27322,
1585,
262,
202,
95,
202,
202,
780,
1339,
7185,
1621,
1585,
31,
202,
202,
6385,
514,
1633,
273,
315,
3184,
9548,
31,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
752,
2157,
7185,
1621,
12,
514,
1906,
27322,
1585,
262,
202,
95,
202,
202,
780,
1339,
7185,
1621,
1585,
31,
202,
202,
6385,
514,
1633,
273,
315,
3184,
9548,
31,
202,... |
String s = getFixedString(columnIndex); if (s != null) { try { return Long.parseLong(s); } catch (NumberFormatException e) { throw new PSQLException ("postgresql.res.badlong",s); } } return 0; | return toLong( getFixedString(columnIndex) ); | public long getLong(int columnIndex) throws SQLException { String s = getFixedString(columnIndex); if (s != null) { try { return Long.parseLong(s); } catch (NumberFormatException e) { throw new PSQLException ("postgresql.res.badlong",s); } } return 0; // SQL NULL } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/a21c0960586f75bdab20c379804b5ee6869b91ee/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
11105,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
514,
272,
273,
2812,
3960,
780,
12,
2827,
1016,
1769,
565,
309,
261,
87,
480,
446,
13,
1377,
288,
202,
698,
202,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
11105,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
514,
272,
273,
2812,
3960,
780,
12,
2827,
1016,
1769,
565,
309,
261,
87,
480,
446,
13,
1377,
288,
202,
698,
202,
225,
... |
"\t@Property String firstName; \n" + "\t@Property String lastName; \n" + "\t@Property Integer age;\n" + | "\t String firstName; \n" + "\t String lastName; \n" + "\t Integer age;\n" + "boolean active = true" + | protected void onSetUp() throws Exception { Class groovyClass = cl.parseClass("public class PersistentMethodTests {\n" + "\n" + "\t@Property List optionals = [ \"age\" ];\n" + "\t\n" + "\t@Property Long id; \n" + "\t@Property Long version; \n" + "\t\n" + "\t@Property String firstName; \n" + "\t@Property String lastName; \n" + "\t@Property Integer age;\n" + "\t\n" + "\t@Property constraints = {\n" + "\t\tfirstName(length:4..15)\n" + "\t}\n" + "}"); grailsApplication = new DefaultGrailsApplication(new Class[]{groovyClass},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)) { this.hibSession = this.sessionFactory.openSession(); TransactionSynchronizationManager.bindResource(this.sessionFactory, new SessionHolder(hibSession)); } new DomainClassMethods(grailsApplication,groovyClass,sessionFactory,cl); GrailsDomainClassValidator validator = new GrailsDomainClassValidator(); GrailsDomainClass domainClass =this.grailsApplication.getGrailsDomainClass("PersistentMethodTests"); validator.setDomainClass(this.grailsApplication.getGrailsDomainClass("PersistentMethodTests")); domainClass.setValidator(validator); super.onSetUp(); } | 51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/dd7ca7d1686d48648d4eab36fa08f1bfb26eb0ea/PersistentMethodTests.java/clean/test/persistence/org/codehaus/groovy/grails/orm/hibernate/PersistentMethodTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
694,
1211,
1435,
1216,
1185,
288,
5411,
1659,
24955,
797,
273,
927,
18,
2670,
797,
2932,
482,
667,
11049,
1305,
14650,
18890,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
694,
1211,
1435,
1216,
1185,
288,
5411,
1659,
24955,
797,
273,
927,
18,
2670,
797,
2932,
482,
667,
11049,
1305,
14650,
18890,
82,
6,
397,
7734,
1548,
82,
6,
397,
7734,
1... |
DebuggerSession debuggerSession = (DebuggerManagerEx.getInstanceEx(project)).getContext().getDebuggerSession(); presentation.setEnabled(debuggerSession != null && debuggerSession.isPaused()); | final DebuggerContextImpl context = (DebuggerManagerEx.getInstanceEx(project)).getContext(); DebuggerSession debuggerSession = context.getDebuggerSession(); final boolean isPaused = debuggerSession != null && debuggerSession.isPaused(); final SuspendContextImpl suspendContext = context.getSuspendContext(); final boolean hasCurrentThread = suspendContext != null && suspendContext.getThread() != null; presentation.setEnabled(isPaused && hasCurrentThread); | public void update(AnActionEvent event){ Presentation presentation = event.getPresentation(); Project project = (Project)event.getDataContext().getData(DataConstants.PROJECT); if (project == null) { presentation.setEnabled(false); return; } DebuggerSession debuggerSession = (DebuggerManagerEx.getInstanceEx(project)).getContext().getDebuggerSession(); presentation.setEnabled(debuggerSession != null && debuggerSession.isPaused()); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d447cb36ef9ce5ba18d62292a4a7d77329ca89e0/ForceStepIntoAction.java/clean/source/com/intellij/debugger/actions/ForceStepIntoAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
12,
979,
1803,
1133,
871,
15329,
565,
25130,
367,
22525,
273,
871,
18,
588,
6351,
367,
5621,
565,
5420,
1984,
273,
261,
4109,
13,
2575,
18,
588,
751,
1042,
7675,
588,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
12,
979,
1803,
1133,
871,
15329,
565,
25130,
367,
22525,
273,
871,
18,
588,
6351,
367,
5621,
565,
5420,
1984,
273,
261,
4109,
13,
2575,
18,
588,
751,
1042,
7675,
588,
7... |
ArchiveManager(int maxHandlers, long maxCachedData, long maxArchiveSize, long maxArchivedFileSize, int maxCachedElements, File cacheDir, RandomSource random) { | public ArchiveManager(int maxHandlers, long maxCachedData, long maxArchiveSize, long maxArchivedFileSize, int maxCachedElements, RandomSource random, FilenameGenerator filenameGenerator) { | ArchiveManager(int maxHandlers, long maxCachedData, long maxArchiveSize, long maxArchivedFileSize, int maxCachedElements, File cacheDir, RandomSource random) { maxArchiveHandlers = maxHandlers; archiveHandlers = new LRUHashtable(); cachedElements = new LRUHashtable(); this.maxCachedElements = maxCachedElements; this.maxCachedData = maxCachedData; this.cacheDir = cacheDir; storedData = new LRUHashtable(); this.maxArchiveSize = maxArchiveSize; this.maxArchivedFileSize = maxArchivedFileSize; this.random = random; } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/ae3ccb61c1609ac123f2a825e60ff11564556df6/ArchiveManager.java/clean/src/freenet/client/ArchiveManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7465,
1318,
12,
474,
943,
6919,
16,
1525,
943,
9839,
751,
16,
1525,
943,
7465,
1225,
16,
1525,
943,
12269,
2950,
15100,
16,
509,
943,
9839,
3471,
16,
1387,
19946,
16,
8072,
1830,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
7465,
1318,
12,
474,
943,
6919,
16,
1525,
943,
9839,
751,
16,
1525,
943,
7465,
1225,
16,
1525,
943,
12269,
2950,
15100,
16,
509,
943,
9839,
3471,
16,
1387,
19946,
16,
8072,
1830,
2... |
if (window.getShell() != null && !window.getShell().isDisposed()) { window.getShell().getDisplay().syncExec(new Runnable() { public void run() { updateBuildActions(); } }); } | updateBuildActions(); | public void propertyChange(Preferences.PropertyChangeEvent event) { if (event.getProperty().equals( ResourcesPlugin.PREF_AUTO_BUILDING)) { if (window.getShell() != null && !window.getShell().isDisposed()) { // this property change notification could be from a non-ui thread window.getShell().getDisplay().syncExec(new Runnable() { public void run() { updateBuildActions(); } }); } } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c9f23eeee557798de8512ad028a3b1434f155755/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1272,
3043,
12,
12377,
18,
1396,
20930,
871,
13,
288,
7734,
309,
261,
2575,
18,
588,
1396,
7675,
14963,
12,
13491,
8128,
3773,
18,
3670,
42,
67,
18909,
67,
20215,
1360,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1272,
3043,
12,
12377,
18,
1396,
20930,
871,
13,
288,
7734,
309,
261,
2575,
18,
588,
1396,
7675,
14963,
12,
13491,
8128,
3773,
18,
3670,
42,
67,
18909,
67,
20215,
1360,
3719,
... |
private void close () { | void close () { | private void close () { in_r.appendEOF(); numConsoles--; dispose(); // Give thread chance to finish and clean up try { Thread.sleep(100); } catch (InterruptedException ex) { } if (numConsoles <= 0) System.exit(0); // Thread.stop is deprecated in JDK 1.2, but I see no good // alternative. (Thread.destroy is not implemented!) thread.stop(); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/90756ec146a1ead127a331a9902f85bf8a1b924f/GuiConsole.java/clean/kawa/GuiConsole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1746,
1832,
288,
565,
316,
67,
86,
18,
6923,
12706,
5621,
565,
818,
9054,
9112,
413,
31,
565,
15825,
5621,
565,
368,
22374,
2650,
17920,
358,
4076,
471,
2721,
731,
565,
775,
288,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1746,
1832,
288,
565,
316,
67,
86,
18,
6923,
12706,
5621,
565,
818,
9054,
9112,
413,
31,
565,
15825,
5621,
565,
368,
22374,
2650,
17920,
358,
4076,
471,
2721,
731,
565,
775,
288,
1... |
MylarPlugin.fail(t, "could not generate usage report", false); } | MylarPlugin.fail(t, "could not generate usage report", false); } | public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { UsageStatisticsSummary statistics = new UsageStatisticsSummary(); Map<Integer, Map<String, InteractionEventSummary>> summaryMap = new HashMap<Integer, Map<String, InteractionEventSummary>>(); Map<Integer, List<File>> filesPerUser = new HashMap<Integer, List<File>>(); try { // Go through the files to determine which users we have to process (by user id) for ( File source: sources ) { int userId = getUserId( source ); userIds.add(userId); List<File> filesForUser = null; if ( filesPerUser.containsKey( userId )) filesForUser = filesPerUser.get( userId ); if ( filesForUser == null ) filesForUser = new ArrayList<File>(); filesForUser.add( source ); filesPerUser.put( userId, filesForUser ); } } catch (Throwable t) { t.printStackTrace(); MylarPlugin.fail(t, "could not generate usage report", false); } try { // There are three processing events per user monitor.beginTask(JOB_LABEL, userIds.size() * 3); // Process the files for each user for( Integer aUser: filesPerUser.keySet() ) { Map<String, SortedSet<InteractionEvent>> userEvents = new HashMap<String, SortedSet<InteractionEvent>>(); for ( File aFile: filesPerUser.get( aUser )) { String phase = getPhase( aFile ); SortedSet<InteractionEvent> orderedEvents; if ( userEvents.get( phase ) == null ) { orderedEvents = new TreeSet<InteractionEvent>( new InteractionEventComparator()); orderedEvents.addAll( this.generator.logger.getHistoryFromFile(aFile)); } else { orderedEvents = userEvents.get(phase); orderedEvents.addAll( this.generator.logger.getHistoryFromFile(aFile)); } userEvents.put( phase, orderedEvents ); } monitor.worked(1); // If there are scanners registered, give each event to each scanner in turn if (this.generator.scanners != null && this.generator.scanners.size() > 0) { for ( Map.Entry<String, SortedSet<InteractionEvent>> eventsPerPhase: userEvents.entrySet() ) { String phaseToProcess = eventsPerPhase.getKey(); SortedSet<InteractionEvent> events = eventsPerPhase.getValue(); for (InteractionEvent event : events ) { for (IUsageScanner scanner : this.generator.scanners) { scanner.scanEvent(event, aUser, phaseToProcess); } } } } monitor.worked(1); // Consume all events for ( Map.Entry<String, SortedSet<InteractionEvent>> eventsPerPhase: userEvents.entrySet() ) { String phaseToProcess = eventsPerPhase.getKey(); SortedSet<InteractionEvent> events = eventsPerPhase.getValue(); for (InteractionEvent event : events ) { if (event.getKind().isUserEvent()) { // TODO: some collectors may want non-user events for (IUsageCollector collector : this.generator.collectors) collector.consumeEvent(event, aUser, phaseToProcess); } createUsageTableData(summaryMap, event, aUser); } } monitor.worked(1); } for (IUsageCollector collector : this.generator.collectors) statistics.add(collector); List<InteractionEventSummary> flattenedSummaries = new ArrayList<InteractionEventSummary>(); for (Map<String, InteractionEventSummary> userSummary : summaryMap.values()) { flattenedSummaries.addAll(userSummary.values()); } statistics.setSingleSummaries(flattenedSummaries); this.generator.lastParsedSummary = statistics; monitor.done(); } catch (Throwable t) { t.printStackTrace(); MylarPlugin.fail(t, "could not generate usage report", false); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/69cf4a60cebdb2edef88b409b2e36e233cd05c24/ReportGenerator.java/clean/sandbox/org.eclipse.mylyn.monitor.reports/src/org/eclipse/mylyn/monitor/reports/ReportGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
1082,
202,
5357,
8569,
4733,
7691,
273,
394,
10858,
8569,
4733,
5621,
1082,
202,
863,
32,
4522,
16,
1635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
1082,
202,
5357,
8569,
4733,
7691,
273,
394,
10858,
8569,
4733,
5621,
1082,
202,
863,
32,
4522,
16,
1635,
... |
boolean synPredMatched506 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m506 = mark(); synPredMatched506 = true; | boolean synPredMatched522 = false; if (((_tokenSet_19.member(LA(1))) && (_tokenSet_20.member(LA(2))) && (_tokenSet_21.member(LA(3))) && (true))) { int _m522 = mark(); synPredMatched522 = true; | public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; inAttributeContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: boolean synPredMatched508 = false; if (((LA(1)=='(') && (LA(2)==':') && (LA(3)==':') && (LA(4)=='p'))) { int _m508 = mark(); synPredMatched508 = true; inputState.guessing++; try { { match("(::"); } } catch (RecognitionException pe) { synPredMatched508 = false; } rewind(_m508); inputState.guessing--; } if ( synPredMatched508 ) { mPRAGMA(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_6.member(LA(3))) && (_tokenSet_6.member(LA(4)))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='-')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { String data = new String(text.getBuffer(),_begin,text.length()-_begin); parseLinefeeds(data); _ttype = XML_COMMENT; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='[')) { mXML_CDATA(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA; } } else { boolean synPredMatched522 = false; if (((_tokenSet_19.member(LA(1))) && (_tokenSet_20.member(LA(2))) && (_tokenSet_21.member(LA(3))) && (true))) { int _m522 = mark(); synPredMatched522 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_2.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched522 = false; } rewind(_m522); inputState.guessing--; } if ( synPredMatched522 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA_END; } } else { boolean synPredMatched506 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m506 = mark(); synPredMatched506 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched506 = false; } rewind(_m506); inputState.guessing--; } if ( synPredMatched506 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched510 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m510 = mark(); synPredMatched510 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched510 = false; } rewind(_m510); inputState.guessing--; } if ( synPredMatched510 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_13.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '"' )) { mQUOT_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = QUOT_ATTRIBUTE_CONTENT; } } else if (((_tokenSet_14.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent && attrDelimChar == '\'' )) { mAPOS_ATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = APOS_ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((LA(1)=='\'') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mAPOS(false); if ( inputState.guessing==0 ) { _ttype = APOS; } } else if (((_tokenSet_22.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_23.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched513 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m513 = mark(); synPredMatched513 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched513 = false; } rewind(_m513); inputState.guessing--; } if ( synPredMatched513 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched515 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m515 = mark(); synPredMatched515 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched515 = false; } rewind(_m515); inputState.guessing--; } if ( synPredMatched515 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched517 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m517 = mark(); synPredMatched517 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched517 = false; } rewind(_m517); inputState.guessing--; } if ( synPredMatched517 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched524 = false; if (((_tokenSet_19.member(LA(1))) && (true) && (true) && (true))) { int _m524 = mark(); synPredMatched524 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched524 = false; } rewind(_m524); inputState.guessing--; } if ( synPredMatched524 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_2.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/4727e14c66fd37eb829a3fd46570cb83baeb326b/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
3... |
switch ( eDerivedStructuralFeatureID( eFeature ) ) | switch ( featureID ) | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.LINE_ATTRIBUTES__STYLE : unsetStyle( ); return; case AttributePackage.LINE_ATTRIBUTES__THICKNESS : unsetThickness( ); return; case AttributePackage.LINE_ATTRIBUTES__COLOR : setColor( (ColorDefinition) null ); return; case AttributePackage.LINE_ATTRIBUTES__VISIBLE : unsetVisible( ); return; } eDynamicUnset( eFeature ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/LineAttributesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/LineAttributesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
226... |
System.out.println("WodBuilder.handleClasspath: " + _resource); | public void handleClasspath(IResource _resource, IProgressMonitor _monitor, Map _buildCache) { System.out.println("WodBuilder.handleClasspath: " + _resource); } | 46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/ce6a2f95e935bf4245c28ffc127bce76ff5045af/WodBuilder.java/clean/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/builder/WodBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
17461,
12,
45,
1420,
389,
3146,
16,
467,
5491,
7187,
389,
10259,
16,
1635,
389,
3510,
1649,
13,
288,
377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
17461,
12,
45,
1420,
389,
3146,
16,
467,
5491,
7187,
389,
10259,
16,
1635,
389,
3510,
1649,
13,
288,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
public void runToCursor(Document document, int line) { | public void runToCursor(Document document, int line, final boolean ignoreBreakpoints) { | public void runToCursor(Document document, int line) { try { SuspendContextCommandImpl runToCursorCommand = myDebugProcess.createRunToCursorCommand(getSuspendContext(), document, line); mySteppingThroughThreads.add(getSuspendContext().getThread()); resumeAction(runToCursorCommand, EVENT_STEP); } catch (EvaluateException e) { Messages.showErrorDialog(e.getMessage(), ActionsBundle.actionText(DebuggerActions.RUN_TO_CURSOR)); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/54b892b05496f9bc7ec57669244e87488a2a6d67/DebuggerSession.java/buggy/debugger/impl/com/intellij/debugger/impl/DebuggerSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
774,
6688,
12,
2519,
1668,
16,
509,
980,
16,
727,
1250,
2305,
7634,
4139,
13,
288,
565,
775,
288,
1377,
348,
18815,
1042,
2189,
2828,
1086,
774,
6688,
2189,
273,
3399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1086,
774,
6688,
12,
2519,
1668,
16,
509,
980,
16,
727,
1250,
2305,
7634,
4139,
13,
288,
565,
775,
288,
1377,
348,
18815,
1042,
2189,
2828,
1086,
774,
6688,
2189,
273,
3399,
... |
short pc = labelTable[itsStartLabel & 0x7FFFFFFF].getPC(); | short pc = table.getLabelPC(itsStartLabel & 0x7FFFFFFF); | short getStartPC(Label labelTable[]) { short pc = labelTable[itsStartLabel & 0x7FFFFFFF].getPC(); if (pc == -1) throw new RuntimeException("start label not defined"); return pc; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/59fedca6b17819e313ac22545d4a0c523cfdf08c/ClassFileWriter.java/buggy/js/rhino/src/org/mozilla/classfile/ClassFileWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3025,
8635,
3513,
12,
2224,
1433,
1388,
63,
5717,
565,
288,
3639,
3025,
6125,
273,
1014,
18,
588,
2224,
3513,
12,
1282,
1685,
2224,
473,
374,
92,
27,
18343,
42,
1769,
3639,
309,
261,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
8635,
3513,
12,
2224,
1433,
1388,
63,
5717,
565,
288,
3639,
3025,
6125,
273,
1014,
18,
588,
2224,
3513,
12,
1282,
1685,
2224,
473,
374,
92,
27,
18343,
42,
1769,
3639,
309,
261,
24... |
fail("Couldn't extract uptime"); | fail("Couldn't extract uptime: "+e); | public void testForwardsGGEP() { int TIMEOUT=1000; MiniAcceptor acceptor=new MiniAcceptor(new GGEPResponder(), PORT); ManagedConnection out=new ManagedConnection("localhost", PORT, new MessageRouterStub(), new ConnectionManagerStub()); try { out.initialize(); Connection in=acceptor.accept(); assertTrue(out.supportsGGEP()); out.send(new PingReply(new byte[16], (byte)3, 6349, new byte[4], 13l, 14l, false, 4321)); PingReply reply=(PingReply)in.receive(TIMEOUT); assertEquals(reply.getPort(), 6349); try { assertEquals(reply.getDailyUptime(), 4321); } catch (BadPacketException e) { fail("Couldn't extract uptime"); } in.close(); out.close(); } catch (IOException e) { e.printStackTrace(); fail("Mysterious IO problem: "+e); } catch (BadPacketException e) { fail("Bad packet: "+e); } } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/c53e29de6f0dbeee98c7a594140c2c57c0ec69a8/ManagedConnectionTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/ManagedConnectionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1290,
6397,
43,
7113,
52,
1435,
288,
3639,
509,
24374,
33,
18088,
31,
3639,
27987,
5933,
280,
2791,
280,
33,
2704,
27987,
5933,
280,
12,
2704,
611,
7113,
52,
28840,
9334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1290,
6397,
43,
7113,
52,
1435,
288,
3639,
509,
24374,
33,
18088,
31,
3639,
27987,
5933,
280,
2791,
280,
33,
2704,
27987,
5933,
280,
12,
2704,
611,
7113,
52,
28840,
9334,... |
return return_value; } | private String getColumnNameEN(String colbg){ String return_value=""; for(int i=0;i<columnsNames.length;i++) { if(columnsNames[i].equals(colbg)) { return_value = columnsNamesEN[i]; break; } } return return_value;} | 12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/ba6fed56cb52b278f5b34b26ee3d38610f6a9303/FrmGroup.java/buggy/src/nom/FrmGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
514,
20248,
1157,
12,
780,
645,
12370,
15329,
565,
514,
327,
67,
1132,
1546,
14432,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
5112,
1557,
18,
2469,
31,
77,
27245,
565,
288,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
514,
20248,
1157,
12,
780,
645,
12370,
15329,
565,
514,
327,
67,
1132,
1546,
14432,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
5112,
1557,
18,
2469,
31,
77,
27245,
565,
288,
3639,
... | |
elPaletteEntries.add(iSmaller, o1); elPaletteEntries.add(iSmaller, o2); | elPaletteEntries.add(iSmaller, o1); elPaletteEntries.add(iSmaller, o2); | private final void swap(int iIndex1, int iIndex2) { final Object o1 = elPaletteEntries.get(iIndex1); final Object o2 = elPaletteEntries.get(iIndex2); int iSmaller = Math.min(iIndex1, iIndex2); elPaletteEntries.remove(iSmaller); elPaletteEntries.remove(iSmaller); if (iIndex1 < iIndex2) { elPaletteEntries.add(iSmaller, o1); elPaletteEntries.add(iSmaller, o2); } else { elPaletteEntries.add(iSmaller, o2); elPaletteEntries.add(iSmaller, o1); } if (iSelectedIndex == iIndex1) { iSelectedIndex = iIndex2; } else if (iSelectedIndex == iIndex2) { iSelectedIndex = iIndex1; } scrollToView(iSelectedIndex); coPaletteEntries.redraw(); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/PaletteEditorComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/PaletteEditorComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
918,
7720,
12,
474,
22696,
21,
16,
509,
22696,
22,
13,
565,
288,
3639,
727,
1033,
320,
21,
273,
415,
25863,
5400,
18,
588,
12,
77,
1016,
21,
1769,
3639,
727,
1033,
320,
22,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
7720,
12,
474,
22696,
21,
16,
509,
22696,
22,
13,
565,
288,
3639,
727,
1033,
320,
21,
273,
415,
25863,
5400,
18,
588,
12,
77,
1016,
21,
1769,
3639,
727,
1033,
320,
22,... |
openDeclarationsAction = new DisplayDeclarationsAction(); openDeclarationsAction.setText(OPEN_DECLARATIONS); openDeclarationsAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); openReferencesAction = new DisplayReferencesAction(); openReferencesAction.setText(OPEN_REFERENCES); openReferencesAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); displayProblemsAction = new DisplayProblemsResultAction(); displayProblemsAction.setText(DISPLAY_PROBLEMS); displayProblemsAction.setImageDescriptor(DOMASTPluginImages.DESC_IASTProblem); | private void makeActions() { loadActiveEditorAction = new Action() { public void run() { openDOMASTView(getActiveEditor()); } }; loadActiveEditorAction.setText(LOAD_ACTIVE_EDITOR); loadActiveEditorAction.setToolTipText(LOAD_ACTIVE_EDITOR); loadActiveEditorAction.setImageDescriptor(DOMASTPluginImages.DESC_RELOAD_VIEW); refreshAction = new Action() { public void run() { // take a snapshot of the tree expansion Object[] expanded = viewer.getExpandedElements(); // set the new content provider setContentProvider(new ViewContentProvider(file, expanded)); } }; refreshAction.setText(REFRESH_DOM_AST); refreshAction.setToolTipText(REFRESH_DOM_AST); refreshAction.setImageDescriptor(DOMASTPluginImages.DESC_REFRESH_VIEW); expandAllAction = new Action() { public void run() { viewer.expandAll(); } }; expandAllAction.setText(EXPAND_ALL); expandAllAction.setToolTipText(EXPAND_ALL); expandAllAction.setImageDescriptor(DOMASTPluginImages.DESC_EXPAND_ALL); collapseAllAction = new Action() { public void run() { viewer.collapseAll(); } }; collapseAllAction.setText(COLLAPSE_ALL); collapseAllAction.setToolTipText(COLLAPSE_ALL); collapseAllAction.setImageDescriptor(DOMASTPluginImages.DESC_COLLAPSE_ALL); clearAction = new Action() { public void run() { viewer.setContentProvider(new ViewContentProvider(null)); viewer.refresh(); } }; clearAction.setText(CLEAR); clearAction.setToolTipText(CLEAR); clearAction.setImageDescriptor(DOMASTPluginImages.DESC_CLEAR); searchNamesAction = new Action() { private void performSearch() { if (viewer.getTree().getItems().length == 0) { showMessage(DOM_AST_HAS_NO_CONTENT); } FindIASTNameDialog dialog = new FindIASTNameDialog(getSite().getShell(), new FindIASTNameTarget(viewer, lang)); dialog.open(); } public void run() { performSearch(); } }; searchNamesAction.setText(SEARCH_FOR_IASTNAME); searchNamesAction.setToolTipText(SEARCH_FOR_IASTNAME); searchNamesAction.setImageDescriptor(DOMASTPluginImages.DESC_SEARCH_NAMES); openDeclarationsAction = new DisplayDeclarationsAction(); openDeclarationsAction.setText(OPEN_DECLARATIONS); openDeclarationsAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); openReferencesAction = new DisplayReferencesAction(); openReferencesAction.setText(OPEN_REFERENCES); openReferencesAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); displayProblemsAction = new DisplayProblemsResultAction(); displayProblemsAction.setText(DISPLAY_PROBLEMS); displayProblemsAction.setImageDescriptor(DOMASTPluginImages.DESC_IASTProblem); displayNodeTypeAction = new Action() { public void run() { ISelection selection = viewer.getSelection(); if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).getFirstElement() instanceof DOMASTNodeLeaf && ((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode() != null) { showMessage("ASTUtil#getNodeType(IASTNode): \"" + ASTTypeUtil.getNodeType(((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode()) + "\""); //$NON-NLS-1$ //$NON-NLS-2$ } } }; displayNodeTypeAction.setText(DISPLAY_TYPE); displayNodeTypeAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); displayNodeSignatureAction = new Action() { public void run() { ISelection selection = viewer.getSelection(); if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).getFirstElement() instanceof DOMASTNodeLeaf && ((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode() != null) { showMessage("ASTSignatureUtil#getNodeSignature(IASTNode): \"" + ASTSignatureUtil.getNodeSignature(((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode()) + "\""); //$NON-NLS-1$ //$NON-NLS-2$ } } }; displayNodeSignatureAction.setText(DISPLAY_SIGNATURE); displayNodeSignatureAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); displayExpressionAction = new Action() { public void run() { ISelection selection = viewer.getSelection(); if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).getFirstElement() instanceof DOMASTNodeLeaf && ((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode() instanceof IASTExpression) { showMessage("ASTSignatureUtil#getExpressionString(IASTExpression): \"" + ASTSignatureUtil.getExpressionString((IASTExpression)((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode()) + "\""); //$NON-NLS-1$ //$NON-NLS-2$ } } }; displayExpressionAction.setText(DISPLAY_EXPRESSION); displayExpressionAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); displayInitializerAction = new Action() { public void run() { ISelection selection = viewer.getSelection(); if (selection instanceof IStructuredSelection && ((IStructuredSelection)selection).getFirstElement() instanceof DOMASTNodeLeaf && ((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode() instanceof IASTInitializer) { showMessage("ASTSignatureUtil#getInitializerString(IASTInitializer): \"" + ASTSignatureUtil.getInitializerString((IASTInitializer)((DOMASTNodeLeaf)((IStructuredSelection)selection).getFirstElement()).getNode()) + "\""); //$NON-NLS-1$ //$NON-NLS-2$ } } }; displayInitializerAction.setText(DISPLAY_INITIALIZER); displayInitializerAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages() .getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK)); singleClickAction = new ASTHighlighterAction(part); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c394f40e489dd37280520439c09530c1c4a9e61f/DOMAST.java/buggy/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/DOMAST.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1221,
6100,
1435,
288,
202,
282,
1262,
3896,
6946,
1803,
273,
394,
4382,
1435,
288,
1082,
282,
1071,
918,
1086,
1435,
288,
9506,
282,
1696,
8168,
9053,
1767,
12,
588,
3896,
694... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
1221,
6100,
1435,
288,
202,
282,
1262,
3896,
6946,
1803,
273,
394,
4382,
1435,
288,
1082,
282,
1071,
918,
1086,
1435,
288,
9506,
282,
1696,
8168,
9053,
1767,
12,
588,
3896,
694... | |
switch(column) { | switch (column) { | public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: //return "Type"; //case 2: return " Value"; } return null; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
514,
20248,
12,
474,
1057,
13,
288,
10792,
1620,
261,
2827,
13,
288,
10792,
648,
374,
30,
13491,
327,
315,
1770,
14432,
10792,
648,
404,
30,
13491,
368,
2463,
315,
559,
14432,
1349... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
514,
20248,
12,
474,
1057,
13,
288,
10792,
1620,
261,
2827,
13,
288,
10792,
648,
374,
30,
13491,
327,
315,
1770,
14432,
10792,
648,
404,
30,
13491,
368,
2463,
315,
559,
14432,
1349... |
if (data == null) { throw new FinderException("Can't find user "+username); } | public void setPassword(Admin admin, String username, String password) throws UserDoesntFullfillEndEntityProfile, AuthorizationDeniedException, FinderException, RemoteException { debug(">setPassword(" + username + ", hiddenpwd)"); // Find user UserDataPK pk = new UserDataPK(username); UserDataLocal data = home.findByPrimaryKey(pk); if (globalconfiguration.getEnableEndEntityProfileLimitations()) { // Check if user fulfills it's profile. EndEntityProfile profile = raadminsession.getEndEntityProfile(admin, data.getEndEntityProfileId()); boolean fullfillsprofile = true; System.out.println("Set Password" + password); if (!profile.isModifyable(EndEntityProfile.PASSWORD, 0)) { if (!password.equals(profile.getValue(EndEntityProfile.PASSWORD, 0))) { ; } fullfillsprofile = false; } else if (profile.isRequired(EndEntityProfile.PASSWORD, 0)) { if ((password == null) || password.trim().equals("")) { fullfillsprofile = false; } } if (!fullfillsprofile) { logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY, "Password didn't fulfill end entity profile."); throw new UserDoesntFullfillEndEntityProfile( "Password didn't fulfill end entity profile."); } // Check if administrator is authorized to edit user. if (!profileauthproxy.getEndEntityProfileAuthorization(admin, data.getEndEntityProfileId(), EndEntityProfileAuthorizationProxy.EDIT_RIGHTS, LogEntry.MODULE_RA)) { logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY, "Administrator isn't authorized to change password."); throw new AuthorizationDeniedException("Administrator not authorized to edit user."); } } try { data.setPassword(password); data.setTimeModified((new java.util.Date()).getTime()); logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY, "Password changed."); } catch (java.security.NoSuchAlgorithmException nsae) { debug("NoSuchAlgorithmException while setting password for user " + username); throw new EJBException(nsae); } debug("<setPassword(" + username + ", hiddenpwd)"); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/31d6aba7523c1171d3298c2d2f27b963fa299bfc/LocalUserAdminSessionBean.java/clean/src/java/se/anatom/ejbca/ra/LocalUserAdminSessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
892,
422,
446,
13,
288,
604,
394,
19307,
503,
2932,
2568,
1404,
1104,
729,
13773,
5053,
1769,
289,
309,
261,
892,
422,
446,
13,
288,
604,
394,
19307,
503,
2932,
2568,
1404,
1104,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
892,
422,
446,
13,
288,
604,
394,
19307,
503,
2932,
2568,
1404,
1104,
729,
13773,
5053,
1769,
289,
309,
261,
892,
422,
446,
13,
288,
604,
394,
19307,
503,
2932,
2568,
1404,
1104,
7... | |
public void set(org.quickfix.field.TradingSessionID value) | public void set(quickfix.field.TradingSessionID value) | public void set(org.quickfix.field.TradingSessionID value) { setField(value); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceReport.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
12,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
460,
13,
225,
288,
16331,
12,
1132,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
e.printStackTrace(); | public Node override(Node n) { try { // System.out.println(indent() + "override " + n); return n.readSymbols( this); } catch( SemanticException e) {e.printStackTrace(); eq.enqueue( ErrorInfo.SEMANTIC_ERROR, e.getMessage(), Annotate.getLineNumber( n)); return n; } } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/24d791b9c730e45befb5131fac107c29756e7b7b/SymbolReader.java/buggy/src/polyglot/visit/SymbolReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2029,
3849,
12,
907,
290,
13,
225,
288,
565,
775,
565,
288,
1377,
368,
2332,
18,
659,
18,
8222,
12,
9355,
1435,
397,
315,
10601,
315,
397,
290,
1769,
1377,
327,
290,
18,
896,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
3849,
12,
907,
290,
13,
225,
288,
565,
775,
565,
288,
1377,
368,
2332,
18,
659,
18,
8222,
12,
9355,
1435,
397,
315,
10601,
315,
397,
290,
1769,
1377,
327,
290,
18,
896,
14... | |
rdfModel.setCurrentObject(item); | if (markQueryObjects) { queryController.addQueryItem(item); rdfModelView.setNeedsDisplay(true); } else { rdfModel.setCurrentObject(item); } | public void setCurrentObjectAtPoint(NSPoint point) { ModelItem item = rdfModel.objectAtPoint(point); rdfModel.setCurrentObject(item); } | 364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/364/03c9e81600733191aa231cee1b47ab99ba816b6b/RDFAuthorDocument.java/buggy/rdfweb.org/RDFAuthor/RDFAuthorDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12589,
921,
861,
2148,
12,
3156,
2148,
1634,
13,
565,
288,
3639,
3164,
1180,
761,
273,
9160,
1488,
18,
1612,
861,
2148,
12,
1153,
1769,
540,
309,
261,
3355,
1138,
4710,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12589,
921,
861,
2148,
12,
3156,
2148,
1634,
13,
565,
288,
3639,
3164,
1180,
761,
273,
9160,
1488,
18,
1612,
861,
2148,
12,
1153,
1769,
540,
309,
261,
3355,
1138,
4710,
13,
2... |
first.setCar(second); return first; | return (arg instanceof Function || arg instanceof GenericFunction) ? T : NIL; | public LispObject execute(LispObject first, LispObject second) throws ConditionThrowable { first.setCar(second); return first; } | 8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/7a80a234ed70e008775e13a37b7ac5f337cc7fb2/Primitives.java/buggy/j/src/org/armedbear/lisp/Primitives.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
511,
23831,
921,
1836,
12,
48,
23831,
921,
1122,
16,
511,
23831,
921,
2205,
13,
5411,
1216,
7949,
15155,
3639,
288,
7734,
1122,
18,
542,
16321,
12,
8538,
1769,
7734,
327,
1122,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
1071,
511,
23831,
921,
1836,
12,
48,
23831,
921,
1122,
16,
511,
23831,
921,
2205,
13,
5411,
1216,
7949,
15155,
3639,
288,
7734,
1122,
18,
542,
16321,
12,
8538,
1769,
7734,
327,
1122,
31,
... |
System.out.println("==> around1 -- pre " + ai + ", " + as); | indent(); m_level++; System.out.println(" ==> around1 -- pre " + ai + ", " + as); | public Object around1(final JoinPoint joinPoint, int ai, String as) throws Throwable { System.out.println("==> around1 -- pre " + ai + ", " + as); Object result = joinPoint.proceed(); System.out.println("==> around1 -- post " + ai + ", " + as); return result; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/0bb41998911ba82e52264b1f87a9ea08f128bc37/ArgAspect.java/clean/aspectwerkz3/src/samples/examples/logging/ArgAspect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
6740,
21,
12,
6385,
4214,
2148,
1233,
2148,
16,
509,
14679,
16,
514,
487,
13,
1216,
4206,
288,
3639,
3504,
5621,
312,
67,
2815,
9904,
31,
2332,
18,
659,
18,
8222,
2932,
422,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6740,
21,
12,
6385,
4214,
2148,
1233,
2148,
16,
509,
14679,
16,
514,
487,
13,
1216,
4206,
288,
3639,
3504,
5621,
312,
67,
2815,
9904,
31,
2332,
18,
659,
18,
8222,
2932,
422,... |
return (millisInstant >= thisStart && millisInstant < thisEnd) || (thisStart == millisInstant && thisEnd == millisInstant); | return (millisInstant >= thisStart && millisInstant < thisEnd); | public boolean contains(long millisInstant) { long thisStart = getStartMillis(); long thisEnd = getEndMillis(); return (millisInstant >= thisStart && millisInstant < thisEnd) || (thisStart == millisInstant && thisEnd == millisInstant); } | 52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/a01f36f8431f42d8d1dad2d67e256e37f73027eb/AbstractInterval.java/clean/JodaTime/src/java/org/joda/time/base/AbstractInterval.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1914,
12,
5748,
14833,
10675,
13,
288,
3639,
1525,
333,
1685,
273,
8635,
4814,
5621,
3639,
1525,
333,
1638,
273,
9968,
4814,
5621,
3639,
327,
261,
81,
3503,
10675,
1545,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1914,
12,
5748,
14833,
10675,
13,
288,
3639,
1525,
333,
1685,
273,
8635,
4814,
5621,
3639,
1525,
333,
1638,
273,
9968,
4814,
5621,
3639,
327,
261,
81,
3503,
10675,
1545,
333,
... |
cat.debug(">test03FailAuthenticateUser()"); | log.debug(">test03FailAuthenticateUser()"); | public void test03FailAuthenticateUser() throws Exception { cat.debug(">test03FailAuthenticateUser()"); // user that we know exists... Object obj1 = ctx.lookup("UserData"); UserDataHome userhome = (UserDataHome) javax.rmi.PortableRemoteObject.narrow(obj1, UserDataHome.class); UserDataPK pk = new UserDataPK(username); UserDataRemote data = userhome.findByPrimaryKey(pk); // Set status to GENERATED so authentication will fail data.setStatus(UserDataRemote.STATUS_GENERATED); boolean authfailed = false; try { UserAuthData auth = remote.authenticateUser(new Admin(Admin.TYPE_INTERNALUSER), username, pwd); } catch (Exception e) { authfailed = true; } assertTrue("Authentication succeeded when it should have failed.", authfailed); cat.debug("<test03FailAuthenticateUser()"); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/16e6a1dbcc54470e8d05f9bc7fdc7e7ebb6fe13c/TestAuthenticationSession.java/clean/src/java/se/anatom/ejbca/ca/auth/junit/TestAuthenticationSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4630,
3754,
17618,
1299,
1435,
1216,
1185,
288,
3639,
613,
18,
4148,
2932,
34,
3813,
4630,
3754,
17618,
1299,
1435,
8863,
3639,
368,
729,
716,
732,
5055,
1704,
2777,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4630,
3754,
17618,
1299,
1435,
1216,
1185,
288,
3639,
613,
18,
4148,
2932,
34,
3813,
4630,
3754,
17618,
1299,
1435,
8863,
3639,
368,
729,
716,
732,
5055,
1704,
2777,
3639,
... |
throw new RuntimeException("location < 0?! oldLoc=" + oldLoc + " dist=" + dist); | throw new RuntimeException("location < 0?! oldLoc=" + oldLoc + " dist=" + dist); | public void move(int dist) { int oldLoc = _currentLocation; _currentLocation += dist; if (_currentLocation < 0) { throw new RuntimeException("location < 0?! oldLoc=" + oldLoc + " dist=" + dist); } _reduced.move(dist); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/DefinitionsDocument.java/clean/drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
12,
474,
2411,
13,
225,
288,
565,
509,
1592,
1333,
273,
389,
2972,
2735,
31,
565,
389,
2972,
2735,
1011,
2411,
31,
565,
309,
261,
67,
2972,
2735,
411,
374,
13,
288,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
12,
474,
2411,
13,
225,
288,
565,
509,
1592,
1333,
273,
389,
2972,
2735,
31,
565,
389,
2972,
2735,
1011,
2411,
31,
565,
309,
261,
67,
2972,
2735,
411,
374,
13,
288,
1... |
case PROCESSING_INSTRUCTION_NODE: { newnode = (ProcessingInstructionImpl)createProcessingInstruction(source.getNodeName(), source.getNodeValue()); break; | case PROCESSING_INSTRUCTION_NODE: { newnode = createProcessingInstruction(source.getNodeName(), source.getNodeValue()); break; | public Node importNode(Node source, boolean deep) throws DOMException { NodeImpl newnode=null; // Sigh. This doesn't work; too many nodes have private data that // would have to be manually tweaked. May be able to add local // shortcuts to each nodetype. Consider ????? // if(source instanceof NodeImpl && // !(source instanceof DocumentImpl)) // { // // Can't clone DocumentImpl since it invokes us... // newnode=(NodeImpl)source.cloneNode(false); // newnode.ownerDocument=this; //} //else int type = source.getNodeType(); switch (type) { case ELEMENT_NODE: { Element newelement = createElement(source.getNodeName()); NamedNodeMap srcattr = source.getAttributes(); if (srcattr != null) { for(int i = 0; i < srcattr.getLength(); i++) { newelement.setAttributeNode( (AttrImpl)importNode(srcattr.item(i), true)); } } newnode = (NodeImpl)newelement; break; } case ATTRIBUTE_NODE: { newnode = (NodeImpl)createAttribute(source.getNodeName()); // Kids carry value break; } case TEXT_NODE: { newnode = (NodeImpl)createTextNode(source.getNodeValue()); break; } case CDATA_SECTION_NODE: { newnode = (NodeImpl)createCDATASection(source.getNodeValue()); break; } case ENTITY_REFERENCE_NODE: { newnode = (NodeImpl)createEntityReference(source.getNodeName()); deep = false; // ????? Right Thing? // Value implied by doctype, so we should not copy it // -- instead, refer to local doctype, if any. break; } case ENTITY_NODE: { Entity srcentity = (Entity)source; EntityImpl newentity = (EntityImpl)createEntity(source.getNodeName()); newentity.setPublicId(srcentity.getPublicId()); newentity.setSystemId(srcentity.getSystemId()); newentity.setNotationName(srcentity.getNotationName()); // Kids carry additional value newnode = newentity; break; } case PROCESSING_INSTRUCTION_NODE: { newnode = (ProcessingInstructionImpl)createProcessingInstruction(source.getNodeName(), source.getNodeValue()); break; } case COMMENT_NODE: { newnode = (NodeImpl)createComment(source.getNodeValue()); break; } case DOCUMENT_TYPE_NODE: { DocumentTypeImpl doctype = (DocumentTypeImpl)source; DocumentTypeImpl newdoctype = (DocumentTypeImpl)createDocumentType( doctype.getNodeName(), doctype.getPublicId(), doctype.getSystemId() ); // Values are on NamedNodeMaps NamedNodeMap smap = ((DocumentType)source).getEntities(); NamedNodeMap tmap = newdoctype.getEntities(); if(smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem((EntityImpl)importNode(smap.item(i), true)); } } smap = ((DocumentType)source).getNotations(); tmap = newdoctype.getNotations(); if (smap != null) { for(int i = 0; i < smap.getLength(); i++) { tmap.setNamedItem((NotationImpl)importNode(smap.item(i), true)); } } // NOTE: At this time, the DOM definition of DocumentType // doesn't cover Elements and their Attributes. domimpl's // extentions in that area will not be preserved, even if // copying from domimpl to domimpl. We could special-case // that here. Arguably we should. Consider. ????? newnode = newdoctype; break; } case DOCUMENT_FRAGMENT_NODE: { newnode = (NodeImpl)createDocumentFragment(); // No name, kids carry value break; } case NOTATION_NODE: { Notation srcnotation = (Notation)source; NotationImpl newnotation = (NotationImpl)createNotation(source.getNodeName()); newnotation.setPublicId(srcnotation.getPublicId()); newnotation.setSystemId(srcnotation.getSystemId()); // Kids carry additional value newnode = newnotation; // No name, no value break; } case DOCUMENT_NODE : // Document can't be child of Document default: { // Unknown node type throw new DOMExceptionImpl(DOMException.HIERARCHY_REQUEST_ERR, "DOM006 Hierarchy request error"); } } // If deep, replicate and attach the kids. if (deep) { for (Node srckid = source.getFirstChild(); srckid != null; srckid = srckid.getNextSibling()) { newnode.appendChild(importNode(srckid, true)); } } return newnode; } // importNode(Node,boolean):Node | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/fd788f496dd24d0d34e5ecb1936da8999ed6c269/DocumentImpl.java/clean/src/org/apache/xerces/dom/DocumentImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
1930,
907,
12,
907,
1084,
16,
1250,
4608,
13,
3639,
1216,
4703,
503,
288,
377,
202,
907,
2828,
29267,
33,
2011,
31,
377,
202,
759,
348,
2031,
18,
1220,
3302,
1404,
1440,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
1930,
907,
12,
907,
1084,
16,
1250,
4608,
13,
3639,
1216,
4703,
503,
288,
377,
202,
907,
2828,
29267,
33,
2011,
31,
377,
202,
759,
348,
2031,
18,
1220,
3302,
1404,
1440,
31,... |
resourceTypeFieldValues.addElement(currentResourceTypeFieldValue); | resourceTypeFieldValues.addElement(currentResourceTypeFieldValue); | public int getResources(CmsObject cms, CmsXmlLanguageFile language, Vector resourceTypeIconNames, Vector resourceTypeFieldValues, Vector resourceTypeFieldNames, Hashtable parameters) throws CmsException { cms.getRequestContext().getSession(true); Vector resourceTypeNames = new Vector(); Vector resourceTypeValues = new Vector(); int checkedRadioIndex = 0; CmsXmlWpConfigFile configFile = new CmsXmlWpConfigFile(cms); configFile.getWorkplaceIniData(resourceTypeNames, resourceTypeValues, "RESOURCETYPES", "RESOURCE"); // robustness, robustness, robustness... if (resourceTypeIconNames == null) { resourceTypeIconNames = new Vector(); } if (resourceTypeFieldValues == null) { resourceTypeFieldValues = new Vector(); } if (resourceTypeFieldNames == null) { resourceTypeFieldNames = new Vector(); } int count = resourceTypeNames.size(); for (int i = 0; i < count; i++) { String currentResourceTypeFieldValue = (String) resourceTypeValues.elementAt(i); String currentResourceTypeName = (String) resourceTypeNames.elementAt(i); // submit value of the radio button for the current resource type resourceTypeFieldValues.addElement(currentResourceTypeFieldValue); // dito, name of the icon resourceTypeIconNames.addElement("file_" + currentResourceTypeName); // dito, clear text name of the current resoure type String currentResourceTypeFieldName = null; if (language != null) { currentResourceTypeFieldName = language.getLanguageValue("fileicon." + currentResourceTypeName); } else { currentResourceTypeFieldName = currentResourceTypeName; } resourceTypeFieldNames.addElement(currentResourceTypeFieldName); // prove if the current resource type matches the resource type of // the old resource to make a preselection by checking the // right radio button... if (m_OldResourceType.equals(currentResourceTypeName)) { checkedRadioIndex = i; } } return checkedRadioIndex; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/6cce177c14c6e3885b587df5eb3efe618285760f/CmsReplace.java/clean/src/com/opencms/workplace/CmsReplace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14590,
12,
4747,
921,
6166,
16,
16084,
3779,
812,
2653,
16,
5589,
14110,
5554,
1557,
16,
5589,
14110,
974,
1972,
16,
5589,
14110,
20393,
16,
18559,
1472,
13,
1216,
11228,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14590,
12,
4747,
921,
6166,
16,
16084,
3779,
812,
2653,
16,
5589,
14110,
5554,
1557,
16,
5589,
14110,
974,
1972,
16,
5589,
14110,
20393,
16,
18559,
1472,
13,
1216,
11228,
2... |
if (value.floatValue() > Integer.MAX_VALUE || value.floatValue() < Integer.MIN_VALUE) | if (Math.abs(value.floatValue()) > Integer.MAX_VALUE) | int getInt() throws SQLException { if (isNull()) return INT_NULL_VALUE; Float value = (Float)field.sqldata; // check if value is withing bounds if (value.floatValue() > Integer.MAX_VALUE || value.floatValue() < Integer.MIN_VALUE) throw (SQLException)createException( INT_CONVERSION_ERROR).fillInStackTrace(); return ((Float)field.sqldata).intValue(); } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/27cb6a55a119953d15371beb58a710c958cb4e72/FBFloatField.java/clean/src/org/firebirdsql/jdbc/FBFloatField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
8145,
1435,
1216,
6483,
288,
3639,
309,
261,
291,
2041,
10756,
327,
6137,
67,
8560,
67,
4051,
31,
3639,
5450,
460,
273,
261,
4723,
13,
1518,
18,
4669,
892,
31,
3639,
368,
866,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
8145,
1435,
1216,
6483,
288,
3639,
309,
261,
291,
2041,
10756,
327,
6137,
67,
8560,
67,
4051,
31,
3639,
5450,
460,
273,
261,
4723,
13,
1518,
18,
4669,
892,
31,
3639,
368,
866,
309,... |
inventoryPlugin.touchInventory(inventory); logInvPG = (LogisticsInventoryPG) inventory.searchForPropertyGroup(LogisticsInventoryPG.class); | if (inventory != null) { inventoryPlugin.touchInventory(inventory); logInvPG = (LogisticsInventoryPG) inventory.searchForPropertyGroup(LogisticsInventoryPG.class); } | public LogisticsInventoryPG getLogisticsInventoryPG(Task wdrawTask) { LogisticsInventoryPG logInvPG = null; Asset asset = (Asset)wdrawTask.getDirectObject(); Inventory inventory = inventoryPlugin.findOrMakeInventory(asset); inventoryPlugin.touchInventory(inventory); logInvPG = (LogisticsInventoryPG) inventory.searchForPropertyGroup(LogisticsInventoryPG.class); return logInvPG; } | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/34cb29ad9ca23d6c5f88f658c743f9d908f87e32/SupplyExpander.java/clean/bbn/src/org/cougaar/logistics/plugin/inventory/SupplyExpander.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1827,
4287,
15059,
18679,
9189,
4287,
15059,
18679,
12,
2174,
341,
9446,
2174,
13,
288,
202,
1343,
4287,
15059,
18679,
613,
3605,
18679,
273,
446,
31,
202,
6672,
3310,
273,
261,
6672,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1827,
4287,
15059,
18679,
9189,
4287,
15059,
18679,
12,
2174,
341,
9446,
2174,
13,
288,
202,
1343,
4287,
15059,
18679,
613,
3605,
18679,
273,
446,
31,
202,
6672,
3310,
273,
261,
6672,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.