<commit_before>//
//  SelectViewController.swift
//  SwiftApp
//
//  Created by Evan on 10/28/15.
//  Copyright © 2015 none. All rights reserved.
//

import Foundation
import UIKit

class  SelectViewController: UIViewController {
    
    let width = UIScreen.mainScreen().bounds.size.width
    let height = UIScreen.mainScreen().bounds.size.height
    
    var storyURL = ""
    
    var webView = UIWebView()
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        
        NSNotificationCenter.defaultCenter().addObserver(self, selector: "rotated", name: UIDeviceOrientationDidChangeNotification, object: nil)
        
        self.view.backgroundColor = UIColor.whiteColor()
        
        webView = UIWebView(frame: CGRectMake(0, 0, width, height))
        
        let req = NSURLRequest(URL: NSURL(string: storyURL)!)
        webView.loadRequest(req)
        
        self.view.addSubview(webView)
        
    }
    
    func rotated() {
        webView.frame = CGRectMake(0, 0, UIScreen.mainScreen().bounds.size.width, UIScreen.mainScreen().bounds.size.height)
    }
    
    override func didReceiveMemoryWarning() {
        
        super.didReceiveMemoryWarning()
        
    }
    
}
<commit_msg>scalesPageToFit<commit_after>//
//  SelectViewController.swift
//  SwiftApp
//
//  Created by Evan on 10/28/15.
//  Copyright © 2015 none. All rights reserved.
//

import Foundation
import UIKit

class  SelectViewController: UIViewController {
    
    let width = UIScreen.mainScreen().bounds.size.width
    let height = UIScreen.mainScreen().bounds.size.height
    
    var storyURL = ""
    
    var webView = UIWebView()
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        
        NSNotificationCenter.defaultCenter().addObserver(self, selector: "rotated", name: UIDeviceOrientationDidChangeNotification, object: nil)
        
        self.view.backgroundColor = UIColor.whiteColor()
        
        webView = UIWebView(frame: CGRectMake(0, 0, width, height))
        webView.scalesPageToFit = true
        
        let req = NSURLRequest(URL: NSURL(string: storyURL)!)
        webView.loadRequest(req)
        
        self.view.addSubview(webView)
        
    }
    
    func rotated() {
        webView.frame = CGRectMake(0, 0, UIScreen.mainScreen().bounds.size.width, UIScreen.mainScreen().bounds.size.height)
    }
    
    override func didReceiveMemoryWarning() {
        
        super.didReceiveMemoryWarning()
        
    }
    
}

{'fraction_non_alphanumeric': 0.10234034113447045, 'fraction_numerical': 0.011106703689012296, 'mean_word_length': 2.3053735255570116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6627497', 'n_tokens_mistral': 787, 'n_tokens_neox': 740, 'n_words': 142}