<commit_before>#!/bin/sh

# update configuration at runtime for configuration files without native environment variable support

# apache/tomcat "front" certificates
cat /var/certs/idp_proxy_key.pem | tee /etc/apache2/certs/idp_proxy_key.pem > /etc/tomcat8/certs/server.key && \
cat /var/certs/idp_proxy_certificate.pem | tee /etc/apache2/certs/idp_proxy_certificate.pem > /etc/tomcat8/certs/server.crt && \
cat /var/certs/idp_proxy_cacertificate.pem > /etc/apache2/certs/idp_proxy_cacertificate.pem && \
cat /etc/tomcat8/certs/server.crt >> /etc/apache2/certs/proxy.pem && printf '\n' >> /etc/apache2/certs/proxy.pem && \
cat /etc/tomcat8/certs/server.key >> /etc/apache2/certs/proxy.pem

# idp certificates<commit_msg>IFS-6249 add idp values to run<commit_after>#!/bin/sh

# update configuration at runtime for configuration files without native environment variable support

# apache/tomcat "front" certificates
cat $IDP_PROXY_KEY | tee /etc/apache2/certs/idp_proxy_key.pem > /etc/tomcat8/certs/server.key && \
cat $IDP_PROXY_CERTIFICATE | tee /etc/apache2/certs/idp_proxy_certificate.pem > /etc/tomcat8/certs/server.crt && \
cat $IDP_PROXY_CACERTIFICATE > /etc/apache2/certs/idp_proxy_cacertificate.pem && \
cat /etc/tomcat8/certs/server.crt >> /etc/apache2/certs/proxy.pem && printf '\n' >> /etc/apache2/certs/proxy.pem && \
cat /etc/tomcat8/certs/server.key >> /etc/apache2/certs/proxy.pem

# idp certificates
{'fraction_non_alphanumeric': 0.13992932862190813, 'fraction_numerical': 0.01696113074204947, 'mean_word_length': 4.467181467181467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '4507700', 'n_tokens_mistral': 567, 'n_tokens_neox': 550, 'n_words': 84}