<commit_before><IfModule mod_ssl.c>
  #
  # Pseudo Random Number Generator (PRNG):
  # Configure one or more sources to seed the PRNG of the SSL library.
  # The seed data should be of good random quality.
  # WARNING! On some platforms /dev/random blocks if not enough entropy
  # is available. This means you then cannot use the /dev/random device
  # because it would lead to very long connection times (as long as
  # it requires to make more entropy available). But usually those
  # platforms additionally provide a /dev/urandom device which doesn't
  # block. So, if available, use this one instead. Read the mod_ssl User
  # Manual for more details.
  #
  SSLRandomSeed startup builtin
  SSLRandomSeed startup file:/dev/urandom 512
  SSLRandomSeed connect builtin
  SSLRandomSeed connect file:/dev/urandom 512

  ##
  ##  SSL Global Context
  ##
  ##  All SSL configuration in this context applies both to
  ##  the main server and all SSL-enabled virtual hosts.
  ##

  #
  #   Some MIME-types for downloading Certificates and CRLs
  #
  AddType application/x-x509-ca-cert .crt
  AddType application/x-pkcs7-crl    .crl

  #   Pass Phrase Dialog:
  #   Configure the pass phrase gathering process.
  #   The filtering dialog program (`builtin' is a internal
  #   terminal dialog) has to provide the pass phrase on stdout.
<% if %w[debian].include?(node['platform_family']) -%>
  SSLPassPhraseDialog exec:/usr/share/apache2/ask-for-passphrase
<% else -%>
  SSLPassPhraseDialog  builtin
<% end -%>

  #   Inter-Process Session Cache:
  #   Configure the SSL Session Cache: First the mechanism
  #   to use and second the expiring timeout (in seconds).
  #SSLSessionCache         dbm:/var/run/apache2/ssl_scache
  <% if %w[rhel fedora suse].include?(node['platform_family']) -%>
  SSLSessionCache        shmcb:/var/cache/mod_ssl/scache(512000)
  <% elsif %w[freebsd].include?(node['platform_family']) -%>
  SSLSessionCache        shmcb:/var/run/ssl_scache(512000)
  <% else -%>
  SSLSessionCache        shmcb:/var/run/apache2/ssl_scache
  <% end -%>
  SSLSessionCacheTimeout  300

<% if node['apache']['version'] != '2.4' -%>
  #   Semaphore:
  #   Configure the path to the mutual exclusion semaphore the
  #   SSL engine uses internally for inter-process synchronization.
  <% if %w[rhel fedora suse].include?(node['platform_family']) -%>
  SSLMutex  default<commit_msg>ask-for-passphrase doesn't exist on ubuntu lucid and older debian releases. It is better to limit this change to apache 2.4 and above to ensure backwards compatibility<commit_after><IfModule mod_ssl.c>
  #
  # Pseudo Random Number Generator (PRNG):
  # Configure one or more sources to seed the PRNG of the SSL library.
  # The seed data should be of good random quality.
  # WARNING! On some platforms /dev/random blocks if not enough entropy
  # is available. This means you then cannot use the /dev/random device
  # because it would lead to very long connection times (as long as
  # it requires to make more entropy available). But usually those
  # platforms additionally provide a /dev/urandom device which doesn't
  # block. So, if available, use this one instead. Read the mod_ssl User
  # Manual for more details.
  #
  SSLRandomSeed startup builtin
  SSLRandomSeed startup file:/dev/urandom 512
  SSLRandomSeed connect builtin
  SSLRandomSeed connect file:/dev/urandom 512

  ##
  ##  SSL Global Context
  ##
  ##  All SSL configuration in this context applies both to
  ##  the main server and all SSL-enabled virtual hosts.
  ##

  #
  #   Some MIME-types for downloading Certificates and CRLs
  #
  AddType application/x-x509-ca-cert .crt
  AddType application/x-pkcs7-crl    .crl

  #   Pass Phrase Dialog:
  #   Configure the pass phrase gathering process.
  #   The filtering dialog program (`builtin' is a internal
  #   terminal dialog) has to provide the pass phrase on stdout.
<% if %w[debian].include?(node['platform_family']) && node['apache']['version'] == '2.4' -%>
  SSLPassPhraseDialog exec:/usr/share/apache2/ask-for-passphrase
<% else -%>
  SSLPassPhraseDialog  builtin
<% end -%>

  #   Inter-Process Session Cache:
  #   Configure the SSL Session Cache: First the mechanism
  #   to use and second the expiring timeout (in seconds).
  #SSLSessionCache         dbm:/var/run/apache2/ssl_scache
  <% if %w[rhel fedora suse].include?(node['platform_family']) -%>
  SSLSessionCache        shmcb:/var/cache/mod_ssl/scache(512000)
  <% elsif %w[freebsd].include?(node['platform_family']) -%>
  SSLSessionCache        shmcb:/var/run/ssl_scache(512000)
  <% else -%>
  SSLSessionCache        shmcb:/var/run/apache2/ssl_scache
  <% end -%>
  SSLSessionCacheTimeout  300

<% if node['apache']['version'] != '2.4' -%>
  #   Semaphore:
  #   Configure the path to the mutual exclusion semaphore the
  #   SSL engine uses internally for inter-process synchronization.
  <% if %w[rhel fedora suse].include?(node['platform_family']) -%>
  SSLMutex  default
{'fraction_non_alphanumeric': 0.09777777777777778, 'fraction_numerical': 0.01292929292929293, 'mean_word_length': 3.5463728191000916, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2474121', 'n_tokens_mistral': 1609, 'n_tokens_neox': 1532, 'n_words': 512}