<commit_before>//
//  SplitLine.swift
//  SwiftyEcharts
//
//  Created by <NAME> on 06/02/2017.
//  Copyright © 2017 com.pluto-y. All rights reserved.
//

/// 分割线
public final class SplitLine: Displayable, Line {
    /// 是否显示分隔线。
    public var show: Bool?
    /// 分隔线的显示间隔
    public var interval: LengthValue?
    /// 分割线的样式
    public var lineStyle: LineStyle?
    
    public init() { }
}

extension SplitLine: Enumable {
    public enum Enums {
        case show(Bool), interval(LengthValue), lineStyle(LineStyle)
    }
    
    public typealias ContentEnum = Enums
    
    public convenience init(_ elements: Enums...) {
        self.init()
        for ele in elements {
            switch ele {
            case let .show(show):
                self.show = show
            case let .interval(interval):
                self.interval = interval
            case let .lineStyle(lineStyle):
                self.lineStyle = lineStyle
            }
        }
    }
}

extension SplitLine: Mappable {
    public func mapping(map: Mapper) {
        map["show"] = show
        map["interval"] = interval
        map["lineStyle"] = lineStyle
    }
}
<commit_msg>feature(model): Add new property named 'length' for `SplitLine`<commit_after>//
//  SplitLine.swift
//  SwiftyEcharts
//
//  Created by <NAME> on 06/02/2017.
//  Copyright © 2017 com.pluto-y. All rights reserved.
//

/// 分割线
public final class SplitLine: Displayable, Line {
    /// 是否显示分隔线。
    public var show: Bool?
    /// 分隔线的显示间隔
    public var interval: LengthValue?
    /// 分隔线的长度
    public var length: LengthValue?
    /// 分割线的样式
    public var lineStyle: LineStyle?
    
    public init() { }
}

extension SplitLine: Enumable {
    public enum Enums {
        case show(Bool), interval(LengthValue), length(LengthValue), lineStyle(LineStyle)
    }
    
    public typealias ContentEnum = Enums
    
    public convenience init(_ elements: Enums...) {
        self.init()
        for ele in elements {
            switch ele {
            case let .show(show):
                self.show = show
            case let .interval(interval):
                self.interval = interval
            case let .length(length):
                self.length = length
            case let .lineStyle(lineStyle):
                self.lineStyle = lineStyle
            }
        }
    }
}

extension SplitLine: Mappable {
    public func mapping(map: Mapper) {
        map["show"] = show
        map["interval"] = interval
        map["length"] = length
        map["lineStyle"] = lineStyle
    }
}

{'fraction_non_alphanumeric': 0.10806577916992952, 'fraction_numerical': 0.009397024275646046, 'mean_word_length': 1.8357380688124307, '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': '2876733', 'n_tokens_mistral': 803, 'n_tokens_neox': 788, 'n_words': 206}