Buggy code:
public static final String SCHEMA = "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>docs<seq2seq4repair_space>(<seq2seq4repair_space>" + "<seq2seq4repair_space>doc_id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>docid<seq2seq4repair_space>TEXT<seq2seq4repair_space>UNIQUE<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>docs_docid<seq2seq4repair_space>ON<seq2seq4repair_space>docs(docid);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>revs<seq2seq4repair_space>(<seq2seq4repair_space>" ) + "<seq2seq4repair_space>sequence<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY<seq2seq4repair_space>AUTOINCREMENT,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>doc_id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>REFERENCES<seq2seq4repair_space>docs(doc_id)<seq2seq4repair_space>ON<seq2seq4repair_space>DELETE<seq2seq4repair_space>CASCADE,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>revid<seq2seq4repair_space>TEXT<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>COLLATE<seq2seq4repair_space>REVID,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>parent<seq2seq4repair_space>INTEGER<seq2seq4repair_space>REFERENCES<seq2seq4repair_space>revs(sequence)<seq2seq4repair_space>ON<seq2seq4repair_space>DELETE<seq2seq4repair_space>SET<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>current<seq2seq4repair_space>BOOLEAN,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>deleted<seq2seq4repair_space>BOOLEAN<seq2seq4repair_space>DEFAULT<seq2seq4repair_space>0,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>json<seq2seq4repair_space>BLOB,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>UNIQUE<seq2seq4repair_space>(doc_id,<seq2seq4repair_space>revid));<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>revs_current<seq2seq4repair_space>ON<seq2seq4repair_space>revs(doc_id,<seq2seq4repair_space>current);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>revs_parent<seq2seq4repair_space>ON<seq2seq4repair_space>revs(parent);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>localdocs<seq2seq4repair_space>(<seq2seq4repair_space>" ) + "<seq2seq4repair_space>docid<seq2seq4repair_space>TEXT<seq2seq4repair_space>UNIQUE<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>revid<seq2seq4repair_space>TEXT<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>COLLATE<seq2seq4repair_space>REVID,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>json<seq2seq4repair_space>BLOB);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>localdocs_by_docid<seq2seq4repair_space>ON<seq2seq4repair_space>localdocs(docid);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>views<seq2seq4repair_space>(<seq2seq4repair_space>" ) + "<seq2seq4repair_space>view_id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>PRIMARY<seq2seq4repair_space>KEY,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>name<seq2seq4repair_space>TEXT<seq2seq4repair_space>UNIQUE<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL," ) + "<seq2seq4repair_space>version<seq2seq4repair_space>TEXT,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>lastsequence<seq2seq4repair_space>INTEGER<seq2seq4repair_space>DEFAULT<seq2seq4repair_space>0);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>views_by_name<seq2seq4repair_space>ON<seq2seq4repair_space>views(name);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>maps<seq2seq4repair_space>(<seq2seq4repair_space>" ) + "<seq2seq4repair_space>view_id<seq2seq4repair_space>INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>REFERENCES<seq2seq4repair_space>views(view_id)<seq2seq4repair_space>ON<seq2seq4repair_space>DELETE<seq2seq4repair_space>CASCADE,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>sequence<seq2seq4repair_space>INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>REFERENCES<seq2seq4repair_space>revs(sequence)<seq2seq4repair_space>ON<seq2seq4repair_space>DELETE<seq2seq4repair_space>CASCADE,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>TEXT<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>COLLATE<seq2seq4repair_space>JSON,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>value<seq2seq4repair_space>TEXT);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>maps_keys<seq2seq4repair_space>on<seq2seq4repair_space>maps(view_id,<seq2seq4repair_space>key<seq2seq4repair_space>COLLATE<seq2seq4repair_space>JSON);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>attachments<seq2seq4repair_space>(<seq2seq4repair_space>" ) + "<seq2seq4repair_space>sequence<seq2seq4repair_space>INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL<seq2seq4repair_space>REFERENCES<seq2seq4repair_space>revs(sequence)<seq2seq4repair_space>ON<seq2seq4repair_space>DELETE<seq2seq4repair_space>CASCADE,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>filename<seq2seq4repair_space>TEXT<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>key<seq2seq4repair_space>BLOB<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>type<seq2seq4repair_space>TEXT,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>length<seq2seq4repair_space>INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>revpos<seq2seq4repair_space>INTEGER<seq2seq4repair_space>DEFAULT<seq2seq4repair_space>0);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>INDEX<seq2seq4repair_space>attachments_by_sequence<seq2seq4repair_space>on<seq2seq4repair_space>attachments(sequence,<seq2seq4repair_space>filename);<seq2seq4repair_space>" ) + "<seq2seq4repair_space>CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>replicators<seq2seq4repair_space>(<seq2seq4repair_space>" ) + "<seq2seq4repair_space>remote<seq2seq4repair_space>TEXT<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>push<seq2seq4repair_space>BOOLEAN,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>last_sequence<seq2seq4repair_space>TEXT,<seq2seq4repair_space>" ) + "<seq2seq4repair_space>UNIQUE<seq2seq4repair_space>(remote,<seq2seq4repair_space>push));<seq2seq4repair_space>" ) + "<seq2seq4repair_space>PRAGMA<seq2seq4repair_space>user_version<seq2seq4repair_space>=<seq2seq4repair_space>3" ) ; @ InterfaceAudience . Public public static ReplicationFilterCompiler getFilterCompiler ( ) { } @ InterfaceAudience . Public public static void setFilterCompiler ( ReplicationFilterCompiler filterCompiler ) { } @ InterfaceAudience . Private public Database ( String path , Manager manager ) { } @ InterfaceAudience . Public public String getName ( ) { } @ InterfaceAudience . Public public Manager getManager ( ) { } @ InterfaceAudience . Public public int getDocumentCount ( ) { } @ InterfaceAudience . Public public long getLastSequenceNumber ( ) { } @ InterfaceAudience . Public public List < Replication > getAllReplications ( ) { } @ InterfaceAudience . Public public void compact ( ) throws CouchbaseLiteException { } @ InterfaceAudience . Public public void delete ( ) throws CouchbaseLiteException { } @ InterfaceAudience . Public public Document getDocument ( String documentId ) { } @ InterfaceAudience . Public public Document getExistingDocument ( String documentId ) { } @ InterfaceAudience . Public public Document createDocument ( ) { } @ InterfaceAudience . Public public Map < String , Object > getExistingLocalDocument ( String documentId ) { } @ InterfaceAudience . Public public boolean putLocalDocument ( String id , Map < String , Object > properties ) throws CouchbaseLiteException { } @ InterfaceAudience . Public public boolean deleteLocalDocument ( String id ) throws CouchbaseLiteException { } @ InterfaceAudience . Public public Query createAllDocumentsQuery ( ) { } @ InterfaceAudience . Public public View getView ( String name ) { } @ InterfaceAudience . Public public View getExistingView ( String name ) { } @ InterfaceAudience . Public public Validator getValidation ( String name ) { } @ InterfaceAudience . Public public void setValidation ( String name , Validator validator ) { } @ InterfaceAudience . Public public ReplicationFilter getFilter ( String filterName ) { } @ InterfaceAudience . Public public void setFilter ( String filterName , ReplicationFilter filter ) { } @ InterfaceAudience . Public public boolean runInTransaction ( TransactionalTask transactionalTask ) { } @ InterfaceAudience . Public public Future runAsync ( final AsyncTask asyncTask ) { } @ InterfaceAudience . Public public Replication createPushReplication ( URL remote ) { } @ InterfaceAudience . Public public Replication createPullReplication ( URL remote ) { } @ InterfaceAudience . Public public void addChangeListener ( Database . ChangeListener listener ) { } @ InterfaceAudience . Public public void removeChangeListener ( Database . ChangeListener listener ) { } @ InterfaceAudience . Private public void addDatabaseListener ( Database . DatabaseListener listener ) { } @ InterfaceAudience . Private public void removeDatabaseListener ( Database . DatabaseListener listener ) { } @ InterfaceAudience . Public public String toString ( ) { } @ InterfaceAudience . Public public static class ChangeEvent { private Database source ; private boolean isExternal ; private List < DocumentChange > changes ; public ChangeEvent ( Database source , boolean isExternal , List < DocumentChange > changes ) { } public Database getSource ( ) { } public boolean isExternal ( ) { } public List < DocumentChange > getChanges ( ) { } } @ InterfaceAudience . Public public static interface ChangeListener { public void changed ( Database . ChangeEvent event ) { } } @ InterfaceAudience . Private public static interface DatabaseListener { public void databaseClosing ( ) { } } @ InterfaceAudience . Public public int getMaxRevTreeDepth ( ) { } @ InterfaceAudience . Public public void setMaxRevTreeDepth ( int maxRevTreeDepth ) { } @ InterfaceAudience . Private protected Document getCachedDocument ( String documentID ) { } @ InterfaceAudience . Private public void clearDocumentCache ( ) { } @ InterfaceAudience . Private public List < Replication > getActiveReplications ( ) { } @ InterfaceAudience . Private protected void removeDocumentFromCache ( Document document ) { } @ InterfaceAudience . Private public boolean exists ( ) { } @ InterfaceAudience . Private public String getAttachmentStorePath ( ) { } @ InterfaceAudience . Private public static Database createEmptyDBAtPath ( String path , Manager manager ) { } @ InterfaceAudience . Private public boolean initialize ( String statements ) { } @ InterfaceAudience . Private public synchronized boolean open ( ) { } private boolean isBlobstoreMigrated ( ) { } private void markBlobstoreMigrated ( ) { } @ InterfaceAudience . Public public boolean close ( ) { } @ InterfaceAudience . Private public String getPath ( ) { } @ InterfaceAudience . Private SQLiteStorageEngine getDatabase ( ) { } @ InterfaceAudience . Private public BlobStore getAttachments ( ) { } @ InterfaceAudience . Private public BlobStoreWriter getAttachmentWriter ( ) { } @ InterfaceAudience . Private public long totalDataSize ( ) { } @ InterfaceAudience . Private public boolean beginTransaction ( ) { } @ InterfaceAudience . Private public boolean endTransaction ( boolean commit ) { } @ InterfaceAudience . Private public String privateUUID ( ) { } @ InterfaceAudience . Private public String publicUUID ( ) { } @ InterfaceAudience . Private public String infoForKey ( String key ) { } @ InterfaceAudience . Private public long setInfo ( String key , String info ) { long result = 0 ; try { ContentValues args = new ContentValues ( ) ; args . put ( "key" , key ) ; args . put ( "value" , info ) ; <START_BUG> result = database . insert ( "info" , null , args ) ; <END_BUG> }

Fix:
result = database . insertWithOnConflict ( "info" , null , args , CONFLICT_REPLACE ) ;