<commit_before>//
//  TWCommonLib
//

@import CoreData;
#import "TWCommonTypes.h"

typedef NSString* _Nonnull (^CellReuseMappingBlock)(NSIndexPath * _Nonnull);
typedef NSString* _Nonnull (^CellReuseExtendedMappingBlock)(id _Nonnull object, NSIndexPath * _Nonnull);


NS_ASSUME_NONNULL_BEGIN

@interface TWCoreDataTableViewDataSource<__covariant T:NSManagedObject *> : NSObject <UITableViewDataSource>

@property (copy, nonatomic) NSFetchedResultsController* (^fetchedResultsControllerLazyInitializationBlock)();
@property (copy, nonatomic, nullable) void (^deleteCellOnSwipeBlock)(NSIndexPath * indexPath);
@property (copy, nonatomic, nullable) void (^moveRowAtIndexPathToIndexPathBlock)(NSIndexPath * fromIndexPath, NSIndexPath * toIndexPath);
@property (assign, nonatomic) BOOL displaySectionIndex;
@property (assign, nonatomic) BOOL displaySectionTitle;

#pragma mark - Initializers

/**
 Supports only one type of cells in the tableView
 */
- (instancetype)initWithCellReuseIdentifier:(NSString *)cellReuseIdentifier
                         configureCellBlock:(CellAtIndexPathBlock)configureCellBlock;

/**
 Supports only one type of cells in the tableView
 */
- (instancetype)initWithCellReuseIdentifier:(NSString *)cellReuseIdentifier
                         configureCellWithObjectBlock:(CellWithObjectAtIndexPathBlock)configureCellBlock;
<commit_msg>fix: CoreDataTableViewDataSource belongs to ObjectCountProtocol<commit_after>//
//  TWCommonLib
//

@import CoreData;
#import "TWCommonTypes.h"
#import "TWObjectCountProtocol.h"

typedef NSString* _Nonnull (^CellReuseMappingBlock)(NSIndexPath * _Nonnull);
typedef NSString* _Nonnull (^CellReuseExtendedMappingBlock)(id _Nonnull object, NSIndexPath * _Nonnull);


NS_ASSUME_NONNULL_BEGIN

@interface TWCoreDataTableViewDataSource<__covariant T:NSManagedObject *> : NSObject <UITableViewDataSource, TWObjectCountProtocol>

@property (copy, nonatomic) NSFetchedResultsController* (^fetchedResultsControllerLazyInitializationBlock)();
@property (copy, nonatomic, nullable) void (^deleteCellOnSwipeBlock)(NSIndexPath * indexPath);
@property (copy, nonatomic, nullable) void (^moveRowAtIndexPathToIndexPathBlock)(NSIndexPath * fromIndexPath, NSIndexPath * toIndexPath);
@property (assign, nonatomic) BOOL displaySectionIndex;
@property (assign, nonatomic) BOOL displaySectionTitle;

#pragma mark - Initializers

/**
 Supports only one type of cells in the tableView
 */
- (instancetype)initWithCellReuseIdentifier:(NSString *)cellReuseIdentifier
                         configureCellBlock:(CellAtIndexPathBlock)configureCellBlock;

/**
 Supports only one type of cells in the tableView
 */
- (instancetype)initWithCellReuseIdentifier:(NSString *)cellReuseIdentifier
                         configureCellWithObjectBlock:(CellWithObjectAtIndexPathBlock)configureCellBlock;

{'fraction_non_alphanumeric': 0.08772550406791652, 'fraction_numerical': 0.0, 'mean_word_length': 6.790633608815427, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6198665', 'n_tokens_mistral': 838, 'n_tokens_neox': 771, 'n_words': 173}