<commit_before># Design patterns via Rust

## Types of Patterns

1. Behavioral ([Wiki](https://en.wikipedia.org/wiki/Behavioral_pattern))
1. Creational ([Wiki](https://en.wikipedia.org/wiki/Creational_pattern))
1. Structural ([Wiki](https://en.wikipedia.org/wiki/Structural_pattern))

## Template List

Template name           |    Type    | Status | Links                                                                 |
:-----------------------|:----------:|:------:|:----------------------------------------------------------------------|
Abstract Factory        | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Abstract_factory_pattern)        |
Adapter                 | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Adapter_pattern)                 |
Bridge                  | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Bridge_pattern)                  |
Builder                 | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Builder_pattern)                 |
Chain of Responsibility | Behavioral |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern) |
Command                 | Behavioral |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Command_pattern)                 |
Composite               | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Composite_pattern)               |
Decorator               | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Decorator_pattern)               |
Facade                  | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Facade_pattern)                  |
Factory Method          | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Factory_method_pattern)          |
Flyweight               | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Flyweight_pattern)               |
Interpreter             | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Interpreter_pattern)             |
Iterator                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Iterator_pattern)                |
Mediator                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Mediator_pattern)                |
Memento                 | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Memento_pattern)                 |
Prototype               | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Prototype_pattern)               |
Proxy                   | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Proxy_pattern)                   |
Observer                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Observer_pattern)                |
Singleton               | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Singleton_pattern)               |
State                   | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/State_pattern)                   |
Strategy                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Strategy_pattern)                |
Template Method         | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Template_method_pattern)         |
Visitor                 | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Visitor_pattern)                 |

## Useful links

* [Design Patterns on Wiki](https://en.wikipedia.org/wiki/Design_Patterns)
* [Design patterns card](http://www.mcdonaldland.info/files/designpatterns/designpatternscard.pdf)
* [Шпаргалка по шаблонам проектирования](https://habrahabr.ru/post/210288/)
* [Markdown Cheatsheet](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)<commit_msg>Added link to the Rust Design Patterns book<commit_after># Design patterns via Rust

## Types of Patterns

1. Behavioral ([Wiki](https://en.wikipedia.org/wiki/Behavioral_pattern))
1. Creational ([Wiki](https://en.wikipedia.org/wiki/Creational_pattern))
1. Structural ([Wiki](https://en.wikipedia.org/wiki/Structural_pattern))

## Template List

Template name           |    Type    | Status | Links                                                                 |
:-----------------------|:----------:|:------:|:----------------------------------------------------------------------|
Abstract Factory        | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Abstract_factory_pattern)        |
Adapter                 | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Adapter_pattern)                 |
Bridge                  | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Bridge_pattern)                  |
Builder                 | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Builder_pattern)                 |
Chain of Responsibility | Behavioral |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern) |
Command                 | Behavioral |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Command_pattern)                 |
Composite               | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Composite_pattern)               |
Decorator               | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Decorator_pattern)               |
Facade                  | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Facade_pattern)                  |
Factory Method          | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Factory_method_pattern)          |
Flyweight               | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Flyweight_pattern)               |
Interpreter             | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Interpreter_pattern)             |
Iterator                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Iterator_pattern)                |
Mediator                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Mediator_pattern)                |
Memento                 | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Memento_pattern)                 |
Prototype               | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Prototype_pattern)               |
Proxy                   | Structural |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Proxy_pattern)                   |
Observer                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Observer_pattern)                |
Singleton               | Creational |   ✅   | [Wiki](https://en.wikipedia.org/wiki/Singleton_pattern)               |
State                   | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/State_pattern)                   |
Strategy                | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Strategy_pattern)                |
Template Method         | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Template_method_pattern)         |
Visitor                 | Behavioral |   ⏳   | [Wiki](https://en.wikipedia.org/wiki/Visitor_pattern)                 |

## Useful links

* [Rust Design Patterns](https://rust-unofficial.github.io/patterns/intro.html)
* [Design Patterns on Wiki](https://en.wikipedia.org/wiki/Design_Patterns)
* [Design patterns card](http://www.mcdonaldland.info/files/designpatterns/designpatternscard.pdf)
* [Шпаргалка по шаблонам проектирования](https://habrahabr.ru/post/210288/)
{'fraction_non_alphanumeric': 0.16343263186663023, 'fraction_numerical': 0.0024596884394643345, 'mean_word_length': 1.7057301293900184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 58, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2905564', 'n_tokens_mistral': 2137, 'n_tokens_neox': 2090, 'n_words': 279}