<commit_before># JFObjectMapping

## Usage

To run the example project; clone the repo, and run `pod install` from the Example directory first.

## Requirements

## Installation

JFObjectMapping is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:

    pod "JFObjectMapping"

See example for more details.

## Author

<NAME>, <EMAIL>

## License

JFObjectMapping is available under the MIT license. See the LICENSE file for more info.

<commit_msg>Added usage notes<commit_after># JFObjectMapping

## Usage

To run the example project; clone the repo, and run `pod install` from the Example directory first.

## Requirements

## Installation

JFObjectMapping is available through [CocoaPods](http://cocoapods.org), to install
it simply add the following line to your Podfile:

    pod "JFObjectMapping"

## Usage

First, update your model to extend JFObject class, eg.:

```
#import "JFObject.h"

@class JFTestSubObject;


@interface JFTestObject : JFObject

@property(nonatomic, retain) NSString        *testString;
@property(nonatomic, retain) NSNumber        *testNumber;
@property(nonatomic, retain) NSDictionary    *testDictionary;
@property(nonatomic, retain) NSArray         *testArray;
@property(nonatomic, retain) NSSet           *testSet;
@property(nonatomic, retain) JFTestSubObject *testSubObject;

@end
```

Then you can use these cool features:

```
@protocol JFSerializableProtocol <NSObject>

- (NSDictionary *)toDictionary;

+ (NSArray *)toDictionaryArray:(NSArray *)array;

- (NSData *)toJson;

+ (NSData *)toJsonArray:(NSArray *)array;

- (NSString *)toJsonString;

+ (NSString *)toJsonArrayString:(NSArray *)array;

+ (instancetype)fromDictionary:(NSDictionary *)dictionary;

+ (NSArray *)fromDictionaryArray:(NSArray *)dictionaryArray;

+ (instancetype)fromJson:(NSData *)data;

+ (NSArray *)fromJsonArray:(NSData *)data;

+ (instancetype)fromJsonString:(NSString *)string;

+ (NSArray *)fromJsonArrayString:(NSString *)string;

- (void)afterPropertiesSet;

@end
```

See example for more details.

## Author

<NAME>, <EMAIL>

## License

JFObjectMapping is available under the MIT license. See the LICENSE file for more info.


{'fraction_non_alphanumeric': 0.10980569362855852, 'fraction_numerical': 0.0, 'mean_word_length': 5.2719546742209635, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '1902952', 'n_tokens_mistral': 710, 'n_tokens_neox': 669, 'n_words': 212}