<commit_before>//
//  PrecipitateSettingsViewController.swift
//  Precipitate
//
//  Created by <NAME> on 1/26/16.
//  Copyright © 2016 markedwardmurray. All rights reserved.
//

import UIKit
import SwiftySettings

class PrecipitateSettingsViewController: SwiftySettingsViewController {
    var storage = SettingsStore()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        loadSettingsTopDown()
    }
    
    func loadSettingsTopDown() {
        /* Top Down settings */
        let us = ForecastUnits(option: ForecastUnitsOption.US)
        let si = ForecastUnits(option: ForecastUnitsOption.SI)
        let uk2 = ForecastUnits(option: ForecastUnitsOption.UK2)
        let ca = ForecastUnits(option: ForecastUnitsOption.CA)
        
        settings = SwiftySettings(storage: storage, title: "Settings") {
            [   Section(title: "Forecast API") {
                [   OptionsButton(key: "units", title: "Units") {
                    [   Option(title: "\(us.info.ticker) - \(us.info.units)", optionId: 0),
                        Option(title: "\(si.info.ticker) - \(si.info.units)", optionId: 1),
                        Option(title: "\(uk2.info.ticker) - \(uk2.info.units)", optionId: 2),
                        Option(title: "\(ca.info.ticker) - \(ca.info.units)", optionId: 3)
                        ]
                    },
                    OptionsButton(key: "lang", title: "Language") {
                    [   Option(title: "English", optionId: 0)
                        ]<commit_msg>Settings | hide unused language setting<commit_after>//
//  PrecipitateSettingsViewController.swift
//  Precipitate
//
//  Created by <NAME> on 1/26/16.
//  Copyright © 2016 markedwardmurray. All rights reserved.
//

import UIKit
import SwiftySettings

class PrecipitateSettingsViewController: SwiftySettingsViewController {
    var storage = SettingsStore()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        loadSettingsTopDown()
    }
    
    func loadSettingsTopDown() {
        /* Top Down settings */
        let us = ForecastUnits(option: ForecastUnitsOption.US)
        let si = ForecastUnits(option: ForecastUnitsOption.SI)
        let uk2 = ForecastUnits(option: ForecastUnitsOption.UK2)
        let ca = ForecastUnits(option: ForecastUnitsOption.CA)
        
        settings = SwiftySettings(storage: storage, title: "Settings") {
            [   Section(title: "Forecast API") {
                [   OptionsButton(key: "units", title: "Units") {
                    [   Option(title: "\(us.info.ticker) - \(us.info.units)", optionId: 0),
                        Option(title: "\(si.info.ticker) - \(si.info.units)", optionId: 1),
                        Option(title: "\(uk2.info.ticker) - \(uk2.info.units)", optionId: 2),
                        Option(title: "\(ca.info.ticker) - \(ca.info.units)", optionId: 3)
                        ]
//                    },
//                    OptionsButton(key: "lang", title: "Language") {
//                    [   Option(title: "English", optionId: 0)
//                        ]
{'fraction_non_alphanumeric': 0.1262853470437018, 'fraction_numerical': 0.011568123393316195, 'mean_word_length': 1.9093457943925234, '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': '5520926', 'n_tokens_mistral': 916, 'n_tokens_neox': 878, 'n_words': 186}