<commit_before>//
//  UIScreenTests.swift
//  Dimension
//
//  Created by materik on 256/15.
//  Copyright (c) 2015 materik. All rights reserved.
//

import Dimension
import UIKit
import XCTest

class UIScreenTests: XCTestCase {

    // MARK: width
    
    func testGetWidth() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.width, mainScreen.width)
        XCTAssertEqual(mainScreen.width, 320)
        XCTAssertEqual(mainScreen.bounds.size.width, UIScreen.width)
        XCTAssertEqual(UIScreen.width, 320)
    }
    
    func testGetW() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.width, mainScreen.w)
        XCTAssertEqual(mainScreen.w, 320)
        XCTAssertEqual(mainScreen.bounds.size.width, UIScreen.w)
        XCTAssertEqual(UIScreen.w, 320)
    }

    // MARK: height
    
    func testGetHeight() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.height, mainScreen.height)
        XCTAssertEqual(mainScreen.height, 480)
        XCTAssertEqual(mainScreen.bounds.size.height, UIScreen.height)
        XCTAssertEqual(UIScreen.height, 480)
    }
    
    func testGetH() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.height, mainScreen.h)
        XCTAssertEqual(mainScreen.h, 480)
        XCTAssertEqual(mainScreen.bounds.size.height, UIScreen.h)
        XCTAssertEqual(UIScreen.h, 480)
    }

    // MARK: size

    func testGetSize() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.size, CGSize(width: 320, height: 480))
        XCTAssertEqual(UIScreen.size, CGSize(width: 320, height: 480))
    }<commit_msg>[SwiftTests] add UIScreen tests<commit_after>//
//  UIScreenTests.swift
//  Dimension
//
//  Created by materik on 256/15.
//  Copyright (c) 2015 materik. All rights reserved.
//

import Dimension
import UIKit
import XCTest

class UIScreenTests: XCTestCase {

    // MARK: width
    
    func testGetWidth() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.width, mainScreen.width)
        XCTAssertEqual(mainScreen.width, 320)
        XCTAssertEqual(mainScreen.bounds.size.width, UIScreen.width)
        XCTAssertEqual(UIScreen.width, 320)
    }
    
    func testGetW() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.width, mainScreen.w)
        XCTAssertEqual(mainScreen.w, 320)
        XCTAssertEqual(mainScreen.bounds.size.width, UIScreen.w)
        XCTAssertEqual(UIScreen.w, 320)
    }

    // MARK: height
    
    func testGetHeight() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.height, mainScreen.height)
        XCTAssertEqual(mainScreen.height, 480)
        XCTAssertEqual(mainScreen.bounds.size.height, UIScreen.height)
        XCTAssertEqual(UIScreen.height, 480)
    }
    
    func testGetH() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.bounds.size.height, mainScreen.h)
        XCTAssertEqual(mainScreen.h, 480)
        XCTAssertEqual(mainScreen.bounds.size.height, UIScreen.h)
        XCTAssertEqual(UIScreen.h, 480)
    }

    // MARK: size

    func testGetSize() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.size, CGSize(width: 320, height: 480))
        XCTAssertEqual(UIScreen.size, CGSize(width: 320, height: 480))
    }
    
    // MARK: center
    
    func testGetCenter() {
        let mainScreen = UIScreen.mainScreen()
        XCTAssertEqual(mainScreen.center, CGPoint(x: 160, y: 240))
        XCTAssertEqual(UIScreen.center, CGPoint(x: 160, y: 240))
    }
{'fraction_non_alphanumeric': 0.10463258785942492, 'fraction_numerical': 0.027156549520766772, 'mean_word_length': 2.7796780684104627, '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': '2214987', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1211, 'n_words': 214}