<commit_before>Generator
=========

An agnostic generic template generator that is easy to use. Simplifies your workflow on creating your templates. A highly customizable generator.

## Usage

    $ groovey generator:create Controller User


## Installation

Install using composer. To learn more about composer, visit: https://getcomposer.org/

```json
{
    "require": {
        "groovey/generator": "~1.0"
    }
}
```

Then run `composer.phar` update.

## The Groovey File

On your project root folder. Create a file called `groovey`. Or this could be any project name like `awesome`. Then  paste the code below.

```php
#!/usr/bin/env php
<?php

set_time_limit(0);

use Symfony\Component\Console\Application;
use Groovey\Generator\Generator;

include __DIR__ . '/vendor/autoload.php';

$generator = new Generator;
$app       = new Application;

$generator->load('config.php');

$app->addCommands(
        $generator->getCommands()
    );

$status = $app->run();

exit($status);
```


## The Config File

```php
<?php

$dir = __DIR__ . '/template';

return [
    'Controller' => [
        'source' => $dir . '/template.php',
        'destination' => './output/ARG1.php',
        'replace' => [
            'class' => 'ARG1|ucfirst',
            'data'  => 'Code goes here.'
        ]
    ]

    // Etc.
];
```

<<<<<<< HEAD
## Example Template

Anything that are enclosed by `{{}}` will be replaced. And so with constant values such as `ARG1`, `ARG2`, etc.

File is under `template folder` as specified in the config file.

```php
<?php

class {{class}} extends Controller {

    // {{data}}

}
```


=======
>>>>>>> 6e417ed81473fd415643fa4802aefacaaca94c1a
This is where you can customize your templates.

### Things To Remember

    $ groovey generator:create Controller User

`ARG0` - The 0 argument. Value is `Controller`.
`ARG1` - The 1st argument. Value is `User`.
`ARG2` - The 2nd argument. Value is `Empty`.

`ARGN` - The N'th argument.


## Like Us.

Give a `star` to show your support and love for the project.

## Contribution

Fork `Groovey Seeder` and send us some issues.<commit_msg>added readme.md<commit_after>Generator
=========

An agnostic generic template generator that is easy to use. Simplifies your workflow on creating your templates. A highly customizable generator.

## Usage

    $ groovey generator:create Controller User


## Installation

Install using composer. To learn more about composer, visit: https://getcomposer.org/

```json
{
    "require": {
        "groovey/generator": "~1.0"
    }
}
```

Then run `composer.phar` update.

## The Groovey File

On your project root folder. Create a file called `groovey`. Or this could be any project name like `awesome`. Then  paste the code below.

```php
#!/usr/bin/env php
<?php

set_time_limit(0);

use Symfony\Component\Console\Application;
use Groovey\Generator\Generator;

include __DIR__ . '/vendor/autoload.php';

$generator = new Generator;
$app       = new Application;

$generator->load('config.php');

$app->addCommands(
        $generator->getCommands()
    );

$status = $app->run();

exit($status);
```


## The Config File

```php
<?php

$dir = __DIR__ . '/template';

return [
    'Controller' => [
        'source' => $dir . '/template.php',
        'destination' => './output/ARG1.php',
        'replace' => [
            'class' => 'ARG1|ucfirst',
            'data'  => 'Code goes here.'
        ]
    ]

    // Etc.
];
```

## Example Template

Anything that are enclosed by `{{}}` will be replaced. And so with the constant values such as `ARG1`, `ARG2`, etc.

File is under `template folder` as specified in the config file.

```php
<?php

class {{class}} extends Controller {

    // {{data}}

}
```

This is where you can customize your templates.

### Things To Remember

    $ groovey generator:create Controller User

`ARG0` - The 0 argument. Value is `Controller`.
`ARG1` - The 1st argument. Value is `User`.
`ARG2` - The 2nd argument. Value is `Empty`.

`ARGN` - The N'th argument.


## Like Us.

Give a `star` to show your support and love for the project.

## Contribution

Fork `Groovey Seeder` and send us some issues.
{'fraction_non_alphanumeric': 0.14365175332527208, 'fraction_numerical': 0.011608222490931077, 'mean_word_length': 3.160965794768612, 'pattern_counts': {'":': 4, '<': 16, '<?xml version=': 0, '>': 30, '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': '2416202', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1295, 'n_words': 445}