<commit_before>#!/usr/bin/env python
import sys
import os
import subprocess
import makeffv1

def main():
    video_files, csv_report_filename = makeffv1.get_input()
    makeffv1.make_ffv1(video_files, csv_report_filename)
    for video in video_files:
        subprocess.call(['bitc.py',
        '-clean','-yadif',
        '-crf','20',
        video,
        '-o', os.path.dirname(sys.argv[1])])


if __name__ == '__main__':
    main()
<commit_msg>loopline - allows bitc to run on windows O.S<commit_after>#!/usr/bin/env python
import sys
import os
import subprocess
import makeffv1

def main():
    video_files, csv_report_filename = makeffv1.get_input()
    makeffv1.make_ffv1(video_files, csv_report_filename)
    if os.path.isdir(sys.argv[1]):
       output = sys.argv[1]
    elif os.path.isfile(sys.argv[1]):
       output = os.path.dirname(sys.argv[1])
    for video in video_files:
        subprocess.check_call([sys.executable,os.path.expanduser("~/ifigit/ifiscripts/bitc.py"),
        '-clean','-yadif',
        '-crf','20',
        os.path.join(output,video),
        '-o', output])


if __name__ == '__main__':
    main()

{'fraction_non_alphanumeric': 0.14651368049426303, 'fraction_numerical': 0.01500441306266549, 'mean_word_length': 3.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6556537', 'n_tokens_mistral': 423, 'n_tokens_neox': 409, 'n_words': 77}