<commit_before>//
//  Signal.swift
//  Core
//
//  Created by <NAME> on 6/29/16.
//  Copyright © 2016 Wolox. All rights reserved.
//

import ReactiveCocoa

public extension Signal {
    
    /// Transforms a `Signal<Value, Error>` to `SignalProducer<Value, NewError>`
    /// This is usually pretty useful when the `flatMap` operator is used and the outer
    /// producer as `NoError` and the inner one a different type of error.
    ///
    /// - returns: A signal producer with the same value type but with `NewError` as the error type
    func liftError<NewError: ErrorType>() -> Signal<Value, NewError> {
        return flatMapError { _ in SignalProducer<Value, NewError>.empty }
    }
    
}
<commit_msg>Updating liftError() documentation typo<commit_after>//
//  Signal.swift
//  Core
//
//  Created by <NAME> on 6/29/16.
//  Copyright © 2016 Wolox. All rights reserved.
//

import ReactiveCocoa

public extension Signal {
    
    /// Transforms a `Signal<Value, Error>` to `Signal<Value, NewError>`
    /// This is usually pretty useful when the `flatMap` operator is used and the outer
    /// producer as `NoError` and the inner one a different type of error.
    ///
    /// - returns: A signal with the same value type but with `NewError` as the error type
    func liftError<NewError: ErrorType>() -> Signal<Value, NewError> {
        return flatMapError { _ in SignalProducer<Value, NewError>.empty }
    }
    
}

{'fraction_non_alphanumeric': 0.11336599020293912, 'fraction_numerical': 0.012596221133659902, 'mean_word_length': 2.733681462140992, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '2877760', 'n_tokens_mistral': 445, 'n_tokens_neox': 416, 'n_words': 160}