<commit_before>//
//  UIViewControllers+.swift
//  BlackNectar
//
//  Created by <NAME> on 2/6/17.
//  Copyright © 2017 BlackSource. All rights reserved.
//

import Archeota
import AromaSwiftClient
import Foundation
import NVActivityIndicatorView
import UIKit

extension UIViewController {
    
    func startSpinningIndicator() {
        
        UIApplication.shared.isNetworkActivityIndicatorVisible = true
        
    }
    
    func stopSpinningIndicator() {
        
        UIApplication.shared.isNetworkActivityIndicatorVisible = false
        
    }
    
    func hideNavigationBar() {
        guard let nav = self.navigationController?.navigationBar else { return }
        
        nav.isTranslucent = true
        nav.setBackgroundImage(UIImage(), for: .default)
        nav.shadowImage = UIImage()
        nav.backgroundColor = UIColor.clear
    }
    
    func showNavigationBar() {
        guard let nav = self.navigationController?.navigationBar else { return }
        nav.isTranslucent = false
    }
    
}


<commit_msg>Adds NVActivityIndicator methods<commit_after>//
//  UIViewControllers+.swift
//  BlackNectar
//
//  Created by <NAME> on 2/6/17.
//  Copyright © 2017 BlackSource. All rights reserved.
//

import Archeota
import AromaSwiftClient
import Foundation
import NVActivityIndicatorView
import UIKit

extension UIViewController {
    
    func startSpinningIndicator() {
        
        UIApplication.shared.isNetworkActivityIndicatorVisible = true
        
    }
    
    func stopSpinningIndicator() {
        
        UIApplication.shared.isNetworkActivityIndicatorVisible = false
        
    }
    
    func startSpinningNVActivityIndicator() {
        
        let activityData = ActivityData()
        NVActivityIndicatorPresenter.sharedInstance.startAnimating(activityData)
        
    }
    
    func stopSpinningNVActivityIndicator() {
        
        NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
    }
    
    func hideNavigationBar() {
        guard let nav = self.navigationController?.navigationBar else { return }
        
        nav.isTranslucent = true
        nav.setBackgroundImage(UIImage(), for: .default)
        nav.shadowImage = UIImage()
        nav.backgroundColor = UIColor.clear
    }
    
    func showNavigationBar() {
        guard let nav = self.navigationController?.navigationBar else { return }
        nav.isTranslucent = false
    }
    
}



{'fraction_non_alphanumeric': 0.07530864197530865, 'fraction_numerical': 0.006584362139917695, 'mean_word_length': 2.414325842696629, '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': '4547661', 'n_tokens_mistral': 670, 'n_tokens_neox': 657, 'n_words': 135}