<commit_before>#!/usr/bin/env sh
# Generate a self signed SSL certificate for use in node
# Following the instructions here:
# https://docs.nodejitsu.com/articles/HTTP/servers/how-to-create-a-HTTPS-server/

keyfile=key.pem
certfile=cert.pem
passphrase="<PASSWORD>"

# Old generation of keys
# openssl genrsa -out "$keyfile"
# openssl req -new -key "$keyfile" -out csr.pem
# openssl x509 -req -days 9999 -in csr.pem -signkey "$keyfile" -out "$certfile"

openssl genrsa -passout pass:$passphrase -out key.pass.pem 2048
openssl rsa -passin pass:x -in key.pass.pem -out key.pem
rm key.pass.pem
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out cert.pem

rm csr.pem<commit_msg>script uses now defined variables<commit_after>#!/usr/bin/env sh
# Generate a self signed SSL certificate for use in node
# Following the instructions here:
# https://docs.nodejitsu.com/articles/HTTP/servers/how-to-create-a-HTTPS-server/

keyfile=key.pem
certfile=cert.pem
passphrase="<PASSWORD>"

# Old generation of keys
# openssl genrsa -out "$keyfile"
# openssl req -new -key "$keyfile" -out csr.pem
# openssl x509 -req -days 9999 -in csr.pem -signkey "$keyfile" -out "$certfile"

openssl genrsa -passout pass:$passphrase -out key.pass.pem 2048
openssl rsa -passin pass:x -in key.pass.pem -out "$keyfile"
rm key.pass.pem
openssl req -new -key "$keyfile" -out csr.pem
openssl x509 -req -days 365 -in csr.pem -signkey "$keyfile" -out "$certfile"

rm csr.pem
{'fraction_non_alphanumeric': 0.12920592193808883, 'fraction_numerical': 0.02288021534320323, 'mean_word_length': 3.9732441471571907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4537261', 'n_tokens_mistral': 593, 'n_tokens_neox': 552, 'n_words': 169}