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 |
|---|---|---|---|---|---|---|
patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("where: wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } | context.dictionaries.push(data[0]); | public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("where: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("where: wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/3cd4a973dbdca1f7072d8e189d388c5a878cc9a6/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
63,
6487,
1392,
921,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
63,
6487,
1392,
921,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
57... |
paintBorder = true; | borderPainted = true; | public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); paintBorder = true; updateUI(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JMenuBar.java/buggy/core/src/classpath/javax/javax/swing/JMenuBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
4599,
5190,
1435,
225,
288,
565,
4421,
1488,
273,
394,
2989,
5281,
6233,
1488,
5621,
565,
5795,
12699,
329,
273,
638,
31,
565,
1089,
5370,
5621,
225,
289,
2,
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,
282,
1071,
804,
4599,
5190,
1435,
225,
288,
565,
4421,
1488,
273,
394,
2989,
5281,
6233,
1488,
5621,
565,
5795,
12699,
329,
273,
638,
31,
565,
1089,
5370,
5621,
225,
289,
2,
-100,
-100,
-100,
... |
public XMLReader(String fileName, String encoding) throws IOException | public XMLReader(String fileName) throws IOException | public XMLReader(String fileName, String encoding) throws IOException { reader = new BufferedReader(createReader(fileName, encoding)); } | 8797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8797/0ee7fde4e4e97a4a64b5215b4af5fa4eea855bf6/XMLReader.java/buggy/src/org/omegat/filters2/xml/XMLReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3167,
2514,
12,
780,
3968,
16,
514,
2688,
13,
5411,
1216,
1860,
202,
95,
3639,
2949,
273,
394,
10633,
12,
2640,
2514,
12,
17812,
16,
2688,
10019,
202,
97,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3167,
2514,
12,
780,
3968,
16,
514,
2688,
13,
5411,
1216,
1860,
202,
95,
3639,
2949,
273,
394,
10633,
12,
2640,
2514,
12,
17812,
16,
2688,
10019,
202,
97,
2,
-100,
-100,
-100,... |
String mappingPath = (String)iterMappingPaths.next(); log.debug("Loading mapping path " + mappingPath); map.loadMapping(mappingPath); | Object mappingObj = iterMappingPaths.next(); log.debug("Loading mapping path " + mappingObj); if (mappingObj instanceof String) { map.loadMapping((String)mappingObj); } else if (mappingObj instanceof URL) { map.loadMapping((URL)mappingObj); } | public void save(Object object) throws PersistenceManagerException, IOException { try { Writer w = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(descriptorPath), "UTF-8")); FileWriter filewriter = new FileWriter(descriptorPath); Marshaller marshal = new Marshaller(w); Mapping map = new Mapping(); Iterator iterMappingPaths = mappingPaths.iterator(); while (iterMappingPaths.hasNext()) { String mappingPath = (String)iterMappingPaths.next(); log.debug("Loading mapping path " + mappingPath); map.loadMapping(mappingPath); } marshal.setMapping(map); marshal.marshal(object); filewriter.close(); Class cl = object.getClass(); log.debug("Wrote object of type " + cl.getName() + " to XMLFile " + descriptorPath); } catch (ValidationException e) { log.error("Unable to marshal object: ", e); throw new PersistenceManagerException("Validation Error", e); } catch (MarshalException e) { log.error("Unable to marshal object: ", e); throw new PersistenceManagerException("Marshal Error: ", e); } catch (MappingException e) { log.error("Unable to marshal object: ", e.getException()); e.printStackTrace(); throw new PersistenceManagerException("Mapping Error", e); } } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/3cec2e99a8109948f3d15724cfb79588ddbc38f7/PersistenceManagerXmlImpl.java/clean/src/org/gridsphere/portletcontainer/impl/PersistenceManagerXmlImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
12,
921,
733,
13,
1216,
13381,
28020,
16,
1860,
288,
3639,
775,
288,
5411,
5497,
341,
273,
394,
22490,
12,
2704,
24248,
12,
2704,
12942,
12,
12628,
743,
3631,
315,
5159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
12,
921,
733,
13,
1216,
13381,
28020,
16,
1860,
288,
3639,
775,
288,
5411,
5497,
341,
273,
394,
22490,
12,
2704,
24248,
12,
2704,
12942,
12,
12628,
743,
3631,
315,
5159,
... |
SSLContext sslc = SSLContext.getInstance(cnn.getProtocol().toLowerCase()); | SSLContext sslc = SSLContext.getInstance(cnn.getProtocol().toLowerCase(), cnn.getProvider()); | protected ServerSocket createSocket(URI uri) throws IOException, NoSuchAlgorithmException, KeyManagementException { SslConnector cnn = null; ServerSocketFactory ssf = null; cnn = (SslConnector) connector; // An SSLContext is an environment for implementing JSSE // It is used to create a ServerSocketFactory SSLContext sslc = SSLContext.getInstance(cnn.getProtocol().toLowerCase()); // Initialize the SSLContext to work with our key managers sslc.init(cnn.getKeyManagerFactory().getKeyManagers(), null, null); ssf = sslc.getServerSocketFactory(); String host = StringUtils.defaultIfEmpty(uri.getHost(), "localhost"); int backlog = cnn.getBacklog(); SSLServerSocket serverSocket = null; InetAddress inetAddress = InetAddress.getByName(host); if (inetAddress.equals(InetAddress.getLocalHost()) || inetAddress.isLoopbackAddress() || host.trim().equals("localhost")) { serverSocket = (SSLServerSocket) ssf.createServerSocket(uri.getPort(), backlog); } else { serverSocket = (SSLServerSocket) ssf.createServerSocket(uri.getPort(), backlog, inetAddress); } // Authenticate the client? serverSocket.setNeedClientAuth(cnn.isRequireClientAuthentication()); return serverSocket; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/65e7f20585cf77b8d696934ac14c2cc3b2a128d4/SslMessageReceiver.java/buggy/providers/ssl/src/main/java/org/mule/providers/ssl/SslMessageReceiver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3224,
4534,
752,
4534,
12,
3098,
2003,
13,
1216,
1860,
16,
17684,
16,
1929,
10998,
503,
565,
288,
3639,
23929,
7487,
6227,
82,
273,
446,
31,
3639,
3224,
4534,
1733,
5202,
74,
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,
4750,
3224,
4534,
752,
4534,
12,
3098,
2003,
13,
1216,
1860,
16,
17684,
16,
1929,
10998,
503,
565,
288,
3639,
23929,
7487,
6227,
82,
273,
446,
31,
3639,
3224,
4534,
1733,
5202,
74,
273,
... |
message = client.send("vm: | message = client.send("vm: | public void testCase() throws Exception { MuleClient client = new MuleClient(); //send Echo String UMOMessage message = client.send("vm://testin", new Integer(12),null); assertNotNull(message); Integer payload = (Integer) message.getPayload(); assertEquals(payload, new Integer(22)); //send String message = client.send("vm://testin", "test matching component first time",null); assertNotNull(message); assertEquals((String) message.getPayload(), "emit tsrif tnenopmoc gnihctam tset"); //send String message = client.send("vm://testin", "test mathching component second time",null); assertNotNull(message); assertEquals((String) message.getPayload(), "emit dnoces tnenopmoc gnihchtam tset"); //send Integer message = client.send("vm://testin", new Integer(15),null); assertNotNull(message); payload = (Integer) message.getPayload(); assertEquals(payload, new Integer(25)); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/f22bcd2035487efd91d326568c482912217bbe55/RMIMultipleEndpointsTestCase.java/clean/transports/rmi/src/test/java/org/mule/providers/rmi/RMIMultipleEndpointsTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2449,
1435,
1216,
1185,
565,
288,
3639,
490,
725,
1227,
1004,
273,
394,
490,
725,
1227,
5621,
3639,
368,
4661,
28995,
514,
3639,
587,
5980,
1079,
883,
273,
1004,
18,
4661... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2449,
1435,
1216,
1185,
565,
288,
3639,
490,
725,
1227,
1004,
273,
394,
490,
725,
1227,
5621,
3639,
368,
4661,
28995,
514,
3639,
587,
5980,
1079,
883,
273,
1004,
18,
4661... |
public String createLocalNode(String nodeName,boolean replacePreviousBinding) throws NodeException { try{ return remoteProActiveRuntime.createLocalNode(nodeName,replacePreviousBinding); }catch(java.rmi.RemoteException e){ throw new NodeException (e); } } | public String createLocalNode(String nodeName, boolean replacePreviousBinding) throws NodeException { try { return remoteProActiveRuntime.createLocalNode(nodeName, replacePreviousBinding); } catch (java.rmi.RemoteException e) { throw new NodeException(e); } } | public String createLocalNode(String nodeName,boolean replacePreviousBinding) throws NodeException { try{ return remoteProActiveRuntime.createLocalNode(nodeName,replacePreviousBinding); }catch(java.rmi.RemoteException e){ throw new NodeException (e); } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/c171c3550f70b496c1228bbed45f5f8feea45a9c/RemoteProActiveRuntimeAdapter.java/clean/src/org/objectweb/proactive/core/runtime/rmi/RemoteProActiveRuntimeAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
752,
2042,
907,
12,
780,
7553,
16,
6494,
1453,
8351,
5250,
13,
1216,
2029,
503,
202,
95,
202,
202,
698,
95,
202,
202,
2463,
2632,
626,
3896,
5576,
18,
2640,
2042,
907,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
2042,
907,
12,
780,
7553,
16,
6494,
1453,
8351,
5250,
13,
1216,
2029,
503,
202,
95,
202,
202,
698,
95,
202,
202,
2463,
2632,
626,
3896,
5576,
18,
2640,
2042,
907,
... |
this.rowData = new ColData[colCnt]; | this.rowData = new Object[colCnt]; | private void tds5ResultToken() throws IOException, ProtocolException { in.readShort(); // Packet length int colCnt = in.readShort(); this.columns = new ColInfo[colCnt]; this.rowData = new ColData[colCnt]; this.tables = null; for (int colNum = 0; colNum < colCnt; ++colNum) { // // Get the column name // ColInfo col = new ColInfo(); int colNameLen = in.read(); col.realName = in.readNonUnicodeString(colNameLen); col.name = col.realName; int column_flags = in.read(); /* Flags */ col.isCaseSensitive = false; col.nullable = ((column_flags & 0x20) != 0)? ResultSetMetaData.columnNullable: ResultSetMetaData.columnNoNulls; col.isWriteable = (column_flags & 0x10) != 0; col.isIdentity = (column_flags & 0x40) != 0; col.isKey = (column_flags & 0x02) != 0; col.isHidden = (column_flags & 0x01) != 0; col.userType = in.readInt(); TdsData.readType(in, col); // Skip locale information in.skip(1); columns[colNum] = col; } endOfResults = false; } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/2a7e6a7a27e6562d37027b84424d23b734dc6ed6/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
268,
2377,
25,
1253,
1345,
1435,
1216,
1860,
16,
4547,
503,
288,
3639,
316,
18,
896,
4897,
5621,
368,
11114,
769,
3639,
509,
645,
11750,
273,
316,
18,
896,
4897,
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,
918,
268,
2377,
25,
1253,
1345,
1435,
1216,
1860,
16,
4547,
503,
288,
3639,
316,
18,
896,
4897,
5621,
368,
11114,
769,
3639,
509,
645,
11750,
273,
316,
18,
896,
4897,
5621,
3639,
... |
((PointInTime) keyframes.get(i)).look[joint] .setRotationQuaternion(new Quaternion()); | pivots[joint].getRotation( ((PointInTime) keyframes.get(i)).look[joint] .getRotation()); | private void fillRots() { for (int joint = 0; joint < numObjects; joint++) { // 1) Find first non-null rotation of joint <code>joint</code> int start; for (start = 0; start < keyframes.size(); start++) { if (((PointInTime) keyframes.get(start)).usedRot.get(joint)) break; } if (start == keyframes.size()) { // if they are all null then fill // with identity for (int i = 0; i < keyframes.size(); i++) ((PointInTime) keyframes.get(i)).look[joint] .setRotationQuaternion(new Quaternion()); continue; // we're done so lets break } if (start != 0) { // if there -are- null elements at the begining, // then fill with first non-null ((PointInTime) keyframes.get(start)).look[joint] .getRotation(unSyncbeginRot); for (int i = 0; i < start; i++) ((PointInTime) keyframes.get(i)).look[joint] .setRotationQuaternion(unSyncbeginRot); } int lastgood = start; for (int i = start + 1; i < keyframes.size(); i++) { if (((PointInTime) keyframes.get(i)).usedRot.get(joint)) { fillQuats(joint, lastgood, i); // fills gaps lastgood = i; } } // fillQuats(joint,lastgood,keyframes.size()-1); // fills tail ((PointInTime) keyframes.get(lastgood)).look[joint] .getRotation(unSyncbeginRot); for (int i = lastgood + 1; i < keyframes.size(); i++) { ((PointInTime) keyframes.get(i)).look[joint] .setRotationQuaternion(unSyncbeginRot); } } } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/f65bc42cb6d1185bc484f13c2d96de6fd0e87e00/SpatialTransformer.java/clean/src/com/jme/animation/SpatialTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3636,
54,
6968,
1435,
288,
3639,
364,
261,
474,
15916,
273,
374,
31,
15916,
411,
818,
4710,
31,
15916,
27245,
288,
5411,
368,
404,
13,
4163,
1122,
1661,
17,
2011,
6752,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
54,
6968,
1435,
288,
3639,
364,
261,
474,
15916,
273,
374,
31,
15916,
411,
818,
4710,
31,
15916,
27245,
288,
5411,
368,
404,
13,
4163,
1122,
1661,
17,
2011,
6752,
434,
... |
public void setVertexCountAndAttributes(DataListSet dls) { | public void setVertexCountAndAttributes(Attribute attr, DataList dl) { | public void setVertexCountAndAttributes(DataListSet dls) { checkReadOnly(); startWriter(); setAttrImpl(vertexAttributes, dls, true); fireGeometryChanged(dls.storedAttributes(), null, null, null); finishWriter(); } | 25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/ebefa80ebc57705657a2249820470c341a94948d/PointSet.java/buggy/src-core/de/jreality/scene/PointSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
6475,
1380,
1876,
2498,
12,
1499,
1604,
16,
1910,
682,
8910,
13,
288,
565,
866,
12066,
5621,
565,
787,
2289,
5621,
565,
444,
3843,
2828,
12,
15281,
2498,
16,
302,
3251,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
6475,
1380,
1876,
2498,
12,
1499,
1604,
16,
1910,
682,
8910,
13,
288,
565,
866,
12066,
5621,
565,
787,
2289,
5621,
565,
444,
3843,
2828,
12,
15281,
2498,
16,
302,
3251,
... |
public TestAuthenticationSession(String name) { super(name); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/951eff5b1c47ce667465cb23f1aed9d3a0292d2f/TestAuthenticationSession.java/buggy/src/java/se/anatom/ejbca/ca/auth/junit/TestAuthenticationSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
4709,
6492,
2157,
12,
780,
529,
15329,
9565,
12,
529,
1769,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
4709,
6492,
2157,
12,
780,
529,
15329,
9565,
12,
529,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
MenuSelectionManager manager) { } | MenuSelectionManager manager) { } | public void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager) { // TODO } // processKeyEvent() | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JMenuItem.java/clean/libjava/javax/swing/JMenuItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
871,
16,
9809,
1046,
8526,
589,
16,
1082,
202,
4599,
6233,
1318,
3301,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
1207,
653,
1133,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1207,
653,
1133,
12,
653,
1133,
871,
16,
9809,
1046,
8526,
589,
16,
1082,
202,
4599,
6233,
1318,
3301,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
1207,
653,
1133,
1435,
... |
PlatformUI.getWorkbench().getPreferenceStore() | PrefUtil.getInternalPreferenceStore() | public void dispose() { super.dispose(); JFaceResources.getFontRegistry().removeListener(badListener); PlatformUI.getWorkbench().getPreferenceStore() .removePropertyChangeListener(badListener); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dec58c21f7fbc55765bdc7034cec88a6fd3e3375/BrokenUpdatePreferencePage.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/manual/BrokenUpdatePreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
2240,
18,
2251,
4150,
5621,
3639,
804,
11824,
3805,
18,
588,
5711,
4243,
7675,
4479,
2223,
12,
8759,
2223,
1769,
3639,
28184,
1304,
18,
588,
3061,
9624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
15825,
1435,
288,
3639,
2240,
18,
2251,
4150,
5621,
3639,
804,
11824,
3805,
18,
588,
5711,
4243,
7675,
4479,
2223,
12,
8759,
2223,
1769,
3639,
28184,
1304,
18,
588,
3061,
9624,
... |
return encode.nextByte() + (encode.nextByte() << 8); } | return encode.nextByte() + (encode.nextByte() << 8); } | private static int decodeShortUnsignedLittleEndian(PtrList encode) { return encode.nextByte() + (encode.nextByte() << 8); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
2495,
4897,
13290,
48,
10609,
12,
5263,
682,
2017,
13,
288,
202,
202,
2463,
2017,
18,
4285,
3216,
1435,
397,
261,
3015,
18,
4285,
3216,
1435,
2296,
1725,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
2495,
4897,
13290,
48,
10609,
12,
5263,
682,
2017,
13,
288,
202,
202,
2463,
2017,
18,
4285,
3216,
1435,
397,
261,
3015,
18,
4285,
3216,
1435,
2296,
1725,
1769,
202,
... |
} | } | public void testSchemaLevelOrdinalInOtherTable() { // todo: // Hierarchy is based upon a join. // Level's name expression is in a different table than its ordinal. } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/BasicQueryTest.java/clean/testsrc/main/mondrian/test/BasicQueryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3078,
2355,
22830,
382,
8290,
1388,
1435,
288,
202,
202,
759,
10621,
30,
202,
202,
759,
670,
6000,
353,
2511,
12318,
279,
1233,
18,
202,
202,
759,
4557,
1807,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
1842,
3078,
2355,
22830,
382,
8290,
1388,
1435,
288,
202,
202,
759,
10621,
30,
202,
202,
759,
670,
6000,
353,
2511,
12318,
279,
1233,
18,
202,
202,
759,
4557,
1807,
508,
... |
destinationDir = new File(MylarPlugin.getDefault().getDataDirectory() + File.separator + "TestDir"); | destinationDir = new File(MylarTaskListPlugin.getDefault().getDataDirectory() + File.separator + "TestDir"); | protected void setUp() throws Exception { super.setUp(); // Create the export wizard wizard = new TaskDataExportWizard(); wizard.addPages(); wizard.createPageControls(new Shell()); wizardPage = (TaskDataExportWizardPage) wizard.getPage(TaskDataExportWizardPage.PAGE_NAME); assertNotNull(wizardPage); // Create test export destination directory destinationDir = new File(MylarPlugin.getDefault().getDataDirectory() + File.separator + "TestDir"); destinationDir.mkdir(); assertTrue(destinationDir.exists()); // Create a task and context with an interaction event to be saved task1 = new Task(MylarTaskListPlugin.getTaskListManager().genUniqueTaskHandle(), "Export Test Task", true); manager.getTaskList().moveToRoot(task1); mockContext = MylarPlugin.getContextManager().loadContext(task1.getHandleIdentifier()); InteractionEvent event = new InteractionEvent(InteractionEvent.Kind.EDIT, "structureKind", "handle", "originId"); mockContext.parseEvent(event); MylarPlugin.getContextManager().activateContext(mockContext); // Save the context file and check that it exists MylarPlugin.getContextManager().saveContext(mockContext.getHandleIdentifier()); File taskFile = MylarPlugin.getContextManager().getFileForContext(task1.getHandleIdentifier()); assertTrue(MylarPlugin.getContextManager().hasContext(task1.getHandleIdentifier())); assertTrue(taskFile.exists()); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/42ccf4da9457897d8441802439e71116889b11bd/TaskDataExportTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskDataExportTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
759,
1788,
326,
3359,
24204,
202,
202,
31837,
273,
394,
3837,
751,
6144,
27130,
5621,
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,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
202,
202,
759,
1788,
326,
3359,
24204,
202,
202,
31837,
273,
394,
3837,
751,
6144,
27130,
5621,
202,
202... |
setLabelPosition((Position)newValue); | setLabelPosition((Position) newValue); | public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case TypePackage.BAR_SERIES__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; case TypePackage.BAR_SERIES__LABEL: setLabel((Label)newValue); return; case TypePackage.BAR_SERIES__DATA_DEFINITION: getDataDefinition().clear(); getDataDefinition().addAll((Collection)newValue); return; case TypePackage.BAR_SERIES__SERIES_IDENTIFIER: setSeriesIdentifier((Object)newValue); return; case TypePackage.BAR_SERIES__DATA_POINT: setDataPoint((DataPoint)newValue); return; case TypePackage.BAR_SERIES__DATA_SET: setDataSet((DataSet)newValue); return; case TypePackage.BAR_SERIES__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)newValue); return; case TypePackage.BAR_SERIES__LABEL_POSITION: setLabelPosition((Position)newValue); return; case TypePackage.BAR_SERIES__STACKED: setStacked(((Boolean)newValue).booleanValue()); return; case TypePackage.BAR_SERIES__TRIGGERS: getTriggers().clear(); getTriggers().addAll((Collection)newValue); return; case TypePackage.BAR_SERIES__TRANSLUCENT: setTranslucent(((Boolean)newValue).booleanValue()); return; case TypePackage.BAR_SERIES__RISER: setRiser((RiserType)newValue); return; case TypePackage.BAR_SERIES__RISER_OUTLINE: setRiserOutline((ColorDefinition)newValue); return; } eDynamicSet(eFeature, newValue); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/BarSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/BarSeriesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
1412,
2261,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
1412,
2261,
18,
2... |
next=list.getNextEntry(next); | next=indexList.getNextEntry(next); | public int indexOf(Object o){ load(); int result=-1; if(o!=null){ synchronized(mutex){ int count=0; IndexItem next=list.getFirst(); while(next!=null){ Object value=getValue(next); if(value!=null&&value.equals(o)){ result=count; break; } count++; next=list.getNextEntry(next); } } } return result; } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/bfaff9b37c815c32ec18911bf038d03724c753d4/ListContainerImpl.java/clean/activemq-core/src/main/java/org/apache/activemq/kaha/impl/ListContainerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
3133,
12,
921,
320,
15329,
3639,
1262,
5621,
3639,
509,
563,
29711,
21,
31,
3639,
309,
12,
83,
5,
33,
2011,
15329,
5411,
3852,
12,
29946,
15329,
7734,
509,
1056,
33,
20,
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,
509,
3133,
12,
921,
320,
15329,
3639,
1262,
5621,
3639,
509,
563,
29711,
21,
31,
3639,
309,
12,
83,
5,
33,
2011,
15329,
5411,
3852,
12,
29946,
15329,
7734,
509,
1056,
33,
20,
31,
... |
"class X"); | "----------\n" + "1. ERROR in X.java (at line 2)\n" + " int id default 0;\n" + " ^^^^^^^\n" + "Syntax error on token \"default\", = expected\n" + "----------\n"); | public void test098() { this.runConformTest( new String[] { "X.java", "import java.lang.annotation.*;\n" + "import java.lang.reflect.Method;\n" + "\n" + "public class X {\n" + " public static void main(String[] args) {\n" + " Object o = new X();\n" + " for (Method m : o.getClass().getMethods()) {\n" + " if (m.isAnnotationPresent(MyAnon.class)) {\n" + " System.out.println(m.getAnnotation(MyAnon.class).c());\n" + " }\n" + " }\n" + " }\n" + " @MyAnon(c = X.class) \n" + " public void foo() {}\n" + "\n" + " @Retention(RetentionPolicy.RUNTIME) \n" + " public @interface MyAnon {\n" + " Class c();\n" + " }\n" + "}" }, "class X"); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/116e2f749da165a5623c3cc3e6d763b07027f0ae/AnnotationTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5908,
28,
1435,
288,
202,
202,
2211,
18,
2681,
442,
687,
4709,
12,
1082,
202,
2704,
514,
8526,
288,
9506,
202,
6,
60,
18,
6290,
3113,
9506,
202,
6,
5666,
2252,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5908,
28,
1435,
288,
202,
202,
2211,
18,
2681,
442,
687,
4709,
12,
1082,
202,
2704,
514,
8526,
288,
9506,
202,
6,
60,
18,
6290,
3113,
9506,
202,
6,
5666,
2252,
18... |
{ | void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { context = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (context != null) { addFollowingNodes(context, acc, recurse); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
527,
8328,
310,
3205,
12,
907,
819,
16,
2200,
4078,
16,
1250,
11502,
13,
377,
2029,
662,
273,
819,
18,
588,
2134,
10291,
5621,
565,
1323,
261,
1397,
480,
446,
13,
2398,
4078,
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,
282,
918,
527,
8328,
310,
3205,
12,
907,
819,
16,
2200,
4078,
16,
1250,
11502,
13,
377,
2029,
662,
273,
819,
18,
588,
2134,
10291,
5621,
565,
1323,
261,
1397,
480,
446,
13,
2398,
4078,
18,
... | |
}; | else if (presence.getType() == Presence.Type.UNAVAILABLE) { synchronized (participantsMap) { participantsMap.remove(from); } } } | public void processPacket(Packet packet) { // Get the MUC User extension MUCUser mucUser = getMUCUserExtension(packet); // Check if the MUCUser informs that the invitee has declined the invitation if (mucUser.getDecline() != null) { // Fire event for invitation rejection listeners fireInvitationRejectionListeners( mucUser.getDecline().getFrom(), mucUser.getDecline().getReason()); } }; | 4336 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4336/e343c571a5247a88d74b53f9fa5395907c24eeb8/MultiUserChat.java/clean/source/org/jivesoftware/smackx/MultiUserChat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1207,
6667,
12,
6667,
4414,
13,
288,
7734,
368,
968,
326,
490,
17479,
2177,
2710,
7734,
490,
17479,
1299,
4129,
71,
1299,
273,
2108,
17479,
1299,
3625,
12,
11482,
1769,
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,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1207,
6667,
12,
6667,
4414,
13,
288,
7734,
368,
968,
326,
490,
17479,
2177,
2710,
7734,
490,
17479,
1299,
4129,
71,
1299,
273,
2108,
17479,
1299,
3625,
12,
11482,
1769,
7734,
... |
PoolRunner t = (PoolRunner) Thread.currentThread(); reg_.registerActivityStart(t, a, i); | PoolRunner t = (PoolRunner) Thread.currentThread(); reg_.registerActivityStart(t, a, i); | public void run() { PoolRunner t = (PoolRunner) Thread.currentThread(); reg_.registerActivityStart(t, a, i); if (t.myClocks_ != null) { Iterator it = t.myClocks_.iterator(); while (it.hasNext()) { Clock c = (Clock) it.next(); c.register(); } } synchronized(startSignal) { startSignal.go = true; startSignal.notifyAll(); } try { a.run(); } catch (RuntimeException re) { reg_.registerActivityException(a, re); } catch (Error et) { reg_.registerActivityException(a, et); } } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/237e8bdc28d9be8b3f8501beda0e1ad081d889aa/LocalPlace_c.java/clean/x10.runtime/src/x10/runtime/LocalPlace_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
288,
10792,
8828,
9709,
268,
273,
261,
2864,
9709,
13,
4884,
18,
2972,
3830,
5621,
10792,
960,
27799,
4861,
6193,
1685,
12,
88,
16,
279,
16,
277,
1769,
1082,
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,
1171,
1071,
918,
1086,
1435,
288,
10792,
8828,
9709,
268,
273,
261,
2864,
9709,
13,
4884,
18,
2972,
3830,
5621,
10792,
960,
27799,
4861,
6193,
1685,
12,
88,
16,
279,
16,
277,
1769,
1082,
565,
... |
assertEquals(3, stmt.executeUpdate("DELETE FROM " + TSWOTZ_TABLE)); | assertEquals(4, stmt.executeUpdate("DELETE FROM " + TSWOTZ_TABLE)); | public void testGetTimestampWOTZ() { try { Statement stmt = con.createStatement(); //Insert the three timestamp values in raw pg format assertEquals(1, stmt.executeUpdate(TestUtil.insertSQL(TSWOTZ_TABLE, "'" + TS1WOTZ_PGFORMAT + "'"))); assertEquals(1, stmt.executeUpdate(TestUtil.insertSQL(TSWOTZ_TABLE, "'" + TS2WOTZ_PGFORMAT + "'"))); assertEquals(1, stmt.executeUpdate(TestUtil.insertSQL(TSWOTZ_TABLE, "'" + TS3WOTZ_PGFORMAT + "'"))); // Fall through helper timestampTestWOTZ(); assertEquals(3, stmt.executeUpdate("DELETE FROM " + TSWOTZ_TABLE)); stmt.close(); } catch (Exception ex) { fail(ex.getMessage()); } } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/feefc329bd64ee552d12c8e40bed76e3573c3fa4/TimestampTest.java/buggy/src/interfaces/jdbc/org/postgresql/test/jdbc2/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
4921,
59,
1974,
62,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
3406,
3480,
273,
356,
18,
2640,
3406,
5621,
1082,
202,
759,
4600,
326,
8925,
2858,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
4921,
59,
1974,
62,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
3406,
3480,
273,
356,
18,
2640,
3406,
5621,
1082,
202,
759,
4600,
326,
8925,
2858,
... |
_postBodyBuffer.append(sanitizeString(knownName)).append("</span>"); | _postBodyBuffer.append(sanitizeString(pn.getName())).append("</span>"); | public void receiveEnd() { _postBodyBuffer.append("</td></tr>\n"); _postBodyBuffer.append("<tr ").append(getClass("summDetail")).append(" >\n"); _postBodyBuffer.append("<form action=\"").append(getAttachmentURLBase()).append("\">\n"); _postBodyBuffer.append("<td colspan=\"2\" valign=\"top\" align=\"left\" ").append(getClass("summDetail")).append("> \n"); if (_files.size() > 0) { _postBodyBuffer.append(getSpan("summDetailAttachment")).append("Attachments:</span> "); _postBodyBuffer.append("<select ").append(getClass("summDetailAttachmentId")).append(" name=\"").append(ArchiveViewerBean.PARAM_ATTACHMENT).append("\">\n"); for (int i = 0; i < _files.size(); i++) { _postBodyBuffer.append("<option value=\"").append(i).append("\">"); File f = (File)_files.get(i); String name = (String)_filenames.get(i); String type = (String)_fileTypes.get(i); _postBodyBuffer.append(sanitizeString(name)); _postBodyBuffer.append(" (").append(f.length()/1024).append("KB"); _postBodyBuffer.append(", type ").append(sanitizeString(type)).append(")</option>\n"); } _postBodyBuffer.append("</select>\n"); _postBodyBuffer.append("<input ").append(getClass("summDetailAttachmentDl")).append(" type=\"submit\" value=\"Download\" name=\"Download\" /><br />\n"); } if (_blogs.size() > 0) { _postBodyBuffer.append(getSpan("summDetailBlog")).append("Blog references:</span> "); for (int i = 0; i < _blogs.size(); i++) { Blog b = (Blog)_blogs.get(i); boolean expanded = (_user != null ? _user.getShowExpanded() : false); boolean images = (_user != null ? _user.getShowImages() : false); _postBodyBuffer.append("<a ").append(getClass("summDetailBlogLink")).append(" href=\""); _postBodyBuffer.append(getPageURL(new Hash(Base64.decode(b.hash)), b.tag, b.entryId, -1, -1, expanded, images)); _postBodyBuffer.append("\">").append(sanitizeString(b.name)).append("</a> "); } _postBodyBuffer.append("<br />\n"); } if (_links.size() > 0) { _postBodyBuffer.append(getSpan("summDetailExternal")).append("External links:</span> "); for (int i = 0; i < _links.size(); i++) { Link l = (Link)_links.get(i); _postBodyBuffer.append("<a ").append(getClass("summDetailExternalLink")).append(" href=\"externallink.jsp?"); if (l.schema != null) _postBodyBuffer.append("schema=").append(sanitizeURL(l.schema)).append('&'); if (l.location != null) _postBodyBuffer.append("location=").append(sanitizeURL(l.location)).append('&'); _postBodyBuffer.append("\">").append(sanitizeString(l.location)); _postBodyBuffer.append(getSpan("summDetailExternalNet")).append(" (").append(sanitizeString(l.schema)).append(")</span></a> "); } _postBodyBuffer.append("<br />\n"); } if (_addresses.size() > 0) { _postBodyBuffer.append(getSpan("summDetailAddr")).append("Addresses:</span>"); for (int i = 0; i < _addresses.size(); i++) { Address a = (Address)_addresses.get(i); String knownName = null; if (_user != null) knownName = _user.getPetNameDB().getByLocation(a.location).getName(); if (knownName != null) { _postBodyBuffer.append(' ').append(getSpan("summDetailAddrKnown")); _postBodyBuffer.append(sanitizeString(knownName)).append("</span>"); } else { _postBodyBuffer.append(" <a ").append(getClass("summDetailAddrLink")).append(" href=\"addresses.jsp?"); if (a.schema != null) _postBodyBuffer.append("network=").append(sanitizeTagParam(a.schema)).append('&'); if (a.location != null) _postBodyBuffer.append("location=").append(sanitizeTagParam(a.location)).append('&'); if (a.name != null) _postBodyBuffer.append("name=").append(sanitizeTagParam(a.name)).append('&'); if (a.protocol != null) _postBodyBuffer.append("protocol=").append(sanitizeTagParam(a.protocol)).append('&'); _postBodyBuffer.append("\">").append(sanitizeString(a.name)).append("</a>"); } importAddress(a); } _postBodyBuffer.append("<br />\n"); } if (_archives.size() > 0) { _postBodyBuffer.append(getSpan("summDetailArchive")).append("Archives:</span>"); for (int i = 0; i < _archives.size(); i++) { ArchiveRef a = (ArchiveRef)_archives.get(i); _postBodyBuffer.append(" <a ").append(getClass("summDetailArchiveLink")).append(" href=\"").append(getArchiveURL(null, new SafeURL(a.locationSchema + "://" + a.location))); _postBodyBuffer.append("\">").append(sanitizeString(a.name)).append("</a>"); if (a.description != null) _postBodyBuffer.append(": ").append(getSpan("summDetailArchiveDesc")).append(sanitizeString(a.description)).append("</span>"); if (null == _user.getPetNameDB().getByLocation(a.location)) { _postBodyBuffer.append(" <a ").append(getClass("summDetailArchiveBookmark")).append(" href=\""); _postBodyBuffer.append(getBookmarkURL(a.name, a.location, a.locationSchema, "syndiearchive")); _postBodyBuffer.append("\">bookmark</a>"); } } _postBodyBuffer.append("<br />\n"); } _postBodyBuffer.append("</td>\n</form>\n</tr>\n"); _postBodyBuffer.append("</table>\n"); } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/f282fe38545cf54f690b8fd2c8e2402795ab428f/HTMLPreviewRenderer.java/buggy/apps/syndie/java/src/net/i2p/syndie/sml/HTMLPreviewRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6798,
1638,
1435,
288,
540,
389,
18031,
1892,
18,
6923,
2932,
1757,
4465,
4695,
313,
5333,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
32,
313,
315,
2934,
6923,
12,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6798,
1638,
1435,
288,
540,
389,
18031,
1892,
18,
6923,
2932,
1757,
4465,
4695,
313,
5333,
82,
8863,
3639,
389,
18031,
1892,
18,
6923,
2932,
32,
313,
315,
2934,
6923,
12,
588,
... |
public void getWordChars(StringBuffer sbChars, Position bp1, | void getWordChars(StringBuffer sbChars, Position bp1, | public void getWordChars(StringBuffer sbChars, Position bp1, Position bp2); | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/f0f033dbfc06353937d8d031ef6ac7fa0d21b27e/LayoutProcessor.java/buggy/src/org/apache/fop/layoutmgr/LayoutProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
336,
3944,
7803,
12,
780,
1892,
2393,
7803,
16,
11010,
9107,
21,
16,
11794,
11010,
9107,
22,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
336,
3944,
7803,
12,
780,
1892,
2393,
7803,
16,
11010,
9107,
21,
16,
11794,
11010,
9107,
22,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return ((SocketChannelImpl) ch).getNativeFD(); | NIOSocket socket = (NIOSocket) ((SocketChannelImpl) ch).socket(); return socket.getPlainSocketImpl().getNativeFD(); | public int getNativeFD() { return ((SocketChannelImpl) ch).getNativeFD(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/decc5d82ba0a18c6445f683c0d1a3d78fe4b1564/SocketChannelSelectionKey.java/buggy/core/src/classpath/gnu/gnu/java/nio/SocketChannelSelectionKey.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
25945,
16894,
1435,
225,
288,
565,
423,
4294,
4534,
2987,
273,
261,
50,
4294,
4534,
13,
14015,
4534,
2909,
2828,
13,
462,
2934,
7814,
5621,
327,
2987,
18,
588,
13360,
4534,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
25945,
16894,
1435,
225,
288,
565,
423,
4294,
4534,
2987,
273,
261,
50,
4294,
4534,
13,
14015,
4534,
2909,
2828,
13,
462,
2934,
7814,
5621,
327,
2987,
18,
588,
13360,
4534,
282... |
while ( index < len && Character.isWhitespace( text.charAt( index ) ) ) | while ( index < len && Character.isWhitespace( text.charAt( index ) ) ) | public Document parse( String text, String textType ) { // Handle null case if ( text == null || text.length( ) == 0 ) return null; //If the type is null or auto, resets the text type based on the content prefix if ( null == textType || TEXT_TYPE_AUTO.equalsIgnoreCase( textType ) ) { int index = 0; int len = text.length( ); // remove white spaces while ( index < len && Character.isWhitespace( text.charAt( index ) ) ) { index++; } // Checks if the first six characters are "<html>" if ( ( len - index ) >= 6 && text.substring( index, index + 6 ).equalsIgnoreCase(HTML_PREFIX ) ) textType = TEXT_TYPE_HTML; else if ( ( len - index ) >= 4 && text.substring( index, index + 4 ).equalsIgnoreCase(RTF_PREFIX ) ) textType = TEXT_TYPE_RTF; else textType = TEXT_TYPE_PLAIN; // Assume plain text in any other cases } if ( TEXT_TYPE_HTML.equalsIgnoreCase( textType ) ) { try { //Convert input string to an input stream because JTidy accepts a stream only return new HTMLTextParser( ).parseHTML( new ByteArrayInputStream(text.getBytes( "UTF-8" ) ) ); } catch ( UnsupportedEncodingException e ) { logger.error( e ); return null; } } else if ( TEXT_TYPE_RTF.equalsIgnoreCase( textType ) ) { assert false; // Not supported yet return null; } else { if ( !TEXT_TYPE_PLAIN.equalsIgnoreCase( textType ) ) logger.warn( "Invalid text type. The content is treated as plain text." ); return new PlainTextParser( ).parsePlainText( text ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/3797dac7d94fa35f3ec480c611939404776c182d/TextParser.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/TextParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
1109,
12,
514,
977,
16,
514,
977,
559,
262,
202,
95,
202,
202,
759,
5004,
446,
648,
202,
202,
430,
261,
977,
422,
446,
747,
977,
18,
2469,
12,
262,
422,
374,
262,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
1109,
12,
514,
977,
16,
514,
977,
559,
262,
202,
95,
202,
202,
759,
5004,
446,
648,
202,
202,
430,
261,
977,
422,
446,
747,
977,
18,
2469,
12,
262,
422,
374,
262,
10... |
public CreateLinkedResourceGroup(int type, Listener listener) { | public CreateLinkedResourceGroup(int type, Listener listener, IStringValue updatableResourceName) { | public CreateLinkedResourceGroup(int type, Listener listener) { this.type = type; this.listener = listener; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d7c68a81b9d3a3bda1a5ff28841fd82c511b0cb7/CreateLinkedResourceGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1788,
13174,
18860,
12,
474,
618,
16,
10652,
2991,
16,
467,
19733,
2166,
8163,
19327,
13,
288,
3639,
333,
18,
723,
273,
618,
31,
3639,
333,
18,
12757,
273,
2991,
31,
565,
289,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1788,
13174,
18860,
12,
474,
618,
16,
10652,
2991,
16,
467,
19733,
2166,
8163,
19327,
13,
288,
3639,
333,
18,
723,
273,
618,
31,
3639,
333,
18,
12757,
273,
2991,
31,
565,
289,
2,
... |
g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dH ) + 3, dFW, dFH ) ); | g2d.setPaint( new GradientPaint( new Point2D.Double( dX + shadowness, ( dY - dH ) + shadowness ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + shadowness + dFW, ( dY - dH ) + shadowness + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + shadowness, ( dY - dH ) + shadowness, dFW, dFH ) ); | private final void showRightValue( IPrimitiveRenderer ipr, Location lo, Label la, boolean bShadow ) { Graphics2D g2d = (Graphics2D) ( (IDeviceRenderer) ipr ).getGraphicsContext( ); double dX = lo.getX( ), dY = lo.getY( ); FontDefinition fd = la.getCaption( ).getFont( ); double dAngleInDegrees = fd.getRotation( ); if ( bShadow ) // UPDATE TO FALSE IF SHADOW COLOR UNDEFINED BUT SHADOW // REQUESTED FOR { bShadow = la.getShadowColor( ) != null; } Color clrText = (Color) _sxs.getColor( la.getCaption( ).getColor( ) ); Color clrBackground = null; if ( la.getBackground( ) != null ) { clrBackground = (Color) _sxs.getColor( (ColorDefinition) la.getBackground( ) ); } // dX += 2; dY += 1; final ITextMetrics itm = new SwingTextMetrics( _sxs, la ); final double dFW = itm.getFullWidth( ); final double dH = itm.getHeight( ); final double dD = itm.getDescent( ); final double dFH = itm.getFullHeight( ); double dXOffset = 0, dW = 0; final int iLC = itm.getLineCount( ); final Insets ins = la.getInsets( ) .scaledInstance( _sxs.getDpiResolution( ) / 72d ); TextLayout tl; final HorizontalAlignment ha = la.getCaption( ) .getFont( ) .getAlignment( ) .getHorizontalAlignment( ); final boolean bRightAligned = ha.getValue( ) == HorizontalAlignment.RIGHT; final boolean bCenterAligned = ha.getValue( ) == HorizontalAlignment.CENTER; double dAngleInRadians = ( ( -dAngleInDegrees * Math.PI ) / 180.0 ); int iRotateX = (int) dX; int iRotateY = (int) ( dY + dH / 2 ); dY += dH / 2; // HORIZONTAL TEXT if ( dAngleInDegrees == 0 ) { double dYHalfOffset = ( dFH + dH ) / 2d; if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dYHalfOffset ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dYHalfOffset ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dYHalfOffset ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dYHalfOffset, dFW, dFH ); // RENDER THE BACKGROUND FILL if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dYHalfOffset + ins.getTop( ) + dH * ( i + 1 ) - dD ) // (float)(((dY - dD) - ((iLC - i) * dH - (iLC + 1) * dH/2)) // + ins.getTop()) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } } // DRAW POSITIVE ANGLE (> 0) else if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { double dDeltaX = dH * Math.sin( dAngleInRadians ); double dDeltaY = dH * Math.cos( dAngleInRadians ) - dH / 2; dX -= dDeltaX; dY += dDeltaY; g2d.rotate( dAngleInRadians, iRotateX - dDeltaX, iRotateY + dDeltaY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, ( dY - dH ), dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( dY - dD + dH * i ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, iRotateX - dDeltaX, iRotateY + dDeltaY ); // crossHairs(g2d, (int)dX, (int)dY); } // DRAW NEGATIVE ANGLE (< 0) else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { double dDeltaY = -dH / 2; dY += dDeltaY; g2d.rotate( dAngleInRadians, iRotateX, iRotateY + dDeltaY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dFH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dFH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dFH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dFH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( dY - dD - dH * ( iLC - i - 1 ) ) - ins.getBottom( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, iRotateX, iRotateY + dDeltaY ); // crossHairs(g2d, (int)dX, (int)dY); } // VERTICALLY UP else if ( dAngleInDegrees == 90 ) { double dDeltaX = dH; double dDeltaY = ( dFW - dH ) / 2; dX += dDeltaX; dY += dDeltaY; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( dY - dD + dH * i ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); // crossHairs(g2d, (int)dX, (int)dY); } // VERTICALLY DOWN else if ( dAngleInDegrees == -90 ) { double dDeltaX = 0; double dDeltaY = ( dFW + dH ) / 2; dX += dDeltaX; dY -= dDeltaY; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SwingTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( dY - dD + dH * i ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } // UNDO THE 'ROTATED' STATE OF THE GRAPHICS CONTEXT g2d.rotate( -dAngleInRadians, dX, dY ); // crossHairs(g2d, (int)dX, (int)dY); } itm.dispose( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/645091079ddc89586ae4a5e7783994b5b8660cce/SwingTextRenderer.java/buggy/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingTextRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
2405,
4726,
620,
12,
467,
9840,
6747,
277,
683,
16,
7050,
437,
16,
1082,
202,
2224,
7125,
16,
1250,
324,
12957,
262,
202,
95,
202,
202,
17558,
22,
40,
314,
22,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
2405,
4726,
620,
12,
467,
9840,
6747,
277,
683,
16,
7050,
437,
16,
1082,
202,
2224,
7125,
16,
1250,
324,
12957,
262,
202,
95,
202,
202,
17558,
22,
40,
314,
22,
72... |
protected synchronized void swapBuffers() throws GLException { | public synchronized void swapBuffers() throws GLException { | protected synchronized void swapBuffers() throws GLException { } | 45742 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45742/f90ab644c419486f7894fda3725a9c81de8bb283/X11OffscreenGLContext.java/buggy/src/net/java/games/jogl/impl/x11/X11OffscreenGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
7720,
13699,
1435,
1216,
10252,
503,
288,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
7720,
13699,
1435,
1216,
10252,
503,
288,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if (!cfg.manuallyImplement(sym.getName()) && !isUnimplemented) { CMethodBindingEmitter cEmitter = makeCEmitter(specialBinding, overloaded, (binding != specialBinding), cfg.implPackageName(), cfg.implClassName(), cWriter()); allEmitters.add(cEmitter); | if (!cfg.manuallyImplement(sym.getName()) && !isUnimplemented) { if (binding.needsBody()) { PrintWriter output = cfg.allStatic() ? javaWriter() : javaImplWriter(); JavaMethodBindingEmitter wrappedEntryPoint = new JavaMethodBindingEmitter(specialBinding, output, cfg.runtimeExceptionType(), true); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.PRIVATE); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.STATIC); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.NATIVE); allEmitters.add(wrappedEntryPoint); | protected Iterator generateMethodBindingEmitters(FunctionSymbol sym) throws Exception { ArrayList/*<FunctionEmitter>*/ allEmitters = new ArrayList(1); try { // Get Java binding for the function MethodBinding mb = bindFunction(sym, null, null); // Expand all void* arguments List bindings = expandMethodBinding(mb); boolean overloaded = (bindings.size() > 1); if (overloaded) { // resize ahead of time for speed allEmitters.ensureCapacity(bindings.size()); } // List of the indices of the arguments in this function that should be // expanded to the same type when binding functions with multiple void* // arguments List mirrorIdxs = cfg.mirroredArgs(sym.getName()); for (Iterator iter = bindings.iterator(); iter.hasNext(); ) { MethodBinding binding = (MethodBinding) iter.next(); // Honor the MirrorExpandedBindingArgs directive in .cfg files if (mirrorIdxs != null) { assert(mirrorIdxs.size() >= 2); // sanity check. boolean typesMatch = true; int argIndex = ((Integer)mirrorIdxs.get(0)).intValue(); JavaType leftArgType = binding.getJavaArgumentType(argIndex); for (int i = 1; i < mirrorIdxs.size(); ++i) { argIndex = ((Integer)mirrorIdxs.get(i)).intValue(); JavaType rightArgType = binding.getJavaArgumentType(argIndex); if (!(leftArgType.equals(rightArgType))) { typesMatch = false; break; } leftArgType = rightArgType; } // Don't emit the binding if the specified args aren't the same type if (!typesMatch) { continue; } // skip this binding } // Try to create an NIOBuffer variant for this expanded binding. If // it's the same as the original binding, then we'll be able to emit // the binding like any normal binding because no special binding // generation (wrapper methods, etc) will be necessary. MethodBinding specialBinding = binding.createNIOBufferVariant(); if (cfg.allStatic() && binding.hasContainingType()) { // This should not currently happen since structs are emitted using a different mechanism throw new IllegalArgumentException("Cannot create binding in AllStatic mode because method has containing type: \"" + binding + "\""); } boolean isUnimplemented = cfg.isUnimplemented(binding.getName()); if (cfg.emitImpl()) { // Generate the emitter for the method which may do conversion // from type wrappers to NIO Buffers or which may call the // underlying function directly JavaMethodBindingImplEmitter entryPoint = new JavaMethodBindingImplEmitter(binding, (cfg.allStatic() ? javaWriter() : javaImplWriter()), cfg.runtimeExceptionType(), isUnimplemented); entryPoint.addModifier(JavaMethodBindingEmitter.PUBLIC); if (cfg.allStatic()) { entryPoint.addModifier(JavaMethodBindingEmitter.STATIC); } if (!isUnimplemented && !binding.needsBody()) { entryPoint.addModifier(JavaMethodBindingEmitter.NATIVE); } entryPoint.setReturnedArrayLengthExpression(cfg.returnedArrayLength(binding.getName())); allEmitters.add(entryPoint); } if (cfg.emitInterface()) { // Generate an emitter that will emit just the interface to the function JavaMethodBindingEmitter entryPointInterface = new JavaMethodBindingEmitter(binding, javaWriter(), cfg.runtimeExceptionType()); entryPointInterface.addModifier(JavaMethodBindingEmitter.PUBLIC); entryPointInterface.setReturnedArrayLengthExpression(cfg.returnedArrayLength(binding.getName())); allEmitters.add(entryPointInterface); } if (cfg.emitImpl() && binding.needsBody() && !isUnimplemented) { // Generate the method which calls the underlying function // after unboxing has occurred PrintWriter output = cfg.allStatic() ? javaWriter() : javaImplWriter(); JavaMethodBindingEmitter wrappedEntryPoint = new JavaMethodBindingEmitter(specialBinding, output, cfg.runtimeExceptionType(), true); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.PRIVATE); wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.STATIC); // Doesn't really matter wrappedEntryPoint.addModifier(JavaMethodBindingEmitter.NATIVE); allEmitters.add(wrappedEntryPoint); } // If the user has stated that the function will be // manually implemented, then don't auto-generate a function body. if (cfg.emitImpl()) { if (!cfg.manuallyImplement(sym.getName()) && !isUnimplemented) { CMethodBindingEmitter cEmitter = makeCEmitter(specialBinding, overloaded, (binding != specialBinding), cfg.implPackageName(), cfg.implClassName(), cWriter()); allEmitters.add(cEmitter); } } } // end iteration over expanded bindings } catch (Exception e) { throw new RuntimeException( "Error while generating bindings for \"" + sym + "\"", e); } return allEmitters.iterator(); } | 46278 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46278/661fec76c5ccd030016d66675024ec604752ccda/JavaEmitter.java/clean/src/net/java/games/gluegen/JavaEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4498,
2103,
1305,
5250,
17982,
5432,
12,
2083,
5335,
5382,
13,
1216,
1185,
288,
565,
2407,
20308,
32,
2083,
13476,
34,
5549,
777,
17982,
5432,
273,
394,
2407,
12,
21,
1769,
565,
775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4498,
2103,
1305,
5250,
17982,
5432,
12,
2083,
5335,
5382,
13,
1216,
1185,
288,
565,
2407,
20308,
32,
2083,
13476,
34,
5549,
777,
17982,
5432,
273,
394,
2407,
12,
21,
1769,
565,
775... |
static void init( ) | void init( ) | static void init( ) { // Create display Display.getDefault( ); if ( !UIHelper.isEclipseMode( ) ) { // Registers the wizard task and the chart wizard try { TasksManager.instance( ) .registerTask( "org.eclipse.birt.chart.ui.swt.wizard.TaskSelectType", //$NON-NLS-1$ new TaskSelectType( ) ); TasksManager.instance( ) .registerTask( "org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData", //$NON-NLS-1$ new TaskSelectData( ) ); TasksManager.instance( ) .registerTask( "org.eclipse.birt.chart.ui.swt.wizard.TaskFormatChart", //$NON-NLS-1$ new TaskFormatChart( ) ); String sChartTasks = "org.eclipse.birt.chart.ui.swt.wizard.TaskSelectType,org.eclipse.birt.chart.ui.swt.wizard.TaskSelectData,org.eclipse.birt.chart.ui.swt.wizard.TaskFormatChart"; //$NON-NLS-1$ TasksManager.instance( ) .registerWizard( "org.eclipse.birt.chart.ui.ChartWizard", //$NON-NLS-1$ sChartTasks, "" ); //$NON-NLS-1$ } catch ( Exception e ) { WizardBase.displayException( e ); } } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/de9f1af96de3805bd8acbf2319663820c7784853/ChartWizardLauncher.java/clean/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/builder/ChartWizardLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
1208,
12,
262,
202,
95,
202,
202,
759,
1788,
2562,
202,
202,
4236,
18,
588,
1868,
12,
11272,
202,
202,
430,
261,
401,
5370,
2276,
18,
291,
23057,
10472,
2309,
12,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
1208,
12,
262,
202,
95,
202,
202,
759,
1788,
2562,
202,
202,
4236,
18,
588,
1868,
12,
11272,
202,
202,
430,
261,
401,
5370,
2276,
18,
291,
23057,
10472,
2309,
12,
262,
... |
(inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inHigh[i - 1] > inClose[i - 2] && inHigh[i] > inHigh[i - 1] && inLow[i] < inLow[i - 1]) outInteger[outIdx++] = 100; else outInteger[outIdx++] = 0; for (totIdx = 3; totIdx >= 1; --totIdx) ShadowVeryShortPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowVeryShortTrailingIdx - totIdx] - inOpen[ShadowVeryShortTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - inLow[ShadowVeryShortTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - (inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inClose[ShadowVeryShortTrailingIdx - totIdx] : inOpen[ShadowVeryShortTrailingIdx - totIdx])) + ((inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inOpen[ShadowVeryShortTrailingIdx - totIdx] : inClose[ShadowVeryShortTrailingIdx - totIdx]) - inLow[ShadowVeryShortTrailingIdx - totIdx]) : 0))); i++; ShadowVeryShortTrailingIdx++; } while (i <= endIdx); | public TA_RetCode CDLCONCEALBABYSWALL(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double[] ShadowVeryShortPeriodTotal = new double[4]; ; int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLCONCEALBABYSWALL_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } ShadowVeryShortPeriodTotal[3] = 0; ShadowVeryShortPeriodTotal[2] = 0; ShadowVeryShortPeriodTotal[1] = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod); i = ShadowVeryShortTrailingIdx; while (i < startIdx) { ShadowVeryShortPeriodTotal[3] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 3] - inOpen[i - 3])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 3] - inLow[i - 3]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 3] - (inClose[i - 3] >= inOpen[i - 3] ? inClose[i - 3] : inOpen[i - 3])) + ((inClose[i - 3] >= inOpen[i - 3] ? inOpen[i - 3] : inClose[i - 3]) - inLow[i - 3]) : 0))); ShadowVeryShortPeriodTotal[2] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); ShadowVeryShortPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 3] >= inOpen[i - 3] ? 1 : -1) == -1 && (inClose[i - 2] >= inOpen[i - 2] ? 1 : -1) == -1 && (inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -1 && (inClose[i] >= inOpen[i] ? 1 : -1) == -1 && ((inClose[i - 3] >= inOpen[i - 3] ? inOpen[i - 3] : inClose[i - 3]) - inLow[i - 3]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[3] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 3] - inOpen[i - 3])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 3] - inLow[i - 3]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 3] - (inClose[i - 3] >= inOpen[i - 3] ? inClose[i - 3] : inOpen[i - 3])) + ((inClose[i - 3] >= inOpen[i - 3] ? inOpen[i - 3] : inClose[i - 3]) - inLow[i - 3]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i - 3] - (inClose[i - 3] >= inOpen[i - 3] ? inClose[i - 3] : inOpen[i - 3])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[3] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 3] - inOpen[i - 3])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 3] - inLow[i - 3]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 3] - (inClose[i - 3] >= inOpen[i - 3] ? inClose[i - 3] : inOpen[i - 3])) + ((inClose[i - 3] >= inOpen[i - 3] ? inOpen[i - 3] : inClose[i - 3]) - inLow[i - 3]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ((((inOpen[i - 1]) > (inClose[i - 1])) ? (inOpen[i - 1]) : (inClose[i - 1])) < (((inOpen[i - 2]) < (inClose[i - 2])) ? (inOpen[i - 2]) : (inClose[i - 2]))) && (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) != 0.0 ? ShadowVeryShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inHigh[i - 1] > inClose[i - 2] && inHigh[i] > inHigh[i - 1] && inLow[i] < inLow[i - 1]) outInteger[outIdx++] = 100; else outInteger[outIdx++] = 0; for (totIdx = 3; totIdx >= 1; --totIdx) ShadowVeryShortPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowVeryShortTrailingIdx - totIdx] - inOpen[ShadowVeryShortTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - inLow[ShadowVeryShortTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowVeryShortTrailingIdx - totIdx] - (inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inClose[ShadowVeryShortTrailingIdx - totIdx] : inOpen[ShadowVeryShortTrailingIdx - totIdx])) + ((inClose[ShadowVeryShortTrailingIdx - totIdx] >= inOpen[ShadowVeryShortTrailingIdx - totIdx] ? inOpen[ShadowVeryShortTrailingIdx - totIdx] : inClose[ShadowVeryShortTrailingIdx - totIdx]) - inLow[ShadowVeryShortTrailingIdx - totIdx]) : 0))); i++; ShadowVeryShortTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; } | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
385,
8914,
2248,
1441,
1013,
38,
2090,
61,
18746,
4685,
12,
474,
27108,
16,
509,
679,
4223,
16,
1082,
202,
9056,
316,
3678,
63,
6487,
1645,
316,
8573,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
399,
37,
67,
7055,
1085,
385,
8914,
2248,
1441,
1013,
38,
2090,
61,
18746,
4685,
12,
474,
27108,
16,
509,
679,
4223,
16,
1082,
202,
9056,
316,
3678,
63,
6487,
1645,
316,
8573,... | |
if(next != null && i.compareTo(next) > 0) { | if((next != null) && (i.compareTo(next) > 0)) { | public synchronized void update(UpdatableSortedLinkedListItem i) throws UpdatableSortedLinkedListKilledException { if(killed) throw new UpdatableSortedLinkedListKilledException(); Logger.minor(this, "Update("+i+") on "+this); checkList(); if(i.compareTo(list.tail()) > 0) { list.remove(i); list.push(i); checkList(); return; } if(i.compareTo(list.head()) < 0) { list.remove(i); list.unshift(i); checkList(); return; } if(list.head() == list.tail() && i != list.head()) { Logger.error(this, "Only 1 element: "+list.head()+" and updating "+i+" on "+this, new Exception("error")); add(i); checkList(); return; } // Forwards or backwards? UpdatableSortedLinkedListItem next = (UpdatableSortedLinkedListItem) list.next(i); UpdatableSortedLinkedListItem prev = (UpdatableSortedLinkedListItem) list.prev(i); if(next == null && prev == null) { return; } if(next != null && prev != null && next.compareTo(i) >= 0 && prev.compareTo(i) <= 0) return; // already exactly where it should be if(next == null && prev != null) { if(prev.compareTo(i) <= 0) return; // already in right place, at end } if(next != null && prev == null) { if(next.compareTo(i) >= 0) return; // already where it should be } if(next != null && i.compareTo(next) > 0) { // i > next - move forwards while(true) { prev = next; next = (UpdatableSortedLinkedListItem) list.next(next); if(next == null) { throw new NullPointerException("impossible - we checked"); } if(i.compareTo(next) < 0 && i.compareTo(prev) > 0) { list.remove(i); list.insertNext(prev, i); checkList(); return; } } } else if(prev != null && i.compareTo(prev) < 0) { // i < next - move backwards while(true) { next = prev; prev = (UpdatableSortedLinkedListItem) list.prev(prev); if(next == null) { throw new NullPointerException("impossible - we checked"); } if(i.compareTo(next) < 0 && i.compareTo(prev) > 0) { list.remove(i); list.insertNext(prev, i); checkList(); return; } } } Logger.error(this, "Could not update "+i, new Exception("error")); dump(); remove(i); add(i); checkList(); } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/UpdatableSortedLinkedList.java/buggy/src/freenet/support/UpdatableSortedLinkedList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
1216,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
288,
377,
202,
430,
12,
79,
13148,
13,
604,
394,
1948,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
1216,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
288,
377,
202,
430,
12,
79,
13148,
13,
604,
394,
1948,
... |
try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e) { e.printStackTrace(); } | ps_main = conn_main.prepareStatement("select count(*) from sys.systables"); rs_main = ps_main.executeQuery(); | public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e) { e.printStackTrace(); } try { ps_main = conn_main.prepareStatement("select count(*) from sys.systables"); rs_main = ps_main.executeQuery(); } catch(SQLException e) { System.out.println(""+e); e.printStackTrace(); } TestResultSetMethods trsm = new TestResultSetMethods(); trsm.startTestResultSetMethods(conn_main,ps_main,rs_main); /**************************************************************************************** * This tests the client server part of derby *****************************************************************************************/ conn_main=null; ps_main=null; try { conn_main = tc.createClientConnection(); } catch(Exception e) { e.printStackTrace(); } try { ps_main = conn_main.prepareStatement("select count(*) from sys.systables"); rs_main = ps_main.executeQuery(); } catch(SQLException e) { System.out.println(""+e); e.printStackTrace(); } trsm.startTestResultSetMethods(conn_main,ps_main,rs_main); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/21350fd74c6aee8422e4afbbe3a5c93c34081748/TestResultSetMethods.java/clean/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestResultSetMethods.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
7766,
1952,
1715,
33,
2011,
31,
3639,
4050,
1487,
67,
5254,
33,
2011,
31,
3639,
16913,
4250,
67,
5254,
33,
2011,
31,
3639,
10842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
7766,
1952,
1715,
33,
2011,
31,
3639,
4050,
1487,
67,
5254,
33,
2011,
31,
3639,
16913,
4250,
67,
5254,
33,
2011,
31,
3639,
10842... |
public void renderStatusHTML(OutputStream out) throws IOException { | public void renderStatusHTML(Writer out) throws IOException { | public void renderStatusHTML(OutputStream out) throws IOException { StringBuffer buf = new StringBuffer(8*1024); buf.append("<h2>Transport Manager</h2>\n"); buf.append("Listening on: <br /><pre>\n"); for (int i = 0; i < _transports.size(); i++) { Transport t = (Transport)_transports.get(i); for (Iterator iter = t.getCurrentAddresses().iterator(); iter.hasNext(); ) { RouterAddress addr = (RouterAddress)iter.next(); buf.append(addr.toString()).append("\n\n"); } } buf.append("</pre>\n"); for (Iterator iter = _transports.iterator(); iter.hasNext(); ) { Transport t = (Transport)iter.next(); String str = t.renderStatusHTML(); if (str != null) buf.append(str); } out.write(buf.toString().getBytes()); } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/62ed6c6a58f9adaa081ae5a6cb591d18c6ad4f85/TransportManager.java/buggy/router/java/src/net/i2p/router/transport/TransportManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
1482,
4870,
12,
2289,
596,
13,
1216,
1860,
288,
3639,
6674,
1681,
273,
394,
6674,
12,
28,
14,
2163,
3247,
1769,
3639,
1681,
18,
6923,
2932,
32,
76,
22,
34,
6568,
8558,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
1482,
4870,
12,
2289,
596,
13,
1216,
1860,
288,
3639,
6674,
1681,
273,
394,
6674,
12,
28,
14,
2163,
3247,
1769,
3639,
1681,
18,
6923,
2932,
32,
76,
22,
34,
6568,
8558,
... |
lastExprEndLine = ts.getLineno(); | private Object memberExprTail(TokenStream ts, boolean allowCallSyntax, Object pn) throws IOException, JavaScriptException { lastExprEndLine = ts.getLineno(); int tt; while ((tt = ts.getToken()) > ts.EOF) { if (tt == ts.DOT) { sourceAdd((char)ts.DOT); mustMatchToken(ts, ts.NAME, "msg.no.name.after.dot"); String s = ts.getString(); sourceAddString(ts.NAME, s); pn = nf.createBinary(ts.DOT, pn, nf.createName(ts.getString())); /* pn = nf.createBinary(ts.DOT, pn, memberExpr(ts)) * is the version in Brendan's IR C version. Not in ECMA... * does it reflect the 'new' operator syntax he mentioned? */ lastExprEndLine = ts.getLineno(); } else if (tt == ts.LB) { sourceAdd((char)ts.LB); pn = nf.createBinary(ts.LB, pn, expr(ts, false)); mustMatchToken(ts, ts.RB, "msg.no.bracket.index"); sourceAdd((char)ts.RB); lastExprEndLine = ts.getLineno(); } else if (allowCallSyntax && tt == ts.LP) { /* make a call node */ pn = nf.createUnary(ts.CALL, pn); sourceAdd((char)ts.LP); /* Add the arguments to pn, if any are supplied. */ pn = argumentList(ts, pn); lastExprEndLine = ts.getLineno(); } else { ts.ungetToken(tt); break; } } return pn; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/c62a606a26a6e2c28c9ccbac0fe59fd7424de388/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3140,
4742,
12363,
12,
1345,
1228,
3742,
16,
1250,
1699,
1477,
8070,
16,
21394,
1033,
11059,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
9079,
509,
3574,
31,
3639,
1323,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3140,
4742,
12363,
12,
1345,
1228,
3742,
16,
1250,
1699,
1477,
8070,
16,
21394,
1033,
11059,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
9079,
509,
3574,
31,
3639,
1323,
1... | |
} catch (Exception e){} } | if ( (System.currentTimeMillis() - lastTimeStamp) < CHECK_PERIOD) { } else if ( (System.currentTimeMillis() - lastTimeStamp) < (2 * CHECK_PERIOD)) { if (filterText.getText() != lastFilterText) { lastFilterText = filterText.getText(); setFilter(); } } else { } } } | public void run() { try { detail.setText(text2); detail.validate(); if (text2.length() > 0) { detail.setCaretPosition(0); } } catch (Exception e){} //ignore } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/53b0abc9071083b96c6203047d8c66c6d30f6902/LogPanel.java/buggy/src/java/org/apache/log4j/chainsaw/LogPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
7664,
18,
542,
1528,
12,
955,
22,
1769,
7734,
7664,
18,
5662,
5621,
7734,
309,
261,
955,
22,
18,
2469,
1435,
405,
374,
13,
288,
10792,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
7664,
18,
542,
1528,
12,
955,
22,
1769,
7734,
7664,
18,
5662,
5621,
7734,
309,
261,
955,
22,
18,
2469,
1435,
405,
374,
13,
288,
10792,... |
if( parent == clsBase ){ | if( parent.isSameType( clsBase ) || (clsBase instanceof ICPPSpecialization && ((IType)((ICPPSpecialization)clsBase).getSpecializedBinding()).isSameType( parent ) ) ) { | static private int hasBaseClass( IBinding symbol, IBinding base, boolean needVisibility ) throws DOMException { if( symbol == base ){ return 0; } ICPPClassType clsSymbol = null; ICPPClassType clsBase = null; IType temp = null; while( symbol instanceof ITypedef ){ temp = ((ITypedef)symbol).getType(); if( temp instanceof IBinding ) symbol = (IBinding) temp; else return -1; } if( symbol instanceof ICPPClassType ) clsSymbol = (ICPPClassType) symbol; else return -1; while( base instanceof ITypedef ){ temp = ((ITypedef)base).getType(); if( temp instanceof IBinding ) base= (IBinding) temp; else return -1; } if( base instanceof ICPPClassType ) clsBase = (ICPPClassType) base; else return -1; ICPPClassType parent = null; ICPPBase [] bases = clsSymbol.getBases(); for( int i = 0; i < bases.length; i ++ ){ ICPPBase wrapper = bases[i]; parent = bases[i].getBaseClass(); boolean isVisible = ( wrapper.getVisibility() == ICPPBase.v_public); if( parent == clsBase ){ if( needVisibility && !isVisible ) return -1; return 1; } int n = hasBaseClass( parent, clsBase, needVisibility ); if( n > 0 ) return n + 1; } return -1; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d1d753ba3a22b5315c58628c5291a9feb9e1e5ed/CPPSemantics.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
509,
711,
2171,
797,
12,
467,
5250,
3273,
16,
467,
5250,
1026,
16,
1250,
1608,
10135,
262,
1216,
4703,
503,
288,
202,
202,
430,
12,
3273,
422,
1026,
262,
95,
1082,
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,
3845,
3238,
509,
711,
2171,
797,
12,
467,
5250,
3273,
16,
467,
5250,
1026,
16,
1250,
1608,
10135,
262,
1216,
4703,
503,
288,
202,
202,
430,
12,
3273,
422,
1026,
262,
95,
1082,
202,... |
rewind(_m461); | rewind(_m465); | protected final void mXML_CDATA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = XML_CDATA; int _saveIndex; _saveIndex=text.length(); mXML_CDATA_START(false); text.setLength(_saveIndex); { _loop463: do { boolean synPredMatched458 = false; if (((LA(1)==']') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && ((LA(3) >= '\u0003' && LA(3) <= '\ufffe')) && ((LA(4) >= '\u0003' && LA(4) <= '\ufffe')))) { int _m458 = mark(); synPredMatched458 = true; inputState.guessing++; try { { match(']'); { match(_tokenSet_18); } } } catch (RecognitionException pe) { synPredMatched458 = false; } rewind(_m458); inputState.guessing--; } if ( synPredMatched458 ) { match(']'); } else { boolean synPredMatched461 = false; if (((LA(1)==']') && (LA(2)==']') && ((LA(3) >= '\u0003' && LA(3) <= '\ufffe')) && ((LA(4) >= '\u0003' && LA(4) <= '\ufffe')))) { int _m461 = mark(); synPredMatched461 = true; inputState.guessing++; try { { match(']'); match(']'); { match(_tokenSet_17); } } } catch (RecognitionException pe) { synPredMatched461 = false; } rewind(_m461); inputState.guessing--; } if ( synPredMatched461 ) { { match(']'); match(']'); } } else if ((_tokenSet_18.member(LA(1)))) { { match(_tokenSet_18); } } else { break _loop463; } } } while (true); } _saveIndex=text.length(); mXML_CDATA_END(false); text.setLength(_saveIndex); 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/9aec85412cf9f86cb609358133dd23628306f44a/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
4201,
67,
18375,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
312,
4201,
67,
18375,
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,
... |
if(getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()){ try{ profile.doesUserFullfillEndEntityProfileWithoutPassword(username, dn, subjectaltname, email, certificateprofileid, (type & SecConst.USER_ADMINISTRATOR) != 0, (type & SecConst.USER_KEYRECOVERABLE) != 0, (type & SecConst.USER_SENDNOTIFICATION) != 0, tokentype, hardwaretokenissuerid, caid); }catch(UserDoesntFullfillEndEntityProfile udfp){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Userdata didn'nt fullfill end entity profile. + " + udfp.getMessage()); throw new UserDoesntFullfillEndEntityProfile(udfp.getMessage()); } if(!authorizedToEndEntityProfile(admin, endentityprofileid, AvailableAccessRules.EDIT_RIGHTS)){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Administrator not authorized"); throw new AuthorizationDeniedException("Administrator not authorized to edit user."); } | if (getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()) { try { profile.doesUserFullfillEndEntityProfileWithoutPassword(username, dn, subjectaltname, email, certificateprofileid, (type & SecConst.USER_ADMINISTRATOR) != 0, (type & SecConst.USER_KEYRECOVERABLE) != 0, (type & SecConst.USER_SENDNOTIFICATION) != 0, tokentype, hardwaretokenissuerid, caid); } catch (UserDoesntFullfillEndEntityProfile udfp) { logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY, "Userdata didn'nt fullfill end entity profile. + " + udfp.getMessage()); throw new UserDoesntFullfillEndEntityProfile(udfp.getMessage()); } if (!authorizedToEndEntityProfile(admin, endentityprofileid, AvailableAccessRules.EDIT_RIGHTS)) { logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY, "Administrator not authorized"); throw new AuthorizationDeniedException("Administrator not authorized to edit user."); } | public void changeUser(Admin admin, String username, String password, String subjectdn, String subjectaltname, String email, boolean clearpwd, int endentityprofileid, int certificateprofileid, int type, int tokentype, int hardwaretokenissuerid, int status, int caid) throws AuthorizationDeniedException, UserDoesntFullfillEndEntityProfile { // String used in SQL so strip it String dn = CertTools.stringToBCDNString(subjectdn); dn = StringTools.strip(dn); String newpassword = password; boolean statuschanged = false; debug(">changeUser("+username+", "+dn+", "+email+")"); int oldstatus; EndEntityProfile profile = raadminsession.getEndEntityProfile(admin, endentityprofileid); if(profile.useAutoGeneratedPasswd() && password != null){ // special case used to signal regeneraton of password newpassword = null; } // Check if user fulfills it's profile. if(getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()){ try{ profile.doesUserFullfillEndEntityProfileWithoutPassword(username, dn, subjectaltname, email, certificateprofileid, (type & SecConst.USER_ADMINISTRATOR) != 0, (type & SecConst.USER_KEYRECOVERABLE) != 0, (type & SecConst.USER_SENDNOTIFICATION) != 0, tokentype, hardwaretokenissuerid, caid); }catch(UserDoesntFullfillEndEntityProfile udfp){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Userdata didn'nt fullfill end entity profile. + " + udfp.getMessage()); throw new UserDoesntFullfillEndEntityProfile(udfp.getMessage()); } // Check if administrator is authorized to edit user. if(!authorizedToEndEntityProfile(admin, endentityprofileid, AvailableAccessRules.EDIT_RIGHTS)){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Administrator not authorized"); throw new AuthorizationDeniedException("Administrator not authorized to edit user."); } } // Check if administrator is authorized to edit user to CA. if(!authorizedToCA(admin, caid)){ logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Administrator not authorized to edit user with this CA."); throw new AuthorizationDeniedException("Administrator not authorized to edit user with given CA."); } try { UserDataPK pk = new UserDataPK(username); UserDataLocal data1= home.findByPrimaryKey(pk); if(password != null){ if(clearpwd){ setClearTextPassword(admin, username, newpassword); } else{ setPassword(admin, username, newpassword); } } data1.setDN(dn); if(subjectaltname != null ) data1.setSubjectAltName(subjectaltname); if(email != null) data1.setSubjectEmail(email); data1.setCAId(caid); data1.setType(type); data1.setEndEntityProfileId(endentityprofileid); data1.setCertificateProfileId(certificateprofileid); data1.setTokenType(tokentype); data1.setHardTokenIssuerId(hardwaretokenissuerid); oldstatus = data1.getStatus(); statuschanged = status != oldstatus; data1.setStatus(status); data1.setTimeModified((new java.util.Date()).getTime()); if((type & SecConst.USER_SENDNOTIFICATION) != 0 && statuschanged && (status == UserDataLocal.STATUS_NEW || status == UserDataLocal.STATUS_KEYRECOVERY)){ NotificationCreator notificationcreator = new NotificationCreator(profile.getNotificationSender(), profile.getNotificationSubject(), profile.getNotificationMessage()); sendNotification(admin, notificationcreator, username, newpassword, dn, subjectaltname, email, caid); } if(statuschanged) logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY,"New status: "+ status); else logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY,""); } catch (Exception e) { logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,""); error("ChangeUser:",e); throw new EJBException(e); } debug("<changeUser("+username+", password, "+dn+", "+email+")"); } // changeUser | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/ccb0ad29d39a3f815cc97cd37d04cf533c4593c3/LocalUserAdminSessionBean.java/buggy/src/java/se/anatom/ejbca/ra/LocalUserAdminSessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2549,
1299,
12,
4446,
3981,
16,
514,
2718,
16,
514,
2201,
16,
225,
514,
3221,
5176,
16,
514,
3221,
2390,
529,
16,
514,
2699,
16,
225,
1250,
2424,
27487,
16,
509,
679,
1096,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2549,
1299,
12,
4446,
3981,
16,
514,
2718,
16,
514,
2201,
16,
225,
514,
3221,
5176,
16,
514,
3221,
2390,
529,
16,
514,
2699,
16,
225,
1250,
2424,
27487,
16,
509,
679,
1096,
... |
"Type safety: The cast from X<capture#1-of ? super A> to X<U> is actually checking against the erased type X\n" + | "Type safety: Unchecked cast from X<capture#1-of ? super A> to X<U>\n" + | public void test0550() { this.runNegativeTest( new String[] { "X.java", "class A {}\n" + "class B extends A {}\n" + "\n" + "public class X<T> {\n" + " public <U extends B> void foo(X<? super A> param) {\n" + " X<U> foo = (X<U>)param;\n" + " }\n" + " Zork z;\n" + "}\n", }, "----------\n" + "1. WARNING in X.java (at line 6)\n" + " X<U> foo = (X<U>)param;\n" + " ^^^^^^^^^^^\n" + "Type safety: The cast from X<capture#1-of ? super A> to X<U> is actually checking against the erased type X\n" + "----------\n" + "2. ERROR in X.java (at line 8)\n" + " Zork z;\n" + " ^^^^\n" + "Zork cannot be resolved to a type\n" + "----------\n"); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/89847a0c1a06590b3bbeee9528d77f57e2f8453c/GenericTypeTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
20,
2539,
20,
1435,
288,
202,
202,
2211,
18,
2681,
14959,
4709,
12,
1082,
202,
2704,
514,
8526,
288,
9506,
202,
6,
60,
18,
6290,
3113,
9506,
202,
6,
1106,
432,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
20,
2539,
20,
1435,
288,
202,
202,
2211,
18,
2681,
14959,
4709,
12,
1082,
202,
2704,
514,
8526,
288,
9506,
202,
6,
60,
18,
6290,
3113,
9506,
202,
6,
1106,
432,
21... |
compileLastStep(); | compile(game, entity); | public boolean changeToPhysical() { MoveStep last = getLastStep(); if (last == null && last.getMovementType() == Entity.MOVE_ILLEGAL) { return false; } if (last.getType() != STEP_FORWARDS || isInfantry()) { return false; } Enumeration e = game.getEntities(last.getPosition()); //TODO: this just takes the first target while (e.hasMoreElements()) { Entity en = (Entity) e.nextElement(); if (!en.isSelectableThisTurn(game) && en.isEnemyOf(this.entity)) { this.isPhysical = true; this.removeLastStep(); if (isJumping()) { addStep(MovePath.STEP_DFA, en); } else { addStep(MovePath.STEP_CHARGE, en); } compileLastStep(); return true; } } return false; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/b5c4a6ab2ff8bba7538f379003ff7be02dd41057/MoveOption.java/clean/megamek/src/megamek/client/bot/MoveOption.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2549,
774,
18136,
1435,
288,
3639,
9933,
4160,
1142,
273,
7595,
4160,
5621,
3639,
309,
261,
2722,
422,
446,
597,
1142,
18,
588,
49,
26140,
559,
1435,
422,
3887,
18,
16537,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2549,
774,
18136,
1435,
288,
3639,
9933,
4160,
1142,
273,
7595,
4160,
5621,
3639,
309,
261,
2722,
422,
446,
597,
1142,
18,
588,
49,
26140,
559,
1435,
422,
3887,
18,
16537,
67,... |
return null; | throw new PSQLException("postgresql.metadata.unavailable"); | public java.sql.ResultSet getTypeInfo() throws SQLException { java.sql.ResultSet rs = connection.ExecSQL("select typname from pg_type"); if(rs!=null) { Field f[] = new Field[18]; ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[1] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[2] = new Field(connection, "PRECISION", iInt4Oid, 4); f[3] = new Field(connection, "LITERAL_PREFIX", iVarcharOid, 32); f[4] = new Field(connection, "LITERAL_SUFFIX", iVarcharOid, 32); f[5] = new Field(connection, "CREATE_PARAMS", iVarcharOid, 32); f[6] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[7] = new Field(connection, "CASE_SENSITIVE", iBoolOid, 1); f[8] = new Field(connection, "SEARCHABLE", iInt2Oid, 2); f[9] = new Field(connection, "UNSIGNED_ATTRIBUTE", iBoolOid, 1); f[10] = new Field(connection, "FIXED_PREC_SCALE", iBoolOid, 1); f[11] = new Field(connection, "AUTO_INCREMENT", iBoolOid, 1); f[12] = new Field(connection, "LOCAL_TYPE_NAME", iVarcharOid, 32); f[13] = new Field(connection, "MINIMUM_SCALE", iInt2Oid, 2); f[14] = new Field(connection, "MAXIMUM_SCALE", iInt2Oid, 2); f[15] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[16] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[17] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); // cache some results, this will keep memory useage down, and speed // things up a little. byte b9[] = "9".getBytes(); byte b10[] = "10".getBytes(); byte bf[] = "f".getBytes(); byte bnn[] = Integer.toString(typeNoNulls).getBytes(); byte bts[] = Integer.toString(typeSearchable).getBytes(); while(rs.next()) { byte[][] tuple = new byte[18][]; String typname=rs.getString(1); tuple[0] = typname.getBytes(); tuple[1] = Integer.toString(Field.getSQLType(typname)).getBytes(); tuple[2] = b9; // for now tuple[6] = bnn; // for now tuple[7] = bf; // false for now - not case sensitive tuple[8] = bts; tuple[9] = bf; // false for now - it's signed tuple[10] = bf; // false for now - must handle money tuple[11] = bf; // false for now - handle autoincrement // 12 - LOCAL_TYPE_NAME is null // 13 & 14 ? // 15 & 16 are unused so we return null tuple[17] = b10; // everything is base 10 v.addElement(tuple); } rs.close(); return new ResultSet(connection, f, v, "OK", 1); } return null; } | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/44ae35cab91f1e5a6452da489d4a0c34e181afb9/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
3130,
966,
1435,
1216,
6483,
225,
288,
565,
2252,
18,
4669,
18,
13198,
3597,
273,
1459,
18,
1905,
3997,
2932,
4025,
3815,
529,
628,
7184,
67,
723,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2252,
18,
4669,
18,
13198,
3130,
966,
1435,
1216,
6483,
225,
288,
565,
2252,
18,
4669,
18,
13198,
3597,
273,
1459,
18,
1905,
3997,
2932,
4025,
3815,
529,
628,
7184,
67,
723,
8863,
... |
emmit(out); | emit(out); | public void performTwoPasses(Reader reader, OutputStream out) throws Exception{ StringWriter sw = new StringWriter(); char[] buf = new char[1024]; for(int count; (count = reader.read(buf)) > -1; sw.write(buf, 0, count)); sw.flush(); sw.close(); String data = sw.toString(); //1st pass ReInit(new StringReader(data)); setPass(1); jnasmInput(); assemble(0); //2nd pass setPass(2); instructions.clear(); ReInit(new StringReader(data)); jnasmInput(); emmit(out); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/82fc0ae80f4a9b2a303cad50a43f7e852298607c/Assembler.java/buggy/builder/src/builder/org/jnode/jnasm/assembler/Assembler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
11710,
6433,
281,
12,
2514,
2949,
16,
8962,
596,
13,
1216,
1185,
95,
3639,
17436,
1352,
273,
394,
17436,
5621,
3639,
1149,
8526,
1681,
273,
394,
1149,
63,
2163,
3247,
155... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
11710,
6433,
281,
12,
2514,
2949,
16,
8962,
596,
13,
1216,
1185,
95,
3639,
17436,
1352,
273,
394,
17436,
5621,
3639,
1149,
8526,
1681,
273,
394,
1149,
63,
2163,
3247,
155... |
getExtendedProperties().addAll((Collection)newValue); | getExtendedProperties().addAll((Collection) newValue); | public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case ModelPackage.CHART_WITH_AXES__VERSION: setVersion((String)newValue); return; case ModelPackage.CHART_WITH_AXES__TYPE: setType((String)newValue); return; case ModelPackage.CHART_WITH_AXES__SUB_TYPE: setSubType((String)newValue); return; case ModelPackage.CHART_WITH_AXES__DESCRIPTION: setDescription((Text)newValue); return; case ModelPackage.CHART_WITH_AXES__BLOCK: setBlock((Block)newValue); return; case ModelPackage.CHART_WITH_AXES__DIMENSION: setDimension((ChartDimension)newValue); return; case ModelPackage.CHART_WITH_AXES__SCRIPT: setScript((String)newValue); return; case ModelPackage.CHART_WITH_AXES__UNITS: setUnits((String)newValue); return; case ModelPackage.CHART_WITH_AXES__SERIES_THICKNESS: setSeriesThickness(((Double)newValue).doubleValue()); return; case ModelPackage.CHART_WITH_AXES__SERIES_HINTS: setSeriesHints((SeriesHint)newValue); return; case ModelPackage.CHART_WITH_AXES__GRID_COLUMN_COUNT: setGridColumnCount(((Integer)newValue).intValue()); return; case ModelPackage.CHART_WITH_AXES__EXTENDED_PROPERTIES: getExtendedProperties().clear(); getExtendedProperties().addAll((Collection)newValue); return; case ModelPackage.CHART_WITH_AXES__SAMPLE_DATA: setSampleData((SampleData)newValue); return; case ModelPackage.CHART_WITH_AXES__AXES: getAxes().clear(); getAxes().addAll((Collection)newValue); return; case ModelPackage.CHART_WITH_AXES__WALL_FILL: setWallFill((Fill)newValue); return; case ModelPackage.CHART_WITH_AXES__FLOOR_FILL: setFloorFill((Fill)newValue); return; case ModelPackage.CHART_WITH_AXES__ORIENTATION: setOrientation((Orientation)newValue); return; case ModelPackage.CHART_WITH_AXES__UNIT_SPACING: setUnitSpacing(((Double)newValue).doubleValue()); return; } eDynamicSet(eFeature, newValue); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ChartWithAxesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithAxesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1... |
protected void onRender(final MarkupStream markupStream) { final int markupStart = markupStream.getCurrentIndex(); Response response = RequestCycle.get().getResponse(); double widths[] = computeColumnWidths(); boolean rendered = false; // has been at least one column (component, not renderable) rendered? NumberFormat nf = NumberFormat.getNumberInstance(Locale.ENGLISH); nf.setMaximumFractionDigits(0); nf.setMaximumFractionDigits(2); for (int i = 0; i < columns.size(); ++i) { Component component = components.get(i); IRenderable renderable = renderables.get(i); IColumn column = columns.get(i); // write the wrapping column markup response.write("<span class=\"b_\" style=\"width:" + nf.format(widths[i]) + "%\">"); response.write("<span class=\"c_\">"); if (component != null) // is there a component for current column? { // render the component markupStream.setCurrentIndex(markupStart); component.render(markupStream); rendered = true; } else if (renderable != null) // no component - try to render renderable { renderable.render(node, response); } else { // no renderable or component. fail throw new IllegalStateException("Either renderable or cell component must be created for this noode"); } // end of wrapping markup response.write("</span></span>\n"); // does this component span over other columns int span = column.getSpan(node); if (span > 1) { // iterate through the columns and if any of them has a component, // render the component to null response (otherwise the component will // complain that it hasn't been rendered for (int j = 1; j < span && i < components.size(); ++j) { ++i; if (components.get(i) != null) { Response old = RequestCycle.get().setResponse(NullResponse.getInstance()); markupStream.setCurrentIndex(markupStart); components.get(i).render(markupStream); RequestCycle.get().setResponse(old); rendered = true; } } } } // if no component was rendered just advance in the markup stream if (rendered == false) { markupStream.skipComponent(); } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/234acdada6bb523025df2bf64c707be9ba3f57d5/MiddleColumnsView.java/clean/wicket/src/java/wicket/markup/html/tree/table/MiddleColumnsView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
603,
3420,
12,
6385,
26420,
1228,
9813,
1228,
13,
202,
95,
9506,
202,
6385,
509,
9813,
1685,
273,
9813,
1228,
18,
588,
3935,
1016,
5621,
202,
202,
1064,
766,
273,
1567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
603,
3420,
12,
6385,
26420,
1228,
9813,
1228,
13,
202,
95,
9506,
202,
6385,
509,
9813,
1685,
273,
9813,
1228,
18,
588,
3935,
1016,
5621,
202,
202,
1064,
766,
273,
1567,
... | ||
public TestScope(String[] formalTypes, String[] formalNames, World world) { super(world, SimpleScope.makeFormalBindings(TypeX.forNames(formalTypes), formalNames)); | public TestScope( World world, FormalBinding[] bindings) { super(world, bindings); | public TestScope(String[] formalTypes, String[] formalNames, World world) { super(world, SimpleScope.makeFormalBindings(TypeX.forNames(formalTypes), formalNames)); } | 7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/b902be4b0dd23037958bb7b4f1cbfc3faed00904/TestScope.java/buggy/org.aspectj/modules/weaver/testsrc/org/aspectj/weaver/patterns/TestScope.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7766,
3876,
12,
780,
8526,
25739,
2016,
16,
514,
8526,
25739,
1557,
16,
21820,
9117,
13,
288,
202,
202,
9565,
12,
18179,
16,
4477,
3876,
18,
6540,
12183,
10497,
12,
559,
60,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7766,
3876,
12,
780,
8526,
25739,
2016,
16,
514,
8526,
25739,
1557,
16,
21820,
9117,
13,
288,
202,
202,
9565,
12,
18179,
16,
4477,
3876,
18,
6540,
12183,
10497,
12,
559,
60,
18,
1... |
text = DiagramActionsResourceManager.getI18NString("AlignCenter"); toolTipText = DiagramActionsResourceManager.getI18NString("AlignCenter"); | text = DiagramUIActionsMessages.AlignCenter; toolTipText = DiagramUIActionsMessages.AlignCenter; | protected void initUI() { setId(this.id); String text = null; String toolTipText = null; AlignmentAction gefAlignmentAction = new AlignmentAction(getWorkbenchPart(), alignment); setHoverImageDescriptor(gefAlignmentAction.getHoverImageDescriptor()); setImageDescriptor(gefAlignmentAction.getImageDescriptor()); setDisabledImageDescriptor(gefAlignmentAction.getDisabledImageDescriptor()); gefAlignmentAction.dispose(); switch (alignment) { case PositionConstants.LEFT: { if (isToolbarItem){ text = DiagramActionsResourceManager.getI18NString("AlignLeftToolbarAction.Label");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignLeftToolbarAction.Tooltip");//$NON-NLS-1$ } else{ text = DiagramActionsResourceManager.getI18NString("AlignLeft");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignLeft");//$NON-NLS-1$ } break; } case PositionConstants.RIGHT: { if (isToolbarItem){ text = DiagramActionsResourceManager.getI18NString("AlignRightToolbarAction.Label");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignRightToolbarAction.Tooltip");//$NON-NLS-1$ } else{ text = DiagramActionsResourceManager.getI18NString("AlignRight");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignRight");//$NON-NLS-1$ } break; } case PositionConstants.TOP: { if (isToolbarItem){ text = DiagramActionsResourceManager.getI18NString("AlignTopToolbarAction.Label");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignTopToolbarAction.Tooltip");//$NON-NLS-1$ } else{ text = DiagramActionsResourceManager.getI18NString("AlignTop");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignTop");//$NON-NLS-1$ } break; } case PositionConstants.BOTTOM: { if (isToolbarItem){ text = DiagramActionsResourceManager.getI18NString("AlignBottomToolbarAction.Label");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignBottomToolbarAction.Tooltip");//$NON-NLS-1$ } else{ text = DiagramActionsResourceManager.getI18NString("AlignBottom");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignBottom");//$NON-NLS-1$ } break; } case PositionConstants.CENTER: { if (isToolbarItem){ text = DiagramActionsResourceManager.getI18NString("AlignCenterToolbarAction.Label");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignCenterToolbarAction.Tooltip");//$NON-NLS-1$ } else{ text = DiagramActionsResourceManager.getI18NString("AlignCenter");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignCenter");//$NON-NLS-1$ } break; } case PositionConstants.MIDDLE: { if (isToolbarItem){ text = DiagramActionsResourceManager.getI18NString("AlignMiddleToolbarAction.Label");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignMiddleToolbarAction.Tooltip");//$NON-NLS-1$ } else{ text = DiagramActionsResourceManager.getI18NString("AlignMiddle");//$NON-NLS-1$ toolTipText = DiagramActionsResourceManager.getI18NString("AlignMiddle");//$NON-NLS-1$ } break; } } setText(text); setToolTipText(toolTipText); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/e66f9c3483db21ee776650f0e5341a7a370f06cb/AlignAction.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.actions/src/org/eclipse/gmf/runtime/diagram/ui/actions/AlignAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
5370,
1435,
288,
9506,
202,
542,
548,
12,
2211,
18,
350,
1769,
202,
202,
780,
977,
273,
446,
31,
202,
202,
780,
5226,
14189,
1528,
273,
446,
31,
202,
202,
11535,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
5370,
1435,
288,
9506,
202,
542,
548,
12,
2211,
18,
350,
1769,
202,
202,
780,
977,
273,
446,
31,
202,
202,
780,
5226,
14189,
1528,
273,
446,
31,
202,
202,
11535,
... |
protected void fireContentsChanged(Object source, int startIndex, int endIndex) { | protected void fireContentsChanged(Object source, int startIndex, int endIndex) { ListDataEvent event; ListDataListener[] listeners; ListDataListener listener; int index; | protected void fireContentsChanged(Object source, int startIndex, int endIndex) { // Variables ListDataEvent event; EventListener[] listeners; ListDataListener listener; int index; // Create Event event = new ListDataEvent(source, ListDataEvent.CONTENTS_CHANGED, startIndex, endIndex); // Get Listeners listeners = listenerList.getListeners(ListDataListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ListDataListener) listeners[index]; listener.contentsChanged(event); } // for } // fireContentsChanged() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/AbstractListModel.java/buggy/core/src/classpath/javax/javax/swing/AbstractListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
6323,
5033,
12,
921,
1084,
16,
509,
10588,
16,
509,
13818,
13,
288,
202,
202,
759,
23536,
202,
202,
682,
751,
1133,
202,
2575,
31,
202,
202,
7375,
8526,
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,
1117,
918,
4452,
6323,
5033,
12,
921,
1084,
16,
509,
10588,
16,
509,
13818,
13,
288,
202,
202,
759,
23536,
202,
202,
682,
751,
1133,
202,
2575,
31,
202,
202,
7375,
8526,
202,
202,
... |
if(pos >= 0) { | if (pos >= 0) { | void select(int pos) { if(pos >= 0) { try { int line = getLineOfOffset(pos); Rectangle rect = modelToView(pos); if(rect == null) { select(pos, pos); } else { try { Rectangle nrect = modelToView(getLineStartOffset(line + 1)); if(nrect != null) { rect = nrect; } } catch(Exception exc) { } JViewport vp = (JViewport)getParent(); Rectangle viewRect = vp.getViewRect(); if(viewRect.y + viewRect.height > rect.y) { // need to scroll up select(pos, pos); } else { // need to scroll down rect.y += (viewRect.height - rect.height)/2; scrollRectToVisible(rect); select(pos, pos); } } } catch(BadLocationException exc) { select(pos, pos); //exc.printStackTrace(); } } } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2027,
12,
474,
949,
13,
288,
3639,
309,
261,
917,
1545,
374,
13,
288,
5411,
775,
288,
7734,
509,
980,
273,
9851,
951,
2335,
12,
917,
1769,
7734,
13264,
4917,
273,
938,
774,
1767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
12,
474,
949,
13,
288,
3639,
309,
261,
917,
1545,
374,
13,
288,
5411,
775,
288,
7734,
509,
980,
273,
9851,
951,
2335,
12,
917,
1769,
7734,
13264,
4917,
273,
938,
774,
1767,
... |
context = new ContextItem(contextNode); | context = new ContextItem(contextId, contextNode); | public void addContextNode(NodeValue node) { if (node.getImplementationType() != NodeValue.PERSISTENT_NODE) return; NodeProxy contextNode = (NodeProxy) node; if (context == null) { context = new ContextItem(contextNode); return; } ContextItem next = context; while (next != null) { if (next.getNode().gid == contextNode.gid) //TODO : why break here ? What about nodes that are context for themselves ? -pb break; if (next.getNextDirect() == null) { next.setNextContextItem(new ContextItem(contextNode)); break; } next = next.getNextDirect(); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/e6d5b6635c91c6ad23ce5fb6e28c29f5e09d6107/NodeProxy.java/buggy/src/org/exist/dom/NodeProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
1042,
907,
12,
907,
620,
756,
13,
288,
3639,
309,
261,
2159,
18,
588,
13621,
559,
1435,
480,
2029,
620,
18,
3194,
28175,
67,
8744,
13,
5411,
327,
31,
3639,
2029,
3886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
1042,
907,
12,
907,
620,
756,
13,
288,
3639,
309,
261,
2159,
18,
588,
13621,
559,
1435,
480,
2029,
620,
18,
3194,
28175,
67,
8744,
13,
5411,
327,
31,
3639,
2029,
3886,
... |
BacktrackException { IASTDeclarator d = declarator(); | BacktrackException { IASTDeclarator d = declarator(); | protected IASTDeclarator initDeclarator() throws EndOfFileException, BacktrackException { IASTDeclarator d = declarator(); try { // astFactory.constructExpressions(constructInitializers); IASTInitializer i = optionalCInitializer(); if (i != null) { d.setInitializer(i); i.setParent(d); i.setPropertyInParent(IASTDeclarator.INITIALIZER); ((ASTNode)d).setLength( calculateEndOffset( i ) - ((ASTNode)d).getOffset() ); } return d; } finally { // astFactory.constructExpressions(true); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/bcedb9a5c16dd4d172f27f0519a31f2ee9b1d68d/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
31419,
1208,
31419,
1435,
1216,
4403,
951,
812,
503,
16,
1082,
202,
2711,
4101,
503,
288,
202,
202,
45,
9053,
31419,
302,
273,
3496,
5880,
5621,
202,
202,
698,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
31419,
1208,
31419,
1435,
1216,
4403,
951,
812,
503,
16,
1082,
202,
2711,
4101,
503,
288,
202,
202,
45,
9053,
31419,
302,
273,
3496,
5880,
5621,
202,
202,
698,
288,
... |
public void searchCreateDataMap(SoarWorkingMemoryModel swmm, Vector errors) {} | public void searchCreateDataMap(SoarWorkingMemoryModel swmm, Vector errors) {} | public void searchCreateDataMap(SoarWorkingMemoryModel swmm, Vector errors) {} | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/9cf35188c641160e2e251774deec0b711037d6fc/SoarOperatorNode.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/operatorwindow/SoarOperatorNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1623,
1684,
31982,
12,
10225,
297,
14836,
6031,
1488,
1352,
7020,
16,
5589,
1334,
13,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1623,
1684,
31982,
12,
10225,
297,
14836,
6031,
1488,
1352,
7020,
16,
5589,
1334,
13,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if(log.isErrorEnabled()) log.error("exception=" + ex + ", stack trace=" + Util.printStackTrace(ex)); | if(log.isErrorEnabled()) log.error("failure in multicast receive()", ex); | public void run() { DatagramPacket packet; byte receive_buf[]=new byte[65535]; int len; byte[] tmp, data; InetAddress sender_addr; int sender_port; // moved out of loop to avoid excessive object creations (bela March 8 2001) packet=new DatagramPacket(receive_buf, receive_buf.length); while(mcast_receiver != null && mcast_recv_sock != null) { try { packet.setData(receive_buf, 0, receive_buf.length); mcast_recv_sock.receive(packet); sender_addr=packet.getAddress(); sender_port=packet.getPort(); len=packet.getLength(); data=packet.getData(); if(len == 1 && data[0] == 0) { if(log.isTraceEnabled()) log.trace("received dummy packet"); continue; } if(len == 4) { // received a diagnostics probe if(data[0] == 'd' && data[1] == 'i' && data[2] == 'a' && data[3] == 'g') { handleDiagnosticProbe(sender_addr, sender_port); continue; } } if(log.isTraceEnabled()) log.trace("received (mcast) " + packet.getLength() + " bytes from " + sender_addr + ':' + sender_port + " (size=" + len + " bytes)"); if(len > receive_buf.length) { if(log.isErrorEnabled()) log.error("size of the received packet (" + len + ") is bigger than " + "allocated buffer (" + receive_buf.length + "): will not be able to handle packet. " + "Use the FRAG protocol and make its frag_size lower than " + receive_buf.length); } if(Version.compareTo(data) == false) { if(log.isWarnEnabled()) { StringBuffer sb=new StringBuffer(); sb.append("packet from ").append(sender_addr).append(':').append(sender_port); sb.append(" has different version (").append(Version.printVersionId(data, Version.version_id.length)); sb.append(") from ours (").append(Version.printVersionId(Version.version_id)).append("). "); if(discard_incompatible_packets) sb.append("Packet is discarded"); else sb.append("This may cause problems"); log.warn(sb.toString()); } if(discard_incompatible_packets) continue; } if(use_incoming_packet_handler) { tmp=new byte[len]; System.arraycopy(data, 0, tmp, 0, len); incoming_queue.add(new IncomingQueueEntry(mcast_addr, sender_addr, sender_port, tmp)); } else handleIncomingUdpPacket(mcast_addr, sender_addr, sender_port, data); } catch(SocketException sock_ex) { if(log.isDebugEnabled()) log.debug("multicast socket is closed, exception=" + sock_ex); break; } catch(InterruptedIOException io_ex) { // thread was interrupted ; // go back to top of loop, where we will terminate loop } catch(Throwable ex) { if(log.isErrorEnabled()) log.error("exception=" + ex + ", stack trace=" + Util.printStackTrace(ex)); Util.sleep(100); // so we don't get into 100% cpu spinning (should NEVER happen !) } } if(log.isDebugEnabled()) log.debug("multicast thread terminated"); } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/c8c626436dfef4be1df7bb508ef791d65fdad692/UDP.java/clean/src/org/jgroups/protocols/UDP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
6168,
17049,
6667,
225,
4414,
31,
3639,
1160,
5411,
6798,
67,
4385,
8526,
33,
2704,
1160,
63,
26,
2539,
4763,
15533,
3639,
509,
2398,
562,
31,
3639,
1160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
6168,
17049,
6667,
225,
4414,
31,
3639,
1160,
5411,
6798,
67,
4385,
8526,
33,
2704,
1160,
63,
26,
2539,
4763,
15533,
3639,
509,
2398,
562,
31,
3639,
1160... |
fireTableRowsInserted(existingRowCount,rowCount-1); | fireTableRowsInserted(existingRowCount, rowCount - 1); | public void setRowCount(int rowCount) { int existingRowCount = dataVector.size(); if (rowCount < existingRowCount) { dataVector.setSize(rowCount); fireTableRowsDeleted(rowCount,existingRowCount-1); } else { int rowsToAdd = rowCount - existingRowCount; addExtraRows(rowsToAdd, columnIdentifiers.size()); fireTableRowsInserted(existingRowCount,rowCount-1); } } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/7f3cf1089dc63d3ffca5bd29d6f5ef8dbbd57b34/DefaultTableModel.java/buggy/javax/swing/table/DefaultTableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
26359,
12,
474,
14888,
13,
282,
288,
565,
509,
2062,
26359,
273,
501,
5018,
18,
1467,
5621,
565,
309,
261,
492,
1380,
411,
2062,
26359,
13,
377,
288,
1377,
501,
5018,
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,
282,
1071,
918,
444,
26359,
12,
474,
14888,
13,
282,
288,
565,
509,
2062,
26359,
273,
501,
5018,
18,
1467,
5621,
565,
309,
261,
492,
1380,
411,
2062,
26359,
13,
377,
288,
1377,
501,
5018,
18... |
return RubyFixnum.newFixnum(runtime, handler.syswrite(obj.toString())); | return getRuntime().newFixnum(handler.syswrite(obj.toString())); | public IRubyObject syswrite(IRubyObject obj) { return RubyFixnum.newFixnum(runtime, handler.syswrite(obj.toString())); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/buggy/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2589,
2626,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
1171,
1838,
18,
9499,
2626,
12,
2603,
18,
10492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2589,
2626,
12,
7937,
10340,
921,
1081,
13,
288,
3639,
327,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
1171,
1838,
18,
9499,
2626,
12,
2603,
18,
10492... |
if (getState() != BugzillaTask.BugTaskState.FREE || bugReport == null) { | if (getBugzillaTaskState() != BugzillaTask.BugzillaTaskState.FREE || bugReport == null) { | public Font getFont() { Font f = super.getFont(); if (f != null) return f; if (getState() != BugzillaTask.BugTaskState.FREE || bugReport == null) { return TaskListImages.ITALIC; } return null; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d91a4c7a3effbbe8b742e700082f8e9f1c02b294/BugzillaTask.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10063,
18776,
1435,
288,
202,
202,
5711,
284,
273,
2240,
18,
588,
5711,
5621,
202,
202,
430,
261,
74,
480,
446,
13,
1082,
202,
2463,
284,
31,
202,
202,
430,
261,
588,
1119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10063,
18776,
1435,
288,
202,
202,
5711,
284,
273,
2240,
18,
588,
5711,
5621,
202,
202,
430,
261,
74,
480,
446,
13,
1082,
202,
2463,
284,
31,
202,
202,
430,
261,
588,
1119,
... |
if (!isValidText(getBackupText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().orphan(fe.nextFigure()); } } else if (!isValidText(getOriginalText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().add(fe.nextFigure()); setText(getBackupText()); } } else { setText(getBackupText()); } | setText(getBackupText()); | public boolean redo() { if (!super.redo()) { return false; } getDrawingView().clearSelection(); // the text figure did exist but was remove if (!isValidText(getBackupText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().orphan(fe.nextFigure()); } } // the text figure didn't exist before else if (!isValidText(getOriginalText())) { FigureEnumeration fe = getAffectedFigures(); while (fe.hasNextFigure()) { getDrawingView().drawing().add(fe.nextFigure()); setText(getBackupText()); } } else { setText(getBackupText()); } return true; } | 5626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5626/fd6141583eb286d7a0c6fb88b32b06eb519af75e/TextTool.java/buggy/JHotDraw/src/CH/ifa/draw/figures/TextTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
24524,
1435,
288,
1082,
202,
430,
16051,
9565,
18,
1118,
83,
10756,
288,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
588,
26885,
1767,
7675,
8507,
6233,
5621,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
24524,
1435,
288,
1082,
202,
430,
16051,
9565,
18,
1118,
83,
10756,
288,
9506,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
588,
26885,
1767,
7675,
8507,
6233,
5621,
108... |
writeLong(stream, checksum); | try { writeLong(stream, checksum); } catch (java.io.IOException iox) { iox.printStackTrace(); throw iox; } System.err.println("Checksum output finished"); | public void finishOutput() throws java.io.IOException { //Send the Checksum as a tailer writeLong(stream, checksum); super.finishOutput(); } | 7172 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7172/ad6af4f0ee1d6e5927fa1c7b19f8aa07d437ad11/ChecksumStreamsAspect.java/buggy/mtsstd/src/org/cougaar/mts/std/ChecksumStreamsAspect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4076,
1447,
1435,
3196,
565,
1216,
2252,
18,
1594,
18,
14106,
202,
95,
202,
565,
368,
3826,
326,
19760,
487,
279,
5798,
264,
202,
565,
26603,
12,
3256,
16,
6697,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4076,
1447,
1435,
3196,
565,
1216,
2252,
18,
1594,
18,
14106,
202,
95,
202,
565,
368,
3826,
326,
19760,
487,
279,
5798,
264,
202,
565,
26603,
12,
3256,
16,
6697,
1769,
20... |
private void init(String name) { | private void init(final String name) { | private void init(String name) { if (name == null) { _qName = null; _localName = null; _package = null; } else { _qName = name; _localName = name; int idx = -1; if ((idx = name.lastIndexOf('.')) > 0) { _package = name.substring(0, idx); _localName = name.substring(idx+1); } } } //-- init | 57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/639ed93115321ad51c2450f306c4d50d146ede46/JTypeName.java/clean/src/main/java/org/exolab/javasource/JTypeName.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
12,
6385,
514,
508,
13,
288,
9079,
309,
261,
529,
422,
446,
13,
288,
5411,
389,
85,
461,
377,
273,
446,
31,
5411,
389,
3729,
461,
273,
446,
31,
5411,
389,
5610,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
12,
6385,
514,
508,
13,
288,
9079,
309,
261,
529,
422,
446,
13,
288,
5411,
389,
85,
461,
377,
273,
446,
31,
5411,
389,
3729,
461,
273,
446,
31,
5411,
389,
5610,
282,
... |
} } | } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 57 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } } } | private final int jjMoveNfa_0(int startState, int curPos) { int[] nextStates; int startsAt = 0; jjnewStateCnt = 57; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (; ;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch (jjstateSet[--i]) { case 49: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 54; else if (curChar == 47) { if (kind > 6) kind = 6; jjCheckNAddStates(0, 2); } break; case 0: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(3, 9); else if (curChar == 47) jjAddStates(10, 11); else if (curChar == 36) { if (kind > 71) kind = 71; jjCheckNAdd(28); } else if (curChar == 34) jjCheckNAddStates(12, 14); else if (curChar == 39) jjAddStates(15, 16); else if (curChar == 46) jjCheckNAdd(4); if ((0x3fe000000000000L & l) != 0L) { if (kind > 63) kind = 63; jjCheckNAddTwoStates(1, 2); } else if (curChar == 48) { if (kind > 63) kind = 63; jjCheckNAddStates(17, 19); } break; case 1: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(1, 2); break; case 3: if (curChar == 46) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddStates(20, 22); break; case 6: if ((0x280000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddTwoStates(7, 8); break; case 9: if (curChar == 39) jjAddStates(15, 16); break; case 10: if ((0xffffff7fffffdbffL & l) != 0L) jjCheckNAdd(11); break; case 11: if (curChar == 39 && kind > 69) kind = 69; break; case 13: if ((0x8400000000L & l) != 0L) jjCheckNAdd(11); break; case 14: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(15, 11); break; case 15: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(11); break; case 16: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 17; break; case 17: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(15); break; case 18: if (curChar == 34) jjCheckNAddStates(12, 14); break; case 19: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddStates(12, 14); break; case 21: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(12, 14); break; case 22: if (curChar == 34 && kind > 70) kind = 70; break; case 23: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(23, 26); break; case 24: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(12, 14); break; case 25: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(24); break; case 27: if (curChar != 36) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 28: if ((0x3ff001000000000L & l) == 0L) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 29: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(3, 9); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar != 46) break; if (kind > 67) kind = 67; jjCheckNAddStates(27, 29); break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddStates(27, 29); break; case 34: if ((0x280000000000L & l) != 0L) jjCheckNAdd(35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddTwoStates(35, 8); break; case 36: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(36, 37); break; case 38: if ((0x280000000000L & l) != 0L) jjCheckNAdd(39); break; case 39: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 67) kind = 67; jjCheckNAddTwoStates(39, 8); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 42: if ((0x280000000000L & l) != 0L) jjCheckNAdd(43); break; case 43: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(43, 8); break; case 44: if (curChar != 48) break; if (kind > 63) kind = 63; jjCheckNAddStates(17, 19); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(46, 2); break; case 47: if ((0xff000000000000L & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(47, 2); break; case 48: if (curChar == 47) jjAddStates(10, 11); break; case 50: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddStates(0, 2); break; case 51: if ((0x2400L & l) != 0L && kind > 6) kind = 6; break; case 52: if (curChar == 10 && kind > 6) kind = 6; break; case 53: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 52; break; case 54: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 55; break; case 55: if ((0xffff7fffffffffffL & l) != 0L && kind > 7) kind = 7; break; case 56: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 54; break; default : break; } } while (i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch (jjstateSet[--i]) { case 0: case 28: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 2: if ((0x100000001000L & l) != 0L && kind > 63) kind = 63; break; case 5: if ((0x2000000020L & l) != 0L) jjAddStates(33, 34); break; case 8: if ((0x5000000050L & l) != 0L && kind > 67) kind = 67; break; case 10: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAdd(11); break; case 12: if (curChar == 92) jjAddStates(35, 37); break; case 13: if ((0x14404410000000L & l) != 0L) jjCheckNAdd(11); break; case 19: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(12, 14); break; case 20: if (curChar == 92) jjAddStates(38, 40); break; case 21: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(12, 14); break; case 33: if ((0x2000000020L & l) != 0L) jjAddStates(41, 42); break; case 37: if ((0x2000000020L & l) != 0L) jjAddStates(43, 44); break; case 41: if ((0x2000000020L & l) != 0L) jjAddStates(45, 46); break; case 45: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(46); break; case 46: if ((0x7e0000007eL & l) == 0L) break; if (kind > 63) kind = 63; jjCheckNAddTwoStates(46, 2); break; case 50: if (kind > 6) kind = 6; jjAddStates(0, 2); break; case 55: if (kind > 7) kind = 7; break; default : break; } } while (i != startsAt); } else { int hiByte = (int) (curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch (jjstateSet[--i]) { case 0: case 28: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 71) kind = 71; jjCheckNAdd(28); break; case 10: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjstateSet[jjnewStateCnt++] = 11; break; case 19: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(12, 14); break; case 50: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjAddStates(0, 2); break; case 55: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 7) kind = 7; break; default : break; } } while (i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 57 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch (java.io.IOException e) { return curPos; } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
13,
288,
3639,
509,
8526,
1024,
7629,
31,
3639,
509,
2542,
861,
273,
374,
31,
3639,
10684,
2704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
13,
288,
3639,
509,
8526,
1024,
7629,
31,
3639,
509,
2542,
861,
273,
374,
31,
3639,
10684,
2704,
... |
SimpleNode sn = (SimpleNode) node.getChild(0); | SimpleNode sn = (SimpleNode) node.jjtGetChild(0); | public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws Exception { super.init(rs, context, node); counterName = rsvc.getString(RuntimeConstants.COUNTER_NAME); counterInitialValue = rsvc.getInt(RuntimeConstants.COUNTER_INITIAL_VALUE); maxNbrLoops = rsvc.getInt(RuntimeConstants.MAX_NUMBER_LOOPS, Integer.MAX_VALUE); if (maxNbrLoops < 1) { maxNbrLoops = Integer.MAX_VALUE; } /* * this is really the only thing we can do here as everything * else is context sensitive */ SimpleNode sn = (SimpleNode) node.getChild(0); if (sn instanceof ASTReference) { elementKey = ((ASTReference) sn).getRootString(); } else { /* * the default, error-prone way which we'll remove * TODO : remove if all goes well */ elementKey = sn.getFirstToken().image.substring(1); } /* * make an uberinfo - saves new's later on */ uberInfo = new Info(context.getCurrentTemplateName(), getLine(),getColumn()); } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/ffd2ff2dfe7b66ecdf6202dbd2a01a645f853822/Foreach.java/buggy/src/java/org/apache/velocity/runtime/directive/Foreach.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
5576,
5676,
3597,
16,
3186,
1042,
4216,
819,
16,
2029,
756,
13,
3639,
1216,
1185,
565,
288,
3639,
2240,
18,
2738,
12,
5453,
16,
819,
16,
756,
1769,
3639,
3895,
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,
377,
1071,
918,
1208,
12,
5576,
5676,
3597,
16,
3186,
1042,
4216,
819,
16,
2029,
756,
13,
3639,
1216,
1185,
565,
288,
3639,
2240,
18,
2738,
12,
5453,
16,
819,
16,
756,
1769,
3639,
3895,
461,... |
return installWorkerPrivileged(location, source); | return installWorkerPrivileged(location, source, callerContext); | public AbstractBundle installBundle(final String location) throws BundleException { if (Debug.DEBUG && Debug.DEBUG_GENERAL) { Debug.println("install from location: " + location); //$NON-NLS-1$ } return installWorker(location, new PrivilegedExceptionAction() { public Object run() throws BundleException { /* Map the identity to a URLConnection */ URLConnection source = adaptor.mapLocationToURLConnection(location); /* call the worker to install the bundle */ return installWorkerPrivileged(location, source); } }); } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/249359ca66714f4fdf660bc095787ad0bc5b442a/Framework.java/buggy/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/Framework.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
3405,
3799,
3405,
12,
6385,
514,
2117,
13,
1216,
8539,
503,
288,
202,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
13990,
1013,
13,
288,
1082,
202,
2829,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
3405,
3799,
3405,
12,
6385,
514,
2117,
13,
1216,
8539,
503,
288,
202,
202,
430,
261,
2829,
18,
9394,
597,
4015,
18,
9394,
67,
13990,
1013,
13,
288,
1082,
202,
2829,
18,
... |
private void addCachedMethod(String name, ICallable method) { // Included modules modify the original 'included' modules class. Since multiple // classes can include the same module, we cannot cache in the original included module. if (!isIncluded()) { getMethods().put(name, method); getRuntime().getCacheMap().add(method, this); } } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
9839,
1305,
12,
780,
508,
16,
467,
11452,
707,
13,
288,
3639,
368,
657,
7908,
4381,
5612,
326,
2282,
296,
20405,
11,
4381,
667,
18,
225,
7897,
3229,
377,
202,
759,
3318,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9839,
1305,
12,
780,
508,
16,
467,
11452,
707,
13,
288,
3639,
368,
657,
7908,
4381,
5612,
326,
2282,
296,
20405,
11,
4381,
667,
18,
225,
7897,
3229,
377,
202,
759,
3318,... | ||
map.remove(jobTreeElement); jobTreeElement= info; map.put(jobTreeElement, this); | if (jobTreeElement != info) { map.remove(jobTreeElement); jobTreeElement= info; map.put(jobTreeElement, this); } | void init(JobTreeElement info) { map.remove(jobTreeElement); jobTreeElement= info; map.put(jobTreeElement, this); refresh(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e654ad0dc17d33cc3a5ac0c0513f0e75adc83121/NewProgressViewer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/NewProgressViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
1208,
12,
2278,
2471,
1046,
1123,
13,
288,
1082,
202,
1458,
18,
4479,
12,
4688,
2471,
1046,
1769,
1082,
202,
4688,
2471,
1046,
33,
1123,
31,
1082,
202,
1458,
18,
458,
12,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
1208,
12,
2278,
2471,
1046,
1123,
13,
288,
1082,
202,
1458,
18,
4479,
12,
4688,
2471,
1046,
1769,
1082,
202,
4688,
2471,
1046,
33,
1123,
31,
1082,
202,
1458,
18,
458,
12,
46... |
if (txtSize > 0) { FunctionType fieldType = new FunctionType(index, new FunctionType(getDomainType(), getTextRangeType())); GriddedSet fieldSet = new Integer1DSet(txtSize); txtField = new FieldImpl(fieldType, fieldSet); int c = 0; for (int i=0; i<size && c<txtSize; i++) { OverlayObject obj = (OverlayObject) overlays[q].elementAt(i); if (!obj.hasText() || !drawText) continue; txtField.setSample(c++, obj.getData(), false); } } | if (rgbField == null && txtField == null) return null; else if (rgbField == null) return txtField; else if (txtField == null) return rgbField; else return new Tuple(new Data[] {rgbField, txtField}, false); | public Data getData(int[] pos, int dim, DataCache cache) { if (dim != 2) { System.err.println(name + ": invalid dimensionality (" + dim + ")"); return null; } int q = MathUtil.positionToRaster(lengths, pos); if (q < 0 || q >= overlays.length) return null; int size = overlays[q].size(); FieldImpl rgbField = null, txtField = null; try { if (size > 0) { // compute number of selected objects and number of text objects int rgbSize = 0, txtSize = 0, sel = 0, outline = 0; for (int i=0; i<size; i++) { OverlayObject obj = (OverlayObject) overlays[q].elementAt(i); if (obj.hasText()) { if (drawText || obj.isSelected()) txtSize++; else outline++; } else rgbSize++; // do not paint grids for objects still in the initial draw phase if (obj.isSelected() && !obj.isDrawing()) sel++; } RealType index = RealType.getRealType("overlay_index"); // compile standard objects into RGB field if (rgbSize > 0 || sel > 0 || outline > 0) { FunctionType fieldType = new FunctionType(index, new FunctionType(getDomainType(), getRangeType())); GriddedSet fieldSet = new Integer1DSet(rgbSize + sel + outline); rgbField = new FieldImpl(fieldType, fieldSet); // compute overlay data for each non-text object for (int i=0, c=0; i<size && c<rgbSize; i++) { OverlayObject obj = (OverlayObject) overlays[q].elementAt(i); if (obj.hasText()) continue; rgbField.setSample(c++, obj.getData(), false); } // compute selection grid for each selected object for (int i=0, c=0; i<size && c<sel; i++) { OverlayObject obj = (OverlayObject) overlays[q].elementAt(i); if (!obj.isSelected() || obj.isDrawing()) continue; rgbField.setSample(rgbSize + c++, obj.getSelectionGrid(), false); } // compute outline grid for each invisible text object for (int i=0, c=0; i<size && c<outline; i++) { OverlayObject obj = (OverlayObject) overlays[q].elementAt(i); if (!obj.hasText() || obj.isSelected()) continue; rgbField.setSample(rgbSize + sel + c++, obj.getSelectionGrid(true), false); } } // compile text objects into text field if (txtSize > 0) { FunctionType fieldType = new FunctionType(index, new FunctionType(getDomainType(), getTextRangeType())); GriddedSet fieldSet = new Integer1DSet(txtSize); txtField = new FieldImpl(fieldType, fieldSet); // compute overlay data for each text object int c = 0; for (int i=0; i<size && c<txtSize; i++) { OverlayObject obj = (OverlayObject) overlays[q].elementAt(i); if (!obj.hasText() || !drawText) continue; txtField.setSample(c++, obj.getData(), false); } } } if (rgbField == null && txtField == null) return null; else if (rgbField == null) return txtField; else if (txtField == null) return rgbField; else return new Tuple(new Data[] {rgbField, txtField}, false); } catch (VisADException exc) { exc.printStackTrace(); } catch (RemoteException exc) { exc.printStackTrace(); } return null; } | 49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/e797af3a38219c08d46e2096ae6e5f9552ca1c2d/OverlayTransform.java/clean/loci/visbio/overlays/OverlayTransform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1910,
4303,
12,
474,
8526,
949,
16,
509,
2464,
16,
1910,
1649,
1247,
13,
288,
565,
309,
261,
3509,
480,
576,
13,
288,
1377,
2332,
18,
370,
18,
8222,
12,
529,
397,
6398,
2057,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
4303,
12,
474,
8526,
949,
16,
509,
2464,
16,
1910,
1649,
1247,
13,
288,
565,
309,
261,
3509,
480,
576,
13,
288,
1377,
2332,
18,
370,
18,
8222,
12,
529,
397,
6398,
2057,
29... |
private boolean anonymousPost(int forumId) throws Exception { | private boolean anonymousPost(int forumId) { | private boolean anonymousPost(int forumId) throws Exception { // Check if anonymous posts are allowed if (!SessionFacade.isLogged() && !SecurityRepository.canAccess(SecurityConstants.PERM_ANONYMOUS_POST, Integer.toString(forumId))) { this.setTemplateName(ViewCommon.contextToLogin()); return false; } return true; } | 52144 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52144/f4af364dacad27a1238104a19d90e4a102043281/PostAction.java/buggy/src/net/jforum/view/forum/PostAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
13236,
3349,
12,
474,
11283,
548,
13,
1216,
1185,
288,
202,
202,
759,
2073,
309,
13236,
10775,
854,
2935,
202,
202,
430,
16051,
2157,
12467,
18,
291,
19862,
1435,
9506,
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,
1152,
1250,
13236,
3349,
12,
474,
11283,
548,
13,
1216,
1185,
288,
202,
202,
759,
2073,
309,
13236,
10775,
854,
2935,
202,
202,
430,
16051,
2157,
12467,
18,
291,
19862,
1435,
9506,
2... |
return new RubyFixnum(getRuby(), size); | return RubyFixnum.newFixnum(getRuby(), size); | public RubyFixnum length() { long size = 0; if (begin.funcall(">", end).isTrue()) { return new RubyFixnum(getRuby(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).getLongValue(); if (!isExclusive) { size++; } } return new RubyFixnum(getRuby(), size); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyRange.java/buggy/org/jruby/RubyRange.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
769,
1435,
288,
3639,
1525,
963,
273,
374,
31,
3639,
309,
261,
10086,
18,
644,
454,
2932,
2984,
16,
679,
2934,
291,
5510,
10756,
288,
5411,
327,
394,
19817,
8585,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
769,
1435,
288,
3639,
1525,
963,
273,
374,
31,
3639,
309,
261,
10086,
18,
644,
454,
2932,
2984,
16,
679,
2934,
291,
5510,
10756,
288,
5411,
327,
394,
19817,
8585,... |
tabs = t; | if (t != null) tabs = (TabStop[]) t.clone(); else tabs = new TabStop[0]; | public TabSet(TabStop[] t) { tabs = t; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/TabSet.java/buggy/core/src/classpath/javax/javax/swing/text/TabSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9483,
694,
12,
5661,
4947,
8526,
268,
13,
282,
288,
565,
309,
261,
88,
480,
446,
13,
10920,
273,
261,
5661,
4947,
63,
5717,
268,
18,
14056,
5621,
469,
10920,
273,
394,
9483,
4947,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9483,
694,
12,
5661,
4947,
8526,
268,
13,
282,
288,
565,
309,
261,
88,
480,
446,
13,
10920,
273,
261,
5661,
4947,
63,
5717,
268,
18,
14056,
5621,
469,
10920,
273,
394,
9483,
4947,... |
System.out.println("creation: "+(System.currentTimeMillis()-s)); | public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to render the plane. RGBBuffer buf = servant.render(pDef); //TO BE modified. if (xyImage == null) { xyImage = new BufferedImage(buf.getSizeX1(), buf.getSizeX2(), BufferedImage.TYPE_INT_RGB); } //See if we can/need work out the XY image size. if (xyImgSize == 0 && pDef.getSlice() == PlaneDef.XY) xyImgSize = buf.getRedBand().length+buf.getGreenBand().length+ buf.getBlueBand().length; //RGBByteBuffer j2DBuf = new RGBByteBuffer(buf); long s = System.currentTimeMillis(); int sizeX1 = buf.getSizeX1(); int sizeX2 = buf.getSizeX2(); int pos = 0; for (int y = sizeX2-1; y >= 0; y--) { for (int x = sizeX1-1; x >= 0; x--) { pos = sizeX1*y+x; xyImage.setRGB(x, y, makeRGB(buf.getRedBand()[pos], buf.getGreenBand()[pos], buf.getBlueBand()[pos])); } } System.out.println("creation: "+(System.currentTimeMillis()-s)); //Then create a Java2D buffer for buf. /* RGBByteBuffer j2DBuf = new RGBByteBuffer(buf); //Now we only need to tell Java2D how to handle the RGB buffer. BandedSampleModel csm = new BandedSampleModel(DataBuffer.TYPE_BYTE, buf.getSizeX1(), buf.getSizeX2(), 3); ColorModel cm = new ComponentColorModel( ColorSpace.getInstance(ColorSpace.CS_sRGB), null, false, false, Transparency.OPAQUE, DataBuffer.TYPE_BYTE); img = new BufferedImage(cm, Raster.createWritableRaster(csm, j2DBuf, null), false, null); */ //Finally add to cache. // cache(pDef, img); //} //return img; return xyImage; } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/2bd1ad73aba0e6043358bdc7f229b530947958a1/RenderingControlProxy.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12362,
1743,
12,
19505,
3262,
293,
3262,
13,
565,
288,
3639,
309,
261,
84,
3262,
422,
446,
13,
2398,
604,
394,
2754,
2932,
19505,
1652,
2780,
506,
446,
1199,
1769,
3639,
368,
9704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12362,
1743,
12,
19505,
3262,
293,
3262,
13,
565,
288,
3639,
309,
261,
84,
3262,
422,
446,
13,
2398,
604,
394,
2754,
2932,
19505,
1652,
2780,
506,
446,
1199,
1769,
3639,
368,
9704,
... | |
public Object clone() { | public Object clone() throws CloneNotSupportedException { | public Object clone() { Object clone = null; try { clone = super.clone(); } catch (Exception exception) { logger.error("Could not clone DebugAtom: " + exception.getMessage(), exception); logger.debug(exception); } return clone; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2b55a607674535cd8492e3539d8f3dce16fc3b92/DebugSetOfMolecules.java/buggy/src/org/openscience/cdk/debug/DebugSetOfMolecules.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
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,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
13,
288,... |
} | } /** | public void setParent(Directory parent) { this.parent = parent; } | 53488 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53488/a15bccbb1f38458138bc2da842bfc1f95800141c/DocuDirent.java/clean/servlet/src/digilib/io/DocuDirent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12548,
12,
2853,
982,
13,
288,
202,
202,
2211,
18,
2938,
273,
982,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12548,
12,
2853,
982,
13,
288,
202,
202,
2211,
18,
2938,
273,
982,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return stateHandling; | return (xformsEngineStaticState == null) ? null : xformsEngineStaticState.getStateHandling(); | public String getStateHandling() { return stateHandling; } | 51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/cafe4dda86b47106037a77d4bc918e0a8fca5ac1/XFormsContainingDocument.java/clean/src/java/org/orbeon/oxf/xforms/XFormsContainingDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8997,
14701,
1435,
288,
3639,
327,
261,
92,
9741,
4410,
5788,
1119,
422,
446,
13,
692,
446,
294,
619,
9741,
4410,
5788,
1119,
18,
588,
1119,
14701,
5621,
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,
514,
8997,
14701,
1435,
288,
3639,
327,
261,
92,
9741,
4410,
5788,
1119,
422,
446,
13,
692,
446,
294,
619,
9741,
4410,
5788,
1119,
18,
588,
1119,
14701,
5621,
565,
289,
2,
-100,
-... |
return thisVariable;; | return thisVariable; | public Declaration declareThis(ClassType clas) { if (thisVariable == null) { Declaration var = new Declaration("this", clas); scope.addVariableAfter(null, var); var.setParameter (true); var.setArtificial (true); thisVariable = var; } return thisVariable;; } | 40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/150eb5a12c845a35043e320acca9d27d4a21d63a/LambdaExp.java/clean/gnu/expr/LambdaExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16110,
4302,
14196,
2503,
12,
18328,
23268,
13,
225,
288,
565,
309,
261,
2211,
3092,
422,
446,
13,
1377,
288,
202,
6094,
569,
225,
273,
394,
16110,
4302,
2932,
2211,
3113,
23268,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16110,
4302,
14196,
2503,
12,
18328,
23268,
13,
225,
288,
565,
309,
261,
2211,
3092,
422,
446,
13,
1377,
288,
202,
6094,
569,
225,
273,
394,
16110,
4302,
2932,
2211,
3113,
23268,
17... |
System.out.println(cadnname + " - " + role); | System.out.println(cadnname); | public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { PrintWriter out=res.getWriter(); String role=null; String cadnname=null; cadnname =(String)req.getParameter("cadnname"); role =(String)req.getParameter("role"); if (debug) { System.out.println(cadnname + " - " + role); } if((cadnname==null)||( cadnname=="")) { out.print("Error ---Unknown type CA dn name :"); out.flush(); out.close(); return; } try { caPolicy = configParser.getCaPolicy(cadnname); nodeConfiguration = new NodeConfiguration(cadnname); certificateFinder = CertDirectoryServiceFactory.getCertDirectoryServiceClientInstance( caPolicy.ldapType, caPolicy.ldapURL); } catch (Exception e) { out.print("Unable to read policy file: " + e); out.flush(); out.close(); return; } out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"); out.println("<html>"); out.println("<head>"); out.println("<title>Pending Certificate List</title>"); out.println("<script language=\"javascript\">"); out.println("function submitme(form)"); out.println("{ form.submit()}</script>"); out.println("</head>"); out.println("<body>"); out.println("<H2>Pending Certificate List</H2>"); //out.println("<H3>Issuer: " + cadnname + "</H3>"); //out.println("<H3>LDAP: " + caPolicy.ldapURL + "</H3>"); out.println("<table>"); String filter = "(cn=*)"; String uri = req.getRequestURI(); String certDetailsUri = uri.substring(0, uri.lastIndexOf('/')) + "/PendingCertDetailsServlet"; if (role == "") role = null; if (debug) { System.out.println("calling create table will role:" + role); } PendingCertCache pendingCache = PendingCertCache.getPendingCache(cadnname, role, support.getServiceBroker()); Hashtable certtable = (Hashtable)pendingCache.get(nodeConfiguration.getPendingDirectoryName(cadnname)); out.println(createtable(certtable, cadnname, role, certDetailsUri)); out.println("</body></html>"); out.flush(); out.close(); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/6d5f8b582623aa5f6bb5091abc1e529e0540d398/PendingCertificateServlet.java/clean/securityservices/src/com/nai/security/certauthority/servlet/PendingCertificateServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
565,
14071,
596,
33,
455,
18,
588,
2289,
5621,
565,
514,
2478,
33,
2011,
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,
282,
1071,
918,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
565,
14071,
596,
33,
455,
18,
588,
2289,
5621,
565,
514,
2478,
33,
2011,
31... |
private void computeInitialCheckState() { TreeSet wtable = new TreeSet(); fNumWorkspaceChecked = 0; fNumExternalChecked = 0; for(int i = 0; i < fWorkspaceModels.length; i++) { IProject model = fWorkspaceModels[i]; fNumWorkspaceChecked++; String id = model.getName(); if(id != null) wtable.add(model.getName()); } | private void computeInitialCheckState( ) { TreeSet wtable = new TreeSet( ); fNumWorkspaceChecked = 0; fNumExternalChecked = 0; for ( int i = 0; i < fWorkspaceModels.length; i++ ) { IProject model = fWorkspaceModels[i]; fNumWorkspaceChecked++; String id = model.getName( ); if ( id != null ) wtable.add( model.getName( ) ); } | private void computeInitialCheckState() { TreeSet wtable = new TreeSet(); fNumWorkspaceChecked = 0; fNumExternalChecked = 0; for(int i = 0; i < fWorkspaceModels.length; i++) { IProject model = fWorkspaceModels[i]; fNumWorkspaceChecked++; String id = model.getName(); if(id != null) wtable.add(model.getName()); } fPluginTreeViewer.setSubtreeChecked(fWorkspacePlugins, true); adjustGroupState(); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/9fa0c0ee6086d66a8596c81c9364b34027ca1e98/ReportAdvancedLauncherTab.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launching/ReportAdvancedLauncherTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3671,
4435,
1564,
1119,
1435,
565,
288,
3639,
19461,
341,
2121,
273,
394,
19461,
5621,
3639,
284,
2578,
8241,
11454,
273,
374,
31,
3639,
284,
2578,
6841,
11454,
273,
374,
31,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3671,
4435,
1564,
1119,
1435,
565,
288,
3639,
19461,
341,
2121,
273,
394,
19461,
5621,
3639,
284,
2578,
8241,
11454,
273,
374,
31,
3639,
284,
2578,
6841,
11454,
273,
374,
31,
3... |
Assert.assert( type == PEND ); | Assert._assert( type == PEND ); | public Tag getTag() { // return the subType's tag if( type == FAIL ) { return INTEGER.TAG; } else { Assert.assert( type == PEND ); return PendInfo.TAG; } } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/6ddc297e30f1af6609057abe4502eaa3ba3bb664/OtherInfo.java/clean/security/jss/org/mozilla/jss/pkix/cmc/OtherInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4034,
11362,
1435,
288,
202,
202,
759,
327,
326,
27084,
1807,
1047,
3639,
309,
12,
618,
422,
15806,
262,
288,
5411,
327,
16481,
18,
7927,
31,
3639,
289,
469,
288,
5411,
5452,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4034,
11362,
1435,
288,
202,
202,
759,
327,
326,
27084,
1807,
1047,
3639,
309,
12,
618,
422,
15806,
262,
288,
5411,
327,
16481,
18,
7927,
31,
3639,
289,
469,
288,
5411,
5452,
6315,
... |
decorationRect = decorationShape.getBounds2D(); | Rectangle2D r2d = decorationShape.getBounds2D(); decorationRect = new Rectangle2D.Double (r2d.getX(), yLoc, r2d.getWidth(), height); | private Shape getDecorationStrokeOutline (List textRuns, int decorationType) { GeneralPath outline = null; Paint prevPaint = null; Paint prevStrokePaint = null; Stroke prevStroke = null; Rectangle2D decorationRect = null; for (int i = 0; i < textRuns.size(); i++) { TextRun textRun = (TextRun)textRuns.get(i); AttributedCharacterIterator runaci = textRun.getACI(); runaci.first(); Paint paint = null; Stroke stroke = null; Paint strokePaint = null; switch (decorationType) { case TextSpanLayout.DECORATION_UNDERLINE : paint = (Paint) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.UNDERLINE_PAINT); stroke = (Stroke) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.UNDERLINE_STROKE); strokePaint = (Paint) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.UNDERLINE_STROKE_PAINT); break; case TextSpanLayout.DECORATION_OVERLINE : paint = (Paint) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.OVERLINE_PAINT); stroke = (Stroke) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.OVERLINE_STROKE); strokePaint = (Paint) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.OVERLINE_STROKE_PAINT); break; case TextSpanLayout.DECORATION_STRIKETHROUGH : paint = (Paint) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.STRIKETHROUGH_PAINT); stroke = (Stroke) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.STRIKETHROUGH_STROKE); strokePaint = (Paint) runaci.getAttribute(GVTAttributedCharacterIterator.TextAttribute.STRIKETHROUGH_STROKE_PAINT); break; default: // should never get here return null; } if (textRun.isFirstRunInChunk() || paint != prevPaint || stroke != prevStroke || strokePaint != prevStrokePaint) { // if there is a current decoration, added it to the overall // outline if (decorationRect != null && prevStroke != null && prevStrokePaint != null) { if (outline == null) { outline = new GeneralPath (prevStroke.createStrokedShape(decorationRect)); } else { outline.append(prevStroke.createStrokedShape (decorationRect), false); } decorationRect = null; } } if ((paint != null || strokePaint != null) && !textRun.getLayout().isVertical() && !textRun.getLayout().isOnATextPath()) { // this text run should be decorated with the specified // decoration type note: decorations are only supported for // plain horizontal layouts Shape decorationShape = textRun.getLayout().getDecorationOutline(decorationType); if (decorationRect == null) { // create a new one decorationRect = decorationShape.getBounds2D(); } else { // extend the current one Rectangle2D bounds = decorationShape.getBounds2D(); decorationRect.setRect (decorationRect.getMinX(), decorationRect.getMinY(), bounds.getMaxX() - decorationRect.getMinX(), decorationRect.getHeight()); } } prevPaint = paint; prevStroke = stroke; prevStrokePaint = strokePaint; } // if there is a decoration rect that hasn't been added to the overall // outline if (decorationRect != null && prevStroke != null && prevStrokePaint != null) { if (outline == null) { outline = new GeneralPath(prevStroke.createStrokedShape (decorationRect)); } else { outline.append (prevStroke.createStrokedShape(decorationRect), false); } } return outline; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/afba8819b87561594e7cbedb56be4d15fbbfe279/StrokingTextPainter.java/clean/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
12383,
336,
7859,
367,
14602,
21805,
202,
12,
682,
977,
9361,
16,
509,
29217,
559,
13,
288,
3639,
9544,
743,
16363,
273,
446,
31,
3639,
30001,
2807,
12699,
273,
446,
31,
3639,
30001... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12383,
336,
7859,
367,
14602,
21805,
202,
12,
682,
977,
9361,
16,
509,
29217,
559,
13,
288,
3639,
9544,
743,
16363,
273,
446,
31,
3639,
30001,
2807,
12699,
273,
446,
31,
3639,
30001... |
toOutputString.append("'"); | toOutputString.append('\''); | private String handshakeIPsToString() { Peer[] localHandshakeIPs; synchronized(this) { localHandshakeIPs = handshakeIPs; } if(localHandshakeIPs == null) return "null"; StringBuffer toOutputString = new StringBuffer(1024); boolean needSep = false; toOutputString.append("[ "); for(int i=0;i<localHandshakeIPs.length;i++) { if(needSep) toOutputString.append(", "); if(localHandshakeIPs[i] == null) { toOutputString.append("null"); needSep = true; continue; } toOutputString.append("'"); // Actually do the DNS request for the member Peer of localHandshakeIPs toOutputString.append(localHandshakeIPs[i].getAddress(false)); toOutputString.append("'"); needSep = true; } toOutputString.append(" ]"); return toOutputString.toString(); } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
11942,
18246,
5808,
1435,
288,
3639,
10669,
8526,
1191,
14545,
18246,
31,
3639,
3852,
12,
2211,
13,
288,
540,
202,
3729,
14545,
18246,
273,
11942,
18246,
31,
3639,
289,
377,
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,
377,
3238,
514,
11942,
18246,
5808,
1435,
288,
3639,
10669,
8526,
1191,
14545,
18246,
31,
3639,
3852,
12,
2211,
13,
288,
540,
202,
3729,
14545,
18246,
273,
11942,
18246,
31,
3639,
289,
377,
202,... |
migrateDefaultAuthenticationData(); | public void start(BundleContext context) throws Exception { super.start(context); BugzillaPlugin.setResultEditorMatchAdapter(new BugzillaResultMatchAdapter()); bugzillaTaskListManager = new BugzillaTaskListManager(); bugzillaRefreshManager = new BugzillaRefreshManager(); BugzillaPlugin.getDefault().addOfflineStatusListener(bugzillaTaskListManager); // migrateDefaultAuthenticationData(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1245a92f28a2990bae8373c09891556a69268c75/BugzillaUiPlugin.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/BugzillaUiPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22083,
1868,
6492,
751,
5621,
918,
22083,
1868,
6492,
751,
5621,
787,
12,
3405,
1042,
22083,
1868,
6492,
751,
5621,
819,
13,
22083,
1868,
6492,
751,
5621,
1216,
22083,
1868,
6492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22083,
1868,
6492,
751,
5621,
918,
22083,
1868,
6492,
751,
5621,
787,
12,
3405,
1042,
22083,
1868,
6492,
751,
5621,
819,
13,
22083,
1868,
6492,
751,
5621,
1216,
22083,
1868,
6492,... | |
if ( !elTriggers.isEmpty( ) ) | Trigger buildinTg = null; if ( cm.getInteractivity( ) != null ) { boolean customed = false; switch ( cm.getInteractivity( ).getLegendBehavior( ).getValue( ) ) { case LegendBehaviorType.HIGHLIGHT_SERIE : for ( Iterator itr = elTriggers.iterator( ); itr.hasNext( ); ) { tg = (Trigger) itr.next( ); if ( tg.getCondition( ) == TriggerCondition.ONCLICK_LITERAL || tg.getAction( ).getType( ) == ActionType.HIGHLIGHT_LITERAL ) { customed = true; } } if ( !customed ) { buildinTg = TriggerImpl.create( TriggerCondition.ONCLICK_LITERAL, ActionImpl.create( ActionType.HIGHLIGHT_LITERAL, SeriesValueImpl.create( String.valueOf( se.getSeriesIdentifier( ) ) ) ) ); } break; case LegendBehaviorType.TOGGLE_SERIE_VISIBILITY : for ( Iterator itr = elTriggers.iterator( ); itr.hasNext( ); ) { tg = (Trigger) itr.next( ); if ( tg.getCondition( ) == TriggerCondition.ONCLICK_LITERAL || tg.getAction( ).getType( ) == ActionType.TOGGLE_VISIBILITY_LITERAL ) { customed = true; } } if ( !customed ) { buildinTg = TriggerImpl.create( TriggerCondition.ONCLICK_LITERAL, ActionImpl.create( ActionType.TOGGLE_VISIBILITY_LITERAL, SeriesValueImpl.create( String.valueOf( se.getSeriesIdentifier( ) ) ) ) ); } break; case LegendBehaviorType.NONE : break; } } if ( !elTriggers.isEmpty( ) || buildinTg != null ) | protected final void renderLegendItem( IPrimitiveRenderer ipr, Legend lg, Label la, Label valueLa, double dX, double dY, double dW, double dItemHeight, double dFullHeight, double dValueHeight, double dValueWidth, double dLeftInset, double dHorizontalSpacing, Series se, Fill fPaletteEntry, LegendItemRenderingHints lirh ) throws ChartException { ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_LEGEND_ENTRY, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_LEGEND_ENTRY, la ); final Bounds bo = lirh.getLegendGraphicBounds( ); bo.setLeft( dX + dLeftInset + 1 ); bo.setTop( dY + 1 ); bo.setWidth( 3 * dItemHeight / 2 ); bo.setHeight( dItemHeight - 2 ); final BaseRenderer br = lirh.getRenderer( ); br.renderLegendGraphic( ipr, lg, fPaletteEntry, bo ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), TextRenderEvent.class ); tre.setLocation( LocationImpl.create( dX + dLeftInset + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing, dY + dFullHeight / 2 - 1 ) ); tre.setTextPosition( TextRenderEvent.RIGHT ); tre.setLabel( la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); if ( valueLa != null ) { Location[] loaBack = new Location[4]; final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), PolygonRenderEvent.class ); pre.setBackground( valueLa.getBackground( ) ); pre.setOutline( valueLa.getOutline( ) ); pre.setPoints( loaBack ); loaBack[0] = LocationImpl.create( dX + dLeftInset + 1, dY + dFullHeight + 1 ); loaBack[1] = LocationImpl.create( dX + dLeftInset + 1, dY + dFullHeight + dValueHeight ); loaBack[2] = LocationImpl.create( dX + dLeftInset + dValueWidth - 1, dY + dFullHeight + dValueHeight ); loaBack[3] = LocationImpl.create( dX + dLeftInset + dValueWidth - 1, dY + dFullHeight + 1 ); ipr.fillPolygon( pre ); ipr.drawPolygon( pre ); Label tmpLa = (Label) EcoreUtil.copy( valueLa ); tmpLa.setOutline( null ); tmpLa.setBackground( null ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setBlockBounds( BoundsImpl.create( dX + dLeftInset + 1, dY + dFullHeight + 1, dValueWidth - 2, dValueHeight - 1 ) ); tre.setLabel( tmpLa ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } if ( isInteractivityEnabled( ) ) { // PROCESS 'SERIES LEVEL' TRIGGERS USING SOURCE='bs' Trigger tg; EList elTriggers = lg.getTriggers( ); Location[] loaHotspot = new Location[4]; double dTextStartX = tre.getLocation( ).getX( ) - 1; loaHotspot[0] = LocationImpl.create( dTextStartX, dY ); loaHotspot[1] = LocationImpl.create( dTextStartX + dW, dY + 1 ); loaHotspot[2] = LocationImpl.create( dTextStartX + dW, dY + dItemHeight + dValueHeight ); loaHotspot[3] = LocationImpl.create( dTextStartX, dY + dItemHeight + dValueHeight ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createSeries( se ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); if ( tg.getCondition( ) == TriggerCondition.MOUSE_CLICK_LITERAL || tg.getCondition( ) == TriggerCondition.ONCLICK_LITERAL ) { iev.addTrigger( tg ); } } final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createLegend( lg ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_LEGEND_ENTRY, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_LEGEND_ENTRY, la ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8fbdafd2163f71f055ddc7b8f3d8bd27e32f6e63/BaseRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
16812,
1180,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1082,
202,
2224,
7125,
16,
5287,
460,
30745,
16,
1645,
302,
60,
16,
1645,
302,
61,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
16812,
1180,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1082,
202,
2224,
7125,
16,
5287,
460,
30745,
16,
1645,
302,
60,
16,
1645,
302,
61,
16,
... |
if (VERSION_INSENSITIVE) { System.out.println("Using version-insensitive bug comparator"); } String origResultsFile = argv[0]; String newResultsFile = argv[1]; String outputFile = argv[2]; | String origResultsFile = argv[argCount++]; String newResultsFile = argv[argCount++]; String outputFile = argv[argCount++]; | public static void main(String[] argv) throws Exception { if (argv.length != 3) { System.err.println("Usage: " + MergeResults.class.getName() + " <orig results> <new results> <output file>"); System.exit(1); } if (VERSION_INSENSITIVE) { System.out.println("Using version-insensitive bug comparator"); } String origResultsFile = argv[0]; String newResultsFile = argv[1]; String outputFile = argv[2]; MergeResults mergeResults = new MergeResults(origResultsFile, newResultsFile) { final Set<String> updateCategorySet = new HashSet<String>(); protected boolean preserveUnconditionally(BugInstance bugInstance) { return UPDATE_CATEGORIES && !updateCategorySet.contains(bugInstance.getAbbrev()); } protected void lostWithAnnotation(BugInstance bugInstance) { System.out.println("Losing a bug with an annotation:"); System.out.println(bugInstance.getMessage()); SourceLineAnnotation srcLine = bugInstance.getPrimarySourceLineAnnotation(); if (srcLine != null) System.out.println("\t" + srcLine.toString()); System.out.println(bugInstance.getAnnotationText()); } public void execute() { if (UPDATE_CATEGORIES) { DetectorFactoryCollection.instance(); // as a side effect, loads detector plugins for (Iterator<BugInstance> i = getNewCollection().iterator(); i.hasNext();) { // All bugs not in categories contained in the // original set will be preserved unconditionally. updateCategorySet.add(i.next().getAbbrev()); } System.out.println("Updating only categories: " + updateCategorySet); } super.execute(); } }; mergeResults.execute(); System.out.println(mergeResults.getNumPreserved() + " preserved, " + mergeResults.getNumAlreadyAnnotated() + " already annotated, " + mergeResults.getNumLost() + " lost (" + mergeResults.getNumLostWithAnnotations() + " lost with annotations)"); SortedBugCollection result = mergeResults.getNewCollection(); result.writeXML(outputFile, mergeResults.getProject()); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/631b0af25dc0424ee14c353e737c7ebaf44b5853/MergeResults.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/MergeResults.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
890,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
890,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
39... |
private void setMessageAreaVisible(boolean visible) { // return immediately if already OPENING/OPEN and // visible is true or if CLOSING/CLOSED and visible // is false. switch (Policy.getAnimator().getAnimationState()) { case ControlAnimator.OPENING: case ControlAnimator.OPEN: if (visible) return; break; case ControlAnimator.CLOSING: case ControlAnimator.CLOSED: if (!visible){ return; } break; } FormData messageAreaData = new FormData(); messageAreaData.right = new FormAttachment(titleImage); messageAreaData.left = new FormAttachment(leftFillerLabel); messageAreaData.bottom = new FormAttachment(100,0); messageArea.setLayoutData(messageAreaData); messageArea.moveAbove(null); // assumes that bottom of the message area should match // the bottom of te parent composite. int bottom = titleArea.getBounds().y + titleArea.getBounds().height; // Only set bounds if the message area is CLOSED. The bounds // are dependent on whether a message image is being shown. Rectangle msgLabelBounds = messageLabel.getBounds(); if(Policy.getAnimator().getAnimationState() == ControlAnimator.CLOSED) { messageArea.setBounds( (messageImageLabel == null) ? msgLabelBounds.x: messageImageLabel.getBounds().x, bottom, (messageImageLabel == null) ? msgLabelBounds.width: msgLabelBounds.width + messageImageLabel.getBounds().width, messageArea.computeSize(SWT.DEFAULT,SWT.DEFAULT).y); } Policy.getAnimator().setAnimationState(visible ? ControlAnimator.OPENING: ControlAnimator.CLOSING); Policy.getAnimator().setVisible(visible, messageArea); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/7128f134318514118a9970527cb078b47b716fca/TitleAreaDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
15227,
5484,
6207,
12,
6494,
6021,
13,
288,
202,
202,
759,
327,
7636,
309,
1818,
11919,
1360,
19,
11437,
471,
202,
202,
759,
6021,
353,
638,
578,
309,
27775,
23708,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
15227,
5484,
6207,
12,
6494,
6021,
13,
288,
202,
202,
759,
327,
7636,
309,
1818,
11919,
1360,
19,
11437,
471,
202,
202,
759,
6021,
353,
638,
578,
309,
27775,
23708,
19,
... | ||
visit_ifxx(address, X86Constants.JE); } | visit_ifxx(address, X86Constants.JE); } | public final void visit_ifeq(int address) { visit_ifxx(address, X86Constants.JE); // JE } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d402ee1c5f9ab6d1c5b4f597b70658827f1f304d/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
430,
11253,
12,
474,
1758,
13,
288,
202,
202,
11658,
67,
430,
5279,
12,
2867,
16,
1139,
5292,
2918,
18,
30781,
1769,
368,
804,
41,
202,
97,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
3757,
67,
430,
11253,
12,
474,
1758,
13,
288,
202,
202,
11658,
67,
430,
5279,
12,
2867,
16,
1139,
5292,
2918,
18,
30781,
1769,
368,
804,
41,
202,
97,
2,
-100,
-100... |
if (impl == null) throw new SocketException ( "MulticastSocket: Cant access socket implementation"); | if (isClosed()) throw new SocketException("socket is closed"); | public void setNetworkInterface(NetworkInterface netIf) throws SocketException { if (impl == null) throw new SocketException ( "MulticastSocket: Cant access socket implementation"); Enumeration e = netIf.getInetAddresses (); if (!e.hasMoreElements ()) throw new SocketException ("MulticastSocket: Error"); InetAddress address = (InetAddress) e.nextElement (); impl.setOption (SocketOptions.IP_MULTICAST_IF, address); } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/dcbb69e84e9c71073608efebeefaa86de4bd97d3/MulticastSocket.java/clean/libjava/java/net/MulticastSocket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
27413,
12,
27413,
2901,
2047,
13,
565,
1216,
8758,
503,
225,
288,
565,
309,
261,
11299,
422,
446,
13,
1377,
604,
394,
8758,
503,
261,
1082,
1377,
315,
5049,
12544,
4534,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
27413,
12,
27413,
2901,
2047,
13,
565,
1216,
8758,
503,
225,
288,
565,
309,
261,
11299,
422,
446,
13,
1377,
604,
394,
8758,
503,
261,
1082,
1377,
315,
5049,
12544,
4534,
... |
checkParserStateNs(xpp, 2, xpp.START_TAG, 2, "uri1", "bar", false, 0); | checkParserStateNs(xpp, 2, XmlPullParser.START_TAG, 2, "uri1", "bar", false, 0); | public void testMisc() throws Exception { XmlSerializer ser = factory.newSerializer(); StringWriter sw = new StringWriter(); ser.setOutput(sw); assertEquals(0, ser.getDepth()); assertEquals(null, ser.getNamespace()); assertEquals(null, ser.getName()); // all comments etc ser.startDocument(null, Boolean.TRUE); assertEquals(0, ser.getDepth()); assertEquals(null, ser.getNamespace()); assertEquals(null, ser.getName()); final String docdecl = " foo [\n"+ "<!ELEMENT foo (#PCDATA|bar)* >\n"+ "<!ELEMENT pbar (#PCDATA) >\n" +"]"; ser.docdecl(docdecl); ser.processingInstruction("pi test"); final String iws = "\n\t"; ser.ignorableWhitespace(iws); assertEquals(0, ser.getDepth()); assertEquals(null, ser.getNamespace()); assertEquals(null, ser.getName()); ser.startTag(null, "foo"); assertEquals(1, ser.getDepth()); assertEquals(null, ser.getNamespace()); assertEquals("foo", ser.getName()); //check escaping & < > " ' final String attrVal = "attrVal&<>\"''&"; //final String attrVal = "attrVal&;"; ser.attribute(null, "attrName", attrVal); assertEquals(1, ser.getDepth()); assertEquals(null, ser.getNamespace()); assertEquals("foo", ser.getName()); ser.entityRef("amp"); final String cdsect = "hello<test>\"test"; ser.cdsect(cdsect); ser.setPrefix("ns1", "usri2"); assertEquals(1, ser.getDepth()); assertEquals(null, ser.getNamespace()); assertEquals("foo", ser.getName()); ser.startTag("uri1", "bar"); assertEquals(2, ser.getDepth()); assertEquals("uri1", ser.getNamespace()); assertEquals("bar", ser.getName()); final String text = "test\n\ntest"; char[] buf = text.toCharArray(); ser.text(buf, 0, buf.length); final String comment = "comment B- "; ser.comment(comment); assertEquals(2, ser.getDepth()); assertEquals("uri1", ser.getNamespace()); assertEquals("bar", ser.getName()); assertEquals(2, ser.getDepth()); assertEquals("uri1", ser.getNamespace()); assertEquals("bar", ser.getName()); ser.endDocument(); // should close unclosed foo and bar start tag assertEquals(0, ser.getDepth()); assertEquals(null, ser.getNamespace()); assertEquals(null, ser.getName()); // -- now check that we get back what we serialized ... String serialized = sw.toString(); //System.out.println(getClass()+" serialized="+serialized); xpp.setInput(new StringReader(serialized)); xpp.setFeature(xpp.FEATURE_PROCESS_NAMESPACES, true); checkParserStateNs(xpp, 0, xpp.START_DOCUMENT, null, 0, null, null, null, false, -1); xpp.nextToken(); checkParserStateNs(xpp, 0, xpp.DOCDECL, null, 0, null, null, false, -1); String gotDocdecl = xpp.getText(); if(gotDocdecl != null) { assertEquals(printable(docdecl), printable(gotDocdecl)); } xpp.nextToken(); checkParserStateNs(xpp, 0, xpp.PROCESSING_INSTRUCTION, null, 0, null, null, "pi test", false, -1); xpp.nextToken(); if(xpp.getEventType() == xpp.IGNORABLE_WHITESPACE) { String expectedIws = gatherTokenText(xpp, xpp.IGNORABLE_WHITESPACE, true); assertEquals(printable(iws), printable(expectedIws)); } checkParserStateNs(xpp, 1, xpp.START_TAG, null, 0, "", "foo", null, false, 1); checkAttribNs(xpp, 0, null, "", "attrName", attrVal); xpp.nextToken(); checkParserStateNs(xpp, 1, xpp.ENTITY_REF, null, 0, null, "amp", "&", false, -1); xpp.nextToken(); checkParserStateNs(xpp, 1, xpp.CDSECT, null, 0, null, null, cdsect, false, -1); assertEquals(false, xpp.isWhitespace()); xpp.nextToken(); checkParserStateNs(xpp, 2, xpp.START_TAG, 2, "uri1", "bar", false, 0); String gotText = nextTokenGathered(xpp, xpp.TEXT, false); assertEquals(printable(text), printable(gotText)); //xpp.nextToken(); checkParserStateNs(xpp, 2, xpp.COMMENT, null, 2, null, null, comment, false, -1); xpp.nextToken(); checkParserStateNs(xpp, 2, xpp.END_TAG, 2, "uri1", "bar", false, -1); xpp.nextToken(); checkParserStateNs(xpp, 1, xpp.END_TAG, 0, "", "foo", false, -1); } | 3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/9de8f958bc2cc6613d1b26abb7b3532184c4b4ac/TestSerializeWithNs.java/buggy/src/java/tests/org/xmlpull/v1/tests/TestSerializeWithNs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11729,
71,
1435,
1216,
1185,
288,
3639,
5714,
6306,
703,
273,
3272,
18,
2704,
6306,
5621,
3639,
17436,
1352,
273,
394,
17436,
5621,
3639,
703,
18,
542,
1447,
12,
5328,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11729,
71,
1435,
1216,
1185,
288,
3639,
5714,
6306,
703,
273,
3272,
18,
2704,
6306,
5621,
3639,
17436,
1352,
273,
394,
17436,
5621,
3639,
703,
18,
542,
1447,
12,
5328,
17... |
Message.verbose("\t"+getName()+": inconsistent module descriptor file found for "+mrid+" rejecting"); | throw new ParseException("inconsistent module descriptor file found for "+mrid, 0); | private boolean checkDescriptorConsistency(ModuleRevisionId mrid, ModuleDescriptor md, ResolvedResource ivyRef) { boolean ok = true; if (!mrid.getOrganisation().equals(md.getModuleRevisionId().getOrganisation())) { Message.error("\t"+getName()+": bad organisation found in "+ivyRef.getResource()+": expected="+mrid.getOrganisation()+" found="+md.getModuleRevisionId().getOrganisation()); ok = false; } if (!mrid.getName().equals(md.getModuleRevisionId().getName())) { Message.error("\t"+getName()+": bad module name found in "+ivyRef.getResource()+": expected="+mrid.getName()+" found="+md.getModuleRevisionId().getName()); ok = false; } if (ivyRef.getRevision() != null && !ivyRef.getRevision().startsWith("working@") && md.getModuleRevisionId().getRevision() != null && !ModuleRevisionId.acceptRevision(ivyRef.getRevision(), md.getModuleRevisionId().getRevision())) { Message.error("\t"+getName()+": bad revision found in "+ivyRef.getResource()+": expected="+ivyRef.getRevision()+" found="+md.getModuleRevisionId().getRevision()); ok = false; } if (!ok) { Message.verbose("\t"+getName()+": inconsistent module descriptor file found for "+mrid+" rejecting"); } return ok; } | 45724 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45724/9ab9779e58abf2a4b12b550a207d5e9280847c27/BasicResolver.java/buggy/src/java/fr/jayasoft/ivy/resolver/BasicResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
866,
3187,
22124,
12,
3120,
7939,
548,
312,
1691,
16,
5924,
3187,
3481,
16,
22776,
1420,
4674,
93,
1957,
13,
288,
3639,
1250,
1529,
273,
638,
31,
3639,
309,
16051,
81,
1691,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
866,
3187,
22124,
12,
3120,
7939,
548,
312,
1691,
16,
5924,
3187,
3481,
16,
22776,
1420,
4674,
93,
1957,
13,
288,
3639,
1250,
1529,
273,
638,
31,
3639,
309,
16051,
81,
1691,
... |
filterCompleteTask = new FilterCompletedTasksAction(this); | filterCompleteTask = new FilterCompletedTasksAction(this); | private void makeActions() { createTask = new CreateTaskAction(this); createTaskToolbar = new CreateTaskAction(this); createCategory = new CreateCategoryAction(this); delete = new DeleteAction(this); autoClose = new AutoCloseAction(); completeTask = new MarkTaskCompleteAction(this); incompleteTask = new MarkTaskIncompleteAction(this); // rename = new RenameAction(); // moveTaskToRoot = new MoveTaskToRootAction(this); doubleClickAction = new OpenTaskEditorAction(this); filterCompleteTask = new FilterCompletedTasksAction(this); // filterInCompleteTask = new FilterIncompleteTasksAction(); filterOnPriority = new PriorityDropDownAction(); previousTaskAction = new NavigatePreviousAction(this, taskHistory); nextTaskAction = new NextTaskAction(this, taskHistory); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3869072ecf5b362958959a3a8e9559e99fcd85d6/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1221,
6100,
1435,
288,
377,
202,
2640,
2174,
273,
394,
1788,
2174,
1803,
12,
2211,
1769,
377,
202,
2640,
2174,
17907,
273,
394,
1788,
2174,
1803,
12,
2211,
1769,
6647,
752,
445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
6100,
1435,
288,
377,
202,
2640,
2174,
273,
394,
1788,
2174,
1803,
12,
2211,
1769,
377,
202,
2640,
2174,
17907,
273,
394,
1788,
2174,
1803,
12,
2211,
1769,
6647,
752,
445... |
public static void includeTagAction(PageContext context, String target, String element, boolean editable, Map paramMap, ServletRequest req, ServletResponse res) throws JspException { // the Flex controller provides access to the interal OpenCms structures CmsFlexController controller = (CmsFlexController)req.getAttribute(CmsFlexController.ATTRIBUTE_NAME); if (target == null) { // set target to default target = controller.getCmsObject().getRequestContext().getUri(); } // each include will have it's unique map of parameters Map parameterMap = new HashMap(); if (paramMap != null) { // add all parameters from the parent elements parameterMap.putAll(paramMap); } if (element != null) { // add template element selector for JSP templates addParameter(parameterMap, I_CmsConstants.C_PARAMETER_ELEMENT, element, true); } // resolve possible relative URI target = CmsLinkManager.getAbsoluteUri(target, controller.getCurrentRequest().getElementUri()); try { // now resolve additional include extensions that might be required for special loader implementations target = OpenCms.getResourceManager().resolveIncludeExtensions(target, element, editable, paramMap, req, res); } catch (CmsException e) { controller.setThrowable(e, target); throw new JspException(e); } // check the "direct edit" mode String directEditPermissions = null; String directEditIncludeFile = null; if (editable) { // get the include file where the direct edit HTML is stored in directEditIncludeFile = (String)context.getRequest().getAttribute(I_CmsEditorActionHandler.C_DIRECT_EDIT_INCLUDE_FILE_URI); if (directEditIncludeFile != null) { // check the direct edit permissions of the current user directEditPermissions = OpenCms.getWorkplaceManager().getEditorActionHandler().getEditMode(controller.getCmsObject(), target, element, req); } if (directEditPermissions == null) { // "editable" is true only if both direct edit include file and direct edit permissions are available editable = false; } } // save old parameters from request Map oldParameterMap = req.getParameterMap(); try { // include direct edit "start" element (if enabled) if (editable) { includeDirectEditElement(context, directEditIncludeFile, I_CmsEditorActionHandler.C_DIRECT_EDIT_AREA_START + "_" + directEditPermissions, target, element, req, res); } // add parameters (again) to set the correct element controller.getCurrentRequest().addParameterMap(parameterMap); // write out a C_FLEX_CACHE_DELIMITER char on the page, this is used as a parsing delimeter later context.getOut().print(CmsFlexResponse.C_FLEX_CACHE_DELIMITER); // add the target to the include list (the list will be initialized if it is currently empty) controller.getCurrentResponse().addToIncludeList(target, parameterMap); // now use the Flex dispatcher to include the target (this will also work for targets in the OpenCms VFS) // TODO: check if the "req" dispatcher should be used insted the controller controller.getCurrentRequest().getRequestDispatcher(target).include(req, res); // include direct edit "end" element (if enabled) if (editable) { includeDirectEditElement(context, directEditIncludeFile, I_CmsEditorActionHandler.C_DIRECT_EDIT_AREA_END + "_" + directEditPermissions, target, element, req, res); } } catch (ServletException e) { Throwable t; if (e.getRootCause() != null) { t = e.getRootCause(); } else { t = e; } t = controller.setThrowable(t, target); throw new JspException(t); } catch (IOException e) { Throwable t = controller.setThrowable(e, target); throw new JspException(t); } finally { if (oldParameterMap != null) { controller.getCurrentRequest().setParameterMap(oldParameterMap); } } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/247b9f9f8ac6897a562e2ae06f80157d6d8a3ece/CmsJspTagInclude.java/buggy/src/org/opencms/jsp/CmsJspTagInclude.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2341,
1805,
1803,
12,
1964,
1042,
819,
16,
514,
1018,
16,
514,
930,
16,
1250,
13754,
16,
1635,
579,
863,
16,
26470,
1111,
16,
7971,
1064,
400,
13,
377,
1216,
27485,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2341,
1805,
1803,
12,
1964,
1042,
819,
16,
514,
1018,
16,
514,
930,
16,
1250,
13754,
16,
1635,
579,
863,
16,
26470,
1111,
16,
7971,
1064,
400,
13,
377,
1216,
27485,
288,... | ||
node,loadInfo)); | node,loadInfo,addToHistory)); | void directoryLoaded(Object node, Object[] loadInfo) { VFSManager.runInAWTThread(new DirectoryLoadedAWTRequest( node,loadInfo)); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/64f221ddc9743e69b4f55e5f85f6e569b885764a/VFSBrowser.java/clean/org/gjt/sp/jedit/browser/VFSBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1867,
8835,
12,
921,
756,
16,
1033,
8526,
1262,
966,
13,
202,
95,
202,
202,
58,
4931,
1318,
18,
2681,
382,
37,
8588,
3830,
12,
2704,
8930,
8835,
37,
8588,
691,
12,
1082,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1867,
8835,
12,
921,
756,
16,
1033,
8526,
1262,
966,
13,
202,
95,
202,
202,
58,
4931,
1318,
18,
2681,
382,
37,
8588,
3830,
12,
2704,
8930,
8835,
37,
8588,
691,
12,
1082,
20... |
System.err.println("Restart returned!?"); | void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; } System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); synchronized(this) { while(revocationDNFCounter < 3) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet-cvs-snapshot.jar"); File fNew = new File("freenet-cvs-snapshot.jar.new"); boolean nastyRestart = false; if(File.separatorChar != '\\') { // Do nothing. } else { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.err.println("ERROR renaming the file!"); return; } } } else { // Hard way. if(!WrapperManager.isControlledByNativeWrapper()) { Logger.error(this, "Cannot update because not running under wrapper"); System.err.println("Cannot update because not running under wrapper"); return; } try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); BufferedOutputStream bos = new BufferedOutputStream(fos); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } } if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); System.err.println("Restart returned!?"); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/d296236f0c3888b3327dcc9ff86ef0475d1d33dd/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747... | |
Asserts.notReached(); | assert false; | private RubyAstMarshal() { Asserts.notReached(); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/RubyAstMarshal.java/buggy/src/org/jruby/ast/util/RubyAstMarshal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
21385,
8105,
1435,
288,
3639,
1815,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
21385,
8105,
1435,
288,
3639,
1815,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return js_parseFloat(cx, args); | return js_parseFloat(args); | public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { if (f.hasTag(FTAG)) { int methodId = f.methodId(); switch (methodId) { case Id_decodeURI: case Id_decodeURIComponent: { String str = ScriptRuntime.toString(args, 0); return decode(cx, str, methodId == Id_decodeURI); } case Id_encodeURI: case Id_encodeURIComponent: { String str = ScriptRuntime.toString(args, 0); return encode(cx, str, methodId == Id_encodeURI); } case Id_escape: return js_escape(cx, args); case Id_eval: return js_eval(cx, scope, args); case Id_isFinite: { if (args.length < 1) return Boolean.FALSE; double d = ScriptRuntime.toNumber(args[0]); return (d != d || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) ? Boolean.FALSE : Boolean.TRUE; } case Id_isNaN: { // The global method isNaN, as per ECMA-262 15.1.2.6. if (args.length < 1) return Boolean.TRUE; double d = ScriptRuntime.toNumber(args[0]); return (d != d) ? Boolean.TRUE : Boolean.FALSE; } case Id_parseFloat: return js_parseFloat(cx, args); case Id_parseInt: return js_parseInt(cx, args); case Id_unescape: return js_unescape(cx, args); case Id_uneval: { Object value = (args.length != 0) ? args[0] : Undefined.instance; return ScriptRuntime.uneval(cx, scope, value); } case Id_new_CommonError: // The implementation of all the ECMA error constructors // (SyntaxError, TypeError, etc.) return NativeError.make(cx, scope, f, args); } } throw f.unknown(); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/0b056816ae240bd12d40a9a4926520fc5cf9299b/NativeGlobal.java/clean/src/org/mozilla/javascript/NativeGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
12,
548,
2083,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
261,
74,
18,
5332,
1805,
12,
4464,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
12,
548,
2083,
284,
16,
1772,
9494,
16,
22780,
2146,
16,
11794,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
309,
261,
74,
18,
5332,
1805,
12,
4464,
17... |
return fEditor.getDocumentProvider().getAnnotationModel(fEditor.getEditorInput()); | IDocumentProvider documentProvider= fEditor.getDocumentProvider(); if (documentProvider == null) return null; return documentProvider.getAnnotationModel(fEditor.getEditorInput()); | private IAnnotationModel getAnnotationModel() { return fEditor.getDocumentProvider().getAnnotationModel(fEditor.getEditorInput()); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/1a6ad0b70001d721c3c895b71d6f38ab806748f8/PropertiesSpellingReconcileStrategy.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/PropertiesSpellingReconcileStrategy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
3257,
1488,
9887,
1488,
1435,
288,
202,
202,
2463,
284,
6946,
18,
588,
2519,
2249,
7675,
588,
3257,
1488,
12,
74,
6946,
18,
588,
6946,
1210,
10663,
202,
97,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
3257,
1488,
9887,
1488,
1435,
288,
202,
202,
2463,
284,
6946,
18,
588,
2519,
2249,
7675,
588,
3257,
1488,
12,
74,
6946,
18,
588,
6946,
1210,
10663,
202,
97,
2,
-100,
-10... |
return myValue == null ? "" : myValue.toString(); | if (myName != null) { return myName; } else if (getValue() != null){ return getValue().toString(); } else { return null; } | public String getTestPresentation() { return myValue == null ? "" : myValue.toString(); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/a31cf34f79376a16cc3ad1b337927d04ed78ae70/AbstractTreeNode.java/buggy/openapi/src/com/intellij/ide/util/treeView/AbstractTreeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
29384,
6351,
367,
1435,
288,
565,
309,
261,
4811,
461,
480,
446,
13,
288,
327,
3399,
461,
31,
289,
469,
309,
261,
24805,
1435,
480,
446,
15329,
327,
2366,
7675,
10492,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
29384,
6351,
367,
1435,
288,
565,
309,
261,
4811,
461,
480,
446,
13,
288,
327,
3399,
461,
31,
289,
469,
309,
261,
24805,
1435,
480,
446,
15329,
327,
2366,
7675,
10492,
5621,
... |
if (A_OpenCms.isLogging()){ | if ((A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)){ | public void publishProject(CmsUser user, int projectId, CmsProject onlineProject) throws CmsException { CmsAccessFilesystem discAccess = new CmsAccessFilesystem(m_exportpointStorage); CmsFolder currentFolder = null; CmsFile currentFile = null; CmsFolder newFolder = null; CmsFile newFile = null; Vector offlineFolders; Vector offlineFiles; Vector deletedFolders = new Vector(); // folderIdIndex: offlinefolderId | onlinefolderId Hashtable folderIdIndex = new Hashtable(); // read all folders in offlineProject offlineFolders = readFolders(projectId); for (int i = 0; i < offlineFolders.size(); i++){ currentFolder = ((CmsFolder) offlineFolders.elementAt(i)); // C_STATE_DELETE if (currentFolder.getState() == C_STATE_DELETED){ deletedFolders.addElement(currentFolder); // C_STATE_NEW }else if (currentFolder.getState() == C_STATE_NEW){ // export to filesystem if necessary String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null){ discAccess.createFolder(currentFolder.getAbsolutePath(), exportKey); } // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null){ CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder and insert its id in the folderindex try { newFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); newFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, newFolder, false); } catch (CmsException e) { // if the folder already exists in the onlineProject then update the onlineFolder if (e.getType() == CmsException.C_FILE_EXISTS) { CmsFolder onlineFolder = null; try { onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (CmsException exc) { throw exc; } // end of catch PreparedStatement statement = null; Connection con = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFolder with data from offlineFolder statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE); statement.setInt(1, currentFolder.getType()); statement.setInt(2, currentFolder.getFlags()); statement.setInt(3, currentFolder.getOwnerId()); statement.setInt(4, currentFolder.getGroupId()); statement.setInt(5, onlineFolder.getProjectId()); statement.setInt(6, currentFolder.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFolder.isLockedBy()); statement.setInt(9, currentFolder.getLauncherType()); statement.setString(10, currentFolder.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFolder.getResourceLastModifiedBy()); statement.setInt(13, 0); statement.setInt(14, currentFolder.getFileId()); statement.setInt(15, onlineFolder.getResourceId()); statement.executeUpdate(); newFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (SQLException sqle) { throw new CmsException("[" + this.getClass().getName() + "] " + sqle.getMessage(), CmsException.C_SQL_ERROR, sqle); } finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } } else { throw e; } } folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(newFolder.getResourceId())); // copy properties try { Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, newFolder.getResourceId(), newFolder.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + newFolder.toString() + " Message= " + exc.getMessage()); } } // C_STATE_CHANGED }else if (currentFolder.getState() == C_STATE_CHANGED){ // export to filesystem if necessary String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null){ discAccess.createFolder(currentFolder.getAbsolutePath(), exportKey); } CmsFolder onlineFolder = null; try{ onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); }catch (CmsException exc){ // if folder does not exist create it if (exc.getType() == CmsException.C_NOT_FOUND){ // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null){ CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder onlineFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); onlineFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, onlineFolder, false); }else{ throw exc; } } // end of catch Connection con = null; PreparedStatement statement = null; try{ con = DriverManager.getConnection(m_poolName); // update the onlineFolder with data from offlineFolder statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE); statement.setInt(1, currentFolder.getType()); statement.setInt(2, currentFolder.getFlags()); statement.setInt(3, currentFolder.getOwnerId()); statement.setInt(4, currentFolder.getGroupId()); statement.setInt(5, onlineFolder.getProjectId()); statement.setInt(6, currentFolder.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFolder.isLockedBy()); statement.setInt(9, currentFolder.getLauncherType()); statement.setString(10, currentFolder.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFolder.getResourceLastModifiedBy()); statement.setInt(13, 0); statement.setInt(14, currentFolder.getFileId()); statement.setInt(15, onlineFolder.getResourceId()); statement.executeUpdate(); }catch (SQLException e){ throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); }finally{ if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(onlineFolder.getResourceId())); // copy properties try{ deleteAllProperties(onlineFolder.getResourceId()); Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, onlineFolder.getResourceId(), currentFolder.getType()); }catch (CmsException exc){ if (A_OpenCms.isLogging()){ A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + onlineFolder.toString() + " Message= " + exc.getMessage()); } } // C_STATE_UNCHANGED }else if (currentFolder.getState() == C_STATE_UNCHANGED){ CmsFolder onlineFolder = null; try{ onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); }catch (CmsException exc){ if (exc.getType() == CmsException.C_NOT_FOUND){ // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null){ CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder onlineFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); onlineFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, onlineFolder, false); // copy properties try{ Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, onlineFolder.getResourceId(), onlineFolder.getType()); }catch (CmsException exc2){ if (A_OpenCms.isLogging()){ A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + onlineFolder.toString() + " Message= " + exc.getMessage()); } } }else{ throw exc; } } // end of catch folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(onlineFolder.getResourceId())); } // end of else if } // end of for(... // now read all FILES in offlineProject offlineFiles = readFiles(projectId); for (int i = 0; i < offlineFiles.size(); i++){ currentFile = ((CmsFile) offlineFiles.elementAt(i)); if (currentFile.getName().startsWith(C_TEMP_PREFIX)){ removeFile(projectId, currentFile.getAbsolutePath()); // C_STATE_DELETE }else if (currentFile.getState() == C_STATE_DELETED){ // delete in filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null){ try{ discAccess.removeResource(currentFile.getAbsolutePath(), exportKey); }catch (Exception ex){ } } CmsFile currentOnlineFile = readFile(onlineProject.getId(), onlineProject.getId(), currentFile.getAbsolutePath()); try{ deleteAllProperties(currentOnlineFile.getResourceId()); }catch (CmsException exc){ if (A_OpenCms.isLogging()){ A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + currentOnlineFile.toString() + " Message= " + exc.getMessage()); } }try{ deleteResource(currentOnlineFile.getResourceId()); }catch (CmsException exc){ if (A_OpenCms.isLogging()){ A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting resource for " + currentOnlineFile.toString() + " Message= " + exc.getMessage()); } } // C_STATE_CHANGED }else if (currentFile.getState() == C_STATE_CHANGED){ // export to filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null){ discAccess.writeFile(currentFile.getAbsolutePath(), exportKey, readFileContent(currentFile.getFileId())); } CmsFile onlineFile = null; try{ onlineFile = readFileHeader(onlineProject.getId(), currentFile.getAbsolutePath()); }catch (CmsException exc){ if (exc.getType() == CmsException.C_NOT_FOUND){ // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFile.getParentId())); if (parentId == null){ CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFile.getParentId()), parentId); } // create a new File currentFile.setState(C_STATE_UNCHANGED); onlineFile = createFile(onlineProject, onlineProject, currentFile, user.getId(), parentId.intValue(), currentFile.getAbsolutePath(), false); } } // end of catch Connection con = null; PreparedStatement statement = null; try{ con = DriverManager.getConnection(m_poolName); // update the onlineFile with data from offlineFile statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE_FILE); statement.setInt(1, currentFile.getType()); statement.setInt(2, currentFile.getFlags()); statement.setInt(3, currentFile.getOwnerId()); statement.setInt(4, currentFile.getGroupId()); statement.setInt(5, onlineFile.getProjectId()); statement.setInt(6, currentFile.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFile.isLockedBy()); statement.setInt(9, currentFile.getLauncherType()); statement.setString(10, currentFile.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFile.getResourceLastModifiedBy()); statement.setInt(13, currentFile.getLength()); statement.setInt(14, currentFile.getFileId()); statement.setInt(15, onlineFile.getResourceId()); statement.executeUpdate(); }catch (SQLException e){ throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); }finally{ if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } // copy properties try{ deleteAllProperties(onlineFile.getResourceId()); Hashtable props = readAllProperties(currentFile.getResourceId(), currentFile.getType()); writeProperties(props, onlineFile.getResourceId(), currentFile.getType()); }catch (CmsException exc){ if (A_OpenCms.isLogging()){ A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } // C_STATE_NEW }else if (currentFile.getState() == C_STATE_NEW){ // export to filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null){ discAccess.writeFile(currentFile.getAbsolutePath(), exportKey, readFileContent(currentFile.getFileId())); } // get parentId for onlineFile either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFile.getParentId())); if (parentId == null){ CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFile.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFile.getParentId()), parentId); } // create the new file try { newFile = createFile(onlineProject, onlineProject, currentFile, user.getId(), parentId.intValue(), currentFile.getAbsolutePath(), false); newFile.setState(C_STATE_UNCHANGED); writeFile(onlineProject, onlineProject, newFile, false); } catch (CmsException e) { if (e.getType() == CmsException.C_FILE_EXISTS) { CmsFile onlineFile = null; try { onlineFile = readFileHeader(onlineProject.getId(), currentFile.getAbsolutePath()); } catch (CmsException exc) { throw exc; } // end of catch Connection con = null; PreparedStatement statement = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFile with data from offlineFile statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE_FILE); statement.setInt(1, currentFile.getType()); statement.setInt(2, currentFile.getFlags()); statement.setInt(3, currentFile.getOwnerId()); statement.setInt(4, currentFile.getGroupId()); statement.setInt(5, onlineFile.getProjectId()); statement.setInt(6, currentFile.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFile.isLockedBy()); statement.setInt(9, currentFile.getLauncherType()); statement.setString(10, currentFile.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFile.getResourceLastModifiedBy()); statement.setInt(13, currentFile.getLength()); statement.setInt(14, currentFile.getFileId()); statement.setInt(15, onlineFile.getResourceId()); statement.executeUpdate(); newFile = readFile(onlineProject.getId(), onlineProject.getId(), currentFile.getAbsolutePath()); } catch (SQLException sqle) { throw new CmsException("[" + this.getClass().getName() + "] " + sqle.getMessage(), CmsException.C_SQL_ERROR, sqle); } finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } } else { throw e; } } // copy properties try{ Hashtable props = readAllProperties(currentFile.getResourceId(), currentFile.getType()); writeProperties(props, newFile.getResourceId(), newFile.getType()); }catch (CmsException exc){ if (A_OpenCms.isLogging()){ A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + newFile.toString() + " Message= " + exc.getMessage()); } } } } // end of for(... // now delete the "deleted" folders for (int i = deletedFolders.size() - 1; i > -1; i--){ currentFolder = ((CmsFolder) deletedFolders.elementAt(i)); String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null){ discAccess.removeResource(currentFolder.getAbsolutePath(), exportKey); } try{ deleteAllProperties(currentFolder.getResourceId()); }catch (CmsException exc){ if (A_OpenCms.isLogging()){ A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + currentFolder.toString() + " Message= " + exc.getMessage()); } } removeFolderForPublish(onlineProject, currentFolder.getAbsolutePath()); } // end of for //clearFilesTable(); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/CmsDbAccess.java/clean/src/com/opencms/file/genericSql/CmsDbAccess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3808,
4109,
12,
4747,
1299,
729,
16,
509,
9882,
16,
2149,
4109,
12365,
4109,
13,
1216,
11228,
202,
95,
202,
202,
4747,
1862,
12861,
19169,
1862,
273,
394,
2149,
1862,
12861... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3808,
4109,
12,
4747,
1299,
729,
16,
509,
9882,
16,
2149,
4109,
12365,
4109,
13,
1216,
11228,
202,
95,
202,
202,
4747,
1862,
12861,
19169,
1862,
273,
394,
2149,
1862,
12861... |
protected void processMessage(Message message) { FIXMessageData fixMessageData = (FIXMessageData) message; quickfix.Session quickfixSession = fixMessageData.getSession(); try { quickfixSession.getState().logIncoming(fixMessageData.toString()); DataDictionary dataDictionary = quickfixSession.getDataDictionary(); quickfix.Message fixMessage = fixMessageData.parse(dataDictionary); try { quickfixSession.next(fixMessage); } catch (Throwable e) { quickfix.Log sessionLog = quickfixSession.getLog(); LogUtil.logThrowable(sessionLog, "error while receiving message", e); if (fixMessageData.isLogon()) { try { quickfixSession.disconnect(); } catch (IOException ioException) { LogUtil.logThrowable(sessionLog, "error during disconnect", ioException); } } } } catch (InvalidMessage e) { // TODO Handle Invalid Message During Parsing // Generate a session-level reject for the message // The problem here is that the fixMessage was not parsed. //quickfixSession.generateReject(fixMessage, "invalid message format"); LogUtil.logThrowable(quickfixSession.getLog(), "error during disconnect", e); } } | 52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/b5c31e8eebf925467ed706a215d18f66c4d1ec26/AbstractSocketInitiator.java/buggy/src/quickfix/netty/AbstractSocketInitiator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
225,
918,
225,
1207,
1079,
12,
1079,
225,
883,
13,
225,
288,
7734,
8563,
1079,
751,
225,
2917,
1079,
751,
225,
273,
225,
261,
4563,
1079,
751,
13,
225,
883,
31,
7734,
9549,
904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
225,
918,
225,
1207,
1079,
12,
1079,
225,
883,
13,
225,
288,
7734,
8563,
1079,
751,
225,
2917,
1079,
751,
225,
273,
225,
261,
4563,
1079,
751,
13,
225,
883,
31,
7734,
9549,
904,
... | ||
createTestDatabase(COLUMN_CONSTRAINT_TEST_SCHEMA)); | sql); | public void testColumnConstraints() throws Exception { // this is not valid sql as a table can have only one identity column at most assertEqualsIgnoringWhitespaces( "SET quoted_identifier on;\n"+ "SET quoted_identifier on;\n"+ "IF EXISTS (SELECT 1 FROM sysobjects WHERE type = 'U' AND name = 'constraints')\n"+ "BEGIN\n"+ " DECLARE @tablename nvarchar(256), @constraintname nvarchar(256)\n"+ " DECLARE refcursor CURSOR FOR\n"+ " SELECT object_name(objs.parent_obj) tablename, objs.name constraintname\n"+ " FROM sysobjects objs JOIN sysconstraints cons ON objs.id = cons.constid\n"+ " WHERE objs.xtype != 'PK' AND object_name(objs.parent_obj) = 'constraints' OPEN refcursor\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " WHILE @@FETCH_STATUS = 0\n"+ " BEGIN\n"+ " EXEC ('ALTER TABLE '+@tablename+' DROP CONSTRAINT '+@constraintname)\n"+ " FETCH NEXT FROM refcursor INTO @tablename, @constraintname\n"+ " END\n"+ " CLOSE refcursor\n"+ " DEALLOCATE refcursor\n"+ " DROP TABLE \"constraints\"\n"+ "END;\n"+ "SET quoted_identifier on;\n"+ "CREATE TABLE \"constraints\"\n"+ "(\n"+ " \"COL_PK\" VARCHAR(32),\n"+ " \"COL_PK_AUTO_INCR\" INT IDENTITY(1,1),\n"+ " \"COL_NOT_NULL\" BINARY(100) NOT NULL,\n"+ " \"COL_NOT_NULL_DEFAULT\" FLOAT DEFAULT -2.0 NOT NULL,\n"+ " \"COL_DEFAULT\" CHAR(4) DEFAULT 'test',\n"+ " \"COL_AUTO_INCR\" DECIMAL(19,0) IDENTITY(1,1),\n"+ " PRIMARY KEY (\"COL_PK\", \"COL_PK_AUTO_INCR\")\n"+ ");\n", createTestDatabase(COLUMN_CONSTRAINT_TEST_SCHEMA)); } | 3517 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3517/b18ab2f7d5ab65951d49530e955171abbf76fedc/TestMSSqlPlatform.java/buggy/src/test/org/apache/ddlutils/platform/TestMSSqlPlatform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1494,
4878,
1435,
1216,
1185,
565,
288,
3639,
368,
333,
353,
486,
923,
1847,
487,
279,
1014,
848,
1240,
1338,
1245,
4215,
1057,
622,
4486,
540,
1815,
8867,
21702,
2888,
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,
1842,
1494,
4878,
1435,
1216,
1185,
565,
288,
3639,
368,
333,
353,
486,
923,
1847,
487,
279,
1014,
848,
1240,
1338,
1245,
4215,
1057,
622,
4486,
540,
1815,
8867,
21702,
2888,
2... |
return false; | reportINIFailure(null, "Plugin file not found"); | public boolean readINIFile() throws CoreException { // determine the identifier of the "dominant" application IInstallInfo ii = BootLoader.getInstallationInfo(); String configName = ii.getApplicationConfigurationIdentifier(); if (configName == null) return false; // attempt to locate its corresponding "main" plugin IPluginRegistry reg = Platform.getPluginRegistry(); if (reg == null) return false; int index = configName.lastIndexOf("_"); if (index == -1) this.desc = reg.getPluginDescriptor(configName); else { String mainPluginName = configName.substring(0, index); PluginVersionIdentifier mainPluginVersion = null; try { mainPluginVersion = new PluginVersionIdentifier(configName.substring(index + 1)); } catch (Exception e) { return false; } this.desc = reg.getPluginDescriptor(mainPluginName, mainPluginVersion); } if (this.desc == null) return false; this.baseURL = desc.getInstallURL(); // load the platform.ini and platform.properties file URL iniURL = PluginFileFinder.getResource(this.desc, iniFilename); URL propertiesURL = PluginFileFinder.getResource(this.desc, propertiesFilename); if (iniURL == null) return false; readINIFile(iniURL, propertiesURL); return true; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b49e084461181fcbd11ecc450ed1483b00dca10c/ConfigurationInfo.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ConfigurationInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
855,
12772,
812,
1435,
1216,
30015,
288,
202,
202,
759,
4199,
326,
2756,
434,
326,
315,
9859,
20030,
6,
2521,
3196,
202,
45,
6410,
966,
6072,
273,
26254,
2886,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
855,
12772,
812,
1435,
1216,
30015,
288,
202,
202,
759,
4199,
326,
2756,
434,
326,
315,
9859,
20030,
6,
2521,
3196,
202,
45,
6410,
966,
6072,
273,
26254,
2886,
18,
588,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.