<commit_before>var request = nRequire("request");
var zpad    = nRequire("zpad");
var util    = nRequire("util")
var moment  = nRequire("moment");

import globals from "./globals";
import getJSON from "./getJSON";

export default function(accessToken) {
  var headers = {
    "Content-Type": "application/json",
    "trakt-api-key": globals.getClientID(),
    "trakt-api-version": "2",
    "Authorization": "Bearer " + accessToken
  }

  var days = 30;
  var date = new Date();
  date.setDate(date.getDate() - days);
  var printableDate = moment(date).format("YYYY-MM-DD");

  var options = {
    url: "https://api-v2launch.trakt.tv/calendars/my/shows/" + printableDate + "/" + (days + 1) + "?extended=images",
    headers: headers
  };

  var getImage = function(episode) {
    try {
      return episode.images.screenshot.thumb<commit_msg>Only load 3 days back<commit_after>var request = nRequire("request");
var zpad    = nRequire("zpad");
var util    = nRequire("util")
var moment  = nRequire("moment");

import globals from "./globals";
import getJSON from "./getJSON";

export default function(accessToken) {
  var headers = {
    "Content-Type": "application/json",
    "trakt-api-key": globals.getClientID(),
    "trakt-api-version": "2",
    "Authorization": "Bearer " + accessToken
  }

  var days = 3;
  var date = new Date();
  date.setDate(date.getDate() - days);
  var printableDate = moment(date).format("YYYY-MM-DD");

  var options = {
    url: "https://api-v2launch.trakt.tv/calendars/my/shows/" + printableDate + "/" + (days + 1) + "?extended=images",
    headers: headers
  };

  var getImage = function(episode) {
    try {
      return episode.images.screenshot.thumb
{'fraction_non_alphanumeric': 0.16459443457667258, 'fraction_numerical': 0.005920663114268798, 'mean_word_length': 3.6049046321525884, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, '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': '4859762', 'n_tokens_mistral': 583, 'n_tokens_neox': 564, 'n_words': 127}