<commit_before># Serialization Proxy Pattern

This project provides the code samples for the CodeFX post about the Serialization Proxy Pattern. It contains the following classes, which all implement the pattern:

* [ComplexNumber](https://github.com/CodeFX-org/demo-serialization-proxy-pattern/blob/master/src/org/codefx/lab/serialization/proxypattern/ComplexNumber.java): a simple examle where the class can keep its field's final due to the pattern.

As usual, the [Demo](https://github.com/CodeFX-org/demo-serialization-proxy-pattern/blob/master/src/org/codefx/lab/serialization/proxypattern/Demo.java) shows that everything worls as intended. It serializes and deserializes instances of the above classes and prints some explanatory messages to `System.out`.<commit_msg>Included new example in ReadMe.<commit_after># Serialization Proxy Pattern

This project provides the code samples for the CodeFX post about the Serialization Proxy Pattern. It contains the following classes, which all implement the pattern:

* [ComplexNumber](https://github.com/CodeFX-org/demo-serialization-proxy-pattern/blob/master/src/org/codefx/lab/serialization/proxypattern/ComplexNumber.java): a simple example where the class can keep its fields final due to the pattern.
* [InstanceCache](https://github.com/CodeFX-org/demo-serialization-proxy-pattern/blob/master/src/org/codefx/lab/serialization/proxypattern/InstanceCache.java): a slightly more complex example where the class must only serialize the serializable objects it contains in its collection.

As usual, the [Demo](https://github.com/CodeFX-org/demo-serialization-proxy-pattern/blob/master/src/org/codefx/lab/serialization/proxypattern/Demo.java) shows that everything works as intended. It serializes and deserializes instances of the above classes and prints some explanatory messages to `System.out`.
{'fraction_non_alphanumeric': 0.08486486486486486, 'fraction_numerical': 0.0, 'mean_word_length': 5.587188612099644, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '2288596', 'n_tokens_mistral': 496, 'n_tokens_neox': 493, 'n_words': 165}