<commit_before>import tweepy
import sqlite3
import os.path
import random

def setup(sqlite_file = "TweetDB.sqlite"):

    is_existing_db = os.path.isfile(sqlite_file)
    conn = sqlite3.connect(sqlite_file)  # Creates a new file if there is none, otherwise opens an existing file.
    conn = sqlite3.connect(sqlite_file)
    cursor = conn.cursor()

    if not is_existing_db:
        cursor.execute('''CREATE TABLE meta(consumer_key text, consumer_secret text, access_token text, access_token_secret text);''')

        cursor.execute(
            '''CREATE TABLE search_terms(search_term text);''')

        starting_terms=['Leg Workout','total body workout']

        for term in starting_terms:
            command="insert into search_terms(search_term) values('%s');"%(term)
            cursor.execute(command)

        keys_dict=load_external_api_keys()
        if not keys_dict:
            raise Exception('No valid keys are found in a secretkeys.dat file')
        else:
            consumer_key = keys_dict['consumer_key']<commit_msg>Additional Starting Terms<commit_after>import tweepy
import sqlite3
import os.path
import random

def setup(sqlite_file = "TweetDB.sqlite"):

    is_existing_db = os.path.isfile(sqlite_file)
    conn = sqlite3.connect(sqlite_file)  # Creates a new file if there is none, otherwise opens an existing file.
    conn = sqlite3.connect(sqlite_file)
    cursor = conn.cursor()

    if not is_existing_db:
        cursor.execute('''CREATE TABLE meta(consumer_key text, consumer_secret text, access_token text, access_token_secret text);''')

        cursor.execute(
            '''CREATE TABLE search_terms(search_term text);''')

        starting_terms=['Leg Workout','total body workout','fitness health motivation','active energy motivation',
                        'fitfam','nutrition motivation','exercise training fitness']

        for term in starting_terms:
            command="insert into search_terms(search_term) values('%s');"%(term)
            cursor.execute(command)

        keys_dict=load_external_api_keys()
        if not keys_dict:
            raise Exception('No valid keys are found in a secretkeys.dat file')
        else:
            consumer_key = keys_dict['consumer_key']
{'fraction_non_alphanumeric': 0.09606791778373548, 'fraction_numerical': 0.002680965147453083, 'mean_word_length': 3.3140655105973025, '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': '1712723', 'n_tokens_mistral': 650, 'n_tokens_neox': 617, 'n_words': 169}