Buggy code:
public Chapter getChapter ( SQLiteDatabase db , String slug , long resourceId ) { } public Frame getFrame ( SQLiteDatabase db , String slug , long chapterId ) { } public long addTranslationWord ( SQLiteDatabase db , String wordSlug , long resourceId , String catalogHash , String term , String definitionTitle , String definition , TranslationWord [ ] examples , String [ ] aliases , String [ ] related ) { } public String [ ] getTranslationWordSlugs ( SQLiteDatabase db , long resourceId ) { } public TranslationWord getTranslationWord ( SQLiteDatabase db , String slug , long resourceId ) { } public TranslationWord [ ] getTranslationWords ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public TranslationWord [ ] getTranslationWordsForFrame ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug , String frameSlug ) { } public void addTranslationWordToFrame ( SQLiteDatabase db , String wordSlug , long resourceId , long frameId , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug , String frameSlug ) { } private long getTranslationWordDBId ( SQLiteDatabase db , String wordSlug , long resourceId ) { } public long addCheckingQuestion ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug , String frameSlug , String questionSlug , long frameId , long chapterId , String question , String answer ) { } public CheckingQuestion [ ] getCheckingQuestions ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug , String frameSlug ) { } public CheckingQuestion getCheckingQuestion ( SQLiteDatabase db , long chapterId , String frameSlug , String questionSlug ) { } public Project getProject ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug ) { } public SourceLanguage getSourceLanguage ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug ) { } public SourceLanguage [ ] getSourceLanguages ( SQLiteDatabase db , String projectSlug ) { } public Resource getResource ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public Resource [ ] getResources ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug ) { } public SourceTranslation [ ] getSourceTranslationsWithUpdates ( SQLiteDatabase db ) { } public TargetLanguage [ ] getTargetLanguages ( SQLiteDatabase db ) { } public long addTargetLanguage ( SQLiteDatabase db , String slug , String direction , String name , String region ) { } public int getTargetLanguagesLength ( SQLiteDatabase db ) { } public TargetLanguage getTargetLanguage ( SQLiteDatabase db , String targetLanguageSlug ) { } public TargetLanguage getTargetLanguageByName ( SQLiteDatabase db , String targetLanguageName ) { } public TranslationFormat getSourceTranslationFormat ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public SourceTranslation getSourceTranslation ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public ProjectCategory [ ] getCategoryBranch ( SQLiteDatabase db , String sourcelanguageSlug , long parentCategoryId ) { } public Chapter [ ] getChapters ( SQLiteDatabase db , long resourceId ) { } public Frame [ ] getFrames ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug ) { } public String getChapterBody ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug ) { } public TranslationFormat getChapterBodyFormat ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug ) { } public TranslationNote [ ] getTranslationNotes ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug , String chapterSlug , String frameSlug ) { } public int countTranslatableItems ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public Project [ ] getProjects ( SQLiteDatabase db , String sourceLanguageSlug ) { } public void markSourceLanguageCatalogUpToDate ( SQLiteDatabase db , String projectSlug ) { } public void markChunkMarkerCatalogUpToDate ( SQLiteDatabase db , String projectSlug ) { } public void markResourceCatalogUpToDate ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug ) { } public void markSourceCatalogUpToDate ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public void markNotesCatalogUpToDate ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public void markWordsCatalogUpToDate ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public void markWordAssignmentsCatalogUpToDate ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public void markQuestionsCatalogUpToDate ( SQLiteDatabase db , String projectSlug , String sourceLanguageSlug , String resourceSlug ) { } public long addTranslationAcademyVolume ( SQLiteDatabase db , String volSlug , long resourceDBId , String cataloghash , String volTitle ) { } public long addTranslationAcademyManual ( SQLiteDatabase db , String manualSlug , long volumeDBId , String manualTitle ) { } public long addTranslationAcademyArticle ( SQLiteDatabase db , String articleId , long manualDBId , String articleTitle , String articleText , String articleReference ) { } public TranslationArticle getTranslationArticle ( SQLiteDatabase db , long resourceId , String volume , String manual , String referenceSlug ) { } public long addChunkMarker ( SQLiteDatabase db , String chapter , String firstVerse , long projectId ) { } public boolean manuallyInjectChunkMarkerUrls ( SQLiteDatabase db ) { } public ChunkMarker [ ] getChunkMarkers ( SQLiteDatabase db , String projectSlug ) { List < ChunkMarker > chunkMarkers = new ArrayList < > ( ) ; <START_BUG> Cursor cursor = db . rawQuery ( ( "SELECT<seq2seq4repair_space>`cm`.`chapter_slug`,<seq2seq4repair_space>`cm`.`first_verse_slug`<seq2seq4repair_space>FROM<seq2seq4repair_space>`chunk_markers`<seq2seq4repair_space>AS<seq2seq4repair_space>`cm`" + ( "<seq2seq4repair_space>LEFT<seq2seq4repair_space>JOIN<seq2seq4repair_space>`project`<seq2seq4repair_space>AS<seq2seq4repair_space>`p`<seq2seq4repair_space>ON<seq2seq4repair_space>`p`.`id`<seq2seq4repair_space>=<seq2seq4repair_space>`cm`.`project_id`" + "<seq2seq4repair_space>WHERE<seq2seq4repair_space>`p`.`slug`=?" ) ) , new String [ ] { projectSlug } ) ; <END_BUG> cursor . moveToFirst ( ) ; while ( ! ( cursor . isAfterLast ( ) ) ) { chunkMarkers . add ( new ChunkMarker ( cursor . getString ( 0 ) , cursor . getString ( 1 ) ) ) ; cursor . moveToNext ( ) ; } cursor . close ( ) ; return chunkMarkers . toArray ( new ChunkMarker [ chunkMarkers . size ( ) ] ) ; } }

Fix:
Cursor cursor = db . rawQuery ( ( "SELECT<seq2seq4repair_space>`cm`.`chapter_slug`,<seq2seq4repair_space>`cm`.`first_verse_slug`<seq2seq4repair_space>FROM<seq2seq4repair_space>`chunk_marker`<seq2seq4repair_space>AS<seq2seq4repair_space>`cm`" + ( "<seq2seq4repair_space>LEFT<seq2seq4repair_space>JOIN<seq2seq4repair_space>`project`<seq2seq4repair_space>AS<seq2seq4repair_space>`p`<seq2seq4repair_space>ON<seq2seq4repair_space>`p`.`id`<seq2seq4repair_space>=<seq2seq4repair_space>`cm`.`project_id`" + "<seq2seq4repair_space>WHERE<seq2seq4repair_space>`p`.`slug`=?" ) ) , new String [ ] { projectSlug } ) ;