<commit_before>apiVersion: v1
kind: Template
metadata:
  name: bayesian-config
objects:
- apiVersion: v1
  kind: ConfigMap
  metadata:
    name: bayesian-config
  data:
    deployment-prefix: "${DEPLOYMENT_PREFIX}"
    s3-bucket-for-analyses: "${DEPLOYMENT_PREFIX}-${S3_BUCKET_FOR_ANALYSES}"
    s3-bucket-for-package-analyses: "${DEPLOYMENT_PREFIX}-${S3_BUCKET_FOR_PACKAGE_ANALYSES}"
    dynamodb-prefix: "${DEPLOYMENT_PREFIX}"
    keycloak-url: "${KEYCLOAK_URL}"

parameters:
- description: Deployment prefix used for deployment-specific AWS resources
  displayName: Deployment prefix
  required: true
  name: DEPLOYMENT_PREFIX
  value: "dev"

- description: Name of the S3 bucket where to store analyses
  displayName: S3 bucket for analyses
  required: true
  name: S3_BUCKET_FOR_ANALYSES
  value: "bayesian-core-data"

- description: Name of the S3 bucket where to store package analyses
  displayName: S3 bucket for package analyses
  required: true
  name: S3_BUCKET_FOR_PACKAGE_ANALYSES
  value: "bayesian-core-package-data"

- description: Keycloak URL
  displayName: Keycloak URL
  required: false
  name: KEYCLOAK_URL
  value: ""
<commit_msg>[openshift] Add 3scale API host URL to the CM template<commit_after>apiVersion: v1
kind: Template
metadata:
  name: bayesian-config
objects:
- apiVersion: v1
  kind: ConfigMap
  metadata:
    name: bayesian-config
  data:
    deployment-prefix: "${DEPLOYMENT_PREFIX}"
    s3-bucket-for-analyses: "${DEPLOYMENT_PREFIX}-${S3_BUCKET_FOR_ANALYSES}"
    s3-bucket-for-package-analyses: "${DEPLOYMENT_PREFIX}-${S3_BUCKET_FOR_PACKAGE_ANALYSES}"
    dynamodb-prefix: "${DEPLOYMENT_PREFIX}"
    keycloak-url: "${KEYCLOAK_URL}"
    three-scale-api-host-url: "${THREE_SCALE_API_HOST_URL}"

parameters:
- description: Deployment prefix used for deployment-specific AWS resources
  displayName: Deployment prefix
  required: true
  name: DEPLOYMENT_PREFIX
  value: "dev"

- description: Name of the S3 bucket where to store analyses
  displayName: S3 bucket for analyses
  required: true
  name: S3_BUCKET_FOR_ANALYSES
  value: "bayesian-core-data"

- description: Name of the S3 bucket where to store package analyses
  displayName: S3 bucket for package analyses
  required: true
  name: S3_BUCKET_FOR_PACKAGE_ANALYSES
  value: "bayesian-core-package-data"

- description: Keycloak URL
  displayName: Keycloak URL
  required: false
  name: KEYCLOAK_URL
  value: ""

- description: 3scale API host URL
  displayName: 3scale API host URL
  required: false
  name: THREE_SCALE_API_HOST_URL
  value: ""
{'fraction_non_alphanumeric': 0.08897637795275591, 'fraction_numerical': 0.01062992125984252, 'mean_word_length': 4.748868778280543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '752730', 'n_tokens_mistral': 901, 'n_tokens_neox': 864, 'n_words': 224}