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
ResourceManager.getI18NString("autoload.failed_EXC_"),
EMFCoreMessages.autoload_failed_EXC_,
public static void autoload(Resource res, EObject eObject) { if (res instanceof ILogicalResource) { ILogicalResource logical = (ILogicalResource) res; Resource unit = AbstractResourceWrapper.unwrap( getPhysicalResource(logical, eObject.eContainer())); if (isAutoLoadable(unit) && !logical.isLoaded(eObject)) { try { if (Trace.isEnabled(MSLDebugOptions.RESOURCES)) { URI base = logical.getURI(); URI relative = unit.getURI().deresolve(base); Trace.trace( MSLDebugOptions.RESOURCES, "Auto-loading unit: " + relative + " of: " + base); //$NON-NLS-1$ //$NON-NLS-2$ } logical.load(eObject); } catch (IOException e) { Trace.catching( LogicalResourceUtil.class, "autoload(Resource, EObject)", e); //$NON-NLS-1$ Log.error( MSLPlugin.getDefault(), MSLStatusCodes.LOGICAL_AUTOLOAD_FAILED, ResourceManager.getI18NString("autoload.failed_EXC_"), //$NON-NLS-1$ e); } } } }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/cfbbc380135d56e72a92fb10b8d52c0cf04e3554/LogicalResourceUtil.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.emf.core/src/org/eclipse/gmf/runtime/emf/core/internal/resources/LogicalResourceUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 16674, 12, 1420, 400, 16, 8091, 425, 921, 13, 288, 202, 202, 430, 261, 455, 1276, 467, 17955, 1420, 13, 288, 1082, 202, 45, 17955, 1420, 6374, 273, 261, 45, 17955, 1420, 13, 400, 31, 1082, 202, 1420, 2836, 273, 4115, 1420, 3611, 18, 318, 4113, 12, 9506, 202, 588, 18136, 1420, 12, 20300, 16, 425, 921, 18, 73, 2170, 1435, 10019, 25083, 202, 430, 261, 291, 4965, 2563, 429, 12, 4873, 13, 597, 401, 20300, 18, 291, 8835, 12, 73, 921, 3719, 288, 9506, 202, 698, 288, 6862, 202, 430, 261, 3448, 18, 291, 1526, 12, 3537, 48, 2829, 1320, 18, 11395, 55, 3719, 288, 25083, 202, 3098, 1026, 273, 6374, 18, 588, 3098, 5621, 25083, 202, 3098, 3632, 273, 2836, 18, 588, 3098, 7675, 765, 281, 5390, 12, 1969, 1769, 6862, 6862, 9506, 202, 3448, 18, 5129, 12, 6862, 1082, 202, 3537, 48, 2829, 1320, 18, 11395, 55, 16, 6862, 1082, 202, 6, 4965, 17, 15174, 2836, 30, 315, 397, 3632, 397, 315, 434, 30, 315, 397, 1026, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 6862, 202, 97, 6862, 25083, 202, 20300, 18, 945, 12, 73, 921, 1769, 9506, 202, 97, 1044, 261, 14106, 425, 13, 288, 6862, 202, 3448, 18, 14683, 310, 12, 25083, 202, 17955, 1420, 1304, 18, 1106, 16, 25083, 202, 6, 19832, 12, 1420, 16, 8091, 2225, 16, 425, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16674, 12, 1420, 400, 16, 8091, 425, 921, 13, 288, 202, 202, 430, 261, 455, 1276, 467, 17955, 1420, 13, 288, 1082, 202, 45, 17955, 1420, 6374, 273, 261, 45, 17955, 1420, 13, 400, 31, 1082, 202, 1420, 2836, 273, 4115, 1420, 3611, 18, 318, 4113, 12, 9506, 202, 588, 18136, 1420, 12, 20300, 16, 425, 921, 18, 73, 2170, 1435, 10019, 25083, 202, 430, 261, 291, 4965, 2563, 429, 12, 4873, 13, 597, 401, 20300, 18, 291, 8835, 12, 73, 921, 3719, 288, 9506, 202, 698, 288, 6862, 202, 430, 261, 3448, 18, 291, 1526, 12, 3537, 48, 2829, 1320, 18, 11395, 55, 3719, 288, 25083, 202, 3098, 1026, 273, 6374, 18, 588, 2 ]
public static Point asPoint(String value, Point dflt) {
public static Point asPoint(String value) throws DataFormatException { if (value == null) throw new DataFormatException("Null doesn't represent a valid point"); StringTokenizer stok = new StringTokenizer(value, ","); String x = stok.nextToken(); String y = stok.nextToken(); int xval = 0, yval = 0;
public static Point asPoint(String value, Point dflt) { try { return asPoint(value); } catch (DataFormatException e) { return dflt; }}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/058e30cb9dffd83edb17372d63d42a9bece74b29/StringConverter.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/resource/StringConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 4686, 487, 2148, 12, 780, 460, 16, 4686, 302, 31864, 13, 288, 202, 698, 288, 202, 202, 2463, 487, 2148, 12, 1132, 1769, 202, 97, 1044, 261, 751, 9291, 425, 13, 288, 202, 202, 2463, 302, 31864, 31, 202, 9090, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 4686, 487, 2148, 12, 780, 460, 16, 4686, 302, 31864, 13, 288, 202, 698, 288, 202, 202, 2463, 487, 2148, 12, 1132, 1769, 202, 97, 1044, 261, 751, 9291, 425, 13, 288, 202, 202, 2463, 302, 31864, 31, 202, 9090, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Table table = simpleValue.getTable();
private static void bindSimpleValue(GrailsDomainClassProperty grailsProp, SimpleValue simpleValue,Mappings mappings) { // set type simpleValue.setTypeName(grailsProp.getType().getName()); Column column = new Column(); column.setValue(simpleValue); bindColumn(grailsProp, column); Table table = simpleValue.getTable(); if(table != null) table.addColumn(column); simpleValue.addColumn(column); }
28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/c2697e297cf4ea4d41820d17d78fa6c08272c413/GrailsDomainBinder.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1993, 5784, 620, 12, 14571, 14573, 3748, 797, 1396, 3087, 14573, 4658, 16, 4477, 620, 4143, 620, 16, 7742, 7990, 13, 288, 202, 202, 759, 444, 618, 202, 202, 9647, 620, 18, 542, 7947, 12, 2752, 14573, 4658, 18, 588, 559, 7675, 17994, 10663, 9506, 202, 1494, 1057, 273, 394, 4753, 5621, 202, 202, 2827, 18, 542, 620, 12, 9647, 620, 1769, 202, 202, 4376, 1494, 12, 2752, 14573, 4658, 16, 1057, 1769, 9506, 202, 1388, 1014, 273, 4143, 620, 18, 588, 1388, 5621, 9506, 202, 430, 12, 2121, 480, 446, 13, 1014, 18, 1289, 1494, 12, 2827, 1769, 9506, 202, 9647, 620, 18, 1289, 1494, 12, 2827, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1993, 5784, 620, 12, 14571, 14573, 3748, 797, 1396, 3087, 14573, 4658, 16, 4477, 620, 4143, 620, 16, 7742, 7990, 13, 288, 202, 202, 759, 444, 618, 202, 202, 9647, 620, 18, 542, 7947, 12, 2752, 14573, 4658, 18, 588, 559, 7675, 17994, 10663, 9506, 202, 1494, 1057, 273, 394, 4753, 5621, 202, 202, 2827, 18, 542, 620, 12, 9647, 620, 1769, 202, 202, 4376, 1494, 12, 2752, 14573, 4658, 16, 1057, 1769, 9506, 202, 1388, 1014, 273, 4143, 620, 18, 588, 1388, 5621, 9506, 202, 430, 12, 2121, 480, 446, 13, 1014, 18, 1289, 1494, 12, 2827, 1769, 9506, 202, 9647, 620, 18, 1289, 1494, 12, 2827, 1769, 1082, 202, 97, 2, -100, -100 ]
+ LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files.no") + "</p>");
+ LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files.no") + "</p>");
private void listBitstreams() throws IOException { JspWriter out = pageContext.getOut(); HttpServletRequest request = (HttpServletRequest) pageContext .getRequest(); out.print("<table align=\"center\" class=\"miscTable\"><tr>"); out.println("<td class=\"evenRowEvenCol\"><p><strong>" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files") + "</strong></p>"); Bundle[] bundles = item.getBundles("ORIGINAL"); if (bundles.length == 0) { out.println("<p>" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.files.no") + "</p>"); } else { boolean html = false; String handle = item.getHandle(); Bitstream primaryBitstream = null; Bundle[] bunds = item.getBundles("ORIGINAL"); Bundle[] thumbs = item.getBundles("THUMBNAIL"); // if item contains multiple bitstreams, display bitstream // description boolean multiFile = false; Bundle[] allBundles = item.getBundles(); for (int i = 0, filecount = 0; (i < allBundles.length) && !multiFile; i++) { filecount += allBundles[i].getBitstreams().length; multiFile = (filecount > 1); } // check if primary bitstream is html if (bunds[0] != null) { Bitstream[] bits = bunds[0].getBitstreams(); for (int i = 0; (i < bits.length) && !html; i++) { if (bits[i].getID() == bunds[0].getPrimaryBitstreamID()) { html = bits[i].getFormat().getMIMEType().equals( "text/html"); primaryBitstream = bits[i]; } } } out.println("<table cellpadding=\"6\"><tr><th id=\"t1\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.file") + "</th>"); if (multiFile) { out.println("<th id=\"t2\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.description") + "</th>"); } out.println("<th id=\"t3\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.filesize") + "</th><th id=\"t4\" class=\"standard\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.fileformat") + "</th></tr>"); // if primary bitstream is html, display a link for only that one to // HTMLServlet if (html) { // If no real Handle yet (e.g. because Item is in workflow) // we use the 'fake' Handle db-id/1234 where 1234 is the // database ID of the item. if (handle == null) { handle = "db-id/" + item.getID(); } out.print("<tr><td headers=\"t1\" class=\"standard\">"); out.print(primaryBitstream.getName()); if (multiFile) { out.print("</td><td headers=\"t2\" class=\"standard\">"); String desc = primaryBitstream.getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td headers=\"t3\" class=\"standard\">"); out.print(primaryBitstream.getSize() / 1024); out.print("Kb</td><td headers=\"t4\" class=\"standard\">"); out.print(primaryBitstream.getFormatDescription()); out.print("</td><td class=\"standard\"><a target=\"_blank\" href=\""); out.print(request.getContextPath()); out.print("/html/"); out.print(handle + "/"); out.print(UIUtil.encodeBitstreamName(primaryBitstream.getName(), Constants.DEFAULT_ENCODING)); out.print("\">" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</a></td></tr>"); } else { for (int i = 0; i < bundles.length; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; k < bitstreams.length; k++) { // Skip internal types if (!bitstreams[k].getFormat().isInternal()) { out.print("<tr><td headers=\"t1\" class=\"standard\">"); out.print(bitstreams[k].getName()); if (multiFile) { out.print("</td><td headers=\"t2\" class=\"standard\">"); String desc = bitstreams[k].getDescription(); out.print((desc != null) ? desc : ""); } out.print("</td><td headers=\"t3\" class=\"standard\">"); out.print(bitstreams[k].getSize() / 1024); out.print("Kb</td><td headers=\"t4\" class=\"standard\">"); out.print(bitstreams[k].getFormatDescription()); out .print("</td><td class=\"standard\" align=\"center\">"); // Work out what the bitstream link should be // (persistent // ID if item has Handle) String bsLink = "<a target=\"_blank\" href=\"" + request.getContextPath(); if ((handle != null) && (bitstreams[k].getSequenceID() > 0)) { bsLink = bsLink + "/bitstream/" + item.getHandle() + "/" + bitstreams[k].getSequenceID() + "/"; } else { bsLink = bsLink + "/retrieve/" + bitstreams[k].getID() + "/"; } bsLink = bsLink + UIUtil.encodeBitstreamName( bitstreams[k].getName(), Constants.DEFAULT_ENCODING) + "\">"; // is there a thumbnail bundle? if ((thumbs.length > 0) && showThumbs) { String tName = bitstreams[k].getName() + ".jpg"; Bitstream tb = thumbs[0] .getBitstreamByName(tName); if (tb != null) { String myPath = request.getContextPath() + "/retrieve/" + tb.getID() + "/" + UIUtil.encodeBitstreamName(tb.getName(), Constants.DEFAULT_ENCODING); out.print(bsLink); out.print("<img src=\"" + myPath + "\" "); out.print("alt=\"" + tName + "\" /></a><br />"); } } out.print(bsLink + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.ItemTag.view") + "</a></td></tr>"); } } } } out.println("</table>"); } out.println("</td></tr></table>"); }
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/d10ff6f3006ca734ef2962a5a697f9fe0ef9fd36/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5621, 202, 565, 596, 18, 1188, 2932, 32, 2121, 5689, 5189, 5693, 2412, 667, 5189, 23667, 1388, 2412, 4438, 313, 2984, 1769, 3639, 596, 18, 8222, 2932, 32, 4465, 667, 5189, 16728, 1999, 8321, 914, 2412, 4438, 84, 4438, 9110, 2984, 13491, 397, 6458, 6289, 18, 588, 2042, 1235, 1079, 12, 2433, 1042, 16, 27573, 315, 3341, 18, 2377, 909, 18, 2910, 18, 4875, 4881, 18, 2924, 337, 346, 18, 1180, 1805, 18, 2354, 7923, 13491, 397, 6823, 9110, 4695, 84, 2984, 1769, 3639, 8539, 8526, 11408, 273, 761, 18, 588, 16151, 2932, 24685, 1013, 8863, 3639, 309, 261, 22773, 18, 2469, 422, 374, 13, 3639, 288, 5411, 596, 18, 8222, 2932, 32, 84, 2984, 18701, 397, 6458, 6289, 18, 588, 2042, 1235, 1079, 12, 2433, 1042, 16, 4766, 565, 315, 3341, 18, 2377, 909, 18, 2910, 18, 4875, 4881, 18, 2924, 337, 346, 18, 1180, 1805, 18, 2354, 18, 2135, 7923, 18701, 397, 6823, 84, 2984, 1769, 3639, 289, 3639, 469, 3639, 288, 5411, 1250, 1729, 273, 629, 31, 5411, 514, 1640, 273, 761, 18, 588, 3259, 5621, 5411, 6539, 3256, 3354, 5775, 3256, 273, 446, 31, 5411, 8539, 8526, 324, 19156, 273, 761, 18, 588, 16151, 2932, 24685, 1013, 8863, 5411, 8539, 8526, 286, 10099, 273, 761, 18, 588, 16151, 2932, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 5775, 16320, 1435, 1216, 1860, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 3639, 9984, 590, 273, 261, 2940, 18572, 13, 21442, 7734, 263, 588, 691, 5621, 202, 565, 596, 18, 1188, 2932, 32, 2121, 5689, 5189, 5693, 2412, 667, 5189, 23667, 1388, 2412, 4438, 313, 2984, 1769, 3639, 596, 18, 8222, 2932, 32, 4465, 667, 5189, 16728, 1999, 8321, 914, 2412, 4438, 84, 4438, 9110, 2984, 13491, 397, 6458, 6289, 18, 588, 2042, 1235, 1079, 12, 2433, 1042, 16, 27573, 315, 3341, 18, 2377, 909, 18, 2910, 18, 4875, 4881, 18, 2924, 337, 346, 18, 1180, 1805, 18, 2354, 7923, 13491, 397, 6823, 9110, 4695, 84, 2984, 1769, 3639, 8539, 2 ]
assertEquals("1.0", openParen, ii.braceType); assertEquals("1.2", 2, ii.distToBrace); assertEquals("1.1", 2, ii.distToNewline); assertEquals("1.3", 0, ii.distToPrevNewline);
_assertIndentInfo(ii, openParen, 2, 2, 0);
public void testIndentInfoParen() throws BadLocationException { // just paren BraceReduction rm = doc._reduced; doc.insertString(0, "\n(\n", null); IndentInfo ii = rm.getIndentInformation(); assertEquals("1.0", openParen, ii.braceType); assertEquals("1.2", 2, ii.distToBrace); assertEquals("1.1", 2, ii.distToNewline); assertEquals("1.3", 0, ii.distToPrevNewline); // paren with stuff in front doc.insertString(1, " helo ", null); doc.move(2); // \n helo (\n# assertEquals("0.1", "\n helo (\n", doc.getText(0, doc.getLength())); ii = rm.getIndentInformation(); assertEquals("2.0", openParen, ii.braceType); assertEquals("2.1", 9, ii.distToNewline); assertEquals("2.2", 2, ii.distToBrace); //single layer brace doc.move(-1); doc.insertString(9, " (", null); doc.move(1); // \n helo ( (\n# assertEquals("0.2", "\n helo ( (\n", doc.getText(0, doc.getLength())); ii = rm.getIndentInformation(); assertEquals("3.0", openParen, ii.braceType); assertEquals("3.1", 11, ii.distToNewline); assertEquals("3.2", 2, ii.distToBrace); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/41dbd1f79552ad2c4983397e3a693dbde7c41bb5/IndentTest.java/clean/drjava/src/edu/rice/cs/drjava/IndentTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 7790, 966, 25520, 1435, 1216, 6107, 2735, 503, 288, 565, 368, 2537, 22146, 565, 605, 9963, 3715, 4062, 6692, 273, 997, 6315, 1118, 26372, 31, 565, 997, 18, 6387, 780, 12, 20, 16, 1548, 82, 4713, 82, 3113, 446, 1769, 565, 28653, 966, 6072, 273, 6692, 18, 588, 7790, 5369, 5621, 565, 1815, 8867, 2932, 21, 18, 20, 3113, 1696, 25520, 16, 6072, 18, 70, 9963, 559, 1769, 565, 1815, 8867, 2932, 21, 18, 22, 3113, 576, 16, 6072, 18, 4413, 774, 21965, 1769, 565, 1815, 8867, 2932, 21, 18, 21, 3113, 576, 16, 6072, 18, 4413, 774, 26754, 1769, 565, 1815, 8867, 2932, 21, 18, 23, 3113, 374, 16, 6072, 18, 4413, 774, 9958, 26754, 1769, 565, 368, 22146, 598, 10769, 316, 6641, 565, 997, 18, 6387, 780, 12, 21, 16, 315, 225, 13150, 83, 3104, 446, 1769, 565, 997, 18, 8501, 12, 22, 1769, 565, 368, 521, 82, 225, 13150, 83, 17938, 82, 7, 565, 1815, 8867, 2932, 20, 18, 21, 3113, 1548, 82, 225, 13150, 83, 17938, 82, 3113, 997, 18, 588, 1528, 12, 20, 16, 997, 18, 588, 1782, 1435, 10019, 565, 6072, 273, 6692, 18, 588, 7790, 5369, 5621, 565, 1815, 8867, 2932, 22, 18, 20, 3113, 1696, 25520, 16, 6072, 18, 70, 9963, 559, 1769, 565, 1815, 8867, 2932, 22, 18, 21, 3113, 2468, 16, 6072, 18, 4413, 774, 26754, 1769, 565, 1815, 8867, 2932, 22, 18, 22, 3113, 576, 16, 6072, 18, 4413, 774, 21965, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7790, 966, 25520, 1435, 1216, 6107, 2735, 503, 288, 565, 368, 2537, 22146, 565, 605, 9963, 3715, 4062, 6692, 273, 997, 6315, 1118, 26372, 31, 565, 997, 18, 6387, 780, 12, 20, 16, 1548, 82, 4713, 82, 3113, 446, 1769, 565, 28653, 966, 6072, 273, 6692, 18, 588, 7790, 5369, 5621, 565, 1815, 8867, 2932, 21, 18, 20, 3113, 1696, 25520, 16, 6072, 18, 70, 9963, 559, 1769, 565, 1815, 8867, 2932, 21, 18, 22, 3113, 576, 16, 6072, 18, 4413, 774, 21965, 1769, 565, 1815, 8867, 2932, 21, 18, 21, 3113, 576, 16, 6072, 18, 4413, 774, 26754, 1769, 565, 1815, 8867, 2932, 21, 18, 23, 3113, 374, 16, 6072, 18, 4413, 774, 9958, 2 ]
Debug.output(Debug.INTERCEPTOR | Debug.DEBUG1,
Debug.output(Debug.INTERCEPTOR | Debug.DEBUG1,
public static Vector getORBInitializers() { Enumeration prop_names = _props.propertyNames(); Vector orb_initializers = new Vector(); String initializer_prefix = "org.omg.PortableInterceptor.ORBInitializerClass."; //Test EVERY property if prefix matches. //I'm open to suggestions for more efficient ways (noffke) while(prop_names.hasMoreElements()) { String prop = (String) prop_names.nextElement(); if ( prop.startsWith( initializer_prefix )) { String name = _props.getProperty( prop ); if( name == null || name.length() == 0 ) { if( prop.length() > initializer_prefix.length() ) { name = prop.substring( initializer_prefix.length() ); } } if( name == null ) { continue; } try { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (cl == null) cl = ClassLoader.getSystemClassLoader(); orb_initializers.addElement(cl.loadClass(name).newInstance()); Debug.output(Debug.INTERCEPTOR | Debug.DEBUG1, "Build: " + name); } catch (Exception e) { Debug.output(1, e); Debug.output( 1, "Unable to build ORBInitializer from >>" + name + "<<" ); } } } return orb_initializers; }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/427b81af6905dd67a3d2e38369db7effb2834f87/Environment.java/buggy/src/org/jacorb/util/Environment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 5589, 336, 916, 38, 4435, 8426, 1435, 565, 288, 3639, 13864, 2270, 67, 1973, 273, 389, 9693, 18, 4468, 1557, 5621, 3639, 5589, 16823, 67, 6769, 8426, 273, 394, 5589, 5621, 3639, 514, 12562, 67, 3239, 273, 2398, 315, 3341, 18, 362, 75, 18, 2617, 429, 10281, 18, 916, 38, 14729, 797, 1199, 31, 7734, 368, 4709, 512, 17529, 1272, 309, 1633, 1885, 18, 3639, 368, 45, 17784, 1696, 358, 17969, 364, 1898, 14382, 16226, 261, 82, 3674, 4491, 13, 3639, 1323, 12, 5986, 67, 1973, 18, 5332, 7417, 3471, 10756, 3639, 288, 5411, 514, 2270, 273, 261, 780, 13, 2270, 67, 1973, 18, 4285, 1046, 5621, 5411, 309, 261, 2270, 18, 17514, 1190, 12, 12562, 67, 3239, 8623, 5411, 288, 7734, 514, 508, 273, 389, 9693, 18, 588, 1396, 12, 2270, 11272, 7734, 309, 12, 508, 422, 446, 747, 5397, 508, 18, 2469, 1435, 422, 374, 262, 7734, 288, 10792, 309, 12, 2270, 18, 2469, 1435, 405, 12562, 67, 3239, 18, 2469, 1435, 262, 10792, 288, 13491, 508, 273, 11794, 2270, 18, 28023, 12, 12562, 67, 3239, 18, 2469, 1435, 11272, 10792, 289, 7734, 289, 7734, 309, 12, 508, 422, 446, 262, 7734, 288, 10792, 1324, 31, 7734, 289, 7734, 775, 7734, 288, 1082, 565, 9403, 927, 273, 1875, 202, 3830, 18, 2972, 3830, 7675, 29120, 7805, 5621, 1082, 565, 309, 261, 830, 422, 446, 13, 1082, 202, 830, 273, 9403, 18, 588, 3163, 7805, 5621, 10792, 16823, 67, 6769, 8426, 18, 1289, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5589, 336, 916, 38, 4435, 8426, 1435, 565, 288, 3639, 13864, 2270, 67, 1973, 273, 389, 9693, 18, 4468, 1557, 5621, 3639, 5589, 16823, 67, 6769, 8426, 273, 394, 5589, 5621, 3639, 514, 12562, 67, 3239, 273, 2398, 315, 3341, 18, 362, 75, 18, 2617, 429, 10281, 18, 916, 38, 14729, 797, 1199, 31, 7734, 368, 4709, 512, 17529, 1272, 309, 1633, 1885, 18, 3639, 368, 45, 17784, 1696, 358, 17969, 364, 1898, 14382, 16226, 261, 82, 3674, 4491, 13, 3639, 1323, 12, 5986, 67, 1973, 18, 5332, 7417, 3471, 10756, 3639, 288, 5411, 514, 2270, 273, 261, 780, 13, 2270, 67, 1973, 18, 4285, 1046, 5621, 5411, 309, 261, 2270, 18, 17514, 1190, 12, 12562, 2 ]
transfersTable = new Table(group, SWT.CHECK | SWT.BORDER); transfersTable.setLayoutData(new GridData(GridData.FILL_BOTH));
transfersTable = new Table(group, SWT.CHECK | SWT.BORDER); transfersTable.setLayoutData(new GridData(GridData.FILL_BOTH));
protected void createTransfersList(Composite composite) { allButton = new Button(composite, SWT.RADIO); allButton.setText(getAllButtonText()); chooseImportsButton = new Button(composite, SWT.RADIO); chooseImportsButton.setText(getChooseButtonText()); group = new Group(composite, SWT.NONE); group.setText(PreferencesMessages .getString("WizardPreferencesExportPage1.preferences")); //$NON-NLS-1$ GridData data = new GridData(GridData.FILL_BOTH); data.horizontalSpan = 2; group.setLayoutData(data); GridLayout layout = new GridLayout(); group.setLayout(layout); transfersTable = new Table(group, SWT.CHECK | SWT.BORDER); transfersTable.setLayoutData(new GridData(GridData.FILL_BOTH)); final Label text = new Label(group, SWT.WRAP); text.setLayoutData(new GridData(GridData.FILL_BOTH)); transfersTable.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { updateDescription(); } public void widgetDefaultSelected(SelectionEvent e) { updateDescription(); } private void updateDescription() { if (transfersTable.getSelectionCount() > 0) { TableItem item = transfersTable.getSelection()[0]; text.setText(((PreferenceTransferElement) item.getData()) .getDescription()); } else text.setText(""); //$NON-NLS-1$ } }); allButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { updateTransferAll(allButton.getSelection()); } public void widgetDefaultSelected(SelectionEvent e) { updateTransferAll(allButton.getSelection()); } }); addSelectionButtons(group); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/07624c67770db65cb83e43199aa059a496edb575/WizardPreferencesPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 1429, 18881, 682, 12, 9400, 9635, 13, 288, 202, 202, 454, 3616, 273, 394, 12569, 12, 27676, 16, 348, 8588, 18, 28829, 4294, 1769, 202, 202, 454, 3616, 18, 542, 1528, 12, 588, 1595, 3616, 1528, 10663, 202, 202, 25777, 13347, 3616, 273, 394, 12569, 12, 27676, 16, 348, 8588, 18, 28829, 4294, 1769, 202, 202, 25777, 13347, 3616, 18, 542, 1528, 12, 588, 24529, 3616, 1528, 10663, 202, 202, 1655, 273, 394, 3756, 12, 27676, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1655, 18, 542, 1528, 12, 12377, 5058, 9506, 202, 18, 588, 780, 2932, 27130, 12377, 6144, 1964, 21, 18, 23219, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 6313, 751, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 1769, 202, 202, 892, 18, 18396, 6952, 273, 576, 31, 202, 202, 1655, 18, 542, 3744, 751, 12, 892, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 202, 1655, 18, 542, 3744, 12, 6741, 1769, 202, 202, 2338, 18881, 1388, 273, 394, 3555, 12, 1655, 16, 348, 8588, 18, 10687, 571, 348, 8588, 18, 38, 7954, 1769, 202, 202, 2338, 18881, 1388, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 10019, 202, 202, 6385, 5287, 977, 273, 394, 5287, 12, 1655, 16, 348, 8588, 18, 27664, 1769, 202, 202, 955, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 1429, 18881, 682, 12, 9400, 9635, 13, 288, 202, 202, 454, 3616, 273, 394, 12569, 12, 27676, 16, 348, 8588, 18, 28829, 4294, 1769, 202, 202, 454, 3616, 18, 542, 1528, 12, 588, 1595, 3616, 1528, 10663, 202, 202, 25777, 13347, 3616, 273, 394, 12569, 12, 27676, 16, 348, 8588, 18, 28829, 4294, 1769, 202, 202, 25777, 13347, 3616, 18, 542, 1528, 12, 588, 24529, 3616, 1528, 10663, 202, 202, 1655, 273, 394, 3756, 12, 27676, 16, 348, 8588, 18, 9826, 1769, 202, 202, 1655, 18, 542, 1528, 12, 12377, 5058, 9506, 202, 18, 588, 780, 2932, 27130, 12377, 6144, 1964, 21, 18, 23219, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 2 ]
case ReplyHeader.NO_EXCEPTION :
case ReplyHeader.NO_EXCEPTION:
private void p_invoke() throws SystemException, ForwardRequest { binaryReply response = submit(); if (m_rph == null) m_rph = response.header.create_reply_header(); cdrBufInput input = response.getStream(); input.setOrb(orb); m_rph.read(input); // The stream must be aligned sinve v1.2, but only once. boolean align = response.header.version.since_inclusive(1, 2); switch (m_rph.reply_status) { case ReplyHeader.NO_EXCEPTION : NamedValue arg; // Read return value, if set. if (m_result != null) { if (align) { input.align(8); align = false; } m_result.value().read_value(input, m_result.value().type()); } // Read returned parameters, if set. if (m_args != null) for (int i = 0; i < m_args.count(); i++) { try { arg = m_args.item(i); // Both ARG_INOUT and ARG_OUT have this binary flag set. if ((arg.flags() & ARG_OUT.value) != 0) { if (align) { input.align(8); align = false; } arg.value().read_value(input, arg.value().type()); } } catch (Bounds ex) { Unexpected.error(ex); } } if (m_interceptor != null) m_interceptor.receive_reply(m_info); break; case ReplyHeader.SYSTEM_EXCEPTION : if (align) { input.align(8); align = false; } readExceptionId(input); m_sys_ex = ObjectCreator.readSystemException(input); m_environment.exception(m_sys_ex); if (m_interceptor != null) m_interceptor.receive_exception(m_info); throw m_sys_ex; case ReplyHeader.USER_EXCEPTION : if (align) { input.align(8); align = false; } readExceptionId(input); // Prepare an Any that will hold the exception. gnuAny exc = new gnuAny(); exc.setOrb(orb); exc.insert_Streamable(new streamReadyHolder(input)); UnknownUserException unuex = new UnknownUserException(exc); m_environment.exception(unuex); if (m_interceptor != null) m_interceptor.receive_exception(m_info); break; case ReplyHeader.LOCATION_FORWARD_PERM : case ReplyHeader.LOCATION_FORWARD : if (response.header.version.since_inclusive(1, 2)) input.align(8); IOR forwarded = new IOR(); try { forwarded._read_no_endian(input); } catch (IOException ex) { new MARSHAL("Cant read forwarding info", 5103, CompletionStatus.COMPLETED_NO ); } setIor(forwarded); m_forward_ior = forwarded; if (m_interceptor != null) m_interceptor.receive_other(m_info); // Repeat with the forwarded information. p_invoke(); return; default : throw new MARSHAL("Unknow reply status", 8100 + m_rph.reply_status, CompletionStatus.COMPLETED_NO ); } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/1ae69e4e117f16a6f054d25da0de26f83fe5b43e/gnuRequest.java/buggy/gnu/CORBA/gnuRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 293, 67, 14407, 1435, 1216, 26731, 16, 17206, 691, 225, 288, 565, 3112, 7817, 766, 273, 4879, 5621, 565, 309, 261, 81, 67, 86, 844, 422, 446, 13, 1377, 312, 67, 86, 844, 273, 766, 18, 3374, 18, 2640, 67, 10629, 67, 3374, 5621, 565, 276, 3069, 5503, 1210, 810, 273, 766, 18, 588, 1228, 5621, 565, 810, 18, 542, 1162, 70, 12, 16640, 1769, 565, 312, 67, 86, 844, 18, 896, 12, 2630, 1769, 565, 368, 1021, 1407, 1297, 506, 13939, 5367, 537, 331, 21, 18, 22, 16, 1496, 1338, 3647, 18, 565, 1250, 5689, 273, 766, 18, 3374, 18, 1589, 18, 9256, 67, 267, 9173, 12, 21, 16, 576, 1769, 565, 1620, 261, 81, 67, 86, 844, 18, 10629, 67, 2327, 13, 1377, 288, 3639, 648, 16202, 1864, 18, 3417, 67, 12658, 30, 1850, 9796, 620, 1501, 31, 1850, 368, 2720, 327, 460, 16, 309, 444, 18, 1850, 309, 261, 81, 67, 2088, 480, 446, 13, 5411, 288, 2868, 309, 261, 7989, 13, 7734, 288, 5375, 810, 18, 7989, 12, 28, 1769, 5375, 5689, 273, 629, 31, 7734, 289, 2868, 312, 67, 2088, 18, 1132, 7675, 896, 67, 1132, 12, 2630, 16, 312, 67, 2088, 18, 1132, 7675, 723, 10663, 5411, 289, 1850, 368, 2720, 2106, 1472, 16, 309, 444, 18, 1850, 309, 261, 81, 67, 1968, 480, 446, 13, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 312, 67, 1968, 18, 1883, 5621, 277, 27245, 2868, 288, 7734, 775, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 293, 67, 14407, 1435, 1216, 26731, 16, 17206, 691, 225, 288, 565, 3112, 7817, 766, 273, 4879, 5621, 565, 309, 261, 81, 67, 86, 844, 422, 446, 13, 1377, 312, 67, 86, 844, 273, 766, 18, 3374, 18, 2640, 67, 10629, 67, 3374, 5621, 565, 276, 3069, 5503, 1210, 810, 273, 766, 18, 588, 1228, 5621, 565, 810, 18, 542, 1162, 70, 12, 16640, 1769, 565, 312, 67, 86, 844, 18, 896, 12, 2630, 1769, 565, 368, 1021, 1407, 1297, 506, 13939, 5367, 537, 331, 21, 18, 22, 16, 1496, 1338, 3647, 18, 565, 1250, 5689, 273, 766, 18, 3374, 18, 1589, 18, 9256, 67, 267, 9173, 12, 21, 16, 576, 1769, 565, 1620, 261, 81, 2 ]
Response response = responder.makeResponse(new FitNesseContext(root), request);
Response response = responder.makeResponse(new FitNesseContext(root), request);
public void testKnowWhenNotToMerge() throws Exception { String pageName = "NewPage"; createAndSaveANewPage(pageName); String newContent = "some new Content work damn you!"; request.setResource(pageName); request.addInput(EditResponder.CONTENT_INPUT_NAME, newContent); request.addInput(EditResponder.SAVE_ID, "" + SaveRecorder.newIdNumber()); request.addInput(EditResponder.TICKET_ID, "" + SaveRecorder.newTicket()); Response response = responder.makeResponse(new FitNesseContext(root), request); assertEquals(303, response.getStatus()); request.addInput(EditResponder.CONTENT_INPUT_NAME, newContent + " Ok I'm working now"); request.addInput(EditResponder.SAVE_ID, "" + SaveRecorder.newIdNumber()); response = responder.makeResponse(new FitNesseContext(root), request); assertEquals(303, response.getStatus()); }
47223 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47223/4e0cb497ad1d73932c30955f3fb6000c2a1b31cd/SaveResponderTest.java/buggy/src/fitnesse/responders/editing/SaveResponderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 47, 3338, 9434, 1248, 774, 6786, 1435, 1216, 1185, 202, 95, 202, 202, 780, 30398, 273, 315, 1908, 1964, 14432, 202, 202, 2640, 1876, 4755, 1258, 359, 1964, 12, 2433, 461, 1769, 1377, 514, 24358, 273, 315, 19068, 394, 3697, 1440, 302, 301, 82, 1846, 4442, 31, 202, 202, 2293, 18, 542, 1420, 12, 2433, 461, 1769, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 9689, 67, 15934, 67, 1985, 16, 24358, 1769, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 25242, 67, 734, 16, 1408, 397, 7074, 10777, 18, 2704, 548, 1854, 10663, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 56, 16656, 1584, 67, 734, 16, 1408, 397, 7074, 10777, 18, 2704, 13614, 10663, 1377, 2306, 766, 273, 18878, 18, 6540, 1064, 12, 2704, 30504, 50, 281, 307, 1042, 12, 3085, 3631, 590, 1769, 202, 202, 11231, 8867, 12, 23, 4630, 16, 766, 18, 588, 1482, 10663, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 9689, 67, 15934, 67, 1985, 16, 24358, 397, 315, 16154, 467, 17784, 5960, 2037, 8863, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 25242, 67, 734, 16, 1408, 397, 7074, 10777, 18, 2704, 548, 1854, 10663, 202, 202, 2740, 273, 18878, 18, 6540, 1064, 12, 2704, 30504, 50, 281, 307, 1042, 12, 3085, 3631, 590, 1769, 202, 202, 11231, 8867, 12, 23, 4630, 16, 766, 18, 588, 1482, 10663, 202, 97, 2, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 47, 3338, 9434, 1248, 774, 6786, 1435, 1216, 1185, 202, 95, 202, 202, 780, 30398, 273, 315, 1908, 1964, 14432, 202, 202, 2640, 1876, 4755, 1258, 359, 1964, 12, 2433, 461, 1769, 1377, 514, 24358, 273, 315, 19068, 394, 3697, 1440, 302, 301, 82, 1846, 4442, 31, 202, 202, 2293, 18, 542, 1420, 12, 2433, 461, 1769, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 9689, 67, 15934, 67, 1985, 16, 24358, 1769, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 25242, 67, 734, 16, 1408, 397, 7074, 10777, 18, 2704, 548, 1854, 10663, 202, 202, 2293, 18, 1289, 1210, 12, 4666, 28840, 18, 56, 16656, 1584, 67, 734, 16, 2 ]
String deleteRule = rs.getString(11);
String deleteRule = rs.getString(13);
protected java.sql.ResultSet getImportedExportedKeys(String catalog, String schema, String primaryTable, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, NAME_SIZE); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, NAME_SIZE); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "PK_NAME", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); java.sql.ResultSet rs = connection.ExecSQL( "SELECT distinct " + "c.relname as prelname, " + "c2.relname as frelname, " + "t.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t.tgdeferrable, " + "t.tginitdeferred, " + "t.tgnargs,t.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + "FROM " + "pg_trigger t, " + "pg_trigger t1, " + "pg_class c, " + "pg_class c2, " + "pg_class ic, " + "pg_proc p1, " + "pg_proc p2, " + "pg_index i, " + "pg_attribute a " + "WHERE " // isolate the update rule + "(t.tgrelid=c.oid " + "AND t.tgisconstraint " + "AND t.tgconstrrelid=c2.oid " + "AND t.tgfoid=p1.oid " + "and p1.proname like '%%upd') " + "and " // isolate the delete rule + "(t1.tgrelid=c.oid " + "and t1.tgisconstraint " + "and t1.tgconstrrelid=c2.oid " + "AND t1.tgfoid=p2.oid " + "and p2.proname like '%%del') " // if we are looking for exported keys then primary table will be used + ((primaryTable != null) ? "AND c.relname='" + primaryTable + "' " : "") // if we are looking for imported keys then the foreign table will be used + ((foreignTable != null) ? "AND c2.relname='" + foreignTable + "' " : "") + "AND i.indrelid=c.oid " + "AND i.indexrelid=ic.oid " + "AND ic.oid=a.attrelid " + "AND i.indisprimary " + "ORDER BY " // orderby is as follows getExported, orders by FKTABLE, // getImported orders by PKTABLE // getCrossReference orders by FKTABLE, so this should work for both, // since when getting crossreference, primaryTable will be defined + (primaryTable != null ? "frelname" : "prelname") + ",keyseq"); // returns the following columns // and some example data with a table defined as follows // create table people ( id int primary key); // create table policy ( id int primary key); // create table users ( id int primary key, people_id int references people(id), policy_id int references policy(id)) // prelname | frelname | tgconstrname | keyseq | fkeyName | tgdeferrable | tginitdeferred // 1 | 2 | 3 | 4 | 5 | 6 | 7 // people | users | <unnamed> | 1 | people_pkey | f | f // | tgnargs | tgargs | updaterule | deleterule // | 8 | 9 | 10 | 11 // | 6 | <unnamed>\000users\000people\000UNSPECIFIED\000people_id\000id\000 | RI_FKey_noaction_upd | RI_FKey_noaction_del Vector tuples = new Vector(); while ( rs.next() ) { byte tuple[][] = new byte[14][]; tuple[2] = rs.getBytes(1); //PKTABLE_NAME tuple[6] = rs.getBytes(2); //FKTABLE_NAME String fKeyName = rs.getString(3); String updateRule = rs.getString(10); if (updateRule != null ) { // Rules look like this RI_FKey_noaction_del so we want to pull out the part between the 'Key_' and the last '_' s String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ( rule == null || "noaction".equals(rule) ) action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[9] = Integer.toString(action).getBytes(); } String deleteRule = rs.getString(11); if ( deleteRule != null ) { String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; tuple[10] = Integer.toString(action).getBytes(); } // Parse the tgargs data String fkeyColumn = ""; String pkeyColumn = ""; // Note, I am guessing at most of this, but it should be close // if not, please correct // the keys are in pairs and start after the first four arguments // the arguments are seperated by \000 int keySequence = rs.getInt(4); //KEY_SEQ // get the args String targs = rs.getString(9); // args look like this //<unnamed>\000ww\000vv\000UNSPECIFIED\000m\000a\000n\000b\000 // we are primarily interested in the column names which are the last items in the string StringTokenizer st = new StringTokenizer(targs, "\\000"); int advance = 4 + (keySequence - 1) * 2; for ( int i = 0; st.hasMoreTokens() && i < advance ; i++ ) st.nextToken(); // advance to the key column of interest if ( st.hasMoreTokens() ) { fkeyColumn = st.nextToken(); } if ( st.hasMoreTokens() ) { pkeyColumn = st.nextToken(); } tuple[3] = pkeyColumn.getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumn.getBytes(); //FKCOLUMN_NAME tuple[8] = rs.getBytes(4); //KEY_SEQ tuple[11] = targs.getBytes(); //FK_NAME this will give us a unique name for the foreign key tuple[12] = rs.getBytes(5); //PK_NAME // DEFERRABILITY int deferrability = java.sql.DatabaseMetaData.importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(6); boolean initiallyDeferred = rs.getBoolean(7); if (deferrable) { if (initiallyDeferred) deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyDeferred; else deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } return connection.getResultSet(null, f, tuples, "OK", 1); }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 3461, 15533, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 11009, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 315, 13121, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 25, 65, 273, 394, 2286, 12, 4071, 16, 315, 13121, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 26, 65, 273, 394, 2286, 12, 4071, 16, 315, 13121, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 27, 65, 273, 394, 2286, 12, 4071, 16, 315, 13121, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 3354, 1388, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 3461, 15533, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 6048, 67, 4574, 1769, 202, 202, 74, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 2 ]
int cat = code/2000; code = code - cat*2000; code = 70000 + cat*5000 + code;
private static SVNErrorMessage readError(InputStream is) throws IOException, SVNException { InputStream pis = is; readChar(pis, '('); int code = readNumber(pis); String errorMessage = readString(pis); readString(pis); readNumber(pis); readChar(pis, ')'); int cat = code/2000; code = code - cat*2000; code = 70000 + cat*5000 + code; SVNErrorCode errorCode = SVNErrorCode.getErrorCode(code); return SVNErrorMessage.create(errorCode, errorMessage); }
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/cf28fe58647fa8b98737e5b55a81fe1e0ca03076/SVNReader.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 29537, 50, 14935, 855, 668, 12, 4348, 353, 13, 1216, 1860, 16, 29537, 50, 503, 288, 3639, 5037, 293, 291, 273, 353, 31, 3639, 855, 2156, 12, 84, 291, 16, 7321, 1769, 3639, 509, 981, 273, 855, 1854, 12, 84, 291, 1769, 3639, 514, 9324, 273, 18646, 12, 84, 291, 1769, 3639, 18646, 12, 84, 291, 1769, 3639, 855, 1854, 12, 84, 291, 1769, 3639, 855, 2156, 12, 84, 291, 16, 5777, 1769, 3639, 509, 6573, 273, 981, 19, 17172, 31, 540, 981, 273, 981, 300, 6573, 14, 17172, 31, 3639, 981, 273, 2371, 2787, 397, 6573, 14, 25, 3784, 397, 981, 31, 540, 29537, 50, 12012, 12079, 273, 29537, 50, 12012, 18, 588, 12012, 12, 710, 1769, 7734, 327, 29537, 50, 14935, 18, 2640, 12, 27754, 16, 9324, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 760, 29537, 50, 14935, 855, 668, 12, 4348, 353, 13, 1216, 1860, 16, 29537, 50, 503, 288, 3639, 5037, 293, 291, 273, 353, 31, 3639, 855, 2156, 12, 84, 291, 16, 7321, 1769, 3639, 509, 981, 273, 855, 1854, 12, 84, 291, 1769, 3639, 514, 9324, 273, 18646, 12, 84, 291, 1769, 3639, 18646, 12, 84, 291, 1769, 3639, 855, 1854, 12, 84, 291, 1769, 3639, 855, 2156, 12, 84, 291, 16, 5777, 1769, 3639, 509, 6573, 273, 981, 19, 17172, 31, 540, 981, 273, 981, 300, 6573, 14, 17172, 31, 3639, 981, 273, 2371, 2787, 397, 6573, 14, 25, 3784, 397, 981, 31, 540, 29537, 50, 12012, 12079, 273, 29537, 50, 12012, 18, 588, 12012, 12, 2 ]
int x = ((Integer) widths.get(widths.size() - 1)).intValue(); int y = ((Integer) heights.get(widths.size() - 1)).intValue(); int z = ((Integer) zs.get(widths.size() - 1)).intValue(); int t = ((Integer) ts.get(widths.size() - 1)).intValue();
int x = ((Integer) widths.get(widths.size() - 1)).intValue(); int y = ((Integer) heights.get(widths.size() - 1)).intValue(); int z = ((Integer) zs.get(widths.size() - 1)).intValue(); int t = ((Integer) ts.get(widths.size() - 1)).intValue();
private void initMetadata(String xml) throws FormatException, IOException { Vector elements = new Vector(); seriesNames = new Vector(); // first parse each element in the XML string StringTokenizer st = new StringTokenizer(xml, ">"); while (st.hasMoreTokens()) { String token = st.nextToken(); elements.add(token.substring(1)); } // the first element contains version information String token = (String) elements.get(0); String key = token.substring(0, token.indexOf("\"")); String value = token.substring(token.indexOf("\"") + 1, token.length()-1); metadata.put(key, value); // what we have right now is a vector of XML elements, which need to // be parsed into the appropriate image dimensions int ndx = 1; numImages = 0; // the image data we need starts with the token "ElementName='blah'" and // ends with the token "/ImageDescription" int numDatasets = 0; Vector widths = new Vector(); Vector heights = new Vector(); Vector zs = new Vector(); Vector ts = new Vector(); Vector channels = new Vector(); Vector bps = new Vector(); Vector extraDims = new Vector(); while (ndx < elements.size()) { token = (String) elements.get(ndx); // if the element contains a key/value pair, parse it and put it in // the metadata hashtable String tmpToken = token; if (token.indexOf("=") != -1) { while (token.length() > 2) { key = token.substring(0, token.indexOf("\"") - 1); value = token.substring(token.indexOf("\"") + 1, token.indexOf("\"", token.indexOf("\"") + 1)); token = token.substring(key.length() + value.length() + 3); key = key.trim(); value = value.trim(); metadata.put(key, value); } } token = tmpToken; if (token.startsWith("ScannerSettingRecord")) { if (token.indexOf("csScanMode") != -1) { int index = token.indexOf("Variant") + 7; String ordering = token.substring(index + 2, token.indexOf("\"", index + 3)); ordering = ordering.toLowerCase(); int xPos = ordering.indexOf("x"); int yPos = ordering.indexOf("y"); int zPos = ordering.indexOf("z"); int tPos = ordering.indexOf("t"); if (xPos < 0) xPos = 0; if (yPos < 0) yPos = 1; if (zPos < 0) zPos = 2; if (tPos < 0) tPos = 3; int x = ((Integer) widths.get(widths.size() - 1)).intValue(); int y = ((Integer) heights.get(widths.size() - 1)).intValue(); int z = ((Integer) zs.get(widths.size() - 1)).intValue(); int t = ((Integer) ts.get(widths.size() - 1)).intValue(); int[] dimensions = {x, y, z, t}; x = dimensions[xPos]; y = dimensions[yPos]; z = dimensions[zPos]; t = dimensions[tPos]; widths.setElementAt(new Integer(x), widths.size() - 1); heights.setElementAt(new Integer(y), heights.size() - 1); zs.setElementAt(new Integer(z), zs.size() - 1); ts.setElementAt(new Integer(t), ts.size() - 1); } } else if (token.startsWith("Element Name")) { // loop until we find "/ImageDescription" seriesNames.add(token.substring(token.indexOf("=") + 2, token.length() - 1)); numDatasets++; int numChannels = 0; int extras = 1; while (token.indexOf("/ImageDescription") == -1) { if (token.indexOf("=") != -1) { // create a small hashtable to store just this element's data Hashtable tmp = new Hashtable(); while (token.length() > 2) { key = token.substring(0, token.indexOf("\"") - 1); value = token.substring(token.indexOf("\"") + 1, token.indexOf("\"", token.indexOf("\"") + 1)); token = token.substring(key.length() + value.length() + 3); key = key.trim(); value = value.trim(); tmp.put(key, value); } if (tmp.get("ChannelDescription DataType") != null) { // found channel description block numChannels++; if (numChannels == 1) { bps.add(new Integer((String) tmp.get("Resolution"))); } } else if (tmp.get("DimensionDescription DimID") != null) { // found dimension description block int w = Integer.parseInt((String) tmp.get("NumberOfElements")); float cal = Float.parseFloat((String) tmp.get("Length")); int id = Integer.parseInt((String) tmp.get("DimensionDescription DimID")); switch (id) { case 1: widths.add(new Integer(w)); xcal.add(new Float(cal)); break; case 2: heights.add(new Integer(w)); ycal.add(new Float(cal)); break; case 3: zs.add(new Integer(w)); zcal.add(new Float(cal)); break; case 4: ts.add(new Integer(w)); break; default: extras *= w; } } } ndx++; try { token = (String) elements.get(ndx); } catch (Exception e) { break; } } extraDims.add(new Integer(extras)); if (numChannels == 2) numChannels--; channels.add(new Integer(numChannels)); if (widths.size() < numDatasets) widths.add(new Integer(1)); if (heights.size() < numDatasets) heights.add(new Integer(1)); if (zs.size() < numDatasets) zs.add(new Integer(1)); if (ts.size() < numDatasets) ts.add(new Integer(1)); } ndx++; } numDatasets = widths.size(); dims = new int[numDatasets][7]; for (int i=0; i<numDatasets; i++) { dims[i][0] = ((Integer) widths.get(i)).intValue(); dims[i][1] = ((Integer) heights.get(i)).intValue(); dims[i][2] = ((Integer) zs.get(i)).intValue(); dims[i][3] = ((Integer) ts.get(i)).intValue(); dims[i][4] = ((Integer) channels.get(i)).intValue(); dims[i][5] = ((Integer) bps.get(i)).intValue(); dims[i][6] = ((Integer) extraDims.get(i)).intValue(); if (dims[i][6] > 1) { if (dims[i][2] == 1) dims[i][2] = dims[i][6]; else dims[i][3] *= dims[i][6]; dims[i][6] = 1; } numImages += (dims[i][2] * dims[i][3] * dims[i][6]); } // Populate metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(currentId); String type = "int8"; switch (dims[0][5]) { case 12: type = "int16"; break; case 16: type = "int16"; break; case 32: type = "float"; break; } for (int i=0; i<numDatasets; i++) { Integer ii = new Integer(i); store.setImage((String) seriesNames.get(i), null, null, ii); store.setPixels( new Integer(dims[i][0]), // SizeX new Integer(dims[i][1]), // SizeY new Integer(dims[i][2]), // SizeZ new Integer(dims[i][4]), // SizeC new Integer(dims[i][3]), // SizeT type, // PixelType new Boolean(!littleEndian), // BigEndian getDimensionOrder(currentId), // DimensionOrder ii); // Index Float xf = i < xcal.size() ? (Float) xcal.get(i) : null; Float yf = i < ycal.size() ? (Float) ycal.get(i) : null; Float zf = i < zcal.size() ? (Float) zcal.get(i) : null; store.setDimensions(xf, yf, zf, null, null, ii); } }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/054bd26b1432b6733cf1a54342b04ae97fa3a07c/LIFReader.java/clean/loci/formats/in/LIFReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 1216, 4077, 503, 16, 1860, 288, 565, 5589, 2186, 273, 394, 5589, 5621, 565, 4166, 1557, 273, 394, 5589, 5621, 565, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 565, 16370, 384, 273, 394, 16370, 12, 2902, 16, 14675, 1769, 565, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 1377, 514, 1147, 273, 384, 18, 4285, 1345, 5621, 1377, 2186, 18, 1289, 12, 2316, 18, 28023, 12, 21, 10019, 565, 289, 3639, 368, 326, 1122, 930, 1914, 1177, 1779, 565, 514, 1147, 273, 261, 780, 13, 2186, 18, 588, 12, 20, 1769, 565, 514, 498, 273, 1147, 18, 28023, 12, 20, 16, 1147, 18, 31806, 2932, 2412, 7923, 1769, 565, 514, 460, 273, 1147, 18, 28023, 12, 2316, 18, 31806, 2932, 2412, 7923, 397, 404, 16, 1147, 18, 2469, 1435, 17, 21, 1769, 565, 1982, 18, 458, 12, 856, 16, 460, 1769, 565, 368, 4121, 732, 1240, 2145, 2037, 353, 279, 3806, 434, 3167, 2186, 16, 1492, 1608, 358, 565, 368, 506, 2707, 1368, 326, 5505, 1316, 5769, 565, 509, 5346, 92, 273, 404, 31, 565, 818, 8946, 273, 374, 31, 565, 368, 326, 1316, 501, 732, 1608, 2542, 598, 326, 1147, 315, 30584, 2218, 3083, 9795, 4970, 471, 565, 368, 3930, 598, 326, 1147, 2206, 2040, 3291, 6, 565, 509, 818, 14305, 2413, 273, 374, 31, 565, 5589, 15801, 273, 394, 5589, 5621, 565, 5589, 24779, 273, 394, 5589, 5621, 565, 5589, 998, 87, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 1216, 4077, 503, 16, 1860, 288, 565, 5589, 2186, 273, 394, 5589, 5621, 565, 4166, 1557, 273, 394, 5589, 5621, 565, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 565, 16370, 384, 273, 394, 16370, 12, 2902, 16, 14675, 1769, 565, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 1377, 514, 1147, 273, 384, 18, 4285, 1345, 5621, 1377, 2186, 18, 1289, 12, 2316, 18, 28023, 12, 21, 10019, 565, 289, 3639, 368, 326, 1122, 930, 1914, 1177, 1779, 565, 514, 1147, 273, 261, 780, 13, 2186, 18, 588, 12, 20, 1769, 565, 514, 498, 273, 1147, 18, 28023, 12, 20, 16, 1147, 18, 31806, 2932, 2412, 7923, 2 ]
ImportPackageSpecification[] imports = description.getImportPackages(); addDynamicImportPackage(imports);
if (description.hasDynamicImports()) addDynamicImportPackage(description.getImportPackages());
protected void initialize(BundleDescription description) { hasDynamicImports = SystemBundleLoader.getSystemPackages() != null; //This is the fastest way to access to the description for fragments since the hostdescription.getFragments() is slow org.osgi.framework.Bundle[] fragmentObjects = bundle.getFragments(); BundleDescription[] fragments = new BundleDescription[fragmentObjects == null ? 0 : fragmentObjects.length]; for (int i = 0; i < fragments.length; i++) fragments[i] = ((AbstractBundle) fragmentObjects[i]).getBundleDescription(); // init the imported packages list taking the bundle... addImportedPackages(description.getResolvedImports()); // init the require bundles list. BundleDescription[] required = description.getResolvedRequires(); if (required.length > 0) { // get a list of re-exported symbolic names HashSet reExportSet = new HashSet(required.length); BundleSpecification[] requiredSpecs = description.getRequiredBundles(); if (requiredSpecs != null && requiredSpecs.length > 0) for (int i = 0; i < requiredSpecs.length; i++) if (requiredSpecs[i].isExported()) reExportSet.add(requiredSpecs[i].getName()); requiredBundles = new BundleLoaderProxy[required.length]; int[] reexported = new int[required.length]; int reexportIndex = 0; for (int i = 0; i < required.length; i++) { requiredBundles[i] = (BundleLoaderProxy) getLoaderProxy(required[i]); if (reExportSet.contains(required[i].getSymbolicName())) reexported[reexportIndex++] = i; } if (reexportIndex > 0) { reexportTable = new int[reexportIndex]; System.arraycopy(reexported, 0, reexportTable, 0, reexportIndex); } } // init the provided packages set ExportPackageDescription[] exports = description.getSelectedExports(); if (exports != null && exports.length > 0) { providedPackages = new ArrayList(exports.length); for (int i = 0; i < exports.length; i++) { // must force filtered and reexport sources to be created early // to prevent lazy normal package source creation. proxy.createPackageSource(exports[i], true); if (!providedPackages.contains(exports[i].getName())) providedPackages.add(exports[i].getName()); } } // init the dynamic imports tables ImportPackageSpecification[] imports = description.getImportPackages(); addDynamicImportPackage(imports); // ...and its fragments for (int i = 0; i < fragments.length; i++) if (fragments[i].isResolved()) addDynamicImportPackage(fragments[i].getImportPackages()); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/0e97de6e96a28c39d68f68194c1d01d085c11e71/BundleLoader.java/clean/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4046, 12, 3405, 3291, 2477, 13, 288, 202, 202, 5332, 9791, 13347, 273, 2332, 3405, 2886, 18, 588, 3163, 11425, 1435, 480, 446, 31, 202, 202, 759, 2503, 353, 326, 4797, 395, 4031, 358, 2006, 358, 326, 2477, 364, 14656, 3241, 326, 1479, 3384, 18, 588, 27588, 1435, 353, 11816, 202, 202, 3341, 18, 538, 10052, 18, 12303, 18, 3405, 8526, 5481, 4710, 273, 3440, 18, 588, 27588, 5621, 202, 202, 3405, 3291, 8526, 14656, 273, 394, 8539, 3291, 63, 11956, 4710, 422, 446, 692, 374, 294, 5481, 4710, 18, 2469, 15533, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 14656, 18, 2469, 31, 277, 27245, 1082, 202, 29528, 63, 77, 65, 273, 14015, 7469, 3405, 13, 5481, 4710, 63, 77, 65, 2934, 588, 3405, 3291, 5621, 202, 202, 759, 1208, 326, 9101, 5907, 666, 13763, 326, 3440, 2777, 202, 202, 1289, 24934, 11425, 12, 3384, 18, 588, 12793, 13347, 10663, 202, 202, 759, 1208, 326, 2583, 11408, 666, 18, 202, 202, 3405, 3291, 8526, 1931, 273, 2477, 18, 588, 12793, 21671, 5621, 202, 202, 430, 261, 4718, 18, 2469, 405, 374, 13, 288, 1082, 202, 759, 336, 279, 666, 434, 283, 17, 338, 1798, 16754, 1257, 1082, 202, 13482, 283, 6144, 694, 273, 394, 6847, 12, 4718, 18, 2469, 1769, 1082, 202, 3405, 8615, 8526, 1931, 15999, 273, 2477, 18, 588, 3705, 16151, 5621, 1082, 202, 430, 261, 4718, 15999, 480, 446, 597, 1931, 15999, 18, 2469, 405, 374, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 12, 3405, 3291, 2477, 13, 288, 202, 202, 5332, 9791, 13347, 273, 2332, 3405, 2886, 18, 588, 3163, 11425, 1435, 480, 446, 31, 202, 202, 759, 2503, 353, 326, 4797, 395, 4031, 358, 2006, 358, 326, 2477, 364, 14656, 3241, 326, 1479, 3384, 18, 588, 27588, 1435, 353, 11816, 202, 202, 3341, 18, 538, 10052, 18, 12303, 18, 3405, 8526, 5481, 4710, 273, 3440, 18, 588, 27588, 5621, 202, 202, 3405, 3291, 8526, 14656, 273, 394, 8539, 3291, 63, 11956, 4710, 422, 446, 692, 374, 294, 5481, 4710, 18, 2469, 15533, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 14656, 18, 2469, 31, 277, 27245, 1082, 202, 29528, 63, 77, 65, 2 ]
p[3] = new MNode3D(xyz, -1);
p[3] = new MNode3D(xyz, 0);
public float quality(Object o) { if (!(o instanceof Triangle)) throw new IllegalArgumentException(); Triangle t = (Triangle) o; double [] uv = t.centroid().getUV(); double [] xyz = mesh.getGeomSurface().value(uv[0], uv[1]); p[3] = new MNode3D(xyz, -1); for (int i = 0; i < 3; i++) { uv = t.vertex[i].getUV(); xyz = mesh.getGeomSurface().value(uv[0], uv[1]); p[i] = new MNode3D(xyz, -1); } double [] xyz0 = p[0].getXYZ(); double [] xyz1 = p[1].getXYZ(); double [] xyz2 = p[2].getXYZ(); double [] xyz3 = p[3].getXYZ(); for (int i = 0; i < 3; i++) { v1[i] = xyz1[i] - xyz0[i]; v2[i] = xyz2[i] - xyz0[i]; v3[i] = xyz3[i] - xyz0[i]; } double [] vec = Metric3D.prodVect3D(v1, v2); double norm = Metric3D.norm(vec); double dist = 0.0; if (norm > 0.0) { dist = Math.abs(Metric3D.prodSca(vec, v3)); dist /= Metric3D.norm(vec); } return (float) dist; }
46701 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46701/55712c16feb59b359f13fef1e0c46a7eb7dc3b27/AbsoluteDeflection2D.java/clean/amibe/src/org/jcae/mesh/amibe/validation/AbsoluteDeflection2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1431, 9312, 12, 921, 320, 13, 202, 95, 202, 202, 430, 16051, 12, 83, 1276, 10000, 4341, 3719, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 31506, 268, 273, 261, 31506, 13, 320, 31, 202, 202, 9056, 5378, 14303, 273, 268, 18, 2998, 5560, 7675, 588, 20147, 5621, 202, 202, 9056, 5378, 14779, 273, 6986, 18, 588, 16972, 11508, 7675, 1132, 12, 16303, 63, 20, 6487, 14303, 63, 21, 19226, 202, 202, 84, 63, 23, 65, 273, 394, 490, 907, 23, 40, 12, 17177, 16, 300, 21, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 890, 31, 277, 27245, 202, 202, 95, 1082, 202, 16303, 273, 268, 18, 15281, 63, 77, 8009, 588, 20147, 5621, 1082, 202, 17177, 273, 6986, 18, 588, 16972, 11508, 7675, 1132, 12, 16303, 63, 20, 6487, 14303, 63, 21, 19226, 1082, 202, 84, 63, 77, 65, 273, 394, 490, 907, 23, 40, 12, 17177, 16, 300, 21, 1769, 202, 202, 97, 202, 202, 9056, 5378, 14779, 20, 273, 293, 63, 20, 8009, 588, 23479, 5621, 202, 202, 9056, 5378, 14779, 21, 273, 293, 63, 21, 8009, 588, 23479, 5621, 202, 202, 9056, 5378, 14779, 22, 273, 293, 63, 22, 8009, 588, 23479, 5621, 202, 202, 9056, 5378, 14779, 23, 273, 293, 63, 23, 8009, 588, 23479, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 890, 31, 277, 27245, 202, 202, 95, 1082, 202, 90, 21, 63, 77, 65, 273, 14779, 21, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1431, 9312, 12, 921, 320, 13, 202, 95, 202, 202, 430, 16051, 12, 83, 1276, 10000, 4341, 3719, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 31506, 268, 273, 261, 31506, 13, 320, 31, 202, 202, 9056, 5378, 14303, 273, 268, 18, 2998, 5560, 7675, 588, 20147, 5621, 202, 202, 9056, 5378, 14779, 273, 6986, 18, 588, 16972, 11508, 7675, 1132, 12, 16303, 63, 20, 6487, 14303, 63, 21, 19226, 202, 202, 84, 63, 23, 65, 273, 394, 490, 907, 23, 40, 12, 17177, 16, 300, 21, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 890, 31, 277, 27245, 202, 202, 95, 1082, 202, 16303, 273, 268, 18, 15281, 63, 77, 8009, 2 ]
void login(final String serverName, final String database, final String user, final String password, final String domain, final String charset, final String appName, final String libName, final String language, final String macAddress, final int packetSize) throws SQLException { try { if (tdsVersion >= TDS70) { sendMSLoginPkt(serverName, database, user, password, domain, appName, libName, language, macAddress, packetSize); } else if (tdsVersion == TDS50) { send50LoginPkt(serverName, user, password, charset, appName, libName, language, packetSize); } else { send42LoginPkt(serverName, user, password, charset, appName, libName, language, packetSize); } nextToken(); while (!endOfResponse) { if (currentToken.isAuthToken()) { sendNtlmChallengeResponse(currentToken.nonce, user, password, domain); } nextToken(); } messages.checkErrors(); } catch (IOException ioe) { throw Support.linkException( new SQLException( Support.getMessage( "error.generic.ioerror", ioe.getMessage()), "08S01"), ioe); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/cdf547a3ca2494a8b3b49a4df7ae97612c64a298/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3925, 12, 6385, 514, 10926, 16, 9079, 727, 514, 2063, 16, 9079, 727, 514, 729, 16, 9079, 727, 514, 2201, 16, 9079, 727, 514, 2461, 16, 9079, 727, 514, 4856, 16, 9079, 727, 514, 10236, 16, 9079, 727, 514, 2561, 461, 16, 9079, 727, 514, 2653, 16, 9079, 727, 514, 5318, 1887, 16, 9079, 727, 509, 4414, 1225, 13, 3639, 1216, 6483, 288, 3639, 775, 288, 5411, 309, 261, 88, 2377, 1444, 1545, 399, 3948, 7301, 13, 288, 7734, 1366, 3537, 5358, 7789, 88, 12, 3567, 461, 16, 2063, 16, 729, 16, 2201, 16, 27573, 2461, 16, 10236, 16, 2561, 461, 16, 2653, 16, 27573, 5318, 1887, 16, 4414, 1225, 1769, 5411, 289, 469, 309, 261, 88, 2377, 1444, 422, 399, 3948, 3361, 13, 288, 7734, 1366, 3361, 5358, 7789, 88, 12, 3567, 461, 16, 729, 16, 2201, 16, 27573, 4856, 16, 10236, 16, 2561, 461, 16, 27573, 2653, 16, 4414, 1225, 1769, 5411, 289, 469, 288, 7734, 1366, 9452, 5358, 7789, 88, 12, 3567, 461, 16, 729, 16, 2201, 16, 27573, 4856, 16, 10236, 16, 2561, 461, 16, 27573, 2653, 16, 4414, 1225, 1769, 5411, 289, 13491, 9617, 5621, 13491, 1323, 16051, 409, 951, 1064, 13, 288, 7734, 309, 261, 2972, 1345, 18, 291, 28967, 10756, 288, 10792, 1366, 50, 6172, 81, 18359, 1064, 12, 2972, 1345, 18, 12824, 16, 729, 16, 2201, 16, 2461, 1769, 7734, 289, 27573, 9617, 5621, 5411, 289, 13491, 2743, 18, 1893, 4229, 5621, 3639, 289, 1044, 261, 14106, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3925, 12, 6385, 514, 10926, 16, 9079, 727, 514, 2063, 16, 9079, 727, 514, 729, 16, 9079, 727, 514, 2201, 16, 9079, 727, 514, 2461, 16, 9079, 727, 514, 4856, 16, 9079, 727, 514, 10236, 16, 9079, 727, 514, 2561, 461, 16, 9079, 727, 514, 2653, 16, 9079, 727, 514, 5318, 1887, 16, 9079, 727, 509, 4414, 1225, 13, 3639, 1216, 6483, 288, 3639, 775, 288, 5411, 309, 261, 88, 2377, 1444, 1545, 399, 3948, 7301, 13, 288, 7734, 1366, 3537, 5358, 7789, 88, 12, 3567, 461, 16, 2063, 16, 729, 16, 2201, 16, 27573, 2461, 16, 10236, 16, 2561, 461, 16, 2653, 16, 27573, 5318, 1887, 16, 4414, 1225, 1769, 5411, 289, 469, 309, 261, 88, 2 ]
yaccValue = "`";
yaccValue = new Token("`", getPosition(null, false));
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 1119, 273, 1296, 1685, 31, 3639, 1296, 1685, 273, 629, 31, 7734, 3300, 30, 364, 12, 25708, 13, 288, 5411, 276, 273, 1705, 18, 896, 5621, 5411, 1620, 12, 71, 13, 288, 5411, 648, 2337, 26565, 4278, 202, 202, 20308, 3602, 40, 1195, 5411, 648, 2337, 20, 1578, 4278, 202, 202, 20308, 3602, 62, 1195, 5411, 648, 374, 30, 1082, 202, 20308, 679, 434, 2728, 18, 1195, 7734, 327, 374, 31, 21821, 1748, 9578, 7292, 1195, 5411, 648, 296, 4290, 648, 2337, 88, 4278, 648, 2337, 74, 4278, 648, 2337, 86, 4278, 5411, 648, 2337, 3437, 4278, 1748, 2337, 90, 11, 1195, 7734, 3476, 15160, 273, 638, 31, 7734, 1324, 3300, 31, 5411, 648, 2946, 4278, 202, 202, 20308, 518, 1807, 279, 2879, 1195, 7734, 1323, 14015, 71, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 2 ]
Boolean lhsValue = BooleanFunction.evaluate( getLHS().evaluate( context ) );
Navigator nav = context.getNavigator(); Boolean lhsValue = BooleanFunction.evaluate( getLHS().evaluate( context ), nav );
public Object evaluate(Context context) throws JaxenException { Boolean lhsValue = BooleanFunction.evaluate( getLHS().evaluate( context ) ); if ( lhsValue == Boolean.FALSE ) { return Boolean.FALSE; } Boolean rhsValue = BooleanFunction.evaluate( getRHS().evaluate( context ) ); if ( rhsValue == Boolean.FALSE ) { return Boolean.FALSE; } return Boolean.TRUE; }
5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/e0cac8556abf419293cfe6305bb520b15fdfed89/DefaultAndExpr.java/buggy/src/java/main/org/jaxen/expr/DefaultAndExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 5956, 12, 1042, 819, 13, 1216, 25824, 275, 503, 565, 288, 3639, 423, 13061, 8775, 273, 819, 18, 588, 22817, 5621, 3411, 8499, 620, 273, 3411, 2083, 18, 21024, 12, 9014, 13173, 7675, 21024, 12, 819, 262, 16, 8775, 11272, 3639, 309, 261, 8499, 620, 422, 3411, 18, 21053, 262, 3639, 288, 5411, 327, 3411, 18, 21053, 31, 3639, 289, 3639, 3411, 7711, 620, 273, 3411, 2083, 18, 21024, 12, 4170, 13173, 7675, 21024, 12, 819, 262, 11272, 3639, 309, 261, 7711, 620, 422, 3411, 18, 21053, 262, 3639, 288, 5411, 327, 3411, 18, 21053, 31, 3639, 289, 3639, 327, 3411, 18, 18724, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 5956, 12, 1042, 819, 13, 1216, 25824, 275, 503, 565, 288, 3639, 423, 13061, 8775, 273, 819, 18, 588, 22817, 5621, 3411, 8499, 620, 273, 3411, 2083, 18, 21024, 12, 9014, 13173, 7675, 21024, 12, 819, 262, 16, 8775, 11272, 3639, 309, 261, 8499, 620, 422, 3411, 18, 21053, 262, 3639, 288, 5411, 327, 3411, 18, 21053, 31, 3639, 289, 3639, 3411, 7711, 620, 273, 3411, 2083, 18, 21024, 12, 4170, 13173, 7675, 21024, 12, 819, 262, 11272, 3639, 309, 261, 7711, 620, 422, 3411, 18, 21053, 262, 3639, 288, 5411, 327, 3411, 18, 21053, 31, 3639, 289, 3639, 327, 3411, 18, 18724, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
synchronized (assigneeAvailSchedule) { assigneeAvailSchedule.add(ldmf.newAssignedAvailabilityElement((Asset)localAsset, schedule.getStartTime(), schedule.getEndTime()));
synchronized (assetAvailSchedule) { assetAvailSchedule.add(ldmf.newAssignedAvailabilityElement((Asset)localAssignee, schedule.getStartTime(), schedule.getEndTime()));
private void assetTransferRemoved(AssetTransfer at) { // create an AssetRescind message Schedule rescindSchedule; if ((at.getAsset() instanceof HasRelationships) && (at.getAssignee() instanceof HasRelationships)) { rescindSchedule = ldmf.newAssignedRelationshipSchedule(); RelationshipSchedule transferSchedule = ((HasRelationships)at.getAsset()).getRelationshipSchedule(); for (Iterator iterator = new ArrayList(transferSchedule).iterator(); iterator.hasNext();) { Relationship relationship = (Relationship)iterator.next(); ((NewSchedule)rescindSchedule).add(ldmf.newAssignedRelationshipElement(relationship)); } //Remove info from local assets HasRelationships localAsset = (HasRelationships)logplan.findAsset(at.getAsset()); if (localAsset == null) { System.err.println("RescindLP: rescinded transferred asset - " + at.getAsset() + " - not found in logplan."); return; } HasRelationships localAssignee = (HasRelationships)logplan.findAsset(at.getAssignee()); if (localAssignee == null) { System.err.println("RescindLP: rescinded assignee - " + at.getAssignee() + " - not found in logplan."); return; } // Update local relationship schedules RelationshipSchedule localSchedule = localAsset.getRelationshipSchedule(); localSchedule.removeAll(transferSchedule); localSchedule = localAssignee.getRelationshipSchedule(); localSchedule.removeAll(transferSchedule); // Update assignee avail // Remove all current entries denoting asset avail to assignee NewSchedule assigneeAvailSchedule = (NewSchedule)((Asset)localAssignee).getRoleSchedule().getAvailableSchedule(); synchronized (assigneeAvailSchedule) { final Asset asset = (Asset)localAsset; Collection remove = assigneeAvailSchedule.filter(new UnaryPredicate() { public boolean execute(Object o) { return ((o instanceof AssignedAvailabilityElement) && (((AssignedAvailabilityElement)o).getAssignee().equals(asset))); } }); assigneeAvailSchedule.removeAll(remove); } // end sync block // Get all relationships with asset RelationshipSchedule relationshipSchedule = (localAssignee).getRelationshipSchedule(); Collection collection = relationshipSchedule.getMatchingRelationships(localAsset, new MutableTimeSpan()); // If any relationships, add a single avail element with the // min start and max end if (collection.size() > 0) { Schedule schedule = ldmf.newSchedule(new Enumerator(collection)); // Add a new avail element synchronized (assigneeAvailSchedule) { assigneeAvailSchedule.add(ldmf.newAssignedAvailabilityElement((Asset)localAsset, schedule.getStartTime(), schedule.getEndTime())); } } logplan.change(localAsset, null); logplan.change(localAssignee, null); } else { rescindSchedule = at.getSchedule(); } AssetRescind arm = ldmf.newAssetRescind(at.getAsset(), at.getAssignee(), rescindSchedule); logplan.sendDirective((Directive)arm); }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/6c7c58c78b79da8931372203fd23cb4ba423d847/RescindLP.java/clean/core/src/org/cougaar/planning/ldm/lps/RescindLP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3310, 5912, 10026, 12, 6672, 5912, 622, 13, 288, 565, 368, 752, 392, 10494, 607, 71, 728, 883, 565, 10674, 400, 71, 728, 6061, 31, 565, 309, 14015, 270, 18, 588, 6672, 1435, 1276, 4393, 17185, 13, 597, 3639, 261, 270, 18, 588, 4910, 1340, 1435, 1276, 4393, 17185, 3719, 288, 1377, 400, 71, 728, 6061, 273, 328, 10956, 74, 18, 2704, 20363, 8180, 6061, 5621, 1377, 15463, 6061, 7412, 6061, 273, 540, 14015, 5582, 17185, 13, 270, 18, 588, 6672, 1435, 2934, 588, 8180, 6061, 5621, 1377, 364, 261, 3198, 2775, 273, 394, 2407, 12, 13866, 6061, 2934, 9838, 5621, 6647, 2775, 18, 5332, 2134, 5621, 13, 288, 3639, 15463, 5232, 273, 261, 8180, 13, 9838, 18, 4285, 5621, 3639, 14015, 1908, 6061, 13, 455, 71, 728, 6061, 2934, 1289, 12, 1236, 16126, 18, 2704, 20363, 8180, 1046, 12, 12873, 10019, 1377, 289, 1377, 368, 3288, 1123, 628, 1191, 7176, 1377, 4393, 17185, 1191, 6672, 273, 261, 5582, 17185, 13, 1330, 7088, 18, 4720, 6672, 12, 270, 18, 588, 6672, 10663, 1377, 309, 261, 3729, 6672, 422, 446, 13, 288, 3639, 2332, 18, 370, 18, 8222, 2932, 607, 71, 728, 14461, 30, 400, 71, 267, 785, 906, 4193, 3310, 300, 315, 397, 18701, 622, 18, 588, 6672, 1435, 397, 315, 300, 486, 1392, 316, 613, 7088, 1199, 1769, 3639, 327, 31, 1377, 289, 5411, 4393, 17185, 1191, 4910, 1340, 273, 261, 5582, 17185, 13, 1330, 7088, 18, 4720, 6672, 12, 270, 18, 588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3310, 5912, 10026, 12, 6672, 5912, 622, 13, 288, 565, 368, 752, 392, 10494, 607, 71, 728, 883, 565, 10674, 400, 71, 728, 6061, 31, 565, 309, 14015, 270, 18, 588, 6672, 1435, 1276, 4393, 17185, 13, 597, 3639, 261, 270, 18, 588, 4910, 1340, 1435, 1276, 4393, 17185, 3719, 288, 1377, 400, 71, 728, 6061, 273, 328, 10956, 74, 18, 2704, 20363, 8180, 6061, 5621, 1377, 15463, 6061, 7412, 6061, 273, 540, 14015, 5582, 17185, 13, 270, 18, 588, 6672, 1435, 2934, 588, 8180, 6061, 5621, 1377, 364, 261, 3198, 2775, 273, 394, 2407, 12, 13866, 6061, 2934, 9838, 5621, 6647, 2775, 18, 5332, 2134, 5621, 13, 288, 3639, 15463, 5232, 273, 261, 8180, 13, 2 ]
_xr = saxParserFactory.newSAXParser().getXMLReader();
SaxLoader ( ) { try { _xr = saxParserFactory.newSAXParser().getXMLReader(); _xr.setFeature( "http://xml.org/sax/features/namespace-prefixes", true ); _xr.setFeature( "http://xml.org/sax/features/namespaces", true ); _xr.setFeature( "http://xml.org/sax/features/validation", false ); _xr.setProperty( "http://xml.org/sax/properties/lexical-handler", this ); _xr.setContentHandler( this ); _xr.setErrorHandler( this ); _xr.setEntityResolver( this ); } catch ( Throwable e ) { throw new RuntimeException( e.getMessage(), e ); } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/46281b438add94c88e48163c26c7a7325aa9926c/Locale.java/clean/v2/src/newstore/org/apache/xmlbeans/impl/newstore/pub/store/Locale.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 348, 651, 2886, 261, 262, 3639, 288, 5411, 775, 5411, 288, 17311, 389, 92, 86, 18, 542, 4595, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 4937, 17, 17777, 3113, 638, 11272, 7734, 389, 92, 86, 18, 542, 4595, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 16078, 3113, 638, 11272, 7734, 389, 92, 86, 18, 542, 4595, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 8685, 3113, 629, 11272, 7734, 389, 92, 86, 18, 542, 1396, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 4738, 19, 4149, 1706, 17, 4176, 3113, 333, 11272, 7734, 389, 92, 86, 18, 542, 1350, 1503, 12, 333, 11272, 7734, 389, 92, 86, 18, 542, 17729, 12, 333, 11272, 7734, 389, 92, 86, 18, 542, 1943, 4301, 12, 333, 11272, 5411, 289, 5411, 1044, 261, 4206, 425, 262, 5411, 288, 7734, 604, 394, 3235, 12, 425, 18, 24906, 9334, 425, 11272, 5411, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 348, 651, 2886, 261, 262, 3639, 288, 5411, 775, 5411, 288, 17311, 389, 92, 86, 18, 542, 4595, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 4937, 17, 17777, 3113, 638, 11272, 7734, 389, 92, 86, 18, 542, 4595, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 16078, 3113, 638, 11272, 7734, 389, 92, 86, 18, 542, 4595, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 7139, 19, 8685, 3113, 629, 11272, 7734, 389, 92, 86, 18, 542, 1396, 12, 315, 2505, 2207, 2902, 18, 3341, 19, 87, 651, 19, 4738, 19, 4149, 1706, 17, 4176, 3113, 333, 11272, 7734, 389, 92, 86, 18, 542, 2 ]
File generatedFile = new File("test/TestController.groovy");
File generatedFile = new File("test/grails-app/controllers/TestController.groovy");
public void testGenerateController() throws Exception { GrailsTemplateGenerator generator; GroovyClassLoader gcl = new GroovyClassLoader(Thread.currentThread().getContextClassLoader()); generator = (GrailsTemplateGenerator)gcl.parseClass(gcl.getResourceAsStream("org/codehaus/groovy/grails/scaffolding/DefaultGrailsTemplateGenerator.groovy")) .newInstance(); Class dc = gcl.parseClass("class Test { \n@Property Long id;\n @Property Long version; }"); GrailsDomainClass domainClass = new DefaultGrailsDomainClass(dc); generator.generateController(domainClass,"test"); File generatedFile = new File("test/TestController.groovy"); assertTrue(generatedFile.exists()); String text = (String)new GroovyShell().evaluate("new File('test/TestController.groovy').text"); assertTrue(text.indexOf("class TestController") > -1); assertTrue(text.indexOf("@Property list") > -1); assertTrue(text.indexOf("@Property update") > -1); assertTrue(text.indexOf("@Property create") > -1); assertTrue(text.indexOf("@Property show") > -1); assertTrue(text.indexOf("@Property edit") > -1); assertTrue(text.indexOf("@Property delete") > -1); }
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/477c9c88d4f3e46684364fb9f8dd228d069f0570/GrailsTemplateGeneratorsTests.java/clean/test/scaffolding/org/codehaus/groovy/grails/scaffolding/GrailsTemplateGeneratorsTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4625, 2933, 1435, 1216, 1185, 288, 3639, 10812, 14573, 2283, 3908, 4456, 31, 3639, 20841, 7805, 314, 830, 273, 394, 20841, 7805, 12, 3830, 18, 2972, 3830, 7675, 29120, 7805, 10663, 3639, 4456, 273, 261, 14571, 14573, 2283, 3908, 13, 75, 830, 18, 2670, 797, 12, 75, 830, 18, 588, 1420, 17052, 2932, 3341, 19, 710, 3395, 407, 19, 75, 12859, 19, 2752, 14573, 19, 31105, 310, 19, 1868, 14571, 14573, 2283, 3908, 18, 75, 12859, 6, 3719, 4766, 10792, 263, 2704, 1442, 5621, 3639, 1659, 6744, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 288, 521, 82, 36, 1396, 3407, 612, 9747, 82, 632, 1396, 3407, 1177, 31, 225, 289, 8863, 3639, 10812, 14573, 3748, 797, 2461, 797, 273, 394, 2989, 14571, 14573, 3748, 797, 12, 7201, 1769, 3639, 4456, 18, 7163, 2933, 12, 4308, 797, 10837, 3813, 8863, 3639, 1387, 4374, 812, 273, 394, 1387, 2932, 3813, 19, 2752, 14573, 17, 2910, 19, 20171, 19, 4709, 2933, 18, 75, 12859, 8863, 3639, 1815, 5510, 12, 11168, 812, 18, 1808, 10663, 3639, 514, 977, 273, 261, 780, 13, 2704, 20841, 13220, 7675, 21024, 2932, 2704, 1387, 2668, 3813, 19, 4709, 2933, 18, 75, 12859, 16063, 955, 8863, 3639, 1815, 5510, 12, 955, 18, 31806, 2932, 1106, 7766, 2933, 7923, 405, 300, 21, 1769, 3639, 1815, 5510, 12, 955, 18, 31806, 2932, 36, 1396, 666, 7923, 405, 300, 21, 1769, 3639, 1815, 5510, 12, 955, 18, 31806, 2932, 36, 1396, 1089, 7923, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4625, 2933, 1435, 1216, 1185, 288, 3639, 10812, 14573, 2283, 3908, 4456, 31, 3639, 20841, 7805, 314, 830, 273, 394, 20841, 7805, 12, 3830, 18, 2972, 3830, 7675, 29120, 7805, 10663, 3639, 4456, 273, 261, 14571, 14573, 2283, 3908, 13, 75, 830, 18, 2670, 797, 12, 75, 830, 18, 588, 1420, 17052, 2932, 3341, 19, 710, 3395, 407, 19, 75, 12859, 19, 2752, 14573, 19, 31105, 310, 19, 1868, 14571, 14573, 2283, 3908, 18, 75, 12859, 6, 3719, 4766, 10792, 263, 2704, 1442, 5621, 3639, 1659, 6744, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 288, 521, 82, 36, 1396, 3407, 612, 9747, 82, 632, 1396, 3407, 1177, 31, 225, 289, 8863, 3639, 10812, 2 ]
else if (script == HIRAGANA_SCRIPT) return "KATAKANA-HIRAGANA";
else if (script == HIRAGANA_SCRIPT && HACK_KANA) return "KATAKANA-HIRAGANA";
static String getChunkName(byte script) { if (script == -3) return "NULL"; else if (script == -2) return "IGNORABLE"; else if (script == -1) return "VARIABLE"; else if (script == HIRAGANA_SCRIPT) return "KATAKANA-HIRAGANA"; else if (script == UNSUPPORTED) return "UNSUPPORTED"; else return ucd.getScriptID_fromIndex(script); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/3b30dd9146aa6529c07a6f0f4745caf2c750b816/WriteCharts.java/clean/tools/unicodetools/com/ibm/text/UCA/WriteCharts.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 514, 336, 5579, 461, 12, 7229, 2728, 13, 288, 3639, 309, 261, 4263, 422, 300, 23, 13, 327, 315, 8560, 14432, 3639, 469, 309, 261, 4263, 422, 300, 22, 13, 327, 315, 10452, 916, 2782, 14432, 3639, 469, 309, 261, 4263, 422, 300, 21, 13, 327, 315, 16444, 14432, 3639, 469, 309, 261, 4263, 422, 670, 7937, 1781, 1258, 37, 67, 10885, 597, 670, 3649, 67, 47, 1258, 37, 13, 327, 315, 47, 3706, 47, 1258, 37, 17, 44, 7937, 1781, 1258, 37, 14432, 3639, 469, 309, 261, 4263, 422, 26049, 3079, 14289, 13, 327, 315, 2124, 21134, 14432, 3639, 469, 327, 582, 4315, 18, 588, 3651, 734, 67, 2080, 1016, 12, 4263, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 514, 336, 5579, 461, 12, 7229, 2728, 13, 288, 3639, 309, 261, 4263, 422, 300, 23, 13, 327, 315, 8560, 14432, 3639, 469, 309, 261, 4263, 422, 300, 22, 13, 327, 315, 10452, 916, 2782, 14432, 3639, 469, 309, 261, 4263, 422, 300, 21, 13, 327, 315, 16444, 14432, 3639, 469, 309, 261, 4263, 422, 670, 7937, 1781, 1258, 37, 67, 10885, 597, 670, 3649, 67, 47, 1258, 37, 13, 327, 315, 47, 3706, 47, 1258, 37, 17, 44, 7937, 1781, 1258, 37, 14432, 3639, 469, 309, 261, 4263, 422, 26049, 3079, 14289, 13, 327, 315, 2124, 21134, 14432, 3639, 469, 327, 582, 4315, 18, 588, 3651, 734, 67, 2080, 1016, 12, 4263, 1769, 565, 289, 2, -100 ]
externalJarButton.setEnabled(false);
protected void createPushButtons() { selectAllButton = createPushButton(SELECT_ALL_BUTTON); deselectAllButton = createPushButton(DE_SELECT_ALL_BUTTON); projectJarButton = createPushButton(J2EEUIMessages.getResourceString("PROJECT_JAR"));//$NON-NLS-1$ externalJarButton = createPushButton(J2EEUIMessages.getResourceString("EXTERNAL_JAR"));//$NON-NLS-1$ //TODO Until server tools support util jars outside workspace.... remove enablement externalJarButton.setEnabled(false); addVariableButton = createPushButton(J2EEUIMessages.getResourceString("ADDVARIABLE"));//$NON-NLS-1$ }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/f8b78e9064c9d629270035275fba67ea894610bf/AddModulestoEARPropertiesPage.java/clean/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/AddModulestoEARPropertiesPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 7621, 14388, 1435, 288, 202, 202, 4025, 1595, 3616, 273, 752, 7621, 3616, 12, 4803, 67, 4685, 67, 20068, 1769, 202, 202, 5489, 13759, 1595, 3616, 273, 752, 7621, 3616, 12, 1639, 67, 4803, 67, 4685, 67, 20068, 1769, 202, 202, 4406, 10813, 3616, 273, 752, 7621, 3616, 12, 46, 22, 9383, 57, 3445, 1753, 18, 588, 1420, 780, 2932, 17147, 67, 46, 985, 7923, 1769, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 9375, 10813, 3616, 273, 752, 7621, 3616, 12, 46, 22, 9383, 57, 3445, 1753, 18, 588, 1420, 780, 2932, 2294, 11702, 67, 46, 985, 7923, 1769, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 6241, 30608, 1438, 8513, 2865, 1709, 28838, 8220, 6003, 6265, 282, 1206, 4237, 475, 202, 202, 9375, 10813, 3616, 18, 542, 1526, 12, 5743, 1769, 202, 202, 1289, 3092, 3616, 273, 752, 7621, 3616, 12, 46, 22, 9383, 57, 3445, 1753, 18, 588, 1420, 780, 2932, 8355, 16444, 7923, 1769, 759, 8, 3993, 17, 5106, 17, 21, 8, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1117, 918, 752, 7621, 14388, 1435, 288, 202, 202, 4025, 1595, 3616, 273, 752, 7621, 3616, 12, 4803, 67, 4685, 67, 20068, 1769, 202, 202, 5489, 13759, 1595, 3616, 273, 752, 7621, 3616, 12, 1639, 67, 4803, 67, 4685, 67, 20068, 1769, 202, 202, 4406, 10813, 3616, 273, 752, 7621, 3616, 12, 46, 22, 9383, 57, 3445, 1753, 18, 588, 1420, 780, 2932, 17147, 67, 46, 985, 7923, 1769, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 9375, 10813, 3616, 273, 752, 7621, 3616, 12, 46, 22, 9383, 57, 3445, 1753, 18, 588, 1420, 780, 2932, 2294, 11702, 67, 46, 985, 7923, 1769, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 6241, 2 ]
if (haveMinimumServerVersion("7.1"))
if (haveMinimumServerVersion("7.3")) { ExecSQL("set autocommit = off; " + getIsolationLevelSQL()); } else if (haveMinimumServerVersion("7.1"))
public void setAutoCommit(boolean autoCommit) throws SQLException { if (this.autoCommit == autoCommit) return ; if (autoCommit) ExecSQL("end"); else { if (haveMinimumServerVersion("7.1")) { ExecSQL("begin;" + getIsolationLevelSQL()); } else { ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); } } this.autoCommit = autoCommit; }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/c3e7b3cc96ea1f84be7a402942a0572428d6ef25/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21780, 5580, 12, 6494, 3656, 5580, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 2211, 18, 6079, 5580, 422, 3656, 5580, 13, 1082, 202, 2463, 274, 202, 202, 430, 261, 6079, 5580, 13, 1082, 202, 1905, 3997, 2932, 409, 8863, 202, 202, 12107, 202, 202, 95, 1082, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 6, 3719, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 10086, 4868, 397, 14279, 12255, 2355, 3997, 10663, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 10086, 8863, 9506, 202, 1905, 3997, 12, 588, 22982, 2355, 3997, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2211, 18, 6079, 5580, 273, 3656, 5580, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21780, 5580, 12, 6494, 3656, 5580, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 2211, 18, 6079, 5580, 422, 3656, 5580, 13, 1082, 202, 2463, 274, 202, 202, 430, 261, 6079, 5580, 13, 1082, 202, 1905, 3997, 2932, 409, 8863, 202, 202, 12107, 202, 202, 95, 1082, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 6, 3719, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 10086, 4868, 397, 14279, 12255, 2355, 3997, 10663, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 1905, 3997, 2932, 10086, 8863, 9506, 202, 1905, 3997, 12, 588, 22982, 2355, 3997, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2211, 18, 6079, 5580, 2 ]
|| DesignElement.VIEW_ACTION_PROP.equals( propName ) )
|| IDesignElementModel.VIEW_ACTION_PROP.equals( propName ) )
public static void duplicateProperties( DesignElementHandle source, DesignElementHandle destination, boolean onlyFactoryProperty ) { assert source != null; assert destination != null; if ( !( ( source instanceof ReportDesignHandle ) && ( destination instanceof LibraryHandle ) ) ) assert destination.getDefn( ).getName( ).equalsIgnoreCase( source.getDefn( ).getName( ) ); if ( source.getDefn( ).allowsUserProperties( ) ) { PropertyHandle propHandle = source .getPropertyHandle( DesignElement.USER_PROPERTIES_PROP ); Object value = source.getElement( ).getUserProperties( ); Object valueToSet = null; if ( propHandle != null ) { valueToSet = ModelUtil.copyValue( propHandle.getDefn( ), value ); } if ( valueToSet != null ) { Iterator iter = ( (List) valueToSet ).iterator( ); while ( iter.hasNext( ) ) { UserPropertyDefn userPropDefn = (UserPropertyDefn) iter .next( ); destination.getElement( ) .addUserPropertyDefn( userPropDefn ); } } } if ( source.getElement( ) instanceof IExtendableElement ) duplicateExtensionIdentifier( source.getElement( ), destination .getElement( ), source.getModule( ) ); Iterator iter = source.getPropertyIterator( ); while ( iter.hasNext( ) ) { PropertyHandle propHandle = (PropertyHandle) iter.next( ); String propName = propHandle.getDefn( ).getName( ); // Style property and extends property will be removed. // The properties inherited from style or parent will be // flatten to new element. if ( StyledElement.STYLE_PROP.equals( propName ) || DesignElement.EXTENDS_PROP.equals( propName ) || DesignElement.USER_PROPERTIES_PROP.equals( propName ) || IOdaExtendableElementModel.EXTENSION_ID_PROP .equals( propName ) || IExtendedItemModel.EXTENSION_NAME_PROP.equals( propName ) || DesignElement.REF_TEMPLATE_PARAMETER_PROP .equals( propName ) || DesignElement.VIEW_ACTION_PROP.equals( propName ) ) continue; ElementPropertyDefn propDefn = destination.getElement( ) .getPropertyDefn( propName ); if ( propDefn == null ) continue; Object value = null; // the special case for the toc, pageBreakAfter and pageBreakBefore // properties on the group element // for toc the default value is the group expression. if ( propHandle.getElement( ) instanceof GroupElement && ( GroupElement.TOC_PROP.equals( propName ) || IStyleModel.PAGE_BREAK_AFTER_PROP .equals( propName ) || IStyleModel.PAGE_BREAK_BEFORE_PROP .equals( propName ) || IStyleModel.PAGE_BREAK_INSIDE_PROP .equals( propName ) ) ) value = propHandle.getElement( ).getLocalProperty( propHandle.getModule( ), propDefn ); else if ( onlyFactoryProperty ) value = propHandle.getElement( ).getFactoryProperty( propHandle.getModule( ), propDefn ); else if ( Module.IMAGES_PROP.equals( propName ) ) { // Copy the embedded images Iterator images = source.getPropertyHandle( Module.IMAGES_PROP ) .iterator( ); while ( images.hasNext( ) ) { StructureHandle image = (StructureHandle) images.next( ); try { ElementExportUtil.exportStructure( image, (LibraryHandle) destination, false ); } catch ( SemanticException e ) { assert false; } } continue; } else value = propHandle.getElement( ).getStrategy( ) .getPropertyExceptRomDefault( propHandle.getModule( ), propHandle.getElement( ), propDefn ); Object valueToSet = ModelUtil.copyValue( propHandle.getDefn( ), value ); destination.getElement( ).setProperty( propName, valueToSet ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/ModelUtil.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 6751, 2297, 12, 29703, 1046, 3259, 1084, 16, 1082, 202, 15478, 1046, 3259, 2929, 16, 1250, 1338, 1733, 1396, 262, 202, 95, 202, 202, 11231, 1084, 480, 446, 31, 202, 202, 11231, 2929, 480, 446, 31, 202, 202, 430, 261, 401, 12, 261, 1084, 1276, 8706, 15478, 3259, 262, 597, 261, 2929, 1276, 18694, 3259, 262, 262, 262, 1082, 202, 11231, 2929, 18, 588, 3262, 82, 12, 262, 18, 17994, 12, 262, 18, 14963, 5556, 12, 6862, 202, 3168, 18, 588, 3262, 82, 12, 262, 18, 17994, 12, 262, 11272, 202, 202, 430, 261, 1084, 18, 588, 3262, 82, 12, 262, 18, 5965, 87, 1299, 2297, 12, 262, 262, 202, 202, 95, 1082, 202, 1396, 3259, 2270, 3259, 273, 1084, 6862, 202, 18, 588, 1396, 3259, 12, 29703, 1046, 18, 4714, 67, 17421, 67, 15811, 11272, 1082, 202, 921, 460, 273, 1084, 18, 21336, 12, 262, 18, 588, 1299, 2297, 12, 11272, 1082, 202, 921, 460, 25208, 273, 446, 31, 1082, 202, 430, 261, 2270, 3259, 480, 446, 262, 1082, 202, 95, 9506, 202, 1132, 25208, 273, 3164, 1304, 18, 3530, 620, 12, 2270, 3259, 18, 588, 3262, 82, 12, 262, 16, 460, 11272, 1082, 202, 97, 1082, 202, 430, 261, 460, 25208, 480, 446, 262, 1082, 202, 95, 9506, 202, 3198, 1400, 273, 261, 261, 682, 13, 460, 25208, 262, 18, 9838, 12, 11272, 9506, 202, 17523, 261, 1400, 18, 5332, 2134, 12, 262, 262, 9506, 202, 95, 6862, 202, 1299, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6751, 2297, 12, 29703, 1046, 3259, 1084, 16, 1082, 202, 15478, 1046, 3259, 2929, 16, 1250, 1338, 1733, 1396, 262, 202, 95, 202, 202, 11231, 1084, 480, 446, 31, 202, 202, 11231, 2929, 480, 446, 31, 202, 202, 430, 261, 401, 12, 261, 1084, 1276, 8706, 15478, 3259, 262, 597, 261, 2929, 1276, 18694, 3259, 262, 262, 262, 1082, 202, 11231, 2929, 18, 588, 3262, 82, 12, 262, 18, 17994, 12, 262, 18, 14963, 5556, 12, 6862, 202, 3168, 18, 588, 3262, 82, 12, 262, 18, 17994, 12, 262, 11272, 202, 202, 430, 261, 1084, 18, 588, 3262, 82, 12, 262, 18, 5965, 87, 1299, 2297, 12, 262, 262, 202, 202, 95, 1082, 202, 2 ]
fInternalSubset.append("PUBLIC '"); fInternalSubset.append(publicId); fInternalSubset.append("' '");
fInternalSubset.append ("PUBLIC '"); fInternalSubset.append (publicId); fInternalSubset.append ("' '");
public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>externalEntityDecl: "+name); if (DEBUG_BASEURI) { System.out.println(" expandedSystemId:"+ identifier.getExpandedSystemId()); System.out.println(" baseURI:"+ identifier.getBaseSystemId()); } } // internal subset string String publicId = identifier.getPublicId(); String literalSystemId = identifier.getLiteralSystemId(); if (fInternalSubset != null && !fInDTDExternalSubset) { fInternalSubset.append("<!ENTITY "); if (name.startsWith("%")) { fInternalSubset.append("% "); fInternalSubset.append(name.substring(1)); } else { fInternalSubset.append(name); } fInternalSubset.append(' '); if (publicId != null) { fInternalSubset.append("PUBLIC '"); fInternalSubset.append(publicId); fInternalSubset.append("' '"); } else { fInternalSubset.append("SYSTEM '"); } fInternalSubset.append(literalSystemId); fInternalSubset.append("'>\n"); } // NOTE: We only know how to create these nodes for the Xerces // DOM implementation because DOM Level 2 does not specify // that functionality. -Ac // create full node // don't add parameter entities! if(name.startsWith("%")) return; if (fDocumentType != null) { NamedNodeMap entities = fDocumentType.getEntities(); EntityImpl entity = (EntityImpl)entities.getNamedItem(name); if (entity == null) { entity = (EntityImpl)fDocumentImpl.createEntity(name); entity.setPublicId(publicId); entity.setSystemId(literalSystemId); entity.setBaseURI(identifier.getBaseSystemId()); entities.setNamedItem(entity); } } // create deferred node if (fDocumentTypeIndex != -1) { boolean found = false; int nodeIndex = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (nodeIndex != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(nodeIndex, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(nodeIndex, false); if (nodeName.equals(name)) { found = true; break; } } nodeIndex = fDeferredDocumentImpl.getRealPrevSibling(nodeIndex, false); } if (!found) { int entityIndex = fDeferredDocumentImpl.createDeferredEntity( name, publicId, literalSystemId, null, identifier.getBaseSystemId()); fDeferredDocumentImpl.appendChild(fDocumentTypeIndex, entityIndex); } } } // externalEntityDecl(String,XMLResourceIdentifier, Augmentations)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3903, 1943, 3456, 12, 780, 508, 16, 3167, 1420, 3004, 2756, 16, 4766, 282, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 29221, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 631, 34, 9375, 1943, 3456, 30, 13773, 529, 1769, 5411, 309, 261, 9394, 67, 8369, 3098, 13, 288, 1171, 2332, 18, 659, 18, 8222, 2932, 282, 8406, 3163, 548, 2773, 15, 2756, 18, 588, 17957, 3163, 548, 10663, 7734, 2332, 18, 659, 18, 8222, 2932, 282, 1026, 3098, 2773, 15, 2756, 18, 588, 2171, 3163, 548, 10663, 5411, 289, 3639, 289, 1850, 368, 2713, 7931, 533, 3639, 514, 1071, 548, 273, 2756, 18, 588, 4782, 548, 5621, 3639, 514, 7158, 3163, 548, 273, 2756, 18, 588, 6177, 3163, 548, 5621, 3639, 309, 261, 74, 3061, 20315, 480, 446, 597, 401, 74, 382, 25728, 6841, 20315, 13, 288, 5411, 284, 3061, 20315, 18, 6923, 2932, 5586, 11101, 315, 1769, 5411, 309, 261, 529, 18, 17514, 1190, 2932, 16407, 3719, 288, 7734, 284, 3061, 20315, 18, 6923, 27188, 315, 1769, 7734, 284, 3061, 20315, 18, 6923, 12, 529, 18, 28023, 12, 21, 10019, 5411, 289, 5411, 469, 288, 7734, 284, 3061, 20315, 18, 6923, 12, 529, 1769, 5411, 289, 5411, 284, 3061, 20315, 18, 6923, 2668, 28005, 5411, 309, 261, 482, 548, 480, 446, 13, 288, 7734, 284, 3061, 20315, 18, 6923, 2932, 14939, 2119, 1769, 7734, 284, 3061, 20315, 18, 6923, 12, 482, 548, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3903, 1943, 3456, 12, 780, 508, 16, 3167, 1420, 3004, 2756, 16, 4766, 282, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 29221, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 631, 34, 9375, 1943, 3456, 30, 13773, 529, 1769, 5411, 309, 261, 9394, 67, 8369, 3098, 13, 288, 1171, 2332, 18, 659, 18, 8222, 2932, 282, 8406, 3163, 548, 2773, 15, 2756, 18, 588, 17957, 3163, 548, 10663, 7734, 2332, 18, 659, 18, 8222, 2932, 282, 1026, 3098, 2773, 15, 2756, 18, 588, 2171, 3163, 548, 10663, 5411, 289, 3639, 289, 1850, 368, 2713, 7931, 533, 3639, 514, 1071, 548, 273, 2756, 18, 588, 4782, 2 ]
statusMessage += emitStringEndTag(DIAGNOSTIC);
statusMessage += emitStringEndTag(DIAGNOSTIC);
protected void formatStatusMessage ( String hdr, String reason) { statusMessage += emitStringBeginTag(DIAGNOSTIC); statusMessage += emitStringAttribute( STATUS, "OK" ); statusMessage += emitStringAttribute( REASON, reason ); statusMessage += emitStringEndTag(); statusMessage += emitStringCData(EXCEPTION_TEXT, hdr); statusMessage += emitStringEndTag(DIAGNOSTIC); }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/Torture.java/buggy/src/test/torture/Torture.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 740, 1482, 1079, 261, 514, 7723, 16, 9506, 202, 780, 3971, 13, 288, 202, 202, 2327, 1079, 1011, 3626, 780, 8149, 1805, 12, 2565, 1781, 3417, 882, 2871, 1769, 202, 225, 202, 2327, 1079, 1011, 3626, 780, 1499, 12, 7136, 16, 315, 3141, 6, 11272, 202, 225, 202, 2327, 1079, 1011, 3626, 780, 1499, 12, 2438, 37, 1413, 16, 3971, 11272, 202, 202, 2327, 1079, 1011, 3626, 780, 25633, 5621, 202, 202, 2327, 1079, 1011, 3626, 780, 39, 751, 12, 12658, 67, 5151, 16, 7723, 1769, 202, 565, 202, 2327, 1079, 1011, 3626, 780, 25633, 12, 2565, 1781, 3417, 882, 2871, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1117, 918, 740, 1482, 1079, 261, 514, 7723, 16, 9506, 202, 780, 3971, 13, 288, 202, 202, 2327, 1079, 1011, 3626, 780, 8149, 1805, 12, 2565, 1781, 3417, 882, 2871, 1769, 202, 225, 202, 2327, 1079, 1011, 3626, 780, 1499, 12, 7136, 16, 315, 3141, 6, 11272, 202, 225, 202, 2327, 1079, 1011, 3626, 780, 1499, 12, 2438, 37, 1413, 16, 3971, 11272, 202, 202, 2327, 1079, 1011, 3626, 780, 25633, 5621, 202, 202, 2327, 1079, 1011, 3626, 780, 39, 751, 12, 12658, 67, 5151, 16, 7723, 1769, 202, 565, 202, 2327, 1079, 1011, 3626, 780, 25633, 12, 2565, 1781, 3417, 882, 2871, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void handleDispose() { state = UNLINKED; }
private void handleDispose() { state = UNLINKED; }
private void handleDispose() { state = UNLINKED; }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/cf83d7e74fdf42d9c4357c3e575c08395991a878/TopWindowManager.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TopWindowManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 1669, 4150, 1435, 202, 95, 202, 202, 2019, 273, 5019, 10554, 2056, 31, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 1669, 4150, 1435, 202, 95, 202, 202, 2019, 273, 5019, 10554, 2056, 31, 225, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!(object instanceof CategoryActivityBindingDefinition)) return false;
if (!(object instanceof CategoryActivityBindingDefinition)) { return false; }
public boolean equals(Object object) { if (!(object instanceof CategoryActivityBindingDefinition)) return false; final CategoryActivityBindingDefinition castedObject = (CategoryActivityBindingDefinition) object; if (!Util.equals(activityId, castedObject.activityId)) { return false; } if (!Util.equals(categoryId, castedObject.categoryId)) { return false; } return Util.equals(sourceId, castedObject.sourceId); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/CategoryActivityBindingDefinition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/CategoryActivityBindingDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 733, 13, 288, 3639, 309, 16051, 12, 1612, 1276, 9856, 6193, 5250, 1852, 3719, 5411, 327, 629, 31, 3639, 727, 9856, 6193, 5250, 1852, 4812, 23016, 273, 261, 4457, 6193, 5250, 1852, 13, 733, 31, 3639, 309, 16051, 1304, 18, 14963, 12, 9653, 548, 16, 4812, 23016, 18, 9653, 548, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 16051, 1304, 18, 14963, 12, 4743, 548, 16, 4812, 23016, 18, 4743, 548, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 3564, 18, 14963, 12, 3168, 548, 16, 4812, 23016, 18, 3168, 548, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 733, 13, 288, 3639, 309, 16051, 12, 1612, 1276, 9856, 6193, 5250, 1852, 3719, 5411, 327, 629, 31, 3639, 727, 9856, 6193, 5250, 1852, 4812, 23016, 273, 261, 4457, 6193, 5250, 1852, 13, 733, 31, 3639, 309, 16051, 1304, 18, 14963, 12, 9653, 548, 16, 4812, 23016, 18, 9653, 548, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 16051, 1304, 18, 14963, 12, 4743, 548, 16, 4812, 23016, 18, 4743, 548, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 3564, 18, 14963, 12, 3168, 548, 16, 4812, 23016, 18, 3168, 548, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"a.managedObjectInstace as managedObjectInstace, " +
"a.managedObjectInstance as managedObjectInstance, " +
public AlarmMappingQuery(DataSource ds, String clause) { super(ds, "SELECT " + "a.eventUei as eventUei, " + "a.dpName as dpName, " + "a.nodeID as nodeID, " + "a.ipaddr as ipaddr, " + "a.serviceID as serviceID, " + "a.reductionKey as reductionKey, " + "a.alarmType as alarmType, " + "a.counter as counter, " + "a.severity as severity, " + "a.lastEventID as lastEventID, " + "a.firstEventTime as firstEventTime, " + "a.lastEventTime as lastEventTime, " + "a.description as description, " + "a.logMsg as logMsg, " + "a.operInstruct as operInstruct, " + "a.tticketID as tticketID, " + "a.tticketState as tticketState, " + "a.mouseOverText as mouseOverText, " + "a.suppressedUntil as suppressedUntil, " + "a.suppressedUser as suppressedUser, " + "a.suppressedTime as suppressedTime, " + "a.alarmAckUser as alarmAckUser, " + "a.alarmAckTime as alarmAckTime, " + "a.clearUei as clearUei, " + "a.managedObjectInstace as managedObjectInstace, " + "a.managedObjectType as managedObjectType, " + "a.applicationDN as applicationDN, " + "a.ossPrimaryKey as ossPrimaryKey, " + "a.alarmID as alarmID " +clause); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/6512693d8415dde741685c8fad6d045262b4c8c0/AlarmMappingQuery.java/clean/opennms-dao/src/main/java/org/opennms/netmgt/dao/jdbc/alarm/AlarmMappingQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2262, 4610, 3233, 1138, 12, 8597, 3780, 16, 514, 6591, 13, 288, 3639, 2240, 12, 2377, 16, 315, 4803, 315, 397, 1850, 202, 202, 6, 69, 18, 2575, 57, 73, 77, 487, 871, 57, 73, 77, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 9295, 461, 487, 9986, 461, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 2159, 734, 487, 14871, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 625, 4793, 487, 2359, 4793, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 3278, 734, 487, 21212, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 1118, 4062, 653, 487, 20176, 653, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 20681, 559, 487, 13721, 559, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 7476, 487, 3895, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 27341, 487, 11426, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 2722, 1133, 734, 487, 1142, 1133, 734, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 3645, 1133, 950, 487, 1122, 1133, 950, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 2722, 1133, 950, 487, 1142, 1133, 950, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 3384, 487, 2477, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 1330, 3332, 487, 613, 3332, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 4063, 382, 1697, 487, 2255, 382, 1697, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 748, 29378, 734, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2262, 4610, 3233, 1138, 12, 8597, 3780, 16, 514, 6591, 13, 288, 3639, 2240, 12, 2377, 16, 315, 4803, 315, 397, 1850, 202, 202, 6, 69, 18, 2575, 57, 73, 77, 487, 871, 57, 73, 77, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 9295, 461, 487, 9986, 461, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 2159, 734, 487, 14871, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 625, 4793, 487, 2359, 4793, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 3278, 734, 487, 21212, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 1118, 4062, 653, 487, 20176, 653, 16, 315, 397, 1850, 202, 202, 6, 69, 18, 20681, 559, 487, 2 ]
0));
e.getModifiers()));
public void run() { Thread actionThread = new Thread(){ public void run() { ListIterator li = actionList.listIterator(0); while (li.hasNext()) { ActionListener al; al = (ActionListener) li.next(); al.actionPerformed(new ActionEvent(GnomeTrayIconService.this, ActionEvent.ACTION_PERFORMED, "PressAction", e.getWhen(), 0)); } } }; actionThread.start(); }
4176 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4176/7047c58ac0ea8eb8f8361695e507696d53ce494d/GnomeTrayIconService.java/buggy/src/jdic/src/unix/classes/org/jdesktop/jdic/tray/internal/impl/GnomeTrayIconService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 5375, 4884, 1301, 3830, 273, 394, 4884, 1435, 95, 10792, 1071, 918, 1086, 1435, 288, 13491, 987, 3198, 4501, 273, 1301, 682, 18, 1098, 3198, 12, 20, 1769, 13491, 1323, 261, 549, 18, 5332, 2134, 10756, 288, 13491, 25962, 524, 31, 13491, 524, 273, 261, 1803, 2223, 13, 4501, 18, 4285, 5621, 13491, 524, 18, 1128, 13889, 12, 2704, 19641, 12, 43, 82, 1742, 56, 435, 5554, 1179, 18, 2211, 16, 4766, 565, 19641, 18, 12249, 67, 3194, 7473, 25773, 16, 315, 11840, 1803, 3113, 425, 18, 588, 9434, 9334, 4766, 565, 425, 18, 588, 11948, 1435, 10019, 13491, 289, 10792, 289, 4766, 565, 289, 31, 5375, 1301, 3830, 18, 1937, 5621, 7734, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 5375, 4884, 1301, 3830, 273, 394, 4884, 1435, 95, 10792, 1071, 918, 1086, 1435, 288, 13491, 987, 3198, 4501, 273, 1301, 682, 18, 1098, 3198, 12, 20, 1769, 13491, 1323, 261, 549, 18, 5332, 2134, 10756, 288, 13491, 25962, 524, 31, 13491, 524, 273, 261, 1803, 2223, 13, 4501, 18, 4285, 5621, 13491, 524, 18, 1128, 13889, 12, 2704, 19641, 12, 43, 82, 1742, 56, 435, 5554, 1179, 18, 2211, 16, 4766, 565, 19641, 18, 12249, 67, 3194, 7473, 25773, 16, 315, 11840, 1803, 3113, 425, 18, 588, 9434, 9334, 4766, 565, 425, 18, 588, 11948, 1435, 10019, 13491, 289, 10792, 289, 4766, 565, 289, 31, 5375, 1301, 3830, 18, 1937, 5621, 7734, 2 ]
if (System.getProperty("sgs.ostore.startclean").equalsIgnoreCase("true")){
String cleanProperty = System.getProperty("sgs.ostore.startclean"); if ((cleanProperty!=null)&&(cleanProperty.equalsIgnoreCase("true"))){
private Router startupGame(TransportManager transportManager, DeploymentRec game, StatusReport installationReport) { Router router = null; int gameID = game.getID(); try { router = new RouterImpl(transportManager); } catch (Exception e) { e.printStackTrace(); return null; } int gameCount = Integer.parseInt(installationReport.getParameter( "game", "count")); String statusBlockName = "game." + gameCount; installationReport.setParameter(statusBlockName, "id", Integer .toString(gameID)); installationReport.setParameter(statusBlockName, "description", game .getDescription()); installationReport .setParameter(statusBlockName, "name", game.getName()); int umgrCount = 0; // create simulation container for game Simulation sim=null; try { ostore = new TSOObjectStore(new PersistantInMemoryDataSpace(gameID)); if (System.getProperty("sgs.ostore.startclean").equalsIgnoreCase("true")){ if (verbose){ System.out.println("Clearing Object Store"); } ostore.clear(); } sim = new SimulationImpl(kernel,ostore,router, game); } catch (InstantiationException e) { e.printStackTrace(); return null; } // create user managers for (UserMgrRec umgrRec : game.getUserManagers()) { String serverClassName = umgrRec.getServerClassName(); String umgrBlock = statusBlockName + ".umgr." + umgrCount; umgrCount++; installationReport.setParameter(statusBlockName + ".umgr", "count", Integer.toString(umgrCount)); try { Class serverClass = Class.forName(serverClassName); Constructor constructor = serverClass .getConstructor(new Class[] { Router.class, Map.class }); UserManager umgr = (UserManager) constructor .newInstance(new Object[] { router, umgrRec.getParameterMap() }); installationReport.setParameter(umgrBlock, "clientClassName", umgr.getClientClassname()); Set clientParams = umgr.getClientParams().entrySet(); installationReport.setParameter(umgrBlock + ".params", "count", Integer.toString(clientParams.size())); int c = 0; for (Iterator i2 = clientParams.iterator(); i2.hasNext();) { Entry entry = (Entry) i2.next(); installationReport.setParameter(umgrBlock + ".params.keys", Integer.toString(c), (String) entry.getKey()); installationReport.setParameter(umgrBlock + ".params.values", Integer.toString(c), (String) entry.getValue()); c++; } if (umgrRec.hasValidatorModules()) { UserValidatorFactory validatorFactory = new UserValidatorFactoryImpl(); for (ValidatorRec lmoduleRec : umgrRec .getValidatorModules()) { String loginModuleClassname = lmoduleRec .getValidatorClassName(); Class loginModuleClass = Class .forName(loginModuleClassname); validatorFactory.addLoginModule(loginModuleClass, lmoduleRec.getParameterMap()); } umgr.setUserValidatorFactory(validatorFactory); } // start up container // add client to list // need to start boot method in container if it has one here. } catch (Exception ex) { ex.printStackTrace(); } gameCount++; installationReport.setParameter("game", "count", Integer .toString(gameCount)); } return router; }
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/eac381ef041293c9120046b6e5053f2bf8aa16bc/SGS.java/buggy/src/com/sun/gi/SGS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 9703, 11850, 12496, 12, 6568, 1318, 4736, 1318, 16, 1082, 202, 6733, 5650, 7920, 16, 2685, 4820, 13193, 4820, 13, 288, 202, 202, 8259, 4633, 273, 446, 31, 202, 202, 474, 7920, 734, 273, 7920, 18, 588, 734, 5621, 202, 202, 698, 288, 1082, 202, 10717, 273, 394, 9703, 2828, 12, 13049, 1318, 1769, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 202, 73, 18, 1188, 6332, 5621, 1082, 202, 2463, 446, 31, 202, 202, 97, 9506, 202, 474, 7920, 1380, 273, 2144, 18, 2670, 1702, 12, 5425, 367, 4820, 18, 588, 1662, 12, 9506, 202, 6, 13957, 3113, 315, 1883, 7923, 1769, 202, 202, 780, 1267, 1768, 461, 273, 315, 13957, 1199, 397, 7920, 1380, 31, 202, 202, 5425, 367, 4820, 18, 542, 1662, 12, 2327, 1768, 461, 16, 315, 350, 3113, 2144, 9506, 202, 18, 10492, 12, 13957, 734, 10019, 202, 202, 5425, 367, 4820, 18, 542, 1662, 12, 2327, 1768, 461, 16, 315, 3384, 3113, 7920, 9506, 202, 18, 588, 3291, 10663, 202, 202, 5425, 367, 4820, 9506, 202, 18, 542, 1662, 12, 2327, 1768, 461, 16, 315, 529, 3113, 7920, 18, 17994, 10663, 202, 202, 474, 9570, 3197, 1380, 273, 374, 31, 202, 202, 759, 752, 14754, 1478, 364, 7920, 1082, 202, 18419, 3142, 33, 2011, 31, 202, 202, 698, 288, 1082, 202, 669, 479, 273, 394, 399, 3584, 921, 2257, 12, 2704, 21583, 970, 382, 6031, 751, 3819, 12, 13957, 734, 10019, 1082, 202, 430, 261, 3163, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9703, 11850, 12496, 12, 6568, 1318, 4736, 1318, 16, 1082, 202, 6733, 5650, 7920, 16, 2685, 4820, 13193, 4820, 13, 288, 202, 202, 8259, 4633, 273, 446, 31, 202, 202, 474, 7920, 734, 273, 7920, 18, 588, 734, 5621, 202, 202, 698, 288, 1082, 202, 10717, 273, 394, 9703, 2828, 12, 13049, 1318, 1769, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 202, 73, 18, 1188, 6332, 5621, 1082, 202, 2463, 446, 31, 202, 202, 97, 9506, 202, 474, 7920, 1380, 273, 2144, 18, 2670, 1702, 12, 5425, 367, 4820, 18, 588, 1662, 12, 9506, 202, 6, 13957, 3113, 315, 1883, 7923, 1769, 202, 202, 780, 1267, 1768, 461, 273, 315, 13957, 1199, 397, 2 ]
final void setObsolete( boolean sense ) { obsoleteFlag = sense; }
final void setObsolete(boolean sense) { if (sense) { state |= OBSOLETE; } else { state &= ~OBSOLETE; } }
final void setObsolete( boolean sense ) { obsoleteFlag = sense; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a889d584defb21b1d15899f7c38c039cf705e5f5/VM_CompiledMethod.java/clean/rvm/src/vm/classLoader/VM_CompiledMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 202, 202, 542, 27637, 19513, 12, 1250, 12764, 262, 25083, 225, 288, 27191, 4678, 273, 12764, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 918, 202, 202, 542, 27637, 19513, 12, 1250, 12764, 262, 25083, 225, 288, 27191, 4678, 273, 12764, 31, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
long sz = buckets[i].size(); if(sz < blockLength) { if(i != dataBlockStatus.length-1) throw new IllegalArgumentException("All buckets except the last must be the full size"); if(sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: "+sz+" bigger than "+blockLength); }
public void realDecode(SplitfileBlock[] dataBlockStatus, SplitfileBlock[] checkBlockStatus, int blockLength, BucketFactory bf) throws IOException { Logger.minor(this, "Doing decode: "+dataBlockStatus.length+" data blocks, "+checkBlockStatus.length+" check blocks, block length "+blockLength+" with "+this); if(dataBlockStatus.length + checkBlockStatus.length != n) throw new IllegalArgumentException(); if(dataBlockStatus.length != k) throw new IllegalArgumentException(); Buffer[] packets = new Buffer[k]; Bucket[] buckets = new Bucket[n]; DataInputStream[] readers = new DataInputStream[k]; OutputStream[] writers = new OutputStream[k]; int[] toDecode = new int[n-k]; int numberToDecode = 0; // can be less than n-k byte[] realBuffer = new byte[n * STRIPE_SIZE]; for(int i=0;i<n;i++) packets[i] = new Buffer(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); for(int i=0;i<dataBlockStatus.length;i++) { buckets[i] = dataBlockStatus[i].getData(); long sz = buckets[i].size(); if(sz < blockLength) { if(i != dataBlockStatus.length-1) throw new IllegalArgumentException("All buckets except the last must be the full size"); if(sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: "+sz+" bigger than "+blockLength); } if(buckets[i] == null) { buckets[i] = bf.makeBucket(blockLength); writers[i] = buckets[i].getOutputStream(); readers[i] = null; toDecode[numberToDecode++] = i; } else { writers[i] = null; readers[i] = new DataInputStream(buckets[i].getInputStream()); } } for(int i=0;i<checkBlockStatus.length;i++) { buckets[i+k] = checkBlockStatus[i].getData(); if(buckets[i+k] == null) { buckets[i+k] = bf.makeBucket(blockLength); writers[i+k] = buckets[i+k].getOutputStream(); readers[i+k] = null; toDecode[numberToDecode++] = i+k; } else { writers[i+k] = null; readers[i+k] = new DataInputStream(buckets[i+k].getInputStream()); } } if(numberToDecode != toDecode.length) { int[] newToDecode = new int[numberToDecode]; System.arraycopy(toDecode, 0, newToDecode, 0, numberToDecode); toDecode = newToDecode; } if(numberToDecode > 0) { // Do the (striped) decode for(int offset=0;offset<blockLength;offset+=STRIPE_SIZE) { // Read the data in first for(int i=0;i<n;i++) { if(readers[i] != null) { readers[i].readFully(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } // Do the decode // Not shuffled code.decode(packets, toDecode); // packets now contains an array of decoded blocks, in order // Write the data out for(int i=0;i<n;i++) { if(writers[i] != null) writers[i].write(realBuffer, i*STRIPE_SIZE, STRIPE_SIZE); } } } for(int i=0;i<n;i++) { if(writers[i] != null) writers[i].close(); if(readers[i] != null) readers[i].close(); } // Set new buckets only after have a successful decode. // Note that the last data bucket will be overwritten padded. for(int i=0;i<dataBlockStatus.length;i++) { dataBlockStatus[i].setData(buckets[i]); } for(int i=0;i<checkBlockStatus.length;i++) { checkBlockStatus[i].setData(buckets[i+k]); } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/923f3296489fa89e5c0d76399b6de451cd594133/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2863, 6615, 12, 5521, 768, 1768, 8526, 501, 1768, 1482, 16, 5385, 768, 1768, 8526, 866, 1768, 1482, 16, 509, 25367, 16, 7408, 1733, 16222, 13, 1216, 1860, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3244, 310, 2495, 30, 13773, 892, 1768, 1482, 18, 2469, 9078, 501, 4398, 16, 13773, 1893, 1768, 1482, 18, 2469, 9078, 866, 4398, 16, 1203, 769, 13773, 2629, 1782, 9078, 598, 13773, 2211, 1769, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 397, 866, 1768, 1482, 18, 2469, 480, 290, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 480, 417, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 1892, 8526, 12640, 273, 394, 3525, 63, 79, 15533, 202, 202, 4103, 8526, 9169, 273, 394, 7408, 63, 82, 15533, 202, 202, 751, 4348, 8526, 16527, 273, 394, 29382, 63, 79, 15533, 202, 202, 4632, 8526, 18656, 273, 394, 8962, 63, 79, 15533, 202, 202, 474, 8526, 358, 6615, 273, 394, 509, 63, 82, 17, 79, 15533, 202, 202, 474, 1300, 774, 6615, 273, 374, 31, 368, 848, 506, 5242, 2353, 290, 17, 79, 9506, 202, 7229, 8526, 2863, 1892, 273, 394, 1160, 63, 82, 380, 2347, 2259, 1423, 67, 4574, 15533, 9506, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 82, 31, 77, 27245, 1082, 202, 28717, 63, 77, 65, 273, 394, 3525, 12, 7688, 1892, 16, 277, 14, 15765, 1423, 67, 4574, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2863, 6615, 12, 5521, 768, 1768, 8526, 501, 1768, 1482, 16, 5385, 768, 1768, 8526, 866, 1768, 1482, 16, 509, 25367, 16, 7408, 1733, 16222, 13, 1216, 1860, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3244, 310, 2495, 30, 13773, 892, 1768, 1482, 18, 2469, 9078, 501, 4398, 16, 13773, 1893, 1768, 1482, 18, 2469, 9078, 866, 4398, 16, 1203, 769, 13773, 2629, 1782, 9078, 598, 13773, 2211, 1769, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 397, 866, 1768, 1482, 18, 2469, 480, 290, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 202, 430, 12, 892, 1768, 1482, 18, 2469, 480, 417, 13, 1082, 202, 12849, 394, 2754, 5621, 202, 2 ]
offset = VM_Entrypoints.timerTicksField.getOffset();
offset = VM_Entrypoints.timerTicksField.getOffsetAsInt();
static void emitVirtualMachineDeclarations (int bootImageAddress) { // load address for the boot image // p("static const int bootImageAddress = 0x" + Integer.toHexString(bootImageAddress) + ";\n"); // values in VM_Constants, from VM_Configuration // //-#if RVM_FOR_POWERPC if (VM.BuildForPowerPC) { p("static const int VM_Constants_JTOC_POINTER = " + VM_Constants.JTOC_POINTER + ";\n"); p("static const int VM_Constants_FRAME_POINTER = " + VM_Constants.FRAME_POINTER + ";\n"); p("static const int VM_Constants_PROCESSOR_REGISTER = " + VM_Constants.PROCESSOR_REGISTER + ";\n"); p("static const int VM_Constants_FIRST_VOLATILE_GPR = " + VM_Constants.FIRST_VOLATILE_GPR + ";\n"); p("static const int VM_Constants_DIVIDE_BY_ZERO_MASK = " + VM_Constants.DIVIDE_BY_ZERO_MASK + ";\n"); p("static const int VM_Constants_DIVIDE_BY_ZERO_TRAP = " + VM_Constants.DIVIDE_BY_ZERO_TRAP + ";\n"); p("static const int VM_Constants_MUST_IMPLEMENT_MASK = " + VM_Constants.MUST_IMPLEMENT_MASK + ";\n"); p("static const int VM_Constants_MUST_IMPLEMENT_TRAP = " + VM_Constants.MUST_IMPLEMENT_TRAP + ";\n"); p("static const int VM_Constants_STORE_CHECK_MASK = " + VM_Constants.STORE_CHECK_MASK + ";\n"); p("static const int VM_Constants_STORE_CHECK_TRAP = " + VM_Constants.STORE_CHECK_TRAP + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_MASK = " + VM_Constants.ARRAY_INDEX_MASK + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_TRAP = " + VM_Constants.ARRAY_INDEX_TRAP + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_REG_MASK = " + VM_Constants.ARRAY_INDEX_REG_MASK + ";\n"); p("static const int VM_Constants_ARRAY_INDEX_REG_SHIFT = " + VM_Constants.ARRAY_INDEX_REG_SHIFT + ";\n"); p("static const int VM_Constants_CONSTANT_ARRAY_INDEX_MASK = " + VM_Constants.CONSTANT_ARRAY_INDEX_MASK + ";\n"); p("static const int VM_Constants_CONSTANT_ARRAY_INDEX_TRAP = " + VM_Constants.CONSTANT_ARRAY_INDEX_TRAP + ";\n"); p("static const int VM_Constants_CONSTANT_ARRAY_INDEX_INFO = " + VM_Constants.CONSTANT_ARRAY_INDEX_INFO + ";\n"); p("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_MASK = " + VM_Constants.WRITE_BUFFER_OVERFLOW_MASK + ";\n"); p("static const int VM_Constants_WRITE_BUFFER_OVERFLOW_TRAP = " + VM_Constants.WRITE_BUFFER_OVERFLOW_TRAP + ";\n"); p("static const int VM_Constants_STACK_OVERFLOW_MASK = " + VM_Constants.STACK_OVERFLOW_MASK + ";\n"); p("static const int VM_Constants_STACK_OVERFLOW_HAVE_FRAME_TRAP = " + VM_Constants.STACK_OVERFLOW_HAVE_FRAME_TRAP + ";\n"); p("static const int VM_Constants_STACK_OVERFLOW_TRAP = " + VM_Constants.STACK_OVERFLOW_TRAP + ";\n"); p("static const int VM_Constants_CHECKCAST_MASK = " + VM_Constants.CHECKCAST_MASK + ";\n"); p("static const int VM_Constants_CHECKCAST_TRAP = " + VM_Constants.CHECKCAST_TRAP + ";\n"); p("static const int VM_Constants_REGENERATE_MASK = " + VM_Constants.REGENERATE_MASK + ";\n"); p("static const int VM_Constants_REGENERATE_TRAP = " + VM_Constants.REGENERATE_TRAP + ";\n"); p("static const int VM_Constants_NULLCHECK_MASK = " + VM_Constants.NULLCHECK_MASK + ";\n"); p("static const int VM_Constants_NULLCHECK_TRAP = " + VM_Constants.NULLCHECK_TRAP + ";\n"); p("static const int VM_Constants_JNI_STACK_TRAP_MASK = " + VM_Constants.JNI_STACK_TRAP_MASK + ";\n"); p("static const int VM_Constants_JNI_STACK_TRAP = " + VM_Constants.JNI_STACK_TRAP + ";\n"); p("static const int VM_Constants_STACKFRAME_NEXT_INSTRUCTION_OFFSET = " + VM_Constants.STACKFRAME_NEXT_INSTRUCTION_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_ALIGNMENT = " + VM_Constants.STACKFRAME_ALIGNMENT + " ;\n"); } //-#endif //-#if RVM_FOR_IA32 if (VM.BuildForIA32) { p("static const int VM_Constants_EAX = " + VM_Constants.EAX + ";\n"); p("static const int VM_Constants_ECX = " + VM_Constants.ECX + ";\n"); p("static const int VM_Constants_EDX = " + VM_Constants.EDX + ";\n"); p("static const int VM_Constants_EBX = " + VM_Constants.EBX + ";\n"); p("static const int VM_Constants_ESP = " + VM_Constants.ESP + ";\n"); p("static const int VM_Constants_EBP = " + VM_Constants.EBP + ";\n"); p("static const int VM_Constants_ESI = " + VM_Constants.ESI + ";\n"); p("static const int VM_Constants_EDI = " + VM_Constants.EDI + ";\n"); p("static const int VM_Constants_STACKFRAME_BODY_OFFSET = " + VM_Constants.STACKFRAME_BODY_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_RETURN_ADDRESS_OFFSET = " + VM_Constants.STACKFRAME_RETURN_ADDRESS_OFFSET + ";\n"); p("static const int VM_Constants_RVM_TRAP_BASE = " + VM_Constants.RVM_TRAP_BASE + ";\n"); } //-#endif p("static const int VM_Constants_STACK_SIZE_GUARD = " + VM_Constants.STACK_SIZE_GUARD + ";\n"); //-#if RVM_WITH_FLEXIBLE_STACK_SIZES p("static const int VM_Constants_STACK_SIZE_MIN = " + VM_Constants.STACK_SIZE_MIN + ";\n"); p("static const int VM_Constants_STACK_SIZE_NORMAL_DEFAULT = " + VM_Constants.STACK_SIZE_NORMAL_DEFAULT + ";\n"); p("static const int VM_Constants_STACK_SIZE_GROW_MIN = " + VM_Constants.STACK_SIZE_GROW_MIN + ";\n"); p("static const int VM_Constants_STACK_SIZE_GROW_DEFAULT = " + VM_Constants.STACK_SIZE_GROW_DEFAULT + ";\n"); p("static const int VM_Constants_STACK_SIZE_MAX_DEFAULT = " + VM_Constants.STACK_SIZE_MAX_DEFAULT + ";\n"); //-#endif // RVM_WITH_FLEXIBLE_STACK_SIZES p("static const int VM_Constants_INVISIBLE_METHOD_ID = " + VM_Constants.INVISIBLE_METHOD_ID + ";\n"); p("static const int VM_ThinLockConstants_TL_THREAD_ID_SHIFT= " + VM_ThinLockConstants.TL_THREAD_ID_SHIFT + ";\n"); p("static const int VM_Constants_STACKFRAME_HEADER_SIZE = " + VM_Constants.STACKFRAME_HEADER_SIZE + ";\n"); p("static const int VM_Constants_STACKFRAME_METHOD_ID_OFFSET = " + VM_Constants.STACKFRAME_METHOD_ID_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_FRAME_POINTER_OFFSET = " + VM_Constants.STACKFRAME_FRAME_POINTER_OFFSET + ";\n"); p("static const int VM_Constants_STACKFRAME_SENTINEL_FP = " + VM_Constants.STACKFRAME_SENTINEL_FP.toInt() + ";\n"); p("\n"); // values in VM_ObjectModel // pln("static const int VM_ObjectModel_ARRAY_LENGTH_OFFSET = " + VM_ObjectModel.getArrayLengthOffset() + "\n;"); // values in VM_Scheduler // p("static const int VM_Scheduler_PRIMORDIAL_PROCESSOR_ID = " + VM_Scheduler.PRIMORDIAL_PROCESSOR_ID + ";\n"); p("static const int VM_Scheduler_PRIMORDIAL_THREAD_INDEX = " + VM_Scheduler.PRIMORDIAL_THREAD_INDEX + ";\n"); p("\n"); // values in VM_ThreadEventConstants // p("static const double VM_ThreadEventConstants_WAIT_INFINITE = " + VM_ThreadEventConstants.WAIT_INFINITE + ";\n"); // values in VM_ThreadIOQueue // p("static const int VM_ThreadIOQueue_READ_OFFSET = " + VM_ThreadIOQueue.READ_OFFSET + ";\n"); p("static const int VM_ThreadIOQueue_WRITE_OFFSET = " + VM_ThreadIOQueue.WRITE_OFFSET + ";\n"); p("static const int VM_ThreadIOQueue_EXCEPT_OFFSET = " + VM_ThreadIOQueue.EXCEPT_OFFSET + ";\n"); p("\n"); // values in VM_ThreadIOConstants // p("static const int VM_ThreadIOConstants_FD_READY = " + VM_ThreadIOConstants.FD_READY + ";\n"); p("static const int VM_ThreadIOConstants_FD_READY_BIT = " + VM_ThreadIOConstants.FD_READY_BIT + ";\n"); p("static const int VM_ThreadIOConstants_FD_INVALID = " + VM_ThreadIOConstants.FD_INVALID + ";\n"); p("static const int VM_ThreadIOConstants_FD_INVALID_BIT = " + VM_ThreadIOConstants.FD_INVALID_BIT + ";\n"); p("static const int VM_ThreadIOConstants_FD_MASK = " + VM_ThreadIOConstants.FD_MASK + ";\n"); p("\n"); // values in VM_ThreadProcessWaitQueue // p("static const int VM_ThreadProcessWaitQueue_PROCESS_FINISHED = " + VM_ThreadProcessWaitQueue.PROCESS_FINISHED + ";\n"); // values in VM_Runtime // p("static const int VM_Runtime_TRAP_UNKNOWN = " + VM_Runtime.TRAP_UNKNOWN + ";\n"); p("static const int VM_Runtime_TRAP_NULL_POINTER = " + VM_Runtime.TRAP_NULL_POINTER + ";\n"); p("static const int VM_Runtime_TRAP_ARRAY_BOUNDS = " + VM_Runtime.TRAP_ARRAY_BOUNDS + ";\n"); p("static const int VM_Runtime_TRAP_DIVIDE_BY_ZERO = " + VM_Runtime.TRAP_DIVIDE_BY_ZERO + ";\n"); p("static const int VM_Runtime_TRAP_STACK_OVERFLOW = " + VM_Runtime.TRAP_STACK_OVERFLOW + ";\n"); p("static const int VM_Runtime_TRAP_CHECKCAST = " + VM_Runtime.TRAP_CHECKCAST + ";\n"); p("static const int VM_Runtime_TRAP_REGENERATE = " + VM_Runtime.TRAP_REGENERATE + ";\n"); p("static const int VM_Runtime_TRAP_JNI_STACK = " + VM_Runtime.TRAP_JNI_STACK + ";\n"); p("static const int VM_Runtime_TRAP_MUST_IMPLEMENT = " + VM_Runtime.TRAP_MUST_IMPLEMENT + ";\n"); p("static const int VM_Runtime_TRAP_STORE_CHECK = " + VM_Runtime.TRAP_STORE_CHECK + ";\n"); pln(); // values in VM_FileSystem // p("static const int VM_FileSystem_OPEN_READ = " + VM_FileSystem.OPEN_READ + ";\n"); p("static const int VM_FileSystem_OPEN_WRITE = " + VM_FileSystem.OPEN_WRITE + ";\n"); p("static const int VM_FileSystem_OPEN_MODIFY = " + VM_FileSystem.OPEN_MODIFY + ";\n"); p("static const int VM_FileSystem_OPEN_APPEND = " + VM_FileSystem.OPEN_APPEND + ";\n"); p("static const int VM_FileSystem_SEEK_SET = " + VM_FileSystem.SEEK_SET + ";\n"); p("static const int VM_FileSystem_SEEK_CUR = " + VM_FileSystem.SEEK_CUR + ";\n"); p("static const int VM_FileSystem_SEEK_END = " + VM_FileSystem.SEEK_END + ";\n"); p("static const int VM_FileSystem_STAT_EXISTS = " + VM_FileSystem.STAT_EXISTS + ";\n"); p("static const int VM_FileSystem_STAT_IS_FILE = " + VM_FileSystem.STAT_IS_FILE + ";\n"); p("static const int VM_FileSystem_STAT_IS_DIRECTORY = " + VM_FileSystem.STAT_IS_DIRECTORY + ";\n"); p("static const int VM_FileSystem_STAT_IS_READABLE = " + VM_FileSystem.STAT_IS_READABLE + ";\n"); p("static const int VM_FileSystem_STAT_IS_WRITABLE = " + VM_FileSystem.STAT_IS_WRITABLE + ";\n"); p("static const int VM_FileSystem_STAT_LAST_MODIFIED = " + VM_FileSystem.STAT_LAST_MODIFIED + ";\n"); p("static const int VM_FileSystem_STAT_LENGTH = " + VM_FileSystem.STAT_LENGTH + ";\n"); // Value in org.mmtk.vm.Constants: p("static const int MMTk_Constants_BYTES_IN_PAGE = " + org.mmtk.utility.Constants.BYTES_IN_PAGE + ";\n"); // fields in VM_Processor // int offset; offset = VM_Entrypoints.timeSliceExpiredField.getOffset(); p("static const int VM_Processor_timeSliceExpired_offset = " + offset + ";\n"); offset = VM_Entrypoints.takeYieldpointField.getOffset(); p("static const int VM_Processor_takeYieldpoint_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); offset = VM_Entrypoints.activeThreadStackLimitField.getOffset(); p("static const int VM_Processor_activeThreadStackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.pthreadIDField.getOffset(); p("static const int VM_Processor_pthread_id_offset = " + offset + ";\n"); offset = VM_Entrypoints.timerTicksField.getOffset(); p("static const int VM_Processor_timerTicks_offset = " + offset + ";\n"); offset = VM_Entrypoints.reportedTimerTicksField.getOffset(); p("static const int VM_Processor_reportedTimerTicks_offset = " + offset + ";\n"); offset = VM_Entrypoints.activeThreadField.getOffset(); p("static const int VM_Processor_activeThread_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadIdField.getOffset(); p("static const int VM_Processor_threadId_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.framePointerField.getOffset(); p("static const int VM_Processor_framePointer_offset = " + offset + ";\n"); offset = VM_Entrypoints.jtocField.getOffset(); p("static const int VM_Processor_jtoc_offset = " + offset + ";\n"); offset = VM_Entrypoints.arrayIndexTrapParamField.getOffset(); p("static const int VM_Processor_arrayIndexTrapParam_offset = " + offset + ";\n"); //-#endif // fields in VM_Thread // offset = VM_Entrypoints.threadStackField.getOffset(); p("static const int VM_Thread_stack_offset = " + offset + ";\n"); offset = VM_Entrypoints.stackLimitField.getOffset(); p("static const int VM_Thread_stackLimit_offset = " + offset + ";\n"); offset = VM_Entrypoints.threadHardwareExceptionRegistersField.getOffset(); p("static const int VM_Thread_hardwareExceptionRegisters_offset = " + offset + ";\n"); offset = VM_Entrypoints.jniEnvField.getOffset(); p("static const int VM_Thread_jniEnv_offset = " + offset + ";\n"); // fields in VM_Registers // offset = VM_Entrypoints.registersGPRsField.getOffset(); p("static const int VM_Registers_gprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersFPRsField.getOffset(); p("static const int VM_Registers_fprs_offset = " + offset + ";\n"); offset = VM_Entrypoints.registersIPField.getOffset(); p("static const int VM_Registers_ip_offset = " + offset + ";\n"); //-#if RVM_FOR_IA32 offset = VM_Entrypoints.registersFPField.getOffset(); p("static const int VM_Registers_fp_offset = " + offset + ";\n"); //-#endif //-#if RVM_FOR_POWERPC offset = VM_Entrypoints.registersLRField.getOffset(); p("static const int VM_Registers_lr_offset = " + offset + ";\n"); //-#endif offset = VM_Entrypoints.registersInUseField.getOffset(); p("static const int VM_Registers_inuse_offset = " + offset + ";\n"); // fields in VM_JNIEnvironment offset = VM_Entrypoints.JNIExternalFunctionsField.getOffset(); p("static const int VM_JNIEnvironment_JNIExternalFunctions_offset = " + offset + ";\n"); // fields in java.net.InetAddress // offset = VM_Entrypoints.inetAddressAddressField.getOffset(); p("static const int java_net_InetAddress_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.inetAddressFamilyField.getOffset(); p("static const int java_net_InetAddress_family_offset = " + offset + ";\n"); // fields in java.net.SocketImpl // offset = VM_Entrypoints.socketImplAddressField.getOffset(); p("static const int java_net_SocketImpl_address_offset = " + offset + ";\n"); offset = VM_Entrypoints.socketImplPortField.getOffset(); p("static const int java_net_SocketImpl_port_offset = " + offset + ";\n"); // fields in com.ibm.JikesRVM.memoryManagers.JMTk.BasePlan offset = VM_Entrypoints.gcStatusField.getOffset(); p("static const int com_ibm_JikesRVM_memoryManagers_JMTk_BasePlan_gcStatusOffset = " + offset + ";\n"); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/GenerateInterfaceDeclarations.java/buggy/rvm/src/tools/bootImageRunner/GenerateInterfaceDeclarations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 293, 2932, 3845, 1866, 509, 4835, 2040, 1887, 13491, 273, 374, 92, 6, 3639, 397, 2144, 18, 869, 14866, 12, 7137, 2040, 1887, 13, 397, 30750, 82, 8863, 565, 368, 924, 316, 8251, 67, 2918, 16, 628, 8251, 67, 1750, 565, 368, 565, 368, 17, 7, 430, 534, 7397, 67, 7473, 67, 2419, 18839, 3513, 565, 309, 261, 7397, 18, 3116, 1290, 13788, 3513, 13, 288, 1377, 293, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 46, 4296, 39, 67, 2419, 9125, 9079, 273, 315, 1850, 397, 8251, 67, 2918, 18, 46, 4296, 39, 67, 2419, 9125, 397, 30750, 82, 8863, 1377, 293, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 15072, 67, 2419, 9125, 2868, 273, 315, 1850, 397, 8251, 67, 2918, 18, 15072, 67, 2419, 9125, 397, 30750, 82, 8863, 1377, 293, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 16560, 916, 67, 27511, 540, 273, 315, 1850, 397, 8251, 67, 2918, 18, 16560, 916, 67, 27511, 397, 30750, 82, 8863, 1377, 293, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 15354, 67, 29439, 67, 43, 8025, 540, 273, 315, 1850, 397, 8251, 67, 2918, 18, 15354, 67, 29439, 67, 43, 8025, 397, 30750, 82, 8863, 1377, 293, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 31901, 10385, 67, 6486, 67, 24968, 67, 11704, 3639, 273, 315, 1850, 397, 8251, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 918, 3626, 27454, 21408, 261, 474, 4835, 2040, 1887, 13, 288, 565, 368, 1262, 1758, 364, 326, 4835, 1316, 565, 368, 565, 293, 2932, 3845, 1866, 509, 4835, 2040, 1887, 13491, 273, 374, 92, 6, 3639, 397, 2144, 18, 869, 14866, 12, 7137, 2040, 1887, 13, 397, 30750, 82, 8863, 565, 368, 924, 316, 8251, 67, 2918, 16, 628, 8251, 67, 1750, 565, 368, 565, 368, 17, 7, 430, 534, 7397, 67, 7473, 67, 2419, 18839, 3513, 565, 309, 261, 7397, 18, 3116, 1290, 13788, 3513, 13, 288, 1377, 293, 2932, 3845, 1866, 509, 8251, 67, 2918, 67, 46, 4296, 39, 67, 2419, 9125, 9079, 273, 315, 1850, 397, 8251, 67, 2918, 18, 46, 4296, 39, 67, 2 ]
final XMPPSession session = openSession();
final XMPPSession session = openAnonymousSession();
public Release readLatest(final String artifactId, final String groupId) throws XMPPException { final XMPPSession session = openSession(); try { session.setRemoteMethod("release:readlatest"); session.setParameter("artifactId", artifactId); session.setParameter("groupId", groupId); session.execute(); if(session.containsResult()) { return extractRelease(session); } else { return null; } } catch(final Exception x) { throw new XMPPException(x); } finally { session.close(); } }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/20bb878aa178132e5e2ec7df7cb0992c438cd6b2/ReleaseIOHandler.java/buggy/local/model/src/main/java/com/thinkparity/model/parity/model/io/xmpp/handler/ReleaseIOHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10819, 855, 18650, 12, 6385, 514, 25496, 16, 727, 514, 6612, 13, 5411, 1216, 23216, 503, 288, 3639, 727, 23216, 2157, 1339, 273, 1696, 18792, 2157, 5621, 3639, 775, 288, 5411, 1339, 18, 542, 5169, 1305, 2932, 9340, 30, 896, 13550, 8863, 5411, 1339, 18, 542, 1662, 2932, 17706, 548, 3113, 25496, 1769, 5411, 1339, 18, 542, 1662, 2932, 27547, 3113, 6612, 1769, 5411, 1339, 18, 8837, 5621, 5411, 309, 12, 3184, 18, 12298, 1253, 10756, 288, 327, 2608, 7391, 12, 3184, 1769, 289, 5411, 469, 288, 327, 446, 31, 289, 3639, 289, 3639, 1044, 12, 6385, 1185, 619, 13, 288, 604, 394, 23216, 503, 12, 92, 1769, 289, 3639, 3095, 288, 1339, 18, 4412, 5621, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10819, 855, 18650, 12, 6385, 514, 25496, 16, 727, 514, 6612, 13, 5411, 1216, 23216, 503, 288, 3639, 727, 23216, 2157, 1339, 273, 1696, 18792, 2157, 5621, 3639, 775, 288, 5411, 1339, 18, 542, 5169, 1305, 2932, 9340, 30, 896, 13550, 8863, 5411, 1339, 18, 542, 1662, 2932, 17706, 548, 3113, 25496, 1769, 5411, 1339, 18, 542, 1662, 2932, 27547, 3113, 6612, 1769, 5411, 1339, 18, 8837, 5621, 5411, 309, 12, 3184, 18, 12298, 1253, 10756, 288, 327, 2608, 7391, 12, 3184, 1769, 289, 5411, 469, 288, 327, 446, 31, 289, 3639, 289, 3639, 1044, 12, 6385, 1185, 619, 13, 288, 604, 394, 23216, 503, 12, 92, 1769, 289, 3639, 3095, 288, 1339, 18, 4412, 5621, 289, 2 ]
Area area = new Area(component.getBounds());
Area area = new Area(new Rectangle(0, 0, component.getWidth(), component.getHeight()));
protected void paintBackground(Graphics2D g, JComponent component) { if (getPaint() != null) { Ellipse2D ellipse = new Ellipse2D.Double(-component.getWidth() / 2.0, component.getHeight() / 2.7, component.getWidth() * 2.0, component.getHeight() * 2.0); Shape gloss = ellipse; if (getPosition() == GlossPosition.TOP) { Area area = new Area(component.getBounds()); area.subtract(new Area(ellipse)); gloss = area; } g.setPaint(getPaint()); g.fill(gloss); } }
47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/7d6d1e7de1a7a6ec53509a7628f87ad92e63329e/GlossPainter.java/buggy/src/java/org/jdesktop/swingx/painter/GlossPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12574, 8199, 12, 17558, 22, 40, 314, 16, 29058, 1794, 13, 288, 3639, 309, 261, 588, 12699, 1435, 480, 446, 13, 288, 5411, 10426, 10472, 22, 40, 26838, 273, 394, 10426, 10472, 22, 40, 18, 5265, 19236, 4652, 18, 588, 2384, 1435, 342, 576, 18, 20, 16, 7734, 1794, 18, 588, 2686, 1435, 342, 576, 18, 27, 16, 1794, 18, 588, 2384, 1435, 380, 576, 18, 20, 16, 7734, 1794, 18, 588, 2686, 1435, 380, 576, 18, 20, 1769, 5411, 12383, 314, 7873, 273, 26838, 31, 5411, 309, 261, 588, 2555, 1435, 422, 611, 7873, 2555, 18, 10462, 13, 288, 7734, 16668, 5091, 273, 394, 16668, 12, 2704, 13264, 12, 20, 16, 374, 16, 1794, 18, 588, 2384, 9334, 1794, 18, 588, 2686, 1435, 10019, 7734, 5091, 18, 1717, 1575, 12, 2704, 16668, 12, 292, 10472, 10019, 7734, 314, 7873, 273, 5091, 31, 5411, 289, 10792, 314, 18, 542, 12699, 12, 588, 12699, 10663, 5411, 314, 18, 5935, 12, 75, 7873, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12574, 8199, 12, 17558, 22, 40, 314, 16, 29058, 1794, 13, 288, 3639, 309, 261, 588, 12699, 1435, 480, 446, 13, 288, 5411, 10426, 10472, 22, 40, 26838, 273, 394, 10426, 10472, 22, 40, 18, 5265, 19236, 4652, 18, 588, 2384, 1435, 342, 576, 18, 20, 16, 7734, 1794, 18, 588, 2686, 1435, 342, 576, 18, 27, 16, 1794, 18, 588, 2384, 1435, 380, 576, 18, 20, 16, 7734, 1794, 18, 588, 2686, 1435, 380, 576, 18, 20, 1769, 5411, 12383, 314, 7873, 273, 26838, 31, 5411, 309, 261, 588, 2555, 1435, 422, 611, 7873, 2555, 18, 10462, 13, 288, 7734, 16668, 5091, 273, 394, 16668, 12, 2704, 13264, 12, 20, 16, 374, 16, 1794, 18, 2 ]
graphicsDialog.add(ArcTransField,c);
mainpanel.add(ArcTransField,c);
public GraphicsSettingsDialog(SoniaController cont, SoniaLayoutEngine eng,Frame owner,SoniaCanvas canv) { control = cont; engine = eng; canvas = canv; graphicsDialog = new JDialog(owner,"Graphics Settings",true); GeneralLabel = new JLabel("General Options:"); NodesLabel = new JLabel ("Node Options:"); ArcsLabel = new JLabel ("Arc Options:"); AntiAlias = new JCheckBox("AntiAlias graphics (slower)",true); ArcTrans = new JCheckBox("Arc transparency",true); ArcTransField = new JTextField("0.5",3); NodeTrans = new JCheckBox("Node transparency",true); NodeTransField = new JTextField("0.5",3); ArcWidthFactorLabel = new JLabel("Arc width factor"); ArcWidthFactorField = new JTextField("1.0",3); NodeScaleFactorLabel = new JLabel("Node scale factor"); NodeScaleFactorField = new JTextField("1.0",3); ShowArcWeights = new JCheckBox("Show arc weights",false); ShowArcLabels = new JCheckBox("Show Arc Labels",false); ShowArrows = new JCheckBox("Show arrowheads",true); ShowLabels = new JCheckBox("Show labels",true); ShowLabelsField = new JTextField("10.0",3); ShowIds = new JCheckBox("Show node Ids",false); ShowIdsField = new JTextField("10.0",3); //NodeLabelGroup ShowStats = new JCheckBox("Show stats",true); ShowAxes = new JCheckBox("Show Axes",false); GhostSlice = new JCheckBox("Ghost previous slice"); WindowHeightLabel = new JLabel("Layout Height"); WindowWidthLabel = new JLabel("Layout Width"); WindowHeight = new JTextField(engine.getDisplayHeight()+"",4); WindowWidth = new JTextField(engine.getDisplayWidth()+"", 4); FlashNew = new JCheckBox("Flash new events",false); FlashDuration = new JTextField("0.1",4); HideNodes = new JCheckBox("Hide Nodes", false); HideArcs = new JCheckBox("Hide Arcs",false); OK = new JButton("OK"); GridBagLayout layout = new GridBagLayout(); graphicsDialog.setLayout(layout); GridBagConstraints c = new GridBagConstraints(); c.insets = new Insets(2,5,2,5); // add components to the layout GBlayout using constraints c.anchor = c.WEST; //first, the colum lables c.gridx=0;c.gridy=0;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(GeneralLabel,c); c.gridx=2;c.gridy=0;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(NodesLabel,c); c.gridx=4;c.gridy=0;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ArcsLabel,c); //general options c.gridx=0;c.gridy=1;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(AntiAlias,c); c.gridx=0;c.gridy=2;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowStats,c); c.gridx=0;c.gridy=3;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(GhostSlice,c); c.gridx=0;c.gridy=4;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(FlashNew,c); c.gridx=1;c.gridy=4;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(FlashDuration,c); c.gridx=0;c.gridy=5;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(WindowWidthLabel, c); c.gridx=1;c.gridy=5;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(WindowWidth, c); c.gridx=0;c.gridy=6;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(WindowHeightLabel, c); c.gridx=1;c.gridy=6;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(WindowHeight,c); // node options c.gridx=2;c.gridy=1;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(NodeScaleFactorLabel,c); c.gridx=3;c.gridy=1;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(NodeScaleFactorField,c); c.gridx=2;c.gridy=2;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(NodeTrans,c); c.gridx=3;c.gridy=2;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(NodeTransField,c); c.gridx=2;c.gridy=3;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowLabels,c); c.gridx=3;c.gridy=3;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowLabelsField,c); c.gridx=2;c.gridy=4;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowIds,c); c.gridx=3;c.gridy=4;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowIdsField,c); c.gridx=2;c.gridy=5;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(HideNodes,c); // arc options c.gridx=4;c.gridy=1;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ArcTrans,c); c.gridx=5;c.gridy=1;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ArcTransField,c); c.gridx=4;c.gridy=2;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ArcWidthFactorLabel,c); c.gridx=5;c.gridy=2;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ArcWidthFactorField,c); c.gridx=4;c.gridy=3;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowArrows,c); c.gridx=4;c.gridy=4;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowArcWeights,c); c.gridx=4;c.gridy=5;c.gridwidth=2;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(HideArcs,c); c.gridx=4;c.gridy=6;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(ShowArcLabels,c); //c.gridx=0;c.gridy=10;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; //graphicsDialog.add(ShowAxes,c); c.gridx=2;c.gridy=6;c.gridwidth=1;c.gridheight=1;c.weightx=0;c.weighty=0; graphicsDialog.add(OK,c); OK.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt) { applySettings(); } }); graphicsDialog.setBackground(Color.lightGray); graphicsDialog.setSize(700,400); }
686 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/686/20c236b20ef9d56fdd62091728ba506ab667eebd/GraphicsSettingsDialog.java/buggy/trunk/sonia/GraphicsSettingsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 16830, 2628, 6353, 12, 55, 265, 1155, 2933, 466, 16, 2398, 348, 265, 1155, 3744, 4410, 24691, 16, 3219, 3410, 16, 55, 265, 1155, 12971, 848, 90, 13, 225, 288, 565, 3325, 273, 466, 31, 565, 4073, 273, 24691, 31, 565, 5953, 273, 848, 90, 31, 565, 17313, 6353, 273, 394, 804, 6353, 12, 8443, 10837, 17558, 8709, 3113, 3767, 1769, 565, 9544, 2224, 273, 394, 21403, 2932, 12580, 5087, 2773, 1769, 565, 14037, 2224, 273, 394, 21403, 7566, 907, 5087, 2773, 1769, 565, 1201, 2143, 2224, 273, 394, 21403, 7566, 14598, 5087, 2773, 1769, 565, 18830, 77, 2936, 273, 394, 804, 19174, 2932, 14925, 77, 2936, 17313, 261, 87, 8167, 2225, 16, 3767, 1769, 565, 24881, 1429, 273, 394, 804, 19174, 2932, 14598, 27472, 3113, 3767, 1769, 565, 24881, 1429, 974, 273, 394, 804, 16157, 2932, 20, 18, 25, 3113, 23, 1769, 565, 2029, 1429, 273, 394, 804, 19174, 2932, 907, 27472, 3113, 3767, 1769, 565, 2029, 1429, 974, 273, 394, 804, 16157, 2932, 20, 18, 25, 3113, 23, 1769, 565, 24881, 2384, 6837, 2224, 273, 394, 21403, 2932, 14598, 1835, 5578, 8863, 565, 24881, 2384, 6837, 974, 273, 394, 804, 16157, 2932, 21, 18, 20, 3113, 23, 1769, 565, 2029, 5587, 6837, 2224, 273, 394, 21403, 2932, 907, 3159, 5578, 8863, 565, 2029, 5587, 6837, 974, 273, 394, 804, 16157, 2932, 21, 18, 20, 3113, 23, 1769, 565, 9674, 14598, 16595, 273, 394, 804, 19174, 2932, 5706, 8028, 5376, 3113, 5743, 1769, 565, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16830, 2628, 6353, 12, 55, 265, 1155, 2933, 466, 16, 2398, 348, 265, 1155, 3744, 4410, 24691, 16, 3219, 3410, 16, 55, 265, 1155, 12971, 848, 90, 13, 225, 288, 565, 3325, 273, 466, 31, 565, 4073, 273, 24691, 31, 565, 5953, 273, 848, 90, 31, 565, 17313, 6353, 273, 394, 804, 6353, 12, 8443, 10837, 17558, 8709, 3113, 3767, 1769, 565, 9544, 2224, 273, 394, 21403, 2932, 12580, 5087, 2773, 1769, 565, 14037, 2224, 273, 394, 21403, 7566, 907, 5087, 2773, 1769, 565, 1201, 2143, 2224, 273, 394, 21403, 7566, 14598, 5087, 2773, 1769, 565, 18830, 77, 2936, 273, 394, 804, 19174, 2932, 14925, 77, 2936, 17313, 261, 87, 8167, 2225, 16, 3767, 1769, 565, 24881, 2 ]
newPosn = size;
newPosn = size - 1;
static protected int checkAndAdjustPosition( int oldPosn, int newPosn, int size ) { if ( newPosn < 0 ) newPosn = 0; if ( newPosn > size - 1 ) newPosn = size; if ( oldPosn < 0 || oldPosn > size ) throw new IndexOutOfBoundsException( "From: " + oldPosn + ", List Size: " + size ); //$NON-NLS-1$//$NON-NLS-2$ if ( newPosn < 0 || newPosn > size ) throw new IndexOutOfBoundsException( "To: " + newPosn + ", List Size: " + size ); //$NON-NLS-1$//$NON-NLS-2$ if ( oldPosn == newPosn || oldPosn + 1 == newPosn ) return oldPosn; // adjust the position when move a item from a position with a small // index to another position with a bigger index. if ( oldPosn < newPosn ) return newPosn - 1; return newPosn; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/3d666210985ad193f9f31413d9fd36adee403f5a/AbstractElementCommand.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/activity/AbstractElementCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 4750, 509, 30970, 10952, 2555, 12, 509, 1592, 1616, 82, 16, 509, 394, 1616, 82, 16, 1082, 202, 474, 963, 262, 202, 95, 202, 202, 430, 261, 394, 1616, 82, 411, 374, 262, 1082, 202, 2704, 1616, 82, 273, 374, 31, 202, 202, 430, 261, 394, 1616, 82, 405, 963, 300, 404, 262, 1082, 202, 2704, 1616, 82, 273, 963, 31, 202, 202, 430, 261, 1592, 1616, 82, 411, 374, 747, 1592, 1616, 82, 405, 963, 262, 1082, 202, 12849, 394, 17768, 12, 6862, 202, 6, 1265, 30, 315, 397, 1592, 1616, 82, 397, 3104, 987, 6321, 30, 315, 397, 963, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 202, 202, 430, 261, 394, 1616, 82, 411, 374, 747, 394, 1616, 82, 405, 963, 262, 1082, 202, 12849, 394, 17768, 12, 6862, 202, 6, 774, 30, 315, 397, 394, 1616, 82, 397, 3104, 987, 6321, 30, 315, 397, 963, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 202, 202, 430, 261, 1592, 1616, 82, 422, 394, 1616, 82, 747, 1592, 1616, 82, 397, 404, 422, 394, 1616, 82, 262, 1082, 202, 2463, 1592, 1616, 82, 31, 202, 202, 759, 5765, 326, 1754, 1347, 3635, 279, 761, 628, 279, 1754, 598, 279, 5264, 202, 202, 759, 770, 358, 4042, 1754, 598, 279, 18983, 770, 18, 202, 202, 430, 261, 1592, 1616, 82, 411, 394, 1616, 82, 262, 1082, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 4750, 509, 30970, 10952, 2555, 12, 509, 1592, 1616, 82, 16, 509, 394, 1616, 82, 16, 1082, 202, 474, 963, 262, 202, 95, 202, 202, 430, 261, 394, 1616, 82, 411, 374, 262, 1082, 202, 2704, 1616, 82, 273, 374, 31, 202, 202, 430, 261, 394, 1616, 82, 405, 963, 300, 404, 262, 1082, 202, 2704, 1616, 82, 273, 963, 31, 202, 202, 430, 261, 1592, 1616, 82, 411, 374, 747, 1592, 1616, 82, 405, 963, 262, 1082, 202, 12849, 394, 17768, 12, 6862, 202, 6, 1265, 30, 315, 397, 1592, 1616, 82, 397, 3104, 987, 6321, 30, 315, 397, 963, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 2 ]
((IEditorPersistable) editor).saveState(editorState);
((IPersistableEditor) editor).saveState(editorState);
public void run() { // Get the input. IEditorInput input = editor.getEditorInput(); IPersistableElement persistable = input.getPersistable(); if (persistable == null) { return; } // Save editor. IMemento editorMem = memento .createChild(IWorkbenchConstants.TAG_EDITOR); editorMem.putString(IWorkbenchConstants.TAG_TITLE, editorRef .getTitle()); editorMem.putString(IWorkbenchConstants.TAG_NAME, editorRef .getName()); editorMem.putString(IWorkbenchConstants.TAG_ID, editorRef .getId()); editorMem.putString(IWorkbenchConstants.TAG_TOOLTIP, editorRef .getTitleToolTip()); editorMem.putString(IWorkbenchConstants.TAG_PART_NAME, editorRef.getPartName()); if (editorRef.isPinned()) { editorMem.putString(IWorkbenchConstants.TAG_PINNED, "true"); //$NON-NLS-1$ } EditorPane editorPane = (EditorPane) ((EditorSite) editor .getEditorSite()).getPane(); editorMem.putString(IWorkbenchConstants.TAG_WORKBOOK, editorPane.getWorkbook().getID()); if (editor == page.getActivePart()) { editorMem.putString(IWorkbenchConstants.TAG_ACTIVE_PART, "true"); //$NON-NLS-1$ } if (editorPane == editorPane.getWorkbook().getSelection()) { editorMem.putString(IWorkbenchConstants.TAG_FOCUS, "true"); //$NON-NLS-1$ } if (input instanceof IPathEditorInput) { IPath path = ((IPathEditorInput) input).getPath(); if (path != null) { editorMem.putString(IWorkbenchConstants.TAG_PATH, path .toString()); } } // Save input. IMemento inputMem = editorMem .createChild(IWorkbenchConstants.TAG_INPUT); inputMem.putString(IWorkbenchConstants.TAG_FACTORY_ID, persistable.getFactoryId()); persistable.saveState(inputMem); // any editors that want to persist state if (editor instanceof IEditorPersistable) { IMemento editorState = editorMem .createChild(IWorkbenchConstants.TAG_EDITOR_STATE); ((IEditorPersistable) editor).saveState(editorState); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e31ff3e28945d55e2d2b5ebfd8833be5adea5001/EditorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 759, 968, 326, 810, 18, 9506, 202, 45, 6946, 1210, 810, 273, 4858, 18, 588, 6946, 1210, 5621, 9506, 202, 2579, 2462, 429, 1046, 3898, 429, 273, 810, 18, 588, 12771, 429, 5621, 9506, 202, 430, 261, 19251, 429, 422, 446, 13, 288, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 759, 7074, 4858, 18, 9506, 202, 3445, 820, 83, 4858, 3545, 273, 312, 820, 83, 25083, 202, 18, 2640, 1763, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 13208, 1769, 9506, 202, 9177, 3545, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 14123, 16, 4858, 1957, 25083, 202, 18, 588, 4247, 10663, 9506, 202, 9177, 3545, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 1985, 16, 4858, 1957, 25083, 202, 18, 17994, 10663, 9506, 202, 9177, 3545, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 734, 16, 4858, 1957, 25083, 202, 18, 26321, 10663, 9506, 202, 9177, 3545, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 26263, 56, 2579, 16, 4858, 1957, 25083, 202, 18, 588, 4247, 29250, 10663, 9506, 202, 9177, 3545, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 15055, 67, 1985, 16, 25083, 202, 9177, 1957, 18, 588, 1988, 461, 10663, 9506, 202, 430, 261, 9177, 1957, 18, 291, 12178, 11748, 10756, 288, 6862, 202, 9177, 3545, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 759, 968, 326, 810, 18, 9506, 202, 45, 6946, 1210, 810, 273, 4858, 18, 588, 6946, 1210, 5621, 9506, 202, 2579, 2462, 429, 1046, 3898, 429, 273, 810, 18, 588, 12771, 429, 5621, 9506, 202, 430, 261, 19251, 429, 422, 446, 13, 288, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 759, 7074, 4858, 18, 9506, 202, 3445, 820, 83, 4858, 3545, 273, 312, 820, 83, 25083, 202, 18, 2640, 1763, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 13208, 1769, 9506, 202, 9177, 3545, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7927, 67, 14123, 16, 4858, 1957, 25083, 202, 18, 588, 4247, 10663, 9506, 202, 9177, 2 ]
JFreeChart chart = PurdyChartServletTest.sampleSeverityChart(); response.setContentType("image/png");
log().debug("doGet: displaying chart: "+chartName);
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { /* * To do it: * * */ Color c = Color.white; OutputStream out = response.getOutputStream(); JFreeChart chart = PurdyChartServletTest.sampleSeverityChart(); response.setContentType("image/png"); ChartUtilities.writeChartAsPNG(out, chart, 400, 300); out.close(); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/e7715c9c76a90c6265fa2b25cd514bcb3e17b59c/PurdyChartServlet.java/buggy/src/web/src/org/opennms/web/graph/PurdyChartServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 1860, 288, 3639, 1748, 540, 380, 2974, 741, 518, 30, 540, 380, 1850, 380, 1850, 1195, 7734, 5563, 276, 273, 5563, 18, 14739, 31, 3639, 8962, 596, 273, 766, 18, 588, 4632, 5621, 7734, 804, 9194, 7984, 4980, 273, 14466, 15680, 7984, 4745, 4709, 18, 6358, 21630, 7984, 5621, 3639, 766, 18, 542, 8046, 2932, 2730, 19, 6446, 8863, 7734, 14804, 11864, 18, 2626, 7984, 1463, 23092, 12, 659, 16, 4980, 16, 7409, 16, 11631, 1769, 3639, 596, 18, 4412, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 1216, 1860, 288, 3639, 1748, 540, 380, 2974, 741, 518, 30, 540, 380, 1850, 380, 1850, 1195, 7734, 5563, 276, 273, 5563, 18, 14739, 31, 3639, 8962, 596, 273, 766, 18, 588, 4632, 5621, 7734, 804, 9194, 7984, 4980, 273, 14466, 15680, 7984, 4745, 4709, 18, 6358, 21630, 7984, 5621, 3639, 766, 18, 542, 8046, 2932, 2730, 19, 6446, 8863, 7734, 14804, 11864, 18, 2626, 7984, 1463, 23092, 12, 659, 16, 4980, 16, 7409, 16, 11631, 1769, 3639, 596, 18, 4412, 5621, 565, 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 ]
public void visit(JavaClass obj) { try { setUpAnnotation = null; tearDownAnnotation = null; validClass = false; validMethod = false; sawSetUp = false; sawTearDown = false; JavaClass[] superClasses = obj.getSuperClasses(); for (int i = 0; i < superClasses.length; i++) { JavaClass sc = superClasses[i]; if (sc.getClassName().equals("junit.framework.TestCase")) { validClass = true; super.visit(obj); break; } } } catch (ClassNotFoundException cnfe) { bugReporter.reportMissingClass(cnfe); }
public void visit(Method obj) { if (!validClass) return; validMethod = false; methodName = obj.getName(); if (methodName.equals("setUp") || methodName.equals("tearDown")) { if (methodName.equals("setUp")) setUpAnnotation = MethodAnnotation.fromVisitedMethod(this); else if (methodName.equals("tearDown")) tearDownAnnotation = MethodAnnotation.fromVisitedMethod(this); validMethod = true; state = SEEN_NOTHING; super.visit(obj); } else if (methodName.equals("suite") && !obj.isStatic()) bugReporter.reportBug(new BugInstance("IJU_SUITE_NOT_STATIC", NORMAL_PRIORITY) .addClass(this) .addMethod(MethodAnnotation.fromVisitedMethod(this)));
public void visit(JavaClass obj) { try { setUpAnnotation = null; tearDownAnnotation = null; validClass = false; validMethod = false; sawSetUp = false; sawTearDown = false; JavaClass[] superClasses = obj.getSuperClasses(); for (int i = 0; i < superClasses.length; i++) { JavaClass sc = superClasses[i]; if (sc.getClassName().equals("junit.framework.TestCase")) { validClass = true; super.visit(obj); break; } } } catch (ClassNotFoundException cnfe) { bugReporter.reportMissingClass(cnfe); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/96efe1942465d6945a936d29f80ad9ecdc1022cb/InvalidJUnitTest.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/InvalidJUnitTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 12, 5852, 797, 1081, 13, 288, 202, 202, 698, 288, 1082, 202, 542, 1211, 3257, 273, 446, 31, 1082, 202, 736, 297, 4164, 3257, 273, 446, 31, 1082, 202, 877, 797, 273, 629, 31, 1082, 202, 877, 1305, 273, 629, 31, 1082, 202, 87, 2219, 694, 1211, 273, 629, 31, 1082, 202, 87, 2219, 56, 2091, 4164, 273, 629, 31, 1082, 202, 5852, 797, 8526, 2240, 4818, 273, 1081, 18, 588, 8051, 4818, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2240, 4818, 18, 2469, 31, 277, 27245, 288, 9506, 202, 5852, 797, 888, 273, 2240, 4818, 63, 77, 15533, 9506, 202, 430, 261, 1017, 18, 588, 3834, 7675, 14963, 2932, 78, 4873, 18, 12303, 18, 4709, 2449, 6, 3719, 288, 6862, 202, 877, 797, 273, 638, 31, 6862, 202, 9565, 18, 11658, 12, 2603, 1769, 6862, 202, 8820, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 1044, 261, 797, 3990, 6227, 3030, 13, 288, 1082, 202, 925, 13289, 18, 6006, 4841, 797, 12, 10305, 3030, 1769, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 12, 5852, 797, 1081, 13, 288, 202, 202, 698, 288, 1082, 202, 542, 1211, 3257, 273, 446, 31, 1082, 202, 736, 297, 4164, 3257, 273, 446, 31, 1082, 202, 877, 797, 273, 629, 31, 1082, 202, 877, 1305, 273, 629, 31, 1082, 202, 87, 2219, 694, 1211, 273, 629, 31, 1082, 202, 87, 2219, 56, 2091, 4164, 273, 629, 31, 1082, 202, 5852, 797, 8526, 2240, 4818, 273, 1081, 18, 588, 8051, 4818, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2240, 4818, 18, 2469, 31, 277, 27245, 288, 9506, 202, 5852, 797, 888, 273, 2240, 4818, 63, 77, 15533, 9506, 202, 430, 261, 1017, 18, 588, 3834, 7675, 14963, 2 ]
if((offset - chunks.offset) * 2 < 0) { System.err.println(offset + ":" + chunks.offset); }
public static float offsetToX(Chunk chunks, int offset) { if(offset < 0) throw new ArrayIndexOutOfBoundsException(offset + " < 0"); float x = 0.0f; while(chunks != null) { if(!chunks.inaccessable && offset < chunks.offset + chunks.length) { if(chunks.text == null) break; else { if((offset - chunks.offset) * 2 < 0) { System.err.println(offset + ":" + chunks.offset); } return x + chunks.positions[ (offset - chunks.offset) * 2]; } } x += chunks.width; chunks = chunks.next; } return x; } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/69e5090da511c5673101d74e864bcd4ac0cb922e/ChunkCache.java/clean/org/gjt/sp/jedit/textarea/ChunkCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1431, 1384, 14955, 12, 5579, 6055, 16, 509, 1384, 13, 202, 95, 202, 202, 430, 12, 3348, 411, 374, 13, 1082, 202, 12849, 394, 1510, 30548, 12, 3348, 397, 315, 411, 374, 8863, 202, 202, 5659, 619, 273, 374, 18, 20, 74, 31, 202, 202, 17523, 12, 14691, 480, 446, 13, 202, 202, 95, 1082, 202, 430, 12, 5, 14691, 18, 267, 3860, 429, 597, 1384, 411, 6055, 18, 3348, 397, 6055, 18, 2469, 13, 1082, 202, 95, 9506, 202, 430, 12, 14691, 18, 955, 422, 446, 13, 6862, 202, 8820, 31, 9506, 202, 12107, 9506, 202, 95, 6862, 202, 430, 12443, 3348, 300, 6055, 18, 3348, 13, 380, 576, 411, 374, 13, 6862, 202, 95, 25083, 202, 3163, 18, 370, 18, 8222, 12, 3348, 397, 6153, 6862, 1082, 202, 15, 6055, 18, 3348, 1769, 6862, 202, 97, 6862, 202, 2463, 619, 397, 6055, 18, 12388, 63, 25083, 202, 12, 3348, 300, 6055, 18, 3348, 13, 380, 576, 15533, 9506, 202, 97, 1082, 202, 97, 1082, 202, 92, 1011, 6055, 18, 2819, 31, 1082, 202, 14691, 273, 6055, 18, 4285, 31, 202, 202, 97, 202, 202, 2463, 619, 31, 202, 97, 368, 9090, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1431, 1384, 14955, 12, 5579, 6055, 16, 509, 1384, 13, 202, 95, 202, 202, 430, 12, 3348, 411, 374, 13, 1082, 202, 12849, 394, 1510, 30548, 12, 3348, 397, 315, 411, 374, 8863, 202, 202, 5659, 619, 273, 374, 18, 20, 74, 31, 202, 202, 17523, 12, 14691, 480, 446, 13, 202, 202, 95, 1082, 202, 430, 12, 5, 14691, 18, 267, 3860, 429, 597, 1384, 411, 6055, 18, 3348, 397, 6055, 18, 2469, 13, 1082, 202, 95, 9506, 202, 430, 12, 14691, 18, 955, 422, 446, 13, 6862, 202, 8820, 31, 9506, 202, 12107, 9506, 202, 95, 6862, 202, 430, 12443, 3348, 300, 6055, 18, 3348, 13, 380, 576, 411, 374, 13, 6862, 202, 2 ]
waitOnImage(bi);
waitOnImage(bi);
private static Image createNameImage(int width, int height, String name, boolean down, Color color) { BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); Graphics2D biContext = bi.createGraphics(); biContext.setColor(new Color((float)1.,(float)1.,(float)1.,(float)0.)); biContext.fillRect(0,0,width,height); biContext.setColor(color); int fontsize = (width+height)/10; biContext.setFont(defaultFont.deriveFont(fontsize)); Font font = biContext.getFont(); int size = font.getSize(); FontMetrics fm = biContext.getFontMetrics(); Rectangle2D sb = fm.getStringBounds(name, biContext); int sw = (int)sb.getWidth(); int sh = (int)sb.getHeight(); while ((sw >= width) && (size > 1)) { size--; biContext.setFont(font.deriveFont((float)size)); fm = biContext.getFontMetrics(); sb = fm.getStringBounds(name, biContext); sw = (int)sb.getWidth(); sh = (int)sb.getHeight(); } int offset = (width - sw) / 2; biContext.drawString(name, offset, (down ? (height - 2) : (1 + fm.getMaxAscent()))); waitOnImage(bi); return bi; }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/02871da8082e1f666ba3ff70facff22aa0a257fe/ResourceLoader.java/buggy/Colossus/net/sf/colossus/util/ResourceLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 3421, 752, 461, 2040, 12, 474, 1835, 16, 509, 2072, 16, 514, 508, 16, 1250, 2588, 16, 5563, 2036, 13, 565, 288, 3639, 12362, 10054, 273, 394, 12362, 12, 2819, 16, 2072, 16, 4766, 2398, 12362, 18, 2399, 67, 3217, 67, 985, 5887, 1769, 3639, 16830, 22, 40, 10054, 1042, 273, 10054, 18, 2640, 17558, 5621, 3639, 10054, 1042, 18, 542, 2957, 12, 2704, 5563, 12443, 5659, 13, 21, 12990, 12, 5659, 13, 21, 12990, 12, 5659, 13, 21, 12990, 12, 5659, 13, 20, 18, 10019, 3639, 10054, 1042, 18, 5935, 6120, 12, 20, 16, 20, 16, 2819, 16, 4210, 1769, 3639, 10054, 1042, 18, 542, 2957, 12, 3266, 1769, 3639, 509, 14869, 273, 261, 2819, 15, 4210, 13176, 2163, 31, 3639, 10054, 1042, 18, 542, 5711, 12, 1886, 5711, 18, 765, 688, 5711, 12, 23055, 10019, 3639, 10063, 3512, 273, 10054, 1042, 18, 588, 5711, 5621, 3639, 509, 963, 273, 3512, 18, 588, 1225, 5621, 3639, 10063, 5653, 10940, 273, 10054, 1042, 18, 588, 5711, 5653, 5621, 3639, 13264, 22, 40, 2393, 273, 10940, 18, 588, 780, 5694, 12, 529, 16, 10054, 1042, 1769, 3639, 509, 1352, 273, 261, 474, 13, 18366, 18, 588, 2384, 5621, 3639, 509, 699, 273, 261, 474, 13, 18366, 18, 588, 2686, 5621, 3639, 1323, 14015, 5328, 1545, 1835, 13, 597, 261, 1467, 405, 404, 3719, 3639, 288, 5411, 963, 413, 31, 5411, 10054, 1042, 18, 542, 5711, 12, 5776, 18, 765, 688, 5711, 12443, 5659, 13, 1467, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3421, 752, 461, 2040, 12, 474, 1835, 16, 509, 2072, 16, 514, 508, 16, 1250, 2588, 16, 5563, 2036, 13, 565, 288, 3639, 12362, 10054, 273, 394, 12362, 12, 2819, 16, 2072, 16, 4766, 2398, 12362, 18, 2399, 67, 3217, 67, 985, 5887, 1769, 3639, 16830, 22, 40, 10054, 1042, 273, 10054, 18, 2640, 17558, 5621, 3639, 10054, 1042, 18, 542, 2957, 12, 2704, 5563, 12443, 5659, 13, 21, 12990, 12, 5659, 13, 21, 12990, 12, 5659, 13, 21, 12990, 12, 5659, 13, 20, 18, 10019, 3639, 10054, 1042, 18, 5935, 6120, 12, 20, 16, 20, 16, 2819, 16, 4210, 1769, 3639, 10054, 1042, 18, 542, 2957, 12, 3266, 1769, 3639, 509, 14869, 273, 261, 2819, 2 ]
throw new ProfileDataException( "Color space doesn't comply with ICC specification"
throw new ProfileDataException(Messages.getString("awt.160")
public int getNumComponents() { switch (getIntFromHeader(icHdrColorSpace)) { // The most common cases go first to increase speed case icSigRgbData: case icSigXYZData: case icSigLabData: return 3; case icSigCmykData: return 4; // Then all other case icSigGrayData: return 1; case icSigSpace2CLR: return 2; case icSigYCbCrData: case icSigLuvData: case icSigYxyData: case icSigHlsData: case icSigHsvData: case icSigCmyData: case icSigSpace3CLR: return 3; case icSigSpace4CLR: return 4; case icSigSpace5CLR: return 5; case icSigSpace6CLR: return 6; case icSigSpace7CLR: return 7; case icSigSpace8CLR: return 8; case icSigSpace9CLR: return 9; case icSigSpaceACLR: return 10; case icSigSpaceBCLR: return 11; case icSigSpaceCCLR: return 12; case icSigSpaceDCLR: return 13; case icSigSpaceECLR: return 14; case icSigSpaceFCLR: return 15; default: } throw new ProfileDataException( "Color space doesn't comply with ICC specification" ); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/783daf59edbe8ecf33f080c323352267b1d7f22a/ICC_Profile.java/buggy/modules/awt/src/main/java/common/java/awt/color/ICC_Profile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11187, 7171, 1435, 288, 3639, 1620, 261, 588, 1702, 1265, 1864, 12, 335, 14659, 2957, 3819, 3719, 288, 5411, 368, 1021, 4486, 2975, 6088, 1960, 1122, 358, 10929, 8632, 5411, 648, 13579, 8267, 22333, 751, 30, 5411, 648, 13579, 8267, 23479, 751, 30, 5411, 648, 13579, 8267, 14506, 751, 30, 7734, 327, 890, 31, 5411, 648, 13579, 8267, 39, 4811, 79, 751, 30, 7734, 327, 1059, 31, 7734, 368, 9697, 777, 1308, 5411, 648, 13579, 8267, 23521, 751, 30, 7734, 327, 404, 31, 5411, 648, 13579, 8267, 3819, 22, 5017, 54, 30, 7734, 327, 576, 31, 5411, 648, 13579, 8267, 61, 15237, 12893, 751, 30, 5411, 648, 13579, 8267, 48, 16303, 751, 30, 5411, 648, 13579, 8267, 61, 1698, 751, 30, 5411, 648, 13579, 8267, 44, 3251, 751, 30, 5411, 648, 13579, 8267, 44, 5751, 751, 30, 5411, 648, 13579, 8267, 39, 4811, 751, 30, 5411, 648, 13579, 8267, 3819, 23, 5017, 54, 30, 7734, 327, 890, 31, 5411, 648, 13579, 8267, 3819, 24, 5017, 54, 30, 7734, 327, 1059, 31, 5411, 648, 13579, 8267, 3819, 25, 5017, 54, 30, 7734, 327, 1381, 31, 5411, 648, 13579, 8267, 3819, 26, 5017, 54, 30, 7734, 327, 1666, 31, 5411, 648, 13579, 8267, 3819, 27, 5017, 54, 30, 7734, 327, 2371, 31, 5411, 648, 13579, 8267, 3819, 28, 5017, 54, 30, 7734, 327, 1725, 31, 5411, 648, 13579, 8267, 3819, 29, 5017, 54, 30, 7734, 327, 2468, 31, 5411, 648, 13579, 8267, 3819, 9486, 54, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11187, 7171, 1435, 288, 3639, 1620, 261, 588, 1702, 1265, 1864, 12, 335, 14659, 2957, 3819, 3719, 288, 5411, 368, 1021, 4486, 2975, 6088, 1960, 1122, 358, 10929, 8632, 5411, 648, 13579, 8267, 22333, 751, 30, 5411, 648, 13579, 8267, 23479, 751, 30, 5411, 648, 13579, 8267, 14506, 751, 30, 7734, 327, 890, 31, 5411, 648, 13579, 8267, 39, 4811, 79, 751, 30, 7734, 327, 1059, 31, 7734, 368, 9697, 777, 1308, 5411, 648, 13579, 8267, 23521, 751, 30, 7734, 327, 404, 31, 5411, 648, 13579, 8267, 3819, 22, 5017, 54, 30, 7734, 327, 576, 31, 5411, 648, 13579, 8267, 61, 15237, 12893, 751, 30, 5411, 648, 13579, 8267, 48, 16303, 751, 30, 5411, 648, 13579, 2 ]
java.sql.ResultSet rs = connection.ExecSQL("select typname from pg_type");
java.sql.ResultSet rs = connection.ExecSQL(null, "select typname from pg_type");
public java.sql.ResultSet getTypeInfo() throws SQLException { java.sql.ResultSet rs = connection.ExecSQL("select typname from pg_type"); if(rs!=null) { Field f[] = new Field[18]; ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[1] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[2] = new Field(connection, "PRECISION", iInt4Oid, 4); f[3] = new Field(connection, "LITERAL_PREFIX", iVarcharOid, 32); f[4] = new Field(connection, "LITERAL_SUFFIX", iVarcharOid, 32); f[5] = new Field(connection, "CREATE_PARAMS", iVarcharOid, 32); f[6] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[7] = new Field(connection, "CASE_SENSITIVE", iBoolOid, 1); f[8] = new Field(connection, "SEARCHABLE", iInt2Oid, 2); f[9] = new Field(connection, "UNSIGNED_ATTRIBUTE", iBoolOid, 1); f[10] = new Field(connection, "FIXED_PREC_SCALE", iBoolOid, 1); f[11] = new Field(connection, "AUTO_INCREMENT", iBoolOid, 1); f[12] = new Field(connection, "LOCAL_TYPE_NAME", iVarcharOid, 32); f[13] = new Field(connection, "MINIMUM_SCALE", iInt2Oid, 2); f[14] = new Field(connection, "MAXIMUM_SCALE", iInt2Oid, 2); f[15] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[16] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[17] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); // cache some results, this will keep memory useage down, and speed // things up a little. byte b9[] = "9".getBytes(); byte b10[] = "10".getBytes(); byte bf[] = "f".getBytes(); byte bnn[] = Integer.toString(typeNoNulls).getBytes(); byte bts[] = Integer.toString(typeSearchable).getBytes(); while(rs.next()) { byte[][] tuple = new byte[18][]; String typname=rs.getString(1); tuple[0] = typname.getBytes(); tuple[1] = Integer.toString(Field.getSQLType(typname)).getBytes(); tuple[2] = b9; // for now tuple[6] = bnn; // for now tuple[7] = bf; // false for now - not case sensitive tuple[8] = bts; tuple[9] = bf; // false for now - it's signed tuple[10] = bf; // false for now - must handle money tuple[11] = bf; // false for now - handle autoincrement // 12 - LOCAL_TYPE_NAME is null // 13 & 14 ? // 15 & 16 are unused so we return null tuple[17] = b10; // everything is base 10 v.addElement(tuple); } rs.close(); return new ResultSet(connection, f, v, "OK", 1); } return null; }
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 225, 288, 565, 2252, 18, 4669, 18, 13198, 3597, 273, 1459, 18, 1905, 3997, 12, 2011, 16, 315, 4025, 3815, 529, 628, 7184, 67, 723, 8863, 565, 309, 12, 5453, 5, 33, 2011, 13, 288, 1377, 2286, 284, 8526, 273, 394, 2286, 63, 2643, 15533, 1377, 10842, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 1377, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 5411, 284, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 2399, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 1377, 284, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 315, 4883, 67, 2399, 3113, 277, 1702, 22, 19105, 16, 576, 1769, 1377, 284, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 315, 3670, 26913, 3113, 277, 1702, 24, 19105, 16, 1059, 1769, 1377, 284, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 315, 23225, 67, 6307, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 1377, 284, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 315, 23225, 67, 14964, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 1377, 284, 63, 25, 65, 273, 394, 2286, 12, 4071, 16, 315, 9344, 67, 16785, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 1377, 284, 63, 26, 65, 273, 394, 2286, 12, 4071, 16, 315, 8560, 2782, 3113, 277, 1702, 22, 19105, 16, 576, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 225, 288, 565, 2252, 18, 4669, 18, 13198, 3597, 273, 1459, 18, 1905, 3997, 12, 2011, 16, 315, 4025, 3815, 529, 628, 7184, 67, 723, 8863, 565, 309, 12, 5453, 5, 33, 2011, 13, 288, 1377, 2286, 284, 8526, 273, 394, 2286, 63, 2643, 15533, 1377, 10842, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 1377, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 5411, 284, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 2399, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 1377, 284, 63, 21, 65, 273, 394, 2286, 2 ]
public boolean shouldRevertChanges() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldRevertChanges")); }
public boolean shouldRevertChanges() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldRevertChanges")); }
public boolean shouldRevertChanges() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldRevertChanges")); }
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/030cb3f23617518601f8abfb46f84c89445f1881/ERD2WInspectPage.java/buggy/Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERD2WInspectPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1410, 426, 1097, 7173, 1435, 288, 327, 4232, 60, 11864, 18, 6494, 620, 12, 72, 22, 91, 1042, 7675, 1132, 19759, 2932, 13139, 426, 1097, 7173, 7923, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1410, 426, 1097, 7173, 1435, 288, 327, 4232, 60, 11864, 18, 6494, 620, 12, 72, 22, 91, 1042, 7675, 1132, 19759, 2932, 13139, 426, 1097, 7173, 7923, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
n = NativeRegExp.unDigit(c);
n = NativeRegExp.unDigit((char)c);
void buildBitmap(MatchState state, char[] s, boolean fold) { int index = ((Integer) kid).intValue(); int end = kid2; byte fill = 0; int i,n,ocp; boolean not = false; kid2 = 0; if (s[index] == '^') { not = true; kid2 = -1; index++; } calcBMSize(s, index, end, fold); bitmap = new byte[bmsize]; if (not) { fill = (byte)0xff; for (i = 0; i < bmsize; i++) bitmap[i] = (byte)0xff; bitmap[0] = (byte)0xfe; } int nchars = bmsize * NativeRegExp.JS_BITS_PER_BYTE; char lastc = (char)nchars; boolean inrange = false; while (index < end) { char c = s[index++]; if (c == '\\') { c = s[index++]; switch (c) { case 'b': case 'f': case 'n': case 'r': case 't': case 'v': c = NativeRegExp.getEscape(c); break; case 'd': if (inrange) checkRange(lastc, fill); lastc = (char) nchars; for (c = '0'; c <= '9'; c++) matchBit(c, fill); continue; case 'D': if (inrange) checkRange(lastc, fill); lastc = (char) nchars; for (c = 0; c < '0'; c++) matchBit(c, fill); for (c = '9' + 1; c < nchars; c++) matchBit(c, fill); continue; case 'w': if (inrange) checkRange(lastc, fill); lastc = (char) nchars; for (c = 0; c < nchars; c++) if (NativeRegExp.isWord(c)) matchBit(c, fill); continue; case 'W': if (inrange) checkRange(lastc, fill); lastc = (char) nchars; for (c = 0; c < nchars; c++) if (!NativeRegExp.isWord(c)) matchBit(c, fill); continue; case 's': if (inrange) checkRange(lastc, fill); lastc = (char) nchars; for (c = 0; c < nchars; c++) if (Character.isWhitespace(c)) matchBit(c, fill); continue; case 'S': if (inrange) checkRange(lastc, fill); lastc = (char) nchars; for (c = 0; c < nchars; c++) if (!Character.isWhitespace(c)) matchBit(c, fill); continue; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': n = NativeRegExp.unDigit(c); ocp = index - 2; c = s[index]; if ('0' <= c && c <= '7') { index++; n = 8 * n + NativeRegExp.unDigit(c); c = s[index]; if ('0' <= c && c <= '7') { index++; i = 8 * n + NativeRegExp.unDigit(c); if (i <= 0377) n = i; else index--; } } c = (char) n; break; case 'x': ocp = index; if (index < s.length && NativeRegExp.isHex(c = s[index++])) { n = NativeRegExp.unHex(c); if (index < s.length && NativeRegExp.isHex(c = s[index++])) { n <<= 4; n += NativeRegExp.unHex(c); } } else { index = ocp; /* \xZZ is xZZ (Perl does \0ZZ!) */ n = 'x'; } c = (char) n; break; case 'u': if (s.length > index+3 && NativeRegExp.isHex(s[index+0]) && NativeRegExp.isHex(s[index+1]) && NativeRegExp.isHex(s[index+2]) && NativeRegExp.isHex(s[index+3])) { n = (((((NativeRegExp.unHex(s[index+0]) << 4) + NativeRegExp.unHex(s[index+1])) << 4) + NativeRegExp.unHex(s[index+2])) << 4) + NativeRegExp.unHex(s[index+3]); c = (char) n; index += 4; } break; case 'c': c = s[index++]; c = Character.toUpperCase(c); c = (char) (c ^ 64); // JS_TOCTRL break; } } if (inrange) { if (lastc > c) { throw NativeGlobal.constructError( Context.getCurrentContext(), "RangeError", ScriptRuntime.getMessage( "msg.bad.range", null), state.scope); } inrange = false; } else { // Set lastc so we match just c's bit in the for loop. lastc = c; // [balance: if (index + 1 < end && s[index] == '-' && s[index+1] != ']') { index++; inrange = true; continue; } } // Match characters in the range [lastc, c]. for (; lastc <= c; lastc++) { matchBit(lastc, fill); if (fold) { /* * Must do both upper and lower for Turkish dotless i, * Georgian, etc. */ char foldc = Character.toUpperCase(lastc); matchBit(foldc, fill); foldc = Character.toLowerCase(foldc); matchBit(foldc, fill); } } lastc = c; } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b16d847568c4b6033672534e58b050c4923f9c31/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1361, 12224, 12, 2060, 1119, 919, 16, 1149, 8526, 272, 16, 1250, 11590, 13, 288, 3639, 509, 770, 273, 14015, 4522, 13, 17395, 2934, 474, 620, 5621, 3639, 509, 679, 273, 17395, 22, 31, 3639, 1160, 3636, 273, 374, 31, 3639, 509, 277, 16, 82, 16, 504, 84, 31, 7734, 1250, 486, 273, 629, 31, 3639, 17395, 22, 273, 374, 31, 3639, 309, 261, 87, 63, 1615, 65, 422, 10731, 6134, 288, 5411, 486, 273, 638, 31, 5411, 17395, 22, 273, 300, 21, 31, 5411, 770, 9904, 31, 3639, 289, 7734, 7029, 38, 49, 1225, 12, 87, 16, 770, 16, 679, 16, 11590, 1769, 3639, 9389, 273, 394, 1160, 63, 70, 959, 554, 15533, 3639, 309, 261, 902, 13, 288, 5411, 3636, 273, 261, 7229, 13, 20, 5297, 31, 5411, 364, 261, 77, 273, 374, 31, 277, 411, 324, 959, 554, 31, 277, 27245, 7734, 9389, 63, 77, 65, 273, 261, 7229, 13, 20, 5297, 31, 5411, 9389, 63, 20, 65, 273, 261, 7229, 13, 20, 26947, 31, 3639, 289, 3639, 509, 290, 7549, 273, 324, 959, 554, 380, 16717, 13673, 18, 6479, 67, 25171, 67, 3194, 67, 15377, 31, 3639, 1149, 1142, 71, 273, 261, 3001, 13, 82, 7549, 31, 3639, 1250, 316, 3676, 273, 629, 31, 7734, 1323, 261, 1615, 411, 679, 13, 288, 5411, 1149, 276, 273, 272, 63, 1615, 9904, 15533, 5411, 309, 261, 71, 422, 5282, 13, 288, 7734, 276, 273, 272, 63, 1615, 9904, 15533, 7734, 1620, 261, 71, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1361, 12224, 12, 2060, 1119, 919, 16, 1149, 8526, 272, 16, 1250, 11590, 13, 288, 3639, 509, 770, 273, 14015, 4522, 13, 17395, 2934, 474, 620, 5621, 3639, 509, 679, 273, 17395, 22, 31, 3639, 1160, 3636, 273, 374, 31, 3639, 509, 277, 16, 82, 16, 504, 84, 31, 7734, 1250, 486, 273, 629, 31, 3639, 17395, 22, 273, 374, 31, 3639, 309, 261, 87, 63, 1615, 65, 422, 10731, 6134, 288, 5411, 486, 273, 638, 31, 5411, 17395, 22, 273, 300, 21, 31, 5411, 770, 9904, 31, 3639, 289, 7734, 7029, 38, 49, 1225, 12, 87, 16, 770, 16, 679, 16, 11590, 1769, 3639, 9389, 273, 394, 1160, 63, 70, 959, 554, 15533, 3639, 309, 261, 2 ]
public String toString() throws NotImplementedException
public String toString()
public String toString() throws NotImplementedException { return null; // TODO }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/8e6a933c7311b8af73a149d26777089b7dc8bd68/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 225, 288, 202, 202, 2463, 446, 31, 368, 2660, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 1762, 1435, 225, 288, 202, 202, 2463, 446, 31, 368, 2660, 225, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
request.setAttribute("handles", handles);
private void showPreviousSubmissions(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { ItemIterator subs = Item.findBySubmitter(context, context.getCurrentUser()); // Turn the iterator into a list List subList = new LinkedList(); while (subs.hasNext()) { subList.add(subs.next()); } // Get corresponding Handles Item[] items = new Item[subList.size()]; String[] handles = new String[subList.size()]; for (int i = 0; i < subList.size(); i++) { items[i] = (Item) subList.get(i); handles[i] = HandleManager.findHandle(context, items[i]); } log.info(LogManager.getHeader(context, "view_own_submissions", "count=" + items.length)); request.setAttribute("user", context.getCurrentUser()); request.setAttribute("items", items); request.setAttribute("handles", handles); JSPManager.showJSP(request, response, "/mydspace/own-submissions.jsp"); }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/eb25a51ea445dcb6caf477262e17932a12ee6679/MyDSpaceServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/MyDSpaceServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2405, 8351, 1676, 7300, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 4342, 3198, 11630, 273, 4342, 18, 4720, 858, 11620, 387, 12, 2472, 16, 5411, 819, 18, 588, 3935, 1299, 10663, 3639, 368, 22425, 326, 2775, 1368, 279, 666, 3639, 987, 21802, 273, 394, 10688, 5621, 3639, 1323, 261, 22284, 18, 5332, 2134, 10756, 3639, 288, 5411, 21802, 18, 1289, 12, 22284, 18, 4285, 10663, 3639, 289, 7734, 368, 968, 4656, 27020, 3639, 4342, 8526, 1516, 273, 394, 4342, 63, 1717, 682, 18, 1467, 1435, 15533, 3639, 514, 8526, 7372, 273, 394, 514, 63, 1717, 682, 18, 1467, 1435, 15533, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 21802, 18, 1467, 5621, 277, 27245, 3639, 288, 5411, 1516, 63, 77, 65, 273, 261, 1180, 13, 21802, 18, 588, 12, 77, 1769, 5411, 7372, 63, 77, 65, 273, 5004, 1318, 18, 4720, 3259, 12, 2472, 16, 1516, 63, 77, 19226, 3639, 289, 3639, 613, 18, 1376, 12, 1343, 1318, 18, 588, 1864, 12, 2472, 16, 5411, 315, 1945, 67, 995, 67, 25675, 3113, 5411, 315, 1883, 1546, 397, 1516, 18, 2469, 10019, 3639, 590, 18, 542, 1499, 2932, 1355, 3113, 819, 18, 588, 3935, 1299, 10663, 3639, 590, 18, 542, 1499, 2932, 3319, 3113, 1516, 1769, 9079, 804, 3118, 1318, 18, 4500, 46, 3118, 12, 2293, 16, 5411, 766, 16, 5411, 2206, 4811, 2377, 909, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 8351, 1676, 7300, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 4342, 3198, 11630, 273, 4342, 18, 4720, 858, 11620, 387, 12, 2472, 16, 5411, 819, 18, 588, 3935, 1299, 10663, 3639, 368, 22425, 326, 2775, 1368, 279, 666, 3639, 987, 21802, 273, 394, 10688, 5621, 3639, 1323, 261, 22284, 18, 5332, 2134, 10756, 3639, 288, 5411, 21802, 18, 1289, 12, 22284, 18, 4285, 10663, 3639, 289, 7734, 368, 968, 4656, 27020, 3639, 4342, 8526, 1516, 273, 394, 4342, 63, 1717, 682, 18, 1467, 1435, 15533, 3639, 514, 8526, 7372, 273, 394, 514, 63, 1717, 682, 18, 1467, 2 ]
for (Plugin plugin : plugins) plugin.mapFrameInitialized(old, map);
for (PluginProxy plugin : plugins) plugin.mapFrameInitialized(old, map);
public final void setMapFrame(final MapFrame map) { MapFrame old = Main.map; Main.map = map; panel.setVisible(false); panel.removeAll(); if (map != null) { map.fillPanel(panel); panel.setVisible(true); map.mapView.addLayerChangeListener(new LayerChangeListener(){ public void activeLayerChange(final Layer oldLayer, final Layer newLayer) { setLayerMenu(newLayer.getMenuEntries()); } public void layerAdded(final Layer newLayer) { if (newLayer instanceof OsmDataLayer) Main.main.editLayer().listenerCommands.add(redoUndoListener); } public void layerRemoved(final Layer oldLayer) { if (oldLayer instanceof OsmDataLayer) Main.main.editLayer().listenerCommands.add(redoUndoListener); if (map.mapView.getAllLayers().isEmpty()) setLayerMenu(null); } }); if (map.mapView.editLayer != null) map.mapView.editLayer.listenerCommands.add(redoUndoListener); } redoUndoListener.commandChanged(0,0); for (Plugin plugin : plugins) plugin.mapFrameInitialized(old, map); }
2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/a9390dbb2b8d4e97ca17ad9d42dd2608e47ed58f/Main.java/buggy/src/org/openstreetmap/josm/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 444, 863, 3219, 12, 6385, 1635, 3219, 852, 13, 288, 202, 202, 863, 3219, 1592, 273, 12740, 18, 1458, 31, 202, 202, 6376, 18, 1458, 273, 852, 31, 202, 202, 13916, 18, 542, 6207, 12, 5743, 1769, 202, 202, 13916, 18, 4479, 1595, 5621, 202, 202, 430, 261, 1458, 480, 446, 13, 288, 1082, 202, 1458, 18, 5935, 5537, 12, 13916, 1769, 1082, 202, 13916, 18, 542, 6207, 12, 3767, 1769, 1082, 202, 1458, 18, 1458, 1767, 18, 1289, 4576, 15744, 12, 2704, 12112, 15744, 1435, 95, 9506, 202, 482, 918, 2695, 4576, 3043, 12, 6385, 12112, 1592, 4576, 16, 727, 12112, 394, 4576, 13, 288, 6862, 202, 542, 4576, 4599, 12, 2704, 4576, 18, 588, 4599, 5400, 10663, 9506, 202, 97, 9506, 202, 482, 918, 3018, 8602, 12, 6385, 12112, 394, 4576, 13, 288, 6862, 202, 430, 261, 2704, 4576, 1276, 531, 4808, 751, 4576, 13, 25083, 202, 6376, 18, 5254, 18, 4619, 4576, 7675, 12757, 9127, 18, 1289, 12, 1118, 83, 31224, 2223, 1769, 9506, 202, 97, 9506, 202, 482, 918, 3018, 10026, 12, 6385, 12112, 1592, 4576, 13, 288, 6862, 202, 430, 261, 1673, 4576, 1276, 531, 4808, 751, 4576, 13, 25083, 202, 6376, 18, 5254, 18, 4619, 4576, 7675, 12757, 9127, 18, 1289, 12, 1118, 83, 31224, 2223, 1769, 6862, 202, 430, 261, 1458, 18, 1458, 1767, 18, 588, 1595, 9282, 7675, 291, 1921, 10756, 25083, 202, 542, 4576, 4599, 12, 2011, 1769, 9506, 202, 97, 1082, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 863, 3219, 12, 6385, 1635, 3219, 852, 13, 288, 202, 202, 863, 3219, 1592, 273, 12740, 18, 1458, 31, 202, 202, 6376, 18, 1458, 273, 852, 31, 202, 202, 13916, 18, 542, 6207, 12, 5743, 1769, 202, 202, 13916, 18, 4479, 1595, 5621, 202, 202, 430, 261, 1458, 480, 446, 13, 288, 1082, 202, 1458, 18, 5935, 5537, 12, 13916, 1769, 1082, 202, 13916, 18, 542, 6207, 12, 3767, 1769, 1082, 202, 1458, 18, 1458, 1767, 18, 1289, 4576, 15744, 12, 2704, 12112, 15744, 1435, 95, 9506, 202, 482, 918, 2695, 4576, 3043, 12, 6385, 12112, 1592, 4576, 16, 727, 12112, 394, 4576, 13, 288, 6862, 202, 542, 4576, 4599, 12, 2704, 4576, 2 ]
return null; } else { try { Field field = ref.getWrappedClass().getField(name); if (Modifier.isStatic(field.getModifiers()) && Modifier.isPublic(field.getModifiers()) && field.getType().equals(type)) { return field.get(ref.getWrappedInstance()); } } catch (NoSuchFieldException e) { } catch (IllegalAccessException e) { }
protected Object getPropertyValue(String name, Class type) { BeanWrapper ref = getReference(); if (ref.isReadableProperty(name) && ref.getPropertyType(name).isAssignableFrom(type)) { Object value = ref.getPropertyValue(name); if(value != null && type.isAssignableFrom(value.getClass())) { return value; } return null; } else { try { Field field = ref.getWrappedClass().getField(name); if (Modifier.isStatic(field.getModifiers()) && Modifier.isPublic(field.getModifiers()) && field.getType().equals(type)) { return field.get(ref.getWrappedInstance()); } } catch (NoSuchFieldException e) { // ignore } catch (IllegalAccessException e) { // ignore } } return null; }
55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/f3501a936fa4b7198a64ec638260a4d7cca023ba/AbstractGrailsClass.java/buggy/src/commons/org/codehaus/groovy/grails/commons/AbstractGrailsClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 21694, 12, 780, 508, 16, 1659, 618, 13, 288, 202, 202, 3381, 3611, 1278, 273, 13223, 5621, 202, 202, 430, 261, 1734, 18, 291, 14151, 1396, 12, 529, 13, 597, 1278, 18, 588, 22802, 12, 529, 2934, 291, 7961, 1265, 12, 723, 3719, 288, 1082, 202, 921, 460, 273, 1278, 18, 588, 16107, 12, 529, 1769, 1082, 202, 430, 12, 1132, 480, 446, 597, 618, 18, 291, 7961, 1265, 12, 1132, 18, 588, 797, 1435, 3719, 288, 9506, 202, 2463, 460, 31, 1082, 202, 97, 1082, 202, 2463, 446, 31, 202, 202, 97, 469, 288, 1082, 202, 698, 288, 9506, 202, 974, 652, 273, 1278, 18, 588, 17665, 797, 7675, 588, 974, 12, 529, 1769, 9506, 202, 430, 261, 9829, 18, 291, 5788, 12, 1518, 18, 588, 11948, 10756, 597, 12832, 18, 291, 4782, 12, 1518, 18, 588, 11948, 10756, 597, 652, 18, 588, 559, 7675, 14963, 12, 723, 3719, 288, 6862, 202, 2463, 652, 18, 588, 12, 1734, 18, 588, 17665, 1442, 10663, 9506, 202, 97, 1082, 202, 97, 1044, 261, 28341, 28846, 425, 13, 288, 9506, 202, 759, 2305, 1082, 202, 97, 1044, 261, 12195, 9773, 425, 13, 288, 9506, 202, 759, 2305, 1082, 202, 97, 202, 202, 97, 9506, 202, 2463, 446, 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, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1117, 1033, 21694, 12, 780, 508, 16, 1659, 618, 13, 288, 202, 202, 3381, 3611, 1278, 273, 13223, 5621, 202, 202, 430, 261, 1734, 18, 291, 14151, 1396, 12, 529, 13, 597, 1278, 18, 588, 22802, 12, 529, 2934, 291, 7961, 1265, 12, 723, 3719, 288, 1082, 202, 921, 460, 273, 1278, 18, 588, 16107, 12, 529, 1769, 1082, 202, 430, 12, 1132, 480, 446, 597, 618, 18, 291, 7961, 1265, 12, 1132, 18, 588, 797, 1435, 3719, 288, 9506, 202, 2463, 460, 31, 1082, 202, 97, 1082, 202, 2463, 446, 31, 202, 202, 97, 469, 288, 1082, 202, 698, 288, 9506, 202, 974, 652, 273, 1278, 18, 588, 17665, 797, 7675, 588, 974, 12, 529, 1769, 2 ]
home = Platform.resolve(url).getPath();
home = Platform.resolve( url ).getPath( );
public static String getHomeDirectory() { URL url = ReportPlugin.getDefault().getBundle().getEntry("/"); String home = null; try { home = Platform.resolve(url).getPath(); } catch ( IOException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return home.substring(1); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/54a65dd73bba1effaa68099dfb54509007fcdc8b/UIUtil.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 7628, 1742, 2853, 1435, 202, 95, 202, 202, 1785, 880, 273, 8706, 3773, 18, 588, 1868, 7675, 588, 3405, 7675, 588, 1622, 2932, 4898, 1769, 202, 202, 780, 6382, 273, 446, 31, 202, 202, 698, 202, 202, 95, 9506, 6382, 273, 11810, 18, 10828, 12, 718, 2934, 588, 743, 5621, 202, 202, 97, 202, 202, 14683, 261, 1860, 425, 262, 202, 202, 95, 1082, 202, 759, 2660, 8064, 17, 11168, 1044, 1203, 1082, 202, 73, 18, 1188, 6332, 5621, 202, 202, 97, 202, 202, 2463, 6382, 18, 28023, 12, 21, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 514, 7628, 1742, 2853, 1435, 202, 95, 202, 202, 1785, 880, 273, 8706, 3773, 18, 588, 1868, 7675, 588, 3405, 7675, 588, 1622, 2932, 4898, 1769, 202, 202, 780, 6382, 273, 446, 31, 202, 202, 698, 202, 202, 95, 9506, 6382, 273, 11810, 18, 10828, 12, 718, 2934, 588, 743, 5621, 202, 202, 97, 202, 202, 14683, 261, 1860, 425, 262, 202, 202, 95, 1082, 202, 759, 2660, 8064, 17, 11168, 1044, 1203, 1082, 202, 73, 18, 1188, 6332, 5621, 202, 202, 97, 202, 202, 2463, 6382, 18, 28023, 12, 21, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
noise2(noise, point, channels);
noise2(noise, pointX, pointY, channels);
private final void turbulence(final int rgb[], final double point[], final double fSum[], final double noise[], final int numOctaves, final int channels[]){ fSum[0] = fSum[1] = fSum[2] = fSum[3] = noise[0] = noise[1] = noise[2] = noise[3] = 0; double ratio = 1; int i=0; point[0] *= baseFrequencyX; point[1] *= baseFrequencyY; for(int nOctave = 0; nOctave < numOctaves; nOctave++){ noise2(noise, point, channels); for(i=0; i<channels.length; i++){ noise[channels[i]] = noise[channels[i]]<0?-noise[channels[i]]:noise[channels[i]]; fSum[channels[i]] += (noise[channels[i]] / ratio); } ratio *= 2; point[0] *= 2; point[1] *= 2; } rgb[0] = rgb[1] = rgb[2] = rgb[3] = 0; for(i=0; i<channels.length; i++){ rgb[channels[i]] = (int)(fSum[channels[i]] * 255); rgb[channels[i]] = rgb[channels[i]] < 0? 0:rgb[channels[i]]; rgb[channels[i]] = rgb[channels[i]] > 255? 255:rgb[channels[i]]; } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/28eb05b45fcb86648242c7c7850975dbcd6ab809/TurbulencePatternGenerator.java/buggy/sources/org/apache/batik/refimpl/gvt/filter/TurbulencePatternGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 727, 918, 268, 15850, 332, 802, 12, 6385, 509, 6917, 63, 6487, 727, 1645, 1634, 63, 6487, 727, 1645, 284, 3495, 63, 6487, 21394, 727, 1645, 10825, 63, 6487, 727, 509, 818, 19320, 6606, 16, 727, 509, 5750, 63, 5717, 95, 3639, 284, 3495, 63, 20, 65, 273, 284, 3495, 63, 21, 65, 273, 284, 3495, 63, 22, 65, 273, 284, 3495, 63, 23, 65, 273, 10825, 63, 20, 65, 273, 10825, 63, 21, 65, 273, 10825, 63, 22, 65, 273, 10825, 63, 23, 65, 273, 374, 31, 3639, 1645, 7169, 273, 404, 31, 3639, 509, 277, 33, 20, 31, 3639, 1634, 63, 20, 65, 6413, 1026, 13865, 60, 31, 3639, 1634, 63, 21, 65, 6413, 1026, 13865, 61, 31, 3639, 364, 12, 474, 290, 19320, 836, 273, 374, 31, 290, 19320, 836, 411, 818, 19320, 6606, 31, 290, 19320, 836, 27245, 95, 5411, 10825, 22, 12, 17814, 16, 1634, 60, 16, 1634, 61, 16, 5750, 1769, 5411, 364, 12, 77, 33, 20, 31, 277, 32, 9114, 18, 2469, 31, 277, 27245, 95, 7734, 10825, 63, 9114, 63, 77, 13563, 273, 10825, 63, 9114, 63, 77, 13563, 32, 20, 35, 17, 17814, 63, 9114, 63, 77, 13563, 30, 17814, 63, 9114, 63, 77, 13563, 31, 7734, 284, 3495, 63, 9114, 63, 77, 13563, 1011, 261, 17814, 63, 9114, 63, 77, 13563, 342, 7169, 1769, 5411, 289, 5411, 7169, 6413, 576, 31, 5411, 1634, 63, 20, 65, 6413, 576, 31, 5411, 1634, 63, 21, 65, 6413, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 918, 268, 15850, 332, 802, 12, 6385, 509, 6917, 63, 6487, 727, 1645, 1634, 63, 6487, 727, 1645, 284, 3495, 63, 6487, 21394, 727, 1645, 10825, 63, 6487, 727, 509, 818, 19320, 6606, 16, 727, 509, 5750, 63, 5717, 95, 3639, 284, 3495, 63, 20, 65, 273, 284, 3495, 63, 21, 65, 273, 284, 3495, 63, 22, 65, 273, 284, 3495, 63, 23, 65, 273, 10825, 63, 20, 65, 273, 10825, 63, 21, 65, 273, 10825, 63, 22, 65, 273, 10825, 63, 23, 65, 273, 374, 31, 3639, 1645, 7169, 273, 404, 31, 3639, 509, 277, 33, 20, 31, 3639, 1634, 63, 20, 65, 6413, 1026, 13865, 60, 31, 3639, 1634, 63, 21, 65, 6413, 1026, 2 ]
return Integer.toString(Math.abs(new Random().nextInt()),36);
return Integer.toString(Math.abs(random.nextInt()),36);
private String newId() { return Integer.toString(Math.abs(new Random().nextInt()),36); }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/1f2bbcd5f7d1fc45bdacc11969a11bb1a7faf85b/LocalJobRunner.java/buggy/src/java/org/apache/hadoop/mapred/LocalJobRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 27598, 1435, 288, 1377, 327, 2144, 18, 10492, 12, 10477, 18, 5113, 12, 9188, 18, 4285, 1702, 1435, 3631, 5718, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 514, 27598, 1435, 288, 1377, 327, 2144, 18, 10492, 12, 10477, 18, 5113, 12, 9188, 18, 4285, 1702, 1435, 3631, 5718, 1769, 565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void download(Image image, PixelsFactory pf, OMESidePanel omesp, DataFactory df) { if (cancelPlugin) { pluginCancelled(); return; } //get pixel data Pixels pix = image.getDefaultPixels(); int sizeX, sizeY, sizeZ, sizeC, sizeT; sizeX = pix.getSizeX().intValue(); sizeY = pix.getSizeY().intValue(); sizeZ = pix.getSizeZ().intValue(); sizeC = pix.getSizeC().intValue(); sizeT = pix.getSizeT().intValue(); String typeS = pix.getPixelType(); Hashtable table = new Hashtable(4); table.put("Uint16", new Integer(ImagePlus.GRAY16)); table.put("uint16", new Integer(ImagePlus.GRAY16)); table.put("Uint8", new Integer(ImagePlus.GRAY8)); table.put("uint8", new Integer(ImagePlus.GRAY8)); table.put("float", new Integer(ImagePlus.GRAY32)); table.put("color256", new Integer(ImagePlus.COLOR_256)); table.put("colorRGB", new Integer(ImagePlus.COLOR_RGB)); table.put("Uint32", new Integer(17)); table.put("uint32", new Integer(17)); table.put("int16", new Integer(ImagePlus.GRAY16)); table.put("int8", new Integer(ImagePlus.GRAY8)); int type = ((Integer)table.get(typeS)).intValue(); int redChanNum = 2; int greenChanNum = 1; int blueChanNum = 0; if (sizeC == 3) { type = ImagePlus.COLOR_RGB; IJ.showStatus("Finding color channel numbers."); //code that figures out the display options and //what color is what channel number String [] attrs = {"BlueChannel", "ColorMap","DisplayROIList", "GreenChannel", "GreyChannel", "Pixels", "RedChannel", "TStart", "TStop", "Zoom", "ZStart", "ZStop", "BlueChannelOn", "DisplayRGB", "GreenChannelOn", "RedChannelOn"}; Criteria criteria = OMERetrieve.makeAttributeFields(attrs); criteria.addWantedField("image_id"); criteria.addFilter("image_id", (new Integer(image.getID())).toString()); //retrieve element to add with all columns loaded DisplayOptions element = (DisplayOptions) df.retrieve("DisplayOptions", criteria); DisplayChannel redChannel = element.getRedChannel(); DisplayChannel greenChannel = element.getGreenChannel(); DisplayChannel blueChannel = element.getBlueChannel(); String [] attrsC = {"ChannelNumber"}; DisplayChannel[] channels = {redChannel, greenChannel, blueChannel}; int[] channelNum = {redChanNum, greenChanNum, blueChanNum}; for(int i=0; i<sizeC; i++) { criteria = OMERetrieve.makeAttributeFields(attrsC); criteria.addWantedField("id"); criteria.addFilter("id", new Integer(channels[i].getID()).toString()); channels[i] = (DisplayChannel) df.retrieve("DisplayChannel", criteria); channelNum[i] = channels[i].getChannelNumber().intValue(); } redChanNum = channelNum[0]; greenChanNum = channelNum[1]; blueChanNum = channelNum[2]; } int z1 = 0; int t1 = 0; //Create Stack to add planes to in ImageJ ImageStack is = new ImageStack(sizeX, sizeY); try { for (int t=t1; t<sizeT; t++) { for (int z=z1; z<sizeZ; z++) { byte[] pixelb = new byte[sizeX * sizeY]; int[] pixeli = new int[sizeX*sizeY]; short[] pixels = new short[sizeX*sizeY]; double[] pixeld = new double[sizeX*sizeY]; IJ.showStatus("OmeDownload: Loading data (t=" + t + ", z=" + z + ")..."); if (type == 17 || type == ImagePlus.GRAY32) { byte[] pixs = pf.getPlane(pix, z, 0, t, true); for (int i=0; i<pixeli.length; i++) { pixeli[i] = ((pixs[4*i] & 0xff)<<24) + ((pixs[4*i+1] & 0xff)<<16) + ((pixs[4*i+2] & 0xff)<<8) + (pixs[4*i+3] & 0xff); pixeld[i] = (new Integer(pixeli[i])).doubleValue(); } FloatProcessor ip = new FloatProcessor(sizeX, sizeY, pixeld); // adding plane to the ImageStack is.addSlice("Z=" + z + " T=" + t, ip); } else if (type == ImagePlus.COLOR_256) { pixelb = pf.getPlane(pix, z, 0, t, true); for (int i=0; i<pixelb.length; i++) { pixelb[i] = (byte)(128-pixelb[i]); } ByteProcessor ip = new ByteProcessor(sizeX, sizeY); ip.setPixels(pixelb); // adding plane to the ImageStack is.addSlice("Z=" + z + " T=" + t, ip); } else if (type == ImagePlus.COLOR_RGB) { byte[] r = pf.getPlane(pix, z, redChanNum, t, true); byte[] g = pf.getPlane(pix, z, greenChanNum, t, true); byte[] b = pf.getPlane(pix, z, blueChanNum, t, true); for (int i=0; i<pixeli.length; i++) { pixeli[i] = ((r[i] & 0xff)<<16)+ ((g[i] & 0xff)<<8)+ (b[i] & 0xff); } ColorProcessor ip = new ColorProcessor(sizeX, sizeY, pixeli); // adding plane to the ImageStack is.addSlice("Z=" + z + " T=" + t, ip); } else if (type == ImagePlus.GRAY16) { byte[] pixs = pf.getPlane(pix, z,0,t, true); for (int i=0; i<pixels.length; i++) { pixels[i] = (short)(((pixs[2*i] & 0xff)<<8)+ (pixs[2*i+1] & 0xff)); } ShortProcessor ip = new ShortProcessor(sizeX, sizeY); ip.setPixels(pixels); // adding plane to the ImageStack is.addSlice("Z=" + z + " T=" + t, ip); } else if (type == ImagePlus.GRAY8) { pixelb = pf.getPlane(pix, z, 0, t, true); ByteProcessor ip = new ByteProcessor(sizeX, sizeY); ip.setPixels(pixelb); // adding plane to the ImageStack is.addSlice("Z=" + z + " T=" + t, ip); } } } } catch(ImageServerException e) { OMEDownPanel.error(IJ.getInstance(), "There was an error downloading the image.\n" + e.toString(), "Download Error"); cancelPlugin = true; pluginCancelled(); e.printStackTrace(); return; } //Create the ImagePlus in ImageJ and display it imageP = new ImagePlus(image.getName(), is); //retrieve metadata Object[] metas = new Object[2]; metas[0] = new Integer(image.getID()); if (OMESidePanel.yesNo(IJ.getInstance(), "Would you like to download\nmetadata associated with the\n" + "image " + image.getName() + " along with\n" + "the pixels? (It takes a bit longer.)")) { IJ.showStatus("Retrieving metadata..."); metas[1] = OMEMetaDataHandler.exportMeta(image, imageP, df); } IJ.showStatus("Displaying Image"); viewer = new LociDataBrowser(); boolean tp = (sizeT > 1); // HACK // we want to give LociDataBrowser information about // the dimensions of the stack, without messing with the API ij.io.FileInfo fi = new ij.io.FileInfo(); fi.info = tp + " " + sizeZ; imageP.setFileInfo(fi); viewer.twoDimView(imageP); OMESidePanel.hashInImage(-1*image.getID(), metas); }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/b59984375440a9807d545ea53af1d0d6c2a306d6/OMETools.java/buggy/loci/ome/ij/OMETools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 4224, 12, 2040, 1316, 16, 26070, 87, 1733, 10811, 16, 531, 958, 8895, 5537, 8068, 281, 84, 16, 1377, 1910, 1733, 3013, 13, 288, 565, 309, 261, 10996, 3773, 13, 288, 1377, 1909, 21890, 5621, 1377, 327, 31, 565, 289, 565, 368, 588, 4957, 501, 565, 26070, 87, 11871, 273, 1316, 18, 588, 1868, 18079, 5621, 565, 509, 963, 60, 16, 963, 61, 16, 963, 62, 16, 963, 39, 16, 963, 56, 31, 565, 963, 60, 273, 11871, 18, 588, 1225, 60, 7675, 474, 620, 5621, 565, 963, 61, 273, 11871, 18, 588, 1225, 61, 7675, 474, 620, 5621, 565, 963, 62, 273, 11871, 18, 588, 1225, 62, 7675, 474, 620, 5621, 565, 963, 39, 273, 11871, 18, 588, 1225, 39, 7675, 474, 620, 5621, 565, 963, 56, 273, 11871, 18, 588, 1225, 56, 7675, 474, 620, 5621, 565, 514, 618, 55, 273, 11871, 18, 588, 9037, 559, 5621, 565, 18559, 1014, 273, 394, 18559, 12, 24, 1769, 565, 1014, 18, 458, 2932, 5487, 2313, 3113, 394, 2144, 12, 2040, 13207, 18, 43, 6722, 2313, 10019, 565, 1014, 18, 458, 2932, 11890, 2313, 3113, 394, 2144, 12, 2040, 13207, 18, 43, 6722, 2313, 10019, 565, 1014, 18, 458, 2932, 5487, 28, 3113, 394, 2144, 12, 2040, 13207, 18, 43, 6722, 28, 10019, 565, 1014, 18, 458, 2932, 11890, 28, 3113, 394, 2144, 12, 2040, 13207, 18, 43, 6722, 28, 10019, 565, 1014, 18, 458, 2932, 5659, 3113, 394, 2144, 12, 2040, 13207, 18, 43, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 4224, 12, 2040, 1316, 16, 26070, 87, 1733, 10811, 16, 531, 958, 8895, 5537, 8068, 281, 84, 16, 1377, 1910, 1733, 3013, 13, 288, 565, 309, 261, 10996, 3773, 13, 288, 1377, 1909, 21890, 5621, 1377, 327, 31, 565, 289, 565, 368, 588, 4957, 501, 565, 26070, 87, 11871, 273, 1316, 18, 588, 1868, 18079, 5621, 565, 509, 963, 60, 16, 963, 61, 16, 963, 62, 16, 963, 39, 16, 963, 56, 31, 565, 963, 60, 273, 11871, 18, 588, 1225, 60, 7675, 474, 620, 5621, 565, 963, 61, 273, 11871, 18, 588, 1225, 61, 7675, 474, 620, 5621, 565, 963, 62, 273, 11871, 18, 588, 1225, 62, 7675, 474, 620, 5621, 565, 963, 39, 273, 2 ]
new Pattern("log4j:configuration/root/appender-ref"),
new Pattern("configuration/root/appender-ref"),
protected void selfInitialize() { RuleStore rs = new SimpleRuleStore(); rs.addRule(new Pattern("log4j:configuration"), new ConfigurationAction()); rs.addRule( new Pattern("log4j:configuration/substitutionProperty"), new SubstitutionPropertyAction()); rs.addRule( new Pattern("log4j:configuration/repositoryProperty"), new RepositoryPropertyAction()); rs.addRule(new Pattern("log4j:configuration/plugin"), new PluginAction()); rs.addRule(new Pattern("log4j:configuration/logger"), new LoggerAction()); rs.addRule( new Pattern("log4j:configuration/logger/level"), new LevelAction()); rs.addRule( new Pattern("log4j:configuration/logger/priority"), new PriorityAction()); rs.addRule( new Pattern("log4j:configuration/root"), new RootLoggerAction()); rs.addRule( new Pattern("log4j:configuration/root/level"), new LevelAction()); rs.addRule( new Pattern("log4j:configuration/root/priority"), new PriorityAction()); rs.addRule( new Pattern("log4j:configuration/logger/appender-ref"), new AppenderRefAction()); rs.addRule( new Pattern("log4j:configuration/root/appender-ref"), new AppenderRefAction()); rs.addRule( new Pattern("log4j:configuration/appender"), new AppenderAction()); rs.addRule( new Pattern("log4j:configuration/appender/layout"), new LayoutAction()); rs.addRule( new Pattern("log4j:configuration/appender/layout/conversionRule"), new ConversionRuleAction()); rs.addRule( new Pattern("log4j:configuration/jndiSubstitutionProperty"), new JndiSubstitutionPropertyAction()); rs.addRule( new Pattern("log4j:configuration/newRule"), new NewRuleAction()); rs.addRule(new Pattern("*/param"), new ParamAction()); joranInterpreter = new Interpreter(rs); // The following line adds the capability to parse nested components joranInterpreter.addImplicitAction(new NestComponentIA()); ExecutionContext ec = joranInterpreter.getExecutionContext(); HashMap omap = ec.getObjectMap(); omap.put(ActionConst.APPENDER_BAG, new HashMap()); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/f7bd35e48399a11981af7628e678932ba6025850/JoranConfigurator.java/buggy/src/java/org/apache/log4j/joran/JoranConfigurator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 365, 7520, 1435, 288, 565, 6781, 2257, 3597, 273, 394, 4477, 2175, 2257, 5621, 565, 3597, 18, 1289, 2175, 12, 2704, 6830, 2932, 1330, 24, 78, 30, 7025, 6, 3631, 394, 4659, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 1717, 14278, 1396, 6, 3631, 1377, 394, 2592, 14278, 1396, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 9071, 1396, 6, 3631, 1377, 394, 6281, 1396, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 2704, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 4094, 6, 3631, 394, 6258, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 2704, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 4901, 6, 3631, 394, 4242, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 4901, 19, 2815, 6, 3631, 394, 4557, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 4901, 19, 8457, 6, 3631, 394, 13354, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 3085, 6, 3631, 394, 7450, 3328, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 3085, 19, 2815, 6, 3631, 394, 4557, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 365, 7520, 1435, 288, 565, 6781, 2257, 3597, 273, 394, 4477, 2175, 2257, 5621, 565, 3597, 18, 1289, 2175, 12, 2704, 6830, 2932, 1330, 24, 78, 30, 7025, 6, 3631, 394, 4659, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 1717, 14278, 1396, 6, 3631, 1377, 394, 2592, 14278, 1396, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 1377, 394, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 9071, 1396, 6, 3631, 1377, 394, 6281, 1396, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 2704, 6830, 2932, 1330, 24, 78, 30, 7025, 19, 4094, 6, 3631, 394, 6258, 1803, 10663, 565, 3597, 18, 1289, 2175, 12, 2 ]
try
last.close(); if (!con.getAutoCommit())
public Connection getConnection() throws SQLException { if (con == null) { throw new SQLException("This PooledConnection has already been closed!"); } // Only one connection can be open at a time from this PooledConnection. See JDBC 2.0 Optional Package spec section 6.2.3 if (last != null) { last.close(); if (!con.getAutoCommit()) { try { con.rollback(); } catch (SQLException e) {} } con.clearWarnings(); } con.setAutoCommit(autoCommit); ConnectionHandler handler = new ConnectionHandler(con); last = handler; Connection con = (Connection)Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{Connection.class, PGConnection.class}, handler); last.setProxy(con); return con; }
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/9e29b32e782e38ebdcb41b217a18fafe3387371e/PooledConnectionImpl.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4050, 6742, 1435, 1216, 6483, 202, 95, 202, 202, 430, 261, 591, 422, 446, 13, 202, 202, 95, 1082, 202, 12849, 394, 6483, 2932, 2503, 453, 22167, 1952, 711, 1818, 2118, 4375, 4442, 1769, 202, 202, 97, 202, 202, 759, 5098, 1245, 1459, 848, 506, 1696, 622, 279, 813, 628, 333, 453, 22167, 1952, 18, 225, 2164, 16364, 576, 18, 20, 4055, 7508, 857, 2442, 1666, 18, 22, 18, 23, 202, 202, 430, 261, 2722, 480, 446, 13, 202, 202, 95, 1082, 202, 2722, 18, 4412, 5621, 1082, 202, 430, 16051, 591, 18, 588, 4965, 5580, 10756, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 591, 18, 20050, 5621, 9506, 202, 97, 9506, 202, 14683, 261, 23116, 425, 13, 9506, 202, 2916, 1082, 202, 97, 1082, 202, 591, 18, 8507, 4312, 5621, 202, 202, 97, 202, 202, 591, 18, 542, 4965, 5580, 12, 6079, 5580, 1769, 202, 202, 1952, 1503, 1838, 273, 394, 4050, 1503, 12, 591, 1769, 202, 202, 2722, 273, 1838, 31, 202, 202, 1952, 356, 273, 261, 1952, 13, 3886, 18, 2704, 3886, 1442, 12, 588, 797, 7675, 588, 7805, 9334, 394, 1659, 63, 7073, 1952, 18, 1106, 16, 22116, 1952, 18, 1106, 5779, 1838, 1769, 3639, 1142, 18, 542, 3886, 12, 591, 1769, 3639, 327, 356, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 4050, 6742, 1435, 1216, 6483, 202, 95, 202, 202, 430, 261, 591, 422, 446, 13, 202, 202, 95, 1082, 202, 12849, 394, 6483, 2932, 2503, 453, 22167, 1952, 711, 1818, 2118, 4375, 4442, 1769, 202, 202, 97, 202, 202, 759, 5098, 1245, 1459, 848, 506, 1696, 622, 279, 813, 628, 333, 453, 22167, 1952, 18, 225, 2164, 16364, 576, 18, 20, 4055, 7508, 857, 2442, 1666, 18, 22, 18, 23, 202, 202, 430, 261, 2722, 480, 446, 13, 202, 202, 95, 1082, 202, 2722, 18, 4412, 5621, 1082, 202, 430, 16051, 591, 18, 588, 4965, 5580, 10756, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 591, 18, 20050, 5621, 9506, 202, 97, 9506, 2 ]
Header hdr = (Header)hdrsEnum.nextElement();
Header hdr = (Header) hdrsEnum.nextElement();
private static void dumpMessage(MimeMessage mm) { /* * Dump the outgoing message to stdout for now... */ mLog.debug("--------------------------------------"); try { Enumeration hdrsEnum = mm.getAllHeaders(); if (hdrsEnum != null) while (hdrsEnum.hasMoreElements()) { Header hdr = (Header)hdrsEnum.nextElement(); if (!hdr.getName().equals("") && !hdr.getValue().equals("\n")) mLog.debug(hdr.getName()+" = \""+hdr.getValue()+"\""); } mLog.debug("--------------------------------------"); Address[] recips = mm.getAllRecipients(); if (recips != null) for (int i = 0; i < recips.length; i++) mLog.debug("Recipient: "+recips[i].toString()); mLog.debug("--------------------------------------\nMessage size is: "+mm.getSize());// System.out.println("--------------------------------------");// System.out.print("Message Dump:");// mm.writeTo(System.out); } catch (Exception e) { e.printStackTrace(); }; mLog.debug("--------------------------------------\n"); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/545a47e80f124ea231945f86e3fb9cb62048b4e8/ParseMimeMessage.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/ParseMimeMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 1079, 12, 13320, 1079, 9740, 13, 288, 3639, 1748, 1850, 380, 18242, 326, 12902, 883, 358, 3909, 364, 2037, 2777, 540, 1195, 3639, 312, 1343, 18, 4148, 2932, 2443, 13093, 8863, 3639, 775, 288, 5411, 13864, 31424, 3572, 273, 9740, 18, 588, 1595, 3121, 5621, 5411, 309, 261, 16587, 87, 3572, 480, 446, 13, 7734, 1323, 261, 16587, 87, 3572, 18, 5332, 7417, 3471, 10756, 288, 10792, 4304, 7723, 273, 261, 1864, 13, 31424, 3572, 18, 4285, 1046, 5621, 10792, 309, 16051, 16587, 18, 17994, 7675, 14963, 2932, 7923, 597, 401, 16587, 18, 24805, 7675, 14963, 31458, 82, 6, 3719, 13491, 312, 1343, 18, 4148, 12, 16587, 18, 17994, 1435, 9078, 273, 11843, 15, 16587, 18, 24805, 1435, 9078, 8530, 1769, 7734, 289, 5411, 312, 1343, 18, 4148, 2932, 2443, 13093, 8863, 5411, 5267, 8526, 5863, 87, 273, 9740, 18, 588, 1595, 22740, 5621, 5411, 309, 261, 266, 3449, 87, 480, 446, 13, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 5863, 87, 18, 2469, 31, 277, 27245, 10792, 312, 1343, 18, 4148, 2932, 18241, 30, 13773, 266, 3449, 87, 63, 77, 8009, 10492, 10663, 5411, 312, 1343, 18, 4148, 2932, 2443, 13093, 64, 82, 1079, 963, 353, 30, 13773, 7020, 18, 588, 1225, 10663, 759, 1850, 2332, 18, 659, 18, 8222, 2932, 2443, 13093, 8863, 759, 1850, 2332, 18, 659, 18, 1188, 2932, 1079, 18242, 2773, 1769, 759, 1850, 9740, 18, 2626, 774, 12, 3163, 18, 659, 1769, 3639, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4657, 1079, 12, 13320, 1079, 9740, 13, 288, 3639, 1748, 1850, 380, 18242, 326, 12902, 883, 358, 3909, 364, 2037, 2777, 540, 1195, 3639, 312, 1343, 18, 4148, 2932, 2443, 13093, 8863, 3639, 775, 288, 5411, 13864, 31424, 3572, 273, 9740, 18, 588, 1595, 3121, 5621, 5411, 309, 261, 16587, 87, 3572, 480, 446, 13, 7734, 1323, 261, 16587, 87, 3572, 18, 5332, 7417, 3471, 10756, 288, 10792, 4304, 7723, 273, 261, 1864, 13, 31424, 3572, 18, 4285, 1046, 5621, 10792, 309, 16051, 16587, 18, 17994, 7675, 14963, 2932, 7923, 597, 401, 16587, 18, 24805, 7675, 14963, 31458, 82, 6, 3719, 13491, 312, 1343, 18, 4148, 12, 16587, 18, 17994, 1435, 9078, 273, 11843, 15, 2 ]
return RubyBoolean.newBoolean(runtime, isTaint());
return getRuntime().newBoolean(isTaint());
public RubyBoolean tainted() { return RubyBoolean.newBoolean(runtime, isTaint()); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 22664, 329, 1435, 288, 3639, 327, 18814, 7675, 2704, 5507, 12, 291, 29048, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5507, 22664, 329, 1435, 288, 3639, 327, 18814, 7675, 2704, 5507, 12, 291, 29048, 10663, 565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ((ai.minimumWaterDepth < 1) && ai.underWaterCombat) { los.blocked = true; }
private static LosEffects losStraight(IGame game, AttackInfo ai) { Coords[] in = Coords.intervening(ai.attackPos, ai.targetPos); LosEffects los = new LosEffects(); boolean targetInBuilding = false; if (ai.targetEntity) { targetInBuilding = Compute.isInBuilding(game, game.getBoard().getHex(ai.targetPos).floor(), ai.targetPos); } // If the target and attacker are both in a // building, set that as the first LOS effect. if ( targetInBuilding && Compute.isInBuilding( game, game.getBoard().getHex(ai.attackPos).floor(), ai.attackPos ) ) { los.setThruBldg( game.getBoard().getBuildingAt( in[0] ) ); } for (int i = 0; i < in.length; i++) { los.add( LosEffects.losForCoords(game, ai, in[i], los.getThruBldg()) ); } // Infantry inside a building can only be // targeted by units in the same building. if ( ai.targetInfantry && targetInBuilding && null == los.getThruBldg() ) { los.blocked = true; } // If a target Entity is at a different elevation as its // attacker, and if the attack is through a building, the // target has cover. if ( null != los.getThruBldg() && ai.attackAbsHeight != ai.targetAbsHeight ) { los.setTargetCover( true ); } return los; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/fa44b6043f3803cbeb2ce3b5e85ec7e17bad87fa/LosEffects.java/buggy/megamek/src/megamek/common/LosEffects.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 282, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 282, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 282, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 225, 3238, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 225, 760, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 225, 511, 538, 29013, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 225, 22148, 1585, 19717, 12, 3047, 339, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 225, 7920, 16, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 282, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 282, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 282, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 13, 597, 14679, 18, 9341, 24064, 11328, 270, 13, 288, 22148, 18, 23156, 273, 638, 31, 289, 225, 3238, 309, 14015, 10658, 18, 15903, 24064, 6148, 411, 404, 2 ]
super(conn_, removeRetVal(sql), type, concurrency); String resSql = removeRetVal(sql); if( !resSql.equals(sql) ) haveRetVal = true; sql = resSql; procedureName = ""; int i = 0; int pos = sql.indexOf("{call "); if( pos >= 0 ) i = pos + 6; else { pos = sql.indexOf("exec "); if( pos >= 0 ) i = pos + 5; } while( i<sql.length() && !Character.isLetterOrDigit(sql.charAt(i)) && sql.charAt(i)!='#' ) i++; pos = i; while( i<sql.length() && (Character.isLetterOrDigit(sql.charAt(i)) || sql.charAt(i)=='#' || sql.charAt(i)=='_' || sql.charAt(i)=='.') ) i++; procedureName = sql.substring(pos, i); if( procedureName.length() == 0 ) throw new SQLException( "Did not find name in sql string" );
this(conn_, sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
public CallableStatement_base(TdsConnection conn_, String sql, int type, int concurrency) throws SQLException { // SAfe We have to call removeRetVal twice because the call to super // must be the first statement. :( super(conn_, removeRetVal(sql), type, concurrency); String resSql = removeRetVal(sql); // If the result is different, then the "?=" was removed so we have a // return value. if( !resSql.equals(sql) ) haveRetVal = true; sql = resSql; procedureName = ""; int i = 0; int pos = sql.indexOf("{call "); if( pos >= 0 ) i = pos + 6; else { pos = sql.indexOf("exec "); if( pos >= 0 ) i = pos + 5; } // Find the start of the procedure name while( i<sql.length() && !Character.isLetterOrDigit(sql.charAt(i)) && sql.charAt(i)!='#' ) i++; pos = i; // Find the end of the procedure name while( i<sql.length() && (Character.isLetterOrDigit(sql.charAt(i)) || sql.charAt(i)=='#' || sql.charAt(i)=='_' || sql.charAt(i)=='.') ) i++; procedureName = sql.substring(pos, i); if( procedureName.length() == 0 ) throw new SQLException( "Did not find name in sql string" ); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/CallableStatement_base.java/buggy/src/main/net/sourceforge/jtds/jdbc/CallableStatement_base.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10464, 3406, 67, 1969, 12, 56, 2377, 1952, 1487, 67, 16, 514, 1847, 16, 509, 618, 16, 509, 17752, 13, 3639, 1216, 6483, 565, 288, 3639, 368, 17127, 3030, 1660, 1240, 358, 745, 1206, 7055, 3053, 13605, 2724, 326, 745, 358, 2240, 3639, 368, 1377, 1297, 506, 326, 1122, 3021, 18, 294, 12, 3639, 2240, 12, 4646, 67, 16, 1206, 7055, 3053, 12, 4669, 3631, 618, 16, 17752, 1769, 3639, 514, 400, 5101, 273, 1206, 7055, 3053, 12, 4669, 1769, 3639, 368, 971, 326, 563, 353, 3775, 16, 1508, 326, 18101, 1546, 1703, 3723, 1427, 732, 1240, 279, 3639, 368, 327, 460, 18, 3639, 309, 12, 401, 455, 5101, 18, 14963, 12, 4669, 13, 262, 5411, 1240, 7055, 3053, 273, 638, 31, 3639, 1847, 273, 400, 5101, 31, 3639, 12131, 461, 273, 1408, 31, 3639, 509, 277, 273, 374, 31, 3639, 509, 949, 273, 1847, 18, 31806, 2932, 95, 1991, 315, 1769, 3639, 309, 12, 949, 1545, 374, 262, 5411, 277, 273, 949, 397, 1666, 31, 3639, 469, 3639, 288, 5411, 949, 273, 1847, 18, 31806, 2932, 4177, 315, 1769, 5411, 309, 12, 949, 1545, 374, 262, 7734, 277, 273, 949, 397, 1381, 31, 3639, 289, 3639, 368, 4163, 326, 787, 434, 326, 12131, 508, 3639, 1323, 12, 277, 32, 4669, 18, 2469, 1435, 597, 401, 7069, 18, 291, 13938, 1162, 10907, 12, 4669, 18, 3001, 861, 12, 77, 3719, 597, 1847, 18, 3001, 861, 12, 77, 13, 5, 2218, 10038, 262, 5411, 277, 9904, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10464, 3406, 67, 1969, 12, 56, 2377, 1952, 1487, 67, 16, 514, 1847, 16, 509, 618, 16, 509, 17752, 13, 3639, 1216, 6483, 565, 288, 3639, 368, 17127, 3030, 1660, 1240, 358, 745, 1206, 7055, 3053, 13605, 2724, 326, 745, 358, 2240, 3639, 368, 1377, 1297, 506, 326, 1122, 3021, 18, 294, 12, 3639, 2240, 12, 4646, 67, 16, 1206, 7055, 3053, 12, 4669, 3631, 618, 16, 17752, 1769, 3639, 514, 400, 5101, 273, 1206, 7055, 3053, 12, 4669, 1769, 3639, 368, 971, 326, 563, 353, 3775, 16, 1508, 326, 18101, 1546, 1703, 3723, 1427, 732, 1240, 279, 3639, 368, 327, 460, 18, 3639, 309, 12, 401, 455, 5101, 18, 14963, 12, 4669, 13, 262, 5411, 1240, 2 ]
return (int) Math.round(xDist + 1);
return (int) Math.ceil(xDist + 1);
int getRange(Hex hex1, Hex hex2) { int x1 = hex1.getXCoord(); float y1 = hex1.getYCoord(); int x2 = hex2.getXCoord(); float y2 = hex2.getYCoord(); // Hexes with odd X coordinates are pushed down half a hex. if ((x1 & 1) == 1) { y1 += 0.5; } if ((x2 & 1) == 1) { y2 += 0.5; } float xDist = Math.abs(x2 - x1); float yDist = Math.abs(y2 - y1); // Offboard chits are out of range. if (x1 == -1 || x2 == -1) { xDist = 10; } if (xDist >= 2 * yDist) { return (int) Math.round(xDist + 1); } else if (xDist >= yDist) { return (int) Math.round(xDist + 2); } else if (yDist >= 2 * xDist) { return (int) Math.round(yDist + 1); } else { return (int) Math.round(yDist + 2); } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/e9860c0a151c78ceb34a52eaa629e165f78211b7/BattleMap.java/clean/Colossus/BattleMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 22373, 12, 7037, 3827, 21, 16, 15734, 3827, 22, 13, 565, 288, 3639, 509, 619, 21, 273, 3827, 21, 18, 588, 60, 5401, 5621, 3639, 1431, 677, 21, 273, 3827, 21, 18, 588, 61, 5401, 5621, 3639, 509, 619, 22, 273, 3827, 22, 18, 588, 60, 5401, 5621, 3639, 1431, 677, 22, 273, 3827, 22, 18, 588, 61, 5401, 5621, 3639, 368, 15734, 281, 598, 14800, 1139, 5513, 854, 18543, 2588, 8816, 279, 3827, 18, 3639, 309, 14015, 92, 21, 473, 404, 13, 422, 404, 13, 3639, 288, 5411, 677, 21, 1011, 374, 18, 25, 31, 3639, 289, 3639, 309, 14015, 92, 22, 473, 404, 13, 422, 404, 13, 3639, 288, 5411, 677, 22, 1011, 374, 18, 25, 31, 3639, 289, 7734, 1431, 619, 5133, 273, 2361, 18, 5113, 12, 92, 22, 300, 619, 21, 1769, 3639, 1431, 677, 5133, 273, 2361, 18, 5113, 12, 93, 22, 300, 677, 21, 1769, 7734, 368, 15837, 3752, 462, 1282, 854, 596, 434, 1048, 18, 3639, 309, 261, 92, 21, 422, 300, 21, 747, 619, 22, 422, 300, 21, 13, 3639, 288, 5411, 619, 5133, 273, 1728, 31, 3639, 289, 3639, 309, 261, 92, 5133, 1545, 576, 380, 677, 5133, 13, 3639, 288, 5411, 327, 261, 474, 13, 2361, 18, 311, 330, 12, 92, 5133, 397, 404, 1769, 3639, 289, 3639, 469, 309, 261, 92, 5133, 1545, 677, 5133, 13, 3639, 288, 5411, 327, 261, 474, 13, 2361, 18, 2260, 12, 92, 5133, 397, 576, 1769, 540, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 22373, 12, 7037, 3827, 21, 16, 15734, 3827, 22, 13, 565, 288, 3639, 509, 619, 21, 273, 3827, 21, 18, 588, 60, 5401, 5621, 3639, 1431, 677, 21, 273, 3827, 21, 18, 588, 61, 5401, 5621, 3639, 509, 619, 22, 273, 3827, 22, 18, 588, 60, 5401, 5621, 3639, 1431, 677, 22, 273, 3827, 22, 18, 588, 61, 5401, 5621, 3639, 368, 15734, 281, 598, 14800, 1139, 5513, 854, 18543, 2588, 8816, 279, 3827, 18, 3639, 309, 14015, 92, 21, 473, 404, 13, 422, 404, 13, 3639, 288, 5411, 677, 21, 1011, 374, 18, 25, 31, 3639, 289, 3639, 309, 14015, 92, 22, 473, 404, 13, 422, 404, 13, 3639, 288, 5411, 677, 22, 1011, 374, 18, 2 ]
public void setOptions(Option[] options) { if (filter != null) removeFilterFromQuery(filter); setFilter(null); // reset the maps so we can can find things later valueToOption.clear(); treeMenu.removeAll(); treeTopOptions = new JMenu(); treeMenu.add(treeTopOptions); // add the nullItem to the top of the list, user selects this to clear // choice. treeTopOptions.add(nullItem); valueToOption.put(nullOption.getValue(), nullOption); addOptions(treeTopOptions, options, ""); allOptions = new HashSet( valueToOption.values() ); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/19dd1e43b38d7b83a4513a906a601601f10de257/TreeFilterWidget.java/clean/src/java/org/ensembl/mart/explorer/TreeFilterWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 542, 1320, 12, 1895, 8526, 2116, 15329, 202, 202, 430, 12, 2188, 5, 33, 2011, 13, 1082, 202, 4479, 1586, 1265, 1138, 12, 2188, 1769, 202, 202, 542, 1586, 12, 2011, 1769, 202, 202, 759, 6208, 451, 25248, 1049, 543, 557, 304, 4169, 4720, 451, 899, 29082, 202, 202, 1132, 774, 1895, 18, 8507, 5621, 202, 202, 3413, 4599, 18, 4479, 1595, 5621, 202, 202, 3413, 3401, 1320, 33, 2704, 46, 4599, 5621, 202, 202, 3413, 4599, 18, 1289, 12, 3413, 3401, 1320, 1769, 202, 202, 759, 1289, 15991, 420, 1180, 3307, 76, 278, 556, 792, 451, 5449, 16, 5577, 13759, 334, 11488, 504, 298, 297, 202, 202, 759, 11569, 18, 202, 202, 3413, 3401, 1320, 18, 1289, 12, 2011, 1180, 1769, 202, 202, 1132, 774, 1895, 18, 458, 12, 2011, 1895, 18, 24805, 9334, 2011, 1895, 1769, 9506, 202, 1289, 1320, 12, 3413, 3401, 1320, 16, 2116, 16, 3660, 1769, 454, 1320, 33, 2704, 13482, 12, 1132, 774, 1895, 18, 2372, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6459, 542, 1320, 12, 1895, 8526, 2116, 15329, 202, 202, 430, 12, 2188, 5, 33, 2011, 13, 1082, 202, 4479, 1586, 1265, 1138, 12, 2188, 1769, 202, 202, 542, 1586, 12, 2011, 1769, 202, 202, 759, 6208, 451, 25248, 1049, 543, 557, 304, 4169, 4720, 451, 899, 29082, 202, 202, 1132, 774, 1895, 18, 8507, 5621, 202, 202, 3413, 4599, 18, 4479, 1595, 5621, 202, 202, 3413, 3401, 1320, 33, 2704, 46, 4599, 5621, 202, 202, 3413, 4599, 18, 1289, 12, 3413, 3401, 1320, 1769, 202, 202, 759, 1289, 15991, 420, 1180, 3307, 76, 278, 556, 792, 451, 5449, 16, 5577, 13759, 334, 11488, 504, 298, 297, 202, 202, 759, 11569, 18, 202, 202, 3413, 3401, 2 ]
public void paintReaction(Reaction reaction, Graphics graphics) { // paint reactants content AtomContainer reactantContainer = new AtomContainer(); Molecule[] reactants = reaction.getReactants(); for (int i=0; i<reactants.length; i++) { reactantContainer.add(reactants[i]); } double[] minmaxReactants = GeometryTools.getMinMax(reactantContainer); paintBoundingBox(minmaxReactants, "Reactants", 10, graphics); paintMolecule(reactantContainer, graphics); // paint products content AtomContainer productContainer = new AtomContainer(); Molecule[] products = reaction.getProducts(); for (int i=0; i<products.length; i++) { productContainer.add(products[i]); } double[] minmaxProducts = GeometryTools.getMinMax(productContainer); paintBoundingBox(minmaxProducts, "Products", 10, graphics); paintMolecule(productContainer, graphics); // paint box around total double[] minmaxReaction = new double[4]; minmaxReaction[0] = Math.min(minmaxReactants[0], minmaxProducts[0]); minmaxReaction[1] = Math.min(minmaxReactants[1], minmaxProducts[1]); minmaxReaction[2] = Math.max(minmaxReactants[2], minmaxProducts[2]); minmaxReaction[3] = Math.max(minmaxReactants[3], minmaxProducts[3]); paintBoundingBox(minmaxReaction, reaction.getID(), 20, graphics); // paint arrow int[] ints = new int[4]; ints[0] = (int)(minmaxReactants[2]) + 15; ints[1] = (int)(minmaxReactants[1] + (minmaxReactants[3]-minmaxReactants[1])/2); ints[2] = (int)(minmaxProducts[0]) - 15; ints[3] = ints[1]; logger.debug("ints: " + ints[0] + ", " + ints[1] + ", " + ints[2] + ", " + ints[3]); int[] screenCoords = getScreenCoordinates(ints); int direction = reaction.getDirection(); if (direction == Reaction.FORWARD) { graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[2], screenCoords[3]); graphics.drawLine(screenCoords[2], screenCoords[3], screenCoords[2]-7, screenCoords[3]-7); graphics.drawLine(screenCoords[2], screenCoords[3], screenCoords[2]-7, screenCoords[3]+7); } else if (direction == Reaction.BACKWARD) { graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[2], screenCoords[3]); graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[0]+7, screenCoords[1]-7); graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[0]+7, screenCoords[1]+7); } else if (direction == Reaction.BIDIRECTIONAL) { graphics.drawLine(screenCoords[0], screenCoords[1] - 3, screenCoords[2], screenCoords[3] - 3); graphics.drawLine(screenCoords[0], screenCoords[1] - 3, screenCoords[0]+7, screenCoords[1] - 3 - 7); graphics.drawLine(screenCoords[0], screenCoords[1] + 3, screenCoords[2], screenCoords[3] + 3); graphics.drawLine(screenCoords[2], screenCoords[3] + 3, screenCoords[2]-7, screenCoords[3] + 3 + 7); } }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/f736ba4e7655efeb99a8433c5e9cadb509eaa4e5/Renderer2D.java/buggy/src/org/openscience/cdk/renderer/Renderer2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 21581, 12, 21581, 12836, 16, 16830, 17313, 13, 288, 3639, 368, 12574, 13417, 4388, 913, 3639, 7149, 2170, 13417, 970, 2170, 273, 394, 7149, 2170, 5621, 3639, 490, 10545, 8526, 13417, 4388, 273, 12836, 18, 588, 23469, 4388, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 17056, 4388, 18, 2469, 31, 277, 27245, 288, 5411, 13417, 970, 2170, 18, 1289, 12, 17056, 4388, 63, 77, 19226, 3639, 289, 3639, 1645, 8526, 30112, 23469, 4388, 273, 8344, 10348, 18, 588, 17454, 12, 17056, 970, 2170, 1769, 3639, 12574, 19020, 12, 1154, 1896, 23469, 4388, 16, 315, 23469, 4388, 3113, 1728, 16, 17313, 1769, 3639, 12574, 29669, 12, 17056, 970, 2170, 16, 17313, 1769, 3639, 368, 12574, 10406, 913, 3639, 7149, 2170, 3017, 2170, 273, 394, 7149, 2170, 5621, 3639, 490, 10545, 8526, 10406, 273, 12836, 18, 588, 13344, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 18736, 18, 2469, 31, 277, 27245, 288, 5411, 3017, 2170, 18, 1289, 12, 18736, 63, 77, 19226, 3639, 289, 3639, 1645, 8526, 30112, 13344, 273, 8344, 10348, 18, 588, 17454, 12, 5896, 2170, 1769, 3639, 12574, 19020, 12, 1154, 1896, 13344, 16, 315, 13344, 3113, 1728, 16, 17313, 1769, 3639, 12574, 29669, 12, 5896, 2170, 16, 17313, 1769, 3639, 368, 12574, 3919, 6740, 2078, 3639, 1645, 8526, 30112, 21581, 273, 394, 1645, 63, 24, 15533, 3639, 30112, 21581, 63, 20, 65, 273, 2361, 18, 1154, 12, 1154, 1896, 23469, 4388, 63, 20, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 21581, 12, 21581, 12836, 16, 16830, 17313, 13, 288, 3639, 368, 12574, 13417, 4388, 913, 3639, 7149, 2170, 13417, 970, 2170, 273, 394, 7149, 2170, 5621, 3639, 490, 10545, 8526, 13417, 4388, 273, 12836, 18, 588, 23469, 4388, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 17056, 4388, 18, 2469, 31, 277, 27245, 288, 5411, 13417, 970, 2170, 18, 1289, 12, 17056, 4388, 63, 77, 19226, 3639, 289, 3639, 1645, 8526, 30112, 23469, 4388, 273, 8344, 10348, 18, 588, 17454, 12, 17056, 970, 2170, 1769, 3639, 12574, 19020, 12, 1154, 1896, 23469, 4388, 16, 315, 23469, 4388, 3113, 1728, 16, 17313, 1769, 3639, 12574, 29669, 12, 17056, 970, 2170, 16, 17313, 1769, 2 ]
int type = T110; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; { match("catch");
try { int type = T110; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; { match("catch");
public void mT110() throws RecognitionException { int type = T110; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:51:8: ( 'catch' ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.lexer.g:51:8: 'catch' { match("catch"); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/7e425814ce563fcc662b266adb2a4dc8e1a95d19/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 21115, 17506, 1435, 1216, 9539, 288, 3639, 509, 618, 273, 399, 17506, 31, 3639, 509, 787, 273, 23577, 1016, 5621, 3639, 509, 980, 273, 9851, 5621, 3639, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 3639, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 10593, 30, 28, 30, 261, 296, 14683, 11, 262, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 10593, 30, 28, 30, 296, 14683, 11, 3639, 288, 3639, 845, 2932, 14683, 8863, 3639, 289, 3639, 309, 261, 1147, 631, 2011, 262, 288, 18356, 12, 723, 16, 1369, 16, 3001, 2555, 16, 4327, 16, 1937, 16, 588, 2156, 1016, 1435, 17, 21, 1769, 97, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21115, 17506, 1435, 1216, 9539, 288, 3639, 509, 618, 273, 399, 17506, 31, 3639, 509, 787, 273, 23577, 1016, 5621, 3639, 509, 980, 273, 9851, 5621, 3639, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 3639, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 6290, 19, 3341, 19, 12215, 19, 18756, 19, 6290, 19, 4288, 19, 5852, 2678, 18, 31731, 18, 75, 30, 10593, 30, 28, 30, 261, 296, 14683, 11, 262, 3639, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 2 ]
super( getLabel( id ) );
super( getLabel( id ), Action.AS_CHECK_BOX );
public MemorySizeAction( MemoryActionSelectionGroup group, MemoryViewer viewer, int id ) { super( getLabel( id ) ); fGroup = group; fMemoryViewer = viewer; fId = id; setChecked( false ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2ba1428cf1e0eef4b534b7759675a885a73ea114/MemorySizeAction.java/clean/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MemorySizeAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9251, 1225, 1803, 12, 9251, 1803, 6233, 1114, 1041, 16, 20982, 9251, 18415, 14157, 16, 20982, 509, 612, 262, 202, 95, 202, 202, 9565, 12, 11237, 12, 612, 262, 11272, 202, 202, 74, 1114, 273, 1041, 31, 202, 202, 74, 6031, 18415, 273, 14157, 31, 202, 202, 74, 548, 273, 612, 31, 202, 202, 542, 11454, 12, 629, 11272, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9251, 1225, 1803, 12, 9251, 1803, 6233, 1114, 1041, 16, 20982, 9251, 18415, 14157, 16, 20982, 509, 612, 262, 202, 95, 202, 202, 9565, 12, 11237, 12, 612, 262, 11272, 202, 202, 74, 1114, 273, 1041, 31, 202, 202, 74, 6031, 18415, 273, 14157, 31, 202, 202, 74, 548, 273, 612, 31, 202, 202, 542, 11454, 12, 629, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Member[] members = schemaReader.getLevelMembers(level, false);
Member[] members = schemaReader.getLevelMembers(level, true);
public static Member[][] getAllMembers(SchemaReader schemaReader, Hierarchy hierarchy) { long start = System.currentTimeMillis(); try { List<Member[]> list = new ArrayList<Member[]>(500); // Getting the members by Level is the fastest way that I could // find for getting all of a hierarchy's members. Level[] levels = hierarchy.getLevels(); for (Level level : levels) { Member[] members = schemaReader.getLevelMembers(level, false); if (members != null) { list.add(members); } } return list.toArray(new Member[list.size()][]); } finally { if (LOGGER.isDebugEnabled()) { long end = System.currentTimeMillis(); LOGGER.debug("RolapMember.getAllMembers: time=" +(end-start)); } } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/99cbcd315efe6bb8d9c24de544b692c9a73174da/RolapMember.java/clean/src/main/mondrian/rolap/RolapMember.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8596, 63, 6362, 65, 5514, 6918, 12, 3078, 2514, 1963, 2514, 16, 2398, 670, 6000, 9360, 13, 288, 3639, 1525, 787, 273, 2332, 18, 2972, 28512, 5621, 3639, 775, 288, 5411, 987, 32, 4419, 8526, 34, 666, 273, 394, 2407, 32, 4419, 8526, 34, 12, 12483, 1769, 5411, 368, 26602, 326, 4833, 635, 4557, 353, 326, 4797, 395, 4031, 716, 467, 3377, 5411, 368, 1104, 364, 8742, 777, 434, 279, 9360, 1807, 4833, 18, 5411, 4557, 8526, 7575, 273, 9360, 18, 588, 12240, 5621, 5411, 364, 261, 2355, 1801, 294, 7575, 13, 288, 7734, 8596, 8526, 4833, 273, 1963, 2514, 18, 588, 2355, 6918, 12, 2815, 16, 638, 1769, 7734, 309, 261, 7640, 480, 446, 13, 288, 10792, 666, 18, 1289, 12, 7640, 1769, 7734, 289, 5411, 289, 5411, 327, 666, 18, 31447, 12, 2704, 8596, 63, 1098, 18, 1467, 1435, 6362, 19226, 3639, 289, 3095, 288, 5411, 309, 261, 8757, 18, 291, 2829, 1526, 10756, 288, 7734, 1525, 679, 273, 2332, 18, 2972, 28512, 5621, 7734, 4145, 18, 4148, 2932, 4984, 438, 4419, 18, 588, 1595, 6918, 30, 813, 1546, 397, 12, 409, 17, 1937, 10019, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8596, 63, 6362, 65, 5514, 6918, 12, 3078, 2514, 1963, 2514, 16, 2398, 670, 6000, 9360, 13, 288, 3639, 1525, 787, 273, 2332, 18, 2972, 28512, 5621, 3639, 775, 288, 5411, 987, 32, 4419, 8526, 34, 666, 273, 394, 2407, 32, 4419, 8526, 34, 12, 12483, 1769, 5411, 368, 26602, 326, 4833, 635, 4557, 353, 326, 4797, 395, 4031, 716, 467, 3377, 5411, 368, 1104, 364, 8742, 777, 434, 279, 9360, 1807, 4833, 18, 5411, 4557, 8526, 7575, 273, 9360, 18, 588, 12240, 5621, 5411, 364, 261, 2355, 1801, 294, 7575, 13, 288, 7734, 8596, 8526, 4833, 273, 1963, 2514, 18, 588, 2355, 6918, 12, 2815, 16, 638, 1769, 7734, 309, 261, 7640, 480, 446, 13, 2 ]
reservedWords.add(s.toUpperCase()); }
reservedWords.add(s.toUpperCase()); }
public void defineReserved(String s) { reservedWords.add(s.toUpperCase()); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 10435, 12, 780, 272, 13, 288, 202, 202, 18898, 7363, 18, 1289, 12, 87, 18, 869, 8915, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 10435, 12, 780, 272, 13, 288, 202, 202, 18898, 7363, 18, 1289, 12, 87, 18, 869, 8915, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case GSSAPI: return "GSSAPRESOLVERASSIGNED";
case GSSAPI: return "GSSAPI";
modeString() { switch (mode) { case SERVERASSIGNED: return "SERVERASSIGNED"; case DIFFIEHELLMAN: return "DIFFIEHELLMAN"; case GSSAPI: return "GSSAPRESOLVERASSIGNED"; case RESOLVERASSIGNED: return "RESOLVERASSIGNED"; case DELETE: return "DELETE"; default: return Integer.toString(mode); }}
4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/0f145ab473e612a4b6bad9294e5814e803e58a43/TKEYRecord.java/buggy/org/xbill/DNS/TKEYRecord.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1965, 780, 1435, 288, 202, 9610, 261, 3188, 13, 288, 202, 202, 3593, 15061, 23289, 2056, 30, 202, 2463, 315, 4370, 23289, 2056, 14432, 202, 202, 3593, 3690, 42, 1653, 41, 20264, 48, 9560, 30, 202, 2463, 315, 2565, 42, 1653, 41, 20264, 48, 9560, 14432, 202, 202, 3593, 25446, 2557, 30, 202, 202, 2463, 315, 43, 1260, 2203, 17978, 2204, 23289, 2056, 14432, 202, 202, 3593, 12915, 1741, 2204, 23289, 2056, 30, 202, 2463, 315, 17978, 2204, 23289, 2056, 14432, 202, 202, 3593, 8568, 30, 202, 202, 2463, 315, 6460, 14432, 202, 202, 1886, 30, 202, 202, 2463, 2144, 18, 10492, 12, 3188, 1769, 202, 9090, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1965, 780, 1435, 288, 202, 9610, 261, 3188, 13, 288, 202, 202, 3593, 15061, 23289, 2056, 30, 202, 2463, 315, 4370, 23289, 2056, 14432, 202, 202, 3593, 3690, 42, 1653, 41, 20264, 48, 9560, 30, 202, 2463, 315, 2565, 42, 1653, 41, 20264, 48, 9560, 14432, 202, 202, 3593, 25446, 2557, 30, 202, 202, 2463, 315, 43, 1260, 2203, 17978, 2204, 23289, 2056, 14432, 202, 202, 3593, 12915, 1741, 2204, 23289, 2056, 30, 202, 2463, 315, 17978, 2204, 23289, 2056, 14432, 202, 202, 3593, 8568, 30, 202, 202, 2463, 315, 6460, 14432, 202, 202, 1886, 30, 202, 202, 2463, 2144, 18, 10492, 12, 3188, 1769, 202, 9090, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
addToHistMeth.invoke(null,new Object[]{line.toString()});
readline.getHistory().addToHistory(line.toString());
public static IRubyObject s_push(IRubyObject recv, IRubyObject line) throws Exception { addToHistMeth.invoke(null,new Object[]{line.toString()}); return recv.getRuntime().getNil(); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/070b77f707d6fe6c85ec1c02b29ea35cd84e9dfc/Readline.java/clean/src/org/jruby/ext/Readline.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 272, 67, 6206, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 980, 13, 1216, 1185, 288, 3639, 12023, 18, 588, 5623, 7675, 1289, 774, 5623, 12, 1369, 18, 10492, 10663, 3639, 327, 10665, 18, 588, 5576, 7675, 588, 12616, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15908, 10340, 921, 272, 67, 6206, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 980, 13, 1216, 1185, 288, 3639, 12023, 18, 588, 5623, 7675, 1289, 774, 5623, 12, 1369, 18, 10492, 10663, 3639, 327, 10665, 18, 588, 5576, 7675, 588, 12616, 5621, 565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.UnderlyingEndValue getUnderlyingEndValue() throws FieldNotFound { org.quickfix.field.UnderlyingEndValue value = new org.quickfix.field.UnderlyingEndValue();
public quickfix.field.UnderlyingEndValue getUnderlyingEndValue() throws FieldNotFound { quickfix.field.UnderlyingEndValue value = new quickfix.field.UnderlyingEndValue();
public org.quickfix.field.UnderlyingEndValue getUnderlyingEndValue() throws FieldNotFound { org.quickfix.field.UnderlyingEndValue value = new org.quickfix.field.UnderlyingEndValue(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix44/NewOrderMultileg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1638, 620, 10833, 765, 6291, 1638, 620, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1638, 620, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1638, 620, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1638, 620, 10833, 765, 6291, 1638, 620, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1638, 620, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1638, 620, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
currentChar += getCharacterCount(i, i);
public int getGlyphIndex(int charIndex) { int currentChar = aci.getBeginIndex(); int numGlyphs = getGlyphCount(); for (int i = 0; i < numGlyphs; i++) { aci.setIndex(currentChar); int glyphCharIndex = ((Integer)aci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.CHAR_INDEX)).intValue(); if (charIndex == glyphCharIndex) { return i; } currentChar += getCharacterCount(i, i); } return -1; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/ddd94bfd1f1362023190785f2a915d8536874066/TextLayoutAdapter.java/clean/sources/org/apache/batik/gvt/text/TextLayoutAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 7162, 6451, 1016, 12, 474, 1149, 1016, 13, 288, 3639, 509, 29445, 273, 1721, 77, 18, 588, 8149, 1016, 5621, 3639, 509, 818, 25399, 273, 7162, 6451, 1380, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 25399, 31, 277, 27245, 288, 5411, 1721, 77, 18, 542, 1016, 12, 2972, 2156, 1769, 5411, 509, 9440, 2156, 1016, 273, 14015, 4522, 13, 1077, 77, 18, 588, 1499, 12, 7734, 611, 58, 56, 861, 11050, 7069, 3198, 18, 1528, 1499, 18, 7305, 67, 9199, 13, 2934, 474, 620, 5621, 5411, 309, 261, 3001, 1016, 422, 9440, 2156, 1016, 13, 288, 7734, 327, 277, 31, 5411, 289, 10402, 289, 3639, 327, 300, 21, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 7162, 6451, 1016, 12, 474, 1149, 1016, 13, 288, 3639, 509, 29445, 273, 1721, 77, 18, 588, 8149, 1016, 5621, 3639, 509, 818, 25399, 273, 7162, 6451, 1380, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 25399, 31, 277, 27245, 288, 5411, 1721, 77, 18, 542, 1016, 12, 2972, 2156, 1769, 5411, 509, 9440, 2156, 1016, 273, 14015, 4522, 13, 1077, 77, 18, 588, 1499, 12, 7734, 611, 58, 56, 861, 11050, 7069, 3198, 18, 1528, 1499, 18, 7305, 67, 9199, 13, 2934, 474, 620, 5621, 5411, 309, 261, 3001, 1016, 422, 9440, 2156, 1016, 13, 288, 7734, 327, 277, 31, 5411, 289, 10402, 289, 3639, 327, 300, 21, 31, 565, 289, 2 ]
public static int getTUV(Collection<Unit> units, PlayerID player, IntegerMap<UnitType> costs, GameData data)
public static int getTUV(Collection units, IntegerMap<UnitType> costs)
public static int getTUV(Collection<Unit> units, PlayerID player, IntegerMap<UnitType> costs, GameData data) { Collection playerUnits = Match.getMatches(units, Matches.alliedUnit(player, data)); return getTUV(playerUnits, costs); }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/0ed29c870dc90c69932e4cb9e0e260ad7b79f8a3/BattleCalculator.java/buggy/triplea/src/games/strategy/triplea/delegate/BattleCalculator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 3181, 20147, 12, 2532, 4971, 16, 2144, 863, 32, 2802, 559, 34, 22793, 13, 565, 288, 3639, 2200, 7291, 7537, 273, 4639, 18, 588, 6869, 12, 7705, 16, 21608, 18, 454, 2092, 2802, 12, 14872, 16, 501, 10019, 3639, 327, 3181, 20147, 12, 14872, 7537, 16, 22793, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 3181, 20147, 12, 2532, 4971, 16, 2144, 863, 32, 2802, 559, 34, 22793, 13, 565, 288, 3639, 2200, 7291, 7537, 273, 4639, 18, 588, 6869, 12, 7705, 16, 21608, 18, 454, 2092, 2802, 12, 14872, 16, 501, 10019, 3639, 327, 3181, 20147, 12, 14872, 7537, 16, 22793, 1769, 565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
m_lastError = true;
private void handleLine(String line) throws ProgramIsDeadException { line = line.trim(); if (line.startsWith("#?")) { printOutLine("test", line); handleTest(line.substring(2).trim()); m_lastFullResponse = null; return; } if (line.startsWith("#>") && m_fileComments) { printOutLine(null, line); if (m_lastFullResponse != null) handleLastResponse(); printDataFile(line.substring(2).trim()); m_lastFullResponse = null; return; } if (m_lastFullResponse != null) { handleLastResponse(); m_lastFullResponse = null; } if (line.equals("")) printOutLine(null, line); else if (line.startsWith("#")) printOutLine("comment", line); else { line = line.replaceAll("\\t", " "); m_lastCommandId = getId(line); if (m_lastCommandId < 0) m_lastCommand = line; else { int index = line.indexOf(" "); m_lastCommand = line.substring(index + 1); m_lastId = m_lastCommandId; } printOutLine(m_lastCommandId >= 0 ? "test" : "command", line, m_lastCommandId); checkLastSgf(line); m_lastError = false; assert(m_lastFullResponse == null); try { m_lastResponse = m_gtp.sendCommand(line); } catch (GtpError e) { if (m_gtp.isProgramDead()) throw new ProgramIsDeadException(); m_lastError = true; } m_lastFullResponse = m_gtp.getFullResponse(); } }
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/3b90f7fa7ef354b34530849d5dc010a3c1271a47/GtpRegress.java/buggy/src/gtpregress/GtpRegress.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 1670, 12, 780, 980, 13, 3639, 1216, 13586, 2520, 11852, 503, 565, 288, 3639, 980, 273, 980, 18, 5290, 5621, 3639, 309, 261, 1369, 18, 17514, 1190, 2932, 7, 7225, 3719, 3639, 288, 5411, 1172, 1182, 1670, 2932, 3813, 3113, 980, 1769, 5411, 1640, 4709, 12, 1369, 18, 28023, 12, 22, 2934, 5290, 10663, 5411, 312, 67, 2722, 5080, 1064, 273, 446, 31, 5411, 327, 31, 3639, 289, 3639, 309, 261, 1369, 18, 17514, 1190, 2932, 7, 2984, 13, 597, 312, 67, 768, 9051, 13, 3639, 288, 5411, 1172, 1182, 1670, 12, 2011, 16, 980, 1769, 5411, 309, 261, 81, 67, 2722, 5080, 1064, 480, 446, 13, 7734, 1640, 3024, 1064, 5621, 5411, 1172, 751, 812, 12, 1369, 18, 28023, 12, 22, 2934, 5290, 10663, 5411, 312, 67, 2722, 5080, 1064, 273, 446, 31, 5411, 327, 31, 3639, 289, 3639, 309, 261, 81, 67, 2722, 5080, 1064, 480, 446, 13, 3639, 288, 5411, 1640, 3024, 1064, 5621, 5411, 312, 67, 2722, 5080, 1064, 273, 446, 31, 3639, 289, 3639, 309, 261, 1369, 18, 14963, 2932, 6, 3719, 5411, 1172, 1182, 1670, 12, 2011, 16, 980, 1769, 3639, 469, 309, 261, 1369, 18, 17514, 1190, 2932, 17133, 3719, 5411, 1172, 1182, 1670, 2932, 3469, 3113, 980, 1769, 3639, 469, 3639, 288, 5411, 980, 273, 980, 18, 2079, 1595, 2932, 1695, 88, 3113, 315, 315, 1769, 5411, 312, 67, 2722, 2189, 548, 273, 2634, 12, 1369, 1769, 5411, 309, 261, 81, 67, 2722, 2189, 548, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1670, 12, 780, 980, 13, 3639, 1216, 13586, 2520, 11852, 503, 565, 288, 3639, 980, 273, 980, 18, 5290, 5621, 3639, 309, 261, 1369, 18, 17514, 1190, 2932, 7, 7225, 3719, 3639, 288, 5411, 1172, 1182, 1670, 2932, 3813, 3113, 980, 1769, 5411, 1640, 4709, 12, 1369, 18, 28023, 12, 22, 2934, 5290, 10663, 5411, 312, 67, 2722, 5080, 1064, 273, 446, 31, 5411, 327, 31, 3639, 289, 3639, 309, 261, 1369, 18, 17514, 1190, 2932, 7, 2984, 13, 597, 312, 67, 768, 9051, 13, 3639, 288, 5411, 1172, 1182, 1670, 12, 2011, 16, 980, 1769, 5411, 309, 261, 81, 67, 2722, 5080, 1064, 480, 446, 13, 7734, 1640, 3024, 1064, 5621, 5411, 1172, 751, 2 ]
getOKAction().putValue(Action.MNEMONIC_KEY,new Integer('O'));
getOKAction().putValue(Action.MNEMONIC_KEY, new Integer('O'));
SelectTemplateDialog(Project project, boolean showHistory, boolean replace) { super(project,false); this.project = project; this.showHistory = showHistory; this.replace = replace; existingTemplatesComponent = ExistingTemplatesComponent.getInstance(this.project); setTitle(SSRBundle.message(this.showHistory ? "used.templates.history.dialog.title" :"existing.templates.dialog.title")); getOKAction().putValue(Action.MNEMONIC_KEY,new Integer('O')); init(); if (this.showHistory) { final int selection = existingTemplatesComponent.getHistoryList().getSelectedIndex(); if (selection!=-1) { setPatternFromList(selection); } } else { final TreePath selection = existingTemplatesComponent.getPatternTree().getSelectionPath(); if (selection!=null) { setPatternFromNode((DefaultMutableTreeNode)selection.getLastPathComponent()); } } setupListeners(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/89cd11decad19ffa2b802c17af5bee9a564095a0/SelectTemplateDialog.java/buggy/plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/ui/SelectTemplateDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 6766, 2283, 6353, 12, 4109, 1984, 16, 1250, 2405, 5623, 16, 1250, 1453, 13, 288, 565, 2240, 12, 4406, 16, 5743, 1769, 565, 333, 18, 4406, 273, 1984, 31, 565, 333, 18, 4500, 5623, 273, 2405, 5623, 31, 565, 333, 18, 2079, 273, 1453, 31, 565, 2062, 8218, 1841, 273, 28257, 8218, 1841, 18, 588, 1442, 12, 2211, 18, 4406, 1769, 565, 14109, 12, 1260, 54, 3405, 18, 2150, 12, 2211, 18, 4500, 5623, 692, 315, 3668, 18, 8502, 18, 8189, 18, 12730, 18, 2649, 6, 20514, 11711, 18, 8502, 18, 12730, 18, 2649, 7923, 1769, 565, 336, 3141, 1803, 7675, 458, 620, 12, 1803, 18, 49, 50, 3375, 673, 2871, 67, 3297, 16, 394, 2144, 2668, 51, 6134, 1769, 565, 1208, 5621, 565, 309, 261, 2211, 18, 4500, 5623, 13, 288, 1377, 727, 509, 4421, 273, 2062, 8218, 1841, 18, 588, 5623, 682, 7675, 588, 7416, 1016, 5621, 1377, 309, 261, 10705, 5, 29711, 21, 13, 288, 3639, 444, 3234, 1265, 682, 12, 10705, 1769, 1377, 289, 565, 289, 469, 288, 1377, 727, 4902, 743, 4421, 273, 2062, 8218, 1841, 18, 588, 3234, 2471, 7675, 588, 6233, 743, 5621, 1377, 309, 261, 10705, 5, 33, 2011, 13, 288, 3639, 444, 3234, 28570, 12443, 1868, 19536, 12513, 13, 10705, 18, 588, 3024, 743, 1841, 10663, 1377, 289, 565, 289, 565, 3875, 5583, 5621, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 6766, 2283, 6353, 12, 4109, 1984, 16, 1250, 2405, 5623, 16, 1250, 1453, 13, 288, 565, 2240, 12, 4406, 16, 5743, 1769, 565, 333, 18, 4406, 273, 1984, 31, 565, 333, 18, 4500, 5623, 273, 2405, 5623, 31, 565, 333, 18, 2079, 273, 1453, 31, 565, 2062, 8218, 1841, 273, 28257, 8218, 1841, 18, 588, 1442, 12, 2211, 18, 4406, 1769, 565, 14109, 12, 1260, 54, 3405, 18, 2150, 12, 2211, 18, 4500, 5623, 692, 315, 3668, 18, 8502, 18, 8189, 18, 12730, 18, 2649, 6, 20514, 11711, 18, 8502, 18, 12730, 18, 2649, 7923, 1769, 565, 336, 3141, 1803, 7675, 458, 620, 12, 1803, 18, 49, 50, 3375, 673, 2871, 67, 3297, 16, 394, 2144, 2668, 51, 2 ]
pr = OPT_IRTools.R(phys.getESI());
pr = new OPT_RegisterOperand(phys.getESI(), VM_TypeReference.Int);
static boolean generateMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth) throws OPT_MagicNotImplementedException { VM_Atom methodName = meth.getName(); OPT_PhysicalRegisterSet phys = gc.temps.getPhysicalRegisterSet(); if (methodName == VM_MagicNames.getESIAsProcessor) { OPT_RegisterOperand rop = gc.temps.makePROp(); bc2ir.markGuardlessNonNull(rop); bc2ir.push(rop); } else if (methodName == VM_MagicNames.setESIAsProcessor) { OPT_Operand val = bc2ir.popRef(); if (val instanceof OPT_RegisterOperand) { bc2ir.appendInstruction(Move.create(REF_MOVE, gc.temps.makePROp(), val)); } else { String msg = " Unexpected operand VM_Magic.setProcessorRegister"; throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } else if (methodName == VM_MagicNames.getFramePointer) { gc.allocFrame = true; OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); VM_Field f = VM_Entrypoints.framePointerField; OPT_RegisterOperand pr = null; if (VM.dedicatedESI) { pr = OPT_IRTools.R(phys.getESI()); } else { pr = gc.temps.makeTemp(VM_TypeReference.VM_Processor); bc2ir.appendInstruction(Nullary.create(GET_CURRENT_PROCESSOR,pr)); } bc2ir.appendInstruction(GetField.create(GETFIELD, val, pr.copy(), new OPT_AddressConstantOperand(f.getOffset()), new OPT_LocationOperand(f), new OPT_TrueGuardOperand())); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getJTOC || methodName == VM_MagicNames.getTocPointer) { VM_TypeReference t = (methodName == VM_MagicNames.getJTOC ? VM_TypeReference.IntArray : VM_TypeReference.Address); OPT_RegisterOperand val = gc.temps.makeTemp(t); if (gc.options.FIXED_JTOC) { OPT_AddressConstantOperand addr = new OPT_AddressConstantOperand(VM_Magic.getTocPointer()); bc2ir.appendInstruction(Move.create(REF_MOVE, val, addr)); } else { OPT_RegisterOperand pr = null; if (VM.dedicatedESI) { pr = OPT_IRTools.R(phys.getESI()); } else { pr = gc.temps.makeTemp(VM_TypeReference.VM_Processor); bc2ir.appendInstruction(Nullary.create(GET_CURRENT_PROCESSOR,pr)); } bc2ir.appendInstruction(Unary.create(GET_JTOC, val, pr.copy())); } bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.isync) { // nothing required on Intel } else if (methodName == VM_MagicNames.sync) { // nothing required on Intel } else if (methodName == VM_MagicNames.getCallerFramePointer) { OPT_Operand fp = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCallerFramePointer) { OPT_Operand val = bc2ir.popAddress(); OPT_Operand fp = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_FRAME_POINTER_OFFSET), null)); } else if (methodName == VM_MagicNames.getCompiledMethodID) { OPT_Operand fp = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, fp, new OPT_IntConstantOperand(STACKFRAME_METHOD_ID_OFFSET), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCompiledMethodID) { OPT_Operand val = bc2ir.popInt(); OPT_Operand fp = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(INT_STORE, val, fp, new OPT_IntConstantOperand(STACKFRAME_METHOD_ID_OFFSET), null)); } else if (methodName == VM_MagicNames.getReturnAddressLocation) { OPT_Operand fp = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Binary.create(REF_ADD, val, fp, new OPT_IntConstantOperand(STACKFRAME_RETURN_ADDRESS_OFFSET))); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.roundToZero) { bc2ir.appendInstruction(Empty.create(ROUND_TO_ZERO)); } else if (methodName == VM_MagicNames.clearFloatingPointState) { bc2ir.appendInstruction(Empty.create(CLEAR_FLOATING_POINT_STATE)); } else { // Distinguish between magics that we know we don't implement // (and never plan to implement) and those (usually new ones) // that we want to be warned that we don't implement. String msg = " Magic method not implemented: " + meth; if (methodName == VM_MagicNames.returnToNewStack) { throw OPT_MagicNotImplementedException.EXPECTED(msg); } else { return false; // throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } return true; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/2c9d33f59b8f04d9f845caaa59a98fd196ed0f01/OPT_GenerateMachineSpecificMagic.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/OPT_GenerateMachineSpecificMagic.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1250, 2103, 19289, 12, 15620, 67, 16283, 22, 7937, 6533, 22, 481, 16, 27573, 16456, 67, 13842, 1042, 8859, 16, 27573, 8251, 67, 1305, 2404, 7917, 13, 377, 1216, 16456, 67, 19289, 1248, 8644, 503, 288, 565, 8251, 67, 3641, 4918, 273, 7917, 18, 17994, 5621, 565, 16456, 67, 18136, 3996, 694, 24758, 273, 8859, 18, 874, 1121, 18, 588, 18136, 3996, 694, 5621, 565, 309, 261, 2039, 461, 422, 8251, 67, 19289, 1557, 18, 588, 41, 2320, 1463, 5164, 13, 288, 1377, 16456, 67, 3996, 10265, 721, 84, 273, 8859, 18, 874, 1121, 18, 6540, 3373, 84, 5621, 1377, 6533, 22, 481, 18, 3355, 16709, 2656, 8921, 12, 1764, 1769, 1377, 6533, 22, 481, 18, 6206, 12, 1764, 1769, 565, 289, 469, 309, 261, 2039, 461, 422, 8251, 67, 19289, 1557, 18, 542, 41, 2320, 1463, 5164, 13, 288, 1377, 16456, 67, 10265, 1244, 273, 6533, 22, 481, 18, 5120, 1957, 5621, 1377, 309, 261, 1125, 1276, 16456, 67, 3996, 10265, 13, 288, 3639, 6533, 22, 481, 18, 6923, 11983, 12, 7607, 18, 2640, 12, 10771, 67, 16537, 16, 4766, 2398, 8859, 18, 874, 1121, 18, 6540, 3373, 84, 9334, 4766, 2398, 1244, 10019, 1377, 289, 469, 288, 3639, 514, 1234, 273, 315, 9649, 9886, 8251, 67, 19289, 18, 542, 5164, 3996, 14432, 3639, 604, 16456, 67, 19289, 1248, 8644, 503, 18, 2124, 27409, 12, 3576, 1769, 1377, 289, 565, 289, 469, 309, 261, 2039, 461, 422, 8251, 67, 19289, 1557, 18, 588, 3219, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1250, 2103, 19289, 12, 15620, 67, 16283, 22, 7937, 6533, 22, 481, 16, 27573, 16456, 67, 13842, 1042, 8859, 16, 27573, 8251, 67, 1305, 2404, 7917, 13, 377, 1216, 16456, 67, 19289, 1248, 8644, 503, 288, 565, 8251, 67, 3641, 4918, 273, 7917, 18, 17994, 5621, 565, 16456, 67, 18136, 3996, 694, 24758, 273, 8859, 18, 874, 1121, 18, 588, 18136, 3996, 694, 5621, 565, 309, 261, 2039, 461, 422, 8251, 67, 19289, 1557, 18, 588, 41, 2320, 1463, 5164, 13, 288, 1377, 16456, 67, 3996, 10265, 721, 84, 273, 8859, 18, 874, 1121, 18, 6540, 3373, 84, 5621, 1377, 6533, 22, 481, 18, 3355, 16709, 2656, 8921, 12, 1764, 1769, 1377, 6533, 22, 481, 18, 6206, 2 ]
return SEG_QUADTO; } throw new NoSuchElementException("quad iterator out of bounds");
return result;
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current < 2; } public void next() { current++; } public int currentSegment(float[] coords) { if (current == 0) { coords[0] = (float) getX1(); coords[1] = (float) getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = (float) getCtrlX(); coords[1] = (float) getCtrlY(); coords[2] = (float) getX2(); coords[3] = (float) getY2(); if (at != null) at.transform(coords, 0, coords, 0, 2); return SEG_QUADTO; } throw new NoSuchElementException("quad iterator out of bounds"); } public int currentSegment(double[] coords) { if (current == 0) { coords[0] = getX1(); coords[1] = getY1(); if (at != null) at.transform(coords, 0, coords, 0, 1); return SEG_MOVETO; } if (current == 1) { coords[0] = getCtrlX(); coords[1] = getCtrlY(); coords[2] = getX2(); coords[3] = getY2(); if (at != null) at.transform(coords, 0, coords, 0, 2); return SEG_QUADTO; } throw new NoSuchElementException("quad iterator out of bounds"); } }; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/QuadCurve2D.java/clean/core/src/classpath/java/java/awt/geom/QuadCurve2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2666, 3198, 4339, 3198, 12, 6385, 23906, 558, 4059, 622, 13, 288, 202, 202, 2463, 394, 2666, 3198, 1435, 288, 1082, 202, 26873, 6562, 7799, 18, 1195, 1082, 202, 1152, 509, 783, 31, 1082, 202, 482, 509, 13876, 728, 310, 2175, 1435, 288, 9506, 202, 2463, 24482, 67, 3993, 67, 24968, 31, 1082, 202, 97, 1082, 202, 482, 1250, 28874, 1435, 288, 9506, 202, 2463, 783, 411, 576, 31, 1082, 202, 97, 1082, 202, 482, 918, 1024, 1435, 288, 9506, 202, 2972, 9904, 31, 1082, 202, 97, 1082, 202, 482, 509, 783, 4131, 12, 5659, 8526, 6074, 13, 288, 9506, 202, 430, 261, 2972, 422, 374, 13, 288, 6862, 202, 9076, 63, 20, 65, 273, 261, 5659, 13, 6538, 21, 5621, 6862, 202, 9076, 63, 21, 65, 273, 261, 5659, 13, 10448, 21, 5621, 6862, 202, 430, 261, 270, 480, 446, 13, 25083, 202, 270, 18, 6547, 12, 9076, 16, 374, 16, 6074, 16, 374, 16, 404, 1769, 6862, 202, 2463, 26167, 67, 5980, 58, 1584, 51, 31, 9506, 202, 97, 9506, 202, 430, 261, 2972, 422, 404, 13, 288, 6862, 202, 9076, 63, 20, 65, 273, 261, 5659, 13, 1927, 5170, 60, 5621, 6862, 202, 9076, 63, 21, 65, 273, 261, 5659, 13, 1927, 5170, 61, 5621, 6862, 202, 9076, 63, 22, 65, 273, 261, 5659, 13, 6538, 22, 5621, 6862, 202, 9076, 63, 23, 65, 273, 261, 5659, 13, 10448, 22, 5621, 6862, 202, 430, 261, 270, 480, 446, 13, 25083, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2666, 3198, 4339, 3198, 12, 6385, 23906, 558, 4059, 622, 13, 288, 202, 202, 2463, 394, 2666, 3198, 1435, 288, 1082, 202, 26873, 6562, 7799, 18, 1195, 1082, 202, 1152, 509, 783, 31, 1082, 202, 482, 509, 13876, 728, 310, 2175, 1435, 288, 9506, 202, 2463, 24482, 67, 3993, 67, 24968, 31, 1082, 202, 97, 1082, 202, 482, 1250, 28874, 1435, 288, 9506, 202, 2463, 783, 411, 576, 31, 1082, 202, 97, 1082, 202, 482, 918, 1024, 1435, 288, 9506, 202, 2972, 9904, 31, 1082, 202, 97, 1082, 202, 482, 509, 783, 4131, 12, 5659, 8526, 6074, 13, 288, 9506, 202, 430, 261, 2972, 422, 374, 13, 288, 6862, 202, 9076, 63, 20, 65, 273, 261, 2 ]
if (treeModel == null || file != null)
if (treeModel == null || file == null)
private DefaultMutableTreeNode getNode(File file) { if (treeModel == null || file != null) return null; return treeModel.getNode(file); }
8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/acd297fb746c24b2f9a96d2fde0c645423f6f575/DirectoryTree.java/clean/j/src/org/armedbear/j/DirectoryTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2989, 19536, 12513, 5973, 12, 812, 585, 13, 565, 288, 3639, 309, 261, 3413, 1488, 422, 446, 747, 585, 422, 446, 13, 5411, 327, 446, 31, 3639, 327, 2151, 1488, 18, 588, 907, 12, 768, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 2989, 19536, 12513, 5973, 12, 812, 585, 13, 565, 288, 3639, 309, 261, 3413, 1488, 422, 446, 747, 585, 422, 446, 13, 5411, 327, 446, 31, 3639, 327, 2151, 1488, 18, 588, 907, 12, 768, 1769, 565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private boolean contextSelectorKeyPressed(VerifyEvent e) { char key= e.character; if (key == 0) { int change; int visibleRows= (fContextSelectorTable.getSize().y / fContextSelectorTable.getItemHeight()) - 1; int selection= fContextSelectorTable.getSelectionIndex(); switch (e.keyCode) { case SWT.ARROW_UP: change= (fContextSelectorTable.getSelectionIndex() > 0 ? -1 : 0); break; case SWT.ARROW_DOWN: change= (fContextSelectorTable.getSelectionIndex() < fContextSelectorTable.getItemCount() - 1 ? 1 : 0); break; case SWT.PAGE_DOWN : change= visibleRows; if (selection + change >= fContextSelectorTable.getItemCount()) change= fContextSelectorTable.getItemCount() - selection; break; case SWT.PAGE_UP : change= -visibleRows; if (selection + change < 0) change= -selection; break; case SWT.HOME : change= -selection; break; case SWT.END : change= fContextSelectorTable.getItemCount() - selection; break; case SWT.CTRL: case SWT.SHIFT: return true; default: hideContextSelector(); return true; } fContextSelectorTable.setSelection(selection + change); fContextSelectorTable.showSelection(); e.doit= false; return false; } else if (key == 0x1B) { // Terminate on Esc hideContextSelector(); } return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e3525decbb08952546a48571c4b3f6f6fb530f8a/ContextInformationPopup.java/clean/bundles/org.eclipse.ui/Eclipse JFace Text/org/eclipse/jface/text/contentassist/ContextInformationPopup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 819, 4320, 653, 24624, 12, 8097, 1133, 425, 13, 288, 202, 202, 3001, 498, 33, 425, 18, 11560, 31, 202, 202, 430, 261, 856, 422, 374, 13, 288, 25083, 202, 474, 2549, 31, 1082, 202, 474, 6021, 4300, 33, 261, 74, 1042, 4320, 1388, 18, 588, 1225, 7675, 93, 342, 284, 1042, 4320, 1388, 18, 588, 1180, 2686, 10756, 300, 404, 31, 1082, 202, 474, 4421, 33, 284, 1042, 4320, 1388, 18, 588, 6233, 1016, 5621, 1082, 202, 9610, 261, 73, 18, 856, 1085, 13, 288, 6862, 9506, 202, 3593, 348, 8588, 18, 985, 11226, 67, 3079, 30, 6862, 202, 3427, 33, 261, 74, 1042, 4320, 1388, 18, 588, 6233, 1016, 1435, 405, 374, 692, 300, 21, 294, 374, 1769, 6862, 202, 8820, 31, 6862, 9506, 202, 3593, 348, 8588, 18, 985, 11226, 67, 12711, 30, 6862, 202, 3427, 33, 261, 74, 1042, 4320, 1388, 18, 588, 6233, 1016, 1435, 411, 284, 1042, 4320, 1388, 18, 588, 30687, 1435, 300, 404, 692, 404, 294, 374, 1769, 6862, 202, 8820, 31, 6862, 6862, 202, 3593, 348, 8588, 18, 11219, 67, 12711, 294, 6862, 202, 3427, 33, 6021, 4300, 31, 6862, 202, 430, 261, 10705, 397, 2549, 1545, 284, 1042, 4320, 1388, 18, 588, 30687, 10756, 25083, 202, 3427, 33, 284, 1042, 4320, 1388, 18, 588, 30687, 1435, 300, 4421, 31, 6862, 202, 8820, 31, 6862, 6862, 202, 3593, 348, 8588, 18, 11219, 67, 3079, 294, 6862, 202, 3427, 33, 300, 8613, 4300, 31, 6862, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 819, 4320, 653, 24624, 12, 8097, 1133, 425, 13, 288, 202, 202, 3001, 498, 33, 425, 18, 11560, 31, 202, 202, 430, 261, 856, 422, 374, 13, 288, 25083, 202, 474, 2549, 31, 1082, 202, 474, 6021, 4300, 33, 261, 74, 1042, 4320, 1388, 18, 588, 1225, 7675, 93, 342, 284, 1042, 4320, 1388, 18, 588, 1180, 2686, 10756, 300, 404, 31, 1082, 202, 474, 4421, 33, 284, 1042, 4320, 1388, 18, 588, 6233, 1016, 5621, 1082, 202, 9610, 261, 73, 18, 856, 1085, 13, 288, 6862, 9506, 202, 3593, 348, 8588, 18, 985, 11226, 67, 3079, 30, 6862, 202, 3427, 33, 261, 74, 1042, 4320, 1388, 18, 588, 6233, 1016, 1435, 405, 374, 692, 2 ]
return (retval);
try { return Integer.parseInt(value); } catch (NumberFormatException e) { return defaultValue; }
public int getHeaderFieldInt(String key, int def) { String value = getHeaderField(key); if (value == null) return (def); int retval = def; try { retval = Integer.parseInt(value); } catch (NumberFormatException e) { return (def); } return (retval); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/62bb818fd7bc55fbb32b7cfa4b44b94383422a54/URLConnection.java/buggy/core/src/classpath/java/java/net/URLConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 7911, 974, 1702, 12, 780, 498, 16, 509, 1652, 13, 288, 202, 202, 780, 460, 273, 7911, 974, 12, 856, 1769, 202, 202, 430, 261, 1132, 422, 446, 13, 1082, 202, 2463, 261, 536, 1769, 202, 202, 474, 5221, 273, 1652, 31, 202, 202, 698, 288, 1082, 202, 18341, 273, 2144, 18, 2670, 1702, 12, 1132, 1769, 202, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 1082, 202, 2463, 261, 536, 1769, 202, 202, 97, 202, 202, 2463, 261, 18341, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 7911, 974, 1702, 12, 780, 498, 16, 509, 1652, 13, 288, 202, 202, 780, 460, 273, 7911, 974, 12, 856, 1769, 202, 202, 430, 261, 1132, 422, 446, 13, 1082, 202, 2463, 261, 536, 1769, 202, 202, 474, 5221, 273, 1652, 31, 202, 202, 698, 288, 1082, 202, 18341, 273, 2144, 18, 2670, 1702, 12, 1132, 1769, 202, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 1082, 202, 2463, 261, 536, 1769, 202, 202, 97, 202, 202, 2463, 261, 18341, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void storePatch (Patch p, int bankNum,int patchNum)
public void storePatch (IPatch p, int bankNum,int patchNum)
public void storePatch (Patch p, int bankNum,int patchNum) { int patchValue = patchNum; int bankValue = 0; if(bankNum == 1 || bankNum == 3) { patchValue += 64; } if(bankNum > 1) { bankValue = 1; // bank A and B is at bank 0 location. C and D is at Bank 1 } setBankNum (bankValue); setPatchNum (patchValue); try {Thread.sleep (100); } catch (Exception e) {} p.sysex[2]=(byte)(0x30 + getChannel() - 1); try { send(p.sysex); }catch (Exception e) {ErrorMsg.reportStatus (e);} try {Thread.sleep (100); } catch (Exception e) {} // Send a write request to store the patch in eprom byte [] sysex = new byte[8]; sysex[0] = (byte)0xF0; sysex[1] = (byte)0x42; sysex[2] = (byte)(0x30 + getChannel() - 1); sysex[3] = (byte)0x51; sysex[4] = (byte)0x11; // write request sysex[5] = (byte)(bankValue); sysex[6] = (byte)(patchValue); sysex[7] = (byte)0xF7; try { send(sysex); }catch (Exception e) {ErrorMsg.reportStatus (e);} }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/KorgER1SingleDriver.java/clean/JSynthLib/synthdrivers/KorgER1/KorgER1SingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1707, 7332, 261, 2579, 505, 293, 16, 509, 11218, 2578, 16, 474, 4729, 2578, 13, 565, 288, 3639, 509, 4729, 620, 273, 4729, 2578, 31, 3639, 509, 11218, 620, 225, 273, 374, 31, 3639, 309, 12, 10546, 2578, 422, 404, 747, 11218, 2578, 422, 890, 13, 3639, 288, 5411, 4729, 620, 1011, 5178, 31, 3639, 289, 3639, 309, 12, 10546, 2578, 405, 404, 13, 3639, 288, 5411, 11218, 620, 273, 404, 31, 368, 11218, 432, 471, 605, 353, 622, 11218, 374, 2117, 18, 385, 471, 463, 353, 622, 25610, 404, 3639, 289, 3639, 15268, 2304, 2578, 261, 10546, 620, 1769, 3639, 444, 7332, 2578, 261, 2272, 620, 1769, 3639, 775, 3639, 288, 3830, 18, 19607, 261, 6625, 1769, 289, 1044, 261, 503, 425, 13, 3639, 2618, 3639, 293, 18, 9009, 20909, 63, 22, 65, 28657, 7229, 21433, 20, 92, 5082, 397, 16454, 1435, 300, 404, 1769, 3639, 775, 3639, 288, 5411, 1366, 12, 84, 18, 9009, 20909, 1769, 3639, 289, 14683, 261, 503, 425, 13, 3639, 288, 668, 3332, 18, 6006, 1482, 261, 73, 1769, 97, 3639, 775, 3639, 288, 3830, 18, 19607, 261, 6625, 1769, 289, 1044, 261, 503, 425, 13, 3639, 2618, 3639, 368, 2479, 279, 1045, 590, 358, 1707, 326, 4729, 316, 5529, 520, 3639, 1160, 5378, 1393, 20909, 273, 394, 1160, 63, 28, 15533, 3639, 1393, 20909, 63, 20, 65, 273, 261, 7229, 13, 20, 16275, 20, 31, 3639, 1393, 20909, 63, 21, 65, 273, 261, 7229, 13, 20, 92, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 7332, 261, 2579, 505, 293, 16, 509, 11218, 2578, 16, 474, 4729, 2578, 13, 565, 288, 3639, 509, 4729, 620, 273, 4729, 2578, 31, 3639, 509, 11218, 620, 225, 273, 374, 31, 3639, 309, 12, 10546, 2578, 422, 404, 747, 11218, 2578, 422, 890, 13, 3639, 288, 5411, 4729, 620, 1011, 5178, 31, 3639, 289, 3639, 309, 12, 10546, 2578, 405, 404, 13, 3639, 288, 5411, 11218, 620, 273, 404, 31, 368, 11218, 432, 471, 605, 353, 622, 11218, 374, 2117, 18, 385, 471, 463, 353, 622, 25610, 404, 3639, 289, 3639, 15268, 2304, 2578, 261, 10546, 620, 1769, 3639, 444, 7332, 2578, 261, 2272, 620, 1769, 3639, 775, 3639, 288, 3830, 18, 19607, 261, 2 ]
while(key.length() > 0 && key.charAt(key.length()-1) == ' ')
while((key.length() > 0) && (key.charAt(key.length()-1) == ' '))
private boolean processLine(BufferedReader reader, OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... ("+e+")"); System.err.println("Bye... ("+e+")"); return true; } boolean getCHKOnly = false; if(line == null) return true; String uline = line.toUpperCase(); Logger.minor(this, "Command: "+line); if(uline.startsWith("GET:")) { // Should have a key next String key = line.substring("GET:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); Logger.normal(this, "Key: "+uri); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // FIXME limit it above if(data.size() > 32*1024) { System.err.println("Data is more than 32K: "+data.size()); outsb.append("Data is more than 32K: "+data.size()); return false; } byte[] dataBytes = BucketTools.toByteArray(data); boolean evil = false; for(int i=0;i<dataBytes.length;i++) { // Look for escape codes if(dataBytes[i] == '\n') continue; if(dataBytes[i] == '\r') continue; if(dataBytes[i] < 32) evil = true; } if(evil) { System.err.println("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); outsb.append("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); return false; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()+"\r\n"); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("GETFILE:")) { // Should have a key next String key = line.substring("GETFILE:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // Now calculate filename String fnam = uri.getDocName(); fnam = sanitize(fnam); if(fnam.length() == 0) { fnam = "freenet-download-"+HexUtil.bytesToHex(BucketTools.hash(data), 0, 10); String ext = DefaultMIMETypes.getExtension(cm.getMIMEType()); if(ext != null && !ext.equals("")) fnam += "." + ext; } File f = new File(downloadsDir, fnam); if(f.exists()) { outsb.append("File exists already: "+fnam); fnam = "freenet-"+System.currentTimeMillis()+"-"+fnam; } FileOutputStream fos = null; try { fos = new FileOutputStream(f); BucketTools.copyTo(data, fos, Long.MAX_VALUE); fos.close(); outsb.append("Written to "+fnam); } catch (IOException e) { outsb.append("Could not write file: caught "+e); e.printStackTrace(); } finally { if(fos != null) try { fos.close(); } catch (IOException e1) { // Ignore } } long endTime = System.currentTimeMillis(); long sz = data.size(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Download rate: "+rate+" bytes / second"); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("UPDATE")) { outsb.append("starting the update process"); // FIXME run on separate thread n.getNodeUpdater().Update(); return false; }else if(uline.startsWith("BLOW")) { n.getNodeUpdater().blow("caught an IOException : (Incompetent Operator) :p"); return false; } else if(uline.startsWith("SHUTDOWN")) { StringBuffer sb = new StringBuffer(); sb.append("Shutting node down.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.exit(); } else if(uline.startsWith("RESTART")) { StringBuffer sb = new StringBuffer(); sb.append("Restarting the node.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.getNodeStarter().restart(); } else if(uline.startsWith("QUIT") && n.directTMCI == this) { StringBuffer sb = new StringBuffer(); sb.append("QUIT command not available in console mode.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return false; } else if(uline.startsWith("QUIT")) { StringBuffer sb = new StringBuffer(); sb.append("Closing connection.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return true; } else if(uline.startsWith("HELP")) { printHeader(out); return false; } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { // Just insert to local store if(getCHKOnly) line = line.substring(("GETCHK:").length()); else line = line.substring("PUT:".length()); while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String content; if(line.length() > 0) { // Single line insert content = line; } else { // Multiple line insert content = readLines(reader, false); } // Insert byte[] data = content.getBytes(); InsertBlock block = new InsertBlock(new ArrayBucket(data), null, FreenetURI.EMPTY_CHK_URI); FreenetURI uri; try { uri = client.insert(block, getCHKOnly); } catch (InserterException e) { outsb.append("Error: "+e.getMessage()); if(e.uri != null) outsb.append("URI would have been: "+e.uri); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { outsb.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()); } return false; } outsb.append("URI: "+uri); //////////////////////////////////////////////////////////////////////////////// } else if(uline.startsWith("PUTDIR:") || (uline.startsWith("PUTSSKDIR")) || (getCHKOnly = uline.startsWith("GETCHKDIR:"))) { // TODO: Check for errors? boolean ssk = false; if(uline.startsWith("PUTDIR:")) line = line.substring("PUTDIR:".length()); else if(uline.startsWith("PUTSSKDIR:")) { line = line.substring("PUTSSKDIR:".length()); ssk = true; } else if(uline.startsWith("GETCHKDIR:")) line = line.substring(("GETCHKDIR:").length()); else { System.err.println("Impossible"); outsb.append("Impossible"); } line = line.trim(); if(line.length() < 1) { printHeader(out); return false; } String defaultFile = null; FreenetURI insertURI = FreenetURI.EMPTY_CHK_URI; // set default file? if (line.matches("^.*#.*$")) { String[] split = line.split("#"); if(ssk) { insertURI = new FreenetURI(split[0]); line = split[1]; if(split.length > 2) defaultFile = split[2]; } else { defaultFile = split[1]; line = split[0]; } } HashMap bucketsByName = makeBucketsByName(line); if(defaultFile == null) { String[] defaultFiles = new String[] { "index.html", "index.htm", "default.html", "default.htm" }; for(int i=0;i<defaultFiles.length;i++) { if(bucketsByName.containsKey(defaultFiles[i])) { defaultFile = defaultFiles[i]; break; } } } FreenetURI uri; try { uri = client.insertManifest(insertURI, bucketsByName, defaultFile); uri = uri.addMetaStrings(new String[] { "" }); outsb.append("======================================================="); outsb.append("URI: "+uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: "+uri); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } Logger.error(this, "Caught "+e, e); } } else if(uline.startsWith("PUTFILE:") || (getCHKOnly = uline.startsWith("GETCHKFILE:"))) { // Just insert to local store if(getCHKOnly) { line = line.substring(("GETCHKFILE:").length()); } else { line = line.substring("PUTFILE:".length()); } while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String mimeType = DefaultMIMETypes.guessMIMEType(line); if (line.indexOf('#') > -1) { String[] splittedLine = line.split("#"); line = splittedLine[0]; mimeType = splittedLine[1]; } File f = new File(line); outsb.append("Attempting to read file "+line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type outsb.append("Using MIME type: "+mimeType + "\r\n"); if(mimeType.equals(DefaultMIMETypes.DEFAULT_MIME_TYPE)) mimeType = ""; // don't need to override it FileBucket fb = new FileBucket(f, true, false, false, false); InsertBlock block = new InsertBlock(fb, new ClientMetadata(mimeType), FreenetURI.EMPTY_CHK_URI); startTime = System.currentTimeMillis(); FreenetURI uri = client.insert(block, getCHKOnly); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: "+uri+"\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: "+t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r, ""); outsb.append("Insert URI: "+key.getInsertURI().toString(false)+"\r\n"); outsb.append("Request URI: "+key.getURI().toString(false)+"\r\n"); FreenetURI insertURI = key.getInsertURI().setDocName("testsite"); String fixedInsertURI = insertURI.toString(false); outsb.append("Note that you MUST add a filename to the end of the above URLs e.g.:\r\n"+fixedInsertURI+"\r\n"); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:"+fixedInsertURI+"#directoryToUpload/"+"\r\n"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n"+key.getURI().toString(false)+"testsite/"); } else if(uline.startsWith("PUTSSK:")) { String cmd = line.substring("PUTSSK:".length()); cmd = cmd.trim(); if(cmd.indexOf(';') <= 0) { outsb.append("No target URI provided."); outsb.append("PUTSSK:<insert uri>;<url to redirect to>"); return false; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: "+insertURI); outsb.append("Target URI: "+targetURI); FreenetURI insert = new FreenetURI(insertURI); FreenetURI target = new FreenetURI(targetURI); try { FreenetURI result = client.insertRedirect(insert, target); outsb.append("Successfully inserted to fetch URI: "+result); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportPublicFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : "+Version.highestSeenBuild); } } else if(uline.startsWith("ADDPEER:") || uline.startsWith("CONNECT:")) { String key = null; if(uline.startsWith("CONNECT:")) { key = line.substring("CONNECT:".length()); } else { key = line.substring("ADDPEER:".length()); } while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); String content = null; if(key.length() > 0) { // Filename BufferedReader in; outsb.append("Trying to add peer to node by noderef in "+key+"\r\n"); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading...\r\n"); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading...\r\n"); URL url = new URL(key); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); } content = readLines(in, true); in.close(); } else { content = readLines(reader, true); } if(content == null) return false; if(content.equals("")) return false; addPeer(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: "+n.myName); String key = line.substring("NAME:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); outsb.append("New name: "+key); try{ n.config.get("node").getOption("name").setValue(key); Logger.minor(this, "Setting node.name to "+key); }catch(Exception e){ Logger.error(this, "Error setting node's name"); } n.config.store(); } else if(uline.startsWith("DISABLEPEER:")) { String nodeIdentifier = (line.substring("DISABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(disablePeer(nodeIdentifier)) { outsb.append("disable succeeded for "+nodeIdentifier); } else { outsb.append("disable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("ENABLEPEER:")) { String nodeIdentifier = (line.substring("ENABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(enablePeer(nodeIdentifier)) { outsb.append("enable succeeded for "+nodeIdentifier); } else { outsb.append("enable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("SETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("SETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(true); outsb.append("set ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("UNSETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("UNSETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(false); outsb.append("unset ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("HAVEPEER:")) { String nodeIdentifier = (line.substring("HAVEPEER:".length())).trim(); if(havePeer(nodeIdentifier)) { outsb.append("true for "+nodeIdentifier); } else { outsb.append("false for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("REMOVEPEER:") || uline.startsWith("DISCONNECT:")) { String nodeIdentifier = null; if(uline.startsWith("DISCONNECT:")) { nodeIdentifier = line.substring("DISCONNECT:".length()); } else { nodeIdentifier = line.substring("REMOVEPEER:".length()); } if(removePeer(nodeIdentifier)) { outsb.append("peer removed for "+nodeIdentifier); } else { outsb.append("peer removal failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("PEER:")) { String nodeIdentifier = (line.substring("PEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); outsb.append(fs.toString()); } else if(uline.startsWith("PEERWMD:")) { String nodeIdentifier = (line.substring("PEERWMD:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); SimpleFieldSet meta = pn.exportMetadataFieldSet(); if(!meta.isEmpty()) fs.put("metadata", meta); outsb.append(fs.toString()); } else if(uline.startsWith("PEERS")) { outsb.append(n.getTMCIPeerList()); outsb.append("PEERS done.\r\n"); } else if(uline.startsWith("PLUGLOAD:")) { if (line.substring("PLUGLOAD:".length()).trim().equals("?")) { outsb.append(" PLUGLOAD: pkg.Class - Load plugin from current classpath"); outsb.append(" PLUGLOAD: pkg.Class@file:<filename> - Load plugin from file"); outsb.append(" PLUGLOAD: pkg.Class@http://... - Load plugin from online file"); outsb.append(" PLUGLOAD: *@... - Load plugin from manifest in given jarfile"); outsb.append(""); outsb.append("If the filename/url ends with \".url\", it" + " is treated as a link, meaning that the first line is" + " the accual URL. Else it is loaded as classpath and" + " the class it loaded from it (meaning the file could" + " be either a jar-file or a class-file)."); outsb.append(""); outsb.append(" PLUGLOAD: pkg.Class* - Load newest version of plugin from http://downloads.freenetproject.org/alpha/plugins/"); outsb.append(""); } else n.pluginManager.startPlugin(line.substring("PLUGLOAD:".length()).trim()); //outsb.append("PLUGLOAD: <pkg.classname>[(@<URI to jarfile.jar>|<<URI to file containing real URI>|* (will load from freenets pluginpool))] - Load plugin."); } else if(uline.startsWith("PLUGLIST")) { outsb.append(n.pluginManager.dumpPlugins()); } else if(uline.startsWith("PLUGKILL:")) { n.pluginManager.killPlugin(line.substring("PLUGKILL:".length()).trim()); } else { if(uline.length() > 0) printHeader(out); } outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); return false; }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/TextModeClientInterface.java/clean/src/freenet/node/TextModeClientInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 638, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 638, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 2189, 30, 13773, 1369, 1769, 3639, 309, 12, 332, 558, 18, 17514, 1190, 2932, 3264, 2773, 3719, 288, 5411, 368, 9363, 1240, 279, 498, 1024, 5411, 514, 498, 273, 980, 18, 28023, 2932, 3264, 2773, 18, 2469, 10663, 5411, 1323, 12, 856, 18, 2469, 1435, 405, 374, 597, 498, 18, 3001, 861, 12, 20, 13, 422, 296, 8624, 7734, 498, 273, 498, 18, 28023, 12, 21, 1769, 5411, 1323, 12443, 856, 18, 2469, 1435, 405, 374, 13, 597, 261, 856, 18, 3001, 861, 12, 856, 18, 2469, 1435, 17, 21, 13, 422, 296, 296, 3719, 7734, 498, 273, 498, 18, 28023, 12, 20, 16, 498, 18, 2469, 1435, 17, 22, 1769, 5411, 4242, 18, 6130, 12, 2211, 16, 315, 653, 30, 13773, 856, 1769, 5411, 478, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1207, 1670, 12, 17947, 2514, 2949, 16, 8962, 596, 13, 1216, 1860, 288, 3639, 514, 980, 31, 3639, 6674, 596, 18366, 273, 394, 6674, 5621, 3639, 775, 288, 5411, 980, 273, 2949, 18, 896, 1670, 5621, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 596, 18366, 18, 6923, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 2332, 18, 370, 18, 8222, 2932, 858, 73, 2777, 7566, 15, 73, 9078, 2225, 1769, 5411, 327, 638, 31, 3639, 289, 3639, 1250, 336, 1792, 47, 3386, 273, 629, 31, 3639, 309, 12, 1369, 422, 446, 13, 327, 638, 31, 3639, 514, 7493, 558, 273, 980, 18, 869, 8915, 5621, 3639, 4242, 18, 17364, 12, 2211, 2 ]
public SnipTokenizer(Reader in) {
public SnipTokenizer(String field, Reader in) {
public SnipTokenizer(Reader in) { input = in; }
6853 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6853/55fea9925336e97c02346f91d22237bc6672777d/SnipTokenizer.java/buggy/src/org/snipsnap/snip/SnipTokenizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 18961, 625, 10524, 12, 780, 652, 16, 5393, 316, 13, 288, 565, 810, 273, 316, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18961, 625, 10524, 12, 780, 652, 16, 5393, 316, 13, 288, 565, 810, 273, 316, 31, 225, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); current = m == null ? new DefaultKeyboardFocusManager() : m; }
sm.checkPermission (new AWTPermission ("replaceKeyboardFocusManager")); ThreadGroup currentGroup = Thread.currentThread ().getThreadGroup (); KeyboardFocusManager manager; if (m == null) manager = new DefaultKeyboardFocusManager (); else manager = m; currentKeyboardFocusManagers.put (currentGroup, manager); }
public static void setCurrentKeyboardFocusManager(KeyboardFocusManager m) { SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new AWTPermission("replaceKeyboardFocusManager")); // XXX Need a way to divide this into contexts. current = m == null ? new DefaultKeyboardFocusManager() : m; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/KeyboardFocusManager.java/buggy/core/src/classpath/java/java/awt/KeyboardFocusManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 12589, 17872, 9233, 1318, 12, 17872, 9233, 1318, 312, 13, 225, 288, 565, 6036, 1318, 3029, 273, 2332, 18, 588, 4368, 1318, 5621, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, 18, 1893, 5041, 12, 2704, 432, 8588, 5041, 2932, 2079, 17872, 9233, 1318, 7923, 1769, 565, 368, 11329, 12324, 279, 4031, 358, 12326, 333, 1368, 5781, 18, 565, 783, 273, 312, 422, 446, 692, 394, 2989, 17872, 9233, 1318, 1435, 294, 312, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 918, 12589, 17872, 9233, 1318, 12, 17872, 9233, 1318, 312, 13, 225, 288, 565, 6036, 1318, 3029, 273, 2332, 18, 588, 4368, 1318, 5621, 565, 309, 261, 4808, 480, 446, 13, 1377, 3029, 18, 1893, 5041, 12, 2704, 432, 8588, 5041, 2932, 2079, 17872, 9233, 1318, 7923, 1769, 565, 368, 11329, 12324, 279, 4031, 358, 12326, 333, 1368, 5781, 18, 565, 783, 273, 312, 422, 446, 692, 394, 2989, 17872, 9233, 1318, 1435, 294, 312, 31, 225, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return docBean.getChildBean(xpath.substring(index+1));
DDBean[] newDDBeans = docBean.getChildBean(xpath.substring(index+1)); for (int i = 0; i < newDDBeans.length; i++) { newDDBeans[i] = new DDBeanImpl((DDBeanImpl)newDDBeans[i], xpath); } return newDDBeans;
public DDBean[] getChildBean(String xpath) { if (xpath.startsWith("/")) { xpath = xpath.substring(1); } int index = xpath.indexOf('/'); String childName = (index == -1) ? xpath : xpath.substring(0, index); if (childName.equals(doc.getDocumentElement().getNodeName())) { if (index == -1) { return new DDBean[] {docBean }; } else { return docBean.getChildBean(xpath.substring(index+1)); } } else { return null; } }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/0604d81423a56815a4057b2f63aa8318c4618fe7/DDBeanRootImpl.java/buggy/modules/deployment/src/java/org/apache/geronimo/deployment/tools/DDBeanRootImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 25177, 3381, 8526, 8154, 3381, 12, 780, 6748, 13, 288, 3639, 309, 261, 18644, 18, 17514, 1190, 2932, 4898, 3719, 288, 5411, 6748, 273, 6748, 18, 28023, 12, 21, 1769, 3639, 289, 3639, 509, 770, 273, 6748, 18, 31806, 2668, 2473, 1769, 3639, 514, 27440, 273, 261, 1615, 422, 300, 21, 13, 692, 6748, 294, 6748, 18, 28023, 12, 20, 16, 770, 1769, 3639, 309, 261, 3624, 461, 18, 14963, 12, 2434, 18, 588, 2519, 1046, 7675, 588, 18948, 1435, 3719, 288, 5411, 309, 261, 1615, 422, 300, 21, 13, 288, 7734, 327, 394, 25177, 3381, 8526, 288, 2434, 3381, 289, 31, 5411, 289, 469, 288, 7734, 25177, 3381, 8526, 394, 5698, 14495, 273, 997, 3381, 18, 588, 1763, 3381, 12, 18644, 18, 28023, 12, 1615, 15, 21, 10019, 364, 261, 474, 277, 273, 374, 31, 277, 411, 394, 5698, 14495, 18, 2469, 31, 277, 27245, 288, 394, 5698, 14495, 63, 77, 65, 273, 394, 25177, 3381, 2828, 12443, 5698, 3381, 2828, 13, 2704, 5698, 14495, 63, 77, 6487, 6748, 1769, 289, 327, 394, 5698, 14495, 31, 5411, 289, 3639, 289, 469, 288, 5411, 327, 446, 31, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 25177, 3381, 8526, 8154, 3381, 12, 780, 6748, 13, 288, 3639, 309, 261, 18644, 18, 17514, 1190, 2932, 4898, 3719, 288, 5411, 6748, 273, 6748, 18, 28023, 12, 21, 1769, 3639, 289, 3639, 509, 770, 273, 6748, 18, 31806, 2668, 2473, 1769, 3639, 514, 27440, 273, 261, 1615, 422, 300, 21, 13, 692, 6748, 294, 6748, 18, 28023, 12, 20, 16, 770, 1769, 3639, 309, 261, 3624, 461, 18, 14963, 12, 2434, 18, 588, 2519, 1046, 7675, 588, 18948, 1435, 3719, 288, 5411, 309, 261, 1615, 422, 300, 21, 13, 288, 7734, 327, 394, 25177, 3381, 8526, 288, 2434, 3381, 289, 31, 5411, 289, 469, 288, 7734, 25177, 3381, 8526, 394, 5698, 14495, 273, 997, 3381, 18, 2 ]
FormMappingObject formBean = (FormMappingObject) psession.getAttribute("employeeAddForm"); DBMappingObject employeeDBMappingObject = DBMappingFactory.getInstance().getDBMappingObject(EmployeeBean.class.getName());
FormMappingObject formBean = (FormMappingObject) psession.getAttribute("agencyAddForm"); DBMappingObject agencyDBMappingObject = DBMappingFactory.getInstance().getDBMappingObject(AgencyBean.class.getName());
public String addAction(HttpSession psession, HashMap pparametersMap) throws ServletException, IOException, PapyrusException { logger_.debug("addAction : begin"); String subAction = ((String[]) pparametersMap.get("subAction"))[0]; String url = "/administration/employeeList.jsp"; /* reset the associated form bean and setup it with the current form */ FormMappingObject formBean = (FormMappingObject) psession.getAttribute("employeeAddForm"); DBMappingObject employeeDBMappingObject = DBMappingFactory.getInstance().getDBMappingObject(EmployeeBean.class.getName()); /* init subAction */ if ("init".equals(subAction)) { if (null == formBean) { formBean = FormMappingFactory.getInstance().getFormMappingObject("Employee", "ADD"); psession.setAttribute("employeeAddForm", formBean); } else formBean.reset(); url = "/administration/employeeAdd.jsp"; } /* insert subAction */ if ("ok".equals(subAction)) { long queryResult; /* reset the associated form bean and setup it with the current form */ if (null != formBean) formBean.reset(); formBean.setData(pparametersMap); logger_.debug("addAction: formBean error ??? = " + formBean.getErrorMessage()); if (formBean.isDataOk()) { /* create the employee and fill data with the form */ EmployeeBean employeeBean = (EmployeeBean) formBean.createNewObject(EmployeeBean.class); /* insert employee to the database */ queryResult = ((Long) employeeDBMappingObject.add(employeeBean)).longValue(); if (EMPLOYEE_DUPLICATED_LOGIN == queryResult) { formBean.setErrorFields("login", "login dj utilis"); url = "/administration/employeeAdd.jsp"; } else url = "/DomainActionServlet?domain=employee&action=list&subAction=init"; logger_.debug("addAction : employee = " + employeeBean.toString()); } else url = "/administration/employeeAdd.jsp"; } logger_.debug("addAction : end(" + url + ")"); return (url); }
10465 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10465/fa59171c54dfa518aebbe47f5812dedda58f0e3e/AgencyAction.java/buggy/papyrus/src/com/papyrus/data/administration/agency/AgencyAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 14745, 12, 2940, 2157, 293, 3184, 16, 4317, 293, 3977, 863, 13, 1216, 16517, 16, 1860, 16, 453, 438, 93, 8010, 503, 288, 202, 202, 4901, 27799, 4148, 2932, 1289, 1803, 294, 2376, 8863, 9506, 202, 780, 720, 1803, 273, 14015, 780, 63, 5717, 293, 3977, 863, 18, 588, 2932, 1717, 1803, 6, 3719, 63, 20, 15533, 202, 202, 780, 880, 273, 2206, 3666, 4218, 19, 351, 2817, 1340, 682, 18, 24926, 14432, 9506, 202, 20308, 2715, 326, 3627, 646, 3931, 471, 3875, 518, 598, 326, 783, 646, 1195, 202, 202, 1204, 3233, 921, 646, 3381, 273, 261, 1204, 3233, 921, 13, 293, 3184, 18, 588, 1499, 2932, 351, 2817, 1340, 986, 1204, 8863, 202, 202, 2290, 3233, 921, 24539, 1340, 2290, 3233, 921, 273, 2383, 3233, 1733, 18, 588, 1442, 7675, 588, 2290, 3233, 921, 12, 41, 27520, 3381, 18, 1106, 18, 17994, 10663, 9506, 202, 20308, 1208, 720, 1803, 1195, 202, 202, 430, 7566, 2738, 9654, 14963, 12, 1717, 1803, 3719, 288, 1082, 202, 430, 261, 2011, 422, 646, 3381, 13, 288, 9506, 202, 687, 3381, 273, 2748, 3233, 1733, 18, 588, 1442, 7675, 588, 1204, 3233, 921, 2932, 41, 27520, 3113, 315, 8355, 8863, 9506, 202, 1121, 893, 18, 542, 1499, 2932, 351, 2817, 1340, 986, 1204, 3113, 646, 3381, 1769, 1082, 202, 97, 1082, 202, 12107, 9506, 202, 687, 3381, 18, 6208, 5621, 6862, 1082, 202, 718, 273, 2206, 3666, 4218, 19, 351, 2817, 1340, 986, 18, 24926, 14432, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14745, 12, 2940, 2157, 293, 3184, 16, 4317, 293, 3977, 863, 13, 1216, 16517, 16, 1860, 16, 453, 438, 93, 8010, 503, 288, 202, 202, 4901, 27799, 4148, 2932, 1289, 1803, 294, 2376, 8863, 9506, 202, 780, 720, 1803, 273, 14015, 780, 63, 5717, 293, 3977, 863, 18, 588, 2932, 1717, 1803, 6, 3719, 63, 20, 15533, 202, 202, 780, 880, 273, 2206, 3666, 4218, 19, 351, 2817, 1340, 682, 18, 24926, 14432, 9506, 202, 20308, 2715, 326, 3627, 646, 3931, 471, 3875, 518, 598, 326, 783, 646, 1195, 202, 202, 1204, 3233, 921, 646, 3381, 273, 261, 1204, 3233, 921, 13, 293, 3184, 18, 588, 1499, 2932, 351, 2817, 1340, 986, 1204, 8863, 202, 2 ]
if(notFirst) sql.append(" or ");
public java.sql.ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException { // Handle default value for types if(types==null) types = defaultTableTypes; if(tableNamePattern==null) tableNamePattern="%"; // the field descriptors for the new ResultSet Field f[] = new Field[5]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, new String("TABLE_CAT"), iVarcharOid, 32); f[1] = new Field(connection, new String("TABLE_SCHEM"), iVarcharOid, 32); f[2] = new Field(connection, new String("TABLE_NAME"), iVarcharOid, 32); f[3] = new Field(connection, new String("TABLE_TYPE"), iVarcharOid, 32); f[4] = new Field(connection, new String("REMARKS"), iVarcharOid, 32); // Now form the query StringBuffer sql = new StringBuffer("select relname,oid from pg_class where ("); boolean notFirst=false; for(int i=0;i<types.length;i++) { if(notFirst) sql.append(" or "); for(int j=0;j<getTableTypes.length;j++) if(getTableTypes[j][0].equals(types[i])) { sql.append(getTableTypes[j][1]); notFirst=true; } } // Added by Stefan Andreasen <stefan@linux.kapow.dk> // Now take the pattern into account sql.append(") and relname like '"); sql.append(tableNamePattern.toLowerCase()); sql.append("'"); // Now run the query r = connection.ExecSQL(sql.toString()); byte remarks[]; while (r.next()) { byte[][] tuple = new byte[5][0]; // Fetch the description for the table (if any) java.sql.ResultSet dr = connection.ExecSQL("select description from pg_description where objoid="+r.getInt(2)); if(((org.postgresql.ResultSet)dr).getTupleCount()==1) { dr.next(); remarks = dr.getBytes(1); } else remarks = defaultRemarks; dr.close(); tuple[0] = null; // Catalog name tuple[1] = null; // Schema name tuple[2] = r.getBytes(1); // Table name tuple[3] = null; // Table type tuple[4] = remarks; // Remarks v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/16ca959e6caf979f0d0a126ac4a6a4bcf21a5ef8/DatabaseMetaData.java/clean/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 29002, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 1953, 63, 5717, 1216, 6483, 225, 288, 565, 368, 5004, 805, 460, 364, 1953, 565, 309, 12, 2352, 631, 2011, 13, 1377, 1953, 273, 805, 1388, 2016, 31, 3639, 309, 12, 18033, 3234, 631, 2011, 13, 1377, 4775, 3234, 11613, 14432, 3639, 368, 326, 652, 14215, 364, 326, 394, 10842, 565, 2286, 284, 8526, 273, 394, 2286, 63, 25, 15533, 565, 2252, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 565, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 3639, 284, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 394, 514, 2932, 7775, 67, 14130, 6, 3631, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 21, 65, 273, 394, 2286, 12, 4071, 16, 394, 514, 2932, 7775, 67, 55, 10390, 6, 3631, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 22, 65, 273, 394, 2286, 12, 4071, 16, 394, 514, 2932, 7775, 67, 1985, 6, 3631, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 23, 65, 273, 394, 2286, 12, 4071, 16, 394, 514, 2932, 7775, 67, 2399, 6, 3631, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 24, 65, 273, 394, 2286, 12, 4071, 16, 394, 514, 2932, 862, 12693, 55, 6, 3631, 277, 58, 22483, 19105, 16, 3847, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 4669, 18, 13198, 29002, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 1953, 63, 5717, 1216, 6483, 225, 288, 565, 368, 5004, 805, 460, 364, 1953, 565, 309, 12, 2352, 631, 2011, 13, 1377, 1953, 273, 805, 1388, 2016, 31, 3639, 309, 12, 18033, 3234, 631, 2011, 13, 1377, 4775, 3234, 11613, 14432, 3639, 368, 326, 652, 14215, 364, 326, 394, 10842, 565, 2286, 284, 8526, 273, 394, 2286, 63, 25, 15533, 565, 2252, 18, 4669, 18, 13198, 436, 31, 202, 759, 10842, 364, 326, 3063, 843, 716, 732, 1608, 358, 741, 565, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 3639, 284, 63, 2 ]
if(((IpAddress)src_addr).getIpAddress() != null)
IpAddress tmp=(IpAddress)src_addr; if(tmp.getIpAddress() != null)
public void writeTo(DataOutputStream out) throws IOException { Map.Entry entry; byte leading=0; if(dest_addr != null) { leading+=DEST_SET; if(dest_addr instanceof IpAddress) leading+=IPADDR_DEST; } if(src_addr != null) { leading+=SRC_SET; if(src_addr instanceof IpAddress) { leading+=IPADDR_SRC; if(((IpAddress)src_addr).getIpAddress() == null) { leading+=SRC_HOST_NULL; } } } if(buf != null) leading+=BUF_SET; if(headers != null && headers.size() > 0) leading+=HDRS_SET; // 1. write the leading byte first out.write(leading); // 2. dest_addr if(dest_addr != null) { if(dest_addr instanceof IpAddress) dest_addr.writeTo(out); else Util.writeAddress(dest_addr, out); } // 3. src_addr if(src_addr != null) { if(src_addr instanceof IpAddress) { if(((IpAddress)src_addr).getIpAddress() != null) src_addr.writeTo(out); else { out.writeInt(((IpAddress)src_addr).getPort()); } } else { Util.writeAddress(src_addr, out); } } // 4. buf if(buf != null) { out.writeInt(length); out.write(buf, offset, length); } // 5. headers if(headers != null && headers.size() > 0) { out.writeInt(headers.size()); for(Iterator it=headers.entrySet().iterator(); it.hasNext();) { entry=(Map.Entry)it.next(); out.writeUTF((String)entry.getKey()); writeHeader((Header)entry.getValue(), out); } } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/6cc151b066a34f8126fbf501ecd2b438fe48b28e/Message.java/clean/src/org/jgroups/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12870, 12, 751, 4632, 596, 13, 1216, 1860, 288, 3639, 1635, 18, 1622, 3639, 1241, 31, 3639, 1160, 7676, 33, 20, 31, 3639, 309, 12, 10488, 67, 4793, 480, 446, 13, 288, 5411, 7676, 15, 33, 1639, 882, 67, 4043, 31, 5411, 309, 12, 10488, 67, 4793, 1276, 14709, 1887, 13, 7734, 7676, 15, 33, 2579, 14142, 67, 1639, 882, 31, 3639, 289, 3639, 309, 12, 4816, 67, 4793, 480, 446, 13, 288, 5411, 7676, 15, 33, 28413, 67, 4043, 31, 5411, 309, 12, 4816, 67, 4793, 1276, 14709, 1887, 13, 288, 7734, 7676, 15, 33, 2579, 14142, 67, 28413, 31, 7734, 309, 12443, 12, 16875, 13, 4816, 67, 4793, 2934, 588, 16875, 1435, 422, 446, 13, 288, 10792, 7676, 15, 33, 28413, 67, 8908, 67, 8560, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 12, 4385, 480, 446, 13, 5411, 7676, 15, 33, 3000, 42, 67, 4043, 31, 3639, 309, 12, 2485, 480, 446, 597, 1607, 18, 1467, 1435, 405, 374, 13, 5411, 7676, 15, 33, 44, 6331, 55, 67, 4043, 31, 3639, 368, 404, 18, 1045, 326, 7676, 1160, 1122, 3639, 596, 18, 2626, 12, 27200, 1769, 3639, 368, 576, 18, 1570, 67, 4793, 3639, 309, 12, 10488, 67, 4793, 480, 446, 13, 288, 5411, 309, 12, 10488, 67, 4793, 1276, 14709, 1887, 13, 7734, 1570, 67, 4793, 18, 2626, 774, 12, 659, 1769, 5411, 469, 7734, 3564, 18, 2626, 1887, 12, 10488, 67, 4793, 16, 596, 1769, 3639, 289, 3639, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12870, 12, 751, 4632, 596, 13, 1216, 1860, 288, 3639, 1635, 18, 1622, 3639, 1241, 31, 3639, 1160, 7676, 33, 20, 31, 3639, 309, 12, 10488, 67, 4793, 480, 446, 13, 288, 5411, 7676, 15, 33, 1639, 882, 67, 4043, 31, 5411, 309, 12, 10488, 67, 4793, 1276, 14709, 1887, 13, 7734, 7676, 15, 33, 2579, 14142, 67, 1639, 882, 31, 3639, 289, 3639, 309, 12, 4816, 67, 4793, 480, 446, 13, 288, 5411, 7676, 15, 33, 28413, 67, 4043, 31, 5411, 309, 12, 4816, 67, 4793, 1276, 14709, 1887, 13, 288, 7734, 7676, 15, 33, 2579, 14142, 67, 28413, 31, 7734, 309, 12443, 12, 16875, 13, 4816, 67, 4793, 2934, 588, 16875, 1435, 422, 446, 2 ]
{ char ch[] = s.toCharArray (); pushCharArray (ename, ch, 0, ch.length); }
{ char[] ch = s.toCharArray(); pushCharArray(ename, ch, 0, ch.length); }
private void pushString (String ename, String s) throws SAXException { char ch[] = s.toCharArray (); pushCharArray (ename, ch, 0, ch.length); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/0820da75b03035b7198673adb4bd8108184d0cd8/XmlParser.java/clean/libraries/javalib/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1817, 780, 261, 780, 570, 339, 16, 514, 272, 13, 565, 1216, 14366, 565, 288, 202, 3001, 462, 8526, 273, 272, 18, 869, 15936, 261, 1769, 202, 6206, 15936, 261, 1069, 16, 462, 16, 374, 16, 462, 18, 2469, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 918, 1817, 780, 261, 780, 570, 339, 16, 514, 272, 13, 565, 1216, 14366, 565, 288, 202, 3001, 462, 8526, 273, 272, 18, 869, 15936, 261, 1769, 202, 6206, 15936, 261, 1069, 16, 462, 16, 374, 16, 462, 18, 2469, 1769, 565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
f = new File(getWebBasePath() + s);
return getWebBasePath() + s;
public static String getAbsoluteWebPath(String s) { if(s == null) { return null; } File f = new File(s); if(! f.isAbsolute()) { if(c_basePath == null) { return null; } else { f = new File(getWebBasePath() + s); } } return f.getAbsolutePath(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/b616df23c767472e90955586fa3acdac33cd21c5/CmsBase.java/buggy/src/com/opencms/boot/CmsBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8469, 4079, 743, 12, 780, 272, 13, 288, 3639, 309, 12, 87, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 1387, 284, 273, 394, 1387, 12, 87, 1769, 3639, 309, 12, 5, 284, 18, 291, 10368, 10756, 288, 5411, 309, 12, 71, 67, 27605, 422, 446, 13, 288, 7734, 327, 446, 31, 5411, 289, 469, 288, 7734, 327, 20312, 15912, 1435, 397, 272, 31, 5411, 289, 3639, 289, 3639, 327, 284, 18, 588, 10368, 743, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 8469, 4079, 743, 12, 780, 272, 13, 288, 3639, 309, 12, 87, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 1387, 284, 273, 394, 1387, 12, 87, 1769, 3639, 309, 12, 5, 284, 18, 291, 10368, 10756, 288, 5411, 309, 12, 71, 67, 27605, 422, 446, 13, 288, 7734, 327, 446, 31, 5411, 289, 469, 288, 7734, 327, 20312, 15912, 1435, 397, 272, 31, 5411, 289, 3639, 289, 3639, 327, 284, 18, 588, 10368, 743, 5621, 565, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!hidden)
out.print("</td><td class=\"metadataFieldValue\">"); out.print(Utils.addEntities(values[i].value)); out.print("</td><td class=\"metadataFieldValue\">"); if (values[i].language == null)
private void renderFull() throws IOException, java.sql.SQLException { JspWriter out = pageContext.getOut(); // Get all the metadata DCValue[] values = item.getDC(Item.ANY, Item.ANY, Item.ANY); out.println("<P align=center>Full metadata record</P>"); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); // Three column table - DC field, value, language out.println("<center><table class=\"itemDisplayTable\">"); out.println("<tr><th class=\"standard\">DC Field</th><th class=\"standard\">Value</th><th class=\"standard\">Language</th></tr>"); for (int i = 0; i < values.length; i++) { boolean hidden = false; // Mask description.provenance if (values[i].element.equals("description") && (values[i].qualifier != null && values[i].qualifier.equals("provenance"))) { hidden = true; } if (!hidden) { out.print("<tr><td class=\"metadataFieldLabel\">"); out.print(values[i].element); if (values[i].qualifier != null) { out.print("." + values[i].qualifier); } out.print("</td><td class=\"metadataFieldValue\">"); out.print(Utils.addEntities(values[i].value)); out.print("</td><td class=\"metadataFieldValue\">"); if (values[i].language == null) { out.print("-"); } else { out.print(values[i].language); } out.println("</td></tr>"); } } listCollections(); out.println("</table></center><br>"); listBitstreams(); }
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/c0a6aa00241d4104417114883e740ef30b79f94b/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1743, 5080, 1435, 565, 1216, 1860, 16, 2252, 18, 4669, 18, 23116, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 7734, 368, 968, 777, 326, 1982, 3639, 21533, 620, 8526, 924, 273, 761, 18, 588, 5528, 12, 1180, 18, 15409, 16, 4342, 18, 15409, 16, 4342, 18, 15409, 1769, 7734, 596, 18, 8222, 2932, 32, 52, 5689, 33, 5693, 34, 5080, 1982, 1409, 1757, 52, 2984, 1769, 7734, 9984, 590, 273, 5411, 261, 2940, 18572, 13, 21442, 18, 588, 691, 5621, 7734, 368, 935, 992, 1057, 1014, 300, 21533, 652, 16, 460, 16, 2653, 3639, 596, 18, 8222, 2932, 32, 5693, 4438, 2121, 667, 5189, 1726, 4236, 1388, 21121, 1769, 3639, 596, 18, 8222, 2932, 32, 313, 4438, 451, 667, 5189, 10005, 24735, 5528, 2286, 1757, 451, 4438, 451, 667, 5189, 10005, 24735, 620, 1757, 451, 4438, 451, 667, 5189, 10005, 24735, 3779, 1757, 451, 4695, 313, 2984, 1769, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 924, 18, 2469, 31, 277, 27245, 3639, 288, 5411, 1250, 5949, 273, 629, 31, 13491, 368, 16698, 2477, 18, 25630, 5411, 309, 261, 2372, 63, 77, 8009, 2956, 18, 14963, 2932, 3384, 7923, 597, 10792, 261, 2372, 63, 77, 8009, 28157, 480, 446, 597, 18701, 924, 63, 77, 8009, 28157, 18, 14963, 2932, 25630, 6, 20349, 5411, 288, 7734, 5949, 273, 638, 31, 5411, 289, 15604, 596, 18, 1188, 2932, 1757, 4465, 4438, 4465, 667, 5189, 4165, 13559, 21121, 1769, 596, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 5080, 1435, 565, 1216, 1860, 16, 2252, 18, 4669, 18, 23116, 565, 288, 3639, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 7734, 368, 968, 777, 326, 1982, 3639, 21533, 620, 8526, 924, 273, 761, 18, 588, 5528, 12, 1180, 18, 15409, 16, 4342, 18, 15409, 16, 4342, 18, 15409, 1769, 7734, 596, 18, 8222, 2932, 32, 52, 5689, 33, 5693, 34, 5080, 1982, 1409, 1757, 52, 2984, 1769, 7734, 9984, 590, 273, 5411, 261, 2940, 18572, 13, 21442, 18, 588, 691, 5621, 7734, 368, 935, 992, 1057, 1014, 300, 21533, 652, 16, 460, 16, 2653, 3639, 596, 18, 8222, 2932, 32, 5693, 4438, 2121, 667, 5189, 1726, 4236, 1388, 21121, 1769, 3639, 596, 2 ]
for ( int i = 0; i < namesOfCachedSimpleNestedColumns.length; i++) { int j = getColumnIndex( namesOfCachedSimpleNestedColumns[i]); if( j!= INVALID_COLUMN_INDEX ) cachedResultSet[cachedResultSetRowNo][j] = this.nestedColumnUtil.getNestedColumnValue( namesOfCachedSimpleNestedColumns[i], currentRootPath );
for ( int i = 0; i < namesOfCachedSimpleNestedColumns.length; i++ ) { int j = getColumnIndex( namesOfCachedSimpleNestedColumns[i] ); if ( j != INVALID_COLUMN_INDEX ) cachedResultSet[cachedResultSetRowNo][j] = this.nestedColumnUtil.getNestedColumnValue( namesOfCachedSimpleNestedColumns[i], currentRootPath ); }
private void populateNestedXMLDataMappingColumns( String currentRootPath ) { for ( int i = 0; i < namesOfCachedComplexNestedColumns.length; i++) { int j = getColumnIndex( namesOfCachedComplexNestedColumns[i]); if ( j!= INVALID_COLUMN_INDEX) cachedResultSet[cachedResultSetRowNo][j] = this.spNestedQueryHelper.getNestedColumnUtil().getNestedColumnValue(namesOfCachedComplexNestedColumns[i],currentRootPath); } for ( int i = 0; i < namesOfCachedSimpleNestedColumns.length; i++) { int j = getColumnIndex( namesOfCachedSimpleNestedColumns[i]); if( j!= INVALID_COLUMN_INDEX ) cachedResultSet[cachedResultSetRowNo][j] = this.nestedColumnUtil.getNestedColumnValue( namesOfCachedSimpleNestedColumns[i], currentRootPath ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/857f08d2976a6c670029ef1e5217acb85d868190/SaxParserConsumer.java/clean/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/SaxParserConsumer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 8649, 4201, 751, 3233, 3380, 12, 514, 783, 21302, 262, 202, 95, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1257, 951, 9839, 12795, 8649, 3380, 18, 2469, 31, 277, 27245, 202, 202, 95, 1082, 202, 474, 525, 273, 6716, 1016, 12, 1257, 951, 9839, 12795, 8649, 3380, 63, 77, 19226, 1082, 202, 430, 261, 525, 5, 33, 10071, 67, 11009, 67, 9199, 13, 9506, 202, 7097, 13198, 63, 7097, 13198, 1999, 2279, 6362, 78, 65, 273, 333, 18, 1752, 8649, 1138, 2276, 18, 588, 8649, 1494, 1304, 7675, 588, 8649, 29515, 12, 1973, 951, 9839, 12795, 8649, 3380, 63, 77, 6487, 2972, 21302, 1769, 202, 202, 97, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1257, 951, 9839, 5784, 8649, 3380, 18, 2469, 31, 277, 27245, 202, 202, 95, 1082, 202, 474, 525, 273, 6716, 1016, 12, 1257, 951, 9839, 5784, 8649, 3380, 63, 77, 19226, 1082, 202, 430, 12, 525, 5, 33, 10071, 67, 11009, 67, 9199, 262, 9506, 202, 7097, 13198, 63, 7097, 13198, 1999, 2279, 6362, 78, 65, 273, 333, 18, 12985, 1494, 1304, 18, 588, 8649, 29515, 12, 1257, 951, 9839, 5784, 8649, 3380, 63, 77, 6487, 783, 21302, 11272, 202, 202, 97, 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, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 8649, 4201, 751, 3233, 3380, 12, 514, 783, 21302, 262, 202, 95, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1257, 951, 9839, 12795, 8649, 3380, 18, 2469, 31, 277, 27245, 202, 202, 95, 1082, 202, 474, 525, 273, 6716, 1016, 12, 1257, 951, 9839, 12795, 8649, 3380, 63, 77, 19226, 1082, 202, 430, 261, 525, 5, 33, 10071, 67, 11009, 67, 9199, 13, 9506, 202, 7097, 13198, 63, 7097, 13198, 1999, 2279, 6362, 78, 65, 273, 333, 18, 1752, 8649, 1138, 2276, 18, 588, 8649, 1494, 1304, 7675, 588, 8649, 29515, 12, 1973, 951, 9839, 12795, 8649, 3380, 63, 77, 6487, 2972, 21302, 1769, 202, 202, 97, 202, 202, 1884, 2 ]
throw new JMSException("Invalid acknowledgment: "+ack);
log.debug("Acknowledgment out of sync (Normally occurs when failover connection reconnects): "+ack);
synchronized public void acknowledge(final ConnectionContext context,final MessageAck ack) throws Exception{ // Handle the standard acknowledgment case. if(ack.isStandardAck()){ // Acknowledge all dispatched messages up till the message id of the acknowledgment. int index=0; boolean inAckRange=false; for(Iterator iter=dispatched.iterator();iter.hasNext();){ final MessageReference node=(MessageReference) iter.next(); MessageId messageId=node.getMessageId(); if(ack.getFirstMessageId()==null||ack.getFirstMessageId().equals(messageId)){ inAckRange=true; } if(inAckRange){ // Don't remove the nodes until we are committed. if(!context.isInTransaction()){ dequeueCounter++; node.getRegionDestination().getDestinationStatistics().getDequeues().increment(); iter.remove(); }else{ // setup a Synchronization to remove nodes from the dispatched list. context.getTransaction().addSynchronization(new Synchronization(){ public void afterCommit() throws Exception{ synchronized(PrefetchSubscription.this){ dequeueCounter++; dispatched.remove(node); node.getRegionDestination().getDestinationStatistics().getDequeues().increment(); prefetchExtension--; } } }); } index++; acknowledge(context,ack,node); if(ack.getLastMessageId().equals(messageId)){ if(context.isInTransaction()) { // extend prefetch window only if not a pulling consumer if (getPrefetchSize() != 0) { prefetchExtension=Math.max(prefetchExtension,index+1); } } else { prefetchExtension=Math.max(0,prefetchExtension-(index+1)); } dispatchMatched(); return; } } } log.info("Could not correlate acknowledgment with dispatched message: "+ack); }else if(ack.isDeliveredAck()){ // Message was delivered but not acknowledged: update pre-fetch counters. // Acknowledge all dispatched messages up till the message id of the acknowledgment. int index=0; for(Iterator iter=dispatched.iterator();iter.hasNext();index++){ final MessageReference node=(MessageReference) iter.next(); if(ack.getLastMessageId().equals(node.getMessageId())){ prefetchExtension=Math.max(prefetchExtension,index+1); dispatchMatched(); return; } } throw new JMSException("Could not correlate acknowledgment with dispatched message: "+ack); }else if(ack.isPoisonAck()){ // TODO: what if the message is already in a DLQ??? // Handle the poison ACK case: we need to send the message to a DLQ if(ack.isInTransaction()) throw new JMSException("Poison ack cannot be transacted: "+ack); // Acknowledge all dispatched messages up till the message id of the acknowledgment. int index=0; boolean inAckRange=false; for(Iterator iter=dispatched.iterator();iter.hasNext();){ final MessageReference node=(MessageReference) iter.next(); MessageId messageId=node.getMessageId(); if(ack.getFirstMessageId()==null||ack.getFirstMessageId().equals(messageId)){ inAckRange=true; } if(inAckRange){ sendToDLQ(context, node); node.getRegionDestination().getDestinationStatistics().getDequeues().increment(); iter.remove(); dequeueCounter++; index++; acknowledge(context,ack,node); if(ack.getLastMessageId().equals(messageId)){ prefetchExtension=Math.max(0,prefetchExtension-(index+1)); dispatchMatched(); return; } } } throw new JMSException("Could not correlate acknowledgment with dispatched message: "+ack); } if( isSlaveBroker() ) { throw new JMSException("Slave broker out of sync with master: Acknowledgment ("+ack+") was not in the dispatch list: "+dispatched); } else { throw new JMSException("Invalid acknowledgment: "+ack); } }
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/cafe4cbcc4cf31839ff5bdfb5af7a55a682ef075/PrefetchSubscription.java/buggy/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1071, 918, 28922, 12, 6385, 4050, 1042, 819, 16, 6385, 2350, 11931, 8479, 13, 1216, 1185, 95, 3639, 368, 5004, 326, 4529, 23262, 75, 475, 648, 18, 3639, 309, 12, 484, 18, 291, 8336, 11931, 10756, 95, 5411, 368, 22322, 14390, 777, 25513, 2743, 731, 21364, 326, 883, 612, 434, 326, 23262, 75, 475, 18, 5411, 509, 770, 33, 20, 31, 5411, 1250, 316, 11931, 2655, 33, 5743, 31, 5411, 364, 12, 3198, 1400, 33, 10739, 329, 18, 9838, 5621, 2165, 18, 5332, 2134, 5621, 15329, 7734, 727, 2350, 2404, 756, 28657, 1079, 2404, 13, 1400, 18, 4285, 5621, 7734, 2350, 548, 19090, 33, 2159, 18, 24906, 548, 5621, 7734, 309, 12, 484, 18, 588, 3759, 30550, 1435, 631, 2011, 20081, 484, 18, 588, 3759, 30550, 7675, 14963, 12, 2150, 548, 3719, 95, 10792, 316, 11931, 2655, 33, 3767, 31, 7734, 289, 7734, 309, 12, 267, 11931, 2655, 15329, 10792, 368, 7615, 1404, 1206, 326, 2199, 3180, 732, 854, 16015, 18, 10792, 309, 12, 5, 2472, 18, 291, 382, 3342, 10756, 95, 5397, 202, 323, 4000, 4789, 9904, 31, 5397, 202, 2159, 18, 588, 5165, 5683, 7675, 588, 5683, 8569, 7675, 588, 758, 18924, 7675, 15016, 5621, 13491, 1400, 18, 4479, 5621, 10792, 289, 12107, 95, 13491, 368, 3875, 279, 26535, 1588, 358, 1206, 2199, 628, 326, 25513, 666, 18, 13491, 819, 18, 588, 3342, 7675, 1289, 30196, 12, 2704, 26535, 1588, 1435, 95, 18701, 1071, 918, 1839, 5580, 1435, 1216, 1185, 95, 27573, 3852, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1071, 918, 28922, 12, 6385, 4050, 1042, 819, 16, 6385, 2350, 11931, 8479, 13, 1216, 1185, 95, 3639, 368, 5004, 326, 4529, 23262, 75, 475, 648, 18, 3639, 309, 12, 484, 18, 291, 8336, 11931, 10756, 95, 5411, 368, 22322, 14390, 777, 25513, 2743, 731, 21364, 326, 883, 612, 434, 326, 23262, 75, 475, 18, 5411, 509, 770, 33, 20, 31, 5411, 1250, 316, 11931, 2655, 33, 5743, 31, 5411, 364, 12, 3198, 1400, 33, 10739, 329, 18, 9838, 5621, 2165, 18, 5332, 2134, 5621, 15329, 7734, 727, 2350, 2404, 756, 28657, 1079, 2404, 13, 1400, 18, 4285, 5621, 7734, 2350, 548, 19090, 33, 2159, 18, 24906, 548, 5621, 7734, 309, 12, 484, 18, 588, 3759, 30550, 2 ]
return true;
isScheduled = true; break;
private boolean alreadyScheduled(OnmsIpInterface iface, CollectionSpecification spec) { String ipAddress = iface.getIpAddress(); String svcName = spec.getServiceName(); String pkgName = spec.getPackageName(); synchronized (m_collectableServices) { CollectableService cSvc = null; Iterator iter = m_collectableServices.iterator(); while (iter.hasNext()) { cSvc = (CollectableService) iter.next(); InetAddress addr = (InetAddress) cSvc.getAddress(); if (addr.getHostAddress().equals(ipAddress) && cSvc.getPackageName().equals(pkgName) && cSvc.getServiceName().equals(svcName)) { return true; } } } return false; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/264ba367c5fb944165c76872ca43a6f08c7cf103/Collectd.java/clean/opennms-services/src/main/java/org/opennms/netmgt/collectd/Collectd.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1818, 10660, 12, 1398, 959, 5273, 1358, 9751, 16, 5411, 2200, 8615, 857, 13, 288, 3639, 514, 17138, 273, 9751, 18, 588, 16875, 5621, 3639, 514, 7538, 461, 273, 857, 18, 588, 16789, 5621, 3639, 514, 27288, 273, 857, 18, 588, 18308, 5621, 3639, 3852, 261, 81, 67, 14676, 429, 5676, 13, 288, 5411, 9302, 429, 1179, 276, 17444, 273, 446, 31, 5411, 4498, 1400, 273, 312, 67, 14676, 429, 5676, 18, 9838, 5621, 5411, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 7734, 276, 17444, 273, 261, 10808, 429, 1179, 13, 1400, 18, 4285, 5621, 7734, 14218, 3091, 273, 261, 382, 278, 1887, 13, 276, 17444, 18, 588, 1887, 5621, 7734, 309, 261, 4793, 18, 588, 2594, 1887, 7675, 14963, 12, 625, 1887, 13, 13491, 597, 276, 17444, 18, 588, 18308, 7675, 14963, 12, 10657, 461, 13, 13491, 597, 276, 17444, 18, 588, 16789, 7675, 14963, 12, 30992, 461, 3719, 288, 10792, 353, 10660, 273, 638, 31, 898, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 327, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 1250, 1818, 10660, 12, 1398, 959, 5273, 1358, 9751, 16, 5411, 2200, 8615, 857, 13, 288, 3639, 514, 17138, 273, 9751, 18, 588, 16875, 5621, 3639, 514, 7538, 461, 273, 857, 18, 588, 16789, 5621, 3639, 514, 27288, 273, 857, 18, 588, 18308, 5621, 3639, 3852, 261, 81, 67, 14676, 429, 5676, 13, 288, 5411, 9302, 429, 1179, 276, 17444, 273, 446, 31, 5411, 4498, 1400, 273, 312, 67, 14676, 429, 5676, 18, 9838, 5621, 5411, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 7734, 276, 17444, 273, 261, 10808, 429, 1179, 13, 1400, 18, 4285, 5621, 7734, 14218, 3091, 273, 261, 382, 278, 1887, 13, 276, 17444, 18, 588, 1887, 5621, 7734, 309, 261, 4793, 18, 2 ]
cacheModules();
/*cacheModules();
public IModule[] getModules() { cacheModules(); ArrayList moduleList = new ArrayList(); for (Iterator iter = projects.values().iterator(); iter.hasNext();) { IModule[] element = (IModule[]) iter.next(); for (int j = 0; j < element.length; j++) { moduleList.add(element[j]); } } IModule[] modules = new IModule[moduleList.size()]; moduleList.toArray(modules); return modules; }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/a24f1f2edd14e021c0ae9f7ff3d0472b124e806f/EnterpriseApplicationDeployableFactory.java/buggy/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/deployables/EnterpriseApplicationDeployableFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3120, 8526, 336, 7782, 1435, 288, 202, 202, 2493, 7782, 5621, 202, 202, 19558, 1605, 682, 273, 394, 2407, 5621, 202, 202, 1884, 261, 3198, 1400, 273, 10137, 18, 2372, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 45, 3120, 8526, 930, 273, 261, 45, 3120, 63, 5717, 1400, 18, 4285, 5621, 1082, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 930, 18, 2469, 31, 525, 27245, 288, 9506, 202, 2978, 682, 18, 1289, 12, 2956, 63, 78, 19226, 1082, 202, 97, 202, 202, 97, 202, 202, 45, 3120, 8526, 4381, 273, 394, 467, 3120, 63, 2978, 682, 18, 1467, 1435, 15533, 202, 202, 2978, 682, 18, 31447, 12, 6400, 1769, 202, 202, 2463, 4381, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 3120, 8526, 336, 7782, 1435, 288, 202, 202, 2493, 7782, 5621, 202, 202, 19558, 1605, 682, 273, 394, 2407, 5621, 202, 202, 1884, 261, 3198, 1400, 273, 10137, 18, 2372, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 45, 3120, 8526, 930, 273, 261, 45, 3120, 63, 5717, 1400, 18, 4285, 5621, 1082, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 930, 18, 2469, 31, 525, 27245, 288, 9506, 202, 2978, 682, 18, 1289, 12, 2956, 63, 78, 19226, 1082, 202, 97, 202, 202, 97, 202, 202, 45, 3120, 8526, 4381, 273, 394, 467, 3120, 63, 2978, 682, 18, 1467, 1435, 15533, 202, 202, 2978, 682, 18, 31447, 12, 2 ]
throw new EJBException("Exception getting item: " + e +"<br>");
throw new RemoteException("Exception getting item: " + e +"<br>");
public String listWonItems(Integer userId, ItemHome iHome, QueryHome qHome) { Enumeration wonList=null; Query q; Item item; float price; String name; String html; // Get the list of the user's won items try { q = qHome.create(); wonList = q.getUserWonItems(userId).elements(); } catch (Exception e) { throw new EJBException("Exception getting won items list: " +e+"<br>"); } if ((wonList == null) || (!wonList.hasMoreElements())) { html = "<br>"; html = html.concat("<h3>You didn't win any item in the last 30 days.</h3>"); html = html.concat("<br>"); return html; } html = printUserWonItemHeader(); while (wonList.hasMoreElements()) { // Get the name of the items try { item = iHome.findByPrimaryKey((ItemPK)wonList.nextElement()); // display information about the item html = html.concat(item.printUserWonItem()); } catch (Exception e) { throw new EJBException("Exception getting item: " + e +"<br>"); } } html = html.concat(printItemFooter()); return html; }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/69c37257a1581e015b5a8a01582a0f0d4a10936c/SB_AboutMeBean.java/buggy/EJB_Session_facade/edu/rice/rubis/beans/SB_AboutMeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 666, 59, 265, 3126, 12, 4522, 6249, 16, 4342, 8684, 277, 8684, 16, 2770, 8684, 1043, 8684, 13, 282, 288, 565, 13864, 8462, 682, 33, 2011, 31, 565, 2770, 4202, 1043, 31, 565, 4342, 3639, 761, 31, 565, 1431, 4202, 6205, 31, 565, 514, 1377, 508, 31, 565, 514, 1377, 1729, 31, 565, 368, 968, 326, 666, 434, 326, 729, 1807, 8462, 1516, 565, 775, 377, 288, 1377, 1043, 273, 1043, 8684, 18, 2640, 5621, 1377, 8462, 682, 273, 1043, 18, 588, 1299, 59, 265, 3126, 12, 18991, 2934, 6274, 5621, 565, 289, 565, 1044, 261, 503, 425, 13, 565, 288, 1377, 604, 394, 12157, 503, 2932, 503, 8742, 8462, 1516, 666, 30, 315, 397, 73, 9078, 32, 2848, 2984, 1769, 565, 289, 565, 309, 14015, 91, 265, 682, 422, 446, 13, 747, 16051, 91, 265, 682, 18, 5332, 7417, 3471, 1435, 3719, 565, 288, 1377, 1729, 273, 3532, 2848, 2984, 31, 1377, 1729, 273, 1729, 18, 16426, 2932, 32, 76, 23, 34, 6225, 10242, 1404, 5657, 1281, 761, 316, 326, 1142, 5196, 4681, 17347, 76, 23, 2984, 1769, 1377, 1729, 273, 1729, 18, 16426, 2932, 32, 2848, 2984, 1769, 1377, 327, 1729, 31, 565, 289, 565, 1729, 273, 1172, 1299, 59, 265, 1180, 1864, 5621, 565, 1323, 261, 91, 265, 682, 18, 5332, 7417, 3471, 10756, 377, 288, 1377, 368, 968, 326, 508, 434, 326, 1516, 1377, 775, 1377, 288, 3639, 761, 273, 277, 8684, 18, 4720, 858, 11575, 12443, 1180, 8784, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 59, 265, 3126, 12, 4522, 6249, 16, 4342, 8684, 277, 8684, 16, 2770, 8684, 1043, 8684, 13, 282, 288, 565, 13864, 8462, 682, 33, 2011, 31, 565, 2770, 4202, 1043, 31, 565, 4342, 3639, 761, 31, 565, 1431, 4202, 6205, 31, 565, 514, 1377, 508, 31, 565, 514, 1377, 1729, 31, 565, 368, 968, 326, 666, 434, 326, 729, 1807, 8462, 1516, 565, 775, 377, 288, 1377, 1043, 273, 1043, 8684, 18, 2640, 5621, 1377, 8462, 682, 273, 1043, 18, 588, 1299, 59, 265, 3126, 12, 18991, 2934, 6274, 5621, 565, 289, 565, 1044, 261, 503, 425, 13, 565, 288, 1377, 604, 394, 12157, 503, 2932, 503, 8742, 8462, 1516, 666, 30, 315, 397, 73, 2 ]
OPT_LTDominators.perform(ir, true);
OPT_LTDominators.perform(ir, true, true);
public void translateFromSSA (OPT_IR ir) { // 0. Deal with guards (validation registers) unSSAGuards (ir); // 1. re-compute dominator tree in case of control flow changes // (parmeter specifies we want regular dominators, not post-doms) OPT_LTDominators.perform(ir, true); OPT_DominatorTree dom = new OPT_DominatorTree(ir, true); // 2. compute liveness OPT_LiveAnalysis live = new OPT_LiveAnalysis(false, // don't create GC maps true); // skip (final) local propagation step // of live analysis live.perform(ir); // 3. initialization VariableStacks s = new VariableStacks(); // 4. convert phi nodes into copies OPT_BasicBlock b = ((OPT_DominatorTreeNode)dom.getRoot()).getBlock(); insertCopies(b, dom, live, s); // 5. phis are now redundant removeAllPhis(ir); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4b80aa8768f0d84f3d0950e8785cb6513b45cb79/OPT_LeaveSSA.java/clean/rvm/src/vm/compilers/optimizing/optimizations/global/ssa/builder/OPT_LeaveSSA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4204, 1265, 1260, 37, 261, 15620, 67, 7937, 9482, 13, 288, 565, 368, 374, 18, 28998, 598, 11026, 87, 261, 8685, 10285, 13, 565, 640, 1260, 1781, 89, 14727, 261, 481, 1769, 3639, 368, 404, 18, 283, 17, 9200, 4092, 4240, 2151, 316, 648, 434, 3325, 4693, 3478, 565, 368, 565, 261, 1065, 81, 847, 11470, 732, 2545, 6736, 4092, 30425, 16, 486, 1603, 17, 9859, 87, 13, 282, 16456, 67, 12050, 8832, 30425, 18, 16092, 12, 481, 16, 638, 16, 638, 1769, 565, 16456, 67, 8832, 4240, 2471, 4092, 273, 394, 16456, 67, 8832, 4240, 2471, 12, 481, 16, 638, 1769, 565, 368, 576, 18, 3671, 328, 31051, 565, 16456, 67, 12328, 9418, 8429, 273, 4202, 394, 16456, 67, 12328, 9418, 12, 5743, 16, 225, 368, 2727, 1404, 752, 15085, 7565, 9506, 282, 638, 1769, 225, 368, 2488, 261, 6385, 13, 1191, 25686, 2235, 4766, 282, 368, 434, 8429, 6285, 565, 8429, 18, 16092, 12, 481, 1769, 565, 368, 890, 18, 10313, 565, 7110, 28090, 272, 273, 394, 7110, 28090, 5621, 565, 368, 1059, 18, 1765, 7706, 2199, 1368, 13200, 565, 16456, 67, 8252, 1768, 324, 273, 14015, 15620, 67, 8832, 4240, 12513, 13, 9859, 18, 588, 2375, 1435, 2934, 588, 1768, 5621, 565, 2243, 15670, 12, 70, 16, 4092, 16, 8429, 16, 272, 1769, 565, 368, 1381, 18, 1844, 291, 854, 2037, 19530, 565, 12787, 3731, 291, 12, 481, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4204, 1265, 1260, 37, 261, 15620, 67, 7937, 9482, 13, 288, 565, 368, 374, 18, 28998, 598, 11026, 87, 261, 8685, 10285, 13, 565, 640, 1260, 1781, 89, 14727, 261, 481, 1769, 3639, 368, 404, 18, 283, 17, 9200, 4092, 4240, 2151, 316, 648, 434, 3325, 4693, 3478, 565, 368, 565, 261, 1065, 81, 847, 11470, 732, 2545, 6736, 4092, 30425, 16, 486, 1603, 17, 9859, 87, 13, 282, 16456, 67, 12050, 8832, 30425, 18, 16092, 12, 481, 16, 638, 16, 638, 1769, 565, 16456, 67, 8832, 4240, 2471, 4092, 273, 394, 16456, 67, 8832, 4240, 2471, 12, 481, 16, 638, 1769, 565, 368, 576, 18, 3671, 328, 31051, 565, 16456, 67, 12328, 9418, 8429, 273, 2 ]
if (scaledImage == null || scaledImage.getHeight(null) != h) { scaledImage = tileImage.getScaledInstance( (int)(getWidth() * zoom), h, BufferedImage.SCALE_SMOOTH); MediaTracker mediaTracker = new MediaTracker(new Canvas()); mediaTracker.addImage(scaledImage, 0); try { mediaTracker.waitForID(0); } catch (InterruptedException ie) { System.err.println(ie); return null; } mediaTracker.removeImage(scaledImage);
scaledImage = tileImage.getScaledInstance( (int)(getWidth() * zoom), h, BufferedImage.SCALE_SMOOTH); MediaTracker mediaTracker = new MediaTracker(new Canvas()); mediaTracker.addImage(scaledImage, 0); try { mediaTracker.waitForID(0);
public Image getScaledImage(double zoom) { int h = (int)(tileImage.getHeight(null) * zoom); if (scaledImage == null || scaledImage.getHeight(null) != h) { scaledImage = tileImage.getScaledInstance( (int)(getWidth() * zoom), h, BufferedImage.SCALE_SMOOTH); MediaTracker mediaTracker = new MediaTracker(new Canvas()); mediaTracker.addImage(scaledImage, 0); try { mediaTracker.waitForID(0); } catch (InterruptedException ie) { System.err.println(ie); return null; } mediaTracker.removeImage(scaledImage); } return scaledImage; }
6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/4df9e0a272d41553877f43e9891410cfffd42dc4/Tile.java/buggy/tiled/core/Tile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 1322, 12825, 2040, 12, 9056, 7182, 13, 288, 202, 202, 474, 366, 273, 261, 474, 21433, 15368, 2040, 18, 588, 2686, 12, 2011, 13, 380, 7182, 1769, 202, 202, 430, 261, 20665, 2040, 422, 446, 747, 12304, 2040, 18, 588, 2686, 12, 2011, 13, 480, 366, 13, 288, 1082, 202, 20665, 2040, 273, 4769, 2040, 18, 588, 55, 12825, 1442, 12, 6862, 202, 12, 474, 21433, 588, 2384, 1435, 380, 7182, 3631, 366, 16, 6862, 202, 17947, 2040, 18, 19378, 67, 55, 5980, 18307, 1769, 1082, 202, 5419, 8135, 3539, 8135, 273, 394, 6128, 8135, 12, 2704, 20966, 10663, 1082, 202, 5829, 8135, 18, 1289, 2040, 12, 20665, 2040, 16, 374, 1769, 1082, 202, 698, 288, 9506, 202, 5829, 8135, 18, 7048, 1290, 734, 12, 20, 1769, 1082, 202, 97, 1082, 202, 14683, 261, 24485, 503, 9228, 13, 288, 9506, 202, 3163, 18, 370, 18, 8222, 12, 1385, 1769, 9506, 202, 2463, 446, 31, 1082, 202, 97, 1082, 202, 5829, 8135, 18, 4479, 2040, 12, 20665, 2040, 1769, 202, 202, 97, 202, 202, 2463, 12304, 2040, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3421, 1322, 12825, 2040, 12, 9056, 7182, 13, 288, 202, 202, 474, 366, 273, 261, 474, 21433, 15368, 2040, 18, 588, 2686, 12, 2011, 13, 380, 7182, 1769, 202, 202, 430, 261, 20665, 2040, 422, 446, 747, 12304, 2040, 18, 588, 2686, 12, 2011, 13, 480, 366, 13, 288, 1082, 202, 20665, 2040, 273, 4769, 2040, 18, 588, 55, 12825, 1442, 12, 6862, 202, 12, 474, 21433, 588, 2384, 1435, 380, 7182, 3631, 366, 16, 6862, 202, 17947, 2040, 18, 19378, 67, 55, 5980, 18307, 1769, 1082, 202, 5419, 8135, 3539, 8135, 273, 394, 6128, 8135, 12, 2704, 20966, 10663, 1082, 202, 5829, 8135, 18, 1289, 2040, 12, 20665, 2040, 16, 374, 1769, 1082, 202, 698, 2 ]
public DiagramDocumentEditor(boolean hasFlyoutPalette) { this(MEditingDomain.INSTANCE, hasFlyoutPalette);
public DiagramDocumentEditor(MEditingDomain domain, boolean hasFlyoutPalette) { super(hasFlyoutPalette); fEditingDomain = domain;
public DiagramDocumentEditor(boolean hasFlyoutPalette) { this(MEditingDomain.INSTANCE, hasFlyoutPalette); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/DiagramDocumentEditor.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.resources.editor/src/org/eclipse/gmf/runtime/diagram/ui/resources/editor/internal/parts/DiagramDocumentEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14539, 1940, 2519, 6946, 12, 6494, 711, 42, 715, 659, 25863, 13, 288, 202, 202, 2211, 12, 958, 72, 305, 310, 3748, 18, 13341, 16, 711, 42, 715, 659, 25863, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14539, 1940, 2519, 6946, 12, 6494, 711, 42, 715, 659, 25863, 13, 288, 202, 202, 2211, 12, 958, 72, 305, 310, 3748, 18, 13341, 16, 711, 42, 715, 659, 25863, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg;
public RubyObject m_protected_instance_methods(RubyObject[] args) { boolean includeSuper = false; if (args.length > 0) { includeSuper = args[0].isTrue(); } return methodList(includeSuper, new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } else if ((body.getNoex() & Constants.NOEX_PROTECTED) != 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { ary.push(name); } } else if (body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } }); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 1117, 67, 1336, 67, 5163, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 6494, 2341, 8051, 273, 629, 31, 202, 202, 430, 261, 1968, 18, 2469, 405, 374, 13, 288, 1082, 202, 6702, 8051, 273, 833, 63, 20, 8009, 291, 5510, 5621, 202, 202, 97, 202, 202, 2463, 707, 682, 12, 6702, 8051, 16, 394, 19817, 863, 1305, 1435, 288, 1082, 202, 482, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 9506, 202, 759, 4812, 833, 9506, 202, 54, 10340, 548, 612, 273, 261, 54, 10340, 548, 13, 498, 31, 9506, 202, 1305, 907, 1417, 273, 261, 1305, 907, 13, 460, 31, 9506, 202, 54, 10340, 1076, 11841, 273, 261, 54, 10340, 1076, 13, 1501, 31, 9506, 202, 430, 261, 3432, 18, 588, 2250, 907, 1435, 422, 446, 13, 288, 6862, 202, 814, 18, 6206, 12, 588, 54, 10340, 7675, 588, 12616, 10663, 6862, 202, 814, 18, 6206, 12, 54, 10340, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 1435, 10019, 9506, 202, 97, 469, 309, 14015, 3432, 18, 588, 2279, 338, 1435, 473, 5245, 18, 3417, 2294, 67, 3373, 26729, 13, 480, 374, 13, 288, 6862, 202, 54, 10340, 780, 508, 273, 19817, 780, 18, 81, 67, 2704, 780, 12, 588, 54, 10340, 9334, 612, 18, 869, 461, 10663, 6862, 202, 430, 261, 814, 18, 81, 67, 18499, 12, 529, 2934, 291, 8381, 10756, 288, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19817, 921, 312, 67, 1117, 67, 1336, 67, 5163, 12, 54, 10340, 921, 8526, 833, 13, 288, 202, 202, 6494, 2341, 8051, 273, 629, 31, 202, 202, 430, 261, 1968, 18, 2469, 405, 374, 13, 288, 1082, 202, 6702, 8051, 273, 833, 63, 20, 8009, 291, 5510, 5621, 202, 202, 97, 202, 202, 2463, 707, 682, 12, 6702, 8051, 16, 394, 19817, 863, 1305, 1435, 288, 1082, 202, 482, 509, 1836, 12, 921, 498, 16, 1033, 460, 16, 1033, 1501, 13, 288, 9506, 202, 759, 4812, 833, 9506, 202, 54, 10340, 548, 612, 273, 261, 54, 10340, 548, 13, 498, 31, 9506, 202, 1305, 907, 1417, 273, 261, 1305, 907, 13, 460, 31, 9506, 202, 54, 2 ]