<commit_before>#!/bin/sh
# TODO: temporary code for debugging purose
# Generate self-signed certificates
openssl req -nodes -x509 -newkey rsa:4096 -subj "/C=CI/ST=CI/L=CI/O=CI/CN=CI" \-keyout ProfileServer.key -out ProfileServer.cer -days 365000
openssl pkcs12 -export -out ProfileServer.pfx -inkey ProfileServer.key -in ProfileServer.cer -passout pass:""
 
# Determine the IP address
extip=$(dig +short myip.opendns.com @resolver1.opendns.com)
sed -i -e "/external_server_address =/ s/= .*/= ${extip}/" ./ProfileServer.conf
 
# Run the thing
dotnet ProfileServer.dll<commit_msg>No dig on the dotnet container<commit_after>#!/bin/sh
# TODO: temporary code for debugging purose
# Generate self-signed certificates
openssl req -nodes -x509 -newkey rsa:4096 -subj "/C=CI/ST=CI/L=CI/O=CI/CN=CI" \-keyout ProfileServer.key -out ProfileServer.cer -days 365000
openssl pkcs12 -export -out ProfileServer.pfx -inkey ProfileServer.key -in ProfileServer.cer -passout pass:""
 
# Determine the IP address
extip=$(curl ipinfo.io/ip)
sed -i -e "/external_server_address =/ s/= .*/= ${extip}/" ./ProfileServer.conf
 
# Run the thing
dotnet ProfileServer.dll
{'fraction_non_alphanumeric': 0.1330998248686515, 'fraction_numerical': 0.02714535901926445, 'mean_word_length': 4.341121495327103, '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': '6560122', 'n_tokens_mistral': 430, 'n_tokens_neox': 388, 'n_words': 112}