<commit_before># Code Generation Utils for PHP-Parser

Code Generation Utils is a small library that is not yet intended for general use.

It is a small project that aims at collecting common solutions to code generation problems
that I often face, and for now it doesn't have a really solid structure.

I built it to workaround limitations that I often faced while working
with [`Zend\Code`](https://github.com/zendframework/zf2/tree/master/library/Zend/Code),
and it is mainly based on the logic of [PHP-Parser](https://github.com/nikic/PHP-Parser).

It will be stabilized together with [GeneratedHydrator](https://github.com/Ocramius/GeneratedHydrator)
and [ProxyManager](https://github.com/Ocramius/ProxyManager) when these two both have
reached at least version `1.0.0`.

| Tests | Releases | Downloads |
| ----- | -------- | ------- |
|[![Build Status](https://travis-ci.org/Ocramius/CodeGenerationUtils.png?branch=master)](https://travis-ci.org/Ocramius/CodeGenerationUtils) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/?branch=master)|[![Latest Stable Version](https://poser.pugx.org/ocramius/code-generator-utils/v/stable.png)](https://packagist.org/packages/ocramius/code-generator-utils) [![Latest Unstable Version](https://poser.pugx.org/ocramius/code-generator-utils/v/unstable.png)](https://packagist.org/packages/ocramius/code-generator-utils)|[![Total Downloads](https://poser.pugx.org/ocramius/code-generator-utils/downloads.png)](https://packagist.org/packages/ocramius/code-generator-utils)|

## Installation

Supported installation method is via composer:

```sh
$ php composer.phar require ocramius/code-generator-utils:0.3.*
```

## Provided components<commit_msg>Fix installation instructions to require latest version<commit_after># Code Generation Utils for PHP-Parser

Code Generation Utils is a small library that is not yet intended for general use.

It is a small project that aims at collecting common solutions to code generation problems
that I often face, and for now it doesn't have a really solid structure.

I built it to workaround limitations that I often faced while working
with [`Zend\Code`](https://github.com/zendframework/zf2/tree/master/library/Zend/Code),
and it is mainly based on the logic of [PHP-Parser](https://github.com/nikic/PHP-Parser).

It will be stabilized together with [GeneratedHydrator](https://github.com/Ocramius/GeneratedHydrator)
and [ProxyManager](https://github.com/Ocramius/ProxyManager) when these two both have
reached at least version `1.0.0`.

| Tests | Releases | Downloads |
| ----- | -------- | ------- |
|[![Build Status](https://travis-ci.org/Ocramius/CodeGenerationUtils.png?branch=master)](https://travis-ci.org/Ocramius/CodeGenerationUtils) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Ocramius/CodeGenerationUtils/?branch=master)|[![Latest Stable Version](https://poser.pugx.org/ocramius/code-generator-utils/v/stable.png)](https://packagist.org/packages/ocramius/code-generator-utils) [![Latest Unstable Version](https://poser.pugx.org/ocramius/code-generator-utils/v/unstable.png)](https://packagist.org/packages/ocramius/code-generator-utils)|[![Total Downloads](https://poser.pugx.org/ocramius/code-generator-utils/downloads.png)](https://packagist.org/packages/ocramius/code-generator-utils)|

## Installation

Supported installation method is via composer:

```sh
$ php composer.phar require ocramius/code-generator-utils
```

## Provided components
{'fraction_non_alphanumeric': 0.14745175655616033, 'fraction_numerical': 0.002474022761009401, 'mean_word_length': 5.4072900158478605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 32, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1284758', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1257, 'n_words': 251}