<commit_before>from trakt.interfaces.base import authenticated
from trakt.interfaces.sync.core.mixins import Get, Add, Remove


class SyncRatingsInterface(Get, Add, Remove):
    path = 'sync/ratings'

    @authenticated
    def get(self, media, store=None, rating=None):
        parameters = []

        if rating is not None:
            parameters.append(rating)

        super(SyncRatingsInterface, self).get(media, store, parameters)

    #
    # Shortcut methods
    #

    @authenticated
    def shows(self, store=None, rating=None):
        return self.get('shows', store, rating,)

    @authenticated
    def seasons(self, store=None, rating=None):
        return self.get('seasons', store, rating,)

    @authenticated
    def episodes(self, store=None, rating=None):
        return self.get('episodes', store, rating)

    @authenticated
    def movies(self, store=None, rating=None):
        return self.get('movies', store, rating)<commit_msg>Fixed [/sync/ratings] get() method not returning<commit_after>from trakt.interfaces.base import authenticated
from trakt.interfaces.sync.core.mixins import Get, Add, Remove


class SyncRatingsInterface(Get, Add, Remove):
    path = 'sync/ratings'

    @authenticated
    def get(self, media, store=None, rating=None):
        parameters = []

        if rating is not None:
            parameters.append(rating)

        return super(SyncRatingsInterface, self).get(media, store, parameters)

    #
    # Shortcut methods
    #

    @authenticated
    def shows(self, store=None, rating=None):
        return self.get('shows', store, rating,)

    @authenticated
    def seasons(self, store=None, rating=None):
        return self.get('seasons', store, rating,)

    @authenticated
    def episodes(self, store=None, rating=None):
        return self.get('episodes', store, rating)

    @authenticated
    def movies(self, store=None, rating=None):
        return self.get('movies', store, rating)
{'fraction_non_alphanumeric': 0.11475409836065574, 'fraction_numerical': 0.0, 'mean_word_length': 3.292307692307692, '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': '4019157', 'n_tokens_mistral': 602, 'n_tokens_neox': 562, 'n_words': 147}