<commit_before>from __future__ import unicode_literals
from ..baseapi import BaseApi


class ReportActivity(BaseApi):

    """
    Reports Email Activity
    http://kb.mailchimp.com/api/resources/reports/emailactivity/reports-email-activity-collection
    http://kb.mailchimp.com/api/resources/reports/emailactivity/reports-email-activity-instance
    """

    def __init__(self, *args, **kwargs):
        super(ReportActivity, self).__init__(*args, **kwargs)
        self.endpoint = 'reports'

    def all(self, list_id, **queryparams):
        """
        Returns a list of subscriber activity in a specific campaign.
        """
        return self._mc_client._get(url=self._build_path(list_id, 'email-activity'), **queryparams)

    def get(self, list_id, email_id):
        """
        returns a list of a member's subscriber activity in a specific campaign.
        """
        return self._mc_client._get(url=self._build_path(list_id, 'email-activity', email_id))<commit_msg>Minor correction to email-activity parameters<commit_after>from __future__ import unicode_literals
from ..baseapi import BaseApi


class ReportActivity(BaseApi):

    """
    Reports Email Activity
    http://kb.mailchimp.com/api/resources/reports/emailactivity/reports-email-activity-collection
    http://kb.mailchimp.com/api/resources/reports/emailactivity/reports-email-activity-instance
    """

    def __init__(self, *args, **kwargs):
        super(ReportActivity, self).__init__(*args, **kwargs)
        self.endpoint = 'reports'

    def all(self, campaign_id, **queryparams):
        """
        Returns a list of subscriber activity in a specific campaign.
        """
        return self._mc_client._get(url=self._build_path(campaign_id, 'email-activity'), **queryparams)

    def get(self, campaign_id, email_id):
        """
        returns a list of a member's subscriber activity in a specific campaign.
        """
        return self._mc_client._get(url=self._build_path(campaign_id, 'email-activity', email_id))
{'fraction_non_alphanumeric': 0.11679920477137178, 'fraction_numerical': 0.0, 'mean_word_length': 3.433920704845815, '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': '6944157', 'n_tokens_mistral': 594, 'n_tokens_neox': 563, 'n_words': 127}