<commit_before>//
//  String+Helpers.swift
//
//  Created by <NAME> on 6/17/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation

extension String {
    
    /** Returns first char */
    var first: String { return String(self.characters.prefix(1)) }
    
    /** Returns last char */
    var last: String { return String(self.characters.suffix(1)) }
    
    /** Returns localizedUppercaseString for iOS 9+ or uppercaseString for below */
    public var up: String {
        if #available(iOS 9, *) {
            return self.localizedUppercaseString
        }
        return self.uppercaseString
    }
    
    /** Returns localizedLowercaseString for iOS 9+ or lowercaseString for below */
    public var down: String {
        if #available(iOS 9, *) {
            return self.localizedLowercaseString
        }
        return self.lowercaseString<commit_msg>Publics for first & last<commit_after>//
//  String+Helpers.swift
//
//  Created by <NAME> on 6/17/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation

extension String {
    
    /** Returns first char */
    public var first: String { return String(self.characters.prefix(1)) }
    
    /** Returns last char */
    public var last: String { return String(self.characters.suffix(1)) }
    
    /** Returns localizedUppercaseString for iOS 9+ or uppercaseString for below */
    public var up: String {
        if #available(iOS 9, *) {
            return self.localizedUppercaseString
        }
        return self.uppercaseString
    }
    
    /** Returns localizedLowercaseString for iOS 9+ or lowercaseString for below */
    public var down: String {
        if #available(iOS 9, *) {
            return self.localizedLowercaseString
        }
        return self.lowercaseString
{'fraction_non_alphanumeric': 0.1028349082823791, 'fraction_numerical': 0.016675931072818232, 'mean_word_length': 2.3271719038817005, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7461634', 'n_tokens_mistral': 528, 'n_tokens_neox': 499, 'n_words': 152}