rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
Thread.sleep(SLEEP); | public void testElapsedTimeCapture() throws InterruptedException { long elapsed = task1.getElapsedTime(); assertEquals(0, elapsed); MylarTaskListPlugin.getTaskListManager().activateTask(task1); Thread.sleep(SLEEP); elapsed = task1.getElapsedTime(); assertTrue("should be bigger than timeout", elapsed > TIMEOUT); MylarTaskListPlugin.getTaskListManager().deactivateTask(task1); Thread.sleep(SLEEP); long elapsedAfterDeactivation = task1.getElapsedTime(); assertTrue("should have accumulated some time: " + elapsedAfterDeactivation, elapsedAfterDeactivation > elapsed); Thread.sleep(SLEEP); long elapsedAfterInactivity = task1.getElapsedTime(); assertEquals("no accumulation if task inactive", elapsedAfterDeactivation, elapsedAfterInactivity); MylarPlugin.getContextManager().setInactivityTimeout(SLEEP*2); MylarTaskListPlugin.getTaskListManager().activateTask(task1); Thread.sleep(SLEEP); MylarTaskListPlugin.getTaskListManager().deactivateTask(task1); long elpasedAfterReactivation = task1.getElapsedTime(); assertTrue("time: " + (elpasedAfterReactivation - elapsedAfterDeactivation), elpasedAfterReactivation - elapsedAfterDeactivation >= SLEEP); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8d19288756b165b6940c13505ff6349cab4ad209/TaskActivityTimingTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskActivityTimingTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4884,
18,
19607,
12,
55,
900,
10541,
1769,
918,
4884,
18,
19607,
12,
55,
900,
10541,
1769,
1842,
28827,
950,
12372,
1435,
4884,
18,
19607,
12,
55,
900,
10541,
1769,
1216,
4884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4884,
18,
19607,
12,
55,
900,
10541,
1769,
918,
4884,
18,
19607,
12,
55,
900,
10541,
1769,
1842,
28827,
950,
12372,
1435,
4884,
18,
19607,
12,
55,
900,
10541,
1769,
1216,
4884,
... | |
assertEquals("", MylarTaskListPlugin.getMylarCorePrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND)); | assertEquals("", MylarTaskListPlugin.getMylarCorePrefs().getString( TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND)); | public void testRepositoryPersistanceAfterDelete() throws MalformedURLException { manager.clearRepositories(); assertEquals("", MylarTaskListPlugin.getMylarCorePrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND)); TaskRepository repository = new TaskRepository(DEFAULT_KIND, DEFAULT_URL); manager.addRepository(repository); assertFalse(MylarTaskListPlugin.getMylarCorePrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND).equals("")); TaskRepository repository2 = new TaskRepository(DEFAULT_KIND, ANOTHER_URL); manager.addRepository(repository2); String saveString = MylarTaskListPlugin.getMylarCorePrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND); assertNotNull(saveString); manager.removeRepository(repository2); String newSaveString = MylarTaskListPlugin.getMylarCorePrefs().getString(TaskRepositoryManager.PREF_REPOSITORIES + DEFAULT_KIND); assertFalse(saveString.equals(newSaveString)); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/34291e55186f19a45f70710cb308ca45506ab4ef/TaskRepositoryManagerTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskRepositoryManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3305,
12771,
1359,
4436,
2613,
1435,
1216,
20710,
288,
202,
202,
4181,
18,
8507,
18429,
5621,
202,
202,
11231,
8867,
2932,
3113,
8005,
7901,
2174,
682,
3773,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3305,
12771,
1359,
4436,
2613,
1435,
1216,
20710,
288,
202,
202,
4181,
18,
8507,
18429,
5621,
202,
202,
11231,
8867,
2932,
3113,
8005,
7901,
2174,
682,
3773,
18,
588,
... |
for (int i = 0; i < fileName.length; i++) { rep.saveStepAttribute(id_transformation, id_step, i, "file_name", fileName[i]); rep.saveStepAttribute(id_transformation, id_step, i, "file_mask", fileMask[i]); rep.saveStepAttribute(id_transformation, id_step, i, "file_required", fileRequired[i]); } rep.saveStepAttribute(id_transformation, id_step, "file_type", fileType); rep.saveStepAttribute(id_transformation, id_step, "file_zipped", zipped); | for (int i = 0; i < fileName.length; i++) { rep.saveStepAttribute(id_transformation, id_step, i, "file_name", fileName[i]); rep.saveStepAttribute(id_transformation, id_step, i, "file_mask", fileMask[i]); rep.saveStepAttribute(id_transformation, id_step, i, "file_required", fileRequired[i]); } rep.saveStepAttribute(id_transformation, id_step, "file_type", fileType); rep.saveStepAttribute(id_transformation, id_step, "file_zipped", zipped); | public void saveRep(Repository rep, long id_transformation, long id_step) throws KettleException { try { rep.saveStepAttribute(id_transformation, id_step, "get_from_chef", getFileFromChef); rep.saveStepAttribute(id_transformation, id_step, "separator", separator); rep.saveStepAttribute(id_transformation, id_step, "enclosure", enclosure); rep.saveStepAttribute(id_transformation, id_step, "enclosure_breaks", breakInEnclosureAllowed); rep.saveStepAttribute(id_transformation, id_step, "escapechar", escapeCharacter); rep.saveStepAttribute(id_transformation, id_step, "header", header); rep.saveStepAttribute(id_transformation, id_step, "nr_headerlines", nrHeaderLines); rep.saveStepAttribute(id_transformation, id_step, "footer", footer); rep.saveStepAttribute(id_transformation, id_step, "nr_footerlines", nrFooterLines); rep.saveStepAttribute(id_transformation, id_step, "line_wrapped", lineWrapped); rep.saveStepAttribute(id_transformation, id_step, "nr_wraps", nrWraps); rep.saveStepAttribute(id_transformation, id_step, "layout_paged", layoutPaged); rep.saveStepAttribute(id_transformation, id_step, "nr_lines_per_page", nrLinesPerPage); rep.saveStepAttribute(id_transformation, id_step, "nr_lines_doc_header", nrLinesDocHeader); rep.saveStepAttribute(id_transformation, id_step, "noempty", noEmptyLines); rep.saveStepAttribute(id_transformation, id_step, "include", includeFilename); rep.saveStepAttribute(id_transformation, id_step, "include_field", filenameField); rep.saveStepAttribute(id_transformation, id_step, "rownum", includeRowNumber); rep.saveStepAttribute(id_transformation, id_step, "rownum_field", rowNumberField); rep.saveStepAttribute(id_transformation, id_step, "format", fileFormat); rep.saveStepAttribute(id_transformation, id_step, "encoding", encoding); rep.saveStepAttribute(id_transformation, id_step, "limit", rowLimit); for (int i = 0; i < fileName.length; i++) { rep.saveStepAttribute(id_transformation, id_step, i, "file_name", fileName[i]); rep.saveStepAttribute(id_transformation, id_step, i, "file_mask", fileMask[i]); rep.saveStepAttribute(id_transformation, id_step, i, "file_required", fileRequired[i]); } rep.saveStepAttribute(id_transformation, id_step, "file_type", fileType); rep.saveStepAttribute(id_transformation, id_step, "file_zipped", zipped); for (int i = 0; i < filter.length ; i++) { rep.saveStepAttribute(id_transformation, id_step, i, "filter_position", filter[i].getFilterPosition()); rep.saveStepAttribute(id_transformation, id_step, i, "filter_string", filter[i].getFilterString()); rep.saveStepAttribute(id_transformation, id_step, i, "filter_is_last_line", filter[i].isFilterLastLine()); } for (int i = 0; i < inputFields.length; i++) { TextFileInputField field = inputFields[i]; rep.saveStepAttribute(id_transformation, id_step, i, "field_name", field.getName()); rep.saveStepAttribute(id_transformation, id_step, i, "field_type", field.getTypeDesc()); rep.saveStepAttribute(id_transformation, id_step, i, "field_format", field.getFormat()); rep.saveStepAttribute(id_transformation, id_step, i, "field_currency", field.getCurrencySymbol()); rep.saveStepAttribute(id_transformation, id_step, i, "field_decimal", field.getDecimalSymbol()); rep.saveStepAttribute(id_transformation, id_step, i, "field_group", field.getGroupSymbol()); rep.saveStepAttribute(id_transformation, id_step, i, "field_nullif", field.getNullString()); rep.saveStepAttribute(id_transformation, id_step, i, "field_ifnull", field.getIfNullValue()); rep.saveStepAttribute(id_transformation, id_step, i, "field_position", field.getPosition()); rep.saveStepAttribute(id_transformation, id_step, i, "field_length", field.getLength()); rep.saveStepAttribute(id_transformation, id_step, i, "field_precision", field.getPrecision()); rep.saveStepAttribute(id_transformation, id_step, i, "field_trim_type", field.getTrimTypeCode()); rep.saveStepAttribute(id_transformation, id_step, i, "field_repeat", field.isRepeated()); } rep.saveStepAttribute(id_transformation, id_step, "error_ignored", errorIgnored); rep.saveStepAttribute(id_transformation, id_step, "error_line_skipped", errorLineSkipped); rep.saveStepAttribute(id_transformation, id_step, "error_count_field", errorCountField); rep.saveStepAttribute(id_transformation, id_step, "error_fields_field", errorFieldsField); rep.saveStepAttribute(id_transformation, id_step, "error_text_field", errorTextField); rep.saveStepAttribute(id_transformation, id_step, "bad_line_files_dest_dir", warningFilesDestinationDirectory); rep.saveStepAttribute(id_transformation, id_step, "bad_line_files_ext", warningFilesExtension); rep.saveStepAttribute(id_transformation, id_step, "error_line_files_dest_dir", errorFilesDestinationDirectory); rep.saveStepAttribute(id_transformation, id_step, "error_line_files_ext", errorFilesExtension); rep.saveStepAttribute(id_transformation, id_step, "line_number_files_dest_dir", lineNumberFilesDestinationDirectory); rep.saveStepAttribute(id_transformation, id_step, "line_number_files_ext", lineNumberFilesExtension); rep.saveStepAttribute(id_transformation, id_step, "date_format_lenient", dateFormatLenient); rep.saveStepAttribute(id_transformation, id_step, "date_format_locale", dateFormatLocale.toString()); } catch (Exception e) { throw new KettleException("Unable to save step information to the repository for id_step=" + id_step, e); } } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/dec476e31491451da3a8cd348e87c60e7e36c715/TextFileInputMeta.java/clean/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
18933,
12,
3305,
2071,
16,
1525,
612,
67,
2338,
1471,
16,
1525,
612,
67,
4119,
13,
1216,
1475,
278,
5929,
503,
565,
288,
3639,
775,
3639,
288,
5411,
2071,
18,
5688,
416... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
18933,
12,
3305,
2071,
16,
1525,
612,
67,
2338,
1471,
16,
1525,
612,
67,
4119,
13,
1216,
1475,
278,
5929,
503,
565,
288,
3639,
775,
3639,
288,
5411,
2071,
18,
5688,
416... |
continue; } | continue; } | public void testOASISMicrosoftConformanceSuite() throws IOException, ParsingException, XSLException { Builder builder = new Builder(); NodeFactory stripper = new StrippingFactory(); Builder strippingBuilder = new Builder(stripper); File base = new File("data/oasis-xslt-testsuite/TESTS/"); File catalog = new File(base, "catalog.xml"); // The test suite need to be installed separately. If we can't // find the catalog, we just don't run these tests. if (catalog.exists()) { Document doc = builder.build(catalog); Element testsuite = doc.getRootElement(); Elements submitters = testsuite.getChildElements("test-catalog"); Element submitter = submitters.get(1); Elements testcases = submitter.getChildElements("test-case"); for (int j = 0; j < testcases.size(); j++) { Element testcase = testcases.get(j); String id = testcase.getAttributeValue("id"); // System.out.println(id); File root = new File(base, "MSFT_Conformance_Tests"); root = new File(root, testcase.getFirstChildElement("file-path").getValue()); File input = null; File style = null; File output = null; Element scenario = testcase.getFirstChildElement("scenario"); Elements inputs = scenario.getChildElements("input-file"); for (int k = 0; k < inputs.size(); k++) { Element file = inputs.get(k); String role = file.getAttributeValue("role"); if ("principal-data".equals(role)) { input = new File(root, file.getValue()); } else if ("principal-stylesheet".equals(role)) { style = new File(root, file.getValue()); } } // end for Elements outputs = scenario.getChildElements("output-file"); for (int k = 0; k < outputs.size(); k++) { Element file = outputs.get(k); String role = file.getAttributeValue("role"); if ("principal".equals(role)) { // Fix up OASIS catalog bugs File parent = new File(root.getParent()); parent = new File(parent, "REF_OUT"); parent = new File(parent, root.getName()); String outputFileName = file.getValue(); output = new File(parent, outputFileName); } } // end for try { Document styleDoc = builder.build(style); boolean strip = indentYes(styleDoc); if ("BVTs_bvt002".equals(id) || "BVTs_bvt077".equals(id)) { // This has been fixed at least as of Xalan 2.6.0. // However, it's a bug in earlier versions of Xalan // including the one bundled with the JDK 1.4.2_05 continue; } else if ("XSLTFunctions_Bug76984".equals(id)) { // This has been fixed at least as of Xalan 2.6.0. // However, it's a bug in earlier versions of Xalan // including the one bundled with the JDK 1.4.2_05 continue; } else if ("BVTs_bvt020".equals(id) || "BVTs_bvt022".equals(id) || "BVTs_bvt024".equals(id) || "BVTs_bvt058".equals(id)) { // Either a test suite bug, or a recoverable // error Xalan doesn't recover from. continue; } else if ("BVTs_bvt038".equals(id) || "Namespace-alias__91785".equals(id) || "Namespace-alias__91786".equals(id)) { // a recoverable error Xalan doesn't recover from properly // http://nagoya.apache.org/jira/browse/XALANJ-1957 continue; } else if ("Namespace_XPath_CopyNamespaceNodeToOutput".equals(id)) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1959 continue; } else if ("Namespace-alias_Namespace-Alias_WithinRTF".equals(id)) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1960 continue; } else if ("Completeness__84361".equals(id) || "Namespace-alias__91781".equals(id) || "Namespace-alias__91782".equals(id) || "Namespace-alias_Namespace-Alias_Test1".equals(id) || "Namespace-alias_Namespace-Alias_Test2".equals(id) ) { // a recoverable error Xalan doesn't recover from continue; } else if ("Output__84008".equals(id)) { // a recoverable error Xalan doesn't recover from continue; } else if ("XSLTFunctions_ElementAvailFunctionFalseTest".equals(id)) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1961 continue; } else if ("XSLTFunctions_GenereateIdAppliedToNamespaceNodesOnDifferentElements".equals(id)) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1962 continue; } else if ("XSLTFunctions__specialCharInPattern".equals(id)) { // a recoverable error Xalan doesn't recover from continue; } else if ("XSLTFunctions_DocumentFunctionWithAbsoluteArgument".equals(id)) { // test case bug; bad URL passed to document function continue; } else if ("BVTs_bvt052".equals(id) || "Keys_PerfRepro2".equals(id)) { // Requires a non-standard extension function continue; } else if ("BVTs_bvt044".equals(id)) { // a recoverable error Xalan doesn't recover from // http://nagoya.apache.org/jira/browse/XALANJ-1957 continue; } else if ("BVTs_bvt039".equals(id)) { // Xalan bug continue; } else if ("BVTs_bvt033".equals(id) || "BVTs_bvt034".equals(id)) { // Test suite bug; 2.0 is not unrecognized continue; } else if ("Text__78274".equals(id) || "Text__78276".equals(id)) { // Test suite bug; no xsl:preserve-space attribute continue; } else if ("XSLTFunctions__minimumValue".equals(id) || "XSLTFunctions__minimalValue".equals(id)) { // test suite bug continue; } else if ("Errors_err073".equals(id)) { // Xalan bug: StackOverflowError continue; } else if ("Sorting_SortExprWithCurrentInsideForEach1".equals(id)) { // Xalan bug: XXX verify and report continue; } else if ("BVTs_bvt041".equals(id) || "BVTs_bvt063".equals(id) || "BVTs_bvt070".equals(id)) { // Xalan bundled with JDK 1.4.2_05 does not recover // from this error involving multiple conflicting // xsl:output at same import precedence, though // 2.6.0 does continue; } Document inputDoc = builder.build(input); if (id.equals("Whitespaces__91444")) { System.err.println(inputDoc.toXML()); } XSLTransform xform; if (strip) xform = new XSLTransform(styleDoc, stripper); else xform = new XSLTransform(styleDoc); Nodes result = xform.transform(inputDoc); if (output == null) { if ("Attributes__89463".equals(id) || "Attributes__89465".equals(id)) { // Processors are allowed to recover from // this problem. assertEquals(0, result.size()); } else if ("Attributes__89464".equals(id)) { // Processors are allowed to recover from // this problem. assertEquals(0, ((Element) result.get(0)).getAttributeCount()); } else if ("Namespace-alias__91772".equals(id) || "Namespace-alias__91774".equals(id) || "Namespace-alias__91780".equals(id) || "Namespace-alias__91790".equals(id) || "Namespace-alias__91791".equals(id) || "Sorting__84006".equals(id) || "Sorting__91754".equals(id) ) { // Processors are allowed to recover from // this problem. continue; } else if (id.startsWith("Errors_")) { // Processors are allowed to recover from // most of these problems. } else if (id.startsWith("FormatNumber")) { // Processors are allowed to recover from // most of these problems. } else if ("BVTs_bvt074".equals(id)) { // Processors are allowed to recover from // this problem. assertEquals(0, result.get(0).getChildCount()); } else if ("XSLTFunctions__currency".equals(id) || "XSLTFunctions__mixingInvalids".equals(id)) { // Processors are allowed to recover from // this problem. continue; } else if ("Attributes_Attribute_UseXmlnsNsAsNamespaceForAttribute".equals(id) || "Attributes_Attribute_UseXmlnsAsNamespaceForAttributeImplicitly".equals(id) || "Elements_Element_UseXslElementWithNameSpaceAttrEqualToXmlnsUri".equalsIgnoreCase(id) || "Elements_Element_UseXslElementWithNameSpaceEqualToXmlnsUri".equalsIgnoreCase(id) ) { // test follows namespace errata we don't accept } else if ("AttributeSets_RefToUndefinedAttributeSet".equals(id)) { // I think the test case is wrong; I see // nothing in the spec that says this is // an error. } else if ("Namespace__77665".equals(id) || "Namespace__77675".equals(id)) { // I think the test case is wrong; I see // nothing in the spec that says this is // an error. See // http://lists.oasis-open.org/archives/xslt-conformance-comment/200409/msg00007.html } else if ("Variables__84633".equals(id) || "Variables__84634".equals(id) || "Variables__84697".equals(id) || "Variables__84710".equals(id) ) { // An error. See 11.4 // but are processors allowed to recover? // Hmm according to section 17, the // processor must signal these errors // and may but need not recover from them. // Xalan recovers. Microsoft doesn't. } else if ("Output__78176".equals(id)) { // I think the test case is wrong; I see // nothing in the spec that says this is // an error. } else if (id.startsWith("XSLTFunctions__100")) { // I think these test cases are all wrong // except perhaps XSLTFunctions__10026; I // see nothing in the spec that says this // is an error. These are all about the // unparsed-entity-uri function. } else if ("Namespace__78027".equals(id)) { // Test case is incorrect. This should // operate in forwards compatible mode. // Xalan gets this right. } else if ("Output_Output_UseStandAloneAttributeWithMultipleRoots".equals(id)) { // Error only appears when document is serialized; // not before } else { // transform should have failed fail("Transformed " + style + "\n id: " + testcase.getAttributeValue("id")); } } else { try { if ("Attributes_xsl_attribute_dup_attr_with_namespace_conflict".equals(id) || "BVTs_bvt057".equals(id)) { // This test case requires namespace prefix rewriting, // so the output won't be exactly the same between processors continue; } else if ("Comment_DisableOutputEscaping_XslTextInXslComment".equals(id)) { // Test case output is wrong continue; } else if ("Output__77927".equals(id) || "Output__77928".equals(id) || "Output__84304".equals(id) || "Output__84305".equals(id) || "Output__84312".equals(id) || "Output__84619".equals(id) || "Output__84620".equals(id) || "Output_EntityRefInAttribHtml".equals(id) ) { // These test cases have incorrect line // breaks in the reference output. continue; } else if ("Output_Modified84433".equals(id)) { // This test case uses disable output escaping // so the results don't match up continue; } else if ("Sorting_Sort_SortTextWithNonTextCharacters".equals(id)) { // Xalan and MSXML don't sort non alphabetic characters // exactly the same, but that's legal continue; } else if ("Text_DoeWithCdataInText".equals(id)) { // Requires disable-output-escaping continue; } else if ("Whitespaces__91443".equals(id) || "Whitespaces__91444".equals(id)) { // Xalan bug // See http://nagoya.apache.org/jira/browse/XALANJ-1969 continue; } else if ("AVTs__77591".equals(id)) { // test suite bug; doesn't escape tabs in output. See // http://lists.oasis-open.org/archives/xslt-conformance-comment/200409/msg00017.html } else if ("Keys_MultipltKeysInclude".equals(id) ) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1956 } else if ("Keys_PerfRepro3".equals(id) ) { // Suspected Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1955 } else if ("Number__84683".equals(id)) { // test suite bug } else if ("Number__84687".equals(id)) { // test suite bug } else if ("Number__84692".equals(id)) { // test suite bug } else if ("Number__84694".equals(id)) { // Test suite expects Roman number for zero // to be the empty string while Xalan uses 0 } else if ("Number__84699".equals(id)) { // Xalan bug } else if ("Number__84700".equals(id)) { // Xalan bug; extra whitespace. Possibly // the same as } else if ("Number__84716".equals(id)) { // Xalan doesn't support Russian // number formatting } else if ("Number__84717".equals(id)) { // Xalan supports more Japanese than the // test case does } else if ("Number__84722".equals(id) || "Number__84723".equals(id) || "Number__84724".equals(id) || "Number__84725".equals(id) ) { // Acceptable locale support differences } else if ("Number_NaNOrInvalidValue".equals(id)) { // Double bug! Test case is wrong and // Xalan gets this wrong! } else if ("Number_ValueAsNodesetTest1".equals(id) || "Number_ValueAsEmptyNodeset".equals(id)) { // Another double bug! Test case is wrong and // Xalan gets this wrong! } else if (id.equals("XSLTFunctions_BooleanFunction")) { // I think the test case is wrong; or perhaps unspecified } else if (id.equals("XSLTFunctions_TestIdFuncInComplexStruct")) { // I think the Xalan output white space is wrong; // http://nagoya.apache.org/jira/browse/XALANJ-1947 } else { Document expectedResult; if (strip) expectedResult = strippingBuilder.build(output); else expectedResult = builder.build(output); Document actualResult = XSLTransform.toDocument(result); assertEquals("Mismatch with " + id, expectedResult, actualResult); } } // end try catch (ParsingException ex) { // a few of the test cases generate // text or HTML output rather than // well-formed XML. For the moment, I // just skip these. continue; } catch (IllegalAddException ex) { // A few of the test cases generate // incomplete documents so we can't // compare output. Perhaps I could // wrap in an element, then get children // to build a Node object rather than a // Document???? i.e. a fragment parser? // Could use a SequenceInputStream to hack this } } // end else } // end try catch (MalformedURIException ex) { // several stylesheets use relative namespace URIs XOM // does not support; skip the test } catch (FileNotFoundException ex) { // The catalog doesn't always match what's on disk } catch (UnknownHostException ex) { // A few tests like ProcessingInstruction__78197 // point to external DTD subsets that can't be loaded } catch (ParsingException ex) { String operation = scenario.getAttributeValue("operation"); if (!"execution-error".equals(operation)) { if ("Namespace_XPath_PredefinedPrefix_XML".equals(id)) { // uses relative namespace URIs } else if ("Sorting__78191".equals(id) || "Text__78245".equals(id) || "Text__78273".equals(id) || "Text__78281".equals(id) ) { // binds XML namespace to prefix other than xml } else { System.err.println(id + ": " + ex.getMessage()); throw ex; } } } catch (XSLException ex) { // If the output was null the transformation // was expected to fail if (output != null) { Throwable cause = ex.getCause(); if ("Attributes__81487".equals(id) || "Attributes__81551".equals(id)) { // spec inconsistency; see // http://lists.w3.org/Archives/Public/xsl-editors/2004JulSep/0003.html continue; } else if (cause instanceof MissingResourceException) { // Xalan bug; // http://nagoya.apache.org/jira/secure/ManageAttachments.jspa?id=27366 } else if ("Include_Include_IncludedStylesheetShouldHaveDifferentBaseUri".equals(id)) { // This test case is wrong; Uses backslash in URI } else if ("Elements__89070".equals(id)) { // bug fixed in later versions of Xalan } else if ("Namespace-alias_Namespace-Alias_NSAliasForDefaultWithExcludeResPref".equals(id)) { // This test case is wrong; it uses a backslash in a URI } else if ("Variables_VariableWithinVariable".equals(id)) { // Xalan does not recover from this one } else if ("BVTs_bvt054".equals(id)) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1952 continue; } else if ("BVTs_bvt094".equals(id)) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1953 continue; } else if ("Output__78177".equals(id) || "Output__84009".equals(id)) { // Xalan does not recover from this error // which involves duplicate and possibly conflicting xsl:output elements continue; } else if ("Comment_Comment_CDATAWithSingleHyphen".equals(id) || "Comment_Comment_DoubleHypenEntitywithDelCharacter".equals(id) || "Comment_Comment_LineOfAllHyphens".equals(id) || "Comment_Comment_SingleHyphenOnly".equals(id) || "Comment_Comment_DoubleHyphenONLY".equals(id)) { // Begins comment data with hyphen, which XOM doesn't allow continue; } else if ("ProcessingInstruction_ValueOfandTextWithDoeInProcInstr".equals(id)) { // Begins processing instruction data with white space, which XOM doesn't allow continue; } else if ("Elements__89716".equals(id) || "Elements__89717".equals(id) || "Elements__89718".equals(id) || "Output__84309".equals(id) || "Namespace__77670".equals(id)) { // Xalan doesn't recover from these, though recovery is allowed continue; } else if ("Output__84306".equals(id)) { // Xalan bug // http://nagoya.apache.org/jira/browse/XALANJ-1954 continue; } else if ("Output__84014".equals(id)) { // Fixed in later version of Xalan than is bundled with JDK continue; } else if (cause != null && cause instanceof MalformedURIException) { // Some of the tests generate relative namespace URIs // XOM doesn't support continue; } else { System.err.println(id + ": " + ex.getMessage()); System.err.println("in " + style); if (cause != null) { System.err.println("cause: " + cause.getMessage()); } throw ex; } } } // end catch catch (XMLException ex) { if ("Text_modified78309".equals(id)) { // output is not a full document } else { System.err.println(id); throw ex; } } } // end for } // end if } | 626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/ba0aaac5fea916ae60e72ab20b7a75b9e8d8fe96/XSLTransformTest.java/clean/src/nu/xom/tests/XSLTransformTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
28202,
2320,
7303,
4616,
9269,
442,
687,
1359,
13587,
1435,
3639,
1216,
1860,
16,
19761,
503,
16,
17243,
503,
288,
7734,
5008,
2089,
273,
394,
5008,
5621,
3639,
2029,
1733,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28202,
2320,
7303,
4616,
9269,
442,
687,
1359,
13587,
1435,
3639,
1216,
1860,
16,
19761,
503,
16,
17243,
503,
288,
7734,
5008,
2089,
273,
394,
5008,
5621,
3639,
2029,
1733,... |
OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); if (fn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, FunctionNode.FUNCTION_STATEMENT); | OptFunctionNode ofn = OptFunctionNode.get(scriptOrFn, i); if (ofn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(ofn, FunctionNode.FUNCTION_STATEMENT); | private void generatePrologue() { int directParameterCount = -1; if (inDirectCallFunction) { directParameterCount = scriptOrFn.getParamCount(); // 0 is reserved for function Object 'this' // 1 is reserved for context // 2 is reserved for parentScope // 3 is reserved for script 'this' short jReg = 4; for (int i = 0; i != directParameterCount; ++i) { OptLocalVariable lVar = fnCurrent.getVar(i); lVar.assignJRegister(jReg); jReg += 3; // 3 is 1 for Object parm and 2 for double parm } if (!fnCurrent.getParameterNumberContext()) { // make sure that all parameters are objects itsForcedObjectParameters = true; for (int i = 0; i != directParameterCount; ++i) { OptLocalVariable lVar = fnCurrent.getVar(i); cfw.addALoad(lVar.getJRegister()); cfw.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isObjectLabel = cfw.acquireLabel(); cfw.add(ByteCode.IF_ACMPNE, isObjectLabel); cfw.addDLoad(lVar.getJRegister() + 1); addDoubleWrap(); cfw.addAStore(lVar.getJRegister()); cfw.markLabel(isObjectLabel); } } } if (fnCurrent != null && directParameterCount == -1 && (!codegen.itsUseDynamicScope || fnCurrent.getIgnoreDynamicScope())) { // Unless we're either in a direct call or using dynamic scope, // use the enclosing scope of the function as our variable object. cfw.addALoad(funObjLocal); cfw.addInvoke(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()Lorg/mozilla/javascript/Scriptable;"); cfw.addAStore(variableObjectLocal); } if (directParameterCount > 0) { for (int i = 0; i < (3 * directParameterCount); i++) reserveWordLocal(i + 4); // reserve 'args' } // reserve 'args[]' argsLocal = reserveWordLocal(directParameterCount <= 0 ? 4 : (3 * directParameterCount) + 4); if (fnCurrent == null) { // See comments in visitRegexp if (scriptOrFn.getRegexpCount() != 0) { scriptRegexpLocal = getNewWordLocal(); codegen.pushRegExpArray(cfw, scriptOrFn, contextLocal, variableObjectLocal); cfw.addAStore(scriptRegexpLocal); } } if (fnCurrent != null && fnCurrent.getCheckThis()) { // Nested functions must check their 'this' value to // insure it is not an activation object: // see 10.1.6 Activation Object cfw.addALoad(thisObjLocal); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); cfw.addAStore(thisObjLocal); } if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = scriptOrFn.getParamCount(); if (parmCount > 0 && directParameterCount < 0) { // Set up args array // check length of arguments, pad if need be cfw.addALoad(argsLocal); cfw.add(ByteCode.ARRAYLENGTH); cfw.addPush(parmCount); int label = cfw.acquireLabel(); cfw.add(ByteCode.IF_ICMPGE, label); cfw.addALoad(argsLocal); cfw.addPush(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I" +")[Ljava/lang/Object;"); cfw.addAStore(argsLocal); cfw.markLabel(label); } // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i < fnCurrent.getVarCount(); i++) { OptLocalVariable lVar = fnCurrent.getVar(i); if (lVar.isNumber()) { lVar.assignJRegister(getNewWordPairLocal()); cfw.addPush(0.0); cfw.addDStore(lVar.getJRegister()); } else if (lVar.isParameter()) { if (directParameterCount < 0) { lVar.assignJRegister(getNewWordLocal()); cfw.addALoad(argsLocal); cfw.addPush(i); cfw.add(ByteCode.AALOAD); cfw.addAStore(lVar.getJRegister()); } } else { lVar.assignJRegister(getNewWordLocal()); if (firstUndefVar == -1) { Codegen.pushUndefined(cfw); firstUndefVar = lVar.getJRegister(); } else { cfw.addALoad(firstUndefVar); } cfw.addAStore(lVar.getJRegister()); } lVar.setStartPC(cfw.getCurrentCodeOffset()); } // Indicate that we should generate debug information for // the variable table. (If we're generating debug info at // all.) debugVars = fnCurrent.getVarsArray(); // Skip creating activation object. return; } if (directParameterCount > 0) { // We're going to create an activation object, so we // need to get an args array with all the arguments in it. cfw.addALoad(argsLocal); cfw.addPush(directParameterCount); addOptRuntimeInvoke("padStart", "([Ljava/lang/Object;I)[Ljava/lang/Object;"); cfw.addAStore(argsLocal); for (int i=0; i < directParameterCount; i++) { cfw.addALoad(argsLocal); cfw.addPush(i); // "3" is 1 for Object parm and 2 for double parm, and // "4" is to account for the context, etc. parms cfw.addALoad(3 * i + 4); cfw.add(ByteCode.AASTORE); } } String debugVariableName; if (fnCurrent != null) { cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); cfw.addALoad(funObjLocal); cfw.addALoad(thisObjLocal); cfw.addALoad(argsLocal); addScriptRuntimeInvoke("initVarObj", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); cfw.addAStore(variableObjectLocal); debugVariableName = "activation"; } else { cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); cfw.addALoad(funObjLocal); cfw.addALoad(thisObjLocal); cfw.addPush(0); addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/NativeFunction;" +"Lorg/mozilla/javascript/Scriptable;" +"Z" +")V"); debugVariableName = "global"; } int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; i++) { OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); if (fn.getFunctionType() == FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, FunctionNode.FUNCTION_STATEMENT); } } // default is to generate debug info if (codegen.generateDebugInfo) { OptLocalVariable lv = new OptLocalVariable(debugVariableName, false); lv.assignJRegister(variableObjectLocal); lv.setStartPC(cfw.getCurrentCodeOffset()); debugVars = new OptLocalVariable[1]; debugVars[0] = lv; } if (fnCurrent == null) { // OPT: use dataflow to prove that this assignment is dead popvLocal = getNewWordLocal(); Codegen.pushUndefined(cfw); cfw.addAStore(popvLocal); int linenum = scriptOrFn.getEndLineno(); if (linenum != -1) cfw.addLineNumberEntry((short)linenum); } else { if (fnCurrent.itsContainsCalls0) { itsZeroArgArray = getNewWordLocal(); cfw.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); cfw.addAStore(itsZeroArgArray); } if (fnCurrent.itsContainsCalls1) { itsOneArgArray = getNewWordLocal(); cfw.addPush(1); cfw.add(ByteCode.ANEWARRAY, "java/lang/Object"); cfw.addAStore(itsOneArgArray); } } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/44815cf65982f7a694188ebf105329955b26287f/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
1435,
565,
288,
3639,
509,
2657,
1662,
1380,
273,
300,
21,
31,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
2657,
1662,
1380,
273,
2728,
1162,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
1435,
565,
288,
3639,
509,
2657,
1662,
1380,
273,
300,
21,
31,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
2657,
1662,
1380,
273,
2728,
1162,
... |
void getBest( Map<String, Collection<LocationData>> results, BufferedWriter writer ) throws IOException { for ( String probe : results.keySet() ) { Collection<LocationData> probeResults = results.get( probe ); double maxBlatScore = -1.0; double maxScore = 0.0; LocationData best = null; double maxOverlap = 0.0; int alignLength = 0; for ( LocationData ld : probeResults ) { double blatScore = ld.getBr().score(); double overlap = ( double ) ld.getTpd().getExonOverlap() / ( double ) ( ld.getBr().getQuerySize() ); double score = blatScore * overlap; if ( score >= maxScore ) { maxScore = score; maxBlatScore = blatScore; best = ld; maxOverlap = overlap; alignLength = ld.getBr().getTargetEnd() - ld.getBr().getTargetStart(); } } best.setBestBlatScore( maxBlatScore ); best.setBestOverlap( maxOverlap ); best.setNumHits( probeResults.size() ); best.setAlignLength( alignLength ); writer.write( best.toString() ); } } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/7cd21d2032f81ec833508824eb29ea189129ab36/ProbeThreePrimeLocator.java/clean/src/impl/edu/columbia/gemma/tools/ProbeThreePrimeLocator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
588,
14173,
12,
863,
32,
780,
16,
2532,
32,
2735,
751,
9778,
4717,
16,
17947,
2289,
6299,
13,
15069,
14106,
95,
1884,
12,
780,
27230,
30,
4717,
18,
856,
694,
10756,
95,
2532,
32,
2735,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
588,
14173,
12,
863,
32,
780,
16,
2532,
32,
2735,
751,
9778,
4717,
16,
17947,
2289,
6299,
13,
15069,
14106,
95,
1884,
12,
780,
27230,
30,
4717,
18,
856,
694,
10756,
95,
2532,
32,
2735,
... | ||
for (int i = 0; i < parameters.length; i++){ if (!parameters[i].isSet && !parameters[i].isOutput){ throw new SQLException(Messages.get("error.prepare.paramnotset", Integer.toString(i + 1)), "07000"); | if (procName == null && sql.startsWith("EXECUTE ")) { for (int i = 0; i < parameters.length; i++){ if (!parameters[i].isRetVal && parameters[i].isOutput){ throw new SQLException(Messages.get("error.prepare.nooutparam", Integer.toString(i + 1)), "07000"); } | synchronized void executeSQL(String sql, String procName, ParamInfo[] parameters, boolean noMetaData, int timeOut, int maxRows) throws SQLException { checkOpen(); clearResponseQueue(); messages.exceptions = null; setRowCount(maxRows); messages.clearWarnings(); this.returnStatus = null; // // Normalize the parameters argument to simplify later checks // if (parameters != null && parameters.length == 0) { parameters = null; } this.parameters = parameters; // // Normalise the procName argument as well // if (procName != null && procName.length() == 0) { procName = null; } if (parameters != null && parameters[0].isRetVal) { returnParam = parameters[0]; nextParam = 0; } else { returnParam = null; nextParam = -1; } if (parameters != null) { for (int i = 0; i < parameters.length; i++){ if (!parameters[i].isSet && !parameters[i].isOutput){ throw new SQLException(Messages.get("error.prepare.paramnotset", Integer.toString(i + 1)), "07000"); } parameters[i].clearOutValue(); TdsData.getNativeType(connection, parameters[i]); } } try { switch (tdsVersion) { case Driver.TDS42: executeSQL42(sql, procName, parameters, noMetaData); break; case Driver.TDS50: executeSQL50(sql, procName, parameters); break; case Driver.TDS70: case Driver.TDS80: case Driver.TDS81: executeSQL70(sql, procName, parameters, noMetaData); break; default: throw new IllegalStateException("Unknown TDS version " + tdsVersion); } endOfResponse = false; endOfResults = true; wait(timeOut); } catch (IOException ioe) { connection.setClosed(); throw Support.linkException( new SQLException( Messages.get( "error.generic.ioerror", ioe.getMessage()), "08S01"), ioe); } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/48e6f3dc890879de3808f5b46a69bb7eebed3a45/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
1836,
3997,
12,
780,
1847,
16,
4766,
514,
5418,
461,
16,
4766,
3014,
966,
8526,
1472,
16,
4766,
1250,
1158,
6998,
16,
4766,
509,
813,
1182,
16,
4766,
509,
943,
4300,
13,
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,
3852,
918,
1836,
3997,
12,
780,
1847,
16,
4766,
514,
5418,
461,
16,
4766,
3014,
966,
8526,
1472,
16,
4766,
1250,
1158,
6998,
16,
4766,
509,
813,
1182,
16,
4766,
509,
943,
4300,
13,
3639... |
int old = VM_Magic.prepareInt(o, lockOffset); int id = old & (TL_THREAD_ID_MASK | TL_FAT_LOCK_MASK); int threadId = VM_Processor.getCurrentProcessor().threadId; if (id != threadId) { if ((old & TL_FAT_LOCK_MASK) != 0) { int index = (old & TL_LOCK_ID_MASK) >>> TL_LOCK_ID_SHIFT; | VM_Word old = VM_Magic.prepareWord(o, lockOffset); VM_Word id = old.and(TL_THREAD_ID_MASK.or(TL_FAT_LOCK_MASK)); VM_Word threadId = VM_Word.fromIntZeroExtend(VM_Processor.getCurrentProcessor().threadId); if (id.NE(threadId)) { if (!(old.and(TL_FAT_LOCK_MASK).isZero())) { int index = old.and(TL_LOCK_ID_MASK).rshl(TL_LOCK_ID_SHIFT).toInt(); | static void unlock(Object o, int lockOffset) throws VM_PragmaNoInline { VM_Magic.sync(); // prevents stale data from being seen by next owner of the lock while (true) { // spurious contention detected int old = VM_Magic.prepareInt(o, lockOffset); int id = old & (TL_THREAD_ID_MASK | TL_FAT_LOCK_MASK); int threadId = VM_Processor.getCurrentProcessor().threadId; if (id != threadId) { // not normal case if ((old & TL_FAT_LOCK_MASK) != 0) { // o has a heavy lock int index = (old & TL_LOCK_ID_MASK) >>> TL_LOCK_ID_SHIFT; VM_Scheduler.locks[index].unlockHeavy(o); // note that unlockHeavy has issued a sync return; } VM_Scheduler.trace("VM_Lock", "unlock error: thin lock word = ", old); VM_Scheduler.trace("VM_Lock", "unlock error: thin lock word = ", VM_Magic.objectAsAddress(o)); // VM_Scheduler.trace("VM_Lock", VM_Thread.getCurrentThread().toString(), 0); VM_Lock.raiseIllegalMonitorStateException("thin unlocking", o); } int countbits = old & TL_LOCK_COUNT_MASK; // get count if (countbits == 0) { // this is the last lock int changed = old & TL_UNLOCK_MASK; if (VM_Magic.attemptInt(o, lockOffset, old, changed)) { return; // unlock succeeds } continue; } // more than one lock // decrement recursion count int changed = old - TL_LOCK_COUNT_UNIT; if (VM_Magic.attemptInt(o, lockOffset, old, changed)) { return; // unlock succeeds } } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/5b0537043e524613026d1595f6c42e321dcc6771/VM_ThinLock.java/buggy/rvm/src/vm/scheduler/VM_ThinLock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
7186,
12,
921,
320,
16,
509,
2176,
2335,
13,
1216,
8251,
67,
2050,
9454,
2279,
10870,
288,
565,
8251,
67,
19289,
18,
8389,
5621,
368,
17793,
14067,
501,
628,
3832,
5881,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
7186,
12,
921,
320,
16,
509,
2176,
2335,
13,
1216,
8251,
67,
2050,
9454,
2279,
10870,
288,
565,
8251,
67,
19289,
18,
8389,
5621,
368,
17793,
14067,
501,
628,
3832,
5881,
635,
... |
list.clear(); | synchronized(mutex){ memoryList.clear(); if(!isDiskListEmpty()){ getDiskList().clear(); } } | public void clear(){ list.clear(); } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/9359e9f6ca110f7d9b4edcfd4a82f90d4c042afa/FilePendingMessageCursor.java/buggy/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
95,
3639,
3852,
12,
29946,
15329,
3778,
682,
18,
8507,
5621,
309,
12,
5,
291,
6247,
682,
1921,
10756,
95,
336,
6247,
682,
7675,
8507,
5621,
289,
289,
565,
289,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
1435,
95,
3639,
3852,
12,
29946,
15329,
3778,
682,
18,
8507,
5621,
309,
12,
5,
291,
6247,
682,
1921,
10756,
95,
336,
6247,
682,
7675,
8507,
5621,
289,
289,
565,
289,
2,... |
throw new IOException(EclipseAdaptorMsg.fileManager_illegalInReadOnlyMode); if (!lock()) | throw new IOException(EclipseAdaptorMsg.fileManager_illegalInReadOnlyMode); if (!lock(true)) | public void update(String[] targets, String[] sources) throws IOException { if (readOnly) throw new IOException(EclipseAdaptorMsg.fileManager_illegalInReadOnlyMode); //$NON-NLS-1$ if (!lock()) throw new IOException(EclipseAdaptorMsg.fileManager_cannotLock); try { updateTable(); for (int i = 0; i < targets.length; i++) { String target = targets[i]; update(target, sources[i]); } save(); } finally { release(); } } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/c2c12fd69d66a2cec3fd5b01bd960b39fc7d312e/FileManager.java/buggy/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/osgi/service/datalocation/FileManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
780,
8526,
5774,
16,
514,
8526,
5550,
13,
1216,
1860,
288,
202,
202,
430,
261,
896,
3386,
13,
1082,
202,
12849,
394,
1860,
12,
23057,
10472,
29888,
3332,
18,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
12,
780,
8526,
5774,
16,
514,
8526,
5550,
13,
1216,
1860,
288,
202,
202,
430,
261,
896,
3386,
13,
1082,
202,
12849,
394,
1860,
12,
23057,
10472,
29888,
3332,
18,
76... |
"qualified", st.getTokenIndex()); | "qualified", st.getTokenIndex()); | public void parseMessage(MMessage mes, String s) throws ParseException { String fname = null; String guard = null; String paramExpr = null; String token; String varname = null; Vector predecessors = new Vector(); Vector seqno = null; Vector currentseq = new Vector(); Vector args = null; boolean mustBePre = false; boolean mustBeSeq = false; boolean parallell = false; boolean iterative = false; boolean mayDeleteExpr = false; boolean refindOperation = false; boolean hasPredecessors = false; int i; currentseq.add(null); currentseq.add(null); try { MyTokenizer st = new MyTokenizer(s, " ,\t,*,[,],.,:,=,/,\\,", MyTokenizer.PAREN_EXPR_STRING_SEPARATOR); while (st.hasMoreTokens()) { token = st.nextToken(); if (" ".equals(token) || "\t".equals(token)) { if (currentseq == null) { if (varname != null && fname == null) { varname += token; } } } else if ("[".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "qualified", st.getTokenIndex()); mustBeSeq = true; if (guard != null) throw new ParseException("Messages cannot have several " + "guard or iteration specifications", st.getTokenIndex()); guard = ""; while (true) { token = st.nextToken(); if ("]".equals(token)) break; guard += token; } } else if ("*".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "iterated", st.getTokenIndex()); mustBeSeq = true; if (currentseq != null) iterative = true; } else if (".".equals(token)) { if (currentseq == null) throw new ParseException("Unexpected dot ('.')", st.getTokenIndex()); if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { currentseq.add(null); currentseq.add(null); } } else if (":".equals(token)) { if (st.hasMoreTokens()) { String t = st.nextToken(); if ("=".equals(t)) { st.putToken(":="); continue; } st.putToken(t); } if (mustBePre) throw new ParseException("Predecessors must be " + "terminated with \'/\' and not with \':\'", st.getTokenIndex()); if (currentseq != null) { if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } seqno = currentseq; currentseq = null; mayDeleteExpr = true; } } else if ("/".equals(token)) { if (st.hasMoreTokens()) { String t = st.nextToken(); if ("/".equals(t)) { st.putToken("//"); continue; } st.putToken(t); } if (mustBeSeq) { throw new ParseException("The sequence number must be " + "terminated with \':\' and not with \'/\'", st.getTokenIndex()); } mustBePre = false; mustBeSeq = true; if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { predecessors.add(currentseq); currentseq = new Vector(); currentseq.add(null); currentseq.add(null); } hasPredecessors = true; } else if ("//".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "parallellized", st.getTokenIndex()); mustBeSeq = true; if (currentseq != null) parallell = true; } else if (",".equals(token)) { if (currentseq != null) { if (mustBeSeq) throw new ParseException("Messages cannot have many " + "sequence numbers", st.getTokenIndex()); mustBePre = true; if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { predecessors.add(currentseq); currentseq = new Vector(); currentseq.add(null); currentseq.add(null); } hasPredecessors = true; } else { if (varname == null && fname != null) { varname = fname + token; fname = null; } else if (varname != null && fname == null) { varname += token; } else { throw new ParseException("Unexpected character (,)", st.getTokenIndex()); } } } else if ("=".equals(token) || ":=".equals(token)) { if (currentseq == null) { if (varname == null) { varname = fname; fname = ""; } else { fname = ""; } } } else if (currentseq == null) { if (paramExpr == null && token.charAt(0) == '(') { if (token.charAt(token.length() - 1) != ')') throw new ParseException("Malformed parameters", st.getTokenIndex()); if (fname == null || "".equals(fname)) throw new ParseException("Must be a function name " + "before the parameters", st.getTokenIndex()); if (varname == null) varname = ""; paramExpr = token.substring(1, token.length() - 1); } else if (varname != null && fname == null) { varname += token; } else if (fname == null || fname.length() == 0) { fname = token; } else { throw new ParseException("Unexpected token (" + token + ")", st.getTokenIndex()); } } else { boolean hasVal = currentseq.get(currentseq.size() - 2) != null; boolean hasOrd = currentseq.get(currentseq.size() - 1) != null; boolean assigned = false; int bp = findMsgOrderBreak(token); if (!hasVal && !assigned && bp == token.length()) { try { currentseq.set(currentseq.size() - 2, new Integer(token)); assigned = true; } catch (NumberFormatException nfe) { } } if (!hasOrd && !assigned && bp == 0) { try { currentseq.set(currentseq.size() - 1, new Integer(parseMsgOrder(token))); assigned = true; } catch (NumberFormatException nfe) { } } if (!hasVal && !hasOrd && !assigned && bp > 0 && bp < token.length()) { Integer nbr, ord; try { nbr = new Integer(token.substring(0, bp)); ord = new Integer(parseMsgOrder(token.substring(bp))); currentseq.set(currentseq.size() - 2, nbr); currentseq.set(currentseq.size() - 1, ord); assigned = true; } catch (NumberFormatException nfe) { } } if (!assigned) { throw new ParseException("Unexpected token (" + token + ")", st.getTokenIndex()); } } } } catch (NoSuchElementException nsee) { throw new ParseException("Unexpected end of message", s.length()); } catch (ParseException pre) { _cat.error("parseexception" , pre); throw pre; } if (paramExpr != null) { MyTokenizer st = new MyTokenizer(paramExpr, "\\,", _parameterCustomSep); args = new Vector(); while (st.hasMoreTokens()) { token = st.nextToken(); if (",".equals(token)) { if (args.size() == 0) args.add(null); args.add(null); } else { if (args.size() == 0) { if (token.trim().length() == 0) continue; args.add(null); } String arg = (String) args.get(args.size() - 1); if (arg != null) arg = arg + token; else arg = token; args.set(args.size() - 1, arg); } } } else if (mayDeleteExpr) { args = new Vector(); } if (_cat.isDebugEnabled()) { StringBuffer buf = new StringBuffer(); buf.append("ParseMessage: " + s + "\n"); buf.append("Message: "); for (i = 0; seqno != null && i + 1 < seqno.size(); i += 2) { if (i > 0) buf.append(", "); buf.append(seqno.get(i) + " (" + seqno.get(i + 1) + ")"); } buf.append("\n"); buf.append("predecessors: " + predecessors.size() + "\n"); for (i = 0; i < predecessors.size(); i++) { int j; Vector v = (Vector) predecessors.get(i); buf.append(" Predecessor: "); for (j = 0; v != null && j + 1 < v.size(); j += 2) { if (j > 0) buf.append(", "); buf.append(v.get(j) + " (" + v.get(j + 1) + ")"); } } buf.append("guard: " + guard + " it: " + iterative + " pl: " + parallell + "\n"); buf.append(varname + " := " + fname + " ( " + paramExpr + " )" + "\n"); _cat.debug(buf); } if (mes.getAction() == null) { MCallAction a = UmlFactory.getFactory().getCommonBehavior() .createCallAction(); mes.getInteraction().getContext().addOwnedElement(a); mes.setAction(a); } if (guard != null) { guard = "[" + guard.trim() + "]"; if (iterative) { if (parallell) guard = "*//" + guard; else guard = "*" + guard; } MIterationExpression expr = UmlFactory.getFactory().getDataTypes() .createIterationExpression( Notation.getDefaultNotation().toString(), guard); mes.getAction().setRecurrence(expr); } if (fname == null) { if (!mayDeleteExpr && mes.getAction().getScript() != null) { String body = mes.getAction().getScript().getBody(); int idx = body.indexOf(":="); if (idx >= 0) idx++; else idx = body.indexOf("="); if (idx >= 0) fname = body.substring(idx + 1); else fname = body; } else fname = ""; } if (varname == null) { if (!mayDeleteExpr && mes.getAction().getScript() != null) { String body = mes.getAction().getScript().getBody(); int idx = body.indexOf(":="); if (idx < 0) idx = body.indexOf("="); if (idx >= 0) varname = body.substring(0, idx); else varname = ""; } else varname = ""; } if (fname != null) { String expr = fname.trim(); if (varname != null && varname.length() > 0) expr = varname.trim() + " := " + expr; if (mes.getAction().getScript() == null || !expr.equals(mes.getAction().getScript().getBody())) { MActionExpression e = UmlFactory.getFactory().getDataTypes() .createActionExpression( Notation.getDefaultNotation().toString(), expr.trim()); mes.getAction().setScript(e); refindOperation = true; } } if (args != null) { Collection c = mes.getAction().getActualArguments(); Iterator it = c.iterator(); int pos; for (i = 0; i < args.size(); i++) { MArgument arg = (it.hasNext() ? (MArgument) it.next() : null); if (arg == null) { arg = UmlFactory.getFactory().getCommonBehavior() .createArgument(); mes.getAction().addActualArgument(arg); refindOperation = true; } if (arg.getValue() == null || !args.get(i).equals(arg.getValue().getBody())) { String value = (args.get(i) != null ? (String) args.get(i) : ""); MExpression e = UmlFactory.getFactory().getDataTypes() .createExpression( Notation.getDefaultNotation().toString(), value.trim()); arg.setValue(e); } } while (it.hasNext()) { mes.getAction().removeActualArgument((MArgument) it.next()); refindOperation = true; } } if (seqno != null) { MMessage root; // Find the preceding message, if any, on either end of the // association. String pname = ""; String mname = ""; String gname = GeneratorDisplay.getInstance() .generateMessageNumber(mes); boolean swapRoles = false; int majval = (seqno.get(seqno.size() - 2) != null ? Math.max(((Integer) seqno.get(seqno.size() - 2)).intValue() - 1, 0) : 0); int minval = (seqno.get(seqno.size() - 1) != null ? Math.max(((Integer) seqno.get(seqno.size() - 1)).intValue(), 0) : 0); for (i = 0; i + 1 < seqno.size(); i += 2) { int bv = (seqno.get(i) != null ? Math.max(((Integer) seqno.get(i)).intValue(), 1) : 1); int sv = (seqno.get(i + 1) != null ? Math.max(((Integer) seqno.get(i + 1)).intValue(), 0) : 0); if (i > 0) mname += "."; mname += Integer.toString(bv) + (char) ('a' + sv); if (i + 3 < seqno.size()) { if (i > 0) pname += "."; pname += Integer.toString(bv) + (char) ('a' + sv); } } root = null; if (pname.length() > 0) { root = findMsg(mes.getSender(), pname); if (root == null) { root = findMsg(mes.getReceiver(), pname); if (root != null) { swapRoles = true; } } } else if (!hasMsgWithActivator(mes.getSender(), null) && hasMsgWithActivator(mes.getReceiver(), null)) swapRoles = true; if (compareMsgNumbers(mname, gname)) { ; // Do nothing } else if (isMsgNumberStartOf(gname, mname)) { throw new ParseException("Cannot move a message into the " + "subtree rooted at self", 0); } else if (mes.getPredecessors().size() > 1 && mes.getMessages3().size() > 1) { throw new ParseException("Cannot move a message which is " + "both start and end of several threads", 0); } else if (root == null && pname.length() > 0) { throw new ParseException("Cannot find the activator for the " + "message", 0); } else if (swapRoles && mes.getMessages4().size() > 0 && mes.getSender() != mes.getReceiver()) { throw new ParseException("Cannot reverse the direction of a " + "message that is an activator", 0); } else { // Disconnect the message from the call graph Collection c = mes.getPredecessors(); Collection c2 = mes.getMessages3(); Iterator it; it = c2.iterator(); while (it.hasNext()) { mes.removeMessage3((MMessage) it.next()); } it = c.iterator(); while (it.hasNext()) { Iterator it2 = c2.iterator(); MMessage pre = (MMessage) it.next(); mes.removePredecessor(pre); while (it2.hasNext()) { ((MMessage) it2.next()).addPredecessor(pre); } } // Connect the message at a new spot mes.setActivator(root); if (swapRoles) { MClassifierRole r = mes.getSender(); mes.setSender(mes.getReceiver()); mes.setReceiver(r); } if (root == null) { c = filterWithActivator(mes.getSender().getMessages2(), null); } else { c = root.getMessages4(); } c2 = findCandidateRoots(c, root, mes); it = c2.iterator(); // If c2 is empty, then we're done // (or there is a cycle in the message graph, which would be bad) // If c2 has more than one element, then the model is crappy, // but we'll just use one of them anyway if (majval <= 0) { while (it.hasNext()) mes.addMessage3((MMessage) it.next()); } else if (it.hasNext()) { MMessage pre = walk((MMessage) it.next(), majval - 1, false); MMessage post = successor(pre, minval); if (post != null) { post.removePredecessor(pre); post.addPredecessor(mes); } insertSuccessor(pre, mes, minval); } refindOperation = true; } } if (fname != null && refindOperation) { MClassifierRole role = mes.getReceiver(); Vector ops = getOperation(role.getBases(), fname.trim(), mes.getAction().getActualArguments().size()); // TODO: Should someone choose one, if there are more // than one? if (mes.getAction() instanceof MCallAction) { MCallAction a = (MCallAction) mes.getAction(); if (ops.size() > 0) a.setOperation((MOperation) ops.get(0)); else a.setOperation(null); } } // TODO: Predecessors is not implemented, because it // causes some problems that I've not found an easy way to handle yet, // d00mst. The specific problem is that the notation currently is // ambiguous on second message after a thread split. // Why not implement it anyway? d00mst if (hasPredecessors) { Collection roots = findCandidateRoots(mes.getInteraction() .getMessages(), null, null); Vector pre = new Vector(); Iterator it; predfor: for (i = 0; i < predecessors.size(); i++) { it = roots.iterator(); while (it.hasNext()) { MMessage msg = walkTree((MMessage) it.next(), (Vector) predecessors.get(i)); if (msg != null && msg != mes) { if (isBadPreMsg(mes, msg)) { throw new ParseException("One predecessor cannot be " + "a predecessor to this message", 0); } pre.add(msg); continue predfor; } } throw new ParseException("Could not find predecessor", 0); } GeneratorDisplay.MsgPtr ptr = GeneratorDisplay.getInstance().new MsgPtr(); GeneratorDisplay.getInstance().recCountPredecessors(mes, ptr); if (ptr.message != null && !pre.contains(ptr.message)) pre.add(ptr.message); mes.setPredecessors(pre); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/180aae2a6e4359d416ad1610ef18fe4836df91b8/ParserDisplay.java/buggy/src_new/org/argouml/uml/generator/ParserDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
1079,
12,
49,
1079,
15216,
16,
514,
272,
13,
1216,
10616,
288,
202,
780,
5299,
273,
446,
31,
202,
780,
11026,
273,
446,
31,
202,
780,
579,
4742,
273,
446,
31,
202,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
1079,
12,
49,
1079,
15216,
16,
514,
272,
13,
1216,
10616,
288,
202,
780,
5299,
273,
446,
31,
202,
780,
11026,
273,
446,
31,
202,
780,
579,
4742,
273,
446,
31,
202,
78... |
if ( bRenderAxisLabels ) | if ( bRenderAxisLabels ) | public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWith2DAxes pwa = (PlotWith2DAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); double dLocation = ax.getAxisCoordinate( ); double dAngleInDegrees = ax.getLabel( ) .getCaption( ) .getFont( ) .getRotation( ); AutoScale sc = ax.getScale( ); IntersectionValue iv = ax.getIntersectionValue( ); int iMajorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MAJOR ); int iMinorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MINOR ); int iLabelLocation = ax.getLabelPosition( ); int iOrientation = ax.getOrientation( ); IDisplayServer xs = this.getDevice( ).getDisplayServer( ); double[] daEndPoints = sc.getEndPoints( ); double[] da = sc.getTickCordinates( ); double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; boolean bLabelShadowEnabled = ( ax.getLabel( ).getShadowColor( ) != null ); int iDimension = pwa.getDimension( ); double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); DecimalFormat df = null; LineAttributes lia = ax.getLineAttributes( ); LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } Label la = ax.getLabel( ); final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( pl, TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); if ( iOrientation == IConstants.VERTICAL ) { int y; double dX = dLocation; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { final double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHCosTheta; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = -dUnitSize / 2; } if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); itmText.reuse( la ); // RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHCosTheta = dH * dCosTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = -dUnitSize / 2; } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ) { lo.set( x, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); } } } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHCosTheta = dH * dCosTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = -dUnitSize / 2; } } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // RENDER AXIS LABELS ONLY IF // REQUESTED { lo.set( x, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ) { double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue *= dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // RENDER LABELS ONLY IF REQUESTED { lo.set( x, y ); la.getCaption( ).setValue( sText ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) { double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, null, df ); // TBD: SET LOCALE CORRECTLY } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue += dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { lo.set( x, y ); la.getCaption( ).setValue( sText ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) { double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } if ( dXTick1 != dXTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { lo.set( x, y ); la.getCaption( ).setValue( sText ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } la = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartException.RENDERING, uiex ); } final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = ax.getLabel( ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; double dY = dLocation; double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { final double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHSineTheta; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = dUnitSize / 2; } if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // ONLY PROCESS IF AXES LABELS ARE // VISIBLE OR REQUESTED FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); itmText.reuse( la );// RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHSineTheta = dH * dSineTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - ( dW * dCosTheta + dHSineTheta ) / 2 + dHSineTheta; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = dUnitSize + dHSineTheta - ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2 - dHSineTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - dHSineTheta / 2 + ( dW * dCosTheta + dHSineTheta ) / 2; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = dUnitSize / 2; } x = (int) da[i]; lo.set( x + dOffset, y ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); } } } double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHSineTheta = dH * dSineTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - ( dW * dCosTheta + dHSineTheta ) / 2 + dHSineTheta; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = dUnitSize + dHSineTheta - ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2 - dHSineTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - dHSineTheta / 2 + ( dW * dCosTheta + dHSineTheta ) / 2; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = dUnitSize / 2; } lo.set( x + dOffset, y ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } // TODO: CACHE COMPUTED VALUES FOR REUSE IN 2ND LOOP if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } x = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue += dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); // TODO: CACHE COMPUTED VALUES FOR REUSE IN 2ND LOOP if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } x = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); dAxisValue *= dAxisStep; } } } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; // TODO: CACHE COMPUTED VALUES FOR REUSE IN 2ND LOOP if ( bLabelShadowEnabled ) { // MUST RENDER SHADOWS IN A PREVIOUS LOOP TO ENABLE CORRECT // Z-ORDERING if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } x = (int) da[i]; lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_SHADOW_AT_LOCATION ); ipr.drawText( tre ); cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } } double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( pl, LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } if ( dYTick1 != dYTick2 ) { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { DefaultLoggerImpl.instance( ).log( dfex ); sText = IConstants.NULL_STRING; } lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); ipr.drawText( tre ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } // RENDER THE AXIS TITLE la = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartException.RENDERING, uiex ); } final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); la.getCaption( ).setValue( sRestoreValue ); // RESTORE ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = ax.getLabel( ); // RESTORE BACK TO AXIS LABEL if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/bdb7b6c5463f7273d9f1038e97552808a8df1f58/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202... |
if (context.getAllowRendering()) { | if (context.getAllowRendering()) { | public boolean render(InternalContextAdapter context, Writer writer) throws IOException, MethodInvocationException { if (referenceType == RUNT) { if (context.getAllowRendering()) { writer.write(rootString); } return true; } Object value = execute(null, context); /* * if this reference is escaped (\$foo) then we want to do one of two things : * 1) if this is a reference in the context, then we want to print $foo * 2) if not, then \$foo (its considered schmoo, not VTL) */ if (escaped) { if (value == null) { if (context.getAllowRendering()) { writer.write(escPrefix); writer.write("\\"); writer.write(nullString); } } else { if (context.getAllowRendering()) { writer.write(escPrefix); writer.write(nullString); } } return true; } /* * the normal processing * * if we have an event cartridge, get a new value object */ EventCartridge ec = context.getEventCartridge(); if (ec != null) { value = ec.referenceInsert(literal(), value); } /* * if value is null... */ if (value == null) { /* * write prefix twice, because it's schmoo, so the \ don't escape each other... */ if (context.getAllowRendering()) { writer.write(escPrefix); writer.write(escPrefix); writer.write(morePrefix); writer.write(nullString); } if (referenceType != QUIET_REFERENCE && rsvc.getBoolean(RuntimeConstants.RUNTIME_LOG_REFERENCE_LOG_INVALID, true)) { rsvc.warn(new ReferenceException("reference : template = " + context.getCurrentTemplateName(), this)); } return true; } else { /* * non-null processing */ if (context.getAllowRendering()) { writer.write(escPrefix); writer.write(morePrefix); writer.write(value.toString()); } return true; } } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/865dec65741b191d751e4ca6cd2e34bd6c0ea2f2/ASTReference.java/clean/src/java/org/apache/velocity/runtime/parser/node/ASTReference.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1743,
12,
3061,
1042,
4216,
819,
16,
5497,
2633,
13,
3639,
1216,
1860,
16,
2985,
9267,
503,
565,
288,
3639,
309,
261,
6180,
559,
422,
534,
5321,
13,
3639,
288,
5411,
309,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
3061,
1042,
4216,
819,
16,
5497,
2633,
13,
3639,
1216,
1860,
16,
2985,
9267,
503,
565,
288,
3639,
309,
261,
6180,
559,
422,
534,
5321,
13,
3639,
288,
5411,
309,
26... |
public Set getPendingVariableDeclarations(){ | public Set<PsiLocalVariable> getPendingVariableDeclarations(){ | public Set getPendingVariableDeclarations(){ return Collections.unmodifiableSet(m_pendingVariableDeclarations); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/SwitchStatementBranch.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/switchtoif/SwitchStatementBranch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
32,
52,
7722,
2042,
3092,
34,
1689,
2846,
3092,
21408,
1435,
95,
3639,
327,
5737,
18,
318,
13388,
694,
12,
81,
67,
9561,
3092,
21408,
1769,
565,
289,
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,
377,
1071,
1000,
32,
52,
7722,
2042,
3092,
34,
1689,
2846,
3092,
21408,
1435,
95,
3639,
327,
5737,
18,
318,
13388,
694,
12,
81,
67,
9561,
3092,
21408,
1769,
565,
289,
2,
-100,
-100,
-100,
-1... |
long nD=databaseForChannel(nid, tid, sid); | NativeData nD=databaseForChannel(nid, tid, sid); | public static SIDatabase getDatabaseForChannel(int nid, int tid, int sid) { long nD=databaseForChannel(nid, tid, sid); if (nD==0) return null; getSIDatabase(); for (int i=0; i<databases.length; i++) if (databases[i].nativeData==nD) return databases[i]; return null;} | 13401 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13401/a7923b75c09c48b82e23fd38892fa78a99d55d4f/SIDatabase.java/buggy/branches/awt_from_classpath/mhp/java/org/dvb/si/SIDatabase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
23150,
2451,
11263,
1290,
2909,
12,
474,
19416,
16,
509,
11594,
16,
509,
7348,
13,
288,
282,
16717,
751,
290,
40,
33,
6231,
1290,
2909,
12,
31030,
16,
11594,
16,
7348,
1769,
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,
1071,
760,
23150,
2451,
11263,
1290,
2909,
12,
474,
19416,
16,
509,
11594,
16,
509,
7348,
13,
288,
282,
16717,
751,
290,
40,
33,
6231,
1290,
2909,
12,
31030,
16,
11594,
16,
7348,
1769,
282,
... |
super.error(e); } | super.error(e); } | public void error(SAXParseException e) throws SAXException { // TODO Auto-generated method stub super.error(e); } | 48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/78ae837b6e73bb382262a2f8f0b1f8e404431797/SvnXmlLogFileHandler.java/buggy/statsvn/src/net/sf/statcvs/input/SvnXmlLogFileHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
555,
12,
55,
2501,
13047,
425,
13,
1216,
14366,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
2240,
18,
1636,
12,
73,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
555,
12,
55,
2501,
13047,
425,
13,
1216,
14366,
288,
3639,
368,
2660,
8064,
17,
11168,
707,
7168,
3639,
2240,
18,
1636,
12,
73,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-10... |
if (jobMeta.isLogfieldUsed()) { log.startStringCapture(); log.setString("START"+Const.CR); } | public Result execute() throws KettleException { if (jobMeta.isLogfieldUsed()) { log.startStringCapture(); log.setString("START"+Const.CR); } // Start the tracking... JobEntryResult jerStart = new JobEntryResult(null, "Start of job execution", "start", null); jobTracker.addJobTracker(new JobTracker(jobMeta, jerStart)); active = true; // Where do we start? JobEntryCopy startpoint; beginProcessing(); startpoint = jobMeta.findJobEntry(JobMeta.STRING_SPECIAL_START, 0, false); if (startpoint == null) { throw new KettleJobException("Couldn't find starting point in this job."); } JobEntrySpecial jes = (JobEntrySpecial) startpoint.getEntry(); Result res = null; boolean isFirst = true; while (jes.isRepeat() || isFirst && !isStopped()) { isFirst = false; res = execute(0, null, startpoint, null, "start"); } // Save this result... JobEntryResult jerEnd = new JobEntryResult(res, "Job execution ended", "end", null); jobTracker.addJobTracker(new JobTracker(jobMeta, jerEnd)); active = false; return res; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/f38d8584335e5b70c846b9c280e75d20fe6203ef/Job.java/buggy/kettle/src/be/ibridge/kettle/job/Job.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3438,
1836,
1435,
1216,
1475,
278,
5929,
503,
565,
288,
3639,
309,
261,
4688,
2781,
18,
291,
1343,
1518,
6668,
10756,
3639,
288,
5411,
613,
18,
1937,
780,
12372,
5621,
5411,
613... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3438,
1836,
1435,
1216,
1475,
278,
5929,
503,
565,
288,
3639,
309,
261,
4688,
2781,
18,
291,
1343,
1518,
6668,
10756,
3639,
288,
5411,
613,
18,
1937,
780,
12372,
5621,
5411,
613... | |
FieldSchema fieldSchema = getFieldSchema(field); return fieldSchema != null ? fieldSchema.getName() : null; | return (String) fieldNames.get(new Integer(field)); | public String getFieldName(int field) { FieldSchema fieldSchema = getFieldSchema(field); return fieldSchema != null ? fieldSchema.getName() : null; } | 6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/551758b11dd3351b0dfef17541d1197c4558b06e/DataDictionary.java/buggy/src/quickfix/DataDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
19561,
12,
474,
652,
13,
288,
3639,
2286,
3078,
652,
3078,
273,
5031,
3078,
12,
1518,
1769,
3639,
327,
652,
3078,
480,
446,
692,
652,
3078,
18,
17994,
1435,
294,
446,
31,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
19561,
12,
474,
652,
13,
288,
3639,
2286,
3078,
652,
3078,
273,
5031,
3078,
12,
1518,
1769,
3639,
327,
652,
3078,
480,
446,
692,
652,
3078,
18,
17994,
1435,
294,
446,
31,
565... |
labPlayerInfo = new Label("Player Setup"); | labPlayerInfo = new Label(Messages.getString("ChatLounge.labPlayerInfo")); | private void setupPlayerInfo() { Player player = client.getLocalPlayer(); panPlayerInfo = new Panel(); labPlayerInfo = new Label("Player Setup"); lisPlayerInfo = new List(5); lisPlayerInfo.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { butRemoveBot.setEnabled(false); Client c = getPlayerListSelected(lisPlayerInfo); if (c == null) { lisPlayerInfo.select(-1); return; } if (c instanceof BotClient) { butRemoveBot.setEnabled(true); } choTeam.select(c.getLocalPlayer().getTeam()); } }); butAddBot = new Button("Add Bot"); butAddBot.setActionCommand("add_bot"); butAddBot.addActionListener(this); butRemoveBot = new Button("Remove Bot"); butRemoveBot.setEnabled(false); butRemoveBot.setActionCommand("remove_bot"); butRemoveBot.addActionListener(this); labTeam = new Label("Team:", Label.RIGHT); labCamo = new Label("Camo:", Label.RIGHT); choTeam = new Choice(); choTeam.addItemListener(this); setupTeams(); butCamo = new ImageButton(); butCamo.setLabel("No Camo"); butCamo.setPreferredSize(84, 72); butCamo.setActionCommand("camo"); butCamo.addActionListener(this); camoDialog.addItemListener( new CamoChoiceListener(camoDialog, butCamo, butOptions.getBackground(), player.getId(), client)); refreshCamos(); // If we have a camo pattern, use it. Otherwise set a background. Image[] images = (Image[]) camoDialog.getSelectedObjects(); if (null != images) { butCamo.setImage(images[0]); } else { butCamo.setBackground(new Color(Player.colorRGBs[player.getColorIndex()])); } // layout GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); panPlayerInfo.setLayout(gridbag); c.fill = GridBagConstraints.VERTICAL; c.insets = new Insets(1, 1, 1, 1); c.weightx = 1.0; c.weighty = 0.0; c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(labPlayerInfo, c); panPlayerInfo.add(labPlayerInfo); c.fill = GridBagConstraints.BOTH; c.weightx = 1.0; c.weighty = 1.0; gridbag.setConstraints(lisPlayerInfo, c); panPlayerInfo.add(lisPlayerInfo); c.gridwidth = 1; c.weightx = 0.0; c.weighty = 0.0; gridbag.setConstraints(labTeam, c); panPlayerInfo.add(labTeam); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(choTeam, c); panPlayerInfo.add(choTeam); c.gridwidth = 1; c.weightx = 0.0; c.weighty = 0.0; gridbag.setConstraints(labCamo, c); panPlayerInfo.add(labCamo); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(butCamo, c); panPlayerInfo.add(butCamo); c.gridwidth = 1; c.weightx = 0.0; c.weighty = 0.0; gridbag.setConstraints(butAddBot, c); panPlayerInfo.add(butAddBot); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(butRemoveBot, c); panPlayerInfo.add(butRemoveBot); refreshPlayerInfo(); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/ChatLounge.java/buggy/megamek/src/megamek/client/ui/AWT/ChatLounge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
12148,
966,
1435,
288,
3639,
19185,
7291,
273,
1004,
18,
588,
2042,
12148,
5621,
3639,
2800,
12148,
966,
273,
394,
23641,
5621,
3639,
11814,
12148,
966,
273,
394,
5287,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
12148,
966,
1435,
288,
3639,
19185,
7291,
273,
1004,
18,
588,
2042,
12148,
5621,
3639,
2800,
12148,
966,
273,
394,
23641,
5621,
3639,
11814,
12148,
966,
273,
394,
5287,
12,... |
Game.addFrameListener(this, fWait, -1); | Game.addServerFrameListener(this, fWait, -1); | protected void moveFinished() { switch (fPlatState) { case STATE_PLAT_RAISING: if (fWait == 0) fPlatState = STATE_PLAT_RAISED; else { fPlatState = STATE_PLAT_RAISEDWAIT; Game.addFrameListener(this, fWait, -1); } break; case STATE_PLAT_LOWERING: fPlatState = STATE_PLAT_LOWERED; break; } if (!isGroupSlave()) { if (fSoundEnd != 0) fEntity.sound(NativeEntity.CHAN_NO_PHS_ADD + NativeEntity.CHAN_VOICE, fSoundEnd, 1, NativeEntity.ATTN_STATIC, 0); fEntity.setSound(0); } } | 1990 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1990/578d435afa17c19ab50dae1f666d2a43a2c4c175/func_plat.java/clean/classes/q2java/baseq2/spawn/func_plat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
3635,
10577,
1435,
225,
202,
95,
202,
9610,
261,
74,
1749,
270,
1119,
13,
202,
202,
95,
202,
202,
3593,
7442,
67,
6253,
789,
67,
2849,
5127,
1360,
30,
1082,
202,
430,
261,
74,
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,
4750,
918,
3635,
10577,
1435,
225,
202,
95,
202,
9610,
261,
74,
1749,
270,
1119,
13,
202,
202,
95,
202,
202,
3593,
7442,
67,
6253,
789,
67,
2849,
5127,
1360,
30,
1082,
202,
430,
261,
74,
5... |
SVNWCClient client = createSVNWCClient(); try { final Collection infos = new ArrayList(); client.doInfo(pathOrUrl, SVNConverterUtil.getSVNRevision(pegRevision), SVNConverterUtil.getSVNRevision(revision), recurse, new ISVNInfoHandler(){ public void handleInfo(SVNInfo info) { infos.add(SVNConverterUtil.createInfo2(info)); } }); return (Info2[]) infos.toArray(new Info2[infos.size()]); } catch (SVNException e) { throwException(e); } | public Info2[] info2(String pathOrUrl, Revision revision, Revision pegRevision, boolean recurse) throws ClientException { // TODO Auto-generated method stub return null; } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/abe0d296df0a27ce680a7e50116d15861c0c9f04/SVNClient.java/clean/javasvn/src/org/tigris/subversion/javahl/SVNClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
29537,
50,
59,
39,
1227,
1004,
273,
752,
23927,
50,
59,
39,
1227,
5621,
775,
288,
727,
2200,
10626,
273,
394,
2407,
5621,
1004,
18,
2896,
966,
12,
803,
1162,
1489,
16,
29537,
50,
5072,
1304,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
29537,
50,
59,
39,
1227,
1004,
273,
752,
23927,
50,
59,
39,
1227,
5621,
775,
288,
727,
2200,
10626,
273,
394,
2407,
5621,
1004,
18,
2896,
966,
12,
803,
1162,
1489,
16,
29537,
50,
5072,
1304,... | |
((AdminComponent)node.getUserObject()).setPreferredName(ObjectUpdater.preferredNameFromConcepts(concepts)); setButtonState(saveButton); } | orderChanged = true; setSaveButtonState(areAllFieldEntered()); reviewButton.setEnabled(false); } | public void actionPerformed(ActionEvent event) { Concept temp = concepts[index-1]; concepts[index-1] = concepts[index]; concepts[index] = temp; updateConcepts(concepts); ((AdminComponent)node.getUserObject()).setPreferredName(ObjectUpdater.preferredNameFromConcepts(concepts)); setButtonState(saveButton); } | 55019 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55019/082099ce0c2115d77c065a36b46e6a14dbbbbc14/UMLElementViewPanel.java/clean/src/gov/nih/nci/ncicb/cadsr/loader/ui/UMLElementViewPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
871,
13,
288,
1850,
27842,
1906,
273,
28415,
63,
1615,
17,
21,
15533,
1850,
28415,
63,
1615,
17,
21,
65,
273,
28415,
63,
1615,
15533,
1850,
28415,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
871,
13,
288,
1850,
27842,
1906,
273,
28415,
63,
1615,
17,
21,
15533,
1850,
28415,
63,
1615,
17,
21,
65,
273,
28415,
63,
1615,
15533,
1850,
28415,
63,
... |
setName((String) evalAttr("name", getName(), String.class)); | setName((String) evalAttr("name", getNameExpr(), String.class)); | private void evaluateExpressions() throws JspException { try { setAction((String) evalAttr("action", getAction(), String.class)); } catch (NullAttributeException ex) { setAction(null); } try { setEnctype((String) evalAttr("enctype", getEnctype(), String.class)); } catch (NullAttributeException ex) { setEnctype(null); } try { setFocus((String) evalAttr("focus", getFocus(), String.class)); } catch (NullAttributeException ex) { setFocus(null); } try { setFocusIndex((String) evalAttr("focusIndex", getFocusIndex(), String.class)); } catch (NullAttributeException ex) { setFocusIndex(null); } try { setMethod((String) evalAttr("method", getMethod(), String.class)); } catch (NullAttributeException ex) { setMethod(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnreset((String) evalAttr("onreset", getOnreset(), String.class)); } catch (NullAttributeException ex) { setOnreset(null); } try { setOnsubmit((String) evalAttr("onsubmit", getOnsubmit(), String.class)); } catch (NullAttributeException ex) { setOnsubmit(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(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 { setTarget((String) evalAttr("target", getTarget(), String.class)); } catch (NullAttributeException ex) { setTarget(null); } try { setType((String) evalAttr("type", getType(), String.class)); } catch (NullAttributeException ex) { setType(null); } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELFormTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFormTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
22517,
12443,
780,
13,
5302,
3843,
2932,
1128,
3113,
12473,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22517,
12443,
780,
13,
5302,
3843,
2932,
1128,
3113,
12473,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499... |
System.err.println(msg); System.err.println("Usage: java " + SimpleSocketServer.class.getName() + " port configFile"); System.exit(1); } | System.err.println(msg); System.err.println("Usage: java " + SimpleSocketServer.class.getName() + " port configFile"); System.exit(1); } | static void usage(String msg) { System.err.println(msg); System.err.println("Usage: java " + SimpleSocketServer.class.getName() + " port configFile"); System.exit(1); } | 45789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45789/7177ff8f31734f293185997e0a81156f64bc26a6/SimpleSocketServer.java/buggy/logback-classic/src/main/java/ch/qos/logback/classic/net/SimpleSocketServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
4084,
12,
780,
1234,
13,
288,
202,
202,
3163,
18,
370,
18,
8222,
12,
3576,
1769,
202,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
2252,
315,
397,
4477,
4534,
2081,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
4084,
12,
780,
1234,
13,
288,
202,
202,
3163,
18,
370,
18,
8222,
12,
3576,
1769,
202,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
2252,
315,
397,
4477,
4534,
2081,
1... |
Class[] namesToWatch = { MStereotype.class,MOperation.class, MParameter.class,MClassifier.class }; | Class[] namesToWatch = { MStereotype.class, MOperation.class, MParameter.class, MClassifier.class }; | public PropPanelParameter() { super( "Parameter", _parameterIcon, ConfigLoader.getTabPropsOrientation()); Class mclass = MParameter.class; Class[] namesToWatch = { MStereotype.class,MOperation.class, MParameter.class,MClassifier.class }; setNameEventListening(namesToWatch); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),getStereotypeBox())); JList namespaceList = new UMLList(new UMLReflectionListModel(this,"behaviorialfeature",false,"getBehavioralFeature",null,null,null),true); namespaceList.setVisibleRowCount(1); addLinkField(Argo.localize("UMLMenu", "label.owner"), new JScrollPane(namespaceList,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER)); addSeperator(); addField(Argo.localize("UMLMenu", "label.type"),new UMLComboBox2(new UMLParameterTypeComboBoxModel(), ActionSetParameterType.SINGLETON)); addField("Initial Value:", new UMLInitialValueComboBox(this)); JPanel kindPanel = new JPanel(new GridLayout2(0, 2, GridLayout2.ROWCOLPREFERRED)); ButtonGroup kindGroup = new ButtonGroup(); UMLRadioButton inout = new UMLRadioButton("in/out",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.INOUT,null)); kindGroup.add(inout); kindPanel.add(inout); UMLRadioButton in = new UMLRadioButton("in",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.IN,null)); kindGroup.add(in); kindPanel.add(in); UMLRadioButton out = new UMLRadioButton("out",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.OUT,null)); kindGroup.add(out); kindPanel.add(out); UMLRadioButton ret = new UMLRadioButton("return",this,new UMLEnumerationBooleanProperty("kind",mclass,"getKind","setKind",MParameterDirectionKind.class,MParameterDirectionKind.RETURN,null)); kindGroup.add(ret); kindPanel.add(ret); addField("Kind:", kindPanel); new PropPanelButton(this,buttonPanel,_navUpIcon, Argo.localize("UMLMenu", "button.go-up"),"navigateUp",null); new PropPanelButton(this,buttonPanel,_parameterIcon, Argo.localize("UMLMenu", "button.add-parameter"),"addParameter",null); // new PropPanelButton(this,buttonPanel,_dataTypeIcon, Argo.localize("UMLMenu", "button.add-datatype"),"addDataType",null); new PropPanelButton(this,buttonPanel,_deleteIcon, Argo.localize("UMLMenu", "button.delete-parameter"),"removeElement",null); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/PropPanelParameter.java/clean/src_new/org/argouml/uml/ui/foundation/core/PropPanelParameter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10484,
5537,
1662,
1435,
288,
3639,
2240,
12,
5411,
315,
1662,
3113,
5411,
389,
6775,
5554,
16,
5411,
1903,
2886,
18,
588,
5661,
5047,
14097,
10663,
3639,
1659,
312,
1106,
273,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10484,
5537,
1662,
1435,
288,
3639,
2240,
12,
5411,
315,
1662,
3113,
5411,
389,
6775,
5554,
16,
5411,
1903,
2886,
18,
588,
5661,
5047,
14097,
10663,
3639,
1659,
312,
1106,
273,
490,
... |
public HostObject(WorldObject parent, BasicMonitoredObject monitoredHost, DataAssociation asso) { super(parent); this.asso = asso; // Test if there is port defined, then remove it to see if hostname exists try { this.hostname = monitoredHost.getFullName(); String shortHostname = UrlBuilder.getHostNameorIP(java.net.InetAddress.getByName( UrlBuilder.removePortFromHost(hostname))); this.monitoredHost = monitoredHost; //controller.log("HostObject "+this.hostname+ " created"); } catch (java.net.UnknownHostException e) { this.hostname = monitoredHost.getFullName(); controller.warn("Hostname " + hostname + " failed reverse lookup."); }// if ("ibis".equals(protocol)) {// this.nodeFinder = new IbisHostNodeFinder(controller);// } else if ("http".equals(protocol)) {// this.nodeFinder = new HttpHostNodeFinder(controller);// } else {// this.nodeFinder = new RMIHostNodeFinder(controller);// } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/3c8dcbce5b12b18f3cb7fa6f4a4cf723face3153/HostObject.java/buggy/src/org/objectweb/proactive/ic2d/data/HostObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2594,
921,
12,
18071,
921,
2938,
16,
8252,
11415,
20425,
921,
2586,
20425,
2594,
16,
751,
7174,
428,
83,
15329,
9565,
12,
2938,
1769,
2211,
18,
428,
83,
33,
428,
83,
31,
759,
202,
4709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2594,
921,
12,
18071,
921,
2938,
16,
8252,
11415,
20425,
921,
2586,
20425,
2594,
16,
751,
7174,
428,
83,
15329,
9565,
12,
2938,
1769,
2211,
18,
428,
83,
33,
428,
83,
31,
759,
202,
4709... | ||
public void testBoolean() throws JMSException { JMSPropertyFieldTable table1 = new JMSPropertyFieldTable(); table1.setBoolean("value", true); Assert.assertTrue(table1.propertyExists("value")); //Test Getting right value back Assert.assertEquals(true, table1.getBoolean("value")); //Check we don't get anything back for other gets try { table1.getByte("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getByte("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getShort("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getDouble("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getFloat("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getInteger("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } try { table1.getLong("value"); fail("Should throw MessageFormatException"); } catch (MessageFormatException mfs) { //normal Execution } //except value as a string Assert.assertEquals("true", table1.getString("value")); table1.remove("value"); //but after a remove it doesn't Assert.assertFalse(table1.propertyExists("value")); // Table should now have zero size for encoding checkEmpty(table1); //Looking up an invalid value will return false Assert.assertFalse(table1.getBoolean("Rubbish")); } | 45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/9cad5792c8fa0203114d63a1851b0a9181c967f5/JMSPropertyFieldTableTest.java/buggy/qpid/java/common/src/test/java/org/apache/qpid/framing/JMSPropertyFieldTableTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5507,
1435,
1216,
20343,
565,
288,
3639,
13270,
1396,
974,
1388,
1014,
21,
273,
394,
13270,
1396,
974,
1388,
5621,
3639,
1014,
21,
18,
542,
5507,
2932,
1132,
3113,
638,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5507,
1435,
1216,
20343,
565,
288,
3639,
13270,
1396,
974,
1388,
1014,
21,
273,
394,
13270,
1396,
974,
1388,
5621,
3639,
1014,
21,
18,
542,
5507,
2932,
1132,
3113,
638,
1... | ||
{ f.setAccessible(true); return null; } | { f.setAccessible(true); return null; } | public Object run() { f.setAccessible(true); return null; } | 5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/aa9a1e51dfe3c217d861f0795af77c53a43ecefb/ObjectOutputStream.java/clean/libjava/java/io/ObjectOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1086,
1435,
202,
95,
202,
225,
284,
18,
542,
10451,
12,
3767,
1769,
202,
225,
327,
446,
31,
202,
97,
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,
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,
1033,
1086,
1435,
202,
95,
202,
225,
284,
18,
542,
10451,
12,
3767,
1769,
202,
225,
327,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
x += newChunk.width; | public static void lineToChunkList(Segment seg, Token tokens, SyntaxStyle[] styles, FontRenderContext fontRenderContext, TabExpander e, float wrapMargin, java.util.List out) { // SILLY: allow for anti-aliased characters' "fuzz" if(wrapMargin != 0.0f) wrapMargin += 2.0f; float x = 0.0f; boolean seenNonWhiteSpace = false; boolean addedNonWhiteSpace = false; float firstNonWhiteSpace = 0.0f; Chunk first = null; Chunk current = null; int tokenListOffset = 0; while(tokens.id != Token.END) { int flushIndex = tokenListOffset; for(int i = tokenListOffset; i < tokenListOffset + tokens.length; i++) { char ch = seg.array[seg.offset + i]; if(ch == '\t' || (ch == ' ' && wrapMargin != 0.0f)) { if(i != flushIndex) { Chunk newChunk = new Chunk( tokens.id,seg,flushIndex, i,styles,fontRenderContext); if(addedNonWhiteSpace && wrapMargin != 0 && x + newChunk.width > wrapMargin) { if(first != null) out.add(first); first = current = new Chunk(firstNonWhiteSpace); x = firstNonWhiteSpace + newChunk.width; } else x += newChunk.width; if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } seenNonWhiteSpace = true; addedNonWhiteSpace = true; } if(ch == ' ') { Chunk newChunk = new Chunk( tokens.id,seg,i,i + 1, styles,fontRenderContext); if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } x += current.width; } else if(ch == '\t') { Chunk newChunk = new Chunk( tokens.id,seg,i,i, styles,fontRenderContext); if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } float newX = e.nextTabStop(x,i + tokenListOffset); current.width = newX - x; x = newX; current.length = 1; } if(!seenNonWhiteSpace) firstNonWhiteSpace = x; if(first == null) first = current; flushIndex = i + 1; } else if(i == tokenListOffset + tokens.length - 1) { Chunk newChunk = new Chunk( tokens.id,seg,flushIndex, i + 1,styles,fontRenderContext); if(i == seg.count - 1 && wrapMargin != 0 && x + newChunk.width > wrapMargin && addedNonWhiteSpace) { if(first != null) out.add(first); first = current = new Chunk(firstNonWhiteSpace); x = firstNonWhiteSpace + newChunk.width; } else x += newChunk.width; if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } seenNonWhiteSpace = true; addedNonWhiteSpace = true; } } tokenListOffset += tokens.length; tokens = tokens.next; } if(first != null) out.add(first); } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/406e2f479d3b485ae65c83a5163811e6cfc02bf5/ChunkCache.java/clean/org/gjt/sp/jedit/textarea/ChunkCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
19785,
5579,
682,
12,
4131,
2291,
16,
3155,
2430,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
5661,
12271,
264,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
19785,
5579,
682,
12,
4131,
2291,
16,
3155,
2430,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
5661,
12271,
264,
425,
... | |
return event; | return alarm; | public Object mapRow(ResultSet rs, int rowNumber) throws SQLException { final Integer id = (Integer) rs.getObject("alarmid"); LazyAlarm alarm = (LazyAlarm)Cache.obtain(OnmsAlarm.class, id); alarm.setLoaded(true); Integer nodeId = new Integer(rs.getInt("nodeID")); OnmsNode node = (OnmsNode)Cache.obtain(OnmsNode.class, nodeId); alarm.setNodeId(node); String dpName = rs.getString("dpName"); OnmsDistPoller distPoller = (OnmsDistPoller)Cache.obtain(OnmsDistPoller.class, dpName); alarm.setDistPoller(distPoller); Integer eventId = new Integer(rs.getInt("lastEventId")); OnmsEvent event = (OnmsEvent)Cache.obtain(OnmsEvent.class, eventId); alarm.setLastEvent(event); Integer serviceId = new Integer(rs.getInt("serviceId")); OnmsMonitoredService service = (OnmsMonitoredService)Cache.obtain(OnmsMonitoredService.class, serviceId); alarm.setService(service); alarm.setAlarmAckTime(rs.getTimestamp("alarmAckTime")); alarm.setAlarmAckUser(rs.getString("alarmackuser")); alarm.setAlarmType(new Integer(rs.getInt("alarmType"))); alarm.setClearUei(rs.getString("clearUei")); alarm.setCounter(new Integer(rs.getInt("counter"))); alarm.setDescription(rs.getString("description")); alarm.setFirstEventTime(rs.getTimestamp("firstEventTime")); alarm.setIpAddr(rs.getString("ipAddr")); alarm.setLastEventTime(rs.getTimestamp("lastEventTime")); alarm.setLogMsg(rs.getString("logMsg")); alarm.setMouseOverText(rs.getString("mouseOverText")); alarm.setOperInstruct(rs.getString("operInstruct")); alarm.setReductionKey(rs.getString("reductionKey")); alarm.setSeverity(new Integer(rs.getInt("severity"))); alarm.setSuppressedTime(rs.getTimestamp("suppressedTime")); alarm.setSuppressedUntil(rs.getTimestamp("suppressedUntil")); alarm.setSuppressedUser(rs.getString("suppressedUser")); alarm.setTTicketId(rs.getString("tticketId")); alarm.setTTicketState(new Integer(rs.getInt("tticketState"))); alarm.setUei(rs.getString("eventUei")); new LazySet.Loader() { public Set load() { return new FindByNode(getDataSource()).findSet(id); } }; alarm.setDirty(false); return event; } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/0039557b11fd149b9c96b613ae2e333591e12694/AlarmMappingQuery.java/clean/opennms-model/src/main/java/org/opennms/netmgt/dao/jdbc/alarm/AlarmMappingQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
852,
1999,
12,
13198,
3597,
16,
509,
1027,
1854,
13,
1216,
6483,
288,
3639,
727,
2144,
612,
273,
261,
4522,
13,
3597,
18,
588,
921,
2932,
20681,
350,
8863,
3639,
12805,
16779,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
852,
1999,
12,
13198,
3597,
16,
509,
1027,
1854,
13,
1216,
6483,
288,
3639,
727,
2144,
612,
273,
261,
4522,
13,
3597,
18,
588,
921,
2932,
20681,
350,
8863,
3639,
12805,
16779,... |
public static void deplicateRelationshipFromEO(ERXGenericRecord r1, String relationshipName){ | public static void deplicateRelationshipFromEO(EOEnterpriseObject r1, String relationshipName){ | public static void deplicateRelationshipFromEO(ERXGenericRecord r1, String relationshipName){ //System.out.println("r1 "+r1); //System.out.println("relationshipName "+relationshipName); //System.out.println("array "+r1.valueForKey(relationshipName)); for(Enumeration e = ((NSArray)r1.valueForKey(relationshipName)).objectEnumerator(); e.hasMoreElements();){ ERXReplicableInterface replicableTarget = (ERXReplicableInterface)e.nextElement(); //System.out.println("replicableTarget "+replicableTarget); r1.removeObjectFromBothSidesOfRelationshipWithKey((EOEnterpriseObject)replicableTarget, relationshipName); replicableTarget.deplicate(); } } | 810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/f8a2d652399b6c52727f855940259ebf8974d02d/ERXUtilities.java/buggy/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
443,
1780,
340,
8180,
1265,
41,
51,
12,
41,
51,
30699,
921,
436,
21,
16,
514,
5232,
461,
15329,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
86,
21,
13773,
86,
21,
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,
377,
1071,
760,
918,
443,
1780,
340,
8180,
1265,
41,
51,
12,
41,
51,
30699,
921,
436,
21,
16,
514,
5232,
461,
15329,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
86,
21,
13773,
86,
21,
1769,
... |
args[0] = RubyFixnum.newFixnum(receiver.getRuntime(), new Date().getTime()); | args[0] = receiver.getRuntime().newFixnum(new Date().getTime()); | public static RubyTime s_new(IRubyObject receiver) { IRubyObject[] args = new IRubyObject[1]; args[0] = RubyFixnum.newFixnum(receiver.getRuntime(), new Date().getTime()); return s_at(receiver, args); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/buggy/src/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
950,
272,
67,
2704,
12,
7937,
10340,
921,
5971,
13,
288,
3639,
15908,
10340,
921,
8526,
833,
273,
394,
15908,
10340,
921,
63,
21,
15533,
3639,
833,
63,
20,
65,
273,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
950,
272,
67,
2704,
12,
7937,
10340,
921,
5971,
13,
288,
3639,
15908,
10340,
921,
8526,
833,
273,
394,
15908,
10340,
921,
63,
21,
15533,
3639,
833,
63,
20,
65,
273,
59... |
throw new TypeError(runtime, "class path " + path + " does not point class"); | throw runtime.newTypeError("class path " + path + " does not point class"); | public RubyModule getClassFromPath(String path) { if (path.charAt(0) == '#') { throw new ArgumentError(runtime, "can't retrieve anonymous class " + path); } IRubyObject type = runtime.evalScript(path); if (!(type instanceof RubyModule)) { throw new TypeError(runtime, "class path " + path + " does not point class"); } return (RubyModule) type; } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyClasses.java/clean/src/org/jruby/RubyClasses.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
3120,
2900,
23064,
12,
780,
589,
13,
288,
3639,
309,
261,
803,
18,
3001,
861,
12,
20,
13,
422,
2946,
6134,
288,
5411,
604,
394,
9236,
12,
9448,
16,
315,
4169,
1404,
4614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3120,
2900,
23064,
12,
780,
589,
13,
288,
3639,
309,
261,
803,
18,
3001,
861,
12,
20,
13,
422,
2946,
6134,
288,
5411,
604,
394,
9236,
12,
9448,
16,
315,
4169,
1404,
4614,
... |
IProject project = getProject((IStructuredSelection) sel); | final IProject project = getProject((IStructuredSelection) sel); | public final void run(final IAction action) { log.info("Generation Report action requested"); ISelection sel = targetPart.getSite().getSelectionProvider().getSelection(); if (sel instanceof IStructuredSelection) { try { IProject project = getProject((IStructuredSelection) sel); if (project != null) { RenderReportCmd cmd1 = new RenderReportCmd(); cmd1.setProject(project); cmd1.setRenderer(new HTMLRenderer()); cmd1.setReportName(PMDUiConstants.HTML_REPORT_NAME); cmd1.setUserInitiated(true); cmd1.performExecute(); RenderReportCmd cmd2 = new RenderReportCmd(); cmd2.setProject(project); cmd2.setRenderer(new CSVRenderer()); cmd2.setReportName(PMDUiConstants.CSV_REPORT_NAME); cmd1.setUserInitiated(true); cmd2.performExecute(); RenderReportCmd cmd3 = new RenderReportCmd(); cmd3.setProject(project); cmd3.setRenderer(new XMLRenderer()); cmd3.setReportName(PMDUiConstants.XML_REPORT_NAME); cmd1.setUserInitiated(true); cmd3.performExecute(); RenderReportCmd cmd4 = new RenderReportCmd(); cmd4.setProject(project); cmd4.setRenderer(new TextRenderer()); cmd4.setReportName(PMDUiConstants.TXT_REPORT_NAME); cmd1.setUserInitiated(true); cmd4.performExecute(); RenderReportCmd cmd5 = new RenderReportCmd(); cmd5.setProject(project); cmd5.setRenderer(new VBHTMLRenderer()); cmd5.setReportName(PMDUiConstants.VBHTML_REPORT_NAME); cmd5.setUserInitiated(true); cmd5.performExecute(); } } catch (CommandException e) { PMDUiPlugin.getDefault().showError( PMDUiPlugin.getDefault().getStringTable().getString(StringKeys.MSGKEY_ERROR_PMD_EXCEPTION), e); } } } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/5240919b79d22b6c85e62a4e13e9621cf076b883/GenerateReportAction.java/buggy/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/actions/GenerateReportAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
1086,
12,
6385,
467,
1803,
1301,
13,
288,
3639,
613,
18,
1376,
2932,
13842,
8706,
1301,
3764,
8863,
3639,
467,
6233,
357,
273,
1018,
1988,
18,
588,
4956,
7675,
588,
6233,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
1086,
12,
6385,
467,
1803,
1301,
13,
288,
3639,
613,
18,
1376,
2932,
13842,
8706,
1301,
3764,
8863,
3639,
467,
6233,
357,
273,
1018,
1988,
18,
588,
4956,
7675,
588,
6233,
... |
throw new PluginInstantiationException("Cannot load plugin class!",e); | throw new PluginInstantiationException("Cannot load plugin class: " + e.toString(), e); | public static Object getNamedPlugin(Class intfc, String name) throws PluginInstantiationException { try { String iname = intfc.getName(); configureNamedPlugin(iname); String key = iname + SEP + name; String cname = (String)namedPluginClasses.get(key); if (cname == null) log.warn("Cannot find named plugin for interface="+iname+", name=\""+name+"\""); else { Class pluginClass = Class.forName(cname); if (cacheMe(pluginClass)) { String nkey = pluginClass.getName() + SEP + name; Object cached = namedInstanceCache.get(nkey); if (cached == null) { cached = pluginClass.newInstance(); if (cached instanceof SelfNamedPlugin) ((SelfNamedPlugin)cached).setPluginInstanceName(name); namedInstanceCache.put(nkey, cached); } return cached; } else { Object result = pluginClass.newInstance(); if (result instanceof SelfNamedPlugin) ((SelfNamedPlugin)result).setPluginInstanceName(name); } } } catch (ClassNotFoundException e) { throw new PluginInstantiationException("Cannot load plugin class!",e); } catch (InstantiationException e) { throw new PluginInstantiationException(e); } catch (IllegalAccessException e) { throw new PluginInstantiationException(e); } return null; } | 47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/8cf0447063158ac73720ac9b14bede8703c61f25/PluginManager.java/buggy/dspace/src/org/dspace/core/PluginManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
23751,
3773,
12,
797,
509,
7142,
16,
514,
508,
13,
540,
1216,
6258,
10675,
7072,
503,
565,
288,
3639,
775,
3639,
288,
5411,
514,
316,
339,
273,
509,
7142,
18,
17994,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
23751,
3773,
12,
797,
509,
7142,
16,
514,
508,
13,
540,
1216,
6258,
10675,
7072,
503,
565,
288,
3639,
775,
3639,
288,
5411,
514,
316,
339,
273,
509,
7142,
18,
17994,
56... |
Log.logln(LOG_PROGRESS, "Internal Entity\t" + name + "\t" + publicId + "\t" + systemId); } | Log.logln(LOG_PROGRESS, "Internal Entity\t" + name + "\t" + publicId + "\t" + systemId); } | public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException { Log.logln(LOG_PROGRESS, "Internal Entity\t" + name + "\t" + publicId + "\t" + systemId); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/4716264464632750d34da5032a0718e1d756a967/CLDRFile.java/buggy/tools/java/org/unicode/cldr/util/CLDRFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3903,
1943,
3456,
12,
780,
508,
16,
514,
1071,
548,
16,
514,
30083,
13,
1216,
14366,
288,
540,
202,
1343,
18,
1330,
2370,
12,
4842,
67,
24022,
16,
315,
3061,
3887,
64,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3903,
1943,
3456,
12,
780,
508,
16,
514,
1071,
548,
16,
514,
30083,
13,
1216,
14366,
288,
540,
202,
1343,
18,
1330,
2370,
12,
4842,
67,
24022,
16,
315,
3061,
3887,
64,
88,
... |
NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); | return klass.call0(recv, id, args, body, false); | public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) { // ... NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
745,
12,
54,
10340,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
509,
2146,
13,
288,
7734,
368,
1372,
7734,
11922,
1417,
273,
6272,
2250,
12,
350,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
921,
10665,
16,
19817,
548,
612,
16,
19817,
921,
8526,
833,
16,
509,
2146,
13,
288,
7734,
368,
1372,
7734,
11922,
1417,
273,
6272,
2250,
12,
350,
1... |
ArrayAccess a = (ArrayAccess)left(); | X10ArrayAccess a = (X10ArrayAccess)left(); | protected void acceptCFGOpAssign(CFGBuilder v) { ArrayAccess a = (ArrayAccess)left(); // a[i] OP= e: visit a -> i -> a[i] -> e -> (a[i] OP= e) // v.visitCFG(a.array(), a.index().entry()); // v.visitCFG(a.index(), a); // v.visitThrow(a); v.edge(a, right().entry()); v.visitCFG(right(), this); } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/3b5fef131b2ed4d5eede1ffc2cbad81d67a2b1ae/X10ArrayAccessAssign_c.java/buggy/x10.compiler/src/polyglot/ext/x10/ast/X10ArrayAccessAssign_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2791,
19727,
3817,
4910,
12,
19727,
1263,
331,
13,
288,
202,
202,
1076,
1862,
279,
273,
261,
1076,
1862,
13,
4482,
5621,
9506,
202,
759,
279,
63,
77,
65,
7247,
33,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2791,
19727,
3817,
4910,
12,
19727,
1263,
331,
13,
288,
202,
202,
1076,
1862,
279,
273,
261,
1076,
1862,
13,
4482,
5621,
9506,
202,
759,
279,
63,
77,
65,
7247,
33,
425,
... |
Date created1 = offlineHandler.getDateForAttributeType( RepositoryTaskAttribute.ATTACHMENT_DATE, attachment1.getDateCreated()); Date created2 = offlineHandler.getDateForAttributeType( RepositoryTaskAttribute.ATTACHMENT_DATE, attachment2.getDateCreated()); | Date created1 = offlineHandler.getDateForAttributeType(RepositoryTaskAttribute.ATTACHMENT_DATE, attachment1.getDateCreated()); Date created2 = offlineHandler.getDateForAttributeType(RepositoryTaskAttribute.ATTACHMENT_DATE, attachment2.getDateCreated()); | public int compare(Viewer viewer, Object e1, Object e2) { RepositoryAttachment attachment1 = (RepositoryAttachment) e1; RepositoryAttachment attachment2 = (RepositoryAttachment) e2; Date created1 = offlineHandler.getDateForAttributeType( RepositoryTaskAttribute.ATTACHMENT_DATE, attachment1.getDateCreated()); Date created2 = offlineHandler.getDateForAttributeType( RepositoryTaskAttribute.ATTACHMENT_DATE, attachment2.getDateCreated()); if (created1 != null && created2 != null) { return attachment1.getDateCreated().compareTo(attachment2.getDateCreated()); } else { return 0; } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/39c6df5267235c0f0a02f27f34ae719f6015dfe1/AbstractRepositoryTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
509,
3400,
12,
18415,
14157,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
25083,
202,
3305,
6803,
6042,
21,
273,
261,
3305,
6803,
13,
425,
21,
31,
25083,
202,
3305,
6803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
509,
3400,
12,
18415,
14157,
16,
1033,
425,
21,
16,
1033,
425,
22,
13,
288,
25083,
202,
3305,
6803,
6042,
21,
273,
261,
3305,
6803,
13,
425,
21,
31,
25083,
202,
3305,
6803,
... |
boolean check = set.contains(element); | boolean check = set.containsKey(element); | public void setCheckedElements(Object[] elements) { assertElementsNotNull(elements); Set set = new HashSet(elements.length*2+1); for (int i = 0; i < elements.length; ++i) { set.add(elements[i]); } TableItem[] items = getTable().getItems(); for (int i = 0; i < items.length; ++i) { TableItem item = items[i]; Object element = item.getData(); if (element != null) { boolean check = set.contains(element); // only set if different, to avoid flicker if (item.getChecked() != check) { item.setChecked(check); } } }} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/62cad76fa04eac5c5069428b96651b4449f3b7bc/CheckboxTableViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/CheckboxTableViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
444,
11454,
3471,
12,
921,
8526,
2186,
13,
288,
202,
11231,
3471,
5962,
12,
6274,
1769,
202,
694,
444,
273,
394,
6847,
12,
6274,
18,
2469,
14,
22,
15,
21,
1769,
202,
1884,
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,
1071,
918,
444,
11454,
3471,
12,
921,
8526,
2186,
13,
288,
202,
11231,
3471,
5962,
12,
6274,
1769,
202,
694,
444,
273,
394,
6847,
12,
6274,
18,
2469,
14,
22,
15,
21,
1769,
202,
1884,
261,
... |
if (!(url.endsWith(".xml") || url.endsWith(".html"))) return; if (doc == null) return; Element element = doc.getDocumentElement(); if (element == null) return; element.normalize(); PrintStream ps = null; ps = new PrintStream(new BufferedOutputStream(System.out, 1024)); ps.println("\n+++ " + url.toString() + " +++"); dump(ps, element, 0, false); ps.println(); ps.flush(); element = null; doc = null; | public void endURLLoad(String url, int status, Document doc) { if (debug) System.err.println("DOM: end URL load - " + url.toString() + " " + Integer.toHexString(status)); if (!(url.endsWith(".xml") || url.endsWith(".html"))) return; if (doc == null) return; Element element = doc.getDocumentElement(); if (element == null) return; element.normalize(); PrintStream ps = null; ps = new PrintStream(new BufferedOutputStream(System.out, 1024)); ps.println("\n+++ " + url.toString() + " +++"); dump(ps, element, 0, false); ps.println(); ps.flush(); element = null; doc = null; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/d5d632bf9df2e7c37640ec01b53cc4d876888be9/TestDOMAccessorApplet1.java/clean/java/dom/tests/src/TestDOMAccessorApplet1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
679,
1785,
2563,
12,
780,
880,
16,
509,
1267,
16,
4319,
997,
13,
288,
565,
309,
261,
4148,
13,
1377,
2332,
18,
370,
18,
8222,
2932,
8168,
30,
679,
1976,
1262,
300,
315,
397... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
1785,
2563,
12,
780,
880,
16,
509,
1267,
16,
4319,
997,
13,
288,
565,
309,
261,
4148,
13,
1377,
2332,
18,
370,
18,
8222,
2932,
8168,
30,
679,
1976,
1262,
300,
315,
397... | |
RECharSet charSet; | emitREBytecode(CompilerState state, RECompiled re, int pc, RENode t) { RENode nextAlt; int nextAltFixup, nextTermFixup; RECharSet charSet; byte[] program = re.program; while (t != null) { program[pc++] = t.op; switch (t.op) { case REOP_EMPTY: --pc; break; case REOP_ALT: nextAlt = t.kid2; nextAltFixup = pc; /* address of next alternate */ pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_JUMP; nextTermFixup = pc; /* address of following term */ pc += OFFSET_LEN; resolveForwardJump(program, nextAltFixup, pc); pc = emitREBytecode(state, re, pc, nextAlt); program[pc++] = REOP_JUMP; nextAltFixup = pc; pc += OFFSET_LEN; resolveForwardJump(program, nextTermFixup, pc); resolveForwardJump(program, nextAltFixup, pc); break; case REOP_FLAT: /* * Consecutize FLAT's if possible. */ if (t.flatIndex != -1) { while ((t.next != null) && (t.next.op == REOP_FLAT) && ((t.flatIndex + t.length) == t.next.flatIndex)) { t.length += t.next.length; t.next = t.next.next; } } if ((t.flatIndex != -1) && (t.length > 1)) { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_FLATi; else program[pc - 1] = REOP_FLAT; pc = addIndex(program, pc, t.flatIndex); pc = addIndex(program, pc, t.length); } else { if (t.chr < 256) { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_FLAT1i; else program[pc - 1] = REOP_FLAT1; program[pc++] = (byte)(t.chr); } else { if ((state.flags & JSREG_FOLD) != 0) program[pc - 1] = REOP_UCFLAT1i; else program[pc - 1] = REOP_UCFLAT1; pc = addIndex(program, pc, t.chr); } } break; case REOP_LPAREN: pc = addIndex(program, pc, t.parenIndex); pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_RPAREN; pc = addIndex(program, pc, t.parenIndex); break; case REOP_BACKREF: pc = addIndex(program, pc, t.parenIndex); break; case REOP_ASSERT: nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ASSERTTEST; resolveForwardJump(program, nextTermFixup, pc); break; case REOP_ASSERT_NOT: nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ASSERTNOTTEST; resolveForwardJump(program, nextTermFixup, pc); break; case REOP_QUANT: if ((t.min == 0) && (t.max == -1)) program[pc - 1] = (t.greedy) ? REOP_STAR : REOP_MINIMALSTAR; else if ((t.min == 0) && (t.max == 1)) program[pc - 1] = (t.greedy) ? REOP_OPT : REOP_MINIMALOPT; else if ((t.min == 1) && (t.max == -1)) program[pc - 1] = (t.greedy) ? REOP_PLUS : REOP_MINIMALPLUS; else { if (!t.greedy) program[pc - 1] = REOP_MINIMALQUANT; pc = addIndex(program, pc, t.min); // max can be -1 which addIndex does not accept pc = addIndex(program, pc, t.max + 1); } pc = addIndex(program, pc, t.parenCount); pc = addIndex(program, pc, t.parenIndex); nextTermFixup = pc; pc += OFFSET_LEN; pc = emitREBytecode(state, re, pc, t.kid); program[pc++] = REOP_ENDCHILD; resolveForwardJump(program, nextTermFixup, pc); break; case REOP_CLASS: pc = addIndex(program, pc, t.index); charSet = re.classList[t.index]; charSet.converted = false; charSet.length = t.bmsize; charSet.startIndex = t.startIndex; charSet.strlength = t.kidlen; break; default: break; } t = t.next; } return pc; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/518a632517a44cf4bdeec19c9a902d8b9bc8c835/NativeRegExp.java/clean/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3626,
862,
858,
16651,
12,
9213,
1119,
919,
16,
2438,
20733,
283,
16,
509,
6125,
16,
2438,
907,
268,
13,
565,
288,
3639,
2438,
907,
1024,
10655,
31,
3639,
509,
1024,
10655,
8585,
416,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3626,
862,
858,
16651,
12,
9213,
1119,
919,
16,
2438,
20733,
283,
16,
509,
6125,
16,
2438,
907,
268,
13,
565,
288,
3639,
2438,
907,
1024,
10655,
31,
3639,
509,
1024,
10655,
8585,
416,
1... | |
Relative.untranslateRelative(c); | Relative.untranslateRelative(c, true); | private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { TextDecoration td = (TextDecoration) decorations.getLast(); td.setEnd(ib.x + padX); td.paint(c, line); decorations.removeLast(); } //right padding for this inline element CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = style.getMarginWidth(parent_width, parent_width, c.getCtx()); Border padding = style.getPaddingWidth(parent_width, parent_width, c.getCtx()); paintRightPadding(c, line, ib, padX, border, padding); padX += padding.right + border.right; Relative.untranslateRelative(c); c.popStyle(); if (pushedStyles != null) pushedStyles.removeLast(); style = c.getCurrentStyle(); //border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block margin = style.getMarginWidth(parent_width, parent_width, c.getCtx()); //padding = style.getPaddingWidth(parent_width, parent_width, c.getCtx()); paintMargin(c, line, ib, padX, margin.right); padX += margin.right; return padX; } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/01fe5f6295fdbc46194c11fca8c5668798faefcb/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
1640,
10870,
1046,
1638,
12,
1042,
276,
16,
10688,
4839,
1012,
16,
16355,
3514,
9834,
16,
509,
4627,
60,
16,
5377,
3514,
980,
16,
10688,
18543,
9725,
13,
288,
3639,
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,
377,
3238,
760,
509,
1640,
10870,
1046,
1638,
12,
1042,
276,
16,
10688,
4839,
1012,
16,
16355,
3514,
9834,
16,
509,
4627,
60,
16,
5377,
3514,
980,
16,
10688,
18543,
9725,
13,
288,
3639,
368,
... |
String name = f.argNames[slot]; Object val = activation.get(name, activation); | String name = state.fnOrScript.argNames[slot]; Scriptable scope = state.scope; Object val = scope.get(name, scope); | private static Object activationGet(NativeFunction f, Scriptable activation, int slot) { String name = f.argNames[slot]; Object val = activation.get(name, activation); // Activation parameter or var is permanent if (val == Scriptable.NOT_FOUND) Kit.codeBug(); return val; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
10027,
967,
12,
9220,
2083,
284,
16,
4766,
3639,
22780,
10027,
16,
509,
4694,
13,
565,
288,
3639,
514,
508,
273,
284,
18,
3175,
1557,
63,
14194,
15533,
3639,
1033,
1244,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10027,
967,
12,
9220,
2083,
284,
16,
4766,
3639,
22780,
10027,
16,
509,
4694,
13,
565,
288,
3639,
514,
508,
273,
284,
18,
3175,
1557,
63,
14194,
15533,
3639,
1033,
1244,
... |
System.out.println("Done parsing PDB file " + getTimeStamp()); | public Structure getStructure() throws IOException { FileInputStream inStream = getInputStream(); try{ System.out.println("Starting to parse PDB file " + getTimeStamp()); parsePDBFile(inStream) ; System.out.println("Done parsing PDB file " + getTimeStamp()); } catch(Exception ex){ ex.printStackTrace(); } return structure ; } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/48b81fa6f6cf265c4791633b465fa65eb34fc9d3/PDBFileReader.java/clean/src/org/biojava/bio/structure/io/PDBFileReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13348,
18730,
1435,
225,
202,
15069,
1860,
565,
288,
202,
202,
812,
4348,
28987,
273,
14424,
5621,
202,
698,
95,
202,
565,
2332,
18,
659,
18,
8222,
2932,
11715,
358,
1109,
21601,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13348,
18730,
1435,
225,
202,
15069,
1860,
565,
288,
202,
202,
812,
4348,
28987,
273,
14424,
5621,
202,
698,
95,
202,
565,
2332,
18,
659,
18,
8222,
2932,
11715,
358,
1109,
21601,
58... | |
public RealMatrix preMultiply(double[] v); | RealMatrix preMultiply(double[] v) throws IllegalArgumentException; | public RealMatrix preMultiply(double[] v); | 9305 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9305/765db662a581ffa5b5b093022bb69d2638d02aa3/RealMatrix.java/buggy/src/java/org/apache/commons/math/RealMatrix.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
15987,
4635,
675,
26040,
12,
9056,
8526,
331,
13,
1216,
2754,
31,
282,
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,
15987,
4635,
675,
26040,
12,
9056,
8526,
331,
13,
1216,
2754,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
PrivateKey.Type type = PrivateKey.Type.fromOID( algorithm.getOID() ); | public PublicKey toPublicKey() throws NoSuchAlgorithmException, InvalidKeyFormatException { PrivateKey.Type type = PrivateKey.Type.fromOID( algorithm.getOID() ); if( subjectPublicKey.getPadCount() != 0 ) { throw new InvalidKeyFormatException(); } return PK11PubKey.fromRaw(type, subjectPublicKey.getBits() ); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/cef89c3f707d343923b58083aacab2eb3d3452ff/SubjectPublicKeyInfo.java/buggy/security/jss/org/mozilla/jss/pkix/primitive/SubjectPublicKeyInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11951,
358,
9632,
1435,
1216,
17684,
16,
5411,
1962,
653,
9291,
565,
288,
2868,
309,
12,
3221,
9632,
18,
588,
14878,
1380,
1435,
480,
374,
262,
288,
5411,
604,
394,
1962,
653,
9291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11951,
358,
9632,
1435,
1216,
17684,
16,
5411,
1962,
653,
9291,
565,
288,
2868,
309,
12,
3221,
9632,
18,
588,
14878,
1380,
1435,
480,
374,
262,
288,
5411,
604,
394,
1962,
653,
9291,... | |
{ if ( getDebugTarget() != null ) result = getDebugTarget().getCurrentBreakpointFile(); if ( result == null ) result = getSourceLocator().getSourceElement( stackFrame ); } | result = getSourceLocator().getSourceElement( stackFrame ); | public Object getSourceElement( IStackFrame stackFrame ) { Object result = null; boolean autoDisassembly = CDebugCorePlugin.getDefault().getPluginPreferences().getBoolean( ICDebugConstants.PREF_AUTO_DISASSEMBLY ); if ( getMode() == ISourceMode.MODE_SOURCE && getSourceLocator() != null ) { // if the target is suspended by a line breakpoint the source manager // tries to retrieve the file resource from the breakpoint marker. if ( getDebugTarget() != null ) result = getDebugTarget().getCurrentBreakpointFile(); if ( result == null ) result = getSourceLocator().getSourceElement( stackFrame ); } if ( result == null && ( autoDisassembly || getMode() == ISourceMode.MODE_DISASSEMBLY ) && getDisassemblyManager( stackFrame ) != null ) { setRealMode( ISourceMode.MODE_DISASSEMBLY ); result = getDisassemblyManager( stackFrame ).getSourceElement( stackFrame ); } else { setRealMode( ISourceMode.MODE_SOURCE ); } return result; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/27f6d25ecb229c26ecf725e708e7e0a7681b54df/CSourceManager.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CSourceManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
7889,
1046,
12,
467,
2624,
3219,
2110,
3219,
262,
202,
95,
202,
202,
921,
563,
273,
446,
31,
202,
202,
6494,
3656,
1669,
28050,
273,
385,
2829,
4670,
3773,
18,
588,
1868... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
7889,
1046,
12,
467,
2624,
3219,
2110,
3219,
262,
202,
95,
202,
202,
921,
563,
273,
446,
31,
202,
202,
6494,
3656,
1669,
28050,
273,
385,
2829,
4670,
3773,
18,
588,
1868... |
String envp[] = DebugPlugin.getDefault( ).getLaunchManager( ) | String envp[] = DebugPlugin.getDefault( ) .getLaunchManager( ) | private VMRunnerConfiguration createVMRunner( ILaunchConfiguration configuration ) throws CoreException { String classpath[] = LauncherUtils.constructClasspath( configuration ); if ( classpath == null ) { String message = Messages.getString("ReportLaunchConfigurationDelegate.noStartup"); //$NON-NLS-1$ throw new CoreException( LauncherUtils.createErrorStatus( message ) ); } String programArgs[] = getProgramArguments( configuration ); if ( programArgs == null ) { return null; } else { String envp[] = DebugPlugin.getDefault( ).getLaunchManager( ) .getEnvironment( configuration ); VMRunnerConfiguration runnerConfig = new VMRunnerConfiguration( "org.eclipse.core.launcher.Main", classpath ); //$NON-NLS-1$ runnerConfig.setVMArguments( getVMArguments( configuration ) ); runnerConfig.setProgramArguments( programArgs ); runnerConfig.setEnvironment( envp ); return runnerConfig; } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/93f83d28c012c9318e61bf947b01279cec0512a3/ReportLaunchConfigurationDelegate.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
8251,
9709,
1750,
752,
7397,
9709,
12,
1082,
202,
2627,
4760,
1750,
1664,
262,
1216,
30015,
202,
95,
202,
202,
780,
10006,
8526,
273,
14643,
264,
1989,
18,
10062,
17461,
12,
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,
1152,
8251,
9709,
1750,
752,
7397,
9709,
12,
1082,
202,
2627,
4760,
1750,
1664,
262,
1216,
30015,
202,
95,
202,
202,
780,
10006,
8526,
273,
14643,
264,
1989,
18,
10062,
17461,
12,
16... |
if (expectedType.isDoubleType()) return new Double(((java.lang.Integer)arg).floatValue()); | if (expectedType.isDoubleType()) return new Double(((java.lang.Float)arg).floatValue()); | static Object makeArgumentCompatible(VM_Type expectedType, Object arg) { if (expectedType.isPrimitiveType()) { if (arg instanceof java.lang.Void) { if (expectedType.isVoidType()) return arg; } else if (arg instanceof java.lang.Boolean) { if (expectedType.isBooleanType()) return arg; } else if (arg instanceof java.lang.Byte) { if (expectedType.isByteType()) return arg; if (expectedType.isShortType()) return new Short(((java.lang.Byte)arg).byteValue()); if (expectedType.isIntType()) return new Integer(((java.lang.Byte)arg).byteValue()); if (expectedType.isLongType()) return new Long(((java.lang.Byte)arg).byteValue()); } else if (arg instanceof java.lang.Short) { if (expectedType.isShortType()) return arg; if (expectedType.isIntType()) return new Integer(((java.lang.Short)arg).shortValue()); if (expectedType.isLongType()) return new Long(((java.lang.Short)arg).shortValue()); } else if (arg instanceof java.lang.Character) { if (expectedType.isCharType()) return arg; if (expectedType.isIntType()) return new Integer(((java.lang.Character)arg).charValue()); if (expectedType.isLongType()) return new Long(((java.lang.Character)arg).charValue()); } else if (arg instanceof java.lang.Integer) { if (expectedType.isIntType()) return arg; if (expectedType.isLongType()) return new Long(((java.lang.Integer)arg).intValue()); } else if (arg instanceof java.lang.Long) { if (expectedType.isLongType()) return arg; } else if (arg instanceof java.lang.Float) { if (expectedType.isFloatType()) return arg; if (expectedType.isDoubleType()) return new Double(((java.lang.Integer)arg).floatValue()); } else if (arg instanceof java.lang.Double) { if (expectedType.isDoubleType()) return arg; } } else { if (arg == null) return arg; // null is always ok VM_Type actualType = VM_ObjectModel.getObjectType(arg); if (expectedType == actualType || expectedType == VM_Type.JavaLangObjectType || VM_Runtime.isAssignableWith(expectedType, actualType)) { return arg; } } throw new IllegalArgumentException(); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/e69939608f9f07e424451ab4aa648ab73908ef49/JikesRVMSupport.java/clean/rvm/src/vm/libSupport/java/lang/reflect/JikesRVMSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1033,
1221,
1379,
14599,
12,
7397,
67,
559,
23192,
16,
1033,
1501,
13,
288,
565,
309,
261,
3825,
559,
18,
291,
9840,
559,
10756,
288,
4202,
309,
261,
3175,
1276,
2252,
18,
4936,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
1033,
1221,
1379,
14599,
12,
7397,
67,
559,
23192,
16,
1033,
1501,
13,
288,
565,
309,
261,
3825,
559,
18,
291,
9840,
559,
10756,
288,
4202,
309,
261,
3175,
1276,
2252,
18,
4936,
18... |
public void onCreate(SessionID sessionID) {} | public void onCreate(SessionID sessionID) { } | public void onCreate(SessionID sessionID) {} | 52211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52211/b1369a27979caf97c3e3b66213e8103f210c0b86/BanzaiApplication.java/buggy/examples/quickfix/examples/banzai/BanzaiApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
603,
1684,
12,
2157,
734,
13737,
13,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
603,
1684,
12,
2157,
734,
13737,
13,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ( typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) | if ( typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) | private int traverseAttributeDecl( Element attrDecl, ComplexTypeInfo typeInfo, boolean referredTo ) throws Exception { ////// Get declared fields of the attribute String defaultStr = attrDecl.getAttribute(SchemaSymbols.ATT_DEFAULT); String fixedStr = attrDecl.getAttribute(SchemaSymbols.ATT_FIXED); String formStr = attrDecl.getAttribute(SchemaSymbols.ATT_FORM);//form attribute String attNameStr = attrDecl.getAttribute(SchemaSymbols.ATT_NAME); String refStr = attrDecl.getAttribute(SchemaSymbols.ATT_REF); String datatypeStr = attrDecl.getAttribute(SchemaSymbols.ATT_TYPE); String useStr = attrDecl.getAttribute(SchemaSymbols.ATT_USE); Element simpleTypeChild = findAttributeSimpleType(attrDecl); ////// define attribute declaration Schema components int attName; // attribute name indexed in the string pool int uriIndex; // indexed for target namespace uri QName attQName; // QName combining attName and uriIndex // attribute type int attType; boolean attIsList = false; int dataTypeSymbol = -1; String localpart = null; // validator DatatypeValidator dv; // value constraints and use type int attValueAndUseType = 0; int attValueConstraint = -1; // indexed value in a string pool ////// Check W3C's PR-Structure 3.2.3 // --- Constraints on XML Representations of Attribute Declarations boolean isAttrTopLevel = isTopLevel(attrDecl); boolean isOptional = false; boolean isProhibited = false; boolean isRequired = false; StringBuffer errorContext = new StringBuffer(30); errorContext.append(" -- "); if(typeInfo == null) { errorContext.append("(global attribute) "); } else if(typeInfo.typeName == null) { errorContext.append("(local attribute) "); } else { errorContext.append("(attribute) ").append(typeInfo.typeName).append("/"); } errorContext.append(attNameStr).append(' ').append(refStr); if(useStr.equals("") || useStr.equals(SchemaSymbols.ATTVAL_OPTIONAL)) { attValueAndUseType |= XMLAttributeDecl.USE_TYPE_OPTIONAL; isOptional = true; } else if(useStr.equals(SchemaSymbols.ATTVAL_PROHIBITED)) { attValueAndUseType |= XMLAttributeDecl.USE_TYPE_PROHIBITED; isProhibited = true; } else if(useStr.equals(SchemaSymbols.ATTVAL_REQUIRED)) { attValueAndUseType |= XMLAttributeDecl.USE_TYPE_REQUIRED; isRequired = true; } else { reportGenericSchemaError("An attribute cannot declare \"" + SchemaSymbols.ATT_USE + "\" as \"" + useStr + "\"" + errorContext); } if(defaultStr.length() > 0 && fixedStr.length() > 0) { reportGenericSchemaError("\"" + SchemaSymbols.ATT_DEFAULT + "\" and \"" + SchemaSymbols.ATT_FIXED + "\" cannot be both present" + errorContext); } else if(defaultStr.length() > 0 && !isOptional) { reportGenericSchemaError("If both \"" + SchemaSymbols.ATT_DEFAULT + "\" and \"" + SchemaSymbols.ATT_USE + "\" " + "are present for an attribute declaration, \"" + SchemaSymbols.ATT_USE + "\" can only be \"" + SchemaSymbols.ATTVAL_OPTIONAL + "\", not \"" + useStr + "\"." + errorContext); } else if(!isAttrTopLevel) { if((refStr.length() == 0) == (attNameStr.length() == 0)) { reportGenericSchemaError("When the attribute's parent is not <schema> , one of \"" + SchemaSymbols.ATT_REF + "\" and \"" + SchemaSymbols.ATT_NAME + "\" should be declared, but not both."+ errorContext); return -1; } else if((refStr.length() > 0) && (simpleTypeChild != null || formStr.length() > 0 || datatypeStr.length() > 0)) { reportGenericSchemaError("When the attribute's parent is not <schema> and \"" + SchemaSymbols.ATT_REF + "\" is present, " + "all of <" + SchemaSymbols.ELT_SIMPLETYPE + ">, " + SchemaSymbols.ATT_FORM + " and " + SchemaSymbols.ATT_TYPE + " must be absent."+ errorContext); } } if(datatypeStr.length() > 0 && simpleTypeChild != null) { reportGenericSchemaError("\"" + SchemaSymbols.ATT_TYPE + "\" and <" + SchemaSymbols.ELT_SIMPLETYPE + "> cannot both be present"+ errorContext); } ////// Check W3C's PR-Structure 3.2.2 // --- XML Representation of Attribute Declaration Schema Components // check case-dependent attribute declaration schema components if (isAttrTopLevel) { //// global attributes // set name component attName = fStringPool.addSymbol(attNameStr); if(fTargetNSURIString.length() == 0) { uriIndex = StringPool.EMPTY_STRING; } else { uriIndex = fTargetNSURI; } attQName = new QName(-1,attName,attName,uriIndex); } else if(refStr.length() == 0) { //// local attributes // set name component attName = fStringPool.addSymbol(attNameStr); if((formStr.length() > 0 && formStr.equals(SchemaSymbols.ATTVAL_QUALIFIED)) || (formStr.length() == 0 && fAttributeDefaultQualified)) { uriIndex = fTargetNSURI; } else { uriIndex = StringPool.EMPTY_STRING; } attQName = new QName(-1,attName,attName,uriIndex); } else { //// locally referenced global attributes String prefix; int colonptr = refStr.indexOf(":"); if ( colonptr > 0) { prefix = refStr.substring(0,colonptr); localpart = refStr.substring(colonptr+1); } else { prefix = ""; localpart = refStr; } String uriStr = resolvePrefixToURI(prefix); if (!uriStr.equals(fTargetNSURIString)) { addAttributeDeclFromAnotherSchema(localpart, uriStr, typeInfo); return 0; } Element referredAttribute = getTopLevelComponentByName(SchemaSymbols.ELT_ATTRIBUTE,localpart); if (referredAttribute != null) { // don't need to traverse ref'd attribute if we're global; just make sure it's there... traverseAttributeDecl(referredAttribute, typeInfo, true); // this nasty hack needed to ``override'' the // global attribute with "use" and "fixed" on the ref'ing attribute if(!isOptional || fixedStr.length() > 0) { int referredAttName = fStringPool.addSymbol(referredAttribute.getAttribute(SchemaSymbols.ATT_NAME)); uriIndex = StringPool.EMPTY_STRING; if ( fTargetNSURIString.length() > 0) { uriIndex = fTargetNSURI; } QName referredAttQName = new QName(-1,referredAttName,referredAttName,uriIndex); int tempIndex = fSchemaGrammar.getAttributeDeclIndex(typeInfo.templateElementIndex, referredAttQName); XMLAttributeDecl referredAttrDecl = new XMLAttributeDecl(); fSchemaGrammar.getAttributeDecl(tempIndex, referredAttrDecl); boolean updated = false; int useDigits = XMLAttributeDecl.USE_TYPE_OPTIONAL | XMLAttributeDecl.USE_TYPE_PROHIBITED | XMLAttributeDecl.USE_TYPE_REQUIRED; int valueDigits = XMLAttributeDecl.VALUE_CONSTRAINT_DEFAULT | XMLAttributeDecl.VALUE_CONSTRAINT_FIXED; if(!isOptional && (referredAttrDecl.defaultType & useDigits) != (attValueAndUseType & useDigits)) { referredAttrDecl.defaultType ^= useDigits; referredAttrDecl.defaultType |= (attValueAndUseType & useDigits); updated = true; } if(fixedStr.length() > 0) { if((referredAttrDecl.defaultType & XMLAttributeDecl.VALUE_CONSTRAINT_FIXED) == 0) { referredAttrDecl.defaultType ^= useDigits; referredAttrDecl.defaultType |= XMLAttributeDecl.VALUE_CONSTRAINT_FIXED; referredAttrDecl.defaultValue = fStringPool.toString(attValueConstraint); updated = true; } else if(!fixedStr.equals(referredAttrDecl.defaultValue)) { reportGenericSchemaError ( "Global and local declarations have different \"" + SchemaSymbols.ATT_FIXED + "\" values."+ errorContext); } } if(updated) { fSchemaGrammar.setAttributeDecl(typeInfo.templateElementIndex, tempIndex, referredAttrDecl); } } } else if (fAttributeDeclRegistry.get(localpart) != null) { addAttributeDeclFromAnotherSchema(localpart, uriStr, typeInfo); } else { // REVISIT: Localize reportGenericSchemaError ( "Couldn't find top level attribute " + refStr + errorContext); } return 0; } // validation of attribute type is same for each case of declaration if (simpleTypeChild != null) { attType = XMLAttributeDecl.TYPE_SIMPLE; dataTypeSymbol = traverseSimpleTypeDecl(simpleTypeChild); localpart = fStringPool.toString(dataTypeSymbol); dv = fDatatypeRegistry.getDatatypeValidator(localpart); } else if (datatypeStr.length() != 0) { dataTypeSymbol = fStringPool.addSymbol(datatypeStr); String prefix; int colonptr = datatypeStr.indexOf(":"); if ( colonptr > 0) { prefix = datatypeStr.substring(0,colonptr); localpart = datatypeStr.substring(colonptr+1); } else { prefix = ""; localpart = datatypeStr; } String typeURI = resolvePrefixToURI(prefix); if ( typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) || typeURI.length()==0) { dv = getDatatypeValidator("", localpart); if (localpart.equals("ID")) { attType = XMLAttributeDecl.TYPE_ID; } else if (localpart.equals("IDREF")) { attType = XMLAttributeDecl.TYPE_IDREF; } else if (localpart.equals("IDREFS")) { attType = XMLAttributeDecl.TYPE_IDREF; attIsList = true; } else if (localpart.equals("ENTITY")) { attType = XMLAttributeDecl.TYPE_ENTITY; } else if (localpart.equals("ENTITIES")) { attType = XMLAttributeDecl.TYPE_ENTITY; attIsList = true; } else if (localpart.equals("NMTOKEN")) { attType = XMLAttributeDecl.TYPE_NMTOKEN; } else if (localpart.equals("NMTOKENS")) { attType = XMLAttributeDecl.TYPE_NMTOKEN; attIsList = true; } else if (localpart.equals(SchemaSymbols.ELT_NOTATION)) { attType = XMLAttributeDecl.TYPE_NOTATION; } else { attType = XMLAttributeDecl.TYPE_SIMPLE; if (dv == null && typeURI.length() == 0) { Element topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (topleveltype != null) { traverseSimpleTypeDecl( topleveltype ); dv = getDatatypeValidator(typeURI, localpart); }else if (!referredTo) { // REVISIT: Localize reportGenericSchemaError("simpleType not found : " + "("+typeURI+":"+localpart+")"+ errorContext); } } } } else { //isn't of the schema for schemas namespace... attType = XMLAttributeDecl.TYPE_SIMPLE; // check if the type is from the same Schema dv = getDatatypeValidator(typeURI, localpart); if (dv == null && typeURI.equals(fTargetNSURIString) ) { Element topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (topleveltype != null) { traverseSimpleTypeDecl( topleveltype ); dv = getDatatypeValidator(typeURI, localpart); }else if (!referredTo) { // REVISIT: Localize reportGenericSchemaError("simpleType not found : " + "("+typeURI+":"+ localpart+")"+ errorContext); } } } } else { attType = XMLAttributeDecl.TYPE_SIMPLE; localpart = "string"; dataTypeSymbol = fStringPool.addSymbol(localpart); dv = fDatatypeRegistry.getDatatypeValidator(localpart); } // if(...Type) // validation of data constraint is same for each case of declaration if(defaultStr.length() > 0) { attValueAndUseType |= XMLAttributeDecl.VALUE_CONSTRAINT_DEFAULT; attValueConstraint = fStringPool.addString(defaultStr); } else if(fixedStr.length() > 0) { attValueAndUseType |= XMLAttributeDecl.VALUE_CONSTRAINT_FIXED; attValueConstraint = fStringPool.addString(fixedStr); } ////// Check W3C's PR-Structure 3.2.6 // --- Constraints on Attribute Declaration Schema Components // check default value is valid for the datatype. if (attType == XMLAttributeDecl.TYPE_SIMPLE && attValueConstraint != -1) { try { if (dv != null) { if(defaultStr.length() > 0) { //REVISIT dv.validate(defaultStr, null); } else { dv.validate(fixedStr, null); } } else if (!referredTo) reportSchemaError(SchemaMessageProvider.NoValidatorFor, new Object [] { datatypeStr }); } catch (InvalidDatatypeValueException idve) { if (!referredTo) reportSchemaError(SchemaMessageProvider.IncorrectDefaultType, new Object [] { attrDecl.getAttribute(SchemaSymbols.ATT_NAME), idve.getMessage() }); } catch (Exception e) { e.printStackTrace(); System.out.println("Internal error in attribute datatype validation"); } } // check the coexistence of ID and value constraint if (dv != null && dv instanceof org.apache.xerces.validators.datatype.IDDatatypeValidator && attValueConstraint != -1) { reportGenericSchemaError("If type definition is or is derived from ID ," + "there must not be a value constraint" + errorContext); } ////// every contraints were matched. Now register the attribute declaration //put the top-levels in the attribute decl registry. if (isAttrTopLevel) { fTempAttributeDecl.datatypeValidator = dv; fTempAttributeDecl.name.setValues(attQName); fTempAttributeDecl.type = attType; fTempAttributeDecl.defaultType = attValueAndUseType; fTempAttributeDecl.list = attIsList; if (attValueConstraint != -1 ) { fTempAttributeDecl.defaultValue = fStringPool.toString(attValueConstraint); } fAttributeDeclRegistry.put(attNameStr, new XMLAttributeDecl(fTempAttributeDecl)); } // add attribute to attr decl pool in fSchemaGrammar, if (typeInfo != null) { fSchemaGrammar.addAttDef( typeInfo.templateElementIndex, attQName, attType, dataTypeSymbol, attValueAndUseType, fStringPool.toString( attValueConstraint), dv, attIsList); } return 0; } // end of method traverseAttribute | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10080,
1499,
3456,
12,
3010,
1604,
3456,
16,
16060,
17305,
23112,
16,
1250,
29230,
774,
262,
1216,
1185,
288,
3639,
368,
1307,
968,
7886,
1466,
434,
326,
1566,
3639,
514,
805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10080,
1499,
3456,
12,
3010,
1604,
3456,
16,
16060,
17305,
23112,
16,
1250,
29230,
774,
262,
1216,
1185,
288,
3639,
368,
1307,
968,
7886,
1466,
434,
326,
1566,
3639,
514,
805,
... |
assertEquals(true, LongConverter.INSTANCE.isPrecise(null)); | assertEquals(true, NullConverter.INSTANCE.isPrecise(null)); | public void testIsPrecise_Object() throws Exception { assertEquals(true, LongConverter.INSTANCE.isPrecise(null)); } | 52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/72c00fed18f8cf52c55a5074e6c3e35655941e6f/TestNullConverter.java/clean/JodaTime/src/test/org/joda/time/convert/TestNullConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
1386,
30708,
67,
921,
1435,
1216,
1185,
288,
3639,
1815,
8867,
12,
3767,
16,
4112,
5072,
18,
13341,
18,
291,
1386,
30708,
12,
2011,
10019,
565,
289,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2520,
1386,
30708,
67,
921,
1435,
1216,
1185,
288,
3639,
1815,
8867,
12,
3767,
16,
4112,
5072,
18,
13341,
18,
291,
1386,
30708,
12,
2011,
10019,
565,
289,
2,
-100,
-100,
... |
protected static void simpleConstraintToString(State state, SimpleConstraint c, Query q, DatabaseSchema schema) throws ObjectStoreException { | protected static void simpleConstraintToString(State state, SimpleConstraint c, Query q) throws ObjectStoreException { | protected static void simpleConstraintToString(State state, SimpleConstraint c, Query q, DatabaseSchema schema) throws ObjectStoreException { queryEvaluableToString(state.getWhereBuffer(), c.getArg1(), q, state); state.addToWhere(" " + c.getOp().toString()); if (c.getArg2() != null) { state.addToWhere(" "); queryEvaluableToString(state.getWhereBuffer(), c.getArg2(), q, state); } } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/cebfa929cfe4247615e81071b156621d5f9ee8da/SqlGenerator.java/clean/intermine/objectstore/main/src/org/intermine/objectstore/intermine/SqlGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
4143,
5806,
5808,
12,
1119,
919,
16,
4477,
5806,
276,
16,
2770,
1043,
16,
5411,
5130,
3078,
1963,
13,
1216,
1033,
21151,
288,
3639,
843,
6644,
429,
5808,
12,
2019,
18,
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,
4750,
760,
918,
4143,
5806,
5808,
12,
1119,
919,
16,
4477,
5806,
276,
16,
2770,
1043,
16,
5411,
5130,
3078,
1963,
13,
1216,
1033,
21151,
288,
3639,
843,
6644,
429,
5808,
12,
2019,
18,
5... |
String label = matchLabel(); if (label != null) { decompiler.addName(label); } pn = nf.createContinue(label, lineno); | Node label = matchLabel(); if (label == null) { if (loopSet == null || loopSet.size() == 0) { reportError("msg.continue.outside"); return null; } loop = (Node)loopSet.peek(); } else { loop = nf.getLabelLoop(label); if (loop == null) { reportError("msg.continue.nonloop"); return null; } } pn = nf.createContinue(loop, lineno); | private Node statementHelper() throws IOException, ParserException { Node pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; tt = ts.getToken(); switch(tt) { case Token.IF: { skipsemi = true; decompiler.addToken(Token.IF); int lineno = ts.getLineno(); Node cond = condition(); decompiler.addEOL(Token.LC); Node ifTrue = statement(); Node ifFalse = null; if (ts.matchToken(Token.ELSE)) { decompiler.addToken(Token.RC); decompiler.addToken(Token.ELSE); decompiler.addEOL(Token.LC); ifFalse = statement(); } decompiler.addEOL(Token.RC); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case Token.SWITCH: { skipsemi = true; decompiler.addToken(Token.SWITCH); int lineno = ts.getLineno(); mustMatchToken(Token.LP, "msg.no.paren.switch"); decompiler.addToken(Token.LP); pn = nf.createSwitch(expr(false), lineno); mustMatchToken(Token.RP, "msg.no.paren.after.switch"); decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.switch"); decompiler.addEOL(Token.LC); boolean hasDefault = false; while ((tt = ts.getToken()) != Token.RC && tt != Token.EOF) { Node caseExpression; if (tt == Token.CASE) { decompiler.addToken(Token.CASE); caseExpression = expr(false); } else { if (tt != Token.DEFAULT) { reportError("msg.bad.switch"); } if (hasDefault) { reportError("msg.double.switch.default"); } decompiler.addToken(Token.DEFAULT); hasDefault = true; caseExpression = null; } mustMatchToken(Token.COLON, "msg.no.colon.case"); decompiler.addEOL(Token.COLON); Node block = nf.createLeaf(Token.BLOCK); while ((tt = ts.peekToken()) != Token.RC && tt != Token.CASE && tt != Token.DEFAULT && tt != Token.EOF) { nf.addChildToBack(block, statement()); } // caseExpression == null => add default lable nf.addSwitchCase(pn, caseExpression, block); } decompiler.addEOL(Token.RC); nf.closeSwitch(pn); break; } case Token.WHILE: { skipsemi = true; decompiler.addToken(Token.WHILE); int lineno = ts.getLineno(); Node cond = condition(); decompiler.addEOL(Token.LC); Node body = statement(); decompiler.addEOL(Token.RC); pn = nf.createWhile(cond, body, lineno); break; } case Token.DO: { decompiler.addToken(Token.DO); decompiler.addEOL(Token.LC); int lineno = ts.getLineno(); Node body = statement(); decompiler.addToken(Token.RC); mustMatchToken(Token.WHILE, "msg.no.while.do"); decompiler.addToken(Token.WHILE); Node cond = condition(); pn = nf.createDoWhile(body, cond, lineno); break; } case Token.FOR: { boolean isForEach = false; skipsemi = true; decompiler.addToken(Token.FOR); int lineno = ts.getLineno(); Node init; // Node init is also foo in 'foo in Object' Node cond; // Node cond is also object in 'foo in Object' Node incr = null; // to kill warning Node body; // See if this is a for each () instead of just a for () if (ts.matchToken(Token.NAME)) { decompiler.addName(ts.getString()); if (ts.getString().equals("each")) { isForEach = true; } else { reportError("msg.no.paren.for"); } } mustMatchToken(Token.LP, "msg.no.paren.for"); decompiler.addToken(Token.LP); tt = ts.peekToken(); if (tt == Token.SEMI) { init = nf.createLeaf(Token.EMPTY); } else { if (tt == Token.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(true); } else { init = expr(true); } } if (ts.matchToken(Token.IN)) { decompiler.addToken(Token.IN); // 'cond' is the object over which we're iterating cond = expr(false); } else { // ordinary for loop mustMatchToken(Token.SEMI, "msg.no.semi.for"); decompiler.addToken(Token.SEMI); if (ts.peekToken() == Token.SEMI) { // no loop condition cond = nf.createLeaf(Token.EMPTY); } else { cond = expr(false); } mustMatchToken(Token.SEMI, "msg.no.semi.for.cond"); decompiler.addToken(Token.SEMI); if (ts.peekToken() == Token.RP) { incr = nf.createLeaf(Token.EMPTY); } else { incr = expr(false); } } mustMatchToken(Token.RP, "msg.no.paren.for.ctrl"); decompiler.addToken(Token.RP); decompiler.addEOL(Token.LC); body = statement(); decompiler.addEOL(Token.RC); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, isForEach, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case Token.TRY: { int lineno = ts.getLineno(); Node tryblock; Node catchblocks = null; Node finallyblock = null; skipsemi = true; decompiler.addToken(Token.TRY); decompiler.addEOL(Token.LC); tryblock = statement(); decompiler.addEOL(Token.RC); catchblocks = nf.createLeaf(Token.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == Token.CATCH) { while (ts.matchToken(Token.CATCH)) { if (sawDefaultCatch) { reportError("msg.catch.unreachable"); } decompiler.addToken(Token.CATCH); mustMatchToken(Token.LP, "msg.no.paren.catch"); decompiler.addToken(Token.LP); mustMatchToken(Token.NAME, "msg.bad.catchcond"); String varName = ts.getString(); decompiler.addName(varName); Node catchCond = null; if (ts.matchToken(Token.IF)) { decompiler.addToken(Token.IF); catchCond = expr(false); } else { sawDefaultCatch = true; } mustMatchToken(Token.RP, "msg.bad.catchcond"); decompiler.addToken(Token.RP); mustMatchToken(Token.LC, "msg.no.brace.catchblock"); decompiler.addEOL(Token.LC); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(), ts.getLineno())); mustMatchToken(Token.RC, "msg.no.brace.after.body"); decompiler.addEOL(Token.RC); } } else if (peek != Token.FINALLY) { mustMatchToken(Token.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(Token.FINALLY)) { decompiler.addToken(Token.FINALLY); decompiler.addEOL(Token.LC); finallyblock = statement(); decompiler.addEOL(Token.RC); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case Token.THROW: { int lineno = ts.getLineno(); decompiler.addToken(Token.THROW); pn = nf.createThrow(expr(false), lineno); if (lineno == ts.getLineno()) checkWellTerminated(); break; } case Token.BREAK: { int lineno = ts.getLineno(); decompiler.addToken(Token.BREAK); // matchLabel only matches if there is one String label = matchLabel(); if (label != null) { decompiler.addName(label); } pn = nf.createBreak(label, lineno); break; } case Token.CONTINUE: { int lineno = ts.getLineno(); decompiler.addToken(Token.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(); if (label != null) { decompiler.addName(label); } pn = nf.createContinue(label, lineno); break; } case Token.WITH: { skipsemi = true; decompiler.addToken(Token.WITH); int lineno = ts.getLineno(); mustMatchToken(Token.LP, "msg.no.paren.with"); decompiler.addToken(Token.LP); Node obj = expr(false); mustMatchToken(Token.RP, "msg.no.paren.after.with"); decompiler.addToken(Token.RP); decompiler.addEOL(Token.LC); ++nestingOfWith; Node body; try { body = statement(); } finally { --nestingOfWith; } decompiler.addEOL(Token.RC); pn = nf.createWith(obj, body, lineno); break; } case Token.VAR: { int lineno = ts.getLineno(); pn = variables(false); if (ts.getLineno() == lineno) checkWellTerminated(); break; } case Token.RETURN: { Node retExpr = null; decompiler.addToken(Token.RETURN); if (!insideFunction()) reportError("msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.allowRegExp = true; tt = ts.peekTokenSameLine(); ts.allowRegExp = false; int lineno = ts.getLineno(); if (tt != Token.EOF && tt != Token.EOL && tt != Token.SEMI && tt != Token.RC) { retExpr = expr(false); if (ts.getLineno() == lineno) checkWellTerminated(); } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case Token.LC: skipsemi = true; pn = statements(); mustMatchToken(Token.RC, "msg.no.brace.block"); break; case Token.ERROR: // Fall thru, to have a node for error recovery to work on case Token.EOL: case Token.SEMI: pn = nf.createLeaf(Token.EMPTY); skipsemi = true; break; case Token.FUNCTION: { pn = function(FunctionNode.FUNCTION_EXPRESSION_STATEMENT); break; } case Token.DEFAULT : mustHaveXML(); int nsLine = ts.getLineno(); if (!(ts.matchToken(Token.NAME) && ts.getString().equals("xml"))) { reportError("msg.bad.namespace"); } decompiler.addName(ts.getString()); if (!(ts.matchToken(Token.NAME) && ts.getString().equals("namespace"))) { reportError("msg.bad.namespace"); } decompiler.addName(ts.getString()); if (!ts.matchToken(Token.ASSIGN)) { reportError("msg.bad.namespace"); } decompiler.addToken(Token.ASSIGN); Node expr = expr(false); pn = nf.createDefaultNamespace(expr, nsLine); break; default: { int lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(false); if (ts.peekToken() == Token.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != Token.NAME || (ts.getTokenno() != tokenno)) reportError("msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement()); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. decompiler.addEOL(Token.COLON); return pn; } pn = nf.createExprStatement(pn, lineno); if (ts.getLineno() == lineno) { checkWellTerminated(); } break; } } ts.matchToken(Token.SEMI); if (!skipsemi) { decompiler.addEOL(Token.SEMI); } return pn; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/d65a74793ce3fab46a10f0a143ed326996c78192/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
3021,
2276,
1435,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
16,
2727,
1404,
527,
3174,
7492,
397,
1999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2029,
3021,
2276,
1435,
3639,
1216,
1860,
16,
27990,
565,
288,
3639,
2029,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
16,
2727,
1404,
527,
3174,
7492,
397,
1999... |
setTitleKey((String) evalAttr("titleKey", getTitleKey(), | setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELSubmitTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSubmitTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... |
VM_Magic.setIntAtOffset(buffer, index, HPM_info.mode); index += SIZE_OF_INT; | VM_Magic.setIntAtOffset(buffer, index, HPM_info.mode); index = index.add(BYTES_IN_INT); | static private void writeHeader() { if(verbose>=2){ VM.sysWrite("VM_HPMs.writeHeader(",HPM_info.version_number,","); VM.sysWrite(HPM_info.getNumberOfValues()); VM.sysWrite(", "); VM.sysWrite(HPM_info.mode);VM.sysWrite(", "); VM.sysWrite(HPM_info.isBigEndian()?"BIG_ENDIAN":"LITTLE_ENDIAN"); VM.sysWrite(")\n"); } byte[] buffer = new byte[100]; // temporary buffer int index = 0; if (HPM_info.isBigEndian()) { // write version number VM_Magic.setIntAtOffset(buffer, index, HPM_info.version_number); index += SIZE_OF_INT; // write endian VM_Magic.setIntAtOffset(buffer, index, HPM_info.getEndian()); index += SIZE_OF_INT; } else { // write in default BIG_ENDIAN manner // write version number VM_Magic.setIntAtOffset(buffer, index, HPM_info.swapByteOrder(HPM_info.version_number));index += SIZE_OF_INT; // write endian VM_Magic.setIntAtOffset(buffer, index, HPM_info.swapByteOrder(HPM_info.getEndian())); index += SIZE_OF_INT; } // write number of events VM_Magic.setIntAtOffset(buffer, index, HPM_info.getNumberOfValues());index += SIZE_OF_INT; // write mode VM_Magic.setIntAtOffset(buffer, index, HPM_info.mode); index += SIZE_OF_INT; if(verbose>=4){ VM.sysWrite("VM_HPMs.writeHeaderPrefix() header: version number ", HPM_info.version_number); VM.sysWrite( ", number of values ", HPM_info.getNumberOfValues()); VM.sysWrite(", mode ", HPM_info.mode); VM.sysWrite(", endian ", HPM_info.getEndian()); VM.sysWriteln(", record_size ", record_size); } // write it to the file writeHeaderFileOutputStream(buffer, index); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/VM_HardwarePerformanceMonitors.java/clean/rvm/src/vm/HPM/VM_HardwarePerformanceMonitors.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3238,
918,
1045,
1864,
1435,
225,
288,
565,
309,
12,
11369,
34,
33,
22,
15329,
4202,
8251,
18,
9499,
3067,
2932,
7397,
67,
2500,
6947,
18,
2626,
1864,
2932,
16,
2500,
49,
67,
1376,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
3238,
918,
1045,
1864,
1435,
225,
288,
565,
309,
12,
11369,
34,
33,
22,
15329,
4202,
8251,
18,
9499,
3067,
2932,
7397,
67,
2500,
6947,
18,
2626,
1864,
2932,
16,
2500,
49,
67,
1376,... |
String str = (String)(mpi.getMimePart().getContent()); mpi.getMimePart().setText(str, Mime.P_CHARSET_UTF8); | String str = htmlStr; str = str.replaceFirst("href=\"@@ACCEPT@@\"", accept); str = str.replaceFirst("href=\"@@DECLINE@@\"", decline); str = str.replaceFirst("href=\"@@TENTATIVE@@\"", tentative); System.out.println(str); mpi.getMimePart().setContent(str, Mime.CT_TEXT_HTML); | protected static void patchCalendarURLs(MimeMessage mm, Invite inv) throws ServiceException { try { boolean changed = false; List /*<MPartInfo>*/ parts = Mime.getParts(mm); for (Iterator it = parts.iterator(); it.hasNext(); ) { MPartInfo mpi = (MPartInfo) it.next(); if (mpi.getContentType().match(Mime.CT_TEXT_HTML)) { String str = (String)(mpi.getMimePart().getContent()); mpi.getMimePart().setText(str, Mime.P_CHARSET_UTF8); changed = true; } } if (changed) { mm.saveChanges(); } } catch (IOException e) { throw ServiceException.FAILURE("IOException "+e, e); } catch (MessagingException e) { throw ServiceException.FAILURE("MessagingException "+e, e); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c799c7d94d840ba4387897acddfa68968be8870f/CalendarRequest.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/CalendarRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
4729,
7335,
15749,
12,
13320,
1079,
9740,
16,
30981,
2198,
13,
1216,
16489,
565,
288,
3639,
775,
288,
5411,
1250,
3550,
273,
629,
31,
13491,
987,
1748,
32,
49,
1988,
966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
4729,
7335,
15749,
12,
13320,
1079,
9740,
16,
30981,
2198,
13,
1216,
16489,
565,
288,
3639,
775,
288,
5411,
1250,
3550,
273,
629,
31,
13491,
987,
1748,
32,
49,
1988,
966,
... |
return null; | else if (MarkupTags.CSS_LISTITEM.equals(display)) { element = retrieveListItem(getFont(attributes), styleattributes); } else if (MarkupTags.CSS_TABLECELL.equals(display)) { element = retrieveTableCell(getFont(attributes), styleattributes); } else if (MarkupTags.CSS_TABLE.equals(display)) { element = retrieveTable(styleattributes); } return element; | public Element getObject(Properties attributes) { String key = getKey(attributes); Properties styleattributes = (Properties)stylecache.get(key); if (styleattributes != null && MarkupTags.HIDDEN.equals(styleattributes.get(MarkupTags.CSS_VISIBILITY))) { return null; } String tag = attributes.getProperty(MarkupTags.CSS_TAG); if (MarkupTags.SPAN.equals(tag)) { return retrievePhrase(getFont(attributes), styleattributes); } else if (MarkupTags.DIV.equals(tag)) { return retrieveParagraph(getFont(attributes), styleattributes); } return null; } | 6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/9c1f3476b1d9806b8e2082b2d6b28651638f261b/MarkupParser.java/clean/src/com/lowagie/text/markup/MarkupParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3010,
6455,
12,
2297,
1677,
13,
288,
202,
202,
780,
498,
273,
3579,
12,
4350,
1769,
202,
202,
2297,
2154,
4350,
273,
261,
2297,
13,
4060,
2493,
18,
588,
12,
856,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3010,
6455,
12,
2297,
1677,
13,
288,
202,
202,
780,
498,
273,
3579,
12,
4350,
1769,
202,
202,
2297,
2154,
4350,
273,
261,
2297,
13,
4060,
2493,
18,
588,
12,
856,
1769,
202,
... |
this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow.getPartService().addPartListener(partListener); ((WorkbenchWindow) this.activeWorkbenchWindow).getPerspectiveService().addPerspectiveListener(internalPerspectiveListener); } } | this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow.getPartService().addPartListener( partListener); ((WorkbenchWindow) this.activeWorkbenchWindow) .getPerspectiveService() .addPerspectiveListener(internalPerspectiveListener); } } | void updateActiveCommandIdsAndActiveContextIds() { IWorkbenchWindow activeWorkbenchWindow = getActiveWorkbenchWindow(); if (activeWorkbenchWindow != null && !(activeWorkbenchWindow instanceof WorkbenchWindow)) activeWorkbenchWindow = null; //IActionService activeWorkbenchWindowActionService = activeWorkbenchWindow != null ? ((WorkbenchWindow) activeWorkbenchWindow).getActionService() : null; //IContextActivationService activeWorkbenchWindowContextActivationService = activeWorkbenchWindow != null ? ((WorkbenchWindow) activeWorkbenchWindow).getContextActivationService() : null; IWorkbenchPage activeWorkbenchPage = activeWorkbenchWindow != null ? activeWorkbenchWindow.getActivePage() : null; IActionService activeWorkbenchPageActionService = activeWorkbenchPage != null ? ((WorkbenchPage) activeWorkbenchPage).getActionService() : null; IContextActivationService activeWorkbenchPageContextActivationService = activeWorkbenchPage != null ? ((WorkbenchPage) activeWorkbenchPage).getContextActivationService() : null; IPartService activePartService = activeWorkbenchWindow != null ? activeWorkbenchWindow.getPartService() : null; IWorkbenchPart activeWorkbenchPart = activePartService != null ? activePartService.getActivePart() : null; IWorkbenchPartSite activeWorkbenchPartSite = activeWorkbenchPart != null ? activeWorkbenchPart.getSite() : null; IActionService activeWorkbenchPartActionService = activeWorkbenchPartSite != null ? ((PartSite) activeWorkbenchPartSite).getActionService() : null; IContextActivationService activeWorkbenchPartContextActivationService = activeWorkbenchPartSite != null ? ((PartSite) activeWorkbenchPartSite).getContextActivationService() : null; if (activeWorkbenchWindow != this.activeWorkbenchWindow) { if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.removePageListener(pageListener); this.activeWorkbenchWindow.getPartService().removePartListener(partListener); ((WorkbenchWindow) this.activeWorkbenchWindow).getPerspectiveService().removePerspectiveListener(internalPerspectiveListener); } this.activeWorkbenchWindow = activeWorkbenchWindow; if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow.getPartService().addPartListener(partListener); ((WorkbenchWindow) this.activeWorkbenchWindow).getPerspectiveService().addPerspectiveListener(internalPerspectiveListener); } } /* if (activeWorkbenchWindowActionService != this.activeWorkbenchWindowActionService) { if (this.activeWorkbenchWindowActionService != null) this.activeWorkbenchWindowActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchWindow = activeWorkbenchWindow; this.activeWorkbenchWindowActionService = activeWorkbenchWindowActionService; if (this.activeWorkbenchWindowActionService != null) this.activeWorkbenchWindowActionService.addActionServiceListener(actionServiceListener); } */ if (activeWorkbenchPageActionService != this.activeWorkbenchPageActionService) { if (this.activeWorkbenchPageActionService != null) this.activeWorkbenchPageActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchPage = activeWorkbenchPage; this.activeWorkbenchPageActionService = activeWorkbenchPageActionService; if (this.activeWorkbenchPageActionService != null) this.activeWorkbenchPageActionService.addActionServiceListener(actionServiceListener); } if (activeWorkbenchPartActionService != this.activeWorkbenchPartActionService) { if (this.activeWorkbenchPartActionService != null) this.activeWorkbenchPartActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchPart = activeWorkbenchPart; this.activeWorkbenchPartActionService = activeWorkbenchPartActionService; if (this.activeWorkbenchPartActionService != null) this.activeWorkbenchPartActionService.addActionServiceListener(actionServiceListener); } SortedMap actionsById = new TreeMap(); actionsById.putAll(getActionService().getActionsById()); //if (this.activeWorkbenchWindowActionService != null) // actionsById.putAll(this.activeWorkbenchWindowActionService.getActionsById()); if (this.activeWorkbenchWindow != null) { actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForGlobalActions()); actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForActionSets()); } if (this.activeWorkbenchPageActionService != null) actionsById.putAll(this.activeWorkbenchPageActionService.getActionsById()); if (this.activeWorkbenchPartActionService != null) actionsById.putAll(this.activeWorkbenchPartActionService.getActionsById()); commandManager.setActionsById(actionsById); /* if (activeWorkbenchWindowContextActivationService != this.activeWorkbenchWindowContextActivationService) { if (this.activeWorkbenchWindowContextActivationService != null) this.activeWorkbenchWindowContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchWindow = activeWorkbenchWindow; this.activeWorkbenchWindowContextActivationService = activeWorkbenchWindowContextActivationService; if (this.activeWorkbenchWindowContextActivationService != null) this.activeWorkbenchWindowContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } */ if (activeWorkbenchPageContextActivationService != this.activeWorkbenchPageContextActivationService) { if (this.activeWorkbenchPageContextActivationService != null) this.activeWorkbenchPageContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchPage = activeWorkbenchPage; this.activeWorkbenchPageContextActivationService = activeWorkbenchPageContextActivationService; if (this.activeWorkbenchPageContextActivationService != null) this.activeWorkbenchPageContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } if (activeWorkbenchPartContextActivationService != this.activeWorkbenchPartContextActivationService) { if (this.activeWorkbenchPartContextActivationService != null) this.activeWorkbenchPartContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchPart = activeWorkbenchPart; this.activeWorkbenchPartContextActivationService = activeWorkbenchPartContextActivationService; if (this.activeWorkbenchPartContextActivationService != null) this.activeWorkbenchPartContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } SortedSet activeContextIds = new TreeSet(); activeContextIds.addAll(getContextActivationService().getActiveContextIds()); //if (this.activeWorkbenchWindowContextActivationService != null) // activeContextIds.addAll(this.activeWorkbenchWindowContextActivationService.getActiveContextIds()); if (this.activeWorkbenchPageContextActivationService != null) activeContextIds.addAll(this.activeWorkbenchPageContextActivationService.getActiveContextIds()); if (this.activeWorkbenchPartContextActivationService != null) activeContextIds.addAll(this.activeWorkbenchPartContextActivationService.getActiveContextIds()); contextManager.setActiveContextIds(new ArrayList(activeContextIds)); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c982c620ee74d8f88359cf86b9700d8f8f07c71a/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
3896,
2189,
2673,
1876,
3896,
1042,
2673,
1435,
288,
202,
202,
45,
2421,
22144,
3829,
2695,
2421,
22144,
3829,
273,
11960,
2421,
22144,
3829,
5621,
9506,
202,
430,
261,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
3896,
2189,
2673,
1876,
3896,
1042,
2673,
1435,
288,
202,
202,
45,
2421,
22144,
3829,
2695,
2421,
22144,
3829,
273,
11960,
2421,
22144,
3829,
5621,
9506,
202,
430,
261,
353... |
if(log.isInfoEnabled()) log.info("removed " + suspected_mbr + " (size=" + suspected_mbrs.size() + ")"); | if(log.isDebugEnabled()) log.debug("removed " + suspected_mbr + " (size=" + suspected_mbrs.size() + ")"); | void adjustSuspectedMembers(Vector new_mbrship) { Address suspected_mbr; if(new_mbrship == null || new_mbrship.size() == 0) return; synchronized(suspected_mbrs) { for(Iterator it=suspected_mbrs.iterator(); it.hasNext();) { suspected_mbr=(Address)it.next(); if(!new_mbrship.contains(suspected_mbr)) { it.remove(); if(log.isInfoEnabled()) log.info("removed " + suspected_mbr + " (size=" + suspected_mbrs.size() + ")"); } } if(suspected_mbrs.size() == 0) stopped=true; } } | 49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/f4d48c5d12530ffb09ab46034b71d9594b0f1287/FD.java/buggy/src/org/jgroups/protocols/FD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
5765,
55,
407,
1789,
6918,
12,
5018,
394,
67,
1627,
86,
3261,
13,
288,
5411,
5267,
11375,
1789,
67,
1627,
86,
31,
5411,
309,
12,
2704,
67,
1627,
86,
3261,
422,
446,
747,
394,
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,
540,
918,
5765,
55,
407,
1789,
6918,
12,
5018,
394,
67,
1627,
86,
3261,
13,
288,
5411,
5267,
11375,
1789,
67,
1627,
86,
31,
5411,
309,
12,
2704,
67,
1627,
86,
3261,
422,
446,
747,
394,
67,... |
assertTrue("failure for 'pk.getAlgorithm().compareTo(privateAlgorithm)== 0'", pk.getAlgorithm().compareTo(privateAlgorithm)== 0 ); assertTrue("failure for 'pk.getFormat().compareTo(privateFormat)== 0'", pk.getFormat().compareTo(privateFormat)== 0 ); | assertEquals( "failure for 'pk.getAlgorithm().compareTo(privateAlgorithm)'", 0, pk.getAlgorithm().compareTo(privateAlgorithm)); assertEquals("failure for 'pk.getFormat().compareTo(privateFormat)", 0, pk.getFormat().compareTo(privateFormat)); | private void checkPrivateKeys(DSAPrivateKey pk) { checkPrivateIntegers(pk); assertTrue("failure for 'pk.getAlgorithm().compareTo(privateAlgorithm)== 0'", pk.getAlgorithm().compareTo(privateAlgorithm)== 0 ); assertTrue("failure for 'pk.getFormat().compareTo(privateFormat)== 0'", pk.getFormat().compareTo(privateFormat)== 0 ); if ( privateEncoding != null) { assertTrue("failure: encodings are not equal", Arrays.equals(pk.getEncoded(), privateEncoding) ); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/b8ac1afde639e18cf20065b732064def66ad3dc7/DSAKeyFactoryImplTest.java/clean/modules/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/DSAKeyFactoryImplTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
6014,
2396,
12,
19748,
10824,
2365,
13,
288,
3639,
866,
6014,
382,
736,
6215,
12,
5465,
1769,
3639,
1815,
5510,
2932,
12251,
364,
296,
5465,
18,
588,
6801,
7675,
9877,
774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
6014,
2396,
12,
19748,
10824,
2365,
13,
288,
3639,
866,
6014,
382,
736,
6215,
12,
5465,
1769,
3639,
1815,
5510,
2932,
12251,
364,
296,
5465,
18,
588,
6801,
7675,
9877,
774... |
final int lineFeeds = getLineFeedsToModified(model, offset, whiteSpace.getTextRange().getStartOffset()); | public int adjustLineIndent(final PsiBasedFormattingModel model, final Block block, final CodeStyleSettings settings, final CodeStyleSettings.IndentOptions indentOptions, final int offset, final TextRange affectedRange) throws IncorrectOperationException { final FormatProcessor processor = new FormatProcessor(model, block, settings, indentOptions, affectedRange); WhiteSpace whiteSpace = processor.getWhiteSpaceBefore(offset); processor.setAllWhiteSpacesAreReadOnly(); if (whiteSpace == null) { return offset; } whiteSpace.setReadOnly(false); whiteSpace.setLineFeedsAreReadOnly(true); final IndentInfo indent; final int lineFeeds = getLineFeedsToModified(model, offset, whiteSpace.getTextRange().getStartOffset()); if (model.getLineNumber(offset) == model.getLineNumber(whiteSpace.getTextRange().getEndOffset())) { processor.formatWithoutRealModifications(); indent = new IndentInfo(0, whiteSpace.getIndentOffset(), whiteSpace.getSpaces()); } else { indent = processor.getIndentAt(offset); } Pair<String, Integer> newWS = whiteSpace.generateWhiteSpace(indentOptions, offset, indent); model.replaceWhiteSpace(whiteSpace.getTextRange(), newWS.getFirst()); return newWS.getSecond().intValue(); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/398ecd4f3650b80edb5853ba05d83d5801457db7/FormatterImpl.java/clean/source/com/intellij/newCodeFormatting/impl/FormatterImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
453,
7722,
9802,
23974,
1488,
938,
16,
17311,
727,
3914,
1203,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
5765,
1670,
7790,
12,
6385,
453,
7722,
9802,
23974,
1488,
938,
16,
17311,
727,
3914,
1203,
16,
17311,
727,
3356,
2885,
2628,
1947,
16,
17311,
727,
3356,
2885,
2628,
18,
7790,
1... | |
index = indexFromString(s); if (index != NO_INDEX) | long indexTest = indexFromString(s); if (indexTest >= 0) { index = (int)indexTest; | public static Object setElem(Object obj, Object id, Object value, Scriptable scope) { int index; String s; if (id instanceof Number) { double d = ((Number) id).doubleValue(); index = (int) d; s = ((double) index) == d ? null : toString(id); } else { s = toString(id); index = indexFromString(s); if (index != NO_INDEX) s = null; else if (s.length() == 1 && s.charAt(0) == NO_INDEX_CHAR) { // disambiguate return value: was actually a number s = null; } } Scriptable start = obj instanceof Scriptable ? (Scriptable) obj : toObject(scope, obj); Scriptable m = start; if (s != null) { if (s.equals("__proto__")) return setProto(obj, value, scope); if (s.equals("__parent__")) return setParent(obj, value, scope); do { if (m.has(s, start)) { m.put(s, start, value); return value; } m = m.getPrototype(); } while (m != null); start.put(s, start, value); return value; } do { if (m.has(index, start)) { m.put(index, start, value); return value; } m = m.getPrototype(); } while (m != null); start.put(index, start, value); return value; } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/a73c6e75ae2fab8328356d16318be7fab782905c/ScriptRuntime.java/buggy/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
444,
7498,
12,
921,
1081,
16,
1033,
612,
16,
1033,
460,
16,
4766,
22780,
2146,
13,
565,
288,
3639,
509,
770,
31,
3639,
514,
272,
31,
3639,
309,
261,
350,
1276,
3588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
444,
7498,
12,
921,
1081,
16,
1033,
612,
16,
1033,
460,
16,
4766,
22780,
2146,
13,
565,
288,
3639,
509,
770,
31,
3639,
514,
272,
31,
3639,
309,
261,
350,
1276,
3588,
... |
public void testGetDefaultShell( ) {// assertEquals( Display.getDefault( ).getActiveShell( ),// UIUtil.getDefaultShell( ) ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b9f84cd07cb7f30deba7d065768baa7f57d2487d/UIUtilUITest.java/clean/UI/org.eclipse.birt.report.designer.tests/test/org/eclipse/birt/report/designer/internal/ui/util/UIUtilUITest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
1868,
13220,
12,
262,
202,
95,
759,
202,
202,
11231,
8867,
12,
9311,
18,
588,
1868,
12,
262,
18,
588,
3896,
13220,
12,
262,
16,
759,
9506,
202,
5370,
1304,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
1868,
13220,
12,
262,
202,
95,
759,
202,
202,
11231,
8867,
12,
9311,
18,
588,
1868,
12,
262,
18,
588,
3896,
13220,
12,
262,
16,
759,
9506,
202,
5370,
1304,
1... | ||
if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } | while(r.next()) { byte[][] tuple = new byte[18][0]; | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[ 0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[ 1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[ 2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[ 3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[ 4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[ 5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[ 6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[ 7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[ 8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[ 9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid,4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + " e.description " + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " )" + " left outer join pg_description e on" + " (" + " e.objoid = a.attrelid"); if (connection.haveMinimumServerVersion("7.2")) { sql.append( " and e.objsubid = a.attnum" + " and e.classoid = (select oid from pg_class where relname = \'pg_class\')"); } sql.append( " ) " + "order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = "".getBytes(); // Catalog name tuple[1] = "".getBytes(); // Schema name tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length tuple[8] = "0".getBytes(); // Decimal Digits - how to get this? tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/6b50f9af333a2795b82dd3331df55c7e703f1bea/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
5589,
331,
273,
394,
5589,
5621,
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,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
5589,
331,
273,
394,
5589,
5621,
202... |
} catch (NotificationException nex) { throw new InitialisationException(nex, this); | } catch (Exception e) { throw new InitialisationException(e, this); | public void doInitialise() throws InitialisationException { super.doInitialise(); axisTransportProtocols = new HashMap(); for (Iterator iterator = supportedSchemes.iterator(); iterator.hasNext();) { String s = (String) iterator.next(); if(!(s.equalsIgnoreCase("http") || s.equalsIgnoreCase("https") || s.equalsIgnoreCase("servlet"))) { axisTransportProtocols.put(s, MuleTransport.class); } registerSupportedProtocol(s); } try { MuleManager.getInstance().registerListener(this); } catch (NotificationException nex) { throw new InitialisationException(nex, this); } if (serverConfig == null) serverConfig = DEFAULT_MULE_AXIS_SERVER_CONFIG; if (clientConfig == null) clientConfig = DEFAULT_MULE_AXIS_CLIENT_CONFIG; serverProvider = createAxisProvider(serverConfig); clientProvider = createAxisProvider(clientConfig); // Create the AxisServer axisServer = new AxisServer(serverProvider); axisServer.setOption("axis.doAutoTypes", new Boolean(doAutoTypes)); // Register the Mule service serverProvider WSDDProvider.registerProvider(QNAME_MULE_PROVIDER, new WSDDJavaMuleProvider(this)); try { registerTransportTypes(); } catch (ClassNotFoundException e) { throw new InitialisationException(new org.mule.config.i18n.Message(Messages.CANT_LOAD_X_FROM_CLASSPATH_FILE, e.getMessage()), e, this); } //Overload the UrlHandlers provided by Axis so Mule can use its transports to move //Soap messages around String handlerPkgs = System.getProperty("java.protocol.handler.pkgs", null); if(handlerPkgs!=null) { if(!handlerPkgs.endsWith("|")) handlerPkgs += "|"; handlerPkgs = "org.mule.providers.soap.axis.transport|" + handlerPkgs; System.setProperty("java.protocol.handler.pkgs", handlerPkgs); logger.debug("Setting java.protocol.handler.pkgs to: " + handlerPkgs); } try { registerTypes((TypeMappingRegistryImpl)axisServer.getTypeMappingRegistry(), beanTypes); } catch (ClassNotFoundException e) { throw new InitialisationException(e, this); } } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/830f14d690359c87b5d2a106a753cc5435fb3a76/AxisConnector.java/clean/providers/axis/src/main/java/org/mule/providers/soap/axis/AxisConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4435,
784,
1435,
1216,
10188,
10742,
503,
288,
3639,
2240,
18,
2896,
4435,
784,
5621,
3639,
2654,
6568,
21657,
273,
394,
4317,
5621,
3639,
364,
261,
3198,
2775,
273,
3260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4435,
784,
1435,
1216,
10188,
10742,
503,
288,
3639,
2240,
18,
2896,
4435,
784,
5621,
3639,
2654,
6568,
21657,
273,
394,
4317,
5621,
3639,
364,
261,
3198,
2775,
273,
3260,
... |
if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } | if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject)) { return RubyMapMethod.CONTINUE; } RubyObject value = (RubyObject) _value; FindClassPathResult res = (FindClassPathResult) _res; RubyString path = null; if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } String name = key.toName(); if (res.path != null) { path = (RubyString) res.path.m_dup(); path.m_cat("::"); path.m_cat(name); } else { path = RubyString.m_newString(getRuby(), name); } if (value == res.klass) { res.name = key; res.path = path; return RubyMapMethod.STOP; } if (value.m_kind_of(getRuby().getClasses().getModuleClass()).isTrue()) { if (value.getInstanceVariables() == null) { return RubyMapMethod.CONTINUE; } FindClassPathResult list = res; while (list != null) { if (list.track == value) { return RubyMapMethod.CONTINUE; } list = list.prev; } FindClassPathResult arg = new FindClassPathResult(); arg.name = null; arg.path = path; arg.klass = res.klass; arg.track = value; arg.prev = res; value.getInstanceVariables().foreach(this, arg); if (arg.name != null) { res.name = arg.name; res.path = arg.path; return RubyMapMethod.STOP; } } return RubyMapMethod.CONTINUE; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
1836,
12,
921,
389,
856,
16,
1033,
389,
1132,
16,
1033,
389,
455,
13,
288,
1082,
202,
759,
19782,
326,
924,
18,
1082,
202,
54,
10340,
548,
498,
273,
446,
31,
1082,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
1836,
12,
921,
389,
856,
16,
1033,
389,
1132,
16,
1033,
389,
455,
13,
288,
1082,
202,
759,
19782,
326,
924,
18,
1082,
202,
54,
10340,
548,
498,
273,
446,
31,
1082,
202... |
private synchronized void checkOpen() throws ReportWriteException | private synchronized void checkOpen() throws ReportWriteException | private synchronized void checkOpen() throws ReportWriteException { if(writer == null) { try { writer = new FileWriter(listFile); } catch ( IOException e ) { throw new ReportWriteException( "Cannot open listFile for writing: " + listFile, e ); } } } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/6e51d420ed174d20446e7387dab144f9c1a9eed0/PathLister.java/clean/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/report/PathLister.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
866,
3678,
1435,
1216,
8706,
3067,
503,
565,
288,
3639,
309,
12,
6299,
422,
446,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
2633,
273,
394,
24639,
12,
1098,
812,
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,
377,
3238,
3852,
918,
866,
3678,
1435,
1216,
8706,
3067,
503,
565,
288,
3639,
309,
12,
6299,
422,
446,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
2633,
273,
394,
24639,
12,
1098,
812,
1769,
... |
match(input,ID,FOLLOW_ID_in_from_source1688); following.push(FOLLOW_opt_eol_in_from_source1690); opt_eol(); following.pop(); match(input,23,FOLLOW_23_in_from_source1693); | match(input,ID,FOLLOW_ID_in_from_source1693); | public DeclarativeInvokerDescr from_source() throws RecognitionException { DeclarativeInvokerDescr ds; Token var=null; Token field=null; Token method=null; Token functionName=null; ArrayList args = null; ds = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:726:17: ( (var= ID '.' field= ID ) | (var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) | (functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) ) int alt46=3; alt46 = dfa46.predict(input); switch (alt46) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:726:17: (var= ID '.' field= ID ) { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:726:17: (var= ID '.' field= ID ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:726:18: var= ID '.' field= ID { var=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1649); match(input,18,FOLLOW_18_in_from_source1651); field=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1655); FieldAccessDescr fa = new FieldAccessDescr(var.getText(), field.getText()); fa.setLine(var.getLine()); ds = fa; } } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:736:17: (var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:736:17: (var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:736:18: var= ID '.' method= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' { var=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1682); match(input,18,FOLLOW_18_in_from_source1684); method=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1688); following.push(FOLLOW_opt_eol_in_from_source1690); opt_eol(); following.pop(); match(input,23,FOLLOW_23_in_from_source1693); following.push(FOLLOW_opt_eol_in_from_source1695); opt_eol(); following.pop(); following.push(FOLLOW_argument_list_in_from_source1699); args=argument_list(); following.pop(); following.push(FOLLOW_opt_eol_in_from_source1701); opt_eol(); following.pop(); match(input,25,FOLLOW_25_in_from_source1703); MethodAccessDescr mc = new MethodAccessDescr(var.getText(), method.getText()); mc.setArguments(args); mc.setLine(var.getLine()); ds = mc; } } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:745:17: (functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:745:17: (functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:745:18: functionName= ID opt_eol '(' opt_eol args= argument_list opt_eol ')' { functionName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_from_source1725); following.push(FOLLOW_opt_eol_in_from_source1727); opt_eol(); following.pop(); match(input,23,FOLLOW_23_in_from_source1729); following.push(FOLLOW_opt_eol_in_from_source1731); opt_eol(); following.pop(); following.push(FOLLOW_argument_list_in_from_source1735); args=argument_list(); following.pop(); following.push(FOLLOW_opt_eol_in_from_source1737); opt_eol(); following.pop(); match(input,25,FOLLOW_25_in_from_source1739); FunctionCallDescr fc = new FunctionCallDescr(functionName.getText()); fc.setLine(functionName.getLine()); fc.setArguments(args); ds = fc; } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ds; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/12c8feffd968f958100f654d836fa3c2ee21ded8/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3416,
7901,
1535,
24455,
16198,
628,
67,
3168,
1435,
1216,
9539,
288,
6647,
3416,
7901,
1535,
24455,
16198,
3780,
31,
3639,
3155,
569,
33,
2011,
31,
3639,
3155,
652,
33,
2011,
31,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3416,
7901,
1535,
24455,
16198,
628,
67,
3168,
1435,
1216,
9539,
288,
6647,
3416,
7901,
1535,
24455,
16198,
3780,
31,
3639,
3155,
569,
33,
2011,
31,
3639,
3155,
652,
33,
2011,
31,
3... |
for (int i = 0; i < neighboors.length; i++) { if (neighboors[i].getSymbol().equals("C")) { second = ac.getConnectedAtoms(neighboors[i]); | for (int i = 0; i < neighbours.length; i++) { if (neighbours[i].getSymbol().equals("C")) { second = ac.getConnectedAtoms(neighbours[i]); | private int getPresenceOfCarbonil(AtomContainer ac, org.openscience.cdk.interfaces.Atom atom) { org.openscience.cdk.interfaces.Atom[] neighboors = ac.getConnectedAtoms(atom); org.openscience.cdk.interfaces.Atom[] second = null; Bond bond = null; int counter = 0; for (int i = 0; i < neighboors.length; i++) { if (neighboors[i].getSymbol().equals("C")) { second = ac.getConnectedAtoms(neighboors[i]); for (int b = 0; b < second.length; b++) { if (second[b].getSymbol().equals("O")) { bond = ac.getBond(neighboors[i], second[b]); if (bond.getOrder() == 2.0) { counter += 1; } } } } } return counter; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/11cd872c3dbcc51a117ad375706e7a5334b88daa/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/XLogPDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1689,
455,
802,
951,
39,
11801,
330,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
20346,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1689,
455,
802,
951,
39,
11801,
330,
12,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
3641,
3179,
13,
288,
202,
202,
3341,
18,
20346,
... |
System.out.println(s.hashCode()); | int k = 1; int i = s.hashCode(); int j = i+k; System.out.println(j); | public void foo(String s) { System.out.println(s.hashCode()); if (s != null) { // bug System.out.println("Yeah"); if (s != null) { // not as bad - low priority warning System.out.println("Oh my"); } } Object o = new Object(); if (o != null) { // low priority System.out.println(o.hashCode()); } Object o2 = null; if (o2 == null) { // low priority System.out.println("This is silly"); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/cb2e55a21711893e3c76c0a121abec90e02ac93f/RedundantNullCheck.java/clean/findbugs/test/RedundantNullCheck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
8431,
12,
780,
272,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
87,
18,
2816,
1085,
10663,
202,
202,
430,
261,
87,
480,
446,
13,
288,
368,
7934,
1082,
202,
3163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8431,
12,
780,
272,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
87,
18,
2816,
1085,
10663,
202,
202,
430,
261,
87,
480,
446,
13,
288,
368,
7934,
1082,
202,
3163,
... |
g.drawString(title, textRect.x, textRect.y); | g.drawString(title, textRect.x, textRect.y + ascent); | protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) { g.setFont(font); View textView = getTextViewForTab(tabIndex); if (textView != null) { textView.paint(g, textRect); return; } int mnemIndex = tabPane.getDisplayedMnemonicIndexAt(tabIndex); if (tabPane.isEnabled() && tabPane.isEnabledAt(tabIndex)) { Color fg = tabPane.getForegroundAt(tabIndex); if (isSelected && (fg instanceof UIResource)) { Color selectionForeground = UIManager.getColor("TabbedPane.selectionForeground"); if (selectionForeground != null) fg = selectionForeground; } g.setColor(fg); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y + metrics.getAscent()); else g.drawString(title, textRect.x, textRect.y + metrics.getAscent()); } else { Color bg = tabPane.getBackgroundAt(tabIndex); g.setColor(bg.brighter()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x, textRect.y); else g.drawString(title, textRect.x, textRect.y); g.setColor(bg.darker()); if (mnemIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, title, mnemIndex, textRect.x + 1, textRect.y + 1); else g.drawString(title, textRect.x + 1, textRect.y + 1); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8e6a933c7311b8af73a149d26777089b7dc8bd68/BasicTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTabbedPaneUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
1528,
12,
17558,
314,
16,
509,
3246,
12420,
16,
10063,
3512,
16,
21821,
10063,
5653,
4309,
16,
509,
3246,
1016,
16,
514,
2077,
16,
21821,
13264,
977,
6120,
16,
1250,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
12574,
1528,
12,
17558,
314,
16,
509,
3246,
12420,
16,
10063,
3512,
16,
21821,
10063,
5653,
4309,
16,
509,
3246,
1016,
16,
514,
2077,
16,
21821,
13264,
977,
6120,
16,
1250,
209... |
exp = keyChooser.getText( ); | exp = keyChooser.getText( ).trim( ); | private String getKeyExpression( ) { String exp = null; if ( keyChooser.getSelectionIndex( ) != -1 ) { exp = DEUtil.getExpression( columnList.get( keyChooser.getSelectionIndex( ) ) ); } else { exp = keyChooser.getText( ); } return exp; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/80ccf180bdb6168009b31f74fea6b0435bb34605/GroupDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
3579,
2300,
12,
262,
202,
95,
202,
202,
780,
1329,
273,
446,
31,
202,
202,
430,
261,
498,
17324,
18,
588,
6233,
1016,
12,
262,
480,
300,
21,
262,
202,
202,
95,
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,
1152,
514,
3579,
2300,
12,
262,
202,
95,
202,
202,
780,
1329,
273,
446,
31,
202,
202,
430,
261,
498,
17324,
18,
588,
6233,
1016,
12,
262,
480,
300,
21,
262,
202,
202,
95,
1082,
... |
codeFragment.setResolveScope(GlobalSearchScope.allScope(project)); | codeFragment.forceResolveScope(GlobalSearchScope.allScope(project)); | protected Cache initEvaluatorAndChildrenExpression(final Project project) { final Cache cache = new Cache(); try { final PsiClass contextClass = DebuggerUtils.findClass(getClassName(), project, GlobalSearchScope.allScope(project)); if(contextClass == null) { throw EvaluateExceptionUtil.CANNOT_FIND_SOURCE_CLASS; } final PsiType contextType = DebuggerUtils.getType(getClassName(), project); cache.myPsiChildrenExpression = null; PsiCodeFragment codeFragment = DefaultCodeFragmentFactory.getInstance().createCodeFragment(myReferenceExpression, contextClass, project); codeFragment.setResolveScope(GlobalSearchScope.allScope(project)); codeFragment.setThisType(contextType); DebuggerUtils.checkSyntax(codeFragment); cache.myPsiChildrenExpression = ((PsiExpressionCodeFragment)codeFragment).getExpression(); cache.myEvaluator = ((DebuggerUtilsEx)DebuggerUtils.getInstance()).getEvaluatorBuilder().build(cache.myPsiChildrenExpression); } catch (EvaluateException e) { cache.myException = e; } myCache = new SoftReference<Cache>(cache); return cache; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e24adae9ba3eb8c4b809b06770d6e2d50b568128/CachedEvaluator.java/clean/debugger/impl/com/intellij/debugger/ui/tree/render/CachedEvaluator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4379,
1208,
15876,
1876,
4212,
2300,
12,
6385,
5420,
1984,
13,
288,
565,
727,
4379,
1247,
273,
394,
4379,
5621,
565,
775,
288,
1377,
727,
453,
7722,
797,
819,
797,
273,
28645,
1989,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4379,
1208,
15876,
1876,
4212,
2300,
12,
6385,
5420,
1984,
13,
288,
565,
727,
4379,
1247,
273,
394,
4379,
5621,
565,
775,
288,
1377,
727,
453,
7722,
797,
819,
797,
273,
28645,
1989,... |
public ParserConfigurationException(String msg) | public ParserConfigurationException() | public ParserConfigurationException(String msg) { super(msg); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/ParserConfigurationException.java/buggy/core/src/classpath/javax/javax/xml/parsers/ParserConfigurationException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6783,
10737,
1435,
225,
288,
565,
2240,
12,
3576,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
282,
1071,
6783,
10737,
1435,
225,
288,
565,
2240,
12,
3576,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public static List<Fault> performScan( List<DataObject> dataobjects ) throws IOException { assert dataobjects != null: "Cannot pass null to RunPMDAction.checkCookies()"; SourceLevelQuery sourceLevelQuery = (SourceLevelQuery) Lookup.getDefault().lookup(SourceLevelQuery.class); RuleSet set = constructRuleSets(); List<Fault> list = new ArrayList<Fault>( 100 ); CancelCallback cancel = new CancelCallback(); ProgressHandle prgHdl = ProgressHandleFactory.createHandle("PMD check", cancel); // PENDING action to show output prgHdl.start(dataobjects.size()); try { for( int i = 0; i < dataobjects.size(); i++ ) { if (cancel.isCancelled()) break; DataObject dataobject = dataobjects.get( i ); prgHdl.progress(dataobject.getName(), i); // TODO: I18N 'name', x of y FileObject fobj = dataobject.getPrimaryFile(); ClassPath cp = ClassPath.getClassPath( fobj, ClassPath.SOURCE ); if (cp == null) { // not on any classpath, ignore continue; } String name = cp.getResourceName( fobj, '.', false ); //The file is not a java file if (!shouldCheck(dataobject)) { continue; } String sourceLevel = sourceLevelQuery.getSourceLevel(fobj); // choose the correct PMD to use according to the source level PMD pmd = new PMD(); if ("1.5".equals(sourceLevel)) { pmd.setJavaVersion(SourceType.JAVA_15); } else if ("1.3".equals(sourceLevel)) { pmd.setJavaVersion(SourceType.JAVA_13); } else { // default to JDK 1.4 if we don't know any better... pmd.setJavaVersion(SourceType.JAVA_14); } Reader reader; try { reader = getSourceReader( dataobject ); } catch( IOException ioe) { Fault fault = new Fault( 1, name, "IOException reading file for class " + name + ": " + ioe.toString()); ErrorManager.getDefault().notify( ioe ); list.add( fault ); FaultRegistry.getInstance().registerFault( fault, dataobject ); continue; } RuleContext ctx = new RuleContext(); Report report = new Report(); ctx.setReport( report ); ctx.setSourceCodeFilename( name ); try { pmd.processFile( reader, set, ctx ); } catch( PMDException e ) { // want to log only short info about failure and stack only when -J-Dpmd=-1 or similar flag is on ErrorManager.getDefault().log(ErrorManager.INFORMATIONAL+1, "PMD threw exception " + e.toString()); ErrorManager err = ErrorManager.getDefault().getInstance("pmd"); if (err.isLoggable(err.INFORMATIONAL)) { err.notify(ErrorManager.INFORMATIONAL, e); // NOI18N } } Iterator/*<RuleViolation>*/ iterator = ctx.getReport().iterator(); while( iterator.hasNext() ) { RuleViolation violation = ( RuleViolation )iterator.next(); StringBuffer buffer = new StringBuffer(); buffer.append( violation.getRule().getName() ).append( ", " ); buffer.append( violation.getDescription() ); Fault fault = new Fault( violation.getBeginLine(), violation.getFilename(), buffer.toString() ); list.add( fault ); FaultRegistry.getInstance().registerFault( fault, dataobject ); } } } finally { prgHdl.finish(); } Collections.sort( list ); return list; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/5b1b058a600c66a4f104ea694aa697c7a730c5e2/RunPMDAction.java/clean/pmd-netbeans/src/pmd/RunPMDAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
32,
7083,
34,
3073,
7972,
12,
987,
32,
21881,
34,
501,
6911,
262,
1216,
1860,
288,
3639,
1815,
501,
6911,
480,
446,
30,
315,
4515,
1342,
446,
358,
1939,
52,
6188,
1803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
32,
7083,
34,
3073,
7972,
12,
987,
32,
21881,
34,
501,
6911,
262,
1216,
1860,
288,
3639,
1815,
501,
6911,
480,
446,
30,
315,
4515,
1342,
446,
358,
1939,
52,
6188,
1803,
... | ||
if (archiveBox != null) | } if (archiveBox != null) { | public boolean performOk() { IResource resource = (IResource) getElement(); encodingEditor.store(); if (lineDelimiterEditor != null) lineDelimiterEditor.store(); try { ResourceAttributes attrs = resource.getResourceAttributes(); if (attrs != null) { boolean hasChange = false; // Nothing to update if we never made the box if (editableBox != null && editableBox.getSelection() != previousReadOnlyValue) { attrs.setReadOnly(editableBox.getSelection()); hasChange = true; } if (executableBox != null && executableBox.getSelection() != previousExecutableValue) { attrs.setExecutable(executableBox.getSelection()); hasChange = true; } if (archiveBox != null && archiveBox.getSelection() != previousArchiveValue) { attrs.setArchive(archiveBox.getSelection()); hasChange = true; } if (hasChange) { resource.setResourceAttributes(attrs); attrs = resource.getResourceAttributes(); if (attrs != null) { previousReadOnlyValue = attrs.isReadOnly(); previousExecutableValue = attrs.isExecutable(); previousArchiveValue = attrs.isArchive(); if (editableBox != null) editableBox.setSelection(attrs.isReadOnly()); if (executableBox != null) executableBox.setSelection(attrs.isExecutable()); if (archiveBox != null) archiveBox.setSelection(attrs.isArchive()); } } } // Nothing to update if we never made the box if (this.derivedBox != null) { boolean localDerivedValue = derivedBox.getSelection(); if (previousDerivedValue != localDerivedValue) { resource.setDerived(localDerivedValue); boolean isDerived = resource.isDerived(); previousDerivedValue = isDerived; derivedBox.setSelection(isDerived); } } } catch (CoreException exception) { ErrorDialog.openError(getShell(), IDEWorkbenchMessages.InternalError, exception.getLocalizedMessage(), exception.getStatus()); return false; } return true; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/ResourceInfoPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
202,
202,
45,
1420,
1058,
273,
261,
45,
1420,
13,
7426,
5621,
202,
202,
5999,
6946,
18,
2233,
5621,
202,
202,
430,
261,
1369,
12007,
6946,
480,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
202,
202,
45,
1420,
1058,
273,
261,
45,
1420,
13,
7426,
5621,
202,
202,
5999,
6946,
18,
2233,
5621,
202,
202,
430,
261,
1369,
12007,
6946,
480,
44... |
String confpath=secprop.getProperty(secprop.CRYPTO_CONFIG); | public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { res.setContentType("Text/HTML"); String distinguishedName=null; String role=null; String cadnname=null; PrintWriter out=res.getWriter(); if (debug) { //System.out.println("getContextPath:" + req.getContextPath()); System.out.println("getPathInfo:" + req.getPathInfo()); System.out.println("getPathTranslated:" + req.getPathTranslated()); System.out.println("getRequestURI:" + req.getRequestURI()); System.out.println("getServletPath:" + req.getServletPath()); } distinguishedName=req.getParameter("distinguishedName"); role=req.getParameter("role"); cadnname=req.getParameter("cadnname"); if (debug) { System.out.println("CertificateDetailsServlet. Search DN=" + distinguishedName + " - role: " + role + " - cadnname: " + cadnname); } if((cadnname==null)||(cadnname=="")) { out.print("Error in dn name "); out.flush(); out.close(); return; } try { String confpath=secprop.getProperty(secprop.CRYPTO_CONFIG); configParser = (ConfigParserService) support.getServiceBroker().getService(this, ConfigParserService.class, null); configParser.setConfigurationFile(confpath); caPolicy = configParser.getCaPolicy(cadnname); certificateFinder = CertDirectoryServiceFactory.getCertDirectoryServiceClientInstance( caPolicy.ldapType, caPolicy.ldapURL); } catch (Exception e) { out.print("Unable to read policy file: " + e); out.flush(); out.close(); return; } if((distinguishedName==null)||(distinguishedName=="")) { out.print("Error in distinguishedName "); out.flush(); out.close(); return; } String filter = "(uniqueIdentifier=" +distinguishedName + ")"; LdapEntry[] ldapentries = certificateFinder.searchWithFilter(filter); if(ldapentries==null || ldapentries.length == 0) { out.println("Error: no such certificate in LDAP "); out.flush(); out.close(); return; } if (ldapentries.length != 1) { out.println("Error: there are multiple certificates with the same UID"); out.flush(); out.close(); return; } X509Certificate certimpl; try { certimpl=ldapentries[0].getCertificate(); } catch (Exception exp) { out.println("error----------- "+exp.toString()); out.flush(); out.close(); return; } String uri = req.getRequestURI(); String certRevokeUri = uri.substring(0, uri.lastIndexOf('/')) + "/RevokeCertificateServlet"; out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">"); out.println("<html>"); out.println("<head>"); out.println("<title>Certificate details </title>"); out.println("</head>"); out.println("<body>"); out.println("<H2> Certificate Details</H2><BR>"); out.println("<form name=\"revoke\" action=\"" + certRevokeUri + "\" method=\"post\">"); out.println("<input type=\"hidden\" name=\"distinguishedName\" value=\"" + ldapentries[0].getUniqueIdentifier()+"\">"); if((role==null)||(role=="")) { if (debug) { System.out.println("got role as null or empty in certificate details:::::++++"); } } else { out.println("<input type=\"hidden\" name=\"role\" value=\""+role+"\">"); } out.println("<input type=\"hidden\" name=\"cadnname\" value=\""+cadnname+"\">"); out.println("<b>Version :</b>" +certimpl.getVersion()); out.println("<br>"); out.println("<b>Subject :</b>" +certimpl.getSubjectDN().getName()); out.println("<br>"); out.println("<b>Signature Algorithm :</b>" +certimpl.getSigAlgName() +",<b> OID :</b>"+certimpl.getSigAlgOID()); out.println("<br>"); out.println("<b>Public Key :</b><PRE>" +CertificateUtility.toHexinHTML(certimpl.getPublicKey().getEncoded()) + "</PRE>"); out.println("<br>"); out.println("<b>Validity :</b>"); out.println("<br>"); out.println("<b> From :</b>" +certimpl.getNotBefore().toString()); out.println("<br>"); out.println("<b>  To :</b>" +certimpl.getNotAfter().toString()); out.println("<br>"); out.println("<b>Issuer :</b>" +certimpl.getIssuerDN().getName()); out.println("<br>"); out.println("<b>Serial No :</b>" +certimpl.getSerialNumber()); out.println("<br>"); out.println("<b>Algorithm :</b>" +certimpl.getPublicKey().getAlgorithm()); out.println("<br>"); out.println("<b>Signature :</b><PRE>" + CertificateUtility.toHexinHTML(certimpl.getSignature()) + "</PRE>"); out.println("<br>"); // Fingerprint out.println("<b>MD5 fingerprint :</b><PRE>" + getCertFingerPrint("MD5", certimpl) + "</PRE>"); out.println("<b>SHA1 fingerprint :</b><PRE>" + getCertFingerPrint("SHA1", certimpl) + "</PRE>"); out.println("<br>"); out.println("<input type=\"submit\" value=\"Revoke Certificate \">"); out.println("</form>"); out.println("</body></html>"); out.flush(); out.close(); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/0a3135ccf7c1181b851b0462c1b4ea6c1413f409/CertificateDetailsServlet.java/clean/securityservices/src/com/nai/security/certauthority/servlet/CertificateDetailsServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
3639,
400,
18,
542,
8046,
2932,
1528,
19,
4870,
8863,
565,
514,
19559,
5992,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
3639,
400,
18,
542,
8046,
2932,
1528,
19,
4870,
8863,
565,
514,
19559,
5992,
... | |
public void justLoadedScript(Script script) {// if(ASS)System.out.println( "loaded script: " + script ); if( ! _enabled ) return; if( ! script.isValid() ) return; synchronized(this) { // add to the table of scripts _scripts.addElement(script); _setHooksForScript(script); } } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/2de73cf99dce60cce549e7757f841284b68d1220/BreakpointTyrant.java/clean/js/jsdj/classes/com/netscape/jsdebugging/ifcui/BreakpointTyrant.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2537,
8835,
3651,
12,
3651,
2728,
13,
565,
288,
759,
3639,
309,
12,
8423,
13,
3163,
18,
659,
18,
8222,
12,
315,
4230,
2728,
30,
315,
397,
2728,
11272,
3639,
309,
12,
401,
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,
918,
2537,
8835,
3651,
12,
3651,
2728,
13,
565,
288,
759,
3639,
309,
12,
8423,
13,
3163,
18,
659,
18,
8222,
12,
315,
4230,
2728,
30,
315,
397,
2728,
11272,
3639,
309,
12,
401,
3... | ||
public void start(BundleContext context) throws Exception { super.start(context); plugin = this; authenticator = UpdateUI.getDefault().getAuthenticator(); if (authenticator == null) { authenticator = new BugzillaAuthenticator(); } Authenticator.setDefault(authenticator); // Removed since not repository specific //setDefaultQueryOptions(); readFavoritesFile(); readOfflineReportsFile();// final Set<TaskRepository> repositories = MylarTaskListPlugin.getRepositoryManager().getRepositories(// REPOSITORY_KIND);// for (TaskRepository repository : repositories) {// readCachedProductConfiguration(repository.getUrl());// } migrateOldAuthenticationData(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/021b803558816829652dd500f5695e5bfd03ae6c/BugzillaPlugin.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
9565,
18,
1937,
12,
2472,
1769,
202,
202,
4094,
273,
333,
31,
202,
202,
1944,
10149,
273,
2315,
5370,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
9565,
18,
1937,
12,
2472,
1769,
202,
202,
4094,
273,
333,
31,
202,
202,
1944,
10149,
273,
2315,
5370,
18,
588,
... | ||
declareImage(IWorkbenchGraphicConstants.IMG_LCL_MIN_VIEW_HOVER, PATH_ELOCALTOOL + "min_view.gif", true); | private final static void declareImages() { declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR, PATH_ETOOL + "pin_editor.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR_DISABLED, PATH_DTOOL + "pin_editor.gif", false); //$NON-NLS-1$ // other toolbar buttons declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVE_EDIT, PATH_ETOOL + "save_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVE_EDIT_HOVER, PATH_ETOOL + "save_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVE_EDIT_DISABLED, PATH_DTOOL + "save_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVEAS_EDIT, PATH_ETOOL + "saveas_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVEAS_EDIT_HOVER, PATH_ETOOL + "saveas_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVEAS_EDIT_DISABLED, PATH_DTOOL + "saveas_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVEALL_EDIT, PATH_ETOOL + "saveall_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_SAVEALL_EDIT_HOVER, PATH_ETOOL + "saveall_edit.gif", false); //$NON-NLS-1$ declareImage( IWorkbenchGraphicConstants.IMG_ETOOL_SAVEALL_EDIT_DISABLED, PATH_DTOOL + "saveall_edit.gif", false); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_UNDO, PATH_ETOOL + "undo_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_UNDO_HOVER, PATH_ETOOL + "undo_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_UNDO_DISABLED, PATH_DTOOL + "undo_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_REDO, PATH_ETOOL + "redo_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_REDO_HOVER, PATH_ETOOL + "redo_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_REDO_DISABLED, PATH_DTOOL + "redo_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_CUT, PATH_ETOOL + "cut_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_CUT_HOVER, PATH_ETOOL + "cut_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_CUT_DISABLED, PATH_DTOOL + "cut_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_COPY, PATH_ETOOL + "copy_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_COPY_HOVER, PATH_ETOOL + "copy_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_COPY_DISABLED, PATH_DTOOL + "copy_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_PASTE, PATH_ETOOL + "paste_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_PASTE_HOVER, PATH_ETOOL + "paste_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_PASTE_DISABLED, PATH_DTOOL + "paste_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_DELETE, PATH_ETOOL + "delete_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_DELETE_HOVER, PATH_ETOOL + "delete_edit.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_DELETE_DISABLED, PATH_DTOOL + "delete_edit.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PRINT_EDIT, PATH_ETOOL + "print_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PRINT_EDIT_HOVER, PATH_ETOOL + "print_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_PRINT_EDIT_DISABLED, PATH_DTOOL + "print_edit.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_HELP_CONTENTS, PATH_ETOOL + "help_contents.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_FORWARD, PATH_ELOCALTOOL + "forward_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_FORWARD_HOVER, PATH_ELOCALTOOL + "forward_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_FORWARD_DISABLED, PATH_DLOCALTOOL + "forward_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_BACK, PATH_ELOCALTOOL + "backward_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_BACK_HOVER, PATH_ELOCALTOOL + "backward_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_BACK_DISABLED, PATH_DLOCALTOOL + "backward_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_UP, PATH_ELOCALTOOL + "up_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_UP_HOVER, PATH_ELOCALTOOL + "up_nav.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_TOOL_UP_DISABLED, PATH_DLOCALTOOL + "up_nav.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_PAGE, PATH_EVIEW + "new_persp.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_PAGE_HOVER, PATH_EVIEW + "new_persp.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_HOME_NAV, PATH_ELOCALTOOL + "home_nav.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_ETOOL_DEF_PERSPECTIVE, PATH_EVIEW + "default_persp.gif", false); //$NON-NLS-1$ declareImage( IWorkbenchGraphicConstants.IMG_ETOOL_DEF_PERSPECTIVE_HOVER, PATH_EVIEW + "default_persp.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_WIZBAN_WORKINGSET_WIZ, PATH_WIZBAN + "workset_wiz.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_VIEW_DEFAULTVIEW_MISC, PATH_EVIEW + "defaultview_misc.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_DLGBAN_SAVEAS_DLG, PATH_WIZBAN + "saveas_wiz.gif", false); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJ_FONT, PATH_OBJECT + "font.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJ_THEME_CATEGORY, PATH_OBJECT + "theme_category.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJ_ACTIVITY, PATH_OBJECT + "activity.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJ_ACTIVITY_CATEGORY, PATH_OBJECT + "activity_category.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_OBJ_FILE, PATH_OBJECT + "file_obj.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_OBJ_FOLDER, PATH_OBJECT + "fldr_obj.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_OBJ_ELEMENT, PATH_OBJECT + "elements_obj.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_DEF_VIEW, PATH_EVIEW + "defaultview_misc.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_CLOSE_VIEW, PATH_ELOCALTOOL + "close_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_CLOSE_VIEW_HOVER, PATH_ELOCALTOOL + "close_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_PIN_VIEW, PATH_ELOCALTOOL + "pin_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_PIN_VIEW_HOVER, PATH_ELOCALTOOL + "pin_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_MIN_VIEW, PATH_ELOCALTOOL + "min_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_MIN_VIEW_HOVER, PATH_ELOCALTOOL + "min_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_VIEW_MENU, PATH_ELOCALTOOL + "view_menu.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_VIEW_MENU_HOVER, PATH_ELOCALTOOL + "view_menu.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_LINKTO_HELP, PATH_ELOCALTOOL + "linkto_help.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_CLOSE_VIEW_THIN, PATH_ELOCALTOOL + "thin_close_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_HIDE_TOOLBAR_THIN, PATH_ELOCALTOOL + "thin_hide_toolbar.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_MAX_VIEW_THIN, PATH_ELOCALTOOL + "thin_max_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_MIN_VIEW_THIN, PATH_ELOCALTOOL + "thin_min_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_RESTORE_VIEW_THIN, PATH_ELOCALTOOL + "thin_restore_view.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_SHOW_TOOLBAR_THIN, PATH_ELOCALTOOL + "thin_show_toolbar.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_LCL_VIEW_MENU_THIN, PATH_ELOCALTOOL + "thin_view_menu.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_OBJS_ERROR_TSK, PATH_OBJECT + "error_tsk.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_OBJS_WARN_TSK, PATH_OBJECT + "warn_tsk.gif", true); //$NON-NLS-1$ declareImage(ISharedImages.IMG_OBJS_INFO_TSK, PATH_OBJECT + "info_tsk.gif", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_LEFT_SOURCE, PATH_POINTER + "left_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_LEFT_MASK, PATH_POINTER + "left_mask.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_RIGHT_SOURCE, PATH_POINTER + "right_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_RIGHT_MASK, PATH_POINTER + "right_mask.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_TOP_SOURCE, PATH_POINTER + "top_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_TOP_MASK, PATH_POINTER + "top_mask.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_BOTTOM_SOURCE, PATH_POINTER + "bottom_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_BOTTOM_MASK, PATH_POINTER + "bottom_mask.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_INVALID_SOURCE, PATH_POINTER + "invalid_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_INVALID_MASK, PATH_POINTER + "invalid_mask.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_STACK_SOURCE, PATH_POINTER + "stack_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_STACK_MASK, PATH_POINTER + "stack_mask.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_OFFSCREEN_SOURCE, PATH_POINTER + "offscreen_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_OFFSCREEN_MASK, PATH_POINTER + "offscreen_mask.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_TOFASTVIEW_SOURCE, PATH_POINTER + "tofastview_source.bmp", true); //$NON-NLS-1$ declareImage(IWorkbenchGraphicConstants.IMG_OBJS_DND_TOFASTVIEW_MASK, PATH_POINTER + "tofastview_mask.bmp", true); //$NON-NLS-1$ } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2681a6ecadd52dd841e83586a7574d0fc5192344/WorkbenchImages.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchImages.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
760,
918,
14196,
8946,
1435,
288,
3639,
14196,
2040,
12,
45,
2421,
22144,
29459,
2918,
18,
3445,
43,
67,
1584,
51,
1741,
67,
52,
706,
67,
13208,
16,
7734,
7767,
67,
1584,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
760,
918,
14196,
8946,
1435,
288,
3639,
14196,
2040,
12,
45,
2421,
22144,
29459,
2918,
18,
3445,
43,
67,
1584,
51,
1741,
67,
52,
706,
67,
13208,
16,
7734,
7767,
67,
1584,
51,... | |
int iErr = Service.GetLastError(); throw new Win32Exception(iErr, "Win32 Error Code: " + iErr + ": " + Service.GetErrorMessage(iErr)); | int err = Service.GetLastError(); throw new Win32Exception(err, "Win32 Error Code: " + err + ": " + GetErrorMessage(err)); | private static final void throwLastErrorException() throws Win32Exception { int iErr = Service.GetLastError(); throw new Win32Exception(iErr, "Win32 Error Code: " + iErr + ": " + Service.GetErrorMessage(iErr)); } | 47455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47455/084300bce2472c57310fe2c37a742ed3759aafd5/Service.java/clean/bindings/java/src/net/hyperic/sigar/win32/Service.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
918,
604,
3024,
10009,
1435,
540,
1216,
21628,
1578,
503,
565,
288,
3639,
509,
277,
2524,
273,
1956,
18,
967,
3024,
668,
5621,
3639,
604,
394,
21628,
1578,
503,
12,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
604,
3024,
10009,
1435,
540,
1216,
21628,
1578,
503,
565,
288,
3639,
509,
277,
2524,
273,
1956,
18,
967,
3024,
668,
5621,
3639,
604,
394,
21628,
1578,
503,
12,
77,
... |
return getAttribute("class"); } | return getAttribute("class"); } | public String getClassName() { return getAttribute("class"); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/a0ba982304fe9f3700209293da4d2533e292e5d2/WMLSmallElementImpl.java/buggy/src/org/apache/wml/dom/WMLSmallElementImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
11819,
1435,
288,
565,
327,
4061,
2932,
1106,
8863,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
282,
1071,
514,
11819,
1435,
288,
565,
327,
4061,
2932,
1106,
8863,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
f = JFontChooser.showDialog(frame, editor.getTextArea().getPainter().getFont()); | f = JFontChooser.showDialog(frame, editor.getTextArea() .getPainter().getFont()); | private JMenu makeOptionsMenu() { JMenu menu = new JMenu(messageBundle.getString("menu.options")); menu.setMnemonic(KeyEvent.VK_I); JMenuItem menuItem; //Save Automatically on compilation. if (jeliotUserProperties.containsKey("save_automatically")) { editor.setSaveAutomatically(Boolean.valueOf( jeliotUserProperties.getStringProperty("save_automatically")).booleanValue()); } else { jeliotUserProperties.setStringProperty("save_automatically", Boolean.toString(editor .isSaveAutomatically())); } final JCheckBoxMenuItem saveAutomaticallyOnCompilationMenuItem = new JCheckBoxMenuItem( messageBundle.getString("menu.options.save_automatically"), editor .isSaveAutomatically()); saveAutomaticallyOnCompilationMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK + ActionEvent.ALT_MASK)); saveAutomaticallyOnCompilationMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { boolean saveAutomatically = saveAutomaticallyOnCompilationMenuItem.getState(); editor.setSaveAutomatically(saveAutomatically); jeliotUserProperties.setBooleanProperty("save_automatically", saveAutomatically); } }); menu.add(saveAutomaticallyOnCompilationMenuItem); //Ask for method if (jeliotUserProperties.containsKey("ask_for_method")) { askForMethod = jeliotUserProperties.getBooleanProperty("ask_for_method"); } else { jeliotUserProperties.setBooleanProperty("ask_for_method", askForMethod); } final JCheckBoxMenuItem askForMethodMenuItem = new JCheckBoxMenuItem(messageBundle .getString("menu.options.ask_for_method"), askForMethod); askForMethodMenuItem.setMnemonic(KeyEvent.VK_M); askForMethodMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK + ActionEvent.ALT_MASK)); askForMethodMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { askForMethod = askForMethodMenuItem.getState(); jeliotUserProperties.setStringProperty("ask_for_method", Boolean .toString(askForMethod)); } }); menu.add(askForMethodMenuItem); //Pause on message if (jeliotUserProperties.containsKey("pause_on_message")) { showMessagesInDialogs = jeliotUserProperties.getBooleanProperty("pause_on_message"); } else { jeliotUserProperties.setBooleanProperty("pause_on_message", showMessagesInDialogs); } final JCheckBoxMenuItem pauseOnMessageMenuItem = new JCheckBoxMenuItem(messageBundle .getString("menu.options.pause_on_message"), showMessagesInDialogs); pauseOnMessageMenuItem.setMnemonic(KeyEvent.VK_U); pauseOnMessageMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK + ActionEvent.ALT_MASK)); pauseOnMessageMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { showMessagesInDialogs = pauseOnMessageMenuItem.getState(); jeliotUserProperties.setBooleanProperty("pause_on_message", showMessagesInDialogs); } }); menu.add(pauseOnMessageMenuItem); //Show history view final Jeliot j = jeliot; final JTabbedPane jtp = this.tabbedPane; final int index = jtp.indexOfTab(messageBundle.getString("tab.title.history")); if (jeliotUserProperties.containsKey("show_history_view")) { j.getHistoryView().setEnabled( jeliotUserProperties.getBooleanProperty("show_history_view")); } else { jeliotUserProperties.setBooleanProperty("show_history_view", j.getHistoryView() .isEnabled()); } final JCheckBoxMenuItem enableHistoryViewMenuItem = new JCheckBoxMenuItem(messageBundle .getString("menu.options.show_history_view"), jeliot.getHistoryView().isEnabled()); enableHistoryViewMenuItem.setMnemonic(KeyEvent.VK_H); enableHistoryViewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK)); enableHistoryViewMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { boolean state = enableHistoryViewMenuItem.getState(); j.getHistoryView().setEnabled(state); if (codeNest.getLeftComponent() instanceof CodePane2) { jtp.setEnabledAt(index, state); } jeliotUserProperties.setBooleanProperty("show_history_view", j.getHistoryView() .isEnabled()); } }); menu.add(enableHistoryViewMenuItem); menu.addSeparator(); //Select font for editor and code pane. menuItem = new JMenuItem(messageBundle.getString("menu.options.font_select")); menuItem.setMnemonic(KeyEvent.VK_F); menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK)); menuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Font f = null; try { f = JFontChooser.showDialog(frame, editor.getTextArea().getPainter().getFont()); } catch (Exception e1) { DebugUtil.handleThrowable(e1); /* if (DebugUtil.DEBUGGING) { jeliot.output(e1.toString()); StackTraceElement[] s = e1.getStackTrace(); for (int i = 0; i < s.length; i++) { jeliot.output(s[i].toString() + "\n"); } } */ } if (f != null) { getCodePane().setFont(f); editor.setFont(f); /* getCodePane().getTextArea().getPainter().setFont(f); propertiesBundle.setFontProperty("font.code_pane", f); editor.getTextArea().getPainter().setFont(f); propertiesBundle.setFontProperty("font.code_editor", f); */ } codeNest.getLeftComponent().requestFocusInWindow(); } }); menu.add(menuItem); return menu; } | 49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/2afb143799924500a7f86421daa0c157cfa3f366/JeliotWindow.java/clean/src/jeliot/gui/JeliotWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
1221,
1320,
4599,
1435,
288,
3639,
804,
4599,
3824,
273,
394,
804,
4599,
12,
2150,
3405,
18,
588,
780,
2932,
5414,
18,
2116,
7923,
1769,
3639,
3824,
18,
542,
29668,
20918... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
4599,
1221,
1320,
4599,
1435,
288,
3639,
804,
4599,
3824,
273,
394,
804,
4599,
12,
2150,
3405,
18,
588,
780,
2932,
5414,
18,
2116,
7923,
1769,
3639,
3824,
18,
542,
29668,
20918... |
for(int i = 0; i < children.length; i++){ final PsiElement child = children[i]; | for(final PsiElement child : children){ | private void termReplace(StringBuffer out, PsiElement target, PsiElement replace, String stringToReplaceWith){ if(target.equals(replace)){ out.append(stringToReplaceWith); } else if(target.getChildren() != null && target.getChildren().length != 0){ final PsiElement[] children = target.getChildren(); for(int i = 0; i < children.length; i++){ final PsiElement child = children[i]; termReplace(out, child, replace, stringToReplaceWith); } } else{ final String text = target.getText(); out.append(text); } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/ReplaceIfWithSwitchIntention.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/switchtoif/ReplaceIfWithSwitchIntention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2481,
5729,
12,
780,
1892,
596,
16,
453,
7722,
1046,
1018,
16,
11794,
453,
7722,
1046,
1453,
16,
514,
14134,
5729,
1190,
15329,
3639,
309,
12,
3299,
18,
14963,
12,
2079,
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,
3238,
918,
2481,
5729,
12,
780,
1892,
596,
16,
453,
7722,
1046,
1018,
16,
11794,
453,
7722,
1046,
1453,
16,
514,
14134,
5729,
1190,
15329,
3639,
309,
12,
3299,
18,
14963,
12,
2079,
3719,
... |
reportDOMError(errorHandler, error, locator, msg, DOMError.SEVERITY_ERROR, null, | reportDOMError(errorHandler, error, locator, msg, DOMError.SEVERITY_ERROR, | public static final void isCDataWF(DOMErrorHandler errorHandler, DOMErrorImpl error, DOMLocatorImpl locator, String datavalue, boolean isXML11Version) { if(datavalue == null || (datavalue.length() == 0) ) return ; char [] dataarray = datavalue.toCharArray(); int datalength = dataarray.length ; //version of the document is XML 1.1 if(isXML11Version){ //we need to check all chracters as per production rules of XML11 int i = 0 ; while(i < datalength){ char c = dataarray[i++]; if(XML11Char.isXML11Invalid(c)){ String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.XML_DOMAIN, "InvalidCharInCDSect", new Object[] { Integer.toString(c, 16)}); reportDOMError( errorHandler, error, locator, msg, DOMError.SEVERITY_ERROR, null, "wf-invalid-character"); } else if (c==']'){ int count = i; if (count<datalength && dataarray[count]==']'){ while (++count <datalength && dataarray[count]==']'){ // do nothing } if (count <datalength && dataarray[count]=='>'){ //CDEndInContent String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.XML_DOMAIN, "CDEndInContent", null); reportDOMError(errorHandler, error, locator,msg, DOMError.SEVERITY_ERROR, null, "wf-invalid-character"); } } } } }//version of the document is XML 1.0 else{ //we need to check all chracters as per production rules of XML 1.0 int i = 0 ; while(i < datalength){ char c = dataarray[i++]; if( XMLChar.isInvalid(c) ){ //Note: The key InvalidCharInCDSect from XMLMessages.properties //is being used to obtain the message and DOM error type //"wf-invalid-character" is used. Also per DOM it is error but //as per XML spec. it is fatal error String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.XML_DOMAIN, "InvalidCharInCDSect", new Object[]{Integer.toString(c, 16)}); reportDOMError(errorHandler, error, locator, msg, DOMError.SEVERITY_ERROR, null, "wf-invalid-character"); } else if (c==']'){ int count = i; if (count<datalength && dataarray[count]==']'){ while (++count <datalength && dataarray[count]==']'){ // do nothing } if (count <datalength && dataarray[count]=='>'){ String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.XML_DOMAIN,"CDEndInContent", null); reportDOMError(errorHandler, error, locator, msg, DOMError.SEVERITY_ERROR, null, "wf-invalid-character"); } } } } }//end-else fDocument.isXMLVersion() }//isCDataWF | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/3efa84f345153efd3e2ca682c39b9766f6ce729d/DOMNormalizer.java/buggy/src/org/apache/xerces/dom/DOMNormalizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
918,
25249,
751,
59,
42,
12,
8168,
17729,
17227,
16,
4703,
668,
2828,
555,
16,
4703,
5786,
2828,
8871,
16,
2398,
514,
501,
1132,
16,
1250,
353,
4201,
2499,
1444,
13,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
918,
25249,
751,
59,
42,
12,
8168,
17729,
17227,
16,
4703,
668,
2828,
555,
16,
4703,
5786,
2828,
8871,
16,
2398,
514,
501,
1132,
16,
1250,
353,
4201,
2499,
1444,
13,
565... |
numberFormat = new DecimalFormat( "###,##0.00 %", | numberFormat = new DecimalFormat( "###,##0.00 %", | private void handleSingleCharFormatString( char c ) { switch ( c ) { case 'G' : case 'g' : case 'D' : case 'd' : numberFormat = NumberFormat.getInstance( locale ); return; case 'C' : case 'c' : numberFormat = NumberFormat .getCurrencyInstance( locale ); return; case 'F' : case 'f' : numberFormat = new DecimalFormat( "#0.00", new DecimalFormatSymbols( locale ) ); return; case 'N' : case 'n' : numberFormat = new DecimalFormat( "###,##0.00", new DecimalFormatSymbols( locale ) ); return; case 'P' : case 'p' : numberFormat = new DecimalFormat( "###,##0.00 %", new DecimalFormatSymbols( locale ) ); return; case 'E' : case 'e' : numberFormat = new DecimalFormat( "0.000000E00", new DecimalFormatSymbols( locale ) ); return; case 'X' : case 'x' : hexFlag = true; return; default : { char data[] = new char[1]; data[0] = c; String str = new String(data); numberFormat = new DecimalFormat( str, new DecimalFormatSymbols( locale ) ); return; } } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/5e9b56cf7b8135282c03b97d8af0909f1c511509/NumberFormatter.java/buggy/core/org.eclipse.birt.core/src/org/eclipse/birt/core/format/NumberFormatter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
5281,
2156,
1630,
780,
12,
1149,
276,
262,
202,
95,
202,
202,
9610,
261,
276,
262,
202,
202,
95,
1082,
202,
3593,
296,
43,
11,
294,
1082,
202,
3593,
296,
75,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
5281,
2156,
1630,
780,
12,
1149,
276,
262,
202,
95,
202,
202,
9610,
261,
276,
262,
202,
202,
95,
1082,
202,
3593,
296,
43,
11,
294,
1082,
202,
3593,
296,
75,
11,... |
try { Value val = PropertyUtil.getValue(prop); val.getDate(); fail("Conversion from a Boolean value to a Date value " + "should throw a ValueFormatException"); } catch (ValueFormatException vfe) { } } | try { Value val = PropertyUtil.getValue(prop); val.getDate(); fail("Conversion from a Boolean value to a Date value " + "should throw a ValueFormatException"); } catch (ValueFormatException vfe) { } } | public void testGetDate() throws RepositoryException { try { Value val = PropertyUtil.getValue(prop); val.getDate(); fail("Conversion from a Boolean value to a Date value " + "should throw a ValueFormatException"); } catch (ValueFormatException vfe) { //ok } } | 49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/cc22580270eec3c3113be6779f02eb9634089fac/BooleanPropertyTest.java/buggy/src/test/org/apache/jackrabbit/test/api/BooleanPropertyTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
918,
1842,
967,
1626,
1435,
1216,
13367,
288,
540,
775,
288,
2398,
1445,
1244,
273,
4276,
1304,
18,
24805,
12,
5986,
1769,
2398,
1244,
18,
588,
1626,
5621,
2398,
2321,
2932,
6814,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
918,
1842,
967,
1626,
1435,
1216,
13367,
288,
540,
775,
288,
2398,
1445,
1244,
273,
4276,
1304,
18,
24805,
12,
5986,
1769,
2398,
1244,
18,
588,
1626,
5621,
2398,
2321,
2932,
6814,
... |
if (canonicalize(gData.cpbegin[parenContent + i]) != canonicalize(gData.cpbegin[x.cp + i])) | if (upcase(gData.cpbegin[parenContent + i]) != upcase(gData.cpbegin[x.cp + i])) | backrefMatcher(REGlobalData gData, REMatchState x, int parenIndex) { int len; int i; int parenContent = x.parens_index(parenIndex); if (parenContent == -1) return x; len = x.parens_length(parenIndex); if ((x.cp + len) > gData.cpend) return null; if ((gData.regexp.flags & JSREG_FOLD) != 0) { for (i = 0; i < len; i++) { if (canonicalize(gData.cpbegin[parenContent + i]) != canonicalize(gData.cpbegin[x.cp + i])) return null; } } else { for (i = 0; i < len; i++) { if (gData.cpbegin[parenContent + i] != gData.cpbegin[x.cp + i]) return null; } } x.cp += len; return x; } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/a0e248a21436efe42cb048db447e634efc303b30/NativeRegExp.java/buggy/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1473,
1734,
6286,
12,
862,
5160,
751,
314,
751,
16,
2438,
2060,
1119,
619,
16,
509,
22146,
1016,
13,
565,
288,
3639,
509,
562,
31,
3639,
509,
277,
31,
3639,
509,
22146,
1350,
273,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1473,
1734,
6286,
12,
862,
5160,
751,
314,
751,
16,
2438,
2060,
1119,
619,
16,
509,
22146,
1016,
13,
565,
288,
3639,
509,
562,
31,
3639,
509,
277,
31,
3639,
509,
22146,
1350,
273,
619,
... |
addRecord = new ContentRecord( element, slotID, content, newPos ); | addRecord = new ContentRecord( module, element, slotID, content, newPos ); | private void doAdd( DesignElement content, int slotID, int newPos ) throws ContentException, NameException { assert content.getContainer( ) == null; // Ensure that the content can be put into the container. ElementDefn metaData = (ElementDefn) element.getDefn( ); if ( !metaData.isContainer( ) ) throw new ContentException( element, slotID, ContentException.DESIGN_EXCEPTION_NOT_CONTAINER ); SlotDefn slotInfo = (SlotDefn) metaData.getSlot( slotID ); if ( slotInfo == null ) throw new ContentException( element, slotID, ContentException.DESIGN_EXCEPTION_SLOT_NOT_FOUND ); if ( !slotInfo.canContain( content ) ) throw new ContentException( element, slotID, ContentException.DESIGN_EXCEPTION_WRONG_TYPE ); // This element is already the content of the element to add. if ( element.isContentOf( content ) ) throw new ContentException( element, slotID, content, ContentException.DESIGN_EXCEPTION_RECURSIVE ); // If this is a single-item slot, ensure that the slot is empty. if ( !slotInfo.isMultipleCardinality( ) && element.getSlot( slotID ).getCount( ) > 0 ) { throw new ContentException( element, slotID, ContentException.DESIGN_EXCEPTION_SLOT_IS_FULL ); } if ( !element.canContain( module, slotID, content ) ) throw new ContentException( element, slotID, content, ContentException.DESIGN_EXCEPTION_INVALID_CONTEXT_CONTAINMENT ); // Ensure we can add the name. NameCommand nameCmd = new NameCommand( module, content ); nameCmd.checkName( ); // Add the item to the container. ContentRecord addRecord; if ( newPos == -1 ) { addRecord = new ContentRecord( element, slotID, content, true ); } else { addRecord = new ContentRecord( element, slotID, content, newPos ); } addRecord.setModule( module ); ActivityStack stack = getActivityStack( ); stack.startTrans( addRecord.getLabel( ) ); stack.execute( addRecord ); nameCmd.addElement( ); stack.commit( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d5b6c608ad12aa11b2bf65a394badd4bb911fbad/ContentCommand.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/ContentCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
986,
12,
29703,
1046,
913,
16,
509,
4694,
734,
16,
509,
394,
1616,
262,
1082,
202,
15069,
3697,
503,
16,
1770,
503,
202,
95,
202,
202,
11231,
913,
18,
588,
2170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
986,
12,
29703,
1046,
913,
16,
509,
4694,
734,
16,
509,
394,
1616,
262,
1082,
202,
15069,
3697,
503,
16,
1770,
503,
202,
95,
202,
202,
11231,
913,
18,
588,
2170,
... |
DataColumnBindingDialog dialog = new DataColumnBindingDialog( ); | DataColumnBindingDialog dialog = new DataColumnBindingDialog( false ); | protected void handleEditEvent( ) { ComputedColumnHandle bindingHandle = null; int pos = bindingTable.getTable( ).getSelectionIndex( ); if ( pos > -1 ) { bindingHandle = (ComputedColumnHandle) ( (ReportItemHandle) DEUtil.getBindingHolder( inputElement ) ).getColumnBindings( ) .getAt( pos ); } if ( bindingHandle == null ) return; String bindingName = bindingHandle.getName( ); DataColumnBindingDialog dialog = new DataColumnBindingDialog( ); dialog.setInput( (ReportItemHandle) inputElement, bindingHandle ); dialog.setExpressionProvider( expressionProvider ); if ( dialog.open( ) == Dialog.OK ) { if ( bindingTable != null ) bindingTable.getTable( ).setSelection( pos ); if ( selectedColumnName != null && selectedColumnName.equals( bindingName ) ) selectedColumnName = ( (DataItemHandle) inputElement ).getResultSetColumn( ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4bc5580c6c26ba1cb9f558db9f3d1ef255754c46/ColumnBindingDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
4666,
1133,
12,
262,
202,
95,
202,
202,
17934,
1494,
3259,
5085,
3259,
273,
446,
31,
202,
202,
474,
949,
273,
5085,
1388,
18,
588,
1388,
12,
262,
18,
588,
6233,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
4666,
1133,
12,
262,
202,
95,
202,
202,
17934,
1494,
3259,
5085,
3259,
273,
446,
31,
202,
202,
474,
949,
273,
5085,
1388,
18,
588,
1388,
12,
262,
18,
588,
6233,
... |
try { | try { | public void testUnterminatedStringLiteral_DoubleQuote_CarriageReturn() throws Exception { newLexer( "\"cheese\r\"" ); try { nextToken(); fail( "should have thrown UnterminatedStringLiteralException" ); } catch (UnterminatedStringLiteralException e) { // expected and correct } } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/3d37acd34fcf44c4a51bd104ef70043af62c7d99/LexerTest.java/clean/src/test/org/codehaus/groovy/syntax/lexer/LexerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
984,
29133,
28565,
67,
5265,
10257,
67,
16321,
27935,
990,
1435,
3639,
1216,
1185,
565,
288,
3639,
394,
13356,
12,
7023,
18706,
3392,
64,
86,
8530,
11272,
3639,
775,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
984,
29133,
28565,
67,
5265,
10257,
67,
16321,
27935,
990,
1435,
3639,
1216,
1185,
565,
288,
3639,
394,
13356,
12,
7023,
18706,
3392,
64,
86,
8530,
11272,
3639,
775,
3639,
... |
throw new InternalException("ERROR: Could not post collection", uree); | throw new InternalException("ERROR: Could not post collection", uree); | private EntrySet putEntry(Reader r) throws HandlerException { try { SAXBuilder builder = new SAXBuilder(); Document collectionDoc = builder.build(r); EntrySet c = new WeblogEntrySet(collectionDoc, getUrlPrefix()); if (c.getEntries().length > 1) { throw new BadRequestException("ERROR: Cannot put >1 entries per request"); } if (c.getEntries().length > 0) { WeblogEntry entry = (WeblogEntry)c.getEntries()[0]; if (entry.getHandle() != null && !entry.getHandle().equals(getUri().getEntryId())) { throw new BadRequestException("ERROR: Content handle does not match URI handle"); } entry.setHandle(getUri().getEntryId()); updateWeblogs((WeblogEntrySet)c); } return c; } catch (JDOMException je) { throw new InternalException("ERROR: Could not post collection", je); } catch (IOException ioe) { throw new InternalException("ERROR: Could not post collection", ioe); } catch (MissingElementException mee) { throw new InternalException("ERROR: Could not post collection", mee); } catch (UnexpectedRootElementException uree) { throw new InternalException("ERROR: Could not post collection", uree); } } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/63e9d197ce5430321b22734db633425257b4a911/RollerWeblogHandler.java/clean/sandbox/atomadminprotocol/src/org/roller/presentation/atomadminapi/RollerWeblogHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3841,
694,
1378,
1622,
12,
2514,
436,
13,
1216,
4663,
503,
288,
3639,
775,
288,
5411,
10168,
1263,
2089,
273,
394,
10168,
1263,
5621,
5411,
4319,
1849,
1759,
273,
2089,
18,
3510,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3841,
694,
1378,
1622,
12,
2514,
436,
13,
1216,
4663,
503,
288,
3639,
775,
288,
5411,
10168,
1263,
2089,
273,
394,
10168,
1263,
5621,
5411,
4319,
1849,
1759,
273,
2089,
18,
3510,
12... |
ep.getSource().flush( null, ep ); } else if( actionCode==ActionCode.ACTION_CLOSE ) { if( log.isDebugEnabled() ) log.debug("CLOSE " ); | ep.getSource().flush( msg, ep ); } catch(IOException iex) { log.debug("Connection error ending request.",iex); ep.setStatus(JK_STATUS_ERROR); } if(ep.getStatus() != JK_STATUS_ERROR) { ep.setStatus(JK_STATUS_CLOSED ); } | public void action(ActionCode actionCode, Object param) { try { if( actionCode==ActionCode.ACTION_COMMIT ) { if( log.isDebugEnabled() ) log.debug("COMMIT " ); org.apache.coyote.Response res=(org.apache.coyote.Response)param; if( res.isCommitted() ) { if( log.isInfoEnabled() ) log.info("Response already commited " ); } else { appendHead( res ); } } else if( actionCode==ActionCode.ACTION_RESET ) { if( log.isDebugEnabled() ) log.debug("RESET " ); } else if( actionCode==ActionCode.ACTION_CLIENT_FLUSH ) { if( log.isDebugEnabled() ) log.debug("CLIENT_FLUSH " ); org.apache.coyote.Response res=(org.apache.coyote.Response)param; MsgContext ep=(MsgContext)res.getNote( epNote ); ep.setType( JkHandler.HANDLE_FLUSH ); ep.getSource().flush( null, ep ); } else if( actionCode==ActionCode.ACTION_CLOSE ) { if( log.isDebugEnabled() ) log.debug("CLOSE " ); org.apache.coyote.Response res=(org.apache.coyote.Response)param; MsgContext ep=(MsgContext)res.getNote( epNote ); if( ep.getStatus()== JK_STATUS_CLOSED ) { // Double close - it may happen with forward if( log.isDebugEnabled() ) log.debug("Double CLOSE - forward ? " + res.getRequest().requestURI() ); return; } if( !res.isCommitted() ) this.action( ActionCode.ACTION_COMMIT, param ); MsgAjp msg=(MsgAjp)ep.getNote( headersMsgNote ); msg.reset(); msg.appendByte( HandlerRequest.JK_AJP13_END_RESPONSE ); msg.appendByte( 1 ); try { ep.setType( JkHandler.HANDLE_SEND_PACKET ); ep.getSource().send( msg, ep ); ep.setType( JkHandler.HANDLE_FLUSH ); ep.getSource().flush( msg, ep ); } catch(IOException iex) { log.debug("Connection error ending request.",iex); } ep.setStatus(JK_STATUS_CLOSED ); if( logTime.isDebugEnabled() ) logTime(res.getRequest(), res); } else if( actionCode==ActionCode.ACTION_REQ_SSL_ATTRIBUTE ) { org.apache.coyote.Request req=(org.apache.coyote.Request)param; // Extract SSL certificate information (if requested) MessageBytes certString = (MessageBytes)req.getNote(WorkerEnv.SSL_CERT_NOTE); if( certString != null && !certString.isNull() ) { ByteChunk certData = certString.getByteChunk(); ByteArrayInputStream bais = new ByteArrayInputStream(certData.getBytes(), certData.getStart(), certData.getLength()); // Fill the first element. X509Certificate jsseCerts[] = null; try { CertificateFactory cf = CertificateFactory.getInstance("X.509"); X509Certificate cert = (X509Certificate) cf.generateCertificate(bais); jsseCerts = new X509Certificate[1]; jsseCerts[0] = cert; } catch(java.security.cert.CertificateException e) { log.error("Certificate convertion failed" , e ); return; } req.setAttribute(SSLSupport.CERTIFICATE_KEY, jsseCerts); } } else if( actionCode==ActionCode.ACTION_REQ_HOST_ATTRIBUTE ) { org.apache.coyote.Request req=(org.apache.coyote.Request)param; // If remoteHost not set by JK, get it's name from it's remoteAddr if( req.remoteHost().isNull()) req.remoteHost().setString(InetAddress.getByName(req.remoteAddr().toString()).getHostName()); // } else if( actionCode==ActionCode.ACTION_POST_REQUEST ) { } else if( actionCode==ActionCode.ACTION_ACK ) { if( log.isDebugEnabled() ) log.debug("ACK " ); // What should we do here ? Who calls it ? } } catch( Exception ex ) { log.error( "Error in action code ", ex ); } } | 10630 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10630/7b57334293659570eb8baf9f9f7c712658c8253d/JkCoyoteHandler.java/buggy/java/org/apache/jk/server/JkCoyoteHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1301,
12,
1803,
1085,
1301,
1085,
16,
1033,
579,
13,
288,
3639,
775,
288,
5411,
309,
12,
1301,
1085,
631,
1803,
1085,
18,
12249,
67,
18658,
262,
288,
7734,
309,
12,
613,
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,
1301,
12,
1803,
1085,
1301,
1085,
16,
1033,
579,
13,
288,
3639,
775,
288,
5411,
309,
12,
1301,
1085,
631,
1803,
1085,
18,
12249,
67,
18658,
262,
288,
7734,
309,
12,
613,
18,
... |
if(!String.class.isInstance( propertyType )) { throw new MissingPropertyException("Email constraint only applies to a String property",EMAIL_CONSTRAINT,owningClass); } return this.appliedConstraints.containsKey( EMAIL_CONSTRAINT ); } | if(!String.class.isInstance( propertyType )) { throw new MissingPropertyException("Email constraint only applies to a String property",EMAIL_CONSTRAINT,owningClass); } return this.appliedConstraints.containsKey( EMAIL_CONSTRAINT ); } | public boolean isEmail() { if(!String.class.isInstance( propertyType )) { throw new MissingPropertyException("Email constraint only applies to a String property",EMAIL_CONSTRAINT,owningClass); } return this.appliedConstraints.containsKey( EMAIL_CONSTRAINT ); } | 55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
4134,
1435,
288,
202,
202,
430,
12,
5,
780,
18,
1106,
18,
291,
1442,
12,
21076,
8623,
288,
1082,
202,
12849,
394,
10230,
1396,
503,
2932,
4134,
4954,
1338,
10294,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
4134,
1435,
288,
202,
202,
430,
12,
5,
780,
18,
1106,
18,
291,
1442,
12,
21076,
8623,
288,
1082,
202,
12849,
394,
10230,
1396,
503,
2932,
4134,
4954,
1338,
10294,
3... |
public void close() { reading = false; | protected void close() { | public void close() { reading = false; try { reader.close(); } catch (IOException e) {} } | 56438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56438/7689bbea80eaa405d080a32472baa29eda0b46a4/GPSConnection.java/clean/MoVadis/gps/GPSConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1746,
1435,
288,
202,
202,
21803,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
10530,
18,
4412,
5621,
202,
202,
97,
1044,
261,
14106,
425,
13,
2618,
202,
97,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1746,
1435,
288,
202,
202,
21803,
273,
629,
31,
202,
202,
698,
288,
1082,
202,
10530,
18,
4412,
5621,
202,
202,
97,
1044,
261,
14106,
425,
13,
2618,
202,
97,
2,
-100,
-... |
} | private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else { new SecureRandom ().nextBytes(buffer); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/RFC2631.java/clean/core/src/classpath/gnu/gnu/javax/crypto/key/dh/RFC2631.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1024,
8529,
2160,
12,
7229,
8526,
1613,
13,
225,
288,
565,
309,
261,
86,
4880,
480,
446,
13,
1377,
288,
3639,
20391,
18,
4285,
2160,
12,
4106,
1769,
540,
469,
1377,
288,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1024,
8529,
2160,
12,
7229,
8526,
1613,
13,
225,
288,
565,
309,
261,
86,
4880,
480,
446,
13,
1377,
288,
3639,
20391,
18,
4285,
2160,
12,
4106,
1769,
540,
469,
1377,
288,
3639... | |
drList.addAll(obj.getDRList()); | if (obj != null) { drList.addAll(obj.getDRList()); } | public List getDRList() { List drList = new ArrayList(); for (Iterator i = getPObjectList().iterator(); i.hasNext(); ) { PObject obj = (PObject)i.next(); drList.addAll(obj.getDRList()); } return DamageReduction.getDRList(this, drList); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/d478678cd06926ec05c8eac48890c5cf2ce2b830/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
2343,
54,
682,
1435,
202,
95,
202,
202,
682,
5081,
682,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
277,
273,
1689,
25979,
7675,
9838,
5621,
277,
18,
5332,
2134,
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,
225,
202,
482,
987,
2343,
54,
682,
1435,
202,
95,
202,
202,
682,
5081,
682,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
277,
273,
1689,
25979,
7675,
9838,
5621,
277,
18,
5332,
2134,
562... |
break _loop1378; | break _loop1382; | public final void for_record_spec(AST _t) throws RecognitionException { AST for_record_spec_AST_in = (_t == ASTNULL) ? null : (AST)_t; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CURRENT: case EACH: case FIRST: case LAST: case NEXT: case PREV: { findwhich(_t); _t = _retTree; break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } recordphrase(_t); _t = _retTree; { _loop1378: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp332_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CURRENT: case EACH: case FIRST: case LAST: case NEXT: case PREV: { findwhich(_t); _t = _retTree; break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } recordphrase(_t); _t = _retTree; } else { break _loop1378; } } while (true); } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
364,
67,
3366,
67,
2793,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
364,
67,
3366,
67,
2793,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
364,
67,
3366,
67,
2793,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
364,
67,
3366,
67,
2793,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.