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 |
|---|---|---|---|---|---|---|
try { Connection con = JDBC2Tests.openDB(); | try { Statement stmt = con.createStatement(); assertEquals(1, stmt.executeUpdate(JDBC2Tests.insertSQL("testdate", "'1950-02-07'"))); assertEquals(1, stmt.executeUpdate(JDBC2Tests.insertSQL("testdate", "'1970-06-02'"))); assertEquals(1, stmt.executeUpdate(JDBC2Tests.insertSQL("testdate", "'1999-08-11'"))); assertEquals(1, stmt.executeUpdate(JDBC2Tests.insertSQL("testdate", "'2001-02-13'"))); | public void testGetDate() { try { Connection con = JDBC2Tests.openDB(); Statement st=con.createStatement(); JDBC2Tests.createTable(con,"dt date"); st.executeUpdate(JDBC2Tests.insert("'1950-02-07'")); st.executeUpdate(JDBC2Tests.insert("'1970-06-02'")); st.executeUpdate(JDBC2Tests.insert("'1999-08-11'")); st.executeUpdate(JDBC2Tests.insert("'2001-02-13'")); // Fall through helper checkTimeTest(con,st); st.close(); JDBC2Tests.closeDB(con); } catch(Exception ex) { assert(ex.getMessage(),false); } } /** * Tests the time methods in PreparedStatement */ public void testSetDate() { try { Connection con = JDBC2Tests.openDB(); Statement st=con.createStatement(); JDBC2Tests.createTable(con,"dt date"); PreparedStatement ps = con.prepareStatement(JDBC2Tests.insert("?")); ps.setDate(1,getDate(1950,2,7)); assert(!ps.execute()); // false as its an update! ps.setDate(1,getDate(1970,6,2)); assert(!ps.execute()); // false as its an update! ps.setDate(1,getDate(1999,8,11)); assert(!ps.execute()); // false as its an update! ps.setDate(1,getDate(2001,2,13)); assert(!ps.execute()); // false as its an update! // Fall through helper checkTimeTest(con,st); ps.close(); st.close(); JDBC2Tests.closeDB(con); } catch(Exception ex) { | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/b75814aee320ef2b67ad01ba72c266dbbf94db45/DateTest.java/clean/src/interfaces/jdbc/org/postgresql/test/jdbc2/DateTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
967,
1626,
1435,
288,
565,
775,
288,
1377,
4050,
356,
273,
16364,
22,
14650,
18,
3190,
2290,
5621,
1377,
8056,
384,
33,
591,
18,
2640,
3406,
5621,
1377,
16364,
22,
14650,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
967,
1626,
1435,
288,
565,
775,
288,
1377,
4050,
356,
273,
16364,
22,
14650,
18,
3190,
2290,
5621,
1377,
8056,
384,
33,
591,
18,
2640,
3406,
5621,
1377,
16364,
22,
14650,... |
String message = parser.nextText(); | try { message = parser.nextText(); } catch (XmlPullParserException ex) {} | private XMPPError parseError(XmlPullParser parser) throws Exception { String errorCode = null; for (int i=0; i<parser.getAttributeCount(); i++) { if (parser.getAttributeName(i).equals("code")) { errorCode = parser.getAttributeValue("", "code"); } } String message = parser.nextText(); while (true) { if (parser.getEventType() == XmlPullParser.END_TAG && parser.getName().equals("error")) { break; } } return new XMPPError(Integer.parseInt(errorCode), message); } | 4336 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4336/d9aa18a34c0f31feff696c97da3bc6cddd33f439/PacketReader.java/clean/source/org/jivesoftware/smack/PacketReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
23216,
668,
1109,
668,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
3639,
514,
12079,
273,
446,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
4288,
18,
588,
1499,
1380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23216,
668,
1109,
668,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
3639,
514,
12079,
273,
446,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
4288,
18,
588,
1499,
1380,
... |
getRawToken(); Expression selector = parseExpr(); if (curToken != ')') return syntaxError("missing ')' after 'typeswitch' selector"); | Expression selector = parseParenExpr(); | Expression parseTypeSwitch() throws java.io.IOException, SyntaxException { char save = pushNesting('t'); getRawToken(); Expression selector = parseExpr(); if (curToken != ')') return syntaxError("missing ')' after 'typeswitch' selector"); getRawToken(); Object varName = null; Declaration decl; Vector vec = new Vector(); vec.addElement(selector); while (match("case")) { pushNesting('c'); getRawToken(); if (curToken == '$') { decl = parseVariableDeclaration(); if (decl == null) return syntaxError("missing Variable after '$'"); getRawToken(); if (match("as")) getRawToken(); else error('e', "missing 'as'"); } else decl = new Declaration("(arg)"); decl.setType((Type) ((QuoteExp) parseDataType()).getValue()); popNesting('t'); LambdaExp lexp = new LambdaExp(1); lexp.addDeclaration(decl); if (match("return")) getRawToken(); else error("missing 'return' after 'case'"); comp.push(lexp); pushNesting('r'); Expression caseExpr = parseExpr(); lexp.body = caseExpr; popNesting('t'); comp.pop(lexp); vec.addElement(lexp); } if (curToken == '$') { decl = parseVariableDeclaration(); if (decl == null) return syntaxError("missing Variable after '$'"); getRawToken(); } else decl = new Declaration("(arg)"); LambdaExp lexp = new LambdaExp(0); lexp.addDeclaration(decl); if (match("default")) { getRawToken(); if (match("return")) getRawToken(); else error("missing 'return' after 'default'"); comp.push(lexp); Expression defaultExpr = parseExpr(); lexp.body = defaultExpr; comp.pop(lexp); } else { lexp.body = QuoteExp.voidExp; error('w', "no 'default' clause in 'typeswitch'"); } vec.addElement(lexp); popNesting(save); Expression[] args = new Expression[vec.size()]; vec.copyInto(args); return new ApplyExp(makeFunctionExp("gnu.kawa.reflect.TypeSwitch", "typeSwitch"), args); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/8698d3d405b5288d6f4ee34862744c6f5907db49/XQParser.java/buggy/gnu/xquery/lang/XQParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5371,
1109,
559,
10200,
1435,
565,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
1149,
1923,
273,
1817,
50,
10100,
2668,
88,
8284,
565,
10547,
1345,
5621,
565,
5371,
345... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5371,
1109,
559,
10200,
1435,
565,
1216,
2252,
18,
1594,
18,
14106,
16,
11517,
503,
225,
288,
565,
1149,
1923,
273,
1817,
50,
10100,
2668,
88,
8284,
565,
10547,
1345,
5621,
565,
5371,
345... |
throw new EJBException("Cannot get JNDI InitialContext"); | throw new RemoteException("Cannot get JNDI InitialContext"); | public void setSessionContext(SessionContext sessionContext) throws RemoteException { this.sessionContext = sessionContext; if (dataSource == null) { // Finds DataSource from JNDI try { initialContext = new InitialContext(); dataSource = (DataSource)initialContext.lookup("java:comp/env/jdbc/rubis"); } catch (Exception e) { throw new EJBException("Cannot get JNDI InitialContext"); } } } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/69c37257a1581e015b5a8a01582a0f0d4a10936c/SB_PutCommentBean.java/buggy/EJB_Session_facade/edu/rice/rubis/beans/SB_PutCommentBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
25486,
1042,
12,
2157,
1042,
1339,
1042,
13,
1216,
18361,
225,
288,
565,
333,
18,
3184,
1042,
273,
1339,
1042,
31,
565,
309,
261,
892,
1830,
422,
446,
13,
565,
288,
1377,
368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
25486,
1042,
12,
2157,
1042,
1339,
1042,
13,
1216,
18361,
225,
288,
565,
333,
18,
3184,
1042,
273,
1339,
1042,
31,
565,
309,
261,
892,
1830,
422,
446,
13,
565,
288,
1377,
368... |
_fis.skip(skip); | _fis.skip(_uploadBegin); | public void doUpload() throws IOException { writeHeader(); int c = -1; int available = 0; byte[] buf = new byte[1024]; int skip = 0; if (_uploadBegin != 0) skip = _uploadBegin -1; _fis.skip(skip); while (true) { try { if ((_uploadEnd != 0) && (_uploadEnd == _amountRead )) break; c = _fis.read(buf); } catch (IOException e) { throw e; } if (c == -1) break; try { _ostream.write(buf, 0, c); } catch (IOException e) { throw e; } _amountRead += c; } try { _ostream.close(); } catch (IOException e) { throw e; } _state = COMPLETE; } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/5fd2b3db6998fcd07e2ed83315b8284f344c4249/HTTPUploader.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/uploader/HTTPUploader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4777,
1435,
1216,
1860,
288,
202,
2626,
1864,
5621,
202,
474,
276,
273,
300,
21,
31,
202,
474,
2319,
273,
374,
31,
202,
7229,
8526,
1681,
273,
394,
1160,
63,
2163,
3247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4777,
1435,
1216,
1860,
288,
202,
2626,
1864,
5621,
202,
474,
276,
273,
300,
21,
31,
202,
474,
2319,
273,
374,
31,
202,
7229,
8526,
1681,
273,
394,
1160,
63,
2163,
3247,... |
(String)fullyQualifiedFaultClassNameMap.get(key), | (String) fullyQualifiedFaultClassNameMap.get(key), | private Element getUniqueListofFaults(Document doc) { Element rootElement = doc.createElement("fault-list"); Element faultElement; QName key; Iterator iterator = fullyQualifiedFaultClassNameMap.keySet().iterator(); while (iterator.hasNext()) { faultElement = doc.createElement("fault"); key = (QName) iterator.next(); //as for the name of a fault, we generate an exception addAttribute(doc, "name", (String)fullyQualifiedFaultClassNameMap.get(key), faultElement); addAttribute(doc, "intantiatiableName", (String)InstantiatableFaultClassNameMap.get(key), faultElement); addAttribute(doc, "shortName", (String)faultClassNameMap.get(key), faultElement); //the type represents the type that will be wrapped by this //name String typeMapping = this.mapper.getTypeMappingName(key); addAttribute(doc, "type", (typeMapping == null) ? "" : typeMapping, faultElement); String attribValue = (String) instantiatableMessageClassNames. get(key); addAttribute(doc, "instantiatableType", attribValue==null?"":attribValue, faultElement); // add an extra attribute to say whether the type mapping is // the default if (TypeMapper.DEFAULT_CLASS_NAME.equals(typeMapping)) { addAttribute(doc, "default", "yes", faultElement); } addAttribute(doc, "value", getParamInitializer(typeMapping), faultElement); rootElement.appendChild(faultElement); } return rootElement; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95b2a1b8970a4e5a4607b75b8bd0347d031c1111/AxisServiceBasedMultiLanguageEmitter.java/clean/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3010,
16076,
682,
792,
7083,
87,
12,
2519,
997,
13,
288,
3639,
3010,
225,
27575,
273,
997,
18,
2640,
1046,
2932,
643,
17,
1098,
8863,
3639,
3010,
12530,
1046,
31,
3639,
16723,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3010,
16076,
682,
792,
7083,
87,
12,
2519,
997,
13,
288,
3639,
3010,
225,
27575,
273,
997,
18,
2640,
1046,
2932,
643,
17,
1098,
8863,
3639,
3010,
12530,
1046,
31,
3639,
16723,
498,
... |
return _exptype(nodeHandle & m_mask); | return _exptype(makeNodeIdentity(nodeHandle)); | public int getExpandedTypeID(int nodeHandle) { return _exptype(nodeHandle & m_mask); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/2d102c245a54c9167bd2255d2b93ba5f3b7667e8/DTMDefaultBase.java/buggy/src/org/apache/xml/dtm/ref/DTMDefaultBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
336,
17957,
559,
734,
12,
474,
756,
3259,
13,
225,
288,
282,
327,
389,
338,
27672,
12,
6540,
907,
4334,
12,
2159,
3259,
10019,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
336,
17957,
559,
734,
12,
474,
756,
3259,
13,
225,
288,
282,
327,
389,
338,
27672,
12,
6540,
907,
4334,
12,
2159,
3259,
10019,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
removeJarButtonActionPerformed(evt); } | removeJarButtonActionPerformed(evt); } | public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/63a6170e705d470d850093203d4357a1a06a9a8e/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
9506,
202,
4479,
10813,
3616,
19449,
12,
73,
11734,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
9506,
202,
4479,
10813,
3616,
19449,
12,
73,
11734,
1769,
1082,
202,
97,
2,
-100,
-100,
-100,
-10... |
openBorder = new CompoundBorder(new MatteBorder(0,2,0,0,Color.black), | openBorder = new CompoundBorder(new MatteBorder(0,2,0,0, UIManager.getColor("Tree.textForeground")), | private void propertiesChanged() { showIcons = jEdit.getBooleanProperty("vfs.browser.showIcons"); if(showIcons) { closedBorder = new EmptyBorder(0,3,0,0); openBorder = new CompoundBorder(new MatteBorder(0,2,0,0,Color.black), new EmptyBorder(0,1,0,0)); } else { closedBorder = new EmptyBorder(1,4,1,1); openBorder = new CompoundBorder(new MatteBorder(0,2,0,0,Color.black), new EmptyBorder(1,2,1,1)); } } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/1968964b53e488a02f30d31683a7cce6627027b8/FileCellRenderer.java/buggy/org/gjt/sp/jedit/browser/FileCellRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1790,
5033,
1435,
202,
95,
202,
202,
4500,
27510,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
90,
2556,
18,
11213,
18,
4500,
27510,
8863,
202,
202,
430,
12,
4500,
27510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1790,
5033,
1435,
202,
95,
202,
202,
4500,
27510,
273,
525,
4666,
18,
588,
5507,
1396,
2932,
90,
2556,
18,
11213,
18,
4500,
27510,
8863,
202,
202,
430,
12,
4500,
27510,
... |
return this.sid; | return sid; | public short getSid() { return this.sid; } | 509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/e1e58e515f38ac357130b8e14d9fd377be1ea1a6/RefModeRecord.java/buggy/src/java/org/apache/poi/hssf/record/RefModeRecord.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
1322,
350,
1435,
565,
288,
3639,
327,
7348,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
1322,
350,
1435,
565,
288,
3639,
327,
7348,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
horizontalRuler); | horizontalRuler, root.getMapMode()); | private void initializeContents(EditPart editpart) { getZoomManager().setZoom( getWorkspaceViewerPreferenceStore().getDouble( WorkspaceViewerProperties.ZOOM)); getDiagramEditPart().refreshPageBreaks(); // Update the range model of the viewport ((DiagramEditPart) editpart).getViewport().validate(); if (editpart instanceof DiagramEditPart) { int x = getWorkspaceViewerPreferenceStore().getInt( WorkspaceViewerProperties.VIEWPORTX); int y = getWorkspaceViewerPreferenceStore().getInt( WorkspaceViewerProperties.VIEWPORTY); ((DiagramEditPart) editpart).getViewport() .getHorizontalRangeModel().setValue(x); ((DiagramEditPart) editpart).getViewport().getVerticalRangeModel() .setValue(y); } // Get the Ruler Units properties int rulerUnits = ((IPreferenceStore) ((DiagramRootEditPart) getRootEditPart()).getPreferencesHint().getPreferenceStore()) .getInt(IPreferenceConstants.PREF_RULER_UNITS); // Get the Guide Style GuideStyle guideStyle = (GuideStyle) getDiagram().getStyle( NotationPackage.eINSTANCE.getGuideStyle()); if (guideStyle != null) { // Set the Vertical Ruler properties DiagramRuler verticalRuler = ((DiagramRootEditPart) getRootEditPart()).getVerticalRuler(); verticalRuler.setGuideStyle(guideStyle); verticalRuler.setUnit(rulerUnits); DiagramRulerProvider vertProvider = new DiagramRulerProvider( verticalRuler); vertProvider.init(); getDiagramGraphicalViewer().setProperty( RulerProvider.PROPERTY_VERTICAL_RULER, vertProvider); // Set the Horizontal Ruler properties DiagramRuler horizontalRuler = ((DiagramRootEditPart) getRootEditPart()).getHorizontalRuler(); horizontalRuler.setGuideStyle(guideStyle); horizontalRuler.setUnit(rulerUnits); DiagramRulerProvider horzProvider = new DiagramRulerProvider( horizontalRuler); horzProvider.init(); getDiagramGraphicalViewer().setProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER, horzProvider); // Show/Hide Rulers getDiagramGraphicalViewer().setProperty( RulerProvider.PROPERTY_RULER_VISIBILITY, Boolean.valueOf(getWorkspaceViewerPreferenceStore().getBoolean( WorkspaceViewerProperties.VIEWRULERS))); } // Snap to Grid getDiagramGraphicalViewer().setProperty( SnapToGeometry.PROPERTY_SNAP_ENABLED, Boolean.valueOf(getWorkspaceViewerPreferenceStore().getBoolean( WorkspaceViewerProperties.SNAPTOGRID))); // Hide/Show Grid getDiagramGraphicalViewer().setProperty( SnapToGrid.PROPERTY_GRID_ENABLED, Boolean.valueOf(getWorkspaceViewerPreferenceStore().getBoolean( WorkspaceViewerProperties.VIEWGRID))); getDiagramGraphicalViewer().setProperty( SnapToGrid.PROPERTY_GRID_VISIBLE, Boolean.valueOf(getWorkspaceViewerPreferenceStore().getBoolean( WorkspaceViewerProperties.VIEWGRID))); // Grid Origin (always 0, 0) Point origin = new Point(); getDiagramGraphicalViewer().setProperty( SnapToGrid.PROPERTY_GRID_ORIGIN, origin); // Grid Spacing double dSpacing = ((DiagramRootEditPart) getDiagramEditPart().getRoot()) .getGridSpacing(); ((DiagramRootEditPart) getDiagramEditPart().getRoot()) .setGridSpacing(dSpacing); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/adc1102179d667e4a670bfc5711892726a23a343/DiagramEditor.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/parts/DiagramEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4046,
6323,
12,
4666,
1988,
3874,
2680,
13,
288,
202,
202,
588,
11497,
1318,
7675,
542,
11497,
12,
1082,
202,
588,
8241,
18415,
9624,
2257,
7675,
588,
5265,
12,
9506,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4046,
6323,
12,
4666,
1988,
3874,
2680,
13,
288,
202,
202,
588,
11497,
1318,
7675,
542,
11497,
12,
1082,
202,
588,
8241,
18415,
9624,
2257,
7675,
588,
5265,
12,
9506,
202,... |
if (isLeader() && isAgent(name)) { | if (isLeader(thisAgent) && isAgent(name)) { newState(name, HEALTH_CHECK); | public void enter(String name) { if (isLeader() && isAgent(name)) { //newState(name, HEALTH_CHECK); } } | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/91789f2f3cb24991e56fcdb8c7f6638c818776ff/DefaultRobustnessController.java/clean/mgmt_agent/src/org/cougaar/tools/robustness/ma/controllers/DefaultRobustnessController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6103,
12,
780,
508,
13,
288,
1377,
309,
261,
291,
15254,
12,
2211,
3630,
13,
597,
353,
3630,
12,
529,
3719,
288,
15907,
12,
529,
16,
4194,
1013,
2455,
67,
10687,
1769,
4202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6103,
12,
780,
508,
13,
288,
1377,
309,
261,
291,
15254,
12,
2211,
3630,
13,
597,
353,
3630,
12,
529,
3719,
288,
15907,
12,
529,
16,
4194,
1013,
2455,
67,
10687,
1769,
4202,
... |
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException | public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { switch (methodId) { case ConstructorId_fromCharCode: { int N = args.length; if (N < 1) return ""; StringBuffer sb = new StringBuffer(N); for (int i = 0; i != N; ++i) { sb.append(ScriptRuntime.toUint16(args[i])); } return sb.toString(); } case Id_constructor: { String s = (args.length >= 1) ? ScriptRuntime.toString(args[0]) : ""; if (thisObj == null) { // new String(val) creates a new String object. return new NativeString(s); } // String(val) converts val to a string value. return s; } case Id_toString: case Id_valueOf: // ECMA 15.5.4.2: 'the toString function is not generic. return realThis(thisObj, f).string; case Id_toSource: { String s = realThis(thisObj, f).string; return "(new String(\""+ScriptRuntime.escapeString(s) +"\"))"; } case Id_charAt: case Id_charCodeAt: { // See ECMA 15.5.4.[4,5] String target = ScriptRuntime.toString(thisObj); double pos = ScriptRuntime.toInteger(args, 0); if (pos < 0 || pos >= target.length()) { if (methodId == Id_charAt) return ""; else return ScriptRuntime.NaNobj; } char c = target.charAt((int)pos); if (methodId == Id_charAt) return String.valueOf(c); else return wrap_int(c); } case Id_indexOf: return wrap_int(js_indexOf (ScriptRuntime.toString(thisObj), args)); case Id_lastIndexOf: return wrap_int(js_lastIndexOf (ScriptRuntime.toString(thisObj), args)); case Id_split: return js_split (cx, scope, ScriptRuntime.toString(thisObj), args); case Id_substring: return js_substring (cx, ScriptRuntime.toString(thisObj), args); case Id_toLowerCase: // See ECMA 15.5.4.11 return ScriptRuntime.toString(thisObj).toLowerCase(); case Id_toUpperCase: // See ECMA 15.5.4.12 return ScriptRuntime.toString(thisObj).toUpperCase(); case Id_substr: return js_substr(ScriptRuntime.toString(thisObj), args); case Id_concat: return js_concat(ScriptRuntime.toString(thisObj), args); case Id_slice: return js_slice(ScriptRuntime.toString(thisObj), args); case Id_bold: return tagify(thisObj, "b", null, null); case Id_italics: return tagify(thisObj, "i", null, null); case Id_fixed: return tagify(thisObj, "tt", null, null); case Id_strike: return tagify(thisObj, "strike", null, null); case Id_small: return tagify(thisObj, "small", null, null); case Id_big: return tagify(thisObj, "big", null, null); case Id_blink: return tagify(thisObj, "blink", null, null); case Id_sup: return tagify(thisObj, "sup", null, null); case Id_sub: return tagify(thisObj, "sub", null, null); case Id_fontsize: return tagify(thisObj, "font", "size", args); case Id_fontcolor: return tagify(thisObj, "font", "color", args); case Id_link: return tagify(thisObj, "a", "href", args); case Id_anchor: return tagify(thisObj, "a", "name", args); case Id_equals: case Id_equalsIgnoreCase: { String s1 = ScriptRuntime.toString(thisObj); String s2 = ScriptRuntime.toString(args, 0); return wrap_boolean(methodId == Id_equals ? s1.equals(s2) : s1.equalsIgnoreCase(s2)); } case Id_match: return ScriptRuntime.checkRegExpProxy(cx). match(cx, scope, thisObj, args); case Id_search: return ScriptRuntime.checkRegExpProxy(cx). search(cx, scope, thisObj, args); case Id_replace: return ScriptRuntime.checkRegExpProxy(cx). replace(cx, scope, thisObj, args); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
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,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
public org.quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { org.quickfix.field.EncodedIssuer value = new org.quickfix.field.EncodedIssuer(); | public quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { quickfix.field.EncodedIssuer value = new quickfix.field.EncodedIssuer(); | public org.quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { org.quickfix.field.EncodedIssuer value = new org.quickfix.field.EncodedIssuer(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelRequest.java/clean/src/java/src/quickfix/fix43/OrderCancelRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
28799,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
460,
273,
394,
2358,
18,
19525,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
28799,
16667,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
460,
273,
394,
2358,
18,
19525,
9... |
public org.quickfix.field.EventText getEventText() throws FieldNotFound { org.quickfix.field.EventText value = new org.quickfix.field.EventText(); | public quickfix.field.EventText getEventText() throws FieldNotFound { quickfix.field.EventText value = new quickfix.field.EventText(); | public org.quickfix.field.EventText getEventText() throws FieldNotFound { org.quickfix.field.EventText value = new org.quickfix.field.EventText(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStrikePrice.java/clean/src/java/src/quickfix/fix44/ListStrikePrice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
9832,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
460,
273,
394,
2358,
18,
19525,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
9832,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1133,
1528,
460,
273,
394,
2358,
18,
19525,
904,
... |
assertEquals(1, sup.getPropertyChangeListeners().length); | assertEquals(0, sup.getPropertyChangeListeners().length); | public void testRemovePropertyChangeListener_PropertyChangeListener_String_NullListener() { Object src = new Object(); PropertyChangeSupport sup = new PropertyChangeSupport(src); sup.removePropertyChangeListener("myProp", null); assertEquals(0, sup.getPropertyChangeListeners().length); sup.addPropertyChangeListener("myProp", null); assertEquals(1, sup.getPropertyChangeListeners().length); sup.removePropertyChangeListener("myProp", null); assertEquals(0, sup.getPropertyChangeListeners().length); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/7371385b20c4a4b2a64736bf7cd4458347709599/PropertyChangeSupportTest.java/clean/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeSupportTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3288,
1396,
15744,
67,
1396,
15744,
67,
780,
67,
2041,
2223,
1435,
288,
3639,
1033,
1705,
273,
394,
1033,
5621,
3639,
4276,
3043,
6289,
1169,
273,
394,
4276,
3043,
6289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3288,
1396,
15744,
67,
1396,
15744,
67,
780,
67,
2041,
2223,
1435,
288,
3639,
1033,
1705,
273,
394,
1033,
5621,
3639,
4276,
3043,
6289,
1169,
273,
394,
4276,
3043,
6289,
... |
public ActionForward editEvaluationMethod(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); Integer objectCode = getObjectCode(request); Integer evaluationMethodCode = getParameter(request, "evaluationMethodCode"); DynaActionForm evaluationForm = (DynaActionForm) form; InfoEvaluationMethod infoEvaluationMethod = new InfoEvaluationMethod(); infoEvaluationMethod.setIdInternal(evaluationMethodCode); infoEvaluationMethod.setEvaluationElements((String) evaluationForm.get("evaluationElements")); infoEvaluationMethod .setEvaluationElementsEn((String) evaluationForm.get("evaluationElementsEn")); Object args[] = { objectCode, evaluationMethodCode, infoEvaluationMethod }; UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW); try { ServiceManagerServiceFactory.executeService(userView, "EditEvaluation", args); } catch (FenixServiceException e) { throw new FenixActionException(e); } return viewEvaluationMethod(mapping, form, request, response); // BEFORE // HttpSession session = request.getSession(false); // Integer objectCode = getObjectCode(request); // String curricularCourseCodeString = // request.getParameter("curricularCourseCode"); // Integer curricularCourseCode = new // Integer(curricularCourseCodeString); // // DynaActionForm evaluationForm = (DynaActionForm) form; // // InfoCurriculum infoCurriculumNew = new InfoCurriculum(); // infoCurriculumNew.setIdInternal(curricularCourseCode); // infoCurriculumNew.setEvaluationElements((String) // evaluationForm.get("evaluationElements")); // infoCurriculumNew.setEvaluationElementsEn((String) // evaluationForm.get("evaluationElementsEn")); // // Object args[] = { objectCode, curricularCourseCode, // infoCurriculumNew }; // // UserView userView = (UserView) // session.getAttribute(SessionConstants.U_VIEW); // GestorServicos serviceManager = GestorServicos.manager(); // try { // ServiceManagerServiceFactory.executeService(userView, // "EditEvaluation", args); // // } catch (FenixServiceException e) { // throw new FenixActionException(e); // } // return viewEvaluationMethod(mapping, form, request, response); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
13468,
1305,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
1586,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
3874,
13468,
1305,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
275,
697,
1586,
5... | ||
-1, -1, -1, -1, -1, -1, 281, 282, -1, 93, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, -1, -1, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, 41, -1, -1, 44, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, 93, 58, 59, 338, -1, -1, -1, -1, 343, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, 94, -1, 125, -1, -1, -1, 93, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, -1, -1, -1, -1, -1, -1, -1, 125, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 0, 91, -1, -1, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, 262, 263, | -1, -1, 124, -1, -1, -1, 281, 282, 41, -1, 125, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, 262, 263, | private static final short[] yyCheck3() { return new short[] { -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 333, 334, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, 93, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, 93, 94, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, 326, 62, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 38, -1, 338, 41, -1, -1, 44, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 37, 38, -1, 93, 94, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, 60, 41, 62, 63, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 94, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 60, -1, 62, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 318, 319, 320, 321, 322, 323, 324, 93, 94, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, 94, -1, 96, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 58, 59, 60, -1, 62, 63, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, -1, 125, -1, -1, 343, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, 0, -1, 327, -1, -1, -1, 331, 332, 333, 334, 10, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 41, -1, -1, 44, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, -1, -1, 93, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 125, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, -1, -1, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 93, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, 125, -1, 41, -1, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, 41, -1, -1, 44, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, 0, -1, -1, -1, -1, -1, -1, 58, 59, -1, 10, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 41, 93, -1, 44, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 58, 59, -1, 10, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 125, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, 41, 93, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 93, -1, -1, 58, 59, -1, -1, -1, 63, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, 326, -1, -1, 329, 330, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 125, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, 338, 41, -1, -1, 44, 343, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 338, 41, -1, -1, 44, 343, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 41, -1, -1, 44, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 125, -1, 281, 282, -1, -1, -1, 93, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 262, 263, 264, 343, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 0, 343, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 0, -1, -1, 343, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 93, 58, 59, -1, 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, 0, -1, 125, -1, -1, 41, 93, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 125, -1, -1, 41, -1, -1, 44, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, 125, -1, -1, -1, 93, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, 125, -1, -1, 10, 93, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, 125, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, 93, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, -1, -1, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, 41, -1, -1, 44, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, 93, 58, 59, 338, -1, -1, -1, -1, 343, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, 94, -1, 125, -1, -1, -1, 93, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, -1, -1, -1, -1, -1, -1, -1, 125, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 0, 91, -1, -1, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 91, -1, -1, 94, 290, 291, -1, 293, 294, 295, 296, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 125, -1, -1, -1, -1, -1, -1, -1, 281, 282, 124, 125, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 343, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 290, 291, 281, 293, 294, 295, 296, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, 338, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 0, 47, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 124, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 91, -1, 0, 94, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, 41, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, 124, 125, 41, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 125, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 0, -1, 338, 93, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 318, 319, 320, 321, 322, 323, 324, 325, -1, 327, 328, -1, -1, -1, 125, 333, 334, -1, 290, 291, 41, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 337, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 290, 291, -1, 293, 294, 295, 296, 297, 281, 0, 125, -1, -1, -1, -1, -1, -1, 290, 291, 10, 293, 294, 295, 296, 297, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 59, 60, 61, 62, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 0, -1, 290, 291, -1, 293, 294, 295, 296, 297, 10, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, 91, 290, 291, 94, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 124, 125, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 336, -1, -1, 339, 340, 341, 342, -1, 126, -1, 346, 347, 348, 349, 350, 351, 33, -1, 290, 291, 356, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 256, 257, 258, 259, 260, 261, 59, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, }; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
1728,
16,
282,
300,
21,
16,
225,
890,
8942,
16,
282,
... |
if (entityHex.levelOf(Terrain.FIRE) == 2) { entity.heatBuildup += 5; roundReport.append("Added 5 heat from a fire...\n"); | if (entityHex != null) { if (entityHex.levelOf(Terrain.FIRE) == 2) { entity.heatBuildup += 5; roundReport.append("Added 5 heat from a fire...\n"); } | private void resolveHeat() { roundReport.append("\nHeat Phase\n----------\n"); for (Enumeration i = game.getEntities(); i.hasMoreElements();) { Entity entity = (Entity)i.nextElement(); if ( null == entity.getPosition() ) { continue; } Hex entityHex = game.getBoard().getHex(entity.getPosition()); // heat doesn't matter for non-mechs if (!(entity instanceof Mech)) { entity.heatBuildup = 0; // If the unit is hit with an Inferno, do flaming death test. if ( entity.infernos.isStillBurning() ) { doFlamingDeath(entity); } continue; } else { // Meks gain heat from inferno hits. if ( entity.infernos.isStillBurning() ) { int infernoHeat = entity.infernos.getHeat(); entity.heatBuildup += infernoHeat; roundReport.append( "Added " ) .append( infernoHeat ) .append( " from a burning inferno round...\n" ); } } // should we even bother? if ( entity.isDestroyed() || entity.isDoomed() || entity.crew.isDoomed() || entity.crew.isDead() ) { continue; } // engine hits add a lot of heat, provided the engine is on entity.heatBuildup += entity.getEngineCritHeat(); // If a Mek had an active Stealth suite, add 10 heat. if ( entity instanceof Mech && entity.isStealthActive() ) { entity.heatBuildup += 10; roundReport.append("Added 10 heat from Stealth Armor...\n"); } // If a Mek is in extreme Temperatures, add or substract one // heat per 10 degrees (or fraction of 10 degrees) above or // below 50 or -30 degrees Celsius if ( entity instanceof Mech && game.getTemperatureDifference() != 0) { if (game.getOptions().intOption("temperature") > 50) { entity.heatBuildup += game.getTemperatureDifference(); roundReport.append( "Added " ) .append( game.getTemperatureDifference() ) .append( " heat due to extreme temperatures...\n" ); } else { entity.heatBuildup -= game.getTemperatureDifference(); roundReport.append( "Substracted " ) .append( game.getTemperatureDifference() ) .append( " heat due to extreme temperatures...\n" ); } } // Add +5 Heat if the hex you're in is on fire // and was on fire for the full round. if (entityHex.levelOf(Terrain.FIRE) == 2) { entity.heatBuildup += 5; roundReport.append("Added 5 heat from a fire...\n"); } // add the heat we've built up so far. roundReport.append( entity.getDisplayName() ) .append( " gains " ) .append( entity.heatBuildup ) .append( " heat,"); entity.heat += entity.heatBuildup; entity.heatBuildup = 0; // how much heat can we sink? int tosink = Math.min( entity.getHeatCapacityWithWater(), entity.heat ); entity.heat -= tosink; roundReport.append( " sinks " ) .append( tosink ) .append( " heat and is now at " ) .append( entity.heat ) .append( " heat.\n"); // Does the unit have inferno ammo? if( entity.hasInfernoAmmo() ) { // Apply the inferno ammo explosion. if (entity.heat >= 10) { int boom = 4 + (entity.heat >= 14 ? 2 : 0) + (entity.heat >= 19 ? 2 : 0) + (entity.heat >= 23 ? 2 : 0) + (entity.heat >= 28 ? 2 : 0); int boomroll = Compute.d6(2); roundReport.append(entity.getDisplayName() ) .append( " needs a " ) .append( boom ) .append( "+ to avoid inferno ammo explosion, rolls " ) .append( boomroll ) .append( " : " ); if (boomroll >= boom) { roundReport.append("avoids successfully!\n"); } else { roundReport.append("fails to avoid explosion.\n"); roundReport.append(explodeInfernoAmmoFromHeat(entity)); } } } // End avoid-inferno-explosion // heat effects: start up if (entity.heat < 30 && entity.isShutDown()) { if (entity.heat < 14) { entity.setShutDown(false); roundReport.append( entity.getDisplayName() ) .append( " automatically starts up.\n" ); } else { int startup = 4 + (((entity.heat - 14) / 4) * 2); int suroll = Compute.d6(2); roundReport.append( entity.getDisplayName() ) .append( " needs a " ) .append( startup ) .append( "+ to start up, rolls " ) .append( suroll ) .append( " : " ); if (suroll >= startup) { entity.setShutDown(false); roundReport.append("successful!\n"); } else { roundReport.append("fails.\n"); } } } // heat effects: shutdown! // 2003-01-26 JAD - Don't shut down if you just restarted. else if (entity.heat >= 14 && !entity.isShutDown()) { if (entity.heat >= 30) { roundReport.append( entity.getDisplayName() ) .append( " automatically shuts down.\n" ); // add a piloting roll and resolve immediately game.addPSR(new PilotingRollData ( entity.getId(), 3, "reactor shutdown" )); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } else if (entity.heat >= 14) { int shutdown = 4 + (((entity.heat - 14) / 4) * 2); int sdroll = Compute.d6(2); roundReport.append(entity.getDisplayName() ) .append( " needs a " ) .append( shutdown ) .append( "+ to avoid shutdown, rolls " ) .append( sdroll ) .append( " : "); if (sdroll >= shutdown) { roundReport.append("avoids successfully!\n"); } else { roundReport.append("shuts down.\n"); // add a piloting roll and resolve immediately game.addPSR(new PilotingRollData ( entity.getId(), 3, "reactor shutdown" )); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } } } // heat effects: ammo explosion! if (entity.heat >= 19) { int boom = 4 + (entity.heat >= 23 ? 2 : 0) + (entity.heat >= 28 ? 2 : 0); int boomroll = Compute.d6(2); roundReport.append( entity.getDisplayName() ) .append( " needs a " ) .append( boom ) .append( "+ to avoid ammo explosion, rolls " ) .append( boomroll ) .append( " : "); if (boomroll >= boom) { roundReport.append("avoids successfully!\n"); } else { roundReport.append("fails to avoid explosion.\n"); roundReport.append(explodeAmmoFromHeat(entity)); } } // heat effects: mechwarrior damage // N.B. The pilot may already be dead. if ( entity.getHitCriticals( CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_HEAD ) > 0 && entity.heat >= 15 && !entity.crew.isDead() && !entity.crew.isDoomed() ) { if (entity.heat >= 25) { // mechwarrior takes 2 damage roundReport.append(entity.getDisplayName() ).append( " has 25 or higher heat and damaged life support. Mechwarrior takes 2 damage.\n"); damageCrew(entity, 2); } else { // mechwarrior takes 1 damage roundReport.append(entity.getDisplayName() ).append( " has 15 or higher heat and damaged life support. Mechwarrior takes 1 damage.\n"); damageCrew(entity, 1); } // The pilot may have just expired. if ( entity.crew.isDead() || entity.crew.isDoomed() ) { roundReport.append( "*** " ) .append( entity.getDisplayName() ) .append( " PILOT BAKES TO DEATH! ***" ) .append( destroyEntity(entity, "crew death", true) ); } } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/2ccb4ae1c736d85b6d155cfcf9da0fc46a24b350/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
5256,
270,
1435,
288,
3639,
3643,
4820,
18,
6923,
31458,
82,
5256,
270,
19459,
64,
82,
15392,
64,
82,
8863,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
5256,
270,
1435,
288,
3639,
3643,
4820,
18,
6923,
31458,
82,
5256,
270,
19459,
64,
82,
15392,
64,
82,
8863,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
... |
public static Message createTestDataNotFoundAck(long id) { | public static final Message createTestDataNotFoundAck(long id) { | public static Message createTestDataNotFoundAck(long id) { Message msg = new Message(testDataNotFoundAck); msg.set(UID, id); return msg; } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/d69dceaa72feee5ece14b8de951841aa9b614188/DMT.java/clean/src/freenet/io/comm/DMT.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
2350,
752,
4709,
751,
2768,
11931,
12,
5748,
612,
13,
288,
3639,
2350,
1234,
273,
394,
2350,
12,
3813,
751,
2768,
11931,
1769,
3639,
1234,
18,
542,
12,
3060,
16,
612,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
2350,
752,
4709,
751,
2768,
11931,
12,
5748,
612,
13,
288,
3639,
2350,
1234,
273,
394,
2350,
12,
3813,
751,
2768,
11931,
1769,
3639,
1234,
18,
542,
12,
3060,
16,
612,
17... |
return getLongValue() >= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); | return getLongValue() >= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); | public RubyBoolean op_ge(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.m_newFloat(getRuby(), getDoubleValue()).op_ge(other); } else { return getLongValue() >= other.getLongValue() ? getRuby().getTrue() : getRuby().getFalse(); } } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/962ce6ffe87d8c8388ef1c922b056aea9b6210db/RubyFixnum.java/clean/org/jruby/RubyFixnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
1061,
67,
908,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
81,
67,
2704,
4723,
12,
588,
54,
1034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5507,
1061,
67,
908,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
81,
67,
2704,
4723,
12,
588,
54,
1034... |
public SimpleServer(int port) { this.port = port; | public SimpleServer() { this.port = 8008; | public SimpleServer(int port) { this.port = port; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/3293371636bc8e4ff5784d3546ea7244dcd18d20/SimpleServer.java/buggy/modules/integration/src/org/apache/axis2/soap12testing/server/SimpleServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
2081,
12,
474,
1756,
13,
288,
3639,
333,
18,
655,
273,
1756,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
2081,
12,
474,
1756,
13,
288,
3639,
333,
18,
655,
273,
1756,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
case M_OP_POW: | case FixnumDefinition.OP_POW: | public IRubyObject callIndexed(int index, IRubyObject[] args) { switch (index) { case M_TO_F: return to_f(); case M_TO_S: return to_s(); case M_OP_LSHIFT: return op_lshift(args[0]); case M_OP_RSHIFT: return op_rshift(args[0]); case M_OP_PLUS: return op_plus(args[0]); case M_OP_MINUS: return op_minus(args[0]); case M_OP_MUL: return op_mul(args[0]); case M_OP_DIV: return op_div(args[0]); case M_OP_MOD: return op_mod(args[0]); case M_OP_POW: return op_pow(args[0]); case M_EQUAL: return equal(args[0]); case M_OP_CMP: return op_cmp(args[0]); case M_OP_GT: return op_gt(args[0]); case M_OP_GE: return op_ge(args[0]); case M_OP_LT: return op_lt(args[0]); case M_OP_LE: return op_le(args[0]); case M_OP_AND: return op_and(args[0]); case M_SIZE: return size(); case M_HASH: return hash(); case M_ID2NAME: return id2name(); case M_INVERT: return invert(); case M_ID: return id(); } return super.callIndexed(index, args); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/5f6bd2ce57ff6ed96fea5760d028882d8af6113c/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
745,
15034,
12,
474,
770,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
1620,
261,
1615,
13,
288,
3639,
648,
490,
67,
4296,
67,
42,
30,
5411,
327,
358,
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,
15908,
10340,
921,
745,
15034,
12,
474,
770,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
1620,
261,
1615,
13,
288,
3639,
648,
490,
67,
4296,
67,
42,
30,
5411,
327,
358,
67,
... |
||(prefix.equals("xmlns") && !namespaceURI.equals("http: || qualifiedName.equals("xmlns")) { | || (prefix.equals("xmlns") && !namespaceURI.equals("http: || (qualifiedName.equals("xmlns") && !namespaceURI.equals("http: | protected AttrNSImpl(DocumentImpl ownerDocument, String namespaceURI, String qualifiedName) { // treat an empty string as a null if (namespaceURI != null && !namespaceURI.equals("")) { this.namespaceURI = namespaceURI; } else { this.namespaceURI = null; } if (!DocumentImpl.isXMLName(qualifiedName)) { throw new DOMExceptionImpl(DOMException.INVALID_CHARACTER_ERR, "INVALID_CHARACTER_ERR"); } this.ownerDocument = ownerDocument; this.name = qualifiedName; int index = qualifiedName.indexOf(':'); if (index < 0) { this.prefix = null; this.localName = qualifiedName; } else { this.prefix = qualifiedName.substring(0, index); this.localName = qualifiedName.substring(index+1); } if (this.namespaceURI == null) { if (prefix != null) { if (prefix.equals("xml")) { this.namespaceURI = "http://www.w3.org/XML/1998/namespace"; } else if (prefix.equals("xmlns")) { this.namespaceURI = "http://www.w3.org/2000/xmlns/"; } } } else { if ((prefix != null && ((prefix.equals("xml") && !namespaceURI.equals("http://www.w3.org/XML/1998/namespace")) ||(prefix.equals("xmlns") && !namespaceURI.equals("http://www.w3.org/2000/xmlns/")))) || qualifiedName.equals("xmlns")) { throw new DOMExceptionImpl(DOMException.NAMESPACE_ERR, "NAMESPACE_ERR"); } } syncData = true; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/06643f2e53b223055c9c0f2b004111a10e44d7e7/AttrNSImpl.java/buggy/src/org/apache/xerces/dom/AttrNSImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
11289,
3156,
2828,
12,
2519,
2828,
19701,
16,
4697,
514,
19421,
16,
4697,
514,
24133,
13,
288,
202,
759,
10116,
392,
1008,
533,
487,
279,
446,
202,
430,
261,
4937,
3098,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
11289,
3156,
2828,
12,
2519,
2828,
19701,
16,
4697,
514,
19421,
16,
4697,
514,
24133,
13,
288,
202,
759,
10116,
392,
1008,
533,
487,
279,
446,
202,
430,
261,
4937,
3098,
480,
446,
... |
if (o == this) return true; | if (o == this) { return true; } | public boolean equals(Object o) { if (!(o instanceof MarkerQueryResult)) return false; if (o == this) return true; MarkerQueryResult mqr = (MarkerQueryResult) o; if (values.length != mqr.values.length) return false; for (int i = 0; i < values.length; i++) { if (!(values[i].equals(mqr.values[i]))) return false; } return true; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerQueryResult.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQueryResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
16051,
12,
83,
1276,
14742,
23583,
3719,
5411,
327,
629,
31,
3639,
309,
261,
83,
422,
333,
13,
5411,
327,
638,
31,
3639,
14742,
23583... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1606,
12,
921,
320,
13,
288,
3639,
309,
16051,
12,
83,
1276,
14742,
23583,
3719,
5411,
327,
629,
31,
3639,
309,
261,
83,
422,
333,
13,
5411,
327,
638,
31,
3639,
14742,
23583... |
final String message = REZ.getString( "not-absolute-file-name.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider.local/not-absolute-file-name.error", uri ); | protected String extractRootPrefix( final String uri, final StringBuffer name ) throws FileSystemException { // TODO - this class isn't generic at all. Need to fix this // Looking for <sep> if ( name.length() == 0 || name.charAt( 0 ) != '/' ) { final String message = REZ.getString( "not-absolute-file-name.error", uri ); throw new FileSystemException( message ); } return "/"; } | 50122 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50122/4ee826b62afd102046c4f84d8f2a82bb7210454d/GenericFileNameParser.java/buggy/src/java/org/apache/commons/vfs/provider/local/GenericFileNameParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
2608,
2375,
2244,
12,
727,
514,
2003,
16,
4766,
3639,
727,
6674,
508,
262,
3639,
1216,
10931,
503,
565,
288,
3639,
368,
2660,
300,
333,
667,
5177,
1404,
5210,
622,
777,
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,
4750,
514,
2608,
2375,
2244,
12,
727,
514,
2003,
16,
4766,
3639,
727,
6674,
508,
262,
3639,
1216,
10931,
503,
565,
288,
3639,
368,
2660,
300,
333,
667,
5177,
1404,
5210,
622,
777,
18,
2... |
private void returnExpr() | protected void returnExpr() | private void returnExpr() { Expr expr = (Expr) pop(); popFrame(); push( expr ); } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/b994796e33e31a9ffb714689024e027dbab4bbd5/JaxenHandler.java/buggy/src/java/main/org/jaxen/JaxenHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
327,
4742,
1435,
565,
288,
3639,
8074,
3065,
273,
261,
4742,
13,
1843,
5621,
3639,
1843,
3219,
5621,
3639,
1817,
12,
3065,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
327,
4742,
1435,
565,
288,
3639,
8074,
3065,
273,
261,
4742,
13,
1843,
5621,
3639,
1843,
3219,
5621,
3639,
1817,
12,
3065,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
return ""; | return ""; | public String getInitializer() { // TODO Auto-generated method stub return ""; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/6caa13a5b115851feae4e30a71898b7083f7e02f/BinaryVariable.java/clean/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryVariable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
14729,
1435,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
1408,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
14729,
1435,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
1408,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void initValueStoresFor(XSElementDecl eDecl) throws XNIException { // initialize value stores for unique fields IdentityConstraint [] icArray = eDecl.fIDConstraints; int icCount = eDecl.fIDCPos; for (int i = 0; i < icCount; i++) { switch (icArray[i].getCategory()) { case (IdentityConstraint.IC_UNIQUE): // initialize value stores for unique fields UniqueOrKey unique = (UniqueOrKey)icArray[i]; UniqueValueStore uniqueValueStore = (UniqueValueStore)fIdentityConstraint2ValueStoreMap.get(unique); if (uniqueValueStore != null) { // NOTE: If already initialized, don't need to // do it again. -Ac continue; } uniqueValueStore = new UniqueValueStore(unique); fValueStores.addElement(uniqueValueStore); fIdentityConstraint2ValueStoreMap.put(unique, uniqueValueStore); break; case (IdentityConstraint.IC_KEY): // initialize value stores for key fields UniqueOrKey key = (UniqueOrKey)icArray[i]; KeyValueStore keyValueStore = (KeyValueStore)fIdentityConstraint2ValueStoreMap.get(key); if (keyValueStore != null) { // NOTE: If already initialized, don't need to // do it again. -Ac continue; } keyValueStore = new KeyValueStore(key); fValueStores.addElement(keyValueStore); fIdentityConstraint2ValueStoreMap.put(key, keyValueStore); break; case (IdentityConstraint.IC_KEYREF): // initialize value stores for key reference fields KeyRef keyRef = (KeyRef)icArray[i]; KeyRefValueStore keyRefValueStore = (KeyRefValueStore)fIdentityConstraint2ValueStoreMap.get(keyRef); if (keyRefValueStore != null) { // NOTE: If already initialized, don't need to // do it again. -Ac continue; } keyRefValueStore = new KeyRefValueStore(keyRef, null); fValueStores.addElement(keyRefValueStore); fIdentityConstraint2ValueStoreMap.put(keyRef, keyRefValueStore); break; } } } // initValueStoresFor(XSElementDecl) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/e7f2f252798544eb7d3376069086c4ab2423aead/XMLSchemaValidator.java/clean/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1208,
620,
13125,
1290,
12,
60,
55,
1046,
3456,
425,
3456,
13,
3639,
1216,
1139,
50,
45,
503,
288,
5411,
368,
4046,
460,
9064,
364,
3089,
1466,
5411,
7808,
5806,
5378,
13579,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1208,
620,
13125,
1290,
12,
60,
55,
1046,
3456,
425,
3456,
13,
3639,
1216,
1139,
50,
45,
503,
288,
5411,
368,
4046,
460,
9064,
364,
3089,
1466,
5411,
7808,
5806,
5378,
13579,
... | ||
indexIds[i] = ((Integer) deleted.indexIds.get(i)).intValue(); | indexIds[i] = deleted.indexIds.get(i); | private void commitCache(MailboxChange change) { try { // committing changes, so notify any listeners if (!mListeners.isEmpty() && change.mDirty != null && change.mDirty.hasNotifications()) for (Session session : new ArrayList<Session>(mListeners)) session.notifyPendingChanges(change.mDirty); // don't care about committed changes to external items MailItem.PendingDelete deleted = null; for (Iterator it = change.mOtherDirtyStuff.iterator(); it.hasNext(); ) { Object obj = it.next(); if (obj instanceof MailItem.PendingDelete) deleted = ((MailItem.PendingDelete) obj).add(deleted); } // the mailbox data has changed, so commit the changes if (change.sync != null) mData.trackSync = change.sync.booleanValue(); if (change.size != MailboxChange.NO_CHANGE) mData.size = change.size; if (change.itemId != MailboxChange.NO_CHANGE) mData.lastItemId = change.itemId; if (change.contacts != MailboxChange.NO_CHANGE) mData.contacts = change.contacts; if (change.changeId != MailboxChange.NO_CHANGE && change.changeId > mData.lastChangeId) { mData.lastChangeId = change.changeId; mData.lastChangeDate = change.timestamp; } if (change.config != null) mData.config = change.config; // delete any index entries associated with items deleted from db if (deleted != null && deleted.indexIds != null && deleted.indexIds.size() > 0) try { int[] indexIds = new int[deleted.indexIds.size()]; for (int i = 0; i < deleted.indexIds.size(); i++) indexIds[i] = ((Integer) deleted.indexIds.get(i)).intValue(); int[] deletedIds = getMailboxIndex().deleteDocuments(indexIds); if (deletedIds != indexIds) ZimbraLog.mailbox.warn("could not delete all index entries for items: " + deleted.itemIds); } catch (IOException e) { ZimbraLog.mailbox.warn("ignoring error while deleting index entries for items: " + deleted.itemIds, e); } catch (ServiceException e) { ZimbraLog.mailbox.warn("ignoring error while getting index to delete entries for items: " + deleted.itemIds, e); } // delete any blobs associated with items deleted from db/index StoreManager sm = StoreManager.getInstance(); if (deleted != null && deleted.blobs != null) for (Iterator it = deleted.blobs.iterator(); it.hasNext(); ) { MailboxBlob blob = (MailboxBlob) it.next(); try { sm.delete(blob); } catch (IOException e) { ZimbraLog.mailbox.warn("could not delete blob " + blob.getPath() + " during commit"); } } } catch (RuntimeException e) { ZimbraLog.mailbox.error("ignoring error during cache commit", e); } finally { // keep our MailItem cache at a reasonable size trimItemCache(); // get ready for the next change change.reset(); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/2bbde8abd5b4d0e19ab5d88cc03eee32ba76e4ee/Mailbox.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/Mailbox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3294,
1649,
12,
30239,
3043,
2549,
13,
288,
3639,
775,
288,
5411,
368,
3294,
1787,
3478,
16,
1427,
5066,
1281,
4679,
5411,
309,
16051,
81,
5583,
18,
291,
1921,
1435,
597,
2549,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3294,
1649,
12,
30239,
3043,
2549,
13,
288,
3639,
775,
288,
5411,
368,
3294,
1787,
3478,
16,
1427,
5066,
1281,
4679,
5411,
309,
16051,
81,
5583,
18,
291,
1921,
1435,
597,
2549,... |
if (titleImageLargest) messageLabelData.bottom = new FormAttachment(titleImage, 0, | if (titleImageLargest) { messageLabelData.bottom = new FormAttachment(titleImage, 0, | private void setLayoutsForNormalMessage(int verticalSpacing, int horizontalSpacing) { FormData messageImageData = new FormData(); messageImageData.top = new FormAttachment(titleLabel, verticalSpacing); messageImageData.left = new FormAttachment(0, H_GAP_IMAGE); messageImageLabel.setLayoutData(messageImageData); FormData messageLabelData = new FormData(); messageLabelData.top = new FormAttachment(titleLabel, verticalSpacing); messageLabelData.right = new FormAttachment(titleImage); messageLabelData.left = new FormAttachment(messageImageLabel, horizontalSpacing); messageLabelData.height = messageLabelHeight; if (titleImageLargest) messageLabelData.bottom = new FormAttachment(titleImage, 0, SWT.BOTTOM); messageLabel.setLayoutData(messageLabelData); FormData fillerData = new FormData(); fillerData.left = new FormAttachment(0, horizontalSpacing); fillerData.top = new FormAttachment(messageImageLabel, 0); fillerData.bottom = new FormAttachment(messageLabel, 0, SWT.BOTTOM); bottomFillerLabel.setLayoutData(fillerData); FormData data = new FormData(); data.top = new FormAttachment(messageImageLabel, 0, SWT.TOP); data.left = new FormAttachment(0, 0); data.bottom = new FormAttachment(messageImageLabel, 0, SWT.BOTTOM); data.right = new FormAttachment(messageImageLabel, 0); leftFillerLabel.setLayoutData(data); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/TitleAreaDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
18479,
28388,
5506,
1079,
12,
474,
9768,
18006,
16,
5411,
509,
10300,
18006,
13,
288,
3639,
2748,
751,
883,
2040,
751,
273,
394,
2748,
751,
5621,
3639,
883,
2040,
751,
18,
3669... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18479,
28388,
5506,
1079,
12,
474,
9768,
18006,
16,
5411,
509,
10300,
18006,
13,
288,
3639,
2748,
751,
883,
2040,
751,
273,
394,
2748,
751,
5621,
3639,
883,
2040,
751,
18,
3669... |
System.out.println("2) "+((TextImpl)textNode).getReadOnly()); | public void ignorableWhitespace(XMLString text) throws XNIException { if (!fIncludeIgnorableWhitespace) { return; } if (!fDeferNodeExpansion) { /* REVISIT: This doesn't make sense - CDATASections are never ignorable whitespace - ALH!!! if (fInCDATASection) { CDATASection cdataSection = (CDATASection)fCurrentNode; cdataSection.appendData(text.toString()); return; } */ Node child = fCurrentNode.getLastChild(); if (child != null && child.getNodeType() == Node.TEXT_NODE) { Text textNode = (Text)child; textNode.appendData(text.toString()); } else { Text textNode = fDocument.createTextNode(text.toString()); System.out.println("2) "+((TextImpl)textNode).getReadOnly()); if (fDocumentImpl != null) { TextImpl textNodeImpl = (TextImpl)textNode; textNodeImpl.setIgnorableWhitespace(true); } fCurrentNode.appendChild(textNode); } } else { // The Text normalization is taken care of within the DOM in the // deferred case. int txt = fDeferredDocumentImpl. createDeferredTextNode(text.toString(), true); fDeferredDocumentImpl.appendChild(fCurrentNodeIndex, txt); } } // ignorableWhitespace(XMLString) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/d5b61a43c8c737b7d37e8a1d1839aa58a425178a/AbstractDOMParser.java/buggy/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9750,
15514,
9431,
12,
4201,
780,
977,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
16051,
74,
8752,
45,
1600,
15514,
9431,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
1605... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9750,
15514,
9431,
12,
4201,
780,
977,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
16051,
74,
8752,
45,
1600,
15514,
9431,
13,
288,
5411,
327,
31,
3639,
289,
3639,
309,
1605... | |
this.min = min; int magic = dis.readInt(); if(magic != SERIAL_MAGIC) throw new IOException("Invalid magic"); int ver = dis.readInt(); if(ver != 1) throw new IOException("Invalid version "+ver); int mrep = dis.readInt(); | reports = 0; currentValue = defaultValue; | BootstrappingDecayingRunningAverage(DataInputStream dis, double min, double max, int maxReports) throws IOException { this.max = max; this.min = min; int magic = dis.readInt(); if(magic != SERIAL_MAGIC) throw new IOException("Invalid magic"); int ver = dis.readInt(); if(ver != 1) throw new IOException("Invalid version "+ver); int mrep = dis.readInt(); this.maxReports = maxReports; if(maxReports != mrep) Logger.normal(this, "Changed maxReports: now "+maxReports+ ", was "+mrep); reports = dis.readLong(); if(reports < 0) throw new IOException("Negative reports"); currentValue = dis.readDouble(); if((currentValue < min) || (currentValue > max)) throw new IOException("Value out of range: "+currentValue); } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/463e1c2814ef80eab9cbef79e58a1594fa8ec102/BootstrappingDecayingRunningAverage.java/buggy/src/freenet/support/math/BootstrappingDecayingRunningAverage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
11830,
1382,
1799,
528,
310,
7051,
17115,
12,
751,
4348,
1015,
16,
1645,
1131,
16,
5411,
1645,
943,
16,
509,
943,
18631,
13,
1216,
1860,
288,
3639,
333,
18,
1896,
273,
943,
31,
3639,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
11830,
1382,
1799,
528,
310,
7051,
17115,
12,
751,
4348,
1015,
16,
1645,
1131,
16,
5411,
1645,
943,
16,
509,
943,
18631,
13,
1216,
1860,
288,
3639,
333,
18,
1896,
273,
943,
31,
3639,
33... |
if (tmpFile != null){ | if (tmpFile != null) { | protected void cleanUp() throws BuildException { try { super.cleanUp(); } finally { if (tmpFile != null){ tmpFile.delete(); tmpFile = null; } } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8af1905a98b1e04a63ab7473d64a41bfda91f15e/MMetrics.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/metamata/MMetrics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
26384,
1435,
1216,
18463,
288,
3639,
775,
288,
5411,
2240,
18,
6200,
1211,
5621,
3639,
289,
3095,
288,
5411,
309,
261,
5645,
812,
480,
446,
13,
288,
7734,
18504,
18,
3733,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
26384,
1435,
1216,
18463,
288,
3639,
775,
288,
5411,
2240,
18,
6200,
1211,
5621,
3639,
289,
3095,
288,
5411,
309,
261,
5645,
812,
480,
446,
13,
288,
7734,
18504,
18,
3733,
5621... |
static Context getContext() { | static Context getContext() { | static Context getContext() { Context cx = getCurrentContext(); if (cx == null) { throw new RuntimeException( "No Context associated with current Thread"); } return cx; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/5586a284813f024a7d52061d1ea71ae99876066e/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1772,
6474,
1435,
288,
3639,
1772,
9494,
273,
5175,
1042,
5621,
3639,
309,
261,
71,
92,
422,
446,
13,
288,
5411,
604,
394,
3235,
12,
7734,
315,
2279,
1772,
3627,
598,
783,
4884,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
760,
1772,
6474,
1435,
288,
3639,
1772,
9494,
273,
5175,
1042,
5621,
3639,
309,
261,
71,
92,
422,
446,
13,
288,
5411,
604,
394,
3235,
12,
7734,
315,
2279,
1772,
3627,
598,
783,
4884,
88... |
public org.quickfix.field.MaxShow getMaxShow() throws FieldNotFound { org.quickfix.field.MaxShow value = new org.quickfix.field.MaxShow(); | public quickfix.field.MaxShow getMaxShow() throws FieldNotFound { quickfix.field.MaxShow value = new quickfix.field.MaxShow(); | public org.quickfix.field.MaxShow getMaxShow() throws FieldNotFound { org.quickfix.field.MaxShow value = new org.quickfix.field.MaxShow(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/clean/src/java/src/quickfix/fix43/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
7288,
5706,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
460,
273,
394,
2358,
18,
19525,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
7288,
5706,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2747,
5706,
460,
273,
394,
2358,
18,
19525,
904,
... |
AbstractEditingModel editModel = createModel(document); editModel.setUnderlyingResource(res); editModel.load(); if (editModel.isLoaded()) { IModelTextChangeListener listener = createListener(document); editModel.addModelChangedListener(listener); createChange(editModel); TextEdit[] edits = listener.getTextOperations(); if (edits.length > 0) { MultiTextEdit multi = new MultiTextEdit(); multi.addChildren(edits); multi.apply(document); buffer.commit(null, true); } | IModel editModel = loadModel(document); IModelTextChangeListener listener = createListener(document); if (!editModel.isLoaded() || listener == null) return; if (editModel instanceof IModelChangeProvider) ((IModelChangeProvider)editModel).addModelChangedListener(listener); createChange(editModel); TextEdit[] edits = listener.getTextOperations(); if (edits.length > 0) { MultiTextEdit multi = new MultiTextEdit(); multi.addChildren(edits); multi.apply(document); buffer.commit(null, true); | public void run(IMarker marker) { IBaseModel model = findModelFromEditor(marker); if (model != null) { // directly modify model from open editor and save createChange(model); fOpenEditor.doSave(null); fOpenEditor = null; } else { // create text edits and apply them to textbuffer IResource res = marker.getResource(); try { ITextFileBufferManager manager = FileBuffers.getTextFileBufferManager(); manager.connect(res.getFullPath(), null); ITextFileBuffer buffer = manager.getTextFileBuffer(res.getFullPath()); if (buffer.isDirty()) buffer.commit(null, true); IDocument document = buffer.getDocument(); AbstractEditingModel editModel = createModel(document); editModel.setUnderlyingResource(res); editModel.load(); if (editModel.isLoaded()) { IModelTextChangeListener listener = createListener(document); editModel.addModelChangedListener(listener); createChange(editModel); TextEdit[] edits = listener.getTextOperations(); if (edits.length > 0) { MultiTextEdit multi = new MultiTextEdit(); multi.addChildren(edits); multi.apply(document); buffer.commit(null, true); } } } catch (CoreException e) { PDEPlugin.log(e); } catch (MalformedTreeException e) { PDEPlugin.log(e); } catch (BadLocationException e) { PDEPlugin.log(e); } finally { try { FileBuffers.getTextFileBufferManager().disconnect(res.getFullPath(), null); } catch (CoreException e) { PDEPlugin.log(e); } } } } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/05cee584bd7901bec978aa29b5ce0ef2346a4913/AbstractPDEMarkerResolution.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/correction/AbstractPDEMarkerResolution.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
3445,
1313,
264,
5373,
13,
288,
202,
202,
45,
2171,
1488,
938,
273,
1104,
1488,
1265,
6946,
12,
11145,
1769,
9506,
202,
430,
261,
2284,
480,
446,
13,
288,
1082,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
3445,
1313,
264,
5373,
13,
288,
202,
202,
45,
2171,
1488,
938,
273,
1104,
1488,
1265,
6946,
12,
11145,
1769,
9506,
202,
430,
261,
2284,
480,
446,
13,
288,
1082,... |
public void setProperty(final String propertyName, String propertyValue, boolean usePropertySetter) { if (!myPropertySettersInProgress.contains(propertyName) && !myModel.isLoading() && usePropertySetter) { INodePropertySetter setter = ModelConstraintsManager.getInstance().getNodePropertySetter(this, propertyName); if (setter != null) { myPropertySettersInProgress.add(propertyName); try { setter.execPropertySet(this, propertyName, propertyValue, GlobalScope.getInstance()); return; } finally { myPropertySettersInProgress.remove(propertyName); } } } NodeSecurityManager.getInstance().checkPropertyAvailable(this, propertyName, true); final String oldValue = myProperties.get(propertyName); if (propertyValue == null) { myProperties.remove(propertyName); } else { myProperties.put(propertyName, propertyValue); } if (!getModel().isLoading()) { UndoManager.instance().undoableActionPerformed(new IUndoableAction() { public void undo() throws UnexpectedUndoException { setProperty(propertyName, oldValue); } }); } boolean addedOrRemoved = false; boolean isRemoved = false; if (isEmptyPropertyValue(oldValue)) { addedOrRemoved = true; isRemoved = false; } if (isEmptyPropertyValue(propertyValue)) { addedOrRemoved = true; isRemoved = true; } getModel().firePropertyChangedEvent(this, propertyName, oldValue, propertyValue, addedOrRemoved, isRemoved); | public void setProperty(@NotNull final String propertyName, String propertyValue) { setProperty(propertyName, propertyValue, true); | public void setProperty(final String propertyName, String propertyValue, boolean usePropertySetter) { if (!myPropertySettersInProgress.contains(propertyName) && !myModel.isLoading() && usePropertySetter) { INodePropertySetter setter = ModelConstraintsManager.getInstance().getNodePropertySetter(this, propertyName); if (setter != null) { myPropertySettersInProgress.add(propertyName); try { setter.execPropertySet(this, propertyName, propertyValue, GlobalScope.getInstance()); return; } finally { myPropertySettersInProgress.remove(propertyName); } } } NodeSecurityManager.getInstance().checkPropertyAvailable(this, propertyName, true); final String oldValue = myProperties.get(propertyName); if (propertyValue == null) { myProperties.remove(propertyName); } else { myProperties.put(propertyName, propertyValue); } if (!getModel().isLoading()) { UndoManager.instance().undoableActionPerformed(new IUndoableAction() { public void undo() throws UnexpectedUndoException { setProperty(propertyName, oldValue); } }); } boolean addedOrRemoved = false; boolean isRemoved = false; if (isEmptyPropertyValue(oldValue)) { addedOrRemoved = true; isRemoved = false; } if (isEmptyPropertyValue(propertyValue)) { addedOrRemoved = true; isRemoved = true; } getModel().firePropertyChangedEvent(this, propertyName, oldValue, propertyValue, addedOrRemoved, isRemoved); } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/02e9784903cc261d54273c0f1696297b96fb691a/SNode.java/buggy/source/jetbrains/mps/smodel/SNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7486,
12,
6385,
514,
5470,
16,
514,
12337,
16,
1250,
999,
1396,
8465,
13,
288,
565,
309,
16051,
4811,
1396,
694,
5432,
13434,
18,
12298,
12,
4468,
461,
13,
597,
401,
4811,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7486,
12,
6385,
514,
5470,
16,
514,
12337,
16,
1250,
999,
1396,
8465,
13,
288,
565,
309,
16051,
4811,
1396,
694,
5432,
13434,
18,
12298,
12,
4468,
461,
13,
597,
401,
4811,
14... |
{ return prepareStatement(sql, java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY); } | { return prepareStatement(sql, java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY); } | public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException { return prepareStatement(sql, java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_READ_ONLY); } | 49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
29325,
21406,
12,
780,
1847,
13,
1216,
6483,
202,
95,
202,
202,
2463,
21406,
12,
4669,
16,
2252,
18,
4669,
18,
13198,
18,
2399,
67,
2312,
14555,
67,
706,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
2252,
18,
4669,
18,
29325,
21406,
12,
780,
1847,
13,
1216,
6483,
202,
95,
202,
202,
2463,
21406,
12,
4669,
16,
2252,
18,
4669,
18,
13198,
18,
2399,
67,
2312,
14555,
67,
706,
... |
return b.getValue(SymphonieWizardConstants.EWIZARD_FORMAT); | return b.getValue(EWIZARD_FORMAT); | public String getDescription() { return b.getValue(SymphonieWizardConstants.EWIZARD_FORMAT); } | 12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/1bc787156ed79daad2f1612c3ecc7eb5d3b06938/WizardPanelFactory.java/clean/dupratcated/src/fr/umlv/symphonie/view/WizardPanelFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
514,
11056,
1435,
288,
3639,
327,
324,
18,
24805,
12,
7245,
6867,
8085,
67,
7254,
1769,
1377,
289,
2,
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,
4202,
1071,
514,
11056,
1435,
288,
3639,
327,
324,
18,
24805,
12,
7245,
6867,
8085,
67,
7254,
1769,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} else if (time < time_other) { | } else if (millis < millis_other || (millis == millis_other && usec < 0)) { | public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; double time_other = ((RubyNumeric) other).getDoubleValue(); if (time > time_other) { return RubyFixnum.one(getRuntime()); } else if (time < time_other) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime()); } long millis_other = RubyNumeric.num2long(other) * 1000; if (millis > millis_other || (millis == millis_other && usec > 0)) { return RubyFixnum.one(getRuntime()); } else if (millis < millis_other || (millis == millis_other && usec < 0)) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime()); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/buggy/src/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
18,
291,
12616,
10756,
288,
540,
202,
2463,
1308,
31,
3639,
289,
7734,
309,
261,
3011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15908,
10340,
921,
1061,
67,
9625,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
18,
291,
12616,
10756,
288,
540,
202,
2463,
1308,
31,
3639,
289,
7734,
309,
261,
3011,
... |
fCurrentCM = ((XSComplexTypeDecl)fCurrentType).getContentModel(); | fCurrentCM = ((XSComplexTypeDecl)fCurrentType).getContentModel(fCMBuilder); | void handleStartElement(QName element, XMLAttributes attributes) { // whether to do validatoin // REVISIT: consider DynamicValidation if (fElementDepth == -1) { fDoValidation = fValidation; } // if we are in the content of "skip", then just skip this element if (fSkipValidationDepth >= 0) { fElementDepth++; return; } // if it's not the root element, we push the current states in the stacks if (fElementDepth != -1) { ensureStackCapacity(); fChildCountStack[fElementDepth] = fChildCount+1; fChildCount = 0; fElemDeclStack[fElementDepth] = fCurrentElemDecl; fTypeStack[fElementDepth] = fCurrentType; fCMStack[fElementDepth] = fCurrentCM; fBufferStack[fElementDepth] = fBuffer; } // get xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes, // parser them to get the grammars // REVISIT: we'll defer this operation until there is a reference to // a component from that namespace String sLocation = attributes.getValue(URI_XSI, XSI_SCHEMALOCACTION); String nsLocation = attributes.getValue(URI_XSI, XSI_NONAMESPACESCHEMALOCACTION); if (sLocation != null) { StringTokenizer t = new StringTokenizer(sLocation, " \n\t\r"); String namespace, location; while (t.hasMoreTokens()) { namespace = t.nextToken (); if (!t.hasMoreTokens()) { // REVISIT: report error for wrong number of uris break; } location = t.nextToken(); if (fGrammarResolver.getGrammar(namespace) == null) fSchemaHandler.parseSchema(namespace, location); } } if (nsLocation != null) { if (fGrammarResolver.getGrammar(fSchemaHandler.EMPTY_STRING) == null) fSchemaHandler.parseSchema(fSchemaHandler.EMPTY_STRING, nsLocation); } // get the element decl for this element fCurrentElemDecl = null; XSWildcardDecl wildcard = null; // if there is a content model, then get the decl from that if (fCurrentCM != null) { Object decl = fCurrentCM.oneTransition(element, fCurrCMState); // it could be an element decl or a wildcard decl // REVISIT: is there a more effecient way than 'instanceof' if (decl instanceof XSElementDecl) { fCurrentElemDecl = (XSElementDecl)decl; } else if (decl instanceof XSWildcardDecl) { wildcard = (XSWildcardDecl)decl; } else if (fCurrCMState[0] == XSCMValidator.FIRST_ERROR && fDoValidation) { // REVISIT: report error: invalid content XSComplexTypeDecl ctype = (XSComplexTypeDecl)fCurrentType; reportGenericSchemaError("invlid content starting with element '"+element.rawname+"', the content must match ("+ctype.fParticle.toString()+")"); fCurrCMState[0] = XSCMValidator.SUBSEQUENT_ERROR; } } // save the current content model state in the stack if (fElementDepth != -1) fCMStateStack[fElementDepth] = fCurrCMState; // increase the element depth after we've saved all states for the // parent element fElementDepth++; // if the wildcard is skip, then return if (wildcard != null && wildcard.fProcessContents == XSWildcardDecl.WILDCARD_SKIP) { fSkipValidationDepth = fElementDepth; return; } // try again to get the element decl if (fCurrentElemDecl == null) { // REVISIT: null or "" SchemaGrammar sGrammar = fGrammarResolver.getGrammar(element.uri == null ? "" : element.uri); if (sGrammar != null) fCurrentElemDecl = sGrammar.getGlobalElementDecl(element.localpart); } // get the type for the current element fCurrentType = null; if (fCurrentElemDecl != null) { // Check whether this element is abstract. If so, an error if (fCurrentElemDecl.isAbstract()) { reportGenericSchemaError("A member of abstract element " + element.rawname + "'s substitution group must be specified"); } // then get the type fCurrentType = fCurrentElemDecl.fType; } // get type from xsi:type String xsiType = attributes.getValue(URI_XSI, XSI_TYPE); if (xsiType != null) { getAndCheckXsiType(element, xsiType); } else if (fCurrentType != null) { // if no xsi:type is specified, check whether the type of // the element is abstract if ((fCurrentType.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { XSComplexTypeDecl ctype = (XSComplexTypeDecl)fCurrentType; if (ctype.isAbstractType()) { reportGenericSchemaError("Element " + element.rawname + " is declared with a type that is abstract. Use xsi:type to specify a non-abstract type"); } } } // if the element decl is not found if (fCurrentType == null && fDoValidation) { // if this is the root element, or wildcard = strict, report error if (fElementDepth == 0) { // REVISIT: report error, because it's root element reportGenericSchemaError("can't find decl for root element '"+element.rawname+"'"); } else if (wildcard != null && wildcard.fProcessContents == XSWildcardDecl.WILDCARD_STRICT) { // REVISIT: report error, because wilcard = strict reportGenericSchemaError("can't find decl for strict wildcard '"+element.rawname+"'"); } // no element decl found, have to skip this element fSkipValidationDepth = fElementDepth; return; } // then try to get the content model fCurrentCM = null; if (fCurrentType != null) { if ((fCurrentType.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { fCurrentCM = ((XSComplexTypeDecl)fCurrentType).getContentModel(); } } // and get the initial content model state fCurrCMState = null; if (fCurrentCM != null) fCurrCMState = fCurrentCM.startContentModel(); // and the buffer to hold the value of the element fBuffer = new StringBuffer(); // get information about xsi:nil String xsiNil = attributes.getValue(URI_XSI, XSI_NIL); if (xsiNil != null) getXsiNil(element, xsiNil); // now validate everything related with the attributes // first, get the attribute group XSAttributeGroupDecl attrGrp = null; if ((fCurrentType.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { XSComplexTypeDecl ctype = (XSComplexTypeDecl)fCurrentType; attrGrp = ctype.fAttrGrp; } processAttributes(element, attributes, attrGrp); } // handleStartElement(QName,XMLAttributes,boolean) | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/97c30ef160e16e9cf1fee7cbf05c052dc7902097/SchemaValidator.java/clean/src/org/apache/xerces/impl/v2/SchemaValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
1685,
1046,
12,
13688,
930,
16,
3167,
2498,
1677,
13,
288,
3639,
368,
2856,
358,
741,
923,
270,
885,
3639,
368,
2438,
26780,
1285,
30,
5260,
12208,
4354,
3639,
309,
261,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1685,
1046,
12,
13688,
930,
16,
3167,
2498,
1677,
13,
288,
3639,
368,
2856,
358,
741,
923,
270,
885,
3639,
368,
2438,
26780,
1285,
30,
5260,
12208,
4354,
3639,
309,
261,
74,
... |
} | } | protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) { // fill the parameter values in the get/set methods fillParamValues(request); // set the dialog type setParamDialogtype(DIALOG_TYPE); // set the action for the JSP switch if (DIALOG_SAVE_EDIT.equals(getParamAction())) { setAction(ACTION_SAVE_EDIT); } else if (REPORT_UPDATE.equals(getParamAction())) { setAction(ACTION_REPORT_UPDATE); } else if (REPORT_BEGIN.equals(getParamAction())) { setAction(ACTION_REPORT_BEGIN); } else if (REPORT_END.equals(getParamAction())) { setAction(ACTION_REPORT_END); } else if (DIALOG_CANCEL.equals(getParamAction())) { setAction(ACTION_CANCEL); } else { // set the default action setAction(ACTION_DEFAULT); setParamTitle(key("label.admin.history.clear")); } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/41dcaa9d1a1b8f8fa6c1dd9a04fc8532eb83ebb7/CmsAdminHistoryClear.java/buggy/src-modules/org/opencms/workplace/tools/history/CmsAdminHistoryClear.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
16514,
691,
1972,
12,
4747,
16514,
2628,
1947,
16,
9984,
590,
13,
288,
3639,
368,
3636,
326,
1569,
924,
316,
326,
336,
19,
542,
2590,
3639,
3636,
786,
1972,
12,
2293,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
16514,
691,
1972,
12,
4747,
16514,
2628,
1947,
16,
9984,
590,
13,
288,
3639,
368,
3636,
326,
1569,
924,
316,
326,
336,
19,
542,
2590,
3639,
3636,
786,
1972,
12,
2293,
1... |
if(variableIsPassedAsMethodArgument(variable, context)){ return true; } return false; | return variableIsPassedAsMethodArgument(variable, context); | private static boolean collectionContentsAreUpdated(PsiVariable variable, PsiElement context){ if(collectionUpdateCalled(variable, context)){ return true; } final PsiExpression initializer = variable.getInitializer(); if(initializer != null && !isEmptyCollectionInitializer(initializer)){ return true; } if(variableIsAssigned(variable, context)){ return true; } if(variableIsAssignedFrom(variable, context)){ return true; } if(variableIsPassedAsMethodArgument(variable, context)){ return true; } return false; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/d76d0bedf8df35d604b7174a9135167671631ec9/MismatchedCollectionQueryUpdateInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/MismatchedCollectionQueryUpdateInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
1849,
6323,
4704,
7381,
12,
52,
7722,
3092,
2190,
16,
4766,
13491,
453,
7722,
1046,
819,
15329,
3639,
309,
12,
5548,
1891,
8185,
12,
6105,
16,
819,
3719,
95,
5411,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
1849,
6323,
4704,
7381,
12,
52,
7722,
3092,
2190,
16,
4766,
13491,
453,
7722,
1046,
819,
15329,
3639,
309,
12,
5548,
1891,
8185,
12,
6105,
16,
819,
3719,
95,
5411,
327,
... |
private void populateFrom(CLDRDBSource src, CheckCLDR checkCldr, CLDRFile engFile) { XPathParts xpp = new XPathParts(null,null); System.out.println("[] initting from pod " + locale + " with prefix " + xpathPrefix); CLDRFile aFile = new CLDRFile(src, true); Map options = new TreeMap(); XPathParts pathParts = new XPathParts(null, null); XPathParts fullPathParts = new XPathParts(null, null);/* checkCldr.check(path, fullPath, value, pathParts, fullPathParts, checkCldrResult); for (Iterator it3 = checkCldrResult.iterator(); it3.hasNext();) { CheckCLDR.CheckStatus status = (CheckCLDR.CheckStatus) it3.next(); if (!status.getType().equals(status.exampleType)) { ctx.println(status.toString() + "\t" + value + "\t" + fullPath);*/ List checkCldrResult = new ArrayList(); for(Iterator it = aFile.iterator(xpathPrefix);it.hasNext();) { String xpath = (String)it.next(); if(-1!=xpath.indexOf("001")) { System.err.println("001:: " + xpath + aFile.getSourceLocaleID(xpath));// if(aFile.getSourceLocaleID(xpath).equals("code-fallback")) {// throw new InternalError("No err!");// } } String type = src.xpt.typeFromPathToTinyXpath(xpath, xpp); boolean mixedType = false; if(type == null) { type = xpath.substring(xpathPrefix.length(),xpath.length()); mixedType = true; } String value = aFile.getStringValue(xpath); if(value == null) {// throw new InternalError("Value of " + xpath + " is null."); System.err.println("Value of " + xpath + " is null."); value = "(NOTHING)"; } String fullPath = aFile.getFullXPath(xpath);// System.out.println("* T=" + type + ", X= " + xpath); String alt = src.xpt.altFromPathToTinyXpath(xpath, xpp); xpp.clear(); xpp.initialize(xpath); String lelement = xpp.getElement(-1); /* all of these are always at the end */ String eAlt = xpp.findAttributeValue(lelement,LDMLConstants.ALT); String eDraft = xpp.findAttributeValue(lelement,LDMLConstants.DRAFT); String typeAndProposed[] = LDMLUtilities.parseAlt(alt); String altProposed = typeAndProposed[1]; String altType = typeAndProposed[0]; Pea p = getPea(type, altType); Pea superP = getPea(type); if(altProposed == null) { // just work on the supers if(superP.displayName == null) { if(xpathPrefix.startsWith("//ldml/localeDisplayNames/")) { if(mixedType == false) { superP.displayName = engFile.getStringValue(xpathPrefix+"[@type=\""+type+"\"]"); } else { superP.displayName = engFile.getStringValue(xpathPrefix); } } } if(superP.displayName == null) { superP.displayName = "'"+type+"'"; } } // If it is draft and not proposed.. make it proposed-draft if( ((eDraft!=null)&&(!eDraft.equals("false"))) && (altProposed == null) ) { altProposed = SurveyMain.PROPOSED_DRAFT; } /*srl*/ if(-1!=xpath.indexOf("ain")) { System.err.println("ain:: " + xpath + aFile.getSourceLocaleID(xpath) + " - AP:" + altProposed + " - AT: " + altType );// if(aFile.getSourceLocaleID(xpath).equals("code-fallback")) {// throw new InternalError("No err!");// } } // Inherit display names. if((superP != p) && (p.displayName == null)) { p.displayName = superP.displayName; } String sourceLocale = aFile.getSourceLocaleID(xpath); boolean isInherited = !(sourceLocale.equals(locale)); if(altProposed == null) { if(!isInherited) { superP.hasInherited=false; p.hasInherited=false; } else { p.hasInherited = true; p.inheritFrom = sourceLocale; } } else { p.hasProps = true; superP.hasProps = true; } if((checkCldr != null)&&(altProposed == null)) { checkCldr.check(xpath, fullPath, value, options, checkCldrResult); }/*srl*/ if(-1!=xpath.indexOf("ain")) { System.err.println("ain+- was have " + p.items.size() + " Items "); } if(checkCldrResult.isEmpty()) { p.addItem( value, altProposed, null); } else { p.addItem( value, altProposed, checkCldrResult); // only consider non-example tests as notable. boolean weHaveTests = false; for (Iterator it3 = checkCldrResult.iterator(); it3.hasNext();) { CheckCLDR.CheckStatus status = (CheckCLDR.CheckStatus) it3.next(); if(!status.getType().equals(status.exampleType)) { weHaveTests = true; } } if(weHaveTests) { p.hasTests = true; superP.hasTests = true; } // set the parent checkCldrResult = new ArrayList(); // can't reuse it if nonempty }/*srl*/ if(-1!=xpath.indexOf("ain")) { System.err.println("ain+: now have " + p.items.size() + " Items "); } } // aFile.close(); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/d99f45a31f02fcac5c82ee137c8dde03d6babbc5/DataPod.java/clean/tools/java/org/unicode/cldr/web/DataPod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
1265,
12,
5017,
6331,
2290,
1830,
1705,
16,
2073,
5017,
6331,
866,
39,
14796,
16,
14934,
6331,
812,
24691,
812,
13,
288,
3639,
10172,
4305,
619,
11858,
273,
394,
10172,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
1265,
12,
5017,
6331,
2290,
1830,
1705,
16,
2073,
5017,
6331,
866,
39,
14796,
16,
14934,
6331,
812,
24691,
812,
13,
288,
3639,
10172,
4305,
619,
11858,
273,
394,
10172,
4... | ||
return createDirectoryEntry( target, file, dirPerm ); | return createDirectoryEntry( target, file, dirPerm ); | public static ArchiveEntry createEntry( String target, File file, int filePerm, int dirPerm ) throws ArchiverException { if ( file.isDirectory() ) { return createDirectoryEntry( target, file, dirPerm ); } else if ( file.isFile() ) { return createFileEntry( target, file, filePerm ); } else // FIXME: handle symlinks? { throw new ArchiverException( "Neither a file nor a directory: " + file ); } } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/ArchiveEntry.java/buggy/src/main/java/org/codehaus/plexus/archiver/ArchiveEntry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
13124,
1622,
752,
1622,
12,
514,
1018,
16,
1387,
585,
16,
509,
585,
9123,
16,
509,
1577,
9123,
262,
377,
202,
15069,
16959,
1667,
503,
565,
288,
3639,
309,
261,
585,
18,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
13124,
1622,
752,
1622,
12,
514,
1018,
16,
1387,
585,
16,
509,
585,
9123,
16,
509,
1577,
9123,
262,
377,
202,
15069,
16959,
1667,
503,
565,
288,
3639,
309,
261,
585,
18,
291,... |
public org.quickfix.field.NoUnderlyings getNoUnderlyings() throws FieldNotFound { org.quickfix.field.NoUnderlyings value = new org.quickfix.field.NoUnderlyings(); | public quickfix.field.NoUnderlyings getNoUnderlyings() throws FieldNotFound { quickfix.field.NoUnderlyings value = new quickfix.field.NoUnderlyings(); | public org.quickfix.field.NoUnderlyings getNoUnderlyings() throws FieldNotFound { org.quickfix.field.NoUnderlyings value = new org.quickfix.field.NoUnderlyings(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStrikePrice.java/buggy/src/java/src/quickfix/fix44/ListStrikePrice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
14655,
715,
899,
336,
2279,
14655,
715,
899,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
14655,
715,
899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
14655,
715,
899,
336,
2279,
14655,
715,
899,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
14655,
715,
899,
... |
groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_Category, category, this)); | groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_Category, new FieldCategory(), this)); | void addDropDownContributions(IMenuManager menu) { MenuManager groupByMenu = new MenuManager(MarkerMessages.ProblemView_GroupByMenu); groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_Severity, severity, this)); groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_Category, category, this)); Iterator definedGroups = MarkerSupportRegistry.getInstance().getMarkerGroups().iterator(); while(definedGroups.hasNext()){ FieldMarkerGroup group = (FieldMarkerGroup) definedGroups.next(); groupByMenu.add(new GroupingAction(group.getDescription(),group,this)); } groupByMenu.add(new GroupingAction(MarkerMessages.ProblemView_None, null, this)); menu.add(groupByMenu); super.addDropDownContributions(menu); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5b4585003f4d28d63e431a95dcbe18c45a30bd12/ProblemView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
527,
7544,
4164,
442,
15326,
12,
3445,
2104,
1318,
3824,
13,
288,
202,
202,
4599,
1318,
13197,
4599,
273,
394,
9809,
1318,
12,
7078,
5058,
18,
13719,
1767,
67,
26257,
4599,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
527,
7544,
4164,
442,
15326,
12,
3445,
2104,
1318,
3824,
13,
288,
202,
202,
4599,
1318,
13197,
4599,
273,
394,
9809,
1318,
12,
7078,
5058,
18,
13719,
1767,
67,
26257,
4599,
176... |
setTitle(PreferencesMessages.getString("CodeFormatterPreferencePage.title")); | setTitle(PreferencesMessages.CodeFormatterPreferencePage_title); | public CodeFormatterPreferencePage() { setPreferenceStore(CUIPlugin.getDefault().getPreferenceStore()); // only used when page is shown programatically setTitle(PreferencesMessages.getString("CodeFormatterPreferencePage.title")); //$NON-NLS-1$ //setDescription(PreferencesMessages.getString("CodeFormatterPreferencePage.description")); //$NON-NLS-1$ fCodeFormatterBlock= new CodeFormatterBlock(CUIPlugin.getDefault().getPluginPreferences()); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f234a522db00e1071063f0885f1670c3e1eb4c39/CodeFormatterPreferencePage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CodeFormatterPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3356,
5074,
9624,
1964,
1435,
288,
202,
202,
542,
9624,
2257,
12,
39,
5370,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
10663,
202,
202,
759,
1338,
1399,
1347,
1363,
353,
12188,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3356,
5074,
9624,
1964,
1435,
288,
202,
202,
542,
9624,
2257,
12,
39,
5370,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
10663,
202,
202,
759,
1338,
1399,
1347,
1363,
353,
12188,... |
e = de - Bias - (P-1) + k; | e[0] = de - Bias - (P-1) + k; bits[0] = P - k; | static int d2b(double d, byte bits[]) { int e, k, y, z, de; long dBits = Double.doubleToLongBits(d); int d0 = (int)(dBits >>> 32); int d1 = (int)(dBits); z = d0 & Frac_mask; d0 &= 0x7fffffff; /* clear sign bit, which we ignore */ if ((de = (int)(d0 >>> Exp_shift)) != 0) z |= Exp_msk1; if ((y = d1) != 0) { k = lo0bits(y); y >>>= k; if (k != 0) { stuffBits(bits, 4, y | z << (32 - k)); z >>= k; } else stuffBits(bits, 4, y); stuffBits(bits, 0, z); } else { // JS_ASSERT(z); k = lo0bits(z); z >>>= k; stuffBits(bits, 4, z); k += 32; } if (de != 0) { e = de - Bias - (P-1) + k; } else { e = de - Bias - (P-1) + 1 + k; } return e; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/3726b9fb19b6fab5f4203f81c219670d795ffdbd/DToA.java/buggy/js/rhino/src/org/mozilla/javascript/DToA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
509,
302,
22,
70,
12,
9056,
302,
16,
1160,
4125,
63,
5717,
565,
288,
3639,
509,
425,
16,
417,
16,
677,
16,
998,
16,
443,
31,
3639,
1525,
302,
6495,
273,
3698,
18,
9056,
30220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
509,
302,
22,
70,
12,
9056,
302,
16,
1160,
4125,
63,
5717,
565,
288,
3639,
509,
425,
16,
417,
16,
677,
16,
998,
16,
443,
31,
3639,
1525,
302,
6495,
273,
3698,
18,
9056,
30220,
... |
name1 = i1.getProductName(); | name1 = i1.getFeatureLabel(); | private void sortByProvider(){ /* If sorting in reverse, info array is already sorted forward by * key so the info array simply needs to be reversed. */ if (reverseSort){ java.util.List infoList = Arrays.asList(featuresInfo); Collections.reverse(infoList); for (int i=0; i< featuresInfo.length; i++){ featuresInfo[i] = (AboutInfo)infoList.get(i); } } else { // Sort ascending Arrays.sort(featuresInfo, new Comparator() { Collator coll = Collator.getInstance(Locale.getDefault()); public int compare(Object a, Object b) { AboutInfo i1, i2; String provider1, provider2, name1, name2; i1 = (AboutInfo)a; provider1 = i1.getProviderName(); name1 = i1.getProductName(); if (provider1 == null) provider1 = ""; if (name1 == null) name1 = ""; i2 = (AboutInfo)b; provider2 = i2.getProviderName(); name2 = i2.getProductName(); if (provider2 == null) provider2 = ""; if (name2 == null) name2 = ""; if (provider1.equals(provider2)) return coll.compare(name1, name2); else return coll.compare(provider1, provider2); } }); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ea54731eb383911fc4c34e3f9e00e33dad9ed4fb/AboutFeaturesDialog.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutFeaturesDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
14021,
2249,
1435,
95,
202,
202,
20308,
971,
9602,
316,
4219,
16,
1123,
526,
353,
1818,
3115,
5104,
635,
1082,
380,
498,
1427,
326,
1123,
526,
8616,
4260,
358,
506,
9553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14021,
2249,
1435,
95,
202,
202,
20308,
971,
9602,
316,
4219,
16,
1123,
526,
353,
1818,
3115,
5104,
635,
1082,
380,
498,
1427,
326,
1123,
526,
8616,
4260,
358,
506,
9553,
... |
m_module = module; | public void createdModule( String name, String niceName, String actionClass, String description, String version, String authorName, String authorEmail, String dateCreated, String userInstalled, String dateInstalled) { String moduleName; if (!CmsStringUtil.isValidJavaClassName(name)) { // ensure backward compatibility with old (5.0) module names LOG.error(Messages.get().key( Messages.LOG_INVALID_MOD_NAME_IMPORTED_1, name)); moduleName = makeValidJavaClassName(name); LOG.error(Messages.get().key( Messages.LOG_CORRECTED_MOD_NAME_1, moduleName)); } else { moduleName = name; } // parse the module version CmsModuleVersion moduleVersion = new CmsModuleVersion(version); // parse date created long moduleDateCreated = CmsModule.C_DEFAULT_DATE; if (dateCreated != null) { try { moduleDateCreated = CmsDateUtil.parseHeaderDate(dateCreated); } catch (ParseException e) { // noop } } // parse date installed long moduleDateInstalled = CmsModule.C_DEFAULT_DATE; if (dateInstalled != null) { try { moduleDateInstalled = CmsDateUtil.parseHeaderDate(dateInstalled); } catch (ParseException e1) { // noop } } if (m_oldModule) { // make sure module path is added to resources for "old" (5.0.x) modules String modulePath = I_CmsWpConstants.C_VFS_PATH_MODULES + name + "/"; m_resources.add(modulePath); } // now create the module CmsModule module = new CmsModule( moduleName, niceName, actionClass, description, moduleVersion, authorName, authorEmail, moduleDateCreated, userInstalled, moduleDateInstalled, m_dependencies, m_exportPoints, m_resources, m_parameters); // add the module to the list of configured modules m_module = module; // set the additional resource types; m_module.setResourceTypes(m_resourceTypes); // set the additional explorertypes m_module.setExplorerTypes(m_explorerTypeSettings); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a7ffa3c192d7068f584b0a3a844b88bdb2d3145a/CmsModuleXmlHandler.java/clean/src/org/opencms/module/CmsModuleXmlHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2522,
3120,
12,
3639,
514,
508,
16,
3639,
514,
13752,
461,
16,
3639,
514,
1301,
797,
16,
3639,
514,
2477,
16,
3639,
514,
1177,
16,
3639,
514,
2869,
461,
16,
3639,
514,
2869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2522,
3120,
12,
3639,
514,
508,
16,
3639,
514,
13752,
461,
16,
3639,
514,
1301,
797,
16,
3639,
514,
2477,
16,
3639,
514,
1177,
16,
3639,
514,
2869,
461,
16,
3639,
514,
2869,
... | |
if (opt < (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + opt + ")"); | if (opt < (args != null ? args.size() : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.size() + " for " + opt + ")"); | public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { CRefNode savedCref = ruby.getCRef(); // +++ = null; // VALUE[] localVars = null; RubyPointer argsList = new RubyPointer(args); RubyPointer localVarsList = null; ruby.getRubyScope().push(); if (getRefValue() != null) { // savedCref = ruby.getCRef(); s.a. ruby.setCRef(getRefValue()); ruby.getRubyFrame().setCbase(getRefValue()); } if (getTable() != null) { // ? +++ // List tmpList = Collections.nCopies(body.nd_tbl()[0].intValue() + 1, getRuby().getNil()); // ? --- // localVarsList = new ShiftableList(new ArrayList(tmpList)); // localVarsList.set(0, body); // localVarsList.shift(1); localVarsList = new RubyPointer(ruby.getNil(), getTable().getId(0).intValue() + 1); localVarsList.set(0, this); // +++ // localVarsList.set(3, argsList, argsList.size()); // --- localVarsList.inc(); ruby.getRubyScope().setLocalVars(localVarsList); ruby.getRubyScope().setLocalTbl(getTable()); } else { localVarsList = ruby.getRubyScope().getLocalVars(); ruby.getRubyScope().setLocalVars(null); ruby.getRubyScope().setLocalTbl(null); } Node body = getNextNode(); RubyVarmap.push(ruby); // PUSH_TAG(PROT_FUNC); RubyObject result = ruby.getNil(); try { Node node = null; int i; if (body.getType() == Constants.NODE_ARGS) { node = body; body = null; } else if (body.getType() == Constants.NODE_BLOCK) { node = body.getHeadNode(); body = body.getNextNode(); } if (node != null) { if (node.getType() != Constants.NODE_ARGS) { // rb_bug("no argument-node"); } i = node.getCount(); if (i > (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + i + ")"); } if (node.getRest() == -1) { int opt = i; Node optNode = node.getOptNode(); while (optNode != null) { opt++; optNode = optNode.getNextNode(); } if (opt < (args != null ? args.length : 0)) { throw new RubyArgumentException("wrong # of arguments(" + args.length + " for " + opt + ")"); } ruby.getRubyFrame().setArgs(localVarsList != null ? localVarsList.getPointer(2) : null); } if (localVarsList != null) { if (i > 0) { localVarsList.inc(2); for (int j = 0; j < i; j++ ) { localVarsList.set(j, argsList.get(j)); } localVarsList.dec(2); } argsList.inc(i); if (node.getOptNode() != null) { Node optNode = node.getOptNode(); while (optNode != null && argsList.size() != 0) { ((AssignableNode)optNode.getHeadNode()).assign(ruby, recv, argsList.getRuby(0), true); argsList.inc(1); optNode = optNode.getNextNode(); } recv.eval(optNode); } if (node.getRest() >= 0) { RubyArray array = null; if (argsList.size() > 0) { array = RubyArray.m_newArray(ruby, argsList); } else { array = RubyArray.m_newArray(ruby, 0); } localVarsList.set(node.getRest(), array); } } } result = recv.eval(body); } catch (ReturnException rExcptn) { } RubyVarmap.pop(ruby); ruby.getRubyScope().pop(); ruby.setCRef(savedCref); return result; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/f629550c5947df9c1dbe414645f3dc76bcb70df4/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
385,
1957,
907,
5198,
39,
1734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
921,
745,
12,
54,
10340,
22155,
16,
19817,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
1250,
1158,
8051,
13,
288,
3639,
385,
1957,
907,
5198,
39,
1734,
... |
+ " property on: " + parentObject + " to value: " | + " property on: " + safeToString(parentObject) + " to value: " | public void doTag(XMLOutput output) throws JellyTagException { Project project = getAntProject(); String tagName = getTagName(); Object parentObject = findBeanAncestor(); Object parentTask = findParentTaskObject(); // lets assume that Task instances are not nested inside other Task instances // for example <manifest> inside a <jar> should be a nested object, where as // if the parent is not a Task the <manifest> should create a ManifestTask // // also its possible to have a root Ant tag which isn't a task, such as when // defining <fileset id="...">...</fileset> Object nested = null; if (parentObject != null && !( parentTask instanceof TaskContainer) ) { nested = createNestedObject( parentObject, tagName ); } if (nested == null) { task = createTask( tagName ); if (task != null) { if ( log.isDebugEnabled() ) { log.debug( "Creating an ant Task for name: " + tagName ); } // the following algorithm follows the lifetime of a tag // http://jakarta.apache.org/ant/manual/develop.html#writingowntask // kindly recommended by Stefan Bodewig // create and set its project reference if ( task instanceof TaskAdapter ) { setObject( ((TaskAdapter)task).getProxy() ); } else { setObject( task ); } // set the task ID if one is given Object id = getAttributes().remove( "id" ); if ( id != null ) { project.addReference( (String) id, task ); } // ### we might want to spoof a Target setting here // now lets initialize task.init(); // now lets invoke the body to call all the createXXX() or addXXX() methods String body = getBodyText(); // now lets set any attributes of this tag... setBeanProperties(); // now lets set the addText() of the body content, if its applicaable Method method = MethodUtils.getAccessibleMethod( task.getClass(), "addText", addTaskParamTypes ); if (method != null) { Object[] args = { body }; try { method.invoke(this.task, args); } catch (IllegalAccessException e) { throw new JellyTagException(e); } catch (InvocationTargetException e) { throw new JellyTagException(e); } } // now lets set all the attributes of the child elements // XXXX: to do! // now we're ready to invoke the task // XXX: should we call execute() or perform()? // according to org.apache.tools.ant.Main, redirect stdout and stderr PrintStream initialOut = System.out; PrintStream initialErr = System.err; PrintStream newOut = new PrintStream(new DemuxOutputStream(project, false)); PrintStream newErr = new PrintStream(new DemuxOutputStream(project, true)); try { System.setOut(newOut); System.setErr(newErr); task.perform(); } finally { System.setOut(initialOut); System.setErr(initialErr); } } } if (task == null) { if (nested == null) { if ( log.isDebugEnabled() ) { log.debug( "Trying to create a data type for tag: " + tagName ); } nested = createDataType( tagName ); } else { if ( log.isDebugEnabled() ) { log.debug( "Created nested property tag: " + tagName ); } } if ( nested != null ) { setObject( nested ); // set the task ID if one is given Object id = getAttributes().remove( "id" ); if ( id != null ) { project.addReference( (String) id, nested ); } // TODO: work out why we always set the name attribute. // See JELLY-105.// try{// PropertyUtils.setProperty( nested, "name", tagName );// }// catch (Exception e) {// log.warn( "Caught exception setting nested name: " + tagName, e );// } // now lets invoke the body String body = getBodyText(); // now lets set any attributes of this tag... setBeanProperties(); // now lets add it to its parent if ( parentObject != null ) { IntrospectionHelper ih = IntrospectionHelper.getHelper( parentObject.getClass() ); try { if (log.isDebugEnabled()) { log.debug("About to set the: " + tagName + " property on: " + parentObject + " to value: " + nested + " with type: " + nested.getClass() ); } ih.storeElement( project, parentObject, nested, tagName.toLowerCase() ); } catch (Exception e) { log.warn( "Caught exception setting nested: " + tagName, e ); } // now try to set the property for good measure // as the storeElement() method does not // seem to call any setter methods of non-String types try { BeanUtils.setProperty( parentObject, tagName, nested ); } catch (Exception e) { log.debug("Caught exception trying to set property: " + tagName + " on: " + parentObject); } } } else { log.warn("Could not convert tag: " + tagName + " into an Ant task, data type or property"); // lets treat this tag as static XML... StaticTag tag = new StaticTag("", tagName, tagName); tag.setParent( getParent() ); tag.setBody( getBody() ); tag.setContext(context); for (Iterator iter = getAttributes().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); String name = (String) entry.getKey(); Object value = entry.getValue(); tag.setAttribute(name, value); } tag.doTag(output); } } } | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/be25a8752619eaf1e25c6b182f12d0837adf9fc5/AntTag.java/buggy/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1805,
12,
4201,
1447,
876,
13,
1216,
804,
292,
715,
1805,
503,
288,
3639,
5420,
1984,
273,
4506,
496,
4109,
5621,
3639,
514,
7196,
273,
336,
8520,
5621,
3639,
1033,
982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1805,
12,
4201,
1447,
876,
13,
1216,
804,
292,
715,
1805,
503,
288,
3639,
5420,
1984,
273,
4506,
496,
4109,
5621,
3639,
514,
7196,
273,
336,
8520,
5621,
3639,
1033,
982,
... |
*/ | public void drag(int dx, int dy) { if(_dragLeftMostFig == null || _dragTopMostFig == null) { return; } Rectangle dirtyRegion = _dragLeftMostFig.getBounds(); Rectangle figBounds = _dragLeftMostFig.getBounds(); dx = Math.max(-_dragLeftMostFig.getX(), dx); dy = Math.max(-_dragTopMostFig.getY(), dy); int nodeCount = _draggingNodes.size(); for(int i = 0; i < nodeCount; ++i) { FigNode figNode = (FigNode)_draggingNodes.get(i); figNode.getBounds(figBounds); dirtyRegion.add(figBounds.x, figBounds.y); dirtyRegion.add(figBounds.x + dx, figBounds.y + dy); dirtyRegion.add(figBounds.x + figBounds.width, figBounds.y + figBounds.height); dirtyRegion.add(figBounds.x + figBounds.width + dx, figBounds.y + figBounds.height + dy); figNode.superTranslate(dx, dy); // the next one will confuse everything if elements and annotations are selected and moved //figNode.translateAnnotations(); } int otherCount = _draggingOthers.size(); for(int i = 0; i < otherCount; ++i) { Fig fig = (Fig)_draggingOthers.get(i); fig.getBounds(figBounds); dirtyRegion.add(figBounds.x, figBounds.y); dirtyRegion.add(figBounds.x + dx, figBounds.y + dy); dirtyRegion.add(figBounds.x + figBounds.width, figBounds.y + figBounds.height); dirtyRegion.add(figBounds.x + figBounds.width + dx, figBounds.y + figBounds.height + dy); fig.translate(dx, dy); fig.translateAnnotations(); } int movingEdgeCount = _draggingMovingEdges.size(); for(int i = 0; i < movingEdgeCount; i++) { FigEdge figEdge = (FigEdge)_draggingMovingEdges.get(i); figEdge.getBounds(figBounds); dirtyRegion.add(figBounds.x, figBounds.y); dirtyRegion.add(figBounds.x + dx, figBounds.y + dy); dirtyRegion.add(figBounds.x + figBounds.width, figBounds.y + figBounds.height); dirtyRegion.add(figBounds.x + figBounds.width + dx, figBounds.y + figBounds.height + dy); figEdge.translateEdge(dx, dy); figEdge.translateAnnotations(); } int nonMovingEdgeCount = _draggingNonMovingEdges.size(); for(int i = 0; i < nonMovingEdgeCount; i++) { FigEdge figEdge = (FigEdge)_draggingNonMovingEdges.get(i); figEdge.getBounds(figBounds); dirtyRegion.add(figBounds); figEdge.computeRoute(); figEdge.getBounds(figBounds); dirtyRegion.add(figBounds); figEdge.translateAnnotations(); } /* // GEF is so stinking, absolutly rotten, ... // There used to be the whole diagram repainted. // Now here's a hack that repaints only the affected region: // First I assume that all selected figs are in the same layer, get the editors for this layer // rescale the region according to the editor scale, and repaint only the result. // first add some extra pixels for the selection handles and arrow heads (which are not included in getBounds()) int extraDirt = 16; dirtyRegion.x -= extraDirt; dirtyRegion.y -= extraDirt; dirtyRegion.width += 2 * extraDirt; dirtyRegion.height += 2 * extraDirt; Layer layer = _dragLeftMostFig.getLayer(); //try to get the layer of the owning fig (if there is one) in case layer is null. if(layer == null) { if(_dragLeftMostFig.getOwner() instanceof Fig) { layer = ((Fig)_dragLeftMostFig.getOwner()).getLayer(); } } if(layer != null) { List editors = layer.getEditors(); int editorCount = editors.size(); Rectangle dirtyRegionScaled = new Rectangle(); for(int editorIndex = 0; editorIndex < editorCount; ++editorIndex) { Editor editor = (Editor)editors.get(editorIndex); double editorScale = editor.getScale(); dirtyRegionScaled.x = (int)Math.floor(dirtyRegion.x * editorScale); dirtyRegionScaled.y = (int)Math.floor(dirtyRegion.y * editorScale); dirtyRegionScaled.width = (int)Math.floor(dirtyRegion.width * editorScale) + 1; dirtyRegionScaled.height = (int)Math.floor(dirtyRegion.height * editorScale) + 1; editor.damaged(dirtyRegionScaled); } } else { System.out.println("Selection manager: layer is null"); } */ // JJones - the above hack does not work. Some figs draw outside // of their bounds (FigCube for example), and the "extraDirt" // may or may not take care of that extra drawing (for FigCube it // does not). // Therefore I'm reverting back to drawing the whole diagram. // (see Issue #49) _editor.damageAll(); } | 1732 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1732/84074d6d707776a344fda34d49e8e07fe80b1568/SelectionManager.java/buggy/src/org/tigris/gef/base/SelectionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
8823,
12,
474,
6633,
16,
509,
7732,
13,
288,
3639,
309,
24899,
15997,
3910,
18714,
42,
360,
422,
446,
747,
389,
15997,
3401,
18714,
42,
360,
422,
446,
13,
288,
5411,
327,
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,
918,
8823,
12,
474,
6633,
16,
509,
7732,
13,
288,
3639,
309,
24899,
15997,
3910,
18714,
42,
360,
422,
446,
747,
389,
15997,
3401,
18714,
42,
360,
422,
446,
13,
288,
5411,
327,
31,... | |
globalState.getErr().print("js> "); globalState.getErr().flush(); | global.getErr().print("js> "); global.getErr().flush(); | public static void processSource(Context cx, String filename) { if (filename == null || filename.equals("-")) { // Use the interpreter for interactive input cx.setOptimizationLevel(-1); BufferedReader in = new BufferedReader (new InputStreamReader(globalState.getIn())); int lineno = 1; boolean hitEOF = false; while (!hitEOF) { int startline = lineno; if (filename == null) globalState.getErr().print("js> "); globalState.getErr().flush(); String source = ""; // Collect lines of source to compile. while (true) { String newline; try { newline = in.readLine(); } catch (IOException ioe) { globalState.getErr().println(ioe.toString()); break; } if (newline == null) { hitEOF = true; break; } source = source + newline + "\n"; lineno++; if (cx.stringIsCompilableUnit(source)) break; } Reader reader = new StringReader(source); Object result = evaluateReader(cx, scope, reader, "<stdin>", startline); if (result != cx.getUndefinedValue()) { try { globalState.getErr().println(cx.toString(result)); } catch (EcmaError ee) { String msg = ToolErrorReporter.getMessage( "msg.uncaughtJSException", ee.toString()); exitCode = EXITCODE_RUNTIME_ERROR; if (ee.getSourceName() != null) { Context.reportError(msg, ee.getSourceName(), ee.getLineNumber(), ee.getLineSource(), ee.getColumnNumber()); } else { Context.reportError(msg); } } } NativeArray h = globalState.history; h.put((int)h.jsGet_length(), h, source); } globalState.getErr().println(); } else processFile(cx, scope, filename); System.gc(); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/dcc50b2477b2063c90c140b044bec59ee39d93a0/Main.java/clean/org/mozilla/javascript/tools/shell/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1207,
1830,
12,
1042,
9494,
16,
514,
1544,
13,
288,
3639,
309,
261,
3459,
422,
446,
747,
1544,
18,
14963,
2932,
10951,
3719,
288,
5411,
368,
2672,
326,
16048,
364,
12625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
1830,
12,
1042,
9494,
16,
514,
1544,
13,
288,
3639,
309,
261,
3459,
422,
446,
747,
1544,
18,
14963,
2932,
10951,
3719,
288,
5411,
368,
2672,
326,
16048,
364,
12625,
... |
} | } | getVisible(){ return visibleAmount;} | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Scrollbar.java/clean/core/src/classpath/java/java/awt/Scrollbar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
31564,
1435,
95,
225,
327,
6021,
6275,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
31564,
1435,
95,
225,
327,
6021,
6275,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ps.println("\tpublic org.omg.CORBA.TypeCode _type ()"); ps.println("\t{"); ps.println("\t\treturn " + className + "Helper.type ();"); ps.println("\t}"); | out.println("\tpublic org.omg.CORBA.TypeCode _type ()"); out.println("\t{"); out.println("\t\treturn " + className + "Helper.type ();"); out.println("\t}"); | private void printHolderClass(String className, PrintWriter ps) { if (Environment.JAVA14 && pack_name.equals("")) lexer.emit_warn ("No package defined for " + className + " - illegal in JDK1.4", token); if (!pack_name.equals("")) ps.println("package " + pack_name + ";\n"); String type = typeName(); printImport(ps); printClassComment("sequence", className, ps); ps.println("public" + parser.getFinalString() + " class " + className + "Holder"); ps.println("\timplements org.omg.CORBA.portable.Streamable"); ps.println("{"); ps.println("\tpublic " + type + " value;"); ps.println("\tpublic " + className + "Holder ()"); ps.println("\t{"); ps.println("\t}"); ps.println("\tpublic " + className + "Holder (final " + type + " initial)\n\t{"); ps.println("\t\tvalue = initial;"); ps.println("\t}"); ps.println("\tpublic org.omg.CORBA.TypeCode _type ()"); ps.println("\t{"); ps.println("\t\treturn " + className + "Helper.type ();"); ps.println("\t}"); ps.println("\tpublic void _read (final org.omg.CORBA.portable.InputStream _in)"); ps.println("\t{"); ps.println("\t\tvalue = " + className + "Helper.read (_in);"); ps.println("\t}"); ps.println("\tpublic void _write (final org.omg.CORBA.portable.OutputStream _out)"); ps.println("\t{"); ps.println("\t\t" + className + "Helper.write (_out,value);"); ps.println("\t}"); ps.println("}"); } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/1fa4fca3642e870636f7373973e37568c93c654b/SequenceType.java/clean/src/org/jacorb/idl/SequenceType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1172,
6064,
797,
12,
780,
2658,
16,
14071,
4250,
13,
565,
288,
3639,
309,
261,
5494,
18,
27264,
3461,
597,
2298,
67,
529,
18,
14963,
2932,
6,
3719,
5411,
8512,
18,
18356,
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,
3238,
918,
1172,
6064,
797,
12,
780,
2658,
16,
14071,
4250,
13,
565,
288,
3639,
309,
261,
5494,
18,
27264,
3461,
597,
2298,
67,
529,
18,
14963,
2932,
6,
3719,
5411,
8512,
18,
18356,
67,... |
{ char ch = seg.array[seg.offset + i]; | { char ch = seg.array[seg.offset + i]; | public static int getOffsetOfVirtualColumn(Segment seg, int tabSize, int column, int[] totalVirtualWidth) { int virtualPosition = 0; for (int i = 0; i < seg.count; i++) { char ch = seg.array[seg.offset + i]; if (ch == '\t') { int tabWidth = tabSize - (virtualPosition % tabSize); if(virtualPosition >= column) return i; else virtualPosition += tabWidth; } else { if(virtualPosition >= column) return i; else ++virtualPosition; } } if(totalVirtualWidth != null) totalVirtualWidth[0] = virtualPosition; return -1; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/44a5f5803f850e1a89f536b419abe4f58e772d29/MiscUtilities.java/buggy/org/gjt/sp/jedit/MiscUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
13386,
951,
6466,
1494,
12,
4131,
2291,
16,
509,
3246,
1225,
16,
202,
202,
474,
1057,
16,
509,
8526,
2078,
6466,
2384,
13,
202,
95,
202,
202,
474,
5024,
2555,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
13386,
951,
6466,
1494,
12,
4131,
2291,
16,
509,
3246,
1225,
16,
202,
202,
474,
1057,
16,
509,
8526,
2078,
6466,
2384,
13,
202,
95,
202,
202,
474,
5024,
2555,
273,
... |
int bootImageAddress = 0; | public static void main (String args[]) throws Exception { int bootImageAddress = 0; // Process command line directives. // for (int i = 0, n = args.length; i < n; ++i) { if (args[i].equals("-ia")) { // image address bootImageAddress = Integer.decode(args[++i]).intValue(); continue; } System.err.println("unrecognized command line argument: " + args[i]); System.exit(-1); } if (bootImageAddress == 0) { System.err.println("Error: Must specify boot image load address."); System.exit(-1); } VM.initForTool(); System.out.print("/*------ MACHINE GENERATED by "); System.out.print("GenerateInterfaceDeclarations.java: DO NOT EDIT"); System.out.print("------*/\n\n"); System.out.println("#ifdef NEED_BOOT_RECORD_DECLARATIONS"); System.out.println("#include <inttypes.h>"); if (VM.BuildFor32Addr) { System.out.println("#define VM_Address uint32_t"); System.out.println("#define JavaObject_t uint32_t"); } else { System.out.println("#define VM_Address uint64_t"); System.out.println("#define JavaObject_t uint64_t"); } emitBootRecordDeclarations(); System.out.println("#endif /* NEED_BOOT_RECORD_DECLARATIONS */"); System.out.println(); System.out.println("#ifdef NEED_BOOT_RECORD_INITIALIZATION"); emitBootRecordInitialization(); System.out.println("#endif /* NEED_BOOT_RECORD_INITIALIZATION */"); System.out.println(); System.out.println("#ifdef NEED_GNU_CLASSPATH_VERSION"); // version of the classpath library from gnu.classpath.configuration System.out.print("static const char*classpath_version = \"" + gnu.classpath.Configuration.CLASSPATH_VERSION +"\";\n"); System.out.println("#endif /* NEED_GNU_CLASSPATH_VERSION */"); System.out.println(); System.out.println("#ifdef NEED_VIRTUAL_MACHINE_DECLARATIONS"); emitVirtualMachineDeclarations(bootImageAddress); System.out.println("#endif /* NEED_VIRTUAL_MACHINE_DECLARATIONS */"); System.out.println(); System.out.println("#ifdef NEED_ASSEMBLER_DECLARATIONS"); emitAssemblerDeclarations(); System.out.println("#endif /* NEED_ASSEMBLER_DECLARATIONS */"); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/eb8328fb4c19b26929f6d00ecee2bc8cace02c4c/GenerateInterfaceDeclarations.java/clean/rvm/src/tools/bootImageRunner/GenerateInterfaceDeclarations.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
1216,
1185,
288,
4202,
368,
4389,
1296,
980,
13877,
18,
565,
368,
565,
364,
261,
474,
277,
273,
374,
16,
290,
273,
833,
18,
2469,
31,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
1216,
1185,
288,
4202,
368,
4389,
1296,
980,
13877,
18,
565,
368,
565,
364,
261,
474,
277,
273,
374,
16,
290,
273,
833,
18,
2469,
31,
27... | |
try { dispatcher.dispatch(invocation); } catch (AssertionFailedError expected) { return; } fail("expected AssertionFailedError"); } | try { dispatcher.dispatch(invocation); } catch (AssertionFailedError expected) { return; } fail("expected AssertionFailedError"); } | public void testInvokeFailsWhenEmpty() throws Throwable { try { dispatcher.dispatch(invocation); } catch (AssertionFailedError expected) { return; } fail("expected AssertionFailedError"); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/LIFOInvocationDispatcherTest.java/clean/jmock/core/src/test/jmock/core/LIFOInvocationDispatcherTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10969,
30800,
9434,
1921,
1435,
1216,
4206,
288,
3639,
775,
288,
5411,
7393,
18,
10739,
12,
5768,
4431,
1769,
3639,
289,
1044,
261,
14979,
2925,
668,
2665,
13,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1842,
10969,
30800,
9434,
1921,
1435,
1216,
4206,
288,
3639,
775,
288,
5411,
7393,
18,
10739,
12,
5768,
4431,
1769,
3639,
289,
1044,
261,
14979,
2925,
668,
2665,
13,
288,
5411,
... |
psiDirectory.createClass( myClassName.substring( indexOfLastDot != -1 ? indexOfLastDot + 1 : 0 ) ); | final String name = myClassName.substring(indexOfLastDot != -1 ? indexOfLastDot + 1 : 0); final PsiClass aClass = psiDirectory.createClass(name); createBoundFields(aClass); | public void run() { // 1. Create all necessary packages final int indexOfLastDot = myClassName.lastIndexOf('.'); final String packageName = myClassName.substring(0, indexOfLastDot != -1 ? indexOfLastDot : 0); final PsiDirectory psiDirectory; if(packageName.length() > 0){ final PackageWrapper packageWrapper = new PackageWrapper(PsiManager.getInstance(project), packageName); try { psiDirectory = RefactoringUtil.createPackageDirectoryInSourceRoot(packageWrapper, sourceRoot); LOG.assertTrue(psiDirectory != null); } catch (final IncorrectOperationException e) { ApplicationManager.getApplication().invokeLater(new Runnable(){ public void run() { Messages.showErrorDialog( myEditor, UIDesignerBundle.message("error.cannot.create.package", packageName, e.getMessage()), CommonBundle.getErrorTitle() ); } }); return; } } else{ psiDirectory = PsiManager.getInstance(project).findDirectory(sourceRoot); LOG.assertTrue(psiDirectory != null); } // 2. Create class in the package try { psiDirectory.createClass( myClassName.substring( indexOfLastDot != -1 ? indexOfLastDot + 1 : 0 ) ); } catch (final IncorrectOperationException e) { ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { Messages.showErrorDialog( myEditor, UIDesignerBundle.message("error.cannot.create.package", packageName, e.getMessage()), CommonBundle.getErrorTitle() ); } }); return; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/0d85d59a0069d42696958ec06df3c568b645b7c1/CreateClassToBindFix.java/clean/ui-designer/impl/com/intellij/uiDesigner/quickFixes/CreateClassToBindFix.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
9079,
1071,
918,
1086,
1435,
288,
7734,
368,
404,
18,
1788,
777,
4573,
5907,
7734,
727,
509,
3133,
3024,
10412,
273,
3399,
3834,
18,
2722,
31985,
2668,
1093,
1769,
7734,
727,
514,
9929,
273,
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,
9079,
1071,
918,
1086,
1435,
288,
7734,
368,
404,
18,
1788,
777,
4573,
5907,
7734,
727,
509,
3133,
3024,
10412,
273,
3399,
3834,
18,
2722,
31985,
2668,
1093,
1769,
7734,
727,
514,
9929,
273,
3... |
if (resource instanceof IAdaptable) { return (IFolder) ((IAdaptable) resource).getAdapter(IFolder.class); } return null; | Object adapted = ((IAdaptable) resource).getAdapter(IFolder.class); if(adapted == null) return null; return (IFolder) adapted; | IFolder getFolder(IResource resource) { if (resource instanceof IFolder) { return (IFolder) resource; } if (resource instanceof IAdaptable) { return (IFolder) ((IAdaptable) resource).getAdapter(IFolder.class); } return null; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0e0b298a26b76136ceec79e60bc6b97440c502f9/ImportOperation.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
467,
3899,
29001,
12,
45,
1420,
1058,
13,
288,
3639,
309,
261,
3146,
1276,
467,
3899,
13,
288,
5411,
327,
261,
45,
3899,
13,
1058,
31,
3639,
289,
3639,
309,
261,
3146,
1276,
467,
13716,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
3899,
29001,
12,
45,
1420,
1058,
13,
288,
3639,
309,
261,
3146,
1276,
467,
3899,
13,
288,
5411,
327,
261,
45,
3899,
13,
1058,
31,
3639,
289,
3639,
309,
261,
3146,
1276,
467,
13716,... |
return new TextureData(mipmapLevel, internalFormat, | return new TextureData(internalFormat, | public TextureData newTextureData(InputStream stream, int mipmapLevel, int internalFormat, int pixelFormat, String fileSuffix) throws IOException { if (SGI.equals(fileSuffix) || SGI_RGB.equals(fileSuffix) || SGIImage.isSGIImage(stream)) { SGIImage image = SGIImage.read(stream); if (pixelFormat == 0) { pixelFormat = image.getFormat(); } if (internalFormat == 0) { internalFormat = image.getFormat(); } return new TextureData(mipmapLevel, internalFormat, image.getWidth(), image.getHeight(), 0, pixelFormat, GL.GL_UNSIGNED_BYTE, false, false, ByteBuffer.wrap(image.getData()), null); } return null; } | 46278 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46278/a295d66a868c897b71104f3dd4c94601c7463840/TextureIO.java/clean/src/classes/com/sun/opengl/utils/TextureIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28582,
751,
394,
10967,
751,
12,
4348,
1407,
16,
4766,
1377,
509,
312,
625,
1458,
2355,
16,
4766,
1377,
509,
2713,
1630,
16,
4766,
1377,
509,
4957,
1630,
16,
4766,
1377,
514,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28582,
751,
394,
10967,
751,
12,
4348,
1407,
16,
4766,
1377,
509,
312,
625,
1458,
2355,
16,
4766,
1377,
509,
2713,
1630,
16,
4766,
1377,
509,
4957,
1630,
16,
4766,
1377,
514,
585,
... |
setElem(thisObj, lbegin + i, args[i + argoffset]); | setElem(thisObj, begin + i, args[i + argoffset]); | private static Object jsFunction_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { /* create an empty Array to return. */ scope = getTopLevelScope(scope); Object result = ScriptRuntime.newObject(cx, scope, "Array", null); int argc = args.length; if (argc == 0) return result; double length = getLengthProperty(thisObj); /* Convert the first argument into a starting index. */ double begin = ScriptRuntime.toInteger(args[0]); double end; double delta; double count; if (begin < 0) { begin += length; if (begin < 0) begin = 0; } else if (begin > length) { begin = length; } argc--; /* Convert the second argument from a count into a fencepost index. */ delta = length - begin; if (args.length == 1) { count = delta; end = length; } else { count = ScriptRuntime.toInteger(args[1]); if (count < 0) count = 0; else if (count > delta) count = delta; end = begin + count; argc--; } long lbegin = (long)begin; long lend = (long)end; /* If there are elements to remove, put them into the return value. */ if (count > 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(thisObj, lbegin); } else { for (long last = lbegin; last < lend; last++) { Scriptable resultArray = (Scriptable)result; Object temp = getElem(thisObj, last); setElem(resultArray, last - lbegin, temp); } } } else if (count == 0 && cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Context.getUndefinedValue(); } /* Find the direction (up or down) to copy and make way for argv. */ delta = argc - count; if (delta > 0) { for (long last = (long)length - 1; last >= lend; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } else if (delta < 0) { for (long last = lend; last < length; last++) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(thisObj, lbegin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ ScriptRuntime.setProp(thisObj, "length", new Double(length + delta), thisObj); return result; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/5f6a565762eea9efee2aee1297e0f938ac7edf63/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
3828,
2083,
67,
19535,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
5411,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
1748,
752,
392,
1008,
1510,
358,
327,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
3828,
2083,
67,
19535,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
5411,
22780,
15261,
16,
1033,
8526,
833,
13,
565,
288,
3639,
1748,
752,
392,
1008,
1510,
358,
327,
18,
... |
if ( IReportElementConstants.REPORT_ELEMENT_IMAGE .equalsIgnoreCase( (String) request.getNewObjectType( ) ) ) | DesignElementHandle desginElementHandle = (DesignElementHandle) ( getTargetEditPart( ).getModel( ) ); dataSetList = DEUtil.getDataSetList( desginElementHandle ); if ( IReportElementConstants.REPORT_ELEMENT_IMAGE.equalsIgnoreCase( (String) request.getNewObjectType( ) ) ) | public boolean preHandleMouseUp( ) { CreateRequest request = getRequest( ); if ( IReportElementConstants.REPORT_ELEMENT_IMAGE .equalsIgnoreCase( (String) request.getNewObjectType( ) ) ) { // Open the builder for new image ImageBuilder dialog = new ImageBuilder( UIUtil .getDefaultShell( ), ImageBuilder.DLG_TITLE_NEW ); if ( Window.OK == dialog.open( ) ) { setModel( dialog.getResult( ) ); // If the dialog popup, mouse up event will not be called // automatically, call it explicit return super.preHandleMouseUp( ); } } return false; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8881b5505fc0ba3f08558dcedf523f0b91dfcba5/BasePaletteFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/BasePaletteFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
675,
3259,
9186,
1211,
12,
262,
202,
202,
95,
1082,
202,
1684,
691,
590,
273,
4328,
12,
11272,
1082,
202,
430,
261,
467,
4820,
1046,
2918,
18,
22710,
67,
10976,
67,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
675,
3259,
9186,
1211,
12,
262,
202,
202,
95,
1082,
202,
1684,
691,
590,
273,
4328,
12,
11272,
1082,
202,
430,
261,
467,
4820,
1046,
2918,
18,
22710,
67,
10976,
67,
136... |
void writeStruct(Struct x) throws SQLException; | void writeStruct(Struct value) throws SQLException; | void writeStruct(Struct x) throws SQLException; | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8e6a933c7311b8af73a149d26777089b7dc8bd68/SQLOutput.java/clean/core/src/classpath/java/java/sql/SQLOutput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1045,
3823,
12,
3823,
619,
13,
1216,
6483,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
1045,
3823,
12,
3823,
619,
13,
1216,
6483,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Namespace ns = elem.getNamespace(); | Element parent = element.getParent(); if ( parent == null || parent.getNamespaceForURI( namespace.getURI() ) == null ) { nsList.add( namespace.asXPathResult( element ) ); } } | public Iterator getNamespaceAxisIterator(Object contextNode) { if ( ! ( contextNode instanceof Element ) ) { return null; } Element elem = (Element) contextNode; List nsList = new ArrayList(); Namespace ns = elem.getNamespace(); if ( ns != Namespace.NO_NAMESPACE ) { nsList.add( elem.getNamespace() ); } nsList.addAll( elem.additionalNamespaces() ); return nsList.iterator(); } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/eb7756258fcf82692813cdb112e627acab7af924/DocumentNavigator.java/buggy/src/java/main/org/jaxen/dom4j/DocumentNavigator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
11153,
6558,
3198,
12,
921,
819,
907,
13,
565,
288,
3639,
309,
261,
401,
261,
819,
907,
1276,
3010,
262,
262,
3639,
288,
5411,
327,
446,
31,
3639,
289,
3639,
3010,
3659,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
11153,
6558,
3198,
12,
921,
819,
907,
13,
565,
288,
3639,
309,
261,
401,
261,
819,
907,
1276,
3010,
262,
262,
3639,
288,
5411,
327,
446,
31,
3639,
289,
3639,
3010,
3659,
273... |
log( "Using plain mail", Project.MSG_VERBOSE ); | log("Using plain mail", Project.MSG_VERBOSE); | public void execute() { Message savedMessage = message; Vector savedFiles = (Vector) files.clone(); try { Mailer mailer = null; // prepare for the auto select mechanism boolean autoFound = false; // try MIME format if( encoding.equals( MIME ) || ( encoding.equals( AUTO ) && !autoFound ) ) { try { mailer = (Mailer) Class.forName( "org.apache.tools.ant.taskdefs.email.MimeMailer" ) .newInstance(); autoFound = true; log( "Using MIME mail", Project.MSG_VERBOSE ); } catch( Throwable e ) { log( "Failed to initialise MIME mail", Project.MSG_WARN ); } } // try UU format if( encoding.equals( UU ) || ( encoding.equals( AUTO ) && !autoFound ) ) { try { mailer = (Mailer)Class.forName( "org.apache.tools.ant.taskdefs.email.UUMailer" ) .newInstance(); autoFound = true; log( "Using UU mail", Project.MSG_VERBOSE ); } catch( Throwable e ) { log( "Failed to initialise UU mail", Project.MSG_WARN ); } } // try plain format if( encoding.equals( PLAIN ) || ( encoding.equals( AUTO ) && !autoFound ) ) { mailer = new PlainMailer(); autoFound = true; log( "Using plain mail", Project.MSG_VERBOSE ); } // a valid mailer must be present by now if( mailer == null ) { throw new BuildException( "Failed to initialise encoding: " + encoding ); } // a valid message is required if( message == null ) { message = new Message(); } // an address to send from is required if( from == null || from.getAddress() == null ) { throw new BuildException( "A from element is required" ); } // at least one address to send to/cc/bcc is required if( toList.isEmpty() && ccList.isEmpty() && bccList.isEmpty() ) { throw new BuildException( "At least one of to,cc or bcc must " + "be supplied" ); } // set the mimetype if not done already (and required) if( messageMimeType != null ) { if( message.isMimeTypeSpecified() ) { throw new BuildException( "The mime type can only be " + "specified in one location" ); } else { message.setMimeType( messageMimeType ); } } // identify which files should be attached Enumeration e = filesets.elements(); while( e.hasMoreElements() ) { FileSet fs = (FileSet)e.nextElement(); DirectoryScanner ds = fs.getDirectoryScanner( project ); String[] includedFiles = ds.getIncludedFiles(); File baseDir = ds.getBasedir(); for( int j = 0; j < includedFiles.length; ++j ) { File file = new File( baseDir, includedFiles[ j ] ); files.addElement( file ); } } // let the user know what's going to happen log( "Sending email: " + subject, Project.MSG_INFO ); log( "From " + from, Project.MSG_VERBOSE ); log( "To " + toList, Project.MSG_VERBOSE ); log( "Cc " + ccList, Project.MSG_VERBOSE ); log( "Bcc " + bccList, Project.MSG_VERBOSE ); // pass the params to the mailer mailer.setHost( host ); mailer.setPort( port ); mailer.setMessage( message ); mailer.setFrom( from ); mailer.setToList( toList ); mailer.setCcList( ccList ); mailer.setBccList( bccList ); mailer.setFiles( files ); mailer.setSubject( subject ); mailer.setTask( this ); mailer.setIncludeFileNames( includeFileNames ); // send the email mailer.send(); // let the user know what happened int count = files.size(); log( "Sent email with " + count + " attachment" + ( count == 1?"":"s" ), Project.MSG_INFO ); } catch( BuildException e ) { log( "Failed to send email", Project.MSG_WARN ); if( failOnError ) { throw e; } } finally { message = savedMessage; files = savedFiles; } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/EmailTask.java/clean/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
565,
288,
3639,
2350,
5198,
1079,
273,
883,
31,
3639,
5589,
5198,
2697,
273,
261,
5018,
13,
1390,
18,
14056,
5621,
3639,
775,
3639,
288,
5411,
11542,
264,
17308,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
1435,
565,
288,
3639,
2350,
5198,
1079,
273,
883,
31,
3639,
5589,
5198,
2697,
273,
261,
5018,
13,
1390,
18,
14056,
5621,
3639,
775,
3639,
288,
5411,
11542,
264,
17308,
27... |
new TextArea(form, "target", new ConverterModel()); | new TextArea<String>(form, "target", new ConverterModel()); | public UnicodeConverter() { Form form = new Form(this, "form", new CompoundPropertyModel(this)); new TextArea(form, "source"); new DropDownChoice<String>(form, "translationType", translationTypes); new TextArea(form, "target", new ConverterModel()); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/2859872ee0d83bc7854220e8ee4a9a28a45514ab/UnicodeConverter.java/clean/wicket-examples/src/java/wicket/examples/unicodeconverter/UnicodeConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9633,
5072,
1435,
202,
95,
202,
202,
1204,
646,
273,
394,
2748,
12,
2211,
16,
315,
687,
3113,
394,
21327,
1396,
1488,
12,
2211,
10019,
202,
202,
2704,
3867,
5484,
12,
687,
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,
482,
9633,
5072,
1435,
202,
95,
202,
202,
1204,
646,
273,
394,
2748,
12,
2211,
16,
315,
687,
3113,
394,
21327,
1396,
1488,
12,
2211,
10019,
202,
202,
2704,
3867,
5484,
12,
687,
16,... |
protected void serializeNode( Node node ) { // Based on the node type call the suitable SAX handler. // Only comments entities and documents which are not // handled by SAX are serialized directly. switch ( node.getNodeType() ) { case Node.TEXT_NODE : { String text; text = node.getNodeValue(); if ( text != null ) characters( node.getNodeValue(), true ); break; } case Node.CDATA_SECTION_NODE : { String text; text = node.getNodeValue(); if ( text != null ) characters( node.getNodeValue(), true ); break; } case Node.COMMENT_NODE : break; case Node.ENTITY_REFERENCE_NODE : // Ignore. break; case Node.PROCESSING_INSTRUCTION_NODE : break; case Node.ELEMENT_NODE : serializeElement( (Element) node ); break; case Node.DOCUMENT_NODE : // !!! Fall through case Node.DOCUMENT_FRAGMENT_NODE : { Node child; // By definition this will happen if the node is a document, // document fragment, etc. Just serialize its contents. It will // work well for other nodes that we do not know how to serialize. child = node.getFirstChild(); while ( child != null ) { serializeNode( child ); child = child.getNextSibling(); } break; } default: break; } } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/395e53bbe5d70e395a0680f80263373c5b4d945a/TextSerializer.java/clean/src/org/apache/xml/serialize/TextSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4472,
907,
12,
2029,
756,
262,
565,
288,
3639,
368,
25935,
603,
326,
756,
618,
745,
326,
10631,
10168,
1838,
18,
3639,
368,
5098,
5678,
5140,
471,
7429,
1492,
854,
486,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4472,
907,
12,
2029,
756,
262,
565,
288,
3639,
368,
25935,
603,
326,
756,
618,
745,
326,
10631,
10168,
1838,
18,
3639,
368,
5098,
5678,
5140,
471,
7429,
1492,
854,
486,
3639,
... | ||
if ( errorMessage != null ) throw new PSQLException("postgresql.fp.error", errorMessage.toString()); | if ( error != null ) throw error; | private Object fastpathV3(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { // added Oct 7 1998 to give us thread safety synchronized (stream) { // send the function call try { int l_msgLen = 0; l_msgLen += 16; for (int i=0;i < args.length;i++) l_msgLen += args[i].sendSize(); stream.SendChar('F'); stream.SendInteger(l_msgLen,4); stream.SendInteger(fnid, 4); stream.SendInteger(1,2); stream.SendInteger(1,2); stream.SendInteger(args.length,2); for (int i = 0;i < args.length;i++) args[i].send(stream); stream.SendInteger(1,2); // This is needed, otherwise data can be lost stream.flush(); } catch (IOException ioe) { throw new PSQLException("postgresql.fp.send", new Integer(fnid), ioe); } // Now handle the result // Now loop, reading the results Object result = null; // our result StringBuffer errorMessage = null; int c; boolean l_endQuery = false; while (!l_endQuery) { c = stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = stream.ReceiveInteger(4); String msg = stream.ReceiveString(conn.getEncoding()); conn.addNotification(new org.postgresql.core.Notification(msg, pid)); break; //------------------------------ // Error message returned case 'E': if ( errorMessage == null ) errorMessage = new StringBuffer(); int l_elen = stream.ReceiveIntegerR(4); errorMessage.append(conn.getEncoding().decode(stream.Receive(l_elen-4))); break; //------------------------------ // Notice from backend case 'N': int l_nlen = stream.ReceiveIntegerR(4); conn.addWarning(conn.getEncoding().decode(stream.Receive(l_nlen-4))); break; case 'V': int l_msgLen = stream.ReceiveIntegerR(4); int l_valueLen = stream.ReceiveIntegerR(4); if (l_valueLen == -1) { //null value } else if (l_valueLen == 0) { result = new byte[0]; } else { // Return an Integer if if (resulttype) result = new Integer(stream.ReceiveIntegerR(l_valueLen)); else { byte buf[] = new byte[l_valueLen]; stream.Receive(buf, 0, l_valueLen); result = buf; } } break; case 'Z': //TODO: use size better if (stream.ReceiveIntegerR(4) != 5) throw new PSQLException("postgresql.con.setup"); //TODO: handle transaction status char l_tStatus = (char)stream.ReceiveChar(); l_endQuery = true; break; default: throw new PSQLException("postgresql.fp.protocol", new Character((char)c)); } } if ( errorMessage != null ) throw new PSQLException("postgresql.fp.error", errorMessage.toString()); return result; } } | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/0378a269f3ab3c44e67b14f96414b6ca95263263/Fastpath.java/buggy/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1033,
14469,
58,
23,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
14469,
58,
23,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
... |
public abstract int getTabPosition(); | public int getTabPosition() { return SWT.TOP; } | public abstract int getTabPosition(); | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a44e3679b294ff539fce71b7e835499b2c444fa7/AbstractTabFolder.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/AbstractTabFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
509,
3181,
378,
2555,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
509,
3181,
378,
2555,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
assertEquals("file: | assertEquals("file:/c:/foo", removeExtraneousAuthority(FILE_UTILS.toURI("c:\\foo"))); | public void testToURI() { String dosRoot = null; if (Os.isFamily("dos") || Os.isFamily("netware")) { dosRoot = Character.toUpperCase( System.getProperty("user.dir").charAt(0)) + ":/"; } else { dosRoot = ""; } if (Os.isFamily("dos")) { assertEquals("file:///C:/foo", FILE_UTILS.toURI("c:\\foo")); } if (Os.isFamily("netware")) { assertEquals("file:///SYS:/foo", FILE_UTILS.toURI("sys:\\foo")); } assertEquals("file:///" + dosRoot + "foo", FILE_UTILS.toURI("/foo")); /* May fail if the directory ${user.dir}/foo/ exists * (and anyway is the tested behavior actually desirable?): assertEquals("file:./foo", fu.toURI("./foo")); */ assertEquals("file:///" + dosRoot + "foo", FILE_UTILS.toURI("\\foo")); /* See above: assertEquals("file:./foo", fu.toURI(".\\foo")); */ assertEquals("file:///" + dosRoot + "foo%20bar", FILE_UTILS.toURI("/foo bar")); assertEquals("file:///" + dosRoot + "foo%20bar", FILE_UTILS.toURI("\\foo bar")); assertEquals("file:///" + dosRoot + "foo%23bar", FILE_UTILS.toURI("/foo#bar")); assertEquals("file:///" + dosRoot + "foo%23bar", FILE_UTILS.toURI("\\foo#bar")); // a test with ant for germans // i would expect here %E4NT ??? // anyway, this is the fix for the bug 37348wh assertEquals("file:///" + dosRoot + "%C3%A4nt", FILE_UTILS.toURI("/\u00E4nt")); } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/e12c63a6ee1b0bb45e9821ff84392c9391d76bd9/FileUtilsTest.java/clean/src/testcases/org/apache/tools/ant/util/FileUtilsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
3098,
1435,
288,
3639,
514,
16153,
2375,
273,
446,
31,
3639,
309,
261,
15112,
18,
291,
9203,
2932,
19219,
7923,
747,
31799,
18,
291,
9203,
2932,
2758,
2726,
6,
3719,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
774,
3098,
1435,
288,
3639,
514,
16153,
2375,
273,
446,
31,
3639,
309,
261,
15112,
18,
291,
9203,
2932,
19219,
7923,
747,
31799,
18,
291,
9203,
2932,
2758,
2726,
6,
3719,... |
private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.publicId = readLiteral(LIT_NORMALIZE | LIT_PUBID | flags); if (inNotation) { skipWhitespace(); mark(1); c = readCh(); reset(); if (c == '"' || c == '\'') ids.systemId = absolutize(input.systemId, readLiteral(flags)); } else { requireWhitespace(); ids.systemId = absolutize(input.systemId, readLiteral(flags)); } for (int i = 0; i < ids.publicId.length(); i++) { c = ids.publicId.charAt(i); if (c >= 'a' && c <= 'z') continue; if (c >= 'A' && c <= 'Z') continue; if (" \r\n0123456789-' ()+,./:=?;!*#@$_%".indexOf(c) != -1) continue; error("illegal PUBLIC id character", "U+" + Integer.toHexString(c)); } } else if (tryRead("SYSTEM")) { requireWhitespace(); ids.systemId = absolutize(input.systemId, readLiteral(flags)); } else if (!isSubset) { error("missing SYSTEM or PUBLIC keyword"); } if (ids.systemId != null) { if (ids.systemId.indexOf('#') != -1) error("SYSTEM id has a URI fragment", ids.systemId); } return ids; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
11352,
2673,
855,
6841,
2673,
12,
6494,
316,
14818,
16,
1250,
16523,
542,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1149,
276,
31,
565,
509,
2943,
273,
511,
1285,
67,
13498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
11352,
2673,
855,
6841,
2673,
12,
6494,
316,
14818,
16,
1250,
16523,
542,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1149,
276,
31,
565,
509,
2943,
273,
511,
1285,
67,
13498,
... | ||
private void initPage() throws DocumentException { // initialisation of some page objects annotations = new PdfArray(); fontDictionary = new PdfFontDictionary(); xObjectDictionary = new PdfXObjectDictionary(); writer.resetContent(); // the pagenumber is incremented pageN++; // graphics and text are initialized float oldleading = leading; int oldAlignment = alignment; imageEnd = -1; imageIndentRight = 0; imageIndentLeft = 0; graphics = new PdfContentByte(writer); text = new PdfContentByte(writer); text.beginText(); leading = 16; indentBottom = 0; indentTop = 0; currentHeight = 0; // backgroundcolors, etc... thisPageSize = pageSize; if (pageSize.backgroundColor() != null || pageSize.hasBorders() || pageSize.borderColor() != null || pageSize.grayFill() > 0) { add(pageSize); } // if there is a watermark, the watermark is added if (watermark != null) { float mt[] = watermark.matrix(); graphics.addImage(watermark, mt[0], mt[1], mt[2], mt[3], watermark.offsetX() - mt[4], watermark.offsetY() - mt[5]); } // if there is a footer, the footer is added if (footer != null) { footer.setPageNumber(pageN); leading = footer.paragraph().leading(); add(footer.paragraph()); // adding the footer limits the height indentBottom = currentHeight; text.moveText(left(), indentBottom()); flushLines(); text.moveText(-left(), -bottom()); footer.setTop(bottom(currentHeight)); footer.setBottom(bottom() - (0.75f * leading)); footer.setLeft(left()); footer.setRight(right()); graphics.rectangle(footer); indentBottom = currentHeight + leading * 3 / 2; currentHeight = 0; } // we move to the left/top position of the page text.moveText(left(), top()); // if there is a header, the header = added if (header != null) { header.setPageNumber(pageN); leading = header.paragraph().leading(); text.moveText(0, leading); add(header.paragraph()); newLine(); indentTop = currentHeight - leading; header.setTop(top() + leading); header.setBottom(indentTop() + leading * 2 / 3); header.setLeft(left()); header.setRight(right()); graphics.rectangle(header); flushLines(); currentHeight = 0; } pageEmpty = true; // if there is an image waiting to be drawn, draw it try { if (imageWait != null) { add(imageWait); imageWait = null; } } catch(Exception e) { e.printStackTrace(); } leading = oldleading; alignment = oldAlignment; carriageReturn(); PdfPageEvent pageEvent = writer.getPageEvent(); if (pageEvent != null) { if (firstPageEvent) { pageEvent.onOpenDocument(writer, this); } pageEvent.onStartPage(writer, this); } firstPageEvent = false; } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/57f3b7461acee82684c0e028473d49bed56a6b35/PdfDocument.java/clean/itext/src/com/lowagie/text/pdf/PdfDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1964,
1435,
1216,
4319,
503,
288,
7734,
368,
2172,
10742,
434,
2690,
1363,
2184,
3639,
5617,
273,
394,
9989,
1076,
5621,
3639,
3512,
10905,
273,
394,
9989,
5711,
10905,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
1435,
1216,
4319,
503,
288,
7734,
368,
2172,
10742,
434,
2690,
1363,
2184,
3639,
5617,
273,
394,
9989,
1076,
5621,
3639,
3512,
10905,
273,
394,
9989,
5711,
10905,
562... | ||
throw new IllegalArgumentException (); | throw new IllegalArgumentException("Not enough format objects"); | public void setFormats (Format[] newFormats) { if (newFormats.length < elements.length) throw new IllegalArgumentException (); int len = Math.min(newFormats.length, elements.length); for (int i = 0; i < len; ++i) elements[i].setFormat = newFormats[i]; } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/78b246ca2bfca0e1b9cfb2a8042be53a2cc7b376/MessageFormat.java/buggy/libjava/java/text/MessageFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
8976,
261,
1630,
8526,
394,
8976,
13,
225,
288,
565,
309,
261,
2704,
8976,
18,
2469,
411,
2186,
18,
2469,
13,
1377,
604,
394,
2754,
2932,
1248,
7304,
740,
2184,
8863,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8976,
261,
1630,
8526,
394,
8976,
13,
225,
288,
565,
309,
261,
2704,
8976,
18,
2469,
411,
2186,
18,
2469,
13,
1377,
604,
394,
2754,
2932,
1248,
7304,
740,
2184,
8863,
37... |
IProject project = getProject(selection); | IProject project = getProject(); | protected void setTitle(ISelection selection) { String title = origTitle; IProject project = getProject(selection); if (project != null ) { title += " [" + project.getName() + "]"; } setTitle(title); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f4ed4e474566c62dd86ddfa579de9d355767fb3f/BuildConsoleView.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/buildconsole/BuildConsoleView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14109,
12,
45,
6233,
4421,
13,
288,
202,
202,
780,
2077,
273,
1647,
4247,
31,
202,
202,
45,
4109,
1984,
273,
11080,
12,
10705,
1769,
202,
202,
430,
261,
4406,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14109,
12,
45,
6233,
4421,
13,
288,
202,
202,
780,
2077,
273,
1647,
4247,
31,
202,
202,
45,
4109,
1984,
273,
11080,
12,
10705,
1769,
202,
202,
430,
261,
4406,
480,
446,
... |
dst.setMainPoperty(pname, v, important); | dst.setMainProperty(pname, v, important); | public void property(String pname, LexicalUnit lu, boolean important) { int idx = getPropertyIndex(pname); if (idx != -1) { ValueManager vm = valueManagers[idx]; Value v = vm.createValue(lu, CSSEngine.this); dst.setMainPoperty(pname, v, important); return; } idx = getShorthandIndex(pname); if (idx == -1) return; // Unknown property... // Shorthand value shorthandManagers[idx].setValues (CSSEngine.this, this, lu, important); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/885608e4d51bd404d0e1cd5932465405cc337e42/CSSEngine.java/clean/sources/org/apache/batik/css/engine/CSSEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
1272,
12,
780,
19952,
16,
15123,
1706,
2802,
20072,
16,
29159,
1250,
10802,
13,
288,
13491,
509,
2067,
273,
3911,
1016,
12,
84,
529,
1769,
13491,
309,
261,
3465,
480,
300,
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,
5397,
1071,
918,
1272,
12,
780,
19952,
16,
15123,
1706,
2802,
20072,
16,
29159,
1250,
10802,
13,
288,
13491,
509,
2067,
273,
3911,
1016,
12,
84,
529,
1769,
13491,
309,
261,
3465,
480,
300,
21,... |
text = DurationFormatUtils.formatDurationWords(120*1000, false, false); | text = DurationFormatUtils.formatDurationWords(120 * 1000, false, false); | public void testFormatDurationWords(){ String text = null; text = DurationFormatUtils.formatDurationWords(50*1000, true, false); assertEquals("50 seconds", text); text = DurationFormatUtils.formatDurationWords(65*1000, true, false); assertEquals("1 minute 5 seconds", text); text = DurationFormatUtils.formatDurationWords(120*1000, true, false); assertEquals("2 minutes 0 seconds", text); text = DurationFormatUtils.formatDurationWords(121*1000, true, false); assertEquals("2 minutes 1 second", text); text = DurationFormatUtils.formatDurationWords(72*60*1000, true, false); assertEquals("1 hour 12 minutes 0 seconds", text); text = DurationFormatUtils.formatDurationWords(24*60*60*1000, true, false); assertEquals("1 day 0 hours 0 minutes 0 seconds", text); text = DurationFormatUtils.formatDurationWords(50*1000, true, true); assertEquals("50 seconds", text); text = DurationFormatUtils.formatDurationWords(65*1000, true, true); assertEquals("1 minute 5 seconds", text); text = DurationFormatUtils.formatDurationWords(120*1000, true, true); assertEquals("2 minutes", text); text = DurationFormatUtils.formatDurationWords(121*1000, true, true); assertEquals("2 minutes 1 second", text); text = DurationFormatUtils.formatDurationWords(72*60*1000, true, true); assertEquals("1 hour 12 minutes", text); text = DurationFormatUtils.formatDurationWords(24*60*60*1000, true, true); assertEquals("1 day", text); text = DurationFormatUtils.formatDurationWords(50*1000, false, true); assertEquals("0 days 0 hours 0 minutes 50 seconds", text); text = DurationFormatUtils.formatDurationWords(65*1000, false, true); assertEquals("0 days 0 hours 1 minute 5 seconds", text); text = DurationFormatUtils.formatDurationWords(120*1000, false, true); assertEquals("0 days 0 hours 2 minutes", text); text = DurationFormatUtils.formatDurationWords(121*1000, false, true); assertEquals("0 days 0 hours 2 minutes 1 second", text); text = DurationFormatUtils.formatDurationWords(72*60*1000, false, true); assertEquals("0 days 1 hour 12 minutes", text); text = DurationFormatUtils.formatDurationWords(24*60*60*1000, false, true); assertEquals("1 day", text); text = DurationFormatUtils.formatDurationWords(50*1000, false, false); assertEquals("0 days 0 hours 0 minutes 50 seconds", text); text = DurationFormatUtils.formatDurationWords(65*1000, false, false); assertEquals("0 days 0 hours 1 minute 5 seconds", text); text = DurationFormatUtils.formatDurationWords(120*1000, false, false); assertEquals("0 days 0 hours 2 minutes 0 seconds", text); text = DurationFormatUtils.formatDurationWords(121*1000, false, false); assertEquals("0 days 0 hours 2 minutes 1 second", text); text = DurationFormatUtils.formatDurationWords(72*60*1000, false, false); assertEquals("0 days 1 hour 12 minutes 0 seconds", text); text = DurationFormatUtils.formatDurationWords(48*60*60*1000 + 72*60*1000 , false, false); assertEquals("2 days 1 hour 12 minutes 0 seconds", text); } | 4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/f0f0bf81e7010b213be89b477eaaba339a3d9fbc/DurationFormatUtilsTest.java/buggy/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1630,
5326,
7363,
1435,
95,
3639,
514,
977,
273,
446,
31,
7734,
977,
273,
4822,
1630,
1989,
18,
2139,
5326,
7363,
12,
3361,
14,
18088,
16,
638,
16,
629,
1769,
3639,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1630,
5326,
7363,
1435,
95,
3639,
514,
977,
273,
446,
31,
7734,
977,
273,
4822,
1630,
1989,
18,
2139,
5326,
7363,
12,
3361,
14,
18088,
16,
638,
16,
629,
1769,
3639,
181... |
event.getBot().addFactoid(sender, key, Arrays.toString(Arrays.subset(messageParts, partWithIs + 1, messageParts.length), " ")); | event.getBot().addFactoid(sender, key,value); | public List handleMessage(BotEvent event) { List messages = new TypeSafeList(new ArrayList(), Message.class); String message = event.getMessage(); String channel = event.getChannel(); String sender = event.getSender(); Javabot bot = event.getBot(); String[] messageParts = message.split(" "); int partWithIs = Arrays.search(messageParts, "is"); if(partWithIs!=-1 && message.matches("^\\s*\\w+\\s+is\\s++\\w+")) { if(!bot.isValidSender(sender)) { Object keyParts = Arrays.subset(messageParts, 0, partWithIs); String key = Arrays.toString(keyParts, " "); key = key.toLowerCase(); while(key.endsWith(".") || key.endsWith("?") || key.endsWith("!")) { key = key.substring(0, key.length() - 1); } if(bot.hasFactoid(key)) { messages.add(new Message(channel, "I already have a factoid " + "with that name, " + sender, false)); return messages; } messages.add(new Message(channel, "Okay, " + sender + ".", false)); event.getBot().addFactoid(sender, key, Arrays.toString(Arrays.subset(messageParts, partWithIs + 1, messageParts.length), " ")); } else { messages.add(new Message(channel, "Whatever, " + sender + ".", false)); } } return messages; } | 50286 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50286/c4eb5f6084ab1cd040dfdf5f52ff28428eaaff94/AddFactoidOperation.java/clean/src/javabot/operations/AddFactoidOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1640,
1079,
12,
6522,
1133,
871,
13,
288,
3639,
987,
2743,
273,
394,
1412,
9890,
682,
12,
2704,
2407,
9334,
2350,
18,
1106,
1769,
3639,
514,
883,
273,
871,
18,
24906,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
1640,
1079,
12,
6522,
1133,
871,
13,
288,
3639,
987,
2743,
273,
394,
1412,
9890,
682,
12,
2704,
2407,
9334,
2350,
18,
1106,
1769,
3639,
514,
883,
273,
871,
18,
24906,
5621,
3... |
PackageResource.bind(application, SliderImages.class, Pattern.compile(".*\\.gif|.*\\.png")); | PackageResource.bind(application, Slider.class, Pattern.compile(".*\\.gif|.*\\.png"), true); | public void init(Application application) { // register all javascript files PackageResource.bind(application, Slider.class, Pattern.compile(".*\\.js")); // images PackageResource.bind(application, SliderImages.class, Pattern.compile(".*\\.gif|.*\\.png")); // and a css PackageResource.bind(application, Slider.class, "css/screen.css"); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/ae59133d78ed3da15c99216df8bff21899d250df/Slider.java/clean/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1208,
12,
3208,
2521,
13,
202,
202,
95,
1082,
202,
759,
1744,
777,
11341,
1390,
1082,
202,
2261,
1420,
18,
4376,
12,
3685,
16,
9708,
3585,
18,
1106,
16,
6830,
18,
11100,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1208,
12,
3208,
2521,
13,
202,
202,
95,
1082,
202,
759,
1744,
777,
11341,
1390,
1082,
202,
2261,
1420,
18,
4376,
12,
3685,
16,
9708,
3585,
18,
1106,
16,
6830,
18,
11100,... |
public org.quickfix.field.Rule80A getRule80A() throws FieldNotFound { org.quickfix.field.Rule80A value = new org.quickfix.field.Rule80A(); | public quickfix.field.Rule80A getRule80A() throws FieldNotFound { quickfix.field.Rule80A value = new quickfix.field.Rule80A(); | public org.quickfix.field.Rule80A getRule80A() throws FieldNotFound { org.quickfix.field.Rule80A value = new org.quickfix.field.Rule80A(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/buggy/src/java/src/quickfix/fix43/NewOrderSingle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2175,
3672,
37,
19048,
3672,
37,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2175,
3672,
37,
460,
273,
394,
2358,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2175,
3672,
37,
19048,
3672,
37,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2175,
3672,
37,
460,
273,
394,
2358,
18,... |
tileSelectionListeners.remove(TileSelectionListener.class, listener); | tileSelectionListeners.remove(listener); | public void removeTileSelectionListener(TileSelectionListener listener) { tileSelectionListeners.remove(TileSelectionListener.class, listener); } | 6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/97855ad621000b7ef1784f1501a2e2b350e5a9cd/TilePalettePanel.java/buggy/src/tiled/mapeditor/widget/TilePalettePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
9337,
6233,
2223,
12,
9337,
6233,
2223,
2991,
13,
288,
3639,
4769,
6233,
5583,
18,
4479,
12,
12757,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
9337,
6233,
2223,
12,
9337,
6233,
2223,
2991,
13,
288,
3639,
4769,
6233,
5583,
18,
4479,
12,
12757,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public void close () throws Exception { | public void close() throws Exception { | public void close () throws Exception { try { if (con!=null) { con.close(); } if (stmt!=null){ stmt.close(); } } catch (Exception e) { System.err.println(e.getMessage()); } } | 8754 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8754/efb83d08bf3214ba362adb9486345c128a00bae7/DatabaseRetriever.java/buggy/usage/java/reports/source/src/org/globus/usage/report/common/DatabaseRetriever.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
309,
261,
591,
5,
33,
2011,
13,
288,
7734,
356,
18,
4412,
5621,
5411,
289,
5411,
309,
261,
10589,
5,
33,
2011,
15329,
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,
377,
1071,
918,
1746,
1435,
1216,
1185,
288,
3639,
775,
288,
5411,
309,
261,
591,
5,
33,
2011,
13,
288,
7734,
356,
18,
4412,
5621,
5411,
289,
5411,
309,
261,
10589,
5,
33,
2011,
15329,
7734,... |
/* prototype for short-circuit bug */ | public void sawOpcode(int seen) { /* prototype for short-circuit bug */ distance++; switch (seen) { case IFNONNULL: case IFNULL: stage1 = 3; break; case ICONST_1: if (stage1 != 3) stage1 = 1; else stage1 = 0; break; case GOTO: if (stage1 == 1) stage1 = 2; else stage1 = 0; break; case ICONST_0: if (stage1 == 2) { distance = 0; // System.out.println("saw 1; goto X; 0"); } stage1 = 0; break; case INVOKEINTERFACE: case INVOKEVIRTUAL: case INVOKESPECIAL: case INVOKESTATIC: String sig = getSigConstantOperand(); if (sig.endsWith(")Z")) distance = 0; stage1 = 0; break; default: stage1 = 0; } switch (seen) { case IAND: case IOR: // System.out.println("Saw IOR or IAND at distance " + distance); if (distance < 4) { operator = seen; //distance2 = distance; stage2 = 1; } else stage2 = 0; break; case IFEQ: case IFNE: if (stage2 == 1) { // System.out.println("Found nsc"); bugReporter.reportBug(new BugInstance(this, "NS_NON_SHORT_CIRCUIT", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this, getPC())); } stage2 = 0; break; case PUTFIELD: case PUTSTATIC: case IRETURN: if (operator == IAND && stage2 == 1) { // System.out.println("Found nsc"); bugReporter.reportBug(new BugInstance(this, "NS_NON_SHORT_CIRCUIT", NORMAL_PRIORITY) .addClassAndMethod(this) .addSourceLine(this, getPC())); } stage2 = 0; break; default: stage2 = 0; break; } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/564a05c7bbfd31f95362313b888742b389a31512/FindNonShortCircuit.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindNonShortCircuit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
20308,
4409,
364,
3025,
17,
24987,
7934,
1195,
202,
202,
8969,
9904,
31,
202,
202,
9610,
261,
15156,
13,
288,
202,
202,
3593,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
20308,
4409,
364,
3025,
17,
24987,
7934,
1195,
202,
202,
8969,
9904,
31,
202,
202,
9610,
261,
15156,
13,
288,
202,
202,
3593,
... | |
} catch (Exception e) { | } catch (Throwable e) { | private int tryAllDownloads3() throws InterruptedException { //The parts of the file we still need to download. //INVARIANT: all intervals are disjoint and non-empty synchronized(this) { needed=new ArrayList(); {//all variables in this block have limited scope RemoteFileDesc rfd=(RemoteFileDesc)files.get(0); File incompleteFile=incompleteFileManager.getFile(rfd); synchronized (incompleteFileManager) { //get VerifyingFile commonOutFile= incompleteFileManager.getEntry(incompleteFile); } if(commonOutFile==null) {//no entry in incompleteFM debug("creating a verifying file"); commonOutFile = new VerifyingFile(true); //we must add an entry for this in IncompleteFileManager incompleteFileManager. addEntry(incompleteFile,commonOutFile); } //need to get the VerifyingFile ready to write try { commonOutFile.open(incompleteFile,this); } catch(IOException e) { //Ideally we should show the user some sort of message here. //See GUI core bug #83. return COULDNT_MOVE_TO_LIBRARY; } //update needed Iterator iter=commonOutFile.getFreeBlocks(rfd.getSize()); while (iter.hasNext()) needed.add((Interval)iter.next()); } } //The locations that were busy, for trying later. busy=new LinkedList(); int size = -1; int connectTo = -1; Assert.that(threads.size()==0); //While there is still an unfinished region of the file... while (true) { synchronized (stealLock) {//Must obtain stealLock before this synchronized(this) { //Note: This block which causes exiting from //tryAllDownloads3(), needs to be synchronized on stealLock //(and this - state and datastructures) because a worker //thread could take out a block from needed, and not yet //have added a downloader to dloaders while the manager //thread is executing this block. In that case the manager //thread will exit thinking the download is complete if (stopped) { debug("MANAGER: terminating because of stop"); throw new InterruptedException(); } else if (dloaders.size()==0 && needed.size()==0) { //Finished. Interrupt all worker threads for(int i=threads.size();i>0;i--) { Thread t = (Thread)threads.get(i-1); t.interrupt(); } debug("MANAGER: terminating because of completion"); return COMPLETE; } else if (threads.size()==0 && files.size()==0) { //No downloaders worth living for. if (busy.size()>0) { debug("MANAGER: terminating with busy"); files.addAll(busy); return WAITING_FOR_RETRY; } else { debug("MANAGER: terminating w/o hope"); return GAVE_UP; } } size = files.size(); connectTo = getNumAllowedDownloads(); } } //OK. We are going to create a thread for each RFD, for(int i=0; i<connectTo && i<size; i++) { final RemoteFileDesc rfd = removeBest(files); Thread connectCreator = new Thread() { public void run() { boolean iterate = false; try { iterate = connectAndDownload(rfd); } catch (Exception e) { //This is a "firewall" for reporting unhandled //errors. We don't really try to recover at this //point, but we do attempt to display the error in //the GUI for debugging purposes. ManagedDownloader.this.manager.internalError(e); } finally { synchronized (ManagedDownloader.this) { threads.remove(this); if(iterate) ManagedDownloader.this.notifyAll(); } } }//end of run }; connectCreator.start(); synchronized (this) { threads.add(connectCreator); } }//end of for //wait for a notification before we continue. synchronized(this) { try { //if no workers notify in 4 secs, iterate. This is a problem //for stalled downloaders which will never notify. So if we //wait without a timeout, we could wait forever. this.wait(4000); } catch (InterruptedException ee ) { //ee.printStackTrace(); } } }//end of while } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/e4b24ef58cc77022f26819a07ebcb80a084e285e/ManagedDownloader.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/downloader/ManagedDownloader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
775,
1595,
22141,
23,
1435,
1216,
7558,
288,
3639,
368,
1986,
2140,
434,
326,
585,
732,
4859,
1608,
358,
4224,
18,
3639,
368,
706,
29744,
6856,
30,
777,
10389,
854,
1015,
16452... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
775,
1595,
22141,
23,
1435,
1216,
7558,
288,
3639,
368,
1986,
2140,
434,
326,
585,
732,
4859,
1608,
358,
4224,
18,
3639,
368,
706,
29744,
6856,
30,
777,
10389,
854,
1015,
16452... |
public int CDLHOMINGPIGEON_Lookback() { | public int CDLHOMINGPIGEON_Lookback( ) { | public int CDLHOMINGPIGEON_Lookback() { return ((((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod)) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod))) ? ((this.candleSettings[TA_CandleSettingType.TA_BodyShort .ordinal()].avgPeriod)) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod))) + 1; } | 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,
509,
385,
8914,
44,
1872,
1360,
1102,
7113,
673,
67,
9794,
823,
1435,
288,
202,
202,
2463,
261,
12443,
12,
2211,
18,
71,
464,
298,
2628,
63,
9833,
67,
39,
464,
298,
5568,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
385,
8914,
44,
1872,
1360,
1102,
7113,
673,
67,
9794,
823,
1435,
288,
202,
202,
2463,
261,
12443,
12,
2211,
18,
71,
464,
298,
2628,
63,
9833,
67,
39,
464,
298,
5568,
55... |
boolean contains(JComponent c, int x, int y) { return c.inside(x,y); } | public boolean contains(JComponent c, int x, int y) { /* JComponent.contains calls the ui delegate for hit * testing. Therefore, endless mutual recursion would result if we * called c.contains(x, y) here. * * The previous Classpath implementation called the deprecated * method java.awt.Component.inside. In the Sun implementation, it * can be observed that inside, other than contains, does not call * the ui delegate. But that inside() behaves different to * contains() clearly is in violation of the method contract, and * it is not something that a good implementation should rely upon * -- even if Classpath ends up being forced to replicate this * apparent bug of the Sun implementation. */ return (x >= 0) && (x < c.getWidth()) && (y >= 0) && (y < c.getHeight()); } | boolean contains(JComponent c, int x, int y) { return c.inside(x,y); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/ComponentUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/ComponentUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
1914,
12,
46,
1841,
276,
16,
509,
619,
16,
509,
677,
13,
565,
288,
202,
2463,
276,
18,
28091,
12,
92,
16,
93,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
1914,
12,
46,
1841,
276,
16,
509,
619,
16,
509,
677,
13,
565,
288,
202,
2463,
276,
18,
28091,
12,
92,
16,
93,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); | setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); | private void evaluateExpressions() throws JspException { try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMultiple((String) evalAttr("multiple", getMultiple(), String.class)); } catch (NullAttributeException ex) { setMultiple(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELSelectTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSelectTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
... |
if (path.startsWith("/") && path.substring(1).indexOf("/") == -1) { | HTTPRequest req = new HTTPRequest(uri); if (path.equals("/") && req.isParameterSet("newbookmark")) { | public String processURI(String u, String overrideType) { URI uri; try { uri = new URI(u); } catch (URISyntaxException e1) { return null; } String path = uri.getPath(); if (path == null) { // Only fragment? if(uri.getScheme() == null && uri.getFragment() != null && uri.getHost() == null) { return "#" + URLEncoder.encode(uri.getFragment()); } return null; } // mailto: not supported yet - FIXME what to do with it? what queries are allowed? can it possibly hurt us? how to construct safely? etc if (path.startsWith("/") && path.substring(1).indexOf("/") == -1) { // allow links to the root to add bookmarks HTTPRequest req = new HTTPRequest(uri); String bookmark_key = req.getParam("newbookmark"); String bookmark_desc = req.getParam("desc"); bookmark_key = HTMLEncoder.encode(bookmark_key); bookmark_desc = HTMLEncoder.encode(bookmark_desc); return path+"?newbookmark="+bookmark_key+"&desc="+bookmark_desc; } else if(path.startsWith("/")) { // Try to make it into a FreenetURI try { FreenetURI furi = new FreenetURI(path.substring(1)); return processURI(furi, uri, overrideType); } catch (MalformedURLException e) { // Obviously not a Freenet URI! } } else { // Relative URI // FIXME resolve it // FIXME Note that we allow links to / inlines from fproxy services. // This is okay because we don't allow forms. HTTPRequest req = new HTTPRequest(uri); return finishProcess(req, overrideType, path); } Logger.normal(this, "Unrecognized URI, dropped: "+uri); return null; } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/4a8026a73261ce9697ca11f6e4f83fa1bec986e6/GenericReadFilterCallback.java/buggy/src/freenet/clients/http/filter/GenericReadFilterCallback.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1207,
3098,
12,
780,
582,
16,
514,
3849,
559,
13,
288,
202,
202,
3098,
2003,
31,
202,
202,
698,
288,
1082,
202,
1650,
273,
394,
3699,
12,
89,
1769,
202,
202,
97,
1044,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
3098,
12,
780,
582,
16,
514,
3849,
559,
13,
288,
202,
202,
3098,
2003,
31,
202,
202,
698,
288,
1082,
202,
1650,
273,
394,
3699,
12,
89,
1769,
202,
202,
97,
1044,
... |
cougaarHomeDirButtonSelected(); } | handleAddButtonSelected(); } | public void widgetSelected(SelectionEvent evt) { cougaarHomeDirButtonSelected(); } | 11868 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11868/934595c5af66b78b6f522941eb94568182fce7d6/CougaarCapabilityConfigurationPage.java/buggy/cougaaride/com.cougaarsoftware.cougaar.ide.ui/src/com/cougaarsoftware/cougaar/ide/ui/wizards/CougaarCapabilityConfigurationPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3604,
7416,
12,
6233,
1133,
6324,
13,
288,
10792,
1825,
637,
69,
297,
8684,
1621,
3616,
7416,
5621,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
3604,
7416,
12,
6233,
1133,
6324,
13,
288,
10792,
1825,
637,
69,
297,
8684,
1621,
3616,
7416,
5621,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
double min = DiscreteStatistics.min(values); double max = DiscreteStatistics.max(values); tree.setNodeAttribute(node, label, new Object[] { new Double(min), new Double(max) }); } | double min = DiscreteStatistics.min(values); double max = DiscreteStatistics.max(values); tree.setNodeAttribute(node, label, new Object[] { new Double(min), new Double(max) }); } | private void annotateRangeAttribute(MutableTree tree, NodeRef node, String label, double[] values) { double min = DiscreteStatistics.min(values); double max = DiscreteStatistics.max(values); tree.setNodeAttribute(node, label, new Object[] { new Double(min), new Double(max) }); } | 51824 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51824/079b1a6dceb61fc53151a1fd3d5890df4724b524/TreeAnnotator.java/clean/src/dr/app/tools/TreeAnnotator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
13795,
2655,
1499,
12,
19536,
2471,
2151,
16,
2029,
1957,
756,
16,
514,
1433,
16,
1645,
8526,
924,
13,
288,
5411,
1645,
1131,
273,
3035,
6883,
8569,
18,
1154,
12,
2372,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
13795,
2655,
1499,
12,
19536,
2471,
2151,
16,
2029,
1957,
756,
16,
514,
1433,
16,
1645,
8526,
924,
13,
288,
5411,
1645,
1131,
273,
3035,
6883,
8569,
18,
1154,
12,
2372,
1769,
... |
getImpl().setOption(SocketOptions.SO_LINGER, Boolean.valueOf(false)); | getImpl().setOption(SocketOptions.SO_LINGER, Integer.valueOf(-1)); | public void setSoLinger(boolean on, int linger) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); if (on) { if (linger < 0) throw new IllegalArgumentException("SO_LINGER must be >= 0"); if (linger > 65535) linger = 65535; getImpl().setOption(SocketOptions.SO_LINGER, new Integer(linger)); } else getImpl().setOption(SocketOptions.SO_LINGER, Boolean.valueOf(false)); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/707979fc1851cc48342c3fbf08245c69430ca2c9/Socket.java/clean/java/net/Socket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
10225,
48,
6658,
12,
6494,
603,
16,
509,
328,
6658,
13,
1216,
8758,
503,
225,
288,
565,
309,
261,
291,
7395,
10756,
1377,
604,
394,
8758,
503,
2932,
7814,
353,
4375,
886... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10225,
48,
6658,
12,
6494,
603,
16,
509,
328,
6658,
13,
1216,
8758,
503,
225,
288,
565,
309,
261,
291,
7395,
10756,
1377,
604,
394,
8758,
503,
2932,
7814,
353,
4375,
886... |
List preStyles = DEUtil.getMetaDataDictionary( ) .getPredefinedStyles( ); | List preStyles = DEUtil.getMetaDataDictionary( ).getPredefinedStyles( ); | private String[] getPredefinedStyeNames( ) { List preStyles = DEUtil.getMetaDataDictionary( ) .getPredefinedStyles( ); if ( preStyles == null ) { return new String[]{}; } String[] names = new String[preStyles.size( )]; for ( int i = 0; i < preStyles.size( ); i++ ) { names[i] = ( (PredefinedStyle) preStyles.get( i ) ).getName( ); } Arrays.sort( names ); return names; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/5394a3ba0ae550258918d0da04a99b5c37a05b64/GeneralPreferencePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/GeneralPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
12822,
2178,
510,
20513,
1557,
12,
262,
202,
95,
202,
202,
682,
675,
9725,
273,
2030,
1304,
18,
588,
6998,
10905,
12,
262,
9506,
202,
18,
588,
1386,
2178,
9725,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
12822,
2178,
510,
20513,
1557,
12,
262,
202,
95,
202,
202,
682,
675,
9725,
273,
2030,
1304,
18,
588,
6998,
10905,
12,
262,
9506,
202,
18,
588,
1386,
2178,
9725,
12... |
if (n.bitLength() == L && Prime2.isProbablePrime(q) && q.gcd(e).equals(ONE)) { | if (n.bitLength() == L && q.isProbablePrime(80) && q.gcd(e).equals(ONE)) | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper = TWO.pow(M).subtract(ONE); byte[] kb = new byte[(M + 7) / 8]; // enough bytes to frame M bits step1: while (true) { nextRandomBytes(kb); p = new BigInteger(1, kb).setBit(0); if (p.compareTo(lower) >= 0 && p.compareTo(upper) <= 0 && Prime2.isProbablePrime(p) && p.gcd(e).equals(ONE)) { break step1; } } // 2. Generate a prime q such that the product of p and q is an L-bit // number, and such that GCD(q, e) = 1 step2: while (true) { nextRandomBytes(kb); q = new BigInteger(1, kb).setBit(0); n = p.multiply(q); if (n.bitLength() == L && Prime2.isProbablePrime(q) && q.gcd(e).equals(ONE)) { break step2; } // TODO: test for p != q } // TODO: ensure p < q // 3. Put n = pq. The public key is (n, e). // 4. Compute the parameters necessary for the private key K (see // Section 2.2). BigInteger phi = p.subtract(ONE).multiply(q.subtract(ONE)); d = e.modInverse(phi); // 5. Output the public key and the private key. PublicKey pubK = new GnuRSAPublicKey(preferredFormat, n, e); PrivateKey secK = new GnuRSAPrivateKey(preferredFormat, p, q, e, d); KeyPair result = new KeyPair(pubK, secK); log.exiting(this.getClass().getName(), "generate", result); return result; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
28968,
2103,
1435,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
7163,
8863,
565,
10246,
293,
16,
1043,
16,
290,
16,
302,
31,
565,
368,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28968,
2103,
1435,
225,
288,
565,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
7163,
8863,
565,
10246,
293,
16,
1043,
16,
290,
16,
302,
31,
565,
368,
404,
... |
public FSClosestCopy(FSRevisionNode newRevNode, String newPath){ revNode = newRevNode; path = newPath; | public FSClosestCopy(){ | public FSClosestCopy(FSRevisionNode newRevNode, String newPath){ revNode = newRevNode; path = newPath; } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/3de4e7e298b05186659154d8fdb3899509e55875/FSClosestCopy.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/fs/FSClosestCopy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
478,
2312,
383,
7781,
2951,
12,
4931,
7939,
907,
394,
10070,
907,
16,
514,
14954,
15329,
202,
202,
9083,
907,
273,
394,
10070,
907,
31,
202,
202,
803,
273,
14954,
31,
202,
97,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
478,
2312,
383,
7781,
2951,
12,
4931,
7939,
907,
394,
10070,
907,
16,
514,
14954,
15329,
202,
202,
9083,
907,
273,
394,
10070,
907,
31,
202,
202,
803,
273,
14954,
31,
202,
97,... |
} finally { | } finally { | public MetaData getMetaData(String namespaceUri) throws RepositoryException { MetaDataRegistry registry = null; try { Object obj = this.manager.lookup(MetaDataRegistry.ROLE); registry = (MetaDataRegistry) this.manager.lookup(MetaDataRegistry.ROLE); if (!registry.isRegistered(namespaceUri)) { throw new RepositoryException("The namespace [" + namespaceUri + "] is not registered!"); } } catch (ServiceException e) { throw new RepositoryException(e); } catch (DocumentException e) { throw new RepositoryException(e); } finally { if (registry != null) { this.manager.release(registry); } } MetaData meta = (MetaData) this.namespace2metadata.get(namespaceUri); if (meta == null) { meta = new SourceNodeMetaData(namespaceUri, this, this.manager); this.namespace2metadata.put(namespaceUri, meta); } return meta; } | 45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/0e919d02de37e966deb234a81962abc9d476e852/SourceNode.java/buggy/src/modules/sourcerepository/java/src/org/apache/lenya/cms/repository/SourceNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27512,
23028,
12,
780,
1981,
3006,
13,
1216,
13367,
288,
7734,
27512,
4243,
4023,
273,
446,
31,
3639,
775,
288,
5411,
1033,
1081,
273,
333,
18,
4181,
18,
8664,
12,
6998,
4243,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27512,
23028,
12,
780,
1981,
3006,
13,
1216,
13367,
288,
7734,
27512,
4243,
4023,
273,
446,
31,
3639,
775,
288,
5411,
1033,
1081,
273,
333,
18,
4181,
18,
8664,
12,
6998,
4243,
18,
... |
throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); | } finally { currentInstance.setInstanceDocument(backupInstanceDocument); | public void performDefaultAction(PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XFORMS_SUBMIT.equals(eventName) || XFormsEvents.XXFORMS_SUBMIT.equals(eventName)) { // 11.1 The xforms-submit Event // Bubbles: Yes / Cancelable: Yes / Context Info: None boolean isDeferredSubmissionSecondPass = false; try { // Make sure submission element info is extracted extractSubmissionElement(); final boolean isReplaceAll = replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isHandlingOptimizedGet = XFormsUtils.isOptimizeGetAllSubmission() && XFormsSubmissionUtils.isGet(method) && isReplaceAll; //noinspection UnnecessaryLocalVariable final boolean isDeferredSubmission = isReplaceAll; final boolean isDeferredSubmissionFirstPass = isDeferredSubmission && XFormsEvents.XFORMS_SUBMIT.equals(eventName) && !isHandlingOptimizedGet; isDeferredSubmissionSecondPass = isDeferredSubmission && !isDeferredSubmissionFirstPass; // Select node based on ref or bind final XFormsControls xformsControls = containingDocument.getXFormsControls(); xformsControls.setBinding(pipelineContext, submissionElement); // FIXME: the submission element is not a control... final Node currentNode = xformsControls.getCurrentSingleNode(); if (!(currentNode instanceof Document || currentNode instanceof Element)) { throw new OXFException("xforms:submission: single-node binding must refer to a document node or an element."); } final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Document initialDocumentToSubmit; if (!isDeferredSubmissionSecondPass) { // Create document to submit initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) { if (XFormsServer.logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); XFormsServer.logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); } throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { initialDocumentToSubmit = null; } // Deferred submission: end of the first pass if (isDeferredSubmissionFirstPass) { // When replace="all", we wait for the submission of an XXFormsSubmissionEvent from the client containingDocument.setClientActiveSubmission(this); return; } final Document documentToSubmit; if (isDeferredSubmissionSecondPass) { // Handle uploaded files if any final Element filesElement = (event instanceof XXFormsSubmissionEvent) ? ((XXFormsSubmissionEvent) event).getFilesElement() : null; if (filesElement != null) { for (Iterator i = filesElement.elements().iterator(); i.hasNext();) { final Element parameterElement = (Element) i.next(); final String name = parameterElement.element("name").getTextTrim(); final Element valueElement = parameterElement.element("value"); final String value = valueElement.getTextTrim(); final String paramValueType = Dom4jUtils.qNameToexplodedQName(Dom4jUtils.extractAttributeValueQName(valueElement, XMLConstants.XSI_TYPE_QNAME)); final String filename = parameterElement.element("filename").getTextTrim(); final String mediatype = parameterElement.element("content-type").getTextTrim(); final String size = parameterElement.element("content-length").getTextTrim(); final XFormsControls.UploadControlInfo uploadControl = (XFormsControls.UploadControlInfo) containingDocument.getObjectById(pipelineContext, name); if (uploadControl != null) { // in case of xforms:repeat, the name of the template will not match an existing control // Set value into the instance xformsControls.setBinding(pipelineContext, uploadControl); { final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, value, paramValueType); } // Handle filename if any if (uploadControl.getFilenameElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getFilenameElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, filename, null); xformsControls.popBinding(); } // Handle mediatype if any if (uploadControl.getMediatypeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getMediatypeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, mediatype, null); xformsControls.popBinding(); } // Handle file size if any if (uploadControl.getSizeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getSizeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, size, null); xformsControls.popBinding(); } } } } // Create document to submit documentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(documentToSubmit); if (!instanceSatisfiesValidRequired) {// currentInstance.readOut();// FIXME: DEBUG throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { // Don't recreate document documentToSubmit = initialDocumentToSubmit; } // Serialize // To support: application/xml, application/x-www-form-urlencoded, multipart/related, multipart/form-data final byte[] serializedInstance; final String serializedInstanceString; { if (XFormsSubmissionUtils.isPost(method) || XFormsSubmissionUtils.isPut(method)) { try { final Transformer identity = TransformerUtils.getIdentityTransformer(); TransformerUtils.applyOutputProperties(identity, "xml", version, null, null, encoding, omitxmldeclaration, standalone, indent, 4); // TODO: use cdata-section-elements final ByteArrayOutputStream os = new ByteArrayOutputStream(); identity.transform(new DocumentSource(documentToSubmit), new StreamResult(os)); serializedInstance = os.toByteArray(); } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing instance to XML.", e); } serializedInstanceString = null; } else if (XFormsSubmissionUtils.isGet(method)) { // Perform "application/x-www-form-urlencoded" serialization serializedInstanceString = createWwwFormUrlEncoded(documentToSubmit); serializedInstance = null; } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); // Result information ConnectionResult connectionResult = null; try { if (isHandlingOptimizedGet) { // GET with replace="all": we can optimize and tell the client to just load the URL connectionResult = doOptimizedGet(pipelineContext, serializedInstanceString); } else if (!NetUtils.urlHasProtocol(action) && (externalContext.getRequest().getContainerType().equals("portlet") || (externalContext.getRequest().getContainerType().equals("servlet") && (XFormsUtils.isOptimizeLocalSubmission() || isMethodOptimizedLocalSubmission()) && isReplaceAll))) { // This is an "optimized" submission, i.e. one that does not use an actual // protocol handler to access the resource // NOTE: Optimizing with include() for servlets doesn't allow detecting // errors caused by the included resource, so we don't allow this for now. // NOTE: For portlets, paths are served directly by the portlet, NOT as // resources. // Current limitations: // o Portlets cannot access resources outside the portlet except by using absolute URLs // o Servlets cannot access resources on the same serer but not in the current application // except by using absolute URLs final URI resolvedURI = XFormsUtils.resolveURI(submissionElement, action); connectionResult = XFormsSubmissionUtils.doOptimized(pipelineContext, externalContext, this, method, resolvedURI.toString(), mediatype, isReplaceAll, serializedInstance, serializedInstanceString); } else { // This is a regular remote submission going through a protocol handler // Absolute URLs or absolute paths are allowed to a local servlet final String resolvedURL = XFormsUtils.resolveURL(containingDocument, pipelineContext, submissionElement, false, action); connectionResult = XFormsSubmissionUtils.doRegular(pipelineContext, externalContext, method, resolvedURL, mediatype, isReplaceAll, serializedInstance, serializedInstanceString); } if (!connectionResult.dontHandleResponse) { // Handle response if (connectionResult.resultCode == 200) { // Sucessful response final boolean hasContent; { if (connectionResult.resultInputStream == null) { hasContent = false; } else { if (!connectionResult.resultInputStream.markSupported()) connectionResult.resultInputStream = new BufferedInputStream(connectionResult.resultInputStream); connectionResult.resultInputStream.mark(1); hasContent = connectionResult.resultInputStream.read() != -1; connectionResult.resultInputStream.reset(); } } if (hasContent) { // There is a body if (isReplaceAll) { // When we get here, we are in a mode where we need to send the reply // directly to an external context, if any. // "the event xforms-submit-done is dispatched" containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response if (connectionResult.resultHeaders != null) { for (Iterator i = connectionResult.resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward content to response NetUtils.copyStream(connectionResult.resultInputStream, response.getOutputStream()); } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_INSTANCE)) { final ByteArrayOutputStream resultByteArrayOutputStream = new ByteArrayOutputStream(); NetUtils.copyStream(connectionResult.resultInputStream, resultByteArrayOutputStream); byte[] submissionResponse = resultByteArrayOutputStream.toByteArray(); if (ProcessorUtils.isXMLContentType(connectionResult.resultMediaType)) { // Handling of XML media type try { final Transformer identity = TransformerUtils.getIdentityTransformer(); final LocationDocumentResult documentResult = new LocationDocumentResult(); identity.transform(new StreamSource(new ByteArrayInputStream(submissionResponse)), documentResult); final Document resultingInstanceDocument = documentResult.getDocument(); // Set new instance document to replace the one submitted final XFormsInstance replaceInstance = (replaceInstanceId == null) ? currentInstance : model.getInstance(replaceInstanceId); if (replaceInstance == null) { containingDocument.dispatchEvent(pipelineContext, new XFormsBindingExceptionEvent(XFormsModelSubmission.this)); } else { // Get repeat index information just before insertion final Map previousRepeatIdToIndex; { final Map map = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); previousRepeatIdToIndex = (map == null) ? null : new HashMap(map); } // Set new instance replaceInstance.setInstanceDocument(resultingInstanceDocument); // Mark all values as changed so that refresh sends appropriate events XFormsUtils.markAllValuesChanged(replaceInstance.getDocument()); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // "Once the XML instance data has been replaced, // the rebuild, recalculate, revalidate and refresh // operations are performed on the model, without // dispatching events to invoke those four // operations." model.doRebuild(pipelineContext); model.doRecalculate(pipelineContext); model.doRevalidate(pipelineContext); model.doRefresh(pipelineContext); // Update repeat indexes if necessary // The idea is that if a repeat index was set to 0 // (which can only happen when a repeat node-set is // empty) and instance replacement causes the // node-set to be non-empty, then the repeat index // must be set to the initial repeat index for that // repeat. if (previousRepeatIdToIndex != null) { final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final Map currentRepeatIdToIndex = currentControlsState.getRepeatIdToIndex(); final Map intialRepeatIdToIndex = currentControlsState.getDefaultRepeatIdToIndex(); final Map effectiveRepeatIdToIterations = currentControlsState.getEffectiveRepeatIdToIterations(); if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { for (Iterator i = previousRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer previouslIndex = (Integer) currentEntry.getValue();// final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); final Integer newIterations = (Integer) effectiveRepeatIdToIterations.get(repeatId); if (previouslIndex.intValue() == 0 && newIterations.intValue() > 0) { // Set index to defaul value final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId);// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, initialRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } else { // Just reset index and make sure it is within bounds// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, previousRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events// final Integer previousRepeatIndex = (Integer) previousRepeatIdToIndex.get(repeatId);// currentControlsState.updateRepeatIndex(repeatId, previousRepeatIndex.intValue()); final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId); currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } // TODO: Adjust controls ids that could have gone out of bounds? // adjustRepeatIndexes(pipelineContext, xformsControls); } } } // Notify that submission is done containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing XML to instance.", e); } } else { // Other media type throw new OXFException("Body received with non-XML media type for replace=\"instance\": " + connectionResult.resultMediaType); } } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_NONE)) { // Just notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } else { throw new OXFException("xforms:submission: invalid replace attribute: " + replace); } } else { // There is no body, notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } else if (connectionResult.resultCode == 302 || connectionResult.resultCode == 301) { // Got a redirect final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response // TODO: this is duplicated from above if (connectionResult.resultHeaders != null) { for (Iterator i = connectionResult.resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward redirect response.setStatus(connectionResult.resultCode); } else { // Error code received throw new OXFException("Error code received when submitting instance: " + connectionResult.resultCode); } } } finally { // Clean-up if (connectionResult != null) { connectionResult.close(); } } } catch (Throwable e) { if (isDeferredSubmissionSecondPass && XFormsUtils.isOptimizePostAllSubmission()) { // It doesn't serve any purpose here to dispatch an event, so we just propagate the exception throw new OXFException(e); } else { // Any exception will cause an error event to be dispatched containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitErrorEvent(XFormsModelSubmission.this, action, e)); } } } else if (XFormsEvents.XFORMS_BINDING_EXCEPTION.equals(eventName)) { // The default action for this event results in the following: Fatal error. throw new OXFException("Binding exception."); } } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/0d1166505c8e2f5bfe7c24e43c908b331cb9f07a/XFormsModelSubmission.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
1868,
1803,
12,
8798,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3073,
1868,
1803,
12,
8798,
1042,
5873,
1042,
16,
1139,
18529,
1133,
871,
13,
288,
3639,
727,
514,
7933,
273,
871,
18,
588,
24320,
5621,
3639,
309,
261,
60,
18529,
3783,
18,
... |
jjCheckNAddStates(92, 94); | jjCheckNAddStates(134, 136); | private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 36; 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 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(23); } else if ((0x100002600L & l) != 0L) { if (kind > 26) kind = 26; jjCheckNAdd(4); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); } else if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; else if (curChar == 45) jjCheckNAdd(23); else if (curChar == 39) jjCheckNAddStates(89, 91); else if (curChar == 34) jjCheckNAddStates(92, 94); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if ((0x100002600L & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAdd(4); break; case 5: if (curChar == 34) jjCheckNAddStates(92, 94); break; case 6: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddStates(92, 94); break; case 7: if (curChar == 34 && kind > 27) kind = 27; break; case 9: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(92, 94); break; case 10: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(95, 98); break; case 11: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(92, 94); break; case 12: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 13; break; case 13: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(11); break; case 14: if (curChar == 32) jjAddStates(75, 76); break; case 15: if (curChar == 10) jjCheckNAddStates(92, 94); break; case 16: if (curChar == 39) jjCheckNAddStates(89, 91); break; case 17: if ((0xffffff7fffffffffL & l) != 0L) jjCheckNAddStates(89, 91); break; case 19: if (curChar == 32) jjAddStates(13, 14); break; case 20: if (curChar == 10) jjCheckNAddStates(89, 91); break; case 21: if (curChar == 39 && kind > 27) kind = 27; break; case 22: if (curChar == 45) jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(23); break; case 25: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 60) kind = 60; jjstateSet[jjnewStateCnt++] = 25; break; case 26: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; break; case 30: if (curChar == 36 && kind > 13) kind = 13; break; case 32: if (curChar == 36) jjCheckNAddTwoStates(33, 34); break; case 34: if (curChar == 33 && kind > 14) kind = 14; break; case 35: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 60) kind = 60; jjCheckNAdd(25); } else if (curChar == 92) jjCheckNAddStates(99, 102); break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(92, 94); break; case 8: if (curChar == 92) jjAddStates(103, 107); break; case 9: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(92, 94); break; case 17: jjAddStates(89, 91); break; case 18: if (curChar == 92) jjAddStates(13, 14); break; case 24: case 25: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 60) kind = 60; jjCheckNAdd(25); break; case 27: if ((0x7fffffe07fffffeL & l) != 0L && kind > 61) kind = 61; break; case 28: if (curChar == 92) jjCheckNAddStates(99, 102); break; case 29: if (curChar == 92) jjCheckNAddTwoStates(29, 30); break; case 31: if (curChar == 92) jjCheckNAddTwoStates(31, 32); break; case 33: if (curChar == 92) jjAddStates(108, 109); 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 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; case 6: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(92, 94); break; case 17: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(89, 91); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 36 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
21,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
21,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.