<commit_before>//
//  DataManager.swift
//  Spendy
//
//  Created by <NAME> on 9/22/15.
//  Copyright (c) 2015 Cheetah. All rights reserved.
//

import Foundation
import Parse

class DataManager {
    static let version = "1.2"

    class func setupDefaultData(removeLocalData: Bool = false) {
        if removeLocalData {
            print("\n**Remove all local data**\n")
            // There is a bug with Parse right now and this doesn't not run successfully in Swift 2
            // TODO: update to the latest Parse
            try! PFObject.unpinAllObjects()
        }

        if removeLocalData || User.isDataVersionOutOfDate() {
            print("Data not up to date. Loading from remote")
            Category.loadAllFrom(local: false)
            Account.loadAllFrom(local: false)
<commit_msg>update DataManager.version<commit_after>//
//  DataManager.swift
//  Spendy
//
//  Created by <NAME> on 9/22/15.
//  Copyright (c) 2015 Cheetah. All rights reserved.
//

import Foundation
import Parse

class DataManager {
    static let version = "1.3"

    class func setupDefaultData(removeLocalData: Bool = false) {
        if removeLocalData {
            print("\n**Remove all local data**\n")
            // There is a bug with Parse right now and this doesn't not run successfully in Swift 2
            // TODO: update to the latest Parse
            try! PFObject.unpinAllObjects()
        }

        if removeLocalData || User.isDataVersionOutOfDate() {
            print("Data not up to date. Loading from remote")
            Category.loadAllFrom(local: false)
            Account.loadAllFrom(local: false)

{'fraction_non_alphanumeric': 0.09661538461538462, 'fraction_numerical': 0.014769230769230769, 'mean_word_length': 2.258517034068136, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4858035', 'n_tokens_mistral': 479, 'n_tokens_neox': 444, 'n_words': 153}