<commit_before>//
//  Coding+Helpers.swift
//  Swiftlier
//
//  Created by <NAME> on 9/30/17.
//  Copyright © 2017 Drewag. All rights reserved.
//

extension Encodable where Self: Decodable {
    public func copyUsingEncoding() throws -> Self {
        let data = try JSONEncoder().encode(self)
        return try JSONDecoder().decode(type(of: self), from: data)
    }
}
<commit_msg>[BF] Fixed macOS and Linux builds<commit_after>//
//  Coding+Helpers.swift
//  Swiftlier
//
//  Created by <NAME> on 9/30/17.
//  Copyright © 2017 Drewag. All rights reserved.
//

import Foundation

extension Encodable where Self: Decodable {
    public func copyUsingEncoding() throws -> Self {
        let data = try JSONEncoder().encode(self)
        return try JSONDecoder().decode(type(of: self), from: data)
    }
}

{'fraction_non_alphanumeric': 0.13167701863354037, 'fraction_numerical': 0.02236024844720497, 'mean_word_length': 2.893719806763285, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4795097', 'n_tokens_mistral': 272, 'n_tokens_neox': 249, 'n_words': 77}