<commit_before>//
//  KaleidoViewController.swift
//  KaleidoTab
//
//  Created by <NAME> on 4/11/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit

class KaleidoViewController: UIViewController {
    
    var isPaused = false
    
    override func viewDidLoad() {
        super.viewDidLoad()
        let view = self.view as! KaleidoView
        view.startDrawing()
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    override var prefersStatusBarHidden: Bool {
        return true
    }
    
    @IBAction func handleTouch(_ sender: UITapGestureRecognizer) {
        let view = self.view as! KaleidoView
        if(isPaused) {
            view.startDrawing()
            isPaused = false
        }
        else {
            view.stopDrawing()
            isPaused = true
        }
    }
    
    @IBAction func handleDoubleTouch(_ sender: UITapGestureRecognizer) {
        let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
        let resultViewController = storyBoard.instantiateViewController(withIdentifier: "ConfigViewController") as! ConfigViewController
        self.navigationController?.pushViewController(resultViewController, animated: true)
    }
    
}<commit_msg>settings persist<commit_after>//
//  KaleidoViewController.swift
//  KaleidoTab
//
//  Created by <NAME> on 4/11/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit

class KaleidoViewController: UIViewController {
    
    var isPaused = false
    var configViewContoller : ConfigViewController?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
        configViewContoller = storyBoard.instantiateViewController(withIdentifier: "ConfigViewController") as! ConfigViewController
        
        let view = self.view as! KaleidoView
        view.startDrawing()
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    override var prefersStatusBarHidden: Bool {
        return true
    }
    
    @IBAction func handleTouch(_ sender: UITapGestureRecognizer) {
        let view = self.view as! KaleidoView
        if(isPaused) {
            view.startDrawing()
            isPaused = false
        }
        else {
            view.stopDrawing()
            isPaused = true
        }
    }
    
    @IBAction func handleDoubleTouch(_ sender: UITapGestureRecognizer) {
        self.navigationController?.pushViewController(configViewContoller!, animated: true)
    }
    
}
{'fraction_non_alphanumeric': 0.08326996197718631, 'fraction_numerical': 0.006844106463878327, 'mean_word_length': 2.3687580025608193, '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': '5831625', 'n_tokens_mistral': 788, 'n_tokens_neox': 717, 'n_words': 165}