id
int64
5
418
fixed
stringlengths
8
123
bug_ctx
stringlengths
67
358
173
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getPath( ) , format.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
371
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , XHTML5.autoDetectFormat( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
231
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( inputEncoding, inputFile) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
386
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( inputFile, inputEncoding, XDOC, output, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
114
return Objects.equals ( getFile ( ) , that.getFile ( ) ) ;
[BUG][BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; <extra_id_0> }[CONTEXT]
21
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
[BUG]return valueOf( format, absolutePath, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
189
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( convert( f.getName( ) , format.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
392
plexus = null;
[BUG]plexus = true;[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } plexus.dispose(); <extra_id_0> }[CONTEXT]
87
if ( o == null || getClass ( ) != o.getClass ( ) ) {
[BUG]if ( o == null && getClass( ) != o.getClass( ) ) {[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } <extra_id_0> return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
402
return firstElement != null;
[BUG]returnroleHint ;[BUG][CONTEXT] public boolean isXml() { <extra_id_0> }[CONTEXT]
13
return this.reader; }
[BUG]} return this.reader;[BUG][CONTEXT] public Reader getReader() { <extra_id_0>[CONTEXT]
416
super ( message, cause ) ; }
[BUG]} super( message, cause) ;[BUG][CONTEXT] public ConverterException(String message, Throwable cause) { <extra_id_0>[CONTEXT]
296
plexus.dispose ( ) ; plexus = null;
[BUG]plexus = null; plexus.dispose( ) ;[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } <extra_id_0> }[CONTEXT]
133
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, extension, null, hasSink, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
225
reader = ReaderFactory.newPlatformReader ( inputFile ) ; }
[BUG][BUG][CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { <extra_id_0>[CONTEXT]
202
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format;
[BUG]return format; if ( hasFileExtensionIgnoreCase( f.getName( ) , format.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> } }[CONTEXT]
365
return format;
[BUG]return XHTML5;[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { <extra_id_0> } }[CONTEXT]
19
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
[BUG]return valueOf( format, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
294
[Delete]
[BUG]if ( firstTag == null) { continue; }[BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> return; } plexus.dispose(); plexus = null; }[CONTEXT]
44
return new InputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new InputFileWrapper( absolutePath, charsetName) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
77
this.file = file;
[BUG]this.file = filetoset;this.file = file;[BUG][CONTEXT] void setFile(File file) { <extra_id_0> }[CONTEXT]
350
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , XDOC.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
418
super ( message, cause ) ;
[BUG]super( message) ;super( message, cause) ;[BUG][CONTEXT] public ConverterException(String message, Throwable cause) { <extra_id_0> }[CONTEXT]
176
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; }
[BUG]return format;[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> }[CONTEXT]
383
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , XHTML5.autoDetectFormat( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
326
this.hasParser = hasParser;
[BUG]this.hasParser = hasSink;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; <extra_id_0> this.hasSink = hasSink; }[CONTEXT]
86
return true; }
[BUG]} return true;[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { <extra_id_0> if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
167
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , XHTML5.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
368
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format;
[BUG]return format; if ( hasFileExtensionIgnoreCase( f.getName( ) , format.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> } }[CONTEXT]
199
return format; }
[BUG]} return format;[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { <extra_id_0> }[CONTEXT]
262
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newReader( inputFile, inputEncoding) ;reader = ReaderFactory.newPlatformReader( inputFile) ;[BUG][CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { <extra_id_0> }[CONTEXT]
374
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( hasSink, extension, null, hasParser, roleHint) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
121
if ( o == null || getClass ( ) != o.getClass ( ) ) { return false;
[BUG]return false; if ( o == null || getClass( ) != o.getClass( ) ) {[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } <extra_id_0> } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
186
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) ormat.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
38
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
[BUG]return valueOf( absolutePath, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
391
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( null, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
345
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; }
[BUG]return format;[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> }[CONTEXT]
123
if ( !super.equals ( o ) ) { return false; }
[BUG]} return false;if ( !super.equals( o) ) {[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } <extra_id_0> AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
215
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( inputFile, inputEncoding, format, output, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
108
if ( !super.equals ( o ) ) { return false;
[BUG]return false; if ( !super.equals( o) ) {[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } <extra_id_0> } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
375
this.roleHint = roleHint;
[BUG]this.roleHint = null;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { <extra_id_0> this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
342
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( format.getName( ) , f.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
292
if ( plexus == null ) { return; }
[BUG][BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> plexus.dispose(); plexus = null; }[CONTEXT]
65
this.encoding = encoding;
[BUG]this.encoding = format;[BUG][CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { this.format = DefaultConverter.DoxiaFormat.valueOf(format.toUpperCase()); this.out = out; <extra_id_0> }[CONTEXT]
122
if ( !super.equals ( o ) ) {
[BUG]if ( !super.equals( o) ) {[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } <extra_id_0> return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
347
return format;
[BUG]return XDOC;[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { <extra_id_0> } }[CONTEXT]
80
if ( this == o ) {
[BUG]if ( this != o) {[BUG][CONTEXT] public boolean equals(Object o) { <extra_id_0> return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
286
outputEncoding = output.getEncoding ( ) ; }
[BUG]} outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0>[CONTEXT]
171
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( convert( f.getName( ) , format.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
170
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( format.getName( ) , f.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
317
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG][BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
338
return firstElement != null;
[BUG]return firstElement ;[BUG][CONTEXT] public boolean isXml() { <extra_id_0> }[CONTEXT]
214
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( output, inputEncoding, parserFormat, inputFile, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
319
this.roleHint = roleHint; this.extension = extension;
[BUG]this.extension = extension; this.roleHint = roleHint;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { <extra_id_0> this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
308
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( firstElement, extension, null, hasParser, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
78
return encoding;
[BUG]return absolutePath;[BUG][CONTEXT] public String getEncoding() { <extra_id_0> }[CONTEXT]
155
this.hasParser = hasParser;
[BUG]this.hasSink = hasSink;this.hasParser = hasParser;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; <extra_id_0> this.hasSink = hasSink; }[CONTEXT]
188
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( format.getName( ) , f.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
102
if ( !super.equals ( o ) ) { return false; }
[BUG]return false;[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } <extra_id_0> AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
18
return format; }
[BUG]} return format;[BUG][CONTEXT] public DefaultConverter.DoxiaFormat getFormat() { <extra_id_0>[CONTEXT]
302
plexus = null;
[BUG]if ( plexus != null) { plexus = null; }[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } plexus.dispose(); <extra_id_0> }[CONTEXT]
222
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newXmlReader( inputFile) ;reader = ReaderFactory.newPlatformReader( inputFile) ;[BUG][CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { <extra_id_0> }[CONTEXT]
399
this ( roleHint, extension, null, hasParser, hasSink ) ; }
[BUG]} this( roleHint, extension, null, hasParser, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0>[CONTEXT]
390
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newXmlReader( outputFile) ;[BUG][CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { <extra_id_0> }[CONTEXT]
28
return new OutputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new OutputFileWrapper( charsetName, format, absolutePath) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
6
return format; }
[BUG]} return format;[BUG][CONTEXT] public DefaultConverter.DoxiaFormat getFormat() { <extra_id_0>[CONTEXT]
291
if ( plexus == null ) { return; }
[BUG]return ;[BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> plexus.dispose(); plexus = null; }[CONTEXT]
194
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; }
[BUG]return format;[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> }[CONTEXT]
281
outputEncoding = output.getEncoding ( ) ;
[BUG]outputEncoding = output.getFile( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
165
return firstElement != null;
[BUG]return roleHint != null;[BUG][CONTEXT] public boolean isXml() { <extra_id_0> }[CONTEXT]
356
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , format.getParser( 4) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
393
plexus = null; }
[BUG]} plexus = null;[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } plexus.dispose(); <extra_id_0>[CONTEXT]
104
[Delete]
[BUG]if ( ( this) == o) { return true; }[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } <extra_id_0> return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
321
this.roleHint = roleHint;
[BUG]this.firstElement = firstElement;this.roleHint = roleHint;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { <extra_id_0> this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
417
super ( message, cause ) ;
[BUG][BUG][CONTEXT] public ConverterException(String message, Throwable cause) { <extra_id_0> }[CONTEXT]
388
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newXmlReader( outputDirectoryOrFile) ;[BUG][CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { <extra_id_0> }[CONTEXT]
43
return new InputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new InputFileWrapper( format, charsetName) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
139
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( extension, roleHint, null, hasParser, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
156
this.hasSink = hasSink;
[BUG]this.hasSink = hasParser;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; <extra_id_0> }[CONTEXT]
332
this.hasSink = hasSink;
[BUG]this.roleHint = roleHint;this.hasSink = hasSink;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; <extra_id_0> }[CONTEXT]
252
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newXmlReader( outputDirectoryOrFile) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
324
this.firstElement = firstElement;
[BUG]this.firstElement = roleHint;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; this.extension = extension; <extra_id_0> this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
195
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { return format; }
[BUG][BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> }[CONTEXT]
120
if ( this == o ) {
[BUG]if ( this <= o) {[BUG][CONTEXT] public boolean equals(Object o) { <extra_id_0> return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
410
super ( message ) ; }
[BUG]} super( message) ;[BUG][CONTEXT] public ConverterException(String message) { <extra_id_0>[CONTEXT]
206
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( inputFile, roleHint, parserFormat, output, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
354
[Delete]
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , format.getExtension( ) ) ) { return format; }[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
366
return format; } }
[BUG]} }return format;[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { <extra_id_0>[CONTEXT]
340
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) ormat.getExtension( ) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
249
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG][BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
71
return this.out; }
[BUG]} return this.out;[BUG][CONTEXT] public OutputStream getOutputStream() { <extra_id_0>[CONTEXT]
314
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( extension, roleHint, null, hasParser, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
255
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ; } } else {
[BUG]} else { }reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0>[CONTEXT]
247
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]sink = sinkFactory.createSink( out, outputEncoding) ;reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
272
outputEncoding = output.getEncoding ( ) ; }
[BUG]} outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0>[CONTEXT]
59
this.format = DefaultConverter.DoxiaFormat.valueOf ( format.toUpperCase ( ) ) ; this.out = out;
[BUG]this.out = out; this.format = DefaultConverter.DoxiaFormat.valueOf( format.toUpperCase( ) ) ;[BUG][CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { <extra_id_0> this.encoding = encoding; }[CONTEXT]
415
super ( message, cause ) ;
[BUG]super( cause, message) ;[BUG][CONTEXT] public ConverterException(String message, Throwable cause) { <extra_id_0> }[CONTEXT]
145
this.roleHint = roleHint;
[BUG]this.hasSink = hasSink;this.roleHint = roleHint;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { <extra_id_0> this.extension = extension; this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
192
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , format.getParser( plexus) ) ) {[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]
224
reader = ReaderFactory.newPlatformReader ( inputFile ) ; } } catch ( IOException e ) {
[BUG]} catch ( IOException e) { }reader = ReaderFactory.newPlatformReader( inputFile) ;[BUG][CONTEXT] if (inputEncoding != null) { if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { reader = ReaderFactory.newReader(inputFile, inputEncoding); } } else { <extra_id_0>[CONTEXT]