<commit_before># List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
 - name: Setup django
   before: |
      export INVENTREE_DB_ENGINE='sqlite3'
      export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
      export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
      export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
      export PIP_USER='no'

      python3 -m venv venv
      source venv/bin/activate
      pip install invoke
      inv install
      git clone <EMAIL>:inventree/demo-dataset.git /workspace/InvenTree/inventree-data
      mkdir dev
      inv update
      invoke delete-data -f
      invoke import-records -f /workspace/InvenTree/inventree-data/inventree_data.json

      gp sync-done setup_server

 - name: Start server
   init: gp sync-await setup_server
   command: |
      gp sync-await setup_server
      export INVENTREE_DB_ENGINE='sqlite3'
      export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
      export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
      export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'

      source venv/bin/activate
      inv server

# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
  - port: 8000<commit_msg>Update .gitpod.yml<commit_after># Below the RSA fingerprint for github is hard-encoded. If that does not match in the next few years GH had a bad day.
tasks:
 - name: Setup django
   before: |
      export INVENTREE_DB_ENGINE='sqlite3'
      export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
      export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
      export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
      export PIP_USER='no'

      python3 -m venv venv
      source venv/bin/activate
      pip install invoke
      inv install
      echo 'nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8'  >> ~/.ssh/known_hosts
      git clone <EMAIL>:inventree/demo-dataset.git /workspace/InvenTree/inventree-data
      mkdir dev
      inv update
      invoke delete-data -f
      invoke import-records -f /workspace/InvenTree/inventree-data/inventree_data.json

      gp sync-done setup_server

 - name: Start server
   init: gp sync-await setup_server
   command: |
      gp sync-await setup_server
      export INVENTREE_DB_ENGINE='sqlite3'
      export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
      export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
      export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'

      source venv/bin/activate
      inv server

# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
  - port: 8000
{'fraction_non_alphanumeric': 0.08801431127012523, 'fraction_numerical': 0.008586762075134168, 'mean_word_length': 3.2363636363636363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 3, 'lorem ipsum': 0, 'www.': 3, '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': '6734553', 'n_tokens_mistral': 981, 'n_tokens_neox': 926, 'n_words': 192}