<commit_before>PHP Pattern
===========

[![Build Status](https://travis-ci.org/QoboLtd/PHP-Pattern.svg?branch=master)](https://travis-ci.org/QoboLtd/PHP-Pattern)

PHP library to manipulate text patterns with placeholders.

Install
-------

Add a dependency on ```qobo/pattern``` to your project's ```composer.json``` like so:

```
{
	"require": {
		"qobo/pattern": "1.0.*"
	}
}
```

Usage
-----

Here is the simplest example of usage:

```
<?php
use \Qobo\Pattern\Pattern;

$pattern = new Pattern('Hello %%NAME%%');
print $pattern->parse(array('NAME' => 'Leonid'));
// result: Hello Leonid
?>
```

For more examples, check the unit tests.<commit_msg>Minor fix for README.md<commit_after>PHP Pattern
===========

[![Build Status](https://travis-ci.org/QoboLtd/PHP-Pattern.svg?branch=master)](https://travis-ci.org/QoboLtd/PHP-Pattern)

PHP library to manipulate text patterns with placeholders.

Install
-------

Add a dependency on ```qobo/pattern``` to your project's ```composer.json``` like so:

```
{
	"require": {
		"qobo/pattern": "~1.0"
	}
}
```

Usage
-----

Here is the simplest example of usage:

```
<?php
use \Qobo\Pattern\Pattern;

$pattern = new Pattern('Hello %%NAME%%');
print $pattern->parse(array('NAME' => 'Leonid'));
// result: Hello Leonid
?>
```

For more examples, check the unit tests.
{'fraction_non_alphanumeric': 0.2108479755538579, 'fraction_numerical': 0.0030557677616501145, 'mean_word_length': 4.24, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 9, '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': '2157404', 'n_tokens_mistral': 479, 'n_tokens_neox': 447, 'n_words': 112}