<commit_before>//
//  ViewController.swift
//  SuperMock
//
//  Created by <NAME> on 11/02/2015.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit

class ViewController: UIViewController, UIWebViewDelegate {

    @IBOutlet weak var webView: UIWebView!
    
    let urlSession = NSURLSession.sharedSession()
    lazy var urlCustomSession : NSURLSession = {
        let sessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration()
        
        // This is the key for custom configuration, add the protocols
        sessionConfiguration.addProtocols()
        return NSURLSession(configuration: sessionConfiguration)
    }()

    @IBOutlet weak var testableButtonOne: UIButton!    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        updateButtonTitles()
    }
    
    @IBAction func performRealRequest(sender: AnyObject) {
        
        let realURL = NSURL(string: "http://apple.com/")!
        let requestToMock = NSURLRequest(URL: realURL)<commit_msg>update request with different url<commit_after>//
//  ViewController.swift
//  SuperMock
//
//  Created by <NAME> on 11/02/2015.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit

class ViewController: UIViewController, UIWebViewDelegate {

    @IBOutlet weak var webView: UIWebView!
    
    let urlSession = NSURLSession.sharedSession()
    lazy var urlCustomSession : NSURLSession = {
        let sessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration()
        
        // This is the key for custom configuration, add the protocols
        sessionConfiguration.addProtocols()
        return NSURLSession(configuration: sessionConfiguration)
    }()

    @IBOutlet weak var testableButtonOne: UIButton!    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        updateButtonTitles()
    }
    
    @IBAction func performRealRequest(sender: AnyObject) {
        
        let realURL = NSURL(string: "https://developer.apple.com")!
        let requestToMock = NSURLRequest(URL: realURL)
{'fraction_non_alphanumeric': 0.087248322147651, 'fraction_numerical': 0.011505273250239693, 'mean_word_length': 2.8293577981651374, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '4250648', 'n_tokens_mistral': 593, 'n_tokens_neox': 568, 'n_words': 147}