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
TagUtils.getInstance().present(pageContext, bundle, locale, "errors.suffix");
TagUtils.getInstance().present(pageContext, bundle, locale, getSuffix());
public int doStartTag() throws JspException { // Were any error messages specified? ActionMessages errors = null; try { errors = TagUtils.getInstance().getActionMessages(pageContext, name); } catch (JspException e) { TagUtils.getInstance().saveException(pageContext, e); throw e; } if ((errors == null) || errors.isEmpty()) { return (EVAL_BODY_INCLUDE); } boolean headerPresent = TagUtils.getInstance().present(pageContext, bundle, locale, "errors.header"); boolean footerPresent = TagUtils.getInstance().present(pageContext, bundle, locale, "errors.footer"); boolean prefixPresent = TagUtils.getInstance().present(pageContext, bundle, locale, "errors.prefix"); boolean suffixPresent = TagUtils.getInstance().present(pageContext, bundle, locale, "errors.suffix"); // Render the error messages appropriately StringBuffer results = new StringBuffer(); boolean headerDone = false; String message = null; Iterator reports = (property == null) ? errors.get() : errors.get(property); while (reports.hasNext()) { ActionMessage report = (ActionMessage) reports.next(); if (!headerDone) { if (headerPresent) { message = TagUtils.getInstance().message( pageContext, bundle, locale, "errors.header"); results.append(message); } headerDone = true; } if (prefixPresent) { message = TagUtils.getInstance().message( pageContext, bundle, locale, "errors.prefix"); results.append(message); } message = TagUtils.getInstance().message( pageContext, bundle, locale, report.getKey(), report.getValues()); if (message != null) { results.append(message); } if (suffixPresent) { message = TagUtils.getInstance().message( pageContext, bundle, locale, "errors.suffix"); results.append(message); } } if (headerDone && footerPresent) { message = TagUtils.getInstance().message(pageContext, bundle, locale, "errors.footer"); results.append(message); } TagUtils.getInstance().write(pageContext, results.toString()); return (EVAL_BODY_INCLUDE); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/6faec6099b74d5f3639b9f2236c3095e94b0f48a/ErrorsTag.java/buggy/src/share/org/apache/struts/taglib/html/ErrorsTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 368, 678, 822, 1281, 555, 2743, 1269, 35, 3639, 4382, 5058, 1334, 273, 446, 31, 3639, 775, 288, 5411, 1334, 273, 4034, 1989, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 368, 678, 822, 1281, 555, 2743, 1269, 35, 3639, 4382, 5058, 1334, 273, 446, 31, 3639, 775, 288, 5411, 1334, 273, 4034, 1989, 18, 588, ...
public org.quickfix.field.ValidUntilTime getValidUntilTime() throws FieldNotFound { org.quickfix.field.ValidUntilTime value = new org.quickfix.field.ValidUntilTime();
public quickfix.field.ValidUntilTime getValidUntilTime() throws FieldNotFound { quickfix.field.ValidUntilTime value = new quickfix.field.ValidUntilTime();
public org.quickfix.field.ValidUntilTime getValidUntilTime() throws FieldNotFound { org.quickfix.field.ValidUntilTime value = new org.quickfix.field.ValidUntilTime(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/IndicationofInterest.java/clean/src/java/src/quickfix/fix42/IndicationofInterest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1556, 9716, 950, 22574, 9716, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1556, 9716, 950, 460, 273, 394, 2358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1556, 9716, 950, 22574, 9716, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1556, 9716, 950, 460, 273, 394, 2358, ...
buf.get(array, 2, -1);
buf.get((short[])null, 2, -1); fail("Should throw Exception"); } catch (NullPointerException e) { } try { buf.get(array, 2, array.length);
public void testGetshortArrayintint() { buf.clear(); short array[] = new short[buf.capacity()]; try { buf.get(new short[buf.capacity() + 1], 0, buf.capacity() + 1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (BufferUnderflowException e) { // expected } assertEquals(buf.position(), 0); try { buf.get(array, -1, array.length); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IndexOutOfBoundsException e) { // expected } buf.get(array, array.length, 0); try { buf.get(array, array.length + 1, 1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IndexOutOfBoundsException e) { // expected } assertEquals(buf.position(), 0); try { buf.get(array, 2, -1); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IndexOutOfBoundsException e) { // expected } try { buf.get(array, 2, array.length); fail("Should throw Exception"); //$NON-NLS-1$ } catch (IndexOutOfBoundsException e) { // expected } assertEquals(buf.position(), 0); buf.clear(); ShortBuffer ret = buf.get(array, 0, array.length); assertEquals(buf.position(), buf.capacity()); assertContentEquals(buf, array, 0, array.length); assertSame(ret, buf); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/ffd5d6289f798e408c92baebb59d8f560e185df3/ShortBufferTest.java/clean/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/ShortBufferTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 6620, 1076, 474, 474, 1435, 288, 3639, 1681, 18, 8507, 5621, 3639, 3025, 526, 8526, 273, 394, 3025, 63, 4385, 18, 16017, 1435, 15533, 3639, 775, 288, 5411, 1681, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 6620, 1076, 474, 474, 1435, 288, 3639, 1681, 18, 8507, 5621, 3639, 3025, 526, 8526, 273, 394, 3025, 63, 4385, 18, 16017, 1435, 15533, 3639, 775, 288, 5411, 1681, 18,...
return documentXPathEvaluator.evaluateAsString(pipelineContext, contextNode, xpathExpression, prefixToURIMap,
return documentXPathEvaluator.evaluateAsString(pipelineContext, contextNodeSet, contextPosition, xpathExpression, prefixToURIMap,
public String evaluateXPathAsString(PipelineContext pipelineContext, Node contextNode, String xpathExpression, Map prefixToURIMap, Map variableToValueMap, FunctionLibrary functionLibrary, String baseURI) { return documentXPathEvaluator.evaluateAsString(pipelineContext, contextNode, xpathExpression, prefixToURIMap, variableToValueMap, functionLibrary, baseURI); }
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/15c775c44666839786ba222a04aa76994f6947c7/XFormsInstance.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 5956, 14124, 8092, 12, 8798, 1042, 5873, 1042, 16, 2029, 819, 907, 16, 514, 6748, 2300, 16, 1635, 1633, 774, 3098, 863, 16, 1635, 2190, 774, 26795, 16, 4284, 9313, 445, 9313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 14124, 8092, 12, 8798, 1042, 5873, 1042, 16, 2029, 819, 907, 16, 514, 6748, 2300, 16, 1635, 1633, 774, 3098, 863, 16, 1635, 2190, 774, 26795, 16, 4284, 9313, 445, 9313, ...
public synchronized Connection getConnection() throws InternalEVerlageError { try { Connection con = (Connection) this.conStack.pop(); while (con == null) { wait(); con = (Connection) this.conStack.pop();
public Connection getConnection() throws InternalEVerlageError { synchronized (this) { try { Connection con = (Connection) this.conStack.pop(); while (con == null) { wait(); con = (Connection) this.conStack.pop(); } return con; } catch (InterruptedException e) { throw new InternalEVerlageError(e);
public synchronized Connection getConnection() throws InternalEVerlageError { try { Connection con = (Connection) this.conStack.pop(); while (con == null) { wait(); con = (Connection) this.conStack.pop(); } //CAGlobal.log.debug(conStack.size()+""); return con; } catch (InterruptedException e) { throw new InternalEVerlageError(e); } }
10993 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10993/7ba845740b397d4ac3ad0a18f7dc20211a23f1e2/DBMediator.java/buggy/everlage/src/de/everlage/ca/core/db/DBMediator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 4050, 6742, 1435, 1216, 3186, 41, 3945, 80, 410, 668, 288, 202, 202, 698, 288, 1082, 202, 1952, 356, 273, 261, 1952, 13, 333, 18, 591, 2624, 18, 5120, 5621, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 4050, 6742, 1435, 1216, 3186, 41, 3945, 80, 410, 668, 288, 202, 202, 698, 288, 1082, 202, 1952, 356, 273, 261, 1952, 13, 333, 18, 591, 2624, 18, 5120, 5621, 1082, 202, ...
html = html.replaceAll("<!--jtidy:validationImage-->", aLink);
html = replaceAll(html, "<!--jtidy:validationImage-->", aLink);
private void doCommentsSubst(ByteArrayOutputStream outBuffer, Object requestID) { log.debug("doCommentsSubst"); // Prohibit caching of application pages. if (response != null) { response.setHeader("Pragma", "No-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires", -1); } // Java 1.4 String html = outBuffer.toString(); html = html.replaceAll("<!--jtidy:requestID-->", requestID.toString()); String aLink = ValidationImageTag.getImageHTML(requestID.toString(), null, null, request); html = html.replaceAll("<!--jtidy:validationImage-->", aLink); outBuffer.reset(); try { // to-do charsetName outBuffer.write(html.getBytes()); } catch (IOException e) { log.error("Internal error", e); } }
53077 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53077/48ba85e12dae361be74b9faa8225f7e118b83737/TidyProcessor.java/clean/jtidyservlet/src/java/org/w3c/tidy/servlet/TidyProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 9051, 1676, 334, 12, 8826, 4632, 596, 1892, 16, 1033, 590, 734, 13, 565, 288, 3639, 613, 18, 4148, 2932, 2896, 9051, 1676, 334, 8863, 3639, 368, 1186, 31597, 11393, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 9051, 1676, 334, 12, 8826, 4632, 596, 1892, 16, 1033, 590, 734, 13, 565, 288, 3639, 613, 18, 4148, 2932, 2896, 9051, 1676, 334, 8863, 3639, 368, 1186, 31597, 11393, 434, ...
if (queryAttributes != null) { for (final Iterator attrNames = queryAttributes.iterator(); attrNames.hasNext(); ) { final String attrName = (String)attrNames.next(); this.declareParameter(new SqlParameter(attrName, Types.VARCHAR)); }
for (final Iterator attrNames = queryAttributes.iterator(); attrNames.hasNext(); ) { final String attrName = (String)attrNames.next(); this.declareParameter(new SqlParameter(attrName, Types.VARCHAR));
public PersonAttributeMappingQuery(final DataSource ds, final String sql) { super(ds, sql); //Assume to parameters needed if the query attribute list is null if (queryAttributes != null) { //Configures the SQL parameters, everything is assumed to be VARCHAR for (final Iterator attrNames = queryAttributes.iterator(); attrNames.hasNext(); ) { final String attrName = (String)attrNames.next(); this.declareParameter(new SqlParameter(attrName, Types.VARCHAR)); } } //One time compilation of the query this.compile(); }
55666 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55666/ee15a29fe99eee75a2ddf9e4571899226512e1ff/JdbcPersonAttributeDaoImpl.java/buggy/main/src/java/org/jasig/portal/services/persondir/support/JdbcPersonAttributeDaoImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 11573, 1499, 3233, 1138, 12, 6385, 12806, 3780, 16, 727, 514, 1847, 13, 288, 5411, 2240, 12, 2377, 16, 1847, 1769, 13491, 368, 2610, 2066, 358, 1472, 3577, 309, 326, 843, 1566, 666,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11573, 1499, 3233, 1138, 12, 6385, 12806, 3780, 16, 727, 514, 1847, 13, 288, 5411, 2240, 12, 2377, 16, 1847, 1769, 13491, 368, 2610, 2066, 358, 1472, 3577, 309, 326, 843, 1566, 666,...
match(LITERAL_construction); if ( inputState.guessing==0 ) { name = "construction"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordered:
match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xmlspace:
public final String reservedKeywords() throws RecognitionException, TokenStreamException { String name; returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST reservedKeywords_AST = null; name= null; switch ( LA(1)) { case LITERAL_element: { org.exist.xquery.parser.XQueryAST tmp330_AST = null; tmp330_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp330_AST); match(LITERAL_element); if ( inputState.guessing==0 ) { name = "element"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp331_AST = null; tmp331_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp331_AST); match(LITERAL_to); if ( inputState.guessing==0 ) { name = "to"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_div: { org.exist.xquery.parser.XQueryAST tmp332_AST = null; tmp332_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp332_AST); match(LITERAL_div); if ( inputState.guessing==0 ) { name= "div"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_mod: { org.exist.xquery.parser.XQueryAST tmp333_AST = null; tmp333_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp333_AST); match(LITERAL_mod); if ( inputState.guessing==0 ) { name= "mod"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_text: { org.exist.xquery.parser.XQueryAST tmp334_AST = null; tmp334_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp334_AST); match(LITERAL_text); if ( inputState.guessing==0 ) { name= "text"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_node: { org.exist.xquery.parser.XQueryAST tmp335_AST = null; tmp335_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp335_AST); match(LITERAL_node); if ( inputState.guessing==0 ) { name= "node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_or: { org.exist.xquery.parser.XQueryAST tmp336_AST = null; tmp336_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp336_AST); match(LITERAL_or); if ( inputState.guessing==0 ) { name= "or"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_and: { org.exist.xquery.parser.XQueryAST tmp337_AST = null; tmp337_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp337_AST); match(LITERAL_and); if ( inputState.guessing==0 ) { name= "and"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_child: { org.exist.xquery.parser.XQueryAST tmp338_AST = null; tmp338_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp338_AST); match(LITERAL_child); if ( inputState.guessing==0 ) { name= "child"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_parent: { org.exist.xquery.parser.XQueryAST tmp339_AST = null; tmp339_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp339_AST); match(LITERAL_parent); if ( inputState.guessing==0 ) { name= "parent"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_self: { org.exist.xquery.parser.XQueryAST tmp340_AST = null; tmp340_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp340_AST); match(LITERAL_self); if ( inputState.guessing==0 ) { name= "self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_attribute: { org.exist.xquery.parser.XQueryAST tmp341_AST = null; tmp341_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp341_AST); match(LITERAL_attribute); if ( inputState.guessing==0 ) { name= "attribute"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_comment: { org.exist.xquery.parser.XQueryAST tmp342_AST = null; tmp342_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp342_AST); match(LITERAL_comment); if ( inputState.guessing==0 ) { name= "comment"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_document: { org.exist.xquery.parser.XQueryAST tmp343_AST = null; tmp343_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp343_AST); match(LITERAL_document); if ( inputState.guessing==0 ) { name= "document"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 140: { org.exist.xquery.parser.XQueryAST tmp344_AST = null; tmp344_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp344_AST); match(140); if ( inputState.guessing==0 ) { name= "document-node"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collection: { org.exist.xquery.parser.XQueryAST tmp345_AST = null; tmp345_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp345_AST); match(LITERAL_collection); if ( inputState.guessing==0 ) { name= "collection"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ancestor: { org.exist.xquery.parser.XQueryAST tmp346_AST = null; tmp346_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp346_AST); match(LITERAL_ancestor); if ( inputState.guessing==0 ) { name= "ancestor"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_descendant: { org.exist.xquery.parser.XQueryAST tmp347_AST = null; tmp347_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp347_AST); match(LITERAL_descendant); if ( inputState.guessing==0 ) { name= "descendant"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 152: { org.exist.xquery.parser.XQueryAST tmp348_AST = null; tmp348_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp348_AST); match(152); if ( inputState.guessing==0 ) { name= "descendant-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 157: { org.exist.xquery.parser.XQueryAST tmp349_AST = null; tmp349_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp349_AST); match(157); if ( inputState.guessing==0 ) { name= "ancestor-or-self"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 158: { org.exist.xquery.parser.XQueryAST tmp350_AST = null; tmp350_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp350_AST); match(158); if ( inputState.guessing==0 ) { name= "preceding-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case 153: { org.exist.xquery.parser.XQueryAST tmp351_AST = null; tmp351_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp351_AST); match(153); if ( inputState.guessing==0 ) { name= "following-sibling"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_following: { org.exist.xquery.parser.XQueryAST tmp352_AST = null; tmp352_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp352_AST); match(LITERAL_following); if ( inputState.guessing==0 ) { name = "following"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preceding: { org.exist.xquery.parser.XQueryAST tmp353_AST = null; tmp353_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp353_AST); match(LITERAL_preceding); if ( inputState.guessing==0 ) { name = "preceding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_item: { org.exist.xquery.parser.XQueryAST tmp354_AST = null; tmp354_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp354_AST); match(LITERAL_item); if ( inputState.guessing==0 ) { name= "item"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp355_AST = null; tmp355_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp355_AST); match(LITERAL_empty); if ( inputState.guessing==0 ) { name= "empty"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_version: { org.exist.xquery.parser.XQueryAST tmp356_AST = null; tmp356_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp356_AST); match(LITERAL_version); if ( inputState.guessing==0 ) { name= "version"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xquery: { org.exist.xquery.parser.XQueryAST tmp357_AST = null; tmp357_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp357_AST); match(LITERAL_xquery); if ( inputState.guessing==0 ) { name= "xquery"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_variable: { org.exist.xquery.parser.XQueryAST tmp358_AST = null; tmp358_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp358_AST); match(LITERAL_variable); if ( inputState.guessing==0 ) { name= "variable"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_namespace: { org.exist.xquery.parser.XQueryAST tmp359_AST = null; tmp359_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp359_AST); match(LITERAL_namespace); if ( inputState.guessing==0 ) { name= "namespace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_if: { org.exist.xquery.parser.XQueryAST tmp360_AST = null; tmp360_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp360_AST); match(LITERAL_if); if ( inputState.guessing==0 ) { name= "if"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_then: { org.exist.xquery.parser.XQueryAST tmp361_AST = null; tmp361_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp361_AST); match(LITERAL_then); if ( inputState.guessing==0 ) { name= "then"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_else: { org.exist.xquery.parser.XQueryAST tmp362_AST = null; tmp362_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp362_AST); match(LITERAL_else); if ( inputState.guessing==0 ) { name= "else"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_for: { org.exist.xquery.parser.XQueryAST tmp363_AST = null; tmp363_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp363_AST); match(LITERAL_for); if ( inputState.guessing==0 ) { name= "for"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_let: { org.exist.xquery.parser.XQueryAST tmp364_AST = null; tmp364_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp364_AST); match(LITERAL_let); if ( inputState.guessing==0 ) { name= "let"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_default: { org.exist.xquery.parser.XQueryAST tmp365_AST = null; tmp365_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp365_AST); match(LITERAL_default); if ( inputState.guessing==0 ) { name= "default"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_function: { org.exist.xquery.parser.XQueryAST tmp366_AST = null; tmp366_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp366_AST); match(LITERAL_function); if ( inputState.guessing==0 ) { name= "function"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_as: { org.exist.xquery.parser.XQueryAST tmp367_AST = null; tmp367_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp367_AST); match(LITERAL_as); if ( inputState.guessing==0 ) { name = "as"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_union: { org.exist.xquery.parser.XQueryAST tmp368_AST = null; tmp368_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp368_AST); match(LITERAL_union); if ( inputState.guessing==0 ) { name = "union"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_intersect: { org.exist.xquery.parser.XQueryAST tmp369_AST = null; tmp369_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp369_AST); match(LITERAL_intersect); if ( inputState.guessing==0 ) { name = "intersect"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_except: { org.exist.xquery.parser.XQueryAST tmp370_AST = null; tmp370_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp370_AST); match(LITERAL_except); if ( inputState.guessing==0 ) { name = "except"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp371_AST = null; tmp371_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp371_AST); match(LITERAL_order); if ( inputState.guessing==0 ) { name = "order"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_by: { org.exist.xquery.parser.XQueryAST tmp372_AST = null; tmp372_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp372_AST); match(LITERAL_by); if ( inputState.guessing==0 ) { name = "by"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_some: { org.exist.xquery.parser.XQueryAST tmp373_AST = null; tmp373_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp373_AST); match(LITERAL_some); if ( inputState.guessing==0 ) { name = "some"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_every: { org.exist.xquery.parser.XQueryAST tmp374_AST = null; tmp374_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp374_AST); match(LITERAL_every); if ( inputState.guessing==0 ) { name = "every"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_is: { org.exist.xquery.parser.XQueryAST tmp375_AST = null; tmp375_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp375_AST); match(LITERAL_is); if ( inputState.guessing==0 ) { name = "is"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_isnot: { org.exist.xquery.parser.XQueryAST tmp376_AST = null; tmp376_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp376_AST); match(LITERAL_isnot); if ( inputState.guessing==0 ) { name = "isnot"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_module: { org.exist.xquery.parser.XQueryAST tmp377_AST = null; tmp377_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp377_AST); match(LITERAL_module); if ( inputState.guessing==0 ) { name = "module"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_import: { org.exist.xquery.parser.XQueryAST tmp378_AST = null; tmp378_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp378_AST); match(LITERAL_import); if ( inputState.guessing==0 ) { name = "import"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_at: { org.exist.xquery.parser.XQueryAST tmp379_AST = null; tmp379_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp379_AST); match(LITERAL_at); if ( inputState.guessing==0 ) { name = "at"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_cast: { org.exist.xquery.parser.XQueryAST tmp380_AST = null; tmp380_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp380_AST); match(LITERAL_cast); if ( inputState.guessing==0 ) { name = "cast"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_return: { org.exist.xquery.parser.XQueryAST tmp381_AST = null; tmp381_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp381_AST); match(LITERAL_return); if ( inputState.guessing==0 ) { name = "return"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_instance: { org.exist.xquery.parser.XQueryAST tmp382_AST = null; tmp382_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp382_AST); match(LITERAL_instance); if ( inputState.guessing==0 ) { name = "instance"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_of: { org.exist.xquery.parser.XQueryAST tmp383_AST = null; tmp383_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp383_AST); match(LITERAL_of); if ( inputState.guessing==0 ) { name = "of"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_declare: { org.exist.xquery.parser.XQueryAST tmp384_AST = null; tmp384_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp384_AST); match(LITERAL_declare); if ( inputState.guessing==0 ) { name = "declare"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp385_AST = null; tmp385_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp385_AST); match(LITERAL_collation); if ( inputState.guessing==0 ) { name = "collation"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_xmlspace: { org.exist.xquery.parser.XQueryAST tmp386_AST = null; tmp386_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp386_AST); match(LITERAL_xmlspace); if ( inputState.guessing==0 ) { name = "xmlspace"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp387_AST = null; tmp387_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp387_AST); match(LITERAL_preserve); if ( inputState.guessing==0 ) { name = "preserve"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp388_AST = null; tmp388_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp388_AST); match(LITERAL_strip); if ( inputState.guessing==0 ) { name = "strip"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordering: { org.exist.xquery.parser.XQueryAST tmp389_AST = null; tmp389_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp389_AST); match(LITERAL_ordering); if ( inputState.guessing==0 ) { name = "ordering"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_construction: { org.exist.xquery.parser.XQueryAST tmp390_AST = null; tmp390_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp390_AST); match(LITERAL_construction); if ( inputState.guessing==0 ) { name = "construction"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_ordered: { org.exist.xquery.parser.XQueryAST tmp391_AST = null; tmp391_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp391_AST); match(LITERAL_ordered); if ( inputState.guessing==0 ) { name = "ordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_unordered: { org.exist.xquery.parser.XQueryAST tmp392_AST = null; tmp392_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp392_AST); match(LITERAL_unordered); if ( inputState.guessing==0 ) { name = "unordered"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_typeswitch: { org.exist.xquery.parser.XQueryAST tmp393_AST = null; tmp393_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp393_AST); match(LITERAL_typeswitch); if ( inputState.guessing==0 ) { name = "typeswitch"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LITERAL_encoding: { org.exist.xquery.parser.XQueryAST tmp394_AST = null; tmp394_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp394_AST); match(LITERAL_encoding); if ( inputState.guessing==0 ) { name = "encoding"; } reservedKeywords_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = reservedKeywords_AST; return name; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 514, 225, 8735, 14149, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 202, 202, 780, 508, 31, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394,...
ReadOnlyContext context = ENCConfigBuilder.buildComponentContext(earContext, ejbModule.getModuleURI(), userTransaction, envEntries, ejbRefs, openejbEjbRefs, ejbLocalRefs, openejbEjbLocalRefs, resourceRefs, openejbResourceRefs, resourceEnvRefs, openejbResourceEnvRefs, messageDestinationRefs, cl);
ReadOnlyContext context = ENCConfigBuilder.buildComponentContext(earContext, ejbModule.getModuleURI(), userTransaction, envEntries, ejbRefs, openejbEjbRefs, ejbLocalRefs, openejbEjbLocalRefs, resourceRefs, openejbResourceRefs, resourceEnvRefs, openejbResourceEnvRefs, messageDestinationRefs, serviceRefs, cl);
public void processEnvironmentRefs(ContainerBuilder builder, EARContext earContext, EJBModule ejbModule, SessionBeanType sessionBean, OpenejbSessionBeanType openejbSessionBean, UserTransaction userTransaction, ClassLoader cl) throws DeploymentException { // env entries EnvEntryType[] envEntries = sessionBean.getEnvEntryArray(); // ejb refs EjbRefType[] ejbRefs = sessionBean.getEjbRefArray(); GerEjbRefType[] openejbEjbRefs = null; EjbLocalRefType[] ejbLocalRefs = sessionBean.getEjbLocalRefArray(); GerEjbLocalRefType[] openejbEjbLocalRefs = null; // resource refs ResourceRefType[] resourceRefs = sessionBean.getResourceRefArray(); GerResourceRefType[] openejbResourceRefs = null; // resource env refs ResourceEnvRefType[] resourceEnvRefs = sessionBean.getResourceEnvRefArray(); GerResourceEnvRefType[] openejbResourceEnvRefs = null; if (openejbSessionBean != null) { openejbEjbRefs = openejbSessionBean.getEjbRefArray(); openejbEjbLocalRefs = openejbSessionBean.getEjbLocalRefArray(); openejbResourceRefs = openejbSessionBean.getResourceRefArray(); openejbResourceEnvRefs = openejbSessionBean.getResourceEnvRefArray(); builder.setJndiNames(openejbSessionBean.getJndiNameArray()); builder.setLocalJndiNames(openejbSessionBean.getLocalJndiNameArray()); } else { String ejbName = sessionBean.getEjbName().getStringValue().trim(); builder.setJndiNames(new String[]{ejbName}); builder.setLocalJndiNames(new String[]{"local/" + ejbName}); } MessageDestinationRefType[] messageDestinationRefs = sessionBean.getMessageDestinationRefArray(); ReadOnlyContext context = ENCConfigBuilder.buildComponentContext(earContext, ejbModule.getModuleURI(), userTransaction, envEntries, ejbRefs, openejbEjbRefs, ejbLocalRefs, openejbEjbLocalRefs, resourceRefs, openejbResourceRefs, resourceEnvRefs, openejbResourceEnvRefs, messageDestinationRefs, cl); builder.setComponentContext(context); ENCConfigBuilder.setResourceEnvironment(earContext, ejbModule.getModuleURI(), builder, resourceRefs, openejbResourceRefs); }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/93ddc73f0051c90663091572fd1da98560c5ebb4/SessionBuilder.java/buggy/openejb2/modules/openejb-builder/src/java/org/openejb/deployment/SessionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 5494, 9837, 12, 2170, 1263, 2089, 16, 512, 985, 1042, 6897, 1042, 16, 12157, 3120, 18024, 3120, 16, 3877, 3381, 559, 1339, 3381, 16, 3502, 73, 10649, 2157, 3381, 559, 169...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 5494, 9837, 12, 2170, 1263, 2089, 16, 512, 985, 1042, 6897, 1042, 16, 12157, 3120, 18024, 3120, 16, 3877, 3381, 559, 1339, 3381, 16, 3502, 73, 10649, 2157, 3381, 559, 169...
if(logMINOR) Logger.minor(this, "Pushed "+lPingNo+" "+lnow);
if(logMINOR) Logger.minor(this, "Pushed "+lPingNo+ ' ' +lnow);
public void sendPing() { long pingNo; long now = System.currentTimeMillis(); Long lPingNo; synchronized(pingSync) { pingNo = pingNumber++; lPingNo = new Long(pingNo); Long lnow = new Long(now); pingsSentTimes.push(lPingNo, lnow); if(logMINOR) Logger.minor(this, "Pushed "+lPingNo+" "+lnow); while(pingsSentTimes.size() > MAX_PINGS) { Long l = (Long) pingsSentTimes.popValue(); if(logMINOR) Logger.minor(this, "pingsSentTimes.size()="+pingsSentTimes.size()+", l="+l); long tStarted = l.longValue(); pingAverage.report(now - tStarted); if(logMINOR) Logger.minor(this, "Reporting dumped ping time to "+this+" : "+(now - tStarted)); } } Message msg = DMT.createFNPLinkPing(pingNo); try { sendAsync(msg, null, 0, null); } catch (NotConnectedException e) { synchronized(pingSync) { pingsSentTimes.removeKey(lPingNo); } } }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/62fd59041864b4ed1f43adc676de6bfb5ea977f3/PeerNode.java/clean/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1366, 17223, 1435, 288, 202, 202, 5748, 10087, 2279, 31, 202, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 3708, 328, 17223, 2279, 31, 202, 202, 22043, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1366, 17223, 1435, 288, 202, 202, 5748, 10087, 2279, 31, 202, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 3708, 328, 17223, 2279, 31, 202, 202, 22043, 12, ...
AST tmp1086_AST_in = (AST)_t;
AST tmp1085_AST_in = (AST)_t;
public final void functionstate(AST _t) throws RecognitionException { AST functionstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1453 = _t; AST tmp1080_AST_in = (AST)_t; match(_t,FUNCTION); _t = _t.getFirstChild(); AST tmp1081_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RETURNS: { AST tmp1082_AST_in = (AST)_t; match(_t,RETURNS); _t = _t.getNextSibling(); break; } case RETURN: { AST tmp1083_AST_in = (AST)_t; match(_t,RETURN); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case CLASS: case TYPE_NAME: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp1084_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp1085_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case TYPE_NAME: { datatype_var(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: { AST tmp1086_AST_in = (AST)_t; match(_t,PRIVATE); _t = _t.getNextSibling(); break; } case PERIOD: case FORWARDS: case IN_KW: case MAP: case LEXCOLON: case Parameter_list: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { function_params(_t); _t = _retTree; break; } case PERIOD: case FORWARDS: case IN_KW: case MAP: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FORWARDS: { AST tmp1087_AST_in = (AST)_t; match(_t,FORWARDS); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp1088_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp1089_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp1090_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } break; } case PERIOD: case LEXCOLON: { block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EOF: { AST tmp1091_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } case END: { AST __t1467 = _t; AST tmp1092_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FUNCTION: { AST tmp1093_AST_in = (AST)_t; match(_t,FUNCTION); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1467; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } break; } default: boolean synPredMatched1461 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==IN_KW))) { AST __t1461 = _t; synPredMatched1461 = true; inputState.guessing++; try { { AST tmp1094_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp1095_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched1461 = false; } _t = __t1461;inputState.guessing--; } if ( synPredMatched1461 ) { AST tmp1096_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp1097_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp1098_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp1099_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp1100_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else if ((_t.getType()==IN_KW||_t.getType()==MAP)) { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MAP: { AST tmp1101_AST_in = (AST)_t; match(_t,MAP); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST tmp1102_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1103_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1104_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEXCOLON: { AST tmp1105_AST_in = (AST)_t; match(_t,LEXCOLON); _t = _t.getNextSibling(); break; } case PERIOD: { AST tmp1106_AST_in = (AST)_t; match(_t,PERIOD); _t = _t.getNextSibling(); break; } case EOF: { AST tmp1107_AST_in = (AST)_t; match(_t,Token.EOF_TYPE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { throw new NoViableAltException(_t); } } } _t = __t1453; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 445, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 445, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
if(d > 1.0 || d < 0.0) throw new IllegalArgumentException("invalid : "+d);
if((d > 1.0) || (d < 0.0)) throw new IllegalArgumentException("invalid : "+d);
public boolean convert(double d) { if(d > 1.0 || d < 0.0) throw new IllegalArgumentException("invalid : "+d); if(d > 0.9) return true; if(d < 0.1) return false; throw new IllegalArgumentException("not one or other extreme!"); }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SimpleBinaryRunningAverage.java/buggy/src/freenet/support/math/SimpleBinaryRunningAverage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1765, 12, 9056, 302, 13, 288, 202, 202, 430, 12, 72, 405, 404, 18, 20, 747, 302, 411, 374, 18, 20, 13, 604, 394, 2754, 2932, 5387, 294, 13773, 72, 1769, 202, 202, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1765, 12, 9056, 302, 13, 288, 202, 202, 430, 12, 72, 405, 404, 18, 20, 747, 302, 411, 374, 18, 20, 13, 604, 394, 2754, 2932, 5387, 294, 13773, 72, 1769, 202, 202, 43...
case PropertyType.XML_TYPE :
case IPropertyType.XML_TYPE :
public void visitExtendedItem( ExtendedItem obj ) { // provide bound column compatibility boundColumnsMgr.dealExtendedItem( obj, getModule( ) ); writer.startElement( DesignSchemaConstants.EXTENDED_ITEM_TAG ); ExtensionElementDefn extDefn = obj.getExtDefn( ); if ( extDefn == null ) { attribute( obj, DesignSchemaConstants.EXTENSION_NAME_ATTRIB, ExtendedItem.EXTENSION_NAME_PROP ); super.visitExtendedItem( obj ); resourceKey( obj, ExtendedItem.ALT_TEXT_KEY_PROP, ExtendedItem.ALT_TEXT_PROP ); // write filter properties for the extended item writeStructureList( obj, ExtendedItem.FILTER_PROP ); // write other un-organized strings ContentTree tree = obj.getContentTree( ); writeContentTree( tree ); } else { // write some attributes attribute( obj, DesignSchemaConstants.EXTENSION_NAME_ATTRIB, ExtendedItem.EXTENSION_NAME_PROP ); String name = (String) obj.getLocalProperty( getModule( ), DesignElement.NAME_PROP ); if ( !StringUtil.isBlank( name ) ) writer.attribute( DesignSchemaConstants.NAME_ATTRIB, name ); String extendsFrom = obj.getExtendsName( ); if ( !StringUtil.isBlank( extendsFrom ) ) writer.attribute( DesignSchemaConstants.EXTENDS_ATTRIB, extendsFrom ); writer.attribute( DesignSchemaConstants.ID_ATTRIB, new Long( obj .getID( ) ).toString( ) ); // write all other properties List props = extDefn.getProperties( ); for ( int i = 0; i < props.size( ); i++ ) { PropertyDefn prop = (PropertyDefn) props.get( i ); String propName = prop.getName( ); if ( ExtendedItem.NAME_PROP.equals( propName ) || ExtendedItem.EXTENSION_NAME_PROP.equals( propName ) || ExtendedItem.EXTENDS_PROP.equals( propName ) ) continue; // TODO: support extending those xml properties. // Now, each time a child is initialized, its xml-properties are // serialized on the IReportItem itself, never minding whether // the xml-property values are set locally or extended from // parent. switch ( prop.getTypeCode( ) ) { case PropertyType.LIST_TYPE : writeSimplePropertyList( obj, propName ); break; case PropertyType.XML_TYPE : writeProperty( obj, getTagByPropertyType( prop ), propName, true ); break; case PropertyType.STRUCT_TYPE : if ( prop.isList( ) ) writeStructureList( obj, propName ); else writeStructure( obj, propName ); break; default : writeProperty( obj, getTagByPropertyType( prop ), prop .getName( ), false ); break; } } // write the slot content if ( extDefn.isContainer( ) ) { for ( int i = 0; i < extDefn.getSlotCount( ); i++ ) { SlotDefn slotDefn = (SlotDefn) extDefn.getSlot( i ); writeContents( obj, i, slotDefn.getXmlName( ) ); } } } writer.endElement( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/ModuleWriter.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 11456, 1180, 12, 14094, 1180, 1081, 262, 202, 95, 3639, 368, 5615, 2489, 1057, 8926, 202, 202, 3653, 3380, 9455, 18, 323, 287, 11456, 1180, 12, 1081, 16, 11251, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 11456, 1180, 12, 14094, 1180, 1081, 262, 202, 95, 3639, 368, 5615, 2489, 1057, 8926, 202, 202, 3653, 3380, 9455, 18, 323, 287, 11456, 1180, 12, 1081, 16, 11251, 12, ...
case java.math.BigDecimal.ROUND_FLOOR:
case BigDecimal.ROUND_FLOOR:
private static double round(double number, double roundingInc, double roundingIncReciprocal, int mode, boolean isNegative) { double div = roundingIncReciprocal == 0.0 ? number / roundingInc : number * roundingIncReciprocal; // do the absolute cases first switch (mode) { case java.math.BigDecimal.ROUND_CEILING: div = (isNegative ? Math.floor(div + epsilon) : Math.ceil(div - epsilon)); break; case java.math.BigDecimal.ROUND_FLOOR: div = (isNegative ? Math.ceil(div - epsilon) : Math.floor(div + epsilon)); break; case java.math.BigDecimal.ROUND_DOWN: div = (Math.floor(div + epsilon)); break; case java.math.BigDecimal.ROUND_UP: div = (Math.ceil(div - epsilon)); break; case java.math.BigDecimal.ROUND_UNNECESSARY: if (div != Math.floor(div)) { throw new ArithmeticException("Rounding necessary"); } return number; default: // Handle complex cases, where the choice depends on the closer value. // We figure out the distances to the two possible values, ceiling and floor. // We then go for the diff that is smaller. // Only if they are equal does the mode matter. double ceil = Math.ceil(div); double ceildiff = ceil - div; // (ceil * roundingInc) - number; double floor = Math.floor(div); double floordiff = div - floor; // number - (floor * roundingInc); // Note that the diff values were those mapped back to the "normal" space // by using the roundingInc. I don't have access to the original author of the code // but suspect that that was to produce better result in edge cases because of machine // precision, rather than simply using the difference between, say, ceil and div. // However, it didn't work in all cases. Am trying instead using an epsilon value. switch (mode) { case java.math.BigDecimal.ROUND_HALF_EVEN: // We should be able to just return Math.rint(a), but this // doesn't work in some VMs. // if one is smaller than the other, take the corresponding side if (floordiff + epsilon < ceildiff) { div = floor; } else if (ceildiff + epsilon < floordiff) { div = ceil; } else { // they are equal, so we want to round to whichever is even double testFloor = floor / 2; div = (testFloor == Math.floor(testFloor)) ? floor : ceil; } break; case java.math.BigDecimal.ROUND_HALF_DOWN: div = ((floordiff <= ceildiff + epsilon) ? floor : ceil); break; case java.math.BigDecimal.ROUND_HALF_UP: div = ((ceildiff <= floordiff + epsilon) ? ceil : floor); break; default: throw new IllegalArgumentException("Invalid rounding mode: " + mode); } } number = roundingIncReciprocal == 0.0 ? div * roundingInc : div / roundingIncReciprocal; return number; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/98070774c993f025d0e40b95a6dcb896d98929f6/DecimalFormat.java/clean/icu4j/src/com/ibm/icu/text/DecimalFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1645, 3643, 12, 9056, 1300, 16, 1645, 13885, 14559, 16, 1377, 202, 202, 9056, 13885, 14559, 426, 3449, 30101, 16, 509, 1965, 16, 1250, 29886, 13, 288, 377, 202, 377, 202, 9056,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 3643, 12, 9056, 1300, 16, 1645, 13885, 14559, 16, 1377, 202, 202, 9056, 13885, 14559, 426, 3449, 30101, 16, 509, 1965, 16, 1250, 29886, 13, 288, 377, 202, 377, 202, 9056,...
else if (fTempQName.rawname != XMLNS && !fTempQName.rawname.startsWith("xmlns:")) { attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-type.3.1.1");
if (fTempQName.rawname != XMLNS && !fTempQName.rawname.startsWith("xmlns:")) {
void processAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp) { // REVISIT: should we assume that XMLAttributeImpl removes // all augmentations from Augmentations? if yes.. we loose objects // if no - we always produce attribute psvi objects which may not be filled in // in this case we need to create/reset here all objects Augmentations augs = null; AttributePSVImpl attrPSVI = null; for (int k=0;k<attributes.getLength();k++) { augs = attributes.getAugmentations(k); attrPSVI = (AttributePSVImpl) augs.getItem(Constants.ATTRIBUTE_PSVI); if (attrPSVI != null) { attrPSVI.reset(); } else { attrPSVI= new AttributePSVImpl(); augs.putItem(Constants.ATTRIBUTE_PSVI, attrPSVI); } // PSVI attribute: validation context attrPSVI.fValidationContext = element.rawname; } // add default attributes if (attrGrp != null) { addDefaultAttributes(element, attributes, attrGrp); } // if we don't do validation, we don't need to validate the attributes if (!fDoValidation){ // PSVI: validity is unknown, and validation attempted is none // this is a default value thus we should not set anything else here. return; } // Element Locally Valid (Type) // 3.1.1 The element information item's [attributes] must be empty, excepting those // whose [namespace name] is identical to http://www.w3.org/2001/XMLSchema-instance and // whose [local name] is one of type, nil, schemaLocation or noNamespaceSchemaLocation. if (fCurrentType == null || fCurrentType.getXSType() == XSTypeDecl.SIMPLE_TYPE) { int attCount = attributes.getLength(); // REVISIT: what should be PSVI info for those? for (int index = 0; index < attCount; index++) { attributes.getName(index, fTempQName); // get attribute PSVI attrPSVI = (AttributePSVImpl)attributes.getAugmentations(index).getItem(Constants.ATTRIBUTE_PSVI); // PSVI: validation attempted, validity attrPSVI.fValidationAttempted = AttributePSVI.FULL_VALIDATION; attrPSVI.fValidity = AttributePSVI.VALID_VALIDITY; // PSVI: normalized value is equal to the one supplied by xmlattributes attrPSVI.fNormalizedValue = attributes.getValue(index); if (fTempQName.uri == URI_XSI) { if (fTempQName.localpart != XSI_SCHEMALOCATION && fTempQName.localpart != XSI_NONAMESPACESCHEMALOCATION && fTempQName.localpart != XSI_NIL && fTempQName.localpart != XSI_TYPE) { // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-type.3.1.1"); reportSchemaError("cvc-type.3.1.1", new Object[]{element.rawname}); } } else if (fTempQName.rawname != XMLNS && !fTempQName.rawname.startsWith("xmlns:")) { // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-type.3.1.1"); reportSchemaError("cvc-type.3.1.1", new Object[]{element.rawname}); } } return; } XSAttributeUse attrUses[] = attrGrp.getAttributeUses(); int useCount = (attrUses!=null)? attrUses.length:0; XSWildcardDecl attrWildcard = attrGrp.fAttributeWC; // whether we have seen a Wildcard ID. String wildcardIDName = null; // for each present attribute int attCount = attributes.getLength(); // Element Locally Valid (Complex Type) // 3 For each attribute information item in the element information item's [attributes] excepting those whose [namespace name] is identical to http://www.w3.org/2001/XMLSchema-instance and whose [local name] is one of type, nil, schemaLocation or noNamespaceSchemaLocation, the appropriate case among the following must be true: // get the corresponding attribute decl for (int index = 0; index < attCount; index++) { // get attribute PSVI attrPSVI = (AttributePSVImpl)attributes.getAugmentations(index).getItem(Constants.ATTRIBUTE_PSVI); // PSVI: set Attribute valid and attempted validation to full. attrPSVI.fValidationAttempted = AttributePSVI.FULL_VALIDATION; attrPSVI.fValidity = AttributePSVI.VALID_VALIDITY; // PSVI: normalized value is equal to the one supplied by xmlattributes // need to fill in for xsi: attributes attrPSVI.fNormalizedValue = attributes.getValue(index); attributes.getName(index, fTempQName); // if it's from xsi namespace, it must be one of the four if (fTempQName.uri == URI_XSI) { if (fTempQName.localpart == XSI_SCHEMALOCATION || fTempQName.localpart == XSI_NONAMESPACESCHEMALOCATION || fTempQName.localpart == XSI_NIL || fTempQName.localpart == XSI_TYPE) { continue; } } else if (fTempQName.rawname == XMLNS || fTempQName.rawname.startsWith("xmlns:")) { continue; } // it's not xmlns, and not xsi, then we need to find a decl for it XSAttributeUse currUse = null; for (int i = 0; i < useCount; i++) { if (attrUses[i].fAttrDecl.fName == fTempQName.localpart && attrUses[i].fAttrDecl.fTargetNamespace == fTempQName.uri) { currUse = attrUses[i]; break; } } // 3.2 otherwise all of the following must be true: // 3.2.1 There must be an {attribute wildcard}. // 3.2.2 The attribute information item must be valid with respect to it as defined in Item Valid (Wildcard) (3.10.4). // if failed, get it from wildcard if (currUse == null) { //if (attrWildcard == null) // reportSchemaError("cvc-complex-type.3.2.1", new Object[]{element.rawname, fTempQName.rawname}); if (attrWildcard == null || !attrWildcard.allowNamespace(fTempQName.uri)) { // so this attribute is not allowed reportSchemaError("cvc-complex-type.3.2.2", new Object[]{element.rawname, fTempQName.rawname}); // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.2.2"); continue; } } XSAttributeDecl currDecl = null; if (currUse != null) { currDecl = currUse.fAttrDecl; } else { // which means it matches a wildcard // skip it if processContents is skip if (attrWildcard.fProcessContents == XSWildcardDecl.WILDCARD_SKIP) continue; //try to find grammar by different means... SchemaGrammar grammar = findSchemaGrammar( XSDDescription.CONTEXT_ATTRIBUTE , fTempQName.uri , element , fTempQName , attributes); if (grammar != null){ currDecl = grammar.getGlobalAttributeDecl(fTempQName.localpart); } // if can't find if (currDecl == null) { // if strict, report error if (attrWildcard.fProcessContents == XSWildcardDecl.WILDCARD_STRICT){ reportSchemaError("cvc-complex-type.3.2.2", new Object[]{element.rawname, fTempQName.rawname}); // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.2.2"); } // then continue to the next attribute continue; } else { // 5 Let [Definition:] the wild IDs be the set of all attribute information item to which clause 3.2 applied and whose validation resulted in a context-determined declaration of mustFind or no context-determined declaration at all, and whose [local name] and [namespace name] resolve (as defined by QName resolution (Instance) (3.15.4)) to an attribute declaration whose {type definition} is or is derived from ID. Then all of the following must be true: // 5.1 There must be no more than one item in wild IDs. if (currDecl.fType.getXSType() == XSTypeDecl.SIMPLE_TYPE && ((XSSimpleType)currDecl.fType).isIDType()) { if (wildcardIDName != null){ reportSchemaError("cvc-complex-type.5.1", new Object[]{element.rawname, currDecl.fName, wildcardIDName}); // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.5.1"); } else wildcardIDName = currDecl.fName; } } } // Attribute Locally Valid // For an attribute information item to be locally valid with respect to an attribute declaration all of the following must be true: // 1 The declaration must not be absent (see Missing Sub-components (5.3) for how this can fail to be the case). // 2 Its {type definition} must not be absent. // 3 The item's normalized value must be locally valid with respect to that {type definition} as per String Valid (3.14.4). // get simple type XSSimpleType attDV = currDecl.fType; // PSVI: attribute declaration attrPSVI.fDeclaration = currDecl; // PSVI: attribute type attrPSVI.fTypeDecl = attDV; // PSVI: validation attempted: attrPSVI.fValidationAttempted = AttributePSVI.FULL_VALIDATION; // needed to update type for DOM Parser to implement getElementById if (attributes.getType(index).equals("CDATA")) { String type = (currDecl.fType.isIDType())?"ID":"CDATA"; attributes.setType(index, type); } // get attribute value String attrValue = attributes.getValue(index); Object actualValue = null; try { actualValue = attDV.validate(attrValue, fValidationState, fValidatedInfo); // PSVI: attribute normalized value attrPSVI.fNormalizedValue = fValidatedInfo.normalizedValue; // PSVI: attribute memberType attrPSVI.fMemberType = fValidatedInfo.memberType; // PSVI: element notation if (attDV.getVariety() == XSSimpleType.VARIETY_ATOMIC && ((XSAtomicSimpleType)attDV).getPrimitiveKind() == XSAtomicSimpleType.PRIMITIVE_NOTATION){ QName qName = (QName)actualValue; SchemaGrammar grammar = fGrammarBucket.getGrammar(qName.uri); //REVISIT: is it possible for the notation to be in different namespace than the attribute //with which it is associated, CHECK !! <fof n1:att1 = "n2:notation1" ..> // should we give chance to the application to be able to retrieve a grammar - nb //REVISIT: what would be the triggering component here.. if it is attribute value that // triggered the loading of grammar ?? -nb if (grammar != null) fCurrentPSVI.fNotation = grammar.getNotationDecl(qName.localpart); } } catch (InvalidDatatypeValueException idve) { // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-attribute.3"); reportSchemaError("cvc-attribute.3", new Object[]{element.rawname, fTempQName.rawname, attrValue}); } // get the value constraint from use or decl // 4 The item's actual value must match the value of the {value constraint}, if it is present and fixed. // now check the value against the simpleType if (actualValue != null && currDecl.getConstraintType() == XSAttributeDecl.FIXED_VALUE) { if (!attDV.isEqual(actualValue, currDecl.fDefault.actualValue)){ // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-attribute.4"); reportSchemaError("cvc-attribute.4", new Object[]{element.rawname, fTempQName.rawname, attrValue}); } } // 3.1 If there is among the {attribute uses} an attribute use with an {attribute declaration} whose {name} matches the attribute information item's [local name] and whose {target namespace} is identical to the attribute information item's [namespace name] (where an absent {target namespace} is taken to be identical to a [namespace name] with no value), then the attribute information must be valid with respect to that attribute use as per Attribute Locally Valid (Use) (3.5.4). In this case the {attribute declaration} of that attribute use is the context-determined declaration for the attribute information item with respect to Schema-Validity Assessment (Attribute) (3.2.4) and Assessment Outcome (Attribute) (3.2.5). if (actualValue != null && currUse != null && currUse.fConstraintType == XSAttributeDecl.FIXED_VALUE) { if (!attDV.isEqual(actualValue, currUse.fDefault.actualValue)){ // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.1"); reportSchemaError("cvc-complex-type.3.1", new Object[]{element.rawname, fTempQName.rawname, attrValue}); } } } // end of for (all attributes) // 5.2 If wild IDs is non-empty, there must not be any attribute uses among the {attribute uses} whose {attribute declaration}'s {type definition} is or is derived from ID. if (attrGrp.fIDAttrName != null && wildcardIDName != null){ // PSVI: attribute is invalid, record errors attrPSVI.fValidity = AttributePSVI.INVALID_VALIDITY; attrPSVI.addErrorCode("cvc-complex-type.3.1"); reportSchemaError("cvc-complex-type.5.2", new Object[]{element.rawname, wildcardIDName, attrGrp.fIDAttrName}); } } //processAttributes
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/8e28a50b92027b6ebafa72dee1b16d988774b14d/XMLSchemaValidator.java/buggy/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 2498, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 13, 288, 3639, 368, 2438, 26780, 1285, 30, 1410, 732, 6750, 716, 3167, 1499, 2828, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 2498, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 13, 288, 3639, 368, 2438, 26780, 1285, 30, 1410, 732, 6750, 716, 3167, 1499, 2828, ...
getLocale() )
getULocale() )
public void enableInteraction( InteractionEvent ie ) throws ChartException { if ( _iun == null ) { logger.log( ILogger.WARNING, Messages.getString( "exception.missing.component.interaction", getLocale( ) ) ); //$NON-NLS-1$ return; } Trigger[] triggers = ie.getTriggers( ); if ( triggers == null ) { return; } /////////////////////////////////////////////// //Create the hotspot and add the hotspot on //the SVG hotspot layer /////////////////////////////////////////////// final PrimitiveRenderEvent pre = ie.getHotSpot( ); Element elm = null; if ( pre instanceof PolygonRenderEvent ) { final Location[] loa = ( (PolygonRenderEvent) pre ).getPoints( ); int[][] pa = getCoordinatesAsInts( loa ); elm = svggc.createPolygon( pa[0], pa[1], pa[0].length ); } else if ( pre instanceof OvalRenderEvent ) { final Bounds boEllipse = ( (OvalRenderEvent) pre ).getBounds( ); elm = svggc.createOval( boEllipse.getLeft( ), boEllipse.getTop( ), boEllipse.getWidth( ), boEllipse.getHeight( ) ); } else if ( pre instanceof RectangleRenderEvent ) { final Bounds boRect = ( (RectangleRenderEvent) pre ).getBounds( ); elm = svggc.createRect(boRect.getLeft(), boRect.getTop(), boRect.getWidth(), boRect.getHeight()); } else if ( pre instanceof ArcRenderEvent ) { final ArcRenderEvent are = (ArcRenderEvent) pre; if ( are.getInnerRadius( ) >= 0 && are.getOuterRadius( ) > 0 && are.getInnerRadius( ) < are.getOuterRadius( ) ) { Shape outerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getOuterRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getOuterRadius( ) ) / 2, 2 * are.getOuterRadius( ), 2 * are.getOuterRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Shape innerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getInnerRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getInnerRadius( ) ) / 2, 2 * are.getInnerRadius( ), 2 * are.getInnerRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Area fArea = new Area( outerArc ); fArea.exclusiveOr( new Area( innerArc ) );// Shape prevClip = _g2d.getClip( );// _g2d.setClip( fArea ); elm = svggc.createGeneralPath( fArea );// _g2d.setClip( prevClip ); } else { elm = svggc.createGeneralPath( new Arc2D.Double( are.getTopLeft( ).getX( ), are.getTopLeft( ).getY( ), are.getWidth( ), are.getHeight( ), are.getStartAngle( ), are.getAngleExtent( ), toSwingArcType( are.getStyle( ) ) ) ); } } ////////////////////////////////////// //Add event handling to the hotspot ////////////////////////////////////// if (elm != null) { for (int x = 0; x < triggers.length; x++) { Trigger tg = triggers[x]; final StructureSource src = (StructureSource) ie.getSource( ); switch (tg.getAction().getType().getValue()) { case ActionType.SHOW_TOOLTIP: String tooltipText = ((TooltipValue) tg.getAction().getValue()).getText(); //make sure the tooltip text is not empty if ((tooltipText != null) && (tooltipText.trim().length() > 0)){ Element title = svggc.dom.createElement("title"); //$NON-NLS-1$ title.appendChild(svggc.dom .createTextNode(tooltipText)); elm.appendChild(title); elm.setAttribute("onmouseout", "TM.remove()"); //$NON-NLS-1$ //$NON-NLS-2$ elm.setAttribute("onmousemove", "TM.show(evt)"); //$NON-NLS-1$ //$NON-NLS-2$ } break; case ActionType.URL_REDIRECT: URLValue urlValue = ((URLValue) tg.getAction().getValue()); //See if this is an internal anchor link if ( urlValue.getBaseUrl().startsWith("#")){ //$NON-NLS-1$ Element aLink = ((SVGGraphics2D)_g2d).createElement("g"); //$NON-NLS-1$ aLink.setAttribute("onclick", "top.document.location.hash='"+urlValue.getBaseUrl()+"';"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ aLink.setAttribute("style", "cursor:pointer"); //$NON-NLS-1$ //$NON-NLS-2$ aLink.appendChild(elm); elm = aLink; } else{ Element aLink = ((SVGGraphics2D)_g2d).createElement("a"); //$NON-NLS-1$ aLink.setAttribute("xlink:href", urlValue.getBaseUrl()); //$NON-NLS-1$ if (urlValue.getTarget() != null) aLink.setAttribute("target", urlValue.getTarget()); //$NON-NLS-1$ aLink.appendChild(elm); elm = aLink; } break; case ActionType.TOGGLE_VISIBILITY : if ( src.getType( ) == StructureType.SERIES ) { final Series seRT = (Series) src.getSource( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.toggle.visibility", //$NON-NLS-1$ getLocale() ) + seRT ); Series seDT = null; try { // THE // CORRESPONDING // DESIGN-TIME // SERIES seDT = findDesignTimeSeries( seRT ); // LOCATE cacheSeriesHotspots.put(elm, seDT); } catch ( ChartException oosx ) { logger.log( oosx ); return; } } break; case ActionType.TOGGLE_DATA_POINT_VISIBILITY : if ( src.getType( ) == StructureType.SERIES ) { final Series seRT = (Series) src.getSource( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.toggle.datapoint.visibility", //$NON-NLS-1$ getLocale() ) + seRT ); Series seDT = null; try { seDT = findDesignTimeSeries( seRT ); } catch ( ChartException oosx ) { logger.log( oosx ); return; } if (seDT != null) cacheHotspots.put(elm, seDT); } break; case ActionType.HIGHLIGHT : if ( src.getType( ) == StructureType.SERIES ) { final Series seRT = (Series) src.getSource( ); logger.log( ILogger.INFORMATION, Messages.getString( "info.toggle.visibility", //$NON-NLS-1$ getLocale() ) + seRT ); String scriptEvent = getJsScriptEvent(tg.getCondition().getValue()); if (scriptEvent != null){ Series seDT = null; try { // THE // CORRESPONDING // DESIGN-TIME // SERIES seDT = findDesignTimeSeries( seRT ); // LOCATE List components = (List)componentPrimitives.get(seDT); if (components != null){ Iterator iter = components.iterator(); StringBuffer sb = new StringBuffer(); sb.append(seDT.hashCode()); if (iter.hasNext()) sb.append(",new Array("); //$NON-NLS-1$ while (iter.hasNext()){ sb.append("'").append(iter.next()).append("'"); //$NON-NLS-1$ //$NON-NLS-2$ if (iter.hasNext()) sb.append(","); //$NON-NLS-1$ } if (components.size() > 0) sb.append(")"); //$NON-NLS-1$ elm.setAttribute(scriptEvent, //$NON-NLS-1$ "highlight(evt, " //$NON-NLS-1$ + sb.toString() + ")"); //$NON-NLS-1$ //see if this is on mouse over event. Then we should have a on mouse out event to correctly reset //the highlight color if (tg.getCondition().getValue() == TriggerCondition.ONMOUSEOVER){ elm.setAttribute("onmouseout", //$NON-NLS-1$ "highlight(evt, null, null)"); //$NON-NLS-1$ } setCursor(elm); //should define style class and set the visibility to visible ((SVGGraphics2D)_g2d).addCSSStyle(".class"+seDT.hashCode(), "visibility", "visible"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } } catch ( ChartException oosx ) { logger.log( oosx ); return; } } } break; case ActionType.INVOKE_SCRIPT: final StructureSource sructSource = (StructureSource) ie.getSource( ); //lets see if we need to add accessibility if (tg.getCondition().equals(TriggerCondition.ACCESSIBILITY_LITERAL)){ AccessibilityValue accessValue = ((AccessibilityValue) tg.getAction().getValue()); if (accessValue.getText() != null){ Element title = ((SVGGraphics2D)_g2d).createElement("title"); //$NON-NLS-1$ title.appendChild(svggc.dom .createTextNode(accessValue.getText())); elm.appendChild(title); } if (accessValue.getAccessibility() != null){ Element description = ((SVGGraphics2D)_g2d).createElement("desc"); //$NON-NLS-1$ description.appendChild(svggc.dom .createTextNode(accessValue.getAccessibility())); elm.appendChild(description); } } else{ String scriptEvent = getJsScriptEvent(tg.getCondition().getValue()); if (scriptEvent != null){ String script = ((ScriptValue) tg.getAction().getValue()).getScript(); String callbackFunction = "callback"+Math.abs(script.hashCode())+"(evt,"+sructSource.getSource().hashCode()+");"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ elm.setAttribute(scriptEvent, callbackFunction); setCursor(elm); if (!(scripts.contains(script))){ ((SVGGraphics2D)_g2d).addScript("function callback"+Math.abs(script.hashCode())+"(evt,source)" +"{"+script+"}"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ scripts.add(script); } } } break; } } hotspotLayer.appendChild( elm ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ae8909f5c697c610266e491d0af9a02eed14e2e4/SVGRendererImpl.java/clean/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4237, 17419, 12, 5294, 1128, 1133, 9228, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 389, 77, 318, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 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, 225, 202, 482, 918, 4237, 17419, 12, 5294, 1128, 1133, 9228, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 389, 77, 318, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 12, 4...
return parse(addresses, strict, true);
return parse(addresses, strict ? AddressParser.STRICT : AddressParser.PARSE_HEADER);
public static InternetAddress[] parseHeader(String addresses, boolean strict) throws AddressException { return parse(addresses, strict, true); }
6764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6764/af0fdef40c1ae2f0657fe07b1e0bbca12730ac5f/InternetAddress.java/clean/geronimo-spec-javamail/src/main/java/javax/mail/internet/InternetAddress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 21352, 1887, 8526, 1109, 1864, 12, 780, 6138, 16, 1250, 5490, 13, 1216, 5267, 503, 288, 3639, 327, 1109, 12, 13277, 16, 5490, 692, 5267, 2678, 18, 30776, 294, 5267, 2678, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 21352, 1887, 8526, 1109, 1864, 12, 780, 6138, 16, 1250, 5490, 13, 1216, 5267, 503, 288, 3639, 327, 1109, 12, 13277, 16, 5490, 692, 5267, 2678, 18, 30776, 294, 5267, 2678, 18, ...
public static SecuritySupport getInstance() {
static SecuritySupport getInstance() {
public static SecuritySupport getInstance() { return (SecuritySupport)securitySupport; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/ece2785811888611fd2661ac554bf6ba880d46ea/SecuritySupport.java/buggy/src/org/apache/xpath/functions/SecuritySupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 6036, 6289, 3694, 1435, 288, 202, 2463, 261, 4368, 6289, 13, 7462, 6289, 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, 760, 6036, 6289, 3694, 1435, 288, 202, 2463, 261, 4368, 6289, 13, 7462, 6289, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Util.toString( constantMethodref.getClassName(), constantMethodref.getMethodName(), constantMethodref.getMethodDescriptor(), true, isCompact())
signature
public void _invokevirtual(int pc, int index, IConstantPoolEntry constantMethodref) { dumpPcNumber(pc); buffer.append(Messages.bind(Messages.classformat_invokevirtual,new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.INVOKEVIRTUAL], Integer.toString(index), Util.toString( constantMethodref.getClassName(), constantMethodref.getMethodName(), constantMethodref.getMethodDescriptor(), true, isCompact()) })); writeNewLine(); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/59cf996337684de4f19867be3f0f9ff3756534dc/DefaultBytecodeVisitor.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 389, 14407, 12384, 12, 474, 6125, 16, 509, 770, 16, 467, 6902, 2864, 1622, 5381, 1305, 1734, 13, 288, 202, 202, 8481, 28136, 1854, 12, 2436, 1769, 202, 202, 4106, 18, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 14407, 12384, 12, 474, 6125, 16, 509, 770, 16, 467, 6902, 2864, 1622, 5381, 1305, 1734, 13, 288, 202, 202, 8481, 28136, 1854, 12, 2436, 1769, 202, 202, 4106, 18, 692...
public void setManifestEncoding(String manifestEncoding) {
public void setManifestEncoding( String manifestEncoding ) {
public void setManifestEncoding(String manifestEncoding) { this.manifestEncoding = manifestEncoding; }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/JarArchiver.java/buggy/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 9121, 4705, 12, 514, 5643, 4705, 262, 288, 3639, 333, 18, 14357, 4705, 273, 5643, 4705, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 9121, 4705, 12, 514, 5643, 4705, 262, 288, 3639, 333, 18, 14357, 4705, 273, 5643, 4705, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
myManager.registerFileMatcher((RunConfigurationBase)runProfile);
if (runProfile instanceof RunConfigurationBase) { myManager.registerFileMatcher((RunConfigurationBase)runProfile); }
public void setRunProfile(final RunProfile runProfile, RunnerSettings runnerSettings, ConfigurationPerRunnerSettings configurationSettings) { myRunProfile = runProfile; myRunnerSettings = runnerSettings; myConfigurationSettings = configurationSettings; myManager.registerFileMatcher((RunConfigurationBase)runProfile); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/9f51de6d46bbadf65a032147efe01545e874a316/RunContentBuilder.java/buggy/execution/impl/com/intellij/execution/runners/RunContentBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 1997, 4029, 12, 6385, 1939, 4029, 1086, 4029, 16, 18701, 22712, 2628, 8419, 2628, 16, 18701, 4659, 2173, 9709, 2628, 1664, 2628, 13, 288, 565, 3399, 1997, 4029, 273, 1086, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 1997, 4029, 12, 6385, 1939, 4029, 1086, 4029, 16, 18701, 22712, 2628, 8419, 2628, 16, 18701, 4659, 2173, 9709, 2628, 1664, 2628, 13, 288, 565, 3399, 1997, 4029, 273, 1086, ...
synchronized (_timedJobs) {
synchronized (_jobLock) {
public void run() { try { while (_alive) { long now = _context.clock().now(); long timeToWait = 0; ArrayList toAdd = null; synchronized (_timedJobs) { for (int i = 0; i < _timedJobs.size(); i++) { Job j = (Job)_timedJobs.get(i); // find jobs due to start before now long timeLeft = j.getTiming().getStartAfter() - now; if (timeLeft <= 0) { if (j instanceof JobImpl) ((JobImpl)j).madeReady(); if (toAdd == null) toAdd = new ArrayList(4); toAdd.add(j); _timedJobs.remove(i); i--; // so the index stays consistent } else { if ( (timeToWait <= 0) || (timeLeft < timeToWait) ) timeToWait = timeLeft; } } } if (toAdd != null) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Not waiting - we have " + toAdd.size() + " newly ready jobs"); synchronized (_readyJobs) { // rather than addAll, which allocs a byte array rv before adding, // we iterate, since toAdd is usually going to only be 1 or 2 entries // and since readyJobs will often have the space, we can avoid the // extra alloc. (no, i'm not just being insane - i'm updating this based // on some profiling data ;) for (int i = 0; i < toAdd.size(); i++) _readyJobs.add(toAdd.get(i)); _readyJobs.notifyAll(); } } else { if (timeToWait < 100) timeToWait = 100; if (timeToWait > 10*1000) timeToWait = 10*1000; if (_log.shouldLog(Log.DEBUG)) _log.debug("Waiting " + timeToWait + " before rechecking the timed queue"); try { synchronized (_timedJobs) { _timedJobs.wait(timeToWait); } } catch (InterruptedException ie) {} } } } catch (Throwable t) { _context.clock().removeUpdateListener(this); if (_log.shouldLog(Log.ERROR)) _log.error("wtf, pumper killed", t); } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/0c049f39d96cf62b9f8058619ba2591b804f993f/JobQueue.java/clean/router/java/src/net/i2p/router/JobQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 1323, 261, 67, 11462, 13, 288, 10792, 1525, 2037, 273, 389, 2472, 18, 18517, 7675, 3338, 5621, 10792, 1525, 23813, 5480, 273, 374, 31, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 1323, 261, 67, 11462, 13, 288, 10792, 1525, 2037, 273, 389, 2472, 18, 18517, 7675, 3338, 5621, 10792, 1525, 23813, 5480, 273, 374, 31, 10...
if (element.getLastModified() > myLastQueryTime) {
if (element.getLastModified() > myLastModifiedTime) {
protected boolean needToUpdate(OrgInfo orgInfo) { for (Iterator iterator = orgInfo.getActivitySchedule().iterator(); iterator.hasNext();) { OrgInfoElement element = (OrgInfoElement) iterator.next(); if (element.getLastModified() > myLastQueryTime) { return true; } } for (Iterator iterator = orgInfo.getLocationSchedule().iterator(); iterator.hasNext();) { OrgInfoElement element = (OrgInfoElement) iterator.next(); if (element.getLastModified() > myLastQueryTime) { return true; } } for (Iterator iterator = orgInfo.getOpTempoSchedule().iterator(); iterator.hasNext();) { OrgInfoElement element = (OrgInfoElement) iterator.next(); if (element.getLastModified() > myLastQueryTime) { return true; } } return false; }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/35c4a5097c0b094ab32b763684eff09f7a665e5f/OrgActivityQueryHandler.java/clean/glm/src/org/cougaar/domain/mlm/plugin/ldm/OrgActivityQueryHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 1608, 21267, 12, 6001, 966, 2358, 966, 13, 288, 565, 364, 261, 3198, 2775, 273, 2358, 966, 18, 588, 6193, 6061, 7675, 9838, 5621, 540, 2775, 18, 5332, 2134, 5621, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 1608, 21267, 12, 6001, 966, 2358, 966, 13, 288, 565, 364, 261, 3198, 2775, 273, 2358, 966, 18, 588, 6193, 6061, 7675, 9838, 5621, 540, 2775, 18, 5332, 2134, 5621, 13, 288, 1...
EObject parentElement)
PasteTarget parentElement)
private final PasteIntoParentOperation getParentPasteProcess( EObject parentElement) throws Exception { PasteIntoParentOperation parentPasteProcess = (PasteIntoParentOperation) parentPasteRecordMap .get(parentElement); if (parentPasteProcess == null) { parentPasteProcess = new PasteIntoParentOperation(this, parentElement, getHintsMap()); parentPasteRecordMap.put(parentElement, parentPasteProcess); } return parentPasteProcess; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/cb60a066555c87b8b2d9a7be051e36a1f05d154a/PasteOperation.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.emf.clipboard.core/src/org/eclipse/gmf/runtime/emf/clipboard/core/internal/PasteOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 453, 14725, 5952, 3054, 2988, 5089, 52, 14725, 2227, 12, 1082, 202, 8029, 30363, 13, 202, 202, 15069, 1185, 288, 202, 202, 52, 14725, 5952, 3054, 2988, 982, 52, 14725, 222...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 453, 14725, 5952, 3054, 2988, 5089, 52, 14725, 2227, 12, 1082, 202, 8029, 30363, 13, 202, 202, 15069, 1185, 288, 202, 202, 52, 14725, 5952, 3054, 2988, 982, 52, 14725, 222...
if (baseLocation.charAt(0) != '/' && propValue.charAt(propValue.length()) != '/') {
if (baseLocation.charAt(0) != '/' && propValue.charAt(propValue.length() - 1) != '/') {
public URL resolveLocation(String location) throws MalformedURLException { String propValue = System.getProperty(envName); if (propValue == null) { String errMsg = "The Java environment (-Dxxx=yyy) variable with name " + envName + " is not set, cannot resolve location."; throw new MalformedURLException(errMsg); } StringBuffer baseLocation = new StringBuffer(FlexibleLocation.stripLocationType(location)); // if there is not a forward slash between the two, add it if (baseLocation.charAt(0) != '/' && propValue.charAt(propValue.length()) != '/') { baseLocation.insert(0, '/'); } baseLocation.insert(0, propValue); return UtilURL.fromFilename(baseLocation.toString()); }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/f4309707dd243bc06f82a8a550f69465ea9cd45d/OFBizHomeLocationResolver.java/clean/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1976, 2245, 2735, 12, 780, 2117, 13, 1216, 20710, 288, 3639, 514, 19432, 273, 2332, 18, 588, 1396, 12, 3074, 461, 1769, 3639, 309, 261, 5986, 620, 422, 446, 13, 288, 5411, 514, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1976, 2245, 2735, 12, 780, 2117, 13, 1216, 20710, 288, 3639, 514, 19432, 273, 2332, 18, 588, 1396, 12, 3074, 461, 1769, 3639, 309, 261, 5986, 620, 422, 446, 13, 288, 5411, 514, 12...
translationUnit = null; }
translationUnit = null; }
protected void nullifyTranslationUnit() { translationUnit = null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8b59056395eb6c26e898030e7e1cd1b78d4db999/GNUCPPSourceParser.java/buggy/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, 918, 446, 1164, 6717, 2802, 1435, 288, 1377, 4794, 2802, 273, 446, 31, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 446, 1164, 6717, 2802, 1435, 288, 1377, 4794, 2802, 273, 446, 31, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
cmbPosition.add( Position.ABOVE_LITERAL.getName( ) ); cmbPosition.add( Position.BELOW_LITERAL.getName( ) );
String[] ns = LiteralHelper.verticalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); }
private void populateLists( ) { if ( bPositionEnabled ) { if ( positionScope == ALLOW_ALL_POSITION ) { for ( int iC = 0; iC < Position.VALUES.size( ); iC++ ) { cmbPosition.add( Position.get( iC ).getName( ) ); if ( Position.get( iC ).equals( lpCurrent ) ) { cmbPosition.select( iC ); } } } else { // check vertical if ( ( positionScope & ALLOW_VERTICAL_POSITION ) != 0 ) { cmbPosition.add( Position.ABOVE_LITERAL.getName( ) ); cmbPosition.add( Position.BELOW_LITERAL.getName( ) ); } // check horizontal if ( ( positionScope & ALLOW_HORIZONTAL_POSITION ) != 0 ) { cmbPosition.add( Position.LEFT_LITERAL.getName( ) ); cmbPosition.add( Position.RIGHT_LITERAL.getName( ) ); } // check inout if ( ( positionScope & ALLOW_INOUT_POSITION ) != 0 ) { cmbPosition.add( Position.INSIDE_LITERAL.getName( ) ); cmbPosition.add( Position.OUTSIDE_LITERAL.getName( ) ); } if ( lpCurrent != null ) { for ( int iC = 0; iC < cmbPosition.getItemCount( ); iC++ ) { if ( lpCurrent.getName( ) .equals( cmbPosition.getItem( iC ) ) ) { cmbPosition.select( iC ); } } } } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/35e5ac52b1d08645abccb0fa32df6279923b4897/LabelAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LabelAttributesComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 7432, 12, 262, 202, 95, 202, 202, 430, 261, 324, 2555, 1526, 262, 202, 202, 95, 1082, 202, 430, 261, 1754, 3876, 422, 18592, 67, 4685, 67, 15258, 262, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 7432, 12, 262, 202, 95, 202, 202, 430, 261, 324, 2555, 1526, 262, 202, 202, 95, 1082, 202, 430, 261, 1754, 3876, 422, 18592, 67, 4685, 67, 15258, 262, 1082, 202, ...
this.isActive = isActive;
this.active = active;
public void setActive(boolean isActive) { this.isActive = isActive; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/DropTarget.java/buggy/core/src/classpath/java/java/awt/dnd/DropTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 20669, 12, 6494, 15083, 13, 225, 288, 565, 333, 18, 3535, 273, 2695, 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, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 20669, 12, 6494, 15083, 13, 225, 288, 565, 333, 18, 3535, 273, 2695, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
(float) offset.getY()+dy); else offset = new Point2D.Float((float) offset.getX()+dx,
(float)initY+adj+dy); } else { float adj = (float)((offset.getX()-initX)*xScale); offset = new Point2D.Float((float)initX+adj+dx,
private void adjustChunkOffsets(List textRuns, Point2D advance, int beginChunk, int endChunk) { TextRun r = (TextRun) textRuns.get(beginChunk); int anchorType = r.getAnchorType(); float dx = 0f; float dy = 0f; switch(anchorType){ case TextNode.Anchor.ANCHOR_MIDDLE: dx = (float) (-advance.getX()/2d); dy = (float) (-advance.getY()/2d); break; case TextNode.Anchor.ANCHOR_END: dx = (float) (-advance.getX()); dy = (float) (-advance.getY()); break; default: break; // leave untouched } for (int n=beginChunk; n<endChunk; ++n) { r = (TextRun) textRuns.get(n); TextSpanLayout layout = r.getLayout(); Point2D offset = layout.getOffset(); if (layout.isVertical()) offset = new Point2D.Float((float) offset.getX(), (float) offset.getY()+dy); else offset = new Point2D.Float((float) offset.getX()+dx, (float) offset.getY()); layout.setOffset(offset); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/7841dcb4b21d69895bdd5eebc786b589507cb4a7/StrokingTextPainter.java/buggy/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5765, 5579, 13830, 12, 682, 977, 9361, 16, 19694, 4686, 22, 40, 8312, 16, 4766, 565, 509, 2376, 5579, 16, 19694, 509, 679, 5579, 13, 288, 3639, 3867, 1997, 436, 273, 261, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5765, 5579, 13830, 12, 682, 977, 9361, 16, 19694, 4686, 22, 40, 8312, 16, 4766, 565, 509, 2376, 5579, 16, 19694, 509, 679, 5579, 13, 288, 3639, 3867, 1997, 436, 273, 261, 152...
{ }
{ return null; }
public java.sql.ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { // XXX-Not Implemented }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 28782, 1999, 3004, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 509, 2146, 16, 1250, 8413, 13, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 28782, 1999, 3004, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 509, 2146, 16, 1250, 8413, 13, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, ...
retEnv = SunRound2Client.sendMsg(util, url, soapAction);
retEnv = client.sendMsg(util, url, soapAction);
public void testR2BaseEchoDecimal() throws AxisFault { url = "http://www.caraveo.com/soap_interop/server_round2.php"; soapAction = "http://soapinterop.org/"; util = new Round2EchoDecimalClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "sunBaseDecimalRes.xml"; compareXML(retEnv, tempPath); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/95f09abc768fee06d65b12836e31273ac0e15eb3/PSRound2InteropTest.java/buggy/modules/integration/itest/test/interop/whitemesa/round2/PSRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 2171, 19704, 5749, 1435, 1216, 15509, 7083, 225, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 9815, 836, 83, 18, 832, 19, 19215, 67, 30376, 19, 3567, 67, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 54, 22, 2171, 19704, 5749, 1435, 1216, 15509, 7083, 225, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 9815, 836, 83, 18, 832, 19, 19215, 67, 30376, 19, 3567, 67, 226...
VM.sysWrite("Incompatabily typed register & other operand...");
VM.sysWrite("Incompatabily typed register & other operand...("+type1+", "+type2+")...");
public static OPT_Operand meet(OPT_Operand op1, OPT_Operand op2, OPT_Register reg) { // Step 1: Handler pointer equality and bottom if (op1 == op2) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { if (op1 == null) { VM.sysWrite("Both operands are bottom\n"); } else { VM.sysWrite("Operands are identical\n"); } } return op1; } if (op1 == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Op1 was already bottom\n"); } return op1; } if (op2 == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Op2 is bottom (but op1 was not)\n"); } return op2; } // Now handle the nontrivial cases... // Step 2: op1 is <null> (the null constant) if (op1 instanceof OPT_NullConstantOperand) { if (op2 instanceof OPT_NullConstantOperand) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Both operands are <null>\n"); } return op1; } else { VM_Type type2 = op2.getType(); if (type2.isReferenceType()) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 is <null>, but op2 is other ref type\n"); } return new OPT_RegisterOperand(reg, type2); } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 is <null>, but op2 is not a ref type\n"); } return null; // bottom } } } // Step 3: op1 is some other constant if (op1.isConstant()) { if (op1.similar(op2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 and op2 are similar constants\n"); } return op1; } else { VM_Type superType = OPT_ClassLoaderProxy.proxy.findCommonSuperclass(op1.getType(), op2.getType()); if (superType == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("op1 and op2 have incompatible types\n"); } return null; // bottom } else { return new OPT_RegisterOperand(reg, superType); } } } // Step 4: op1 is a register operand // This case is complicated by the need to ensure that // the various Flag bits are considered as well.... if (op1.isRegister()) { OPT_RegisterOperand rop1 = op1.asRegister(); VM_Type type1 = rop1.type; if (op2.isRegister()) { OPT_RegisterOperand rop2 = op2.asRegister(); VM_Type type2 = rop2.type; if (type1 == type2) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Identically typed register operands, checking flags..."); } if (rop1.hasLessConservativeFlags(rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("mismatch\n"); } OPT_RegisterOperand res = new OPT_RegisterOperand(reg, type1, rop1.getFlags()); if (rop1.scratchObject instanceof OPT_Operand && rop2.scratchObject instanceof OPT_Operand && (((OPT_Operand)rop1.scratchObject).similar(((OPT_Operand)rop2.scratchObject)))) { res.scratchObject = rop1.scratchObject; // compatible, so preserve onto res } res.meetInheritableFlags(rop2); return res; } else if (OPT_BC2IR.hasLessConservativeGuard(rop1, rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Operands are registers of identical type with compatible flags but with incompatible non-null guards\n"); } // by not setting scratchObject we mark as possible null return new OPT_RegisterOperand(reg, type1, rop1.getFlags()); } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("match\n"); } return op1; } } else if (OPT_ClassLoaderProxy.proxy.isAssignableWith(type1, type2) == OPT_Constants.YES) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Compatabily typed register operands, checking flags..."); } if (rop1.isPreciseType() || rop1.hasLessConservativeFlags(rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("mismatch\n"); } OPT_RegisterOperand res = new OPT_RegisterOperand(reg, type1, rop1.getFlags()); res.meetInheritableFlags(rop2); // even if both op1 & op2 are precise, // op1.type != op2.type, so clear it on res res.clearPreciseType(); if (rop1.scratchObject instanceof OPT_Operand && rop2.scratchObject instanceof OPT_Operand && (((OPT_Operand)rop1.scratchObject).similar(((OPT_Operand)rop2.scratchObject)))) { // it matched, so preserve onto res. res.scratchObject = rop1.scratchObject; } return res; } else if (OPT_BC2IR.hasLessConservativeGuard(rop1, rop2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Operands are registers of compatible type and flags but with incompatible non-null guards\n"); } return new OPT_RegisterOperand(reg, type1, rop1.getFlags()); } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("match\n"); } return op1; } } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatabily typed register operands..."); } VM_Type resType = OPT_ClassLoaderProxy.proxy.findCommonSuperclass(type1, type2); if (resType == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("no common supertype, returning bottom\n"); } return null; // bottom } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("found common supertype\n"); } OPT_RegisterOperand res = new OPT_RegisterOperand(reg, resType, rop1.getFlags()); res.meetInheritableFlags(rop2); res.clearPreciseType(); // invalid on res res.clearDeclaredType(); // invalid on res if (rop1.scratchObject instanceof OPT_Operand && rop2.scratchObject instanceof OPT_Operand && (((OPT_Operand)rop1.scratchObject).similar(((OPT_Operand)rop2.scratchObject)))) { // it matched, so preserve onto res. res.scratchObject = rop1.scratchObject; } return res; } } } else { if (op2 instanceof OPT_BC2IR.ReturnAddressOperand || op2 == OPT_BC2IR.DUMMY) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatabily typed operands"); } return null; // bottom } VM_Type type2 = op2.getType(); if (type1 == type2 || (OPT_ClassLoaderProxy.proxy.isAssignableWith(type1, type2) == OPT_Constants.YES)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Compatabily typed register & other operand, checking flags..."); } OPT_RegisterOperand res = rop1; if (res.isPreciseType() && type1 != type2) { res = res.copyU2U(); res.clearPreciseType(); } if ((rop1.scratchObject instanceof OPT_Operand) && ((type2 == OPT_ClassLoaderProxy.NULL_TYPE) || (type2.isIntLikeType() && op2.asIntConstant().value == 0) || (type2.isLongType() && op2.asLongConstant().value == 0L))) { res = res.copyU2U(); res.scratchObject = null; } if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { if (res == rop1) { VM.sysWrite("match\n"); } else { VM.sysWrite("mismatch\n"); } } return res; } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatabily typed register & other operand..."); } VM_Type resType = OPT_ClassLoaderProxy.proxy.findCommonSuperclass(type1, type2); if (resType == null) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("no common supertype, returning bottom\n"); } return null; // bottom } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("found common supertype\n"); } return new OPT_RegisterOperand(reg, resType); } } } } // Step 5: op1 is some OPT_IRGEN operand if (op1.similar(op2)) { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Compatible OPT_BC2IR.* operands\n"); } return op1; } else { if (OPT_IRGenOptions.DBG_OPERAND_LATTICE) { VM.sysWrite("Incompatible OPT_BC2IR.* operands, returning bottom\n"); } return null; // bottom } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/f81fd48a4020feb9d6d8bb281fc0b358f0a33b46/OPT_Operand.java/clean/rvm/src/vm/compilers/optimizing/ir/instruction/operand/OPT_Operand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 16456, 67, 10265, 18721, 12, 15620, 67, 10265, 1061, 21, 16, 4405, 16456, 67, 10265, 1061, 22, 16, 4405, 16456, 67, 3996, 960, 13, 288, 565, 368, 8693, 404, 30, 4663, 4407, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16456, 67, 10265, 18721, 12, 15620, 67, 10265, 1061, 21, 16, 4405, 16456, 67, 10265, 1061, 22, 16, 4405, 16456, 67, 3996, 960, 13, 288, 565, 368, 8693, 404, 30, 4663, 4407, 1...
if (bitsPerSample[0] == 16) {
if (bitsPerSample[0] == 16) {
public static byte[][] getSamples(Hashtable ifd, RandomAccessStream in, long globalOffset) throws FormatException, IOException { if (DEBUG) debug("parsing IFD entries"); // get internal non-IFD entries boolean littleEndian = isLittleEndian(ifd); in.order(littleEndian); // get relevant IFD entries long imageWidth = getImageWidth(ifd); long imageLength = getImageLength(ifd); int[] bitsPerSample = getBitsPerSample(ifd); int samplesPerPixel = getSamplesPerPixel(ifd); int compression = getCompression(ifd); int photoInterp = getPhotometricInterpretation(ifd); long[] stripOffsets = getStripOffsets(ifd); long[] stripByteCounts = getStripByteCounts(ifd); long[] rowsPerStripArray = getRowsPerStrip(ifd); boolean fakeByteCounts = stripByteCounts == null; boolean fakeRPS = rowsPerStripArray == null; boolean isTiled = stripOffsets == null; long maxValue = getIFDLongValue(ifd, MAX_SAMPLE_VALUE, false, 0); if (isTiled) { // long tileWidth = getIFDLongValue(ifd, TILE_WIDTH, true, 0); // long tileLength = getIFDLongValue(ifd, TILE_LENGTH, true, 0); stripOffsets = getIFDLongArray(ifd, TILE_OFFSETS, true); stripByteCounts = getIFDLongArray(ifd, TILE_BYTE_COUNTS, true); // TODO -- tiled images throw new FormatException("Sorry, tiled images are not supported"); } else if (fakeByteCounts) { // technically speaking, this shouldn't happen (since TIFF writers are // required to write the StripByteCounts tag), but we'll support it // anyway // don't rely on RowsPerStrip, since it's likely that if the file doesn't // have the StripByteCounts tag, it also won't have the RowsPerStrip tag stripByteCounts = new long[stripOffsets.length]; stripByteCounts[0] = stripOffsets[0]; for (int i=1; i<stripByteCounts.length; i++) { stripByteCounts[i] = stripOffsets[i] - stripByteCounts[i-1]; } } if (fakeRPS && !isTiled) { // create a false rowsPerStripArray if one is not present // it's sort of a cheap hack, but here's how it's done: // RowsPerStrip = stripByteCounts / (imageLength * bitsPerSample) // since stripByteCounts and bitsPerSample are arrays, we have to // iterate through each item if (bitsPerSample.length == 2 || bitsPerSample[bitsPerSample.length - 1] == 0) { int t = bitsPerSample[0]; bitsPerSample = new int[1]; bitsPerSample[0] = t; } rowsPerStripArray = new long[bitsPerSample.length]; long temp = stripByteCounts[0]; stripByteCounts = new long[bitsPerSample.length]; for (int i=0; i<stripByteCounts.length; i++) stripByteCounts[i] = temp; temp = bitsPerSample[0]; if (temp == 0) temp = 8; bitsPerSample = new int[bitsPerSample.length]; for (int i=0; i<bitsPerSample.length; i++) bitsPerSample[i] = (int) temp; temp = stripOffsets[0]; stripOffsets = new long[bitsPerSample.length]; for (int i=0; i<bitsPerSample.length; i++) { stripOffsets[i] = i == 0 ? temp : stripOffsets[i - 1] + stripByteCounts[i]; } // we have two files that reverse the endianness for BitsPerSample, // StripOffsets, and StripByteCounts if (bitsPerSample[0] > 64) { byte[] bps = new byte[2]; byte[] stripOffs = new byte[4]; byte[] byteCounts = new byte[4]; if (littleEndian) { bps[0] = (byte) (bitsPerSample[0] & 0xff); bps[1] = (byte) ((bitsPerSample[0] >>> 8) & 0xff); int ndx = stripOffsets.length - 1; stripOffs[0] = (byte) (stripOffsets[ndx] & 0xff); stripOffs[1] = (byte) ((stripOffsets[ndx] >>> 8) & 0xff); stripOffs[2] = (byte) ((stripOffsets[ndx] >>> 16) & 0xff); stripOffs[3] = (byte) ((stripOffsets[ndx] >>> 24) & 0xff); ndx = stripByteCounts.length - 1; byteCounts[0] = (byte) (stripByteCounts[ndx] & 0xff); byteCounts[1] = (byte) ((stripByteCounts[ndx] >>> 8) & 0xff); byteCounts[2] = (byte) ((stripByteCounts[ndx] >>> 16) & 0xff); byteCounts[3] = (byte) ((stripByteCounts[ndx] >>> 24) & 0xff); } else { bps[1] = (byte) ((bitsPerSample[0] >>> 16) & 0xff); bps[0] = (byte) ((bitsPerSample[0] >>> 24) & 0xff); stripOffs[3] = (byte) (stripOffsets[0] & 0xff); stripOffs[2] = (byte) ((stripOffsets[0] >>> 8) & 0xff); stripOffs[1] = (byte) ((stripOffsets[0] >>> 16) & 0xff); stripOffs[0] = (byte) ((stripOffsets[0] >>> 24) & 0xff); byteCounts[3] = (byte) (stripByteCounts[0] & 0xff); byteCounts[2] = (byte) ((stripByteCounts[0] >>> 8) & 0xff); byteCounts[1] = (byte) ((stripByteCounts[0] >>> 16) & 0xff); byteCounts[0] = (byte) ((stripByteCounts[0] >>> 24) & 0xff); } bitsPerSample[0] = DataTools.bytesToInt(bps, !littleEndian); stripOffsets[0] = DataTools.bytesToInt(stripOffs, !littleEndian); stripByteCounts[0] = DataTools.bytesToInt(byteCounts, !littleEndian); } if (rowsPerStripArray.length == 1 && stripByteCounts[0] != (imageWidth * imageLength * (bitsPerSample[0] / 8)) && compression == UNCOMPRESSED) { for (int i=0; i<stripByteCounts.length; i++) { stripByteCounts[i] = imageWidth * imageLength * (bitsPerSample[i] / 8); stripOffsets[0] = (int) (in.length() - stripByteCounts[0] - 48 * imageWidth); if (i != 0) { stripOffsets[i] = stripOffsets[i - 1] + stripByteCounts[i]; } byte[] row = new byte[(int) imageWidth]; in.seek((int) stripOffsets[i]); in.read(row); boolean isZero = true; for (int j=0; j<row.length; j++) { if (row[j] != 0) { isZero = false; break; } } while (isZero) { stripOffsets[i] -= row.length; in.seek((int) stripOffsets[i]); in.read(row); for (int j=0; j<row.length; j++) { if (row[j] != 0) { isZero = false; stripOffsets[i] -= (stripByteCounts[i] - row.length); break; } } } } } for (int i=0; i<bitsPerSample.length; i++) { // case 1: we're still within bitsPerSample array bounds if (i < bitsPerSample.length) { // remember that the universe collapses when we divide by 0 if (bitsPerSample[i] != 0) { rowsPerStripArray[i] = (long) stripByteCounts[i] / (imageLength * (bitsPerSample[i] / 8)); } else if (bitsPerSample[i] == 0 && i > 0) { rowsPerStripArray[i] = (long) stripByteCounts[i] / (imageLength * (bitsPerSample[i - 1] / 8)); bitsPerSample[i] = bitsPerSample[i - 1]; } else { throw new FormatException("BitsPerSample is 0"); } } // case 2: we're outside bitsPerSample array bounds else if (i >= bitsPerSample.length) { rowsPerStripArray[i] = (long) stripByteCounts[i] / (imageLength * (bitsPerSample[bitsPerSample.length - 1] / 8)); } } samplesPerPixel = stripOffsets.length; } TiffRational xResolution = getIFDRationalValue(ifd, X_RESOLUTION, false); TiffRational yResolution = getIFDRationalValue(ifd, Y_RESOLUTION, false); int planarConfig = getIFDIntValue(ifd, PLANAR_CONFIGURATION, false, 1); int resolutionUnit = getIFDIntValue(ifd, RESOLUTION_UNIT, false, 2); if (xResolution == null || yResolution == null) resolutionUnit = 0; int[] colorMap = getIFDIntArray(ifd, COLOR_MAP, false); int predictor = getIFDIntValue(ifd, PREDICTOR, false, 1); // If the subsequent color maps are empty, use the first IFD's color map if (colorMap == null) colorMap = getIFDIntArray(getFirstIFD(in), COLOR_MAP, false); // use special color map for YCbCr if (photoInterp == Y_CB_CR) { int[] tempColorMap = getIFDIntArray(ifd, Y_CB_CR_COEFFICIENTS, false); int[] refBlackWhite = getIFDIntArray(ifd, REFERENCE_BLACK_WHITE, false); colorMap = new int[tempColorMap.length + refBlackWhite.length]; System.arraycopy(tempColorMap, 0, colorMap, 0, tempColorMap.length); System.arraycopy(refBlackWhite, 0, colorMap, tempColorMap.length, refBlackWhite.length); } if (DEBUG) { StringBuffer sb = new StringBuffer(); sb.append("IFD directory entry values:"); sb.append("\n\tLittleEndian="); sb.append(littleEndian); sb.append("\n\tImageWidth="); sb.append(imageWidth); sb.append("\n\tImageLength="); sb.append(imageLength); sb.append("\n\tBitsPerSample="); sb.append(bitsPerSample[0]); for (int i=1; i<bitsPerSample.length; i++) { sb.append(","); sb.append(bitsPerSample[i]); } sb.append("\n\tSamplesPerPixel="); sb.append(samplesPerPixel); sb.append("\n\tCompression="); sb.append(compression); sb.append("\n\tPhotometricInterpretation="); sb.append(photoInterp); sb.append("\n\tStripOffsets="); sb.append(stripOffsets[0]); for (int i=1; i<stripOffsets.length; i++) { sb.append(","); sb.append(stripOffsets[i]); } sb.append("\n\tRowsPerStrip="); sb.append(rowsPerStripArray[0]); for (int i=1; i<rowsPerStripArray.length; i++) { sb.append(","); sb.append(rowsPerStripArray[i]); } sb.append("\n\tStripByteCounts="); sb.append(stripByteCounts[0]); for (int i=1; i<stripByteCounts.length; i++) { sb.append(","); sb.append(stripByteCounts[i]); } sb.append("\n\tXResolution="); sb.append(xResolution); sb.append("\n\tYResolution="); sb.append(yResolution); sb.append("\n\tPlanarConfiguration="); sb.append(planarConfig); sb.append("\n\tResolutionUnit="); sb.append(resolutionUnit); sb.append("\n\tColorMap="); if (colorMap == null) sb.append("null"); else { sb.append(colorMap[0]); for (int i=1; i<colorMap.length; i++) { sb.append(","); sb.append(colorMap[i]); } } sb.append("\n\tPredictor="); sb.append(predictor); debug(sb.toString()); } for (int i=0; i<bitsPerSample.length; i++) { if (bitsPerSample[i] < 1) { throw new FormatException("Illegal BitsPerSample (" + bitsPerSample[i] + ")"); } // don't support odd numbers of bits (except for 1) else if (bitsPerSample[i] % 2 != 0 && bitsPerSample[i] != 1) { throw new FormatException("Sorry, unsupported BitsPerSample (" + bitsPerSample[i] + ")"); } } if (bitsPerSample.length < samplesPerPixel) { throw new FormatException("BitsPerSample length (" + bitsPerSample.length + ") does not match SamplesPerPixel (" + samplesPerPixel + ")"); } else if (photoInterp == TRANSPARENCY_MASK) { throw new FormatException( "Sorry, Transparency Mask PhotometricInterpretation is not supported"); } else if (photoInterp == Y_CB_CR) { throw new FormatException( "Sorry, YCbCr PhotometricInterpretation is not supported"); } else if (photoInterp == CIE_LAB) { throw new FormatException( "Sorry, CIELAB PhotometricInterpretation is not supported"); } else if (photoInterp != WHITE_IS_ZERO && photoInterp != BLACK_IS_ZERO && photoInterp != RGB && photoInterp != RGB_PALETTE && photoInterp != CMYK && photoInterp != Y_CB_CR && photoInterp != CFA_ARRAY) { throw new FormatException("Unknown PhotometricInterpretation (" + photoInterp + ")"); } long rowsPerStrip = rowsPerStripArray[0]; for (int i=1; i<rowsPerStripArray.length; i++) { if (rowsPerStrip != rowsPerStripArray[i]) { throw new FormatException( "Sorry, non-uniform RowsPerStrip is not supported"); } } long numStrips = (imageLength + rowsPerStrip - 1) / rowsPerStrip; if (isTiled) numStrips = stripOffsets.length; if (planarConfig == 2) numStrips *= samplesPerPixel; if (stripOffsets.length != numStrips) { throw new FormatException("StripOffsets length (" + stripOffsets.length + ") does not match expected " + "number of strips (" + numStrips + ")"); } if (stripByteCounts.length != numStrips) { throw new FormatException("StripByteCounts length (" + stripByteCounts.length + ") does not match expected " + "number of strips (" + numStrips + ")"); } if (imageWidth > Integer.MAX_VALUE || imageLength > Integer.MAX_VALUE || imageWidth * imageLength > Integer.MAX_VALUE) { throw new FormatException("Sorry, ImageWidth x ImageLength > " + Integer.MAX_VALUE + " is not supported (" + imageWidth + " x " + imageLength + ")"); } int numSamples = (int) (imageWidth * imageLength); if (planarConfig != 1 && planarConfig != 2) { throw new FormatException( "Unknown PlanarConfiguration (" + planarConfig + ")"); } // read in image strips if (DEBUG) { debug("reading image data (samplesPerPixel=" + samplesPerPixel + "; numSamples=" + numSamples + ")"); } if (samplesPerPixel == 1 && (photoInterp == RGB_PALETTE || photoInterp == CFA_ARRAY)) { samplesPerPixel = 3; } if (photoInterp == CFA_ARRAY) { int[] tempMap = new int[colorMap.length + 2]; System.arraycopy(colorMap, 0, tempMap, 0, colorMap.length); tempMap[tempMap.length - 2] = (int) imageWidth; tempMap[tempMap.length - 1] = (int) imageLength; colorMap = tempMap; } //if (planarConfig == 2) numSamples *= samplesPerPixel; short[][] samples = new short[samplesPerPixel][numSamples]; byte[] altBytes = new byte[0]; if (bitsPerSample[0] == 16) littleEndian = !littleEndian; int overallOffset = 0; for (int strip=0, row=0; strip<numStrips; strip++, row+=rowsPerStrip) { if (DEBUG) debug("reading image strip #" + strip); long actualRows = (row + rowsPerStrip > imageLength) ? imageLength - row : rowsPerStrip; in.seek((int) stripOffsets[strip]); if (stripByteCounts[strip] > Integer.MAX_VALUE) { throw new FormatException("Sorry, StripByteCounts > " + Integer.MAX_VALUE + " is not supported"); } byte[] bytes = new byte[(int) stripByteCounts[strip]]; in.read(bytes); if (compression != PACK_BITS) { bytes = uncompress(bytes, compression); undifference(bytes, bitsPerSample, imageWidth, planarConfig, predictor); int offset = (int) (imageWidth * row); if (planarConfig == 2) { offset = overallOffset / samplesPerPixel; } unpackBytes(samples, offset, bytes, bitsPerSample, photoInterp, colorMap, littleEndian, maxValue, planarConfig, strip, (int) numStrips); overallOffset += bytes.length / bitsPerSample.length; } else { // concatenate contents of bytes to altBytes byte[] tempPackBits = new byte[altBytes.length]; System.arraycopy(altBytes, 0, tempPackBits, 0, altBytes.length); altBytes = new byte[altBytes.length + bytes.length]; System.arraycopy(tempPackBits, 0, altBytes, 0, tempPackBits.length); System.arraycopy(bytes, 0, altBytes, tempPackBits.length, bytes.length); } } // only do this if the image uses PackBits compression if (altBytes.length != 0) { altBytes = uncompress(altBytes, compression); undifference(altBytes, bitsPerSample, imageWidth, planarConfig, predictor); unpackBytes(samples, (int) imageWidth, altBytes, bitsPerSample, photoInterp, colorMap, littleEndian, maxValue, planarConfig, 0, 1); } // construct field if (DEBUG) debug("constructing image"); // Since the lowest common denominator for all pixel operations is "byte" // we're going to normalize everything to byte. byte[][] byteData = null; if (bitsPerSample[0] == 16) { byteData = new byte[samplesPerPixel][numSamples * 2]; for (int i = 0; i < samplesPerPixel; i++) { for (int j = 0; j < numSamples; j++) { byteData[i][j * 2] = (byte) ((samples[i][j] & 0xFF00) >> 8); byteData[i][j * 2 + 1] = (byte) (samples[i][j] & 0x00FF); } } } else if (bitsPerSample[0] == 32) { byteData = new byte[samplesPerPixel][numSamples * 4]; for (int i=0; i<samplesPerPixel; i++) { for (int j=0; j<numSamples; j++) { byteData[i][j * 4] = (byte) ((samples[i][j] & 0xff000000) >> 24); byteData[i][j * 4 + 1] = (byte) ((samples[i][j] & 0xff0000) >> 16); byteData[i][j * 4 + 2] = (byte) ((samples[i][j] & 0xff00) >> 8); byteData[i][j * 4 + 3] = (byte) (samples[i][j] & 0xff); } } } else { byteData = new byte[samplesPerPixel][numSamples]; for (int i=0; i<samplesPerPixel; i++) { for (int j=0; j<numSamples; j++) { byteData[i][j] = (byte) samples[i][j]; } } } /* if (photoInterp == CFA_ARRAY) { byteData = ImageTools.convolve(byteData, (int) imageWidth, (int) imageLength); } */ return byteData; }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/3dfd59718bd357815b599f69b2fb792dc8c85b62/TiffTools.java/buggy/loci/formats/TiffTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 63, 6362, 65, 1322, 2995, 12, 5582, 14544, 309, 72, 16, 8072, 1862, 1228, 316, 16, 565, 1525, 2552, 2335, 13, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 9394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 63, 6362, 65, 1322, 2995, 12, 5582, 14544, 309, 72, 16, 8072, 1862, 1228, 316, 16, 565, 1525, 2552, 2335, 13, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 261, 9394, ...
if (configurations!=null) {
if (configurations != null) {
public void removeConfiguration(Configuration configuration) { if (configurations!=null) { configurations.remove(configuration); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/89cd11decad19ffa2b802c17af5bee9a564095a0/ConfigurationManager.java/buggy/plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/ui/ConfigurationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 1750, 12, 1750, 1664, 13, 288, 565, 309, 261, 25856, 480, 446, 13, 288, 1377, 10459, 18, 4479, 12, 7025, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1206, 1750, 12, 1750, 1664, 13, 288, 565, 309, 261, 25856, 480, 446, 13, 288, 1377, 10459, 18, 4479, 12, 7025, 1769, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100...
if (!exists(files, txn))
if (!exists(files, txn, flags))
protected void rename(Db files, Db blocks, DbTxn txn, String name) throws IOException { if (!exists(files, txn)) throw new IOException("File does not exist: " + getName()); File newFile = new File(name); if (newFile.exists(files, txn)) newFile.delete(files, blocks, txn); try { files.delete(txn, key, 0); setName(name); files.put(txn, key, data, 0); } catch (DbException e) { throw new IOException(e.getMessage()); } }
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/281ccaa902669ea8e1fe9e2345ecc6537f2ab293/File.java/buggy/sandbox/contributions/db/src/java/org/apache/lucene/store/db/File.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 6472, 12, 4331, 1390, 16, 8408, 4398, 16, 8408, 13789, 7827, 16, 514, 508, 13, 3639, 1216, 1860, 565, 288, 3639, 309, 16051, 1808, 12, 2354, 16, 7827, 16, 2943, 3719, 5411, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6472, 12, 4331, 1390, 16, 8408, 4398, 16, 8408, 13789, 7827, 16, 514, 508, 13, 3639, 1216, 1860, 565, 288, 3639, 309, 16051, 1808, 12, 2354, 16, 7827, 16, 2943, 3719, 5411, 6...
Class[] parameters = method.getParameterTypes(); Object[] args; if ((parameters == null) || (parameters.length == 0)) { args = new Object[0]; } else if (parameters.length == 1) { OMElement omElement = msgContext.getEnvelope().getBody().getFirstElement(); args = new Object[]{omElement}; } else { throw new AxisFault(Messages.getMessage("rawXmlProviderIsLimited")); } OMElement result = (OMElement) method.invoke(obj, args);
OMElement result = (OMElement) method.invoke( obj, new Object[] {msgContext.getEnvelope().getBody().getFirstElement()});
public void invokeBusinessLogic(MessageContext msgContext, MessageContext newmsgContext) throws AxisFault { try { // get the implementation class for the Web Service Object obj = getTheImplementationObject(msgContext); // find the WebService method Class ImplClass = obj.getClass(); // Inject the Message Context if it is asked for DependencyManager.configureBusinessLogicProvider(obj, msgContext.getOperationContext()); AxisOperation opDesc = msgContext.getOperationContext().getAxisOperation(); Method method = findOperation(opDesc, ImplClass); if (method != null) { Class[] parameters = method.getParameterTypes(); Object[] args; if ((parameters == null) || (parameters.length == 0)) { args = new Object[0]; } else if (parameters.length == 1) { OMElement omElement = msgContext.getEnvelope().getBody().getFirstElement(); args = new Object[]{omElement}; } else { throw new AxisFault(Messages.getMessage("rawXmlProviderIsLimited")); } OMElement result = (OMElement) method.invoke(obj, args); SOAPFactory fac = getSOAPFactory(msgContext); SOAPEnvelope envelope = fac.getDefaultEnvelope(); if (result != null) { AxisService service = msgContext.getAxisService(); result.declareNamespace(service.getTargetNamespace(), service.getTargetNamespacePrefix()); envelope.getBody().addChild(result); } newmsgContext.setEnvelope(envelope); } else { throw new AxisFault(Messages.getMessage("methodNotImplemented", opDesc.getName().toString())); } } catch (Exception e) { throw AxisFault.makeFault(e); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/46e3bdebb8a3cdbefa6aeeb43defb9558e972cef/RawXMLINOutMessageReceiver.java/clean/modules/kernel/src/org/apache/axis2/receivers/RawXMLINOutMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4356, 13423, 20556, 12, 1079, 1042, 1234, 1042, 16, 2350, 1042, 394, 3576, 1042, 13, 5411, 1216, 15509, 7083, 288, 3639, 775, 288, 5411, 368, 336, 326, 4471, 667, 364, 326, 299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4356, 13423, 20556, 12, 1079, 1042, 1234, 1042, 16, 2350, 1042, 394, 3576, 1042, 13, 5411, 1216, 15509, 7083, 288, 3639, 775, 288, 5411, 368, 336, 326, 4471, 667, 364, 326, 299...
if (matches(in, " ¦ " + platform + " ¦ " + "PRO"))
if (matches(in, " " + platform + " " + "PRO"))
public boolean loadPluginIfMatches(String uuid, InputStream in) throws Exception { if (matches(in, " ¦ " + platform + " ¦ " + "PRO")) { loadPlugin(uuid); return true; } else return false; }
9764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9764/f95669eca85921622281fb09ca2e38d088eb3a10/PluginLoaderImpl.java/buggy/jadabs/bundles/pluginLoader/src/ch/ethz/jadabs/pluginLoader/PluginLoaderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1262, 3773, 2047, 6869, 12, 780, 3822, 16, 5037, 316, 13, 1216, 1185, 565, 288, 3639, 309, 261, 8436, 12, 267, 16, 315, 225, 315, 397, 4072, 397, 315, 225, 315, 397, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 3773, 2047, 6869, 12, 780, 3822, 16, 5037, 316, 13, 1216, 1185, 565, 288, 3639, 309, 261, 8436, 12, 267, 16, 315, 225, 315, 397, 4072, 397, 315, 225, 315, 397, 315, ...
setRepositoryClassPath();
setRepositoryClassPath(additionalAuxClasspathEntryList);
public void execute() throws java.io.IOException, InterruptedException { // Configure the analysis context analysisContext = new AnalysisContext(bugReporter); analysisContext.setSourcePath(project.getSourceDirList()); // Give the BugReporter a reference to this object, // in case it wants to access information such // as the AnalysisContext bugReporter.setEngine(this); // Create detectors createDetectors(); // Clear the repository of classes clearRepository(); // Get list of files to analyze. // Note that despite the name getJarFileArray(), // they can also be zip files, directories, // and single class files. LinkedList<ArchiveWorkListItem> archiveWorkList = new LinkedList<ArchiveWorkListItem>(); for (Iterator<String> i = project.getJarFileList().iterator(); i.hasNext(); ) { String fileName = i.next(); archiveWorkList.add(new ArchiveWorkListItem(fileName, true)); } // Report how many archives/directories/files will be analyzed, // for progress dialog in GUI progressCallback.reportNumberOfArchives(archiveWorkList.size()); // Keep track of the names of all classes to be analyzed List<String> repositoryClassList = new LinkedList<String>(); // Add all classes in analyzed archives/directories/files // FIXME: collect additional aux classpath entries while (!archiveWorkList.isEmpty()) { ArchiveWorkListItem item = archiveWorkList.removeFirst(); scanArchiveOrDirectory(item, archiveWorkList, repositoryClassList); } // Now that we have scanned all specified archives and directories, // we can set the repository classpath. setRepositoryClassPath(); // Callback for progress dialog: analysis is starting progressCallback.startAnalysis(repositoryClassList.size()); // Examine all classes for bugs. // Don't examine the same class more than once. // (The user might specify two jar files that contain // the same class.) Set<String> examinedClassSet = new HashSet<String>(); for (Iterator<String> i = repositoryClassList.iterator(); i.hasNext();) { String className = i.next(); if (examinedClassSet.add(className)) examineClass(className); } // Callback for progress dialog: analysis finished progressCallback.finishPerClassAnalysis(); // Force any detectors which defer work until all classes have // been seen to do that work. this.reportFinal(); // Flush any queued bug reports bugReporter.finish(); // Flush any queued error reports bugReporter.reportQueuedErrors(); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/ca12b3c570741085b2ffe8740764355fbd5952ff/FindBugs.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 2252, 18, 1594, 18, 14106, 16, 7558, 288, 202, 202, 759, 11758, 326, 6285, 819, 202, 202, 12746, 1042, 273, 394, 16318, 1042, 12, 925, 13289, 1769, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 1435, 1216, 2252, 18, 1594, 18, 14106, 16, 7558, 288, 202, 202, 759, 11758, 326, 6285, 819, 202, 202, 12746, 1042, 273, 394, 16318, 1042, 12, 925, 13289, 1769, 202, ...
try { setSrcKey((String) evalAttr("srcKey", getSrcKeyExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("srcKey", getSrcKeyExpr(), this, pageContext)) != null) setSrcKey(string);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlign((String) evalAttr("align", getAlignExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBorder((String) evalAttr("border", getBorderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHeight((String) evalAttr("height", getHeightExpr(), String.class)); } catch (NullAttributeException ex) { } try { setHspace((String) evalAttr("hspace", getHspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setImageName((String) evalAttr("imageName", getImageNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setIsmap((String) evalAttr("ismap", getIsmapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } // The "lowsrc" attribute is deprecated. This needs to be removed // when the "lowsrc" attribute is finally removed. try { setLowsrc((String) evalAttr("lowsrc", getLowsrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPage((String) evalAttr("page", getPageExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPageKey((String) evalAttr("pageKey", getPageKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamId((String) evalAttr("paramId", getParamIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamName((String) evalAttr("paramName", getParamNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamProperty((String) evalAttr("paramProperty", getParamPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setParamScope((String) evalAttr("paramScope", getParamScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrc((String) evalAttr("src", getSrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrcKey((String) evalAttr("srcKey", getSrcKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setUsemap((String) evalAttr("usemap", getUsemapExpr(), String.class)); } catch (NullAttributeException ex) { } try { setVspace((String) evalAttr("vspace", getVspaceExpr(), String.class)); } catch (NullAttributeException ex) { } try { setWidth((String) evalAttr("width", getWidthExpr(), String.class)); } catch (NullAttributeException ex) { } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELImgTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImgTag.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, 4742, 9334, 4766, 6647, 514, 18, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4742, 9334, 4766, 6647, 514, 18, 1106, ...
createContents(message, SIZING_SELECTION_PANE_HEIGHT);
createContents(message, SIZING_SELECTION_PANE_HEIGHT, SIZING_SELECTION_PANE_WIDTH);
public void createContents(String message) { createContents(message, SIZING_SELECTION_PANE_HEIGHT); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5e95f6ef46e706a5ee51c9d4200eeee48ee157d0/ContainerSelectionGroup.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/ContainerSelectionGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 6323, 12, 780, 883, 13, 288, 3639, 752, 6323, 12, 2150, 16, 5705, 62, 1360, 67, 1090, 15445, 67, 30819, 41, 67, 14595, 16, 5705, 62, 1360, 67, 1090, 15445, 67, 30819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 6323, 12, 780, 883, 13, 288, 3639, 752, 6323, 12, 2150, 16, 5705, 62, 1360, 67, 1090, 15445, 67, 30819, 41, 67, 14595, 16, 5705, 62, 1360, 67, 1090, 15445, 67, 30819, ...
public KeyDecodeException() { super();
public KeyDecodeException(String message) { super(message);
public KeyDecodeException() { super(); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/376a3201495d109906ee4c4b58bc9b0b403e9cb4/KeyDecodeException.java/buggy/src/freenet/keys/KeyDecodeException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1929, 6615, 503, 1435, 288, 202, 202, 9565, 5621, 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, 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, 1929, 6615, 503, 1435, 288, 202, 202, 9565, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public void draw(Graphics g, boolean forSnapShot) { Graphics2D g2 = (Graphics2D) g; FontMetrics fm = g2.getFontMetrics(); g2.rotate(Math.toRadians(-90)); int y = -getHeight() + 5; if(forSnapShot) { // FIXME incredibly bad hack y = -95; } int descent = fm.getDescent(); float x = (float) (getXPixPerUnitAsInt() / 2) + gutter; for(int i = 0; i < nx; i++) { String s = matrix.getName(i); if(s != null) { g2.drawString(s, y, descent + x); x += (float) getXPixPerUnitAsInt(); } } if(leftSelectedSampleIndex >= 0) { g.setColor(Color.yellow); g2.rotate(Math.toRadians(90)); g2.setComposite(SRC_OVER_COMPOSITE); int xstart = xToPixAsInt(leftSelectedSampleIndex); //System.out.println("getXPixPerUnitAsInt " + getXPixPerUnitAsInt() + " gutter " + gutter + " xstart " + xstart); int xend = xToPixAsInt(rightSelectedSampleIndex); g.fillRect(xstart + gutter, 0, xend - xstart, getHeight()); } }
14633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14633/49a0b5c8a59841d34cba6fda1342935f24044535/HCL.java/buggy/src/edu/mit/genome/gp/ui/hclviewer/HCL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 6459, 9446, 12, 29459, 1055, 16, 6494, 1884, 24063, 1555, 352, 15329, 1082, 202, 17558, 22, 40, 75, 22, 28657, 17558, 22, 40, 13, 75, 31, 1082, 202, 5711, 5653, 25089, 33, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 6459, 9446, 12, 29459, 1055, 16, 6494, 1884, 24063, 1555, 352, 15329, 1082, 202, 17558, 22, 40, 75, 22, 28657, 17558, 22, 40, 13, 75, 31, 1082, 202, 5711, 5653, 25089, 33, 75...
if (viewExtent == null) return getPreferredSize();
if (viewSize == null) return getView().getPreferredSize();
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/JViewport.java/clean/core/src/classpath/javax/javax/swing/JViewport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 8893, 1225, 1435, 225, 288, 565, 309, 261, 1945, 17639, 422, 446, 13, 1377, 327, 12822, 4193, 1225, 5621, 565, 469, 1377, 327, 1476, 17639, 31, 225, 289, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 8893, 1225, 1435, 225, 288, 565, 309, 261, 1945, 17639, 422, 446, 13, 1377, 327, 12822, 4193, 1225, 5621, 565, 469, 1377, 327, 1476, 17639, 31, 225, 289, 2, -100, -100, -100,...
else if (points[i].x > max.x) max.x = points[i].x;
else if (points[i].x > max.x) max.x = points[i].x;
public void containAABB(Vector3f[] points) { if (points.length <= 0) { return; } Vector3f min = tempVa.set(points[0]); Vector3f max = tempVb.set(min); for (int i = 1; i < points.length; i++) { if (points[i].x < min.x) min.x = points[i].x; else if (points[i].x > max.x) max.x = points[i].x; if (points[i].y < min.y) min.y = points[i].y; else if (points[i].y > max.y) max.y = points[i].y; if (points[i].z < min.z) min.z = points[i].z; else if (points[i].z > max.z) max.z = points[i].z; } center.set(min.addLocal(max)); center.multLocal(0.5f); origExtent.x = xExtent = max.x - center.x; origExtent.y = yExtent = max.y - center.y; origExtent.z = zExtent = max.z - center.z; origCenter.set(center); }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/6aaba14bb39fd6af9aea6f599180d9ac7dbd923d/BoundingBox.java/buggy/src/com/jme/bounding/BoundingBox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 912, 37, 2090, 38, 12, 5018, 23, 74, 8526, 3143, 13, 288, 3639, 309, 261, 4139, 18, 2469, 1648, 374, 13, 288, 327, 31, 289, 3639, 5589, 23, 74, 1131, 273, 1906, 21557, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 912, 37, 2090, 38, 12, 5018, 23, 74, 8526, 3143, 13, 288, 3639, 309, 261, 4139, 18, 2469, 1648, 374, 13, 288, 327, 31, 289, 3639, 5589, 23, 74, 1131, 273, 1906, 21557, 18, ...
final String name = getName(); final int index = name.indexOf(':'); if(index >= 0){ return name.substring(0, index); } return "";
return XmlUtil.findPrefixByQualifiedName(getName());
public String getNamespacePrefix() { final String name = getName(); final int index = name.indexOf(':'); if(index >= 0){ return name.substring(0, index); } return ""; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/57bf45ba2ae237e0dcf4a0aa310bea4edcc197bc/XmlTagImpl.java/clean/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 11153, 2244, 1435, 288, 565, 727, 514, 508, 273, 1723, 5621, 565, 727, 509, 770, 273, 508, 18, 31806, 2668, 2497, 1769, 565, 309, 12, 1615, 1545, 374, 15329, 1377, 327, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 11153, 2244, 1435, 288, 565, 727, 514, 508, 273, 1723, 5621, 565, 727, 509, 770, 273, 508, 18, 31806, 2668, 2497, 1769, 565, 309, 12, 1615, 1545, 374, 15329, 1377, 327, 508, ...
int x= minLocation.x; int y= minLocation.y; int width= maxLocation.x - minLocation.x - 1; int height= gc.getFontMetrics().getHeight() - 1;
int x1= minLocation.x; int x2= minLocation.x + maxLocation.x - minLocation.x - 1; int y= minLocation.y + text.getLineHeight() - 1;
public void paintControl(PaintEvent event) { GC gc= event.gc; IRegion region= fViewer.getVisibleRegion(); int offset= fFramePosition.getOffset() - region.getOffset(); int length= fFramePosition.getLength(); StyledText text= fViewer.getTextWidget(); Point minLocation= text.getLocationAtOffset(offset); Point maxLocation= text.getLocationAtOffset(offset + length); int x= minLocation.x; int y= minLocation.y; int width= maxLocation.x - minLocation.x - 1; int height= gc.getFontMetrics().getHeight() - 1; gc.setForeground(fFrameColor); gc.drawLine(x, y + height, x + width, y + height); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/ee1b06550f5ba973b05758e4f612d49ccfbbafd9/LinkedPositionUI.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedPositionUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 3367, 12, 12699, 1133, 871, 13, 288, 1082, 202, 15396, 8859, 33, 871, 18, 13241, 31, 202, 202, 45, 5165, 3020, 33, 284, 18415, 18, 588, 6207, 5165, 5621, 9506, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 3367, 12, 12699, 1133, 871, 13, 288, 1082, 202, 15396, 8859, 33, 871, 18, 13241, 31, 202, 202, 45, 5165, 3020, 33, 284, 18415, 18, 588, 6207, 5165, 5621, 9506, 202...
localeStr = goldFileName.substring(goldFileName.lastIndexOf(File.separatorChar)+1,goldFileName.indexOf('.')); locale = new Locale(localeStr.substring(0,localeStr.indexOf('_')),localeStr.substring(localeStr.indexOf('_')+1,localeStr.length()));
localeStr = goldFileName.substring(goldFileName.lastIndexOf(File.separatorChar)+1,goldFileName.indexOf('.')); if(localeStr.indexOf('_')>-1){ locale = new Locale(localeStr.substring(0,localeStr.indexOf('_')),localeStr.substring(localeStr.indexOf('_')+1,localeStr.length())); }else{ locale = new Locale(localeStr); }
private void processArgs(String[] args){ short options = identifyOptions(args); if ((args.length < 2) || ((options & OPT_UNKNOWN) != 0)) { printUsage(); return; } boolean warning[] = new boolean[1]; warning[0] = false; Enumeration enum = optionTable.keys(); try{ resultDocument = parse(sourceFolder+File.separator+"ResultXML.xml"); localeStr = goldFileName.substring(goldFileName.lastIndexOf(File.separatorChar)+1,goldFileName.indexOf('.')); locale = new Locale(localeStr.substring(0,localeStr.indexOf('_')),localeStr.substring(localeStr.indexOf('_')+1,localeStr.length())); OutputStreamWriter os1 = new OutputStreamWriter(new FileOutputStream(destFolder+File.separator+locale+".xml"),encoding); OutputStreamWriter os2 = new OutputStreamWriter(new FileOutputStream(destFolder+File.separator+locale+".html"),encoding); for(;enum.hasMoreElements();){ String key = (String)enum.nextElement(); String fileName = (String) optionTable.get(key); compare(goldFileName,goldKey, fileName,key,out1); } Iterator iter =doesNotExist.iterator(); while(iter.hasNext()){ String key = (String)iter.next(); NodeList list = resultDocument.getElementsByTagName(key); addNodeValue(list,key,"S.N.A",null); } notAvailable.add("solaris"); notAvailable.add("apple"); notAvailable.add("other"); notAvailable.add("open_office"); iter =notAvailable.iterator(); while(iter.hasNext()){ String key = (String)iter.next(); NodeList list = resultDocument.getElementsByTagName(key); addNodeValue(list,key,"S.N.A",null); } PrintWriter writer1 = new PrintWriter(os1); PrintWriter writer2 = new PrintWriter(os2); print(writer1,resultDocument); if(out1){ printHTML_1(writer2); }else{ printHTML(writer2); } }catch(Exception e){
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/c7fdfbd302535d29433bfcd03df79d5381f383c1/XMLComparator.java/buggy/icu4j/src/com/ibm/icu/dev/tool/xmlcomparator/XMLComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 2615, 12, 780, 8526, 833, 15329, 3639, 3025, 702, 273, 9786, 1320, 12, 1968, 1769, 3639, 309, 14015, 1968, 18, 2469, 411, 576, 13, 747, 14015, 2116, 473, 16456, 67, 14737...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 2615, 12, 780, 8526, 833, 15329, 3639, 3025, 702, 273, 9786, 1320, 12, 1968, 1769, 3639, 309, 14015, 1968, 18, 2469, 411, 576, 13, 747, 14015, 2116, 473, 16456, 67, 14737...
activityList.addChild("li", "Total Output:\u00a0" + SizeUtil.formatSize(total[0]) + "\u00a0(" + SizeUtil.formatSize(total_output_rate) + "ps)");
long totalPayload = node.getTotalPayloadSent(); activityList.addChild("li", "Total Output:\u00a0" + SizeUtil.formatSize(total[0]) + "\u00a0(" + SizeUtil.formatSize(total_output_rate) + "ps) ("+(totalPayload*100 / total[0])+"% payload)");
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.fref")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.isAdvancedDarknetEnabled(); /* gather connection statistics */ PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses(); Arrays.sort(peerNodeStatuses, new Comparator() { public int compare(Object first, Object second) { PeerNodeStatus firstNode = (PeerNodeStatus) first; PeerNodeStatus secondNode = (PeerNodeStatus) second; int statusDifference = firstNode.getStatusValue() - secondNode.getStatusValue(); if (statusDifference != 0) { return statusDifference; } return firstNode.getName().compareToIgnoreCase(secondNode.getName()); } }); int numberOfConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew + "/" + numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = (numberOfNotConnected + numberOfSimpleConnected)>0 ? String.valueOf(numberOfSimpleConnected) : ""; } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(core.alerts.createSummary()); if(peerNodeStatuses.length>0){ /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = node.getNetworkSizeEstimate(0); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); long nodeUptimeSeconds = ( now - node.startupTime ) / 1000; String nodeUptimeString = timeIntervalToString(nodeUptimeSeconds); // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimate:\u00a0" + networkSizeEstimate + "\u00a0nodes"); overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "missRoutingDistance:\u00a0" + fix4.format(missRoutingDistance)); overviewList.addChild("li", "backedoffPercent:\u00a0" + fix1.format(backedoffPercent)); overviewList.addChild("li", "pInstantReject:\u00a0" + fix1.format(node.pRejectIncomingInstantly())); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } long[] total = IOStatisticCollector.getTotalIO(); long total_output_rate = (total[0]) / nodeUptimeSeconds; long total_input_rate = (total[1]) / nodeUptimeSeconds; activityList.addChild("li", "Total Output:\u00a0" + SizeUtil.formatSize(total[0]) + "\u00a0(" + SizeUtil.formatSize(total_output_rate) + "ps)"); activityList.addChild("li", "Total Input:\u00a0" + SizeUtil.formatSize(total[1]) + "\u00a0(" + SizeUtil.formatSize(total_input_rate) + "ps)"); long[] rate = node.getNodeIOStats(); long delta = (rate[5] - rate[2]) / 1000; long output_rate = (rate[3] - rate[0]) / delta; long input_rate = (rate[4] - rate[1]) / delta; activityList.addChild("li", "Output Rate:\u00a0" + SizeUtil.formatSize(output_rate) + "ps"); activityList.addChild("li", "Input Rate:\u00a0" + SizeUtil.formatSize(input_rate) + "ps"); } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { HTMLNode peerStatsConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_connected", "Connected: We're successfully connected to these nodes", "border-bottom: 1px dotted; cursor: help;" }, "Connected"); peerStatsConnectedListItem.addChild("span", ":\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { HTMLNode peerStatsRoutingBackedOffListItem = peerStatsList.addChild("li").addChild("span"); peerStatsRoutingBackedOffListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_backedoff", (advancedEnabled ? "Connected but backed off: These peers are connected but we're backed off of them" : "Busy: These peers are connected but they're busy") + ", so the node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, advancedEnabled ? "Backed off" : "Busy"); peerStatsRoutingBackedOffListItem.addChild("span", ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { HTMLNode peerStatsTooNewListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooNewListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_new", "Connected but too new: These peers' minimum mandatory build is higher than this node's build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too New"); peerStatsTooNewListItem.addChild("span", ":\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { HTMLNode peerStatsTooOldListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooOldListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_old", "Connected but too old: This node's minimum mandatory build is higher than these peers' build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too Old"); peerStatsTooOldListItem.addChild("span", ":\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { HTMLNode peerStatsDisconnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisconnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disconnected", "Not connected: No connection so far but this node is continuously trying to connect", "border-bottom: 1px dotted; cursor: help;" }, "Disconnected"); peerStatsDisconnectedListItem.addChild("span", ":\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { HTMLNode peerStatsNeverConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsNeverConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_never_connected", "Never Connected: The node has never connected with these peers", "border-bottom: 1px dotted; cursor: help;" }, "Never Connected"); peerStatsNeverConnectedListItem.addChild("span", ":\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { HTMLNode peerStatsDisabledListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisabledListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disabled", "Not connected and disabled: because the user has instructed to not connect to peers ", "border-bottom: 1px dotted; cursor: help;" }, "Disabled"); peerStatsDisabledListItem.addChild("span", ":\u00a0" + numberOfDisabled); } if (numberOfBursting > 0) { HTMLNode peerStatsBurstingListItem = peerStatsList.addChild("li").addChild("span"); peerStatsBurstingListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_bursting", "Not connected and bursting: this node is, for a short period, trying to connect to these peers because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Bursting"); peerStatsBurstingListItem.addChild("span", ":\u00a0" + numberOfBursting); } if (numberOfListening > 0) { HTMLNode peerStatsListeningListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListeningListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listening", "Not connected but listening: this node won't try to connect to these peers very often because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listening"); peerStatsListeningListItem.addChild("span", ":\u00a0" + numberOfListening); } if (numberOfListenOnly > 0) { HTMLNode peerStatsListenOnlyListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListenOnlyListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listen_only", "Not connected and listen only: this node won't try to connect to these peers at all because the user has set ListenOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listen Only"); peerStatsListenOnlyListItem.addChild("span", ":\u00a0" + numberOfListenOnly); } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodeStatuses.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = peerTableInfoboxContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th", "Status"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "The node's network address as IP:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Other node busy? Display: Percentage of time the node is overloaded, Current wait time remaining (0=not overloaded)/total/last overload reason", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Probability of the node rejecting a request due to overload or causing a timeout.", "border-bottom: 1px dotted; cursor: help;" }, "Overload Probability"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node was connected or last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "A private note concerning this peer", "border-bottom: 1px dotted; cursor: help;" }, "Private Note"); if(advancedEnabled) { peerTableHeaderRow.addChild("th", "Total\u00a0Traffic\u00a0(in/out)"); } for (int peerIndex = 0, peerCount = peerNodeStatuses.length; peerIndex < peerCount; peerIndex++) { PeerNodeStatus peerNodeStatus = peerNodeStatuses[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNodeStatus.hashCode() }); // status column String statusString = peerNodeStatus.getStatusName(); if (!advancedEnabled && (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNodeStatus.getStatusCSSName(), statusString + (peerNodeStatus.isFetchingARK() ? "*" : "")); // name column peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNodeStatus.hashCode(), peerNodeStatus.getName()); // address column if (advancedEnabled) { String pingTime = ""; if (peerNodeStatus.isConnected()) { pingTime = " (" + (int) peerNodeStatus.getAveragePingTime() + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ":" + peerNodeStatus.getPeerPort()) : ("(unknown address)")) + pingTime); } // version column if (peerNodeStatus.getStatusValue() != Node.PEER_NODE_STATUS_NEVER_CONNECTED && (peerNodeStatus.isPublicInvalidVersion() || peerNodeStatus.isPublicReverseInvalidVersion())) { // Don't draw attention to a version problem if NEVER CONNECTED peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_version_problem", peerNodeStatus.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", peerNodeStatus.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNodeStatus.getLocation())); } if (advancedEnabled) { // backoff column HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNodeStatus.getBackedOffPercent())); int backoff = (int) (Math.max(peerNodeStatus.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", " " + String.valueOf(backoff / 1000) + "/" + String.valueOf(peerNodeStatus.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNodeStatus.getLastBackoffReason() == null) ? "" : ("/" + (peerNodeStatus.getLastBackoffReason()))); // overload probability column HTMLNode pRejectCell = peerRow.addChild("td", "class", "peer-backoff"); // FIXME pRejectCell.addChild("#", fix1.format(peerNodeStatus.getPReject())); } // idle column long idle = peerNodeStatus.getTimeLastRoutable(); if (peerNodeStatus.isRoutable()) { idle = peerNodeStatus.getTimeLastConnectionCompleted(); } else if (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNodeStatus.getPeerAddedTime(); } if(!peerNodeStatus.isConnected() && (now - idle) > (2 * 7 * 24 * 60 * 60 * (long) 1000)) { // 2 weeks peerRow.addChild("td", "class", "peer-idle").addChild("span", "class", "peer_idle_old", idleToString(now, idle)); } else { peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); } // private darknet node comment note column peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", peerNodeStatus.getPrivateDarknetCommentNote() }); if(advancedEnabled) peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", SizeUtil.formatSize(peerNodeStatus.getTotalInputBytes())+"/"+SizeUtil.formatSize(peerNodeStatus.getTotalOutputBytes())); if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 8 : 4)); // = total table row width - 2 from above colspan HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNodeStatus.getLocalMessagesReceived().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNodeStatus.getLocalMessagesReceived().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNodeStatus.getLocalMessagesSent().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNodeStatus.getLocalMessagesSent().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } HTMLNode actionSelect = peerForm.addChild("select", "name", "action"); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "send_n2ntm", "Send N2NTM to selected peers"); actionSelect.addChild("option", "value", "update_notes", "Update changed private notes"); if(advancedEnabled) { actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); } actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "submit", "Go" }); } // END PEER TABLE } // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = peerAdditionContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter a node description: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name", "size", "maxlength", "value" }, new String[] { "peerPrivateNote", "text", "peerPrivateNote", "16", "250", "" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.fref", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/5f3170a7168afaf60449afb38c02919fe2a3eafd/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, ...
parent.setLayout(new GridLayout());
public void createPartControl(Composite parent) { parent.setLayout(new GridLayout()); super.createPartControl(parent); final Button dirtyToggle = new Button(parent, SWT.CHECK); dirtyToggle.setText("Dirty"); dirtyToggle.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setDirty(dirtyToggle.getSelection()); } }); dirtyToggle.setSelection(isDirty()); final Button saveNeededToggle = new Button(parent, SWT.CHECK); saveNeededToggle.setText("Save on close"); saveNeededToggle.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setSaveNeeded(saveNeededToggle.getSelection()); } }); saveNeededToggle.setSelection(saveNeeded); final Button saveAsToggle = new Button(parent, SWT.CHECK); saveAsToggle.setText("Save as allowed"); saveAsToggle.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { setSaveAsAllowed(saveAsToggle.getSelection()); } }); saveAsToggle.setSelection(saveAsAllowed); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/54532dbf350a8597a32c3325d699ca741a40ef83/SaveableMockViewPart.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/SaveableMockViewPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 8227, 2240, 18, 2640, 1988, 3367, 12, 2938, 1769, 3639, 727, 12569, 9603, 17986, 273, 394, 12569, 12, 2938, 16, 348, 8588, 18, 10687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 1988, 3367, 12, 9400, 982, 13, 288, 8227, 2240, 18, 2640, 1988, 3367, 12, 2938, 1769, 3639, 727, 12569, 9603, 17986, 273, 394, 12569, 12, 2938, 16, 348, 8588, 18, 10687, ...
for (int i = 0; i < row.size(); i++) { GutterIconRenderer r = row.get(i);
for (GutterIconRenderer r : row) {
private void processIconsRow(int line, ArrayList<GutterIconRenderer> row, LineGutterIconRendererProcessor processor) { int middleCount = 0; int middleSize = 0; int y = myEditor.logicalPositionToXY(new LogicalPosition(line, 0)).y; int x = getLineMarkerAreaOffset() + 1; for (int i = 0; i < row.size(); i++) { GutterIconRenderer r = row.get(i); Icon icon = r.getIcon(); if (r.getAlignment() == GutterIconRenderer.Alignment.LEFT) { processor.process(x, y + getTextAlignmentShift(icon), r); x += icon.getIconWidth() + GAP_BETWEEN_ICONS; } else { if (r.getAlignment() == GutterIconRenderer.Alignment.CENTER) { middleCount++; middleSize += icon.getIconWidth() + GAP_BETWEEN_ICONS; } } } int leftSize = x - getLineMarkerAreaOffset(); x = getLineMarkerAreaOffset() + myIconsAreaWidth; for (int i = 0; i < row.size(); i++) { GutterIconRenderer r = row.get(i); if (r.getAlignment() == GutterIconRenderer.Alignment.RIGHT) { Icon icon = r.getIcon(); x -= icon.getIconWidth(); processor.process(x, y + getTextAlignmentShift(icon), r); x -= GAP_BETWEEN_ICONS; } } int rightSize = myIconsAreaWidth + getLineMarkerAreaOffset() - x; if (middleCount > 0) { middleSize -= GAP_BETWEEN_ICONS; x = getLineMarkerAreaOffset() + leftSize + (myIconsAreaWidth - leftSize - rightSize - middleSize) / 2; for (int i = 0; i < row.size(); i++) { GutterIconRenderer r = row.get(i); if (r.getAlignment() == GutterIconRenderer.Alignment.CENTER) { Icon icon = r.getIcon(); processor.process(x, y + getTextAlignmentShift(icon), r); x += icon.getIconWidth() + GAP_BETWEEN_ICONS; } } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/6e2b1d29a6b918c9dd17b0a9bc5aff67b02fff98/EditorGutterComponentImpl.java/clean/source/com/intellij/openapi/editor/impl/EditorGutterComponentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1207, 27510, 1999, 12, 474, 980, 16, 2407, 32, 43, 18220, 5554, 6747, 34, 1027, 16, 5377, 43, 18220, 5554, 6747, 5164, 6659, 13, 288, 565, 509, 7689, 1380, 273, 374, 31, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 27510, 1999, 12, 474, 980, 16, 2407, 32, 43, 18220, 5554, 6747, 34, 1027, 16, 5377, 43, 18220, 5554, 6747, 5164, 6659, 13, 288, 565, 509, 7689, 1380, 273, 374, 31, 565,...
public void actionPerformed(ActionEvent e) { if (yesRadio.isSelected()) parent.unlockNextButton(); else parent.lockNextButton(); }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/ddfcd50a0f2d10b4142d6e577c9b63ec84068514/LicencePanel.java/clean/src/lib/com/izforge/izpack/panels/LicencePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1128, 13889, 12, 1803, 1133, 73, 15329, 430, 12, 9707, 19984, 18, 291, 7416, 10756, 2938, 18, 26226, 2134, 3616, 5621, 12107, 2938, 18, 739, 2134, 3616, 5621, 97, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1128, 13889, 12, 1803, 1133, 73, 15329, 430, 12, 9707, 19984, 18, 291, 7416, 10756, 2938, 18, 26226, 2134, 3616, 5621, 12107, 2938, 18, 739, 2134, 3616, 5621, 97, 2, -100, -100, -1...
glyphChildrenOutline = glyphChildrenNode.getOutline(null);
glyphChildrenOutline = glyphChildrenNode.getOutline();
public Shape getOutline() { if (outline == null) { AffineTransform tr = AffineTransform.getTranslateInstance(position.getX(), position.getY()); if (transform != null) { tr.concatenate(transform); } Shape glyphChildrenOutline = null; if (glyphChildrenNode != null) { glyphChildrenOutline = glyphChildrenNode.getOutline(null); } GeneralPath glyphOutline = null; if (dShape != null && glyphChildrenOutline != null) { glyphOutline = new GeneralPath(dShape); glyphOutline.append(glyphChildrenOutline, false); } else if (dShape != null && glyphChildrenOutline == null) { glyphOutline = new GeneralPath(dShape); } else if (dShape == null && glyphChildrenOutline != null) { glyphOutline = new GeneralPath(glyphChildrenOutline); } else { // must be a whitespace glyph, return an empty shape glyphOutline = new GeneralPath(); } outline = tr.createTransformedShape(glyphOutline); } return outline; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4c1a37c6e3e260eb88efd61d61285ad704f7c64a/Glyph.java/buggy/sources/org/apache/batik/gvt/font/Glyph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12383, 336, 21805, 1435, 288, 3639, 309, 261, 25134, 422, 446, 13, 288, 5411, 23906, 558, 4059, 433, 273, 23906, 558, 4059, 18, 588, 12818, 1442, 12, 3276, 18, 588, 60, 9334, 1754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12383, 336, 21805, 1435, 288, 3639, 309, 261, 25134, 422, 446, 13, 288, 5411, 23906, 558, 4059, 433, 273, 23906, 558, 4059, 18, 588, 12818, 1442, 12, 3276, 18, 588, 60, 9334, 1754, ...
public boolean inDistributionList(Account acct, String zimbraId) throws ServiceException {
public synchronized boolean inDistributionList(Account acct, String zimbraId) throws ServiceException {
public boolean inDistributionList(Account acct, String zimbraId) throws ServiceException { throw OfflineServiceException.UNSUPPORTED("inDistributionList"); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/f7887fe038d09a2917c4312e46e0d727013cf619/OfflineProvisioning.java/clean/ZimbraOffline/src/java/com/zimbra/cs/account/offline/OfflineProvisioning.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 316, 9003, 682, 12, 3032, 20774, 16, 514, 998, 381, 15397, 548, 13, 1216, 16489, 288, 3639, 604, 29708, 15133, 18, 2124, 21134, 2932, 267, 9003, 682, 8863, 565, 289, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 1250, 316, 9003, 682, 12, 3032, 20774, 16, 514, 998, 381, 15397, 548, 13, 1216, 16489, 288, 3639, 604, 29708, 15133, 18, 2124, 21134, 2932, 267, 9003, 682, 8863, 565, 289, 2, ...
return UNCHANGED;
return DefUseEffect.UNCHANGED;
private static byte intAnd(OPT_Instruction s) { if (CF_INT) { canonicalizeCommutativeOperator(s); OPT_Operand op1 = Binary.getVal1(s); OPT_Operand op2 = Binary.getVal2(s); if (op1.similar(op2)) { // THE SAME OPERAND: x & x == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return op1.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 & val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == 0) { // x & 0 == 0 Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(0)); return MOVE_FOLDED; } if (val2 == -1) { // x & -1 == x & 0xffffffff == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/eb4369b6f8fdd0cd15c56bc3cbfa8673171db226/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1160, 509, 1876, 12, 15620, 67, 11983, 272, 13, 288, 282, 309, 261, 8955, 67, 3217, 13, 288, 1377, 25839, 799, 10735, 1535, 5592, 12, 87, 1769, 1377, 16456, 67, 10265, 1061, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1160, 509, 1876, 12, 15620, 67, 11983, 272, 13, 288, 282, 309, 261, 8955, 67, 3217, 13, 288, 1377, 25839, 799, 10735, 1535, 5592, 12, 87, 1769, 1377, 16456, 67, 10265, 1061, ...
} else if (MasterPageHandle.TYPE_PROP.equals(property)) {
} else if ( MasterPageHandle.TYPE_PROP.equals( property ) ) {
public static IChoiceSet getDEChoiceSet(String property) { String unitKey = DesignChoiceConstants.CHOICE_UNITS; if (AttributeConstant.BACKGROUND_COLOR.equals(property)) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if (AttributeConstant.FONT_COLOR.equals(property)) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if (AttributeConstant.FONT_SIZE.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FONT_SIZE; } else if (AttributeConstant.FONT_FAMILY.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FONT_FAMILY; } else if (AttributeConstant.TEXT_FORMAT.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_TEXT_CONTENT_TYPE; } else if (AttributeConstant.BORDER_STYLE.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_LINE_STYLE; } else if (AttributeConstant.BORDER_WIDTH.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_LINE_WIDTH; } else if (SortKey.DIRECTION_MEMBER.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_SORT_DIRECTION; } else if (FilterCondition.OPERATOR_MEMBER.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_FILTER_OPERATOR; } else if (StyleHandle.VERTICAL_ALIGN_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_VERTICAL_ALIGN; } else if (StyleHandle.TEXT_ALIGN_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_TEXT_ALIGN; } else if (MasterPageHandle.ORIENTATION_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_ORIENTATION; } else if (MasterPageHandle.TYPE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_SIZE; } else if (GroupHandle.INTERVAL_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_INTERVAL; } else if (StyleHandle.PAGE_BREAK_BEFORE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if (StyleHandle.PAGE_BREAK_AFTER_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if (StyleHandle.PAGE_BREAK_INSIDE_PROP.equals(property)) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_INSIDE; } return DesignEngine.getMetaDataDictionary().getChoiceSet(unitKey); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7ca10c49a247dfe395b2e0483af9946ea07fe89b/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 10538, 694, 336, 1639, 10538, 694, 12, 780, 1272, 13, 288, 202, 202, 780, 2836, 653, 273, 29703, 10538, 2918, 18, 22213, 11774, 67, 24325, 31, 202, 202, 430, 261, 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, 225, 202, 482, 760, 467, 10538, 694, 336, 1639, 10538, 694, 12, 780, 1272, 13, 288, 202, 202, 780, 2836, 653, 273, 29703, 10538, 2918, 18, 22213, 11774, 67, 24325, 31, 202, 202, 430, 261, 14...
file = new File(logDir, TEST_STATUS_FILENAME); prepareFile(file, TEST_STATUS_PLAIN);
file = new File(logDir, STATUS_FILENAME); prepareFile(file, PLAIN_TEXT);
protected void setUp() throws Exception { helper = new StatusHelper(); // make base log dir logDir = new File("testresults/"); if (!logDir.exists()) { assertTrue("Failed to create test result dir", logDir.mkdir()); files.addFile(logDir); } // make multi project log dir File projectLogDir = new File(logDir, TEST_PROJECT_NAME + "/"); if (!projectLogDir.exists()) { assertTrue("Failed to create project log dir", projectLogDir.mkdir()); files.addFile(logDir); } File file = new File(logDir, "log20040102030405.xml"); prepareFile(file, LOG_CONTENTS); // for single project file = new File(logDir, TEST_STATUS_FILENAME); prepareFile(file, TEST_STATUS_PLAIN); // for multi project file = new File(projectLogDir, TEST_STATUS_FILENAME); prepareFile(file, TEST_STATUS_PLAIN); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/5d557692b99319d2127c6bae497744842b621601/StatusHelperTest.java/buggy/reporting/jsp/test/net/sourceforge/cruisecontrol/StatusHelperTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 4222, 273, 394, 2685, 2276, 5621, 3639, 368, 1221, 1026, 613, 1577, 3639, 31101, 273, 394, 1387, 2932, 3813, 4717, 4898, 1769, 3639, 309, 1605...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 1216, 1185, 288, 3639, 4222, 273, 394, 2685, 2276, 5621, 3639, 368, 1221, 1026, 613, 1577, 3639, 31101, 273, 394, 1387, 2932, 3813, 4717, 4898, 1769, 3639, 309, 1605...
jj_la1_0 = new int[] {0x60,0x80,0x80,0x1e0,0x0,0x100,0x1e0,0x0,0x100,0x1e0,0x0,0x0,0x0,0x100,0x7000,0xf8c00,0x100000,0xfe00000,0x30000000,0x0,0x3ffffc00,0x3ffffd00,0x3ffffde0,0x1,0x1,};
jj_la1_0 = new int[] {0x60,0x80,0x80,0x1e0,0x0,0x100,0x1e0,0x0,0x100,0x1e0,0x0,0x0,0x0,0x100,0x7000,0xf8c00,0x100000,0xfe00000,0x30000000,0x0,0x3ffffc00,0x3ffffd00,0x0,0x0,0x3ffffde0,0x1,0x1,};
private static void jj_la1_0() { jj_la1_0 = new int[] {0x60,0x80,0x80,0x1e0,0x0,0x100,0x1e0,0x0,0x100,0x1e0,0x0,0x0,0x0,0x100,0x7000,0xf8c00,0x100000,0xfe00000,0x30000000,0x0,0x3ffffc00,0x3ffffd00,0x3ffffde0,0x1,0x1,}; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/601b3f248542d14ed30dbff00c82237b24b58ac4/ZimbraQueryParser.java/clean/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 918, 10684, 67, 11821, 21, 67, 20, 1435, 288, 1377, 10684, 67, 11821, 21, 67, 20, 273, 394, 509, 8526, 288, 20, 92, 4848, 16, 20, 92, 3672, 16, 20, 92, 3672, 16, 20, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 918, 10684, 67, 11821, 21, 67, 20, 1435, 288, 1377, 10684, 67, 11821, 21, 67, 20, 273, 394, 509, 8526, 288, 20, 92, 4848, 16, 20, 92, 3672, 16, 20, 92, 3672, 16, 20, 92, ...
public boolean press(List potentialKeyStrokes, Event event) throws CommandException { // TODO remove event parameter once key-modified actions are removed if (DEBUG && DEBUG_VERBOSE) { System.out .println("KEYS >>> WorkbenchKeyboard.press(potentialKeyStrokes = " //$NON-NLS-1$ + potentialKeyStrokes + ")"); //$NON-NLS-1$ } /* * TODO Kludge. A partial workaround for Bug 56231. This should be * removed once SWT fixes Bug 56231 such that activation works properly * on all platforms. */ if ("gtk".equals(SWT.getPlatform())) { //$NON-NLS-1$ final Widget widget = event.widget; final Shell shell; if ((widget instanceof Control) && (!widget.isDisposed())) { shell = ((Control) widget).getShell(); } else { shell = Display.getCurrent().getActiveShell(); } ((WorkbenchCommandSupport) workbench.getCommandSupport()) .processHandlerSubmissions(false, shell); ((WorkbenchContextSupport) workbench.getContextSupport()) .processEnabledSubmissions(false, shell); } KeySequence sequenceBeforeKeyStroke = state.getCurrentSequence(); for (Iterator iterator = potentialKeyStrokes.iterator(); iterator .hasNext();) { KeySequence sequenceAfterKeyStroke = KeySequence.getInstance( sequenceBeforeKeyStroke, (KeyStroke) iterator.next()); if (isPartialMatch(sequenceAfterKeyStroke)) { incrementState(sequenceAfterKeyStroke); return true; } else if (isPerfectMatch(sequenceAfterKeyStroke)) { String commandId = getPerfectMatch(sequenceAfterKeyStroke); return (executeCommand(commandId) || !sequenceBeforeKeyStroke .isEmpty()); } else if ((keyAssistDialog != null) && ((event.keyCode == SWT.ARROW_DOWN) || (event.keyCode == SWT.ARROW_UP) || (event.keyCode == SWT.ARROW_LEFT) || (event.keyCode == SWT.ARROW_RIGHT) || (event.keyCode == SWT.CR) || (event.keyCode == SWT.PAGE_UP) || (event.keyCode == SWT.PAGE_DOWN))) { // We don't want to swallow keyboard navigation keys. return false; } } resetState(true); return false; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/WorkbenchKeyboard.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/WorkbenchKeyboard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6494, 1028, 12, 682, 26451, 653, 510, 3250, 281, 16, 1133, 2575, 13, 1082, 202, 15069, 2189, 503, 95, 202, 202, 759, 6241, 4479, 2575, 6775, 8243, 856, 17, 7342, 4905, 14500, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6494, 1028, 12, 682, 26451, 653, 510, 3250, 281, 16, 1133, 2575, 13, 1082, 202, 15069, 2189, 503, 95, 202, 202, 759, 6241, 4479, 2575, 6775, 8243, 856, 17, 7342, 4905, 14500, ...
clazz=getTheClass();
clazz=theClass;
public void setAttribute(final Object object, final String attribute, final Object newValue) { PrivilegedActionException firstException = null; final Class clazz; if (object instanceof Class) { clazz=(Class) object; } else { clazz=getTheClass(); } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws NoSuchFieldException, IllegalAccessException { final Field field = clazz.getDeclaredField(attribute); field.setAccessible(true); field.set(object,newValue); return null; } }); return; } catch (final PrivilegedActionException pae) { firstException = pae; } try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws NoSuchFieldException, IllegalAccessException { final Field field = clazz.getField(attribute); field.setAccessible(true); field.set(object, newValue); return null; } }); return; } catch (final PrivilegedActionException pae) { // prefere the first exception. } if (firstException.getException() instanceof NoSuchFieldException) { throw new MissingFieldException(attribute, getTheClass()); } else { throw new RuntimeException(firstException.getException()); } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5744fc59e687317866084c58af833d5c48e8f574/MetaClassImpl.java/clean/src/main/groovy/lang/MetaClassImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 4730, 12, 6385, 1033, 733, 16, 727, 514, 1566, 16, 727, 1033, 6129, 13, 288, 4202, 24897, 503, 1122, 503, 273, 446, 31, 4202, 727, 1659, 4003, 31, 4202, 309, 261, 1612, 1276,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 918, 4730, 12, 6385, 1033, 733, 16, 727, 514, 1566, 16, 727, 1033, 6129, 13, 288, 4202, 24897, 503, 1122, 503, 273, 446, 31, 4202, 727, 1659, 4003, 31, 4202, 309, 261, 1612, 1276,...
if (_address != null) { return getHostName(_address) + ":" + _port; } else { return hostname + ":" + _port; }
return addr.toString() + ":" + _port;
public String toString() { if (_address != null) { return getHostName(_address) + ":" + _port; } else { return hostname + ":" + _port; } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Peer.java/clean/src/freenet/io/comm/Peer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 430, 261, 67, 2867, 480, 446, 13, 288, 1082, 202, 2463, 8580, 461, 24899, 2867, 13, 397, 6153, 397, 389, 655, 31, 202, 202, 97, 469, 288, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 430, 261, 67, 2867, 480, 446, 13, 288, 1082, 202, 2463, 8580, 461, 24899, 2867, 13, 397, 6153, 397, 389, 655, 31, 202, 202, 97, 469, 288, 108...
return addr;
else { return Address.zero(); }
private static Address getReferenceAddr(Offset jtocOff, boolean fatalIfNotFound) { int ival = getIVal(jtocOff); Address addr = Address.fromIntZeroExtend(ival); if (ival != 0) { Object jdkObject = BootImageMap.getObject(ival); if (jdkObject instanceof VM_CodeArray) { jdkObject = ((VM_CodeArray)jdkObject).getBacking(); } else if (jdkObject instanceof AddressArray) { jdkObject = ((AddressArray)jdkObject).getBacking(); } else if (jdkObject instanceof ObjectReferenceArray) { jdkObject = ((ObjectReferenceArray)jdkObject).getBacking(); } else if (jdkObject instanceof ExtentArray) { jdkObject = ((ExtentArray)jdkObject).getBacking(); } else if (jdkObject instanceof OffsetArray) { jdkObject = ((OffsetArray)jdkObject).getBacking(); } else if (jdkObject instanceof WordArray) { jdkObject = ((WordArray)jdkObject).getBacking(); } addr = BootImageMap.getImageAddress(jdkObject, fatalIfNotFound); } return addr; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/7602774297ec03e7800add308846318abb2d6a3e/BootImageWriter.java/buggy/tools/bootImageWriter/BootImageWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 5267, 13223, 3178, 12, 2335, 525, 1391, 7210, 16, 1250, 10081, 2047, 2768, 13, 288, 565, 509, 277, 1125, 273, 8974, 3053, 12, 78, 1391, 7210, 1769, 565, 5267, 3091, 273, 5267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 5267, 13223, 3178, 12, 2335, 525, 1391, 7210, 16, 1250, 10081, 2047, 2768, 13, 288, 565, 509, 277, 1125, 273, 8974, 3053, 12, 78, 1391, 7210, 1769, 565, 5267, 3091, 273, 5267, ...
if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY))
if (e.getPropertyName().equals("model"))
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals(JScrollBar.ORIENTATION_CHANGED_PROPERTY)) { incrButton.removeMouseListener(buttonListener); decrButton.removeMouseListener(buttonListener); incrButton = createIncreaseButton(scrollbar.getOrientation()); decrButton = createDecreaseButton(scrollbar.getOrientation()); incrButton.addMouseListener(buttonListener); decrButton.addMouseListener(buttonListener); calculatePreferredSize(); layoutContainer(scrollbar); } layoutContainer(scrollbar); scrollbar.repaint(); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/d9e8a231c88439f93950928d5fa91427e4977714/BasicScrollBarUI.java/buggy/javax/swing/plaf/basic/BasicScrollBarUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1272, 3043, 12, 1396, 20930, 425, 13, 565, 288, 1377, 309, 261, 73, 18, 588, 13073, 7675, 14963, 2932, 2284, 6, 3719, 3639, 288, 202, 225, 14015, 38, 12002, 2655, 1488, 13, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1272, 3043, 12, 1396, 20930, 425, 13, 565, 288, 1377, 309, 261, 73, 18, 588, 13073, 7675, 14963, 2932, 2284, 6, 3719, 3639, 288, 202, 225, 14015, 38, 12002, 2655, 1488, 13, 4...
return (IPathEditorInput) input.getAdapter(IPathEditorInput.class);
return (IPathEditorInput) Util.getAdapter(input, IPathEditorInput.class);
private IPathEditorInput getPathEditorInput(IEditorInput input) { if (input instanceof IPathEditorInput) { return (IPathEditorInput) input; } return (IPathEditorInput) input.getAdapter(IPathEditorInput.class); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a01c00a13234dc298b4800ef0faaed1ec6320911/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 743, 6946, 1210, 4339, 6946, 1210, 12, 45, 6946, 1210, 810, 13, 288, 202, 202, 430, 261, 2630, 1276, 467, 743, 6946, 1210, 13, 288, 1082, 202, 2463, 261, 45, 743, 6946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 743, 6946, 1210, 4339, 6946, 1210, 12, 45, 6946, 1210, 810, 13, 288, 202, 202, 430, 261, 2630, 1276, 467, 743, 6946, 1210, 13, 288, 1082, 202, 2463, 261, 45, 743, 6946, ...
return (EReference) chartEClass.getEStructuralFeatures().get(11);
return (EReference) chartEClass.getEStructuralFeatures().get(10);
public EReference getChart_ExtendedProperties() { return (EReference) chartEClass.getEStructuralFeatures().get(11); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/869b9dc91ef4dd13d07f589c6394484a744642f0/ModelPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 512, 2404, 336, 7984, 67, 11456, 2297, 1435, 565, 288, 3639, 327, 261, 41, 2404, 13, 4980, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 2163, 1769, 565, 289, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 512, 2404, 336, 7984, 67, 11456, 2297, 1435, 565, 288, 3639, 327, 261, 41, 2404, 13, 4980, 5720, 18, 588, 41, 14372, 8696, 7675, 588, 12, 2163, 1769, 565, 289, 2, -100, -100, -100...
Translate.getInstance().get(TranslateKeys.CANNOT_READ_DATA_FILE),
Translate.getInstance().get(TranslateKeys.CANNOT_READ_FILE),
public void loadDataModel(File locationFile, boolean forceNewFile){ if (!forceNewFile){ if (locationFile == null || !locationFile.getParentFile().exists()){ JOptionPane.showMessageDialog( null, Translate.getInstance().get(TranslateKeys.PROBLEM_READING_DATA_FILE_INTRO) + ( locationFile == null ? locationFile : locationFile.getAbsolutePath() ) + Translate.getInstance().get(TranslateKeys.PROBLEM_READING_DATA_FILE_DIR_NOT_EXIST), Translate.getInstance().get(TranslateKeys.MISSING_DATA_FILE), JOptionPane.ERROR_MESSAGE); String file = PrefsInstance.chooseDataFile(); if (file != null) locationFile = new File(file); else locationFile = null; } if (locationFile == null){ System.exit(0); } if (!locationFile.exists() && locationFile.getParentFile().exists()){ locationFile = new File(locationFile.getParent() + File.separator + Const.DATA_DEFAULT_FILENAME + Const.DATA_FILE_EXTENSION); } } try{ if (forceNewFile){ throw new Exception(); } // Create a resource set. resourceSet = new ResourceSetImpl(); // Register the default resource factory -- only needed for stand-alone! resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put( Resource.Factory.Registry.DEFAULT_EXTENSION, new XMLResourceFactoryImpl()); // Register the package @SuppressWarnings("unused") ModelPackage modelPackage = ModelPackage.eINSTANCE; // Get the URI of the model file. URI fileURI = URI.createFileURI(locationFile.getAbsolutePath()); // Demand load the resource for this file. Resource resource = resourceSet.getResource(fileURI, true); // Print the contents of the resource to System.out. EList contents = resource.getContents(); if (contents.size() > 0){ dataModel = (DataModel) contents.get(0); } //Save the location to the prefs file, in case we changed it. PrefsInstance.getInstance().getPrefs().setDataFile(locationFile.getAbsolutePath()); PrefsInstance.getInstance().savePrefs(); } //If there is a problem opening the file, we will prompt to make a new one catch (Exception e){ if (locationFile == null) locationFile = new File(Const.DATA_DEFAULT_FILENAME + Const.DATA_FILE_EXTENSION); PrefsInstance.getInstance().getPrefs().setDataFile(locationFile.getAbsolutePath()); PrefsInstance.getInstance().savePrefs(); if (forceNewFile || !locationFile.exists() || JOptionPane.showConfirmDialog( null, Translate.getInstance().get(TranslateKeys.PROBLEM_READING_DATA_FILE_INTRO) + locationFile.getAbsolutePath() + Translate.getInstance().get(TranslateKeys.PROBLEM_READING_DATA_FILE_CORRUPTED), Translate.getInstance().get(TranslateKeys.CREATE_NEW_DATA_FILE), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.YES_OPTION){ if (!locationFile.exists() && !forceNewFile){ JOptionPane.showMessageDialog( null, Translate.getInstance().get(TranslateKeys.CREATED_NEW_DATA_FILE_MESSAGE) + locationFile.getAbsolutePath(), Translate.getInstance().get(TranslateKeys.CREATED_NEW_DATA_FILE), JOptionPane.INFORMATION_MESSAGE ); } Accounts accounts = getDataModelFactory().createAccounts(); Transactions transactions = getDataModelFactory().createTransactions(); Categories categories = getDataModelFactory().createCategories(); Types types = getDataModelFactory().createTypes(); dataModel = getDataModelFactory().createDataModel(); dataModel.setAllAccounts(accounts); dataModel.setAllTransactions(transactions); dataModel.setAllCategories(categories); dataModel.setAllTypes(types); //Default starting categories TranslateKeys[] expenseNames = { TranslateKeys.AUTO, TranslateKeys.ENTERTAINMENT, TranslateKeys.HOUSEHOLD, TranslateKeys.GROCERIES, TranslateKeys.INVESTMENT_EXPENSES, TranslateKeys.MISC_EXPENSES, TranslateKeys.UTILITIES }; TranslateKeys[] incomeNames = { TranslateKeys.BONUS, TranslateKeys.SALARY, TranslateKeys.INVESTMENT_INCOME }; for (TranslateKeys s : expenseNames){ Category c = getDataModelFactory().createCategory(); c.setName(s.toString()); c.setBudgetedAmount(0); c.setIncome(false); categories.getCategories().add(c); } for (TranslateKeys s : incomeNames){ Category c = getDataModelFactory().createCategory(); c.setName(s.toString()); c.setBudgetedAmount(0); c.setIncome(true); categories.getCategories().add(c); } //Default starting types - debit TranslateKeys[] debitNames = { TranslateKeys.CASH, TranslateKeys.SAVINGS, TranslateKeys.CHEQUING, TranslateKeys.INVESTMENT }; for (TranslateKeys s : debitNames){ addType(s.toString(), false); } //Default starting types - credit TranslateKeys[] creditNames = { TranslateKeys.LIABILITY, TranslateKeys.CREDIT_CARD, TranslateKeys.LINE_OF_CREDIT }; for (TranslateKeys s : creditNames){ addType(s.toString(), true); } ResourceSet resourceSet = new ResourceSetImpl(); resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put( Resource.Factory.Registry.DEFAULT_EXTENSION, new XMLResourceFactoryImpl()); URI fileURI = URI.createFileURI(locationFile.toString()); Log.debug("Saving new file to " + locationFile.toString()); Resource resource = resourceSet.createResource(fileURI); resource.getContents().add(dataModel); try{ resource.save(Collections.EMPTY_MAP); } catch (IOException ioe){} } else{ JOptionPane.showMessageDialog( null, Translate.getInstance().get(TranslateKeys.CANNOT_READ_DATA_FILE), Translate.getInstance().get(TranslateKeys.EXITING_PROGRAM), JOptionPane.ERROR_MESSAGE); System.exit(0); } } }
48285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48285/34d612b4fb817d5828e899639eff8379d6f54b66/DataInstance.java/buggy/src/org/homeunix/drummer/controller/DataInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 26349, 12, 812, 2117, 812, 16, 1250, 2944, 1908, 812, 15329, 9506, 202, 430, 16051, 5734, 1908, 812, 15329, 1082, 202, 430, 261, 3562, 812, 422, 446, 747, 401, 3562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 26349, 12, 812, 2117, 812, 16, 1250, 2944, 1908, 812, 15329, 9506, 202, 430, 16051, 5734, 1908, 812, 15329, 1082, 202, 430, 261, 3562, 812, 422, 446, 747, 401, 3562, ...
return RubyFloat.newFloat(runtime, getDoubleValue());
return RubyFloat.newFloat(getRuntime(), getDoubleValue());
protected RubyFloat toFloat() { return RubyFloat.newFloat(runtime, getDoubleValue()); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyInteger.java/buggy/src/org/jruby/RubyInteger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 19817, 4723, 358, 4723, 1435, 288, 3639, 327, 19817, 4723, 18, 2704, 4723, 12, 588, 5576, 9334, 16097, 620, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 19817, 4723, 358, 4723, 1435, 288, 3639, 327, 19817, 4723, 18, 2704, 4723, 12, 588, 5576, 9334, 16097, 620, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
QuickFixAction.registerQuickFixAction(highlightInfo, fix, null);
QuickFixAction.registerQuickFixAction(highlightInfo, fix);
public static HighlightInfo checkFinalFieldInitialized(PsiField field) { if (!field.hasModifierProperty(PsiModifier.FINAL)) return null; boolean isInitialized = isFinalFieldInitialized(field); if (!isInitialized) { String description = JavaErrorMessages.message("variable.not.initialized", field.getName()); int start = field.getModifierList().getTextRange().getStartOffset(); int end = field.getNameIdentifier().getTextRange().getEndOffset(); final HighlightInfo highlightInfo = HighlightInfo.createHighlightInfo( HighlightInfoType.ERROR, start, end, description); final PsiClass containingClass = field.getContainingClass(); if (containingClass != null && !containingClass.isInterface()) { IntentionAction fix = QUICK_FIX_FACTORY.createModifierListFix(field.getModifierList(), PsiModifier.FINAL, false, false); QuickFixAction.registerQuickFixAction(highlightInfo, fix, null); } QuickFixAction.registerQuickFixAction(highlightInfo, new AddVariableInitializerFix(field),null); return highlightInfo; } return null; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/HighlightControlFlowUtil.java/clean/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightControlFlowUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 31386, 966, 866, 7951, 974, 11459, 12, 52, 7722, 974, 652, 13, 288, 565, 309, 16051, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7263, 1013, 3719, 327, 446, 31, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31386, 966, 866, 7951, 974, 11459, 12, 52, 7722, 974, 652, 13, 288, 565, 309, 16051, 1518, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7263, 1013, 3719, 327, 446, 31, 565, ...
Integer countItem = (Integer)countResult.get(0);
Integer countItem = (Integer)countResult.get( 0 );
int sproc_AddExistingDocToMenu( int meta_id, int existing_meta_id, int doc_menu_no ) { // test if this is the first child String sqlLinksCount = "select count(*) from childs where meta_id = ? and menu_sort = ? "; Object[] paramValuesLinksCount = new Object[]{ new Integer( meta_id ), new Integer( doc_menu_no )}; ArrayList countResult = sqlProcessor.executeQuery( sqlLinksCount, paramValuesLinksCount, new SQLProcessor.ResultProcessor() { Object mapOneRowFromResultsetToObject( ResultSet rs ) throws SQLException { return new Integer(rs.getInt(1)); } } ); Integer countItem = (Integer)countResult.get(0); int manualSortOrder = 500; if( countItem.intValue() > 0 ) {// update manual_sort_order String sqlSortOrder = "select max(manual_sort_order) from childs where meta_id = ? and menu_sort = ?"; Object[] paramValuesSortOrder = new Object[]{ new Integer( meta_id ), new Integer( doc_menu_no )}; ArrayList sortOrderResult = sqlProcessor.executeQuery( sqlSortOrder, paramValuesSortOrder, new SQLProcessor.ResultProcessor() { Object mapOneRowFromResultsetToObject( ResultSet rs ) throws SQLException { return new Integer(rs.getInt(1)); } } ); manualSortOrder = ((Integer)sortOrderResult.get(0)).intValue() + 10; } //- test if child already exist in this menu. If not, then we will add the child to the menu. String sqlThisLinksCount = "select count(*) from childs where meta_id = ? and to_meta_id = ? and menu_sort = ?"; Object[] paramValuesThisLinksCount = new Object[]{ new Integer( meta_id), new Integer( existing_meta_id ), new Integer(doc_menu_no ) } ; ArrayList queryResult = sqlProcessor.executeQuery( sqlThisLinksCount, paramValuesThisLinksCount, new SQLProcessor.ResultProcessor() { Object mapOneRowFromResultsetToObject( ResultSet rs ) throws SQLException { return new Integer(rs.getInt(1)); } } ); Integer thisCountItem = (Integer)queryResult.get(0); if( thisCountItem.intValue() == 0 ) { String sql = "insert into childs( meta_id, to_meta_id, menu_sort, manual_sort_order) values( ?, ?, ?, ? )"; Object[] paramValues = new Object[]{ new Integer( meta_id ), new Integer( existing_meta_id ), new Integer(doc_menu_no), new Integer(manualSortOrder) }; return sqlProcessor.executeUpdate( sql, paramValues ); } else { return 0; } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a90e8dc58b604eb2343b8f739ed25f49188b96da/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 272, 9381, 67, 986, 9895, 1759, 774, 4599, 12, 509, 2191, 67, 350, 16, 509, 2062, 67, 3901, 67, 350, 16, 509, 997, 67, 5414, 67, 2135, 262, 288, 3639, 368, 1842, 309, 333, 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, 377, 509, 272, 9381, 67, 986, 9895, 1759, 774, 4599, 12, 509, 2191, 67, 350, 16, 509, 2062, 67, 3901, 67, 350, 16, 509, 997, 67, 5414, 67, 2135, 262, 288, 3639, 368, 1842, 309, 333, 353, ...
return "";
StringBuffer result = new StringBuffer(128); String locKey = getDisabledHelpKey(param); String locValue = widgetDialog.getMessages().key(locKey, true); if (locValue == null) { return ""; } else { result.append("<div class=\"help\" id=\"help"); result.append(locKey); result.append("\""); result.append(getJsHelpMouseHandler(widgetDialog, locKey)); result.append(">"); result.append(locValue); result.append("</div>"); return result.toString(); }
public String getHelpText(I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) { return ""; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/8c9e1f82015bac1555439ccc069a9de67b495b05/CmsDisplayWidget.java/clean/src/org/opencms/widgets/CmsDisplayWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 336, 6696, 1528, 12, 45, 67, 4747, 4609, 6353, 3604, 6353, 16, 467, 67, 4747, 4609, 1662, 579, 13, 288, 3639, 6674, 563, 273, 394, 6674, 12, 10392, 1769, 225, 514, 1515, 653,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 6696, 1528, 12, 45, 67, 4747, 4609, 6353, 3604, 6353, 16, 467, 67, 4747, 4609, 1662, 579, 13, 288, 3639, 6674, 563, 273, 394, 6674, 12, 10392, 1769, 225, 514, 1515, 653,...
DataObject article = ssn.create("linkTest.Article");
DataObject article = ssn.create(getModel() + ".Article");
public void testArticleImageLink() { Session ssn = SessionManager.getSession(); DataObject article = ssn.create("linkTest.Article"); article.set("id", BigInteger.ZERO); String text = "This is the article text."; article.set("text", text); for (int i = 0; i < 10; i++) { DataObject image = ssn.create("linkTest.Image"); image.set("id", new BigInteger(Integer.toString(i))); byte[] bytes = "This is the image.".getBytes(); image.set("bytes", bytes); image.save(); } DataAssociation links = (DataAssociation) article.get("images"); DataCollection images = ssn.retrieve("linkTest.Image"); while (images.next()) { DataObject image = images.getDataObject(); DataObject link = ssn.create("linkTest.ArticleImageLink"); link.set("article", article); link.set("image", image); link.set("caption", "The caption for: " + image.getOID()); links.add(link); } article.save(); DataAssociationCursor cursor = links.cursor(); while (cursor.next()) { s_log.info(cursor.get("caption")); s_log.info(cursor.get("image")); } DataCollection aiLinks = ssn.retrieve("linkTest.ArticleImageLink"); aiLinks.addEqualsFilter("image.id", new BigDecimal(5)); while (aiLinks.next()) { s_log.info(aiLinks.get("article")); s_log.info(aiLinks.get("image")); s_log.info(aiLinks.get("caption")); } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/799dfe3a9fd3c8e18e45ff692d04fd9e643531e4/LinkTest.java/clean/archive/packaging/test/src/com/arsdigita/persistence/LinkTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7880, 2040, 2098, 1435, 288, 3639, 3877, 5202, 82, 273, 3877, 1318, 18, 588, 2157, 5621, 3639, 18914, 7559, 273, 5202, 82, 18, 2640, 12, 588, 1488, 1435, 397, 3552, 7880,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7880, 2040, 2098, 1435, 288, 3639, 3877, 5202, 82, 273, 3877, 1318, 18, 588, 2157, 5621, 3639, 18914, 7559, 273, 5202, 82, 18, 2640, 12, 588, 1488, 1435, 397, 3552, 7880,...
URI.create(gerApplication.getConfigId()));
URI.create(gerApplication.getConfigId()), moduleContextInfo);
private void addModules(JarFile earFile, ApplicationType application, GerApplicationType gerApplication, Set moduleLocations, Set modules) throws DeploymentException { Map altVendorDDs = new HashMap(); try { // build map from module path to alt vendor dd GerModuleType gerModuleTypes[] = gerApplication.getModuleArray(); for (int i = 0; i < gerModuleTypes.length; i++) { GerModuleType gerModule = gerModuleTypes[i]; String path = null; if (gerModule.isSetEjb()) { path = gerModule.getEjb().getStringValue(); } else if (gerModule.isSetWeb()) { path = gerModule.getWeb().getStringValue(); } else if (gerModule.isSetConnector()) { path = gerModule.getConnector().getStringValue(); } else if (gerModule.isSetJava()) { path = gerModule.getJava().getStringValue(); } if (gerModule.isSetAltDd()) { // the the url of the alt dd try { altVendorDDs.put(path, DeploymentUtil.toTempFile(earFile, gerModule.getAltDd().getStringValue())); } catch (IOException e) { throw new DeploymentException("Invalid alt vendor dd url: " + gerModule.getAltDd().getStringValue(), e); } } else { //dd is included explicitly XmlCursor cursor = gerModule.newCursor(); try { cursor.toFirstChild(); cursor.toNextSibling(); //should be at the "any" element XmlObject any = cursor.getObject(); altVendorDDs.put(path, any); } finally { cursor.dispose(); } } } // get a set containing all of the files in the ear that are actually modules ModuleType[] moduleTypes = application.getModuleArray(); for (int i = 0; i < moduleTypes.length; i++) { ModuleType moduleXml = moduleTypes[i]; String modulePath; ModuleBuilder builder; String moduleTypeName; if (moduleXml.isSetEjb()) { modulePath = moduleXml.getEjb().getStringValue(); if (ejbConfigBuilder == null) { throw new DeploymentException("Cannot deploy ejb application; No ejb deployer defined: " + modulePath); } builder = ejbConfigBuilder; moduleTypeName = "an EJB"; } else if (moduleXml.isSetWeb()) { modulePath = moduleXml.getWeb().getWebUri().getStringValue(); if (webConfigBuilder == null) { throw new DeploymentException("Cannot deploy web application; No war deployer defined: " + modulePath); } builder = webConfigBuilder; moduleTypeName = "a war"; } else if (moduleXml.isSetConnector()) { modulePath = moduleXml.getConnector().getStringValue(); if (connectorConfigBuilder == null) { throw new DeploymentException("Cannot deploy resource adapter; No rar deployer defined: " + modulePath); } builder = connectorConfigBuilder; moduleTypeName = "a connector"; } else if (moduleXml.isSetJava()) { modulePath = moduleXml.getJava().getStringValue(); if (appClientConfigBuilder == null) { throw new DeploymentException("Cannot deploy app client; No app client deployer defined: " + modulePath); } builder = appClientConfigBuilder; moduleTypeName = "an application client"; } else { throw new DeploymentException("Could not find a module builder for module: " + moduleXml); } moduleLocations.add(modulePath); URL altSpecDD = null; if (moduleXml.isSetAltDd()) { try { altSpecDD = DeploymentUtil.createJarURL(earFile, moduleXml.getAltDd().getStringValue()); } catch (MalformedURLException e) { throw new DeploymentException("Invalid alt sped dd url: " + moduleXml.getAltDd().getStringValue(), e); } } NestedJarFile moduleFile = null; try { moduleFile = new NestedJarFile(earFile, modulePath); } catch (IOException e) { throw new DeploymentException("Invalid moduleFile: " + modulePath, e); } Module module = builder.createModule(altVendorDDs.get(modulePath), moduleFile, modulePath, altSpecDD, URI.create(gerApplication.getConfigId())); if (module == null) { throw new DeploymentException("Module was not " + moduleTypeName + ": " + modulePath); } if (module instanceof WebModule) { ((WebModule) module).setContextRoot(moduleXml.getWeb().getContextRoot().getStringValue()); } modules.add(module); } } finally { // delete all the temp files created for alt vendor dds for (Iterator iterator = altVendorDDs.values().iterator(); iterator.hasNext();) { Object altVendorDD = iterator.next(); if (altVendorDD instanceof File) { ((File) altVendorDD).delete(); } } } }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/8485415c9b7bd1b381af25fd1b96578c48d9ae5c/EARConfigBuilder.java/clean/modules/j2ee-builder/src/java/org/apache/geronimo/j2ee/deployment/EARConfigBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7782, 12, 10813, 812, 6897, 812, 16, 4257, 559, 2521, 16, 611, 264, 3208, 559, 314, 264, 3208, 16, 1000, 1605, 10985, 16, 1000, 4381, 13, 1216, 8587, 503, 288, 3639, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 7782, 12, 10813, 812, 6897, 812, 16, 4257, 559, 2521, 16, 611, 264, 3208, 559, 314, 264, 3208, 16, 1000, 1605, 10985, 16, 1000, 4381, 13, 1216, 8587, 503, 288, 3639, 163...
return hasC3S() | hasC3M();
return hasC3S() | hasC3M() | hasC3MM();
public boolean hasC3() { return hasC3S() | hasC3M(); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/da74eeedf44b94d0058c32b90c0d3937c88bb32d/Entity.java/buggy/megamek/src/megamek/common/Entity.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 711, 39, 23, 1435, 288, 1377, 327, 711, 39, 23, 55, 1435, 571, 711, 39, 23, 49, 1435, 571, 711, 39, 23, 8206, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 711, 39, 23, 1435, 288, 1377, 327, 711, 39, 23, 55, 1435, 571, 711, 39, 23, 49, 1435, 571, 711, 39, 23, 8206, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
public void visitMONITOREXIT(MONITOREXIT obj);
void visitMONITOREXIT(MONITOREXIT obj);
public void visitMONITOREXIT(MONITOREXIT obj);
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/6f181de4aafbe2a9534fc417eee9f0b8d8ae805d/Bytecodes.java/clean/joeq_core/joeq/Compiler/BytecodeAnalysis/Bytecodes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 17667, 1285, 8607, 60, 1285, 12, 17667, 1285, 8607, 60, 1285, 1081, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 17667, 1285, 8607, 60, 1285, 12, 17667, 1285, 8607, 60, 1285, 1081, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if (((++bytecount) & 0x3f) == 0)
if ((++ bytecount) % 64 == 0)
public void engineUpdate (byte b) { int i = ((int)bytecount) & 0x3f; //wgs int shift = (3 - i % 4) << 3; int idx = i / 4; i = (int)b; W[idx] = (W[idx] & ~(0xff << shift)) | ((i & 0xff) << shift); // if we've filled up a block, then process it if (((++bytecount) & 0x3f) == 0) munch (); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/f0fa0d7593a4096ea9c1b26389ec4bb1431e5631/SHA.java/buggy/libjava/gnu/java/security/provider/SHA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4073, 1891, 261, 7229, 324, 13, 225, 288, 565, 509, 277, 273, 14015, 474, 13, 1637, 14537, 592, 13, 473, 374, 92, 23, 74, 31, 368, 91, 564, 565, 509, 4654, 273, 261, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4073, 1891, 261, 7229, 324, 13, 225, 288, 565, 509, 277, 273, 14015, 474, 13, 1637, 14537, 592, 13, 473, 374, 92, 23, 74, 31, 368, 91, 564, 565, 509, 4654, 273, 261, 23, ...
public Label(String string, Image image) { this.string = string;
public Label(String newString, Image image) { if(newString == null) this.string = ""; else this.string = newString;
public Label(String string, Image image) { this.string = string; this.image = image; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d8a742528bbe46af920ce3931a71f45c29bfeff7/FilteredList.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 5287, 12, 780, 533, 16, 3421, 1316, 13, 288, 5411, 333, 18, 1080, 273, 533, 31, 5411, 333, 18, 2730, 273, 1316, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 540, 1071, 5287, 12, 780, 533, 16, 3421, 1316, 13, 288, 5411, 333, 18, 1080, 273, 533, 31, 5411, 333, 18, 2730, 273, 1316, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void setObservedStates(Tree tree, CharacterDistribution observedStates, CommandRecord commandRec){ if(verbose) MesquiteMessage.println("setObservedStates "); this.observedStates = observedStates; if (tree==null || observedStates==null) return; this.tree = tree; likelihood.setToUnassigned(); /* At present this redoes the likelihood calculations each time before sampling a history. * In future the likelihood calculations should be done once and cached, and redone only if tree or observedStates have changed * since last request */ //a barrier (temporary) while likelihood calculations support only simple categorical Class stateClass = observedStates.getStateClass(); if (DNAState.class.isAssignableFrom(stateClass) || ProteinState.class.isAssignableFrom(stateClass) || ContinuousState.class.isAssignableFrom(stateClass)) { String s = "Likelihood calculations cannot be performed "; if (DNAState.class.isAssignableFrom(stateClass)) s += "currently with DNA or RNA data. The calculations were not done for some characters."; else if (ProteinState.class.isAssignableFrom(stateClass)) s += "currently with protein data. The calculations were not done for some characters."; else if (ContinuousState.class.isAssignableFrom(stateClass)) s += "currently with continuous valued data. The calculations were not done for some characters."; if (!warnedNoCalc) { discreetAlert(commandRec, s); warnedNoCalc = true; } cladeLikelihoods = null; return; } cladeLikelihoods = (CategoricalHistory)observedStates.adjustHistorySize(tree, cladeLikelihoods); //getting the model if (modelTask.getCharacterModel(observedStates, commandRec) instanceof ProbPhenCategCharModel ) model = (ProbPhenCategCharModel)modelTask.getCharacterModel(observedStates, commandRec); if (model == null && !commandRec.scripting()){ if (observedStates.getParentData()!= oldData) warned = false; if (!warned){ if (observedStates.getParentData()!=null && modelTask instanceof CurrentProbModels) { oldData = observedStates.getParentData(); if (AlertDialog.query(containerOfModule(), "Assign models?", "There are currently no probability models assigned to the characters. Do you want to assign a model to all characters unassigned?")) { ((CurrentProbModels)modelTask).chooseAndFillUnassignedCharacters(observedStates.getParentData()); if (modelTask.getCharacterModel(observedStates, commandRec) instanceof ProbPhenCategCharModel ) model = (ProbPhenCategCharModel)modelTask.getCharacterModel(observedStates, commandRec); else AlertDialog.notice(containerOfModule(),"Incompatible model","The model you selected is not compatible with Stochastic Character Mapping at this time."); } } else { discreetAlert(commandRec, "Sorry, there is no probabilistic model of evolution available for the character; likelihood calculations cannot be accomplished. Please make sure that the source of models chosen is compatible with this character type."); warned = true; return; } } warned = true; } //getting the reconstructing module if (reconstructTask == null || !reconstructTask.compatibleWithContext(model, observedStates)) { reconstructTask = null; for (int i = 0; i<getNumberOfEmployees() && reconstructTask==null; i++) { Object e=getEmployeeVector().elementAt(i); if (e instanceof MargLikeAncStCLForModel) if (((MargLikeAncStCLForModel)e).compatibleWithContext(model, observedStates)) { reconstructTask=(MargLikeAncStCLForModel)e; } } } reconstructString.setValue(""); //doing the likelihood calculations if (reconstructTask != null) { //======== 1 =========== if (verbose) MesquiteMessage.println("Step 1"); //Nielsen's Step 1: calculate the clade likelihoods. In the future this will be done once and cached if (tempModel == null || tempModel.getClass() != model.getClass()){ tempModel = (ProbabilityCategCharModel)model.cloneModelWithMotherLink(null); } model.copyToClone(tempModel); model = (ProbPhenCategCharModel)tempModel; reconstructTask.estimateParameters( tree, observedStates, model, null, commandRec); reconstructTask.calculateStates( tree, observedStates, cladeLikelihoods, model, reconstructString, likelihood, commandRec); } else { String s = "Stochastic mapping cannot be performed because no module was found to perform the calculations for the probability model \"" + model.getName() + "\" with the characters specified."; if (!warnedNoCalc) { discreetAlert(commandRec, s); warnedNoCalc = true; } } }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/204ea1ab11f2a88e8ca7e817ebf9dc1c742dffcf/StochCharMapper.java/clean/trunk/Mesquite Project/Source/mesquite/stochchar/StochCharMapper/StochCharMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 444, 9013, 2155, 7629, 12, 2471, 2151, 16, 6577, 9003, 12117, 7629, 16, 3498, 2115, 1296, 5650, 15329, 202, 202, 430, 12, 11369, 13, 490, 281, 372, 1137, 1079, 18, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 225, 918, 444, 9013, 2155, 7629, 12, 2471, 2151, 16, 6577, 9003, 12117, 7629, 16, 3498, 2115, 1296, 5650, 15329, 202, 202, 430, 12, 11369, 13, 490, 281, 372, 1137, 1079, 18, 8...
ruby = Ruby.getDefaultInstance(GNURegexpAdapter.class); eval("$h = {'foo' => 'bar'}");
ruby = Ruby.getDefaultInstance(GNURegexpAdapter.class); eval("$h = {'foo' => 'bar'}");
public void setUp() { ruby = Ruby.getDefaultInstance(GNURegexpAdapter.class); eval("$h = {'foo' => 'bar'}"); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/2f13ba47385b7584839c7f6f6f1abfee251cbe53/TestRubyHash.java/clean/org/jruby/test/TestRubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 202, 27768, 273, 19817, 18, 588, 1868, 1442, 12, 8318, 57, 14621, 4216, 18, 1106, 1769, 202, 8622, 2932, 8, 76, 273, 13666, 11351, 11, 516, 296, 3215, 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, 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, 24292, 1435, 288, 202, 27768, 273, 19817, 18, 588, 1868, 1442, 12, 8318, 57, 14621, 4216, 18, 1106, 1769, 202, 8622, 2932, 8, 76, 273, 13666, 11351, 11, 516, 296, 3215, 11, 1...
out.println(" <a accesskey=\"h\" href=\"javascript:;\" " + "onclick=\"window.open('" + helpUrl + "'"
out.println(" <a accesskey=\"h\" href=\"javascript:;\" " + "onclick=\"window.open('" + helpUrl + "'"
protected void includePageNav(PrintWriter out, HttpServletRequest req, Session session, Site site, SitePage page, String toolContextPath, String portalPrefix) throws IOException { String presenceUrl = Web.returnUrl(req, "/presence/" + Web.escapeUrl(site.getId())); String pageUrl = Web.returnUrl(req, "/" + portalPrefix + "/" + Web.escapeUrl(site.getId()) + "/page/"); String pagePopupUrl = Web.returnUrl(req, "/page/"); boolean showPresence = ServerConfigurationService.getBoolean("display.users.present", true); boolean loggedIn = session.getUserId() != null; String iconUrl = site.getIconUrlFull(); boolean published = site.isPublished(); String type = site.getType(); out.println("<div class=\"divColor\" id=\"sidebar\">"); out.println(" <div id=\"divLogo\">"); if (!published) { out.println("<p id=\"siteStatus\">" + "unpublished site" + "</p>"); } if (type != null) { if (type.equals("project")) { out.println("<p id=\"siteType\">" + type + "</p>"); } } if (iconUrl != null) { out.println(" <img src=\"" + iconUrl + "\" border=\"0\" />"); } out.println(" </div>"); // gsilver - target of "jump to tools" link, header out.println(" <a id=\"toolmenu\" class=\"skip\" name=\"toolmenu\"></a>"); out.println(" <h1 class=\"skip\">" + Web.escapeHtml(rb.getString("sit.toolshead")) + "</h1>"); out.println(" <div id=\"leftnavlozenge\">"); out.println(" <ul>"); // order the pages based on their tools and the tool order for the site type List pages = site.getOrderedPages(); // gsilver - counter for tool accesskey attributes of <a> int count = 0; for (Iterator i = pages.iterator(); i.hasNext();) { SitePage p = (SitePage) i.next(); boolean current = (p.getId().equals(page.getId()) && !p.isPopUp()); out.print(" <li><a "); if (count < 10) { out.print("accesskey=\"" + count + "\" "); } if (current) { out.print("class=\"selected\" "); } out.print("href=\""); if (current) { out.print("\"#\""); } else if (p.isPopUp()) { out .print("javascript:;\" " + "onclick=\"window.open('" + pagePopupUrl + Web.escapeUrl(p.getId()) + "'" + ",'" + Web.escapeJavascript(p.getTitle()) + "','resizable=yes,toolbar=no,scrollbars=yes, width=800,height=600')"); } else { out.print(pageUrl + Web.escapeUrl(p.getId())); } out.println("\">" + Web.escapeHtml(p.getTitle()) + "</a></li>"); count++; } String helpUrl = ServerConfigurationService.getHelpUrl(null); out.println(" <li>"); // help gets its own accesskey - h out.println(" <a accesskey=\"h\" href=\"javascript:;\" " + "onclick=\"window.open('" + helpUrl + "'" + ",'Help','resizable=yes,toolbar=no,scrollbars=yes, width=800,height=600')\" onkeypress=\"window.open('" + helpUrl + "'" + ",'Help','resizable=yes,toolbar=no,scrollbars=yes, width=800,height=600')\">" + rb.getString("sit.help") + "</a>"); out.println(" </li>"); out.println(" </ul>"); out.println(" </div>"); if (showPresence && loggedIn) { out.println(" <div class=\"sideBarText\" id=\"pres_title\">"); out.println(Web.escapeHtml(rb.getString("sit.presencetitle"))); out.println(" </div>"); out.println(" <iframe "); out.println(" name=\"presence\""); out.println(" id=\"presence\""); out.println(" title=\"" + Web.escapeHtml(rb.getString("sit.presenceiframetit")) + "\""); out.println(" frameborder=\"0\""); out.println(" marginwidth=\"0\""); out.println(" marginheight=\"0\""); out.println(" scrolling=\"auto\""); out.println(" src=\"" + presenceUrl + "\""); out.println(" >"); out.println(" </iframe>"); } out.println("</div>"); // gsilver - target of "jump to content" link and header for content out.println(" <h1 class=\"skip\">" + Web.escapeHtml(rb.getString("sit.contentshead")) + "</h1>"); out.println(" <a id=\"tocontent\" class=\"skip\" name=\"tocontent\"></a>"); }
48149 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48149/367fca1e27c5deab0b2d8ec0152c8d410de7f687/CharonPortal.java/clean/portal-impl/impl/src/java/org/sakaiproject/portal/charon/CharonPortal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2341, 1964, 12599, 12, 5108, 2289, 596, 16, 9984, 1111, 16, 3877, 1339, 16, 9063, 2834, 16, 9063, 1964, 1363, 16, 1082, 202, 780, 5226, 1042, 743, 16, 514, 11899, 2244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2341, 1964, 12599, 12, 5108, 2289, 596, 16, 9984, 1111, 16, 3877, 1339, 16, 9063, 2834, 16, 9063, 1964, 1363, 16, 1082, 202, 780, 5226, 1042, 743, 16, 514, 11899, 2244, ...
Point prefSize = next.getControl().computeSize(thisSize, SWT.DEFAULT);
Point prefSize = next.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT);
private static int arrange(Rectangle area, List caches, boolean horizontally, int spacing) { Point currentPosition = new Point(area.x, area.y); List resizable = new ArrayList(caches.size()); List nonResizable = new ArrayList(caches.size()); TrimArea.filterResizable(caches, resizable, nonResizable, horizontally); int[] sizes = new int[nonResizable.size()]; int idx = 0; int used = 0; int hint = Geometry.getDimension(area, !horizontally); // Compute the sizes of non-resizable controls Iterator iter = nonResizable.iterator(); while (iter.hasNext()) { SizeCache next = (SizeCache) iter.next(); sizes[idx] = TrimArea.getSize(next, hint, horizontally); used += sizes[idx]; idx++; } int available = Geometry.getDimension(area, horizontally) - used - spacing * (caches.size() - 1); idx = 0; int remainingResizable = resizable.size(); iter = caches.iterator(); while (iter.hasNext()) { SizeCache next = (SizeCache) iter.next(); if (next.getControl().isVisible()) { int thisSize; if (TrimArea.isResizable(next.getControl(), horizontally)) { thisSize = available / remainingResizable; available -= thisSize; remainingResizable--; } else { thisSize = sizes[idx]; idx++; } if (TrimDragPreferences.showRaggedTrim()) { Point prefSize = next.getControl().computeSize(thisSize, SWT.DEFAULT); if (horizontally) { // HACK!! Surgical Fix: Ideally the fix would handle 'wrapping' trim // on any side. The following code is in place specifically to // handle the CBanner's CoolBar wrapping. We need to pick up // if the CoolBar wraps and uses extra height // So we have to re-calc the value based on the actual trim height // as laid out. if (prefSize.y > hint) hint = prefSize.y; next.getControl().setBounds(currentPosition.x, currentPosition.y, thisSize, prefSize.y); currentPosition.x += thisSize + spacing; } else { next.getControl().setBounds(currentPosition.x, currentPosition.y, prefSize.x, thisSize); currentPosition.y += thisSize + spacing; } } else { if (horizontally) { next.getControl().setBounds(currentPosition.x, currentPosition.y, thisSize, hint); currentPosition.x += thisSize + spacing; } else { next.getControl().setBounds(currentPosition.x, currentPosition.y, hint, thisSize); currentPosition.y += thisSize + spacing; } } } } return hint; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/881a2fcd0e4fffe334fae4637c03c82e5d5e2415/TrimLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 509, 2454, 726, 12, 19463, 5091, 16, 987, 12535, 16, 1082, 202, 6494, 366, 6157, 1230, 16, 509, 13259, 13, 288, 202, 202, 2148, 22356, 273, 394, 4686, 12, 5036, 18, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 2454, 726, 12, 19463, 5091, 16, 987, 12535, 16, 1082, 202, 6494, 366, 6157, 1230, 16, 509, 13259, 13, 288, 202, 202, 2148, 22356, 273, 394, 4686, 12, 5036, 18, 92, ...
m_callerMemberInfo = m_callerClassInfo.getConstructor(AsmHelper.calculateConstructorHash(m_callerMethodDesc));
int hash = AsmHelper.calculateConstructorHash(m_callerMethodDesc); m_callerMemberInfo = m_callerClassInfo.getConstructor(hash);
public ReplaceInvokeInstructionCodeAdapter(final CodeVisitor ca, final ClassLoader loader, final ClassInfo callerClassInfo, final String callerClassName, final String callerMethodName, final String callerMethodDesc) { super(ca); m_loader = loader; m_callerClassInfo = callerClassInfo; m_callerClassName = callerClassName; m_callerMethodName = callerMethodName; m_callerMethodDesc = callerMethodDesc; if (INIT_METHOD_NAME.equals(callerMethodName)) { m_callerMemberInfo = m_callerClassInfo.getConstructor(AsmHelper.calculateConstructorHash(m_callerMethodDesc)); } else { m_callerMemberInfo = m_callerClassInfo.getMethod(AsmHelper.calculateMethodHash(m_callerMethodName, m_callerMethodDesc)); } if (m_callerMemberInfo == null) { throw new Error( "caller method info metadata structure could not be build for method: " + callerClassName + '.' + callerMethodName + ':' + callerMethodDesc ); } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/3c3f3f43bf2a9cf51a4086a74e046f38f1653bad/MethodCallVisitor.java/buggy/aspectwerkz4/src/main/org/codehaus/aspectwerkz/transform/inlining/weaver/MethodCallVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 6910, 10969, 11983, 1085, 4216, 12, 6385, 3356, 7413, 3474, 16, 4766, 10402, 727, 9403, 4088, 16, 4766, 10402, 727, 19010, 4894, 19455, 16, 4766, 10402, 727, 514, 4894, 3834, 16, 4766...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6910, 10969, 11983, 1085, 4216, 12, 6385, 3356, 7413, 3474, 16, 4766, 10402, 727, 9403, 4088, 16, 4766, 10402, 727, 19010, 4894, 19455, 16, 4766, 10402, 727, 514, 4894, 3834, 16, 4766...
part.dispose();
ref0.dispose();
public void run() { part.dispose(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/2513349bf76e774b17f5385216fb6cc6eeb0d6b5/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 2680, 18, 2251, 4150, 5621, 202, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3196, 202, 482, 918, 1086, 1435, 288, 1082, 202, 2680, 18, 2251, 4150, 5621, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
IJavaElementSearchConstants.CONSIDER_CLASSES, false, "*");
IJavaElementSearchConstants.CONSIDER_CLASSES, false, "*");
private void doOpenSelectionDialog() { try { Shell shell = PDEPlugin.getActiveWorkbenchShell(); IResource resource = getPluginBase().getModel() .getUnderlyingResource(); IProject project = (resource == null) ? null : resource .getProject(); if (project != null && project.hasNature(JavaCore.NATURE_ID)) { SelectionDialog dialog = JavaUI.createTypeDialog(shell, new ProgressMonitorDialog(shell), getSearchScope(project), IJavaElementSearchConstants.CONSIDER_CLASSES, false, "*"); dialog.setTitle("Select Type"); if (dialog.open() == SelectionDialog.OK) { IType type = (IType) dialog.getResult()[0]; fClassEntry.setValue(type.getFullyQualifiedName()); } } } catch (CoreException e) { } }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/d31a9651542b0f36656cd04a3038389b779eb239/GeneralInfoSection.java/clean/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/plugin/GeneralInfoSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 3678, 6233, 6353, 1435, 288, 202, 202, 698, 288, 1082, 202, 13220, 5972, 273, 453, 1639, 3773, 18, 588, 3896, 2421, 22144, 13220, 5621, 1082, 202, 45, 1420, 1058, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 3678, 6233, 6353, 1435, 288, 202, 202, 698, 288, 1082, 202, 13220, 5972, 273, 453, 1639, 3773, 18, 588, 3896, 2421, 22144, 13220, 5621, 1082, 202, 45, 1420, 1058, 273...
if (treeFillerTask != null) { String basePath = MesquiteFile.saveFileAsDialog("Base name for files (files will be named <name>1.nex, <name>2.nex, etc.)");
if (treeFillerTask != null) { String basePath = MesquiteFile.saveFileAsDialog("Base name for files (files will be named <name>1.nex, <name>2.nex, etc.)");
public Object doCommand(String commandName, String arguments, CommandRecord commandRec, CommandChecker checker) { if (checker.compare(this.getClass(), "Returns a trees block", "[number of trees block; 0 based]", commandName, "getTreeBlock")) { int t = MesquiteInteger.fromFirstToken(arguments, pos); if (MesquiteInteger.isCombinable(t) && t<treesVector.size()) { TreeVector tx = (TreeVector)treesVector.elementAt(t); return tx; } } else if (checker.compare(this.getClass(), "Shows lists of trees in a trees block", "[number of trees block; 0 based]", commandName, "showTrees")) { int t = MesquiteInteger.fromFirstToken(arguments, pos); if (StringUtil.blank(arguments) || !MesquiteInteger.isCombinable(t) || t>treesVector.size()) { for (int i = 0; i< treesVector.size(); i++) { showTrees((TreeVector)treesVector.elementAt(i), commandRec); } } else { TreeVector tx = (TreeVector)treesVector.elementAt(t); return showTrees(tx, commandRec); } } else if (checker.compare(this.getClass(), "Shows a tree window showing a particular trees block", "[number of tree block to show]", commandName, "showTreesInWindow")) { //Check to see if already has lister for this int t = MesquiteInteger.fromFirstToken(arguments, pos); if (MesquiteInteger.isCombinable(t) && t<getProject().getNumberOfFileElements(TreeVector.class)) { MesquiteModule fCoord = getFileCoordinator(); MesquiteModule treeWindowCoord = null; if (fCoord!=null) treeWindowCoord = fCoord.findEmployeeWithName("Tree Window Coordinator"); if (treeWindowCoord!=null){ TreeVector trees = (TreeVector)getProject().getFileElement(TreeVector.class, t); if (trees == null) return null; Taxa taxa = trees.getTaxa(); //send script to tree window coord to makeTreeWindow with set of taxa and then set to stored trees and this tree vector int whichTreeBlock = getTreeBlockNumber(taxa, trees); String commands = "makeTreeWindow " + getProject().getTaxaReferenceInternal(taxa) + " #BasicTreeWindowMaker; tell It; setTreeSource #StoredTrees;"; commands += " tell It; setTaxa " + getProject().getTaxaReferenceInternal(taxa) + " ; setTreeBlock " + TreeVector.toExternal(whichTreeBlock) + "; endTell; showWindow; endTell; "; MesquiteInteger pos = new MesquiteInteger(0); Puppeteer p = new Puppeteer(this); p.execute(treeWindowCoord, commands, pos, null, false); /* */ } } } else if (checker.compare(this.getClass(), "Saves copy of a trees block to a separate file", "[id number of trees block]", commandName, "exportTreesBlock")) { int t = MesquiteInteger.fromString(parser.getFirstToken(arguments)); if (MesquiteInteger.isCombinable(t) && t< getProject().getNumberOfFileElements(TreeVector.class)) { long id = MesquiteLong.fromString(parser.getNextToken()); TreeVector d = (TreeVector)getProject().getFileElement(TreeVector.class, t); if (d!=null) { String path = MesquiteFile.saveFileAsDialog("Save copy of tree block to file"); if (!StringUtil.blank(path)) exportTreesBlock(d, path, commandRec); } } } else if (checker.compare(this.getClass(), "Saves copies of a series of tree blocks to files", "[name of module to fill the trees blocks]", commandName, "exportTreesBlocks")) { //ask user how which taxa, how many characters //create chars block and add to file //return chars TreeVector newTrees=null; Taxa taxa = null; if (getProject().getNumberTaxas()==0) { alert("Trees blocks cannot be created until taxa exist in file."); return null; } else taxa = getProject().chooseTaxa(containerOfModule(), "For which block of taxa do you want to save copies of trees blocks?",commandRec); if (taxa == null) return null; TreeBlockSource treeFillerTask; if (StringUtil.blank(arguments)) treeFillerTask = (TreeBlockSource)hireEmployee(commandRec, TreeBlockSource.class, "Save copies of trees blocks from:"); else treeFillerTask = (TreeBlockSource)hireNamedEmployee(commandRec, TreeBlockSource.class, arguments); if (treeFillerTask != null) { String basePath = MesquiteFile.saveFileAsDialog("Base name for files (files will be named <name>1.nex, <name>2.nex, etc.)"); if (StringUtil.blank(basePath)) { fireEmployee(treeFillerTask); resetAllMenuBars(); return null; } treeFillerTask.initialize(taxa, commandRec); int num = treeFillerTask.getNumberOfTreeBlocks(taxa, commandRec); if (!MesquiteInteger.isCombinable(num)) num = MesquiteInteger.queryInteger(containerOfModule(), "How many trees blocks?", "How many trees blocks of which to save copies?", 10); if (!MesquiteInteger.isCombinable(num)) { fireEmployee(treeFillerTask); resetAllMenuBars(); return null; } MesquiteTrunk.mesquiteTrunk.incrementProjectBrowserRefreshSuppression(); for (int iBlock = 0; iBlock<num; iBlock++){ TreeVector trees = treeFillerTask.getBlock(taxa, iBlock, commandRec); if (trees!=null) exportTreesBlock(trees, basePath + iBlock + ".nex", commandRec); } MesquiteTrunk.mesquiteTrunk.decrementProjectBrowserRefreshSuppression(); if (!showTreeFiller) fireEmployee(treeFillerTask); resetAllMenuBars(); } } else if (checker.compare(this.getClass(), "Shows a list of the stored tree blocks", null, commandName, "showTreeBlocks")) { //Check to see if already has lister for this boolean found = false; for (int i = 0; i<getNumberOfEmployees(); i++) { Object e=getEmployeeVector().elementAt(i); if (e instanceof ManagerAssistant) if ( ((ManagerAssistant)e).getName().equals("Tree Blocks List")) { ((ManagerAssistant)e).getModuleWindow().setVisible(true); return e; } } ManagerAssistant lister= (ManagerAssistant)hireNamedEmployee(commandRec, ManagerAssistant.class, StringUtil.tokenize("Tree Blocks List")); if (lister==null){ alert("Sorry, no module was found to list the tree blocks"); return null; } lister.showListWindow(null, commandRec); if (!commandRec.scripting() && lister.getModuleWindow()!=null) lister.getModuleWindow().setVisible(true); return lister; } else if (checker.compare(this.getClass(), "Sets the tree source for use in filling newly created tree blocks", "[name of tree block filler module]", commandName, "setTreeSource")) { TreeBlockFiller temp= (TreeBlockFiller)replaceEmployee(commandRec, TreeBlockFiller.class, arguments, "Source of trees", treeFillerTask); if (temp!=null) { treeFillerTask= temp; } return treeFillerTask; } else if (checker.compare(this.getClass(), "Fires the tree source for use in filling newly created tree blocks",null, commandName, "fireTreeSource")) { if (treeFillerTask!=null) { fireEmployee(treeFillerTask); treeFillerTask = null; } } else if (checker.compare(this.getClass(), "Links file with trees", null, commandName, "linkTreeFile")) { MesquiteModule fCoord = getFileCoordinator(); fCoord.doCommand("linkTreeFile", StringUtil.argumentMarker + "fuseTreeBlocks", commandRec, checker); } else if (checker.compare(this.getClass(), "Includes file with trees", null, commandName, "includeTreeFile")) { MesquiteModule fCoord = getFileCoordinator(); fCoord.doCommand("includeTreeFile", null, commandRec, checker); } else if (checker.compare(this.getClass(), "Includes file with trees", null, commandName, "includePartialTreeFile")) { //this changed considerably between 1.0 and 1.01, using ManyTreesFromFile to avoid memory overflow if (!commandRec.scripting()){ //only non-scripting MesquiteInteger buttonPressed = new MesquiteInteger(); ExtensibleDialog dialog = new ExtensibleDialog(containerOfModule(), "Trees to Include", buttonPressed); IntegerField firstTree = dialog.addIntegerField("First Tree to Read:", 1, 16); IntegerField lastTree = dialog.addIntegerField("Last Tree to Read:", MesquiteInteger.infinite, 16); IntegerField everyNth = dialog.addIntegerField("Sample Every nth tree:", 1, 16); dialog.completeAndShowDialog(true); dialog.dispose(); if (buttonPressed.getValue()!=0) return null; arguments = ""; TreeSource temp = (TreeSource)hireNamedEmployee(commandRec, TreeSource.class, "#mesquite.trees.ManyTreesFromFile.ManyTreesFromFile"); if (temp == null) discreetAlert(commandRec, "Sorry, the file could not be read because the module \"Trees Directly from File\" could not be started"); else { int start = 0; int last = MesquiteInteger.infinite; int every = 1; if (MesquiteInteger.isCombinable(firstTree.getValue()) && firstTree.getValue() != 1) start = firstTree.getValue() - 1; if (MesquiteInteger.isCombinable(lastTree.getValue())) last = (lastTree.getValue() - 1); if (MesquiteInteger.isCombinable(everyNth.getValue()) && everyNth.getValue() != 1) every = (everyNth.getValue()); Tree first = temp.getTree(null, 0, commandRec); //get first tree to figure out taxa block! if (first == null) { fireEmployee(temp); discreetAlert(commandRec, "Sorry, no tree was obtained"); return null; } Taxa taxa = first.getTaxa(); MesquiteFile file = chooseFile(commandRec, taxa); if (file == null){ fireEmployee(temp); return null; } TreeVector trees = new TreeVector(taxa); Tree tree = null; for (int i= start; (i < last) && (i == start || tree !=null); i+= every){ tree = temp.getTree(taxa, i, commandRec); if (tree !=null) trees.addElement(tree, false); } trees.setName(temp.getParameters()); trees.addToFile(file, getProject(), this); fireEmployee(temp); resetAllMenuBars(); } } } else if (checker.compare(this.getClass(), "Creates a new tree block", "[reference of taxa block] [identification number of file to which tree block will belong] [name of tree block]", commandName, "newTreeBlock")) { //first argument: taxa; second argument: id of file to which to add; third argument name of tree block Taxa taxa=null; MesquiteFile file=null; String listName = null; if (StringUtil.blank(arguments)){ //no taxa specified && no file specified if (getProject().getNumberTaxas()==1 || commandRec.scripting()) { taxa = getProject().getTaxa(0); } else { ListableVector taxas = getProject().getTaxas(); taxa = (Taxa)ListDialog.queryList(containerOfModule(), "Select taxa", "Select taxa (for new tree block)", MesquiteString.helpString,taxas, 0); } file = chooseFile(commandRec, taxa); } else { taxa = getProject().getTaxa(parser.getFirstToken(arguments)); int fileID = MesquiteInteger.fromString(parser.getNextToken()); if (!MesquiteInteger.isCombinable(fileID)) file = getProject().getHomeFile(); else file = getProject().getFileByID(fileID); listName = parser.getNextToken(); } if (taxa==null || file == null) return null; TreeVector trees = makeNewTreeBlock(taxa, treesVector.getUniqueName("Untitled Trees Block"), file); if (!StringUtil.blank(listName)) { trees.setName(listName); resetAllMenuBars(); } else if (!commandRec.scripting()) { String name = MesquiteString.queryShortString(containerOfModule(), "Name of trees block", "Name of trees block", treesVector.getUniqueName("Untitled Trees Block")); if (StringUtil.blank(name)) trees.setName(treesVector.getUniqueName("Untitled Trees Block")); else trees.setName(name); resetAllMenuBars(); } return trees; } else if (checker.compare(this.getClass(), "Concatenates the last tree block into the second last", null, commandName, "concatLastTwo")) { int n = treesVector.size(); if (n<2) return null; TreeVector ultimate = (TreeVector)treesVector.elementAt(n-1); TreeVector penultimate = (TreeVector)treesVector.elementAt(n-2); int target = n-3; while (penultimate.getTaxa()!=ultimate.getTaxa() && target>0) penultimate = (TreeVector)treesVector.elementAt(target); if (penultimate.getTaxa()!=ultimate.getTaxa()) return null; for (int j=0; j<ultimate.size(); j++){ Tree tree = ultimate.getTree(j); if (tree!=null) penultimate.addElement(tree.cloneTree(), false); } getProject().removeFileElement(ultimate);//must remove first, before disposing ultimate.dispose(); } else if (checker.compare(this.getClass(), "Disposes the last block of trees", null, commandName, "disposeLastTreeBlock")) { int n = treesVector.size(); if (n<1) return null; TreeVector ultimate = (TreeVector)treesVector.elementAt(n-1); getProject().removeFileElement(ultimate); ultimate.dispose(); } else if (checker.compare(this.getClass(), "Creates a new filled tree block (internally called, used for scripting)", "[reference of taxa block] [optional -- if id then next token is id not number][number of file in which the tree block should be stored] [name of tree block] [how many trees to make]", commandName, "newFilledTreeBlockIntS")) { if (treeFillerTask == null) //needs to have been previously set return null; Taxa taxa = getProject().getTaxa(parser.getFirstToken(arguments)); if (taxa == null) return null; boolean useID = false; MesquiteFile file=null; String idd = parser.getNextToken(); if ("home".equalsIgnoreCase(idd)) file = getProject().getHomeFile(); else { if ("id".equalsIgnoreCase(idd)) { idd = parser.getNextToken(); useID = true; } int whichFile = MesquiteInteger.fromString(idd); if (!MesquiteInteger.isCombinable(whichFile)) return null; if (useID) file = getProject().getFileByID(whichFile); else file = getProject().getFile(whichFile); } if (file == null) return null; String name = parser.getNextToken(); TreeVector trees = new TreeVector(taxa); if (trees == null) return null; int howManyTrees =0; if (treeFillerTask instanceof TreeSource) howManyTrees =((TreeSource)treeFillerTask).getNumberOfTrees(trees.getTaxa(), commandRec); if (!treeFillerTask.hasLimitedTrees(trees.getTaxa(), commandRec)) { howManyTrees = MesquiteInteger.fromString(parser.getNextToken()); if (!MesquiteInteger.isCombinable(howManyTrees)) return null; } boolean separateThread = false; if (separateThread) { TreeBlockThread tLT = new TreeBlockThread(this, treeFillerTask, trees, howManyTrees, file, commandRec); tLT.start(); } else { long s = System.currentTimeMillis(); int before = trees.size(); treeFillerTask.fillTreeBlock(trees, howManyTrees, commandRec); if (trees.size()==before) { logln("Sorry, no trees were returned by " + treeFillerTask.getName()); return null; } trees.setName(name); logln(Integer.toString(trees.size()) + " trees stored in tree block, from " + treeFillerTask.getName()); trees.addToFile(file, getProject(), this); return trees; } } else if (checker.compare(this.getClass(), "Creates a new filled tree block (internally called from menu item)", "[name of tree source module]", commandName, "newFilledTreeBlockInt")) { //arguments that should be accepted: (1) tree source, (2) which taxa, (3) file id, (4) name of tree block, (5) how many trees [number of taxa block] [identification number of file in which the tree block should be stored] [name of tree block] [how many trees to make] Taxa taxa=null; MesquiteFile file=null; if (getProject().getNumberTaxas()==1) taxa = getProject().getTaxa(0); else { ListableVector taxas = getProject().getTaxas(); taxa = (Taxa)ListDialog.queryList(containerOfModule(), "Select taxa", "Select taxa (for new trees block)",MesquiteString.helpString, taxas, 0); } doCommand("setTreeSource", arguments, commandRec, checker); if (treeFillerTask==null) return null; file = chooseFile(commandRec, taxa); if (taxa==null || file == null) return null; TreeVector trees = new TreeVector(taxa); if (trees == null) return null; int howManyTrees = 0; if (!treeFillerTask.hasLimitedTrees(trees.getTaxa(), commandRec)) { if (treeFillerTask instanceof TreeSource) howManyTrees =((TreeSource)treeFillerTask).getNumberOfTrees(trees.getTaxa(), commandRec); if (!MesquiteInteger.isCombinable(howManyTrees)) howManyTrees = MesquiteInteger.queryInteger(containerOfModule(), "How many trees?", "How many trees?", 100, 1, 100000000); if (!MesquiteInteger.isCombinable(howManyTrees)) return null; } boolean separateThread = true; //TODO: what if the treeFillerTask quits while running? if (separateThread) { TreeBlockThread tLT = new TreeBlockThread(this, treeFillerTask, trees, howManyTrees, file, commandRec); tLT.start(); } else { long s = System.currentTimeMillis(); int before = trees.size(); treeFillerTask.fillTreeBlock(trees, howManyTrees, commandRec); if (trees.size()==before) { alert("Sorry, no trees were returned by " + treeFillerTask.getName()); return null; } if (trees.getName()==null || "Untitled".equalsIgnoreCase(trees.getName())) trees.setName("Trees from " + treeFillerTask.getName()); trees.addToFile(file, getProject(), this); doneQuery(treeFillerTask, taxa, trees); if (!showTreeFiller) fireEmployee(treeFillerTask); resetAllMenuBars(); } } else return super.doCommand(commandName, arguments, commandRec, checker); return null; }
56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/4206c41443aabb1ef72acb8448b91615c4d37d47/ManageTrees.java/clean/Source/mesquite/trees/ManageTrees/ManageTrees.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 1071, 1033, 741, 2189, 12, 780, 20893, 16, 514, 1775, 16, 3498, 2115, 1296, 5650, 16, 3498, 8847, 12489, 13, 288, 377, 202, 225, 202, 430, 261, 19243, 18, 9877, 12, 2211, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 202, 1071, 1033, 741, 2189, 12, 780, 20893, 16, 514, 1775, 16, 3498, 2115, 1296, 5650, 16, 3498, 8847, 12489, 13, 288, 377, 202, 225, 202, 430, 261, 19243, 18, 9877, 12, 2211, 18, 588,...
whoisAction = new JButton("Nick Info"); whoisAction.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { whois(); } });
public XdccIrc(IrcPlugin parent) { this.parent = parent; logger = Logger.getLogger(getClass()); try{ setLayout(new BorderLayout()); createConnection = new JButton("Connect"); createConnection.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { makeConnectionInfo(); } }); newUserAction = new JButton("Talk Private"); newUserAction.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { newUser(); } }); joinChannelAction = new JButton("Join a Channel"); joinChannelAction.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { joinChan(); } }); changeNickAction = new JButton("Change nick"); changeNickAction.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { changeNick(); } }); whoisAction = new JButton("Nick Info"); whoisAction.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { whois(); } }); connectButton = new JButton("Connect"); cancelButton = new JButton("Cancel"); tabbedPane = createTabbedPane(); JPanel panel1 = new JPanel(new FlowLayout(FlowLayout.LEFT)); // Let's create a ToolBar panel1.add(createConnection); panel1.add(newUserAction); panel1.add(joinChannelAction); panel1.add(changeNickAction); panel1.add(whoisAction); add(panel1, BorderLayout.NORTH); add(tabbedPane, BorderLayout.CENTER); // mandatory things to do! //setBounds(50, 50, 600, 400); Toolkit theKit = java.awt.Toolkit.getDefaultToolkit(); Dimension dm = theKit.getScreenSize(); setBounds(dm.width / 6, dm.height / 6, (dm.width * 5) / 8, // width (dm.height * 2) / 3 // height ); setVisible(true); } catch(Exception e){ if (logger.isEnabledFor(Level.ERROR)){ logger.error("Unbehandelte Exception", e); } } }
13641 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13641/94ad224a9ccab8782cbda6190a71cfb9b59a2727/XdccIrc.java/clean/AJClientGUI/plugin_src/ircplugin/src/de/applejuicenet/client/gui/plugins/ircplugin/XdccIrc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 72, 952, 45, 1310, 12, 45, 1310, 3773, 982, 13, 288, 3639, 333, 18, 2938, 273, 982, 31, 3639, 1194, 273, 4242, 18, 588, 3328, 12, 588, 797, 10663, 3639, 775, 95, 5411, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 72, 952, 45, 1310, 12, 45, 1310, 3773, 982, 13, 288, 3639, 333, 18, 2938, 273, 982, 31, 3639, 1194, 273, 4242, 18, 588, 3328, 12, 588, 797, 10663, 3639, 775, 95, 5411, 184...
int currentChar = aci.getBeginIndex();
int start = aci.getBeginIndex(); int currentChar = 0;
protected void doPathLayout() { if (pathApplied) return; if (!spacingApplied) // This will layout the text if needed. adjustTextSpacing(); // if doesn't have an attached text path, just return if (textPath == null) { // We applied the empty path (i.e. do nothing). pathApplied = true; return; } boolean horizontal = !isVertical(); boolean glyphOrientationAuto = isGlyphOrientationAuto(); int glyphOrientationAngle = 0; if (!glyphOrientationAuto) { glyphOrientationAngle = getGlyphOrientationAngle(); } float pathLength = textPath.lengthOfPath(); float startOffset = textPath.getStartOffset(); int numGlyphs = gv.getNumGlyphs(); // make sure all glyphs visible again, this maybe just a change in // offset so they may have been made invisible in a previous // pathLayout call for (int i = 0; i < numGlyphs; i++) { gv.setGlyphVisible(i, true); } // calculate the total length of the glyphs, this will become be // the length along the path that is used by the text float glyphsLength; if (horizontal) { glyphsLength = (float) gv.getLogicalBounds().getWidth(); } else { glyphsLength = (float) gv.getLogicalBounds().getHeight(); } // check that pathLength and glyphsLength are not 0 if (pathLength == 0f || glyphsLength == 0f) { // We applied the empty path. pathApplied = true; textPathAdvance = advance; return; } // the current start point of the character on the path float currentPosition; if (horizontal) { currentPosition = (float)offset.getX() + startOffset; } else { currentPosition = (float)offset.getY() + startOffset; } // calculate the offset of the first glyph the offset will be // 0 if the glyph is on the path (ie. not adjusted by a dy or // dx) Point2D firstGlyphPosition = gv.getGlyphPosition(0); float glyphOffset = 0; // offset perpendicular to path if (horizontal) { glyphOffset = (float)(firstGlyphPosition.getY()); } else { glyphOffset = (float)(firstGlyphPosition.getX()); } char ch = aci.first(); int currentChar = aci.getBeginIndex(); int lastGlyphDrawn = -1; float lastGlyphAdvance = 0; // iterate through the GlyphVector placing each glyph for (int i = 0; i < numGlyphs; i++) { Point2D currentGlyphPosition = gv.getGlyphPosition(i); // calculate the advance and offset for the next glyph, do it // now before we modify the current glyph position float glyphAdvance = 0; // along path float nextGlyphOffset = 0; // perpendicular to path eg dy or dx if (i < gv.getNumGlyphs()-1) { Point2D nextGlyphPosition = gv.getGlyphPosition(i+1); if (horizontal) { glyphAdvance = (float)(nextGlyphPosition.getX() - currentGlyphPosition.getX()); nextGlyphOffset = (float)(nextGlyphPosition.getY() - currentGlyphPosition.getY()); } else { glyphAdvance = (float)(nextGlyphPosition.getY() - currentGlyphPosition.getY()); nextGlyphOffset = (float)(nextGlyphPosition.getX() - currentGlyphPosition.getX()); } } else { // last glyph, use the glyph metrics GVTGlyphMetrics gm = gv.getGlyphMetrics(i); if (horizontal) { if ((glyphOrientationAngle == 0) || (glyphOrientationAngle == 180)) { glyphAdvance = gm.getHorizontalAdvance(); } else { // 90 || 270 glyphAdvance = gm.getVerticalAdvance(); } } else { if (glyphOrientationAuto) { if (isLatinChar(ch)) { glyphAdvance = gm.getHorizontalAdvance(); } else { glyphAdvance = gm.getVerticalAdvance(); } } else { if ((glyphOrientationAngle == 0) || (glyphOrientationAngle == 180)) { glyphAdvance = gm.getVerticalAdvance(); } else { // 90 || 270 glyphAdvance = gm.getHorizontalAdvance(); } } } } // calculate the center line position for the glyph Rectangle2D glyphBounds = gv.getGlyphOutline(i).getBounds2D(); float glyphWidth = (float) glyphBounds.getWidth(); float glyphHeight = (float) glyphBounds.getHeight(); float charMidPos; if (horizontal) { charMidPos = currentPosition + glyphWidth / 2f; } else { charMidPos = currentPosition + glyphHeight / 2f; } // Calculate the actual point to place the glyph around Point2D charMidPoint = textPath.pointAtLength(charMidPos); // Check if the glyph is actually on the path if (charMidPoint != null) { // Calculate the normal to the path (midline of glyph) float angle = textPath.angleAtLength(charMidPos); // Define the transform of the glyph AffineTransform glyphPathTransform = new AffineTransform(); // rotate midline of glyph to be normal to path if (horizontal) { glyphPathTransform.rotate(angle); } else { glyphPathTransform.rotate(angle-(Math.PI/2)); } // re-apply any offset eg from tspan, or spacing adjust if (horizontal) { glyphPathTransform.translate(0, glyphOffset); } else { glyphPathTransform.translate(glyphOffset, 0); } // translate glyph backwards so we rotate about the // center of the glyph if (horizontal) { if (glyphOrientationAngle == 270) { glyphPathTransform.translate(glyphWidth / 2f, 0f); } else { // 0 || 90 || 180 glyphPathTransform.translate(-glyphWidth / 2f, 0f); } } else { if (glyphOrientationAuto) { if (isLatinChar(ch)) { glyphPathTransform.translate(0f, -glyphHeight/2f); } else { glyphPathTransform.translate(0f, glyphHeight/2f); } } else { if (glyphOrientationAngle == 0) { glyphPathTransform.translate(0, glyphHeight / 2f); } else { // 90 || 180 || 270 glyphPathTransform.translate(0, -glyphHeight / 2f); } } } // set the new glyph position and transform AffineTransform glyphTransform = gv.getGlyphTransform(i); if (glyphTransform != null) { glyphPathTransform.concatenate(glyphTransform); } gv.setGlyphTransform(i, glyphPathTransform); gv.setGlyphPosition(i, new Point2D.Double(charMidPoint.getX(), charMidPoint.getY())); // keep track of the last glyph drawn to make calculating the // textPathAdvance value easier later lastGlyphDrawn = i; lastGlyphAdvance = glyphAdvance; } else { // not on path so don't render gv.setGlyphVisible(i, false); } currentPosition += glyphAdvance; glyphOffset += nextGlyphOffset; currentChar += gv.getCharacterCount(i,i); ch = aci.setIndex(aci.getBeginIndex() + i + gv.getCharacterCount(i,i)); } // store the position where a following glyph should be drawn, // note: this will only be used if the following text layout is not // on a text path if (lastGlyphDrawn > -1) { Point2D lastGlyphPos = gv.getGlyphPosition(lastGlyphDrawn); if (horizontal) { textPathAdvance = new Point2D.Double (lastGlyphPos.getX()+lastGlyphAdvance, lastGlyphPos.getY()); } else { textPathAdvance = new Point2D.Double (lastGlyphPos.getX(), lastGlyphPos.getY()+lastGlyphAdvance); } } else { textPathAdvance = new Point2D.Double(0,0); } // The default layout is junk now... layoutApplied = false; // The spacing stuff is junk now. spacingApplied = false; pathApplied = true; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/67074622e17bf0eead09841961ad66989d032b9b/GlyphLayout.java/clean/sources/org/apache/batik/gvt/text/GlyphLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 743, 3744, 1435, 288, 3639, 309, 261, 803, 16203, 13, 2398, 327, 31, 3639, 309, 16051, 14080, 16203, 13, 5411, 368, 1220, 903, 3511, 326, 977, 309, 3577, 18, 5411, 5765, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 743, 3744, 1435, 288, 3639, 309, 261, 803, 16203, 13, 2398, 327, 31, 3639, 309, 16051, 14080, 16203, 13, 5411, 368, 1220, 903, 3511, 326, 977, 309, 3577, 18, 5411, 5765, ...
stmt.executeUpdate("DROP TABLE " + table);
String sql = "DROP TABLE " + table; if (con instanceof org.postgresql.jdbc1.AbstractJdbc1Connection && ((org.postgresql.jdbc1.AbstractJdbc1Connection)con).haveMinimumServerVersion("7.3")) { sql += " CASCADE "; } stmt.executeUpdate(sql);
public static void dropTable(Connection con, String table) { try { Statement stmt = con.createStatement(); try { stmt.executeUpdate("DROP TABLE " + table); } catch (SQLException ex) { // ignore } } catch (SQLException ex) { TestCase.fail(ex.getMessage()); } }
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/d634a5903f615a45cb463155c04d3df904e1b91a/TestUtil.java/clean/src/interfaces/jdbc/org/postgresql/test/TestUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3640, 1388, 12, 1952, 356, 16, 514, 1014, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 1082, 202, 698, 1082, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3640, 1388, 12, 1952, 356, 16, 514, 1014, 13, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 3406, 3480, 273, 356, 18, 2640, 3406, 5621, 1082, 202, 698, 1082, 20...
return dqp.getWidth();
return dqp.getFieldWidth();
public int getImageWidth() { return dqp.getWidth(); }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/338e2cdd63a229bfd34b66eed7dac9b93cff587e/SaveAsImageFileChooser.java/buggy/src/openmap/com/bbn/openmap/gui/menu/SaveAsImageFileChooser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 10567, 2384, 1435, 288, 3639, 327, 302, 14166, 18, 588, 974, 2384, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 10567, 2384, 1435, 288, 3639, 327, 302, 14166, 18, 588, 974, 2384, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
case VM_Statics.STRING_LITERAL: category = "literal"; details = "\"" + ((String) BootImageMap.getObject(ival)). replace('\n', ' ') + "\""; break; case VM_Statics.REFERENCE_FIELD: category = "field "; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.TIB: category = "tib "; VM_Type type = findTypeOfTIBSlot(jtocSlot); details = (type == null) ? "?" : type.toString(); break; case VM_Statics.METHOD: category = "code "; VM_CompiledMethod m = findMethodOfCode(BootImageMap.getObject(ival)); details = (m == null) ? "<?>" : m.getMethod().toString(); break;
case VM_Statics.STRING_LITERAL: category = "literal"; details = "\"" + ((String) BootImageMap.getObject(ival)).replace('\n', ' ') +"\""; break; case VM_Statics.REFERENCE_FIELD: category = "field "; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.TIB: category = "tib "; VM_Type type = findTypeOfTIBSlot(jtocSlot); details = (type == null) ? "?" : type.toString(); break; case VM_Statics.METHOD: category = "code "; VM_CompiledMethod m = findMethodOfCode(BootImageMap.getObject(ival)); details = m == null ? "<?>" : m.getMethod().toString(); break;
private static void writeAddressMap(String mapFileName) throws IOException { if (verbose >= 1) say("writing ", mapFileName); FileOutputStream fos = new FileOutputStream(mapFileName); BufferedOutputStream bos = new BufferedOutputStream(fos, 128); PrintStream out = new PrintStream(bos, false); out.println("#! /bin/bash"); out.println("# This is a method address map, for use with the ``dbx'' debugger."); out.println("# To sort by \"code\" address, type \"bash <name-of-this-file>\"."); out.println(); out.println("(/bin/grep 'code 0x' | /bin/sort -k 4.3,4) << EOF-EOF-EOF"); out.println(); out.println("JTOC Map"); out.println("--------"); out.println("slot offset category contents details"); out.println("---- ------ -------- -------- -------"); String pad = " "; for (int jtocSlot = 0; jtocSlot < VM_Statics.getNumberOfSlots(); ++jtocSlot) { byte description = VM_Statics.getSlotDescription(jtocSlot); String category = "<?> "; String contents = "<?> " + pad; String details = "<?>"; int ival; // temporaries long lval; String sval; switch (description) { case VM_Statics.EMPTY: category = "unused "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = ""; break; case VM_Statics.INT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = VM_Statics.getSlotContentsAsInt(jtocSlot) + ""; break; case VM_Statics.FLOAT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = Float.intBitsToFloat(ival) + "F"; break; case VM_Statics.LONG_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = lval + "L"; break; case VM_Statics.DOUBLE_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = Double.longBitsToDouble(lval) + "D"; break; case VM_Statics.NUMERIC_FIELD: category = "field "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.WIDE_NUMERIC_FIELD: category = "field "; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.STRING_LITERAL: case VM_Statics.REFERENCE_FIELD: case VM_Statics.METHOD: case VM_Statics.TIB: if (VM.BuildFor32Addr) { ival = VM_Statics.getSlotContentsAsInt(jtocSlot); int addr = BootImageMap.getImageAddress(bootImageAddress, BootImageMap.getObject(ival)); contents = VM.intAsHexString(addr) + pad; } else { ival = (int) VM_Statics.getSlotContentsAsLong(jtocSlot); // just a cookie int addr = BootImageMap.getImageAddress(bootImageAddress, BootImageMap.getObject(ival)); contents = VM.intAsHexString(addr) + pad; } switch (description) { case VM_Statics.STRING_LITERAL: category = "literal"; details = "\"" + ((String) BootImageMap.getObject(ival)). replace('\n', ' ') + "\""; break; case VM_Statics.REFERENCE_FIELD: category = "field "; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.TIB: category = "tib "; VM_Type type = findTypeOfTIBSlot(jtocSlot); details = (type == null) ? "?" : type.toString(); break; case VM_Statics.METHOD: category = "code "; VM_CompiledMethod m = findMethodOfCode(BootImageMap.getObject(ival)); details = (m == null) ? "<?>" : m.getMethod().toString(); break; } break; default: break; } out.println((jtocSlot + " ").substring(0,6) + VM.intAsHexString(jtocSlot << LOG_BYTES_IN_INT) + " " + category + " " + contents + " " + details); if ((description & VM_Statics.WIDE_TAG) != 0) jtocSlot += 1; } out.println(); out.println("Method Map"); out.println("----------"); out.println(" address method"); out.println(" ------- ------"); out.println(); VM_CompiledMethod[] compiledMethods = VM_CompiledMethods.getCompiledMethods(); for (int i = 0; i < VM_CompiledMethods.numCompiledMethods(); ++i) { VM_CompiledMethod compiledMethod = compiledMethods[i]; if (compiledMethod != null) { VM_Method m = compiledMethod.getMethod(); if (m != null && compiledMethod.isCompiled()) { Object instructions = compiledMethod.getInstructions(); int code = BootImageMap.getImageAddress(bootImageAddress, instructions); out.println(". . code " + VM.intAsHexString(code) + " " + compiledMethod.getMethod()); } } } out.println(); out.println("EOF-EOF-EOF"); out.flush(); out.close(); }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/d041cee44c17f6abd929589454ec86a0965b40b6/BootImageWriter.java/clean/rvm/src/tools/bootImageWriter/BootImageWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 1045, 1887, 863, 12, 780, 852, 4771, 13, 1216, 1860, 288, 565, 309, 261, 11369, 1545, 404, 13, 12532, 2932, 14345, 3104, 852, 4771, 1769, 565, 12942, 17615, 273, 394, 1294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 1045, 1887, 863, 12, 780, 852, 4771, 13, 1216, 1860, 288, 565, 309, 261, 11369, 1545, 404, 13, 12532, 2932, 14345, 3104, 852, 4771, 1769, 565, 12942, 17615, 273, 394, 1294...
public WorkingSetSelectionDialog(Shell parentShell, IWorkingSet[] workingSets, boolean multi, boolean sorted) { super(parentShell); contentProvider = new ListContentProvider(); labelProvider = new WorkingSetLabelProvider(); multiSelect = multi; if (multiSelect) { setTitle(WorkbenchMessages .getString("WorkingSetSelectionDialog.title.multiSelect")); setMessage(WorkbenchMessages .getString("WorkingSetSelectionDialog.message.multiSelect")); } else { setTitle(WorkbenchMessages .getString("WorkingSetSelectionDialog.title")); setMessage(WorkbenchMessages .getString("WorkingSetSelectionDialog.message")); } this.sorted= sorted; fElements= new ArrayList(Arrays.asList(workingSets));
public WorkingSetSelectionDialog(Shell parentShell, boolean multi) { this(parentShell, WorkbenchPlugin.getDefault().getWorkingSetManager().getWorkingSets(), multi, true);
public WorkingSetSelectionDialog(Shell parentShell, IWorkingSet[] workingSets, boolean multi, boolean sorted) { super(parentShell); contentProvider = new ListContentProvider(); labelProvider = new WorkingSetLabelProvider(); multiSelect = multi; if (multiSelect) { setTitle(WorkbenchMessages .getString("WorkingSetSelectionDialog.title.multiSelect")); //$NON-NLS-1$; setMessage(WorkbenchMessages .getString("WorkingSetSelectionDialog.message.multiSelect")); //$NON-NLS-1$ } else { setTitle(WorkbenchMessages .getString("WorkingSetSelectionDialog.title")); //$NON-NLS-1$; setMessage(WorkbenchMessages .getString("WorkingSetSelectionDialog.message")); //$NON-NLS-1$ } this.sorted= sorted; fElements= new ArrayList(Arrays.asList(workingSets)); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b74592f35df4d2a05962d321af90fcb23dcea12f/WorkingSetSelectionDialog.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/WorkingSetSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22732, 694, 6233, 6353, 12, 13220, 982, 13220, 16, 467, 14836, 694, 8526, 5960, 2785, 16, 1250, 3309, 16, 1250, 3115, 13, 288, 3639, 2240, 12, 2938, 13220, 1769, 3639, 913, 2249, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22732, 694, 6233, 6353, 12, 13220, 982, 13220, 16, 467, 14836, 694, 8526, 5960, 2785, 16, 1250, 3309, 16, 1250, 3115, 13, 288, 3639, 2240, 12, 2938, 13220, 1769, 3639, 913, 2249, 27...
DateFormat f = (new SimpleDateFormat("MM/dd/yyy H:mm:ss")); f.setTimeZone(TimeZone.getTimeZone(timezone_property)); c_time_msec = f.parse(cdate_property).getTime();
try { DateFormat f = (new SimpleDateFormat("MM/dd/yyy H:mm:ss")); f.setTimeZone(TimeZone.getTimeZone(timezone_property)); c_time_msec = f.parse(cdate_property).getTime(); } catch (ParseException e) { if (logger.isErrorEnabled()) logger.warn("Error: could not parse CDate -> " + cdate_property); return 0l; }
private static long extractCDateFromSociety () { long c_time_msec = 0L; String cdate_property = System.getProperty("org.cougaar.core.agent.startTime"); String timezone_property = System.getProperty("user.timezone"); if ((cdate_property == null) || (timezone_property == null)) return c_time_msec; DateFormat f = (new SimpleDateFormat("MM/dd/yyy H:mm:ss")); f.setTimeZone(TimeZone.getTimeZone(timezone_property)); c_time_msec = f.parse(cdate_property).getTime();/* TimeZone tz = TimeZone.getTimeZone(timezone_property); GregorianCalendar gc = new GregorianCalendar (tz); StringTokenizer st = new StringTokenizer (cdate_property, "/"); String c_time_month_string = st.nextToken(); String c_time_day_string = st.nextToken(); String c_time_year_string = st.nextToken(); // Month is offset from zero, others are not // Last three are hour, minute, second gc.set (Integer.parseInt (c_time_year_string), Integer.parseInt (c_time_month_string) - 1, Integer.parseInt (c_time_day_string), 0, 0, 0); c_time_msec = gc.getTime().getTime();*/ // This was needed to ensure that the milliseconds were set to 0 c_time_msec = c_time_msec / 1000; c_time_msec *= 1000; return c_time_msec; } /* end of extractCDateFromSociety */
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/171f86bebd686d5994141c106dd21f2fc265d8c3/ExtractionHelper.java/clean/stoplight/src/org/cougaar/logistics/ui/stoplight/society/ExtractionHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1525, 2608, 39, 1626, 31145, 1882, 14369, 1832, 288, 565, 1525, 276, 67, 957, 67, 81, 3321, 273, 374, 48, 31, 565, 514, 276, 712, 67, 4468, 273, 1377, 2332, 18, 588, 1396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1525, 2608, 39, 1626, 31145, 1882, 14369, 1832, 288, 565, 1525, 276, 67, 957, 67, 81, 3321, 273, 374, 48, 31, 565, 514, 276, 712, 67, 4468, 273, 1377, 2332, 18, 588, 1396, ...
When the following child is the catchTarget,
When the following child is the catchTarget (or the finallyTarget if there are no catches),
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsData.itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsData.itsVariableTable. getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { Number num = (Number)node.getDatum(); if (num.doubleValue() == 0.0) iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); else if (num.doubleValue() == 1.0) iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ while (child != null) { if (lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget, the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ if (child.getNextSibling() == catchTarget) iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsData.itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/024a61b8eb683ab3fab2ce527b7ff260f952b329/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3...
gridLayout.numColumns = 1;
protected Control createContents(Composite parent) { Composite container = new Composite(parent, SWT.NONE); GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true); container.setLayoutData(gridData); GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 1; gridLayout.horizontalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; gridLayout.verticalSpacing = 0; container.setLayout(gridLayout); Composite progressArea = new Composite(container, SWT.NONE); super.createContents(progressArea); // making the margins the same in each direction gridLayout = (GridLayout) progressArea.getLayout(); gridLayout.marginHeight = gridLayout.marginWidth; return container; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ec38e8e79bb481591eda5b282cb65b6e12c4ed99/StartupProgressMonitorDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/StartupProgressMonitorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 751, 3068, 751, 273, 394, 7145, 751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 751, 3068, 751, 273, 394, 7145, 751, ...
schemaImage = JFaceResources.getImage(SCHEMA_ICON); dataBaseImage = JFaceResources.getImage(DATABASE_ICON); columnImage = JFaceResources.getImage(COLUMN_ICON);
schemaImage = JFaceResources.getImage( SCHEMA_ICON ); dataBaseImage = JFaceResources.getImage( DATABASE_ICON ); columnImage = JFaceResources.getImage( COLUMN_ICON );
private void initialize() {// dataSourceImage = JFaceResources.getImage( PAGE_ICON ); tableImage = JFaceResources.getImage( TABLE_ICON ); viewImage = JFaceResources.getImage( VIEW_ICON ); schemaImage = JFaceResources.getImage(SCHEMA_ICON); dataBaseImage = JFaceResources.getImage(DATABASE_ICON); columnImage = JFaceResources.getImage(COLUMN_ICON); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a1d63df7ad61ba2dd517aea885b14083b21a8b5b/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 1435, 202, 95, 759, 202, 202, 892, 1830, 2040, 273, 804, 11824, 3805, 18, 588, 2040, 12, 11549, 67, 21745, 11272, 9506, 202, 2121, 2040, 273, 804, 11824, 3805, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 1435, 202, 95, 759, 202, 202, 892, 1830, 2040, 273, 804, 11824, 3805, 18, 588, 2040, 12, 11549, 67, 21745, 11272, 9506, 202, 2121, 2040, 273, 804, 11824, 3805, 18, ...
if (c2dm.getDrawMode() == c2dm.MOVE)
if (c2dm.getDrawMode() == Controller2DModel.MOVE)
public void mousePressed(MouseEvent event) { isUndoableChange = false; int[] screenCoords = {event.getX(), event.getY()}; int[] mouseCoords = getWorldCoordinates(screenCoords); int mouseX = mouseCoords[0]; int mouseY = mouseCoords[1]; logger.debug("MousePressed Event Props: mode=", c2dm.getDrawModeString()); if (logger.isDebugEnabled()) { logger.debug(" trigger=" + event.isPopupTrigger() + /* * ", Button number: " + event.getButton() + */ ", Click count: " + event.getClickCount()); } int startX = 0; int startY = 0; r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); Atom atomInRange = getAtomInRange(mouseX, mouseY); Bond bondInRange = getBondInRange(mouseX, mouseY); if (atomInRange != null) { startX = (int) atomInRange.getX2d(); startY = (int) atomInRange.getY2d(); r2dm.setPointerVectorStart(new Point(startX, startY)); } else { r2dm.setPointerVectorStart(new Point(mouseX, mouseY)); } if (c2dm.getDrawMode() == c2dm.MOVE) { selectNearestChemObjectIfNoneSelected(mouseX, mouseY); dragMode = DRAG_MOVING_SELECTED; } else if (c2dm.getDrawMode() == c2dm.DRAWBOND || c2dm.getDrawMode() == c2dm.DOWN_BOND || c2dm.getDrawMode() == c2dm.UP_BOND) { if (bondInRange != null && atomInRange == null) { // make sure we are not dragging a bond } else { dragMode = DRAG_DRAWING_PROPOSED_BOND; lastAtomInRange = atomInRange; } } else if (c2dm.getDrawMode() == c2dm.MAPATOMATOM) { dragMode = DRAG_DRAWING_PROPOSED_ATOMATOMMAP; } else if (c2dm.getDrawMode() == c2dm.SELECT) { dragMode = DRAG_MAKING_SQUARE_SELECTION; } else if (c2dm.getDrawMode() == c2dm.LASSO) { dragMode = DRAG_MAKING_LASSO_SELECTION; } else if (c2dm.getDrawMode() == c2dm.RING || c2dm.getDrawMode() == c2dm.BENZENERING) { dragMode = DRAG_DRAWING_PROPOSED_RING; } }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/b26a7336f19d2669cc404aabf392e4fc14a8d7ad/Controller2D.java/buggy/src/org/openscience/cdk/controller/Controller2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7644, 24624, 12, 9186, 1133, 871, 13, 202, 95, 202, 202, 291, 31224, 429, 3043, 273, 629, 31, 202, 202, 474, 8526, 5518, 13089, 273, 288, 2575, 18, 588, 60, 9334, 871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7644, 24624, 12, 9186, 1133, 871, 13, 202, 95, 202, 202, 291, 31224, 429, 3043, 273, 629, 31, 202, 202, 474, 8526, 5518, 13089, 273, 288, 2575, 18, 588, 60, 9334, 871, ...
public String generateHeader(MClassifier cls, String pathname, String packagePath) { String s = ""; //needs-more-work: add user-defined copyright s += "// FILE: " + pathname.replace('\\','/') +"\n\n"; hasNamespace = false; if (packagePath.length() > 0) { s += "namespace " + packagePath + " {\n"; hasNamespace = true; } s += "\n"; // check if the class has a base class String baseClass = generateGeneralzation(cls.getGeneralizations()); // check if the class has dependencies // { // Collection col = cls.getAssociationEnds(); // if (col != null){ // Iterator itr = col.iterator(); // while (itr.hasNext()) { // MAssociationEnd ae = (MAssociationEnd) itr.next(); // MAssociation a = ae.getAssociation(); // ae = ae.getOppositeEnd(); // if (ae.isNavigable()) { // MClassifier cls2 = ae.getType(); // String name = cls2.getName(); // String name2 = cls.getName(); // if (name != name2){ // s += "require_once \"" + name + ".php\";\n"; // } // } // } // } // } // { // Collection col = cls.getClientDependencies(); // System.out.println("col: " + col); // if (col != null){ // Iterator itr = col.iterator(); // while (itr.hasNext()) { // MDependency dep = (MDependency) itr.next(); // Collection clients_col = dep.getSuppliers(); // Iterator itr2 = clients_col.iterator(); // while (itr2.hasNext()){ // String name = ((MClassifier) itr2.next()).getName(); // s += "require_once \"" + name + ".php\";\n"; // } // } // } // } return s; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/GeneratorCSharp.java/clean/modules/csharp/src/org/argouml/language/csharp/generator/GeneratorCSharp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 1864, 12, 49, 13860, 2028, 16, 514, 9806, 16, 514, 27503, 13, 288, 565, 514, 272, 273, 1408, 31, 565, 368, 20600, 17, 10161, 17, 1252, 30, 527, 729, 17, 2178, 22245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 2103, 1864, 12, 49, 13860, 2028, 16, 514, 9806, 16, 514, 27503, 13, 288, 565, 514, 272, 273, 1408, 31, 565, 368, 20600, 17, 10161, 17, 1252, 30, 527, 729, 17, 2178, 22245, ...
void init() {
private void init() {
void init() { menubar = new Menubar(this); setJMenuBar(menubar); toolBar = new JToolBar(); JButton button; JButton breakButton, goButton, stepIntoButton, stepOverButton, stepOutButton; String [] toolTips = {"Break (Pause)", "Go (F5)", "Step Into (F11)", "Step Over (F7)", "Step Out (F8)"}; int count = 0; button = breakButton = new JButton("Break"); JButton focusButton = button; button.setToolTipText("Break"); button.setActionCommand("Break"); button.addActionListener(menubar); button.setEnabled(true); button.setToolTipText(toolTips[count++]); button = goButton = new JButton("Go"); button.setToolTipText("Go"); button.setActionCommand("Go"); button.addActionListener(menubar); button.setEnabled(false); button.setToolTipText(toolTips[count++]); button = stepIntoButton = new JButton("Step Into"); button.setToolTipText("Step Into"); button.setActionCommand("Step Into"); button.addActionListener(menubar); button.setEnabled(false); button.setToolTipText(toolTips[count++]); button = stepOverButton = new JButton("Step Over"); button.setToolTipText("Step Over"); button.setActionCommand("Step Over"); button.setEnabled(false); button.addActionListener(menubar); button.setToolTipText(toolTips[count++]); button = stepOutButton = new JButton("Step Out"); button.setToolTipText("Step Out"); button.setActionCommand("Step Out"); button.setEnabled(false); button.addActionListener(menubar); button.setToolTipText(toolTips[count++]); Dimension dim = stepOverButton.getPreferredSize(); breakButton.setPreferredSize(dim); breakButton.setMinimumSize(dim); breakButton.setMaximumSize(dim); breakButton.setSize(dim); goButton.setPreferredSize(dim); goButton.setMinimumSize(dim); goButton.setMaximumSize(dim); stepIntoButton.setPreferredSize(dim); stepIntoButton.setMinimumSize(dim); stepIntoButton.setMaximumSize(dim); stepOverButton.setPreferredSize(dim); stepOverButton.setMinimumSize(dim); stepOverButton.setMaximumSize(dim); stepOutButton.setPreferredSize(dim); stepOutButton.setMinimumSize(dim); stepOutButton.setMaximumSize(dim); toolBar.add(breakButton); toolBar.add(goButton); toolBar.add(stepIntoButton); toolBar.add(stepOverButton); toolBar.add(stepOutButton); JPanel contentPane = new JPanel(); contentPane.setLayout(new BorderLayout()); getContentPane().add(toolBar, BorderLayout.NORTH); getContentPane().add(contentPane, BorderLayout.CENTER); desk = new JDesktopPane(); desk.setPreferredSize(new Dimension(600, 300)); desk.setMinimumSize(new Dimension(150, 50)); desk.add(console = new JSInternalConsole("JavaScript Console")); context = new ContextWindow(this); context.setPreferredSize(new Dimension(600, 120)); context.setMinimumSize(new Dimension(50, 50)); split1 = new JSplitPane(JSplitPane.VERTICAL_SPLIT, desk, context); split1.setOneTouchExpandable(true); SwingGui.setResizeWeight(split1, 0.66); contentPane.add(split1, BorderLayout.CENTER); statusBar = new JLabel(); statusBar.setText("Thread: "); contentPane.add(statusBar, BorderLayout.SOUTH); dlg = new JFileChooser(); javax.swing.filechooser.FileFilter filter = new javax.swing.filechooser.FileFilter() { public boolean accept(File f) { if (f.isDirectory()) { return true; } String n = f.getName(); int i = n.lastIndexOf('.'); if (i > 0 && i < n.length() -1) { String ext = n.substring(i + 1).toLowerCase(); if (ext.equals("js")) { return true; } } return false; } public String getDescription() { return "JavaScript Files (*.js)"; } }; dlg.addChoosableFileFilter(filter); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { exit(); } }); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/2d4fc75b74d717c754829dde488ff0a7456682cc/SwingGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1208, 1435, 565, 288, 3639, 21247, 373, 297, 273, 394, 490, 275, 373, 297, 12, 2211, 1769, 3639, 444, 46, 4599, 5190, 12, 27617, 373, 297, 1769, 3639, 5226, 5190, 273, 394, 804, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1208, 1435, 565, 288, 3639, 21247, 373, 297, 273, 394, 490, 275, 373, 297, 12, 2211, 1769, 3639, 444, 46, 4599, 5190, 12, 27617, 373, 297, 1769, 3639, 5226, 5190, 273, 394, 804, 63...
NSArray attributes = entity.attributes(); NSArray classProperties = entity.classProperties(); NSArray attributesUsedForLocking = entity.attributesUsedForLocking();
NSArray attributes = entity.attributes().immutableClone(); NSArray classProperties = entity.classProperties().immutableClone(); NSArray attributesUsedForLocking = entity.attributesUsedForLocking().immutableClone();
protected void createLocalizedAttributes(EOEntity entity) { NSArray attributes = entity.attributes(); NSArray classProperties = entity.classProperties(); NSArray attributesUsedForLocking = entity.attributesUsedForLocking(); if(attributes == null) attributes = NSArray.EmptyArray; if(classProperties == null) classProperties = NSArray.EmptyArray; if(attributesUsedForLocking == null) attributesUsedForLocking = NSArray.EmptyArray; NSMutableArray mutableClassProperties = classProperties.mutableClone(); NSMutableArray mutableAttributesUsedForLocking = attributesUsedForLocking.mutableClone(); for(Enumeration e = attributes.objectEnumerator(); e.hasMoreElements(); ) { EOAttribute attribute = (EOAttribute)e.nextElement(); NSDictionary userInfo = attribute.userInfo(); String name = attribute.name(); if(userInfo != null) { NSArray languages = (NSArray)userInfo.objectForKey("ERXLanguages"); if(languages != null && languages.count() > 0) { String columnName = attribute.columnName(); for (int i = 0; i < languages.count(); i++) { String language = (String) languages.objectAtIndex(i); String newName = name + "_" +language; String newColumnName = columnName + "_" +language; EOAttribute newAttribute = new EOAttribute(); newAttribute.setPrototype(attribute.prototype()); newAttribute.setName(newName); newAttribute.setColumnName(newColumnName); newAttribute.setAllowsNull(attribute.allowsNull()); newAttribute.setClassName(attribute.className()); newAttribute.setExternalType(attribute.externalType()); newAttribute.setWidth(attribute.width()); entity.addAttribute(newAttribute); if(classProperties.containsObject(attribute)) { mutableClassProperties.addObject(newAttribute); } if(attributesUsedForLocking.containsObject(attribute)) { mutableAttributesUsedForLocking.addObject(newAttribute); } } entity.removeAttribute(attribute); mutableClassProperties.removeObject(attribute); mutableAttributesUsedForLocking.removeObject(attribute); } } entity.setClassProperties(mutableClassProperties); entity.setAttributesUsedForLocking(mutableAttributesUsedForLocking); } }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/e1911f4c5115b90d758107b1cc90245a05b2477f/EOFSQLGenerator.java/buggy/wolips/core/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/sql/EOFSQLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 2042, 1235, 2498, 12, 41, 51, 1943, 1522, 13, 288, 202, 202, 3156, 1076, 1677, 273, 1522, 18, 4350, 5621, 202, 202, 3156, 1076, 667, 2297, 273, 1522, 18, 1106, 2297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 2042, 1235, 2498, 12, 41, 51, 1943, 1522, 13, 288, 202, 202, 3156, 1076, 1677, 273, 1522, 18, 4350, 5621, 202, 202, 3156, 1076, 667, 2297, 273, 1522, 18, 1106, 2297...
ms += zoneOffset; ms += getDstOffset(ms);
ms += zoneOffset; ms += getDstOffset(ms);
private void writeDatetimeValue(Object value_in, int nativeType) throws java.io.IOException { comm.appendByte((byte)nativeType); if( value_in == null ) { comm.appendByte((byte)8); comm.appendByte((byte)0); } else { final int secondsPerDay = 24 * 60 * 60; final int msPerDay = secondsPerDay * 1000; final int nsPerMs = 1000 * 1000; final int msPerMinute = 1000 * 60; // epochsDifference is the number of days between unix // epoch (1970 based) and the sybase epoch (1900 based) final int epochsDifference = 25567; // ms is the number of milliseconds into unix epoch long ms = 0; if (value_in instanceof java.sql.Timestamp) { Timestamp value = (Timestamp)value_in; ms = value.getTime(); // SAfe If the value contains only an integral number of seconds, add the nanoseconds, // otherwise they have probably already been added. This seems to be a problem with // J2SE 1.4 and later, which override the java.util.Date.getTime() implementation // and add the nanos there (although the javadoc comment hasn't changed). if( ms%1000 == 0 ) ms += (value.getNanos()/nsPerMs); } else ms = ((java.util.Date)value_in).getTime(); ms += zoneOffset; ms += getDstOffset(ms); long msIntoCurrentDay = ms % msPerDay; long daysIntoUnixEpoch = ms / msPerDay; // SAfe This happens with dates prior to 1970 (UNIX epoch) if( msIntoCurrentDay < 0 ) { msIntoCurrentDay += msPerDay; daysIntoUnixEpoch -= 1; } if( value_in instanceof java.sql.Date ) msIntoCurrentDay = 0; else if( value_in instanceof java.sql.Time ) daysIntoUnixEpoch = 0; int daysIntoSybaseEpoch = (int)daysIntoUnixEpoch + epochsDifference; // If the number of seconds and milliseconds are set to zero, then // pass this as a smalldatetime parameter. Otherwise, pass it as // a datetime parameter if( (msIntoCurrentDay % msPerMinute)==0 && daysIntoSybaseEpoch > Short.MIN_VALUE && daysIntoSybaseEpoch < Short.MAX_VALUE ) { comm.appendByte((byte)4); comm.appendByte((byte)4); comm.appendTdsShort((short)daysIntoSybaseEpoch); comm.appendTdsShort((short)(msIntoCurrentDay / msPerMinute)); } else { // SAfe Rounding problem: without the +100, 'Jan 4 2003 2:22:39:803' would get passed as // 'Jan 4 2003 2:22:39:800'. Should we use +500 instead? int jiffies = (int)((msIntoCurrentDay*300 + 100) / 1000); comm.appendByte((byte)8); comm.appendByte((byte)8); comm.appendTdsInt(daysIntoSybaseEpoch); comm.appendTdsInt(jiffies); } } }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1045, 16103, 620, 12, 921, 460, 67, 267, 16, 509, 6448, 559, 13, 1216, 2252, 18, 1594, 18, 14106, 282, 288, 1377, 1543, 18, 6923, 3216, 12443, 7229, 13, 13635, 559, 1769, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1045, 16103, 620, 12, 921, 460, 67, 267, 16, 509, 6448, 559, 13, 1216, 2252, 18, 1594, 18, 14106, 282, 288, 1377, 1543, 18, 6923, 3216, 12443, 7229, 13, 13635, 559, 1769, 137...
ClassLoader classLoader = runtime.getJavaSupport().getJavaClassLoader(); String xname = name.replace('\\', '/'); if (xname.charAt(0) == '/') { URL loc = classLoader.getResource(xname);
} catch (AccessControlException accessEx) { } catch (IllegalArgumentException illArgEx) { }
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } // ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); JRubyFile file = JRubyFile.create(runtime.getCurrentDirectory(),name); if(file.isFile() && file.isAbsolute()) { try { return new LoadServiceResource(file.toURL(),name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } ClassLoader classLoader = runtime.getJavaSupport().getJavaClassLoader(); String xname = name.replace('\\', '/'); // Look in classpath next (we do not use File as a test since UNC names will match) // Note: Jar resources must always begin with an '/'. if (xname.charAt(0) == '/') { URL loc = classLoader.getResource(xname); // Make sure this is not a directory or unavailable in some way if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); } } for (Iterator pathIter = loadPath.iterator(); pathIter.hasNext();) { String entry = pathIter.next().toString(); if (entry.startsWith("jar:")) { JarFile current = (JarFile)jarFiles.get(entry); if(null == current) { try { current = new JarFile(entry.substring(4)); jarFiles.put(entry,current); } catch (FileNotFoundException ignored) { } catch (IOException e) { throw runtime.newIOErrorFromException(e); } } if (current.getJarEntry(name) != null) { try { return new LoadServiceResource(new URL(entry + name), entry + name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } } // // Load from local filesystem // NormalizedFile current = (NormalizedFile)new NormalizedFile(entry, name).getAbsoluteFile(); JRubyFile current = JRubyFile.create(JRubyFile.create(runtime.getCurrentDirectory(),entry).getAbsolutePath(), name); if (current.isFile()) { try { return new LoadServiceResource(current.toURL(), current.getPath()); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } // otherwise, try to load from classpath (Note: Jar resources always uses '/') URL loc = classLoader.getResource(entry.replace('\\', '/') + "/" + xname); // Make sure this is not a directory or unavailable in some way if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); } } // Try to load from classpath without prefix. "A/b.rb" will not load as // "./A/b.rb" in a jar file. (Note: Jar resources always uses '/') URL loc = classLoader.getResource(xname); return isRequireable(loc) ? new LoadServiceResource(loc, loc.getPath()) : null; // } catch (MalformedURLException e) { // throw runtime.newIOErrorFromException(e); // } }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/buggy/src/org/jruby/runtime/load/LoadService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4444, 1179, 1420, 1104, 812, 12, 780, 508, 13, 288, 3639, 368, 3639, 775, 288, 5411, 309, 261, 529, 18, 17514, 1190, 2932, 11930, 2773, 3719, 288, 7734, 775, 288, 10792, 327, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4444, 1179, 1420, 1104, 812, 12, 780, 508, 13, 288, 3639, 368, 3639, 775, 288, 5411, 309, 261, 529, 18, 17514, 1190, 2932, 11930, 2773, 3719, 288, 7734, 775, 288, 10792, 327, 394, ...
if ((acct = sAccountCache.getByName(key)) != null)
if ((acct = mAccountCache.getByName(key)) != null)
public Account get(AccountBy keyType, String key) throws ServiceException { Account acct = null; Map<String,Object> attrs = null; if (keyType == AccountBy.id) { if ((acct = sAccountCache.getById(key)) != null) return acct; attrs = DbOfflineDirectory.readDirectoryEntry(EntryType.ACCOUNT, A_zimbraId, key); } else if (keyType == AccountBy.name) { if ((acct = sAccountCache.getByName(key)) != null) return acct; attrs = DbOfflineDirectory.readDirectoryEntry(EntryType.ACCOUNT, A_offlineDn, key); } else if (keyType == AccountBy.adminName) { if ((acct = sAccountCache.getByName(key)) != null) return acct; if (key.equals(LC.zimbra_ldap_user.value())) { attrs = new HashMap<String,Object>(7); attrs.put(A_mail, key); attrs.put(A_cn, key); attrs.put(A_sn, key); attrs.put(A_zimbraId, UUID.randomUUID().toString()); attrs.put(A_zimbraAccountStatus, ACCOUNT_STATUS_ACTIVE); attrs.put(A_offlineRemotePassword, LC.zimbra_ldap_password.value()); attrs.put(A_zimbraIsAdminAccount, TRUE); } } if (attrs == null) return null; acct = new Account((String) attrs.get(A_mail), (String) attrs.get(A_zimbraId), attrs, sDefaultCos.getAccountDefaults()); sAccountCache.put(acct); return acct; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/f7887fe038d09a2917c4312e46e0d727013cf619/OfflineProvisioning.java/clean/ZimbraOffline/src/java/com/zimbra/cs/account/offline/OfflineProvisioning.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6590, 336, 12, 3032, 858, 14867, 16, 514, 498, 13, 1216, 16489, 288, 3639, 6590, 20774, 273, 446, 31, 3639, 1635, 32, 780, 16, 921, 34, 3422, 273, 446, 31, 3639, 309, 261, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6590, 336, 12, 3032, 858, 14867, 16, 514, 498, 13, 1216, 16489, 288, 3639, 6590, 20774, 273, 446, 31, 3639, 1635, 32, 780, 16, 921, 34, 3422, 273, 446, 31, 3639, 309, 261, 856, ...