<commit_before>//
//  Eatery.swift
//  Eatery
//
//  Created by <NAME> on 10/4/15.
//  Copyright © 2015 CUAppDev. All rights reserved.
//

import UIKit
import SwiftyJSON
import CoreLocation

/**
 Assorted types of payment accepted by an Eatery
 
 - BRB:         Big Red Bucks
 - Swipes:      Meal Swipes
 - Cash:        USD
 - CornellCard: CornellCard
 - CreditCard:  Major Credit Cards
 - NFC:         Mobile Payments
 - Other:       Unknown
 */
public enum PaymentType: String {
    case BRB         = "Meal Plan - Debit"
    case Swipes      = "Meal Plan - Swipe"
    case Cash        = "Cash"
    case CornellCard = "Cornell Card"
    case CreditCard  = "Major Credit Cards"
    case NFC         = "Mobile Payments"
    case Other       = ""
}

/**
 Different types of eateries on campus
 
 - Unknown:          Unknown
 - Dining:           All You Care to Eat Dining Halls
 - Cafe:             Cafes
 - Cart:             Carts + Food Trucks
 - FoodCourt:        Food Courts (Variety of Food Selections)
 - ConvenienceStore: Convenience Stores
 - CoffeeShop:       Coffee Shops + Some Food
 */
public enum EateryType: String {
    case Unknown          = ""
    case Dining           = "all you care to eat"
    case Cafe             = "cafe"
    case Cart             = "cart"
    case FoodCourt        = "food court"
    case ConvenienceStore = "convenience store"
    case CoffeeShop       = "coffee shop"
}

/**
 Represents a location on Cornell Campus
 
 - Unknown: Unknown
 - West:    West Campus
 - North:   North Campus
 - Central: Central Campus
 */
public enum Area: String {
    case Unknown = ""
    case West    = "West"
    case North   = "North"
    case Central = "Central"
}

private func makeFormatter () -> NSDateFormatter {
    let formatter = NSDateFormatter()
    formatter.dateFormat = "YYYY-MM-dd"
    return formatter
}

/// Represents a Cornell Dining Facility and information about it
/// such as open times, menus, location, etc.
public class Eatery: NSObject {
    private static let dateFormatter = makeFormatter()
    <commit_msg>Add bakery type to eateryType<commit_after>//
//  Eatery.swift
//  Eatery
//
//  Created by <NAME> on 10/4/15.
//  Copyright © 2015 CUAppDev. All rights reserved.
//

import UIKit
import SwiftyJSON
import CoreLocation

/**
 Assorted types of payment accepted by an Eatery
 
 - BRB:         Big Red Bucks
 - Swipes:      Meal Swipes
 - Cash:        USD
 - CornellCard: CornellCard
 - CreditCard:  Major Credit Cards
 - NFC:         Mobile Payments
 - Other:       Unknown
 */
public enum PaymentType: String {
    case BRB         = "Meal Plan - Debit"
    case Swipes      = "Meal Plan - Swipe"
    case Cash        = "Cash"
    case CornellCard = "Cornell Card"
    case CreditCard  = "Major Credit Cards"
    case NFC         = "Mobile Payments"
    case Other       = ""
}

/**
 Different types of eateries on campus
 
 - Unknown:          Unknown
 - Dining:           All You Care to Eat Dining Halls
 - Cafe:             Cafes
 - Cart:             Carts + Food Trucks
 - FoodCourt:        Food Courts (Variety of Food Selections)
 - ConvenienceStore: Convenience Stores
 - CoffeeShop:       Coffee Shops + Some Food
 */
public enum EateryType: String {
    case Unknown          = ""
    case Dining           = "all you care to eat"
    case Cafe             = "cafe"
    case Cart             = "cart"
    case FoodCourt        = "food court"
    case ConvenienceStore = "convenience store"
    case CoffeeShop       = "coffee shop"
    case Bakery           = "bakery"
}

/**
 Represents a location on Cornell Campus
 
 - Unknown: Unknown
 - West:    West Campus
 - North:   North Campus
 - Central: Central Campus
 */
public enum Area: String {
    case Unknown = ""
    case West    = "West"
    case North   = "North"
    case Central = "Central"
}

private func makeFormatter () -> NSDateFormatter {
    let formatter = NSDateFormatter()
    formatter.dateFormat = "YYYY-MM-dd"
    return formatter
}

/// Represents a Cornell Dining Facility and information about it
/// such as open times, menus, location, etc.
public class Eatery: NSObject {
    private static let dateFormatter = makeFormatter()
    
{'fraction_non_alphanumeric': 0.08490791676632385, 'fraction_numerical': 0.004305190145898111, 'mean_word_length': 2.0727406318883173, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2324930', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1206, 'n_words': 441}