<commit_before>//
//  mapTo+RxCocoa.swift
//  RxSwiftExt
//
//  Created by <NAME> on 3/7/17.
//  Copyright © 2017 RxSwift Community. All rights reserved.
//

import RxCocoa

extension SharedSequenceConvertibleType {
    /**
     Returns an Unit containing as many elements as its input but all of them are the constant provided as a parameter

     - parameter value: A constant that each element of the input sequence is being replaced with
     - returns: An unit containing the values `value` provided as a parameter
     */
    public func mapTo<R>(_ value: R) -> SharedSequence<SharingStrategy, R> {
        return map { _ in value }
    }
}<commit_msg>Re-added and deprecated `map(to:_)` for `SharedSequenceConvertibleType`<commit_after>//
//  mapTo+RxCocoa.swift
//  RxSwiftExt
//
//  Created by <NAME> on 3/7/17.
//  Copyright © 2017 RxSwift Community. All rights reserved.
//

import RxCocoa

extension SharedSequenceConvertibleType {
    /**
     Returns an Unit containing as many elements as its input but all of them are the constant provided as a parameter

     - parameter value: A constant that each element of the input sequence is being replaced with
     - returns: An unit containing the values `value` provided as a parameter
     */
    public func mapTo<R>(_ value: R) -> SharedSequence<SharingStrategy, R> {
        return map { _ in value }
    }
    
    @available(*, deprecated, renamed: "mapTo(_:)")
    public func map<R>(to value: R) -> SharedSequence<SharingStrategy, R> {
        return map { _ in value }
    }
}
{'fraction_non_alphanumeric': 0.09179056237879767, 'fraction_numerical': 0.010342598577892695, 'mean_word_length': 2.9896907216494846, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '2867392', 'n_tokens_mistral': 466, 'n_tokens_neox': 432, 'n_words': 176}