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
notifyObservers(Message.POSITION_CHANGED);
notifyObservers(new Pair<Message,Object>(Message.POSITION_CHANGED,null));
public void setPosition(int pos) { this.position = pos; if (position > length) { done = true; position = length; } setChanged(); notifyObservers(Message.POSITION_CHANGED); }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/d31dbab586fd8bb367e8dc29ef0b94562105e331/Task.java/buggy/trunk/src/net/sf/plantlore/common/Task.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19776, 12, 474, 949, 13, 288, 3639, 333, 18, 3276, 273, 949, 31, 3639, 309, 261, 3276, 405, 769, 13, 288, 2398, 2731, 273, 638, 31, 5411, 1754, 273, 769, 31, 3639, 289, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19776, 12, 474, 949, 13, 288, 3639, 333, 18, 3276, 273, 949, 31, 3639, 309, 261, 3276, 405, 769, 13, 288, 2398, 2731, 273, 638, 31, 5411, 1754, 273, 769, 31, 3639, 289, 773...
public void resetAgent(Connection connection, LogWriter logWriter, int loginTimeout, String server, int port) throws SqlException { resetAgent(logWriter); resetAgent_(logWriter, loginTimeout, server, port);
protected void resetAgent(LogWriter logWriter) { accumulatedReadExceptions_ = null; enableBatchedExceptionTracking_ = false; batchedExceptionLabelIndex_ = 0; batchedExceptionGenerated_ = null; logWriter_ = logWriter; deferredException_ = null;
public void resetAgent(Connection connection, LogWriter logWriter, int loginTimeout, String server, int port) throws SqlException { resetAgent(logWriter); resetAgent_(logWriter, loginTimeout, server, port); }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/5d2e2bd29eb5bd4f933f513976a0886c1988c89d/Agent.java/buggy/java/client/org/apache/derby/client/am/Agent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2715, 3630, 12, 1952, 1459, 16, 1827, 2289, 613, 2289, 16, 509, 3925, 2694, 16, 514, 1438, 16, 509, 1756, 13, 1216, 8855, 503, 288, 3639, 2715, 3630, 12, 1330, 2289, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 2715, 3630, 12, 1952, 1459, 16, 1827, 2289, 613, 2289, 16, 509, 3925, 2694, 16, 514, 1438, 16, 509, 1756, 13, 1216, 8855, 503, 288, 3639, 2715, 3630, 12, 1330, 2289, 1769, 36...
public org.quickfix.field.LegStateOrProvinceOfIssue getLegStateOrProvinceOfIssue() throws FieldNotFound { org.quickfix.field.LegStateOrProvinceOfIssue value = new org.quickfix.field.LegStateOrProvinceOfIssue();
public quickfix.field.LegStateOrProvinceOfIssue getLegStateOrProvinceOfIssue() throws FieldNotFound { quickfix.field.LegStateOrProvinceOfIssue value = new quickfix.field.LegStateOrProvinceOfIssue();
public org.quickfix.field.LegStateOrProvinceOfIssue getLegStateOrProvinceOfIssue() throws FieldNotFound { org.quickfix.field.LegStateOrProvinceOfIssue value = new org.quickfix.field.LegStateOrProvinceOfIssue(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DerivativeSecurityList.java/buggy/src/java/src/quickfix/fix43/DerivativeSecurityList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 1119, 1162, 626, 90, 2410, 951, 12956, 336, 8329, 1119, 1162, 626, 90, 2410, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8329, 1119, 1162, 626, 90, 2410, 951, 12956, 336, 8329, 1119, 1162, 626, 90, 2410, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525,...
addArgIf( this.old, "-1.1" ); } addArgIfNotEmpty( "-overview", this.overview ); addArgIf( this.package_, "-package" ); addArgIf( this.private_, "-private" ); addArgIf( this.protected_, "-protected" ); addArgIf( this.public_, "-public" ); addArgIf( this.quiet, "-quiet", 1.4f ); addArgIfNotEmpty( "-source", this.source, 1.4f ); addArgIf( this.verbose, "-verbose" ); addArgIfNotEmpty( "-additionalparam", this.additionalparam ); addArgIfNotEmpty( "-sourcePath", sourcePath.toString() ); addArgIfNotEmpty( "-classpath", classpath.toString() );
addArgIf( arguments, old, "-1.1" ); } addArgIfNotEmpty( arguments, "-overview", overview ); addArgIf( arguments, showPackage, "-package" ); addArgIf( arguments, showPrivate, "-private" ); addArgIf( arguments, showProtected, "-protected" ); addArgIf( arguments, public_, "-public" ); addArgIf( arguments, quiet, "-quiet", 1.4f ); addArgIfNotEmpty( arguments, "-source", source, 1.4f ); addArgIf( arguments, verbose, "-verbose" ); addArgIfNotEmpty( arguments, "-additionalparam", additionalparam ); addArgIfNotEmpty( arguments, "-sourcePath", sourcePath.toString() ); addArgIfNotEmpty( arguments, "-classpath", classpath.toString() );
protected void executeReport( Locale locale ) throws MavenReportException { try { int actualYear = Calendar.getInstance().get( Calendar.YEAR ); String year = String.valueOf( actualYear ); Model model = getProject().getModel(); if ( model.getInceptionYear() != null ) { if ( StringUtils.isNumeric( model.getInceptionYear() ) ) { if ( Integer.valueOf( model.getInceptionYear() ).intValue() != actualYear ) { year = model.getInceptionYear() + "-" + String.valueOf( actualYear ); } } else { getLog().warn( "The inception year is not a valid year." ); } } StringBuffer classpath = new StringBuffer(); for ( Iterator i = getProject().getCompileClasspathElements().iterator(); i.hasNext(); ) { classpath.append( (String) i.next() ); if ( i.hasNext() ) { classpath.append( PATH_SEPARATOR ); } } StringBuffer sourcePath = new StringBuffer(); String[] fileList = new String[1]; for ( Iterator i = getProject().getCompileSourceRoots().iterator(); i.hasNext(); ) { String sourceDirectory = (String) i.next(); fileList = FileUtils.getFilesFromExtension( sourceDirectory, new String[] { "java" } ); sourcePath.append( sourceDirectory ); } File javadocDirectory = new File( getProject().getBuild().getDirectory() + "/javadoc" ); if ( fileList != null && fileList.length != 0 ) { StringBuffer files = new StringBuffer(); for ( int i = 0; i < fileList.length; i++ ) { files.append( fileList[i] ); files.append( "\n" ); } javadocDirectory.mkdirs(); FileUtils.fileWrite( new File( javadocDirectory, "files" ).getAbsolutePath(), files.toString() ); } else { return; } // Copy default style sheet copyDefaultStylesheet( javadocDirectory ); this.cmd.setWorkingDirectory( javadocDirectory.getAbsolutePath() ); this.cmd.setExecutable( getJavadocPath() ); // General javadoc arguments addArgIf( this.breakiterator, "-breakiterator", 1.4f ); if ( !StringUtils.isEmpty( this.doclet ) ) { addArgIfNotEmpty( "-doclet", this.doclet ); addArgIfNotEmpty( "-docletPath", this.docletPath ); } addArgIfNotEmpty( "-encoding", this.encoding ); addArgIfNotEmpty( "-extdirs", this.extdirs ); addArgIfNotEmpty( "-exclude", this.excludePackageNames, 1.4f ); addArgIfNotEmpty( "-locale", this.locale ); if ( !StringUtils.isEmpty( this.maxmemory ) ) { // Allow '128' or '128m' if ( NumberUtils.isDigits( this.maxmemory ) ) { addArgIf( true, "-J-Xmx" + this.maxmemory + "m" ); } else { if ( ( NumberUtils.isDigits( this.maxmemory.substring( 0, this.maxmemory.length() - 1 ) ) ) && ( this.maxmemory.toLowerCase().endsWith( "m" ) ) ) { addArgIf( true, "-J-Xmx" + this.maxmemory ); } else { getLog().error( "The maxmemory '" + this.maxmemory + "' is not a valid number. Ignore this option." ); } } } if ( !StringUtils.isEmpty( this.minmemory ) ) { // Allow '128' or '128m' if ( NumberUtils.isDigits( this.minmemory ) ) { addArgIf( true, "-J-Xms" + this.minmemory + "m" ); } else { if ( ( NumberUtils.isDigits( this.minmemory.substring( 0, this.minmemory.length() - 1 ) ) ) && ( this.minmemory.toLowerCase().endsWith( "m" ) ) ) { addArgIf( true, "-J-Xms" + this.minmemory ); } else { getLog().error( "The minmemory '" + this.minmemory + "' is not a valid number. Ignore this option." ); } } } if ( this.old && SystemUtils.isJavaVersionAtLeast( 1.4f ) ) { getLog().warn( "Javadoc 1.4 doesn't support the -1.1 switch anymore. Ignore this option." ); } else { addArgIf( this.old, "-1.1" ); } addArgIfNotEmpty( "-overview", this.overview ); addArgIf( this.package_, "-package" ); addArgIf( this.private_, "-private" ); addArgIf( this.protected_, "-protected" ); addArgIf( this.public_, "-public" ); addArgIf( this.quiet, "-quiet", 1.4f ); addArgIfNotEmpty( "-source", this.source, 1.4f ); addArgIf( this.verbose, "-verbose" ); addArgIfNotEmpty( "-additionalparam", this.additionalparam ); addArgIfNotEmpty( "-sourcePath", sourcePath.toString() ); addArgIfNotEmpty( "-classpath", classpath.toString() ); // javadoc arguments for default doclet if ( StringUtils.isEmpty( this.doclet ) ) { // Specify default values if ( this.bottom.equals( DEFAULT_BOTTOM ) ) { this.bottom = "Copyright &copy; " + year + " "; if ( ( model.getOrganization() != null ) && ( !StringUtils.isEmpty( model.getOrganization().getName() ) ) ) { this.bottom += model.getOrganization().getName(); } else { this.bottom += DEFAULT_ORGANIZATION_NAME; } this.bottom += ". All Rights Reserved."; } if ( this.destDir.equals( DEFAULT_DESTDIR ) ) { File outputDir = new File( getReportOutputDirectory().getAbsolutePath() + "/apidocs" ); outputDir.mkdirs(); this.destDir = outputDir.getAbsolutePath(); } if ( StringUtils.isEmpty( this.stylesheetfile ) ) { this.stylesheetfile = javadocDirectory + File.separator + DEFAULT_CSS_NAME; } if ( this.windowtitle.equals( DEFAULT_WINDOW_TITLE ) ) { this.windowtitle = ( model.getName() == null ? model.getArtifactId() : model.getName() ) + " " + model.getVersion() + " API"; } if ( this.doctitle.equals( DEFAULT_DOCTITLE ) ) { this.doctitle = this.windowtitle; } // End Specify default values addArgIf( this.author, "-author" ); addArgIfNotEmpty( "-bottom", this.bottom ); addArgIf( this.breakiterator, "-breakiterator", 1.4f ); addArgIfNotEmpty( "-charset", this.charset ); addArgIfNotEmpty( "-d", this.destDir ); addArgIf( this.docfilessubdirs, "-docfilessubdirs", 1.4f ); addArgIfNotEmpty( "-docencoding", this.docencoding ); addArgIfNotEmpty( "-doctitle", this.doctitle ); addArgIfNotEmpty( "-excludePackageNames", this.excludePackageNames ); addArgIfNotEmpty( "-excludedocfilessubdir", this.excludedocfilessubdir, 1.4f ); addArgIfNotEmpty( "-footer", this.footer ); addArgIfNotEmpty( "-group", this.group, true ); addArgIfNotEmpty( "-header", this.header ); addArgIfNotEmpty( "-helpfile", this.helpfile ); addArgIfNotEmpty( "-link", this.link, true ); addArgIfNotEmpty( "-linkoffline", this.linkoffline, true ); addArgIf( this.linksource, "-linksource", 1.4f ); addArgIf( this.nodeprecated, "-nodeprecated" ); addArgIf( this.nodeprecatedlist, "-nodeprecatedlist" ); addArgIf( this.nocomment, "-nocomment", 1.4f ); addArgIf( this.nohelp, "-nohelp" ); addArgIf( this.noindex, "-noindex" ); addArgIf( this.nonavbar, "-nonavbar" ); addArgIfNotEmpty( "-noqualifier", this.noqualifier, 1.4f ); addArgIf( this.nosince, "-nosince" ); addArgIf( this.notree, "-notree" ); addArgIf( this.serialwarn, "-serialwarn" ); addArgIf( this.splitindex, "-splitindex" ); addArgIfNotEmpty( "-stylesheetfile", this.stylesheetfile ); addArgIfNotEmpty( "-tag", this.tag, 1.4f, true ); addArgIfNotEmpty( "-taglet", this.taglet, 1.4f ); addArgIfNotEmpty( "-tagletpath", this.tagletpath, 1.4f ); addArgIf( this.use, "-use" ); addArgIf( this.version, "-version" ); addArgIfNotEmpty( "-windowtitle", this.windowtitle ); } cmd.createArgument().setValue( "@files" ); getLog().info( Commandline.toString( cmd.getCommandline() ) ); final int exitCode = CommandLineUtils .executeCommandLine( cmd, new DefaultConsumer(), new DefaultConsumer() ); if ( exitCode != 0 ) { throw new MavenReportException( "Exit code: " + exitCode ); } } catch ( Exception e ) { getLog().debug( e ); throw new MavenReportException( "An error has occurred in javadoc report generation.", e ); } }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/4ff3ae5c4b06b53718e3d3124ad149d553c2ccf3/JavadocReport.java/buggy/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1836, 4820, 12, 6458, 2573, 262, 3639, 1216, 17176, 4820, 503, 565, 288, 3639, 775, 3639, 288, 5411, 509, 3214, 5593, 273, 5542, 18, 588, 1442, 7675, 588, 12, 5542, 18, 15137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 4820, 12, 6458, 2573, 262, 3639, 1216, 17176, 4820, 503, 565, 288, 3639, 775, 3639, 288, 5411, 509, 3214, 5593, 273, 5542, 18, 588, 1442, 7675, 588, 12, 5542, 18, 15137, ...
header.addChild(block1);
public SOAPEnvelope getEchoSoapEnvelope() { SOAPFactory omfactory = OMAbstractFactory.getSOAP11Factory(); SOAPEnvelope reqEnv = omfactory.createSOAPEnvelope(); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/envelope/", "soapenv"); reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema", "xsd"); reqEnv.declareNamespace("http://schemas.xmlsoap.org/soap/encoding/", "SOAP-ENC"); //xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" reqEnv.declareNamespace("http://www.w3.org/2001/XMLSchema-instance", "xsi"); reqEnv.declareNamespace("http://soapinterop.org/xsd", "s"); reqEnv.declareNamespace("http://soapinterop.org/", "m"); SOAPHeader header = omfactory.createSOAPHeader(reqEnv); OMNamespace hns = reqEnv.declareNamespace("http://soapinterop.org/echoheader/", "hns"); //xmlns:m0="http://soapinterop.org/echoheader/ SOAPHeaderBlock block1 = header.addHeaderBlock("echoMeStringRequest", hns); block1.addAttribute("xsi:type", "xsd:string", null); block1.addChild(omfactory.createText("string")); // header.addChild(headerChild); header.addChild(block1); SOAPHeaderBlock block2 = header.addHeaderBlock("echoMeStructRequest", hns); block2.addAttribute("xsi:type", "s:SOAPStruct", null); OMElement h2Val1 = omfactory.createOMElement("varString", null); h2Val1.addAttribute("xsi:type", "xsd:string", null); h2Val1.addChild(omfactory.createText("string")); OMElement h2Val2 = omfactory.createOMElement("varInt", null); h2Val2.addAttribute("xsi:type", "xsd:int", null); h2Val2.addChild(omfactory.createText("150")); OMElement h2Val3 = omfactory.createOMElement("varFloat", null); h2Val3.addAttribute("xsi:type", "xsd:float", null); h2Val3.addChild(omfactory.createText("456.321")); block2.addChild(h2Val1); block2.addChild(h2Val2); block2.addChild(h2Val3); OMElement operation = omfactory.createOMElement("echoVoid", "http://soapinterop.org/", null); SOAPBody body = omfactory.createSOAPBody(reqEnv); body.addChild(operation); operation.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", null); return reqEnv; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/adabba9fc5cefa2d978a1abe4543c86a61d36cbd/GroupcVoidUtil.java/buggy/modules/integration/src/test/interop/whitemesa/round2/util/GroupcVoidUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16434, 10862, 4774, 2599, 20601, 10862, 1435, 288, 3639, 16434, 1733, 8068, 6848, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 16434, 10862, 1111, 3491, 273, 8068...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16434, 10862, 4774, 2599, 20601, 10862, 1435, 288, 3639, 16434, 1733, 8068, 6848, 273, 531, 5535, 3336, 1733, 18, 588, 27952, 2499, 1733, 5621, 3639, 16434, 10862, 1111, 3491, 273, 8068...
public FoldingActionGroup(final ITextEditor editor, ITextViewer viewer) { if (!(viewer instanceof ProjectionViewer)) { fToggle= null; fExpand= null; fCollapse= null; fExpandAll= null; fCollapseAll= null; fRestoreDefaults= null; fProjectionListener= null; return; } fViewer= (ProjectionViewer) viewer; fProjectionListener= new IProjectionListener() { public void projectionEnabled() { update(); } public void projectionDisabled() { update(); } }; fViewer.addProjectionListener(fProjectionListener); fToggle= new TextOperationAction(FoldingMessages.getResourceBundle(), "Projection.Toggle.", editor, ProjectionViewer.TOGGLE, true); //$NON-NLS-1$ fToggle.setChecked(true); fToggle.setActionDefinitionId(IFoldingCommandIds.FOLDING_TOGGLE); editor.setAction("FoldingToggle", fToggle); //$NON-NLS-1$ fExpandAll= new TextOperationAction(FoldingMessages.getResourceBundle(), "Projection.ExpandAll.", editor, ProjectionViewer.EXPAND_ALL, true); //$NON-NLS-1$ fExpandAll.setActionDefinitionId(IFoldingCommandIds.FOLDING_EXPAND_ALL); editor.setAction("FoldingExpandAll", fExpandAll); //$NON-NLS-1$ fCollapseAll= new TextOperationAction(FoldingMessages.getResourceBundle(), "Projection.CollapseAll.", editor, ProjectionViewer.COLLAPSE, true); //$NON-NLS-1$ fCollapseAll.setActionDefinitionId(IFoldingCommandIds.FOLDING_COLLAPSE_ALL); editor.setAction("FoldingCollapseAll", fCollapseAll); //$NON-NLS-1$ fExpand= new TextOperationAction(FoldingMessages.getResourceBundle(), "Projection.Expand.", editor, ProjectionViewer.EXPAND, true); //$NON-NLS-1$ fExpand.setActionDefinitionId(IFoldingCommandIds.FOLDING_EXPAND); editor.setAction("FoldingExpand", fExpand); //$NON-NLS-1$ fCollapse= new TextOperationAction(FoldingMessages.getResourceBundle(), "Projection.Collapse.", editor, ProjectionViewer.COLLAPSE, true); //$NON-NLS-1$ fCollapse.setActionDefinitionId(IFoldingCommandIds.FOLDING_COLLAPSE); editor.setAction("FoldingCollapse", fCollapse); //$NON-NLS-1$ fRestoreDefaults= new FoldingAction(FoldingMessages.getResourceBundle(), "Projection.Restore.") { //$NON-NLS-1$ public void run() { if (editor instanceof CEditor) { CEditor cEditor= (CEditor) editor; cEditor.resetProjection(); } } }; fRestoreDefaults.setActionDefinitionId(IFoldingCommandIds.FOLDING_RESTORE); editor.setAction("FoldingRestore", fRestoreDefaults); //$NON-NLS-1$ }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e99ef14b18e9716eeea6a349b288b8e72dfb44c2/FoldingActionGroup.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/actions/FoldingActionGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15592, 310, 1803, 1114, 12, 6385, 1285, 408, 4666, 7653, 1811, 16, 1285, 408, 18415, 25256, 15329, 202, 202, 430, 12, 5, 12, 25256, 1336, 792, 14789, 18415, 3719, 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, 15592, 310, 1803, 1114, 12, 6385, 1285, 408, 4666, 7653, 1811, 16, 1285, 408, 18415, 25256, 15329, 202, 202, 430, 12, 5, 12, 25256, 1336, 792, 14789, 18415, 3719, 95, 1082, 202,...
errorHtml = CmsStringSubstitution.substitute(errorHtml, "${bt_details}", messages.key("button.detail")); exception = CmsStringSubstitution.substitute(exception, "\\", "\\\\"); exception = CmsStringSubstitution.substitute(exception, "\"", "\\\""); exception = CmsStringSubstitution.substitute(exception, "\r\n", "\\n"); exception = CmsStringSubstitution.substitute(exception, "\n", "\\n");
errorHtml = CmsStringSubstitution.substitute(errorHtml, "${bt_details}", messages.key("button.detail")); exception = CmsStringSubstitution.escapeJavaScript(exception);
private String createErrorBox(Throwable t, HttpServletRequest request, CmsObject cms) { // load the property file that contains the html fragments for the dialog Properties htmlProps = new Properties(); try { htmlProps.load(getClass().getClassLoader().getResourceAsStream(C_FILE_HTML_MESSAGES)); } catch (Throwable thr) { if (getLog(this).isErrorEnabled()) { getLog(this).error("Could not load " + C_FILE_HTML_MESSAGES, thr); } } // get localized message bundle CmsMessages messages = new CmsMessages(CmsWorkplaceMessages.C_BUNDLE_NAME, cms.getRequestContext().getLocale()); // try to get the exception root cause Throwable cause = CmsFlexController.getThrowable(request); if (cause == null) { cause = t; } String errorHtml; // construct the error page errorHtml = htmlProps.getProperty("C_ERROR_DIALOG_START") + htmlProps.getProperty("C_STYLES") + htmlProps.getProperty("C_ERROR_DIALOG_END"); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${title}", messages.key("error.system.message")); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${encoding}", getSystemInfo().getDefaultEncoding()); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${warnimageuri}", CmsWorkplace.getSkinUri() + "explorer/error.gif"); if (cause.getLocalizedMessage() != null) { errorHtml = CmsStringSubstitution.substitute(errorHtml, "${message}", "<p><b>" + CmsStringSubstitution.substitute(cause.getLocalizedMessage(), "\n", "\n<br>") + "</b></p>"); } else { errorHtml = CmsStringSubstitution.substitute(errorHtml, "${message}", "<p><b>" + CmsStringSubstitution.substitute(cause.toString(), "\n", "\n<br>") + "</b></p>"); } errorHtml = CmsStringSubstitution.substitute(errorHtml, "${resource_key}", messages.key("error.system.resource")); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${version_key}", messages.key("error.system.version")); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${context_key}", messages.key("error.system.context")); String errorUri = CmsFlexController.getThrowableResourceUri(request); if (errorUri == null) { errorUri = cms.getRequestContext().getUri(); } errorHtml = CmsStringSubstitution.substitute(errorHtml, "${resource}", errorUri); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${version}", getSystemInfo().getVersionName()); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${context}", getSystemInfo().getOpenCmsContext()); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${bt_close}", messages.key("button.close")); String exception = CmsException.getStackTraceAsString(cause); String details = ""; if (exception == null || "".equals(exception.trim())) { // no stack trace available, do not show "details" button errorHtml = CmsStringSubstitution.substitute(errorHtml, "${button_details}", ""); } else { // stack trace available, show the "details" button errorHtml = CmsStringSubstitution.substitute(errorHtml, "${button_details}", htmlProps.getProperty("C_BUTTON_DETAILS")); errorHtml = CmsStringSubstitution.substitute(errorHtml, "${bt_details}", messages.key("button.detail")); exception = CmsStringSubstitution.substitute(exception, "\\", "\\\\"); exception = CmsStringSubstitution.substitute(exception, "\"", "\\\""); exception = CmsStringSubstitution.substitute(exception, "\r\n", "\\n"); exception = CmsStringSubstitution.substitute(exception, "\n", "\\n"); exception = CmsStringSubstitution.substitute(exception, ">", "&gt;"); exception = CmsStringSubstitution.substitute(exception, "<", "&lt;"); details = "<html><body style='background-color: Window;'><pre>" + exception + "</pre></body></html>"; } errorHtml = CmsStringSubstitution.substitute(errorHtml, "${details}", details); return errorHtml; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/468e0d1ebd60dbfa1156a5ddf0d32743003e6e48/OpenCmsCore.java/buggy/src/org/opencms/main/OpenCmsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 752, 668, 3514, 12, 15155, 268, 16, 9984, 590, 16, 14371, 6166, 13, 288, 3639, 368, 1262, 326, 1272, 585, 716, 1914, 326, 1729, 14656, 364, 326, 6176, 3639, 6183, 1729, 5047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 752, 668, 3514, 12, 15155, 268, 16, 9984, 590, 16, 14371, 6166, 13, 288, 3639, 368, 1262, 326, 1272, 585, 716, 1914, 326, 1729, 14656, 364, 326, 6176, 3639, 6183, 1729, 5047, ...
if ( element instanceof CModuleProperties.Property ) { CModuleProperties.Property property = (CModuleProperties.Property)element; if ( CModuleProperties.TYPE.equals( property.getKey() ) ) {
if ( element instanceof ModuleProperties.Property ) { ModuleProperties.Property property = (ModuleProperties.Property)element; if ( ModuleProperties.TYPE.equals( property.getKey() ) ) {
public String getColumnText( Object element, int columnIndex ) { if ( element instanceof CModuleProperties.Property ) { CModuleProperties.Property property = (CModuleProperties.Property)element; if ( CModuleProperties.TYPE.equals( property.getKey() ) ) { if ( columnIndex == 0 ) { return PropertyPageMessages.getString( "ModulePropertyPage.0" ); //$NON-NLS-1$ } Integer type = (Integer)property.getValue(); if ( type.intValue() == ICModule.EXECUTABLE ) { return PropertyPageMessages.getString( "ModulePropertyPage.1" ); //$NON-NLS-1$ } if ( type.intValue() == ICModule.SHARED_LIBRARY ) { return PropertyPageMessages.getString( "ModulePropertyPage.2" ); //$NON-NLS-1$ } if ( type.intValue() == ICModule.CORE ) { return PropertyPageMessages.getString( "ModulePropertyPage.3" ); //$NON-NLS-1$ } } else if ( CModuleProperties.CPU.equals( property.getKey() ) ) { if ( columnIndex == 0 ) { return PropertyPageMessages.getString( "ModulePropertyPage.4" ); //$NON-NLS-1$ } String cpu = (String)property.getValue(); return ( cpu != null ) ? cpu : PropertyPageMessages.getString( "ModulePropertyPage.5" ); //$NON-NLS-1$ } else if ( CModuleProperties.BASE_ADDRESS.equals( property.getKey() ) ) { if ( columnIndex == 0 ) { return PropertyPageMessages.getString( "ModulePropertyPage.6" ); //$NON-NLS-1$ } IAddress address = (IAddress)property.getValue(); return ( address != null && !address.isZero() ) ? address.toHexAddressString() : PropertyPageMessages.getString( "ModulePropertyPage.7" ); //$NON-NLS-1$ } else if ( CModuleProperties.SIZE.equals( property.getKey() ) ) { if ( columnIndex == 0 ) { return PropertyPageMessages.getString( "ModulePropertyPage.8" ); //$NON-NLS-1$ } Long size = (Long)property.getValue(); return ( size != null && size.longValue() > 0 ) ? size.toString() : PropertyPageMessages.getString( "ModulePropertyPage.9" ); //$NON-NLS-1$ } else if ( CModuleProperties.SYMBOLS_LOADED.equals( property.getKey() ) ) { if ( columnIndex == 0 ) { return PropertyPageMessages.getString( "ModulePropertyPage.10" ); //$NON-NLS-1$ } Boolean loaded = (Boolean)property.getValue(); return ( loaded != null && loaded.booleanValue() ) ? PropertyPageMessages.getString( "ModulePropertyPage.11" ) : PropertyPageMessages.getString( "ModulePropertyPage.12" ); //$NON-NLS-1$ //$NON-NLS-2$ } else if ( CModuleProperties.SYMBOLS_FILE.equals( property.getKey() ) ) { if ( columnIndex == 0 ) { return PropertyPageMessages.getString( "ModulePropertyPage.13" ); //$NON-NLS-1$ } IPath path = (IPath)property.getValue(); return ( path != null ) ? path.toOSString() : PropertyPageMessages.getString( "ModulePropertyPage.14" ); //$NON-NLS-1$ } } return null; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ff7b845bec88152f055fbdd4da6674a4b6bccc01/ModulePropertyPage.java/buggy/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/ModulePropertyPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 514, 6716, 1528, 12, 1033, 930, 16, 509, 14882, 262, 288, 1082, 202, 430, 261, 930, 1276, 385, 3120, 2297, 18, 1396, 262, 288, 9506, 202, 39, 3120, 2297, 18, 1396, 1272, 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, 3196, 202, 482, 514, 6716, 1528, 12, 1033, 930, 16, 509, 14882, 262, 288, 1082, 202, 430, 261, 930, 1276, 385, 3120, 2297, 18, 1396, 262, 288, 9506, 202, 39, 3120, 2297, 18, 1396, 1272, 273,...
throw nvae;
case EOL: case ID: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20: case 21: case 22: case 23: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: return s86; default: NoViableAltException nvae = new NoViableAltException("", 4, 86, input); throw nvae; }
public DFA.State transition(IntStream input) throws RecognitionException { int LA42_0 = input.LA(1); if ( LA42_0==ID ) {return s1;} NoViableAltException nvae = new NoViableAltException("", 42, 0, input); throw nvae; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 9452, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 9452, 67, 20, 631, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 509, 2928, 9452, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 7734, 309, 261, 2928, 9452, 67, 20, 631, 7...
DOMGenerator domGenerator = new DOMGenerator(extractFromXLS(new ByteArrayInputStream(fileContent)));
final java.io.ByteArrayInputStream bais = new ByteArrayInputStream( fileContent ); final org.dom4j.Document d = extractFromXLS( bais ); final DOMGenerator domGenerator = new DOMGenerator ( d, "xls generator output", DOMGenerator.ZeroValidity , DOMGenerator.DefaultContext );
public ProcessorOutput createOutput(String name) { ProcessorOutput output = new ProcessorImpl.ProcessorOutputImpl(getClass(), name) { public void readImpl(PipelineContext context, ContentHandler contentHandler) { try { // Read binary content of uploaded Excel file final byte[] fileContent; { final String NO_FILE = "No file was uploaded"; Document requestDocument = readInputAsDOM4J(context, INPUT_REQUEST); PooledXPathExpression expr = XPathCache.getXPathExpression(context, new DocumentWrapper(requestDocument, null), "/request/parameters/parameter[1]/value"); Element valueElement = (Element) expr.evaluateSingle(); if (valueElement == null) throw new OXFException(NO_FILE); String type = valueElement.attributeValue(XMLConstants.XSI_TYPE_QNAME); if (type == null) throw new OXFException(NO_FILE); if (type.endsWith("anyURI")) { // Read file from disk String url = valueElement.getStringValue(); InputStream urlInputStream = new URL(url).openStream(); byte[] buffer = new byte[1024]; ByteArrayOutputStream fileByteArray = new ByteArrayOutputStream(); int size; while ((size = urlInputStream.read(buffer)) != -1) fileByteArray.write(buffer, 0, size); urlInputStream.close(); fileContent = fileByteArray.toByteArray(); } else { // Decode base64 fileContent = Base64.decode(valueElement.getStringValue()); } } // Generate XML from Excel file DOMGenerator domGenerator = new DOMGenerator(extractFromXLS(new ByteArrayInputStream(fileContent))); domGenerator.createOutput(OUTPUT_DATA).read(context, contentHandler); } catch (XPathException xpe) { throw new OXFException(xpe); } catch (IOException e) { throw new OXFException(e); } } private Document extractFromXLS(InputStream inputStream) throws IOException { // Create workbook HSSFWorkbook workbook = new HSSFWorkbook(new POIFSFileSystem(inputStream)); // Create document DocumentFactory factory = DocumentFactory.getInstance(); final Document resultDocument = factory.createDocument(); resultDocument.setRootElement(factory.createElement("workbook")); // Add elements for each sheet for (int i = 0; i < workbook.getNumberOfSheets(); i++) { HSSFSheet sheet = workbook.getSheetAt(i); final Element element = factory.createElement("sheet"); resultDocument.getRootElement().add(element); // Go though each cell XLSUtils.walk(workbook.createDataFormat(), sheet, new XLSUtils.Handler() { public void cell(HSSFCell cell, String sourceXPath, String targetXPath) { if (targetXPath != null) { int cellType = cell.getCellType(); String value = null; switch (cellType) { case HSSFCell.CELL_TYPE_STRING: case HSSFCell.CELL_TYPE_BLANK: value = cell.getStringCellValue(); break; case HSSFCell.CELL_TYPE_NUMERIC: double doubleValue = cell.getNumericCellValue(); if (((double) ((int) doubleValue)) == doubleValue) { // This is an integer value = Integer.toString((int) doubleValue); } else { // This is a floating point number value = XMLUtils.removeScientificNotation(doubleValue); } break; } if (value == null) throw new OXFException("Unkown cell type " + cellType + " for XPath expression '" + targetXPath + "'"); addToElement(element, targetXPath, value); } } }); } return resultDocument; } private void addToElement(Element element, String xpath, String value) { DocumentFactory factory = DocumentFactory.getInstance(); StringTokenizer elements = new StringTokenizer(xpath, "/"); while (elements.hasMoreTokens()) { String name = elements.nextToken(); if (elements.hasMoreTokens()) { // Not the last: try to find sub element, otherwise create Element child = element.element(name); if (child == null) { child = factory.createElement(name); element.add(child); } element = child; } else { // Last: add element, set content to value Element child = factory.createElement(name); child.add(factory.createText(value)); element.add(child); } } } }; addOutput(name, output); return output; }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/558be30a09b76fdcd48f89d08b1308f894e34fcb/XLSGenerator.java/clean/src/java/org/orbeon/oxf/processor/generator/XLSGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 5164, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 855, 2828, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15476, 1447, 752, 1447, 12, 780, 508, 13, 288, 3639, 15476, 1447, 876, 273, 394, 15476, 2828, 18, 5164, 1447, 2828, 12, 588, 797, 9334, 508, 13, 288, 5411, 1071, 918, 855, 2828, 1...
} else if (DragSourceMotionListener.class.isAssignableFrom(listenerType)) {
} else if (DragSourceMotionListener.class.isAssignableFrom( listenerType)) {
public EventListener[] getListeners(Class listenerType) { if (DragSourceListener.class.isAssignableFrom(listenerType)) { return getDragSourceListeners(); } else if (DragSourceMotionListener.class.isAssignableFrom(listenerType)) { return getDragSourceMotionListeners(); } return new EventListener[0]; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9b00f971bab2256d913aec1b141462a929f6e182/DragSource.java/clean/modules/awt/src/main/java/common/java/awt/dnd/DragSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22090, 8526, 336, 5583, 12, 797, 2991, 559, 13, 288, 3639, 309, 261, 11728, 1830, 2223, 18, 1106, 18, 291, 7961, 1265, 12, 12757, 559, 3719, 288, 5411, 327, 2343, 2458, 1830, 5583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22090, 8526, 336, 5583, 12, 797, 2991, 559, 13, 288, 3639, 309, 261, 11728, 1830, 2223, 18, 1106, 18, 291, 7961, 1265, 12, 12757, 559, 3719, 288, 5411, 327, 2343, 2458, 1830, 5583, ...
public void setModifyTime(Date modifytime){ setMTime(modifytime.getTime()); }
public void setModifyTime(Date modifytime){ setmTime(modifytime.getTime()); }
public void setModifyTime(Date modifytime){ setMTime(modifytime.getTime()); }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/50bbe437e3b16d7a1918bae2fa2d4269507e0f68/HardTokenDataBean.java/clean/src/java/se/anatom/ejbca/hardtoken/HardTokenDataBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 11047, 950, 12, 1626, 5612, 957, 15329, 15430, 950, 12, 17042, 957, 18, 588, 950, 10663, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 11047, 950, 12, 1626, 5612, 957, 15329, 15430, 950, 12, 17042, 957, 18, 588, 950, 10663, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
BugzillaReportAttribute attr = new BugzillaReportAttribute(tag);
RepositoryTaskAttribute attr = new RepositoryTaskAttribute(tag);
public void endElement(String uri, String localName, String qName) throws SAXException { BugzillaReportElement tag = BugzillaReportElement.UNKNOWN; try { tag = BugzillaReportElement.valueOf(localName.trim().toUpperCase()); } catch (RuntimeException e) { if (e instanceof IllegalArgumentException) { // ignore unrecognized tags return; } throw e; } switch (tag) { case BUG_ID: { try { if (report.getId() != Integer.parseInt(characters.toString())) { errorMessage = "Requested report number does not match returned report number."; } } catch (NumberFormatException e) { errorMessage = "Bug id from server did not match requested id."; } AbstractRepositoryReportAttribute attr = report.getAttribute(tag); if (attr == null) { attr = new BugzillaReportAttribute(tag); report.addAttribute(tag, attr); } attr.setValue(characters.toString()); break; } // Comment attributes case WHO: case BUG_WHEN: if (comment != null) { BugzillaReportAttribute attr = new BugzillaReportAttribute(tag); attr.setValue(characters.toString()); // System.err.println(">>> "+comment.getNumber()+" // "+characters.toString()); comment.addAttribute(tag, attr); } break; case THETEXT: if (comment != null) { BugzillaReportAttribute attr = new BugzillaReportAttribute(tag); attr.setValue(characters.toString()); // System.err.println(">>> "+comment.getNumber()+" // "+characters.toString()); comment.addAttribute(tag, attr); // Check for attachment parseAttachment(comment, characters.toString()); } break; case LONG_DESC: if (comment != null) { report.addComment(comment); } break; // Attachment attributes case ATTACHID: case DATE: case DESC: case FILENAME: case CTYPE: case TYPE: if (attachment != null) { BugzillaReportAttribute attr = new BugzillaReportAttribute(tag); attr.setValue(characters.toString()); attachment.addAttribute(tag, attr); } break; case DATA: // TODO: Need to figure out under what circumstanceswhen attachments // are inline and // what to do with them. break; case ATTACHMENT: if (attachment != null) { report.addAttachment(attachment); } break; // IGNORED ELEMENTS case REPORTER_ACCESSIBLE: case CLASSIFICATION_ID: case CLASSIFICATION: case CCLIST_ACCESSIBLE: case EVERCONFIRMED: case BUGZILLA: break; case BUG: // Reached end of bug. Need to set LONGDESCLENGTH to number of // comments AbstractRepositoryReportAttribute numCommentsAttribute = report .getAttribute(BugzillaReportElement.LONGDESCLENGTH); if (numCommentsAttribute == null) { numCommentsAttribute = new BugzillaReportAttribute(BugzillaReportElement.LONGDESCLENGTH); numCommentsAttribute.setValue("" + report.getComments().size()); report.addAttribute(BugzillaReportElement.LONGDESCLENGTH, numCommentsAttribute); } else { numCommentsAttribute.setValue("" + report.getComments().size()); } // Set the creator name on all attachments for (ReportAttachment attachment: report.getAttachments()) { Comment comment = (Comment)attachIdToComment.get(attachment.getId()); if(comment != null) { attachment.setCreator(comment.getAuthor()); } } break; // All others added as report attribute default: AbstractRepositoryReportAttribute attribute = report.getAttribute(tag); if (attribute == null) { // System.err.println(">>> Undeclared attribute added: " + // tag.toString()+" value: "+characters.toString()); attribute = new BugzillaReportAttribute(tag); attribute.setValue(characters.toString()); report.addAttribute(tag, attribute); } else { // System.err.println("Attr: " + attribute.getName() + " = " + // characters.toString()); attribute.addValue(characters.toString()); } break; } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8086a1f9e6030acf60f1a5dd58336bc4f090bed9/SaxBugReportContentHandler.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxBugReportContentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 1216, 14366, 288, 202, 202, 19865, 15990, 4820, 1046, 1047, 273, 16907, 15990, 4820, 1046, 18, 14737, 31, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 14840, 12, 780, 2003, 16, 514, 11927, 16, 514, 22914, 13, 1216, 14366, 288, 202, 202, 19865, 15990, 4820, 1046, 1047, 273, 16907, 15990, 4820, 1046, 18, 14737, 31, 202, 202...
return settingsStore;
return fOptionBlock.getPreferenceStore();
public IPreferenceStore getPreferenceStore() { return settingsStore; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/18b49394c46cbbecf041078a70e83e4975d004a7/BuildPropertyPage.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 9624, 2257, 336, 9624, 2257, 1435, 202, 95, 202, 202, 2463, 1947, 2257, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 9624, 2257, 336, 9624, 2257, 1435, 202, 95, 202, 202, 2463, 1947, 2257, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if(prefix.length() > 155) throw new IOException("prefix too large"); for(i = 0; i < prefix.length(); i++) { header[pos + i] = (byte) prefix.charAt(i); }
byte[] prefixBytes = prefix.getBytes("UTF8"); if (prefixBytes.length > 155) throw new IOException("prefix too large"); System.arraycopy(prefixBytes, 0, header, pos, prefixBytes.length);
public void putNextEntry(TarEntry e) throws IOException { byte[] header = new byte[512]; String filename = e.getName(); String prefix = null; int pos, i; /* Split filename into name and prefix if necessary. */ if(filename.length() > 99 ) { int seppos = filename.lastIndexOf('/'); if(seppos == -1) throw new IOException("filename too long"); //$NON-NLS-1$ prefix = filename.substring(0, seppos); filename = filename.substring(seppos + 1); if(filename.length() > 99) throw new IOException("filename too long"); //$NON-NLS-1$ } /* Filename. */ pos = 0; for(i = 0; i < filename.length(); i++) { header[pos + i] = (byte) filename.charAt(i); } pos += 100; /* File mode. */ StringBuffer mode = new StringBuffer(Long.toOctalString(e.getMode())); while(mode.length() < 7) mode.insert(0,'0'); for(i = 0; i < 7; i++) { header[pos + i] = (byte) mode.charAt(i); } pos += 8; /* UID. */ header[pos] = '0'; pos += 8; /* GID. */ header[pos] = '0'; pos += 8; /* Length of the file. */ String length = Long.toOctalString(e.getSize()); for(i = 0; i < length.length(); i++) { header[pos + i] = (byte) length.charAt(i); } pos += 12; /* mtime */ String mtime = Long.toOctalString(e.getTime()); for(i = 0; i < mtime.length(); i++) { header[pos + i] = (byte) mtime.charAt(i); } pos += 12; /* "Blank" out the checksum. */ for(i = 0; i < 8; i++) { header[pos + i] = ' '; } pos += 8; /* Link flag. */ header[pos] = (byte) e.getFileType(); pos += 1; /* Link destination. */ pos += 100; /* Add ustar header. */ String ustar = "ustar 00"; //$NON-NLS-1$ for(i = 0; i < ustar.length(); i++) { header[pos + i] = (byte) ustar.charAt(i); } header[pos + 5] = 0; pos += 8; /* Username. */ String uname = "nobody"; //$NON-NLS-1$ for(i = 0; i < uname.length(); i++) { header[pos + i] = (byte) uname.charAt(i); } pos += 32; /* Group name. */ String gname = "nobody"; //$NON-NLS-1$ for(i = 0; i < gname.length(); i++) { header[pos + i] = (byte) gname.charAt(i); } pos += 32; /* Device major. */ pos += 8; /* Device minor. */ pos += 8; /* File prefix. */ if(prefix != null) { if(prefix.length() > 155) throw new IOException("prefix too large"); //$NON-NLS-1$ for(i = 0; i < prefix.length(); i++) { header[pos + i] = (byte) prefix.charAt(i); } } long sum = headerChecksum(header); pos = 100 + 8 + 8 + 8 + 12 + 12; String sumval = Long.toOctalString(sum); for(i = 0; i < sumval.length(); i++) { header[pos + i] = (byte) sumval.charAt(i); } cursize = 512; write(header, 0, 512); cursize = e.getSize(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ef051a6d7546821c2503b6b484b2a4f9ce4dea67/TarOutputStream.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1378, 2134, 1622, 12, 20464, 1622, 425, 13, 1216, 1860, 288, 202, 202, 7229, 8526, 1446, 273, 394, 1160, 63, 13757, 15533, 202, 202, 780, 1544, 273, 425, 18, 17994, 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, 918, 1378, 2134, 1622, 12, 20464, 1622, 425, 13, 1216, 1860, 288, 202, 202, 7229, 8526, 1446, 273, 394, 1160, 63, 13757, 15533, 202, 202, 780, 1544, 273, 425, 18, 17994, 5621, ...
shortName = entryname.substring(lastSlash + 1);
shortName = entryName.substring(lastSlash + 1);
protected ZipResource(File zipfile, ZipEntry zipentry, ZipRepository repository) { this.zipentry = zipentry; this.zipfile = zipfile; this.repository = repository; String entryname = zipentry.getName(); int lastSlash = entryname.lastIndexOf('/'); shortName = entryname.substring(lastSlash + 1); name = new StringBuffer(repository.getName()).append('/') .append(shortName).toString(); // base name is short name with extension cut off int lastDot = shortName.lastIndexOf("."); baseName = (lastDot == -1) ? shortName : shortName.substring(0, lastDot); }
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/47e6955aa209020cd6c0d8e3df7eb358cb3e9a32/ZipResource.java/clean/src/helma/framework/repository/ZipResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 8603, 1420, 12, 812, 18823, 16, 23652, 3144, 4099, 16, 8603, 3305, 3352, 13, 288, 3639, 333, 18, 4450, 4099, 273, 3144, 4099, 31, 3639, 333, 18, 4450, 768, 273, 18823, 31, 3639, 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, 8603, 1420, 12, 812, 18823, 16, 23652, 3144, 4099, 16, 8603, 3305, 3352, 13, 288, 3639, 333, 18, 4450, 4099, 273, 3144, 4099, 31, 3639, 333, 18, 4450, 768, 273, 18823, 31, 3639, 3...
public synchronized int status() {
public synchronized int status() {
public synchronized int status() { return getStatus(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/PixelGrabber.java/clean/core/src/classpath/java/java/awt/image/PixelGrabber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 509, 1267, 1435, 288, 202, 202, 2463, 5870, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 509, 1267, 1435, 288, 202, 202, 2463, 5870, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (_log.shouldLog(Log.DEBUG)) _log.debug("EOF and not enough bytes to decrypt [size = " + _encryptedBuf.size() + " totalCumulative: " + _cumulativeRead + "/"+_cumulativePrepared +"]!");
private void refill(int max) throws IOException { if (!_eofFound) { byte buf[] = new byte[max]; int read = in.read(buf); if (read == -1) { _eofFound = true; } else if (read > 0) { //_log.debug("Read from the source stream " + read + " bytes"); _cumulativeRead += read; _encryptedBuf.write(buf, 0, read); } } if (false) return; // true to keep the data for decrypt/display on close if (_encryptedBuf.size() > 0) { if (_encryptedBuf.size() >= DECRYPT_SIZE) { //_log.debug("We have " + _encryptedBuf.size() + " available to decrypt... doing so"); decrypt(); //if (_encryptedBuf.size() > 0) // _log.debug("Bytes left in the encrypted buffer after decrypt: " + _encryptedBuf.size()); } else { if (_eofFound) { //_log.debug("EOF and not enough bytes to decrypt [size = " + _encryptedBuf.size() + " totalCumulative: " + _cumulativeRead + "/"+_cumulativePrepared +"]!"); } else { //_log.debug("Not enough bytes to decrypt [size = " + _encryptedBuf.size() + " totalCumulative: " + _cumulativeRead + "/"+_cumulativePrepared +"]"); } } } }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/badfb9088e4c4cee6ac4e277c0b99f4b03446fb8/AESInputStream.java/clean/core/java/src/net/i2p/crypto/AESInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 389, 1330, 18, 4148, 2932, 12706, 471, 486, 7304, 1731, 358, 8420, 306, 1467, 273, 315, 397, 389, 18702, 5503, 18, 1467, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 389, 1330, 18, 4148, 2932, 12706, 471, 486, 7304, 1731, 358, 8420, 306, 1467, 273, 315, 397, 389, 18702, 5503, 18, 1467, 1435, ...
int originalSize = elements.size();
int originalSize = actualElements.size();
public boolean removeAll( Collection c ) { int originalSize = elements.size(); Iterator it = c.iterator(); while ( it.hasNext() ) remove( it.next() ); return originalSize != elements.size(); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/9070eed55ede6346617dc6514eff6c36d1586c7c/LockableListModel.java/buggy/src/net/java/dev/spellcast/utilities/LockableListModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 12787, 12, 2200, 276, 262, 202, 95, 202, 202, 474, 2282, 1225, 273, 2186, 18, 1467, 5621, 202, 202, 3198, 518, 273, 276, 18, 9838, 5621, 202, 202, 17523, 261, 518, 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, 1250, 12787, 12, 2200, 276, 262, 202, 95, 202, 202, 474, 2282, 1225, 273, 2186, 18, 1467, 5621, 202, 202, 3198, 518, 273, 276, 18, 9838, 5621, 202, 202, 17523, 261, 518, 18, ...
public void setCoords(float x1, float y1) { if (!hasEndpoint()) return; float dx = x1-this.x1; float dy = y1-this.y1; this.x1 = x1; this.y1 = y1; // ? why update nodes. What calls this method. if (hasNodes) { for (int i=0; i<numNodes; i++) { nodes[0][i] = nodes[0][i]+dx; nodes[1][i] = nodes[1][i]+dy; } } computeGridParameters(); }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/41c1602bc7463842ccdfb4279c7ff84620d2dbe7/OverlayObject.java/buggy/loci/visbio/overlays/OverlayObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 542, 13089, 12, 5659, 92, 21, 16, 5659, 93, 21, 15329, 430, 12, 5, 5332, 3293, 10756, 2463, 31, 5659, 13437, 33, 92, 21, 17, 2211, 18, 92, 21, 31, 5659, 15680, 33, 93, 21, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 13089, 12, 5659, 92, 21, 16, 5659, 93, 21, 15329, 430, 12, 5, 5332, 3293, 10756, 2463, 31, 5659, 13437, 33, 92, 21, 17, 2211, 18, 92, 21, 31, 5659, 15680, 33, 93, 21, 17...
if (game.getPhase() != Game.PHASE_LOUNGE && game.getEntitiesOwnedBy(getPlayer(connId)) < 1) { getPlayer(connId).setObserver(true);
Player player = getPlayer( connId ); if ( game.getPhase() != Game.PHASE_LOUNGE && null != player && game.getEntitiesOwnedBy(player) < 1) { player.setObserver(true);
private void receivePlayerName(Packet packet, int connId) { final Connection conn = getPendingConnection(connId); String name = (String)packet.getObject(0); boolean returning = false; // this had better be from a pending connection if (conn == null) { System.out.println("server: got a client name from a non-pending connection"); return; } // check if they're connecting with the same name as a ghost player for (Enumeration i = game.getPlayers(); i.hasMoreElements();) { Player player = (Player)i.nextElement(); if (player.isGhost() && player.getName().equals(name)) { returning = true; player.setGhost(false); // switch id connId = player.getId(); conn.setId(connId); } } // right, switch the connection into the "active" bin connectionsPending.removeElement(conn); connections.addElement(conn); connectionIds.put(new Integer(conn.getId()), conn); // add and validate the player info if (!returning) { game.addPlayer(connId, new Player(connId, name)); validatePlayerInfo(connId); } // if it is not the lounge phase, this player becomes an observer if (game.getPhase() != Game.PHASE_LOUNGE && game.getEntitiesOwnedBy(getPlayer(connId)) < 1) { getPlayer(connId).setObserver(true); } // send the player the motd sendServerChat(connId, motd); // send info that the player has connected send(createPlayerConnectPacket(connId)); // tell them their local playerId send(connId, new Packet(Packet.COMMAND_LOCAL_PN, new Integer(connId))); // send current game info sendCurrentInfo(connId); try { InetAddress[] addresses = InetAddress.getAllByName(InetAddress.getLocalHost().getHostName()); for (int i = 0; i < addresses.length; i++) { sendServerChat(connId, "Machine IP is " + addresses[i].getHostAddress()); } } catch (UnknownHostException e) { // oh well. } System.out.println("s: player " + connId + " (" + getPlayer(connId).getName() + ") connected from " + getClient(connId).getSocket().getInetAddress()); sendServerChat(getPlayer(connId).getName() + " connected from " + getClient(connId).getSocket().getInetAddress()); // there is more than one player, uncheck the friendly fire option if (game.getNoOfPlayers() > 1 && game.getOptions().booleanOption("friendly_fire")) { game.getOptions().getOption("friendly_fire").setValue(false); send(createGameSettingsPacket()); } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/61d2f0a273d936b1d7448d4a9c14e05cb5523612/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6798, 12148, 461, 12, 6667, 4414, 16, 509, 1487, 548, 13, 288, 3639, 727, 4050, 1487, 273, 1689, 2846, 1952, 12, 4646, 548, 1769, 3639, 514, 508, 273, 261, 780, 13, 11482, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6798, 12148, 461, 12, 6667, 4414, 16, 509, 1487, 548, 13, 288, 3639, 727, 4050, 1487, 273, 1689, 2846, 1952, 12, 4646, 548, 1769, 3639, 514, 508, 273, 261, 780, 13, 11482, 18...
Account acct3 = p.getAdminAccountByName("zimbra");
Account acct3 = p.get(AccountBy.ADMIN_NAME, "zimbra");
public static void main(String args[]) throws ServiceException, IOException { try { Zimbra.toolSetup(); SoapProvisioning p = new SoapProvisioning(); p.soapSetURI("https://localhost:7071/service/admin/soap"); p.soapZimbraAdminAuthenticate(); HashMap<String,Object> attrs = new HashMap<String,Object>(); attrs.put(Provisioning.A_displayName, "DISPLAY THIS"); Account acct = p.createAccount("userkewl8@macintel.local", "test123", attrs); System.out.println(acct); attrs = new HashMap<String,Object>(); attrs.put(Provisioning.A_displayName, "DISPLAY THAT"); p.modifyAttrs(acct, attrs); /* Account acct2 = p.getAccountByName("userkewl8@macintel.local"); System.out.println(acct2); p.changePassword(acct2, "test123", "test1235"); */ Account acct3 = p.getAdminAccountByName("zimbra"); System.out.println(acct3); } catch (SoapFaultException e) { System.out.println(e.getCode()); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0ee2b6e1f68cd07e42780d9098bdde2e9d6d3bd7/SoapProvisioning.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/soap/SoapProvisioning.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 833, 63, 5717, 1216, 16489, 16, 1860, 288, 3639, 775, 288, 5411, 2285, 381, 15397, 18, 6738, 7365, 5621, 5411, 21789, 17485, 293, 273, 394, 21789, 17485, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 833, 63, 5717, 1216, 16489, 16, 1860, 288, 3639, 775, 288, 5411, 2285, 381, 15397, 18, 6738, 7365, 5621, 5411, 21789, 17485, 293, 273, 394, 21789, 17485, 56...
public WebQuery(String description, String queryUrl, String taskPrefix, String regexp, TaskList taskList, String repositoryUrl) {
public WebQuery(TaskList taskList, String description, String queryUrl, String queryPattern, String taskPrefix, String repositoryUrl, Map<String, String> params) {
public WebQuery(String description, String queryUrl, String taskPrefix, String regexp, TaskList taskList, String repositoryUrl) { super(description, taskList); this.taskPrefix = taskPrefix; this.regexp = regexp; setUrl(queryUrl); setRepositoryUrl(repositoryUrl); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/94df3000df78c7d427d33f976a187a5131fc57e6/WebQuery.java/buggy/sandbox/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/web/WebQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2999, 1138, 12, 780, 2477, 16, 514, 843, 1489, 16, 514, 1562, 2244, 16, 514, 7195, 16, 1875, 202, 2174, 682, 1562, 682, 16, 514, 3352, 1489, 13, 288, 202, 202, 9565, 12, 338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2999, 1138, 12, 780, 2477, 16, 514, 843, 1489, 16, 514, 1562, 2244, 16, 514, 7195, 16, 1875, 202, 2174, 682, 1562, 682, 16, 514, 3352, 1489, 13, 288, 202, 202, 9565, 12, 338...
throw new Error("not implemented");
AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent comp = ac.getAccessibleComponent(); if (comp != null) comp.setEnabled(b);
public void setEnabled(boolean b) throws NotImplementedException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/eef19a6fbc70451186d53b7669077748b8b7c136/JTableHeader.java/clean/core/src/classpath/javax/javax/swing/table/JTableHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 12888, 12, 6494, 324, 13, 3639, 1216, 10051, 503, 1377, 288, 3639, 5016, 1523, 1042, 1721, 273, 336, 10451, 1494, 1864, 6747, 5621, 5016, 1523, 1841, 1161, 273, 1721, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 12888, 12, 6494, 324, 13, 3639, 1216, 10051, 503, 1377, 288, 3639, 5016, 1523, 1042, 1721, 273, 336, 10451, 1494, 1864, 6747, 5621, 5016, 1523, 1841, 1161, 273, 1721, 18, 588, ...
boolean wasBreakpoint = false; if (breakpoints != null && line < breakpoints.length) { wasBreakpoint = (breakpoints[line] == BREAK_FLAG); breakpoints[line] = 0;
boolean wasBreakpoint = false; if (breakpoints != null && line < breakpoints.length) { wasBreakpoint = (breakpoints[line] == BREAK_FLAG); breakpoints[line] = 0; } return wasBreakpoint;
synchronized boolean removeBreakpoint(int line) { boolean wasBreakpoint = false; if (breakpoints != null && line < breakpoints.length) { wasBreakpoint = (breakpoints[line] == BREAK_FLAG); breakpoints[line] = 0; } return wasBreakpoint; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/677ac1cd7685aceb4fdd606aa3e6c9cea9f6d6cb/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1250, 1206, 20552, 12, 474, 980, 13, 288, 3639, 1250, 1703, 20552, 273, 629, 31, 3639, 309, 261, 8820, 4139, 480, 446, 597, 980, 411, 23416, 18, 2469, 13, 288, 5411, 1703, 20552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 1250, 1206, 20552, 12, 474, 980, 13, 288, 3639, 1250, 1703, 20552, 273, 629, 31, 3639, 309, 261, 8820, 4139, 480, 446, 597, 980, 411, 23416, 18, 2469, 13, 288, 5411, 1703, 20552, ...
private void initMetadata() throws IOException {
private void initMetadata() throws FormatException, IOException {
private void initMetadata() throws IOException { in.seek(0); // start by reading the file header byte[] toRead = new byte[4]; in.read(toRead); long order = batoi(toRead); // byte ordering little = toRead[2] != 0xff || toRead[3] != 0xff; metadata.put("Byte Order", new Boolean(little)); in.skipBytes(4); in.read(toRead); long version = DataTools.bytesToLong(toRead, little); metadata.put("Version", new Long(version)); byte[] er = new byte[2]; in.read(er); short count = DataTools.bytesToShort(er, little); metadata.put("Count", new Short(count)); in.skipBytes(2); in.read(toRead); long offset = DataTools.bytesToLong(toRead, little); // skip to first tag in.seek(offset); // read in each tag and its data for (int i=0; i<count; i++) { in.read(er); short tag = DataTools.bytesToShort(er, little); in.skipBytes(2); in.read(toRead); offset = DataTools.bytesToLong(toRead, little); in.read(toRead); long fmt = DataTools.bytesToLong(toRead, little); metadata.put("Format", new Long(fmt)); in.read(toRead); long numBytes = DataTools.bytesToLong(toRead, little); metadata.put("NumBytes", new Long(numBytes)); if (tag == 67 || tag == 68) { byte[] b = new byte[1]; in.read(b); boolean isOpenlab2; if (b[0] == '0') isOpenlab2 = false; else isOpenlab2 = true; metadata.put("isOpenlab2", new Boolean(isOpenlab2)); in.skipBytes(2); in.read(er); short layerId = DataTools.bytesToShort(er, little); metadata.put("LayerID", new Short(layerId)); in.read(er); short layerType = DataTools.bytesToShort(er, little); metadata.put("LayerType", new Short(layerType)); in.read(er); short bitDepth = DataTools.bytesToShort(er, little); metadata.put("BitDepth", new Short(bitDepth)); in.read(er); short opacity = DataTools.bytesToShort(er, little); metadata.put("Opacity", new Short(opacity)); // not sure how many bytes to skip here in.skipBytes(10); in.read(toRead); long type = DataTools.bytesToLong(toRead, little); metadata.put("ImageType", new Long(type)); // not sure how many bytes to skip in.skipBytes(10); in.read(toRead); long timestamp = DataTools.bytesToLong(toRead, little); metadata.put("Timestamp", new Long(timestamp)); in.skipBytes(2); if (isOpenlab2 == true) { byte[] layerName = new byte[127]; in.read(layerName); metadata.put("LayerName", new String(layerName)); in.read(toRead); long timestampMS = DataTools.bytesToLong(toRead, little); metadata.put("Timestamp-MS", new Long(timestampMS)); in.skipBytes(1); byte[] notes = new byte[118]; in.read(notes); metadata.put("Notes", new String(notes)); } else in.skipBytes(123); } else if (tag == 69) { in.read(toRead); long platform = DataTools.bytesToLong(toRead, little); metadata.put("Platform", new Long(platform)); in.read(er); short units = DataTools.bytesToShort(er, little); metadata.put("Units", new Short(units)); in.read(er); short imageId = DataTools.bytesToShort(er, little); metadata.put("ID", new Short(imageId)); in.skipBytes(1); byte[] toRead2 = new byte[8]; double xOrigin = DataTools.readDouble(in, little); metadata.put("XOrigin", new Double(xOrigin)); double yOrigin = DataTools.readDouble(in, little); metadata.put("YOrigin", new Double(yOrigin)); double xScale = DataTools.readDouble(in, little); metadata.put("XScale", new Double(xScale)); double yScale = DataTools.readDouble(in, little); metadata.put("YScale", new Double(yScale)); in.skipBytes(1); byte[] other = new byte[31]; in.read(other); metadata.put("Other", new String(other)); } // Populate metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(); String type = "int8"; if (metadata.get("BitDepth") != null) { int bitDepth = ((Integer) metadata.get("BitDepth")).intValue(); if (bitDepth <= 8) type = "int8"; else if (bitDepth <= 16) type = "int16"; else type = "int32"; } store.setImage(null, (String) metadata.get("Timestamp"), null, null); // FIXME: There is a loss of precision here as we are down-casting from // double to float. store.setStageLabel(null, (Float) metadata.get("XOrigin"), (Float) metadata.get("YOrigin"), null, null); // FIXME: There is a loss of precision here as we are down-casting from // double to float. store.setDimensions((Float) metadata.get("XScale"), (Float) metadata.get("YScale"), null, null, null, null); in.seek(offset); // We need to poke at least one plane so that we can get "sizeX" and // "sizeY" set. to populate the pixels set. try { openImage(currentId, 0); } catch (FormatException e) { e.printStackTrace(); } store.setPixels(sizeX, sizeY, new Integer(numBlocks), new Integer(3), new Integer(1), type, new Boolean(!little), "XYCZT", null); } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/9505e643b52f7491e0055703a09512ad437442c0/OpenlabReader.java/clean/loci/formats/in/OpenlabReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 1435, 1216, 4077, 503, 16, 1860, 288, 565, 316, 18, 16508, 12, 20, 1769, 565, 368, 787, 635, 6453, 326, 585, 1446, 565, 1160, 8526, 358, 1994, 273, 394, 1160, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 1435, 1216, 4077, 503, 16, 1860, 288, 565, 316, 18, 16508, 12, 20, 1769, 565, 368, 787, 635, 6453, 326, 585, 1446, 565, 1160, 8526, 358, 1994, 273, 394, 1160, 63,...
public int describeCoverage(java.io.OutputStream out, String[] coverageNames) throws IOException {
public String describeCoverage() throws IOException {
public int describeCoverage(java.io.OutputStream out, String[] coverageNames) throws IOException { XMLwriter writer = new XMLwriter(); Document doc = writer.makeDescribeCoverage( gridDataset, coverageNames); String result = fmt.outputString(doc); out.write( result.getBytes()); if (showDoc) System.out.println(result); return result.length(); }
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/aff0d2751672272621b412fec3a4f80e8666afc5/WcsDataset.java/buggy/cdm/src/main/java/thredds/wcs/WcsDataset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 6401, 9739, 1435, 1216, 1860, 288, 565, 3167, 6299, 2633, 273, 394, 3167, 6299, 5621, 565, 4319, 997, 273, 2633, 18, 6540, 8782, 9739, 12, 3068, 10656, 16, 11196, 1557, 1769, 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, 282, 1071, 514, 6401, 9739, 1435, 1216, 1860, 288, 565, 3167, 6299, 2633, 273, 394, 3167, 6299, 5621, 565, 4319, 997, 273, 2633, 18, 6540, 8782, 9739, 12, 3068, 10656, 16, 11196, 1557, 1769, 5...
public void invoke (org.omg.CORBA.ServerRequest req) { org.jacorb.orb.dsi.ServerRequest request = null; RequestInputStream reqis = null; RequestOutputStream reqos = null; ReplyInputStream repis = null; ReplyOutputStream repos = null; String ior_str = null; org.omg.CORBA.Object target = null; org.omg.PortableInterceptor.Current pi_current = null; Delegate delegate = null; request = (org.jacorb.orb.dsi.ServerRequest) req; reqis = request.get_in (); Debug.output (1, "Proxy DSI call to " + request.operation ()); try { pi_current = (org.omg.PortableInterceptor.Current) orb.resolve_initial_references ("PICurrent"); ior_str = new String (pi_current.get_slot (ProxyServerInitializer.slot_id).toString ()); target = orb.string_to_object (ior_str); } catch (org.omg.CORBA.UserException e) { e.printStackTrace(); } //TODO: Reuse delegates // create and bind delegate // use special delegate without exception checking delegate = new Delegate (orb, ior_str, true); reqos = (RequestOutputStream) delegate.request ( target, request.operation (), (0x03 & reqis.req_hdr.response_flags) == 0x03 ); //manipulate buffer synchronized (delegate) { byte[] outbuffer = reqos.getInternalBuffer (); int msg_size = reqis.msg_size + 12; //compute length of incoming data int datalength = (msg_size - (int) reqis.get_pos ()); //getting a buffer of the right size byte[] new_array = BufferManager.getInstance().getBuffer (datalength + reqos.size ()); //copying the old header to the new array System.arraycopy ( outbuffer, 0, new_array, 0, reqos.size () ); //replacing the local pointer outbuffer = new_array; //replace buffer //this overwrites the size/pos of the stream reqos.setBufferWithoutReset (outbuffer); if (datalength > 0) { System.arraycopy ( reqis.getBuffer (), reqis.get_pos (), outbuffer, reqos.size (), datalength ); } reqos.setSize (reqos.size () + datalength); reqos.insertMsgSize (reqos.size () + datalength); // Check GIOP header flags endian bit if ((reqis.getBuffer()[6]&1) != (outbuffer[6]&1)) { changeByteOrder (outbuffer); } Debug.output (1, "SubRequest to send", outbuffer); //send it try { repis = (ReplyInputStream) delegate.invoke (target, reqos); } catch (org.omg.CORBA.portable.ApplicationException ae) { ae.printStackTrace (); } catch (org.omg.CORBA.portable.RemarshalException re) { re.printStackTrace (); } //////////////////////// //construct reply /////////////////////// repos = request.get_out (); byte[] reply_outbuffer = repos.getInternalBuffer (); int reply_msg_size = repis.msg_size + 12; //compute length of incoming data int reply_datalength = reply_msg_size - (int) repis.get_pos(); //getting a buffer of the right size byte[] reply_new_array = BufferManager.getInstance().getBuffer (reply_datalength + repos.size ()); //copying the old header to the new array System.arraycopy ( reply_outbuffer, 0, reply_new_array, 0, repos.size () ); //replacing the local pointer reply_outbuffer = reply_new_array; //replace buffer //this overwrites the size/pos of the stream repos.setBufferWithoutReset (reply_outbuffer); if (reply_datalength > 0) { System.arraycopy ( repis.getBuffer (), repis.get_pos (), reply_outbuffer, repos.size (), reply_datalength ); } repos.setSize (repos.size () + reply_datalength); repos.insertMsgSize (repos.size () + reply_datalength); request.setUsePreconstructedReply (true); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7229eba46e27d4cbfe27559497a8beb193ec4b72/ProxyImpl.java/clean/src/org/jacorb/proxy/ProxyImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 4356, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 2081, 691, 1111, 13, 3639, 288, 5411, 2358, 18, 31390, 16640, 18, 16640, 18, 2377, 77, 18, 2081, 691, 590, 273, 446, 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, 540, 1071, 918, 4356, 261, 3341, 18, 362, 75, 18, 9428, 12536, 18, 2081, 691, 1111, 13, 3639, 288, 5411, 2358, 18, 31390, 16640, 18, 16640, 18, 2377, 77, 18, 2081, 691, 590, 273, 446, 31, ...
public abstract boolean supportsOrderByUnrelated() throws SQLException;
boolean supportsOrderByUnrelated() throws SQLException;
public abstract boolean supportsOrderByUnrelated() throws SQLException;
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b37b39a8e8ee762cc74efa7e8d06368d13147150/DatabaseMetaData.java/clean/libraries/javalib/java/sql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 8770, 1250, 6146, 15658, 984, 9243, 1435, 1216, 6483, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 8770, 1250, 6146, 15658, 984, 9243, 1435, 1216, 6483, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Linker linker) {
Linker linker, ClassHierarchy ch) {
public PointerAnalysis(MetaCallGraph mcg, CachingSCCLBBFactory caching_scc_lbb_factory, Linker linker) { this.mcg = mcg; this.mac = new MetaAllCallers(mcg); this.scc_lbb_factory = caching_scc_lbb_factory; // OLD STUFF: new CachingSCCLBBFactory(lbbconv); this.linker = linker; this.nodes = new NodeRepository(linker); InterProcPA.static_init(this); if(SAVE_MEMORY) aamm = new HashSet(); }
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/9bee8905ff9b74123ce55088f4b5316d61c1ba6d/PointerAnalysis.java/buggy/Analysis/PointerAnalysis/PointerAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7107, 9418, 12, 2781, 1477, 4137, 6108, 75, 16, 9506, 282, 23782, 310, 2312, 5017, 9676, 1733, 11393, 67, 87, 952, 67, 80, 9897, 67, 6848, 16, 9506, 282, 4048, 264, 28058, 13, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7107, 9418, 12, 2781, 1477, 4137, 6108, 75, 16, 9506, 282, 23782, 310, 2312, 5017, 9676, 1733, 11393, 67, 87, 952, 67, 80, 9897, 67, 6848, 16, 9506, 282, 4048, 264, 28058, 13, 288...
public Headers parseHeaders(MIMEParsingInputStream stream, MIMESource streamSource, HeaderFieldFactory fieldFactory, MIMEPolicy policy) throws IOException, InvalidHeaderDataException, HeaderParseException { m_logger.debug("Begin Parsing Headers"); int startPos = (int) stream.position();//TODO: bscott Someday w/ big emails this cast will haunt me. List<HeaderField> headersInOrder = new ArrayList<HeaderField>(); Map<LCString, List<HeaderField>> headersByName = new HashMap<LCString, List<HeaderField>>(); //These members are reset each time we encounter //a new header List<Line> currentLines = null; int valueStartOffset = 0; String headerName = null; int linesRead = 0; try { while(true) { //Assume this is either a blank line, or the start of a header Line line = stream.readLine(policy.getMaxHeaderLineLen()); // m_logger.debug("(read line) \"" + bbToString(line.getBuffer()) + "\""); if(line == null) { break; } //Check for policy violation if(linesRead++ > policy.getMaxHeaderLines()) { //XXXX bscott I think this exception should be some "policy vioilation" // or "attack suspected" exception. throw new InvalidHeaderDataException("Number of header lines exceeded: \"" + policy.getMaxHeaderLines() + "\""); } //Get the byte buffer for this line. Check if it //is blank, starts with LWS, or is "normal". ByteBuffer bb = line.getBuffer(false); if(bb.remaining() == 0) { //Blank line. This terminates the set of headers. Note if there //was a trailing header, it is dealt with outside this loop. break; } if(isNextLWS(bb)) {//BEGIN Starts with LWS //Check boundary case where entire line is LWS if(isAllLWS(bb)) {//BEGIN All Blank Line if(policy.isLwsLineTerminatesHeaders()) { //OK. We'll treat this (bad) line as a terminator //for the header set m_logger.warn("Encountered a LWS line while parsing headers. " + "Treating as blank line as per policy (line " + linesRead + ")"); break; } else { //We either need to append to the previous //Line, or this was the first line in which case we //ignore it. if(currentLines == null) { m_logger.warn("Encountered a LWS line as first line in headers. Ignore " + "(line " + linesRead + ")"); } else { m_logger.warn("Encountered a LWS line in headers. Append " + "to previous header as-per policy (line " + linesRead + ")"); currentLines.add(line); } continue;//Redundant } }//ENDOF All Blank Line else {//BEGIN Not all Blank line eatWhitespace(bb, false); if(currentLines == null) {//BEGIN First Line not all LWS //Odd case. This nasty line is the first line of the headers. //By policy, we *may* consider this part of the //headers, or body. Note we break out granular cases below //for better logging. String badHeaderName = HeaderFieldFactory.readHeaderFieldName(bb); if(badHeaderName == null) { //We cannot consider this a header line, regardless of policy stream.unreadLine(line); m_logger.warn("Encountered a non-conformant header line as first line " + "of header set: \"" + bbToString(line.getBuffer(false)) + "\"" + ". Consider this start of the body (line " + linesRead + ")"); break; } else { if(policy.isIgnoreFoldedFirstLine()) { m_logger.warn("As per policy, starting Headers with ill-formed " + "first line: \"" + bbToString(line.getBuffer(false)) + "\" (line " + linesRead + ")"); currentLines = new ArrayList<Line>(); currentLines.add(line); valueStartOffset = bb.position(); headerName = badHeaderName; continue;//redundant } else { m_logger.warn("Encountered folded line as first line of headers " + "which may be a header line: \"" + bbToString(line.getBuffer(false)) + "\"" + ". Treat this as part of the body (line " + linesRead + ")"); stream.unreadLine(line); break; } } }//ENDOF First Line not all LWS else { //Append this fold to the current currentLines.add(line); continue;//redundant } }//ENDOF Not all Blank line }//ENDOF Starts with LWS else {//BEGIN Starts with non LWS //Complete previous header, if it exists if(currentLines != null) { HeaderField newField = fieldFactory.createHeaderField(headerName); newField.assignFromLines(new RawHeaderField( (Line[]) currentLines.toArray(new Line[currentLines.size()]), valueStartOffset), false); headersInOrder.add(newField); List<HeaderField> headerHolder = headersByName.get(newField.getNameLC()); if(headerHolder == null) { headerHolder = new ArrayList<HeaderField>(); headersByName.put(newField.getNameLC(), headerHolder); } headerHolder.add(newField); m_logger.debug("Added HeaderField with name \"" + newField.getName() + "\""); currentLines = null; } //Reead the header name headerName = HeaderFieldFactory.readHeaderFieldName(bb); if(headerName == null) { //Edge case. We either ignore this line alltogether, //or consider it the start of the body switch(policy.getNonHeaderLineInHeadersPolicy()) { case TREAT_AS_BODY: m_logger.warn("Encountered non-header line in headers: \"" + bbToString(line.getBuffer(false)) + "\". Treat as part " + "of body as-per policy (line " + linesRead + ")"); stream.unreadLine(line); break; case IGNORE: m_logger.warn("Encountered non-header line in headers: \"" + bbToString(line.getBuffer(false)) + "\". Ignore" + " as-per policy (line " + linesRead + ")"); break; case RAISE_EXCEPTION: //XXXX bscott I think this exception should be some "policy vioilation" // or "attack suspected" exception. throw new InvalidHeaderDataException("Invalid line: \"" + bbToString(line.getBuffer(false)) + " Encountered (line " + linesRead + ")"); } break; } else { //Start a new header currentLines = new ArrayList<Line>(); currentLines.add(line); valueStartOffset = bb.position(); } }//ENDOF Starts with non LWS } } catch(LineTooLongException ltl) { throw new InvalidHeaderDataException("Header line exceeds length \"" + policy.getMaxHeaderLineLen() + "\" set by policy (line " + linesRead + ")", ltl); } //Clean-up the remaing header if(currentLines != null) { HeaderField newField = fieldFactory.createHeaderField(headerName); newField.assignFromLines(new RawHeaderField( (Line[]) currentLines.toArray(new Line[currentLines.size()]), valueStartOffset), false); headersInOrder.add(newField); List<HeaderField> headerHolder = headersByName.get(newField.getNameLC()); if(headerHolder == null) { headerHolder = new ArrayList<HeaderField>(); headersByName.put(newField.getNameLC(), headerHolder); } headerHolder.add(newField); m_logger.debug("Added HeaderField with name \"" + newField.getName() + "\""); } return fieldFactory.createHeaders(streamSource, startPos, (int) (stream.position() - startPos), headersInOrder, headersByName); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/c3bae82d6481acb858b7fffd40defbb0a35107b1/HeadersParser.java/clean/mvvm/main/com/metavize/tran/mime/HeadersParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3121, 2670, 3121, 12, 18178, 13963, 4348, 3256, 16, 18178, 55, 477, 5710, 793, 1830, 16, 1864, 974, 1733, 1518, 1733, 16, 18178, 52, 1415, 879, 1590, 13, 15069, 14106, 16, 1941, 1864, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3121, 2670, 3121, 12, 18178, 13963, 4348, 3256, 16, 18178, 55, 477, 5710, 793, 1830, 16, 1864, 974, 1733, 1518, 1733, 16, 18178, 52, 1415, 879, 1590, 13, 15069, 14106, 16, 1941, 1864, 22...
if(stringValue!=null) {
if(stringValue != null){
public void visitMethodCallExpression(@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); final PsiReferenceExpression methodExpression = expression.getMethodExpression(); if (methodExpression == null) { return; } final String methodName = methodExpression.getReferenceName(); if (!"exec".equals(methodName)) { return; } final PsiMethod method = expression.resolveMethod(); if (method == null) { return; } final PsiClass aClass = method.getContainingClass(); final String className = aClass.getQualifiedName(); if (!"java.lang.Runtime".equals(className)) { return; } final PsiExpressionList argumentList = expression.getArgumentList(); if(argumentList == null) { return; } final PsiExpression[] args = argumentList.getExpressions(); if(args == null || args.length==0) { return; } final PsiExpression arg = args[0]; final PsiType type = arg.getType(); if(type == null) { return; } final String typeText = type.getCanonicalText(); if(!"java.lang.String".equals(typeText)) { return; } final String stringValue = (String) ConstantExpressionUtil.computeCastTo(arg, type); if(stringValue!=null) { return; } registerMethodCallError(expression); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/bd57f07c33c419f20715b114b71a7e93425b34c9/RuntimeExecWithNonConstantStringInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/security/RuntimeExecWithNonConstantStringInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 12592, 2300, 26964, 5962, 453, 7722, 12592, 2300, 2652, 13, 288, 5411, 2240, 18, 11658, 12592, 2300, 12, 8692, 1769, 5411, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 2652,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 12592, 2300, 26964, 5962, 453, 7722, 12592, 2300, 2652, 13, 288, 5411, 2240, 18, 11658, 12592, 2300, 12, 8692, 1769, 5411, 727, 453, 7722, 2404, 2300, 707, 2300, 273, 2652,...
java.sql.ResultSet rs = connection.ExecSQL("select typname from pg_type");
java.sql.ResultSet rs = connection.ExecSQL(null, "select typname from pg_type");
public java.sql.ResultSet getTypeInfo() throws SQLException { java.sql.ResultSet rs = connection.ExecSQL("select typname from pg_type"); if(rs!=null) { Field f[] = new Field[18]; ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[1] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[2] = new Field(connection, "PRECISION", iInt4Oid, 4); f[3] = new Field(connection, "LITERAL_PREFIX", iVarcharOid, 32); f[4] = new Field(connection, "LITERAL_SUFFIX", iVarcharOid, 32); f[5] = new Field(connection, "CREATE_PARAMS", iVarcharOid, 32); f[6] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[7] = new Field(connection, "CASE_SENSITIVE", iBoolOid, 1); f[8] = new Field(connection, "SEARCHABLE", iInt2Oid, 2); f[9] = new Field(connection, "UNSIGNED_ATTRIBUTE", iBoolOid, 1); f[10] = new Field(connection, "FIXED_PREC_SCALE", iBoolOid, 1); f[11] = new Field(connection, "AUTO_INCREMENT", iBoolOid, 1); f[12] = new Field(connection, "LOCAL_TYPE_NAME", iVarcharOid, 32); f[13] = new Field(connection, "MINIMUM_SCALE", iInt2Oid, 2); f[14] = new Field(connection, "MAXIMUM_SCALE", iInt2Oid, 2); f[15] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[16] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[17] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); // cache some results, this will keep memory useage down, and speed // things up a little. byte b9[] = "9".getBytes(); byte b10[] = "10".getBytes(); byte bf[] = "f".getBytes(); byte bnn[] = Integer.toString(typeNoNulls).getBytes(); byte bts[] = Integer.toString(typeSearchable).getBytes(); while(rs.next()) { byte[][] tuple = new byte[18][]; String typname=rs.getString(1); tuple[0] = typname.getBytes(); tuple[1] = Integer.toString(Field.getSQLType(typname)).getBytes(); tuple[2] = b9; // for now tuple[6] = bnn; // for now tuple[7] = bf; // false for now - not case sensitive tuple[8] = bts; tuple[9] = bf; // false for now - it's signed tuple[10] = bf; // false for now - must handle money tuple[11] = bf; // false for now - handle autoincrement // 12 - LOCAL_TYPE_NAME is null // 13 & 14 ? // 15 & 16 are unused so we return null tuple[17] = b10; // everything is base 10 v.addElement(tuple); } rs.close(); return new ResultSet(connection, f, v, "OK", 1); } return null; }
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 225, 288, 565, 2252, 18, 4669, 18, 13198, 3597, 273, 1459, 18, 1905, 3997, 12, 2011, 16, 315, 4025, 3815, 529, 628, 7184, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 225, 288, 565, 2252, 18, 4669, 18, 13198, 3597, 273, 1459, 18, 1905, 3997, 12, 2011, 16, 315, 4025, 3815, 529, 628, 7184, 6...
tree = (Node) first.getProp(Node.FUNCTION_PROP);
tree = (ScriptOrFnNode)first.getProp(Node.FUNCTION_PROP);
private Object compile(Scriptable scope, Reader sourceReader, String sourceString, String sourceName, int lineno, Object securityDomain, boolean returnFunction) throws IOException { // One of sourceReader or sourceString has to be null if (!(sourceReader == null ^ sourceString == null)) Context.codeBug(); if (securityController != null) { securityDomain = securityController. getDynamicSecurityDomain(securityDomain); } else { securityDomain = null; } if (debugger != null) { if (sourceReader != null) { sourceString = readReader(sourceReader); sourceReader = null; } } TokenStream ts = new TokenStream(sourceReader, sourceString, scope, sourceName, lineno); Interpreter compiler = createCompiler(); errorCount = 0; IRFactory irf = compiler.createIRFactory(this, ts); Parser p = createParser(irf); Node tree = (Node) p.parse(ts); if (tree == null) return null; tree = compiler.transform(this, irf, tree); if (printTrees) { System.out.println(tree.toStringTree()); } if (returnFunction) { Node first = tree.getFirstChild(); if (first == null) return null; tree = (Node) first.getProp(Node.FUNCTION_PROP); if (tree == null) return null; } if (debugger != null) { if (sourceString == null) Context.codeBug(); ((ScriptOrFnNode)tree).originalSource = sourceString; } Object result = compiler.compile(this, scope, tree, securityController, securityDomain); return errorCount == 0 ? result : null; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/3abddeba71ba7a501cb802a83ea2023698be5bfc/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 4074, 12, 3651, 429, 2146, 16, 21821, 5393, 1084, 2514, 16, 514, 1084, 780, 16, 21821, 514, 28337, 16, 509, 7586, 16, 21821, 1033, 4373, 3748, 16, 1250, 327, 2083, 13, 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, 1033, 4074, 12, 3651, 429, 2146, 16, 21821, 5393, 1084, 2514, 16, 514, 1084, 780, 16, 21821, 514, 28337, 16, 509, 7586, 16, 21821, 1033, 4373, 3748, 16, 1250, 327, 2083, 13, 3639, ...
reader = new BufferedReader(new InputStreamReader(zis));
reader = new BufferedReader(new InputStreamReader(zis, encoding));
public Project doLoad(URL url) throws OpenException { try { File file = File.createTempFile("xxx", ".uml"); file.deleteOnExit(); String encoding = "UTF-8"; FileOutputStream stream = new FileOutputStream(file); PrintWriter writer = new PrintWriter(new BufferedWriter( new OutputStreamWriter(stream, encoding))); writer.println("<?xml version = \"1.0\" " + "encoding = \"" + encoding + "\" ?>"); // first read the .argo file from Zip ZipInputStream zis; String line; BufferedReader reader; zis = openZipStreamAt(url, FileConstants.PROJECT_FILE_EXT); reader = new BufferedReader(new InputStreamReader(zis)); // Keep reading till we hit the <argo> tag String rootLine; while (!(rootLine = reader.readLine()).startsWith("<argo")) { if (rootLine == null) { throw new OpenException( "Can't find an <argo> tag in the argo file"); } } // Get the version from the tag. String version = getVersion(rootLine); writer.println("<uml version=\"" + version + "\">"); writer.println(rootLine); while ((line = reader.readLine()) != null) { writer.println(line); } zis.close(); reader.close(); // then the xmi zis = openZipStreamAt(url, ".xmi"); reader = new BufferedReader(new InputStreamReader(zis)); // Skip 1 lines reader.readLine(); while ((line = reader.readLine()) != null) { writer.println(line); } zis.close(); reader.close(); // Loop round loading the diagrams zis = new ZipInputStream(url.openStream()); SubInputStream sub = new SubInputStream(zis); ZipEntry currentEntry = null; while ((currentEntry = sub.getNextEntry()) != null) { if (currentEntry.getName().endsWith(".pgml") || currentEntry.getName().endsWith(".todo")) { reader = new BufferedReader(new InputStreamReader(sub)); // Skip 2 lines reader.readLine(); reader.readLine(); while ((line = reader.readLine()) != null) { writer.println(line); } sub.close(); reader.close(); } } zis.close(); writer.println("</uml>"); writer.close(); Project p = super.doLoad(file.toURL()); p.setURL(url); return p; } catch (IOException e) { throw new OpenException(e); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/347d1e2e20e46e90be110707d9a8c93e99228520/ZargoFilePersister.java/buggy/src_new/org/argouml/persistence/ZargoFilePersister.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5420, 741, 2563, 12, 1785, 880, 13, 1216, 3502, 503, 288, 3639, 775, 288, 5411, 1387, 585, 273, 1387, 18, 2640, 20181, 2932, 18310, 3113, 3552, 22192, 8863, 5411, 585, 18, 3733, 139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5420, 741, 2563, 12, 1785, 880, 13, 1216, 3502, 503, 288, 3639, 775, 288, 5411, 1387, 585, 273, 1387, 18, 2640, 20181, 2932, 18310, 3113, 3552, 22192, 8863, 5411, 585, 18, 3733, 139...
private UserDomainObject createUserFromLdapAttributes( Map ldapAttributeValues ) {
private UserDomainObject createUserFromLdapAttributes( Properties ldapAttributeValues ) {
private UserDomainObject createUserFromLdapAttributes( Map ldapAttributeValues ) { UserDomainObject newlyFoundLdapUser = new UserDomainObject(); String value = getValueForUserField( "lastName", ldapAttributeValues ); newlyFoundLdapUser.setLastName( value ); value = getValueForUserField( "address", ldapAttributeValues ); newlyFoundLdapUser.setAddress( value ); value = getValueForUserField( "city", ldapAttributeValues ); newlyFoundLdapUser.setCity( value ); value = getValueForUserField( "county_council", ldapAttributeValues ); newlyFoundLdapUser.setCountyCouncil( value ); value = getValueForUserField( "emailAddress", ldapAttributeValues ); newlyFoundLdapUser.setEmailAddress( value ); value = getValueForUserField( "firstName", ldapAttributeValues ); newlyFoundLdapUser.setFirstName( value ); value = getValueForUserField( "homePhone", ldapAttributeValues ); newlyFoundLdapUser.setHomePhone( value ); value = getValueForUserField( "title", ldapAttributeValues ); newlyFoundLdapUser.setTitle( value ); value = getValueForUserField( "mobilePhone", ldapAttributeValues ); newlyFoundLdapUser.setMobilePhone( value ); value = getValueForUserField( "workPhone", ldapAttributeValues ); newlyFoundLdapUser.setWorkPhone( value ); value = getValueForUserField( "zip", ldapAttributeValues ); newlyFoundLdapUser.setZip( value ); value = getValueForUserField( "city", ldapAttributeValues ); newlyFoundLdapUser.setCity( value ); value = getValueForUserField( "company", ldapAttributeValues ); newlyFoundLdapUser.setCompany( value ); value = getValueForUserField( "country", ldapAttributeValues ); newlyFoundLdapUser.setCountry( value ); return newlyFoundLdapUser; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/166f4e58fb908607493dc99f2a322c326273f017/LdapUserAndRoleMapper.java/clean/server/src/imcode/server/user/LdapUserAndRoleMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2177, 3748, 921, 22992, 1265, 18437, 2498, 12, 6183, 8079, 31770, 262, 288, 3639, 2177, 3748, 921, 10894, 2043, 18437, 1299, 273, 394, 2177, 3748, 921, 5621, 3639, 514, 460, 273, 2366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2177, 3748, 921, 22992, 1265, 18437, 2498, 12, 6183, 8079, 31770, 262, 288, 3639, 2177, 3748, 921, 10894, 2043, 18437, 1299, 273, 394, 2177, 3748, 921, 5621, 3639, 514, 460, 273, 2366...
if (!coe.identity.equals(identity)) {
if (!coe.getIdentity().equals(identity)) {
public long reservedCheckIn(String destination, String identity, boolean backup) throws FileReservedCheckInException, Exception { RCML rcml = new RCML(rcmlDir, destination, rootDir); CheckOutEntry coe = rcml.getLatestCheckOutEntry(); CheckInEntry cie = rcml.getLatestCheckInEntry(); // If there has never been a checkout for this object // *or* if the user attempting the checkin right now // is the system itself, we will skip any checks and proceed // right away to the actual checkin. // In all other cases we enforce the revision control // rules inside this if clause: // if (!((coe == null) || identity.equals(RevisionController.systemUsername))) { /* * Possible cases and rules: * * 1.) we were able to read the latest checkin and it is later than latest checkout * (i.e. there is no open checkout to match this checkin, an unusual case) * 1.1.) identity of latest checkin is equal to current user * -> checkin allowed, same user may check in repeatedly * 1.2.) identity of latest checkin is not equal to current user * -> checkin rejected, may not overwrite the revision which * another user checked in previously * 2.) there was no checkin or the latest checkout is later than latest checkin * (i.e. there is an open checkout) * 2.1.) identity of latest checkout is equal to current user * -> checkin allowed, user checked out and may check in again * (the most common case) * 2.2.) identity of latest checkout is not equal to current user * -> checkin rejected, may not check in while another * user is working on this document * */ if ((cie != null) && (cie.time > coe.time)) { // We have case 1 if (!cie.identity.equals(identity)) { // Case 1.2., abort... // throw new FileReservedCheckInException(rootDir + destination, rcml); } } else { // Case 2 if (!coe.identity.equals(identity)) { // Case 2.2., abort... // throw new FileReservedCheckInException(rootDir + destination, rcml); } } } File originalFile = new File(rootDir + destination); long time = new Date().getTime(); if (backup && originalFile.isFile()) { File backupFile = new File(backupDir + "/" + destination + ".bak." + time); File parent = new File(backupFile.getParent()); if (!parent.isDirectory()) { parent.mkdirs(); } log.info("Backup: copy " + originalFile.getAbsolutePath() + " to " + backupFile.getAbsolutePath()); InputStream in = new FileInputStream(originalFile.getAbsolutePath()); OutputStream out = new XPSFileOutputStream(backupFile.getAbsolutePath()); byte[] buffer = new byte[512]; int length; while ((length = in.read(buffer)) != -1) { out.write(buffer, 0, length); } out.close(); } rcml.checkOutIn(RCML.ci, identity, time); rcml.write(); // FIXME: If we reuse the observer pattern as implemented in // xps this would be the place to notify the observers, // e.g. like so: // StatusChangeSignalHandler.emitSignal("file:" + originalFile.getAbsolutePath(), // "reservedCheckIn"); return time; }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/bb61264b8d436c24652dcb684e634248dcce0756/RevisionController.java/clean/src/java/org/apache/lenya/cms/rc/RevisionController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 8735, 1564, 382, 12, 780, 2929, 16, 514, 4215, 16, 1250, 5114, 13, 3639, 1216, 1387, 10435, 1564, 382, 503, 16, 1185, 288, 3639, 24206, 1495, 4519, 781, 273, 394, 24206, 1495,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 8735, 1564, 382, 12, 780, 2929, 16, 514, 4215, 16, 1250, 5114, 13, 3639, 1216, 1387, 10435, 1564, 382, 503, 16, 1185, 288, 3639, 24206, 1495, 4519, 781, 273, 394, 24206, 1495,...
dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size());
result = dao.getUserAttributes("nobody"); assertNull(result); assertEquals("Incorrect number of items in cache", 0, cacheMap.size());
public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setCacheKeyAttributes(keyAttrs); dao.setUserInfoCache(cacheMap); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); Map queryMap1 = new HashMap(); queryMap1.put(defaultAttr, "edalquist"); queryMap1.put("name.first", "Eric"); queryMap1.put("name.last", "Dalquist"); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); Map queryMap2 = new HashMap(); queryMap2.put("name.first", "John"); queryMap2.put("name.last", "Doe"); dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); }
55666 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55666/ee15a29fe99eee75a2ddf9e4571899226512e1ff/CachingPersonAttributeDaoTest.java/clean/main/test/java/org/jasig/portal/services/persondir/support/CachingPersonAttributeDaoTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 27860, 2444, 1499, 2396, 1435, 288, 3639, 1635, 1247, 863, 273, 394, 4317, 5621, 7734, 1000, 498, 8262, 273, 394, 6847, 5621, 3639, 498, 8262, 18, 1289, 2932, 529, 18, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27860, 2444, 1499, 2396, 1435, 288, 3639, 1635, 1247, 863, 273, 394, 4317, 5621, 7734, 1000, 498, 8262, 273, 394, 6847, 5621, 3639, 498, 8262, 18, 1289, 2932, 529, 18, 36...
public org.quickfix.field.EncodedLegIssuer getEncodedLegIssuer() throws FieldNotFound { org.quickfix.field.EncodedLegIssuer value = new org.quickfix.field.EncodedLegIssuer();
public quickfix.field.EncodedLegIssuer getEncodedLegIssuer() throws FieldNotFound { quickfix.field.EncodedLegIssuer value = new quickfix.field.EncodedLegIssuer();
public org.quickfix.field.EncodedLegIssuer getEncodedLegIssuer() throws FieldNotFound { org.quickfix.field.EncodedLegIssuer value = new org.quickfix.field.EncodedLegIssuer(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelRequest.java/buggy/src/java/src/quickfix/fix44/CrossOrderCancelRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 16667, 28799, 8329, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 16667, 460, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 16667, 28799, 8329, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 8329, 16667, 460, 273, 394, ...
context.setIgnoreAuthorization(true); eperson = EPerson.create(context); if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) eperson.setEmail(ldap.ldapEmail); else eperson.setEmail(netid); if ((ldap.ldapGivenName!=null)&&(!ldap.ldapGivenName.equals(""))) eperson.setFirstName(ldap.ldapGivenName); if ((ldap.ldapSurname!=null)&&(!ldap.ldapSurname.equals(""))) eperson.setLastName(ldap.ldapSurname); if ((ldap.ldapPhone!=null)&&(!ldap.ldapPhone.equals(""))) eperson.setMetadata("phone", ldap.ldapPhone); eperson.setNetid(netid); eperson.setCanLogIn(true); AuthenticationManager.initEPerson(context, request, eperson); eperson.update(); context.commit();
eperson = EPerson.findByEmail(context, ldap.ldapEmail); if (eperson!=null) { log.info(LogManager.getHeader(context, "type=ldap-login", "type=ldap_but_already_email")); context.setIgnoreAuthorization(true); eperson.setNetid(netid); eperson.update(); context.commit(); context.setIgnoreAuthorization(false); context.setCurrentUser(eperson); return SUCCESS; } else { if (canSelfRegister(context, request, netid)) { try { context.setIgnoreAuthorization(true); eperson = EPerson.create(context); if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) eperson.setEmail(ldap.ldapEmail); else eperson.setEmail(netid); if ((ldap.ldapGivenName!=null)&&(!ldap.ldapGivenName.equals(""))) eperson.setFirstName(ldap.ldapGivenName); if ((ldap.ldapSurname!=null)&&(!ldap.ldapSurname.equals(""))) eperson.setLastName(ldap.ldapSurname); if ((ldap.ldapPhone!=null)&&(!ldap.ldapPhone.equals(""))) eperson.setMetadata("phone", ldap.ldapPhone); eperson.setNetid(netid); eperson.setCanLogIn(true); AuthenticationManager.initEPerson(context, request, eperson); eperson.update(); context.commit(); } catch (AuthorizeException e) { return NO_SUCH_USER; } finally { context.setIgnoreAuthorization(false); } log.info(LogManager.getHeader(context, "authenticate", "type=ldap-login, created ePerson")); return SUCCESS; } else { log.info(LogManager.getHeader(context, "failed_login", "type=ldap_but_no_record")); return NO_SUCH_USER; } }
public int authenticate(Context context, String netid, String password, String realm, HttpServletRequest request) throws SQLException { log.info(LogManager.getHeader(context, "auth", "attempting trivial auth of user="+netid)); // Locate the eperson EPerson eperson = null; try { eperson = EPerson.findByNetid(context, netid.toLowerCase()); } catch (SQLException e) { } boolean loggedIn = false; SpeakerToLDAP ldap = new SpeakerToLDAP(log); // if they entered a netid that matches an eperson if (eperson != null) { // e-mail address corresponds to active account if (eperson.getRequireCertificate()) return CERT_REQUIRED; else if (!eperson.canLogIn()) return BAD_ARGS; { if (ldap.ldapAuthenticate(netid, password, context)) { log.info(LogManager .getHeader(context, "authenticate", "type=ldap")); return SUCCESS; } else return BAD_CREDENTIALS; } } // the user does not already exist so try and authenticate them // with ldap and create an eperson for them else { if (ldap.ldapAuthenticate(netid, password, context)) { if (canSelfRegister(context, request, netid)) { // Register the new user automatically log.info(LogManager.getHeader(context, "autoregister", "netid=" + netid)); if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) { try { eperson = EPerson.findByEmail(context, ldap.ldapEmail); } catch (AuthorizeException e) { eperson = null; } if (eperson!=null) { log.info(LogManager.getHeader(context, "failed_autoregister", "type=ldap_but_already_email")); return SUCCESS; } } // TEMPORARILY turn off authorisation try { context.setIgnoreAuthorization(true); eperson = EPerson.create(context); if ((ldap.ldapEmail!=null)&&(!ldap.ldapEmail.equals(""))) eperson.setEmail(ldap.ldapEmail); else eperson.setEmail(netid); if ((ldap.ldapGivenName!=null)&&(!ldap.ldapGivenName.equals(""))) eperson.setFirstName(ldap.ldapGivenName); if ((ldap.ldapSurname!=null)&&(!ldap.ldapSurname.equals(""))) eperson.setLastName(ldap.ldapSurname); if ((ldap.ldapPhone!=null)&&(!ldap.ldapPhone.equals(""))) eperson.setMetadata("phone", ldap.ldapPhone); eperson.setNetid(netid); eperson.setCanLogIn(true); AuthenticationManager.initEPerson(context, request, eperson); eperson.update(); context.commit(); } catch (AuthorizeException e) { return NO_SUCH_USER; } finally { context.setIgnoreAuthorization(false); } log.info(LogManager.getHeader(context, "authenticate", "type=ldap-login, created ePerson")); return SUCCESS; } else { // No auto-registration for valid certs log.info(LogManager.getHeader(context, "failed_login", "type=ldap_but_no_record")); return NO_SUCH_USER; } } } return BAD_ARGS; }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/2fdbe50f7c2b7a874257127e6d54923be9660204/LDAPAuthentication.java/clean/dspace/src/org/dspace/eperson/LDAPAuthentication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8929, 12, 1042, 819, 16, 18701, 514, 2901, 350, 16, 18701, 514, 2201, 16, 18701, 514, 11319, 16, 18701, 9984, 590, 13, 3639, 1216, 6483, 565, 288, 3639, 613, 18, 1376, 12, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8929, 12, 1042, 819, 16, 18701, 514, 2901, 350, 16, 18701, 514, 2201, 16, 18701, 514, 11319, 16, 18701, 9984, 590, 13, 3639, 1216, 6483, 565, 288, 3639, 613, 18, 1376, 12, 13...
if ((c.getName()).equals("equals") || (c.getName()).equals("hashCode")) { try { result = c.execute(this); } catch (MethodCallExecutionFailedException e) { throw new ProActiveRuntimeException("FutureProxy: Illegal arguments in call " + c.getName()); } return result; }
public Object reify(MethodCall c) throws InvocationTargetException { Object result = null; //stem.out.println("FutureProxy: c.getName() = " +c.getName()); if ((c.getName()).equals("equals") || (c.getName()).equals("hashCode")) { //System.out.println("FutureProxy: now executing " + c.getName()); try { result = c.execute(this); } catch (MethodCallExecutionFailedException e) { throw new ProActiveRuntimeException("FutureProxy: Illegal arguments in call " + c.getName()); } return result; } waitFor(); // Now that the object is available, execute the call if (this.isException) { throw ((InvocationTargetException) this.target); } else { try { result = c.execute(this.target); } catch (MethodCallExecutionFailedException e) { throw new ProActiveRuntimeException("FutureProxy: Illegal arguments in call " + c.getName()); } } // If target of this future is another future, make a shortcut ! if (target instanceof StubObject) { Proxy p =((StubObject)target).getProxy(); if ( p instanceof FutureProxy ) { target = ((FutureProxy)p).target; } } return result; }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/c171c3550f70b496c1228bbed45f5f8feea45a9c/FutureProxy.java/buggy/src/org/objectweb/proactive/core/body/future/FutureProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 283, 1164, 12, 12592, 276, 13, 1216, 15342, 288, 202, 202, 921, 563, 273, 446, 31, 202, 202, 759, 19781, 18, 659, 18, 8222, 2932, 4118, 3886, 30, 276, 18, 17994, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 283, 1164, 12, 12592, 276, 13, 1216, 15342, 288, 202, 202, 921, 563, 273, 446, 31, 202, 202, 759, 19781, 18, 659, 18, 8222, 2932, 4118, 3886, 30, 276, 18, 17994, 1435, ...
}else{
} else {
private String getExternLinkName(String link){ String[] rules = CmsStaticExportProperties.getLinkRules(C_MODUS_EXTERN); String startRule = OpenCms.getStaticExportProperties().getStartRule(); if(startRule != null && !"".equals(startRule)){ try{ link = c_perlUtil.substitute(startRule, link); }catch(Exception e){ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() ) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_CRITICAL, "["+this.getClass().getName()+"] problems with startrule:\""+startRule+"\" (" + e + "). "); } } } if(rules == null || rules.length == 0){ return link; } String retValue = link; for(int i=0; i<rules.length; i++){ try{ if("*dynamicRules*".equals(rules[i])){ // here we go trough our dynamic rules Vector booleanReplace = new Vector(); retValue = handleDynamicRules(m_cms, link, C_MODUS_EXTERN, booleanReplace); Boolean goOn =(Boolean)booleanReplace.firstElement(); if(goOn.booleanValue()){ link = retValue; }else{ // found the match return retValue; } }else{ StringBuffer result = new StringBuffer(); int matches = c_perlUtil.substitute(result, rules[i], link); if(matches != 0){ // found the match return result.toString(); } } }catch(Exception e){ if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() ) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_CRITICAL, "["+this.getClass().getName()+"] problems with rule:\""+rules[i]+"\" (" + e + "). "); } } } return retValue; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6a0c9ffe86a710b8029c987072b2834016b13a30/CmsStaticExport.java/buggy/src/com/opencms/file/CmsStaticExport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 26246, 798, 2098, 461, 12, 780, 1692, 15329, 3639, 514, 8526, 2931, 273, 2149, 5788, 6144, 2297, 18, 588, 2098, 4478, 12, 39, 67, 6720, 3378, 67, 2294, 6519, 1769, 3639, 514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 26246, 798, 2098, 461, 12, 780, 1692, 15329, 3639, 514, 8526, 2931, 273, 2149, 5788, 6144, 2297, 18, 588, 2098, 4478, 12, 39, 67, 6720, 3378, 67, 2294, 6519, 1769, 3639, 514, ...
RubyModule clone = new RubyClass(getRuby(), getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap());
RubyModule clone = new RubyClass(getRuby(), getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap());
public RubyModule getSingletonClassClone() { if (!isSingleton()) { return this; } RubyModule clone = new RubyClass(getRuby(), getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); //clone.setMethods(); // st_foreach(RCLASS(klass)->m_tbl, clone_method, clone->m_tbl); clone.setSingleton(true); return clone; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 3120, 31662, 797, 10930, 1435, 288, 202, 202, 430, 16051, 291, 19571, 10756, 288, 1082, 202, 2463, 333, 31, 202, 202, 97, 202, 202, 54, 10340, 3120, 3236, 273, 394, 19817...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 3120, 31662, 797, 10930, 1435, 288, 202, 202, 430, 16051, 291, 19571, 10756, 288, 1082, 202, 2463, 333, 31, 202, 202, 97, 202, 202, 54, 10340, 3120, 3236, 273, 394, 19817...
try { ExpectationMap map = new ExpectationMap("map"); map.setExpectNothing(); map.get("key"); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
try { ExpectationMap map = new ExpectationMap("map"); map.setExpectNothing(); map.get("key"); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
public void testFailOneEntry() { try { ExpectationMap map = new ExpectationMap("map"); map.setExpectNothing(); map.get("key"); } catch (AssertionFailedError ex) { return; } fail("should fail one entry"); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectationMapTest.java/buggy/jmock/core/src/test/jmock/expectation/ExpectationMapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3754, 3335, 1622, 1435, 288, 202, 202, 698, 288, 1082, 202, 11988, 367, 863, 852, 273, 394, 15510, 367, 863, 2932, 1458, 8863, 1082, 202, 1458, 18, 542, 11988, 23814,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3754, 3335, 1622, 1435, 288, 202, 202, 698, 288, 1082, 202, 11988, 367, 863, 852, 273, 394, 15510, 367, 863, 2932, 1458, 8863, 1082, 202, 1458, 18, 542, 11988, 23814,...
_t = __t1381;
_t = __t1386;
public final void pseudfn(AST _t) throws RecognitionException { AST pseudfn_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIXCODEPAGE: { AST __t1381 = _t; AST tmp664_AST_in = (AST)_t; match(_t,FIXCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1381; _t = _t.getNextSibling(); break; } case OVERLAY: { AST __t1382 = _t; AST tmp665_AST_in = (AST)_t; match(_t,OVERLAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1382; _t = _t.getNextSibling(); break; } case PUTBITS: { AST __t1383 = _t; AST tmp666_AST_in = (AST)_t; match(_t,PUTBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1383; _t = _t.getNextSibling(); break; } case PUTBYTE: { AST __t1384 = _t; AST tmp667_AST_in = (AST)_t; match(_t,PUTBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1384; _t = _t.getNextSibling(); break; } case PUTBYTES: { AST __t1385 = _t; AST tmp668_AST_in = (AST)_t; match(_t,PUTBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1385; _t = _t.getNextSibling(); break; } case PUTDOUBLE: { AST __t1386 = _t; AST tmp669_AST_in = (AST)_t; match(_t,PUTDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1386; _t = _t.getNextSibling(); break; } case PUTFLOAT: { AST __t1387 = _t; AST tmp670_AST_in = (AST)_t; match(_t,PUTFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1387; _t = _t.getNextSibling(); break; } case PUTLONG: { AST __t1388 = _t; AST tmp671_AST_in = (AST)_t; match(_t,PUTLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1388; _t = _t.getNextSibling(); break; } case PUTSHORT: { AST __t1389 = _t; AST tmp672_AST_in = (AST)_t; match(_t,PUTSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1389; _t = _t.getNextSibling(); break; } case PUTSTRING: { AST __t1390 = _t; AST tmp673_AST_in = (AST)_t; match(_t,PUTSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1390; _t = _t.getNextSibling(); break; } case PUTUNSIGNEDSHORT: { AST __t1391 = _t; AST tmp674_AST_in = (AST)_t; match(_t,PUTUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1391; _t = _t.getNextSibling(); break; } case SETBYTEORDER: { AST __t1392 = _t; AST tmp675_AST_in = (AST)_t; match(_t,SETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1392; _t = _t.getNextSibling(); break; } case SETPOINTERVALUE: { AST __t1393 = _t; AST tmp676_AST_in = (AST)_t; match(_t,SETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1393; _t = _t.getNextSibling(); break; } case SETSIZE: { AST __t1394 = _t; AST tmp677_AST_in = (AST)_t; match(_t,SETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1394; _t = _t.getNextSibling(); break; } case AAMSG: { AST tmp678_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getNextSibling(); break; } case CURRENTVALUE: { currentvaluefunc(_t); _t = _retTree; break; } case CURRENTWINDOW: { AST tmp679_AST_in = (AST)_t; match(_t,CURRENTWINDOW); _t = _t.getNextSibling(); break; } case DYNAMICCURRENTVALUE: { dynamiccurrentvaluefunc(_t); _t = _retTree; break; } case ENTRY: { entryfunc(_t); _t = _retTree; break; } case LENGTH: { lengthfunc(_t); _t = _retTree; break; } case NEXTVALUE: { nextvaluefunc(_t); _t = _retTree; break; } case RAW: { rawfunc(_t); _t = _retTree; break; } case SUBSTRING: { substringfunc(_t); _t = _retTree; break; } case Widget_ref: { widattr(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST tmp680_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getNextSibling(); break; } case LINECOUNTER: { AST tmp681_AST_in = (AST)_t; match(_t,LINECOUNTER); _t = _t.getNextSibling(); break; } case PAGENUMBER: { AST tmp682_AST_in = (AST)_t; match(_t,PAGENUMBER); _t = _t.getNextSibling(); break; } case FRAMECOL: { AST tmp683_AST_in = (AST)_t; match(_t,FRAMECOL); _t = _t.getNextSibling(); break; } case FRAMEDOWN: { AST tmp684_AST_in = (AST)_t; match(_t,FRAMEDOWN); _t = _t.getNextSibling(); break; } case FRAMELINE: { AST tmp685_AST_in = (AST)_t; match(_t,FRAMELINE); _t = _t.getNextSibling(); break; } case FRAMEROW: { AST tmp686_AST_in = (AST)_t; match(_t,FRAMEROW); _t = _t.getNextSibling(); break; } case USERID: { AST tmp687_AST_in = (AST)_t; match(_t,USERID); _t = _t.getNextSibling(); break; } case ETIME_KW: { AST tmp688_AST_in = (AST)_t; match(_t,ETIME_KW); _t = _t.getNextSibling(); break; } case DBNAME: { AST tmp689_AST_in = (AST)_t; match(_t,DBNAME); _t = _t.getNextSibling(); break; } case TIME: { AST tmp690_AST_in = (AST)_t; match(_t,TIME); _t = _t.getNextSibling(); break; } case OPSYS: { AST tmp691_AST_in = (AST)_t; match(_t,OPSYS); _t = _t.getNextSibling(); break; } case RETRY: { AST tmp692_AST_in = (AST)_t; match(_t,RETRY); _t = _t.getNextSibling(); break; } case AASERIAL: { AST tmp693_AST_in = (AST)_t; match(_t,AASERIAL); _t = _t.getNextSibling(); break; } case AACONTROL: { AST tmp694_AST_in = (AST)_t; match(_t,AACONTROL); _t = _t.getNextSibling(); break; } case MESSAGELINES: { AST tmp695_AST_in = (AST)_t; match(_t,MESSAGELINES); _t = _t.getNextSibling(); break; } case TERMINAL: { AST tmp696_AST_in = (AST)_t; match(_t,TERMINAL); _t = _t.getNextSibling(); break; } case PROPATH: { AST tmp697_AST_in = (AST)_t; match(_t,PROPATH); _t = _t.getNextSibling(); break; } case CURRENTLANGUAGE: { AST tmp698_AST_in = (AST)_t; match(_t,CURRENTLANGUAGE); _t = _t.getNextSibling(); break; } case PROMSGS: { AST tmp699_AST_in = (AST)_t; match(_t,PROMSGS); _t = _t.getNextSibling(); break; } case SCREENLINES: { AST tmp700_AST_in = (AST)_t; match(_t,SCREENLINES); _t = _t.getNextSibling(); break; } case LASTKEY: { AST tmp701_AST_in = (AST)_t; match(_t,LASTKEY); _t = _t.getNextSibling(); break; } case FRAMEFIELD: { AST tmp702_AST_in = (AST)_t; match(_t,FRAMEFIELD); _t = _t.getNextSibling(); break; } case FRAMEFILE: { AST tmp703_AST_in = (AST)_t; match(_t,FRAMEFILE); _t = _t.getNextSibling(); break; } case FRAMEVALUE: { AST tmp704_AST_in = (AST)_t; match(_t,FRAMEVALUE); _t = _t.getNextSibling(); break; } case GOPENDING: { AST tmp705_AST_in = (AST)_t; match(_t,GOPENDING); _t = _t.getNextSibling(); break; } case PROGRESS: { AST tmp706_AST_in = (AST)_t; match(_t,PROGRESS); _t = _t.getNextSibling(); break; } case FRAMEINDEX: { AST tmp707_AST_in = (AST)_t; match(_t,FRAMEINDEX); _t = _t.getNextSibling(); break; } case FRAMEDB: { AST tmp708_AST_in = (AST)_t; match(_t,FRAMEDB); _t = _t.getNextSibling(); break; } case FRAMENAME: { AST tmp709_AST_in = (AST)_t; match(_t,FRAMENAME); _t = _t.getNextSibling(); break; } case DATASERVERS: { AST tmp710_AST_in = (AST)_t; match(_t,DATASERVERS); _t = _t.getNextSibling(); break; } case NUMDBS: { AST tmp711_AST_in = (AST)_t; match(_t,NUMDBS); _t = _t.getNextSibling(); break; } case NUMALIASES: { AST tmp712_AST_in = (AST)_t; match(_t,NUMALIASES); _t = _t.getNextSibling(); break; } case ISATTRSPACE: { AST tmp713_AST_in = (AST)_t; match(_t,ISATTRSPACE); _t = _t.getNextSibling(); break; } case PROCSTATUS: { AST tmp714_AST_in = (AST)_t; match(_t,PROCSTATUS); _t = _t.getNextSibling(); break; } case PROCHANDLE: { AST tmp715_AST_in = (AST)_t; match(_t,PROCHANDLE); _t = _t.getNextSibling(); break; } case CURSOR: { AST tmp716_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); break; } case OSERROR: { AST tmp717_AST_in = (AST)_t; match(_t,OSERROR); _t = _t.getNextSibling(); break; } case RETURNVALUE: { AST tmp718_AST_in = (AST)_t; match(_t,RETURNVALUE); _t = _t.getNextSibling(); break; } case OSDRIVES: { AST tmp719_AST_in = (AST)_t; match(_t,OSDRIVES); _t = _t.getNextSibling(); break; } case PROVERSION: { AST tmp720_AST_in = (AST)_t; match(_t,PROVERSION); _t = _t.getNextSibling(); break; } case TRANSACTION: { AST tmp721_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); break; } case MACHINECLASS: { AST tmp722_AST_in = (AST)_t; match(_t,MACHINECLASS); _t = _t.getNextSibling(); break; } case AAPCONTROL: { AST tmp723_AST_in = (AST)_t; match(_t,AAPCONTROL); _t = _t.getNextSibling(); break; } case GETCODEPAGES: { AST tmp724_AST_in = (AST)_t; match(_t,GETCODEPAGES); _t = _t.getNextSibling(); break; } case COMSELF: { AST tmp725_AST_in = (AST)_t; match(_t,COMSELF); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 29606, 4293, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 29606, 4293, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 29606, 4293, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 29606, 4293, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 90...
for (i = 0; i < nInUse; i++)
for (i = 0; i < nInUse; i++) {
private void generateMTFValues() { char yy[] = new char[256]; int i, j; char tmp; char tmp2; int zPend; int wr; int EOB; makeMaps(); EOB = nInUse+1; for (i = 0; i <= EOB; i++) mtfFreq[i] = 0; wr = 0; zPend = 0; for (i = 0; i < nInUse; i++) yy[i] = (char) i; for (i = 0; i <= last; i++) { char ll_i; ll_i = unseqToSeq[block[zptr[i]]]; j = 0; tmp = yy[j]; while ( ll_i != tmp ) { j++; tmp2 = tmp; tmp = yy[j]; yy[j] = tmp2; }; yy[0] = tmp; if (j == 0) { zPend++; } else { if (zPend > 0) { zPend--; while (true) { switch (zPend % 2) { case 0: szptr[wr] = (short)RUNA; wr++; mtfFreq[RUNA]++; break; case 1: szptr[wr] = (short)RUNB; wr++; mtfFreq[RUNB]++; break; }; if (zPend < 2) break; zPend = (zPend - 2) / 2; }; zPend = 0; } szptr[wr] = (short)(j + 1); wr++; mtfFreq[j + 1]++; } } if (zPend > 0) { zPend--; while (true) { switch (zPend % 2) { case 0: szptr[wr] = (short)RUNA; wr++; mtfFreq[RUNA]++; break; case 1: szptr[wr] = (short)RUNB; wr++; mtfFreq[RUNB]++; break; } if (zPend < 2) break; zPend = (zPend - 2) / 2; } } szptr[wr] = (short)EOB; wr++; mtfFreq[EOB]++; nMTF = wr; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/7a4e9ca2278d5e22a3492abb964312150d0286b9/CBZip2OutputStream.java/clean/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 6152, 42, 1972, 1435, 288, 3639, 1149, 9016, 8526, 273, 394, 1149, 63, 5034, 15533, 3639, 509, 225, 277, 16, 525, 31, 3639, 1149, 1853, 31, 3639, 1149, 1853, 22, 31, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 6152, 42, 1972, 1435, 288, 3639, 1149, 9016, 8526, 273, 394, 1149, 63, 5034, 15533, 3639, 509, 225, 277, 16, 525, 31, 3639, 1149, 1853, 31, 3639, 1149, 1853, 22, 31, 36...
Adapter a = (Adapter) ADAPTERS.get(null); if (a != null) { return a; } throw new IllegalArgumentException("no adapter for: " + type);
throw new IllegalArgumentException("no adapter for: " + javaClass);
public static final Adapter getAdapter(ObjectType type) { for (ObjectType ot = type; ot != null; ot = ot.getSupertype()) { Class klass = ot.getJavaClass(); if (klass != null) { Adapter a = getAdapter(klass); if (a != null) { return a; } } } Adapter a = (Adapter) ADAPTERS.get(null); if (a != null) { return a; } throw new IllegalArgumentException("no adapter for: " + type); }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/4c722580f330bf9dfc1ffedb6c4da10a26fb5855/Adapter.java/buggy/archive/core-platform/src/com/redhat/persistence/Adapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 727, 14238, 16679, 12, 17610, 618, 13, 288, 3639, 364, 261, 17610, 15835, 273, 618, 31, 15835, 480, 446, 31, 15835, 273, 15835, 18, 588, 8051, 723, 10756, 288, 202, 565, 1659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 14238, 16679, 12, 17610, 618, 13, 288, 3639, 364, 261, 17610, 15835, 273, 618, 31, 15835, 480, 446, 31, 15835, 273, 15835, 18, 588, 8051, 723, 10756, 288, 202, 565, 1659, ...
if(endOfRecord != null && line.startsWith(endOfRecord)) { return null;
if (endOfRecord != null) { if (endOfRecord == TagValueParser.BLANK_LINE_EOR) { if (line.equals(TagValueParser.BLANK_LINE_EOR)) { return null; } } else { if (line.startsWith(endOfRecord)) { return null; } }
public TagValue parse(Object o) { String line = o.toString(); if(endOfRecord != null && line.startsWith(endOfRecord)) { return null; } Matcher matcher = pattern.matcher(line); matcher.find(); String tag = matcher.group(tagGroup); if(trimTag) { tag = tag.trim(); } String value = matcher.group(valueGroup); if(trimValue) { value = value.trim(); } if(continueOnEmptyTag && (tag.length() == 0)) { return new TagValue(this.tag, value, false); } else if(mergeSameTag && tag.equals(this.tag)) { return new TagValue(tag, value, false); } else { return new TagValue(this.tag = tag, value, true); } }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/f35b0d37963f38cbc59b1f6dcd81a261a4622548/RegexpParser.java/clean/src/org/biojava/bio/program/tagvalue/RegexpParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4034, 620, 1109, 12, 921, 320, 13, 288, 565, 514, 980, 273, 320, 18, 10492, 5621, 3639, 309, 12, 409, 951, 2115, 480, 446, 597, 980, 18, 17514, 1190, 12, 409, 951, 2115, 3719, 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, 282, 1071, 4034, 620, 1109, 12, 921, 320, 13, 288, 565, 514, 980, 273, 320, 18, 10492, 5621, 3639, 309, 12, 409, 951, 2115, 480, 446, 597, 980, 18, 17514, 1190, 12, 409, 951, 2115, 3719, 2...
for (int c = 0; c < CHKSUMLEN; ++c) { outbuf[offset++] = (byte) ' ';
for ( int c = 0; c < CHKSUMLEN; ++c ) { outbuf[ offset++ ] = (byte) ' ';
public void writeEntryHeader(byte[] outbuf) { int offset = 0; offset = TarUtils.getNameBytes(this.name, outbuf, offset, NAMELEN); offset = TarUtils.getOctalBytes(this.mode, outbuf, offset, MODELEN); offset = TarUtils.getOctalBytes(this.userId, outbuf, offset, UIDLEN); offset = TarUtils.getOctalBytes(this.groupId, outbuf, offset, GIDLEN); offset = TarUtils.getLongOctalBytes(this.size, outbuf, offset, SIZELEN); offset = TarUtils.getLongOctalBytes(this.modTime, outbuf, offset, MODTIMELEN); int csOffset = offset; for (int c = 0; c < CHKSUMLEN; ++c) { outbuf[offset++] = (byte) ' '; } outbuf[offset++] = this.linkFlag; offset = TarUtils.getNameBytes(this.linkName, outbuf, offset, NAMELEN); offset = TarUtils.getNameBytes(this.magic, outbuf, offset, MAGICLEN); offset = TarUtils.getNameBytes(this.userName, outbuf, offset, UNAMELEN); offset = TarUtils.getNameBytes(this.groupName, outbuf, offset, GNAMELEN); offset = TarUtils.getOctalBytes(this.devMajor, outbuf, offset, DEVLEN); offset = TarUtils.getOctalBytes(this.devMinor, outbuf, offset, DEVLEN); while (offset < outbuf.length) { outbuf[offset++] = 0; } long checkSum = TarUtils.computeCheckSum(outbuf); TarUtils.getCheckSumOctalBytes(checkSum, outbuf, csOffset, CHKSUMLEN); }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/TarEntry.java/buggy/src/main/java/org/codehaus/plexus/archiver/tar/TarEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1045, 1622, 1864, 12, 7229, 8526, 596, 4385, 13, 288, 3639, 509, 1384, 273, 374, 31, 3639, 1384, 273, 20334, 1989, 18, 17994, 2160, 12, 2211, 18, 529, 16, 596, 4385, 16, 1384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 1622, 1864, 12, 7229, 8526, 596, 4385, 13, 288, 3639, 509, 1384, 273, 374, 31, 3639, 1384, 273, 20334, 1989, 18, 17994, 2160, 12, 2211, 18, 529, 16, 596, 4385, 16, 1384...
return nativeHasMoreElements(nativeRDFNode);
return nativeHasMoreElements(nativeWebShell, nativeRDFNode);
public boolean hasMoreElements(){ Assert.assert(-1 != nativeRDFNode); return nativeHasMoreElements(nativeRDFNode);}
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/e6a5d40f61594538c2df8ef076b836a3827a1f3d/RDFEnumeration.java/clean/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFEnumeration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 16073, 1435, 95, 565, 5452, 18, 11231, 19236, 21, 480, 6448, 30137, 907, 1769, 565, 327, 6448, 5582, 7417, 3471, 12, 13635, 30137, 907, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 16073, 1435, 95, 565, 5452, 18, 11231, 19236, 21, 480, 6448, 30137, 907, 1769, 565, 327, 6448, 5582, 7417, 3471, 12, 13635, 30137, 907, 1769, 97, 2, -100, -100, -100, -100, -100, -...
throw new SocketException("DatagramSocket.getSoTimeout - not yet implemented");
Object timeout = impl.getOption(SocketOptions.SO_TIMEOUT); if (timeout instanceof Integer) return ((Integer)timeout).intValue(); else return 0;
public synchronized int getSoTimeout() throws SocketException { // FIXME: TODO - DatagramSocket.getSoTimeout throw new SocketException("DatagramSocket.getSoTimeout - not yet implemented"); }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/9378f999718203e09ed4e030ad6ef70f9d666322/DatagramSocket.java/clean/libjava/java/net/DatagramSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3852, 509, 1322, 83, 2694, 1435, 1216, 8758, 503, 225, 288, 565, 368, 9852, 30, 2660, 300, 6168, 17049, 4534, 18, 588, 10225, 2694, 565, 1033, 2021, 273, 9380, 18, 588, 1895, 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, 3852, 509, 1322, 83, 2694, 1435, 1216, 8758, 503, 225, 288, 565, 368, 9852, 30, 2660, 300, 6168, 17049, 4534, 18, 588, 10225, 2694, 565, 1033, 2021, 273, 9380, 18, 588, 1895, 12, ...
public abstract void completeLocalOutput(File fsOutputFile, File tmpLocalFile) throws IOException;
public void completeLocalOutput(File src, File dst) throws IOException { completeLocalOutput(new Path(src.toString()), new Path(dst.toString())); }
public abstract void completeLocalOutput(File fsOutputFile, File tmpLocalFile) throws IOException;
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/ee01fef4b4fb82c7492a4a747793839a4d14cd39/FileSystem.java/buggy/src/java/org/apache/hadoop/fs/FileSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 918, 3912, 2042, 1447, 12, 812, 2662, 1447, 812, 16, 1387, 1853, 2042, 812, 13, 1216, 1860, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8770, 918, 3912, 2042, 1447, 12, 812, 2662, 1447, 812, 16, 1387, 1853, 2042, 812, 13, 1216, 1860, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cdataBuffer = null; inDTD = false;
inDTD = false; inCDATA = false;
public void startDocument() throws SAXException { preInfo = new LinkedList(); namespaces = new HashTableStack(); namespaces.put("xml", XMLSupport.XML_NAMESPACE_URI); namespaces.put("xmlns", XMLSupport.XMLNS_NAMESPACE_URI); namespaces.put("", null); cdataBuffer = null; inDTD = false; currentNode = null; if (createDocumentDescriptor) { documentDescriptor = new DocumentDescriptor(); } else { documentDescriptor = null; } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4baa37d5eea6ff5709e9b27f2e3414d8c3a27005/SAXDocumentFactory.java/clean/sources/org/apache/batik/dom/util/SAXDocumentFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 2519, 1435, 1216, 14366, 288, 3639, 675, 966, 565, 273, 394, 10688, 5621, 3639, 7728, 273, 394, 2474, 1388, 2624, 5621, 202, 16078, 18, 458, 2932, 2902, 3113, 3167, 6289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 2519, 1435, 1216, 14366, 288, 3639, 675, 966, 565, 273, 394, 10688, 5621, 3639, 7728, 273, 394, 2474, 1388, 2624, 5621, 202, 16078, 18, 458, 2932, 2902, 3113, 3167, 6289, ...
public TreeClassChooserDialog( String title, Project project, GlobalSearchScope scope, TreeClassChooser.ClassFilter classFilter, PsiClass initialClass ){ this(title, project, scope, classFilter, null, initialClass, PsiClassChildrenSource.NONE);
public TreeClassChooserDialog(String title, Project project) { this(title, project, null);
public TreeClassChooserDialog( String title, Project project, GlobalSearchScope scope, TreeClassChooser.ClassFilter classFilter, PsiClass initialClass ){ this(title, project, scope, classFilter, null, initialClass, PsiClassChildrenSource.NONE); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/57ce05dc89e479903f819b269fc51c5c4b12de6e/TreeClassChooserDialog.java/buggy/source/com/intellij/ide/util/TreeClassChooserDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4902, 797, 17324, 6353, 12, 565, 514, 2077, 16, 565, 5420, 1984, 16, 565, 8510, 2979, 3876, 2146, 16, 565, 4902, 797, 17324, 18, 797, 1586, 667, 1586, 16, 565, 453, 7722, 797, 217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4902, 797, 17324, 6353, 12, 565, 514, 2077, 16, 565, 5420, 1984, 16, 565, 8510, 2979, 3876, 2146, 16, 565, 4902, 797, 17324, 18, 797, 1586, 667, 1586, 16, 565, 453, 7722, 797, 217...
return -1;
return SVNCommitInfo.NULL;
public long doMkDir(String[] urls, String commitMessage) throws SVNException { if (urls == null || urls.length == 0) { return -1; } for (int i = 0; i < urls.length; i++) { urls[i] = validateURL(urls[i]); } List paths = new ArrayList(); String rootURL = SVNPathUtil.condenceURLs(urls, paths, false); if (rootURL == null || "".equals(rootURL)) { SVNErrorManager.error("svn: Cannot create passed URLs as part of a single commit, probably they are refer to the different repositories"); } if (paths.isEmpty()) { paths.add(PathUtil.tail(rootURL)); rootURL = PathUtil.removeTail(rootURL); } if (paths.contains("")) { List convertedPaths = new ArrayList(); String tail = PathUtil.tail(rootURL); rootURL = PathUtil.removeTail(rootURL); for (Iterator commitPaths = paths.iterator(); commitPaths.hasNext();) { String path = (String) commitPaths.next(); if ("".equals(path)) { convertedPaths.add(tail); } else { convertedPaths.add(PathUtil.append(tail, path)); } } paths = convertedPaths; } SVNCommitItem[] commitItems = new SVNCommitItem[paths.size()]; for (int i = 0; i < commitItems.length; i++) { String path = (String) paths.get(i); commitItems[i] = new SVNCommitItem(null, PathUtil.append(rootURL, path), null, null, null, true, false, false, false, false, false); } commitMessage = getCommitHandler().getCommitMessage(commitMessage, commitItems); if (commitMessage == null) { return -1; } List decodedPaths = new ArrayList(); for (Iterator commitPaths = paths.iterator(); commitPaths.hasNext();) { String path = (String) commitPaths.next(); decodedPaths.add(PathUtil.decode(path)); } paths = decodedPaths; SVNRepository repos = createRepository(rootURL); ISVNEditor commitEditor = repos.getCommitEditor(commitMessage, null, false, null); ISVNCommitPathHandler creater = new ISVNCommitPathHandler() { public boolean handleCommitPath(String commitPath, ISVNEditor commitEditor) throws SVNException { commitEditor.addDir(commitPath, null, -1); return true; } }; SVNCommitInfo info; try { SVNCommitUtil.driveCommitEditor(creater, paths, commitEditor, -1); info = commitEditor.closeEdit(); } catch (SVNException e) { try { commitEditor.abortEdit(); } catch (SVNException inner) { // } throw e; } return info != null ? info.getNewRevision() : -1; }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/a4432e89c637c38420797cd6885caa05317a34c3/SVNCommitClient.java/clean/javasvn/src/org/tmatesoft/svn/core/wc/SVNCommitClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 741, 49, 79, 1621, 12, 780, 8526, 6903, 16, 514, 3294, 1079, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 10518, 422, 446, 747, 6903, 18, 2469, 422, 374, 13, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 741, 49, 79, 1621, 12, 780, 8526, 6903, 16, 514, 3294, 1079, 13, 1216, 29537, 50, 503, 288, 3639, 309, 261, 10518, 422, 446, 747, 6903, 18, 2469, 422, 374, 13, 288, 5411, ...
internalPositionOffset = 0;
public List parseTokens() { List tokens = new ArrayList(); internalPositionOffset = 0; position = -1; line = 0; lines.add(new Integer(0)); while(nextCharacter()) { Token token = null; if(C(0) == '\'') token = matchSingleQuoteString(); else if(C(0) == '\"') token = matchDoubleQuoteString(); else if(C(0) == '/' && C(1) == '/') token = matchSingleComment(); else if(C(0) == '/' && C(1) == '*') token = matchComplexComment(); else if(C(0) == '{') token = matchBlock(); else if(C(0) == ':') token = new Token(TOKEN_COLON, position, position+1, internalPositionOffset, line, linePosition, text); else if(C(0) == ';') token = new Token(TOKEN_SEMI, position, position+1, internalPositionOffset, line, linePosition, text); else if(isLetter()) token = matchID(); else if(C(0) == '(') token = new Token(TOKEN_LPAREN, position, position+1, internalPositionOffset, line, linePosition, text); else if(C(0) == ')') token = new Token(TOKEN_RPAREN, position, position+1, internalPositionOffset, line, linePosition, text); else if(!isWhitespace()) token = new Token(TOKEN_CHAR, position, position+1, internalPositionOffset, line, linePosition, text); if(token != null) tokens.add(token); } return tokens; }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/f13d59e2934691783709edc81c3eb7cea20d0849/Lexer.java/buggy/src/org/antlr/works/parser/Lexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 1109, 5157, 1435, 288, 3639, 987, 2430, 273, 394, 2407, 5621, 9079, 1754, 273, 300, 21, 31, 3639, 980, 273, 374, 31, 3639, 2362, 18, 1289, 12, 2704, 2144, 12, 20, 10019, 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, 987, 1109, 5157, 1435, 288, 3639, 987, 2430, 273, 394, 2407, 5621, 9079, 1754, 273, 300, 21, 31, 3639, 980, 273, 374, 31, 3639, 2362, 18, 1289, 12, 2704, 2144, 12, 20, 10019, 3639...
if (!cplist.contains(curr)) { fCPathList.addElement(curr);
if (!group.contains(curr)) {
protected void addContributed() { CPElement[] includes = openContainerSelectionDialog(null); if (includes != null) { int nElementsChosen = includes.length; // remove duplicates List cplist = fCPathList.getElements(); for (int i = 0; i < nElementsChosen; i++) { CPElement curr = includes[i]; if (!cplist.contains(curr)) { fCPathList.addElement(curr); addPathToResourceGroups(curr, getSelectedGroup(), fIncludeSymPathsList.getElements()); fIncludeSymPathsList.refresh(); fIncludeSymPathsList.expandElement(getSelectedGroup(), 1); } } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/53738dc5bfed46178452b79843ccf0ac0f233d45/CPathIncludeSymbolEntryPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathIncludeSymbolEntryPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 442, 11050, 1435, 288, 202, 202, 4258, 1046, 8526, 6104, 273, 1696, 2170, 6233, 6353, 12, 2011, 1769, 202, 202, 430, 261, 18499, 480, 446, 13, 288, 1082, 202, 474, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 442, 11050, 1435, 288, 202, 202, 4258, 1046, 8526, 6104, 273, 1696, 2170, 6233, 6353, 12, 2011, 1769, 202, 202, 430, 261, 18499, 480, 446, 13, 288, 1082, 202, 474, ...
return m_endLatch;
return endLatch;
public synchronized Latch provideEndLatch() { return m_endLatch; }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/912b652cc2d9b3899a6b0bbb996aa54bb1847081/WorkerContext.java/clean/modules/core/src/java/org/apache/geronimo/connector/work/WorkerContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 511, 505, 5615, 1638, 23463, 1435, 288, 3639, 327, 679, 23463, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 511, 505, 5615, 1638, 23463, 1435, 288, 3639, 327, 679, 23463, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
iVisited.accept(_Payload);
_Payload.visitLAsgnNode(iVisited);
public void visitLAsgnNode(LAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/clean/org/jruby/nodes/visitor/DefaultIteratorVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 2534, 1055, 82, 907, 12, 2534, 1055, 82, 907, 277, 30019, 13, 288, 202, 202, 77, 30019, 18, 9436, 24899, 6110, 1769, 202, 202, 77, 30019, 18, 24805, 907, 7675, 9436...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 2534, 1055, 82, 907, 12, 2534, 1055, 82, 907, 277, 30019, 13, 288, 202, 202, 77, 30019, 18, 9436, 24899, 6110, 1769, 202, 202, 77, 30019, 18, 24805, 907, 7675, 9436...
lhsType_ + " and " + rhsType_ + " in " + SignatureConverter.convertMethodSignature(methodGen) + " at " + location.getHandle());
lhsType_ + " and " + rhsType_ + " in " + SignatureConverter.convertMethodSignature(methodGen) + " at " + location.getHandle());
private void checkEqualsComparison( Location location, JavaClass jclass, MethodGen methodGen, TypeDataflow typeDataflow) throws DataflowAnalysisException { InstructionHandle handle = location.getHandle(); String sourceFile = jclass.getSourceFileName(); TypeFrame frame = typeDataflow.getFactAtLocation(location); if (frame.getStackDepth() < 2) throw new DataflowAnalysisException("Stack underflow", methodGen, handle); int numSlots = frame.getNumSlots(); Type lhsType_ = frame.getValue(numSlots - 2); Type rhsType_ = frame.getValue(numSlots - 1); // Ignore top and bottom values if (lhsType_.getType() == T_TOP || lhsType_.getType() == T_BOTTOM || rhsType_.getType() == T_TOP || rhsType_.getType() == T_BOTTOM) return; if (!(lhsType_ instanceof ReferenceType) || !(rhsType_ instanceof ReferenceType)) { if (rhsType_.getType() == T_NULL) { boolean isTestCase = false; Method method = methodGen.getMethod(); if (method.getName().startsWith("test") && method.isPublic() && method.getSignature().equals("()V") || methodGen.getClassName().endsWith("Test")) isTestCase = true; // A literal null value was passed directly to equals(). if (!isTestCase) bugReporter.reportBug(new BugInstance(this, "EC_NULL_ARG", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle())); } else if (lhsType_.getType() == T_NULL) { // Hmm...in this case, equals() is being invoked on // a literal null value. This is really the // purview of FindNullDeref. So, we'll just do nothing. } else { bugReporter.logError("equals() used to compare non-object type(s) " + lhsType_ + " and " + rhsType_ + " in " + SignatureConverter.convertMethodSignature(methodGen) + " at " + location.getHandle()); } return; } ReferenceType originalLhsType = (ReferenceType) lhsType_; ReferenceType originalRhsType = (ReferenceType) rhsType_; if (lhsType_ instanceof ArrayType && rhsType_ instanceof ArrayType) { bugReporter.reportBug(new BugInstance(this, "EC_BAD_ARRAY_COMPARE", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addType(originalLhsType.getSignature()) .addType(originalRhsType.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); do { lhsType_ = ((ArrayType)lhsType_).getElementType(); rhsType_ = ((ArrayType)rhsType_).getElementType(); } while (lhsType_ instanceof ArrayType && rhsType_ instanceof ArrayType); } if (lhsType_ instanceof ArrayType) { int priority = HIGH_PRIORITY; if (rhsType_.equals(ObjectType.OBJECT)) priority = LOW_PRIORITY; bugReporter.reportBug(new BugInstance(this, "EC_ARRAY_AND_NONARRAY", priority) .addClassAndMethod(methodGen, sourceFile) .addType(originalLhsType.getSignature()) .addType(originalRhsType.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); } if (rhsType_ instanceof ArrayType) { int priority = HIGH_PRIORITY; if (lhsType_.equals(ObjectType.OBJECT)) priority = LOW_PRIORITY; bugReporter.reportBug(new BugInstance(this, "EC_ARRAY_AND_NONARRAY", priority) .addClassAndMethod(methodGen, sourceFile) .addType(originalLhsType.getSignature()) .addType(originalRhsType.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); } if (lhsType_.equals(rhsType_)) return; // For now, ignore the case where either reference is not // of an object type. (It could be either an array or null.) if (!(lhsType_ instanceof ObjectType) || !(rhsType_ instanceof ObjectType)) return; ObjectType lhsType = (ObjectType) lhsType_; ObjectType rhsType = (ObjectType) rhsType_; int priority = LOW_PRIORITY + 1; String bugType = "EC_UNRELATED_TYPES"; // See if the types are related by inheritance. try { if (!Hierarchy.isSubtype(lhsType, rhsType) && !Hierarchy.isSubtype(rhsType, lhsType)) { AnalysisContext analysisContext = AnalysisContext.currentAnalysisContext(); // Look up the classes JavaClass lhsClass = analysisContext.lookupClass(lhsType.getClassName()); JavaClass rhsClass = analysisContext.lookupClass(rhsType.getClassName()); if (!lhsClass.isInterface() && !rhsClass.isInterface()) { // Both are class types, and therefore there is no possible way // the compared objects can have the same runtime type. priority = HIGH_PRIORITY; } else { /* if (DEBUG) { System.out.println("Subtypes of " + lhsClass.getClassName() + " are " + classSetToString(analysisContext.getSubtypes().getTransitiveSubtypes(lhsClass))); System.out.println("Subtypes of " + rhsClass.getClassName() + " are " + classSetToString(analysisContext.getSubtypes().getTransitiveSubtypes(rhsClass))); } */ // Look up the common subtypes of the two types. If the // intersection does not contain at least one instantiable class, // then issue a warning of the appropriate type. Set<JavaClass> commonSubtypes = analysisContext.getSubtypes().getTransitiveCommonSubtypes(lhsClass, rhsClass); if (!containsAtLeastOneInstantiableClass(commonSubtypes)) { priority = HIGH_PRIORITY; bugType = (lhsClass.isInterface() && rhsClass.isInterface()) ? "EC_UNRELATED_INTERFACES" : "EC_UNRELATED_CLASS_AND_INTERFACE"; } } } } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); return; } if (methodGen.getName().startsWith("test") && methodGen.getSignature().equals("()V")) { try { if (Hierarchy.isSubtype(methodGen.getClassName(), "junit.framework.TestCase")) priority+=2; } catch (ClassNotFoundException e) { priority+=2; } } if (priority <= LOW_PRIORITY) { bugReporter.reportBug(new BugInstance(this, bugType, priority) .addClassAndMethod(methodGen, sourceFile) .addType(originalLhsType.getSignature()) .addType(originalRhsType.getSignature()) .addSourceLine(this.classContext, methodGen, sourceFile, location.getHandle()) ); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/5dd3bc47d2b3ff49441f715002fb71216e0e2d35/FindRefComparison.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindRefComparison.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 8867, 16059, 12, 1082, 202, 2735, 2117, 16, 1082, 202, 5852, 797, 525, 1106, 16, 1082, 202, 1305, 7642, 707, 7642, 16, 1082, 202, 559, 751, 2426, 618, 751, 2426, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 8867, 16059, 12, 1082, 202, 2735, 2117, 16, 1082, 202, 5852, 797, 525, 1106, 16, 1082, 202, 1305, 7642, 707, 7642, 16, 1082, 202, 559, 751, 2426, 618, 751, 2426, 13...
srcurl = new URI(URLEncoder.encode(srcPath, "UTF-8")); desturl = new URI(URLEncoder.encode(destPath, "UTF-8"));
srcurl = new URI(srcPath); desturl = new URI(destPath);
public static void main(String[] args) throws IOException { Configuration conf = new Configuration(); String srcPath = null; String destPath = null; for (int idx = 0; idx < args.length; idx++) { if ("-dfs".equals(args[idx])) { if (idx == (args.length-1)) { System.out.println(usage); return; } conf.set("fs.default.name", args[++idx]); } else if ("-jt".equals(args[idx])) { if (idx == (args.length-1)) { System.out.println(usage); return; } conf.set("mapred.job.tracker", args[++idx]); } else if ("-config".equals(args[idx])) { if (idx == (args.length-1)) { System.out.println(usage); return; } conf.addFinalResource(new Path(args[++idx])); } else { if (srcPath == null) { srcPath = args[idx]; } else if (destPath == null) { destPath = args[idx]; } else { System.out.println(usage); return; } } } // mandatory command-line parameters if (srcPath == null || destPath == null) { System.out.println(usage); return; } URI srcurl = null; URI desturl = null; try { srcurl = new URI(URLEncoder.encode(srcPath, "UTF-8")); desturl = new URI(URLEncoder.encode(destPath, "UTF-8")); } catch (URISyntaxException ex) { throw new RuntimeException("URL syntax error.", ex); } JobConf jobConf = new JobConf(conf, CopyFiles.class); jobConf.setJobName("copy-files"); String srcFileSysName = getFileSysName(srcurl); String destFileSysName = getFileSysName(desturl); jobConf.set("copy.src.fs", srcFileSysName); jobConf.set("copy.dest.fs", destFileSysName); FileSystem srcfs; srcfs = FileSystem.getNamed(srcFileSysName, conf); FileSystem destfs = FileSystem.getNamed(destFileSysName, conf); srcPath = URLDecoder.decode(srcurl.getPath(), "UTF-8"); if ("".equals(srcPath)) { srcPath = "/"; } destPath = URLDecoder.decode(desturl.getPath(), "UTF-8"); if ("".equals(destPath)) { destPath = "/"; } boolean isFile = false; Path tmpPath = new Path(srcPath); Path rootPath = new Path(srcPath); if (srcfs.isFile(tmpPath)) { isFile = true; tmpPath = tmpPath.getParent(); rootPath = rootPath.getParent(); jobConf.set("copy.src.path", tmpPath.toString()); } else { jobConf.set("copy.src.path", srcPath); } jobConf.set("copy.dest.path", destPath); if (!srcfs.exists(tmpPath)) { System.out.println(srcPath+" does not exist."); return; } // turn off speculative execution, because DFS doesn't handle // multiple writers to the same file. jobConf.setSpeculativeExecution(false); jobConf.setInputKeyClass(UTF8.class); jobConf.setInputValueClass(UTF8.class); jobConf.setInputFormat(SequenceFileInputFormat.class); jobConf.setOutputKeyClass(UTF8.class); jobConf.setOutputValueClass(UTF8.class); jobConf.setOutputFormat(SequenceFileOutputFormat.class); jobConf.setMapperClass(CopyFilesMapper.class); jobConf.setReducerClass(CopyFiles.class); jobConf.setNumReduceTasks(1); Path tmpDir = new Path("copy-files"); Path inDir = new Path(tmpDir, "in"); Path fakeOutDir = new Path(tmpDir, "out"); FileSystem fileSys = FileSystem.get(jobConf); fileSys.delete(tmpDir); fileSys.mkdirs(inDir); jobConf.setInputPath(inDir); jobConf.setOutputPath(fakeOutDir); // create new sequence-files for holding paths ArrayList pathList = new ArrayList(); ArrayList finalPathList = new ArrayList(); pathList.add(new Path(srcPath)); long totalBytes = 0; int part = 0; while(!pathList.isEmpty()) { Path top = (Path) pathList.remove(0); if (srcfs.isFile(top)) { totalBytes += srcfs.getLength(top); top = makeRelative(rootPath, top); finalPathList.add(top.toString()); } else { Path[] paths = srcfs.listPaths(top); for (int idx = 0; idx < paths.length; idx++) { pathList.add(paths[idx]); } } } // ideal number of maps is one per file (if the map-launching overhead // were 0. It is limited by jobtrackers handling capacity, which lets say // is MAX_NUM_MAPS. It is also limited by MAX_MAPS_PER_NODE. Also for small // files it is better to determine number of maps by amount of data per map. int nFiles = finalPathList.size(); int numMaps = nFiles; if (numMaps > MAX_NUM_MAPS) { numMaps = MAX_NUM_MAPS; } if (numMaps > (int) (totalBytes / MIN_BYTES_PER_MAP)) { numMaps = (int) (totalBytes / MIN_BYTES_PER_MAP); } JobClient client = new JobClient(jobConf); ClusterStatus cluster = client.getClusterStatus(); int tmpMaps = cluster.getTaskTrackers() * MAX_MAPS_PER_NODE; if (numMaps > tmpMaps) { numMaps = tmpMaps; } if (numMaps == 0) { numMaps = 1; } jobConf.setNumMapTasks(numMaps); for(int idx=0; idx < numMaps; ++idx) { Path file = new Path(inDir, "part"+idx); SequenceFile.Writer writer = new SequenceFile.Writer(fileSys, file, UTF8.class, UTF8.class); for (int ipath = idx; ipath < nFiles; ipath += numMaps) { String path = (String) finalPathList.get(ipath); writer.append(new UTF8(path), new UTF8("")); } writer.close(); } finalPathList = null; try { JobClient.runJob(jobConf); } finally { fileSys.delete(tmpDir); } }
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/bd4f40779c2f4edce0b9d24fc8d188e48c59daeb/CopyFiles.java/buggy/src/java/org/apache/hadoop/util/CopyFiles.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1860, 288, 565, 4659, 2195, 273, 394, 4659, 5621, 565, 514, 19497, 273, 446, 31, 565, 514, 22459, 273, 446, 31, 3639, 364, 261, 474, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 1216, 1860, 288, 565, 4659, 2195, 273, 394, 4659, 5621, 565, 514, 19497, 273, 446, 31, 565, 514, 22459, 273, 446, 31, 3639, 364, 261, 474, ...
} else {
}else {
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING && A_OpenCms.isLogging() && C_DEBUG) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } I_CmsSession session = cms.getRequestContext().getSession(true); CmsRequestContext reqCont = cms.getRequestContext(); CmsXmlWpTemplateFile xmlTemplateDocument = new CmsXmlWpTemplateFile(cms, templateFile); boolean userYetChanged = true; boolean userYetEstablished = true; // find out which template (=perspective) should be used String perspective = (String)parameters.get("perspective"); if(perspective != null && perspective.equals("user")) { session.removeValue("ERROR"); if(reqCont.getRequest().getParameter("CHANGE") != null) { // change data of selected user perspective = "changeuser"; userYetChanged = false; } else { if(reqCont.getRequest().getParameter("DELETE") != null) { // delete the selected user perspective = "deleteuser"; } else { if(reqCont.getRequest().getParameter("NEW") != null) { // establish a new user perspective = "newuser"; userYetEstablished = false; } } } } if(perspective == null) { // display the first template, which lets you chose the action perspective = new String("user"); } if(perspective.equals("newuser") || perspective.equals("changeuser")) { // first the common part of the two actions: // read the common parameters like first name, description, ... String firstname, desc, street, pwd, pwd2, user, userLastname, town, zipcode, email, defaultGroup; if(session.getValue("ERROR") == null) { firstname = (String)parameters.get("USERFIRSTNAME"); desc = (String)parameters.get("USERDESC"); street = (String)parameters.get("USERSTREET"); pwd = (String)parameters.get("PWD"); pwd2 = (String)parameters.get("PWD2"); user = (String)parameters.get("USER"); userLastname = (String)parameters.get("USERNAME"); town = (String)parameters.get("TOWN"); zipcode = (String)parameters.get("ZIP"); email = (String)parameters.get("USEREMAIL"); defaultGroup = (String)parameters.get("DEFAULTGROUP"); } else { // an error has occurred before, retrieve the form data from the session firstname = (String)session.getValue("USERFIRSTNAME"); desc = (String)session.getValue("USERDESC"); street = (String)session.getValue("USERSTREET"); pwd = (String)session.getValue("PWD"); pwd2 = (String)session.getValue("PWD2"); user = (String)session.getValue("USER"); userLastname = (String)session.getValue("USERNAME"); town = (String)session.getValue("TOWN"); zipcode = (String)session.getValue("ZIP"); email = (String)session.getValue("USEREMAIL"); defaultGroup = (String)session.getValue("DEFAULTGROUP"); session.removeValue("ERROR"); } if(firstname == null) { firstname = ""; } if(desc == null) { desc = ""; } if(street == null) { street = ""; } if(pwd == null) { pwd = ""; } if(pwd2 == null) { pwd2 = ""; } if(user == null) { user = ""; } if(userLastname == null) { userLastname = ""; } if(town == null) { town = ""; } if(zipcode == null) { zipcode = ""; } if(email == null) { email = ""; } if(defaultGroup == null) { defaultGroup = ""; } // vectors of Strings that hold the selected and not selected Groups Vector selectedGroups = (Vector)session.getValue("selectedGroups"); Vector notSelectedGroups = (Vector)session.getValue("notSelectedGroups"); if(perspective.equals("newuser")) { // input is the form for establishing new users templateSelector = "newuser"; if(!userYetEstablished) { // first time the form is visited user = ""; selectedGroups = new Vector(); notSelectedGroups = new Vector(); selectedGroups.addElement(C_GROUP_USERS); // preselect Users Vector groups = cms.getGroups(); for(int z = 0;z < groups.size();z++) { String aName = (String)((CmsGroup)groups.elementAt(z)).getName(); if(!C_GROUP_USERS.equals(aName)) { notSelectedGroups.addElement(aName); } } session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); } if(reqCont.getRequest().getParameter("ADD") != null) { // add a new group to selectedGroups String groupname = (String)parameters.get("notselectgroup"); if(groupname != null) { selectedGroups.addElement(groupname); notSelectedGroups.removeElement(groupname); } session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); } else { if(reqCont.getRequest().getParameter("REMOVE") != null) { // delete a new group from selectedGroups // and move it to notSelectedGroups String groupname = (String)parameters.get("selectgroup"); if(groupname != null) { notSelectedGroups.addElement(groupname); selectedGroups.removeElement(groupname); if(groupname.equals(defaultGroup)) { defaultGroup = ""; } } session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); } else { if(reqCont.getRequest().getParameter("OK") != null) { // form submitted, try to establish new user try { if(email.equals("") || userLastname.equals("") || user.equals("")) { throw new CmsException("user data missing", CmsException.C_NO_USER); } if(!pwd.equals(pwd2)) { throw new CmsException("unequal passwords", CmsException.C_SHORT_PASSWORD); } if(pwd.length() < C_PASSWORD_MINIMUMSIZE) { throw new CmsException("password too short", CmsException.C_SHORT_PASSWORD); } Hashtable additionalInfo = new Hashtable(); // additionalInfo.put(C_ADDITIONAL_INFO_ZIPCODE, zipcode); // additionalInfo.put(C_ADDITIONAL_INFO_TOWN, town); CmsUser newUser = cms.addUser(user, pwd, defaultGroup, desc, additionalInfo, C_FLAG_ENABLED); newUser.setEmail(email); newUser.setFirstname(firstname); newUser.setLastname(userLastname); newUser.setAddress(street); newUser.setAdditionalInfo(C_ADDITIONAL_INFO_ZIPCODE, zipcode); newUser.setAdditionalInfo(C_ADDITIONAL_INFO_TOWN, town); for(int z = 0;z < selectedGroups.size();z++) { String groupname = (String)selectedGroups.elementAt(z); if(!groupname.equals(defaultGroup)) { cms.addUserToGroup(user, groupname); } } cms.writeUser(newUser); // update in the database session.removeValue("selectedGroups"); session.removeValue("notSelectedGroups"); session.removeValue("ERROR"); templateSelector = ""; //successful } catch(CmsException e) { // save the form data in the session, so it can be displayed again later session.putValue("ERROR", new String("yes")); // remeber that an error has occurred session.putValue("USERFIRSTNAME", firstname); session.putValue("USERDESC", desc); session.putValue("USERSTREET", street); session.putValue("PWD", pwd); session.putValue("PWD2", pwd2); session.putValue("USER", user); session.putValue("USERNAME", userLastname); session.putValue("ZIP", zipcode); session.putValue("TOWN", town); session.putValue("USEREMAIL", email); session.putValue("DEFAULTGROUP", defaultGroup); if(e.getType() == CmsException.C_SHORT_PASSWORD) { if(e.getMessage().equals("unequal passwords")) { templateSelector = "passworderror1"; } else { if(e.getMessage().equals("password too short")) { templateSelector = "passworderror2"; } else { throw e; } } } else { if(e.getType() == CmsException.C_NO_GROUP) { templateSelector = "errornogroup1"; } else { if(e.getType() == CmsException.C_NO_USER && e.getMessage().equals("user data missing")) { templateSelector = "errordatamissing1"; } else { throw e; // hand the exception down } } } } // catch block } // OK } } } else { // input is the form for changing the user data templateSelector = "changeuser"; boolean disabled = false; if(!userYetChanged) { // form visited for the first time, not yet changed // read the data from the user object CmsUser theUser = (CmsUser)cms.readUser(user); if(theUser == null) { throw new CmsException("user does not exist"); } firstname = theUser.getFirstname(); desc = theUser.getDescription(); street = theUser.getAddress(); userLastname = theUser.getLastname(); email = theUser.getEmail(); disabled = theUser.getDisabled(); zipcode = (String)theUser.getAdditionalInfo(C_ADDITIONAL_INFO_ZIPCODE); town = (String)theUser.getAdditionalInfo(C_ADDITIONAL_INFO_TOWN); defaultGroup = theUser.getDefaultGroup().getName(); Vector groups = cms.getDirectGroupsOfUser(user); if(groups != null) { selectedGroups = new Vector(); for(int z = 0;z < groups.size();z++) { selectedGroups.addElement(((CmsGroup)groups.elementAt(z)).getName()); } } else { throw new CmsException(CmsException.C_NO_GROUP); } groups = cms.getGroups(); if(groups != null) { notSelectedGroups = new Vector(); for(int z = 0;z < groups.size();z++) { String name = ((CmsGroup)groups.elementAt(z)).getName(); if(!selectedGroups.contains(name)) { notSelectedGroups.addElement(name); } } } } else { // fetch data from the form if((String)parameters.get("LOCK") != null) { disabled = true; } if(reqCont.getRequest().getParameter("ADD") != null) { // add a new group to selectedGroups String groupname = (String)parameters.get("notselectgroup"); if(groupname != null) { if(!selectedGroups.contains(groupname)){ selectedGroups.addElement(groupname); } notSelectedGroups.removeElement(groupname); } } else { if(reqCont.getRequest().getParameter("REMOVE") != null) { // delete a group from selectedGroups // and move it to notSelectedGroups String groupname = (String)parameters.get("selectgroup"); if(groupname != null) { if(!notSelectedGroups.contains(groupname)){ notSelectedGroups.addElement(groupname); if(groupname.equals(defaultGroup)) { defaultGroup = ""; } } selectedGroups.removeElement(groupname); } } else { if(reqCont.getRequest().getParameter("OK") != null) { // form submitted, try to change the user data try { if(email.equals("") || userLastname.equals("") || user.equals("")) { throw new CmsException("user data missing", CmsException.C_NO_USER); } if(!pwd.equals(pwd2)) { throw new CmsException("unequal passwords", CmsException.C_SHORT_PASSWORD); } if(!pwd.equals("")) { if(pwd.length() < C_PASSWORD_MINIMUMSIZE) { throw new CmsException("password too short", CmsException.C_SHORT_PASSWORD); } cms.setPassword(user, pwd); } // if nothing is entered don't change the password CmsUser theUser = (CmsUser)cms.readUser(user); theUser.setEmail(email); theUser.setFirstname(firstname); theUser.setLastname(userLastname); theUser.setAddress(street); theUser.setAdditionalInfo(C_ADDITIONAL_INFO_ZIPCODE, zipcode); theUser.setAdditionalInfo(C_ADDITIONAL_INFO_TOWN, town); if((C_USER_ADMIN.equals(theUser.getName())) && (!selectedGroups.contains(C_GROUP_ADMIN))) { throw new CmsException("cant remove Admin from " + C_GROUP_ADMIN, CmsException.C_NOT_ADMIN); } if(disabled && selectedGroups.contains(C_GROUP_ADMIN)) { throw new CmsException("disabled admin", CmsException.C_NOT_ADMIN); } if(disabled == true) { theUser.setDisabled(); } else { theUser.setEnabled(); } changeGroups(cms, theUser, defaultGroup, selectedGroups); session.removeValue("selectedGroups"); session.removeValue("notSelectedGroups"); session.removeValue("DEFAULTGROUP"); session.removeValue("ERROR"); templateSelector = ""; //successful } catch(CmsException e) { session.putValue("ERROR", new String("yes")); // remeber that an error has occurred session.putValue("USERFIRSTNAME", firstname); session.putValue("USERDESC", desc); session.putValue("USERSTREET", street); session.putValue("PWD", pwd); session.putValue("PWD2", pwd2); session.putValue("USER", user); session.putValue("USERNAME", userLastname); session.putValue("ZIP", zipcode); session.putValue("TOWN", town); session.putValue("USEREMAIL", email); session.putValue("DEFAULTGROUP", defaultGroup); if(e.getType() == CmsException.C_SHORT_PASSWORD) { if(e.getMessage().equals("unequal passwords")) { templateSelector = "passworderror3"; } else { if(e.getMessage().equals("password too short")) { templateSelector = "passworderror4"; } else { session.putValue("ERROR", new String("yes")); throw e; } } } else { if(e.getType() == CmsException.C_NO_GROUP) { templateSelector = "errornogroup2"; } else { if(e.getType() == CmsException.C_NO_USER && e.getMessage().equals("user data missing")) { templateSelector = "errordatamissing2"; } else { if(e.getType() == CmsException.C_NOT_ADMIN && e.getMessage().equals("disabled admin")) { templateSelector = "errordisabledadmin"; } else { session.putValue("ERROR", new String("yes")); throw e; // hand the exception down } } } } } // catch block } // OK } } } // userYetEstablished session.putValue("selectedGroups", selectedGroups); session.putValue("notSelectedGroups", notSelectedGroups); session.putValue("DEFAULTGROUP", defaultGroup); xmlTemplateDocument.setData("DISABLED", disabled ? "checked" : ""); } // again common part for 'newuser' and 'changeuser': // set the variables for display in the document if(firstname == null) { firstname = ""; } if(desc == null) { desc = ""; } if(street == null) { street = ""; } if(pwd == null) { pwd = ""; } if(pwd2 == null) { pwd2 = ""; } if(user == null) { user = ""; } if(userLastname == null) { userLastname = ""; } if(town == null) { town = ""; } if(zipcode == null) { zipcode = ""; } if(email == null) { email = ""; } xmlTemplateDocument.setData("USERFIRSTNAME", firstname); xmlTemplateDocument.setData("USERDESC", desc); xmlTemplateDocument.setData("USERSTREET", street); xmlTemplateDocument.setData("PWD", pwd); xmlTemplateDocument.setData("PWD2", pwd2); xmlTemplateDocument.setData("USER", user); xmlTemplateDocument.setData("USERNAME", userLastname); xmlTemplateDocument.setData("TOWN", town); xmlTemplateDocument.setData("ZIP", zipcode); xmlTemplateDocument.setData("EMAIL", email); } // belongs to: 'if perspective is newuser or changeuser' else { if(perspective.equals("deleteuser")) { String user = (String)parameters.get("USER"); xmlTemplateDocument.setData("USER", user); templateSelector = "RUsureDelete"; } else { if(perspective.equals("reallydeleteuser")) { // deleting a user String user = (String)parameters.get("USER"); try { cms.deleteUser(user); templateSelector = ""; } catch(Exception e) { // user == null or delete failed xmlTemplateDocument.setData("DELETEDETAILS", Utils.getStackTrace(e)); templateSelector = "deleteerror"; } } // delete user } } // Now load the template file and start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/81743eb0b1d188d788ec452f32a558b588619a97/CmsAdminUsers.java/clean/src/com/opencms/workplace/CmsAdminUsers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 45, 67, 4747, 1343, 10585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 5411, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 45, 67, 4747, 1343, 10585, ...
return XSDFileSchemaTreePopulator.getSchemaTree( fileName );
return new XSDFileSchemaTreePopulator().getSchemaTree( fileName );
public static ATreeNode getSchemaTree( String fileName ) throws OdaException { if( fileName.toUpperCase().endsWith(".XSD")) return XSDFileSchemaTreePopulator.getSchemaTree( fileName ); else return new XMLFileSchemaTreePopulator().getSchemaTree( fileName ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/9e42c839fcdbc6a3c2d9cc1edd91fa086bc95f03/SchemaPopulationUtil.java/buggy/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 432, 12513, 11088, 2471, 12, 514, 3968, 262, 1082, 202, 15069, 531, 2414, 503, 202, 95, 202, 202, 430, 12, 3968, 18, 869, 8915, 7675, 5839, 1190, 2932, 18, 31244, 6, 3719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 432, 12513, 11088, 2471, 12, 514, 3968, 262, 1082, 202, 15069, 531, 2414, 503, 202, 95, 202, 202, 430, 12, 3968, 18, 869, 8915, 7675, 5839, 1190, 2932, 18, 31244, 6, 3719...
property( obj, MasterPage.ORIENTATION_PROP ); property( obj, MasterPage.TOP_MARGIN_PROP ); property( obj, MasterPage.LEFT_MARGIN_PROP ); property( obj, MasterPage.BOTTOM_MARGIN_PROP ); property( obj, MasterPage.RIGHT_MARGIN_PROP );
property( obj, IMasterPageModel.ORIENTATION_PROP ); property( obj, IMasterPageModel.TOP_MARGIN_PROP ); property( obj, IMasterPageModel.LEFT_MARGIN_PROP ); property( obj, IMasterPageModel.BOTTOM_MARGIN_PROP ); property( obj, IMasterPageModel.RIGHT_MARGIN_PROP );
public void visitMasterPage( MasterPage obj ) { super.visitMasterPage( obj ); property( obj, MasterPage.TYPE_PROP ); // Only when type is custom, height and width can be output. String type = (String) obj.getLocalProperty( getModule( ), MasterPage.TYPE_PROP ); if ( DesignChoiceConstants.PAGE_SIZE_CUSTOM.equalsIgnoreCase( type ) ) { property( obj, MasterPage.HEIGHT_PROP ); property( obj, MasterPage.WIDTH_PROP ); } property( obj, MasterPage.ORIENTATION_PROP ); property( obj, MasterPage.TOP_MARGIN_PROP ); property( obj, MasterPage.LEFT_MARGIN_PROP ); property( obj, MasterPage.BOTTOM_MARGIN_PROP ); property( obj, MasterPage.RIGHT_MARGIN_PROP ); writeStyle( obj ); writeOverridenPropertyValues( obj ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/ModuleWriter.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 7786, 1964, 12, 13453, 1964, 1081, 262, 202, 95, 202, 202, 9565, 18, 11658, 7786, 1964, 12, 1081, 11272, 202, 202, 4468, 12, 1081, 16, 13453, 1964, 18, 2399, 67, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 7786, 1964, 12, 13453, 1964, 1081, 262, 202, 95, 202, 202, 9565, 18, 11658, 7786, 1964, 12, 1081, 11272, 202, 202, 4468, 12, 1081, 16, 13453, 1964, 18, 2399, 67, 15...
return new String("PostgreSQL");
return "PostgreSQL";
public String getDatabaseProductName() throws SQLException { return new String("PostgreSQL"); }
45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/7f171b599a50d471d4791c768b538978b4a2dc95/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 11263, 4133, 461, 1435, 1216, 6483, 225, 288, 565, 327, 315, 3349, 23896, 14432, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 282, 1071, 514, 11263, 4133, 461, 1435, 1216, 6483, 225, 288, 565, 327, 315, 3349, 23896, 14432, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
outNbElement.value = outIdx; outBegIdx.value = startIdx;
public TA_RetCode CDLCOUNTERATTACK(int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[]) { double EqualPeriodTotal; double[] BodyLongPeriodTotal = new double[2]; ; int i, outIdx, totIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLCOUNTERATTACK_Lookback(); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } EqualPeriodTotal = 0; EqualTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod); BodyLongPeriodTotal[1] = 0; BodyLongPeriodTotal[0] = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod); i = EqualTrailingIdx; while (i < startIdx) { EqualPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); i++; } i = BodyLongTrailingIdx; while (i < startIdx) { BodyLongPeriodTotal[1] += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))); BodyLongPeriodTotal[0] += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0))); i++; } i = startIdx; outIdx = 0; do { if ((inClose[i - 1] >= inOpen[i - 1] ? 1 : -1) == -(inClose[i] >= inOpen[i] ? 1 : -1) && (Math.abs(inClose[i - 1] - inOpen[i - 1])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && (Math.abs(inClose[i] - inOpen[i])) > ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) != 0.0 ? BodyLongPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i] - inOpen[i])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i] - inLow[i]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i] - (inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i])) + ((inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i]) - inLow[i]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inClose[i] <= inClose[i - 1] + ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0)) && inClose[i] >= inClose[i - 1] - ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].factor) * ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) != 0.0 ? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].avgPeriod) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0)))) / ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? 2.0 : 1.0))) outInteger[outIdx++] = (inClose[i] >= inOpen[i] ? 1 : -1) * 100; else outInteger[outIdx++] = 0; EqualPeriodTotal += ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - 1] - inOpen[i - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - 1] - inLow[i - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - 1] - (inClose[i - 1] >= inOpen[i - 1] ? inClose[i - 1] : inOpen[i - 1])) + ((inClose[i - 1] >= inOpen[i - 1] ? inOpen[i - 1] : inClose[i - 1]) - inLow[i - 1]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[EqualTrailingIdx - 1] - inOpen[EqualTrailingIdx - 1])) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[EqualTrailingIdx - 1] - inLow[EqualTrailingIdx - 1]) : ((this.candleSettings[TA_CandleSettingType.TA_Equal .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[EqualTrailingIdx - 1] - (inClose[EqualTrailingIdx - 1] >= inOpen[EqualTrailingIdx - 1] ? inClose[EqualTrailingIdx - 1] : inOpen[EqualTrailingIdx - 1])) + ((inClose[EqualTrailingIdx - 1] >= inOpen[EqualTrailingIdx - 1] ? inOpen[EqualTrailingIdx - 1] : inClose[EqualTrailingIdx - 1]) - inLow[EqualTrailingIdx - 1]) : 0))); for (totIdx = 1; totIdx >= 0; --totIdx) BodyLongPeriodTotal[totIdx] += ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[i - totIdx] - inOpen[i - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[i - totIdx] - inLow[i - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[i - totIdx] - (inClose[i - totIdx] >= inOpen[i - totIdx] ? inClose[i - totIdx] : inOpen[i - totIdx])) + ((inClose[i - totIdx] >= inOpen[i - totIdx] ? inOpen[i - totIdx] : inClose[i - totIdx]) - inLow[i - totIdx]) : 0))) - ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_RealBody ? (Math .abs(inClose[BodyLongTrailingIdx - totIdx] - inOpen[BodyLongTrailingIdx - totIdx])) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_HighLow ? (inHigh[BodyLongTrailingIdx - totIdx] - inLow[BodyLongTrailingIdx - totIdx]) : ((this.candleSettings[TA_CandleSettingType.TA_BodyLong .ordinal()].rangeType) == TA_RangeType.TA_RangeType_Shadows ? (inHigh[BodyLongTrailingIdx - totIdx] - (inClose[BodyLongTrailingIdx - totIdx] >= inOpen[BodyLongTrailingIdx - totIdx] ? inClose[BodyLongTrailingIdx - totIdx] : inOpen[BodyLongTrailingIdx - totIdx])) + ((inClose[BodyLongTrailingIdx - totIdx] >= inOpen[BodyLongTrailingIdx - totIdx] ? inOpen[BodyLongTrailingIdx - totIdx] : inClose[BodyLongTrailingIdx - totIdx]) - inLow[BodyLongTrailingIdx - totIdx]) : 0))); i++; EqualTrailingIdx++; BodyLongTrailingIdx++; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 7240, 654, 789, 56, 3649, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 385, 8914, 7240, 654, 789, 56, 3649, 12, 474, 27108, 16, 509, 679, 4223, 16, 1082, 202, 9056, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, ...
return current.getSystemFont();
return new Font(current, current.getSystemFont().getFontData());
Font defaultFont() { Display current = Display.getCurrent(); if (current == null) { Shell shell = new Shell(); Font font = shell.getFont(); shell.dispose(); return font; } else return current.getSystemFont(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/61d04ddf7869e5d67f5ccb51548904024a173ce0/FontRegistry.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5711, 805, 5711, 1435, 288, 202, 202, 4236, 783, 273, 9311, 18, 588, 3935, 5621, 202, 202, 430, 261, 2972, 422, 446, 13, 288, 1082, 202, 13220, 5972, 273, 394, 19433, 5621, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 5711, 805, 5711, 1435, 288, 202, 202, 4236, 783, 273, 9311, 18, 588, 3935, 5621, 202, 202, 430, 261, 2972, 422, 446, 13, 288, 1082, 202, 13220, 5972, 273, 394, 19433, 5621, 1082, 2...
{ }
{ currentCellRenderer = null; rendererPane = null; createdRenderer = false; setCellRenderer(currentCellRenderer); }
protected void uninstallComponents() { // FIXME: not implemented }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 16577, 7171, 1435, 202, 95, 202, 202, 759, 9852, 30, 486, 8249, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 16577, 7171, 1435, 202, 95, 202, 202, 759, 9852, 30, 486, 8249, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
(new com.ibm.math.DiagBigDecimal.Test("flv003")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==((new java.lang.Float(val)).floatValue());
(new Test("flv003")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==((new java.lang.Float(val)).floatValue());
public void diagfloatvalue(){ java.lang.String val; // 1999.03.07 Infinities no longer errors val="-1"; (new com.ibm.math.DiagBigDecimal.Test("flv001")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==((new java.lang.Float(val)).floatValue()); val="-0.1"; (new com.ibm.math.DiagBigDecimal.Test("flv002")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==((new java.lang.Float(val)).floatValue()); val="0"; (new com.ibm.math.DiagBigDecimal.Test("flv003")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==((new java.lang.Float(val)).floatValue()); val="0.1"; (new com.ibm.math.DiagBigDecimal.Test("flv004")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==((new java.lang.Float(val)).floatValue()); val="1"; (new com.ibm.math.DiagBigDecimal.Test("flv005")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==((new java.lang.Float(val)).floatValue()); val="1e200"; (new com.ibm.math.DiagBigDecimal.Test("flv006")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==java.lang.Float.POSITIVE_INFINITY; val="-1e200"; (new com.ibm.math.DiagBigDecimal.Test("flv007")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==java.lang.Float.NEGATIVE_INFINITY; val="1e1000"; (new com.ibm.math.DiagBigDecimal.Test("flv008")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==java.lang.Float.POSITIVE_INFINITY; val="-1e1000"; (new com.ibm.math.DiagBigDecimal.Test("flv009")).ok=((new com.ibm.math.BigDecimal(val)).floatValue())==java.lang.Float.NEGATIVE_INFINITY; summary("floatValue"); return;}
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/9d7cfece10981dede4d5303274403593abc1a92d/DiagBigDecimal.java/buggy/icu4j/src/com/ibm/test/bigdec/DiagBigDecimal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 918, 6643, 5659, 1132, 1435, 95, 225, 2252, 18, 4936, 18, 780, 1244, 31, 225, 368, 404, 11984, 18, 4630, 18, 8642, 657, 926, 1961, 1158, 7144, 1334, 225, 1244, 1546, 17, 21, 14432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 918, 6643, 5659, 1132, 1435, 95, 225, 2252, 18, 4936, 18, 780, 1244, 31, 225, 368, 404, 11984, 18, 4630, 18, 8642, 657, 926, 1961, 1158, 7144, 1334, 225, 1244, 1546, 17, 21, 14432...
public void setupFixed(Context c, Box box) { if (isFixed(c, box)) { //System.out.println("setting fixed for box: " + box); box.fixed = true; if (c.css.hasProperty(box.node, "right", false)) { box.right = (int) c.css.getFloatProperty(box.node, "right", 0, false); box.right_set = true; } if (c.css.hasProperty(box.node, "bottom", false)) { box.bottom = (int) c.css.getFloatProperty(box.node, "bottom", 0, false); box.bottom_set = true; } } }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/clean/src/java/org/joshy/html/BoxLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 8401, 7505, 12, 1042, 71, 16, 3514, 2147, 15329, 430, 12, 291, 7505, 12, 71, 16, 2147, 3719, 95, 759, 3163, 18, 659, 18, 8222, 2932, 8920, 12429, 1884, 2147, 2773, 15, 2147, 1769...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8401, 7505, 12, 1042, 71, 16, 3514, 2147, 15329, 430, 12, 291, 7505, 12, 71, 16, 2147, 3719, 95, 759, 3163, 18, 659, 18, 8222, 2932, 8920, 12429, 1884, 2147, 2773, 15, 2147, 1769...
while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1;
while (arg_it.hasNext()) cmdline_len += ((String) arg_it.next()).length() + 1;
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16143, 1253, 3073, 261, 780, 5274, 16, 2407, 1775, 13, 565, 288, 1377, 4015, 18, 5129, 7566, 18526, 1719, 315, 397, 333, 18, 529, 1769, 1377, 368, 732, 1240, 2690, 4207, 1296, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16143, 1253, 3073, 261, 780, 5274, 16, 2407, 1775, 13, 565, 288, 1377, 4015, 18, 5129, 7566, 18526, 1719, 315, 397, 333, 18, 529, 1769, 1377, 368, 732, 1240, 2690, 4207, 1296, 980, ...
boolean iteratorOn = exp.getUsePropertyIterator(); Object propArray = exp.getPropertyArray(); PropertyNode [] propPath = exp.getPropertyPath();
private void openExperiment() { int returnVal = m_FileChooser.showOpenDialog(this); if (returnVal != JFileChooser.APPROVE_OPTION) { return; } File expFile = m_FileChooser.getSelectedFile(); if (!expFile.getName().toLowerCase().endsWith(Experiment.FILE_EXTENSION)) { expFile = new File(expFile.getParent(), expFile.getName() + Experiment.FILE_EXTENSION); } try { FileInputStream fi = new FileInputStream(expFile); ObjectInputStream oi = new ObjectInputStream( new BufferedInputStream(fi)); Experiment exp = (Experiment)oi.readObject(); oi.close(); boolean iteratorOn = exp.getUsePropertyIterator(); Object propArray = exp.getPropertyArray(); PropertyNode [] propPath = exp.getPropertyPath(); setExperiment(exp); exp.setPropertyPath(propPath); exp.setPropertyArray(propArray); exp.setUsePropertyIterator(iteratorOn); m_GeneratorPropertyPanel.setExperiment(m_Exp); System.err.println("Opened experiment:\n" + m_Exp); } catch (Exception ex) { ex.printStackTrace(); JOptionPane.showMessageDialog(this, "Couldn't open experiment file:\n" + expFile + "\nReason:\n" + ex.getMessage(), "Open Experiment", JOptionPane.ERROR_MESSAGE); // Pop up error dialog } }
6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/151f371bf0dfb7b7f311dcc92624a8715f487e62/SetupPanel.java/buggy/gui/experiment/SetupPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1696, 22338, 1435, 288, 3639, 509, 28702, 273, 312, 67, 812, 17324, 18, 4500, 3678, 6353, 12, 2211, 1769, 565, 309, 261, 2463, 3053, 480, 804, 812, 17324, 18, 2203, 3373, 3412,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 22338, 1435, 288, 3639, 509, 28702, 273, 312, 67, 812, 17324, 18, 4500, 3678, 6353, 12, 2211, 1769, 565, 309, 261, 2463, 3053, 480, 804, 812, 17324, 18, 2203, 3373, 3412,...
((DataType)dataType).setProject( project );
((DataType)dataType).setProject( getAntProject() );
public Object createDataType(String name) throws Exception { Object dataType = null; Class type = (Class) getAntProject().getDataTypeDefinitions().get(name); if ( type != null ) { try { Constructor ctor = null; boolean noArg = false; // DataType can have a "no arg" constructor or take a single // Project argument. try { ctor = type.getConstructor(new Class[0]); noArg = true; } catch (NoSuchMethodException nse) { ctor = type.getConstructor(new Class[] { Project.class }); noArg = false; } if (noArg) { dataType = (DataType) ctor.newInstance(new Object[0]); } else { dataType = (DataType) ctor.newInstance(new Object[] {project}); } ((DataType)dataType).setProject( project ); } catch (Throwable t) { // ignore log.error(t); } } return dataType; }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/a4977fc0abd2c06fcc46090a70a47ab78b29e9d1/AntTag.java/buggy/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 752, 6273, 12, 780, 508, 13, 1216, 1185, 288, 3639, 1033, 8891, 273, 446, 31, 3639, 1659, 618, 273, 261, 797, 13, 4506, 496, 4109, 7675, 588, 6273, 7130, 7675, 588, 12, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 752, 6273, 12, 780, 508, 13, 1216, 1185, 288, 3639, 1033, 8891, 273, 446, 31, 3639, 1659, 618, 273, 261, 797, 13, 4506, 496, 4109, 7675, 588, 6273, 7130, 7675, 588, 12, 529,...
int beforeFocus = results.size(); results.addAll(getResultsAfterFocus(scope, itemValue, beforeFocus));
int total = countTotalInIndex(scope, results.size()); int matches = countMatches(scope, itemValue, total, results.size());
private static BrowseInfo doBrowse(BrowseScope scope) throws SQLException { // Check for a cached browse BrowseInfo cachedInfo = BrowseCache.get(scope); if (cachedInfo != null) { return cachedInfo; } int transactionIsolation = setTransactionIsolation(scope); try { // Run the Browse queries // If the focus is an Item, this returns the value String itemValue = getItemValue(scope); List results = new ArrayList(); results.addAll(getResultsBeforeFocus(scope, itemValue)); int beforeFocus = results.size(); results.addAll(getResultsAfterFocus(scope, itemValue, beforeFocus)); // Find out the total in the index, and the number of // matches for the query int total = countTotalInIndex(scope, results.size()); int matches = countMatches(scope, itemValue, total, results.size()); if (log.isDebugEnabled()) { log.debug("Number of matches " + matches); } int position = getPosition(total, matches, beforeFocus); sortResults(scope, results); BrowseInfo info = new BrowseInfo(results, position, total, beforeFocus); logInfo(info); BrowseCache.add(scope, info); return info; } finally { restoreTransactionIsolation(scope, transactionIsolation); } }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/36e0aff656ae4c75308793a5e6744544f92e9646/Browse.java/buggy/dspace/src/org/dspace/browse/Browse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 605, 12481, 966, 741, 27304, 12, 27304, 3876, 2146, 13, 1216, 6483, 565, 288, 3639, 368, 2073, 364, 279, 3472, 21670, 3639, 605, 12481, 966, 3472, 966, 273, 605, 12481, 1649, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 12481, 966, 741, 27304, 12, 27304, 3876, 2146, 13, 1216, 6483, 565, 288, 3639, 368, 2073, 364, 279, 3472, 21670, 3639, 605, 12481, 966, 3472, 966, 273, 605, 12481, 1649, 1...
return (bom.length >= 2 && bom[0] == -1 && bom[1] == -2);
return ArrayUtil.startsWith(bom, UTF16LE_BOM);
private static boolean hasUTF16LEBom(byte[] bom) { return (bom.length >= 2 && bom[0] == -1 && bom[1] == -2); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/96dddf31cf1261406e9a0874810d25e16c21bd24/CharsetToolkit.java/buggy/openapi/src/com/intellij/openapi/vfs/CharsetToolkit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 711, 5159, 2313, 900, 38, 362, 12, 7229, 8526, 28626, 13, 288, 565, 327, 27207, 18, 17514, 1190, 12, 70, 362, 16, 6380, 2313, 900, 67, 38, 1872, 1769, 225, 289, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 711, 5159, 2313, 900, 38, 362, 12, 7229, 8526, 28626, 13, 288, 565, 327, 27207, 18, 17514, 1190, 12, 70, 362, 16, 6380, 2313, 900, 67, 38, 1872, 1769, 225, 289, 2, -1...
runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "appending single character string, should fail", 1, rule), new TestDescriptor(TEST2, "appending single char, should be ok", 0, rule), new TestDescriptor(TEST3, "this is probably wrong, but shouldn't fail", 0, rule), new TestDescriptor(TEST4, "concatenates a three character int", 0, rule), new TestDescriptor(TEST5, "concatenates a string explicitly set to 1 character, not explicitly checking right now", 0, rule), new TestDescriptor(TEST6, "for statement", 1, rule), new TestDescriptor(TEST7, "concatenates an escaped character", 1, rule), new TestDescriptor(TEST8, "concatenates a single upper case", 1, rule), new TestDescriptor(TEST9, "concatenates a single number", 1, rule), new TestDescriptor(TEST10, "concatenates a single character &", 1, rule), new TestDescriptor(TEST11, "concatenates two characters", 0, rule), }); }
runTests(rule); }
public void testAll() { runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "appending single character string, should fail", 1, rule), new TestDescriptor(TEST2, "appending single char, should be ok", 0, rule), new TestDescriptor(TEST3, "this is probably wrong, but shouldn't fail", 0, rule), new TestDescriptor(TEST4, "concatenates a three character int", 0, rule), new TestDescriptor(TEST5, "concatenates a string explicitly set to 1 character, not explicitly checking right now", 0, rule), new TestDescriptor(TEST6, "for statement", 1, rule), new TestDescriptor(TEST7, "concatenates an escaped character", 1, rule), new TestDescriptor(TEST8, "concatenates a single upper case", 1, rule), new TestDescriptor(TEST9, "concatenates a single number", 1, rule), new TestDescriptor(TEST10, "concatenates a single character &", 1, rule), new TestDescriptor(TEST11, "concatenates two characters", 0, rule), }); }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/AppendCharacterWithCharTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/strings/AppendCharacterWithCharTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1595, 1435, 288, 3639, 1086, 14650, 12, 2704, 7766, 3187, 63, 7073, 5411, 394, 7766, 3187, 12, 16961, 21, 16, 315, 6923, 310, 2202, 3351, 533, 16, 1410, 2321, 3113, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 1435, 288, 3639, 1086, 14650, 12, 2704, 7766, 3187, 63, 7073, 5411, 394, 7766, 3187, 12, 16961, 21, 16, 315, 6923, 310, 2202, 3351, 533, 16, 1410, 2321, 3113, 404, ...
public void measureBurstSend(int events,int numberOfConsumers) throws Exception {
public void measureBurstSend(int events, int numberOfConsumers) throws Exception {
public void measureBurstSend(int events,int numberOfConsumers) throws Exception { System.out.println("Send Burst: " + events + " Events to " + numberOfConsumers + " Consumers"); SendCounter _logger = new SendCounter(events); AnyGenerator _generator = new AnyGenerator(getORB()); final Latch _done = new Latch(); AnyPushReceiver[] _consumers = new AnyPushReceiver[numberOfConsumers]; CyclicBarrier _barrier = new CyclicBarrier(numberOfConsumers); _barrier.setBarrierCommand(new Runnable() { public void run() { _done.release(); } }); for (int x=0; x<_consumers.length; ++x) { _consumers[x] = new AnyPushReceiver(this); _consumers[x].setExpected(events); _consumers[x].setPerformanceListener(_logger); _consumers[x].connect(channel_, false); _consumers[x].setTimeOut(100 * events); _consumers[x].setBarrier(_barrier); } AnyPushSender _sender = new AnyPushSender(this, _logger, _generator, events, 0); _sender.connect(channel_, false); Thread _t = new Thread(_sender); Thread.sleep(100); for (int x=0; x<_consumers.length; ++x) { new Thread(_consumers[x]).start(); } _t.start(); _done.acquire(); String _result = _logger.toString(); _sender.shutdown(); long sleepTime = 1000 + (long)Math.log(events) * 1000; Thread.sleep(sleepTime); for (int x=0; x< _consumers.length; ++x) { _consumers[x].shutdown(); } System.out.println(_result); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/daae1b86a196ce34b8466256a2014d4fbb54bbc3/PerformanceTest.java/clean/test/regression/src/org/jacorb/test/notification/perf/PerformanceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6649, 38, 18593, 3826, 12, 474, 2641, 16, 509, 7922, 23538, 13, 1216, 1185, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 3826, 605, 18593, 30, 315, 397, 2641, 397, 315, 9043, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6649, 38, 18593, 3826, 12, 474, 2641, 16, 509, 7922, 23538, 13, 1216, 1185, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 3826, 605, 18593, 30, 315, 397, 2641, 397, 315, 9043, 35...
BlockingProgressMonitor monitor = new BlockingProgressMonitor();
if (newFile == null){ IFile f = src.getFile("newFile2.txt"); if (!f.exists()) { System.err.println("trying again...."); monitor.reset(); f.create(new ByteArrayInputStream(new byte[0]), true, monitor); monitor.waitForCompletion(); } newFile = src.getFile("newFile2.txt"); }
public void testCreateAndRemoveNewNonSrcFileFromDefaultPackage() throws CoreException { IProject simpleProject = Utils.getPredefinedProject("Simple AJ Project", true); simpleProject.build(IncrementalProjectBuilder.FULL_BUILD, null); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); IJavaProject javaProject = JavaCore.create(simpleProject); String srcPath = javaProject.getUnderlyingResource().getLocation().toOSString() + File.separator + "src" + File.separator + "newFile2.txt"; String binPath = javaProject.getUnderlyingResource().getLocation().toOSString() + File.separator + "bin" + File.separator + "newFile2.txt"; assertFalse("newFile2.txt should not exist under src tree! (path=" + srcPath + ")",new File(srcPath).exists()); assertFalse("newFile2.txt should not exist under bin tree! (path=" + binPath + ")",new File(binPath).exists()); IFolder src = simpleProject.getFolder("src"); if (!src.exists()){ src.create(true, true, null); } assertNotNull("src folder should not be null", src); IStructuredSelection selectedFolder = new StructuredSelection(src); // need to set this because otherwise a full build is // forced (which isn't how it behaves when run this test // manually) ProjectBuildConfigurator pbc = BuildConfigurator.getBuildConfigurator() .getProjectBuildConfigurator(simpleProject); pbc.requestFullBuild(false); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); IFile newFile = null; try { BlockingProgressMonitor bpm = new BlockingProgressMonitor(); bpm.reset(); newFile = makeNewFile("newFile2.txt",selectedFolder,bpm); bpm.waitForCompletion(); } catch (SWTException e) { // don't care about this exception because it's down // in SWT and nothing to do with the test System.err.println(">>> caught swt exception - don't care"); } try { Thread.sleep(5000); } catch (InterruptedException e) { System.err.println("interrupted sleep - don't care"); } BlockingProgressMonitor monitor = new BlockingProgressMonitor(); monitor.reset(); simpleProject.refreshLocal(IResource.DEPTH_INFINITE,monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); // If either of these fail, then it's more likely than not to be // down to the timings of driving this programatically (this is // why there is a sleep above. assertTrue("newFile2.txt should exist under src tree! (path=" + srcPath + ")",new File(srcPath).exists()); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); assertTrue("newFile2.txt should exist under bin tree! (path=" + binPath + ")",new File(binPath).exists()); // check that the .java file hasn't been copied over... String binPathToMain = javaProject.getUnderlyingResource().getLocation().toOSString() + File.separator + "bin" + File.separator + "p1" + File.separator + "Main.java"; assertFalse("Main.java should not exist under bin tree! (path=" + binPathToMain + ")",new File(binPathToMain).exists()); // now delete the file for cleanup monitor.reset(); newFile.delete(true,monitor); monitor.waitForCompletion(); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); try { Thread.sleep(2000); } catch (InterruptedException e) { System.err.println("interrupted sleep - don't care"); } // If either of these fail, then it's more likely than not to be // down to the timings of driving this programatically (this is // why there is a sleep above. assertFalse("newFile2.txt should NOT exist under src tree! (path=" + srcPath + ")",new File(srcPath).exists()); ProjectDependenciesUtils.waitForJobsToComplete(simpleProject); assertFalse("newFile2.txt should NOT exist under bin tree! (path=" + binPath + ")",new File(binPath).exists()); }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/91886a488ac52d59f0e77d7d5a4068d3849952c5/BuilderTest.java/buggy/org.eclipse.ajdt.ui.tests/src/org/eclipse/ajdt/internal/builder/BuilderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1684, 1876, 3288, 1908, 3989, 7740, 812, 1265, 1868, 2261, 1435, 1216, 30015, 288, 202, 202, 45, 4109, 4143, 4109, 273, 6091, 18, 588, 1386, 2178, 4109, 2932, 5784, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1684, 1876, 3288, 1908, 3989, 7740, 812, 1265, 1868, 2261, 1435, 1216, 30015, 288, 202, 202, 45, 4109, 4143, 4109, 273, 6091, 18, 588, 1386, 2178, 4109, 2932, 5784, 4...
public org.quickfix.field.ClOrdID get(org.quickfix.field.ClOrdID value)
public quickfix.field.ClOrdID get(quickfix.field.ClOrdID value)
public org.quickfix.field.ClOrdID get(org.quickfix.field.ClOrdID value) throws FieldNotFound { getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Allocation.java/clean/src/java/src/quickfix/fix42/Allocation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 2009, 15383, 734, 336, 12, 19525, 904, 18, 1518, 18, 2009, 15383, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9549, 904, 18, 1518, 18, 2009, 15383, 734, 336, 12, 19525, 904, 18, 1518, 18, 2009, 15383, 734, 225, 460, 13, 565, 1216, 2286, 2768, 225, 288, 5031, 12, 1132, 1769, 327, 460, 31, ...
return RubyFixnum.newFixnum(runtime, getTimeInMillis() % 1000 * 1000 + usec);
return RubyFixnum.newFixnum(runtime, microseconds());
public RubyInteger usec() { return RubyFixnum.newFixnum(runtime, getTimeInMillis() % 1000 * 1000 + usec); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/ff2657d75cfcff1964e39f97c3ed3c1054b4baef/RubyTime.java/buggy/src/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 999, 71, 1435, 288, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 9448, 16, 19967, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 999, 71, 1435, 288, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 9448, 16, 19967, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
refreshTable(column); }
int sel = vendorInfo.getSelectionIndex(); if (sel != -1) lastSelection = bundleInfos[sel]; switch (column) { case 0: AboutData.sortByProvider(reverseSort, bundleInfos); break; case 1: AboutData.sortByName(reverseSort, bundleInfos); break; case 2: AboutData.sortByVersion(reverseSort, bundleInfos); break; case 3: AboutData.sortById(reverseSort, bundleInfos); break; } refreshTable(column); }
private void sort(int column) { // Choose new sort algorithm if (lastColumnChosen == column){ reverseSort = !reverseSort; } else{ reverseSort = false; lastColumnChosen = column; } if(vendorInfo.getItemCount() <= 1) return; // Remember the last selection int idx = vendorInfo.getSelectionIndex(); if (idx != -1) lastSelection = info[idx]; switch (column){ case 0: sortByProvider(); break; case 1: sortByName(); break; case 2: sortByVersion(); break; case 3: sortById(); break; } refreshTable(column); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/922a37ecfef1f6db512173bdfc248a42376c1f05/AboutPluginsDialog.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AboutPluginsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1524, 12, 474, 1057, 13, 288, 202, 202, 759, 25593, 394, 1524, 4886, 202, 202, 430, 261, 2722, 1494, 782, 8918, 422, 1057, 15329, 1082, 202, 9845, 4416, 273, 401, 9845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1524, 12, 474, 1057, 13, 288, 202, 202, 759, 25593, 394, 1524, 4886, 202, 202, 430, 261, 2722, 1494, 782, 8918, 422, 1057, 15329, 1082, 202, 9845, 4416, 273, 401, 9845, ...
issuerNames = new ArrayList();
issuerNames = new ArrayList<String>();
public void addIssuerName(String name) throws IOException { if (issuerNames == null) { issuerNames = new ArrayList(); } addIssuer(new X500Principal(name)); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/cd486b2997fc7cfe4c08299e2fbad2544d3edffb/X509CRLSelector.java/buggy/modules/security/src/main/java/common/java/security/cert/X509CRLSelector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 16667, 461, 12, 780, 508, 13, 1216, 1860, 288, 3639, 309, 261, 17567, 1557, 422, 446, 13, 288, 5411, 9715, 1557, 273, 394, 2407, 32, 780, 34, 5621, 540, 289, 3639, 527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 16667, 461, 12, 780, 508, 13, 1216, 1860, 288, 3639, 309, 261, 17567, 1557, 422, 446, 13, 288, 5411, 9715, 1557, 273, 394, 2407, 32, 780, 34, 5621, 540, 289, 3639, 527, ...
formatter.setShellCommand( "metro" );
formatter.setShellCommand( "station" );
private void processHelp() throws IOException { HelpFormatter formatter = new HelpFormatter( HelpFormatter.DEFAULT_GUTTER_LEFT, HelpFormatter.DEFAULT_GUTTER_CENTER, HelpFormatter.DEFAULT_GUTTER_RIGHT, 100 ); formatter.getDisplaySettings().add( DisplaySetting.DISPLAY_GROUP_OUTER ); formatter.getDisplaySettings().add( DisplaySetting.DISPLAY_PROPERTY_OPTION ); formatter.getDisplaySettings().add( DisplaySetting.DISPLAY_ARGUMENT_BRACKETED ); formatter.getFullUsageSettings().add( DisplaySetting.DISPLAY_OPTIONAL ); formatter.getFullUsageSettings().add( DisplaySetting.DISPLAY_GROUP_OUTER ); formatter.getFullUsageSettings().add( DisplaySetting.DISPLAY_PROPERTY_OPTION ); formatter.getFullUsageSettings().add( DisplaySetting.DISPLAY_OPTIONAL ); formatter.getFullUsageSettings().add( DisplaySetting.DISPLAY_ARGUMENT_BRACKETED ); formatter.getFullUsageSettings().remove( DisplaySetting.DISPLAY_PARENT_CHILDREN ); formatter.getLineUsageSettings().add( DisplaySetting.DISPLAY_PROPERTY_OPTION ); formatter.getLineUsageSettings().add( DisplaySetting.DISPLAY_ARGUMENT_BRACKETED ); formatter.getLineUsageSettings().remove( DisplaySetting.DISPLAY_PARENT_CHILDREN ); formatter.getLineUsageSettings().remove( DisplaySetting.DISPLAY_GROUP_EXPANDED ); formatter.setGroup( COMMAND_GROUP ); formatter.setShellCommand( "metro" ); formatter.print(); }
10984 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10984/8b26d06adc01a0c27079a0548496fb21969e70ee/StationPlugin.java/buggy/trunk/main/depot/station/console/src/main/net/dpml/station/console/StationPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 6696, 1435, 1216, 1860, 565, 288, 3639, 11288, 5074, 4453, 273, 394, 11288, 5074, 12, 6647, 11288, 5074, 18, 5280, 67, 30673, 11976, 67, 10066, 16, 6647, 11288, 5074, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 6696, 1435, 1216, 1860, 565, 288, 3639, 11288, 5074, 4453, 273, 394, 11288, 5074, 12, 6647, 11288, 5074, 18, 5280, 67, 30673, 11976, 67, 10066, 16, 6647, 11288, 5074, 18, ...
" <translation-events>\n" + " <translation-event>\n" +
" <translated-events>\n" + " <translated-event uei=\"uei.opennms.org/services/passiveServiceStatus\">\n" +
private String getStandardConfig() { return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<this:passive-status-configuration \n" + "xmlns=\"http://xmlns.opennms.org/xsd/passive-status-configuration\" \n" + "xmlns:this=\"http://xmlns.opennms.org/xsd/passive-status-configuration\" \n" + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" >\n" + " <translation-events>\n" + " <translation-event>\n" + " <translation-map>\n" + " <node-label>\n" + " <event-token is-parm=\"true\" name=\"passiveNodeLabel\" value=\"Router\"/>\n" + " </node-label>\n" + " <ipaddr>\n" + " <event-token is-parm=\"true\" name=\"passiveIpAddr\" value=\"192.168.1.1\"/>\n" + " </ipaddr>\n" + " <service-name>\n" + " <event-token is-parm=\"true\" name=\"passiveServiceName\" value=\"ICMP\"/>\n" + " </service-name>\n" + " </translation-map>\n" + " </translation-event>" + " </translation-events>\n" + " <this:passive-events>\n" + " <this:passive-event uei=\"uei.opennms.org/services/passiveServiceStatus\">\n" + " <this:status-key>\n" + " <this:node-label>\n" + " <this:event-token is-parm=\"true\" name=\"passiveNodeLabel\" value=\"Router\"/>\n" + " </this:node-label>\n" + " <this:ipaddr>\n" + " <this:event-token is-parm=\"true\" name=\"passiveIpAddr\" value=\"192.168.1.1\"/>\n" + " </this:ipaddr>\n" + " <this:service-name>\n" + " <this:event-token is-parm=\"true\" name=\"passiveServiceName\" value=\"ICMP\"/>\n" + " </this:service-name>\n" + " <this:status>\n" + " <this:event-token is-parm=\"true\" name=\"passiveStatus\" value=\"Down\"/>\n" + " </this:status>\n" + " </this:status-key>\n" + " </this:passive-event>\n" + " </this:passive-events>\n" + "</this:passive-status-configuration>\n" + ""; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/b89ce19c7972bd6c2a2ecc14775e8cf65b89c526/PassiveStatusKeeperTest.java/buggy/src/services/org/opennms/netmgt/passive/PassiveStatusKeeperTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 8336, 809, 1435, 288, 3639, 327, 20410, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 5333, 82, 6, 397, 540, 3532, 2211, 30, 5466, 688, 17, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 8336, 809, 1435, 288, 3639, 327, 20410, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 5333, 82, 6, 397, 540, 3532, 2211, 30, 5466, 688, 17, 2...
case LayoutPackage.LABEL_BLOCK__LABEL : setLabel( (Label) null );
case LayoutPackage.LABEL_BLOCK__LABEL: setLabel((Label)null);
public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case LayoutPackage.LABEL_BLOCK__CHILDREN : getChildren( ).clear( ); return; case LayoutPackage.LABEL_BLOCK__BOUNDS : setBounds( (Bounds) null ); return; case LayoutPackage.LABEL_BLOCK__ANCHOR : unsetAnchor( ); return; case LayoutPackage.LABEL_BLOCK__STRETCH : unsetStretch( ); return; case LayoutPackage.LABEL_BLOCK__INSETS : setInsets( (Insets) null ); return; case LayoutPackage.LABEL_BLOCK__ROW : unsetRow( ); return; case LayoutPackage.LABEL_BLOCK__COLUMN : unsetColumn( ); return; case LayoutPackage.LABEL_BLOCK__ROWSPAN : unsetRowspan( ); return; case LayoutPackage.LABEL_BLOCK__COLUMNSPAN : unsetColumnspan( ); return; case LayoutPackage.LABEL_BLOCK__MIN_SIZE : setMinSize( (Size) null ); return; case LayoutPackage.LABEL_BLOCK__OUTLINE : setOutline( (LineAttributes) null ); return; case LayoutPackage.LABEL_BLOCK__BACKGROUND : setBackground( (Fill) null ); return; case LayoutPackage.LABEL_BLOCK__VISIBLE : unsetVisible( ); return; case LayoutPackage.LABEL_BLOCK__TRIGGERS : getTriggers( ).clear( ); return; case LayoutPackage.LABEL_BLOCK__LABEL : setLabel( (Label) null ); return; } eDynamicUnset( eFeature ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/bdab78403751f288b76844a99f50b999c34fb491/LabelBlockImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LabelBlockImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 9995, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 9995, 226...
org.exist.xquery.parser.XQueryAST tmp217_AST = null; tmp217_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp217_AST);
org.exist.xquery.parser.XQueryAST tmp216_AST = null; tmp216_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp216_AST);
public final void abbrevStep() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST abbrevStep_AST = null; switch ( LA(1)) { case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 138: case 139: case LITERAL_document: case AT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 151: case 152: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 156: case 157: case LITERAL_collection: case LITERAL_preceding: { { switch ( LA(1)) { case AT: { org.exist.xquery.parser.XQueryAST tmp216_AST = null; tmp216_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp216_AST); match(AT); break; } case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 138: case 139: case LITERAL_document: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 151: case 152: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 156: case 157: case LITERAL_collection: case LITERAL_preceding: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } nodeTest(); astFactory.addASTChild(currentAST, returnAST); abbrevStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case PARENT: { org.exist.xquery.parser.XQueryAST tmp217_AST = null; tmp217_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp217_AST); match(PARENT); abbrevStep_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = abbrevStep_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/00430aa4dd6963441696c4ac7250593b74a38b39/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1223, 27216, 4160, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1223, 27216, 4160, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, ...
FormatReader fr = (FormatReader) reader.getReader(file);
IFormatReader fr = (FormatReader) reader.getReader(file);
public void uploadFile(String file, boolean stitch) throws FormatException, IOException { if (!loggedIn) { throw new FormatException("Not logged in to OME server."); } // initialize readers ImageReader reader = new ImageReader(); FormatReader fr = (FormatReader) reader.getReader(file); fr = new ChannelSeparator(fr); FileStitcher fs = stitch ? new FileStitcher(fr) : null; OMEXMLMetadataStore store = new OMEXMLMetadataStore(); store.createRoot(); fr.setMetadataStore(store); if (fs != null) fs.setMetadataStore(store); // add the logical channel elements int sizeX = stitch ? fs.getSizeX(file) : fr.getSizeX(file); int sizeY = stitch ? fs.getSizeY(file) : fr.getSizeY(file); int sizeZ = stitch ? fs.getSizeZ(file) : fr.getSizeZ(file); int sizeC = stitch ? fs.getSizeC(file) : fr.getSizeC(file); int sizeT = stitch ? fs.getSizeT(file) : fr.getSizeT(file); store = (OMEXMLMetadataStore) (stitch ? fs.getMetadataStore(file) : fr.getMetadataStore(file)); int num = stitch ? fs.getImageCount(file) : fr.getImageCount(file); initialize(sizeX * sizeY * sizeZ * sizeC * sizeT); im.startImport(user); int bpp = fr.openBytes(file, 0).length / (sizeX * sizeY); if (bpp == 0) bpp++; String pix = newPixels(sizeX, sizeY, sizeZ, sizeC, sizeT, bpp); byte[] b = null; for (int i=0; i<num; i++) { b = stitch ? fs.openBytes(file, i) : fr.openBytes(file, i); int[] coords = stitch ? fs.getZCTCoords(file, i) : fr.getZCTCoords(file, i); uploadPlane(b, coords[0], coords[1], coords[2], pix); } pix = closePixels(pix).trim(); createPixelData(sizeX, sizeY, sizeZ, sizeC, sizeT, bpp, pix, file.substring(file.lastIndexOf(File.separator)), store); logout(); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/fef43932e07645ab0f8545996cbeb5b481348dc2/OMEUpload.java/buggy/loci/formats/OMEUpload.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 29661, 12, 780, 585, 16, 1250, 384, 1437, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 19385, 382, 13, 288, 1377, 604, 394, 4077, 503, 2932, 1248, 7545, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 29661, 12, 780, 585, 16, 1250, 384, 1437, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 19385, 382, 13, 288, 1377, 604, 394, 4077, 503, 2932, 1248, 7545, 316...
readBuffer [j++] = (char) (0xd8 | ((value >> 10) & 0x03ff)); readBuffer [j++] = (char) (0xdc | (value & 0x03ff)); } else { encodingError ("UCS-4 value out of range for Unicode",
readBuffer[j++] = (char) (0xd8 | ((value >> 10) & 0x03ff)); readBuffer[j++] = (char) (0xdc | (value & 0x03ff)); } else { encodingError("UCS-4 value out of range for Unicode",
private void copyUcs4ReadBuffer (int count, int shift1, int shift2, int shift3, int shift4) throws SAXException { int j = readBufferPos; if (count > 0 && (count % 4) != 0) { encodingError ( "number of bytes in UCS-4 encoding not divisible by 4", -1, count); } for (int i = 0; i < count; i += 4) { int value = (((rawReadBuffer [i] & 0xff) << shift1) | ((rawReadBuffer [i + 1] & 0xff) << shift2) | ((rawReadBuffer [i + 2] & 0xff) << shift3) | ((rawReadBuffer [i + 3] & 0xff) << shift4)); if (value < 0x0000ffff) { readBuffer [j++] = (char) value; if (value == (int) '\r') { sawCR = true; } } else if (value < 0x0010ffff) { value -= 0x010000; readBuffer [j++] = (char) (0xd8 | ((value >> 10) & 0x03ff)); readBuffer [j++] = (char) (0xdc | (value & 0x03ff)); } else { encodingError ("UCS-4 value out of range for Unicode", value, i); } } readBufferLength = j; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlParser.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1610, 57, 2143, 24, 1994, 1892, 261, 474, 1056, 16, 509, 4654, 21, 16, 509, 4654, 22, 16, 9506, 1377, 509, 4654, 23, 16, 509, 4654, 24, 13, 565, 1216, 14366, 565, 288, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1610, 57, 2143, 24, 1994, 1892, 261, 474, 1056, 16, 509, 4654, 21, 16, 509, 4654, 22, 16, 9506, 1377, 509, 4654, 23, 16, 509, 4654, 24, 13, 565, 1216, 14366, 565, 288, 202,...
OPC_invokestatic,
Opcodes.OPC_invokestatic,
public void generateBoxingConversion(int unboxedTypeID) { switch (unboxedTypeID) { case T_byte : if (this.targetLevel >= ClassFileConstants.JDK1_5) { if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Byte.valueOf(byte)"); //$NON-NLS-1$ // invokestatic: Byte.valueOf(byte) this.invoke( OPC_invokestatic, 1, // argCount 1, // return type size ConstantPool.JavaLangByteConstantPoolName, ConstantPool.ValueOf, ConstantPool.byteByteSignature); } else { // new Byte( byte ) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Byte(byte)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x1(); swap(); this.invoke( OPC_invokespecial, 1, // argCount 0, // return type size ConstantPool.JavaLangByteConstantPoolName, ConstantPool.Init, ConstantPool.ByteConstrSignature); } break; case T_short : if ( this.targetLevel >= ClassFileConstants.JDK1_5 ) { // invokestatic: Short.valueOf(short) if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Short.valueOf(short)"); //$NON-NLS-1$ this.invoke( OPC_invokestatic, 1, // argCount 1, // return type size ConstantPool.JavaLangShortConstantPoolName, ConstantPool.ValueOf, ConstantPool.shortShortSignature); } else { // new Short(short) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Short(short)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x1(); swap(); this.invoke( OPC_invokespecial, 1, // argCount 0, // return type size ConstantPool.JavaLangShortConstantPoolName, ConstantPool.Init, ConstantPool.ShortConstrSignature); } break; case T_char : if ( this.targetLevel >= ClassFileConstants.JDK1_5 ) { // invokestatic: Character.valueOf(char) if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Character.valueOf(char)"); //$NON-NLS-1$ this.invoke( OPC_invokestatic, 1, // argCount 1, // return type size ConstantPool.JavaLangCharacterConstantPoolName, ConstantPool.ValueOf, ConstantPool.charCharacterSignature); } else { // new Char( char ) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Character(char)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x1(); swap(); this.invoke( OPC_invokespecial, 1, // argCount 0, // return type size ConstantPool.JavaLangCharacterConstantPoolName, ConstantPool.Init, ConstantPool.CharConstrSignature); } break; case T_int : if (this.targetLevel >= ClassFileConstants.JDK1_5) { // invokestatic: Integer.valueOf(int) if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Integer.valueOf(int)"); //$NON-NLS-1$ this.invoke( OPC_invokestatic, 1, // argCount 1, // return type size ConstantPool.JavaLangIntegerConstantPoolName, ConstantPool.ValueOf, ConstantPool.IntIntegerSignature); } else { // new Integer(int) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Integer(int)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x1(); swap(); this.invoke( OPC_invokespecial, 1, // argCount 0, // return type size ConstantPool.JavaLangIntegerConstantPoolName, ConstantPool.Init, ConstantPool.IntConstrSignature); } break; case T_long : if (this.targetLevel >= ClassFileConstants.JDK1_5) { // invokestatic: Long.valueOf(long) if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Long.valueOf(long)"); //$NON-NLS-1$ this.invoke( OPC_invokestatic, 2, // argCount 1, // return type size ConstantPool.JavaLangLongConstantPoolName, ConstantPool.ValueOf, ConstantPool.longLongSignature); } else { // new Long( long ) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Long(long)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x2(); dup_x2(); pop(); this.invoke( OPC_invokespecial, 2, // argCount 0, // return type size ConstantPool.JavaLangLongConstantPoolName, ConstantPool.Init, ConstantPool.LongConstrSignature); } break; case T_float : if ( this.targetLevel >= ClassFileConstants.JDK1_5 ) { // invokestatic: Float.valueOf(float) if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Float.valueOf(float)"); //$NON-NLS-1$ this.invoke( OPC_invokestatic, 1, // argCount 1, // return type size ConstantPool.JavaLangFloatConstantPoolName, ConstantPool.ValueOf, ConstantPool.floatFloatSignature); } else { // new Float(float) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Float(float)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x1(); swap(); this.invoke( OPC_invokespecial, 1, // argCount 0, // return type size ConstantPool.JavaLangFloatConstantPoolName, ConstantPool.Init, ConstantPool.FloatConstrSignature); } break; case T_double : if ( this.targetLevel >= ClassFileConstants.JDK1_5 ) { // invokestatic: Double.valueOf(double) if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Double.valueOf(double)"); //$NON-NLS-1$ this.invoke( OPC_invokestatic, 2, // argCount 1, // return type size ConstantPool.JavaLangDoubleConstantPoolName, ConstantPool.ValueOf, ConstantPool.doubleDoubleSignature); } else { // new Double( double ) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Double(double)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x2(); dup_x2(); pop(); this.invoke( OPC_invokespecial, 2, // argCount 0, // return type size ConstantPool.JavaLangDoubleConstantPoolName, ConstantPool.Init, ConstantPool.DoubleConstrSignature); } break; case T_boolean : if ( this.targetLevel >= ClassFileConstants.JDK1_5 ) { // invokestatic: Boolean.valueOf(boolean) if (DEBUG) System.out.println(position + "\t\tinvokestatic java.lang.Boolean.valueOf(boolean)"); //$NON-NLS-1$ this.invoke( OPC_invokestatic, 1, // argCount 1, // return type size ConstantPool.JavaLangBooleanConstantPoolName, ConstantPool.ValueOf, ConstantPool.booleanBooleanSignature); } else { // new Boolean(boolean) if (DEBUG) System.out.println(position + "\t\tinvokespecial java.lang.Boolean(boolean)"); //$NON-NLS-1$ newWrapperFor(unboxedTypeID); dup_x1(); swap(); this.invoke( OPC_invokespecial, 1, // argCount 0, // return type size ConstantPool.JavaLangBooleanConstantPoolName, ConstantPool.Init, ConstantPool.BooleanConstrSignature); } }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/5a485cb39d1ee33622141cf426fac71c4bf93ded/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 2103, 3514, 310, 6814, 12, 474, 26773, 329, 559, 734, 13, 288, 565, 1620, 261, 318, 2147, 329, 559, 734, 13, 288, 3639, 648, 399, 67, 7229, 294, 5411, 309, 261, 2211, 18, 3299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 3514, 310, 6814, 12, 474, 26773, 329, 559, 734, 13, 288, 565, 1620, 261, 318, 2147, 329, 559, 734, 13, 288, 3639, 648, 399, 67, 7229, 294, 5411, 309, 261, 2211, 18, 3299, ...
TransactionContext oldTransactionContext = transactionContextManager.getContext();
public InvocationResult invoke(final Invocation invocation) throws Throwable { EJBInvocation ejbInvocation = (EJBInvocation) invocation; // initialize the context and set it into the invocation StatefulInstanceContext ctx = getInstanceContext(ejbInvocation); ejbInvocation.setEJBInstanceContext(ctx); // resume the preexisting transaction context TransactionContext oldTransactionContext = transactionContextManager.getContext(); if (ctx.getPreexistingContext() != null) { BeanTransactionContext preexistingContext = ctx.getPreexistingContext(); ctx.setPreexistingContext(null); preexistingContext.setOldContext((UnspecifiedTransactionContext) oldTransactionContext); ejbInvocation.setTransactionContext(preexistingContext); transactionContextManager.setContext(preexistingContext); preexistingContext.resume(); } // check reentrancy if (ctx.isInCall()) { if (ejbInvocation.getType().isLocal()) { throw new NotReentrantLocalException("Stateful session beans do not support reentrancy: " + containerId); } else { throw new NotReentrantException("Stateful session beans do not support reentrancy: " + containerId); } } InstanceContext oldInstanceContext = ejbInvocation.getTransactionContext().beginInvocation(ctx); try { // invoke next InvocationResult invocationResult = next.invoke(invocation); // if we have a BMT still associated with the thread, suspend it and save it off for the next invocation TransactionContext currentContext = transactionContextManager.getContext(); if (oldTransactionContext != currentContext) { BeanTransactionContext preexistingContext = (BeanTransactionContext)currentContext; if (preexistingContext.getOldContext() != oldTransactionContext) { throw new UncommittedTransactionException("Found an uncommitted bean transaction from another session bean"); } // suspend and save off the BMT context preexistingContext.suspend(); preexistingContext.setOldContext(null); ctx.setPreexistingContext(preexistingContext); // resume the old unsupported transaction context ejbInvocation.setTransactionContext(oldTransactionContext); transactionContextManager.setContext(oldTransactionContext); oldTransactionContext.resume(); } return invocationResult; } catch(Throwable t) { // we must kill the instance when a system exception is thrown ctx.die(); // if we have tx context, other then our old tx context, associated with the thread roll it back if (oldTransactionContext != transactionContextManager.getContext()) { try { transactionContextManager.getContext().rollback(); } catch (Exception e) { log.warn("Unable to roll back", e); } // and resume the old transaction ejbInvocation.setTransactionContext(oldTransactionContext); transactionContextManager.setContext(oldTransactionContext); oldTransactionContext.resume(); } throw t; } finally { ejbInvocation.getTransactionContext().endInvocation(oldInstanceContext); ejbInvocation.setEJBInstanceContext(null); } }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/ba50d67b83c2294c56385b41579ff21f97e170ab/StatefulInstanceInterceptor.java/buggy/openejb2/modules/core/src/java/org/openejb/sfsb/StatefulInstanceInterceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11298, 1253, 4356, 12, 6385, 11298, 9495, 13, 1216, 4206, 288, 3639, 12157, 9267, 18024, 9267, 273, 261, 22719, 9267, 13, 9495, 31, 3639, 368, 4046, 326, 819, 471, 444, 518, 1368, 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, 1071, 11298, 1253, 4356, 12, 6385, 11298, 9495, 13, 1216, 4206, 288, 3639, 12157, 9267, 18024, 9267, 273, 261, 22719, 9267, 13, 9495, 31, 3639, 368, 4046, 326, 819, 471, 444, 518, 1368, 3...
if (bounds[0] == -1) { bounds[0] = getEntry(start, commands); if (bounds[0] == -1) return null; bounds[1] = bounds[0] + 1; }
if (bounds[1] == -1) return null; TexCommandEntry[] compls = new TexCommandEntry[bounds[1] - bounds[0]];
public TexCommandEntry[] getCompletionsCom(String start, int context) { TexCommandEntry[] commands = commandContainer.getSortedCommands(context); if (commands == null) return null; if (start.equals("")) return commands; int[] bounds = getCompletionsBin(start, commands); if (bounds[0] == -1) { // getCompletionsBin does not return anything if start is // an exact entry, therefore we try getEntry bounds[0] = getEntry(start, commands); if (bounds[0] == -1) return null; bounds[1] = bounds[0] + 1; } TexCommandEntry[] compls = new TexCommandEntry[bounds[1] - bounds[0]]; System.arraycopy(commands, bounds[0], compls, 0, bounds[1] - bounds[0]); return compls; }
9028 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9028/aacbe160227a00ff074826447abb15a1cee8b725/ReferenceManager.java/buggy/source/net/sourceforge/texlipse/model/ReferenceManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 399, 338, 2189, 1622, 8526, 336, 6297, 1115, 799, 12, 780, 787, 16, 509, 819, 13, 288, 3639, 399, 338, 2189, 1622, 8526, 4364, 273, 1296, 2170, 18, 588, 11739, 9127, 12, 2472, 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, 1071, 399, 338, 2189, 1622, 8526, 336, 6297, 1115, 799, 12, 780, 787, 16, 509, 819, 13, 288, 3639, 399, 338, 2189, 1622, 8526, 4364, 273, 1296, 2170, 18, 588, 11739, 9127, 12, 2472, 176...
Driver.removeSplashScreen();
String loadFromURL = SystemProperties.getProperty("findbugs.loadBugsFromURL"); if (loadFromURL != null) { JOptionPane.showMessageDialog(MainFrame.this, "Loading from " +loadFromURL); InputStream in; try { in = new URL(loadFromURL).openConnection().getInputStream(); loadAnalysisFromInputStream(in); JOptionPane.showMessageDialog(MainFrame.this, "Loaded from " +loadFromURL); } catch (MalformedURLException e1) { e1.printStackTrace(); JOptionPane.showMessageDialog(MainFrame.this, "Error loading " +e1.getMessage()); } catch (IOException e1) { e1.printStackTrace(); JOptionPane.showMessageDialog(MainFrame.this, "Error loading " +e1.getMessage()); } }
private MainFrame(FindBugsLayoutManagerFactory factory) { this.findBugsLayoutManagerFactory = factory; this.guiLayout = factory.getInstance(this); SwingUtilities.invokeLater(new Runnable() { public void run() { setTitle("FindBugs: " + Project.UNNAMED_PROJECT); guiLayout.initialize(); bugPopupMenu = createBugPopupMenu(); branchPopupMenu = createBranchPopUpMenu(); loadPrevCommentsList(GUISaveState.getInstance().getPreviousComments().toArray(new String[GUISaveState.getInstance().getPreviousComments().size()])); updateStatusBar(); setSize(new Dimension(800, 650)); Toolkit.getDefaultToolkit().setDynamicLayout(true); setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); setJMenuBar(createMainMenuBar()); setVisible(true); if (SystemProperties.getProperty("os.name").startsWith("Mac")) { try { Class osxAdapter = Class.forName("edu.umd.cs.findbugs.gui2.OSXAdapter"); Method registerMethod = osxAdapter.getDeclaredMethod("registerMacOSXApplication", MainFrame.class); if (registerMethod != null) { registerMethod.invoke(osxAdapter, MainFrame.this); } } catch (NoClassDefFoundError e) { // This will be thrown first if the OSXAdapter is loaded on a system without the EAWT // because OSXAdapter extends ApplicationAdapter in its def System.err.println("This version of Mac OS X does not support the Apple EAWT. Application Menu handling has been disabled (" + e + ")"); } catch (ClassNotFoundException e) { // This shouldn't be reached; if there's a problem with the OSXAdapter we should get the // above NoClassDefFoundError first. System.err.println("This version of Mac OS X does not support the Apple EAWT. Application Menu handling has been disabled (" + e + ")"); } catch (Exception e) { System.err.println("Exception while loading the OSXAdapter: " + e); e.printStackTrace(); if (DEBUG) { e.printStackTrace(); } } } Driver.removeSplashScreen(); addComponentListener(new ComponentAdapter(){ public void componentResized(ComponentEvent e){ resetPrevCommentsComboBox(); userCommentsText.validate(); } }); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e) { if(userCommentsText.hasFocus()) setProjectChanged(true); callOnClose(); } }); } }); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/153949bfa6e991a6339a5bc7bec96b2554ecf4bb/MainFrame.java/clean/findbugs/src/java5/edu/umd/cs/findbugs/gui2/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 12740, 3219, 12, 3125, 31559, 3744, 20012, 3272, 13, 202, 95, 202, 202, 2211, 18, 4720, 31559, 3744, 20012, 273, 3272, 31, 202, 202, 2211, 18, 20292, 3744, 273, 3272, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 12740, 3219, 12, 3125, 31559, 3744, 20012, 3272, 13, 202, 95, 202, 202, 2211, 18, 4720, 31559, 3744, 20012, 273, 3272, 31, 202, 202, 2211, 18, 20292, 3744, 273, 3272, 18, 588, ...
throw new BioError("Assertion failure creating SimilarityPairFeature. Template modification vetoed",cve);
throw new BioError("Assertion failure creating " + "SimilarityPairFeature. Template " + "modification vetoed",cve);
private void makeSimilarity() throws BioException { subHitData.putAll(resultData); subHitData.putAll(hitData); // Try to get a valid TokenParser if (tokenParser == null) { String identifier; // Try explicit sequence type first if (subHitData.containsKey("hitSequenceType")) identifier = (String) subHitData.get("hitSequenceType"); // Otherwise try to resolve from the program name (only // works for Blast) else if (subHitData.containsKey("program")) identifier = (String) subHitData.get("program"); else throw new BioException("Failed to determine sequence type"); FiniteAlphabet alpha = AlphabetResolver.resolveAlphabet(identifier); tokenParser = alpha.getTokenization("token"); } // Set strands of hit on query and subject Strand qStrand = StrandedFeature.POSITIVE; Strand sStrand = StrandedFeature.POSITIVE; // In cases where an explicit strand is given (FASTA DNA, BLASTN) if (subHitData.containsKey("queryStrand") && subHitData.get("queryStrand").equals("minus")) qStrand = StrandedFeature.NEGATIVE; if (subHitData.containsKey("subjectStrand") && subHitData.get("subjectStrand").equals("minus")) sStrand = StrandedFeature.NEGATIVE; // In cases where a frame is given as this contains strand // information (TBLASTN for hit, TBLASTX for both query and // hit) if (subHitData.containsKey("queryFrame") && ((String) subHitData.get("queryFrame")).startsWith("minus")) qStrand = StrandedFeature.NEGATIVE; if (subHitData.containsKey("subjectFrame") && ((String) subHitData.get("subjectFrame")).startsWith("minus")) sStrand = StrandedFeature.NEGATIVE; // Get start/end int qStart = Integer.parseInt((String) subHitData.get("querySequenceStart")); int qEnd = Integer.parseInt((String) subHitData.get("querySequenceEnd")); int sStart = Integer.parseInt((String) subHitData.get("subjectSequenceStart")); int sEnd = Integer.parseInt((String) subHitData.get("subjectSequenceEnd")); // The start/end coordinates from BioJava XML don't follow the // BioJava paradigm of start < end, with orientation given by // the strand property. Rather, they present start/end as // displayed in BLAST output, with the coordinates being // inverted on the reverse strand. We account for this here. if (qStrand == StrandedFeature.NEGATIVE) { int swap = qStart; qStart = qEnd; qEnd = swap; } if (sStrand == StrandedFeature.NEGATIVE) { int swap = sStart; sStart = sEnd; sEnd = swap; } String subjectID = (String) subHitData.get("HitId"); Sequence queryView = makeQueryViewSequence(queryID); Sequence subjectView = makeSubjectViewSequence(subjectID); // Map of Alignment sequences Map labelMap = new HashMap(); try { // Set source to the program name String source = "unknown"; if (subHitData.containsKey("program")) source = (String) subHitData.get("program"); tokenBuffer.setLength(0); tokenBuffer.append((String) subHitData.get("querySequence")); labelMap.put(SimilarityPairFeature.QUERY_LABEL, new SimpleSymbolList(tokenParser, tokenBuffer.substring(0))); tokenBuffer.setLength(0); tokenBuffer.append((String) subHitData.get("subjectSequence")); labelMap.put(SimilarityPairFeature.SUBJECT_LABEL, new SimpleSymbolList(tokenParser, tokenBuffer.substring(0))); double score = 0.0; if (subHitData.containsKey("score")) score = Double.parseDouble((String) subHitData.get("score")); // Query sequence feature SimilarityPairFeature.Template qt = new SimilarityPairFeature.Template(); qt.type = SIMILARITY_PAIR_FEATURE_TYPE; qt.source = source; qt.location = new RangeLocation(qStart, qEnd); qt.strand = qStrand; qt.score = score; qt.annotation = AnnotationFactory.makeAnnotation(subHitData); // Subject sequence feature SimilarityPairFeature.Template st = new SimilarityPairFeature.Template(); st.type = SIMILARITY_PAIR_FEATURE_TYPE; st.source = source; st.location = new RangeLocation(sStart, sEnd); st.strand = sStrand; st.score = score; st.annotation = AnnotationFactory.makeAnnotation(subHitData); Alignment a = new SimpleAlignment(labelMap); qt.alignment = a; st.alignment = a; SimilarityPairFeature qf = (SimilarityPairFeature) queryView.createFeature(qt); SimilarityPairFeature sf = (SimilarityPairFeature) queryView.createFeature(qt); sf.setSibling(qf); qf.setSibling(sf); qf.addChangeListener(ChangeListener.ALWAYS_VETO); sf.addChangeListener(ChangeListener.ALWAYS_VETO); } catch (ChangeVetoException cve) { throw new BioError("Assertion failure creating SimilarityPairFeature. Template modification vetoed",cve); } }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/cd9dcb1b09636c687e752ee358edaad173423365/SimilarityPairBuilder.java/clean/src/org/biojava/bio/program/ssbind/SimilarityPairBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 16891, 560, 1435, 1216, 21209, 503, 565, 288, 3639, 720, 13616, 751, 18, 458, 1595, 12, 2088, 751, 1769, 3639, 720, 13616, 751, 18, 458, 1595, 12, 15989, 751, 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, 3238, 918, 1221, 16891, 560, 1435, 1216, 21209, 503, 565, 288, 3639, 720, 13616, 751, 18, 458, 1595, 12, 2088, 751, 1769, 3639, 720, 13616, 751, 18, 458, 1595, 12, 15989, 751, 1769, 3639,...
case CONSTRUCTOR_ID:
case Id_constructor:
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case CONSTRUCTOR_ID: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f). jsFunction_toString(toBase(args, 0)); case Id_valueOf: return wrap_double(realThis(thisObj, f). jsFunction_valueOf()); case Id_toLocaleString: return realThis(thisObj, f). jsFunction_toLocaleString(toBase(args, 0)); case Id_toFixed: return realThis(thisObj, f).jsFunction_toFixed(cx, args); case Id_toExponential: return realThis(thisObj, f).jsFunction_toExponential(cx, args); case Id_toPrecision: return realThis(thisObj, f).jsFunction_toPrecision(cx, args); } return Scriptable.NOT_FOUND; }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeNumber.java/clean/js/rhino/src/org/mozilla/javascript/NativeNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, ...
appRequester = new AppRequester(); reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { case CodePoint.EXTNAM: appRequester.extnam = reader.readString(); if (SanityManager.DEBUG) trace("extName = " + appRequester.extnam); if (appRequester.extnam.length() > CodePoint.MAX_NAME) tooBig(CodePoint.EXTNAM); break; case CodePoint.MGRLVLLS: parseMGRLVLLS(1); break; case CodePoint.SPVNAM: appRequester.spvnam = reader.readString(); if (appRequester.spvnam != null) badObjectLength(CodePoint.SPVNAM); break; case CodePoint.SRVNAM: appRequester.srvnam = reader.readString(); if (SanityManager.DEBUG) trace("serverName = " + appRequester.srvnam); if (appRequester.srvnam.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVNAM); break; case CodePoint.SRVRLSLV: appRequester.srvrlslv = reader.readString(); if (SanityManager.DEBUG) trace("serverlslv = " + appRequester.srvrlslv); if (appRequester.srvrlslv.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVRLSLV); break; case CodePoint.SRVCLSNM: appRequester.srvclsnm = reader.readString(); if (SanityManager.DEBUG) trace("serverClassName = " + appRequester.srvclsnm); if (appRequester.srvclsnm.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVCLSNM); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } }
private void parseEXCSAT() throws DRDAProtocolException { int codePoint; String strVal; // There are three kinds of EXCSAT's we might get. // 1) Initial Exchange attributes. // For this we need to initialize the apprequester. // Session state is set to ATTEXC and then the AR must // follow up with ACCSEC and SECCHK to get the connection. // 2) Send of EXCSAT as ping or mangager level adjustment. // (see parseEXCSAT2()) // For this we just ignore the EXCSAT objects that // are already set. // 3) Send of EXCSAT for connection reset. (see parseEXCSAT2()) // This is treated just like ping and will be followed up // by an ACCSEC request if in fact it is a connection reset. // If we have already exchanged attributes once just // process any new manager levels and return (case 2 and 3 above) if (appRequester != null) { parseEXCSAT2(); return; } // set up a new Application Requester to store information about the // application requester for this session appRequester = new AppRequester(); reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // optional case CodePoint.EXTNAM: appRequester.extnam = reader.readString(); if (SanityManager.DEBUG) trace("extName = " + appRequester.extnam); if (appRequester.extnam.length() > CodePoint.MAX_NAME) tooBig(CodePoint.EXTNAM); break; // optional case CodePoint.MGRLVLLS: parseMGRLVLLS(1); break; // optional case CodePoint.SPVNAM: appRequester.spvnam = reader.readString(); // This is specified as a null parameter so length should // be zero if (appRequester.spvnam != null) badObjectLength(CodePoint.SPVNAM); break; // optional case CodePoint.SRVNAM: appRequester.srvnam = reader.readString(); if (SanityManager.DEBUG) trace("serverName = " + appRequester.srvnam); if (appRequester.srvnam.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVNAM); break; // optional case CodePoint.SRVRLSLV: appRequester.srvrlslv = reader.readString(); if (SanityManager.DEBUG) trace("serverlslv = " + appRequester.srvrlslv); if (appRequester.srvrlslv.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVRLSLV); break; // optional case CodePoint.SRVCLSNM: appRequester.srvclsnm = reader.readString(); if (SanityManager.DEBUG) trace("serverClassName = " + appRequester.srvclsnm); if (appRequester.srvclsnm.length() > CodePoint.MAX_NAME) tooBig(CodePoint.SRVCLSNM); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 2294, 4596, 789, 1435, 1216, 16801, 9793, 5752, 503, 288, 202, 474, 18614, 31, 202, 780, 609, 3053, 31, 202, 759, 6149, 854, 8925, 21961, 434, 5675, 4596, 789, 1807, 732,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 2294, 4596, 789, 1435, 1216, 16801, 9793, 5752, 503, 288, 202, 474, 18614, 31, 202, 780, 609, 3053, 31, 202, 759, 6149, 854, 8925, 21961, 434, 5675, 4596, 789, 1807, 732,...
public static double[] makeTranslationMatrix(double[] mat, double[] t, int sig) { if (mat == null) mat = new double[16]; double[] to = null; if (t.length == 3) to = Pn.homogenize(null, t); else if (t.length == 4) to = (double[]) t.clone(); if (to == null || (sig == EUCLIDEAN && to[3] == 0.0)) { throw new IllegalArgumentException("Infinite euclidean translation vector"); } Pn.normalize(to, to, sig); if (to[3] < 0) Rn.times(to, -1.0, to); double f = 1.0/(1+to[3]); for (int i = 0; i<3; ++i) { for (int j = 0; j<3; ++j) { mat[i*4+j] = ((i == j) ? 1.0 : 0.0 ) - sig * f * to[i]*to[j]; } } for (int i = 0; i<4; ++i) mat[4*i+3] = to[i]; for (int i = 0; i<3; ++i) mat[12+i] = -sig*mat[4*i+3]; if (debug) { double[] oldm = makeTranslationMatrixOld(null, t, sig); if (! Rn.equals(mat, oldm, 10E-8)) { Logger log = LoggingSystem.getLogger(P3.class); log.log(Level.WARNING,"Incompatible results:"); log.log(Level.WARNING,"Signature is "+sig); log.log(Level.WARNING,"To vector is "+Rn.toString(to)); log.log(Level.WARNING,"New: \n"+Rn.matrixToString(mat)); log.log(Level.WARNING,"Old: \n"+Rn.matrixToString(oldm)); } } return mat;
public static double[] makeTranslationMatrix(double[] dst, double[] from, double[] to, int sig) { if (dst == null) dst = new double[16]; double[] TP = P3.makeTranslationMatrix(null, from, sig); double[] iTP = Rn.inverse(null, TP); double[] toPrime = Rn.matrixTimesVector(null, iTP, to ); P3.makeTranslationMatrix(dst, toPrime, sig); Rn.conjugateByMatrix(dst, dst, TP); return dst;
public static double[] makeTranslationMatrix(double[] mat, double[] t, int sig) { if (mat == null) mat = new double[16]; double[] to = null; if (t.length == 3) to = Pn.homogenize(null, t); else if (t.length == 4) to = (double[]) t.clone(); if (to == null || (sig == EUCLIDEAN && to[3] == 0.0)) { throw new IllegalArgumentException("Infinite euclidean translation vector"); } Pn.normalize(to, to, sig); if (to[3] < 0) Rn.times(to, -1.0, to); double f = 1.0/(1+to[3]); for (int i = 0; i<3; ++i) { for (int j = 0; j<3; ++j) { mat[i*4+j] = ((i == j) ? 1.0 : 0.0 ) - sig * f * to[i]*to[j]; } } for (int i = 0; i<4; ++i) mat[4*i+3] = to[i]; for (int i = 0; i<3; ++i) mat[12+i] = -sig*mat[4*i+3]; if (debug) { double[] oldm = makeTranslationMatrixOld(null, t, sig); if (! Rn.equals(mat, oldm, 10E-8)) { Logger log = LoggingSystem.getLogger(P3.class); log.log(Level.WARNING,"Incompatible results:"); log.log(Level.WARNING,"Signature is "+sig); log.log(Level.WARNING,"To vector is "+Rn.toString(to)); log.log(Level.WARNING,"New: \n"+Rn.matrixToString(mat)); log.log(Level.WARNING,"Old: \n"+Rn.matrixToString(oldm)); } } return mat; }
25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/ebefa80ebc57705657a2249820470c341a94948d/P3.java/buggy/src-core/de/jreality/math/P3.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1645, 8526, 1221, 6717, 4635, 12, 9056, 8526, 4834, 16, 1645, 8526, 268, 16, 509, 3553, 13, 202, 95, 202, 202, 430, 261, 7373, 422, 446, 13, 4834, 273, 394, 1645, 63, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1645, 8526, 1221, 6717, 4635, 12, 9056, 8526, 4834, 16, 1645, 8526, 268, 16, 509, 3553, 13, 202, 95, 202, 202, 430, 261, 7373, 422, 446, 13, 4834, 273, 394, 1645, 63, 2...
setName((String) in.readObject());
Object name = in.readObject(); if (name instanceof ClassType) { type = (ClassType) name; setName(type.getName()); } else setName((String) name);
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { setName((String) in.readObject()); flags |= LAZY_DECLARATIONS; }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/67637d72943eeea233b875ef52254a601b8ab43b/ModuleExp.java/clean/gnu/expr/ModuleExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 6841, 12, 921, 1210, 316, 13, 565, 1216, 1860, 16, 10403, 225, 288, 565, 1033, 508, 273, 316, 18, 896, 921, 5621, 309, 261, 529, 1276, 1659, 559, 13, 288, 618, 273, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 6841, 12, 921, 1210, 316, 13, 565, 1216, 1860, 16, 10403, 225, 288, 565, 1033, 508, 273, 316, 18, 896, 921, 5621, 309, 261, 529, 1276, 1659, 559, 13, 288, 618, 273, 26...
Vector newList = new Vector();
final Vector newList = new Vector();
public Vector getFileList() { Vector newList = new Vector(); if (fileList == null) return newList; for(Iterator it = fileList.iterator(); it.hasNext();) { newList.add(it.next()); } return newList; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Index.java/buggy/src/thaw/plugins/index/Index.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5589, 6034, 682, 1435, 288, 202, 202, 5018, 23605, 273, 394, 5589, 5621, 202, 202, 430, 261, 768, 682, 422, 446, 13, 1082, 202, 2463, 23605, 31, 202, 202, 1884, 12, 3198, 518,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5589, 6034, 682, 1435, 288, 202, 202, 5018, 23605, 273, 394, 5589, 5621, 202, 202, 430, 261, 768, 682, 422, 446, 13, 1082, 202, 2463, 23605, 31, 202, 202, 1884, 12, 3198, 518,...
r.x -= NUMBERS_WIDTH;
public void paint(Graphics g, Shape allocation) { Rectangle r = (allocation instanceof Rectangle) ? (Rectangle)allocation : allocation.getBounds(); AttributeSet attributes = getAttributes(); Object o = attributes.getAttribute(StyleConstants.Background); Color oldColor = g.getColor(); Integer lineNumber = getLineNumber(); Color highlightColor = highlight.getHighlight(lineNumber); if (highlightColor != null) { g.setColor(highlightColor); g.fillRect(r.x, r.y, r.width, r.height); g.setColor(oldColor); } r.x += NUMBERS_WIDTH; super.paint(g, r); FontMetrics metrics = g.getFontMetrics(); g.setColor(Color.GRAY); String lineNumberString = lineNumber.toString(); int width = metrics.stringWidth(lineNumberString); int numberX = r.x - width-9; int numberY = r.y + metrics.getAscent(); g.drawString(lineNumberString, numberX, numberY); g.setColor(oldColor); // System.out.println("Drawing line for " + lineNumber + " @ " + numberX +"," + numberY); r.x -= NUMBERS_WIDTH; }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/e6e6d93cb73155a74f1ed8fba087d974a280951c/NumberedParagraphView.java/clean/findbugs/src/java5/edu/umd/cs/findbugs/sourceViewer/NumberedParagraphView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 17558, 314, 16, 12383, 13481, 13, 288, 3639, 13264, 436, 273, 261, 29299, 1276, 13264, 13, 692, 7734, 261, 19463, 13, 29299, 294, 13481, 18, 588, 5694, 5621, 377, 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, 377, 1071, 918, 12574, 12, 17558, 314, 16, 12383, 13481, 13, 288, 3639, 13264, 436, 273, 261, 29299, 1276, 13264, 13, 692, 7734, 261, 19463, 13, 29299, 294, 13481, 18, 588, 5694, 5621, 377, 20...
SmbFile src = new SmbFile(f, auth);
SmbFile src = new SmbFile("smb:" + f, auth);
private void mv(HttpServletRequest req, NtlmPasswordAuthentication auth) { String[] s = req.getParameterValues("src"); String d = req.getParameter("dest"); for (String f : s) { try { SmbFile src = new SmbFile(f, auth); SmbFile dest = new SmbFile(d + src.getName(), auth); src.renameTo(dest); } catch (SmbException exn) { // XXX report errors to client logger.warn("could not move: " + f, exn); } catch (MalformedURLException exn) { // XXX report errors to client logger.warn("bad url", exn); } } }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/85c9b962f09bba5d2c90bafbb6632d56c9ac25d5/CommandRunner.java/buggy/tran/portal/webapps/browser/src/com/metavize/tran/portal/browser/CommandRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 7701, 12, 2940, 18572, 1111, 16, 423, 6172, 81, 3913, 6492, 1357, 13, 565, 288, 3639, 514, 8526, 272, 273, 1111, 18, 588, 1662, 1972, 2932, 4816, 8863, 3639, 514, 302, 273, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 7701, 12, 2940, 18572, 1111, 16, 423, 6172, 81, 3913, 6492, 1357, 13, 565, 288, 3639, 514, 8526, 272, 273, 1111, 18, 588, 1662, 1972, 2932, 4816, 8863, 3639, 514, 302, 273, 1...