<commit_before>PHP Renamespacer
================

An **unfinished** poor-man's namespace to actual namespace converter

http://philsturgeon.uk/blog/2014/07/deprecate-psr0

Install
-------

```sh
git clone <EMAIL>@github.com:stevelacey/php-renamespacer.git
cd php-renamespacer
composer install
```

Test
----

```sh
./php-renamespacer ./vendor/twig/twig
```

TODO
----

- [ ] Fix method param type hints
- [ ] Fix multiple inherits
- [ ] Jam the namespace declaration in less lazily
- [ ] Avoid & warn about multi-class files
- [ ] Wrap up in Symfony\Console task
- [ ] Summarise and highlight problems such as multiple namespace candidates
- [ ] PHPUnit test against a couple of underscore namespaced libs (Twig & ?)
<commit_msg>Implements, not inherits, like we have that<commit_after>PHP Renamespacer
================

An **unfinished** poor-man's namespace to actual namespace converter

http://philsturgeon.uk/blog/2014/07/deprecate-psr0

Install
-------

```sh
git clone git@github.com:stevelacey/php-renamespacer.git
cd php-renamespacer
composer install
```

Test
----

```sh
./php-renamespacer ./vendor/twig/twig
```

TODO
----

- [ ] Fix method param type hints
- [ ] Fix multiple implements
- [ ] Jam the namespace declaration in less lazily
- [ ] Avoid & warn about multi-class files
- [ ] Wrap up in Symfony\Console task
- [ ] Summarise and highlight problems such as multiple namespace candidates
- [ ] PHPUnit test against a couple of underscore namespaced libs (Twig & ?)

{'fraction_non_alphanumeric': 0.14131897711978467, 'fraction_numerical': 0.009421265141318977, 'mean_word_length': 3.7813504823151125, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '996488', 'n_tokens_mistral': 492, 'n_tokens_neox': 466, 'n_words': 144}