<commit_before>//
//  VisualSustainViewController.swift
//  ECAB
//
//  Created by <NAME> on 02/07/2015.
//  Copyright (c) 2015 <NAME> and <NAME>. All rights reserved.
//

import UIKit

class VisualSustainViewController: CounterpointingViewController {
	
	private var screenCountSinceAnimalAppeared = 0.0
	private var timer = NSTimer()
	private var blank = 0.2
	private var exposure = 1.8
	private var mistakeCounter = 0
	private var gameStarted = false
	private var index = 0
	private var testItem = UIImageView(image: UIImage(named: "white_rect"))
	private var stopwatch = NSTimer()
	private let stopwatchScale = 0.1
	private var stopwatchStartDate = NSDate()
	private var resetTimerValue = 0.0
	
	let attentionLabelTag = 1
	let secondsAttentionLabelRemainingOnScreen = 3.0

    override func viewDidLoad() {
		sessionType = 2
		greeingMessage = "Practice 1. Ready..."
        super.viewDidLoad()
		
		testItem.frame = CGRectMake(0, 0, testItem.frame.size.width * 2, testItem.frame.size.height * 2)
		testItem.center = view.center;
		exposure = model.data.visSustSpeed.doubleValue // Default
		blank = 0 // TODO
		session.speed = blank
		session.vsustBlank = blank
		
		resetTimerValue = Double(model.data.visSustAcceptedDelay!) + 1
		screenCountSinceAnimalAppeared = resetTimerValue
	}
	
	struct Constants {
		static let kTolerateMistakes = 3
	}
	
	enum Picture: String {
		case Empty = "white_rect"
		case Bed = "bed_inverse"
		case Ball = "ball"
		case Bike = "bike_inverse"
		case Boat = "boat_inverse"<commit_msg>In progress<commit_after>//
//  VisualSustainViewController.swift
//  ECAB
//
//  Created by <NAME> on 02/07/2015.
//  Copyright (c) 2015 <NAME> and <NAME>. All rights reserved.
//

import UIKit

class VisualSustainViewController: CounterpointingViewController {
	
	private var screenCountSinceAnimalAppeared = 0.0
	private var timer = NSTimer()
	private var blank = 0.2
	private var exposure = 1.8
	private var mistakeCounter = 0
	private var gameStarted = false
	private var index = 0
	private var testItem = UIImageView(image: UIImage(named: "white_rect"))
	private var stopwatch = NSTimer()
	private let stopwatchScale = 0.1
	private var stopwatchStartDate = NSDate()
	private var resetTimerValue = 0.0
	
	let attentionLabelTag = 1
	let secondsAttentionLabelRemainingOnScreen = 3.0

    override func viewDidLoad() {
		sessionType = 2
		greeingMessage = "Practice 1. Ready..."
        super.viewDidLoad()
		
		testItem.frame = CGRectMake(0, 0, testItem.frame.size.width * 2, testItem.frame.size.height * 2)
		testItem.center = view.center;
		exposure = model.data.visSustSpeed.doubleValue // Default
		blank = model.data.visSustDelay.doubleValue
		session.speed = exposure
		session.vsustBlank = blank
		
		resetTimerValue = Double(model.data.visSustAcceptedDelay!) + 1
		screenCountSinceAnimalAppeared = resetTimerValue
	}
	
	struct Constants {
		static let kTolerateMistakes = 3
	}
	
	enum Picture: String {
		case Empty = "white_rect"
		case Bed = "bed_inverse"
		case Ball = "ball"
		case Bike = "bike_inverse"
		case Boat = "boat_inverse"
{'fraction_non_alphanumeric': 0.09292468209977177, 'fraction_numerical': 0.023149657645908053, 'mean_word_length': 3.8467614533965246, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3816383', 'n_tokens_mistral': 1113, 'n_tokens_neox': 963, 'n_words': 271}