<commit_before>#!/bin/bash

## create a db from scratch.
## Warning: current db will be dropped

## configure db name and auth
dbname=workingon
dbuser=root

## we don't take pass as arg for security
## mysql -p will prompt without echo 
# dbpass=$1


echo ${dbname}

mysql -u $dbuser -p -e "create user 'workingon'@'localhost' identified by 'workingon';"
mysql -u $dbuser -p -e "grant insert, select, update, delete on workingon.* to 'workingon'@'localhost';"
<commit_msg>updated db user creation script for new default user and db name of newsjs<commit_after>#!/bin/bash

## create a db from scratch.
## Warning: current db will be dropped

## configure db name and auth
dbname=workingon
dbuser=root

## we don't take pass as arg for security
## mysql -p will prompt without echo 
# dbpass=$1


echo ${dbname}

mysql -u $dbuser -p -e "create user 'newsjs'@'localhost' identified by 'newsjs';"
mysql -u $dbuser -p -e "grant insert, select, update, delete on newsjs.* to 'newsjs'@'localhost';"

{'fraction_non_alphanumeric': 0.12084592145015106, 'fraction_numerical': 0.002014098690835851, 'mean_word_length': 4.4021739130434785, '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': '5150838', 'n_tokens_mistral': 327, 'n_tokens_neox': 314, 'n_words': 135}