<commit_before>//
//  ExternalUrl.swift
//  sweettrex
//
//  Created by <NAME> on 23/9/17.
//
//

import Foundation

enum ExternalUrl {
    
    case market
    case ticker(Market)
    
    private static let bittrexBaseUrl = "https://bittrex.com/api/v1.1/public"
    
    var url: URL {
        
        switch self {
            
        case .market:
            
            return URL(string: ExternalUrl.bittrexBaseUrl + "/getmarkets")!
            
        case .ticker(let market):
            
            return URL(string: ExternalUrl.bittrexBaseUrl + "/public/getticker?market=" + market.name)!
        }
    }
}<commit_msg>Fix ticker url<commit_after>//
//  ExternalUrl.swift
//  sweettrex
//
//  Created by <NAME> on 23/9/17.
//
//

import Foundation

enum ExternalUrl {
    
    case market
    case ticker(Market)
    
    private static let bittrexBaseUrl = "https://bittrex.com/api/v1.1/public"
    
    var url: URL {
        
        switch self {
            
        case .market:
            
            return URL(string: ExternalUrl.bittrexBaseUrl + "/getmarkets")!
            
        case .ticker(let market):
            
            return URL(string: ExternalUrl.bittrexBaseUrl + "/getticker?market=" + market.name)!
        }
    }
}
{'fraction_non_alphanumeric': 0.11295418641390205, 'fraction_numerical': 0.011058451816745656, 'mean_word_length': 1.5752032520325203, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2475743', 'n_tokens_mistral': 428, 'n_tokens_neox': 392, 'n_words': 82}