<commit_before>#!/bin/bash

if [ -z "${address}" ] ; then
    echo "address is not set"
    all=$(/sbin/ip address | grep 'inet '| awk '{split($2, a, "/"); print a[1]}')
    echo "$all"
    
    address=$(/sbin/ip address | grep 'inet '| awk '$NF =="eth0" {split($2, a, "/"); print a[1]}')
fi

echo "Docker address: ${address}"

fastcgi-mono-server4 /applications=/:/var/www/oscript.io /socket=tcp:${address}:9001<commit_msg>Создание папки хоста<commit_after>#!/bin/bash

if [ -z "${address}" ] ; then
    echo "address is not set"
    all=$(/sbin/ip address | grep 'inet '| awk '{split($2, a, "/"); print a[1]}')
    echo "$all"
    
    address=$(/sbin/ip address | grep 'inet '| awk '$NF =="eth0" {split($2, a, "/"); print a[1]}')
fi

echo "Docker address: ${address}"

mkdir -p /var/www/oscript.io

fastcgi-mono-server4 /applications=/:/var/www/oscript.io /socket=tcp:${address}:9001
{'fraction_non_alphanumeric': 0.22886133032694475, 'fraction_numerical': 0.02254791431792559, 'mean_word_length': 3.625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '6765793', 'n_tokens_mistral': 358, 'n_tokens_neox': 342, 'n_words': 84}