<commit_before>//
//  String-VersionNumberComparison.swift
//  String-VersionNumberComparison
//
//  Created by <NAME> on 2017/02/28.
//  Copyright © 2017年 <EMAIL>. All rights reserved.
//

import Foundation

extension String {
    func compareVersion(with anotherVersionString: String) -> ComparisonResult {
        
        func zipVersionNumbers(first: String, second: String) -> Zip2Sequence<[String], [String]>{
            
            func componentsFilledByZero(components: [String], resultComponentsCount: Int) -> [String] {
                if !(components.count < resultComponentsCount) {
                    return components
                }
                <commit_msg>edit comment.<commit_after>//
//  String+VersionNumber.swift
//
//  Created by <NAME> on 2017/02/28.
//  Copyright © 2017年 w<EMAIL>.<EMAIL>. All rights reserved.
//

import Foundation

extension String {
    func compareVersion(with anotherVersionString: String) -> ComparisonResult {
        
        func zipVersionNumbers(first: String, second: String) -> Zip2Sequence<[String], [String]>{
            
            func componentsFilledByZero(components: [String], resultComponentsCount: Int) -> [String] {
                if !(components.count < resultComponentsCount) {
                    return components
                }
                
{'fraction_non_alphanumeric': 0.10751879699248121, 'fraction_numerical': 0.019548872180451128, 'mean_word_length': 2.30272952853598, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 16, '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': '4007785', 'n_tokens_mistral': 363, 'n_tokens_neox': 329, 'n_words': 84}