id
int64
5
418
fixed
stringlengths
8
123
bug_ctx
stringlengths
67
358
287
if ( plexus == null ) {
[BUG]if ( plexus != null) {[BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> return; } plexus.dispose(); plexus = null; }[CONTEXT]
220
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newXmlReader( 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]
280
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]
328
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]
27
return new OutputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new OutputFileWrapper( absolutePath, format, absolutePath) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
148
this.extension = extension; this.firstElement = firstElement;
[BUG]this.firstElement = firstElement; this.extension = extension;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, String firstElement, boolean hasParser, boolean hasSink) { this.roleHint = roleHint; <extra_id_0> this.hasParser = hasParser; this.hasSink = hasSink; }[CONTEXT]
211
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( parserFormat, inputEncoding, inputFile, output, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
31
return new OutputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new OutputFileWrapper( format, absolutePath, charsetName) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
30
return new OutputFileWrapper ( absolutePath, format, charsetName ) ; } }
[BUG]} }return new OutputFileWrapper( absolutePath, format, charsetName) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { <extra_id_0>[CONTEXT]
169
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]
311
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, null, hasParser, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
24
return new OutputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new OutputFileWrapper( format, charsetName) ;[BUG][CONTEXT] public static OutputFileWrapper valueOf( String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException { <extra_id_0> }[CONTEXT]
79
this.encoding = encoding;
[BUG]this.encoding = absolutePath;[BUG][CONTEXT] void setEncoding(String encoding) { <extra_id_0> }[CONTEXT]
290
if ( plexus == null ) {
[BUG]if ( xmlFile == null) {[BUG][CONTEXT] private void stopPlexusContainer() { <extra_id_0> return; } plexus.dispose(); plexus = null; }[CONTEXT]
230
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]
236
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( inputFile, outputEncoding) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
110
return Objects.equals ( getFile ( ) , that.getFile ( ) ) ;
[BUG]return Objects.hash( 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]
278
outputEncoding = output.getEncoding ( ) ;
[BUG]outputFile = output.getFile( ) ;outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
9
return new InputReaderWrapper ( reader, format ) ;
[BUG]return new InputReaderWrapper( format, reader) ;[BUG][CONTEXT] public static InputReaderWrapper valueOf(Reader reader, String format) { <extra_id_0> }[CONTEXT]
331
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]
100
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]
177
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]
273
outputEncoding = output.getEncoding ( ) ;
[BUG][BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
309
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]
223
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]
327
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]
58
this.format = DefaultConverter.DoxiaFormat.valueOf ( format.toUpperCase ( ) ) ;
[BUG]this.format = DefaultConverter.DoxiaFormat.valueOf( encoding.toUpperCase( ) ) ;[BUG][CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { <extra_id_0> this.out = out; this.encoding = encoding; }[CONTEXT]
266
reader = ReaderFactory.newPlatformReader ( inputFile ) ; }
[BUG]} 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]
113
return Objects.equals ( getFile ( ) , that.getFile ( ) ) ;
[BUG]return Objects.equals( getFile( ) , that.setFile( filetoset) ) ;[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]
53
return format;
[BUG]return 0;[BUG][CONTEXT] public DefaultConverter.DoxiaFormat getFormat() { <extra_id_0> }[CONTEXT]
67
return encoding;
[BUG]return format;[BUG][CONTEXT] public String getEncoding() { <extra_id_0> }[CONTEXT]
179
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]
264
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]
187
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]
239
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]
94
if ( o == null || getClass ( ) != o.getClass ( ) ) {
[BUG]if ( o == false) {[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]
184
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]
246
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]
40
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ; }
[BUG]} return valueOf( absolutePath, format, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0>[CONTEXT]
257
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newXmlReader( inputFile) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
153
this.hasParser = hasParser;
[BUG]this.hasParser = null;[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]
62
this.format = DefaultConverter.DoxiaFormat.valueOf ( format.toUpperCase ( ) ) ; this.out = out; this.encoding = encoding; }
[BUG][BUG][CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { <extra_id_0>[CONTEXT]
285
outputEncoding = output.getEncoding ( ) ;
[BUG]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]
283
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]
85
return true; } if ( o == null || getClass ( ) != o.getClass ( ) ) {
[BUG]if ( o == null || getClass( ) != o.getClass( ) ) { }return true;[BUG][CONTEXT] public boolean equals(Object o) { if (this == o) { <extra_id_0> return false; } if (!super.equals(o)) { return false; } AbstractFileWrapper that = (AbstractFileWrapper) o; return Objects.equals(getFile(), that.getFile()); }[CONTEXT]
271
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]
248
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( inputFile, roleHint) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
208
parse ( inputFile, inputEncoding, parserFormat, output, null ) ;
[BUG]parse( inputFile, parserFormat, output, null) ;[BUG][CONTEXT] private void parse(File inputFile, String inputEncoding, DoxiaFormat parserFormat, OutputFileWrapper output) throws ConverterException, UnsupportedFormatException { <extra_id_0> }[CONTEXT]
268
outputEncoding = output.getEncoding ( ) ;
[BUG]outputFile = output.getFile( ) ;outputEncoding = output.getEncoding( ) ;[BUG][CONTEXT] if (StringUtils.isEmpty(output.getEncoding()) || output.getEncoding().equals(OutputFileWrapper.AUTO_ENCODING)) { outputEncoding = inputEncoding; } else { <extra_id_0> }[CONTEXT]
5
return this.reader;
[BUG]return reader;[BUG][CONTEXT] public Reader getReader() { <extra_id_0> }[CONTEXT]
348
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]
346
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]
397
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, hasParser, null, extension, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
93
if ( o == null || getClass ( ) != o.getClass ( ) ) {
[BUG]if ( o == null || getClass( ) != o.equals( ) ) {[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]
352
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.getAbsolutePath( ) , 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]
378
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]
335
return hasSink;
[BUG]return hasParser;[BUG][CONTEXT] public boolean hasSink() { <extra_id_0> }[CONTEXT]
76
this.file = file;
[BUG]this.file = filetoset;[BUG][CONTEXT] void setFile(File file) { <extra_id_0> }[CONTEXT]
10
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]
152
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]
263
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newXmlReader( relativeOutputDirectory) ;[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]
219
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newPlatformReader( relativeOutputDirectory) ;[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]
221
reader = ReaderFactory.newPlatformReader ( inputFile ) ; }
[BUG]} 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]
45
return new InputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new InputFileWrapper( absolutePath, format) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
379
return extension; }
[BUG]} return extension;[BUG][CONTEXT] public String getExtension() { <extra_id_0>[CONTEXT]
380
return firstElement != null;
[BUG]return false ;[BUG][CONTEXT] public boolean isXml() { <extra_id_0> }[CONTEXT]
96
if ( o == null || getClass ( ) != o.getClass ( ) ) { return false; }
[BUG][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]
74
return file;
[BUG]return filetoset;[BUG][CONTEXT] public File getFile() { <extra_id_0> }[CONTEXT]
37
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
[BUG]return valueOf( format, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
63
this.out = out;
[BUG]this.out = null;[BUG][CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { this.format = DefaultConverter.DoxiaFormat.valueOf(format.toUpperCase()); <extra_id_0> this.encoding = encoding; }[CONTEXT]
276
outputEncoding = output.getEncoding ( ) ;
[BUG]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]
284
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]
88
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]
325
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]
353
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]
228
reader = ReaderFactory.newReader ( inputFile, inputEncoding ) ;
[BUG]reader = ReaderFactory.newReader( inputFile, roleHint) ;[BUG][CONTEXT] if (parser.getType() == Parser.XML_TYPE) { reader = ReaderFactory.newXmlReader(inputFile); } else { <extra_id_0> }[CONTEXT]
243
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]
158
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]
299
plexus.dispose ( ) ;
[BUG]startPlexusContainer( ) ;plexus.dispose( ) ;[BUG][CONTEXT] private void stopPlexusContainer() { if (plexus == null) { return; } <extra_id_0> plexus = null; }[CONTEXT]
150
this.firstElement = firstElement; this.hasParser = hasParser;
[BUG]this.hasParser = hasParser; 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.hasSink = hasSink; }[CONTEXT]
412
super ( message ) ;
[BUG]super( message, cause) ;super( message) ;[BUG][CONTEXT] public ConverterException(String message) { <extra_id_0> }[CONTEXT]
364
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]
91
if ( o == null || getClass ( ) != o.getClass ( ) ) {
[BUG]if ( 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]
258
reader = ReaderFactory.newPlatformReader ( inputFile ) ;
[BUG]reader = ReaderFactory.newPlatformReader( relativeOutputDirectory) ;[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]
226
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]
279
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]
316
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( hasParser, extension, null, roleHint, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
320
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]
132
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, roleHint, null, hasParser, hasSink) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
46
return new InputFileWrapper ( absolutePath, format, charsetName ) ;
[BUG]return new InputFileWrapper( charsetName, format, charsetName) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format, String charsetName) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
161
return hasParser; }
[BUG]} return hasParser;[BUG][CONTEXT] public boolean hasParser() { <extra_id_0>[CONTEXT]
229
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]
185
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]
400
this.firstElement = firstElement; this.hasParser = hasParser;
[BUG]this.hasParser = hasParser; 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.hasSink = hasSink; }[CONTEXT]
141
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, extension, null, hasSink, hasParser) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
41
return valueOf ( absolutePath, format, WriterFactory.UTF_8 ) ;
[BUG]return valueOf( absolutePath, 0, WriterFactory.UTF_8) ;[BUG][CONTEXT] public static InputFileWrapper valueOf(String absolutePath, DefaultConverter.DoxiaFormat format) throws UnsupportedEncodingException, FileNotFoundException { <extra_id_0> }[CONTEXT]
190
if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) {
[BUG]if ( hasFileExtensionIgnoreCase( f.File( ) , 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]
385
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]
313
this ( roleHint, extension, null, hasParser, hasSink ) ;
[BUG]this( roleHint, extension, null, hasParser) ;[BUG][CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { <extra_id_0> }[CONTEXT]
162
return hasSink;
[BUG]return hasParser;[BUG][CONTEXT] public boolean hasSink() { <extra_id_0> }[CONTEXT]