<commit_before>---
- scm:
    name: extract-app-performance
    scm:
        - git:
            url: <EMAIL>:alphagov/app-performance-summary.git
            branches:
              - master
- job:
    name: extract-app-performance
    display-name: extract-app-performance
    project-type: freestyle
    description: |
      <p>Extracts error rate information in graphite.</p>
      <p>More information:<a href='https://github.com/alphagov/app-performance-summary'>alphagov/app-performance-summary on GitHub</a>.</p>
    scm:
        - extract-app-performance
    builders:
        - shell: |
            PIPENV_VENV_IN_PROJECT=1 pipenv install --three --skip-lock
            PIPENV_VENV_IN_PROJECT=1 GRAPHITE_URL='https://graphite.<%= @app_domain_internal %>' ./run.sh
    triggers:
        - timed: '<%= @cron_schedule %>'

    wrappers:
      - ansicolor:
          colormap: xterm
      - inject-passwords:
          global: false
          mask-password-params: true
          job-passwords:
            - name: GOOGLE_PRIVATE_KEY_ID
              password:
                '<%= <PASSWORD> %>'
            - name: GOOGLE_PRIVATE_KEY
              password:
                '<%= <PASSWORD> %>'
            - name: GOOGLE_CLIENT_EMAIL
              password:
                '<%= <PASSWORD> %>'
            - name: GOOGLE_CLIENT_ID
              password:
                '<%= <PASSWORD> %>'

    parameters:
        - string:
            name: PLATFORM_METRICS_MAILING_LIST
            description: Email to share reports with.
            default: <%= @google_share_email %><commit_msg>Persist python dependencies between jobs<commit_after>---
- scm:
    name: extract-app-performance
    scm:
        - git:
            url: <EMAIL>:alphagov/app-performance-summary.git
            branches:
              - master
- job:
    name: extract-app-performance
    display-name: extract-app-performance
    project-type: freestyle
    description: |
      <p>Extracts error rate information in graphite.</p>
      <p>More information:<a href='https://github.com/alphagov/app-performance-summary'>alphagov/app-performance-summary on GitHub</a>.</p>
    scm:
        - extract-app-performance
    builders:
        - shell: |
            pipenv install --three --skip-lock
            GRAPHITE_URL='https://graphite.<%= @app_domain_internal %>' ./run.sh
    triggers:
        - timed: '<%= @cron_schedule %>'

    wrappers:
      - ansicolor:
          colormap: xterm
      - inject-passwords:
          global: false
          mask-password-params: true
          job-passwords:
            - name: GOOGLE_PRIVATE_KEY_ID
              password:
                '<%= <PASSWORD>key_id %>'
            - name: GOOGLE_PRIVATE_KEY
              password:
                '<%= <PASSWORD> %>'
            - name: GOOGLE_CLIENT_EMAIL
              password:
                '<%= <PASSWORD> %>'
            - name: GOOGLE_CLIENT_ID
              password:
                '<%= <PASSWORD> %>'

    parameters:
        - string:
            name: PLATFORM_METRICS_MAILING_LIST
            description: Email to share reports with.
            default: <%= @google_share_email %>
{'fraction_non_alphanumeric': 0.11605171870072532, 'fraction_numerical': 0.000630715862503942, 'mean_word_length': 1.6858594411515664, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '4333806', 'n_tokens_mistral': 970, 'n_tokens_neox': 920, 'n_words': 168}