<commit_before>/* eslint-env mocha */
/*global $, sinon, expect */
describe('jsonproxy', function() {
  var loc = window.location,
    origin = loc.origin || loc.protocol + '//' + loc.host,
    proxy = 'https://jsonp.afeld.me/',
    packagePath = loc.pathname.replace(/test.html/, 'package.json'),
    sandbox = sinon.sandbox.create();

  afterEach(function() {
    sandbox.restore();
  });

  function sharedTests() {
    it('should do standard ajax for relative domains', function(done) {
      $.jsonp({
        url: packagePath,<commit_msg>use newer sinon sandbox creation method<commit_after>/* eslint-env mocha */
/*global $, sinon, expect */
describe('jsonproxy', function() {
  var loc = window.location,
    origin = loc.origin || loc.protocol + '//' + loc.host,
    proxy = 'https://jsonp.afeld.me/',
    packagePath = loc.pathname.replace(/test.html/, 'package.json'),
    sandbox = sinon.createSandbox();

  afterEach(function() {
    sandbox.restore();
  });

  function sharedTests() {
    it('should do standard ajax for relative domains', function(done) {
      $.jsonp({
        url: packagePath,
{'fraction_non_alphanumeric': 0.16801437556154536, 'fraction_numerical': 0.0, 'mean_word_length': 3.301158301158301, 'pattern_counts': {'":': 0, '<': 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': '209832', 'n_tokens_mistral': 353, 'n_tokens_neox': 342, 'n_words': 78}