<commit_before>//  RXComparison.h
//  Created by <NAME> on 10/18/2013.
//  Copyright (c) 2013 <NAME>. All rights reserved.

#import <Foundation/Foundation.h>
#import <RXCollections/RXMap.h>

/**
 id RXMin(id<NSFastEnumeration> enumeration, id initial, RXMinBlock minBlock)
 id RXMinF(id<NSFastEnumeration> enumeration, id initial, RXMinFunction minFunc)
 
 Finds the minimum value returned by `minBlock` across `enumeration`.
 
 If `initial` is nil, it is ignored. If it is non-nil it is the initial point of comparison.
 
 If `minBlock` or `minFunction` is nil, the objects themselves are compared, rather than the result of the block or function.
 */
extern id RXMin(id<NSFastEnumeration> enumeration, id initial, RXMapBlock minBlock);
extern id RXMinF(id<NSFastEnumeration> enumeration, id initial, RXMapFunction minFunc);<commit_msg>Better documentation for RXMin and RXMinF.<commit_after>//  RXComparison.h
//  Created by <NAME> on 10/18/2013.
//  Copyright (c) 2013 <NAME>. All rights reserved.

#import <Foundation/Foundation.h>
#import <RXCollections/RXMap.h>

/**
 Finds the minimum value returned by \c minBlock across \c enumeration.
 
 @param enumeration The enumeration to find a minimum across.
 @param initial The initial point of comparison. Ignored if nil.
 @param minBlock A block returning the object to compare given each element of \c enumeration. Nil is treated as the identity block.
 */
extern id RXMin(id<NSFastEnumeration> enumeration, id initial, RXMapBlock minBlock);

/**
 Finds the minimum value returned by \c minFunction across \c enumeration.
 
 @param enumeration The enumeration to find a minimum across.
 @param initial The initial point of comparison. Ignored if nil.
 @param minFunction A pointer to a function returning the object to compare given each element of \c enumeration. NULL is treated as the identity function.
 */
extern id RXMinF(id<NSFastEnumeration> enumeration, id initial, RXMapFunction minFunction);
{'fraction_non_alphanumeric': 0.081799591002045, 'fraction_numerical': 0.012269938650306749, 'mean_word_length': 4.607449856733524, 'pattern_counts': {'":': 0, '<': 17, '<?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': '5753252', 'n_tokens_mistral': 590, 'n_tokens_neox': 522, 'n_words': 240}