<commit_before>README
======

Description
-----------
This library provides the ability to unserialize and re-serialize php serialized data. Unlike the php unserializer, this
library is not creating the actual objects that are serialized. Therefore no error will be thrown when the serialized
class isn't found. This can come in handy when using multiple applications that share data via php serialization.


Master: [![Build Status](https://secure.travis-ci.org/jeroenvdheuvel/serialization.png?branch=master)](https://travis-ci.org/jeroenvdheuvel/serialization)


Facts!!1one
-----
It's impossible to create a new property on an object
Each serialized property of an object has a value. When the value isn't set explicitly before, the default value will be NULL

It's possible to create a new property on an array

It's possible to change the type of value. For instance a variable containing a boolean can be unserialized, but the same variable can be serialized containing an integer or any other type<commit_msg>Readme updated<commit_after>README
======

Description
-----------
This library provides the ability to unserialize and re-serialize php serialized data. Unlike the php unserializer, this
library is not creating the actual objects that were serialized. Therefore no error will be thrown when the serialized
class could not be found. This can come in handy when using multiple applications share data via php serialization.


Master: [![Build Status](https://secure.travis-ci.org/jeroenvdheuvel/serialization.png?branch=master)](https://travis-ci.org/jeroenvdheuvel/serialization)


Known issues
------------
Although serialized references can be unserialized. Unserialized references are merely a duplicate of the original data.
When serializing this data again, it will differ from the php native serializer. Due to this malfunction, the
unserializer doesn't support references that can cause a loop.

For instance:
```php
$array = [];
$array[] = &$array;
```
{'fraction_non_alphanumeric': 0.0819423368740516, 'fraction_numerical': 0.0005058168942842691, 'mean_word_length': 4.635327635327635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2382304', 'n_tokens_mistral': 505, 'n_tokens_neox': 481, 'n_words': 245}