<commit_before>#!/usr/bin/env bash

set -e
set -x

NET_IF=$(ip link | awk -F: '$0 !~ "lo|docker|tun|^[^0-9]"{print $2;getline}')
PRIVATE_IP=$(ifconfig $NET_IF 2>/dev/null | awk '/inet / {print $2}')

sed -i -e "s%127.0.0.1%$PRIVATE_IP%" /srv/telize/telize.config

service kore start<commit_msg>Use ip command instead of ifconfig (#6)<commit_after>#!/usr/bin/env bash

set -e
set -x

NET_IF=$(ip link | awk -F: '$0 !~ "lo|docker|tun|^[^0-9]"{print $2;getline}')
PRIVATE_IP=$(ip address show $NET_IF | awk '/inet / {print $2}' | awk -F/ '{ print $1}')

sed -i -e "s%127.0.0.1%$PRIVATE_IP%" /srv/telize/telize.config

service kore start
{'fraction_non_alphanumeric': 0.22432859399684044, 'fraction_numerical': 0.03949447077409163, 'mean_word_length': 4.112903225806452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3812889', 'n_tokens_mistral': 304, 'n_tokens_neox': 280, 'n_words': 66}