id
int64
5
418
fixed
stringlengths
8
123
bug_ctx
stringlengths
67
358
288
if ( plexus == null ) {
[BUG]if ( plexus == this) {[BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> return; } plexus.dispose(); plexus = null; }[CONTEXT]
142
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, firstElement, null, hasParser, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
381
return firstElement != null; }
[BUG]} return firstElement != null;[BUG][CONTEXT] public boolean isXml() { <extra_id_0>[CONTEXT]
289
if ( plexus == null ) {
[BUG]if ( firstTag == null) {[BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> return; } plexus.dispose(); plexus = null; }[CONTEXT]
363
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]
241
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
250
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]try ( Reader r = ReaderFactory.newXmlReader( outputFile) ;reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
204
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]
84
return true;
[BUG]return false;[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]
124
return Objects.hash ( super.hashCode ( ) , getFile ( ) ) ;
[BUG]return Objects.hash( super.Object( ) , getFile( ) ) ;[BUG][CONTEXT] public int hashCode() { <extra_id_0> }[CONTEXT]
181
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]
70
return format; }
[BUG]} return format;[BUG][CONTEXT] public DefaultConverter.DoxiaFormat getFormat() { <extra_id_0>[CONTEXT]
115
return Objects.equals ( getFile ( ) , that.getFile ( ) ) ; }
[BUG]} return Objects.equals( getFile( ) , that.getFile( ) ) ;[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]
403
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]
333
return extension;
[BUG]return roleHint;[BUG][CONTEXT] public String getExtension() { <extra_id_0> }[CONTEXT]
370
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]
233
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newPlatformReader( inputFile) ;reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
270
outputEncoding = output.getEncoding ( ) ;
[BUG]outputEncoding = inputEncoding;outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
235
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]
389
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newXmlReader( outputFile) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
322
this.extension = extension;
[BUG]this.extension = roleHint;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; <extra_id_0> this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
137
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, extension, null, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
357
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]
341
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ).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]
318
this.roleHint = roleHint;
[BUG]this.roleHint = firstElement;[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]
47
return new InputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new InputFileWrapper( format, absolutePath, charsetName) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
72
return encoding; }
[BUG]} return encoding;[BUG][CONTEXT] public String getEncoding() { <extra_id_0>[CONTEXT]
362
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , format.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]
312
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, extension, null, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
245
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newPlatformReader( inputFile) ;reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
106
return false; } AbstractFileWrapper that = ( AbstractFileWrapper ) o;
[BUG]AbstractFileWrapper that = ( AbstractFileWrapper) o; }return false;[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { <extra_id_0> return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
269
outputEncoding = output.getEncoding ( ) ;
[BUG]inputEncoding = autoDetectEncoding( inputFile) ;outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
112
return Objects.equals ( getFile ( ) , that.getFile ( ) ) ;
[BUG]return Objects.equals( getFile( ) , that.setFile( file) ) ;[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]
111
return Objects.equals ( getFile ( ) , that.getFile ( ) ) ;
[BUG]return Objects.equals( getFile( ) , that.setFile( ) ) ;[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]
242
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( inputFile) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
60
this.format = DefaultConverter.DoxiaFormat.valueOf ( format.toUpperCase ( ) ) ;
[BUG]this.format = DefaultConverter.DoxiaFormat.valueOf( format.isEmpty( ) ) ;[BUG][CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { <extra_id_0> this.out = out; this.encoding = encoding; }[CONTEXT]
42
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ; }
[BUG][BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0>[CONTEXT]
180
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]
90
if ( o == null || getClass ( ) != o.getClass ( ) ) {
[BUG]if ( o == null) {[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]
103
if ( !super.equals ( o ) ) { return false; }
[BUG][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]
265
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]try ( Reader r = ReaderFactory.newXmlReader( outputFile) ;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]
300
plexus.dispose ( ) ;
[BUG]stopPlexusContainer( ) ;plexus.dispose( ) ;[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } <extra_id_0> plexus = null; }[CONTEXT]
293
[Delete]
[BUG]if ( ( plexus) != null) { return ; }[BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> return; } plexus.dispose(); plexus = null; }[CONTEXT]
254
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newXmlReader( relativeOutputDirectory) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
359
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ).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]
197
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]
203
[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]
109
AbstractFileWrapper that = ( AbstractFileWrapper ) o; return Objects.equals ( getFile ( ) , that.getFile ( ) ) ; }
[BUG]} return Objects.equals( getFile( ) , that.getFile( ) ) ;AbstractFileWrapper that = ( AbstractFileWrapper) o;[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; } <extra_id_0>[CONTEXT]
163
return hasSink; }
[BUG]} return hasSink;[BUG][CONTEXT] public boolean hasSink() { <extra_id_0>[CONTEXT]
144
this.roleHint = roleHint;
[BUG]this.roleHint = firstElement;[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]
251
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ; }
[BUG]} reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0>[CONTEXT]
39
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
[BUG]return valueOf( format, absolutePath, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
361
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getAbsolutePath( ) , 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]
384
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]
7
return new InputReaderWrapper ( reader, format ) ;
[BUG]return new InputReaderWrapper( format) ;[BUG][CONTEXT] public static InputReaderWrapper valueOf(Reader reader, String format) { <extra_id_0> }[CONTEXT]
51
return format; }
[BUG]} return format;[BUG][CONTEXT] public DefaultConverter.DoxiaFormat getFormat() { <extra_id_0>[CONTEXT]
244
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ; }
[BUG]} reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0>[CONTEXT]
157
this.hasSink = hasSink;
[BUG]this.hasParser = hasParser;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]
107
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; } if (!super.equals(o)) { <extra_id_0> AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
274
outputEncoding = output.getEncoding ( ) ;
[BUG]return reader.getEncoding( ) ;outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
216
parse ( inputFile, inputEncoding, parserFormat, output, null ) ; }
[BUG]} parse( inputFile, inputEncoding, parserFormat, output, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0>[CONTEXT]
237
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG][BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
301
plexus = null;
[BUG]plexus = false;[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } plexus.dispose(); <extra_id_0> }[CONTEXT]
201
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]
387
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( inputEncoding, inputFile, parserFormat, output, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
183
[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]
146
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]
20
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
[BUG]return valueOf( absolutePath, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
83
[Delete]
[BUG]if ( !( super.equals( o) ) ) { return false; }[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]
277
outputEncoding = output.getEncoding ( ) ;
[BUG]outputEncoding = null.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
232
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]
227
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( relativeOutputDirectory, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
82
if ( this == o ) { return true; }
[BUG][BUG][CONTEXT] public boolean equals(Object 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]
117
return Objects.hash ( super.hashCode ( ) , getFile ( ) ) ;
[BUG][BUG][CONTEXT] public int hashCode() { <extra_id_0> }[CONTEXT]
413
super ( message, cause ) ;
[BUG]super( cause) ;[BUG][CONTEXT] public ConverterException(String message, Throwable cause) { <extra_id_0> }[CONTEXT]
95
if ( o == null || getClass ( ) != o.getClass ( ) ) { return false; }
[BUG]return false;[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]
275
outputEncoding = output.getEncoding ( ) ;
[BUG]outputDirectoryOrFile.getAbsolutePath( ) , output.getEncoding( ) ) ;outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
98
return false; }
[BUG]} return false;[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { <extra_id_0> if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
175
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]
92
if ( o == null || getClass ( ) != o.getClass ( ) ) {
[BUG]if ( o == null || getClass( ) != o.hashCode( ) ) {[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]
168
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]
351
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getAbsolutePath( ) , 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]
50
return new InputFileWrapper ( absolutePath, format, charsetName ) ; }
[BUG]} return new InputFileWrapper( absolutePath, format, charsetName) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0>[CONTEXT]
193
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]
29
return new OutputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new OutputFileWrapper( absolutePath, charsetName, format) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
118
return Objects.hash ( super.hashCode ( ) , getFile ( ) ) ; }
[BUG]} return Objects.hash( super.hashCode( ) , getFile( ) ) ;[BUG][CONTEXT] public int hashCode() { <extra_id_0>[CONTEXT]
182
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( convert( 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]
178
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]
147
this.extension = extension;
[BUG]this.extension = roleHint;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; <extra_id_0> this.firstElement = firstElement; this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
334
return hasParser;
[BUG]return hasSink;[BUG][CONTEXT] public boolean hasParser() { <extra_id_0> }[CONTEXT]
295
return; }
[BUG]} return;[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { <extra_id_0> plexus.dispose(); plexus = null; }[CONTEXT]
191
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , format.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]
267
outputEncoding = output.getEncoding ( ) ;
[BUG]outputEncoding = null.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
261
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]
151
this.firstElement = firstElement;
[BUG]this.roleHint = roleHint;this.firstElement = firstElement;[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]
367
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]
14
return new InputReaderWrapper ( reader, format ) ; } }
[BUG]} }return new InputReaderWrapper( reader, format) ;[BUG][CONTEXT] public static InputReaderWrapper valueOf(Reader reader, String format) { <extra_id_0>[CONTEXT]
212
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( inputFile, output, parserFormat, inputEncoding, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
154
this.hasParser = hasParser; this.hasSink = hasSink; }
[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>[CONTEXT]
234
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newXmlReader( inputFile) ;reader = ReaderFactory.newReader( inputFile, inputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]