<commit_before><?php

/**
 * List and Groups related functions
 *
 * @license    http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * @link       https://github.com/AhmedSamy/hype-mailchimp-api-2.0
 * @since      version 1.0
 * @author <NAME> <<EMAIL>>
 */

namespace Hype\MailchimpBundle\Mailchimp\Methods;

use Hype\MailchimpBundle\Mailchimp\RestClient,
    Hype\MailchimpBundle\Mailchimp\MailchimpAPIException,
    Buzz\Exception\InvalidArgumentException as InvalidArgumentException;

class MCList extends RestClient {

    protected $merge_vars = array();
    protected $grouping_id = NULL;
    protected $group_name = NULL;

    /**
     * set list id
     * @param string $listId
     * @return \Hype\MailchimpBundle\Mailchimp\Methods\MCList
     */
    public function setListId($listId) {
        $this->listId = $listId;
        return $this;
    }

    /**
     * set grouping id
     * @param int $grouping_id grouping id
     * @return \Hype\MailchimpBundle\Mailchimp\Methods\MCList
     */
    public function setGrouping_id($grouping_id) {
        $this->grouping_id = $grouping_id;
        return $this;
    }

    /**
     * Add to merge vars array
     *
     * @param mix $merge_vars
     */
    public function addMerge_vars($merge_vars) {
        $this->merge_vars[] = $merge_vars;
        return $this;
    }

    /**
     * set to merge vars
     * @param mix $merge_vars
     */
    public function setMerge_vars($merge_vars) {
        $this->merge_vars = $merge_vars;
        return $this;
    }

    /**
     * Get all email addresses that complained about a campaign sent to a list
     *
     * @link http://apidocs.mailchimp.com/api/2.0/lists/abuse-reports.php
     * @param int $start
     * @param int $limit
     * @param string $string
     * @return array
     * @throws MailchimpAPIException<commit_msg>fix #10<commit_after><?php

/**
 * List and Groups related functions
 *
 * @license    http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * @link       https://github.com/AhmedSamy/hype-mailchimp-api-2.0
 * @since      version 1.0
 * @author <NAME> <<EMAIL>>
 */

namespace Hype\MailchimpBundle\Mailchimp\Methods;

use Hype\MailchimpBundle\Mailchimp\RestClient,
    Hype\MailchimpBundle\Mailchimp\MailchimpAPIException,
    Buzz\Exception\InvalidArgumentException as InvalidArgumentException;

class MCList extends RestClient {

    protected $merge_vars = array();
    protected $grouping_id = NULL;
    protected $group_name = NULL;

    /**
     * set list id
     * @param string $listId
     * @return \Hype\MailchimpBundle\Mailchimp\Methods\MCList
     */
    public function setListId($listId) {
        $this->listId = $listId;
        return $this;
    }

    /**
     * set grouping id
     * @param int $grouping_id grouping id
     * @return \Hype\MailchimpBundle\Mailchimp\Methods\MCList
     */
    public function setGrouping_id($grouping_id) {
        $this->grouping_id = $grouping_id;
        return $this;
    }

    /**
     * Add to merge vars array
     *
     * @param mix $merge_vars
     */
    public function addMerge_vars($merge_vars) {
        $this->merge_vars=array_merge($this->merge_vars,$merge_vars);
        return $this;
    }

    /**
     * set to merge vars
     * @param mix $merge_vars
     */
    public function setMerge_vars($merge_vars) {
        $this->merge_vars = $merge_vars;
        return $this;
    }

    /**
     * Get all email addresses that complained about a campaign sent to a list
     *
     * @link http://apidocs.mailchimp.com/api/2.0/lists/abuse-reports.php
     * @param int $start
     * @param int $limit
     * @param string $string
     * @return array
     * @throws MailchimpAPIException
{'fraction_non_alphanumeric': 0.1147979662831148, 'fraction_numerical': 0.005887075194005887, 'mean_word_length': 2.5297450424929178, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, 'https://': 2, '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': '2105999', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1192, 'n_words': 261}