<commit_before>import Foundation

/// Structure acting as a namespace for enums describing directions
public struct Direction {
    /// An enum that describes a direction in any of 4 ways
    public enum FourWay: Int {
        case Up
        case Right
        case Down
        case Left
    }
    
    /// An ennum that describes a direction in any of 8 ways
    public enum EightWay: Int {
        case Up
        case UpRight
        case Right
        case RightDown
        case Down
        case DownLeft
        case Left
        case LeftUp
    }
}<commit_msg>Direction: Add initializer to convert 4Way -> 8Way<commit_after>import Foundation

/// Structure acting as a namespace for enums describing directions
public struct Direction {
    /// An enum that describes a direction in any of 4 ways
    public enum FourWay: Int {
        case Up
        case Right
        case Down
        case Left
    }
    
    /// An ennum that describes a direction in any of 8 ways
    public enum EightWay: Int {
        case Up
        case UpRight
        case Right
        case RightDown
        case Down
        case DownLeft
        case Left
        case LeftUp
        
        public init(_ fourWayDirection: FourWay) {
            switch fourWayDirection {
            case .Up:
                self = .Up
            case .Right:
                self = .Right
            case .Down:
                self = .Down
            case .Left:
                self = .Left
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.0437375745526839, 'fraction_numerical': 0.003976143141153081, 'mean_word_length': 1.3968253968253967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5486465', 'n_tokens_mistral': 385, 'n_tokens_neox': 362, 'n_words': 164}