<commit_before>#!/usr/bin/python

import sys, getopt
import os
import pyperclip
import subprocess
import random
import time






def main(argv):
    working_dir=''
    applause=False
    diarized=False
    sleep_time=7.0
    launch_video=False
    try:
        opts, args = getopt.getopt(argv,"hi:das:v",["input="])
    except getopt.GetoptError:
        print ""
        sys.exit(2)
    for opt, arg in opts:
        if opt == '-h':
            print "'"
            sys.exit()
        elif opt in ("-i", "--in"):
            working_dir = arg
        elif opt in ("-s", "--sleep"):
            sleep_time=float(5)
    if "-d" in sys.argv[1:]:
        diarized=True
    if "-a" in sys.argv[1:]:
        applause=True
    if "-v" in sys.argv[1:]:
        launch_video=True

    if (diarized & applause):
        print "QuickCheck can only run in one mode at a time, either 'applause' or 'diarized.' Remove one of these options to continue."
        sys.exit()
    elif not (diarized | applause):
        print "Please specify 'applause' (-a) or 'diarized' (-d) mode."
        sys.exit()
    if working_dir=='':
        print "Please specify working directory with -i."
        sys.exit()
        
    temp=raw_input("\n*** QuickCheck will copy text to your clipboard, overwriting its current contents. Press return to continue. *** ")

    if applause==True:
        csv_ending='_applause.csv'
    elif diarized==True:
        csv_ending='_diarized.csv'
<commit_msg>Little bug<commit_after>#!/usr/bin/python

import sys, getopt
import os
import pyperclip
import subprocess
import random
import time



def main(argv):
    working_dir=''
    applause=False
    diarized=False
    sleep_time=7.0
    launch_video=False
    try:
        opts, args = getopt.getopt(argv,"hi:das:v",["input="])
    except getopt.GetoptError:
        print ""
        sys.exit(2)
    for opt, arg in opts:
        if opt == '-h':
            print "'"
            sys.exit()
        elif opt in ("-i", "--in"):
            working_dir = arg
        elif opt in ("-s", "--sleep"):
            sleep_time=float(arg)
    if "-d" in sys.argv[1:]:
        diarized=True
    if "-a" in sys.argv[1:]:
        applause=True
    if "-v" in sys.argv[1:]:
        launch_video=True

    if (diarized & applause):
        print "QuickCheck can only run in one mode at a time, either 'applause' or 'diarized.' Remove one of these options to continue."
        sys.exit()
    elif not (diarized | applause):
        print "Please specify 'applause' (-a) or 'diarized' (-d) mode."
        sys.exit()
    if working_dir=='':
        print "Please specify working directory with -i."
        sys.exit()
        
    temp=raw_input("\n*** QuickCheck will copy text to your clipboard, overwriting its current contents. Press return to continue. *** ")

    if applause==True:
        csv_ending='_applause.csv'
    elif diarized==True:
        csv_ending='_diarized.csv'

{'fraction_non_alphanumeric': 0.12832764505119454, 'fraction_numerical': 0.004436860068259386, 'mean_word_length': 2.231532524807056, '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': '6290795', 'n_tokens_mistral': 952, 'n_tokens_neox': 934, 'n_words': 279}