<commit_before>//
//  Importer.swift
//  MBAssetsImporter
//
//  Created by <NAME> on 7/28/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

protocol ImporterDelegate : NSObjectProtocol{
    func onError(error:NSError)
    func onStart()
    func onFinish()
    func onProgress(progress:Float, filename:String)
}

class Importer {
    
    init() {
        delegate = nil
    }
    
    func start(){
        preconditionFailure("This method must be overridden")
    }
    
    func cancel(){
        shouldContinue = false
    }
    
    weak var delegate:ImporterDelegate?
    
    // MARK: Properties
    
    var shouldContinue: Bool = true
}<commit_msg>refactor code<commit_after>//
//  Importer.swift
//  MBAssetsImporter
//
//  Created by <NAME> on 7/28/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

protocol ImporterDelegate : NSObjectProtocol{
    func onError(error:NSError)
    func onStart()
    func onFinish()
    func onProgress(progress:Float, filename:String)
}

class Importer {
    
    // MARK: Properties
    
    weak var delegate:ImporterDelegate?
    var shouldContinue: Bool = true
    
    init() {
        delegate = nil
    }
    
    func start(){
        preconditionFailure("This method must be overridden")
    }
    
    func cancel(){
        shouldContinue = false
    }
}
{'fraction_non_alphanumeric': 0.10256410256410256, 'fraction_numerical': 0.013186813186813187, 'mean_word_length': 2.3398533007334965, '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': '5425766', 'n_tokens_mistral': 439, 'n_tokens_neox': 409, 'n_words': 109}