<commit_before>//
//  SampleTests.swift
//  SampleTests
//
//  Created by tichise on 2015年5月10日 15/05/10.
//  Copyright (c) 2015年 tichise. All rights reserved.
//

import UIKit
import XCTest
import MaterialDesignSymbol

class SampleTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
    }
    
    override func tearDown() {
        super.tearDown()
    }
    
    func testImage() {
        
        let symbol:MaterialDesignSymbol = MaterialDesignSymbol(text:MaterialDesignIcon.list48px as NSString, size:25)
        symbol.addAttribute(attributeName: NSForegroundColorAttributeName, value: UIColor.red)
        let iconImage:UIImage = symbol.image(size:CGSize(width: 25, height: 25)
        
        XCTAssertTrue(iconImage.size.width > 0 && iconImage.size.height > 0)
    }
    
    func testFont() {
        let titleLabel:UILabel = UILabel.init()
        titleLabel.font = MaterialDesignFont.fontOfSize(20)
        titleLabel.text = MaterialDesignIcon.list48px
        
        XCTAssertEqual(titleLabel.text?.characters.count, 1)
    }
    
}
<commit_msg>fix to swift4 format<commit_after>//
//  SampleTests.swift
//  SampleTests
//
//  Created by tichise on 2015年5月10日 15/05/10.
//  Copyright (c) 2015年 tichise. All rights reserved.
//

import UIKit
import XCTest
import MaterialDesignSymbol

class SampleTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
    }
    
    override func tearDown() {
        super.tearDown()
    }
    
    func testImage() {
        
        let symbol:MaterialDesignSymbol = MaterialDesignSymbol(text:(MaterialDesignIcon.list48px as NSString) as String, size:25)
        symbol.addAttribute(attributeName: NSAttributedStringKey.foregroundColor, value: UIColor.red)
        let iconImage:UIImage = symbol.image(size:CGSize(width: 25, height: 25),
        
        XCTAssertTrue(iconImage.size.width > 0)
        XCTAssertTrue(iconImage.size.height > 0)
    }
    
    func testFont() {
        let titleLabel:UILabel = UILabel.init()
        titleLabel.font = MaterialDesignFont.fontOfSize(20)
        titleLabel.text = MaterialDesignIcon.list48px
        
        XCTAssertEqual(titleLabel.text?.count, 1)
    }
    
}

{'fraction_non_alphanumeric': 0.09646739130434782, 'fraction_numerical': 0.029438405797101448, 'mean_word_length': 2.6272577996715927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7540160', 'n_tokens_mistral': 739, 'n_tokens_neox': 686, 'n_words': 137}