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
int depthHelper(int depth) { if (getParentAlbum() != null && getParentAlbum() != this) {
int depthHelper(int depth) throws IllegalArgumentException { if (getParentAlbum() == this || depth > 20) { throw new IllegalArgumentException("Circular containment hierarchy. Gallery corrupted!"); } if (getParentAlbum() != null) {
int depthHelper(int depth) { if (getParentAlbum() != null && getParentAlbum() != this) { return getParentAlbum().depthHelper(depth + 1); } else { return depth; } }
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/f066f7749c4e25c4633de5aca447ae87ccc8e6bc/Album.java/buggy/gallery_remote/com/gallery/GalleryRemote/model/Album.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 474, 3598, 2276, 12, 474, 3598, 13, 288, 202, 202, 430, 261, 588, 3054, 30330, 1435, 480, 446, 597, 5089, 30330, 1435, 480, 333, 13, 288, 1082, 202, 2463, 5089, 30330, 7675, 5979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 474, 3598, 2276, 12, 474, 3598, 13, 288, 202, 202, 430, 261, 588, 3054, 30330, 1435, 480, 446, 597, 5089, 30330, 1435, 480, 333, 13, 288, 1082, 202, 2463, 5089, 30330, 7675, 5979, ...
if (jj_3R_135()) return true; return false; }
if (jj_scan_token(DECR)) return true; return false; }
final private boolean jj_3R_361() { if (jj_3R_135()) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5718, 21, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 26612, 10756, 327, 638, 31, 3639, 327, 629, 31, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5718, 21, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 26612, 10756, 327, 638, 31, 3639, 327, 629, 31, 565, 289, 2, -100, -100, -100, -...
public void setFExactCWords(boolean value) { field_6_docinfo1 = (byte)fExactCWords.setBoolean(field_6_docinfo1, value); }
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/79d06dc2b5e839d92f501b1ff8ea15e53d646732/DOPAbstractType.java/clean/src/scratchpad/src/org/apache/poi/hdf/model/hdftypes/definitions/DOPAbstractType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24340, 14332, 39, 7363, 12, 6494, 460, 13, 565, 288, 3639, 652, 67, 26, 67, 2434, 1376, 21, 273, 261, 7229, 13, 74, 14332, 39, 7363, 18, 542, 5507, 12, 1518, 67, 26, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24340, 14332, 39, 7363, 12, 6494, 460, 13, 565, 288, 3639, 652, 67, 26, 67, 2434, 1376, 21, 273, 261, 7229, 13, 74, 14332, 39, 7363, 18, 542, 5507, 12, 1518, 67, 26, 67, ...
public void setConf(NutchConf conf) { this.nutchConf = conf;
public void setConf(Configuration conf) { this.conf = conf;
public void setConf(NutchConf conf) { this.nutchConf = conf; }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/LanguageQueryFilter.java/buggy/src/plugin/languageidentifier/src/java/org/apache/nutch/analysis/lang/LanguageQueryFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3976, 12, 50, 322, 343, 3976, 2195, 13, 288, 565, 333, 18, 82, 322, 343, 3976, 273, 2195, 31, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3976, 12, 50, 322, 343, 3976, 2195, 13, 288, 565, 333, 18, 82, 322, 343, 3976, 273, 2195, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
String[] entryResultNameModel = {"C/B/A", "e1/B/A", "ForwardA/A", "x/B/A"};
String[] entryResultNameModel = {"C/B/A","ForwardA/A", "e1/B/A", "x/B/A"};
public void testRefs() throws Exception{ //Add a new file to the project importFile("reftest.cpp","resources/indexer/reftest.cpp"); //$NON-NLS-1$ //$NON-NLS-2$ //Make sure project got added to index IPath testProjectPath = testProject.getFullPath(); IIndex ind = sourceIndexer.getIndex(testProjectPath,true,true); assertTrue("Index exists for project",ind != null); //$NON-NLS-1$ String[] entryResultNameModel = {"C/B/A", "e1/B/A", "ForwardA/A", "x/B/A"}; int[] entryResultMetaModel = {IIndex.TYPE}; int[] entryResultTypeModel = {IIndex.TYPE_CLASS, IIndex.TYPE_ENUM, IIndex.TYPE_FWD_CLASS, IIndex.TYPE_VAR}; int[] entryResultRefModel = {IIndex.REFERENCE}; IEntryResult[] typerefresults = ind.getEntries(IIndex.TYPE,IIndex.ANY,IIndex.REFERENCE); assertTrue("Entry exists",typerefresults != null); //$NON-NLS-1$ if (typerefresults.length != entryResultNameModel.length) fail("Entry Result length different from model for typeRef"); //$NON-NLS-1$ for (int i=0;i<typerefresults.length; i++) { assertEquals(entryResultNameModel[i],typerefresults[i].getName()); assertEquals(entryResultMetaModel[0],typerefresults[i].getMetaKind()); assertEquals(entryResultTypeModel[i],typerefresults[i].getKind()); assertEquals(entryResultRefModel[0],typerefresults[i].getRefKind()); } String[] entryResultFNameModel = {"something/A"}; int[] entryResultFMetaModel = {IIndex.FUNCTION}; int[] entryResultFRefModel = {IIndex.REFERENCE}; IEntryResult[] funRefresults = ind.getEntries(IIndex.FUNCTION,IIndex.ANY, IIndex.REFERENCE); assertTrue("Entry exists",funRefresults != null); //$NON-NLS-1$ if (funRefresults.length != entryResultFNameModel.length) fail("Entry Result length different from model for funcRef"); //$NON-NLS-1$ for (int i=0;i<funRefresults.length; i++) { assertEquals(entryResultFNameModel[i],funRefresults[i].getName()); assertEquals(entryResultFMetaModel[0],funRefresults[i].getMetaKind()); assertEquals(entryResultFRefModel[0],funRefresults[i].getRefKind()); } String [] namespaceRefResultModel = {"EntryResult: word=namespaceRef/A, refs={ 1 }, offsets={ [ 2228, 2241, 2257, 2273, 2292, 2313, 2334] }", "EntryResult: word=namespaceRef/B/A, refs={ 1 }, offsets={ [ 2231, 2244, 2260, 2276, 2295, 2337] }"}; //$NON-NLS-1$ //$NON-NLS-2$ String[] entryResultNNameModel = {"A", "B/A"}; int[] entryResultNMetaModel = {IIndex.NAMESPACE}; int[] entryResultNRefModel = {IIndex.REFERENCE}; IEntryResult[] namespacerefresults = ind.getEntries(IIndex.NAMESPACE, IIndex.ANY, IIndex.REFERENCE); assertTrue("Entry exists",namespacerefresults!=null); //$NON-NLS-1$ if (namespacerefresults.length != entryResultNNameModel.length) fail("Entry Result length different from model for namespaceRef"); //$NON-NLS-1$ for (int i=0;i<namespacerefresults.length; i++) { assertEquals(entryResultNNameModel[i],namespacerefresults[i].getName()); assertEquals(entryResultNMetaModel[0],namespacerefresults[i].getMetaKind()); assertEquals(entryResultNRefModel[0],namespacerefresults[i].getRefKind()); } String[] entryResultFDNameModel = {"y/C/B/A"}; int[] entryResultFDMetaModel = {IIndex.FIELD}; int[] entryResultFDRefModel = {IIndex.REFERENCE}; IEntryResult[] fieldrefresults = ind.getEntries(IIndex.FIELD, IIndex.ANY, IIndex.REFERENCE); assertTrue("Entry exists",fieldrefresults!=null); //$NON-NLS-1$ if (fieldrefresults.length != entryResultFDNameModel.length) fail("Entry Result length different from model for fieldRef"); //$NON-NLS-1$ for (int i=0;i<fieldrefresults.length; i++) { assertEquals(entryResultFDNameModel[i],fieldrefresults[i].getName()); assertEquals(entryResultFDMetaModel[0],fieldrefresults[i].getMetaKind()); assertEquals(entryResultFDRefModel[0],fieldrefresults[i].getRefKind()); } String[] entryResultMNameModel = {"bar/C/B/A"}; int[] entryResultMMetaModel = {IIndex.METHOD}; int[] entryResultMRefModel = {IIndex.REFERENCE}; IEntryResult[] methodrefresults = ind.getEntries(IIndex.METHOD, IIndex.ANY, IIndex.REFERENCE); assertTrue("Entry exists", methodrefresults != null); //$NON-NLS-1$ if (methodrefresults.length != entryResultMNameModel.length) fail("Entry Result length different from model for methodRef");//$NON-NLS-1$ for (int i=0;i<methodrefresults.length; i++) { assertEquals(entryResultMNameModel[i],methodrefresults[i].getName()); assertEquals(entryResultMMetaModel[0],methodrefresults[i].getMetaKind()); assertEquals(entryResultMRefModel[0],methodrefresults[i].getRefKind()); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f20ffd5b51ae738513d531dd22fd8fda77343010/SourceIndexerTests.java/clean/core/org.eclipse.cdt.core.tests/indexer/org/eclipse/cdt/core/indexer/tests/SourceIndexerTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9837, 1435, 1216, 1185, 95, 1082, 225, 368, 986, 279, 394, 585, 358, 326, 1984, 1082, 225, 1930, 812, 2932, 266, 1222, 395, 18, 4057, 84, 15937, 4683, 19, 24541, 19, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9837, 1435, 1216, 1185, 95, 1082, 225, 368, 986, 279, 394, 585, 358, 326, 1984, 1082, 225, 1930, 812, 2932, 266, 1222, 395, 18, 4057, 84, 15937, 4683, 19, 24541, 19, 26...
if (log.isDebugEnabled()) log.debug("Add cookie " + c.toString());
public void add(Cookie c) { if (log.isDebugEnabled()) log.debug("Add cookie " + c.toString()); String cv = c.getValue(); if (DELETE_NULL_COOKIES && (null == cv || "".equals(cv))) { removeCookieNamed(c.getName()); } else { JMeterContext context = getThreadContext(); getCookies().addItem(c); if (context.isSamplingStarted()) { context.getVariables().put(c.getName(), c.getValue()); } } }
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/4c59a8c8d56418b78277dcb9933ac67030822d15/CookieManager.java/buggy/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 6151, 276, 13, 288, 202, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 1082, 202, 1330, 18, 4148, 2932, 986, 3878, 315, 397, 276, 18, 10492, 10663, 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, 482, 918, 527, 12, 6151, 276, 13, 288, 202, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 1082, 202, 1330, 18, 4148, 2932, 986, 3878, 315, 397, 276, 18, 10492, 10663, 202, 202, ...
SimpleDateFormat format = new SimpleDateFormat(simpleDateFormatString + "Z");
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
public void testSavedTimeIsInUTC() { Calendar in = Calendar.getInstance(); String simpleDateFormatString = "yyyy-MM-dd'T'HH:mm:ss.SSS"; final String iso8601; if (JVM.is14()) { SimpleDateFormat format = new SimpleDateFormat(simpleDateFormatString + "Z"); String jdkConverted = format.format(in.getTime()); iso8601 = jdkConverted.substring(0, jdkConverted.length() - 2) + ":" + jdkConverted.substring(jdkConverted.length() - 2); } else { // JDK 1.3 can only format with symbolic time zones, hour must match still though ensuring validity SimpleDateFormat format = new SimpleDateFormat(simpleDateFormatString + "z"); String jdkConverted = format.format(in.getTime()); iso8601 = jdkConverted.substring(0, jdkConverted.length() - 3) + "-04:00"; } String converterXML = converter.toString(in); assertEquals(iso8601, converterXML); Calendar out = (Calendar) converter.fromString(converterXML); assertEquals(in, out); }
5142 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5142/fce41daa0b784da3eac37b89f9ae9023da850be5/ISO8601GregorianCalendarConverterTest.java/buggy/xstream/src/test/com/thoughtworks/xstream/converters/extended/ISO8601GregorianCalendarConverterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 16776, 950, 2520, 382, 11471, 1435, 288, 3639, 5542, 316, 273, 5542, 18, 588, 1442, 5621, 3639, 514, 4143, 11878, 780, 273, 315, 17722, 17, 8206, 17, 449, 11, 56, 11, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 16776, 950, 2520, 382, 11471, 1435, 288, 3639, 5542, 316, 273, 5542, 18, 588, 1442, 5621, 3639, 514, 4143, 11878, 780, 273, 315, 17722, 17, 8206, 17, 449, 11, 56, 11, 1...
public IndexedUnionPathIterator() { }
public IndexedUnionPathIterator(){}
public IndexedUnionPathIterator() { }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/0e2298c0c460e281c6e54e92ac95421ec5eca2e4/IndexedUnionPathIterator.java/clean/src/org/apache/xalan/stree/IndexedUnionPathIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22524, 14325, 743, 3198, 1435, 225, 288, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 22524, 14325, 743, 3198, 1435, 225, 288, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public Patch getPatch(Patch bank, int patchNum) {
public IPatch getPatch(IPatch bank, int patchNum) {
public Patch getPatch(Patch bank, int patchNum) { byte sysex[] = new byte[singleSize]; System.arraycopy(bank.sysex, patchNum * singleSize, sysex, 0, singleSize); Patch p = new Patch(sysex); return p; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/NLPatchBankDriver.java/clean/JSynthLib/synthdrivers/NordLead/NLPatchBankDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2971, 505, 1689, 505, 12, 2579, 505, 11218, 16, 509, 4729, 2578, 13, 288, 565, 1160, 1393, 20909, 8526, 273, 394, 1160, 63, 7526, 1225, 15533, 565, 2332, 18, 1126, 3530, 12, 10546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2971, 505, 1689, 505, 12, 2579, 505, 11218, 16, 509, 4729, 2578, 13, 288, 565, 1160, 1393, 20909, 8526, 273, 394, 1160, 63, 7526, 1225, 15533, 565, 2332, 18, 1126, 3530, 12, 10546, ...
public org.quickfix.field.UnderlyingSecurityDesc getUnderlyingSecurityDesc() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityDesc value = new org.quickfix.field.UnderlyingSecurityDesc();
public quickfix.field.UnderlyingSecurityDesc getUnderlyingSecurityDesc() throws FieldNotFound { quickfix.field.UnderlyingSecurityDesc value = new quickfix.field.UnderlyingSecurityDesc();
public org.quickfix.field.UnderlyingSecurityDesc getUnderlyingSecurityDesc() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityDesc value = new org.quickfix.field.UnderlyingSecurityDesc(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderStatusRequest.java/buggy/src/java/src/quickfix/fix44/OrderStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 4217, 10833, 765, 6291, 4368, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 4217, 10833, 765, 6291, 4368, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 4...
OMElement element) throws DeploymentException {
OMElement element) throws DeploymentException {
protected MessageReceiver loadMessageReceiver(ClassLoader loader, OMElement element) throws DeploymentException { OMAttribute receiverName = element.getAttribute(new QName( TAG_CLASS_NAME)); String className = receiverName.getAttributeValue(); MessageReceiver receiver = null; try { Class messageReceiver; if ((className != null) && !"".equals(className)) { messageReceiver = Loader.loadClass(loader, className); receiver = (MessageReceiver) messageReceiver.newInstance(); } } catch (ClassNotFoundException e) { throw new DeploymentException(Messages.getMessage( DeploymentErrorMsgs.ERROR_IN_LOADING_MESSAGE_RECEIVER, "ClassNotFoundException", className), e); } catch (IllegalAccessException e) { throw new DeploymentException(Messages.getMessage( DeploymentErrorMsgs.ERROR_IN_LOADING_MESSAGE_RECEIVER, "IllegalAccessException", className), e); } catch (InstantiationException e) { throw new DeploymentException(Messages.getMessage( DeploymentErrorMsgs.ERROR_IN_LOADING_MESSAGE_RECEIVER, "InstantiationException", className), e); } return receiver; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9b2321c7ec68bbe298165ee2bf50b200069ebf01/DescriptionBuilder.java/buggy/modules/kernel/src/org/apache/axis2/deployment/DescriptionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2350, 12952, 1262, 1079, 12952, 12, 7805, 4088, 16, 5411, 531, 12310, 930, 13, 1216, 8587, 503, 288, 3639, 28839, 1499, 5971, 461, 273, 930, 18, 588, 1499, 12, 2704, 16723, 12, 7734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2350, 12952, 1262, 1079, 12952, 12, 7805, 4088, 16, 5411, 531, 12310, 930, 13, 1216, 8587, 503, 288, 3639, 28839, 1499, 5971, 461, 273, 930, 18, 588, 1499, 12, 2704, 16723, 12, 7734...
aCounter.inc(); try { aCounter.inc(); } catch (AssertionFailedError ex) { return; } fail("Should have failed immediately"); }
aCounter.inc(); try { aCounter.inc(); } catch (AssertionFailedError ex) { return; } fail("Should have failed immediately"); }
public void testFailImmediately() { ExpectationCounter aCounter = new ExpectationCounter("a test counter"); aCounter.setExpected(1); aCounter.inc(); try { aCounter.inc(); } catch (AssertionFailedError ex) { return; } fail("Should have failed immediately"); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/ExpectationCounterTest.java/clean/jmock/core/src/test/jmock/expectation/ExpectationCounterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3754, 1170, 7101, 1435, 288, 3639, 15510, 367, 4789, 279, 4789, 273, 394, 15510, 367, 4789, 2932, 69, 1842, 3895, 8863, 3639, 279, 4789, 18, 542, 6861, 12, 21, 1769, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3754, 1170, 7101, 1435, 288, 3639, 15510, 367, 4789, 279, 4789, 273, 394, 15510, 367, 4789, 2932, 69, 1842, 3895, 8863, 3639, 279, 4789, 18, 542, 6861, 12, 21, 1769, 3639...
try { saxFactory = SAXParserFactory.newInstance();
saxFactory = SAXParserFactory.newInstance();
public boolean parse( File file ) { try { saxFactory = SAXParserFactory.newInstance(); SAXParser parser = saxFactory.newSAXParser(); InputSource is = new InputSource( new FileInputStream( file ) ); parser.parse( is, this ); return true; } catch ( Exception e ) { e.printStackTrace(); return false; } }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/bab8d3fd909f5ba07ec58c6ecc29a1011c94f910/AbstractReader.java/clean/maven-mboot2/src/main/java/util/AbstractReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1109, 12, 1387, 585, 262, 565, 288, 3639, 775, 3639, 288, 5411, 20319, 1733, 273, 10168, 2678, 1733, 18, 2704, 1442, 5621, 5411, 10168, 2678, 2082, 273, 20319, 1733, 18, 2704, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1109, 12, 1387, 585, 262, 565, 288, 3639, 775, 3639, 288, 5411, 20319, 1733, 273, 10168, 2678, 1733, 18, 2704, 1442, 5621, 5411, 10168, 2678, 2082, 273, 20319, 1733, 18, 2704, ...
String label = null, id = null;
String label = null, id = null, code = query.getUnusedConstraintCode();
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); PathQuery query = (PathQuery) session.getAttribute(Constants.QUERY); MainForm mf = (MainForm) form; PathNode node = (PathNode) query.getNodes().get(mf.getPath()); Integer cindex = (request.getParameter("cindex") != null) ? new Integer(request.getParameter("cindex")) : null; String label = null, id = null; boolean editable = false; if (cindex != null) { // We're updating an existing constraint, just remove the old one Constraint c = (Constraint) node.getConstraints().get(cindex.intValue()); node.removeConstraint(c); label = c.getDescription(); id = c.getIdentifier(); editable = c.isEditable(); if (request.getParameter("template") != null) { // We're just updating template settings node.getConstraints().add(new Constraint(c.getOp(), c.getValue(), mf.isEditable(), mf.getTemplateLabel(), mf.getTemplateId())); mf.reset(mapping, request); return mapping.findForward("query"); } } if (request.getParameter("attribute") != null && cindex == null) { // New constraint label = mf.getTemplateLabel(); id = mf.getTemplateId(); editable = mf.isEditable(); } if (request.getParameter("attribute") != null) { ConstraintOp constraintOp = ConstraintOp. getOpForIndex(Integer.valueOf(mf.getAttributeOp())); Object constraintValue = mf.getParsedAttributeValue(); Constraint c = new Constraint(constraintOp, constraintValue, editable, label, id); node.getConstraints().add(c); } if (request.getParameter("bag") != null) { ConstraintOp constraintOp = ConstraintOp. getOpForIndex(Integer.valueOf(mf.getBagOp())); Object constraintValue = mf.getBagValue(); node.getConstraints().add(new Constraint(constraintOp, constraintValue)); } if (request.getParameter ("loop") != null) { ConstraintOp constraintOp = ConstraintOp. getOpForIndex(Integer.valueOf(mf.getLoopQueryOp())); Object constraintValue = mf.getLoopQueryValue(); node.getConstraints().add(new Constraint(constraintOp, constraintValue)); } if (request.getParameter("subclass") != null) { node.setType(mf.getSubclassValue()); session.setAttribute("path", mf.getSubclassValue()); } if (request.getParameter("nullnotnull") != null) { if (mf.getNullConstraint().equals("NotNULL")) { node.getConstraints() .add(new Constraint(ConstraintOp.IS_NOT_NULL, null)); } else { node.getConstraints() .add(new Constraint(ConstraintOp.IS_NULL, null)); } } TemplateBuildState tbs = (TemplateBuildState) session.getAttribute(Constants.TEMPLATE_BUILD_STATE); mf.reset(mapping, request); return mapping.findForward("query"); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/d1353887d37276cfc4755f700df7b6b9c1580e78/MainAction.java/clean/intermine/web/main/src/org/intermine/web/MainAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 1185, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 1185, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, ...
public boolean isCellEditable(int rowIndex, int columnIndex);
boolean isCellEditable(int rowIndex, int columnIndex);
public boolean isCellEditable(int rowIndex, int columnIndex);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/TableModel.java/buggy/core/src/classpath/javax/javax/swing/table/TableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 4020, 15470, 12, 474, 15361, 16, 509, 14882, 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, 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, 225, 202, 482, 1250, 353, 4020, 15470, 12, 474, 15361, 16, 509, 14882, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Double o = getDoubleArg(evaluator, args, 0); return format.format(o); }
final Member member0 = getMemberArg(evaluator, args, 0, true); final Member member1 = getMemberArg(evaluator, args, 1, true); if (member0.isNull() || member1.isNull()) { return Collections.EMPTY_LIST; } if (member0.getLevel() != member1.getLevel()) { throw newEvalException(this, "Members must belong to the same level"); } return FunUtil.memberRange(evaluator, member0, member1); }
public Object evaluate(Evaluator evaluator, Exp[] args) { Double o = getDoubleArg(evaluator, args, 0); return format.format(o); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/6edfd201208294a63e08eefe822045d54d51622b/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 7682, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 18701, 3698, 320, 273, 16097, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 18701, 327, 740, 18, 2139, 12, 83, 1769, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7682, 1071, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 18701, 3698, 320, 273, 16097, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 18701, 327, 740, 18, 2139, 12, 83, 1769, 1...
Iterator iter = entryIterator();
Iterator iter = modifiableEntryIterator();
public RubyArray shift() { modify(); Iterator iter = entryIterator(); Map.Entry entry = (Map.Entry)iter.next(); iter.remove(); return RubyArray.newArray(ruby, (RubyObject)entry.getKey(), (RubyObject)entry.getValue()); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/ca0297671a9134bbd35c936224da11609c37fa62/RubyHash.java/buggy/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 4654, 1435, 288, 202, 202, 17042, 5621, 3639, 4498, 1400, 273, 681, 8424, 1622, 3198, 5621, 3639, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 2165, 18, 4285, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 1076, 4654, 1435, 288, 202, 202, 17042, 5621, 3639, 4498, 1400, 273, 681, 8424, 1622, 3198, 5621, 3639, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 2165, 18, 4285, 562...
InstallUtil.getRemoteCa(getController().getModel());
getRemoteCa();
public void execute() throws InstallerException { fireStarted(); int stepCount = 2; double percentPerStep = 100/stepCount; double percent = 0; InstallUtil.getRemoteCa(getController().getModel()); fireProgress("...ca complete!", (int)percent); createOspConfig(); fireProgress("...os provisioner configuration created!", (int)percent); fireFinished(); }
25778 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25778/e0174ba5e6bc124b37fdeb42b70a998b804400ea/GrmOspConfigurationTask.java/clean/src/com/sun/grid/grm/install/tasks/GrmOspConfigurationTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 10284, 264, 503, 288, 3639, 4452, 9217, 5621, 7734, 509, 2235, 1380, 273, 576, 31, 3639, 1645, 5551, 2173, 4160, 273, 2130, 19, 4119, 1380, 31, 3639, 1645, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 10284, 264, 503, 288, 3639, 4452, 9217, 5621, 7734, 509, 2235, 1380, 273, 576, 31, 3639, 1645, 5551, 2173, 4160, 273, 2130, 19, 4119, 1380, 31, 3639, 1645, 55...
n = n.getNextSibling()) {
n = getNextSibling(n)) {
protected void fillAttributedStringBuffer(BridgeContext ctx, Element element, boolean top, Integer bidiLevel, AttributedStringBuffer asb, List lnLocs) { // 'requiredFeatures', 'requiredExtensions', 'systemLanguage' & // 'display="none". if ((!SVGUtilities.matchUserAgent(element, ctx.getUserAgent())) || (!CSSUtilities.convertDisplay(element))) { return; } String s = XMLSupport.getXMLSpace(element); boolean preserve = s.equals(SVG_PRESERVE_VALUE); boolean prevEndsWithSpace; Element nodeElement = element; if (top) endLimit = startLen = asb.length(); if (preserve) endLimit = startLen; Map map = getAttributeMap(ctx, element, null, bidiLevel); Object o = map.get(TextAttribute.BIDI_EMBEDDING); Integer subBidiLevel = bidiLevel; if (o != null) subBidiLevel = (Integer)o; int lineBreak = -1; if (lnLocs.size() != 0) lineBreak = ((Integer)lnLocs.get(lnLocs.size()-1)).intValue(); for (Node n = element.getFirstChild(); n != null; n = n.getNextSibling()) { if (preserve) { prevEndsWithSpace = false; } else { int len = asb.length(); if (len == startLen) prevEndsWithSpace = true; else { prevEndsWithSpace = (asb.getLastChar() == ' '); int idx = lnLocs.size()-1; if (!prevEndsWithSpace && (idx >= 0)) { Integer i = (Integer)lnLocs.get(idx); if (i.intValue() == len) prevEndsWithSpace = true; } } } switch (n.getNodeType()) { case Node.ELEMENT_NODE: // System.out.println("Element: " + n); if (!SVG_NAMESPACE_URI.equals(n.getNamespaceURI())) break; nodeElement = (Element)n; String ln = n.getLocalName(); if (ln.equals(SVG12Constants.SVG_FLOW_LINE_TAG)) { fillAttributedStringBuffer(ctx, nodeElement, false, subBidiLevel, asb, lnLocs); // System.out.println("Line: " + asb.length() + // " - '" + asb + "'"); lineBreak = asb.length(); lnLocs.add(new Integer(lineBreak)); } else if (ln.equals(SVG12Constants.SVG_FLOW_SPAN_TAG) || ln.equals(SVG12Constants.SVG_ALT_GLYPH_TAG)) { fillAttributedStringBuffer(ctx, nodeElement, false, subBidiLevel, asb, lnLocs); } else if (ln.equals(SVG_A_TAG)) { if (ctx.isInteractive()) { NodeEventTarget target = (NodeEventTarget)nodeElement; UserAgent ua = ctx.getUserAgent(); target.addEventListenerNS (XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_CLICK, new SVGAElementBridge.AnchorListener(ua), false, null); target.addEventListenerNS (XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_MOUSEOVER, new SVGAElementBridge.CursorMouseOverListener(ua), false, null); target.addEventListenerNS (XMLConstants.XML_EVENTS_NAMESPACE_URI, SVG_EVENT_MOUSEOUT, new SVGAElementBridge.CursorMouseOutListener(ua), false, null); } fillAttributedStringBuffer(ctx, nodeElement, false, subBidiLevel, asb, lnLocs); } else if (ln.equals(SVG_TREF_TAG)) { String uriStr = XLinkSupport.getXLinkHref((Element)n); Element ref = ctx.getReferencedElement((Element)n, uriStr); s = TextUtilities.getElementContent(ref); s = normalizeString(s, preserve, prevEndsWithSpace); if (s != null) { Map m = getAttributeMap(ctx, nodeElement, null, bidiLevel); asb.append(s, m); } } break; case Node.TEXT_NODE: case Node.CDATA_SECTION_NODE: s = n.getNodeValue(); s = normalizeString(s, preserve, prevEndsWithSpace); asb.append(s, map); if (preserve) endLimit = asb.length(); } } if (top) { while ((endLimit < asb.length()) && (asb.getLastChar() == ' ')) { int idx = lnLocs.size()-1; int len = asb.length(); if (idx >= 0) { Integer i = (Integer)lnLocs.get(idx); if (i.intValue() >= len) { i = new Integer(len-1); lnLocs.set(idx, i); idx--; while (idx >= 0) { i = (Integer)lnLocs.get(idx); if (i.intValue() < len-1) break; lnLocs.remove(idx); idx--; } } } asb.stripLast(); } } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/988191ff4fab6ab5f32c2056d997e333fc1081dd/SVGFlowRootElementBridge.java/clean/sources/org/apache/batik/bridge/svg12/SVGFlowRootElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3636, 861, 11050, 780, 1892, 12, 13691, 1042, 1103, 16, 4766, 2868, 3010, 930, 16, 4766, 2868, 1250, 1760, 16, 4766, 2868, 2144, 9949, 77, 2355, 16, 4766, 2868, 2380, 11050, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3636, 861, 11050, 780, 1892, 12, 13691, 1042, 1103, 16, 4766, 2868, 3010, 930, 16, 4766, 2868, 1250, 1760, 16, 4766, 2868, 2144, 9949, 77, 2355, 16, 4766, 2868, 2380, 11050, 78...
info.prepareTrigger(broker, transaction, getName() + "/" + docName, oldDoc);
info.prepareTrigger(broker, transaction, getName() + '/' + docName, oldDoc);
private IndexInfo validateInternal(Txn transaction, DBBroker broker, String docName, ValidateBlock doValidate) throws EXistException, PermissionDeniedException, TriggerException, SAXException, LockException { if (broker.isReadOnly()) throw new PermissionDeniedException("Database is read-only"); DocumentImpl document, oldDoc = null; boolean oldDocLocked = false; try { getLock().acquire(Lock.WRITE_LOCK); oldDoc = (DocumentImpl) documents.get(docName); document = new DocumentImpl(broker, docName, this); checkPermissions(transaction, broker, docName, oldDoc); manageDocumentInformation(broker, docName, oldDoc, document ); Indexer indexer = new Indexer(broker, transaction); IndexInfo info = new IndexInfo(indexer); indexer.setDocument(document); addObserversToIndexer(broker, indexer); indexer.setValidating(true); // if !triggersEnabled, setupTriggers will return null anyway, so no need to check info.setTrigger( setupTriggers(broker, docName, oldDoc != null), oldDoc == null ? Trigger.STORE_DOCUMENT_EVENT : Trigger.UPDATE_DOCUMENT_EVENT); info.prepareTrigger(broker, transaction, getName() + "/" + docName, oldDoc); LOG.debug("Scanning document " + name); doValidate.run(info); document.setMaxDepth(document.getMaxDepth() + 1); document.calculateTreeLevelStartPoints(); // new document is valid: remove old document if (oldDoc != null) { LOG.debug("removing old document " + oldDoc.getFileName()); oldDoc.getUpdateLock().acquire(Lock.WRITE_LOCK); oldDocLocked = true; if (oldDoc.getResourceType() == DocumentImpl.BINARY_FILE) broker.removeBinaryResource(transaction, (BinaryDocument) oldDoc); else broker.removeDocument(transaction, oldDoc, false); oldDoc.copyOf(document); indexer.setDocumentObject(oldDoc); oldDocLocked = false; // old has become new at this point document = oldDoc; } else { document.getUpdateLock().acquire(Lock.WRITE_LOCK); document.setDocId(broker.getNextDocId(transaction, this)); addDocument(transaction, broker, document); } indexer.setValidating(false); info.postValidateTrigger(); return info; } finally { if (oldDocLocked) oldDoc.getUpdateLock().release(Lock.WRITE_LOCK); getLock().release(); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/22b10eee95306db142447d8c4e16a7ac63d2021e/Collection.java/clean/src/org/exist/collections/Collection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3340, 966, 1954, 3061, 12, 13789, 2492, 16, 2383, 11194, 8625, 16, 514, 997, 461, 16, 3554, 1768, 741, 4270, 13, 1875, 202, 15069, 5675, 376, 503, 16, 8509, 15877, 16, 11321, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3340, 966, 1954, 3061, 12, 13789, 2492, 16, 2383, 11194, 8625, 16, 514, 997, 461, 16, 3554, 1768, 741, 4270, 13, 1875, 202, 15069, 5675, 376, 503, 16, 8509, 15877, 16, 11321, ...
AST tmp1703_AST_in = (AST)_t;
AST tmp1715_AST_in = (AST)_t;
public final void droptablestate(AST _t) throws RecognitionException { AST droptablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1272 = _t; AST tmp1702_AST_in = (AST)_t; match(_t,DROP); _t = _t.getFirstChild(); AST tmp1703_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); tbl(_t,CQ.SCHEMATABLESYMBOL); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1272; _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, 31473, 337, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 31473, 337, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31473, 337, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 31473, 337, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 85...
public final void nextOTriApex()
public static final void nextOTriApex(OTriangle o, OTriangle that)
public final void nextOTriApex() { nextOTri(); symOTri(); nextOTri(); }
46058 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46058/1204803e41d9f0455d760e943e188ca4e850c9d1/OTriangle.java/buggy/amibe/src/org/jcae/mesh/amibe/ds/OTriangle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1024, 1974, 566, 1294, 338, 1435, 202, 95, 202, 202, 4285, 1974, 566, 5621, 202, 202, 8117, 1974, 566, 5621, 202, 202, 4285, 1974, 566, 5621, 202, 97, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1024, 1974, 566, 1294, 338, 1435, 202, 95, 202, 202, 4285, 1974, 566, 5621, 202, 202, 8117, 1974, 566, 5621, 202, 202, 4285, 1974, 566, 5621, 202, 97, 2, -100, -100,...
CmsResource childResource = (CmsResource)resources.get(i);
CmsResource childResource = (CmsResource)resources.get(i);
public void changeLastModifiedProjectId( CmsObject cms, CmsSecurityManager securityManager, CmsResource resource ) throws CmsException { // collect all resources in the folder (include deleted ones) List resources = securityManager.readChildResources( cms.getRequestContext(), resource, CmsResourceFilter.ALL, true, true); // handle the folder itself super.changeLastModifiedProjectId(cms, securityManager, resource); // now walk through all sub-resources in the folder for (int i = 0; i < resources.size(); i++) { CmsResource childResource = (CmsResource)resources.get(i); if (childResource.isFolder()) { // recurse into this method for subfolders changeLastModifiedProjectId(cms, securityManager, childResource); } else { // handle child resources getResourceType( childResource.getTypeId() ).changeLastModifiedProjectId(cms, securityManager, childResource); } } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/c7083871cfaaede3aa187a175b34be606d8431f2/A_CmsResourceTypeFolderBase.java/buggy/src/org/opencms/file/types/A_CmsResourceTypeFolderBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2549, 14747, 4109, 548, 12, 3639, 14371, 6166, 16, 540, 2149, 4368, 1318, 4373, 1318, 16, 540, 7630, 1058, 565, 262, 1216, 11228, 288, 3639, 368, 3274, 777, 2703, 316, 326, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2549, 14747, 4109, 548, 12, 3639, 14371, 6166, 16, 540, 2149, 4368, 1318, 4373, 1318, 16, 540, 7630, 1058, 565, 262, 1216, 11228, 288, 3639, 368, 3274, 777, 2703, 316, 326, 300...
public org.quickfix.field.SendingTime getSendingTime() throws FieldNotFound { org.quickfix.field.SendingTime value = new org.quickfix.field.SendingTime();
public quickfix.field.SendingTime getSendingTime() throws FieldNotFound { quickfix.field.SendingTime value = new quickfix.field.SendingTime();
public org.quickfix.field.SendingTime getSendingTime() throws FieldNotFound { org.quickfix.field.SendingTime value = new org.quickfix.field.SendingTime(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Message.java/buggy/src/java/src/quickfix/fix44/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 16322, 950, 1322, 2846, 950, 1435, 1216, 2286, 2768, 1377, 288, 2358, 18, 19525, 904, 18, 1518, 18, 16322, 950, 460, 273, 394, 2358, 18, 19525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 16322, 950, 1322, 2846, 950, 1435, 1216, 2286, 2768, 1377, 288, 2358, 18, 19525, 904, 18, 1518, 18, 16322, 950, 460, 273, 394, 2358, 18, 19525, ...
public TA_RetCode HT_DCPHASE( int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double []detrender_Odd = new double[3]; ; double []detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd ; double prev_detrender_Even ; double prev_detrender_input_Odd ; double prev_detrender_input_Even ; double []Q1_Odd = new double[3]; ; double []Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd ; double prev_Q1_Even ; double prev_Q1_input_Odd ; double prev_Q1_input_Even ; double []jI_Odd = new double[3]; ; double []jI_Even = new double[3]; ; double jI; double prev_jI_Odd ; double prev_jI_Even ; double prev_jI_input_Odd ; double prev_jI_input_Even ; double []jQ_Odd = new double[3]; ; double []jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd ; double prev_jQ_Even ; double prev_jQ_input_Odd ; double prev_jQ_input_Even ; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg, constDeg2RadBy360; double todayValue, smoothPeriod; int smoothPrice_Idx = 0; double []smoothPrice; int maxIdx_smoothPrice = ( 50 -1) ; int idx; int DCPeriodInt; double DCPhase, DCPeriod, imagPart, realPart; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; { smoothPrice = new double[maxIdx_smoothPrice +1]; } ; tempReal = Math.atan (1); rad2Deg = 45.0/tempReal; constDeg2RadBy360 = tempReal*8.0; lookbackTotal = 63 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_DCPHASE.ordinal()]) ; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*3.0; trailingWMAValue = 0.0; i = 34; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; } while( --i != 0); hilbertIdx = 0; { detrender_Odd [0] = 0.0; detrender_Odd [1] = 0.0; detrender_Odd [2] = 0.0; detrender_Even [0] = 0.0; detrender_Even [1] = 0.0; detrender_Even [2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd [0] = 0.0; Q1_Odd [1] = 0.0; Q1_Odd [2] = 0.0; Q1_Even [0] = 0.0; Q1_Even [1] = 0.0; Q1_Even [2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd [0] = 0.0; jI_Odd [1] = 0.0; jI_Odd [2] = 0.0; jI_Even [0] = 0.0; jI_Even [1] = 0.0; jI_Even [2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd [0] = 0.0; jQ_Odd [1] = 0.0; jQ_Odd [2] = 0.0; jQ_Even [0] = 0.0; jQ_Even [1] = 0.0; jQ_Even [2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; smoothPeriod = 0.0; for( i=0; i < 50 ; i++ ) smoothPrice[i] = 0.0; DCPhase = 0.0; while( today <= endIdx ) { adjustedPrevPeriod = (0.075*period)+0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; smoothPrice[smoothPrice_Idx] = smoothedValue; if( (today%2) == 0 ) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even [hilbertIdx]; detrender_Even [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even ; prev_detrender_Even = b * prev_detrender_input_Even ; detrender += prev_detrender_Even ; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even [hilbertIdx]; Q1_Even [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even ; prev_Q1_Even = b * prev_Q1_input_Even ; Q1 += prev_Q1_Even ; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even [hilbertIdx]; jI_Even [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even ; prev_jI_Even = b * prev_jI_input_Even ; jI += prev_jI_Even ; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even [hilbertIdx]; jQ_Even [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even ; prev_jQ_Even = b * prev_jQ_input_Even ; jQ += prev_jQ_Even ; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if( ++hilbertIdx == 3 ) hilbertIdx = 0; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd [hilbertIdx]; detrender_Odd [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd ; prev_detrender_Odd = b * prev_detrender_input_Odd ; detrender += prev_detrender_Odd ; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd [hilbertIdx]; Q1_Odd [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd ; prev_Q1_Odd = b * prev_Q1_input_Odd ; Q1 += prev_Q1_Odd ; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd [hilbertIdx]; jI_Odd [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd ; prev_jI_Odd = b * prev_jI_input_Odd ; jI += prev_jI_Odd ; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd [hilbertIdx]; jQ_Odd [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd ; prev_jQ_Odd = b * prev_jQ_input_Odd ; jQ += prev_jQ_Odd ; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if( (Im != 0.0) && (Re != 0.0) ) period = 360.0 / ( Math.atan (Im/Re)*rad2Deg); tempReal2 = 1.5*tempReal; if( period > tempReal2) period = tempReal2; tempReal2 = 0.67*tempReal; if( period < tempReal2 ) period = tempReal2; if( period < 6 ) period = 6; else if( period > 50 ) period = 50; period = (0.2*period) + (0.8 * tempReal); smoothPeriod = (0.33*period)+(0.67*smoothPeriod); DCPeriod = smoothPeriod+0.5; DCPeriodInt = (int)DCPeriod; realPart = 0.0; imagPart = 0.0; idx = smoothPrice_Idx; for( i=0; i < DCPeriodInt; i++ ) { tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; tempReal2 = smoothPrice[idx]; realPart += Math.sin (tempReal)*tempReal2; imagPart += Math.cos (tempReal)*tempReal2; if( idx == 0 ) idx = 50 -1; else idx--; } tempReal = Math.abs (imagPart); if( tempReal > 0.0 ) DCPhase = Math.atan (realPart/imagPart)*rad2Deg; else if( tempReal <= 0.01 ) { if( realPart < 0.0 ) DCPhase -= 90.0; else if( realPart > 0.0 ) DCPhase += 90.0; } DCPhase += 90.0; DCPhase += 360.0 / smoothPeriod; if( imagPart < 0.0 ) DCPhase += 180.0; if( DCPhase > 315.0 ) DCPhase -= 360.0; if( today >= startIdx ) { outReal[outIdx++] = DCPhase; } { smoothPrice_Idx ++; if( smoothPrice_Idx > maxIdx_smoothPrice ) smoothPrice_Idx = 0; } ; today++; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 399, 37, 67, 7055, 1085, 19408, 67, 40, 4258, 44, 4429, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 399, 37, 67, 7055, 1085, 19408, 67, 40, 4258, 44, 4429, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, ...
public void subdivide(CubicCurve2D l, CubicCurve2D r)
public void subdivide(CubicCurve2D left, CubicCurve2D right)
public void subdivide(CubicCurve2D l, CubicCurve2D r) { if (l == null) l = new CubicCurve2D.Double(); if (r == null) r = new CubicCurve2D.Double(); // Use empty slots at end to share single array. double[] d = new double[] { getX1(), getY1(), getCtrlX1(), getCtrlY1(), getCtrlX2(), getCtrlY2(), getX2(), getY2(), 0, 0, 0, 0, 0, 0 }; subdivide(d, 0, d, 0, d, 6); l.setCurve(d, 0); r.setCurve(d, 6); }
25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/f50cd386020536bedfaae8a28621a9bb308e4d21/CubicCurve2D.java/clean/libjava/java/awt/geom/CubicCurve2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 25741, 831, 12, 39, 17616, 9423, 22, 40, 2002, 16, 385, 17616, 9423, 22, 40, 2145, 13, 225, 288, 565, 309, 261, 80, 422, 446, 13, 1377, 328, 273, 394, 385, 17616, 9423, 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, 282, 1071, 918, 25741, 831, 12, 39, 17616, 9423, 22, 40, 2002, 16, 385, 17616, 9423, 22, 40, 2145, 13, 225, 288, 565, 309, 261, 80, 422, 446, 13, 1377, 328, 273, 394, 385, 17616, 9423, 22,...
final String newValue = (String)event.getNewValue(); final String oldValue = (String)event.getOldValue();
public void preferenceChange(PreferenceChangeEvent event) { if (AptPreferenceConstants.APT_GENSRCDIR.equals(event.getKey())) { final boolean aptEnabled = AptConfig.isEnabled(_aptProject.getJavaProject()); if( AptPlugin.DEBUG ) AptPlugin.trace("configure generated source directory new value = " + //$NON-NLS-1$ event.getNewValue() + " old value = " + event.getOldValue() + //$NON-NLS-1$ " APT is enabled = " + aptEnabled); //$NON-NLS-1$ // If APT is enabled, // clean up the old cp entry, deleted the old folder and // create the new one and update the classpath. if( aptEnabled ) configureGeneratedSourceFolder( (String)event.getNewValue(), (String)event.getOldValue() ); else setGenratedSourceFolderName((String)event.getNewValue()); } else if(AptPreferenceConstants.APT_ENABLED.equals(event.getKey()) ){ final String newValue = (String)event.getNewValue(); final String oldValue = (String)event.getOldValue(); if( AptPlugin.DEBUG ){ AptPlugin.trace("Got preference change event for " + AptPreferenceConstants.APT_ENABLED ); //$NON-NLS-1$ } // no-op; if(newValue.equals(oldValue)){ return; } final boolean isEnabling = Boolean.parseBoolean(newValue); if( AptPlugin.DEBUG ){ if( isEnabling ) AptPlugin.trace("enabling APT"); //$NON-NLS-1$ else AptPlugin.trace("diabling APT"); //$NON-NLS-1$ } if( isEnabling ) configureGeneratedSourceFolder(); else{ final IFolder srcFolder = getGeneratedSourceFolder(); projectClean(true); resetGeneratedSrcFolder(srcFolder, false); } } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/09941192fc937c04f2468716f61b7e58652eda2b/GeneratedFileManager.java/clean/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/generatedfile/GeneratedFileManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 11555, 3043, 12, 9624, 20930, 871, 13, 288, 9506, 202, 430, 261, 37, 337, 9624, 2918, 18, 37, 1856, 67, 16652, 28413, 4537, 18, 14963, 12, 2575, 18, 588, 653, 1435, 3719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 11555, 3043, 12, 9624, 20930, 871, 13, 288, 9506, 202, 430, 261, 37, 337, 9624, 2918, 18, 37, 1856, 67, 16652, 28413, 4537, 18, 14963, 12, 2575, 18, 588, 653, 1435, 3719...
window.getTrimManager().removeTrim(this);
private void showPerspectiveBar() { switch (currentLocation) { case TOP_LEFT: // Make sure that the 'trim' is removed window.getTrimManager().removeTrim(this); topBar.setRight(null); topBar.setBottom(perspectiveCoolBarWrapper.getControl()); break; case TOP_RIGHT: // Make sure that the 'trim' is removed window.getTrimManager().removeTrim(this); topBar.setBottom(null); topBar.setRight(perspectiveCoolBarWrapper.getControl()); topBar.setRightWidth(DEFAULT_RIGHT_X); break; case LEFT: topBar.setBottom(null); topBar.setRight(null); LayoutUtil.resize(topBar); window.getTrimManager().addTrim(SWT.LEFT, this); break; default: return; } LayoutUtil.resize(perspectiveBar.getControl()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/58ea72d707acb37f10fe93c79a0c89909d7795cc/PerspectiveSwitcher.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2405, 14781, 16772, 5190, 1435, 288, 202, 202, 9610, 261, 2972, 2735, 13, 288, 202, 202, 3593, 18680, 67, 10066, 30, 1082, 202, 759, 4344, 3071, 716, 326, 296, 5290, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2405, 14781, 16772, 5190, 1435, 288, 202, 202, 9610, 261, 2972, 2735, 13, 288, 202, 202, 3593, 18680, 67, 10066, 30, 1082, 202, 759, 4344, 3071, 716, 326, 296, 5290, 11, ...
socket = new Socket ();
socket = new NIOSocket (new PlainSocketImpl(), this);
public SocketChannelImpl (SelectorProvider provider) { super (provider); socket = new Socket (); }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/7113237bf329e1245f096787093aed051ea2dd23/SocketChannelImpl.java/clean/libjava/gnu/java/nio/SocketChannelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8758, 2909, 2828, 261, 4320, 2249, 2893, 13, 1082, 3639, 288, 565, 2240, 261, 6778, 1769, 565, 2987, 273, 394, 423, 4294, 4534, 261, 2704, 17367, 4534, 2828, 9334, 333, 1769, 225, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8758, 2909, 2828, 261, 4320, 2249, 2893, 13, 1082, 3639, 288, 565, 2240, 261, 6778, 1769, 565, 2987, 273, 394, 423, 4294, 4534, 261, 2704, 17367, 4534, 2828, 9334, 333, 1769, 225, 2...
if (stride != 1 && stride != -1 ) { report ("18b stride != +/-1 ("+stride+")\n"); return;}
if (stride != 1 && stride != -1) { report ("18b stride != +/-1 ("+stride+")\n"); return true;}
static void unrollLeaf (OPT_LSTNode t, OPT_IR ir) { int instructionsInLoop = 0; OPT_BasicBlock exitBlock = null, succBlock = null, predBlock = null; OPT_BitVector nloop = t.loop; OPT_BasicBlock header = t.header; OPT_Instruction tmp; if (nloop == null) return; // examine what we got... report ("Leaf loop in " + ir.method + ": "+nloop+"\n"); if (ir.hasReachableExceptionHandlers()){ report ("0 IR may have exception handlers\n"); return;} // determine loop structure by looking at its blocks OPT_BasicBlockEnumeration loopBlocks = ir.getBasicBlocks(nloop); int blocks = 0; while (loopBlocks.hasMoreElements()) { OPT_BasicBlock b = loopBlocks.next(); blocks++; // check for size instructionsInLoop += b.getNumberOfRealInstructions(); if (instructionsInLoop > MaxInstructions) { report ("1 is too big\n"); return;} // look at the in edges. We want the header to be the only // block with out of loop incoming edges. OPT_BasicBlockEnumeration e = b.getIn(); if (b != header) { while (e.hasMoreElements()) { OPT_BasicBlock o = e.next(); if (!nloop.get(o.getNumber())) { report ("2 interior pointers.\n"); return;} } } else { // check the headers predecessors: there should be // one out of loop input and one backedge. // We can extend this for loops with several backedges, // if they all have the same conditions. int inEdges = 0; while (e.hasMoreElements()) { inEdges++; OPT_BasicBlock o = e.next(); if (!nloop.get(o.getNumber())) { if (predBlock == null) predBlock = o; else {report ("3 multi entry header.\n"); return;} } else { if (exitBlock == null) exitBlock = o; else {report ("4 multiple back edges.\n"); return;} } } } } // exitBlock must exit while (exitBlock.getNumberOfOut() == 1 && exitBlock.getNumberOfIn() == 1) exitBlock = exitBlock.getIn().next(); OPT_BasicBlockEnumeration e = exitBlock.getOut(); boolean exits = false; while (e.hasMoreElements()) { OPT_BasicBlock b = e.next(); if (!nloop.get(b.getNumber())) {exits = true; break;} } if (!exits) {report ("5 exitBlock doesn't exit\n"); return;} if (exitBlock == header && blocks > 1) { report("6 while loop? ("+blocks+")\n"); return;} // So far, so good. Examine the exit test. OPT_Instruction origBranch = exitBlock.firstBranchInstruction(); if (origBranch != exitBlock.lastRealInstruction()) { OPT_Instruction aGoto = origBranch.nextInstructionInCodeOrder(); if (aGoto.operator.opcode != GOTO_opcode) { report ("7 too complex exit\n"); return;} succBlock = Label.getBlock(Goto.getTarget(aGoto).target).block; if (VM.VerifyAssertions) VM.assert (aGoto == exitBlock.lastRealInstruction()); } else { succBlock = exitBlock.getFallThroughBlock(); } if (origBranch.operator.opcode != INT_IFCMP_opcode) { report("8 branch isn't int_ifcmp: "+origBranch.operator+".\n"); return;} // examine operands: OPT_Operand op1 = follow(IfCmp.getVal1(origBranch)); OPT_Operand op2 = follow(IfCmp.getVal2(origBranch)); OPT_ConditionOperand cond = (OPT_ConditionOperand)IfCmp.getCond(origBranch).copy(); OPT_RegisterOperand ifcmpGuard = IfCmp.getGuardResult(origBranch); double backBranchProbability = IfCmp.getBranchProfile (origBranch).takenProbability; if (!loopInvariant (op2, nloop)) { if (loopInvariant (op1, nloop)) { OPT_Operand op = op1; op1 = op2; op2 = op; cond.flipOperands(); } else { report ("8a op1 and op2 may not be loop invariant\n"); return;} } OPT_BasicBlock target = Label.getBlock(IfCmp.getTarget(origBranch).target).block; if (!(op1 instanceof OPT_RegisterOperand)) { report ("9 op1 of ifcmp isn't a register\n"); return;} OPT_RegisterOperand rop1 = (OPT_RegisterOperand) op1; OPT_Register reg = rop1.register; if (reg.isPhysical()) {report("10 loops over physical register\n"); return;} if (succBlock == header && !nloop.get(target.getNumber())) { succBlock = target; target = header; cond.flipCode(); } if (target != header) {report ("11 ifcmp doesn't jump to header\n");return;} OPT_Instruction iterator = null; OPT_OperandEnumeration defs = new RealDefs (rop1); while (defs.hasMoreElements()) { OPT_Operand def = defs.next(); OPT_Instruction inst = def.instruction; OPT_BasicBlock block = inst.getBasicBlock(); //VM.sysWrite (""+block+": "+inst+"\n"); if (nloop.get(block.getNumber())) { if (iterator == null) { iterator = inst; } else {report("12 iterator not unique.\n"); return;} } } if (iterator == null) {report ("15 iterator not found.\n"); return;} if (iterator.operator.opcode != INT_ADD_opcode) { report ("16 iterator is no addition: "+iterator.operator+"\n"); return;} if (!rop1.similar(follow(Binary.getVal1(iterator)))) { //dumpIR (ir, "malformed"); report ("17 malformed iterator.\n"+iterator+"\n"); return;} OPT_Operand strideOp = follow (Binary.getVal2(iterator)); if (!(strideOp instanceof OPT_IntConstantOperand)) { report ("18 stride not constant\n"); return;} int stride = ((OPT_IntConstantOperand)strideOp).value; if (stride != 1 && stride != -1 ) { report ("18b stride != +/-1 ("+stride+")\n"); return;} if (( stride == 1 && (( cond.value != OPT_ConditionOperand.LESS) && cond.value != OPT_ConditionOperand.LESS_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL )) || (stride == -1 && (( cond.value != OPT_ConditionOperand.GREATER) && cond.value != OPT_ConditionOperand.GREATER_EQUAL && cond.value != OPT_ConditionOperand.NOT_EQUAL ))) { report ("19 unexpected condition: "+cond+"\n"+iterator+"\n\n"); return;} OPT_RegisterOperand outerGuard; OPT_BasicBlock outer = predBlock; while (outer.getNumberOfOut() == 1 && outer.getNumberOfIn() >= 1) { if (outer.getNumberOfIn() == 0) break; outer = outer.getIn().next(); } if (outer.getNumberOfIn() > 0 && outer.getNumberOfOut() < 2) { report ("23 no suitable outer guard found.\n"); return;} tmp = outer.firstBranchInstruction(); if (tmp != null && GuardResultCarrier.conforms(tmp)) outerGuard = GuardResultCarrier.getGuardResult(tmp); else { outerGuard = ir.regpool.makeTempValidation(); } //////////// // transfom // transform this: // // Orig: // B // if i CC b goto Orig // else goto exit // // exit: // // into this: ////// stride == 1: common: stride == -1://--------------------------------------------------------------------------// guard0:// limit = b;// if a > b goto Orig if b > a goto Orig// else guard1 // // // guard 1: // remainder = b - a; remainder = a - b;// if cond == '<=' if cond == '>='// remainder++; remainder++;// remainder = remainder & 3 // limit = a + remainder limit = a - remainder// if cond == '<=' if cond == '>='// limit--; limit++;// if remainder == 0 goto mllp // goto Orig // // Orig: // LOOP; // if i CC limit goto Orig // else guard2 // // guard2: if i CC b goto mllp // else exit// // mllp: // landing pad// goto ml// // ml: // LOOP;LOOP;LOOP;LOOP; // if i CC b goto ml // else exit// // exit://-------------------------------------------------------------------------- theCnt++; //if (theCnt > 0) return; report ("...transforming.\n"); if (ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) { //{report ("canceled\n"); return; } // dumpIR(ir, "before unroll"); } OPT_CFGTransformations.killFallThroughs (ir, nloop); OPT_BasicBlock handles[] = makeSomeCopies(unrollFactor, ir, nloop, blocks, header, exitBlock, exitBlock); OPT_BasicBlock mainHeader = handles[0]; OPT_BasicBlock mainExit = handles[1]; // test block for well formed bounds OPT_BasicBlock guardBlock0 = header.createSubBlock(header.firstInstruction().bcIndex, ir); predBlock.redirectOuts (header, guardBlock0, ir); // test block for iteration alignemnt OPT_BasicBlock guardBlock1 = header.createSubBlock(header.firstInstruction().bcIndex, ir); OPT_BasicBlock predSucc = predBlock.nextBasicBlockInCodeOrder(); if (predSucc != null) { ir.cfg.breakCodeOrder(predBlock, predSucc); ir.cfg.linkInCodeOrder(guardBlock1, predSucc); } ir.cfg.linkInCodeOrder(predBlock, guardBlock0); ir.cfg.linkInCodeOrder(guardBlock0, guardBlock1); // guard block for main loop OPT_BasicBlock guardBlock2 = header.createSubBlock(header.firstInstruction().bcIndex, ir); // landing pad for main loop OPT_BasicBlock landingPad = header.createSubBlock(header.firstInstruction().bcIndex, ir); OPT_BasicBlock mainLoop = exitBlock.nextBasicBlockInCodeOrder(); ir.cfg.breakCodeOrder (exitBlock, mainLoop); ir.cfg.linkInCodeOrder(exitBlock, guardBlock2); ir.cfg.linkInCodeOrder(guardBlock2, landingPad); ir.cfg.linkInCodeOrder(landingPad, mainLoop); OPT_RegisterOperand remainder = ir.regpool.makeTemp(rop1.type); OPT_RegisterOperand limit = ir.regpool.makeTemp(rop1.type); // test whether a <= b for stride == 1 and a >= b for stride == -1 tmp = guardBlock0.lastInstruction(); tmp.insertBefore (Move.create (INT_MOVE, limit, op2.copy())); OPT_ConditionOperand g0cond = OPT_ConditionOperand.GREATER(); if (stride == -1) g0cond = OPT_ConditionOperand.LESS(); tmp.insertBefore (IfCmp.create(INT_IFCMP, outerGuard.copyD2D(), rop1.copyD2U(), op2.copy(), g0cond, header.makeJumpTarget(), OPT_BranchProfileOperand.unlikely())); tmp.insertBefore(Goto.create(GOTO, guardBlock1.makeJumpTarget())); // jump over the original loop, if numbers of iteration is already aligned tmp = guardBlock1.lastInstruction(); if (stride == 1) tmp.insertBefore (Binary.create(INT_SUB, remainder, op2.copy(), rop1.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, remainder, rop1.copyD2U(), op2.copy())); if (cond.isGREATER_EQUAL() || cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore (Binary.create(INT_AND, remainder.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(unrollFactor-1))); if (stride == 1) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2U(), op1.copy(), remainder.copyD2U())); else tmp.insertBefore (Binary.create(INT_SUB, limit.copyD2U(), op1.copy(), remainder.copyD2U())); if (cond.isLESS_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(-1))); if (cond.isGREATER_EQUAL()) tmp.insertBefore (Binary.create(INT_ADD, limit.copyD2D(), limit.copyD2U(), new OPT_IntConstantOperand(1))); tmp.insertBefore (IfCmp.create(INT_IFCMP, outerGuard.copyD2D(), remainder.copyD2U(), new OPT_IntConstantOperand(0), OPT_ConditionOperand.EQUAL(), landingPad.makeJumpTarget(), new OPT_BranchProfileOperand(1.0/unrollFactor))); tmp.insertBefore(Goto.create(GOTO,header.makeJumpTarget())); // change the back branch in the original loop deleteBranches (exitBlock); tmp = exitBlock.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), limit.copyD2U(), (OPT_ConditionOperand) cond.copy(), header.makeJumpTarget(), new OPT_BranchProfileOperand(1.0 - 1.0 / unrollFactor))); tmp.insertBefore (Goto.create(GOTO,guardBlock2.makeJumpTarget())); // jump over main loop if no iterations left tmp = guardBlock2.lastInstruction(); tmp.insertBefore (IfCmp.create (INT_IFCMP, outerGuard.copyD2D(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), landingPad.makeJumpTarget(), new OPT_BranchProfileOperand(1.0-backBranchProbability))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); // landing pad jumps to mainHeader tmp = landingPad.lastInstruction(); tmp.insertBefore (Goto.create(GOTO, mainHeader.makeJumpTarget())); // repair back edge in mainExit if (VM.VerifyAssertions) VM.assert (mainExit != null); tmp = mainExit.lastInstruction(); if (VM.VerifyAssertions) VM.assert (( mainExit.lastRealInstruction() == null) || !mainExit.lastRealInstruction().isBranch()); tmp.insertBefore (IfCmp.create (INT_IFCMP, ifcmpGuard.copyU2U(), rop1.copyU2U(), op2.copy(), (OPT_ConditionOperand) cond.copy(), mainHeader.makeJumpTarget(), new OPT_BranchProfileOperand(1.0 - (1.0-backBranchProbability) * unrollFactor))); tmp.insertBefore (Goto.create (GOTO, succBlock.makeJumpTarget())); // recompute normal outs guardBlock0.recomputeNormalOut(ir); guardBlock1.recomputeNormalOut(ir); guardBlock2.recomputeNormalOut(ir); exitBlock.recomputeNormalOut(ir); landingPad.recomputeNormalOut(ir); mainExit.recomputeNormalOut(ir); if (ir.options.hasMETHOD_TO_PRINT() && ir.options.fuzzyMatchMETHOD_TO_PRINT(ir.method.toString())) { // dumpIR(ir, "after unroll"); } } static void report (String s) { if (DEBUG) VM.sysWrite ("] "+s); } private static int theVisit = 1; private static OPT_Operand follow (OPT_Operand use) { theVisit++; return _follow(use);}
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/51d09d84fe7f0e4ccf4655f5f7aca79daadda15e/OPT_LoopUnrolling.java/clean/rvm/src/vm/compilers/optimizing/optimizations/control/OPT_LoopUnrolling.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 640, 2693, 9858, 261, 15620, 67, 48, 882, 907, 268, 16, 16456, 67, 7937, 9482, 13, 288, 565, 509, 12509, 382, 6452, 273, 374, 31, 565, 16456, 67, 8252, 1768, 2427, 1768, 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, 760, 918, 640, 2693, 9858, 261, 15620, 67, 48, 882, 907, 268, 16, 16456, 67, 7937, 9482, 13, 288, 565, 509, 12509, 382, 6452, 273, 374, 31, 565, 16456, 67, 8252, 1768, 2427, 1768, 273, ...
roundReport.append(init.toString());
roundReport.append(player.getInitiative().getRoll(j));
private void writeInitiativeReport() { // write to report roundReport.append("\nInitiative Phase for Round #" + roundCounter + "\n------------------------------\n"); for (Enumeration i = game.getPlayers(); i.hasMoreElements();) { final Player player = (Player)i.nextElement(); roundReport.append(player.getName() + " rolls a "); boolean first = true; for (Enumeration j = player.getInitiatives(); j.hasMoreElements();) { Integer init = (Integer)j.nextElement(); if (first) { first = false; } else { roundReport.append(" / "); } roundReport.append(init.toString()); } roundReport.append(".\n"); } roundReport.append("\nThe turn order is:\n "); for (int i = 0; i < turns.length; i++) { roundReport.append((i == 0 ? "" : ", ") + getPlayer(turns[i]).getName()); } roundReport.append("\n"); // reset turn index ti = 0; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/213b6cf817c0fdd9c4a0b7fd69351a5b7138d988/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 2570, 77, 1535, 4820, 1435, 288, 3639, 368, 1045, 358, 2605, 3639, 3643, 4820, 18, 6923, 31458, 82, 2570, 77, 1535, 19459, 364, 11370, 31526, 397, 3643, 4789, 21821, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 2570, 77, 1535, 4820, 1435, 288, 3639, 368, 1045, 358, 2605, 3639, 3643, 4820, 18, 6923, 31458, 82, 2570, 77, 1535, 19459, 364, 11370, 31526, 397, 3643, 4789, 21821, 397, ...
public void write( byte[] message, int start, int size ) throws IOException { connect(); out_stream.write( message, start, size ); if( b_out != null ) { b_out.write( message, start, size ); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/1b34453a0b5740742b0778a2c857924d081c3c1e/TCP_IP_Transport.java/buggy/src/org/jacorb/orb/giop/TCP_IP_Transport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 12, 1160, 8526, 883, 16, 15604, 509, 787, 16, 15604, 509, 963, 262, 540, 1216, 1860, 377, 288, 3639, 3077, 5621, 3639, 596, 67, 3256, 18, 2626, 12, 883, 16, 787, 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, 1045, 12, 1160, 8526, 883, 16, 15604, 509, 787, 16, 15604, 509, 963, 262, 540, 1216, 1860, 377, 288, 3639, 3077, 5621, 3639, 596, 67, 3256, 18, 2626, 12, 883, 16, 787, 16, ...
write(opcode.ordinal()); }
write(opcode.ordinal()); }
public void write_opcode(ClientOpCode opcode) throws IOException { write(opcode.ordinal()); }
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/686fd63f220aa50720439ca7c62cd8f49bb56224/GGZCardOutputStream.java/buggy/java/src/ggz/cards/common/GGZCardOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 67, 556, 710, 12, 1227, 3817, 1085, 11396, 13, 1216, 1860, 288, 202, 202, 2626, 12, 556, 710, 18, 517, 1490, 10663, 202, 97, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 67, 556, 710, 12, 1227, 3817, 1085, 11396, 13, 1216, 1860, 288, 202, 202, 2626, 12, 556, 710, 18, 517, 1490, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, ...
int id = Integer.parseInt(tpc.toString());
int id = tpc.getIdentifier().intValue();
private PresentationObject getTopics() { Table T = new Table(); //T.add(getStyleText(iwrb.getLocalizedString("topic","Topic"),SN_TITLE),1,1); //T.add(getStyleText(iwrb.getLocalizedString("issue","Issue"),SN_TITLE),2,1); if (topics != null && topics.size() > 0) { Iterator iter = topics.iterator(); EmailTopic tpc; Link link; int row = 2; while (iter.hasNext()) { tpc = (EmailTopic) iter.next(); int id = Integer.parseInt(tpc.toString()); if (letter > 0) { if (topic == id) { link = getStyleLink(tpc.getName(), SN_TOPIC); link.addParameter(prmTopic, tpc.toString()); T.add(link, 1, row++); if (letters != null && letters.size() > 0) { Iterator iter2 = letters.iterator(); EmailLetter let; //Link subject; while (iter2.hasNext()) { let = (EmailLetter) iter2.next(); int lid = Integer.parseInt(let.toString()); if (lid == letter) theLetter = let; } } } } else { link = getStyleLink(tpc.getName(), SN_TOPIC); link.addParameter(prmTopic, tpc.toString()); T.add(link, 1, row++); if (topic > 0 && topic == id) { //T.add(getLettersHeads(),2,row++); if (letters != null && letters.size() > 0) { Iterator iter2 = letters.iterator(); EmailLetter let; //int row = 1; //T.add(getStyleText(iwrb.getLocalizedString("from","From"),SN_TITLE),1,row); //T.add(getStyleText(iwrb.getLocalizedString("subject","Subject"),SN_TITLE),2,row); //row++; Link subject; while (iter2.hasNext()) { let = (EmailLetter) iter2.next(); int lid = Integer.parseInt(let.toString()); if (lid == letter) theLetter = let; subject = getStyleLink(let.getSubject(), SN_SUBJ); subject.addParameter(prmTopic, String.valueOf(topic)); subject.addParameter(prmLetter, String.valueOf(let.toString())); T.add(subject, 2, row); //T.add(getStyleText(let.getFromName(),SN_FROM),2,row); row++; } } } } } } return T; }
56188 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56188/98ab1c1ed0f9b108bc9fc019b13abf0144879d3f/NewsLetterArchive.java/clean/src/java/com/idega/block/email/presentation/NewsLetterArchive.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 25130, 367, 921, 13729, 2102, 1435, 288, 202, 202, 1388, 399, 273, 394, 3555, 5621, 202, 202, 759, 56, 18, 1289, 12, 588, 2885, 1528, 12, 22315, 6731, 18, 588, 2042, 1235, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 25130, 367, 921, 13729, 2102, 1435, 288, 202, 202, 1388, 399, 273, 394, 3555, 5621, 202, 202, 759, 56, 18, 1289, 12, 588, 2885, 1528, 12, 22315, 6731, 18, 588, 2042, 1235, 78...
new EPTest(args[0], args[1]);
Notification n = new Notification(); byte[] ba = null; n.putAttribute("foo", "bar"); try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(n); oos.close(); ba = baos.toByteArray(); baos.close(); System.out.println("Length is " + ba.length + ", now reading back in"); ByteArrayInputStream bais = new ByteArrayInputStream(ba); ObjectInputStream ois = new ObjectInputStream(bais); Notification n2 = (Notification)ois.readObject(); System.out.println("Notification read, it's \"" + n2 + "\""); } catch(Exception e) { e.printStackTrace(); }
public static void main(String[] args) { new EPTest(args[0], args[1]); }
14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/abab34cf5dc242409291d02feae19e193a6c8253/EPTest.java/clean/ep/util/EPTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 8050, 290, 273, 394, 8050, 5621, 1160, 8526, 9846, 273, 446, 31, 290, 18, 458, 1499, 2932, 11351, 3113, 315, 3215, 8863, 775, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 8050, 290, 273, 394, 8050, 5621, 1160, 8526, 9846, 273, 446, 31, 290, 18, 458, 1499, 2932, 11351, 3113, 315, 3215, 8863, 775, 288...
public static void repaintLayeredPane(final RadComponent component) { final GuiEditor uiEditor = (GuiEditor)SwingUtilities.getAncestorOfClass(GuiEditor.class, component.getDelegee()); if (uiEditor != null) { uiEditor.repaintLayeredPane(); }
public void repaintLayeredPane() { myLayeredPane.repaint();
public static void repaintLayeredPane(final RadComponent component) { final GuiEditor uiEditor = (GuiEditor)SwingUtilities.getAncestorOfClass(GuiEditor.class, component.getDelegee()); if (uiEditor != null) { uiEditor.repaintLayeredPane(); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/0a8c7f6f897798de90c99991927c43760777d651/GuiEditor.java/buggy/ui-designer/impl/com/intellij/uiDesigner/designSurface/GuiEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 24962, 4576, 329, 8485, 12, 6385, 16378, 1841, 1794, 13, 288, 565, 727, 611, 4881, 6946, 5915, 6946, 273, 261, 18070, 6946, 13, 6050, 310, 11864, 18, 588, 15637, 951, 797,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 24962, 4576, 329, 8485, 12, 6385, 16378, 1841, 1794, 13, 288, 565, 727, 611, 4881, 6946, 5915, 6946, 273, 261, 18070, 6946, 13, 6050, 310, 11864, 18, 588, 15637, 951, 797,...
if (true) {
if (DEBUG_VALIDATE_CONTENT) {
public int validateContent(QName children[], int offset, int length) throws CMException { if (DEBUG_VALIDATE_CONTENT) System.out.println("DFAContentModel#validateContent"); // // A DFA content model must *always* have at least 1 child // so a failure is given if no children present. // // Defect 782: This is an incorrect statement because a DFA // content model is also used for constructions such as: // // (Optional*,NotRequired?) // // where a perfectly valid content would be NO CHILDREN. // Therefore, if there are no children, we must check to // see if the CMNODE_EOC marker is a valid start state! -Ac // if (length == 0) { if (DEBUG_VALIDATE_CONTENT) { System.out.println("!!! no children"); System.out.println("elemMap="+fElemMap); for (int i = 0; i < fElemMap.length; i++) { int uriIndex = fElemMap[i].uri; int localpartIndex = fElemMap[i].localpart; /* System.out.println("fElemMap["+i+"]="+uriIndex+","+ localpartIndex+" ("+ fStringPool.toString(uriIndex)+", "+ fStringPool.toString(localpartIndex)+ ')'); */ } System.out.println("EOCIndex="+fEOCIndex); } return fEmptyContentIsValid ? -1 : 0; } // if child count == 0 // // Lets loop through the children in the array and move our way // through the states. Note that we use the fElemMap array to map // an element index to a state index. // int curState = 0; int nextState = 0; for (int childIndex = 0; childIndex < length; childIndex++) { // Get the current element index out final QName curElem = children[offset + childIndex]; //System.out.println("children["+(offset+childIndex)+"]: "+curElem); // Look up this child in our element map int elemIndex = 0; for (; elemIndex < fElemMapSize; elemIndex++) { if (fDTD) { if (fElemMap[elemIndex].rawname == curElem.rawname) { nextState = fTransTable[curState][elemIndex]; if (nextState != -1) break; } } else { int type = fElemMapType[elemIndex] & 0x0f ; if (type == XMLContentSpec.CONTENTSPECNODE_LEAF) { if (fElemMap[elemIndex].uri==curElem.uri && fElemMap[elemIndex].localpart == curElem.localpart) { nextState = fTransTable[curState][elemIndex]; if (nextState != -1) break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY) { int uri = fElemMap[elemIndex].uri; if (uri == -1 || uri == curElem.uri) { nextState = fTransTable[curState][elemIndex]; if (nextState != -1) break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { if (curElem.uri == -1) { nextState = fTransTable[curState][elemIndex]; if (nextState != -1) break; } } else if (type == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) { if (fElemMap[elemIndex].uri != curElem.uri) { nextState = fTransTable[curState][elemIndex]; if (nextState != -1) break; } } } } // If "nextState" is -1, we found a match, but the transition is invalid if (nextState == -1) { if (DEBUG_VALIDATE_CONTENT) System.out.println("!!! not a legal transition"); return childIndex; } // If we didn't find it, then obviously not valid if (elemIndex == fElemMapSize) { if (true) {//if (DEBUG_VALIDATE_CONTENT) { System.out.println("!!! didn't find it"); System.out.println("curElem : " +curElem ); for (int i=0; i<fElemMapSize; i++) { System.out.println("fElemMap["+i+"] = " +fElemMap[i] ); System.out.println("fElemMapType["+i+"] = " +fElemMapType[i] ); } } return childIndex; } curState = nextState; nextState = 0; } // // We transitioned all the way through the input list. However, that // does not mean that we ended in a final state. So check whether // our ending state is a final state. // if (DEBUG_VALIDATE_CONTENT) System.out.println("curState="+curState+", childCount="+length); if (!fFinalStateFlags[curState]) return length; // success! return -1; }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/453abccd07a7ab9cac60ebd8f3b6fcea78ba0cf9/DFAContentModel.java/buggy/src/org/apache/xerces/validators/common/DFAContentModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1954, 1350, 12, 13688, 2325, 63, 6487, 509, 1384, 16, 509, 769, 13, 1216, 15871, 503, 288, 3639, 309, 261, 9394, 67, 14687, 67, 9689, 13, 2398, 2332, 18, 659, 18, 8222, 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, 509, 1954, 1350, 12, 13688, 2325, 63, 6487, 509, 1384, 16, 509, 769, 13, 1216, 15871, 503, 288, 3639, 309, 261, 9394, 67, 14687, 67, 9689, 13, 2398, 2332, 18, 659, 18, 8222, 2932,...
_editing = editing;
_editing = editing;
public void setEditing(boolean editing) { _editing = editing; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/17b139b1791573812f2e0c974722d8db4d6efa4a/UMLPlainTextDocument.java/buggy/src_new/org/argouml/uml/ui/UMLPlainTextDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 28029, 12, 6494, 15755, 13, 288, 3639, 389, 4619, 310, 273, 15755, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 28029, 12, 6494, 15755, 13, 288, 3639, 389, 4619, 310, 273, 15755, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
setOnmouseup(null);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELSubmitTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELSubmitTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, ...
return new JoinedFunction(this, join);
return new JoinedFunction<E>(this, join);
public final JoinedFunction<E> bind(final Join join) { return new JoinedFunction(this, join); }
50290 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50290/ba55a28f0ae90eb0bad92a2549deddcbd595b36b/Type.java/clean/runtime/src/com/exedio/cope/Type.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 727, 4214, 329, 2083, 32, 41, 34, 1993, 12, 6385, 4214, 1233, 13, 202, 202, 95, 1082, 202, 2463, 394, 4214, 329, 2083, 12, 2211, 16, 1233, 1769, 202, 202, 97, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 727, 4214, 329, 2083, 32, 41, 34, 1993, 12, 6385, 4214, 1233, 13, 202, 202, 95, 1082, 202, 2463, 394, 4214, 329, 2083, 12, 2211, 16, 1233, 1769, 202, 202, 97, 2, -100, -100...
MRUList.remove(perspective);
public void removePerspectiveShortcut(IPerspectiveDescriptor perspective, WorkbenchPage page) { if (perspectiveBar == null) return; IContributionItem item = findPerspectiveShortcut(perspective, page); if (item != null) { perspectiveBar.remove(item); item.dispose(); perspectiveBar.update(false); setCoolItemSize(coolItem); MRUList.remove(perspective); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1a744a769d54e48ab9cfcb4213c812a0bd7e6d18/PerspectiveSwitcher.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 14781, 16772, 15576, 12, 2579, 414, 16772, 3187, 26651, 16, 4147, 22144, 1964, 1363, 13, 288, 202, 565, 309, 261, 10422, 16772, 5190, 422, 446, 13, 202, 3639, 327, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 14781, 16772, 15576, 12, 2579, 414, 16772, 3187, 26651, 16, 4147, 22144, 1964, 1363, 13, 288, 202, 565, 309, 261, 10422, 16772, 5190, 422, 446, 13, 202, 3639, 327, 31...
public SequenceFileRecordReader(NutchFileSystem fs, FileSplit split)
public SequenceFileRecordReader(NutchConf nutchConf, FileSplit split)
public SequenceFileRecordReader(NutchFileSystem fs, FileSplit split) throws IOException { this.in = new SequenceFile.Reader(fs, split.getFile().toString()); this.end = split.getStart() + split.getLength(); if (split.getStart() > in.getPosition()) in.sync(split.getStart()); // sync to start more = in.getPosition() < end; }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/329ff64e9d7295aff108f85e9a8103f5e5f8f398/SequenceFileRecordReader.java/buggy/src/java/org/apache/nutch/mapred/SequenceFileRecordReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8370, 812, 2115, 2514, 12, 50, 322, 343, 3976, 290, 322, 343, 3976, 16, 1387, 5521, 1416, 13, 565, 1216, 1860, 288, 565, 333, 18, 267, 273, 394, 8370, 812, 18, 2514, 12, 2556, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8370, 812, 2115, 2514, 12, 50, 322, 343, 3976, 290, 322, 343, 3976, 16, 1387, 5521, 1416, 13, 565, 1216, 1860, 288, 565, 333, 18, 267, 273, 394, 8370, 812, 18, 2514, 12, 2556, 1...
public void classBlock() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:153:17: ( LCURLY ( field | SEMI )* RCURLY ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:153:17: LCURLY ( field | SEMI )* RCURLY { match(input,LCURLY,FOLLOW_LCURLY_in_classBlock442); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:154:25: ( field | SEMI )* loop10: do { int alt10=3; int LA10_0 = input.LA(1); if ( LA10_0==IDENT||LA10_0==LCURLY||(LA10_0>=68 && LA10_0<=89)||LA10_0==91 ) { alt10=1; } else if ( LA10_0==SEMI ) { alt10=2; } switch (alt10) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:154:27: field { following.push(FOLLOW_field_in_classBlock449); field(); following.pop(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:154:35: SEMI { match(input,SEMI,FOLLOW_SEMI_in_classBlock453); } break; default : break loop10; } } while (true); match(input,RCURLY,FOLLOW_RCURLY_in_classBlock460); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1106, 1768, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 1106, 1768, 1435, 15069, 5650, 7909, 503, 95, 698, 95, 28111, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 1...
buf.append("\n");
buf.append("</tr>\n");
private void writeTableHead(String string, String[] strings, StringBuffer buf) { buf.append("<h2>"); buf.append(string); buf.append("</h2>\n"); buf.append("<table border=\"0\">\n"); buf.append("<tr>"); for(int i=0;i<strings.length;i++) { buf.append("<th>"); buf.append(strings[i]); buf.append("</th>"); } buf.append("\n"); }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/2a50af2c7d1c8c3a5ad945e6a509003db2cd8d7f/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 1388, 1414, 12, 780, 533, 16, 514, 8526, 2064, 16, 6674, 1681, 13, 288, 202, 202, 4385, 18, 6923, 2932, 32, 76, 22, 2984, 1769, 202, 202, 4385, 18, 6923, 12, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 1388, 1414, 12, 780, 533, 16, 514, 8526, 2064, 16, 6674, 1681, 13, 288, 202, 202, 4385, 18, 6923, 2932, 32, 76, 22, 2984, 1769, 202, 202, 4385, 18, 6923, 12, 108...
if (end.getType() == IToken.tGT) hasTemplateId = true;
protected ITokenDuple consumeTemplatedOperatorName() throws EndOfFileException, BacktrackException { TemplateParameterManager argumentList = TemplateParameterManager .getInstance(); try { if (LT(1) == IToken.t_operator) return operatorId(null, null); try { return name(); } catch (BacktrackException bt) { } IToken start = null; boolean hasTemplateId = false; IToken mark = mark(); if (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { start = consume(); IToken end = null; if (start.getType() == IToken.tIDENTIFIER) { end = consumeTemplateArguments(end, argumentList); if (end != null && end.getType() == IToken.tGT) hasTemplateId = true; } while (LT(1) == IToken.tCOLONCOLON || LT(1) == IToken.tIDENTIFIER) { end = consume(); if (end.getType() == IToken.tIDENTIFIER) { end = consumeTemplateArguments(end, argumentList); if (end.getType() == IToken.tGT) hasTemplateId = true; } } if (LT(1) == IToken.t_operator) end = operatorId(start, (hasTemplateId ? argumentList : null)) .getLastToken(); else { int endOffset = (end != null) ? end.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); } return TokenFactory.createTokenDuple(start, end, argumentList .getTemplateArgumentsList()); } int endOffset = (mark != null) ? mark.getEndOffset() : 0; backup(mark); throwBacktrack(mark.getOffset(), endOffset - mark.getOffset()); return null; } finally { TemplateParameterManager.returnInstance(argumentList); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/26b0ae693a936b6ff2f75cd147f4275b2bb27109/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 467, 1345, 40, 2268, 7865, 26033, 690, 5592, 461, 1435, 540, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 288, 1377, 5035, 1662, 1318, 1237, 682, 273, 5035, 1662, 1318, 5411, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 467, 1345, 40, 2268, 7865, 26033, 690, 5592, 461, 1435, 540, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 288, 1377, 5035, 1662, 1318, 1237, 682, 273, 5035, 1662, 1318, 5411, 263...
if(canHandleExtensionTracking()) PlatformUI.getWorkbench().getExtensionTracker().unregisterHandler(this);
if(canHandleExtensionTracking()) { PlatformUI.getWorkbench().getExtensionTracker().unregisterHandler(this); }
public void dispose() { if(canHandleExtensionTracking()) PlatformUI.getWorkbench().getExtensionTracker().unregisterHandler(this); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ObjectContributorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ObjectContributorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15825, 1435, 288, 377, 202, 430, 12, 4169, 3259, 3625, 12642, 10756, 377, 202, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 3625, 8135, 7675, 318, 4861, 1503, 12, 2211, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15825, 1435, 288, 377, 202, 430, 12, 4169, 3259, 3625, 12642, 10756, 377, 202, 202, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 3625, 8135, 7675, 318, 4861, 1503, 12, 2211, 17...
if ((numPadBytes >= data.length) || (numPadBytes <= 0)) throw new IOException("Invalid number of pad bytes");
if ((numPadBytes >= data.length) || (numPadBytes <= 0)) { if (_log.shouldLog(Log.DEBUG)) _log.debug("stripPadding from block " + DataHelper.toHexString(data) + " (" + data.length + "bytes): " + numPadBytes + " is an invalid # of pad bytes"); throw new IOException("Invalid number of pad bytes (" + numPadBytes + ") for " + data.length + " bytes"); }
private int[] stripPadding(byte data[]) throws IOException { int numPadBytes = (int) data[data.length - 1]; if ((numPadBytes >= data.length) || (numPadBytes <= 0)) throw new IOException("Invalid number of pad bytes"); int rv[] = new int[data.length - numPadBytes]; // optional, but a really good idea: verify the padding if (true) { for (int i = data.length - numPadBytes; i < data.length; i++) { if (data[i] != (byte) numPadBytes) { throw new IOException("Incorrect padding on decryption: data[" + i + "] = " + data[i] + " not " + numPadBytes); } } } for (int i = 0; i < rv.length; i++) rv[i] = data[i]; _cumulativePaddingStripped += numPadBytes; return rv; }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/badfb9088e4c4cee6ac4e277c0b99f4b03446fb8/AESInputStream.java/buggy/core/java/src/net/i2p/crypto/AESInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 8526, 2569, 9485, 12, 7229, 501, 63, 5717, 1216, 1860, 288, 3639, 509, 818, 14878, 2160, 273, 261, 474, 13, 501, 63, 892, 18, 2469, 300, 404, 15533, 3639, 309, 14015, 2107, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8526, 2569, 9485, 12, 7229, 501, 63, 5717, 1216, 1860, 288, 3639, 509, 818, 14878, 2160, 273, 261, 474, 13, 501, 63, 892, 18, 2469, 300, 404, 15533, 3639, 309, 14015, 2107, 1...
final boolean[] busy = { true };
public void busyCursorWhile(final IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException { final ProgressMonitorJobsDialog dialog = new ProgressMonitorJobsDialog(null); dialog.setOpenOnRun(false); final boolean[] busy = { true }; scheduleProgressMonitorJob(dialog, busy); final InvocationTargetException[] invokes = new InvocationTargetException[1]; final InterruptedException[] interrupt = new InterruptedException[1]; invokes[0] = null; interrupt[0] = null; Display display = PlatformUI.getWorkbench().getDisplay(); if (display == null) return; BusyIndicator.showWhile(display, new Runnable() { /* * (non-Javadoc) * * @see java.lang.Runnable#run() */ public void run() { try { dialog.setOpenOnRun(false); dialog.run(true /* fork */ , true /* cancelable */ , runnable); //Run the event loop until the progress job wakes up //Just exit if there is no display Display currentDisplay; if (PlatformUI.isWorkbenchRunning()) currentDisplay = PlatformUI.getWorkbench().getDisplay(); else return; while (busy[0]) { if (!currentDisplay.readAndDispatch()) currentDisplay.sleep(); } } catch (InvocationTargetException e) { invokes[0] = e; } catch (InterruptedException e) { interrupt[0] = e; } } }); if (invokes[0] != null) throw invokes[0]; if (interrupt[0] != null) throw interrupt[0]; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e0ca3cd35ce03d54a636441b2cdd9e3502bb60a7/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21697, 6688, 15151, 12, 6385, 467, 20013, 1190, 5491, 14685, 13, 202, 202, 15069, 15342, 16, 7558, 288, 202, 202, 6385, 10980, 7187, 7276, 6353, 6176, 273, 394, 10980, 7187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21697, 6688, 15151, 12, 6385, 467, 20013, 1190, 5491, 14685, 13, 202, 202, 15069, 15342, 16, 7558, 288, 202, 202, 6385, 10980, 7187, 7276, 6353, 6176, 273, 394, 10980, 7187, ...
if(countsByPeer.size() == 0) return null; Iterator it = countsByPeer.keySet().iterator();
FreenetInetAddress detectPrimaryIPAddress() { if(overrideIPAddress != null) { Logger.minor(this, "Returning overridden address: "+overrideIPAddress); lastIPAddress = overrideIPAddress; return overrideIPAddress; } Logger.minor(this, "IP address not overridden"); InetAddress addr = ipDetector.getAddress(); if(addr != null) { FreenetInetAddress a = new FreenetInetAddress(addr); lastIPAddress = a; return a; } // Try to pick it up from our connections if(peers != null) { PeerNode[] peerList = peers.connectedPeers; HashMap countsByPeer = new HashMap(); // FIXME use a standard mutable int object, we have one somewhere for(int i=0;i<peerList.length;i++) { Peer p = peerList[i].getRemoteDetectedPeer(); if(p == null || p.isNull()) continue; // DNSRequester doesn't deal with our own node InetAddress ip = p.getAddress(true); if(!IPUtil.checkAddress(ip)) continue; if(countsByPeer.containsKey(ip)) { Integer count = (Integer) countsByPeer.get(ip); Integer newCount = new Integer(count.intValue()+1); countsByPeer.put(ip, newCount); } else { countsByPeer.put(ip, new Integer(1)); } } if(countsByPeer.size() == 0) return null; Iterator it = countsByPeer.keySet().iterator(); if(countsByPeer.size() == 1) { FreenetInetAddress a = new FreenetInetAddress((InetAddress)it.next()); lastIPAddress = a; return a; } // Pick most popular address // FIXME use multi-homing here InetAddress best = null; int bestPopularity = 0; while(it.hasNext()) { InetAddress cur = (InetAddress) it.next(); int curPop = ((Integer) (countsByPeer.get(cur))).intValue(); if(curPop > bestPopularity) { bestPopularity = curPop; best = cur; } } lastIPAddress = best == null ? null : new FreenetInetAddress(best); } else { lastIPAddress = oldIPAddress == null ? null : oldIPAddress; } if (lastIPAddress == null) { this.alerts.register(primaryIPUndetectedAlert); } else { this.alerts.unregister(primaryIPUndetectedAlert); } return lastIPAddress; }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/77af2651e3ed13b2429656a968a8dff8d8e9b738/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 42, 2842, 278, 382, 278, 1887, 5966, 6793, 22507, 1435, 288, 202, 202, 430, 12, 10601, 22507, 480, 446, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 28365, 11000, 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, 225, 202, 42, 2842, 278, 382, 278, 1887, 5966, 6793, 22507, 1435, 288, 202, 202, 430, 12, 10601, 22507, 480, 446, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 28365, 11000, 1758, ...
return _iloadCurrent != null ? _iloadCurrent : (_iloadCurrent = new ILOAD(getLocalIndex("current")));
if (_iloadCurrent == null) { int idx = getLocalIndex("current"); if (idx > 0) _iloadCurrent = new ILOAD(idx); else _iloadCurrent = new ICONST(0); } return _iloadCurrent;
public Instruction loadCurrentNode() { return _iloadCurrent != null ? _iloadCurrent : (_iloadCurrent = new ILOAD(getLocalIndex("current"))); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/6f7f9079e2727268824279a349538cdbb69100b7/MethodGenerator.java/clean/src/org/apache/xalan/xsltc/compiler/util/MethodGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 1262, 3935, 907, 1435, 288, 202, 2463, 389, 330, 6189, 3935, 480, 446, 202, 565, 692, 389, 330, 6189, 3935, 202, 565, 294, 261, 67, 330, 6189, 3935, 273, 394, 467, 7783, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 1262, 3935, 907, 1435, 288, 202, 2463, 389, 330, 6189, 3935, 480, 446, 202, 565, 692, 389, 330, 6189, 3935, 202, 565, 294, 261, 67, 330, 6189, 3935, 273, 394, 467, 7783, 12...
return "214-This is the SubEthaMail SMTP Server version " + getServerVersion() + " running on " + getHostAddress() + "\n" + "214-Topics:\n" +
return "214-This is the SubEthaMail SMTP Server version " + getServerVersion() + " running on " + getHostAddress() + "\r\n" + "214-Topics:\r\n" +
private String getCommandMessage() { return "214-This is the SubEthaMail SMTP Server version " + getServerVersion() + " running on " + getHostAddress() + "\n" + "214-Topics:\n" + getFormattedTopicList() + "214-For more info use \"HELP <topic>\".\n" + "214-For more information about this server, visit:\n" + "214- http://subetha.tigris.org\n" + "214-To report bugs in the implementation, send email to:\n" + "214- issues@subetha.tigris.org\n" + "214-For local information send email to Postmaster at your site.\n" + "214 End of HELP info"; }
50789 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50789/73fa6c77c2382f1c8bb98891c506920b1a040c46/HelpCommand.java/buggy/smtp/src/org/subethamail/smtp/command/HelpCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 12856, 1079, 1435, 288, 565, 327, 315, 22, 3461, 17, 2503, 353, 326, 2592, 41, 451, 69, 6759, 18102, 3224, 1177, 315, 397, 11543, 1444, 1435, 397, 315, 3549, 603, 315, 397, 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, 282, 3238, 514, 12856, 1079, 1435, 288, 565, 327, 315, 22, 3461, 17, 2503, 353, 326, 2592, 41, 451, 69, 6759, 18102, 3224, 1177, 315, 397, 11543, 1444, 1435, 397, 315, 3549, 603, 315, 397, 8...
public void addText( String text ) { buffer.append( text );
public void addText(String text) { buffer.append(text);
public void addText( String text ) { buffer.append( text ); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/Message.java/buggy/src/main/org/apache/tools/ant/taskdefs/email/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25796, 12, 514, 977, 262, 565, 288, 3639, 1613, 18, 6923, 12, 977, 11272, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25796, 12, 514, 977, 262, 565, 288, 3639, 1613, 18, 6923, 12, 977, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
peerInfo = _context.netDb().lookupRouterInfoLocally(peerHash);
peerInfo = getContext().netDb().lookupRouterInfoLocally(peerHash);
private RouterInfo selectReplyPeer(TunnelInfo tunnelParticipant) { PeerSelectionCriteria criteria = new PeerSelectionCriteria(); criteria.setMaximumRequired(1); criteria.setMinimumRequired(1); criteria.setPurpose(PeerSelectionCriteria.PURPOSE_SOURCE_ROUTE); List peerHashes = _context.peerManager().selectPeers(criteria); RouterInfo peerInfo = null; for (int i = 0; (i < peerHashes.size()) && (peerInfo == null); i++) { Hash peerHash = (Hash)peerHashes.get(i); peerInfo = _context.netDb().lookupRouterInfoLocally(peerHash); if (peerInfo == null) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Selected a peer [" + peerHash + "] we don't have info on locally... trying another"); } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Peer [" + peerHash.toBase64() + "] is known locally, keep it in the list of replyPeers"); break; } } if (peerInfo == null) { if (_log.shouldLog(Log.WARN)) _log.warn("No peers know for a reply (out of " + peerHashes.size() + ") - using ourself"); return _context.router().getRouterInfo(); } else { return peerInfo; } }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/buggy/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 9703, 966, 2027, 7817, 6813, 12, 20329, 966, 14825, 22540, 13, 288, 3639, 10669, 6233, 7231, 3582, 273, 394, 10669, 6233, 7231, 5621, 3639, 3582, 18, 542, 13528, 3705, 12, 21, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 9703, 966, 2027, 7817, 6813, 12, 20329, 966, 14825, 22540, 13, 288, 3639, 10669, 6233, 7231, 3582, 273, 394, 10669, 6233, 7231, 5621, 3639, 3582, 18, 542, 13528, 3705, 12, 21, 1769, ...
SmilesParser sp = new SmilesParser();
public void testBondCreation() { try { String smiles = "CC"; SmilesParser sp = new SmilesParser(); Molecule mol = sp.parseSmiles(smiles); assertEquals(2, mol.getAtomCount()); assertEquals(1, mol.getBondCount()); } catch (Exception e) { fail(e.toString()); } try { String smiles = "cc"; SmilesParser sp = new SmilesParser(); Molecule mol = sp.parseSmiles(smiles); assertEquals(2, mol.getAtomCount()); assertEquals(1, mol.getBondCount()); } catch (Exception e) { fail(e.toString()); } }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/6137efbb2eb584fc3c8f013d355c47222d846f87/SmilesParserTest.java/buggy/src/org/openscience/cdk/test/smiles/SmilesParserTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9807, 9906, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 3029, 1449, 273, 315, 6743, 14432, 1082, 202, 9552, 1449, 2678, 1694, 273, 394, 9425, 1449, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9807, 9906, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 3029, 1449, 273, 315, 6743, 14432, 1082, 202, 9552, 1449, 2678, 1694, 273, 394, 9425, 1449, ...
} this.loadFlagTable();
}
public ClientSession(InputStream in, OutputStream out) throws UnexpectedException { // Set up I/O // m_rawIn = in; m_rawOut = out; // Install commands and init parser // this.installCommands(); // More I/O // try { m_out = new KOMWriter(m_rawOut, DEFAULT_CHARSET); m_in = new LineEditor(m_rawIn, m_out, this, this, null, m_formatter, DEFAULT_CHARSET); m_out.addNewlineListener(m_in); } catch(UnsupportedEncodingException e) { // There're NO WAY we don't support US-ASCII! // throw new UnexpectedException(-1, "US-ASCII not supported. Your JVM is broken!"); } // Set up flag table // this.loadFlagTable(); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/d0dc44d3c9cb189284ad45c5d39a8c02f024fc70/ClientSession.java/buggy/kom/java/nu/rydin/kom/frontend/text/ClientSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 2157, 12, 4348, 316, 16, 8962, 596, 13, 202, 15069, 9649, 503, 202, 95, 202, 202, 759, 1000, 731, 467, 19, 51, 202, 202, 759, 202, 202, 81, 67, 1899, 382, 273, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2445, 2157, 12, 4348, 316, 16, 8962, 596, 13, 202, 15069, 9649, 503, 202, 95, 202, 202, 759, 1000, 731, 467, 19, 51, 202, 202, 759, 202, 202, 81, 67, 1899, 382, 273, 316, ...
Map ids = new TreeMap();
Map ids = new TreeMap();
private Map computeBundleGroupMap() { // use tree map to get predicable order Map ids = new TreeMap(); IBundleGroupProvider[] providers = Platform.getBundleGroupProviders(); for (int i = 0; i < providers.length; ++i) { IBundleGroup[] groups = providers[i].getBundleGroups(); for (int j = 0; j < groups.length; ++j) { IBundleGroup group = groups[j]; AboutInfo info = new AboutInfo(group); String version = info.getVersionId(); version = version == null ? "0.0.0" //$NON-NLS-1$ : new PluginVersionIdentifier(version).toString(); String versionedFeature = group.getIdentifier() + ":" + version; //$NON-NLS-1$ ids.put(versionedFeature, info); } } return ids; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fdc0bfc5b2792369a886e670b7c019c9a9664acb/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1635, 3671, 3405, 1114, 863, 1435, 288, 3639, 368, 999, 2151, 852, 358, 336, 3479, 335, 429, 1353, 3639, 1635, 3258, 273, 394, 16381, 5621, 3639, 467, 3405, 1114, 2249, 8526, 9165, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1635, 3671, 3405, 1114, 863, 1435, 288, 3639, 368, 999, 2151, 852, 358, 336, 3479, 335, 429, 1353, 3639, 1635, 3258, 273, 394, 16381, 5621, 3639, 467, 3405, 1114, 2249, 8526, 9165, ...
if(!cw.isAuto()) { /*if(cw.scaleToFit()) { if(viewWidth != -1) {
if (!cw.isAuto()) { /*if (cw.scaleToFit()) { if (viewWidth != -1) {
public void setup() { url = this.properties.get("src").getString(); if(url == null) { return; } url = ImageFactory.getURL(url); // assume lr-tb for now Length ipd = properties.get("inline-progression-dimension.optimum").getLength(); if(!ipd.isAuto()) { viewWidth = ipd.mvalue(); } else { ipd = properties.get("width").getLength(); if(!ipd.isAuto()) { viewWidth = ipd.mvalue(); } } Length bpd = properties.get("block-progression-dimension.optimum").getLength(); if(!bpd.isAuto()) { viewHeight = bpd.mvalue(); } else { bpd = properties.get("height").getLength(); if(!bpd.isAuto()) { viewHeight = bpd.mvalue(); } } // if we need to load this image to get its size FopImage fopimage = null; int cwidth = -1; int cheight = -1; Length ch = properties.get("content-height").getLength(); if(!ch.isAuto()) { /*if(ch.scaleToFit()) { if(viewHeight != -1) { cheight = viewHeight; } } else {*/ cheight = ch.mvalue(); } Length cw = properties.get("content-width").getLength(); if(!cw.isAuto()) { /*if(cw.scaleToFit()) { if(viewWidth != -1) { cwidth = viewWidth; } } else {*/ cwidth = cw.mvalue(); } int scaling = properties.get("scaling").getEnum(); if((scaling == Scaling.UNIFORM) || (cwidth == -1) || cheight == -1) { ImageFactory fact = ImageFactory.getInstance(); fopimage = fact.getImage(url, userAgent); if(fopimage == null) { // error url = null; return; } // load dimensions if(!fopimage.load(FopImage.DIMENSIONS, userAgent)) { // error url = null; return; } if(cwidth == -1) { cwidth = (int)(fopimage.getWidth() * 1000); } if(cheight == -1) { cheight = (int)(fopimage.getHeight() * 1000); } if(scaling == Scaling.UNIFORM) { // adjust the larger double rat1 = cwidth / (fopimage.getWidth() * 1000f); double rat2 = cheight / (fopimage.getHeight() * 1000f); if(rat1 < rat2) { // reduce cheight cheight = (int)(rat1 * fopimage.getHeight() * 1000); } else { cwidth = (int)(rat2 * fopimage.getWidth() * 1000); } } } if(viewWidth == -1) { viewWidth = cwidth; } if(viewHeight == -1) { viewHeight = cheight; } if(cwidth > viewWidth || cheight > viewHeight) { int overflow = properties.get("overflow").getEnum(); if(overflow == Overflow.HIDDEN) { clip = true; } else if(overflow == Overflow.ERROR_IF_OVERFLOW) { getLogger().error("Image: " + url + " overflows the viewport"); clip = true; } } int xoffset = 0; int yoffset = 0; int da = properties.get("display-align").getEnum(); switch(da) { case DisplayAlign.BEFORE: break; case DisplayAlign.AFTER: yoffset = viewHeight - cheight; break; case DisplayAlign.CENTER: yoffset = (viewHeight - cheight) / 2; break; case DisplayAlign.AUTO: default: break; } int ta = properties.get("text-align").getEnum(); switch(ta) { case TextAlign.CENTER: xoffset = (viewWidth - cwidth) / 2; break; case TextAlign.END: xoffset = viewWidth - cwidth; break; case TextAlign.START: break; case TextAlign.JUSTIFY: default: break; } placement = new Rectangle2D.Float(xoffset, yoffset, cwidth, cheight); // Common Accessibility Properties AccessibilityProps mAccProps = propMgr.getAccessibilityProps(); // Common Aural Properties AuralProps mAurProps = propMgr.getAuralProps(); // Common Border, Padding, and Background Properties BorderAndPadding bap = propMgr.getBorderAndPadding(); BackgroundProps bProps = propMgr.getBackgroundProps(); // Common Margin Properties-Inline MarginInlineProps mProps = propMgr.getMarginInlineProps(); // Common Relative Position Properties RelativePositionProps mRelProps = propMgr.getRelativePositionProps(); // this.properties.get("alignment-adjust"); // this.properties.get("alignment-baseline"); // this.properties.get("baseline-shift"); // this.properties.get("content-type"); // this.properties.get("dominant-baseline"); setupID(); // this.properties.get("keep-with-next"); // this.properties.get("keep-with-previous"); // this.properties.get("line-height"); // this.properties.get("line-height-shift-adjustment"); // this.properties.get("scaling-method"); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/64525d732a6d57f86e2382952ea9aca41c382483/ExternalGraphic.java/clean/src/org/apache/fop/fo/flow/ExternalGraphic.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3875, 1435, 288, 3639, 880, 273, 333, 18, 4738, 18, 588, 2932, 4816, 20387, 588, 780, 5621, 3639, 309, 12, 718, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 880, 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, 918, 3875, 1435, 288, 3639, 880, 273, 333, 18, 4738, 18, 588, 2932, 4816, 20387, 588, 780, 5621, 3639, 309, 12, 718, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 880, 273, ...
weightingAttsValues[m_xAttribute] = pixelMidX; weightingAttsValues[m_yAttribute] = pixelMidY;
weightingAttsValues[m_xAttribute] = getRandomX(j); weightingAttsValues[m_yAttribute] = getRandomY(m_panelHeight-i-1);
public void start() throws Exception { if (m_trainingData == null) { throw new Exception("No training data set (BoundaryPanel)"); } if (m_classifier == null) { throw new Exception("No classifier set (BoundaryPanel)"); } if (m_dataGenerator == null) { throw new Exception("No data generator set (BoundaryPanel)"); } if (m_trainingData.attribute(m_xAttribute).isNominal() || m_trainingData.attribute(m_yAttribute).isNominal()) { throw new Exception("Visualization dimensions must be numeric " +"(BoundaryPanel)"); } computeMinMaxAtts(); if (m_plotThread == null) { m_plotThread = new Thread() { public void run() { m_stopPlotting = false; try { /* if (m_osi == null) { initialize(); repaint(); } */ initialize(); repaint(); // train the classifier // System.err.println("Building classifier..."); m_classifier.buildClassifier(m_trainingData); // make a copy of the training data minus the class Remove rmF = new Remove(); rmF.setAttributeIndices(""+(m_classIndex+1)); rmF.setInvertSelection(false); rmF.setInputFormat(m_trainingData); rmF.setAttributeIndices(""+(m_classIndex+1)); Instances trainNoClass = Filter.useFilter(m_trainingData, rmF); Instances trainNoClassHeader = new Instances(trainNoClass,0); // build DataGenerator // System.err.println("Building data generator..."); boolean [] attsToWeightOn = new boolean[trainNoClass.numAttributes()]; attsToWeightOn[m_xAttribute] = true; attsToWeightOn[m_yAttribute] = true; m_dataGenerator.setWeightingDimensions(attsToWeightOn); m_dataGenerator.buildGenerator(trainNoClass); int samplesPerPixel = m_numberOfSamplesFromEachGeneratingModel * m_dataGenerator.getNumGeneratingModels(); // generate samples Add addF = new Add(); addF.setInputFormat(trainNoClass); addF.setAttributeIndex(m_classIndex); double pixelMidX = 0; double pixelMidY = 0; double [] dist; double [] weightingAttsValues = new double [attsToWeightOn.length]; double [] vals = new double[m_trainingData.numAttributes()]; Instance predInst = new Instance(1.0, vals); predInst.setDataset(m_trainingData); abortPlot: for (int i = 0; i < m_panelHeight; i++) { pixelMidY = getMidY(m_panelHeight-i-1); for (int j = 0; j < m_panelWidth; j++) { if (m_stopPlotting) { break abortPlot; } pixelMidX = getMidX(j); double sumOfWeights = 0; double [] sumOfProbs = new double [m_trainingData.classAttribute().numValues()]; for (int z = 0; z < samplesPerPixel; z++) { weightingAttsValues[m_xAttribute] = pixelMidX; weightingAttsValues[m_yAttribute] = pixelMidY; m_dataGenerator.setWeightingValues(weightingAttsValues); Instance newInst = m_dataGenerator.generateInstanceFast(); sumOfWeights += newInst.weight(); int index = 0; for (int k = 0; k < predInst.numAttributes(); k++) { if (k != m_trainingData.classIndex()) { vals[k] = newInst.value(index); index++; } } // classify the instance dist = m_classifier.distributionForInstance(predInst); for (int k = 0; k < sumOfProbs.length; k++) { sumOfProbs[k] += (dist[k] * newInst.weight()); } } // average Utils.normalize(sumOfProbs, sumOfWeights); // plot the point Graphics osg = m_osi.getGraphics(); Graphics g = m_plotPanel.getGraphics(); float [] colVal = new float[3]; for (int k = 0; k < 3; k++) { if (k < sumOfProbs.length) { if (m_rgbClassValues[k] != -1) { colVal[k] = (float)sumOfProbs[m_rgbClassValues[k]]; } } if (colVal[k] < 0) { colVal[k] = 0; } if (colVal[k] > 1) { colVal[k] = 1; } } osg.setColor(new Color(colVal[0], colVal[1], colVal[2])); osg.drawLine(j,i,j,i); if (j == 0) { g.drawImage(m_osi,0,0,m_plotPanel); } } } } catch (Exception ex) { ex.printStackTrace(); } finally { m_plotThread = null; // notify any listeners that we are finished Vector l; ActionEvent e = new ActionEvent(this, 0, ""); synchronized(this) { l = (Vector)m_listeners.clone(); } for (int i = 0; i < l.size(); i++) { ActionListener al = (ActionListener)l.elementAt(i); al.actionPerformed(e); } } } }; m_plotThread.setPriority(Thread.MIN_PRIORITY); m_plotThread.start(); } }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/eb41c6640de01bf883662d43f559fb538d433ffe/BoundaryPanel.java/clean/weka/gui/boundaryvisualizer/BoundaryPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 787, 1435, 1216, 1185, 288, 565, 309, 261, 81, 67, 17584, 751, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 8277, 501, 444, 261, 11941, 5537, 2225, 1769, 565, 289, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 787, 1435, 1216, 1185, 288, 565, 309, 261, 81, 67, 17584, 751, 422, 446, 13, 288, 1377, 604, 394, 1185, 2932, 2279, 8277, 501, 444, 261, 11941, 5537, 2225, 1769, 565, 289, 56...
PKCS11SecureRandom() {
public PKCS11SecureRandom() {
PKCS11SecureRandom() { super(); engine = TokenSupplierManager.getTokenSupplier().getSecureRNG(); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/703234a93fbd3a9a7aa9a8cf7da5c7bef63b1feb/PKCS11SecureRandom.java/buggy/security/jss/org/mozilla/jss/provider/PKCS11SecureRandom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21234, 2499, 12834, 8529, 1435, 288, 3639, 2240, 5621, 3639, 4073, 273, 3155, 13254, 1318, 18, 588, 1345, 13254, 7675, 588, 12834, 54, 4960, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 21234, 2499, 12834, 8529, 1435, 288, 3639, 2240, 5621, 3639, 4073, 273, 3155, 13254, 1318, 18, 588, 1345, 13254, 7675, 588, 12834, 54, 4960, 5621, 565, 289, 2, -100, -100, -100, -100,...
if (s_intercept) { Forwarding: while (true) { s_info.m_reply_header.reply_status = ReplyHeader.LOCATION_FORWARD; s_info.m_forward_reference = fex.forward; try { s_interceptor.send_other(s_info); break Forwarding; } catch (ForwardRequest fex2) { s_info.m_forward_reference = fex2.forward; fex.forward = s_info.m_forward_reference; } } } if (c_intercept) { this.m_rph.reply_status = ReplyHeader.LOCATION_FORWARD; this.m_forwarding_target = fex.forward; try { c_interceptor.receive_other(c_info); } catch (ForwardRequest fex2) { fex.forward = fex2.forward; } } throw new gnuForwardRequest(fex.forward);
public org.omg.CORBA.portable.InputStream v_invoke(InvokeHandler handler) { if (handler == null) handler = object.getHandler(operation(), cookie, false); cdrBufOutput request_part = new cdrBufOutput(); request_part.setOrb(orb()); if (m_args != null && m_args.count() > 0) { write_parameters(header, request_part); if (m_parameter_buffer != null) throw new BAD_INV_ORDER("Please either add parameters or " + "write them into stream, but not both " + "at once." ); } if (m_parameter_buffer != null) { write_parameter_buffer(header, request_part); } Servant servant; if (handler instanceof Servant) servant = (Servant) handler; else throw new BAD_OPERATION("Unexpected handler type " + handler); org.omg.CORBA.portable.InputStream input = request_part.create_input_stream(); // Ensure the servant (handler) has a delegate set. servantDelegate sd = null; Delegate d = null; try { d = servant._get_delegate(); } catch (Exception ex) { // In some cases exception is thrown if the delegate is not set. } if (d instanceof servantDelegate) { // If the delegate is already set, try to reuse the existing // instance. sd = (servantDelegate) d; if (sd.object != object) sd = new servantDelegate(servant, poa, Id); } else sd = new servantDelegate(servant, poa, Id); servant._set_delegate(sd); try { ORB o = orb(); if (o instanceof ORB_1_4) { ((ORB_1_4) o).currents.put(Thread.currentThread(), this); } handler._invoke(m_operation, input, this); } finally { ORB o = orb(); if (o instanceof ORB_1_4) ((ORB_1_4) o).currents.remove(Thread.currentThread()); } if (poa.servant_locator != null) poa.servant_locator.postinvoke(object.Id, poa, operation(), cookie.value, object.getServant() ); return buffer.create_input_stream(); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/0c6db14fe37c570414a6f9d9ea41538675363ecc/LocalRequest.java/buggy/gnu/CORBA/Poa/LocalRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 309, 261, 87, 67, 27481, 13, 288, 17206, 310, 30, 1323, 261, 3767, 13, 288, 272, 67, 1376, 18, 81, 67, 10629, 67, 3374, 18, 10629, 67, 2327, 273, 16202, 1864, 18, 15277, 67, 7473, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 261, 87, 67, 27481, 13, 288, 17206, 310, 30, 1323, 261, 3767, 13, 288, 272, 67, 1376, 18, 81, 67, 10629, 67, 3374, 18, 10629, 67, 2327, 273, 16202, 1864, 18, 15277, 67, 7473, 213...
displayBuffer.delete( 0, lineIndex ); fireBufferChanged( DISPLAY_CHANGE, null );
if ( lineIndex != -1 ) { displayBuffer.delete( 0, lineIndex ); fireBufferChanged( DISPLAY_CHANGE, null ); }
public void append( String message ) { if ( requiresTruncation && displayBuffer.length() > MAXIMUM_SIZE ) { int lineIndex = displayBuffer.lastIndexOf( "<br>", RESIZE_SIZE ); if ( lineIndex == -1 ) lineIndex = displayBuffer.lastIndexOf( ">", RESIZE_SIZE ) + 1; if ( lineIndex == -1 ) lineIndex = displayBuffer.lastIndexOf( " ", RESIZE_SIZE ); if ( lineIndex == -1 ) lineIndex = MAXIMUM_SIZE - RESIZE_SIZE; displayBuffer.delete( 0, lineIndex ); fireBufferChanged( DISPLAY_CHANGE, null ); } // Download all the images outside of the Swing thread // by downloading them here. RequestEditorKit.downloadImages( message ); // In the event that there's a link to the player pics // page, make it so the file links locally rather than // remotely. if ( previousFontSize != fontSize && fontSize < 0 ) fontSize = 0 - fontSize; String highlightMessage = message; if ( this != highlightBuffer ) { if ( !highlights.isEmpty() ) { String [] colorArray = new String[ colors.size() ]; colors.toArray( colorArray ); Pattern [] highlightArray = new Pattern[ highlights.size() ]; highlights.toArray( highlightArray ); Pattern [] dehighlightArray = new Pattern[ dehighlights.size() ]; dehighlights.toArray( dehighlightArray ); for ( int i = 0; i < colorArray.length; ++i ) highlightMessage = applyHighlight( highlightMessage, colorArray[i], highlightArray[i], dehighlightArray[i] ); } } super.append( highlightMessage ); if ( affectsHighlightBuffer && message.compareToIgnoreCase( highlightMessage ) != 0 ) highlightBuffer.append( highlightMessage.replaceAll( "(<br>)+", "<br>" + LINE_BREAK ) ); previousFontSize = fontSize; }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/55cc9009398c394cb8790174ca3b6ee695017b1f/LimitedSizeChatBuffer.java/clean/src/net/sourceforge/kolmafia/LimitedSizeChatBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 714, 12, 514, 883, 262, 202, 95, 202, 202, 430, 261, 4991, 18002, 367, 597, 2562, 1892, 18, 2469, 1435, 405, 4552, 18605, 67, 4574, 262, 202, 202, 95, 1082, 202, 474, 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, 714, 12, 514, 883, 262, 202, 95, 202, 202, 430, 261, 4991, 18002, 367, 597, 2562, 1892, 18, 2469, 1435, 405, 4552, 18605, 67, 4574, 262, 202, 202, 95, 1082, 202, 474, 9...
public void positionAbsolute(CssContext cssCtx) {
public void positionAbsolute(CssContext cssCtx, int direction) {
public void positionAbsolute(CssContext cssCtx) { CalculatedStyle style = getStyle().getCalculatedStyle(); Rectangle boundingBox = null; int cbContentHeight = getContainingBlock().getContentAreaEdge(0, 0, cssCtx).height; if (getContainingBlock() instanceof BlockBox) { boundingBox = getContainingBlock().getPaddingEdge(0, 0, cssCtx); } else { boundingBox = getContainingBlock().getContentAreaEdge(0, 0, cssCtx); } if (!style.isIdent(CSSName.LEFT, IdentValue.AUTO)) { this.x = (int)style.getFloatPropertyProportionalWidth(CSSName.LEFT, getContainingBlock().getContentWidth(), cssCtx); } else if (!style.isIdent(CSSName.RIGHT, IdentValue.AUTO)) { this.x = boundingBox.width - (int)style.getFloatPropertyProportionalWidth(CSSName.RIGHT, getContainingBlock().getContentWidth(), cssCtx) - getWidth(); } if (!style.isIdent(CSSName.TOP, IdentValue.AUTO)) { this.y = (int)style.getFloatPropertyProportionalHeight(CSSName.TOP, cbContentHeight, cssCtx); } else if (!style.isIdent(CSSName.BOTTOM, IdentValue.AUTO)) { this.y = boundingBox.height - (int)style.getFloatPropertyProportionalWidth(CSSName.BOTTOM, cbContentHeight, cssCtx) - getHeight(); } this.x += boundingBox.x; this.y += boundingBox.y; calcCanvasLocation(); if (getStyle().isTopAuto() && getStyle().isBottomAuto()) { alignToStaticEquivalent(); } calcChildLocations(); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/a1a59900d9cb5de26efae7817b0754dbe9d5bf43/BlockBox.java/buggy/src/java/org/xhtmlrenderer/render/BlockBox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1754, 10368, 12, 7359, 1042, 3747, 6442, 16, 509, 4068, 13, 288, 3639, 15994, 690, 2885, 2154, 273, 14210, 7675, 588, 4844, 690, 2885, 5621, 3639, 13264, 23044, 273, 446, 31, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1754, 10368, 12, 7359, 1042, 3747, 6442, 16, 509, 4068, 13, 288, 3639, 15994, 690, 2885, 2154, 273, 14210, 7675, 588, 4844, 690, 2885, 5621, 3639, 13264, 23044, 273, 446, 31, 7...
return;
return false;
void setOrientation(int orientation) { if ((orientation & (SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT)) == 0) { return; } if ((orientation & SWT.RIGHT_TO_LEFT) != 0 && (orientation & SWT.LEFT_TO_RIGHT) != 0) { return; } if ((orientation & SWT.RIGHT_TO_LEFT) != 0 && isMirrored()) { return; } if ((orientation & SWT.LEFT_TO_RIGHT) != 0 && isMirrored() == false) { return; } if (StyledTextBidi.setOrientation(this, orientation) == false) { return; } isMirrored = (orientation & SWT.RIGHT_TO_LEFT) != 0; isBidi = StyledTextBidi.isBidiPlatform() || isMirrored(); initializeRenderer(); if (isBidi()) { caretDirection = SWT.NULL; createCaretBitmaps(); setBidiCaretDirection(); } setCaretLocation(); keyActionMap.clear(); createKeyBindings(); super.redraw();}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/3130eb80999540471e60bc2556a0580a226c989f/StyledText.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 444, 14097, 12, 474, 9820, 13, 288, 202, 430, 14015, 19235, 473, 261, 55, 8588, 18, 11847, 67, 4296, 67, 10066, 571, 348, 8588, 18, 10066, 67, 4296, 67, 11847, 3719, 422, 374, 13, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 444, 14097, 12, 474, 9820, 13, 288, 202, 430, 14015, 19235, 473, 261, 55, 8588, 18, 11847, 67, 4296, 67, 10066, 571, 348, 8588, 18, 10066, 67, 4296, 67, 11847, 3719, 422, 374, 13, 288, ...
{ return false; }
{ return false; }
public boolean storesLowerCaseIdentifiers() throws SQLException { return false; }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 9064, 5630, 12745, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 9064, 5630, 12745, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
final String aKey = (String) i.next();
final String aKey = i.next();
private Map getVisionMap() { Map visMap = new HashMap(); if (race != null) { visMap = addStringToVisionMap(visMap, race.getVision()); } if (deity != null) { visMap = addStringToVisionMap(visMap, deity.getVision()); } for (Iterator i = classList.iterator(); i.hasNext();) { final PCClass aClass = (PCClass) i.next(); visMap = addStringToVisionMap(visMap, aClass.getVision()); } for (Iterator i = getRealFeatsIterator(); i.hasNext();) { final Ability aFeat = (Ability) i.next(); visMap = addStringToVisionMap(visMap, aFeat.getVision()); } for (Iterator i = getSkillList().iterator(); i.hasNext();) { final Skill aSkill = (Skill) i.next(); visMap = addStringToVisionMap(visMap, aSkill.getVision()); } for (Iterator i = characterDomainList.iterator(); i.hasNext();) { final CharacterDomain aCD = (CharacterDomain) i.next(); if (aCD.getDomain() != null) { visMap = addStringToVisionMap(visMap, aCD.getDomain().getVision()); } } for (Iterator e = equipmentList.iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); if (eq.isEquipped()) { visMap = addStringToVisionMap(visMap, eq.getVision()); List aList = eq.getEqModifierList(true); if (!aList.isEmpty()) { for (Iterator e2 = aList.iterator(); e2.hasNext();) { final EquipmentModifier eqMod = (EquipmentModifier) e2.next(); visMap = addStringToVisionMap(visMap, eqMod.getVision()); } } aList = eq.getEqModifierList(false); if (!aList.isEmpty()) { for (Iterator e2 = aList.iterator(); e2.hasNext();) { final EquipmentModifier eqMod = (EquipmentModifier) e2.next(); visMap = addStringToVisionMap(visMap, eqMod.getVision()); } } } } for (Iterator i = templateList.iterator(); i.hasNext();) { final PCTemplate aTemplate = (PCTemplate) i.next(); visMap = addStringToVisionMap(visMap, aTemplate.getVision()); } // parse through the global list of vision tags and see // if this PC has any BONUS:VISION tags which will create // a new visionMap entry for (Iterator i = Globals.getVisionMap().keySet().iterator(); i.hasNext();) { final String aKey = (String) i.next(); final int aVal = (int) getTotalBonusTo("VISION", aKey); if (aVal > 0) { // add a 0 value, as the bonus is added // in the addStringToVisionMap() routine final HashMap newMap = new HashMap(); newMap.put(aKey, "0"); visMap = addStringToVisionMap(visMap, newMap); } } return visMap; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/eb5f93299afbba8e2b27cdc67dfddc016c5d86a9/PlayerCharacter.java/buggy/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1635, 11031, 1951, 863, 1435, 202, 95, 202, 202, 863, 2281, 863, 273, 394, 4317, 5621, 202, 202, 430, 261, 9963, 480, 446, 13, 202, 202, 95, 1082, 202, 3516, 863, 273, 527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1635, 11031, 1951, 863, 1435, 202, 95, 202, 202, 863, 2281, 863, 273, 394, 4317, 5621, 202, 202, 430, 261, 9963, 480, 446, 13, 202, 202, 95, 1082, 202, 3516, 863, 273, 527, ...
nodes.add(new Path.Node(28,11));
nodes.add(new Path.Node(28, 11));
protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(28,11)); nodes.add(new Path.Node(28,20)); setPath(nodes,true); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/d512245d8e26069d9f1c5a15fba078b322c3b0ac/Semos.java/buggy/src/games/stendhal/server/maps/Semos.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 4750, 918, 752, 743, 1435, 3639, 288, 3639, 987, 32, 743, 18, 907, 34, 2199, 33, 2704, 10688, 32, 743, 18, 907, 34, 5621, 3639, 2199, 18, 1289, 12, 2704, 2666, 18, 907, 12, 6030, 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, 4202, 4750, 918, 752, 743, 1435, 3639, 288, 3639, 987, 32, 743, 18, 907, 34, 2199, 33, 2704, 10688, 32, 743, 18, 907, 34, 5621, 3639, 2199, 18, 1289, 12, 2704, 2666, 18, 907, 12, 6030, 16,...
static private final int jjMoveStringLiteralDfa9_0(long old1, long active1) { if (((active1 &= old1)) == 0L) return jjStartNfa_0(7, 0L, old1, 0L); try { curChar = input_stream.readChar(); } catch (java.io.IOException e) { jjStopStringLiteralDfa_0(8, 0L, active1, 0L); return 9; } switch (curChar) { case 100: if ((active1 & 0x2000000L) != 0L) return jjStartNfaWithStates_0(9, 89, 33); break; default : break; } return jjStartNfa_0(8, 0L, active1, 0L); }
static private final int jjMoveStringLiteralDfa9_0(long old1, long active1) { if (((active1 &= old1)) == 0L) return jjStartNfa_0(7, 0L, old1, 0L); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(8, 0L, active1, 0L); return 9; } switch(curChar) { case 100: if ((active1 & 0x4000000L) != 0L) return jjStartNfaWithStates_0(9, 90, 33); break; default : break; } return jjStartNfa_0(8, 0L, active1, 0L); }
static private final int jjMoveStringLiteralDfa9_0(long old1, long active1) { if (((active1 &= old1)) == 0L) return jjStartNfa_0(7, 0L, old1, 0L); try { curChar = input_stream.readChar(); } catch (java.io.IOException e) { jjStopStringLiteralDfa_0(8, 0L, active1, 0L); return 9; } switch (curChar) { case 100: if ((active1 & 0x2000000L) != 0L) return jjStartNfaWithStates_0(9, 89, 33); break; default : break; } return jjStartNfa_0(8, 0L, active1, 0L); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 29, 67, 20, 12, 5748, 1592, 21, 16, 1525, 2695, 21, 13, 288, 3639, 309, 261, 12443, 3535, 21, 12058, 1592, 21, 3719, 422, 374, 48, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 29, 67, 20, 12, 5748, 1592, 21, 16, 1525, 2695, 21, 13, 288, 3639, 309, 261, 12443, 3535, 21, 12058, 1592, 21, 3719, 422, 374, 48, 13...
ammo.techType = TechConstants.T_IS_LEVEL_2;
public static AmmoType createISStreakSRM4Ammo() { AmmoType ammo = new AmmoType(); ammo.techLevel = TechConstants.T_IS_LEVEL_2; ammo.name = "Streak SRM 4 Ammo"; ammo.setInternalName("IS Streak SRM 4 Ammo"); ammo.addLookupName("IS Ammo Streak-4"); ammo.addLookupName("ISStreakSRM4 Ammo"); ammo.damagePerShot = 2; ammo.rackSize = 4; ammo.ammoType = AmmoType.T_SRM_STREAK; ammo.shots = 25; ammo.bv = 7; ammo.techType = TechConstants.T_IS_LEVEL_2; return ammo; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/97af35d91fd53f33252e946d590f48a8cdd244c1/AmmoType.java/clean/megamek/src/megamek/common/AmmoType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3986, 8683, 559, 752, 5127, 510, 870, 55, 8717, 24, 37, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 28012, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3986, 8683, 559, 752, 5127, 510, 870, 55, 8717, 24, 37, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 28012, ...
a.write_value( out2 );
any.write_value( out2 );
public boolean equal (org.omg.CORBA.Any a) { if (a == null) { throw new BAD_PARAM ("Null passed to Any equal operation"); } if (!typeCode.equal (a.type())) { return false; } int kind = originalType().kind().value(); switch (kind) { case TCKind._tk_null: case TCKind._tk_void: return true; case TCKind._tk_short: return extract_short() == a.extract_short(); case TCKind._tk_long: return extract_long() == a.extract_long(); case TCKind._tk_longlong: return extract_longlong() == a.extract_longlong(); case TCKind._tk_ushort: return extract_ushort() == a.extract_ushort(); case TCKind._tk_ulong: return extract_ulong() == a.extract_ulong(); case TCKind._tk_ulonglong: return extract_ulonglong() == a.extract_ulonglong(); case TCKind._tk_float: return extract_float() == a.extract_float(); case TCKind._tk_double: return extract_double() == a.extract_double(); case TCKind._tk_fixed: return extract_fixed().equals( a.extract_fixed() ); case TCKind._tk_boolean: return extract_boolean() == a.extract_boolean(); case TCKind._tk_char: return extract_char() == a.extract_char(); case TCKind._tk_wchar: return extract_wchar() == a.extract_wchar(); case TCKind._tk_octet: return extract_octet() == a.extract_octet(); case TCKind._tk_any: return extract_any().equals( a.extract_any() ); case TCKind._tk_TypeCode: return extract_TypeCode().equal( a.extract_TypeCode() ); case TCKind._tk_Principal: throw new org.omg.CORBA.NO_IMPLEMENT ("Principal deprecated"); case TCKind._tk_objref: return extract_Object().equals( a.extract_Object() ); case TCKind._tk_string: return extract_string().equals( a.extract_string() ); case TCKind._tk_wstring: return extract_wstring().equals( a.extract_wstring() ); case TCKind._tk_array: case TCKind._tk_sequence: case TCKind._tk_struct: case TCKind._tk_except: case TCKind._tk_enum: case TCKind._tk_union: case TCKind._tk_value: case TCKind._tk_value_box: { CDROutputStream out1, out2; if( !( orb instanceof org.jacorb.orb.ORB )) { out1 = new CDROutputStream(); out2 = new CDROutputStream(); } else { out1 = new CDROutputStream(orb); out2 = new CDROutputStream(orb); } write_value( out1 ); a.write_value( out2 ); if( out1.size() != out2.size() ) return false; return Arrays.equals( out1.getBufferCopy(), out2.getBufferCopy()); } default: throw new BAD_TYPECODE("Cannot compare anys with TypeCode kind " + kind); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/bb550ea023ce2b48c5fb25abe46e62c41f2a212e/Any.java/clean/src/org/jacorb/orb/Any.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3959, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 2961, 279, 13, 565, 288, 3639, 309, 261, 69, 422, 446, 13, 3639, 288, 6647, 604, 394, 16467, 67, 8388, 7566, 2041, 2275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3959, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 2961, 279, 13, 565, 288, 3639, 309, 261, 69, 422, 446, 13, 3639, 288, 6647, 604, 394, 16467, 67, 8388, 7566, 2041, 2275, ...
long now = _context.clock().now();
long now = getContext().clock().now();
private void honorSendRemote(TunnelInfo info, RouterIdentity ident) { I2NPMessage msg = null; if (_targetTunnelId != null) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Forward " + _message.getClass().getName() + " message off to remote tunnel " + _targetTunnelId.getTunnelId() + " on router " + _destRouter.toBase64()); TunnelMessage tmsg = new TunnelMessage(_context); tmsg.setEncryptedDeliveryInstructions(null); tmsg.setTunnelId(_targetTunnelId); tmsg.setVerificationStructure(null); ByteArrayOutputStream baos = new ByteArrayOutputStream(1024); try { _message.writeBytes(baos); } catch (IOException ioe) { if (_log.shouldLog(Log.ERROR)) _log.error("Error writing out the message to be forwarded...??", ioe); } catch (DataFormatException dfe) { if (_log.shouldLog(Log.ERROR)) _log.error("Error writing message to be forwarded...???", dfe); } tmsg.setData(baos.toByteArray()); msg = tmsg; } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Forward " + _message.getClass().getName() + " message off to remote router " + _destRouter.toBase64()); msg = _message; } long now = _context.clock().now(); //if (_expiration < now) { //_expiration = now + Router.CLOCK_FUDGE_FACTOR; //_log.info("Fudging the message send so it expires in the fudge factor..."); //} if (_expiration - 10*1000 < now) { if (_log.shouldLog(Log.WARN)) _log.warn("Why are we trying to send a " + _message.getClass().getName() + " message with " + (_expiration-now) + "ms left?", getAddedBy()); } String bodyType = _message.getClass().getName(); _context.messageHistory().wrap(bodyType, _message.getUniqueId(), TunnelMessage.class.getName(), msg.getUniqueId()); // don't specify a selector, since createFakeOutNetMessage already does that _context.jobQueue().addJob(new SendMessageDirectJob(_context, msg, _destRouter, _onSend, _onReply, _onFailure, null, _expiration, _priority)); }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/e737e5c9507ed0d463dc9e45a8f63657f466b177/SendTunnelMessageJob.java/buggy/router/java/src/net/i2p/router/message/SendTunnelMessageJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 24338, 280, 3826, 5169, 12, 20329, 966, 1123, 16, 9703, 4334, 3390, 13, 288, 3639, 467, 22, 23430, 1079, 1234, 273, 446, 31, 3639, 309, 261, 67, 3299, 20329, 548, 480, 446, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 24338, 280, 3826, 5169, 12, 20329, 966, 1123, 16, 9703, 4334, 3390, 13, 288, 3639, 467, 22, 23430, 1079, 1234, 273, 446, 31, 3639, 309, 261, 67, 3299, 20329, 548, 480, 446, 1...
case SWT.MouseDown : if ( !bEnabled ) { return; } fireHandleEvent( MOUSE_CLICKED_EVENT ); if ( event.widget.equals( cnvSelection ) ) { if ( !cnvSelection.isDisposed( ) ) { toggleDropDown( ); } } else if ( event.widget instanceof ColorSelectionCanvas ) { ColorDefinition cTmp = AttributeFactory.eINSTANCE.createColorDefinition( ); Color clrTmp = ( (ColorSelectionCanvas) event.widget ).getColorAt( event.x, event.y ); cTmp.set( clrTmp.getRed( ), clrTmp.getGreen( ), clrTmp.getBlue( ) ); int iTransparency = 255; if ( fCurrent instanceof ColorDefinition && this.iTransparency != 0 ) { iTransparency = ( bTransparencyChanged ) ? this.iTransparency : ( (ColorDefinition) fCurrent ).getTransparency( ); } cTmp.setTransparency( iTransparency ); addAdapters( cTmp ); setFill( cTmp ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); cmpDropDown.getShell( ).close( ); } break;
public void handleEvent( Event event ) { switch ( event.type ) { case SWT.FocusOut : if ( isPopupControl( event.widget ) ) { // Condition added to handle behavior under Linux Control cTmp = isPressingKey ? Display.getCurrent( ) .getFocusControl( ) : Display.getCurrent( ) .getCursorControl( ); // Set default value back isPressingKey = false; if ( cTmp != null ) { if ( isPopupControl( cTmp ) || SWT.getPlatform( ).indexOf( "win32" ) == 0//$NON-NLS-1$ && ( cTmp.equals( cnvSelection ) || cTmp.equals( btnDown ) ) ) { return; } if ( cTmp.equals( cnvSelection ) || cTmp.equals( btnDown ) ) { bJustFocusLost = true; } } cmpDropDown.getShell( ).close( ); } break; case SWT.KeyDown : if ( cmpDropDown != null && !cmpDropDown.getShell( ).isDisposed( ) ) { if ( event.keyCode == SWT.ARROW_UP ) { cmpDropDown.getShell( ).close( ); } else if ( event.keyCode == SWT.CR || event.keyCode == SWT.KEYPAD_CR ) { this.iTransparency = srTransparency.getSelection( ); if ( fCurrent instanceof ColorDefinition && bTransparencyChanged ) { ( (ColorDefinition) fCurrent ).setTransparency( this.iTransparency ); } this.setFill( fCurrent ); cmpDropDown.getShell( ).close( ); } } break; case SWT.MouseDown : if ( !bEnabled ) { return; } fireHandleEvent( MOUSE_CLICKED_EVENT ); if ( event.widget.equals( cnvSelection ) ) { if ( !cnvSelection.isDisposed( ) ) { toggleDropDown( ); } } else if ( event.widget instanceof ColorSelectionCanvas ) { ColorDefinition cTmp = AttributeFactory.eINSTANCE.createColorDefinition( ); Color clrTmp = ( (ColorSelectionCanvas) event.widget ).getColorAt( event.x, event.y ); cTmp.set( clrTmp.getRed( ), clrTmp.getGreen( ), clrTmp.getBlue( ) ); int iTransparency = 255; if ( fCurrent instanceof ColorDefinition && this.iTransparency != 0 ) { iTransparency = ( bTransparencyChanged ) ? this.iTransparency : ( (ColorDefinition) fCurrent ).getTransparency( ); } cTmp.setTransparency( iTransparency ); addAdapters( cTmp ); setFill( cTmp ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); cmpDropDown.getShell( ).close( ); } break; case SWT.Traverse : switch ( event.detail ) { case SWT.TRAVERSE_TAB_NEXT : case SWT.TRAVERSE_TAB_PREVIOUS : // Indicates getting focus control rather than cursor // control isPressingKey = true; } break; } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/778f29f1c03894916448edea0d6d116dc5f5c05c/FillChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 1133, 12, 2587, 871, 262, 202, 95, 202, 202, 9610, 261, 871, 18, 723, 262, 202, 202, 95, 1082, 202, 3593, 348, 8588, 18, 9233, 1182, 294, 9506, 202, 430, 261, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 1133, 12, 2587, 871, 262, 202, 95, 202, 202, 9610, 261, 871, 18, 723, 262, 202, 202, 95, 1082, 202, 3593, 348, 8588, 18, 9233, 1182, 294, 9506, 202, 430, 261, 353...
if (jj_3R_32()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
if (jj_3R_30()) return true;
final private boolean jj_3R_26() { if (jj_3R_32()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
54194 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54194/99c138258b5a5971e928b57d1f13e8e69a08c3bc/Parser.java/buggy/src/org/nfunk/jep/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5558, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 1578, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 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, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5558, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 1578, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67...
if (kind > 2) kind = 2;
if (kind > 3) kind = 3;
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 25; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 11: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 2); else if ((0x100002600L & l) != 0L) { if (kind > 9) kind = 9; jjCheckNAdd(10); } else if (curChar == 60) jjCheckNAddStates(0, 2); else if (curChar == 38) jjAddStates(3, 4); else if (curChar == 36) jjstateSet[jjnewStateCnt++] = 1; if ((0x3ff000000000000L & l) != 0L) { if (kind > 5) kind = 5; jjCheckNAddStates(5, 9); } break; case 17: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 22; else if (curChar == 47) jjCheckNAdd(18); break; case 0: if (curChar == 36) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0x3ff000000000000L & l) != 0L) jjCheckNAdd(2); break; case 2: if ((0x500000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 3; break; case 3: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(10, 12); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(5, 9); break; case 5: if ((0x880000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(13, 16); break; case 6: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 2); break; case 7: if (curChar != 34) break; if (kind > 5) kind = 5; jjCheckNAddStates(10, 12); break; case 8: if ((0x208000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 9; break; case 10: if ((0x100002600L & l) == 0L) break; kind = 9; jjCheckNAdd(10); break; case 13: if (curChar == 59 && kind > 8) kind = 8; break; case 14: if (curChar == 35) jjCheckNAdd(15); break; case 15: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 8) kind = 8; jjCheckNAddTwoStates(15, 13); break; case 16: if (curChar == 60) jjCheckNAddStates(0, 2); break; case 19: if ((0x9fffff7affffd9ffL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(20); break; case 20: if ((0x9ffffffeffffd9ffL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(20); break; case 21: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 22; break; case 23: if ((0x9fffff7affffd9ffL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAdd(24); break; case 24: if ((0x9ffffffeffffd9ffL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAdd(24); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 11: case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(5, 9); break; case 17: case 18: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjstateSet[jjnewStateCnt++] = 19; break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(10, 12); break; case 12: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 8) kind = 8; jjAddStates(17, 18); break; case 19: case 20: if (kind > 1) kind = 1; jjCheckNAdd(20); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjstateSet[jjnewStateCnt++] = 23; break; case 23: case 24: if (kind > 2) kind = 2; jjCheckNAdd(24); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 19: case 20: if ((jjbitVec0[i2] & l2) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(20); break; case 23: case 24: if ((jjbitVec0[i2] & l2) == 0L) break; if (kind > 2) kind = 2; jjCheckNAdd(24); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 25 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/41ab0e084c55ebc2924ca4becd35fb57497b2a50/HTMLParserTokenManager.java/clean/src/demo/org/apache/lucene/demo/html/HTMLParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
if (Plan.refCountCycleDetection && VM_Magic.objectAsType(tib[TIB_TYPE_INDEX]).acyclic) initialValue |= GREEN_MASK;
public static void initializeHeader(Object ref, Object[] tib, int size, boolean isScalar) throws VM_PragmaUninterruptible, VM_PragmaInline { // all objects are birthed with an RC of INCREMENT int initialValue = INCREMENT; if (Plan.refCountCycleDetection && VM_Magic.objectAsType(tib[TIB_TYPE_INDEX]).acyclic) initialValue |= GREEN_MASK; VM_Magic.setIntAtOffset(ref, RC_HEADER_OFFSET, initialValue); int oldValue = VM_ObjectModel.readAvailableBitsWord(ref); int newValue = (oldValue & ~SMALL_OBJECT_MASK) | Plan.getInitialHeaderValue(size); VM_ObjectModel.writeAvailableBitsWord(ref, newValue); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/84bdef349ffd166a43513a71117d370964a51402/SimpleRCHeader.java/buggy/rvm/src/vm/memoryManagers/JMTk/header/SimpleRCHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 4046, 1864, 12, 921, 1278, 16, 1033, 8526, 268, 495, 16, 509, 963, 16, 6862, 1377, 1250, 11604, 3473, 13, 565, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 16, 8251, 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, 282, 1071, 760, 918, 4046, 1864, 12, 921, 1278, 16, 1033, 8526, 268, 495, 16, 509, 963, 16, 6862, 1377, 1250, 11604, 3473, 13, 565, 1216, 8251, 67, 2050, 9454, 984, 31847, 1523, 16, 8251, 67...
assertTrue("5 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("5 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("5 returns a wrong port", u1.getPort() == -1); assertTrue("5 returns a wrong file", u1.getFile().equals( "/file.java")); assertTrue("5 returns a wrong anchor", u1.getRef() == null);
assertEquals("5 returns a wrong protocol", "http", u1.getProtocol()); assertEquals("5 returns a wrong host", "www.apache.org", u1.getHost()); assertEquals("5 returns a wrong port", -1, u1.getPort()); assertEquals("5 returns a wrong file", "/file.java", u1.getFile()); assertNull("5 returns a wrong anchor", u1.getRef());
public void test_ConstructorLjava_net_URLLjava_lang_String() { // Test for method java.net.URL(java.net.URL, java.lang.String) try { u = new URL("http://www.yahoo.com"); URL uf = new URL("file://www.yahoo.com"); // basic ones u1 = new URL(u, "file.java"); assertTrue("1 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("1 returns a wrong host", u1.getHost().equals( "www.yahoo.com")); assertTrue("1 returns a wrong port", u1.getPort() == -1); assertTrue("1 returns a wrong file", u1.getFile().equals( "/file.java")); assertTrue("1 returns a wrong anchor", u1.getRef() == null); URL u1f = new URL(uf, "file.java"); assertTrue("1f returns a wrong protocol", u1f.getProtocol().equals( "file")); assertTrue("1f returns a wrong host", u1f.getHost().equals( "www.yahoo.com")); assertTrue("1f returns a wrong port", u1f.getPort() == -1); assertTrue("1f returns a wrong file", u1f.getFile().equals( "/file.java")); assertTrue("1f returns a wrong anchor", u1f.getRef() == null); u1 = new URL(u, "dir1/dir2/../file.java"); assertTrue("3 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("3 returns a wrong host: " + u1.getHost(), u1.getHost() .equals("www.yahoo.com")); assertTrue("3 returns a wrong port", u1.getPort() == -1); assertTrue("3 returns a wrong file", u1.getFile().equals( "/dir1/dir2/../file.java")); assertTrue("3 returns a wrong anchor", u1.getRef() == null); u1 = new URL(u, "http:dir1/dir2/../file.java"); assertTrue("3a returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("3a returns a wrong host: " + u1.getHost(), u1.getHost() .equals("")); assertTrue("3a returns a wrong port", u1.getPort() == -1); assertTrue("3a returns a wrong file", u1.getFile().equals( "dir1/dir2/../file.java")); assertTrue("3a returns a wrong anchor", u1.getRef() == null); u = new URL("http://www.apache.org/testing/"); u1 = new URL(u, "file.java"); assertTrue("4 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("4 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("4 returns a wrong port", u1.getPort() == -1); assertTrue("4 returns a wrong file", u1.getFile().equals( "/testing/file.java")); assertTrue("4 returns a wrong anchor", u1.getRef() == null); uf = new URL("file://www.apache.org/testing/"); u1f = new URL(uf, "file.java"); assertTrue("4f returns a wrong protocol", u1f.getProtocol().equals( "file")); assertTrue("4f returns a wrong host", u1f.getHost().equals( "www.apache.org")); assertTrue("4f returns a wrong port", u1f.getPort() == -1); assertTrue("4f returns a wrong file", u1f.getFile().equals( "/testing/file.java")); assertTrue("4f returns a wrong anchor", u1f.getRef() == null); uf = new URL("file:/testing/"); u1f = new URL(uf, "file.java"); assertTrue("4fa returns a wrong protocol", u1f.getProtocol() .equals("file")); assertTrue("4fa returns a wrong host", u1f.getHost().equals("")); assertTrue("4fa returns a wrong port", u1f.getPort() == -1); assertTrue("4fa returns a wrong file", u1f.getFile().equals( "/testing/file.java")); assertTrue("4fa returns a wrong anchor", u1f.getRef() == null); uf = new URL("file:testing/"); u1f = new URL(uf, "file.java"); assertTrue("4fb returns a wrong protocol", u1f.getProtocol() .equals("file")); assertTrue("4fb returns a wrong host", u1f.getHost().equals("")); assertTrue("4fb returns a wrong port", u1f.getPort() == -1); assertTrue("4fb returns a wrong file", u1f.getFile().equals( "testing/file.java")); assertTrue("4fb returns a wrong anchor", u1f.getRef() == null); u1f = new URL(uf, "file:file.java"); assertTrue("4fc returns a wrong protocol", u1f.getProtocol() .equals("file")); assertTrue("4fc returns a wrong host", u1f.getHost().equals("")); assertTrue("4fc returns a wrong port", u1f.getPort() == -1); assertTrue("4fc returns a wrong file", u1f.getFile().equals( "file.java")); assertTrue("4fc returns a wrong anchor", u1f.getRef() == null); u1f = new URL(uf, "file:"); assertTrue("4fd returns a wrong protocol", u1f.getProtocol() .equals("file")); assertTrue("4fd returns a wrong host", u1f.getHost().equals("")); assertTrue("4fd returns a wrong port", u1f.getPort() == -1); assertTrue("4fd returns a wrong file", u1f.getFile().equals("")); assertTrue("4fd returns a wrong anchor", u1f.getRef() == null); u = new URL("http://www.apache.org/testing"); u1 = new URL(u, "file.java"); assertTrue("5 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("5 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("5 returns a wrong port", u1.getPort() == -1); assertTrue("5 returns a wrong file", u1.getFile().equals( "/file.java")); assertTrue("5 returns a wrong anchor", u1.getRef() == null); uf = new URL("file://www.apache.org/testing"); u1f = new URL(uf, "file.java"); assertTrue("5f returns a wrong protocol", u1f.getProtocol().equals( "file")); assertTrue("5f returns a wrong host", u1f.getHost().equals( "www.apache.org")); assertTrue("5f returns a wrong port", u1f.getPort() == -1); assertTrue("5f returns a wrong file", u1f.getFile().equals( "/file.java")); assertTrue("5f returns a wrong anchor", u1f.getRef() == null); uf = new URL("file:/testing"); u1f = new URL(uf, "file.java"); assertTrue("5fa returns a wrong protocol", u1f.getProtocol() .equals("file")); assertTrue("5fa returns a wrong host", u1f.getHost().equals("")); assertTrue("5fa returns a wrong port", u1f.getPort() == -1); assertTrue("5fa returns a wrong file", u1f.getFile().equals( "/file.java")); assertTrue("5fa returns a wrong anchor", u1f.getRef() == null); uf = new URL("file:testing"); u1f = new URL(uf, "file.java"); assertTrue("5fb returns a wrong protocol", u1f.getProtocol() .equals("file")); assertTrue("5fb returns a wrong host", u1f.getHost().equals("")); assertTrue("5fb returns a wrong port", u1f.getPort() == -1); assertTrue("5fb returns a wrong file", u1f.getFile().equals( "file.java")); assertTrue("5fb returns a wrong anchor", u1f.getRef() == null); u = new URL("http://www.apache.org/testing/foobaz"); u1 = new URL(u, "/file.java"); assertTrue("6 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("6 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("6 returns a wrong port", u1.getPort() == -1); assertTrue("6 returns a wrong file", u1.getFile().equals( "/file.java")); assertTrue("6 returns a wrong anchor", u1.getRef() == null); uf = new URL("file://www.apache.org/testing/foobaz"); u1f = new URL(uf, "/file.java"); assertTrue("6f returns a wrong protocol", u1f.getProtocol().equals( "file")); assertTrue("6f returns a wrong host", u1f.getHost().equals( "www.apache.org")); assertTrue("6f returns a wrong port", u1f.getPort() == -1); assertTrue("6f returns a wrong file", u1f.getFile().equals( "/file.java")); assertTrue("6f returns a wrong anchor", u1f.getRef() == null); u = new URL("http://www.apache.org:8000/testing/foobaz"); u1 = new URL(u, "/file.java"); assertTrue("7 returns a wrong protocol", u1.getProtocol().equals( "http")); assertTrue("7 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("7 returns a wrong port", u1.getPort() == 8000); assertTrue("7 returns a wrong file", u1.getFile().equals( "/file.java")); assertTrue("7 returns a wrong anchor", u1.getRef() == null); u = new URL("http://www.apache.org/index.html"); u1 = new URL(u, "#bar"); assertTrue("8 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("8 returns a wrong file", u1.getFile().equals( "/index.html")); assertTrue("8 returns a wrong anchor", u1.getRef().equals("bar")); u = new URL("http://www.apache.org/index.html#foo"); u1 = new URL(u, "http:#bar"); assertTrue("9 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("9 returns a wrong file", u1.getFile().equals( "/index.html")); assertTrue("9 returns a wrong anchor", u1.getRef().equals("bar")); u = new URL("http://www.apache.org/index.html"); u1 = new URL(u, ""); assertTrue("10 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("10 returns a wrong file", u1.getFile().equals( "/index.html")); assertTrue("10 returns a wrong anchor", u1.getRef() == null); uf = new URL("file://www.apache.org/index.html"); u1f = new URL(uf, ""); assertTrue("10f returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("10f returns a wrong file", u1.getFile().equals( "/index.html")); assertTrue("10f returns a wrong anchor", u1.getRef() == null); u = new URL("http://www.apache.org/index.html"); u1 = new URL(u, "http://www.apache.org"); assertTrue("11 returns a wrong host", u1.getHost().equals( "www.apache.org")); assertTrue("11 returns a wrong file", u1.getFile().equals("")); assertTrue("11 returns a wrong anchor", u1.getRef() == null); // test for question mark processing u = new URL("http://www.foo.com/d0/d1/d2/cgi-bin?foo=bar/baz"); // test for relative file and out of bound "/../" processing u1 = new URL(u, "../dir1/./dir2/../file.java"); assertTrue("A) returns a wrong file: " + u1.getFile(), u1.getFile() .equals("/d0/d1/dir1/file.java")); // test for absolute and relative file processing u1 = new URL(u, "/../dir1/./dir2/../file.java"); assertTrue("B) returns a wrong file", u1.getFile().equals( "/../dir1/./dir2/../file.java")); } catch (Exception e) { fail("1 Exception during tests : " + e.getMessage()); } try { // u should raise a MalFormedURLException because u, the context is // null u = null; u1 = new URL(u, "file.java"); } catch (MalformedURLException e) { return; } catch (Exception e) { fail("2 Exception during tests : " + e.getMessage()); } fail("didn't throw the expected MalFormedURLException"); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/URLTest.java/buggy/modules/luni/src/test/java/tests/api/java/net/URLTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 21159, 67, 2758, 67, 1785, 21159, 67, 4936, 67, 780, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 2758, 18, 1785, 12, 6290, 18, 2758, 18, 1785, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 6293, 21159, 67, 2758, 67, 1785, 21159, 67, 4936, 67, 780, 1435, 288, 202, 202, 759, 7766, 364, 707, 2252, 18, 2758, 18, 1785, 12, 6290, 18, 2758, 18, 1785, 1...
fRegexType = (PatternFactory)gcFactoryMap.values().iterator().next(); }
fRegexType = (PatternFactory)gcFactoryMap.values().iterator().next(); }
private Factory(){// fRegexType = (Constructor)gcImplMap.values().iterator().next(); fRegexType = (PatternFactory)gcFactoryMap.values().iterator().next(); }
1353 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1353/d83720b96b6d901484f23dd2ad240894c6484fe3/Factory.java/buggy/src/org/doit/muffin/regexp/Factory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 7822, 1435, 95, 759, 202, 202, 74, 6628, 559, 273, 261, 6293, 13, 13241, 2828, 863, 18, 2372, 7675, 9838, 7675, 4285, 5621, 202, 202, 74, 6628, 559, 273, 261, 3234, 1733, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 7822, 1435, 95, 759, 202, 202, 74, 6628, 559, 273, 261, 6293, 13, 13241, 2828, 863, 18, 2372, 7675, 9838, 7675, 4285, 5621, 202, 202, 74, 6628, 559, 273, 261, 3234, 1733, 13,...
"#meta_id#", String.valueOf(meta_id),
"#meta_id#", String.valueOf(document.getMetaId()),
public String tagInclude (Properties attributes, PatternMatcher patMat) { int no = 0 ; String attributevalue ; //lets get the templates simplename or null if there isn't one ParserParameters paramsToParse = new ParserParameters() ; paramsToParse.setTemplate(attributes.getProperty("template")) ; paramsToParse.setParameter(attributes.getProperty("param")) ; if (null != (attributevalue = attributes.getProperty("no"))) { // If we have the attribute no="number"... // Set the number of this include-tag try { no = Integer.parseInt(attributevalue) ; // Then set the number wanted implicitIncludeNumber = no + 1 ; } catch (NumberFormatException ex) { return "" ; } } else if (null != (attributevalue = attributes.getProperty("file"))) { // If we have the attribute file="filename"... // Fetch a file from the disk try { return fileCache.getCachedFileString(new File(includePath, attributevalue)) ; // Get a file from the include directory } catch (IOException ignored) {} return "" ; } else if (null != (attributevalue = attributes.getProperty("document"))) { // If we have the attribute document="meta-id" try { if (includeLevel>0) { int included_meta_id = Integer.parseInt(attributevalue) ; // Recursively parse the wanted page. String document = textDocParser.parsePage(included_meta_id,user,-1,includeLevel-1,paramsToParse) ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_PREBODY_PATTERN,NULL_SUBSTITUTION,document) ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_POSTBODY_PATTERN,NULL_SUBSTITUTION,document) ; return document ; } } catch (NumberFormatException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (IOException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (RuntimeException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } return "" ; } else if (null != (attributevalue = attributes.getProperty("url"))) { // If we have an attribute of the form url="url:url" try { URL url = new URL(attributevalue) ; if (url.getProtocol().equalsIgnoreCase("file")) { // Make sure we don't have to defend against file://urls... return "" ; } InputStreamReader urlInput = new InputStreamReader(url.openConnection().getInputStream()) ; int charsRead = -1 ; final int URL_BUFFER_LEN = 16384 ; char[] buffer = new char[URL_BUFFER_LEN] ; StringBuffer urlResult = new StringBuffer() ; while (-1 != (charsRead = urlInput.read(buffer,0,URL_BUFFER_LEN))) { urlResult.append(buffer,0,charsRead) ; } return urlResult.toString() ; } catch (MalformedURLException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (IOException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (RuntimeException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } } else { // If we have none of the attributes no, file, or document no = implicitIncludeNumber++ ; // Implicitly use the next number. } try { if (includeMode) { String included_meta_id_str = (String)included_docs.get(String.valueOf(no)) ; return imcode.util.Parser.parseDoc(fileCache.getCachedFileString(new File(templatePath, user.getLangPrefix()+"/admin/change_include.html")), new String[] { "#meta_id#", String.valueOf(meta_id), "#include_id#", String.valueOf(no), "#include_meta_id#", included_meta_id_str == null ? "" : included_meta_id_str } ) ; } else if (includeLevel>0) { int included_meta_id = Integer.parseInt((String)included_docs.get(String.valueOf(no))) ; String document = textDocParser.parsePage(included_meta_id,user,-1,includeLevel-1,paramsToParse) ; ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_PREBODY_PATTERN,NULL_SUBSTITUTION,document) ; document = org.apache.oro.text.regex.Util.substitute(patMat,HTML_POSTBODY_PATTERN,NULL_SUBSTITUTION,document) ; return document ; } } catch (IOException ex) { return "<!-- imcms:include failed: "+ex+" -->" ; } catch (NumberFormatException ex) { // There was no such include in the db. return "" ; } return "" ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/5809d66a25d58d7ffad1cd1d9aa41c714fbcef76/ImcmsTagSubstitution.java/buggy/server/src/imcode/server/parser/ImcmsTagSubstitution.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1047, 8752, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 474, 1158, 273, 374, 274, 202, 780, 1566, 1132, 274, 202, 759, 17307, 336, 326, 5539, 9330, 1069, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1047, 8752, 261, 2297, 1677, 16, 6830, 6286, 9670, 15947, 13, 288, 202, 474, 1158, 273, 374, 274, 202, 780, 1566, 1132, 274, 202, 759, 17307, 336, 326, 5539, 9330, 1069, 578, ...
default : out.close(); throw new RuntimeException("Unknown icode : " + token + " @ pc : " + (pc - 1));
private static void dumpICode(InterpreterData theData) { if (Context.printICode) { try { int iCodeLength = theData.itsICodeTop; byte iCode[] = theData.itsICode; String[] strings = theData.itsStringTable; out = new PrintWriter(new FileOutputStream("icode.txt", true)); out.println("ICode dump, for " + theData.itsName + ", length = " + iCodeLength); out.println("MaxStack = " + theData.itsMaxStack); for (int pc = 0; pc < iCodeLength; ) { out.print("[" + pc + "] "); int token = iCode[pc] & 0xff; String tname = icodeToName(token); ++pc; switch (token) { case TokenStream.SCOPE : case TokenStream.GETPROTO : case TokenStream.GETPARENT : case TokenStream.GETSCOPEPARENT : case TokenStream.SETPROTO : case TokenStream.SETPARENT : case TokenStream.DELPROP : case TokenStream.TYPEOF : case TokenStream.NEWSCOPE : case TokenStream.ENTERWITH : case TokenStream.LEAVEWITH : case TokenStream.RETURN : case TokenStream.ENDTRY : case TokenStream.THROW : case TokenStream.JTHROW : case TokenStream.GETTHIS : case TokenStream.SETELEM : case TokenStream.GETELEM : case TokenStream.SETPROP : case TokenStream.GETPROP : case TokenStream.PROPINC : case TokenStream.PROPDEC : case TokenStream.ELEMINC : case TokenStream.ELEMDEC : case TokenStream.BITNOT : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.NEG : case TokenStream.POS : case TokenStream.SUB : case TokenStream.MUL : case TokenStream.DIV : case TokenStream.MOD : case TokenStream.ADD : case TokenStream.POPV : case TokenStream.POP : case TokenStream.DUP : case TokenStream.LT : case TokenStream.GT : case TokenStream.LE : case TokenStream.GE : case TokenStream.IN : case TokenStream.INSTANCEOF : case TokenStream.EQ : case TokenStream.NE : case TokenStream.SHEQ : case TokenStream.SHNE : case TokenStream.ZERO : case TokenStream.ONE : case TokenStream.NULL : case TokenStream.THIS : case TokenStream.THISFN : case TokenStream.FALSE : case TokenStream.TRUE : case TokenStream.UNDEFINED : case SOURCEFILE_ICODE : case RETURN_UNDEF_ICODE: case END_ICODE: out.println(tname); break; case TokenStream.GOSUB : case TokenStream.GOTO : case TokenStream.IFEQ : case TokenStream.IFNE : { int newPC = getTarget(iCode, pc); out.println(tname + " " + newPC); pc += 2; } break; case TokenStream.TRY : { int catch_offset = getShort(iCode, pc); int finally_offset = getShort(iCode, pc + 2); int catch_pc = (catch_offset == 0) ? -1 : pc - 1 + catch_offset; int finally_pc = (finally_offset == 0) ? -1 : pc - 1 + finally_offset; out.println(tname + " " + catch_pc + " " + finally_pc); pc += 4; } break; case TokenStream.RETSUB : case TokenStream.ENUMINIT : case TokenStream.ENUMNEXT : case TokenStream.VARINC : case TokenStream.VARDEC : case TokenStream.GETVAR : case TokenStream.SETVAR : case TokenStream.NEWTEMP : case TokenStream.USETEMP : { int slot = (iCode[pc] & 0xFF); out.println(tname + " " + slot); pc++; } break; case TokenStream.CALLSPECIAL : { int line = getShort(iCode, pc); String name = strings[getShort(iCode, pc + 2)]; int count = getShort(iCode, pc + 4); out.println(tname + " " + count + " " + line + " " + name); pc += 6; } break; case TokenStream.OBJECT : case TokenStream.CLOSURE : case TokenStream.NEW : case TokenStream.CALL : { int count = getShort(iCode, pc + 2); String name = strings[getShort(iCode, pc)]; out.println(tname + " " + count + " \"" + name + "\""); pc += 4; } break; case SHORTNUMBER_ICODE : { int value = getShort(iCode, pc); out.println(tname + " " + value); pc += 2; } break; case INTNUMBER_ICODE : { int value = getInt(iCode, pc); out.println(tname + " " + value); pc += 4; } break; case TokenStream.NUMBER : { int index = getShort(iCode, pc); double value = theData.itsDoubleTable[index]; out.println(tname + " " + value); pc += 2; } break; case TokenStream.TYPEOFNAME : case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.SETNAME : case TokenStream.NAME : case TokenStream.NAMEINC : case TokenStream.NAMEDEC : case TokenStream.STRING : out.println(tname + " \"" + strings[getShort(iCode, pc)] + "\""); pc += 2; break; case LINE_ICODE : { int line = getShort(iCode, pc); out.println(tname + " : " + line); pc += 2; } break; default : out.close(); throw new RuntimeException("Unknown icode : " + token + " @ pc : " + (pc - 1)); } } out.close(); } catch (IOException x) {} } }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8cb98c5dfa0715766ca024f3b8eca90ed943fe1a/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 326, 751, 13, 288, 3639, 309, 261, 1042, 18, 1188, 45, 1085, 13, 288, 5411, 775, 288, 7734, 509, 277, 1085, 1782, 273, 326, 751, 18, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 45, 1085, 12, 30010, 751, 326, 751, 13, 288, 3639, 309, 261, 1042, 18, 1188, 45, 1085, 13, 288, 5411, 775, 288, 7734, 509, 277, 1085, 1782, 273, 326, 751, 18, 12...
IContentProposal[] proposals = proposalProvider.getProposals( contents, position);
IContentProposal[] proposals = proposalProvider.getProposals(contents, position);
private IContentProposal[] getProposals() { if (proposalProvider == null || !isValid()) { return null; } int position = insertionPos; if (position == -1) { position = getControlContentAdapter().getCursorPosition( getControl()); } String contents = getControlContentAdapter().getControlContents( getControl()); IContentProposal[] proposals = proposalProvider.getProposals( contents, position); return proposals; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3c8429a60e5e65142c6024e843a14c5deaeb91fd/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 1350, 14592, 8526, 3570, 22536, 1435, 288, 202, 202, 430, 261, 685, 8016, 2249, 422, 446, 747, 401, 26810, 10756, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 1350, 14592, 8526, 3570, 22536, 1435, 288, 202, 202, 430, 261, 685, 8016, 2249, 422, 446, 747, 401, 26810, 10756, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, ...
public DebuggerContextImpl getDebuggerContext() {
public final DebuggerContextImpl getDebuggerContext() {
public DebuggerContextImpl getDebuggerContext() { return myDebuggerContext; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/25858ba9593803f22924b7db7de2a68e94064c7e/DebuggerContextCommandImpl.java/buggy/source/com/intellij/debugger/engine/events/DebuggerContextCommandImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 28645, 1042, 2828, 336, 24113, 1042, 1435, 288, 565, 327, 3399, 24113, 1042, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 28645, 1042, 2828, 336, 24113, 1042, 1435, 288, 565, 327, 3399, 24113, 1042, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
protected LuceneIndexIdChunk getNextIndexedIdChunk(int maxChunkSize) throws ServiceException { try { int numLeft = mLuceneHits.length() - mCurHitNo; int numToReturn = Math.min(numLeft, maxChunkSize); LuceneIndexIdChunk toRet = new LuceneIndexIdChunk(); for (int i = 0; i < numToReturn; i++) { Document d = mLuceneHits.doc(mCurHitNo++); String mbid = d.get(LuceneFields.L_MAILBOX_BLOB_ID); try { if (mbid != null) {// toRet[i] = Integer.parseInt(mbid); toRet.addHit(Integer.parseInt(mbid), d); } } catch (NumberFormatException e) { e.printStackTrace(); } } return toRet; } catch (IOException e) { throw ServiceException.FAILURE("Caught IOException getting lucene results", e); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c110758da6c6ae6dcbaff8dda4c8b99206784e4b/LuceneQueryOperation.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/LuceneQueryOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 19763, 1016, 548, 5579, 588, 2134, 15034, 548, 5579, 12, 474, 1896, 26307, 13, 15069, 15133, 95, 698, 95, 474, 2107, 3910, 33, 81, 19763, 20950, 18, 2469, 1435, 17, 81, 2408, 13616, 2279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 19763, 1016, 548, 5579, 588, 2134, 15034, 548, 5579, 12, 474, 1896, 26307, 13, 15069, 15133, 95, 698, 95, 474, 2107, 3910, 33, 81, 19763, 20950, 18, 2469, 1435, 17, 81, 2408, 13616, 2279...
PVCS pvcs = new PVCS(); String line1 = "hello world"; assertEquals("hello world", pvcs.getFixedLine(line1));
PVCS pvcs = new PVCS(); String line1 = "hello world"; assertEquals("hello world", pvcs.getFixedLine(line1));
public void testGetFixedLines() { PVCS pvcs = new PVCS(); String line1 = "hello world"; assertEquals("hello world", pvcs.getFixedLine(line1)); String line2 = "\"\\\\\\fa la la"; assertEquals("\"\\\\\\fa la la", pvcs.getFixedLine(line2)); String uncSharePath = "\"\\\\hostname\\dir\""; assertEquals("\"\\\\\\hostname\\dir\"", pvcs.getFixedLine(uncSharePath)); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/70daedda2cdd1b8e9245311c1790bef77a5e3fb4/PVCSTest.java/clean/main/test/net/sourceforge/cruisecontrol/sourcecontrols/PVCSTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 7505, 5763, 1435, 288, 202, 30201, 4596, 9770, 2143, 273, 394, 27102, 4596, 5621, 202, 780, 980, 21, 273, 315, 23711, 9117, 14432, 202, 11231, 8867, 2932, 23711, 9117,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 7505, 5763, 1435, 288, 202, 30201, 4596, 9770, 2143, 273, 394, 27102, 4596, 5621, 202, 780, 980, 21, 273, 315, 23711, 9117, 14432, 202, 11231, 8867, 2932, 23711, 9117,...
char hexBuf[] = new char[4];
private static String encode(Context cx, String str, String unescapedSet) { int j, k = 0, L; char C, C2; int V; char utf8buf[] = new char[6]; char hexBuf[] = new char[4]; StringBuffer R; R = new StringBuffer(); while (k < str.length()) { C = str.charAt(k); if (unescapedSet.indexOf(C) != -1) { R.append(C); } else { if ((C >= 0xDC00) && (C <= 0xDFFF)) { throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); } if ((C < 0xD800) || (C > 0xDBFF)) V = C; else { k++; if (k == str.length()) { throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); } C2 = str.charAt(k); if ((C2 < 0xDC00) || (C2 > 0xDFFF)) { throw cx.reportRuntimeError( cx.getMessage("msg.bad.uri", null)); } V = ((C - 0xD800) << 10) + (C2 - 0xDC00) + 0x10000; } L = oneUcs4ToUtf8Char(utf8buf, V); for (j = 0; j < L; j++) { R.append('%'); if (utf8buf[j] < 16) R.append('0'); R.append(Integer.toHexString(utf8buf[j])); } } k++; } return R.toString(); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/7aaf41c1fc4084d73ed911a1dc6a1bbfea14a64f/NativeGlobal.java/buggy/org/mozilla/javascript/NativeGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 2017, 12, 1042, 9494, 16, 514, 609, 16, 514, 27869, 694, 13, 202, 95, 202, 565, 509, 525, 16, 417, 273, 374, 16, 511, 31, 202, 565, 1149, 385, 16, 385, 22, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 2017, 12, 1042, 9494, 16, 514, 609, 16, 514, 27869, 694, 13, 202, 95, 202, 565, 509, 525, 16, 417, 273, 374, 16, 511, 31, 202, 565, 1149, 385, 16, 385, 22, 31, ...
putNameMap(CONTENT_ENCODING, "ContentEncoding");
putNameMap(CONTENT_ENCODING, ContentEncoding.class.getName());
private static void initializeNameMap() { nameMap = new Hashtable(); putNameMap(MIN_EXPIRES, "MinExpires"); // 1 putNameMap(ERROR_INFO, "ErrorInfo"); // 2 putNameMap(MIME_VERSION, "MimeVersion"); // 3 putNameMap(IN_REPLY_TO, "InReplyTo"); // 4 putNameMap(ALLOW, "Allow"); // 5 putNameMap(CONTENT_LANGUAGE, "ContentLanguage"); // 6 putNameMap(CALL_INFO, "CallInfo"); //7 putNameMap(CSEQ, "CSeq"); //8 putNameMap(ALERT_INFO, "AlertInfo"); //9 putNameMap(ACCEPT_ENCODING, "AcceptEncoding"); //10 putNameMap(ACCEPT, "Accept"); //11 putNameMap(ACCEPT_LANGUAGE, "AcceptLanguage"); //12 putNameMap(RECORD_ROUTE, "RecordRoute"); //13 putNameMap(TIMESTAMP, "TimeStamp"); //14 putNameMap(TO, "To"); //15 putNameMap(VIA, "Via"); //16 putNameMap(FROM, "From"); //17 putNameMap(CALL_ID, "CallID"); //18 putNameMap(AUTHORIZATION, "Authorization"); //19 putNameMap(PROXY_AUTHENTICATE, "ProxyAuthenticate"); //20 putNameMap(SERVER, "Server"); //21 putNameMap(UNSUPPORTED, "Unsupported"); //22 putNameMap(RETRY_AFTER, "RetryAfter"); //23 putNameMap(CONTENT_TYPE, "ContentType"); //24 putNameMap(CONTENT_ENCODING, "ContentEncoding"); //25 putNameMap(CONTENT_LENGTH, "ContentLength"); //26 putNameMap(ROUTE, "Route"); //27 putNameMap(CONTACT, "Contact"); //28 putNameMap(WWW_AUTHENTICATE, "WWWAuthenticate"); //29 putNameMap(MAX_FORWARDS, "MaxForwards"); //30 putNameMap(ORGANIZATION, "Organization"); //31 putNameMap(PROXY_AUTHORIZATION, "ProxyAuthorization"); //32 putNameMap(PROXY_REQUIRE, "ProxyRequire"); //33 putNameMap(REQUIRE, "Require"); //34 putNameMap(CONTENT_DISPOSITION, "ContentDisposition"); //35 putNameMap(SUBJECT, "Subject"); //36 putNameMap(USER_AGENT, "UserAgent"); //37 putNameMap(WARNING, "Warning"); //38 putNameMap(PRIORITY, "Priority"); //39 putNameMap(DATE, "SIPDateHeader"); //40 putNameMap(EXPIRES, "Expires"); //41 putNameMap(SUPPORTED, "Supported"); //42 putNameMap(REPLY_TO, "ReplyTo"); // 43 putNameMap(SUBSCRIPTION_STATE, "SubscriptionState"); //44 putNameMap(EVENT, "Event"); //45 putNameMap(ALLOW_EVENTS, "AllowEvents"); //46 }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/a61a806d6ef1fc8de54212b67e9762c0f3727f07/NameMap.java/buggy/src/gov/nist/javax/sip/header/NameMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 4046, 461, 863, 1435, 288, 202, 202, 529, 863, 273, 394, 18559, 5621, 202, 202, 458, 461, 863, 12, 6236, 67, 18433, 7031, 16, 315, 2930, 14449, 8863, 368, 404, 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, 760, 918, 4046, 461, 863, 1435, 288, 202, 202, 529, 863, 273, 394, 18559, 5621, 202, 202, 458, 461, 863, 12, 6236, 67, 18433, 7031, 16, 315, 2930, 14449, 8863, 368, 404, 202,...
VALUE rb_str_new(String s, int len) {
RubyObject rb_str_new(String s, int len) {
VALUE rb_str_new(String s, int len) { return new RubyString(ruby, s.substring(0, len)); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/a2024bddc1b8e83f4e8075d2080935c221a833fe/parse.java/buggy/org/jruby/parser/parse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 19817, 921, 7138, 67, 701, 67, 2704, 12, 780, 272, 16, 509, 562, 13, 288, 3639, 327, 394, 19817, 780, 12, 27768, 16, 272, 18, 28023, 12, 20, 16, 562, 10019, 565, 289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 19817, 921, 7138, 67, 701, 67, 2704, 12, 780, 272, 16, 509, 562, 13, 288, 3639, 327, 394, 19817, 780, 12, 27768, 16, 272, 18, 28023, 12, 20, 16, 562, 10019, 565, 289, 2, -100, -100, ...
if (aomListener != null) aomListener.servantEtherialized(oid, servant);
if (aomListener != null) aomListener.servantEtherialized(oid, servant);
synchronized private void _remove( byte[] oid, RequestController requestController, ServantActivator servantActivator, POA poa, boolean cleanupInProgress) { ByteArrayKey oidbak = new ByteArrayKey( oid ); Servant servant = null; if (!objectMap.containsKey(oidbak)) { // should not happen but ... deactivationList.removeElement(oidbak); return; } // wait for request completion on this object (see freeObject below) if ( requestController != null) requestController.waitForObjectCompletion(oid); deactivationList.removeElement(oidbak); if ((servant = (Servant)objectMap.get(oidbak)) == null) { return; } /* object deactivation */ objectMap.remove(oidbak); if (unique) { servantMap.remove(servant); } if (logTrace.test(2)) logTrace.printLog(oid, "object is deactivated"); // notify an aom listener if (aomListener != null) aomListener.objectDeactivated(oid, servant, objectMap.size()); if (servantActivator == null) { requestController.freeObject(oid); return; } /* servant etherealization */ /* all invocations of incarnate on the servant manager are serialized, all invocations of etherealize on the servant manager are serialized, invocations of incarnate and etherialize are mutually exclusive */ while (!incarnationList.isEmpty() || !etherealisationList.isEmpty()) { try { wait(); } catch (InterruptedException e) { } } etherealisationList.addElement(oidbak); try { servantActivator.etherealize ( oid, poa, servant, cleanupInProgress, contains(servant) ); if (logTrace.test(2)) logTrace.printLog(oid, "servant is etherealized"); // notify an aom listener if (aomListener != null) aomListener.servantEtherialized(oid, servant); } catch (org.omg.CORBA.SystemException e) { if (logTrace.test(1)) logTrace.printLog( oid, "exception occurred during servant etherialisation: "+e ); } finally { etherealisationList.removeElement(oidbak); notifyAll(); } // unregister the object from deactivation list if (requestController != null) requestController.freeObject(oid); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/a36ac3d38bb67b089978799e672e59184bd26648/AOM.java/buggy/src/org/jacorb/poa/AOM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 3238, 918, 389, 4479, 12, 1160, 8526, 7764, 16, 21821, 1567, 2933, 590, 2933, 16, 21821, 1275, 7445, 12241, 639, 703, 7445, 12241, 639, 16, 21821, 13803, 37, 8275, 69, 16, 21821, 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, 3852, 3238, 918, 389, 4479, 12, 1160, 8526, 7764, 16, 21821, 1567, 2933, 590, 2933, 16, 21821, 1275, 7445, 12241, 639, 703, 7445, 12241, 639, 16, 21821, 13803, 37, 8275, 69, 16, 21821, 12...
if(persistenceType != PERSIST_CONNECTION && handler != null)
if((persistenceType != PERSIST_CONNECTION) && (handler != null))
public ClientPut(FCPConnectionHandler handler, ClientPutMessage message) throws IdentifierCollisionException { super(message.uri, message.identifier, message.verbosity, handler, message.priorityClass, message.persistenceType, message.clientToken, message.global, message.getCHKOnly, message.dontCompress, message.maxRetries); this.uploadFrom = message.uploadFromType; this.origFilename = message.origFilename; // Now go through the fields one at a time String mimeType = message.contentType; clientToken = message.clientToken; if(persistenceType != PERSIST_CONNECTION) client.register(this); Bucket tempData = message.bucket; ClientMetadata cm = new ClientMetadata(mimeType); boolean isMetadata = false; Logger.minor(this, "data = "+tempData+", uploadFrom = "+ClientPutMessage.uploadFromString(uploadFrom)); if(uploadFrom == ClientPutMessage.UPLOAD_FROM_REDIRECT) { this.targetURI = message.redirectTarget; Metadata m = new Metadata(Metadata.SIMPLE_REDIRECT, targetURI, cm); cm = null; byte[] d; try { d = m.writeToByteArray(); } catch (MetadataUnresolvedException e) { // Impossible Logger.error(this, "Impossible: "+e, e); onFailure(new InserterException(InserterException.INTERNAL_ERROR, "Impossible: "+e+" in ClientPut", null), null); this.data = null; clientMetadata = null; inserter = null; return; } tempData = new SimpleReadOnlyArrayBucket(d); isMetadata = true; } else targetURI = null; this.data = tempData; this.clientMetadata = cm; Logger.minor(this, "data = "+data+", uploadFrom = "+ClientPutMessage.uploadFromString(uploadFrom)); inserter = new ClientPutter(this, data, uri, cm, ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, isMetadata, client); if(persistenceType != PERSIST_CONNECTION && handler != null) sendPendingMessages(handler.outputHandler, true, false, false); }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/ClientPut.java/buggy/src/freenet/node/fcp/ClientPut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 12, 42, 4258, 1952, 1503, 1838, 16, 2445, 6426, 1079, 883, 13, 1216, 10333, 13535, 1951, 503, 288, 202, 202, 9565, 12, 2150, 18, 1650, 16, 883, 18, 5644, 16, 883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2445, 6426, 12, 42, 4258, 1952, 1503, 1838, 16, 2445, 6426, 1079, 883, 13, 1216, 10333, 13535, 1951, 503, 288, 202, 202, 9565, 12, 2150, 18, 1650, 16, 883, 18, 5644, 16, 883, ...
myTabbedPane.addChangeListener(myChangeListener = new MyTabbedContainerChangeListener());
private void createTabs(int tabPlacement) { LOG.assertTrue (myTabbedPane == null); myTabbedPane = new EditorTabbedContainer(this, getManager().myProject, tabPlacement, getManager()); myTabbedPane.addChangeListener(myChangeListener = new MyTabbedContainerChangeListener()); myPanel.add(myTabbedPane.getComponent(), BorderLayout.CENTER); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/01e706e8806ba7faf0f7e3c375559eb316bec8c9/EditorWindow.java/clean/source/com/intellij/openapi/fileEditor/impl/EditorWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 17348, 12, 474, 3246, 12420, 13, 288, 565, 2018, 18, 11231, 5510, 261, 4811, 5661, 2992, 8485, 422, 446, 1769, 565, 3399, 5661, 2992, 8485, 273, 394, 18451, 5661, 2992, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 17348, 12, 474, 3246, 12420, 13, 288, 565, 2018, 18, 11231, 5510, 261, 4811, 5661, 2992, 8485, 422, 446, 1769, 565, 3399, 5661, 2992, 8485, 273, 394, 18451, 5661, 2992, 21...
try { Resource resource = collection.getResource(this.key); if (resource == null) { message = "Resource " + this.key + " does not exist"; getLogger().debug(message); } else { collection.removeResource(resource);
if (key != null && key.endsWith("/")) { try { String k = this.key.substring(0, this.key.length() - 1); CollectionManagementService service = (CollectionManagementService) collection.getService("CollectionManagementService", "1.0"); service.removeCollection(k);
public void endElement(String uri, String loc, String raw) throws SAXException { if (!processing) { super.endElement(uri,loc,raw); } else { if (XMLDB_URI.equals(uri) && XMLDB_QUERY_ELEMENT.equals(loc)) { processing = false; String document = null; if (this.queryHandler != null) { // Finish building query. Remove existing prefix mappings. Iterator i = prefixMap.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry) i.next(); this.queryHandler.endPrefixMapping((String)entry.getKey()); } this.queryHandler.endDocument(); document = this.queryWriter.toString(); } // Perform operation Collection collection = null; try { // Obtain collection for the current operation collection = (xbase != null)? DatabaseManager.getCollection(local_base + "/" + xbase) : this.collection; if ("create".equals(operation)) { if (key != null && key.endsWith("/")) { try { // Cut trailing '/' String k = this.key.substring(0, this.key.length() - 1); CollectionManagementService service = (CollectionManagementService) collection.getService("CollectionManagementService", "1.0"); service.createCollection(k); result = "success"; } catch (XMLDBException e) { message = "Failed to create collection " + this.key + ": " + e.errorCode; getLogger().error(message, e); } } else { try { if (key == null) { key = collection.createId(); } // Support of binary objects can be added. Content can be obtained using Source. Resource resource = collection.createResource(key, "XMLResource"); resource.setContent(document); collection.storeResource(resource); result = "success"; key = resource.getId(); } catch (XMLDBException e) { message = "Failed to create resource " + key + ": " + e.errorCode; getLogger().debug(message, e); } } } else if ("delete".equals(operation)) { try { Resource resource = collection.getResource(this.key); if (resource == null) { message = "Resource " + this.key + " does not exist"; getLogger().debug(message); } else { collection.removeResource(resource); result = "success"; } } catch (XMLDBException e) { message = "Failed to delete resource " + key + ": " + e.errorCode; getLogger().debug(message, e); } } else if ("update".equals(operation)) { try { XUpdateQueryService service = (XUpdateQueryService) collection.getService("XUpdateQueryService", "1.0"); long count = (this.key == null)? service.update(document) : service.updateResource(this.key, document); message = count + " entries updated."; result = "success"; } catch (XMLDBException e) { message = "Failed to update resource " + key + ": " + e.errorCode; getLogger().debug(message, e); } } } catch (XMLDBException e) { message = "Failed to get context collection for the query (base: " + local_base + ", context: " + xbase + "): " + e.errorCode; getLogger().debug(message, e); } finally { if (xbase != null) { try { collection.close(); } catch (XMLDBException ignored) { } } } // Report result AttributesImpl attrs = new AttributesImpl(); attrs.addAttribute(null, XMLDB_QUERY_OID_ATTRIBUTE, XMLDB_QUERY_OID_ATTRIBUTE, "CDATA", this.key); attrs.addAttribute(null, XMLDB_QUERY_TYPE_ATTRIBUTE, XMLDB_QUERY_TYPE_ATTRIBUTE, "CDATA", this.operation); attrs.addAttribute(null, XMLDB_QUERY_RESULT_ATTRIBUTE, XMLDB_QUERY_RESULT_ATTRIBUTE, "CDATA", result); super.startElement(uri, loc, raw, attrs); if (message != null) { super.characters(message.toCharArray(), 0, message.length()); } super.endElement(uri, loc, raw); } else if (this.queryHandler != null) { this.queryHandler.endElement(uri, loc, raw); } } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/a3397938ccc7a00f30312889f5e6631284635f79/XMLDBTransformer.java/clean/src/blocks/xmldb/java/org/apache/cocoon/transformation/XMLDBTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14840, 12, 780, 2003, 16, 514, 1515, 16, 514, 1831, 13, 565, 1216, 14366, 288, 3639, 309, 16051, 10632, 13, 288, 5411, 2240, 18, 409, 1046, 12, 1650, 16, 1829, 16, 1899, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14840, 12, 780, 2003, 16, 514, 1515, 16, 514, 1831, 13, 565, 1216, 14366, 288, 3639, 309, 16051, 10632, 13, 288, 5411, 2240, 18, 409, 1046, 12, 1650, 16, 1829, 16, 1899, 1769...
if (frameSize == fileSize) _cache.add(_cacheDir + files[i]);
if (frameSize == fileSize){ _cache.add(_cacheDir + fileName); _client.loadImage(_cacheDir + fileName); }
private void preloadCache(){ File dir = new File(_cacheDir); File file; String[] files = null; if (dir.isDirectory() && dir.canRead()){ files = dir.list(); long fileSize, frameSize; int frameNum; FrameDesc fd = null; for (int i=0; i<files.length; i++){ if (files[i].toLowerCase().endsWith(".jpg")){ file = new File(_cacheDir + files[i]); fileSize = file.length(); frameNum = Integer.parseInt(files[i].substring(0,files[i].length() - 4)); // 4 = ".jpg" for (int level=0; level<numLevels; level++){ fd = framesInfo.getFrame(level, frameNum); if (fd != null) break; } frameSize = fd.getSize() - 1; if (frameSize == fileSize) _cache.add(_cacheDir + files[i]); } } } }
14573 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14573/bc6a0e67e32738a4c30630607bdb5a4dd47b3133/CacheController.java/buggy/client/CacheController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 20941, 1649, 1435, 95, 565, 1387, 1577, 273, 394, 1387, 24899, 2493, 1621, 1769, 565, 1387, 585, 31, 565, 514, 8526, 1390, 273, 446, 31, 565, 309, 261, 1214, 18, 291, 2853, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20941, 1649, 1435, 95, 565, 1387, 1577, 273, 394, 1387, 24899, 2493, 1621, 1769, 565, 1387, 585, 31, 565, 514, 8526, 1390, 273, 446, 31, 565, 309, 261, 1214, 18, 291, 2853, 1...
if( ftype.equals( type ) )
if( ftype.isSameType( type ) )
public static boolean isSameTemplate(ICPPTemplateDefinition definition, IASTName name) { ICPPTemplateParameter [] defParams = definition.getTemplateParameters(); ICPPASTTemplateDeclaration templateDecl = getTemplateDeclaration( name ); ICPPASTTemplateParameter [] templateParams = templateDecl.getTemplateParameters(); if( defParams.length != templateParams.length ) return false; ObjectSet bindingsToClear = null; for (int i = 0; i < templateParams.length; i++) { IASTName tn = getTemplateParameterName( templateParams[i] ); if( tn.getBinding() != null ) return ( tn.getBinding() == defParams[i] ); if( bindingsToClear == null ) bindingsToClear = new ObjectSet( templateParams.length ); tn.setBinding( defParams[i] ); bindingsToClear.put( defParams[i] ); } boolean result = false; IASTNode parent = name.getParent(); if( parent instanceof ICPPASTFunctionDeclarator ){ IType type = CPPVisitor.createType( (IASTDeclarator) parent ); try { IType ftype = ((ICPPFunction)definition).getType(); if( ftype.equals( type ) ) result = true; } catch (DOMException e) { } } else if( parent instanceof IASTDeclSpecifier ){ if( name instanceof ICPPASTTemplateId ){ if( definition instanceof ICPPTemplateSpecialization ){ ICPPTemplateSpecialization spec = (ICPPTemplateSpecialization) definition; IASTNode [] args = ((ICPPASTTemplateId)name).getTemplateArguments(); if( args.length == spec.getArguments().length ){ int i = 0; for (; i < args.length; i++) { IType t1 = CPPVisitor.createType( spec.getArguments()[i] ); IType t2 = CPPVisitor.createType( args[i] ); if( t1 != null && t2 != null && t1.equals( t2 ) ) continue; break; } result = ( i == args.length ); } } } else { result = CharArrayUtils.equals( definition.getNameCharArray(), name.toCharArray() ); } } if( bindingsToClear != null ){ ClearBindingAction action = new ClearBindingAction( bindingsToClear ); templateDecl.accept( action ); } return result; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/12c064978c4728e62c77575273acbbfbb9ea47f3/CPPTemplates.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPTemplates.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 23061, 2283, 12, 2871, 6584, 2283, 1852, 2379, 16, 467, 9053, 461, 508, 13, 288, 202, 202, 2871, 6584, 2283, 1662, 5378, 1652, 1370, 273, 2379, 18, 588, 2283, 2402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 23061, 2283, 12, 2871, 6584, 2283, 1852, 2379, 16, 467, 9053, 461, 508, 13, 288, 202, 202, 2871, 6584, 2283, 1662, 5378, 1652, 1370, 273, 2379, 18, 588, 2283, 2402, ...
public Element addPropertyElement(Element parent, QName propName, boolean nameOnly) {
public Element addPropertyElement(DavContext ctxt, Element parent, QName propName, boolean nameOnly) {
public Element addPropertyElement(Element parent, QName propName, boolean nameOnly) { Element e = null; ResourceProperty prop = mProps.get(propName); if (prop != null) { e = prop.addToElement(parent, nameOnly); return e; } if (propName.equals(DavElements.P_LOCKDISCOVERY)) for (LockMgr.Lock lock : LockMgr.getInstance().getLocks(this)) e = addActiveLockElement(parent, lock); return e; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/d72a7c3b8b7f1741e9359a6ae935bb7daf78041d/DavResource.java/clean/ZimbraServer/src/java/com/zimbra/cs/dav/resource/DavResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3010, 14324, 1046, 12, 1046, 982, 16, 16723, 9994, 16, 1250, 508, 3386, 13, 288, 202, 202, 1046, 425, 273, 446, 31, 9506, 202, 1420, 1396, 2270, 273, 312, 5047, 18, 588, 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, 3010, 14324, 1046, 12, 1046, 982, 16, 16723, 9994, 16, 1250, 508, 3386, 13, 288, 202, 202, 1046, 425, 273, 446, 31, 9506, 202, 1420, 1396, 2270, 273, 312, 5047, 18, 588, 12, ...
mappingList.add(key + "=" + value); }
public boolean processElement(String propertyName, AMQTypedValue value) { mappingList.add(propertyName + "=" + value.getValue()); return true; } public Object getResult() { return mappingList; } });
public TabularData bindings() throws OpenDataException { _bindingList = new TabularDataSupport(_bindinglistDataType); int count = 1; for (Iterator<Registration> itr = _bindings.iterator(); itr.hasNext();) { Registration registration = itr.next(); String queueName = registration.queue.getName(); HeadersBinding headers = registration.binding; Map<Object, Object> headerMappings = headers.getMappings(); List<String> mappingList = new ArrayList<String>(); for (Map.Entry<Object, Object> en : headerMappings.entrySet()) { String key = en.getKey().toString(); String value = en.getValue().toString(); mappingList.add(key + "=" + value); } Object[] bindingItemValues = {count++, queueName, mappingList.toArray(new String[0])}; CompositeData bindingData = new CompositeDataSupport(_bindingDataType, _bindingItemNames, bindingItemValues); _bindingList.put(bindingData); } return _bindingList; }
45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/9cad5792c8fa0203114d63a1851b0a9181c967f5/HeadersExchange.java/clean/qpid/java/broker/src/main/java/org/apache/qpid/server/exchange/HeadersExchange.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 9483, 2490, 751, 7394, 1435, 1216, 3502, 22480, 3639, 288, 5411, 389, 7374, 682, 273, 394, 9483, 2490, 751, 6289, 24899, 7374, 1098, 6273, 1769, 5411, 509, 1056, 273, 404, 31, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 9483, 2490, 751, 7394, 1435, 1216, 3502, 22480, 3639, 288, 5411, 389, 7374, 682, 273, 394, 9483, 2490, 751, 6289, 24899, 7374, 1098, 6273, 1769, 5411, 509, 1056, 273, 404, 31, 5411, ...
protected void doEjbObject_GET_EJB_HOME(EJBRequest req, EJBResponse res) throws Exception {
private void doEjbObject_GET_EJB_HOME(EJBRequest req, EJBResponse res) throws Exception {
protected void doEjbObject_GET_EJB_HOME(EJBRequest req, EJBResponse res) throws Exception { checkMethodAuthorization(req, res); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/5e78f771b8abd956a7bea6f545806c247dd55cd4/EjbRequestHandler.java/clean/openejb2/modules/core/src/java/org/openejb/server/ejbd/EjbRequestHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 41, 10649, 921, 67, 3264, 67, 22719, 67, 14209, 12, 22719, 691, 1111, 16, 12157, 1064, 400, 13, 1216, 1185, 288, 3639, 866, 1305, 6063, 12, 3658, 16, 400, 1769, 565, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 41, 10649, 921, 67, 3264, 67, 22719, 67, 14209, 12, 22719, 691, 1111, 16, 12157, 1064, 400, 13, 1216, 1185, 288, 3639, 866, 1305, 6063, 12, 3658, 16, 400, 1769, 565, 289...
public void run() { m_actionLayout.show(m_actionPanel, DICE_KEY); m_dicePanel.setDiceRoll(dice); boolean plural = count > 1; final String btnText = hit.getName() + ", click to select " + count + (plural ? " casualties" : " casualty"); m_actionButton.setAction(new AbstractAction(btnText) { public void actionPerformed(ActionEvent e) { String messageText = message + " " + btnText + "."; UnitChooser chooser = new UnitChooser(selectFrom, defaultCasualties, dependents, m_data, true, m_mapPanel.getUIContext()); chooser.setTitle(messageText); chooser.setMax(count); String[] options = { "Ok", "Cancel" }; int option = JOptionPane.showOptionDialog(BattleDisplay.this, chooser, hit.getName() + " select casualties", JOptionPane.OK_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, null); if (option != 0) return; List<Unit> killed = chooser.getSelected(false); List<Unit> damaged = chooser.getSelectedFirstHit(); if (killed.size() + damaged.size() != count) { JOptionPane.showMessageDialog(BattleDisplay.this, "Wrong number of casualties choosen", hit.getName() + " select casualties", JOptionPane.ERROR_MESSAGE); } else { CasualtyDetails response = new CasualtyDetails(killed, damaged, false); m_selectCasualtyResponse = response; continueLatch.countDown(); } } }); }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/e594cd83c66e08afc399f2ec3ca8bb9e945bf760/BattleDisplay.java/clean/triplea/src/games/strategy/triplea/ui/BattleDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2681, 1435, 95, 81, 67, 1128, 3744, 18, 4500, 12, 81, 67, 1128, 5537, 16, 2565, 1441, 67, 3297, 1769, 81, 67, 72, 1812, 5537, 18, 542, 40, 1812, 24194, 12, 72, 1812, 1769, 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, 1071, 6459, 2681, 1435, 95, 81, 67, 1128, 3744, 18, 4500, 12, 81, 67, 1128, 5537, 16, 2565, 1441, 67, 3297, 1769, 81, 67, 72, 1812, 5537, 18, 542, 40, 1812, 24194, 12, 72, 1812, 1769, 6494...
public void testParse() { KeyStrokeOption io = new KeyStrokeOption("max_files",null); assertEquals(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, InputEvent.CTRL_MASK), io.parse("ctrl ENTER")); assertEquals(KeyStrokeOption.NULL_KEYSTROKE, io.parse("<none>")); assertEquals(KeyStroke.getKeyStroke(KeyEvent.VK_NUM_LOCK, InputEvent.ALT_MASK | InputEvent.SHIFT_MASK, true), io.parse("alt shift released NUM_LOCK")); assertEquals(KeyStroke.getKeyStroke(KeyEvent.VK_COMMA, InputEvent.ALT_MASK | InputEvent.SHIFT_MASK, false), io.parse("alt shift COMMA")); assertEquals(KeyStroke.getKeyStroke('%'), io.parse("typed %")); // behaves correctly in 1.3, but the test will not work for some reason /*assertEquals(KeyStroke.getKeyStroke(new Character('%'), InputEvent.ALT_MASK | InputEvent.CTRL_MASK), io.parse("ctrl alt typed %"));*/ try { io.parse("true"); fail(); } catch (IllegalArgumentException e) {} try { io.parse(".33"); fail(); } catch (IllegalArgumentException e) {} try { io.parse("Alt Z"); fail(); } catch (IllegalArgumentException e) {} try { io.parse("ctrl alt shift typed F1"); fail(); } catch (IllegalArgumentException e) {} }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9a249358791ef18c654eafdb246c8cfb93a3ab2d/KeyStrokeOptionTest.java/buggy/drjava/src/edu/rice/cs/drjava/config/KeyStrokeOptionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 3201, 1435, 225, 288, 565, 1929, 14602, 1895, 2527, 273, 394, 1929, 14602, 1895, 2932, 1896, 67, 2354, 3113, 2011, 1769, 565, 1815, 8867, 12, 653, 14602, 18, 588, 653, 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, 1842, 3201, 1435, 225, 288, 565, 1929, 14602, 1895, 2527, 273, 394, 1929, 14602, 1895, 2932, 1896, 67, 2354, 3113, 2011, 1769, 565, 1815, 8867, 12, 653, 14602, 18, 588, 653, 14...
public void parseContents(Parser parser) { final SymbolTable stable = parser.getSymbolTable(); stable.setCurrentNode(this); // Find the closest literal element ancestor (if there is one) SyntaxTreeNode _parent = getParent(); while ((_parent != null) && !(_parent instanceof LiteralElement)) _parent = _parent.getParent(); if (!(_parent instanceof LiteralElement)) _parent = null; _name = translateQName(_qname, stable); // Process all attributes and register all namespaces they use final int count = _attributes.getLength(); for (int i = 0; i < count; i++) { final QName qname = parser.getQName(_attributes.getQName(i)); final String val = _attributes.getValue(i); // Handle xsl:use-attribute-sets if (qname == parser.getUseAttributeSets()) { addAttribute(new UseAttributeSets(val, parser)); } // Ignore other attributes in XSL namespace else if (qname.getNamespace().equals(XSLT_URI)) { } // Handle xsl:extension-element-prefixes else if (qname == parser.getExtensionElementPrefixes()) { stable.excludeNamespaces(val); } // Handle xsl:exclude-result-prefixes else if (qname == parser.getExcludeResultPrefixes()) { stable.excludeNamespaces(val); } // Handle literal attributes (attributes not in XSL namespace) else { final String name = translateQName(qname, stable); LiteralAttribute attr = new LiteralAttribute(name, val, parser); addAttribute(attr); attr.setParent(this); attr.parseContents(parser); } } // Register all namespaces that are in scope, except for those that // are listed in the xsl:stylesheet element's *-prefixes attributes final Enumeration include = getNamespaceScope(this); while (include.hasMoreElements()) { final String prefix = (String)include.nextElement(); if (!prefix.equals("xml")) { final String uri = lookupNamespace(prefix); if ((uri != null) && (!uri.equals(XSLT_URI))) { if (!stable.isExcludedNamespace(uri)) registerNamespace(prefix,uri,stable,true); } } } parseChildren(parser); // Process all attributes and register all namespaces they use for (int i = 0; i < count; i++) { final QName qname = parser.getQName(_attributes.getQName(i)); final String val = _attributes.getValue(i); // Handle xsl:extension-element-prefixes if (qname == parser.getExtensionElementPrefixes()) { stable.unExcludeNamespaces(val); } // Handle xsl:exclude-result-prefixes else if (qname == parser.getExcludeResultPrefixes()) { stable.unExcludeNamespaces(val); } } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/f2b35c498dc058f4df47d5aadce27a5bdaf41711/LiteralElement.java/clean/src/org/apache/xalan/xsltc/compiler/LiteralElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 282, 918, 282, 1109, 6323, 12, 2678, 282, 2082, 13, 282, 288, 202, 6385, 282, 8565, 1388, 282, 14114, 282, 273, 282, 2082, 18, 588, 5335, 1388, 5621, 202, 15021, 18, 542, 3935, 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, 2398, 1071, 282, 918, 282, 1109, 6323, 12, 2678, 282, 2082, 13, 282, 288, 202, 6385, 282, 8565, 1388, 282, 14114, 282, 273, 282, 2082, 18, 588, 5335, 1388, 5621, 202, 15021, 18, 542, 3935, 9...
sStandardDescription ) );
sStandardDescription, Messages.getString( "PieChart.SubType.Standard" ) ) );
public Collection getChartSubtypes( String sDimension, Orientation orientation ) { Vector vSubTypes = new Vector( ); // Do not respond to requests for unknown orientations if ( !orientation.equals( Orientation.VERTICAL_LITERAL ) ) { return vSubTypes; } if ( sDimension.equals( TWO_DIMENSION_TYPE ) || sDimension.equals( ChartDimension.TWO_DIMENSIONAL_LITERAL.getName( ) ) ) { img2D = UIHelper.getImage( "icons/wizban/piechartimage.gif" ); //$NON-NLS-1$ vSubTypes.add( new DefaultChartSubTypeImpl( STANDARD_SUBTYPE_LITERAL, img2D, sStandardDescription ) ); } else if ( sDimension.equals( TWO_DIMENSION_WITH_DEPTH_TYPE ) || sDimension.equals( ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL.getName( ) ) ) { img2DWithDepth = UIHelper.getImage( "icons/wizban/piechartwithdepthimage.gif" ); //$NON-NLS-1$ vSubTypes.add( new DefaultChartSubTypeImpl( STANDARD_SUBTYPE_LITERAL, img2DWithDepth, sStandardDescription ) ); } return vSubTypes; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e6a580ac14a0cdd861fc21c6a401a78322d2b0bd/PieChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 336, 7984, 1676, 2352, 12, 514, 272, 8611, 16, 1082, 202, 14097, 9820, 262, 202, 95, 202, 202, 5018, 331, 1676, 2016, 273, 394, 5589, 12, 11272, 202, 202, 759, 2256, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 336, 7984, 1676, 2352, 12, 514, 272, 8611, 16, 1082, 202, 14097, 9820, 262, 202, 95, 202, 202, 5018, 331, 1676, 2016, 273, 394, 5589, 12, 11272, 202, 202, 759, 2256, 486...
addCaption(Argo.localize(BUNDLE, "docpane.label.documentation") + ":",0,1,1); UMLTextArea _doc = new UMLTextArea(this,new UMLTaggedTextProperty("documentation"));
add(LabelledLayout.getSeperator()); UMLTextArea2 _doc = new UMLTextArea2(new UMLModelElementTaggedValueDocument("documentation")); _doc.setRows(2);
public TabDocumentation() { super("tab.documentation", null, 2); // Change this to call labelled layout constructor addCaption(Argo.localize(BUNDLE, "docpane.label.author") + ":",1,0,0); addField(new UMLTextField(this,new UMLTaggedTextProperty("author")),1,0,0); //unknown where this information is stored; it does not go to myproject.argo (xml file) addCaption(Argo.localize(BUNDLE, "docpane.label.version") + ":",2,0,0); addField(new UMLTextField(this,new UMLTaggedTextProperty("version")),2,0,0); addCaption(Argo.localize(BUNDLE, "docpane.label.since") + ":",3,0,0); addField(new UMLTextField(this,new UMLTaggedTextProperty("since")),3,0,0); addCaption(Argo.localize(BUNDLE, "docpane.label.deprecated") + ":",4,0,0); addField(new UMLCheckBox("",this,new UMLTaggedBooleanProperty("deprecated")),4,0,0); addCaption(Argo.localize(BUNDLE, "docpane.label.see") + ":",5,0,1); UMLTextArea _see = new UMLTextArea(this,new UMLTaggedTextProperty("see")); _see.setLineWrap(true); _see.setWrapStyleWord(true); JScrollPane spSee = new JScrollPane(); spSee.getViewport().add(_see); addField(spSee,5,0,1); addCaption(Argo.localize(BUNDLE, "docpane.label.documentation") + ":",0,1,1); UMLTextArea _doc = new UMLTextArea(this,new UMLTaggedTextProperty("documentation")); _doc.setLineWrap(true); _doc.setWrapStyleWord(true); JScrollPane spDocs = new JScrollPane(); spDocs.getViewport().add(_doc); addField(spDocs,0,1,1); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/02f03c1e587d253f7ca6037e7f93200617231317/TabDocumentation.java/buggy/src_new/org/argouml/uml/ui/TabDocumentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9483, 18905, 1435, 288, 3639, 2240, 2932, 7032, 18, 26941, 3113, 446, 16, 576, 1769, 368, 7576, 333, 358, 745, 1433, 1259, 3511, 3885, 3639, 527, 21158, 12, 686, 3240, 18, 3729, 554...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9483, 18905, 1435, 288, 3639, 2240, 2932, 7032, 18, 26941, 3113, 446, 16, 576, 1769, 368, 7576, 333, 358, 745, 1433, 1259, 3511, 3885, 3639, 527, 21158, 12, 686, 3240, 18, 3729, 554...
if (! (data[0] instanceof Number)) { throw new PainterException("repeat: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("repeat: wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); }
System.out.println("--------------------------------");
public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("repeat: wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("repeat: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("repeat: wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/847947ee757ac47e8514ce31066d7b04585dcfbb/PAContext.java/buggy/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 22, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1033, 501, 8526, 31, 3639, 17988, 969, 9670, 969, 31, 3639, 501, 273, 819, 18, 5120, 3542, 5708, 12, 22, 176...