Buggy code:
public class ChatMessageManager { public static final int COL_ID = 0 ; public static final int COL_PREVIOUS = 1 ; public static final int COL_ROOM = 2 ; public static final int COL_TEXT = 3 ; public static final int COL_TIMESTAMP = 4 ; public static final int COL_SIGNATURE = 5 ; public static final int COL_MEMBER = 6 ; public static final int COL_READ = 7 ; public static final int COL_SENDING = 8 ; private final SQLiteDatabase db ; private final int mChatRoom ; private Context mContext ; public ChatMessageManager ( Context context , int room ) { } private static void init ( SQLiteDatabase db ) { <START_BUG> db . execSQL ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>chat_message<seq2seq4repair_space>(_id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY,<seq2seq4repair_space>previous<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>room<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>" + "text<seq2seq4repair_space>TEXT,<seq2seq4repair_space>timestamp<seq2seq4repair_space>VARCHAR,<seq2seq4repair_space>signature<seq2seq4repair_space>TEXT,<seq2seq4repair_space>member<seq2seq4repair_space>BLOB,<seq2seq4repair_space>read<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>sending<seq2seq4repair_space>INTEGER)" ) ) ; <END_BUG> db . execSQL ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>unsent_chat_message<seq2seq4repair_space>(_id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>AUTOINCREMENT,<seq2seq4repair_space>room<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>text<seq2seq4repair_space>TEXT,<seq2seq4repair_space>member<seq2seq4repair_space>BLOB,<seq2seq4repair_space>msg_id<seq2seq4repair_space>INTEGER)" ) ; db . rawQuery ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>chat_message<seq2seq4repair_space>WHERE<seq2seq4repair_space>timestamp<datetime('now','-1<seq2seq4repair_space>month')" , null ) ; } public Cursor getAll ( ) { } public void markAsRead ( ) { } public static ArrayList < ChatMessage > getAllUnsentUpdated ( Context context ) { } public ArrayList < ChatMessage > getAllUnsent ( ) { } public void addToUnsent ( ChatMessage m ) { } public void removeFromUnsent ( ChatMessage message ) { } public Cursor getUnread ( ) { } public ArrayList < ChatMessage > getLastUnread ( ) { } public void replaceInto ( ChatMessage m , int memberId ) { } public void replaceMessage ( ChatMessage m ) { } public void replaceInto ( List < ChatMessage > m ) { } public static ChatMessage toObject ( Cursor cursor ) { } public Cursor getNewMessages ( PrivateKey pk , ChatMember member , int messageId ) { } No newline ; at end ; of file ; }

Fix:
db . execSQL ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>chat_message<seq2seq4repair_space>(_id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY,<seq2seq4repair_space>previous<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>room<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>" + "text<seq2seq4repair_space>TEXT,<seq2seq4repair_space>timestamp<seq2seq4repair_space>DATETIME,<seq2seq4repair_space>signature<seq2seq4repair_space>TEXT,<seq2seq4repair_space>member<seq2seq4repair_space>BLOB,<seq2seq4repair_space>read<seq2seq4repair_space>INTEGER,<seq2seq4repair_space>sending<seq2seq4repair_space>INTEGER)" ) ) ;