<commit_before>//
//  OlympicsInfoViewController.swift
//  GameOfGames
//
//  Created by <NAME> on 6/21/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class OlympicsInfoViewController: UIViewController
{

    @IBOutlet weak var infoTextView: UITextView!
    
    let game:Game = Game.getInstance()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let path = NSBundle.mainBundle().pathForResource("GoGOlympicsRules", ofType: "txt");
        
        do
        {
            infoTextView.text = try NSString(contentsOfURL: NSURL(fileURLWithPath: path!), encoding: NSUTF8StringEncoding) as String
        }
        catch {}
        
        //i'm not sure why i need to put this here, but it doesn't work if its on the storyboard
        infoTextView.font = UIFont(name: "JosefinSans", size: 20)
        infoTextView.textColor = UIColor.whiteColor();
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}<commit_msg>forgot to put the gradient in the background of the olympics info<commit_after>//
//  OlympicsInfoViewController.swift
//  GameOfGames
//
//  Created by <NAME> on 6/21/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class OlympicsInfoViewController: UIViewController
{

    @IBOutlet weak var infoTextView: UITextView!
    
    let game:Game = Game.getInstance()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let path = NSBundle.mainBundle().pathForResource("GoGOlympicsRules", ofType: "txt");
        
        do
        {
            infoTextView.text = try NSString(contentsOfURL: NSURL(fileURLWithPath: path!), encoding: NSUTF8StringEncoding) as String
        }
        catch {}
        
        //i'm not sure why i need to put this here, but it doesn't work if its on the storyboard
        infoTextView.font = UIFont(name: "JosefinSans", size: 20)
        infoTextView.textColor = UIColor.whiteColor();
        
        
        self.view.layer.insertSublayer(UIHelper.getBackgroundGradient(), atIndex: 0)
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
{'fraction_non_alphanumeric': 0.088301643570738, 'fraction_numerical': 0.008056719303899453, 'mean_word_length': 2.4374307862679956, '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': '923402', 'n_tokens_mistral': 898, 'n_tokens_neox': 842, 'n_words': 264}