<commit_before>var api = global.api,
    cheerio = require('cheerio'),
    request = require('request'),
    Anime = require('../mal/anime.js');
ChartModel = require('../../db/chartmodel');

api.anichart = {
    current: function(req, res, next) {
        grabSeason(req, res, next);
    },
    spring: function(req, res, next) {
        grabSeason(req, res, next, 'spring');
    },
    summer: function(req, res, next) {
        grabSeason(req, res, next, 'summer');
    },
    fall: function(req, res, next) {
        grabSeason(req, res, next, 'fall');
    },
    winter: function(req, res, next) {
        grabSeason(req, res, next, 'winter');
    }
};

/**
 * Uses to delegate API calls and grab the correct season.<commit_msg>Updated chart to pass in 'airing' as the season<commit_after>var api = global.api,
    cheerio = require('cheerio'),
    request = require('request'),
    Anime = require('../mal/anime.js');
ChartModel = require('../../db/chartmodel');

api.anichart = {
    current: function(req, res, next) {
        grabSeason(req, res, next, 'airing');
    },
    spring: function(req, res, next) {
        grabSeason(req, res, next, 'spring');
    },
    summer: function(req, res, next) {
        grabSeason(req, res, next, 'summer');
    },
    fall: function(req, res, next) {
        grabSeason(req, res, next, 'fall');
    },
    winter: function(req, res, next) {
        grabSeason(req, res, next, 'winter');
    }
};

/**
 * Uses to delegate API calls and grab the correct season.
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.0, 'mean_word_length': 2.8494897959183674, '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': '7648240', 'n_tokens_mistral': 501, 'n_tokens_neox': 502, 'n_words': 130}