<commit_before>jung
====

Fast signatures for PHP variables, useful for making cache keys, based on [node sigmund](https://github.com/isaacs/sigmund).

```php
require "vendor/autoload.php";

use \rhodesjason\Jung as jung;

jung::sign(55);             // "55"
jung::sign([3,4,5])         // "{031425"
jung::sign(null);           // ""
jung::sign(function () {}); // ""

$a = new stdClass;
$a->fruit = "apple";
$a->list = [1,3,4];
$a->obj = new stdClass;
$a->obj->words = "a cool thing";

jung::sign($a);             // "{fruitapplelist{011324obj{wordsa cool thing"
```

Note: Just like isaacs' sigmund, these signatures are fast and great for cache keys, but you can't get the original value back so it's not useful for much else.

<img src="http://robohash.org/rhodesjason.png?size=600x600" width="300" height="300" /><commit_msg>Revert img tag test change<commit_after>jung
====

Fast signatures for PHP variables, useful for making cache keys, based on [node sigmund](https://github.com/isaacs/sigmund).

```php
require "vendor/autoload.php";

use \rhodesjason\Jung as jung;

jung::sign(55);             // "55"
jung::sign([3,4,5])         // "{031425"
jung::sign(null);           // ""
jung::sign(function () {}); // ""

$a = new stdClass;
$a->fruit = "apple";
$a->list = [1,3,4];
$a->obj = new stdClass;
$a->obj->words = "a cool thing";

jung::sign($a);             // "{fruitapplelist{011324obj{wordsa cool thing"
```

Note: Just like isaacs' sigmund, these signatures are fast and great for cache keys, but you can't get the original value back so it's not useful for much else.
{'fraction_non_alphanumeric': 0.17803030303030304, 'fraction_numerical': 0.03535353535353535, 'mean_word_length': 3.5677233429394812, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 14, 'https://': 2, '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': '1230190', 'n_tokens_mistral': 591, 'n_tokens_neox': 551, 'n_words': 158}