<commit_before>---
- scm:
    name: search-api
    scm:
      - git:
          url: <EMAIL>:alphagov/search-api.git
          branches:
            - migrate-ltr-to-jenkins
- job:
    name: search-api-learn-to-rank
    display-name: Search API Learn to Rank
    project-type: freestyle
    description: This job spins up an EC2 instances to generate training data, then uses AWS SageMaker to train and deploy a model.
    scm:
      - search-api
    logrotate:
        numToKeep: 100
    triggers:
      - timed: |
          TZ=Europe/London
          0 22 * * SUN
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    publishers:
      - trigger-parameterized-builds:
          - project: Success_Passive_Check
            condition: SUCCESS
            predefined-parameters: |
                NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                NSCA_OUTPUT=<%= @service_description %> success
          - project: Failure_Passive_Check<commit_msg>Fix cron schedule for the LTR jenkins job<commit_after>---
- scm:
    name: search-api
    scm:
      - git:
          url: <EMAIL>:alphagov/search-api.git
          branches:
            - migrate-ltr-to-jenkins
- job:
    name: search-api-learn-to-rank
    display-name: Search API Learn to Rank
    project-type: freestyle
    description: This job spins up an EC2 instances to generate training data, then uses AWS SageMaker to train and deploy a model.
    scm:
      - search-api
    logrotate:
        numToKeep: 100
    triggers:
      - timed: |
          TZ=Europe/London
          0 22 * * 7
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    publishers:
      - trigger-parameterized-builds:
          - project: Success_Passive_Check
            condition: SUCCESS
            predefined-parameters: |
                NSCA_CHECK_DESCRIPTION=<%= @service_description %>
                NSCA_OUTPUT=<%= @service_description %> success
          - project: Failure_Passive_Check
{'fraction_non_alphanumeric': 0.08737864077669903, 'fraction_numerical': 0.010194174757281554, 'mean_word_length': 1.8545706371191135, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '6721692', 'n_tokens_mistral': 650, 'n_tokens_neox': 608, 'n_words': 154}