<commit_before>//
//  NSRConfig.h
//  NSRails
//
//  Created by <NAME> on 1/28/12.
//  Copyright (c) 2012 InContext LLC. All rights reserved.
//

//  OPTIONS
// for documentation on these, see https://github.com/dingbat/nsrails/wiki/Compile-config

#import "JSONFramework.h"

typedef void(^NSRHTTPCompletionBlock)(NSString *result, NSError *error);

#define NSRLog 2
#define NSRCompileWithARC
#define NSRSuccinctErrorMessages
//#define NSRCrashOnError
//#define NSRWarnOnInstanceRequestsWithNilModelID

#define NSRValidationErrorsKey	@"validation errors"

@interface NSRConfig : NSObject
{
	NSOperationQueue *asyncOperationQueue; //used for async requests
}

@property (nonatomic, strong) NSString *appURL;
@property (nonatomic, strong) NSString *appUsername;
@property (nonatomic, strong) NSString *appPassword;

@property (nonatomic, strong) NSString *dateFormat;
@property (nonatomic) BOOL automaticallyUnderscoreAndCamelize;

+ (NSRConfig *) defaultConfig;
+ (void) setAsDefaultConfig:(NSRConfig *)config;

- (id) initWithAppURL:(NSString *)url;

- (void) use;
- (void) end;

- (void) useIn:(void(^)(void))block;


////////////////////////////<commit_msg>Removed unused compileconfig flag<commit_after>//
//  NSRConfig.h
//  NSRails
//
//  Created by <NAME> on 1/28/12.
//  Copyright (c) 2012 InContext LLC. All rights reserved.
//

/////////////////////////////
//  OPTIONS
// for documentation on these, see https://github.com/dingbat/nsrails/wiki/Compile-config

#define NSRLog 2
#define NSRCompileWithARC
#define NSRSuccinctErrorMessages
//#define NSRCrashOnError

//NSRConfig.h
/////////////////////////////

#import "JSONFramework.h"

typedef void(^NSRHTTPCompletionBlock)(NSString *result, NSError *error);

#define NSRValidationErrorsKey	@"validation errors"

@interface NSRConfig : NSObject
{
	NSOperationQueue *asyncOperationQueue; //used for async requests
}

@property (nonatomic, strong) NSString *appURL;
@property (nonatomic, strong) NSString *appUsername;
@property (nonatomic, strong) NSString *appPassword;

@property (nonatomic, strong) NSString *dateFormat;
@property (nonatomic) BOOL automaticallyUnderscoreAndCamelize;

+ (NSRConfig *) defaultConfig;
+ (void) setAsDefaultConfig:(NSRConfig *)config;

- (id) initWithAppURL:(NSString *)url;

- (void) use;
- (void) end;

- (void) useIn:(void(^)(void))block;


////////////////////////////
{'fraction_non_alphanumeric': 0.17012272534913245, 'fraction_numerical': 0.008463817181548879, 'mean_word_length': 4.062098501070664, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3782476', 'n_tokens_mistral': 792, 'n_tokens_neox': 722, 'n_words': 186}