<commit_before>//
//  RocksDBColumnFamily.h
//  ObjectiveRocks
//
//  Created by Iska on 29/12/14.
//  Copyright (c) 2014 BrainCookie. All rights reserved.
//

#import "RocksDB.h"
#import	"RocksDBOptions.h"

/**
 Column Families provide a way to logically partition the database. Each key-value pair in RocksDB is associated 
 with exactly one Column Family. If there is no Column Family specified, key-value pair is associated with Column 
 Family "default".

 The `RocksDBColumnFamily` is a subclass of the `RocksDB`, which means that all methods are inherited. Nevertheless, 
 a Column Family can only be created via a `RocksDB` instance, thus all initializers are unavailable.
 */
@interface RocksDBColumnFamily : RocksDB

- (instancetype)initWithPath:(NSString *)path __attribute__((unavailable("Create column family via a RocksDB instance")));
- (instancetype)initWithPath:(NSString *)path
				andDBOptions:(void (^)(RocksDBOptions *options))options __attribute__((unavailable("Create column family via a RocksDB instance")));
- (instancetype)initWithPath:(NSString *)path
			  columnFamilies:(RocksDBColumnFamilyDescriptor *)descriptor
		  andDatabaseOptions:(void (^)(RocksDBDatabaseOptions *options))options __attribute__((unavailable("Create column family via a RocksDB instance")));

+ (NSArray *)listColumnFamiliesInDatabaseAtPath:(NSString *)path __attribute__((unavailable("Use the superclass RocksDB instead")));
- (RocksDBColumnFamily *)createColumnFamilyWithName:(NSString *)name
										 andOptions:(void (^)(RocksDBColumnFamilyOptions *options))optionsBlock __attribute__((unavailable("Use the superclass RocksDB instead")));

/**
 @breaf Drops this Column Family form the DB instance it is associated with.
 */
- (void)drop;

@end
<commit_msg>Mark new initializer methods as unavailable in the ColumnFamily header<commit_after>//
//  RocksDBColumnFamily.h
//  ObjectiveRocks
//
//  Created by Iska on 29/12/14.
//  Copyright (c) 2014 BrainCookie. All rights reserved.
//

#import "RocksDB.h"
#import	"RocksDBOptions.h"

/**
 Column Families provide a way to logically partition the database. Each key-value pair in RocksDB is associated 
 with exactly one Column Family. If there is no Column Family specified, key-value pair is associated with Column 
 Family "default".

 The `RocksDBColumnFamily` is a subclass of the `RocksDB`, which means that all methods are inherited. Nevertheless, 
 a Column Family can only be created via a `RocksDB` instance, thus all initializers are unavailable.
 */
@interface RocksDBColumnFamily : RocksDB

+ (instancetype)databaseAtPath:(NSString *)path
				  andDBOptions:(void (^)(RocksDBOptions *options))options __attribute__((unavailable("Create column family via a RocksDB instance")));
+ (instancetype)databaseAtPath:(NSString *)path
				columnFamilies:(RocksDBColumnFamilyDescriptor *)descriptor
			andDatabaseOptions:(void (^)(RocksDBDatabaseOptions *options))options __attribute__((unavailable("Create column family via a RocksDB instance")));

#ifndef ROCKSDB_LITE

+ (instancetype)databaseForReadOnlyAtPath:(NSString *)path
							 andDBOptions:(void (^)(RocksDBOptions *options))options __attribute__((unavailable("Create column family via a RocksDB instance")));
+ (instancetype)databaseForReadOnlyAtPath:(NSString *)path
						   columnFamilies:(RocksDBColumnFamilyDescriptor *)descriptor
					   andDatabaseOptions:(void (^)(RocksDBDatabaseOptions *options))options __attribute__((unavailable("Create column family via a RocksDB instance")));
#endif

+ (NSArray *)listColumnFamiliesInDatabaseAtPath:(NSString *)path __attribute__((unavailable("Use the superclass RocksDB instead")));
- (RocksDBColumnFamily *)createColumnFamilyWithName:(NSString *)name
										 andOptions:(void (^)(RocksDBColumnFamilyOptions *options))optionsBlock __attribute__((unavailable("Use the superclass RocksDB instead")));

/**
 @breaf Drops this Column Family form the DB instance it is associated with.
 */
- (void)drop;

@end

{'fraction_non_alphanumeric': 0.10251256281407035, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 5.875647668393782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4023618', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1074, 'n_words': 349}