<commit_before>production:
  log_path: '/var/vcap/sys/log/cf-containers-broker/cf-containers-broker.log'
  auth_username: '<%= p('broker.username') %>'
  auth_password: '<%= p('<PASSWORD>') %>'
  cookie_secret: <%= p('broker.cookie_secret') %>
  session_expiry: <%= p('broker.session_expiry') %>

  cc_api_uri: <%= p('cf.api_url') %>
  <%
    def openstruct_to_hash(os)
      os.marshal_dump.map do |key, element|
        element.is_a?(OpenStruct) ? { key => openstruct_to_hash(element) } : { key => element }
      end.reduce(&:merge)
    end

    networks = openstruct_to_hash(spec.networks)
    default_ip = networks.values.find { |net| net.has_key?(:default) }[:ip]
  %>
  external_ip: <%= p('broker.external_ip', default_ip) %>
  external_host: <%= p('broker.host') %>

  ssl_enabled: <%= p('broker.ssl_enabled') %>
  skip_ssl_validation: <%= p('broker.skip_ssl_validation') %>

  host_directory: /var/vcap/store/cf-containers-broker/
  max_containers: <%= p('broker.max_containers') %>
  allocate_docker_host_ports: <%= p('broker.allocate_docker_host_ports') %>

  services: <%= JSON.pretty_generate(p('broker.services')) %>
<commit_msg>pass thru container_env_var_dir to broker (again)<commit_after>production:
  log_path: '/var/vcap/sys/log/cf-containers-broker/cf-containers-broker.log'
  auth_username: '<%= p('broker.username') %>'
  auth_password: '<%= p('<PASSWORD>') %>'
  cookie_secret: <%= p('broker.cookie_secret') %>
  session_expiry: <%= p('broker.session_expiry') %>

  cc_api_uri: <%= p('cf.api_url') %>
  <%
    def openstruct_to_hash(os)
      os.marshal_dump.map do |key, element|
        element.is_a?(OpenStruct) ? { key => openstruct_to_hash(element) } : { key => element }
      end.reduce(&:merge)
    end

    networks = openstruct_to_hash(spec.networks)
    default_ip = networks.values.find { |net| net.has_key?(:default) }[:ip]
  %>
  external_ip: <%= p('broker.external_ip', default_ip) %>
  external_host: <%= p('broker.host') %>

  ssl_enabled: <%= p('broker.ssl_enabled') %>
  skip_ssl_validation: <%= p('broker.skip_ssl_validation') %>

  host_directory: /var/vcap/store/cf-containers-broker/
  max_containers: <%= p('broker.max_containers') %>
  allocate_docker_host_ports: <%= p('broker.allocate_docker_host_ports') %>
  container_env_var_dir: <%= p('broker.container_env_var_dir') %>

  services: <%= JSON.pretty_generate(p('broker.services')) %>

{'fraction_non_alphanumeric': 0.18802345058626466, 'fraction_numerical': 0.0, 'mean_word_length': 4.841075794621027, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 36, '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': '4330768', 'n_tokens_mistral': 959, 'n_tokens_neox': 865, 'n_words': 107}