<commit_before>Boxer
=====

Annotation based serialization library for Java and Android frameworks,
by generating boilerplate code.

* Define classes as serializable with the <code>@Box</code> annotation.
And by implementing the <code>Boxable</code> interface.
* Serialize fields with the <code>@Packet</code> annotation
* Default non-class serialization possible

```java
@Box
public class Example implements Boxable {

    @Packet
    private int height;

    @Packet
    private int width;

    @Packet
    public double weight;

    //Empty constructor for Injection
    public Example(){

    }

    //Getters and Setters for private fields
}
```

Retrieving a <code>Boxer</code> instance, and serializing and de-serializing your data.

Example using the <code>Bundle</code> class:

```java
public class ExampleActivity extends Activity {

    @Override
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);

        Boxer boxer = Boxer.from(outState);
        boxer.addBoxable("Example", new Example());
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Boxer boxer = Boxer.from(savedInstanceState);
        boxer.getBoxable("Example", Example.class);
    }
}
```

Current supported supported classes:

* (Android) Bundle
* (Android) Parcel
* (Java/Android) DataMap

__Still in early alpha phase!__

Dependency
----------
Adding it as a dependency to your project.

```xml
<dependency>
  <groupId>com.larswerkman</groupId>
  <artifactId>boxer</artifactId>
  <version>0.0.1</version>
</dependency>
```

```groovy
dependencies {
    compile 'com.larswerkman:Boxer:0.0.1'
}
```
License
-------

    Copyright 2014 <NAME>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<commit_msg>readme update<commit_after>Boxer
=====

Annotation based serialization library for Java and Android frameworks,
by generating boilerplate code.

* Define classes as serializable with the <code>@Box</code> annotation.
And by implementing the <code>Boxable</code> interface.
* Serialize fields with the <code>@Packet</code> annotation
* Default non-class serialization possible

```java
@Box
public class Example implements Boxable {

    @Packet
    private int height;

    @Packet
    private int width;

    @Packet
    public double weight;

    //Empty constructor for Injection
    public Example(){

    }

    //Getters and Setters for private fields
}
```

Retrieving a <code>Boxer</code> instance, and serializing and de-serializing your data.

Example using the <code>Bundle</code> class:

```java
public class ExampleActivity extends Activity {

    @Override
    public void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);

        Boxer boxer = Boxer.from(outState);
        boxer.addBoxable("Example", new Example());
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Boxer boxer = Boxer.from(savedInstanceState);
        boxer.getBoxable("Example", Example.class);
    }
}
```

Current supported supported classes:

* (Android) Bundle
* (Android) Parcel
* (Java/Android) DataMap

__Still in early alpha phase!__

Dependency
----------
Adding it as a dependency to your project.

```xml
<dependency>
  <groupId>com.larswerkman</groupId>
  <artifactId>boxer</artifactId>
  <version>0.0.1</version>
</dependency>
```

```groovy
dependencies {
    compile 'com.larswerkman:boxer:0.0.1'
}
```
License
-------

    Copyright 2014 <NAME>

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
{'fraction_non_alphanumeric': 0.10031631269769543, 'fraction_numerical': 0.0063262539539087215, 'mean_word_length': 3.5451745379876796, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3557442', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1203, 'n_words': 430}