<commit_before>#!/bin/bash
if [ "$1" == "" ] ; then
    echo "Usage: $0 [CN]"
    exit
fi
certdir=`pwd`/app/.ssh
if ! [ -e ${certdir} ]; then
    mkdir ${certdir}
    chmod 0755 ${certdir}
fi
cd ${certdir}
openssl req -batch -newkey rsa:2048 -nodes -subj /C=JP/L=hiroshima/O=studio-rem/OU=rem/CN=$1 -out cert.csr -keyout /cert.key
openssl x509 -req -days 365 -in cert.csr -signkey cert.key -out cert.crt
chmod 0644 cert.csr cert.crt
chmod 0600 cert.key
chown root:root ${certdir} cert.csr cert.crt cert.key
<commit_msg>cert.key作成場所不正<commit_after>#!/bin/bash
if [ "$1" == "" ] ; then
    echo "Usage: $0 [CN]"
    exit
fi
certdir=`pwd`/app/.ssh
if ! [ -e ${certdir} ]; then
    mkdir ${certdir}
    chmod 0755 ${certdir}
fi
cd ${certdir}
openssl req -batch -newkey rsa:2048 -nodes -subj /C=JP/L=hiroshima/O=studio-rem/OU=rem/CN=$1 -out cert.csr -keyout cert.key
openssl x509 -req -days 365 -in cert.csr -signkey cert.key -out cert.crt
chmod 0644 cert.csr cert.crt
chmod 0600 cert.key
chown root:root ${certdir} cert.csr cert.crt cert.key

{'fraction_non_alphanumeric': 0.16570327552986513, 'fraction_numerical': 0.04816955684007707, 'mean_word_length': 3.3839662447257384, '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': '3963879', 'n_tokens_mistral': 490, 'n_tokens_neox': 437, 'n_words': 118}