id
int64 1
366
| bug_ctx
stringlengths 72
994
| fixed
stringlengths 8
123
|
---|---|---|
332 | [CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f | if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { |
326 | [CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f | if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { |
52 | [CONTEXT] private OutputStreamWrapper(OutputStream out, String format, String encoding) { [BUGGY] this.format = DefaultConverter.DoxiaFormat.valueOf(format.toUpperCase()); [BUGGY] this.out = out; this.encoding = encoding; } [CLASS] OutputStreamWrapper [METHOD] <init> [RETURN_TYPE] String) OutputStream out String format String encoding [VARIABLES] String encoding format boolean DoxiaFormat format long serialVersionUID OutputStream out | this.format = DefaultConverter.DoxiaFormat.valueOf ( format.toUpperCase ( ) ) ; this.out = out; |
349 | [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())) { [BUGGY] return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f | return format; |
315 | [CONTEXT] public String getExtension() { [BUGGY] return extension; } [CLASS] DefaultConverter DoxiaFormat [METHOD] getExtension [RETURN_TYPE] String [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER | return extension; |
149 | [CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { [BUGGY] if (hasFileExtensionIgnoreCase(f.getName(), format.getExtension())) { return format; } } [CLASS] DefaultConverter DoxiaFormat [METHOD] autoDetectFormat [RETURN_TYPE] DefaultConverter$DoxiaFormat File f [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement firstTag roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 format PlexusContainer plexus Logger LOGGER File f | if ( hasFileExtensionIgnoreCase ( f.getName ( ) , format.getExtension ( ) ) ) { |
117 | [CONTEXT] DoxiaFormat(String roleHint, String extension, boolean hasParser, boolean hasSink) { [BUGGY] this(roleHint, extension, null, hasParser, hasSink); } [CLASS] DefaultConverter DoxiaFormat [METHOD] <init> [RETURN_TYPE] String,boolean,boolean) String roleHint String extension boolean hasParser boolean hasSink [VARIABLES] boolean formatOutput hasParser hasSink String extension firstElement roleHint DoxiaFormat APT FML MARKDOWN XDOC XHTML5 PlexusContainer plexus Logger LOGGER | this ( roleHint, extension, null, hasParser, hasSink ) ; |