<commit_before>//
//  UIColor+RGBA.swift
//  MidnightBacon
//
//  Created by <NAME> on 11/20/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

extension UIColor {
    convenience init(_ red: UInt8, _ green: UInt8, _ blue: UInt8) {
        let r = CGFloat(red) / 255.0
        let g = CGFloat(green) / 255.0
        let b = CGFloat(blue) / 255.0
        self.init(red: r, green: g, blue: b, alpha: 1.0)
    }
    
    convenience init(_ rgb: UInt32) {
        let r = CGFloat((rgb & 0x00FF0000) >> 16) / 255.0
        let g = CGFloat((rgb & 0x0000FF00) >> 08) / 255.0
        let b = CGFloat((rgb & 0x000000FF) >> 00) / 255.0
        self.init(red: r, green: g, blue: b, alpha: 1.0)
    }
}<commit_msg>Call other initializer instead of having duplicate logic.<commit_after>//
//  UIColor+RGBA.swift
//  MidnightBacon
//
//  Created by <NAME> on 11/20/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

extension UIColor {
    convenience init(_ red: UInt8, _ green: UInt8, _ blue: UInt8) {
        let r = CGFloat(red) / 255.0
        let g = CGFloat(green) / 255.0
        let b = CGFloat(blue) / 255.0
        self.init(red: r, green: g, blue: b, alpha: 1.0)
    }
    
    convenience init(_ rgb: UInt32) {
        let r = UInt8((rgb & 0x00FF0000) >> 16)
        let g = UInt8((rgb & 0x0000FF00) >> 08)
        let b = UInt8((rgb & 0x000000FF) >> 00)
        self.init(r, g, b)
    }
}
{'fraction_non_alphanumeric': 0.1499302649930265, 'fraction_numerical': 0.0899581589958159, 'mean_word_length': 2.1127982646420826, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '7575712', 'n_tokens_mistral': 647, 'n_tokens_neox': 559, 'n_words': 153}