<commit_before>//
//  TableViewCell.swift
//  Revier
//
//  Created by <NAME> on 08.06.18.
//  Copyright © 2018 allaboutapps. All rights reserved.
//

import UIKit

public struct SeparatorStyle: Equatable {
    
    public let edgeEnsets: UIEdgeInsets
    public let color: UIColor
    public let backgroundColor: UIColor
    public let height: CGFloat
    
    public static let defaultColor = UIColor(red: 203.0 / 255.0, green: 203.0 / 255.0, blue: 203.0 / 255.0, alpha: 1.0)
    
    public init(edgeEnsets: UIEdgeInsets = .zero, color: UIColor = SeparatorStyle.defaultColor, backgroundColor: UIColor = .white, height: CGFloat = 1.0) {
        self.edgeEnsets = edgeEnsets
        self.color = color
        self.backgroundColor = backgroundColor
        self.height = height
    }
    
    public init(leftInset: CGFloat, color: UIColor = SeparatorStyle.defaultColor, backgroundColor: UIColor = .white, height: CGFloat = 1.0) {
        self.init(edgeEnsets: UIEdgeInsets(top: 0.0, left: leftInset, bottom: 0.0, right: 0.0),
                  color: color,
                  backgroundColor: backgroundColor,
                  height: height)
    }
    
}<commit_msg>change default line height to one pixle on screen depending on screen resolution<commit_after>//
//  TableViewCell.swift
//  Revier
//
//  Created by <NAME> on 08.06.18.
//  Copyright © 2018 allaboutapps. All rights reserved.
//

import UIKit

public struct SeparatorStyle: Equatable {
    
    public let edgeEnsets: UIEdgeInsets
    public let color: UIColor
    public let backgroundColor: UIColor
    public let height: CGFloat
    
    public static let defaultColor = UIColor(red: 203.0 / 255.0, green: 203.0 / 255.0, blue: 203.0 / 255.0, alpha: 1.0)
    
    /// One pixle, depending on screen resolution
    public static let defaultLineHeight: CGFloat = 1.0 / UIScreen.main.scale
    
    public init(edgeEnsets: UIEdgeInsets = .zero, color: UIColor = SeparatorStyle.defaultColor, backgroundColor: UIColor = .white, height: CGFloat = SeparatorStyle.defaultLineHeight) {
        self.edgeEnsets = edgeEnsets
        self.color = color
        self.backgroundColor = backgroundColor
        self.height = height
    }
    
    public init(leftInset: CGFloat, color: UIColor = SeparatorStyle.defaultColor, backgroundColor: UIColor = .white, height: CGFloat = SeparatorStyle.defaultLineHeight) {
        self.init(edgeEnsets: UIEdgeInsets(top: 0.0, left: leftInset, bottom: 0.0, right: 0.0),
                  color: color,
                  backgroundColor: backgroundColor,
                  height: height)
    }
    
}
{'fraction_non_alphanumeric': 0.09549480169426261, 'fraction_numerical': 0.0346553715825953, 'mean_word_length': 2.643758765778401, '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': '5557627', 'n_tokens_mistral': 854, 'n_tokens_neox': 801, 'n_words': 225}