<commit_before>import UIKit

enum ReadingListDetailDisplayType {
    case modal, pushed
}

class ReadingListDetailViewController: ViewController {
    let dataStore: MWKDataStore
    let readingList: ReadingList
    
    let readingListEntryCollectionViewController: ReadingListEntryCollectionViewController
    
    private let readingListDetailUnderBarViewController: ReadingListDetailUnderBarViewController
    private var searchBarExtendedViewController: SearchBarExtendedViewController?
    private var displayType: ReadingListDetailDisplayType = .pushed
    
    // Import shared reading list properties
    private let fromImport: Bool
    private var seenSurveyPrompt: Bool = false
    private weak var importSurveyPromptTimer: Timer?
    private let importSurveyPromptDelay = TimeInterval(5)
    
    // TODO: Get final URL
    private let importSurveyURL = URL(string: "https://docs.google.com/forms/d/1c7TyQc-Dr9RA7wi6tCAdmWegxNj-s2GpQ1Vk2II6xYY/edit?ts=63767ac8")
    
    @objc convenience init(for readingList: ReadingList, with dataStore: MWKDataStore, fromImport: Bool, theme: Theme) {
        self.init(for: readingList, with: dataStore, displayType: .pushed, fromImport: fromImport)
        self.theme = theme
    }
    
    init(for readingList: ReadingList, with dataStore: MWKDataStore, displayType: ReadingListDetailDisplayType = .pushed, fromImport: Bool = false) {
        self.readingList = readingList
        self.dataStore = dataStore
        self.displayType = displayType
        self.fromImport = fromImport
        readingListDetailUnderBarViewController = ReadingListDetailUnderBarViewController()
        readingListEntryCollectionViewController = ReadingListEntryCollectionViewController(for: readingList, with: dataStore)
        readingListEntryCollectionViewController.emptyViewType = .noSavedPagesInReadingList
        super.init()
        searchBarExtendedViewController = SearchBarExtendedViewController()
        searchBarExtendedViewController?.dataSource = self
        searchBarExtendedViewController?.delegate = self
        readingListDetailUnderBarViewController.delegate = self
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) not supported")<commit_msg>Remove todo comment<commit_after>import UIKit

enum ReadingListDetailDisplayType {
    case modal, pushed
}

class ReadingListDetailViewController: ViewController {
    let dataStore: MWKDataStore
    let readingList: ReadingList
    
    let readingListEntryCollectionViewController: ReadingListEntryCollectionViewController
    
    private let readingListDetailUnderBarViewController: ReadingListDetailUnderBarViewController
    private var searchBarExtendedViewController: SearchBarExtendedViewController?
    private var displayType: ReadingListDetailDisplayType = .pushed
    
    // Import shared reading list properties
    private let fromImport: Bool
    private var seenSurveyPrompt: Bool = false
    private weak var importSurveyPromptTimer: Timer?
    private let importSurveyPromptDelay = TimeInterval(5)
    
    private let importSurveyURL = URL(string: "https://docs.google.com/forms/d/1c7TyQc-Dr9RA7wi6tCAdmWegxNj-s2GpQ1Vk2II6xYY/edit?ts=63767ac8")
    
    @objc convenience init(for readingList: ReadingList, with dataStore: MWKDataStore, fromImport: Bool, theme: Theme) {
        self.init(for: readingList, with: dataStore, displayType: .pushed, fromImport: fromImport)
        self.theme = theme
    }
    
    init(for readingList: ReadingList, with dataStore: MWKDataStore, displayType: ReadingListDetailDisplayType = .pushed, fromImport: Bool = false) {
        self.readingList = readingList
        self.dataStore = dataStore
        self.displayType = displayType
        self.fromImport = fromImport
        readingListDetailUnderBarViewController = ReadingListDetailUnderBarViewController()
        readingListEntryCollectionViewController = ReadingListEntryCollectionViewController(for: readingList, with: dataStore)
        readingListEntryCollectionViewController.emptyViewType = .noSavedPagesInReadingList
        super.init()
        searchBarExtendedViewController = SearchBarExtendedViewController()
        searchBarExtendedViewController?.dataSource = self
        searchBarExtendedViewController?.delegate = self
        readingListDetailUnderBarViewController.delegate = self
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) not supported")
{'fraction_non_alphanumeric': 0.05932393104992165, 'fraction_numerical': 0.007163644504141482, 'mean_word_length': 4.3701923076923075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5211855', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1122, 'n_words': 259}