<commit_before>---
---

# Checking everything works

Below are a couple of scripts for ensuring everything as detailed on the [SETUP page](../../SETUP/setup) works.

1. Go to [this page](https://raw.githubusercontent.com/Chris35Wills/Chris35Wills.github.io/master/courses/Setup_check/installation-test-1.py), right click on the main text, **save target as** and call it installation-test-1.py

2. Run it from the bash shell you set up as detailed on the [SETUP page](../../SETUP/setup)

  ```
  $ cd path/to/where/you/downloaded/the/file
  $ python installation-test-1.py
  Passed
  ```

3. Go to [this page](https://raw.githubusercontent.com/Chris35Wills/Chris35Wills.github.io/master/courses/Setup_check/installation-test-2.py), right click on the main text, **save target as** and call it installation-test-2.py

4. Run it from the bash shell as in step 2

  ```
  $ cd path/to/where/you/downloaded/the/file
  $ python installation-test-1.py
  	  check virtual-shell...  pass
	  ...
	  Successes:
  
	  virtual-shell Bourne Again Shell (bash) 4.2.37
	  ...
  ```

  If you see something like:

  ```
  $ python swc-installation-test-2.py
  check virtual-shell...  fail
  ...
  check for command line shell (virtual-shell) failed:<commit_msg>link to test scripts<commit_after>---
---

# Checking everything works

Below are a couple of scripts for ensuring everything as detailed on the [SETUP page](../../SETUP/setup) works.

1. Download [installation-test-1.py](https://github.com/Chris35Wills/Chris35Wills.github.io/blob/master/courses/Setup_check/installation-test-1.py)

2. Run it from the bash shell you set up as detailed on the [SETUP page](../../SETUP/setup)

  ```
  $ cd path/to/where/you/downloaded/the/file
  $ python installation-test-1.py
  Passed
  ```

3. Download [installation-test-2.py](C:\GitHub\Chris35Wills.github.io\courses\Setup_check\installation-test-2.py)

4. Run it from the bash shell as in step 2

  ```
  $ cd path/to/where/you/downloaded/the/file
  $ python installation-test-1.py
  	  check virtual-shell...  pass
	  ...
	  Successes:
  
	  virtual-shell Bourne Again Shell (bash) 4.2.37
	  ...
  ```

  If you see something like:

  ```
  $ python swc-installation-test-2.py
  check virtual-shell...  fail
  ...
  check for command line shell (virtual-shell) failed:
{'fraction_non_alphanumeric': 0.13590968302214504, 'fraction_numerical': 0.01997394702561876, 'mean_word_length': 3.0634920634920637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2344430', 'n_tokens_mistral': 807, 'n_tokens_neox': 761, 'n_words': 210}