<commit_before>//
//  Constants.swift
//  Pods
//
//  Created by <NAME> on 21.07.16.
//
//

import Foundation

enum HTTPMethod: String {
    case GET = "GET"
    case POST = "POST"
    case PUT = "PUT"
    case DELETE = "DELETE"
}

enum MimeType: String {
    case JSON = "application/json"
    case Multipart = "multipart/form-data"
}

enum HTTPHeaderField: String {
    case ContentType = "Content-Type"
    case Accept = "Accept"
}

struct API {
    static let BaseURL = URL(string: "https://prototyper-bruegge.in.tum.de/")
    
    struct EndPoints {
        static let Login = "login"
        static func fetchReleaseInfo(bundleId: String, bundleVersion: String) -> String {
            return "apps/find_release?bundle_id=\(bundleId)&bundle_version=\(bundleVersion)"
        }

        static func feedback(_ appId: String, releaseId: String, text: String) -> String {
            return "apps/\(appId)/releases/\(releaseId)/feedbacks?feedback[text]=\(text)"
        }
        static func share(_ appId: String, releaseId: String, sharedEmail: String, explanation: String) -> String {
            return "apps/\(appId)/releases/\(releaseId)/share_app?share_email=\(sharedEmail)&explanation=\(explanation)"
        }
    }
    
    struct DataTypes {
        struct Session {
            static let Session = "session"
            static let Email = "email"
            static let Password = "password"
        }
    }
}

struct Texts {
    struct FeedbackActionSheet {
        static let Title: String? = nil
        static let Text: String? = nil
        static let WriteFeedback = "Give feedback"
        static let ShareApp = "Share app"
        static let HideFeedbackBubble = "Hide this button"
        static let Cancel = "Cancel"
    }
    
    struct LoginAlertSheet {
        static let Title = "Send feedback anonymously?"
        static let Yes = "Yes"
        static let No = "No"
    }
    
    struct FeedbackHideAlertSheet {
        static let Title = "You can still give feedback by using a long press to show the feedback dialog."
        static let OK = "OK"
    }
}

struct UserDefaultKeys {
    static let AppId = "AppId"
    static let ReleaseId = "ReleaseId"
}
<commit_msg>change wordning when feedback button was hidden<commit_after>//
//  Constants.swift
//  Pods
//
//  Created by <NAME> on 21.07.16.
//
//

import Foundation

enum HTTPMethod: String {
    case GET = "GET"
    case POST = "POST"
    case PUT = "PUT"
    case DELETE = "DELETE"
}

enum MimeType: String {
    case JSON = "application/json"
    case Multipart = "multipart/form-data"
}

enum HTTPHeaderField: String {
    case ContentType = "Content-Type"
    case Accept = "Accept"
}

struct API {
    static let BaseURL = URL(string: "https://prototyper-bruegge.in.tum.de/")
    
    struct EndPoints {
        static let Login = "login"
        static func fetchReleaseInfo(bundleId: String, bundleVersion: String) -> String {
            return "apps/find_release?bundle_id=\(bundleId)&bundle_version=\(bundleVersion)"
        }

        static func feedback(_ appId: String, releaseId: String, text: String) -> String {
            return "apps/\(appId)/releases/\(releaseId)/feedbacks?feedback[text]=\(text)"
        }
        static func share(_ appId: String, releaseId: String, sharedEmail: String, explanation: String) -> String {
            return "apps/\(appId)/releases/\(releaseId)/share_app?share_email=\(sharedEmail)&explanation=\(explanation)"
        }
    }
    
    struct DataTypes {
        struct Session {
            static let Session = "session"
            static let Email = "email"
            static let Password = "password"
        }
    }
}

struct Texts {
    struct FeedbackActionSheet {
        static let Title: String? = nil
        static let Text: String? = nil
        static let WriteFeedback = "Give feedback"
        static let ShareApp = "Share app"
        static let HideFeedbackBubble = "Hide this button"
        static let Cancel = "Cancel"
    }
    
    struct LoginAlertSheet {
        static let Title = "Send feedback anonymously?"
        static let Yes = "Yes"
        static let No = "No"
    }
    
    struct FeedbackHideAlertSheet {
        static let Title = "To unhide the feedback button just close and open the app again."
        static let OK = "OK"
    }
}

struct UserDefaultKeys {
    static let AppId = "AppId"
    static let ReleaseId = "ReleaseId"
}

{'fraction_non_alphanumeric': 0.10492989597467209, 'fraction_numerical': 0.0027137042062415195, 'mean_word_length': 2.371189024390244, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '4918623', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1273, 'n_words': 385}