<commit_before>//
//  CSApi.h
//  CSApi
//
//  Created by <NAME> on 28/01/2013.
//  Copyright (c) 2013 Cogenta Systems Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol CSApplication;
@protocol CSUser;
@protocol CSMutableUser;
@protocol CSCredential;

/**
 CSAPI is used to access the Cogenta Shopping API.
 */
@interface CSAPI : NSObject

/**
 The bookmark for this endpoint.
 */
@property (readonly) NSString *bookmark;

/**
 The username used to authenticate with the server.
 */
@property (readonly) NSString *username;

/**
 The password used to authenticate with the server.
 */
@property (readonly) NSString *password;

/**
 Initializes a newly allocated API endpoint with the given settings.
 
 @param bookmark The bookmark identifying the application using the API.
 @param username The username used to authenticate API calls with the server.
 @param password The password used to authenticate API calls with the server.
 @return An API endpoint initialized with the given settings.
 */
- (id)initWithBookmark:(NSString *)bookmark
              username:(NSString *)username
              password:(<PASSWORD> *)password;

- (void)getApplication:(NSString *)path
              callback:(void (^)(id<CSApplication> app, NSError *error))callback;

- (void)getUser:(NSURL *)url
     credential:(id<CSCredential>)credential
       callback:(void (^)(id<CSUser>, NSError *))callback;
<commit_msg>Correct signature.<commit_after>//
//  CSApi.h
//  CSApi
//
//  Created by <NAME> on 28/01/2013.
//  Copyright (c) 2013 Cogenta Systems Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol CSApplication;
@protocol CSUser;
@protocol CSMutableUser;
@protocol CSCredential;

/**
 CSAPI is used to access the Cogenta Shopping API.
 */
@interface CSAPI : NSObject

/**
 The bookmark for this endpoint.
 */
@property (readonly) NSString *bookmark;

/**
 The username used to authenticate with the server.
 */
@property (readonly) NSString *username;

/**
 The password used to authenticate with the server.
 */
@property (readonly) NSString *password;

/**
 Initializes a newly allocated API endpoint with the given settings.
 
 @param bookmark The bookmark identifying the application using the API.
 @param username The username used to authenticate API calls with the server.
 @param password The password used to authenticate API calls with the server.
 @return An API endpoint initialized with the given settings.
 */
- (id)initWithBookmark:(NSString *)bookmark
              username:(NSString *)username
              password:(NSString *)password;

- (void)getApplication:(NSURL *)url
              callback:(void (^)(id<CSApplication> app, NSError *error))callback;

- (void)getUser:(NSURL *)url
     credential:(id<CSCredential>)credential
       callback:(void (^)(id<CSUser>, NSError *))callback;

{'fraction_non_alphanumeric': 0.11048754822869168, 'fraction_numerical': 0.008418098912662224, 'mean_word_length': 3.8586030664395228, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '2915431', 'n_tokens_mistral': 865, 'n_tokens_neox': 793, 'n_words': 291}