<commit_before>#!/usr/bin/python
# A simple function to get the IP address of the
# host. You have to use a reachable IP-Address!
# This is to prevent getting 127.0.0.1 as result
#
# (c) <NAME> <<EMAIL>>, 2014
# License: MIT, http://opensource.org/licenses/MIT

import socket


def get_ip():
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.connect(("172.16.17.32",80))
    ip = str((s.getsockname()[0]))
    s.close
    return ip



<commit_msg>Added "if __name__ == "__main__"" stuff to make it run standalone<commit_after>#!/usr/bin/python
# A simple function to get the IP address of the
# host. You have to use a reachable IP-Address!
# This is to prevent getting 127.0.0.1 as result
#
# (c) <NAME> <<EMAIL>>, 2014
# License: MIT, http://opensource.org/licenses/MIT

import socket


def get_ip():
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.connect(("172.16.17.32",80))
    ip = str((s.getsockname()[0]))
    s.close
    return ip


if __name__ == "__main__":
        print(get_ip())


{'fraction_non_alphanumeric': 0.1495601173020528, 'fraction_numerical': 0.043010752688172046, 'mean_word_length': 3.4521739130434783, 'pattern_counts': {'":': 1, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1809401', 'n_tokens_mistral': 404, 'n_tokens_neox': 366, 'n_words': 107}