<commit_before>function ddg_spice_xkcd_display(api_result) {
  if (!api_result.img || !api_result.alt) return;

  //calls our endpoint to get the number of the latest comic
  $.getJSON('/js/spice/xkcd/latest/', function(data){

    //if we are looking at the latest comic, don't display the 'next' link
    api_result.has_next = parseInt(data.num) > parseInt(api_result.num);
    
    Spice.render({
      data             : api_result,
      header1          : api_result.safe_title + " (xkcd)",
      source_url       : 'http://xkcd.com/' + api_result.num,
      source_name      : 'xkcd',
      template_normal  : 'xkcd_display',
      force_big_header : true,
      force_no_fold    : true<commit_msg>xkcd: add an exception for the comic 1335.<commit_after>function ddg_spice_xkcd_display(api_result) {
  if (!api_result.img || !api_result.alt) return;

  //calls our endpoint to get the number of the latest comic
  $.getJSON('/js/spice/xkcd/latest/', function(data){

    //if we are looking at the latest comic, don't display the 'next' link
    api_result.has_next = parseInt(data.num) > parseInt(api_result.num);

    // Add exception for comic 1335.
    if(api_result.num === 1335) {
	api_result.img = 'http://imgs.xkcd.com/comics/now/12h30m.png';
    }
    
    Spice.render({
      data             : api_result,
      header1          : api_result.safe_title + " (xkcd)",
      source_url       : 'http://xkcd.com/' + api_result.num,
      source_name      : 'xkcd',
      template_normal  : 'xkcd_display',
      force_big_header : true,
      force_no_fold    : true
{'fraction_non_alphanumeric': 0.12080961416824794, 'fraction_numerical': 0.011385199240986717, 'mean_word_length': 2.6790697674418604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6332126', 'n_tokens_mistral': 557, 'n_tokens_neox': 542, 'n_words': 119}