<commit_before>//
//  WinScene.swift
//  TIRO
//
//  Created by student on 11/16/16.
//  Copyright © 2016 swc1098. All rights reserved.
//

import Foundation
import SpriteKit
import GameplayKit

class TransScene: SKScene {
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        if(self.name == "Win"){
            GameScene.currentlevel += 1
            perform(#selector(loadLevel), with: nil, afterDelay: 0.5)
        }
        if(self.name == "Lose"){
            perform(#selector(loadLevel), with: nil, afterDelay: 0.5)
        }
        if(self.name == "Home"){
            GameScene.currentlevel = 1
            perform(#selector(loadLevel), with: nil, afterDelay: 0.5)
        }
        if(self.name == "GameOver"){
            GameScene.currentlevel = 1
            perform(#selector(loadHome), with: nil, afterDelay: 0.5)
        }
    }
    
    func loadLevel() {
        let scene = GameScene(fileNamed: "Level\(GameScene.currentlevel)")
        scene!.scaleMode = scaleMode
        view!.presentScene(scene)
    }
    
    func loadHome() {
        let scene = GameScene(fileNamed: "Home")
        scene!.scaleMode = scaleMode
        view!.presentScene(scene)
    }
}
<commit_msg>Fixed rapid tap crash<commit_after>//
//  WinScene.swift
//  TIRO
//
//  Created by student on 11/16/16.
//  Copyright © 2016 swc1098. All rights reserved.
//

import Foundation
import SpriteKit
import GameplayKit

class TransScene: SKScene {
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        if(self.name == "Win"){
            GameScene.currentlevel += 1
            perform(#selector(loadLevel), with: nil, afterDelay: 0.5)
        }
        if(self.name == "Lose"){
            perform(#selector(loadLevel), with: nil, afterDelay: 0.5)
        }
        if(self.name == "Home"){
            GameScene.currentlevel = 1
            perform(#selector(loadLevel), with: nil, afterDelay: 0.5)
        }
        if(self.name == "GameOver"){
            GameScene.currentlevel = 1
            perform(#selector(loadHome), with: nil, afterDelay: 0.5)
        }
    }
    
    func loadLevel() {
        let scene = GameScene(fileNamed: "Level\(GameScene.currentlevel)")
        scene!.scaleMode = scaleMode
        view?.presentScene(scene)
    }
    
    func loadHome() {
        let scene = GameScene(fileNamed: "Home")
        scene!.scaleMode = scaleMode
        view?.presentScene(scene)
    }
}

{'fraction_non_alphanumeric': 0.12824675324675325, 'fraction_numerical': 0.020292207792207792, 'mean_word_length': 2.176546391752577, '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': '7217352', 'n_tokens_mistral': 798, 'n_tokens_neox': 733, 'n_words': 171}