<commit_before><?php
/**
 * AnimeUltimeBridge
 * Returns 10 newest releases posted on Anime-Ultime
 *
 * @name Anime-Ultime
 * @homepage http://www.anime-ultime.net/
 * @description Returns the 10 newest releases posted on Anime-Ultime <br /> Type = A (Anime), D (Drama), T (Tokusatsu), or leave empty for everything
 * @maintainer ORelio
 * @update 2015-09-07
 * @use1(type="A/D/T/Empty")
 */
class AnimeUltimeBridge extends BridgeAbstract {

    private $filter = 'Releases';

    public function collectData(array $param) {

        //Add type filter if provided
        $typeFilter = '';
        if (!empty($param['type'])) {
            if ($param['type'] == 'A' || $param['type'] == 'D' || $param['type'] == 'T') {
                $typeFilter = $param['type'];
                if ($typeFilter == 'A') { $this->filter = 'Anime'; }
                if ($typeFilter == 'D') { $this->filter = 'Drama'; }
                if ($typeFilter == 'T') { $this->filter = 'Tokusatsu'; }
            } else $this->returnError('The provided type filter is invalid. Expecting A, D, T, or no filter', 400);
        }

        //Build date and filters for making requests
        $thismonth = date('mY').$typeFilter;
        $lastmonth = date('mY', mktime(0, 0, 0, date('n') - 1, 1, date('Y'))).$typeFilter;

        //Process each HTML page until having 10 releases<commit_msg>[AnimeUltime ] add list selection<commit_after><?php
/**
 * AnimeUltimeBridge
 * Returns 10 newest releases posted on Anime-Ultime
 *
 * @name Anime-Ultime
 * @homepage http://www.anime-ultime.net/
 * @description Returns the 10 newest releases posted on Anime-Ultime
 * @maintainer ORelio
 * @update 2015-10-30
 * @use1(list|type="everything=>;Anime=>A;Drama=>D;Tokusatsu=>T")
 */
class AnimeUltimeBridge extends BridgeAbstract {

    private $filter = 'Releases';

    public function collectData(array $param) {

        //Add type filter if provided
        $typeFilter = '';
        if (!empty($param['type'])) {
            if ($param['type'] == 'A' || $param['type'] == 'D' || $param['type'] == 'T') {
                $typeFilter = $param['type'];
                if ($typeFilter == 'A') { $this->filter = 'Anime'; }
                if ($typeFilter == 'D') { $this->filter = 'Drama'; }
                if ($typeFilter == 'T') { $this->filter = 'Tokusatsu'; }
            } else $this->returnError('The provided type filter is invalid. Expecting A, D, T, or no filter', 400);
        }

        //Build date and filters for making requests
        $thismonth = date('mY').$typeFilter;
        $lastmonth = date('mY', mktime(0, 0, 0, date('n') - 1, 1, date('Y'))).$typeFilter;

        //Process each HTML page until having 10 releases
{'fraction_non_alphanumeric': 0.16937869822485208, 'fraction_numerical': 0.017011834319526627, 'mean_word_length': 2.7054794520547945, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6788573', 'n_tokens_mistral': 896, 'n_tokens_neox': 820, 'n_words': 237}