<commit_before>//
//  BRYHashCodeBuilder.h
//  BRYHashCodeBuilder
//
//  Created by <NAME> on 2/23/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

@import Foundation;
@import CoreGraphics;

/**
 Utility for determining object hash codes, based on Apache Commons [HashCodeBuilder](https://commons.apache.org/proper/commons-lang/javadocs/api-3.1/org/apache/commons/lang3/builder/HashCodeBuilder.html). Useful for implemeting `-[NSObject hash]` methods.
 
 - (NSUInteger)hash {
     return [[[[[BRYHashCodeBuilder builderWithInitialValue:17 multiplier:37]
                appendObject:self.name]
               appendBool:self.isHidden]
              appendFloat:self.width]
             appendInteger:self.index].hashCode;
 }
 */
@interface BRYHashCodeBuilder : NSObject

@property (nonatomic, readonly) NSUInteger hashCode;

/**
 Factory method for acquiring a `BRYHashCodeBuilder` instance.
 
 @param initial Randomly chosen, non-zero, odd number. Ideally different for each class, however this is not vital. Preferably prime.
 @param multiplier Randomly chosen, non-zero, odd number. Ideally different for each class, however this is not vital. Preferably prime.
 @return `BRYHashCodeBuilder` instance seeded with the initial value and multiplier
 */
+ (instancetype)builderWithInitialValue:(NSUInteger)initial multiplier:(NSUInteger)multiplier;

- (BRYHashCodeBuilder *)appendObject:(id)object;

- (BRYHashCodeBuilder *)appendInteger:(NSInteger)integer;

- (BRYHashCodeBuilder *)appendUnsignedInteger:(NSUInteger)unsignedInteger;

- (BRYHashCodeBuilder *)appendBool:(BOOL)boolean;

- (BRYHashCodeBuilder *)appendFloat:(CGFloat)floatValue;

@end
<commit_msg>appendObject uses -hash from the NSObject protocol<commit_after>//
//  BRYHashCodeBuilder.h
//  BRYHashCodeBuilder
//
//  Created by <NAME> on 2/23/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

@import Foundation;
@import CoreGraphics;

/**
 Utility for determining object hash codes, based on Apache Commons [HashCodeBuilder](https://commons.apache.org/proper/commons-lang/javadocs/api-3.1/org/apache/commons/lang3/builder/HashCodeBuilder.html). Useful for implemeting `-[NSObject hash]` methods.
 
 - (NSUInteger)hash {
     return [[[[[BRYHashCodeBuilder builderWithInitialValue:17 multiplier:37]
                appendObject:self.name]
               appendBool:self.isHidden]
              appendFloat:self.width]
             appendInteger:self.index].hashCode;
 }
 */
@interface BRYHashCodeBuilder : NSObject

@property (nonatomic, readonly) NSUInteger hashCode;

/**
 Factory method for acquiring a `BRYHashCodeBuilder` instance.
 
 @param initial Randomly chosen, non-zero, odd number. Ideally different for each class, however this is not vital. Preferably prime.
 @param multiplier Randomly chosen, non-zero, odd number. Ideally different for each class, however this is not vital. Preferably prime.
 @return `BRYHashCodeBuilder` instance seeded with the initial value and multiplier
 */
+ (instancetype)builderWithInitialValue:(NSUInteger)initial multiplier:(NSUInteger)multiplier;

- (BRYHashCodeBuilder *)appendObject:(id <NSObject>)object;

- (BRYHashCodeBuilder *)appendInteger:(NSInteger)integer;

- (BRYHashCodeBuilder *)appendUnsignedInteger:(NSUInteger)unsignedInteger;

- (BRYHashCodeBuilder *)appendBool:(BOOL)boolean;

- (BRYHashCodeBuilder *)appendFloat:(CGFloat)floatValue;

@end

{'fraction_non_alphanumeric': 0.10766961651917405, 'fraction_numerical': 0.00943952802359882, 'mean_word_length': 4.642262895174709, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '3210041', 'n_tokens_mistral': 1035, 'n_tokens_neox': 964, 'n_words': 249}