rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
} }); break; case LENGTH_CHANGED: if (progressBar.isIndeterminate()) { progressBar.setIndeterminate(false); } SwingUtilities.invokeLater(new Runnable() { public void run() { progressBar.setMaximum(task.getLength()); } }); break; case STOPPED: afterStopped(); setVisible(false); dispose(); break; } }
}); break; case STOPPING: setVisible(false); dispose(); break; case STOPPED: afterStopped(value); break; } } }
public void update(Observable o, Object arg) { final ProgressBar pb = this; if (arg instanceof Task.Message) { Task.Message msg = (Task.Message)arg; logger.debug("Received message: "+msg); switch (msg) { case STARTING: SwingUtilities.invokeLater(new Runnable() { public void run() { setLocationRelativeTo(parent); setVisible(true); logger.debug("Progress bar visible"); } }); break; case POSITION_CHANGED: SwingUtilities.invokeLater(new Runnable() { public void run() { progressBar.setValue(task.getPosition()); } }); break; case MESSAGE_CHANGED: SwingUtilities.invokeLater(new Runnable() { public void run() { String text = task.getStatusMessage(); statusField.setText(text); progressBar.setString(text); int curWidth = statusField.getWidth(); if (text.length() > (curWidth/charSizeApprox)) { int newWidth = new Double(text.length()*charSizeApprox).intValue(); pb.setSize(pb.getWidth()+(newWidth-curWidth),pb.getHeight()); } } }); break; case LENGTH_CHANGED: if (progressBar.isIndeterminate()) { progressBar.setIndeterminate(false); } SwingUtilities.invokeLater(new Runnable() { public void run() { progressBar.setMaximum(task.getLength()); } }); break; case STOPPED: afterStopped(); setVisible(false); dispose(); break; } } if (arg instanceof Exception) { exceptionHandler((Exception)arg); } }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/d31dbab586fd8bb367e8dc29ef0b94562105e331/ProgressBar.java/buggy/trunk/src/net/sf/plantlore/common/ProgressBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 15279, 320, 16, 1033, 1501, 13, 288, 3639, 727, 27793, 6386, 273, 333, 31, 3639, 309, 261, 3175, 1276, 3837, 18, 1079, 13, 288, 5411, 3837, 18, 1079, 1234, 273, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 15279, 320, 16, 1033, 1501, 13, 288, 3639, 727, 27793, 6386, 273, 333, 31, 3639, 309, 261, 3175, 1276, 3837, 18, 1079, 13, 288, 5411, 3837, 18, 1079, 1234, 273, 261...
cfw.add(ByteCode.INVOKEVIRTUAL,
cfw.add(ByteCode.INVOKEINTERFACE,
private static void generateReturnResult(ClassFileWriter cfw, Class retType) { // wrap boolean values with java.lang.Boolean, convert all other // primitive values to java.lang.Double. if (retType.equals(Boolean.TYPE)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toBoolean", "(Ljava/lang/Object;)", "Z"); cfw.add(ByteCode.IRETURN); } else if (retType.equals(Character.TYPE)) { // characters are represented as strings in JavaScript. // return the first character. // first convert the value to a string if possible. cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ICONST_0); cfw.add(ByteCode.INVOKEVIRTUAL, "java/lang/String", "charAt", "(I)", "C"); cfw.add(ByteCode.IRETURN); } else if (retType.isPrimitive()) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toNumber", "(Ljava/lang/Object;)", "D"); String typeName = retType.getName(); switch (typeName.charAt(0)) { case 'b': case 's': case 'i': cfw.add(ByteCode.D2I); cfw.add(ByteCode.IRETURN); break; case 'l': cfw.add(ByteCode.D2L); cfw.add(ByteCode.LRETURN); break; case 'f': cfw.add(ByteCode.D2F); cfw.add(ByteCode.FRETURN); break; case 'd': cfw.add(ByteCode.DRETURN); break; default: throw new RuntimeException("Unexpected return type " + retType.toString()); } } else if (retType.equals(String.class)) { cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toString", "(Ljava/lang/Object;)", "Ljava/lang/String;"); cfw.add(ByteCode.ARETURN); } else if (retType.equals(Scriptable.class)) { cfw.add(ByteCode.ALOAD_0); // load 'this' to find scope from cfw.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/Context", "toObject", "(Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.ARETURN); } else { // If it is a wrapped type, cast to Wrapper and call unwrap() cfw.add(ByteCode.DUP); cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper"); // skip 3 for IFEQ, 3 for CHECKCAST, and 3 for INVOKEVIRTUAL cfw.add(ByteCode.IFEQ, 9); cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper"); cfw.add(ByteCode.INVOKEVIRTUAL, "org/mozilla/javascript/Wrapper", "unwrap", "()", "Ljava/lang/Object;"); // Now cast to return type String retTypeStr = retType.getName().replace('.', '/'); cfw.add(ByteCode.CHECKCAST, retTypeStr); cfw.add(ByteCode.ARETURN); } }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/1057414fef7dea2519e65ecdda7e454a93a53478/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2103, 990, 1253, 12, 797, 812, 2289, 6080, 91, 16, 4766, 2868, 1659, 325, 559, 13, 377, 288, 3639, 368, 2193, 1250, 924, 598, 2252, 18, 4936, 18, 5507, 16, 1765, 777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2103, 990, 1253, 12, 797, 812, 2289, 6080, 91, 16, 4766, 2868, 1659, 325, 559, 13, 377, 288, 3639, 368, 2193, 1250, 924, 598, 2252, 18, 4936, 18, 5507, 16, 1765, 777, ...
return new ClasspathDomain(bundlefile.getBaseFile().toURL(), permissions);
Certificate[] certs = null; if (bundlefile instanceof CertificateVerifier) { CertificateChain[] chains = ((CertificateVerifier) bundlefile).getChains(); certs = chains == null || chains.length == 0 ? null : chains[0].getCertificates(); } return new ProtectionDomain(new CodeSource(bundlefile.getBaseFile().toURL(), certs), permissions);
public static ProtectionDomain createProtectionDomain(BundleFile bundlefile, ProtectionDomain baseDomain) { // create a protection domain which knows about the codesource for this classpath entry (bug 89904) try { // use the permissions supplied by the domain passed in from the framework PermissionCollection permissions; if (baseDomain != null) permissions = baseDomain.getPermissions(); else // no domain specified. Better use a collection that has all permissions // this is done just incase someone sets the security manager later permissions = ALLPERMISSIONS; return new ClasspathDomain(bundlefile.getBaseFile().toURL(), permissions); } catch (MalformedURLException e) { // Failed to create our own domain; just return the baseDomain return baseDomain; } }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/c2efbe45e2731ee8183cd576d15061657911b102/DefaultClassLoader.java/buggy/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1186, 9694, 3748, 752, 16938, 3748, 12, 3405, 812, 3440, 768, 16, 1186, 9694, 3748, 1026, 3748, 13, 288, 202, 202, 759, 752, 279, 17862, 2461, 1492, 21739, 2973, 326, 6198,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1186, 9694, 3748, 752, 16938, 3748, 12, 3405, 812, 3440, 768, 16, 1186, 9694, 3748, 1026, 3748, 13, 288, 202, 202, 759, 752, 279, 17862, 2461, 1492, 21739, 2973, 326, 6198,...
vSubTypes.add( new DefaultChartSubTypeImpl( Messages.getString("AreaChart.Tooltip.Stacked"), imgStackedWithDepth, sStackedDescription ) );
vSubTypes.add( new DefaultChartSubTypeImpl( STACKED_SUBTYPE_LITERAL , imgStackedWithDepth, sStackedDescription ) );
public Collection getChartSubtypes( String sDimension, Orientation orientation ) { Vector vSubTypes = new Vector( ); if ( sDimension.equals( TWO_DIMENSION_TYPE ) || sDimension.equals( ChartDimension.TWO_DIMENSIONAL_LITERAL.getName( ) ) ) { if ( orientation.equals( Orientation.VERTICAL_LITERAL ) ) { imgStacked = UIHelper.getImage( "icons/wizban/stackedareachartimage.gif" ); //$NON-NLS-1$ imgPercentStacked = UIHelper.getImage( "icons/wizban/percentstackedareachartimage.gif" ); //$NON-NLS-1$ imgSideBySide = UIHelper.getImage( "icons/wizban/sidebysideareachartimage.gif" ); //$NON-NLS-1$ } else { imgStacked = UIHelper.getImage( "icons/wizban/horizontalstackedareachartimage.gif" ); //$NON-NLS-1$ imgPercentStacked = UIHelper.getImage( "icons/wizban/horizontalpercentstackedareachartimage.gif" ); //$NON-NLS-1$ imgSideBySide = UIHelper.getImage( "icons/wizban/horizontalsidebysideareachartimage.gif" ); //$NON-NLS-1$ } vSubTypes.add( new DefaultChartSubTypeImpl( Messages.getString("AreaChart.Tooltip.Stacked"), imgStacked, sStackedDescription ) ); //$NON-NLS-1$ vSubTypes.add( new DefaultChartSubTypeImpl( Messages.getString("AreaChart.Tooltip.PercentStacked"), imgPercentStacked, sPercentStackedDescription ) ); //$NON-NLS-1$ vSubTypes.add( new DefaultChartSubTypeImpl( Messages.getString("AreaChart.Tooltip.Overlay"), imgSideBySide, sOverlayDescription ) ); //$NON-NLS-1$ } else if ( sDimension.equals( TWO_DIMENSION_WITH_DEPTH_TYPE ) || sDimension.equals( ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL.getName( ) ) ) { if ( orientation.equals( Orientation.VERTICAL_LITERAL ) ) { imgStackedWithDepth = UIHelper.getImage( "icons/wizban/stackedareachartwithdepthimage.gif" ); //$NON-NLS-1$ } else { imgStackedWithDepth = UIHelper.getImage( "icons/wizban/horizontalstackedareachartwithdepthimage.gif" ); //$NON-NLS-1$ } vSubTypes.add( new DefaultChartSubTypeImpl( Messages.getString("AreaChart.Tooltip.Stacked"), imgStackedWithDepth, sStackedDescription ) ); //$NON-NLS-1$ } else if ( sDimension.equals( THREE_DIMENSION_TYPE ) || sDimension.equals( ChartDimension.THREE_DIMENSIONAL_LITERAL.getName( ) ) ) { imgSideBySide3D = UIHelper.getImage( "icons/wizban/sidebysideareachart3dimage.gif" ); //$NON-NLS-1$ vSubTypes.add( new DefaultChartSubTypeImpl( Messages.getString("AreaChart.Tooltip.Overlay"), imgSideBySide3D, sOverlayDescription ) ); //$NON-NLS-1$ } return vSubTypes; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ae5c99c975d28a2277f3b75baa2207ddf1c0d0ae/AreaChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/AreaChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 336, 7984, 1676, 2352, 12, 514, 272, 8611, 16, 1082, 202, 14097, 9820, 262, 202, 95, 202, 202, 5018, 331, 1676, 2016, 273, 394, 5589, 12, 11272, 202, 202, 430, 261, 272,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 336, 7984, 1676, 2352, 12, 514, 272, 8611, 16, 1082, 202, 14097, 9820, 262, 202, 95, 202, 202, 5018, 331, 1676, 2016, 273, 394, 5589, 12, 11272, 202, 202, 430, 261, 272,...
NNTPGroup group = null;
private void doLISTGROUP(String groupName) { // 9.5.1.1.1 NNTPGroup group = null; if (groupName==null) { if ( group == null ) writer.println("412 not currently in newsgroup"); } else { group = repo.getGroup(groupName); if ( group == null ) writer.println("411 no such newsgroup"); } if ( group != null ) { writer.println("211 list of article numbers follow"); for (Iterator iter = group.getArticles();iter.hasNext();) { NNTPArticle article = (NNTPArticle)iter.next(); writer.println(article.getArticleNumber()); } writer.println("."); this.group = group; group.setCurrentArticleNumber(group.getFirstArticleNumber()); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/cc100f37ee536c71759c5c9fd585b8437c35e0e2/NNTPHandler.java/buggy/src/java/org/apache/james/nntpserver/NNTPHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7085, 8468, 12, 780, 11619, 13, 288, 3639, 368, 2468, 18, 25, 18, 21, 18, 21, 18, 21, 9079, 309, 261, 1655, 461, 631, 2011, 13, 288, 5411, 309, 261, 1041, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7085, 8468, 12, 780, 11619, 13, 288, 3639, 368, 2468, 18, 25, 18, 21, 18, 21, 18, 21, 9079, 309, 261, 1655, 461, 631, 2011, 13, 288, 5411, 309, 261, 1041, 422, 446, ...
public Map getParamValues() {
public Map getParamValues() {
public Map getParamValues() { return wcontext().getParamValues(); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/ef68ef66f0feb3bc08bb217fe9abcd99045ef301/WebActionContext.java/buggy/src/share/org/apache/struts/chain/contexts/WebActionContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 9027, 1972, 1435, 565, 288, 3639, 327, 341, 2472, 7675, 588, 786, 1972, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 9027, 1972, 1435, 565, 288, 3639, 327, 341, 2472, 7675, 588, 786, 1972, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
getNotifications().add(not);
notifications.add(not);
protected void disAssociateSource(String qualifiedName) { Notification not = getAdapterFactory().disAssociateSource(qualifiedName, false); if (not != null) getNotifications().add(not); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/7d45e9b1762d7b0eed96f268aa7abdf4720a51f6/JavaReflectionSynchronizer.java/buggy/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/internal/adapters/jdom/JavaReflectionSynchronizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1015, 23880, 1830, 12, 780, 24133, 13, 288, 202, 202, 4386, 486, 273, 16679, 1733, 7675, 2251, 23880, 1830, 12, 19724, 461, 16, 629, 1769, 202, 202, 430, 261, 902, 480, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1015, 23880, 1830, 12, 780, 24133, 13, 288, 202, 202, 4386, 486, 273, 16679, 1733, 7675, 2251, 23880, 1830, 12, 19724, 461, 16, 629, 1769, 202, 202, 430, 261, 902, 480, ...
return Sequence.EMPTY_SEQUENCE; Sequence returnSeq = returnExpr.eval(docs, filtered, null);
return Sequence.EMPTY_SEQUENCE; Sequence returnSeq = null; if(orderSpecs == null) returnSeq = returnExpr.eval(docs, filtered, null); else { if(filtered != null) val = filtered; OrderedValueSequence ordered = new OrderedValueSequence(docs, orderSpecs, val.getLength()); ordered.addAll(val); returnSeq = returnExpr.eval(docs, ordered, null); }
public Sequence eval( DocumentSet docs, Sequence contextSequence, Item contextItem) throws XPathException { context.pushLocalContext(false); Variable var = new Variable(QName.parse(context, varName)); context.declareVariable(var); Sequence val = inputSequence.eval(docs, null, null); var.setValue(val); Sequence filtered = null; if(whereExpr != null) filtered = applyWhereExpression(context, docs, null); if(whereExpr != null && filtered.getLength() == 0) return Sequence.EMPTY_SEQUENCE; Sequence returnSeq = returnExpr.eval(docs, filtered, null); context.popLocalContext(); return returnSeq; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/26f1996e17197f1d48e2c24034fa91c7c8b22ecd/LetExpr.java/buggy/src/org/exist/xpath/LetExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8370, 5302, 12, 202, 202, 2519, 694, 3270, 16, 202, 202, 4021, 819, 4021, 16, 202, 202, 1180, 819, 1180, 13, 202, 202, 15069, 10172, 503, 288, 202, 202, 2472, 18, 6206, 2042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8370, 5302, 12, 202, 202, 2519, 694, 3270, 16, 202, 202, 4021, 819, 4021, 16, 202, 202, 1180, 819, 1180, 13, 202, 202, 15069, 10172, 503, 288, 202, 202, 2472, 18, 6206, 2042, ...
public Trimmer(jq_Method method, Set initialClassSet) { this(initialClassSet);
public Trimmer(jq_Method method, Set initialClassSet, boolean addall) { this(initialClassSet, addall);
public Trimmer(jq_Method method, Set initialClassSet) { this(initialClassSet); addToWorklist(method); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/8c36dff7220601bf5c27db768e12a5d33d5533b9/Trimmer.java/buggy/joeq_native/joeq/Compiler/BytecodeAnalysis/Trimmer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7105, 6592, 12, 78, 85, 67, 1305, 707, 16, 1000, 2172, 797, 694, 13, 288, 3639, 333, 12, 6769, 797, 694, 1769, 3639, 9604, 2421, 1098, 12, 2039, 1769, 565, 289, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7105, 6592, 12, 78, 85, 67, 1305, 707, 16, 1000, 2172, 797, 694, 13, 288, 3639, 333, 12, 6769, 797, 694, 1769, 3639, 9604, 2421, 1098, 12, 2039, 1769, 565, 289, 2, -100, -100, -...
private static boolean queryAdjacency(IBond a1, IBond b1, IBond a2, IBond b2) { IAtom atom1 = null; IAtom atom2 = null; if (a1.contains(b1.getAtomAt(0))) { atom1 = b1.getAtomAt(0); } else if (a1.contains(b1.getAtomAt(1))) { atom1 = b1.getAtomAt(1); } if (a2.contains(b2.getAtomAt(0))) { atom2 = b2.getAtomAt(0); } else if (a2.contains(b2.getAtomAt(1))) { atom2 = b2.getAtomAt(1); } if (atom1 != null && atom2 != null){ return ((IQueryAtom)atom2).matches(atom1); } else if (atom1 == null && atom2 == null) { return true; } else { return false; } }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/56c201de67d3ab0b41150bdf3c9bae4980107820/UniversalIsomorphismTester.java/clean/src/org/openscience/cdk/isomorphism/UniversalIsomorphismTester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 843, 17886, 1077, 2075, 12, 45, 9807, 279, 21, 16, 16178, 324, 21, 16, 16178, 279, 22, 16, 16178, 324, 22, 13, 288, 4202, 202, 225, 8831, 3179, 21, 273, 446, 31, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 843, 17886, 1077, 2075, 12, 45, 9807, 279, 21, 16, 16178, 324, 21, 16, 16178, 279, 22, 16, 16178, 324, 22, 13, 288, 4202, 202, 225, 8831, 3179, 21, 273, 446, 31, 202,...
protected void unpackProperties(Properties info) throws SQLException { serverName = info.getProperty(Messages.get(Driver.SERVERNAME)); portNumber = parseIntegerProperty(info, Driver.PORTNUMBER); serverType = parseIntegerProperty(info, Driver.SERVERTYPE); databaseName = info.getProperty(Messages.get(Driver.DATABASENAME)); instanceName = info.getProperty(Messages.get(Driver.INSTANCE)); domainName = info.getProperty(Messages.get(Driver.DOMAIN)); user = info.getProperty(Messages.get(Driver.USER)); password = info.getProperty(Messages.get(Driver.PASSWORD)); macAddress = info.getProperty(Messages.get(Driver.MACADDRESS)); appName = info.getProperty(Messages.get(Driver.APPNAME)); progName = info.getProperty(Messages.get(Driver.PROGNAME)); serverCharset = info.getProperty(Messages.get(Driver.CHARSET)); language = info.getProperty(Messages.get(Driver.LANGUAGE)); prepareSql = parseIntegerProperty(info, Driver.PREPARESQL); lastUpdateCount = "true".equalsIgnoreCase( info.getProperty(Messages.get(Driver.LASTUPDATECOUNT))); useUnicode = "true".equalsIgnoreCase( info.getProperty(Messages.get(Driver.SENDSTRINGPARAMETERSASUNICODE))); namedPipe = "true".equalsIgnoreCase( info.getProperty(Messages.get(Driver.NAMEDPIPE))); tcpNoDelay = "true".equalsIgnoreCase( info.getProperty(Messages.get(Driver.TCPNODELAY))); xaEmulation = "true".equalsIgnoreCase( info.getProperty(Messages.get(Driver.XAEMULATION))); charsetSpecified = serverCharset.length() > 0; // Don't default serverCharset at this point; if none specified, // initialize to an empty String & discover value later// if (!charsetSpecified) {// serverCharset = "";// } Integer parsedTdsVersion = DefaultProperties.getTdsVersion(info.getProperty(Messages.get(Driver.TDS))); if (parsedTdsVersion == null) { throw new SQLException( Messages.get("error.connection.badprop", Messages.get(Driver.TDS)), "08001"); } tdsVersion = parsedTdsVersion.intValue(); packetSize = parseIntegerProperty(info, Driver.PACKETSIZE); if (packetSize < TdsCore.MIN_PKT_SIZE) { if (tdsVersion >= Driver.TDS70) { // Default of 0 means let the server specify packet size packetSize = (packetSize == 0) ? 0 : TdsCore.DEFAULT_MIN_PKT_SIZE_TDS70; } else { // Sensible minimum for all other versions of TDS packetSize = TdsCore.MIN_PKT_SIZE; } } if (packetSize > TdsCore.MAX_PKT_SIZE) { packetSize = TdsCore.MAX_PKT_SIZE; } packetSize = (packetSize / 512) * 512; loginTimeout = parseIntegerProperty(info, Driver.LOGINTIMEOUT); lobBuffer = parseLongProperty(info, Driver.LOBBUFFER); maxStatements = parseIntegerProperty(info, Driver.MAXSTATEMENTS); if (maxStatements <= 0) { statementCache = new NonCachingStatementCache(); } else if (maxStatements == Integer.MAX_VALUE) { statementCache = new FastStatementCache(); } else { statementCache = new DefaultStatementCache(maxStatements); } // The TdsCore.PREPEXEC method is only available with TDS 8.0+ (SQL // Server 2000+); downgrade to TdsCore.PREPARE if an invalid option // is selected. if (tdsVersion < Driver.TDS80 && prepareSql == TdsCore.PREPEXEC) { prepareSql = TdsCore.PREPARE; } // For SQL Server 6.5, only sp_executesql is available. if (tdsVersion < Driver.TDS70 && prepareSql == TdsCore.PREPARE) { prepareSql = TdsCore.EXECUTE_SQL; } }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/202aea0df8a603f59ffa790b51f5ca8bc3a6d41a/ConnectionJDBC2.java/buggy/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 6167, 2297, 12, 2297, 1123, 13, 15069, 6483, 288, 225, 10926, 273, 1123, 18, 588, 1396, 12, 5058, 18, 588, 12, 4668, 18, 4370, 1985, 10019, 225, 1756, 1854, 273, 1109, 4522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6167, 2297, 12, 2297, 1123, 13, 15069, 6483, 288, 225, 10926, 273, 1123, 18, 588, 1396, 12, 5058, 18, 588, 12, 4668, 18, 4370, 1985, 10019, 225, 1756, 1854, 273, 1109, 4522, ...
return "jms:
return "axis:jms:
protected String getReceiveComplexCollectionEndpoint() { return "jms://mycomponent3?method=getPeople"; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/e210a622e29dd34feed9619d9da60bf69103c098/AxisConnectorJmsFunctionalTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/soap/AxisConnectorJmsFunctionalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 336, 11323, 12795, 2532, 3293, 1435, 288, 3639, 327, 315, 78, 959, 2207, 4811, 4652, 23, 35, 2039, 33, 588, 11227, 11763, 14432, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 514, 336, 11323, 12795, 2532, 3293, 1435, 288, 3639, 327, 315, 78, 959, 2207, 4811, 4652, 23, 35, 2039, 33, 588, 11227, 11763, 14432, 565, 289, 2, -100, -100, -100, -100, -100, -100...
if(priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS || priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)
if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS))
public ClientPutMessage(SimpleFieldSet fs) throws MessageInvalidException { identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { String u = fs.get("URI"); if(u == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No URI", identifier); uri = new FreenetURI(fs.get("URI")); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } global = Fields.stringToBool(fs.get("Global"), false); String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } contentType = fs.get("Metadata.ContentType"); String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } getCHKOnly = Fields.stringToBool(fs.get("GetCHKOnly"), false); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else { try { priorityClass = Short.parseShort(priorityString, 10); if(priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS || priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String uploadFrom = fs.get("UploadFrom"); if(uploadFrom == null || uploadFrom.equalsIgnoreCase("direct")) { uploadFromType = UPLOAD_FROM_DIRECT; String dataLengthString = fs.get("DataLength"); if(dataLengthString == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Need DataLength on a ClientPut", identifier); try { dataLength = Long.parseLong(dataLengthString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier); } this.origFilename = null; redirectTarget = null; } else if(uploadFrom.equalsIgnoreCase("disk")) { uploadFromType = UPLOAD_FROM_DISK; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field Filename", identifier); File f = new File(filename); if(!(f.exists() && f.isFile() && f.canRead())) throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, null, identifier); dataLength = f.length(); FileBucket fileBucket = new FileBucket(f, true, false, false, false); this.bucket = fileBucket; this.origFilename = f; redirectTarget = null; } else if(uploadFrom.equalsIgnoreCase("redirect")) { uploadFromType = UPLOAD_FROM_REDIRECT; String target = fs.get("TargetURI"); if(target == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "TargetURI missing but UploadFrom=redirect", identifier); try { redirectTarget = new FreenetURI(target); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Invalid TargetURI: "+e, identifier); } dataLength = 0; origFilename = null; bucket = null; } else throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "UploadFrom invalid or unrecognized: "+uploadFrom, identifier); dontCompress = Fields.stringToBool(fs.get("DontCompress"), false); String persistenceString = fs.get("Persistence"); if(persistenceString == null || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } clientToken = fs.get("ClientToken"); }
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/ClientPutMessage.java/buggy/src/freenet/node/fcp/ClientPutMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, 202, 430, 12, 5644, 422, 446, 13, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, 202, 430, 12, 5644, 422, 446, 13, 1082, ...
recv.callMethod("write", rs.toRubyObject());
recv.callMethod("write", rs);
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { args = new IRubyObject[] { recv.getRuntime().getLastline()}; } IRubyObject fs = recv.getRuntime().getGlobalVar("$,"); IRubyObject rs = recv.getRuntime().getGlobalVar("$\\"); for (int i = 0; i < args.length; i++) { if (i > 0 && !fs.isNil()) { recv.callMethod("write", fs.toRubyObject()); } if (args[i].isNil()) { recv.callMethod("write", RubyString.newString(recv.getRuntime(), "nil")); } else { recv.callMethod("write", args[i]); } } if (!rs.isNil()) { recv.callMethod("write", rs.toRubyObject()); } return recv.getRuntime().getNil(); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyIO.java/clean/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 1172, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 833, 273, 394, 15908, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 1172, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 833, 273, 394, 15908, ...
public static void main(String[] args) throws Exception { Set flags = new HashSet(); flags.add("h"); flags.add("help"); flags.add("usage"); flags.add("license"); flags.add("version"); CommandLine cl = new CommandLine(args, flags, Arrays.asList(new String[] {"import", "out"})); if (cl.getOpt("h") != null || cl.getOpt("help") != null || cl.getOpt("usage") != null) { printUsage(); System.exit(0); return; } String[] badopts = cl.getBadOpts(); if (badopts.length > 0) { for (int i = 0; i < badopts.length; i++) System.out.println("Unrecognized option: " + badopts[i]); printUsage(); System.exit(0); return; } if (cl.getOpt("license") != null) { CommandLine.printLicense(); System.exit(0); return; } if (cl.getOpt("version") != null) { CommandLine.printVersion(); System.exit(0); return; } args = cl.args(); if (args.length != 1) { System.exit(0); return; } String commonName = cl.getOpt("import"); if (commonName == null) commonName = "common.xsd"; String out = cl.getOpt("out"); if (out == null) { System.out.println("Using output directory 'out'"); out = "out"; } File outdir = new File(out); File basedir = new File(args[0]); // first, parse all the schema files File[] files = cl.getFiles(); Map schemaDocs = new HashMap(); Set elementNames = new HashSet(); Set attributeNames = new HashSet(); Set typeNames = new HashSet(); Set modelGroupNames = new HashSet(); Set attrGroupNames = new HashSet(); Set dupeElementNames = new HashSet(); Set dupeAttributeNames = new HashSet(); Set dupeTypeNames = new HashSet(); Set dupeModelGroupNames = new HashSet(); Set dupeAttrGroupNames = new HashSet(); Set dupeNamespaces = new HashSet(); for (int i = 0; i < files.length; i++) { try { // load schema SchemaDocument doc = SchemaDocument.Factory.parse(files[i]); schemaDocs.put(doc, files[i]); // warn about for imports, includes if (doc.getSchema().sizeOfImportArray() > 0 || doc.getSchema().sizeOfIncludeArray() > 0) System.out.println("warning: " + files[i] + " contains imports or includes that are being ignored."); // collect together names String targetNamespace = doc.getSchema().getTargetNamespace(); if (targetNamespace == null) targetNamespace = ""; TopLevelComplexType ct[] = doc.getSchema().getComplexTypeArray(); for (int j = 0; j < ct.length; j++) noteName(ct[j].getName(), targetNamespace, typeNames, dupeTypeNames, dupeNamespaces); TopLevelSimpleType st[] = doc.getSchema().getSimpleTypeArray(); for (int j = 0; j < st.length; j++) noteName(st[j].getName(), targetNamespace, typeNames, dupeTypeNames, dupeNamespaces); TopLevelElement el[] = doc.getSchema().getElementArray(); for (int j = 0; j < el.length; j++) noteName(el[j].getName(), targetNamespace, elementNames, dupeElementNames, dupeNamespaces); TopLevelAttribute at[] = doc.getSchema().getAttributeArray(); for (int j = 0; j < at.length; j++) noteName(at[j].getName(), targetNamespace, attributeNames, dupeAttributeNames, dupeNamespaces); NamedGroup gr[] = doc.getSchema().getGroupArray(); for (int j = 0; j < gr.length; j++) noteName(gr[j].getName(), targetNamespace, modelGroupNames, dupeModelGroupNames, dupeNamespaces); NamedAttributeGroup ag[] = doc.getSchema().getAttributeGroupArray(); for (int j = 0; j < ag.length; j++) noteName(ag[j].getName(), targetNamespace, attrGroupNames, dupeAttrGroupNames, dupeNamespaces); } catch (XmlException e) { System.out.println("warning: " + files[i] + " is not a schema file - " + e.getError().toString()); } catch (IOException e) { System.err.println("Unable to load " + files[i] + " - " + e.getMessage()); System.exit(1); return; } } if (schemaDocs.size() == 0) { System.out.println("No schema files found."); System.exit(0); return; } if (dupeTypeNames.size() + dupeElementNames.size() + dupeAttributeNames.size() + dupeModelGroupNames.size() + dupeAttrGroupNames.size() == 0) { System.out.println("No duplicate names found."); System.exit(0); return; } // create a schema doc for each namespace to be imported Map commonDocs = new HashMap(); Map commonFiles = new HashMap(); int count = dupeNamespaces.size() == 1 ? 0 : 1; for (Iterator i = dupeNamespaces.iterator(); i.hasNext(); ) { String namespace = (String)i.next(); SchemaDocument commonDoc = SchemaDocument.Factory.parse( "<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'/>" ); if (namespace.length() > 0) commonDoc.getSchema().setTargetNamespace(namespace); commonDoc.getSchema().setElementFormDefault(FormChoice.QUALIFIED); commonDocs.put(namespace, commonDoc); commonFiles.put(commonDoc, commonFileFor(commonName, namespace, count++, outdir)); } // pull out all the duplicate definitions and drop them into the file // we reuse the elementNames (etc) sets to keep track of which definitions // we have already inserted. for (Iterator i = schemaDocs.keySet().iterator(); i.hasNext(); ) { SchemaDocument doc = (SchemaDocument)i.next(); // collect together names String targetNamespace = doc.getSchema().getTargetNamespace(); if (targetNamespace == null) targetNamespace = ""; SchemaDocument commonDoc = (SchemaDocument)commonDocs.get(targetNamespace); boolean needImport = false; TopLevelComplexType ct[] = doc.getSchema().getComplexTypeArray(); for (int j = ct.length - 1; j >= 0; j--) { if (!isDuplicate(ct[j].getName(), targetNamespace, dupeTypeNames)) continue; if (isFirstDuplicate(ct[j].getName(), targetNamespace, typeNames, dupeTypeNames)) commonDoc.getSchema().addNewComplexType().set(ct[j]); needImport = true; doc.getSchema().removeComplexType(j); } TopLevelSimpleType st[] = doc.getSchema().getSimpleTypeArray(); for (int j = 0; j < st.length; j++) { if (!isDuplicate(st[j].getName(), targetNamespace, dupeTypeNames)) continue; if (isFirstDuplicate(st[j].getName(), targetNamespace, typeNames, dupeTypeNames)) commonDoc.getSchema().addNewSimpleType().set(st[j]); needImport = true; doc.getSchema().removeSimpleType(j); } TopLevelElement el[] = doc.getSchema().getElementArray(); for (int j = 0; j < el.length; j++) { if (!isDuplicate(el[j].getName(), targetNamespace, dupeElementNames)) continue; if (isFirstDuplicate(el[j].getName(), targetNamespace, elementNames, dupeElementNames)) commonDoc.getSchema().addNewElement().set(el[j]); needImport = true; doc.getSchema().removeElement(j); } TopLevelAttribute at[] = doc.getSchema().getAttributeArray(); for (int j = 0; j < at.length; j++) { if (!isDuplicate(at[j].getName(), targetNamespace, dupeAttributeNames)) continue; if (isFirstDuplicate(at[j].getName(), targetNamespace, attributeNames, dupeAttributeNames)) commonDoc.getSchema().addNewElement().set(at[j]); needImport = true; doc.getSchema().removeElement(j); } NamedGroup gr[] = doc.getSchema().getGroupArray(); for (int j = 0; j < gr.length; j++) { if (!isDuplicate(gr[j].getName(), targetNamespace, dupeModelGroupNames)) continue; if (isFirstDuplicate(gr[j].getName(), targetNamespace, modelGroupNames, dupeModelGroupNames)) commonDoc.getSchema().addNewElement().set(gr[j]); needImport = true; doc.getSchema().removeElement(j); } NamedAttributeGroup ag[] = doc.getSchema().getAttributeGroupArray(); for (int j = 0; j < ag.length; j++) { if (!isDuplicate(ag[j].getName(), targetNamespace, dupeAttrGroupNames)) continue; if (isFirstDuplicate(ag[j].getName(), targetNamespace, attrGroupNames, dupeAttrGroupNames)) commonDoc.getSchema().addNewElement().set(ag[j]); needImport = true; doc.getSchema().removeElement(j); } if (needImport) { IncludeDocument.Include newInclude = doc.getSchema().addNewInclude(); File inputFile = (File)schemaDocs.get(doc); File outputFile = outputFileFor(inputFile, basedir, outdir); File commonFile = (File)commonFiles.get(commonDoc); if (targetNamespace != null) newInclude.setSchemaLocation(relativeURIFor(outputFile, commonFile)); } } // make the directory for output if (!outdir.isDirectory() && !outdir.mkdirs()) { System.err.println("Unable to makedir " + outdir); System.exit(1); return; } // now write all those docs back out. for (Iterator i = schemaDocs.keySet().iterator(); i.hasNext(); ) { SchemaDocument doc = (SchemaDocument)i.next(); File inputFile = (File)schemaDocs.get(doc); File outputFile = outputFileFor(inputFile, basedir, outdir); if (outputFile == null) System.out.println("Cannot copy " + inputFile); else doc.save(outputFile, new XmlOptions().setSavePrettyPrint().setSaveAggresiveNamespaces()); } for (Iterator i = commonFiles.keySet().iterator(); i.hasNext(); ) { SchemaDocument doc = (SchemaDocument)i.next(); File outputFile = (File)commonFiles.get(doc); doc.save(outputFile, new XmlOptions().setSavePrettyPrint().setSaveAggresiveNamespaces()); } }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/001aee1d328098a9a567f5df3cb355c8d26c1c2b/FactorImports.java/buggy/src/xmlcomp/org/apache/xmlbeans/impl/tool/FactorImports.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 565, 288, 3639, 1000, 2943, 273, 394, 6847, 5621, 3639, 2943, 18, 1289, 2932, 76, 8863, 3639, 2943, 18, 1289, 2932, 5201, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1185, 565, 288, 3639, 1000, 2943, 273, 394, 6847, 5621, 3639, 2943, 18, 1289, 2932, 76, 8863, 3639, 2943, 18, 1289, 2932, 5201, 8863, ...
public void setEnabled(boolean enabled);
void setEnabled(boolean enabled);
public void setEnabled(boolean enabled);
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ComponentPeer.java/buggy/core/src/classpath/java/java/awt/peer/ComponentPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12888, 12, 6494, 3696, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12888, 12, 6494, 3696, 1769, 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, -1...
public final boolean dispatchEvent(Event event) throws EventException { DomEvent e = (DomEvent) event; DomNode[] ancestors = null; int ancestorMax = 0; boolean haveDispatchDataLock = false; if (e.type == null) { throw new DomEventException(); } e.doDefault = true; e.target = this; // // Typical case: one nonrecursive dispatchEvent call at a time // for this class. If that's our case, we can avoid allocating // garbage, which is overall a big win. Even with advanced GCs // that deal well with short-lived garbage, and wayfast allocators, // it still helps. // // Remember -- EVERY mutation goes though here at least once. // // When populating a DOM tree, trying to send mutation events is // the primary cost; this dominates the critical path. // try { DomNode current; int index; boolean haveAncestorRegistrations = false; ListenerRecord[] notificationSet; int ancestorLen; synchronized (lockNode) { if (!dispatchDataLock) { haveDispatchDataLock = dispatchDataLock = true; notificationSet = DomNode.notificationSet; ancestors = DomNode.ancestors; } else { notificationSet = new ListenerRecord[NOTIFICATIONS_INIT]; ancestors = new DomNode[ANCESTORS_INIT]; } ancestorLen = ancestors.length; } // XXX autogrow ancestors ... based on statistics // Climb to the top of this subtree and handle capture, letting // each node (from the top down) capture until one stops it or // until we get to this one. for (index = 0, current = parent; current != null && index < ancestorLen; index++, current = current.parent) { if (current.nListeners != 0) { haveAncestorRegistrations = true; } ancestors [index] = current; } if (current != null) { throw new RuntimeException("dispatchEvent capture stack size"); } ancestorMax = index; e.stop = false; if (haveAncestorRegistrations) { e.eventPhase = Event.CAPTURING_PHASE; while (!e.stop && index-- > 0) { current = ancestors [index]; if (current.nListeners != 0) { notifyNode(e, current, true, notificationSet); } } } // Always deliver events to the target node (this) // unless stopPropagation was called. If we saw // no registrations yet (typical!), we never will. if (!e.stop && nListeners != 0) { e.eventPhase = Event.AT_TARGET; notifyNode (e, this, false, notificationSet); } else if (!haveAncestorRegistrations) { e.stop = true; } // If the event bubbles and propagation wasn't halted, // walk back up the ancestor list. Stop bubbling when // any bubbled event handler stops it. if (!e.stop && e.bubbles) { e.eventPhase = Event.BUBBLING_PHASE; for (index = 0; !e.stop && index < ancestorMax && (current = ancestors[index]) != null; index++) { if (current.nListeners != 0) { notifyNode(e, current, false, notificationSet); } } } e.eventPhase = 0; // Caller chooses whether to perform the default // action based on return from this method. return e.doDefault; } finally { if (haveDispatchDataLock) { // synchronize to force write ordering synchronized (lockNode) { // null out refs to ensure they'll be GC'd for (int i = 0; i < ancestorMax; i++) { ancestors [i] = null; } // notificationSet handled by notifyNode dispatchDataLock = false; } } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/a41d0899aa65f05fc526d9fb2ea0b096d1ff3f8c/DomNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 727, 1250, 15678, 12, 1133, 871, 13, 15069, 2587, 503, 95, 8832, 1133, 425, 273, 261, 8832, 1133, 13, 871, 31, 8832, 907, 8526, 14322, 273, 446, 31, 474, 9731, 2747, 273, 374, 31, 6494...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 727, 1250, 15678, 12, 1133, 871, 13, 15069, 2587, 503, 95, 8832, 1133, 425, 273, 261, 8832, 1133, 13, 871, 31, 8832, 907, 8526, 14322, 273, 446, 31, 474, 9731, 2747, 273, 374, 31, 6494...
ArtifactResolutionResult distroProvidedResult = artifactResolver .resolveTransitively( dependencies, pluginArtifact, localRepository, remoteRepositories, metadataSource, distroProvidedFilter );
List allResolved = new ArrayList( resolved.size() + unresolved.size() ); allResolved.addAll( resolved ); allResolved.addAll( unresolved );
private void ensurePluginContainerIsComplete( PluginDescriptor pluginDescriptor, PlexusContainer pluginContainer, MavenProject project, MavenSession session ) throws PluginConfigurationException { // if the plugin's already been used once, don't re-do this step... // otherwise, we have to finish resolving the plugin's classpath and start the container. if ( pluginDescriptor.getArtifacts() != null && pluginDescriptor.getArtifacts().size() == 1 ) { Artifact pluginArtifact = (Artifact) pluginDescriptor.getArtifacts().get( 0 ); try { MavenMetadataSource metadataSource = new MavenMetadataSource( mavenProjectBuilder, artifactFactory ); List remoteRepositories = new ArrayList(); remoteRepositories.addAll( project.getRemoteArtifactRepositories() ); remoteRepositories.addAll( project.getPluginArtifactRepositories() ); ArtifactRepository localRepository = session.getLocalRepository(); ResolutionGroup resolutionGroup = metadataSource.retrieve( pluginArtifact, localRepository, project.getPluginArtifactRepositories() ); Set dependencies = resolutionGroup.getArtifacts(); ArtifactResolutionResult result = artifactResolver.resolveTransitively( dependencies, pluginArtifact, localRepository, remoteRepositories, metadataSource, artifactFilter ); Set resolved = result.getArtifacts(); for ( Iterator it = resolved.iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); if ( !artifact.equals( pluginArtifact ) ) { pluginContainer.addJarResource( artifact.getFile() ); } } pluginDescriptor.setClassRealm( pluginContainer.getContainerRealm() ); // TODO: this is probably overkill as it is rarely used - can we use a mojo tag to signal this will be // used or check its configuration? Also, when it is used, perhaps it is more effecient to resolve // everything at once and apply the exclusion filter when constructing the plugin container above. // Check this out with yourkit ArtifactFilter distroProvidedFilter = new InversionArtifactFilter( artifactFilter ); ArtifactResolutionResult distroProvidedResult = artifactResolver .resolveTransitively( dependencies, pluginArtifact, localRepository, remoteRepositories, metadataSource, distroProvidedFilter ); Set distroProvided = distroProvidedResult.getArtifacts(); List unfilteredArtifactList = new ArrayList( resolved.size() + distroProvided.size() ); unfilteredArtifactList.addAll( resolved ); unfilteredArtifactList.addAll( distroProvided ); pluginDescriptor.setArtifacts( unfilteredArtifactList ); } catch ( ArtifactResolutionException e ) { throw new PluginConfigurationException( "Cannot resolve plugin dependencies", e ); } catch ( PlexusContainerException e ) { throw new PluginConfigurationException( "Cannot start plugin container", e ); } catch ( ArtifactMetadataRetrievalException e ) { throw new PluginConfigurationException( "Cannot resolve plugin dependencies", e ); } } }
1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/11082da5f4fafc00e6a133efa683b636ff92951e/DefaultPluginManager.java/clean/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3387, 3773, 2170, 2520, 6322, 12, 6258, 3187, 1909, 3187, 16, 453, 4149, 407, 2170, 1909, 2170, 16, 4766, 5375, 17176, 4109, 1984, 16, 17176, 2157, 1339, 262, 3639, 1216, 6258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3387, 3773, 2170, 2520, 6322, 12, 6258, 3187, 1909, 3187, 16, 453, 4149, 407, 2170, 1909, 2170, 16, 4766, 5375, 17176, 4109, 1984, 16, 17176, 2157, 1339, 262, 3639, 1216, 6258, ...
return tagify("B", null, null);
return tagify("b", null, null);
private String jsFunction_bold() { return tagify("B", null, null); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e4c32e2c7bcbcebcd19b29115abbd924e9039485/NativeString.java/buggy/js/rhino/src/org/mozilla/javascript/NativeString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 16390, 1435, 288, 3639, 327, 1047, 1164, 2932, 70, 3113, 446, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 3828, 2083, 67, 16390, 1435, 288, 3639, 327, 1047, 1164, 2932, 70, 3113, 446, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public org.quickfix.field.UnderlyingIssuer getUnderlyingIssuer() throws FieldNotFound { org.quickfix.field.UnderlyingIssuer value = new org.quickfix.field.UnderlyingIssuer();
public quickfix.field.UnderlyingIssuer getUnderlyingIssuer() throws FieldNotFound { quickfix.field.UnderlyingIssuer value = new quickfix.field.UnderlyingIssuer();
public org.quickfix.field.UnderlyingIssuer getUnderlyingIssuer() throws FieldNotFound { org.quickfix.field.UnderlyingIssuer value = new org.quickfix.field.UnderlyingIssuer(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelReport.java/buggy/src/java/src/quickfix/fix43/OrderMassCancelReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 16667, 10833, 765, 6291, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 16667, 460, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 16667, 10833, 765, 6291, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 16667, 460, 273, ...
int tmp_ret = instance.proxycall172(get_ReleaseDC(), tmp_0, param_1);
int tmp_ret = instance.proxycall182(get_ReleaseDC(), tmp_0, param_1);
public final int ReleaseDC(Win32.IDirectDrawSurface This, long param_1) { long tmp_0 = This == null ? 0 : This.longLockPointer(); int tmp_ret = instance.proxycall172(get_ReleaseDC(), tmp_0, param_1); if (This != null) { This.unlock(); } return tmp_ret; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9b00f971bab2256d913aec1b141462a929f6e182/Win32.java/clean/modules/awt/src/main/java/windows/org/apache/harmony/awt/nativebridge/windows/Win32.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 727, 509, 10819, 5528, 12, 18049, 1578, 18, 734, 867, 6493, 11508, 1220, 16, 1525, 579, 67, 21, 13, 288, 5411, 1525, 1853, 67, 20, 273, 1220, 422, 446, 692, 374, 294, 1220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 727, 509, 10819, 5528, 12, 18049, 1578, 18, 734, 867, 6493, 11508, 1220, 16, 1525, 579, 67, 21, 13, 288, 5411, 1525, 1853, 67, 20, 273, 1220, 422, 446, 692, 374, 294, 1220, 18, ...
if (!name.startsWith(Action.APPLICATION_KEY)) {
if (!name.startsWith(Globals.MODULE_KEY)) {
public static String[] getApplicationPrefixes(ServletContext context) { String prefixes[] = (String[]) context.getAttribute(PREFIXES_KEY); if (prefixes != null) { return (prefixes); } ArrayList list = new ArrayList(); Enumeration names = context.getAttributeNames(); while (names.hasMoreElements()) { String name = (String) names.nextElement(); if (!name.startsWith(Action.APPLICATION_KEY)) { continue; } String prefix = name.substring(Action.APPLICATION_KEY.length()); if (prefix.length() > 0) { list.add(prefix); } } prefixes = (String[]) list.toArray(new String[list.size()]); context.setAttribute(PREFIXES_KEY, prefixes); return (prefixes); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/02d148b515a594d8daed79f607144d0aa2b9c42a/RequestUtils.java/buggy/src/share/org/apache/struts/util/RequestUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 9615, 11700, 12, 4745, 1042, 819, 13, 288, 3639, 514, 9419, 8526, 273, 261, 780, 63, 5717, 819, 18, 588, 1499, 12, 6307, 3991, 67, 3297, 1769, 3639, 309, 261, 1777...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 9615, 11700, 12, 4745, 1042, 819, 13, 288, 3639, 514, 9419, 8526, 273, 261, 780, 63, 5717, 819, 18, 588, 1499, 12, 6307, 3991, 67, 3297, 1769, 3639, 309, 261, 1777...
public void handleFiles(List files) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.newDocument(); Element overviewRoot = Util.addChildElement(doc, "overview-frame", null); doc = db.newDocument(); Element allTagsRoot = Util.addChildElement(doc, "all-tags", null); Iterator iter = files.iterator(); while (iter.hasNext()) { File file = (File) iter.next(); if (!file.exists() || !file.canRead()) { continue; } Document xmlDoc = handleFile(file); if (xmlDoc != null) { String shortname = Util.getElementValue( xmlDoc.getDocumentElement(), "body/taglib/shortname"); Util.addChildElement(overviewRoot, "shortname", shortname); List tags = Util.getElements( xmlDoc.getDocumentElement(), "body/taglib/tag"); Iterator tagIter = tags.iterator(); while (tagIter.hasNext()) { Element tag = (Element) tagIter.next(); String tagname = Util.getElementValue(tag, "name"); tag = Util.addChildElement(allTagsRoot, "tag", null); Util.addChildElement(tag, "name", tagname); Util.addChildElement(tag, "taglib", shortname); } } } Source xml = new DOMSource(overviewRoot); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/index.xsl")); Result out = new StreamResult(new File(destdir, "index.html")); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/overview-frame.xsl")); out = new StreamResult(new File(destdir, "overview-frame.html")); t = tf.newTransformer(xsl); t.transform(xml, out); xml = new DOMSource(allTagsRoot); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/all-tags.xsl")); out = new StreamResult(new File(destdir, "all-tags.html")); t = tf.newTransformer(xsl); t.transform(xml, out); Util.copyFile( "/resources/taglibdoc/stylesheet.css", new File(destdir, "stylesheet.css")); } catch (Exception e) { e.printStackTrace(); } }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibDoc.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibDoc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 4110, 2697, 12, 682, 2354, 15329, 202, 202, 698, 95, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 1442, 5621, 1082, 202, 2519, 1263, 1966, 33, 1966, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4110, 2697, 12, 682, 2354, 15329, 202, 202, 698, 95, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 1442, 5621, 1082, 202, 2519, 1263, 1966, 33, 1966, 74, ...
} case 861: break; case 432: case 489: case 541: { tokenType = yytext().substring(6).trim(); } case 862: break; case 591: case 635: { isExtending = yytext().substring(9).trim(); } case 863: break; case 639: case 675: { functionName = yytext().substring(10).trim(); } case 864: break; case 713: { return symbol(LOWERCLASS); } case 865: break; case 712: { return symbol(UPPERCLASS); } case 866: break; case 22: { states.insert(yytext(),inclusive_states); } case 867: break; case 54: { return symbol(OPENBRACKET); } case 868: break; case 566: { return symbol(DIGITCLASS); } case 869: break; case 606: { return symbol(LETTERCLASS); } case 870: break; case 124: { } case 871: break; case 94: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 872: break; case 90: case 177: { t.start();
} 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();
public Symbol next_token() throws java.io.IOException { int yy_input; int yy_action; int [] yytrans_l = yytrans; int [] yy_rowMap_l = yy_rowMap; byte [] yy_attr_l = YY_ATTRIBUTE; int yy_pushbackPos_l = yy_pushbackPos = -1; boolean yy_was_pushback; while (true) { // cached fields: int yy_currentPos_l; int yy_startRead_l; int yy_markedPos_l = yy_markedPos; int yy_endRead_l = yy_endRead; char [] yy_buffer_l = yy_buffer; char [] yycmap_l = yycmap; boolean yy_r = false; for (yy_currentPos_l = yy_startRead; yy_currentPos_l < yy_markedPos_l; yy_currentPos_l++) { switch (yy_buffer_l[yy_currentPos_l]) { case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyline++; yycolumn = 0; yy_r = false; break; case '\r': yyline++; yycolumn = 0; yy_r = true; break; case '\n': if (yy_r) yy_r = false; else { yyline++; yycolumn = 0; } break; default: yy_r = false; yycolumn++; } } if (yy_r) { // peek one character ahead if it is \n (if we have counted one line too much) boolean yy_peek; if (yy_markedPos_l < yy_endRead_l) yy_peek = yy_buffer_l[yy_markedPos_l] == '\n'; else if (yy_atEOF) yy_peek = false; else { boolean eof = yy_refill(); yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; if (eof) yy_peek = false; else yy_peek = yy_buffer_l[yy_markedPos_l] == '\n'; } if (yy_peek) yyline--; } if (yy_markedPos_l > yy_startRead) { switch (yy_buffer_l[yy_markedPos_l-1]) { case '\n': case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yy_atBOL = true; break; case '\r': if (yy_markedPos_l < yy_endRead_l) yy_atBOL = yy_buffer_l[yy_markedPos_l] != '\n'; else if (yy_atEOF) yy_atBOL = false; else { boolean eof = yy_refill(); yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; if (eof) yy_atBOL = false; else yy_atBOL = yy_buffer_l[yy_markedPos_l] != '\n'; } break; default: yy_atBOL = false; } } yy_action = -1; yy_startRead_l = yy_currentPos_l = yy_currentPos = yy_startRead = yy_markedPos_l; if (yy_atBOL) yy_state = YY_LEXSTATE[yy_lexical_state+1]; else yy_state = YY_LEXSTATE[yy_lexical_state]; yy_was_pushback = false; yy_forAction: { while (true) { if (yy_currentPos_l < yy_endRead_l) yy_input = yy_buffer_l[yy_currentPos_l++]; else if (yy_atEOF) { yy_input = YYEOF; break yy_forAction; } else { // store back cached positions yy_currentPos = yy_currentPos_l; yy_markedPos = yy_markedPos_l; yy_pushbackPos = yy_pushbackPos_l; boolean eof = yy_refill(); // get translated positions and possibly new buffer yy_currentPos_l = yy_currentPos; yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; yy_endRead_l = yy_endRead; yy_pushbackPos_l = yy_pushbackPos; if (eof) { yy_input = YYEOF; break yy_forAction; } else { yy_input = yy_buffer_l[yy_currentPos_l++]; } } int yy_next = yytrans_l[ yy_rowMap_l[yy_state] + yycmap_l[yy_input] ]; if (yy_next == -1) break yy_forAction; yy_state = yy_next; int yy_attributes = yy_attr_l[yy_state]; if ( (yy_attributes & 2) == 2 ) yy_pushbackPos_l = yy_currentPos_l; if ( (yy_attributes & 1) == 1 ) { yy_was_pushback = (yy_attributes & 4) == 4; yy_action = yy_state; yy_markedPos_l = yy_currentPos_l; if ( (yy_attributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yy_markedPos = yy_markedPos_l; if (yy_was_pushback) yy_markedPos = yy_pushbackPos_l; switch (yy_action) { case 708: case 727: case 728: case 738: { lexThrow = concExc(lexThrow,yytext().substring(12).trim()); } case 745: break; case 539: case 589: case 590: case 633: { lexThrow = concExc(lexThrow,yytext().substring(8).trim()); } case 746: break; case 559: case 560: case 602: case 603: { bufferSize = Integer.parseInt(yytext().substring(8).trim()); } case 747: break; case 637: case 673: case 674: case 705: { eofThrow = concExc(eofThrow,yytext().substring(10).trim()); } case 748: break; case 670: case 703: case 704: case 725: { initThrow = concExc(initThrow,yytext().substring(11).trim()); } case 749: break; case 679: case 710: case 711: case 729: { scanErrorException = yytext().substring(11).trim(); } case 750: break; case 723: case 724: { lexThrow = concExc(lexThrow,string); yybegin(MACROS); } case 751: break; case 700: case 701: { initThrow = concExc(initThrow,string); yybegin(MACROS); } case 752: break; case 666: case 667: { eofThrow = concExc(eofThrow,string); yybegin(MACROS); } case 753: break; case 68: { yybegin(REGEXP); return symbol(MORETHAN); } case 754: break; case 375: { packed = false; useRowMap = true; } case 755: break; case 137: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(REGEXPEND); } case 756: break; case 88: { yybegin(REGEXP); return symbol(RBRACE); } case 757: break; case 32: { yybegin(REGEXP); return symbol(EQUALS); } case 758: break; case 45: { yybegin(CHARCLASS); return symbol(OPENCLASS); } case 759: break; case 418: case 419: { eofCode = conc(eofCode,string); yybegin(MACROS); } case 760: break; case 548: { isAbstract = true; } case 761: break; case 99: case 100: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 119: case 121: case 180: case 183: case 184: case 185: case 186: case 187: case 188: case 189: case 190: case 191: case 192: case 193: case 194: case 195: case 196: case 197: case 198: case 199: case 200: case 201: case 202: case 203: case 204: case 205: case 206: case 207: case 208: case 209: case 210: case 216: case 219: case 246: case 247: case 249: case 250: case 251: case 252: case 253: case 254: case 255: case 256: case 257: case 258: case 259: case 260: case 261: case 262: case 263: case 264: case 265: case 266: case 267: case 268: case 270: case 271: case 272: case 273: case 274: case 275: case 276: case 277: case 278: case 282: case 283: case 304: case 305: case 306: case 307: case 308: case 309: case 310: case 311: case 312: case 313: case 314: case 315: case 316: case 317: case 318: case 319: case 321: case 322: case 323: case 325: case 326: case 327: case 328: case 329: case 330: case 331: case 333: case 334: case 335: case 336: case 337: case 338: case 340: case 343: case 344: case 364: case 365: case 366: case 367: case 368: case 369: case 370: case 371: case 372: case 374: case 376: case 377: case 378: case 379: case 380: case 383: case 384: case 385: case 386: case 387: case 388: case 389: case 390: case 391: case 392: case 393: case 394: case 395: case 396: case 399: case 400: case 423: case 424: case 425: case 426: case 427: case 428: case 429: case 430: case 431: case 433: case 434: case 435: case 436: case 437: case 438: case 439: case 440: case 441: case 443: case 444: case 445: case 448: case 449: case 450: case 453: case 454: case 480: case 483: case 484: case 485: case 491: case 492: case 493: case 494: case 495: case 496: case 497: case 498: case 499: case 502: case 504: case 507: case 534: case 536: case 537: case 543: case 544: case 546: case 547: case 549: case 550: case 551: case 586: case 587: case 588: case 595: case 596: case 597: case 598: case 599: case 632: case 640: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 762: break; case 86: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_NL, yyline, yycolumn); } case 763: break; case 76: { balance++; return symbol(OPENCLASS); } case 764: break; case 75: { throw new ScannerException(file,ErrorMessages.EOL_IN_CHARCLASS,yyline,yycolumn); } case 765: break; case 31: case 34: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 766: break; case 19: case 20: case 21: case 30: case 36: case 61: case 62: case 63: case 70: case 82: case 85: case 87: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_CHAR, yyline, yycolumn); } case 767: break; case 214: case 215: { inclusive_states = false; yybegin(STATELIST); } case 768: break; case 223: case 286: case 346: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 769: break; case 240: { return symbol(MACROUSE, yytext().substring(1,yytext().length()-1)); } case 770: break; case 241: case 242: { classCode = conc(classCode,string); yybegin(MACROS); } case 771: break; case 285: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 772: break; case 339: { packed = true; useRowMap = true; } case 773: break; case 442: { packed = false; useRowMap = false; } case 774: break; case 503: case 556: { className = yytext().substring(7).trim(); } case 775: break; case 127: case 130: case 221: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8))); } case 776: break; case 126: case 128: case 129: { return symbol(CHAR, new Character(yytext().charAt(1))); } case 777: break; case 74: case 79: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 778: break; case 39: case 40: case 50: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 779: break; case 49: { yybegin(REGEXPSTART); return symbol(LBRACE); } case 780: break; case 58: { lookAheadUsed = true; return symbol(DOLLAR); } case 781: break; case 175: { return symbol(REPEAT, new Integer(yytext().substring(1).trim())); } case 782: break; case 473: case 474: { initCode = conc(initCode,string); yybegin(MACROS); } case 783: break; case 487: case 488: case 538: case 540: { throw new ScannerException(file,ErrorMessages.QUIL_THROW, yyline); } case 784: break; case 500: case 501: case 552: case 554: { throw new ScannerException(file,ErrorMessages.QUIL_CUPSYM, yyline); } case 785: break; case 592: case 593: case 636: case 638: { throw new ScannerException(file,ErrorMessages.QUIL_EOFTHROW, yyline); } case 786: break; case 37: { return symbol_countUpdate(RBRACE, null); } case 787: break; case 676: case 677: case 707: case 709: { throw new ScannerException(file,ErrorMessages.QUIL_YYLEXTHROW, yyline); } case 788: break; case 1: case 18: { /* ignore */ } case 789: break; case 397: { debugOption = true; } case 790: break; case 505: case 506: case 558: case 561: { throw new ScannerException(file,ErrorMessages.NO_BUFFER_SIZE, yyline); } case 791: break; case 630: case 631: case 669: case 671: { throw new ScannerException(file,ErrorMessages.QUIL_INITTHROW, yyline); } case 792: break; case 643: case 644: case 678: case 680: { throw new ScannerException(file,ErrorMessages.QUIL_SCANERROR, yyline); } case 793: break; case 15: case 16: { userCode.append(yytext()); } case 794: break; case 446: { columnCount = true; } case 795: break; case 583: case 584: { eofVal = string.toString(); yybegin(MACROS); } case 796: break; case 80: { return symbol(HAT); } case 797: break; case 0: case 14: case 17: { return symbol(EOF); } case 798: break; case 51: { return symbol(BAR); } case 799: break; case 38: { yybegin(STATES); return symbol_countUpdate(LESSTHAN, null); } case 800: break; case 57: { return symbol(QUESTION); } case 801: break; case 398: case 479: { return symbol(UNICODE); } case 802: break; case 672: { isImplementing = concExc(isImplementing, yytext().substring(12).trim()); } case 803: break; case 77: { if (balance > 0) balance--; else yybegin(REGEXP); return symbol(CLOSECLASS); } case 804: break; case 545: { eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 805: break; case 135: { return symbol(CHAR,new Character('\b')); } case 806: break; case 134: { return symbol(CHAR,new Character('\f')); } case 807: break; case 133: { return symbol(CHAR,new Character('\r')); } case 808: break; case 132: { return symbol(CHAR,new Character('\t')); } case 809: break; case 131: { return symbol(CHAR,new Character('\n')); } case 810: break; case 47: { lookAheadUsed = true; return symbol(LOOKAHEAD); } case 811: break; case 59: { bolUsed = true; return symbol(HAT); } case 812: break; case 60: case 232: case 408: case 409: case 462: case 466: case 515: case 522: case 568: case 569: case 574: case 575: case 609: case 612: case 613: case 618: case 621: case 622: case 652: case 653: case 654: case 655: case 659: case 660: case 661: case 662: case 688: case 689: case 690: case 696: case 697: case 698: case 718: case 722: case 734: case 737: { actionText.append(yytext()); } case 813: break; case 155: case 157: case 158: { string.append(yytext().charAt(1)); } case 814: break; case 156: case 159: case 237: { string.append( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8)); } case 815: break; case 160: { string.append('\"'); } case 816: break; case 161: { string.append('\n'); } case 817: break; case 162: { string.append('\t'); } case 818: break; case 163: { string.append('\r'); } case 819: break; case 164: { string.append('\f'); } case 820: break; case 165: { string.append('\b'); } case 821: break; case 217: case 218: { inclusive_states = true; yybegin(STATELIST); } case 822: break; case 239: case 300: case 358: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 823: break; case 299: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 824: break; case 461: { throw new ScannerException(file,ErrorMessages.EOF_WO_ACTION); } case 825: break; case 83: case 84: { string.append(yytext()); } case 826: break; case 69: { string.append(yytext()); } case 827: break; case 567: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(EOFRULE); } case 828: break; case 81: { return symbol(DASH); } case 829: break; case 73: { yybegin(nextState); return symbol(STRING, string.toString()); } case 830: break; case 67: { return symbol(COMMA); } case 831: break; case 44: { return symbol(POINT); } case 832: break; case 46: { return symbol(STAR); } case 833: break; case 52: { return symbol(BANG); } case 834: break; case 53: { return symbol(TILDE); } case 835: break; case 56: { return symbol(PLUS); } case 836: break; case 320: case 341: { return symbol(FULL); } case 837: break; case 95: { commentbalance++; } case 838: break; case 71: case 72: { throw new ScannerException(file,ErrorMessages.UNTERMINATED_STR, yyline, yycolumn); } case 839: break; case 65: { balance++; actionText.append('{'); } case 840: break; case 123: { nextState = REGEXPSTART; yybegin(COMMENT); } case 841: break; case 89: { yybegin(REGEXP); } case 842: break; case 35: { yybegin(REGEXP); } case 843: break; case 24: case 25: { yybegin(MACROS); } case 844: break; case 650: { return symbol(JLETTERCLASS); } case 845: break; case 140: { yybegin(REPEATEXP); return symbol(REPEAT, new Integer(yytext().trim().substring(1).trim())); } case 846: break; case 78: { string.setLength(0); nextState = CHARCLASS; yybegin(STRING_CONTENT); } case 847: break; case 743: { return symbol(JLETTERDIGITCLASS); } case 848: break; case 120: { macroDefinition = false; yybegin(REGEXPSTART); return symbol(DELIMITER); } case 849: break; case 27: { return symbol(IDENT, yytext()); } case 850: break; case 42: case 43: { if (macroDefinition) { yybegin(MACROS); } return symbol(REGEXPEND); } case 851: break; case 55: { return symbol(CLOSEBRACKET); } case 852: break; case 169: { yypushback(1); yycolumn--; return symbol(CHAR, new Character(yytext().charAt(0))); } case 853: break; case 118: { Out.warning(ErrorMessages.NOT_AT_BOL, yyline); yypushback(1); } case 854: break; case 229: { return symbol_countUpdate(MACROUSE, makeMacroIdent()); } case 855: break; case 382: { isYYEOF = true; } case 856: break; case 486: { notUnix = true; } case 857: break; case 139: { nextState = REGEXP; yybegin(COMMENT); } case 858: break; case 97: { nextState = MACROS; yybegin(COMMENT); } case 859: break; case 181: case 182: { string.setLength(0); yybegin(COPY); } case 860: break; case 269: { 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 861: break; case 432: case 489: case 541: { tokenType = yytext().substring(6).trim(); } case 862: break; case 591: case 635: { isExtending = yytext().substring(9).trim(); } case 863: break; case 639: case 675: { functionName = yytext().substring(10).trim(); } case 864: break; case 713: { return symbol(LOWERCLASS); } case 865: break; case 712: { return symbol(UPPERCLASS); } case 866: break; case 22: { states.insert(yytext(),inclusive_states); } case 867: break; case 54: { return symbol(OPENBRACKET); } case 868: break; case 566: { return symbol(DIGITCLASS); } case 869: break; case 606: { return symbol(LETTERCLASS); } case 870: break; case 124: { } case 871: break; case 94: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 872: break; case 90: case 177: { t.start(); yybegin(MACROS); macroDefinition = true; return symbol(USERCODE,userCode); } case 873: break; case 66: { } case 874: break; case 41: { } case 875: break; case 29: { } case 876: break; case 28: case 33: { } case 877: break; case 23: case 26: { } case 878: break; case 48: { string.setLength(0); nextState = REGEXP; yybegin(STRING_CONTENT); } case 879: break; case 64: { 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 880: break; case 145: case 146: { if (macroDefinition) { yybegin(EATWSPNL); return symbol(BAR); } else { yybegin(REGEXPSTART); return symbol(NOACTION); } } case 881: break; case 178: case 179: { } case 882: break; case 248: case 482: { isInteger = true; } case 883: break; case 324: { lineCount = true; } case 884: break; case 332: { charCount = true; } case 885: break; case 381: { isFinal = true; } case 886: break; case 451: { isInteger = true; if (eofVal == null) eofVal = "return 0;"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 887: break; case 452: { isPublic = true; } case 888: break; case 481: { isIntWrap = true; } case 889: break; case 508: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol_countUpdate(EOFRULE, null); } case 890: break; case 535: { 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 891: break; case 553: case 600: case 601: case 645: { cupSymbol = yytext().substring(8).trim(); if (cupCompatible) Out.warning(ErrorMessages.CUPSYM_AFTER_CUP, yyline); } case 892: break; case 555: { cupDebug = true; } case 893: break; case 557: { caseless = true; } case 894: break; case 641: { visibility = "private"; Skeleton.makePrivate(); } case 895: break; case 642: { standalone = true; isInteger = true; } case 896: break; default: if (yy_input == YYEOF && yy_startRead == yy_currentPos) { yy_atEOF = true; yy_do_eof(); switch (yy_lexical_state) { 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 { yy_ScanError(YY_NO_MATCH); } } } }
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/c5b664099369e6ab7a60ec6354a7dd4322f53873/LexScan.java/buggy/jflex/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, 67, 2630, 31, 565, 509, 9016, 67, 1128, 31, 565, 509, 5378, 9016, 2338, 67, 80, 273, 9016, 2338, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2630, 31, 565, 509, 9016, 67, 1128, 31, 565, 509, 5378, 9016, 2338, 67, 80, 273, 9016, 2338, ...
children = newChildren; if (folderNode != null) folderNode.loadChildren();
public void updateChildren() { try { if ((getFolder().getType() & Folder.HOLDS_FOLDERS) == 0) { return; } } catch (MessagingException me) { } Vector newChildren = new Vector(); StringTokenizer tokens = new StringTokenizer(Pooka.getProperty(getFolderProperty() + ".folderList", "INBOX"), ":"); String newFolderName; for (int i = 0 ; tokens.hasMoreTokens() ; i++) { newFolderName = (String)tokens.nextToken(); FolderInfo childFolder = getChild(newFolderName); if (childFolder == null) { childFolder = new FolderInfo(this, newFolderName); newChildren.add(childFolder); } else { newChildren.add(childFolder); } } children = newChildren; if (folderNode != null) folderNode.loadChildren(); }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/7f48c7a241b88036c073696c7920af0f3ee38ee0/FolderInfo.java/buggy/net/suberic/pooka/FolderInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 4212, 1435, 288, 202, 698, 288, 202, 565, 309, 14015, 588, 3899, 7675, 588, 559, 1435, 473, 12623, 18, 44, 1741, 3948, 67, 17357, 55, 13, 422, 374, 13, 288, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 4212, 1435, 288, 202, 698, 288, 202, 565, 309, 14015, 588, 3899, 7675, 588, 559, 1435, 473, 12623, 18, 44, 1741, 3948, 67, 17357, 55, 13, 422, 374, 13, 288, 202, 202, ...
org.intermine.web.LogMe.log("i", " fieldName: " + fieldName);
protected void createAttributeIndexes(ClassDescriptor cld) throws SQLException, MetaDataException { org.intermine.web.LogMe.log("i", "examining: " + cld); org.intermine.web.LogMe.log("i", "examining: " + cld.getName()); Map primaryKeys = DataLoaderHelper.getPrimaryKeys(cld); String tableName = DatabaseUtil.getTableName(cld); ATTRIBUTE: for (Iterator attributeIter = cld.getAllAttributeDescriptors().iterator(); attributeIter.hasNext();) { AttributeDescriptor att = (AttributeDescriptor) attributeIter.next(); org.intermine.web.LogMe.log("i", " got att: " + att); if (att.getName().equals("id")) { org.intermine.web.LogMe.log("i", " -skipping id"); continue; } String fieldName = DatabaseUtil.getColumnName(att); org.intermine.web.LogMe.log("i", " fieldName: " + fieldName); for (Iterator primaryKeyIter = primaryKeys.entrySet().iterator(); primaryKeyIter.hasNext();) { Map.Entry primaryKeyEntry = (Map.Entry) primaryKeyIter.next(); String keyName = (String) primaryKeyEntry.getKey(); PrimaryKey key = (PrimaryKey) primaryKeyEntry.getValue(); org.intermine.web.LogMe.log("i", " entry: " + primaryKeyEntry); String firstKeyField = (String) ((Set) key.getFieldNames()).iterator().next(); org.intermine.web.LogMe.log("i", " firstKeyField: " + firstKeyField); if (firstKeyField.equals(att.getName())) { org.intermine.web.LogMe.log("i", " -skipping: " + att.getName()); continue ATTRIBUTE; } } dropIndex(tableName + "__" + att.getName()); createIndex(tableName + "__" + att.getName(), tableName, fieldName + ", id"); } }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/7e5efefe9647289db6f4a068611497d3224a031f/CreateIndexesTask.java/clean/intermine/src/java/org/intermine/task/CreateIndexesTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 1499, 8639, 12, 797, 3187, 23451, 13, 3639, 1216, 6483, 16, 6565, 22480, 288, 3639, 2358, 18, 2761, 3081, 18, 4875, 18, 1343, 4667, 18, 1330, 2932, 77, 3113, 315, 338, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 1499, 8639, 12, 797, 3187, 23451, 13, 3639, 1216, 6483, 16, 6565, 22480, 288, 3639, 2358, 18, 2761, 3081, 18, 4875, 18, 1343, 4667, 18, 1330, 2932, 77, 3113, 315, 338, 3...
if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null");
return delegate.loadClass(className, remoteCodebase, loader);
public static Class loadClass(String className, String remoteCodebase, ClassLoader loader) throws ClassNotFoundException { if(delegate != null) return delegate.loadClass(className, remoteCodebase, loader); else throw new ClassNotFoundException(className + ": delegate == null"); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/1ae69e4e117f16a6f054d25da0de26f83fe5b43e/Util.java/buggy/javax/rmi/CORBA/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1659, 16038, 12, 780, 2658, 16, 514, 2632, 1085, 1969, 16, 9403, 4088, 13, 565, 1216, 10403, 225, 288, 565, 309, 12, 22216, 480, 446, 13, 1377, 327, 7152, 18, 945, 797, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1659, 16038, 12, 780, 2658, 16, 514, 2632, 1085, 1969, 16, 9403, 4088, 13, 565, 1216, 10403, 225, 288, 565, 309, 12, 22216, 480, 446, 13, 1377, 327, 7152, 18, 945, 797, 12, ...
flowManager.addFLow(flowKey, flow);
flowManager.addFLow(flowKey, flow,ClientTransferAction.class.getName());
protected void setUp() throws Exception { super.setUp(); try { setServletConfigFile(ResourceLoader.getURI("WEB-INF/web.xml") .getPath()); setConfigFile(ResourceLoader.getURI( "org/mifos/application/customer/client/struts-config.xml") .getPath()); } catch (URISyntaxException e) { e.printStackTrace(); } UserContext userContext = TestObjectFactory.getContext(); request.getSession().setAttribute(Constants.USERCONTEXT, userContext); addRequestParameter("recordLoanOfficerId", "1"); addRequestParameter("recordOfficeId", "1"); request.getSession(false).setAttribute("ActivityContext", TestObjectFactory.getActivityContext()); Flow flow = new Flow(); flowKey = String.valueOf(System.currentTimeMillis()); FlowManager flowManager = new FlowManager(); flowManager.addFLow(flowKey, flow); request.getSession(false).setAttribute(Constants.FLOWMANAGER, flowManager); }
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/2ad3938ddf5827b09ecc08cedee11b66453e1078/ClientTransferActionTest.java/clean/mifos/test/org/mifos/application/customer/client/struts/action/ClientTransferActionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 202, 202, 698, 288, 1082, 202, 542, 4745, 13705, 12, 1420, 2886, 18, 588, 3098, 2932, 14778, 17, 19212, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 24292, 1435, 1216, 1185, 288, 202, 202, 9565, 18, 542, 1211, 5621, 202, 202, 698, 288, 1082, 202, 542, 4745, 13705, 12, 1420, 2886, 18, 588, 3098, 2932, 14778, 17, 19212, ...
if (findPerspectiveWithLabel(label) != null)
} if (findPerspectiveWithLabel(label) != null) {
public PerspectiveDescriptor createPerspective(String label, PerspectiveDescriptor originalDescriptor) { // Sanity check to avoid invalid or duplicate labels. if (!validateLabel(label)) return null; if (findPerspectiveWithLabel(label) != null) return null; // Calculate ID. String id = label.replace(' ', '_'); id = id.trim(); // Create descriptor. PerspectiveDescriptor desc = new PerspectiveDescriptor(id, label, originalDescriptor); add(desc); return desc; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/PerspectiveRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 453, 414, 16772, 3187, 752, 14781, 16772, 12, 780, 1433, 16, 1082, 202, 14781, 16772, 3187, 2282, 3187, 13, 288, 202, 202, 759, 23123, 866, 358, 4543, 2057, 578, 6751, 3249, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 453, 414, 16772, 3187, 752, 14781, 16772, 12, 780, 1433, 16, 1082, 202, 14781, 16772, 3187, 2282, 3187, 13, 288, 202, 202, 759, 23123, 866, 358, 4543, 2057, 578, 6751, 3249, 18,...
assertEquals("before1 # C after1 ", m_logString);
assertEquals("before1 C after1 ", m_logString);
public void test_OR() { m_logString = ""; B(); assertEquals("before1 # B after1 ", m_logString); m_logString = ""; C(); assertEquals("before1 # C after1 ", m_logString); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a4954bc086440ee1724b840d06c4279c27d6d1c7/PointcutExpressionTest.java/clean/aspectwerkz/src/test/test/PointcutExpressionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 916, 1435, 288, 3639, 312, 67, 1330, 780, 273, 1408, 31, 3639, 605, 5621, 3639, 1815, 8867, 2932, 5771, 21, 468, 605, 1839, 21, 3104, 312, 67, 1330, 780, 1769, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 916, 1435, 288, 3639, 312, 67, 1330, 780, 273, 1408, 31, 3639, 605, 5621, 3639, 1815, 8867, 2932, 5771, 21, 468, 605, 1839, 21, 3104, 312, 67, 1330, 780, 1769, 3639...
SimpleFieldSet sfs = new SimpleFieldSet();
SimpleFieldSet sfs = new SimpleFieldSet(false);
public SimpleFieldSet getFieldSet() { SimpleFieldSet sfs = new SimpleFieldSet(); sfs.put("URI", uri.toString()); sfs.put("Identifier", identifier); sfs.put("DataLength", Long.toString(dataLength)); sfs.put("Verbosity", Integer.toString(verbosity)); sfs.put("MaxRetries", Integer.toString(maxRetries)); sfs.put("Metadata.ContentType", contentType); return sfs; }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/ClientPutMessage.java/buggy/src/freenet/node/fcp/ClientPutMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 272, 2556, 273, 394, 4477, 974, 694, 5621, 202, 202, 87, 2556, 18, 458, 2932, 3098, 3113, 2003, 18, 10492, 1066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 272, 2556, 273, 394, 4477, 974, 694, 5621, 202, 202, 87, 2556, 18, 458, 2932, 3098, 3113, 2003, 18, 10492, 1066...
{"First_Day",new java.lang.Integer(2),},
{"First_Day",java.lang.Integer.valueOf(2),},
protected Object[][] getContents() { Object[][] contents = { {"First_Day",new java.lang.Integer(2),}, {"LocalPatternChars","GanjkHmsSEDFwWxhKzZ",}, {"ampm",new String[]{"\u03c0\u03bc","\u03bc\u03bc",},}, {"months",new String[]{"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2","\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2","\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2","\u039c\u03ac\u03ca\u03bf\u03c2","\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2","\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2","\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2","\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2","\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2","",},}, {"shortMonths",new String[]{"\u0399\u03b1\u03bd","\u03a6\u03b5\u03b2","\u039c\u03b1\u03c1","\u0391\u03c0\u03c1","\u039c\u03b1\u03ca","\u0399\u03bf\u03c5\u03bd","\u0399\u03bf\u03c5\u03bb","\u0391\u03c5\u03b3","\u03a3\u03b5\u03c0","\u039f\u03ba\u03c4","\u039d\u03bf\u03b5","\u0394\u03b5\u03ba","",},}, {"weekdays",new String[]{"","\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae","\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1","\u03a4\u03c1\u03af\u03c4\u03b7","\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7","\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7","\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae","\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf",},}, {"shortWeekdays",new String[]{"","\u039a\u03c5\u03c1","\u0394\u03b5\u03c5","\u03a4\u03c1\u03b9","\u03a4\u03b5\u03c4","\u03a0\u03b5\u03bc","\u03a0\u03b1\u03c1","\u03a3\u03b1\u03b2",},}, {"Date_SHORT","d/M/yyyy",}, {"Date_MEDIUM","d MMM yyyy",}, {"Date_LONG","d MMMM yyyy",}, {"Date_FULL","EEEE, d MMMM yyyy",}, {"DecimalPatternChars","0#,.;%\u2030E,-",}, };return contents;}
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4cd556f6bcafbcc4bb2142e05523342b18bd2dda/Locale_el.java/buggy/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/Locale_el.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 1033, 63, 6362, 65, 15015, 1435, 288, 202, 921, 63, 6362, 65, 2939, 273, 288, 202, 202, 16711, 3759, 67, 4245, 3113, 2704, 2252, 18, 4936, 18, 4522, 12, 22, 3631, 5779, 202, 202, 16711...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 1033, 63, 6362, 65, 15015, 1435, 288, 202, 921, 63, 6362, 65, 2939, 273, 288, 202, 202, 16711, 3759, 67, 4245, 3113, 2704, 2252, 18, 4936, 18, 4522, 12, 22, 3631, 5779, 202, 202, 16711...
public void testSynchronization() throws Exception { SOAPConnectionFactory scFactory = SOAPConnectionFactory.newInstance(); SOAPConnection con = scFactory.createConnection(); MessageFactory factory = MessageFactory.newInstance(); SOAPMessage message = factory.createMessage(); String requestEncoding = "UTF-16"; message.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, requestEncoding); SOAPEnvelope envelope = message.getSOAPPart().getEnvelope(); SOAPBody body = envelope.getBody(); Name bodyName = envelope.createName("echo"); SOAPBodyElement bodyElement = body.addBodyElement(bodyName); Name name = envelope.createName("arg0"); SOAPElement symbol = bodyElement.addChildElement(name); symbol.addTextNode("Hello"); URLEndpoint endpoint = new URLEndpoint("http://localhost:5678/axis/EchoHeaders.jws"); SOAPMessage response = con.call(message, endpoint); String responseEncoding = (String) response.getProperty(SOAPMessage.CHARACTER_SET_ENCODING); assertEquals(requestEncoding.toLowerCase(), responseEncoding.toLowerCase()); }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/6da3db3dc7a79b2e979479ec52e14f102f056977/EchoHeadersTest.java/clean/modules/axis/src/test/org/apache/geronimo/axis/EchoHeadersTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 30196, 1435, 15069, 503, 95, 27952, 18749, 1017, 1733, 33, 27952, 18749, 18, 2704, 1442, 5621, 27952, 1952, 591, 33, 1017, 1733, 18, 2640, 1952, 5621, 1079, 1733, 6848, 33, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 30196, 1435, 15069, 503, 95, 27952, 18749, 1017, 1733, 33, 27952, 18749, 18, 2704, 1442, 5621, 27952, 1952, 591, 33, 1017, 1733, 18, 2640, 1952, 5621, 1079, 1733, 6848, 33, 107...
private void render() {
private void render() { if (this.engineVector.size() == 0) { allLog("No engines ... contact the dispatcher"); return; }
private void render() { // Checks there are some engines usde if (li_enginesUsed.getItems().length == 0) { showMessageAll("No engines ... contact the dispatcher"); return; } // Toggles the rendering flag.. b_render = true; // Benchmarking stuff... startTime = System.currentTimeMillis(); Interval interval; String keys[] = li_enginesUsed.getItems(); engines = keys.length; log("Creating " + intervals + " intervals"); intervals = 3 * keys.length; intheight = height / intervals; /* Sets the number of intervals not yet calculated to 'all' */ i_left = intervals; /* Creates the interval stack */ int_stack = new Stack(); for (int i = 0; i < intervals; i++) { // log("Creating inter : "+i); Interval newint = new Interval( i, width, height, i * intheight, (i + 1) * intheight, intervals); int_stack.push(newint); } engine = null; engine = new C3DRenderingEngine[keys.length]; C3DRenderingEngine tmp; if (keys != null) { for (int e = 0; e < keys.length; e++) { /* Assigns one initial interval to each engine */ if (!int_stack.empty()) { interval = (Interval) int_stack.pop(); tmp = (C3DRenderingEngine) h_engines.get(keys[e]); if (tmp != null) { tmp.setScene(scene); engine[e] = tmp; /* Triggers the calculation of this interval on engine e */ tmp.render(e, interval); log( "Interval " + interval.number + " assigned to engine " + keys[e] + "[" + e + "]"); } else { log( "Failed to assign an interval to engine " + keys[e]); h_engines.get(keys[e]); } } } } else b_render = false; }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/80a90996a87b23c561b5cc820ea57e1356c218b2/C3DDispatcher.java/clean/src/org/objectweb/proactive/examples/c3d/C3DDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1743, 1435, 202, 95, 202, 202, 759, 13074, 1915, 854, 2690, 20504, 584, 323, 202, 202, 430, 261, 549, 67, 275, 14660, 6668, 18, 588, 3126, 7675, 2469, 422, 374, 13, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1743, 1435, 202, 95, 202, 202, 759, 13074, 1915, 854, 2690, 20504, 584, 323, 202, 202, 430, 261, 549, 67, 275, 14660, 6668, 18, 588, 3126, 7675, 2469, 422, 374, 13, 202,...
List allowedWindowStates = appConfig.getAllowedWindowStates(); windowStates = new String[allowedWindowStates.size()]; for (int i = 0; i < allowedWindowStates.size(); i++) { PortletWindow.State state = (PortletWindow.State)allowedWindowStates.get(i); windowStates[i] = state.toString(); }
allowedWindowStates = appConfig.getAllowedWindowStates();
protected void doConfig() { PortletRegistry registryManager = PortletRegistry.getInstance(); String appID = registryManager.getApplicationPortletID(portletClass); ApplicationPortlet appPortlet = registryManager.getApplicationPortlet(appID); if (appPortlet != null) { ApplicationPortletConfig appConfig = appPortlet.getApplicationPortletConfig(); // get supported modes from application portlet config List supportedModes = appConfig.getSupportedModes(); portletModes = new String[supportedModes.size()]; for (int i = 0; i < supportedModes.size(); i++) { Portlet.Mode mode = (Portlet.Mode)supportedModes.get(i); portletModes[i] = mode.toString(); } ConcretePortlet concPortlet = appPortlet.getConcretePortlet(portletClass); settings = concPortlet.getPortletSettings(); // get window states from application portlet config List allowedWindowStates = appConfig.getAllowedWindowStates(); windowStates = new String[allowedWindowStates.size()]; for (int i = 0; i < allowedWindowStates.size(); i++) { PortletWindow.State state = (PortletWindow.State)allowedWindowStates.get(i); windowStates[i] = state.toString(); } } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/4a73adddfedc05843450521dfaa7d0a6af1f5a3a/PortletTitleBar.java/buggy/src/org/gridlab/gridsphere/layout/PortletTitleBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 809, 1435, 288, 3639, 21305, 4243, 4023, 1318, 273, 21305, 4243, 18, 588, 1442, 5621, 3639, 514, 24411, 273, 4023, 1318, 18, 588, 3208, 18566, 734, 12, 655, 1810, 797, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 809, 1435, 288, 3639, 21305, 4243, 4023, 1318, 273, 21305, 4243, 18, 588, 1442, 5621, 3639, 514, 24411, 273, 4023, 1318, 18, 588, 3208, 18566, 734, 12, 655, 1810, 797, 176...
System.out.println(": " + node.getName());
RubyPlugin.log(": " + node.getName());
public void visitFCallNode(FCallNode node) { visitNode(node); System.out.println(": " + node.getName()); }
13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/f0d2d3f9a041e8e3a638a130b978aa15445aac51/JRubyParser.java/clean/src/org/jedit/ruby/JRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 42, 1477, 907, 12, 42, 1477, 907, 756, 13, 288, 5411, 3757, 907, 12, 2159, 1769, 5411, 19817, 3773, 18, 1330, 2932, 30, 315, 397, 756, 18, 17994, 10663, 3639, 289, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 42, 1477, 907, 12, 42, 1477, 907, 756, 13, 288, 5411, 3757, 907, 12, 2159, 1769, 5411, 19817, 3773, 18, 1330, 2932, 30, 315, 397, 756, 18, 17994, 10663, 3639, 289, 2, ...
return stripe;
protected Stripe makeStripeForJavaMember(IJavaElement member){ Stripe stripe = new Stripe(); IMylarElement memberContextNode = MylarPlugin.getContextManager().getElement(member.getHandleIdentifier()); if (memberContextNode != null){ int stripeDepth = 1; if (member instanceof IMethod){ stripeDepth = Util.getLength((IMethod)member); } stripe.setDepth(stripeDepth); int offset = 0; if (member instanceof ISourceReference){ try { offset = JDTUtils.getLineNumber(Util.getCompilationUnit(member), ((ISourceReference)member).getSourceRange().getOffset()); } catch (JavaModelException e) { MylarPlugin.fail(e, "could not get member line number",false); } } stripe.setOffset(offset); List<IMarkupKind> kindList = new ArrayList<IMarkupKind>(); if (memberContextNode.getDegreeOfInterest().isLandmark()){ kindList.add(landmarkKind); } else if(memberContextNode.getDegreeOfInterest().isInteresting()){ kindList.add(interestingKind); } stripe.setKinds(kindList); } return stripe; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/75a7af17198a7839c562452f3c20b50b76b5b894/JavaContextMarkupProvider.java/clean/sandbox/org.eclipse.mylyn.viz/src/org/eclipse/mylyn/viz/seesoft/JavaContextMarkupProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 21566, 1221, 18275, 1290, 5852, 4419, 12, 45, 5852, 1046, 3140, 15329, 202, 202, 18275, 14268, 273, 394, 21566, 5621, 202, 202, 3445, 93, 7901, 1046, 3140, 1042, 907, 273, 8005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21566, 1221, 18275, 1290, 5852, 4419, 12, 45, 5852, 1046, 3140, 15329, 202, 202, 18275, 14268, 273, 394, 21566, 5621, 202, 202, 3445, 93, 7901, 1046, 3140, 1042, 907, 273, 8005, ...
return ( (ReportDesign) module ).collectPropValues( BODY_SLOT,
List tocs = ( (ReportDesign) module ).collectPropValues( BODY_SLOT,
public List getAllTocs( ) { return ( (ReportDesign) module ).collectPropValues( BODY_SLOT, IReportItemModel.TOC_PROP ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/8529bccfd675ca4ba8b0642f4a2b0f94ae7c57ae/ReportDesignHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ReportDesignHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 5514, 56, 22280, 12, 262, 202, 95, 202, 202, 2463, 261, 261, 4820, 15478, 13, 1605, 262, 18, 14676, 4658, 1972, 12, 30580, 67, 55, 1502, 56, 16, 9506, 202, 45, 4820, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 5514, 56, 22280, 12, 262, 202, 95, 202, 202, 2463, 261, 261, 4820, 15478, 13, 1605, 262, 18, 14676, 4658, 1972, 12, 30580, 67, 55, 1502, 56, 16, 9506, 202, 45, 4820, 11...
public static boolean copyFile(String resPath, File dstFile) { try { BufferedInputStream bis = new BufferedInputStream( Util.class.getResourceAsStream(resPath)); FileOutputStream fos = new FileOutputStream(dstFile); int offset = 0, len = 0; byte[] buffer = new byte[2 * 1024]; while ((len = bis.read(buffer, 0, buffer.length)) != -1) { fos.write(buffer, 0, len); offset += len; } bis.close(); fos.flush(); fos.close(); return true; } catch (Exception e) { e.printStackTrace(); } return false; }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/6c6a574b8da6a8f7989e99ea78e4db5cb63abe6b/Util.java/buggy/tag-doc/src/java/org/apache/struts/taskdefs/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3845, 6494, 3530, 812, 12, 780, 455, 743, 16, 812, 11057, 812, 15329, 202, 202, 698, 95, 1082, 202, 17947, 4348, 70, 291, 33, 9506, 202, 2704, 17947, 4348, 12, 6862, 202, 1304...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 6494, 3530, 812, 12, 780, 455, 743, 16, 812, 11057, 812, 15329, 202, 202, 698, 95, 1082, 202, 17947, 4348, 70, 291, 33, 9506, 202, 2704, 17947, 4348, 12, 6862, 202, 1304...
myIsClosed = true; synchronized(myEvents) { myEvents.notifyAll();
finally { myLock.unlock();
public void close(){ if (LOG.isDebugEnabled()) { LOG.debug("events closed"); } myIsClosed = true; synchronized(myEvents) { myEvents.notifyAll(); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/cd5bc138fc1fbe0ffe6958108bcd4095f94cb67b/EventQueue.java/buggy/debugger/impl/com/intellij/debugger/impl/EventQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1746, 1435, 95, 565, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1377, 2018, 18, 4148, 2932, 5989, 4375, 8863, 565, 289, 565, 3399, 2520, 7395, 273, 638, 31, 565, 3852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1746, 1435, 95, 565, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1377, 2018, 18, 4148, 2932, 5989, 4375, 8863, 565, 289, 565, 3399, 2520, 7395, 273, 638, 31, 565, 3852, ...
if (curLine.controls.size() > 0)
if (curLine.controls.size() > 0) {
private List computeWrappedTrim(TrimArea trimArea, int majorHint) { boolean horizontal = trimArea.orientation == SWT.TOP || trimArea.orientation == SWT.BOTTOM; // Return a list of 'lines' to tile the control into... List lines = new ArrayList(); TrimLine curLine = new TrimLine(); lines.add(curLine); curLine.minorMax = trimArea.defaultMinor; // Init the tilePos to force a 'new' line int tilePos = 0; for (Iterator iter = trimArea.trimContents.iterator(); iter.hasNext();) { Control control = (Control) iter.next(); TrimLayoutData td = (TrimLayoutData) control.getLayoutData(); Point prefSize; if (horizontal) prefSize = control.computeSize(majorHint, SWT.DEFAULT); else prefSize = control.computeSize(SWT.DEFAULT, majorHint); // Will this control fit onto the current line? int curTileSize = horizontal ? prefSize.x : prefSize.y; // every control except the first one needs to include the 'spacing' // in the calc if (curLine.controls.size() > 0) curTileSize += spacing; // If the control can be re-positioned then we have to add a drag // handle to it // we have to include the space that it'll occupy in the calcs if (td.listener != null) curTileSize += horizontal ? horizontalHandleSize : verticalHandleSize; // Place the control into the 'current' line if it'll fit (or if // it's the // -first- control (this handles the case where a control is too // large to // fit into the current TrimArea's 'major' size. if ((tilePos + curTileSize) <= majorHint || curLine.controls.size() == 0) { curLine.controls.add(control); // Cache the maximum amount of 'minor' space needed int minorSize = horizontal ? prefSize.y : prefSize.x; if (minorSize > curLine.minorMax) curLine.minorMax = minorSize; tilePos += curTileSize; } else { // Remember how much space was left on the current line curLine.extraSpace = majorHint - tilePos; // We need a new line... curLine = new TrimLine(); lines.add(curLine); curLine.controls.add(control); // Cache the maximum amount of 'minor' space needed int minorSize = horizontal ? prefSize.y : prefSize.x; if (minorSize > curLine.minorMax) curLine.minorMax = minorSize; tilePos = curTileSize; } // Count how many 'resizable' controls there are if ((td.flags & TrimLayoutData.GROWABLE) != 0) curLine.resizableCount++; } // Remember how much space was left on the current line curLine.extraSpace = majorHint - tilePos; return lines; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 3671, 17665, 14795, 12, 14795, 5484, 2209, 5484, 16, 509, 7888, 7002, 13, 288, 202, 202, 6494, 10300, 273, 2209, 5484, 18, 19235, 422, 348, 8588, 18, 10462, 9506, 202, 200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 3671, 17665, 14795, 12, 14795, 5484, 2209, 5484, 16, 509, 7888, 7002, 13, 288, 202, 202, 6494, 10300, 273, 2209, 5484, 18, 19235, 422, 348, 8588, 18, 10462, 9506, 202, 200...
SimpleParticleInfluenceFactory.createBasicDrag(1f));
SimpleParticleInfluenceFactory.createBasicGravity( new Vector3f(Vector3f.ZERO)));
public void actionPerformed(ActionEvent e) { particleMesh.addInfluence( SimpleParticleInfluenceFactory.createBasicDrag(1f)); int idx = particleMesh.getInfluences().size() - 1; influenceModel.fireIntervalAdded(idx, idx); influenceList.setSelectedIndex(idx); }
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/f32ea71a9e345e9061f008ac4d925c767c9bce1a/RenParticleEditor.java/buggy/projects/pseditor/src/java/jmetest/effects/RenParticleEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 20036, 16748, 18, 1289, 27040, 23209, 12, 10792, 4477, 1988, 3711, 27040, 23209, 1733, 18, 2640, 8252, 14571, 16438, 12, 394, 5589, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 20036, 16748, 18, 1289, 27040, 23209, 12, 10792, 4477, 1988, 3711, 27040, 23209, 1733, 18, 2640, 8252, 14571, 16438, 12, 394, 5589, 23...
public DefaultGrailsDomainClass(Class clazz) { super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = getAssociationMap(); // get mapped by setting if(getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.MAPPED_BY, String.class); Class belongsTo = (Class)getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.BELONGS_TO, Class.class); if(belongsTo == null) { List ownersProp = (List)getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.BELONGS_TO, List.class); if(ownersProp != null) { this.owners = ownersProp; } } else { this.owners = new ArrayList(); this.owners.add(belongsTo); } // First go through the properties of the class and create domain properties // populating into a map for(int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor descriptor = propertyDescriptors[i]; // ignore certain properties if(isNotConfigurational(descriptor) ) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(this, descriptor); this.propertyMap.put(property.getName(), property); if(property.isIdentity()) { this.identifier = property; } else if(property.getName().equals( GrailsDomainClassProperty.VERSION )) { this.version = property; } } } // if no identifier property throw exception if(this.identifier == null) { throw new GrailsDomainException("Identity property not found, but required in domain class ["+getFullName()+"]" ); } // if no version property throw exception if(this.version == null) { throw new GrailsDomainException("Version property not found, but required in domain class ["+getFullName()+"]" ); } // set properties from map values this.properties = (GrailsDomainClassProperty[])this.propertyMap.values().toArray( new GrailsDomainClassProperty[this.propertyMap.size()] ); // establish relationships establishRelationships(); // set persistant properties Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); // process the constraints evaluateConstraints(); }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/6c47cbe485713fe8d2b500632651590033abed59/DefaultGrailsDomainClass.java/clean/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2989, 14571, 14573, 3748, 797, 12, 797, 4003, 13, 288, 9565, 12, 830, 3638, 16, 1408, 1769, 1396, 3187, 8526, 1272, 12705, 273, 13223, 7675, 588, 1396, 12705, 5621, 430, 12, 5, 830, 3638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 2989, 14571, 14573, 3748, 797, 12, 797, 4003, 13, 288, 9565, 12, 830, 3638, 16, 1408, 1769, 1396, 3187, 8526, 1272, 12705, 273, 13223, 7675, 588, 1396, 12705, 5621, 430, 12, 5, 830, 3638...
} if ( debugOut == null ) debugOut = new PrintWriter(System.out, true); } } }
} if ( debugOut == null ) debugOut = new PrintWriter(System.out, true); } } }
public static void checkTracing() { if ( debugOut == null ) { int trace = MondrianProperties.instance().getTraceLevel(); if (trace > 0) { String debugOutFile = MondrianProperties.instance().getProperty(MondrianProperties.DebugOutFile); if ( debugOutFile != null ) { File f; try { f = new File(debugOutFile); debugOut = new PrintWriter(new FileOutputStream(f), true); } catch (Exception e) { // don't care, use System.out } } if ( debugOut == null ) debugOut = new PrintWriter(System.out, true); } } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/RolapUtil.java/clean/src/main/mondrian/rolap/RolapUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 866, 3403, 1435, 288, 202, 202, 430, 261, 1198, 1182, 422, 446, 262, 288, 1082, 202, 474, 2606, 273, 490, 1434, 566, 304, 2297, 18, 1336, 7675, 588, 3448, 2355, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 866, 3403, 1435, 288, 202, 202, 430, 261, 1198, 1182, 422, 446, 262, 288, 1082, 202, 474, 2606, 273, 490, 1434, 566, 304, 2297, 18, 1336, 7675, 588, 3448, 2355, 5621...
printLine( text.replaceAll( "<br>", LINE_BREAK ).replaceAll( "<(p|blockquote)>", LINE_BREAK + LINE_BREAK ).replaceAll( LINE_BREAK + "(" + LINE_BREAK + ")+", LINE_BREAK + LINE_BREAK ).replaceAll( "<.*?>", "" ).replaceAll( "&nbsp;", " " ).replaceAll( "&trade;", " [tm]" ).replaceAll( "&ntilde;", "n" ).replaceAll( "&quot;", "" ) );
String displayText = text.replaceAll( "<br>", "\n" ).replaceAll( "<(p|blockquote)>", "\n\n" ); displayText = Pattern.compile( "<.*?>", Pattern.DOTALL ).matcher( displayText ).replaceAll( "" ); displayText = displayText.replaceAll( "&nbsp;", " " ).replaceAll( "&trade;", " [tm]" ).replaceAll( "&ntilde;", "n" ).replaceAll( "&quot;", "" ); displayText = displayText.replaceAll( "[\r\n]", "\n" ).replaceAll( "\n\\s+", "\n\n" ); displayText = displayText.replaceAll( "\n\n\n+", "\n\n" ).replaceAll( "\n", LINE_BREAK ); printLine( displayText.trim() );
public void showHTML( String text, String title ) { printLine( text.replaceAll( "<br>", LINE_BREAK ).replaceAll( "<(p|blockquote)>", LINE_BREAK + LINE_BREAK ).replaceAll( LINE_BREAK + "(" + LINE_BREAK + ")+", LINE_BREAK + LINE_BREAK ).replaceAll( "<.*?>", "" ).replaceAll( "&nbsp;", " " ).replaceAll( "&trade;", " [tm]" ).replaceAll( "&ntilde;", "n" ).replaceAll( "&quot;", "" ) ); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/9e70c52814631c9a31c99c280d8ad4968c6540fc/KoLmafiaCLI.java/clean/src/net/sourceforge/kolmafia/KoLmafiaCLI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2405, 4870, 12, 514, 977, 16, 514, 2077, 262, 202, 95, 202, 202, 1188, 1670, 12, 977, 18, 2079, 1595, 12, 3532, 2848, 2984, 16, 14340, 67, 27960, 262, 18, 2079, 1595, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 4870, 12, 514, 977, 16, 514, 2077, 262, 202, 95, 202, 202, 1188, 1670, 12, 977, 18, 2079, 1595, 12, 3532, 2848, 2984, 16, 14340, 67, 27960, 262, 18, 2079, 1595, 1...
this.index = index;
index = -1;
PathQuery(String path, int type, int index) { if (path == null) { throw new NullPointerException("path"); } if (type < PathQueryNode.TYPE_EXACT || type > PathQueryNode.TYPE_DESCENDANT) { throw new IllegalArgumentException("type: " + type); } if (index < 1) { throw new IllegalArgumentException("index: " + index); } this.path = path; this.type = type; this.index = index; }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/06e4b9f6c32e55c8a398ee9f50e20ac6d16c78f3/PathQuery.java/buggy/src/java/org/apache/jackrabbit/core/search/lucene/PathQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2666, 1138, 12, 780, 589, 16, 509, 618, 16, 509, 770, 13, 288, 202, 430, 261, 803, 422, 446, 13, 288, 202, 565, 604, 394, 10108, 2932, 803, 8863, 202, 97, 202, 430, 261, 723, 411, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2666, 1138, 12, 780, 589, 16, 509, 618, 16, 509, 770, 13, 288, 202, 430, 261, 803, 422, 446, 13, 288, 202, 565, 604, 394, 10108, 2932, 803, 8863, 202, 97, 202, 430, 261, 723, 411, 2...
VM_Statics.setSlotContents(offset >>> LOG_BYTES_IN_INT, value );
VM_Statics.setSlotContents(getOffset(), value );
private void put32(Object obj, int value) { if (isStatic()) { VM_Statics.setSlotContents(offset >>> LOG_BYTES_IN_INT, value ); } else { VM_Magic.setIntAtOffset(obj, getOffset(), value); } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d1d1434574eb350f48cb1d82f04917a27eea9bdc/VM_Field.java/clean/rvm/src/vm/classLoader/VM_Field.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1378, 1578, 12, 921, 1081, 16, 509, 460, 13, 288, 565, 309, 261, 291, 5788, 10756, 288, 1377, 8251, 67, 5000, 2102, 18, 542, 8764, 6323, 12, 588, 2335, 9334, 460, 11272, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1378, 1578, 12, 921, 1081, 16, 509, 460, 13, 288, 565, 309, 261, 291, 5788, 10756, 288, 1377, 8251, 67, 5000, 2102, 18, 542, 8764, 6323, 12, 588, 2335, 9334, 460, 11272, 565,...
queryHash = qArgs.buildQueryHash(request); Iterator i = queryHash.keySet().iterator(); while(i.hasNext())
queryHash = qArgs.buildQueryHash(request); Iterator i = queryHash.keySet().iterator(); while(i.hasNext())
protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { // Get the query String query = request.getParameter("query"); int start = UIUtil.getIntParameter(request, "start"); String advanced = request.getParameter("advanced"); String fromAdvanced = request.getParameter("from_advanced"); String advancedQuery = ""; HashMap queryHash = new HashMap(); // can't start earlier than 0 in the results! if( start < 0 ) { start = 0; } List itemHandles = new ArrayList(); List collectionHandles = new ArrayList(); List communityHandles = new ArrayList(); Item [] resultsItems; Collection [] resultsCollections; Community [] resultsCommunities; QueryResults qResults = null; QueryArgs qArgs = new QueryArgs(); // if the "advanced" flag is set, build the query string from the // multiple query fields if (advanced != null) { query = qArgs.buildQuery(request); advancedQuery = qArgs.buildHTTPQuery(request); } // Ensure the query is non-null if (query == null) { query = ""; } // Get the location parameter, if any String location = request.getParameter("location"); String newURL; // If there is a location parameter, we should redirect to // do the search with the correct location. if (location != null && !location.equals("")) { String url = ""; if (!location.equals("/")) { // Location is a Handle url = "/handle/" + location; } // Encode the query query = URLEncoder.encode(query); if (advancedQuery.length() > 0) { query = query + "&from_advanced=true&" + advancedQuery; } // Do the redirect response.sendRedirect(response.encodeRedirectURL( request.getContextPath() + url + "/simple-search?query=" + query)); return; } // Build log information String logInfo = ""; // Get our location Community community = UIUtil.getCommunityLocation(request); Collection collection = UIUtil.getCollectionLocation(request); // get the start of the query results page // List resultObjects = null; qArgs.setQuery( query ); qArgs.setStart( start ); // Perform the search try { if (collection != null) { logInfo = "collection_id=" + collection.getID() + ","; // Values for drop-down box request.setAttribute("community", community ); request.setAttribute("collection", collection); qResults = DSQuery.doQuery(context, qArgs, collection); } else if (community != null) { logInfo = "community_id=" + community.getID() + ","; request.setAttribute("community", community); // Get the collections within the community for the dropdown box request.setAttribute("collection.array", community.getCollections()); qResults = DSQuery.doQuery(context, qArgs, community); } else { // Get all communities for dropdown box Community[] communities = Community.findAll(context); request.setAttribute("community.array", communities); qResults = DSQuery.doQuery(context, qArgs); } // now instantiate the results and put them in their buckets for( int i = 0; i < qResults.getHitHandles().size(); i++ ) { String myHandle = (String )qResults.getHitHandles().get(i); Integer myType = (Integer)qResults.getHitTypes().get(i); // add the handle to the appropriate lists switch( myType.intValue() ) { case Constants.ITEM: itemHandles.add( myHandle ); break; case Constants.COLLECTION: collectionHandles.add( myHandle ); break; case Constants.COMMUNITY: communityHandles.add( myHandle ); break; } } int numCommunities = communityHandles.size(); int numCollections = collectionHandles.size(); int numItems = itemHandles.size(); // Make objects from the handles - make arrays, fill them out resultsCommunities = new Community [numCommunities]; resultsCollections = new Collection[numCollections]; resultsItems = new Item [numItems ]; for (int i = 0; i < numItems; i++) { String myhandle = (String) itemHandles.get(i); Object o = HandleManager.resolveToObject(context, myhandle); resultsItems[i] = (Item)o; if (resultsItems[i] == null) { throw new SQLException("Query \"" + query + "\" returned unresolvable handle: " + myhandle); } } for (int i = 0; i < collectionHandles.size(); i++) { String myhandle = (String) collectionHandles.get(i); Object o = HandleManager.resolveToObject(context, myhandle); resultsCollections[i] = (Collection)o; if (resultsCollections[i] == null) { throw new SQLException("Query \"" + query + "\" returned unresolvable handle: " + myhandle); } } for (int i = 0; i < communityHandles.size(); i++) { String myhandle = (String) communityHandles.get(i); Object o = HandleManager.resolveToObject(context, myhandle); resultsCommunities[i] = (Community)o; if (resultsCommunities[i] == null) { throw new SQLException("Query \"" + query + "\" returned unresolvable handle: " + myhandle); } } // Log log.info(LogManager.getHeader(context, "search", logInfo + "query=\"" + query + "\",results=(" + resultsCommunities.length + "," + resultsCollections.length + "," + resultsItems.length + ")")); } catch (ParseException pe) { /* * A parse exception means there were some weird characters in * the query we couldn't resolve. We'll pretend the search went * OK but with no results for the user, but log the error, since * this shouldn't really happen. */ log.warn(LogManager.getHeader(context, "search_exception", logInfo + "query=\"" + query + "\""), pe); // Empty results resultsItems = new Item [0]; resultsCommunities = new Community [0]; resultsCollections = new Collection[0]; } catch (TokenMgrError tme) { // Similar to parse exception log.warn(LogManager.getHeader(context, "search_exception", logInfo + "query=\"" + query + "\""), tme); // Empty results resultsItems = new Item [0]; resultsCommunities = new Community [0]; resultsCollections = new Collection[0]; } // Pass in some page qualities // total number of pages int pageTotal = 1 + (qResults.getHitCount() - 1)/qResults.getPageSize(); // current page being displayed int pageCurrent= 1 + (qResults.getStart()/qResults.getPageSize()); // pageLast = min(pageCurrent+9,pageTotal) int pageLast = (pageCurrent + 9) > pageTotal ? pageTotal : (pageCurrent+9); // pageFirst = max(1,pageCurrent-9) int pageFirst = (pageCurrent - 9) > 1 ? (pageCurrent - 9) : 1; // Pass the results to the display JSP request.setAttribute("items", resultsItems ); request.setAttribute("communities", resultsCommunities); request.setAttribute("collections", resultsCollections); request.setAttribute("pagetotal", new Integer(pageTotal ) ); request.setAttribute("pagecurrent", new Integer(pageCurrent) ); request.setAttribute("pagelast", new Integer(pageLast ) ); request.setAttribute("pagefirst", new Integer(pageFirst ) ); request.setAttribute("queryresults", qResults ); // And the original query string request.setAttribute("query", query); if ((fromAdvanced != null) && (qResults.getHitCount() == 0)) { // send back to advanced form if no results Community[] communities = Community.findAll(context); request.setAttribute("communities", communities); request.setAttribute("no_results", "yes"); queryHash = qArgs.buildQueryHash(request); Iterator i = queryHash.keySet().iterator(); while(i.hasNext()) { String key = (String)i.next(); String value = (String)queryHash.get(key); request.setAttribute(key, value); } JSPManager.showJSP(request, response, "/search/advanced.jsp"); } else { JSPManager.showJSP(request, response, "/search/results.jsp"); } }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/2d4d8c52c85a4e3ae8a0730741d5c00415955b7e/SimpleSearchServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/SimpleSearchServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 3948, 967, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 968, 326, 843, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 3948, 967, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 968, 326, 843, 3639,...
addByteCode(ByteCode.GOTO, targetLabel);
cfw.add(ByteCode.GOTO, targetLabel);
private void visitGOTO(Node node, int type, Node child) { Node target = (Node)(node.getProp(Node.TARGET_PROP)); int targetLabel = target.getIntProp(Node.LABEL_PROP, -1); if (targetLabel == -1) { targetLabel = acquireLabel(); target.putIntProp(Node.LABEL_PROP, targetLabel); } int fallThruLabel = acquireLabel(); if ((type == Token.IFEQ) || (type == Token.IFNE)) { if (child == null) { // can have a null child from visitSwitch which // has already generated the code for the child // and just needs the GOTO code emitted addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); if (type == Token.IFEQ) addByteCode(ByteCode.IFNE, targetLabel); else addByteCode(ByteCode.IFEQ, targetLabel); } else { if (type == Token.IFEQ) generateIfJump(child, node, targetLabel, fallThruLabel); else generateIfJump(child, node, fallThruLabel, targetLabel); } } else { while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } if (type == Token.JSR) addByteCode(ByteCode.JSR, targetLabel); else addByteCode(ByteCode.GOTO, targetLabel); } markLabel(fallThruLabel); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 43, 27019, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 565, 288, 3639, 2029, 1018, 273, 261, 907, 21433, 2159, 18, 588, 4658, 12, 907, 18, 16374, 67, 15811, 10019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 43, 27019, 12, 907, 756, 16, 509, 618, 16, 2029, 1151, 13, 565, 288, 3639, 2029, 1018, 273, 261, 907, 21433, 2159, 18, 588, 4658, 12, 907, 18, 16374, 67, 15811, 10019, ...
try { spiceframe.showStatus("Loading...Wait...",Color.red); DAS_PDBFeeder pdb_f = new DAS_PDBFeeder(spiceframe.getConfiguration()) ; pdb_f.loadPDB(pdb_file); structure = pdb_f.getStructure() ; structure.setPDBCode(pdb_file); spiceframe.setStructure(structure); spiceframe.showStatus(pdb_file +" loaded"); finished = true ; notifyAll(); } catch (Exception e){ e.printStackTrace(); finished = true ; StructureImpl n = new StructureImpl(); spiceframe.setStructure(n); }
try { spiceframe.showStatus("Loading...Wait...",Color.red); DAS_PDBFeeder pdb_f = new DAS_PDBFeeder(spiceframe.getConfiguration()) ; pdb_f.loadPDB(pdb_file); structure = pdb_f.getStructure() ; structure.setPDBCode(pdb_file); spiceframe.setStructure(structure); spiceframe.showStatus(pdb_file +" loaded"); finished = true ; notifyAll(); } catch (Exception e){ e.printStackTrace(); finished = true ; StructureImpl n = new StructureImpl(); spiceframe.setStructure(n); }
public synchronized void loadCompound() { try { //String dassequencecommand = spiceframe.getSequenceServer() + "sequence?segment="; //String dasalignmentcommand = dasalignmentcommand = getAlignmentServer() + "alignment?query=" ; spiceframe.showStatus("Loading...Wait...",Color.red); //DAS_PDBFeeder pdb_f = new DAS_PDBFeeder(structureURL,dassequencecommand,dasalignmentcommand) ; DAS_PDBFeeder pdb_f = new DAS_PDBFeeder(spiceframe.getConfiguration()) ; //System.out.println("pdb_f.loadPDB"); pdb_f.loadPDB(pdb_file); //System.out.println("pdb_f.getStructure"); structure = pdb_f.getStructure() ; structure.setPDBCode(pdb_file); // System.out.println("set Structure"); spiceframe.setStructure(structure); spiceframe.showStatus(pdb_file +" loaded"); //System.out.println("LoadStructureThread finished"); finished = true ; notifyAll(); } catch (Exception e){ // at some point raise some IO exception, which should be defined by the Inferface e.printStackTrace(); finished = true ; StructureImpl n = new StructureImpl(); spiceframe.setStructure(n); } }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/13ff30867f5275c13414003254ec2adce26901d7/LoadStructureThread.java/clean/src/org/biojava/spice/LoadStructureThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1262, 16835, 1435, 288, 202, 202, 698, 288, 1082, 565, 368, 780, 30255, 6178, 3076, 225, 273, 1694, 1812, 3789, 18, 588, 4021, 2081, 1435, 225, 397, 315, 6178, 35, 9273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1262, 16835, 1435, 288, 202, 202, 698, 288, 1082, 565, 368, 780, 30255, 6178, 3076, 225, 273, 1694, 1812, 3789, 18, 588, 4021, 2081, 1435, 225, 397, 315, 6178, 35, 9273, ...
/* JButton button = new JButton("Guess");
JButton button = new JButton("Guess");
public Box createTokensToIgnoreField() { Box box = Box.createHorizontalBox(); box.add(new JLabel("Ignore rules:")); box.add(Box.createHorizontalStrut(5)); tokensToIgnoreLabel = new JLabel(); tokensToIgnoreLabel.setFont(tokensToIgnoreLabel.getFont().deriveFont(Font.ITALIC)); box.add(tokensToIgnoreLabel);/* JButton button = new JButton("Guess"); button.setToolTipText("Find the name of all rules containing an action with channel=99"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { findTokensToIgnore(); } }); box.add(button); */ return box; }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/21f189efd0dc560976d5ee501836c5849800a38c/EditorInterpreter.java/buggy/src/org/antlr/works/interpreter/EditorInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8549, 752, 5157, 774, 3777, 974, 1435, 288, 3639, 8549, 3919, 273, 8549, 18, 2640, 14457, 3514, 5621, 3639, 3919, 18, 1289, 12, 2704, 21403, 2932, 3777, 2931, 2773, 10019, 3639, 3919,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8549, 752, 5157, 774, 3777, 974, 1435, 288, 3639, 8549, 3919, 273, 8549, 18, 2640, 14457, 3514, 5621, 3639, 3919, 18, 1289, 12, 2704, 21403, 2932, 3777, 2931, 2773, 10019, 3639, 3919,...
return null;
public String getCurrentState(int instanceId) { String historyId = this.getParameter(PRM_HISTORY_ID); //System.err.println("in iwc.getCurrentState()"); if (historyId != null) { //System.err.println("historyId != null"); HttpSession s = this.getSession(); //System.err.println(" - from Session.hashCode() -> "+s.hashCode()); List historyList = (List) s.getAttribute(SESSION_OBJECT_STATE); //List historyList = (List)this.getSessionAttribute(BuilderLogic.SESSION_OBJECT_STATE); if (historyList != null && historyList.contains(historyId)) { int index = historyList.indexOf(historyId); //System.err.println("current state historyIndex = "+index + " for instance " + instanceId); Object ob = ((Hashtable) historyList.get(index + 1)).get(Integer.toString(instanceId)); //System.err.println("current state = "+ob); //System.err.println("iwc.getCurrentState() ends"); return (String) ob; } } //System.err.println("iwc.getCurrentState() ends"); return null; }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/143a1004ea568609581b67939539eda441461be3/IWContext.java/buggy/src/java/com/idega/presentation/IWContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 5175, 1119, 12, 474, 17608, 13, 288, 202, 202, 780, 4927, 548, 273, 333, 18, 588, 1662, 12, 8025, 49, 67, 31746, 67, 734, 1769, 202, 202, 759, 3163, 18, 370, 18, 8222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5175, 1119, 12, 474, 17608, 13, 288, 202, 202, 780, 4927, 548, 273, 333, 18, 588, 1662, 12, 8025, 49, 67, 31746, 67, 734, 1769, 202, 202, 759, 3163, 18, 370, 18, 8222, ...
this.templateParameterTypes = templateParameterTypes;
fTemplate.setTemplateParameterTypes(templateParameterTypes);
public void setTemplateParameterTypes(String[] templateParameterTypes) { this.templateParameterTypes = templateParameterTypes; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/dd2d2f9a52db3f3bdb4053be6286f0e185ffad86/FunctionTemplate.java/clean/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/FunctionTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21334, 1662, 2016, 12, 780, 8526, 1542, 1662, 2016, 13, 288, 202, 202, 2211, 18, 3202, 1662, 2016, 273, 1542, 1662, 2016, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21334, 1662, 2016, 12, 780, 8526, 1542, 1662, 2016, 13, 288, 202, 202, 2211, 18, 3202, 1662, 2016, 273, 1542, 1662, 2016, 31, 202, 97, 2, -100, -100, -100, -100, -100, -1...
public ComponentsImageMeasure(ImageMeasure measure) {
public ComponentsImageMeasure(ImageMeasure measure, int[] indices) {
public ComponentsImageMeasure(ImageMeasure measure) { if (measure == null) throw new NullPointerException("measure == null"); this.measure = measure; }
13378 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13378/8c17d99cd03b8aaf44f4598313596d8c3328b0f4/ComponentsImageMeasure.java/clean/Imilarity/de/berlios/imilarity/measures/ComponentsImageMeasure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 25286, 2040, 7197, 12, 2040, 7197, 6649, 13, 288, 202, 202, 430, 261, 10772, 422, 446, 13, 1082, 202, 12849, 394, 10108, 2932, 10772, 422, 446, 8863, 202, 202, 2211, 18, 10772, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 25286, 2040, 7197, 12, 2040, 7197, 6649, 13, 288, 202, 202, 430, 261, 10772, 422, 446, 13, 1082, 202, 12849, 394, 10108, 2932, 10772, 422, 446, 8863, 202, 202, 2211, 18, 10772, ...
switch (currentToken) {
switch (this.currentToken) {
public void recoveryTokenCheck() { switch (currentToken) { case TokenNameLBRACE : RecoveredElement newElement = null; if(!ignoreNextOpeningBrace) { newElement = currentElement.updateOnOpeningBrace(scanner.startPosition - 1, scanner.currentPosition - 1); } lastCheckPoint = scanner.currentPosition; if (newElement != null){ // null means nothing happened restartRecovery = true; // opening brace detected currentElement = newElement; } break; case TokenNameRBRACE : this.rBraceStart = scanner.startPosition - 1; this.rBraceEnd = scanner.currentPosition - 1; endPosition = this.flushCommentsDefinedPriorTo(this.rBraceEnd); newElement = currentElement.updateOnClosingBrace(scanner.startPosition, this.rBraceEnd); lastCheckPoint = scanner.currentPosition; if (newElement != currentElement){ currentElement = newElement; } break; case TokenNameSEMICOLON : endStatementPosition = scanner.currentPosition - 1; endPosition = scanner.startPosition - 1; // fall through default : { if (this.rBraceEnd > this.rBraceSuccessorStart && scanner.currentPosition != scanner.startPosition){ this.rBraceSuccessorStart = scanner.startPosition; } break; } } ignoreNextOpeningBrace = false;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/72d09911302484497c2776b017dc226fd10250ec/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 11044, 1345, 1564, 1435, 288, 202, 9610, 261, 2972, 1345, 13, 288, 202, 202, 3593, 3155, 461, 12995, 9254, 294, 1875, 202, 426, 16810, 1046, 31308, 273, 446, 31, 1082, 202, 430, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 11044, 1345, 1564, 1435, 288, 202, 9610, 261, 2972, 1345, 13, 288, 202, 202, 3593, 3155, 461, 12995, 9254, 294, 1875, 202, 426, 16810, 1046, 31308, 273, 446, 31, 1082, 202, 430, 12,...
Class uninitializedClass = Class.forName(externalName, false, loader); if (iface.isAssignableFrom(uninitializedClass) ) { Class<T> type = iface.getClass().cast( Class.forName(externalName) ); impls.add(type);
Class type = loader.loadClass(externalName); if (iface.isAssignableFrom(type) ) { impls.add( (Class<T>) type);
static <T> void addIfImplements(Set<Class<T>> impls, Class<T> iface, String name) { try { log.trace("Checking to see if class '", name, "' implements ", iface.getName()); ClassLoader loader = Thread.currentThread().getContextClassLoader(); String externalName = name.substring(0, name.indexOf('.')).replace('/', '.'); Class uninitializedClass = Class.forName(externalName, false, loader); if (iface.isAssignableFrom(uninitializedClass) ) { Class<T> type = iface.getClass().cast( Class.forName(externalName) ); impls.add(type); } } catch (Throwable t) { log.warn(t, "Could not examine class '", name, "'"); } }
9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/f0eac7a348346ecad1d455e9f8685e479fa1dce5/ResolverUtil.java/buggy/stripes/src/net/sourceforge/stripes/util/ResolverUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 411, 56, 34, 918, 527, 2047, 17516, 12, 694, 32, 797, 32, 56, 9778, 9380, 87, 16, 1659, 32, 56, 34, 9751, 16, 514, 508, 13, 288, 3639, 775, 288, 5411, 613, 18, 5129, 2932, 1429...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 411, 56, 34, 918, 527, 2047, 17516, 12, 694, 32, 797, 32, 56, 9778, 9380, 87, 16, 1659, 32, 56, 34, 9751, 16, 514, 508, 13, 288, 3639, 775, 288, 5411, 613, 18, 5129, 2932, 1429...
rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER);
try { rwl.writeLock().lock(); errorIfInvalidState();
public void setActive(int w, boolean active) { rwl.writeLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER); ChannelBinding[] cb = renderer.getChannelBindings(); cb[w].setActive(Boolean.valueOf(active)); } rwl.writeLock().unlock(); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/1a80ae364d5a13aebca07b0ae7349d79247ded75/RenderingEngineImpl.java/clean/components/rendering/src/omeis/providers/re/RenderingEngineImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20669, 12, 474, 341, 16, 1250, 2695, 13, 565, 288, 3639, 7985, 80, 18, 2626, 2531, 7675, 739, 5621, 3639, 288, 5411, 309, 261, 14374, 422, 446, 13, 7734, 604, 394, 5477, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20669, 12, 474, 341, 16, 1250, 2695, 13, 565, 288, 3639, 7985, 80, 18, 2626, 2531, 7675, 739, 5621, 3639, 288, 5411, 309, 261, 14374, 422, 446, 13, 7734, 604, 394, 5477, 12, ...
case T_EXPR:
case T_EXPR :
Object processValue(StylesheetHandler handler, String uri, String name, String rawName, String value) throws SAXException { int type = getType(); Object processedValue = null; switch(type) { case T_AVT: processedValue = processAVT(handler, uri, name, rawName, value); break; case T_CDATA: processedValue = processCDATA(handler, uri, name, rawName, value); break; case T_CHAR: processedValue = processCHAR(handler, uri, name, rawName, value); break; case T_ENUM: processedValue = processENUM(handler, uri, name, rawName, value); break; case T_EXPR: processedValue = processEXPR(handler, uri, name, rawName, value); break; case T_NMTOKEN: processedValue = processNMTOKEN(handler, uri, name, rawName, value); break; case T_PATTERN: processedValue = processPATTERN(handler, uri, name, rawName, value); break; case T_PRIORITY: processedValue = processPRIORITY(handler, uri, name, rawName, value); break; case T_QNAME: processedValue = processQNAME(handler, uri, name, rawName, value); break; case T_QNAMES: processedValue = processQNAMES(handler, uri, name, rawName, value); break; case T_SIMPLEPATTERNLIST: processedValue = processSIMPLEPATTERNLIST(handler, uri, name, rawName, value); break; case T_URL: processedValue = processURL(handler, uri, name, rawName, value); break; case T_YESNO: processedValue = processYESNO(handler, uri, name, rawName, value); break; case T_STRINGLIST: processedValue = processSTRINGLIST(handler, uri, name, rawName, value); break; case T_PREFIX_URLLIST: processedValue = processPREFIX_URLLIST(handler, uri, name, rawName, value); break; default: } return processedValue; }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/6fbfc5b396871b2ddb731ea98fccffe88307b5d3/XSLTAttributeDef.java/clean/src/org/apache/xalan/processor/XSLTAttributeDef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 1207, 620, 12, 24656, 1503, 1838, 16, 8227, 514, 2003, 16, 514, 508, 16, 8227, 514, 1831, 461, 16, 514, 460, 13, 565, 1216, 14366, 225, 288, 565, 509, 618, 273, 3130, 5621, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 1207, 620, 12, 24656, 1503, 1838, 16, 8227, 514, 2003, 16, 514, 508, 16, 8227, 514, 1831, 461, 16, 514, 460, 13, 565, 1216, 14366, 225, 288, 565, 509, 618, 273, 3130, 5621, 565, ...
if (pid > 0) { CLITargetAttach attach = factory.createCLITargetAttach(pid); session.postCommand(attach); MIInfo info = attach.getMIInfo(); if (info == null) { throw new MIException(getResourceString("src.common.No_answer")); } session.getMIInferior().setInferiorPID(pid); session.getMIInferior().setConnected(); } } catch (MIException e) { pgdb.destroy(); throw e;
public Session createCSession(String gdb, String miVersion, File program, int pid, String[] targetParams, File cwd, String gdbinit, IProgressMonitor monitor) throws IOException, MIException { if (gdb == null || gdb.length() == 0) { gdb = GDB; } String commandFile = (gdbinit != null && gdbinit.length() > 0) ? "--command="+gdbinit : "--nx"; //$NON-NLS-1$ //$NON-NLS-2$ if (monitor == null) { monitor = new NullProgressMonitor(); } String[] args; if (program == null) { args = new String[] {gdb, "--cd="+cwd.getAbsolutePath(), commandFile, "--quiet", "-nw", "-i", miVersion}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } else { args = new String[] {gdb, "--cd="+cwd.getAbsolutePath(), commandFile, "--quiet", "-nw", "-i", miVersion, program.getAbsolutePath()}; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } int launchTimeout = MIPlugin.getDefault().getPluginPreferences().getInt(IMIConstants.PREF_REQUEST_LAUNCH_TIMEOUT); MIProcess pgdb = new MIProcessAdapter(args, launchTimeout, monitor); if (MIPlugin.getDefault().isDebugging()) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < args.length; ++i) { sb.append(args[i]); sb.append(' '); } MIPlugin.getDefault().debugLog(sb.toString()); } MISession session; try { session = createMISession(pgdb, null, MISession.ATTACH, miVersion, monitor); } catch (MIException e) { pgdb.destroy(); throw e; } CommandFactory factory = session.getCommandFactory(); try { if (targetParams != null && targetParams.length > 0) { MITargetSelect target = factory.createMITargetSelect(targetParams); session.postCommand(target); MIInfo info = target.getMIInfo(); if (info == null) { throw new MIException(getResourceString("src.common.No_answer")); //$NON-NLS-1$ } } if (pid > 0) { CLITargetAttach attach = factory.createCLITargetAttach(pid); session.postCommand(attach); MIInfo info = attach.getMIInfo(); if (info == null) { throw new MIException(getResourceString("src.common.No_answer")); //$NON-NLS-1$ } session.getMIInferior().setInferiorPID(pid); // @@@ for attach we nee to manually set the connected state // attach does not send the ^connected ack session.getMIInferior().setConnected(); } } catch (MIException e) { pgdb.destroy(); throw e; } //@@@ We have to manually set the suspended state when we attach session.getMIInferior().setSuspended(); session.getMIInferior().update(); return new Session(session, true); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/MIPlugin.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3877, 752, 39, 2157, 12, 780, 314, 1966, 16, 514, 12837, 1444, 16, 1387, 5402, 16, 509, 4231, 16, 514, 8526, 1018, 1370, 16, 1387, 7239, 16, 514, 314, 1966, 2738, 16, 467, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3877, 752, 39, 2157, 12, 780, 314, 1966, 16, 514, 12837, 1444, 16, 1387, 5402, 16, 509, 4231, 16, 514, 8526, 1018, 1370, 16, 1387, 7239, 16, 514, 314, 1966, 2738, 16, 467, 5...
ContainerGenerator generator = new ContainerGenerator(destination); generator.generateContainer(new SubProgressMonitor(monitor, 10)); IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 75); subMonitor.beginTask(getOperationTitle(), resources.length);
private boolean performCopyWithAutoRename(IResource[] resources, IPath destination, IProgressMonitor monitor) { IWorkspace workspace = resources[0].getWorkspace(); try { ContainerGenerator generator = new ContainerGenerator(destination); generator.generateContainer(new SubProgressMonitor(monitor, 10)); IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 75); subMonitor.beginTask(getOperationTitle(), resources.length); for (int i = 0; i < resources.length; i++) { IResource source = resources[i]; IPath destinationPath = destination.append(source.getName()); if (workspace.getRoot().exists(destinationPath)) { destinationPath = getNewNameFor(destinationPath, workspace); } if (destinationPath != null) { try { source.copy(destinationPath, IResource.SHALLOW, new SubProgressMonitor(subMonitor, 0)); } catch (CoreException e) { recordError(e); // log error return false; } } subMonitor.worked(1); if (subMonitor.isCanceled()) { throw new OperationCanceledException(); } } } catch (CoreException e) { recordError(e); // log error return false; } finally { monitor.done(); } return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/53cada7d6d0463cdcb3aed320ea380f4aae64087/CopyFilesAndFoldersOperation.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 3073, 2951, 1190, 4965, 16019, 12, 45, 1420, 8526, 2703, 16, 1082, 202, 45, 743, 2929, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 45, 8241, 6003, 273, 2703, 63, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 3073, 2951, 1190, 4965, 16019, 12, 45, 1420, 8526, 2703, 16, 1082, 202, 45, 743, 2929, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 45, 8241, 6003, 273, 2703, 63, 20, ...
boolean hasPegRevisions = false;
protected void init(String[] arguments) throws SVNException { myUnaryArguments = new HashSet(); myBinaryArguments = new HashMap(); myPaths = new ArrayList(); myURLs = new ArrayList(); myPathURLs = new ArrayList(); myPegRevisions = new ArrayList(); myPegPathRevisions = new ArrayList(); SVNArgument previousArgument = null; String previousArgumentName = null; for (int i = 0; i < arguments.length; i++) { String argument = arguments[i]; if (previousArgument != null) { // parse as value. if (argument.startsWith("--") || argument.startsWith("-")) { throw new SVNException("argument '" + previousArgumentName + "' requires value"); } Object value = previousArgument.parseValue(argument); myBinaryArguments.put(previousArgument, value); previousArgument = null; previousArgumentName = null; continue; } if (argument.startsWith("--")) { // long argument (--no-ignore) SVNArgument svnArgument = SVNArgument.findArgument(argument); if (svnArgument != null) { if (svnArgument.hasValue()) { previousArgument = svnArgument; previousArgumentName = argument; } else { myUnaryArguments.add(svnArgument); } } else { throw new SVNException("invalid argument '" + argument + "'"); } } else if (argument.startsWith("-")) { for (int j = 1; j < argument.length(); j++) { String name = "-" + argument.charAt(j); SVNArgument svnArgument = SVNArgument.findArgument(name); if (svnArgument != null) { if (svnArgument.hasValue()) { if (j + 1 < argument.length()) { String value = argument.substring(j + 1); Object argValue = svnArgument.parseValue(value); myBinaryArguments.put(svnArgument, argValue); } else { previousArgument = svnArgument; previousArgumentName = name; } j = argument.length(); } else { myUnaryArguments.add(svnArgument); } } else { throw new SVNException("invalid argument '" + name + "'"); } } } else { if (myCommandName == null) { myCommandName = argument; } else { String pegRevision = SVNRevision.UNDEFINED.toString(); if (argument.indexOf('@') > 0) { pegRevision = argument.substring(argument.lastIndexOf('@') + 1); argument = argument.substring(0, argument.lastIndexOf('@')); } myPathURLs.add(argument); if (argument.indexOf("://") >= 0) { myURLs.add(argument); myPegRevisions.add(pegRevision); } else { myPaths.add(argument); myPegPathRevisions.add(pegRevision); } } } } if (myCommandName == null) { throw new SVNException("no command name defined"); } if (myPathURLs.isEmpty()) { myPaths.add("."); myPegPathRevisions.add(SVNRevision.UNDEFINED.toString()); myPathURLs.add("."); } }
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/70f921244e8ccf34d5043817d6c06e57579c824f/SVNCommandLine.java/buggy/javasvn/src/org/tmatesoft/svn/cli/SVNCommandLine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, 1250, 711, 52, 1332, 21208, 273, 629, 31, 225, ...
if (buffer[offset] == c) { offset++; return true;
for (;;) { if (end == offset && !fill()) return false; int c = buffer[offset]; if (test == c) { ++offset; return true; } if (c < 128 || !formatChar(c)) { return false; } skipFormatChar();
boolean match(char c) throws IOException { if (end == offset && !fill()) return false; // This'd be a place where we'd need to map '\r' to '\n' and // do other updates, but TokenStream never looks ahead for // '\n', so we don't bother. if (buffer[offset] == c) { offset++; return true; } return false; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b5141d614d4ae3c0a7455df83312be1a30e1b2e6/LineBuffer.java/buggy/js/rhino/src/org/mozilla/javascript/LineBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 845, 12, 3001, 276, 13, 1216, 1860, 288, 3639, 309, 261, 409, 422, 1384, 597, 401, 5935, 10756, 5411, 327, 629, 31, 3639, 368, 1220, 14271, 506, 279, 3166, 1625, 732, 14271, 1608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 845, 12, 3001, 276, 13, 1216, 1860, 288, 3639, 309, 261, 409, 422, 1384, 597, 401, 5935, 10756, 5411, 327, 629, 31, 3639, 368, 1220, 14271, 506, 279, 3166, 1625, 732, 14271, 1608, ...
return Category.getInstance((String)m_tgCategory.get());
cat = Category.getInstance(prefix + "." + c.getName());
public static Category getInstance() { if ((String)m_tgCategory.get() != null) { return Category.getInstance((String)m_tgCategory.get()); } else { // Use the default category anywhere that ThreadCategory // is instantiated without a prefix, classname, or user- // specified string return Category.getInstance("UNCATEGORIZED"); } }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/b3612967cb053036bdb295ee74cb2e369c6ca18d/ThreadCategory.java/buggy/src/core/org/opennms/core/utils/ThreadCategory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 9856, 3694, 1435, 202, 95, 202, 202, 430, 14015, 780, 13, 81, 67, 88, 75, 4457, 18, 588, 1435, 480, 446, 13, 202, 202, 95, 1082, 202, 2463, 9856, 18, 588, 1442, 12443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9856, 3694, 1435, 202, 95, 202, 202, 430, 14015, 780, 13, 81, 67, 88, 75, 4457, 18, 588, 1435, 480, 446, 13, 202, 202, 95, 1082, 202, 2463, 9856, 18, 588, 1442, 12443, ...
if (dataSource == null) {
public Connection getConnection() throws SQLException { if (dataSource == null) { try { // load driver //System.out.println ("lodading ..."+jdbcDriverClassName); Class.forName(jdbcDriverClassName).newInstance(); dataSource = new DriverManagerDataSource( jdbcDriverClassName, connectionString, user, password); // Wrap data source in connection pool PoolingAlgorithmDataSource tmp = new PoolingAlgorithmDataSource(dataSource); DefaultPoolingAlgorithm poolAlgorithm = new DefaultPoolingAlgorithm(); poolAlgorithm.setPoolMax(maxPoolSize); tmp.setPoolingAlgorithm(poolAlgorithm); dataSource = tmp; } catch (InstantiationException e) { e.printStackTrace(); throw new SQLException( "Failed to initialise database connection pool " + "(is the connection pool jar available?) : "); } catch (ClassNotFoundException e) { e.printStackTrace(); throw new SQLException( "Failed to initialise database connection pool for " + jdbcDriverClassName + " (is the connection pool jar available?) : "); } catch (IllegalAccessException e) { e.printStackTrace(); throw new SQLException( "Failed to initialise database connection pool " + "(is the connection pool jar available?) : "); } catch (NoClassDefFoundError e) { e.printStackTrace(); throw new SQLException( "Failed to initialise database connection pool " + "(is the connection pool jar available?) : "); } } Connection conn; String version = null; try { conn = dataSource.getConnection(); ResultSet vr = conn.getMetaData().getTables(conn.getCatalog(), this.schema, "meta_version__version__main", null); //expect at most one result, if no results, tcheck will remain null String tcheck = null; if (vr.next()) tcheck = vr.getString(3); vr.close(); if (tcheck == null) {// don't check databases with no version table yet return conn; } String[] schemas = null; if(getDatabaseType().equals("oracle")) schemas = getSchema().toUpperCase().split(";"); else schemas = getSchema().split(";"); PreparedStatement ps = conn.prepareStatement("select version from "+schemas[0]+".meta_version__version__main"); ResultSet rs = ps.executeQuery(); rs.next(); version = rs.getString(1); rs.close(); if (!version.equals(VERSION)){ throw new SQLException("Database version "+version+" and software version "+VERSION+" do not match"); } return conn; } catch (SQLException e) { JOptionPane.showMessageDialog(null,"Include a correct meta_version__version__main table entry:" + e); //return null; //e.printStackTrace(); throw new SQLException(""); } //return dataSource.getConnection(); }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/61a1624f451efa0797697fc2773e27a304c46993/DetailedDataSource.java/buggy/src/java/org/ensembl/mart/lib/DetailedDataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4050, 6742, 1435, 1216, 6483, 288, 202, 430, 261, 892, 1830, 422, 446, 13, 288, 202, 225, 775, 288, 202, 202, 759, 1262, 3419, 540, 202, 202, 759, 3163, 18, 659, 18, 8222, 7566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4050, 6742, 1435, 1216, 6483, 288, 202, 430, 261, 892, 1830, 422, 446, 13, 288, 202, 225, 775, 288, 202, 202, 759, 1262, 3419, 540, 202, 202, 759, 3163, 18, 659, 18, 8222, 7566, ...
private void dload(short local) {
private void dload(short local) {
private void dload(short local) { xop(ByteCode.DLOAD_0, ByteCode.DLOAD, local); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/9d6bb8957ead2c95a3562b84a47b63afc8cfc761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 302, 945, 12, 6620, 1191, 13, 288, 3639, 619, 556, 12, 3216, 1085, 18, 40, 7783, 67, 20, 16, 3506, 1085, 18, 40, 7783, 16, 1191, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 302, 945, 12, 6620, 1191, 13, 288, 3639, 619, 556, 12, 3216, 1085, 18, 40, 7783, 67, 20, 16, 3506, 1085, 18, 40, 7783, 16, 1191, 1769, 565, 289, 2, -100, -100, -100, -100, ...
this.forceThread = new Thread( this );
this.forceThread = new Thread( this, "vrpn ForceDeviceRemote" );
public ForceDeviceRemote( String name, String localInLogfileName, String localOutLogfileName, String remoteInLogfileName, String remoteOutLogfileName ) throws InstantiationException { try { synchronized( downInVrpnLock ) { this.init( name, localInLogfileName, localOutLogfileName, remoteInLogfileName, remoteOutLogfileName ); } } catch( java.lang.UnsatisfiedLinkError e ) { System.out.println( "Error initializing remote forece device " + name + "." ); System.out.println( " -- Unable to find the right functions. This may be a version problem." ); throw new InstantiationException( e.getMessage( ) ); } this.forceThread = new Thread( this ); this.forceThread.start( ); }
11788 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11788/1365506f71a60451a885e204fe6327636461a9b9/ForceDeviceRemote.java/clean/java_vrpn/ForceDeviceRemote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 11889, 3654, 5169, 12, 514, 508, 16, 514, 1191, 382, 1343, 17812, 16, 514, 1191, 1182, 1343, 17812, 16, 6862, 1082, 225, 514, 2632, 382, 1343, 17812, 16, 514, 2632, 1182, 1343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11889, 3654, 5169, 12, 514, 508, 16, 514, 1191, 382, 1343, 17812, 16, 514, 1191, 1182, 1343, 17812, 16, 6862, 1082, 225, 514, 2632, 382, 1343, 17812, 16, 514, 2632, 1182, 1343, ...
case 1: pixelType[0] = FormatReader.INT8; break; case 2: pixelType[0] = FormatReader.INT16; break; case 3: pixelType[0] = FormatReader.INT8; break; case 4: pixelType[0] = FormatReader.INT32; break;
case 1: pixelType[0] = FormatReader.INT8; break; case 2: pixelType[0] = FormatReader.INT16; break; case 3: pixelType[0] = FormatReader.INT8; break; case 4: pixelType[0] = FormatReader.INT32; break;
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); spork = true; offsets = new Vector(); chunkSizes = new Vector(); parse(0, 0, in.length()); numImages = offsets.size(); //String pixelType = "int"; int bytesPerPixel = bitsPerPixel / 8; bytesPerPixel %= 4; switch (bytesPerPixel) { case 0: case 1: pixelType[0] = FormatReader.INT8; break; case 2: pixelType[0] = FormatReader.INT16; break; case 3: pixelType[0] = FormatReader.INT8; break; case 4: pixelType[0] = FormatReader.INT32; break; default: throw new RuntimeException( "Unknown matching for pixel byte width of: " + bytesPerPixel); } sizeX[0] = width; sizeY[0] = height; sizeZ[0] = numImages; sizeC[0] = isRGB(id) ? 3 : 1; sizeT[0] = 1; currentOrder[0] = "XYCZT"; // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setPixels( new Integer(width), new Integer(height), new Integer(numImages), new Integer(bitsPerPixel < 40 ? 3 : 1), new Integer(1), new Integer(pixelType[0]), new Boolean(!little), "XYCZT", null); // this handles the case where the data and resource forks have been // separated if (spork) { // first we want to check if there is a resource fork present // the resource fork will generally have the same name as the data fork, // but will have either the prefix "._" or the suffix ".qtr" // (or <filename>/rsrc on a Mac) String base = null; if (id.indexOf(".") != -1) { base = id.substring(0, id.lastIndexOf(".")); } else base = id; File f = new File(base + ".qtr"); if (f.exists()) { in = new RandomAccessFile(f.getAbsolutePath(), "r"); stripHeader(); parse(0, 0, in.length()); numImages = offsets.size(); return; } else { f = new File(base.substring(0, base.lastIndexOf(File.separator) + 1) + "._" + base.substring(base.lastIndexOf(File.separator) + 1)); if (f.exists()) { in = new RandomAccessFile(f.getAbsolutePath(), "r"); stripHeader(); parse(0, 0, in.length()); numImages = offsets.size(); return; } else { f = new File(base + "/rsrc"); if (f.exists()) { in = new RandomAccessFile(f.getAbsolutePath(), "r"); stripHeader(); parse(0, 0, in.length()); numImages = offsets.size(); return; } } } throw new FormatException("QuickTime resource fork not found. " + " To avoid this issue, please flatten your QuickTime movies " + "before importing with Bio-Formats."); /* TODO // If we didn't find the resource fork, we can check to see if the file // uses a JPEG-compatible codec. In this case, we can do some guesswork // to read the file; otherwise we will fail gracefully. if (DEBUG) { System.out.println("Failed to find the QuickTime resource fork. " + "Attempting to proceed using only the data fork."); } // read through the file looking for occurences of the codec string numImages = 0; String codecString = new String(pixels, 4, 4); if (codecString.equals("mjpg")) codec = "mjpb"; else codec = codecString; if (codec.equals("mjpb") || codec.equals("jpeg")) { // grab the width, height, and bits per pixel from the first plane } else { throw new FormatException("Sorry, this QuickTime movie does not " + "contain a Resource Fork. Support for this case will be improved " + "as time permits. To avoid this issue, please flatten your " + "QuickTime movies before importing with Bio-Formats."); } boolean canAdd = true; for (int i=0; i<pixels.length-5; i++) { if (codecString.equals(new String(pixels, i, 4))) { if (canAdd) { offsets.add(new Integer(i - 4)); numImages++; canAdd = false; } else { canAdd = true; } i += 1000; } } */ } }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/eeb7d180f005e6ae2fd86935cddb27bf8758f621/QTReader.java/buggy/loci/formats/in/QTReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 1694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 1694...
if (!quiet && !f.delete()) {
if (!f.delete() && !quiet) {
protected void removeFiles(File d, String[] files) { if (files.length > 0) { log("Deleting " + files.length + " files from " + d.getAbsolutePath()); for (int j=0; j<files.length; j++) { File f = new File(d, files[j]); log("Deleting " + f.getAbsolutePath(), verbosity); if (!quiet && !f.delete()) { throw new BuildException("Unable to delete file " + f.getAbsolutePath()); } } } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/4909034a29b548bee04703ade13f20f0a5fd3143/Delete.java/clean/src/main/org/apache/tools/ant/taskdefs/Delete.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1206, 2697, 12, 812, 302, 16, 514, 8526, 1390, 13, 288, 3639, 309, 261, 2354, 18, 2469, 405, 374, 13, 288, 5411, 613, 2932, 20433, 315, 397, 1390, 18, 2469, 397, 315, 1390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 2697, 12, 812, 302, 16, 514, 8526, 1390, 13, 288, 3639, 309, 261, 2354, 18, 2469, 405, 374, 13, 288, 5411, 613, 2932, 20433, 315, 397, 1390, 18, 2469, 397, 315, 1390, ...
this.clientPort = PortMatcher.MATCHER_PING; this.serverPort = PortMatcher.MATCHER_PING; } else if ( this.clientPort.equals( PortMatcher.MATCHER_PING ) || this.serverPort.equals( PortMatcher.MATCHER_PING )) {
this.clientPort = pingMatcher; this.serverPort = pingMatcher; } else if ( this.clientPort.equals( pingMatcher ) || this.serverPort.equals( pingMatcher )) {
public void fixPing() throws ParseException { if ( this.protocol.equals( ProtocolMatcher.MATCHER_PING )) { this.clientPort = PortMatcher.MATCHER_PING; this.serverPort = PortMatcher.MATCHER_PING; } else if ( this.clientPort.equals( PortMatcher.MATCHER_PING ) || this.serverPort.equals( PortMatcher.MATCHER_PING )) { throw new ParseException( "Invalid port for a non-ping traffic type" ); } }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f195f519648c05c4a5317cfd8293b1d4f20c13eb/UserPolicyRule.java/clean/mvvm/main/com/metavize/mvvm/policy/UserPolicyRule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2917, 17223, 1435, 1216, 10616, 565, 288, 3639, 309, 261, 333, 18, 8373, 18, 14963, 12, 4547, 6286, 18, 11793, 654, 67, 20002, 8623, 288, 5411, 333, 18, 2625, 2617, 273, 6008, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2917, 17223, 1435, 1216, 10616, 565, 288, 3639, 309, 261, 333, 18, 8373, 18, 14963, 12, 4547, 6286, 18, 11793, 654, 67, 20002, 8623, 288, 5411, 333, 18, 2625, 2617, 273, 6008, ...
this.enabler = new SelectionEnabler(configElement);
enabler = new SelectionEnabler(configElement);
public PluginAction(IConfigurationElement actionElement, String runAttribute,String definitionId) { super(); // Create unique action id. setId("PluginAction." + Integer.toString(actionCount)); //$NON-NLS-1$ ++actionCount; setActionDefinitionId(definitionId); // Store arguments. this.configElement = actionElement; this.runAttribute = runAttribute; // Read enablement declaration. if (configElement.getAttribute(PluginActionBuilder.ATT_ENABLES_FOR) != null) this.enabler = new SelectionEnabler(configElement); else { IConfigurationElement [] kids = configElement.getChildren(PluginActionBuilder.TAG_ENABLEMENT); if (kids.length > 0) this.enabler = new SelectionEnabler(configElement); } // Give enabler or delegate a chance to adjust enable state selectionChanged(new StructuredSelection()); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3113adf073596bfd0c0770703963de0f288cda77/PluginAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6258, 1803, 12, 45, 1750, 1046, 1301, 1046, 16, 514, 1086, 1499, 16, 780, 2379, 548, 13, 288, 202, 202, 9565, 5621, 202, 202, 759, 1788, 3089, 1301, 612, 18, 202, 202, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6258, 1803, 12, 45, 1750, 1046, 1301, 1046, 16, 514, 1086, 1499, 16, 780, 2379, 548, 13, 288, 202, 202, 9565, 5621, 202, 202, 759, 1788, 3089, 1301, 612, 18, 202, 202, 542, ...
System.err.println("cl add decl:"+decl+ " defs:"+defs);
public boolean scanForDefinitions (Pair st, java.util.Vector forms, ScopeExp defs, Translator tr) { Pair p; if (! (st.cdr instanceof Pair) || ! ((p = (Pair) st.cdr).car instanceof String)) return super.scanForDefinitions(st, forms, defs, tr); String name = (String) p.car; Declaration decl = new Declaration(name); ClassExp oexp = new ClassExp(); decl.noteValue(oexp); if (isSimple) decl.setFlag(Declaration.STATIC_SPECIFIED); decl.setFlag(Declaration.IS_CONSTANT); decl.setType(Compilation.typeClassType); if (defs instanceof ModuleExp) { tr.mustCompileHere(); tr.mustCompileHere(); tr.push(decl); System.err.println("def_class rewrite push "+decl); } Pair declForm = tr.makePair(p, decl, p.cdr); if (declForm instanceof PairWithPosition) { PairWithPosition declPos = (PairWithPosition) declForm; decl.setFile(declPos.getFile()); decl.setLine(declPos.getLine(), declPos.getColumn()); } System.err.println("cl add decl:"+decl+ " defs:"+defs); defs.addDeclaration(decl); st = tr.makePair(st, this, declForm); forms.addElement (st); return true; }
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/2e8c9e19890c6a8b8c6fb458d3c33cce97e9c405/define_class.java/buggy/kawa/standard/define_class.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 4135, 1290, 7130, 261, 4154, 384, 16, 2252, 18, 1367, 18, 5018, 10138, 16, 19694, 5468, 2966, 17588, 16, 18669, 433, 13, 225, 288, 565, 8599, 293, 31, 565, 309, 16051, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 4135, 1290, 7130, 261, 4154, 384, 16, 2252, 18, 1367, 18, 5018, 10138, 16, 19694, 5468, 2966, 17588, 16, 18669, 433, 13, 225, 288, 565, 8599, 293, 31, 565, 309, 16051, 261, ...
final PsiFile file = documentManager.getPsiFile(document); if (file == null) return;
PsiFile file = getRoot(documentManager.getPsiFile(document), editor);
public void executeWriteAction(Editor editor, DataContext dataContext) { final Project project = editor.getProject(); final PsiDocumentManager documentManager = PsiDocumentManager.getInstance(project); final Document document = editor.getDocument(); final PsiFile file = documentManager.getPsiFile(document); if (file == null) return; final Mover mover = getSuitableMover(editor, file); mover.move(editor,file); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/5f8d0b26ed8be9b4fedc6526accda87c29dd092a/MoveStatementHandler.java/buggy/source/com/intellij/openapi/editor/actions/moveUpDown/MoveStatementHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 3067, 1803, 12, 6946, 4858, 16, 1910, 1042, 501, 1042, 13, 288, 565, 727, 5420, 1984, 273, 4858, 18, 588, 4109, 5621, 565, 727, 453, 7722, 2519, 1318, 1668, 1318, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 3067, 1803, 12, 6946, 4858, 16, 1910, 1042, 501, 1042, 13, 288, 565, 727, 5420, 1984, 273, 4858, 18, 588, 4109, 5621, 565, 727, 453, 7722, 2519, 1318, 1668, 1318, 273, ...
public String getInitParameter(String name) { try { String result = null; final Configuration[] values = configuration.getChildren( name ); for ( int i = 0; i < values.length; i++ ) { if (result == null) { result = ""; } else { result += ","; } Configuration conf = values[i]; result += conf.getValue(); } return result; //return params.getProperty(name); } catch (ConfigurationException ce) { throw new RuntimeException("Embedded configuration exception was: " + ce.getMessage()); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/52148e6ed9b39f76c481e06c3d073f4e7092d765/MailetConfigImpl.java/buggy/branches/branch_2_1_fcs/src/java/org/apache/james/core/MailetConfigImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 588, 2570, 1662, 12, 780, 529, 15329, 698, 95, 780, 2088, 33, 2011, 31, 6385, 1750, 8526, 2372, 33, 7025, 18, 588, 4212, 12, 529, 1769, 1884, 12, 474, 77, 33, 20, 31, 77, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 588, 2570, 1662, 12, 780, 529, 15329, 698, 95, 780, 2088, 33, 2011, 31, 6385, 1750, 8526, 2372, 33, 7025, 18, 588, 4212, 12, 529, 1769, 1884, 12, 474, 77, 33, 20, 31, 77, 32, ...
javax.xml.transform.TransformerFactory.newInstance().newTransformer().transform( new javax.xml.transform.dom.DOMSource(node),
javax.xml.transform.TransformerFactory.newInstance().newTransformer().transform(new javax.xml.transform.dom.DOMSource(node),
private void displayDOM(org.w3c.dom.Node node, java.io.OutputStream ostream) { try { System.out.println("\n====\n"); javax.xml.transform.TransformerFactory.newInstance().newTransformer().transform( new javax.xml.transform.dom.DOMSource(node), new javax.xml.transform.stream.StreamResult(ostream)); System.out.println("\n====\n"); } catch (Exception e) { e.printStackTrace(); } }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/543f6dfce170197a352cd5f3ea9285b93c22ead1/DispatchXMLDecoder.java/clean/jaxws-ri/rt/src/com/sun/xml/ws/client/dispatch/impl/encoding/DispatchXMLDecoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 918, 2562, 8168, 12, 3341, 18, 91, 23, 71, 18, 9859, 18, 907, 756, 16, 2252, 18, 1594, 18, 4632, 320, 3256, 13, 288, 3639, 775, 288, 5411, 2332, 18, 659, 18, 8222, 31458, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 918, 2562, 8168, 12, 3341, 18, 91, 23, 71, 18, 9859, 18, 907, 756, 16, 2252, 18, 1594, 18, 4632, 320, 3256, 13, 288, 3639, 775, 288, 5411, 2332, 18, 659, 18, 8222, 31458, 82, ...
int size = messages.size(); Message info; for( int i = 0; i < size; i++ ) { info = (Message)messages.elementAt(i);
try { Message info = (Message)messages.findMessageById( msgid);
public boolean isComplete() { int size = messages.size(); Message info; for( int i = 0; i < size; i++ ) { info = (Message)messages.elementAt(i); if( ! info.isComplete()) { return false; } } return true; }
9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/e0e56ec15f3a68cf477652f4b04c182908443b30/MessageAgent.java/buggy/com/novell/ldap/client/MessageAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 6322, 1435, 202, 95, 3639, 509, 963, 273, 2743, 18, 1467, 5621, 3639, 2350, 1123, 31, 3639, 364, 12, 509, 277, 273, 374, 31, 277, 411, 963, 31, 277, 9904, 262, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 6322, 1435, 202, 95, 3639, 509, 963, 273, 2743, 18, 1467, 5621, 3639, 2350, 1123, 31, 3639, 364, 12, 509, 277, 273, 374, 31, 277, 411, 963, 31, 277, 9904, 262, 28...
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/NewOrderSingle.java/clean/src/java/src/quickfix/fix42/NewOrderSingle.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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
logger.debug("min:("+minx+","+miny+"),max:("+maxx+","+maxy+")");
public Dimension getPreferredSize() { Rectangle cbounds = null; //int minx = Integer.MAX_VALUE, miny = Integer.MAX_VALUE, maxx = 0, maxy = 0; int minx = 0, miny = 0, maxx = 0, maxy = 0; for (int i = 0; i < contentPane.getComponentCount(); i++) { Component c = contentPane.getComponent(i); if (c.isVisible()) { cbounds = c.getBounds(cbounds); logger.debug("bounds: " + cbounds); minx = Math.min(cbounds.x, minx); miny = Math.min(cbounds.y, miny); maxx = Math.max(cbounds.x + cbounds.width , maxx); maxy = Math.max(cbounds.y + cbounds.height, maxy); logger.debug("min:("+minx+","+miny+"),max:("+maxx+","+maxy+")"); } } Dimension min = getMinimumSize(); Dimension userDim = new Dimension(maxx-minx,maxy-miny); logger.debug("userDim is: " + userDim); Dimension usedSpace = new Dimension((int) ((double) Math.max(maxx - minx, min.width) * zoom), (int) ((double) Math.max(maxy - miny, min.height) * zoom)); logger.debug("zoom="+zoom+",usedSpace size is viewport size: " + usedSpace); // but, make sure we return a preferred size that is at least as big as the Viewport Dimension vpSize = getViewportSize(); if (vpSize != null) { if (vpSize.width > usedSpace.width && vpSize.height > usedSpace.height) { logger.debug("preferered size is viewport?: " + vpSize); return vpSize; } } // default logger.debug("preferred size is usedSpace?: " + usedSpace); return usedSpace; }
53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/b9d7c4bc0386ed149dd2715da9f999285c1a2fac/PlayPen.java/clean/src/ca/sqlpower/architect/swingui/PlayPen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13037, 12822, 4193, 1225, 1435, 288, 202, 202, 19463, 2875, 9284, 273, 446, 31, 202, 202, 759, 474, 31407, 273, 2144, 18, 6694, 67, 4051, 16, 1131, 93, 273, 2144, 18, 6694, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13037, 12822, 4193, 1225, 1435, 288, 202, 202, 19463, 2875, 9284, 273, 446, 31, 202, 202, 759, 474, 31407, 273, 2144, 18, 6694, 67, 4051, 16, 1131, 93, 273, 2144, 18, 6694, 67...
label.setText("&Bold:");
label.setText(PreferencesMessages.getString("CEditorPreferencePage.colorPage.bold"));
private Control createColorPage(Composite parent) { Composite colorComposite = new Composite(parent, SWT.NULL); colorComposite.setLayout(new GridLayout()); Composite backgroundComposite = new Composite(colorComposite, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.numColumns = 2; backgroundComposite.setLayout(layout); Label label = new Label(backgroundComposite, SWT.NULL); label.setText("Bac&kground Color:"); GridData gd = new GridData(); gd.horizontalSpan = 2; label.setLayoutData(gd); SelectionListener backgroundSelectionListener = new SelectionListener() { public void widgetSelected(SelectionEvent e) { boolean custom = fBackgroundCustomRadioButton.getSelection(); fBackgroundColorButton.setEnabled(custom); fOverlayStore.setValue(CEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, !custom); } public void widgetDefaultSelected(SelectionEvent e) { } }; fBackgroundDefaultRadioButton = new Button(backgroundComposite, SWT.RADIO | SWT.LEFT); fBackgroundDefaultRadioButton.setText("S&ystem Default"); gd = new GridData(); gd.horizontalSpan = 2; fBackgroundDefaultRadioButton.setLayoutData(gd); fBackgroundDefaultRadioButton.addSelectionListener(backgroundSelectionListener); fBackgroundCustomRadioButton = new Button(backgroundComposite, SWT.RADIO | SWT.LEFT); fBackgroundCustomRadioButton.setText("C&ustom"); fBackgroundCustomRadioButton.addSelectionListener(backgroundSelectionListener); fBackgroundColorEditor = new ColorEditor(backgroundComposite); fBackgroundColorButton = fBackgroundColorEditor.getButton(); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment = GridData.BEGINNING; fBackgroundColorButton.setLayoutData(gd); label = new Label(colorComposite, SWT.LEFT); label.setText("Fo&reground:"); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Composite editorComposite = new Composite(colorComposite, SWT.NULL); layout = new GridLayout(); layout.numColumns = 2; layout.marginHeight = 0; layout.marginWidth = 0; editorComposite.setLayout(layout); gd = new GridData(GridData.FILL_BOTH); editorComposite.setLayoutData(gd); fList = new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL); gd = new GridData(GridData.FILL_BOTH); gd.heightHint = convertHeightInCharsToPixels(5); fList.setLayoutData(gd); Composite stylesComposite = new Composite(editorComposite, SWT.NULL); layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.numColumns = 2; stylesComposite.setLayout(layout); stylesComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); label = new Label(stylesComposite, SWT.LEFT); label.setText("C&olor:"); gd = new GridData(); gd.horizontalAlignment = GridData.BEGINNING; label.setLayoutData(gd); fForegroundColorEditor = new ColorEditor(stylesComposite); Button foregroundColorButton = fForegroundColorEditor.getButton(); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment = GridData.BEGINNING; foregroundColorButton.setLayoutData(gd); label = new Label(stylesComposite, SWT.LEFT); label.setText("&Bold:"); gd = new GridData(); gd.horizontalAlignment = GridData.BEGINNING; label.setLayoutData(gd); fBoldCheckBox = new Button(stylesComposite, SWT.CHECK); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalAlignment = GridData.BEGINNING; fBoldCheckBox.setLayoutData(gd); label = new Label(colorComposite, SWT.LEFT); label.setText("Preview:"); label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Control previewer = createPreviewer(colorComposite); gd = new GridData(GridData.FILL_BOTH); gd.widthHint = convertWidthInCharsToPixels(80); gd.heightHint = convertHeightInCharsToPixels(15); previewer.setLayoutData(gd); fList.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { // do nothing } public void widgetSelected(SelectionEvent e) { handleListSelection(); } }); foregroundColorButton.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { // do nothing } public void widgetSelected(SelectionEvent e) { int i = fList.getSelectionIndex(); String key = fListModel[i][1]; PreferenceConverter.setValue(fOverlayStore, key, fForegroundColorEditor.getColorValue()); } }); fBackgroundColorButton.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { // do nothing } public void widgetSelected(SelectionEvent e) { PreferenceConverter.setValue( fOverlayStore, CEditor.PREFERENCE_COLOR_BACKGROUND, fBackgroundColorEditor.getColorValue()); } }); fBoldCheckBox.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { // do nothing } public void widgetSelected(SelectionEvent e) { int i = fList.getSelectionIndex(); String key = fListModel[i][1]; fOverlayStore.setValue(key + "_bold", fBoldCheckBox.getSelection()); } }); WorkbenchHelp.setHelp(colorComposite, ICHelpContextIds.C_EDITOR_COLORS_PREF_PAGE); return colorComposite; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/CEditorPreferencePage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 8888, 752, 2957, 1964, 12, 9400, 982, 13, 288, 202, 202, 9400, 2036, 9400, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 3266, 9400, 18, 542, 3744, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 8888, 752, 2957, 1964, 12, 9400, 982, 13, 288, 202, 202, 9400, 2036, 9400, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 3266, 9400, 18, 542, 3744, 12, ...
private static boolean isIterator(PsiClass aClass) {
public static boolean isIterator(PsiClass aClass){
private static boolean isIterator(PsiClass aClass) { final String className = aClass.getQualifiedName(); if("java.util.Iterator".equals(className)){ return true; } final PsiManager psiManager = aClass.getManager(); final Project project = aClass.getProject(); final GlobalSearchScope scope = GlobalSearchScope.allScope(project); final PsiClass iterator = psiManager.findClass("java.util.Iterator", scope); return aClass.isInheritor(iterator, true); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/0aedf33c7dff54890b2ed798d21d9e8cb91dcf1a/IteratorNextDoesNotThrowNoSuchElementExceptionInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/IteratorNextDoesNotThrowNoSuchElementExceptionInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 353, 3198, 12, 52, 7722, 797, 20148, 13, 565, 288, 3639, 727, 514, 2658, 273, 20148, 18, 588, 12345, 5621, 3639, 309, 2932, 6290, 18, 1367, 18, 3198, 9654, 14963, 12, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 353, 3198, 12, 52, 7722, 797, 20148, 13, 565, 288, 3639, 727, 514, 2658, 273, 20148, 18, 588, 12345, 5621, 3639, 309, 2932, 6290, 18, 1367, 18, 3198, 9654, 14963, 12, 1...
if ( StringUtil.isBlank( value ) ) return;
if ( value == null ) return;
public void end( ) throws SAXException { String value = text.toString( ); if ( StringUtil.isBlank( value ) ) return; String newColumnName = setupBoundDataColumn( value, value ); // set the property for the result set column property of DataItem. doEnd( newColumnName ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e25130736a1421b789d0e6852d66cd1143ac5f0d/CompatibleDataValueExprState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/CompatibleDataValueExprState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 679, 12, 262, 1216, 14366, 202, 95, 202, 202, 780, 460, 273, 977, 18, 10492, 12, 11272, 202, 202, 430, 261, 14205, 18, 291, 7796, 12, 460, 262, 262, 1082, 202, 2463, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 679, 12, 262, 1216, 14366, 202, 95, 202, 202, 780, 460, 273, 977, 18, 10492, 12, 11272, 202, 202, 430, 261, 14205, 18, 291, 7796, 12, 460, 262, 262, 1082, 202, 2463, 31...
if( name.endsWith( ".class" ) )
String lowerName = name.toLowerCase(); if( lowerName.endsWith( ".class" ) )
public synchronized Class loadClass( String name ) throws ClassNotFoundException { Main.debug( dbgID + "loadClass, class name = " + name ); //We need to be able to handle foo.class, so strip off the suffix String fixed_name = name; if( name.endsWith( ".class" ) ) { fixed_name = name.substring( 0, name.lastIndexOf( ".class" ) ); } else if( name.endsWith( ".java" ) ) { // be smart, some applets specify code=XyzClass.java fixed_name = name.substring( 0, name.lastIndexOf( ".java" ) ); } Object o = loadedClasses.get(fixed_name); if (o != null) { Main.debug("already loaded: " + o); return (Class)o; } Class cl = findClass(fixed_name); //Class cl = super.loadClass(fixed_name); Main.debug(dbgID + " returns class " + cl.getName() + " Classloader=" + cl.getClassLoader()); return cl; }
1818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1818/6d2b8e85de7502abf79309a16bf57441d96a6787/KJASAppletClassLoader.java/buggy/khtml/java/org/kde/kjas/server/KJASAppletClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1659, 16038, 12, 514, 508, 262, 1216, 10403, 565, 288, 3639, 12740, 18, 4148, 12, 28966, 734, 397, 315, 945, 797, 16, 667, 508, 273, 315, 397, 508, 11272, 3639, 368, 3218, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1659, 16038, 12, 514, 508, 262, 1216, 10403, 565, 288, 3639, 12740, 18, 4148, 12, 28966, 734, 397, 315, 945, 797, 16, 667, 508, 273, 315, 397, 508, 11272, 3639, 368, 3218, 1...
int i; for (i = 0; i < MAX_PRECISION - 1; i++) { sqrtLutFixed[i] = (int)(Math.sqrt(i*sqStepFloat)); } sqrtLutFixed[i] = sqrtLutFixed[i-1];
int i; for (i = 0; i < MAX_PRECISION - 1; i++) { sqrtLutFixed[i] = (int)(Math.sqrt(i*sqStepFloat)); } sqrtLutFixed[i] = sqrtLutFixed[i-1];
private void calculateFixedPointSqrtLookupTable() { sqStepFloat = (fastGradientArraySize * fastGradientArraySize) / (MAX_PRECISION - 2); // The last two values are the same so that linear square root // interpolation can happen on the maximum reachable element in the // lookup table (precision-2) int i; for (i = 0; i < MAX_PRECISION - 1; i++) { sqrtLutFixed[i] = (int)(Math.sqrt(i*sqStepFloat)); } sqrtLutFixed[i] = sqrtLutFixed[i-1]; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/c26e5ec22b4d94b781d4557388c4ecfa235ae876/RadialGradientPaintContext.java/clean/sources/org/apache/batik/ext/awt/RadialGradientPaintContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4604, 7505, 2148, 19643, 3797, 6609, 1388, 1435, 288, 202, 4202, 202, 11410, 4160, 4723, 273, 261, 8076, 15651, 1076, 1225, 225, 380, 4797, 15651, 1076, 1225, 13, 3196, 565, 342,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4604, 7505, 2148, 19643, 3797, 6609, 1388, 1435, 288, 202, 4202, 202, 11410, 4160, 4723, 273, 261, 8076, 15651, 1076, 1225, 225, 380, 4797, 15651, 1076, 1225, 13, 3196, 565, 342,...
ResultSet rs = null; String itemName=null, endDate=null, startDate=null, description=null, sellerName=null; float maxBid=0, initialPrice=0, buyNow=0, reservePrice=0; int qty=0, sellerId=-1, nbOfBids=0; String firstBid=null;
ResultSet rs = null; String itemName = null, endDate = null, startDate = null, description = null, sellerName = null; float maxBid = 0, initialPrice = 0, buyNow = 0, reservePrice = 0; int qty = 0, sellerId = -1, nbOfBids = 0; String firstBid = null;
public String getItemDescription(Integer itemId, int userId) throws RemoteException { StringBuffer html = new StringBuffer(); Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; String itemName=null, endDate=null, startDate=null, description=null, sellerName=null; float maxBid=0, initialPrice=0, buyNow=0, reservePrice=0; int qty=0, sellerId=-1, nbOfBids=0; String firstBid=null; try { conn = dataSource.getConnection(); conn.setAutoCommit(false); stmt = conn.prepareStatement("SELECT * FROM items WHERE id=?"); stmt.setInt(1, itemId.intValue()); rs = stmt.executeQuery(); } catch (SQLException e) { try { if (stmt != null) stmt.close(); if (conn != null) conn.close(); } catch (Exception ignore) { } throw new RemoteException("Failed to get the item: " +e); } try { if (!rs.first()) { stmt = conn.prepareStatement("SELECT * FROM old_items WHERE id=?"); stmt.setInt(1, itemId.intValue()); rs = stmt.executeQuery(); } } catch (SQLException e) { try { if (stmt != null) stmt.close(); if (conn != null) conn.close(); } catch (Exception ignore) { } throw new RemoteException("Failed to get the item from old items: " +e); } try { if (rs.first()) { itemName = rs.getString("name"); description = rs.getString("description"); endDate = rs.getString("end_date"); startDate = rs.getString("start_date"); initialPrice = rs.getFloat("initial_price"); reservePrice = rs.getFloat("reserve_price"); qty = rs.getInt("quantity"); sellerId = rs.getInt("seller"); maxBid = rs.getFloat("max_bid"); // current price nbOfBids = rs.getInt("nb_of_bids"); PreparedStatement sellerStmt = null; ResultSet sellerResult = null; try { sellerStmt = conn.prepareStatement("SELECT nickname FROM users WHERE id=?"); sellerStmt.setInt(1, sellerId); sellerResult = sellerStmt.executeQuery(); // Get the seller's name if (sellerResult.first()) sellerName = sellerResult.getString("nickname"); sellerStmt.close(); // close statement } catch (SQLException e) { try { if (sellerStmt != null) sellerStmt.close(); // close statement if (conn != null) conn.close(); } catch (Exception ignore) { } throw new RemoteException("Failed to execute Query for seller: " +e); } } if (maxBid == 0) { firstBid = "none"; // current bid maxBid = initialPrice; // current price buyNow = rs.getFloat("buy_now"); } else { // current bid = current price for the specified quantity if (qty > 1) { PreparedStatement bidStmt = null; ResultSet bidResult = null; try { /* Get the qty max first bids and parse bids in this order until qty is reached. The bid that reaches qty is the current minimum bid. */ bidStmt = conn.prepareStatement("SELECT bids.id, bids.qty, bids.bid FROM bids WHERE item_id=? ORDER BY bid DESC LIMIT ?"); bidStmt.setInt(1, itemId.intValue()); bidStmt.setInt(2, qty); bidResult = bidStmt.executeQuery(); bidStmt.close(); // close statement } catch (SQLException e) { try { if (bidStmt != null) bidStmt.close(); // close statement if (conn != null) conn.close(); } catch (Exception ignore) { } } try { float bidValue; int numberOfItems = 0; while (bidResult.next()) { bidValue = bidResult.getFloat("bid"); numberOfItems += bidResult.getInt("qty"); if (numberOfItems >= qty) { maxBid = bidValue; break; } } } catch (Exception e) { try { if (stmt != null) stmt.close(); if (conn != null) conn.close(); } catch (Exception ignore) { } throw new RemoteException("Problem while computing current bid: "+e+"<br>"); } Float foo = new Float(maxBid); firstBid = foo.toString(); } else { // qty <= 1, current bid is maxBid Float foo = new Float(maxBid); firstBid = foo.toString(); } } if (stmt != null) stmt.close(); if (conn != null) conn.close(); if (userId>0) { html.append(printHTMLHighlighted("You are ready to bid on: "+itemName)); } else { html.append(printHTMLHighlighted(itemName)); } html.append("<TABLE>\n"+ "<TR><TD>Currently<TD><b><BIG>"+maxBid+"</BIG></b>\n"); // Check if the reservePrice has been met (if any) if (reservePrice > 0) { // Has the reserve price been met ? if (maxBid >= reservePrice) html.append("(The reserve price has been met)\n"); else html.append("(The reserve price has NOT been met)\n"); } html.append("<TR><TD>Quantity<TD><b><BIG>"+qty+"</BIG></b>\n"+ "<TR><TD>First bid<TD><b><BIG>"+firstBid+"</BIG></b>\n"+ "<TR><TD># of bids<TD><b><BIG>"+nbOfBids+"</BIG></b> (<a href=\"/servlet/edu.rice.rubis.beans.servlets.ViewBidHistory?itemId="+itemId+"\">bid history</a>)\n"+ "<TR><TD>Seller<TD><a href=\"/servlet/edu.rice.rubis.beans.servlets.ViewUserInfo?userId="+sellerId+"\">"+sellerName+"</a> (<a href=\"/servlet/edu.rice.rubis.beans.servlets.PutCommentAuth?to="+sellerId+"&itemId="+itemId+"\">Leave a comment on this user</a>)\n"+ "<TR><TD>Started<TD>"+startDate+"\n"+ "<TR><TD>Ends<TD>"+endDate+"\n"+ "</TABLE>"); // Can the user buy this item now ? if (buyNow > 0) html.append("<p><a href=\"/servlet/edu.rice.rubis.beans.servlets.BuyNowAuth?itemId="+itemId+"\">"+ "<IMG SRC=\"/EJB_HTML/buy_it_now.jpg\" height=22 width=150></a>"+ " <BIG><b>You can buy this item right now for only $"+buyNow+"</b></BIG><br><p>\n"); if (userId<=0) { html.append("<a href=\"/servlet/edu.rice.rubis.beans.servlets.PutBidAuth?itemId="+itemId+"\"><IMG SRC=\"/EJB_HTML/bid_now.jpg\" height=22 width=90> on this item</a>\n"); } html.append(printHTMLHighlighted("Item description")); html.append(description); html.append("<br><p>\n"); if (userId>0) { html.append(printHTMLHighlighted("Bidding")); float minBid = maxBid+1; html.append("<form action=\"/servlet/edu.rice.rubis.beans.servlets.StoreBid\" method=POST>\n"+ "<input type=hidden name=minBid value="+minBid+">\n"+ "<input type=hidden name=userId value="+userId+">\n"+ "<input type=hidden name=itemId value="+itemId+">\n"+ "<input type=hidden name=maxQty value="+qty+">\n"+ "<center><table>\n"+ "<tr><td>Your bid (minimum bid is "+minBid+"):</td>\n"+ "<td><input type=text size=10 name=bid></td></tr>\n"+ "<tr><td>Your maximum bid:</td>\n"+ "<td><input type=text size=10 name=maxBid></td></tr>\n"); if (qty > 1) html.append("<tr><td>Quantity:</td>\n"+ "<td><input type=text size=5 name=qty></td></tr>\n"); else html.append("<input type=hidden name=qty value=1>\n"); html.append("</table><p><input type=submit value=\"Bid now!\"></center><p>\n"); } } catch (Exception e) { throw new RemoteException("Unable to print Item description (exception: "+e+")<br>\n"); } return html.toString(); }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/ae0c40f7e168dda45fa4267b28f35853fc325320/SB_ViewItemBean.java/clean/EJB_SessionBean/edu/rice/rubis/beans/SB_ViewItemBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8143, 3291, 12, 4522, 18424, 16, 509, 6249, 13, 1216, 18361, 225, 288, 565, 6674, 1729, 273, 394, 6674, 5621, 565, 4050, 3639, 1487, 273, 446, 31, 565, 16913, 3480, 273, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8143, 3291, 12, 4522, 18424, 16, 509, 6249, 13, 1216, 18361, 225, 288, 565, 6674, 1729, 273, 394, 6674, 5621, 565, 4050, 3639, 1487, 273, 446, 31, 565, 16913, 3480, 273, 446, ...
exceptionTypes, factory);
exceptionTypes);
private static void calculateExceptionsThrown(PsiExpression exp, Set exceptionTypes, PsiElementFactory factory){ if(exp == null){ return; } if(exp instanceof PsiThisExpression || exp instanceof PsiLiteralExpression || exp instanceof PsiSuperExpression || exp instanceof PsiClassObjectAccessExpression){ } else if(exp instanceof PsiTypeCastExpression){ calculateExceptionsThrownForTypeCast((PsiTypeCastExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiInstanceOfExpression){ calculateExceptionsThrownForInstanceOf((PsiInstanceOfExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiReferenceExpression){ final PsiReferenceExpression refExp = (PsiReferenceExpression) exp; final PsiExpression qualifier = refExp.getQualifierExpression(); if(qualifier != null){ calculateExceptionsThrown(qualifier, exceptionTypes, factory); } } else if(exp instanceof PsiMethodCallExpression){ calculateExceptionsThrownForMethodCall((PsiMethodCallExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiNewExpression){ calculateExceptionsThrownForNewExpression((PsiNewExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiArrayInitializerExpression){ calculateExceptionsThrownForArrayInitializerExpression((PsiArrayInitializerExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiArrayAccessExpression){ calculateExceptionsThrownForArrayAccessExpression((PsiArrayAccessExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiPrefixExpression){ calculateExceptionsThrownForPrefixException((PsiPrefixExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiPostfixExpression){ calculateExceptionsThrownForPostixExpression((PsiPostfixExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiBinaryExpression){ calculateExceptionsThrownForBinaryExpression((PsiBinaryExpression) exp, exceptionTypes, factory); } else if(exp instanceof PsiConditionalExpression){ calculateExceptionsThrownForConditionalExcpression((PsiConditionalExpression) exp, exceptionTypes, factory); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/3837c95856454e21e9059f3aa91174a1e2c65526/ExceptionUtils.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/exceptions/ExceptionUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4604, 11416, 29591, 12, 52, 7722, 2300, 1329, 16, 4766, 5375, 1000, 1520, 2016, 16, 4766, 5375, 453, 7722, 1046, 1733, 3272, 15329, 3639, 309, 12, 2749, 422, 446, 15329, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4604, 11416, 29591, 12, 52, 7722, 2300, 1329, 16, 4766, 5375, 1000, 1520, 2016, 16, 4766, 5375, 453, 7722, 1046, 1733, 3272, 15329, 3639, 309, 12, 2749, 422, 446, 15329, 5...
getRunTimeContext( ).getLocale( ) ) );
getRunTimeContext( ).getULocale( ) ) );
private final void renderMarkerRanges( OneAxis[] oaxa, Bounds boPlotClientArea ) throws ChartException { Axis ax; EList el; int iRangeCount, iAxisCount = oaxa.length; MarkerRange mr; RectangleRenderEvent rre; DataElement deStart, deEnd; AutoScale asc; double dMin = 0, dMax = 0; int iOrientation, iCompare = IConstants.EQUAL; final Bounds bo = BoundsImpl.create( 0, 0, 0, 0 ); final IDeviceRenderer idr = getDevice( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); final boolean bTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final StringBuffer sb = new StringBuffer( ); Bounds boText = BoundsImpl.create( 0, 0, 0, 0 ); Anchor anc = null; Label la = null; TextRenderEvent tre; Orientation or; double dOriginalAngle = 0; for ( int i = 0; i < iAxisCount; i++ ) { ax = oaxa[i].getModelAxis( ); iOrientation = ax.getOrientation( ).getValue( ); if ( bTransposed ) // TOGGLE ORIENTATION { iOrientation = ( iOrientation == Orientation.HORIZONTAL ) ? Orientation.VERTICAL : Orientation.HORIZONTAL; } asc = oaxa[i].getScale( ); el = ax.getMarkerRanges( ); iRangeCount = el.size( ); for ( int j = 0; j < iRangeCount; j++ ) { mr = (MarkerRange) el.get( j ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_MARKER_RANGE, ax, mr, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_MARKER_RANGE, mr ); deStart = mr.getStartValue( ); deEnd = mr.getEndValue( ); try { iCompare = compare( deStart, deEnd ); } catch ( ChartException dfex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, dfex ); } // IF OUT OF ORDER, SWAP if ( iCompare == IConstants.MORE ) { final DataElement deTemp = deStart; deStart = deEnd; deEnd = deTemp; } if ( isDimension3D( ) ) { // TODO render 3D marker range return; } // COMPUTE THE START BOUND try { dMin = ( deStart == null ) ? ( ( iOrientation == Orientation.HORIZONTAL ) ? boPlotClientArea.getLeft( ) : boPlotClientArea.getTop( ) + boPlotClientArea.getHeight( ) ) : PlotWith2DAxes.getLocation( asc, deStart ); } catch ( Exception ex ) { logger.log( ILogger.WARNING, Messages.getString( "exception.cannot.locate.start.marker.range", //$NON-NLS-1$ new Object[]{ deStart, mr }, getRunTimeContext( ).getLocale( ) ) ); continue; // TRY NEXT MARKER RANGE } // COMPUTE THE END BOUND try { dMax = ( deEnd == null ) ? ( ( iOrientation == Orientation.HORIZONTAL ) ? boPlotClientArea.getLeft( ) + boPlotClientArea.getWidth( ) : boPlotClientArea.getTop( ) ) : PlotWith2DAxes.getLocation( asc, deEnd ); } catch ( Exception ex ) { logger.log( ILogger.WARNING, Messages.getString( "exception.cannot.locate.end.marker.range", //$NON-NLS-1$ new Object[]{ deEnd, mr }, getRunTimeContext( ).getLocale( ) ) ); continue; // TRY NEXT MARKER RANGE } rre = (RectangleRenderEvent) ( (EventObjectCache) idr ).getEventObject( StructureSource.createMarkerRange( mr ), RectangleRenderEvent.class ); if ( iOrientation == Orientation.HORIZONTAL ) { // RESTRICT RIGHT EDGE if ( dMax > boPlotClientArea.getLeft( ) + boPlotClientArea.getWidth( ) ) { dMax = boPlotClientArea.getLeft( ) + boPlotClientArea.getWidth( ); } // RESTRICT LEFT EDGE if ( dMin < boPlotClientArea.getLeft( ) ) { dMax = boPlotClientArea.getLeft( ); } bo.set( dMin, boPlotClientArea.getTop( ), dMax - dMin, boPlotClientArea.getHeight( ) ); } else { // RESTRICT TOP EDGE if ( dMax < boPlotClientArea.getTop( ) ) { dMax = boPlotClientArea.getTop( ); } // RESTRICT BOTTOM EDGE if ( dMin > boPlotClientArea.getTop( ) + boPlotClientArea.getHeight( ) ) { dMin = boPlotClientArea.getTop( ) + boPlotClientArea.getHeight( ); } bo.set( boPlotClientArea.getLeft( ), dMax, boPlotClientArea.getWidth( ), dMin - dMax ); } if ( pwa.getDimension( ) == IConstants.TWO_5_D ) { if ( iOrientation == Orientation.HORIZONTAL ) { bo.translate( pwa.getSeriesThickness( ), 0 ); } else { bo.translate( 0, -pwa.getSeriesThickness( ) ); } } // DRAW THE MARKER RANGE (RECTANGULAR AREA) rre.setBounds( bo ); rre.setOutline( mr.getOutline( ) ); rre.setBackground( mr.getFill( ) ); idr.fillRectangle( rre ); idr.drawRectangle( rre ); la = LabelImpl.copyInstance( mr.getLabel( ) ); if ( la.isVisible( ) ) { if ( la.getCaption( ).getValue( ) != null && !IConstants.UNDEFINED_STRING.equals( la.getCaption( ) .getValue( ) ) && la.getCaption( ).getValue( ).length( ) > 0 ) { la.getCaption( ).setValue( oaxa[i].getRunTimeContext( ) .externalizedMessage( la.getCaption( ) .getValue( ) ) ); } else { try { sb.delete( 0, sb.length( ) ); sb.append( Messages.getString( "prefix.marker.range.caption", //$NON-NLS-1$ getRunTimeContext( ).getLocale( ) ) ); sb.append( ValueFormatter.format( deStart, mr.getFormatSpecifier( ), oaxa[i].getRunTimeContext( ).getLocale( ), null ) ); sb.append( Messages.getString( "separator.marker.range.caption", //$NON-NLS-1$ getRunTimeContext( ).getLocale( ) ) ); sb.append( ValueFormatter.format( deEnd, mr.getFormatSpecifier( ), oaxa[i].getRunTimeContext( ).getLocale( ), null ) ); sb.append( Messages.getString( "suffix.marker.range.caption", //$NON-NLS-1$ getRunTimeContext( ).getLocale( ) ) ); la.getCaption( ).setValue( sb.toString( ) ); } catch ( ChartException dfex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, dfex ); } } // DETERMINE THE LABEL ANCHOR (TRANSPOSE IF NEEDED) anc = switchAnchor( mr.getLabelAnchor( ) ); if ( bTransposed ) { or = ax.getOrientation( ) == Orientation.HORIZONTAL_LITERAL ? Orientation.VERTICAL_LITERAL : Orientation.HORIZONTAL_LITERAL; dOriginalAngle = la.getCaption( ) .getFont( ) .getRotation( ); try { la.getCaption( ) .getFont( ) .setRotation( pwa.getTransposedAngle( dOriginalAngle ) ); anc = pwa.transposedAnchor( or, anc ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } } BoundingBox bb = null; try { bb = Methods.computeBox( idr.getDisplayServer( ), IConstants.LEFT, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } boText.set( 0, 0, bb.getWidth( ), bb.getHeight( ) ); // NOW THAT WE COMPUTED THE BOUNDS, RENDER THE ACTUAL TEXT tre = (TextRenderEvent) ( (EventObjectCache) idr ).getEventObject( StructureSource.createMarkerRange( mr ), TextRenderEvent.class ); tre.setBlockBounds( bo ); tre.setBlockAlignment( anchorToAlignment( anc ) ); tre.setLabel( la ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); idr.drawText( tre ); } if ( isInteractivityEnabled( ) ) { Trigger tg; EList elTriggers = mr.getTriggers( ); if ( !elTriggers.isEmpty( ) ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) idr ).getEventObject( StructureSource.createMarkerRange( mr ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = TriggerImpl.copyInstance( (Trigger) elTriggers.get( t ) ); processTrigger( tg, StructureSource.createMarkerRange( mr ) ); iev.addTrigger( tg ); } iev.setHotSpot( rre ); idr.enableInteraction( iev ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_MARKER_RANGE, ax, mr, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_MARKER_RANGE, mr ); } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/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, 1152, 727, 918, 1743, 7078, 9932, 12, 6942, 6558, 8526, 320, 651, 69, 16, 1082, 202, 5694, 800, 11532, 1227, 5484, 262, 1216, 14804, 503, 202, 95, 202, 202, 6558, 1740, 31, 202, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 1743, 7078, 9932, 12, 6942, 6558, 8526, 320, 651, 69, 16, 1082, 202, 5694, 800, 11532, 1227, 5484, 262, 1216, 14804, 503, 202, 95, 202, 202, 6558, 1740, 31, 202, 20...
configVar.setName( paramName + "_" + parameter.getID( ) );
configVar .setName( paramName + "_" + parameter.getID( ) );
protected void __execute( ) throws RemoteException { ViewerAttributeBean attrBean = (ViewerAttributeBean) context.getBean( ); assert attrBean != null; try { // get design file name String reportDesignName = attrBean.getReportDesignName( ); // get design config file name String configFileName = ParameterAccessor .getConfigFileName( reportDesignName ); if (configFileName == null) { handleUpdate( ); return; } // Generate the session handle SessionHandle sessionHandle = DesignEngine.newSession( ULocale.US ); File configFile = new File( configFileName ); // if config file existed, then delete it if ( configFile != null && configFile.exists( ) && configFile.isFile( ) ) { configFile.delete( ); } // create a new config file ReportDesignHandle handle = sessionHandle.createDesign( ); // get parameters from operation Oprand[] op = this.operation.getOprand( ); if ( op != null ) { for ( int i = 0; i < op.length; i++ ) { ConfigVariable configVar = new ConfigVariable( ); String paramName = op[i].getName( ); String paramValue = op[i].getValue( ); // find the parameter ScalarParameterHandle parameter = (ScalarParameterHandle) attrBean .findParameter( paramName ); // convert the parameter from current locale to default // locale format if ( paramValue != null && parameter != null ) { try { Object paramValueObj = ParameterValidationUtil .validate( parameter.getDataType( ), parameter.getPattern( ), paramValue, attrBean.getLocale( ) ); paramValue = ParameterValidationUtil .getDisplayValue( parameter.getDataType( ), parameter.getPattern( ), paramValueObj, ULocale.US ); } catch ( Exception err ) { paramValue = op[i].getValue( ); } // add parameter to config file configVar.setName( paramName + "_" + parameter.getID( ) ); //$NON-NLS-1$ configVar.setValue( paramValue ); handle.addConfigVariable( configVar ); } } } // save config file handle.saveAs( configFileName ); handle.close( ); handleUpdate( ); } catch ( Exception e ) { AxisFault fault = new AxisFault( e.getLocalizedMessage( ) ); fault.setFaultCode( new QName( "BirtCacheParameterActionHandler.__execute( )" ) ); //$NON-NLS-1$ fault.setFaultReason( e.getLocalizedMessage( ) ); throw fault; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/663e473c5349712c54b9729e27543a44deac7a02/BirtCacheParameterActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtCacheParameterActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1001, 8837, 12, 262, 1216, 18361, 202, 95, 202, 202, 18415, 1499, 3381, 1604, 3381, 273, 261, 18415, 1499, 3381, 13, 819, 18, 588, 3381, 12, 11272, 202, 202, 11231, 1604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 8837, 12, 262, 1216, 18361, 202, 95, 202, 202, 18415, 1499, 3381, 1604, 3381, 273, 261, 18415, 1499, 3381, 13, 819, 18, 588, 3381, 12, 11272, 202, 202, 11231, 1604, ...
return m_roles;
Collection roles = m_groupManager.getRoles(); List webRoles = new ArrayList(roles.size()); for (Iterator it = roles.iterator(); it.hasNext();) { Role role = (Role) it.next(); webRoles.add(new ManagedRole(role)); } return webRoles;
public Collection getRoles() { return m_roles; }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/706ae9a9c41b58e508fa716d64e3d6f6ca56ee0e/WebRoleManager.java/clean/src/web/src/org/opennms/web/admin/roles/WebRoleManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 21787, 1435, 288, 3639, 2200, 4900, 273, 312, 67, 1655, 1318, 18, 588, 6898, 5621, 987, 3311, 6898, 273, 394, 2407, 12, 7774, 18, 1467, 10663, 364, 261, 3198, 518, 273, 4900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 21787, 1435, 288, 3639, 2200, 4900, 273, 312, 67, 1655, 1318, 18, 588, 6898, 5621, 987, 3311, 6898, 273, 394, 2407, 12, 7774, 18, 1467, 10663, 364, 261, 3198, 518, 273, 4900, ...
setHref(null);
private void evaluateExpressions() throws JspException { try { setAnchor((String) evalAttr("anchor", getAnchor(), String.class)); } catch (NullAttributeException ex) { setAnchor(null); } try { setForward((String) evalAttr("forward", getForward(), String.class)); } catch (NullAttributeException ex) { setForward(null); } try { setHref((String) evalAttr("href", getHref(), String.class)); } catch (NullAttributeException ex) { setHref(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setPage((String) evalAttr("page", getPage(), String.class)); } catch (NullAttributeException ex) { setPage(null); } try { setParamId((String) evalAttr("paramId", getParamId(), String.class)); } catch (NullAttributeException ex) { setParamId(null); } try { setParamName((String) evalAttr("paramName", getParamName(), String.class)); } catch (NullAttributeException ex) { setParamName(null); } try { setParamProperty((String) evalAttr("paramProperty", getParamProperty(), String.class)); } catch (NullAttributeException ex) { setParamProperty(null); } try { setParamScope((String) evalAttr("paramScope", getParamScope(), String.class)); } catch (NullAttributeException ex) { setParamScope(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setTransaction(((Boolean) evalAttr("transaction", getTransactionExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setTransaction(false); } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELRewriteTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELRewriteTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 11605, 12443, 780, 13, 5302, 3843, 2932, 16215, 3113, 336, 11605, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 11605, 12443, 780, 13, 5302, 3843, 2932, 16215, 3113, 336, 11605, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261,...
public org.quickfix.field.SolicitedFlag getSolicitedFlag() throws FieldNotFound { org.quickfix.field.SolicitedFlag value = new org.quickfix.field.SolicitedFlag();
public quickfix.field.SolicitedFlag getSolicitedFlag() throws FieldNotFound { quickfix.field.SolicitedFlag value = new quickfix.field.SolicitedFlag();
public org.quickfix.field.SolicitedFlag getSolicitedFlag() throws FieldNotFound { org.quickfix.field.SolicitedFlag value = new org.quickfix.field.SolicitedFlag(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix44/ExecutionReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 55, 1415, 16261, 4678, 1322, 1415, 16261, 4678, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 55, 1415, 16261, 4678, 460,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 55, 1415, 16261, 4678, 1322, 1415, 16261, 4678, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 55, 1415, 16261, 4678, 460,...
switch ( eDerivedStructuralFeatureID( eFeature ) )
switch ( featureID )
public void eSet( EStructuralFeature eFeature, Object newValue ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.LOCATION3_D__X : setX( ( (Double) newValue ).doubleValue( ) ); return; case AttributePackage.LOCATION3_D__Y : setY( ( (Double) newValue ).doubleValue( ) ); return; case AttributePackage.LOCATION3_D__Z : setZ( ( (Double) newValue ).doubleValue( ) ); return; } eDynamicSet( eFeature, newValue ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/Location3DImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/Location3DImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20199, 12, 512, 14372, 4595, 425, 4595, 16, 1033, 6129, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202,...
scaledWidth=800;
scaledWidth=PageSize.A4.width();
private void processParameters() throws BadElementException, IOException { type = IMGTEMPLATE; originalType = ORIGINAL_PS; InputStream is = null; try { if (rawData == null) { is = url.openStream(); } else { is = new java.io.ByteArrayInputStream(rawData); } String boundingbox=null; Reader r = new BufferedReader(new InputStreamReader(is)); // StreamTokenizer st = new StreamTokenizer(r); while (r.ready()) { char c; StringBuffer sb = new StringBuffer(); while ( (c = ( (char) r.read())) != '\n'&&c!='\r') { sb.append(c); } //System.out.println("<<" + sb.toString() + ">>"); if (sb.toString().startsWith("%%BoundingBox:")) { boundingbox = sb.toString(); } if (sb.toString().startsWith("%%TemplateBox:")) { boundingbox = sb.toString(); } if (sb.toString().startsWith("%%EndComments")) { break; } } if(boundingbox==null){ scaledHeight=800; setTop(scaledHeight); scaledWidth=800; setRight(scaledWidth); return; } StringTokenizer st=new StringTokenizer(boundingbox,": \r\n"); st.nextElement(); String xx1=st.nextToken(); String yy1=st.nextToken(); String xx2=st.nextToken(); String yy2=st.nextToken(); int left = Integer.parseInt(xx1); int top = Integer.parseInt(yy1); int right = Integer.parseInt(xx2); int bottom = Integer.parseInt(yy2); int inch = 1; dpiX = 72; dpiY = 72; scaledHeight = (float) (bottom - top) / inch *1f; scaledHeight=800; setTop(scaledHeight); scaledWidth = (float) (right - left) / inch * 1f; scaledWidth=800; setRight(scaledWidth); } finally { if (is != null) { is.close(); } plainWidth = width(); plainHeight = height(); } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/a70285238d45643e095fbf1c5a17749c92b693e7/ImgPostscript.java/clean/src/com/lowagie/text/ImgPostscript.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 2402, 1435, 1216, 6107, 20826, 16, 1860, 288, 3639, 618, 273, 26582, 12205, 31, 3639, 2282, 559, 273, 24069, 7702, 1013, 67, 5857, 31, 3639, 5037, 353, 273, 446, 31, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 2402, 1435, 1216, 6107, 20826, 16, 1860, 288, 3639, 618, 273, 26582, 12205, 31, 3639, 2282, 559, 273, 24069, 7702, 1013, 67, 5857, 31, 3639, 5037, 353, 273, 446, 31, 3639...
} else { if (paramSize == 0) { result = "@" + myprefix; }
public String generateTests(String prefix) { String result = new String(); String myprefix = prefix + "_" + name.toLowerCase(); int paramSize = (paramFilters != null) ? paramFilters.size() : 0; if (useTimeRange) { String key = myprefix + TextCalendarTextFilter.TIME_RANGE_FIELD_SUFFIX_LOWERCASE; String value = generatePeriods(timeRange); result = "jcr:timerange(@" + key + ", '" + value + "')"; } else if (useTextMatch) { result = "jcr:contains(@" + myprefix + ", '*" + textMatch + "*')"; } else { // is-defined if (paramSize == 0) { // If there are no parameter filters then we must // explicitly test for this component result = "@" + myprefix; } } if (paramSize != 0) { result = generateOrList(paramFilters, myprefix, result); } return result; }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/41608041a8ffd9856c89f7485d0037b620a26516/QueryFilter.java/clean/src/main/java/org/osaf/cosmo/dav/report/caldav/QueryFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 2103, 14650, 12, 780, 1633, 13, 288, 5411, 514, 563, 273, 394, 514, 5621, 5411, 514, 312, 879, 266, 904, 273, 1633, 397, 8802, 397, 508, 18, 869, 5630, 5621, 5411, 509, 579, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 2103, 14650, 12, 780, 1633, 13, 288, 5411, 514, 563, 273, 394, 514, 5621, 5411, 514, 312, 879, 266, 904, 273, 1633, 397, 8802, 397, 508, 18, 869, 5630, 5621, 5411, 509, 579, ...
protected synchronized void playEvents() { debugger.playEvents(getCurrentEvents());
protected synchronized void playEvents(boolean reset) { debugger.playEvents(getCurrentEvents(), reset);
protected synchronized void playEvents() { debugger.playEvents(getCurrentEvents()); }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/bc4088ea842f6870771e9c97ca5d590b23671f89/DebuggerRecorder.java/clean/src/org/antlr/works/debugger/DebuggerRecorder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 6599, 3783, 1435, 288, 3639, 19977, 18, 1601, 3783, 12, 588, 3935, 3783, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 6599, 3783, 1435, 288, 3639, 19977, 18, 1601, 3783, 12, 588, 3935, 3783, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
StackFrame(Context cx, Main db, DebuggableScript fnOrScript)
StackFrame(Context cx, Main db, FunctionSource fsource)
StackFrame(Context cx, Main db, DebuggableScript fnOrScript) { this.db = db; this.contextData = ContextData.get(cx); this.fnOrScript = fnOrScript; FunctionSource item = db.getFunctionSource(fnOrScript); if (item != null) { this.sourceInfo = item.sourceInfo(); this.lineNumber = item.firstLine(); } contextData.pushFrame(this); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/e2031a639690d05ffedb08d225af2e6b3282ad1e/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 7283, 3219, 12, 1042, 9494, 16, 12740, 1319, 16, 4284, 1830, 2662, 552, 13, 3639, 288, 5411, 333, 18, 1966, 273, 1319, 31, 5411, 333, 18, 2472, 751, 273, 1772, 751, 18, 588, 12, 71, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 7283, 3219, 12, 1042, 9494, 16, 12740, 1319, 16, 4284, 1830, 2662, 552, 13, 3639, 288, 5411, 333, 18, 1966, 273, 1319, 31, 5411, 333, 18, 2472, 751, 273, 1772, 751, 18, 588, 12, 71, 9...
layout.numColumns = 2;
protected Control createContents(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; composite.setLayout(layout); GridData data = new GridData(GridData.FILL); composite.setLayoutData(data); addFirstSection(composite); addSeparator(composite); addSecondSection(composite); return composite; }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/dea4e4b7dd0682d5d73aeb25f9ed3f933e5e051a/SVNPropertyPage.java/buggy/ui/src/org/tigris/subversion/subclipse/ui/properties/SVNPropertyPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 8888, 752, 6323, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 5621, 9079, 9635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8888, 752, 6323, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 5621, 9079, 9635,...
int ix = children.indexOf(childElements[cc]); if (ix < 0) continue; Item[] ch = getChildren(widget); if (ch.length + 1 == children.size()) { createTreeItem(widget, childElements[cc], ix); if (ch.length == 0) { tree.setRedraw(false); tree.setRedraw(true); } continue; } refresh(parentElement); return; } }
public void add(Object parentElement, Object[] childElements) { Assert.isNotNull(parentElement); Assert.isNotNull(childElements); Widget widget = findItem(parentElement); // If parent hasn't been realized yet, just ignore the add. if (widget == null) return; Control tree = getControl(); // optimization! // if the widget is not expanded we just invalidate the subtree if (widget instanceof Item) { Item ti = (Item) widget; if (!getExpanded(ti)) { boolean needDummy = isExpandable(parentElement); boolean haveDummy = false; // remove all children Item[] items = getItems(ti); for (int i = 0; i < items.length; i++) { if (items[i].getData() != null) { disassociate(items[i]); items[i].dispose(); } else { if (needDummy && !haveDummy) { haveDummy = true; } else { items[i].dispose(); } } } // append a dummy if necessary if (needDummy && !haveDummy) { newItem(ti, SWT.NULL, -1); } else { // XXX: Workaround (PR missing) tree.redraw(); } return; } } if (childElements.length > 0) { List children = Arrays.asList(getSortedChildren(parentElement)); for (int cc = 0; cc < childElements.length; cc++) { int ix = children.indexOf(childElements[cc]); if (ix < 0) // child not found: ignore continue; Item[] ch = getChildren(widget); if (ch.length + 1 == children.size()) { createTreeItem(widget, childElements[cc], ix); // insert child at position if (ch.length == 0) { //System.out.println("WORKAROUND setRedraw"); tree.setRedraw(false); // WORKAROUND tree.setRedraw(true); // WORKAROUND } continue; } // couldn't handle this child: // skip other children and do general case // call refresh rather than internalRefresh to preserve selection refresh(parentElement); return; } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1c8f382d49c8e2e5d13694225cce93f4fac936ee/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 921, 30363, 16, 1033, 8526, 1151, 3471, 13, 288, 202, 202, 8213, 18, 291, 5962, 12, 2938, 1046, 1769, 202, 202, 8213, 18, 291, 5962, 12, 3624, 3471, 1769, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 12, 921, 30363, 16, 1033, 8526, 1151, 3471, 13, 288, 202, 202, 8213, 18, 291, 5962, 12, 2938, 1046, 1769, 202, 202, 8213, 18, 291, 5962, 12, 3624, 3471, 1769, 202, ...
private void limit ( int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); buffer.limit ( buffer.position() + len ); }
private void limit(int len) { if (len <= 0) throw new IllegalArgumentException ("len <= 0, shouldn't happen"); buffer.limit(buffer.position() + len); }
private void limit ( int len ) { if ( len <= 0 ) throw new IllegalArgumentException ( "len <= 0, shouldn't happen" ); buffer.limit ( buffer.position() + len ); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63b8a00eb4a060a1688070c40c709ac44fefbeac/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1800, 261, 509, 562, 262, 288, 202, 565, 309, 261, 562, 1648, 374, 225, 262, 202, 202, 12849, 394, 2754, 1082, 565, 261, 315, 1897, 1648, 374, 16, 12044, 1404, 5865, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1800, 261, 509, 562, 262, 288, 202, 565, 309, 261, 562, 1648, 374, 225, 262, 202, 202, 12849, 394, 2754, 1082, 565, 261, 315, 1897, 1648, 374, 16, 12044, 1404, 5865, 6, ...
public Path getQPath(ItemId id) throws ItemNotFoundException, RepositoryException { if (id.equals(rootNodeId)) { return Path.ROOT; }
public Path getQPath(ItemState itemState) throws ItemNotFoundException, RepositoryException {
public Path getQPath(ItemId id) throws ItemNotFoundException, RepositoryException { // shortcut if (id.equals(rootNodeId)) { return Path.ROOT; } Path.PathBuilder builder = new Path.PathBuilder(); try { buildPath(builder, getItemState(id)); return builder.getPath(); } catch (NoSuchItemStateException nsise) { String msg = "failed to build path of " + id; log.debug(msg); throw new ItemNotFoundException(msg, nsise); } catch (ItemStateException ise) { String msg = "failed to build path of " + id; log.debug(msg); throw new RepositoryException(msg, ise); } catch (MalformedPathException e) { String msg = "failed to build path of " + id; throw new RepositoryException(msg, e); } }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/225b0a8914928975a7c9c42574c1fa2778136c47/HierarchyManagerImpl.java/buggy/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/HierarchyManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2666, 23413, 743, 12, 17673, 612, 13, 5411, 1216, 4342, 3990, 16, 13367, 288, 3639, 368, 10995, 3639, 309, 261, 350, 18, 14963, 12, 3085, 15883, 3719, 288, 5411, 327, 2666, 18, 9185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2666, 23413, 743, 12, 17673, 612, 13, 5411, 1216, 4342, 3990, 16, 13367, 288, 3639, 368, 10995, 3639, 309, 261, 350, 18, 14963, 12, 3085, 15883, 3719, 288, 5411, 327, 2666, 18, 9185...
Logger.error(this,"Unmatchable packet from "+peer);
if(opn != null && !opn.isConnected()) Logger.minor(this,"Unmatchable packet from "+peer); else Logger.error(this,"Unmatchable packet from "+peer);
public void process(byte[] buf, int offset, int length, Peer peer) { node.random.acceptTimerEntropy(fnpTimingSource, 0.25); Logger.minor(this, "Packet length "+length+" from "+peer); /** * Look up the Peer. * If we know it, check the packet with that key. * Otherwise try all of them (on the theory that nodes * occasionally change their IP addresses). */ PeerNode opn = pm.getByPeer(peer); PeerNode pn; if(length > HASH_LENGTH + RANDOM_BYTES_LENGTH + 4 + 6) { if(opn != null) { if(tryProcess(buf, offset, length, opn.getCurrentKeyTracker())) return; // Try with old key if(tryProcess(buf, offset, length, opn.getPreviousKeyTracker())) return; // Might be an auth packet if(tryProcessAuth(buf, offset, length, opn, peer)) return; } for(int i=0;i<pm.connectedPeers.length;i++) { pn = pm.myPeers[i]; if(pn == opn) continue; if(tryProcess(buf, offset, length, pn.getCurrentKeyTracker())) { // IP address change pn.changedIP(peer); return; } if(tryProcess(buf, offset, length, pn.getPreviousKeyTracker())) return; if(tryProcessAuth(buf, offset, length, pn, peer)) return; } } Logger.error(this,"Unmatchable packet from "+peer); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/d5644cba6a7150afb4bc68c0f80caf3c62e5c960/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 12, 7229, 8526, 1681, 16, 509, 1384, 16, 509, 769, 16, 10669, 4261, 13, 288, 3639, 756, 18, 9188, 18, 9436, 6777, 28727, 12, 4293, 84, 25377, 1830, 16, 374, 18, 2947, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 12, 7229, 8526, 1681, 16, 509, 1384, 16, 509, 769, 16, 10669, 4261, 13, 288, 3639, 756, 18, 9188, 18, 9436, 6777, 28727, 12, 4293, 84, 25377, 1830, 16, 374, 18, 2947, ...
{ int w = view.getDomainPane().getWavelengths().getSelectedIndex(); return (int) eventManager.getGlobalChannelWindowStart(w); }
{ int w = view.getDomainPane().getWavelengths().getSelectedIndex(); return (int) eventManager.getGlobalChannelWindowStart(w); }
int getGlobalMinimum() { int w = view.getDomainPane().getWavelengths().getSelectedIndex(); return (int) eventManager.getGlobalChannelWindowStart(w); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 474, 20591, 13042, 1435, 202, 95, 202, 202, 474, 341, 273, 1476, 18, 588, 3748, 8485, 7675, 588, 59, 16775, 87, 7675, 588, 7416, 1016, 5621, 202, 202, 2463, 261, 474, 13, 23040, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 474, 20591, 13042, 1435, 202, 95, 202, 202, 474, 341, 273, 1476, 18, 588, 3748, 8485, 7675, 588, 59, 16775, 87, 7675, 588, 7416, 1016, 5621, 202, 202, 2463, 261, 474, 13, 23040, 18...