<commit_before>$.getJSON('http://freegeoip.net/json/?callback=?', function(data) {
  console.log(JSON.stringify(data, null, 2));
  var regex = /^158\.50/;
 if(regex.exec(data.ip)) {
  document.location.href="http://toolkit.afp.com";
 }
});

// DOM elements
var $source;
var $photographer;
var $save;
var $textColor;
var $logo;
var $crop;
var $logoColor;
var $imageLoader;
var $imageLink;
var $imageLinkButton;
var $canvas;
var canvas;<commit_msg>change redirection<commit_after>$.getJSON('http://freegeoip.net/json/?callback=?', function(data) {
  console.log(JSON.stringify(data, null, 2));
  var regex = /^158\.50/;
 if(regex.exec(data.ip)) {
  document.location.href="http://toolkit.afp.com/watermark";
 }
});

// DOM elements
var $source;
var $photographer;
var $save;
var $textColor;
var $logo;
var $crop;
var $logoColor;
var $imageLoader;
var $imageLink;
var $imageLinkButton;
var $canvas;
var canvas;
{'fraction_non_alphanumeric': 0.18632855567805953, 'fraction_numerical': 0.013230429988974642, 'mean_word_length': 5.1768707482993195, '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': '3647473', 'n_tokens_mistral': 350, 'n_tokens_neox': 335, 'n_words': 72}