<commit_before># NYTimesWrapper

NYTimes Objective-C API Wrapper

## Classes (currently)

* [NYTimesWrapper][] - Base Class.
* [NYTimesArticle][] - API support for NYTimes Articles.
* [NYTimesBestSeller][] - API support for NYTimes Best Sellers.
* [NYTimesCampaignFinance][] - API support for NYTimes Campaign Finance.

## Example

To use.

<pre>
  NYTimesWrapper *articles = [[NYTimesWrapper alloc] initWithKey:@"ARTICLES-API-KEY"];
  [articles setQuery:@"NYTimes HackDay"];
  
  [NYTimesArticle asyncRequest:articles 
                       success:^(NSData *data, NSURLResponse *response){
                           NSLog(@"Articles Results %@", data);
                      }failure:^(NSData *data, NSError *error){
                           NSLog(@"Errors %@", error);
                       } tag:@"tag"];
</pre>

<pre>
  NYTimesWrapper *bestSellers = [[NYTimesWrapper alloc] initWithKey:@"BESTSELLER-API-KEY"];
  [bestSeller setFormat:@"json"];
  
  [NYTimesBestSeller asyncRequest:bestSellers
                          success:^(NSData *data, NSURLResponse *response){
                              NSLog(@"Best Seller Results %@", result);
                          }failure:^(NSData *data, NSError *error){
                              NSLog(@"Errors %@", error);
                          }tag:@"best sellers"];
</pre>

<pre>
  NYTimesWrapper *campaignFinance = [[NYTimesWrapper alloc] initWithKey:@"CAMPAIGNFINANCE-API-KEY"];
  [campaignFinance.candidateSearch setCycle:@"2006"];
  [campaignFinance.candidateSearch setSearchParameter:@"Foo"];
  [campaignFinance.candidateSearch setLastName:@"Bar"];
  
  [NYTimesBestSeller asyncRequest:bestSellers
                          success:^(NSData *data, NSURLResponse *response){
                              NSLog(@"Best Seller Results %@", result);
                          }failure:^(NSData *data, NSError *error){
                              NSLog(@"Errors %@", error);
                          }tag:@"best sellers"];
</pre>

## TODO
plenty. <commit_msg>Updated README file.<commit_after># NYTimesWrapper

NYTimes Objective-C API Wrapper

## Classes (currently)

* [NYTimesWrapper][] - Base Class.
* [NYTimesArticle][] - API support for NYTimes Articles.
* [NYTimesBestSeller][] - API support for NYTimes Best Sellers.
* [NYTimesCampaignFinance][] - API support for NYTimes Campaign Finance.

## Example

To use.

<pre>
  NYTimesWrapper *articles = [[NYTimesWrapper alloc] initWithKey:@"ARTICLES-API-KEY"];
  [articles setQuery:@"NYTimes HackDay"];
  
  [NYTimesArticle asyncRequest:articles 
                       success:^(NSData *data, NSURLResponse *response){
                           NSLog(@"Articles Results %@", data);
                      }failure:^(NSData *data, NSError *error){
                           NSLog(@"Errors %@", error);
                       } tag:@"tag"];
</pre>

<pre>
  NYTimesWrapper *bestSellers = [[NYTimesWrapper alloc] initWithKey:@"BESTSELLER-API-KEY"];
  [bestSeller setFormat:@"json"];
  
  [NYTimesBestSeller asyncRequest:bestSellers
                          success:^(NSData *data, NSURLResponse *response){
                              NSLog(@"Best Seller Results %@", result);
                          }failure:^(NSData *data, NSError *error){
                              NSLog(@"Errors %@", error);
                          }tag:@"best sellers"];
</pre>

<pre>
  NYTimesWrapper *campaignFinance = [[NYTimesWrapper alloc] initWithKey:@"CAMPAIGNFINANCE-API-KEY"];
  [campaignFinance.candidateSearch setCycle:@"2006"];
  [campaignFinance.candidateSearch setSearchParameter:@"Foo"];
  [campaignFinance.candidateSearch setLastName:@"Bar"];
  
  [NYTimesBestSeller asyncRequest:campaignFinance
                          success:^(NSData *data, NSURLResponse *response){
                              NSLog(@"Campaign Finance Results %@", result);
                          }failure:^(NSData *data, NSError *error){
                              NSLog(@"Errors %@", error);
                          }tag:@"best sellers"];
</pre>

## TODO
plenty. 
{'fraction_non_alphanumeric': 0.13177339901477833, 'fraction_numerical': 0.0019704433497536944, 'mean_word_length': 2.356198347107438, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2919201', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1102, 'n_words': 242}