<commit_before>//
//  PermissionScope.swift
//  PermissionScope
//
//  Created by <NAME> on 4/5/15.
//  Copyright (c) 2015 That Thing in Swift. All rights reserved.
//

import UIKit
import CoreLocation
import AddressBook
import AVFoundation
import Photos
import EventKit
import CoreBluetooth

struct PermissionScopeConstants {
    static let requestedInUseToAlwaysUpgrade = "requestedInUseToAlwaysUpgrade"
    static let requestedForBluetooth = "askedForBluetooth"
}

@objc public enum PermissionType: Int {
    case Contacts, LocationAlways, LocationInUse, Notifications, Microphone, Camera, Photos, Reminders, Events, Bluetooth
    
    func stringValue() -> String {
        switch self {
        case .Contacts: return "Contacts"
        case .Events: return "Events"
        case .LocationAlways: return "LocationAlways"
        case .LocationInUse: return "LocationInUse"
        case .Notifications: return "Notifications"
        case .Microphone: return "Microphone"
        case .Camera: return "Camera"
        case .Photos: return "Photos"
        case .Reminders: return "Reminders"
        case .Bluetooth: return "Bluetooth"
        }
    }
    
    func prettyName() -> String {<commit_msg>String values for types should be public.<commit_after>//
//  PermissionScope.swift
//  PermissionScope
//
//  Created by <NAME> on 4/5/15.
//  Copyright (c) 2015 That Thing in Swift. All rights reserved.
//

import UIKit
import CoreLocation
import AddressBook
import AVFoundation
import Photos
import EventKit
import CoreBluetooth

struct PermissionScopeConstants {
    static let requestedInUseToAlwaysUpgrade = "requestedInUseToAlwaysUpgrade"
    static let requestedForBluetooth = "askedForBluetooth"
}

@objc public enum PermissionType: Int {
    case Contacts, LocationAlways, LocationInUse, Notifications, Microphone, Camera, Photos, Reminders, Events, Bluetooth
    
    public func stringValue() -> String {
        switch self {
        case .Contacts: return "Contacts"
        case .Events: return "Events"
        case .LocationAlways: return "LocationAlways"
        case .LocationInUse: return "LocationInUse"
        case .Notifications: return "Notifications"
        case .Microphone: return "Microphone"
        case .Camera: return "Camera"
        case .Photos: return "Photos"
        case .Reminders: return "Reminders"
        case .Bluetooth: return "Bluetooth"
        }
    }
    
    public func prettyName() -> String {
{'fraction_non_alphanumeric': 0.08190709046454768, 'fraction_numerical': 0.006519967400162999, 'mean_word_length': 3.132996632996633, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7541347', 'n_tokens_mistral': 711, 'n_tokens_neox': 660, 'n_words': 220}