<commit_before>//
//  TraktManager.swift
//  TVShows
//
//  Created by <NAME> on 2/4/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import UIKit

public enum searchType: String {
    case Movie = "movie"
    case Show = "show"
    case Episode = "episode"
    case Person = "person"
    case List = "list"
}

public enum watchedType: String {
    case Movies = "movies"
    case Shows = "shows"
    case Episodes = "episodes"
}

public enum extendedType: String {
    case Min = "min"
    case Images = "images"
    case Full = "full"
    case FullAndImages = "full,images"
    case Metadata = "metadata"
    case Episodes = "episodes" // For getting all seasons and episodes
    case FullAndEpisodes = "full,episodes"
}

public enum statusCodes: Int {
    case success = 200
    case successNewResourceCreated = 201
    case successNoContentToReturn = 204
    case badRequestion = 400
    case unauthorized = 401
    case forbidden = 403
    case notFound = 404
    case methodNotFound = 405
    case conflict = 409
    case preconditionFailed = 412
    case unprocessableEntity = 422
    case rateLimitExceeded = 429
    case serverError = 500
    case serviceOverloaded = 503
    case cloudflareError = 520
    case cloudflareError2 = 521
    case cloudflareError3 = 522
}

public class TraktManager {
    
    // MARK: Internal
    let clientID = "XXXXX"
    let clientSecret = "YYYYY"
    let callbackURL = "ZZZZZ"
    
    // Keys
    let accessTokenKey = "accessToken"<commit_msg>- Localize entire app<commit_after>//
//  TraktManager.swift
//  TVShows
//
//  Created by <NAME> on 2/4/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import UIKit

public enum searchType: String {
    case Movie = "movie"
    case Show = "show"
    case Episode = "episode"
    case Person = "person"
    case List = "list"
}

public enum watchedType: String {
    case Movies = "movies"
    case Shows = "shows"
    case Episodes = "episodes"
}

public enum extendedType: String {
    case Min = "min"
    case Images = "images"
    case Full = "full"
    case FullAndImages = "full,images"
    case Metadata = "metadata"
    case Episodes = "episodes" // For getting all seasons and episodes
    case FullAndEpisodes = "full,episodes"
}
// TODO: Make a struct
public enum statusCodes: Int {
    case success = 200
    case successNewResourceCreated = 201
    case successNoContentToReturn = 204
    case badRequestion = 400
    case unauthorized = 401
    case forbidden = 403
    case notFound = 404
    case methodNotFound = 405
    case conflict = 409
    case preconditionFailed = 412
    case unprocessableEntity = 422
    case rateLimitExceeded = 429
    case serverError = 500
    case serviceOverloaded = 503
    case cloudflareError = 520
    case cloudflareError2 = 521
    case cloudflareError3 = 522
}

public class TraktManager {
    
    // MARK: Internal
    let clientID = "XXXXX"
    let clientSecret = "YYYYY"
    let callbackURL = "ZZZZZ"
    
    // Keys
    let accessTokenKey = "accessToken"
{'fraction_non_alphanumeric': 0.08284409654272668, 'fraction_numerical': 0.03979125896934116, 'mean_word_length': 2.726609963547995, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5366037', 'n_tokens_mistral': 1065, 'n_tokens_neox': 929, 'n_words': 316}