<commit_before>(function() {
    var chai = require('chai'),
        should = chai.should(),
        expect = chai.expect,
        sinon = require('sinon');

    var AGOLGeocoder = require('../../lib/geocoder/agolgeocoder.js');
    var HttpAdapter = require('../../lib/httpadapter/httpadapter.js');

    var mockedHttpAdapter = {
        get: function() {
          return {};
        }
    };

    describe('AGOLGeocoder', function() {

        describe('#constructor' , function() {
            it('an http adapter must be set', function() {
                expect(function() {new AGOLGeocoder();}).to.throw(Error, 'Google Geocoder need an httpAdapter');
            });

            it('if a clientId is specified an apiKey must be set', function() {
                expect(function() {new AGOLGeocoder(mockedHttpAdapter, {clientId: 'CLIENT_ID'});}).to.throw(Error, 'You must specify a apiKey (privateKey)');
            });

            it('Should be an instance of AGOLGeocoder if an http adapter is provided', function() {
                var googleAdapter = new AGOLGeocoder(mockedHttpAdapter);

                googleAdapter.should.be.instanceof(AGOLGeocoder);
            });

            it('Should be an instance of AGOLGeocoder if an http adapter, clientId, and apiKer are provided', function() {
                var googleAdapter = new AGOLGeocoder(mockedHttpAdapter, {clientId: 'CLIENT_ID', apiKey: 'API_KEY'});
<commit_msg>Updated error that this test watches for<commit_after>(function() {
    var chai = require('chai'),
        should = chai.should(),
        expect = chai.expect,
        sinon = require('sinon');

    var AGOLGeocoder = require('../../lib/geocoder/agolgeocoder.js');
    var HttpAdapter = require('../../lib/httpadapter/httpadapter.js');

    var mockedHttpAdapter = {
        get: function() {
          return {};
        }
    };

    describe('AGOLGeocoder', function() {

        describe('#constructor' , function() {
            it('an http adapter must be set', function() {
                expect(function() {new AGOLGeocoder();}).to.throw(Error, 'ArcGis Online Geocoder requires a httpAdapter to be defined');
            });

            it('if a clientId is specified an apiKey must be set', function() {
                expect(function() {new AGOLGeocoder(mockedHttpAdapter, {clientId: 'CLIENT_ID'});}).to.throw(Error, 'You must specify a apiKey (privateKey)');
            });

            it('Should be an instance of AGOLGeocoder if an http adapter is provided', function() {
                var googleAdapter = new AGOLGeocoder(mockedHttpAdapter);

                googleAdapter.should.be.instanceof(AGOLGeocoder);
            });

            it('Should be an instance of AGOLGeocoder if an http adapter, clientId, and apiKer are provided', function() {
                var googleAdapter = new AGOLGeocoder(mockedHttpAdapter, {clientId: 'CLIENT_ID', apiKey: 'API_KEY'});

{'fraction_non_alphanumeric': 0.12914246668944313, 'fraction_numerical': 0.0, 'mean_word_length': 2.523465703971119, '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': '2464088', 'n_tokens_mistral': 829, 'n_tokens_neox': 804, 'n_words': 218}