<commit_before>//
//  MaterialDesignColorSwift.swift
//  baclavios
//
//  Created by <NAME> on 10/10/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

#if TARGET_OS_MAC
    import Cocoa
    typealias Color = NSColor
#else
    import UIKit
    typealias Color = UIColor
#endif

extension Color {
    convenience init(rgba: UInt){
        let sRgba = min(rgba,0xFFFFFFFF)
        print(sRgba)
        let red: CGFloat = CGFloat((sRgba & 0xFF000000) >> 24) / 255.0
        let green: CGFloat = CGFloat((sRgba & 0x00FF0000) >> 16) / 255.0
        let blue: CGFloat = CGFloat((sRgba & 0x0000FF00) >> 8) / 255.0
        let alpha: CGFloat = CGFloat(sRgba & 0x000000FF) / 255.0

        self.init(red: red, green: green, blue:blue, alpha:alpha)
    }
}
<commit_msg>Fixed platform conditional import<commit_after>//
//  MaterialDesignColorSwift.swift
//  baclavios
//
//  Created by <NAME> on 10/10/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

#if TARGET_OS_IPHONE
    import UIKit
    typealias Color = UIColor
#else
    import Cocoa
    typealias Color = NSColor
#endif

extension Color {
    convenience init(rgba: UInt){
        let sRgba = min(rgba,0xFFFFFFFF)
        let red: CGFloat = CGFloat((sRgba & 0xFF000000) >> 24) / 255.0
        let green: CGFloat = CGFloat((sRgba & 0x00FF0000) >> 16) / 255.0
        let blue: CGFloat = CGFloat((sRgba & 0x0000FF00) >> 8) / 255.0
        let alpha: CGFloat = CGFloat(sRgba & 0x000000FF) / 255.0

        self.init(red: red, green: green, blue:blue, alpha:alpha)
    }
}

{'fraction_non_alphanumeric': 0.1218274111675127, 'fraction_numerical': 0.07614213197969544, 'mean_word_length': 2.675990675990676, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '806818', 'n_tokens_mistral': 688, 'n_tokens_neox': 588, 'n_words': 148}