<commit_before>from keywords import get_db


tweets = get_db().tweets


tweets.create_index([("num_keywords", 1), ("datetime", 1)])  # api:/keywords, statistics.py
tweets.create_index([("groups", 1), ("datetime", 1)])        # api:/keywords, api:/groups/{group}
tweets.create_index([("keywords", 1), ("datetime", 1)])      # api:/keywords/{keyword}/*
tweets.create_index([("id_str", 1)])                         # api:/tweet/{id_str}<commit_msg>database: fix index<commit_after>from keywords import get_db


tweets = get_db().tweets


tweets.create_index([("num_keywords", 1), ("datetime", 1)])  # api:/keywords, statistics.py
tweets.create_index([("groups", 1), ("datetime", 1)])        # api:/keywords, api:/groups/{group}
tweets.create_index([("keywords", 1), ("datetime", 1)])      # api:/keywords/{keyword}/*
tweets.create_index("tweet.id_str")                          # api:/tweet/{id_str}
{'fraction_non_alphanumeric': 0.20424107142857142, 'fraction_numerical': 0.014508928571428572, 'mean_word_length': 4.096590909090909, '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': '6694240', 'n_tokens_mistral': 338, 'n_tokens_neox': 298, 'n_words': 52}