<commit_before>import argparse
from ipaddress import ip_address
import logging
import os
import sys
from atavism.devices import AirplayDevice, Chromecast, DeviceError
from atavism.dnssd import MDNSServiceDiscovery
from atavism.http import HLSServer
from atavism.video import find_ffmpeg, HLSVideo, SimpleVideo


def main():
    parser = argparse.ArgumentParser(description='AppleTV Video Player')
    parser.add_argument('--find-devices', action='store_true',
                        help='Scan and report for AppleTV devices')
    parser.add_argument('--ip', help='IPv4 address of AppleTV to use')
    parser.add_argument('--send-direct', action='store_true',
                        help="Don't create an HLS stream, just send the file")
    parser.add_argument('--ffmpeg-binary-name', default='ffmpeg',
                        help='Name of ffmpeg binary to use')
    parser.add_argument('--ffmpeg-search-paths', help='Path(s) to search for ffmpeg binary')
    parser.add_argument('--hls-only', action='store_true', help='Just create an HLS stream')
    parser.add_argument('--chromecast', action='store_true', help='If an IP is supplied, is it for a Chromecast?')
    parser.add_argument('-v', nargs='*', help='Additional debug information')
    parser.add_argument('--log', help='Logfile to save output into')
    parser.add_argument('video', nargs='?', help="Video to stream")

    args = parser.parse_args()<commit_msg>As pointed out by <NAME>, there should be a version option - so now there is one :-)<commit_after>import argparse
from ipaddress import ip_address
import logging
import os
import sys
from atavism.devices import AirplayDevice, Chromecast, DeviceError
from atavism.dnssd import MDNSServiceDiscovery
from atavism.http import HLSServer
from atavism.video import find_ffmpeg, HLSVideo, SimpleVideo
from atavism import __version__

def main():
    parser = argparse.ArgumentParser(description='AppleTV Video Player')
    parser.add_argument('--find-devices', action='store_true',
                        help='Scan and report for AppleTV devices')
    parser.add_argument('--ip', help='IPv4 address of AppleTV to use')
    parser.add_argument('--send-direct', action='store_true',
                        help="Don't create an HLS stream, just send the file")
    parser.add_argument('--ffmpeg-binary-name', default='ffmpeg',
                        help='Name of ffmpeg binary to use')
    parser.add_argument('--ffmpeg-search-paths', help='Path(s) to search for ffmpeg binary')
    parser.add_argument('--hls-only', action='store_true', help='Just create an HLS stream')
    parser.add_argument('--chromecast', action='store_true', help='If an IP is supplied, is it for a Chromecast?')
    parser.add_argument('-v', nargs='*', help='Additional debug information')
    parser.add_argument('--version', action='store_true', help='Show version and exit')
    parser.add_argument('--log', help='Logfile to save output into')
    parser.add_argument('video', nargs='?', help="Video to stream")

    args = parser.parse_args()

    if args.version:
        print("atavism,  version {}".format(__version__))
        print("https://github.com/zathras777/atavism")
        sys.exit(0)
{'fraction_non_alphanumeric': 0.12417891773537691, 'fraction_numerical': 0.001876759461995621, 'mean_word_length': 3.989079563182527, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '3271224', 'n_tokens_mistral': 953, 'n_tokens_neox': 923, 'n_words': 264}