nus-yam/ex-repair huggingface dataset:
Buggy code:
public class RuleBlackBetweenRegions extends PuzzleRule { private static final long serialVersionUID = 830456717L ; RuleBlackBetweenRegions ( ) { } public String getImageName ( ) { } protected String checkRuleRaw ( BoardState destBoardState ) { Set < Contradiction > contras = new LinkedHashSet < Contradiction > ( ) ; contras . add ( new ContradictionMultipleNumbers ( ) ) ; contras . add ( new ContradictionTooManySpaces ( ) ) ; BoardState origBoardState = destBoardState . getSingleParentState ( ) ; int width = origBoardState . getWidth ( ) ; int height = origBoardState . getHeight ( ) ; if ( ( destBoardState . getParents ( ) . size ( ) ) != 1 ) { return "This<seq2seq4repair_space>rule<seq2seq4repair_space>only<seq2seq4repair_space>involves<seq2seq4repair_space>having<seq2seq4repair_space>a<seq2seq4repair_space>single<seq2seq4repair_space>branch!" ; } for ( int y = 0 ; y < height ; y ++ ) { for ( int x = 0 ; x < width ; x ++ ) { if ( ( destBoardState . getCellContents ( x , y ) ) != ( origBoardState . getCellContents ( x , y ) ) ) { if ( ( destBoardState . getCellContents ( x , y ) ) != ( Nurikabe . CELL_BLACK ) ) { return "Only<seq2seq4repair_space>black<seq2seq4repair_space>cells<seq2seq4repair_space>are<seq2seq4repair_space>allowed<seq2seq4repair_space>for<seq2seq4repair_space>this<seq2seq4repair_space>rule!" ; } BoardState modified = origBoardState . copy ( ) ; modified . getBoardCells ( ) [ y ] [ x ] = Nurikabe . CELL_WHITE ; int contrasSatisfied = 0 ; for ( Contradiction c : contras ) { <START_BUG> if ( ( c . checkContradictionRaw ( modified ) ) != null ) <END_BUG> contrasSatisfied ++ ; } if ( contrasSatisfied == 0 ) return "The<seq2seq4repair_space>black<seq2seq4repair_space>cell<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>seperate<seq2seq4repair_space>two<seq2seq4repair_space>white<seq2seq4repair_space>regions!" ; } } } return null ; } }

Fix:
if ( ( c . checkContradictionRaw ( modified ) ) == null )
Buggy code:
public class ThisReference extends Reference { public static final ThisReference ThisImplicit = new ThisReference ( ) ; public ThisReference ( ) { } public ThisReference ( int s , int sourceEnd ) { } protected boolean checkAccess ( MethodScope methodScope ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { int pc = codeStream . position ; if ( valueRequired ) codeStream . aload_0 ( ) ; <START_BUG> codeStream . recordPositionsFrom ( pc , this ) ; <END_BUG> } public boolean isThis ( ) { } public TypeBinding resolveType ( BlockScope scope ) { } public String toStringExpression ( ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope blockScope ) { } }

Fix:
codeStream . recordPositionsFrom ( pc , this . sourceStart ) ;
Buggy code:
public class SolrVelocityResourceLoader extends ResourceLoader { private SolrResourceLoader loader ; public SolrVelocityResourceLoader ( SolrResourceLoader loader ) { } @ Override public void init ( ExtendedProperties extendedProperties ) { } @ Override public InputStream getResourceStream ( String template_name ) throws ResourceNotFoundException { <START_BUG> return loader . openResource ( template_name ) ; <END_BUG> } @ Override public boolean isSourceModified ( Resource resource ) { } @ Override public long getLastModified ( Resource resource ) { } }

Fix:
return loader . openResource ( ( "velocity//" + template_name ) ) ;
Buggy code:
public class ByteArrayResource extends AbstractResource { private static final long serialVersionUID = 1L ; private final String contentType ; private final byte [ ] array ; private final Time lastModified = Time . now ( ) ; private final String filename ; public ByteArrayResource ( final String contentType , final byte [ ] array ) { } public ByteArrayResource ( final String contentType , final byte [ ] array , final String filename ) { } public ByteArrayResource ( final String contentType , final byte [ ] array , final Locale locale ) { } protected void configureResponse ( final ResourceResponse response , final Attributes attributes ) { } @ Override protected ResourceResponse newResourceResponse ( final Attributes attributes ) { final ResourceResponse response = new ResourceResponse ( ) ; response . setContentType ( contentType ) ; <START_BUG> response . setLastModified ( lastModified . toDate ( ) ) ; <END_BUG> if ( response . dataNeedsToBeWritten ( attributes ) ) { if ( ( filename ) != null ) { response . setFileName ( filename ) ; response . setContentDisposition ( ATTACHMENT ) ; } else { response . setContentDisposition ( INLINE ) ; } response . setWriteCallback ( new WriteCallback ( ) { @ Override public void writeData ( final Attributes attributes ) { attributes . getResponse ( ) . write ( array ) ; } } ) ; configureResponse ( response , attributes ) ; } return response ; } }

Fix:
response . setLastModified ( lastModified ) ;
Buggy code:
public class PurchaseController { public static int placeOrder ( Customer customer , ShoppingCart cart ) { } public static ArrayList < Purchase > getUserPurchases ( int customerID ) { ArrayList < Purchase > customerOrders = new ArrayList < > ( ) ; DriverController . setDriver ( ) ; <START_BUG> try ( Connection conn = DriverManager . getConnection ( db_url , db_username , db_password ) ; PreparedStatement stmt = conn . prepareStatement ( "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Purchase<seq2seq4repair_space>WHERE<seq2seq4repair_space>customerID<seq2seq4repair_space>=<seq2seq4repair_space>?" ) ) { <END_BUG> stmt . setInt ( 1 , customerID ) ; ResultSet rs = stmt . executeQuery ( ) ; System . out . println ( ) ; System . out . println ( ( ( "*********<seq2seq4repair_space>Customer<seq2seq4repair_space>Purchases<seq2seq4repair_space>" + customerID ) + "<seq2seq4repair_space>**********" ) ) ; while ( rs . next ( ) ) { Purchase pur = new Purchase ( ) ; pur . setOrderNo ( rs . getInt ( "orderNo" ) ) ; pur . setCustomerID ( rs . getInt ( "customerID" ) ) ; pur . setPurchaseTime ( rs . getDate ( "purchaseTime" ) ) ; customerOrders . add ( pur ) ; System . out . println ( ( "Found<seq2seq4repair_space>a<seq2seq4repair_space>purchase<seq2seq4repair_space>for<seq2seq4repair_space>customer" + ( rs . getInt ( "customerID" ) ) ) ) ; } if ( rs != null ) rs . close ( ) ; } catch ( SQLException e ) { System . out . println ( e . getMessage ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return customerOrders ; } public static ArrayList < PurchaseItem > getUserPurchaseItems ( int orderNo ) { } }

Fix:
try ( Connection conn = DriverManager . getConnection ( db_url , db_username , db_password ) ; PreparedStatement stmt = conn . prepareStatement ( "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Purchase<seq2seq4repair_space>WHERE<seq2seq4repair_space>customerID<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>ORDER<seq2seq4repair_space>BY<seq2seq4repair_space>purchaseTime<seq2seq4repair_space>DESC" ) ) {
Buggy code:
public class RankReader { private static final String [ ] FILE_HEADER_MAPPING = new String [ ] { "sku" , "rank" } ; public static Map < String , Integer > ReadRank ( String filename ) { FileReader fileReader = null ; CSVParser csvFileParser = null ; CSVFormat csvFileFormat = DEFAULT . withHeader ( RankReader . FILE_HEADER_MAPPING ) ; Map rankMap = new HashMap < String , Integer > ( ) ; try { fileReader = new FileReader ( filename ) ; csvFileParser = new CSVParser ( fileReader , csvFileFormat ) ; List csvRecords = csvFileParser . getRecords ( ) ; <START_BUG> for ( int i = 1 ; i < ( csvRecords . size ( ) ) ; i ++ ) { <END_BUG> CSVRecord record = ( ( CSVRecord ) ( csvRecords . get ( i ) ) ) ; rankMap . put ( record . get ( "sku" ) , Integer . parseInt ( record . get ( "rank" ) ) ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { try { fileReader . close ( ) ; csvFileParser . close ( ) ; } catch ( IOException e ) { System . out . println ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>closing<seq2seq4repair_space>fileReader//csvFileParser<seq2seq4repair_space>!!!" ) ; e . printStackTrace ( ) ; } } return rankMap ; } public static void main ( String [ ] argv ) { } }

Fix:
for ( int i = 0 ; i < ( csvRecords . size ( ) ) ; i ++ ) {
Buggy code:
public class AndFileFilter extends AbstractFileFilter implements Serializable , ConditionalFileFilter { private List < IOFileFilter > fileFilters ; public AndFileFilter ( ) { } public AndFileFilter ( final List < IOFileFilter > fileFilters ) { } public AndFileFilter ( IOFileFilter filter1 , IOFileFilter filter2 ) { } public void addFileFilter ( final IOFileFilter ioFileFilter ) { } public List < IOFileFilter > getFileFilters ( ) { } public boolean removeFileFilter ( final IOFileFilter ioFileFilter ) { } public void setFileFilters ( final List < IOFileFilter > fileFilters ) { } public boolean accept ( final File file ) { } public boolean accept ( final File file , final String name ) { } public String toString ( ) { <START_BUG> StringBuffer buffer = new StringBuffer ( ) ; <END_BUG> buffer . append ( super . toString ( ) ) ; buffer . append ( "(" ) ; if ( ( fileFilters ) != null ) { for ( int i = 0 ; i < ( fileFilters . size ( ) ) ; i ++ ) { if ( i > 0 ) { buffer . append ( "," ) ; } Object filter = fileFilters . get ( i ) ; buffer . append ( ( filter == null ? "null" : filter . toString ( ) ) ) ; } } buffer . append ( ")" ) ; return buffer . toString ( ) ; } }

Fix:
StringBuilder buffer = new StringBuilder ( ) ;
Buggy code:
public class RemoteVersionList extends VersionList { private final Proxy proxy ; public RemoteVersionList ( Proxy proxy ) { } @ Override public boolean hasAllFiles ( CompleteVersion version , OperatingSystem os ) { } @ Override protected String getUrl ( String uri ) throws IOException { <START_BUG> return Http . performGet ( new URL ( ( "http:////aether.craftnode.me//launcher//" + uri ) ) , this . proxy ) ; <END_BUG> } public Proxy getProxy ( ) { } }

Fix:
return Http . performGet ( new URL ( ( "http:////collin1971.net//p//mirrors//aetherii//files//launcher//" + uri ) ) , this . proxy ) ;
Buggy code:
public class SessionDAO extends DAOBase { private static Logger logger = Logger . getLogger ( SessionDAO . class ) ; public SessionDAO ( ) { } public SessionVO SaveSession ( SessionVO sessionVO ) { } public void deleteSession ( int sessionId ) { synchronized ( SessionDAO . class ) { Session session = openSession ( ) ; try { Transaction trans = session . beginTransaction ( ) ; <START_BUG> SessionVO sessionVO = ( ( SessionVO ) ( session . get ( SessionVO . class , sessionId ) ) ) ; <END_BUG> if ( sessionVO == null ) { SessionDAO . logger . warn ( ( "deleteSession,<seq2seq4repair_space>cannot<seq2seq4repair_space>find<seq2seq4repair_space>session<seq2seq4repair_space>" + sessionId ) ) ; return ; } session . delete ( sessionVO ) ; session . flush ( ) ; trans . commit ( ) ; } finally { session . close ( ) ; } } } }

Fix:
SessionVO sessionVO = ( ( SessionVO ) ( session . get ( SessionVO . class , new Integer ( sessionId ) ) ) ) ;
Buggy code:
public class JavaConfigGui extends AbstractConfigGui implements ActionListener { private static transient Logger log = Hierarchy . getDefaultHierarchy ( ) . getLoggerFor ( "jmeter.protocol.java" ) ; private static final String CLASSNAMECOMBO = "classnamecombo" ; private JComboBox classnameCombo ; private boolean displayName = true ; private ArgumentsPanel argsPanel ; public JavaConfigGui ( ) { } public JavaConfigGui ( boolean displayNameField ) { } public String getStaticLabel ( ) { <START_BUG> return JMeterUtils . getResString ( "Java<seq2seq4repair_space>Request<seq2seq4repair_space>Defaults" ) ; <END_BUG> } protected void init ( ) { } private JPanel createClassnamePanel ( ) { } public void actionPerformed ( ActionEvent evt ) { } private JPanel createParameterPanel ( ) { } public void configure ( TestElement config ) { } public TestElement createTestElement ( ) { } public void modifyTestElement ( TestElement config ) { } }

Fix:
return JMeterUtils . getResString ( "java_request_defaults" ) ;
Buggy code:
public class ProcAddressEmitter extends JavaEmitter { public static final String PROCADDRESS_VAR_PREFIX = "_addressof_" ; protected static final String WRAP_PREFIX = "dispatch_" ; private TypeDictionary typedefDictionary ; protected PrintWriter tableWriter ; protected Set < String > emittedTableEntries ; protected String tableClassPackage ; protected String tableClassName ; @ Override public void beginFunctions ( final TypeDictionary typedefDictionary , final TypeDictionary structDictionary , final Map < Type , Type > canonMap ) throws Exception { } @ Override public void endFunctions ( ) throws Exception { } @ Override public void beginStructs ( final TypeDictionary typedefDictionary , final TypeDictionary structDictionary , final Map < Type , Type > canonMap ) throws Exception { } public String runtimeExceptionType ( ) { } public String unsupportedExceptionType ( ) { } @ Override protected JavaConfiguration createConfig ( ) { } @ Override protected List < ? extends FunctionEmitter > generateMethodBindingEmitters ( final Set < MethodBinding > methodBindingSet , final FunctionSymbol sym ) throws Exception { } protected boolean needsModifiedEmitters ( final FunctionSymbol sym ) { } private List < ? extends FunctionEmitter > generateMethodBindingEmittersImpl ( final Set < MethodBinding > methodBindingSet , final FunctionSymbol sym ) throws Exception { } protected String getFunctionPointerTypedefName ( final FunctionSymbol sym ) { <START_BUG> return getProcAddressConfig ( ) . convertToFunctionPointerName ( sym . getName ( ) ) ; <END_BUG> } protected void fixSecurityModifiers ( final JavaMethodBindingEmitter javaEmitter ) { } protected void generateModifiedEmitters ( final JavaMethodBindingEmitter baseJavaEmitter , final List < FunctionEmitter > emitters ) { } protected void generateModifiedEmitters ( final CMethodBindingEmitter baseCEmitter , final List < FunctionEmitter > emitters ) { } private String getAliasedSymName ( final FunctionSymbol sym ) { } protected boolean callThroughProcAddress ( final FunctionSymbol sym ) { } protected boolean hasFunctionPointerTypedef ( final FunctionSymbol sym ) { } protected void beginProcAddressTable ( ) throws Exception { } protected void endProcAddressTable ( ) throws Exception { } protected void emitProcAddressTableEntryForString ( final String str ) { } protected ProcAddressConfiguration getProcAddressConfig ( ) { } }

Fix:
return getProcAddressConfig ( ) . convertToFunctionPointerName ( sym . getOrigName ( ) ) ;
Buggy code:
public class DOMElementWriter { private static final int HEX = 16 ; private static final String [ ] WS_ENTITIES = new String [ ( '\r' - '\t' ) + 1 ] ; private static final String NS = "ns" ; private boolean xmlDeclaration = true ; private DOMElementWriter . XmlNamespacePolicy namespacePolicy = DOMElementWriter . XmlNamespacePolicy . IGNORE ; private HashMap nsPrefixMap = new HashMap ( ) ; private int nextPrefix = 0 ; private HashMap nsURIByElement = new HashMap ( ) ; public static class XmlNamespacePolicy { private boolean qualifyElements ; private boolean qualifyAttributes ; public static final DOMElementWriter . XmlNamespacePolicy IGNORE = new DOMElementWriter . XmlNamespacePolicy ( false , false ) ; public static final DOMElementWriter . XmlNamespacePolicy ONLY_QUALIFY_ELEMENTS = new DOMElementWriter . XmlNamespacePolicy ( true , false ) ; public static final DOMElementWriter . XmlNamespacePolicy QUALIFY_ALL = new DOMElementWriter . XmlNamespacePolicy ( true , true ) ; public XmlNamespacePolicy ( boolean qualifyElements , boolean qualifyAttributes ) { } } public DOMElementWriter ( ) { } public DOMElementWriter ( boolean xmlDeclaration ) { } public DOMElementWriter ( boolean xmlDeclaration , DOMElementWriter . XmlNamespacePolicy namespacePolicy ) { } private static String lSep = System . getProperty ( "line.separator" ) ; protected String [ ] knownEntities = new String [ ] { "gt" , "amp" , "lt" , "apos" , "quot" } ; public void write ( Element root , OutputStream out ) throws IOException { } public void writeXMLDeclaration ( Writer wri ) throws IOException { } public void write ( Element element , Writer out , int indent , String indentWith ) throws IOException { } public void openElement ( Element element , Writer out , int indent , String indentWith ) throws IOException { } public void openElement ( Element element , Writer out , int indent , String indentWith , boolean hasChildren ) throws IOException { } public void closeElement ( Element element , Writer out , int indent , String indentWith , boolean hasChildren ) throws IOException { } public String encode ( String value ) { } public String encodeAttributeValue ( String value ) { } private String encode ( final String value , final boolean encodeWhitespace ) { } public String encodedata ( final String value ) { final int len = value . length ( ) ; StringBuffer sb = new StringBuffer ( len ) ; for ( int i = 0 ; i < len ; ++ i ) { final char c = value . charAt ( i ) ; if ( isLegalCharacter ( c ) ) { sb . append ( c ) ; } } <START_BUG> return StringUtils . replace ( sb . substring ( 0 ) , "]]>" , "]]]]><![CDATA[>" ) ; <END_BUG> } public boolean isReference ( String ent ) { } public boolean isLegalCharacter ( final char c ) { } private void removeNSDefinitions ( Element element ) { } private void addNSDefinition ( Element element , String uri ) { } private static String getNamespaceURI ( Node n ) { } }

Fix:
return sb . substring ( 0 ) . replace ( "]]>" , "]]]]><![CDATA[>" ) ;
Buggy code:
public abstract class UnivariateRealIntegratorImpl extends ConvergingAlgorithmImpl implements UnivariateRealIntegrator { private static final long serialVersionUID = 6248808456637441533L ; protected int minimalIterationCount ; protected int defaultMinimalIterationCount ; protected boolean resultComputed = false ; protected double result ; @ Deprecated protected UnivariateRealFunction f ; @ Deprecated protected UnivariateRealIntegratorImpl ( final UnivariateRealFunction f , final int defaultMaximalIterationCount ) throws IllegalArgumentException { } protected UnivariateRealIntegratorImpl ( final int defaultMaximalIterationCount ) throws IllegalArgumentException { } public double getResult ( ) throws IllegalStateException { } protected final void setResult ( double newResult , int iterationCount ) { } protected final void clearResult ( ) { } public void setMinimalIterationCount ( int count ) { } public int getMinimalIterationCount ( ) { } public void resetMinimalIterationCount ( ) { } protected void verifyInterval ( double lower , double upper ) throws IllegalArgumentException { if ( lower >= upper ) { <START_BUG> throw MathRuntimeException . createIllegalArgumentException ( "endpoints<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>specify<seq2seq4repair_space>an<seq2seq4repair_space>interval:<seq2seq4repair_space>[{0},<seq2seq4repair_space>{1}]" , lower , upper ) ; <END_BUG> } } protected void verifyIterationCount ( ) throws IllegalArgumentException { } }

Fix:
throw MathRuntimeException . createIllegalArgumentException ( ENDPOINTS_NOT_AN_INTERVAL , lower , upper ) ;
Buggy code:
public class PackageVersionComparator implements IPackageVersionComparator { public void comparePackageVersions ( String packageName , Version remoteVersion , Version localVersion ) throws RuntimeException { <START_BUG> LogUtility . trace ( "comparePackageVersions" , PACKAGEVERSIONCOMPARATOR , this . getClass ( ) , ( ( ( ( ( "packageName=" + packageName ) + ",remoteVersion=" ) + remoteVersion ) + ",localVersion=" ) + localVersion ) ) ; <END_BUG> int compareResult = localVersion . compareTo ( remoteVersion ) ; if ( compareResult != 0 ) throw new RuntimeException ( ( ( ( ( ( ( ( "Package<seq2seq4repair_space>version<seq2seq4repair_space>compare<seq2seq4repair_space>failed<seq2seq4repair_space>with<seq2seq4repair_space>compareResult=" + compareResult ) + "<seq2seq4repair_space>for<seq2seq4repair_space>package=" ) + packageName ) + "<seq2seq4repair_space>localVersion=" ) + localVersion ) + "<seq2seq4repair_space>remoteVersion=" ) + remoteVersion ) ) ; } }

Fix:
LogUtility . trace ( "comparePackageVersions" , PACKAGE_VERSION_COMPARATOR , this . getClass ( ) , ( ( ( ( ( "packageName=" + packageName ) + ",remoteVersion=" ) + remoteVersion ) + ",localVersion=" ) + localVersion ) ) ;
Buggy code:
public class Assertion { boolean result ; boolean result ; boolean String ; public static boolean equals ( java . lang . String s1 , java . lang . String s2 ) { } public static java . lang . String getSourceLocation ( ) { RuntimeException ex = new RuntimeException ( "assertion<seq2seq4repair_space>failed" ) ; StringWriter writer = new StringWriter ( ) ; PrintWriter printer = new PrintWriter ( writer ) ; ex . printStackTrace ( printer ) ; java . lang . String buf = writer . toString ( ) ; <START_BUG> int index = buf . lastIndexOf ( "dom.DOMMemTest.Assertion." ) ; <END_BUG> index = buf . indexOf ( '\n' , index ) ; return buf . substring ( ( index + 1 ) ) ; } }

Fix:
int index = buf . lastIndexOf ( "dom.util.Assertion." ) ;
Buggy code:
public abstract class JdbcUtils { public static final int TYPE_UNKNOWN = Integer . MIN_VALUE ; private static final Log logger = LogFactory . getLog ( JdbcUtils . class ) ; public static void closeConnection ( Connection con ) { } public static void closeStatement ( Statement stmt ) { } public static void closeResultSet ( ResultSet rs ) { } public static Object getResultSetValue ( ResultSet rs , int index , Class requiredType ) throws SQLException { } public static Object getResultSetValue ( ResultSet rs , int index ) throws SQLException { } public static Object extractDatabaseMetaData ( DataSource dataSource , DatabaseMetaDataCallback action ) throws MetaDataAccessException { } public static Object extractDatabaseMetaData ( DataSource dataSource , final String metaDataMethodName ) throws MetaDataAccessException { } public static boolean supportsBatchUpdates ( Connection con ) { } public static String commonDatabaseName ( String source ) { } public static boolean isNumeric ( int sqlType ) { } public static String lookupColumnName ( ResultSetMetaData resultSetMetaData , int columnIndex ) throws SQLException { } public static String convertUnderscoreNameToPropertyName ( String name ) { <START_BUG> StringBuffer result = new StringBuffer ( ) ; <END_BUG> boolean nextIsUpper = false ; if ( ( name != null ) && ( ( name . length ( ) ) > 0 ) ) { if ( ( ( name . length ( ) ) > 1 ) && ( name . substring ( 1 , 2 ) . equals ( "_" ) ) ) { result . append ( name . substring ( 0 , 1 ) . toUpperCase ( ) ) ; } else { result . append ( name . substring ( 0 , 1 ) . toLowerCase ( ) ) ; } for ( int i = 1 ; i < ( name . length ( ) ) ; i ++ ) { String s = name . substring ( i , ( i + 1 ) ) ; if ( s . equals ( "_" ) ) { nextIsUpper = true ; } else { if ( nextIsUpper ) { result . append ( s . toUpperCase ( ) ) ; nextIsUpper = false ; } else { result . append ( s . toLowerCase ( ) ) ; } } } } return result . toString ( ) ; } }

Fix:
StringBuilder result = new StringBuilder ( ) ;
Buggy code:
public class UserControls { public UserControls ( Scanner aScanner ) { } public boolean setView ( String viewType ) { } private boolean run ( String menu ) { } private boolean accountMGMT ( int menu ) { } private boolean isValidUserName ( String name ) { } private boolean writeHotelSystemOut ( ) { } private boolean readHotelSystemIn ( ) { File f = new File ( "hotel.save" ) ; if ( f . exists ( ) ) { try { FileInputStream fin = new FileInputStream ( f ) ; ObjectInputStream ois = new ObjectInputStream ( fin ) ; hs = ( ( HotelSystem ) ( ois . readObject ( ) ) ) ; } catch ( Exception ex ) { <START_BUG> System . out . println ( "There<seq2seq4repair_space>was<seq2seq4repair_space>an<seq2seq4repair_space>exceptio<seq2seq4repair_space>occurr<seq2seq4repair_space>while<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>in<seq2seq4repair_space>hotelSystem\n" ) ; <END_BUG> return false ; } } return true ; } String name ; int ID ; private Scanner console ; private HotelSystem hs ; private UserView view ; private String SystemGreeting = "Welcome<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>Hotel<seq2seq4repair_space>Management<seq2seq4repair_space>System\n" + ( ( "Enter<seq2seq4repair_space>1<seq2seq4repair_space>to<seq2seq4repair_space>Create<seq2seq4repair_space>Account.\n" + "Enter<seq2seq4repair_space>2<seq2seq4repair_space>to<seq2seq4repair_space>Login.\n" ) + "Enter<seq2seq4repair_space>0<seq2seq4repair_space>to<seq2seq4repair_space>Quit\n" ) ; private String creds = "Enter<seq2seq4repair_space>1<seq2seq4repair_space>to<seq2seq4repair_space>enter<seq2seq4repair_space>Username.\n" + ( ( "Enter<seq2seq4repair_space>2<seq2seq4repair_space>to<seq2seq4repair_space>enter<seq2seq4repair_space>Account<seq2seq4repair_space>Type\n" + "Enter<seq2seq4repair_space>3<seq2seq4repair_space>to<seq2seq4repair_space>confirm.\n" ) + "Enter<seq2seq4repair_space>0<seq2seq4repair_space>to<seq2seq4repair_space>cancel.\n" ) ; private String ACCOUNT_TYPE = "Enter<seq2seq4repair_space>1<seq2seq4repair_space>for<seq2seq4repair_space>Manager\n" + ( ( "Enter<seq2seq4repair_space>2<seq2seq4repair_space>for<seq2seq4repair_space>Employee\n" + "Enter<seq2seq4repair_space>3<seq2seq4repair_space>for<seq2seq4repair_space>Customer\n" ) + "Enter<seq2seq4repair_space>0<seq2seq4repair_space>to<seq2seq4repair_space>Cancel\n" ) ; }

Fix:
System . out . println ( "There<seq2seq4repair_space>was<seq2seq4repair_space>an<seq2seq4repair_space>exception<seq2seq4repair_space>occurr<seq2seq4repair_space>while<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>in<seq2seq4repair_space>hotelSystem\n" ) ;
Buggy code:
class CSVLexer1306663 extends Lexer { public CSVLexer1306663 ( final CSVFormat format , final ExtendedBufferedReader in ) { } @ Override Token nextToken ( final Token tkn ) throws IOException { int lastChar = in . readAgain ( ) ; int c = in . read ( ) ; if ( ( isStartOfLine ( lastChar ) ) && ( isCommentStart ( c ) ) ) { in . readLine ( ) ; tkn . type = Type . COMMENT ; return tkn ; } boolean eol = isEndOfLine ( c ) ; c = in . readAgain ( ) ; <START_BUG> if ( emptyLinesIgnored ) { <END_BUG> while ( eol && ( isStartOfLine ( lastChar ) ) ) { lastChar = c ; c = in . read ( ) ; eol = isEndOfLine ( c ) ; c = in . readAgain ( ) ; if ( isEndOfFile ( c ) ) { tkn . type = Type . EOF ; return tkn ; } } } if ( ( isEndOfFile ( lastChar ) ) || ( ( ! ( isDelimiter ( lastChar ) ) ) && ( isEndOfFile ( c ) ) ) ) { tkn . type = Type . EOF ; return tkn ; } while ( ( tkn . type ) == ( Type . INVALID ) ) { if ( ignoreSurroundingSpaces ) { while ( ( isWhitespace ( c ) ) && ( ! eol ) ) { c = in . read ( ) ; eol = isEndOfLine ( c ) ; } } if ( isDelimiter ( c ) ) { tkn . type = Type . TOKEN ; } else if ( eol ) { tkn . type = Type . EORECORD ; } else if ( isEncapsulator ( c ) ) { encapsulatedTokenLexer ( tkn ) ; } else if ( isEndOfFile ( c ) ) { tkn . type = Type . EOF ; tkn . isReady = true ; } else { simpleTokenLexer ( tkn , c ) ; } } return tkn ; } private Token simpleTokenLexer ( final Token tkn , int c ) throws IOException { } private Token encapsulatedTokenLexer ( final Token tkn ) throws IOException { } }

Fix:
if ( ignoreEmptyLines ) {
Buggy code:
public class HTTPSamplerFactory { public static final String HTTP_SAMPLER_JAVA = "HTTPSampler" ; public static final String HTTP_SAMPLER_APACHE = "HTTPSampler2" ; public static final String IMPL_HTTP_CLIENT4 = "HttpClient4" ; public static final String IMPL_HTTP_CLIENT3_1 = "HttpClient3.1" ; public static final String IMPL_JAVA = "Java" ; public static final String DEFAULT_CLASSNAME = JMeterUtils . getPropDefault ( "jmeter.httpsampler" , HTTPSamplerFactory . HTTP_SAMPLER_JAVA ) ; private HTTPSamplerFactory ( ) { } public static HTTPSamplerBase newInstance ( ) { } public static HTTPSamplerBase newInstance ( String alias ) { <START_BUG> if ( ( alias . length ( ) ) == 0 ) { <END_BUG> alias = HTTPSamplerFactory . DEFAULT_CLASSNAME ; } if ( ( alias . equals ( HTTPSamplerFactory . HTTP_SAMPLER_JAVA ) ) || ( alias . equals ( HTTPSamplerFactory . IMPL_JAVA ) ) ) { return new HTTPSamplerProxy ( HTTPSamplerFactory . IMPL_JAVA ) ; } if ( ( alias . equals ( HTTPSamplerFactory . HTTP_SAMPLER_APACHE ) ) || ( alias . equals ( HTTPSamplerFactory . IMPL_HTTP_CLIENT3_1 ) ) ) { return new HTTPSamplerProxy ( HTTPSamplerFactory . IMPL_HTTP_CLIENT3_1 ) ; } if ( alias . equals ( HTTPSamplerFactory . IMPL_HTTP_CLIENT4 ) ) { return new HTTPSamplerProxy ( HTTPSamplerFactory . IMPL_HTTP_CLIENT4 ) ; } throw new IllegalArgumentException ( ( ( "Unknown<seq2seq4repair_space>sampler<seq2seq4repair_space>type:<seq2seq4repair_space>'" + alias ) + "'" ) ) ; } public static String [ ] getImplementations ( ) { } public static HTTPAbstractImpl getImplementation ( String impl , HTTPSamplerBase base ) { } }

Fix:
if ( ( alias == null ) || ( ( alias . length ( ) ) == 0 ) ) {
Buggy code:
public class SQLServerDictionary extends AbstractSQLServerDictionary { public static final String VENDOR_MICROSOFT = "microsoft" ; public static final String VENDOR_NETDIRECT = "netdirect" ; public static final String VENDOR_JTDS = "jtds" ; private static final Localizer _loc = Localizer . forPackage ( SQLServerDictionary . class ) ; private String schemaCase = SCHEMA_CASE_PRESERVE ; public boolean uniqueIdentifierAsVarbinary = true ; public SQLServerDictionary ( ) { } public void connectedConfiguration ( Connection conn ) throws SQLException { } public Column [ ] getColumns ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , String columnName , Connection conn ) throws SQLException { } public Column [ ] getColumns ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , DBIdentifier columnName , Connection conn ) throws SQLException { } protected void appendLength ( SQLBuffer buf , int type ) { } public void appendXmlComparison ( SQLBuffer buf , String op , FilterValue lhs , FilterValue rhs , boolean lhsxml , boolean rhsxml ) { } private void appendXmlComparison1 ( SQLBuffer buf , String op , FilterValue lhs , FilterValue rhs ) { } private void appendXmlExist ( SQLBuffer buf , FilterValue lhs ) { } private void appendXmlComparison2 ( SQLBuffer buf , String op , FilterValue lhs , FilterValue rhs ) { } private void appendXmlValue ( SQLBuffer buf , FilterValue val ) { } public String getSchemaCase ( ) { } @ Override public void setSupportsXMLColumn ( boolean b ) { } @ Override public boolean isFatalException ( int subtype , SQLException ex ) { String errorState = ex . getSQLState ( ) ; <START_BUG> if ( ( ( subtype == ( StoreException . LOCK ) ) || ( subtype == ( StoreException . QUERY ) ) ) && ( ( "1222" . equals ( errorState ) ) || ( "HY008" . equals ( errorState ) ) ) ) <END_BUG> return false ; return super . isFatalException ( subtype , ex ) ; } @ Override public InputStream getLOBStream ( JDBCStore store , ResultSet rs , int column ) throws SQLException { } @ Override public Reader getCharacterStream ( ResultSet rs , int column ) throws SQLException { } }

Fix:
if ( ( ( subtype == ( StoreException . LOCK ) ) || ( subtype == ( StoreException . QUERY ) ) ) && ( ( ( "1222" . equals ( errorState ) ) || ( "HY008" . equals ( errorState ) ) ) || ( "HYT00" . equals ( errorState ) ) ) )
Buggy code:
public class ChessGame { private ChessBoard board ; private MoveParser moveParser ; ChessGame ( ) { } void processPGN ( String PGN_filepath ) { } public static void main ( String [ ] args ) { <START_BUG> String FILEPATH = "C:\\Users\\test\\Documents\\BootCamp\\pgn_sample.txt" ; <END_BUG> ChessGame game = new ChessGame ( ) ; game . processPGN ( FILEPATH ) ; } }

Fix:
String FILEPATH = "C:\\Users\\test\\IdeaProjects\\BootCamp\\ChessPGNParser\\src\\pgn_sample.txt" ;
Buggy code:
public class SkillLevelSelection extends JFrame implements ActionListener { private JButton jButton1 = new JButton ( ) ; private JLabel jLabel1 = new JLabel ( ) ; private JButton jButton2 = new JButton ( ) ; private JButton jButton3 = new JButton ( ) ; public SudokuGame parent ; public SkillLevelSelection ( SudokuGame parent ) { } private void jbInit ( ) throws Exception { } public void actionPerformed ( ActionEvent e ) { int level = 0 ; if ( ( e . getActionCommand ( ) ) == "Beginner" ) { System . out . println ( "Beginner<seq2seq4repair_space>clicked" ) ; level = 0 ; } else if ( ( e . getActionCommand ( ) ) == "Intermediate" ) { System . out . println ( "Intermediate<seq2seq4repair_space>clicked" ) ; level = 1 ; } else { level = 2 ; System . out . println ( "Advanced<seq2seq4repair_space>clicked" ) ; } parent . setLevelSelected ( level ) ; <START_BUG> parent . createNewPuzzle ( ) ; <END_BUG> this . dispose ( ) ; } }

Fix:
parent . skillLevelChosen ( ) ;
Buggy code:
public class BcelGenericSignatureToTypeXTestCase extends TestCase { public void testEnumFromHell ( ) { BcelWorld world = new BcelWorld ( ) ; JavaClass javaLangEnum = Repository . lookupClass ( "java//lang//Enum" ) ; Signature . ClassSignature cSig = javaLangEnum . getGenericClassTypeSignature ( ) ; UnresolvedType superclass = BcelGenericSignatureToTypeXConverter . classTypeSignature2TypeX ( cSig . superclassSignature , cSig . formalTypeParameters , world ) ; assertEquals ( "Ljava//lang//Object;" , superclass . getSignature ( ) ) ; assertEquals ( "2<seq2seq4repair_space>superinterfaces" , 2 , cSig . superInterfaceSignatures . length ) ; UnresolvedType comparable = BcelGenericSignatureToTypeXConverter . classTypeSignature2TypeX ( cSig . superInterfaceSignatures [ 0 ] , cSig . formalTypeParameters , world ) ; <START_BUG> assertEquals ( "Ljava//lang//Comparable<Ljava//lang//Enum<Ljava//lang//Object;>;>;" , comparable . getSignature ( ) ) ; <END_BUG> UnresolvedType serializable = BcelGenericSignatureToTypeXConverter . classTypeSignature2TypeX ( cSig . superInterfaceSignatures [ 1 ] , cSig . formalTypeParameters , world ) ; assertEquals ( "Ljava//io//Serializable;" , serializable . getSignature ( ) ) ; } public void testColonColon ( ) { } }

Fix:
assertEquals ( "Pjava//lang//Comparable<Pjava//lang//Enum<Ljava//lang//Object;>;>;" , comparable . getSignature ( ) ) ;
Buggy code:
public class RawTypeBinding extends ParameterizedTypeBinding { public RawTypeBinding ( ReferenceBinding type , ReferenceBinding enclosingType , LookupEnvironment environment ) { } public char [ ] computeUniqueKey ( boolean isLeaf ) { } public ParameterizedMethodBinding createParameterizedMethod ( MethodBinding originalMethod ) { } public int kind ( ) { } public String debugName ( ) { } public char [ ] genericTypeSignature ( ) { } public boolean isEquivalentTo ( TypeBinding otherType ) { } public boolean isIntersectingWith ( TypeBinding otherType ) { } public boolean isParameterizedType ( ) { } public boolean isRawType ( ) { } protected void initializeArguments ( ) { TypeVariableBinding [ ] typeVariables = this . type . typeVariables ( ) ; int length = typeVariables . length ; TypeBinding [ ] typeArguments = new TypeBinding [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { <START_BUG> typeArguments [ i ] = this . environment . convertToRawType ( typeVariables [ i ] . upperBound ( ) ) ; <END_BUG> } this . arguments = typeArguments ; } public char [ ] readableName ( ) { } public char [ ] shortReadableName ( ) { } }

Fix:
typeArguments [ i ] = this . environment . convertToRawType ( typeVariables [ i ] . erasure ( ) ) ;
Buggy code:
public class GameLogic { private DiceBox diceBox ; private PlayerInfo playerinfo ; public GameLogic ( PlayerInfo Playerinfo ) { } public void jailTest ( Player player ) { } public void birthdayTest ( ) { Player [ ] tempplayers = playerinfo . getAllPlayers ( ) ; Player luckyone = new Player ( ) ; boolean found = false ; for ( int i = 0 ; i < ( tempplayers . length ) ; i ++ ) { if ( ( tempplayers [ i ] . getInventory ( ) . getBirthdaycards ( ) ) > 0 ) { luckyone = tempplayers [ i ] ; found = true ; } } for ( int j = 0 ; j < ( tempplayers . length ) ; j ++ ) { <START_BUG> if ( found && ( ( tempplayers [ j ] . getPlayerID ( ) ) != ( luckyone . getPlayerID ( ) ) ) ) { <END_BUG> tempplayers [ j ] . addBalance ( ( - 10 ) ) ; luckyone . addBalance ( 10 ) ; } } luckyone . getInventory ( ) . setBirthdaycards ( 0 ) ; } }

Fix:
if ( ( found && ( ( tempplayers [ j ] . getPlayerID ( ) ) != ( luckyone . getPlayerID ( ) ) ) ) && ( tempplayers [ j ] . isAlive ( ) ) ) {
Buggy code:
public class BigramIndex extends src . Index { private HashMap < String , HashMap < String , src . PostingsList > > index = new HashMap < String , HashMap < String , src . PostingsList > > ( ) ; private String previous = null ; private int currentDocID = - 1 ; private int nbigrams = 0 ; public void insert ( String token , int docID , int offset ) { } public Iterator < String > getDictionary ( ) { } public PostingsList getPostings ( String token1 , String token2 ) { } public PostingsList search ( src . Query query , int queryType , int rankingType , int structureType ) { } public void indexingOver ( ) { } public void cleanup ( ) { } private void updateEntryScores ( ) { for ( HashMap < String , src . PostingsList > map : index . values ( ) ) { for ( src . PostingsList ps : map . values ( ) ) { for ( src . PostingsEntry pe : ps . postingsEntries ) { <START_BUG> pe . score //= super . docLengths . get ( ( "" + ( pe . docID ) ) ) ; <END_BUG> } } } } private void computeDocumentNorms ( ) { } public PostingsList getPostings ( String token ) { } public void nextDoc ( ) { } public boolean importIndex ( ) { } }

Fix:
pe . score //= docLengths . get ( ( "" + ( pe . docID ) ) ) ;
Buggy code:
public class FastDateFormatTest { @ Test public void test_getInstance ( ) { } @ Test public void test_getInstance_String ( ) { } @ Test public void test_getInstance_String_TimeZone ( ) { } @ Test public void test_getInstance_String_Locale ( ) { } @ Test public void test_changeDefault_Locale_DateInstance ( ) { } @ Test public void test_changeDefault_Locale_DateTimeInstance ( ) { } @ Test public void test_getInstance_String_TimeZone_Locale ( ) { } @ Test public void testCheckDefaults ( ) { } @ Test public void testCheckDifferingStyles ( ) { } @ Test public void testDateDefaults ( ) { } @ Test public void testTimeDefaults ( ) { } @ Test public void testTimeDateDefaults ( ) { } @ Test public void testParseSync ( ) throws InterruptedException { } private static final int NTHREADS = 10 ; private static final int NROUNDS = 10000 ; private long measureTime ( final Format formatter , final Format parser ) throws InterruptedException { final ExecutorService pool = Executors . newFixedThreadPool ( FastDateFormatTest . NTHREADS ) ; final AtomicInteger failures = new AtomicInteger ( 0 ) ; final AtomicLong totalElapsed = new AtomicLong ( 0 ) ; for ( int i = 0 ; i < ( FastDateFormatTest . NTHREADS ) ; ++ i ) { pool . submit ( new Runnable ( ) { @ Override public void run ( ) { <START_BUG> for ( int i = 0 ; i < ( FastDateFormatTest . NROUNDS ) ; ++ i ) { <END_BUG> try { final Date date = new Date ( ) ; final String formattedDate = formatter . format ( date ) ; final long start = System . currentTimeMillis ( ) ; final Object pd = parser . parseObject ( formattedDate ) ; totalElapsed . addAndGet ( ( ( System . currentTimeMillis ( ) ) - start ) ) ; if ( ! ( date . equals ( pd ) ) ) { failures . incrementAndGet ( ) ; } } catch ( final Exception e ) { failures . incrementAndGet ( ) ; e . printStackTrace ( ) ; } } } } ) ; } pool . shutdown ( ) ; if ( ! ( pool . awaitTermination ( 20 , TimeUnit . SECONDS ) ) ) { pool . shutdownNow ( ) ; fail ( "did<seq2seq4repair_space>not<seq2seq4repair_space>complete<seq2seq4repair_space>tasks" ) ; } assertEquals ( 0 , failures . get ( ) ) ; return totalElapsed . get ( ) ; } }

Fix:
for ( int j = 0 ; j < ( FastDateFormatTest . NROUNDS ) ; ++ j ) {
Buggy code:
public abstract class Form extends WebMarkupContainer implements IFormSubmitListener { private static Log log = LogFactory . getLog ( Form . class ) ; private final IValidationFeedback validationFeedback ; private static class Count { int count ; } private static final class DefaultFormValidationDelegate implements IFormValidationDelegate { private static final Form . DefaultFormValidationDelegate instance = new Form . DefaultFormValidationDelegate ( ) ; private static final Log log = LogFactory . getLog ( Form . DefaultFormValidationDelegate . class ) ; private static Form . DefaultFormValidationDelegate getInstance ( ) { } public void validate ( final Form form ) { } } public Form ( final String name ) { } public Form ( final String name , final IValidationFeedback validationFeedback ) { } public Form ( String name , Serializable object , final IValidationFeedback validationFeedback ) { } public Form ( String name , Serializable object , String expression , final IValidationFeedback validationFeedback ) { } public IFormValidationDelegate getValidationDelegate ( ) { } public final void loadPersistentFormComponentValues ( ) { } public void onFormSubmitted ( ) { } public void removePersistentFormComponentValues ( final boolean disablePersistence ) { } protected IValuePersister getValuePersister ( ) { } protected void onComponentTag ( final ComponentTag tag ) { } protected void onError ( ) { } protected abstract void onSubmit ( ) { } protected void onValidate ( ) { } protected final void validate ( ) { } private int countButtons ( ) { } private Button findSubmittingButton ( ) { return ( ( Button ) ( visitChildren ( Button . class , new IVisitor ( ) { public Object component ( final Component component ) { final Button button = ( ( Button ) ( component ) ) ; <START_BUG> if ( ( ! ( Strings . isEmpty ( button . getRequestString ( ) ) ) ) || ( ! ( Strings . isEmpty ( getRequest ( ) . getParameter ( ( ( button . getPath ( ) ) + ".x" ) ) ) ) ) ) { <END_BUG> return button ; } return CONTINUE_TRAVERSAL ; } } ) ) ) ; } private boolean hasError ( ) { } private void invokeButtonClicked ( ) { } private void persistFormComponentData ( ) { } private void updateFormComponentModels ( ) { } }

Fix:
if ( ( ! ( Strings . isEmpty ( button . getInput ( ) ) ) ) || ( ! ( Strings . isEmpty ( getRequest ( ) . getParameter ( ( ( button . getPath ( ) ) + ".x" ) ) ) ) ) ) {
Buggy code:
cSt = prepareCall ( ( "call<seq2seq4repair_space>SYSCS_UTIL.SYSCS_EXPORT_TABLE<seq2seq4repair_space>('IEP',<seq2seq4repair_space>'T1'<seq2seq4repair_space>,<seq2seq4repair_space>" + "'extinout//t1.dat'<seq2seq4repair_space>,<seq2seq4repair_space>';',<seq2seq4repair_space>';',<seq2seq4repair_space>null)<seq2seq4repair_space>" ) ) ; assertStatementError ( "XIE0J" , cSt ) ; SupportFilesSetup . deleteFile ( "extinout//t1.dat" ) ; cSt = prepareCall ( ( "call<seq2seq4repair_space>SYSCS_UTIL.SYSCS_EXPORT_TABLE<seq2seq4repair_space>('IEP',<seq2seq4repair_space>'T1'<seq2seq4repair_space>,<seq2seq4repair_space>" + "'extinout//t1.dat'<seq2seq4repair_space>,<seq2seq4repair_space>'<seq2seq4repair_space>',<seq2seq4repair_space>';',<seq2seq4repair_space>null)<seq2seq4repair_space>" ) ) ; assertStatementError ( "XIE0J" , cSt ) ; SupportFilesSetup . deleteFile ( "extinout//t1.dat" ) ; cSt = prepareCall ( ( "<seq2seq4repair_space>call<seq2seq4repair_space>SYSCS_UTIL.SYSCS_EXPORT_TABLE<seq2seq4repair_space>('IEP',<seq2seq4repair_space>'T1'<seq2seq4repair_space>,<seq2seq4repair_space>" + "'extinout//t1.dat'<seq2seq4repair_space>,<seq2seq4repair_space>null,<seq2seq4repair_space>'<seq2seq4repair_space>',<seq2seq4repair_space>null)<seq2seq4repair_space>" ) ) ; assertStatementError ( "XIE0J" , cSt ) ; SupportFilesSetup . deleteFile ( "extinout//t1.dat" ) ; cSt = prepareCall ( ( "call<seq2seq4repair_space>SYSCS_UTIL.SYSCS_EXPORT_TABLE<seq2seq4repair_space>('IEP',<seq2seq4repair_space>'T1'<seq2seq4repair_space>,<seq2seq4repair_space>" + "'extinout//t1.dat'<seq2seq4repair_space>,<seq2seq4repair_space>'',<seq2seq4repair_space>';',<seq2seq4repair_space>null)<seq2seq4repair_space>" ) ) ; assertStatementError ( "XIE0J" , cSt ) ; SupportFilesSetup . deleteFile ( "extinout//t1.dat" ) ; cSt = prepareCall ( ( "<seq2seq4repair_space>call<seq2seq4repair_space>SYSCS_UTIL.SYSCS_EXPORT_TABLE<seq2seq4repair_space>('IEP',<seq2seq4repair_space>'T1'<seq2seq4repair_space>,<seq2seq4repair_space>" + "'extinout//t1.dat'<seq2seq4repair_space>,<seq2seq4repair_space>null,<seq2seq4repair_space>'',<seq2seq4repair_space>null)<seq2seq4repair_space>" ) ) ; assertStatementError ( "XIE0J" , cSt ) ; SupportFilesSetup . deleteFile ( "extinout//t1.dat" ) ; <START_BUG> cSt = prepareCall ( ( "call<seq2seq4repair_space>SYSCS_UTIL.SYSCS_EXPORT_TABLE<seq2seq4repair_space>('IEP',<seq2seq4repair_space>'T1'<seq2seq4repair_space>,<seq2seq4repair_space>" + "\'extinout//t1.dat\'<seq2seq4repair_space>,<seq2seq4repair_space>\'\\a\',<seq2seq4repair_space>\'\\\',<seq2seq4repair_space>null)<seq2seq4repair_space>" ) ) ; <END_BUG>

Fix:
cSt = prepareCall ( ( "call<seq2seq4repair_space>SYSCS_UTIL.SYSCS_EXPORT_TABLE<seq2seq4repair_space>('IEP',<seq2seq4repair_space>'T1'<seq2seq4repair_space>,<seq2seq4repair_space>" + "\'extinout//t1.dat\'<seq2seq4repair_space>,<seq2seq4repair_space>\'\\\',<seq2seq4repair_space>\'\\\',<seq2seq4repair_space>null)<seq2seq4repair_space>" ) ) ;
Buggy code:
public class UserActivity extends Activity { private static final int LOGIN_REQUEST = 0 ; private User user = null ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_user ) ; user = BmobUser . getCurrentUser ( this , User . class ) ; if ( ( user ) == null ) { Intent intent = new Intent ( this , LoginActivity . class ) ; startActivityForResult ( intent , UserActivity . LOGIN_REQUEST ) ; } else { setUserInfo ( ) ; Button favButton = ( ( Button ) ( findViewById ( favourite_button ) ) ) ; favButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { DataModel dm = DataModel . getInstance ( getBaseContext ( ) ) ; <START_BUG> dm . getFavArticleInfoListByUser ( new com . syw . hongyunhonghe . model . DataFoundListener < java . util . ArrayList < ArticleInfo > > ( ) { <END_BUG> @ Override public void onSuccess ( java . util . ArrayList < ArticleInfo > articleList ) { if ( ( articleList . size ( ) ) == 0 ) { Toast . makeText ( getBaseContext ( ) , "您还没有收藏" , LENGTH_SHORT ) . show ( ) ; return ; } for ( ArticleInfo articleInfo : articleList ) { articleInfo . setNumber ( ( - 1 ) ) ; } Intent intent = new Intent ( getBaseContext ( ) , ArticleActivity . class ) ; intent . putExtra ( ARTICLE_LIST , articleList ) ; startActivity ( intent ) ; } @ Override public void onFail ( java . util . ArrayList < ArticleInfo > articleList ) { } } ) ; } } ) ; } } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void setUserInfo ( ) { } }

Fix:
dm . getFavArticleInfoListByUser ( user , new com . syw . hongyunhonghe . model . DataFoundListener < java . util . ArrayList < ArticleInfo > > ( ) {