rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
windowTitle = newTitle; if (container != null) container.updateWindowTitle(); }
windowTitle = newTitle; if (container != null) container.updateWindowTitle(); }
public void setWindowTitle(String newTitle) { windowTitle = newTitle; if (container != null) container.updateWindowTitle();}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a18106031e964319aaf529e81969e4fa59a1d32a/Wizard.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/Wizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 3829, 4247, 12, 780, 394, 4247, 13, 288, 202, 5668, 4247, 273, 394, 4247, 31, 202, 430, 261, 3782, 480, 446, 13, 202, 202, 3782, 18, 2725, 3829, 4247, 5621, 97, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 3829, 4247, 12, 780, 394, 4247, 13, 288, 202, 5668, 4247, 273, 394, 4247, 31, 202, 430, 261, 3782, 480, 446, 13, 202, 202, 3782, 18, 2725, 3829, 4247, 5621, 97, 2, -100, -1...
StringBuffer result = new StringBuffer(4);
StringBuffer result = new StringBuffer(128);
public String buildGallerySelectBox() { List galleries = getGalleries(); if (galleries != null && galleries.size() == 1) { // exactly one gallery present CmsResource res = (CmsResource)galleries.get(0); StringBuffer result = new StringBuffer(32); String path = getCms().getSitePath(res); String title = ""; try { // read the gallery title title = getCms().readPropertyObject(path, CmsPropertyDefinition.PROPERTY_TITLE, false).getValue(""); } catch (CmsException e) { // error reading title property LOG.error(e); } result.append(title); result.append(" ("); result.append(path); result.append(" )\r\n"); result.append("<input type=\"hidden\" name=\""); result.append(PARAM_GALLERYPATH); result.append("\" value=\""); result.append(path); result.append("\">"); return result.toString(); } else if (galleries.size() > 1) { // more than one gallery present int galleryCount = galleries.size(); List options = new ArrayList(galleryCount); List values = new ArrayList(galleryCount); int selectedIndex = -1; for (int i = 0; i < galleryCount; i++) { CmsResource res = (CmsResource)galleries.get(i); String path = getCms().getSitePath(res); if (path.equals(getParamGalleryPath())) { selectedIndex = i; } String title = ""; try { // read the gallery title title = getCms().readPropertyObject(path, CmsPropertyDefinition.PROPERTY_TITLE, false).getValue(""); } catch (CmsException e) { // error reading title property if (LOG.isErrorEnabled()) { LOG.error(e); } } options.add(title + " (" + path + ")"); values.add(path); } selectedIndex = sortOptions(options, values); String attrs = "name=\"" + PARAM_GALLERYPATH; attrs += "\" size=\"1\" style=\"width: 100%;\" onchange=\"displayGallery();\""; return buildSelect(attrs, options, values, selectedIndex); } else { // no gallery present, create hidden input field to avoid JS errors StringBuffer result = new StringBuffer(4); result.append(key(Messages.getGalleryNotFoundKey(getGalleryTypeName()))); result.append("\r\n<input type=\"hidden\" name=\""); result.append(PARAM_GALLERYPATH); result.append("\">"); return result.toString(); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/e3b22277218b3028103f499ce929f221f0092dd3/A_CmsGallery.java/clean/src/org/opencms/workplace/galleries/A_CmsGallery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1361, 18511, 3391, 3514, 1435, 288, 3639, 987, 314, 30912, 273, 7162, 30912, 5621, 3639, 309, 261, 75, 30912, 480, 446, 597, 314, 30912, 18, 1467, 1435, 422, 404, 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, 514, 1361, 18511, 3391, 3514, 1435, 288, 3639, 987, 314, 30912, 273, 7162, 30912, 5621, 3639, 309, 261, 75, 30912, 480, 446, 597, 314, 30912, 18, 1467, 1435, 422, 404, 13, 288, 5411...
public void mT33() throws RecognitionException { try { ruleNestingLevel++; int _type = T33; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ( ',' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:13:7: ',' { match(','); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21115, 3707, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 399, 3707, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21115, 3707, 1435, 1216, 9539, 288, 3639, 775, 288, 5411, 1720, 50, 10100, 2355, 9904, 31, 5411, 509, 389, 723, 273, 399, 3707, 31, 5411, 509, 389, 1937, 273, 23577, 1016, 5621...
private float flushLines() throws DocumentException { // checks if the ArrayList with the lines is not null if (lines == null) { return 0; } //add by Jin-Hsia Yang boolean newline=false; //end add by Jin-Hsia Yang // checks if a new Line has to be made. if (line != null && line.size() > 0) { lines.add(line); line = new PdfLine(indentLeft(), indentRight(), alignment, leading); //add by Jin-Hsia Yang newline=true; //end add by Jin-Hsia Yang } // checks if the ArrayList with the lines is empty if (lines.size() == 0) { return 0; } // initialisation of some parameters Object currentValues[] = new Object[2]; PdfFont currentFont = null; float displacement = 0; PdfLine l; PdfChunk chunk; Float lastBaseFactor = new Float(0); currentValues[1] = lastBaseFactor; // looping over all the lines for (Iterator i = lines.iterator(); i.hasNext(); ) { // this is a line in the loop l = (PdfLine) i.next(); if(isNewpage && newline) { // fix Ken@PDI newline=false; text.moveText(l.indentLeft() - indentLeft() + listIndentLeft + paraIndent,-l.height()); } else { text.moveText(l.indentLeft() - indentLeft() + listIndentLeft, -l.height()); } // is the line preceeded by a symbol? if (l.listSymbol() != null) { chunk = l.listSymbol(); text.moveText(- l.listIndent(), 0); if (chunk.font().compareTo(currentFont) != 0) { currentFont = chunk.font(); text.setFontAndSize(currentFont.getFont(), currentFont.size()); } if (chunk.color() != null) { Color color = chunk.color(); text.setColorFill(color); text.showText(chunk.toString()); text.resetRGBColorFill(); } else if (chunk.isImage()) { Image image = chunk.getImage(); float matrix[] = image.matrix(); float xMarker = text.getXTLM(); float yMarker = text.getYTLM(); matrix[Image.CX] = xMarker + chunk.getImageOffsetX() - matrix[Image.CX]; matrix[Image.CY] = yMarker + chunk.getImageOffsetY() - matrix[Image.CY]; graphics.addImage(image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); } else { text.showText(chunk.toString()); } text.moveText(l.listIndent(), 0); } currentValues[0] = currentFont; writeLineToContent(l, text, graphics, currentValues, writer.getSpaceCharRatio()); currentFont = (PdfFont)currentValues[0]; displacement += l.height(); if (indentLeft() - listIndentLeft != l.indentLeft()) { text.moveText(indentLeft() - l.indentLeft() - listIndentLeft, 0); } } lines = new ArrayList(); return displacement; }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/aae864e08892bcaa996e6e0837e49ba48452dad0/PdfDocument.java/clean/src/com/lowagie/text/pdf/PdfDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1431, 3663, 5763, 1435, 1216, 4319, 503, 288, 7734, 368, 4271, 309, 326, 2407, 598, 326, 2362, 353, 486, 446, 3639, 309, 261, 3548, 422, 446, 13, 288, 5411, 327, 374, 31, 3639, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1431, 3663, 5763, 1435, 1216, 4319, 503, 288, 7734, 368, 4271, 309, 326, 2407, 598, 326, 2362, 353, 486, 446, 3639, 309, 261, 3548, 422, 446, 13, 288, 5411, 327, 374, 31, 3639, 28...
Asserts.isTrue(arity >= 0);
assert arity >= 0;
public static Arity fixed(int arity) { Asserts.isTrue(arity >= 0); return createArity(arity); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/Arity.java/clean/src/org/jruby/runtime/Arity.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1201, 560, 5499, 12, 474, 19353, 13, 288, 3639, 1815, 19353, 1545, 374, 31, 3639, 327, 752, 686, 560, 12, 20498, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1201, 560, 5499, 12, 474, 19353, 13, 288, 3639, 1815, 19353, 1545, 374, 31, 3639, 327, 752, 686, 560, 12, 20498, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
IRubyObject[] elements = ((RubyArray) backtrace()).toJavaArray();
IRubyObject backtrace = callMethod(getRuntime().getCurrentContext(), "backtrace"); if (!backtrace.isNil() && backtrace instanceof RubyArray) { IRubyObject[] elements = ((RubyArray)backtrace.convertToArray()).toJavaArray();
public void printBacktrace(PrintStream errorStream) { IRubyObject[] elements = ((RubyArray) backtrace()).toJavaArray(); for (int i = 1; i < elements.length; i++) { IRubyObject stackTraceLine = elements[i]; if (stackTraceLine instanceof RubyString) { printStackTraceLine(errorStream, stackTraceLine); } if (i == RubyException.TRACE_HEAD && elements.length > RubyException.TRACE_MAX) { int hiddenLevels = elements.length - RubyException.TRACE_HEAD - RubyException.TRACE_TAIL; errorStream.print("\t ... " + hiddenLevels + " levels...\n"); i = elements.length - RubyException.TRACE_TAIL; } } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/fe628a940467ceda783730ea34173dec3d365fa4/RubyException.java/clean/src/org/jruby/RubyException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1172, 2711, 5129, 12, 5108, 1228, 555, 1228, 13, 288, 202, 202, 7937, 10340, 921, 8526, 2186, 273, 14015, 54, 10340, 1076, 13, 13902, 1435, 2934, 869, 5852, 1076, 5621, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1172, 2711, 5129, 12, 5108, 1228, 555, 1228, 13, 288, 202, 202, 7937, 10340, 921, 8526, 2186, 273, 14015, 54, 10340, 1076, 13, 13902, 1435, 2934, 869, 5852, 1076, 5621, 108...
public boolean isActive() {
public synchronized boolean isActive() {
public boolean isActive() { return active; }
13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/5843b2f7c255360ef5c6d412c2fc8a9a4630b55a/HttpSocket.java/buggy/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/HttpSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 15083, 1435, 288, 202, 202, 2463, 2695, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 15083, 1435, 288, 202, 202, 2463, 2695, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for ( short s : values) data.putShort( data.position() + ( size() - dataSize()), s);
for ( short s : values) data.putShort( s);
public void write( final ByteBuffer data) { for ( short s : values) data.putShort( data.position() + ( size() - dataSize()), s); }
48840 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48840/ce39db3f1aeee0a981bc25f5627cc7d83ec5ea8c/AbstractHeader.java/clean/source/main/org/freecompany/redline/header/AbstractHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1045, 12, 727, 7400, 501, 13, 288, 1082, 202, 1884, 261, 3025, 272, 294, 924, 13, 501, 18, 458, 4897, 12, 501, 18, 3276, 1435, 397, 261, 963, 1435, 300, 30216, 1435, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1045, 12, 727, 7400, 501, 13, 288, 1082, 202, 1884, 261, 3025, 272, 294, 924, 13, 501, 18, 458, 4897, 12, 501, 18, 3276, 1435, 397, 261, 963, 1435, 300, 30216, 1435, 3...
return UIUtil.createGroup( getTableAdapter( ).getHandle( ), position );
return UIUtil.createGroup( getTableAdapter( ).getHandle( ) );
public boolean insertGroup( int position ) { return UIUtil.createGroup( getTableAdapter( ).getHandle( ), position ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2c6751a3d76d372beb000ad2db0f112c9a7ad82a/TableEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/TableEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 2243, 1114, 12, 509, 1754, 262, 202, 95, 202, 202, 2463, 6484, 1304, 18, 2640, 1114, 12, 5638, 4216, 12, 262, 18, 588, 3259, 12, 262, 16, 1754, 11272, 202, 97, 2, 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, 225, 202, 482, 1250, 2243, 1114, 12, 509, 1754, 262, 202, 95, 202, 202, 2463, 6484, 1304, 18, 2640, 1114, 12, 5638, 4216, 12, 262, 18, 588, 3259, 12, 262, 16, 1754, 11272, 202, 97, 2, -100...
this.fileFilters.add(ioFileFilter); }
this.fileFilters.add(ioFileFilter); }
public void addFileFilter(final IOFileFilter ioFileFilter) { this.fileFilters.add(ioFileFilter); }
56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/4cc8e74e9584837bb56581688bcc613d5978e599/OrFileFilter.java/clean/src/java/org/apache/commons/io/filefilter/OrFileFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18671, 1586, 12, 6385, 1665, 29837, 2527, 29837, 13, 288, 565, 333, 18, 768, 5422, 18, 1289, 12, 1594, 29837, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18671, 1586, 12, 6385, 1665, 29837, 2527, 29837, 13, 288, 565, 333, 18, 768, 5422, 18, 1289, 12, 1594, 29837, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
ValueType.DOUBLE_TYPE );
ValueType.PDOUBLE_TYPE );
public void testDouble() { final Object[][] data = {{new Double( 42 ), "==", new Double( 42 ), Boolean.TRUE}, {new Double( 42 ), "<", new Double( 43 ), Boolean.TRUE}, {new Double( 42 ), ">=", new Double( 41 ), Boolean.TRUE}, {new Double( 42 ), "!=", new Double( 41 ), Boolean.TRUE}, {new Double( 42 ), ">", new Double( 41 ), Boolean.TRUE}, {new Double( 42 ), ">=", new Double( 41 ), Boolean.TRUE}, {new Double( 42 ), ">=", new Double( 42 ), Boolean.TRUE}, {new Double( 42 ), ">=", new Double( 100 ), Boolean.FALSE}, {new Double( 42 ), "<", new Double( 1 ), Boolean.FALSE}, {new Double( 42 ), "==", null, Boolean.FALSE}, {new Double( 42 ), "!=", null, Boolean.TRUE}, {null, "==", null, Boolean.TRUE}, {null, "==", new Double( 42 ), Boolean.FALSE}, {null, "!=", null, Boolean.FALSE}, {null, "!=", new Double( 42 ), Boolean.TRUE}}; runEvaluatorTest( data, ValueType.DOUBLE_TYPE ); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/0a76f888ef55c8d5cf806f1c9e6a6e27fa7f4faf/EvaluatorFactoryTest.java/clean/drools-core/src/test/java/org/drools/base/EvaluatorFactoryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5265, 1435, 288, 3639, 727, 1033, 63, 6362, 65, 501, 273, 10179, 2704, 3698, 12, 14856, 262, 16, 315, 631, 3113, 394, 3698, 12, 14856, 262, 16, 3411, 18, 18724, 5779, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5265, 1435, 288, 3639, 727, 1033, 63, 6362, 65, 501, 273, 10179, 2704, 3698, 12, 14856, 262, 16, 315, 631, 3113, 394, 3698, 12, 14856, 262, 16, 3411, 18, 18724, 5779, 2...
if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) {
/*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) {
public static RubyArray glob(Ruby ruby, RubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedError(); } final File patternFile = new File(pattern); String[] files = patternFile.getParentFile().list(new FilenameFilter() { public boolean accept(File dir, String name) { String patternName = patternFile.getName(); return name.startsWith(patternName.substring(0, patternName.indexOf('*'))) && name.endsWith(patternName.substring(patternName.indexOf('*') + 1)); } }); return RubyArray.newArray(ruby, JavaUtil.convertJavaArrayToRuby(ruby, files)); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyDir.java/clean/org/jruby/RubyDir.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 1076, 4715, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 780, 9670, 13, 288, 3639, 368, 9852, 333, 353, 1338, 279, 5264, 7931, 434, 326, 445, 454, 560, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 1076, 4715, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 780, 9670, 13, 288, 3639, 368, 9852, 333, 353, 1338, 279, 5264, 7931, 434, 326, 445, 454, 560, 434, ...
return context.getService(reference);
return new Thread(target, name);
public Object run() { return context.getService(reference); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/9f5bcde1dc3cbdacb8e674b2612f5740855a6b14/SecureAction.java/buggy/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/util/SecureAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 1086, 1435, 288, 9506, 202, 2463, 819, 18, 588, 1179, 12, 6180, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 1086, 1435, 288, 9506, 202, 2463, 819, 18, 588, 1179, 12, 6180, 1769, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Map keySequenceBindingsByKeySequence = new HashMap();
Map keySequenceBindingsByKeySequence = new HashMap();
public void testForRedundantKeySequenceBindings() { final IWorkbenchWindow window = openTestWindow(); final IWorkbench workbench = window.getWorkbench(); final IBindingService bindingService = (IBindingService) workbench.getService(IWorkbenchServices.BINDING); final Binding[] bindings = bindingService.getBindings(); final int bindingCount = bindings.length; Map keySequenceBindingsByKeySequence = new HashMap(); for (int i = 0; i < bindingCount; i++) { // Retrieve the key binding. final Binding binding = bindings[i]; // Find the point the bindings with matching key sequences. TriggerSequence triggerSequence = binding.getTriggerSequence(); List matches = (List) keySequenceBindingsByKeySequence .get(triggerSequence); if (matches == null) { matches = new ArrayList(); keySequenceBindingsByKeySequence.put(triggerSequence, matches); } // Check that we don't have any redundancy or other wackiness. Iterator matchItr = matches.iterator(); while (matchItr.hasNext()) { final Binding matchedBinding = (Binding) matchItr.next(); String commandA = binding.getCommandId(); String commandB = matchedBinding.getCommandId(); String contextA = binding.getContextId(); String contextB = matchedBinding.getContextId(); String keyConfA = binding.getSchemeId(); String keyConfB = matchedBinding.getSchemeId(); String localeA = binding.getLocale(); String localeB = matchedBinding.getLocale(); String platformA = binding.getPlatform(); String platformB = matchedBinding.getPlatform(); boolean same = true; int nullMatches = 0; same &= (commandA == null) ? (commandB == null) : (commandA .equals(commandB)); same &= (contextA == null) || (contextB == null) || (contextA.equals(contextB)); if (((contextA == null) || (contextB == null)) && (contextA != contextB)) { nullMatches++; } same &= (keyConfA == null) || (keyConfB == null) || (keyConfA.equals(keyConfB)); if (((keyConfA == null) || (keyConfB == null)) && (keyConfA != keyConfB)) { nullMatches++; } same &= (localeA == null) || (localeB == null) || (localeA.equals(localeB)); if (((localeA == null) || (localeB == null)) && (localeA != localeB)) { nullMatches++; } same &= (platformA == null) || (platformB == null) || (platformA.equals(platformB)); if (((platformA == null) || (platformB == null)) && (platformA != platformB)) { nullMatches++; } assertFalse( "Redundant key bindings: " + binding + ", " + matchedBinding, same && (nullMatches < 1)); //$NON-NLS-1$ //$NON-NLS-2$ } // Add the key binding. matches.add(binding); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/Bug36537Test.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/Bug36537Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1290, 3715, 15362, 653, 4021, 10497, 1435, 288, 3639, 727, 467, 2421, 22144, 3829, 2742, 273, 1696, 4709, 3829, 5621, 3639, 727, 467, 2421, 22144, 1440, 22144, 273, 2742, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1290, 3715, 15362, 653, 4021, 10497, 1435, 288, 3639, 727, 467, 2421, 22144, 3829, 2742, 273, 1696, 4709, 3829, 5621, 3639, 727, 467, 2421, 22144, 1440, 22144, 273, 2742, 1...
if (src instanceof char[]) return new String( (char[]) src, off, cch ); StringBuffer sb = new StringBuffer(); ((CharJoin) src).getString( sb, 0, off, cch ); return sb.toString();
else if (src instanceof char[]) sb.append( (char[]) src, off, cch ); else ((CharJoin) src).getString( sb, d, off, cch );
public static String getString ( Object src, int off, int cch ) { assert isValid( src, off, cch ); if (cch == 0) return ""; if (src instanceof String) { String s = (String) src; if (off == 0 && cch == s.length()) return s; return s.substring( off, off + cch ); } if (src instanceof char[]) return new String( (char[]) src, off, cch ); StringBuffer sb = new StringBuffer(); ((CharJoin) src).getString( sb, 0, off, cch ); return sb.toString(); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/413249b7d74b98ae6b75b8514a2bba627510ce5a/CharUtil.java/buggy/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/CharUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 4997, 261, 1033, 1705, 16, 509, 3397, 16, 509, 276, 343, 262, 565, 288, 3639, 1815, 4908, 12, 1705, 16, 3397, 16, 276, 343, 11272, 3639, 309, 261, 71, 343, 422, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 4997, 261, 1033, 1705, 16, 509, 3397, 16, 509, 276, 343, 262, 565, 288, 3639, 1815, 4908, 12, 1705, 16, 3397, 16, 276, 343, 11272, 3639, 309, 261, 71, 343, 422, 374, 1...
return RubyString.newString(getRuntime(), "" + getValue());
return getRuntime().newString("" + getValue());
public RubyString to_s() { return RubyString.newString(getRuntime(), "" + getValue()); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFloat.java/clean/src/org/jruby/RubyFloat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 358, 67, 87, 1435, 288, 3639, 327, 18814, 7675, 2704, 780, 2932, 6, 397, 2366, 10663, 565, 289, 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, 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, 377, 1071, 19817, 780, 358, 67, 87, 1435, 288, 3639, 327, 18814, 7675, 2704, 780, 2932, 6, 397, 2366, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
db.handleBreakpointHit(this, cx); }
public void onLineChange(Context cx, int lineno) { this.lineNumber = lineno; checks: if (sourceInfo == null || !sourceInfo.hasBreakpoint(lineno)) { if (db.breakFlag) { break checks; } if (!contextData.breakNextLine) { return; } if (contextData.stopAtFrameDepth > 0) { if (contextData.frameCount() > contextData.stopAtFrameDepth) { return; } contextData.stopAtFrameDepth = -1; } contextData.breakNextLine = false; } db.handleBreakpointHit(this, cx); }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/2e82602eb1211d4009a62a6472713b525c827751/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 1670, 3043, 12, 1042, 9494, 16, 509, 7586, 13, 288, 3639, 333, 18, 1369, 1854, 273, 7586, 31, 1377, 4271, 30, 3639, 309, 261, 3168, 966, 422, 446, 747, 401, 3168, 966, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 1670, 3043, 12, 1042, 9494, 16, 509, 7586, 13, 288, 3639, 333, 18, 1369, 1854, 273, 7586, 31, 1377, 4271, 30, 3639, 309, 261, 3168, 966, 422, 446, 747, 401, 3168, 966, ...
public void parseMessage(MMessage mes, String s) throws ParseException { String fname = null; String guard = null; String paramExpr = null; String token; String varname = null; Vector predecessors = new Vector(); Vector seqno = null; Vector currentseq = new Vector(); Vector args = null; boolean mustBePre = false; boolean mustBeSeq = false; boolean parallell = false; boolean iterative = false; boolean mayDeleteExpr = false; boolean refindOperation = false; boolean hasPredecessors = false; int i; currentseq.add(null); currentseq.add(null); try { MyTokenizer st = new MyTokenizer(s, " ,\t,*,[,],.,:,=,/,\\,", MyTokenizer.PAREN_EXPR_STRING_SEPARATOR); while (st.hasMoreTokens()) { token = st.nextToken(); if (" ".equals(token) || "\t".equals(token)) { if (currentseq == null) { if (varname != null && fname == null) { varname += token; } } } else if ("[".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "qualified", st.getTokenIndex()); mustBeSeq = true; if (guard != null) throw new ParseException("Messages cannot have several " + "guard or iteration specifications", st.getTokenIndex()); guard = ""; while (true) { token = st.nextToken(); if ("]".equals(token)) break; guard += token; } } else if ("*".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "iterated", st.getTokenIndex()); mustBeSeq = true; if (currentseq != null) iterative = true; } else if (".".equals(token)) { if (currentseq == null) throw new ParseException("Unexpected dot ('.')", st.getTokenIndex()); if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { currentseq.add(null); currentseq.add(null); } } else if (":".equals(token)) { if (st.hasMoreTokens()) { String t = st.nextToken(); if ("=".equals(t)) { st.putToken(":="); continue; } st.putToken(t); } if (mustBePre) throw new ParseException("Predecessors must be " + "terminated with \'/\' and not with \':\'", st.getTokenIndex()); if (currentseq != null) { if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } seqno = currentseq; currentseq = null; mayDeleteExpr = true; } } else if ("/".equals(token)) { if (st.hasMoreTokens()) { String t = st.nextToken(); if ("/".equals(t)) { st.putToken("//"); continue; } st.putToken(t); } if (mustBeSeq) { throw new ParseException("The sequence number must be " + "terminated with \':\' and not with \'/\'", st.getTokenIndex()); } mustBePre = false; mustBeSeq = true; if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { predecessors.add(currentseq); currentseq = new Vector(); currentseq.add(null); currentseq.add(null); } hasPredecessors = true; } else if ("//".equals(token)) { if (mustBePre) throw new ParseException("Predecessors cannot be " + "parallellized", st.getTokenIndex()); mustBeSeq = true; if (currentseq != null) parallell = true; } else if (",".equals(token)) { if (currentseq != null) { if (mustBeSeq) throw new ParseException("Messages cannot have many " + "sequence numbers", st.getTokenIndex()); mustBePre = true; if (currentseq.size() > 2 && currentseq.get(currentseq.size() - 2) == null && currentseq.get(currentseq.size() - 1) == null) { currentseq.remove(currentseq.size() - 1); currentseq.remove(currentseq.size() - 1); } if (currentseq.get(currentseq.size() - 2) != null || currentseq.get(currentseq.size() - 1) != null) { predecessors.add(currentseq); currentseq = new Vector(); currentseq.add(null); currentseq.add(null); } hasPredecessors = true; } else { if (varname == null && fname != null) { varname = fname + token; fname = null; } else if (varname != null && fname == null) { varname += token; } else { throw new ParseException("Unexpected character (,)", st.getTokenIndex()); } } } else if ("=".equals(token) || ":=".equals(token)) { if (currentseq == null) { if (varname == null) { varname = fname; fname = ""; } else { fname = ""; } } } else if (currentseq == null) { if (paramExpr == null && token.charAt(0) == '(') { if (token.charAt(token.length() - 1) != ')') throw new ParseException("Malformed parameters", st.getTokenIndex()); if (fname == null || "".equals(fname)) throw new ParseException("Must be a function name " + "before the parameters", st.getTokenIndex()); if (varname == null) varname = ""; paramExpr = token.substring(1, token.length() - 1); } else if (varname != null && fname == null) { varname += token; } else if (fname == null || fname.length() == 0) { fname = token; } else { throw new ParseException("Unexpected token (" + token + ")", st.getTokenIndex()); } } else { boolean hasVal = currentseq.get(currentseq.size() - 2) != null; boolean hasOrd = currentseq.get(currentseq.size() - 1) != null; boolean assigned = false; int bp = findMsgOrderBreak(token); if (!hasVal && !assigned && bp == token.length()) { try { currentseq.set(currentseq.size() - 2, new Integer(token)); assigned = true; } catch (NumberFormatException nfe) { } } if (!hasOrd && !assigned && bp == 0) { try { currentseq.set(currentseq.size() - 1, new Integer(parseMsgOrder(token))); assigned = true; } catch (NumberFormatException nfe) { } } if (!hasVal && !hasOrd && !assigned && bp > 0 && bp < token.length()) { Integer nbr, ord; try { nbr = new Integer(token.substring(0, bp)); ord = new Integer(parseMsgOrder(token.substring(bp))); currentseq.set(currentseq.size() - 2, nbr); currentseq.set(currentseq.size() - 1, ord); assigned = true; } catch (NumberFormatException nfe) { } } if (!assigned) { throw new ParseException("Unexpected token (" + token + ")", st.getTokenIndex()); } } } } catch (NoSuchElementException nsee) { throw new ParseException("Unexpected end of message", s.length()); } catch (ParseException pre) { _cat.error("parseexception" , pre); throw pre; } if (paramExpr != null) { MyTokenizer st = new MyTokenizer(paramExpr, "\\,", _parameterCustomSep); args = new Vector(); while (st.hasMoreTokens()) { token = st.nextToken(); if (",".equals(token)) { if (args.size() == 0) args.add(null); args.add(null); } else { if (args.size() == 0) { if (token.trim().length() == 0) continue; args.add(null); } String arg = (String) args.get(args.size() - 1); if (arg != null) arg = arg + token; else arg = token; args.set(args.size() - 1, arg); } } } else if (mayDeleteExpr) { args = new Vector(); } if (_cat.isDebugEnabled()) { StringBuffer buf = new StringBuffer(); buf.append("ParseMessage: " + s + "\n"); buf.append("Message: "); for (i = 0; seqno != null && i + 1 < seqno.size(); i += 2) { if (i > 0) buf.append(", "); buf.append(seqno.get(i) + " (" + seqno.get(i + 1) + ")"); } buf.append("\n"); buf.append("predecessors: " + predecessors.size() + "\n"); for (i = 0; i < predecessors.size(); i++) { int j; Vector v = (Vector) predecessors.get(i); buf.append(" Predecessor: "); for (j = 0; v != null && j + 1 < v.size(); j += 2) { if (j > 0) buf.append(", "); buf.append(v.get(j) + " (" + v.get(j + 1) + ")"); } } buf.append("guard: " + guard + " it: " + iterative + " pl: " + parallell + "\n"); buf.append(varname + " := " + fname + " ( " + paramExpr + " )" + "\n"); _cat.debug(buf); } if (mes.getAction() == null) { MCallAction a = UmlFactory.getFactory().getCommonBehavior() .createCallAction(); mes.getInteraction().getContext().addOwnedElement(a); mes.setAction(a); } if (guard != null) { guard = "[" + guard.trim() + "]"; if (iterative) { if (parallell) guard = "*//" + guard; else guard = "*" + guard; } MIterationExpression expr = UmlFactory.getFactory().getDataTypes() .createIterationExpression( Notation.getDefaultNotation().toString(), guard); mes.getAction().setRecurrence(expr); } if (fname == null) { if (!mayDeleteExpr && mes.getAction().getScript() != null) { String body = mes.getAction().getScript().getBody(); int idx = body.indexOf(":="); if (idx >= 0) idx++; else idx = body.indexOf("="); if (idx >= 0) fname = body.substring(idx + 1); else fname = body; } else fname = ""; } if (varname == null) { if (!mayDeleteExpr && mes.getAction().getScript() != null) { String body = mes.getAction().getScript().getBody(); int idx = body.indexOf(":="); if (idx < 0) idx = body.indexOf("="); if (idx >= 0) varname = body.substring(0, idx); else varname = ""; } else varname = ""; } if (fname != null) { String expr = fname.trim(); if (varname != null && varname.length() > 0) expr = varname.trim() + " := " + expr; if (mes.getAction().getScript() == null || !expr.equals(mes.getAction().getScript().getBody())) { MActionExpression e = UmlFactory.getFactory().getDataTypes() .createActionExpression( Notation.getDefaultNotation().toString(), expr.trim()); mes.getAction().setScript(e); refindOperation = true; } } if (args != null) { Collection c = mes.getAction().getActualArguments(); Iterator it = c.iterator(); int pos; for (i = 0; i < args.size(); i++) { MArgument arg = (it.hasNext() ? (MArgument) it.next() : null); if (arg == null) { arg = UmlFactory.getFactory().getCommonBehavior() .createArgument(); mes.getAction().addActualArgument(arg); refindOperation = true; } if (arg.getValue() == null || !args.get(i).equals(arg.getValue().getBody())) { String value = (args.get(i) != null ? (String) args.get(i) : ""); MExpression e = UmlFactory.getFactory().getDataTypes() .createExpression( Notation.getDefaultNotation().toString(), value.trim()); arg.setValue(e); } } while (it.hasNext()) { mes.getAction().removeActualArgument((MArgument) it.next()); refindOperation = true; } } if (seqno != null) { MMessage root; // Find the preceding message, if any, on either end of the // association. String pname = ""; String mname = ""; String gname = GeneratorDisplay.getInstance() .generateMessageNumber(mes); boolean swapRoles = false; int majval = (seqno.get(seqno.size() - 2) != null ? Math.max(((Integer) seqno.get(seqno.size() - 2)).intValue() - 1, 0) : 0); int minval = (seqno.get(seqno.size() - 1) != null ? Math.max(((Integer) seqno.get(seqno.size() - 1)).intValue(), 0) : 0); for (i = 0; i + 1 < seqno.size(); i += 2) { int bv = (seqno.get(i) != null ? Math.max(((Integer) seqno.get(i)).intValue(), 1) : 1); int sv = (seqno.get(i + 1) != null ? Math.max(((Integer) seqno.get(i + 1)).intValue(), 0) : 0); if (i > 0) mname += "."; mname += Integer.toString(bv) + (char) ('a' + sv); if (i + 3 < seqno.size()) { if (i > 0) pname += "."; pname += Integer.toString(bv) + (char) ('a' + sv); } } root = null; if (pname.length() > 0) { root = findMsg(mes.getSender(), pname); if (root == null) { root = findMsg(mes.getReceiver(), pname); if (root != null) { swapRoles = true; } } } else if (!hasMsgWithActivator(mes.getSender(), null) && hasMsgWithActivator(mes.getReceiver(), null)) swapRoles = true; if (compareMsgNumbers(mname, gname)) { ; // Do nothing } else if (isMsgNumberStartOf(gname, mname)) { throw new ParseException("Cannot move a message into the " + "subtree rooted at self", 0); } else if (mes.getPredecessors().size() > 1 && mes.getMessages3().size() > 1) { throw new ParseException("Cannot move a message which is " + "both start and end of several threads", 0); } else if (root == null && pname.length() > 0) { throw new ParseException("Cannot find the activator for the " + "message", 0); } else if (swapRoles && mes.getMessages4().size() > 0 && mes.getSender() != mes.getReceiver()) { throw new ParseException("Cannot reverse the direction of a " + "message that is an activator", 0); } else { // Disconnect the message from the call graph Collection c = mes.getPredecessors(); Collection c2 = mes.getMessages3(); Iterator it; it = c2.iterator(); while (it.hasNext()) { mes.removeMessage3((MMessage) it.next()); } it = c.iterator(); while (it.hasNext()) { Iterator it2 = c2.iterator(); MMessage pre = (MMessage) it.next(); mes.removePredecessor(pre); while (it2.hasNext()) { ((MMessage) it2.next()).addPredecessor(pre); } } // Connect the message at a new spot mes.setActivator(root); if (swapRoles) { MClassifierRole r = mes.getSender(); mes.setSender(mes.getReceiver()); mes.setReceiver(r); } if (root == null) { c = filterWithActivator(mes.getSender().getMessages2(), null); } else { c = root.getMessages4(); } c2 = findCandidateRoots(c, root, mes); it = c2.iterator(); // If c2 is empty, then we're done // (or there is a cycle in the message graph, which would be bad) // If c2 has more than one element, then the model is crappy, // but we'll just use one of them anyway if (majval <= 0) { while (it.hasNext()) mes.addMessage3((MMessage) it.next()); } else if (it.hasNext()) { MMessage pre = walk((MMessage) it.next(), majval - 1, false); MMessage post = successor(pre, minval); if (post != null) { post.removePredecessor(pre); post.addPredecessor(mes); } insertSuccessor(pre, mes, minval); } refindOperation = true; } } if (fname != null && refindOperation) { MClassifierRole role = mes.getReceiver(); Vector ops = getOperation(role.getBases(), fname.trim(), mes.getAction().getActualArguments().size()); // TODO: Should someone choose one, if there are more // than one? if (mes.getAction() instanceof MCallAction) { MCallAction a = (MCallAction) mes.getAction(); if (ops.size() > 0) a.setOperation((MOperation) ops.get(0)); else a.setOperation(null); } } // TODO: Predecessors is not implemented, because it // causes some problems that I've not found an easy way to handle yet, // d00mst. The specific problem is that the notation currently is // ambiguous on second message after a thread split. // Why not implement it anyway? d00mst if (hasPredecessors) { Collection roots = findCandidateRoots(mes.getInteraction() .getMessages(), null, null); Vector pre = new Vector(); Iterator it; predfor: for (i = 0; i < predecessors.size(); i++) { it = roots.iterator(); while (it.hasNext()) { MMessage msg = walkTree((MMessage) it.next(), (Vector) predecessors.get(i)); if (msg != null && msg != mes) { if (isBadPreMsg(mes, msg)) { throw new ParseException("One predecessor cannot be " + "a predecessor to this message", 0); } pre.add(msg); continue predfor; } } throw new ParseException("Could not find predecessor", 0); } GeneratorDisplay.MsgPtr ptr = GeneratorDisplay.getInstance().new MsgPtr(); GeneratorDisplay.getInstance().recCountPredecessors(mes, ptr); if (ptr.message != null && !pre.contains(ptr.message)) pre.add(ptr.message); mes.setPredecessors(pre); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/180aae2a6e4359d416ad1610ef18fe4836df91b8/ParserDisplay.java/buggy/src_new/org/argouml/uml/generator/ParserDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1079, 12, 49, 1079, 15216, 16, 514, 272, 13, 1216, 10616, 288, 202, 780, 5299, 273, 446, 31, 202, 780, 11026, 273, 446, 31, 202, 780, 579, 4742, 273, 446, 31, 202, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1079, 12, 49, 1079, 15216, 16, 514, 272, 13, 1216, 10616, 288, 202, 780, 5299, 273, 446, 31, 202, 780, 11026, 273, 446, 31, 202, 780, 579, 4742, 273, 446, 31, 202, 78...
return width;
return max;
int calculateWidth (int[] ids, int index, GC gc, int width) { if (ids == null) return width; for (int i=0; i<ids.length; i++) { TreeItem item = parent._getItem (ids [i], false); if (item != null) { width = Math.max (width, item.calculateWidth (index, gc)); if (item.getExpanded ()) { width = Math.max (width, calculateWidth (item.childIds, index, gc, width)); } } } return width;}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/9167c1dc4954b55dce10ed59193759bf15f0af32/TreeColumn.java/clean/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TreeColumn.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 509, 4604, 2384, 261, 474, 8526, 3258, 16, 509, 770, 16, 15085, 8859, 16, 509, 1835, 13, 288, 202, 430, 261, 2232, 422, 446, 13, 327, 1835, 31, 202, 1884, 261, 474, 277, 33, 20, 31, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 509, 4604, 2384, 261, 474, 8526, 3258, 16, 509, 770, 16, 15085, 8859, 16, 509, 1835, 13, 288, 202, 430, 261, 2232, 422, 446, 13, 327, 1835, 31, 202, 1884, 261, 474, 277, 33, 20, 31, 277, ...
if (selection != null)
if (selection != null) {
protected void handleLinkTargetBrowseButtonPressed() { String linkTargetName = linkTargetField.getText(); File file = null; String selection = null; if ("".equals(linkTargetName) == false) { //$NON-NLS-1$ file = new File(linkTargetName); if (file.exists() == false) file = null; } if (type == IResource.FILE) { FileDialog dialog = new FileDialog(linkTargetField.getShell()); dialog.setText(NewWizardMessages.getString("CreateLinkedResourceGroup.open")); //$NON-NLS-1$ if (file != null) { if (file.isFile()) dialog.setFileName(linkTargetName); else dialog.setFilterPath(linkTargetName); } selection = dialog.open(); } else { DirectoryDialog dialog = new DirectoryDialog(linkTargetField.getShell()); dialog.setText(NewWizardMessages.getString("CreateLinkedResourceGroup.open")); //$NON-NLS-1$ if (file != null) { if (file.isFile()) linkTargetName = file.getParent(); if (linkTargetName != null) dialog.setFilterPath(linkTargetName); } dialog.setMessage(WorkbenchMessages.getString("CreateLinkedResourceGroup.targetSelectionLabel")); //$NON-NLS-1$ selection = dialog.open(); } if (selection != null) linkTargetField.setText(selection); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/aed8d9ac9176fa56eb11aaf998fd3e3abbce630b/LinkToFileGroup.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/dialogfields/LinkToFileGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 2098, 2326, 27304, 3616, 24624, 1435, 288, 202, 202, 780, 1692, 2326, 461, 273, 1692, 2326, 974, 18, 588, 1528, 5621, 202, 202, 812, 585, 273, 446, 31, 202, 202, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 2098, 2326, 27304, 3616, 24624, 1435, 288, 202, 202, 780, 1692, 2326, 461, 273, 1692, 2326, 974, 18, 588, 1528, 5621, 202, 202, 812, 585, 273, 446, 31, 202, 202, 7...
"; however, the table for received messages from " + sender + " is null. We probably " + "haven't received the first message from " + sender + ". Discarding message: " + msg.toString() + ", headers (excluding UnicastHeader): " + msg.getHeaders()); return;
"; however, the table for received messages from " + sender + " is null. We probably " + "haven't received the first message from " + sender + ". Discarding message: " + msg.toString() + ", headers (excluding UnicastHeader): " + msg.getHeaders());
private void handleDataReceived(Object sender, long seqno, boolean first, Message msg) { Entry entry; Message m; if(trace) log.trace(new StringBuffer("[").append(local_addr).append("] <-- DATA(").append(sender). append(": #").append(seqno).append(", first=").append(first)); synchronized(connections) { entry=(Entry)connections.get(sender); if(entry == null) { entry=new Entry(); connections.put(sender, entry); } } synchronized(entry) { if(entry.received_msgs == null) { if(first) entry.received_msgs=new AckReceiverWindow(seqno); else { if(operational) { if(warn) log.warn(sender + "#" + seqno + " is not tagged as the first message sent by " + sender + "; however, the table for received messages from " + sender + " is null. We probably " + "haven't received the first message from " + sender + ". Discarding message: " + msg.toString() + ", headers (excluding UnicastHeader): " + msg.getHeaders()); return; } } } } if(entry.received_msgs != null) { entry.received_msgs.add(seqno, msg); // Try to remove (from the AckReceiverWindow) as many messages as possible as pass them up while((m=entry.received_msgs.remove()) != null) passUp(new Event(Event.MSG, m)); } }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/1295698800c791015ec075b86e2c77d7deef0b52/UNICAST.java/buggy/src/org/jgroups/protocols/UNICAST.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 751, 8872, 12, 921, 5793, 16, 1525, 30734, 16, 1250, 1122, 16, 2350, 1234, 13, 288, 3639, 3841, 565, 1241, 31, 3639, 2350, 225, 312, 31, 3639, 309, 12, 5129, 13, 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, 3238, 918, 1640, 751, 8872, 12, 921, 5793, 16, 1525, 30734, 16, 1250, 1122, 16, 2350, 1234, 13, 288, 3639, 3841, 565, 1241, 31, 3639, 2350, 225, 312, 31, 3639, 309, 12, 5129, 13, 5411, ...
System.out.println("++ Error starting player ");
System.out.println("Error starting player.");
public void onStartBinding(PlugletStreamInfo streamInfo) { if(!jmp.playFile(streamInfo.getURL())) { System.out.println("++ Error starting player "); return; } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/701adb53ebc028dc703c1074d472d19dec2ab46e/JMPlayer.java/clean/java/plugins/examples/MediaPlayer/JMPlayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 1685, 5250, 12, 1749, 637, 1810, 1228, 966, 1407, 966, 13, 288, 202, 430, 12, 5, 21894, 18, 1601, 812, 12, 3256, 966, 18, 588, 1785, 1435, 3719, 288, 377, 202, 565, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 1685, 5250, 12, 1749, 637, 1810, 1228, 966, 1407, 966, 13, 288, 202, 430, 12, 5, 21894, 18, 1601, 812, 12, 3256, 966, 18, 588, 1785, 1435, 3719, 288, 377, 202, 565, 23...
g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); descent = paintRecursive(g, indentation + rightChildIndent,
g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); } descent = paintRecursive(g, indent,
private int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; if (mod.isLeaf(curr)) { paintLeaf(g, indentation, descent, tree, curr); descent += getRowHeight(); } else { if (depth > 0 || tree.isRootVisible()) { paintNonLeaf(g, indentation, descent, tree, curr); descent += getRowHeight(); y0 += halfHeight; } int max = mod.getChildCount(curr); if (tree.isExpanded(new TreePath(((DefaultMutableTreeNode) curr) .getPath()))) for (int i = 0; i < max; ++i) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); descent = paintRecursive(g, indentation + rightChildIndent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); } } if (tree.isExpanded(new TreePath(((DefaultMutableTreeNode) curr) .getPath()))) if (y0 != heightOfLine) { g.setColor(getHashColor()); g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, heightOfLine); } return descent; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 12574, 10483, 12, 17558, 314, 16, 509, 12018, 16, 509, 3044, 319, 16, 1082, 202, 474, 1151, 1854, 16, 509, 3598, 16, 804, 2471, 2151, 16, 4902, 1488, 681, 16, 1033, 4306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 12574, 10483, 12, 17558, 314, 16, 509, 12018, 16, 509, 3044, 319, 16, 1082, 202, 474, 1151, 1854, 16, 509, 3598, 16, 804, 2471, 2151, 16, 4902, 1488, 681, 16, 1033, 4306...
case java.sql.Connection.TRANSACTION_SERIALIZABLE: sb.append(" SERIALIZABLE"); break;
case java.sql.Connection.TRANSACTION_SERIALIZABLE: sb.append(" SERIALIZABLE"); break;
protected String getIsolationLevelSQL() throws SQLException { //7.1 and higher servers have a default specified so //no additional SQL is required to set the isolation level if (haveMinimumServerVersion("7.1")) { return ""; } StringBuffer sb = new StringBuffer("SET TRANSACTION ISOLATION LEVEL"); switch (isolationLevel) { case java.sql.Connection.TRANSACTION_READ_COMMITTED: sb.append(" READ COMMITTED"); break; case java.sql.Connection.TRANSACTION_SERIALIZABLE: sb.append(" SERIALIZABLE"); break; default: throw new PSQLException("postgresql.con.isolevel", new Integer(isolationLevel)); } return sb.toString(); }
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/e25c93c7eb4a9a1a50b771cc33448b9d3519f403/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 14279, 12255, 2355, 3997, 1435, 1216, 6483, 202, 95, 202, 202, 759, 27, 18, 21, 471, 10478, 7084, 1240, 279, 805, 1269, 1427, 202, 202, 759, 2135, 3312, 3063, 353, 1931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 14279, 12255, 2355, 3997, 1435, 1216, 6483, 202, 95, 202, 202, 759, 27, 18, 21, 471, 10478, 7084, 1240, 279, 805, 1269, 1427, 202, 202, 759, 2135, 3312, 3063, 353, 1931, ...
PooledExecutor requestProcessors = new PooledExecutor(new BoundedBuffer(NIOreceiver.getProcessorQueueSize()), NIOreceiver.getProcessorMaxThreads());
PooledExecutor requestProcessors = new PooledExecutor(new BoundedBuffer(getProcessorQueueSize()), getProcessorMaxThreads());
protected void init() throws Exception { TCP_NIO NIOreceiver = (TCP_NIO)receiver; // use directExector if max thread pool size is less than or equal to zero. if(NIOreceiver.getProcessorMaxThreads() <= 0) { m_requestProcessors = new DirectExecutor(); } else { // Create worker thread pool for processing incoming buffers PooledExecutor requestProcessors = new PooledExecutor(new BoundedBuffer(NIOreceiver.getProcessorQueueSize()), NIOreceiver.getProcessorMaxThreads()); requestProcessors.setThreadFactory(new ThreadFactory() { public Thread newThread(Runnable runnable) { return new Thread(Util.getGlobalThreadGroup(), runnable); } }); requestProcessors.setMinimumPoolSize(NIOreceiver.getProcessorMinThreads()); requestProcessors.setKeepAliveTime(NIOreceiver.getProcessorKeepAliveTime()); requestProcessors.waitWhenBlocked(); requestProcessors.createThreads(NIOreceiver.getProcessorThreads()); m_requestProcessors = requestProcessors; } m_writeHandlers = WriteHandler.create(NIOreceiver.getWriterThreads()); m_readHandlers = ReadHandler.create(NIOreceiver.getReaderThreads(), this); }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/b81ff70ca75ceafe0dd7bbdfd3a7abff710c0fea/ConnectionTableNIO.java/buggy/src/org/jgroups/blocks/ConnectionTableNIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 1208, 1435, 1377, 1216, 1185, 282, 288, 1377, 9911, 67, 50, 4294, 423, 4294, 24454, 273, 261, 13891, 67, 50, 4294, 13, 24454, 31, 1377, 368, 999, 2657, 424, 1229, 309, 943, 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, 565, 4750, 918, 1208, 1435, 1377, 1216, 1185, 282, 288, 1377, 9911, 67, 50, 4294, 423, 4294, 24454, 273, 261, 13891, 67, 50, 4294, 13, 24454, 31, 1377, 368, 999, 2657, 424, 1229, 309, 943, 2...
System.out.println( "BOO: Entry "
logger.error("BOO: Entry "
public void startElement( String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { //System.out.println("<"+qName); // open a new namespace tagSpace.addLast(qName); // ist it an entry tag? if (qName.equals(entryTag)) { // is it inside a list tag? if ((listTag.length() > 0) && (!tagSpace.contains(listTag))) { System.out.println( "BOO: Entry " + entryTag + " not inside list " + listTag); throw new SAXParseException( "Entry " + entryTag + " not inside list " + listTag, null); } // get the attributes String key = atts.getValue(keyAtt); String val = atts.getValue(valueAtt); if ((key == null) || (val == null)) { System.out.println( "BOO: Entry " + entryTag + " does not have Attributes " + keyAtt + ", " + valueAtt); throw new SAXParseException( "Entry " + entryTag + " does not have Attributes " + keyAtt + ", " + valueAtt, null); } // add the values //System.out.println("DATA: "+key+" = "+val); listData.put(key, val); } }
53488 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53488/a15bccbb1f38458138bc2da842bfc1f95800141c/XMLListLoader.java/buggy/servlet/src/digilib/io/XMLListLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 13591, 12, 1082, 202, 780, 19421, 16, 1082, 202, 780, 11927, 16, 1082, 202, 780, 22914, 16, 1082, 202, 2498, 15687, 13, 1082, 202, 15069, 14366, 288, 1082, 202, 759, 3163,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 13591, 12, 1082, 202, 780, 19421, 16, 1082, 202, 780, 11927, 16, 1082, 202, 780, 22914, 16, 1082, 202, 2498, 15687, 13, 1082, 202, 15069, 14366, 288, 1082, 202, 759, 3163,...
return "AUTOGEN_BOOKMARK_" + random.nextLong( );
String randLong = "" + random.nextLong(); randLong = randLong.replaceAll("-", ""); return "AUTOGENBOOKMARK_" + randLong;
protected String generateUniqueID( ) { if( random == null ) { random = new Random( ); } return "AUTOGEN_BOOKMARK_" + random.nextLong( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/74754c20d43b56bf9e930c556ab5d06c61611daf/HTMLReportEmitter.java/buggy/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/HTMLReportEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 2103, 31118, 12, 262, 202, 95, 202, 202, 430, 12, 2744, 422, 446, 262, 202, 202, 95, 1082, 202, 9188, 273, 394, 8072, 12, 11272, 202, 202, 97, 202, 202, 2463, 315, 189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 2103, 31118, 12, 262, 202, 95, 202, 202, 430, 12, 2744, 422, 446, 262, 202, 202, 95, 1082, 202, 9188, 273, 394, 8072, 12, 11272, 202, 202, 97, 202, 202, 2463, 315, 189...
return null;
public String selectRunningSender() { try { String runningChanId = ControlMain.getBoxAccess().getChanIdOfRunningSender(); for (int i=0; i<getBouquetList().size(); i++) { //Schleife ueber die Bouquets BOBouquet bouquet = (BOBouquet)this.getBouquetList().get(i); bouquet.readSender(); for (int i2=0; i2<bouquet.getSender().size(); i2++) { //Schleife ueber die Sender im Bouquet BOSender sender = (BOSender)bouquet.getSender().get(i2); if (sender.getChanId().equals(runningChanId)) { this.setSelectedBouquet(bouquet); this.getMainView().getTabProgramm().getJComboBoxBouquets().setSelectedIndex(i); this.getMainView().getTabProgramm().getJTableChannels().setRowSelectionInterval(i2, i2); this.setSelectedSender(sender); return sender.getChanId(); } } } } catch (IOException e) { this.setSelectedBouquet((BOBouquet)this.getBouquetList().get(0)); this.getMainView().getTabProgramm().getJComboBoxBouquets().setSelectedIndex(0); } return null; }
13062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13062/0922783fff704d6641de4ba0d7b8109160d88439/ControlProgramTab.java/clean/jtg/control/ControlProgramTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2027, 7051, 12021, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 3549, 6255, 548, 273, 8888, 6376, 18, 588, 3514, 1862, 7675, 588, 6255, 548, 951, 7051, 12021, 5621, 1082,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2027, 7051, 12021, 1435, 288, 202, 202, 698, 288, 1082, 202, 780, 3549, 6255, 548, 273, 8888, 6376, 18, 588, 3514, 1862, 7675, 588, 6255, 548, 951, 7051, 12021, 5621, 1082,...
return (String[]) mexRefs.toArray(new String[]);
return (String[]) mexRefs.toArray(new String[0]);
public String[] releaseAll() { if (__log.isTraceEnabled()) __log.trace(ObjectPrinter.stringifyMethodEnter("releaseAll", null) ); ArrayList<String> mexRefs = new ArrayList<String>(); for (Entry entry : _byChannel.values()) { if (entry.mexRef!=null) mexRefs.add(entry.mexRef); } _byChannel.values().clear(); _byRid.values().clear(); return (String[]) mexRefs.toArray(new String[]); }
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/25a56391a1eeb67b06e7fd6596788171e06d5227/OutstandingRequestManager.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/OutstandingRequestManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8526, 3992, 1595, 1435, 288, 565, 309, 261, 972, 1330, 18, 291, 3448, 1526, 10756, 1377, 1001, 1330, 18, 5129, 12, 921, 12149, 18, 25650, 1305, 10237, 2932, 9340, 1595, 3113, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8526, 3992, 1595, 1435, 288, 565, 309, 261, 972, 1330, 18, 291, 3448, 1526, 10756, 1377, 1001, 1330, 18, 5129, 12, 921, 12149, 18, 25650, 1305, 10237, 2932, 9340, 1595, 3113, 4...
NumberFormat nf = NumberFormat.getNumberInstance( Locale.getDefault( ) );
NumberFormat nf = NumberFormat.getNumberInstance( );
private DataElement getTypedDataElement( String strDataElement ) { if ( strDataElement.trim( ).length( ) == 0 ) { return NumberDataElementImpl.create( 0.0 ); } NumberFormat nf = NumberFormat.getNumberInstance( Locale.getDefault( ) ); try { Number numberElement = nf.parse( strDataElement ); return NumberDataElementImpl.create( numberElement.doubleValue( ) ); } catch ( ParseException e1 ) { return NumberDataElementImpl.create( 0.0 ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ae8909f5c697c610266e491d0af9a02eed14e2e4/SeriesRegionSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/SeriesRegionSheet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1910, 1046, 3181, 6140, 751, 1046, 12, 514, 609, 751, 1046, 262, 202, 95, 202, 202, 430, 261, 609, 751, 1046, 18, 5290, 12, 262, 18, 2469, 12, 262, 422, 374, 262, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1910, 1046, 3181, 6140, 751, 1046, 12, 514, 609, 751, 1046, 262, 202, 95, 202, 202, 430, 261, 609, 751, 1046, 18, 5290, 12, 262, 18, 2469, 12, 262, 422, 374, 262, 202, 202,...
if (keyStrokeLimit > 0 || keyStrokeLimit == INFINITE) this.maxStrokes = keyStrokeLimit; else throw new IllegalArgumentException();
if (keyStrokeLimit > 0 || keyStrokeLimit == INFINITE) this.maxStrokes = keyStrokeLimit; else throw new IllegalArgumentException();
public void setKeyStrokeLimit(int keyStrokeLimit) { if (keyStrokeLimit > 0 || keyStrokeLimit == INFINITE) this.maxStrokes = keyStrokeLimit; else throw new IllegalArgumentException(); // Make sure we are obeying the new limit. setKeySequence(getKeySequence()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/419e3fe3a65aaac0eb4f974d711712853ff084e6/KeySequenceText.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/keys/KeySequenceText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 16696, 14602, 3039, 12, 474, 498, 14602, 3039, 13, 288, 3639, 309, 261, 856, 14602, 3039, 405, 374, 747, 498, 14602, 3039, 422, 2120, 7263, 5398, 13, 5411, 333, 18, 1896, 510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16696, 14602, 3039, 12, 474, 498, 14602, 3039, 13, 288, 3639, 309, 261, 856, 14602, 3039, 405, 374, 747, 498, 14602, 3039, 422, 2120, 7263, 5398, 13, 5411, 333, 18, 1896, 510, ...
buildNucModels("den_", beautiOptions); buildAAModels("den_", beautiOptions);
buildNucModels("tests/den_", beautiOptions); buildAAModels("tests/den_", beautiOptions);
public BeautiTester() { BeastGenerator beautiOptions = createOptions(); importFromFile("Examples/Primates.nex", beautiOptions); buildNucModels("pri_", beautiOptions); buildAAModels("pri_", beautiOptions); importFromFile("Examples/Dengue4.env.nex", beautiOptions); beautiOptions.fixedSubstitutionRate = false; buildNucModels("den_", beautiOptions); buildAAModels("den_", beautiOptions); }
51824 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51824/1e32ed210b082e8b868c30911b1bb42c7fed4f71/BeautiTester.java/clean/src/dr/app/beauti/BeautiTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4823, 5854, 77, 56, 7654, 1435, 288, 3639, 4823, 689, 3908, 506, 5854, 77, 1320, 273, 752, 1320, 5621, 3639, 1930, 13087, 2932, 23905, 19, 2050, 29678, 18, 82, 338, 3113, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4823, 5854, 77, 56, 7654, 1435, 288, 3639, 4823, 689, 3908, 506, 5854, 77, 1320, 273, 752, 1320, 5621, 3639, 1930, 13087, 2932, 23905, 19, 2050, 29678, 18, 82, 338, 3113, 506, ...
for(int i = 0; i < selection.length; i++) { Selection s = selection[i]; for(int j = s.getStartLine(); j <= s.getEndLine(); j++) { if(s.getEnd() == textArea.getLineStartOffset(j)) break; global.setVariable("line",new Integer(j)); global.setVariable("index",new Integer( j - s.getStartLine())); int start = s.getStart(buffer,j); int end = s.getEnd(buffer,j); String text = buffer.getText(start, end - start); global.setVariable("text",text); Object returnValue = _eval(view,global,command); if(returnValue != null) { buffer.remove(start,end - start); buffer.insert(start, returnValue.toString()); } } } } catch(Throwable e) { Log.log(Log.ERROR,BeanShell.class,e); handleException(view,null,e);
BeanShell.eval(view,global,script);
public static void showEvaluateLinesDialog(View view) { String command = GUIUtilities.input(view,"beanshell-eval-line",null); JEditTextArea textArea = view.getTextArea(); Buffer buffer = view.getBuffer(); if(command == null || command.length() == 0) return; Selection[] selection = textArea.getSelection(); if(selection.length == 0) { view.getToolkit().beep(); return; } if(!command.endsWith(";")) command = command + ";"; if(view.getMacroRecorder() != null) view.getMacroRecorder().record(1,command); try { buffer.beginCompoundEdit(); for(int i = 0; i < selection.length; i++) { Selection s = selection[i]; for(int j = s.getStartLine(); j <= s.getEndLine(); j++) { // if selection ends on the start of a // line, don't filter that line if(s.getEnd() == textArea.getLineStartOffset(j)) break; global.setVariable("line",new Integer(j)); global.setVariable("index",new Integer( j - s.getStartLine())); int start = s.getStart(buffer,j); int end = s.getEnd(buffer,j); String text = buffer.getText(start, end - start); global.setVariable("text",text); Object returnValue = _eval(view,global,command); if(returnValue != null) { buffer.remove(start,end - start); buffer.insert(start, returnValue.toString()); } } } } catch(Throwable e) { Log.log(Log.ERROR,BeanShell.class,e); handleException(view,null,e); } finally { buffer.endCompoundEdit(); } textArea.selectNone(); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/ddcee29fe61f20b094813d0b0cba5541edc2b6db/BeanShell.java/buggy/org/gjt/sp/jedit/BeanShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2405, 15369, 5763, 6353, 12, 1767, 1476, 13, 202, 95, 202, 202, 780, 1296, 273, 10978, 11864, 18, 2630, 12, 1945, 10837, 2196, 634, 76, 1165, 17, 8622, 17, 1369, 311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2405, 15369, 5763, 6353, 12, 1767, 1476, 13, 202, 95, 202, 202, 780, 1296, 273, 10978, 11864, 18, 2630, 12, 1945, 10837, 2196, 634, 76, 1165, 17, 8622, 17, 1369, 311...
RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.getString("Workbench.buildProject")); action.setToolTipText(IDEWorkbenchMessages.getString("Workbench.buildProject.ToolTip")); window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.project.buildProject"); return action;
return new ToggleAutoBuildAction(window);
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.getString("Workbench.buildProject")); //$NON-NLS-1$ action.setToolTipText(IDEWorkbenchMessages.getString("Workbench.buildProject.ToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.project.buildProject"); //$NON-NLS-1$ return action; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/a2463c1c770aa74ce3510a05878c7019c05141a5/IDEActionFactory.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 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, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 2...
"{fn char(88)}," + "{fn concat('X','B')}," + "{fn difference('X','B')}," + "{fn insert('XXX',2,1, 'Y')}," + "{fn lcase('XXX')}," + "{fn length('XXX')}," + "{fn ltrim(' XXX')}," +
"{fn char(88)}," + "{fn concat('X','B')}," + "{fn difference('X','B')}," + "{fn insert('XXX',2,1, 'Y')}," + "{fn lcase('XXX')}," + "{fn length('XXX')}," + "{fn ltrim(' XXX')}," +
public void testStringFn() throws Exception { Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT {fn ascii('X')}, "+ "{fn char(88)}," + "{fn concat('X','B')}," + "{fn difference('X','B')}," + "{fn insert('XXX',2,1, 'Y')}," + "{fn lcase('XXX')}," + "{fn length('XXX')}," + "{fn ltrim(' XXX')}," + "{fn repeat('X', 3)}," + "{fn replace('XXXYYYXXX', 'YYY', 'FRED')}," + "{fn right('XXX', 1)}," + "{fn rtrim('XXX ')}, " + "{fn soundex('FRED')}," + "'X' + {fn space(1)} + 'X'," + "{fn substring('FRED', 2, 1)}," + "{fn ucase('xxx')}," + "{fn locate('fred', 'xxxfredyyy')}," + "{fn left('FRED', 1)}" + ""); assertTrue(rs.next()); assertEquals("ascii", 88, rs.getInt(1)); assertEquals("char", "X", rs.getString(2)); assertEquals("concat", "XB", rs.getString(3)); assertEquals("difference", 3, rs.getInt(4)); assertEquals("insert", "XYX", rs.getString(5)); assertEquals("lcase", "xxx", rs.getString(6)); assertEquals("insert", 3, rs.getInt(7)); assertEquals("ltrim", "XXX", rs.getString(8)); assertEquals("repeat", "XXX", rs.getString(9)); assertEquals("replace", "XXXFREDXXX", rs.getString(10)); assertEquals("right", "X", rs.getString(11)); assertEquals("rtrim", "XXX", rs.getString(12)); assertEquals("soundex", "F630", rs.getString(13)); assertEquals("space", "X X", rs.getString(14)); assertEquals("substring", "R", rs.getString(15)); assertEquals("ucase", "XXX", rs.getString(16)); assertEquals("locate", 4, rs.getInt(17)); assertEquals("left", "F", rs.getString(18)); stmt.close(); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/6eb09e9716dbe0ae6587bba0e12e73120990de6c/SunTest.java/clean/src/test/net/sourceforge/jtds/test/SunTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 780, 5372, 1435, 1216, 1185, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 10842, 3597, 273, 3480, 18, 8837, 1138, 2932, 4803, 288, 4293, 11384, 2668, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 5372, 1435, 1216, 1185, 288, 3639, 8056, 3480, 273, 356, 18, 2640, 3406, 5621, 3639, 10842, 3597, 273, 3480, 18, 8837, 1138, 2932, 4803, 288, 4293, 11384, 2668, 60, ...
log.error(
throw new CruiseControlException(
public Element build(Map buildProperties) { Process p = null; try { p = Runtime.getRuntime().exec(getCommandLineArgs(buildProperties)); } catch (IOException e) { log.error( "Encountered an IO exception while attempting to execute Ant." + " CruiseControl cannot continue.", e); } StreamPumper errorPumper = new StreamPumper(p.getErrorStream()); StreamPumper outPumper = new StreamPumper(p.getInputStream()); new Thread(errorPumper).start(); new Thread(outPumper).start(); try { p.waitFor(); } catch (InterruptedException e) { log.info("Was interrupted while waiting for Ant to finish." + " CruiseControl will continue, assuming that it completed"); } outPumper.flush(); errorPumper.flush(); //read in log file as element, return it File log = new File("log.xml"); Element buildLogElement = getAntLogAsElement(log); log.delete(); //also read in this file, which has all of the ant properties defined. Element propertiesElement = null; try { SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser"); propertiesElement = builder.build("propertylogger.xml").getRootElement(); } catch (Exception ee) { ee.printStackTrace(); } buildLogElement.addContent(propertiesElement.detach()); File propertiesLog = new File("propertylogger.xml"); propertiesLog.delete(); return buildLogElement; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/fabcb3d194cebd666cddc6af1a199441f45e27e2/AntBuilder.java/clean/main/src/net/sourceforge/cruisecontrol/builders/AntBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3010, 1361, 12, 863, 1361, 2297, 13, 288, 3639, 4389, 293, 273, 446, 31, 3639, 775, 288, 5411, 293, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 588, 21391, 2615, 12, 3510, 2297, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 1361, 12, 863, 1361, 2297, 13, 288, 3639, 4389, 293, 273, 446, 31, 3639, 775, 288, 5411, 293, 273, 2509, 18, 588, 5576, 7675, 4177, 12, 588, 21391, 2615, 12, 3510, 2297, 100...
Thread spThread = new Thread( sp );
spThread = new Thread( sp );
public ATreeNode getSchemaTree( String fileName ) { sp = new SaxParser( fileName, this ); Thread spThread = new Thread( sp ); spThread.start( ); while( sp.isAlive() ) { try { synchronized ( this ) { wait( ); } } catch ( InterruptedException e ) { // TODO Auto-generated catch block e.printStackTrace( ); } } return root; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9f497d5ccf0aa90cd5e67436ac892197c583cd13/SchemaPopulationUtil.java/buggy/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 432, 12513, 11088, 2471, 12, 514, 3968, 262, 202, 95, 202, 202, 1752, 273, 394, 348, 651, 2678, 12, 3968, 16, 333, 11272, 202, 202, 3830, 1694, 3830, 273, 394, 4884, 12, 1694,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 432, 12513, 11088, 2471, 12, 514, 3968, 262, 202, 95, 202, 202, 1752, 273, 394, 348, 651, 2678, 12, 3968, 16, 333, 11272, 202, 202, 3830, 1694, 3830, 273, 394, 4884, 12, 1694,...
}
}
public PriorTableModel() { }
49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/13c153cda1ee8d11985a9ce27b4e31dbff48201f/PriorsPanel.java/clean/trunk/src/dr/app/beauti/PriorsPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 30326, 1388, 1488, 1435, 288, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30326, 1388, 1488, 1435, 288, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (!matcher.find())
if (!matcher.matches())
private final String determineEncoding(final InputStream in, final int readAheadSize) throws IOException { // Max one line StringBuffer pushBack = new StringBuffer(readAheadSize); // TODO could be improved if <?xml would be checked as well. int value; while ((value = in.read()) != -1) { pushBack.append((char)value); // Stop at end of the first tag or end of line. If it is HTML // without newlines, stop after X bytes (= characters) if ((value == '>') || (value == '\n') || (value == '\r') || (pushBack.length() >= (readAheadSize - 1))) { break; } } // Does the string match the <?xml .. ?> pattern final Matcher matcher = encodingPattern.matcher(pushBack); if (!matcher.find()) { // No return null; } // Extract the encoding String encoding = matcher.group(3); if ((encoding == null) || (encoding.length() == 0)) { encoding = matcher.group(4); } return encoding; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/99b3af58d0294c89649aa2d4d32cbc42b3da0bf7/XmlPullParser.java/buggy/wicket/src/java/wicket/markup/parser/XmlPullParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 514, 4199, 4705, 12, 6385, 5037, 316, 16, 727, 509, 855, 24250, 1225, 13, 1082, 202, 15069, 1860, 202, 95, 202, 202, 759, 4238, 1245, 980, 202, 202, 780, 1892, 1817, 271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 4199, 4705, 12, 6385, 5037, 316, 16, 727, 509, 855, 24250, 1225, 13, 1082, 202, 15069, 1860, 202, 95, 202, 202, 759, 4238, 1245, 980, 202, 202, 780, 1892, 1817, 271...
return job.getState() != Job.RUNNING || animationProcessor.isProcessorJob(job);
return job.getState() != Job.RUNNING || animationProcessor.isProcessorJob(job);
private IJobProgressManagerListener getProgressListener() { return new IJobProgressManagerListener() { Set jobs = Collections.synchronizedSet(new HashSet()); /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#addJob(org.eclipse.ui.internal.progress.JobInfo) */ public void addJob(JobInfo info) { incrementJobCount(info); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#refreshJobInfo(org.eclipse.ui.internal.progress.JobInfo) */ public void refreshJobInfo(JobInfo info) { int state = info.getJob().getState(); if (state == Job.RUNNING) addJob(info); else removeJob(info); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#refreshAll() */ public void refreshAll() { ProgressManager manager = ProgressManager.getInstance(); jobs.clear(); setAnimated(false); JobInfo[] currentInfos = manager.getJobInfos(showsDebug()); for (int i = 0; i < currentInfos.length; i++) { addJob(currentInfos[i]); } } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#remove(org.eclipse.ui.internal.progress.JobInfo) */ public void removeJob(JobInfo info) { decrementJobCount(info.getJob()); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#showsDebug() */ public boolean showsDebug() { return false; } private void incrementJobCount(JobInfo info) { //Don't count the animate job itself if (isNotTracked(info)) return; if (jobs.isEmpty()) setAnimated(true); jobs.add(info.getJob()); } /* * Decrement the job count for the job */ private void decrementJobCount(Job job) { jobs.remove(job); if (jobs.isEmpty()) setAnimated(false); } /** * If this is one of our jobs or not running then don't bother. */ private boolean isNotTracked(JobInfo info) { //We always track errors Job job = info.getJob(); return job.getState() != Job.RUNNING || animationProcessor.isProcessorJob(job); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#addGroup(org.eclipse.ui.internal.progress.GroupInfo) */ public void addGroup(GroupInfo info) { //Don't care about groups } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#removeGroup(org.eclipse.ui.internal.progress.GroupInfo) */ public void removeGroup(GroupInfo group) { //Don't care about groups } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.IJobProgressManagerListener#refreshGroup(org.eclipse.ui.internal.progress.GroupInfo) */ public void refreshGroup(GroupInfo info) { //Don't care about groups } }; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c0920b0b257a92d516b831620094f80104591915/AnimationManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 2278, 5491, 1318, 2223, 3570, 2329, 2223, 1435, 288, 202, 202, 2463, 394, 467, 2278, 5491, 1318, 2223, 1435, 288, 1082, 202, 694, 6550, 273, 5737, 18, 22043, 694, 12, 2704...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 2278, 5491, 1318, 2223, 3570, 2329, 2223, 1435, 288, 202, 202, 2463, 394, 467, 2278, 5491, 1318, 2223, 1435, 288, 1082, 202, 694, 6550, 273, 5737, 18, 22043, 694, 12, 2704...
}
public void testMoneyHandling0019() throws Exception { java.sql.Statement stmt = null; BigDecimal tmp1 = null; BigDecimal tmp2 = null; int i; BigDecimal money[] = { new BigDecimal("922337203685477.5807"), new BigDecimal("-922337203685477.5807"), new BigDecimal("1.0000"), new BigDecimal("0.0000"), new BigDecimal("-1.0000") }; BigDecimal smallmoney[] = { new BigDecimal("214748.3647"), new BigDecimal("-214748.3648"), new BigDecimal("1.0000"), new BigDecimal("0.0000"), new BigDecimal("-1.0000") }; if (smallmoney.length != money.length) { throw new SQLException("Must have same number of elements in " + "money and smallmoney"); } stmt = con.createStatement(); dropTable("#t0019"); stmt.executeUpdate("create table #t0019 ( " + " i integer primary key, " + " mymoney money not null, " + " mysmallmoney smallmoney not null) " + ""); for(i=0; i<money.length; i++) { stmt.executeUpdate("insert into #t0019 values (" + i + ", " + money[i] + ", " + smallmoney[i] + ") "); } // long l = System.currentTimeMillis(); // while (l + 500 > System.currentTimeMillis()) ; ResultSet rs = stmt.executeQuery("select * from #t0019 order by i"); for(i=0; rs.next(); i++) { BigDecimal m; BigDecimal sm; m = (BigDecimal)rs.getObject("mymoney"); sm = (BigDecimal)rs.getObject("mysmallmoney"); assertEquals(m, money[i]); assertEquals(sm, smallmoney[i]); output.println(m + ", " + sm); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d48066e24a9a4b4edf35b9545de98ba05acafd4d/CSUnitTest.java/clean/src/test/net/sourceforge/jtds/test/CSUnitTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 23091, 14701, 713, 3657, 1435, 1216, 1185, 288, 565, 2252, 18, 4669, 18, 3406, 225, 3480, 282, 273, 446, 31, 565, 8150, 1850, 1853, 21, 282, 273, 446, 31, 565, 8150, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 23091, 14701, 713, 3657, 1435, 1216, 1185, 288, 565, 2252, 18, 4669, 18, 3406, 225, 3480, 282, 273, 446, 31, 565, 8150, 1850, 1853, 21, 282, 273, 446, 31, 565, 8150, 18...
public void addAllClassSpellFiles(final List files)
public void addAllClassSpellFiles(final List<CampaignSourceEntry> files)
public void addAllClassSpellFiles(final List files) { listChar.addAllToListFor(ListKey.FILE_CLASS_SPELL, files); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/Campaign.java/clean/code/src/java/pcgen/core/Campaign.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5428, 797, 3389, 1165, 2697, 12, 6385, 987, 1390, 13, 202, 95, 202, 202, 1098, 2156, 18, 1289, 1595, 25772, 1290, 12, 682, 653, 18, 3776, 67, 5237, 67, 23810, 4503, 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, 225, 202, 482, 918, 5428, 797, 3389, 1165, 2697, 12, 6385, 987, 1390, 13, 202, 95, 202, 202, 1098, 2156, 18, 1289, 1595, 25772, 1290, 12, 682, 653, 18, 3776, 67, 5237, 67, 23810, 4503, 16, ...
openPage(lastPageId); }
openPage(lastPageId); }
public void run() { openPage(lastPageId); }
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/1b18c4111a9bdd6d059092d4cb5971693a9544b2/IntroLaunchBar.java/clean/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 3190, 1964, 12, 2722, 23053, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 3190, 1964, 12, 2722, 23053, 1769, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName);
data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName, uri);
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/"+httprequest.getParam("key")); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = new URI("/welcome/"); } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(' ', '+'); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; }else if(ks.equals("/favicon.ico")){ byte[] buf = new byte[1024]; int len; InputStream strm = getClass().getResourceAsStream("staticfiles/favicon.ico"); if (strm == null) { this.sendErrorPage(ctx, 404, "Path not found", "The specified path does not exist."); return; } ctx.sendReplyHeaders(200, "OK", null, "image/x-icon", strm.available()); while ( (len = strm.read(buf)) > 0) { ctx.writeData(buf, 0, len); } return; } if(ks.startsWith("/")) ks = ks.substring(1); long maxSize = httprequest.getLongParam("max-size", MAX_LENGTH); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { this.writeReply(ctx, 400, "text/html", "Invalid key", "<html><head><title>Invalid key</title></head><body>Expected a freenet key, but got "+HTMLEncoder.encode(ks)+"</body></html>"); return; } try { Logger.minor(this, "Fproxy fetching "+key); FetchResult result = fetch(key, maxSize); // Now, is it safe? Bucket data = result.asBucket(); String typeName = result.getMimeType(); String reqParam = httprequest.getParam("type", null); if(reqParam != null) typeName = reqParam; Logger.minor(this, "Type: "+typeName+" ("+result.getMimeType()+" "+reqParam+")"); long now = System.currentTimeMillis(); String forceString = httprequest.getParam("force"); boolean force = false; boolean forcedownload = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } if(httprequest.isParameterSet("forcedownload")) { // Download to disk, this should be safe, and is set when we do "force download to disk" from a dangerous-content-warning page. typeName = "application/x-msdownload"; forcedownload = true; } try { if(!force && !forcedownload) { data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName); } if (forcedownload) { MultiValueTable headers = new MultiValueTable(); headers.put("Content-Disposition", "attachment"); ctx.sendReplyHeaders(200, "OK", headers, typeName, data.size()); ctx.writeData(data); } else { // Send the data, intact writeReply(ctx, 200, typeName, "OK", data); } } catch (UnsafeContentTypeException e) { StringBuffer buf = new StringBuffer(); ctx.getPageMaker().makeHead(buf, "Potentially Dangerous Content"); buf.append("<h1>"); buf.append(e.getHTMLEncodedTitle()); buf.append("</h1>\n"); buf.append(e.getExplanation()); buf.append("<p>Your options are:</p><ul>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?type=text/plain\">Click here</a> to open the file as plain text (this should not be dangerous, but it may be garbled).</li>\n"); // FIXME: is this safe? See bug #131 buf.append("<li><a href=\"/"+key.toString(false)+"?forcedownload\">Click here</a> to force your browser to download the file to disk.</li>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?force="+getForceValue(key, now)+"\">Click here</a> to open the file as "+HTMLEncoder.encode(typeName)+".</li>\n"); buf.append("<li><a href=\"/\">Click here</a> to go to the FProxy home page.</li>\n"); buf.append("</ul>"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); } } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.mode == FetchException.NOT_ENOUGH_METASTRINGS) { this.writePermanentRedirect(ctx, "Not enough meta-strings", "/" + URLEncoder.encode(key.toString(false)) + "/"); } else if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, "/"+e.newURI.toString()); } else if(e.mode == FetchException.TOO_BIG) { StringBuffer buf = new StringBuffer(); ctx.getPageMaker().makeHead(buf, "Large file"); buf.append("<table border=\"0\">\n"); String fnam = getFilename(e, key, e.getExpectedMimeType()); buf.append("<tr><td><b>Filename</b></td>"); buf.append("<a href=\"/"+URLEncoder.encode(key.toString(false))+"\">"); buf.append(fnam); buf.append("</a>"); buf.append("</td></tr>\n"); boolean finalized = e.finalizedSize(); if(e.expectedSize > 0) { buf.append("<tr><td><b>"); if(!finalized) buf.append("Expected size (may change)"); else buf.append("Size"); buf.append("</b></td><td>"); buf.append(SizeUtil.formatSize(e.expectedSize)); buf.append("</td></tr>\n"); } String mime = e.getExpectedMimeType(); if(mime != null) { buf.append("<tr><td><b>"); if(!finalized) buf.append("Expected MIME type"); else buf.append("MIME type"); buf.append("</b></td><td>"); buf.append(mime); buf.append(" bytes </td></tr>\n"); } // FIXME filename buf.append("</table>\n"); buf.append("<br>This is a large file, so it has not been streamed direct" + " to your browser, because Freenet cannot send any data to the " + "browser until it has the whole file, and this may take some time, " + "and also for resource usage reasons.\n"); buf.append("<br>What would you like to do with it?:<ul>"); buf.append("<li>"); buf.append("<form method=\"get\" action=\"/"+key.toString(false)+"\">"); buf.append("<input type=\"hidden\" name=\"max-size\" value=\""+e.expectedSize+"\">"); buf.append("<input type=\"submit\" name=\"fetch\" value=\"Fetch anyway\">"); buf.append("</form></li>"); buf.append("<li><form method=\"post\" action=\"/queue/\">"); buf.append("<input type=\"hidden\" name=\"key\" value=\""+key.toString(false)+"\">"); buf.append("<input type=\"hidden\" name=\"return-type\" value=\"disk\">"); buf.append("<input type=\"hidden\" name=\"persistence\" value=\"forever\">"); if(mime != null) buf.append("<input type=\"hidden\" name=\"type\" value=\""+URLEncoder.encode(mime)+"\">"); buf.append("<input type=\"submit\" name=\"download\" value=\"Download to disk in background\">"); buf.append("</form></li>"); // FIXME add a queue-a-download option.// buf.append("<li>Save it to disk at </li>"); // FIXME add return-to-referring-page //buf.append("<li>Return to the referring page: "); buf.append("<li>Return to the fproxy home page: <a href=\"/\">here</a>"); buf.append("</ul>"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); // FIXME provide option to queue write to disk. } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", msg, "<html><head><title>"+msg+"</title></head><body>Error: "+HTMLEncoder.encode(msg)+extra+"</body></html>"); } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/fed5a513af06f8d2ce8e1af88eb3fb217ee029e5/FproxyToadlet.java/clean/src/freenet/clients/http/FproxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 1165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 1165...
for (Iterator<EventHandlerInfo> i = _eventHandlers.iterator();i.hasNext();) { EventHandlerInfo ehi = i.next(); if (!ehi.stopRequested && !ehi.terminateRequested) { ehi.cc.stop(); ehi.stopRequested = true;
for (Iterator<EventHandlerInfo> i = _eventHandlers.iterator();i.hasNext();) { EventHandlerInfo ehi = i.next(); if (!ehi.stopRequested && !ehi.terminateRequested) { ehi.cc.stop(); ehi.stopRequested = true; } }
private void stopEventHandlers() { for (Iterator<EventHandlerInfo> i = _eventHandlers.iterator();i.hasNext();) { EventHandlerInfo ehi = i.next(); if (!ehi.stopRequested && !ehi.terminateRequested) { ehi.cc.stop(); ehi.stopRequested = true; } } }
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/5a424b5c30fb33ea6a31f42e354ed700333c104e/SCOPE.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/SCOPE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2132, 1133, 6919, 1435, 288, 1377, 364, 261, 3198, 32, 16402, 966, 34, 277, 273, 389, 2575, 6919, 18, 9838, 5621, 77, 18, 5332, 2134, 5621, 13, 288, 3639, 26012, 966, 425, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2132, 1133, 6919, 1435, 288, 1377, 364, 261, 3198, 32, 16402, 966, 34, 277, 273, 389, 2575, 6919, 18, 9838, 5621, 77, 18, 5332, 2134, 5621, 13, 288, 3639, 26012, 966, 425, 12...
if (isValid()) { openProposalPopup(true); } }
if (isValid()) { openProposalPopup(true); } }
public void run() { if (isValid()) { openProposalPopup(true); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3c8429a60e5e65142c6024e843a14c5deaeb91fd/ContentProposalAdapter.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9944, 202, 482, 918, 1086, 1435, 288, 6862, 1082, 202, 430, 261, 26810, 10756, 288, 6862, 9506, 202, 3190, 14592, 13770, 12, 3767, 1769, 6862, 1082, 202, 97, 25083, 202, 97, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9944, 202, 482, 918, 1086, 1435, 288, 6862, 1082, 202, 430, 261, 26810, 10756, 288, 6862, 9506, 202, 3190, 14592, 13770, 12, 3767, 1769, 6862, 1082, 202, 97, 25083, 202, 97, 2, -100, -100, -10...
NavigatorContentService contentService = viewer.getNavigatorContentService();
INavigatorContentService contentService = viewer.getNavigatorContentService();
public void testNavigatorExtensionEnablement() throws Exception { EditorTestHelper.showView(COMMON_NAVIGATOR_INSTANCE_ID, true); IWorkbenchWindow activeWindow= PlatformUI.getWorkbench().getActiveWorkbenchWindow(); IWorkbenchPage activePage= activeWindow.getActivePage(); IViewPart commonNavigator= activePage.findView(COMMON_NAVIGATOR_INSTANCE_ID); commonNavigator.setFocus(); CommonViewer viewer= (CommonViewer) commonNavigator.getAdapter(CommonViewer.class); NavigatorContentService contentService = viewer.getNavigatorContentService(); NavigatorActivationService.getInstance().activateNavigatorExtension(contentService.getViewerId(), COMMON_NAVIGATOR_INSTANCE_ID, false); viewer.refresh(); TreeItem[] items= viewer.getTree().getItems(); assertTrue("There should be NO items.", items.length == 0); //$NON-NLS-1$ }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/41c8442179322a9023ece61502a54f5e639a097a/OpenTest.java/buggy/tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/OpenTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22817, 3625, 8317, 475, 1435, 1216, 1185, 288, 202, 202, 6946, 4709, 2276, 18, 4500, 1767, 12, 4208, 17667, 67, 50, 5856, 3047, 3575, 67, 13341, 67, 734, 16, 638, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22817, 3625, 8317, 475, 1435, 1216, 1185, 288, 202, 202, 6946, 4709, 2276, 18, 4500, 1767, 12, 4208, 17667, 67, 50, 5856, 3047, 3575, 67, 13341, 67, 734, 16, 638, 1...
void updateUIFromFilter(TasksFilter filter) {
void updateUIFromFilter(TasksFilter tasksFilter) {
void updateUIFromFilter(TasksFilter filter) { setSelectedTypes(filter.types); int on = filter.onResource; anyResourceButton.setSelection(on == TasksFilter.ON_ANY_RESOURCE); anyResourceInSameProjectButton.setSelection(on == TasksFilter.ON_ANY_RESOURCE_OF_SAME_PROJECT); // added by cagatayk@acm.org selectedResourceButton.setSelection(on == TasksFilter.ON_SELECTED_RESOURCE_ONLY); selectedResourceAndChildrenButton.setSelection(on == TasksFilter.ON_SELECTED_RESOURCE_AND_CHILDREN); workingSetGroup.setSelection(on == TasksFilter.ON_WORKING_SET); workingSetGroup.setWorkingSet(filter.workingSet); descriptionGroup.combo.select(filter.descriptionFilterKind); descriptionGroup.text.setText(filter.descriptionFilter); severityGroup.setSelection(filter.filterOnSeverity); severityGroup.setValueMask(filter.severityFilter); priorityGroup.setSelection(filter.filterOnPriority); priorityGroup.setValueMask(filter.priorityFilter); completionGroup.setSelection(filter.filterOnCompletion); completionGroup.setValueMask(filter.completionFilter); markerLimit.setText("" + filter.getMarkerLimit()); //$NON-NLS-1$ filterOnMarkerLimit.setSelection(filter.getFilterOnMarkerLimit()); updateEnabledState(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e365c8c256fc9bd61d9d458bb74ff408ae201fd1/FiltersDialog.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/FiltersDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1089, 5370, 1265, 1586, 12, 6685, 1586, 1034, 13, 288, 9506, 202, 542, 7416, 2016, 12, 2188, 18, 2352, 1769, 1082, 202, 474, 603, 273, 1034, 18, 265, 1420, 31, 202, 202, 2273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1089, 5370, 1265, 1586, 12, 6685, 1586, 1034, 13, 288, 9506, 202, 542, 7416, 2016, 12, 2188, 18, 2352, 1769, 1082, 202, 474, 603, 273, 1034, 18, 265, 1420, 31, 202, 202, 2273...
tmp69_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp69_AST);
if (inputState.guessing==0) { tmp69_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp69_AST); }
public final void modifier() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST modifier_AST = null; switch ( LA(1)) { case LITERAL_private: { AST tmp58_AST = null; tmp58_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp58_AST); match(LITERAL_private); modifier_AST = (AST)currentAST.root; break; } case LITERAL_public: { AST tmp59_AST = null; tmp59_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp59_AST); match(LITERAL_public); modifier_AST = (AST)currentAST.root; break; } case LITERAL_protected: { AST tmp60_AST = null; tmp60_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp60_AST); match(LITERAL_protected); modifier_AST = (AST)currentAST.root; break; } case LITERAL_static: { AST tmp61_AST = null; tmp61_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp61_AST); match(LITERAL_static); modifier_AST = (AST)currentAST.root; break; } case LITERAL_transient: { AST tmp62_AST = null; tmp62_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp62_AST); match(LITERAL_transient); modifier_AST = (AST)currentAST.root; break; } case FINAL: { AST tmp63_AST = null; tmp63_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp63_AST); match(FINAL); modifier_AST = (AST)currentAST.root; break; } case ABSTRACT: { AST tmp64_AST = null; tmp64_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp64_AST); match(ABSTRACT); modifier_AST = (AST)currentAST.root; break; } case LITERAL_native: { AST tmp65_AST = null; tmp65_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp65_AST); match(LITERAL_native); modifier_AST = (AST)currentAST.root; break; } case LITERAL_threadsafe: { AST tmp66_AST = null; tmp66_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp66_AST); match(LITERAL_threadsafe); modifier_AST = (AST)currentAST.root; break; } case LITERAL_synchronized: { AST tmp67_AST = null; tmp67_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp67_AST); match(LITERAL_synchronized); modifier_AST = (AST)currentAST.root; break; } case LITERAL_volatile: { AST tmp68_AST = null; tmp68_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp68_AST); match(LITERAL_volatile); modifier_AST = (AST)currentAST.root; break; } case STRICTFP: { AST tmp69_AST = null; tmp69_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp69_AST); match(STRICTFP); modifier_AST = (AST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = modifier_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, 9606, 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, 9053, 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, 9606, 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, 9053, 9...
screen.getPointFromRowCol(screen.getCurrentRow()-2,
screen.getPointFromRowCol(screen.getCurrentRow() - 2,
public void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow() - 1, screen.getCurrentCol()-1, p); if (last.equals("[markright]")) screen.getPointFromRowCol(screen.getCurrentRow() - 1, screen.getCurrentCol()-2, p); if (last.equals("[markup]")) screen.getPointFromRowCol(screen.getCurrentRow() - 1, screen.getCurrentCol() - 1, p); if (last.equals("[markdown]")) screen.getPointFromRowCol(screen.getCurrentRow()-2, screen.getCurrentCol() - 1, p); MouseEvent me = new MouseEvent(this, MouseEvent.MOUSE_PRESSED, System.currentTimeMillis(), MouseEvent.BUTTON1_MASK, p.x,p.y, 1,false); dispatchEvent(me); } screen.getPointFromRowCol(screen.getCurrentRow() - 1, screen.getCurrentCol() - 1, p); rubberband.getCanvas().translateEnd(p); MouseEvent me = new MouseEvent(this, MouseEvent.MOUSE_DRAGGED, System.currentTimeMillis(), MouseEvent.BUTTON1_MASK, p.x,p.y, 1,false); dispatchEvent(me); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/30f98b37d145e16ed4c5e314b8cf6d272bab1023/Gui5250.java/buggy/tn5250j/src/org/tn5250j/Gui5250.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 741, 653, 3499, 5484, 12, 653, 1133, 12519, 16, 780, 1142, 13, 288, 1377, 4686, 293, 273, 394, 4686, 5621, 1377, 309, 16051, 18271, 744, 12752, 18, 291, 5484, 7416, 10756, 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, 565, 1071, 918, 741, 653, 3499, 5484, 12, 653, 1133, 12519, 16, 780, 1142, 13, 288, 1377, 4686, 293, 273, 394, 4686, 5621, 1377, 309, 16051, 18271, 744, 12752, 18, 291, 5484, 7416, 10756, 288,...
TableColumn parentColumn = parentTable.getColumn(rs.getString("PKCOLUMN_NAME")); foreignKey.addParentColumn(parentColumn);
private void addForeignKey(ResultSet rs, Map tables, DatabaseMetaData meta) throws SQLException { String name = rs.getString("FK_NAME"); if (name == null) return; ForeignKeyConstraint foreignKey = getForeignKey(name); if (foreignKey == null) { foreignKey = new ForeignKeyConstraint(this, rs); foreignKeys.put(foreignKey.getName().toUpperCase(), foreignKey); } TableColumn childColumn = getColumn(rs.getString("FKCOLUMN_NAME")); foreignKey.addChildColumn(childColumn); Table parentTable = (Table)tables.get(rs.getString("PKTABLE_NAME").toUpperCase()); TableColumn parentColumn = parentTable.getColumn(rs.getString("PKCOLUMN_NAME")); foreignKey.addParentColumn(parentColumn); childColumn.addParent(parentColumn, foreignKey); parentColumn.addChild(childColumn, foreignKey); }
49072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49072/aac057c87264b2c4c66e0878dc29513716fda050/Table.java/buggy/src/net/sourceforge/schemaspy/model/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 15420, 12, 13198, 3597, 16, 1635, 4606, 16, 5130, 6998, 2191, 13, 1216, 6483, 288, 3639, 514, 508, 273, 3597, 18, 588, 780, 2932, 13121, 67, 1985, 8863, 3639, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 15420, 12, 13198, 3597, 16, 1635, 4606, 16, 5130, 6998, 2191, 13, 1216, 6483, 288, 3639, 514, 508, 273, 3597, 18, 588, 780, 2932, 13121, 67, 1985, 8863, 3639, 309, 261, ...
if (this.inStream == null) { throw new IOException("reading from an output buffer");
if ( this.inStream == null ) { throw new IOException( "reading from an output buffer" );
public byte[] readRecord() throws IOException { if (this.debug) { System.err.println("ReadRecord: recIdx = " + this.currRecIdx + " blkIdx = " + this.currBlkIdx); } if (this.inStream == null) { throw new IOException("reading from an output buffer"); } if (this.currRecIdx >= this.recsPerBlock) { if (!this.readBlock()) { return null; } } byte[] result = new byte[this.recordSize]; System.arraycopy(this.blockBuffer, (this.currRecIdx * this.recordSize), result, 0, this.recordSize); this.currRecIdx++; return result; }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/TarBuffer.java/buggy/src/main/java/org/codehaus/plexus/archiver/tar/TarBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 855, 2115, 1435, 1216, 1860, 288, 3639, 309, 261, 2211, 18, 4148, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 1994, 2115, 30, 1950, 4223, 273, 315, 397, 333, 18, 170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 855, 2115, 1435, 1216, 1860, 288, 3639, 309, 261, 2211, 18, 4148, 13, 288, 5411, 2332, 18, 370, 18, 8222, 2932, 1994, 2115, 30, 1950, 4223, 273, 315, 397, 333, 18, 170...
abstract public V put(K key, V value);
public abstract V put(K key, V value);
abstract public V put(K key, V value);
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/41f9233159b665323ba7090a30e06a881c4e4a20/Dictionary.java/buggy/modules/luni/src/main/java/java/util/Dictionary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 17801, 1071, 776, 1378, 12, 47, 498, 16, 776, 460, 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, 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, 225, 202, 17801, 1071, 776, 1378, 12, 47, 498, 16, 776, 460, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public void listenForCommands() { if ( StaticEntity.getClient() == this ) outputStream.print( " > " ); String line = null; while ( (line = getNextLine()) != null && (StaticEntity.getClient().permitsContinue() || StaticEntity.getClient() == this) ) { if ( StaticEntity.getClient() == this ) printBlankLine(); StaticEntity.getClient().forceContinue(); executeLine( line ); if ( StaticEntity.getClient() == this ) { printBlankLine(); outputStream.print( " > " ); } else if ( StaticEntity.getClient() == DEFAULT_SHELL && !DEFAULT_SHELL.permitsContinue() ) { outputStream.print( "Continue? [Y/N]" ); mirrorStream.print( "Continue? [Y/N]" ); printBlankLine(); outputStream.print( " > " ); line = getNextLine(); if ( line != null && line.startsWith( "y" ) || line.startsWith( "Y" ) ) DEFAULT_SHELL.forceContinue(); } } if ( line == null || line.trim().length() == 0 ) { try { commandStream.close(); previousLine = null; } catch ( IOException e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. StaticEntity.printStackTrace( e ); } } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/d4fb0f652493fd4419010be75562fc8c2874bdbd/KoLmafiaCLI.java/buggy/src/net/sourceforge/kolmafia/KoLmafiaCLI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6514, 1290, 9127, 1435, 202, 95, 202, 202, 430, 261, 10901, 1943, 18, 588, 1227, 1435, 422, 333, 262, 1082, 202, 2844, 1228, 18, 1188, 12, 315, 405, 315, 11272, 202, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6514, 1290, 9127, 1435, 202, 95, 202, 202, 430, 261, 10901, 1943, 18, 588, 1227, 1435, 422, 333, 262, 1082, 202, 2844, 1228, 18, 1188, 12, 315, 405, 315, 11272, 202, 202,...
String lgtext = String.valueOf( obj );
String lgtext = rtc.externalizedMessage( String.valueOf( obj ) );
public final Size compute( IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc ) throws ChartException { // THREE CASES: // 1. ALL SERIES IN ONE ARRAYLIST // 2. ONE SERIES PER ARRAYLIST // 3. ALL OTHERS final Legend lg = cm.getLegend( ); if ( !lg.isSetOrientation( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.orientation.horzvert", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } if ( !lg.isSetDirection( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.direction.tblr", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation orientation = lg.getOrientation( ); final Direction direction = lg.getDirection( ); final double maxWrappingSize = lg.getWrappingSize( ); Label la = LabelImpl.create( ); la.setCaption( TextImpl.copyInstance( lg.getText( ) ) ); ClientArea ca = lg.getClientArea( ); LineAttributes lia = ca.getOutline( ); double dSeparatorThickness = lia.getThickness( ); double dWidth = 0, dHeight = 0; la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); double dItemHeight = itm.getFullHeight( ); Series se; ArrayList al; double dScale = xs.getDpiResolution( ) / 72d; Insets insCA = ca.getInsets( ).scaledInstance( dScale ); final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); Series seBase; final List legendItems = new ArrayList( ); // Get maximum block width/height available Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); double dAvailableWidth = boFull.getWidth( ) - ins.getLeft( ) - ins.getRight( ) - lgIns.getLeft( ) - lgIns.getRight( ); double dAvailableHeight = boFull.getHeight( ) - ins.getTop( ) - ins.getBottom( ) - lgIns.getTop( ) - lgIns.getBottom( ) - cm.getTitle( ) .getBounds( ) .scaledInstance( dScale ) .getHeight( ); // Calculate if minSlice applicable. boolean bMinSliceDefined = false; String sMinSliceLabel = null; boolean bMinSliceApplied = false; int[] filteredMinSliceEntry = null; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { Map renders = rtc.getSeriesRenderers( ); if ( renders != null && !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( new SeriesDefinition[0] ); DataSetIterator dsiOrtho = null; BaseRenderer br; boolean started = false; ENTRANCE: for ( int i = 0; i < sdOrtho.length; i++ ) { Series[] alRuntimeSeries = (Series[]) sdOrtho[i].getRunTimeSeries( ) .toArray( new Series[0] ); for ( int j = 0; j < alRuntimeSeries.length; j++ ) { try { dsiOrtho = new DataSetIterator( alRuntimeSeries[j].getDataSet( ) ); LegendItemRenderingHints lirh = (LegendItemRenderingHints) renders.get( alRuntimeSeries[j] ); if ( lirh == null ) { filteredMinSliceEntry = null; break ENTRANCE; } br = lirh.getRenderer( ); // ask each render for filtered min slice info int[] fsa = br.getFilteredMinSliceEntry( dsiOrtho ); if ( fsa != null && fsa.length > 0 ) { bMinSliceApplied = true; } if ( !started ) { started = true; filteredMinSliceEntry = fsa; } else { // get duplicate indices for all renderers filteredMinSliceEntry = getDuplicateIndices( fsa, filteredMinSliceEntry ); if ( filteredMinSliceEntry == null || filteredMinSliceEntry.length == 0 ) { filteredMinSliceEntry = null; break ENTRANCE; } } } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } } } // assign a zero-length array for successive convenience if ( filteredMinSliceEntry == null ) { filteredMinSliceEntry = new int[0]; } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( orientation.getValue( ) == Orientation.VERTICAL ) { double dW, dMaxW = 0; double dRealHeight = 0, dExtraWidth = 0, dDeltaHeight; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int pos = -1; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); pos++; // filter the not-used legend. if ( bMinSliceApplied && Arrays.binarySearch( filteredMinSliceEntry, pos ) >= 0 ) { continue; } String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = dFWidth; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( dFWidth, dWidth ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), pos ) ); } // compute the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = dFWidth; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( dFWidth, dWidth ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_MINSLICE_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dsiBase.size( ) ) ); } dWidth += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) { // (VERTICAL => TB) dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dW = bb.getWidth( ); double dFHeight = bb.getHeight( ); double dExtraHeight = 0; String extraText = null; dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dExtraHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dDeltaHeight += dExtraHeight + 2; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dW, dFHeight, la.getCaption( ).getValue( ), dExtraHeight, extraText ) ); } // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dHeight += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dExtraWidth, dHeight - dSeparatorThickness / 2 ), dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, 0, null, 0, null ) ); } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + MAX // ITEM WIDTH + RIGHT INSETS dWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dMaxW + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) { // (VERTICAL => LR) dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dW = bb.getWidth( ); double dFHeight = bb.getHeight( ); double dExtraHeight = 0; String extraText = null; dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dExtraHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dDeltaHeight += itm.getFullHeight( ) + 2; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dW, dFHeight, la.getCaption( ).getValue( ), dExtraHeight, extraText ) ); } dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = 0; // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dExtraWidth += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dExtraWidth - dSeparatorThickness / 2, 0 ), 0, dRealHeight, null, 0, null ) ); } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + // MAX ITEM WIDTH + RIGHT INSETS dWidth += dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction.getName( ) }, Messages.getResourceBundle( xs.getULocale( ) ) ); } } else if ( orientation.getValue( ) == Orientation.HORIZONTAL ) { double dH, dMaxH = 0; double dRealWidth = 0, dExtraHeight = 0, dDeltaWidth; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int pos = -1; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); pos++; // filter the not-used legend. if ( bMinSliceApplied && Arrays.binarySearch( filteredMinSliceEntry, pos ) >= 0 ) { continue; } String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaWidth = insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = dFHeight; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( dFHeight, dHeight ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), pos ) ); } // compute the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaWidth = insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = dFHeight; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( dFHeight, dHeight ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_MINSLICE_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dsiBase.size( ) ) ); } dHeight += dExtraHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dWidth = Math.max( dWidth, dRealWidth ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) { // (HORIZONTAL => TB) dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dWidth = 0; al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dH = bb.getHeight( ); double dFHeight = dH; double dFWidth = bb.getWidth( ); double dEHeight = 0; String extraText = null; dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ) + dHorizontalSpacing; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dEHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dH += dEHeight + 2; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dEHeight, extraText ) ); } dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = 0; // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dHeight += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( 0, dExtraHeight - dSeparatorThickness / 2 ), dRealWidth, 0, null, 0, null ) ); } } dHeight += dExtraHeight; dWidth = Math.max( dRealWidth, dWidth ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) { // (HORIZONTAL => LR) dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dH = bb.getHeight( ); double dFHeight = dH; double dFWidth = bb.getWidth( ); double dEHeight = 0; String extraText = null; dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ) + dHorizontalSpacing; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dEHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dH += dEHeight + 2; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dEHeight, extraText ) ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dWidth += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dWidth - dSeparatorThickness / 2, dExtraHeight ), 0, dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing, null, 0, null ) ); } } dHeight += insCA.getTop( ) + dVerticalSpacing + insCA.getBottom( ) + dMaxH + dExtraHeight; dWidth = Math.max( dRealWidth, dWidth ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction }, Messages.getResourceBundle( xs.getULocale( ) ) ); } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.orientation", //$NON-NLS-1$ new Object[]{ orientation }, Messages.getResourceBundle( xs.getULocale( ) ) ); } // consider legend title size. Label lgTitle = lg.getTitle( ); Size titleSize = null; if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { lgTitle = LabelImpl.copyInstance( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } int iTitlePos = lg.getTitlePosition( ).getValue( ); // swap left/right if ( rtc.isRightToLeft( ) ) { if ( iTitlePos == Position.LEFT ) { iTitlePos = Position.RIGHT; } else if ( iTitlePos == Position.RIGHT ) { iTitlePos = Position.LEFT; } } switch ( iTitlePos ) { case Position.ABOVE : case Position.BELOW : dHeight += bb.getHeight( ); dWidth = Math.max( dWidth, bb.getWidth( ) ); break; case Position.LEFT : case Position.RIGHT : dWidth += bb.getWidth( ); dHeight = Math.max( dHeight, bb.getHeight( ) ); break; } titleSize = SizeImpl.create( bb.getWidth( ), bb.getHeight( ) ); } itm.dispose( ); // DISPOSE RESOURCE AFTER USE if ( rtc != null ) { LegendItemHints[] liha = (LegendItemHints[]) legendItems.toArray( new LegendItemHints[0] ); // update context hints here. LegendLayoutHints lilh = new LegendLayoutHints( SizeImpl.create( dWidth, dHeight ), titleSize, bMinSliceApplied, sMinSliceLabel, liha ); rtc.setLegendLayoutHints( lilh ); } sz = SizeImpl.create( dWidth, dHeight ); return sz; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/09196385bfc9600505b02ff3580e893a3a1b18d3/LegendBuilder.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/LegendBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 6321, 3671, 12, 1599, 291, 1601, 2081, 9280, 16, 14804, 5003, 16, 1082, 202, 6485, 1852, 8526, 24336, 69, 16, 1939, 950, 1042, 436, 5111, 262, 1216, 14804, 503, 202, 95, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6321, 3671, 12, 1599, 291, 1601, 2081, 9280, 16, 14804, 5003, 16, 1082, 202, 6485, 1852, 8526, 24336, 69, 16, 1939, 950, 1042, 436, 5111, 262, 1216, 14804, 503, 202, 95, ...
public void handleElement(Lexer lexer) {
public void handleElement(Lexer lexer, final int state) {
public void handleElement(Lexer lexer) { seenStyle=false; seenScript=false; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/a63526f49b61ea0513bbc54301db43ed306c4182/BaseHtmlLexer.java/clean/source/com/intellij/lexer/BaseHtmlLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 1046, 12, 13356, 8512, 16, 727, 509, 919, 13, 288, 1377, 5881, 2885, 33, 5743, 31, 1377, 5881, 3651, 33, 5743, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1640, 1046, 12, 13356, 8512, 16, 727, 509, 919, 13, 288, 1377, 5881, 2885, 33, 5743, 31, 1377, 5881, 3651, 33, 5743, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100...
if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLADVANCEBLOCK_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal;
public TA_RetCode CDLADVANCEBLOCK(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double[] ShadowShortPeriodTotal = new double[3]; ; double[] ShadowLongPeriodTotal = new double[2]; ; double[] NearPeriodTotal = new double[3]; ; double[] FarPeriodTotal = new double[3]; ; double BodyLongPeriodTotal; int i, outIdx, totIdx, BodyLongTrailingIdx, ShadowShortTrailingIdx, ShadowLongTrailingIdx, NearTrailingIdx, FarTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLADVANCEBLOCK_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } ShadowShortPeriodTotal[2] = 0; ShadowShortPeriodTotal[1] = 0; ShadowShortPeriodTotal[0] = 0; ShadowShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod); ShadowLongPeriodTotal[1] = 0; ShadowLongPeriodTotal[0] = 0; ShadowLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].avgPeriod); NearPeriodTotal[2] = 0; NearPeriodTotal[1] = 0; NearPeriodTotal[0] = 0; NearTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Near.ordinal()].avgPeriod); FarPeriodTotal[2] = 0; FarPeriodTotal[1] = 0; FarPeriodTotal[0] = 0; FarTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Far.ordinal()].avgPeriod); BodyLongPeriodTotal = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); i = ShadowShortTrailingIdx; while (i < startIdx) { ShadowShortPeriodTotal[2] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); ShadowShortPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); ShadowShortPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = ShadowLongTrailingIdx; while (i < startIdx) { ShadowLongPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); ShadowLongPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = NearTrailingIdx; while (i < startIdx) { NearPeriodTotal[2] += ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); NearPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = FarTrailingIdx; while (i < startIdx) { FarPeriodTotal[2] += ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); FarPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = BodyLongTrailingIdx; while (i < startIdx) { BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 2] >= inOpen[i - 2] ? 1 : -1) == 1 && (inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == 1 && (inClose[i] >= inOpen[i] ? 1 : -1) == 1 && inClose[i] > inClose[i - 1] && inClose[i - 1] > inClose[i - 2] && inOpen[i - 1] > inOpen[i - 2] && inOpen[i - 1] <= inClose[i - 2] + ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].avgPeriod) != 0.0 ? NearPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inOpen[i] > inOpen[i - 1] && inOpen[i] <= inClose[i - 1] + ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].avgPeriod) != 0.0 ? NearPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (Math.abs(inClose[i - 2] - inOpen[i - 2])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) < ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) != 0.0 ? ShadowShortPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && ( ((Math.abs(inClose[i - 1] - inOpen[i - 1])) < (Math .abs(inClose[i - 2] - inOpen[i - 2])) - ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].avgPeriod) != 0.0 ? FarPeriodTotal[2] / (this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (Math .abs(inClose[i] - inOpen[i])) < (Math .abs(inClose[i - 1] - inOpen[i - 1])) + ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].avgPeriod) != 0.0 ? NearPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))) || ((Math.abs(inClose[i] - inOpen[i])) < (Math .abs(inClose[i - 1] - inOpen[i - 1])) - ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].avgPeriod) != 0.0 ? FarPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))) || ((Math.abs(inClose[i] - inOpen[i])) < (Math .abs(inClose[i - 1] - inOpen[i - 1])) && (Math .abs(inClose[i - 1] - inOpen[i - 1])) < (Math .abs(inClose[i - 2] - inOpen[i - 2])) && ((inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) != 0.0 ? ShadowShortPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) || (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) != 0.0 ? ShadowShortPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)))) || ((Math.abs(inClose[i] - inOpen[i])) < (Math .abs(inClose[i - 1] - inOpen[i - 1])) && (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) > ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].avgPeriod) != 0.0 ? ShadowLongPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))))) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; for (totIdx = 2; totIdx >= 0; --totIdx) ShadowShortPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowShortTrailingIdx - totIdx] - inOpen[ShadowShortTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowShortTrailingIdx - totIdx] - inLow[ShadowShortTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowShort .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowShortTrailingIdx - totIdx] - (inClose[ShadowShortTrailingIdx - totIdx] >= inOpen[ShadowShortTrailingIdx - totIdx] ? inClose[ShadowShortTrailingIdx - totIdx] : inOpen[ShadowShortTrailingIdx - totIdx])) + ((inClose[ShadowShortTrailingIdx - totIdx] >= inOpen[ShadowShortTrailingIdx - totIdx] ? inOpen[ShadowShortTrailingIdx - totIdx] : inClose[ShadowShortTrailingIdx - totIdx]) - inLow[ShadowShortTrailingIdx - totIdx]) : 0))); for (totIdx = 1; totIdx >= 0; --totIdx) ShadowLongPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[ShadowLongTrailingIdx - totIdx] - inOpen[ShadowLongTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[ShadowLongTrailingIdx - totIdx] - inLow[ShadowLongTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_ShadowLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[ShadowLongTrailingIdx - totIdx] - (inClose[ShadowLongTrailingIdx - totIdx] >= inOpen[ShadowLongTrailingIdx - totIdx] ? inClose[ShadowLongTrailingIdx - totIdx] : inOpen[ShadowLongTrailingIdx - totIdx])) + ((inClose[ShadowLongTrailingIdx - totIdx] >= inOpen[ShadowLongTrailingIdx - totIdx] ? inOpen[ShadowLongTrailingIdx - totIdx] : inClose[ShadowLongTrailingIdx - totIdx]) - inLow[ShadowLongTrailingIdx - totIdx]) : 0))); for (totIdx = 2; totIdx >= 1; --totIdx) { FarPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[FarTrailingIdx - totIdx] - inOpen[FarTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[FarTrailingIdx - totIdx] - inLow[FarTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_Far .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[FarTrailingIdx - totIdx] - (inClose[FarTrailingIdx - totIdx] >= inOpen[FarTrailingIdx - totIdx] ? inClose[FarTrailingIdx - totIdx] : inOpen[FarTrailingIdx - totIdx])) + ((inClose[FarTrailingIdx - totIdx] >= inOpen[FarTrailingIdx - totIdx] ? inOpen[FarTrailingIdx - totIdx] : inClose[FarTrailingIdx - totIdx]) - inLow[FarTrailingIdx - totIdx]) : 0))); NearPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[NearTrailingIdx - totIdx] - inOpen[NearTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[NearTrailingIdx - totIdx] - inLow[NearTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_Near .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[NearTrailingIdx - totIdx] - (inClose[NearTrailingIdx - totIdx] >= inOpen[NearTrailingIdx - totIdx] ? inClose[NearTrailingIdx - totIdx] : inOpen[NearTrailingIdx - totIdx])) + ((inClose[NearTrailingIdx - totIdx] >= inOpen[NearTrailingIdx - totIdx] ? inOpen[NearTrailingIdx - totIdx] : inClose[NearTrailingIdx - totIdx]) - inLow[NearTrailingIdx - totIdx]) : 0))); } BodyLongPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 2] - inOpen[i - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 2] - inLow[i - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 2] - (inClose[i - 2] >= inOpen[i - 2] ? inClose[i - 2] : inOpen[i - 2])) + ((inClose[i - 2] >= inOpen[i - 2] ? inOpen[i - 2] : inClose[i - 2]) - inLow[i - 2]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyLongTrailingIdx - 2] - inOpen[BodyLongTrailingIdx - 2])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyLongTrailingIdx - 2] - inLow[BodyLongTrailingIdx - 2]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyLongTrailingIdx - 2] - (inClose[BodyLongTrailingIdx - 2] >= inOpen[BodyLongTrailingIdx - 2] ? inClose[BodyLongTrailingIdx - 2] : inOpen[BodyLongTrailingIdx - 2])) + ((inClose[BodyLongTrailingIdx - 2] >= inOpen[BodyLongTrailingIdx - 2] ? inOpen[BodyLongTrailingIdx - 2] : inClose[BodyLongTrailingIdx - 2]) - inLow[BodyLongTrailingIdx - 2]) : 0))); i++; ShadowShortTrailingIdx++; ShadowLongTrailingIdx++; NearTrailingIdx++; FarTrailingIdx++; BodyLongTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 1880, 58, 4722, 11403, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 1880, 58, 4722, 11403, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, ...
try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("property", getPropertyExpr(), this, pageContext)) != null) setProperty(string);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setMaxlength((String) evalAttr("maxlength", getMaxlengthExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setRedisplay(((Boolean) evalAttr("redisplay", getRedisplayExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSize((String) evalAttr("size", getSizeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/022bd23c954cf673e53731849d562b3c295473f1/ELPasswordTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELPasswordTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, ...
throw new IllegalArgumentException("Unrecognized object " + handle);
throw new IllegalArgumentException("Unrecognized object " + getClassNull(handle));
public static void setMessages3(Object handle, Collection messages) { if (handle instanceof MMessage) { ((MMessage)handle).setMessages3(messages); return; } throw new IllegalArgumentException("Unrecognized object " + handle); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/be05b6f537c02fb99857c8d7d71ca149fc9200dd/ModelFacade.java/buggy/src_new/org/argouml/model/ModelFacade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 5058, 23, 12, 921, 1640, 16, 2200, 2743, 13, 288, 3639, 309, 261, 4110, 1276, 490, 1079, 13, 288, 5411, 14015, 49, 1079, 13, 4110, 2934, 542, 5058, 23, 12, 6833, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 5058, 23, 12, 921, 1640, 16, 2200, 2743, 13, 288, 3639, 309, 261, 4110, 1276, 490, 1079, 13, 288, 5411, 14015, 49, 1079, 13, 4110, 2934, 542, 5058, 23, 12, 6833, ...
WikiImage wikiImage = ImageUtil.initializeImage(virtualWiki, topicName, maxDimension);
Topic topic = WikiBase.getHandler().lookupTopic(virtualWiki, topicName); WikiFile wikiFile = WikiBase.getHandler().lookupWikiFile(virtualWiki, topicName); if (topic.getTopicType() == Topic.TYPE_FILE) { if (!StringUtils.hasText(caption)) { caption = topicName.substring(WikiBase.NAMESPACE_IMAGE.length()); } String url = FilenameUtils.normalize(Environment.getValue(Environment.PROP_FILE_DIR_RELATIVE_PATH) + "/" + wikiFile.getUrl()); url = FilenameUtils.separatorsToUnix(url); return "<a href=\"" + url + "\">" + Utilities.escapeHTML(caption) + "</a>"; } String html = ""; WikiImage wikiImage = ImageUtil.initializeImage(wikiFile, maxDimension);
public static String buildImageLinkHtml(String context, String virtualWiki, String topicName, boolean frame, boolean thumb, String align, String caption, int maxDimension, boolean suppressLink, String style, boolean escapeHtml) throws Exception { WikiImage wikiImage = ImageUtil.initializeImage(virtualWiki, topicName, maxDimension); if (caption == null) caption = ""; String html = ""; if (frame || thumb || StringUtils.hasText(align)) { html += "<div class=\""; if (thumb || frame) { html += "imgthumb "; } if (align != null && align.equalsIgnoreCase("left")) { html += "imgleft "; } else if (align != null && align.equalsIgnoreCase("center")) { html += "imgcenter "; } else { // default right alignment html += "imgright "; } html = html.trim() + "\">"; } if (wikiImage.getWidth() > 0) { html += "<div style=\"width:" + (wikiImage.getWidth() + 2) + "px\">"; } if (!suppressLink) html += "<a class=\"wikiimg\" href=\"" + LinkUtil.buildInternalLinkUrl(context, virtualWiki, topicName) + "\">"; if (!StringUtils.hasText(style)) style = "wikiimg"; html += "<img class=\"" + style + "\" src=\""; if (!Environment.getValue(Environment.PROP_FILE_DIR_RELATIVE_PATH).startsWith("/")) html += "/"; html += Environment.getValue(Environment.PROP_FILE_DIR_RELATIVE_PATH); String url = wikiImage.getUrl(); if (!html.endsWith("/") && !url.startsWith("/")) { url = "/" + url; } else if (html.endsWith("/") && url.startsWith("/")) { url = url.substring(1); } html += url; html += "\""; html += " width=\"" + wikiImage.getWidth() + "\""; html += " height=\"" + wikiImage.getHeight() + "\""; html += " alt=\"" + Utilities.escapeHTML(caption) + "\""; html += " />"; if (!suppressLink) html += "</a>"; if (StringUtils.hasText(caption)) { html += "<div class=\"imgcaption\">"; if (escapeHtml) { html += Utilities.escapeHTML(caption); } else { html += caption; } html += "</div>"; } if (wikiImage.getWidth() > 0) { html += "</div>"; } if (frame || thumb || StringUtils.hasText(align)) { html += "</div>"; } return html; }
50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/6b9eff89837ac0e6c27d748ea1dcf4b0db1a5a07/LinkUtil.java/clean/src/java/org/jamwiki/utils/LinkUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 1361, 2040, 2098, 4353, 12, 780, 819, 16, 514, 5024, 25438, 16, 514, 31997, 16, 1250, 2623, 16, 1250, 11156, 16, 514, 5689, 16, 514, 11006, 16, 509, 943, 8611, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 1361, 2040, 2098, 4353, 12, 780, 819, 16, 514, 5024, 25438, 16, 514, 31997, 16, 1250, 2623, 16, 1250, 11156, 16, 514, 5689, 16, 514, 11006, 16, 509, 943, 8611, 16, ...
if (tag.equals(ATT_OR)) { childExpr = new OrExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_AND)) { childExpr = new AndExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_NOT)) { childExpr = new NotExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_OBJECT_STATE)) { childExpr = new ObjectStateExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_OBJECT_CLASS)) { childExpr = new ObjectClassExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_PLUG_IN_STATE)) { childExpr = new PluginStateExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_SYSTEM_PROPERTY)) { childExpr = new SystemPropertyExpression(); childExpr.readFrom(element); } else { throw new IllegalStateException("Unrecognized element: " + tag); } return childExpr;
if (tag.equals(EXP_TYPE_OR)) return new OrExpression(element); if (tag.equals(EXP_TYPE_AND)) return new AndExpression(element); if (tag.equals(EXP_TYPE_NOT)) return new NotExpression(element); if (tag.equals(EXP_TYPE_OBJECT_STATE)) return new ObjectStateExpression(element); if (tag.equals(EXP_TYPE_OBJECT_CLASS)) return new ObjectClassExpression(element); if (tag.equals(EXP_TYPE_PLUG_IN_STATE)) return new PluginStateExpression(element); if (tag.equals(EXP_TYPE_SYSTEM_PROPERTY)) return new SystemPropertyExpression(element); throw new IllegalStateException("Action expression unrecognized element: " + tag);
protected AbstractExpression createExpression(IConfigurationElement element) throws IllegalStateException { AbstractExpression childExpr = null; String tag = element.getName(); if (tag.equals(ATT_OR)) { childExpr = new OrExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_AND)) { childExpr = new AndExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_NOT)) { childExpr = new NotExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_OBJECT_STATE)) { childExpr = new ObjectStateExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_OBJECT_CLASS)) { childExpr = new ObjectClassExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_PLUG_IN_STATE)) { childExpr = new PluginStateExpression(); childExpr.readFrom(element); } else if (tag.equals(ATT_SYSTEM_PROPERTY)) { childExpr = new SystemPropertyExpression(); childExpr.readFrom(element); } else { throw new IllegalStateException("Unrecognized element: " + tag); //$NON-NLS-1$ } return childExpr; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5a7207e86843def9001d641c82b7f76fd7c9d57f/ActionExpression.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ActionExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 29698, 752, 2300, 12, 45, 1750, 1046, 930, 13, 202, 202, 15069, 5477, 225, 202, 95, 202, 202, 7469, 2300, 1151, 4742, 273, 446, 31, 202, 202, 780, 1047, 273, 930, 18, 17994, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29698, 752, 2300, 12, 45, 1750, 1046, 930, 13, 202, 202, 15069, 5477, 225, 202, 95, 202, 202, 7469, 2300, 1151, 4742, 273, 446, 31, 202, 202, 780, 1047, 273, 930, 18, 17994, ...
if (jj_3R_302()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(TYPEDEF)) return true; return false; }
static final private boolean jj_3R_256() { if (jj_3R_302()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5034, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 23, 3103, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5034, 1435, 288, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 23, 3103, 10756, 327, 638, 31, 3639, 309, 261, 78, 78, 67, 11821, 422, 374, 597...
String name = (String)iterator.next(); if (name.startsWith(STATE)) { if (stateFullControlParameter.get(name).equals(WindowState.MAXIMIZED.toString())) {
String encodedName = (String)iterator.next(); if (encodedName.startsWith(STATE)) { if (encodedStateFullControlParameter.get(encodedName).equals(WindowState.MAXIMIZED.toString())) {
public boolean isOnePortletWindowMaximized() { Iterator iterator = stateFullControlParameter.keySet().iterator(); while (iterator.hasNext()) { String name = (String)iterator.next(); if (name.startsWith(STATE)) { if (stateFullControlParameter.get(name).equals(WindowState.MAXIMIZED.toString())) { return true; } } } return false; }
51810 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51810/cba5674453f8a9143c9f5bd050cc9e5572dd940b/PortalControlParameter.java/clean/portal/src/java/org/apache/pluto/portalImpl/core/PortalControlParameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 3335, 18566, 3829, 2747, 381, 1235, 1435, 565, 288, 3639, 4498, 2775, 273, 919, 5080, 3367, 1662, 18, 856, 694, 7675, 9838, 5621, 3639, 1323, 261, 9838, 18, 5332, 2134, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 3335, 18566, 3829, 2747, 381, 1235, 1435, 565, 288, 3639, 4498, 2775, 273, 919, 5080, 3367, 1662, 18, 856, 694, 7675, 9838, 5621, 3639, 1323, 261, 9838, 18, 5332, 2134, 1...
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case NotationPackage.LOCATION__X: setX(((Integer)newValue).intValue()); return; case NotationPackage.LOCATION__Y: setY(((Integer)newValue).intValue()); return; } eDynamicSet(eFeature, newValue); }
public void eSet(int featureID, Object newValue) { switch (featureID) { case NotationPackage.LOCATION__X: setX(((Integer)newValue).intValue()); return; case NotationPackage.LOCATION__Y: setY(((Integer)newValue).intValue()); return; } super.eSet(featureID, newValue); }
public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case NotationPackage.LOCATION__X: setX(((Integer)newValue).intValue()); return; case NotationPackage.LOCATION__Y: setY(((Integer)newValue).intValue()); return; } eDynamicSet(eFeature, newValue); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/LocationImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/LocationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 288, 202, 202, 9610, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 288, 1082, 202, 3593, 2288, 367, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 41, 14372, 4595, 425, 4595, 16, 1033, 6129, 13, 288, 202, 202, 9610, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 288, 1082, 202, 3593, 2288, 367, 226...
while ( e != null ) { Module currentRoot = e.getRoot( ); assert currentRoot != null;
e = e.getVirtualParent( ); } else {
protected Object getPropertyFromParent( Module module, ElementPropertyDefn prop ) { Object value = null; DesignElement e = getExtendsElement( ); while ( e != null ) { Module currentRoot = e.getRoot( ); assert currentRoot != null; // If we can find the value here, return it. value = e.getPropertyFromSelf( currentRoot, prop ); if ( value != null ) return value; e = e.getExtendsElement( ); } return value; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7b53f443be7bd25a8e257bd783c10b1aecb8b963/DesignElement.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 3911, 1265, 3054, 12, 5924, 1605, 16, 1082, 202, 1046, 1396, 3262, 82, 2270, 262, 202, 95, 202, 202, 921, 460, 273, 446, 31, 202, 202, 15478, 1046, 425, 273, 336, 19581...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 3911, 1265, 3054, 12, 5924, 1605, 16, 1082, 202, 1046, 1396, 3262, 82, 2270, 262, 202, 95, 202, 202, 921, 460, 273, 446, 31, 202, 202, 15478, 1046, 425, 273, 336, 19581...
public MethodDeclarationPattern(char[] name, char[][] qual, char [][] params, int matchMode, LimitTo limitTo, boolean caseSensitive) { super( name, params, matchMode, limitTo, caseSensitive );
public MethodDeclarationPattern(char[] name, char[][] qual, char [][] params, int matchMode, SearchFor search, LimitTo limitTo, boolean caseSensitive) { super( matchMode, caseSensitive, limitTo );
public MethodDeclarationPattern(char[] name, char[][] qual, char [][] params, int matchMode, LimitTo limitTo, boolean caseSensitive) { super( name, params, matchMode, limitTo, caseSensitive ); qualifications = qual; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/dbc6ab4f9808ebbdd6e321da43783a12fbb31fb4/MethodDeclarationPattern.java/clean/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/MethodDeclarationPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2985, 6094, 3234, 12, 3001, 8526, 508, 16, 1149, 63, 6362, 65, 4544, 16, 1149, 5378, 8526, 859, 16, 509, 845, 2309, 16, 7214, 774, 1800, 774, 16, 1250, 20975, 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, 2985, 6094, 3234, 12, 3001, 8526, 508, 16, 1149, 63, 6362, 65, 4544, 16, 1149, 5378, 8526, 859, 16, 509, 845, 2309, 16, 7214, 774, 1800, 774, 16, 1250, 20975, 13, 288, 202, ...
} catch (IllegalAccessException iaExcptn) {
} catch (Exception excptn) { excptn.printStackTrace(); return null; } /* } catch (IllegalAccessException iaExcptn) {
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (methodArgs == null) { methodArgs = new Object[0]; } if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1)); System.arraycopy(methodArgs, 0, newMethodArgs, 0, args.length - 1); newMethodArgs[args.length - 1] = restArray; methodArgs = newMethodArgs; } if (staticMethod) { Object[] newMethodArgs = new Object[methodArgs.length + 1]; System.arraycopy(methodArgs, 0, newMethodArgs, 1, methodArgs.length); newMethodArgs[0] = ruby; methodArgs = newMethodArgs; } try { return (RubyObject)getMethod().invoke(staticMethod ? null : recv, methodArgs); } catch (IllegalAccessException iaExcptn) { throw new RuntimeException("IllegalAccessException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } catch (IllegalArgumentException iaExcptn) { throw new RuntimeException("IllegalArgumentException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } catch (InvocationTargetException itExcptn) { throw new RuntimeException("InvocationTargetException: Cannot invoke method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection."); } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/ReflectionCallbackMethod.java/buggy/org/jruby/core/ReflectionCallbackMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 19817, 921, 27632, 12, 54, 10340, 921, 10665, 16, 1033, 8526, 707, 2615, 16, 19817, 22155, 13, 288, 3639, 309, 261, 2039, 2615, 422, 446, 13, 288, 5411, 707, 2615, 273, 394, 1033, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 27632, 12, 54, 10340, 921, 10665, 16, 1033, 8526, 707, 2615, 16, 19817, 22155, 13, 288, 3639, 309, 261, 2039, 2615, 422, 446, 13, 288, 5411, 707, 2615, 273, 394, 1033, ...
return RubyString.newString(getRuntime(), pattern.pattern());
return getRuntime().newString(pattern.pattern());
public RubyString source() { checkInitialized(); return RubyString.newString(getRuntime(), pattern.pattern()); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 1084, 1435, 288, 3639, 866, 11459, 5621, 3639, 327, 18814, 7675, 2704, 780, 12, 4951, 18, 4951, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 1084, 1435, 288, 3639, 866, 11459, 5621, 3639, 327, 18814, 7675, 2704, 780, 12, 4951, 18, 4951, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/* Set maximum number of terms to index if present in dspace.cfg */ if (ConfigurationManager.getProperty("search.maxfieldlength") != null) { int maxfieldlength = ConfigurationManager .getIntProperty("search.maxfieldlength"); if (maxfieldlength == -1) { writer.maxFieldLength = Integer.MAX_VALUE; } else { writer.maxFieldLength = maxfieldlength; } }
private static IndexWriter openIndex(Context c, boolean wipe_existing) throws IOException { IndexWriter writer; String index_directory = ConfigurationManager.getProperty("search.dir"); writer = new IndexWriter(index_directory, new DSAnalyzer(), wipe_existing); // Potential improvement for large indices to avoid TooManyFiles // exception. //writer.setUseCompoundFile(true); return writer; }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/ec975398b93076e2fb03f5c1eedf1aa68238b7f6/DSIndexer.java/clean/dspace/src/org/dspace/search/DSIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1748, 1000, 4207, 1300, 434, 6548, 358, 770, 309, 3430, 316, 302, 2981, 18, 7066, 1195, 309, 261, 1750, 1318, 18, 588, 1396, 2932, 3072, 18, 1896, 1518, 2469, 7923, 480, 446, 13, 288, 509, 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, 1748, 1000, 4207, 1300, 434, 6548, 358, 770, 309, 3430, 316, 302, 2981, 18, 7066, 1195, 309, 261, 1750, 1318, 18, 588, 1396, 2932, 3072, 18, 1896, 1518, 2469, 7923, 480, 446, 13, 288, 509, 9...
OrDescr or = null; pushFollow(FOLLOW_lhs_and_in_lhs_or2515);
pushFollow(FOLLOW_lhs_and_in_lhs_or2695);
public BaseDescr lhs_or() throws RecognitionException { BaseDescr d = null; BaseDescr left = null; BaseDescr right = null; d = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1139:3: (left= lhs_and ( ('or'|'||')right= lhs_and )* ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1139:3: left= lhs_and ( ('or'|'||')right= lhs_and )* { OrDescr or = null; pushFollow(FOLLOW_lhs_and_in_lhs_or2515); left=lhs_and(); _fsp--; d = left; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1141:3: ( ('or'|'||')right= lhs_and )* loop36: do { int alt36=2; int LA36_0 = input.LA(1); if ( ((LA36_0>=54 && LA36_0<=55)) ) { alt36=1; } switch (alt36) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1141:5: ('or'|'||')right= lhs_and { if ( (input.LA(1)>=54 && input.LA(1)<=55) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2524); throw mse; } pushFollow(FOLLOW_lhs_and_in_lhs_or2534); right=lhs_and(); _fsp--; if ( or == null ) { or = new OrDescr(); or.addDescr( left ); d = or; } or.addDescr( right ); } break; default : break loop36; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 2002, 273, 446, 31, 3639, 3360, 16198, 2145, 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, 3360, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 2002, 273, 446, 31, 3639, 3360, 16198, 2145, 273, 446, 31, 1171, 202, 202...
ret = this.getChild(0).toString()+"?";
ret = this.getChild(0).toString(options)+"?";
public String toString() { String ret; if (this.type == CONCAT) { if (this.children.size() == 2) { Token ch = this.getChild(0); Token ch2 = this.getChild(1); if (ch2.type == CLOSURE && ch2.getChild(0) == ch) { ret = ch.toString()+"+"; } else if (ch2.type == NONGREEDYCLOSURE && ch2.getChild(0) == ch) { ret = ch.toString()+"+?"; } else ret = ch.toString()+ch2.toString(); } else { StringBuffer sb = new StringBuffer(); for (int i = 0; i < this.children.size(); i ++) { sb.append(this.children.elementAt(i).toString()); } ret = sb.toString(); } return ret; } if (this.children.size() == 2 && this.getChild(1).type == EMPTY) { ret = this.getChild(0).toString()+"?"; } else if (this.children.size() == 2 && this.getChild(0).type == EMPTY) { ret = this.getChild(1).toString()+"??"; } else { StringBuffer sb = new StringBuffer(); sb.append(this.children.elementAt(0).toString()); for (int i = 1; i < this.children.size(); i ++) { sb.append((char)'|'); sb.append(this.children.elementAt(i).toString()); } ret = sb.toString(); } return ret; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/8b11a848810bb412bb54724cba3f489008bafdc9/Token.java/buggy/src/org/apache/xerces/utils/regex/Token.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 5411, 514, 325, 31, 5411, 309, 261, 2211, 18, 723, 422, 3492, 14130, 13, 288, 7734, 309, 261, 2211, 18, 5906, 18, 1467, 1435, 422, 576, 13, 288, 10792, 3155,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 1762, 1435, 288, 5411, 514, 325, 31, 5411, 309, 261, 2211, 18, 723, 422, 3492, 14130, 13, 288, 7734, 309, 261, 2211, 18, 5906, 18, 1467, 1435, 422, 576, 13, 288, 10792, 3155,...
int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset);
int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset, false);
public static final int getBreakLocation(Segment s, FontMetrics metrics, int x0, int x, TabExpander e, int startOffset) { int mark = Utilities.getTabbedTextOffset(s, metrics, x0, x, e, startOffset); BreakIterator breaker = BreakIterator.getWordInstance(); breaker.setText(s); // If mark is equal to the end of the string, just use that position if (mark >= s.count) return mark; // Try to find a word boundary previous to the mark at which we // can break the text int preceding = breaker.preceding(mark + 1); if (preceding != 0) return preceding; else // If preceding is 0 we couldn't find a suitable word-boundary so // just break it on the character boundary return mark; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8e6a933c7311b8af73a149d26777089b7dc8bd68/Utilities.java/buggy/core/src/classpath/javax/javax/swing/text/Utilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 509, 2882, 870, 2735, 12, 4131, 272, 16, 10063, 5653, 4309, 16, 4766, 6647, 509, 619, 20, 16, 509, 619, 16, 9483, 12271, 264, 425, 16, 4766, 6647, 509, 18245, 13, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 509, 2882, 870, 2735, 12, 4131, 272, 16, 10063, 5653, 4309, 16, 4766, 6647, 509, 619, 20, 16, 509, 619, 16, 9483, 12271, 264, 425, 16, 4766, 6647, 509, 18245, 13, 225, ...
if (object instanceof IPluginDescriptor) { IPluginDescriptor desc = (IPluginDescriptor) object; if (showType != ShowPluginsMenu.SHOW_ALL_PLUGINS) matchesShowCriteria = (showType == ShowPluginsMenu.SHOW_RUNNING_PLUGINS && desc.isPluginActivated()) || (showType == ShowPluginsMenu.SHOW_NON_RUNNING_PLUGINS && !desc.isPluginActivated()); }
if (object instanceof IPluginDescriptor && ((IPluginDescriptor) object).isPluginActivated()) resultList.add(plugins[i]);
public Object[] getChildren(Object element) { if (element instanceof ExtensionAdapter) { return ((ExtensionAdapter) element).getChildren(); } isInExtensionSet = false; if (element instanceof ExtensionPointAdapter) { return getNonDuplicateLabelChildren(element); } if (element instanceof ConfigurationElementAdapter) { return ((ConfigurationElementAdapter) element).getChildren(); } if (element instanceof PluginObjectAdapter) element = ((PluginObjectAdapter) element).getObject(); if (element.equals(Platform.getPluginRegistry())) { Object[] plugins = getPlugins(Platform.getPluginRegistry()); if (plugins == null) return new Object[0]; if (showType != ShowPluginsMenu.SHOW_ALL_PLUGINS){ //|| searchType != RegistrySearchMenu.NO_SEARCH){ boolean matchesShowCriteria = true; ArrayList resultList = new ArrayList(); for (int i = 0; i < plugins.length; i++) { if (plugins[i] instanceof PluginObjectAdapter) { Object object = ((PluginObjectAdapter) plugins[i]) .getObject(); if (object instanceof IPluginDescriptor) { IPluginDescriptor desc = (IPluginDescriptor) object; // handle showing criteria if (showType != ShowPluginsMenu.SHOW_ALL_PLUGINS) matchesShowCriteria = (showType == ShowPluginsMenu.SHOW_RUNNING_PLUGINS && desc.isPluginActivated()) || (showType == ShowPluginsMenu.SHOW_NON_RUNNING_PLUGINS && !desc.isPluginActivated()); } } if (matchesShowCriteria) resultList.add(plugins[i]); } return resultList.toArray(new Object[resultList.size()]); } return plugins; } if (element instanceof IPluginDescriptor) { IPluginDescriptor desc = (IPluginDescriptor) element; Object[] folders = (Object[]) pluginMap.get(desc .getUniqueIdentifier()); if (folders == null) { folders = createPluginFolders(desc); pluginMap.put(desc.getUniqueIdentifier(), folders); } else { ArrayList folderList = new ArrayList(); for (int i = 0; i<folders.length; i++){ if (folders[i] != null && ((IPluginFolder)folders[i]).getChildren() != null) folderList.add(folders[i]); } folders = folderList.toArray(new Object[folderList.size()]); } return folders; } if (element instanceof IPluginFolder) { IPluginFolder folder = (IPluginFolder) element; isInExtensionSet = folder.getFolderId() == 1; return getNonDuplicateLabelChildren(folder); } if (element instanceof IConfigurationElement) { return ((IConfigurationElement) element).getChildren(); } return null; }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/da9411dec7054667c47dca3c2ca1644866de8d9b/RegistryBrowserContentProvider.java/buggy/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/registry/RegistryBrowserContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 10268, 12, 921, 930, 13, 288, 9506, 202, 430, 261, 2956, 1276, 10021, 4216, 13, 288, 1082, 202, 2463, 14015, 3625, 4216, 13, 930, 2934, 588, 4212, 5621, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 10268, 12, 921, 930, 13, 288, 9506, 202, 430, 261, 2956, 1276, 10021, 4216, 13, 288, 1082, 202, 2463, 14015, 3625, 4216, 13, 930, 2934, 588, 4212, 5621, 202, 202, ...
} else if(className.equals("byte")) {
} else if (className.equals("byte")) {
public static Class getPrimitiveClass(String className) { Class result = null; if(className.equals("boolean")) { result = boolean.class; } else if(className.equals("byte")) { result = byte.class; } else if(className.equals("char")) { result = char.class; } else if(className.equals("short")) { result = short.class; } else if(className.equals("int")) { result = int.class; } else if(className.equals("long")) { result = long.class; } else if(className.equals("float")) { result = float.class; } else if(className.equals("double")) { result = double.class; } else if(className.equals("string")) { result = String.class; } return result; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/2ff86cce7654955efea2913c35b44a8bb53879b5/Command.java/buggy/modules/beans/src/main/java/org/apache/harmony/beans/Command.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1659, 8248, 5025, 797, 12, 780, 2658, 13, 288, 3639, 1659, 563, 273, 446, 31, 3639, 309, 12, 12434, 18, 14963, 2932, 6494, 6, 3719, 288, 5411, 563, 273, 1250, 18, 1106, 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, 760, 1659, 8248, 5025, 797, 12, 780, 2658, 13, 288, 3639, 1659, 563, 273, 446, 31, 3639, 309, 12, 12434, 18, 14963, 2932, 6494, 6, 3719, 288, 5411, 563, 273, 1250, 18, 1106, 31, ...
public void testGoodExternalId() throws Exception { setRequestPathInfo("/portal"); addRequestParameter("externalid", "EmployeeA1"); actionPerform(); verifyNoActionErrors(); // would be nice to test that we forward to the correct // object details URL but I can't figure out how to get // the forward returned. }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/dcb02c7b024ddb965ad4448b0cda6dd68cd5b094/PortalQueryTest.java/clean/intermine/src/test/org/intermine/web/PortalQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 18195, 6841, 548, 1435, 15069, 503, 95, 542, 691, 743, 966, 2932, 19, 24386, 8863, 1289, 691, 1662, 2932, 338, 798, 567, 15937, 41, 27520, 37, 21, 8863, 1128, 4990, 5621, 870...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 18195, 6841, 548, 1435, 15069, 503, 95, 542, 691, 743, 966, 2932, 19, 24386, 8863, 1289, 691, 1662, 2932, 338, 798, 567, 15937, 41, 27520, 37, 21, 8863, 1128, 4990, 5621, 870...
/** * If there is no parent shell we have not been asked for a parent so we * want to avoid blocking. If there is a parent then it is OK to open. */ if (parentShell == null) { WorkbenchJob dialogJob = new WorkbenchJob(WorkbenchMessages.EventLoopProgressMonitor_OpenDialogJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if (singleton == null) return Status.CANCEL_STATUS; if (ProgressManagerUtil.rescheduleIfModalShellOpen(this)) return Status.CANCEL_STATUS; singleton.open(); return Status.OK_STATUS; } }; dialogJob.setSystem(true); dialogJob.schedule(PlatformUI.getWorkbench().getProgressService() .getLongOperationTime()); } else singleton.open();
/** * If there is no parent shell we have not been asked for a parent so we * want to avoid blocking. If there is a parent then it is OK to open. */ if (parentShell == null) { WorkbenchJob dialogJob = new WorkbenchJob( WorkbenchMessages.EventLoopProgressMonitor_OpenDialogJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if (singleton == null) return Status.CANCEL_STATUS; if (ProgressManagerUtil.rescheduleIfModalShellOpen(this)) return Status.CANCEL_STATUS; singleton.open(); return Status.OK_STATUS; } }; dialogJob.setSystem(true); dialogJob.schedule(PlatformUI.getWorkbench().getProgressService() .getLongOperationTime()); } else singleton.open();
public static BlockedJobsDialog createBlockedDialog(Shell parentShell, IProgressMonitor blockedMonitor, IStatus reason, String taskName) { //use an existing dialog if available if (singleton != null) return singleton; singleton = new BlockedJobsDialog(parentShell, blockedMonitor, reason); if (taskName == null) { if (singleton.getParentShell() != null) singleton.setBlockedTaskName(singleton.getParentShell() .getText()); } else singleton.setBlockedTaskName(taskName); /** * If there is no parent shell we have not been asked for a parent so we * want to avoid blocking. If there is a parent then it is OK to open. */ if (parentShell == null) { //create the job that will open the dialog after a delay. WorkbenchJob dialogJob = new WorkbenchJob(WorkbenchMessages.EventLoopProgressMonitor_OpenDialogJobName) { /* * (non-Javadoc) * * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if (singleton == null) return Status.CANCEL_STATUS; if (ProgressManagerUtil.rescheduleIfModalShellOpen(this)) return Status.CANCEL_STATUS; singleton.open(); return Status.OK_STATUS; } }; //Wait for long operation time to prevent a proliferation //of dialogs dialogJob.setSystem(true); dialogJob.schedule(PlatformUI.getWorkbench().getProgressService() .getLongOperationTime()); } else singleton.open(); return singleton; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/52a153207677265ed0d3062f20a431ac8cf947e0/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3914, 329, 7276, 6353, 752, 23722, 6353, 12, 13220, 982, 13220, 16, 5411, 467, 5491, 7187, 14547, 7187, 16, 467, 1482, 3971, 16, 514, 20172, 13, 288, 3639, 368, 1202, 392, 2062...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3914, 329, 7276, 6353, 752, 23722, 6353, 12, 13220, 982, 13220, 16, 5411, 467, 5491, 7187, 14547, 7187, 16, 467, 1482, 3971, 16, 514, 20172, 13, 288, 3639, 368, 1202, 392, 2062...
if (ChainBuilderAgent.DEBUG) System.err.println("a key was pressed ");
public void keyPressed(PInputEvent e) { //System.err.println("a key was pressed "); int key = e.getKeyCode(); if (key != KeyEvent.VK_DELETE && key != KeyEvent.VK_BACK_SPACE) return; if (selectedLink != null) { selectedLink.remove(); selectedLink = null; } else if (selectedModule != null) { selectedModule.remove(); selectedModule = null; } canvas.updateSaveStatus(); }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/a806bf744289bb0eed666b235887c8680d549d94/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 430, 261, 3893, 1263, 3630, 18, 9394, 13, 2332, 18, 370, 18, 8222, 2932, 69, 498, 1703, 19504, 315, 1769, 918, 430, 261, 3893, 1263, 3630, 18, 9394, 13, 2332, 18, 370, 18, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 430, 261, 3893, 1263, 3630, 18, 9394, 13, 2332, 18, 370, 18, 8222, 2932, 69, 498, 1703, 19504, 315, 1769, 918, 430, 261, 3893, 1263, 3630, 18, 9394, 13, 2332, 18, 370, 18, 8...
message.append("Attacker has partial cover.\n");
message.append(Messages.getString("BoardView1.AttackerPartialCover"));
public void boardSecondLOSHex(BoardEvent b, Coords c1) { if (useLOSTool) { Coords c2 = b.getCoords(); moveCursor(firstLOSSprite, c1); moveCursor(secondLOSSprite, c2); LosEffects.AttackInfo ai = new LosEffects.AttackInfo(); ai.attackPos = c1; ai.targetPos = c2; ai.attackHeight = game.getMechInFirst()?1:0; ai.targetHeight = game.getMechInSecond()?1:0; ai.attackAbsHeight = game.getBoard().getHex(c1).floor() + ai.attackHeight; ai.targetAbsHeight = game.getBoard().getHex(c2).floor() + ai.targetHeight; LosEffects le = LosEffects.calculateLos(game, ai); StringBuffer message = new StringBuffer(); message.append( "Attacker(") .append(game.getMechInFirst() ? "Mech" : "non Mech") .append(") hex is " ) .append( c1.getBoardNum() ) .append( ".\n" ); message.append( "Target(") .append(game.getMechInSecond() ? "Mech" : "non Mech") .append(") hex is " ) .append( c2.getBoardNum() ) .append( ".\n" ); if (!le.canSee()) { message.append( "Line of sight is blocked.\n" ); message.append( "Range is " ) .append( c1.distance(c2) ) .append( " hex(es).\n"); } else { message.append( "Line of sight is not blocked.\n" ); message.append( "Range is " ) .append( c1.distance(c2) ) .append( " hex(es).\n"); if (le.getHeavyWoods() > 0) { message.append( le.getHeavyWoods() ) .append( " heavy wood hex(es) in line of sight.\n" ); } if (le.getLightWoods() > 0) { message.append( le.getLightWoods() ) .append( " light wood hex(es) in line of sight.\n" ); } if (le.getLightSmoke() > 0) { message.append( le.getLightSmoke() ) .append( " light smoke hex(es) in line of sight.\n" ); } if (le.getHeavySmoke() > 0) { message.append( le.getHeavySmoke() ); if (game.getOptions().booleanOption("maxtech_fire")) message.append( " heavy"); message.append( " smoke hex(es) in line of sight.\n" ); } if (le.isTargetCover()) { message.append("Target has partial cover.\n"); } if (le.isAttackerCover()) { message.append("Attacker has partial cover.\n"); } } AlertDialog alert = new AlertDialog(frame, "Range / Line of Sight", message.toString(), false); alert.show(); } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/BoardView1.java/buggy/megamek/src/megamek/client/ui/AWT/BoardView1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11094, 8211, 1502, 2664, 338, 12, 22233, 1133, 324, 16, 10320, 87, 276, 21, 13, 288, 3639, 309, 261, 1202, 1502, 55, 6364, 13, 288, 5411, 10320, 87, 276, 22, 273, 324, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11094, 8211, 1502, 2664, 338, 12, 22233, 1133, 324, 16, 10320, 87, 276, 21, 13, 288, 3639, 309, 261, 1202, 1502, 55, 6364, 13, 288, 5411, 10320, 87, 276, 22, 273, 324, 18, ...
return item; }
return item; }
public Item getItem() { return item; }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/9aa23e64f4789c81954f3edca5bc3549ccb46ffe/Attribute.java/clean/src/main/java/org/osaf/cosmo/model/Attribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4342, 8143, 1435, 288, 202, 202, 2463, 761, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4342, 8143, 1435, 288, 202, 202, 2463, 761, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
new NoViableAltException("1012:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 1, input);
new NoViableAltException("1010:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 1, input);
public RestrictionDescr constraint_expression() throws RecognitionException { RestrictionDescr rd = null; Token op=null; Token bvc=null; String lc = null; String rvc = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1002:3: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint ) ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1002:3: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches'|'excludes') ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=57 && input.LA(1)<=65) ) { input.consume(); errorRecovery=false;failed=false; } else { if (backtracking>0) {failed=true; return rd;} MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint_expression2125); throw mse; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1012:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint ) int alt37=4; switch ( input.LA(1) ) { case ID: int LA37_1 = input.LA(2); if ( (LA37_1==33) ) { alt37=2; } else if ( (LA37_1==EOF||LA37_1==RIGHT_PAREN||LA37_1==36||(LA37_1>=55 && LA37_1<=56)) ) { alt37=1; } else { if (backtracking>0) {failed=true; return rd;} NoViableAltException nvae = new NoViableAltException("1012:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case 66: alt37=3; break; case LEFT_PAREN: alt37=4; break; default: if (backtracking>0) {failed=true; return rd;} NoViableAltException nvae = new NoViableAltException("1012:3: ( ( ID )=>bvc= ID | ( enum_constraint )=>lc= enum_constraint | ( literal_constraint )=>lc= literal_constraint | rvc= retval_constraint )", 37, 0, input); throw nvae; } switch (alt37) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1012:5: ( ID )=>bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint_expression2192); if (failed) return rd; if ( backtracking==0 ) { rd = new VariableRestrictionDescr(op.getText(), bvc.getText()); } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1017:4: ( enum_constraint )=>lc= enum_constraint { pushFollow(FOLLOW_enum_constraint_in_constraint_expression2208); lc=enum_constraint(); _fsp--; if (failed) return rd; if ( backtracking==0 ) { rd = new LiteralRestrictionDescr(op.getText(), lc, true); } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1022:4: ( literal_constraint )=>lc= literal_constraint { pushFollow(FOLLOW_literal_constraint_in_constraint_expression2231); lc=literal_constraint(); _fsp--; if (failed) return rd; if ( backtracking==0 ) { rd = new LiteralRestrictionDescr(op.getText(), lc); } } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1026:5: rvc= retval_constraint { pushFollow(FOLLOW_retval_constraint_in_constraint_expression2245); rvc=retval_constraint(); _fsp--; if (failed) return rd; if ( backtracking==0 ) { rd = new ReturnValueRestrictionDescr(op.getText(), rvc); } } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return rd; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/158de3e3177d9b48d45fb4c3fae8404e0f01f690/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1124, 6192, 16198, 4954, 67, 8692, 1435, 1216, 9539, 288, 6647, 1124, 6192, 16198, 9437, 273, 446, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31, 3639, 514...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1124, 6192, 16198, 4954, 67, 8692, 1435, 1216, 9539, 288, 6647, 1124, 6192, 16198, 9437, 273, 446, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31, 3639, 514...
filterNode.getNext());
filterNode.getNext()).getNonRedundant(); if (buffer == null) return;
private static void generateFilterDRAMCommand(FilterTraceNode filterNode, FilterInfo filterInfo, RawTile tile, boolean init, boolean primepump) { //only generate a DRAM command for filters connected to input or output trace nodes if (filterNode.getPrevious() != null && filterNode.getPrevious().isInputTrace()) { OffChipBuffer buffer = OffChipBuffer.getBuffer(filterNode.getPrevious(), filterNode); //don't generate code for redundant buffers if (buffer.redundant()) return; //get the number of items received int items = filterInfo.totalItemsReceived(init, primepump); //the transfer size rounded up to by divisible by a cacheline int bytes = Util.cacheLineDiv((items * Util.getTypeSize(filterNode.getFilter().getInputType())) * 4); tile.getComputeCode().addDRAMCommand(true, init || primepump, bytes, buffer); } else if (filterNode.getNext() != null && filterNode.getNext().isOutputTrace()) { OffChipBuffer buffer = OffChipBuffer.getBuffer(filterNode, filterNode.getNext()); //don't generate code for redundant buffers if (buffer.redundant()) return; //get the number of items sent int items = filterInfo.totalItemsSent(init, primepump); int bytes = Util.cacheLineDiv((items * Util.getTypeSize(filterNode.getFilter().getOutputType())) * 4); tile.getComputeCode().addDRAMCommand(false, init || primepump, bytes, buffer); } }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/ab178cc7a82382989877c93612e6c8db7ff0c757/Rawify.java/clean/streams/src/at/dms/kjc/spacetime/Rawify.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2103, 1586, 6331, 2192, 2189, 12, 1586, 3448, 907, 1034, 907, 16, 4008, 966, 1034, 966, 16, 25083, 565, 6576, 9337, 4769, 16, 1250, 1208, 16, 1250, 17014, 84, 2801, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2103, 1586, 6331, 2192, 2189, 12, 1586, 3448, 907, 1034, 907, 16, 4008, 966, 1034, 966, 16, 25083, 565, 6576, 9337, 4769, 16, 1250, 1208, 16, 1250, 17014, 84, 2801, 13, ...
int key = Integer.parseInt(in.readLine()); if(key != authKey)
try
public void run() { try { for(;;) { Socket client = socket.accept(); Log.log(Log.MESSAGE,this,client + ": connected"); BufferedReader in = new BufferedReader( new InputStreamReader( client.getInputStream(), "UTF8")); try { int key = Integer.parseInt(in.readLine()); if(key != authKey) { Log.log(Log.ERROR,this, client + ": wrong" + " authorization key"); in.close(); client.close(); return; } } catch(Exception e) { Log.log(Log.ERROR,this, client + ": invalid" + " authorization key"); in.close(); client.close(); return; } Log.log(Log.DEBUG,this,client + ": authenticated" + " successfully"); handleClient(client,in); client.close(); } } catch(IOException io) { Log.log(Log.ERROR,this,io); } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/16e1a0e5deda0b2cf3d9e641705039b6cf37e01e/EditServer.java/clean/org/gjt/sp/jedit/EditServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 1884, 12, 25708, 13, 1082, 202, 95, 9506, 202, 4534, 1004, 273, 2987, 18, 9436, 5621, 9506, 202, 1343, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 1884, 12, 25708, 13, 1082, 202, 95, 9506, 202, 4534, 1004, 273, 2987, 18, 9436, 5621, 9506, 202, 1343, 18, ...
throw cx.reportRuntimeError0("msg.bad.uri");
throw Context.reportRuntimeError0("msg.bad.uri");
private static String encode(Context cx, String str, boolean fullUri) { byte[] utf8buf = null; StringBuffer sb = null; for (int k = 0, length = str.length(); k != length; ++k) { char C = str.charAt(k); if (encodeUnescaped(C, fullUri)) { if (sb != null) { sb.append(C); } } else { if (sb == null) { sb = new StringBuffer(length + 3); sb.append(str); sb.setLength(k); utf8buf = new byte[6]; } if (0xDC00 <= C && C <= 0xDFFF) { throw cx.reportRuntimeError0("msg.bad.uri"); } int V; if (C < 0xD800 || 0xDBFF < C) { V = C; } else { k++; if (k == length) { throw cx.reportRuntimeError0("msg.bad.uri"); } char C2 = str.charAt(k); if (!(0xDC00 <= C2 && C2 <= 0xDFFF)) { throw cx.reportRuntimeError0("msg.bad.uri"); } V = ((C - 0xD800) << 10) + (C2 - 0xDC00) + 0x10000; } int L = oneUcs4ToUtf8Char(utf8buf, V); for (int j = 0; j < L; j++) { int d = 0xff & utf8buf[j]; sb.append('%'); sb.append(toHexChar(d >>> 4)); sb.append(toHexChar(d & 0xf)); } } } return (sb == null) ? str : sb.toString(); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/4ad826a35e76cb27011d7ce32f9515c2d80a93c0/NativeGlobal.java/buggy/js/rhino/src/org/mozilla/javascript/NativeGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 2017, 12, 1042, 9494, 16, 514, 609, 16, 1250, 1983, 3006, 13, 288, 3639, 1160, 8526, 7718, 28, 4385, 273, 446, 31, 3639, 6674, 2393, 273, 446, 31, 3639, 364, 261, 474, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 2017, 12, 1042, 9494, 16, 514, 609, 16, 1250, 1983, 3006, 13, 288, 3639, 1160, 8526, 7718, 28, 4385, 273, 446, 31, 3639, 6674, 2393, 273, 446, 31, 3639, 364, 261, 474, ...
ICurricularCourse curricularCourse, ISuportePersistente sp) throws ExcepcaoPersistencia { IPersistentEnrollment persistentEnrolment = sp.getIPersistentEnrolment(); List enrolments = persistentEnrolment.readByCurricularCourseAndExecutionPeriod( curricularCourse.getIdInternal(), executionPeriod.getIdInternal()); return enrolments; }
ICurricularCourse curricularCourse, ISuportePersistente sp) throws ExcepcaoPersistencia { IPersistentEnrollment persistentEnrolment = sp.getIPersistentEnrolment(); List enrolments = persistentEnrolment.readByCurricularCourseAndExecutionPeriod( curricularCourse.getIdInternal(), executionPeriod.getIdInternal()); return enrolments; }
private List getEnrolled(IExecutionPeriod executionPeriod, ICurricularCourse curricularCourse, ISuportePersistente sp) throws ExcepcaoPersistencia { IPersistentEnrollment persistentEnrolment = sp.getIPersistentEnrolment(); List enrolments = persistentEnrolment.readByCurricularCourseAndExecutionPeriod( curricularCourse.getIdInternal(), executionPeriod.getIdInternal()); return enrolments; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/1153f784e97ac8770c43cb572c33b63390e585df/SearchExecutionCourses.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/sop/SearchExecutionCourses.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 3238, 987, 336, 664, 25054, 12, 45, 3210, 5027, 4588, 5027, 16, 13491, 467, 2408, 1512, 2490, 39, 3117, 662, 1512, 2490, 39, 3117, 16, 467, 3088, 499, 73, 11906, 73, 1694, 13, 13491, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 3238, 987, 336, 664, 25054, 12, 45, 3210, 5027, 4588, 5027, 16, 13491, 467, 2408, 1512, 2490, 39, 3117, 662, 1512, 2490, 39, 3117, 16, 467, 3088, 499, 73, 11906, 73, 1694, 13, 13491, 1...
((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false); }
Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false);
private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if(currentChart.getType().equals(sType)) // Original chart is of this type (LineChart) { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false); } } } } } else if(currentChart.getType().equals("Bar Chart") || currentChart.getType().equals("Stock Chart") || currentChart.getType().equals("Line Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(false); if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is not of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } } ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(false); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(getConvertedSampleData(helperModel.getSampleData())); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if(helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add(((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().addAll(((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if(currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if(!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6bb323f181d48ff09735e3426faa8c503d1d7457/ScatterChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/ScatterChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984,...
public void testMarshalling() throws MalformedURLException { Collection testCol = new ArrayList(); testCol.add("string 1"); testCol.add("string 2");// Map testMap = new HashMap(); // testMap.put("test 1", "value 1"); //testMap.put("test 2", "value 2"); URL testUrl = new URL("http://www.example.com"); Collection testCpd = ListUtil.list(ConfigParamDescr.VOLUME_NUMBER, ConfigParamDescr.BASE_URL); map.putBoolean("test-b", false); map.putCollection("test-c", testCol); map.putDouble("test-d", 1.21); map.putFloat("test-f", (float)2.12); map.putInt("test-i", 123); map.putLong("test-l", 123321);// map.putMap("test-m", testMap); map.putString("test-s", "test string"); map.putUrl("test-u", testUrl); // test for collections of ConfigParamDescr map.putCollection("test-cpd", testCpd); // marshal String fileLoc = tempDirPath + "testMap"; String fileName = "testMap"; try { map.storeMap(fileLoc, null, null); assertTrue("should throw - no file", true); } catch(Exception ex) { } map.storeMap(fileLoc, fileName, null); // new map map = new ExternalizableMap(); assertTrue(map.getBoolean("test-b", true)); assertIsomorphic(new ArrayList(), map.getCollection("test-c", new ArrayList())); assertEquals(1.0, map.getDouble("test-d", 1.0), 0.01); assertEquals(1.0, map.getFloat("test-f", (float)1.0), 0.01); assertEquals(1, map.getInt("test-i", 1)); assertEquals(1, map.getLong("test-l", 1));// assertEqual(new HashMap(), map.getMap("test-m", new HashMap())); assertEquals("foo", map.getString("test-s", "foo")); assertEquals(new URL("http://foo.com"), map.getUrl("test-u", new URL("http://foo.com"))); // unmarshal try { map.loadMap(fileLoc, null, null); assertTrue("should throw - no file", true); } catch(Exception ex) { } map.loadMap(fileLoc, fileName, null); assertFalse(map.getBoolean("test-b", true)); assertIsomorphic(testCol, map.getCollection("test-c", new ArrayList())); assertEquals(1.21, map.getDouble("test-d", 1.0), 0.01); assertEquals(2.12, map.getFloat("test-f", (float)1.0), 0.01); assertEquals(123, map.getInt("test-i", 1)); assertEquals(123321, map.getLong("test-l", 1));// assertEqual(testMap, map.getMap("test-m", new HashMap())); assertEquals("test string", map.getString("test-s", "foo")); assertEquals(testUrl, map.getUrl("test-u", new URL("http://foo.com"))); assertIsomorphic(testCpd, map.getCollection("test-cpd", Collections.EMPTY_LIST)); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/5a782afcabd10d28f074713fad89209a3af27885/TestExternalizableMap.java/clean/test/src/org/lockss/util/TestExternalizableMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1851, 310, 1435, 1216, 20710, 288, 565, 2200, 1842, 914, 273, 394, 2407, 5621, 565, 1842, 914, 18, 1289, 2932, 1080, 404, 8863, 565, 1842, 914, 18, 1289, 2932, 1080, 576,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1851, 310, 1435, 1216, 20710, 288, 565, 2200, 1842, 914, 273, 394, 2407, 5621, 565, 1842, 914, 18, 1289, 2932, 1080, 404, 8863, 565, 1842, 914, 18, 1289, 2932, 1080, 576,...
public static void setValueForNode(PipelineContext pipelineContext, Node currentNode, String valueToSet) { XFormsUtils.fillNode(pipelineContext, currentNode, valueToSet, null);
public static void setValueForNode(PipelineContext pipelineContext, Node node, String newValue, String type) { final InstanceData instanceData = XFormsUtils.getLocalInstanceData(node); if (type != null) { final String nodeType = instanceData.getType().getAsString(); if (nodeType != null && !nodeType.equals(type)) { newValue = XFormsUtils.convertUploadTypes(pipelineContext, newValue, type, nodeType); } else if (nodeType == null) { if (!XFormsUtils.DEFAULT_UPLOAD_TYPE.equals(type)) newValue = XFormsUtils.convertUploadTypes(pipelineContext, newValue, type, XFormsUtils.DEFAULT_UPLOAD_TYPE); } } final String currentValue; if (node instanceof Element) { final Element elementnode = (Element) node; currentValue = elementnode.getText(); Dom4jUtils.clearElementContent(elementnode); elementnode.add(Dom4jUtils.createText(newValue)); } else if (node instanceof Attribute) { final Attribute attributenode = (Attribute) node; currentValue = attributenode.getValue(); attributenode.setValue(newValue); } else { throw new OXFException("Node is not an element or attribute."); } if (!newValue.equals(currentValue)) instanceData.markValueChanged();
public static void setValueForNode(PipelineContext pipelineContext, Node currentNode, String valueToSet) { XFormsUtils.fillNode(pipelineContext, currentNode, valueToSet, null); }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/2831e4e1e9d768448c66fe22d29db22228308e74/XFormsInstance.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 5524, 31058, 12, 8798, 1042, 5873, 1042, 16, 2029, 13425, 16, 514, 460, 25208, 13, 288, 3639, 1139, 18529, 1989, 18, 5935, 907, 12, 14511, 1042, 16, 13425, 16, 460, 25208,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 5524, 31058, 12, 8798, 1042, 5873, 1042, 16, 2029, 13425, 16, 514, 460, 25208, 13, 288, 3639, 1139, 18529, 1989, 18, 5935, 907, 12, 14511, 1042, 16, 13425, 16, 460, 25208,...
if (!c.isInheritedServerAttr(name))
if (!AttributeManager.getInstance().isServerInherited(name))
public String getAttr(String name) { String v = super.getAttr(name); if (v != null) return v; try { Config c = mProv.getConfig(); if (!c.isInheritedServerAttr(name)) return null; else return c.getAttr(name); } catch (ServiceException e) { return null; } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/90d7304910bec2eab621d34f77a75135620f6c38/LdapServer.java/buggy/ZimbraServer/src/java/com/zimbra/cs/account/ldap/LdapServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 30392, 12, 780, 508, 13, 288, 3639, 514, 331, 273, 2240, 18, 588, 3843, 12, 529, 1769, 3639, 309, 261, 90, 480, 446, 13, 5411, 327, 331, 31, 3639, 775, 288, 5411, 1903, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 30392, 12, 780, 508, 13, 288, 3639, 514, 331, 273, 2240, 18, 588, 3843, 12, 529, 1769, 3639, 309, 261, 90, 480, 446, 13, 5411, 327, 331, 31, 3639, 775, 288, 5411, 1903, 276...
{if (true) return GetQuery(modifier, target, t.image);} break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException();
throw new Error("Missing return statement in function"); } finally { trace_return("Rhs_Text");
final public ZimbraQuery.BaseQuery Rhs_Text(int target) throws ParseException, ServiceException { ArrayList clauses = new ArrayList(); Token t; int modifier = 0; ZimbraQuery.BaseQuery clause = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: jj_consume_token(LPAREN); modifier = Modifier(); clause = Rhs_Text(target); clause.setModifier(modifier); AddClause(clauses,clause); label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND_TOKEN: case OR_TOKEN: case NOT_TOKEN: case LPAREN: case PLUS: case MINUS: case TEXT_TOK: case QUOTED_TOK: ; break; default: jj_la1[3] = jj_gen; break label_1; } clause = Conjunction(); AddClause(clauses,clause); modifier = Modifier(); clause = Rhs_Text(target); clause.setModifier(modifier); AddClause(clauses,clause); } jj_consume_token(RPAREN); {if (true) return new ZimbraQuery.SubQuery(mAnalyzer, 0,clauses);} break; case TEXT_TOK: case QUOTED_TOK: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case TEXT_TOK: t = jj_consume_token(TEXT_TOK); break; case QUOTED_TOK: t = jj_consume_token(QUOTED_TOK); break; default: jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return GetQuery(modifier, target, t.image);} break; default: jj_la1[5] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/601b3f248542d14ed30dbff00c82237b24b58ac4/ZimbraQueryParser.java/clean/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 2285, 381, 15397, 1138, 18, 2171, 1138, 534, 4487, 67, 1528, 12, 474, 1018, 13, 1216, 10616, 16, 16489, 288, 565, 2407, 14093, 273, 394, 2407, 5621, 565, 3155, 268, 31, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 2285, 381, 15397, 1138, 18, 2171, 1138, 534, 4487, 67, 1528, 12, 474, 1018, 13, 1216, 10616, 16, 16489, 288, 565, 2407, 14093, 273, 394, 2407, 5621, 565, 3155, 268, 31, 565, ...
public void widgetSelected(SelectionEvent e) { datePicker.setDate(null); datePicker.setDateText("");
public void widgetSelected(SelectionEvent arg0) {
public void widgetSelected(SelectionEvent e) { datePicker.setDate(null); datePicker.setDateText(""); TaskInfoEditor.this.markDirty(true); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/89d5a78e8a21d1c2e9db2fe2c55457b2c3bceac4/TaskInfoEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/TaskInfoEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 712, 13194, 18, 542, 1626, 12, 2011, 1769, 9506, 202, 712, 13194, 18, 542, 1626, 1528, 2932, 8863, 9506, 202, 2174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 712, 13194, 18, 542, 1626, 12, 2011, 1769, 9506, 202, 712, 13194, 18, 542, 1626, 1528, 2932, 8863, 9506, 202, 2174, ...
protected void addNavigationBar(Symbol sym) {
protected void addNavigationBar(int navigationContext) {
protected void addNavigationBar(Symbol sym) { try { String overviewLink = Location.asSeenFrom(new URI(ROOT_PAGE), uri).toString(); String indexLink = Location.asSeenFrom(new URI(INDEX_PAGE_NAME), uri).toString(); String helpLink = Location.asSeenFrom(new URI(PAGE_HELP), uri).toString(); page.printlnOTag("table", ATTRS_NAVIGATION).indent(); page.printlnOTag("tr").indent(); page.printlnOTag("td", ATTRS_NAVIGATION_LINKS).indent(); page.printlnOTag("table").indent(); page.printlnOTag("tr").indent(); // overview link if (sym.isRoot()) page.printlnTag("td", ATTRS_NAVIGATION_SELECTED, "Overview"); else { page.printOTag("td", ATTRS_NAVIGATION_ENABLED); page.printAhref(overviewLink, ROOT_FRAME_NAME, "Overview"); page.printlnCTag("td"); } // index link if (sym == indexPage) page.printlnTag("td", ATTRS_NAVIGATION_SELECTED, "Index"); else { page.printOTag("td", ATTRS_NAVIGATION_ENABLED); page.printAhref(indexLink, ROOT_FRAME_NAME, "Index"); page.printlnCTag("td"); } // help link if (sym == helpPage) page.printlnTag("td", ATTRS_NAVIGATION_SELECTED, "Help"); else { page.printOTag("td", ATTRS_NAVIGATION_ENABLED); page.printAhref(helpLink, ROOT_FRAME_NAME, "Help"); page.printlnCTag("td"); } page.undent(); page.printlnCTag("tr").undent(); page.printlnCTag("table").undent(); page.printlnCTag("td"); // product & version page.printlnOTag("td", ATTRS_NAVIGATION_PRODUCT).indent(); addDocumentationTitle(new XMLAttribute[]{ new XMLAttribute("class", "doctitle")}); page.undent(); page.printlnCTag("td").undent(); page.printlnCTag("tr"); page.printlnOTag("tr").indent(); page.printlnTag("td", "&nbsp;").undent(); page.printlnCTag("tr").undent(); page.printlnCTag("table"); } catch(Exception e) { throw Debug.abort(e); } }
10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/d498875b09190325828a3310e400a110336e38af/HTMLGenerator.java/buggy/sources/scala/tools/scaladoc/HTMLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 14301, 5190, 12, 5335, 5382, 13, 288, 202, 698, 288, 202, 565, 514, 18471, 2098, 273, 7050, 18, 345, 15160, 1265, 12, 2704, 3699, 12, 9185, 67, 11219, 3631, 2003, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 14301, 5190, 12, 5335, 5382, 13, 288, 202, 698, 288, 202, 565, 514, 18471, 2098, 273, 7050, 18, 345, 15160, 1265, 12, 2704, 3699, 12, 9185, 67, 11219, 3631, 2003, 2934, ...
org.exist.xquery.parser.XQueryAST tmp193_AST = null; tmp193_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp193_AST);
org.exist.xquery.parser.XQueryAST tmp199_AST = null; tmp199_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp199_AST);
public final void orderModifier() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST orderModifier_AST = null; { switch ( LA(1)) { case LITERAL_ascending: { org.exist.xquery.parser.XQueryAST tmp192_AST = null; tmp192_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp192_AST); match(LITERAL_ascending); break; } case LITERAL_descending: { org.exist.xquery.parser.XQueryAST tmp193_AST = null; tmp193_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp193_AST); match(LITERAL_descending); break; } case COMMA: case LITERAL_empty: case LITERAL_return: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { switch ( LA(1)) { case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp194_AST = null; tmp194_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp194_AST); match(LITERAL_empty); { switch ( LA(1)) { case LITERAL_greatest: { org.exist.xquery.parser.XQueryAST tmp195_AST = null; tmp195_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp195_AST); match(LITERAL_greatest); break; } case LITERAL_least: { org.exist.xquery.parser.XQueryAST tmp196_AST = null; tmp196_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp196_AST); match(LITERAL_least); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } break; } case COMMA: case LITERAL_return: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } orderModifier_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = orderModifier_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ddc6ab496ae303f007a96cb80352f3352974cbcf/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1353, 9829, 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, 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, 727, 918, 1353, 9829, 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, 3...
public int compare( String source, String target ) { int result = 0; if ( columnIndex == 1 ) result = super.compare( getDriverClassName( source ), getDriverClassName( target ) ); else if ( columnIndex == 2 ) result = super.compare( getDisplayName( source ), getDisplayName( target ) ); else if ( columnIndex == 3 ) result = super.compare( getUrlTemplate( source ), getUrlTemplate( target ) );
/* * @see java.util.Comparator#compare(java.lang.Object, * java.lang.Object) */ public int compare( Object o1, Object o2 ) { String source = (String) o1; String target = (String) o2; int result = 0; if ( columnIndex == 1 ) result = this.compareStr( getDriverClassName( source ), getDriverClassName( target ) ); else if ( columnIndex == 2 ) result = this.compareStr( getDisplayName( source ), getDisplayName( target ) ); else if ( columnIndex == 3 ) result = this.compareStr( getUrlTemplate( source ), getUrlTemplate( target ) );
private void sortDriver( final int columnIndex, final boolean asc ) { try { driverViewer.setSorter( new ViewerSorter( new RuleBasedCollator( ( (RuleBasedCollator) Collator.getInstance( ) ).getRules( ) ) { public int compare( String source, String target ) { int result = 0; if ( columnIndex == 1 ) result = super.compare( getDriverClassName( source ), getDriverClassName( target ) ); else if ( columnIndex == 2 ) result = super.compare( getDisplayName( source ), getDisplayName( target ) ); else if ( columnIndex == 3 ) result = super.compare( getUrlTemplate( source ), getUrlTemplate( target ) ); if ( !asc ) return result; else return result *= -1; } } ) ); } catch ( ParseException e ) { // TODO Auto-generated catch block e.printStackTrace( ); } refreshDriver( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f56460dc465d6004052327c67845d57d0ba26e89/JdbcDriverManagerDialog.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/dialogs/JdbcDriverManagerDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1524, 4668, 12, 727, 509, 14882, 16, 727, 1250, 6972, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 7407, 18415, 18, 542, 24952, 12, 394, 4441, 264, 24952, 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, 1152, 918, 1524, 4668, 12, 727, 509, 14882, 16, 727, 1250, 6972, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 7407, 18415, 18, 542, 24952, 12, 394, 4441, 264, 24952, 12, ...
Entity c3master = entity.getC3Master(); Vector c3members = new Vector(); Enumeration playerUnits = c.game.getPlayerEntities(c.getLocalPlayer()).elements(); while (playerUnits.hasMoreElements()) { Entity unit = (Entity) playerUnits.nextElement(); if (!entity.equals(unit) && entity.onSameC3NetworkAs(unit)) { c3members.addElement(unit); } } CustomMechDialog cmd = new CustomMechDialog(clientgui, c, entity, editable); cmd.refreshOptions(); cmd.setTitle(entity.getShortName()); cmd.setVisible(true); if (editable && cmd.isOkay()) { c.sendUpdateEntity(entity); if ((c3master != null && !c3master.equals(entity.getC3Master())) || (c3master == null && entity.getC3Master() != null)) { playerUnits = c3members.elements(); while (playerUnits.hasMoreElements()) { Entity unit = (Entity) playerUnits.nextElement(); c.sendUpdateEntity(unit); } } }
Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]); customizeMech (entity);
public void customizeMech(Entity entity) { boolean editable = clientgui.getBots().get(entity.getOwner().getName()) != null; Client c = null; if (editable) { c = (Client)clientgui.getBots().get(entity.getOwner().getName()); } else { editable |= entity.getOwnerId() == client.getLocalPlayer().getId(); c = client; } // When we customize a single entity's C3 network setting, // **ALL** members of the network may get changed. Entity c3master = entity.getC3Master(); Vector c3members = new Vector(); Enumeration playerUnits = c.game.getPlayerEntities(c.getLocalPlayer()).elements(); while (playerUnits.hasMoreElements()) { Entity unit = (Entity) playerUnits.nextElement(); if (!entity.equals(unit) && entity.onSameC3NetworkAs(unit)) { c3members.addElement(unit); } } // display dialog CustomMechDialog cmd = new CustomMechDialog(clientgui, c, entity, editable); cmd.refreshOptions(); cmd.setTitle(entity.getShortName()); cmd.setVisible(true); if (editable && cmd.isOkay()) { // send changes c.sendUpdateEntity(entity); // Do we need to update the members of our C3 network? if ((c3master != null && !c3master.equals(entity.getC3Master())) || (c3master == null && entity.getC3Master() != null)) { playerUnits = c3members.elements(); while (playerUnits.hasMoreElements()) { Entity unit = (Entity) playerUnits.nextElement(); c.sendUpdateEntity(unit); } } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/146b09124def37ab63c0bb3069d6ef9e2de68334/ChatLounge.java/buggy/megamek/src/megamek/client/ui/AWT/ChatLounge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20236, 4667, 343, 12, 1943, 1522, 13, 288, 3639, 1250, 13754, 273, 1004, 20292, 18, 588, 6522, 87, 7675, 588, 12, 1096, 18, 588, 5541, 7675, 17994, 10756, 480, 446, 31, 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, 20236, 4667, 343, 12, 1943, 1522, 13, 288, 3639, 1250, 13754, 273, 1004, 20292, 18, 588, 6522, 87, 7675, 588, 12, 1096, 18, 588, 5541, 7675, 17994, 10756, 480, 446, 31, 3639, ...
jLabel4.setText("Client 1:");
jLabel4.setText("Client 1 or Passphrase:");
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; jScrollPane1 = new javax.swing.JScrollPane(); jPanel1 = new javax.swing.JPanel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jTextField5 = new javax.swing.JTextField(); jTextField6 = new javax.swing.JTextField(); jTextField7 = new javax.swing.JTextField(); jTextField8 = new javax.swing.JTextField(); jTextField9 = new javax.swing.JTextField(); jTextField10 = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); acceptJButton = new javax.swing.JButton(); cancelJButton = new javax.swing.JButton(); setLayout(new java.awt.GridBagLayout()); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 20, 270, 20)); jPanel1.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 50, 270, 20)); jPanel1.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 80, 270, 20)); jPanel1.add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 110, 270, 20)); jPanel1.add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 140, 270, 20)); jPanel1.add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 170, 270, 20)); jPanel1.add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 200, 270, 20)); jPanel1.add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 230, 270, 20)); jPanel1.add(jTextField9, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 260, 270, 20)); jPanel1.add(jTextField10, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 290, 270, 20)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel1.setText("Is Client?:"); jTextField1.setText( String.valueOf( false )); jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 180, -1)); jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel2.setText("Address or Group:"); jTextField2.setText( "172.16.16.1 255.255.255.0" ); jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 180, -1)); jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel3.setText("Passphrase or Export:"); jTextField3.setText( "192.168.1.1 255.255.255.0" ); jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 80, 180, -1)); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel4.setText("Client 1:"); jTextField4.setText( "stan rbscott@metavize.com" ); jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, 180, -1)); jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel5.setText("Client 2:"); jTextField5.setText( "wendy rbscott@metavize.com" ); jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 140, 180, -1)); jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel6.setText("Group 1:"); jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 170, 180, -1)); jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel7.setText("Group 2:"); jPanel1.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, 180, -1)); jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel8.setText( "unused:" ); jPanel1.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 180, -1)); jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel9.setText("unused:"); jPanel1.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 260, 180, -1)); jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel10.setText("unused:"); jPanel1.add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 290, 180, -1)); acceptJButton.setText("Complete Configuration"); acceptJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { try { acceptJButtonActionPerformed(evt); } catch ( Exception e ) { System.out.println( "NO: " ); e.printStackTrace(); } } }); jPanel1.add(acceptJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 340, -1, -1)); cancelJButton.setText("Sit down!"); cancelJButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cancelJButtonActionPerformed(evt); } }); jPanel1.add(cancelJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(270, 340, -1, -1)); jScrollPane1.setViewportView(jPanel1); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10); add(jScrollPane1, gridBagConstraints); }//GEN-END:initComponents
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/8ad72cb31d743abbebb37d1320bb502c4759d435/RobertsJPanel.java/clean/tran/openvpn/main/com/metavize/tran/openvpn/gui/RobertsJPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 525, 26360, 21, 273, 394, 6863, 18, 5328, 310, 18, 46,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 525, 26360, 21, 273, 394, 6863, 18, 5328, 310, 18, 46,...
logger.debug(sessStr + "CHUNK contentLength = " + contentLength);
if (logger.isDebugEnabled()) { logger.debug(sessStr + "CHUNK contentLength = " + contentLength); }
public ParseResult parse(ByteBuffer b) throws ParseException { cancelTimer(); if (logger.isDebugEnabled()) { logger.debug(sessStr + "parsing chunk: " + b); } List l = new LinkedList(); boolean done = false; while (!done) { switch (state) { case PRE_FIRST_LINE_STATE: { logger.debug(sessStr + "in PRE_FIRST_LINE_STATE"); lengthCounter = 0; if (b.hasRemaining() && completeLine(b)) { ByteBuffer d = b.duplicate(); byte b1 = d.get(); if (LF == b1 || d.hasRemaining() && CR == b1 && LF == d.get()) { b = null; done = true; } else { state = FIRST_LINE_STATE; } } else if (b.remaining() > maxRequestLine) { throw new ParseException("URI length exceeded: " + AsciiCharBuffer.wrap(b)); } else { if (b.capacity() < maxRequestLine) { ByteBuffer r = ByteBuffer.allocate(maxRequestLine); r.put(b); b = r; } else { b.compact(); } done = true; } break; } case FIRST_LINE_STATE: { // Initialize the buffer, we'll need it until // we're done with HEADER state. this.buf = new byte[maxUri]; logger.debug(sessStr + "in FIRST_LINE_STATE"); if (completeLine(b)) { l.add(firstLine(b)); state = ACCUMULATE_HEADER_STATE; } else { b.compact(); done = true; } break; } case ACCUMULATE_HEADER_STATE: { logger.debug(sessStr + "in ACCUMULATE_HEADER_STATE"); if (!completeHeader(b)) { if (b.capacity() < maxHeader) { ByteBuffer nb = ByteBuffer.allocate(maxHeader + 2); nb.put(b); nb.flip(); b = nb; } else if (b.remaining() >= maxHeader) { String msg = "header exceeds " + maxHeader + ":\n" + AsciiCharBuffer.wrap(b); if (blockLongHeaders) { logger.warn(msg); // XXX send error page instead session.shutdownClient(); session.shutdownServer(); return new ParseResult(); } else { // allow session to be released, or not throw new ParseException(msg); } } b.compact(); done = true; } else { state = HEADER_STATE; } break; } case HEADER_STATE: { logger.debug(sessStr + "in HEADER_STATE"); header = header(b); l.add(header); // Done with buf now this.buf = null; assert !b.hasRemaining(); if (!clientSide) { if (null != requestLineToken) { HttpMethod method = requestLineToken.getMethod(); if (HttpMethod.HEAD == method) { transferEncoding = NO_BODY; } } } else { HttpRequestEvent evt = new HttpRequestEvent (requestLineToken.getRequestLine(), header.getValue("host"), lengthCounter); } if (NO_BODY == transferEncoding) { state = END_MARKER_STATE; } else if (CLOSE_ENCODING == transferEncoding) { lineBuffering(false); b = null; state = CLOSED_BODY_STATE; done = true; } else if (CHUNKED_ENCODING == transferEncoding) { lineBuffering(true); b = null; state = CHUNK_LENGTH_STATE; done = true; } else if (CONTENT_LENGTH_ENCODING == transferEncoding) { lineBuffering(false); assert !b.hasRemaining(); if (0 < contentLength) { readLimit(contentLength); b = null; state = CONTENT_LENGTH_BODY_STATE; done = true; } else { state = END_MARKER_STATE; } } else { assert false; } break; } case CLOSED_BODY_STATE: { logger.debug(sessStr + "in CLOSED_BODY_STATE!"); l.add(closedBody(b)); b = null; done = true; break; } case CONTENT_LENGTH_BODY_STATE: { logger.debug(sessStr + "in CONTENT_LENGTH_BODY_STATE"); l.add(chunk(b)); if (0 == contentLength) { b = null; // XXX handle trailer state = END_MARKER_STATE; } else { readLimit(contentLength); b = null; done = true; } break; } case CHUNK_LENGTH_STATE: // chunk-size = 1*HEX { logger.debug(sessStr + "in CHUNK_LENGTH_STATE"); if (!completeLine(b)) { b.compact(); done = true; break; } contentLength = chunkLength(b); logger.debug(sessStr + "CHUNK contentLength = " + contentLength); if (0 == contentLength) { b = null; state = LAST_CHUNK_STATE; } else { lineBuffering(false); assert !b.hasRemaining(); readLimit(contentLength); b = null; state = CHUNK_BODY_STATE; } done = true; break; } case CHUNK_BODY_STATE: { logger.debug(sessStr + "in CHUNKED_BODY_STATE"); l.add(chunk(b)); if (0 == contentLength) { lineBuffering(true); b = null; state = CHUNK_END_STATE; } else { readLimit(contentLength); b = null; } done = true; break; } case CHUNK_END_STATE: { logger.debug(sessStr + "in END_CHUNK_STATE"); if (!completeLine(b)) { b.compact(); done = true; break; } eatCrLf(b); assert !b.hasRemaining(); b = null; done = true; state = CHUNK_LENGTH_STATE; break; } case LAST_CHUNK_STATE: // last-chunk = 1*("0") [ chunk-extension ] CRLF { logger.debug(sessStr + "in LAST_CHUNK_STATE"); if (!completeLine(b)) { b.compact(); done = true; break; } eatCrLf(b); assert !b.hasRemaining(); b = null; state = END_MARKER_STATE; break; } case END_MARKER_STATE: { logger.debug(sessStr + "in END_MARKER_STATE"); EndMarker endMarker = EndMarker.MARKER; l.add(endMarker); lineBuffering(true); b = null; state = PRE_FIRST_LINE_STATE; if (!clientSide) { String contentType = header.getValue("content-type"); String mimeType = null == contentType ? null : MimeType.getType(contentType); RequestLine rl = null == requestLineToken ? null : requestLineToken.getRequestLine(); if (null != rl) { HttpResponseEvent evt = new HttpResponseEvent (rl, mimeType, contentLength); casing.getTransform().log(evt); } } else { HttpRequestEvent evt = requestLineToken .getRequestLine() .getHttpRequestEvent(); evt.setContentLength(contentLength); if (null == evt.getRequestLine()) { logger.warn("null request for: " + getSession().pipelineEndpoints()); } casing.getTransform().log(evt); } // Free up header storage header = null; done = true; break; } default: assert false; } } if (logger.isDebugEnabled()) { logger.debug(sessStr + "returing readBuffer: " + b); } scheduleTimer(TIMEOUT); if (null != b && !b.hasRemaining()) { String msg = "b does not have remaining: " + b + " in state: " + state; logger.error(msg); throw new ParseException(msg); } return new ParseResult(l, b); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/115e144444f9e3e5b13e66a4e36937ed2f6c876a/HttpParser.java/clean/tran/http/main/com/metavize/tran/http/HttpParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2884, 1253, 1109, 12, 12242, 324, 13, 1216, 10616, 565, 288, 3639, 3755, 6777, 5621, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 12, 23828, 1585, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2884, 1253, 1109, 12, 12242, 324, 13, 1216, 10616, 565, 288, 3639, 3755, 6777, 5621, 3639, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 5411, 1194, 18, 4148, 12, 23828, 1585, 39...
public String getNewCommentText(){ return addCommentsTextBox.getText(); }
public String getNewCommentText() { return addCommentsTextBox.getText(); }
public String getNewCommentText(){ return addCommentsTextBox.getText(); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/668f3dccaab6270ab035cf58d54d5d2045c7976f/ExistingBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/editor/ExistingBugEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 12654, 4469, 1528, 1435, 95, 3639, 327, 527, 9051, 1528, 3514, 18, 588, 1528, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 12654, 4469, 1528, 1435, 95, 3639, 327, 527, 9051, 1528, 3514, 18, 588, 1528, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
lockedInProject = getCms().getRequestContext().currentProject().getId();
lockedInProject = lock.getProjectId();
public String getFileListFunction() { boolean isInsideCurrentProject = false; // if mode is "listonly", only the list will be shown boolean galleryView = "galleryview".equals(getSettings().getExplorerMode()); // if mode is "projectview", all changed files in that project will be shown boolean projectView = "projectview".equals(getSettings().getExplorerMode()); // if VFS links should be displayed, this is true boolean showVfsLinks = getSettings().getExplorerShowLinks(); CmsResource currentResource = null; String currentFolder = getSettings().getExplorerResource(); boolean found = true; try { currentResource = getCms().readFileHeader(currentFolder); } catch (CmsException e) { // file was not readable found = false; } if (found) { if (showVfsLinks) { // file / folder exists and is readable currentFolder = "vfslink:" + currentFolder; } } else { // show the root folder in case of an error and reset the state currentFolder = "/"; showVfsLinks = false; try { currentResource = getCms().readFileHeader(currentFolder); } catch (CmsException e) { // should not happen } } long check = getCms().getFileSystemFolderChanges(); boolean newTreePlease = getSettings().getExplorerChecksum() != check; // get the currentFolder Id CmsUUID currentFolderId; if (currentResource.isFile()) { currentFolderId = currentResource.getParentId(); } else { currentFolderId = currentResource.getId(); } // start creating content StringBuffer content = new StringBuffer(2048); content.append("function initialize() {\n");// if (galleryView) {// content.append("top.openfolderMethod='openthisfolderflat';\n");// } else {// content.append("top.openfolderMethod='openthisfolder';\n");// } content.append("top.mode=\""); content.append(getSettings().getExplorerMode()); content.append("\";\n"); content.append("top.showlinks="); content.append(showVfsLinks); content.append(";\n"); // // the flaturl// if (getSettings().getExplorerFlaturl() != null) {// content.append("top.flaturl='");// content.append(getSettings().getExplorerFlaturl());// content.append("';\n");// } else if (!galleryView) {// content.append("top.flaturl='';\n");// } // the help_url content.append("top.head.helpUrl='explorer/index.html';\n"); // the project content.append("top.setProject("); content.append(getSettings().getProject()); content.append(");\n"); // the onlineProject content.append("top.setOnlineProject("); content.append(I_CmsConstants.C_PROJECT_ONLINE_ID); content.append(");\n"); // set the checksum for the tree content.append("top.setChecksum("); content.append(check); content.append(");\n"); // set the writeAccess for the current Folder boolean writeAccess = "explorerview".equals(getSettings().getExplorerMode()); if (writeAccess && (! showVfsLinks)) { try { CmsFolder test = getCms().readFolder(currentFolder); //writeAccess = test.getProjectId() == getSettings().getProject(); writeAccess = getCms().isInsideCurrentProject(test); } catch (CmsException e) { writeAccess = false; } } content.append("top.enableNewButton("); content.append(writeAccess); content.append(");\n"); // the folder content.append("top.setDirectory(\""); content.append(currentFolderId.hashCode()); content.append("\",\""); content.append(CmsResource.getPath(getSettings().getExplorerResource())); content.append("\");\n"); if (showVfsLinks) { content.append("top.addHist('"); content.append(CmsResource.getPath(getSettings().getExplorerResource())); content.append("')\n"); } content.append("top.rD();\n\n"); // now check which filelist colums we want to show int preferences = getDefaultPreferences(); boolean showTitle = (preferences & I_CmsWpConstants.C_FILELIST_TITLE) > 0; boolean showPermissions = (preferences & I_CmsWpConstants.C_FILELIST_PERMISSIONS) > 0; boolean showSize = (preferences & I_CmsWpConstants.C_FILELIST_SIZE) > 0; boolean showDateLastModified = (preferences & I_CmsWpConstants.C_FILELIST_DATE_LASTMODIFIED) > 0; boolean showUserWhoLastModified = (preferences & I_CmsWpConstants.C_FILELIST_USER_LASTMODIFIED) > 0; boolean showDateCreated = (preferences & I_CmsWpConstants.C_FILELIST_DATE_CREATED) > 0; boolean showUserWhoCreated = (preferences & I_CmsWpConstants.C_FILELIST_USER_CREATED) > 0; // now get the entries for the filelist Vector resources = getRessources(getSettings().getExplorerResource()); // if a folder contains to much entrys we split them to pages of C_ENTRYS_PER_PAGE length int startat = 0; int stopat = resources.size(); int selectedPage = 1; int numberOfPages = 0; int maxEntrys = C_ENTRYS_PER_PAGE; if (!(galleryView || projectView || showVfsLinks)) { selectedPage = getSettings().getExplorerPage(); if (stopat > maxEntrys) { // we have to splitt numberOfPages = (stopat / maxEntrys) + 1; if (selectedPage > numberOfPages) { // the user has changed the folder and then selected a page for the old folder selectedPage = 1; } startat = (selectedPage - 1) * maxEntrys; if ((startat + maxEntrys) < stopat) { stopat = startat + maxEntrys; } } } for (int i = startat; i < stopat; i++) { CmsResource res = (CmsResource)resources.elementAt(i); CmsLock lock = null; String path = getCms().readAbsolutePath(res); try { lock = getCms().getLock(res); } catch (CmsException e) { lock = CmsLock.getNullLock(); if (I_CmsLogChannels.C_LOGGING && A_OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_CRITICAL)) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_CRITICAL, this.getClass().getName() + " error getting lock state for resource " + res + " " + e.getMessage()); } } isInsideCurrentProject = getCms().isInsideCurrentProject(res); content.append("top.aF("); // position 1: name content.append("\""); content.append(res.getResourceName()); content.append("\","); // position 2: path if (projectView || showVfsLinks) { content.append("\""); // TODO: Check this (won't work with new repository) content.append(path); content.append("\","); } else { //is taken from top.setDirectory content.append("\"\","); } // position 3: title if (showTitle) { String title = ""; try { title = getCms().readProperty(getCms().readAbsolutePath(res), I_CmsConstants.C_PROPERTY_TITLE); } catch (CmsException e) { } if (title == null) { title = ""; } content.append("\""); if (title != null) content.append(Encoder.escapeHtml(title)); content.append("\","); } else { content.append("\"\","); } // position 4: type content.append(res.getType()); content.append(","); // position 5: link count content.append(res.getLinkCount() > 1 ? 1 : 0); content.append(","); // position 6: size if (res.isFolder() || (!showSize)) { content.append("\"\","); } else { content.append(res.getLength()); content.append(","); } // position 7: state content.append(res.getState()); content.append(","); // position 8: project int projectId = lock.isNullLock() ? res.getProjectId() : lock.getProjectId(); //int projectId = lock.isNullLock() ? getCms().getRequestContext().currentProject().getId() : lock.getProjectId(); content.append(projectId); content.append(","); // position 9: date of last modification if (showDateLastModified) { content.append("\""); content.append(getSettings().getMessages().getDateTime(res.getDateLastModified())); content.append("\","); } else { content.append("\"\","); } // position 10: user who last modified the resource if (showUserWhoLastModified) { content.append("\""); try { content.append(getCms().readUser(res.getUserLastModified()).getName()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } else { content.append("\"\","); } // position 11: date of creation if (showDateCreated) { content.append("\""); content.append(getSettings().getMessages().getDateTime(res.getDateCreated())); content.append("\","); } else { content.append("\"\","); } // position 12 : user who created the resource if (showUserWhoCreated) { content.append("\""); try { content.append(getCms().readUser(res.getUserCreated()).getName()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } else { content.append("\"\","); } // position 13: permissions if (showPermissions) { content.append("\""); try { content.append(getCms().getPermissions(getCms().readAbsolutePath(res)).getPermissionString()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } else { content.append("\"\","); } // position 14: locked by if (lock.isNullLock()) { content.append("\"\","); } else { content.append("\""); try { //content.append(getCms().lockedBy(res).getName()); content.append(getCms().readUser(lock.getUserId()).getName()); } catch (CmsException e) { content.append(e.getMessage()); } content.append("\","); } // position 15: type of lock content.append(lock.getType()); content.append(","); // position 16: name of project where the resource is locked in /* int lockedInProject = lock.isNullLock() ? getCms().getRequestContext().currentProject().getId() : lock.getProjectId(); String lockedInProjectName = ""; if (res.getProjectId()>0) { try { lockedInProjectName = getCms().readProject(res.getProjectId()).getName(); } catch (CmsException exc) { // ignore the exception - this is an old project so ignore it } } */ int lockedInProject = I_CmsConstants.C_UNKNOWN_ID; if (lock.isNullLock() && res.getState() != I_CmsConstants.C_STATE_UNCHANGED) { // resource is unlocked and modified lockedInProject = res.getProjectId(); } else { if (res.getState() != I_CmsConstants.C_STATE_UNCHANGED) { // resource is locked and modified lockedInProject = res.getProjectId(); } else { // resource is locked and unchanged lockedInProject = getCms().getRequestContext().currentProject().getId(); } } String lockedInProjectName = null; try { if (lockedInProject == I_CmsConstants.C_UNKNOWN_ID) { // the resource is unlocked and unchanged lockedInProjectName = ""; } else { lockedInProjectName = getCms().readProject(lockedInProject).getName(); } } catch (CmsException exc) { // where did my project go? lockedInProjectName = ""; } content.append("\""); content.append(lockedInProjectName); content.append("\","); // position 17: id of project where resource belongs to content.append(lockedInProject); content.append(",\""); // position 18: project state, I=resource is inside current project, O=resource is outside current project if (isInsideCurrentProject) { content.append("I"); } else { content.append("O"); } content.append("\""); content.append(");\n"); } // now the tree, only if changed if (newTreePlease && (!(galleryView || projectView || showVfsLinks))) { content.append("\ntop.rT();\n"); List tree = null; try { tree = getCms().getFolderTree(); } catch (CmsException e) { tree = new Vector(); } int startAt = 1; CmsUUID parentId = CmsUUID.getNullUUID(); boolean grey = false; if (CmsProject.isOnlineProject(getSettings().getProject())) { // all easy: we are in the onlineProject CmsFolder rootFolder = (CmsFolder)tree.get(0); content.append("top.aC(\""); content.append(rootFolder.getId().hashCode()); content.append("\", "); content.append("\""); content.append(getSettings().getMessages().key("title.rootfolder")); content.append("\", \""); content.append(rootFolder.getParentId().hashCode()); content.append("\", false);\n"); for (int i = startAt; i < tree.size(); i++) { CmsFolder folder = (CmsFolder)tree.get(i); content.append("top.aC(\""); // id content.append(folder.getId().hashCode()); content.append("\", "); // name content.append("\""); content.append(folder.getResourceName()); content.append("\", \""); // parentId content.append(folder.getParentId().hashCode()); content.append("\", false);\n"); } } else { // offline Project Hashtable idMixer = new Hashtable(); CmsFolder rootFolder = (CmsFolder)tree.get(0); String folderToIgnore = null; if (getCms().isInsideCurrentProject(rootFolder)) { grey = false; } else { grey = true; } content.append("top.aC(\""); content.append(rootFolder.getId().hashCode()); content.append("\", "); content.append("\""); content.append(getSettings().getMessages().key("title.rootfolder")); content.append("\", \""); content.append(rootFolder.getParentId().hashCode()); content.append("\", "); content.append(grey); content.append(");\n"); for (int i = startAt; i < tree.size(); i++) { CmsFolder folder = (CmsFolder)tree.get(i); if ((folder.getState() == I_CmsConstants.C_STATE_DELETED) || (getCms().readAbsolutePath(folder).equals(folderToIgnore))) { // if the folder is deleted - ignore it and the following online res folderToIgnore = getCms().readAbsolutePath(folder); } else { if (! CmsProject.isOnlineProject(folder.getProjectId())) { //grey = false; parentId = folder.getParentId(); try { // the next res is the same res in the online-project: ignore it! if (getCms().readAbsolutePath(folder).equals(getCms().readAbsolutePath((CmsFolder)tree.get(i + 1)))) { i++; idMixer.put(tree.get(i), folder.getId()); } } catch (IndexOutOfBoundsException exc) { // ignore the exception, this was the last resource } } else { //grey = true; parentId = folder.getParentId(); if (idMixer.containsKey(parentId)) { parentId = (CmsUUID) idMixer.get(parentId); } } if (getCms().isInsideCurrentProject(folder)) { grey = false; } else { grey = true; } content.append("top.aC(\""); // id content.append(folder.getId().hashCode()); content.append("\", "); // name content.append("\""); content.append(folder.getResourceName()); content.append("\", \""); // parentId content.append(parentId.hashCode()); content.append("\", "); content.append(grey); content.append(");\n"); } } } } content.append("top.dU(document,"); content.append(numberOfPages); content.append(","); content.append(selectedPage); content.append("); \n"); content.append("}\n"); return content.toString(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/200ab63e2e797ef740dbc19eed11bdb5c86ee471/CmsExplorer.java/clean/src/org/opencms/workplace/CmsExplorer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6034, 682, 2083, 1435, 288, 540, 1250, 353, 18619, 3935, 4109, 273, 629, 31, 9079, 368, 309, 1965, 353, 315, 1098, 3700, 3113, 1338, 326, 666, 903, 506, 12188, 3639, 1250, 1362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6034, 682, 2083, 1435, 288, 540, 1250, 353, 18619, 3935, 4109, 273, 629, 31, 9079, 368, 309, 1965, 353, 315, 1098, 3700, 3113, 1338, 326, 666, 903, 506, 12188, 3639, 1250, 1362...
case ID: case INT: 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 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: return s26;
NoViableAltException nvae = new NoViableAltException("", 31, 0, input);
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case EOL: return s21; case -1: case 28: case 29: case 30: return s5; case ID: case INT: 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 14: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 24: case 25: case 26: case 27: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: return s26; default: NoViableAltException nvae = new NoViableAltException("", 33, 12, input); throw nvae; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/23e6345ce1df19444a51fe623f6e8f8a637abc8b/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 19995, 30, 10792, 327, 272, 5340, 31, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 19995, 30, 10792, 327, 272, 5340, 31, 7734, ...
return getBoolRepresentation(getDialogExpandInheritedPermissions());
return String.valueOf(getDialogExpandInheritedPermissions());
public String getDialogExpandInheritedPermissionsString() { return getBoolRepresentation(getDialogExpandInheritedPermissions()); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e4e19c0a90797aecd9ee0ffc8ee1a741d57f37ee/CmsDefaultUserSettings.java/clean/src/org/opencms/configuration/CmsDefaultUserSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 31774, 12271, 29078, 6521, 780, 1435, 288, 3639, 327, 514, 18, 1132, 951, 12, 588, 6353, 12271, 29078, 6521, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 31774, 12271, 29078, 6521, 780, 1435, 288, 3639, 327, 514, 18, 1132, 951, 12, 588, 6353, 12271, 29078, 6521, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...