<commit_before>#!/bin/sh

docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1 | tr -d '\n' | tr -d '\r'

<commit_msg>support docker host networking in dockerip.sh<commit_after>#!/bin/bash

MODE=`docker inspect --format '{{ .HostConfig.NetworkMode }}' $1  | tr -d '\n' | tr -d '\r'`
if [[ "$MODE" == "host" ]]; then
    echo -n "127.0.0.1"
else
    docker inspect --format '{{ .NetworkSettings.IPAddress }}' $1 | tr -d '\n' | tr -d '\r'
fi


{'fraction_non_alphanumeric': 0.22, 'fraction_numerical': 0.02, 'mean_word_length': 3.063063063063063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7376894', 'n_tokens_mistral': 181, 'n_tokens_neox': 168, 'n_words': 49}