<commit_before>//
//  SimulatorController.swift
//  SimulatorController
//
//  Created by <NAME> on 5/03/2016.
//

import Foundation
import FBSimulatorControl
import AppKit

enum Simulator: String
{
    case iPhone4s = "iPhone 4s"
    case iPhone5 = "iPhone 5"
    case iPhone5s = "iPhone 5s"
    case iPhone6 = "iPhone 6"
    case iPhone6Plus = "iPhone 6 Plus"
    case iPhone6s = "iPhone 6s"
    case iPhone6sPlus = "iPhone 6s Plus"
    case iPad2 = "iPad 2"
    case iPadAir = "iPad Air"
    case iPadAir2 = "iPad Air 2"
    case iPadPro = "iPad Pro"
    case iPadRetina = "iPad Retina"
}

enum SimulatorState
{
    case Ready
    case Booted
}

class SimulatorController
{
    static let availableSimulators: [Simulator] = [
        .iPhone4s,
        .iPhone5,
        .iPhone5s,
        .iPhone6,
        .iPhone6Plus,
        .iPhone6s,
        .iPhone6sPlus,
        .iPad2,
        .iPadAir,
        .iPadAir2,
        .iPadPro,
        .iPadRetina
    ]
    
    private static let simulatorMap: [Simulator: FBSimulatorConfiguration] = [
        .iPhone4s: FBSimulatorConfiguration.iPhone4s(),
        .iPhone5: FBSimulatorConfiguration.iPhone5(),
        .iPhone5s: FBSimulatorConfiguration.iPhone5s(),
        .iPhone6: FBSimulatorConfiguration.iPhone6(),
        .iPhone6Plus: FBSimulatorConfiguration.iPhone6Plus(),
        .iPhone6s: FBSimulatorConfiguration.iPhone6s(),
        .iPhone6sPlus: FBSimulatorConfiguration.iPhone6sPlus(),
        .iPad2: FBSimulatorConfiguration.iPad2(),
        .iPadAir: FBSimulatorConfiguration.iPadAir(),<commit_msg>Add iPhone SE, 7 and 7 Plus simulator support<commit_after>//
//  SimulatorController.swift
//  SimulatorController
//
//  Created by <NAME> on 5/03/2016.
//

import Foundation
import FBSimulatorControl
import AppKit

enum Simulator: String
{
    case iPhone4s = "iPhone 4s"
    case iPhone5 = "iPhone 5"
    case iPhone5s = "iPhone 5s"
    case iPhone6 = "iPhone 6"
    case iPhone6Plus = "iPhone 6 Plus"
    case iPhone6s = "iPhone 6s"
    case iPhone6sPlus = "iPhone 6s Plus"
    case iPhoneSE = "iPhone SE"
    case iPhone7 = "iPhone 7"
    case iPhone7Plus = "iPhone 7 Plus"
    case iPad2 = "iPad 2"
    case iPadAir = "iPad Air"
    case iPadAir2 = "iPad Air 2"
    case iPadPro = "iPad Pro"
    case iPadRetina = "iPad Retina"
}

enum SimulatorState
{
    case Ready
    case Booted
}

class SimulatorController
{
    static let availableSimulators: [Simulator] = [
        .iPhone4s,
        .iPhone5,
        .iPhone5s,
        .iPhone6,
        .iPhone6Plus,
        .iPhone6s,
        .iPhone6sPlus,
        .iPhoneSE,
        .iPhone7,
        .iPhone7Plus,
        .iPad2,
        .iPadAir,
        .iPadAir2,
        .iPadPro,
        .iPadRetina
    ]
    
    private static let simulatorMap: [Simulator: FBSimulatorConfiguration] = [
        .iPhone4s: FBSimulatorConfiguration.iPhone4s(),
        .iPhone5: FBSimulatorConfiguration.iPhone5(),
        .iPhone5s: FBSimulatorConfiguration.iPhone5s(),
        .iPhone6: FBSimulatorConfiguration.iPhone6(),
        .iPhone6Plus: FBSimulatorConfiguration.iPhone6Plus(),
        .iPhone6s: FBSimulatorConfiguration.iPhone6s(),
        .iPhone6sPlus: FBSimulatorConfiguration.iPhone6sPlus(),
        .iPhoneSE: FBSimulatorConfiguration.iPhoneSE(),
        .iPhone7: FBSimulatorConfiguration.iPhone7(),
        .iPhone7Plus: FBSimulatorConfiguration.iPhone7Plus(),
        .iPad2: FBSimulatorConfiguration.iPad2(),
        .iPadAir: FBSimulatorConfiguration.iPadAir(),
{'fraction_non_alphanumeric': 0.09673726388093876, 'fraction_numerical': 0.03205495134516314, 'mean_word_length': 2.5846153846153848, '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': '3216359', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1102, 'n_words': 261}