rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
public void releaseWritableTile(int tileX, int tileY) {
public void releaseWritableTile(int tileX, int tileY) {
public void releaseWritableTile(int tileX, int tileY) { isTileWritable(tileX, tileY); // for exception }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/BufferedImage.java/clean/core/src/classpath/java/java/awt/image/BufferedImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3992, 12061, 9337, 12, 474, 4769, 60, 16, 509, 4769, 61, 13, 288, 202, 202, 291, 9337, 12061, 12, 15368, 60, 16, 4769, 61, 1769, 368, 364, 1520, 202, 97, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3992, 12061, 9337, 12, 474, 4769, 60, 16, 509, 4769, 61, 13, 288, 202, 202, 291, 9337, 12061, 12, 15368, 60, 16, 4769, 61, 1769, 368, 364, 1520, 202, 97, 2, -100, -100,...
sc.add( "}" ); }
sc.unindent(); sc.add( "}" );
private void writeFieldParsing( ModelClass modelClass, ModelField field, JSourceCode sc, String statement, Model objectModel ) { if ( field.getDelegateTo() != null ) { } else { String type = field.getType(); String name = field.getName(); String className = capitalise( field.getName() ); String modelClassName = uncapitalise( modelClass.getName() ); sc.add( statement + " ( parser.getName().equals( \"" + field.getName() + "\" ) )" ); sc.add( "{" ); sc.indent(); if ( isClassInModel( type, objectModel ) ) { sc.add( type + " " + name + " = new " + type + "();" ); sc.add( modelClassName + ".set" + className + "( " + name + " );" ); writeClassParsing( objectModel.getClass( field.getType() ), sc, objectModel, true ); } else if ( isCollection( type ) ) { writeCollectionParsing( modelClassName, name, sc, objectModel ); } else if ( isMap( type ) ) { // These are properties for now. writePropertiesParsing( modelClassName, name, sc, objectModel ); } else { sc.add( modelClassName + ".set" + className + "( parser.nextText() );" ); } sc.unindent(); sc.add( "}" ); } }
47828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47828/6d23d24e45536cd509c7e9828ece43c02463570d/Xpp3ReaderGenerator.java/clean/modello-core/src/main/java/org/codehaus/modello/generator/xml/xpp3/Xpp3ReaderGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 974, 13963, 12, 3164, 797, 13082, 16, 3164, 974, 652, 16, 804, 1830, 1085, 888, 16, 514, 3021, 16, 3164, 733, 1488, 262, 565, 288, 3639, 309, 261, 652, 18, 588, 9586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 974, 13963, 12, 3164, 797, 13082, 16, 3164, 974, 652, 16, 804, 1830, 1085, 888, 16, 514, 3021, 16, 3164, 733, 1488, 262, 565, 288, 3639, 309, 261, 652, 18, 588, 9586, ...
case Id_indexOf: return wrap_int( jsFunction_indexOf(ScriptRuntime.toString(thisObj), args));
case Id_lastIndexOf: return wrap_int(jsFunction_lastIndexOf (ScriptRuntime.toString(thisObj), args));
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case ConstructorId_fromCharCode: return jsStaticFunction_fromCharCode(args); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(); case Id_valueOf: return realThis(thisObj, f). jsFunction_valueOf(); case Id_charAt: return jsFunction_charAt(ScriptRuntime.toString(thisObj), args); case Id_charCodeAt: return wrap_double( jsFunction_charCodeAt(ScriptRuntime.toString(thisObj), args)); case Id_indexOf: return wrap_int( jsFunction_indexOf(ScriptRuntime.toString(thisObj), args)); case Id_lastIndexOf: return wrap_int( jsFunction_lastIndexOf(ScriptRuntime.toString(thisObj), args)); case Id_split: return jsFunction_split(cx, ScriptRuntime.toString(thisObj), args, f); case Id_substring: return jsFunction_substring(cx, ScriptRuntime.toString(thisObj), args); case Id_toLowerCase: return jsFunction_toLowerCase(ScriptRuntime.toString(thisObj)); case Id_toUpperCase: return jsFunction_toUpperCase(ScriptRuntime.toString(thisObj)); case Id_substr: return jsFunction_substr(ScriptRuntime.toString(thisObj), args); case Id_concat: return jsFunction_concat(ScriptRuntime.toString(thisObj), args); case Id_slice: return jsFunction_slice(ScriptRuntime.toString(thisObj), args); case Id_bold: return realThis(thisObj, f). jsFunction_bold(); case Id_italics: return realThis(thisObj, f). jsFunction_italics(); case Id_fixed: return realThis(thisObj, f). jsFunction_fixed(); case Id_strike: return realThis(thisObj, f). jsFunction_strike(); case Id_small: return realThis(thisObj, f). jsFunction_small(); case Id_big: return realThis(thisObj, f). jsFunction_big(); case Id_blink: return realThis(thisObj, f). jsFunction_blink(); case Id_sup: return realThis(thisObj, f). jsFunction_sup(); case Id_sub: return realThis(thisObj, f). jsFunction_sub(); case Id_fontsize: return realThis(thisObj, f). jsFunction_fontsize(ScriptRuntime.toString(args, 0)); case Id_fontcolor: return realThis(thisObj, f). jsFunction_fontcolor(ScriptRuntime.toString(args, 0)); case Id_link: return realThis(thisObj, f). jsFunction_link(ScriptRuntime.toString(args, 0)); case Id_anchor: return realThis(thisObj, f). jsFunction_anchor(ScriptRuntime.toString(args, 0)); case Id_equals: return wrap_boolean( jsFunction_equals(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_equalsIgnoreCase: return wrap_boolean( jsFunction_equalsIgnoreCase(ScriptRuntime.toString(thisObj), ScriptRuntime.toString(args, 0))); case Id_match: return jsFunction_match(cx, thisObj, args, f); case Id_search: return jsFunction_search(cx, thisObj, args, f); case Id_replace: return jsFunction_replace(cx, thisObj, args, f); } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/35caf7c2bb93872680ae16e34746d94fe1e533e3/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
out.write(buf.toString().getBytes());
out.write(buf.toString());
public void renderStatusHTML(OutputStream out) throws IOException { out.write(("<h1>Router console</h1>\n" + "<i><a href=\"/oldconsole.jsp\">console</a> | <a href=\"/oldstats.jsp\">stats</a></i><br>\n" + "<form action=\"/oldconsole.jsp\">" + "<select name=\"go\" onChange='location.href=this.value'>" + "<option value=\"/oldconsole.jsp#bandwidth\">Bandwidth</option>\n" + "<option value=\"/oldconsole.jsp#clients\">Clients</option>\n" + "<option value=\"/oldconsole.jsp#transports\">Transports</option>\n" + "<option value=\"/oldconsole.jsp#profiles\">Peer Profiles</option>\n" + "<option value=\"/oldconsole.jsp#tunnels\">Tunnels</option>\n" + "<option value=\"/oldconsole.jsp#jobs\">Jobs</option>\n" + "<option value=\"/oldconsole.jsp#shitlist\">Shitlist</option>\n" + "<option value=\"/oldconsole.jsp#pending\">Pending messages</option>\n" + "<option value=\"/oldconsole.jsp#netdb\">Network Database</option>\n" + "<option value=\"/oldconsole.jsp#logs\">Log messages</option>\n" + "</select> <input type=\"submit\" value=\"GO\" /> </form>" + "<hr />\n").getBytes()); StringBuffer buf = new StringBuffer(32*1024); if ( (_routerInfo != null) && (_routerInfo.getIdentity() != null) ) buf.append("<b>Router: </b> ").append(_routerInfo.getIdentity().getHash().toBase64()).append("<br />\n"); buf.append("<b>As of: </b> ").append(new Date(_context.clock().now())).append(" (uptime: ").append(DataHelper.formatDuration(getUptime())).append(") <br />\n"); buf.append("<b>Started on: </b> ").append(new Date(getWhenStarted())).append("<br />\n"); buf.append("<b>Clock offset: </b> ").append(_context.clock().getOffset()).append("ms (OS time: ").append(new Date(_context.clock().now() - _context.clock().getOffset())).append(")<br />\n"); long tot = Runtime.getRuntime().totalMemory()/1024; long free = Runtime.getRuntime().freeMemory()/1024; buf.append("<b>Memory:</b> In use: ").append((tot-free)).append("KB Free: ").append(free).append("KB <br />\n"); buf.append("<b>Version:</b> Router: ").append(RouterVersion.VERSION).append(" / SDK: ").append(CoreVersion.VERSION).append("<br />\n"); if (_higherVersionSeen) buf.append("<b><font color=\"red\">HIGHER VERSION SEEN</font><b> - please <a href=\"http://www.i2p.net/\">check</a> to see if there is a new release out<br />\n"); buf.append("<hr /><a name=\"bandwidth\"> </a><h2>Bandwidth</h2>\n"); long sent = _context.bandwidthLimiter().getTotalAllocatedOutboundBytes(); long received = _context.bandwidthLimiter().getTotalAllocatedInboundBytes(); buf.append("<ul>"); buf.append("<li> ").append(sent).append(" bytes sent, "); buf.append(received).append(" bytes received</li>"); long notSent = _context.bandwidthLimiter().getTotalWastedOutboundBytes(); long notReceived = _context.bandwidthLimiter().getTotalWastedInboundBytes(); buf.append("<li> ").append(notSent).append(" bytes outbound bytes unused, "); buf.append(notReceived).append(" bytes inbound bytes unused</li>"); DecimalFormat fmt = new DecimalFormat("##0.00"); // we use the unadjusted time, since thats what getWhenStarted is based off long lifetime = _context.clock().now()-_context.clock().getOffset() - getWhenStarted(); lifetime /= 1000; if ( (sent > 0) && (received > 0) ) { double sendKBps = sent / (lifetime*1024.0); double receivedKBps = received / (lifetime*1024.0); buf.append("<li>Lifetime rate: "); buf.append(fmt.format(sendKBps)).append("KBps sent "); buf.append(fmt.format(receivedKBps)).append("KBps received"); buf.append("</li>"); } if ( (notSent > 0) && (notReceived > 0) ) { double notSendKBps = notSent / (lifetime*1024.0); double notReceivedKBps = notReceived / (lifetime*1024.0); buf.append("<li>Lifetime unused rate: "); buf.append(fmt.format(notSendKBps)).append("KBps outbound unused "); buf.append(fmt.format(notReceivedKBps)).append("KBps inbound unused"); buf.append("</li>"); } RateStat sendRate = _context.statManager().getRate("transport.sendMessageSize"); for (int i = 0; i < sendRate.getPeriods().length; i++) { Rate rate = sendRate.getRate(sendRate.getPeriods()[i]); double bytes = rate.getLastTotalValue(); long ms = rate.getLastTotalEventTime() + rate.getLastTotalEventTime(); if (ms <= 0) { bytes = 0; ms = 1; } buf.append("<li>"); buf.append(DataHelper.formatDuration(rate.getPeriod())).append(" instantaneous send avg: "); double bps = bytes*1000.0d/ms; if (bps > 2048) { bps /= 1024.0d; buf.append(fmt.format(bps)).append(" KBps"); } else { buf.append(fmt.format(bps)).append(" Bps"); } buf.append(" over ").append((long)bytes).append(" bytes"); buf.append("</li><li>"); buf.append(DataHelper.formatDuration(rate.getPeriod())).append(" period send avg: "); bps = bytes*1000.0d/(rate.getPeriod()); if (bps > 2048) { bps /= 1024.0d; buf.append(fmt.format(bps)).append(" KBps"); } else { buf.append(fmt.format(bps)).append(" Bps"); } buf.append(" over ").append((long)bytes).append(" bytes"); buf.append("</li>"); } RateStat receiveRate = _context.statManager().getRate("transport.receiveMessageSize"); for (int i = 0; i < receiveRate.getPeriods().length; i++) { Rate rate = receiveRate.getRate(receiveRate.getPeriods()[i]); double bytes = rate.getLastTotalValue(); long ms = rate.getLastTotalEventTime(); if (ms <= 0) { bytes = 0; ms = 1; } buf.append("<li>"); buf.append(DataHelper.formatDuration(rate.getPeriod())).append(" instantaneous receive avg: "); double bps = bytes*1000.0d/ms; if (bps > 2048) { bps /= 1024.0d; buf.append(fmt.format(bps)).append(" KBps "); } else { buf.append(fmt.format(bps)).append(" Bps "); } buf.append(" over ").append((long)bytes).append(" bytes"); buf.append("</li><li>"); buf.append(DataHelper.formatDuration(rate.getPeriod())).append(" period receive avg: "); bps = bytes*1000.0d/(rate.getPeriod()); if (bps > 2048) { bps /= 1024.0d; buf.append(fmt.format(bps)).append(" KBps"); } else { buf.append(fmt.format(bps)).append(" Bps"); } buf.append(" over ").append((long)bytes).append(" bytes"); buf.append("</li>"); } buf.append("</ul>\n"); buf.append("<i>Instantaneous averages count how fast the transfers go when we're trying to transfer data, "); buf.append("while period averages count how fast the transfers go across the entire period, even when we're not "); buf.append("trying to transfer data. Lifetime averages count how many elephants there are on the moon [like anyone reads this text]</i>"); buf.append("\n"); out.write(buf.toString().getBytes()); _context.bandwidthLimiter().renderStatusHTML(out); out.write("<hr /><a name=\"clients\"> </a>\n".getBytes()); _context.clientManager().renderStatusHTML(out); out.write("\n<hr /><a name=\"transports\"> </a>\n".getBytes()); _context.commSystem().renderStatusHTML(out); out.write("\n<hr /><a name=\"profiles\"> </a>\n".getBytes()); _context.peerManager().renderStatusHTML(out); out.write("\n<hr /><a name=\"tunnels\"> </a>\n".getBytes()); _context.tunnelManager().renderStatusHTML(out); out.write("\n<hr /><a name=\"jobs\"> </a>\n".getBytes()); _context.jobQueue().renderStatusHTML(out); out.write("\n<hr /><a name=\"shitlist\"> </a>\n".getBytes()); _context.shitlist().renderStatusHTML(out); out.write("\n<hr /><a name=\"pending\"> </a>\n".getBytes()); _context.messageRegistry().renderStatusHTML(out); out.write("\n<hr /><a name=\"netdb\"> </a>\n".getBytes()); _context.netDb().renderStatusHTML(out); buf.setLength(0); buf.append("\n<hr /><a name=\"logs\"> </a>\n"); List msgs = _context.logManager().getBuffer().getMostRecentMessages(); buf.append("\n<h2>Most recent console messages:</h2><table border=\"1\">\n"); for (Iterator iter = msgs.iterator(); iter.hasNext(); ) { String msg = (String)iter.next(); buf.append("<tr><td valign=\"top\" align=\"left\"><pre>"); appendLogMessage(buf, msg); buf.append("</pre></td></tr>\n"); } buf.append("</table>\n"); out.write(buf.toString().getBytes()); }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/62ed6c6a58f9adaa081ae5a6cb591d18c6ad4f85/Router.java/buggy/router/java/src/net/i2p/router/Router.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1743, 1482, 4870, 12, 4632, 596, 13, 1216, 1860, 288, 3639, 596, 18, 2626, 12, 2932, 32, 76, 21, 34, 8259, 2983, 1757, 76, 21, 5333, 82, 6, 397, 10402, 3532, 77, 4438, 69, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 1482, 4870, 12, 4632, 596, 13, 1216, 1860, 288, 3639, 596, 18, 2626, 12, 2932, 32, 76, 21, 34, 8259, 2983, 1757, 76, 21, 5333, 82, 6, 397, 10402, 3532, 77, 4438, 69, ...
elementDescriptor = parentTag.getDescriptor();
final XmlElementDescriptor parentDescriptor = parentTag.getDescriptor();
private void checkTagByDescriptor(final XmlTag tag) { String name = tag.getName(); XmlElementDescriptor elementDescriptor; final PsiElement parent = tag.getParent(); if (parent instanceof XmlTag) { XmlTag parentTag = (XmlTag)parent; elementDescriptor = parentTag.getDescriptor(); boolean nullParentDescriptor = false; if (elementDescriptor != null) { elementDescriptor = elementDescriptor.getElementDescriptor(tag); } else { nullParentDescriptor = true; } if (elementDescriptor instanceof AnyXmlElementDescriptor || nullParentDescriptor) { elementDescriptor = tag.getDescriptor(); } if (elementDescriptor == null) { if (nullParentDescriptor) return; addElementsForTag( tag, "Element " + name + " is not allowed here", myResult, getTagProblemInfoType(tag), null ); return; } } else { //root tag elementDescriptor = tag.getDescriptor(); if (elementDescriptor == null) { addElementsForTag(tag, "Element " + name + " must be declared", myResult, HighlightInfoType.WRONG_REF, null); return; } } XmlAttributeDescriptor[] attributeDescriptors = elementDescriptor.getAttributesDescriptors(); Set<String> requiredAttributes = null; for (XmlAttributeDescriptor attribute : attributeDescriptors) { if (attribute != null && attribute.isRequired()) { if (requiredAttributes == null) { requiredAttributes = new HashSet<String>(); } requiredAttributes.add(attribute.getDefaultName()); } } if (requiredAttributes != null) { for (final String attrName : requiredAttributes) { if (tag.getAttribute(attrName, tag.getNamespace()) == null) { if (!(elementDescriptor instanceof JspElementDescriptor) || !((JspElementDescriptor)elementDescriptor).isRequiredAttributeImplicitlyPresent(tag, attrName) ) { addElementsForTag( tag, "Element " + name + " doesn't have required attribute " + attrName, myResult, HighlightInfoType.WRONG_REF, new IntentionAction() { public String getText() { return "Insert Required Attribute"; } public String getFamilyName() { return "Insert Required Attribute"; } public boolean isAvailable(Project project, Editor editor, PsiFile file) { return true; } public void invoke(final Project project, final Editor editor, PsiFile file) { if (!CodeInsightUtil.prepareFileForWrite(file)) return; ASTNode treeElement = SourceTreeToPsiMap.psiElementToTree(tag); PsiElement anchor = SourceTreeToPsiMap.treeElementToPsi( XmlChildRole.EMPTY_TAG_END_FINDER.findChild(treeElement) ); if (anchor == null) { anchor = SourceTreeToPsiMap.treeElementToPsi( XmlChildRole.START_TAG_END_FINDER.findChild(treeElement) ); } if (anchor == null) return; final Template template = TemplateManager.getInstance(project).createTemplate("", ""); template.addTextSegment(" " + attrName + "=\""); Expression expression = new Expression() { TextResult result = new TextResult(""); public Result calculateResult(ExpressionContext context) { return result; } public Result calculateQuickResult(ExpressionContext context) { return null; } public LookupItem[] calculateLookupItems(ExpressionContext context) { return new LookupItem[0]; } }; template.addVariable("name", expression, expression, true); template.addTextSegment("\""); final PsiElement anchor1 = anchor; final Runnable runnable = new Runnable() { public void run() { ApplicationManager.getApplication().runWriteAction( new Runnable() { public void run() { int textOffset = anchor1.getTextOffset(); editor.getCaretModel().moveToOffset(textOffset); TemplateManager.getInstance(project).startTemplate(editor, template, null); } } ); } }; if (!ApplicationManager.getApplication().isUnitTestMode()) { Runnable commandRunnable = new Runnable() { public void run() { CommandProcessor.getInstance().executeCommand( project, runnable, getText(), getFamilyName() ); } }; ApplicationManager.getApplication().invokeLater(commandRunnable); } else { runnable.run(); } } public boolean startInWriteAction() { return true; } } ); return; } } } } if (elementDescriptor instanceof Validator) { ((Validator)elementDescriptor).validate(tag,this); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/13c262b3e5f3a112915283eb6e198c40e8d06a21/XmlHighlightVisitor.java/clean/source/com/intellij/codeInsight/daemon/impl/analysis/XmlHighlightVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 866, 1805, 858, 3187, 12, 6385, 5714, 1805, 1047, 13, 288, 565, 514, 508, 273, 1047, 18, 17994, 5621, 565, 15412, 3187, 930, 3187, 31, 565, 727, 453, 7722, 1046, 982, 273, 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, 282, 3238, 918, 866, 1805, 858, 3187, 12, 6385, 5714, 1805, 1047, 13, 288, 565, 514, 508, 273, 1047, 18, 17994, 5621, 565, 15412, 3187, 930, 3187, 31, 565, 727, 453, 7722, 1046, 982, 273, 10...
implReset();
protected final CoderResult implFlush(CharBuffer out) { try{ data[OUTPUT_OFFSET] = getArray(out); ec=NativeConverter.flushByteToChar( converterHandle, /* Handle to ICU Converter */ output, /* input array of chars */ outEnd, /* input index+1 to be written */ data /* contains data, inOff,outOff */ ); /* If we don't have room for the output, throw an exception*/ if (ErrorCode.isFailure(ec)) { if (ec == ErrorCode.U_BUFFER_OVERFLOW_ERROR) { return CoderResult.OVERFLOW; }else if (ec == ErrorCode.U_TRUNCATED_CHAR_FOUND) {//CSDL: add this truncated character error handling return CoderResult.malformedForLength(data[INPUT_OFFSET]); }else { ErrorCode.getException(ec); } } implReset(); return CoderResult.UNDERFLOW; }finally{ /* save the flushed data */ setPosition(out); } }
7297 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7297/f275a9d6cd022527e500814ee8337d6dd968aef1/CharsetDecoderICU.java/buggy/src/classes/com/ibm/icu4jni/charset/CharsetDecoderICU.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 727, 385, 5350, 1253, 9380, 8207, 12, 2156, 1892, 596, 13, 288, 4202, 775, 95, 6647, 501, 63, 15527, 67, 11271, 65, 273, 12634, 12, 659, 1769, 13491, 6557, 33, 9220, 5072, 18, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 385, 5350, 1253, 9380, 8207, 12, 2156, 1892, 596, 13, 288, 4202, 775, 95, 6647, 501, 63, 15527, 67, 11271, 65, 273, 12634, 12, 659, 1769, 13491, 6557, 33, 9220, 5072, 18, 113...
if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } else if(GrailsClassUtils.isDomainClass( relatedClassType )) { Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); } else { property.setPersistant(false); } } else { property.setPersistant(false); } }
if(relatedClassType != null) { property.setReferencedPropertyType(relatedClassType); if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } else if(GrailsClassUtils.isDomainClass( relatedClassType )) { Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); } else { property.setPersistant(false); } } else { property.setPersistant(false); } }
private void establishRelationshipForSet(DefaultGrailsDomainClassProperty property) { // is it a relationship Class relatedClassType = getRelatedClassType( property.getName() ); if(relatedClassType != null) { // set the referenced type in the property property.setReferencedPropertyType(relatedClassType); // if the related class is the same as this class // its a circular one-to-many if(relatedClassType.getName().equals(getFullName())){ property.setOneToMany(true); property.setBidirectional(true); } // if the related type is a domain class // then figure out what kind of relationship it is else if(GrailsClassUtils.isDomainClass( relatedClassType )) { // check the relationship defined in the referenced type // if it is also a Set/domain class etc. Map relatedClassRelationships = GrailsDomainConfigurationUtil.getAssociationMap(relatedClassType); Class relatedClassPropertyType = null; // if the related type has a relationships map it may be a many-to-many // figure out if there is a many-to-many relationship defined if( relatedClassRelationships != null && !relatedClassRelationships.isEmpty() ) { String relatedClassPropertyName = null; // retrieve the relationship property for(Iterator i = relatedClassRelationships.keySet().iterator();i.hasNext();) { String currentKey = (String)i.next(); Class currentClass = (Class) relatedClassRelationships.get( currentKey ); if(currentClass.getName().equals( getClazz().getName() )) { relatedClassPropertyName = currentKey; break; } } // if there is one defined get the type if(relatedClassPropertyName != null) { relatedClassPropertyType = GrailsClassUtils.getProperyType( relatedClassType, relatedClassPropertyName); } } // otherwise figure out if there is a one-to-many relationship by retrieving any properties that are of the related type // if there is more than one property then (for the moment) ignore the relationship if(relatedClassPropertyType == null) { PropertyDescriptor[] descriptors = GrailsClassUtils.getPropertiesOfType(relatedClassType, getClazz()); if(descriptors.length == 1) { relatedClassPropertyType = descriptors[0].getPropertyType(); } } establishRelationshipForSetToType(property,relatedClassPropertyType); } // otherwise set it to not persistent as you can't persist // relationships to non-domain classes else { property.setPersistant(false); } } else { // no relationship defined for set. // set not persistent property.setPersistant(false); } }
51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/58974951e3276884850340e13cf2bb066cb110b9/DefaultGrailsDomainClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 18312, 8180, 1290, 694, 12, 1868, 14571, 14573, 3748, 797, 1396, 1272, 13, 288, 202, 202, 759, 353, 518, 279, 5232, 202, 202, 797, 3746, 18328, 273, 21531, 18328, 12, 1272...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18312, 8180, 1290, 694, 12, 1868, 14571, 14573, 3748, 797, 1396, 1272, 13, 288, 202, 202, 759, 353, 518, 279, 5232, 202, 202, 797, 3746, 18328, 273, 21531, 18328, 12, 1272...
private synchronized void fail(InserterException e) {
private void fail(InserterException e) {
private synchronized void fail(InserterException e) { Logger.minor(this, "Failing: "+e, e); if(finished) return; if(sfi != null) sfi.cancel(); if(metadataPutter != null) metadataPutter.cancel(); finished = true; cb.onFailure(e, this); }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/a99fbfa9db79808f376d90d1b435c8efcfb94698/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 3852, 918, 2321, 12, 382, 550, 387, 503, 425, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3754, 310, 30, 13773, 73, 16, 425, 1769, 1082, 202, 430, 12, 13527, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1152, 3852, 918, 2321, 12, 382, 550, 387, 503, 425, 13, 288, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3754, 310, 30, 13773, 73, 16, 425, 1769, 1082, 202, 430, 12, 13527, 1...
internalOnSetTarget(TargetEvent.TARGET_REMOVED, oldTargets);
public synchronized void setTarget(Object o) { if (isInTargetTransaction()) return; if ((_targets.size() == 0 && o == null) || (_targets.size() == 1 && _targets.get(0).equals(o))) return; startTargetTransaction(); Object oldTargets[] = _targets.toArray(); _targets.clear(); internalOnSetTarget(TargetEvent.TARGET_REMOVED, oldTargets); if (o != null) _targets.add(o); internalOnSetTarget(TargetEvent.TARGET_SET, oldTargets); endTargetTransaction(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/21c4cbeef10fac9f8160514fcf9ceace6ce0b639/TargetManager.java/clean/src_new/org/argouml/ui/targetmanager/TargetManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 18367, 12, 921, 320, 13, 288, 202, 430, 261, 291, 382, 2326, 3342, 10756, 202, 565, 327, 31, 202, 430, 14015, 67, 11358, 18, 1467, 1435, 422, 374, 597, 320, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 18367, 12, 921, 320, 13, 288, 202, 430, 261, 291, 382, 2326, 3342, 10756, 202, 565, 327, 31, 202, 430, 14015, 67, 11358, 18, 1467, 1435, 422, 374, 597, 320, 422, 446, ...
public DataCube(Array parentArray) {
public DataCube(ArrayInterface parentArray) {
public DataCube(Array parentArray) { this.parentArray = parentArray; init(); }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/d3cf59077fd7d0243cdc777745556c82ae0466d5/DataCube.java/buggy/src/gov/nasa/gsfc/adc/xdf/DataCube.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 39, 4895, 12, 1076, 1358, 982, 1076, 13, 288, 377, 333, 18, 2938, 1076, 273, 982, 1076, 31, 377, 1208, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1910, 39, 4895, 12, 1076, 1358, 982, 1076, 13, 288, 377, 333, 18, 2938, 1076, 273, 982, 1076, 31, 377, 1208, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
private void send (int event) { // at this point, we've filled the tiles with data // however, we don't know the size of the space // Calculate the highest indexed tile used so far, and update the subspace Address start = subspace.getStart(); int required = countTileNum(start, maxAddr, blockSize); int current = subspace.getBlockNum(); if (required > current || maxAddr != subspace.getEnd()) { subspace.reset(start, maxAddr, 0, required); allTileNum = required; space.resize(allTileNum); setTilenames(subspace, allTileNum); } // start the communication space.startComm(); int numTiles = allTileNum; //Log.writeln("TreadmillDriver: sending, allTileNum=", numTiles); // (1) Used Space stream // send the stream data space.stream(LOS_USED_SPACE_STREAM, numTiles); for (int i = 0; i < numTiles; ++i) { //checkspace(i, 0, "send"); if (Assert.VERIFY_ASSERTIONS) if (tiles[i].usedSpace > subspace.getBlockSize()) { Log.write("Bad value for TreadmillDriver Used Space stream: "); Log.write(tiles[i].usedSpace); Log.writeln(" max=", subspace.getBlockSize()); // Assert._assert(false); } space.streamIntValue(tiles[i].usedSpace); } space.streamEnd(); // send the summary data space.summary(LOS_USED_SPACE_STREAM, 2 /*items to send*/); space.summaryValue(totalUsedSpace); space.summaryValue(subspace.getEnd().diff(subspace.getStart()).toInt()); space.summaryEnd(); // (2) Objects stream space.stream(LOS_OBJECTS_STREAM, numTiles); for (int i = 0; i < numTiles; ++i) { if (Assert.VERIFY_ASSERTIONS) if (tiles[i].objects > subspace.getBlockSize()/threshold) { Log.write("Bad value for TreadmillDriver Objects stream: "); Log.write(tiles[i].usedSpace); Log.writeln(" max=", (int)(subspace.getBlockSize()/threshold)); // Assert._assert(false); } space.streamShortValue(tiles[i].objects); } space.streamEnd(); space.summary(LOS_OBJECTS_STREAM, 1); space.summaryValue(totalObjects); space.summaryEnd(); // send the control info // all of space is USED controlValues(tiles, AbstractTile.CONTROL_USED, subspace.getFirstIndex(), subspace.getBlockNum()); space.controlEnd(numTiles, tiles); // send the space info Offset size = subspace.getEnd().diff(subspace.getStart()); sendSpaceInfoAndEndComm(size); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/TreadmillDriver.java/clean/MMTk/src/org/mmtk/utility/gcspy/drivers/TreadmillDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1366, 261, 474, 871, 13, 288, 565, 368, 622, 333, 1634, 16, 732, 8081, 6300, 326, 12568, 598, 501, 565, 368, 14025, 16, 732, 2727, 1404, 5055, 326, 963, 434, 326, 3476, 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, 1366, 261, 474, 871, 13, 288, 565, 368, 622, 333, 1634, 16, 732, 8081, 6300, 326, 12568, 598, 501, 565, 368, 14025, 16, 732, 2727, 1404, 5055, 326, 963, 434, 326, 3476, 565, ...
switch (kind & ~EXCEPTION) {
switch (getBaseKind()) {
public String toString() { String pfx = ""; if (DEBUG_EXCEPTION) { pfx = (kind & EXCEPTION) != 0 ? "e" : "_"; } switch (kind & ~EXCEPTION) { case NULL: return pfx + "n"; case CHECKED_NULL: return pfx + "w"; case NN: return pfx + "N"; case CHECKED_NN: return pfx + "W"; case NSP: return pfx + "s"; case NN_UNKNOWN: return pfx + "-"; case NCP2: return pfx + "/"; default: throw new IllegalStateException("unknown kind of IsNullValue: " + kind); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/5a87ae4b828bca972e1c7b535b3a459935153999/IsNullValue.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 780, 31592, 273, 1408, 31, 202, 202, 430, 261, 9394, 67, 12658, 13, 288, 1082, 202, 14241, 92, 273, 261, 9224, 473, 23136, 13, 480, 374, 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, 514, 1762, 1435, 288, 202, 202, 780, 31592, 273, 1408, 31, 202, 202, 430, 261, 9394, 67, 12658, 13, 288, 1082, 202, 14241, 92, 273, 261, 9224, 473, 23136, 13, 480, 374, 692, ...
"INSERT INTO #SAfe0012(value) values (?)");
"INSERT INTO #SAfe0012(value) values (?)");
public void testInsertRow0012() throws Exception { Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #SAfe0012(value VARCHAR(255) PRIMARY KEY)"); stmt.close(); PreparedStatement insStmt = con.prepareStatement( "INSERT INTO #SAfe0012(value) values (?)"); insStmt.setString(1, "Row 1"); assertEquals(1, insStmt.executeUpdate()); insStmt.setString(1, "Row 2"); assertEquals(1, insStmt.executeUpdate()); insStmt.close(); stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs = stmt.executeQuery("SELECT * FROM #SAfe0012 ORDER BY 1"); assertEquals(null, stmt.getWarnings()); assertEquals(null, rs.getWarnings()); // Insert the new row rs.moveToInsertRow(); rs.updateString(1, "Row X"); rs.insertRow(); // Check the ResultSet contents rs.moveToCurrentRow(); rs.next(); assertEquals("Row 1", rs.getString(1)); rs.next(); assertEquals("Row 2", rs.getString(1)); rs.next(); assertEquals("Row X", rs.getString(1)); rs.close(); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/662fbbf0e5f04956f22a56e58dae82d6c816a2c6/SAfeTest.java/clean/src/test/net/sourceforge/jtds/test/SAfeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4600, 1999, 713, 2138, 1435, 1216, 1185, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 9344, 7567, 468, 5233, 3030, 713, 2138, 12, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4600, 1999, 713, 2138, 1435, 1216, 1185, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 9344, 7567, 468, 5233, 3030, 713, 2138, 12, 11...
public List prefixLookup( TypeInfo.eType type, String prefix, boolean qualified ) throws ParserSymbolTableException;
public List prefixLookup( TypeFilter filter, String prefix, boolean qualified ) throws ParserSymbolTableException;
public List prefixLookup( TypeInfo.eType type, String prefix, boolean qualified ) throws ParserSymbolTableException;
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/bce674ac9a55b14dcd5c5cdebac67332b7bea61f/IContainerSymbol.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/IContainerSymbol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 1633, 6609, 12, 1412, 966, 18, 73, 559, 618, 16, 514, 1633, 16, 1250, 9348, 262, 1216, 6783, 5335, 1388, 503, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 1633, 6609, 12, 1412, 966, 18, 73, 559, 618, 16, 514, 1633, 16, 1250, 9348, 262, 1216, 6783, 5335, 1388, 503, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public BugzillaQueryPageParser(TaskRepository repository, IProgressMonitor monitor) throws LoginException { this.monitor = monitor; // get the servers url urlString = repository.getUrl().toExternalForm() + "/query.cgi"; // if we are dealing with 2.18 we need to use the folowing in the // query string to get the right search page if (BugzillaPlugin.getDefault().isServerCompatability218()) { urlString += "?format=advanced"; } // use the user name and password if we have it if (repository.hasCredentials()) { try { // if we are dealing with 2.18 we already have the ? from before // so we need // an & instead. If other version, still add ? if (BugzillaPlugin.getDefault().isServerCompatability218()) urlString += "&"; else urlString += "?"; urlString += "GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(repository.getUserName(), BugzillaPlugin.ENCODING_UTF_8) + "&Bugzilla_password=" + URLEncoder.encode(repository.getPassword(), BugzillaPlugin.ENCODING_UTF_8); } catch (UnsupportedEncodingException e) { /* * Do nothing. Every implementation of the Java platform is * required to support the standard charset * BugzillaPlugin.ENCODING_UTF_8 */ } } successful = false; // try to get the new options from the page parseDocument(); if (!successful) { if (exception instanceof MalformedURLException) { MessageDialog .openError( null, "Unsupported Protocol", "The server that was specified for Bugzilla is not supported by your JVM.\nPlease make sure that you are using a JDK that supports SSL."); } else {// throw exception // if there was a problem with the operation, display an error // message ErrorDialog.openError(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, "Bugzilla could not complete the the update.", new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.OK, "url may be invalid", exception)); } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/efe136bc49630de13316a3de20a997050dd17c5b/BugzillaQueryPageParser.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/search/BugzillaQueryPageParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 1964, 2678, 12, 2174, 3305, 3352, 16, 467, 5491, 7187, 6438, 13, 1216, 11744, 503, 288, 202, 202, 2211, 18, 10259, 273, 6438, 31, 202, 202, 759, 336, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 1964, 2678, 12, 2174, 3305, 3352, 16, 467, 5491, 7187, 6438, 13, 1216, 11744, 503, 288, 202, 202, 2211, 18, 10259, 273, 6438, 31, 202, 202, 759, 336, 326, ...
if (child.getParent() != null) {
if (child.getParent() != null && child!=node) {
private void collapseCurrentlySelectedNode() { TreePath[] paths = logTree.getSelectionPaths(); if (paths == null) { return; } LogLog.debug("Collapsing all children of selected node"); for (int i = 0; i < paths.length; i++) { TreePath path = paths[i]; DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent(); Enumeration enumeration = node.depthFirstEnumeration(); while (enumeration.hasMoreElements()) { DefaultMutableTreeNode child = (DefaultMutableTreeNode) enumeration.nextElement(); if (child.getParent() != null) { TreeNode[] nodes = ((DefaultMutableTreeNode) child.getParent()).getPath(); TreePath treePath = new TreePath(nodes); while ((treePath != null) && (treePath.getPathCount() > 0)) { DefaultMutableTreeNode potentialRoot = (DefaultMutableTreeNode) treePath.getPathComponent(0); logTree.collapsePath(treePath); treePath = treePath.getParentPath(); } } } } ensureRootExpanded(); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/4903013831acec34499887e7f6014471278db5b4/LoggerNameTreePanel.java/buggy/src/java/org/apache/log4j/chainsaw/LoggerNameTreePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 13627, 3935, 715, 7416, 907, 1435, 288, 565, 4902, 743, 8526, 2953, 273, 613, 2471, 18, 588, 6233, 4466, 5621, 565, 309, 261, 4481, 422, 446, 13, 288, 1377, 327, 31, 565, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13627, 3935, 715, 7416, 907, 1435, 288, 565, 4902, 743, 8526, 2953, 273, 613, 2471, 18, 588, 6233, 4466, 5621, 565, 309, 261, 4481, 422, 446, 13, 288, 1377, 327, 31, 565, 289...
addValidator("timePeriod", createDatatypeValidator("timePeriod", getDatatypeValidator( "recurringDuration"), facets, false ));
createDatatypeValidator("timePeriod", getDatatypeValidator( "recurringDuration"), facets, false );
void initializeRegistry() { DatatypeValidator v = null; //Register Primitive Datatypes try { fRegistry.put("string", new StringDatatypeValidator() ); fRegistry.put("boolean", new BooleanDatatypeValidator() ); fRegistry.put("float", new FloatDatatypeValidator()); fRegistry.put("double", new DoubleDatatypeValidator()); fRegistry.put("decimal", new DecimalDatatypeValidator()); fRegistry.put("timeDuration", new TimeDurationDatatypeValidator()); fRegistry.put("recurringDuration", new RecurringDurationDatatypeValidator()); fRegistry.put("binary", new BinaryDatatypeValidator()); fRegistry.put("uriReference", new URIReferenceDatatypeValidator()); fRegistry.put("ID", new IDDatatypeValidator()); fRegistry.put("IDREF", new IDREFDatatypeValidator()); fRegistry.put("ENTITY", new ENTITYDatatypeValidator()); fRegistry.put("NOTATION", new NOTATIONDatatypeValidator()); fRegistry.put("QName", new QNameDatatypeValidator()); Hashtable facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN , "([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]+)(-[a-zA-Z]+)*" ); addValidator("language", createDatatypeValidator("language", new StringDatatypeValidator() , facets, false )); addValidator("IDREFS", createDatatypeValidator( "IDREFS", new IDREFDatatypeValidator(), null , true )); addValidator("ENTITIES", createDatatypeValidator( "ENTITIES", new ENTITYDatatypeValidator(), null, true )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN , "\\c+" ); addValidator("NMTOKEN", createDatatypeValidator("NMTOKEN", new StringDatatypeValidator(), facets, false )); addValidator("NMTOKENS", createDatatypeValidator("NMTOKENS", getDatatypeValidator( "NMTOKEN" ), null, true )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN , "\\i\\c*" ); addValidator("Name", createDatatypeValidator("Name", new StringDatatypeValidator(), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN , "[\\i-[:]][\\c-[:]]*" ); addValidator("NCName", createDatatypeValidator("NCName", new StringDatatypeValidator(), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_SCALE, "0"); addValidator("integer", createDatatypeValidator("integer", new DecimalDatatypeValidator(), facets, false)); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "0" ); addValidator("nonPositiveInteger", createDatatypeValidator("nonPositiveInteger", getDatatypeValidator("integer"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "-1" ); addValidator("negativeInteger", createDatatypeValidator("negativeInteger", getDatatypeValidator( "nonPositiveInteger"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "9223372036854775807"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-9223372036854775808"); addValidator("long", createDatatypeValidator("long", getDatatypeValidator( "integer"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "2147483647"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-2147483648"); addValidator("int", createDatatypeValidator("int", getDatatypeValidator( "long"), facets,false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "32767"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-32768"); addValidator("short", createDatatypeValidator("short", getDatatypeValidator( "int"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "127"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-128"); addValidator("byte", createDatatypeValidator("byte", getDatatypeValidator( "short"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "0" ); addValidator("nonNegativeInteger", createDatatypeValidator("nonNegativeInteger", getDatatypeValidator( "integer"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "18446744073709551615" ); addValidator("unsignedLong", createDatatypeValidator("unsignedLong", getDatatypeValidator( "nonNegativeInteger"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "4294967295" ); addValidator("unsignedInt", createDatatypeValidator("unsignedInt", getDatatypeValidator( "unsignedLong"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "65535" ); addValidator("unsignedShort", createDatatypeValidator("unsignedShort", getDatatypeValidator( "unsignedInt"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "255" ); addValidator("unsignedByte", createDatatypeValidator("unsignedByte", getDatatypeValidator( "unsignedShort"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "255" ); addValidator("positiveInteger", createDatatypeValidator("positiveInteger", getDatatypeValidator( "nonNegativeInteger"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_DURATION, "P0Y" ); facets.put(SchemaSymbols.ELT_PERIOD, "P0Y" ); addValidator("timeInstant", createDatatypeValidator("timeInstant", getDatatypeValidator( "recurringDuration"),facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_DURATION, "P0Y" ); facets.put(SchemaSymbols.ELT_PERIOD, "PY24H" ); addValidator("time", createDatatypeValidator("time", getDatatypeValidator( "recurringDuration"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PERIOD, "P0Y" ); addValidator("timePeriod", createDatatypeValidator("timePeriod", getDatatypeValidator( "recurringDuration"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_DURATION, "PT24H" ); addValidator("date", createDatatypeValidator("date", getDatatypeValidator( "timePeriod"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_DURATION, "P1M" ); addValidator("month", createDatatypeValidator("month", getDatatypeValidator( "timePeriod"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_DURATION, "P1Y" ); addValidator("year", createDatatypeValidator("year", getDatatypeValidator( "timePeriod"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_DURATION, "P100Y" ); addValidator("century", createDatatypeValidator("century", getDatatypeValidator( "timePeriod"), facets, false )); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PERIOD, "P1Y" ); facets.put(SchemaSymbols.ELT_DURATION, "PT24H" ); addValidator("recurringDate", createDatatypeValidator("recurringDate", getDatatypeValidator( "recurringDuration"),facets, false )); } catch ( InvalidDatatypeFacetException ex ){ ex.printStackTrace(); } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/ffeac47efe48c6c710d3b3cf129a20c34d984794/DatatypeValidatorFactoryImpl.java/buggy/src/org/apache/xerces/validators/datatype/DatatypeValidatorFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4046, 4243, 1435, 288, 3639, 21168, 5126, 225, 331, 273, 446, 31, 3639, 368, 3996, 14488, 6168, 13373, 540, 775, 288, 5411, 284, 4243, 18, 458, 2932, 1080, 3113, 5411, 394, 514, 2022...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 4243, 1435, 288, 3639, 21168, 5126, 225, 331, 273, 446, 31, 3639, 368, 3996, 14488, 6168, 13373, 540, 775, 288, 5411, 284, 4243, 18, 458, 2932, 1080, 3113, 5411, 394, 514, 2022...
public void testGetObject4() throws Exception { int data = 1; Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #getObject4 (data INT, minval INT, maxval INT)"); stmt.close(); PreparedStatement pstmt = con.prepareStatement("INSERT INTO #getObject4 (data, minval, maxval) VALUES (?, ?, ?)"); pstmt.setInt(1, data); pstmt.setInt(2, Integer.MIN_VALUE); pstmt.setInt(3, Integer.MAX_VALUE); assertEquals(1, pstmt.executeUpdate()); pstmt.close(); Statement stmt2 = con.createStatement(); ResultSet rs = stmt2.executeQuery("SELECT data, minval, maxval FROM #getObject4"); assertTrue(rs.next()); assertTrue(rs.getBoolean(1)); assertTrue(rs.getByte(1) == 1); assertTrue(rs.getShort(1) == 1); assertTrue(rs.getInt(1) == 1); assertTrue(rs.getLong(1) == 1); assertTrue(rs.getFloat(1) == 1); assertTrue(rs.getDouble(1) == 1); assertTrue(rs.getBigDecimal(1).intValue() == 1); assertEquals("1", rs.getString(1)); Object tmpData = rs.getObject(1); assertTrue(tmpData instanceof Integer); assertEquals(data, ((Integer) tmpData).intValue()); ResultSetMetaData resultSetMetaData = rs.getMetaData(); assertNotNull(resultSetMetaData); assertEquals(Types.INTEGER, resultSetMetaData.getColumnType(1)); assertEquals(rs.getInt(2), Integer.MIN_VALUE); assertEquals(rs.getInt(3), Integer.MAX_VALUE); assertFalse(rs.next()); stmt2.close(); rs.close(); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/f18464865cbac496cd34ae72689b9db6c38ac640/ResultSetTest.java/clean/src/test/net/sourceforge/jtds/test/ResultSetTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 921, 24, 1435, 1216, 1185, 288, 3639, 509, 501, 273, 404, 31, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 9344, 7567, 468, 588, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 921, 24, 1435, 1216, 1185, 288, 3639, 509, 501, 273, 404, 31, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 3480, 18, 8837, 2932, 9344, 7567, 468, 588, 9...
void deleteCategory(ITaskCategory category) {
void deleteCategory(ITaskContainer category) {
void deleteCategory(ITaskCategory category) { categories.remove(category); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/dea0a82964f47b68e4f650f37d53ae9af2441bfa/TaskList.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/TaskList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1430, 4457, 12, 1285, 835, 4457, 3150, 13, 288, 202, 202, 8995, 18, 4479, 12, 4743, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1430, 4457, 12, 1285, 835, 4457, 3150, 13, 288, 202, 202, 8995, 18, 4479, 12, 4743, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
SwingUtilities.invokeLater(r);
invokeAndWait(r);
public void receivedResponse(boolean error, String response) { if (m_fastUpdate) { assert(SwingUtilities.isEventDispatchThread()); appendResponse(error, response); return; } Runnable r = new UpdateResponse(this, error, response); SwingUtilities.invokeLater(r); }
51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/244dea79395ce64edcb9f803af5e0993085decce/GtpShell.java/buggy/src/gui/GtpShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5079, 1064, 12, 6494, 555, 16, 514, 766, 13, 565, 288, 3639, 309, 261, 81, 67, 8076, 1891, 13, 3639, 288, 5411, 1815, 12, 6050, 310, 11864, 18, 291, 1133, 5325, 3830, 10663, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5079, 1064, 12, 6494, 555, 16, 514, 766, 13, 565, 288, 3639, 309, 261, 81, 67, 8076, 1891, 13, 3639, 288, 5411, 1815, 12, 6050, 310, 11864, 18, 291, 1133, 5325, 3830, 10663, ...
if (!(object instanceof BeanPointer)){ return false; }
if (!(object instanceof BeanPointer)) { return false; }
public boolean equals(Object object){ if (object == this){ return true; } if (!(object instanceof BeanPointer)){ return false; } BeanPointer other = (BeanPointer)object; if (parent != other.parent){ if (parent == null || !parent.equals(other.parent)){ return false; } } if ((name == null && other.name != null) || (name != null && !name.equals(other.name))){ return false; } int i_this = (index == WHOLE_COLLECTION ? 0 : index); int i_other = (other.index == WHOLE_COLLECTION ? 0 : other.index); if (i_this != i_other){ return false; } if (bean instanceof Number || bean instanceof String || bean instanceof Boolean){ return bean.equals(other.bean); } return bean == other.bean; }
52531 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52531/430fdd01e75a5e681274aa65adeb2d9826ee45a8/BeanPointer.java/buggy/src/java/org/apache/commons/jxpath/ri/model/beans/BeanPointer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 733, 15329, 3639, 309, 261, 1612, 422, 333, 15329, 5411, 327, 638, 31, 3639, 289, 3639, 309, 16051, 12, 1612, 1276, 7704, 4926, 3719, 95, 5411, 327, 629, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 733, 15329, 3639, 309, 261, 1612, 422, 333, 15329, 5411, 327, 638, 31, 3639, 289, 3639, 309, 16051, 12, 1612, 1276, 7704, 4926, 3719, 95, 5411, 327, 629, 31, ...
_logDir = new File(_pageContext.getServletConfig().getInitParameter("logDir"));
String logDirName = _pageContext.getServletConfig().getInitParameter("logDir"); if (logDirName == null) { logDirName = _pageContext.getServletContext().getInitParameter("logDir"); } _logDir = new File(logDirName);
public int doStartTag() throws JspException { _count = 0; _logDir = new File(_pageContext.getServletConfig().getInitParameter("logDir")); String logDirPath = _logDir.getAbsolutePath(); System.out.println("Scanning directory: " + logDirPath + " for log files."); _fileNames = _logDir.list(new FilenameFilter() { public boolean accept(File dir, String name) { return name.startsWith("log") && name.endsWith(".xml") && !(new File(dir, name).isDirectory()); } }); if(_fileNames == null) { throw new JspException( "Configuration problem? No logs found in logDir: " + logDirPath); } //sort links... Arrays.sort(_fileNames, new Comparator() { public int compare(Object o1, Object o2) { return ((String) o2).compareTo((String) o1); } }); return EVAL_BODY_TAG; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/49a89f61afe557f3ab9c55b92b44e7d1afa1b53b/NavigationTag.java/buggy/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/NavigationTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 389, 1883, 273, 374, 31, 3639, 514, 613, 28780, 273, 389, 2433, 1042, 18, 588, 4745, 809, 7675, 588, 2570, 1662, 2932, 1330, 1621, 886...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 288, 3639, 389, 1883, 273, 374, 31, 3639, 514, 613, 28780, 273, 389, 2433, 1042, 18, 588, 4745, 809, 7675, 588, 2570, 1662, 2932, 1330, 1621, 886...
Iterator /*<Invite>*/ iter = invites.iterator(); while (iter.hasNext()) { Invite cur = (Invite) iter.next();
private void processInvitesAfterCreate(String method, int folderId, short volumeId, boolean createAppt, ParsedMessage pm, List /* Invite */ invites) throws ServiceException { // since this is the first time we've seen this Invite Message, we need to process it // and see if it updates an existing Appointment in the Appointments table, or whatever... boolean updatedMetadata = false; Iterator /*<Invite>*/ iter = invites.iterator(); while (iter.hasNext()) { Invite cur = (Invite) iter.next(); Mailbox mbox = getMailbox(); Appointment appt = mbox.getAppointmentByUid(cur.getUid()); if (createAppt) { if (appt == null) { // ONLY create an appointment if this is a REQUEST method...otherwise don't. if (method.equals(ICalTok.REQUEST.toString())) { appt = mbox.createAppointment(Mailbox.ID_FOLDER_CALENDAR, volumeId, "", cur.getUid(), pm, cur); } else { sLog.info("Mailbox " + getMailboxId()+" Message "+getId()+" SKIPPING Invite "+method+" b/c no Appointment could be found"); return; // for now, just ignore this Invitation } } else { // When updating an existing appointment, ignore the // passed-in folderId which will usually be Inbox. Leave // the appointment in the folder it's currently in. appt.processNewInvite(pm, cur, false, appt.getFolderId(), volumeId); } } if (appt != null) { ApptInfo info = new ApptInfo(appt.getId(), cur.getComponentNum()); if (mApptInfos == null) { mApptInfos = new ArrayList<ApptInfo>(); } mApptInfos.add(info); updatedMetadata = true; } } if (updatedMetadata) saveMetadata(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4c89ff9f70777fd0b4b98edb0f794c8e0720288c/Message.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1207, 3605, 2997, 4436, 1684, 12, 780, 707, 16, 509, 31996, 16, 3025, 3940, 548, 16, 1250, 752, 1294, 337, 16, 4766, 1850, 19244, 1079, 7430, 16, 987, 1748, 30981, 1195, 2198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 3605, 2997, 4436, 1684, 12, 780, 707, 16, 509, 31996, 16, 3025, 3940, 548, 16, 1250, 752, 1294, 337, 16, 4766, 1850, 19244, 1079, 7430, 16, 987, 1748, 30981, 1195, 2198, ...
finishVisit( );
finishVisit( query );
public void visitListItem( ListItemDesign list ) { prepareVisit( list ); assert tempQuery != null; visitListBand( list.getHeader( ) ); popExpressions( ); SlotHandle groupsSlot = ( (ListHandle) list.getHandle( ) ).getGroups( ); for ( int i = 0; i < list.getGroupCount( ); i++ ) { handleListGroup( list.getGroup( i ), (GroupHandle) groupsSlot .get( i ) ); } if ( list.getDetail( ).getContentCount( ) != 0 ) { tempQuery.setUsesDetails( true ); } pushExpressions( tempQuery.getRowExpressions( ) ); visitListBand( list.getDetail( ) ); popExpressions( ); pushExpressions( tempQuery.getAfterExpressions( ) ); visitListBand( list.getFooter( ) ); finishVisit( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/13150ae5efd3665ae68ab91821505d7b2a0a0370/ReportQueryBuilder.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 13575, 12, 987, 1180, 15478, 666, 262, 202, 202, 95, 1082, 202, 9366, 10432, 12, 666, 11272, 1082, 202, 11231, 1906, 1138, 480, 446, 31, 25083, 202, 11658, 682, 1423...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 13575, 12, 987, 1180, 15478, 666, 262, 202, 202, 95, 1082, 202, 9366, 10432, 12, 666, 11272, 1082, 202, 11231, 1906, 1138, 480, 446, 31, 25083, 202, 11658, 682, 1423...
public RuleDescr rule() throws RecognitionException { RuleDescr rule; Token loc=null; Token any=null; String ruleName = null; rule = null; String consequence = ""; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:217:17: ( opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* 'end' opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:217:17: opt_eol loc= 'rule' ruleName= word opt_eol ( rule_attributes[rule] )? opt_eol (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? 'then' ( ':' )? opt_eol ( options {greedy=false; } : any= . )* 'end' opt_eol { following.push(FOLLOW_opt_eol_in_rule539); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,28,FOLLOW_28_in_rule545); following.push(FOLLOW_word_in_rule549); ruleName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_rule551); opt_eol(); following.pop(); rule = new RuleDescr( ruleName, null ); rule.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:223:17: ( rule_attributes[rule] )? int alt19=2; switch ( input.LA(1) ) { case 30: case 32: alt19=1; break; case EOL: case 22: case 33: case 34: case 35: case 36: case 37: case 38: alt19=1; break; case 29: alt19=1; break; case 31: alt19=1; break; default: NoViableAltException nvae = new NoViableAltException("223:17: ( rule_attributes[rule] )?", 19, 0, input); throw nvae; } switch (alt19) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:223:25: rule_attributes[rule] { following.push(FOLLOW_rule_attributes_in_rule562); rule_attributes(rule); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_rule572); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:17: (loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )? int alt22=2; int LA22_0 = input.LA(1); if ( LA22_0==29 ) { alt22=1; } else if ( LA22_0==31 ) { alt22=2; } else { NoViableAltException nvae = new NoViableAltException("226:17: (loc= \'when\' ( \':\' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) )?", 22, 0, input); throw nvae; } switch (alt22) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:25: loc= 'when' ( ':' )? opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) { loc=(Token)input.LT(1); match(input,29,FOLLOW_29_in_rule580); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:36: ( ':' )? int alt20=2; int LA20_0 = input.LA(1); if ( LA20_0==30 ) { int LA20_1 = input.LA(2); if ( !( expander != null ) ) { alt20=1; } else if ( expander != null ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("226:36: ( \':\' )?", 20, 1, input); throw nvae; } } else if ( (LA20_0>=EOL && LA20_0<=29)||(LA20_0>=31 && LA20_0<=56) ) { alt20=2; } else { NoViableAltException nvae = new NoViableAltException("226:36: ( \':\' )?", 20, 0, input); throw nvae; } switch (alt20) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:226:36: ':' { match(input,30,FOLLOW_30_in_rule582); } break; } following.push(FOLLOW_opt_eol_in_rule585); opt_eol(); following.pop(); AndDescr lhs = new AndDescr(); rule.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt21=2; switch ( input.LA(1) ) { case 21: int LA21_1 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 1, input); throw nvae; } break; case EOL: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 56: alt21=1; break; case 31: int LA21_3 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 3, input); throw nvae; } break; case 53: int LA21_4 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 4, input); throw nvae; } break; case 54: int LA21_5 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 5, input); throw nvae; } break; case 55: int LA21_6 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 6, input); throw nvae; } break; case ID: int LA21_7 = input.LA(2); if ( expander != null ) { alt21=1; } else if ( true ) { alt21=2; } else { NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 7, input); throw nvae; } break; default: NoViableAltException nvae = new NoViableAltException("231:25: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 21, 0, input); throw nvae; } switch (alt21) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:232:33: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "rule", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_rule603); expander_lhs_block(lhs); following.pop(); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:233:35: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_rule612); normal_lhs_block(lhs); following.pop(); } break; } } break; } match(input,31,FOLLOW_31_in_rule633); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:237:24: ( ':' )? int alt23=2; int LA23_0 = input.LA(1); if ( LA23_0==30 ) { alt23=1; } else if ( (LA23_0>=EOL && LA23_0<=29)||(LA23_0>=31 && LA23_0<=56) ) { alt23=2; } else { NoViableAltException nvae = new NoViableAltException("237:24: ( \':\' )?", 23, 0, input); throw nvae; } switch (alt23) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:237:24: ':' { match(input,30,FOLLOW_30_in_rule635); } break; } following.push(FOLLOW_opt_eol_in_rule639); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:238:17: ( options {greedy=false; } : any= . )* loop24: do { int alt24=2; int LA24_0 = input.LA(1); if ( LA24_0==27 ) { alt24=2; } else if ( (LA24_0>=EOL && LA24_0<=26)||(LA24_0>=28 && LA24_0<=56) ) { alt24=1; } switch (alt24) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:238:44: any= . { any=(Token)input.LT(1); matchAny(input); consequence = consequence + " " + any.getText(); } break; default : break loop24; } } while (true); if ( expander != null ) { String expanded = runThenExpander( consequence ); rule.setConsequence( expanded ); } else { rule.setConsequence( consequence ); } match(input,27,FOLLOW_27_in_rule674); following.push(FOLLOW_opt_eol_in_rule676); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rule; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6781, 16198, 1720, 1435, 1216, 9539, 288, 6647, 6781, 16198, 1720, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 23285, 273, 446, 31, 1171, 202, 202...
await() { if (flag == false) { try { wait(); } catch (InterruptedException e) {} System.out.println(Thread.currentThread().getName() + ": flag: notification received"); } else System.out.println(Thread.currentThread().getName() + ": flag: already set"); }
synchronized void await() { Thread current = Thread.currentThread(); String name = current instanceof Task ? ((Task)current).getTaskName() : "Main "; if (flag == false) { try { wait(); } catch (InterruptedException e) {} System.out.println(name + ": flag: notification received"); } else System.out.println(name + ": flag: already set"); }
await() { if (flag == false) { try { wait(); } catch (InterruptedException e) {} System.out.println(Thread.currentThread().getName() + ": flag: notification received"); } else System.out.println(Thread.currentThread().getName() + ": flag: already set"); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b71f33bccea1a83bb173e8dfaae8c5cd4a78129d/TestNotification.java/clean/rvm/src/examples/threads/TestNotification.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4273, 1435, 1377, 288, 1377, 309, 261, 6420, 422, 629, 13, 540, 288, 540, 775, 288, 2529, 5621, 289, 1044, 261, 24485, 503, 425, 13, 2618, 540, 2332, 18, 659, 18, 8222, 12, 3830, 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, 565, 4273, 1435, 1377, 288, 1377, 309, 261, 6420, 422, 629, 13, 540, 288, 540, 775, 288, 2529, 5621, 289, 1044, 261, 24485, 503, 425, 13, 2618, 540, 2332, 18, 659, 18, 8222, 12, 3830, 18, ...
c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(Class) value(CLASS),Integer.MAX_VALUE);
Criteria[] hy = Hierarchy.fetchParents(c,(Class) value(CLASS),Integer.MAX_VALUE); hy[hy.length-1].add(Restrictions.in("id",(Collection) value(IDS)));
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(Class) value(CLASS),Integer.MAX_VALUE); setCriteria( c ); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/b0d9b08448464cb80e12bda271a852daf0e5bd6a/PojosGetImagesQueryDefinition.java/clean/components/server/src/ome/services/query/PojosGetImagesQueryDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 29279, 12, 2157, 1339, 13, 377, 1216, 670, 24360, 503, 16, 6483, 565, 288, 3639, 8356, 276, 273, 1339, 18, 2640, 7231, 12443, 797, 13, 460, 12, 5237, 10019, 3639, 276, 18, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29279, 12, 2157, 1339, 13, 377, 1216, 670, 24360, 503, 16, 6483, 565, 288, 3639, 8356, 276, 273, 1339, 18, 2640, 7231, 12443, 797, 13, 460, 12, 5237, 10019, 3639, 276, 18, 54...
values.placeValue(i, resultY);
if (!values.isCombinable(i)) resultY.setToUnassigned(); else values.placeValue(i, resultY);
public void addPointsToChart(CommandRecord commandRec, int startValue, int endValue) { MesquiteNumber resultX = new MesquiteNumber(); MesquiteNumber resultY = new MesquiteNumber(); resultY.setValue(1); /*if (highlightsExist && hE!=null) explanationString += " [Highlighted " + hE + "]";*/ chart.getCharter().setSuspendDrawing(true); chart.getCharter().setSuspendChartCalculations(true); for (int i=startValue; i<endValue; i++) { if (i % 100 == 0) commandRec.tick("Constructing chart; adding item " + i); if (weighted && weights!=null && weights.isCombinable(i)) weights.placeValue(i, resultY); if (!itemsOnX) { values.placeValue(i, resultX); chart.addPoint(resultX, resultY); } else { int j = i+1; //TODO: this shouldn't always bump by one (zero based internal to 1 based for user) values.placeValue(i, resultY); resultX.setValue(j); int point = chart.addPoint(resultX, resultY); if (colorItems.getValue()) { Color c = itemsSourceTask.getItemColor(taxa, i, commandRec); if (c!=null) { chart.setColor(point, c); } } } } chart.getCharter().setSuspendDrawing(false); chart.getCharter().setSuspendChartCalculations(false); resetMessagePaneText(commandRec); chart.munch(commandRec); contentsChanged(); messagePane.repaint(); }
55939 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55939/f13d81739af31354f83b14c9490772258666d61b/ItemValuesChart.java/clean/Source/mesquite/charts/ItemValuesChart/ItemValuesChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 5636, 774, 7984, 12, 2189, 2115, 1296, 5650, 16, 509, 27900, 16, 509, 30684, 13, 288, 202, 202, 49, 281, 372, 1137, 1854, 563, 60, 273, 394, 490, 281, 372, 1137, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 5636, 774, 7984, 12, 2189, 2115, 1296, 5650, 16, 509, 27900, 16, 509, 30684, 13, 288, 202, 202, 49, 281, 372, 1137, 1854, 563, 60, 273, 394, 490, 281, 372, 1137, 1...
if (offset == args.length) { throw new UsageError("Option " + option + " requires one argument"); } String routine = args[offset].intern(); if (routinesToSkip == null) { routinesToSkip = new Set(); } routinesToSkip.add(routine); return offset+1;
if (offset == args.length) { throw new UsageError("Option " + option + " requires one argument"); } String routine = args[offset].intern(); if (routinesToSkip == null) { routinesToSkip = new Set(); } routinesToSkip.add(routine); return offset+1;
public int processOption(String option, String[] args, int offset) throws UsageError { if (option.equals("-nocheck")) { stages = 5; // run all but last stage return offset; } else if (option.equals("-typecheck")) { stages = 1; return offset; } else if (option.equals("-stages")) { if (offset == args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } try { stages = new Integer(args[offset]).intValue(); if (stages<1) throw new NumberFormatException(); } catch (NumberFormatException e) { throw new UsageError("Option " + option + " requires one positive integer argument: " + e.toString()); } return offset+1; } else if (option.equals("-start")) { if (offset>=args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } try { startLine = new Integer(args[offset]).intValue(); } catch (NumberFormatException e) { throw new UsageError("Option " + option + " requires one positive integer argument: " + e.toString()); } return offset+1; } else if (option.equals("-specs")) { if (offset >= args.length) { throw new UsageError("Option " + option + " requires one String argument"); } specspath = args[offset]; return offset+1; } else if (option.equals("-vclimit")) { if (offset>=args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } try { vclimit = new Integer(args[offset]).intValue(); } catch (NumberFormatException e) { throw new UsageError("Option " + option + " requires one positive integer argument: " + e.toString()); } return offset+1; } else if (option.equals("-inlineFromConstructors")) { inlineFromConstructors = true; return offset; } else if (option.equals("-inlineCheckDepth")) { inlineDepthFlags = true; // can't use this along with the -inlineConstructors flag if (inlineConstructors) throw new UsageError("Can't use -inlineConstructors in combination with either -inlineCheckDepth or -inlineDepthPastCheck"); if (offset == args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } try { Main.gctranslator.inlineCheckDepth = new Integer(args[offset]).intValue(); if (Main.gctranslator.inlineCheckDepth < 0) throw new NumberFormatException(); } catch (NumberFormatException e) { throw new UsageError("Option " + option + " requires one positive integer argument: " + e.toString()); } return offset+1; } else if (option.equals("-inlineDepthPastCheck")) { inlineDepthFlags = true; // can't use this along with the -inlineConstructors flag if (inlineConstructors) throw new UsageError("can't use -inlineConstructors in combination with either -inlineCheckDepth or -inlineDepthPastCheck"); if (offset == args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } try { Main.gctranslator.inlineDepthPastCheck = new Integer(args[offset]).intValue(); if (Main.gctranslator.inlineDepthPastCheck < 0) throw new NumberFormatException(); } catch (NumberFormatException e) { throw new UsageError("Option " + option + " requires one positive integer argument: " + e.toString()); } return offset+1; } else if (option.equals("-inlineConstructors")) { // can't use this along with either of the inline depth flags if (inlineDepthFlags) throw new UsageError("can't use -inlineConstructors in combination with either -inlineCheckDepth or -inlineDepthPastCheck"); inlineConstructors = true; return offset; } else if (option.equals("-suggest")) { suggest = true; return offset; } else if (option.equals("-pgc")) { pgc = true; return offset; } else if (option.equals("-pcc")) { pcc = true; return offset; } else if (option.equals("-nospvc")) { spvc = false; return offset; } else if (option.equals("-passify")) { passify = true; return offset; } else if (option.equals("-wpp")) { wpp = true; return offset; } else if (option.equals("-useDefpred")) { useDefpred = true; return offset; } else if (option.equals("-nodsa")) { dsa = false; spvc = false; // spvc requires dsa for soundness return offset; } else if (option.equals("-pdsa")) { pdsa = true; return offset; } else if (option.equals("-pvc")) { pvc = true; prettyPrintVC = true; return offset; } else if (option.equals("-wpnxw")) { if (offset >= args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } wpnxw = new Integer(args[offset]).intValue(); return offset+1; } else if (option.equals("-namePCsize")) { if (offset >= args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } namePCsize = new Integer(args[offset]).intValue(); return offset+1; } else if (option.equals("-stats")) { stats = true; return offset; } else if (option.equals("-checkSpecs")) { checkSpecs = true; return offset; } else if (option.equals("-pjt")) { pjt = true; return offset; } else if (option.equals("-nvu")) { nvu = true; return offset; } else if (option.equals("-assertContinue")) { assertContinue = true; return offset; } else if (option.equals("-noTrackReadChars")) { trackReadChars = false; return offset; } else if (option.equals("-filterMethodSpecs")) { filterMethodSpecs = true; return offset; } else if (option.equals("-noPeepOptGCAssertFalse")) { noPeepOptGCAssertFalse = true; return offset; } else if (option.equals("-noEpeepopt")) { peepOptE = false; return offset; } else if (option.equals("-noGCpeepopt")) { peepOptGC = false; return offset; } else if (option.equals("-lazySubst")) { lazySubst = true; return offset; } else if (option.equals("-mergeinv")) { mergeInv = true; return offset; } else if (option.equals("-noAllocUseOpt")) { allocUseOpt = false; return offset; } else if (option.equals("-useAllInvPostCall")) { useAllInvPostCall = true; return offset; } else if (option.equals("-useAllInvPostBody")) { useAllInvPostBody = true; return offset; } else if (option.equals("-useAllInvPreBody")) { useAllInvPreBody = true; return offset; } else if (option.equals("-filterInvariants")) { filterInvariants = true; return offset; } else if (option.equals("-printAssumers")) { printAssumers = true; return offset; } else if (option.equals("-printCompilationUnitsOnLoad")) { printCompilationUnitsOnLoad = true; return offset; } else if (option.equals("-guardedVC")) { if (offset >= args.length) { throw new UsageError("Option " + option + " requires one directory argument"); } guardedVC = true; guardedVCDir = args[offset]; return offset+1; } else if (option.equals("-ignoreAnnFile")) { if (offset >= args.length) { throw new UsageError("Option " + option + " requires one filename argument"); } ignoreAnnSet = new Set(readFile(args[offset]).elements()); // System.out.println("Ignore set: "+ignoreAnnSet+"\n"); return offset+1; } else if (option.equals("-routine")) { // the argument to "-routine" is either a simple routine name or a fully // qualified routine name with signature, but we won't ever parse these if (offset == args.length) { throw new UsageError("Option " + option + " requires one argument"); } String routine = args[offset].intern(); if (routinesToCheck == null) { routinesToCheck = new Set(); } routinesToCheck.add(routine); return offset+1; } else if (option.equals("-skip")) { // the argument to "-skip" is either a simple routine name or a fully // qualified routine name with signature, but we won't ever parse these if (offset == args.length) { throw new UsageError("Option " + option + " requires one argument"); } String routine = args[offset].intern(); if (routinesToSkip == null) { routinesToSkip = new Set(); } routinesToSkip.add(routine); return offset+1; } else if (option.equals("-routineIndirect")) { if (offset == args.length) { throw new UsageError("Option " + option + " requires one argument"); } if (routinesToCheck == null) { routinesToCheck = new Set(); } String routineIndirectionFilename = args[offset]; BufferedReader in = null; try { in = new BufferedReader( new FileReader(routineIndirectionFilename)); while (true) { String routine = in.readLine(); if (routine == null) { break; } routine = routine.intern(); routinesToCheck.add(routine); } } catch (IOException e) { throw new UsageError("error reading routine indirection file '" + routineIndirectionFilename + "': " + e.toString()); } finally { try { if (in != null) in.close(); } catch (IOException e) { throw new UsageError( "error closing routine indirection file '" + routineIndirectionFilename + "': " + e.toString()); } } return offset+1; } else if (option.equals("-loopSafe")) { loopTranslation = LOOP_SAFE; return offset; } else if (option.equals("-preciseTargets")) { preciseTargets = true; loopTranslation = LOOP_SAFE; return offset; } else if (option.equals("-loop")) { // syntax: -loop <N>[.0|.5] if (offset == args.length) { throw new UsageError("Option " + option + " requires one argument"); } String number = args[offset]; if (number.length() == 0 || option.charAt(0) == '.') { throw new UsageError("illegal argument to -loop: " + number); } // any other parsing error will be caught in the following loop int cnt = 0; boolean andAHalf = false; for (int i = 0; i < number.length(); i++) { char ch = number.charAt(i); if ('0' <= ch && ch <= '9') { if (10000 <= cnt) { throw new UsageError("-loop specifies too many iterations: " + number); } cnt = 10*cnt + ch - '0'; continue; } else if (ch == '.') { if (number.length() == i+2) { if (number.charAt(i+1) == '5') { andAHalf = true; break; } else if (number.charAt(i+1) == '0') { andAHalf = false; break; } } } throw new UsageError("illegal argument to -loop: " + number); } loopUnrollCount = cnt; loopUnrollHalf = andAHalf; return offset+1; } else if (option.equals("-loopFallThru")) { loopTranslation = LOOP_FALL_THRU; return offset; } else if (option.equals("-mapsUnrollCount")) { if (offset == args.length) { throw new UsageError("Option " + option + " requires one argument"); } mapsUnrollCount = Integer.parseInt(args[offset]); return offset+1; } else if (option.equals("-predAbstract")) { predAbstract = true; loopTranslation = LOOP_SAFE; lastVarUseOpt = false; return offset; } else if (option.equals("-inferPredicates")) { inferPredicates = true; predAbstract = true; loopTranslation = LOOP_SAFE; lastVarUseOpt = false; return offset; } else if (option.equals("-noDirectTargetsOpt")) { noDirectTargetsOpt = true; return offset; } else if (option.equals("-nestQuantifiers")) { nestQuantifiers = true; return offset; } else if (option.equals("-useIntQuantAntecedents")) { useIntQuantAntecedents = true; return offset; } else if (option.equals("-excuseNullInitializers")) { excuseNullInitializers = true; return offset; } else if (option.equals("-strongAssertPostNever")) { strongAssertPost = 0; return offset; } else if (option.equals("-strongAssertPostAtomic")) { strongAssertPost = 1; return offset; } else if (option.equals("-strongAssertPostAlways")) { strongAssertPost = 2; return offset; } else if (option.equals("-noLastVarUseOpt")) { lastVarUseOpt = false; return offset; } else if (option.equals("-noVarCheckDeclsAndUses")) { noVarCheckDeclsAndUses = true; return offset; } else if (option.equals("-hidecall")) { showCallDetails = false; return offset; } else if (option.equals("-showloop")) { showLoopDetails = true; return offset; } else if (option.equals("-plainwarning")) { plainWarning = true; return offset; } else if (option.equals("-noredundancy")) { checkRedundantSpecs = false; return offset; } else if (option.equals("-notrace")) { traceInfo = 0; return offset; } else if (option.equals("-verboseTrace")) { traceInfo = 2; return offset; } else if (option.equals("-counterexample")) { counterexample = true; return offset; } else if (option.equals("-bubbleNotDown")) { bubbleNotDown = true; return offset; } else if (option.equals("-noOutCalls")) { noOutCalls = true; return offset; } else if (option.equals("-backpredfile")) { if (offset>=args.length) { throw new UsageError("Option " + option + " requires one argument"); } univBackPredFile = args[offset]; return offset+1; } else if (option.equals("-sxLog")) { if (offset>=args.length) { throw new UsageError("Option " + option + " requires one argument"); } sxLog = args[offset]; return offset+1; } else if (option.equals("-pxLog")) { if (offset>=args.length) { throw new UsageError("Option " + option + " requires one argument"); } sxLog = args[offset]; prettyPrintVC = true; return offset+1; } else if (option.equals("-nowarn")) { if (offset>=args.length) { throw new UsageError("Option " + option + " requires one argument"); } if (args[offset].equals("All")) { NoWarn.setAllChkStatus(TagConstants.CHK_AS_ASSUME); } else { int tag = NoWarn.toNoWarnTag(args[offset]); if (tag==0) { throw new UsageError("'" + args[offset] + "' is not a legal warning category"); } NoWarn.setChkStatus(tag, TagConstants.CHK_AS_ASSUME); } return offset+1; } else if (option.equals("-warn")) { if (offset>=args.length) { throw new UsageError("Option " + option + " requires one argument"); } // Note: There's an intentional lack of symmetry with -nowarn // here, in that "-warn All" is not supported. This design // allows ESC/Java to include special checks, perhaps like the // Stale checks of the Higher-Level Races checker, that won't // be publicly advertised. int tag = NoWarn.toNoWarnTag(args[offset]); if (tag==0) { throw new UsageError("'" + args[offset] + "' is not a legal warning category"); } NoWarn.setChkStatus(tag, TagConstants.CHK_AS_ASSERT); return offset+1; } else if (option.equals("-parsePlus")) { parsePlus = true; return offset; } else if (option.equals("-noNotCheckedWarnings")) { noNotCheckedWarnings = true; return offset; } else if (option.equals("-testRef")) { testRef = true; return offset; } else if (option.equals("-checkPurity")) { checkPurity = true; return offset; } else if (option.equals("-ppvc") | option.equals("-prettyPrintVC")) { prettyPrintVC = true; return offset; } else if (option.equals("-showDesugaredSpecs")) { desugaredSpecs = true; return offset; } else if (option.equals("-javaAssertions") || option.equals("-eajava")) { assertionMode = JAVA_ASSERTIONS; assertionsEnabled = true; assertIsKeyword = true; return offset; } else if (option.equals("-jmlAssertions") || option.equals("-eajml")) { assertionMode = JML_ASSERTIONS; assertIsKeyword = true; assertionsEnabled = true; return offset; } else if (option.equals("-rewriteDepth")) { if (offset >= args.length) { throw new UsageError("Option " + option + " requires one integer argument"); } rewriteDepth = Integer.parseInt(args[offset]); return offset+1; } else if (option.equals("-noSemicolonWarnings")) { noSemicolonWarnings = true; return offset; } else if (option.equals("-useFcns")) { useFcnsForModelVars = true; useFcnsForMethods = true; useFcnsForAllocations = true; return offset; } else if (option.equals("-useVars")) { useFcnsForModelVars = false; useFcnsForMethods = false; useFcnsForAllocations = false; return offset; } else if (option.equals("-useFcnsForModelVars")) { useFcnsForModelVars = true; return offset; } else if (option.equals("-useVarsForModelVars")) { useFcnsForModelVars = false; return offset; } else if (option.equals("-useFcnsForMethods")) { useFcnsForMethods = true; return offset; } else if (option.equals("-useVarsForMethods")) { useFcnsForMethods = false; return offset; } else if (option.equals("-showFields")) { showFields = true; return offset; } else if (option.equals("-simplify")) { // FIXME - shcek for additional argument simplify = args[offset]; //System.setProperty("simplify",args[offset]); return offset+1; } else if (option.equals("-EscProjectFileV0")) { // Ignored, but also used to mark a project file. return offset; } // Pass on unrecognized options: return super.processOption(option, args, offset); }
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/d40d404195ac9adaad8071578dbe4c37b1bddcf1/Options.java/clean/src/escjava/trunk/ESCTools/Escjava/java/escjava/Options.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1207, 1895, 12, 780, 1456, 16, 514, 8526, 833, 16, 509, 1384, 13, 3196, 202, 15069, 10858, 668, 288, 3639, 309, 261, 3482, 18, 14963, 2932, 17, 2135, 1893, 6, 3719, 288, 5411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1207, 1895, 12, 780, 1456, 16, 514, 8526, 833, 16, 509, 1384, 13, 3196, 202, 15069, 10858, 668, 288, 3639, 309, 261, 3482, 18, 14963, 2932, 17, 2135, 1893, 6, 3719, 288, 5411...
jiraRepo = new TaskRepository(MylarJiraPlugin.JIRA_REPOSITORY_KIND,
repository = new TaskRepository(MylarJiraPlugin.JIRA_REPOSITORY_KIND,
protected void setUp() throws Exception { super.setUp(); URL repoURL = new URL(SERVER_URL); jiraRepo = new TaskRepository(MylarJiraPlugin.JIRA_REPOSITORY_KIND, repoURL); jiraRepo.setAuthenticationCredentials(USER, PASSWORD); MylarTaskListPlugin.getRepositoryManager().addRepository(jiraRepo); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3b43267cb3665e7443ff936b737b4470e4552092/JiraTaskExternalizationTest.java/buggy/org.eclipse.mylyn.jira.tests/src/org/eclipse/mylyn/jira/tests/JiraTaskExternalizationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 202, 202, 1785, 3538, 1785, 273, 394, 1976, 12, 4370, 67, 1785, 1769, 202, 202, 78, 11547, 8791, 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, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 202, 202, 1785, 3538, 1785, 273, 394, 1976, 12, 4370, 67, 1785, 1769, 202, 202, 78, 11547, 8791, 273, ...
sendErrorPage(ctx, 200, "FAiled to restart request", "Failed to restart "+identifier);
sendErrorPage(ctx, 200, "Failed to restart request", "Failed to restart "+identifier);
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { HTTPRequest request = new HTTPRequest(uri, data, ctx); try { if (request.getPartAsString("insert-local", 128).length() > 0) { MultiValueTable responseHeaders = new MultiValueTable(); responseHeaders.put("Location", "/files/"); ctx.sendReplyHeaders(302, "Found", responseHeaders, null, 0); return; } if ((data.size() > 1024 * 1024) && (request.getPartAsString("insert", 128).length() == 0)) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } String pass = request.getParam("formPassword"); if (pass.length() == 0) { pass = request.getPartAsString("formPassword", 128); } if ((pass.length() == 0) || !pass.equals(core.formPassword)) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/queue/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } boolean logMINOR = Logger.shouldLog(Logger.MINOR, this); if(request.isParameterSet("remove_request") && (request.getParam("remove_request").length() > 0)) { String identifier = request.getParam("identifier"); if(logMINOR) Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove " + identifier + ": " + e.getMessage()); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if(request.isParameterSet("restart_request") && (request.getParam("restart_request").length() > 0)) { String identifier = request.getParam("identifier"); if(logMINOR) Logger.minor(this, "Restarting "+identifier); ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.getIdentifier().equals(identifier)) { if(!clientRequest.restart()) { sendErrorPage(ctx, 200, "FAiled to restart request", "Failed to restart "+identifier); } } } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if(request.isParameterSet("remove_AllRequests") && (request.getParam("remove_AllRequests").length() > 0)) { ClientRequest[] reqs = fcp.getGlobalRequests(); if(logMINOR) Logger.minor(this, "Request count: "+reqs.length); for(int i=0; i<reqs.length ; i++){ String identifier = reqs[i].getIdentifier(); if(logMINOR) Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove " + identifier + ": " + e.getMessage()); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; }else if(request.isParameterSet("download")) { // Queue a download if(!request.isParameterSet("key")) { writeError("No key specified to download", "You did not specify a key to download.", ctx); return; } String expectedMIMEType = null; if(request.isParameterSet("type")) { expectedMIMEType = request.getParam("type"); } FreenetURI fetchURI; try { fetchURI = new FreenetURI(request.getParam("key")); } catch (MalformedURLException e) { writeError("Invalid URI to download", "The URI is invalid and can not be downloaded.", ctx); return; } String persistence = request.getParam("persistence"); String returnType = request.getParam("return-type"); fcp.makePersistentGlobalRequest(fetchURI, expectedMIMEType, persistence, returnType); writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("change_priority")) { String identifier = request.getParam("identifier"); short newPriority = Short.parseShort(request.getParam("priority")); ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.getIdentifier().equals(identifier)) { clientRequest.setPriorityClass(newPriority); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.getPartAsString("insert", 128).length() > 0) { FreenetURI insertURI; String keyType = request.getPartAsString("keytype", 3); if ("chk".equals(keyType)) { insertURI = new FreenetURI("CHK@"); } else if ("ksk".equals(keyType)) { try { insertURI = new FreenetURI(request.getPartAsString("key", 128)); } catch (MalformedURLException mue1) { writeError("Invalid URI to insert", "You did not specify a valid URI to insert the file to.", ctx); return; } } else { writeError("Invalid URI to insert", "You fooled around with the POST request. Shame on you.", ctx); return; } HTTPRequest.File file = request.getUploadedFile("filename"); if (file.getFilename().trim().length() == 0) { writeError("No file selected", "You did not select a file to upload.", ctx); return; } boolean compress = request.getPartAsString("compress", 128).length() > 0; String identifier = file.getFilename() + "-fred-" + System.currentTimeMillis(); String fnam; if(insertURI.getKeyType().equals("CHK")) fnam = file.getFilename(); else fnam = null; /* copy bucket data */ Bucket copiedBucket = core.persistentEncryptedTempBucketFactory.makeBucket(file.getData().size()); BucketTools.copy(file.getData(), copiedBucket); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), insertURI, identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, !compress, -1, ClientPutMessage.UPLOAD_FROM_DIRECT, null, file.getContentType(), copiedBucket, null, fnam); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("insert-local")) { String filename = request.getParam("filename"); File file = new File(filename); String identifier = file.getName() + "-fred-" + System.currentTimeMillis(); String contentType = DefaultMIMETypes.guessMIMEType(filename, false); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), new FreenetURI("CHK@"), identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, false, -1, ClientPutMessage.UPLOAD_FROM_DISK, file, contentType, new FileBucket(file, true, false, false, false), null, file.getName()); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("get")) { String identifier = request.getParam("identifier"); ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.getIdentifier().equals(identifier)) { if (clientRequest instanceof ClientGet) { ClientGet clientGet = (ClientGet) clientRequest; if (clientGet.hasSucceeded()) { Bucket dataBucket = clientGet.getBucket(); if (dataBucket != null) { String forceDownload = request.getParam("forceDownload"); if (forceDownload.length() > 0) { long forceDownloadTime = Long.parseLong(forceDownload); if ((System.currentTimeMillis() - forceDownloadTime) > 60 * 1000) { break; } MultiValueTable responseHeaders = new MultiValueTable(); responseHeaders.put("Content-Disposition", "attachment; filename=\"" + clientGet.getURI().getPreferredFilename() + "\""); writeReply(ctx, 200, "application/x-msdownload", "OK", responseHeaders, dataBucket); return; } HTMLNode pageNode = ctx.getPageMaker().getPageNode("Potentially Unsafe Content"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode alertNode = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-alert", "Potentially Unsafe Content")); HTMLNode alertContent = ctx.getPageMaker().getContentNode(alertNode); alertContent.addChild("#", "The file you want to download is currently not filtered by Freenet\u2019s content filter! That means that your anonymity can be compromised by opening the file!"); HTMLNode optionListNode = alertContent.addChild("ul"); HTMLNode optionForm = optionListNode.addChild("li").addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" }); optionForm.addChild(ctx.getPageMaker().createFormPasswordInput(core.formPassword)); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "identifier", identifier }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "forceDownload", String.valueOf(System.currentTimeMillis()) }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "get", "Download anyway" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "return", "Return to queue page" }); writeReply(ctx, 200, "text/html; charset=utf-8", "OK", pageNode.generate()); return; } } writeError("Download Not Completed", "The download has not yet completed.", ctx); return; } } } writeError("Download Not Found", "The download could not be found. Maybe it was already deleted?", ctx); return; } } finally { request.freeParts(); } this.handleGet(uri, ctx); }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/a1fecafae45632a0c1d78ee6f5a32f03ec2221ca/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 23891, 590...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 23891, 590...
public void run() { getGlassPane().setVisible(false); _currentDefPane.setEditable(true); setAllowKeyEvents(true); }
public void run() { getGlassPane().setVisible(true); _currentDefPane.setEditable(false); setAllowKeyEvents(false); }
public void run() { getGlassPane().setVisible(false); _currentDefPane.setEditable(true); setAllowKeyEvents(true); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/5096aaab648cea3686054749f4edbb0813185db1/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 7162, 459, 8485, 7675, 542, 6207, 12, 5743, 1769, 1850, 389, 2972, 3262, 8485, 18, 542, 15470, 12, 3767, 1769, 1850, 444, 7009, 653, 3783, 12, 3767, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 1850, 7162, 459, 8485, 7675, 542, 6207, 12, 5743, 1769, 1850, 389, 2972, 3262, 8485, 18, 542, 15470, 12, 3767, 1769, 1850, 444, 7009, 653, 3783, 12, 3767, 1769...
protected void reconcileDefaults() { if (defaults != null && lastDefaultsChanges != defaults.changes) { int n = 0; int d = 0; int nsize = nodes.size(); int dsize = defaults.nodes.size(); AttrImpl nnode = (nsize == 0) ? null : (AttrImpl) nodes.elementAt(0); AttrImpl dnode = (dsize == 0) ? null : (AttrImpl) defaults.nodes.elementAt(0); while (n < nsize && d < dsize) { nnode = (AttrImpl) nodes.elementAt(n); dnode = (AttrImpl) defaults.nodes.elementAt(d); //int test = nnode.getNodeName().compareTo(dnode.getNodeName()); int testNS; String nNSString = nnode.getNamespaceURI(); String dNSString = dnode.getNamespaceURI(); // REVISTNS: Are null namespace and "" namespace equal? if (nNSString == null) if (dNSString == null) testNS = 0; else //if (dNSString.equals("")) // testNS = 0; //else testNS = 1; else if (dNSString == null) //if (nNSString.equals("")) // testNS = 0; //else testNS = -1; else testNS = nNSString.compareTo(dNSString); System.out.println("n,d"+nnode.getLocalName()+","+dnode.getLocalName()); int testLocal = ( nnode.getLocalName() ).compareTo( dnode.getLocalName() ); //int test = nnode.getNodeName().compareTo(dnode.getNodeName()); int test = (testNS != 0) ? testNS : testLocal; // Same name and a default -- make sure same value if (test == 0 && !nnode.getSpecified()) { NodeImpl clone = (NodeImpl)dnode.cloneNode(true); clone.parentNode = element; nodes.setElementAt(clone, n); // Advance over both, since names in sync ++n; ++d; } // Different name, new default in table; add it else if (test > 0) { NodeImpl clone = (NodeImpl)dnode.cloneNode(true); clone.parentNode = element; nodes.insertElementAt(clone, n); // Now in sync, so advance over both ++n; ++d; } // Different name, old default here; remove it. else if (!nnode.getSpecified()) { // NOTE: We don't need to null out the parent // because this is a node that we're // throwing away (not returning). -Ac // REVISIT: [Q] Should we null it out anyway? -Ac nodes.removeElementAt(n); // n didn't advance but represents a different element } // Different name, specified; accept it else { ++n; } } // If we ran out of local before default, pick up defaults while (d < dsize) { dnode = (AttrImpl)defaults.nodes.elementAt(d++); NodeImpl clone = (NodeImpl)dnode.cloneNode(true); clone.parentNode = element; nodes.addElement(clone); } lastDefaultsChanges = defaults.changes; } } // reconcileDefaults()
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/807cfa1ca58b75cd86d5c980cc676ae3f777c328/NamedNodeMapImpl.java/buggy/src/org/apache/xerces/dom/NamedNodeMapImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 27163, 7019, 1435, 288, 377, 202, 430, 261, 7606, 480, 446, 597, 1142, 7019, 7173, 480, 3467, 18, 6329, 13, 288, 377, 202, 202, 474, 290, 273, 374, 31, 5411, 509, 302, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 27163, 7019, 1435, 288, 377, 202, 430, 261, 7606, 480, 446, 597, 1142, 7019, 7173, 480, 3467, 18, 6329, 13, 288, 377, 202, 202, 474, 290, 273, 374, 31, 5411, 509, 302, 273, ...
0, 492, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0,
0, 0, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 41, 0, 0, 0,
private static final short[] yyTable2() { return new short[] { 472, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 327, 472, 476, 476, 476, 472, 472, 0, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 0, 0, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 473, 472, 472, 472, 472, 472, 472, 472, 472, 0, 473, 0, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 473, 0, 0, 0, 473, 473, 0, 473, 473, 473, 473, 78, 473, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 86, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 473, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 473, 0, 0, 473, 0, 0, 0, 278, 278, 0, 473, 278, 278, 278, 79, 278, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 87, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 278, 0, 0, 278, 0, 0, 0, 655, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 473, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 327, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 278, 278, 278, 473, 473, 0, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 0, 473, 473, 473, 473, 492, 473, 473, 473, 473, 473, 473, 473, 473, 0, 492, 0, 0, 473, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 251, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 469, 0, 0, 0, 0, 0, 412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 324, 0, 0, 469, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 0, 492, 327, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 58, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 469, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 412, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 470, 0, 678, 0, 90, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 470, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 0, 0, 476, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 90, 90, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 476, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 476, 0, 0, 90, 207, 0, 0, 106, 47, 48, 49, 0, 619, 232, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 0, 0, 14, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 91, 14, 91, 91, 91, 91, 91, 91, 91, 0, 470, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 91, 14, 0, 91, 91, 91, 91, 0, 91, 0, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 476, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 476, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 473, 0, 0, 0, 90, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 14, 14, 14, 0, 0, 0, 14, 14, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 91, 91, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 279, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 323, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 323, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 323, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 323, 278, 91, 0, 0, 91, 91, 91, 91, 0, 91, 492, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 492, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 492, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 91, 0, 0, 91, 91, 91, 91, 0, 91, 52, 91, 91, 91, 91, 91, 91, 0, 0, 0, 52, 91, 0, 0, 0, 492, 0, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 52, 0, 0, 0, 323, 323, 323, 323, 323, 323, 323, 0, 0, 323, 0, 0, 0, 52, 52, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 0, 323, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 52, 0, 0, 0, 0, 323, 0, 0, 323, 323, 323, 323, 0, 323, 0, 323, 323, 323, 323, 323, 323, 0, 492, 0, 0, 323, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 216, 492, 492, 0, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 52, 0, 0, 52, 52, 52, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 52, 52, 52, 52, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 41, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 41, 41, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 41, 0, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 350, 350, 0, 0, 350, 350, 350, 350, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 350, 350, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 423, 41, 350, 0, 350, 350, 0, 0, 0, 0, 423, 0, 0, 41, 41, 41, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 423, 423, 0, 0, 423, 423, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 423, 0, 423, 423, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 492, 492, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 350, 350, 350, 492, 350, 492, 492, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 350, 350, 0, 350, 350, 350, 350, 350, 0, 0, 32, 0, 492, 492, 492, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 0, 0, 350, 0, 0, 32, 0, 350, 261, 0, 0, 0, 0, 0, 0, 423, 423, 423, 0, 0, 423, 423, 423, 32, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 32, 424, 423, 0, 0, 0, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 492, 492, 492, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 492, 0, 273, 273, 0, 492, 273, 273, 273, 273, 273, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 0, 0, 279, 32, 32, 0, 32, 0, 273, 0, 273, 273, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 279, 279, 273, 273, 279, 279, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 88, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 279, 279, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 83, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 0, 0, 273, 273, 273, 0, 273, 280, 0, 280, 280, 0, 0, 0, 0, 0, 273, 273, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 273, 273, 273, 273, 273, 0, 494, 0, 0, 0, 0, 0, 280, 280, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 0, 0, 273, 0, 494, 0, 0, 273, 0, 0, 0, 279, 279, 279, 0, 0, 279, 279, 279, 0, 279, 494, 494, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 197, 0, 0, 0, 494, 0, 0, 0, 0, 0, 197, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 0, 0, 279, 494, 0, 0, 0, 279, 197, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 197, 197, 280, 280, 280, 197, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 197, 0, 0, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 0, 0, 0, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 197, 280, 280, 280, 0, 0, 280, 0, 373, 373, 0, 280, 373, 373, 373, 373, 373, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 494, 494, 0, 0, 494, 494, 494, 216, 494, 0, 0, 0, 0, 373, 0, 373, 373, 216, 494, 494, 0, 0, 0, 0, 0, 0, 0, 494, 494, 0, 494, 494, 494, 494, 494, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 373, 373, 216, 216, 216, 216, 216, 322, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 216, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 197, 197, 197, 0, 0, 197, 197, 197, 0, 197, 322, 0, 216, 216, 0, 290, 0, 0, 0, 197, 197, 0, 0, 0, 0, 290, 0, 0, 197, 197, 0, 197, 197, 197, 197, 197, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 290, 290, 290, 290, 290, 290, 290, 197, 197, 0, 0, 197, 197, 0, 0, 0, 0, 290, 290, 290, 197, 290, 290, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 0, 373, 373, 373, 0, 373, 290, 0, 290, 290, 0, 0, 0, 0, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 373, 373, 0, 373, 373, 373, 373, 373, 0, 56, 0, 0, 0, 0, 0, 290, 290, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 0, 0, 373, 373, 373, 0, 0, 373, 0, 56, 0, 0, 373, 0, 0, 0, 216, 216, 216, 0, 0, 216, 216, 216, 0, 216, 56, 56, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 216, 216, 216, 216, 216, 0, 0, 0, 0, 0, 202, 0, 0, 0, 56, 0, 0, 0, 0, 0, 202, 0, 0, 0, 0, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 0, 0, 216, 216, 322, 0, 0, 216, 56, 0, 0, 0, 216, 202, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 290, 202, 202, 290, 290, 290, 202, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 290, 290, 290, 290, 290, 0, 0, 202, 0, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 0, 0, 0, 0, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 0, 202, 290, 290, 290, 0, 0, 290, 0, 286, 286, 0, 290, 286, 286, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 410, 56, 0, 0, 0, 0, 286, 0, 286, 286, 410, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 286, 286, 410, 410, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 202, 202, 0, 0, 202, 202, 202, 0, 202, 410, 0, 410, 410, 0, 411, 0, 0, 0, 202, 202, 0, 0, 0, 0, 411, 0, 0, 202, 202, 0, 202, 202, 202, 202, 202, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 411, 411, 411, 411, 411, 411, 411, 202, 202, 0, 0, 202, 202, 0, 0, 0, 0, 411, 411, 411, 202, 411, 411, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 0, 286, 286, 286, 0, 286, 411, 0, 411, 411, 0, 0, 0, 0, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 286, 286, 0, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 0, 0, 286, 0, 0, 0, 0, 286, 0, 0, 0, 410, 410, 410, 0, 0, 410, 410, 410, 0, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 0, 0, 410, 410, 410, 0, 0, 410, 0, 0, 0, 0, 410, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 411, 411, 411, 0, 0, 411, 411, 411, 0, 411, 0, 175, 0, 174, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 411, 411, 411, 411, 411, 0, 0, 0, 0, 0, 193, 0, 0, 0, 177, 0, 185, 0, 0, 0, 193, 0, 0, 0, 0, 0, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 0, 0, 411, 411, 411, 0, 176, 411, 184, 193, 193, 0, 411, 193, 193, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 0, 0, 189, 189, 189, 189, 189, 0, 189, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 189, 189, 189, 0, 189, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 189, 189, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 186, 186, 0, 0, 186, 186, 186, 186, 186, 0, 186, 0, 0, 0, 0, 508, 509, 0, 0, 510, 0, 186, 186, 186, 0, 186, 186, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 186, 186, 0, 0, 0, 0, 0, 193, 193, 193, 0, 0, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 186, 186, 0, 0, 193, 193, 0, 193, 193, 193, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 0, 0, 193, 193, 189, 189, 189, 193, 0, 189, 189, 189, 193, 189, 0, 0, 0, 0, 0, 0, 334, 329, 0, 189, 189, 332, 330, 608, 331, 0, 333, 0, 189, 189, 0, 189, 189, 189, 189, 189, 0, 0, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 187, 0, 189, 189, 328, 0, 0, 189, 0, 0, 187, 0, 189, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 0, 0, 186, 186, 186, 0, 186, 0, 0, 0, 0, 327, 0, 0, 187, 187, 186, 186, 187, 187, 187, 187, 187, 0, 187, 186, 186, 0, 186, 186, 186, 186, 186, 0, 0, 187, 187, 187, 0, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 188, 0, 186, 186, 187, 187, 0, 186, }; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 1059, 9060, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 1059, 9060, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565...
TreeItem item = (TreeItem) doFindItem(element);
TreeItem item = (TreeItem) findItem(element);
public void setChildCount(Object element, int count) { Tree tree = (Tree) doFindInputItem(element); if (tree != null) { tree.setItemCount(count); return; } TreeItem item = (TreeItem) doFindItem(element); if (item != null) { item.setItemCount(count); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/cbb1e8120b7c7f75516a32becc9cfb15ad452ddd/TreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 1763, 1380, 12, 921, 930, 16, 509, 1056, 13, 288, 202, 202, 2471, 2151, 273, 261, 2471, 13, 741, 3125, 1210, 1180, 12, 2956, 1769, 202, 202, 430, 261, 3413, 480, 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, 444, 1763, 1380, 12, 921, 930, 16, 509, 1056, 13, 288, 202, 202, 2471, 2151, 273, 261, 2471, 13, 741, 3125, 1210, 1180, 12, 2956, 1769, 202, 202, 430, 261, 3413, 480, 4...
MailItem item = findWikiByNameTraverse(octxt, targetAccountId, targetFolderId, name);
MailItem item = findWikiByNameTraverse(ctxt, targetAccountId, targetFolderId, name);
public static MailItem findWikiByPathTraverse(OperationContext octxt, String accountId, int fid, String path) throws ServiceException { WikiUrl url = new WikiUrl(path, fid); Folder f = url.getFolder(octxt, accountId); String name = url.getFilename(); String targetAccountId = accountId; int targetFolderId = f.getId(); MailItem item = findWikiByNameTraverse(octxt, targetAccountId, targetFolderId, name); while (item == null) { Wiki w = getTemplateStore(targetAccountId); if (w == null) return null; targetAccountId = w.getWikiAccount(); targetFolderId = w.getWikiFolderId(); item = findWikiByNameTraverse(octxt, targetAccountId, targetFolderId, name); } return item; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/bc6c15214631a0208bca73138c6df92d9a96bb07/Wiki.java/clean/ZimbraServer/src/java/com/zimbra/cs/wiki/Wiki.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 11542, 1180, 1104, 25438, 16736, 29654, 12, 2988, 1042, 320, 20364, 16, 514, 17398, 16, 509, 13444, 16, 514, 589, 13, 1216, 16489, 288, 202, 202, 25438, 1489, 880, 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, 760, 11542, 1180, 1104, 25438, 16736, 29654, 12, 2988, 1042, 320, 20364, 16, 514, 17398, 16, 509, 13444, 16, 514, 589, 13, 1216, 16489, 288, 202, 202, 25438, 1489, 880, 273, 394...
dep.setVersion( version );
if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } }
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( project.hasParent() ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section Map artifactMap = project.getArtifactMap(); List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); String conflictId = ArtifactUtils.artifactId( dep.getGroupId(), dep.getArtifactId(), dep.getType(), dep.getClassifier(), dep.getVersion() ); Artifact artifact = (Artifact) artifactMap.get( conflictId ); String version = resolveVersion( artifact, "dependency", project ); dep.setVersion( version ); } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section Map pluginArtifactMap = project.getPluginArtifactMap(); List plugins = build.getPlugins(); for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) pluginArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "plugin", project ); plugin.setVersion( version ); } //Rewrite extensions section Map extensionArtifactMap = project.getExtensionArtifactMap(); List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String pluginId = ArtifactUtils.versionlessKey( ext.getGroupId(), ext.getArtifactId() ); Artifact artifact = (Artifact) extensionArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "extension", project ); ext.setVersion( version ); } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section Map reportArtifactMap = project.getReportArtifactMap(); List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String pluginId = plugin.getKey(); Artifact artifact = (Artifact) reportArtifactMap.get( pluginId ); String version = resolveVersion( artifact, "report", project ); plugin.setVersion( version ); } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/8c97337f8b1e7590b5b50936679ff46b9845de63/PrepareReleaseMojo.java/clean/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135...
private void createComposite1() {
private void createComposite1(Composite composite) {
private void createComposite1() { GridLayout gridLayout2 = new GridLayout(); gridLayout2.numColumns = 7; gridLayout2.makeColumnsEqualWidth = true; GridData gridData1 = new org.eclipse.swt.layout.GridData(); gridData1.horizontalSpan = 3; gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; gridData1.grabExcessVerticalSpace = true; gridData1.grabExcessHorizontalSpace = true; calendarComposite = new Composite(this, SWT.BORDER); calendarComposite.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE)); calendarComposite.setLayout(gridLayout2); calendarComposite.setLayoutData(gridData1); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/8a6a73cad5c9f714d5be443cd8a9bed7dffbd648/DatePickerPanel.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/DatePickerPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 9400, 21, 1435, 288, 202, 202, 6313, 3744, 3068, 3744, 22, 273, 394, 7145, 3744, 5621, 202, 202, 5222, 3744, 22, 18, 2107, 3380, 273, 2371, 31, 202, 202, 5222, 3744...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 9400, 21, 1435, 288, 202, 202, 6313, 3744, 3068, 3744, 22, 273, 394, 7145, 3744, 5621, 202, 202, 5222, 3744, 22, 18, 2107, 3380, 273, 2371, 31, 202, 202, 5222, 3744...
int linesAfterChange = line - myDocument.getLineNumber(e.getOffset());
int linesAfterChange = line - myDocument.getLineNumber(e.getOffset());
public void documentChanged(DocumentEvent e) { int line = myDocument.getLineNumber(e.getOffset() + e.getNewLength()); int linesAfterChange = line - myDocument.getLineNumber(e.getOffset()); int linesShift = linesAfterChange - myLinesBeforeChange; List<Range> rangesAfterChange = getRangesAfter(myLastChangedLine); List<Range> rangesBeforeChange = getRangesBefore(myFirstChangedLine); List<Range> changedRanges = getChangedRanges(myFirstChangedLine, myLastChangedLine); int newSize = rangesBeforeChange.size() + changedRanges.size() + rangesAfterChange.size(); if (myRanges.size() != newSize) { LOG.info("Ranges: " + myRanges + "; first changed line: " + myFirstChangedLine + "; last changed line: " + myLastChangedLine); LOG.assertTrue(false); } myLastChangedLine += linesShift; List<Range> newChangedRanges = getNewChangedRanges(); shiftRanges(rangesAfterChange, linesShift); if (!changedRanges.equals(newChangedRanges)) { replaceRanges(changedRanges, newChangedRanges); myRanges = new ArrayList<Range>(); myRanges.addAll(rangesBeforeChange); myRanges.addAll(newChangedRanges); myRanges.addAll(rangesAfterChange); if (myHighlighterCount != myRanges.size()) { LOG.assertTrue(false, "Highlighters: " + myHighlighterCount + ", ranges: " + myRanges.size()); } myRanges = mergeRanges(myRanges); for (Range range : myRanges) { if (!range.hasHighlighter()) range.setHighlighter(createHighlighter(range)); } if (myHighlighterCount != myRanges.size()) { LOG.assertTrue(false, "Highlighters: " + myHighlighterCount + ", ranges: " + myRanges.size()); } } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/a7795a37f1c8eebeea615883fffc7b0f9c34be31/LineStatusTracker.java/buggy/source/com/intellij/openapi/vcs/ex/LineStatusTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1668, 5033, 12, 2519, 1133, 425, 13, 288, 1377, 509, 980, 273, 3399, 2519, 18, 588, 31063, 12, 73, 18, 588, 2335, 1435, 397, 425, 18, 588, 1908, 1782, 10663, 1377, 509, 2362,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1668, 5033, 12, 2519, 1133, 425, 13, 288, 1377, 509, 980, 273, 3399, 2519, 18, 588, 31063, 12, 73, 18, 588, 2335, 1435, 397, 425, 18, 588, 1908, 1782, 10663, 1377, 509, 2362,...
soapHeaderBlock = new SOAP12HeaderBlockImpl(localName, ns, this);
soapHeaderBlock = new SOAP12HeaderBlockImpl(localName, ns, this, (SOAPFactory)this.factory);
public SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns) throws OMException { if (ns == null || ns.getName() == null || "".equals(ns.getName())) { throw new OMException( "All the SOAP Header blocks should be namespace qualified"); } OMNamespace namespace = findNamespace(ns.getName(), ns.getPrefix()); if (namespace != null) { ns = namespace; } SOAPHeaderBlock soapHeaderBlock = null; try { soapHeaderBlock = new SOAP12HeaderBlockImpl(localName, ns, this); } catch (SOAPProcessingException e) { throw new OMException(e); } ((OMNodeEx)soapHeaderBlock).setComplete(true); return soapHeaderBlock; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/46a014bae8b3bdea6efef1d984a295027545ce0c/SOAP12HeaderImpl.java/buggy/modules/doom/src/org/apache/axis2/soap/impl/dom/soap12/SOAP12HeaderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16434, 1864, 1768, 13906, 1768, 12, 780, 11927, 16, 28839, 3402, 3153, 13, 1216, 28839, 503, 288, 3639, 309, 261, 2387, 422, 446, 747, 3153, 18, 17994, 1435, 422, 446, 747, 1408, 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, 16434, 1864, 1768, 13906, 1768, 12, 780, 11927, 16, 28839, 3402, 3153, 13, 1216, 28839, 503, 288, 3639, 309, 261, 2387, 422, 446, 747, 3153, 18, 17994, 1435, 422, 446, 747, 1408, 18...
msg = mLocalizer.msg("buttons.nextPrevious", "Next / Previous"); prevNextCheck = new JCheckBox(msg);
public AppearanceSettingsTab() { String msg; setLayout(new BorderLayout()); JPanel content=new JPanel(); content.setLayout(new BoxLayout(content,BoxLayout.Y_AXIS)); content.setBorder(BorderFactory.createEmptyBorder(20,50,20,50)); JPanel lfPanel=new JPanel(new BorderLayout(10,0)); msg = mLocalizer.msg("lookAndFeel", "Aussehen"); JLabel lfLabel = new JLabel(msg); LookAndFeelObj[] obj=getLookAndFeelObjs(); lfComboBox=new JComboBox(obj); String lf=Settings.getLookAndFeel(); for (int i=0;i<obj.length;i++) { if (obj[i].getLFClassName().equals(lf)) { lfComboBox.setSelectedItem(obj[i]); } } lfPanel.add(lfLabel,BorderLayout.WEST); lfPanel.add(lfComboBox,BorderLayout.CENTER); lfLabel.setPreferredSize(new Dimension(200,(int)lfLabel.getPreferredSize().getHeight())); JPanel skinPanel=new JPanel(new BorderLayout(10,0)); msg = mLocalizer.msg("skin", "Background"); skinCheckBox = new JCheckBox(msg); skinTextField = new JTextField(Settings.getApplicationSkin()); msg = mLocalizer.msg("change", "Change"); final JButton skinChooseBtn = new JButton(msg); skinPanel.add(skinCheckBox,BorderLayout.WEST); skinPanel.add(skinTextField,BorderLayout.CENTER); skinPanel.add(skinChooseBtn,BorderLayout.EAST); skinCheckBox.setPreferredSize(new Dimension(200,(int)skinCheckBox.getPreferredSize().getHeight())); skinCheckBox.setSelected(Settings.useApplicationSkin()); skinChooseBtn.setEnabled(Settings.useApplicationSkin()); skinTextField.setEnabled(Settings.useApplicationSkin()); skinCheckBox.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { skinChooseBtn.setEnabled(skinCheckBox.isSelected()); skinTextField.setEnabled(skinCheckBox.isSelected()); } } ); final Component parent=this; skinChooseBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { JFileChooser fileChooser=new JFileChooser(); fileChooser.showOpenDialog(parent); File f=fileChooser.getSelectedFile(); if (f!=null) { skinTextField.setText(f.getAbsolutePath()); } } } ); JPanel tablePanel=new JPanel(); JPanel panel1=new JPanel(new BorderLayout()); JPanel panel2=new JPanel(); panel2.setLayout(new BoxLayout(panel2,BoxLayout.Y_AXIS)); tablePanel.setLayout(new BoxLayout(tablePanel,BoxLayout.Y_AXIS)); msg = mLocalizer.msg("tableBackground", "Table background"); tablePanel.setBorder(BorderFactory.createTitledBorder(msg)); ButtonGroup tablePanelBtnGroup = new ButtonGroup(); blankRadio = new JRadioButton(mLocalizer.msg("blank", "Blank")); wallpaperRadio = new JRadioButton(mLocalizer.msg("wallpaper", "Wallpaper")); columnsRadio = new JRadioButton(mLocalizer.msg("columns", "Columns")); tablePanelBtnGroup.add(blankRadio); tablePanelBtnGroup.add(wallpaperRadio); tablePanelBtnGroup.add(columnsRadio); int mode=Settings.getTableBGMode(); if (mode==Settings.NONE) { blankRadio.setSelected(true); }else if (mode==Settings.WALLPAPER) { wallpaperRadio.setSelected(true); }else if (mode==Settings.COLUMNS) { columnsRadio.setSelected(true); } blankRadio.addActionListener(this); wallpaperRadio.addActionListener(this); columnsRadio.addActionListener(this); JPanel tableBGPanel=new JPanel(new BorderLayout(10,0)); skinTableBGLabel=new JLabel(mLocalizer.msg("skin", "Background")); skinTableBGTextField=new JTextField(Settings.getTableSkin()); skinTableBGBtn=new JButton(mLocalizer.msg("change", "Change")); tableBGPanel.add(skinTableBGLabel,BorderLayout.WEST); tableBGPanel.add(skinTableBGTextField,BorderLayout.CENTER); tableBGPanel.add(skinTableBGBtn,BorderLayout.EAST); skinTableBGBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { JFileChooser fileChooser=new JFileChooser(); fileChooser.showOpenDialog(parent); File selection = fileChooser.getSelectedFile(); if (selection != null) { skinTableBGTextField.setText(selection.getAbsolutePath()); } } } ); panel2.add(blankRadio); panel2.add(Box.createRigidArea(new Dimension(0,5))); panel2.add(wallpaperRadio); panel2.add(Box.createRigidArea(new Dimension(0,5))); panel2.add(columnsRadio); panel2.add(Box.createRigidArea(new Dimension(0,5))); panel1.add(panel2,BorderLayout.WEST); tablePanel.add(panel1); tablePanel.add(tableBGPanel); JPanel buttonPanel=new JPanel(new GridLayout(1,0)); msg = mLocalizer.msg("buttons", "Buttons"); buttonPanel.setBorder(BorderFactory.createTitledBorder(msg)); JPanel visibleBtnsPanel=new JPanel(new BorderLayout()); JPanel panel3=new JPanel(new BorderLayout()); msg = mLocalizer.msg("showButtons", "Show buttons"); panel3.setBorder(BorderFactory.createTitledBorder(msg)); panel3.setLayout(new BoxLayout(panel3,BoxLayout.Y_AXIS)); mTimeCheck = new JCheckBox(mLocalizer.msg("buttons.time", "Time buttons")); msg = mLocalizer.msg("buttons.nextPrevious", "Next / Previous"); prevNextCheck = new JCheckBox(msg); updateCheck = new JCheckBox(mLocalizer.msg("buttons.update", "Update")); settingsCheck = new JCheckBox(mLocalizer.msg("buttons.settings", "Settings")); searchCheck = new JCheckBox(mLocalizer.msg("buttons.search", "Search")); panel3.add(mTimeCheck); panel3.add(prevNextCheck); panel3.add(updateCheck); panel3.add(settingsCheck); panel3.add(searchCheck); mTimeCheck.setSelected(Settings.isTimeBtnVisible()); updateCheck.setSelected(Settings.isUpdateBtnVisible()); settingsCheck.setSelected(Settings.isPreferencesBtnVisible()); visibleBtnsPanel.add(panel3,BorderLayout.NORTH); JPanel labelBtnsPanel=new JPanel(new BorderLayout()); JPanel panel4=new JPanel(new BorderLayout()); msg = mLocalizer.msg("label", "Label"); panel4.setBorder(BorderFactory.createTitledBorder(msg)); panel4.setLayout(new BoxLayout(panel4,BoxLayout.Y_AXIS)); textOnlyRadio = new JRadioButton(mLocalizer.msg("textOnly", "Text only")); picOnlyRadio = new JRadioButton(mLocalizer.msg("imagesOnly", "Images only")); textAndPicRadio = new JRadioButton(mLocalizer.msg("textAndImages", "Text and images")); ButtonGroup labelBtnsGroup=new ButtonGroup(); labelBtnsGroup.add(textOnlyRadio); labelBtnsGroup.add(picOnlyRadio); labelBtnsGroup.add(textAndPicRadio); if (Settings.getButtonSettings()==Settings.TEXT_ONLY) { textOnlyRadio.setSelected(true); }else if (Settings.getButtonSettings()==Settings.ICON_ONLY) { picOnlyRadio.setSelected(true); }else { textAndPicRadio.setSelected(true); } panel4.add(textOnlyRadio); panel4.add(picOnlyRadio); panel4.add(textAndPicRadio); labelBtnsPanel.add(panel4,BorderLayout.NORTH); buttonPanel.add(visibleBtnsPanel); buttonPanel.add(labelBtnsPanel); content.add(lfPanel); content.add(Box.createRigidArea(new Dimension(0,10))); content.add(skinPanel); content.add(Box.createRigidArea(new Dimension(0,10))); content.add(tablePanel); content.add(Box.createRigidArea(new Dimension(0,10))); content.add(buttonPanel); add(content,BorderLayout.NORTH); }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/c022ff385856283d917ef05a14980d721108d044/AppearanceSettingsTab.java/clean/tvbrowser/src/tvbrowser/ui/settings/AppearanceSettingsTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1716, 27668, 2628, 5661, 1435, 225, 288, 565, 514, 1234, 31, 565, 18479, 12, 2704, 30814, 10663, 565, 24048, 913, 33, 2704, 24048, 5621, 565, 913, 18, 542, 3744, 12, 2704, 8549, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1716, 27668, 2628, 5661, 1435, 225, 288, 565, 514, 1234, 31, 565, 18479, 12, 2704, 30814, 10663, 565, 24048, 913, 33, 2704, 24048, 5621, 565, 913, 18, 542, 3744, 12, 2704, 8549, 374...
public void addLocal(String vName) {
public void addLocal(String vName) {
public void addLocal(String vName) { Integer vIndex = (Integer)(itsVariableNames.get(vName)); if (vIndex != null) { LocalVariable v = (LocalVariable) (itsVariables.elementAt(vIndex.intValue())); if (v.isParameter()) { // this is o.k. the parameter subsumes the variable def. } else { return; } } int index = itsVariables.size(); LocalVariable lVar = createLocalVariable(vName, false); itsVariables.addElement(lVar); itsVariableNames.put(vName, new Integer(index)); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/13c17e9f4326e4e47b5e45bd238e7e6dc3c09063/VariableTable.java/buggy/js/rhino/org/mozilla/javascript/VariableTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2042, 12, 780, 331, 461, 13, 565, 288, 3639, 2144, 331, 1016, 273, 261, 4522, 21433, 1282, 3092, 1557, 18, 588, 12, 90, 461, 10019, 3639, 309, 261, 90, 1016, 480, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2042, 12, 780, 331, 461, 13, 565, 288, 3639, 2144, 331, 1016, 273, 261, 4522, 21433, 1282, 3092, 1557, 18, 588, 12, 90, 461, 10019, 3639, 309, 261, 90, 1016, 480, 446, ...
System.out.println("removing from address.");
public void removeFromAddress(Message m) { System.out.println("removing from address."); try { Address[] toRecs = m.getRecipients(Message.RecipientType.TO); Address[] ccRecs = m.getRecipients(Message.RecipientType.CC); Address[] bccRecs = m.getRecipients(Message.RecipientType.BCC); toRecs = filterAddressArray(toRecs); ccRecs = filterAddressArray(ccRecs); bccRecs = filterAddressArray(bccRecs); m.setRecipients(Message.RecipientType.TO, toRecs); m.setRecipients(Message.RecipientType.CC, ccRecs); m.setRecipients(Message.RecipientType.BCC, bccRecs); } catch (MessagingException me) { } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/68498619907f4e5f0b9b6e7fe4d623905b9eba22/UserProfile.java/buggy/net/suberic/pooka/UserProfile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22386, 1887, 12, 1079, 312, 13, 288, 202, 3163, 18, 659, 18, 8222, 2932, 2764, 13767, 628, 1758, 1199, 1769, 202, 698, 288, 202, 565, 5267, 8526, 358, 19589, 273, 312, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 22386, 1887, 12, 1079, 312, 13, 288, 202, 3163, 18, 659, 18, 8222, 2932, 2764, 13767, 628, 1758, 1199, 1769, 202, 698, 288, 202, 565, 5267, 8526, 358, 19589, 273, 312, 18, 58...
tmp56_AST = astFactory.create(LT(1));
if (inputState.guessing==0) { tmp56_AST = astFactory.create(LT(1)); }
public final void declarationStart() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST declarationStart_AST = null; switch ( LA(1)) { case LITERAL_def: { match(LITERAL_def); break; } case FINAL: case ABSTRACT: case STRICTFP: case LITERAL_static: case LITERAL_private: case LITERAL_public: case LITERAL_protected: case LITERAL_transient: case LITERAL_native: case LITERAL_threadsafe: case LITERAL_synchronized: case LITERAL_volatile: { modifier(); break; } case AT: { AST tmp53_AST = null; tmp53_AST = astFactory.create(LT(1)); match(AT); AST tmp54_AST = null; tmp54_AST = astFactory.create(LT(1)); match(IDENT); break; } case IDENT: case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: { { switch ( LA(1)) { case IDENT: { upperCaseIdent(); break; } case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: { builtInType(); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { _loop24: do { if ((LA(1)==LBRACK)) { AST tmp55_AST = null; tmp55_AST = astFactory.create(LT(1)); match(LBRACK); balancedTokens(); AST tmp56_AST = null; tmp56_AST = astFactory.create(LT(1)); match(RBRACK); } else { break _loop24; } } while (true); } AST tmp57_AST = null; tmp57_AST = astFactory.create(LT(1)); match(IDENT); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = declarationStart_AST; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyRecognizer.java/buggy/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 8266, 1685, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 8266, 1685, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 9...
public static void ensureConfigFolderExists(boolean userInteractionAllowed) {
public static void ensureConfigFolderExists(boolean userInteractionAllowed, final boolean createIfNotExists) {
public static void ensureConfigFolderExists(boolean userInteractionAllowed) { getConfigPathWithoutDialog(); File file = new File(ourConfigPath); if (!file.exists()) { file.mkdirs(); if (userInteractionAllowed) { ConfigImportHelper.importConfigsTo(ourConfigPath); } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/aa7ac2e629ca83a4a4884834d94abba107fcb578/PathManager.java/clean/openapi/src/com/intellij/openapi/application/PathManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3387, 809, 3899, 4002, 12, 6494, 729, 17419, 5042, 16, 727, 1250, 752, 25027, 13, 288, 565, 4367, 743, 8073, 6353, 5621, 565, 1387, 585, 273, 394, 1387, 12, 477, 22341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3387, 809, 3899, 4002, 12, 6494, 729, 17419, 5042, 16, 727, 1250, 752, 25027, 13, 288, 565, 4367, 743, 8073, 6353, 5621, 565, 1387, 585, 273, 394, 1387, 12, 477, 22341, ...
int tabWidth= CodeFormatterUtil.getTabWidth();
private void addEnclosingInstanceDeclaration(TextChangeManager manager) throws CoreException { int tabWidth= CodeFormatterUtil.getTabWidth(); String[] fieldSource= new String[]{createEnclosingInstanceAccessModifierStrings() + createDeclarationForEnclosingInstance() + ';'}; MemberEdit memberEdit= new MemberEdit(fType, MemberEdit.ADD_AT_BEGINNING, fieldSource, tabWidth); manager.get(getInputTypeCu()).addTextEdit(RefactoringCoreMessages.getString("MoveInnerToTopRefactoring.add_enclosing_instance_declaration"), memberEdit); //$NON-NLS-1$ }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/bce534a8d8f7bc70706ee725f7ea6b7724989ac4/MoveInnerToTopRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/MoveInnerToTopRefactoring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 21594, 1442, 6094, 12, 1528, 3043, 1318, 3301, 13, 1216, 30015, 288, 202, 202, 474, 3246, 2384, 33, 3356, 5074, 1304, 18, 588, 5661, 2384, 5621, 9506, 202, 780, 8526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 21594, 1442, 6094, 12, 1528, 3043, 1318, 3301, 13, 1216, 30015, 288, 202, 202, 474, 3246, 2384, 33, 3356, 5074, 1304, 18, 588, 5661, 2384, 5621, 9506, 202, 780, 8526,...
tableViewerImpl.cancelEditing(); }
tableEditorImpl.cancelEditing(); }
public void cancelEditing() { tableViewerImpl.cancelEditing(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/98f48f47b2fd4c2b264a8e2e689bcbe9c594c5d2/TableTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3755, 28029, 1435, 288, 3639, 1014, 18415, 2828, 18, 10996, 28029, 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, 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, 377, 1071, 918, 3755, 28029, 1435, 288, 3639, 1014, 18415, 2828, 18, 10996, 28029, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
{ return false; }
return false;
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) { return false; } break; case DESCENDANT_OR_SELF: return true; default: return false; } int tlen = tests.length; if (tlen > 0) { int pos = getContextPosition(context); int len = getContextSize(context); for (int j = 0; j < tlen && len > 0; j++) { Test test = tests[j]; if (!test.matches(context, pos, len)) { return false; } } } return true; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/27affa71c21beb8d5c7c9e981bf5fce0576c08f5/Selector.java/buggy/gnu/xml/xpath/Selector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1885, 12, 907, 819, 13, 225, 288, 565, 3025, 9507, 273, 819, 18, 588, 15101, 5621, 565, 1620, 261, 4890, 13, 1377, 288, 1377, 648, 6469, 11382, 30, 3639, 309, 261, 2159, 559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1885, 12, 907, 819, 13, 225, 288, 565, 3025, 9507, 273, 819, 18, 588, 15101, 5621, 565, 1620, 261, 4890, 13, 1377, 288, 1377, 648, 6469, 11382, 30, 3639, 309, 261, 2159, 559...
return getElement().getNamespace();
return getElement().getContributor().getName();
public String getPluginId() { return getElement().getNamespace(); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/301c98d0bb1cfed74f269ec752f1111df6936f9b/ContributionItemService.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.common.ui.services.action/src/org/eclipse/gmf/runtime/common/ui/services/action/contributionitem/ContributionItemService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 482, 514, 16319, 548, 1435, 288, 6862, 9506, 202, 2463, 7426, 7675, 588, 3402, 5621, 6862, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 482, 514, 16319, 548, 1435, 288, 6862, 9506, 202, 2463, 7426, 7675, 588, 3402, 5621, 6862, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
returnObject(streamer);
try { returnObject(streamer); } catch (Exception e) { throw new RuntimeException(e); }
public void returnDOMStreamer(DOMStreamer streamer) throws Exception { if(streamer == null) return; returnObject(streamer); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b97968ea5c7509390e358e4f2e731907b80df01b/DOMStreamerPool.java/clean/src/org/exist/util/serializer/DOMStreamerPool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 327, 8168, 1228, 264, 12, 8168, 1228, 264, 27320, 13, 1216, 1185, 288, 202, 202, 430, 12, 3256, 264, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 2463, 921, 12, 3256, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 327, 8168, 1228, 264, 12, 8168, 1228, 264, 27320, 13, 1216, 1185, 288, 202, 202, 430, 12, 3256, 264, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 2463, 921, 12, 3256, 2...
for (int i=0; i<fgPreprocessor.length; i++) { preprocessorRule.addWord(fgPreprocessor[i], token); }
i = ParserFactory.getKeywordSet( KeywordSetKey.PP_DIRECTIVE, ParserLanguage.C ).iterator(); while( i.hasNext() ) preprocessorRule.addWord((String) i.next(), token);
protected List createRules() { List rules= new ArrayList(); // Add rule for strings Token token= getToken(ICColorConstants.C_STRING); // Add rule for strings and character constants. rules.add(new SingleLineRule("'", "'", token, '\\')); //$NON-NLS-1$ //$NON-NLS-2$ // Add generic whitespace rule. //rules.add(new WhitespaceRule(new CWhitespaceDetector())); // Add word rule for keywords, types, and constants. token= getToken(ICColorConstants.C_DEFAULT); WordRule wordRule= new WordRule(new CWordDetector(), token); token= getToken(ICColorConstants.C_KEYWORD); for (int i=0; i<fgKeywords.length; i++) wordRule.addWord(fgKeywords[i], token); token= getToken(ICColorConstants.C_TYPE); for (int i=0; i<fgTypes.length; i++) wordRule.addWord(fgTypes[i], token); for (int i=0; i<fgConstants.length; i++) wordRule.addWord(fgConstants[i], token); rules.add(wordRule); token = getToken(ICColorConstants.C_TYPE); PreprocessorRule preprocessorRule = new PreprocessorRule(new CWordDetector(), token); for (int i=0; i<fgPreprocessor.length; i++) { preprocessorRule.addWord(fgPreprocessor[i], token); } rules.add(preprocessorRule); setDefaultReturnToken(getToken(ICColorConstants.C_DEFAULT)); return rules; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8b2e0e8b4dbd8f4921c28bfb30f50bc98ba2a37d/CCodeScanner.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CCodeScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 752, 4478, 1435, 288, 25083, 202, 682, 2931, 33, 394, 2407, 5621, 25083, 202, 759, 1436, 1720, 364, 2064, 202, 202, 1345, 1147, 33, 9162, 12, 2871, 2957, 2918, 18, 39, 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, 225, 202, 1117, 987, 752, 4478, 1435, 288, 25083, 202, 682, 2931, 33, 394, 2407, 5621, 25083, 202, 759, 1436, 1720, 364, 2064, 202, 202, 1345, 1147, 33, 9162, 12, 2871, 2957, 2918, 18, 39, 6...
case 201: break;
case 204: break;
public Symbol next_token() throws java.io.IOException { int yyFlexInput; int yyFlexAction; int [] yyFlexTransL = YY_TRANS; int [] yyFlexRowMapL = YY_ROWMAP; int [] yyFlexAttrL = YY_ATTRIBUTE; int yyFlexPushbackPos_l = yyFlexPushbackPos = -1; boolean yy_was_pushback; while (true) { // cached fields: int yyFlexCurrentPosL; int yyFlexMarkedPosL = yyFlexMarkedPos; int yyFlexEndReadL = yyFlexEndRead; char [] yyFlexBufferL = yyFlexBuffer; char [] yyCMapL = YY_CMAP; boolean yyFlexR = false; for (yyFlexCurrentPosL = yyFlexStartRead; yyFlexCurrentPosL < yyFlexMarkedPosL; yyFlexCurrentPosL++) { switch (yyFlexBufferL[yyFlexCurrentPosL]) { case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyline++; yycolumn = 0; yyFlexR = false; break; case '\r': yyline++; yycolumn = 0; yyFlexR = true; break; case '\n': if (yyFlexR) yyFlexR = false; else { yyline++; yycolumn = 0; } break; default: yyFlexR = false; yycolumn++; } } if (yyFlexR) { // peek one character ahead if it is \n (if we have counted one line too much) boolean yyFlexPeek; if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; else if (yyFlexAtEOF) yyFlexPeek = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexPeek = false; else yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; } if (yyFlexPeek) yyline--; } if (yyFlexMarkedPosL > yyFlexStartRead) { switch (yyFlexBufferL[yyFlexMarkedPosL-1]) { case '\n': case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyFlexAtBOL = true; break; case '\r': if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; else if (yyFlexAtEOF) yyFlexAtBOL = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexAtBOL = false; else yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; } break; default: yyFlexAtBOL = false; } } yyFlexAction = -1; yyFlexCurrentPosL = yyFlexCurrentPos = yyFlexStartRead = yyFlexMarkedPosL; if (yyFlexAtBOL) yyFlexState = YY_LEXSTATE[yyFlexLexicalState+1]; else yyFlexState = YY_LEXSTATE[yyFlexLexicalState]; yy_was_pushback = false; yy_forAction: { while (true) { if (yyFlexCurrentPosL < yyFlexEndReadL) yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; else if (yyFlexAtEOF) { yyFlexInput = YYEOF; break yy_forAction; } else { // store back cached positions yyFlexCurrentPos = yyFlexCurrentPosL; yyFlexMarkedPos = yyFlexMarkedPosL; yyFlexPushbackPos = yyFlexPushbackPos_l; boolean eof = yyFlexRefill(); // get translated positions and possibly new buffer yyFlexCurrentPosL = yyFlexCurrentPos; yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; yyFlexEndReadL = yyFlexEndRead; yyFlexPushbackPos_l = yyFlexPushbackPos; if (eof) { yyFlexInput = YYEOF; break yy_forAction; } else { yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; } } int yyFlexNext = yyFlexTransL[ yyFlexRowMapL[yyFlexState] + yyCMapL[yyFlexInput] ]; if (yyFlexNext == -1) break yy_forAction; yyFlexState = yyFlexNext; int yyFlexAttributes = yyFlexAttrL[yyFlexState]; if ( (yyFlexAttributes & 2) == 2 ) yyFlexPushbackPos_l = yyFlexCurrentPosL; if ( (yyFlexAttributes & 1) == 1 ) { yy_was_pushback = (yyFlexAttributes & 4) == 4; yyFlexAction = yyFlexState; yyFlexMarkedPosL = yyFlexCurrentPosL; if ( (yyFlexAttributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yyFlexMarkedPos = yyFlexMarkedPosL; if (yy_was_pushback) yyFlexMarkedPos = yyFlexPushbackPos_l; switch (yyFlexAction < 0 ? yyFlexAction : YY_ACTION[yyFlexAction]) { case 85: { return symbol(FULL); } case 141: break; case 92: { debugOption = true; } case 142: break; case 57: { return symbol(CHAR,new Character('\t')); } case 143: break; case 107: { throw new ScannerException(file,ErrorMessages.NO_BUFFER_SIZE, yyline); } case 144: break; case 91: { isYYEOF = true; } case 145: break; case 54: { return symbol(CHAR, new Character(yytext().charAt(1))); } case 146: break; case 11: { yybegin(REGEXP); } case 147: break; case 112: { isAbstract = true; } case 148: break; case 101: { initCode = conc(initCode,string); yybegin(MACROS); } case 149: break; case 45: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_NL, yyline, yycolumn); } case 150: break; case 12: { return symbol_countUpdate(RBRACE, null); } case 151: break; case 74: { return symbol(REPEAT, new Integer(yytext().substring(1).trim())); } case 152: break; case 55: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8))); } case 153: break; case 97: { columnCount = true; } case 154: break; case 122: { return symbol(LETTERCLASS); } case 155: break; case 15: { if (macroDefinition) { yybegin(MACROS); } return symbol(REGEXPEND); } case 156: break; case 77: { inclusive_states = true; yybegin(STATELIST); } case 157: break; case 56: { return symbol(CHAR,new Character('\n')); } case 158: break; case 81: { return symbol(MACROUSE, yytext().substring(1,yytext().length()-1)); } case 159: break; case 25: { return symbol(OPENBRACKET); } case 160: break; case 123: { throw new ScannerException(file,ErrorMessages.QUIL_INITTHROW, yyline); } case 161: break; case 126: { visibility = "private"; Skeleton.makePrivate(); } case 162: break; case 49: { commentbalance++; } case 163: break; case 9: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 164: break; case 68: { string.append('\n'); } case 165: break; case 33: { balance++; actionText.append('{'); } case 166: break; case 48: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 167: break; case 67: { string.append('\"'); } case 168: break; case 95: { tokenType = yytext().substring(6).trim(); } case 169: break; case 79: { return symbol_countUpdate(MACROUSE, makeMacroIdent()); } case 170: break; case 14: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 171: break; case 32: { if (balance > 0) { balance--; actionText.append('}'); } else { yybegin(REGEXPSTART); Action a = new Action(actionText.toString(), action_line); actions.addElement(a); return symbol(ACTION, a); } } case 172: break; case 108: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol_countUpdate(EOFRULE, null); } case 173: break; case 120: { isExtending = yytext().substring(9).trim(); } case 174: break; case 113: { cupSymbol = yytext().substring(8).trim(); if (cupCompatible) Out.warning(ErrorMessages.CUPSYM_AFTER_CUP, yyline); } case 175: break; case 63: { yybegin(REPEATEXP); return symbol(REPEAT, new Integer(yytext().trim().substring(1).trim())); } case 176: break; case 88: { packed = true; useRowMap = true; } case 177: break; case 27: { return symbol(PLUS); } case 178: break; case 99: { isPublic = true; } case 179: break; case 70: { string.append('\r'); } case 180: break; case 76: { inclusive_states = false; yybegin(STATELIST); } case 181: break; case 3: { userCode.append(yytext()); } case 182: break; case 19: { lookAheadUsed = true; return symbol(LOOKAHEAD); } case 183: break; case 110: { lexThrow = concExc(lexThrow,yytext().substring(8).trim()); } case 184: break; case 26: { return symbol(CLOSEBRACKET); } case 185: break; case 80: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 186: break; case 37: { throw new ScannerException(file,ErrorMessages.UNTERMINATED_STR, yyline, yycolumn); } case 187: break; case 111: { eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 188: break; case 69: { string.append('\t'); } case 189: break; case 23: { return symbol(BANG); } case 190: break; case 17: { yybegin(CHARCLASS); return symbol(OPENCLASS); } case 191: break; case 114: { cupDebug = true; } case 192: break; case 87: { charCount = true; } case 193: break; case 58: { return symbol(CHAR,new Character('\r')); } case 194: break; case 66: { string.append( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8)); } case 195: break; case 134: { scanErrorException = yytext().substring(11).trim(); } case 196: break; case 60: { return symbol(CHAR,new Character('\b')); } case 197: break; case 35: { yybegin(REGEXP); return symbol(MORETHAN); } case 198: break; case 132: { isImplementing = concExc(isImplementing, yytext().substring(12).trim()); } case 199: break; case 78: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 200: break; case 90: { isFinal = true; } case 201: break; case 137: { return symbol(UPPERCLASS); } case 202: break; case 46: { yybegin(REGEXP); return symbol(RBRACE); } case 203: break; case 51: { Out.warning(ErrorMessages.NOT_AT_BOL, yyline); yypushback(1); } case 204: break; case 28: { return symbol(QUESTION); } case 205: break; case 36: { string.append(yytext()); } case 206: break; case 135: { initThrow = concExc(initThrow,string); yybegin(MACROS); } case 207: break; case 140: { return symbol(JLETTERDIGITCLASS); } case 208: break; case 53: { nextState = REGEXPSTART; yybegin(COMMENT); } case 209: break; case 130: { eofThrow = concExc(eofThrow,string); yybegin(MACROS); } case 210: break; case 61: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(REGEXPEND); } case 211: break; case 138: { return symbol(LOWERCLASS); } case 212: break; case 38: { yybegin(nextState); return symbol(STRING, string.toString()); } case 213: break; case 82: { classCode = conc(classCode,string); yybegin(MACROS); } case 214: break; case 8: { return symbol(IDENT, yytext()); } case 215: break; case 43: { return symbol(HAT); } case 216: break; case 29: { lookAheadUsed = true; return symbol(DOLLAR); } case 217: break; case 124: { eofThrow = concExc(eofThrow,yytext().substring(10).trim()); } case 218: break; case 5: { states.insert(yytext(),inclusive_states); } case 219: break; case 84: { cupCompatible = true; isImplementing = concExc(isImplementing, "java_cup.runtime.Scanner"); if (functionName == null) functionName = "next_token"; if (tokenType == null) tokenType = "java_cup.runtime.Symbol"; if (eofVal == null) eofVal = "return new java_cup.runtime.Symbol("+cupSymbol+".EOF);"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 220: break; case 127: { standalone = true; isInteger = true; } case 221: break; case 4: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_CHAR, yyline, yycolumn); } case 222: break; case 47: { t.start(); yybegin(MACROS); macroDefinition = true; return symbol(USERCODE,userCode); } case 223: break; case 59: { return symbol(CHAR,new Character('\f')); } case 224: break; case 94: { eofCode = conc(eofCode,string); yybegin(MACROS); } case 225: break; case 65: { string.append(yytext().charAt(1)); } case 226: break; case 115: { caseless = true; } case 227: break; case 39: { throw new ScannerException(file,ErrorMessages.EOL_IN_CHARCLASS,yyline,yycolumn); } case 228: break; case 117: { return symbol(DIGITCLASS); } case 229: break; case 64: { if (macroDefinition) { yybegin(EATWSPNL); return symbol(BAR); } else { yybegin(REGEXPSTART); return symbol(NOACTION); } } case 230: break; case 30: { bolUsed = true; return symbol(HAT); } case 231: break; case 105: { throw new ScannerException(file,ErrorMessages.QUIL_CUPSYM, yyline); } case 232: break; case 102: { isIntWrap = true; } case 233: break; case 41: { if (balance > 0) balance--; else yybegin(REGEXP); return symbol(CLOSECLASS); } case 234: break; case 116: { bufferSize = Integer.parseInt(yytext().substring(8).trim()); } case 235: break; case 31: { actionText.append(yytext()); } case 236: break; case 86: { lineCount = true; } case 237: break; case 128: { throw new ScannerException(file,ErrorMessages.QUIL_SCANERROR, yyline); } case 238: break; case 104: { throw new ScannerException(file,ErrorMessages.QUIL_THROW, yyline); } case 239: break; case 83: { isInteger = true; } case 240: break; case 129: { return symbol(JLETTERCLASS); } case 241: break; case 98: { isInteger = true; if (eofVal == null) eofVal = "return 0;"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 242: break; case 18: { return symbol(STAR); } case 243: break; case 121: { throw new ScannerException(file,ErrorMessages.QUIL_EOFTHROW, yyline); } case 244: break; case 44: { return symbol(DASH); } case 245: break; case 106: { className = yytext().substring(7).trim(); } case 246: break; case 62: { nextState = REGEXP; yybegin(COMMENT); } case 247: break; case 136: { lexThrow = concExc(lexThrow,yytext().substring(12).trim()); } case 248: break; case 22: { return symbol(BAR); } case 249: break; case 125: { functionName = yytext().substring(10).trim(); } case 250: break; case 13: { yybegin(STATES); return symbol_countUpdate(LESSTHAN, null); } case 251: break; case 119: { eofVal = string.toString(); yybegin(MACROS); } case 252: break; case 73: { yypushback(1); yycolumn--; return symbol(CHAR, new Character(yytext().charAt(0))); } case 253: break; case 24: { return symbol(TILDE); } case 254: break; case 139: { lexThrow = concExc(lexThrow,string); yybegin(MACROS); } case 255: break; case 103: { notUnix = true; } case 256: break; case 89: { packed = false; useRowMap = true; } case 257: break; case 20: { string.setLength(0); nextState = REGEXP; yybegin(STRING_CONTENT); } case 258: break; case 2: { /* ignore */ } case 259: break; case 93: { return symbol(UNICODE); } case 260: break; case 16: { return symbol(POINT); } case 261: break; case 72: { string.append('\b'); } case 262: break; case 21: { yybegin(REGEXPSTART); return symbol(LBRACE); } case 263: break; case 131: { initThrow = concExc(initThrow,yytext().substring(11).trim()); } case 264: break; case 96: { packed = false; useRowMap = false; } case 265: break; case 7: { yybegin(MACROS); } case 266: break; case 75: { string.setLength(0); yybegin(COPY); } case 267: break; case 42: { string.setLength(0); nextState = CHARCLASS; yybegin(STRING_CONTENT); } case 268: break; case 118: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(EOFRULE); } case 269: break; case 52: { macroDefinition = false; yybegin(REGEXPSTART); return symbol(DELIMITER); } case 270: break; case 50: { nextState = MACROS; yybegin(COMMENT); } case 271: break; case 10: { yybegin(REGEXP); return symbol(EQUALS); } case 272: break; case 34: { return symbol(COMMA); } case 273: break; case 1: { return symbol(EOF); } case 274: break; case 100: { throw new ScannerException(file,ErrorMessages.EOF_WO_ACTION); } case 275: break; case 71: { string.append('\f'); } case 276: break; case 40: { balance++; return symbol(OPENCLASS); } case 277: break; case 133: { throw new ScannerException(file,ErrorMessages.QUIL_YYLEXTHROW, yyline); } case 278: break; case 109: { File f = new File(yytext().substring(9).trim()); if ( !f.canRead() ) throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); // check for cycle if (files.search(f) > 0) throw new ScannerException(file,ErrorMessages.FILE_CYCLE, yyline); try { yypushStream( new FileReader(f) ); files.push(file); file = f; Out.println("Including \""+file+"\""); } catch (FileNotFoundException e) { throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); } } case 279: break; case 6: { } case 280: break; default: if (yyFlexInput == YYEOF && yyFlexStartRead == yyFlexCurrentPos) { yyFlexAtEOF = true; yyFlexDoEOF(); switch (yyFlexLexicalState) { case STRING_CONTENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_STRING); } case 745: break; case MACROS: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 746: break; case STATELIST: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 747: break; case CHARCLASS: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 748: break; case JAVA_CODE: { throw new ScannerException(file,ErrorMessages.EOF_IN_ACTION, action_line-1); } case 749: break; case REPEATEXP: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 750: break; case COMMENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_COMMENT); } case 751: break; case STATES: { throw new ScannerException(file,ErrorMessages.EOF_IN_STATES); } case 752: break; case COPY: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 753: break; default: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else return symbol(EOF); } } } else { yyFlexScanError(YY_NO_MATCH); } } } }
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/7127ef36c07cc747ba55753a94d44dca753c5c62/LexScan.java/buggy/src/JFlex/LexScan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8565, 1024, 67, 2316, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 9016, 19667, 1210, 31, 565, 509, 9016, 19667, 1803, 31, 565, 509, 5378, 9016, 19667, 1429, 48, 273, 1624,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8565, 1024, 67, 2316, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 9016, 19667, 1210, 31, 565, 509, 9016, 19667, 1803, 31, 565, 509, 5378, 9016, 19667, 1429, 48, 273, 1624,...
public synchronized static BugzillaRepository getInstance() { if (instance == null) { // if the instance hasn't been created yet, create one instance = new BugzillaRepository( BugzillaPlugin.getDefault().getServerName()); } // fix bug 58 by updating url if it changes if(! BugzillaRepository.bugzillaUrl.equals(BugzillaPlugin.getDefault().getServerName())) { BugzillaRepository.bugzillaUrl = BugzillaPlugin.getDefault().getServerName(); } return instance; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7dcfd671c09bb0bddf39851fb6f84201fc98cdfe/BugzillaRepository.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 760, 16907, 15990, 3305, 3694, 1435, 225, 202, 95, 202, 202, 430, 261, 1336, 422, 446, 13, 3196, 202, 95, 1082, 202, 759, 309, 326, 791, 13342, 1404, 2118, 2522, 4671, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 16907, 15990, 3305, 3694, 1435, 225, 202, 95, 202, 202, 430, 261, 1336, 422, 446, 13, 3196, 202, 95, 1082, 202, 759, 309, 326, 791, 13342, 1404, 2118, 2522, 4671, 1...
}
} else if (logger.isInfoEnabled()) { logger.info(getAgentIdentifier() + ".addConsumerPGs did not add any PGs to " + a); } } else { if (logger.isInfoEnabled()) logger.info(getAgentIdentifier() + ".addConsumerPGs had non Class7MEI: " + a);
protected void addConsumerPGs(Collection meiConsumers) { Iterator meis = meiConsumers.iterator(); Asset a, anAsset; boolean addedPG = false; while (meis.hasNext()) { a = (Asset)meis.next(); if (a instanceof AggregateAsset) { anAsset = ((AggregateAsset)a).getAsset(); } else { anAsset = a; } if (anAsset instanceof ClassVIIMajorEndItem) { if (anAsset instanceof Level2MEIAsset) { //This cargo category code means, "do not transport me." setNoTransportCargoCode(anAsset); } boolean[] consumed = checkMeiConsumption(anAsset); if (consumes(consumed, FUEL) && anAsset.searchForPropertyGroup(FuelConsumerPG.class) == null) { logger.debug("addConsumerPGs() CREATING FuelConsumerPG for "+anAsset+" in "+ getAgentIdentifier()); NewFuelConsumerPG fuelpg = (NewFuelConsumerPG)getLDM().getFactory().createPropertyGroup(FuelConsumerPG.class); fuelpg.setMei(a); fuelpg.setService(service); fuelpg.setTheater(THEATER); if (anAsset instanceof Level2MEIAsset) { fuelpg.setFuelBG(new Level2FuelConsumerBG(fuelpg)); } else { fuelpg.setFuelBG(new FuelConsumerBG(fuelpg)); } fuelpg.initialize(this); anAsset.setPropertyGroup(fuelpg); addedPG = true; } if (consumes(consumed, AMMO) && anAsset.searchForPropertyGroup(AmmoConsumerPG.class) == null) { logger.debug("addConsumerPGs() CREATING AmmoConsumerPG for "+anAsset+" in "+ getAgentIdentifier()); NewAmmoConsumerPG ammopg = (NewAmmoConsumerPG)getLDM().getFactory().createPropertyGroup(AmmoConsumerPG.class); ammopg.setMei(a); ammopg.setService(service); ammopg.setTheater(THEATER); if (anAsset instanceof Level2MEIAsset) { ammopg.setAmmoBG(new Level2AmmoConsumerBG(ammopg)); } else { ammopg.setAmmoBG(new AmmoConsumerBG(ammopg)); } ammopg.initialize(this); anAsset.setPropertyGroup(ammopg); addedPG = true; } if (consumes(consumed, PKG_POL) && anAsset.searchForPropertyGroup(PackagedPOLConsumerPG.class) == null) { logger.debug("addConsumerPGs() CREATING PackagedPOLConsumerPG for "+anAsset+" in "+ getAgentIdentifier()); NewPackagedPOLConsumerPG packagedpg = (NewPackagedPOLConsumerPG)getLDM().getFactory().createPropertyGroup(PackagedPOLConsumerPG.class); packagedpg.setMei(a); packagedpg.setService(service); packagedpg.setTheater(THEATER); packagedpg.setPackagedPOLBG(new PackagedPOLConsumerBG(packagedpg)); packagedpg.initialize(this); anAsset.setPropertyGroup(packagedpg); addedPG = true; } if (consumes(consumed, SPARES) && anAsset.searchForPropertyGroup(RepairPartConsumerPG.class) == null) { logger.debug("addConsumerPGs() CREATING RepairPartConsumerPG for "+anAsset+" in "+ getAgentIdentifier()); NewRepairPartConsumerPG partpg = (NewRepairPartConsumerPG)getLDM().getFactory().createPropertyGroup(RepairPartConsumerPG.class); partpg.setMei(a); partpg.setService(service); partpg.setTheater(THEATER); partpg.setRepairPartBG(new RepairPartConsumerBG(partpg)); partpg.initialize(this); anAsset.setPropertyGroup(partpg); addedPG = true; } if (addedPG) { publishChange(a); } } } }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/ba7ac6390e550f4c0b2729063237f04f3450b222/MEIPrototypeProvider.java/clean/bbn/src/org/cougaar/logistics/ldm/MEIPrototypeProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 527, 5869, 18679, 87, 12, 2532, 1791, 77, 23538, 13, 288, 565, 4498, 1791, 291, 273, 1791, 77, 23538, 18, 9838, 5621, 565, 10494, 279, 16, 392, 6672, 31, 565, 1250, 3096, 186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 527, 5869, 18679, 87, 12, 2532, 1791, 77, 23538, 13, 288, 565, 4498, 1791, 291, 273, 1791, 77, 23538, 18, 9838, 5621, 565, 10494, 279, 16, 392, 6672, 31, 565, 1250, 3096, 186...
new StringBuffer().append(next).toString();
String.valueOf(next);
public Token match(int tok) throws ParseException { if (Debug.parserDebug) { Debug.println("match " + tok); } if (tok > START && tok < END) { if (tok == ID) { // Generic ID sought. if (!startsId()) throw new ParseException(buffer + "\nID expected", ptr); String id = getNextId(); this.currentMatch = new Token(); this.currentMatch.tokenValue = id; this.currentMatch.tokenType = ID; } else if (tok == SAFE) { if (!startsSafeToken()) throw new ParseException(buffer + "\nID expected", ptr); String id = ttokenSafe(); this.currentMatch = new Token(); this.currentMatch.tokenValue = id; this.currentMatch.tokenType = SAFE; } else { String nexttok = getNextId(); Integer cur = (Integer) currentLexer.get(nexttok.toUpperCase()); if (cur == null || cur.intValue() != tok) throw new ParseException( buffer + "\nUnexpected Token : " + nexttok, ptr); this.currentMatch = new Token(); this.currentMatch.tokenValue = nexttok; this.currentMatch.tokenType = tok; } } else if (tok > END) { // Character classes. char next = lookAhead(0); if (tok == DIGIT) { if (!isDigit(next)) throw new ParseException(buffer + "\nExpecting DIGIT", ptr); this.currentMatch = new Token(); this.currentMatch.tokenValue = new StringBuffer().append(next).toString(); this.currentMatch.tokenType = tok; consume(1); } else if (tok == ALPHA) { if (!isAlpha(next)) throw new ParseException(buffer + "\nExpecting ALPHA", ptr); this.currentMatch = new Token(); this.currentMatch.tokenValue = new StringBuffer().append(next).toString(); this.currentMatch.tokenType = tok; consume(1); } } else { // This is a direct character spec. Character ch = new Character((char) tok); char next = lookAhead(0); if (next == ch.charValue()) { this.currentMatch = new Token(); this.currentMatch.tokenValue = new StringBuffer().append(ch.charValue()).toString(); this.currentMatch.tokenType = tok; consume(1); } else throw new ParseException( buffer + "\nExpecting >>>" + ch.charValue() + "<<< got >>>" + next + "<<<", ptr); } return this.currentMatch; }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/LexerCore.java/buggy/trunk/src/gov/nist/core/LexerCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3155, 845, 12, 474, 946, 13, 1216, 10616, 288, 202, 202, 430, 261, 2829, 18, 4288, 2829, 13, 288, 1082, 202, 2829, 18, 8222, 2932, 1916, 315, 397, 946, 1769, 202, 202, 97, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3155, 845, 12, 474, 946, 13, 1216, 10616, 288, 202, 202, 430, 261, 2829, 18, 4288, 2829, 13, 288, 1082, 202, 2829, 18, 8222, 2932, 1916, 315, 397, 946, 1769, 202, 202, 97, 2...
fireContentsChanged(this, index, index);
fireIntervalAdded(this, index, index);
public void add(int index, Object element) { elements.add(index, element); fireContentsChanged(this, index, index); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/0c95e71ccd71fcc45b4d3edcb1e9b3f146ddfd19/DefaultListModel.java/clean/libraries/javalib/javax/swing/DefaultListModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 12, 474, 770, 16, 1033, 930, 13, 225, 288, 565, 2186, 18, 1289, 12, 1615, 16, 930, 1769, 565, 4452, 4006, 8602, 12, 2211, 16, 770, 16, 770, 1769, 225, 289, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 12, 474, 770, 16, 1033, 930, 13, 225, 288, 565, 2186, 18, 1289, 12, 1615, 16, 930, 1769, 565, 4452, 4006, 8602, 12, 2211, 16, 770, 16, 770, 1769, 225, 289, 2, -100, ...
assertEquals("expected same:<hello> was not:<good-bye>", exception .getMessage());
assertEquals("expected same:<hello> was not:<good-bye>", exception.getMessage());
@Test public void sameNullMessage() { try { assertSame("hello", "good-bye"); } catch (AssertionError exception) { assertEquals("expected same:<hello> was not:<good-bye>", exception .getMessage()); } }
50133 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50133/b0c0b79ae5e0dcfc1670cf950d31a14f1c9c630c/AssertionTest.java/clean/org/junit/tests/AssertionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 36, 4709, 1071, 918, 1967, 2041, 1079, 1435, 288, 202, 202, 698, 288, 1082, 202, 11231, 8650, 2932, 23711, 3113, 315, 19747, 17, 1637, 73, 8863, 202, 202, 97, 1044, 261, 14979, 668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 36, 4709, 1071, 918, 1967, 2041, 1079, 1435, 288, 202, 202, 698, 288, 1082, 202, 11231, 8650, 2932, 23711, 3113, 315, 19747, 17, 1637, 73, 8863, 202, 202, 97, 1044, 261, 14979, 668, ...
RubyClass type = (RubyClass) runtime.getRubyClass(className.toId());
RubyClass type = (RubyClass) runtime.getClasses().getClassFromPath(className.toId()); Asserts.assertNotNull(type, "type shouldn't be null.");
private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); // ... FIXME: handle if class doesn't exist ... RubyClass type = (RubyClass) runtime.getRubyClass(className.toId()); IRubyObject result = runtime.getFactory().newObject(type); for (int i = 0, count = unmarshalInt(); i < count; i++) { result.setInstanceVariable(unmarshalObject().toId(), unmarshalObject()); } return result; }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/76d37f709db398798e5b6a889937559a9e75e062/UnmarshalStream.java/clean/org/jruby/runtime/marshal/UnmarshalStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 805, 921, 9593, 1435, 1216, 1860, 288, 3639, 19817, 5335, 2658, 273, 261, 54, 10340, 5335, 13, 11401, 921, 5621, 3639, 368, 1372, 9852, 30, 1640, 309, 667, 3302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 805, 921, 9593, 1435, 1216, 1860, 288, 3639, 19817, 5335, 2658, 273, 261, 54, 10340, 5335, 13, 11401, 921, 5621, 3639, 368, 1372, 9852, 30, 1640, 309, 667, 3302, ...
MemoryCache( IResultObject[] resultObjects, IResultClass rsMeta,
public MemoryCache( IResultObject[] resultObjects, IResultClass rsMeta,
MemoryCache( IResultObject[] resultObjects, IResultClass rsMeta, Comparator comparator ) { this.resultObjects = resultObjects; this.rsMeta = rsMeta; this.countOfResult = resultObjects.length; if ( comparator != null ) Arrays.sort( this.resultObjects, comparator ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/00244bb436ab578cc2a1fa2282a283e816d4c3d0/MemoryCache.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/MemoryCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6031, 1649, 12, 467, 1253, 921, 8526, 563, 4710, 16, 467, 1253, 797, 3597, 2781, 16, 1082, 202, 5559, 8862, 262, 202, 95, 202, 202, 2211, 18, 2088, 4710, 273, 563, 4710, 31, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6031, 1649, 12, 467, 1253, 921, 8526, 563, 4710, 16, 467, 1253, 797, 3597, 2781, 16, 1082, 202, 5559, 8862, 262, 202, 95, 202, 202, 2211, 18, 2088, 4710, 273, 563, 4710, 31, 202, ...
Hashtable attrValues = fGeneralAttrCheck.checkAttributes(groupDecl, scope);
Hashtable attrValues = generalCheck(groupDecl, scope);
private GroupInfo traverseGroupDecl( Element groupDecl ) throws Exception { // General Attribute Checking int scope = isTopLevel(groupDecl)? GeneralAttrCheck.ELE_CONTEXT_GLOBAL: GeneralAttrCheck.ELE_CONTEXT_LOCAL; Hashtable attrValues = fGeneralAttrCheck.checkAttributes(groupDecl, scope); String groupName = groupDecl.getAttribute(SchemaSymbols.ATT_NAME); String ref = groupDecl.getAttribute(SchemaSymbols.ATT_REF); GroupInfo gInfo = null; Element child = checkContent( groupDecl, XUtil.getFirstChildElement(groupDecl), true ); if (ref.length() != 0) { if (isTopLevel(groupDecl)) // REVISIT: localize reportGenericSchemaError ( "A group with \"ref\" present must not have <schema> or <redefine> as its parent"); if (groupName.length() != 0) // REVISIT: localize reportGenericSchemaError ( "group " + groupName + " cannot refer to another group, but it refers to " + ref); // there should be no children for <group ref="..."> if (XUtil.getFirstChildElement(groupDecl)!=null) reportGenericSchemaError ( "A group with \"ref\" present must not have children"); String prefix = ""; String localpart = ref; int colonptr = ref.indexOf(":"); if ( colonptr > 0) { prefix = ref.substring(0,colonptr); localpart = ref.substring(colonptr+1); } int localpartIndex = fStringPool.addSymbol(localpart); String uriStr = resolvePrefixToURI(prefix); if (!uriStr.equals(fTargetNSURIString)) { gInfo = traverseGroupDeclFromAnotherSchema(localpart, uriStr); if (DEBUG_NEW_GROUP) findAndCreateElements(gInfo.contentSpecIndex,gInfo.scope); return gInfo; } try { gInfo = (GroupInfo) fGroupNameRegistry.get(uriStr + "," + localpart); if (gInfo != null) { // Ensure any LEAF elements are created at the // scope of the referencing type if (DEBUG_NEW_GROUP) findAndCreateElements(gInfo.contentSpecIndex,gInfo.scope); return gInfo; } } catch (ClassCastException c) { } // Check if we are in the middle of traversing this group (i.e. circular references) if (fCurrentGroupNameStack.search((Object)localpart) > - 1) { reportGenericSchemaError("mg-props-correct: Circular definition for group " + localpart); return null; } int contentSpecIndex = -1; Element referredGroup = getTopLevelComponentByName(SchemaSymbols.ELT_GROUP,localpart); if (referredGroup == null) { // REVISIT: Localize reportGenericSchemaError("Group " + localpart + " not found in the Schema"); //REVISIT, this should be some custom Exception //throw new RuntimeException("Group " + localpart + " not found in the Schema"); } else { gInfo = traverseGroupDecl(referredGroup); } // Now that we have a tree, ensure any LEAF elements are created at the // scope of the referencing type if (gInfo != null) { if (DEBUG_NEW_GROUP) findAndCreateElements(gInfo.contentSpecIndex,gInfo.scope); } return gInfo; } else if (groupName.length() == 0) // REVISIT: Localize reportGenericSchemaError("a <group> must have a name or a ref present"); String qualifiedGroupName = fTargetNSURIString + "," + groupName; try { gInfo = (GroupInfo) fGroupNameRegistry.get(qualifiedGroupName); if (gInfo != null) { // Ensure any LEAF elements are created at the // scope of the referencing type if (DEBUG_NEW_GROUP) findAndCreateElements(gInfo.contentSpecIndex,gInfo.scope); return gInfo; } } catch (ClassCastException c) { } // if we're here then we're traversing a top-level group that we've never seen before. // Push the group name onto a stack, so that we can check for circular groups fCurrentGroupNameStack.push(groupName); // Save the scope and set the current scope to -1 int savedScope = fCurrentScope; if (DEBUG_NEW_GROUP) fCurrentScope = fScopeCount++; else fCurrentScope = -1; int index = -2; boolean illegalChild = false; String childName = (child != null) ? child.getLocalName() : ""; if (childName.equals(SchemaSymbols.ELT_ALL)) { index = traverseAll(child); } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { index = traverseChoice(child); } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { index = traverseSequence(child); } else if (childName.length() != 0 || (child != null && XUtil.getNextSiblingElement(child) != null)) { illegalChild = true; reportSchemaError(SchemaMessageProvider.GroupContentRestricted, new Object [] { "group", childName }); } //Must have all or choice or sequence child. if (child == null) { reportGenericSchemaError("Named group must contain an 'all', 'choice' or 'sequence' child"); } else if (XUtil.getNextSiblingElement(child) != null) { illegalChild = true; reportSchemaError(SchemaMessageProvider.GroupContentRestricted, new Object [] { "group", childName }); } if ( ! illegalChild && child != null) { index = handleOccurrences(index, child, CHILD_OF_GROUP); } gInfo = new GroupInfo(); gInfo.contentSpecIndex = index; gInfo.scope = fCurrentScope; fCurrentScope = savedScope; fCurrentGroupNameStack.pop(); fGroupNameRegistry.put(qualifiedGroupName, gInfo); return gInfo; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/62d5766e63fa48f62e4ef5d6f05d8f2d363f7cd4/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3756, 966, 10080, 1114, 3456, 12, 3010, 1041, 3456, 262, 1216, 1185, 288, 3639, 368, 9544, 3601, 24471, 3639, 509, 2146, 273, 353, 27046, 12, 1655, 3456, 9945, 10792, 9544, 3843, 1564...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3756, 966, 10080, 1114, 3456, 12, 3010, 1041, 3456, 262, 1216, 1185, 288, 3639, 368, 9544, 3601, 24471, 3639, 509, 2146, 273, 353, 27046, 12, 1655, 3456, 9945, 10792, 9544, 3843, 1564...
interfaceBoundsList.add(interf);
interfaceBoundsList.add(interf);
final public TypeParameter TypeParameter() throws ParseException { List<IdentifierToken> name; Type bound = new ReferenceType("Object"); Token first = getToken(1); List<ReferenceType> interfaceBoundsList = new LinkedList<ReferenceType>(); ReferenceType interf; name = name(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case EXTENDS: jj_consume_token(EXTENDS); bound = type(); label_71: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BITWISE_AND: ; break; default: jj_la1[203] = jj_gen; break label_71; } jj_consume_token(BITWISE_AND); interf = ReferenceTypeName(); interfaceBoundsList.add(interf); } break; default: jj_la1[204] = jj_gen; ; } if(bound instanceof ReferenceType){ {if (true) return new TypeParameter(_loc(first), name, (ReferenceType)bound, interfaceBoundsList);} } else { {if (true) throw new ParseException("Primitives are not allowed as bound"+ "types, and array types are temporarily disabled due to a "+ "DynamicJava AST hierarchy bug!");} } throw new Error("Missing return statement in function"); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/b153c43e59717c98f32c67f14d61a00a81016991/Parser.java/buggy/dynamicjava/src/koala/dynamicjava/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 1412, 1662, 1412, 1662, 1435, 1216, 10616, 288, 565, 987, 32, 3004, 1345, 34, 508, 31, 565, 1412, 2489, 273, 394, 6268, 559, 2932, 921, 8863, 565, 3155, 1122, 273, 9162, 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, 282, 727, 1071, 1412, 1662, 1412, 1662, 1435, 1216, 10616, 288, 565, 987, 32, 3004, 1345, 34, 508, 31, 565, 1412, 2489, 273, 394, 6268, 559, 2932, 921, 8863, 565, 3155, 1122, 273, 9162, 12, ...
BeanInfo[] infos = info.getAdditionalBeanInfo(); if(infos != null) { for(int i = 0; i < infos.length; ++i) {
if (infos != null) { for (int i = 0; i < infos.length; ++i) {
public MethodDescriptor[] getMethodDescriptors() { MethodDescriptor[] result = null; MethodDescriptor[] infoResult = null; if(info != null) { infoResult = info.getMethodDescriptors(); BeanInfo[] infos = info.getAdditionalBeanInfo(); if(infos != null) { for(int i = 0; i < infos.length; ++i) { BeanInfo additionalInfo = infos[i]; if(infoResult == null) { infoResult = additionalInfo.getMethodDescriptors(); } else { infoResult = concatArraysToOneArray(infoResult, additionalInfo.getMethodDescriptors()); } } } } if(info == null || infoResult == null) { MethodDescriptor[] implResult = impl.getMethodDescriptors(); // merge with parent info if(parentBeanInfoWrapper != null) { MethodDescriptor[] parentResult = parentBeanInfoWrapper.getMethodDescriptors(); result = concatArraysToOneArray(implResult, parentResult); } else { result = implResult; } } else { result = infoResult; } if(result != null) { Arrays.sort(result, new Comparator<MethodDescriptor>() { public int compare(MethodDescriptor md1, MethodDescriptor md2) { return md1.getName().compareTo(md2.getName()); } public boolean equals(Object o) { return false; } }); } return result; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/40effaf129249b2248e897d030f9998321d4020f/BeanInfoWrapper.java/clean/modules/beans/src/main/java/java/beans/BeanInfoWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2985, 3187, 8526, 6272, 12705, 1435, 288, 3639, 2985, 3187, 8526, 563, 273, 446, 31, 3639, 2985, 3187, 8526, 1123, 1253, 273, 446, 31, 7734, 309, 12, 1376, 480, 446, 13, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2985, 3187, 8526, 6272, 12705, 1435, 288, 3639, 2985, 3187, 8526, 563, 273, 446, 31, 3639, 2985, 3187, 8526, 1123, 1253, 273, 446, 31, 7734, 309, 12, 1376, 480, 446, 13, 288, 5411, ...
public void expandToLevel(Object element, int level) { Widget w = internalExpand(element, true); if (w != null) internalExpandToLevel(w, level);
public void expandToLevel(int level) { expandToLevel(getRoot(), level);
public void expandToLevel(Object element, int level) { Widget w = internalExpand(element, true); if (w != null) internalExpandToLevel(w, level);}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2df9b0e8c5105515a29f9ba1471dd3ade9d1b4ee/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 4542, 774, 2355, 12, 921, 930, 16, 509, 1801, 13, 288, 202, 4609, 341, 273, 2713, 12271, 12, 2956, 16, 638, 1769, 202, 430, 261, 91, 480, 446, 13, 202, 202, 7236, 12271, 774, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 4542, 774, 2355, 12, 921, 930, 16, 509, 1801, 13, 288, 202, 4609, 341, 273, 2713, 12271, 12, 2956, 16, 638, 1769, 202, 430, 261, 91, 480, 446, 13, 202, 202, 7236, 12271, 774, 23...
public void mouseClicked(java.awt.event.MouseEvent e) { versionsContentJListMouseClicked(e);
public void mouseClicked(java.awt.event.MouseEvent evt) { versionsContentJListMouseClicked(evt);
private void initComponents() { javax.swing.JList versionsContentJList; javax.swing.JScrollPane versionsContentJScrollPane; javax.swing.JList versionsJList; javax.swing.JScrollPane versionsJScrollPane; versionsJScrollPane = new javax.swing.JScrollPane(); versionsJList = new javax.swing.JList(); versionsContentJScrollPane = new javax.swing.JScrollPane(); versionsContentJList = new javax.swing.JList(); setOpaque(false); addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { formMouseClicked(e); } public void mouseReleased(java.awt.event.MouseEvent e) { formMouseReleased(e); } }); versionsJScrollPane.setBorder(null); versionsJList.setModel(versionsModel); versionsJList.setCellRenderer(new VersionCellRenderer()); versionsJList.setVisibleRowCount(5); versionsJList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { versionsJListMouseClicked(e); } public void mouseReleased(java.awt.event.MouseEvent e) { versionsJListMouseReleased(e); } }); versionsJList.addMouseWheelListener(new java.awt.event.MouseWheelListener() { public void mouseWheelMoved(java.awt.event.MouseWheelEvent e) { versionsJListMouseWheelMoved(e); } }); versionsJScrollPane.setViewportView(versionsJList); versionsContentJScrollPane.setBorder(null); versionsContentJList.setModel(versionsContentModel); versionsContentJList.setCellRenderer(new VersionContentCellRenderer()); versionsContentJList.setVisibleRowCount(5); versionsContentJList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent e) { versionsContentJListMouseClicked(e); } public void mouseReleased(java.awt.event.MouseEvent e) { versionsContentJListMouseReleased(e); } }); versionsContentJList.addMouseWheelListener(new java.awt.event.MouseWheelListener() { public void mouseWheelMoved(java.awt.event.MouseWheelEvent e) { versionsContentJListMouseWheelMoved(e); } }); versionsContentJScrollPane.setViewportView(versionsContentJList); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(versionsJScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 326, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(versionsContentJScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 21, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(versionsContentJScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(versionsJScrollPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) ); }// </editor-fold>//GEN-END:initComponents
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/17ab82b200739feb3b03a39b4be20f360e8c2290/ContainerVersionsPanel.java/clean/client-ui/src/main/java/com/thinkparity/ophelia/browser/application/browser/display/renderer/tab/container/ContainerVersionsPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 6863, 18, 5328, 310, 18, 46, 682, 5244, 1350, 46, 682, 31, 3639, 6863, 18, 5328, 310, 18, 46, 26360, 5244, 1350, 46, 26360, 31, 3639, 6863, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 3639, 6863, 18, 5328, 310, 18, 46, 682, 5244, 1350, 46, 682, 31, 3639, 6863, 18, 5328, 310, 18, 46, 26360, 5244, 1350, 46, 26360, 31, 3639, 6863, 18, ...
out.print(status);
out.print(status);
protected void doEachMethod(String in) { String var = (String) attributes.get(ATTRIBUTE_VAR); String status = (String)attributes.get(ATTRIBUTES_STATUS); String methodName = StringUtils.isBlank(status) ? "each" : "eachWithIndex"; var = StringUtils.isBlank(var) ? "it" : var; if(var.startsWith("\"") && var.endsWith("\"") && var.length() > 1) { var = var.substring(1,var.length()-1); } if(var.equals(status)) throw new GrailsTagException("Attribute ["+ATTRIBUTE_VAR+"] cannot have the same value as attribute ["+ATTRIBUTES_STATUS+"]"); out.print(in); // object out.print('.'); // dot de-reference out.print(methodName); // method name out.print(" { "); // start closure out.print(var); // var name, normally it if(!StringUtils.isBlank(status)) { // if eachWithIndex add status out.print(","); out.print(status); } out.println(" ->"); // start closure body }
50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/ee3c3f64f1638ecc791cf2140382100edf8028cf/GroovySyntaxTag.java/clean/src/web/org/codehaus/groovy/grails/web/taglib/GroovySyntaxTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 3442, 1305, 12, 780, 316, 13, 288, 202, 202, 780, 569, 273, 261, 780, 13, 1677, 18, 588, 12, 11616, 67, 7716, 1769, 202, 565, 514, 1267, 273, 261, 780, 13, 4350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3442, 1305, 12, 780, 316, 13, 288, 202, 202, 780, 569, 273, 261, 780, 13, 1677, 18, 588, 12, 11616, 67, 7716, 1769, 202, 565, 514, 1267, 273, 261, 780, 13, 4350, ...
OPC_getstatic,
Opcodes.OPC_getstatic,
public void getTYPE(int baseTypeID) { countLabels = 0; switch (baseTypeID) { case T_byte : // getstatic: java.lang.Byte.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Byte.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangByteConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_short : // getstatic: java.lang.Short.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Short.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangShortConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_char : // getstatic: java.lang.Character.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Character.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangCharacterConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_int : // getstatic: java.lang.Integer.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Integer.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangIntegerConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_long : // getstatic: java.lang.Long.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Long.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangLongConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_float : // getstatic: java.lang.Float.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Float.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangFloatConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_double : // getstatic: java.lang.Double.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Double.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangDoubleConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_boolean : // getstatic: java.lang.Boolean.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Boolean.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangBooleanConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; case T_void : // getstatic: java.lang.Void.TYPE if (DEBUG) System.out.println(position + "\t\tgetstatic: java.lang.Void.TYPE"); //$NON-NLS-1$ generateFieldAccess( OPC_getstatic, 1, ConstantPool.JavaLangVoidConstantPoolName, ConstantPool.TYPE, ConstantPool.JavaLangClassSignature); break; }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/5a485cb39d1ee33622141cf426fac71c4bf93ded/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 336, 2399, 12, 474, 23937, 734, 13, 288, 202, 1883, 5888, 273, 374, 31, 202, 9610, 261, 1969, 559, 734, 13, 288, 202, 202, 3593, 399, 67, 7229, 294, 1082, 202, 759, 336, 3845, 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, 1071, 918, 336, 2399, 12, 474, 23937, 734, 13, 288, 202, 1883, 5888, 273, 374, 31, 202, 9610, 261, 1969, 559, 734, 13, 288, 202, 202, 3593, 399, 67, 7229, 294, 1082, 202, 759, 336, 3845, 3...
int MAX_LEN= 52;
public void TestDevanagariLatinRT(){ int MAX_LEN= 52; String[] source = { "bh\u0101rata", "kra", "k\u1E63a", "khra", "gra", "\u1E45ra", "cra", "chra", "j\u00F1a", "jhra", "\u00F1ra", "\u1E6Dya", "\u1E6Dhra", "\u1E0Dya", //"r\u0323ya", // \u095c is not valid in Devanagari "\u1E0Dhya", "\u1E5Bhra", "\u1E47ra", "tta", "thra", "dda", "dhra", "nna", "pra", "phra", "bra", "bhra", "mra", "\u1E49ra", //"l\u0331ra", "yra", "\u1E8Fra", //"l-", "vra", "\u015Bra", "\u1E63ra", "sra", "hma", "\u1E6D\u1E6Da", "\u1E6D\u1E6Dha", "\u1E6Dh\u1E6Dha", "\u1E0D\u1E0Da", "\u1E0D\u1E0Dha", "\u1E6Dya", "\u1E6Dhya", "\u1E0Dya", "\u1E0Dhya", // Not roundtrippable -- // \u0939\u094d\u094d\u092E - hma // \u0939\u094d\u092E - hma // CharsToUnicodeString("hma"), "hya", "\u015Br\u0325a", "\u015Bca", "\u0115", "san\u0304j\u012Bb s\u0113nagupta", "\u0101nand vaddir\u0101ju", "\u0101", "a" }; String[] expected = { "\u092D\u093E\u0930\u0924", /* bha\u0304rata */ "\u0915\u094D\u0930", /* kra */ "\u0915\u094D\u0937", /* ks\u0323a */ "\u0916\u094D\u0930", /* khra */ "\u0917\u094D\u0930", /* gra */ "\u0919\u094D\u0930", /* n\u0307ra */ "\u091A\u094D\u0930", /* cra */ "\u091B\u094D\u0930", /* chra */ "\u091C\u094D\u091E", /* jn\u0303a */ "\u091D\u094D\u0930", /* jhra */ "\u091E\u094D\u0930", /* n\u0303ra */ "\u091F\u094D\u092F", /* t\u0323ya */ "\u0920\u094D\u0930", /* t\u0323hra */ "\u0921\u094D\u092F", /* d\u0323ya */ //"\u095C\u094D\u092F", /* r\u0323ya */ // \u095c is not valid in Devanagari "\u0922\u094D\u092F", /* d\u0323hya */ "\u0922\u093C\u094D\u0930", /* r\u0323hra */ "\u0923\u094D\u0930", /* n\u0323ra */ "\u0924\u094D\u0924", /* tta */ "\u0925\u094D\u0930", /* thra */ "\u0926\u094D\u0926", /* dda */ "\u0927\u094D\u0930", /* dhra */ "\u0928\u094D\u0928", /* nna */ "\u092A\u094D\u0930", /* pra */ "\u092B\u094D\u0930", /* phra */ "\u092C\u094D\u0930", /* bra */ "\u092D\u094D\u0930", /* bhra */ "\u092E\u094D\u0930", /* mra */ "\u0929\u094D\u0930", /* n\u0331ra */ //"\u0934\u094D\u0930", /* l\u0331ra */ "\u092F\u094D\u0930", /* yra */ "\u092F\u093C\u094D\u0930", /* y\u0307ra */ //"l-", "\u0935\u094D\u0930", /* vra */ "\u0936\u094D\u0930", /* s\u0301ra */ "\u0937\u094D\u0930", /* s\u0323ra */ "\u0938\u094D\u0930", /* sra */ "\u0939\u094d\u092E", /* hma */ "\u091F\u094D\u091F", /* t\u0323t\u0323a */ "\u091F\u094D\u0920", /* t\u0323t\u0323ha */ "\u0920\u094D\u0920", /* t\u0323ht\u0323ha*/ "\u0921\u094D\u0921", /* d\u0323d\u0323a */ "\u0921\u094D\u0922", /* d\u0323d\u0323ha */ "\u091F\u094D\u092F", /* t\u0323ya */ "\u0920\u094D\u092F", /* t\u0323hya */ "\u0921\u094D\u092F", /* d\u0323ya */ "\u0922\u094D\u092F", /* d\u0323hya */ // "hma", /* hma */ "\u0939\u094D\u092F", /* hya */ "\u0936\u0943", /* s\u0301r\u0325a */ "\u0936\u094D\u091A", /* s\u0301ca */ "\u090d", /* e\u0306 */ "\u0938\u0902\u091C\u0940\u092C\u094D \u0938\u0947\u0928\u0917\u0941\u092A\u094D\u0924", "\u0906\u0928\u0902\u0926\u094D \u0935\u0926\u094D\u0926\u093F\u0930\u093E\u091C\u0941", "\u0906", "\u0905", }; Transliterator latinToDev=Transliterator.getInstance("Latin-Devanagari", Transliterator.FORWARD ); Transliterator devToLatin=Transliterator.getInstance("Devanagari-Latin", Transliterator.FORWARD); String gotResult; for(int i= 0; i<MAX_LEN; i++){ gotResult = source[i]; expect(latinToDev,(source[i]),(expected[i])); expect(devToLatin,(expected[i]),(source[i])); } }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/405c5e9c91a6e62deeb0498997f8c5669efe5f0a/TransliteratorTest.java/buggy/icu4j/src/com/ibm/test/translit/TransliteratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 225, 7766, 8870, 940, 12954, 6607, 267, 12185, 1435, 95, 9079, 514, 8526, 225, 1084, 273, 288, 5411, 315, 70, 76, 64, 89, 1611, 1611, 86, 396, 3113, 5411, 315, 79, 354, 3113,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 7766, 8870, 940, 12954, 6607, 267, 12185, 1435, 95, 9079, 514, 8526, 225, 1084, 273, 288, 5411, 315, 70, 76, 64, 89, 1611, 1611, 86, 396, 3113, 5411, 315, 79, 354, 3113,...
FileSystem localFS = FileSystem.getNamed("local", fsConfig);
FileSystem localFS = FileSystem.getLocal(fsConfig);
public Object doIO( Reporter reporter, String name, long totalSize ) throws IOException { totalSize *= MEGA; // create instance of local filesystem FileSystem localFS = FileSystem.getNamed("local", fsConfig); try { // native runtime Runtime runTime = Runtime.getRuntime(); // copy the dso and executable from dfs synchronized (this) { localFS.delete(HDFS_TEST_DIR); if (!(localFS.mkdirs(HDFS_TEST_DIR))) { throw new IOException("Failed to create " + HDFS_TEST_DIR + " on local filesystem"); } } synchronized (this) { if (!localFS.exists(HDFS_SHLIB)) { if (!FileUtil.copy(fs, HDFS_SHLIB, localFS, HDFS_SHLIB, false, fsConfig)) { throw new IOException("Failed to copy " + HDFS_SHLIB + " to local filesystem"); } String chmodCmd = new String(CHMOD + " a+x " + HDFS_SHLIB); Process process = runTime.exec(chmodCmd); int exitStatus = process.waitFor(); if (exitStatus != 0) { throw new IOException( chmodCmd + ": Failed with exitStatus: " + exitStatus ); } } } synchronized (this) { if (!localFS.exists(HDFS_READ)) { if (!FileUtil.copy(fs, HDFS_READ, localFS, HDFS_READ, false, fsConfig)) { throw new IOException("Failed to copy " + HDFS_READ + " to local filesystem"); } String chmodCmd = new String(CHMOD + " a+x " + HDFS_READ); Process process = runTime.exec(chmodCmd); int exitStatus = process.waitFor(); if (exitStatus != 0) { throw new IOException(chmodCmd + ": Failed with exitStatus: " + exitStatus); } } } // exec the C program Path inFile = new Path(DATA_DIR, name); String readCmd = new String(HDFS_READ + " " + inFile + " " + totalSize + " " + bufferSize); Process process = runTime.exec(readCmd, null, new File(HDFS_TEST_DIR.toString())); int exitStatus = process.waitFor(); if (exitStatus != 0) { throw new IOException(HDFS_READ + ": Failed with exitStatus: " + exitStatus); } } catch (InterruptedException interruptedException) { reporter.setStatus(interruptedException.toString()); } finally { localFS.close(); } return new Long(totalSize); }
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/ed2da6b550c672b8d6867b05791a98214d3f9c30/DFSCIOTest.java/clean/src/test/org/apache/hadoop/fs/DFSCIOTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 741, 4294, 12, 25585, 11528, 16, 7682, 514, 508, 16, 7682, 1525, 24611, 7682, 262, 1216, 1860, 288, 377, 202, 225, 24611, 6413, 7733, 25043, 31, 5411, 368, 752, 791, 434, 1191...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 741, 4294, 12, 25585, 11528, 16, 7682, 514, 508, 16, 7682, 1525, 24611, 7682, 262, 1216, 1860, 288, 377, 202, 225, 24611, 6413, 7733, 25043, 31, 5411, 368, 752, 791, 434, 1191...
this.fPluginBase = model; this.wizardCollection = element; this.templateCollection = templates; this.wizard= wizard; this.project=project; fAvailableImports = PluginSelectionDialog.getExistingImports(model);
this.fModel = model; this.fWizardCollection = element; this.fTemplateCollection = templates; this.fWizard= wizard; this.fProject=project; fAvailableImports = PluginSelectionDialog.getExistingImports(model.getPluginBase());
public PointSelectionPage(IProject project, IPluginBase model, WizardCollectionElement element, WizardCollectionElement templates, NewExtensionWizard wizard) { super("pointSelectionPage", PDEUIMessages.NewExtensionWizard_PointSelectionPage_title); //$NON-NLS-1$ //$NON-NLS-2$ this.fPluginBase = model; this.wizardCollection = element; this.templateCollection = templates; this.wizard= wizard; this.project=project; fAvailableImports = PluginSelectionDialog.getExistingImports(model); setTitle(PDEUIMessages.NewExtensionWizard_PointSelectionPage_title); //$NON-NLS-1$ setDescription(PDEUIMessages.NewExtensionWizard_PointSelectionPage_desc); //$NON-NLS-1$ PDEPlugin.getDefault().getLabelProvider().connect(this); makeActions(); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/b0a48946ca8b1d86007cf735bf96689a689a2dea/PointSelectionPage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/extension/PointSelectionPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4686, 6233, 1964, 12, 45, 4109, 1984, 16, 467, 3773, 2171, 938, 16, 678, 13412, 2532, 1046, 930, 16, 678, 13412, 2532, 1046, 5539, 16, 1166, 3625, 27130, 24204, 13, 288, 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, 4686, 6233, 1964, 12, 45, 4109, 1984, 16, 467, 3773, 2171, 938, 16, 678, 13412, 2532, 1046, 930, 16, 678, 13412, 2532, 1046, 5539, 16, 1166, 3625, 27130, 24204, 13, 288, 202, ...
" select rdef from RenderingDef rdef where " + " rdef.pixels.id = :pixid and rdef.details.owner.id = :ownerid",
"select rdef from RenderingDef as rdef " + "left outer join fetch rdef.quantization " + "left outer join fetch rdef.model " + "left outer join fetch rdef.waveRendering as cb " + "left outer join fetch cb.color " + "left outer join fetch cb.family " + "left outer join fetch rdef.spatialDomainEnhancement where " + "rdef.pixels.id = :pixid and rdef.details.owner.id = :ownerid",
public RenderingDef retrieveRndSettings(final long pixId) { final Long userId = getSecuritySystem() .getEventContext() .getCurrentUserId(); return (RenderingDef) iQuery.findByQuery( " select rdef from RenderingDef rdef where " + " rdef.pixels.id = :pixid and rdef.details.owner.id = :ownerid", new Parameters().addLong("pixid",pixId).addLong("ownerid",userId)); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/64e6d912272b039f986c1a36d1ca930cc5578578/PixelsImpl.java/clean/components/server/src/ome/logic/PixelsImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18018, 3262, 4614, 54, 4880, 2628, 12, 6385, 1525, 11871, 548, 13, 288, 7734, 727, 3407, 6249, 273, 19288, 3163, 1435, 540, 202, 18, 588, 1133, 1042, 1435, 540, 202, 18, 588, 3935, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18018, 3262, 4614, 54, 4880, 2628, 12, 6385, 1525, 11871, 548, 13, 288, 7734, 727, 3407, 6249, 273, 19288, 3163, 1435, 540, 202, 18, 588, 1133, 1042, 1435, 540, 202, 18, 588, 3935, ...
public Object execMethod (int methodId, IdFunction function, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_abs: return wrap_double (js_abs(ScriptRuntime.toNumber(args, 0))); case Id_acos: return wrap_double (js_acos(ScriptRuntime.toNumber(args, 0))); case Id_asin: return wrap_double (js_asin(ScriptRuntime.toNumber(args, 0))); case Id_atan: return wrap_double (js_atan(ScriptRuntime.toNumber(args, 0))); case Id_atan2: return wrap_double (js_atan2(ScriptRuntime.toNumber(args, 0), ScriptRuntime.toNumber(args, 1))); case Id_ceil: return wrap_double (js_ceil(ScriptRuntime.toNumber(args, 0))); case Id_cos: return wrap_double (js_cos(ScriptRuntime.toNumber(args, 0))); case Id_exp: return wrap_double (js_exp(ScriptRuntime.toNumber(args, 0))); case Id_floor: return wrap_double (js_floor(ScriptRuntime.toNumber(args, 0))); case Id_log: return wrap_double (js_log(ScriptRuntime.toNumber(args, 0))); case Id_max: return wrap_double (js_max(args)); case Id_min: return wrap_double (js_min(args)); case Id_pow: return wrap_double (js_pow(ScriptRuntime.toNumber(args, 0), ScriptRuntime.toNumber(args, 1))); case Id_random: return wrap_double (js_random()); case Id_round: return wrap_double (js_round(ScriptRuntime.toNumber(args, 0))); case Id_sin: return wrap_double (js_sin(ScriptRuntime.toNumber(args, 0))); case Id_sqrt: return wrap_double (js_sqrt(ScriptRuntime.toNumber(args, 0))); case Id_tan: return wrap_double (js_tan(ScriptRuntime.toNumber(args, 0))); } return null; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeMath.java/clean/js/rhino/org/mozilla/javascript/NativeMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 445, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 445, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
m_manager.terminate( this );
m_componentController.terminate( this );
public void terminate() { getLogger().debug( "terminating" ); m_manager.terminate( this ); }
10984 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10984/206d625e9a3f91a8ae3e2355295846f7f0bd52a1/ComponentHandler.java/buggy/trunk/main/metro/composition/control/src/main/net/dpml/composition/runtime/ComponentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10850, 1435, 565, 288, 3639, 7156, 7675, 4148, 12, 315, 9505, 1776, 6, 11272, 3639, 312, 67, 4652, 2933, 18, 30017, 12, 333, 11272, 565, 289, 2, 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, 918, 10850, 1435, 565, 288, 3639, 7156, 7675, 4148, 12, 315, 9505, 1776, 6, 11272, 3639, 312, 67, 4652, 2933, 18, 30017, 12, 333, 11272, 565, 289, 2, -100, -100, -100, -100, -100, ...
static private final int jjStartNfaWithStates_0(int pos, int kind, int state) { jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return pos + 1; } return jjMoveNfa_0(state, pos + 1); }
static private final int jjStartNfaWithStates_0(int pos, int kind, int state) { jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch (java.io.IOException e) { return pos + 1; } return jjMoveNfa_0(state, pos + 1); }
static private final int jjStartNfaWithStates_0(int pos, int kind, int state){ jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return pos + 1; } return jjMoveNfa_0(state, pos + 1);}
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/4d419924ba8165f1116f4a5eb47273815aff44c0/AnnotationParserTokenManager.java/clean/backport175/src/main/org/codehaus/backport175/compiler/parser/ast/AnnotationParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3238, 727, 509, 10684, 1685, 50, 507, 1190, 7629, 67, 20, 12, 474, 949, 16, 509, 3846, 16, 509, 919, 15329, 282, 10684, 11073, 5677, 273, 3846, 31, 282, 10684, 11073, 1616, 273, 949, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 3238, 727, 509, 10684, 1685, 50, 507, 1190, 7629, 67, 20, 12, 474, 949, 16, 509, 3846, 16, 509, 919, 15329, 282, 10684, 11073, 5677, 273, 3846, 31, 282, 10684, 11073, 1616, 273, 949, 31...
m_securityManager.writeTaskLog(m_context, taskId, comment, taskType);
m_securityManager.writeTaskLog(m_context, taskid, comment);
public void writeTaskLog(int taskId, String comment, int taskType) throws CmsException { m_securityManager.writeTaskLog(m_context, taskId, comment, taskType); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0abaf9e2cd7b40be6257fbe506683783295516ca/CmsTaskService.java/clean/src/org/opencms/workflow/CmsTaskService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 2174, 1343, 12, 474, 15321, 16, 514, 2879, 16, 509, 1562, 559, 13, 1216, 11228, 288, 3639, 312, 67, 7462, 1318, 18, 2626, 2174, 1343, 12, 81, 67, 2472, 16, 29035, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 2174, 1343, 12, 474, 15321, 16, 514, 2879, 16, 509, 1562, 559, 13, 1216, 11228, 288, 3639, 312, 67, 7462, 1318, 18, 2626, 2174, 1343, 12, 81, 67, 2472, 16, 29035, 16, ...
job.schedule(); do { Thread.sleep(100); } while (!job.isTitleRetrieved());
job.run(new NullProgressMonitor());
public void testRetrieve() throws InterruptedException, InvocationTargetException { // XXX broken due to hang that causes the scheduled job to never complete final String url = "http://eclipse.org/mylar/index.php"; final String knownTitle = "Mylar Technology Project"; RetrieveTitleFromUrlJob job = new RetrieveTitleFromUrlJob(url) { public void setTitle(String title) { assertEquals(knownTitle, title); } }; job.schedule(); do { Thread.sleep(100); } while (!job.isTitleRetrieved()); assertTrue(job.isTitleRetrieved()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e7670b6aef1aa0c8a24be5b277f41db77524bd2e/RetrieveTitleFromUrlTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/RetrieveTitleFromUrlTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5767, 1435, 1216, 7558, 16, 15342, 288, 202, 202, 759, 11329, 12933, 6541, 358, 25733, 716, 14119, 326, 9755, 1719, 358, 5903, 3912, 9506, 202, 6385, 514, 880, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5767, 1435, 1216, 7558, 16, 15342, 288, 202, 202, 759, 11329, 12933, 6541, 358, 25733, 716, 14119, 326, 9755, 1719, 358, 5903, 3912, 9506, 202, 6385, 514, 880, 273, 3...
public void visitCALOAD(CALOAD obj);
void visitCALOAD(CALOAD obj);
public void visitCALOAD(CALOAD 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, 7913, 51, 1880, 12, 7913, 51, 1880, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7913, 51, 1880, 12, 7913, 51, 1880, 1081, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private static int do_sheq(Object[] stack, double[] sDbl, int stackTop, int op)
private static void do_sheq(State state, int i, int op)
private static int do_sheq(Object[] stack, double[] sDbl, int stackTop, int op) { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean result; double_compare: { double rdbl, ldbl; if (rhs == DBL_MRK) { rdbl = sDbl[stackTop + 1]; if (lhs == DBL_MRK) { ldbl = sDbl[stackTop]; } else if (lhs instanceof Number) { ldbl = ((Number)lhs).doubleValue(); } else { result = false; break double_compare; } } else if (lhs == DBL_MRK) { ldbl = sDbl[stackTop]; if (rhs == DBL_MRK) { rdbl = sDbl[stackTop + 1]; } else if (rhs instanceof Number) { rdbl = ((Number)rhs).doubleValue(); } else { result = false; break double_compare; } } else { result = ScriptRuntime.shallowEq(lhs, rhs); break double_compare; } result = ldbl == rdbl; } result ^= (op == Token.SHNE); stack[stackTop] = (result) ? Boolean.TRUE : Boolean.FALSE; return stackTop; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 741, 67, 87, 580, 85, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 1171, 9079, 509, 1061, 13, 565, 288, 3639, 1493, 3772, 3401, 31, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 741, 67, 87, 580, 85, 12, 921, 8526, 2110, 16, 1645, 8526, 272, 40, 3083, 16, 509, 2110, 3401, 16, 1171, 9079, 509, 1061, 13, 565, 288, 3639, 1493, 3772, 3401, 31, 363...
if (currentSourceUnit == null)
if (fCurrentSourceUnit == null)
public ICCompletionProposal[] evalProposals(IDocument document, int documentOffset, IWorkingCopy unit, ITextViewer viewer) { currentOffset = documentOffset; currentSourceUnit = unit; ArrayList completions = new ArrayList(); if (currentSourceUnit == null) return null; // clear the completion list at the result collector resultCollector.reset(); IASTCompletionNode completionNode = addProposalsFromModel(completions); addProposalsFromSearch(completionNode, completions); addProposalsFromCompletionContributors(completionNode, completions); addProposalsFromTemplates(viewer, completionNode, completions); return order ( (ICCompletionProposal[]) completions.toArray(new ICCompletionProposal[0]) ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4ae8242ff673e5e222aea96ddc39c8a8d141254e/CCompletionProcessor.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 26899, 11238, 14592, 8526, 5302, 626, 22536, 12, 734, 504, 650, 1668, 16, 509, 1668, 2335, 16, 467, 14836, 2951, 2836, 16, 467, 1528, 18415, 14157, 13, 288, 9506, 202, 2972, 233...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26899, 11238, 14592, 8526, 5302, 626, 22536, 12, 734, 504, 650, 1668, 16, 509, 1668, 2335, 16, 467, 14836, 2951, 2836, 16, 467, 1528, 18415, 14157, 13, 288, 9506, 202, 2972, 233...
hash = ParametredHttpServlet.computeHash(buffer); etag = ParametredHttpServlet.computeETag(buffer);
hash = ConfiguredHttpServlet.computeHash(buffer); etag = ConfiguredHttpServlet.computeETag(buffer);
public void initialize(IImageLoader imageDownloader, String externalContentType, RenderedImage renderedImage, ImageWriter imageWriter, int destImageType) throws IOException { if (LOG.isTraceEnabled()) { LOG.trace("Initialize fileRenderedImage '" + imageName + "' imageType=" + ((BufferedImage) renderedImage).getType() + "."); } this.contentType = externalContentType; try { file = File.createTempFile(TEMP_FILE_PREFIX, TEMP_FILE_SUFFIX); } catch (IOException ex) { LOG.error( "Can not create temp file for filtered image ! (imageName=" + imageName + ")", ex); throw ex; } if (LOG.isTraceEnabled()) { LOG.trace("Temp file associated to url '" + imageName + "' is " + file.getAbsolutePath()); } try { file.deleteOnExit(); } catch (SecurityException ex) { if (securityError == false) { securityError = true; LOG.error(ex); } } int size = 8000; long originalSize = imageDownloader.getContentLength(); if (originalSize > 0 && originalSize < 8000) { size = (int) originalSize + 256; } ByteArrayOutputStream bous = new ByteArrayOutputStream(size); ImageOutputStream out = ImageIO.createImageOutputStream(bous); imageWriter.setOutput(out); RenderedImage image = renderedImage; if (destImageType == BufferedImage.TYPE_BYTE_INDEXED) { if ((renderedImage.getColorModel() instanceof IndexColorModel) == false) { if (LOG.isTraceEnabled()) { LOG.trace("Dither imageName '" + imageName + "' ..."); } image = ditherImage(image); } } else if (destImageType != ((BufferedImage) renderedImage).getType()) { if (LOG.isTraceEnabled()) { LOG.trace("Convert imageName '" + imageName + "' from type " + ((BufferedImage) renderedImage).getType() + " to type " + destImageType); } BufferedImage bimage = new BufferedImage(image.getWidth(), image .getHeight(), destImageType); Graphics2D g = bimage.createGraphics(); try { g.drawImage((Image) image, 0, 0, null); } finally { g.dispose(); } image = bimage; } try { imageWriter.write(image); } catch (IOException ex) { LOG.error("Can not encode image into temp file ! (imageName=" + imageName + ")", ex); throw ex; } imageWriter.dispose(); out.close(); byte buffer[] = bous.toByteArray(); hash = ParametredHttpServlet.computeHash(buffer); etag = ParametredHttpServlet.computeETag(buffer); this.size = buffer.length; FileOutputStream fileOutputStream = new FileOutputStream(file); try { fileOutputStream.write(buffer); } catch (IOException ex) { LOG.error( "Can not write temp file for filtered image ! (imageName=" + imageName + ")", ex); throw ex; } finally { fileOutputStream.close(); } lastModified = imageDownloader.getLastModified(); LOG.debug("Store filtered image '" + imageName + "' into " + size + " bytes. (disk location='" + file.getAbsolutePath() + "')"); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/FileRenderedImage.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/images/FileRenderedImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 12, 45, 2040, 2886, 1316, 4164, 6714, 16, 5411, 514, 3903, 8046, 16, 6987, 329, 2040, 7935, 2040, 16, 5411, 3421, 2289, 1316, 2289, 16, 509, 1570, 2040, 559, 13, 1216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 12, 45, 2040, 2886, 1316, 4164, 6714, 16, 5411, 514, 3903, 8046, 16, 6987, 329, 2040, 7935, 2040, 16, 5411, 3421, 2289, 1316, 2289, 16, 509, 1570, 2040, 559, 13, 1216, ...
JavaGenerationParameters params = getJavaGenerationParameters(); println(" public " + className + "(" + FactoryGenerator.qualifiedClassName(params) + " factory) {"); println(" super(factory);"); println(" }"); println(); }
JavaGenerationParameters params = getJavaGenerationParameters(); println( " public " + className + "(" + FactoryGenerator.qualifiedClassName(params) + " factory) {"); println(" super(factory);"); println(" }"); println(); }
private void genAltConstructor() { JavaGenerationParameters params = getJavaGenerationParameters(); println(" public " + className + "(" + FactoryGenerator.qualifiedClassName(params) + " factory) {"); println(" super(factory);"); println(" }"); println(); }
3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/76875cdfe2af0d6de4ab58a245cce8bd703a86ab/AlternativeGenerator.java/clean/apigen/src/apigen/gen/java/AlternativeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3157, 10655, 6293, 1435, 288, 202, 202, 5852, 13842, 2402, 859, 273, 18911, 13842, 2402, 5621, 202, 202, 8222, 2932, 225, 1071, 315, 397, 2658, 397, 12452, 397, 7822, 3908, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3157, 10655, 6293, 1435, 288, 202, 202, 5852, 13842, 2402, 859, 273, 18911, 13842, 2402, 5621, 202, 202, 8222, 2932, 225, 1071, 315, 397, 2658, 397, 12452, 397, 7822, 3908, ...
private void markNotPlaced(RingSet rs) { for (int f = 0; f < rs.size(); f++) {
private void markNotPlaced(RingSet rs) { for (int f = 0; f < rs.size(); f++) {
private void markNotPlaced(RingSet rs) { for (int f = 0; f < rs.size(); f++) { ((Ring)rs.elementAt(f)).flags[CDKConstants.ISPLACED] = false; } }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/0207507cbcff0172e0dc48407a71dcf4d56c8695/StructureDiagramGenerator.java/buggy/src/org/openscience/cdk/layout/StructureDiagramGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2267, 1248, 6029, 72, 12, 10369, 694, 3597, 13, 202, 95, 202, 202, 1884, 261, 474, 284, 273, 374, 31, 284, 411, 3597, 18, 1467, 5621, 284, 27245, 202, 202, 95, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2267, 1248, 6029, 72, 12, 10369, 694, 3597, 13, 202, 95, 202, 202, 1884, 261, 474, 284, 273, 374, 31, 284, 411, 3597, 18, 1467, 5621, 284, 27245, 202, 202, 95, 1082, 2...
if (type.equals("LargeBagConstraintUsingTable")) {
if (type.matches("LargeBag.*UsingTable")) {
public void executeTest(String type) throws Exception { Query q = (Query) queries.get(type); Object expected = results.get(type); if (expected instanceof Failure) { try { SqlGenerator.generate(q, 0, Integer.MAX_VALUE, getSchema(), db, new HashMap()); fail(type + " was expected to fail"); } catch (Exception e) { assertEquals(type + " was expected to produce a particular exception", expected, new Failure(e)); } } else { Map bagTableNames = new HashMap(); if (type.equals("LargeBagConstraintUsingTable")) { // special case - the Map will tell generate() what table to use to find the values // of large bags Query largeBagQuery = (Query) queries.get("LargeBagConstraintUsingTable"); BagConstraint largeBagConstraint = (BagConstraint) largeBagQuery.getConstraint(); bagTableNames.put(largeBagConstraint, "large_string_bag_table"); } String generated = SqlGenerator.generate(q, 0, Integer.MAX_VALUE, getSchema(), db, bagTableNames); if (expected instanceof String) { assertEquals("", results.get(type), generated); } else if (expected instanceof Collection) { boolean hasEqual = false; Iterator expectedIter = ((Collection) expected).iterator(); while ((!hasEqual) && expectedIter.hasNext()) { String expectedString = (String) expectedIter.next(); hasEqual = expectedString.equals(generated); } assertTrue(generated, hasEqual); } else { assertTrue("No result found for " + type, false); } assertEquals(results2.get(type), SqlGenerator.findTableNames(q, getSchema())); // TODO: extend sql so that it can represent these if (!("TypeCast".equals(type) || "IndexOf".equals(type) || "Substring".equals(type) || "Substring2".equals(type) || type.startsWith("Empty") || type.startsWith("BagConstraint") || "LargeBagConstraint".equals(type))) { // And check that the SQL generated is high enough quality to be parsed by the optimiser. org.intermine.sql.query.Query sql = new org.intermine.sql.query.Query(generated); } } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/99e47abc97af33936f43fd0178ca5ce56b19bd6d/SqlGeneratorTest.java/buggy/intermine/src/test/org/intermine/objectstore/intermine/SqlGeneratorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 4709, 12, 780, 618, 13, 1216, 1185, 288, 3639, 2770, 1043, 273, 261, 1138, 13, 6218, 18, 588, 12, 723, 1769, 3639, 1033, 2665, 273, 1686, 18, 588, 12, 723, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 4709, 12, 780, 618, 13, 1216, 1185, 288, 3639, 2770, 1043, 273, 261, 1138, 13, 6218, 18, 588, 12, 723, 1769, 3639, 1033, 2665, 273, 1686, 18, 588, 12, 723, 1769, 3639, ...
return internalFile.getId() ;
return dataSource.getFile().getId();
public String getId() { return internalFile.getId() ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/dd74ae8b971ca95e5d45d6aadbd7c17595ab3828/FileDocument.java/buggy/server/src/com/imcode/imcms/api/FileDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 2634, 1435, 288, 5411, 327, 10233, 18, 29925, 7675, 26321, 5621, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 2634, 1435, 288, 5411, 327, 10233, 18, 29925, 7675, 26321, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
constraints.gridy = 4;
constraints.gridy = 5;
private void buildUI(File groups)//, boolean currentUserList) { itsProgramFolder = groups; //listLabel.setFont( listLabel.getFont().getSize() ); constraints.gridx = 0; constraints.gridy = 0; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.weighty = 1.0; /*constraints.insets = new Insets(5, 5, 5, 5);*/ constraints.fill = GridBagConstraints.NONE; constraints.anchor = GridBagConstraints.WEST; /*layout.addLayoutComponent(listLabel, constraints); add(listLabel);*/ // Add a CheckBox which enables the user to entirely supress shortcut creation. String menuKind = parent.langpack.getString("ShortcutPanel.regular.StartMenu:Start-Menu"); if( OsVersion.IS_UNIX && UnixHelper.kdeIsInstalled() ) menuKind = parent.langpack.getString("ShortcutPanel.regular.StartMenu:K-Menu"); createShortcuts = new JCheckBox( StringTool.replace( parent.langpack.getString("ShortcutPanel.regular.create"), "StartMenu", menuKind ), true); createShortcuts.addActionListener(this); constraints.gridx = 0; constraints.gridy = 1; constraints.gridwidth = 2; constraints.gridheight = 1; constraints.weighty = 0.2; layout.addLayoutComponent(createShortcuts, constraints); add(createShortcuts); // ---------------------------------------------------- // check box to allow the user to decide if a desktop // shortcut should be created. // this should only be created if needed and requested // in the definition file. // ---------------------------------------------------- String initialAllowedValue = idata.getVariable( "DesktopShortcutCheckboxEnabled" ); boolean initialAllowedFlag = false; if( initialAllowedValue==null) initialAllowedFlag= false; else if( Boolean.TRUE.toString().equals(initialAllowedValue) ) initialAllowedFlag=true; allowDesktopShortcut = new JCheckBox(parent.langpack .getString("ShortcutPanel.regular.desktop"), initialAllowedFlag); constraints.gridx = 0; constraints.gridy = 2; constraints.gridwidth = 3; constraints.gridheight = 1; constraints.weighty = 0.2; if (hasDesktopShortcuts) { layout.addLayoutComponent(allowDesktopShortcut, constraints); add(allowDesktopShortcut); } // ---------------------------------------------------- // list box to list all of already existing folders as program groups // at the intended destination // ---------------------------------------------------- addSelectionList( groups, 0, 3, 2, 1, GridBagConstraints.BOTH ); // ---------------------------------------------------- // radio buttons to select current user or all users. // ---------------------------------------------------- if (shortcut.multipleUsers()) { JPanel usersPanel = new JPanel(new GridLayout(2, 1)); ButtonGroup usersGroup = new ButtonGroup(); currentUser = new JRadioButton(parent.langpack .getString("ShortcutPanel.regular.currentUser"), !isRootUser); currentUser.addActionListener(this); usersGroup.add(currentUser); usersPanel.add(currentUser); allUsers = new JRadioButton( parent.langpack.getString("ShortcutPanel.regular.allUsers"), isRootUser); if (!isRootUser) allUsers.setEnabled(false); allUsers.addActionListener(this); usersGroup.add(allUsers); usersPanel.add(allUsers); TitledBorder border = new TitledBorder(new EmptyBorder(2, 2, 2, 2), parent.langpack .getString("ShortcutPanel.regular.userIntro")); usersPanel.setBorder(border); constraints.gridx = 2; constraints.gridy = 3; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.weighty = 1.0; constraints.weightx = 1.0; constraints.fill = GridBagConstraints.NONE; layout.addLayoutComponent(usersPanel, constraints); add(usersPanel); } // ---------------------------------------------------- // edit box that contains the suggested program group // name, which can be modfied or substituted from the // list by the user // ---------------------------------------------------- programGroup = new JTextField(suggestedProgramGroup, 40); // 40? constraints.gridx = 0; constraints.gridy = 4; constraints.gridwidth = 2; constraints.gridheight = 1; constraints.weighty = 1.0; constraints.weightx = 10.0; constraints.fill = GridBagConstraints.HORIZONTAL; layout.addLayoutComponent(programGroup, constraints); add(programGroup); // ---------------------------------------------------- // reset button that allows the user to revert to the // original suggestion for the program group // ---------------------------------------------------- defaultButton = ButtonFactory.createButton(parent.langpack .getString("ShortcutPanel.regular.default"), idata.buttonsHColor); defaultButton.addActionListener(this); constraints.gridx = 2; constraints.gridy = 4; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.fill = GridBagConstraints.NONE; layout.addLayoutComponent(defaultButton, constraints); add(defaultButton); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/0037f02b9e191b9fd43fd4ecd516cc9745b3307d/ShortcutPanel.java/buggy/src/lib/com/izforge/izpack/panels/ShortcutPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1361, 5370, 12, 812, 3252, 13, 759, 16, 1250, 13970, 682, 13, 565, 288, 3639, 2097, 9459, 3899, 273, 3252, 31, 7734, 368, 1098, 2224, 18, 542, 5711, 12, 666, 2224, 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, 3238, 918, 1361, 5370, 12, 812, 3252, 13, 759, 16, 1250, 13970, 682, 13, 565, 288, 3639, 2097, 9459, 3899, 273, 3252, 31, 7734, 368, 1098, 2224, 18, 542, 5711, 12, 666, 2224, 18, 588, ...
public char readChar() throws IOException { Object obj = vec.elementAt(ptr++); return (((Character)obj).charValue()); }
public char readChar() throws IOException { Object obj = vec.elementAt(ptr++); return ((Character) obj).charValue(); }
public char readChar() throws IOException { Object obj = vec.elementAt(ptr++); return (((Character)obj).charValue());}
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/84d120cc49d42a79bfbc68fe36429395bdef90fd/UnicastRemoteCall.java/clean/libjava/gnu/java/rmi/server/UnicastRemoteCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1149, 855, 2156, 1435, 1216, 1860, 288, 202, 921, 1081, 273, 7062, 18, 2956, 861, 12, 6723, 9904, 1769, 202, 2463, 261, 12443, 7069, 13, 2603, 2934, 3001, 620, 10663, 97, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1149, 855, 2156, 1435, 1216, 1860, 288, 202, 921, 1081, 273, 7062, 18, 2956, 861, 12, 6723, 9904, 1769, 202, 2463, 261, 12443, 7069, 13, 2603, 2934, 3001, 620, 10663, 97, 2, -100, -100, ...
} else if (swapRoles && ModelFacade.getMessages4(mes).size() > 0 && ModelFacade.getSender(mes) != ModelFacade.getReceiver(mes) ) {
} else if (swapRoles && ModelFacade.getMessages4(mes).size() > 0 && (ModelFacade.getSender(mes) != ModelFacade.getReceiver(mes))) {
public void parseMessage(Object mes, String s) throws ParseException { String fname = null; String guard = null; String paramExpr = null; String token; String varname = null; Vector predecessors = new Vector(); Vector seqno = null; Vector currentseq = new Vector(); Vector args = null; boolean mustBePre = false; boolean mustBeSeq = false; boolean parallell = false; boolean iterative = false; boolean mayDeleteExpr = false; boolean refindOperation = false; boolean hasPredecessors = false; int i; currentseq.add(null); currentseq.add(null); try { MyTokenizer st = new MyTokenizer(s, " ,\t,*,[,],.,:,=,/,\\,", MyTokenizer.PAREN_EXPR_STRING_SEPARATOR); while (st.hasMoreTokens()) { token = st.nextToken(); if (" ".equals(token) || "\t".equals(token)) { if (currentseq == null) { if (varname != null && fname == null) { varname += token; } } } else if ("[".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "qualified", st.getTokenIndex()); mustBeSeq = true; if (guard != null) throw new ParseException("Messages cannot have several" + " guard or iteration specifications", st.getTokenIndex()); guard = ""; while (true) { token = st.nextToken(); if ("]".equals(token)) break; guard += token; } } else if ("*".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "iterated", st.getTokenIndex()); mustBeSeq = true; if (currentseq != null) iterative = true; } else if (".".equals(token)) { if (currentseq == null) throw new ParseException("Unexpected dot ('.')", st.getTokenIndex()); if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { currentseq.add(null); currentseq.add(null); } } else if (":".equals(token)) { if (st.hasMoreTokens()) { String t = st.nextToken(); if ("=".equals(t)) { st.putToken(":="); continue; } st.putToken(t); } if (mustBePre) throw new ParseException("Predecessors must be " + "terminated with \'/\' and not with \':\'", st.getTokenIndex()); if (currentseq != null) { if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } seqno = currentseq; currentseq = null; mayDeleteExpr = true; } } else if ("/".equals(token)) { if (st.hasMoreTokens()) { String t = st.nextToken(); if ("/".equals(t)) { st.putToken("//"); continue; } st.putToken(t); } if (mustBeSeq) { throw new ParseException("The sequence number must be " + "terminated with \':\' and not with \'/\'", st.getTokenIndex()); } mustBePre = false; mustBeSeq = true; if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { predecessors.add(currentseq); currentseq = new Vector(); currentseq.add(null); currentseq.add(null); } hasPredecessors = true; } else if ("//".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "parallellized", st.getTokenIndex()); mustBeSeq = true; if (currentseq != null) parallell = true; } else if (",".equals(token)) { if (currentseq != null) { if (mustBeSeq) throw new ParseException("Messages cannot have " + "many sequence numbers", st.getTokenIndex()); mustBePre = true; if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { predecessors.add(currentseq); currentseq = new Vector(); currentseq.add(null); currentseq.add(null); } hasPredecessors = true; } else { if (varname == null && fname != null) { varname = fname + token; fname = null; } else if (varname != null && fname == null) { varname += token; } else { throw new ParseException("Unexpected character (,)", st.getTokenIndex()); } } } else if ("=".equals(token) || ":=".equals(token)) { if (currentseq == null) { if (varname == null) { varname = fname; fname = ""; } else { fname = ""; } } } else if (currentseq == null) { if (paramExpr == null && token.charAt(0) == '(') { if (token.charAt(token.length() - 1) != ')') throw new ParseException("Malformed parameters", st.getTokenIndex()); if (fname == null || "".equals(fname)) throw new ParseException("Must be a function name " + "before the parameters", st.getTokenIndex()); if (varname == null) varname = ""; paramExpr = token.substring(1, token.length() - 1); } else if (varname != null && fname == null) { varname += token; } else if (fname == null || fname.length() == 0) { fname = token; } else { throw new ParseException("Unexpected token (" + token + ")", st.getTokenIndex()); } } else { boolean hasVal = currentseq.get(currentseq.size() - 2) != null; boolean hasOrd = currentseq.get(currentseq.size() - 1) != null; boolean assigned = false; int bp = findMsgOrderBreak(token); if (!hasVal && !assigned && bp == token.length()) { try { currentseq.set(currentseq.size() - 2, new Integer(token)); assigned = true; } catch (NumberFormatException nfe) { } } if (!hasOrd && !assigned && bp == 0) { try { currentseq.set(currentseq.size() - 1, new Integer(parseMsgOrder(token))); assigned = true; } catch (NumberFormatException nfe) { } } if (!hasVal && !hasOrd && !assigned && bp > 0 && bp < token.length()) { Integer nbr, ord; try { nbr = new Integer(token.substring(0, bp)); ord = new Integer(parseMsgOrder(token.substring(bp))); currentseq.set(currentseq.size() - 2, nbr); currentseq.set(currentseq.size() - 1, ord); assigned = true; } catch (NumberFormatException nfe) { } } if (!assigned) { throw new ParseException("Unexpected token (" + token + ")", st.getTokenIndex()); } } } } catch (NoSuchElementException nsee) { throw new ParseException("Unexpected end of message", s.length()); } catch (ParseException pre) { throw pre; } if (paramExpr != null) { MyTokenizer st = new MyTokenizer(paramExpr, "\\,", _parameterCustomSep); args = new Vector(); while (st.hasMoreTokens()) { token = st.nextToken(); if (",".equals(token)) { if (args.size() == 0) args.add(null); args.add(null); } else { if (args.size() == 0) { if (token.trim().length() == 0) continue; args.add(null); } String arg = (String) args.get(args.size() - 1); if (arg != null) arg = arg + token; else arg = token; args.set(args.size() - 1, arg); } } } else if (mayDeleteExpr) { args = new Vector(); } if (LOG.isDebugEnabled()) { StringBuffer buf = new StringBuffer(); buf.append("ParseMessage: " + s + "\n"); buf.append("Message: "); for (i = 0; seqno != null && i + 1 < seqno.size(); i += 2) { if (i > 0) buf.append(", "); buf.append(seqno.get(i) + " (" + seqno.get(i + 1) + ")"); } buf.append("\n"); buf.append("predecessors: " + predecessors.size() + "\n"); for (i = 0; i < predecessors.size(); i++) { int j; Vector v = (Vector) predecessors.get(i); buf.append(" Predecessor: "); for (j = 0; v != null && j + 1 < v.size(); j += 2) { if (j > 0) buf.append(", "); buf.append(v.get(j) + " (" + v.get(j + 1) + ")"); } } buf.append("guard: " + guard + " it: " + iterative + " pl: " + parallell + "\n"); buf.append(varname + " := " + fname + " ( " + paramExpr + " )" + "\n"); LOG.debug(buf); } if (ModelFacade.getAction(mes) == null) { Object a = UmlFactory.getFactory().getCommonBehavior() .createCallAction(); ModelFacade.addOwnedElement(ModelFacade.getContext(ModelFacade .getInteraction(mes)), a); ModelFacade.setAction(mes, a); } if (guard != null) { guard = "[" + guard.trim() + "]"; if (iterative) { if (parallell) guard = "*//" + guard; else guard = "*" + guard; } Object/*MIterationExpression*/ expr = UmlFactory.getFactory().getDataTypes().createIterationExpression( Notation.getDefaultNotation().toString(), guard); ModelFacade.setRecurrence(ModelFacade.getAction(mes), expr); } if (fname == null) { if (!mayDeleteExpr && ModelFacade.getScript(ModelFacade.getAction(mes)) != null) { String body = (String) ModelFacade.getBody(ModelFacade .getScript(ModelFacade.getAction(mes))); int idx = body.indexOf(":="); if (idx >= 0) idx++; else idx = body.indexOf("="); if (idx >= 0) fname = body.substring(idx + 1); else fname = body; } else fname = ""; } if (varname == null) { if (!mayDeleteExpr && ModelFacade.getScript(ModelFacade.getAction(mes)) != null) { String body = (String) ModelFacade.getBody(ModelFacade .getScript(ModelFacade.getAction(mes))); int idx = body.indexOf(":="); if (idx < 0) idx = body.indexOf("="); if (idx >= 0) varname = body.substring(0, idx); else varname = ""; } else varname = ""; } if (fname != null) { String expr = fname.trim(); if (varname != null && varname.length() > 0) expr = varname.trim() + " := " + expr; if (ModelFacade.getScript(ModelFacade.getAction(mes)) == null || !expr.equals(ModelFacade.getBody(ModelFacade .getScript(ModelFacade.getAction(mes))))) { Object e = UmlFactory.getFactory().getDataTypes() .createActionExpression( Notation.getDefaultNotation().toString(), expr.trim()); ModelFacade.setScript(ModelFacade.getAction(mes), e); refindOperation = true; } } if (args != null) { Collection c = ModelFacade.getActualArguments(ModelFacade.getAction(mes)); Iterator it = c.iterator(); int pos; for (i = 0; i < args.size(); i++) { Object arg = (it.hasNext() ? /*(MArgument)*/ it.next() : null); if (arg == null) { arg = UmlFactory.getFactory().getCommonBehavior() .createArgument(); ModelFacade.addActualArgument(ModelFacade.getAction(mes), arg); refindOperation = true; } if (ModelFacade.getValue(arg) == null || !args.get(i).equals(ModelFacade .getBody(ModelFacade.getValue(arg)))) { String value = (args.get(i) != null ? (String) args.get(i) : ""); Object e = UmlFactory.getFactory().getDataTypes() .createExpression( Notation.getDefaultNotation().toString(), value.trim()); ModelFacade.setValue(arg, e); } } while (it.hasNext()) { ModelFacade.removeActualArgument(ModelFacade.getAction(mes), /*(MArgument)*/ it.next()); refindOperation = true; } } if (seqno != null) { Object/*MMessage*/ root; // Find the preceding message, if any, on either end of the // association. String pname = ""; String mname = ""; String gname = GeneratorDisplay.getInstance() .generateMessageNumber(mes); boolean swapRoles = false; int majval = (seqno.get(seqno.size() - 2) != null ? Math.max( ((Integer) seqno.get(seqno.size() - 2)).intValue() - 1, 0) : 0); int minval = (seqno.get(seqno.size() - 1) != null ? Math.max(((Integer) seqno.get(seqno.size() - 1)).intValue(), 0) : 0); for (i = 0; i + 1 < seqno.size(); i += 2) { int bv = (seqno.get(i) != null ? Math.max(((Integer) seqno.get(i)).intValue(), 1) : 1); int sv = (seqno.get(i + 1) != null ? Math.max(((Integer) seqno.get(i + 1)).intValue(), 0) : 0); if (i > 0) mname += "."; mname += Integer.toString(bv) + (char) ('a' + sv); if (i + 3 < seqno.size()) { if (i > 0) pname += "."; pname += Integer.toString(bv) + (char) ('a' + sv); } } root = null; if (pname.length() > 0) { root = findMsg(ModelFacade.getSender(mes), pname); if (root == null) { root = findMsg(ModelFacade.getReceiver(mes), pname); if (root != null) { swapRoles = true; } } } else if (!hasMsgWithActivator(ModelFacade.getSender(mes), null) && hasMsgWithActivator(ModelFacade.getReceiver(mes), null)) swapRoles = true; if (compareMsgNumbers(mname, gname)) { ;// Do nothing } else if (isMsgNumberStartOf(gname, mname)) { throw new ParseException("Cannot move a message into the " + "subtree rooted at self", 0); } else if (ModelFacade.getPredecessors(mes).size() > 1 && ModelFacade.getMessages3(mes).size() > 1) { throw new ParseException("Cannot move a message which is " + "both start and end of several threads", 0); } else if (root == null && pname.length() > 0) { throw new ParseException("Cannot find the activator for the " + "message", 0); } else if (swapRoles && ModelFacade.getMessages4(mes).size() > 0 && ModelFacade.getSender(mes) != ModelFacade.getReceiver(mes) ) { throw new ParseException("Cannot reverse the direction of a " + "message that is an activator", 0); } else { // Disconnect the message from the call graph Collection c = ModelFacade.getPredecessors(mes); Collection c2 = ModelFacade.getMessages3(mes); Iterator it; it = c2.iterator(); while (it.hasNext()) { ModelFacade.removeMessage3(mes, /*(MMessage)*/ it.next()); } it = c.iterator(); while (it.hasNext()) { Iterator it2 = c2.iterator(); Object pre = /*(MMessage)*/ it.next(); ModelFacade.removePredecessor(mes, pre); while (it2.hasNext()) { ModelFacade.addPredecessor(it2.next(), pre); } } // Connect the message at a new spot ModelFacade.setActivator(mes, root); if (swapRoles) { Object/*MClassifierRole*/ r = ModelFacade.getSender(mes); ModelFacade.setSender(mes, ModelFacade.getReceiver(mes)); ModelFacade.setReceiver(mes, r); } if (root == null) { c = filterWithActivator(ModelFacade .getMessages2(ModelFacade.getSender(mes)), null ); } else { c = ModelFacade.getMessages4(root); } c2 = findCandidateRoots(c, root, mes); it = c2.iterator(); // If c2 is empty, then we're done (or there is a // cycle in the message graph, which would be bad) If // c2 has more than one element, then the model is // crappy, but we'll just use one of them anyway if (majval <= 0) { while (it.hasNext()) ModelFacade.addMessage3(mes, /*(MMessage)*/ it.next()); } else if (it.hasNext()) { Object/*MMessage*/ pre = walk(/*(MMessage)*/ it.next(), majval - 1, false); Object/*MMessage*/ post = successor(pre, minval); if (post != null) { ModelFacade.removePredecessor(post, pre); ModelFacade.addPredecessor(post, mes); } insertSuccessor(pre, mes, minval); } refindOperation = true; } } if (fname != null && refindOperation) { Object role = ModelFacade.getReceiver(mes); Vector ops = getOperation(ModelFacade.getBases(role), fname.trim(), ModelFacade.getActualArguments( ModelFacade.getAction(mes)).size() ); // TODO: Should someone choose one, if there are more // than one? if (ModelFacade.isACallAction(ModelFacade.getAction(mes))) { Object a = /*(MCallAction)*/ ModelFacade.getAction(mes); if (ops.size() > 0) ModelFacade.setOperation(a, /*(MOperation)*/ ops.get(0)); else ModelFacade.setOperation(a, null); } } // TODO: Predecessors is not implemented, because it // causes some problems that I've not found an easy way to handle yet, // d00mst. The specific problem is that the notation currently is // ambiguous on second message after a thread split. // Why not implement it anyway? d00mst if (hasPredecessors) { Collection roots = findCandidateRoots(ModelFacade .getMessages(ModelFacade.getInteraction(mes)), null, null); Vector pre = new Vector(); Iterator it; predfor: for (i = 0; i < predecessors.size(); i++) { it = roots.iterator(); while (it.hasNext()) { Object/*MMessage*/ msg = walkTree(/*(MMessage)*/ it.next(), (Vector) predecessors.get(i)); if (msg != null && msg != mes) { if (isBadPreMsg(mes, msg)) { throw new ParseException( "One predecessor cannot be a predecessor " + "to this message", 0); } pre.add(msg); continue predfor; } } throw new ParseException("Could not find predecessor", 0); } GeneratorDisplay.MsgPtr ptr = GeneratorDisplay.getInstance().new MsgPtr(); GeneratorDisplay.getInstance().recCountPredecessors(mes, ptr); if (ptr.message != null && !pre.contains(ptr.message)) pre.add(ptr.message); ModelFacade.setPredecessors(mes, pre); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/bd2bc14bd41d6e4018fc6ac64fd5de3812c4e21f/ParserDisplay.java/buggy/src_new/org/argouml/uml/generator/ParserDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1079, 12, 921, 15216, 16, 514, 272, 13, 1216, 10616, 288, 202, 780, 5299, 273, 446, 31, 202, 780, 11026, 273, 446, 31, 202, 780, 579, 4742, 273, 446, 31, 202, 780, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1079, 12, 921, 15216, 16, 514, 272, 13, 1216, 10616, 288, 202, 780, 5299, 273, 446, 31, 202, 780, 11026, 273, 446, 31, 202, 780, 579, 4742, 273, 446, 31, 202, 780, 11...
return Array.getLength(o1) == Array.getLength(o2); }
return Array.getLength(o1) == Array.getLength(o2); }
private static boolean areArrayLengthsEqual( Object o1, Object o2 ) { return Array.getLength(o1) == Array.getLength(o2); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/IsEqual.java/clean/jmock/core/src/org/jmock/core/constraint/IsEqual.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1250, 854, 1076, 22406, 5812, 12, 1033, 320, 21, 16, 1033, 320, 22, 262, 288, 202, 202, 2463, 1510, 18, 588, 1782, 12, 83, 21, 13, 422, 1510, 18, 588, 1782, 12, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 760, 1250, 854, 1076, 22406, 5812, 12, 1033, 320, 21, 16, 1033, 320, 22, 262, 288, 202, 202, 2463, 1510, 18, 588, 1782, 12, 83, 21, 13, 422, 1510, 18, 588, 1782, 12, 83, ...
for (Iterator it = m_pointcutDefs.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry)it.next(); String name = (String)entry.getKey(); PointcutPatternTuple pointcutPattern = (PointcutPatternTuple)entry.getValue();
try { matchPointcutPatterns(jexlContext, classMetaData, fieldMetaData);
public boolean matches(final String className, final FieldMetaData fieldMetaData) { JexlContext jexlContext = JexlHelper.createContext(); for (Iterator it = m_pointcutDefs.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry)it.next(); String name = (String)entry.getKey(); PointcutPatternTuple pointcutPattern = (PointcutPatternTuple)entry.getValue(); if (pointcutPattern.getClassPattern().matches(className) && ((FieldPattern)pointcutPattern.getPattern()).matches(fieldMetaData)) { jexlContext.getVars().put(name, Boolean.TRUE); } else { jexlContext.getVars().put(name, Boolean.FALSE); } } try { Boolean result = (Boolean)m_jexlExpr.evaluate(jexlContext); if (result == null) { return false; } if (result.booleanValue()) { return true; } else { return false; } } catch (Exception e) { throw new WrappedRuntimeException(e); } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/797e662bcd4bca47d6ac84f41fbf32bf15013a33/FieldPointcut.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/pointcut/FieldPointcut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1885, 12, 6385, 514, 2658, 16, 21821, 727, 2286, 6998, 652, 6998, 13, 288, 3639, 804, 338, 80, 1042, 525, 338, 80, 1042, 273, 804, 338, 80, 2276, 18, 2640, 1042, 5621, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1885, 12, 6385, 514, 2658, 16, 21821, 727, 2286, 6998, 652, 6998, 13, 288, 3639, 804, 338, 80, 1042, 525, 338, 80, 1042, 273, 804, 338, 80, 2276, 18, 2640, 1042, 5621, 3639,...
return endpointEncoding;
return endpointEncoding;
public String getEncoding() { return endpointEncoding; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/fc9a3211b2e515690ae1759049f2ed1c8765cba1/ImmutableMuleEndpoint.java/clean/src/java/org/mule/impl/ImmutableMuleEndpoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 29505, 1435, 565, 288, 377, 202, 2463, 2494, 4705, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 29505, 1435, 565, 288, 377, 202, 2463, 2494, 4705, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if ( bFound )
if ( !bFound )
private final Series findDesignTimeSeries( Series seRT ) throws ChartException { final ChartWithAxes cwaRT = (ChartWithAxes) _iun.getRunTimeModel( ); final ChartWithAxes cwaDT = (ChartWithAxes) _iun.getDesignTimeModel( ); Series seDT = null; Axis[] axaBase = cwaRT.getPrimaryBaseAxes( ); Axis axBase = axaBase[0]; Axis[] axaOrthogonal = cwaRT.getOrthogonalAxes( axBase, true ); EList elSD, elSE; SeriesDefinition sd; Series se = null; int i, j = 0, k = 0; boolean bFound = false; // LOCATE INDEXES FOR AXIS/SERIESDEFINITION/SERIES IN RUN TIME MODEL for ( i = 0; i < axaOrthogonal.length; i++ ) { elSD = axaOrthogonal[i].getSeriesDefinitions( ); for ( j = 0; j < elSD.size( ); j++ ) { sd = (SeriesDefinition) elSD.get( j ); elSE = sd.getSeries( ); for ( k = 0; k < elSE.size( ); k++ ) { se = (Series) elSE.get( k ); if ( seRT == se ) { bFound = true; break; } } if ( bFound ) { break; } } if ( bFound ) { break; } } if ( !bFound ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.OUT_OF_SYNC, "info.cannot.find.series", //$NON-NLS-1$ new Object[]{ seRT }, ResourceBundle.getBundle( Messages.DEVICE_EXTENSION, getLocale() ) ); } // MAP TO INDEXES FOR AXIS/SERIESDEFINITION/SERIES IN DESIGN TIME MODEL axaBase = cwaDT.getPrimaryBaseAxes( ); axBase = axaBase[0]; axaOrthogonal = cwaDT.getOrthogonalAxes( axBase, true ); elSD = axaOrthogonal[i].getSeriesDefinitions( ); sd = (SeriesDefinition) elSD.get( j ); elSE = sd.getSeries( ); seDT = (Series) elSE.get( k ); return seDT; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/6b25c8467786900718c009e844482ef0389c4568/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, 1152, 727, 9225, 1104, 15478, 28486, 12, 9225, 695, 12185, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 12185, 273, 261, 7984, 1190, 26494...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9225, 1104, 15478, 28486, 12, 9225, 695, 12185, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 6385, 14804, 1190, 26494, 14098, 69, 12185, 273, 261, 7984, 1190, 26494...
try { theGroup.add(ProActive.newActive(classeName, leParam, leNode)); ((org.objectweb.proactive.core.group.ProxyForGroup)theGroup).decrementTheWaitedCreation(); } catch (Exception e) { e.printStackTrace(); } }
try { theGroup.add(ProActive.newActive(classeName, leParam, leNode)); ((org.objectweb.proactive.core.group.ProxyForGroup) theGroup).decrementWaitedAndNotifyAll(); } catch (Exception e) { e.printStackTrace(); } }
public void run() { try { theGroup.add(ProActive.newActive(classeName, leParam, leNode)); ((org.objectweb.proactive.core.group.ProxyForGroup)theGroup).decrementTheWaitedCreation(); } catch (Exception e) { e.printStackTrace(); } }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/b5b6b2bb6ded96a8d2ca2db6f12836cec349b290/ProxyForGroup.java/clean/src/org/objectweb/proactive/core/group/ProxyForGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 326, 1114, 18, 1289, 12, 626, 3896, 18, 2704, 3896, 12, 830, 345, 307, 461, 16, 884, 786, 16, 884, 907, 10019, 7734, 14015, 3341, 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, 540, 1071, 918, 1086, 1435, 288, 5411, 775, 288, 7734, 326, 1114, 18, 1289, 12, 626, 3896, 18, 2704, 3896, 12, 830, 345, 307, 461, 16, 884, 786, 16, 884, 907, 10019, 7734, 14015, 3341, 18, ...
if (loc.y >= endY)
if (loc.y >= endY) {
private UIJob getSlideJob(){ UIJob slideJob = new UIJob("Sliding Message") { //$NON-NLS-1$ public IStatus runInUIThread(IProgressMonitor monitor) { if(!monitor.isCanceled() && !control.isDisposed()){ Point loc = control.getLocation(); switch (getAnimationState()) { case OPENING: loc.y--; if (loc.y >= endY) control.setLocation(loc); else { finished[0] = true; setAnimationState(OPEN); } break; case CLOSING: loc.y++; if (loc.y <= endY) control.setLocation(loc); else { finished[0] = true; setAnimationState(CLOSED); } break; default: break; } if(!finished[0]) getSlideJob().schedule(5); return Status.OK_STATUS; } return Status.CANCEL_STATUS; } }; return slideJob; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/229fa3ff73e62189c51c61c3f11fc1aafcd37f5f/WorkbenchControlAnimator.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchControlAnimator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6484, 2278, 1322, 8130, 2278, 1435, 95, 202, 202, 5370, 2278, 12701, 2278, 273, 394, 6484, 2278, 2932, 3738, 10415, 2350, 7923, 288, 4329, 3993, 17, 5106, 17, 21, 8, 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, 6484, 2278, 1322, 8130, 2278, 1435, 95, 202, 202, 5370, 2278, 12701, 2278, 273, 394, 6484, 2278, 2932, 3738, 10415, 2350, 7923, 288, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202,...
return (VmMethod)Unsafe.getObject(sf, getMethodOffset(sf));
final Object obj = Unsafe.getObject(sf, getMethodOffset(sf)); if (obj instanceof VmMethod) { return (VmMethod)obj; } else if (obj == null) { return null; } else { Unsafe.debug("Method on stacktrace is not instanceof VmMethod but "); Unsafe.debug(obj.getClass().getName()); Unsafe.die("Fatal stack error"); return null; }
final VmMethod getMethod(Address sf) { return (VmMethod)Unsafe.getObject(sf, getMethodOffset(sf)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5fd2b1e0180cda24cafbd8288788f03fd5464c0f/VmStackReader.java/buggy/core/src/core/org/jnode/vm/VmStackReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 776, 81, 1305, 6272, 12, 1887, 9033, 13, 288, 202, 202, 2463, 261, 22143, 1305, 13, 23912, 18, 588, 921, 12, 21668, 16, 6272, 2335, 12, 21668, 10019, 202, 97, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6385, 776, 81, 1305, 6272, 12, 1887, 9033, 13, 288, 202, 202, 2463, 261, 22143, 1305, 13, 23912, 18, 588, 921, 12, 21668, 16, 6272, 2335, 12, 21668, 10019, 202, 97, 2, -100, -100, ...
indent = 1;
indent = true;
private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 509, 3476, 67, 15156, 273, 374, 31, 3639, 5323, 2121, 5323, 31, 3639, 3300, 294, 364, 261, 25708, 13, 288, 5411, 1620, 261...
DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode);
DefaultViewNode documentNode = new DefaultViewNode("document",contentNode);
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
52727 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52727/ab336fe7d2721be8c0ff289af8340b43dcd3d75b/ViewManager.java/buggy/src/java/com/idega/faces/view/ViewManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 8336, 9959, 12, 1767, 1503, 1838, 15329, 9506, 202, 542, 3208, 2375, 12, 22315, 2540, 16, 4176, 1769, 9506, 202, 1868, 1767, 907, 2089, 907, 273, 394, 4257, 1767, 907...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 8336, 9959, 12, 1767, 1503, 1838, 15329, 9506, 202, 542, 3208, 2375, 12, 22315, 2540, 16, 4176, 1769, 9506, 202, 1868, 1767, 907, 2089, 907, 273, 394, 4257, 1767, 907...
mLog.debug("\t\tWrote "+(int)toRead+" bytes with checksum "+check.getValue());
mLog.debug("\tWriting file: \""+files[i]+"\" len="+fileLen);
public synchronized void backupIndex(OutputStream out) throws IOException { flush(); // make sure all writes are complete. // TODO - steal Lucene's much more efficient primitive-types-to-binary-file code and use that, instead of the ObjectOutputStream... ObjectOutputStream outStr = new ObjectOutputStream(out); // // simple output format: // // - Start Magic Number // // - Repeat: // Long length : length of file or -1 end of files // String name : file name // byte[length]: file data // separator magic # // outStr.writeInt(INDEX_BACKUP_START_MAGIC); FSDirectory indexDir = null; File idxPathFile = new File(mIdxPath); if (idxPathFile.exists() && idxPathFile.isDirectory()) { indexDir = FSDirectory.getDirectory(idxPathFile, false); } if (null != indexDir) { String[] files = indexDir.list(); byte buffer[] = new byte[BUFFER_LEN]; for (int i = 0; i < files.length; i++) { long fileLen = indexDir.fileLength(files[i]); org.apache.lucene.store.InputStream in = indexDir.openFile(files[i]); if (mLog.isDebugEnabled()) { mLog.debug("\tWriting file: \""+files[i]+"\" len="+fileLen); } // // need to write file header here.... // outStr.writeLong(fileLen); outStr.writeUTF(files[i]); // // write the file data now // long pos = 0; while (pos < fileLen) { long toRead = Math.min(fileLen-pos, BUFFER_LEN); in.readBytes(buffer, 0, (int)toRead); outStr.write(buffer, 0, (int)toRead); CRC32 check = new CRC32(); check.update(buffer, 0, (int)toRead); if (mLog.isDebugEnabled()) { mLog.debug("\t\tWrote "+(int)toRead+" bytes with checksum "+check.getValue()); } pos+=toRead; } outStr.writeInt(INDEX_BACKUP_SEPARATOR_MAGIC); in.close(); } } else { mLog.info("No index file for mailbox "+this.mMailboxId); } outStr.writeLong(-1); // end of files outStr.flush(); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9f6861227b0f9808a28547edf4255cb279354a1d/MailboxIndex.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/MailboxIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 5114, 1016, 12, 4632, 596, 13, 1216, 1860, 565, 288, 3639, 3663, 5621, 368, 1221, 3071, 777, 7262, 854, 3912, 18, 3639, 368, 2660, 300, 18654, 287, 511, 14152, 1807, 9816...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 5114, 1016, 12, 4632, 596, 13, 1216, 1860, 565, 288, 3639, 3663, 5621, 368, 1221, 3071, 777, 7262, 854, 3912, 18, 3639, 368, 2660, 300, 18654, 287, 511, 14152, 1807, 9816...
if ( element instanceof TableRow ) if ( element.getContainer( ) instanceof GroupElement ) element = element.getContainer( );
public void end( ) throws SAXException { // only when the row is in the Group. if ( element.getContainer( ) instanceof GroupElement ) { // special case to delegate the property value to its container. element = element.getContainer( ); super.end( ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/029da3d34dd6074fefd6e97b8f8f0d1826f7d18a/CompatiblePageBreakPropState.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatiblePageBreakPropState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 282, 309, 261, 930, 1276, 3555, 1999, 262, 309, 261, 930, 18, 588, 2170, 12, 262, 1276, 3756, 1046, 262, 930, 273, 930, 18, 588, 2170, 12, 11272, 918, 282, 309, 261, 930, 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, 282, 309, 261, 930, 1276, 3555, 1999, 262, 309, 261, 930, 18, 588, 2170, 12, 262, 1276, 3756, 1046, 262, 930, 273, 930, 18, 588, 2170, 12, 11272, 918, 282, 309, 261, 930, 12...
pq.addNode(new DefaultPersistentHeapNode(-5, new DefaultPersistentKey(-5)));
pq.addNode(new DefaultHeapNode<Integer, Integer>(65, 65)); System.out.println("ADD " + 65); System.out.println(pq); pq.addNode(new DefaultHeapNode<Integer, Integer>(-5, -5)); System.out.println("ADD " + (-5)); System.out.println(pq);
public static void main(String[] args) { PersistentHeap pq = new PersistentHeap("pqtest", 372, 372 * 3, new DefaultPersistentHeapNode(5, new DefaultPersistentKey(5))); pq.addNode(new DefaultPersistentHeapNode(7, new DefaultPersistentKey(7)));// System.out.println(7);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(2, new DefaultPersistentKey(2)));// System.out.println(2);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(9, new DefaultPersistentKey(9)));// System.out.println(9);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(6, new DefaultPersistentKey(6)));// System.out.println(6);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(3, new DefaultPersistentKey(3)));// System.out.println(3);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(8, new DefaultPersistentKey(8)));// System.out.println(8);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(12, new DefaultPersistentKey(12)));// System.out.println(12);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(10, new DefaultPersistentKey(10)));// System.out.println(10);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(14, new DefaultPersistentKey(14)));// System.out.println(14);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(11, new DefaultPersistentKey(11)));// System.out.println(11);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(1, new DefaultPersistentKey(1)));// System.out.println(1);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(18, new DefaultPersistentKey(18)));// System.out.println(18);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(4, new DefaultPersistentKey(4)));// System.out.println(4);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(21, new DefaultPersistentKey(21)));// System.out.println(21);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(28, new DefaultPersistentKey(28)));// System.out.println(28);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(-3, new DefaultPersistentKey(-3)));// System.out.println(-3);// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(65, new DefaultPersistentKey(65)));// System.out.println("add 65");// System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(-5, new DefaultPersistentKey(-5)));// System.out.println("add -5");// System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); System.out.println("\n" + pq.getMinNode()); System.out.println(pq); pq.addNode(new DefaultPersistentHeapNode(-5, new DefaultPersistentKey(-5))); System.out.println("add -5"); System.out.println(pq); System.out.println(pq.getIOAccess()); }
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/17e0a555a410337c1b14a8bebe3bd4840afbdfb7/PersistentHeap.java/buggy/src/de/lmu/ifi/dbs/utilities/heap/PersistentHeap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 11049, 15648, 14619, 273, 394, 11049, 15648, 2932, 84, 85, 3813, 3113, 890, 9060, 16, 890, 9060, 380, 890, 16, 394, 2989, 11906, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 11049, 15648, 14619, 273, 394, 11049, 15648, 2932, 84, 85, 3813, 3113, 890, 9060, 16, 890, 9060, 380, 890, 16, 394, 2989, 11906, ...
Thread thread = new Thread(handlers[looper], "nioWriteHandlerThread");
Thread thread = new Thread(tg, handlers[looper], "nioWriteHandlerThread");
private static WriteHandler[] create(int workerThreads) { WriteHandler[] handlers = new WriteHandler[workerThreads]; for (int looper = 0; looper < workerThreads; looper++) { handlers[looper] = new WriteHandler(); Thread thread = new Thread(handlers[looper], "nioWriteHandlerThread"); thread.setDaemon(true); thread.start(); } return handlers; }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/820cff78bb2b2f435c6dccaa33a34c8147be04f6/ConnectionTableNIO.java/clean/src/org/jgroups/blocks/ConnectionTableNIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3238, 760, 2598, 1503, 8526, 752, 12, 474, 4322, 13233, 13, 1377, 288, 540, 2598, 1503, 8526, 4919, 273, 394, 2598, 1503, 63, 10124, 13233, 15533, 540, 364, 261, 474, 437, 4063, 273, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3238, 760, 2598, 1503, 8526, 752, 12, 474, 4322, 13233, 13, 1377, 288, 540, 2598, 1503, 8526, 4919, 273, 394, 2598, 1503, 63, 10124, 13233, 15533, 540, 364, 261, 474, 437, 4063, 273, 374...
public CallbackMethod(Callback callback) {
public CallbackMethod(Callback callback, Visibility visibility) { super(visibility);
public CallbackMethod(Callback callback) { this.callback = callback; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f05423516c2d1bfe54c4363eedb9654f7cfb6898/CallbackMethod.java/buggy/org/jruby/internal/runtime/methods/CallbackMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8444, 1305, 12, 2428, 1348, 16, 27791, 9478, 13, 288, 2240, 12, 14422, 1769, 3639, 333, 18, 3394, 273, 1348, 31, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8444, 1305, 12, 2428, 1348, 16, 27791, 9478, 13, 288, 2240, 12, 14422, 1769, 3639, 333, 18, 3394, 273, 1348, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...