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 |
|---|---|---|---|---|---|---|
ChannelHandler addRoute(JID node, RoutableChannelHandler destination); | void addRoute(JID node, RoutableChannelHandler destination); | ChannelHandler addRoute(JID node, RoutableChannelHandler destination); | 6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/7661e3598f5b4abe8912fc2131a1d6fd01b665a6/RoutingTable.java/buggy/src/java/org/jivesoftware/messenger/RoutingTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
5307,
1503,
27469,
12,
46,
734,
756,
16,
7271,
429,
2909,
1503,
2929,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
5307,
1503,
27469,
12,
46,
734,
756,
16,
7271,
429,
2909,
1503,
2929,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
split = line2.split(", ", 2); String zipcity = ""; if (split.length > 1) { address = split[0].trim(); zipcity = split[1].trim(); } else { zipcity = split[0].trim(); address = ""; | if (m.group(2) != null) { Debug.msg(3, "Pattern2: " + m.group(2).trim()); String line2 = m.group(2).trim(); split = line2.split(", ", 2); String zipcity = ""; if (split.length > 1) { address = split[0].trim(); zipcity = split[1].trim(); } else { zipcity = split[0].trim(); address = ""; } split = zipcity.split(" ", 2); if (split.length > 1) { zipcode = split[0].trim(); city = split[1].trim(); } else { city = split[0].trim(); } String[] splitNames, splitAddress, splitPostCodeCity; splitAddress = m.group(2).trim().split(",* "); Debug.msg(splitAddress[0]); splitPostCodeCity = splitAddress[1].split(" ", 2); | public static Person lookupDasOertliche(String number) { if (number.equals("")) { return null; } Debug.msg("Looking up " + number + "..."); URL url = null; URLConnection urlConn; DataOutputStream printout; String data = ""; Person newPerson; String urlstr = "http://www.dasoertliche.de/DB4Web/es/oetb2suche/home.htm?main=Antwort&s=2&kw_invers=" + number; try { url = new URL(urlstr); if (url != null) { URLConnection con; try { con = url.openConnection(); String header = ""; String charSet = ""; for (int i = 0;; i++) { String headerName = con.getHeaderFieldKey(i); String headerValue = con.getHeaderField(i); if (headerName == null && headerValue == null) { // No more headers break; } if ("content-type".equalsIgnoreCase(headerName)) { String[] split = headerValue.split(" ", 2); for (int j = 0; j < split.length; j++) { split[j] = split[j].replaceAll(";", ""); if (split[j].toLowerCase().startsWith( "charset=")) { String[] charsetSplit = split[j].split("="); charSet = charsetSplit[1]; } } } header += headerName + ": " + headerValue + " | "; } Debug.msg("Header of dasoertliche.de: " + header); Debug.msg("CHARSET : " + charSet); // Get response data BufferedReader d; if (charSet.equals("")) { d = new BufferedReader(new InputStreamReader(con .getInputStream(), "ISO-8859-1")); } else { d = new BufferedReader(new InputStreamReader(con .getInputStream(), charSet)); } int i = 0; String str = ""; while ((i < 700) && (null != ((str = d.readLine())))) { data += str; i++; } d.close(); Debug.msg("DasOertliche Webpage: " + data); Pattern p = Pattern .compile("<a class=\"blb\" href=\"[^\"]*\">([^<]*)</a><br>([^<]*)</td>"); Matcher m = p.matcher(data); if (m.find()) { Debug.msg(3, "Pattern1: " + m.group(1).trim()); Debug.msg(3, "Pattern2: " + m.group(2).trim()); String line1 = m.group(1).trim(); String line2 = m.group(2).trim(); String[] split = line1.split(" ", 2); String firstname = "", lastname = "", company = "", address = "", zipcode = "", city = ""; lastname = split[0]; if (split.length > 1) { firstname = " " + split[1]; Debug.msg("*" + firstname + "*" + firstname.indexOf(" ")); if ((firstname.indexOf(" ") > -1) && (firstname.indexOf(" u.") == -1)) { company = firstname.substring( firstname.indexOf(" ")).trim(); firstname = firstname.substring(0, firstname.indexOf(" ")).trim(); } else { firstname = firstname.replaceAll(" u. ", " und "); } } firstname = firstname.trim(); split = line2.split(", ", 2); String zipcity = ""; if (split.length > 1) { address = split[0].trim(); zipcity = split[1].trim(); } else { zipcity = split[0].trim(); address = ""; } split = zipcity.split(" ", 2); if (split.length > 1) { zipcode = split[0].trim(); city = split[1].trim(); } else { city = split[0].trim(); } String[] splitNames, splitAddress, splitPostCodeCity; splitAddress = m.group(2).trim().split(",* "); Debug.msg(splitAddress[0]); splitPostCodeCity = splitAddress[1].split(" ", 2); Debug.msg("Firstname: " + firstname); Debug.msg("Lastname: " + lastname); Debug.msg("Company: " + company); Debug.msg("Address: " + address); Debug.msg("ZipCode: " + zipcode); Debug.msg("City: " + city); newPerson = new Person(firstname, company, lastname, address, zipcode, city, ""); if (company.length() > 0) { newPerson.addNumber(number, "business"); } else { newPerson.addNumber(number, "home"); } return newPerson; } } catch (IOException e1) { Debug.err("Error while retrieving " + urlstr); } } } catch (MalformedURLException e) { Debug.err("URL invalid: " + urlstr); } newPerson = new Person(); newPerson.addNumber(number, "home"); return newPerson; } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/6cc294115c1306b4b81b7357595c0d50eba7a1fa/ReverseLookup.java/clean/jfritz/src/de/moonflower/jfritz/utils/ReverseLookup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
11573,
3689,
40,
345,
51,
1051,
80,
335,
580,
12,
780,
1300,
13,
288,
202,
202,
430,
261,
2696,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11573,
3689,
40,
345,
51,
1051,
80,
335,
580,
12,
780,
1300,
13,
288,
202,
202,
430,
261,
2696,
18,
14963,
2932,
6,
3719,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
... |
private void runRemote(PrintStream out) throws SVNException { String srcPath = getCommandLine().getURL(0); String destPath = getCommandLine().getURL(1); String message = (String) getCommandLine().getArgumentValue(SVNArgument.MESSAGE); String root = PathUtil.getCommonRoot(new String[] {destPath, srcPath}); SVNRepository repository = createRepository(root); long revNumber = -1; String revStr = (String) getCommandLine().getArgumentValue(SVNArgument.REVISION); if (revStr != null) { try { revNumber = Long.parseLong(revStr); } catch (NumberFormatException e) { revNumber = -1; } } if (revNumber < 0) { revNumber = repository.getLatestRevision(); } String deletePath = srcPath.substring(root.length()); destPath = destPath.substring(root.length()); deletePath = PathUtil.removeLeadingSlash(deletePath); destPath = PathUtil.removeLeadingSlash(destPath); destPath = PathUtil.decode(destPath); deletePath = PathUtil.decode(deletePath); ISVNEditor editor = repository.getCommitEditor(message, null); try { editor.openRoot(-1); DebugLog.log("adding: " + destPath + " from " + deletePath); editor.addDir(destPath, deletePath, revNumber); editor.closeDir(); DebugLog.log("deleting: " + deletePath + " at " + revNumber); editor.deleteEntry(deletePath, revNumber); editor.closeDir(); SVNCommitInfo info = editor.closeEdit(); out.println(); out.println("Committed revision " + info.getNewRevision() + "."); } catch (SVNException e) { if (editor != null) { try { editor.abortEdit(); } catch (SVNException inner) {} } throw e; } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/361abb3f2b60edf9d7118d2818fa082a63ad66ca/MoveCommand.java/buggy/javasvn/src/org/tmatesoft/svn/cli/command/MoveCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1086,
5169,
12,
5108,
1228,
596,
13,
1216,
29537,
50,
503,
288,
3639,
514,
19497,
273,
12856,
1670,
7675,
588,
1785,
12,
20,
1769,
3639,
514,
22459,
273,
12856,
1670,
7675... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1086,
5169,
12,
5108,
1228,
596,
13,
1216,
29537,
50,
503,
288,
3639,
514,
19497,
273,
12856,
1670,
7675,
588,
1785,
12,
20,
1769,
3639,
514,
22459,
273,
12856,
1670,
7675... | ||
String sourceName = props.getProperty ("_datasource"); | sourceName = props.getProperty ("_datasource"); | public synchronized void update () { table = props.getProperty ("_tablename"); idgen = props.getProperty ("_idgen"); // see if there is a field which specifies the prototype of objects, if different prototypes // can be stored in this table prototypeField = props.getProperty ("_prototypefield"); // see if this prototype extends (inherits from) any other prototype extendsProto = props.getProperty ("_extends"); String sourceName = props.getProperty ("_datasource"); if (sourceName != null) { source = app.getDbSource (sourceName); if (source == null) { // what we really want to do here is mark the DbMapping as invalid, so no data can be saved to it. throw new RuntimeException ("DbSource \""+sourceName+"\" not found for prototype "+typename); } } // id field must not be null, default is "id" idField = props.getProperty ("_id", "id"); nameField = props.getProperty ("_name"); protoField = props.getProperty ("_prototype"); String parentMapping = props.getProperty ("_parent"); if (parentMapping != null) { // comma-separated list of properties to be used as parent StringTokenizer st = new StringTokenizer (parentMapping, ",;"); parent = new ParentInfo[st.countTokens()]; for (int i=0; i<parent.length; i++) parent[i] = new ParentInfo (st.nextToken().trim()); } else parent = null; lastTypeChange = props.lastModified (); // set the cached schema & keydef to null so it's rebuilt the next time around schema = null; keydef = null; } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/94e086dfd8ee87fe852ada98e72c926f5ca470b1/DbMapping.java/clean/src/helma/objectmodel/DbMapping.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
1832,
288,
202,
2121,
273,
3458,
18,
588,
1396,
7566,
67,
7032,
14724,
8863,
202,
350,
4507,
273,
3458,
18,
588,
1396,
7566,
67,
350,
4507,
8863,
202,
759,
2621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
1832,
288,
202,
2121,
273,
3458,
18,
588,
1396,
7566,
67,
7032,
14724,
8863,
202,
350,
4507,
273,
3458,
18,
588,
1396,
7566,
67,
350,
4507,
8863,
202,
759,
2621,
... |
addTestSuite(BeansObservablesTest.class); addTestSuite(IdentityConverterTest.class); | addTestSuite(DetailObservableValueTest.class); addTestSuite(DetailObservableValueTest.class); | public BindingTestSuite() { //org.eclipse.core.tests.databinding.beans addTestSuite(BeansObservablesTest.class); // org.eclipse.jface.internal.databinding.provisional.conversion addTestSuite(IdentityConverterTest.class); // org.eclipse.jface.internal.databinding.provisional.factories addTestSuite(DefaultBindSupportFactoryBooleanPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryBytePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryDoublePrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryFloatPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryIntTest.class); addTestSuite(DefaultBindSupportFactoryLongPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryShortPrimitiveTest.class); addTestSuite(DefaultBindSupportFactoryTest.class); // org.eclipse.jface.internal.databinding.provisional.validation addTestSuite(ObjectToPrimitiveValidatorTest.class); // org.eclipse.jface.tests.databinding addTestSuite(BindSpecTests.class); addTestSuite(ComputedValueTest.class); addTestSuite(DatabindingContextTest.class); addTestSuite(IDiffsTest.class); addTestSuite(ObservableTest.class); addTestSuite(RandomAccessListIteratorTest.class); // org.eclipse.jface.tests.databinding.mask addTestSuite(EditMaskLexerAndTokenTest.class); addTestSuite(EditMaskParserTest.class); //org.eclipse.jface.tests.databinding.observable addTestSuite(ThreadRealmTest.class); // org.eclipse.jface.tests.databinding.observable.value addTestSuite(WritableValueTest.class); // org.eclipse.jface.tests.databinding.scenarios addTest(BindingScenariosTestSuite.suite()); //The files in this package are in the above test suite //org.eclipse.jface.tests.databinding.swt//FIXME addTestSuite(AbstractGetAndSetSelectionObservableCollectionTest.class);//FIXME addTestSuite(AutoSelectTableViewerCollectionExtendedTest.class); //FIXME addTestSuite(AutoSelectTableViewerCollectionTest.class);//FIXME addTestSuite(CComboObservableCollectionTest.class);//FIXME addTestSuite(ComboObservableCollectionTest.class);//FIXME addTestSuite(CopyOfAutoSelectTableViewerCollectionExtendedTest.class);//FIXME addTestSuite(ListObservableCollectionTest.class);//FIXME addTestSuite(ObservableCollectionViewerTest.class);//FIXME addTestSuite(TableViewerObservableCollectionTest.class); addTestSuite(TextObservableValueTests.class); //org.eclipse.jface.tests.databinding.views addTestSuite(ObservableMapLabelProviderTest.class); addTestSuite(ObservableSetContentProviderTest.class); //org.eclipse.jface.tests.examples.model addTestSuite(PersonTests.class); //org.eclipse.jface.tests.internal.databinding.internal addTestSuite(ListBindingTest.class); addTestSuite(ValueBindingTest.class); //org.eclipse.jface.tests.internal.databinding.internal.observable addTestSuite(UnmodifiableObservableListTest.class); //org.eclipse.jface.tests.internal.databinding.internal.viewers addTestSuite(SelectionProviderSingleSelectionObservableValueTest.class);//FIXME addTestSuite(SVOCWLTest.class); //org.eclipse.jface.tests.internal.databinding.provisional.observable addTestSuite(AbstractObservableTest.class); addTestSuite(ObservablesTest.class); //org.eclipse.jface.tests.internal.databinding.provisional.viewers addTestSuite(SelectionObservableValueTest.class); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/c8f2cc5874f2e6247a2cbb9878a80029b7203e0a/BindingTestSuite.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/BindingTestSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15689,
4709,
13587,
1435,
288,
377,
202,
759,
3341,
18,
20416,
18,
3644,
18,
16341,
18,
3404,
378,
728,
310,
18,
2196,
634,
377,
202,
1289,
4709,
13587,
12,
14495,
26199,
1538,
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,
377,
1071,
15689,
4709,
13587,
1435,
288,
377,
202,
759,
3341,
18,
20416,
18,
3644,
18,
16341,
18,
3404,
378,
728,
310,
18,
2196,
634,
377,
202,
1289,
4709,
13587,
12,
14495,
26199,
1538,
4709... |
if (tuple.isAdd() || tuple.isChange()) { addRelationships(relay, | addRelationships(localRelationships, | private void localProviderUpdate(EnvelopeTuple tuple, ServiceContractRelay relay) { // ServiceContract contract = relay.getServiceContract(); // ServiceRequest request = relay.getServiceRequest(); Asset provider = logplan.findAsset(relay.getProvider()); if (provider == null) { logger.error(self + ": unable to process ServiceContractRelay - " + relay.getUID() + " provider - " + relay.getProvider() + " - is not local to this agent."); return; } else if (provider == relay.getProvider()) { logger.error(self + ": Assets in ServiceContractRelay must be " + " clones. ServiceContractRelay - " + relay.getUID() + " - references assets in the log plan."); return; } Asset client = relay.getClient(); Asset localClient = logplan.findAsset(client); if (localClient == null) { client = ldmf.cloneInstance(client); if (related(client)){ ((HasRelationships)client).setRelationshipSchedule(ldmf.newRelationshipSchedule((HasRelationships)client)); } } else { client = localClient; if (localClient == relay.getClient()) { logger.error(self + ": Assets in ServiceContractRelay must be " + " clones. ServiceContractRelay - " + relay.getUID() + " - references assets in the log plan."); } } if (related(provider) && related(client)) { if (tuple.isChange() || tuple.isRemove()) { removeExistingRelationships(relay, (HasRelationships) provider, (HasRelationships) client); } if (tuple.isAdd() || tuple.isChange()) { addRelationships(relay, (HasRelationships) provider, (HasRelationships) client); } } Collection changes = new ArrayList(); changes.add(new RelationshipSchedule.RelationshipScheduleChangeReport()); if (logger.isInfoEnabled()) logger.info(self + ": PubChanged an OrgAsset: " + provider); rootplan.change(provider, changes); // change this to root plan if (localClient == null) { rootplan.add(client); } else { changes.clear(); changes.add(new RelationshipSchedule.RelationshipScheduleChangeReport()); if (logger.isInfoEnabled()) logger.info(self + ": PubChanged an OrgAsset: " + client); rootplan.change(client, changes); } // Clear client and provider relationship, role, and available schedules to ensure // that there are no references to other organizations. clearSchedule(relay.getClient()); clearSchedule(relay.getProvider()); } | 14011 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14011/d1ebbe49959b25a9767480286eb72bfea3e37fd8/ServiceContractLP.java/clean/servicediscovery/src/org/cougaar/servicediscovery/lp/ServiceContractLP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1191,
2249,
1891,
12,
10862,
9038,
3193,
16,
1956,
8924,
27186,
18874,
13,
288,
282,
368,
1956,
8924,
6835,
273,
18874,
18,
588,
1179,
8924,
5621,
282,
368,
1956,
691,
590,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1191,
2249,
1891,
12,
10862,
9038,
3193,
16,
1956,
8924,
27186,
18874,
13,
288,
282,
368,
1956,
8924,
6835,
273,
18874,
18,
588,
1179,
8924,
5621,
282,
368,
1956,
691,
590,
273... |
case LayoutPackage.LABEL_BLOCK__CHILDREN : return children != null && !children.isEmpty( ); case LayoutPackage.LABEL_BLOCK__BOUNDS : | case LayoutPackage.LABEL_BLOCK__CHILDREN: return children != null && !children.isEmpty(); case LayoutPackage.LABEL_BLOCK__BOUNDS: | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case LayoutPackage.LABEL_BLOCK__CHILDREN : return children != null && !children.isEmpty( ); case LayoutPackage.LABEL_BLOCK__BOUNDS : return bounds != null; case LayoutPackage.LABEL_BLOCK__ANCHOR : return isSetAnchor( ); case LayoutPackage.LABEL_BLOCK__STRETCH : return isSetStretch( ); case LayoutPackage.LABEL_BLOCK__INSETS : return insets != null; case LayoutPackage.LABEL_BLOCK__ROW : return isSetRow( ); case LayoutPackage.LABEL_BLOCK__COLUMN : return isSetColumn( ); case LayoutPackage.LABEL_BLOCK__ROWSPAN : return isSetRowspan( ); case LayoutPackage.LABEL_BLOCK__COLUMNSPAN : return isSetColumnspan( ); case LayoutPackage.LABEL_BLOCK__MIN_SIZE : return minSize != null; case LayoutPackage.LABEL_BLOCK__OUTLINE : return outline != null; case LayoutPackage.LABEL_BLOCK__BACKGROUND : return background != null; case LayoutPackage.LABEL_BLOCK__VISIBLE : return isSetVisible( ); case LayoutPackage.LABEL_BLOCK__TRIGGERS : return triggers != null && !triggers.isEmpty( ); case LayoutPackage.LABEL_BLOCK__LABEL : return label != null; } return eDynamicIsSet( eFeature ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/bdab78403751f288b76844a99f50b999c34fb491/LabelBlockImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LabelBlockImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
9995,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
9995,
22... |
buf.append("id=\"").append(getPacketID()).append("\" "); | buf.append(" id=\"").append(getPacketID()).append("\""); | public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<presence "); if (getPacketID() != null) { buf.append("id=\"").append(getPacketID()).append("\" "); } if (getTo() != null) { buf.append("to=\"").append(getTo()).append("\" "); } if (getFrom() != null) { buf.append("from=\"").append(getFrom()).append("\" "); } if (type != Type.AVAILABLE) { buf.append("type=\"").append(type).append("\""); } buf.append(">"); if (status != null) { buf.append("<status>").append(status).append("</status>"); } if (priority != -1) { buf.append("<priority>").append(priority).append("</priority>"); } if (mode != null) { buf.append("<show>").append(mode).append("</show>"); } buf.append("</presence>"); return buf.toString(); } | 47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/83016425cf33220261684027681b5d65707655b1/Presence.java/clean/source/org/jivesoftware/smack/packet/Presence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
30028,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
1681,
18,
6923,
2932,
32,
21731,
315,
1769,
3639,
309,
261,
588,
6667,
734,
1435,
480,
446,
13,
288,
5411,
1681,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
30028,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
1681,
18,
6923,
2932,
32,
21731,
315,
1769,
3639,
309,
261,
588,
6667,
734,
1435,
480,
446,
13,
288,
5411,
1681,... |
Element dispatchRequest(Element request, Map context, ZimbraContext lc) { SoapProtocol soapProto = lc.getResponseProtocol(); if (request == null) return soapProto.soapFault(ServiceException.INVALID_REQUEST("no document specified", null)); DocumentHandler handler = mDispatcher.getHandler(request); if (handler == null) return soapProto.soapFault(ServiceException.UNKNOWN_DOCUMENT(request.getQualifiedName(), null)); if (RedoLogProvider.getInstance().isSlave() && !handler.isReadOnly()) return soapProto.soapFault(ServiceException.NON_READONLY_OPERATION_DENIED()); if (!Config.userServicesEnabled() && !(handler instanceof AdminDocumentHandler)) return soapProto.soapFault(ServiceException.TEMPORARILY_UNAVAILABLE()); boolean needsAuth = handler.needsAuth(context); boolean needsAdminAuth = handler.needsAdminAuth(context); if (needsAuth || needsAdminAuth) { AuthToken at = lc != null ? lc.getAuthToken() : null; if (at == null) return soapProto.soapFault(ServiceException.AUTH_REQUIRED()); if (needsAdminAuth && !at.isAdmin()) return soapProto.soapFault(ServiceException.PERM_DENIED("need admin token")); // Make sure that the account is active and has not been deleted // since the last request try { Account account = DocumentHandler.getRequestedAccount(lc); if (!account.getAccountStatus().equals(Provisioning.ACCOUNT_STATUS_ACTIVE)) return soapProto.soapFault(ServiceException.AUTH_EXPIRED()); } catch (ServiceException ex) { return soapProto.soapFault(ex); } } Element response; try { // first, try to proxy the request if necessary response = handler.proxyIfNecessary(request, context); // if no proxy, execute the request locally if (response == null) response = handler.handle(request, context); // fault in a session for this handler after executing the command handler.getSession(context); } catch (ServiceException e) { response = soapProto.soapFault(e); if (mLog.isDebugEnabled()) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); e.printStackTrace(pw); pw.close(); mLog.debug("handler exception " + sw.toString()); } } catch (Throwable e) { // FIXME: temp hack by tim b/c dogfood not generating stack traces e.printStackTrace(); // TODO: better exception stack traces during develope? response = soapProto.soapFault(ServiceException.FAILURE(e.toString(), e)); if (e instanceof OutOfMemoryError) Zimbra.halt("handler exception", e); if (mLog.isWarnEnabled()) mLog.warn("handler exception ", e); } return response; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4db9271e94d4e9aeb2ef0e15c30aa4a5fd18f7e9/SoapEngine.java/buggy/ZimbraServer/src/java/com/zimbra/soap/SoapEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3010,
3435,
691,
12,
1046,
590,
16,
1635,
819,
16,
2285,
381,
15397,
1042,
9109,
13,
288,
3639,
21789,
5752,
9930,
6262,
273,
9109,
18,
588,
1064,
5752,
5621,
3639,
309,
261,
2293,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3010,
3435,
691,
12,
1046,
590,
16,
1635,
819,
16,
2285,
381,
15397,
1042,
9109,
13,
288,
3639,
21789,
5752,
9930,
6262,
273,
9109,
18,
588,
1064,
5752,
5621,
3639,
309,
261,
2293,
422,
... | ||
IToken cvModifier = null; | IToken [] cvModifiers = new IToken[2]; int numCVModifiers = 0; | protected Declarator declarator( IDeclaratorOwner owner, IASTScope scope, SimpleDeclarationStrategy strategy, CompletionKind kind ) throws EndOfFileException, BacktrackException { Declarator d = null; DeclarationWrapper sdw = owner.getDeclarationWrapper(); overallLoop : do { d = new Declarator(owner); consumePointerOperators(d); if (LT(1) == IToken.tLPAREN) { consume(); declarator(d, scope, strategy, kind ); consume(IToken.tRPAREN); } else consumeTemplatedOperatorName(d, kind); for (;;) { switch (LT(1)) { case IToken.tLPAREN : boolean failed = false; IASTScope parameterScope = astFactory.getDeclaratorScope( scope, d.getNameDuple() ); // temporary fix for initializer/function declaration ambiguity if ( queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE ) { if( LT(2) == IToken.tIDENTIFIER ) { IToken newMark = mark(); consume( IToken.tLPAREN ); try { try { if( ! astFactory.queryIsTypeName( parameterScope, name(parameterScope, CompletionKind.TYPE_REFERENCE, Key.EMPTY ) ) ) failed = true; } catch (Exception e) { logException( "declarator:queryIsTypeName", e ); //$NON-NLS-1$ throw backtrack; } } catch( BacktrackException b ) { failed = true; } backup( newMark ); } } if( ( queryLookaheadCapability(2) && !LA(2).looksLikeExpression() && strategy != SimpleDeclarationStrategy.TRY_VARIABLE && !failed) || ! queryLookaheadCapability(3) ) { // parameterDeclarationClause d.setIsFunction(true); // TODO need to create a temporary scope object here consume(IToken.tLPAREN); setCompletionValues( scope, CompletionKind.ARGUMENT_TYPE, Key.DECL_SPECIFIER_SEQUENCE ); boolean seenParameter = false; parameterDeclarationLoop : for (;;) { switch (LT(1)) { case IToken.tRPAREN : consume(); setCompletionValues( parameterScope, CompletionKind.NO_SUCH_KIND, KeywordSets.Key.FUNCTION_MODIFIER ); break parameterDeclarationLoop; case IToken.tELLIPSIS : consume(); d.setIsVarArgs( true ); break; case IToken.tCOMMA : consume(); setCompletionValues( parameterScope, CompletionKind.ARGUMENT_TYPE, Key.DECL_SPECIFIER_SEQUENCE ); seenParameter = false; break; default : if (seenParameter) throw backtrack; parameterDeclaration(d, parameterScope); seenParameter = true; } } } if (LT(1) == IToken.tCOLON || LT(1) == IToken.t_try ) break overallLoop; IToken beforeCVModifier = mark(); IToken cvModifier = null; IToken afterCVModifier = beforeCVModifier; // const-volatile // 2 options: either this is a marker for the method, // or it might be the beginning of old K&R style parameter declaration, see // void getenv(name) const char * name; {} // This will be determined further below if (LT(1) == IToken.t_const || LT(1) == IToken.t_volatile) { cvModifier = consume(); afterCVModifier = mark(); } //check for throws clause here List exceptionSpecIds = null; if (LT(1) == IToken.t_throw) { exceptionSpecIds = new ArrayList(); consume(); // throw consume(IToken.tLPAREN); // ( boolean done = false; IASTTypeId duple = null; while (!done) { switch (LT(1)) { case IToken.tRPAREN : consume(); done = true; break; case IToken.tCOMMA : consume(); break; default : String image = LA(1).getImage(); try { duple = typeId(scope, false, CompletionKind.EXCEPTION_REFERENCE ); exceptionSpecIds.add(duple); } catch (BacktrackException e) { failParse(); TraceUtil.outputTrace( log, "Unexpected Token =", null, image, null, null ); //$NON-NLS-1$ consume(); // eat this token anyway continue; } break; } } if (exceptionSpecIds != null) try { d.setExceptionSpecification( astFactory .createExceptionSpecification( d.getDeclarationWrapper().getScope(), exceptionSpecIds)); } catch (ASTSemanticException e) { failParse(); throw backtrack; } catch (Exception e) { logException( "declarator:createExceptionSpecification", e ); //$NON-NLS-1$ throw backtrack; } } // check for optional pure virtual if (LT(1) == IToken.tASSIGN && LT(2) == IToken.tINTEGER && LA(2).getImage().equals("0")) //$NON-NLS-1$ { consume(IToken.tASSIGN); consume(IToken.tINTEGER); d.setPureVirtual(true); } if (afterCVModifier != LA(1) || LT(1) == IToken.tSEMI) { // There were C++-specific clauses after const/volatile modifier // Then it is a marker for the method if (cvModifier != null) { if (cvModifier.getType() == IToken.t_const) d.setConst(true); if (cvModifier.getType() == IToken.t_volatile) d.setVolatile(true); } afterCVModifier = mark(); // In this case (method) we can't expect K&R parameter declarations, // but we'll check anyway, for errorhandling } break; case IToken.tLBRACKET : consumeArrayModifiers(d, sdw.getScope()); continue; case IToken.tCOLON : consume(IToken.tCOLON); IASTExpression exp = constantExpression(scope, CompletionKind.SINGLE_NAME_REFERENCE, Key.EXPRESSION ); d.setBitFieldExpression(exp); default : break; } break; } if (LA(1).getType() != IToken.tIDENTIFIER) break; } while (true); if (d.getOwner() instanceof IDeclarator) ((Declarator)d.getOwner()).setOwnedDeclarator(d); return d; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c59044d3ac5019cc32477a8f56859ef5e9b682e6/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
16110,
5880,
3496,
5880,
12,
3639,
1599,
557,
80,
5880,
5541,
3410,
16,
467,
9053,
3876,
2146,
16,
4477,
6094,
4525,
6252,
16,
20735,
5677,
3846,
262,
3639,
1216,
4403,
951,
812,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16110,
5880,
3496,
5880,
12,
3639,
1599,
557,
80,
5880,
5541,
3410,
16,
467,
9053,
3876,
2146,
16,
4477,
6094,
4525,
6252,
16,
20735,
5677,
3846,
262,
3639,
1216,
4403,
951,
812,
50... |
rsvc.error(" JarHolder : getResource() error : exception : " + fnfe ); | log.error("JarHolder : getResource() error", fnfe); | public InputStream getResource( String theentry ) throws ResourceNotFoundException { InputStream data = null; try { JarEntry entry = theJar.getJarEntry( theentry ); if ( entry != null ) { data = theJar.getInputStream( entry ); } } catch( Exception fnfe ) { rsvc.error(" JarHolder : getResource() error : exception : " + fnfe ); throw new ResourceNotFoundException( fnfe.getMessage() ); } return data; } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/f4adefb79ccda5d9df1f60719e0ede8f167e4089/JarHolder.java/buggy/src/java/org/apache/velocity/runtime/resource/loader/JarHolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5037,
5070,
12,
514,
326,
4099,
262,
377,
1216,
16676,
288,
3639,
5037,
501,
273,
446,
31,
7734,
775,
540,
288,
5411,
15644,
1622,
1241,
273,
326,
10813,
18,
588,
10813,
1622,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5037,
5070,
12,
514,
326,
4099,
262,
377,
1216,
16676,
288,
3639,
5037,
501,
273,
446,
31,
7734,
775,
540,
288,
5411,
15644,
1622,
1241,
273,
326,
10813,
18,
588,
10813,
1622,
12,
... |
final int nightModifier = (attacker.game.getOptions().booleanOption("night_battle")) ? +2 : 0; | final int nightModifier = (attacker.game.getOptions() .booleanOption("night_battle")) ? +2 : 0; | public static ToHitData getLegAttackBaseToHit( Entity attacker, Entity defender ) { int men = 0; int base = ToHitData.IMPOSSIBLE; StringBuffer reason = new StringBuffer(); final int nightModifier = (attacker.game.getOptions().booleanOption("night_battle")) ? +2 : 0; // Can only attack a Mek's legs. if ( !(defender instanceof Mech) ) { reason.append( "Defender is not a Mek." ); } // Can't target a transported entity. else if ( Entity.NONE != defender.getTransportId() ) { reason.append( "Target is a passenger." ); } // Can't target a entity conducting a swarm attack. else if ( Entity.NONE != defender.getSwarmTargetId() ) { reason.append("Target is swarming a Mek."); } // Attacker can't be swarming. else if ( Entity.NONE != attacker.getSwarmTargetId() ) { reason.append( "Attacker is swarming." ); } // Handle BattleArmor attackers. else if ( attacker instanceof BattleArmor ) { BattleArmor inf = (BattleArmor) attacker; // Battle Armor units can't Leg Attack if they're burdened. if ( inf.isBurdened() ) { reason.append( "Launcher not jettisoned." ); } else { men = inf.getShootingStrength(); if ( men >= 4 ) base = 4; else if ( men >= 3 ) base = 7; else if ( men >= 2 ) base = 10; else if ( men >= 1 ) base = 12; reason.append( men ); reason.append( " trooper(s) active" ); } } // Non-BattleArmor infantry need many more men. else if ( attacker instanceof Infantry ) { Infantry inf = (Infantry) attacker; men = inf.getShootingStrength(); if ( men >= 22 ) base = 4; else if ( men >= 16 ) base = 7; else if ( men >= 10 ) base = 10; else if ( men >= 5 ) base = 12; reason.append( men ); reason.append( " men alive" ); } if (nightModifier>0) { base += nightModifier; reason.append ("Night Battle, no Spotlights"); } // No one else can conduct leg attacks. else { reason.append( "Attacker is not infantry." ); } // Return the ToHitData for this attack. // N.B. we attack the legs. return new ToHitData( base, reason.toString(), ToHitData.HIT_KICK, ToHitData.SIDE_FRONT ); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/9f7045be1eb4cb1b7c1b0e6be8f7c2d9c877cd43/Compute.java/buggy/megamek/src/megamek/common/Compute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2974,
13616,
751,
336,
8329,
3075,
484,
2171,
774,
13616,
12,
3887,
13843,
264,
16,
4766,
10402,
3887,
1652,
2345,
262,
288,
3639,
509,
21247,
273,
374,
31,
3639,
509,
1026,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2974,
13616,
751,
336,
8329,
3075,
484,
2171,
774,
13616,
12,
3887,
13843,
264,
16,
4766,
10402,
3887,
1652,
2345,
262,
288,
3639,
509,
21247,
273,
374,
31,
3639,
509,
1026,
27... |
String readLine = null; if (readNew()) { try { readLine = ecode.readLine(); } catch (Exception e) {} } else { if (!superMethods.isEmpty()) { readLine = (String) superMethods.remove(0); } else { constructorCalls.pop(); if (!constructorCalls.empty()) { superMethods = (Vector) constructorCalls.peek(); } return readLine(); } } if (readLine == null) { readLine = "" + Code.ERROR + Code.DELIM + bundle.getString("unknown.exception") /* + "<H1>Runtime Exception</H1>" + "<P>The reason for runtime exception is unknown.</P>" */ +Code.DELIM + "0" + Code.LOC_DELIM + "0" + Code.LOC_DELIM + "0" + Code.LOC_DELIM + "0"; } System.out.println(readLine); return readLine; } | String readLine = null; if (readNew()) { try { readLine = ecode.readLine(); } catch (Exception e) { } } else { if (!superMethods.isEmpty()) { readLine = (String) superMethods.remove(0); } else { constructorCalls.pop(); if (!constructorCalls.empty()) { superMethods = (Vector) constructorCalls.peek(); } return readLine(); } } if (readLine == null) { readLine = "" + Code.ERROR + Code.DELIM + bundle.getString("unknown.exception")/* * + " <H1> Runtime * Exception </H1> " + " * <P> The reason * for runtime * exception is * unknown. </P> " */ + Code.DELIM + "0" + Code.LOC_DELIM + "0" + Code.LOC_DELIM + "0" + Code.LOC_DELIM + "0"; } System.out.println(readLine); return readLine; } | public String readLine() { String readLine = null; if (readNew()) { try { readLine = ecode.readLine(); } catch (Exception e) {} } else { if (!superMethods.isEmpty()) { readLine = (String) superMethods.remove(0); } else { constructorCalls.pop(); if (!constructorCalls.empty()) { superMethods = (Vector) constructorCalls.peek(); } return readLine(); } } //Change this to be something more meaningful! if (readLine == null) { readLine = "" + Code.ERROR + Code.DELIM + bundle.getString("unknown.exception") /* + "<H1>Runtime Exception</H1>" + "<P>The reason for runtime exception is unknown.</P>" */ +Code.DELIM + "0" + Code.LOC_DELIM + "0" + Code.LOC_DELIM + "0" + Code.LOC_DELIM + "0"; } System.out.println(readLine); return readLine; } | 49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/096731785d17e1df37c952495005acf2800e13b7/Interpreter.java/buggy/src/jeliot/mcode/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
12273,
1435,
288,
202,
202,
780,
12273,
273,
446,
31,
202,
202,
430,
261,
896,
1908,
10756,
288,
1082,
202,
698,
288,
9506,
202,
896,
1670,
273,
425,
710,
18,
896,
1670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
12273,
1435,
288,
202,
202,
780,
12273,
273,
446,
31,
202,
202,
430,
261,
896,
1908,
10756,
288,
1082,
202,
698,
288,
9506,
202,
896,
1670,
273,
425,
710,
18,
896,
1670,
... |
broker.removeDocument( path ); | broker.removeDocument( session.getUser(), path ); | public boolean removeDocument( String path ) throws RemoteException { DBBroker broker = null; try { broker = pool.get(); if ( broker.getDocument( path ) == null ) return false; broker.removeDocument( path ); return true; } catch ( Exception e ) { LOG.debug( e ); throw new RemoteException( e.getMessage() ); } finally { pool.release( broker ); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/3a2763ccd48a9f5f85b88d50e72a021ba9115cf5/AdminSoapBindingImpl.java/buggy/src/org/exist/soap/AdminSoapBindingImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1206,
2519,
12,
514,
589,
262,
1216,
18361,
288,
3639,
2383,
11194,
8625,
273,
446,
31,
3639,
775,
288,
5411,
8625,
273,
2845,
18,
588,
5621,
5411,
309,
261,
8625,
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,
377,
1071,
1250,
1206,
2519,
12,
514,
589,
262,
1216,
18361,
288,
3639,
2383,
11194,
8625,
273,
446,
31,
3639,
775,
288,
5411,
8625,
273,
2845,
18,
588,
5621,
5411,
309,
261,
8625,
18,
588,
... |
redraw(); | redraw(); | public void redraw(List data) { this.data = data; if ((data == null) || (data.size() == 0)) { redraw(); // still paint, so we get the "no data" message return; } maxSize = 0; lastSelected = null; // remove any active tooltips if (toolTipHelper != null) { toolTipHelper.dispose(); toolTipHelper = null; } calculateGeom(); dataChanged = true; redraw(); } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/dfdbaecf471518874019ec2e3570003ee574863b/VisualiserCanvas.java/clean/org.eclipse.contribution.visualiser/src/org/eclipse/contribution/visualiser/views/VisualiserCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16540,
12,
682,
501,
13,
288,
202,
202,
2211,
18,
892,
273,
501,
31,
202,
202,
430,
14015,
892,
422,
446,
13,
747,
261,
892,
18,
1467,
1435,
422,
374,
3719,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
16540,
12,
682,
501,
13,
288,
202,
202,
2211,
18,
892,
273,
501,
31,
202,
202,
430,
14015,
892,
422,
446,
13,
747,
261,
892,
18,
1467,
1435,
422,
374,
3719,
288,
1082,
... |
fireDummyEvent(); | public void removeNotify(){ if (menuBar != null) menuBar.removeNotify(); super.removeNotify(); // By now we've been disconnected from the peer, and the peer set to // null. This is formally the same as saying "we just became // un-displayable", so we wake up the event queue with a dummy event to // see if it's time to shut down. fireDummyEvent();} | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/cfd5d26ab69af1fe494534bdf03f35be22c13bd8/Frame.java/clean/core/src/classpath/java/java/awt/Frame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1206,
9168,
1435,
95,
225,
309,
261,
5414,
5190,
480,
446,
13,
565,
3824,
5190,
18,
4479,
9168,
5621,
225,
2240,
18,
4479,
9168,
5621,
225,
368,
2525,
2037,
732,
8081,
2118,
17853,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
9168,
1435,
95,
225,
309,
261,
5414,
5190,
480,
446,
13,
565,
3824,
5190,
18,
4479,
9168,
5621,
225,
2240,
18,
4479,
9168,
5621,
225,
368,
2525,
2037,
732,
8081,
2118,
17853,
... | |
Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ) ).getRuler( ); | Object obj = ( (RulerProvider) diagramViewer .getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ) ) .getRuler( ); | public void setMargin( int direction ) { switch ( direction ) { case TOP_LEFT : { Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ) ).getRuler( ); if ( obj instanceof EditorRuler ) { ( (EditorRuler) obj ).setLeftMargin( getLayoutSize( ).x + getLeftMargin( ) ); } break; } case TOP_RIGHT : { Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ) ).getRuler( ); if ( obj instanceof EditorRuler ) { ( (EditorRuler) obj ).setRightMargin( getLayoutSize( ).right( ) - getRightMargin( ) ); } break; } case LEFT_TOP : { Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ) ).getRuler( ); if ( obj instanceof EditorRuler ) { ( (EditorRuler) obj ).setLeftMargin( getLayoutSize( ).y + getTopMargin( ) ); } break; } case LEFT_BOTTOM : { Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ) ).getRuler( ); if ( obj instanceof EditorRuler ) { ( (EditorRuler) obj ).setRightMargin( getLayoutSize( ).bottom( ) - getBottomMargin( ) ); } break; } default : break; } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/61cce071e25248ce85d293e05344845aab740350/EditorRulerComposite.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/rulers/EditorRulerComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
9524,
12,
509,
4068,
262,
202,
95,
202,
202,
9610,
261,
4068,
262,
202,
202,
95,
1082,
202,
3593,
18680,
67,
10066,
294,
1082,
202,
95,
9506,
202,
921,
1081,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
9524,
12,
509,
4068,
262,
202,
95,
202,
202,
9610,
261,
4068,
262,
202,
202,
95,
1082,
202,
3593,
18680,
67,
10066,
294,
1082,
202,
95,
9506,
202,
921,
1081,
273,
... |
container.setLayout( WidgetUtil.createGridLayout( 3 ) ); | container.setLayout( WidgetUtil.createGridLayout( 3 ,15) ); | public void buildUI( Composite parent ) { super.buildUI( parent ); container.setLayout( WidgetUtil.createGridLayout( 3 ) ); TextPropertyDescriptorProvider nameProvider = new TextPropertyDescriptorProvider( ReportItemHandle.NAME_PROP, ReportDesignConstants.DATA_SET_ELEMENT ); TextSection nameSection = new TextSection( nameProvider.getDisplayName( ), container, true ); nameSection.setProvider( nameProvider ); nameSection.setGridPlaceholder( 1, true ); nameSection.setWidth( 500 ); addSection( PageSectionId.DATASET_NAME, nameSection ); TextPropertyDescriptorProvider dataSetProvider = new TextPropertyDescriptorProvider( DataSetHandle.DATA_SOURCE_PROP, ReportDesignConstants.DATA_SET_ELEMENT ){ public String getDisplayName(){ return Messages.getString( "DataSetPageGenerator.DataSourceName" ); } }; TextSection dataSetSection = new TextSection( dataSetProvider.getDisplayName( ), container, true ); dataSetSection.setProvider( dataSetProvider ); dataSetSection.setGridPlaceholder( 1, true ); dataSetSection.setWidth( 500 ); addSection( PageSectionId.DATASET_DATASET, dataSetSection ); createSections( ); layoutSections( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b1c54a82f7e0fded60b986c55329f90d6daefd16/DataSetPage.java/clean/UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/page/DataSetPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
5370,
12,
14728,
982,
225,
262,
202,
95,
202,
202,
9565,
18,
3510,
5370,
12,
982,
11272,
202,
202,
3782,
18,
542,
3744,
12,
11103,
1304,
18,
2640,
6313,
3744,
12,
... |
Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), | rootView.removeUpdate(ev, getVisibleEditorRect(), | public void removeUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTextUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTextUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
1891,
12,
2519,
1133,
2113,
13,
565,
288,
1377,
13037,
963,
273,
977,
1841,
18,
588,
1225,
5621,
1377,
1365,
1767,
18,
4479,
1891,
12,
14965,
16,
394,
13264,
12,
20,
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,
377,
1071,
918,
1206,
1891,
12,
2519,
1133,
2113,
13,
565,
288,
1377,
13037,
963,
273,
977,
1841,
18,
588,
1225,
5621,
1377,
1365,
1767,
18,
4479,
1891,
12,
14965,
16,
394,
13264,
12,
20,
16... |
dropTable("#t0042"); | dropTable("#t0042"); | public void testPreparedStatement0042() throws Exception { Connection cx = getConnection(); dropTable("#t0042"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0042 (s char(5) null, i integer null, j integer not null)"); PreparedStatement pStmt1 = cx.prepareStatement("insert into #t0042 (s, i, j) values (?, ?, ?)"); PreparedStatement pStmt2 = cx.prepareStatement("select i from #t0042 order by j"); pStmt1.setString(1, "hello"); pStmt1.setNull(2, java.sql.Types.INTEGER); pStmt1.setInt(3, 1); int count = pStmt1.executeUpdate(); assertTrue(count == 1); pStmt1.setInt(2, 42); pStmt1.setInt(3, 2); count = pStmt1.executeUpdate(); assertTrue(count == 1); ResultSet rs = pStmt2.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); rs.getInt(1); assertTrue(rs.wasNull()); assertTrue("Expected a result set", rs.next()); assertTrue(rs.getInt(1) == 42); assertTrue(!rs.wasNull()); assertTrue("Expected no result set", !rs.next()); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/d456535dc5bca0bbf54c0b9c6730e782aa275787/TimestampTest.java/clean/src.old/test/freetds/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
29325,
713,
9452,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
713,
9452,
8863,
202,
202,
3406,
3480,
273,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
29325,
713,
9452,
1435,
1216,
1185,
202,
95,
202,
202,
1952,
9494,
273,
6742,
5621,
202,
202,
7285,
1388,
2932,
7,
88,
713,
9452,
8863,
202,
202,
3406,
3480,
273,
9... |
Component p2 = component_loader.getComponent("p2"); | Component p2 = component_loader.getComponent("p2"); Component parallel = component_loader.getComponent("parallel"); | public void run() { try { // instantiate and deploy components deploymentDescriptor = ProActive.getProactiveDescriptor("file:" + DEPLOYMENT_DESCRIPTOR_LOCATION); Loader component_loader = new Loader(); component_loader.loadComponentsConfiguration("file:" + COMPONENTS_DESCRIPTOR_LOCATION, deploymentDescriptor); // start components Component c = component_loader.getComponent("c"); //System.out.println("name of c is : " + ((ComponentParametersController)c.getFcInterface(ComponentParametersController.COMPONENT_PARAMETERS_CONTROLLER)).getComponentParameters().getName()); Component p2 = component_loader.getComponent("p2"); //System.out.println("name of p2 is : " + ((ComponentParametersController)p2.getFcInterface(ComponentParametersController.COMPONENT_PARAMETERS_CONTROLLER)).getComponentParameters().getName()); Fractal.getLifeCycleController(c).startFc(); Fractal.getLifeCycleController(p2).startFc(); // invoke method on composite I1 i1 = (I1) c.getFcInterface("i1"); //I1 i1= (I1)p1.getFcInterface("i1"); message = i1.processInputMessage(new Message(MESSAGE)).append(MESSAGE); } catch (Exception e) { e.printStackTrace(); try { deploymentDescriptor.killall(); } catch (ProActiveException pae) { pae.printStackTrace(); } } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/c8d47023e2aff074052dbb51e6002f0373ba7820/Test.java/buggy/src/nonregressiontest/component/descriptor/Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
368,
10275,
471,
7286,
4085,
7734,
6314,
3187,
273,
1186,
3896,
18,
588,
626,
3535,
3187,
2932,
768,
2773,
397,
13491,
2030,
22971,
3212,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
5411,
775,
288,
7734,
368,
10275,
471,
7286,
4085,
7734,
6314,
3187,
273,
1186,
3896,
18,
588,
626,
3535,
3187,
2932,
768,
2773,
397,
13491,
2030,
22971,
3212,
... |
msgs = ((InternalEObject)wallFill).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.CHART_WITH_AXES__WALL_FILL, null, msgs); | msgs = ((InternalEObject) wallFill).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.CHART_WITH_AXES__WALL_FILL, null, msgs); | public void setWallFill(Fill newWallFill) { if (newWallFill != wallFill) { NotificationChain msgs = null; if (wallFill != null) msgs = ((InternalEObject)wallFill).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.CHART_WITH_AXES__WALL_FILL, null, msgs); if (newWallFill != null) msgs = ((InternalEObject)newWallFill).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ModelPackage.CHART_WITH_AXES__WALL_FILL, null, msgs); msgs = basicSetWallFill(newWallFill, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.CHART_WITH_AXES__WALL_FILL, newWallFill, newWallFill)); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ChartWithAxesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithAxesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
26558,
8026,
12,
8026,
394,
26558,
8026,
13,
565,
288,
3639,
309,
261,
2704,
26558,
8026,
480,
17662,
8026,
13,
3639,
288,
5411,
27050,
8733,
273,
446,
31,
5411,
309,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
26558,
8026,
12,
8026,
394,
26558,
8026,
13,
565,
288,
3639,
309,
261,
2704,
26558,
8026,
480,
17662,
8026,
13,
3639,
288,
5411,
27050,
8733,
273,
446,
31,
5411,
309,
261,... |
public RubyArray constants() { ArrayList constantNames = new ArrayList(); RubyModule objectClass = getRuntime().getObject(); if (getRuntime().getClass("Module") == this) { for (Iterator vars = objectClass.instanceVariableNames(); vars.hasNext();) { String name = (String) vars.next(); if (IdUtil.isConstant(name)) { constantNames.add(getRuntime().newString(name)); } } return getRuntime().newArray(constantNames); } else if (getRuntime().getObject() == this) { for (Iterator vars = instanceVariableNames(); vars.hasNext();) { String name = (String) vars.next(); if (IdUtil.isConstant(name)) { constantNames.add(getRuntime().newString(name)); } } return getRuntime().newArray(constantNames); } for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (objectClass == p) { continue; } for (Iterator vars = p.instanceVariableNames(); vars.hasNext();) { String name = (String) vars.next(); if (IdUtil.isConstant(name)) { constantNames.add(getRuntime().newString(name)); } } } return getRuntime().newArray(constantNames); } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
19817,
3120,
23992,
273,
18814,
7675,
588,
921,
5621,
7734,
309,
261,
588,
5576,
7675,
588,
797,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
19817,
3120,
23992,
273,
18814,
7675,
588,
921,
5621,
7734,
309,
261,
588,
5576,
7675,
588,
797,
2932... | ||
case 53: break; | case 54: break; | public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 31: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 32: break; case 21: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 33: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 34: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 35: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 36: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 37: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 38: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 39: break; case 19: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 40: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 41: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 42: break; case 23: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 43: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 44: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 45: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 46: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 47: break; case 22: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 48: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 49: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 50: break; case 20: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 51: break; case 25: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 52: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 53: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 54: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 55: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 56: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s); if(debug) log("Matched @media: "+s); } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/0704f93643187b0aba45fa8c09ca25a3fa9173bb/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1... |
return new CategoryGroupLoader(component, ids); | return new CategoryGroupLoader(component, ids, refresh); | protected DataLoader createHierarchyLoader() { return new CategoryGroupLoader(component, ids); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/CategoryGroupModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/CategoryGroupModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1910,
2886,
752,
12074,
2886,
1435,
565,
288,
3639,
327,
394,
9856,
1114,
2886,
12,
4652,
16,
3258,
16,
4460,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1910,
2886,
752,
12074,
2886,
1435,
565,
288,
3639,
327,
394,
9856,
1114,
2886,
12,
4652,
16,
3258,
16,
4460,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Field f = all_fields[from]; fields[to] = new ObjectStreamField(f.getName(), f.getType()); | final Field f = all_fields[from]; AccessController.doPrivileged(new PrivilegedAction() { public Object run() { f.setAccessible(true); return null; } }); fields[to] = new ObjectStreamField(all_fields[from]); | private void setFields(Class cl) { if (!isSerializable() || isExternalizable()) { fields = NO_FIELDS; return; } try { Field serialPersistentFields = cl.getDeclaredField("serialPersistentFields"); serialPersistentFields.setAccessible(true); int modifiers = serialPersistentFields.getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers) && Modifier.isPrivate(modifiers)) { fields = getSerialPersistentFields(cl); if (fields != null) { Arrays.sort (fields); calculateOffsets(); return; } } } catch (NoSuchFieldException ignore) { } catch (IllegalAccessException ignore) { } int num_good_fields = 0; Field[] all_fields = cl.getDeclaredFields(); int modifiers; // set non-serializable fields to null in all_fields for (int i = 0; i < all_fields.length; i++) { modifiers = all_fields[i].getModifiers(); if (Modifier.isTransient(modifiers) || Modifier.isStatic(modifiers)) all_fields[i] = null; else num_good_fields++; } // make a copy of serializable (non-null) fields fields = new ObjectStreamField[ num_good_fields ]; for (int from = 0, to = 0; from < all_fields.length; from++) if (all_fields[from] != null) { Field f = all_fields[from]; fields[to] = new ObjectStreamField(f.getName(), f.getType()); to++; } Arrays.sort(fields); calculateOffsets(); } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectStreamClass.java/clean/libjava/java/io/ObjectStreamClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
444,
2314,
12,
797,
927,
13,
225,
288,
565,
309,
16051,
291,
21682,
1435,
747,
353,
6841,
6934,
10756,
1377,
288,
202,
2821,
273,
3741,
67,
12683,
31,
202,
2463,
31,
1377,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
444,
2314,
12,
797,
927,
13,
225,
288,
565,
309,
16051,
291,
21682,
1435,
747,
353,
6841,
6934,
10756,
1377,
288,
202,
2821,
273,
3741,
67,
12683,
31,
202,
2463,
31,
1377,
28... |
public boolean predicate2(Object dm, Designer dsgr) { // Only look at associations if (!ModelFacade.isAAssociation(dm)) return NO_PROBLEM; Object ns = ModelFacade.getNamespace(dm); if (ns == null) return PROBLEM_FOUND; // Get the Association and its connections. // Iterate over all the AssociationEnds and check that each connected // classifier is in the same sub-system or model Iterator enum = ModelFacade.getConnections(dm); while (enum.hasNext()) { // The next AssociationEnd, and its classifier. Check the // classifier is in the namespace of the association. If not we // have a problem. Object clf = ModelFacade.getType(enum.next()); if (ns != ModelFacade.getNamespace(clf)) return PROBLEM_FOUND; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/CrCrossNamespaceAssoc.java/clean/src_new/org/argouml/uml/cognitive/critics/CrCrossNamespaceAssoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6494,
18344,
22,
12,
921,
10956,
16,
15478,
264,
72,
1055,
86,
15329,
759,
3386,
7330,
270,
29194,
430,
12,
5,
1488,
12467,
18,
291,
37,
7174,
12,
10956,
3719,
2463,
3417,
67,
3373,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6494,
18344,
22,
12,
921,
10956,
16,
15478,
264,
72,
1055,
86,
15329,
759,
3386,
7330,
270,
29194,
430,
12,
5,
1488,
12467,
18,
291,
37,
7174,
12,
10956,
3719,
2463,
3417,
67,
3373,
38... | ||
public void testMessageWithParameters() throws Exception { String value; CmsMessages messages = new CmsMessages(CmsWorkplaceMessages.DEFAULT_WORKPLACE_MESSAGE_BUNDLE, Locale.ENGLISH); value = messages.key("editor.xmlcontent.validation.error"); assertEquals("Invalid value \"{0}\" according to rule {1}", value); value = messages.key("editor.xmlcontent.validation.error", new Object[]{"'value'", "'rule'"}); assertEquals("Invalid value \"'value'\" according to rule 'rule'", value); value = messages.key("editor.xmlcontent.validation.warning"); assertEquals("Bad value \"{0}\" according to rule {1}", value); value = messages.key("editor.xmlcontent.validation.warning", new Object[]{"some value", "the rule"}); assertEquals("Bad value \"some value\" according to rule the rule", value); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsMessages.java/buggy/test/org/opencms/i18n/TestCmsMessages.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1079,
1190,
2402,
1435,
1216,
1185,
288,
7734,
514,
460,
31,
7734,
2149,
5058,
2743,
273,
394,
2149,
5058,
12,
4747,
16514,
5058,
18,
5280,
67,
10566,
12134,
67,
8723,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1079,
1190,
2402,
1435,
1216,
1185,
288,
7734,
514,
460,
31,
7734,
2149,
5058,
2743,
273,
394,
2149,
5058,
12,
4747,
16514,
5058,
18,
5280,
67,
10566,
12134,
67,
8723,
67... | ||
private void fatalError(Throwable e, int code) { | private void fatalError(InserterException e, int code) { | private void fatalError(Throwable e, int code) { Logger.normal(this, "Giving up on block: "+this+": "+e); tracker.fatalError(this, code); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/0404cf9ef9345368fa325475203da5711a7d962e/BlockInserter.java/clean/src/freenet/client/BlockInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
10081,
668,
12,
15155,
425,
16,
509,
981,
13,
288,
202,
202,
3328,
18,
6130,
12,
2211,
16,
315,
43,
9288,
731,
603,
1203,
30,
13773,
2211,
15,
6877,
13773,
73,
1769,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
10081,
668,
12,
15155,
425,
16,
509,
981,
13,
288,
202,
202,
3328,
18,
6130,
12,
2211,
16,
315,
43,
9288,
731,
603,
1203,
30,
13773,
2211,
15,
6877,
13773,
73,
1769,
2... |
task.setReminderDate(inAnHour.getTime()); | task.setScheduledForDate(inAnHour.getTime()); | public void testIsActiveToday() { ITask task = new Task("1", "task-1", true); assertFalse(manager.isScheduledForToday(task)); task.setReminderDate(new Date()); assertTrue(manager.isScheduledForToday(task)); task.setReminded(true); assertTrue(manager.isScheduledForToday(task)); task.setReminded(true); Calendar inAnHour = Calendar.getInstance(); inAnHour.set(Calendar.HOUR_OF_DAY, inAnHour.get(Calendar.HOUR_OF_DAY) + 1); inAnHour.getTime(); task.setReminderDate(inAnHour.getTime()); Calendar tomorrow = Calendar.getInstance(); manager.snapToNextDay(tomorrow); assertEquals(-1, inAnHour.compareTo(tomorrow)); assertTrue(manager.isScheduledForToday(task)); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bd286c2c8dec17d333d2bd4b3c597591028ee669/TaskListManagerTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskListManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2520,
3896,
56,
20136,
1435,
288,
202,
202,
1285,
835,
1562,
273,
394,
3837,
2932,
21,
3113,
315,
4146,
17,
21,
3113,
638,
1769,
202,
202,
11231,
8381,
12,
4181,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2520,
3896,
56,
20136,
1435,
288,
202,
202,
1285,
835,
1562,
273,
394,
3837,
2932,
21,
3113,
315,
4146,
17,
21,
3113,
638,
1769,
202,
202,
11231,
8381,
12,
4181,
18... |
public org.quickfix.field.SettlInstSource getSettlInstSource() throws FieldNotFound { org.quickfix.field.SettlInstSource value = new org.quickfix.field.SettlInstSource(); | public quickfix.field.SettlInstSource getSettlInstSource() throws FieldNotFound { quickfix.field.SettlInstSource value = new quickfix.field.SettlInstSource(); | public org.quickfix.field.SettlInstSource getSettlInstSource() throws FieldNotFound { org.quickfix.field.SettlInstSource value = new org.quickfix.field.SettlInstSource(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationInstruction.java/buggy/src/java/src/quickfix/fix44/AllocationInstruction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
10773,
1830,
336,
694,
6172,
10773,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
10773,
1830... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
10773,
1830,
336,
694,
6172,
10773,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
694,
6172,
10773,
1830... |
this.bugReporter = bugReporter; } | this.bugReporter = bugReporter; } | public FindFinalizeInvocations(BugReporter bugReporter) { this.bugReporter = bugReporter; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/FindFinalizeInvocations.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindFinalizeInvocations.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
4163,
7951,
554,
3605,
17448,
12,
19865,
13289,
7934,
13289,
13,
288,
202,
2211,
18,
925,
13289,
273,
7934,
13289,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
565,
1071,
4163,
7951,
554,
3605,
17448,
12,
19865,
13289,
7934,
13289,
13,
288,
202,
2211,
18,
925,
13289,
273,
7934,
13289,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
System.err.println("unknown option " + argument.charAt(characterIndex)); systemExit(); | throw new MainExitException(1, "unknown option " + argument.charAt(characterIndex)); | private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : Main.printUsage(outStream); shouldRunInterpreter = false; break; case 'I' : loadPaths.add(grabValue(" -I must be followed by a directory name to add to lib path")); break FOR; case 'r' : requiredLibraries.add(grabValue("-r must be followed by a package to require")); break FOR; case 'e' : inlineScript.append(grabValue(" -e must be followed by an expression to evaluate")); inlineScript.append('\n'); break FOR; case 'b' : benchmarking = true; break; case 'p' : assumePrinting = true; assumeLoop = true; break; case 'n' : assumeLoop = true; break; case 'a' : split = true; break; case 'l' : processLineEnds = true; break; case 'v' : verbose = true; setShowVersion(true); break; case 'w' : verbose = true; break; case '-' : if (argument.equals("--version")) { setShowVersion(true); break FOR; } else { if (argument.equals("--")) { // ruby interpreter compatibilty // Usage: ruby [switches] [--] [programfile] [arguments]) break FOR; } } default : System.err.println("unknown option " + argument.charAt(characterIndex)); systemExit(); } } } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/b4a189a27604d62c317938f16a124fb9dab1e94a/CommandlineParser.java/buggy/src/org/jruby/util/CommandlineParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1379,
1435,
288,
3639,
514,
1237,
273,
1775,
63,
3446,
1016,
15533,
3639,
12108,
294,
364,
261,
11560,
1016,
273,
404,
31,
3351,
1016,
411,
1237,
18,
2469,
5621,
3351,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1379,
1435,
288,
3639,
514,
1237,
273,
1775,
63,
3446,
1016,
15533,
3639,
12108,
294,
364,
261,
11560,
1016,
273,
404,
31,
3351,
1016,
411,
1237,
18,
2469,
5621,
3351,
10... |
xj = m_JRand.nextDouble(); yj = m_JRand.nextDouble(); | xj = m_JRand.nextGaussian(); yj = m_JRand.nextGaussian(); | private void paintData(Graphics gx) { double maxErr = Double.NEGATIVE_INFINITY; double minErr = Double.POSITIVE_INFINITY; double xj=0; double yj=0; /* // determine range of error for numeric predictions if necessary if (m_preds != null && m_predsNumeric && (m_plotInstances.classIndex() >= 0)) { int cind = m_plotInstances.classIndex(); double err; for (int jj=0;jj<m_plotInstances.numInstances();jj++) { err = Math.abs(m_preds[jj] - m_plotInstances.instance(jj).value(cind)); if (err < minErr) { minErr = err; } if (err > maxErr) { maxErr = err; } } } */ for (int i=0;i<m_plotInstances.numInstances();i++) { if (m_plotInstances.instance(i).isMissing(m_xIndex) || m_plotInstances.instance(i).isMissing(m_yIndex)) { } else { if (m_JitterVal > 0) { xj = m_JRand.nextDouble(); yj = m_JRand.nextDouble(); } /* double x = convertToPanelX(m_plotInstances. instance(i).value(m_xIndex),xj); double y = convertToPanelY(m_plotInstances. instance(i).value(m_yIndex),yj); */ double x = (m_pointLookup[i][0] + m_pointLookup[i][3]); double y = (m_pointLookup[i][1] + m_pointLookup[i][4]); if (m_plotInstances.attribute(m_cIndex).isNominal() || m_colourUsingPreds) { // if the cIndex is less than 0 then we are visualizing // a clusterer's predictions and therefore the dataset has // no apriori class to use for colouring int ci = (!m_colourUsingPreds) ? (int)(m_plotInstances.instance(i).value(m_cIndex)) % 10 : (int)(m_preds[i] % 10); int mp = (!m_colourUsingPreds) ? (int)(m_plotInstances.instance(i).value(m_cIndex) / 10) : (int)(m_preds[i] / 10); mp *= 2; Color pc = m_DefaultColors[ci]; for (int j=0;j<mp;j++) { pc = pc.brighter(); } gx.setColor(pc); drawDataPoint(x,y,2,0,gx); if (m_preds != null && !m_predsNumeric && (m_plotInstances.classIndex() >= 0)) { if (m_preds[i] != m_plotInstances.instance(i). value(m_plotInstances.classIndex())) { ci = (int)(m_preds[i] % 10); mp = (int)(m_preds[i] / 10); mp *= 2; pc = m_DefaultColors[ci]; for (int j=0;j<mp;j++) { pc = pc.brighter(); } gx.setColor(pc); drawDataPoint(x,y,(int)m_pointLookup[i][2],1,gx); // gx.drawRect((int)(x-3),(int)(y-3),6,6); //ci = (int)(m_plotInstances.instance(i).value(m_plotInstances.classIndex()) % 10); } } } else { int maxpSize = 20; if (m_preds != null && m_plotInstances.classIndex() >= 0 && m_predsNumeric) { /* double err = Math.abs((m_preds[i] - m_plotInstances.instance(i). value(m_plotInstances.classIndex()))); err = ((err - minErr)/(maxErr - minErr)) * maxpSize; */ double r = (m_plotInstances.instance(i). value(m_cIndex) - m_minC) / (m_maxC - m_minC); r = (r * 240) + 15; gx.setColor(new Color((int)r,0,(int)(255-r))); drawDataPoint(x,y,(int)m_pointLookup[i][2],0,gx); } else { double r = (m_plotInstances.instance(i).value(m_cIndex) - m_minC) / (m_maxC - m_minC); r = (r * 240) + 15; gx.setColor(new Color((int)r,0,(int)(255-r))); drawDataPoint(x,y,2,0,gx); } } } } } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/34ee78e87e27b0a4bb25b45dbebb30c5fdfeeb03/VisualizePanel.java/clean/weka/gui/explorer/VisualizePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12574,
751,
12,
17558,
314,
92,
13,
288,
1377,
1645,
943,
2524,
273,
3698,
18,
5407,
22421,
67,
17716,
31,
1377,
1645,
1131,
2524,
273,
3698,
18,
7057,
16325,
67,
17716,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12574,
751,
12,
17558,
314,
92,
13,
288,
1377,
1645,
943,
2524,
273,
3698,
18,
5407,
22421,
67,
17716,
31,
1377,
1645,
1131,
2524,
273,
3698,
18,
7057,
16325,
67,
17716,
31,
... |
boolean is_brl = PPC_Disassembler.isBranchAndLink(current_I); | boolean is_brl = com.ibm.JikesRVM.PPC_Disassembler.isBranchAndLink(current_I); | public void setStepBreakpoint(int thread, boolean over_brl, boolean skip_prolog) { breakpoint bp; int current_I, address; // System.out.println("setStepBreakpoint: thread " + thread + ", list set up for " + // size() + " threads" ); bp = (breakpoint) elementAt(thread); // get the step breakpoint for this thread if (bp==null) { System.out.println("setStepBreakpoint: null breakpoint for thread " + thread + "?"); return; } address = owner.reg.hardwareIP(); bp.next_addr = address + 4; bp.next_I = owner.mem.read(bp.next_addr); bp.methodID = owner.bmap.getCompiledMethodID(owner.reg.currentFP(), bp.next_addr); // if jumping over method invocation, don't worry about the branch target current_I = owner.mem.read(address); boolean is_brl = PPC_Disassembler.isBranchAndLink(current_I); if (over_brl && is_brl) { // System.out.println("setStepBreakpoint: next " + Integer.toHexString(bp.next_addr)); Platform.setbp(bp.next_addr); return; } // if branch for a yieldpoint, don't want to follow branch set step // for next instruction if (is_brl) { boolean is_yld = PPC_Disassembler.isBranchForYieldpoint(current_I); if (is_yld) { Platform.setbp(bp.next_addr); return; } } // if it's other types of branch or we are stepping into call on a brl // then we also need to set a breakpoint at the branch target int branch_addr = owner.mem.branchTarget(current_I, address); // is the branch address valid? // do we have breakpoint here already? if (branch_addr!=-1 && branch_addr!=bp.next_addr) { if (skip_prolog) { // should we skip the prolog in the callee? bp.branch_offset = owner.bmap.scanPrologSize(branch_addr); } if (is_brl) { // save the new methodID to be used during the prolog section that // will initialize the method ID in the new stack frame bp.methodID = owner.bmap.getCompiledMethodIDForInstruction(branch_addr); bp.next_addr = branch_addr + bp.branch_offset; bp.next_I = owner.mem.read(bp.next_addr); } else { bp.branch_addr = branch_addr + bp.branch_offset; bp.branch_I = owner.mem.read(bp.branch_addr); // System.out.println("setStepBreakpoint: btarget " + // Integer.toHexString(bp.branch_addr)); Platform.setbp(bp.branch_addr); } } // System.out.println("setStepBreakpoint: next " + Integer.toHexString(bp.next_addr)); Platform.setbp(bp.next_addr); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/949af5bc67701175f3e6a1c800eed01fdb4ad2d1/breakpointList.java/buggy/rvm/src/tools/jdp/powerPC/breakpointList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
4160,
20552,
12,
474,
2650,
16,
1250,
1879,
67,
70,
1321,
16,
1250,
2488,
67,
685,
1330,
13,
288,
565,
18820,
9107,
31,
565,
509,
783,
67,
45,
16,
1758,
31,
565,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
4160,
20552,
12,
474,
2650,
16,
1250,
1879,
67,
70,
1321,
16,
1250,
2488,
67,
685,
1330,
13,
288,
565,
18820,
9107,
31,
565,
509,
783,
67,
45,
16,
1758,
31,
565,
368,
... |
ITarget target = ManagedBuildManager.getSelectedTarget(project); if (target != null) { | IConfiguration config = ManagedBuildManager.getSelectedConfiguration(project); if (config != null) { | public void saveErrorParsers(IProject project, String[] parsers) { ITarget target = ManagedBuildManager.getSelectedTarget(project); if (target != null) { StringBuffer buf = new StringBuffer(); for (int i = 0; i < parsers.length; i++) { if (i > 0) buf.append(';'); buf.append(parsers[i]); } target.setErrorParserIds(buf.toString()); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/18b49394c46cbbecf041078a70e83e4975d004a7/ErrorParserBlock.java/clean/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ErrorParserBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
668,
26954,
12,
45,
4109,
1984,
16,
514,
8526,
14212,
13,
288,
202,
202,
1285,
826,
1018,
273,
10024,
3116,
1318,
18,
588,
7416,
2326,
12,
4406,
1769,
202,
202,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
668,
26954,
12,
45,
4109,
1984,
16,
514,
8526,
14212,
13,
288,
202,
202,
1285,
826,
1018,
273,
10024,
3116,
1318,
18,
588,
7416,
2326,
12,
4406,
1769,
202,
202,
430... |
focusGainedHandler(evt); } | focusGainedHandler(evt); } | public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/2fa7f475f69ab97d72a8f005b818f35b29151138/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
7155,
43,
8707,
12,
6290,
18,
2219,
88,
18,
2575,
18,
9233,
1133,
6324,
13,
288,
9506,
202,
13923,
43,
8707,
1503,
12,
73,
11734,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
7155,
43,
8707,
12,
6290,
18,
2219,
88,
18,
2575,
18,
9233,
1133,
6324,
13,
288,
9506,
202,
13923,
43,
8707,
1503,
12,
73,
11734,
1769,
1082,
202,
97,
2,
-100,
-100,
-... |
String label = WorkbenchMessages.getString("WorkInProgressPreference.doubleClick"); | String label = WorkbenchMessages.getString("WorkbenchPreference.doubleClick"); | private void createSingleClickGroup(Composite composite) { Font font = composite.getFont(); Group buttonComposite = new Group(composite, SWT.LEFT); GridLayout layout = new GridLayout(); buttonComposite.setLayout(layout); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL); buttonComposite.setLayoutData(data); buttonComposite.setText(WorkbenchMessages.getString("WorkInProgressPreference.openMode")); //$NON-NLS-1$ buttonComposite.setFont(font); String label = WorkbenchMessages.getString("WorkInProgressPreference.doubleClick"); //$NON-NLS-1$ doubleClickButton = createRadioButton(buttonComposite,label); doubleClickButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selectClickMode(singleClickButton.getSelection()); } }); doubleClickButton.setSelection(!openOnSingleClick); label = WorkbenchMessages.getString("WorkInProgressPreference.singleClick"); //$NON-NLS-1$ singleClickButton = createRadioButton(buttonComposite,label); singleClickButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selectClickMode(singleClickButton.getSelection()); } }); singleClickButton.setSelection(openOnSingleClick); label = WorkbenchMessages.getString("WorkInProgressPreference.singleClick_SelectOnHover"); //$NON-NLS-1$ selectOnHoverButton = new Button(buttonComposite, SWT.CHECK | SWT.LEFT); selectOnHoverButton.setText(label); selectOnHoverButton.setFont(font); selectOnHoverButton.setEnabled(openOnSingleClick); selectOnHoverButton.setSelection(selectOnHover); selectOnHoverButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { selectOnHover = selectOnHoverButton.getSelection(); } }); data = new GridData(); data.horizontalIndent = 20; selectOnHoverButton.setLayoutData(data); label = WorkbenchMessages.getString("WorkInProgressPreference.singleClick_OpenAfterDelay"); //$NON-NLS-1$ openAfterDelayButton = new Button(buttonComposite, SWT.CHECK | SWT.LEFT); openAfterDelayButton.setText(label); openAfterDelayButton.setEnabled(openOnSingleClick); openAfterDelayButton.setSelection(openAfterDelay); openAfterDelayButton.setFont(font); openAfterDelayButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { openAfterDelay = openAfterDelayButton.getSelection(); } }); data = new GridData(); data.horizontalIndent = 20; openAfterDelayButton.setLayoutData(data); createNoteComposite( font, buttonComposite, WorkbenchMessages.getString("Preference.note"),//$NON-NLS-1$ WorkbenchMessages.getString("WorkInProgressPreference.noEffectOnAllViews")); //$NON-NLS-1$ } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1912df8999bfc7882ded89599912652ca0fb828e/WorkbenchPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5281,
6563,
1114,
12,
9400,
9635,
13,
288,
9506,
202,
5711,
3512,
273,
9635,
18,
588,
5711,
5621,
9506,
202,
1114,
3568,
9400,
273,
394,
3756,
12,
27676,
16,
348,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
5281,
6563,
1114,
12,
9400,
9635,
13,
288,
9506,
202,
5711,
3512,
273,
9635,
18,
588,
5711,
5621,
9506,
202,
1114,
3568,
9400,
273,
394,
3756,
12,
27676,
16,
348,
8... |
Graphics g = mv.getGraphics(); | Graphics g = nc.getGraphics(); | private void paintRect() { if (mousePos == null || mousePosStart == null || mousePos == mousePosStart) return; Graphics g = mv.getGraphics(); g.setColor(Color.BLACK); g.setXORMode(Color.WHITE); Rectangle r = getSelectionRectangle(); g.drawRect(r.x,r.y,r.width,r.height); } | 2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/e70dfbce2e1e8dd6fc9d36f38a6c2b6c4988b999/SelectionManager.java/clean/src/org/openstreetmap/josm/gui/SelectionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
12574,
6120,
1435,
288,
202,
202,
430,
261,
11697,
1616,
422,
446,
747,
7644,
1616,
1685,
422,
446,
747,
7644,
1616,
422,
7644,
1616,
1685,
13,
1082,
202,
2463,
31,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
12574,
6120,
1435,
288,
202,
202,
430,
261,
11697,
1616,
422,
446,
747,
7644,
1616,
1685,
422,
446,
747,
7644,
1616,
422,
7644,
1616,
1685,
13,
1082,
202,
2463,
31,
202,
... |
SchemaGrammar sg = (SchemaGrammar)fGrammarMap.get(namespace); | SchemaGrammar sg = (SchemaGrammar)fGrammarMap.get(null2EmptyString(namespace)); | public XSNotationDeclaration getNotationDecl(String name, String namespace) { SchemaGrammar sg = (SchemaGrammar)fGrammarMap.get(namespace); if (sg == null) return null; return (XSNotationDeclaration)sg.fGlobalNotationDecls.get(name); } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/35fe2882143c2ad3973e1d4e76951c3ccc6807b6/XSModelImpl.java/clean/src/org/apache/xerces/impl/xs/XSModelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1139,
55,
14818,
6094,
336,
14818,
3456,
12,
780,
508,
16,
4766,
1171,
514,
1981,
13,
288,
3639,
4611,
18576,
11150,
273,
261,
3078,
18576,
13,
74,
18576,
863,
18,
588,
12,
2011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
55,
14818,
6094,
336,
14818,
3456,
12,
780,
508,
16,
4766,
1171,
514,
1981,
13,
288,
3639,
4611,
18576,
11150,
273,
261,
3078,
18576,
13,
74,
18576,
863,
18,
588,
12,
2011,
... |
public org.quickfix.field.Nested3PartySubID get(org.quickfix.field.Nested3PartySubID value) | public quickfix.field.Nested3PartySubID get(quickfix.field.Nested3PartySubID value) | public org.quickfix.field.Nested3PartySubID get(org.quickfix.field.Nested3PartySubID value) throws FieldNotFound { getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix44/NewOrderMultileg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
8649,
23,
17619,
1676,
734,
336,
12,
19525,
904,
18,
1518,
18,
8649,
23,
17619,
1676,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9549,
904,
18,
1518,
18,
8649,
23,
17619,
1676,
734,
336,
12,
19525,
904,
18,
1518,
18,
8649,
23,
17619,
1676,
734,
225,
460,
13,
565,
1216,
2286,
2768,
225,
288,
5031,
12,
1132,
... |
loadDependentLibraries(aLibXULDirectory); | String path = ""; if (aLibXULDirectory != null) { path = aLibXULDirectory + File.separator; } System.load(path + System.mapLibraryName("javaxpcomglue")); | public void initEmbedding(File aLibXULDirectory, File aAppDirectory, IAppFileLocProvider aAppDirProvider) { loadDependentLibraries(aLibXULDirectory); initEmbeddingNative(aLibXULDirectory, aAppDirectory, aAppDirProvider); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b1900c3b67cfbb6c90951757443e1c9f0fbf1b2d/GREImpl.java/buggy/extensions/java/xpcom/src/GREImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
9538,
7459,
12,
812,
279,
5664,
60,
1506,
2853,
16,
1387,
279,
3371,
2853,
16,
18701,
467,
3371,
812,
1333,
2249,
279,
3371,
1621,
2249,
13,
288,
377,
514,
589,
273,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1208,
9538,
7459,
12,
812,
279,
5664,
60,
1506,
2853,
16,
1387,
279,
3371,
2853,
16,
18701,
467,
3371,
812,
1333,
2249,
279,
3371,
1621,
2249,
13,
288,
377,
514,
589,
273,
14... |
LOG.info("Failed to complete " + src + " because dir.getFile()==" + dir.getFile(src) + " and " + pendingCreates.get(src)); | LOG.info( "Failed to complete " + src + " because dir.getFile()==" + dir.getFile(src) + " and " + pendingCreates.get(src)); | public synchronized int completeFile(UTF8 src, UTF8 holder) { if (dir.getFile(src) != null || pendingCreates.get(src) == null) { LOG.info("Failed to complete " + src + " because dir.getFile()==" + dir.getFile(src) + " and " + pendingCreates.get(src)); return OPERATION_FAILED; } else if (! checkFileProgress(src)) { return STILL_WAITING; } else { Vector pendingVector = (Vector) pendingCreates.get(src); Block pendingBlocks[] = (Block[]) pendingVector.toArray(new Block[pendingVector.size()]); // // We have the pending blocks, but they won't have // length info in them (as they were allocated before // data-write took place). So we need to add the correct // length info to each // // REMIND - mjc - this is very inefficient! We should // improve this! // for (int i = 0; i < pendingBlocks.length; i++) { Block b = pendingBlocks[i]; TreeSet containingNodes = (TreeSet) blocksMap.get(b); DatanodeInfo node = (DatanodeInfo) containingNodes.first(); for (Iterator it = node.getBlockIterator(); it.hasNext(); ) { Block cur = (Block) it.next(); if (b.getBlockId() == cur.getBlockId()) { b.setNumBytes(cur.getNumBytes()); break; } } } // // Now we can add the (name,blocks) tuple to the filesystem // if (dir.addFile(src, pendingBlocks)) { // The file is no longer pending pendingCreates.remove(src); for (int i = 0; i < pendingBlocks.length; i++) { pendingCreateBlocks.remove(pendingBlocks[i]); } synchronized (leases) { Lease lease = (Lease) leases.get(holder); if (lease != null) { lease.completedCreate(src); if (! lease.hasLocks()) { leases.remove(holder); sortedLeases.remove(lease); } } } // // REMIND - mjc - this should be done only after we wait a few secs. // The namenode isn't giving datanodes enough time to report the // replicated blocks that are automatically done as part of a client // write. // // Now that the file is real, we need to be sure to replicate // the blocks. for (int i = 0; i < pendingBlocks.length; i++) { TreeSet containingNodes = (TreeSet) blocksMap.get(pendingBlocks[i]); if (containingNodes.size() < this.desiredReplication) { synchronized (neededReplications) { LOG.info("Completed file " + src + ", at holder " + holder + ". There is/are only " + containingNodes.size() + " copies of block " + pendingBlocks[i] + ", so replicating up to " + this.desiredReplication); neededReplications.add(pendingBlocks[i]); } } } return COMPLETE_SUCCESS; } else { System.out.println("AddFile() for " + src + " failed"); } LOG.info("Dropped through on file add...."); } return OPERATION_FAILED; } | 50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSNamesystem.java/buggy/src/java/org/apache/hadoop/dfs/FSNamesystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
3912,
812,
12,
5159,
28,
1705,
16,
6380,
28,
10438,
13,
288,
3639,
309,
261,
1214,
18,
29925,
12,
4816,
13,
480,
446,
747,
4634,
2729,
18,
588,
12,
4816,
13,
422,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
3912,
812,
12,
5159,
28,
1705,
16,
6380,
28,
10438,
13,
288,
3639,
309,
261,
1214,
18,
29925,
12,
4816,
13,
480,
446,
747,
4634,
2729,
18,
588,
12,
4816,
13,
422,
446... |
while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len) ? in[s] : ' '; } | private String getTableName() throws SQLException { // FIXME If the resulting table name contains a '(' (i.e. is a function) "rollback" and return null StringBuffer name = new StringBuffer(128); char c = (s < len) ? in[s] : ' '; while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len)? in[s]: ' '; } if (c == '{') { // Start of {oj ... } we can assume that there is // more than one table in select and therefore // it would not be updateable. return ""; } // // Skip any leading comments before fist table name // while (c == '/' || c == '-') { if (c == '/') { if (s + 1 < len && in[s + 1] == '*') { skipMultiComments(); s++; } else { break; } } else { if (s + 1 < len && in[s + 1] == '-') { skipSingleComments(); } else { break; } } c = (s < len) ? in[s] : ' '; while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len)? in[s]: ' '; } } if (c == '{') { // See comment above return ""; } // // Now process table name // while (s < len) { if (c == '[' || c == '"') { int start = d; copyString(); name.append(String.valueOf(out, start, d - start)); c = (s < len) ? in[s] : ' '; } else { int start = d; while (s < len && !Character.isWhitespace(c) && c != '.' && c != ',') { out[d++] = c; s++; c = (s < len) ? in[s] : ' '; } name.append(String.valueOf(out, start, d - start)); } while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len) ? in[s] : ' '; } if (c != '.') { break; } name.append(c); out[d++] = c; s++; c = (s < len) ? in[s] : ' '; while (s < len && Character.isWhitespace(c)) { out[d++] = c; s++; c = (s < len) ? in[s] : ' '; } } return name.toString(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/32b7d05715f7885d82b637f1fba2ed6a188f578c/SQLParser.java/clean/src/main/net/sourceforge/jtds/jdbc/SQLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
11996,
1435,
1216,
6483,
288,
3639,
368,
9852,
971,
326,
8156,
1014,
508,
1914,
279,
7321,
261,
77,
18,
73,
18,
353,
279,
445,
13,
315,
20050,
6,
471,
327,
446,
3639,
6674,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
11996,
1435,
1216,
6483,
288,
3639,
368,
9852,
971,
326,
8156,
1014,
508,
1914,
279,
7321,
261,
77,
18,
73,
18,
353,
279,
445,
13,
315,
20050,
6,
471,
327,
446,
3639,
6674,
... | |
MenuManager clipboardMenu = new MenuManager(G2GuiResources.getString("TT_DOWNLOAD_MENU_COPYTO")); | MenuManager clipboardMenu = new MenuManager(G2GuiResources.getString( "TT_DOWNLOAD_MENU_COPYTO")); | public void menuAboutToShow(IMenuManager menuManager) { /*copy ED2K-Link*/ if (selectedFile != null) { String[] linkList = new String[ selectedFiles.size() ]; for (int i = 0; i < selectedFiles.size(); i++) { linkList[ i ] = new String(((SharedFileInfo) selectedFiles.get(i)).getED2K()); } MenuManager clipboardMenu = new MenuManager(G2GuiResources.getString("TT_DOWNLOAD_MENU_COPYTO")); clipboardMenu.add(new CopyED2KLinkToClipboardAction(false, linkList)); clipboardMenu.add(new CopyED2KLinkToClipboardAction(true, linkList)); menuManager.add(clipboardMenu); } menuManager.add(new RefreshUploadsAction(gTableViewer)); } | 11075 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11075/6295fd93fbe029bec6b7a525722e315004146c8c/UploadTableViewer.java/buggy/g2gui/src/net/mldonkey/g2gui/view/transfer/uploadTable/UploadTableViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3824,
24813,
774,
5706,
12,
3445,
2104,
1318,
3824,
1318,
13,
288,
5411,
1748,
3530,
15585,
22,
47,
17,
2098,
5549,
5411,
309,
261,
8109,
812,
480,
446,
13,
288,
7734,
514,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3824,
24813,
774,
5706,
12,
3445,
2104,
1318,
3824,
1318,
13,
288,
5411,
1748,
3530,
15585,
22,
47,
17,
2098,
5549,
5411,
309,
261,
8109,
812,
480,
446,
13,
288,
7734,
514,
8... |
public AvailabilityReport(String author) { | public AvailabilityReport(String author, String startMonth, String startDate, String startYear) { | public AvailabilityReport(String author) { ThreadCategory.setPrefix(LOG4J_CATEGORY); log = ThreadCategory.getInstance(this.getClass()); if (log.isDebugEnabled()) log.debug("Inside AvailabilityReport"); Calendar today = new GregorianCalendar(); int day = today.get(Calendar.DAY_OF_MONTH); int year = today.get(Calendar.YEAR); SimpleDateFormat smpMonth = new SimpleDateFormat("MMMMMMMMMMM"); String month = smpMonth.format(new java.util.Date(today.getTime().getTime())); // int month = today.get(Calendar.MONTH) + 1; int hour = today.get(Calendar.HOUR); int minute = today.get(Calendar.MINUTE); int second = today.get(Calendar.SECOND); Created created = new Created(); created.setDay(day); created.setHour(hour); created.setMin(minute); created.setMonth(month); created.setSec(second); created.setYear(year); created.setContent(today.getTime().getTime()); m_report = new Report(); m_report.setCreated(created); m_report.setAuthor(author); if (log.isDebugEnabled()) { log.debug("Leaving AvailabilityReport"); } } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/5672599f73a363da6e60016509013eb9410ffead/AvailabilityReport.java/buggy/src/report/org/opennms/report/availability/AvailabilityReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19309,
4820,
12,
780,
2869,
16,
514,
787,
5445,
16,
514,
12572,
16,
514,
787,
5593,
13,
288,
3639,
4884,
4457,
18,
542,
2244,
12,
4842,
24,
46,
67,
24847,
1769,
3639,
613,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19309,
4820,
12,
780,
2869,
16,
514,
787,
5445,
16,
514,
12572,
16,
514,
787,
5593,
13,
288,
3639,
4884,
4457,
18,
542,
2244,
12,
4842,
24,
46,
67,
24847,
1769,
3639,
613,
273,
... |
public void testLogicalAssertionsWithExists() throws Exception { final PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "test_LogicalAssertionWithExists.drl" )) ); final Package pkg = builder.getPackage(); final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); final WorkingMemory workingMemory = ruleBase.newWorkingMemory(); Person p1 = new Person( "p1", "stilton", 20 ); p1.setStatus( "europe" ); FactHandle c1FactHandle = workingMemory.assertObject( p1 ); Person p2 = new Person( "p2", "stilton", 30 ); p2.setStatus( "europe" ); FactHandle c2FactHandle = workingMemory.assertObject( p2 ); Person p3 = new Person( "p3", "stilton", 40 ); p3.setStatus( "europe" ); FactHandle c3FactHandle = workingMemory.assertObject( p3 ); workingMemory.fireAllRules(); // all 3 in europe, so, 2 cheese List cheeseList = workingMemory.getObjects( String.class ); assertEquals( 2, cheeseList.size() ); // europe=[ 1, 2 ], america=[ 3 ] p3.setStatus( "america" ); workingMemory.modifyObject( c3FactHandle, p3 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( String.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1 ], america=[ 2, 3 ] p2.setStatus( "america" ); workingMemory.modifyObject( c2FactHandle, p2 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( String.class ); assertEquals( 1, cheeseList.size() ); // europe=[ ], america=[ 1, 2, 3 ] p1.setStatus( "america" ); workingMemory.modifyObject( c1FactHandle, p1 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( String.class ); assertEquals( 2, cheeseList.size() ); // europe=[ 2 ], america=[ 1, 3 ] p2.setStatus( "europe" ); workingMemory.modifyObject( c2FactHandle, p2 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( String.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1, 2 ], america=[ 3 ] p1.setStatus( "europe" ); workingMemory.modifyObject( c1FactHandle, p1 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( String.class ); assertEquals( 1, cheeseList.size() ); // europe=[ 1, 2, 3 ], america=[ ] p3.setStatus( "europe" ); workingMemory.modifyObject( c3FactHandle, p3 ); workingMemory.fireAllRules(); cheeseList = workingMemory.getObjects( String.class ); assertEquals( 2, cheeseList.size() ); } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/b70584f1fa7084e62db162987bd7e5685afdc594/IntegrationCases.java/clean/drools-compiler/src/test/java/org/drools/integrationtests/IntegrationCases.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
17955,
8213,
1115,
1190,
4002,
1435,
1216,
1185,
288,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
1265,
40,
1321,
12,
394,
15322,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17955,
8213,
1115,
1190,
4002,
1435,
1216,
1185,
288,
3639,
727,
7508,
1263,
2089,
273,
394,
7508,
1263,
5621,
3639,
2089,
18,
1289,
2261,
1265,
40,
1321,
12,
394,
15322,
... | ||
Ajde.getDefault().getEditorManager().saveContents(); | BrowserManager.getDefault().getEditorManager().saveContents(); | void jMenuItem1_actionPerformed(ActionEvent e) { Ajde.getDefault().getEditorManager().saveContents(); } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/bbd832b4800bc0d7c54d65b2d9d690316e97c6a6/TopFrame.java/clean/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
525,
12958,
21,
67,
1128,
13889,
12,
1803,
1133,
425,
13,
288,
3639,
15408,
1318,
18,
588,
1868,
7675,
588,
6946,
1318,
7675,
5688,
6323,
5621,
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,
918,
525,
12958,
21,
67,
1128,
13889,
12,
1803,
1133,
425,
13,
288,
3639,
15408,
1318,
18,
588,
1868,
7675,
588,
6946,
1318,
7675,
5688,
6323,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
... |
setDetailPaneConversionPattern(layoutEditorPane.getConversionPattern()); | public void actionPerformed(ActionEvent e) { setDetailPaneConversionPattern(layoutEditorPane.getConversionPattern()); layoutEditorDialog.setVisible(false); } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/5e174411f47eae139a3b4c2198c45ad6f0ba2cbc/LogPanel.java/buggy/src/java/org/apache/log4j/chainsaw/LogPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
4766,
4202,
3511,
6946,
6353,
18,
542,
6207,
12,
5743,
1769,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
4766,
4202,
3511,
6946,
6353,
18,
542,
6207,
12,
5743,
1769,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
colors.put(IZestColorConstants.WHITE, new RGB(255,255,255)); | private void populateColors(ColorRegistry colors) { colors.put(IZestColorConstants.LIGHT_BLUE, new RGB(216, 228, 248)); colors.put(IZestColorConstants.DARK_BLUE, new RGB(1, 70, 122)); colors.put(IZestColorConstants.GREY_BLUE, new RGB(139, 150, 171)); colors.put(IZestColorConstants.LIGHT_BLUE_CYAN, new RGB(213, 243, 255)); colors.put(IZestColorConstants.LIGHT_YELLOW, new RGB(255, 255, 206)); colors.put(IZestColorConstants.GRAY, new RGB(128, 128, 128)); colors.put(IZestColorConstants.BLACK, new RGB(0,0,0)); colors.put(IZestColorConstants.RED, new RGB(255,0,0)); colors.put(IZestColorConstants.ORANGE, new RGB(255, 196, 0)); colors.put(IZestColorConstants.YELLOW, new RGB(255,255,0)); colors.put(IZestColorConstants.GREEN, new RGB(0,255,0)); colors.put(IZestColorConstants.DARK_GREEN, new RGB(0,127,0)); colors.put(IZestColorConstants.LIGHT_GREEN, new RGB(96,255,96)); colors.put(IZestColorConstants.CYAN, new RGB(0,255,255)); colors.put(IZestColorConstants.BLUE, new RGB(0,0,255)); colors.put(IZestColorConstants.DARK_BLUE, new RGB(0,0,127)); colors.put(IZestColorConstants.EDGE_WEIGHT_0, new RGB(192, 192, 255)); colors.put(IZestColorConstants.EDGE_WEIGHT_01, new RGB(64, 128, 225)); colors.put(IZestColorConstants.EDGE_WEIGHT_02, new RGB(32, 32, 128)); colors.put(IZestColorConstants.EDGE_WEIGHT_03, new RGB(0, 0, 128)); colors.put(IZestColorConstants.EDGE_DEFAULT, new RGB(64, 64, 128)); colors.put(IZestColorConstants.EDGE_HIGHLIGHT, new RGB(192, 32, 32)); } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/b3422dedc809d6b63966a40ecc0e0aeb7d9b7c0f/ZestPlugin.java/clean/org.eclipse.zest.core/src/org/eclipse/zest/core/ZestPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9724,
18,
458,
12,
6867,
395,
2957,
2918,
18,
16861,
16,
394,
11510,
12,
10395,
16,
10395,
16,
10395,
10019,
918,
9724,
18,
458,
12,
6867,
395,
2957,
2918,
18,
16861,
16,
394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9724,
18,
458,
12,
6867,
395,
2957,
2918,
18,
16861,
16,
394,
11510,
12,
10395,
16,
10395,
16,
10395,
10019,
918,
9724,
18,
458,
12,
6867,
395,
2957,
2918,
18,
16861,
16,
394... | |
Result result = runQuery("select {[Gender].PrevMember} ON COLUMNS from Sales"); | Result result = executeQuery("select {[Gender].PrevMember} ON COLUMNS from Sales"); | public void testAll2() { Result result = runQuery("select {[Gender].PrevMember} ON COLUMNS from Sales"); // previous to [Gender].[All] is null, so no members are returned Assert.assertTrue(result.getAxes()[0].positions.length == 0); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
22,
1435,
288,
3639,
3438,
563,
273,
14304,
2932,
4025,
288,
63,
43,
2345,
8009,
9958,
4419,
97,
6229,
5597,
19639,
628,
25996,
8863,
3639,
368,
2416,
358,
306,
43,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
22,
1435,
288,
3639,
3438,
563,
273,
14304,
2932,
4025,
288,
63,
43,
2345,
8009,
9958,
4419,
97,
6229,
5597,
19639,
628,
25996,
8863,
3639,
368,
2416,
358,
306,
43,... |
public String getEncoding() throws SQLException { | public Encoding getEncoding() throws SQLException { | public String getEncoding() throws SQLException { return encoding; } | 49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/ff21a8e5c86457e205ff7c598b930efd711cb2dc/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13400,
29505,
1435,
1216,
6483,
288,
3639,
327,
2688,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13400,
29505,
1435,
1216,
6483,
288,
3639,
327,
2688,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
String path = ome.io.nio.Helper.getPixelsPath(new Long(1000001)); | String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1000001)); | public void testPixelsThreeDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/1000001", path); } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/HelperUnitTest.java/buggy/components/omeio-nio/test/ome/io/nio/utests/HelperUnitTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
18079,
28019,
2853,
4070,
5694,
743,
1435,
565,
288,
3639,
514,
589,
273,
394,
26070,
87,
1179,
2932,
19,
51,
958,
19,
51,
958,
5127,
4898,
2934,
588,
18079,
743,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
18079,
28019,
2853,
4070,
5694,
743,
1435,
565,
288,
3639,
514,
589,
273,
394,
26070,
87,
1179,
2932,
19,
51,
958,
19,
51,
958,
5127,
4898,
2934,
588,
18079,
743,
12,
2... |
public Object clone() { try { CompactByteArray other = (CompactByteArray) super.clone(); other.values = (byte[])values.clone(); other.indices = (char[])indices.clone(); if (hashes != null) other.hashes = (int[])hashes.clone(); return other; } catch (CloneNotSupportedException e) { throw new InternalError(); } } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/e87b31606f688d97d1580bcab4c7589a7d24935d/CompactByteArray.java/clean/icu4j/src/com/ibm/icu/util/CompactByteArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
921,
14056,
1435,
95,
698,
95,
16863,
8826,
3011,
28657,
16863,
8826,
13,
9565,
18,
14056,
5621,
3011,
18,
2372,
28657,
7229,
63,
5717,
2372,
18,
14056,
5621,
3011,
18,
6836,
28657,
3001,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
921,
14056,
1435,
95,
698,
95,
16863,
8826,
3011,
28657,
16863,
8826,
13,
9565,
18,
14056,
5621,
3011,
18,
2372,
28657,
7229,
63,
5717,
2372,
18,
14056,
5621,
3011,
18,
6836,
28657,
3001,
... | ||
XMLMessages.MSG_DTD_SCHEMA_ERROR, XMLMessages.MSG_DTD_SCHEMA_ERROR, | XMLMessages.MSG_DTD_SCHEMA_ERROR, XMLMessages.MSG_DTD_SCHEMA_ERROR, | private void resolveSchemaGrammar( String loc, String uri) throws Exception { Grammar grammar = null; if (uri!=null) { if (fGrammarIsDTDGrammar && uri.length()==0) { fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_DTD_SCHEMA_ERROR, XMLMessages.MSG_DTD_SCHEMA_ERROR, null, fErrorReporter.ERRORTYPE_WARNING); } else { grammar = fGrammarResolver.getGrammar(uri); } } if (grammar == null) { if (fSchemaGrammarParser == null) { // // creating a parser for schema only once per parser instance // leads to less objects, but increases time we spend in reset() // fSchemaGrammarParser = new DOMParser(); fSchemaGrammarParser.setEntityResolver( new Resolver(fEntityHandler) ); fSchemaGrammarParser.setErrorHandler( new ErrorHandler() ); try { fSchemaGrammarParser.setFeature("http://xml.org/sax/features/validation", false); fSchemaGrammarParser.setFeature("http://xml.org/sax/features/namespaces", true); fSchemaGrammarParser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); } catch ( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); } catch ( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } } // expand it before passing it to the parser InputSource source = null; EntityResolver currentER = fSchemaGrammarParser.getEntityResolver(); if (currentER != null) { source = currentER.resolveEntity("", loc); } if (source == null) { loc = fEntityHandler.expandSystemId(loc); source = new InputSource(loc); } try { fSchemaGrammarParser.parse( source ); } catch ( IOException e ) { e.printStackTrace(); } catch ( SAXException e ) { reportRecoverableXMLError( XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, e.getMessage() ); } Document document = fSchemaGrammarParser.getDocument(); //Our Grammar TraverseSchema tst = null; if (DEBUG_SCHEMA_VALIDATION) { System.out.println("I am geting the Schema Document"); } Element root = null; if (document != null) { root = document.getDocumentElement();// This is what we pass to TraverserSchema } if (root == null) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Can't get back Schema document's root element :" + loc); } else { if (uri!=null && !uri.equals(root.getAttribute(SchemaSymbols.ATT_TARGETNAMESPACE)) ) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Schema in " + loc + " has a different target namespace " + "from the one specified in the instance document :" + uri); } grammar = new SchemaGrammar(); grammar.setGrammarDocument(document); // Since we've just constructed a schema grammar, we should make sure we know what we've done. fGrammarIsSchemaGrammar = true; fGrammarIsDTDGrammar = false; //At this point we should expand the registry table. // pass parser's entity resolver (local Resolver), which also has reference to user's // entity resolver, and also can fall-back to entityhandler's expandSystemId() GeneralAttrCheck generalAttrCheck = new GeneralAttrCheck(fErrorReporter, fDataTypeReg); tst = new TraverseSchema( root, fStringPool, (SchemaGrammar)grammar, fGrammarResolver, fErrorReporter, source.getSystemId(), currentER, getSchemaFullCheckingEnabled(), generalAttrCheck, fExternalSchemas, fExternalNoNamespaceSchema); generalAttrCheck.checkNonSchemaAttributes(fGrammarResolver); //allowing xsi:schemaLocation to appear on any element String targetNS = root.getAttribute("targetNamespace"); fGrammarNameSpaceIndex = fStringPool.addSymbol(targetNS); fGrammarResolver.putGrammar(targetNS, grammar); fGrammar = (SchemaGrammar)grammar; // when in full checking, we need to do UPA stuff here // by constructing all content models if (fSchemaValidationFullChecking) { try { // get all grammar URIs Enumeration grammarURIs = fGrammarResolver.nameSpaceKeys(); String grammarURI; Grammar gGrammar; SchemaGrammar sGrammar; // for each grammar while (grammarURIs.hasMoreElements()) { grammarURI = (String)grammarURIs.nextElement(); // if we checked UPA on this grammar, just skip if (UPACheckedGrammarURIs.get(grammarURI) != null) continue; // otherwise, mark this one as checked UPACheckedGrammarURIs.put(grammarURI, fgNullObject); gGrammar = fGrammarResolver.getGrammar(grammarURI); if (!(gGrammar instanceof SchemaGrammar)) continue; sGrammar = (SchemaGrammar)gGrammar; // get all registered complex type in this grammar Hashtable complexTypeRegistry = sGrammar.getComplexTypeRegistry(); int count = complexTypeRegistry.size(); Enumeration enum = complexTypeRegistry.elements(); TraverseSchema.ComplexTypeInfo typeInfo; if (fSGComparator == null) { fSGComparator = new SubstitutionGroupComparator(fGrammarResolver, fStringPool, fErrorReporter); } while (enum.hasMoreElements ()) { typeInfo = (TraverseSchema.ComplexTypeInfo)enum.nextElement(); // for each type, we construct a corresponding content model sGrammar.getContentModel(typeInfo.contentSpecHandle, typeInfo.contentType, fSGComparator); } } } catch (CMException excToCatch) { // REVISIT - Translate caught error to the protected error handler interface int majorCode = excToCatch.getErrorCode(); fErrorReporter.reportError(fErrorReporter.getLocator(), ImplementationMessages.XERCES_IMPLEMENTATION_DOMAIN, majorCode, 0, null, XMLErrorReporter.ERRORTYPE_FATAL_ERROR); } } } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/ff64554837f5e3ab7a1f47a74acbb0a6aebea8eb/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
2245,
3078,
18576,
12,
514,
1515,
16,
514,
2003,
13,
1216,
1185,
288,
4202,
27809,
6473,
273,
446,
31,
4202,
309,
261,
1650,
5,
33,
2011,
13,
288,
6647,
309,
261,
74,
18576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
918,
2245,
3078,
18576,
12,
514,
1515,
16,
514,
2003,
13,
1216,
1185,
288,
4202,
27809,
6473,
273,
446,
31,
4202,
309,
261,
1650,
5,
33,
2011,
13,
288,
6647,
309,
261,
74,
18576,
... |
StringBuffer source); | String source); | void handleCompilationDone(Context cx, DebuggableScript fnOrScript, StringBuffer source); | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/1d93746ffcb379888ae92131c2c940c4a7fb10e8/Debugger.java/clean/js/rhino/src/org/mozilla/javascript/debug/Debugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
1171,
9079,
6674,
1084,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
1171,
9079,
6674,
1084,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
new ViewTabDropTarget(resNav), new ViewTabDropTarget(probView) }; | new ViewTabDropTarget(resNav), new ViewTabDropTarget(probView), new DetachedDropTarget()}; | public DragTestSuite() { String resNav = IPageLayout.ID_RES_NAV; String probView = IPageLayout.ID_PROBLEM_VIEW; // Drag sources for views TestDragSource[] viewDragSources = new TestDragSource[] { new ViewDragSource(resNav, false), new ViewDragSource(resNav, true), new ViewDragSource(probView, false), new ViewDragSource(probView, true) }; // Drag sources for editors TestDragSource[] editorDragSources = new TestDragSource[] { new EditorDragSource(0, false), new EditorDragSource(0, true), new EditorDragSource(2, false), new EditorDragSource(2, true) }; // Drop targets that will only be tested for views AbstractTestDropTarget[] viewDropTargets = new AbstractTestDropTarget[] { // Editor area new EditorAreaDropTarget(SWT.LEFT), new EditorAreaDropTarget(SWT.RIGHT), new EditorAreaDropTarget(SWT.TOP), new EditorAreaDropTarget(SWT.BOTTOM), // Resource navigator (a view that isn't in a stack) new ViewDropTarget(resNav, SWT.LEFT), new ViewDropTarget(resNav, SWT.RIGHT), new ViewDropTarget(resNav, SWT.BOTTOM), new ViewDropTarget(resNav, SWT.CENTER), new ViewDropTarget(resNav, SWT.TOP), // Problems view (a view that is in a stack) // Omit the top from this test, since the meaning of dropping on the top border of // a stack may change in the near future new ViewDropTarget(probView, SWT.LEFT), new ViewDropTarget(probView, SWT.RIGHT), new ViewDropTarget(probView, SWT.BOTTOM), new ViewDropTarget(probView, SWT.CENTER), // Fast view bar new FastViewBarDropTarget(), // View tabs new ViewTabDropTarget(resNav), new ViewTabDropTarget(probView) }; // Drop targets that will only be tested for editors AbstractTestDropTarget[] editorDropTargets = new AbstractTestDropTarget[] { // A view new ViewDropTarget(resNav, SWT.CENTER), // A stand-alone editor new EditorDropTarget(2, SWT.LEFT), new EditorDropTarget(2, SWT.RIGHT), new EditorDropTarget(2, SWT.TOP), new EditorDropTarget(2, SWT.BOTTOM), new EditorDropTarget(2, SWT.CENTER), // Editors (a stack of editors) new EditorDropTarget(0, SWT.LEFT), new EditorDropTarget(0, SWT.RIGHT), new EditorDropTarget(0, SWT.BOTTOM), new EditorDropTarget(0, SWT.CENTER) }; // Drop targets that will be tested for both views and editors AbstractTestDropTarget[] commonDropTargets = new AbstractTestDropTarget[] { // Test dragging to the edges of the workbench window new WindowDropTarget(SWT.TOP), new WindowDropTarget(SWT.BOTTOM), new WindowDropTarget(SWT.LEFT), new WindowDropTarget(SWT.RIGHT) }; // Drag sources for maximized views TestDragSource[] maximizedViewDragSources = new TestDragSource[] { new ViewDragSource(resNav, false, true), new ViewDragSource(resNav, true, true), new ViewDragSource(probView, false, true), new ViewDragSource(probView, true, true) }; // Drop targets that will only be tested for maximized views (we only need to ensure // that the view will become un-maximized -- the regular view test cases will excercise // the remainder of the view dragging code). We need to drag each kind of maximized view // to something that couldn't be seen while the view is maximized -- like the editor area). AbstractTestDropTarget[] maximizedViewDropTargets = new AbstractTestDropTarget[] { new EditorAreaDropTarget( SWT.RIGHT) }; Map expectedResults = loadExpectedResults(); // Now generate all test cases addAllCombinations(maximizedViewDragSources, maximizedViewDropTargets, expectedResults); addAllCombinations(viewDragSources, viewDropTargets, expectedResults); addAllCombinations(viewDragSources, commonDropTargets, expectedResults); addAllCombinations(editorDragSources, editorDropTargets, expectedResults); addAllCombinations(editorDragSources, commonDropTargets, expectedResults); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4f6b37eb59d91313a065cbb79e60aa2e2c259b8f/DragTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTestSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28425,
4709,
13587,
1435,
288,
3639,
514,
400,
12599,
273,
467,
1964,
3744,
18,
734,
67,
7031,
67,
50,
5856,
31,
3639,
514,
3137,
1767,
273,
467,
1964,
3744,
18,
734,
67,
3373,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28425,
4709,
13587,
1435,
288,
3639,
514,
400,
12599,
273,
467,
1964,
3744,
18,
734,
67,
7031,
67,
50,
5856,
31,
3639,
514,
3137,
1767,
273,
467,
1964,
3744,
18,
734,
67,
3373,
38... |
case TypePackage.SCATTER_SERIES__CURVE : return isSetCurve( ); case TypePackage.SCATTER_SERIES__SHADOW_COLOR : | case TypePackage.SCATTER_SERIES__CURVE: return isSetCurve(); case TypePackage.SCATTER_SERIES__SHADOW_COLOR: | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.SCATTER_SERIES__VISIBLE : return isSetVisible( ); case TypePackage.SCATTER_SERIES__LABEL : return label != null; case TypePackage.SCATTER_SERIES__DATA_DEFINITION : return dataDefinition != null && !dataDefinition.isEmpty( ); case TypePackage.SCATTER_SERIES__SERIES_IDENTIFIER : return SERIES_IDENTIFIER_EDEFAULT == null ? seriesIdentifier != null : !SERIES_IDENTIFIER_EDEFAULT.equals( seriesIdentifier ); case TypePackage.SCATTER_SERIES__DATA_POINT : return dataPoint != null; case TypePackage.SCATTER_SERIES__DATA_SET : return dataSet != null; case TypePackage.SCATTER_SERIES__LABEL_POSITION : return isSetLabelPosition( ); case TypePackage.SCATTER_SERIES__STACKED : return isSetStacked( ); case TypePackage.SCATTER_SERIES__TRIGGERS : return triggers != null && !triggers.isEmpty( ); case TypePackage.SCATTER_SERIES__TRANSLUCENT : return isSetTranslucent( ); case TypePackage.SCATTER_SERIES__MARKER : return marker != null; case TypePackage.SCATTER_SERIES__LINE_ATTRIBUTES : return lineAttributes != null; case TypePackage.SCATTER_SERIES__CURVE : return isSetCurve( ); case TypePackage.SCATTER_SERIES__SHADOW_COLOR : return shadowColor != null; } return eDynamicIsSet( eFeature ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdab78403751f288b76844a99f50b999c34fb491/ScatterSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/ScatterSeriesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
22... |
cfile.create(new FileInputStream(pluginRoot+"resources/exe/main.c"),false, monitor); | cfile.create(new FileInputStream( CTestPlugin.getDefault().getFileInPlugin(new Path("resources/exe/main.c"))), false, monitor); | protected void setUp() throws Exception { String pluginRoot; /*** * The tests assume that they have a working workspace * and workspace root object to use to create projects/files in, * so we need to get them setup first. */ workspace= ResourcesPlugin.getWorkspace(); root= workspace.getRoot(); monitor = new NullProgressMonitor(); if (workspace==null) fail("Workspace was not setup"); if (root==null) fail("Workspace root was not setup"); /*** * Setup the various files, paths and projects that are needed by the * tests */ testProject=CProjectHelper.createCProject("filetest", "none"); // since our test require that we can read the debug info from the exe whne must set the GNU elf // binary parser since the default (generic elf binary parser) does not do this. ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(testProject.getProject()); desc.remove(CCorePlugin.BINARY_PARSER_UNIQ_ID); desc.create(CCorePlugin.BINARY_PARSER_UNIQ_ID, "org.eclipse.cdt.core.GNU_ELF"); // Reset the binary parser the paths may have change. CCorePlugin.getDefault().getCoreModel().resetBinaryParser(testProject.getProject()); if (testProject==null) fail("Unable to create project"); pluginRoot = Platform.asLocalURL(Platform.getPlugin("org.eclipse.cdt.core.tests").getDescriptor().getInstallURL()).getFile(); cfile = testProject.getProject().getFile("exetest.c"); if (!cfile.exists()) { cfile.create(new FileInputStream(pluginRoot+"resources/exe/main.c"),false, monitor); } cpath=new Path(workspace.getRoot().getLocation()+"/filetest/main.c"); objfile = testProject.getProject().getFile("exetest.o"); if (!objfile.exists()) { objfile.create(new FileInputStream(pluginRoot+"resources/exe/x86/o.g/main.o"),false, monitor); } objpath=new Path(workspace.getRoot().getLocation()+"/filetest/exetest.o"); exefile = testProject.getProject().getFile("test_g"); if (!exefile.exists()) { exefile.create(new FileInputStream(pluginRoot+"resources/exe/x86/o.g/exe_g"),false, monitor); } exepath=new Path(workspace.getRoot().getLocation()+"/filetest/exe_g"); ppcexefile = testProject.getProject().getFile("ppctest_g"); if (!ppcexefile.exists()) { ppcexefile.create(new FileInputStream(pluginRoot+"resources/exe/ppc/be.g/exe_g"),false, monitor); } ndexe = testProject.getProject().getFile("exetest"); if (!ndexe.exists()) { ndexe.create(new FileInputStream(pluginRoot+"resources/exe/x86/o/exe"),false, monitor); } bigexe = testProject.getProject().getFile("exebig_g"); if (!bigexe.exists()) { bigexe.create(new FileInputStream(pluginRoot+"resources/exebig/x86/o.g/exebig_g"),false, monitor); } archfile = testProject.getProject().getFile("libtestlib_g.a"); if (!archfile.exists()) { archfile.create(new FileInputStream(pluginRoot+"resources/testlib/x86/a.g/libtestlib_g.a"),false, monitor); } libpath=new Path(workspace.getRoot().getLocation()+"/filetest/libtestlib_g.so"); libfile = testProject.getProject().getFile("libtestlib_g.so"); if (!libfile.exists()) { libfile.create(new FileInputStream(pluginRoot+"resources/testlib/x86/so.g/libtestlib_g.so"),false, monitor); } archpath=new Path(workspace.getRoot().getLocation()+"/filetest/libtestlib_g.a"); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7e32d05829ae25bb1d9048b6df48d0d47354d980/BinaryTests.java/clean/core/org.eclipse.cdt.core.tests/model/org/eclipse/cdt/core/model/tests/BinaryTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
225,
1216,
1185,
225,
288,
3639,
514,
1909,
2375,
31,
3639,
1783,
14,
540,
380,
1021,
7434,
6750,
716,
2898,
1240,
279,
5960,
6003,
540,
380,
471,
6003,
1365,
733,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
225,
1216,
1185,
225,
288,
3639,
514,
1909,
2375,
31,
3639,
1783,
14,
540,
380,
1021,
7434,
6750,
716,
2898,
1240,
279,
5960,
6003,
540,
380,
471,
6003,
1365,
733,... |
break _loop811; | break _loop796; | public final void formstate(AST _t) throws RecognitionException { AST formstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST __t798 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { _loop800: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop800; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HEADER: { AST __t802 = _t; AST tmp1282_AST_in = (AST)_t; match(_t,HEADER); _t = _t.getFirstChild(); { int _cnt804=0; _loop804: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt804>=1 ) { break _loop804; } else {throw new NoViableAltException(_t);} } _cnt804++; } while (true); } _t = __t802; _t = _t.getNextSibling(); break; } case BACKGROUND: { AST __t805 = _t; AST tmp1283_AST_in = (AST)_t; match(_t,BACKGROUND); _t = _t.getFirstChild(); { int _cnt807=0; _loop807: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { if ( _cnt807>=1 ) { break _loop807; } else {throw new NoViableAltException(_t);} } _cnt807++; } while (true); } _t = __t805; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t809 = _t; AST tmp1284_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop811: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop811; } } while (true); } _t = __t809; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t798; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
646,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
646,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
646,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
646,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
if (atIndex > 0) { return JID.substring(0, atIndex); | if (atIndex < 0) { return JID.substring(0); | public static String parseName(String JID) { if (JID == null) { return null; } int atIndex = JID.indexOf("@"); if (atIndex > 0) { return JID.substring(0, atIndex); } else { return JID.substring(0); } } | 7665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7665/7eed441c7b16765c7352c13002ad9ded1af27362/StringUtils.java/clean/source/org/jivesoftware/smack/util/StringUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1109,
461,
12,
780,
804,
734,
13,
288,
3639,
309,
261,
46,
734,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
509,
622,
1016,
273,
804,
734,
18,
31806,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1109,
461,
12,
780,
804,
734,
13,
288,
3639,
309,
261,
46,
734,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
509,
622,
1016,
273,
804,
734,
18,
31806,
2932,... |
addButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exceptionsList.add(""); | addButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ synchronized(lock){ exceptionsList.add(""); } | public Form() { super(); table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); table.setRowSelectionAllowed(true); table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); table.setEnabled(true); final ReturnCheckSpecificationTableModel model = new ReturnCheckSpecificationTableModel(); table.setModel(model); addButton.setEnabled(true); addButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exceptionsList.add(""); model.fireTableStructureChanged(); } }); deleteButton.setEnabled(true); deleteButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { final int[] selectedRows = table.getSelectedRows(); Arrays.sort(selectedRows); for (int i = selectedRows.length - 1; i >= 0; i--) { exceptionsList.remove(selectedRows[i]); } model.fireTableStructureChanged(); } }); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/10b2499ccbed55bc1c41db3f30d360c7ad4dd94c/BadExceptionThrownInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/BadExceptionThrownInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
2748,
1435,
288,
5411,
2240,
5621,
5411,
1014,
18,
542,
4965,
12182,
2309,
12,
46,
1388,
18,
18909,
67,
862,
4574,
67,
4685,
67,
25936,
1769,
5411,
1014,
18,
542,
1999,
6233,
5042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2748,
1435,
288,
5411,
2240,
5621,
5411,
1014,
18,
542,
4965,
12182,
2309,
12,
46,
1388,
18,
18909,
67,
862,
4574,
67,
4685,
67,
25936,
1769,
5411,
1014,
18,
542,
1999,
6233,
5042,
... |
options[10] = "client.durable=" + durable; options[11] = "client.asyncRecv=" + asyncRecv; options[12] = "client.recvCount=" + recvCount; options[13] = "client.recvDuration=" + duration; options[14] = "client.recvType=" + recvType; | options[10] = "consumer.durable=" + durable; options[11] = "consumer.asyncRecv=" + asyncRecv; options[12] = "consumer.recvCount=" + recvCount; options[13] = "consumer.recvDuration=" + duration; options[14] = "consumer.recvType=" + recvType; | public String[] createArgument() { String[] options = new String[25]; options[0] = "sampler.duration=" + duration; // 1 min options[1] = "sampler.interval=" + interval; // 5 secs options[2] = "sampler.rampUpTime=" + rampUpTime; // 10 secs options[3] = "sampler.rampDownTime=" + rampDownTime; // 10 secs options[4] = "client.spiClass=" + spiClass; options[5] = "client.sessTransacted=" + sessTransacted; options[6] = "client.sessAckMode=" + sessAckMode; options[7] = "client.destName=" + destName; options[8] = "client.destCount=" + destCount; options[9] = "client.destComposite=" + destComposite; options[10] = "client.durable=" + durable; options[11] = "client.asyncRecv=" + asyncRecv; options[12] = "client.recvCount=" + recvCount; // 1000 messages options[13] = "client.recvDuration=" + duration; // use sampler.duration. options[14] = "client.recvType=" + recvType; options[15] = "factory.brokerUrl=" + brokerUrl; options[16] = "factory.optimAck=" + optimAck; options[17] = "factory.optimDispatch=" + optimDispatch; options[18] = "factory.prefetchQueue=" + prefetchQueue; options[19] = "factory.prefetchTopic=" + prefetchTopic; options[20] = "factory.useRetroactive=" + useRetroactive; options[21] = "sysTest.numClients=" + numClients; options[22] = "sysTest.totalDests=" + totalDests; options[23] = "sysTest.destDistro=" + destDistro; options[24] = "sysTest.reportDirectory=" + reportDirectory; return options; } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/51eed37625ec3fe75ebe9374b2f07d8f2084f76b/ConsumerMojo.java/buggy/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ConsumerMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
752,
1379,
1435,
288,
3639,
514,
8526,
702,
273,
394,
514,
63,
2947,
15533,
3639,
702,
63,
20,
65,
273,
315,
87,
10463,
18,
8760,
1546,
397,
3734,
31,
377,
368,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
752,
1379,
1435,
288,
3639,
514,
8526,
702,
273,
394,
514,
63,
2947,
15533,
3639,
702,
63,
20,
65,
273,
315,
87,
10463,
18,
8760,
1546,
397,
3734,
31,
377,
368,
404,
... |
{ | { | public boolean isComplete() { return _state==STATE_END; } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/193de5b32d8185ac51c98b2bd93cf2bf81927970/Ajp13Parser.java/buggy/trunk/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
6322,
1435,
565,
288,
377,
202,
2463,
389,
2019,
631,
7998,
67,
4415,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
6322,
1435,
565,
288,
377,
202,
2463,
389,
2019,
631,
7998,
67,
4415,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { } | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { } | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { // TODO } // readObject() | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JMenuItem.java/clean/libjava/javax/swing/JMenuItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
17362,
12,
921,
4348,
1407,
13,
1875,
202,
15069,
1860,
16,
10403,
288,
202,
202,
759,
2660,
202,
97,
368,
17362,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
17362,
12,
921,
4348,
1407,
13,
1875,
202,
15069,
1860,
16,
10403,
288,
202,
202,
759,
2660,
202,
97,
368,
17362,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
cd = new CmsChannelContent(cms,new CmsUUID(id)); parentName=cd.getParentName(); idvalue=cd.getChannelId(); resid=""+cd.getId(); channelname=cd.getChannelName(); title=cd.getTitle(); owner=cd.getOwner().toString(); group=cd.getGroupId().toString(); accessFlags=cd.getAccessFlags(); }else if(cd==null){ | m_channel = new CmsChannelContent(cms,new CmsUUID(id)); parentName=m_channel.getParentName(); m_channelId=m_channel.getChannelId(); m_folderId = m_channel.getId(); channelname=m_channel.getChannelName(); title=m_channel.getTitle(); owner=m_channel.getOwner().toString(); group=m_channel.getGroupId().toString(); accessFlags=m_channel.getAccessFlags(); }else if(m_channel==null){ | public byte[] getContentEdit(CmsObject cms, CmsXmlWpTemplateFile template, String elementName, Hashtable parameters, String templateSelector) throws CmsException { //get the Languagedata CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); //create appropriate class name with underscores for labels String moduleName = ""; moduleName = (String) getClass().toString(); //get name moduleName = moduleName.substring(5); //remove 'class' substring at the beginning moduleName = moduleName.trim(); moduleName = moduleName.replace('.', '_'); //replace dots with underscores //session I_CmsSession session = cms.getRequestContext().getSession(true); //default error String error=""; //get values of all fields //gets the parameter action from the hashtable. String action = (String) parameters.get("action"); if (action == null){ action=""; } else if (action.equals("exit")){ clearSession(session); templateSelector= "done"; return startProcessing(cms, template, "", parameters, templateSelector); } // Get the parameter values //get value of id String id = (String) parameters.get("id"); String channelid = (String) parameters.get("channelId"); String resourceid = (String) parameters.get("resourceid"); //get value of parentId String parentName = (String) parameters.get("parentName"); if(parentName == null || parentName.equals("")){ parentName="/"; } //channelname String channelname = (String) parameters.get("channelName"); if(channelname == null){ channelname = ""; } //plausibility check if(!action.equals("") && channelname.trim().equals("")){ error = lang.getLanguageValue(moduleName+".error.message2"); } //title of channel String title = (String) parameters.get("title"); String owner=(String) parameters.get("owner"); owner=(owner!=null?owner.trim():""); String group=(String) parameters.get("groupId"); group=(group!=null?group.trim():""); int accessFlags = this.getAccessValue(parameters); //new channel if (id == null || id.equals("")){ id = "new"; } if(channelid==null || channelid.trim().equals("")){ channelid="-1"; } if(resourceid==null || resourceid.trim().equals("")){ resourceid="-1"; } if(id.equals("new")){ if(resourceid.equals("-1")){ cd=null; }else{ id=resourceid; } } // for the first call check if the id exist, i.e. if the category is to edit // and it is not created new one then read the information of category if (action.equals("") && !id.equals("new")) { try { Integer.parseInt(id); } catch (Exception err) { throw new CmsException(err.getMessage()); } // gets the already existing ouputchannel's content definition. cd = new CmsChannelContent(cms,new CmsUUID(id)); parentName=cd.getParentName(); idvalue=cd.getChannelId(); resid=""+cd.getId(); channelname=cd.getChannelName(); title=cd.getTitle(); owner=cd.getOwner().toString(); group=cd.getGroupId().toString(); accessFlags=cd.getAccessFlags(); }else if(cd==null){ //create a new ouputchannels content definition. cd = new CmsChannelContent(cms); idvalue=C_UNKNOWN_ID+""; resid=C_UNKNOWN_ID+""; } //put parentId in session for user method session.putValue("parentName",parentName); session.putValue("id",resid+""); //set data in CD when data is correct if(error.equals("") && !action.equals("")) { cd.setChannelId(idvalue); cd.setParentName(parentName); cd.setChannelName(channelname); cd.setTitle(title); cd.setGroup(new CmsUUID(group)); cd.setOwner(new CmsUUID(owner)); cd.setAccessFlags(accessFlags); } //get values of the user for new entry String defaultGroup=cms.getRequestContext().currentGroup().getName(); String defaultUser=cms.getRequestContext().currentUser().getName(); //get all groups Vector cmsGroups=cms.getGroups(); // select box of group String groupOptions=""; for (int i=0; i<cmsGroups.size(); i++) { String groupName=((CmsGroup)cmsGroups.elementAt(i)).getName(); CmsUUID groupId=((CmsGroup)cmsGroups.elementAt(i)).getId(); template.setData("name",groupName); template.setData("value",groupId.toString()); if (!group.equals("") && (cms.readGroup(new CmsUUID(group)).getName()).equals(groupName)) { template.setData("check","selected"); }else if(idvalue.equals(C_UNKNOWN_ID+"") && groupName.equals(defaultGroup)){ template.setData("check","selected"); }else{ template.setData("check",""); } groupOptions=groupOptions+template.getProcessedDataValue("selectoption",this); } template.setData("groups",groupOptions); // select box of owner String userOptions=""; Vector cmsUsers=cms.getUsers(); for (int i=0;i<cmsUsers.size();i++) { String userName=((CmsUser)cmsUsers.elementAt(i)).getName(); CmsUUID userId=((CmsUser)cmsUsers.elementAt(i)).getId(); template.setData("name",userName); template.setData("value",userId.toString()); if (!owner.equals("") && (cms.readUser(new CmsUUID(owner)).getName()).equals(userName)) { template.setData("check","selected"); }else if(idvalue.equals(C_UNKNOWN_ID+"") && userName.equals(defaultUser)){ template.setData("check","selected"); }else{ template.setData("check",""); } userOptions=userOptions+template.getProcessedDataValue("selectoption",this); } template.setData("users",userOptions); // set the access flags this.setAccessValue(template, cd.getAccessFlags()); //set data in template template.setData("channelId", ""+cd.getChannelId()); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", cd.getChannelName()); template.setData("title", Encoder.escape(cd.getTitle(), cms.getRequestContext().getEncoding())); template.setData("parentName", cd.getParentName()); template.setData("error", error); //if the saveexit-button has been clicked. if(action.equals("saveexit") && error.equals("")){ try{ cd.setChannelId(channelid); //write/save cd.write(cms); //exit clearSession(session); templateSelector = "done"; return startProcessing(cms, template, "", parameters, templateSelector); }catch (CmsException exc){ template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+exc.getShortException(); template.setData("error", error); //log exc.printStackTrace(System.err); }catch (Exception e){ template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+e.getMessage(); template.setData("error", error); //log e.printStackTrace(System.err); } } //if the "save"-button has been clicked. if(action.equals("save") && error.equals("")){ try{ cd.setChannelId(channelid); //write cd.write(cms); idvalue=cd.getChannelId(); template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); //indicator for saved new entrys - the new id template.setData("newChannelId", idvalue); }catch (CmsException exc){ template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+exc.getShortException(); template.setData("error", error); //log exc.printStackTrace(System.err); }catch (Exception e){ e.printStackTrace(System.err); template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+e.getMessage(); template.setData("error", error); } } //finally start the processing return startProcessing(cms, template, elementName, parameters, templateSelector); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/02e8d5ae9a306d7ef68522073d5b20f3d55d68f5/CmsChannelBackoffice.java/buggy/src/com/opencms/defaults/master/CmsChannelBackoffice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
4666,
12,
4747,
921,
6166,
16,
16084,
59,
84,
2283,
812,
1542,
16,
514,
14453,
16,
11794,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
368,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
4666,
12,
4747,
921,
6166,
16,
16084,
59,
84,
2283,
812,
1542,
16,
514,
14453,
16,
11794,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
368,
588,
... |
context.create("clone", CLONE, 0); | context.create("clone", RBCLONE, 0); | protected void defineMethods(MethodContext context) { context.create("==", EQUAL, 1); context.createAlias("===", "=="); context.create("=~", MATCH, 1); context.create("class", TYPE, 0); context.create("clone", CLONE, 0); context.create("dup", DUP, 0); context.create("eql?", EQUAL, 1); context.createAlias("equal?", "=="); context.createOptional("extend", EXTEND, 1); context.create("freeze", FREEZE, 0); context.create("frozen?", FROZEN, 0); context.create("hash", HASH, 0); context.create("id", ID, 0); context.create("__id__", ID, 0); context.create("inspect", INSPECT, 0); context.createOptional("instance_eval", INSTANCE_EVAL); context.create("instance_of?", INSTANCE_OF, 1); context.create("instance_variables", INSTANCE_VARIABLES, 0); context.create("is_a?", KIND_OF, 1); context.create("kind_of?", KIND_OF, 1); context.create("method", METHOD, 1); context.create("methods", METHODS, 0); context.createOptional("method_missing", METHOD_MISSING); context.create("nil?", NIL, 0); context.create("private_methods", PRIVATE_METHODS, 0); context.create("protected_methods", PROTECTED_METHODS, 0); context.create("public_methods", METHODS, 0); context.createOptional("respond_to?", RESPOND_TO, 1); context.createOptional("send", SEND, 1); context.createOptional("__send__", SEND, 1); context.create("singleton_methods", SINGLETON_METHODS, 0); context.create("taint", TAINT, 0); context.create("tainted?", TAINTED, 0); context.create("to_a", TO_A, 0); context.create("to_s", TO_S, 0); context.create("type", TYPE, 0); context.create("untaint", UNTAINT, 0); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/dcea3e9f2f6ecba04f862dbfb01b220d7890a706/ObjectDefinition.java/buggy/src/org/jruby/internal/runtime/builtin/definitions/ObjectDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4426,
4712,
12,
1305,
1042,
819,
13,
288,
3639,
819,
18,
2640,
2932,
631,
3113,
18231,
16,
404,
1769,
3639,
819,
18,
2640,
2936,
2932,
631,
1546,
16,
315,
631,
8863,
3639,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4426,
4712,
12,
1305,
1042,
819,
13,
288,
3639,
819,
18,
2640,
2932,
631,
3113,
18231,
16,
404,
1769,
3639,
819,
18,
2640,
2936,
2932,
631,
1546,
16,
315,
631,
8863,
3639,
81... |
int typeAttrIndex = fDeferredDocumentImpl.createAttribute(fStringPool.addSymbol("type"), fStringPool.addString(attributeTypeName), true); fDeferredDocumentImpl.setAttributeNode(attributeIndex, typeAttrIndex); | int typeNameIndex = -1; switch (attType) { case XMLAttributeDecl.TYPE_ENTITY: { typeNameIndex = fStringPool.addString(attList?"ENTITIES":"ENTITY"); break; } case XMLAttributeDecl.TYPE_ID: { typeNameIndex = fStringPool.addString("ID"); break; } case XMLAttributeDecl.TYPE_IDREF: { typeNameIndex = fStringPool.addString(attList?"IDREFS":"IDREF"); break; } case XMLAttributeDecl.TYPE_NMTOKEN: { typeNameIndex = fStringPool.addString(attList?"NMTOKENS":"NMTOKEN"); break; } case XMLAttributeDecl.TYPE_NOTATION: { typeNameIndex = fStringPool.addString("NOTATION"); break; } case XMLAttributeDecl.TYPE_CDATA: default: { typeNameIndex = fStringPool.addString("string"); break; } } int attrIndex = fDeferredDocumentImpl.createAttribute(fStringPool.addSymbol("type"), typeNameIndex, true); fDeferredDocumentImpl.setAttributeNode(attributeIndex, attrIndex); | public void attlistDecl(QName elementDecl, QName attributeDecl, int attType, String enumString, int attDefaultType, int attDefaultValue) throws Exception { if (DEBUG_ATTLIST_DECL) { System.out.println("attlistDecl(" + fStringPool.toString(elementDecl.rawname) + ", " + fStringPool.toString(attributeDecl.rawname) + ", " + fStringPool.toString(attType) + ", " + enumString + ", " + fStringPool.toString(attDefaultType) + ", " + fStringPool.toString(attDefaultValue) + ")"); } // deferred expansion if (fDeferredDocumentImpl != null) { // get the default value if (attDefaultValue != -1) { if (DEBUG_ATTLIST_DECL) { System.out.println(" adding default attribute value: "+ fStringPool.toString(attDefaultValue)); } // get element definition int elementDefIndex = fDeferredDocumentImpl.lookupElementDefinition(elementDecl.rawname); // create element definition if not already there if (elementDefIndex == -1) { elementDefIndex = fDeferredDocumentImpl.createElementDefinition(elementDecl.rawname); fDeferredDocumentImpl.appendChild(fDocumentTypeIndex, elementDefIndex); } // add default attribute int attrIndex = fDeferredDocumentImpl.createAttribute(attributeDecl.rawname, attributeDecl.uri, attDefaultValue, false); fDeferredDocumentImpl.appendChild(elementDefIndex, attrIndex); } // // Create attribute declaration // /*REVISIT- Grammar Access if (fGrammarAccess) { // get element declaration; create it if necessary int schemaIndex = getLastChildElement(fDocumentTypeIndex, "schema"); String elementName = fStringPool.toString(elementDecl.rawname); int elementIndex = getLastChildElement(schemaIndex, "element", "name", elementName); if (elementIndex == -1) { int handle = fAttrList.startAttrList(); fAttrList.addAttr( fStringPool.addSymbol("name"), fStringPool.addString(elementName), fStringPool.addSymbol("NMTOKEN"), true, false); //search fAttrList.addAttr( fStringPool.addSymbol("export"), fStringPool.addString("true"), fStringPool.addSymbol("ENUMERATION"), false, false); // search fAttrList.endAttrList(); elementIndex = fDeferredDocumentImpl.createElement(fStringPool.addSymbol("element"), fAttrList, handle); fDeferredDocumentImpl.appendChild(schemaIndex, elementIndex); } // get type element; create it if necessary int typeIndex = getLastChildElement(elementIndex, "type"); if (typeIndex == -1) { typeIndex = fDeferredDocumentImpl.createElement(fStringPool.addSymbol("type"), null, -1); fDeferredDocumentImpl.insertBefore(elementIndex, typeIndex, getLastChildElement(elementIndex)); } // create attribute and set its attributes String attributeName = fStringPool.toString(attributeDecl.rawname); int attributeIndex = getLastChildElement(elementIndex, "attribute", "name", attributeName); if (attributeIndex == -1) { int handle = fAttrList.startAttrList(); fAttrList.addAttr( fStringPool.addSymbol("name"), fStringPool.addString(attributeName), fStringPool.addSymbol("NMTOKEN"), true, false); // search /*** fAttrList.addAttr( fStringPool.addSymbol("type"), fStringPool.addString("string"), fStringPool.addSymbol("CDATA"), true, false); // search /***/ /* fAttrList.addAttr( fStringPool.addSymbol("minOccurs"), fStringPool.addString("0"), fStringPool.addSymbol("CDATA"), false, false); // search fAttrList.addAttr( fStringPool.addSymbol("maxOccurs"), fStringPool.addString("1"), fStringPool.addSymbol("CDATA"), false, false); // search fAttrList.endAttrList(); attributeIndex = fDeferredDocumentImpl.createElement(fStringPool.addSymbol("attribute"), fAttrList, handle); fDeferredDocumentImpl.appendChild(typeIndex, attributeIndex); // attribute type: CDATA, ENTITY, ... , NMTOKENS; ENUMERATION String attributeTypeName = fStringPool.toString(attType); if (attributeTypeName.equals("CDATA")) { int typeAttrIndex = fDeferredDocumentImpl.createAttribute(fStringPool.addSymbol("type"), fStringPool.addString("string"), false); fDeferredDocumentImpl.setAttributeNode(attributeIndex, typeAttrIndex); } else if (attributeTypeName.equals("ENUMERATION")) { handle = fAttrList.startAttrList(); fAttrList.addAttr( fStringPool.addSymbol("source"), fStringPool.addString("NMTOKEN"), fStringPool.addSymbol("CDATA"), true, false); // search fAttrList.endAttrList(); int datatypeIndex = fDeferredDocumentImpl.createElement(fStringPool.addSymbol("datatype"), fAttrList, handle); fDeferredDocumentImpl.appendChild(attributeIndex, datatypeIndex); String tokenizerString = enumString.substring(1, enumString.length() - 1); StringTokenizer tokenizer = new StringTokenizer(tokenizerString, "|"); while (tokenizer.hasMoreTokens()) { handle = fAttrList.startAttrList(); fAttrList.addAttr( fStringPool.addSymbol("value"), fStringPool.addString(tokenizer.nextToken()), fStringPool.addSymbol("CDATA"), true, false); // search fAttrList.endAttrList(); int enumerationIndex = fDeferredDocumentImpl.createElement(fStringPool.addSymbol("enumeration"), fAttrList, handle); fDeferredDocumentImpl.appendChild(datatypeIndex, enumerationIndex); } } else { // REVISIT: Could we ever get an unknown data type? -Ac int typeAttrIndex = fDeferredDocumentImpl.createAttribute(fStringPool.addSymbol("type"), fStringPool.addString(attributeTypeName), true); fDeferredDocumentImpl.setAttributeNode(attributeIndex, typeAttrIndex); } // attribute default type: #IMPLIED, #REQUIRED, #FIXED boolean fixed = false; if (attDefaultType != -1) { String attributeDefaultTypeName = fStringPool.toString(attDefaultType); if (attributeDefaultTypeName.equals("#REQUIRED")) { int minOccursAttrIndex = fDeferredDocumentImpl.createAttribute(fStringPool.addSymbol("minOccurs"), fStringPool.addString("1"), true); int oldMinOccursAttrIndex = fDeferredDocumentImpl.setAttributeNode(attributeIndex, minOccursAttrIndex); fStringPool.releaseString(fDeferredDocumentImpl.getNodeValue(oldMinOccursAttrIndex, false)); } else if (attributeDefaultTypeName.equals("#FIXED")) { fixed = true; int fixedAttrIndex = fDeferredDocumentImpl.createAttribute(fStringPool.addSymbol("fixed"), attDefaultValue, true); fDeferredDocumentImpl.setAttributeNode(attributeIndex, fixedAttrIndex); } } // attribute default value if (!fixed && attDefaultValue != -1) { int defaultAttrIndex = fDeferredDocumentImpl.createAttribute(fStringPool.addSymbol("default"), attDefaultValue, true); fDeferredDocumentImpl.setAttributeNode(attributeIndex, defaultAttrIndex); } } } */ } // full expansion else if (fDocumentImpl != null) { // get the default value if (attDefaultValue != -1) { if (DEBUG_ATTLIST_DECL) { System.out.println(" adding default attribute value: "+ fStringPool.toString(attDefaultValue)); } // get element name String elementName = fStringPool.toString(elementDecl.rawname); // get element definition node NamedNodeMap elements = ((DocumentTypeImpl)fDocumentType).getElements(); ElementDefinitionImpl elementDef = (ElementDefinitionImpl)elements.getNamedItem(elementName); if (elementDef == null) { elementDef = fDocumentImpl.createElementDefinition(elementName); ((DocumentTypeImpl)fDocumentType).getElements().setNamedItem(elementDef); } // REVISIT: Check for uniqueness of element name? -Ac // REVISIT: what about default attributes with URI? -ALH // get attribute name and value index String attrName = fStringPool.toString(attributeDecl.rawname); String attrValue = fStringPool.toString(attDefaultValue); // create attribute and set properties AttrImpl attr = (AttrImpl)fDocumentImpl.createAttribute(attrName); attr.setValue(attrValue); attr.setSpecified(false); // add default attribute to element definition elementDef.getAttributes().setNamedItem(attr); } // // Create attribute declaration // /*REVISIT Grammar Access if (fGrammarAccess) { // get element declaration; create it if necessary Element schema = XUtil.getFirstChildElement(fDocumentType, "schema"); String elementName = fStringPool.toString(elementDecl.rawname); Element element = XUtil.getFirstChildElement(schema, "element", "name", elementName); if (element == null) { element = fDocument.createElement("element"); element.setAttribute("name", elementName); //element.setAttribute("export", "true"); //((AttrImpl)element.getAttributeNode("export")).setSpecified(false); schema.appendChild(element); } // get type element; create it if necessary Element type = XUtil.getFirstChildElement(element, "type"); if (type == null) { type = fDocument.createElement("type"); // REVISIT: Check for archetype redeclaration? -Ac element.insertBefore(type, XUtil.getFirstChildElement(element)); } // create attribute and set its attributes String attributeName = fStringPool.toString(attributeDecl.rawname); Element attribute = XUtil.getFirstChildElement(element, "attribute", "name", attributeName); if (attribute == null) { attribute = fDocument.createElement("attribute"); attribute.setAttribute("name", attributeName); attribute.setAttribute("minOccurs", "0"); ((AttrImpl)attribute.getAttributeNode("minOccurs")).setSpecified(false); attribute.setAttribute("maxOccurs", "1"); ((AttrImpl)attribute.getAttributeNode("maxOccurs")).setSpecified(false); type.appendChild(attribute); // attribute type: CDATA, ENTITY, ... , NMTOKENS; ENUMERATION String attributeTypeName = fStringPool.toString(attType); if (attributeTypeName.equals("CDATA")) { attribute.setAttribute("type", "string"); ((AttrImpl)attribute.getAttributeNode("type")).setSpecified(false); } else if (attributeTypeName.equals("ENUMERATION")) { Element datatype = fDocumentImpl.createElement("datatype"); datatype.setAttribute("source", "NMTOKEN"); attribute.appendChild(datatype); String tokenizerString = enumString.substring(1, enumString.length() - 1); StringTokenizer tokenizer = new StringTokenizer(tokenizerString, "|"); while (tokenizer.hasMoreTokens()) { Element enumeration = fDocument.createElement("enumeration"); enumeration.setAttribute("value", tokenizer.nextToken()); datatype.appendChild(enumeration); } } else { // REVISIT: Could we ever get an unknown data type? -Ac attribute.setAttribute("type", attributeTypeName); } // attribute default type: #IMPLIED, #REQUIRED, #FIXED boolean fixed = false; if (attDefaultType != -1) { String attributeDefaultTypeName = fStringPool.toString(attDefaultType); if (attributeDefaultTypeName.equals("#REQUIRED")) { attribute.setAttribute("minOccurs", "1"); ((AttrImpl)attribute.getAttributeNode("minOccurs")).setSpecified(true); } else if (attributeDefaultTypeName.equals("#FIXED")) { fixed = true; String fixedValue = fStringPool.toString(attDefaultValue); attribute.setAttribute("fixed", fixedValue); } } // attribute default value if (!fixed && attDefaultValue != -1) { String defaultValue = fStringPool.toString(attDefaultValue); attribute.setAttribute("default", defaultValue); } } } */ } // if NOT defer-node-expansion } // attlistDecl(int,int,int,String,int,int) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/3bbd83a7bcddbc34357f71fe08eace8d74b9bc8f/DOMParser.java/buggy/src/org/apache/xerces/parsers/DOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2403,
1098,
3456,
12,
13688,
930,
3456,
16,
16723,
1566,
3456,
16,
11794,
509,
2403,
559,
16,
514,
2792,
780,
16,
18701,
509,
2403,
1868,
559,
16,
509,
2403,
15646,
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,
1071,
918,
2403,
1098,
3456,
12,
13688,
930,
3456,
16,
16723,
1566,
3456,
16,
11794,
509,
2403,
559,
16,
514,
2792,
780,
16,
18701,
509,
2403,
1868,
559,
16,
509,
2403,
15646,
13,
3639,
... |
skey.set_dlen(args.skeydlen); skey.set_doff(args.skeydoff); skey.set_ulen(args.skeyulen); skey.set_flags(Db.DB_DBT_MALLOC | | skey.setPartialLength(args.skeydlen); skey.setPartialOffset(args.skeydoff); skey.setUserBufferLength(args.skeyulen); skey.setFlags(Db.DB_DBT_MALLOC | | public void pget(DbDispatcher server, __db_pget_msg args, __db_pget_reply reply) { try { RpcDbTxn rtxn = server.getTxn(args.txnpcl_id); DbTxn txn = (rtxn != null) ? rtxn.txn : null; Dbt skey = new Dbt(args.skeydata); skey.set_dlen(args.skeydlen); skey.set_doff(args.skeydoff); skey.set_ulen(args.skeyulen); skey.set_flags(Db.DB_DBT_MALLOC | (args.skeyflags & Db.DB_DBT_PARTIAL)); Dbt pkey = new Dbt(args.pkeydata); pkey.set_dlen(args.pkeydlen); pkey.set_doff(args.pkeydoff); pkey.set_ulen(args.pkeyulen); pkey.set_flags(Db.DB_DBT_MALLOC | (args.pkeyflags & Db.DB_DBT_PARTIAL)); Dbt data = new Dbt(args.datadata); data.set_dlen(args.datadlen); data.set_doff(args.datadoff); data.set_ulen(args.dataulen); data.set_flags(Db.DB_DBT_MALLOC | (args.dataflags & Db.DB_DBT_PARTIAL)); db.pget(txn, skey, pkey, data, args.flags); if (skey.get_data() == args.skeydata || skey.get_data().length != skey.get_size()) { reply.skeydata = new byte[skey.get_size()]; System.arraycopy(skey.get_data(), 0, reply.skeydata, 0, skey.get_size()); } else reply.skeydata = skey.get_data(); if (pkey.get_data() == args.pkeydata || pkey.get_data().length != pkey.get_size()) { reply.pkeydata = new byte[pkey.get_size()]; System.arraycopy(pkey.get_data(), 0, reply.pkeydata, 0, pkey.get_size()); } else reply.pkeydata = pkey.get_data(); if (data.get_data() == args.datadata || data.get_data().length != data.get_size()) { reply.datadata = new byte[data.get_size()]; System.arraycopy(data.get_data(), 0, reply.datadata, 0, data.get_size()); } else reply.datadata = data.get_data(); reply.status = 0; } catch(DbException e) { e.printStackTrace(DbServer.err); reply.status = e.get_errno(); reply.skeydata = reply.pkeydata = reply.datadata = empty; } } | 2921 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2921/8960e3895f7af91126465368dff8fbb36ab4e853/RpcDb.java/buggy/db/rpc_server/java/RpcDb.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
225,
918,
293,
588,
12,
4331,
6681,
1438,
16,
202,
202,
972,
1966,
67,
84,
588,
67,
3576,
833,
16,
1001,
1966,
67,
84,
588,
67,
10629,
4332,
13,
202,
95,
202,
202,
698,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
918,
293,
588,
12,
4331,
6681,
1438,
16,
202,
202,
972,
1966,
67,
84,
588,
67,
3576,
833,
16,
1001,
1966,
67,
84,
588,
67,
10629,
4332,
13,
202,
95,
202,
202,
698,
28... |
public void setFinal(boolean isFinal) { this.isFinal = isFinal; | public void setFinal(final boolean isFinal) { this._isFinal = isFinal; | public void setFinal(boolean isFinal) { this.isFinal = isFinal; } //-- setFinal | 57307 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57307/639ed93115321ad51c2450f306c4d50d146ede46/JModifiers.java/buggy/src/main/java/org/exolab/javasource/JModifiers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
7951,
12,
6494,
29200,
13,
288,
3639,
333,
18,
291,
7951,
273,
29200,
31,
565,
289,
368,
413,
444,
7951,
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,
377,
1071,
918,
444,
7951,
12,
6494,
29200,
13,
288,
3639,
333,
18,
291,
7951,
273,
29200,
31,
565,
289,
368,
413,
444,
7951,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
node.setInternalAddress(address); return null; } | public Object start() { long address = previous.getInternalAddress();// LOG.debug("inserting new child after " + address); if (address > -1) address = domDb.insertAfter(address, data); else { NodeRef ref = new NodeRef( ((DocumentImpl) previous.getOwnerDocument()).getDocId(), previous.getGID()); address = domDb.insertAfter(ref, data); } node.setInternalAddress(address); return null; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/3149cb09dbd411243a2231f7bb1ccbd3f9206b66/NativeBroker.java/clean/src/org/exist/storage/NativeBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
787,
1435,
288,
9506,
202,
5748,
1758,
273,
2416,
18,
588,
3061,
1887,
5621,
759,
9506,
202,
4842,
18,
4148,
2932,
6387,
310,
394,
1151,
1839,
315,
397,
1758,
1769,
9506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
787,
1435,
288,
9506,
202,
5748,
1758,
273,
2416,
18,
588,
3061,
1887,
5621,
759,
9506,
202,
4842,
18,
4148,
2932,
6387,
310,
394,
1151,
1839,
315,
397,
1758,
1769,
9506,... | |
int lEnd = hackStr.indexOf("#/LINK#"); | int lEnd = hackStr.indexOf("</L>"); | private String textMailLinkFix(String text) { //super.verifySqlText(HTMLConv.toHTMLSpecial(addText)); boolean done = false; StringBuffer sendStr = new StringBuffer(); String hackStr = text; while (!done) { boolean linkB = false; boolean mailB = false; String tempStr=""; int textLength = hackStr.length();//??? int lStart =hackStr.indexOf("#LINK#"); //log("lStart = "+lStart); int lEnd = hackStr.indexOf("#/LINK#"); //log("lEnd = "+lEnd); int mStart = hackStr.indexOf("#MAIL#"); //log("mStart = "+mStart); int mEnd = hackStr.indexOf("#/MAIL#"); //log("mEnd ="+ mEnd); //ok lets do some if cases to figure out what to do if (lStart != -1 && lEnd != -1) { linkB = true; } if (mStart != -1 && mEnd != -1) { mailB = true; } if (linkB && mailB)//ok we have at least one of each { if (lStart < mStart)//lets do link stuff //substring(int beginIndex, int endIndex) { //ok lets convert everything before the first #LINK# mark if(lStart > 0) sendStr.append(HTMLConv.toHTMLSpecial(hackStr.substring(0, lStart))); //ok lets append the link string sendStr.append(doLinkStuff(hackStr.substring(lStart+6, lEnd))); hackStr = hackStr.substring(lEnd+7); }else //ok lets do mailstuff { //ok lets convert everything before the first #MAIL# mark if(mStart > 0) sendStr.append(HTMLConv.toHTMLSpecial(hackStr.substring(0, mStart))); //ok lets append the mail string sendStr.append(doMailStuff(hackStr.substring(mStart+6, mEnd))); hackStr = hackStr.substring(mEnd+7); } }else if(linkB)//ok lets do some linkstuff { //ok lets convert everything before the first #LINK# mark if (lStart > 0) sendStr.append(HTMLConv.toHTMLSpecial(hackStr.substring(0, lStart))); //ok lets append the link string sendStr.append(doLinkStuff(hackStr.substring(lStart+6, lEnd))); hackStr = hackStr.substring(lEnd+7); }else if(mailB) //lets do some mailstuff { //ok lets convert everything before the first #MAIL# mark if(mStart > 0) sendStr.append(HTMLConv.toHTMLSpecial(hackStr.substring(0, mStart))); //ok lets append the mail string sendStr.append(doMailStuff(hackStr.substring(mStart+6, mEnd))); hackStr = hackStr.substring(mEnd+7); }else//ok we are done doing stuff { sendStr.append(HTMLConv.toHTMLSpecial(hackStr)); done = true; } } return sendStr.toString(); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/24df5fa67ec03a4049c89dc47a27cd5f3d96357e/BillBoardAdd.java/clean/servlets/billBoard/BillBoardAdd.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
977,
6759,
2098,
8585,
12,
780,
977,
13,
202,
95,
202,
202,
759,
9565,
18,
8705,
5101,
1528,
12,
4870,
17467,
18,
869,
4870,
12193,
12,
1289,
1528,
10019,
202,
202,
6494... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
977,
6759,
2098,
8585,
12,
780,
977,
13,
202,
95,
202,
202,
759,
9565,
18,
8705,
5101,
1528,
12,
4870,
17467,
18,
869,
4870,
12193,
12,
1289,
1528,
10019,
202,
202,
6494... |
info.setFilename(artifact.getFile().getName()); | String name = artifact.getFile().getName(); name = name.substring(0, name.lastIndexOf('.')) + ".zip"; info.setFilename(name); | protected void generateJbiDescriptor() throws JbiPluginException, MojoExecutionException { File outputDir = new File(generatedDescriptorLocation); if (!outputDir.exists()) { outputDir.mkdirs(); } File descriptor = new File(outputDir, JBI_DESCRIPTOR); List serviceUnits = new ArrayList(); Set artifacts = project.getArtifacts(); for (Iterator iter = artifacts.iterator(); iter.hasNext();) { Artifact artifact = (Artifact) iter.next(); // TODO: utilise appropriate methods from project builder ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME); if (!artifact.isOptional() && filter.include(artifact) && (artifact.getDependencyTrail().size() == 2)) { MavenProject project = null; try { project = pb.buildFromRepository(artifact, remoteRepos, localRepo); } catch (ProjectBuildingException e) { getLog().warn( "Unable to determine packaging for dependency : " + artifact.getArtifactId() + " assuming jar"); } if ((project != null) && (project.getPackaging().equals("jbi-service-unit"))) { DependencyInformation info = new DependencyInformation(); info.setName(artifact.getArtifactId()); info.setFilename(artifact.getFile().getName()); info.setComponent(getComponentName(project, artifacts, artifact)); info.setDescription(project.getDescription()); serviceUnits.add(info); } } } List orderedServiceUnits = reorderServiceUnits(serviceUnits); JbiServiceAssemblyDescriptorWriter writer = new JbiServiceAssemblyDescriptorWriter( encoding); writer.write(descriptor, name, description, orderedServiceUnits); } | 6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/8d94c9528640023ab4a311e5331e12b0bd255e70/GenerateServiceAssemblyDescriptorMojo.java/clean/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateServiceAssemblyDescriptorMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2103,
46,
13266,
3187,
1435,
1216,
804,
13266,
3773,
503,
16,
1082,
202,
49,
10007,
14576,
288,
202,
202,
812,
21412,
273,
394,
1387,
12,
11168,
3187,
2735,
1769,
202,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2103,
46,
13266,
3187,
1435,
1216,
804,
13266,
3773,
503,
16,
1082,
202,
49,
10007,
14576,
288,
202,
202,
812,
21412,
273,
394,
1387,
12,
11168,
3187,
2735,
1769,
202,
202... |
public boolean performOk() { // Verify the input sets of jars are valid (both classes and aspects) // String invalidClassesJars = findInvalidJars(inputJarsEditor.getStringValue());// //ASCFIXME - Need to NLSify this string...// if (invalidClassesJars!=null) {// AspectJPlugin.getDefault().getErrorHandler().handleWarning(// "The following files specified on the list of input "+// "(classes) jars do not exist:\n"+invalidClassesJars);// return false;// }// // String invalidAspectJars = findInvalidJars(aspectJarsEditor.getStringValue());// //ASCFIXME - Need to NLSify this string...// if (invalidAspectJars!=null) {// AspectJPlugin.getDefault().getErrorHandler().handleWarning(// "The following files specified on the list of input "+// "(aspect) jars do not exist:\n"+invalidAspectJars);// return false;// } // check the output jar value and make relative to project output dir if // needed. String outJar = outputJarEditor.getStringValue(); if (outJar != null) { try{ if (!outJar.startsWith(File.separator)) { IJavaProject jp = JavaCore.create(thisProject); IPath workspaceRelativeOutpath = jp.getOutputLocation(); IPath full = AspectJUIPlugin.getWorkspace().getRoot().getLocation().append(workspaceRelativeOutpath); outJar = full.toOSString(); } } catch (JavaModelException jme) { // leave the outJar setting unchanged } } AJDTEventTrace.projectPropertiesChanged(thisProject); try { if (AspectJUIPlugin.getWorkspace().getDescription().isAutoBuilding() && !(retrieveSettingString(BuildOptionsAdapter.OUTPUTJAR).equals(outputJarEditor.getStringValue()))) { outjarSettingChanged = true; } preserveSetting(BuildOptionsAdapter.INCREMENTAL_COMPILATION, incremental_modeBtn.getSelection()); preserveSetting(BuildOptionsAdapter.BUILD_ASM,buildAsmBtn.getSelection()); preserveSetting(BuildOptionsAdapter.WEAVEMESSAGES,showweavemessagesBtn.getSelection());// preserveSetting(// BuildOptionsAdapter.PREPROCESS,// preprocessModeBtn.getSelection());// preserveSetting(BuildOptionsAdapter.SOURCE14, source14modeBtn.getSelection());// preserveSetting(BuildOptionsAdapter.WORKING_DIR,workingDirEditor.getStringValue()); // preserveSetting(BuildOptionsAdapter.INPUTJARS,inputJarsEditor.getStringValue()); preserveSetting(BuildOptionsAdapter.OUTPUTJAR,outputJarEditor.getStringValue()); // preserveSetting(BuildOptionsAdapter.ASPECTJARS,aspectJarsEditor.getStringValue()); preserveSetting( BuildOptionsAdapter.CHAR_ENC,""); //characterEncodingEditor.getStringValue());// preserveSetting(// BuildOptionsAdapter.COMPILATION_STRICTNESS,// calculateStrictnessFromButtons());// preserveSetting(// BuildOptionsAdapter.PORTING_MODE,// portingModeBtn.getSelection()); preserveSetting( BuildOptionsAdapter.NON_STANDARD_OPTS, nonStandardOptionsEditor.getStringValue());// preserveSetting(BuildOptionsAdapter.JAVA_OR_AJ_EXT,fileExtBtn.getSelection()); // build the project now only if // - the oujar setting has changed, and // - either the inpath setting has changed and been updated, or the inpath setting // hasn't changed, and // - either the aspect path setting has changed and been updated // or the aspect path setting hasn't changed // - either the compiler settings have changed and been updated or the // compiler settings haven't changed. outjarSettingUpdated = true; if (outjarSettingChanged && ((InPathBlock.inPathChanged && InPathBlock.updatedInPath) || !InPathBlock.inPathChanged) && ((AspectPathBlock.aspectPathChanged && AspectPathBlock.updatedAspectPath) || !AspectPathBlock.aspectPathChanged) && ((CompilerPropertyPage.compilerSettingsChanged && CompilerPropertyPage.compilerSettingsUpdated) || !CompilerPropertyPage.compilerSettingsChanged)) { doProjectBuild(); } } catch (CoreException ce) { AspectJUIPlugin.getDefault().getErrorHandler().handleError( AspectJUIPlugin.getResourceString("projectProperties.exceptionDuringStore"), ce); return false; } return true; } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/8638dd6105fc1306d69d4d08d06441816f0072df/AspectJProjectPropertiesPage.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/AspectJProjectPropertiesPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
1082,
565,
368,
8553,
326,
810,
1678,
434,
28838,
854,
923,
261,
18237,
3318,
471,
30494,
13,
202,
759,
202,
565,
514,
2057,
4818,
46,
5913,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
8809,
1435,
288,
1082,
565,
368,
8553,
326,
810,
1678,
434,
28838,
854,
923,
261,
18237,
3318,
471,
30494,
13,
202,
759,
202,
565,
514,
2057,
4818,
46,
5913,
273,
... | ||
manager .fireDataChanged( ITeacher.class, new DataEvent( parent, "setBusy", type, new Object[] { busy })); | manager.fireDataChanged(ITeacher.class, new DataEvent(parent, "setBusy", type, new Object[] { busy })); | public ITeacherBusy saveOrUpdateTeacherBusy(ITeacherBusy busy, ITeacher parent) throws RemoteException { int type = busy.getIdBusy() == null ? DataEvent.TYPE_PROPERTY_SUBDATA_ADDED : DataEvent.TYPE_PROPERTY_SUBDATA_CHANGED; try { TeacherStorage.save(parent); } catch (HibernateException e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } manager .fireDataChanged( ITeacher.class, new DataEvent( parent, "setBusy", type, new Object[] { busy })); //$NON-NLS-1$ return busy; } | 13357 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13357/88394371c35f4389a1cd4ba2e6c30c902f533ddc/DataManagerImpl.java/clean/current/src/fr/umlv/ir3/flexitime/server/core/DataManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
24142,
13798,
264,
29289,
1923,
10466,
56,
13798,
264,
29289,
12,
1285,
13798,
264,
29289,
21697,
16,
24142,
13798,
264,
982,
13,
1216,
18361,
565,
288,
3639,
509,
618,
273,
21697,
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,
24142,
13798,
264,
29289,
1923,
10466,
56,
13798,
264,
29289,
12,
1285,
13798,
264,
29289,
21697,
16,
24142,
13798,
264,
982,
13,
1216,
18361,
565,
288,
3639,
509,
618,
273,
21697,
18... |
if (!ot.promotesTo(inttype)) | if (!ot.promotesTo(bittype)) | public Object visitExprUnary(ExprUnary expr) { Type ot = getType(expr.getExpr()); if (ot != null) { Type inttype = new TypePrimitive(TypePrimitive.TYPE_INT); Type bittype = new TypePrimitive(TypePrimitive.TYPE_BIT); switch(expr.getOp()) { case ExprUnary.UNOP_NEG: if (!inttype.promotesTo(ot)) report(expr, "cannot negate " + ot); break; case ExprUnary.UNOP_NOT: if (!ot.promotesTo(inttype)) report(expr, "cannot take boolean not of " + ot); break; case ExprUnary.UNOP_PREDEC: case ExprUnary.UNOP_PREINC: case ExprUnary.UNOP_POSTDEC: case ExprUnary.UNOP_POSTINC: if (!inttype.promotesTo(ot)) report(expr, "cannot perform ++/-- on " + ot); break; } } return super.visitExprUnary(expr); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/09bec1ec7f93e7f51f99620a1ac56171b6d731e2/SemanticChecker.java/clean/streams/src/streamit/frontend/passes/SemanticChecker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
1033,
3757,
4742,
15972,
12,
4742,
15972,
3065,
13,
7734,
288,
10792,
1412,
15835,
273,
3130,
12,
8638,
18,
588,
4742,
10663,
10792,
309,
261,
352,
480,
446,
13,
10792,
288,
13491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
1033,
3757,
4742,
15972,
12,
4742,
15972,
3065,
13,
7734,
288,
10792,
1412,
15835,
273,
3130,
12,
8638,
18,
588,
4742,
10663,
10792,
309,
261,
352,
480,
446,
13,
10792,
288,
13491,
... |
return lineHeight(context, style); | return lineHeight(context); | public static int fontXHeightForElement(Context context, CalculatedStyle style) { return lineHeight(context, style); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/71b2cfce5b6554582e24848d6c3702480ac8ba6c/FontUtil.java/clean/src/java/org/xhtmlrenderer/layout/FontUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
3512,
60,
2686,
1290,
1046,
12,
1042,
819,
16,
15994,
690,
2885,
2154,
13,
288,
3639,
327,
980,
2686,
12,
2472,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
3512,
60,
2686,
1290,
1046,
12,
1042,
819,
16,
15994,
690,
2885,
2154,
13,
288,
3639,
327,
980,
2686,
12,
2472,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
} ); | } ); | private void createMiscArea( ) { cmpMisc = new Composite( cmpTask, SWT.NONE ); cmpMisc.setLayout( new GridLayout( 4, false ) ); cmpMisc.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); GridData gridData = null; lblDimension = new Label( cmpMisc, SWT.NONE ); lblDimension.setText( Messages.getString( "TaskSelectType.Label.Dimension" ) ); //$NON-NLS-1$ // Add the ComboBox for Dimensions cbDimension = new Combo( cmpMisc, SWT.DROP_DOWN | SWT.READ_ONLY ); gridData = new GridData( GridData.GRAB_HORIZONTAL ); cbDimension.setLayoutData( gridData ); cbDimension.addSelectionListener( this ); lblOutput = new Label( cmpMisc, SWT.NONE ); { gridData = new GridData( ); gridData.horizontalIndent = 50; lblOutput.setLayoutData( gridData ); lblOutput.setText( Messages.getString( "TaskSelectType.Label.OutputFormat" ) ); //$NON-NLS-1$ } // Add the ComboBox for Output Format cbOutput = new Combo( cmpMisc, SWT.DROP_DOWN | SWT.READ_ONLY ); gridData = new GridData( GridData.GRAB_HORIZONTAL ); cbOutput.setLayoutData( gridData ); cbOutput.addSelectionListener( this ); lblMultipleY = new Label( cmpMisc, SWT.NONE ); lblMultipleY.setText( Messages.getString( "TaskSelectType.Label.MultipleYAxis" ) ); //$NON-NLS-1$ // Add the checkBox for Multiple Y Axis cbMultipleY = new Combo( cmpMisc, SWT.DROP_DOWN | SWT.READ_ONLY ); { cbMultipleY.setItems( new String[]{ Messages.getString( "TaskSelectType.Selection.None" ), //$NON-NLS-1$ Messages.getString( "TaskSelectType.Selection.SecondaryAxis" ), //$NON-NLS-1$ Messages.getString( "TaskSelectType.Selection.MoreAxes" ) //$NON-NLS-1$ } ); cbMultipleY.addSelectionListener( this ); int axisNum = ChartUIUtil.getOrthogonalAxisNumber( chartModel ); selectMultipleAxis( axisNum ); } lblSeriesType = new Label( cmpMisc, SWT.NONE ); { gridData = new GridData( ); gridData.horizontalIndent = 50; lblSeriesType.setLayoutData( gridData ); lblSeriesType.setText( Messages.getString( "TaskSelectType.Label.SeriesType" ) ); //$NON-NLS-1$ lblSeriesType.setEnabled( false ); } // Add the ComboBox for Series Type cbSeriesType = new Combo( cmpMisc, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gd = new GridData( GridData.GRAB_HORIZONTAL ); cbSeriesType.setLayoutData( gd ); cbSeriesType.setEnabled( false ); cbSeriesType.addSelectionListener( this ); } lblOrientation = new Label( cmpMisc, SWT.NONE ); lblOrientation.setText( Messages.getString( "TaskSelectType.Label.Oritention" ) ); //$NON-NLS-1$ // Add the CheckBox for Orientation cbOrientation = new Button( cmpMisc, SWT.CHECK ); cbOrientation.setText( Messages.getString( "TaskSelectType.Label.FlipAxis" ) ); //$NON-NLS-1$ gridData = new GridData( ); gridData.horizontalSpan = 3; cbOrientation.setLayoutData( gridData ); cbOrientation.addSelectionListener( this ); populateLists( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/c89ffbb080bd4f4bbe669a22853161e1a16d81d1/TaskSelectType.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
11729,
71,
5484,
12,
262,
202,
95,
202,
202,
9625,
11729,
71,
273,
394,
14728,
12,
9411,
2174,
16,
348,
8588,
18,
9826,
11272,
202,
202,
9625,
11729,
71,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
11729,
71,
5484,
12,
262,
202,
95,
202,
202,
9625,
11729,
71,
273,
394,
14728,
12,
9411,
2174,
16,
348,
8588,
18,
9826,
11272,
202,
202,
9625,
11729,
71,
18,
542,
... |
m_completeReLayout=true; } | m_completeReLayout=true; } | public void actionPerformed(ActionEvent ae) { m_completeReLayout=true; } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/d4d77a57f05cefb1a77842efdbe5de4841f9dcfc/HierarchicalBCEngine.java/clean/trunk/weka/gui/graphvisualizer/HierarchicalBCEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
5375,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
6862,
1377,
312,
67,
6226,
426,
3744,
33,
3767,
31,
6862,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
5375,
1071,
918,
26100,
12,
1803,
1133,
14221,
13,
288,
6862,
1377,
312,
67,
6226,
426,
3744,
33,
3767,
31,
6862,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if (fRunner != null) { | if (fRunner != null && fTestResult != null) { | synchronized public void runSuite() { if (fRunner != null) { fTestResult.stop(); } else { setLoading(shouldReload()); fRun.setLabel("Stop"); showInfo("Initializing..."); reset(); showInfo("Load Test Case..."); final Test testSuite= getTest(fSuiteField.getText()); if (testSuite != null) { fRunner= new Thread() { public void run() { fTestResult= createTestResult(); fTestResult.addListener(TestRunner.this); fProgressIndicator.start(testSuite.countTestCases()); showInfo("Running..."); long startTime= System.currentTimeMillis(); testSuite.run(fTestResult); if (fTestResult.shouldStop()) { showStatus("Stopped"); } else { long endTime= System.currentTimeMillis(); long runTime= endTime-startTime; showInfo("Finished: " + elapsedTimeAsString(runTime) + " seconds"); } fTestResult= null; fRun.setLabel("Run"); fRunner= null; System.gc(); } }; fRunner.start(); } } } | 48762 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48762/8c46dd2f3212fa331528fc92019d4f22abe2ffc1/TestRunner.java/buggy/junit/awtui/TestRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
22043,
1071,
918,
1086,
13587,
1435,
288,
202,
202,
430,
261,
74,
9709,
480,
446,
13,
288,
1082,
202,
74,
4709,
1253,
18,
5681,
5621,
202,
202,
97,
469,
288,
1082,
202,
542,
10515,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22043,
1071,
918,
1086,
13587,
1435,
288,
202,
202,
430,
261,
74,
9709,
480,
446,
13,
288,
1082,
202,
74,
4709,
1253,
18,
5681,
5621,
202,
202,
97,
469,
288,
1082,
202,
542,
10515,... |
yaccValue = new Long(c); | yaccValue = new Token(new Long(c), getPosition(null, false)); | private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... |
Object value = ((DefaultMutableTreeNode)path .getLastPathComponent()).getUserObject(); | DefaultMutableTreeNode node = (DefaultMutableTreeNode)path .getLastPathComponent(); Object value = node.getUserObject(); | private void goToSelectedNode() { TreePath path = resultTree.getSelectionPath(); if(path == null) return; Object value = ((DefaultMutableTreeNode)path .getLastPathComponent()).getUserObject(); if(value instanceof String) { Buffer buffer = jEdit.openFile(view,(String)value); if(buffer == null) return; view.setBuffer(buffer); // fuck me dead SwingUtilities.invokeLater(new Runnable() { public void run() { resultTree.requestFocus(); } }); } else { final HyperSearchResult result = (HyperSearchResult)value; final Buffer buffer = result.getBuffer(); if(buffer == null) return; VFSManager.runInAWTThread(new Runnable() { public void run() { int start = result.startPos.getOffset(); int end = result.endPos.getOffset(); Selection s = new Selection.Range(start,end); view.setBuffer(buffer); JEditTextArea textArea = view.getTextArea(); if(textArea.isMultipleSelectionEnabled()) textArea.addToSelection(s); else textArea.setSelection(s); textArea.moveCaretPosition(end); } }); } } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/382bbfe1d5b5bb1a8d3ad0f2d76a2f93cf3a1d1f/HyperSearchResults.java/buggy/org/gjt/sp/jedit/search/HyperSearchResults.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1960,
774,
7416,
907,
1435,
202,
95,
202,
202,
2471,
743,
589,
273,
563,
2471,
18,
588,
6233,
743,
5621,
202,
202,
430,
12,
803,
422,
446,
13,
1082,
202,
2463,
31,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1960,
774,
7416,
907,
1435,
202,
95,
202,
202,
2471,
743,
589,
273,
563,
2471,
18,
588,
6233,
743,
5621,
202,
202,
430,
12,
803,
422,
446,
13,
1082,
202,
2463,
31,
202... |
RubyClass nameError = defineClass("NameError", standardError); | RubyClass nameError = RubyNameError.createNameErrorClass(this, standardError); | private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); objectClass.setConstant("Module", moduleClass); RubyClass classClass = new RubyClass(this, null /* Would be Class if it could */, moduleClass, null, "Class"); objectClass.setConstant("Class", classClass); // I don't think the containment is correct here (parent cref) RubyClass metaClass = objectClass.makeMetaClass(classClass, objectMetaClass.getCRef()); metaClass = moduleClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); metaClass = classClass.makeMetaClass(metaClass, objectMetaClass.getCRef()); ((ObjectMetaClass) moduleClass).initializeBootstrapClass(); kernelModule = RubyKernel.createKernelModule(this); objectClass.includeModule(kernelModule); RubyClass.createClassClass(classClass); nilClass = RubyNil.createNilClass(this); // We cannot define this constant until nil itself was made objectClass.defineConstant("NIL", getNil()); // Pre-create the core classes we know we will get referenced by starting up the runtime. RubyBoolean.createFalseClass(this); RubyBoolean.createTrueClass(this); RubyComparable.createComparable(this); RubyEnumerable.createEnumerableModule(this); stringClass = new StringMetaClass(this); stringClass.initializeClass(); new SymbolMetaClass(this).initializeClass(); RubyThreadGroup.createThreadGroupClass(this); RubyThread.createThreadClass(this); RubyException.createExceptionClass(this); RubyPrecision.createPrecisionModule(this); new NumericMetaClass(this).initializeClass(); new IntegerMetaClass(this).initializeClass(); fixnumClass = new FixnumMetaClass(this); fixnumClass.initializeClass(); new HashMetaClass(this).initializeClass(); new IOMetaClass(this).initializeClass(); new ArrayMetaClass(this).initializeClass(); Java.createJavaModule(this); RubyClass structClass = RubyStruct.createStructClass(this); tmsStruct = RubyStruct.newInstance(structClass, new IRubyObject[] { newString("Tms"), newSymbol("utime"), newSymbol("stime"), newSymbol("cutime"), newSymbol("cstime")}); RubyFloat.createFloatClass(this); new BignumMetaClass(this).initializeClass(); new BindingMetaClass(this).initializeClass(); RubyMath.createMathModule(this); // depends on all numeric types RubyRegexp.createRegexpClass(this); RubyRange.createRangeClass(this); RubyObjectSpace.createObjectSpaceModule(this); RubyGC.createGCModule(this); new ProcMetaClass(this).initializeClass(); RubyMethod.createMethodClass(this); RubyMatchData.createMatchDataClass(this); RubyMarshal.createMarshalModule(this); RubyDir.createDirClass(this); RubyFileTest.createFileTestModule(this); new FileMetaClass(this).initializeClass(); // depends on IO, FileTest RubyProcess.createProcessModule(this); new TimeMetaClass(this).initializeClass(); RubyUnboundMethod.defineUnboundMethodClass(this); RubyClass exceptionClass = getClass("Exception"); RubyClass standardError = defineClass("StandardError", exceptionClass); RubyClass runtimeError = defineClass("RuntimeError", standardError); RubyClass ioError = defineClass("IOError", standardError); RubyClass scriptError = defineClass("ScriptError", exceptionClass); RubyClass nameError = defineClass("NameError", standardError); RubyClass rangeError = defineClass("RangeError", standardError); defineClass("SystemExit", exceptionClass); defineClass("Fatal", exceptionClass); defineClass("Interrupt", exceptionClass); defineClass("SignalException", exceptionClass); defineClass("TypeError", standardError); defineClass("ArgumentError", standardError); defineClass("IndexError", standardError); defineClass("SyntaxError", scriptError); defineClass("LoadError", scriptError); defineClass("NotImplementedError", scriptError); defineClass("NoMethodError", nameError); defineClass("SecurityError", standardError); defineClass("NoMemoryError", exceptionClass); defineClass("RegexpError", standardError); defineClass("EOFError", ioError); defineClass("LocalJumpError", standardError); defineClass("ThreadError", standardError); defineClass("SystemStackError", exceptionClass); defineClass("ZeroDivisionError", standardError); // FIXME: Actually this somewhere defineClass("FloatDomainError", rangeError); NativeException.createClass(this, runtimeError); systemCallError = defineClass("SystemCallError", standardError); errnoModule = defineModule("Errno"); initErrnoErrors(); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/1278c5bb3507a052d150d814f15453542ae41aed/Ruby.java/buggy/src/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
4670,
4818,
1435,
288,
3639,
14648,
797,
733,
2781,
797,
273,
394,
14648,
797,
12,
2211,
1769,
3639,
733,
2781,
797,
18,
11160,
797,
5621,
7734,
23992,
273,
733,
2781,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
4670,
4818,
1435,
288,
3639,
14648,
797,
733,
2781,
797,
273,
394,
14648,
797,
12,
2211,
1769,
3639,
733,
2781,
797,
18,
11160,
797,
5621,
7734,
23992,
273,
733,
2781,
79... |
private static void dumpBookmarks ( PrintStream o, Xobj xo, Object ref ) { for ( Bookmark b = xo._bookmarks ; b != null ; b = b._next ) { o.print( " " ); if (ref == b) o.print( "*:" ); if (b._value instanceof XmlLineNumber) { XmlLineNumber l = (XmlLineNumber) b._value; o.print( "<line:" + l.getLine() + ">" + "[" + b._pos + "]" ); } else o.print( "<mark>" + "[" + b._pos + "]" ); } } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/1be242f8d9d59b11549779cf24462c628e5a0f51/Cur.java/clean/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cur.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4657,
9084,
17439,
261,
21677,
320,
16,
1139,
2603,
619,
83,
16,
1033,
1278,
262,
565,
288,
3639,
364,
261,
20258,
3355,
324,
273,
619,
83,
6315,
3618,
17439,
274,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
4657,
9084,
17439,
261,
21677,
320,
16,
1139,
2603,
619,
83,
16,
1033,
1278,
262,
565,
288,
3639,
364,
261,
20258,
3355,
324,
273,
619,
83,
6315,
3618,
17439,
274,
324,
... | ||
for (int i = 0; i < jars.length; i++) { String jar = jars[i].getCanonicalPath(); if (!done.containsKey(jar)) { done.put(jar, jar); if (include_subject) { if (classpath.addComponent(jar) && _debug) System.err.println("Adding JAR from directory: " + jar); | if (jars != null) { for (int i = 0; i < jars.length; i++) { String jar = jars[i].getCanonicalPath(); if (!done.containsKey(jar)) { done.put(jar, jar); if (include_subject) { if (classpath.addComponent(jar) && _debug) System.err.println( "Adding JAR from directory: " + jar); } | void configureClasspath( String home, Classpath classpath, InputStream config, String[] args, String mode) { try { BufferedReader cfg = new BufferedReader(new InputStreamReader(config, "ISO-8859-1")); Version java_version = new Version(System.getProperty("java.version")); Version ver = new Version(); // JAR's already processed java.util.Hashtable done = new Hashtable(); String line = cfg.readLine(); while (line != null) { try { if ((line.length() > 0) && (!line.startsWith("#"))) { if (_debug) System.err.println(">" + line); StringTokenizer st = new StringTokenizer(line); String subject = st.nextToken(); boolean include_subject = true; String condition = null; while (include_subject && st.hasMoreTokens()) { condition = st.nextToken(); if (condition.equals("never")) { include_subject = false; } else if (condition.equals("always")) { } else if (condition.equals("available")) { String class_to_check = st.nextToken(); include_subject &= isAvailable(class_to_check); } else if (condition.equals("!available")) { String class_to_check = st.nextToken(); include_subject &= !isAvailable(class_to_check); } else if (condition.equals("java")) { String operator = st.nextToken(); String version = st.nextToken(); ver.parse(version); include_subject &= (operator.equals("<") && java_version.compare(ver) < 0) || (operator.equals(">") && java_version.compare(ver) > 0) || (operator.equals("<=") && java_version.compare(ver) <= 0) || (operator.equals("=<") && java_version.compare(ver) <= 0) || (operator.equals("=>") && java_version.compare(ver) >= 0) || (operator.equals(">=") && java_version.compare(ver) >= 0) || (operator.equals("==") && java_version.compare(ver) == 0) || (operator.equals("!=") && java_version.compare(ver) != 0); } else if (condition.equals("nargs")) { String operator = st.nextToken(); int number = Integer.parseInt(st.nextToken()); include_subject &= (operator.equals("<") && args.length < number) || (operator.equals(">") && args.length > number) || (operator.equals("<=") && args.length <= number) || (operator.equals("=<") && args.length <= number) || (operator.equals("=>") && args.length >= number) || (operator.equals(">=") && args.length >= number) || (operator.equals("==") && args.length == number) || (operator.equals("!=") && args.length != number); } else if (condition.equals("mode")) { String operator = st.nextToken(); String m = st.nextToken(); include_subject &= (operator.equals("==") && mode.equals(m)) || (operator.equals("!=") && (!mode.equals(m))); } else { System.err.println("ERROR: Unknown condition: " + condition); } } String file = subject.startsWith("/") ? (subject.replace('/', File.separatorChar)) : (home + File.separatorChar + subject.replace('/', File.separatorChar)); if (_debug) System.err.println( "subject=" + subject + " file=" + file + " condition=" + condition + " include_subject=" + include_subject); // ok, should we include? if (subject.endsWith("/*")) { // directory of JAR files File extdir = new File(file.substring(0, file.length() - 1)); File[] jars = extdir.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { String namelc = name.toLowerCase(); return namelc.endsWith(".jar") || name.endsWith(".zip"); } }); for (int i = 0; i < jars.length; i++) { String jar = jars[i].getCanonicalPath(); if (!done.containsKey(jar)) { done.put(jar, jar); if (include_subject) { if (classpath.addComponent(jar) && _debug) System.err.println("Adding JAR from directory: " + jar); } } } } else if (subject.endsWith("/")) { // class directory File cd = new File(file); String d = cd.getCanonicalPath(); if (!done.containsKey(d)) { done.put(d, d); if (include_subject) { if (classpath.addComponent(d) && _debug) System.err.println("Adding directory: " + d); } } } else if (subject.toLowerCase().endsWith(".class")) { // Class _classname = subject.substring(0, subject.length() - 6); } else { // single JAR file File f = new File(file); String d = f.getCanonicalPath(); if (!done.containsKey(d)) { done.put(d, d); if (include_subject) { if (classpath.addComponent(d) && _debug) System.err.println("Adding single JAR: " + d); } } } } } catch (Exception e) { if (_debug) { System.err.println(line); e.printStackTrace(); } } line = cfg.readLine(); } } catch (Exception e) { e.printStackTrace(); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bd6906f52069c6612f3a61229c258c275e3c12f1/Main.java/clean/src/org/exist/start/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
5068,
17461,
12,
202,
202,
780,
6382,
16,
202,
202,
17461,
10006,
16,
202,
202,
4348,
642,
16,
202,
202,
780,
8526,
833,
16,
202,
202,
780,
1965,
13,
288,
202,
202,
698,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5068,
17461,
12,
202,
202,
780,
6382,
16,
202,
202,
17461,
10006,
16,
202,
202,
4348,
642,
16,
202,
202,
780,
8526,
833,
16,
202,
202,
780,
1965,
13,
288,
202,
202,
698,
28... |
"fileSize", Utility.getHumanReadableSize( fileSize, " " ), | "fileSize", HumanReadable.getHumanReadableByteSize( fileSize ).replaceAll( " ", " "), | public String render( DocumentDomainObject document, HttpServletRequest request, HttpServletResponse response ) { UserDomainObject user = Utility.getLoggedOnUser( request ); FileDocumentDomainObject imageFileDocument = (FileDocumentDomainObject)document; ImageSize imageSize = new ImageSize( 0, 0 ); long fileSize ; InputStreamSource inputStreamSource = imageFileDocument.getDefaultFile().getInputStreamSource(); try { InputStream inputStream = inputStreamSource.getInputStream(); fileSize = inputStreamSource.getSize(); try { imageSize = Utility.getImageSize( inputStream ); } catch ( IOException ignored ) { } } catch ( IOException ioe ) { throw new UnhandledException( ioe ); } List values = Arrays.asList( new Object[]{ "imageUrl", "GetDoc?meta_id=" + document.getId(), "imageSize", imageSize, "fileSize", Utility.getHumanReadableSize( fileSize, " " ), } ); return Imcms.getServices().getAdminTemplate( "images/thumbnail.frag", user, values ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/60467075711aa2659e43e6d3c30953d0e0293d30/ChangeImage.java/clean/server/src/com/imcode/imcms/servlet/admin/ChangeImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1743,
12,
4319,
3748,
921,
1668,
16,
9984,
590,
16,
12446,
766,
262,
288,
5411,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
590,
11272,
5411,
1387,
2519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1743,
12,
4319,
3748,
921,
1668,
16,
9984,
590,
16,
12446,
766,
262,
288,
5411,
2177,
3748,
921,
729,
273,
13134,
18,
588,
19862,
1398,
1299,
12,
590,
11272,
5411,
1387,
2519,
... |
Compare(retEle,"/interop/sun/round4/complex/resExtendedStructFault.xml")); | Compare(retEle,"interop/sun/round4/complex/resExtendedStructFault.xml")); | public void testExtendedStructFault()throws Exception{ util=new EchoExtendedStructFaultClientUtil(); retEle = client.sendMsg(util,soapAction); assertTrue( Compare(retEle,"/interop/sun/round4/complex/resExtendedStructFault.xml")); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/15a6cd12ef1ef4b61b559ae46c0f74b52f18ead6/SunGroupHMain.java/buggy/modules/integration/itest/org/apache/axis2/interop/sun/complex/SunGroupHMain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11456,
3823,
7083,
1435,
15069,
1185,
95,
3639,
1709,
33,
2704,
28995,
11456,
3823,
7083,
1227,
1304,
5621,
3639,
325,
17274,
273,
1004,
18,
4661,
3332,
12,
1367,
16,
19215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11456,
3823,
7083,
1435,
15069,
1185,
95,
3639,
1709,
33,
2704,
28995,
11456,
3823,
7083,
1227,
1304,
5621,
3639,
325,
17274,
273,
1004,
18,
4661,
3332,
12,
1367,
16,
19215... |
public void sendRequest(long id, Message msg, RspCollector coll) { | public void sendRequest(long id, Message msg, RspCollector coll) throws Exception { | public void sendRequest(long id, Message msg, RspCollector coll) { sendRequest(id, null, msg, coll); } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/22c69457428cf875e9753385936adb3fedc17a37/RequestCorrelator.java/clean/src/org/jgroups/blocks/RequestCorrelator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12413,
12,
5748,
612,
16,
2350,
1234,
16,
534,
1752,
7134,
4508,
13,
1216,
1185,
288,
3639,
12413,
12,
350,
16,
446,
16,
1234,
16,
4508,
1769,
565,
289,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12413,
12,
5748,
612,
16,
2350,
1234,
16,
534,
1752,
7134,
4508,
13,
1216,
1185,
288,
3639,
12413,
12,
350,
16,
446,
16,
1234,
16,
4508,
1769,
565,
289,
2,
-100,
-100,
-100,
... |
public static Boolean evaluate(Object obj, Navigator nav) { // convert to String if it's a special object type if ( obj instanceof Boolean ) { return (Boolean) obj; } else if ( obj instanceof List ) { return ( ((List)obj).isEmpty() ? Boolean.FALSE : Boolean.TRUE ); } else if ( obj instanceof Iterator ) { return ( ((Iterator)obj).hasNext() ? Boolean.TRUE : Boolean.FALSE ); } else if ( obj instanceof Number ) { if ( ((Number)obj).doubleValue() == Double.NaN || ((Number)obj).doubleValue() == 0 ) { return Boolean.FALSE; } return Boolean.TRUE; } else if ( nav.isElement( obj ) ) { obj = nav.getElementStringValue( obj ); } else if ( nav.isAttribute( obj ) ) { obj = nav.getAttributeStringValue( obj ); } else if ( nav.isText( obj ) ) { obj = nav.getTextStringValue( obj ); } else if ( obj instanceof String ) { return ( ((String)obj).length() > 0 ? Boolean.TRUE : Boolean.FALSE ); } return Boolean.FALSE; } | 5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/4506d8501f85cbb094ecbb2039987ea33fae174a/BooleanFunction.java/buggy/src/java/main/org/jaxen/function/BooleanFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
5507,
21024,
12,
921,
2603,
16,
22817,
11589,
15329,
759,
591,
502,
748,
83,
780,
430,
305,
1807,
345,
705,
649,
1612,
723,
430,
12,
2603,
1336,
792,
5507,
15329,
2463,
12,
5507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3845,
5507,
21024,
12,
921,
2603,
16,
22817,
11589,
15329,
759,
591,
502,
748,
83,
780,
430,
305,
1807,
345,
705,
649,
1612,
723,
430,
12,
2603,
1336,
792,
5507,
15329,
2463,
12,
5507,
... | ||
al.add("-debug"); al.add("-verbose"); | arguments.add("-debug"); arguments.add("-verbose"); | protected String[] getCommandLineArgs( Map buildProperties, boolean useLogger, boolean useScript, boolean isWindows) { List al = new ArrayList(); if (useScript) { if (isWindows) { al.add("cmd.exe"); al.add("/C"); al.add(antScript); } else { al.add(antScript); } } else { al.add("java"); Iterator argsIterator = args.iterator(); while (argsIterator.hasNext()) { String arg = ((JVMArg) argsIterator.next()).getArg(); // empty args may break the command line if (arg != null && arg.length() > 0) { al.add(arg); } } al.add("-classpath"); al.add(System.getProperty("java.class.path")); al.add("org.apache.tools.ant.Main"); } if (useLogger) { al.add("-logger"); al.add(getLoggerClassName()); al.add("-logfile"); al.add(tempFileName); } else { al.add("-listener"); al.add(getLoggerClassName()); al.add("-DXmlLogger.file=" + tempFileName); } Iterator propertiesIterator = buildProperties.keySet().iterator(); while (propertiesIterator.hasNext()) { String key = (String) propertiesIterator.next(); al.add("-D" + key + "=" + buildProperties.get(key)); } Iterator antPropertiesIterator = properties.iterator(); while (antPropertiesIterator.hasNext()) { Property property = (Property) antPropertiesIterator.next(); al.add("-D" + property.getName() + "=" + property.getValue()); } if (useDebug) { al.add("-debug"); al.add("-verbose"); } al.add("-buildfile"); al.add(buildFile); StringTokenizer targets = new StringTokenizer(target); while (targets.hasMoreTokens()) { al.add(targets.nextToken()); } return (String[]) al.toArray(new String[al.size()]); } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/7e1a08c1d17de8f5bfcc32ce5c821e30752b46ef/AntBuilder.java/buggy/main/src/net/sourceforge/cruisecontrol/builders/AntBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8526,
12856,
1670,
2615,
12,
3639,
1635,
1361,
2297,
16,
3639,
1250,
999,
3328,
16,
3639,
1250,
999,
3651,
16,
3639,
1250,
353,
10399,
13,
288,
3639,
987,
524,
273,
394,
2407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
8526,
12856,
1670,
2615,
12,
3639,
1635,
1361,
2297,
16,
3639,
1250,
999,
3328,
16,
3639,
1250,
999,
3651,
16,
3639,
1250,
353,
10399,
13,
288,
3639,
987,
524,
273,
394,
2407,
... |
clauses = Query(); | clauses = Query(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 0: case 61: | final public ArrayList DoParse() throws ParseException, ServiceException { trace_call("DoParse"); try { ArrayList clauses; clauses = Query(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 0: case 61: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 61: jj_consume_token(61); break; case 0: jj_consume_token(0); break; default: jj_la1[25] = jj_gen; jj_consume_token(-1); throw new ParseException(); } break; default: jj_la1[26] = jj_gen; ; } {if (true) return clauses;} throw new Error("Missing return statement in function"); } finally { trace_return("DoParse"); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/1fc33da8eddd8249205ff3612ffbf86557b572ab/ZimbraQueryParser.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
2407,
2256,
3201,
1435,
1216,
10616,
16,
16489,
288,
565,
2606,
67,
1991,
2932,
3244,
3201,
8863,
565,
775,
288,
565,
2407,
14093,
31,
1377,
14093,
273,
2770,
5621,
1620,
14015,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1071,
2407,
2256,
3201,
1435,
1216,
10616,
16,
16489,
288,
565,
2606,
67,
1991,
2932,
3244,
3201,
8863,
565,
775,
288,
565,
2407,
14093,
31,
1377,
14093,
273,
2770,
5621,
1620,
14015,
... |
case Token.PROPINC : case Token.PROPDEC : case Token.ELEMINC : case Token.ELEMDEC : | case Icode_PROPINC : case Icode_PROPDEC : case Icode_ELEMINC : case Icode_ELEMDEC : | private static int icodeTokenLength(int icodeToken) { switch (icodeToken) { case Icode_SCOPE : case Icode_GETPROTO : case Icode_GETPARENT : case Icode_GETSCOPEPARENT : case Icode_SETPROTO : case Icode_SETPARENT : case Token.DELPROP : case Token.TYPEOF : case Token.NEWSCOPE : case Token.ENTERWITH : case Token.LEAVEWITH : case Token.RETURN : case Token.THROW : case Token.GETTHIS : case Token.SETELEM : case Token.GETELEM : case Token.SETPROP : case Token.GETPROP : case Token.PROPINC : case Token.PROPDEC : case Token.ELEMINC : case Token.ELEMDEC : case Token.BITNOT : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.NEG : case Token.POS : case Token.SUB : case Token.MUL : case Token.DIV : case Token.MOD : case Token.ADD : case Token.POPV : case Token.POP : case Icode_DUP : case Token.LT : case Token.GT : case Token.LE : case Token.GE : case Token.IN : case Token.INSTANCEOF : case Token.EQ : case Token.NE : case Token.SHEQ : case Token.SHNE : case Token.ZERO : case Token.ONE : case Token.NULL : case Token.THIS : case Token.THISFN : case Token.FALSE : case Token.TRUE : case Token.UNDEFINED : case Icode_CATCH: case Icode_RETUNDEF: case Icode_END: return 1; case Icode_GOSUB : case Token.GOTO : case Token.IFEQ : case Token.IFNE : // target pc offset return 1 + 2; case Icode_RETSUB : case Token.ENUMINIT : case Token.ENUMNEXT : case Token.VARINC : case Token.VARDEC : case Token.GETVAR : case Token.SETVAR : case Token.NEWTEMP : case Token.USETEMP : // slot index return 1 + 1; case Icode_CALLSPECIAL : // call type // is new // line number // arg count return 1 + 1 + 1 + 2 + 2; case Token.REGEXP : // regexp index return 1 + 2; case Token.CLOSURE : // index of closure master copy return 1 + 2; case Token.NEW : case Token.CALL : // name string index // arg count return 1 + 2 + 2; case Icode_SHORTNUMBER : // short number return 1 + 2; case Icode_INTNUMBER : // int number return 1 + 4; case Token.NUMBER : // index of double number return 1 + 2; case Token.TYPEOFNAME : case Token.GETBASE : case Token.BINDNAME : case Token.SETNAME : case Token.NAME : case Token.NAMEINC : case Token.NAMEDEC : case Token.STRING : // string index return 1 + 2; case Icode_LINE : // line number return 1 + 2; default: Context.codeBug(); // Bad icodeToken return 0; } } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/faf2a30c39fc508f2635416a94f9662c4ae41ad3/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
277,
710,
1345,
1782,
12,
474,
277,
710,
1345,
13,
288,
3639,
1620,
261,
3487,
1345,
13,
288,
5411,
648,
467,
710,
67,
19444,
294,
5411,
648,
467,
710,
67,
3264,
25455,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
277,
710,
1345,
1782,
12,
474,
277,
710,
1345,
13,
288,
3639,
1620,
261,
3487,
1345,
13,
288,
5411,
648,
467,
710,
67,
19444,
294,
5411,
648,
467,
710,
67,
3264,
25455,
... |
_t = __t2025; | _t = __t2026; | public final void sizephrase(AST _t) throws RecognitionException { AST sizephrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SIZE: { AST __t2023 = _t; AST tmp2163_AST_in = (AST)_t; match(_t,SIZE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2164_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2023; _t = _t.getNextSibling(); break; } case SIZECHARS: { AST __t2024 = _t; AST tmp2165_AST_in = (AST)_t; match(_t,SIZECHARS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2166_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2024; _t = _t.getNextSibling(); break; } case SIZEPIXELS: { AST __t2025 = _t; AST tmp2167_AST_in = (AST)_t; match(_t,SIZEPIXELS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2168_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2025; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
963,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
963,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
963,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
963,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
void dumpMap(){ ILog log = Platform.getPlugin(Platform.PI_RUNTIME).getLog(); if(elementMap == null){ log.log(new Status( IStatus.ERROR, Platform.PI_RUNTIME, IStatus.ERROR, | void dumpMap() { ILog log = Platform.getPlugin(Platform.PI_RUNTIME).getLog(); if (elementMap == null) { log.log(new Status(IStatus.ERROR, Platform.PI_RUNTIME, IStatus.ERROR, | void dumpMap(){ ILog log = Platform.getPlugin(Platform.PI_RUNTIME).getLog(); if(elementMap == null){ log.log(new Status( IStatus.ERROR, Platform.PI_RUNTIME, IStatus.ERROR, "No element map yet",//$NON-NLS-1$ new Throwable() )); return; } Enumeration keys = elementMap.keys(); while(keys.hasMoreElements()){ Object key = keys.nextElement(); Widget widget = (Widget) elementMap.get(key); if(widget.isDisposed()){ log.log(new Status( IStatus.ERROR, Platform.PI_RUNTIME, IStatus.ERROR, "Disposed widget for " + key.toString(),//$NON-NLS-1$ new Throwable() )); } } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4657,
863,
1435,
95,
377,
202,
377,
202,
45,
1343,
613,
273,
11810,
18,
588,
3773,
12,
8201,
18,
1102,
67,
54,
25375,
2934,
588,
1343,
5621,
377,
202,
430,
12,
2956,
863,
422,
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,
377,
918,
4657,
863,
1435,
95,
377,
202,
377,
202,
45,
1343,
613,
273,
11810,
18,
588,
3773,
12,
8201,
18,
1102,
67,
54,
25375,
2934,
588,
1343,
5621,
377,
202,
430,
12,
2956,
863,
422,
44... |
public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID(); | public quickfix.field.SecurityID getSecurityID() throws FieldNotFound { quickfix.field.SecurityID value = new quickfix.field.SecurityID(); | public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/CrossOrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
19288,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
460,
273,
394,
2358,
18,
19525,
904,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
19288,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
460,
273,
394,
2358,
18,
19525,
904,
18... |
} | public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { /* Create the context */ accessibleContext = new AccessibleAWTLabel(); } return accessibleContext;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cdb624bf4a3742cc4374523f5c6856a06dcd8f92/Label.java/clean/core/src/classpath/java/java/awt/Label.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
5016,
1523,
1042,
336,
10451,
1042,
1435,
95,
225,
1748,
1788,
326,
819,
309,
333,
353,
326,
1122,
590,
1195,
225,
309,
261,
26037,
1042,
422,
446,
13,
565,
288,
1377,
1748,
1788,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
5016,
1523,
1042,
336,
10451,
1042,
1435,
95,
225,
1748,
1788,
326,
819,
309,
333,
353,
326,
1122,
590,
1195,
225,
309,
261,
26037,
1042,
422,
446,
13,
565,
288,
1377,
1748,
1788,
326,
... | |
((DocumentImpl) previous.getOwnerDocument()).getDocId(), | doc.getDocId(), | public Object start() { long address = previous.getInternalAddress(); // LOG.debug("inserting new child after " + address); if (address > -1) address = domDb.insertAfter(address, data); else { NodeRef ref = new NodeRef( ((DocumentImpl) previous.getOwnerDocument()).getDocId(), previous.getGID()); address = domDb.insertAfter(ref, data); } node.setInternalAddress(address); return null; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/31167aa387bb2d591946940b8fba00662b4c8930/NativeBroker.java/clean/src/org/exist/storage/NativeBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
787,
1435,
288,
9506,
202,
5748,
1758,
273,
2416,
18,
588,
3061,
1887,
5621,
9506,
202,
759,
9506,
202,
4842,
18,
4148,
2932,
6387,
310,
394,
1151,
1839,
315,
397,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
787,
1435,
288,
9506,
202,
5748,
1758,
273,
2416,
18,
588,
3061,
1887,
5621,
9506,
202,
759,
9506,
202,
4842,
18,
4148,
2932,
6387,
310,
394,
1151,
1839,
315,
397,
1758,
... |
assertNull( "Check no other cause", e.getCause() ); | assertTrue( true ); | public void testCommitNoReleaseLabel() throws Exception { ReleaseConfiguration config = createConfigurationFromProjects( "scm-commit/", "single-pom", false ); try { phase.execute( config ); fail( "Should have thrown an exception" ); } catch ( ReleaseExecutionException e ) { assertNull( "Check no other cause", e.getCause() ); } } | 7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/d5c32346773fdffbb7d1fb61552050c9d9bfa5f5/ScmCommitPhaseTest.java/buggy/maven-release-plugin/src/test/java/org/apache/maven/plugins/release/phase/ScmCommitPhaseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5580,
2279,
7391,
2224,
1435,
3639,
1216,
1185,
565,
288,
3639,
10819,
1750,
642,
273,
752,
1750,
1265,
15298,
12,
315,
1017,
81,
17,
7371,
19,
3113,
315,
7526,
17,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5580,
2279,
7391,
2224,
1435,
3639,
1216,
1185,
565,
288,
3639,
10819,
1750,
642,
273,
752,
1750,
1265,
15298,
12,
315,
1017,
81,
17,
7371,
19,
3113,
315,
7526,
17,
84,
... |
abc.main.Debug.reset(); abc.main.AbcTimer.reset(); abc.main.Options.reset(); | public void reset() { soot.G.reset(); // reset all of Soot's global info // TODO: add a call here to the reset method for any class that // needs static information reset for repeated calls to main abc.main.Debug.reset(); abc.main.AbcTimer.reset(); abc.main.Options.reset(); abc.soot.util.Restructure.reset(); abc.aspectj.visit.OncePass.reset(); abc.aspectj.visit.PCStructure.reset(); abc.aspectj.visit.AspectInfoHarvester.reset(); abc.aspectj.parse.Lexer_c.reset(); abc.weaving.aspectinfo.AbcFactory.reset(); abc.weaving.weaver.around.AroundWeaver.reset(); abc.weaving.matching.StmtShadowMatch.reset(); abc.weaving.matching.ConstructorCallShadowMatch.reset(); abc.weaving.matching.ExecutionShadowMatch.reset(); abc.weaving.aspectinfo.GlobalCflowSetupFactory.reset(); abc.soot.util.SwitchFolder.reset(); //abc.weaving.weaver.AroundInliner.reset(); //abc.weaving.weaver.AfterBeforeInliner.reset(); abc.weaving.weaver.AdviceInliner.reset(); abc.soot.util.LocalGeneratorEx.reset(); abc.main.options.OptionsParser.reset(); abc.weaving.weaver.WeavingState.reset(); abc.weaving.weaver.CflowCodeGenUtils.reset(); abc.weaving.weaver.around.Util.reset(); abc.weaving.weaver.around.AdviceApplicationInfo.reset(); } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/81b084f04273ed6781017d7704f51818b113e9df/CompileSequence.java/buggy/aop/abc/src/abc/main/CompileSequence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
1435,
288,
3639,
1427,
352,
18,
43,
18,
6208,
5621,
368,
2715,
777,
434,
348,
1632,
1807,
2552,
1123,
3639,
368,
2660,
30,
527,
279,
745,
2674,
358,
326,
2715,
707,
364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2715,
1435,
288,
3639,
1427,
352,
18,
43,
18,
6208,
5621,
368,
2715,
777,
434,
348,
1632,
1807,
2552,
1123,
3639,
368,
2660,
30,
527,
279,
745,
2674,
358,
326,
2715,
707,
364... | |
if (lockListener.isUIWaiting()) lockListener.interruptUI(); | if (lockListener.isUIWaiting()) { lockListener.interruptUI(); } | public void syncExec(Runnable runnable) { //if this thread is the UI or this thread does not own any locks, just do the syncExec if ((runnable == null) || lockListener.isUI() || !lockListener.isLockOwner()) { super.syncExec(runnable); return; } Semaphore work = new Semaphore(runnable); work.setOperationThread(Thread.currentThread()); lockListener.addPendingWork(work); asyncExec(new Runnable() { public void run() { lockListener.doPendingWork(); } }); try { //even if the UI was not blocked earlier, it might become blocked //before it can serve the asyncExec to do the pending work do { if (lockListener.isUIWaiting()) lockListener.interruptUI(); } while (!work.acquire(1000)); } catch (InterruptedException e) { } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/UISynchronizer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/UISynchronizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3792,
1905,
12,
20013,
14685,
13,
288,
3639,
368,
430,
333,
2650,
353,
326,
6484,
578,
333,
2650,
1552,
486,
4953,
1281,
13046,
16,
2537,
741,
326,
3792,
1905,
3639,
309,
14015... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3792,
1905,
12,
20013,
14685,
13,
288,
3639,
368,
430,
333,
2650,
353,
326,
6484,
578,
333,
2650,
1552,
486,
4953,
1281,
13046,
16,
2537,
741,
326,
3792,
1905,
3639,
309,
14015... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.