<commit_before>//
//  FolioReaderConfig.swift
//  FolioReaderKit
//
//  Created by <NAME> on 08/04/15.
//  Copyright (c) 2015 Folio Reader. All rights reserved.
//

import UIKit

public class FolioReaderConfig: NSObject {
    // Reader Colors
    public var toolBarBackgroundColor: UIColor!
    public var toolBarTintColor: UIColor!
    public var menuBackgroundColor: UIColor!
    public var menuSeparatorColor: UIColor!
    public var menuTextColor: UIColor!
    public var nightModeBackground: UIColor!
    public var nightModeMenuBackground: UIColor!
    public var nightModeSeparatorColor: UIColor!
    public var mediaOverlayColor: UIColor!
    
    // Custom actions
    public var shouldHideNavigationOnTap: Bool!
    public var allowSharing: Bool!
    
    // Reader Strings
    public var localizedHighlightsTitle: String
    public var localizedHighlightsDateFormat: String
    public var localizedHighlightMenu: String
    public var localizedPlayMenu: String
    public var localizedPauseMenu: String
    public var localizedFontMenuNight: String
    public var localizedFontMenuDay: String
    public var localizedReaderOnePageLeft: String
    public var localizedReaderManyPagesLeft: String
    public var localizedReaderManyMinutes: String
    public var localizedReaderOneMinute: String
    public var localizedReaderLessThanOneMinute: String
    public var localizedShareWebLink: String?
    public var localizedShareChapterSubject: String
    public var localizedShareHighlightSubject: String
    public var localizedShareAllExcerptsFrom: String
    public var localizedShareBy: String
    
    // MARK: - Init with defaults
    
    public override init() {
        self.toolBarBackgroundColor = UIColor(rgba: "#6ACC50")
        self.toolBarTintColor = UIColor.whiteColor()
        self.menuBackgroundColor = UIColor(rgba: "#F5F5F5")
        self.menuSeparatorColor = UIColor(rgba: "#D7D7D7")
        self.menuTextColor = UIColor(rgba: "#575757")
        self.nightModeBackground = UIColor(rgba: "#131313")
        self.nightModeMenuBackground = UIColor(rgba: "#1E1E1E")
        self.nightModeSeparatorColor = UIColor(white: 0.5, alpha: 0.2)
        
        // if not set by config, this will be set in FolioReaderCenter
        //self.mediaOverlayColor

        self.shouldHideNavigationOnTap = true
        self.allowSharing = true
        
        self.localizedHighlightsTitle = NSLocalizedString("Highlights", comment: "")
        self.localizedHighlightsDateFormat = "MMM dd, YYYY | HH:mm"
        self.localizedHighlightMenu = NSLocalizedString("Highlight", comment: "")
        self.localizedPlayMenu = NSLocalizedString("Play", comment: "")
        self.localizedPauseMenu = NSLocalizedString("Pause", comment: "")
        self.localizedFontMenuNight = NSLocalizedString("Night", comment: "")
        self.localizedFontMenuDay = NSLocalizedString("Day", comment: "")
        self.localizedReaderOnePageLeft = NSLocalizedString("1 page left", comment: "")
        self.localizedReaderManyPagesLeft = NSLocalizedString("pages left", comment: "")
        self.localizedReaderManyMinutes = NSLocalizedString("minutes", comment: "")
        self.localizedReaderOneMinute = NSLocalizedString("1 minute", comment: "")
        self.localizedReaderLessThanOneMinute = NSLocalizedString("Less than a minute", comment: "")
        self.localizedShareWebLink = nil
        self.localizedShareChapterSubject = NSLocalizedString("Check out this chapter from", comment: "")
        self.localizedShareHighlightSubject = NSLocalizedString("Notes from", comment: "")
        self.localizedShareAllExcerptsFrom = NSLocalizedString("All excerpts from", comment: "")
        self.localizedShareBy = NSLocalizedString("by", comment: "")
        
        super.init()
    }
}<commit_msg>Changing default play/pause wording<commit_after>//
//  FolioReaderConfig.swift
//  FolioReaderKit
//
//  Created by <NAME> on 08/04/15.
//  Copyright (c) 2015 Folio Reader. All rights reserved.
//

import UIKit

public class FolioReaderConfig: NSObject {
    // Reader Colors
    public var toolBarBackgroundColor: UIColor!
    public var toolBarTintColor: UIColor!
    public var menuBackgroundColor: UIColor!
    public var menuSeparatorColor: UIColor!
    public var menuTextColor: UIColor!
    public var nightModeBackground: UIColor!
    public var nightModeMenuBackground: UIColor!
    public var nightModeSeparatorColor: UIColor!
    public var mediaOverlayColor: UIColor!
    
    // Custom actions
    public var shouldHideNavigationOnTap: Bool!
    public var allowSharing: Bool!
    
    // Reader Strings
    public var localizedHighlightsTitle: String
    public var localizedHighlightsDateFormat: String
    public var localizedHighlightMenu: String
    public var localizedPlayMenu: String
    public var localizedPauseMenu: String
    public var localizedFontMenuNight: String
    public var localizedFontMenuDay: String
    public var localizedReaderOnePageLeft: String
    public var localizedReaderManyPagesLeft: String
    public var localizedReaderManyMinutes: String
    public var localizedReaderOneMinute: String
    public var localizedReaderLessThanOneMinute: String
    public var localizedShareWebLink: String?
    public var localizedShareChapterSubject: String
    public var localizedShareHighlightSubject: String
    public var localizedShareAllExcerptsFrom: String
    public var localizedShareBy: String
    
    // MARK: - Init with defaults
    
    public override init() {
        self.toolBarBackgroundColor = UIColor(rgba: "#6ACC50")
        self.toolBarTintColor = UIColor.whiteColor()
        self.menuBackgroundColor = UIColor(rgba: "#F5F5F5")
        self.menuSeparatorColor = UIColor(rgba: "#D7D7D7")
        self.menuTextColor = UIColor(rgba: "#575757")
        self.nightModeBackground = UIColor(rgba: "#131313")
        self.nightModeMenuBackground = UIColor(rgba: "#1E1E1E")
        self.nightModeSeparatorColor = UIColor(white: 0.5, alpha: 0.2)
        
        // if not set by config, this will be set in FolioReaderCenter
        //self.mediaOverlayColor

        self.shouldHideNavigationOnTap = true
        self.allowSharing = true
        
        self.localizedHighlightsTitle = NSLocalizedString("Highlights", comment: "")
        self.localizedHighlightsDateFormat = "MMM dd, YYYY | HH:mm"
        self.localizedHighlightMenu = NSLocalizedString("Highlight", comment: "")
        self.localizedPlayMenu = NSLocalizedString("Start Reading", comment: "")
        self.localizedPauseMenu = NSLocalizedString("Stop Reading", comment: "")
        self.localizedFontMenuNight = NSLocalizedString("Night", comment: "")
        self.localizedFontMenuDay = NSLocalizedString("Day", comment: "")
        self.localizedReaderOnePageLeft = NSLocalizedString("1 page left", comment: "")
        self.localizedReaderManyPagesLeft = NSLocalizedString("pages left", comment: "")
        self.localizedReaderManyMinutes = NSLocalizedString("minutes", comment: "")
        self.localizedReaderOneMinute = NSLocalizedString("1 minute", comment: "")
        self.localizedReaderLessThanOneMinute = NSLocalizedString("Less than a minute", comment: "")
        self.localizedShareWebLink = nil
        self.localizedShareChapterSubject = NSLocalizedString("Check out this chapter from", comment: "")
        self.localizedShareHighlightSubject = NSLocalizedString("Notes from", comment: "")
        self.localizedShareAllExcerptsFrom = NSLocalizedString("All excerpts from", comment: "")
        self.localizedShareBy = NSLocalizedString("by", comment: "")
        
        super.init()
    }
}
{'fraction_non_alphanumeric': 0.08350812794965914, 'fraction_numerical': 0.01048767697954903, 'mean_word_length': 3.700554528650647, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2243251', 'n_tokens_mistral': 2147, 'n_tokens_neox': 2078, 'n_words': 515}