<commit_before>#!/bin/sh


sudo docker run -d --name $1 -p 3306 openeyesdb

#Fix on Monday ;)
mysqlport=`sudo docker ps -a | grep $1 | grep -Po '(\d+)->' | grep -o "[0-9]*"`

echo "setting config port to be $mysqlport"

sudo sed -i.bak 's/port=3306/port='$mysqlport'/g' protected/config/local/common.php<commit_msg>Changing sed replacement<commit_after>#!/bin/sh


sudo docker run -d --name $1 -p 3306 openeyesdb

#Fix on Monday ;)
mysqlport=`sudo docker ps -a | grep $1 | grep -Po '(\d+)->' | grep -o "[0-9]*"`

echo "setting config port to be $mysqlport"

sudo sed -i.bak 's/port=[0-9]\+;/port='$mysqlport';/g' protected/config/local/common.php
{'fraction_non_alphanumeric': 0.19040247678018576, 'fraction_numerical': 0.034055727554179564, 'mean_word_length': 3.7226277372262775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6114777', 'n_tokens_mistral': 279, 'n_tokens_neox': 245, 'n_words': 75}