Buggy code:
public class ResetDB { public static void main ( String [ ] args ) { try { Class . forName ( "com.mysql.jdbc.Driver" ) . newInstance ( ) ; Connection conn = null ; try { System . out . println ( ( "Connecting<seq2seq4repair_space>to<seq2seq4repair_space>\n" + ( DBSettings . URL ) ) ) ; conn = DriverManager . getConnection ( URL ) ; } catch ( SQLException e ) { System . out . println ( ( "SQLException<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) ) ; System . out . println ( ( "SQLState<seq2seq4repair_space>" + ( e . getSQLState ( ) ) ) ) ; System . out . println ( ( "VendorError<seq2seq4repair_space>" + ( e . getErrorCode ( ) ) ) ) ; } if ( conn == null ) { return ; } Statement stmt = conn . createStatement ( ) ; String sql = "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>EXISTS<seq2seq4repair_space>history" ; stmt . executeUpdate ( sql ) ; sql = "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>EXISTS<seq2seq4repair_space>restaurants" ; stmt . executeUpdate ( sql ) ; sql = "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>EXISTS<seq2seq4repair_space>users" ; stmt . executeUpdate ( sql ) ; sql = "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>restaurants<seq2seq4repair_space>" + ( ( ( ( ( ( ( ( ( ( ( "(business_id<seq2seq4repair_space>VARCHAR(255)<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" + "<seq2seq4repair_space>name<seq2seq4repair_space>VARCHAR(255),<seq2seq4repair_space>" ) + "categories<seq2seq4repair_space>VARCHAR(255),<seq2seq4repair_space>" ) + "city<seq2seq4repair_space>VARCHAR(255),<seq2seq4repair_space>" ) + "state<seq2seq4repair_space>VARCHAR(255),<seq2seq4repair_space>" ) + "stars<seq2seq4repair_space>FLOAT," ) + "full_address<seq2seq4repair_space>VARCHAR(255),<seq2seq4repair_space>" ) + "latitude<seq2seq4repair_space>FLOAT,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>longitude<seq2seq4repair_space>FLOAT,<seq2seq4repair_space>" ) + "image_url<seq2seq4repair_space>VARCHAR(255)," ) + "url<seq2seq4repair_space>VARCHAR(255)," ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>(<seq2seq4repair_space>business_id<seq2seq4repair_space>))" ) ; stmt . executeUpdate ( sql ) ; sql = "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>users<seq2seq4repair_space>" + ( ( "(user_id<seq2seq4repair_space>VARCHAR(255)<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" + "<seq2seq4repair_space>first_name<seq2seq4repair_space>VARCHAR(255),<seq2seq4repair_space>last_name<seq2seq4repair_space>VARCHAR(255),<seq2seq4repair_space>" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>(<seq2seq4repair_space>user_id<seq2seq4repair_space>))" ) ; stmt . executeUpdate ( sql ) ; sql = "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>history<seq2seq4repair_space>" + ( ( ( ( ( ( "(visit_history_id<seq2seq4repair_space>bigint(20)<seq2seq4repair_space>unsigned<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>AUTO_INCREMENT,<seq2seq4repair_space>" + "<seq2seq4repair_space>user_id<seq2seq4repair_space>VARCHAR(255)<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>business_id<seq2seq4repair_space>VARCHAR(255)<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>last_visited_time<seq2seq4repair_space>timestamp<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>DEFAULT<seq2seq4repair_space>CURRENT_TIMESTAMP,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>(visit_history_id)," ) + "FOREIGN<seq2seq4repair_space>KEY<seq2seq4repair_space>(business_id)<seq2seq4repair_space>REFERENCES<seq2seq4repair_space>restaurants(business_id)," ) + "FOREIGN<seq2seq4repair_space>KEY<seq2seq4repair_space>(user_id)<seq2seq4repair_space>REFERENCES<seq2seq4repair_space>users(user_id))" ) ; stmt . executeUpdate ( sql ) ; sql = "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>users<seq2seq4repair_space>" + "VALUES<seq2seq4repair_space>(\"1111\",<seq2seq4repair_space>\"John\",<seq2seq4repair_space>\"Smith\")" ; System . out . println ( ( "\nDBYelpImport<seq2seq4repair_space>executing<seq2seq4repair_space>query:\n" + sql ) ) ; stmt . executeUpdate ( sql ) ; <START_BUG> System . out . println ( "DBYelpImport:<seq2seq4repair_space>import<seq2seq4repair_space>is<seq2seq4repair_space>done<seq2seq4repair_space>successfully." ) ; <END_BUG> } catch ( Exception e ) { System . out . println ( e . getMessage ( ) ) ; } } }

Fix:
System . out . println ( "DBReset:<seq2seq4repair_space>Operation<seq2seq4repair_space>is<seq2seq4repair_space>done<seq2seq4repair_space>successfully." ) ;