<commit_before>//
//  VODEntity.h
//  VBValenciaOpenData
//
//  Created by <NAME> on 20/02/14.
//  Copyright (c) 2014 <EMAIL>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>

/**
 VODEntity
 
 Base class for all entities.
 
 Represents common data between all objects and exposes common interface
 for his creation from a server's response (@see entityFromResponse:)
 
 @warning Please, not use this class directly, instead use one the concrete
 entities
 */
@interface VODEntity : NSObject

/**
 @name Properties
 */

/**
 Entity's location
 */
@property CLLocationCoordinate2D coordinates;

/**
 Distance between the user and the receiver (in meters)
 */
@property NSUInteger distance;

/**
 @name Entity creation
 */

/**
 Parses the raw response from the service and creates a collection of
 concrete objects.
 
 @warning Throws NSInternalInconsistencyException if response objects is not
 an instance is nil.
 
 @param response The response object expected as an array of NSDictionary elements.
 @return An array of concrete elements.
 */
+ (NSArray *)entitiesFromResponse:(NSArray *)response;

/**
 Creates a new concrete instance based on the values of object. 
 
 Expected structure from Valencia' open data API is:
 
    NSDictionary *object = @{
        @"latDestino"   : @(39471796),
        @"lonDestino"   : @(-36815300),
        @"distancia"    : @(2186),
        @"titulo"       : @"APARCAMIENTOS",
        @"mensaje"      : @"PORTA DE LA MAR - COLON\nPlazas libres: 94"
    };
 
 Values on latDestino and lonDestino would be multiplied by 10^6 in order to
 get valid CLLocationCoordinate2D components.
 
 Value on "titulo" would be ignored because only identifies the concrete type
 
 @warning Raises NSInternalInconsistencyException if object is nil.
 */
+ (instancetype)entityFromResponse:(NSDictionary *)object;

/**
 @name Environtment
 */

/**
 Relative path to the resource
 
 Returns an sring with the format "object/{lat}/{lon}". The request would replace 
 the strings {lat} and {long} with user's coordinates.
 
 @warning Concrete classes *must* override this class method with the documented
 endpoint.
 */
+ (NSString *)relativePath;

@end
<commit_msg>Fixes typo<commit_after>//
//  VODEntity.h
//  VBValenciaOpenData
//
//  Created by <NAME> on 20/02/14.
//  Copyright (c) 2014 <EMAIL>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>

/**
 VODEntity
 
 Base class for all entities.
 
 Represents common data between all objects and exposes common interface
 for his creation from a server's response (@see entityFromResponse:)
 
 @warning Please, not use this class directly, instead use one the concrete
 entities
 */
@interface VODEntity : NSObject

/**
 @name Properties
 */

/**
 Entity's location
 */
@property CLLocationCoordinate2D coordinates;

/**
 Distance between the user and the receiver (in meters)
 */
@property NSUInteger distance;

/**
 @name Entity creation
 */

/**
 Parses the raw response from the service and creates a collection of
 concrete objects.
 
 @warning Throws NSInternalInconsistencyException if response objects is not
 an instance is nil.
 
 @param response The response object expected as an array of NSDictionary elements.
 @return An array of concrete elements.
 */
+ (NSArray *)entitiesFromResponse:(NSArray *)response;

/**
 Creates a new concrete instance based on the values of object. 
 
 Expected structure from Valencia' open data API is:
 
    NSDictionary *object = @{
        @"latDestino"   : @(39471796),
        @"lonDestino"   : @(-36815300),
        @"distancia"    : @(2186),
        @"titulo"       : @"APARCAMIENTOS",
        @"mensaje"      : @"PORTA DE LA MAR - COLON\nPlazas libres: 94"
    };
 
 Values on latDestino and lonDestino would be multiplied by 10^6 in order to
 get valid CLLocationCoordinate2D components.
 
 Value on "titulo" would be ignored because only identifies the concrete type
 
 @warning Raises NSInternalInconsistencyException if object is nil.
 */
+ (instancetype)entityFromResponse:(NSDictionary *)object;

/**
 @name Environment
 */

/**
 Relative path to the resource
 
 Returns an sring with the format "object/{lat}/{lon}". The request would replace 
 the strings {lat} and {long} with user's coordinates.
 
 @warning Concrete classes *must* override this class method with the documented
 endpoint.
 */
+ (NSString *)relativePath;

@end

{'fraction_non_alphanumeric': 0.09566787003610108, 'fraction_numerical': 0.016696750902527077, 'mean_word_length': 3.5701030927835053, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '477866', 'n_tokens_mistral': 1371, 'n_tokens_neox': 1222, 'n_words': 491}