<commit_before>//
//  Pipe.swift
//
//  Created by <NAME> on 11/05/2015.
//

infix operator |> { precedence 50 associativity left }

/**
Pipe. e.g. x |> f is transformed into f(x). But it's chainable
so that x |> f |> g |> h is transformed into h(g(f(x)))
*/
public func |> <Input, Output>(left: Input, right: Input -> Output) -> Output {
    return right(left)
}

/// Curried version of map
public func map<S: SequenceType, T>(transform: (S.Generator.Element) -> T)(source: S) -> [T] {
    return map(source, transform)
}
<commit_msg>[master]: Renames left and right to lhs and rhs<commit_after>//
//  Pipe.swift
//
//  Created by <NAME> on 11/05/2015.
//

infix operator |> { precedence 50 associativity left }

/**
Pipe. e.g. x |> f is transformed into f(x). But it's chainable
so that x |> f |> g |> h is transformed into h(g(f(x)))
*/
public func |> <Input, Output>(lhs: Input, rhs: Input -> Output) -> Output {
    return rhs(lhs)
}

/// Curried version of map
public func map<S: SequenceType, T>(transform: (S.Generator.Element) -> T)(source: S) -> [T] {
    return map(source, transform)
}

{'fraction_non_alphanumeric': 0.17577413479052822, 'fraction_numerical': 0.018214936247723135, 'mean_word_length': 3.210727969348659, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 29, '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': '6492267', 'n_tokens_mistral': 413, 'n_tokens_neox': 387, 'n_words': 130}