<commit_before># Victoire demo (standard-project)

##Install

```
composer create-project victoire/demo myVictoire "1.0.*@dev"
```

Then, you have to edit app/config/victoire_core.yml and change domain names for yours:
```
    locale_pattern_table:
        my_victoire.dev: fr
        demo.victoire.fr: fr
```

Import the demo database in var/dump/db.sql

or do it yourself by doing the usual stuff.

    php bin/console doctrine:database:create
    php bin/console doctrine:schema:create
    php bin/console victoire:generate:view-cache --env=dev
    php bin/console doctrine:fixtures:load --fixtures="vendor/victoire/victoire/Bundle/CoreBundle/DataFixtures/ORM"


Setup your virtualhost as usual and go to http://demo.victoire.dev/app_dev.php/login (assuming your local virtualhost is called demo.victoire.dev) and enter these credentials to start to test Victoire:

|Login|Password|
|-----|--------|
|`<EMAIL>`|test|

[https://github.com/Victoire/victoire](https://github.com/Victoire/victoire)<commit_msg>Indication to enable APC in CLI mode<commit_after># Victoire demo (standard-project)

##Install

```
composer create-project victoire/demo myVictoire "1.0.*@dev"
```

Then, you have to edit app/config/victoire_core.yml and change domain names for yours:
```
    locale_pattern_table:
        my_victoire.dev: fr
        demo.victoire.fr: fr
```

Import the demo database in var/dump/db.sql

or do it yourself by doing the usual stuff.

    php bin/console doctrine:database:create
    php bin/console doctrine:schema:create
    php bin/console victoire:generate:view-cache --env=dev
    php bin/console doctrine:fixtures:load --fixtures="vendor/victoire/victoire/Bundle/CoreBundle/DataFixtures/ORM"

*Careful* : please notice that Victoire needs APC in CLI mode. to do so, add these two lines in your php.ini config file

```ini
    apc.enabled = 1
    apc.enable_cli = 1
```

Setup your virtualhost as usual and go to http://demo.victoire.dev/app_dev.php/login (assuming your local virtualhost is called demo.victoire.dev) and enter these credentials to start to test Victoire:

|Login|Password|
|-----|--------|
|`<EMAIL>`|test|

[https://github.com/Victoire/victoire](https://github.com/Victoire/victoire)
{'fraction_non_alphanumeric': 0.12088407758231845, 'fraction_numerical': 0.0027063599458728013, 'mean_word_length': 4.006772009029345, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2383705', 'n_tokens_mistral': 740, 'n_tokens_neox': 685, 'n_words': 200}