<commit_before># Update with local file location
- type: replace
  path: /releases/-
  value:
    name: credhub
    url: file:///tmp/credhub-0.3.1.tgz

# Update dev_key with chosen value
- type: replace
  path: /instance_groups/name=bosh/jobs/-
  value:
    name: credhub
    release: credhub
    properties:
      credhub: 
        port: 8844
        user_management:
          uaa:
            url: "https://((internal_ip)):8443"
            verification_key: ((uaa_jwt_signing_key.public_key))
        data_storage:
          type: postgres
          host: 127.0.0.1
          port: 5432
          username: postgres
          password: ((<PASSWORD>))
          database: credhub
        tls: ((credhub_tls))
        log_level: info
        encryption:
          provider: dev_internal
          dev_key: <KEY> #Replace with chosen value - 32 hex characters 

- type: replace
  path: /instance_groups/name=bosh/properties/postgres/additional_databases?/-
  value: credhub

# Configure Director
- type: replace
  path: /instance_groups/name=bosh/properties/director/config_server?
  value:
    enabled: true
    url: "https://((internal_ip)):8844/api/"
    ca_cert: ((credhub_tls.ca))
    uaa:
      url: "https://((internal_ip)):8443"
      ca_cert: ((uaa_ssl.ca))<commit_msg>Removed defaulted values; made user-provided values variables<commit_after># CredHub release file location must be provided 
- type: replace
  path: /releases/-
  value:
    name: credhub
    url: ((file_path_to_credhub_release))

# A chosen dev_key value must be provided in the form of 32 hex characters 
- type: replace
  path: /instance_groups/name=bosh/jobs/-
  value:
    name: credhub
    release: credhub
    properties:
      credhub: 
        user_management:
          uaa:
            url: "https://((internal_ip)):8443"
            verification_key: ((uaa_jwt_signing_key.public_key))
        data_storage:
          type: postgres
          host: 127.0.0.1
          port: 5432
          username: postgres
          password: ((<PASSWORD>))
          database: credhub
        tls: ((credhub_tls))
        encryption:
          provider: dev_internal
          dev_key: ((credhub_dev_key))

- type: replace
  path: /instance_groups/name=bosh/properties/postgres/additional_databases?/-
  value: credhub

# Configure Director
- type: replace
  path: /instance_groups/name=bosh/properties/director/config_server?
  value:
    enabled: true
    url: "https://((internal_ip)):8844/api/"
    ca_cert: ((credhub_tls.ca))
    uaa:
      url: "https://((internal_ip)):8443"
      ca_cert: ((uaa_ssl.ca))
{'fraction_non_alphanumeric': 0.11317110853611433, 'fraction_numerical': 0.021243723445345693, 'mean_word_length': 2.467202141900937, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6287721', 'n_tokens_mistral': 873, 'n_tokens_neox': 821, 'n_words': 189}