<commit_before>//
//  ItunesSearch.h
//  iTunesSearch
//
//  Created by <NAME> on 28/09/12.
//  Copyright (c) 2012 Gabgverk. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^ItunesSearchReturnBlockWithObject)(id result);
typedef void (^ItunesSearchReturnBlockWithArray)(NSArray *result);
typedef void (^ItunesSearchReturnBlockWithError)(NSError *error);

@interface ItunesSearch : NSObject

@property (strong, nonatomic) NSString *partnerId;
@property (strong, nonatomic) NSString *tradeDoublerId;

+ (ItunesSearch *)sharedInstance;
- (void)performApiCallForMethod:(NSString*)method withParams:(NSDictionary *)params andFilters:(NSDictionary *)filters successHandler:(ItunesSearchReturnBlockWithObject)successHandler failureHandler:(ItunesSearchReturnBlockWithError)failureHandler;

#pragma mark - Artist methods

- (void)getAlbumsForArtist:(NSNumber *)artistId limitOrNil:(NSNumber *)limit successHandler:(ItunesSearchReturnBlockWithArray)successHandler failureHandler:(ItunesSearchReturnBlockWithError)failureHandler;
- (void)getAlbumWithArtist:(NSString *)artistName andName:(NSString *)albumName limitOrNil:(NSNumber *)limit successHandler:(ItunesSearchReturnBlockWithArray)successHandler failureHandler:(ItunesSearchReturnBlockWithError)failureHandler;<commit_msg>Small typo correction.<commit_after>//
//  ItunesSearch.h
//  iTunesSearch
//
//  Created by <NAME> on 28/09/12.
//  Copyright (c) 2012 Gangverk. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^ItunesSearchReturnBlockWithObject)(id result);
typedef void (^ItunesSearchReturnBlockWithArray)(NSArray *result);
typedef void (^ItunesSearchReturnBlockWithError)(NSError *error);

@interface ItunesSearch : NSObject

@property (strong, nonatomic) NSString *partnerId;
@property (strong, nonatomic) NSString *tradeDoublerId;

+ (ItunesSearch *)sharedInstance;
- (void)performApiCallForMethod:(NSString*)method withParams:(NSDictionary *)params andFilters:(NSDictionary *)filters successHandler:(ItunesSearchReturnBlockWithObject)successHandler failureHandler:(ItunesSearchReturnBlockWithError)failureHandler;

#pragma mark - Artist methods

- (void)getAlbumsForArtist:(NSNumber *)artistId limitOrNil:(NSNumber *)limit successHandler:(ItunesSearchReturnBlockWithArray)successHandler failureHandler:(ItunesSearchReturnBlockWithError)failureHandler;
- (void)getAlbumWithArtist:(NSString *)artistName andName:(NSString *)albumName limitOrNil:(NSNumber *)limit successHandler:(ItunesSearchReturnBlockWithArray)successHandler failureHandler:(ItunesSearchReturnBlockWithError)failureHandler;
{'fraction_non_alphanumeric': 0.1042708734128511, 'fraction_numerical': 0.007695267410542516, 'mean_word_length': 9.92436974789916, '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': '786298', 'n_tokens_mistral': 790, 'n_tokens_neox': 715, 'n_words': 139}