<commit_before>//
//  ViewController.swift
//  GridOptic
//
//  Created by <NAME> on 30/03/15.
//  Copyright (c) 2015 Echx. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

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

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        let vc: GameTestViewController = segue.destinationViewController as GameTestViewController
        if segue.identifier == "light" {
            vc.setUp(nil)
        } else if segue.identifier == "flatMirror" {
            vc.setUp(GOFlatMirrorRep(center: GOCoordinate(x: 512, y: 384), thickness: 50, length: 200, direction: CGVector(dx: 1, dy: 2), id: "flat mirror"))
        } else if segue.identifier == "flatWall" {
            vc.setUp(GOFlatWallRep(center: GOCoordinate(x: 512, y: 384), thickness: 50, length: 200, direction: CGVector(dx: 1, dy: 2), id: "flat wall"))
        } else if segue.identifier == "flatLens" {
            vc.setUp(GOFlatLensRep(center: GOCoordinate(x: 512, y: 384), thickness: 50, length: 200, direction: CGVector(dx: 1, dy: 2), refractionIndex: 0.5, id: "flat lens"))
        } else if segue.identifier == "convexLens" {
            vc.setUp(GOConvexLensRep(center: GOCoordinate(x: 512, y: 384), direction: CGVector(dx: 1, dy: 2), thickness: 50, curvatureRadius: 500, id: "convex lens"))
        } else if segue.identifier == "concaveLens" {
            vc.setUp(GOConcaveLensRep(center: GOCoordinate(x: 512, y: 384), direction: CGVector(dx: 1, dy: 2), thicknessCenter: 50, thicknessEdge: 100, curvatureRadius: 500, id: "concave lens"))
        }
    }
}
<commit_msg>adjust initial direction of the optical devices<commit_after>//
//  ViewController.swift
//  GridOptic
//
//  Created by <NAME> on 30/03/15.
//  Copyright (c) 2015 Echx. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

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

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        let vc: GameTestViewController = segue.destinationViewController as GameTestViewController
        if segue.identifier == "light" {
            vc.setUp(nil)
        } else if segue.identifier == "flatMirror" {
            vc.setUp(GOFlatMirrorRep(center: GOCoordinate(x: 512, y: 384), thickness: 50, length: 200, direction: CGVector(dx: 1, dy: 0), id: "flat mirror"))
        } else if segue.identifier == "flatWall" {
            vc.setUp(GOFlatWallRep(center: GOCoordinate(x: 512, y: 384), thickness: 50, length: 200, direction: CGVector(dx: 1, dy: 0), id: "flat wall"))
        } else if segue.identifier == "flatLens" {
            vc.setUp(GOFlatLensRep(center: GOCoordinate(x: 512, y: 384), thickness: 50, length: 200, direction: CGVector(dx: 1, dy: 0), refractionIndex: 0.5, id: "flat lens"))
        } else if segue.identifier == "convexLens" {
            vc.setUp(GOConvexLensRep(center: GOCoordinate(x: 512, y: 384), direction: CGVector(dx: 1, dy: 0), thickness: 50, curvatureRadius: 500, id: "convex lens"))
        } else if segue.identifier == "concaveLens" {
            vc.setUp(GOConcaveLensRep(center: GOCoordinate(x: 512, y: 384), direction: CGVector(dx: 1, dy: 0), thicknessCenter: 50, thicknessEdge: 100, curvatureRadius: 500, id: "concave lens"))
        }
    }
}

{'fraction_non_alphanumeric': 0.12643678160919541, 'fraction_numerical': 0.04179728317659352, 'mean_word_length': 3.2123212321232124, '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': '398348', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1188, 'n_words': 352}