<commit_before># `hoauth` demo site

This is source code of the demo site at http://hoauth.hamstercms.com/yii-user

## Installation


### Prepare
* Install composer: https://getcomposer.org/doc/00-intro.md#installation-nix
* In console go to the parent directory of your future site and issue `git clone https://github.com/SleepWalker/hoauth-demo-site.git`
* Then `cd hoauth-demo-site`

### Install
* Run `composer install` or another composer command based on choosed composer installation
* Run `./protected/vendor/yiisoft/yii/framework/yiic webapp .` (**This was already run for you and included in repo**)
* Edit your db and app config based on [readme](https://github.com/SleepWalker/yii-user) (**for this repo you should specify only db config in protected/config/db.php**)
* Add `require_once(dirname(__FILE__).'/protected/vendor/autoload.php');` to your `index.php` file (**This was already done for you and included in repo**)
* Create `.htaccess` file if you using Apache (**Already done**)
* Run migration `./protected/yiic migrate --migrationPath=user.migrations`

### Integrate with `hoauth`
To integrate `hoauth` with `yii-user` there was created new views in `themes/classic/views/user`.
It was also created controllerMap in config of `yii-user` to overload the default login controller.
See "[Integration step](https://github.com/SleepWalker/hoauth-demo-site/commit/642f74a102f571bad065d882a8ce166a76889a58)" commit for reference.
<commit_msg>Fixes right migration path as in #1<commit_after># `hoauth` demo site

This is source code of the demo site at http://hoauth.hamstercms.com/yii-user

## Installation


### Prepare
* Install composer: https://getcomposer.org/doc/00-intro.md#installation-nix
* In console go to the parent directory of your future site and issue `git clone https://github.com/SleepWalker/hoauth-demo-site.git`
* Then `cd hoauth-demo-site`

### Install
* Run `composer install` or another composer command based on choosed composer installation
* Run `./protected/vendor/yiisoft/yii/framework/yiic webapp .` (**This was already run for you and included in repo**)
* Edit your db and app config based on [readme](https://github.com/SleepWalker/yii-user) (**for this repo you should specify only db config in protected/config/db.php**)
* Add `require_once(dirname(__FILE__).'/protected/vendor/autoload.php');` to your `index.php` file (**This was already done for you and included in repo**)
* Create `.htaccess` file if you using Apache (**Already done**)
* Run migration `./protected/yiic migrate --migrationPath=application.vendor.sleepwalker.yii-user.migrations`

### Integrate with `hoauth`
To integrate `hoauth` with `yii-user` there was created new views in `themes/classic/views/user`.
It was also created controllerMap in config of `yii-user` to overload the default login controller.
See "[Integration step](https://github.com/SleepWalker/hoauth-demo-site/commit/642f74a102f571bad065d882a8ce166a76889a58)" commit for reference.

{'fraction_non_alphanumeric': 0.1173109243697479, 'fraction_numerical': 0.020504201680672268, 'mean_word_length': 5.036511156186613, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '6283019', 'n_tokens_mistral': 944, 'n_tokens_neox': 874, 'n_words': 306}