<commit_before>import os

from RatS.base.base_ratings_downloader import RatingsDownloader
from RatS.letterboxd.letterboxd_site import Letterboxd
from RatS.utils import command_line
from RatS.utils import file_impex


class LetterboxdRatingsParser(RatingsDownloader):
    def __init__(self, args):
        super(LetterboxdRatingsParser, self).__init__(Letterboxd(args), args)
        self.downloaded_file_name = 'ratings.csv'

    def _parse_ratings(self):
        self.before = os.listdir(self.exports_folder)
        self._download_ratings_csv()

        after = os.listdir(self.exports_folder)
        change = self._get_downloaded_filename(after, self.before)
        if len(change) == 1:<commit_msg>fix linting<commit_after>import os

from RatS.base.base_ratings_downloader import RatingsDownloader
from RatS.letterboxd.letterboxd_site import Letterboxd
from RatS.utils import command_line
from RatS.utils import file_impex


class LetterboxdRatingsParser(RatingsDownloader):
    def __init__(self, args):
        super(LetterboxdRatingsParser, self).__init__(Letterboxd(args), args)
        self.downloaded_file_name = 'ratings.csv'
        self.before = os.listdir(self.exports_folder)

    def _parse_ratings(self):
        self._download_ratings_csv()

        after = os.listdir(self.exports_folder)
        change = self._get_downloaded_filename(after, self.before)
        if len(change) == 1:
{'fraction_non_alphanumeric': 0.08262108262108261, 'fraction_numerical': 0.0014245014245014246, 'mean_word_length': 4.321969696969697, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '967312', 'n_tokens_mistral': 460, 'n_tokens_neox': 439, 'n_words': 82}