<commit_before>//
//  SHGDataController.h
//  knowYourCity
//
//  Created by <NAME> on 10/14/13.
//  Copyright (c) 2013 Elsewise LLC. All rights reserved.
//

#import <Foundation/Foundation.h>

// temporary -- will be 6
#define PUBLISHED_WORKFLOW_STATE 2

// Theme keys
#define kThemeIDKey @"id"
#define kThemeTitleKey @"title"
#define kThemeSubtitleKey @"subtitle"
#define kThemeSummaryKey @"summary"
#define kThemeImageKey @"image_name"
#define kThemeSlugKey @"slug"

// also: latitude, longitude, zoom_level -- available through helper method?

// Story keys
#define kStoryIDKey @"id"
#define kStoryTitleKey @"title"
#define kStorySubtitleKey @"subtitle"
#define kStorySummaryKey @"summary"
#define kStoryImageKey @"image_name"
#define kStorySlugKey @"slug"

// Guest keys



@interface SHGDataController : NSObject

// returns dictionaries
@property (strong, nonatomic) NSArray *publishedThemes;

+ (SHGDataController *)sharedInstance;


// Themes

// Stories

- (NSArray *)storiesForThemeID:(NSUInteger)themeID;


// Guests


@end<commit_msg>Added guest keys, refactored duck-typed keys<commit_after>//
//  SHGDataController.h
//  knowYourCity
//
//  Created by <NAME> on 10/14/13.
//  Copyright (c) 2013 Elsewise LLC. All rights reserved.
//


// At least in the first version:
// Read from a cleaned up archive of the database from the Rails site.
// In the future: could read from API, or fetched JSON, and persist to Core Data.
// That might be overkill, since this is a relatively static, read-only dataset.

#import <Foundation/Foundation.h>

// temporary -- will be 6
#define PUBLISHED_WORKFLOW_STATE 2

// Cross-table keys

#define kContentIDKey @"id"
#define kContentTitleKey @"title"
#define kContentSubtitleKey @"subtitle"
#define kContentSlugKey @"slug"

#define kContentLatitudeKey @"latitude"
#define kContentLongitudeKey @"longitude"
#define kContentZoomLevelKey @"zoom_level"

// Theme keys
#define kThemeIDKey @"id"
#define kThemeSummaryKey @"summary"
#define kThemeImageKey @"image_name"

// also: latitude, longitude, zoom_level -- available through helper method?

// Story keys
#define kStoryIDKey @"id"
#define kStorySummaryKey @"summary"
#define kStoryImageKey @"image_name"

// Guest keys
#define kGuestIDKey @"id"
#define kGuestNameKey @"name"
#define kGuestTitleKey @"title"
#define kGuestOrganizationKey @"organization"
#define kGuestImageKey @"image_name"
#define kGuestBiographyKey @"bio"
#define kGuestQuoteKey @"quote"
#define kGuestURLKey @"guest_url"
#define kGuestURLTextKey @"guest_url_text"
#define kGuestSpecialtyKey @"specialty"

@interface SHGDataController : NSObject

// returns dictionaries
@property (strong, nonatomic) NSArray *publishedThemes;

+ (SHGDataController *)sharedInstance;


// Themes



// Stories

- (NSArray *)storiesForThemeID:(NSUInteger)themeID;


// Guests


@end
{'fraction_non_alphanumeric': 0.11480042387848817, 'fraction_numerical': 0.008477569763334511, 'mean_word_length': 4.987315010570825, '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': '3856579', 'n_tokens_mistral': 997, 'n_tokens_neox': 891, 'n_words': 271}