<commit_before>import os
from datetime import date, timedelta

from config import config
from inputoutput.readers import CSVInputReader, InputReader
from models.article import Article
from models.tuser import TUser
from models.tweet import Tweet

TWEETS_DIR = os.path.join(config.PCLOUD_DIR, 'tweets')
TWEET_USERS_DIR = os.path.join(config.PCLOUD_DIR, 'users')
ARTICLES_DIR = os.path.join(config.PCLOUD_DIR, 'articles')


def update_tweets_cache(start_date: date, end_date: date, tweets_cache: dict):
    date_strs = []
    d = start_date
    while d <= end_date:<commit_msg>changed articles to retrieve the new dataset<commit_after>import os
from datetime import date, timedelta

from config import config
from inputoutput.readers import CSVInputReader, InputReader
from models.article import Article
from models.tuser import TUser
from models.tweet import Tweet

TWEETS_DIR = os.path.join(config.PCLOUD_DIR, 'tweets')
TWEET_USERS_DIR = os.path.join(config.PCLOUD_DIR, 'users')
ARTICLES_DIR = os.path.join(config.PCLOUD_DIR, 'preprocessed_articles', 'sander_results')


def update_tweets_cache(start_date: date, end_date: date, tweets_cache: dict):
    date_strs = []
    d = start_date
    while d <= end_date:
{'fraction_non_alphanumeric': 0.08663366336633663, 'fraction_numerical': 0.0, 'mean_word_length': 5.814606741573034, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5965752', 'n_tokens_mistral': 417, 'n_tokens_neox': 409, 'n_words': 106}