<commit_before>//
//  Direction.swift
//  SwiftCommon
//
//  Created by <NAME> on 6/26/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

public enum Direction {
    case Unknown
    case Up
    case Down
    case Left
    case Right
    case Center
    case HorizontalCenter
    case VerticalCenter
    
    public func description() -> String {<commit_msg>Version 0.0.18<commit_after>//
//  Direction.swift
//  SwiftCommon
//
//  Created by <NAME> on 6/26/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

public enum Direction {
    case Unknown
    case Up
    case Down
    case Left
    case Right
    case Center
    case HorizontalCenter
    case VerticalCenter
    
    public func opposite() -> Direction? {
        switch self {
        case Unknown: return Unknown
        case Up: return Down
        case Down: return Up
        case Left: return Right
        case Right: return Left
        case Center: return Center
        case HorizontalCenter: return HorizontalCenter
        case VerticalCenter: return VerticalCenter
        default: return Unknown
        }
    }
    
    public func description() -> String {
{'fraction_non_alphanumeric': 0.07556675062972293, 'fraction_numerical': 0.018471872376154493, 'mean_word_length': 2.1041666666666665, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '3129408', 'n_tokens_mistral': 351, 'n_tokens_neox': 315, 'n_words': 122}