<commit_before>//
//  Value+UTF8.swift
//  PostgreSQL
//
//  Created by <NAME> on 7/13/16.
//
//

import Foundation


extension Node {
    var utf8: String.UTF8View {
        switch self {
        case .string(let str):
            return str.utf8
        case .bool(let bool):
            return bool ? "true".utf8 : "false".utf8
		    case .number(.double(let double)):
			      return String(double).utf8
		    case .number(.int(let int)):
            return String(int).utf8
        default:
            return String(UInt8(0)).utf8
        }
    }
}<commit_msg>fix indentation.<commit_after>//
//  Value+UTF8.swift
//  PostgreSQL
//
//  Created by <NAME> on 7/13/16.
//
//

import Foundation


extension Node {
    var utf8: String.UTF8View {
        switch self {
        case .string(let str):
            return str.utf8
        case .bool(let bool):
            return bool ? "true".utf8 : "false".utf8
	    case .number(.double(let double)):
            return String(double).utf8
	    case .number(.int(let int)):
            return String(int).utf8
        default:
            return String(UInt8(0)).utf8
        }
    }
}
{'fraction_non_alphanumeric': 0.1329225352112676, 'fraction_numerical': 0.028169014084507043, 'mean_word_length': 1.6943127962085307, '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': '3498430', 'n_tokens_mistral': 378, 'n_tokens_neox': 353, 'n_words': 85}