<commit_before>//
//  FlurryProvider.swift
//  Analytical
//
//  Created by <NAME> on 18/07/16.
//  Copyright © 2016 Unified Sense. All rights reserved.
//

import Flurry_iOS_SDK

public class FlurryProvider : Provider<Flurry>, Analytical {
    public static let ApiKey = "ApiKey"
    
    public var uncaughtExceptions: Bool = false {
        didSet {
            Flurry.setCrashReportingEnabled(uncaughtExceptions)
        }
    }
    
    public func setup(with properties: Properties?) {
        Flurry.startSession(properties?[FlurryProvider.ApiKey] as? String)
    }
    
    public func flush() {
    }
    
    public func reset() {
        
    }
    <commit_msg>Flurry provider initialization update<commit_after>//
//  FlurryProvider.swift
//  Analytical
//
//  Created by <NAME> on 18/07/16.
//  Copyright © 2016 Unified Sense. All rights reserved.
//

import Flurry_iOS_SDK

public class FlurryProvider : Provider<Flurry>, Analytical {
    private var key : String
    
    public static let ApiKey = "ApiKey"
    
    public var uncaughtExceptions: Bool = false {
        didSet {
            Flurry.setCrashReportingEnabled(uncaughtExceptions)
        }
    }
    
    public init (key: String) {
        self.key = key
        
        super.init()
    }
    
    public func setup(with properties: Properties?) {
        if let key = properties?[FlurryProvider.ApiKey] as? String {
            self.key = key
        }
        
        Flurry.startSession(key)
    }
    
    public func flush() {
    }
    
    public func reset() {
        
    }
    
{'fraction_non_alphanumeric': 0.09293443666454487, 'fraction_numerical': 0.012730744748567792, 'mean_word_length': 2.0114942528735633, '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': '4816162', 'n_tokens_mistral': 515, 'n_tokens_neox': 469, 'n_words': 118}