<commit_before>from trakt.interfaces.base import Interface, authenticated


class MediaInterface(Interface):
    @authenticated
    def cancel_watching(self, credentials=None):
        """Notify trakt that a user has stopped watching a show."""
        response = self.request(
            'cancelwatching',
            credentials=credentials
        )

        return self.get_data(response, catch_errors=False)

    def send(self, action, data, credentials=None):
        response = self.request(
            action,
            data=data,
            credentials=credentials
        )

        return self.get_data(response, catch_errors=False)<commit_msg>Added @authenticated to MediaInterface.send method<commit_after>from trakt.interfaces.base import Interface, authenticated


class MediaInterface(Interface):
    @authenticated
    def cancel_watching(self, credentials=None):
        """Notify trakt that a user has stopped watching a show."""
        response = self.request(
            'cancelwatching',
            credentials=credentials
        )

        return self.get_data(response, catch_errors=False)

    @authenticated
    def send(self, action, data, credentials=None):
        response = self.request(
            action,
            data=data,
            credentials=credentials
        )

        return self.get_data(response, catch_errors=False)
{'fraction_non_alphanumeric': 0.08212209302325581, 'fraction_numerical': 0.0, 'mean_word_length': 2.633245382585752, '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': '4416238', 'n_tokens_mistral': 357, 'n_tokens_neox': 343, 'n_words': 86}