<commit_before>repos = [
  [ name: 'builder',
    components: [[name: 'builder']],
    slackChannel: '#builder',
    runE2e: true,
    workflowComponent: true,
    chart: 'builder',
    tokens: [codecov: 'a4fdc4ad-75fc-4d27-8a21-463e6632d9ff'],
  ],

  [ name: 'controller',
    components: [[name: 'controller']],
    slackChannel: '#controller',
    runE2e: true,
    workflowComponent: true,
    chart: 'controller',
    tokens: [codecov: '<KEY>'],
  ],

  [ name: 'dockerbuilder',
    components: [[name: 'dockerbuilder']],
    slackChannel: '#builder',
    runE2e: true,
    workflowComponent: true,
    chart: 'dockerbuilder',
  ],

  [ name: 'e2e-runner',
    components: [[name: 'e2e-runner']],
    slackChannel: '#testing',
    runE2e: true,
    workflowComponent: false,
  ],

  [ name: 'fluentd',
    components: [[name: 'fluentd']],
    slackChannel: '#logger',
    runE2e: true,
    workflowComponent: true,
    chart: 'fluentd',
  ],

  [ name: 'jenkins',
    components: [[name: 'jenkins']],
    slackChannel: '#testing',
    chart: 'jenkins',
  ],

  [ name: 'jenkins-node',
    components: [[name: 'jenkins-node']],
    slackChannel: '#testing',
    chart: 'jenkins-node',
  ],

  [ name: 'logger',
    components: [[name: 'logger']],
    slackChannel: '#logger',
    runE2e: true,
    workflowComponent: true,
    chart: 'logger',
    tokens: [codecov: '<KEY>'],
  ],

  [ name: 'minio',
    components: [[name: 'minio']],
    slackChannel: '#object-store',
    runE2e: true,
    workflowComponent: true,
    chart: 'minio',
    tokens: [codecov: '<PASSWORD>'],
  ],

  [ name: 'monitor',
    components: [[name: 'grafana'], [name: 'influxdb'], [name: 'telegraf']],
    slackChannel: '#monitor',
    runE2e: false,
    workflowComponent: true,
    chart: 'monitor',
  ],

  [ name: 'nsq',
    components: [[name: 'nsq']],
    slackChannel: '#logger',
    runE2e: true,
    workflowComponent: true,
    chart: 'nsqd',
  ],

  [ name: 'postgres',
    components: [[name: 'postgres']],
    slackChannel: '#postgres',
    runE2e: true,
    workflowComponent: true,
    chart: 'database',
  ],

  [ name: 'redis',
    components: [[name: 'redis']],
    slackChannel: '#logger',
    runE2e: true,
    workflowComponent: true,
    chart: 'redis',
  ],

  [ name: 'registry',
    components: [[name: 'registry']],
    slackChannel: '#registry',
    runE2e: true,
    workflowComponent: true,
    chart: 'registry',
  ],

  // TODO: remove when https://github.com/deis/workflow/issues/766 is resolved
  [ name: 'registry-proxy',
    components: [[name: 'registry-proxy']],
    slackChannel: '#registry',
    runE2e: true,
    workflowComponent: true,
    chart: 'registry-proxy',
  ],

  [ name: 'registry-token-refresher',
    components: [[name: 'registry-token-refresher']],
    slackChannel: '#registry',
    runE2e: false,
    workflowComponent: true,
    chart: 'registry-token-refresher',
  ],

  [ name: 'router',
    components: [[name: 'router']],
    slackChannel: '#router',
    runE2e: true,
    workflowComponent: true,
    chart: 'router',
    tokens: [codecov: '<PASSWORD>'],
  ],

  [ name: 'slugbuilder',
    components: [[name: 'slugbuilder']],
    slackChannel: '#builder',
    runE2e: true,
    workflowComponent: true,
    chart: 'slugbuilder',
  ],

  [ name: 'slugrunner',
    components: [[name: 'slugrunner']],
    slackChannel: '#builder',
    runE2e: true,
    workflowComponent: true,
    chart: 'slugrunner',
  ],

  [ name: 'workflow',
    buildJobs: false,
    slackChannel: '#workflow',
    chart: 'workflow',
  ],

  [ name: 'workflow-cli',
    buildJobs: false,
    slackChannel: '#controller',
  ],

  [ name: 'workflow-e2e',
    components: [[name: 'workflow-e2e']],
    slackChannel: '#testing',
    runE2e: true,
    chart: 'workflow-e2e',
  ],

  [ name: 'workflow-manager',
    components: [[name: 'workflow-manager']],
    slackChannel: '#wfm',
    runE2e: false,
    workflowComponent: true,
    chart: 'workflow-manager',
    tokens: [codecov: '<KEY>'],
  ],
]

repos.each { Map repo ->
  repo.commitEnvVar = "${repo.name.toUpperCase().replaceAll('-', '_')}_SHA"

  repo.components.each { Map component ->
    component.envFile = "/tmp/\${JOB_NAME}/\${BUILD_NUMBER}/${component.name}/env.properties"
  }
}<commit_msg>ref(repo.groovy): send component build messages to #workflow channel<commit_after>repos = [
  [ name: 'builder',
    components: [[name: 'builder']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'builder',
    tokens: [codecov: 'a4fdc4ad-75fc-4d27-8a21-463e6632d9ff'],
  ],

  [ name: 'controller',
    components: [[name: 'controller']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'controller',
    tokens: [codecov: '4<PASSWORD>'],
  ],

  [ name: 'dockerbuilder',
    components: [[name: 'dockerbuilder']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'dockerbuilder',
  ],

  [ name: 'e2e-runner',
    components: [[name: 'e2e-runner']],
    slackChannel: '#testing',
    runE2e: true,
    workflowComponent: false,
  ],

  [ name: 'fluentd',
    components: [[name: 'fluentd']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'fluentd',
  ],

  [ name: 'jenkins',
    components: [[name: 'jenkins']],
    slackChannel: '#testing',
    chart: 'jenkins',
  ],

  [ name: 'jenkins-node',
    components: [[name: 'jenkins-node']],
    slackChannel: '#testing',
    chart: 'jenkins-node',
  ],

  [ name: 'logger',
    components: [[name: 'logger']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'logger',
    tokens: [codecov: '<KEY>'],
  ],

  [ name: 'minio',
    components: [[name: 'minio']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'minio',
    tokens: [codecov: '1<PASSWORD>3-<PASSWORD>-4<PASSWORD>-<PASSWORD>-8<PASSWORD>'],
  ],

  [ name: 'monitor',
    components: [[name: 'grafana'], [name: 'influxdb'], [name: 'telegraf']],
    slackChannel: '#workflow',
    runE2e: false,
    workflowComponent: true,
    chart: 'monitor',
  ],

  [ name: 'nsq',
    components: [[name: 'nsq']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'nsqd',
  ],

  [ name: 'postgres',
    components: [[name: 'postgres']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'database',
  ],

  [ name: 'redis',
    components: [[name: 'redis']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'redis',
  ],

  [ name: 'registry',
    components: [[name: 'registry']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'registry',
  ],

  // TODO: remove when https://github.com/deis/workflow/issues/766 is resolved
  [ name: 'registry-proxy',
    components: [[name: 'registry-proxy']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'registry-proxy',
  ],

  [ name: 'registry-token-refresher',
    components: [[name: 'registry-token-refresher']],
    slackChannel: '#workflow',
    runE2e: false,
    workflowComponent: true,
    chart: 'registry-token-refresher',
  ],

  [ name: 'router',
    components: [[name: 'router']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'router',
    tokens: [codecov: '<PASSWORD>'],
  ],

  [ name: 'slugbuilder',
    components: [[name: 'slugbuilder']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'slugbuilder',
  ],

  [ name: 'slugrunner',
    components: [[name: 'slugrunner']],
    slackChannel: '#workflow',
    runE2e: true,
    workflowComponent: true,
    chart: 'slugrunner',
  ],

  [ name: 'workflow',
    buildJobs: false,
    slackChannel: '#workflow',
    chart: 'workflow',
  ],

  [ name: 'workflow-cli',
    buildJobs: false,
    slackChannel: '#workflow',
  ],

  [ name: 'workflow-e2e',
    components: [[name: 'workflow-e2e']],
    slackChannel: '#testing',
    runE2e: true,
    chart: 'workflow-e2e',
  ],

  [ name: 'workflow-manager',
    components: [[name: 'workflow-manager']],
    slackChannel: '#workflow',
    runE2e: false,
    workflowComponent: true,
    chart: 'workflow-manager',
    tokens: [codecov: '<KEY>'],
  ],
]

repos.each { Map repo ->
  repo.commitEnvVar = "${repo.name.toUpperCase().replaceAll('-', '_')}_SHA"

  repo.components.each { Map component ->
    component.envFile = "/tmp/\${JOB_NAME}/\${BUILD_NUMBER}/${component.name}/env.properties"
  }
}
{'fraction_non_alphanumeric': 0.1835815725666782, 'fraction_numerical': 0.010968710310587692, 'mean_word_length': 3.3266733266733266, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '1006632', 'n_tokens_mistral': 3151, 'n_tokens_neox': 3095, 'n_words': 637}