<commit_before>**Some playbooks require a 'Vault password' to run properly.** Ask one of the developers for this password.

# Running express_local
* Vagrant commands
  * To start the VM, open a Terminal window and type the following commands:  
    ```
    cd ~/vms/express_local
    vagrant up

    ```
  * To stop the VM, open a Terminal window and type the following commands:  
    ```
    cd ~/vms/express_local
    vagrant halt

    ```
  * To start a share session (requires account on atlas.hashicorp.com)
    ```
    cd ~/vms/express_local
    vagrant login
    vagrant share

    ```
* SSH Keys
  * Follow [GitHub's instructions](https://help.github.com/articles/generating-ssh-keys/) to setup an SSH key.
  * Unlock your SSH key (_will not work if the VM hasn't been created, may be needed before updating code_):  
    ```
    cd ~/express_local/data/code/dslm_base/profiles/cu_fit  
    git pull

    ```
* Express_local commands
  * Create a new express site:  
    ```
    cd ~/vms/express_local  
    ansible-playbook -i ansible/hosts ansible/express_site.yml

    ```
  * Run tests:  
    ```
    cd ~/vms/express_local  
    ansible-playbook -i ansible/hosts ansible/run_tests.yml

    ```
  * Update code to the latest version of Express 2.0:  
    ```
    cd ~/vms/express_local  
    ansible-playbook -i ansible/hosts ansible/update_repos.yml

    ```
* SSH onto the VM:  
  `ssh express.local`
* Commands that run on the VM (_SSH onto the VM first_):
  * Run tests:
    ```
    cd /data/web/express/testing/profiles/cu_fit/tests  
    behat --tags=[tag_you_want_to_test]

    ```
  * Use CodeSniffer.

    `drupalcs` is an alias to phpcs with the Code Standard and types of file extensions to scan predefined. The extensions are `php, module, inc, install, test, profile, theme, js, css, info, txt`
    ```
    phpcs --standard=Drupal /path/to/example.module
    drupalcs /path/to/example.module

    ```
<commit_msg>Documented command to run playbook with flags instead of answering prompts.<commit_after>**Some playbooks require a 'Vault password' to run properly.** Ask one of the developers for this password.

# Running express_local
* Vagrant commands
  * To start the VM, open a Terminal window and type the following commands:  
    ```
    cd ~/vms/express_local
    vagrant up

    ```
  * To stop the VM, open a Terminal window and type the following commands:  
    ```
    cd ~/vms/express_local
    vagrant halt

    ```
  * To start a share session (requires account on atlas.hashicorp.com)
    ```
    cd ~/vms/express_local
    vagrant login
    vagrant share

    ```
* SSH Keys
  * Follow [GitHub's instructions](https://help.github.com/articles/generating-ssh-keys/) to setup an SSH key.
  * Unlock your SSH key (_will not work if the VM hasn't been created, may be needed before updating code_):  
    ```
    cd ~/express_local/data/code/dslm_base/profiles/cu_fit  
    git pull

    ```
* Express_local commands
  * Create a new express site:  
    ```
    cd ~/vms/express_local
    ansible-playbook -i ansible/hosts ansible/express_site.yml

    ```
    ```
    cd ~/vms/express_local
    ansible-playbook -i ansible/hosts ansible/express_site.yml --extra-vars "type=[r,reinstall,c,create] profile=[e,express,f,fit] path=[anything-you-want]"

    ```
  * Run tests:  
    ```
    cd ~/vms/express_local  
    ansible-playbook -i ansible/hosts ansible/run_tests.yml

    ```
  * Update code to the latest version of Express 2.0:  
    ```
    cd ~/vms/express_local  
    ansible-playbook -i ansible/hosts ansible/update_repos.yml

    ```
* SSH onto the VM:  
  `ssh express.local`
* Commands that run on the VM (_SSH onto the VM first_):
  * Run tests:
    ```
    cd /data/web/express/testing/profiles/cu_fit/tests  
    behat --tags=[tag_you_want_to_test]

    ```
  * Use CodeSniffer.

    `drupalcs` is an alias to phpcs with the Code Standard and types of file extensions to scan predefined. The extensions are `php, module, inc, install, test, profile, theme, js, css, info, txt`
    ```
    phpcs --standard=Drupal /path/to/example.module
    drupalcs /path/to/example.module

    ```

{'fraction_non_alphanumeric': 0.10601304032842308, 'fraction_numerical': 0.0009659502535619416, 'mean_word_length': 2.838739573679333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7175758', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1319, 'n_words': 422}