rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
if ("org.eclipse.osgi".equals(id)) continue; buffer.append(id); if ("org.eclipse.equinox.common".equals(id) || "org.eclipse.core.jobs".equals(id) || "org.eclipse.equinox.registry".equals(id)) { buffer.append("@2:start"); } else if ("org.eclipse.core.runtime".equals(id)) { if (refactoredRuntime) { buffer.append("@3:start"); } else { buffer.append("@2:start"); }
if (!initialSet.contains(id)) { if (buffer.length() > 0) buffer.append(','); buffer.append(id);
private static Properties createNewPropertiesFile(String productID, Map map) { Properties properties = new Properties(); properties.setProperty("osgi.install.area", "file:" + ExternalModelManager.getEclipseHome().toOSString()); //$NON-NLS-1$ //$NON-NLS-2$ properties.setProperty("osgi.configuration.cascaded", "false"); //$NON-NLS-1$ //$NON-NLS-2$ properties.setProperty("osgi.framework", "org.eclipse.osgi"); //$NON-NLS-1$ //$NON-NLS-2$ if (productID != null) addSplashLocation(properties, productID, map); boolean refactoredRuntime = TargetPlatform.isRuntimeRefactored(); if (map.containsKey("org.eclipse.update.configurator")) { //$NON-NLS-1$ StringBuffer buffer = new StringBuffer(); if (refactoredRuntime) { buffer.append("org.eclipse.equinox.common@2:start,"); //$NON-NLS-1$ buffer.append("org.eclipse.core.jobs@2:start,"); //$NON-NLS-1$ buffer.append("org.eclipse.equinox.registry@2:start,"); //$NON-NLS-1$ buffer.append("org.eclipse.equinox.preferences,"); //$NON-NLS-1$ buffer.append("org.eclipse.core.contenttype,"); //$NON-NLS-1$ buffer.append("org.eclipse.core.runtime@3:start,org.eclipse.update.configurator@4:start"); //$NON-NLS-1$ } else { buffer.append("org.eclipse.core.runtime@2:start,org.eclipse.update.configurator@3:start"); //$NON-NLS-1$ } properties.setProperty("osgi.bundles", buffer.toString()); //$NON-NLS-1$ } else { StringBuffer buffer = new StringBuffer(); Iterator iter = map.keySet().iterator(); while (iter.hasNext()) { String id = iter.next().toString(); if ("org.eclipse.osgi".equals(id)) //$NON-NLS-1$ continue; buffer.append(id); if ("org.eclipse.equinox.common".equals(id) //$NON-NLS-1$ || "org.eclipse.core.jobs".equals(id) //$NON-NLS-1$ || "org.eclipse.equinox.registry".equals(id)) { //$NON-NLS-1$ buffer.append("@2:start"); //$NON-NLS-1$ } else if ("org.eclipse.core.runtime".equals(id)) { //$NON-NLS-1$ if (refactoredRuntime) { buffer.append("@3:start"); //$NON-NLS-1$ } else { buffer.append("@2:start"); //$NON-NLS-1$ } } if (iter.hasNext()) buffer.append(","); //$NON-NLS-1$ } properties.setProperty("osgi.bundles", buffer.toString()); //$NON-NLS-1$ } if (refactoredRuntime) properties.setProperty("osgi.bundles.defaultStartLevel", "5"); //$NON-NLS-1$ //$NON-NLS-2$ else properties.setProperty("osgi.bundles.defaultStartLevel", "4"); //$NON-NLS-1$ //$NON-NLS-2$ return properties; }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/133f925c6c225420130479544ca4aab481d6b54a/LaunchConfigurationHelper.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/launcher/LaunchConfigurationHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 6183, 15291, 2297, 812, 12, 780, 3017, 734, 16, 1635, 852, 13, 288, 202, 202, 2297, 1790, 273, 394, 6183, 5621, 202, 202, 4738, 18, 542, 1396, 2932, 538, 10052, 18, 5425, 18, 5036, 3113, 315, 768, 2773, 397, 11352, 1488, 1318, 18, 588, 23057, 10472, 8684, 7675, 869, 4618, 780, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 202, 4738, 18, 542, 1396, 2932, 538, 10052, 18, 7025, 18, 71, 3691, 2435, 3113, 315, 5743, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 202, 4738, 18, 542, 1396, 2932, 538, 10052, 18, 12303, 3113, 315, 3341, 18, 20416, 18, 538, 10052, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 202, 430, 261, 5896, 734, 480, 446, 13, 1082, 202, 1289, 16881, 961, 2735, 12, 4738, 16, 3017, 734, 16, 852, 1769, 202, 202, 6494, 283, 3493, 7653, 5576, 273, 5916, 8201, 18, 291, 5576, 426, 3493, 7653, 5621, 202, 202, 430, 261, 1458, 18, 12298, 653, 2932, 3341, 18, 20416, 18, 2725, 18, 1425, 10662, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 1082, 202, 430, 261, 266, 3493, 7653, 5576, 13, 288, 9506, 202, 4106, 18, 6923, 2932, 3341, 18, 20416, 18, 14298, 267, 2409, 18, 6054, 36, 22, 30, 1937, 16, 8863, 4329, 3993, 17, 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, 760, 6183, 15291, 2297, 812, 12, 780, 3017, 734, 16, 1635, 852, 13, 288, 202, 202, 2297, 1790, 273, 394, 6183, 5621, 202, 202, 4738, 18, 542, 1396, 2932, 538, 10052, 18, 5425, 18, 5036, 3113, 315, 768, 2773, 397, 11352, 1488, 1318, 18, 588, 23057, 10472, 8684, 7675, 869, 4618, 780, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 202, 4738, 18, 542, 1396, 2932, 538, 10052, 18, 7025, 18, 71, 3691, 2435, 3113, 315, 5743, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 202, 4738, 18, 542, 1396, 2932, 538, 10052, 18, 12303, 3113, 315, 3341, 18, 20416, 2 ]
public org.quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { org.quickfix.field.LocaleOfIssue value = new org.quickfix.field.LocaleOfIssue();
public quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { quickfix.field.LocaleOfIssue value = new quickfix.field.LocaleOfIssue();
public org.quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { org.quickfix.field.LocaleOfIssue value = new org.quickfix.field.LocaleOfIssue(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStrikePrice.java/clean/src/java/src/quickfix/fix44/ListStrikePrice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 9595, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 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, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 9595, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 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, -100, -100, -100, -100, -100 ]
botmain interviewbot = initbots(3,"filler");
botmain interviewbot = initbots(3,"");
public static void main(String[] args) { botmain interviewbot = initbots(3,"filler"); sleep(4); startServer(8082); configureServer(interviewbot); updateLoop(); link.closeConnection(); }
6771 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6771/e868249d5c328eeba493302487ff9e277983b7d4/aimup.java/clean/mice/rebuild/bots/aim/aimup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 202, 95, 202, 202, 4819, 5254, 1554, 1945, 4819, 273, 1208, 4819, 87, 12, 23, 10837, 5935, 264, 8863, 202, 202, 19607, 12, 24, 1769, 202, 202, 1937, 2081, 12, 3672, 11149, 1769, 202, 202, 14895, 2081, 12, 2761, 1945, 4819, 1769, 202, 202, 2725, 6452, 5621, 202, 202, 1232, 18, 4412, 1952, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 2774, 12, 780, 8526, 833, 13, 202, 95, 202, 202, 4819, 5254, 1554, 1945, 4819, 273, 1208, 4819, 87, 12, 23, 10837, 5935, 264, 8863, 202, 202, 19607, 12, 24, 1769, 202, 202, 1937, 2081, 12, 3672, 11149, 1769, 202, 202, 14895, 2081, 12, 2761, 1945, 4819, 1769, 202, 202, 2725, 6452, 5621, 202, 202, 1232, 18, 4412, 1952, 5621, 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 ]
redirectUrl = "https: ((includePort) ? (":" + httpsPort) : "") + contextPath + loginFormUrl;
redirectUrl = "https: + ((includePort) ? (":" + httpsPort) : "") + contextPath + loginFormUrl;
public void commence(ServletRequest request, ServletResponse response, AuthenticationException authException) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; String scheme = request.getScheme(); String serverName = request.getServerName(); int serverPort = portResolver.getServerPort(request); String contextPath = req.getContextPath(); boolean inHttp = "http".equals(scheme.toLowerCase()); boolean inHttps = "https".equals(scheme.toLowerCase()); boolean includePort = ((inHttp && (serverPort == 80)) || (inHttps && (serverPort == 443))); if ("http".equals(scheme.toLowerCase()) && (serverPort == 80)) { includePort = false; } if ("https".equals(scheme.toLowerCase()) && (serverPort == 443)) { includePort = false; } String redirectUrl = contextPath + loginFormUrl; if (forceHttps && inHttp) { Integer httpPort = new Integer(portResolver.getServerPort(request)); Integer httpsPort = (Integer) portMapper.lookupHttpsPort(httpPort); if (httpsPort != null) { if (httpsPort.intValue() == 443) { includePort = false; } else { includePort = true; } redirectUrl = "https://" + serverName + ((includePort) ? (":" + httpsPort) : "") + contextPath + loginFormUrl; } } if (logger.isDebugEnabled()) { logger.debug("Redirecting to: " + redirectUrl); } ((HttpServletResponse) response).sendRedirect(((HttpServletResponse) response).encodeRedirectURL( redirectUrl)); }
57740 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57740/3a01e48b171340ed4adaffda56e197430923f266/AuthenticationProcessingFilterEntryPoint.java/buggy/core/src/main/java/org/acegisecurity/ui/webapp/AuthenticationProcessingFilterEntryPoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1543, 802, 12, 18572, 590, 16, 7971, 1064, 766, 16, 3639, 23458, 1357, 503, 13, 3639, 1216, 1860, 16, 16517, 288, 3639, 9984, 1111, 273, 261, 2940, 18572, 13, 590, 31, 3639, 514, 4355, 273, 590, 18, 588, 9321, 5621, 3639, 514, 10926, 273, 590, 18, 588, 28434, 5621, 3639, 509, 1438, 2617, 273, 1756, 4301, 18, 588, 2081, 2617, 12, 2293, 1769, 3639, 514, 23154, 273, 1111, 18, 29120, 743, 5621, 3639, 1250, 316, 2940, 273, 315, 2505, 9654, 14963, 12, 9068, 18, 869, 5630, 10663, 3639, 1250, 316, 22077, 273, 315, 4528, 9654, 14963, 12, 9068, 18, 869, 5630, 10663, 3639, 1250, 2341, 2617, 273, 14015, 267, 2940, 597, 261, 3567, 2617, 422, 8958, 3719, 747, 5411, 261, 267, 22077, 597, 261, 3567, 2617, 422, 23796, 3719, 1769, 3639, 309, 7566, 2505, 9654, 14963, 12, 9068, 18, 869, 5630, 10756, 597, 261, 3567, 2617, 422, 8958, 3719, 288, 5411, 2341, 2617, 273, 629, 31, 3639, 289, 3639, 309, 7566, 4528, 9654, 14963, 12, 9068, 18, 869, 5630, 10756, 597, 261, 3567, 2617, 422, 23796, 3719, 288, 5411, 2341, 2617, 273, 629, 31, 3639, 289, 3639, 514, 25372, 273, 23154, 397, 3925, 1204, 1489, 31, 3639, 309, 261, 5734, 22077, 597, 316, 2940, 13, 288, 5411, 2144, 1062, 2617, 273, 394, 2144, 12, 655, 4301, 18, 588, 2081, 2617, 12, 2293, 10019, 5411, 2144, 2333, 2617, 273, 261, 4522, 13, 1756, 4597, 18, 8664, 22077, 2617, 12, 2505, 2617, 1769, 5411, 309, 261, 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, 1543, 802, 12, 18572, 590, 16, 7971, 1064, 766, 16, 3639, 23458, 1357, 503, 13, 3639, 1216, 1860, 16, 16517, 288, 3639, 9984, 1111, 273, 261, 2940, 18572, 13, 590, 31, 3639, 514, 4355, 273, 590, 18, 588, 9321, 5621, 3639, 514, 10926, 273, 590, 18, 588, 28434, 5621, 3639, 509, 1438, 2617, 273, 1756, 4301, 18, 588, 2081, 2617, 12, 2293, 1769, 3639, 514, 23154, 273, 1111, 18, 29120, 743, 5621, 3639, 1250, 316, 2940, 273, 315, 2505, 9654, 14963, 12, 9068, 18, 869, 5630, 10663, 3639, 1250, 316, 22077, 273, 315, 4528, 9654, 14963, 12, 9068, 18, 869, 5630, 10663, 3639, 1250, 2341, 2617, 273, 14015, 267, 2940, 597, 261, 3567, 2617, 422, 8958, 2 ]
if (atom.getX2d() < 0 && shiftX > atom.getX2d() - 10)
if (((Point2d)r2dm.getRenderingCoordinate(atom)).x < 0 && shiftX > ((Point2d)r2dm.getRenderingCoordinate(atom)).x - 10)
void centerAtom(IAtom atom, IChemModel chemModel) { double smallestx=Integer.MAX_VALUE; double largestx=Integer.MIN_VALUE; double smallesty=Integer.MAX_VALUE; double largesty=Integer.MIN_VALUE; IAtomContainer allinone=SetOfMoleculesManipulator.getAllInOneContainer(chemModel.getSetOfMolecules()); for(int i=0;i<allinone.getAtomCount();i++){ if(allinone.getAtomAt(i).getPoint2d().x<smallestx) smallestx=allinone.getAtomAt(i).getPoint2d().x; if(allinone.getAtomAt(i).getPoint2d().y<smallesty) smallesty=allinone.getAtomAt(i).getPoint2d().y; if(allinone.getAtomAt(i).getPoint2d().x>largestx) largestx=allinone.getAtomAt(i).getPoint2d().x; if(allinone.getAtomAt(i).getPoint2d().y>largesty) largesty=allinone.getAtomAt(i).getPoint2d().y; } int xstretch=((int)(largestx-smallestx))+20; int ystretch=((int)(largesty-smallesty))+20; if(xstretch<r2dm.getBackgroundDimension().width) xstretch=r2dm.getBackgroundDimension().width; if(ystretch<r2dm.getBackgroundDimension().height) ystretch=r2dm.getBackgroundDimension().height; r2dm.setBackgroundDimension(new Dimension(xstretch,ystretch)); if (atom == null) { return; } if (atom.getX2d() < 0 && shiftX > atom.getX2d() - 10) { shiftX = atom.getX2d() - 10; } if (atom.getX2d() > r2dm.getBackgroundDimension().getWidth() && shiftX < atom.getX2d() - r2dm.getBackgroundDimension().getWidth() + 10) { shiftX = atom.getX2d() - r2dm.getBackgroundDimension().getWidth() + 10; } if (atom.getY2d() < 0 && shiftY > atom.getY2d() - 10) { shiftY = atom.getY2d() - 10; } if (atom.getY2d() > r2dm.getBackgroundDimension().getHeight() && shiftY < atom.getY2d() - r2dm.getBackgroundDimension().getHeight() + 10) { shiftY = atom.getY2d() - r2dm.getBackgroundDimension().getHeight() + 10; } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/948cfaa939b42d113ae5ceb65b72ea94d1b4e017/AbstractController2D.java/buggy/src/org/openscience/cdk/controller/AbstractController2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 918, 4617, 3641, 12, 45, 3641, 3179, 16, 29681, 1488, 19028, 1488, 13, 202, 95, 1082, 1645, 13541, 92, 33, 4522, 18, 6694, 67, 4051, 31, 1082, 1645, 12756, 92, 33, 4522, 18, 6236, 67, 4051, 31, 1082, 1645, 13541, 93, 33, 4522, 18, 6694, 67, 4051, 31, 1082, 1645, 12756, 93, 33, 4522, 18, 6236, 67, 4051, 31, 1082, 13922, 777, 267, 476, 33, 694, 951, 49, 29466, 27587, 18, 588, 1595, 382, 3335, 2170, 12, 1036, 1488, 18, 588, 694, 951, 49, 29466, 10663, 1082, 364, 12, 474, 277, 33, 20, 31, 77, 32, 454, 267, 476, 18, 588, 3641, 1380, 5621, 77, 27245, 95, 9506, 309, 12, 454, 267, 476, 18, 588, 3641, 861, 12, 77, 2934, 588, 2148, 22, 72, 7675, 92, 32, 12019, 395, 92, 13, 6862, 13541, 92, 33, 454, 267, 476, 18, 588, 3641, 861, 12, 77, 2934, 588, 2148, 22, 72, 7675, 92, 31, 9506, 309, 12, 454, 267, 476, 18, 588, 3641, 861, 12, 77, 2934, 588, 2148, 22, 72, 7675, 93, 32, 12019, 395, 93, 13, 6862, 13541, 93, 33, 454, 267, 476, 18, 588, 3641, 861, 12, 77, 2934, 588, 2148, 22, 72, 7675, 93, 31, 9506, 309, 12, 454, 267, 476, 18, 588, 3641, 861, 12, 77, 2934, 588, 2148, 22, 72, 7675, 92, 34, 80, 11475, 92, 13, 6862, 12756, 92, 33, 454, 267, 476, 18, 588, 3641, 861, 12, 77, 2934, 588, 2148, 22, 72, 7675, 92, 31, 9506, 309, 12, 454, 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, 3196, 918, 4617, 3641, 12, 45, 3641, 3179, 16, 29681, 1488, 19028, 1488, 13, 202, 95, 1082, 1645, 13541, 92, 33, 4522, 18, 6694, 67, 4051, 31, 1082, 1645, 12756, 92, 33, 4522, 18, 6236, 67, 4051, 31, 1082, 1645, 13541, 93, 33, 4522, 18, 6694, 67, 4051, 31, 1082, 1645, 12756, 93, 33, 4522, 18, 6236, 67, 4051, 31, 1082, 13922, 777, 267, 476, 33, 694, 951, 49, 29466, 27587, 18, 588, 1595, 382, 3335, 2170, 12, 1036, 1488, 18, 588, 694, 951, 49, 29466, 10663, 1082, 364, 12, 474, 277, 33, 20, 31, 77, 32, 454, 267, 476, 18, 588, 3641, 1380, 5621, 77, 27245, 95, 9506, 309, 12, 454, 267, 476, 18, 588, 3641, 861, 12, 2 ]
public ContentType(String contentType, String contentSubtype) { this(); this.setContentType(contentType, contentSubtype);
public ContentType() { super(CONTENT_TYPE);
public ContentType(String contentType, String contentSubtype) { this(); this.setContentType(contentType, contentSubtype); }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/60cb14c753a84efa4e55de2985207d7aa33d75bd/ContentType.java/buggy/trunk/src/gov/nist/javax/sip/header/ContentType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 11691, 12, 780, 5064, 16, 514, 913, 1676, 723, 13, 288, 202, 202, 2211, 5621, 202, 202, 2211, 18, 542, 8046, 12, 22194, 16, 913, 1676, 723, 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, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11691, 12, 780, 5064, 16, 514, 913, 1676, 723, 13, 288, 202, 202, 2211, 5621, 202, 202, 2211, 18, 542, 8046, 12, 22194, 16, 913, 1676, 723, 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, -100, -100, -100 ]
if (lVar.isParameter()) {
if (lVar != null && lVar.isParameter()) {
private void visitCall(Node node, int type, Node child) { /* * Generate code for call. */ Node chelsea = child; // remember the first child for later OptFunctionNode target = (OptFunctionNode)node.getProp(Node.DIRECTCALL_PROP); if (target != null) { generateCodeFromNode(child, node, -1, -1); int regularCall = acquireLabel(); String className = classFile.fullyQualifiedForm(target.getClassName()); String fieldName = className.replace('/', '_'); classFile.add(ByteCode.GETSTATIC, classFile.fullyQualifiedForm(className), fieldName, "L" + className + ";"); short stackHeight = classFile.getStackTop(); addByteCode(ByteCode.DUP2); addByteCode(ByteCode.IF_ACMPNE, regularCall); addByteCode(ByteCode.SWAP); addByteCode(ByteCode.POP); addByteCode(ByteCode.DUP); classFile.add(ByteCode.INVOKEINTERFACE, "org/mozilla/javascript/Scriptable", "getParentScope", "()", "Lorg/mozilla/javascript/Scriptable;"); aload(contextLocal); addByteCode(ByteCode.SWAP); if (type == TokenStream.NEW) addByteCode(ByteCode.ACONST_NULL); else { child = child.getNextSibling(); generateCodeFromNode(child, node, -1, -1); }/* Remember that directCall parameters are paired in 1 aReg and 1 dReg If the argument is an incoming arg, just pass the orginal pair thru. Else, if the argument is known to be typed 'Number', pass Void.TYPE in the aReg and the number is the dReg Else pass the JS object in the aReg and 0.0 in the dReg.*/ child = child.getNextSibling(); while (child != null) { boolean handled = false; if ((child.getType() == TokenStream.GETVAR) && inDirectCallFunction) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar.isParameter()) { handled = true; aload(lVar.getJRegister()); dload((short)(lVar.getJRegister() + 1)); } } if (!handled) { int childNumberFlag = child.getIntProp(Node.ISNUMBER_PROP, -1); if (childNumberFlag == Node.BOTH) { classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); generateCodeFromNode(child, node, -1, -1); } else { generateCodeFromNode(child, node, -1, -1); push(0.0); } } resetTargets(child); child = child.getNextSibling(); } addByteCode(ByteCode.ALOAD_0); classFile.add(ByteCode.GETFIELD, classFile.fullyQualifiedForm(this.name), "EmptyArray", "[Ljava/lang/Object;"); if (type == TokenStream.NEW) addVirtualInvoke(target.getClassName(), "constructDirect", target.getDirectCallParameterSignature(), "Ljava/lang/Object;"); else addVirtualInvoke(target.getClassName(), "callDirect", target.getDirectCallParameterSignature(), "Ljava/lang/Object;"); int beyond = acquireLabel(); addByteCode(ByteCode.GOTO, beyond); markLabel(regularCall, stackHeight); addByteCode(ByteCode.POP); visitRegularCall(node, type, chelsea, true); markLabel(beyond); } else { visitRegularCall(node, type, chelsea, false); } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/63a5968614d16d41ba20b5eaff13e1a81a08453a/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 1477, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 288, 3639, 1748, 540, 380, 6654, 981, 364, 745, 18, 540, 1195, 3639, 2029, 462, 12107, 69, 273, 1151, 31, 1377, 368, 11586, 326, 1122, 1151, 364, 5137, 3639, 12056, 2083, 907, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 16, 300, 21, 16, 300, 21, 1769, 5411, 509, 6736, 1477, 273, 10533, 2224, 5621, 5411, 514, 2658, 273, 29728, 18, 4095, 8708, 1204, 12, 3299, 18, 588, 3834, 10663, 5411, 514, 4289, 273, 2658, 18, 2079, 2668, 19, 2187, 4427, 1769, 5411, 29728, 18, 1289, 12, 3216, 1085, 18, 3264, 22741, 16, 27573, 29728, 18, 4095, 8708, 1204, 12, 12434, 3631, 27573, 4289, 16, 27573, 315, 48, 6, 397, 2658, 397, 11430, 1769, 5411, 3025, 2110, 2686, 273, 29728, 18, 588, 2624, 3401, 5621, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30387, 22, 1769, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 5501, 67, 2226, 4566, 5407, 16, 6736, 1477, 1769, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 18746, 2203, 1769, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30374, 1769, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 30387, 1769, 5411, 29728, 18, 1289, 12, 3216, 1085, 18, 706, 17691, 41, 18865, 16, 27573, 315, 3341, 19, 8683, 15990, 19, 11242, 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, 3757, 1477, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 288, 3639, 1748, 540, 380, 6654, 981, 364, 745, 18, 540, 1195, 3639, 2029, 462, 12107, 69, 273, 1151, 31, 1377, 368, 11586, 326, 1122, 1151, 364, 5137, 3639, 12056, 2083, 907, 1018, 273, 261, 6179, 2083, 907, 13, 2159, 18, 588, 4658, 12, 907, 18, 17541, 13730, 67, 15811, 1769, 3639, 309, 261, 3299, 480, 446, 13, 288, 5411, 2103, 1085, 28570, 12, 3624, 16, 756, 16, 300, 21, 16, 300, 21, 1769, 5411, 509, 6736, 1477, 273, 10533, 2224, 5621, 5411, 514, 2658, 273, 29728, 18, 4095, 8708, 1204, 12, 3299, 18, 588, 3834, 10663, 5411, 514, 4289, 273, 2658, 18, 2079, 2 ]
IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr); String tempstring = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ;
imcref.sqlUpdateQuery(sqlStr); String tempstring = AdminDoc.adminDoc(meta_id,meta_id,user,req,res) ;
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; String image_url = Utility.getDomainPref( "image_url",host ) ; File image_path = Utility.getDomainPrefPath( "image_path",host ) ; imcode.server.User user ; String htmlStr = "" ; String submit_name = "" ; String values[] ; int img_no = 0 ; imcode.server.Image image = new imcode.server.Image( ) ; res.setContentType( "text/html" ); Writer out = res.getWriter( ); // get meta_id String m_id = req.getParameter( "meta_id" ) ; int meta_id = Integer.parseInt( m_id ) ; // get img_no String i_no = req.getParameter( "img_no" ) ; img_no = Integer.parseInt( i_no ) ; // get image_height String image_height = req.getParameter( "image_height" ) ; // get image_width String image_width = req.getParameter( "image_width" ) ; // get image_border String image_border = req.getParameter( "image_border" ) ; // get vertical_space String v_space = req.getParameter( "v_space" ) ; // get horizonal_space String h_space = req.getParameter( "h_space" ) ; boolean keepAspectRatio = (req.getParameter("keepAspectRatio") != null); // FIXME: Move to SProc String sqlStr = "select image_name,imgurl,width,height,border,v_space,h_space,target,target_name,align,alt_text,low_scr,linkurl from images where meta_id = "+meta_id+" and name = "+img_no; String[] sql = IMCServiceRMI.sqlQuery(imcserver,sqlStr); String origWidth = req.getParameter("origW"); // width String origHeight = req.getParameter("origH"); // height try { image.setImageHeight( Integer.parseInt( image_height ) ) ; } catch ( NumberFormatException ex ) { image_height = "0" ; image.setImageHeight( 0 ) ; } try { image.setImageBorder( Integer.parseInt( image_border ) ) ; } catch ( NumberFormatException ex ) { image_border = "0" ; image.setImageBorder( 0 ) ; } try { image.setImageWidth( Integer.parseInt( image_width ) ) ; } catch ( NumberFormatException ex ) { image_width = "0" ; image.setImageWidth( 0 ) ; } if(keepAspectRatio && (req.getParameter("ok") != null || req.getParameter("show_img") != null)) { int oHeight = 0 ; try { oHeight = Integer.parseInt(origHeight); // image height } catch ( NumberFormatException ex ) { log("Failed to parse origHeight") ; } int oWidth = 0 ; try { oWidth = Integer.parseInt(origWidth); // image width } catch ( NumberFormatException ex ) { log("Failed to parse origHeight") ; } int iHeight = 0 ; try { iHeight = Integer.parseInt(image_height); // form width } catch ( NumberFormatException ex ) { log("Failed to parse image_height") ; } int iWidth = 0 ; try { iWidth = Integer.parseInt(image_width); // form height } catch ( NumberFormatException ex ) { log("Failed to parse image_width") ; } int oldHeight = 0 ; try { oldHeight = (sql.length>0)?Integer.parseInt(sql[3]):oHeight; // database height } catch ( NumberFormatException ex ) { log("Failed to parse oldHeight") ; } int oldWidth = 0 ; try { oldWidth = (sql.length>0)?Integer.parseInt(sql[2]):oWidth; // database width } catch ( NumberFormatException ex ) { log("Failed to parse oldWidth") ; } double asp_rat = ((double)oWidth/(double)oHeight); int heightDiff = Math.abs(iHeight - oldHeight); int widthDiff = Math.abs(iWidth - oldWidth); // Dominant value: // 1. greatest diff, 2. greatest int, 3. width if(widthDiff > heightDiff) { iHeight = (int)(iWidth/asp_rat); } else if (heightDiff > widthDiff) { iWidth = (int)(iHeight*asp_rat); } else if(heightDiff == widthDiff) { if(iHeight>iWidth) { iWidth = (int)(iHeight*asp_rat); } else { iHeight = (int)(iWidth/asp_rat); } } else { iHeight = (int)(iWidth*asp_rat); } image.setImageHeight( iHeight ) ; image.setImageWidth( iWidth ) ; image_width = "" + iWidth; image_height = "" + iHeight; //log("CALCULATED SIZE " + image_width + "/" + image_height); } try { image.setVerticalSpace( Integer.parseInt( v_space ) ) ; } catch ( NumberFormatException ex ) { v_space = "0" ; image.setVerticalSpace( 0 ) ; } try { image.setVerticalSpace( Integer.parseInt( v_space ) ) ; } catch ( NumberFormatException ex ) { v_space = "0" ; image.setVerticalSpace( 0 ) ; } try { image.setHorizonalSpace( Integer.parseInt( h_space ) ) ; } catch ( NumberFormatException ex ) { h_space = "0" ; image.setHorizonalSpace( 0 ) ; } // get imageref String image_ref = req.getParameter( "imageref" ) ; image.setImageRef( image_ref ) ; // get image_name String image_name = req.getParameter( "image_name" ) ; image.setImageName( image_name ) ; // get image_align String image_align = req.getParameter( "image_align" ) ; image.setImageAlign( image_align ) ; // get alt_text String alt_text = imcode.server.HTMLConv.toHTML(req.getParameter( "alt_text" )) ; image.setAltText( alt_text ) ; // get low_scr String low_scr = req.getParameter( "low_scr" ) ; image.setLowScr( low_scr ) ; // get target String target = req.getParameter( "target" ) ; image.setTarget( target ) ; // get target_name String target_name = req.getParameter( "target_name" ) ; image.setTargetName( target_name ) ; // get image_ref_link String imageref_link = req.getParameter( "imageref_link" ) ; image.setImageRefLink( imageref_link ) ; // redirect data String scheme = req.getScheme( ); String serverName = req.getServerName( ); int p = req.getServerPort( ); String port = (p == 80) ? "" : ":" + p; // Get the session HttpSession session = req.getSession( true ); // Does the session indicate this user already logged in? Object done = session.getAttribute( "logon.isDone" ); // marker object user = (imcode.server.User)done ; if( done == null ) { // No logon.isDone means he hasn't logged in. // Save the request URL as the true target and redirect to the login page. res.sendRedirect( scheme + "://" + serverName + port + start_url ) ; return ; } // Check if user has write rights if ( !IMCServiceRMI.checkDocAdminRights(imcserver,meta_id,user,131072 ) ) { // Checking to see if user may edit this String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } user.put("flags",new Integer(131072)) ; //the folderlist String dirList = (String) session.getAttribute("imageFolderOptionList"); if(dirList == null)dirList=""; if( req.getParameter( "cancel" )!=null ) { String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } else if( req.getParameter( "show_img" )!=null ) { //**************************************************************** ImageFileMetaData imagefile = new ImageFileMetaData(new File(image_path,image_ref)) ; int width = imagefile.getWidth() ; int height = imagefile.getHeight() ; //**************************************************************** Vector vec = new Vector () ; vec.add("#imgUrl#") ; vec.add(image_url) ; vec.add("#imgName#") ; vec.add(image_name) ; vec.add("#imgRef#") ; vec.add(image_ref) ; vec.add("#imgWidth#") ; vec.add("0".equals(image_width)?""+width:image_width) ; vec.add("#imgHeight#") ; vec.add("0".equals(image_height)?""+height:image_height) ; vec.add("#origW#"); vec.add("" + width); vec.add("#origH#"); vec.add("" + height); vec.add("#imgBorder#") ; vec.add(image_border) ; vec.add("#imgVerticalSpace#") ; vec.add(v_space) ; vec.add("#imgHorizontalSpace#") ; vec.add(h_space) ; if ( "_top".equals(target) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#top_checked#") ; } else if ( "_self".equals(target) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#self_checked#") ; } else if ( "_blank".equals(target) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#blank_checked#") ; } else if ( "_parent".equals(target) ) { vec.add("#target_name#") ; vec.add("") ; vec.add("#blank_checked#") ; } else { vec.add("#target_name#") ; vec.add(target_name) ; vec.add("#other_checked#") ; } vec.add("selected") ; if ( "baseline".equals(image_align) ) { vec.add("#baseline_selected#") ; } else if ( "top".equals(image_align) ) { vec.add("#top_selected#") ; } else if ( "middle".equals(image_align) ) { vec.add("#middle_selected#") ; } else if ( "bottom".equals(image_align) ) { vec.add("#bottom_selected#") ; } else if ( "texttop".equals(image_align) ) { vec.add("#texttop_selected#") ; } else if ( "absmiddle".equals(image_align) ) { vec.add("#absmiddle_selected#") ; } else if ( "absbottom".equals(image_align) ) { vec.add("#absbottom_selected#") ; } else if ( "left".equals(image_align) ) { vec.add("#left_selected#") ; } else if ( "right".equals(image_align) ) { vec.add("#right_selected#") ; } else { vec.add("#none_selected#") ; } vec.add("selected") ; vec.add("#imgAltText#") ; vec.add(alt_text) ; vec.add("#imgLowScr#") ; vec.add(low_scr) ; vec.add("#imgRefLink#") ; vec.add(imageref_link) ; vec.add("#getMetaId#") ; vec.add(m_id) ; vec.add("#img_no#") ; vec.add(i_no) ; vec.add("#folders#"); vec.add(dirList); String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"change_img.html", lang_prefix) ; out.write(htmlStr) ; return ; } else if ( req.getParameter("delete") != null ) { Vector vec = new Vector () ; vec.add("#imgUrl#") ; vec.add("") ; vec.add("#imgName#") ; vec.add("") ; vec.add("#imgRef#") ; vec.add("") ; vec.add("#imgWidth#") ; vec.add("0") ; vec.add("#imgHeight#") ; vec.add("0") ; vec.add("#imgBorder#") ; vec.add("0") ; vec.add("#imgVerticalSpace#") ; vec.add("0") ; vec.add("#imgHorizontalSpace#") ; vec.add("0") ; vec.add("#target_name#") ; vec.add("") ; vec.add("#self_checked#") ; vec.add("selected") ; vec.add("#top_selected#") ; vec.add("selected") ; vec.add("#imgAltText#") ; vec.add("") ; vec.add("#imgLowScr#") ; vec.add("") ; vec.add("#imgRefLink#") ; vec.add("") ; vec.add("#getMetaId#") ; vec.add(String.valueOf(meta_id)) ; vec.add("#img_no#") ; vec.add(String.valueOf(img_no)) ; vec.add("#folders#"); vec.add(dirList); String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"change_img.html", lang_prefix) ; out.write(htmlStr) ; return ; } else { IMCServiceRMI.saveImage( imcserver,meta_id,user,img_no,image ) ; SimpleDateFormat dateformat = new SimpleDateFormat(DATETIME_FORMAT_STD) ; Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; sqlStr = "update meta set date_modified = '"+dateformat.format(dt)+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr); // htmlStr = IMCServiceRMI.interpretTemplate( imcserver,meta_id,user ) ; String tempstring = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( tempstring != null ) { out.write(tempstring) ; } return ; } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/SaveImage.java/buggy/servlets/SaveImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 9506, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71, 3567, 1082, 202, 33, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 780, 787, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 1937, 67, 718, 3113, 2564, 262, 274, 202, 780, 8100, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 23231, 67, 718, 3113, 2564, 262, 274, 202, 780, 1316, 67, 718, 1082, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 2730, 67, 718, 3113, 2564, 262, 274, 202, 812, 1316, 67, 803, 1082, 202, 33, 13134, 18, 588, 3748, 23218, 743, 12, 315, 2730, 67, 803, 3113, 2564, 262, 274, 202, 381, 710, 18, 3567, 18, 1299, 729, 274, 202, 780, 1729, 1585, 273, 1408, 274, 202, 780, 4879, 67, 529, 273, 1408, 274, 202, 780, 924, 8526, 274, 202, 474, 3774, 67, 2135, 273, 374, 274, 202, 381, 710, 18, 3567, 18, 2040, 1316, 273, 394, 709, 710, 18, 3567, 18, 2040, 12, 262, 274, 202, 455, 18, 542, 8046, 12, 315, 955, 19, 2620, 6, 11272, 202, 2289, 596, 273, 400, 18, 588, 2289, 12, 11272, 202, 759, 336, 2191, 67, 350, 202, 780, 312, 67, 350, 273, 1111, 18, 588, 1662, 12, 315, 3901, 67, 350, 6, 262, 274, 202, 474, 2191, 67, 350, 273, 2144, 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, 741, 3349, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 202, 780, 1479, 9506, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 780, 709, 71, 3567, 1082, 202, 33, 13134, 18, 588, 3748, 23218, 2932, 3666, 3567, 3113, 2564, 13, 274, 202, 780, 787, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 1937, 67, 718, 3113, 2564, 262, 274, 202, 780, 8100, 67, 718, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 23231, 67, 718, 3113, 2564, 262, 274, 202, 780, 1316, 67, 718, 1082, 202, 33, 13134, 18, 588, 3748, 23218, 12, 315, 2730, 67, 718, 3113, 2564, 262, 274, 202, 812, 1316, 67, 2 ]
ax.getRunTimeContext( ).getLocale( ),
ax.getRunTimeContext( ).getULocale( ),
public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); final double dLocation = ax.getAxisCoordinate( ); final AutoScale sc = ax.getScale( ); final IntersectionValue iv = ax.getIntersectionValue( ); final int iMajorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MAJOR ); final int iMinorTickStyle = ax.getGrid( ) .getTickStyle( IConstants.MINOR ); final int iLabelLocation = ax.getLabelPosition( ); final int iOrientation = ax.getOrientation( ); final IDisplayServer xs = this.getDevice( ).getDisplayServer( ); Label la = LabelImpl.copyInstance( ax.getLabel( ) ); final double[] daEndPoints = sc.getEndPoints( ); final double[] da = sc.getTickCordinates( ); final double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; final int iDimension = pwa.getDimension( ); final double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); final double dStaggeredLabelOffset = sc.computeStaggeredAxisLabelOffset( xs, la, iOrientation ); final boolean bAxisLabelStaggered = sc.isAxisLabelStaggered( ); DecimalFormat df = null; final LineAttributes lia = ax.getLineAttributes( ); final LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); final LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); final boolean bRenderAxisTitle = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); final Bounds boPlot = getPlotBounds( ); final boolean bTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getStart( ); daEndPoints3D = sc.getEndPoints( ); da3D = sc.getTickCordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dX, dStart, dZEnd ); l3dre.setEnd3D( dX, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZ ); l3dre.setEnd3D( dXEnd, dEnd, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { ArrayList cachedTriggers = null; Location3D[] loaHotspot = new Location3D[4]; Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); // process center y-axis. loaHotspot[0] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dX + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dX - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZ + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process left y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXStart + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXStart - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { cachedTriggers = new ArrayList( ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); cachedTriggers.add( tg ); iev.addTrigger( TriggerImpl.copyInstance( tg ) ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( TriggerImpl.copyInstance( (Trigger) cachedTriggers.get( t ) ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } // process right y-axis. pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[1] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[2] = Location3DImpl.create( dXEnd + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart - IConstants.LINE_EXPAND_DOUBLE_SIZE ); loaHotspot[3] = Location3DImpl.create( dXEnd - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd, dZStart + IConstants.LINE_EXPAND_DOUBLE_SIZE ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); if ( cachedTriggers == null ) { for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } } else { for ( int t = 0; t < cachedTriggers.size( ); t++ ) { iev.addTrigger( (Trigger) cachedTriggers.get( t ) ); } } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( sc.getDirection( ) == IConstants.FORWARD ) { dStart = daEndPoints[1] + insCA.getBottom( ); dEnd = daEndPoints[0] - insCA.getTop( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[1] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dStart ); loaHotspot[2] = LocationImpl.create( dX + IConstants.LINE_EXPAND_SIZE, dEnd ); loaHotspot[3] = LocationImpl.create( dX - IConstants.LINE_EXPAND_SIZE, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final int iDirection = sc.getDirection( ); // double dUnitSize = sc.getUnitSize( ); final double dUnitSize = ( iDirection == IConstants.BACKWARD || ( iDirection == IConstants.AUTO && bTransposed ) ) ? -sc.getUnitSize( ) : sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d + dOffset, dZEnd ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d + dOffset, dZ ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } // RENDER LABELS ONLY IF REQUESTED if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { double sx = x; double sx2 = dXEnd; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.LEFT ) { sx -= dStaggeredLabelOffset; sx2 -= dStaggeredLabelOffset; } else { sx += dStaggeredLabelOffset; sx2 += dStaggeredLabelOffset; } } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { // Left wall lo3d.set( sx, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( sx2, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( sx, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); if ( ax.getTitle( ).isVisible( ) ) { ipr.drawText( tre ); } } } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !bTransposed && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dStart, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[1] = Location3DImpl.create( dStart, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[2] = Location3DImpl.create( dEnd, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); loaHotspot[3] = Location3DImpl.create( dEnd, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dZ ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final Polygon3DRenderEvent pre3d = (Polygon3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Polygon3DRenderEvent.class ); Location3D[] loaHotspot = new Location3D[4]; loaHotspot[0] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[1] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dStart ); loaHotspot[2] = Location3DImpl.create( dX, dY + IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); loaHotspot[3] = Location3DImpl.create( dX, dY - IConstants.LINE_EXPAND_DOUBLE_SIZE, dEnd ); pre3d.setPoints3D( loaHotspot ); pre3d.setDoubleSided( true ); if ( get3DEngine( ).processEvent( pre3d, boPlot.getLeft( ), boPlot.getTop( ) ) != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } iev.setHotSpot( pre3d ); ipr.enableInteraction( iev ); } } } } else { double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( sc.getDirection( ) == IConstants.BACKWARD ) { dStart = daEndPoints[1] - insCA.getLeft( ); dEnd = daEndPoints[0] + insCA.getRight( ); } if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = axModel.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createAxis( axModel ) ); iev.addTrigger( tg ); } Location[] loaHotspot = new Location[4]; loaHotspot[0] = LocationImpl.create( dStart, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[1] = LocationImpl.create( dEnd, dY - IConstants.LINE_EXPAND_SIZE ); loaHotspot[2] = LocationImpl.create( dEnd, dY + IConstants.LINE_EXPAND_SIZE ); loaHotspot[3] = LocationImpl.create( dStart, dY + IConstants.LINE_EXPAND_SIZE ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { final int iDirection = sc.getDirection( ); // double dUnitSize = sc.getUnitSize( ); final double dUnitSize = ( iDirection == IConstants.BACKWARD || ( iDirection == IConstants.AUTO && bTransposed ) ) ? -sc.getUnitSize( ) : sc.getUnitSize( ); final double dOffset = dUnitSize / 2; DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, sy ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? ( bRendering3D ? dYTick1 + 1 : dYTick1 - 1 ) : ( bRendering3D ? dYTick2 - 1 : dYTick2 + 1 ); for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( bRendering3D ? dY + IConstants.TICK_SIZE : dY - IConstants.TICK_SIZE ) : dY; double dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? ( bRendering3D ? dY - IConstants.TICK_SIZE : dY + IConstants.TICK_SIZE ) : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } // OPTIMIZED: ONLY PROCESS IF AXES LABELS ARE VISIBLE OR // REQUESTED FOR if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); double sy = y; if ( bAxisLabelStaggered && sc.isTickLabelStaggered( i ) ) { if ( iLabelLocation == IConstants.ABOVE ) { sy -= dStaggeredLabelOffset; } else { sy += dStaggeredLabelOffset; } } if ( ax.getLabel( ).isVisible( ) ) { if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, sy, dZEnd ); } else { lo3d.set( dXEnd, sy, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, sy ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } // ALWAYS W.R.T START VALUE cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); } } // RENDER THE AXIS TITLE la = LabelImpl.copyInstance( ax.getTitle( ) ); // TEMPORARILY USE // FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisTitle ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE la.getCaption( ) .getFont( ) .setAlignment( switchTextAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( ax.getTitle( ).isVisible( ) ) { if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( la.getCaption( ) .getFont( ) .getAlignment( ) ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = LabelImpl.copyInstance( ax.getLabel( ) ); // RESTORE BACK TO // AXIS LABEL if ( iv != null && iDimension == IConstants.TWO_5_D && ( ( bTransposed && isRightToLeft( ) && iv.getType( ) == IntersectionValue.MIN ) || ( !bTransposed && iv.getType( ) == IntersectionValue.MAX ) ) ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ae8909f5c697c610266e491d0af9a02eed14e2e4/AxesRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1743, 3442, 6558, 12, 467, 9840, 6747, 277, 683, 16, 15211, 886, 16, 1082, 202, 3335, 6558, 1740, 16, 509, 277, 23801, 774, 6493, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1939, 950, 1042, 436, 5111, 273, 336, 1997, 950, 1042, 12, 11272, 202, 202, 6385, 15509, 1740, 1488, 273, 1740, 18, 588, 1488, 6558, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 6385, 22300, 2763, 3587, 273, 8772, 69, 18, 588, 26494, 12, 262, 18, 588, 382, 4424, 12, 11272, 202, 202, 6385, 7739, 1503, 699, 273, 336, 1997, 950, 1042, 12, 262, 18, 588, 3651, 1503, 12, 11272, 202, 202, 6385, 1645, 302, 2735, 273, 1740, 18, 588, 6558, 13503, 12, 11272, 202, 202, 6385, 8064, 5587, 888, 273, 1740, 18, 588, 5587, 12, 11272, 202, 202, 6385, 5294, 3464, 620, 4674, 273, 1740, 18, 588, 23634, 620, 12, 11272, 202, 202, 6385, 509, 277, 17581, 6264, 2885, 273, 1740, 18, 588, 6313, 12, 262, 9506, 202, 18, 588, 6264, 2885, 12, 467, 2918, 18, 26976, 916, 11272, 202, 202, 6385, 509, 277, 19549, 6264, 2885, 273, 1740, 18, 588, 6313, 12, 262, 9506, 202, 18, 588, 6264, 2885, 12, 467, 2918, 18, 6236, 916, 11272, 202, 202, 6385, 509, 277, 2224, 2735, 273, 1740, 18, 588, 2224, 2555, 12, 11272, 202, 202, 6385, 509, 277, 14097, 273, 1740, 18, 588, 14097, 12, 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, 1743, 3442, 6558, 12, 467, 9840, 6747, 277, 683, 16, 15211, 886, 16, 1082, 202, 3335, 6558, 1740, 16, 509, 277, 23801, 774, 6493, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1939, 950, 1042, 436, 5111, 273, 336, 1997, 950, 1042, 12, 11272, 202, 202, 6385, 15509, 1740, 1488, 273, 1740, 18, 588, 1488, 6558, 12, 11272, 202, 202, 6385, 15211, 1190, 26494, 8772, 69, 273, 261, 11532, 1190, 26494, 13, 336, 7703, 1012, 12, 11272, 202, 202, 6385, 22300, 2763, 3587, 273, 8772, 69, 18, 588, 26494, 12, 262, 18, 588, 382, 4424, 12, 11272, 202, 202, 6385, 7739, 1503, 699, 273, 336, 1997, 950, 1042, 12, 262, 18, 588, 3651, 2 ]
}
}
protected static Cookie[] parse(String set_cookie, RoRequest req) throws ProtocolException { int beg = 0, end = 0, start = 0; char[] buf = set_cookie.toCharArray(); int len = buf.length; Cookie cookie_arr[] = new Cookie[0], curr; cookies: while (true) // get all cookies { beg = Util.skipSpace(buf, beg); if (beg >= len) break; // no more left if (buf[beg] == ',') // empty header { beg++; continue; } curr = new Cookie(req); start = beg; // get cookie name and value first end = set_cookie.indexOf('=', beg); if (end == -1) throw new ProtocolException("Bad Set-Cookie header: " + set_cookie + "\nNo '=' found " + "for token starting at " + "position " + beg); curr.name = set_cookie.substring(beg, end).trim(); beg = Util.skipSpace(buf, end+1); int comma = set_cookie.indexOf(',', beg); int semic = set_cookie.indexOf(';', beg); if (comma == -1 && semic == -1) end = len; else if (comma == -1) end = semic; else if (semic == -1) end = comma; else { if (comma > semic) end = semic; else { // try to handle broken servers which put commas // into cookie values int eq = set_cookie.indexOf('=', comma); if (eq > 0 && eq < semic) end = set_cookie.lastIndexOf(',', eq); else end = semic; } } curr.value = set_cookie.substring(beg, end).trim(); beg = end; // now parse attributes boolean legal = true; parts: while (true) // parse all parts { if (beg >= len || buf[beg] == ',') break; // skip empty fields if (buf[beg] == ';') { beg = Util.skipSpace(buf, beg+1); continue; } // first check for secure, as this is the only one w/o a '=' if ((beg+6 <= len) && set_cookie.regionMatches(true, beg, "secure", 0, 6)) { curr.secure = true; beg += 6; beg = Util.skipSpace(buf, beg); if (beg < len && buf[beg] == ';') // consume ";" beg = Util.skipSpace(buf, beg+1); else if (beg < len && buf[beg] != ',') throw new ProtocolException("Bad Set-Cookie header: " + set_cookie + "\nExpected " + "';' or ',' at position " + beg); continue; } // alright, must now be of the form x=y end = set_cookie.indexOf('=', beg); if (end == -1) throw new ProtocolException("Bad Set-Cookie header: " + set_cookie + "\nNo '=' found " + "for token starting at " + "position " + beg); String name = set_cookie.substring(beg, end).trim(); beg = Util.skipSpace(buf, end+1); if (name.equalsIgnoreCase("expires")) { /* Netscape ignores quotes around the date, and some twits * actually send that... */ if (set_cookie.charAt(beg) == '\"') beg = Util.skipSpace(buf, beg+1); /* cut off the weekday if it is there. This is a little * tricky because the comma is also used between cookies * themselves. To make sure we don't inadvertantly * mistake a date for a weekday we only skip letters. */ int pos = beg; while (pos < len && (buf[pos] >= 'a' && buf[pos] <= 'z' || buf[pos] >= 'A' && buf[pos] <= 'Z')) pos++; pos = Util.skipSpace(buf, pos); if (pos < len && buf[pos] == ',' && pos > beg) beg = pos+1; /** ++GRINDER MODIFICATION **/ // Some other twits put a comma after the date. // Replace it with a space. pos = Util.skipSpace(buf, beg); // Skip past the date. while (pos < len && (Character.isDigit(buf[pos]) || buf[pos] == '-')) { ++pos; } if (pos < len && buf[pos] == ',') { buf[pos] = ' '; } /** --GRINDER MODIFICATION **/ } comma = set_cookie.indexOf(',', beg); semic = set_cookie.indexOf(';', beg); if (comma == -1 && semic == -1) end = len; else if (comma == -1) end = semic; else if (semic == -1) end = comma; else end = Math.min(comma, semic); String value = set_cookie.substring(beg, end).trim(); legal &= setAttribute(curr, name, value, set_cookie); beg = end; if (beg < len && buf[beg] == ';') // consume ";" beg = Util.skipSpace(buf, beg+1); } if (legal) { cookie_arr = Util.resizeArray(cookie_arr, cookie_arr.length+1); cookie_arr[cookie_arr.length-1] = curr; } else Log.write(Log.COOKI, "Cooki: Ignoring cookie: " + curr); } return cookie_arr; }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/4aac7325e4103f4c5b114b0a7e136a15297d9a05/Cookie.java/buggy/src/HTTPClient/Cookie.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 10201, 8526, 1109, 12, 780, 444, 67, 8417, 16, 534, 83, 691, 1111, 13, 202, 202, 15069, 4547, 503, 565, 288, 3639, 509, 565, 16847, 273, 374, 16, 9079, 679, 273, 374, 16, 202, 4202, 787, 273, 374, 31, 3639, 1149, 8526, 1681, 273, 444, 67, 8417, 18, 869, 15936, 5621, 3639, 509, 565, 562, 273, 1681, 18, 2469, 31, 3639, 10201, 3878, 67, 5399, 8526, 273, 394, 10201, 63, 20, 6487, 4306, 31, 3639, 7237, 30, 1323, 261, 3767, 13, 10792, 368, 336, 777, 7237, 3639, 288, 5411, 16847, 273, 3564, 18, 7457, 3819, 12, 4385, 16, 16847, 1769, 5411, 309, 261, 70, 1332, 1545, 562, 13, 225, 898, 31, 202, 759, 1158, 1898, 2002, 202, 565, 309, 261, 4385, 63, 70, 1332, 65, 422, 3316, 13, 202, 759, 1008, 1446, 202, 565, 288, 202, 202, 70, 1332, 9904, 31, 202, 202, 17143, 31, 202, 565, 289, 202, 565, 4306, 225, 273, 394, 10201, 12, 3658, 1769, 202, 565, 787, 273, 16847, 31, 202, 565, 368, 336, 3878, 508, 471, 460, 1122, 202, 565, 679, 273, 444, 67, 8417, 18, 31806, 2668, 33, 2187, 16847, 1769, 202, 565, 309, 261, 409, 422, 300, 21, 13, 202, 202, 12849, 394, 4547, 503, 2932, 6434, 1000, 17, 6151, 1446, 30, 315, 397, 25083, 565, 444, 67, 8417, 397, 1548, 82, 2279, 5214, 1392, 315, 397, 25083, 565, 315, 1884, 1147, 5023, 622, 315, 397, 25083, 565, 315, 3276, 315, 397, 16847, 1769, 202, 565, 4306, 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, 4750, 760, 10201, 8526, 1109, 12, 780, 444, 67, 8417, 16, 534, 83, 691, 1111, 13, 202, 202, 15069, 4547, 503, 565, 288, 3639, 509, 565, 16847, 273, 374, 16, 9079, 679, 273, 374, 16, 202, 4202, 787, 273, 374, 31, 3639, 1149, 8526, 1681, 273, 444, 67, 8417, 18, 869, 15936, 5621, 3639, 509, 565, 562, 273, 1681, 18, 2469, 31, 3639, 10201, 3878, 67, 5399, 8526, 273, 394, 10201, 63, 20, 6487, 4306, 31, 3639, 7237, 30, 1323, 261, 3767, 13, 10792, 368, 336, 777, 7237, 3639, 288, 5411, 16847, 273, 3564, 18, 7457, 3819, 12, 4385, 16, 16847, 1769, 5411, 309, 261, 70, 1332, 1545, 562, 13, 225, 898, 31, 202, 759, 1158, 1898, 2002, 2 ]
System.out.println("Setting sequence");
public void setSequence(SymbolList s) { System.out.println("Setting sequence"); SymbolList oldSequence = sequence; if(oldSequence != null) { oldSequence.removeChangeListener(layoutListener); } this.sequence = s; sequence.addChangeListener(layoutListener); resizeAndValidate(); firePropertyChange("sequence", oldSequence, s); }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/6a81ab48e9617d4168b6c5da10235c114008b156/SequencePanel.java/buggy/src/org/biojava/bio/gui/sequence/SequencePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 4021, 12, 5335, 682, 272, 13, 288, 4202, 8565, 682, 1592, 4021, 273, 3102, 31, 565, 309, 12, 1673, 4021, 480, 446, 13, 288, 1377, 1592, 4021, 18, 4479, 15744, 12, 6741, 2223, 1769, 565, 289, 565, 333, 18, 6178, 273, 272, 31, 565, 3102, 18, 1289, 15744, 12, 6741, 2223, 1769, 3639, 7041, 1876, 4270, 5621, 565, 4452, 1396, 3043, 2932, 6178, 3113, 1592, 4021, 16, 272, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 4021, 12, 5335, 682, 272, 13, 288, 4202, 8565, 682, 1592, 4021, 273, 3102, 31, 565, 309, 12, 1673, 4021, 480, 446, 13, 288, 1377, 1592, 4021, 18, 4479, 15744, 12, 6741, 2223, 1769, 565, 289, 565, 333, 18, 6178, 273, 272, 31, 565, 3102, 18, 1289, 15744, 12, 6741, 2223, 1769, 3639, 7041, 1876, 4270, 5621, 565, 4452, 1396, 3043, 2932, 6178, 3113, 1592, 4021, 16, 272, 1769, 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 ]
IExternalActivity externalActivity = (IExternalActivity) o; return Cloner.copyIExternalActivity2InfoExternalActivity(externalActivity); }
IExternalActivity externalActivity = (IExternalActivity) o; return InfoExternalActivity.newInfoFromDomain(externalActivity); }
public Object transform(Object o) { IExternalActivity externalActivity = (IExternalActivity) o; return Cloner.copyIExternalActivity2InfoExternalActivity(externalActivity); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/d1570a87dd2b404cd64317e0adcdc6d796eb389d/ReadExternalActivities.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/teacher/ReadExternalActivities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 1033, 2510, 12, 921, 320, 13, 288, 10792, 467, 6841, 6193, 3903, 6193, 273, 261, 45, 6841, 6193, 13, 320, 31, 10792, 327, 3905, 31430, 18, 3530, 45, 6841, 6193, 22, 966, 6841, 6193, 12, 9375, 6193, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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841, 6193, 3903, 6193, 273, 261, 45, 6841, 6193, 13, 320, 31, 10792, 327, 3905, 31430, 18, 3530, 45, 6841, 6193, 22, 966, 6841, 6193, 12, 9375, 6193, 1769, 7734, 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 ]
agentConfig = SnmpUtils.getAgentConfig(InetAddress.getLocalHost());
agentConfig = new SnmpAgentConfig(InetAddress.getLocalHost());
public void testCreateSnmpAgentConfig() throws UnknownHostException { SnmpAgentConfig agentConfig = SnmpUtils.createAgentConfig(); assertNull(agentConfig.getAddress()); assertSnmpAgentConfigDefaults(agentConfig); agentConfig = SnmpUtils.getAgentConfig(InetAddress.getLocalHost()); assertNotNull(agentConfig.getAddress()); assertEquals(InetAddress.getLocalHost().getHostAddress(), agentConfig.getAddress().getHostAddress()); assertSnmpAgentConfigDefaults(agentConfig); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/f85eee736c6a9d343744634009a32a472cc6d524/SnmpUtilsTest.java/clean/src/services/org/opennms/netmgt/snmp/SnmpUtilsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 10461, 1291, 3630, 809, 1435, 1216, 30592, 288, 3639, 18961, 1291, 3630, 809, 4040, 809, 273, 18961, 1291, 1989, 18, 2640, 3630, 809, 5621, 3639, 1815, 2041, 12, 5629, 809, 18, 588, 1887, 10663, 3639, 1815, 10461, 1291, 3630, 809, 7019, 12, 5629, 809, 1769, 7734, 4040, 809, 273, 394, 18961, 1291, 3630, 809, 12, 382, 278, 1887, 18, 588, 2042, 2594, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 1684, 10461, 1291, 3630, 809, 1435, 1216, 30592, 288, 3639, 18961, 1291, 3630, 809, 4040, 809, 273, 18961, 1291, 1989, 18, 2640, 3630, 809, 5621, 3639, 1815, 2041, 12, 5629, 809, 18, 588, 1887, 10663, 3639, 1815, 10461, 1291, 3630, 809, 7019, 12, 5629, 809, 1769, 7734, 4040, 809, 273, 394, 18961, 1291, 3630, 809, 12, 382, 278, 1887, 18, 588, 2042, 2594, 10663, 3639, 25395, 12, 5629, 809, 18, 588, 1887, 10663, 3639, 1815, 8867, 12, 382, 278, 1887, 18, 588, 2042, 2594, 7675, 588, 2594, 1887, 9334, 4040, 809, 18, 588, 1887, 7675, 588, 2594, 1887, 10663, 3639, 1815, 10461, 1291, 3630, 809, 7019, 12, 5629, 809, 1769, 565, 289, 2, -100, -100, -100 ]
try { chkDB.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); }
close(false);
public BerkeleyDBFreenetStore(String storeDir, long maxChkBlocks, int blockSize, int headerSize, boolean throwOnTooFewKeys) throws IOException, DatabaseException { this.dataBlockSize = blockSize; this.headerBlockSize = headerSize; this.freeBlocks = new SortedLongSet(); // Percentage of the database that must contain usefull data // decrease to increase performance, increase to save disk space System.setProperty("je.cleaner.minUtilization","98"); // Delete empty log files System.setProperty("je.cleaner.expunge","true"); // Percentage of the maximum heap size used as a cache System.setProperty("je.maxMemoryPercent","30"); this.maxChkBlocks=maxChkBlocks; // Initialize environment EnvironmentConfig envConfig = new EnvironmentConfig(); envConfig.setAllowCreate(true); envConfig.setTransactional(true); envConfig.setTxnWriteNoSync(true); File dir = new File(storeDir); if(!dir.exists()) dir.mkdir(); File dbDir = new File(dir,"database"); if(!dbDir.exists()) dbDir.mkdir(); environment = new Environment(dbDir, envConfig); // Initialize CHK database DatabaseConfig dbConfig = new DatabaseConfig(); dbConfig.setAllowCreate(true); dbConfig.setTransactional(true); chkDB = environment.openDatabase(null,"CHK",dbConfig); fixSecondaryFile = new File(storeDir, "recreate_secondary_db"); if(fixSecondaryFile.exists()) { fixSecondaryFile.delete(); Logger.error(this, "Recreating secondary database for "+storeDir); Logger.error(this, "This may take some time..."); System.err.println("Recreating secondary database for "+storeDir); System.err.println("This may take some time..."); try { environment.truncateDatabase(null, "CHK_accessTime", false); } catch (DatabaseException e) { try { chkDB.close(); } catch (DatabaseException e1) { Logger.normal(this, "Ignoring "+e1, e1); } throw e; } } // Initialize secondary CHK database sorted on accesstime SecondaryConfig secDbConfig = new SecondaryConfig(); secDbConfig.setAllowCreate(true); secDbConfig.setSortedDuplicates(true); secDbConfig.setTransactional(true); secDbConfig.setAllowPopulate(true); storeBlockTupleBinding = new StoreBlockTupleBinding(); longTupleBinding = TupleBinding.getPrimitiveBinding(Long.class); AccessTimeKeyCreator accessTimeKeyCreator = new AccessTimeKeyCreator(storeBlockTupleBinding); secDbConfig.setKeyCreator(accessTimeKeyCreator); try { chkDB_accessTime = environment.openSecondaryDatabase (null, "CHK_accessTime", chkDB, secDbConfig); } catch (DatabaseException e1) { try { chkDB.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } throw e1; } // Initialize other secondary database sorted on block number// try {// environment.removeDatabase(null, "CHK_blockNum");// } catch (DatabaseNotFoundException e) { }; SecondaryConfig blockNoDbConfig = new SecondaryConfig(); blockNoDbConfig.setAllowCreate(false); blockNoDbConfig.setSortedDuplicates(false); blockNoDbConfig.setAllowPopulate(true); blockNoDbConfig.setTransactional(true); BlockNumberKeyCreator bnkc = new BlockNumberKeyCreator(storeBlockTupleBinding); blockNoDbConfig.setKeyCreator(bnkc); SecondaryDatabase blockNums; try { System.err.println("Opening block db index"); blockNums = environment.openSecondaryDatabase (null, "CHK_blockNum", chkDB, blockNoDbConfig); } catch (DatabaseNotFoundException e) { System.err.println("Migrating block db index"); // De-dupe on keys and block numbers. migrate(storeDir); System.err.println("De-duped, creating new index..."); blockNoDbConfig.setSortedDuplicates(false); blockNoDbConfig.setAllowCreate(true); blockNoDbConfig.setAllowPopulate(true); blockNums = environment.openSecondaryDatabase (null, "CHK_blockNum", chkDB, blockNoDbConfig); } catch (DatabaseException e) { try { chkDB_accessTime.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } try { chkDB.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } throw e; } chkDB_blockNum = blockNums; // Initialize the store file File storeFile = new File(dir,"store"); try { if(!storeFile.exists()) storeFile.createNewFile(); chkStore = new RandomAccessFile(storeFile,"rw"); long chkBlocksInDatabase = countCHKBlocksFromDatabase(); chkBlocksInStore = chkBlocksInDatabase; long chkBlocksFromFile = countCHKBlocksFromFile(); lastRecentlyUsed = getMaxRecentlyUsed(); if(((chkBlocksInStore == 0) && (chkBlocksFromFile != 0)) || (((chkBlocksInStore + 10) * 1.1) < chkBlocksFromFile)) { if(throwOnTooFewKeys) { try { close(); } catch (Throwable t) { Logger.error(this, "Failed to close: "+t, t); System.err.println("Failed to close: "+t); t.printStackTrace(); } throw new DatabaseException("Keys in database: "+chkBlocksInStore+" but keys in file: "+chkBlocksFromFile); } else checkForHoles(chkBlocksFromFile); } chkBlocksInStore = Math.max(chkBlocksInStore, chkBlocksFromFile); Logger.minor(this, "Keys in store: "+chkBlocksInStore); System.out.println("Keys in store: "+chkBlocksInStore+" / "+maxChkBlocks+" (db "+chkBlocksInDatabase+" file "+chkBlocksFromFile+")"); maybeShrink(true, true); // Add shutdownhook Runtime.getRuntime().addShutdownHook(new ShutdownHook()); } catch (DatabaseException t) { Logger.error(this, "Caught "+t, t); try { chkDB_accessTime.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } try { chkDB_blockNum.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } try { chkDB.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } throw t; } catch (IOException t) { Logger.error(this, "Caught "+t, t); try { chkDB_accessTime.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } try { chkDB_blockNum.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } try { chkDB.close(); } catch (DatabaseException e2) { Logger.normal(this, "Ignoring "+e2, e2); } throw t; } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/65c73343ba837cd2ded924dd5e41fdb6201e11e4/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 264, 79, 292, 402, 2290, 42, 2842, 278, 2257, 12, 780, 1707, 1621, 16, 1525, 943, 782, 79, 6450, 16, 509, 13766, 16, 509, 31719, 16, 1250, 604, 1398, 10703, 42, 359, 2396, 13, 1216, 1860, 16, 27215, 288, 202, 202, 2211, 18, 892, 22506, 273, 13766, 31, 202, 202, 2211, 18, 3374, 22506, 273, 31719, 31, 202, 202, 2211, 18, 9156, 6450, 273, 394, 13717, 3708, 694, 5621, 202, 202, 759, 21198, 410, 434, 326, 2063, 716, 1297, 912, 999, 2854, 501, 202, 202, 759, 20467, 358, 10929, 9239, 16, 10929, 358, 1923, 4234, 3476, 202, 202, 3163, 18, 542, 1396, 2932, 78, 73, 18, 6200, 264, 18, 1154, 29180, 15937, 10689, 8863, 9506, 202, 759, 2504, 1008, 613, 1390, 202, 202, 3163, 18, 542, 1396, 2932, 78, 73, 18, 6200, 264, 18, 2749, 25561, 15937, 3767, 8863, 9506, 202, 759, 21198, 410, 434, 326, 4207, 10500, 963, 1399, 487, 279, 1247, 202, 202, 3163, 18, 542, 1396, 2932, 78, 73, 18, 1896, 6031, 8410, 15937, 5082, 8863, 9506, 202, 2211, 18, 1896, 782, 79, 6450, 33, 1896, 782, 79, 6450, 31, 9506, 202, 759, 9190, 3330, 202, 202, 5494, 809, 1550, 809, 273, 394, 7518, 809, 5621, 202, 202, 3074, 809, 18, 542, 7009, 1684, 12, 3767, 1769, 202, 202, 3074, 809, 18, 542, 3342, 287, 12, 3767, 1769, 202, 202, 3074, 809, 18, 542, 13789, 3067, 2279, 4047, 12, 3767, 1769, 202, 202, 812, 1577, 273, 394, 1387, 12, 2233, 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, 605, 264, 79, 292, 402, 2290, 42, 2842, 278, 2257, 12, 780, 1707, 1621, 16, 1525, 943, 782, 79, 6450, 16, 509, 13766, 16, 509, 31719, 16, 1250, 604, 1398, 10703, 42, 359, 2396, 13, 1216, 1860, 16, 27215, 288, 202, 202, 2211, 18, 892, 22506, 273, 13766, 31, 202, 202, 2211, 18, 3374, 22506, 273, 31719, 31, 202, 202, 2211, 18, 9156, 6450, 273, 394, 13717, 3708, 694, 5621, 202, 202, 759, 21198, 410, 434, 326, 2063, 716, 1297, 912, 999, 2854, 501, 202, 202, 759, 20467, 358, 10929, 9239, 16, 10929, 358, 1923, 4234, 3476, 202, 202, 3163, 18, 542, 1396, 2932, 78, 73, 18, 6200, 264, 18, 1154, 29180, 15937, 10689, 8863, 9506, 2 ]
private Element[] generateWrapperSchema( Map schemaMap, Binding wsdl4jBinding) { List schemaElementList = new ArrayList(); //target namespace for this should be the namespace URI for //the porttype String porttypeNamespaceURI = wsdl4jBinding.getPortType(). getQName().getNamespaceURI(); //////////////////////////////////////////////////////////////////////// // if there are any bindings present then we have to process them. we // have to generate a schema per wsdl4jBinding (that is the safest option). // if not we just resolve to // the good old port type // list, in which case we'll generate a schema per porttype //////////////////////////////////////////////////////////////////////// Element schemaElement = createSchemaForPorttype( porttypeNamespaceURI, findWrappableOperations(wsdl4jBinding), schemaMap); if (schemaElement != null) { schemaElementList.add(schemaElement); } return (Element[]) schemaElementList .toArray(new Element[schemaElementList.size()]); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/244aa4f43ff8119055aa57a36d41877e9626c506/WSDL11ToAxisServiceBuilder.java/clean/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3010, 8526, 2103, 3611, 3078, 12, 5411, 1635, 1963, 863, 16, 5411, 15689, 17642, 24, 78, 5250, 13, 288, 3639, 987, 1963, 1046, 682, 273, 394, 2407, 5621, 3639, 368, 3299, 1981, 364, 333, 1410, 506, 326, 1981, 3699, 364, 3639, 368, 5787, 1756, 723, 3639, 514, 1756, 723, 3402, 3098, 273, 17642, 24, 78, 5250, 18, 588, 17855, 7675, 7734, 336, 13688, 7675, 588, 3402, 3098, 5621, 3639, 26398, 18235, 3639, 368, 309, 1915, 854, 1281, 7394, 3430, 1508, 732, 1240, 358, 1207, 2182, 18, 732, 3639, 368, 1240, 358, 2103, 279, 1963, 1534, 17642, 24, 78, 5250, 261, 19056, 353, 326, 11029, 395, 1456, 2934, 3639, 368, 309, 486, 732, 2537, 2245, 358, 3639, 368, 326, 7494, 1592, 1756, 618, 3639, 368, 666, 16, 316, 1492, 648, 732, 5614, 2103, 279, 1963, 1534, 1756, 723, 3639, 26398, 18235, 3639, 3010, 1963, 1046, 273, 752, 3078, 1290, 2617, 723, 12, 7734, 1756, 723, 3402, 3098, 16, 1104, 2964, 19586, 9343, 12, 4749, 5761, 24, 78, 5250, 3631, 7734, 1963, 863, 1769, 3639, 309, 261, 4821, 1046, 480, 446, 13, 288, 5411, 1963, 1046, 682, 18, 1289, 12, 4821, 1046, 1769, 3639, 289, 3639, 327, 261, 1046, 63, 5717, 1963, 1046, 682, 7734, 263, 31447, 12, 2704, 3010, 63, 4821, 1046, 682, 18, 1467, 1435, 19226, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3010, 8526, 2103, 3611, 3078, 12, 5411, 1635, 1963, 863, 16, 5411, 15689, 17642, 24, 78, 5250, 13, 288, 3639, 987, 1963, 1046, 682, 273, 394, 2407, 5621, 3639, 368, 3299, 1981, 364, 333, 1410, 506, 326, 1981, 3699, 364, 3639, 368, 5787, 1756, 723, 3639, 514, 1756, 723, 3402, 3098, 273, 17642, 24, 78, 5250, 18, 588, 17855, 7675, 7734, 336, 13688, 7675, 588, 3402, 3098, 5621, 3639, 26398, 18235, 3639, 368, 309, 1915, 854, 1281, 7394, 3430, 1508, 732, 1240, 358, 1207, 2182, 18, 732, 3639, 368, 1240, 358, 2103, 279, 1963, 1534, 17642, 24, 78, 5250, 261, 19056, 353, 326, 11029, 395, 1456, 2934, 3639, 368, 309, 486, 732, 2537, 2245, 358, 3639, 368, 2 ]
if( width < 1 || height < 1 || depth < 1 ) { return( GLU.GLU_INVALID_VALUE ); } if( type == GL.GL_BITMAP ) { return( GLU.GLU_INVALID_ENUM ); } levels = computeLog( width ); level = computeLog( height ); if( level > levels ) { levels = level; } level = computeLog( depth ); if( level > levels ) { levels = level; } levels += userLevel; if( !isLegalLevels( userLevel, baseLevel, maxLevel, levels ) ) { return( GLU.GLU_INVALID_VALUE ); } return( BuildMipmap.gluBuild3DMipmapLevelsCore( gl, target, internalFormat, width, height, depth, width, height, depth, format, type, userLevel, baseLevel, maxLevel, data ) );
public static int gluBuild3DMipmapLevels( GL gl, int target, int internalFormat, int width, int height, int depth, int format, int type, int userLevel, int baseLevel, int maxLevel, ByteBuffer data ) { int level, levels; int rc = checkMipmapArgs( internalFormat, format, type ); if( rc != 0 ) { return( rc ); } if( width < 1 || height < 1 || depth < 1 ) { return( GLU.GLU_INVALID_VALUE ); } if( type == GL.GL_BITMAP ) { return( GLU.GLU_INVALID_ENUM ); } levels = computeLog( width ); level = computeLog( height ); if( level > levels ) { levels = level; } level = computeLog( depth ); if( level > levels ) { levels = level; } levels += userLevel; if( !isLegalLevels( userLevel, baseLevel, maxLevel, levels ) ) { return( GLU.GLU_INVALID_VALUE ); } return( BuildMipmap.gluBuild3DMipmapLevelsCore( gl, target, internalFormat, width, height, depth, width, height, depth, format, type, userLevel, baseLevel, maxLevel, data ) ); }
47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/001c92efeb2c3eaeee6238988875b0c92d12d155/Mipmap.java/buggy/src/classes/com/sun/opengl/impl/mipmap/Mipmap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 5118, 89, 3116, 23, 16125, 625, 1458, 12240, 12, 10252, 5118, 16, 509, 1018, 16, 509, 2713, 1630, 16, 1850, 509, 1835, 16, 509, 2072, 16, 509, 3598, 16, 509, 740, 16, 509, 618, 16, 509, 729, 2355, 16, 1850, 509, 1026, 2355, 16, 509, 943, 2355, 16, 7400, 501, 262, 288, 565, 509, 1801, 16, 7575, 31, 3639, 509, 4519, 273, 866, 49, 625, 1458, 2615, 12, 2713, 1630, 16, 740, 16, 618, 11272, 565, 309, 12, 4519, 480, 374, 262, 288, 1377, 327, 12, 4519, 11272, 565, 289, 3639, 309, 12, 1835, 411, 404, 747, 2072, 411, 404, 747, 3598, 411, 404, 262, 288, 1377, 327, 12, 10252, 57, 18, 11261, 57, 67, 9347, 67, 4051, 11272, 565, 289, 3639, 309, 12, 618, 422, 10252, 18, 11261, 67, 15650, 8352, 262, 288, 1377, 327, 12, 10252, 57, 18, 11261, 57, 67, 9347, 67, 16509, 11272, 565, 289, 3639, 7575, 273, 3671, 1343, 12, 1835, 11272, 565, 1801, 273, 3671, 1343, 12, 2072, 11272, 565, 309, 12, 1801, 405, 7575, 262, 288, 1377, 7575, 273, 1801, 31, 565, 289, 565, 1801, 273, 3671, 1343, 12, 3598, 11272, 565, 309, 12, 1801, 405, 7575, 262, 288, 1377, 7575, 273, 1801, 31, 565, 289, 3639, 7575, 1011, 729, 2355, 31, 565, 309, 12, 401, 291, 30697, 12240, 12, 729, 2355, 16, 1026, 2355, 16, 943, 2355, 16, 7575, 262, 262, 288, 1377, 327, 12, 10252, 57, 18, 11261, 57, 67, 9347, 67, 4051, 11272, 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, 760, 509, 5118, 89, 3116, 23, 16125, 625, 1458, 12240, 12, 10252, 5118, 16, 509, 1018, 16, 509, 2713, 1630, 16, 1850, 509, 1835, 16, 509, 2072, 16, 509, 3598, 16, 509, 740, 16, 509, 618, 16, 509, 729, 2355, 16, 1850, 509, 1026, 2355, 16, 509, 943, 2355, 16, 7400, 501, 262, 288, 565, 509, 1801, 16, 7575, 31, 3639, 509, 4519, 273, 866, 49, 625, 1458, 2615, 12, 2713, 1630, 16, 740, 16, 618, 11272, 565, 309, 12, 4519, 480, 374, 262, 288, 1377, 327, 12, 4519, 11272, 565, 289, 3639, 309, 12, 1835, 411, 404, 747, 2072, 411, 404, 747, 3598, 411, 404, 262, 288, 1377, 327, 12, 10252, 57, 18, 11261, 57, 67, 2 ]
Dimension d = p.getPreferredSize(); if(d.width==0 || d.height==0) { LayoutManager lm = p.getLayout(); Dimension d2 = lm.preferredLayoutSize(p); p.setPreferredSize(d2); jTbTools.revalidate(); /* Thread th = new Thread() { int h = 0, w = 0; LayoutManager lm = p.getLayout(); Dimension d2 = lm.preferredLayoutSize(p); int tow = (int)d2.getWidth(), toh = (int)d2.getHeight(); public void run() { while(h<toh || w<tow) { if((h+10)<toh) h += 10; else if(h<toh) h = toh; if((w+10)<tow) w += 10; else if(w<tow) w = tow; p.setPreferredSize(new Dimension(w, h)); jTbTools.revalidate(); try {this.sleep(30);} catch(InterruptedException ie) {ie.printStackTrace(); break;} } p.setPreferredSize(new Dimension(tow,toh)); jTbTools.revalidate(); } }; th.start(); */ } else { p.setPreferredSize( new Dimension(0,0) ); jTbTools.revalidate(); /* Thread th = new Thread() { int h = p.getHeight(), w = p.getWidth(); LayoutManager lm = p.getLayout(); int tow = 0, toh = 0; public void run() { while(h>toh || w>tow) { if((h-10)>toh) h -= 10; else if(h>toh) h = toh; if((w-10)>tow) w -= 10; else if(w>tow) w = tow; p.setPreferredSize(new Dimension(w, h)); jTbTools.revalidate(); try {this.sleep(30);} catch(InterruptedException ie) {ie.printStackTrace(); break;} } p.setPreferredSize(new Dimension(tow,toh)); jTbTools.revalidate(); } }; th.start(); */ } }
Dimension d = p.getPreferredSize(); if(d.width==0 || d.height==0) { LayoutManager lm = p.getLayout(); Dimension d2 = lm.preferredLayoutSize(p); p.setPreferredSize(d2); jTbTools.revalidate(); /* Thread th = new Thread() { int h = 0, w = 0; LayoutManager lm = p.getLayout(); Dimension d2 = lm.preferredLayoutSize(p); int tow = (int)d2.getWidth(), toh = (int)d2.getHeight(); public void run() { while(h<toh || w<tow) { if((h+10)<toh) h += 10; else if(h<toh) h = toh; if((w+10)<tow) w += 10; else if(w<tow) w = tow; p.setPreferredSize(new Dimension(w, h)); jTbTools.revalidate(); try {this.sleep(30);} catch(InterruptedException ie) {ie.printStackTrace(); break;} } p.setPreferredSize(new Dimension(tow,toh)); jTbTools.revalidate(); } }; th.start(); */ } else { p.setPreferredSize( new Dimension(0,0) ); jTbTools.revalidate(); /* Thread th = new Thread() { int h = p.getHeight(), w = p.getWidth(); LayoutManager lm = p.getLayout(); int tow = 0, toh = 0; public void run() { while(h>toh || w>tow) { if((h-10)>toh) h -= 10; else if(h>toh) h = toh; if((w-10)>tow) w -= 10; else if(w>tow) w = tow; p.setPreferredSize(new Dimension(w, h)); jTbTools.revalidate(); try {this.sleep(30);} catch(InterruptedException ie) {ie.printStackTrace(); break;} } p.setPreferredSize(new Dimension(tow,toh)); jTbTools.revalidate(); } }; th.start(); */ } }
public void actionPerformed(ActionEvent ae) { Dimension d = p.getPreferredSize(); if(d.width==0 || d.height==0) { LayoutManager lm = p.getLayout(); Dimension d2 = lm.preferredLayoutSize(p); p.setPreferredSize(d2); jTbTools.revalidate(); /* // this piece of code adds in an animation // for popping out the extra controls panel Thread th = new Thread() { int h = 0, w = 0; LayoutManager lm = p.getLayout(); Dimension d2 = lm.preferredLayoutSize(p); int tow = (int)d2.getWidth(), toh = (int)d2.getHeight(); //toh = (int)d2.getHeight(); //tow = (int)d2.getWidth(); public void run() { while(h<toh || w<tow) { if((h+10)<toh) h += 10; else if(h<toh) h = toh; if((w+10)<tow) w += 10; else if(w<tow) w = tow; p.setPreferredSize(new Dimension(w, h)); //p.invalidate(); jTbTools.revalidate(); //paint(Temp4.this.getGraphics()); try {this.sleep(30);} catch(InterruptedException ie) {ie.printStackTrace(); break;} } p.setPreferredSize(new Dimension(tow,toh)); jTbTools.revalidate(); } }; th.start(); */ } else { p.setPreferredSize( new Dimension(0,0) ); jTbTools.revalidate(); /* Thread th = new Thread() { int h = p.getHeight(), w = p.getWidth(); LayoutManager lm = p.getLayout(); int tow = 0, toh = 0; public void run() { while(h>toh || w>tow) { if((h-10)>toh) h -= 10; else if(h>toh) h = toh; if((w-10)>tow) w -= 10; else if(w>tow) w = tow; p.setPreferredSize(new Dimension(w, h)); //p.invalidate(); jTbTools.revalidate(); //paint(Temp4.this.getGraphics()); try {this.sleep(30);} catch(InterruptedException ie) {ie.printStackTrace(); break;} } p.setPreferredSize(new Dimension(tow,toh)); jTbTools.revalidate(); } }; th.start(); */ } }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/b0c04532afe908e8b2dbb20f5627ce038dca3a4d/GraphVisualizer.java/clean/gui/graphvisualizer/GraphVisualizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 6647, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 9506, 4202, 13037, 302, 273, 293, 18, 588, 16028, 1225, 5621, 1377, 9506, 4202, 309, 12, 72, 18, 2819, 631, 20, 747, 302, 18, 4210, 631, 20, 13, 288, 25083, 282, 9995, 1318, 14966, 273, 293, 18, 588, 3744, 5621, 6862, 282, 13037, 302, 22, 273, 14966, 18, 23616, 3744, 1225, 12, 84, 1769, 6862, 282, 293, 18, 542, 16028, 1225, 12, 72, 22, 1769, 525, 56, 70, 10348, 18, 266, 5662, 5621, 6862, 282, 1748, 368, 333, 11151, 434, 981, 4831, 316, 392, 8794, 4405, 1377, 368, 364, 1843, 1382, 596, 326, 2870, 11022, 6594, 6862, 282, 4884, 286, 273, 394, 4884, 1435, 288, 25083, 282, 509, 366, 273, 374, 16, 341, 273, 374, 31, 25083, 282, 9995, 1318, 14966, 273, 293, 18, 588, 3744, 5621, 25083, 282, 13037, 302, 22, 273, 14966, 18, 23616, 3744, 1225, 12, 84, 1769, 25083, 565, 25083, 282, 509, 358, 91, 273, 261, 474, 13, 72, 22, 18, 588, 2384, 9334, 358, 76, 273, 261, 474, 13, 72, 22, 18, 588, 2686, 5621, 25083, 282, 368, 869, 76, 273, 261, 474, 13, 72, 22, 18, 588, 2686, 5621, 9944, 282, 368, 31091, 273, 261, 474, 13, 72, 22, 18, 588, 2384, 5621, 25083, 565, 25083, 282, 1071, 918, 1086, 1435, 288, 25083, 4202, 1323, 12, 76, 32, 869, 76, 747, 341, 32, 31091, 13, 288, 6862, 1082, 282, 309, 12443, 76, 15, 2163, 13, 32, 869, 76, 13, 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, 1875, 6647, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 288, 9506, 4202, 13037, 302, 273, 293, 18, 588, 16028, 1225, 5621, 1377, 9506, 4202, 309, 12, 72, 18, 2819, 631, 20, 747, 302, 18, 4210, 631, 20, 13, 288, 25083, 282, 9995, 1318, 14966, 273, 293, 18, 588, 3744, 5621, 6862, 282, 13037, 302, 22, 273, 14966, 18, 23616, 3744, 1225, 12, 84, 1769, 6862, 282, 293, 18, 542, 16028, 1225, 12, 72, 22, 1769, 525, 56, 70, 10348, 18, 266, 5662, 5621, 6862, 282, 1748, 368, 333, 11151, 434, 981, 4831, 316, 392, 8794, 4405, 1377, 368, 364, 1843, 1382, 596, 326, 2870, 11022, 6594, 6862, 282, 4884, 286, 273, 394, 4884, 1435, 288, 25083, 282, 509, 2 ]
return new SourcePosition(filename, startLine, endLine, startOffset, source.getOffset());
lastPosition = new SourcePosition(filename, startLine, endLine, startOffset, source.getOffset()); return lastPosition;
public ISourcePosition getPosition(LexerSource source, ISourcePosition startPosition) { int startLine; int startOffset; int endLine = source.getLine(); String filename = source.getFilename(); if (startPosition == null) { startLine = lastPosition.getEndLine(); startOffset = lastPosition.getEndOffset(); } else { startLine = startPosition.getEndLine(); startOffset = startPosition.getEndOffset(); } return new SourcePosition(filename, startLine, endLine, startOffset, source.getOffset()); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/b1293eda8454686e846e2a9837b348e2983bb423/SourcePositionFactory.java/buggy/src/org/jruby/lexer/yacc/SourcePositionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1830, 2555, 14441, 12, 13356, 1830, 1084, 16, 467, 1830, 2555, 23549, 13, 288, 377, 202, 474, 24636, 31, 377, 202, 474, 18245, 31, 377, 202, 474, 31763, 273, 1084, 18, 588, 1670, 5621, 377, 202, 780, 1544, 273, 1084, 18, 588, 5359, 5621, 377, 202, 3639, 309, 261, 1937, 2555, 422, 446, 13, 288, 5411, 24636, 273, 1142, 2555, 18, 588, 1638, 1670, 5621, 5411, 18245, 273, 1142, 2555, 18, 588, 1638, 2335, 5621, 3639, 289, 469, 288, 5411, 24636, 273, 23549, 18, 588, 1638, 1670, 5621, 5411, 18245, 273, 23549, 18, 588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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 1830, 2555, 14441, 12, 13356, 1830, 1084, 16, 467, 1830, 2555, 23549, 13, 288, 377, 202, 474, 24636, 31, 377, 202, 474, 18245, 31, 377, 202, 474, 31763, 273, 1084, 18, 588, 1670, 5621, 377, 202, 780, 1544, 273, 1084, 18, 588, 5359, 5621, 377, 202, 3639, 309, 261, 1937, 2555, 422, 446, 13, 288, 5411, 24636, 273, 1142, 2555, 18, 588, 1638, 1670, 5621, 5411, 18245, 273, 1142, 2555, 18, 588, 1638, 2335, 5621, 3639, 289, 469, 288, 5411, 24636, 273, 23549, 18, 588, 1638, 1670, 5621, 5411, 18245, 273, 23549, 18, 588, 1638, 2335, 5621, 3639, 289, 3639, 327, 394, 4998, 2555, 12, 3459, 16, 24636, 16, 31763, 16, 18245, 16, 1084, 18, 588, 2 ]
return "Class " + classThatNeedsDeps.getName() + " needs unnamed depenencies";
return "Class " + classThatNeedsDeps.getName() + " needs unnamed dependencies";
public String getMessage() { return "Class " + classThatNeedsDeps.getName() + " needs unnamed depenencies"; }
9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/e0a248f009a6a48cd75567392ae228b02c629e42/UnsatisfiedDependencyStartupException.java/buggy/trunk/java/picocontainer/src/java/picocontainer/hierarchical/UnsatisfiedDependencyStartupException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2381, 1435, 565, 288, 3639, 327, 315, 797, 315, 397, 667, 18163, 26419, 14430, 18, 17994, 1435, 397, 315, 4260,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2381, 1435, 565, 288, 3639, 327, 315, 797, 315, 397, 667, 18163, 26419, 14430, 18, 17994, 1435, 397, 315, 4260, 640, 13188, 5030, 14432, 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 ]
releaseLockoutLock( int value ) {
static void releaseLockoutLock(int value) {
releaseLockoutLock( int value ) { while (true) { int lockoutVal = VM_Magic.prepare(VM_BootRecord.the_boot_record, VM_Entrypoints.lockoutProcessorField.offset); // check that current value is as expected if (VM.VerifyAssertions && (value!=0)) VM.assert( lockoutVal == value ); // OK, reset to zero if(VM_Magic.attempt(VM_BootRecord.the_boot_record, VM_Entrypoints.lockoutProcessorField.offset, lockoutVal, 0)) break; } } // releaseLockoutLock
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a259eee8ff750bfcf6596f83ad8ce6c1bcc7286d/VM_Handshake.java/clean/rvm/src/vm/memoryManagers/watson/common/synchronization/VM_Handshake.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3992, 2531, 659, 2531, 12, 509, 460, 262, 225, 288, 565, 1323, 261, 3767, 13, 288, 1377, 509, 2176, 659, 3053, 273, 8251, 67, 19289, 18, 9366, 12, 7397, 67, 15817, 2115, 18, 5787, 67, 7137, 67, 3366, 16, 6862, 202, 7397, 67, 1622, 4139, 18, 739, 659, 5164, 974, 18, 3348, 1769, 1377, 368, 866, 716, 783, 460, 353, 487, 2665, 1377, 309, 261, 7397, 18, 8097, 8213, 1115, 597, 261, 1132, 5, 33, 20, 3719, 8251, 18, 11231, 12, 2176, 659, 3053, 422, 460, 11272, 1377, 368, 7791, 16, 2715, 358, 3634, 1377, 309, 12, 7397, 67, 19289, 18, 11764, 12, 7397, 67, 15817, 2115, 18, 5787, 67, 7137, 67, 3366, 16, 9506, 225, 8251, 67, 1622, 4139, 18, 739, 659, 5164, 974, 18, 3348, 16, 9506, 225, 2176, 659, 3053, 16, 374, 3719, 202, 8820, 31, 565, 289, 225, 289, 225, 368, 3992, 2531, 659, 2531, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3992, 2531, 659, 2531, 12, 509, 460, 262, 225, 288, 565, 1323, 261, 3767, 13, 288, 1377, 509, 2176, 659, 3053, 273, 8251, 67, 19289, 18, 9366, 12, 7397, 67, 15817, 2115, 18, 5787, 67, 7137, 67, 3366, 16, 6862, 202, 7397, 67, 1622, 4139, 18, 739, 659, 5164, 974, 18, 3348, 1769, 1377, 368, 866, 716, 783, 460, 353, 487, 2665, 1377, 309, 261, 7397, 18, 8097, 8213, 1115, 597, 261, 1132, 5, 33, 20, 3719, 8251, 18, 11231, 12, 2176, 659, 3053, 422, 460, 11272, 1377, 368, 7791, 16, 2715, 358, 3634, 1377, 309, 12, 7397, 67, 19289, 18, 11764, 12, 7397, 67, 15817, 2115, 18, 5787, 67, 7137, 67, 3366, 16, 9506, 225, 8251, 67, 2 ]
this.runtime = ruby;
public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); this.runtime = ruby; in.read(); // Major in.read(); // Minor }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/034747585fcabe56272dd07acab0ab42ce8450d5/UnmarshalStream.java/clean/org/jruby/runtime/marshal/UnmarshalStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3814, 1228, 12, 54, 10340, 22155, 16, 5037, 316, 13, 1216, 1860, 288, 3639, 2240, 12, 267, 1769, 9079, 316, 18, 896, 5621, 368, 25977, 3639, 316, 18, 896, 5621, 368, 29007, 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, 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25977, 3639, 316, 18, 896, 5621, 368, 29007, 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 ]
plugin = new EditPlugin.Deferred(className); plugin.jar = (EditPlugin.JAR)this;
private PluginCacheEntry generateCache() throws IOException { Properties properties = new Properties(); LinkedList classes = new LinkedList(); ZipFile zipFile = getZipFile(); List plugins = new LinkedList(); PluginCacheEntry cache = new PluginCacheEntry(); cache.modTime = file.lastModified(); cache.cachedProperties = new HashMap(); Enumeration entries = zipFile.entries(); while(entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); String name = entry.getName(); String lname = name.toLowerCase(); if(lname.equals("actions.xml")) { cache.actionsURI = classLoader.getResource(name); } else if(lname.equals("browser.actions.xml")) { cache.browserActionsURI = classLoader.getResource(name); } else if(lname.equals("dockables.xml")) { dockablesURI = classLoader.getResource(name); cache.dockablesURI = dockablesURI; } else if(lname.equals("services.xml")) { servicesURI = classLoader.getResource(name); cache.servicesURI = servicesURI; } else if(lname.endsWith(".props")) { InputStream in = classLoader.getResourceAsStream(name); properties.load(in); in.close(); } else if(name.endsWith(".class")) { String className = MiscUtilities .fileToClass(name); if(className.endsWith("Plugin")) { // Check if a plugin with the same name // is already loaded if(jEdit.getPlugin(className) != null) { jEdit.pluginError(path, "plugin-error.already-loaded", null); } else { plugins.add(className); } } classes.add(className); } } cache.cachedProperties = properties; jEdit.addProperties(properties); this.classes = cache.classes = (String[])classes.toArray( new String[classes.size()]); String label = null; Iterator iter = plugins.iterator(); while(iter.hasNext()) { String className = (String)iter.next(); String _label = jEdit.getProperty("plugin." + className + ".name"); String version = jEdit.getProperty("plugin." + className + ".version"); if(_label == null || version == null) { Log.log(Log.NOTICE,this,"Ignoring: " + className); } else { plugin = new EditPlugin.Deferred(className); plugin.jar = (EditPlugin.JAR)this; cache.pluginClass = className; label = _label; break; } } if(cache.actionsURI != null) { actions = new ActionSet(this,null,null, cache.actionsURI); actions.load(); cache.cachedActionNames = actions.getCacheableActionNames(); cache.cachedActionToggleFlags = new boolean[ cache.cachedActionNames.length]; for(int i = 0; i < cache.cachedActionNames.length; i++) { cache.cachedActionToggleFlags[i] = jEdit.getBooleanProperty( cache.cachedActionNames[i] + ".toggle"); } } if(cache.browserActionsURI != null) { browserActions = new ActionSet(this,null,null, cache.browserActionsURI); browserActions.load(); VFSBrowser.getActionContext().addActionSet(browserActions); cache.cachedBrowserActionNames = browserActions.getCacheableActionNames(); cache.cachedBrowserActionToggleFlags = new boolean[ cache.cachedBrowserActionNames.length]; for(int i = 0; i < cache.cachedBrowserActionNames.length; i++) { cache.cachedBrowserActionToggleFlags[i] = jEdit.getBooleanProperty( cache.cachedBrowserActionNames[i] + ".toggle"); } } if(dockablesURI != null) { DockableWindowManager.loadDockableWindows(this, dockablesURI,cache); } if(label != null) { actions.setLabel(jEdit.getProperty( "action-set.plugin", new String[] { label })); } if(actions.size() != 0) jEdit.addActionSet(actions); if(servicesURI != null) { ServiceManager.loadServices(this,servicesURI,cache); } return cache; } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/c19773cc63e3dbcbb47670243d70ffd77d592ab5/PluginJAR.java/clean/org/gjt/sp/jedit/PluginJAR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6258, 27630, 2103, 1649, 1435, 1216, 1860, 202, 95, 202, 202, 2297, 1790, 273, 394, 6183, 5621, 202, 202, 13174, 682, 3318, 273, 394, 10688, 5621, 202, 202, 29394, 19450, 273, 336, 29394, 5621, 202, 202, 682, 4799, 273, 394, 10688, 5621, 202, 202, 3773, 27630, 1247, 273, 394, 6258, 27630, 5621, 202, 202, 2493, 18, 1711, 950, 273, 585, 18, 2722, 4575, 5621, 202, 202, 2493, 18, 7097, 2297, 273, 394, 4317, 5621, 202, 202, 21847, 3222, 273, 19450, 18, 8219, 5621, 202, 202, 17523, 12, 8219, 18, 5332, 7417, 3471, 10756, 202, 202, 95, 1082, 202, 9141, 1622, 1241, 273, 261, 9141, 1622, 13, 9506, 202, 8219, 18, 4285, 1046, 5621, 1082, 202, 780, 508, 273, 1241, 18, 17994, 5621, 1082, 202, 780, 328, 529, 273, 508, 18, 869, 5630, 5621, 1082, 202, 430, 12, 80, 529, 18, 14963, 2932, 4905, 18, 2902, 6, 3719, 1082, 202, 95, 9506, 202, 2493, 18, 4905, 3098, 273, 11138, 18, 588, 1420, 12, 529, 1769, 1082, 202, 97, 1082, 202, 12107, 309, 12, 80, 529, 18, 14963, 2932, 11213, 18, 4905, 18, 2902, 6, 3719, 1082, 202, 95, 9506, 202, 2493, 18, 11213, 6100, 3098, 273, 11138, 18, 588, 1420, 12, 529, 1769, 1082, 202, 97, 1082, 202, 12107, 309, 12, 80, 529, 18, 14963, 2932, 72, 975, 1538, 18, 2902, 6, 3719, 1082, 202, 95, 9506, 202, 72, 975, 1538, 3098, 273, 11138, 18, 588, 1420, 12, 529, 1769, 9506, 202, 2493, 18, 72, 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, 6258, 27630, 2103, 1649, 1435, 1216, 1860, 202, 95, 202, 202, 2297, 1790, 273, 394, 6183, 5621, 202, 202, 13174, 682, 3318, 273, 394, 10688, 5621, 202, 202, 29394, 19450, 273, 336, 29394, 5621, 202, 202, 682, 4799, 273, 394, 10688, 5621, 202, 202, 3773, 27630, 1247, 273, 394, 6258, 27630, 5621, 202, 202, 2493, 18, 1711, 950, 273, 585, 18, 2722, 4575, 5621, 202, 202, 2493, 18, 7097, 2297, 273, 394, 4317, 5621, 202, 202, 21847, 3222, 273, 19450, 18, 8219, 5621, 202, 202, 17523, 12, 8219, 18, 5332, 7417, 3471, 10756, 202, 202, 95, 1082, 202, 9141, 1622, 1241, 273, 261, 9141, 1622, 13, 9506, 202, 8219, 18, 4285, 1046, 5621, 1082, 202, 780, 2 ]
public void addLayer(Reader reader, String name) throws IOException { Log4J.startMethod(logger, "addLayer"); try { if (!name.contains("collision")) { LayerRenderer content = null; URL url = getClass().getClassLoader().getResource("data/layers/"+name+".jpg"); if(url != null) { content = new ImageRenderer(url); } if(content == null) { content = new TileRenderer(tilestore); ((TileRenderer)content).setMapData(reader); } int i; for (i = 0; i < layers.size(); i++) { if (layers.get(i).first().compareTo(name) == 0) { /** Repeated layers should be ignored. */ return; } if (layers.get(i).first().compareTo(name) >= 0) { break; } } layers.add(i, new Pair<String, LayerRenderer>(name, content)); } else { CollisionDetection collision = new CollisionDetection(); collision.setCollisionData(reader); collisions.add(new Pair<String, CollisionDetection>(name, collision)); } } finally { Log4J.finishMethod(logger, "addLayer"); } }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/5285eeeb365c4124fb1bfe6edb42c67dcdb41a28/StaticGameLayers.java/clean/src/games/stendhal/client/StaticGameLayers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 1289, 4576, 12, 2514, 10530, 16, 780, 529, 13, 15069, 14106, 202, 95, 202, 202, 1343, 24, 46, 18, 1937, 1305, 12, 4901, 10837, 1289, 4576, 8863, 698, 202, 202, 95, 1082, 202, 430, 12, 5, 529, 18, 12298, 2932, 12910, 1951, 6, 3719, 1082, 202, 95, 4576, 6747, 1745, 33, 2011, 31, 1785, 718, 33, 588, 797, 7675, 588, 7805, 7675, 588, 1420, 2932, 892, 19, 10396, 4898, 15, 529, 9078, 18, 14362, 8863, 430, 12, 718, 5, 33, 2011, 15329, 1745, 33, 2704, 2040, 6747, 12, 718, 1769, 97, 430, 12, 1745, 631, 2011, 15329, 1745, 33, 2704, 9337, 6747, 12, 1025, 25626, 1769, 9506, 202, 12443, 9337, 6747, 13, 1745, 2934, 542, 863, 751, 12, 10530, 1769, 97, 9506, 202, 474, 77, 31, 9506, 202, 1884, 12, 77, 33, 20, 31, 77, 32, 10396, 18, 1467, 5621, 77, 27245, 9506, 202, 95, 6862, 202, 430, 12, 10396, 18, 588, 12, 77, 2934, 3645, 7675, 9877, 774, 12, 529, 13, 631, 20, 13, 6862, 202, 95, 25083, 202, 26873, 20730, 10396, 13139, 2196, 24055, 4509, 19, 25083, 202, 2463, 31, 6862, 202, 97, 6862, 202, 430, 12, 10396, 18, 588, 12, 77, 2934, 3645, 7675, 9877, 774, 12, 529, 13, 34, 33, 20, 13, 6862, 202, 95, 25083, 202, 8820, 31, 6862, 202, 97, 9506, 202, 97, 9506, 202, 10396, 18, 1289, 12, 77, 16, 2704, 4154, 32, 780, 16, 4576, 6747, 34, 12, 529, 16, 1745, 10019, 1082, 202, 97, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 1289, 4576, 12, 2514, 10530, 16, 780, 529, 13, 15069, 14106, 202, 95, 202, 202, 1343, 24, 46, 18, 1937, 1305, 12, 4901, 10837, 1289, 4576, 8863, 698, 202, 202, 95, 1082, 202, 430, 12, 5, 529, 18, 12298, 2932, 12910, 1951, 6, 3719, 1082, 202, 95, 4576, 6747, 1745, 33, 2011, 31, 1785, 718, 33, 588, 797, 7675, 588, 7805, 7675, 588, 1420, 2932, 892, 19, 10396, 4898, 15, 529, 9078, 18, 14362, 8863, 430, 12, 718, 5, 33, 2011, 15329, 1745, 33, 2704, 2040, 6747, 12, 718, 1769, 97, 430, 12, 1745, 631, 2011, 15329, 1745, 33, 2704, 9337, 6747, 12, 1025, 25626, 1769, 9506, 202, 12443, 9337, 6747, 13, 1745, 2934, 542, 2 ]
try { SAXBuilder builder = new SAXBuilder(); Document collectionDoc = builder.build(r); EntrySet c = new MemberEntrySet(collectionDoc, getUrlPrefix()); c = createMembers((MemberEntrySet)c); return c; } catch (JDOMException je) { throw new InternalException("ERROR: Could not post collection", je); } catch (IOException ioe) { throw new InternalException("ERROR: Could not post collection", ioe); } catch (MissingElementException mee) { throw new InternalException("ERROR: Could not post collection", mee); } catch (UnexpectedRootElementException uree) { throw new InternalException("ERROR: Could not post collection", uree); }
EntrySet c = getEntrySet(r); if (c.isEmpty()) { throw new BadRequestException("ERROR: No entries"); } c = createMembers((MemberEntrySet)c); return c;
private EntrySet postCollection(Reader r) throws HandlerException { try { SAXBuilder builder = new SAXBuilder(); Document collectionDoc = builder.build(r); EntrySet c = new MemberEntrySet(collectionDoc, getUrlPrefix()); c = createMembers((MemberEntrySet)c); return c; } catch (JDOMException je) { throw new InternalException("ERROR: Could not post collection", je); } catch (IOException ioe) { throw new InternalException("ERROR: Could not post collection", ioe); } catch (MissingElementException mee) { throw new InternalException("ERROR: Could not post collection", mee); } catch (UnexpectedRootElementException uree) { throw new InternalException("ERROR: Could not post collection", uree); } }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/ccb55ae2bf21338418d73b43e6eed8f25c2132d2/RollerMemberHandler.java/buggy/src/org/apache/roller/webservices/adminapi/RollerMemberHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3841, 694, 1603, 2532, 12, 2514, 436, 13, 1216, 4663, 503, 288, 3639, 775, 288, 5411, 10168, 1263, 2089, 273, 394, 10168, 1263, 5621, 5411, 4319, 1849, 1759, 273, 2089, 18, 3510, 12, 86, 1769, 5411, 3841, 694, 276, 273, 394, 8596, 1622, 694, 12, 5548, 1759, 16, 8928, 2244, 10663, 5411, 276, 273, 752, 6918, 12443, 4419, 1622, 694, 13, 71, 1769, 13491, 327, 276, 31, 3639, 289, 1044, 261, 46, 8168, 503, 30356, 13, 288, 5411, 604, 394, 3186, 503, 2932, 3589, 30, 14312, 486, 1603, 1849, 3113, 30356, 1769, 3639, 289, 1044, 261, 14106, 10847, 13, 288, 5411, 604, 394, 3186, 503, 2932, 3589, 30, 14312, 486, 1603, 1849, 3113, 10847, 1769, 3639, 289, 1044, 261, 4841, 20826, 312, 1340, 13, 288, 5411, 604, 394, 3186, 503, 2932, 3589, 30, 14312, 486, 1603, 1849, 3113, 312, 1340, 1769, 3639, 289, 1044, 261, 7762, 2375, 20826, 582, 992, 13, 288, 5411, 604, 394, 3186, 503, 2932, 3589, 30, 14312, 486, 1603, 1849, 3113, 582, 992, 1769, 10792, 289, 6647, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3841, 694, 1603, 2532, 12, 2514, 436, 13, 1216, 4663, 503, 288, 3639, 775, 288, 5411, 10168, 1263, 2089, 273, 394, 10168, 1263, 5621, 5411, 4319, 1849, 1759, 273, 2089, 18, 3510, 12, 86, 1769, 5411, 3841, 694, 276, 273, 394, 8596, 1622, 694, 12, 5548, 1759, 16, 8928, 2244, 10663, 5411, 276, 273, 752, 6918, 12443, 4419, 1622, 694, 13, 71, 1769, 13491, 327, 276, 31, 3639, 289, 1044, 261, 46, 8168, 503, 30356, 13, 288, 5411, 604, 394, 3186, 503, 2932, 3589, 30, 14312, 486, 1603, 1849, 3113, 30356, 1769, 3639, 289, 1044, 261, 14106, 10847, 13, 288, 5411, 604, 394, 3186, 503, 2932, 3589, 30, 14312, 486, 1603, 1849, 3113, 10847, 1769, 3639, 289, 2 ]
particle = traverseChoice(child, schemaDoc, grammar, NOT_ALL_CONTEXT, enclosingCT);
particle = traverseChoice(child, schemaDoc, grammar, NOT_ALL_CONTEXT, parent);
private XSParticleDecl traverseSeqChoice(Element decl, XSDocumentInfo schemaDoc, SchemaGrammar grammar, int allContextFlags, boolean choice, XSComplexTypeDecl enclosingCT) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(decl, false, schemaDoc); Element child = DOMUtil.getFirstChildElement(decl); XSAnnotationImpl annotation = null; if (child !=null) { // traverse Annotation if (DOMUtil.getLocalName(child).equals(SchemaSymbols.ELT_ANNOTATION)) { annotation = traverseAnnotationDecl(child, attrValues, false, schemaDoc); child = DOMUtil.getNextSiblingElement(child); } } boolean hadContent = false; String childName = null; XSParticleDecl particle; fPArray.pushContext(); for (;child != null;child = DOMUtil.getNextSiblingElement(child)) { particle = null; childName = DOMUtil.getLocalName(child); if (childName.equals(SchemaSymbols.ELT_ELEMENT)) { particle = fSchemaHandler.fElementTraverser.traverseLocal(child, schemaDoc, grammar, NOT_ALL_CONTEXT, enclosingCT); } else if (childName.equals(SchemaSymbols.ELT_GROUP)) { particle = fSchemaHandler.fGroupTraverser.traverseLocal(child, schemaDoc, grammar); // A content type of all can only appear // as the content type of a complex type definition. if (hasAllContent(particle)) { // don't insert the "all" particle, otherwise we won't be // able to create DFA from this content model particle = null; reportSchemaError("cos-all-limited.1.2", null, child); } } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { particle = traverseChoice(child, schemaDoc, grammar, NOT_ALL_CONTEXT, enclosingCT); } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { particle = traverseSequence(child, schemaDoc, grammar, NOT_ALL_CONTEXT, enclosingCT); } else if (childName.equals(SchemaSymbols.ELT_ANY)) { particle = fSchemaHandler.fWildCardTraverser.traverseAny(child, schemaDoc, grammar); } else { Object [] args; if (choice) { args = new Object[]{"choice", "(annotation?, (element | group | choice | sequence | any)*)", DOMUtil.getLocalName(child)}; } else { args = new Object[]{"sequence", "(annotation?, (element | group | choice | sequence | any)*)", DOMUtil.getLocalName(child)}; } reportSchemaError("s4s-elt-must-match.1", args, child); } if (particle != null) fPArray.addParticle(particle); } particle = null; XInt minAtt = (XInt)attrValues[XSAttributeChecker.ATTIDX_MINOCCURS]; XInt maxAtt = (XInt)attrValues[XSAttributeChecker.ATTIDX_MAXOCCURS]; Long defaultVals = (Long)attrValues[XSAttributeChecker.ATTIDX_FROMDEFAULT]; XSModelGroupImpl group = new XSModelGroupImpl(); group.fCompositor = choice ? XSModelGroupImpl.MODELGROUP_CHOICE : XSModelGroupImpl.MODELGROUP_SEQUENCE; group.fParticleCount = fPArray.getParticleCount(); group.fParticles = fPArray.popContext(); group.fAnnotation = annotation; particle = new XSParticleDecl(); particle.fType = XSParticleDecl.PARTICLE_MODELGROUP; particle.fMinOccurs = minAtt.intValue(); particle.fMaxOccurs = maxAtt.intValue(); particle.fValue = group; particle = checkOccurrences(particle, choice ? SchemaSymbols.ELT_CHOICE : SchemaSymbols.ELT_SEQUENCE, (Element)decl.getParentNode(), allContextFlags, defaultVals.longValue()); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return particle; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/df5f02d3094a70997c3d99b1716f4b3c1e466734/XSDAbstractParticleTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDAbstractParticleTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1139, 55, 1988, 3711, 3456, 10080, 6926, 10538, 12, 1046, 3496, 16, 4766, 2398, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 2398, 4611, 18576, 6473, 16, 4766, 2398, 509, 777, 1042, 5094, 16, 4766, 2398, 1250, 6023, 16, 4766, 2398, 1139, 55, 12795, 559, 3456, 16307, 1268, 13, 288, 3639, 368, 9544, 3601, 24471, 3639, 1033, 8526, 1604, 1972, 273, 284, 3843, 8847, 18, 1893, 2498, 12, 8840, 16, 629, 16, 1963, 1759, 1769, 3639, 3010, 1151, 273, 4703, 1304, 18, 588, 3759, 1763, 1046, 12, 8840, 1769, 3639, 1139, 55, 3257, 2828, 3204, 273, 446, 31, 3639, 309, 261, 3624, 480, 2011, 13, 288, 5411, 368, 10080, 6090, 5411, 309, 261, 8168, 1304, 18, 588, 29583, 12, 3624, 2934, 14963, 12, 3078, 14821, 18, 2247, 56, 67, 24922, 3719, 288, 7734, 3204, 273, 10080, 3257, 3456, 12, 3624, 16, 1604, 1972, 16, 629, 16, 1963, 1759, 1769, 7734, 1151, 273, 4703, 1304, 18, 588, 2134, 10291, 1046, 12, 3624, 1769, 5411, 289, 3639, 289, 3639, 1250, 9323, 1350, 273, 629, 31, 3639, 514, 27440, 273, 446, 31, 3639, 1139, 55, 1988, 3711, 3456, 20036, 31, 3639, 284, 52, 1076, 18, 6206, 1042, 5621, 3639, 364, 261, 31, 3624, 480, 446, 31, 3624, 273, 4703, 1304, 18, 588, 2134, 10291, 1046, 12, 3624, 3719, 288, 5411, 20036, 273, 446, 31, 5411, 27440, 273, 4703, 1304, 18, 588, 29583, 12, 3624, 1769, 5411, 309, 261, 3624, 461, 18, 14963, 12, 3078, 14821, 18, 2247, 56, 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, 1139, 55, 1988, 3711, 3456, 10080, 6926, 10538, 12, 1046, 3496, 16, 4766, 2398, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 2398, 4611, 18576, 6473, 16, 4766, 2398, 509, 777, 1042, 5094, 16, 4766, 2398, 1250, 6023, 16, 4766, 2398, 1139, 55, 12795, 559, 3456, 16307, 1268, 13, 288, 3639, 368, 9544, 3601, 24471, 3639, 1033, 8526, 1604, 1972, 273, 284, 3843, 8847, 18, 1893, 2498, 12, 8840, 16, 629, 16, 1963, 1759, 1769, 3639, 3010, 1151, 273, 4703, 1304, 18, 588, 3759, 1763, 1046, 12, 8840, 1769, 3639, 1139, 55, 3257, 2828, 3204, 273, 446, 31, 3639, 309, 261, 3624, 480, 2011, 13, 288, 5411, 368, 10080, 6090, 5411, 309, 261, 8168, 1304, 18, 588, 2 ]
points[7] = y-length;
points[7] = y - length;
private void createPlus(double x, double y, double size) { createNew(4); double length = size/2.; type[0] = PathIterator.SEG_MOVETO; points[0] = x+length; points[1] = y; type[1] = PathIterator.SEG_LINETO; points[2] = x-length; points[3] = y; type[2] = PathIterator.SEG_MOVETO; points[4] = x; points[5] = y+length; type[3] = PathIterator.SEG_LINETO; points[6] = x; points[7] = y-length; }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/d2255fbe86a662c3d5768854411509915a7f3e00/SymbolShape.java/clean/freehep-graphics2d/src/main/java/org/freehep/graphics2d/SymbolShape.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 13207, 12, 9056, 619, 16, 1645, 677, 16, 1645, 963, 13, 288, 3639, 15291, 12, 24, 1769, 3639, 1645, 769, 273, 963, 19, 22, 18, 31, 3639, 618, 63, 20, 65, 273, 2666, 3198, 18, 1090, 43, 67, 5980, 58, 1584, 51, 31, 3639, 3143, 63, 20, 65, 273, 619, 15, 2469, 31, 3639, 3143, 63, 21, 65, 273, 677, 31, 3639, 618, 63, 21, 65, 273, 2666, 3198, 18, 1090, 43, 67, 48, 18819, 51, 31, 3639, 3143, 63, 22, 65, 273, 619, 17, 2469, 31, 3639, 3143, 63, 23, 65, 273, 677, 31, 3639, 618, 63, 22, 65, 273, 2666, 3198, 18, 1090, 43, 67, 5980, 58, 1584, 51, 31, 3639, 3143, 63, 24, 65, 273, 619, 31, 3639, 3143, 63, 25, 65, 273, 677, 15, 2469, 31, 3639, 618, 63, 23, 65, 273, 2666, 3198, 18, 1090, 43, 67, 48, 18819, 51, 31, 3639, 3143, 63, 26, 65, 273, 619, 31, 3639, 3143, 63, 27, 65, 273, 677, 300, 769, 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,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 1090, 43, 67, 5980, 58, 1584, 51, 31, 3639, 3143, 63, 20, 65, 273, 619, 15, 2469, 31, 3639, 3143, 63, 21, 65, 273, 677, 31, 3639, 618, 63, 21, 65, 273, 2666, 3198, 18, 1090, 43, 67, 48, 18819, 51, 31, 3639, 3143, 63, 22, 65, 273, 619, 17, 2469, 31, 3639, 3143, 63, 23, 65, 273, 677, 31, 3639, 618, 63, 22, 65, 273, 2666, 3198, 18, 1090, 43, 67, 5980, 58, 1584, 51, 31, 3639, 3143, 63, 2 ]
public java.awt.Component getCustomEditor() { return null; }
public java.awt.Component getCustomEditor() { return null; }
public java.awt.Component getCustomEditor() { return null; }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/d1d54223348b2f353d3505c9de3cf685bdb5301f/PropertyEditorSupport.java/buggy/libjava/java/beans/PropertyEditorSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 2219, 88, 18, 1841, 12736, 6946, 1435, 288, 202, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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88, 18, 1841, 12736, 6946, 1435, 288, 202, 202, 2463, 446, 31, 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, -100 ]
return ((IStructuredSelection)sel).getFirstElement();
Object o = ((IStructuredSelection)sel).getFirstElement(); if( o != null && o instanceof ContentWrapper ) { o = ((ContentWrapper)o).getElement(); } return o;
public Object getSelectedElement() { ISelection sel = getSelection(); if( sel instanceof IStructuredSelection ) { return ((IStructuredSelection)sel).getFirstElement(); } return null; }
56633 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56633/45cb231c6f5e0fedbe2d6cbf9f171fcc45696eeb/JBossServerTableViewer.java/buggy/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/JBossServerTableViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 16625, 1046, 1435, 288, 202, 202, 45, 6233, 357, 273, 23204, 5621, 202, 202, 430, 12, 357, 1276, 467, 30733, 6233, 262, 288, 1082, 202, 2463, 14015, 45, 30733, 6233, 13, 1786, 2934, 588, 3759, 1046, 5621, 202, 202, 97, 202, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 16625, 1046, 1435, 288, 202, 202, 45, 6233, 357, 273, 23204, 5621, 202, 202, 430, 12, 357, 1276, 467, 30733, 6233, 262, 288, 1082, 202, 2463, 14015, 45, 30733, 6233, 13, 1786, 2934, 588, 3759, 1046, 5621, 202, 202, 97, 202, 202, 2463, 446, 31, 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 ]
pc = finallyStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1];
pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop];
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; final Scriptable undefined = Undefined.instance; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = undefined; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = undefined; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean( ScriptRuntime.instanceOf(scope, lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, scope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); if (theData.itsNestedFunctions[i] instanceof InterpretedFunction) { stack[++stackTop] = new InterpretedFunction( (InterpretedFunction) (theData.itsNestedFunctions[i]), scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); } else stack[++stackTop] = ScriptRuntime.createFunctionObject(scope, theData.itsNestedFunctions[i].getClass(), cx); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); tryStackTop--; } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw jsx; stack[0] = jsx; tryStackTop--; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) throw jx; tryStackTop--; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/be8d0da3f81b333dc48b04cbbc76d20e79773420/Interpreter.java/clean/js/rhino/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 30010, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1033, 8499, 31, 3639, 1033, 8526, 2110, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 2624, 15533, 3639, 509, 2110, 3401, 273, 300, 21, 31, 3639, 1160, 8526, 277, 1085, 273, 326, 751, 18, 1282, 45, 1085, 31, 7734, 509, 6125, 273, 374, 31, 3639, 509, 277, 1085, 1782, 273, 326, 751, 18, 1282, 45, 1085, 3401, 31, 7734, 1033, 8526, 1191, 273, 446, 31, 3639, 368, 1399, 364, 394, 5814, 19, 407, 278, 30752, 5527, 18, 3639, 309, 261, 5787, 751, 18, 1282, 2747, 1333, 1031, 405, 374, 13, 5411, 1191, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 1333, 1031, 15533, 18701, 1033, 8526, 4153, 273, 446, 31, 3639, 727, 22780, 3109, 273, 22243, 18, 1336, 31, 3639, 509, 277, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 309, 261, 77, 405, 374, 13, 288, 5411, 4153, 273, 394, 1033, 63, 77, 15533, 5411, 364, 261, 77, 273, 374, 31, 277, 411, 326, 751, 18, 1282, 3092, 1388, 18, 588, 1662, 1380, 5621, 277, 27245, 288, 7734, 309, 261, 77, 1545, 326, 751, 18, 1282, 382, 2615, 18, 2469, 13, 10792, 4153, 63, 77, 65, 273, 3109, 31, 7734, 469, 4766, 565, 4153, 63, 77, 65, 273, 326, 751, 18, 1282, 382, 2615, 63, 77, 15533, 7734, 289, 5411, 364, 261, 274, 277, 411, 4153, 18, 2469, 31, 277, 27245, 7734, 4153, 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, 1033, 10634, 12, 30010, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1033, 8499, 31, 3639, 1033, 8526, 2110, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 2624, 15533, 3639, 509, 2110, 3401, 273, 300, 21, 31, 3639, 1160, 8526, 277, 1085, 273, 326, 751, 18, 1282, 45, 1085, 31, 7734, 509, 6125, 273, 374, 31, 3639, 509, 277, 1085, 1782, 273, 326, 751, 18, 1282, 45, 1085, 3401, 31, 7734, 1033, 8526, 1191, 273, 446, 31, 3639, 368, 1399, 364, 394, 5814, 19, 407, 278, 30752, 5527, 18, 3639, 309, 261, 5787, 751, 18, 1282, 2747, 1333, 1031, 405, 374, 13, 5411, 1191, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2 ]
final void prepareWait(Monitor monitor) throws UninterruptiblePragma {
final void prepareWait(Monitor monitor, int waitState) {
final void prepareWait(Monitor monitor) throws UninterruptiblePragma { // Keep this order of assignments! this.waitForMonitor = monitor; this.threadState = WAITING; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cac0b47a8329d3094c8467598a4576704004e163/VmThread.java/buggy/core/src/core/org/jnode/vm/scheduler/VmThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 2911, 5480, 12, 7187, 6438, 16, 509, 2529, 1119, 13, 288, 3639, 368, 10498, 333, 1353, 434, 13610, 5, 3639, 333, 18, 7048, 1290, 7187, 273, 6438, 31,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 918, 2911, 5480, 12, 7187, 6438, 16, 509, 2529, 1119, 13, 288, 3639, 368, 10498, 333, 1353, 434, 13610, 5, 3639, 333, 18, 7048, 1290, 7187, 273, 6438, 31, 3639, 333, 18, 5930, 1119, 273, 26859, 1360, 31, 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 ]
logger.log(LogService.LOG_ERROR, e.toString());
logger.log(LogService.LOG_ERROR, e.getMessage(), e);
private File getTempFile(){ File tempFile; String tempPath = System.getProperty("java.io.tmpdir"); File tempDir = new File(tempPath+File.separator+"temp"); if(!tempDir.exists()) tempDir.mkdir(); try{ tempFile = File.createTempFile("NWB-Session-", ".xml", tempDir); }catch (IOException e){ logger.log(LogService.LOG_ERROR, e.toString()); tempFile = new File (tempPath+File.separator+"nwbTemp"+File.separator+"temp.nwb"); } return tempFile; }
45393 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45393/614374ec8abd2ab7b01711dc7d3055c24a640f7a/JungGraphMLWriter.java/buggy/trunk/plugins/converter/edu.iu.nwb.converter.junggraphml/src/edu/iu/nwb/converter/junggraphml/writer/JungGraphMLWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1387, 336, 20181, 1435, 95, 202, 202, 812, 18286, 31, 377, 202, 202, 780, 1906, 743, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 1594, 18, 5645, 1214, 8863, 202, 202, 812, 20719, 273, 394, 1387, 12, 5814, 743, 15, 812, 18, 11287, 9078, 5814, 8863, 202, 202, 430, 12, 5, 5814, 1621, 18, 1808, 10756, 1082, 202, 5814, 1621, 18, 26686, 5621, 202, 202, 698, 95, 1082, 202, 5814, 812, 273, 1387, 18, 2640, 20181, 2932, 50, 59, 38, 17, 2157, 17, 3113, 3552, 2902, 3113, 20719, 1769, 9506, 202, 97, 14683, 261, 14106, 425, 15329, 1082, 202, 4901, 18, 1330, 12, 1343, 1179, 18, 4842, 67, 3589, 16, 425, 18, 10492, 10663, 1082, 202, 5814, 812, 273, 394, 1387, 261, 5814, 743, 15, 812, 18, 11287, 9078, 82, 9464, 7185, 6, 15, 812, 18, 11287, 9078, 5814, 18, 82, 9464, 8863, 202, 202, 97, 202, 202, 2463, 18286, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1387, 336, 20181, 1435, 95, 202, 202, 812, 18286, 31, 377, 202, 202, 780, 1906, 743, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 1594, 18, 5645, 1214, 8863, 202, 202, 812, 20719, 273, 394, 1387, 12, 5814, 743, 15, 812, 18, 11287, 9078, 5814, 8863, 202, 202, 430, 12, 5, 5814, 1621, 18, 1808, 10756, 1082, 202, 5814, 1621, 18, 26686, 5621, 202, 202, 698, 95, 1082, 202, 5814, 812, 273, 1387, 18, 2640, 20181, 2932, 50, 59, 38, 17, 2157, 17, 3113, 3552, 2902, 3113, 20719, 1769, 9506, 202, 97, 14683, 261, 14106, 425, 15329, 1082, 202, 4901, 18, 1330, 12, 1343, 1179, 18, 4842, 67, 3589, 16, 425, 18, 10492, 10663, 1082, 202, 2 ]
KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0); ActionListener actionListener = new ActionListener() { @SuppressWarnings("unused") public void actionPerformed(ActionEvent actionEvent) { dialog.setVisible(false); } }; JRootPane rootPane = dialog.getRootPane(); rootPane.registerKeyboardAction(actionListener, stroke, JComponent.WHEN_IN_FOCUSED_WINDOW);
bindKey(dialog, KeyEvent.VK_ESCAPE, new EscapeActionListener(dialog));
void show() { if (checkedParagraphs.size() == 0) { complete(); return; } dialog = new JDialog(); // close when user presses Escape key: KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0); ActionListener actionListener = new ActionListener() { @SuppressWarnings("unused") public void actionPerformed(ActionEvent actionEvent) { dialog.setVisible(false); } }; JRootPane rootPane = dialog.getRootPane(); rootPane.registerKeyboardAction(actionListener, stroke, JComponent.WHEN_IN_FOCUSED_WINDOW); dialog.setTitle("LanguageTool Version " + JLanguageTool.VERSION); Container contentPane = dialog.getContentPane(); contentPane.setLayout(new GridBagLayout()); GridBagConstraints cons = new GridBagConstraints(); cons.anchor = GridBagConstraints.NORTHWEST; cons.insets = new Insets(4, 4, 4, 4); contextArea = new JTextPane(); cons.fill = GridBagConstraints.BOTH; cons.weightx = 6.0f; cons.weighty = 6.0f; cons.gridx = 0; cons.gridy = 0; cons.gridheight = 3; contextArea.setContentType("text/html"); contextArea.setEditable(false); contentPane.add(new JScrollPane(contextArea), cons); cons.gridheight = 1; cons.weightx = 1.0f; cons.weighty = 1.0f; cons.gridx = 1; cons.gridy = 0; cons.fill = GridBagConstraints.HORIZONTAL; ignoreButton = new JButton(IGNORE_BUTTON); ignoreButton.addActionListener(this); contentPane.add(ignoreButton, cons); cons.gridx = 1; cons.gridy = 1; ignoreAllButton = new JButton(IGNORE_ALL_BUTTON); ignoreAllButton.addActionListener(this); contentPane.add(ignoreAllButton, cons); cons.gridx = 1; cons.gridy = 2; optionsButton = new JButton(OPTIONS_BUTTON); optionsButton.addActionListener(this); contentPane.add(optionsButton, cons); messageArea = new JTextPane(); messageArea.setContentType("text/html"); messageArea.setEditable(false); cons.fill = GridBagConstraints.BOTH; cons.weightx = 8.0f; cons.weighty = 8.0f; cons.gridx = 0; cons.gridy = 3; contentPane.add(new JScrollPane(messageArea), cons); suggestionList = new JList(); cons.fill = GridBagConstraints.BOTH; cons.gridheight = 2; cons.gridx = 0; cons.gridy = 4; cons.weightx = 2.0f; cons.weighty = 2.0f; contentPane.add(new JScrollPane(suggestionList), cons); cons.weightx = 1.0f; cons.weighty = 1.0f; cons.gridheight = 1; suggestionList.addMouseListener(new DoubleClickListener()); cons.gridx = 1; cons.gridy = 4; cons.gridwidth = 1; cons.weightx = 1.0f; cons.weighty = 1.0f; cons.fill = GridBagConstraints.HORIZONTAL; changeButton = new JButton(CHANGE_BUTTON); changeButton.addActionListener(this); contentPane.add(changeButton, cons); cons.gridx = 1; cons.gridy = 5; cons.anchor = GridBagConstraints.SOUTH; closeButton = new JButton(CLOSE_BUTTON); closeButton.addActionListener(this); contentPane.add(closeButton, cons); try { showError(0); } catch (Exception e) { throw new RuntimeException(e); } dialog.pack(); dialog.setModal(true); dialog.setSize(500, 380); // center on screen: Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = dialog.getSize(); dialog.setLocation(screenSize.width/2 - (frameSize.width/2), screenSize.height/2 - (frameSize.height/2)); dialog.setVisible(true); // FIXME: close via "X" in the window must behave like close via "close" button }
10628 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10628/25790df435e25c0c2e3d26df1b4864219f92d1ac/OOoDialog.java/buggy/trunk/JLanguageTool/src/java/de/danielnaber/languagetool/openoffice/OOoDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 2405, 1435, 288, 565, 309, 261, 4532, 17719, 87, 18, 1467, 1435, 422, 374, 13, 288, 1377, 3912, 5621, 1377, 327, 31, 565, 289, 565, 6176, 273, 394, 804, 6353, 5621, 565, 368, 1746, 1347, 729, 11779, 281, 18025, 498, 30, 565, 1929, 14602, 11040, 273, 1929, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 24849, 16, 374, 1769, 565, 25962, 1301, 2223, 273, 394, 25962, 1435, 288, 1377, 632, 29282, 4312, 2932, 14375, 7923, 1377, 1071, 918, 26100, 12, 1803, 1133, 1301, 1133, 13, 288, 4202, 6176, 18, 542, 6207, 12, 5743, 1769, 1377, 289, 565, 289, 31, 565, 804, 2375, 8485, 1365, 8485, 273, 6176, 18, 588, 2375, 8485, 5621, 565, 1365, 8485, 18, 4861, 17872, 1803, 12, 1128, 2223, 16, 11040, 16, 29058, 18, 12557, 1157, 67, 706, 67, 3313, 39, 20093, 67, 23407, 1769, 3639, 6176, 18, 542, 4247, 2932, 3779, 6364, 4049, 315, 397, 804, 3779, 6364, 18, 5757, 1769, 565, 4039, 913, 8485, 273, 6176, 18, 588, 1350, 8485, 5621, 565, 913, 8485, 18, 542, 3744, 12, 2704, 7145, 5013, 3744, 10663, 565, 13075, 1959, 273, 394, 13075, 5621, 565, 1959, 18, 16215, 273, 13075, 18, 50, 28212, 31285, 31, 565, 1959, 18, 267, 4424, 273, 394, 22300, 12, 24, 16, 1059, 16, 1059, 16, 1059, 1769, 565, 819, 5484, 273, 394, 804, 1528, 8485, 5621, 565, 1959, 18, 5935, 273, 13075, 18, 38, 18307, 31, 565, 1959, 18, 4865, 92, 273, 1666, 18, 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, 282, 918, 2405, 1435, 288, 565, 309, 261, 4532, 17719, 87, 18, 1467, 1435, 422, 374, 13, 288, 1377, 3912, 5621, 1377, 327, 31, 565, 289, 565, 6176, 273, 394, 804, 6353, 5621, 565, 368, 1746, 1347, 729, 11779, 281, 18025, 498, 30, 565, 1929, 14602, 11040, 273, 1929, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 24849, 16, 374, 1769, 565, 25962, 1301, 2223, 273, 394, 25962, 1435, 288, 1377, 632, 29282, 4312, 2932, 14375, 7923, 1377, 1071, 918, 26100, 12, 1803, 1133, 1301, 1133, 13, 288, 4202, 6176, 18, 542, 6207, 12, 5743, 1769, 1377, 289, 565, 289, 31, 565, 804, 2375, 8485, 1365, 8485, 273, 6176, 18, 588, 2375, 8485, 5621, 565, 2 ]
public int getLevelImpl()
public int getLevelImpl()
public int getLevelImpl() { if (isElseIf()) { return getParent().getLevel(); } else { return super.getLevelImpl(); } }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/a4d63db21d57ab53aff8a467f89df3867518ab91/IfHandler.java/buggy/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/indentation/IfHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 17236, 2828, 1435, 377, 288, 3639, 309, 261, 291, 12427, 2047, 10756, 288, 5411, 327, 5089, 7675, 588, 2355, 5621, 3639, 289, 540, 469, 288, 5411, 327, 2240, 18, 588, 2355, 2828, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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5621, 3639, 289, 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 ]
AST tmp1615_AST_in = (AST)_t;
AST tmp1614_AST_in = (AST)_t;
public final void sql_col_def(AST _t) throws RecognitionException { AST sql_col_def_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2451 = _t; AST tmp1602_AST_in = (AST)_t; match(_t,ID); _t = _t.getFirstChild(); AST tmp1603_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRECISION: { AST tmp1604_AST_in = (AST)_t; match(_t,PRECISION); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case LEFTPAREN: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp1605_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp1606_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST tmp1607_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp1608_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1609_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Not_null: { AST __t2456 = _t; AST tmp1610_AST_in = (AST)_t; match(_t,Not_null); _t = _t.getFirstChild(); AST tmp1611_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); AST tmp1612_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp1613_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2456; _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: { break; } default: { throw new NoViableAltException(_t); } } } { _loop2461: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case DEFAULT: { AST __t2459 = _t; AST tmp1614_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2459; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t2460 = _t; AST tmp1615_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2460; _t = _t.getNextSibling(); break; } case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } default: { break _loop2461; } } } while (true); } _t = __t2451; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 67, 1293, 67, 536, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 67, 1293, 67, 536, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3247, 10593, 273, 389, 88, 31, 202, 202, 9053, 1853, 2313, 3103, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 734, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 2313, 4630, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 430, 261, 389, 88, 631, 2011, 262, 604, 394, 26454, 1345, 503, 5621, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 7071, 26913, 30, 202, 202, 95, 1082, 202, 9053, 1853, 2313, 3028, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 3670, 26913, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 890, 30, 202, 202, 3593, 18403, 26753, 16325, 30, 202, 202, 3593, 13473, 13545, 30, 202, 202, 3593, 3331, 30, 202, 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, 1847, 67, 1293, 67, 536, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 67, 1293, 67, 536, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 3247, 10593, 273, 389, 88, 31, 202, 202, 9053, 1853, 2313, 3103, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 734, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 2313, 4630, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 430, 261, 389, 88, 631, 2 ]
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]);
private int[] convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, byte pixels[], int offset, int scansize) { int intPixels[] = new int[pixels.length]; for (int i = 0; i < pixels.length; i++) intPixels[i] = makeColorbyDefaultCM(model, pixels[i]); return intPixels;
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/RGBImageFilter.java/clean/core/src/classpath/java/java/awt/image/RGBImageFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1765, 2957, 1488, 774, 1868, 12, 474, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 16, 5563, 1488, 938, 16, 509, 8948, 63, 6487, 509, 1384, 16, 509, 19676, 554, 13, 288, 202, 202, 474, 13681, 16, 29647, 31, 202, 202, 1884, 261, 23829, 273, 619, 31, 13681, 411, 261, 92, 397, 341, 1769, 13681, 27245, 288, 1082, 202, 1884, 261, 879, 273, 677, 31, 29647, 411, 261, 93, 397, 366, 1769, 29647, 27245, 288, 9506, 202, 21084, 63, 3348, 397, 29647, 380, 19676, 554, 397, 13681, 65, 273, 1221, 2957, 1637, 1868, 9611, 12, 21084, 63, 3348, 397, 29647, 380, 19676, 554, 397, 13681, 19226, 1082, 202, 97, 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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0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1765, 2957, 1488, 774, 1868, 12, 474, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 16, 5563, 1488, 938, 16, 509, 8948, 63, 6487, 509, 1384, 16, 509, 19676, 554, 13, 288, 202, 202, 474, 13681, 16, 29647, 31, 202, 202, 1884, 261, 23829, 273, 619, 31, 13681, 411, 261, 92, 397, 341, 1769, 13681, 27245, 288, 1082, 202, 1884, 261, 879, 273, 677, 31, 29647, 411, 261, 93, 397, 366, 1769, 29647, 27245, 288, 9506, 202, 21084, 63, 3348, 397, 29647, 380, 19676, 554, 397, 13681, 65, 273, 1221, 2957, 1637, 1868, 9611, 12, 21084, 63, 3348, 397, 29647, 380, 19676, 554, 397, 13681, 19226, 1082, 202, 97, 202, 202, 97, 202, 2 ]
String target = ScriptRuntime.toString(thisObj); String strOther = ScriptRuntime.toString(args[0]); return new Boolean(target.equalsIgnoreCase(strOther));
return target.equalsIgnoreCase(strOther);
public static Object jsFunction_equalsIgnoreCase(Context cx, Scriptable thisObj, Object[] args, Function funObj) { String target = ScriptRuntime.toString(thisObj); String strOther = ScriptRuntime.toString(args[0]); return new Boolean(target.equalsIgnoreCase(strOther)); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 3828, 2083, 67, 14963, 5556, 12, 1042, 9494, 16, 4766, 8227, 22780, 15261, 16, 4766, 5397, 1033, 8526, 833, 16, 4766, 8227, 4284, 9831, 2675, 13, 565, 288, 3639, 514, 1018, 273, 7739, 5576, 18, 10492, 12, 2211, 2675, 1769, 3639, 514, 609, 8290, 273, 7739, 5576, 18, 10492, 12, 1968, 63, 20, 19226, 3639, 327, 394, 3411, 12, 3299, 18, 14963,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 3828, 2083, 67, 14963, 5556, 12, 1042, 9494, 16, 4766, 8227, 22780, 15261, 16, 4766, 5397, 1033, 8526, 833, 16, 4766, 8227, 4284, 9831, 2675, 13, 565, 288, 3639, 514, 1018, 273, 7739, 5576, 18, 10492, 12, 2211, 2675, 1769, 3639, 514, 609, 8290, 273, 7739, 5576, 18, 10492, 12, 1968, 63, 20, 19226, 3639, 327, 394, 3411, 12, 3299, 18, 14963, 5556, 12, 701, 8290, 10019, 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 ]
iddecoder= new JButton("Ident");
iddecoder= new JToggleButton("Ident");
protected void init() { JLabel last; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel pane2a = new JPanel(); pane2a.setLayout(new BoxLayout(pane2a, BoxLayout.X_AXIS)); pane2a.add(new JLabel("Use locomotive settings for: ")); locoBox = Roster.instance().matchingComboBox(null, null, null, null, null, null, null); locoBox.insertItemAt("<none - new loco>",0); locoBox.setSelectedIndex(0); pane2a.add(locoBox); locoBox.addActionListener(new ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { if (locoBox.getSelectedIndex()!=0) { // reset and disable decoder selection decoderBox.setSelectedIndex(0); go2.setEnabled(true); go2.setToolTipText("Click to open the programmer"); } else { go2.setEnabled(false); go2.setToolTipText("Select a locomotive or decoder to enable"); } } }); idloco = new JButton("Ident"); idloco.setToolTipText("Read the locomotive's address and attempt to select the right settings"); idloco.addActionListener( new ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { if (log.isInfoEnabled()) log.info("Identify locomotive pressed"); startIdentifyLoco(); } }); pane2a.add(idloco); pane2a.setAlignmentX(JLabel.RIGHT_ALIGNMENT); add(pane2a); JPanel pane1a = new JPanel(); pane1a.setLayout(new BoxLayout(pane1a, BoxLayout.X_AXIS)); pane1a.add(new JLabel("Decoder installed: ")); decoderBox = DecoderIndexFile.instance().matchingComboBox(null, null, null, null, null); decoderBox.insertItemAt("<from locomotive settings>",0); decoderBox.setSelectedIndex(0); decoderBox.addActionListener(new ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { if (decoderBox.getSelectedIndex()!=0) { // reset and disable loco selection locoBox.setSelectedIndex(0); go2.setEnabled(true); go2.setToolTipText("Click to open the programmer"); } else { go2.setEnabled(false); go2.setToolTipText("Select a locomotive or decoder to enable"); } } }); pane1a.add(decoderBox); iddecoder= new JButton("Ident"); idloco.setToolTipText("Read the decoders mfg and version, then attempt to select it's type"); iddecoder.addActionListener( new ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { if (log.isInfoEnabled()) log.info("identify decoder pressed"); startIdentifyDecoder(); } }); pane1a.add(iddecoder); pane1a.setAlignmentX(JLabel.RIGHT_ALIGNMENT); add(pane1a); go2 = new JButton("Open Programmer"); go2.addActionListener( new ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { if (log.isInfoEnabled()) log.info("Open programmer pressed"); openButton(); } }); go2.setAlignmentX(JLabel.RIGHT_ALIGNMENT); go2.setEnabled(false); go2.setToolTipText("Select a locomotive or decoder to enable"); add(go2); setBorder(new EmptyBorder(6,6,6,6)); }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/03c3b3d50fb63cadea24608e7b2cffb7b921656c/CombinedLocoSelPane.java/buggy/jmrit/symbolicprog/CombinedLocoSelPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1208, 1435, 288, 202, 202, 46, 2224, 1142, 31, 202, 202, 542, 3744, 12, 2704, 8549, 3744, 12, 2211, 16, 8549, 3744, 18, 61, 67, 25614, 10019, 1082, 202, 46, 5537, 13618, 22, 69, 273, 394, 24048, 5621, 1082, 202, 29009, 22, 69, 18, 542, 3744, 12, 2704, 8549, 3744, 12, 29009, 22, 69, 16, 8549, 3744, 18, 60, 67, 25614, 10019, 1082, 202, 29009, 22, 69, 18, 1289, 12, 2704, 21403, 2932, 3727, 437, 832, 352, 688, 1947, 364, 30, 9369, 1769, 1082, 202, 1829, 83, 3514, 273, 534, 29811, 18, 1336, 7675, 16271, 22199, 12, 2011, 16, 446, 16, 446, 16, 446, 16, 446, 16, 446, 16, 446, 1769, 1082, 202, 1829, 83, 3514, 18, 6387, 1180, 861, 2932, 32, 6102, 300, 394, 1515, 83, 2984, 16, 20, 1769, 1082, 202, 1829, 83, 3514, 18, 542, 7416, 1016, 12, 20, 1769, 1082, 202, 29009, 22, 69, 18, 1289, 12, 1829, 83, 3514, 1769, 1082, 202, 1829, 83, 3514, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 9506, 202, 482, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 425, 13, 288, 6862, 202, 430, 261, 1829, 83, 3514, 18, 588, 7416, 1016, 1435, 5, 33, 20, 13, 288, 25083, 202, 759, 2715, 471, 4056, 8320, 4421, 25083, 202, 21070, 3514, 18, 542, 7416, 1016, 12, 20, 1769, 25083, 202, 3240, 22, 18, 542, 1526, 12, 3767, 1769, 25083, 202, 3240, 22, 18, 542, 29250, 1528, 2932, 6563, 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, 1208, 1435, 288, 202, 202, 46, 2224, 1142, 31, 202, 202, 542, 3744, 12, 2704, 8549, 3744, 12, 2211, 16, 8549, 3744, 18, 61, 67, 25614, 10019, 1082, 202, 46, 5537, 13618, 22, 69, 273, 394, 24048, 5621, 1082, 202, 29009, 22, 69, 18, 542, 3744, 12, 2704, 8549, 3744, 12, 29009, 22, 69, 16, 8549, 3744, 18, 60, 67, 25614, 10019, 1082, 202, 29009, 22, 69, 18, 1289, 12, 2704, 21403, 2932, 3727, 437, 832, 352, 688, 1947, 364, 30, 9369, 1769, 1082, 202, 1829, 83, 3514, 273, 534, 29811, 18, 1336, 7675, 16271, 22199, 12, 2011, 16, 446, 16, 446, 16, 446, 16, 446, 16, 446, 16, 446, 1769, 1082, 202, 1829, 83, 2 ]
myPatch.deviceNum, myPatch.driverNum, (myPatch.date.toString()), (myPatch.author.toString()), (myPatch.comment.toString()));
myPatch.deviceNum, myPatch.driverNum, myPatch.date.toString(), myPatch.author.toString(), myPatch.comment.toString());
public void CopySelectedPatch() { try { if (table.getSelectedRowCount()==0) { ErrorMsg.reportError("Error", "No Patch Selected."); return; } Patch myPatch=((Scene)myModel.sceneList.get(table.getSelectedRow())).getPatch(); byte [] mySysex = new byte[myPatch.sysex.length]; System.arraycopy(myPatch.sysex,0,mySysex,0,myPatch.sysex.length); PatchEdit.Clipboard=new Patch(mySysex, myPatch.deviceNum, myPatch.driverNum, (myPatch.date.toString()), (myPatch.author.toString()), (myPatch.comment.toString())); }catch (Exception e) {}; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/8aa2f4fda08e164ecf323a5ff5518fba7aa5512a/SceneFrame.java/buggy/JSynthLib/core/SceneFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5631, 7416, 7332, 1435, 288, 3639, 775, 288, 5411, 309, 261, 2121, 18, 588, 7416, 26359, 1435, 631, 20, 13, 288, 7734, 1068, 3332, 18, 6006, 668, 2932, 668, 3113, 315, 2279, 12042, 4352, 828, 1199, 1769, 7734, 327, 31, 5411, 289, 5411, 12042, 3399, 7332, 33, 12443, 14370, 13, 4811, 1488, 18, 23694, 682, 18, 588, 12, 2121, 18, 588, 7416, 1999, 10756, 2934, 588, 7332, 5621, 5411, 1160, 5378, 3399, 10876, 20909, 273, 394, 1160, 63, 4811, 7332, 18, 9009, 20909, 18, 2469, 15533, 5411, 2332, 18, 1126, 3530, 12, 4811, 7332, 18, 9009, 20909, 16, 20, 16, 4811, 10876, 20909, 16, 20, 16, 4811, 7332, 18, 9009, 20909, 18, 2469, 1769, 5411, 12042, 4666, 18, 15339, 3752, 33, 2704, 12042, 12, 4811, 10876, 20909, 16, 5411, 3399, 7332, 18, 5964, 2578, 16, 5411, 3399, 7332, 18, 7407, 2578, 16, 5411, 261, 4811, 7332, 18, 712, 18, 10492, 1435, 3631, 5411, 261, 4811, 7332, 18, 4161, 18, 10492, 1435, 3631, 5411, 261, 4811, 7332, 18, 3469, 18, 10492, 1435, 10019, 3639, 289, 14683, 261, 503, 425, 13, 3639, 2618, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5631, 7416, 7332, 1435, 288, 3639, 775, 288, 5411, 309, 261, 2121, 18, 588, 7416, 26359, 1435, 631, 20, 13, 288, 7734, 1068, 3332, 18, 6006, 668, 2932, 668, 3113, 315, 2279, 12042, 4352, 828, 1199, 1769, 7734, 327, 31, 5411, 289, 5411, 12042, 3399, 7332, 33, 12443, 14370, 13, 4811, 1488, 18, 23694, 682, 18, 588, 12, 2121, 18, 588, 7416, 1999, 10756, 2934, 588, 7332, 5621, 5411, 1160, 5378, 3399, 10876, 20909, 273, 394, 1160, 63, 4811, 7332, 18, 9009, 20909, 18, 2469, 15533, 5411, 2332, 18, 1126, 3530, 12, 4811, 7332, 18, 9009, 20909, 16, 20, 16, 4811, 10876, 20909, 16, 20, 16, 4811, 7332, 18, 9009, 20909, 18, 2469, 1769, 5411, 12042, 2 ]
if (count == -1)
if (count < 0)
private synchronized Slot addSlot(String id, int index, Slot newSlot) { if (count == -1) throw Context.reportRuntimeError0("msg.add.sealed"); if (slots == null) { slots = new Slot[5]; } return addSlotImpl(id, index, newSlot); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/0257e231a558a4534a9cbc9d3903cc22dc103663/ScriptableObject.java/clean/js/rhino/src/org/mozilla/javascript/ScriptableObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 23195, 527, 8764, 12, 780, 612, 16, 509, 770, 16, 23195, 394, 8764, 13, 288, 3639, 309, 261, 1883, 411, 374, 13, 5411, 604, 1772, 18, 6006, 5576, 668, 20, 2932, 3576, 18, 1289, 18, 307, 18931, 8863, 3639, 309, 261, 18875, 422, 446, 13, 288, 12169, 273, 394, 23195, 63, 25, 15533, 289, 3639, 327, 527, 8764, 2828, 12, 350, 16, 770, 16, 394, 8764, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 23195, 527, 8764, 12, 780, 612, 16, 509, 770, 16, 23195, 394, 8764, 13, 288, 3639, 309, 261, 1883, 411, 374, 13, 5411, 604, 1772, 18, 6006, 5576, 668, 20, 2932, 3576, 18, 1289, 18, 307, 18931, 8863, 3639, 309, 261, 18875, 422, 446, 13, 288, 12169, 273, 394, 23195, 63, 25, 15533, 289, 3639, 327, 527, 8764, 2828, 12, 350, 16, 770, 16, 394, 8764, 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 ]
int sz; throw new IndexOutOfBoundsException("AST child index " + indexPre); }
throw new IndexOutOfBoundsException("AST child index " + indexPre); }
public final Object childAt(int index) { /*throws IndexOutOfBoundsException*/ if (index < 0) throw new IndexOutOfBoundsException("AST child index " + index); int indexPre = index; int sz; throw new IndexOutOfBoundsException("AST child index " + indexPre); } //@ nowarn Exception;
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/88c3a23ce6920080a820fcffe73c2469f7571ad9/ReadOnlyModifierPragma.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/ast/ReadOnlyModifierPragma.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 1151, 861, 12, 474, 770, 13, 288, 1850, 1748, 15069, 17768, 5549, 377, 309, 261, 1615, 411, 374, 13, 3639, 604, 394, 17768, 2932, 9053, 1151, 770, 315, 397, 770, 1769, 377, 509, 770, 1386, 273, 770, 31, 377, 509, 11262, 31, 377, 604, 394, 17768, 2932, 9053, 1151, 770, 315, 397, 770, 1386, 1769, 225, 289, 282, 23834, 2037, 1303, 1185, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 1151, 861, 12, 474, 770, 13, 288, 1850, 1748, 15069, 17768, 5549, 377, 309, 261, 1615, 411, 374, 13, 3639, 604, 394, 17768, 2932, 9053, 1151, 770, 315, 397, 770, 1769, 377, 509, 770, 1386, 273, 770, 31, 377, 509, 11262, 31, 377, 604, 394, 17768, 2932, 9053, 1151, 770, 315, 397, 770, 1386, 1769, 225, 289, 282, 23834, 2037, 1303, 1185, 31, 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 ]
public int CDL3BLACKCROWS_Lookback() {
public int CDL3BLACKCROWS_Lookback( ) {
public int CDL3BLACKCROWS_Lookback() { return (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort .ordinal()].avgPeriod) + 3; }
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 385, 8914, 23, 14618, 3649, 39, 28402, 67, 9794, 823, 1435, 288, 202, 202, 2463, 261, 2211, 18, 71, 464, 298, 2628, 63, 9833, 67, 39, 464, 298, 5568, 559, 18, 9833, 67, 12957, 58, 627, 4897, 9506, 202, 18, 517, 1490, 1435, 8009, 14141, 5027, 13, 397, 890, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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833, 67, 12957, 58, 627, 4897, 9506, 202, 18, 517, 1490, 1435, 8009, 14141, 5027, 13, 397, 890, 31, 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 ]
if (Configuration.DEBUG)
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { log.entering(this.getClass().getName(), "engineGeneratePrivate()", keySpec); PrivateKey result = null; if (keySpec instanceof DSAPrivateKeySpec) result = decodeDSSPrivateKey((DSAPrivateKeySpec) keySpec); else if (keySpec instanceof RSAPrivateCrtKeySpec) result = decodeRSAPrivateKey((RSAPrivateCrtKeySpec) keySpec); else if (keySpec instanceof DHPrivateKeySpec) result = decodeDHPrivateKey((DHPrivateKeySpec) keySpec); else { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("Unsupported key specification"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); boolean ok = false; // try DSS try { result = DSSPrivateKey.valueOf(input); ok = true; } catch (InvalidParameterException ignored) { log.log(Level.FINE, "Exception in DSSPrivateKey.valueOf(). Ignore", ignored); } if (! ok) // try RSA try { result = GnuRSAPrivateKey.valueOf(input); ok = true; } catch (InvalidParameterException ignored) { log.log(Level.FINE, "Exception in GnuRSAPrivateKey.valueOf(). Ignore", ignored); } if (! ok) // try DH result = decodeDHPrivateKey(input); } log.exiting(this.getClass().getName(), "engineGeneratePrivate()", result); return result; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/EncodedKeyFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/jce/sig/EncodedKeyFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 4750, 430, 261, 1750, 18, 9394, 13, 14018, 430, 261, 1750, 18, 9394, 13, 4073, 4625, 6014, 12, 653, 1990, 430, 261, 1750, 18, 9394, 13, 498, 1990, 13, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 1216, 430, 261, 1750, 18, 9394, 13, 1962, 653, 1990, 503, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 288, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 430, 261, 1750, 18, 9394, 13, 315, 8944, 4625, 6014, 1435, 3113, 430, 261, 1750, 18, 9394, 13, 498, 1990, 1769, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 14018, 430, 261, 1750, 18, 9394, 13, 563, 430, 261, 1750, 18, 9394, 13, 273, 430, 261, 1750, 18, 9394, 13, 446, 31, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 430, 261, 1750, 18, 9394, 13, 261, 856, 1990, 430, 261, 1750, 18, 9394, 13, 1276, 430, 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, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 4750, 430, 261, 1750, 18, 9394, 13, 14018, 430, 261, 1750, 18, 9394, 13, 4073, 4625, 6014, 12, 653, 1990, 430, 261, 1750, 18, 9394, 13, 498, 1990, 13, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 1216, 430, 261, 1750, 18, 9394, 13, 1962, 653, 1990, 503, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 288, 430, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 309, 261, 1750, 18, 9394, 13, 2 ]
public boolean isLeaf();
boolean isLeaf();
public boolean isLeaf();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f03053e30bf23122f89e48e88064677b27fdd7c/TreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/TreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 31356, 5621, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 31356, 5621, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.ListID get(org.quickfix.field.ListID value)
public quickfix.field.ListID get(quickfix.field.ListID value)
public org.quickfix.field.ListID get(org.quickfix.field.ListID value) throws FieldNotFound { getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListExecute.java/clean/src/java/src/quickfix/fix41/ListExecute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 682, 734, 336, 12, 19525, 904, 18, 1518, 18, 682, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9549, 904, 18, 1518, 18, 682, 734, 336, 12, 19525, 904, 18, 1518, 18, 682, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
trustancors.add(trustanchor);
trustancors.add(trustanchor);
private Collection createCertChain(Collection certlist) throws CertPathValidatorException{ ArrayList returnval = new ArrayList(); certlist = orderCertificateChain(certlist); // set certificate chain TrustAnchor trustanchor = null; ArrayList calist = new ArrayList(); Iterator iter = certlist.iterator(); while(iter.hasNext()){ Certificate next = (Certificate) iter.next(); if(next instanceof X509Certificate && CertTools.isSelfSigned(((X509Certificate) next))){ trustanchor = new TrustAnchor((X509Certificate) next, null); } else{ calist.add(next); } } if(calist.size() == 0){ // only one root cert, no certchain returnval.add(trustanchor.getTrustedCert()); }else{ try { HashSet trustancors = new HashSet(); trustancors.add(trustanchor); //CollectionCertStoreParameters ccsp = new CollectionCertStoreParameters( certlist ); //CertStore store = CertStore.getInstance("Collection", ccsp ); // Create the parameters for the validator PKIXParameters params = new PKIXParameters(trustancors); // Disable CRL checking since we are not supplying any CRLs params.setRevocationEnabled(false); //params.addCertStore(store); params.setDate( new Date() ); // Create the validator and validate the path CertPathValidator certPathValidator = CertPathValidator.getInstance(CertPathValidator.getDefaultType(), "BC"); CertificateFactory fact = CertTools.getCertificateFactory(); CertPath certpath = fact.generateCertPath(calist); iter = certpath.getCertificates().iterator(); CertPathValidatorResult result = certPathValidator.validate(certpath, params); // Get the CA used to validate this path PKIXCertPathValidatorResult pkixResult = (PKIXCertPathValidatorResult)result; returnval.addAll(certpath.getCertificates()); //c a.setRequestCertificateChain(certpath.getCertificates()); TrustAnchor ta = pkixResult.getTrustAnchor(); X509Certificate cert = ta.getTrustedCert(); returnval.add(cert); } catch (CertPathValidatorException e) { throw e; } catch(Exception e){ throw new EJBException(e); } } return returnval; }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/6f27459e8db7a9efb8cf0588695ad6fd28539506/CAAdminSessionBean.java/clean/src/java/se/anatom/ejbca/ca/caadmin/CAAdminSessionBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2200, 752, 5461, 3893, 12, 2532, 3320, 1098, 13, 1216, 11921, 743, 5126, 503, 95, 4202, 2407, 327, 1125, 273, 394, 2407, 5621, 9079, 202, 282, 3320, 1098, 273, 1353, 4719, 3893, 12, 7593, 1098, 1769, 202, 565, 368, 444, 4944, 2687, 4202, 20246, 11605, 433, 89, 541, 4964, 273, 446, 31, 4202, 2407, 1443, 376, 273, 394, 2407, 5621, 4202, 4498, 1400, 273, 3320, 1098, 18, 9838, 5621, 4202, 1323, 12, 2165, 18, 5332, 2134, 10756, 95, 202, 1377, 6660, 1024, 273, 261, 4719, 13, 1400, 18, 4285, 5621, 202, 1377, 309, 12, 4285, 1276, 1139, 5995, 4719, 597, 11921, 10348, 18, 291, 10084, 12294, 12443, 12, 60, 5995, 4719, 13, 1024, 3719, 15329, 202, 4202, 202, 21114, 1377, 1082, 1377, 433, 89, 541, 4964, 273, 394, 20246, 11605, 12443, 60, 5995, 4719, 13, 1024, 16, 446, 1769, 202, 1377, 289, 565, 202, 1377, 469, 95, 1082, 1377, 202, 1377, 202, 771, 376, 18, 1289, 12, 4285, 1769, 202, 1377, 289, 3196, 4202, 289, 1082, 377, 1082, 21114, 377, 202, 2398, 309, 12, 771, 376, 18, 1467, 1435, 422, 374, 15329, 1377, 202, 759, 1338, 1245, 1365, 3320, 16, 1158, 3320, 5639, 202, 202, 2463, 1125, 18, 1289, 12, 313, 89, 541, 4964, 18, 588, 16950, 5461, 10663, 377, 1082, 21114, 377, 202, 2398, 289, 12107, 95, 6647, 775, 288, 202, 565, 6847, 433, 89, 27866, 1383, 273, 394, 6847, 5621, 202, 565, 433, 89, 27866, 1383, 18, 1289, 12, 313, 89, 541, 4964, 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, 2200, 752, 5461, 3893, 12, 2532, 3320, 1098, 13, 1216, 11921, 743, 5126, 503, 95, 4202, 2407, 327, 1125, 273, 394, 2407, 5621, 9079, 202, 282, 3320, 1098, 273, 1353, 4719, 3893, 12, 7593, 1098, 1769, 202, 565, 368, 444, 4944, 2687, 4202, 20246, 11605, 433, 89, 541, 4964, 273, 446, 31, 4202, 2407, 1443, 376, 273, 394, 2407, 5621, 4202, 4498, 1400, 273, 3320, 1098, 18, 9838, 5621, 4202, 1323, 12, 2165, 18, 5332, 2134, 10756, 95, 202, 1377, 6660, 1024, 273, 261, 4719, 13, 1400, 18, 4285, 5621, 202, 1377, 309, 12, 4285, 1276, 1139, 5995, 4719, 597, 11921, 10348, 18, 291, 10084, 12294, 12443, 12, 60, 5995, 4719, 13, 1024, 3719, 15329, 202, 4202, 2 ]
this.registry = registry;
this.acceptor = acceptor;
public DnsServer(DnsConfiguration config, ServiceRegistry registry, RecordStore store) { this.config = config; this.registry = registry; this.store = store; String name = config.getName(); int port = config.getPort(); try { handler = new DnsProtocolHandler( config, this.store ); udpService = new Service( name, TransportType.DATAGRAM, port ); tcpService = new Service( name, TransportType.SOCKET, port ); registry.bind( udpService, handler ); registry.bind( tcpService, handler ); log.debug( "{} listening on port {}", name, new Integer( port ) ); } catch ( IOException ioe ) { log.error( ioe.getMessage(), ioe ); } }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/05ad6b2f1dfc0a667fdae4160212ce3cf4f8151a/DnsServer.java/clean/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28456, 2081, 12, 18600, 1750, 642, 16, 1956, 4243, 4023, 16, 5059, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 1077, 6757, 273, 2791, 280, 31, 3639, 333, 18, 2233, 273, 1707, 31, 3639, 514, 508, 273, 642, 18, 17994, 5621, 3639, 509, 1756, 273, 642, 18, 588, 2617, 5621, 3639, 775, 3639, 288, 5411, 1838, 273, 394, 28456, 5752, 1503, 12, 642, 16, 333, 18, 2233, 11272, 5411, 16673, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 11102, 1781, 54, 2192, 16, 1756, 11272, 5411, 9658, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 25699, 16, 1756, 11272, 5411, 4023, 18, 4376, 12, 16673, 1179, 16, 1838, 11272, 5411, 4023, 18, 4376, 12, 9658, 1179, 16, 1838, 11272, 5411, 613, 18, 4148, 12, 7421, 13895, 603, 1756, 3728, 16, 508, 16, 394, 2144, 12, 1756, 262, 11272, 3639, 289, 3639, 1044, 261, 1860, 10847, 262, 3639, 288, 5411, 613, 18, 1636, 12, 10847, 18, 24906, 9334, 10847, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28456, 2081, 12, 18600, 1750, 642, 16, 1956, 4243, 4023, 16, 5059, 2257, 1707, 13, 565, 288, 3639, 333, 18, 1425, 273, 642, 31, 3639, 333, 18, 1077, 6757, 273, 2791, 280, 31, 3639, 333, 18, 2233, 273, 1707, 31, 3639, 514, 508, 273, 642, 18, 17994, 5621, 3639, 509, 1756, 273, 642, 18, 588, 2617, 5621, 3639, 775, 3639, 288, 5411, 1838, 273, 394, 28456, 5752, 1503, 12, 642, 16, 333, 18, 2233, 11272, 5411, 16673, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 11102, 1781, 54, 2192, 16, 1756, 11272, 5411, 9658, 1179, 273, 394, 1956, 12, 508, 16, 9514, 559, 18, 25699, 16, 1756, 11272, 5411, 4023, 18, 4376, 12, 16673, 1179, 2 ]
if(seqNumber < nextPacketNumber && seqNumber > nextPacketNumber-64) Logger.minor(this, msg); else Logger.error(this, msg);
Logger.minor(this, msg);
public void resendPacket(int seqNumber) { byte[] resendData = sentPacketsContents.get(seqNumber); if(resendData != null) { synchronized(packetsToResend) { packetsToResend.add(new Integer(seqNumber)); } pn.node.ps.queuedResendPacket(); } else { synchronized(this) { String msg = "Asking me to resend packet "+seqNumber+ " which we haven't sent yet or which they have already acked (next="+nextPacketNumber+")"; // Can have a race condition if(seqNumber < nextPacketNumber && seqNumber > nextPacketNumber-64) Logger.minor(this, msg); else Logger.error(this, msg); } } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/d764310ce0592a5fd06db73c2ccf0b083791a0b2/KeyTracker.java/clean/src/freenet/node/KeyTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 31972, 6667, 12, 474, 3833, 1854, 13, 288, 3639, 1160, 8526, 31972, 751, 273, 3271, 27328, 6323, 18, 588, 12, 5436, 1854, 1769, 3639, 309, 12, 455, 409, 751, 480, 446, 13, 288, 5411, 3852, 12, 28717, 774, 607, 409, 13, 288, 7734, 12640, 774, 607, 409, 18, 1289, 12, 2704, 2144, 12, 5436, 1854, 10019, 5411, 289, 5411, 11059, 18, 2159, 18, 1121, 18, 19499, 607, 409, 6667, 5621, 3639, 289, 469, 288, 540, 202, 22043, 12, 2211, 13, 288, 540, 202, 202, 780, 1234, 273, 315, 23663, 310, 1791, 358, 31972, 4414, 13773, 5436, 1854, 15, 540, 1082, 202, 6, 1492, 732, 15032, 1404, 3271, 4671, 578, 1492, 2898, 1240, 1818, 8479, 329, 261, 4285, 1546, 15, 4285, 6667, 1854, 9078, 2225, 31, 540, 202, 202, 759, 4480, 1240, 279, 17996, 2269, 540, 202, 202, 430, 12, 5436, 1854, 411, 1024, 6667, 1854, 597, 3833, 1854, 405, 1024, 6667, 1854, 17, 1105, 13, 540, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 1234, 1769, 540, 202, 202, 12107, 540, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 1234, 1769, 540, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31972, 6667, 12, 474, 3833, 1854, 13, 288, 3639, 1160, 8526, 31972, 751, 273, 3271, 27328, 6323, 18, 588, 12, 5436, 1854, 1769, 3639, 309, 12, 455, 409, 751, 480, 446, 13, 288, 5411, 3852, 12, 28717, 774, 607, 409, 13, 288, 7734, 12640, 774, 607, 409, 18, 1289, 12, 2704, 2144, 12, 5436, 1854, 10019, 5411, 289, 5411, 11059, 18, 2159, 18, 1121, 18, 19499, 607, 409, 6667, 5621, 3639, 289, 469, 288, 540, 202, 22043, 12, 2211, 13, 288, 540, 202, 202, 780, 1234, 273, 315, 23663, 310, 1791, 358, 31972, 4414, 13773, 5436, 1854, 15, 540, 1082, 202, 6, 1492, 732, 15032, 1404, 3271, 4671, 578, 1492, 2898, 1240, 1818, 8479, 329, 261, 2 ]
if (execute())
Tds tds = getTds("UPDATE "); if (execute(tds))
public int executeUpdate() throws SQLException { closeResults(); if (execute()) { startResultSet(); closeResults(); throw new SQLException("executeUpdate can't return a result set"); } else { return getUpdateCount(); } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/e0bae78068c6fc28fb455564acf76c8904acc8f4/PreparedStatement_base.java/buggy/trunk/jtds/src.old/main/com/internetcds/jdbc/tds/PreparedStatement_base.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 509, 17521, 1435, 1216, 6483, 282, 288, 1377, 1746, 3447, 5621, 1377, 399, 2377, 268, 2377, 273, 3181, 2377, 2932, 8217, 315, 1769, 309, 261, 8837, 12, 88, 2377, 3719, 1377, 288, 540, 787, 13198, 5621, 540, 1746, 3447, 5621, 540, 604, 394, 6483, 2932, 8837, 1891, 848, 1404, 327, 279, 563, 444, 8863, 1377, 289, 1377, 469, 1377, 288, 540, 327, 23866, 1380, 5621, 1377, 289, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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540, 604, 394, 6483, 2932, 8837, 1891, 848, 1404, 327, 279, 563, 444, 8863, 1377, 289, 1377, 469, 1377, 288, 540, 327, 23866, 1380, 5621, 1377, 289, 282, 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 ]
public int methodArity(int methodId)
public int methodArity(IdFunction f)
public int methodArity(int methodId) { if (prototypeFlag) { switch (methodId) { case ConstructorId_fromCharCode: return 1; case Id_constructor: return 1; case Id_toString: return 0; case Id_toSource: return 0; case Id_valueOf: return 0; case Id_charAt: return 1; case Id_charCodeAt: return 1; case Id_indexOf: return 1; case Id_lastIndexOf: return 1; case Id_split: return 2; case Id_substring: return 2; case Id_toLowerCase: return 0; case Id_toUpperCase: return 0; case Id_substr: return 2; case Id_concat: return 1; case Id_slice: return 2; case Id_bold: return 0; case Id_italics: return 0; case Id_fixed: return 0; case Id_strike: return 0; case Id_small: return 0; case Id_big: return 0; case Id_blink: return 0; case Id_sup: return 0; case Id_sub: return 0; case Id_fontsize: return 0; case Id_fontcolor: return 0; case Id_link: return 0; case Id_anchor: return 0; case Id_equals: return 1; case Id_equalsIgnoreCase: return 1; case Id_match: return 1; case Id_search: return 1; case Id_replace: return 1; } } return super.methodArity(methodId); }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/3526c0f6981dc6716171a07605c6bcc7b6b20cb3/NativeString.java/clean/src/org/mozilla/javascript/NativeString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 707, 686, 560, 12, 548, 2083, 284, 13, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 1620, 261, 2039, 548, 13, 288, 7734, 648, 11417, 548, 67, 2080, 20535, 30, 282, 327, 404, 31, 7734, 648, 3124, 67, 12316, 30, 9079, 327, 404, 31, 7734, 648, 3124, 67, 10492, 30, 5375, 327, 374, 31, 7734, 648, 3124, 67, 869, 1830, 30, 5375, 327, 374, 31, 7734, 648, 3124, 67, 1132, 951, 30, 10402, 327, 374, 31, 7734, 648, 3124, 67, 3001, 861, 30, 10792, 327, 404, 31, 7734, 648, 3124, 67, 3001, 1085, 861, 30, 7734, 327, 404, 31, 7734, 648, 3124, 67, 31806, 30, 10402, 327, 404, 31, 7734, 648, 3124, 67, 2722, 31985, 30, 9079, 327, 404, 31, 7734, 648, 3124, 67, 4939, 30, 5397, 327, 576, 31, 7734, 648, 3124, 67, 28023, 30, 1171, 327, 576, 31, 7734, 648, 3124, 67, 869, 5630, 30, 9079, 327, 374, 31, 7734, 648, 3124, 67, 869, 8915, 30, 9079, 327, 374, 31, 7734, 648, 3124, 67, 10706, 30, 10792, 327, 576, 31, 7734, 648, 3124, 67, 16426, 30, 10792, 327, 404, 31, 7734, 648, 3124, 67, 6665, 30, 5397, 327, 576, 31, 7734, 648, 3124, 67, 16390, 30, 8227, 327, 374, 31, 7734, 648, 3124, 67, 7053, 2102, 30, 10402, 327, 374, 31, 7734, 648, 3124, 67, 12429, 30, 5397, 327, 374, 31, 7734, 648, 3124, 67, 701, 2547, 30, 10792, 327, 374, 31, 7734, 648, 3124, 67, 12019, 30, 5397, 327, 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, 707, 686, 560, 12, 548, 2083, 284, 13, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 1620, 261, 2039, 548, 13, 288, 7734, 648, 11417, 548, 67, 2080, 20535, 30, 282, 327, 404, 31, 7734, 648, 3124, 67, 12316, 30, 9079, 327, 404, 31, 7734, 648, 3124, 67, 10492, 30, 5375, 327, 374, 31, 7734, 648, 3124, 67, 869, 1830, 30, 5375, 327, 374, 31, 7734, 648, 3124, 67, 1132, 951, 30, 10402, 327, 374, 31, 7734, 648, 3124, 67, 3001, 861, 30, 10792, 327, 404, 31, 7734, 648, 3124, 67, 3001, 1085, 861, 30, 7734, 327, 404, 31, 7734, 648, 3124, 67, 31806, 30, 10402, 327, 404, 31, 7734, 648, 3124, 67, 2722, 2 ]
__env_open_reply result$ = __DB_env_open_4001(args$); call.reply(result$); break; } case 9: {
__env_open_reply result$ = __DB_env_open_4002(args$); call.reply(result$); break; } case 14: {
public void dispatchOncRpcCall(OncRpcCallInformation call, int program, int version, int procedure) throws OncRpcException, IOException { if ( version == 4001 ) { switch ( procedure ) { case 1: { __env_cachesize_msg args$ = new __env_cachesize_msg(); call.retrieveCall(args$); __env_cachesize_reply result$ = __DB_env_cachesize_4001(args$); call.reply(result$); break; } case 2: { __env_close_msg args$ = new __env_close_msg(); call.retrieveCall(args$); __env_close_reply result$ = __DB_env_close_4001(args$); call.reply(result$); break; } case 3: { __env_create_msg args$ = new __env_create_msg(); call.retrieveCall(args$); __env_create_reply result$ = __DB_env_create_4001(args$); call.reply(result$); break; } case 4: { __env_dbremove_msg args$ = new __env_dbremove_msg(); call.retrieveCall(args$); __env_dbremove_reply result$ = __DB_env_dbremove_4001(args$); call.reply(result$); break; } case 5: { __env_dbrename_msg args$ = new __env_dbrename_msg(); call.retrieveCall(args$); __env_dbrename_reply result$ = __DB_env_dbrename_4001(args$); call.reply(result$); break; } case 6: { __env_encrypt_msg args$ = new __env_encrypt_msg(); call.retrieveCall(args$); __env_encrypt_reply result$ = __DB_env_encrypt_4001(args$); call.reply(result$); break; } case 7: { __env_flags_msg args$ = new __env_flags_msg(); call.retrieveCall(args$); __env_flags_reply result$ = __DB_env_flags_4001(args$); call.reply(result$); break; } case 8: { __env_open_msg args$ = new __env_open_msg(); call.retrieveCall(args$); __env_open_reply result$ = __DB_env_open_4001(args$); call.reply(result$); break; } case 9: { __env_remove_msg args$ = new __env_remove_msg(); call.retrieveCall(args$); __env_remove_reply result$ = __DB_env_remove_4001(args$); call.reply(result$); break; } case 10: { __txn_abort_msg args$ = new __txn_abort_msg(); call.retrieveCall(args$); __txn_abort_reply result$ = __DB_txn_abort_4001(args$); call.reply(result$); break; } case 11: { __txn_begin_msg args$ = new __txn_begin_msg(); call.retrieveCall(args$); __txn_begin_reply result$ = __DB_txn_begin_4001(args$); call.reply(result$); break; } case 12: { __txn_commit_msg args$ = new __txn_commit_msg(); call.retrieveCall(args$); __txn_commit_reply result$ = __DB_txn_commit_4001(args$); call.reply(result$); break; } case 13: { __txn_discard_msg args$ = new __txn_discard_msg(); call.retrieveCall(args$); __txn_discard_reply result$ = __DB_txn_discard_4001(args$); call.reply(result$); break; } case 14: { __txn_prepare_msg args$ = new __txn_prepare_msg(); call.retrieveCall(args$); __txn_prepare_reply result$ = __DB_txn_prepare_4001(args$); call.reply(result$); break; } case 15: { __txn_recover_msg args$ = new __txn_recover_msg(); call.retrieveCall(args$); __txn_recover_reply result$ = __DB_txn_recover_4001(args$); call.reply(result$); break; } case 16: { __db_associate_msg args$ = new __db_associate_msg(); call.retrieveCall(args$); __db_associate_reply result$ = __DB_db_associate_4001(args$); call.reply(result$); break; } case 17: { __db_bt_maxkey_msg args$ = new __db_bt_maxkey_msg(); call.retrieveCall(args$); __db_bt_maxkey_reply result$ = __DB_db_bt_maxkey_4001(args$); call.reply(result$); break; } case 18: { __db_bt_minkey_msg args$ = new __db_bt_minkey_msg(); call.retrieveCall(args$); __db_bt_minkey_reply result$ = __DB_db_bt_minkey_4001(args$); call.reply(result$); break; } case 19: { __db_close_msg args$ = new __db_close_msg(); call.retrieveCall(args$); __db_close_reply result$ = __DB_db_close_4001(args$); call.reply(result$); break; } case 20: { __db_create_msg args$ = new __db_create_msg(); call.retrieveCall(args$); __db_create_reply result$ = __DB_db_create_4001(args$); call.reply(result$); break; } case 21: { __db_del_msg args$ = new __db_del_msg(); call.retrieveCall(args$); __db_del_reply result$ = __DB_db_del_4001(args$); call.reply(result$); break; } case 22: { __db_encrypt_msg args$ = new __db_encrypt_msg(); call.retrieveCall(args$); __db_encrypt_reply result$ = __DB_db_encrypt_4001(args$); call.reply(result$); break; } case 23: { __db_extentsize_msg args$ = new __db_extentsize_msg(); call.retrieveCall(args$); __db_extentsize_reply result$ = __DB_db_extentsize_4001(args$); call.reply(result$); break; } case 24: { __db_flags_msg args$ = new __db_flags_msg(); call.retrieveCall(args$); __db_flags_reply result$ = __DB_db_flags_4001(args$); call.reply(result$); break; } case 25: { __db_get_msg args$ = new __db_get_msg(); call.retrieveCall(args$); __db_get_reply result$ = __DB_db_get_4001(args$); call.reply(result$); break; } case 26: { __db_h_ffactor_msg args$ = new __db_h_ffactor_msg(); call.retrieveCall(args$); __db_h_ffactor_reply result$ = __DB_db_h_ffactor_4001(args$); call.reply(result$); break; } case 27: { __db_h_nelem_msg args$ = new __db_h_nelem_msg(); call.retrieveCall(args$); __db_h_nelem_reply result$ = __DB_db_h_nelem_4001(args$); call.reply(result$); break; } case 28: { __db_key_range_msg args$ = new __db_key_range_msg(); call.retrieveCall(args$); __db_key_range_reply result$ = __DB_db_key_range_4001(args$); call.reply(result$); break; } case 29: { __db_lorder_msg args$ = new __db_lorder_msg(); call.retrieveCall(args$); __db_lorder_reply result$ = __DB_db_lorder_4001(args$); call.reply(result$); break; } case 30: { __db_open_msg args$ = new __db_open_msg(); call.retrieveCall(args$); __db_open_reply result$ = __DB_db_open_4001(args$); call.reply(result$); break; } case 31: { __db_pagesize_msg args$ = new __db_pagesize_msg(); call.retrieveCall(args$); __db_pagesize_reply result$ = __DB_db_pagesize_4001(args$); call.reply(result$); break; } case 32: { __db_pget_msg args$ = new __db_pget_msg(); call.retrieveCall(args$); __db_pget_reply result$ = __DB_db_pget_4001(args$); call.reply(result$); break; } case 33: { __db_put_msg args$ = new __db_put_msg(); call.retrieveCall(args$); __db_put_reply result$ = __DB_db_put_4001(args$); call.reply(result$); break; } case 34: { __db_re_delim_msg args$ = new __db_re_delim_msg(); call.retrieveCall(args$); __db_re_delim_reply result$ = __DB_db_re_delim_4001(args$); call.reply(result$); break; } case 35: { __db_re_len_msg args$ = new __db_re_len_msg(); call.retrieveCall(args$); __db_re_len_reply result$ = __DB_db_re_len_4001(args$); call.reply(result$); break; } case 36: { __db_re_pad_msg args$ = new __db_re_pad_msg(); call.retrieveCall(args$); __db_re_pad_reply result$ = __DB_db_re_pad_4001(args$); call.reply(result$); break; } case 37: { __db_remove_msg args$ = new __db_remove_msg(); call.retrieveCall(args$); __db_remove_reply result$ = __DB_db_remove_4001(args$); call.reply(result$); break; } case 38: { __db_rename_msg args$ = new __db_rename_msg(); call.retrieveCall(args$); __db_rename_reply result$ = __DB_db_rename_4001(args$); call.reply(result$); break; } case 39: { __db_stat_msg args$ = new __db_stat_msg(); call.retrieveCall(args$); __db_stat_reply result$ = __DB_db_stat_4001(args$); call.reply(result$); break; } case 40: { __db_sync_msg args$ = new __db_sync_msg(); call.retrieveCall(args$); __db_sync_reply result$ = __DB_db_sync_4001(args$); call.reply(result$); break; } case 41: { __db_truncate_msg args$ = new __db_truncate_msg(); call.retrieveCall(args$); __db_truncate_reply result$ = __DB_db_truncate_4001(args$); call.reply(result$); break; } case 42: { __db_cursor_msg args$ = new __db_cursor_msg(); call.retrieveCall(args$); __db_cursor_reply result$ = __DB_db_cursor_4001(args$); call.reply(result$); break; } case 43: { __db_join_msg args$ = new __db_join_msg(); call.retrieveCall(args$); __db_join_reply result$ = __DB_db_join_4001(args$); call.reply(result$); break; } case 44: { __dbc_close_msg args$ = new __dbc_close_msg(); call.retrieveCall(args$); __dbc_close_reply result$ = __DB_dbc_close_4001(args$); call.reply(result$); break; } case 45: { __dbc_count_msg args$ = new __dbc_count_msg(); call.retrieveCall(args$); __dbc_count_reply result$ = __DB_dbc_count_4001(args$); call.reply(result$); break; } case 46: { __dbc_del_msg args$ = new __dbc_del_msg(); call.retrieveCall(args$); __dbc_del_reply result$ = __DB_dbc_del_4001(args$); call.reply(result$); break; } case 47: { __dbc_dup_msg args$ = new __dbc_dup_msg(); call.retrieveCall(args$); __dbc_dup_reply result$ = __DB_dbc_dup_4001(args$); call.reply(result$); break; } case 48: { __dbc_get_msg args$ = new __dbc_get_msg(); call.retrieveCall(args$); __dbc_get_reply result$ = __DB_dbc_get_4001(args$); call.reply(result$); break; } case 49: { __dbc_pget_msg args$ = new __dbc_pget_msg(); call.retrieveCall(args$); __dbc_pget_reply result$ = __DB_dbc_pget_4001(args$); call.reply(result$); break; } case 50: { __dbc_put_msg args$ = new __dbc_put_msg(); call.retrieveCall(args$); __dbc_put_reply result$ = __DB_dbc_put_4001(args$); call.reply(result$); break; } default: call.failProcedureUnavailable(); } } else { call.failProcedureUnavailable(); } }
9203 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9203/1765c2598bb92e59ff55807fab4076d1b5d838f2/DbServerStub.java/buggy/db/rpc_server/java/gen/DbServerStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 1398, 71, 11647, 1477, 12, 1398, 71, 11647, 1477, 5369, 745, 16, 509, 5402, 16, 509, 1177, 16, 509, 12131, 13, 6647, 1216, 2755, 71, 11647, 503, 16, 1860, 288, 3639, 309, 261, 1177, 422, 7409, 21, 262, 288, 5411, 1620, 261, 12131, 262, 288, 5411, 648, 404, 30, 288, 7734, 1001, 3074, 67, 17703, 281, 554, 67, 3576, 833, 8, 273, 394, 1001, 3074, 67, 17703, 281, 554, 67, 3576, 5621, 7734, 745, 18, 17466, 1477, 12, 1968, 8, 1769, 7734, 1001, 3074, 67, 17703, 281, 554, 67, 10629, 563, 8, 273, 1001, 2290, 67, 3074, 67, 17703, 281, 554, 67, 24, 11664, 12, 1968, 8, 1769, 7734, 745, 18, 10629, 12, 2088, 8, 1769, 7734, 898, 31, 5411, 289, 5411, 648, 576, 30, 288, 7734, 1001, 3074, 67, 4412, 67, 3576, 833, 8, 273, 394, 1001, 3074, 67, 4412, 67, 3576, 5621, 7734, 745, 18, 17466, 1477, 12, 1968, 8, 1769, 7734, 1001, 3074, 67, 4412, 67, 10629, 563, 8, 273, 1001, 2290, 67, 3074, 67, 4412, 67, 24, 11664, 12, 1968, 8, 1769, 7734, 745, 18, 10629, 12, 2088, 8, 1769, 7734, 898, 31, 5411, 289, 5411, 648, 890, 30, 288, 7734, 1001, 3074, 67, 2640, 67, 3576, 833, 8, 273, 394, 1001, 3074, 67, 2640, 67, 3576, 5621, 7734, 745, 18, 17466, 1477, 12, 1968, 8, 1769, 7734, 1001, 3074, 67, 2640, 67, 10629, 563, 8, 273, 1001, 2290, 67, 3074, 67, 2640, 67, 24, 11664, 12, 1968, 8, 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, 3435, 1398, 71, 11647, 1477, 12, 1398, 71, 11647, 1477, 5369, 745, 16, 509, 5402, 16, 509, 1177, 16, 509, 12131, 13, 6647, 1216, 2755, 71, 11647, 503, 16, 1860, 288, 3639, 309, 261, 1177, 422, 7409, 21, 262, 288, 5411, 1620, 261, 12131, 262, 288, 5411, 648, 404, 30, 288, 7734, 1001, 3074, 67, 17703, 281, 554, 67, 3576, 833, 8, 273, 394, 1001, 3074, 67, 17703, 281, 554, 67, 3576, 5621, 7734, 745, 18, 17466, 1477, 12, 1968, 8, 1769, 7734, 1001, 3074, 67, 17703, 281, 554, 67, 10629, 563, 8, 273, 1001, 2290, 67, 3074, 67, 17703, 281, 554, 67, 24, 11664, 12, 1968, 8, 1769, 7734, 745, 18, 10629, 12, 2088, 8, 2 ]
container.displayException( e );
ChartPreviewPainter.setEnableLivePreview( false );
private void doLivePreview( ) { if ( ChartUIUtil.checkDataBinding( chartModel ) ) { // Enable live preview ChartPreviewPainter.setEnableLivePreview( true ); // Make sure not affect model changed ChartAdapter.ignoreNotifications( true ); try { ChartUIUtil.doLivePreview( chartModel, ( (ChartWizardContext) getContext( ) ).getDataServiceProvider( ) ); } // Includes RuntimeException catch ( Exception e ) { container.displayException( e ); } ChartAdapter.ignoreNotifications( false ); } else { // Disable live preview ChartPreviewPainter.setEnableLivePreview( false ); } if ( chartModel != null && previewPainter != null ) { previewPainter.renderModel( chartModel ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ac26365eb54b9a10e69498a213cb6f605f15760b/TaskSelectType.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 12328, 11124, 12, 262, 202, 95, 202, 202, 430, 261, 14804, 5370, 1304, 18, 1893, 751, 5250, 12, 4980, 1488, 262, 262, 202, 202, 95, 1082, 202, 759, 9677, 8429, 10143, 1082, 202, 7984, 11124, 15775, 18, 542, 8317, 12328, 11124, 12, 638, 11272, 1082, 202, 759, 4344, 3071, 486, 13418, 938, 3550, 1082, 202, 7984, 4216, 18, 6185, 14111, 12, 638, 11272, 1082, 202, 698, 1082, 202, 95, 9506, 202, 7984, 5370, 1304, 18, 2896, 12328, 11124, 12, 4980, 1488, 16, 25083, 202, 12, 261, 7984, 27130, 1042, 13, 6474, 12, 262, 262, 18, 588, 751, 16300, 12, 262, 11272, 1082, 202, 97, 1082, 202, 759, 657, 8993, 3235, 1082, 202, 14683, 261, 1185, 425, 262, 1082, 202, 95, 9506, 202, 3782, 18, 5417, 503, 12, 425, 11272, 1082, 202, 97, 1082, 202, 7984, 4216, 18, 6185, 14111, 12, 629, 11272, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 759, 10639, 8429, 10143, 1082, 202, 7984, 11124, 15775, 18, 542, 8317, 12328, 11124, 12, 629, 11272, 202, 202, 97, 202, 202, 430, 261, 4980, 1488, 480, 446, 597, 10143, 15775, 480, 446, 262, 202, 202, 95, 1082, 202, 12102, 15775, 18, 5902, 1488, 12, 4980, 1488, 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, 741, 12328, 11124, 12, 262, 202, 95, 202, 202, 430, 261, 14804, 5370, 1304, 18, 1893, 751, 5250, 12, 4980, 1488, 262, 262, 202, 202, 95, 1082, 202, 759, 9677, 8429, 10143, 1082, 202, 7984, 11124, 15775, 18, 542, 8317, 12328, 11124, 12, 638, 11272, 1082, 202, 759, 4344, 3071, 486, 13418, 938, 3550, 1082, 202, 7984, 4216, 18, 6185, 14111, 12, 638, 11272, 1082, 202, 698, 1082, 202, 95, 9506, 202, 7984, 5370, 1304, 18, 2896, 12328, 11124, 12, 4980, 1488, 16, 25083, 202, 12, 261, 7984, 27130, 1042, 13, 6474, 12, 262, 262, 18, 588, 751, 16300, 12, 262, 11272, 1082, 202, 97, 1082, 202, 759, 657, 8993, 3235, 1082, 202, 14683, 261, 2 ]
buf.append(typeRef.getName());
String name= typeRef.getName(); if (name != null && name.length() > 0) buf.append(name);
public String getText(Object element) { if (! (element instanceof TypeSearchMatch)) return super.getText(element); TypeSearchMatch typeRef= (TypeSearchMatch) element; StringBuffer buf= new StringBuffer(); if (isSet(SHOW_TYPE_ONLY)) { buf.append(typeRef.getName()); } else if (isSet(SHOW_TYPE_CONTAINER_ONLY)) { buf.append(typeRef.getQualifiedParentName()); } else if (isSet(SHOW_FILENAME_ONLY)) { buf.append(typeRef.getFileName()); } else { if (isSet(SHOW_FULLYQUALIFIED)) buf.append(typeRef.getFullyQualifiedName()); else buf.append(typeRef.getParentName()); if (isSet(SHOW_FILENAME_POSTFIX)) { buf.append(OpenTypeMessages.getString("TypeInfoLabelProvider.dash")); //$NON-NLS-1$ buf.append(typeRef.getFileName()); } } if (isSet(SHOW_ROOT_POSTFIX)) { buf.append(OpenTypeMessages.getString("TypeInfoLabelProvider.dash"));//$NON-NLS-1$ buf.append(typeRef.getFilePath()); } return buf.toString(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9e531f825a527e4750aedbf2b3430fe6207f14cc/TypeSearchMatchLabelProvider.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/opentype/TypeSearchMatchLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6701, 12, 921, 930, 13, 288, 202, 202, 430, 16051, 261, 2956, 1276, 1412, 2979, 2060, 3719, 1875, 202, 2463, 2240, 18, 588, 1528, 12, 2956, 1769, 9506, 202, 559, 2979, 2060, 618, 1957, 33, 261, 559, 2979, 2060, 13, 930, 31, 9506, 202, 780, 1892, 1681, 33, 394, 6674, 5621, 202, 202, 430, 261, 291, 694, 12, 16677, 67, 2399, 67, 10857, 3719, 288, 1082, 202, 4385, 18, 6923, 12, 723, 1957, 18, 17994, 10663, 202, 202, 97, 469, 309, 261, 291, 694, 12, 16677, 67, 2399, 67, 21395, 67, 10857, 3719, 288, 1082, 202, 4385, 18, 6923, 12, 723, 1957, 18, 588, 8708, 3054, 461, 10663, 202, 202, 97, 469, 309, 261, 291, 694, 12, 16677, 67, 16080, 67, 10857, 3719, 288, 1082, 202, 4385, 18, 6923, 12, 723, 1957, 18, 588, 4771, 10663, 202, 202, 97, 469, 288, 1082, 202, 430, 261, 291, 694, 12, 16677, 67, 18111, 61, 8729, 13519, 3719, 9506, 202, 4385, 18, 6923, 12, 723, 1957, 18, 588, 16999, 12345, 10663, 1082, 202, 12107, 9506, 202, 4385, 18, 6923, 12, 723, 1957, 18, 588, 3054, 461, 10663, 6862, 202, 430, 261, 291, 694, 12, 16677, 67, 16080, 67, 3798, 4563, 3719, 288, 9506, 202, 4385, 18, 6923, 12, 3678, 559, 5058, 18, 588, 780, 2932, 17305, 2224, 2249, 18, 21817, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 4385, 18, 6923, 12, 723, 1957, 18, 588, 4771, 10663, 1082, 202, 97, 202, 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, 514, 6701, 12, 921, 930, 13, 288, 202, 202, 430, 16051, 261, 2956, 1276, 1412, 2979, 2060, 3719, 1875, 202, 2463, 2240, 18, 588, 1528, 12, 2956, 1769, 9506, 202, 559, 2979, 2060, 618, 1957, 33, 261, 559, 2979, 2060, 13, 930, 31, 9506, 202, 780, 1892, 1681, 33, 394, 6674, 5621, 202, 202, 430, 261, 291, 694, 12, 16677, 67, 2399, 67, 10857, 3719, 288, 1082, 202, 4385, 18, 6923, 12, 723, 1957, 18, 17994, 10663, 202, 202, 97, 469, 309, 261, 291, 694, 12, 16677, 67, 2399, 67, 21395, 67, 10857, 3719, 288, 1082, 202, 4385, 18, 6923, 12, 723, 1957, 18, 588, 8708, 3054, 461, 10663, 202, 202, 97, 469, 309, 261, 291, 2 ]
public Set getEnabledContextIds() { return Collections.unmodifiableSet(enabledContextIds);
public SortedSet getEnabledContextIds() { return new DepthSortedContextIdSet(enabledContextIds);
public Set getEnabledContextIds() { return Collections.unmodifiableSet(enabledContextIds); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/bd8f8f9044b8194c90364cfffebc150f48c35430/MutableContextManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/contexts/MutableContextManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 336, 1526, 1042, 2673, 1435, 288, 3639, 327, 5737, 18, 318, 13388, 694, 12, 5745, 1042, 2673, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1000, 336, 1526, 1042, 2673, 1435, 288, 3639, 327, 5737, 18, 318, 13388, 694, 12, 5745, 1042, 2673, 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, -100, -100, -100 ]
System.out.println(START + "prepareUnicodeTable");
private static void prepareUnicodeTable(Connection conn) { ResultSet rs; Statement stmt; try { stmt = conn.createStatement(); // creating table small then add large column - that way forcing table to have default small page size, but have large rows. stmt.execute("create table testUnicode (b integer, c integer)"); stmt.execute("alter table testUnicode add column a CLOB(100k)"); PreparedStatement ps = conn.prepareStatement( // "insert into testUnicode values(?,?,?)"); "insert into testUnicode (a, b, c) values(?,?,?)"); // insert small strings for (int i = 0; i < numStrings; i++) { insertRow(ps,unicodeStrings[i],i); } StringBuffer sb = new StringBuffer(5000); for (int i = 0; i < 5000; i++) sb.append('q'); String largeString = new String(sb); // insert larger strings for (int i = 0; i < numStrings; i++) { insertRow(ps,unicodeStrings[i] + largeString + unicodeStrings[i] + "pppppppppp",i); } conn.commit(); // set numRows rs = stmt.executeQuery("select count(*) from testUnicode"); int realNumRows = -1; if (rs.next()) realNumRows = rs.getInt(1); if (realNumRows <= 0) System.out.println("FAIL. No rows in table testUnicode"); if (realNumRows != numRowsUnicode) System.out.println("FAIL. numRowsUnicode is incorrect"); } catch (SQLException e) { TestUtil.dumpSQLExceptions(e); } catch (Throwable e) { System.out.println("FAIL -- unexpected exception:" + e.toString()); if (debug) e.printStackTrace(); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/43592363c669b58b6c64d11df587cb100bb343cc/blobclob4BLOB.java/buggy/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/blobclob4BLOB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 3238, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 760, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 918, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2911, 16532, 1388, 12, 1952, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 1487, 13, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 288, 202, 202, 13198, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 3597, 31, 202, 202, 3406, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 3480, 31, 202, 202, 698, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 288, 1082, 202, 10589, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 273, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 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, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2332, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 3238, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 760, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 918, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 2911, 16532, 1388, 12, 1952, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 9366, 16532, 1388, 8863, 1487, 13, 3163, 18, 659, 18, 8222, 2 ]
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen();
public quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { quickfix.field.EncodedTextLen value = new quickfix.field.EncodedTextLen();
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStatus.java/buggy/src/java/src/quickfix/fix44/ListStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 28799, 1528, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10397, 1528, 2891, 28799, 1528, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 2891, 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, -100, -100, -100, -100, -100 ]
setControlSize(); current.setVisible(true);
current.setVisible(true); setControlSize();
public void selectPart(IPresentablePart toSelect) { if (toSelect == current) { return; } if (current != null) { current.setVisible(false); } current = toSelect; if (current != null) { tabFolder.setSelection(indexOf(current)); setControlSize(); current.setVisible(true); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/511a7158a9267c3cc8edeb59972a679494483881/BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/BasicStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 1988, 12, 2579, 1581, 429, 1988, 358, 3391, 13, 288, 202, 202, 430, 261, 869, 3391, 422, 783, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 430, 261, 2972, 480, 446, 13, 288, 1082, 202, 2972, 18, 542, 6207, 12, 5743, 1769, 202, 202, 97, 9506, 202, 2972, 273, 358, 3391, 31, 9506, 202, 430, 261, 2972, 480, 446, 13, 288, 1082, 202, 7032, 3899, 18, 542, 6233, 12, 31806, 12, 2972, 10019, 1082, 202, 542, 3367, 1225, 5621, 1082, 202, 2972, 18, 542, 6207, 12, 3767, 1769, 6862, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2027, 1988, 12, 2579, 1581, 429, 1988, 358, 3391, 13, 288, 202, 202, 430, 261, 869, 3391, 422, 783, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 430, 261, 2972, 480, 446, 13, 288, 1082, 202, 2972, 18, 542, 6207, 12, 5743, 1769, 202, 202, 97, 9506, 202, 2972, 273, 358, 3391, 31, 9506, 202, 430, 261, 2972, 480, 446, 13, 288, 1082, 202, 7032, 3899, 18, 542, 6233, 12, 31806, 12, 2972, 10019, 1082, 202, 542, 3367, 1225, 5621, 1082, 202, 2972, 18, 542, 6207, 12, 3767, 1769, 6862, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case 191: break;
case 194: break;
public Symbol next_token() throws java.io.IOException { int yyFlexInput; int yyFlexAction; int [] yyFlexTransL = YY_TRANS; int [] yyFlexRowMapL = YY_ROWMAP; int [] yyFlexAttrL = YY_ATTRIBUTE; int yyFlexPushbackPos_l = yyFlexPushbackPos = -1; boolean yy_was_pushback; while (true) { // cached fields: int yyFlexCurrentPosL; int yyFlexMarkedPosL = yyFlexMarkedPos; int yyFlexEndReadL = yyFlexEndRead; char [] yyFlexBufferL = yyFlexBuffer; char [] yyCMapL = YY_CMAP; boolean yyFlexR = false; for (yyFlexCurrentPosL = yyFlexStartRead; yyFlexCurrentPosL < yyFlexMarkedPosL; yyFlexCurrentPosL++) { switch (yyFlexBufferL[yyFlexCurrentPosL]) { case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyline++; yycolumn = 0; yyFlexR = false; break; case '\r': yyline++; yycolumn = 0; yyFlexR = true; break; case '\n': if (yyFlexR) yyFlexR = false; else { yyline++; yycolumn = 0; } break; default: yyFlexR = false; yycolumn++; } } if (yyFlexR) { // peek one character ahead if it is \n (if we have counted one line too much) boolean yyFlexPeek; if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; else if (yyFlexAtEOF) yyFlexPeek = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexPeek = false; else yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; } if (yyFlexPeek) yyline--; } if (yyFlexMarkedPosL > yyFlexStartRead) { switch (yyFlexBufferL[yyFlexMarkedPosL-1]) { case '\n': case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyFlexAtBOL = true; break; case '\r': if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; else if (yyFlexAtEOF) yyFlexAtBOL = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexAtBOL = false; else yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; } break; default: yyFlexAtBOL = false; } } yyFlexAction = -1; yyFlexCurrentPosL = yyFlexCurrentPos = yyFlexStartRead = yyFlexMarkedPosL; if (yyFlexAtBOL) yyFlexState = YY_LEXSTATE[yyFlexLexicalState+1]; else yyFlexState = YY_LEXSTATE[yyFlexLexicalState]; yy_was_pushback = false; yy_forAction: { while (true) { if (yyFlexCurrentPosL < yyFlexEndReadL) yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; else if (yyFlexAtEOF) { yyFlexInput = YYEOF; break yy_forAction; } else { // store back cached positions yyFlexCurrentPos = yyFlexCurrentPosL; yyFlexMarkedPos = yyFlexMarkedPosL; yyFlexPushbackPos = yyFlexPushbackPos_l; boolean eof = yyFlexRefill(); // get translated positions and possibly new buffer yyFlexCurrentPosL = yyFlexCurrentPos; yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; yyFlexEndReadL = yyFlexEndRead; yyFlexPushbackPos_l = yyFlexPushbackPos; if (eof) { yyFlexInput = YYEOF; break yy_forAction; } else { yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; } } int yyFlexNext = yyFlexTransL[ yyFlexRowMapL[yyFlexState] + yyCMapL[yyFlexInput] ]; if (yyFlexNext == -1) break yy_forAction; yyFlexState = yyFlexNext; int yyFlexAttributes = yyFlexAttrL[yyFlexState]; if ( (yyFlexAttributes & 2) == 2 ) yyFlexPushbackPos_l = yyFlexCurrentPosL; if ( (yyFlexAttributes & 1) == 1 ) { yy_was_pushback = (yyFlexAttributes & 4) == 4; yyFlexAction = yyFlexState; yyFlexMarkedPosL = yyFlexCurrentPosL; if ( (yyFlexAttributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yyFlexMarkedPos = yyFlexMarkedPosL; if (yy_was_pushback) yyFlexMarkedPos = yyFlexPushbackPos_l; switch (yyFlexAction < 0 ? yyFlexAction : YY_ACTION[yyFlexAction]) { case 85: { return symbol(FULL); } case 141: break; case 92: { debugOption = true; } case 142: break; case 57: { return symbol(CHAR,new Character('\t')); } case 143: break; case 107: { throw new ScannerException(file,ErrorMessages.NO_BUFFER_SIZE, yyline); } case 144: break; case 91: { isYYEOF = true; } case 145: break; case 54: { return symbol(CHAR, new Character(yytext().charAt(1))); } case 146: break; case 11: { yybegin(REGEXP); } case 147: break; case 112: { isAbstract = true; } case 148: break; case 101: { initCode = conc(initCode,string); yybegin(MACROS); } case 149: break; case 45: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_NL, yyline, yycolumn); } case 150: break; case 12: { return symbol_countUpdate(RBRACE, null); } case 151: break; case 74: { return symbol(REPEAT, new Integer(yytext().substring(1).trim())); } case 152: break; case 55: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8))); } case 153: break; case 97: { columnCount = true; } case 154: break; case 122: { return symbol(LETTERCLASS); } case 155: break; case 15: { if (macroDefinition) { yybegin(MACROS); } return symbol(REGEXPEND); } case 156: break; case 77: { inclusive_states = true; yybegin(STATELIST); } case 157: break; case 56: { return symbol(CHAR,new Character('\n')); } case 158: break; case 81: { return symbol(MACROUSE, yytext().substring(1,yytext().length()-1)); } case 159: break; case 25: { return symbol(OPENBRACKET); } case 160: break; case 123: { throw new ScannerException(file,ErrorMessages.QUIL_INITTHROW, yyline); } case 161: break; case 126: { visibility = "private"; Skeleton.makePrivate(); } case 162: break; case 49: { commentbalance++; } case 163: break; case 9: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 164: break; case 68: { string.append('\n'); } case 165: break; case 33: { balance++; actionText.append('{'); } case 166: break; case 48: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 167: break; case 67: { string.append('\"'); } case 168: break; case 95: { tokenType = yytext().substring(6).trim(); } case 169: break; case 79: { return symbol_countUpdate(MACROUSE, makeMacroIdent()); } case 170: break; case 14: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 171: break; case 32: { if (balance > 0) { balance--; actionText.append('}'); } else { yybegin(REGEXPSTART); Action a = new Action(actionText.toString(), action_line); actions.addElement(a); return symbol(ACTION, a); } } case 172: break; case 108: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol_countUpdate(EOFRULE, null); } case 173: break; case 120: { isExtending = yytext().substring(9).trim(); } case 174: break; case 113: { cupSymbol = yytext().substring(8).trim(); if (cupCompatible) Out.warning(ErrorMessages.CUPSYM_AFTER_CUP, yyline); } case 175: break; case 63: { yybegin(REPEATEXP); return symbol(REPEAT, new Integer(yytext().trim().substring(1).trim())); } case 176: break; case 88: { packed = true; useRowMap = true; } case 177: break; case 27: { return symbol(PLUS); } case 178: break; case 99: { isPublic = true; } case 179: break; case 70: { string.append('\r'); } case 180: break; case 76: { inclusive_states = false; yybegin(STATELIST); } case 181: break; case 3: { userCode.append(yytext()); } case 182: break; case 19: { lookAheadUsed = true; return symbol(LOOKAHEAD); } case 183: break; case 110: { lexThrow = concExc(lexThrow,yytext().substring(8).trim()); } case 184: break; case 26: { return symbol(CLOSEBRACKET); } case 185: break; case 80: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 186: break; case 37: { throw new ScannerException(file,ErrorMessages.UNTERMINATED_STR, yyline, yycolumn); } case 187: break; case 111: { eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 188: break; case 69: { string.append('\t'); } case 189: break; case 23: { return symbol(BANG); } case 190: break; case 17: { yybegin(CHARCLASS); return symbol(OPENCLASS); } case 191: break; case 114: { cupDebug = true; } case 192: break; case 87: { charCount = true; } case 193: break; case 58: { return symbol(CHAR,new Character('\r')); } case 194: break; case 66: { string.append( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8)); } case 195: break; case 134: { scanErrorException = yytext().substring(11).trim(); } case 196: break; case 60: { return symbol(CHAR,new Character('\b')); } case 197: break; case 35: { yybegin(REGEXP); return symbol(MORETHAN); } case 198: break; case 132: { isImplementing = concExc(isImplementing, yytext().substring(12).trim()); } case 199: break; case 78: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 200: break; case 90: { isFinal = true; } case 201: break; case 137: { return symbol(UPPERCLASS); } case 202: break; case 46: { yybegin(REGEXP); return symbol(RBRACE); } case 203: break; case 51: { Out.warning(ErrorMessages.NOT_AT_BOL, yyline); yypushback(1); } case 204: break; case 28: { return symbol(QUESTION); } case 205: break; case 36: { string.append(yytext()); } case 206: break; case 135: { initThrow = concExc(initThrow,string); yybegin(MACROS); } case 207: break; case 140: { return symbol(JLETTERDIGITCLASS); } case 208: break; case 53: { nextState = REGEXPSTART; yybegin(COMMENT); } case 209: break; case 130: { eofThrow = concExc(eofThrow,string); yybegin(MACROS); } case 210: break; case 61: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(REGEXPEND); } case 211: break; case 138: { return symbol(LOWERCLASS); } case 212: break; case 38: { yybegin(nextState); return symbol(STRING, string.toString()); } case 213: break; case 82: { classCode = conc(classCode,string); yybegin(MACROS); } case 214: break; case 8: { return symbol(IDENT, yytext()); } case 215: break; case 43: { return symbol(HAT); } case 216: break; case 29: { lookAheadUsed = true; return symbol(DOLLAR); } case 217: break; case 124: { eofThrow = concExc(eofThrow,yytext().substring(10).trim()); } case 218: break; case 5: { states.insert(yytext(),inclusive_states); } case 219: break; case 84: { cupCompatible = true; isImplementing = concExc(isImplementing, "java_cup.runtime.Scanner"); if (functionName == null) functionName = "next_token"; if (tokenType == null) tokenType = "java_cup.runtime.Symbol"; if (eofVal == null) eofVal = "return new java_cup.runtime.Symbol("+cupSymbol+".EOF);"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 220: break; case 127: { standalone = true; isInteger = true; } case 221: break; case 4: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_CHAR, yyline, yycolumn); } case 222: break; case 47: { t.start(); yybegin(MACROS); macroDefinition = true; return symbol(USERCODE,userCode); } case 223: break; case 59: { return symbol(CHAR,new Character('\f')); } case 224: break; case 94: { eofCode = conc(eofCode,string); yybegin(MACROS); } case 225: break; case 65: { string.append(yytext().charAt(1)); } case 226: break; case 115: { caseless = true; } case 227: break; case 39: { throw new ScannerException(file,ErrorMessages.EOL_IN_CHARCLASS,yyline,yycolumn); } case 228: break; case 117: { return symbol(DIGITCLASS); } case 229: break; case 64: { if (macroDefinition) { yybegin(EATWSPNL); return symbol(BAR); } else { yybegin(REGEXPSTART); return symbol(NOACTION); } } case 230: break; case 30: { bolUsed = true; return symbol(HAT); } case 231: break; case 105: { throw new ScannerException(file,ErrorMessages.QUIL_CUPSYM, yyline); } case 232: break; case 102: { isIntWrap = true; } case 233: break; case 41: { if (balance > 0) balance--; else yybegin(REGEXP); return symbol(CLOSECLASS); } case 234: break; case 116: { bufferSize = Integer.parseInt(yytext().substring(8).trim()); } case 235: break; case 31: { actionText.append(yytext()); } case 236: break; case 86: { lineCount = true; } case 237: break; case 128: { throw new ScannerException(file,ErrorMessages.QUIL_SCANERROR, yyline); } case 238: break; case 104: { throw new ScannerException(file,ErrorMessages.QUIL_THROW, yyline); } case 239: break; case 83: { isInteger = true; } case 240: break; case 129: { return symbol(JLETTERCLASS); } case 241: break; case 98: { isInteger = true; if (eofVal == null) eofVal = "return 0;"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 242: break; case 18: { return symbol(STAR); } case 243: break; case 121: { throw new ScannerException(file,ErrorMessages.QUIL_EOFTHROW, yyline); } case 244: break; case 44: { return symbol(DASH); } case 245: break; case 106: { className = yytext().substring(7).trim(); } case 246: break; case 62: { nextState = REGEXP; yybegin(COMMENT); } case 247: break; case 136: { lexThrow = concExc(lexThrow,yytext().substring(12).trim()); } case 248: break; case 22: { return symbol(BAR); } case 249: break; case 125: { functionName = yytext().substring(10).trim(); } case 250: break; case 13: { yybegin(STATES); return symbol_countUpdate(LESSTHAN, null); } case 251: break; case 119: { eofVal = string.toString(); yybegin(MACROS); } case 252: break; case 73: { yypushback(1); yycolumn--; return symbol(CHAR, new Character(yytext().charAt(0))); } case 253: break; case 24: { return symbol(TILDE); } case 254: break; case 139: { lexThrow = concExc(lexThrow,string); yybegin(MACROS); } case 255: break; case 103: { notUnix = true; } case 256: break; case 89: { packed = false; useRowMap = true; } case 257: break; case 20: { string.setLength(0); nextState = REGEXP; yybegin(STRING_CONTENT); } case 258: break; case 2: { /* ignore */ } case 259: break; case 93: { return symbol(UNICODE); } case 260: break; case 16: { return symbol(POINT); } case 261: break; case 72: { string.append('\b'); } case 262: break; case 21: { yybegin(REGEXPSTART); return symbol(LBRACE); } case 263: break; case 131: { initThrow = concExc(initThrow,yytext().substring(11).trim()); } case 264: break; case 96: { packed = false; useRowMap = false; } case 265: break; case 7: { yybegin(MACROS); } case 266: break; case 75: { string.setLength(0); yybegin(COPY); } case 267: break; case 42: { string.setLength(0); nextState = CHARCLASS; yybegin(STRING_CONTENT); } case 268: break; case 118: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(EOFRULE); } case 269: break; case 52: { macroDefinition = false; yybegin(REGEXPSTART); return symbol(DELIMITER); } case 270: break; case 50: { nextState = MACROS; yybegin(COMMENT); } case 271: break; case 10: { yybegin(REGEXP); return symbol(EQUALS); } case 272: break; case 34: { return symbol(COMMA); } case 273: break; case 1: { return symbol(EOF); } case 274: break; case 100: { throw new ScannerException(file,ErrorMessages.EOF_WO_ACTION); } case 275: break; case 71: { string.append('\f'); } case 276: break; case 40: { balance++; return symbol(OPENCLASS); } case 277: break; case 133: { throw new ScannerException(file,ErrorMessages.QUIL_YYLEXTHROW, yyline); } case 278: break; case 109: { File f = new File(yytext().substring(9).trim()); if ( !f.canRead() ) throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); // check for cycle if (files.search(f) > 0) throw new ScannerException(file,ErrorMessages.FILE_CYCLE, yyline); try { yypushStream( new FileReader(f) ); files.push(file); file = f; Out.println("Including \""+file+"\""); } catch (FileNotFoundException e) { throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); } } case 279: break; case 6: { } case 280: break; default: if (yyFlexInput == YYEOF && yyFlexStartRead == yyFlexCurrentPos) { yyFlexAtEOF = true; yyFlexDoEOF(); switch (yyFlexLexicalState) { case STRING_CONTENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_STRING); } case 745: break; case MACROS: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 746: break; case STATELIST: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 747: break; case CHARCLASS: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 748: break; case JAVA_CODE: { throw new ScannerException(file,ErrorMessages.EOF_IN_ACTION, action_line-1); } case 749: break; case REPEATEXP: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 750: break; case COMMENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_COMMENT); } case 751: break; case STATES: { throw new ScannerException(file,ErrorMessages.EOF_IN_STATES); } case 752: break; case COPY: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 753: break; default: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else return symbol(EOF); } } } else { yyFlexScanError(YY_NO_MATCH); } } } }
6220 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6220/7127ef36c07cc747ba55753a94d44dca753c5c62/LexScan.java/buggy/src/JFlex/LexScan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8565, 1024, 67, 2316, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 9016, 19667, 1210, 31, 565, 509, 9016, 19667, 1803, 31, 565, 509, 5378, 9016, 19667, 1429, 48, 273, 1624, 61, 67, 16596, 31, 565, 509, 5378, 9016, 19667, 1999, 863, 48, 273, 1624, 61, 67, 11226, 8352, 31, 565, 509, 5378, 9016, 19667, 3843, 48, 273, 1624, 61, 67, 11616, 31, 565, 509, 9016, 19667, 7621, 823, 1616, 67, 80, 273, 9016, 19667, 7621, 823, 1616, 273, 300, 21, 31, 565, 1250, 9016, 67, 17416, 67, 6206, 823, 31, 565, 1323, 261, 3767, 13, 288, 1377, 368, 3472, 1466, 30, 1377, 509, 9016, 19667, 3935, 1616, 48, 31, 1377, 509, 9016, 19667, 21486, 1616, 48, 273, 9016, 19667, 21486, 1616, 31, 1377, 509, 9016, 19667, 1638, 1994, 48, 273, 9016, 19667, 1638, 1994, 31, 1377, 1149, 5378, 9016, 19667, 1892, 48, 273, 9016, 19667, 1892, 31, 1377, 1149, 5378, 9016, 39, 863, 48, 273, 1624, 61, 67, 39, 8352, 31, 1377, 1250, 9016, 19667, 54, 273, 629, 31, 1377, 364, 261, 6795, 19667, 3935, 1616, 48, 273, 9016, 19667, 1685, 1994, 31, 9016, 19667, 3935, 1616, 48, 411, 9016, 19667, 21486, 1616, 48, 31, 4766, 11794, 9016, 19667, 3935, 1616, 48, 27245, 288, 3639, 1620, 261, 6795, 19667, 1892, 48, 63, 6795, 19667, 3935, 1616, 48, 5717, 288, 3639, 648, 2337, 89, 3784, 38, 4278, 3639, 648, 2337, 89, 3784, 39, 4278, 3639, 648, 2337, 89, 713, 7140, 4278, 3639, 648, 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, 8565, 1024, 67, 2316, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 9016, 19667, 1210, 31, 565, 509, 9016, 19667, 1803, 31, 565, 509, 5378, 9016, 19667, 1429, 48, 273, 1624, 61, 67, 16596, 31, 565, 509, 5378, 9016, 19667, 1999, 863, 48, 273, 1624, 61, 67, 11226, 8352, 31, 565, 509, 5378, 9016, 19667, 3843, 48, 273, 1624, 61, 67, 11616, 31, 565, 509, 9016, 19667, 7621, 823, 1616, 67, 80, 273, 9016, 19667, 7621, 823, 1616, 273, 300, 21, 31, 565, 1250, 9016, 67, 17416, 67, 6206, 823, 31, 565, 1323, 261, 3767, 13, 288, 1377, 368, 3472, 1466, 30, 1377, 509, 9016, 19667, 3935, 1616, 48, 31, 1377, 509, 9016, 19667, 21486, 2 ]
setAttribute("vspace", newValue); }
setAttribute("vspace", newValue); }
public void setVspace(String newValue) { setAttribute("vspace", newValue); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/bf94d6634ab3635fdb8210105d9c1c839d13e555/WMLImgElementImpl.java/clean/src/org/apache/wml/dom/WMLImgElementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 58, 2981, 12, 780, 6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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 58, 2981, 12, 780, 6129, 13, 288, 565, 4730, 2932, 90, 2981, 3113, 6129, 1769, 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 ]
int startBucket = thePG.convertTimeToBucket(startDay, false);
protected void calculateLevelSixProjections(Collection touchedInventories, int daysOnHand, long endOfLevelSix, ComparatorModule myComparator) { ArrayList refillProjections = new ArrayList(); ArrayList oldProjections = new ArrayList(); Iterator tiIter = touchedInventories.iterator(); while (tiIter.hasNext()) { // clear out the old and new projections for the last Inventory refillProjections.clear(); oldProjections.clear(); Inventory anInventory = (Inventory) tiIter.next(); LogisticsInventoryPG thePG = (LogisticsInventoryPG)anInventory. searchForPropertyGroup(LogisticsInventoryPG.class); //start time is the start time of the inventorybg long startDay = thePG.getStartTime(); if(startDay < inventoryPlugin.getRefillStartTime()) { startDay = inventoryPlugin.getRefillStartTime(); } int startBucket = thePG.convertTimeToBucket(startDay, false); long now = inventoryPlugin.currentTimeMillis(); if (now > startDay) { //startDay = now; // OLD - Now that were keeping the old projected demand in the past we // only plan from now on. // startBucket = startBucket + inventoryPlugin.getOrderShipTime(); //startBucket = thePG.convertTimeToBucket(now, false) + inventoryPlugin.getOrderShipTime(); //Bug fix for 13464 startDay = now + ((inventoryPlugin.getOrderShipTime() * thePG.getBucketMillis())); startBucket = thePG.convertTimeToBucket(startDay, true); } // clear all of the projections //oldProjections.addAll(thePG.clearRefillProjectionTasks(startDay)); //long cutoffTime = now + ((inventoryPlugin.getOrderShipTime() + 1) * thePG.getBucketMillis()); //Bug fix for 13464 long cutoffTime = now + ((inventoryPlugin.getOrderShipTime()) * thePG.getBucketMillis()); //round up if need be (not exactly on the zero mark) cutoffTime = thePG.convertBucketToTime(thePG.convertTimeToBucket(cutoffTime,true)); oldProjections.addAll(thePG.clearRefillProjectionTasks(cutoffTime)); //grab the overlapping tasks and change their end time ArrayList projectionsToCut = (ArrayList) thePG.getOverlappingRefillProjections(); Iterator toCut = projectionsToCut.iterator(); while(toCut.hasNext()) { Task taskToCut = (Task) toCut.next(); if (taskToCut != null) { Preference new_end = createRefillTimePreference(cutoffTime, inventoryPlugin.getOPlanArrivalInTheaterTime(), AspectType.END_TIME, thePG); ((NewTask)taskToCut).setPreference(new_end); inventoryPlugin.publishChange(taskToCut); thePG.updateRefillProjection(taskToCut); } } int currentBucket = startBucket;// int customerDemandBucket = thePG.convertTimeToBucket(getTimeUtils().// addNDays(startDay, daysOnHand), true); //int customerDemandBucket = thePG.convertTimeToBucket(startDay, false) + daysOnHand; //Bug fix for #13464 int customerDemandBucket = startBucket + daysOnHand; double projDemand = 0; double nextProjDemand = 0; int endOfLevelSixBucket = thePG.convertTimeToBucket(endOfLevelSix, false); thePG.setEndOfLevelSixBucket(endOfLevelSixBucket); //get the initial demand for the customer for startBucket + daysOnHand //Is there a better way to do this to avoid the duplication? projDemand = thePG.getProjectedDemand(customerDemandBucket); //move forward a bucket currentBucket = currentBucket + 1; customerDemandBucket = customerDemandBucket + 1; int refillCtr = 0; //Begin looping through currentBucket forward until you hit the end of // the level six boundary //possible boundary issue... is it '<' or '<=' ?? while (currentBucket < endOfLevelSixBucket) { nextProjDemand = thePG.getProjectedDemand(customerDemandBucket); if (projDemand != nextProjDemand) { //if there's a change in the demand, create a refill projection //BUT only if demand is non-zero if (projDemand > 0.0) { Task refill = createProjectionRefill(thePG.convertBucketToTime(startBucket), thePG.convertBucketToTime(currentBucket), projDemand, thePG); if (startBucket >= currentBucket) { logger.error("Invalid task : "+getTaskUtils().taskDesc(refill)+", startDay: "+ getTimeUtils().dateString(startDay)+", startBucket: "+startBucket+ ", currentBucket: "+currentBucket); } else { refillProjections.add(refill); } } //then reset the start bucket and the new demand startBucket = currentBucket; projDemand = nextProjDemand; } //in either case bump current and customer forward a bucket. currentBucket = currentBucket + 1; customerDemandBucket = customerDemandBucket + 1; } // when we get to the end of the level six window create the last // projection task (if there is one) if (startBucket != currentBucket) { // HERE LIES A BUG. We should never generate zero demand projection tasks // and never generate projection tasks that go beyond the end of the war if (projDemand > 0.0) { Task lastRefill = createProjectionRefill(thePG.convertBucketToTime(startBucket), thePG.convertBucketToTime(currentBucket), projDemand, thePG); if (startBucket >= currentBucket) { logger.error("Invalid task : "+getTaskUtils().taskDesc(lastRefill)+", startDay: "+ getTimeUtils().dateString(startDay)+", startBucket: "+startBucket+ ", currentBucket: "+currentBucket); } else { refillProjections.add(lastRefill); } } } // send the new projections and the old projections to the Comparator // the comparator will rescind the old and publish the new projections myComparator.compareRefillProjections(refillProjections, oldProjections, anInventory); if (thePG.getIsLevel2()) { setTargetForProjectionPeriod(thePG, 0, thePG.getInitialLevel()); } } }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/55d467c136e59169da193094a0aef4300b3478c2/RefillProjectionGenerator.java/clean/bbn/src/org/cougaar/logistics/plugin/inventory/RefillProjectionGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 4604, 2355, 55, 697, 14789, 87, 12, 2532, 358, 19370, 382, 616, 2401, 16, 4766, 2398, 509, 4681, 1398, 1144, 16, 1525, 20706, 2355, 55, 697, 16, 9944, 565, 13359, 3120, 3399, 5559, 13, 288, 565, 2407, 1278, 737, 14789, 87, 273, 394, 2407, 5621, 565, 2407, 1592, 14789, 87, 273, 394, 2407, 5621, 565, 4498, 11374, 2360, 273, 358, 19370, 382, 616, 2401, 18, 9838, 5621, 565, 1323, 261, 9096, 2360, 18, 5332, 2134, 10756, 288, 1377, 368, 2424, 596, 326, 1592, 471, 394, 8106, 87, 364, 326, 1142, 24835, 1377, 1278, 737, 14789, 87, 18, 8507, 5621, 1377, 1592, 14789, 87, 18, 8507, 5621, 1377, 24835, 392, 15059, 273, 261, 15059, 13, 11374, 2360, 18, 4285, 5621, 1377, 1827, 4287, 15059, 18679, 326, 18679, 273, 261, 1343, 4287, 15059, 18679, 13, 304, 15059, 18, 3639, 1623, 1290, 1396, 1114, 12, 1343, 4287, 15059, 18679, 18, 1106, 1769, 5375, 368, 1937, 813, 353, 326, 787, 813, 434, 326, 13086, 12370, 1377, 1525, 787, 4245, 273, 326, 18679, 18, 588, 13649, 5621, 1377, 309, 12, 1937, 4245, 411, 13086, 3773, 18, 588, 1957, 737, 13649, 10756, 288, 3639, 787, 4245, 273, 13086, 3773, 18, 588, 1957, 737, 13649, 5621, 1377, 289, 5411, 1525, 2037, 273, 13086, 3773, 18, 2972, 28512, 5621, 1377, 309, 261, 3338, 405, 787, 4245, 13, 288, 202, 225, 368, 1937, 4245, 273, 2037, 31, 202, 225, 368, 30432, 300, 4494, 716, 4591, 19966, 326, 1592, 20939, 23653, 316, 326, 8854, 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, 4604, 2355, 55, 697, 14789, 87, 12, 2532, 358, 19370, 382, 616, 2401, 16, 4766, 2398, 509, 4681, 1398, 1144, 16, 1525, 20706, 2355, 55, 697, 16, 9944, 565, 13359, 3120, 3399, 5559, 13, 288, 565, 2407, 1278, 737, 14789, 87, 273, 394, 2407, 5621, 565, 2407, 1592, 14789, 87, 273, 394, 2407, 5621, 565, 4498, 11374, 2360, 273, 358, 19370, 382, 616, 2401, 18, 9838, 5621, 565, 1323, 261, 9096, 2360, 18, 5332, 2134, 10756, 288, 1377, 368, 2424, 596, 326, 1592, 471, 394, 8106, 87, 364, 326, 1142, 24835, 1377, 1278, 737, 14789, 87, 18, 8507, 5621, 1377, 1592, 14789, 87, 18, 8507, 5621, 1377, 24835, 392, 15059, 273, 261, 15059, 13, 11374, 2360, 2 ]
private void deactivatePart(IWorkbenchPart part, boolean switchActions, boolean switchActionsForced) {
private void deactivatePart(IWorkbenchPart part) {
private void deactivatePart(IWorkbenchPart part, boolean switchActions, boolean switchActionsForced) { if (part != null) { PartSite site = (PartSite)part.getSite(); site.getPane().showFocus(false); if (switchActions) { SubActionBars bars = (SubActionBars)site.getActionBars(); bars.deactivate(switchActionsForced); } }}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/686c4616f9a914bdf7210a54803a9e230244084e/WorkbenchPage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 18790, 1988, 12, 45, 2421, 22144, 1988, 1087, 16, 1250, 1620, 6100, 16, 1250, 1620, 6100, 1290, 3263, 13, 288, 202, 430, 261, 2680, 480, 446, 13, 288, 202, 202, 1988, 4956, 2834, 273, 261, 1988, 4956, 13, 2680, 18, 588, 4956, 5621, 202, 202, 4256, 18, 588, 8485, 7675, 4500, 9233, 12, 5743, 1769, 202, 202, 430, 261, 9610, 6100, 13, 288, 1082, 202, 1676, 1803, 5190, 87, 22252, 273, 261, 1676, 1803, 5190, 87, 13, 4256, 18, 588, 1803, 5190, 87, 5621, 1082, 202, 13518, 18, 323, 10014, 12, 9610, 6100, 1290, 3263, 1769, 202, 202, 97, 202, 9090, 2, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 918, 18790, 1988, 12, 45, 2421, 22144, 1988, 1087, 16, 1250, 1620, 6100, 16, 1250, 1620, 6100, 1290, 3263, 13, 288, 202, 430, 261, 2680, 480, 446, 13, 288, 202, 202, 1988, 4956, 2834, 273, 261, 1988, 4956, 13, 2680, 18, 588, 4956, 5621, 202, 202, 4256, 18, 588, 8485, 7675, 4500, 9233, 12, 5743, 1769, 202, 202, 430, 261, 9610, 6100, 13, 288, 1082, 202, 1676, 1803, 5190, 87, 22252, 273, 261, 1676, 1803, 5190, 87, 13, 4256, 18, 588, 1803, 5190, 87, 5621, 1082, 202, 13518, 18, 323, 10014, 12, 9610, 6100, 1290, 3263, 1769, 202, 202, 97, 202, 9090, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gradePoint = new Integer((int)new Double(gradePoint).doubleValue()).toString();
gradePoint = new Double(gradePoint).toString();
public String processDfMsgGrd() { selectedAssign = "Default_0"; gradebookScore = ""; gradeComment = ""; try { GradebookService gradebookService = (org.sakaiproject.service.gradebook.shared.GradebookService) ComponentManager.get("org.sakaiproject.service.gradebook.GradebookService"); if(selectedMessage.getMessage().getGradeAssignmentName() !=null && selectedMessage.getMessage().getGradeAssignmentName().trim().length()>0) { if((gradebookService.getAssignmentScore(ToolManager.getCurrentPlacement().getContext(), selectedMessage.getMessage().getGradeAssignmentName(), UserDirectoryService.getUser(selectedMessage.getMessage().getAuthor()).getId())) != null) { gradePoint = (gradebookService.getAssignmentScore(ToolManager.getCurrentPlacement().getContext(), selectedMessage.getMessage().getGradeAssignmentName(), UserDirectoryService.getUser(selectedMessage.getMessage().getAuthor()).getId())).toString(); gradePoint = new Integer((int)new Double(gradePoint).doubleValue()).toString(); gradeComment = selectedMessage.getMessage().getGradeComment(); String thisGradeAssign = selectedMessage.getMessage().getGradeAssignmentName(); setSelectedAssignForMessage(thisGradeAssign); } } else if(selectedTopic.getTopic().getDefaultAssignName() != null && selectedTopic.getTopic().getDefaultAssignName().trim().length() > 0) { if((gradebookService.getAssignmentScore(ToolManager.getCurrentPlacement().getContext(), selectedTopic.getTopic().getDefaultAssignName(), UserDirectoryService.getUser(selectedMessage.getMessage().getAuthor()).getId())) != null) { gradePoint = (gradebookService.getAssignmentScore(ToolManager.getCurrentPlacement().getContext(), selectedTopic.getTopic().getDefaultAssignName(), UserDirectoryService.getUser(selectedMessage.getMessage().getAuthor()).getId())).toString(); gradePoint = new Integer((int)new Double(gradePoint).doubleValue()).toString(); String thisGradeAssign = selectedTopic.getTopic().getDefaultAssignName(); setSelectedAssignForMessage(thisGradeAssign); } else { gradePoint = ""; String thisGradeAssign = selectedTopic.getTopic().getDefaultAssignName(); setSelectedAssignForMessage(thisGradeAssign); } } else if(selectedForum.getForum().getDefaultAssignName() != null && selectedForum.getForum().getDefaultAssignName().trim().length() > 0) { if( (gradebookService.getAssignmentScore(ToolManager.getCurrentPlacement().getContext(), selectedForum.getForum().getDefaultAssignName(), UserDirectoryService.getUser(selectedMessage.getMessage().getAuthor()).getId())) != null) { gradePoint = (gradebookService.getAssignmentScore(ToolManager.getCurrentPlacement().getContext(), selectedForum.getForum().getDefaultAssignName(), UserDirectoryService.getUser(selectedMessage.getMessage().getAuthor()).getId())).toString(); gradePoint = new Integer((int)new Double(gradePoint).doubleValue()).toString(); String thisGradeAssign = selectedForum.getForum().getDefaultAssignName(); setSelectedAssignForMessage(thisGradeAssign); } else { gradePoint = ""; String thisGradeAssign = selectedTopic.getTopic().getDefaultAssignName(); setSelectedAssignForMessage(thisGradeAssign); } } } catch(Exception e) { LOG.error("processDfMsgGrd in DiscussionFOrumTool - " + e); e.printStackTrace(); return null; } return "dfMsgGrade"; }
52248 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52248/e5c0a9f6afe5e459f8ccc752e319486188263f3a/DiscussionForumTool.java/clean/messageforums-app/src/java/org/sakaiproject/tool/messageforums/DiscussionForumTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1207, 40, 74, 3332, 43, 13623, 1435, 225, 288, 565, 3170, 4910, 273, 315, 1868, 67, 20, 14432, 377, 28073, 7295, 273, 1408, 31, 377, 7324, 4469, 273, 1408, 31, 565, 775, 565, 288, 1377, 10812, 323, 3618, 1179, 28073, 1179, 273, 261, 3341, 18, 87, 581, 69, 625, 28290, 18, 3278, 18, 3994, 3618, 18, 11574, 18, 14571, 323, 3618, 1179, 13, 4202, 5435, 1318, 18, 588, 2932, 3341, 18, 87, 581, 69, 625, 28290, 18, 3278, 18, 3994, 3618, 18, 14571, 323, 3618, 1179, 8863, 4202, 309, 12, 8109, 1079, 18, 24906, 7675, 588, 14571, 323, 7729, 461, 1435, 480, 2011, 597, 6647, 3170, 1079, 18, 24906, 7675, 588, 14571, 323, 7729, 461, 7675, 5290, 7675, 2469, 1435, 34, 20, 13, 1377, 288, 3639, 309, 12443, 3994, 3618, 1179, 18, 588, 7729, 7295, 12, 6364, 1318, 18, 588, 3935, 12420, 7675, 29120, 9334, 2868, 3170, 1079, 18, 24906, 7675, 588, 14571, 323, 7729, 461, 9334, 2868, 2177, 2853, 1179, 18, 588, 1299, 12, 8109, 1079, 18, 24906, 7675, 588, 3594, 1435, 2934, 26321, 1435, 3719, 480, 446, 13, 540, 288, 6647, 7324, 2148, 273, 261, 3994, 3618, 1179, 18, 588, 7729, 7295, 12, 6364, 1318, 18, 588, 3935, 12420, 7675, 29120, 9334, 7734, 3170, 1079, 18, 24906, 7675, 588, 14571, 323, 7729, 461, 9334, 7734, 2177, 2853, 1179, 18, 588, 1299, 12, 8109, 1079, 18, 24906, 7675, 588, 3594, 1435, 2934, 26321, 10756, 2934, 10492, 5621, 1850, 7324, 2148, 273, 394, 3698, 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, 1207, 40, 74, 3332, 43, 13623, 1435, 225, 288, 565, 3170, 4910, 273, 315, 1868, 67, 20, 14432, 377, 28073, 7295, 273, 1408, 31, 377, 7324, 4469, 273, 1408, 31, 565, 775, 565, 288, 1377, 10812, 323, 3618, 1179, 28073, 1179, 273, 261, 3341, 18, 87, 581, 69, 625, 28290, 18, 3278, 18, 3994, 3618, 18, 11574, 18, 14571, 323, 3618, 1179, 13, 4202, 5435, 1318, 18, 588, 2932, 3341, 18, 87, 581, 69, 625, 28290, 18, 3278, 18, 3994, 3618, 18, 14571, 323, 3618, 1179, 8863, 4202, 309, 12, 8109, 1079, 18, 24906, 7675, 588, 14571, 323, 7729, 461, 1435, 480, 2011, 597, 6647, 3170, 1079, 18, 24906, 7675, 588, 14571, 323, 7729, 461, 7675, 2 ]
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID();
public quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { quickfix.field.TradingSessionID value = new quickfix.field.TradingSessionID();
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/buggy/src/java/src/quickfix/fix44/Quote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 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 ]
new Pair("java.util.Date", "java.lang.String"), "org.eclipse.core.databinding.conversion.ConvertDate2String");
new Pair("java.util.Date", "java.lang.String"), "org.eclipse.core.databinding.conversion.ConvertDate2String");
private Map getConverterMap() { // using string-based lookup avoids loading of too many classes if (converterMap == null) { converterMap = new HashMap(); converterMap .put( new Pair("java.util.Date", "java.lang.String"), "org.eclipse.core.databinding.conversion.ConvertDate2String"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.math.BigDecimal"), "org.eclipse.core.databinding.conversion.ConvertString2BigDecimal"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Boolean"), "org.eclipse.core.databinding.conversion.ConvertString2Boolean"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Byte"), "org.eclipse.core.databinding.conversion.ConvertString2Byte"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Character"), "org.eclipse.core.databinding.conversion.ConvertString2Character"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.util.Date"), "org.eclipse.core.databinding.conversion.ConvertString2Date"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Double"), "org.eclipse.core.databinding.conversion.ConvertString2Double"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Float"), "org.eclipse.core.databinding.conversion.ConvertString2Float"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Integer"), "org.eclipse.core.databinding.conversion.ConvertString2Integer"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Long"), "org.eclipse.core.databinding.conversion.ConvertString2Long"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.String", "java.lang.Short"), "org.eclipse.core.databinding.conversion.ConvertString2Short"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ converterMap .put( new Pair("java.lang.Object", "java.lang.String"), "org.eclipse.core.databinding.conversion.ToStringConverter"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ // Integer.TYPE converterMap .put( new Pair( "java.lang.String", INTEGER_TYPE), "org.eclipse.core.databinding.conversion.ConvertString2IntegerPrimitive"); //$NON-NLS-1$ //$NON-NLS-2$ converterMap .put( new Pair( INTEGER_TYPE, "java.lang.Integer"), new IdentityConverter(Integer.TYPE, Integer.class)); //$NON-NLS-1$ converterMap .put( new Pair( INTEGER_TYPE, "java.lang.String"), new ToStringConverter(Integer.TYPE)); //$NON-NLS-1$ converterMap .put( new Pair( INTEGER_TYPE, "java.lang.Object"), new IdentityConverter(Integer.TYPE, Object.class)); //$NON-NLS-1$ // Byte.TYPE converterMap .put( new Pair( "java.lang.String", BYTE_TYPE), "org.eclipse.core.databinding.conversion.ConvertString2BytePrimitive"); //$NON-NLS-1$ //$NON-NLS-2$ converterMap .put( new Pair( BYTE_TYPE, "java.lang.Byte"), new IdentityConverter(Byte.TYPE, Byte.class)); //$NON-NLS-1$ converterMap .put( new Pair( BYTE_TYPE, "java.lang.String"), new ToStringConverter(Byte.TYPE)); //$NON-NLS-1$ converterMap .put( new Pair( BYTE_TYPE, "java.lang.Object"), new IdentityConverter(Byte.TYPE, Object.class)); //$NON-NLS-1$ // Double.TYPE converterMap .put( new Pair( "java.lang.String", DOUBLE_TYPE), "org.eclipse.core.databinding.conversion.ConvertString2DoublePrimitive"); //$NON-NLS-1$ //$NON-NLS-2$ converterMap .put( new Pair( DOUBLE_TYPE, "java.lang.Double"), new IdentityConverter(Double.TYPE, Double.class)); //$NON-NLS-1$ converterMap .put( new Pair( DOUBLE_TYPE, "java.lang.String"), new ToStringConverter(Double.TYPE)); //$NON-NLS-1$ converterMap .put( new Pair( DOUBLE_TYPE, "java.lang.Object"), new IdentityConverter(Double.TYPE, Object.class)); //$NON-NLS-1$ // Boolean.TYPE converterMap .put( new Pair( "java.lang.String", BOOLEAN_TYPE), "org.eclipse.core.databinding.conversion.ConvertString2BooleanPrimitive"); //$NON-NLS-1$ //$NON-NLS-2$ converterMap .put( new Pair( BOOLEAN_TYPE, "java.lang.Boolean"), new IdentityConverter(Boolean.TYPE, Boolean.class)); //$NON-NLS-1$ converterMap .put( new Pair( BOOLEAN_TYPE, "java.lang.String"), new ToStringConverter(Boolean.TYPE)); //$NON-NLS-1$ converterMap .put( new Pair( BOOLEAN_TYPE, "java.lang.Object"), new IdentityConverter(Boolean.TYPE, Object.class)); //$NON-NLS-1$ // Float.TYPE converterMap .put( new Pair( "java.lang.String", FLOAT_TYPE), "org.eclipse.core.databinding.conversion.ConvertString2FloatPrimitive"); //$NON-NLS-1$ //$NON-NLS-2$ converterMap .put( new Pair( FLOAT_TYPE, "java.lang.Float"), new IdentityConverter(Float.TYPE, Float.class)); //$NON-NLS-1$ converterMap .put( new Pair( FLOAT_TYPE, "java.lang.String"), new ToStringConverter(Float.TYPE)); //$NON-NLS-1$ converterMap .put( new Pair( FLOAT_TYPE, "java.lang.Object"), new IdentityConverter(Float.TYPE, Object.class)); //$NON-NLS-1$ // Short.TYPE converterMap .put( new Pair( "java.lang.String", SHORT_TYPE), "org.eclipse.core.databinding.conversion.ConvertString2ShortPrimitive"); //$NON-NLS-1$ //$NON-NLS-2$ converterMap .put( new Pair( SHORT_TYPE, "java.lang.Short"), new IdentityConverter(Short.TYPE, Short.class)); //$NON-NLS-1$ converterMap .put( new Pair( SHORT_TYPE, "java.lang.String"), new ToStringConverter(Short.TYPE)); //$NON-NLS-1$ converterMap .put( new Pair( SHORT_TYPE, "java.lang.Object"), new IdentityConverter(Short.TYPE, Object.class)); //$NON-NLS-1$ // Long.TYPE converterMap .put( new Pair( "java.lang.String", LONG_TYPE), "org.eclipse.core.databinding.conversion.ConvertString2LongPrimitive"); //$NON-NLS-1$ //$NON-NLS-2$ converterMap .put( new Pair( LONG_TYPE, "java.lang.Long"), new IdentityConverter(Long.TYPE, Long.class)); //$NON-NLS-1$ converterMap .put( new Pair( LONG_TYPE, "java.lang.String"), new ToStringConverter(Long.TYPE)); //$NON-NLS-1$ converterMap .put( new Pair( LONG_TYPE, "java.lang.Object"), new IdentityConverter(Long.TYPE, Object.class)); //$NON-NLS-1$ } return converterMap; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/646de6c1228ca0820a97e225df84d75e3993e272/DefaultBindSupportFactory.java/buggy/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/DefaultBindSupportFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1635, 31173, 863, 1435, 288, 202, 202, 759, 1450, 533, 17, 12261, 3689, 24192, 7153, 434, 4885, 4906, 3318, 202, 202, 430, 261, 15747, 863, 422, 446, 13, 288, 1082, 202, 15747, 863, 273, 394, 4317, 5621, 1082, 202, 15747, 863, 6862, 202, 18, 458, 12, 6862, 1082, 202, 2704, 8599, 2932, 6290, 18, 1367, 18, 1626, 3113, 315, 6290, 18, 4936, 18, 780, 6, 3631, 315, 3341, 18, 20416, 18, 3644, 18, 3404, 378, 728, 310, 18, 20990, 18, 2723, 1626, 22, 780, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 4329, 3993, 17, 5106, 17, 23, 8, 1082, 202, 15747, 863, 6862, 202, 18, 458, 12, 6862, 1082, 202, 2704, 8599, 2932, 6290, 18, 4936, 18, 780, 3113, 315, 6290, 18, 15949, 18, 29436, 6, 3631, 315, 3341, 18, 20416, 18, 3644, 18, 3404, 378, 728, 310, 18, 20990, 18, 2723, 780, 22, 29436, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 4329, 3993, 17, 5106, 17, 23, 8, 1082, 202, 15747, 863, 6862, 202, 18, 458, 12, 6862, 1082, 202, 2704, 8599, 2932, 6290, 18, 4936, 18, 780, 3113, 315, 6290, 18, 4936, 18, 5507, 6, 3631, 315, 3341, 18, 20416, 18, 3644, 18, 3404, 378, 728, 310, 18, 20990, 18, 2723, 780, 22, 5507, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 4329, 3993, 17, 5106, 17, 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, 1635, 31173, 863, 1435, 288, 202, 202, 759, 1450, 533, 17, 12261, 3689, 24192, 7153, 434, 4885, 4906, 3318, 202, 202, 430, 261, 15747, 863, 422, 446, 13, 288, 1082, 202, 15747, 863, 273, 394, 4317, 5621, 1082, 202, 15747, 863, 6862, 202, 18, 458, 12, 6862, 1082, 202, 2704, 8599, 2932, 6290, 18, 1367, 18, 1626, 3113, 315, 6290, 18, 4936, 18, 780, 6, 3631, 315, 3341, 18, 20416, 18, 3644, 18, 3404, 378, 728, 310, 18, 20990, 18, 2723, 1626, 22, 780, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 4329, 3993, 17, 5106, 17, 23, 8, 1082, 202, 15747, 863, 6862, 202, 18, 458, 12, 6862, 2 ]
}
edit.setEnabled(index != -1); }
private void updateButtons() { int index = list.getSelectedIndex(); remove.setEnabled(index != -1 && listModel.getSize() != 0); moveUp.setEnabled(index > 0); moveDown.setEnabled(index != -1 && index != listModel.getSize() - 1); }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/274b088cf2cacceb5e8d408ec836f27ee7e81fe7/ToolBarOptionPane.java/clean/org/gjt/sp/jedit/options/ToolBarOptionPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 14388, 1435, 202, 95, 202, 202, 474, 770, 273, 666, 18, 588, 7416, 1016, 5621, 202, 202, 4479, 18, 542, 1526, 12, 1615, 480, 300, 21, 597, 666, 1488, 18, 588, 1225, 1435, 480, 374, 1769, 202, 202, 8501, 1211, 18, 542, 1526, 12, 1615, 405, 374, 1769, 202, 202, 8501, 4164, 18, 542, 1526, 12, 1615, 480, 300, 21, 597, 770, 480, 666, 1488, 18, 588, 1225, 1435, 300, 404, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 14388, 1435, 202, 95, 202, 202, 474, 770, 273, 666, 18, 588, 7416, 1016, 5621, 202, 202, 4479, 18, 542, 1526, 12, 1615, 480, 300, 21, 597, 666, 1488, 18, 588, 1225, 1435, 480, 374, 1769, 202, 202, 8501, 1211, 18, 542, 1526, 12, 1615, 405, 374, 1769, 202, 202, 8501, 4164, 18, 542, 1526, 12, 1615, 480, 300, 21, 597, 770, 480, 666, 1488, 18, 588, 1225, 1435, 300, 404, 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 ]
});
}, ModalityState.NON_MMODAL);
public void fileTypesChanged(FileTypeEvent e){ // this invokeLater guaranties that this code will be invoked after // PSI gets the same event. ApplicationManager.getApplication().invokeLater(new Runnable(){ public void run(){ // [vova] It's very important to pass null as project. Each TODO view shows own progress // window. It causes frame switching. final ProgressWindow progressWindow=new ProgressWindow(false,null); progressWindow.setTitle("Looking for TODOs..."); progressWindow.setText("Please wait..."); final Runnable process=new Runnable(){ public void run(){ if (myAllTodos == null) return; ApplicationManager.getApplication().runReadAction( new Runnable(){ public void run(){ myAllTodos.rebuildCache(); myCurrentFileTodos.rebuildCache(); } } ); ApplicationManager.getApplication().invokeLater(new Runnable(){ public void run(){ myAllTodos.updateTree(); myCurrentFileTodos.updateTree(); } }, ModalityState.NON_MMODAL); } }; Thread thread=new Thread( new Runnable(){ public void run(){ ProgressManager.getInstance().runProcess(process,progressWindow); } }, "Todo finder" ); thread.start(); } }); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/5ee47b0e2b7b518474087287f2e5f65e14dd6ab1/TodoView.java/clean/source/com/intellij/ide/todo/TodoView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 585, 2016, 5033, 12, 28941, 1133, 425, 15329, 1377, 368, 333, 4356, 20607, 3058, 297, 970, 606, 716, 333, 981, 903, 506, 8187, 1839, 1377, 368, 453, 2320, 5571, 326, 1967, 871, 18, 1377, 4257, 1318, 18, 588, 3208, 7675, 14407, 20607, 12, 2704, 10254, 1435, 95, 5411, 1071, 918, 1086, 1435, 95, 2868, 368, 306, 90, 16739, 65, 2597, 1807, 8572, 10802, 358, 1342, 446, 487, 1984, 18, 8315, 2660, 1476, 17975, 4953, 4007, 2868, 368, 2742, 18, 2597, 14119, 2623, 30882, 18, 2868, 727, 10980, 3829, 4007, 3829, 33, 2704, 10980, 3829, 12, 5743, 16, 2011, 1769, 2868, 4007, 3829, 18, 542, 4247, 2932, 9794, 310, 364, 2660, 87, 7070, 1769, 2868, 4007, 3829, 18, 542, 1528, 2932, 8496, 2529, 7070, 1769, 2868, 727, 10254, 1207, 33, 2704, 10254, 1435, 95, 7734, 1071, 918, 1086, 1435, 95, 5375, 309, 261, 4811, 1595, 56, 369, 538, 422, 446, 13, 327, 31, 5375, 4257, 1318, 18, 588, 3208, 7675, 2681, 1994, 1803, 12, 10792, 394, 10254, 1435, 95, 8227, 1071, 918, 1086, 1435, 95, 13491, 3399, 1595, 56, 369, 538, 18, 266, 3510, 1649, 5621, 13491, 3399, 3935, 812, 56, 369, 538, 18, 266, 3510, 1649, 5621, 8227, 289, 10792, 289, 5375, 11272, 5375, 4257, 1318, 18, 588, 3208, 7675, 14407, 20607, 12, 2704, 10254, 1435, 95, 4766, 565, 1071, 918, 1086, 1435, 95, 4766, 1377, 3399, 1595, 56, 369, 538, 18, 2725, 2471, 5621, 4766, 1377, 3399, 3935, 812, 56, 369, 538, 18, 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, 585, 2016, 5033, 12, 28941, 1133, 425, 15329, 1377, 368, 333, 4356, 20607, 3058, 297, 970, 606, 716, 333, 981, 903, 506, 8187, 1839, 1377, 368, 453, 2320, 5571, 326, 1967, 871, 18, 1377, 4257, 1318, 18, 588, 3208, 7675, 14407, 20607, 12, 2704, 10254, 1435, 95, 5411, 1071, 918, 1086, 1435, 95, 2868, 368, 306, 90, 16739, 65, 2597, 1807, 8572, 10802, 358, 1342, 446, 487, 1984, 18, 8315, 2660, 1476, 17975, 4953, 4007, 2868, 368, 2742, 18, 2597, 14119, 2623, 30882, 18, 2868, 727, 10980, 3829, 4007, 3829, 33, 2704, 10980, 3829, 12, 5743, 16, 2011, 1769, 2868, 4007, 3829, 18, 542, 4247, 2932, 9794, 310, 364, 2660, 87, 7070, 1769, 2868, 4007, 3829, 2 ]
if (null == ((IImageContent) image.getContent()).getData())
if (null == imageContent.getData())
protected void drawImage( IImageArea image ) { Image img = null; cb.saveState(); ContainerPosition curPos; if ( !containerStack.isEmpty() ) curPos = (ContainerPosition)containerStack.peek(); else curPos = new ContainerPosition(0, 0); int imageX = curPos.x + image.getX(); int imageY = curPos.y + image.getY(); try { //lookup the source type of the image area switch (((IImageContent) image.getContent()).getImageSource()) { case IImageContent.IMAGE_FILE: case IImageContent.IMAGE_URI: if (null == ((IImageContent) image.getContent()).getURI()) return; img = Image.getInstance(((IImageContent) image.getContent()).getURI()); break; case IImageContent.IMAGE_NAME: case IImageContent.IMAGE_EXPRESSION: if (null == ((IImageContent) image.getContent()).getData()) return; img = Image.getInstance(((IImageContent) image.getContent()) .getData()); } //img.setDpi(5*img.getDpiX(),5*img.getDpiY()); // add the image to the given contentByte cb.addImage(img, pdfMeasure(image.getWidth()), 0f, 0f, pdfMeasure(image.getHeight()), layoutAreaX2PDF(imageX), layoutAreaY2PDF(imageY, image.getHeight())); } catch (BadElementException bee) { logger.log( Level.WARNING, bee.getMessage( ), bee ); } catch (IOException ioe) { logger.log( Level.WARNING, ioe.getMessage( ), ioe ); } catch (DocumentException de) { logger.log( Level.WARNING, de.getMessage( ), de ); } catch (Throwable t) { logger.log( Level.WARNING, t.getMessage( ), t ); } cb.restoreState(); //Check if itself is the destination of a bookmark. //if so, make a bookmark; if not, do nothing makeBookmark(image, curPos); //handle hyper-link action handleHyperlinkAction(image, curPos); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a24d9278aeb5c2dd20e590ec3eb185276d8cc254/PDFEmitter.java/buggy/engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 25783, 12, 467, 2040, 5484, 1316, 262, 202, 202, 95, 9506, 202, 2040, 3774, 273, 446, 31, 1082, 202, 7358, 18, 5688, 1119, 5621, 1082, 202, 2170, 2555, 662, 1616, 31, 1082, 202, 430, 261, 401, 3782, 2624, 18, 291, 1921, 1435, 262, 9506, 202, 1397, 1616, 273, 261, 2170, 2555, 13, 3782, 2624, 18, 347, 3839, 5621, 9506, 202, 12107, 4697, 202, 1397, 1616, 273, 394, 4039, 2555, 12, 20, 16, 374, 1769, 1082, 202, 474, 1316, 60, 273, 662, 1616, 18, 92, 397, 1316, 18, 588, 60, 5621, 1082, 202, 474, 1316, 61, 273, 662, 1616, 18, 93, 397, 1316, 18, 588, 61, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 759, 8664, 326, 1084, 618, 434, 326, 1316, 5091, 9506, 202, 9610, 261, 12443, 45, 2040, 1350, 13, 1316, 18, 588, 1350, 1435, 2934, 588, 2040, 1830, 10756, 9506, 202, 95, 9506, 202, 3593, 467, 2040, 1350, 18, 13603, 67, 3776, 30, 9506, 202, 3593, 467, 2040, 1350, 18, 13603, 67, 3098, 30, 6862, 202, 430, 261, 2011, 422, 14015, 45, 2040, 1350, 13, 1316, 18, 588, 1350, 1435, 2934, 588, 3098, 10756, 25083, 202, 2463, 31, 6862, 202, 6081, 273, 3421, 18, 588, 1442, 12443, 12, 45, 2040, 1350, 13, 1316, 18, 588, 1350, 1435, 2934, 588, 3098, 10663, 6862, 202, 8820, 31, 9506, 202, 3593, 467, 2040, 1350, 18, 13603, 67, 1985, 30, 9506, 202, 3593, 467, 2040, 1350, 18, 13603, 67, 19111, 30, 6862, 202, 430, 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, 3196, 202, 1117, 918, 25783, 12, 467, 2040, 5484, 1316, 262, 202, 202, 95, 9506, 202, 2040, 3774, 273, 446, 31, 1082, 202, 7358, 18, 5688, 1119, 5621, 1082, 202, 2170, 2555, 662, 1616, 31, 1082, 202, 430, 261, 401, 3782, 2624, 18, 291, 1921, 1435, 262, 9506, 202, 1397, 1616, 273, 261, 2170, 2555, 13, 3782, 2624, 18, 347, 3839, 5621, 9506, 202, 12107, 4697, 202, 1397, 1616, 273, 394, 4039, 2555, 12, 20, 16, 374, 1769, 1082, 202, 474, 1316, 60, 273, 662, 1616, 18, 92, 397, 1316, 18, 588, 60, 5621, 1082, 202, 474, 1316, 61, 273, 662, 1616, 18, 93, 397, 1316, 18, 588, 61, 5621, 1082, 202, 698, 1082, 202, 95, 9506, 202, 759, 2 ]
if (container.isArchive()) {
if (container instanceof TaskArchive) {
private boolean selectCategory(AbstractTaskContainer container) { if (filter(container)) { return false; } if (container.isArchive()) { for (ITask task : container.getChildren()) { if (contentTaskFilter.shouldAlwaysShow(task)) { ITask t = MylarTaskListPlugin.getTaskListManager().getTaskForHandle(task.getHandleIdentifier(), false); if (t == null) return true; } } return false; } Set<ITask> children = container.getChildren(); if (children.size() == 0) { return true; } for (ITaskListElement element : children) { if (!filter(element)) { return true; } } return false; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/94c21edbc39556b8dc174332efba8474912627bb/TaskListContentProvider.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 2027, 4457, 12, 7469, 2174, 2170, 1478, 13, 288, 202, 202, 430, 261, 2188, 12, 3782, 3719, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 430, 261, 3782, 18, 291, 7465, 10756, 288, 1082, 202, 1884, 261, 1285, 835, 1562, 294, 1478, 18, 588, 4212, 10756, 288, 9506, 202, 430, 261, 1745, 2174, 1586, 18, 13139, 18806, 5706, 12, 4146, 3719, 288, 6862, 202, 1285, 835, 268, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 1290, 3259, 12, 4146, 18, 588, 3259, 3004, 9334, 6862, 1082, 202, 5743, 1769, 6862, 202, 430, 261, 88, 422, 446, 13, 25083, 202, 2463, 638, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 2463, 629, 31, 202, 202, 97, 9506, 202, 694, 32, 1285, 835, 34, 2325, 273, 1478, 18, 588, 4212, 5621, 202, 202, 430, 261, 5906, 18, 1467, 1435, 422, 374, 13, 288, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 1884, 261, 1285, 835, 682, 1046, 930, 294, 2325, 13, 288, 1082, 202, 430, 16051, 2188, 12, 2956, 3719, 288, 9506, 202, 2463, 638, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 2027, 4457, 12, 7469, 2174, 2170, 1478, 13, 288, 202, 202, 430, 261, 2188, 12, 3782, 3719, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 202, 430, 261, 3782, 18, 291, 7465, 10756, 288, 1082, 202, 1884, 261, 1285, 835, 1562, 294, 1478, 18, 588, 4212, 10756, 288, 9506, 202, 430, 261, 1745, 2174, 1586, 18, 13139, 18806, 5706, 12, 4146, 3719, 288, 6862, 202, 1285, 835, 268, 273, 8005, 7901, 2174, 682, 3773, 18, 588, 2174, 682, 1318, 7675, 588, 2174, 1290, 3259, 12, 4146, 18, 588, 3259, 3004, 9334, 6862, 1082, 202, 5743, 1769, 6862, 202, 430, 261, 88, 422, 446, 13, 25083, 202, 2463, 638, 31, 9506, 202, 97, 1082, 2 ]
public void actionPerformed (ActionEvent ae) { _dialog.dispose(); }
public void actionPerformed (ActionEvent ae) { _dialog.dispose(); }
public void actionPerformed (ActionEvent ae) { _dialog.dispose(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/f36b72faed8290534c0d76809ee0a1b473552163/HistorySaveDialog.java/buggy/drjava/src/edu/rice/cs/drjava/ui/HistorySaveDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 26100, 261, 1803, 1133, 14221, 13, 288, 3639, 389, 12730, 18, 2251, 4150, 5621, 1377, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 job == null || job.isSystem();
if(job == null) return true; return !debug && job.isSystem();
private boolean isNonDisplayableJob(Job job) { return job == null || job.isSystem(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fc11b7764c546f59b78b67198261820c401aeb86/ProgressContentProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 353, 3989, 4236, 429, 2278, 12, 2278, 1719, 13, 288, 202, 202, 2463, 1719, 422, 446, 747, 1719, 18, 291, 3163, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 353, 3989, 4236, 429, 2278, 12, 2278, 1719, 13, 288, 202, 202, 2463, 1719, 422, 446, 747, 1719, 18, 291, 3163, 5621, 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 ]
if (edge instanceof MRelationship) { return CoreHelper.getHelper().getDestination((MRelationship)edge);
if (edge instanceof MRelationship) { return CoreHelper.getHelper().getDestination((MRelationship) edge); } cat.debug("TODO getSourcePort"); return null;
public Object getDestPort(Object edge) { if (edge instanceof MRelationship) { return CoreHelper.getHelper().getDestination((MRelationship)edge); } cat.debug("TODO getSourcePort"); return null; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/ClassDiagramGraphModel.java/buggy/src_new/org/argouml/uml/diagram/static_structure/ClassDiagramGraphModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1033, 2343, 395, 2617, 12, 921, 3591, 13, 288, 565, 309, 261, 7126, 1276, 490, 8180, 13, 288, 3639, 327, 4586, 2276, 18, 588, 2276, 7675, 588, 5683, 12443, 49, 8180, 13, 7126, 1769, 565, 289, 565, 6573, 18, 4148, 2932, 6241, 7889, 2617, 8863, 565, 327, 446, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 2343, 395, 2617, 12, 921, 3591, 13, 288, 565, 309, 261, 7126, 1276, 490, 8180, 13, 288, 3639, 327, 4586, 2276, 18, 588, 2276, 7675, 588, 5683, 12443, 49, 8180, 13, 7126, 1769, 565, 289, 565, 6573, 18, 4148, 2932, 6241, 7889, 2617, 8863, 565, 327, 446, 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 ]
RubyArray ary = RubyArray.m_newArray(getRuby());
RubyArray ary = RubyArray.m_newArray(getRuby());
public RubyArray m_included_modules() { RubyArray ary = RubyArray.m_newArray(getRuby()); for (RubyModule p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p.isIncluded()) { ary.push(p.getRubyClass()); } } return ary; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 1076, 312, 67, 20405, 67, 6400, 1435, 288, 202, 202, 54, 10340, 1076, 11841, 273, 19817, 1076, 18, 81, 67, 2704, 1076, 12, 588, 54, 10340, 10663, 202, 202, 1884, 261, 54, 10340, 3120, 293, 273, 15172, 797, 5621, 293, 480, 446, 31, 293, 273, 293, 18, 588, 8051, 797, 10756, 288, 1082, 202, 430, 261, 84, 18, 291, 19323, 10756, 288, 9506, 202, 814, 18, 6206, 12, 84, 18, 588, 54, 10340, 797, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 11841, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 1076, 312, 67, 20405, 67, 6400, 1435, 288, 202, 202, 54, 10340, 1076, 11841, 273, 19817, 1076, 18, 81, 67, 2704, 1076, 12, 588, 54, 10340, 10663, 202, 202, 1884, 261, 54, 10340, 3120, 293, 273, 15172, 797, 5621, 293, 480, 446, 31, 293, 273, 293, 18, 588, 8051, 797, 10756, 288, 1082, 202, 430, 261, 84, 18, 291, 19323, 10756, 288, 9506, 202, 814, 18, 6206, 12, 84, 18, 588, 54, 10340, 797, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 11841, 31, 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 ]
t = (AffineTransform) t.createInverse();
t = t.createInverse();
protected void checkSelectGesture(GraphicsNodeEvent evt) { GraphicsNodeMouseEvent mevt = null; if (evt instanceof GraphicsNodeMouseEvent) { mevt = (GraphicsNodeMouseEvent) evt; } GraphicsNode source = evt.getGraphicsNode(); if ((source instanceof Selectable) && (mevt != null)) { Point2D p = new Point2D.Double(mevt.getX(), mevt.getY()); AffineTransform t = source.getGlobalTransform(); if (t == null) { t = new AffineTransform(); } else { try { t = (AffineTransform) t.createInverse(); } catch (NoninvertibleTransformException ni) { } } p = t.transform(p, null); if (isDeselectGesture(evt)) { if (selectionNode != null) selectionNode.getRoot() .removeTreeGraphicsNodeChangeListener(this); dispatchSelectionEvent( new SelectionEvent(null, SelectionEvent.SELECTION_CLEARED, null)); copyToClipboard(null); selectionNode = null; } else if (isSelectStartGesture(evt)) { if (selectionNode != source) { if (selectionNode != null) selectionNode.getRoot() .removeTreeGraphicsNodeChangeListener(this); if (source != null) source.getRoot() .addTreeGraphicsNodeChangeListener(this); } selectionNode = source; ((Selectable) source).selectAt(p.getX(), p.getY()); dispatchSelectionEvent( new SelectionEvent(null, SelectionEvent.SELECTION_STARTED, null)); } else if (isSelectEndGesture(evt)) { if (selectionNode != source) { if (selectionNode != null) selectionNode.getRoot() .removeTreeGraphicsNodeChangeListener(this); if (source != null) source.getRoot() .addTreeGraphicsNodeChangeListener(this); } selectionNode = source; ((Selectable) source).selectTo(p.getX(), p.getY()); Object oldSelection = getSelection(); Shape newShape = ((Selectable) source).getHighlightShape(); dispatchSelectionEvent( new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape)); copyToClipboard(oldSelection); } else if (isSelectContinueGesture(evt)) { if (selectionNode == source) { boolean result = ((Selectable) source).selectTo(p.getX(), p.getY()); if (result) { Shape newShape = ((Selectable) source).getHighlightShape(); dispatchSelectionEvent( new SelectionEvent(null, SelectionEvent.SELECTION_CHANGED, newShape)); } } } else if (isSelectAllGesture(evt)) { if (selectionNode != source) { if (selectionNode != null) selectionNode.getRoot() .removeTreeGraphicsNodeChangeListener(this); if (source != null) source.getRoot() .addTreeGraphicsNodeChangeListener(this); } selectionNode = source; ((Selectable) source).selectAll(p.getX(), p.getY()); Object oldSelection = getSelection(); Shape newShape = ((Selectable) source).getHighlightShape(); dispatchSelectionEvent( new SelectionEvent(oldSelection, SelectionEvent.SELECTION_DONE, newShape)); copyToClipboard(oldSelection); } } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/1738c7c3105d8c2ad8b1dd94e89bcbce7aa866f5/ConcreteTextSelector.java/clean/sources/org/apache/batik/gvt/text/ConcreteTextSelector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 866, 3391, 43, 16704, 12, 17558, 907, 1133, 6324, 13, 288, 3639, 16830, 907, 9186, 1133, 1791, 11734, 273, 446, 31, 3639, 309, 261, 73, 11734, 1276, 16830, 907, 9186, 1133, 13, 288, 5411, 1791, 11734, 273, 261, 17558, 907, 9186, 1133, 13, 6324, 31, 3639, 289, 3639, 16830, 907, 1084, 273, 6324, 18, 588, 17558, 907, 5621, 3639, 309, 14015, 3168, 1276, 6766, 429, 13, 597, 261, 3501, 11734, 480, 446, 3719, 288, 5411, 4686, 22, 40, 293, 273, 394, 4686, 22, 40, 18, 5265, 12, 3501, 11734, 18, 588, 60, 9334, 1791, 11734, 18, 588, 61, 10663, 5411, 23906, 558, 4059, 268, 273, 1084, 18, 588, 5160, 4059, 5621, 5411, 309, 261, 88, 422, 446, 13, 288, 7734, 268, 273, 394, 23906, 558, 4059, 5621, 5411, 289, 5411, 469, 288, 1171, 775, 288, 5397, 268, 273, 268, 18, 2640, 16376, 5621, 1171, 289, 1044, 261, 3989, 267, 1097, 1523, 4059, 503, 16398, 13, 288, 1171, 289, 5411, 289, 5411, 293, 273, 268, 18, 6547, 12, 84, 16, 446, 1769, 5411, 309, 261, 291, 6305, 13759, 43, 16704, 12, 73, 11734, 3719, 288, 7734, 309, 261, 10705, 907, 480, 446, 13, 10792, 4421, 907, 18, 588, 2375, 1435, 13491, 263, 4479, 2471, 17558, 907, 15744, 12, 2211, 1769, 7734, 3435, 6233, 1133, 12, 13491, 394, 12977, 1133, 12, 2011, 16, 27573, 12977, 1133, 18, 1090, 15445, 67, 23181, 37, 5879, 16, 27573, 446, 10019, 7734, 29817, 15339, 3752, 12, 2011, 1769, 7734, 4421, 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, 4750, 918, 866, 3391, 43, 16704, 12, 17558, 907, 1133, 6324, 13, 288, 3639, 16830, 907, 9186, 1133, 1791, 11734, 273, 446, 31, 3639, 309, 261, 73, 11734, 1276, 16830, 907, 9186, 1133, 13, 288, 5411, 1791, 11734, 273, 261, 17558, 907, 9186, 1133, 13, 6324, 31, 3639, 289, 3639, 16830, 907, 1084, 273, 6324, 18, 588, 17558, 907, 5621, 3639, 309, 14015, 3168, 1276, 6766, 429, 13, 597, 261, 3501, 11734, 480, 446, 3719, 288, 5411, 4686, 22, 40, 293, 273, 394, 4686, 22, 40, 18, 5265, 12, 3501, 11734, 18, 588, 60, 9334, 1791, 11734, 18, 588, 61, 10663, 5411, 23906, 558, 4059, 268, 273, 1084, 18, 588, 5160, 4059, 5621, 5411, 309, 261, 88, 422, 2 ]
paramGroup.addParameter( (IParameterDefnBase) currentElement );
paramGroup.addParameter( ( IParameterDefnBase ) currentElement );
public void visitParameterGroup( ParameterGroupHandle handle ) { ParameterGroupDefn paramGroup = new ParameterGroupDefn( ); paramGroup.setHandle( handle ); paramGroup.setParameterType( IParameterDefnBase.PARAMETER_GROUP ); paramGroup.setName( handle.getName( ) ); paramGroup.setDisplayName( handle.getDisplayName( ) ); paramGroup.setDisplayNameKey( handle.getDisplayNameKey( ) ); paramGroup.setHelpText( handle.getHelpText( ) ); paramGroup.setHelpTextKey( handle.getHelpTextKey( ) ); SlotHandle parameters = handle.getParameters( ); // set custom properties List properties = handle.getUserProperties( ); for ( int i = 0; i < properties.size( ); i++ ) { UserPropertyDefn p = (UserPropertyDefn) properties.get( i ); paramGroup.addUserProperty( p.getName( ), handle.getProperty( p .getName( ) ) ); } int size = parameters.getCount( ); for ( int n = 0; n < size; n++ ) { apply( parameters.get( n ) ); if ( currentElement != null ) { paramGroup.addParameter( (IParameterDefnBase) currentElement ); } } currentElement = paramGroup; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f00a46b07796c055e2a16e0f1243a9ebd4826670/EngineIRVisitor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 19094, 12, 5498, 1114, 3259, 1640, 262, 202, 95, 202, 202, 19094, 3262, 82, 579, 1114, 273, 394, 5498, 1114, 3262, 82, 12, 11272, 202, 202, 891, 1114, 18, 542, 3259, 12, 1640, 11272, 202, 202, 891, 1114, 18, 542, 28460, 12, 467, 1662, 3262, 82, 2171, 18, 9819, 67, 8468, 11272, 202, 202, 891, 1114, 18, 542, 461, 12, 1640, 18, 17994, 12, 262, 11272, 202, 202, 891, 1114, 18, 542, 20524, 12, 1640, 18, 588, 20524, 12, 262, 11272, 202, 202, 891, 1114, 18, 542, 20524, 653, 12, 1640, 18, 588, 20524, 653, 12, 262, 11272, 202, 202, 891, 1114, 18, 542, 6696, 1528, 12, 1640, 18, 588, 6696, 1528, 12, 262, 11272, 202, 202, 891, 1114, 18, 542, 6696, 1528, 653, 12, 1640, 18, 588, 6696, 1528, 653, 12, 262, 11272, 202, 202, 8764, 3259, 1472, 273, 1640, 18, 588, 2402, 12, 11272, 202, 202, 759, 444, 1679, 1790, 202, 202, 682, 1790, 273, 1640, 18, 588, 1299, 2297, 12, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1790, 18, 1467, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 1299, 1396, 3262, 82, 293, 273, 261, 1299, 1396, 3262, 82, 13, 1790, 18, 588, 12, 277, 11272, 1082, 202, 891, 1114, 18, 1289, 1299, 1396, 12, 293, 18, 17994, 12, 262, 16, 1640, 18, 588, 1396, 12, 293, 6862, 202, 18, 17994, 12, 262, 262, 11272, 202, 202, 97, 202, 202, 474, 963, 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, 3757, 19094, 12, 5498, 1114, 3259, 1640, 262, 202, 95, 202, 202, 19094, 3262, 82, 579, 1114, 273, 394, 5498, 1114, 3262, 82, 12, 11272, 202, 202, 891, 1114, 18, 542, 3259, 12, 1640, 11272, 202, 202, 891, 1114, 18, 542, 28460, 12, 467, 1662, 3262, 82, 2171, 18, 9819, 67, 8468, 11272, 202, 202, 891, 1114, 18, 542, 461, 12, 1640, 18, 17994, 12, 262, 11272, 202, 202, 891, 1114, 18, 542, 20524, 12, 1640, 18, 588, 20524, 12, 262, 11272, 202, 202, 891, 1114, 18, 542, 20524, 653, 12, 1640, 18, 588, 20524, 653, 12, 262, 11272, 202, 202, 891, 1114, 18, 542, 6696, 1528, 12, 1640, 18, 588, 6696, 1528, 12, 262, 2 ]
f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height);
private static void startModal(JInternalFrame f, JOptionPane pane) { f.getContentPane().add(pane); f.pack(); f.show(); Dimension pref = f.getPreferredSize(); f.setBounds(0, 0, pref.width, pref.height); synchronized (f) { final JInternalFrame tmp = f; tmp.toFront(); f.addInternalFrameListener(new InternalFrameAdapter() { public void internalFrameClosed(InternalFrameEvent e) { synchronized (tmp) { tmp.removeInternalFrameListener(this); tmp.notifyAll(); } } }); try { while (! f.isClosed()) f.wait(); } catch (InterruptedException ignored) { } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b0819f69fb87c25602911abcc49016c8e9b9db5d/JOptionPane.java/clean/core/src/classpath/javax/javax/swing/JOptionPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 787, 20191, 12, 46, 3061, 3219, 284, 16, 804, 1895, 8485, 13618, 13, 225, 288, 565, 284, 18, 588, 1350, 8485, 7675, 1289, 12, 29009, 1769, 565, 284, 18, 2920, 5621, 565, 284, 18, 4500, 5621, 565, 13037, 11307, 273, 284, 18, 588, 16028, 1225, 5621, 565, 284, 18, 542, 5694, 12, 20, 16, 374, 16, 11307, 18, 2819, 16, 11307, 18, 4210, 1769, 565, 3852, 261, 74, 13, 1377, 288, 202, 6385, 804, 3061, 3219, 1853, 273, 284, 31, 202, 5645, 18, 869, 9580, 5621, 202, 74, 18, 1289, 3061, 3219, 2223, 12, 2704, 3186, 3219, 4216, 1435, 202, 565, 288, 202, 1377, 1071, 918, 2713, 3219, 7395, 12, 3061, 3219, 1133, 425, 13, 202, 1377, 288, 202, 202, 22043, 261, 5645, 13, 1082, 225, 288, 1082, 565, 1853, 18, 4479, 3061, 3219, 2223, 12, 2211, 1769, 1082, 565, 1853, 18, 12336, 1595, 5621, 1082, 225, 289, 202, 1377, 289, 202, 565, 15549, 202, 698, 202, 225, 288, 202, 565, 1323, 16051, 284, 18, 291, 7395, 10756, 202, 1377, 284, 18, 7048, 5621, 202, 225, 289, 202, 14683, 261, 24485, 503, 5455, 13, 202,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, 1895, 8485, 13618, 13, 225, 288, 565, 284, 18, 588, 1350, 8485, 7675, 1289, 12, 29009, 1769, 565, 284, 18, 2920, 5621, 565, 284, 18, 4500, 5621, 565, 13037, 11307, 273, 284, 18, 588, 16028, 1225, 5621, 565, 284, 18, 542, 5694, 12, 20, 16, 374, 16, 11307, 18, 2819, 16, 11307, 18, 4210, 1769, 565, 3852, 261, 74, 13, 1377, 288, 202, 6385, 804, 3061, 3219, 1853, 273, 284, 31, 202, 5645, 18, 869, 9580, 5621, 202, 74, 18, 1289, 3061, 3219, 2223, 12, 2704, 3186, 3219, 4216, 1435, 202, 565, 288, 202, 1377, 1071, 918, 2713, 3219, 7395, 12, 3061, 3219, 1133, 425, 13, 2 ]
iface.setMonitoredServices(new LinkedHashSet());
protected void setMonitoredServices(OnmsIpInterface iface) { // we don't do anything by default! }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/356299c013f7ba381855145f89d9c6a5461feeae/IpInterfaceMapper.java/clean/opennms-dao/src/main/java/org/opennms/netmgt/dao/jdbc/ipif/IpInterfaceMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 918, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 444, 11415, 20425, 5676, 12, 1398, 959, 5273, 1358, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 9751, 13, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 288, 202, 202, 759, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 732, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 2727, 1404, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 741, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 6967, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 635, 31479, 18, 542, 11415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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 918, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 444, 11415, 20425, 5676, 12, 1398, 959, 5273, 1358, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 9751, 13, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 288, 202, 202, 759, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 732, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 2727, 1404, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 741, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 6967, 31479, 18, 542, 11415, 20425, 5676, 12, 2704, 19523, 10663, 635, 31479, 18, 542, 11415, 2 ]
return fileBuilders; }
return fileBuilders; }
public Map getFileBuilders() { return fileBuilders; }
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/fe784b1bb6157b15ed84ba55ea39b94e5e897d57/Builder.java/buggy/statsvn/src/net/sf/statcvs/input/Builder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1635, 6034, 20460, 1435, 288, 202, 202, 2463, 585, 20460, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1635, 6034, 20460, 1435, 288, 202, 202, 2463, 585, 20460, 31, 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, -100, -100, -100, -100, -100 ]
return PackageUtil.getInterfaces(this, _env);
List<IType> types = getTypesInPackage(_pkgFragments); List<InterfaceDeclaration> interfaces = new ArrayList<InterfaceDeclaration>(); for (IType type : types) { try { if (type.isInterface()) { interfaces.add((InterfaceDeclaration)_env.getTypeDeclaration(type)); } } catch (JavaModelException ex) {} } return interfaces;
public Collection<InterfaceDeclaration> getInterfaces() { return PackageUtil.getInterfaces(this, _env); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/d4b66f5ebef72ea4a16ce3ed100131443db3e609/PackageDeclarationImpl.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/PackageDeclarationImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 32, 1358, 6094, 34, 29833, 1435, 288, 202, 202, 682, 32, 45, 559, 34, 1953, 273, 20780, 382, 2261, 24899, 10657, 27588, 1769, 987, 32, 1358, 6094, 34, 7349, 273, 394, 2407, 32, 1358, 6094, 34, 5621, 364, 261, 45, 559, 618, 294, 1953, 13, 288, 775, 288, 309, 261, 723, 18, 291, 1358, 10756, 288, 7349, 18, 1289, 12443, 1358, 6094, 13, 67, 3074, 18, 588, 559, 6094, 12, 723, 10019, 289, 289, 1044, 261, 5852, 1488, 503, 431, 13, 2618, 289, 225, 327, 7349, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2200, 32, 1358, 6094, 34, 29833, 1435, 288, 202, 202, 682, 32, 45, 559, 34, 1953, 273, 20780, 382, 2261, 24899, 10657, 27588, 1769, 987, 32, 1358, 6094, 34, 7349, 273, 394, 2407, 32, 1358, 6094, 34, 5621, 364, 261, 45, 559, 618, 294, 1953, 13, 288, 775, 288, 309, 261, 723, 18, 291, 1358, 10756, 288, 7349, 18, 1289, 12443, 1358, 6094, 13, 67, 3074, 18, 588, 559, 6094, 12, 723, 10019, 289, 289, 1044, 261, 5852, 1488, 503, 431, 13, 2618, 289, 225, 327, 7349, 31, 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 ]
match(input,23,FOLLOW_23_in_predicate2024);
match(input,23,FOLLOW_23_in_predicate2025);
public void predicate(List constraints) throws RecognitionException { Token decl=null; Token field=null; String text = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:703:17: (decl= ID ':' field= ID '->' '(' text= paren_chunk ')' ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:703:17: decl= ID ':' field= ID '->' '(' text= paren_chunk ')' { decl=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_predicate2008); match(input,30,FOLLOW_30_in_predicate2010); field=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_predicate2014); match(input,49,FOLLOW_49_in_predicate2016); match(input,21,FOLLOW_21_in_predicate2018); following.push(FOLLOW_paren_chunk_in_predicate2022); text=paren_chunk(); following.pop(); match(input,23,FOLLOW_23_in_predicate2024); PredicateDescr d = new PredicateDescr(field.getText(), decl.getText(), text ); constraints.add( d ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5641, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 3496, 33, 2011, 31, 3639, 3155, 652, 33, 2011, 31, 3639, 514, 977, 273, 446, 31, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4630, 30, 4033, 30, 261, 8840, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4630, 30, 4033, 30, 3496, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 5411, 288, 5411, 3496, 28657, 1345, 13, 2630, 18, 12050, 12, 21, 1769, 5411, 845, 12, 2630, 16, 734, 16, 29890, 67, 734, 67, 267, 67, 18344, 6976, 28, 1769, 2398, 845, 12, 2630, 16, 5082, 16, 29890, 67, 5082, 67, 267, 67, 18344, 6734, 20, 1769, 2398, 652, 28657, 1345, 13, 2630, 18, 12050, 12, 21, 1769, 5411, 845, 12, 2630, 16, 734, 16, 29890, 67, 734, 67, 267, 67, 18344, 6734, 24, 1769, 2398, 845, 12, 2630, 16, 7616, 16, 29890, 67, 7616, 67, 267, 67, 18344, 28525, 1769, 2398, 845, 12, 2630, 16, 5340, 16, 29890, 67, 5340, 67, 267, 67, 18344, 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, 5641, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 3496, 33, 2011, 31, 3639, 3155, 652, 33, 2011, 31, 3639, 514, 977, 273, 446, 31, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 27, 4630, 30, 4033, 30, 261, 8840, 33, 1599, 3921, 652, 33, 1599, 26010, 7321, 977, 33, 22146, 67, 6551, 5777, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 2 ]
String systemProp = System.getProperty(factoryId);
String systemProp = null; try { systemProp = System.getProperty(factoryId); } catch( SecurityException se ) {}
private static String findFactory(String factoryId, String defaultFactory) { // Use the system property first try { String systemProp = System.getProperty(factoryId); if (systemProp != null) { if (debug) { System.err.println("JAXP: found system property" + systemProp); } return systemProp; } } catch (SecurityException se) {} if (foundFactory != null) { return foundFactory; } // try to read from $java.home/lib/jaxp.properties try { String javah = System.getProperty("java.home"); String configFile = javah + File.separator + "lib" + File.separator + "jaxp.properties"; File f = new File(configFile); if (f.exists()) { Properties props = new Properties(); props.load(new FileInputStream(f)); foundFactory = props.getProperty(factoryId); if (debug) { System.err.println("JAXP: found java.home property " + foundFactory); } if (foundFactory != null) { return foundFactory; } } } catch (Exception ex) { if (debug) { ex.printStackTrace(); } } String serviceId = "META-INF/services/" + factoryId; // try to find services in CLASSPATH try { ClassLoader cl = TransformerFactory.class.getClassLoader(); InputStream is = null; if (cl == null) { is = ClassLoader.getSystemResourceAsStream(serviceId); } else { is = cl.getResourceAsStream(serviceId); } if (is != null) { if (debug) { System.err.println("JAXP: found " + serviceId); } BufferedReader rd = new BufferedReader(new InputStreamReader(is)); foundFactory = rd.readLine(); rd.close(); if (debug) { System.err.println("JAXP: loaded from services: " + foundFactory); } if ((foundFactory != null) &&!"".equals(foundFactory)) { return foundFactory; } } } catch (Exception ex) { if (debug) { ex.printStackTrace(); } } return defaultFactory; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/06303746da78b470ac79618008a635a618e67d1b/TransformerFactory.java/buggy/src/javax/xml/transform/TransformerFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1104, 1733, 12, 780, 3272, 548, 16, 4766, 1377, 514, 805, 1733, 13, 288, 3639, 368, 2672, 326, 2619, 1272, 1122, 3639, 775, 288, 5411, 514, 2619, 4658, 273, 446, 31, 775, 288, 2619, 4658, 273, 2332, 18, 588, 1396, 12, 6848, 548, 1769, 289, 1044, 12, 17780, 695, 262, 2618, 5411, 309, 261, 4299, 4658, 480, 446, 13, 288, 7734, 309, 261, 4148, 13, 288, 10792, 2332, 18, 370, 18, 8222, 2932, 17368, 52, 30, 1392, 2619, 1272, 6, 4766, 4202, 397, 2619, 4658, 1769, 7734, 289, 7734, 327, 2619, 4658, 31, 5411, 289, 3639, 289, 1044, 261, 24918, 695, 13, 2618, 3639, 309, 261, 7015, 1733, 480, 446, 13, 288, 5411, 327, 1392, 1733, 31, 3639, 289, 3639, 368, 775, 358, 855, 628, 271, 6290, 18, 8712, 19, 2941, 19, 6482, 84, 18, 4738, 3639, 775, 288, 5411, 514, 2252, 76, 1377, 273, 2332, 18, 588, 1396, 2932, 6290, 18, 8712, 8863, 5411, 514, 12247, 273, 2252, 76, 397, 1387, 18, 11287, 397, 315, 2941, 6, 27573, 397, 1387, 18, 11287, 397, 315, 6482, 84, 18, 4738, 14432, 5411, 1387, 282, 284, 1850, 273, 394, 1387, 12, 1425, 812, 1769, 5411, 309, 261, 74, 18, 1808, 10756, 288, 7734, 6183, 3458, 273, 394, 6183, 5621, 7734, 3458, 18, 945, 12, 2704, 11907, 12, 74, 10019, 7734, 1392, 1733, 273, 3458, 18, 588, 1396, 12, 6848, 548, 1769, 7734, 309, 261, 4148, 13, 288, 10792, 2332, 18, 370, 18, 8222, 2932, 17368, 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, 514, 1104, 1733, 12, 780, 3272, 548, 16, 4766, 1377, 514, 805, 1733, 13, 288, 3639, 368, 2672, 326, 2619, 1272, 1122, 3639, 775, 288, 5411, 514, 2619, 4658, 273, 446, 31, 775, 288, 2619, 4658, 273, 2332, 18, 588, 1396, 12, 6848, 548, 1769, 289, 1044, 12, 17780, 695, 262, 2618, 5411, 309, 261, 4299, 4658, 480, 446, 13, 288, 7734, 309, 261, 4148, 13, 288, 10792, 2332, 18, 370, 18, 8222, 2932, 17368, 52, 30, 1392, 2619, 1272, 6, 4766, 4202, 397, 2619, 4658, 1769, 7734, 289, 7734, 327, 2619, 4658, 31, 5411, 289, 3639, 289, 1044, 261, 24918, 695, 13, 2618, 3639, 309, 261, 7015, 1733, 480, 446, 13, 288, 5411, 327, 1392, 2 ]
private File findDeleteTarget( Artifact artifact ) { File deleteTarget = artifact.getFile(); if ( GROUP_ID_FUZZINESS.equals( resolutionFuzziness ) ) { // get the artifactId dir. deleteTarget = deleteTarget.getParentFile().getParentFile(); // get the first groupId dir. deleteTarget = deleteTarget.getParentFile(); String[] path = localRepository.pathOf( artifact ).split( "\\/" ); // subtract the artifact filename, version dir, artifactId dir, and the first groupId // dir, since we've accounted for those above. int groupParts = path.length - 4; File parent = deleteTarget.getParentFile(); int count = 0; while( count++ < groupParts ) { // prune empty dirs back to the beginning of the groupId, if possible. // if the parent dir only has the one child file, then it's okay to prune. if ( parent.list().length < 2 ) { deleteTarget = parent; // check the parent of this newly checked dir parent = deleteTarget.getParentFile(); } else { // if there are more files than the one that we're interested in killing, stop. break; } } } else if ( ARTIFACT_ID_FUZZINESS.equals( resolutionFuzziness ) ) { // get the artifactId dir. deleteTarget = deleteTarget.getParentFile().getParentFile(); } else if ( VERSION_FUZZINESS.equals( resolutionFuzziness ) ) { // get the version dir. deleteTarget = deleteTarget.getParentFile(); } // else it's file fuzziness. return deleteTarget; }
57869 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57869/1b93eff87014f080f647d88423cf198b2fb89c5d/PurgeLocalRepositoryMojo.java/buggy/src/main/java/org/apache/maven/plugin/dependency/PurgeLocalRepositoryMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3238, 1387, 1104, 2613, 2326, 12, 14022, 6462, 262, 1377, 288, 5411, 1387, 1430, 2326, 273, 6462, 18, 29925, 5621, 13491, 309, 261, 13839, 67, 734, 67, 42, 57, 27096, 3740, 1260, 18, 14963, 12, 7861, 42, 9510, 6336, 262, 262, 5411, 288, 5375, 368, 336, 326, 25496, 1577, 18, 5375, 1430, 2326, 273, 1430, 2326, 18, 588, 3054, 812, 7675, 588, 3054, 812, 5621, 4766, 565, 368, 336, 326, 1122, 6612, 1577, 18, 5375, 1430, 2326, 273, 1430, 2326, 18, 588, 3054, 812, 5621, 4766, 565, 514, 8526, 589, 273, 1191, 3305, 18, 803, 951, 12, 6462, 262, 18, 4939, 12, 8422, 4898, 11272, 4766, 565, 368, 10418, 326, 6462, 1544, 16, 1177, 1577, 16, 25496, 1577, 16, 471, 326, 1122, 6612, 10402, 368, 1577, 16, 3241, 732, 8081, 2236, 329, 364, 5348, 5721, 18, 5375, 509, 1041, 4305, 273, 589, 18, 2469, 300, 1059, 31, 4766, 565, 1387, 982, 273, 1430, 2326, 18, 588, 3054, 812, 5621, 5375, 509, 1056, 273, 374, 31, 5375, 1323, 12, 1056, 9904, 411, 1041, 4305, 262, 5375, 288, 13491, 368, 13293, 1008, 7717, 1473, 358, 326, 8435, 434, 326, 6612, 16, 309, 3323, 18, 4766, 7734, 368, 309, 326, 982, 1577, 1338, 711, 326, 1245, 1151, 585, 16, 1508, 518, 1807, 21194, 358, 13293, 18, 13491, 309, 261, 982, 18, 1098, 7675, 2469, 411, 576, 262, 13491, 288, 17311, 1430, 2326, 273, 982, 31, 4766, 18701, 368, 866, 326, 982, 434, 333, 10894, 5950, 1577, 17311, 982, 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, 4202, 3238, 1387, 1104, 2613, 2326, 12, 14022, 6462, 262, 1377, 288, 5411, 1387, 1430, 2326, 273, 6462, 18, 29925, 5621, 13491, 309, 261, 13839, 67, 734, 67, 42, 57, 27096, 3740, 1260, 18, 14963, 12, 7861, 42, 9510, 6336, 262, 262, 5411, 288, 5375, 368, 336, 326, 25496, 1577, 18, 5375, 1430, 2326, 273, 1430, 2326, 18, 588, 3054, 812, 7675, 588, 3054, 812, 5621, 4766, 565, 368, 336, 326, 1122, 6612, 1577, 18, 5375, 1430, 2326, 273, 1430, 2326, 18, 588, 3054, 812, 5621, 4766, 565, 514, 8526, 589, 273, 1191, 3305, 18, 803, 951, 12, 6462, 262, 18, 4939, 12, 8422, 4898, 11272, 4766, 565, 368, 10418, 326, 6462, 1544, 16, 1177, 1577, 16, 25496, 1577, 2 ]
while(bytesRead < bucketLength || bucketLength == -1) {
while((bytesRead < bucketLength) || (bucketLength == -1)) {
public static byte[] hash(Bucket data) throws IOException { InputStream is = null; try { MessageDigest md = MessageDigest.getInstance("SHA-256"); is = data.getInputStream(); long bucketLength = data.size(); long bytesRead = 0; byte[] buf = new byte[4096]; while(bytesRead < bucketLength || bucketLength == -1) { int readBytes = is.read(buf); if(readBytes < 0) break; bytesRead += readBytes; md.update(buf, 0, readBytes); } if(bytesRead < bucketLength && bucketLength > 0) throw new EOFException(); if(bytesRead != bucketLength && bucketLength > 0) throw new IOException("Read "+bytesRead+" but bucket length "+bucketLength+"!"); return md.digest(); } catch (NoSuchAlgorithmException e) { Logger.error(BucketTools.class, "No such digest: SHA-256 !!"); throw new Error("No such digest: SHA-256 !!"); } finally { if(is != null) is.close(); } }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/BucketTools.java/buggy/src/freenet/support/BucketTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1160, 8526, 1651, 12, 4103, 501, 13, 1216, 1860, 288, 202, 202, 4348, 353, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 1079, 9568, 3481, 273, 22485, 18, 588, 1442, 2932, 8325, 17, 5034, 8863, 1082, 202, 291, 273, 501, 18, 588, 4348, 5621, 1082, 202, 5748, 2783, 1782, 273, 501, 18, 1467, 5621, 1082, 202, 5748, 17244, 273, 374, 31, 1082, 202, 7229, 8526, 1681, 273, 394, 1160, 63, 24, 5908, 26, 15533, 1082, 202, 17523, 12, 3890, 1994, 411, 2783, 1782, 747, 2783, 1782, 422, 300, 21, 13, 288, 9506, 202, 474, 25825, 273, 353, 18, 896, 12, 4385, 1769, 9506, 202, 430, 12, 896, 2160, 411, 374, 13, 898, 31, 9506, 202, 3890, 1994, 1011, 25825, 31, 9506, 202, 1264, 18, 2725, 12, 4385, 16, 374, 16, 25825, 1769, 1082, 202, 97, 1082, 202, 430, 12, 3890, 1994, 411, 2783, 1782, 597, 2783, 1782, 405, 374, 13, 9506, 202, 12849, 394, 30051, 5621, 1082, 202, 430, 12, 3890, 1994, 480, 2783, 1782, 597, 2783, 1782, 405, 374, 13, 9506, 202, 12849, 394, 1860, 2932, 1994, 13773, 3890, 1994, 9078, 1496, 2783, 769, 13773, 7242, 1782, 9078, 4442, 1769, 1082, 202, 2463, 3481, 18, 10171, 5621, 202, 202, 97, 1044, 261, 28341, 17293, 425, 13, 288, 1082, 202, 3328, 18, 1636, 12, 4103, 10348, 18, 1106, 16, 315, 2279, 4123, 5403, 30, 9777, 17, 5034, 401, 4442, 1769, 1082, 202, 12849, 394, 1068, 2932, 2279, 4123, 5403, 30, 9777, 17, 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, 1160, 8526, 1651, 12, 4103, 501, 13, 1216, 1860, 288, 202, 202, 4348, 353, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 1079, 9568, 3481, 273, 22485, 18, 588, 1442, 2932, 8325, 17, 5034, 8863, 1082, 202, 291, 273, 501, 18, 588, 4348, 5621, 1082, 202, 5748, 2783, 1782, 273, 501, 18, 1467, 5621, 1082, 202, 5748, 17244, 273, 374, 31, 1082, 202, 7229, 8526, 1681, 273, 394, 1160, 63, 24, 5908, 26, 15533, 1082, 202, 17523, 12, 3890, 1994, 411, 2783, 1782, 747, 2783, 1782, 422, 300, 21, 13, 288, 9506, 202, 474, 25825, 273, 353, 18, 896, 12, 4385, 1769, 9506, 202, 430, 12, 896, 2160, 411, 374, 13, 898, 31, 9506, 2 ]
return(multipleMode);
return allowsMultipleSelections ();
isMultipleMode(){ return(multipleMode);}
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/3fe1c14284ce32b79d0e66441aec6a45a77ff684/List.java/buggy/libjava/java/awt/List.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 353, 8438, 2309, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 353, 8438, 2309, 1435, 95, 225, 327, 12, 9622, 2309, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cp.applyConstraint( ConstrainedProperty.MIN_SIZE_CONSTRAINT, Integer.valueOf(0));
cp.applyConstraint( ConstrainedProperty.MIN_SIZE_CONSTRAINT, new Integer(0));
public void testApplyConstraint() { // test validate email // --------------------------------------------------------------------- ConstrainedProperty cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testEmail", String.class); cp.applyConstraint( ConstrainedProperty.EMAIL_CONSTRAINT, new Boolean(true) ); assertTrue(cp.getAppliedConstraints().size() == 1); Errors errors = new BindException(this,"testObject"); Constraint c = null; for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testEmail, errors); } assertTrue(errors.hasErrors()); FieldError error = errors.getFieldError("testEmail"); assertNotNull(error); assertEquals("rubbish_email",error.getRejectedValue()); this.testEmail = "avalidemail@hotmail.com"; errors = new BindException(this,"testObject"); c.validate(this, this.testEmail,errors); assertFalse(errors.hasErrors()); // test validate url // --------------------------------------------------------------------- cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testURL", String.class); cp.applyConstraint( ConstrainedProperty.URL_CONSTRAINT, new Boolean(true) ); assertTrue(cp.getAppliedConstraints().size() == 1); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } // validate that an invalid URL value yields an error assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); assertEquals(this.testURL,error.getRejectedValue()); // validate that a valid URL value does *not* yield an error this.testURL = "http://www.google.com"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertFalse(errors.hasErrors()); // validate that a null URL value yields an error this.testURL = null; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); // test blank constraint // --------------------------------------------------------------------- cp.applyConstraint( ConstrainedProperty.URL_CONSTRAINT, null ); cp.applyConstraint( ConstrainedProperty.BLANK_CONSTRAINT, new Boolean(false) ); assertTrue(cp.getAppliedConstraints().size() == 1); errors = new BindException(this,"testObject"); this.testURL = ""; for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); // test nullable constraint // --------------------------------------------------------------------- cp.applyConstraint( ConstrainedProperty.BLANK_CONSTRAINT, new Boolean(true) ); cp.applyConstraint( ConstrainedProperty.NULLABLE_CONSTRAINT, new Boolean(false) ); errors = new BindException(this,"testObject"); this.testURL = null; for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); // test inList constraint // --------------------------------------------------------------------- cp.applyConstraint( ConstrainedProperty.NULLABLE_CONSTRAINT, new Boolean(true) ); List list = new ArrayList(); list.add("one"); list.add("two"); list.add("three"); this.testURL = "something"; cp.applyConstraint( ConstrainedProperty.IN_LIST_CONSTRAINT, list ); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); // Validate that the error includes the correct error code assertTrue(Arrays.asList(error.getCodes()).contains("constrainedPropertyTests.testURL.not.inList")); this.testURL = "two"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertFalse(errors.hasErrors()); // test length constraint // --------------------------------------------------------------------- cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testURL", String.class); cp.applyConstraint( ConstrainedProperty.LENGTH_CONSTRAINT, new IntRange(5,15) ); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); System.out.println(error); assertNotNull(error); this.testURL = "absolutelytotallytoolong"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertTrue(errors.hasErrors()); // test min constraint // --------------------------------------------------------------------- final Date BEGINNING_OF_TIME = new Date(0); final Date NOW = new Date(); final Date ONE_DAY_FROM_NOW = new Date(System.currentTimeMillis() + 86400000); this.testDate = BEGINNING_OF_TIME; cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testDate", String.class); cp.applyConstraint( ConstrainedProperty.MIN_CONSTRAINT, NOW); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testDate, errors); } // validate that a value *less than* the minimum value yields an error assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // validate that a value *equal to* the minimum value does *not* yield an error this.testDate = NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertFalse(errors.hasErrors()); // validate that a value *greater than* the minimum value does *not* yield an error this.testDate = ONE_DAY_FROM_NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertFalse(errors.hasErrors()); // validate that a null value yields an error this.testDate = null; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // test max constraint // --------------------------------------------------------------------- this.testDate = BEGINNING_OF_TIME; cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testDate", String.class); cp.applyConstraint( ConstrainedProperty.MAX_CONSTRAINT, NOW); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testDate, errors); } // validate that a value *less than* the maximum value does *not* yield an error assertFalse(errors.hasErrors()); // validate that a value *equal to* the maximum value does *not* yield an error this.testDate = NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertFalse(errors.hasErrors()); // validate that a value *greater than* the maximum value yields an error this.testDate = ONE_DAY_FROM_NOW; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // validate that a null value yields an error this.testDate = null; errors = new BindException(this,"testObject"); c.validate(this, this.testDate,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testDate"); System.out.println(error); assertNotNull(error); // test maxSize constraint // --------------------------------------------------------------------- this.testInteger = Integer.valueOf(Integer.MIN_VALUE); cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testInteger", String.class); cp.applyConstraint( ConstrainedProperty.MAX_SIZE_CONSTRAINT, Integer.valueOf(0)); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testInteger, errors); } // validate that a value *less than* the maximum value does *not* yield an error assertFalse(errors.hasErrors()); // validate that a value *equal to* the maximum value does *not* yield an error this.testInteger = Integer.valueOf(0); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertFalse(errors.hasErrors()); // validate that a value *greater than* the maximum value yields an error this.testInteger = Integer.valueOf(Integer.MAX_VALUE); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testInteger"); assertNotNull(error); // test minSize constraint // --------------------------------------------------------------------- this.testInteger = Integer.valueOf(Integer.MAX_VALUE); cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testInteger", String.class); cp.applyConstraint( ConstrainedProperty.MIN_SIZE_CONSTRAINT, Integer.valueOf(0)); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testInteger, errors); } // validate that a value *greater than* the minimum value does *not* yield an error assertFalse(errors.hasErrors()); // validate that a value *equal to* the minimum value does *not* yield an error this.testInteger = Integer.valueOf(0); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertFalse(errors.hasErrors()); // validate that a value *less than* the minimum value yields an error this.testInteger = Integer.valueOf(Integer.MIN_VALUE); errors = new BindException(this,"testObject"); c.validate(this, this.testInteger,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testInteger"); assertNotNull(error); // test validate matches (regex) // --------------------------------------------------------------------- cp = new ConstrainedProperty(ConstrainedPropertyTests.class,"testURL", String.class); cp.applyConstraint( ConstrainedProperty.MATCHES_CONSTRAINT, "[a-zA-Z]" ); assertTrue(cp.getAppliedConstraints().size() == 1); errors = new BindException(this,"testObject"); for (Iterator i = cp.getAppliedConstraints().iterator(); i.hasNext();) { c = (Constraint) i.next(); c.validate(this, this.testURL, errors); } // validate that a value *not* matching the regex yields an error this.testURL = "$"; assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); // validate that a value matching the regex does *not* yield an error this.testURL = "j"; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertFalse(errors.hasErrors()); // validate that a null value yields an error this.testURL = null; errors = new BindException(this,"testObject"); c.validate(this, this.testURL,errors); assertTrue(errors.hasErrors()); error = errors.getFieldError("testURL"); assertNotNull(error); }
28089 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28089/37ceae746fefa3ebb8dd0ecb363ae64909d00888/ConstrainedPropertyTests.java/buggy/test/commons/org/codehaus/groovy/grails/validation/ConstrainedPropertyTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7001, 5806, 1435, 288, 3639, 368, 1842, 1954, 2699, 3639, 368, 8879, 553, 3639, 735, 31142, 1396, 3283, 273, 394, 735, 31142, 1396, 12, 442, 31142, 1396, 14650, 18, 1106, 10837, 3813, 4134, 3113, 514, 18, 1106, 1769, 3639, 3283, 18, 9010, 5806, 12, 735, 31142, 1396, 18, 14686, 67, 15199, 16, 394, 3411, 12, 3767, 13, 11272, 3639, 1815, 5510, 12, 4057, 18, 588, 16203, 4878, 7675, 1467, 1435, 422, 404, 1769, 3639, 9372, 1334, 273, 394, 6936, 503, 12, 2211, 10837, 3813, 921, 8863, 3639, 10770, 276, 273, 446, 31, 3639, 364, 261, 3198, 277, 273, 3283, 18, 588, 16203, 4878, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 276, 273, 261, 5806, 13, 277, 18, 4285, 5621, 5411, 276, 18, 5662, 12, 2211, 16, 333, 18, 3813, 4134, 16, 1334, 1769, 3639, 289, 3639, 1815, 5510, 12, 4324, 18, 5332, 4229, 10663, 3639, 2286, 668, 555, 273, 1334, 18, 588, 974, 668, 2932, 3813, 4134, 8863, 3639, 25395, 12, 1636, 1769, 3639, 1815, 8867, 2932, 18271, 70, 1468, 67, 3652, 3113, 1636, 18, 588, 19902, 620, 10663, 3639, 333, 18, 3813, 4134, 273, 315, 842, 287, 831, 4408, 36, 15224, 4408, 18, 832, 14432, 3639, 1334, 273, 394, 6936, 503, 12, 2211, 10837, 3813, 921, 8863, 3639, 276, 18, 5662, 12, 2211, 16, 333, 18, 3813, 4134, 16, 4324, 1769, 3639, 1815, 8381, 12, 4324, 18, 5332, 4229, 10663, 3639, 368, 1842, 1954, 880, 3639, 368, 8879, 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, 7001, 5806, 1435, 288, 3639, 368, 1842, 1954, 2699, 3639, 368, 8879, 553, 3639, 735, 31142, 1396, 3283, 273, 394, 735, 31142, 1396, 12, 442, 31142, 1396, 14650, 18, 1106, 10837, 3813, 4134, 3113, 514, 18, 1106, 1769, 3639, 3283, 18, 9010, 5806, 12, 735, 31142, 1396, 18, 14686, 67, 15199, 16, 394, 3411, 12, 3767, 13, 11272, 3639, 1815, 5510, 12, 4057, 18, 588, 16203, 4878, 7675, 1467, 1435, 422, 404, 1769, 3639, 9372, 1334, 273, 394, 6936, 503, 12, 2211, 10837, 3813, 921, 8863, 3639, 10770, 276, 273, 446, 31, 3639, 364, 261, 3198, 277, 273, 3283, 18, 588, 16203, 4878, 7675, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 276, 2 ]
BasicNewProjectResourceWizard.updatePerspective( getConfigElement( ) );
public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IEditorPart editorPart = IDE.openEditor( page, file, true ); ModuleHandle model = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); if ( ReportPlugin.getDefault( ) .getEnableCommentPreference( ) ) { model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ) .getCommentPreference( ) ); } setReportSettings( model ); editorPart.doSave( null ); BasicNewProjectResourceWizard.updatePerspective( getConfigElement( ) ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/76ebe408a984f02b49cbaf1597c0c7a0213901fe/NewTemplateWizard.java/clean/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewTemplateWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 262, 1082, 202, 95, 9506, 202, 45, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 12, 11272, 9506, 202, 45, 2421, 22144, 3829, 2742, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 12, 11272, 9506, 202, 45, 2421, 22144, 1964, 1363, 273, 2742, 18, 588, 3896, 1964, 12, 11272, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 6946, 1988, 4858, 1988, 273, 1599, 41, 18, 3190, 6946, 12, 1363, 16, 585, 16, 638, 11272, 6862, 202, 3120, 3259, 938, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 6862, 1082, 202, 18, 588, 4820, 15478, 3259, 12, 11272, 6862, 202, 430, 261, 8706, 3773, 18, 588, 1868, 12, 262, 6862, 1082, 202, 18, 588, 8317, 4469, 9624, 12, 262, 262, 6862, 202, 95, 25083, 202, 2284, 18, 542, 780, 1396, 12, 5924, 3259, 18, 12200, 55, 67, 15811, 16, 6862, 9506, 202, 4820, 3773, 18, 588, 1868, 12, 262, 6862, 25083, 202, 18, 588, 4469, 9624, 12, 262, 11272, 6862, 202, 97, 6862, 202, 542, 4820, 2628, 12, 938, 11272, 6862, 202, 9177, 1988, 18, 2896, 4755, 12, 446, 11272, 6862, 202, 8252, 1908, 4109, 1420, 27130, 18, 2725, 14781, 16772, 12, 4367, 1046, 12, 262, 11272, 9506, 202, 97, 9506, 202, 14683, 261, 1185, 425, 262, 9506, 202, 95, 6862, 202, 18894, 18, 4110, 12, 425, 11272, 9506, 202, 97, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 12, 262, 1082, 202, 95, 9506, 202, 45, 2421, 22144, 1440, 22144, 273, 11810, 5370, 18, 588, 2421, 22144, 12, 11272, 9506, 202, 45, 2421, 22144, 3829, 2742, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 12, 11272, 9506, 202, 45, 2421, 22144, 1964, 1363, 273, 2742, 18, 588, 3896, 1964, 12, 11272, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 6946, 1988, 4858, 1988, 273, 1599, 41, 18, 3190, 6946, 12, 1363, 16, 585, 16, 638, 11272, 6862, 202, 3120, 3259, 938, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 6862, 1082, 202, 18, 588, 4820, 15478, 3259, 12, 11272, 6862, 202, 430, 261, 8706, 3773, 18, 588, 1868, 12, 2 ]
FontMetrics fm = comboBox.getFontMetrics(comboBox.getFont()); width = Math.max(width, fm.stringWidth(prototype.toString()) + 2);
Dimension editSize = editor.getPreferredSize(); dim.width = Math.max(dim.width, editSize.width); dim.height = Math.max(dim.height, editSize.height);
protected Dimension getDisplaySize() { if (!comboBox.isEditable()) { Object prototype = comboBox.getPrototypeDisplayValue(); if (prototype != null) { // calculate result based on prototype ListCellRenderer renderer = comboBox.getRenderer(); Component comp = renderer.getListCellRendererComponent(listBox, prototype, -1, false, false); Dimension compSize = comp.getPreferredSize(); compSize.width += 2; // add 1 pixel margin around area compSize.height += 2; return compSize; } else { ComboBoxModel model = comboBox.getModel(); int numItems = model.getSize(); // if combo box doesn't have any items then simply // return its default size if (numItems == 0) { displaySize = getDefaultSize(); return displaySize; } Dimension size = new Dimension(0, 0); // ComboBox's display size should be equal to the // size of the largest item in the combo box. ListCellRenderer renderer = comboBox.getRenderer(); for (int i = 0; i < numItems; i++) { Object item = model.getElementAt(i); Component comp = renderer.getListCellRendererComponent(listBox, item, -1, false, false); Dimension compSize = comp.getPreferredSize(); if (compSize.width + 2 > size.width) size.width = compSize.width + 2; if (compSize.height + 2 > size.height) size.height = compSize.height + 2; } displaySize = size; return displaySize; } } else // an editable combo, { Component comp = comboBox.getEditor().getEditorComponent(); Dimension prefSize = comp.getPreferredSize(); int width = prefSize.width; int height = prefSize.height + 2; Object prototype = comboBox.getPrototypeDisplayValue(); if (prototype != null) { FontMetrics fm = comboBox.getFontMetrics(comboBox.getFont()); width = Math.max(width, fm.stringWidth(prototype.toString()) + 2); } displaySize = new Dimension(width, height); return displaySize; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 13037, 13854, 1225, 1435, 225, 288, 565, 309, 16051, 25053, 3514, 18, 291, 15470, 10756, 4202, 288, 565, 1033, 4409, 273, 16778, 3514, 18, 588, 15846, 4236, 620, 5621, 565, 309, 261, 18541, 480, 446, 13, 1377, 288, 3639, 368, 4604, 563, 2511, 603, 4409, 3639, 987, 4020, 6747, 5690, 273, 16778, 3514, 18, 588, 6747, 5621, 3639, 5435, 1161, 273, 5690, 18, 588, 682, 4020, 6747, 1841, 12, 1098, 3514, 16, 1171, 4409, 16, 300, 21, 16, 629, 16, 629, 1769, 3639, 13037, 1161, 1225, 273, 1161, 18, 588, 16028, 1225, 5621, 3639, 1161, 1225, 18, 2819, 1011, 576, 31, 225, 368, 527, 404, 4957, 7333, 6740, 5091, 3639, 1161, 1225, 18, 4210, 1011, 576, 31, 3639, 327, 1161, 1225, 31, 1377, 289, 565, 469, 1377, 288, 565, 1286, 1075, 3514, 1488, 938, 273, 16778, 3514, 18, 588, 1488, 5621, 565, 509, 818, 3126, 273, 938, 18, 588, 1225, 5621, 565, 368, 309, 16778, 3919, 3302, 1404, 1240, 1281, 1516, 1508, 8616, 565, 368, 327, 2097, 805, 963, 565, 309, 261, 2107, 3126, 422, 374, 13, 1377, 288, 202, 5417, 1225, 273, 4829, 1225, 5621, 202, 2463, 2562, 1225, 31, 1377, 289, 565, 13037, 963, 273, 394, 13037, 12, 20, 16, 374, 1769, 565, 368, 1286, 1075, 3514, 1807, 2562, 963, 1410, 506, 3959, 358, 326, 377, 368, 963, 434, 326, 12756, 761, 316, 326, 16778, 3919, 18, 377, 987, 4020, 6747, 5690, 273, 16778, 3514, 18, 588, 6747, 5621, 565, 364, 261, 474, 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, 13037, 13854, 1225, 1435, 225, 288, 565, 309, 16051, 25053, 3514, 18, 291, 15470, 10756, 4202, 288, 565, 1033, 4409, 273, 16778, 3514, 18, 588, 15846, 4236, 620, 5621, 565, 309, 261, 18541, 480, 446, 13, 1377, 288, 3639, 368, 4604, 563, 2511, 603, 4409, 3639, 987, 4020, 6747, 5690, 273, 16778, 3514, 18, 588, 6747, 5621, 3639, 5435, 1161, 273, 5690, 18, 588, 682, 4020, 6747, 1841, 12, 1098, 3514, 16, 1171, 4409, 16, 300, 21, 16, 629, 16, 629, 1769, 3639, 13037, 1161, 1225, 273, 1161, 18, 588, 16028, 1225, 5621, 3639, 1161, 1225, 18, 2819, 1011, 576, 31, 225, 368, 527, 404, 4957, 7333, 6740, 5091, 3639, 1161, 1225, 18, 4210, 1011, 576, 31, 2 ]
printActivities();
public void add(String name, Activity a) { _activities.put(name, a); printActivities(); }
11096 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11096/45e0aa70fd49500f2d07a58a526e32ea2fdf3e56/ActivityDirector.java/buggy/trunk/src/nv2d/render/ActivityDirector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 780, 508, 16, 9621, 279, 13, 288, 3639, 389, 24745, 18, 458, 12, 529, 16, 279, 1769, 5411, 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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, 18, 458, 12, 529, 16, 279, 1769, 5411, 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 ]
if (isTreeShowing()) { myTree.requestFocus();
button.removeActionListener(action);
public void run() { if (isTreeShowing()) { myTree.requestFocus(); } else { myTable.requestFocus(); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/9216a2d40fc88ed8cfd52eb569b99031cb108e4c/BreakpointPanel.java/clean/source/com/intellij/debugger/ui/breakpoints/BreakpointPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 309, 261, 291, 2471, 5706, 310, 10756, 288, 1850, 3399, 2471, 18, 2293, 9233, 5621, 3639, 289, 3639, 469, 288, 1850, 3399, 1388, 18, 2293, 9233, 5621, 3639, 289, 1377, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1086, 1435, 288, 3639, 309, 261, 291, 2471, 5706, 310, 10756, 288, 1850, 3399, 2471, 18, 2293, 9233, 5621, 3639, 289, 3639, 469, 288, 1850, 3399, 1388, 18, 2293, 9233, 5621, 3639, 289, 1377, 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 ]
null, "setAlign");
null, "setAlignExpr");
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[34]; try { result[0] = new PropertyDescriptor("accesskey", ELImageTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("align", ELImageTag.class, null, "setAlign"); result[2] = new PropertyDescriptor("alt", ELImageTag.class, null, "setAlt"); result[3] = new PropertyDescriptor("altKey", ELImageTag.class, null, "setAltKey"); result[4] = new PropertyDescriptor("border", ELImageTag.class, null, "setBorder"); result[5] = new PropertyDescriptor("bundle", ELImageTag.class, null, "setBundle"); // This attribute has a non-standard mapping. result[6] = new PropertyDescriptor("disabled", ELImageTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[7] = new PropertyDescriptor("indexed", ELImageTag.class, null, "setIndexedExpr"); result[8] = new PropertyDescriptor("locale", ELImageTag.class, null, "setLocale"); result[9] = new PropertyDescriptor("onblur", ELImageTag.class, null, "setOnblur"); result[10] = new PropertyDescriptor("onchange", ELImageTag.class, null, "setOnchange"); result[11] = new PropertyDescriptor("onclick", ELImageTag.class, null, "setOnclick"); result[12] = new PropertyDescriptor("ondblclick", ELImageTag.class, null, "setOndblclick"); result[13] = new PropertyDescriptor("onfocus", ELImageTag.class, null, "setOnfocus"); result[14] = new PropertyDescriptor("onkeydown", ELImageTag.class, null, "setOnkeydown"); result[15] = new PropertyDescriptor("onkeypress", ELImageTag.class, null, "setOnkeypress"); result[16] = new PropertyDescriptor("onkeyup", ELImageTag.class, null, "setOnkeyup"); result[17] = new PropertyDescriptor("onmousedown", ELImageTag.class, null, "setOnmousedown"); result[18] = new PropertyDescriptor("onmousemove", ELImageTag.class, null, "setOnmousemove"); result[19] = new PropertyDescriptor("onmouseout", ELImageTag.class, null, "setOnmouseout"); result[20] = new PropertyDescriptor("onmouseover", ELImageTag.class, null, "setOnmouseover"); result[21] = new PropertyDescriptor("onmouseup", ELImageTag.class, null, "setOnmouseup"); result[22] = new PropertyDescriptor("page", ELImageTag.class, null, "setPage"); result[23] = new PropertyDescriptor("pageKey", ELImageTag.class, null, "setPageKey"); result[24] = new PropertyDescriptor("property", ELImageTag.class, null, "setProperty"); result[25] = new PropertyDescriptor("src", ELImageTag.class, null, "setSrc"); result[26] = new PropertyDescriptor("srcKey", ELImageTag.class, null, "setSrcKey"); result[27] = new PropertyDescriptor("style", ELImageTag.class, null, "setStyle"); result[28] = new PropertyDescriptor("styleClass", ELImageTag.class, null, "setStyleClass"); result[29] = new PropertyDescriptor("styleId", ELImageTag.class, null, "setStyleId"); result[30] = new PropertyDescriptor("tabindex", ELImageTag.class, null, "setTabindex"); result[31] = new PropertyDescriptor("title", ELImageTag.class, null, "setTitle"); result[32] = new PropertyDescriptor("titleKey", ELImageTag.class, null, "setTitleKey"); result[33] = new PropertyDescriptor("value", ELImageTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELImageTagBeanInfo.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImageTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5026, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 7989, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10044, 4742, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 653, 8863, 5411, 563, 63, 24, 65, 273, 394, 26761, 2932, 8815, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8107, 8863, 5411, 563, 63, 25, 65, 273, 394, 26761, 2932, 9991, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 3405, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 26, 65, 273, 394, 26761, 2932, 9278, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8853, 4742, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 27, 65, 273, 394, 26761, 2932, 19626, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 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, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5026, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 7989, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10044, 4742, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 2040, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 2040, 1805, 18, 2 ]
public static RubyBinding newBinding(IRuby runtime) { ThreadContext context = runtime.getCurrentContext(); RubyModule wrapper = context.getWrapper(); Iter iter = context.getCurrentIter(); Frame frame = context.getPreviousFrame(); if (frame == null) { frame = context.getCurrentFrame(); } DynamicVariableSet dynVars = context.getCurrentDynamicVars(); Block bindingBlock = Block.createBinding(wrapper, iter, frame, dynVars); RubyBinding newBinding = new RubyBinding(runtime, runtime.getClass("Binding"), bindingBlock, context.getRubyClass()); return newBinding;
public static RubyBinding newBinding(IRuby runtime, Block block) { return new RubyBinding(runtime, runtime.getClass("Binding"), block, block.getKlass());
public static RubyBinding newBinding(IRuby runtime) { ThreadContext context = runtime.getCurrentContext(); // FIXME: We should be cloning, not reusing: frame, scope, dynvars, and potentially iter/block info RubyModule wrapper = context.getWrapper(); Iter iter = context.getCurrentIter(); Frame frame = context.getPreviousFrame(); // for TOPLEVEL_BINDING if (frame == null) { frame = context.getCurrentFrame(); } DynamicVariableSet dynVars = context.getCurrentDynamicVars(); Block bindingBlock = Block.createBinding(wrapper, iter, frame, dynVars); RubyBinding newBinding = new RubyBinding(runtime, runtime.getClass("Binding"), bindingBlock, context.getRubyClass()); return newBinding; }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/62395b140d1fb0b5b75ba224eb0f4b564f70979b/RubyBinding.java/buggy/src/org/jruby/RubyBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5250, 394, 5250, 12, 7937, 10340, 3099, 13, 288, 3639, 4884, 1042, 819, 273, 3099, 18, 588, 3935, 1042, 5621, 7734, 368, 9852, 30, 1660, 1410, 506, 927, 22470, 16, 486, 283, 9940, 30, 2623, 16, 2146, 16, 19417, 4699, 16, 471, 13935, 1400, 19, 2629, 1123, 3639, 19817, 3120, 4053, 273, 819, 18, 588, 3611, 5621, 3639, 3016, 1400, 273, 819, 18, 588, 3935, 2360, 5621, 3639, 8058, 2623, 273, 819, 18, 588, 8351, 3219, 5621, 3639, 368, 364, 18680, 10398, 67, 2739, 3639, 309, 261, 3789, 422, 446, 13, 288, 5411, 2623, 273, 819, 18, 588, 3935, 3219, 5621, 3639, 289, 3639, 12208, 3092, 694, 19417, 5555, 273, 819, 18, 588, 3935, 9791, 5555, 5621, 3639, 3914, 5085, 1768, 273, 3914, 18, 2640, 5250, 12, 8376, 16, 1400, 16, 2623, 16, 19417, 5555, 1769, 3639, 19817, 5250, 394, 5250, 273, 394, 19817, 5250, 12, 9448, 16, 3099, 18, 588, 797, 2932, 5250, 6, 3631, 5085, 1768, 16, 819, 18, 588, 54, 10340, 797, 10663, 3639, 327, 394, 5250, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5250, 394, 5250, 12, 7937, 10340, 3099, 13, 288, 3639, 4884, 1042, 819, 273, 3099, 18, 588, 3935, 1042, 5621, 7734, 368, 9852, 30, 1660, 1410, 506, 927, 22470, 16, 486, 283, 9940, 30, 2623, 16, 2146, 16, 19417, 4699, 16, 471, 13935, 1400, 19, 2629, 1123, 3639, 19817, 3120, 4053, 273, 819, 18, 588, 3611, 5621, 3639, 3016, 1400, 273, 819, 18, 588, 3935, 2360, 5621, 3639, 8058, 2623, 273, 819, 18, 588, 8351, 3219, 5621, 3639, 368, 364, 18680, 10398, 67, 2739, 3639, 309, 261, 3789, 422, 446, 13, 288, 5411, 2623, 273, 819, 18, 588, 3935, 3219, 5621, 3639, 289, 3639, 12208, 3092, 694, 19417, 5555, 273, 819, 18, 588, 3935, 9791, 2 ]
public void setArgsNode(IListNode argsNode) {
public void setArgsNode(INode argsNode) {
public void setArgsNode(IListNode argsNode) { this.argsNode = argsNode; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/f5c9a1ebd775712f2dc086acfce1a14a123ec632/BlockPassNode.java/clean/src/org/jruby/ast/BlockPassNode.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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 2615, 907, 12, 23184, 833, 907, 13, 288, 3639, 333, 18, 1968, 907, 273, 833, 907, 31, 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 ]
setOndblclick((String) evalAttr("ondblclick", getOndblclick(),
setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(),
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELCheckboxTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELCheckboxTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 653, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 8853, 12, 5743, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 15034, 12443, 12, 5507, 13, 5302, 3843, 2932, 19626, 3113, 8088, 329, 4742, 9334, 4766, 6647, 3411, 18, 1106, 13, 2934, 15604, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 15034, 12, 5743, 1769, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 9334, 514, 18, 1106, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 2 ]
throw new OXFException("Error code received when submitting instance: " + resultCode);
throw new OXFException("Error code received when submitting instance: " + connectionResult.resultCode);
public void performDefaultAction(PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XFORMS_SUBMIT.equals(eventName) || XFormsEvents.XXFORMS_SUBMIT.equals(eventName)) { // 11.1 The xforms-submit Event // Bubbles: Yes / Cancelable: Yes / Context Info: None boolean isDeferredSubmissionSecondPass = false; try { // Make sure submission element info is extracted extractSubmissionElement(); final boolean isHandlingOptimizedGet = XFormsUtils.isOptimizeGetAllSubmission() && isGet() && replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isDeferredSubmission = replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isDeferredSubmissionFirstPass = isDeferredSubmission && XFormsEvents.XFORMS_SUBMIT.equals(eventName) && !isHandlingOptimizedGet; isDeferredSubmissionSecondPass = isDeferredSubmission && !isDeferredSubmissionFirstPass; // Select node based on ref or bind final XFormsControls xformsControls = containingDocument.getXFormsControls(); xformsControls.setBinding(pipelineContext, submissionElement); // FIXME: the submission element is not a control... final Node currentNode = xformsControls.getCurrentSingleNode(); if (!(currentNode instanceof Document || currentNode instanceof Element)) { throw new OXFException("xforms:submission: single-node binding must refer to a document node or an element."); } final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Document initialDocumentToSubmit; if (!isDeferredSubmissionSecondPass) { // Create document to submit initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) { if (XFormsServer.logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); XFormsServer.logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); } throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { initialDocumentToSubmit = null; } // Deferred submission: end of the first pass if (isDeferredSubmissionFirstPass) { // When replace="all", we wait for the submission of an XXFormsSubmissionEvent from the client containingDocument.setClientActiveSubmission(this); return; } final Document documentToSubmit; if (isDeferredSubmissionSecondPass) { // Handle uploaded files if any final Element filesElement = (event instanceof XXFormsSubmissionEvent) ? ((XXFormsSubmissionEvent) event).getFilesElement() : null; if (filesElement != null) { for (Iterator i = filesElement.elements().iterator(); i.hasNext();) { final Element parameterElement = (Element) i.next(); final String name = parameterElement.element("name").getTextTrim(); final Element valueElement = parameterElement.element("value"); final String value = valueElement.getTextTrim(); final String paramValueType = Dom4jUtils.qNameToexplodedQName(Dom4jUtils.extractAttributeValueQName(valueElement, XMLConstants.XSI_TYPE_QNAME)); final String filename = parameterElement.element("filename").getTextTrim(); final String mediatype = parameterElement.element("content-type").getTextTrim(); final String size = parameterElement.element("content-length").getTextTrim(); final XFormsControls.UploadControlInfo uploadControl = (XFormsControls.UploadControlInfo) containingDocument.getObjectById(pipelineContext, name); if (uploadControl != null) { // in case of xforms:repeat, the name of the template will not match an existing control // Set value into the instance xformsControls.setBinding(pipelineContext, uploadControl); { final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, value, paramValueType); } // Handle filename if any if (uploadControl.getFilenameElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getFilenameElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, filename, null); xformsControls.popBinding(); } // Handle mediatype if any if (uploadControl.getMediatypeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getMediatypeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, mediatype, null); xformsControls.popBinding(); } // Handle file size if any if (uploadControl.getSizeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getSizeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, size, null); xformsControls.popBinding(); } } } } // Create document to submit documentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(documentToSubmit); if (!instanceSatisfiesValidRequired) {// currentInstance.readOut();// FIXME: DEBUG throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { // Don't recreate document documentToSubmit = initialDocumentToSubmit; } // Serialize // To support: application/xml, application/x-www-form-urlencoded, multipart/related, multipart/form-data final byte[] serializedInstance; final String serializedInstanceString; { if (isPost() || isPut()) { try { final Transformer identity = TransformerUtils.getIdentityTransformer(); TransformerUtils.applyOutputProperties(identity, "xml", version, null, null, encoding, omitxmldeclaration, standalone, indent, 4); // TODO: use cdata-section-elements final ByteArrayOutputStream os = new ByteArrayOutputStream(); identity.transform(new DocumentSource(documentToSubmit), new StreamResult(os)); serializedInstance = os.toByteArray(); } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing instance to XML.", e); } serializedInstanceString = null; } else if (isGet()) { // Perform "application/x-www-form-urlencoded" serialization serializedInstanceString = createWwwFormUrlEncoded(documentToSubmit); serializedInstance = null; } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); // Result information int resultCode = 0; String resultMediaType = null; Map resultHeaders = null; InputStream resultInputStream = null; HttpURLConnection urlConnection = null; OutputStream os = null; boolean dontHandleResponse = false; try { if (isHandlingOptimizedGet) { // GET with replace="all" // We can optimize and tell the client to load the URL final String actionString = action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; XFormsActionInterpreter.resolveLoadValue(containingDocument, pipelineContext, submissionElement, true, actionString, null); dontHandleResponse = true; } else if ((XFormsUtils.isOptimizeLocalSubmission() || isMethodOptimizedLocalSubmission()) && action.startsWith("/")) { // TODO // && !externalContext.getRequest().getContainerType().equals("portlet") // This is a "local" submission, i.e. in the same web application // The submission can be optimized. // NOTE: It is not possible to use include() with portlets, because it is // not possible to intercept the response, unlike with servlets. Also, there // is no concept of forward() with portlets. In the case of portlets, we can // therefore not optimize. // FIXME: How to deal with absolute paths on the same server, but not in // the web application? Just use absolute URLs? ExternalContext.RequestDispatcher requestDispatcher = externalContext.getRequestDispatcher(action); try { if (isPost() || isPut() || isGet()) { // Create requestAdapter depending on method final ForwardExternalContextRequestWrapper requestAdapter; { if (isPost() || isPut()) requestAdapter= new ForwardExternalContextRequestWrapper(externalContext.getRequest(), action, method.toUpperCase(), (mediatype != null) ? mediatype : "application/xml", serializedInstance); else { final String actionString = action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; requestAdapter = new ForwardExternalContextRequestWrapper(externalContext.getRequest(), actionString, method.toUpperCase()); } } if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL)) { // Just forward the reply // TODO: xforms-submit-done must be sent before the body is forwarded containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); requestDispatcher.forward(requestAdapter, externalContext.getResponse()); dontHandleResponse = true; } else { // We must intercept the reply final ResponseAdapter responseAdapter = new ResponseAdapter(); requestDispatcher.include(requestAdapter, responseAdapter); // Get response information that needs to be forwarded resultCode = responseAdapter.getResponseCode();// TODO: this is bad, because the code is actually not propagated from the other side. We should probably not use "optimized" submission here. // resultMediaType = NetUtils.getContentTypeMediaType(responseAdapter.getContentType()); // resultHeaders = responseAdapter.getHeaders(); resultMediaType = ProcessorUtils.XML_CONTENT_TYPE; resultInputStream = responseAdapter.getInputStream(); } } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } catch (IOException e) { throw new OXFException(e); } } else { // This is a "remote" submission, i.e. using an absolute URL, OR a "local" submission from a portlet // Compute submission URL final URL submissionURL; try { final String actionString = (serializedInstanceString == null) ? action : action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; if (action.startsWith("/")) { // Case of "local" portlet submission final String requestURL = externalContext.getRequest().getRequestURL(); submissionURL = URLFactory.createURL(requestURL, externalContext.getRequest().getContextPath() + actionString);//TODO: should be relative to actual page's request URL, and use xml:base as well! } else if (NetUtils.urlHasProtocol(actionString)) { // Case of absolute URL submissionURL = URLFactory.createURL(actionString); } else { throw new OXFException("xforms:submission: invalid action: " + actionString);// final String requestURL = externalContext.getRequest().getRequestURL();//// if (requestURL != null) {// submissionURL = URLFactory.createURL(requestURL, action);// } else {// throw new OXFException("xforms:submission: cannot resolve relative action: " + action);// } } } catch (MalformedURLException e) { throw new OXFException("xforms:submission: invalid action: " + action, e); } // Perform submission final String scheme = submissionURL.getProtocol(); if (scheme.equals("http") || scheme.equals("https")) { // http MUST be supported // https SHOULD be supported urlConnection = (HttpURLConnection) submissionURL.openConnection(); if (isPost() || isPut() || isGet()) { urlConnection.setDoInput(true); urlConnection.setDoOutput(!isGet()); // Only if POST / PUT urlConnection.setRequestMethod(method.toUpperCase()); urlConnection.setRequestProperty("content-type", (mediatype != null) ? mediatype : "application/xml"); urlConnection.connect(); // Write request body if (!isGet()) { os = urlConnection.getOutputStream(); os.write(serializedInstance); } // Get response information that needs to be forwarded resultCode = urlConnection.getResponseCode(); final String contentType = urlConnection.getContentType(); resultMediaType = NetUtils.getContentTypeMediaType(contentType); resultHeaders = urlConnection.getHeaderFields(); resultInputStream = urlConnection.getInputStream(); } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } else if (scheme.equals("file")) { // TODO // SHOULD be supported // Question: should support oxf: as well? throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else if (scheme.equals("mailto")) { // TODO // MAY be supported throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else { throw new OXFException("xforms:submission: submission URL scheme not supported: " + scheme); } } if (!dontHandleResponse) { // Handle response if (resultCode == 200) { // Sucessful response final boolean hasContent; { if (resultInputStream == null) { hasContent = false; } else { if (!resultInputStream.markSupported()) resultInputStream = new BufferedInputStream(resultInputStream); resultInputStream.mark(1); hasContent = resultInputStream.read() != -1; resultInputStream.reset(); } } if (hasContent) { // There is a body if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL)) { // When we get here, we are in a mode where we need to send the reply // directly to an external context, if any. // "the event xforms-submit-done is dispatched" containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response if (resultHeaders != null) { for (Iterator i = resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward content to response NetUtils.copyStream(resultInputStream, response.getOutputStream()); } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_INSTANCE)) { final ByteArrayOutputStream resultByteArrayOutputStream = new ByteArrayOutputStream(); NetUtils.copyStream(resultInputStream, resultByteArrayOutputStream); byte[] submissionResponse = resultByteArrayOutputStream.toByteArray(); if (ProcessorUtils.isXMLContentType(resultMediaType)) { // Handling of XML media type try { final Transformer identity = TransformerUtils.getIdentityTransformer(); final LocationDocumentResult documentResult = new LocationDocumentResult(); identity.transform(new StreamSource(new ByteArrayInputStream(submissionResponse)), documentResult); final Document resultingInstanceDocument = documentResult.getDocument(); // Set new instance document to replace the one submitted final XFormsInstance replaceInstance = (replaceInstanceId == null) ? currentInstance : model.getInstance(replaceInstanceId); if (replaceInstance == null) { containingDocument.dispatchEvent(pipelineContext, new XFormsBindingExceptionEvent(XFormsModelSubmission.this)); } else { // Get repeat index information just before insertion final Map previousRepeatIdToIndex; { final Map map = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); previousRepeatIdToIndex = (map == null) ? null : new HashMap(map); } // Set new instance replaceInstance.setInstanceDocument(resultingInstanceDocument); // Mark all values as changed so that refresh sends appropriate events XFormsUtils.markAllValuesChanged(replaceInstance.getDocument()); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // "Once the XML instance data has been replaced, // the rebuild, recalculate, revalidate and refresh // operations are performed on the model, without // dispatching events to invoke those four // operations." model.doRebuild(pipelineContext); model.doRecalculate(pipelineContext); model.doRevalidate(pipelineContext); model.doRefresh(pipelineContext); // Update repeat indexes if necessary // The idea is that if a repeat index was set to 0 // (which can only happen when a repeat node-set is // empty) and instance replacement causes the // node-set to be non-empty, then the repeat index // must be set to the initial repeat index for that // repeat. if (previousRepeatIdToIndex != null) { final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final Map currentRepeatIdToIndex = currentControlsState.getRepeatIdToIndex(); final Map intialRepeatIdToIndex = currentControlsState.getDefaultRepeatIdToIndex(); final Map effectiveRepeatIdToIterations = currentControlsState.getEffectiveRepeatIdToIterations(); if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { for (Iterator i = previousRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer previouslIndex = (Integer) currentEntry.getValue();// final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); final Integer newIterations = (Integer) effectiveRepeatIdToIterations.get(repeatId); if (previouslIndex.intValue() == 0 && newIterations.intValue() > 0) { // Set index to defaul value final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId);// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, initialRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } else { // Just reset index and make sure it is within bounds// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, previousRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events// final Integer previousRepeatIndex = (Integer) previousRepeatIdToIndex.get(repeatId);// currentControlsState.updateRepeatIndex(repeatId, previousRepeatIndex.intValue()); final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId); currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } } } } // Notify that submission is done containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing XML to instance.", e); } } else { // Other media type throw new OXFException("Body received with non-XML media type for replace=\"instance\": " + resultMediaType); } } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_NONE)) { // Just notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } else { throw new OXFException("xforms:submission: invalid replace attribute: " + replace); } } else { // There is no body, notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } else if (resultCode == 302 || resultCode == 301) { // Got a redirect final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response // TODO: this is duplicated from above if (resultHeaders != null) { for (Iterator i = resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward redirect response.setStatus(resultCode); } else { // Error code received throw new OXFException("Error code received when submitting instance: " + resultCode); } } } finally { // Clean-up if (os != null) { try { os.close(); } catch (IOException e) { throw new OXFException("Exception while closing output stream for action: " + action); } } if (resultInputStream != null) { try { resultInputStream.close(); } catch (IOException e) { throw new OXFException("Exception while closing input stream for action: " + action); } } if (urlConnection != null) urlConnection.disconnect(); } } catch (Throwable e) { if (isDeferredSubmissionSecondPass && XFormsUtils.isOptimizePostAllSubmission()) { // It doesn't serve any purpose here to dispatch an event, so we just propagate the exception throw new OXFException(e); } else { // Any exception will cause an error event to be dispatched containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitErrorEvent(XFormsModelSubmission.this, action, e)); } } } else if (XFormsEvents.XFORMS_BINDING_EXCEPTION.equals(eventName)) { // The default action for this event results in the following: Fatal error. throw new OXFException("Binding exception."); } }
10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/7d5f64cdd8f43075e248143706be45d2af32ca88/XFormsModelSubmission.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3073, 1868, 1803, 12, 8798, 1042, 5873, 1042, 16, 1139, 18529, 1133, 871, 13, 288, 3639, 727, 514, 7933, 273, 871, 18, 588, 24320, 5621, 3639, 309, 261, 60, 18529, 3783, 18, 60, 4983, 55, 67, 8362, 6068, 18, 14963, 12, 2575, 461, 13, 747, 1139, 18529, 3783, 18, 5619, 4983, 55, 67, 8362, 6068, 18, 14963, 12, 2575, 461, 3719, 288, 5411, 368, 4648, 18, 21, 1021, 619, 9741, 17, 9297, 2587, 5411, 368, 605, 22298, 1040, 30, 19925, 342, 10347, 429, 30, 19925, 342, 1772, 3807, 30, 599, 5411, 1250, 353, 16886, 17865, 8211, 6433, 273, 629, 31, 5411, 775, 288, 7734, 368, 4344, 3071, 8515, 930, 1123, 353, 9438, 7734, 2608, 17865, 1046, 5621, 7734, 727, 1250, 353, 14701, 13930, 1235, 967, 273, 1139, 18529, 1989, 18, 291, 6179, 10153, 21413, 17865, 1435, 597, 353, 967, 1435, 597, 1453, 18, 14963, 12, 60, 18529, 2918, 18, 60, 4983, 55, 67, 8362, 6068, 67, 21726, 67, 4685, 1769, 7734, 727, 1250, 353, 16886, 17865, 273, 1453, 18, 14963, 12, 60, 18529, 2918, 18, 60, 4983, 55, 67, 8362, 6068, 67, 21726, 67, 4685, 1769, 7734, 727, 1250, 353, 16886, 17865, 3759, 6433, 273, 353, 16886, 17865, 597, 1139, 18529, 3783, 18, 60, 4983, 55, 67, 8362, 6068, 18, 14963, 12, 2575, 461, 13, 597, 401, 291, 14701, 13930, 1235, 967, 31, 7734, 353, 16886, 17865, 8211, 6433, 273, 353, 16886, 17865, 597, 401, 291, 16886, 17865, 3759, 6433, 31, 7734, 368, 6766, 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, 3073, 1868, 1803, 12, 8798, 1042, 5873, 1042, 16, 1139, 18529, 1133, 871, 13, 288, 3639, 727, 514, 7933, 273, 871, 18, 588, 24320, 5621, 3639, 309, 261, 60, 18529, 3783, 18, 60, 4983, 55, 67, 8362, 6068, 18, 14963, 12, 2575, 461, 13, 747, 1139, 18529, 3783, 18, 5619, 4983, 55, 67, 8362, 6068, 18, 14963, 12, 2575, 461, 3719, 288, 5411, 368, 4648, 18, 21, 1021, 619, 9741, 17, 9297, 2587, 5411, 368, 605, 22298, 1040, 30, 19925, 342, 10347, 429, 30, 19925, 342, 1772, 3807, 30, 599, 5411, 1250, 353, 16886, 17865, 8211, 6433, 273, 629, 31, 5411, 775, 288, 7734, 368, 4344, 3071, 8515, 930, 1123, 353, 9438, 7734, 2608, 17865, 1046, 2 ]
protected void evaluatePostfixMethod(String method, Expression expression) { leftHandExpression = false; expression.visit(this); int tempIdx = defineVariable(createVariableName("postfix"), "java.lang.Object", false).getIndex(); cv.visitVarInsn(ASTORE, tempIdx); cv.visitVarInsn(ALOAD, tempIdx); cv.visitLdcInsn(method); new ArgumentListExpression().visit(this); invokeMethodMethod.call(cv); leftHandExpression = true; expression.visit(this); leftHandExpression = false; cv.visitVarInsn(ALOAD, tempIdx); }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/8174082962d2d29cd1dc67593b7e05a26f41faa7/ClassGenerator.java/clean/src/main/org/codehaus/groovy/classgen/ClassGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5956, 24505, 1305, 12, 780, 707, 16, 5371, 2652, 13, 288, 3639, 2002, 1144, 2300, 273, 629, 31, 3639, 2652, 18, 11658, 12, 2211, 1769, 3639, 509, 1906, 4223, 273, 4426, 3092, 12, 2640, 21519, 2932, 2767, 904, 6, 3631, 315, 6290, 18, 4936, 18, 921, 3113, 629, 2934, 588, 1016, 5621, 3639, 8951, 18, 11658, 1537, 11796, 12, 9053, 8607, 16, 1906, 4223, 1769, 3639, 8951, 18, 11658, 1537, 11796, 12, 1013, 51, 1880, 16, 1906, 4223, 1769, 3639, 8951, 18, 11658, 48, 7201, 11796, 12, 2039, 1769, 3639, 394, 5067, 682, 2300, 7675, 11658, 12, 2211, 1769, 3639, 27632, 1305, 18, 1991, 12, 19774, 1769, 3639, 2002, 1144, 2300, 273, 638, 31, 3639, 2652, 18, 11658, 12, 2211, 1769, 3639, 2002, 1144, 2300, 273, 629, 31, 3639, 8951, 18, 11658, 1537, 11796, 12, 1013, 51, 1880, 16, 1906, 4223, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 5956, 24505, 1305, 12, 780, 707, 16, 5371, 2652, 13, 288, 3639, 2002, 1144, 2300, 273, 629, 31, 3639, 2652, 18, 11658, 12, 2211, 1769, 3639, 509, 1906, 4223, 273, 4426, 3092, 12, 2640, 21519, 2932, 2767, 904, 6, 3631, 315, 6290, 18, 4936, 18, 921, 3113, 629, 2934, 588, 1016, 5621, 3639, 8951, 18, 11658, 1537, 11796, 12, 9053, 8607, 16, 1906, 4223, 1769, 3639, 8951, 18, 11658, 1537, 11796, 12, 1013, 51, 1880, 16, 1906, 4223, 1769, 3639, 8951, 18, 11658, 48, 7201, 11796, 12, 2039, 1769, 3639, 394, 5067, 682, 2300, 7675, 11658, 12, 2211, 1769, 3639, 27632, 1305, 18, 1991, 12, 19774, 1769, 3639, 2002, 1144, 2300, 273, 638, 31, 3639, 2652, 2 ]
if (jj_scan_token(BANG)) return true;
if (jj_scan_token(REM)) return true;
final private boolean jj_3R_337() { if (jj_scan_token(BANG)) return true; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/a180e9b19197c7613f1e73c6ec8a574a17011e5e/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 3707, 27, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 862, 49, 3719, 327, 638, 31, 565, 327, 629, 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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 3707, 27, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 862, 49, 3719, 327, 638, 31, 565, 327, 629, 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 ]
public void setPageNumber(long pageNo) {
public void setPageNumber( long pageNo ) {
public void setPageNumber(long pageNo) { pageNumber = pageNo; scriptContext.registerBean("pageNumber", new Long(pageNumber)); if (totalPage < pageNumber) { setTotalPage(pageNumber); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b900dee3dd264c71eb7ed27f88571d5b40a336c0/ExecutionContext.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18663, 1854, 12, 5748, 1363, 2279, 13, 288, 202, 202, 2433, 1854, 273, 1363, 2279, 31, 202, 202, 4263, 1042, 18, 4861, 3381, 2932, 2433, 1854, 3113, 394, 3407, 12, 2433, 1854, 10019, 202, 202, 430, 261, 4963, 1964, 411, 26484, 13, 288, 1082, 202, 542, 5269, 1964, 12, 2433, 1854, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18663, 1854, 12, 5748, 1363, 2279, 13, 288, 202, 202, 2433, 1854, 273, 1363, 2279, 31, 202, 202, 4263, 1042, 18, 4861, 3381, 2932, 2433, 1854, 3113, 394, 3407, 12, 2433, 1854, 10019, 202, 202, 430, 261, 4963, 1964, 411, 26484, 13, 288, 1082, 202, 542, 5269, 1964, 12, 2433, 1854, 1769, 202, 202, 97, 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 ]
log.info(id + "=" + selectedValues[i]);
public int doEndTag() throws JspException { fieldErrors = (List)findOnValueStack("#fieldErrors." + name); errorAction = findOnValueStack("#errorAction"); if(errorAction != null) { Object obj = findOnValueStack("#errorAction." + name); if(obj instanceof String) selectedValues = new String[]{(String)obj}; else if(obj instanceof String[]) selectedValues = (String[])obj; } String errorMessage = ""; if(fieldErrors != null && fieldErrors.size() > 0) { Iterator i = fieldErrors.iterator(); while(i.hasNext()) { String fieldError = (String)i.next(); String translatedError = this.getLabel(fieldError); if(translatedError != null && translatedError.length() > 0) fieldError = translatedError; errorMessage = "<span class=\"errorMessage\">" + fieldError + "</span>"; } } StringBuffer sb = new StringBuffer(); sb.append("<div class=\"fieldrow\">"); if(this.label != null) sb.append("<label for=\"" + this.name + "\">" + this.label + "</label>" + (mandatory ? "<span class=\"redstar\">*</span>" : "") + " " + errorMessage + "<br>"); else sb.append("<label for=\"" + this.name + "\">" + this.name + "</label>" + (mandatory ? "<span class=\"redstar\">*</span>" : "") + " " + errorMessage + "<br>"); sb.append("<select id=\"" + name + "\" name=\"" + name + "\" " + (multiple.equals("false") ? "" : "multiple=\"true\"") + " " + (size.equals("") ? "" : "size=\"" + size + "\"") + " class=\"" + cssClass + "\">"); if(this.headerItem != null) { String selectedTop = ""; if((selectedValues == null || selectedValues.length == 0 || selectedValues[0].length() == 0) && (selectedValueList == null || selectedValueList.size() == 0) && (selectedValueSet == null || selectedValueSet.size() == 0)) selectedTop = "selected=\"true\""; sb.append("<option value=\"\" " + selectedTop + ">" + headerItem + "</option>"); sb.append("<option value=\"\">------------------</option>"); } if(values != null) { Iterator valuesIterator = values.iterator(); while(valuesIterator.hasNext()) { String id; String optionText; Object obj = valuesIterator.next(); if(obj instanceof InfoGluePrincipal) { InfoGluePrincipal value = (InfoGluePrincipal)obj; id = value.getName().toString(); optionText = value.getFirstName() + " " + value.getLastName(); } else if(obj instanceof InfoGlueRole) { InfoGlueRole value = (InfoGlueRole)obj; id = value.getName().toString(); optionText = value.getName(); } else if(obj instanceof InfoGlueGroup) { InfoGlueGroup value = (InfoGlueGroup)obj; id = value.getName().toString(); optionText = value.getName(); } else if(obj instanceof BaseEntity) { BaseEntity value = (BaseEntity)obj; id = value.getId().toString(); optionText = value.getName(); } else { String value = obj.toString(); id = value; optionText = value; } String selected = ""; if(selectedValues != null) { for(int i=0; i<selectedValues.length; i++) { //System.out.println(id + "=" + selectedValues[i]); if(id.equalsIgnoreCase(selectedValues[i])) { selected = " selected=\"1\""; break; } else selected = ""; } } else if(selectedValueList != null) { Iterator selectedValueListIterator = selectedValueList.iterator(); while(selectedValueListIterator.hasNext()) { String selId; Object selObj = selectedValueListIterator.next(); if(selObj instanceof InfoGluePrincipal) { InfoGluePrincipal selValue = (InfoGluePrincipal)selObj; selId = selValue.getName().toString(); } else if(selObj instanceof InfoGlueRole) { InfoGlueRole value = (InfoGlueRole)selObj; selId = value.getName().toString(); } else if(selObj instanceof InfoGlueGroup) { InfoGlueGroup value = (InfoGlueGroup)selObj; selId = value.getName().toString(); } else if(selObj instanceof Role) { Role value = (Role)selObj; selId = value.getName().toString(); } else if(selObj instanceof Group) { Group value = (Group)selObj; selId = value.getName().toString(); } else { BaseEntity selValue = (BaseEntity)selObj; selId = selValue.getId().toString(); } log.info(id + "=" + selId); if(id.equalsIgnoreCase(selId)) selected = " selected=\"1\""; } } else if(selectedValueSet != null) { Iterator selectedValueSetIterator = selectedValueSet.iterator(); while(selectedValueSetIterator.hasNext()) { String selId; Object selObj = selectedValueSetIterator.next(); if(selObj instanceof InfoGluePrincipal) { InfoGluePrincipal selValue = (InfoGluePrincipal)selObj; selId = selValue.getName().toString(); } else if(selObj instanceof InfoGlueRole) { InfoGlueRole value = (InfoGlueRole)selObj; selId = value.getName().toString(); } else if(selObj instanceof InfoGlueGroup) { InfoGlueGroup value = (InfoGlueGroup)selObj; selId = value.getName().toString(); } else if(selObj instanceof Role) { Role value = (Role)selObj; selId = value.getName().toString(); } else if(selObj instanceof Group) { Group value = (Group)selObj; selId = value.getName().toString(); } else { BaseEntity selValue = (BaseEntity)selObj; selId = selValue.getId().toString(); } if(id.equalsIgnoreCase(selId)) selected = " selected=\"1\""; } } sb.append("<option value=\"" + id + "\"" + selected + ">" + optionText + "</option>"); } } sb.append("</select>"); sb.append("</div>"); write(sb.toString()); return EVAL_PAGE; }
56353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56353/78ea4da985af55098db7f53b337b29366d72ce14/SelectFieldTag.java/buggy/src/org/infoglue/calendar/taglib/SelectFieldTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 509, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 741, 25633, 1435, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 1216, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 27485, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 288, 202, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 652, 4229, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 273, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 261, 682, 13, 4720, 1398, 620, 2624, 2932, 7, 1518, 4229, 1199, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 397, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 508, 1769, 202, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 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, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 509, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 741, 25633, 1435, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 1216, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 27485, 1330, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 613, 18, 1376, 12, 350, 397, 9671, 397, 3170, 1972, 63, 77, 19226, 288, 202, 1330, 18, 1376, 12, 2 ]
sequences.charAt(child.labelStart+getPathLength(child)-getEdgeLength(child)));
sequences.charAt(child.labelStart+getPathLength(child)-getEdgeLength(child)));
private SuffixNode doRule3(SuffixNode child, int splittingPos, int suffixStart){// return toBeSplit.splitEdge(endOfSubSeq, sequences.charAt(endOfSubSeq),// toBeSplit.getStart()+endOfSubSeq-rule3Position,// suffixStart); int number = getAllNodes(root, null, false).size(); SuffixNode parent = child.parent; SuffixNode middle= new SuffixNode(parent,suffixStart,splittingPos); Character x=new Character( sequences.charAt(child.labelStart+getPathLength(child)-getEdgeLength(child))); //System.out.println(parent.children.get(x)==child); Character y=new Character(sequences.charAt( child.labelStart +getPathLength(child)-getEdgeLength(child) +getEdgeLength(middle) )); parent.children.remove(x); parent.children.put(x,middle); middle.children.put(y,child); child.parent=middle; //System.out.println("rule 3: "+sequences.charAt(splittingPos)+" between "+getLabel(parent)+" and "+getLabel(child) + " Addition made:"+(number==getAllNodes(root, null,false).size()-1)); doRule2(middle,splittingPos,suffixStart); return middle; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/95bc62637cc1c5915fa92655f2d5e796441df9cb/UkkonenSuffixTree.java/clean/src/org/biojava/bio/symbol/UkkonenSuffixTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 348, 2609, 907, 741, 2175, 23, 12, 5791, 907, 1151, 16, 509, 20347, 1616, 16, 509, 3758, 1685, 15329, 759, 1377, 327, 21333, 5521, 18, 4939, 6098, 12, 409, 951, 1676, 6926, 16, 8463, 18, 3001, 861, 12, 409, 951, 1676, 6926, 3631, 759, 9506, 4202, 21333, 5521, 18, 588, 1685, 1435, 15, 409, 951, 1676, 6926, 17, 5345, 23, 2555, 16, 759, 9506, 4202, 3758, 1685, 1769, 565, 509, 1300, 273, 5514, 3205, 12, 3085, 16, 446, 16, 629, 2934, 1467, 5621, 565, 348, 2609, 907, 982, 273, 1151, 18, 2938, 31, 565, 348, 2609, 907, 7689, 33, 394, 348, 2609, 907, 12, 2938, 16, 8477, 1685, 16, 4939, 1787, 1616, 1769, 565, 6577, 619, 33, 2704, 6577, 12, 1377, 8463, 18, 3001, 861, 12, 3624, 18, 1925, 1685, 15, 588, 743, 1782, 12, 3624, 24950, 588, 6098, 1782, 12, 3624, 3719, 1769, 565, 368, 3163, 18, 659, 18, 8222, 12, 2938, 18, 5906, 18, 588, 12, 92, 13, 631, 3624, 1769, 565, 6577, 677, 33, 2704, 6577, 12, 17190, 18, 3001, 861, 12, 9506, 202, 3624, 18, 1925, 1685, 9506, 202, 15, 588, 743, 1782, 12, 3624, 24950, 588, 6098, 1782, 12, 3624, 13, 9506, 202, 15, 588, 6098, 1782, 12, 18661, 13, 9506, 202, 10019, 565, 982, 18, 5906, 18, 4479, 12, 92, 1769, 565, 982, 18, 5906, 18, 458, 12, 92, 16, 18661, 1769, 565, 7689, 18, 5906, 18, 458, 12, 93, 16, 3624, 1769, 565, 1151, 18, 2938, 33, 18661, 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, 348, 2609, 907, 741, 2175, 23, 12, 5791, 907, 1151, 16, 509, 20347, 1616, 16, 509, 3758, 1685, 15329, 759, 1377, 327, 21333, 5521, 18, 4939, 6098, 12, 409, 951, 1676, 6926, 16, 8463, 18, 3001, 861, 12, 409, 951, 1676, 6926, 3631, 759, 9506, 4202, 21333, 5521, 18, 588, 1685, 1435, 15, 409, 951, 1676, 6926, 17, 5345, 23, 2555, 16, 759, 9506, 4202, 3758, 1685, 1769, 565, 509, 1300, 273, 5514, 3205, 12, 3085, 16, 446, 16, 629, 2934, 1467, 5621, 565, 348, 2609, 907, 982, 273, 1151, 18, 2938, 31, 565, 348, 2609, 907, 7689, 33, 394, 348, 2609, 907, 12, 2938, 16, 8477, 1685, 16, 4939, 1787, 1616, 1769, 565, 6577, 619, 33, 2 ]
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/b1293eda8454686e846e2a9837b348e2983bb423/LocalVarNode.java/buggy/src/org/jruby/ast/LocalVarNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 31, 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, -100, -100, -100, -100, -100, -100 ]
return null;
return backBuffer;
public Image getBackBuffer () { return null; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/0440efa0a514d615b497b1b8fc815b4345a1dcdf/GtkComponentPeer.java/buggy/libraries/javalib/gnu/java/awt/peer/gtk/GtkComponentPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3421, 336, 2711, 1892, 1832, 225, 288, 565, 327, 1473, 1892, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3421, 336, 2711, 1892, 1832, 225, 288, 565, 327, 1473, 1892, 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, -100, -100, -100, -100 ]
_items.removeElement(item); }
_items.removeElement(item); }
public void removeItem(CheckItem item) { _items.removeElement(item); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/Checklist.java/clean/src_new/org/argouml/cognitive/checklist/Checklist.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 29178, 12, 1564, 1180, 761, 13, 288, 565, 389, 3319, 18, 4479, 1046, 12, 1726, 1769, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 29178, 12, 1564, 1180, 761, 13, 288, 565, 389, 3319, 18, 4479, 1046, 12, 1726, 1769, 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 ]