<commit_before>define([
    'dojo/Deferred',
    'dojo/request',
    'dojo/request/script',
    'dojo/_base/declare',
    'dojo/_base/lang'
], function (
    Deferred,
    xhr,
    script,
    declare,
    lang
) {
    return declare(null, {
        // description:
        //      A convenience class for using [AGRC's web api](http://api.mapserv.utah.gov).

        // baseUrl: String
        baseUrl: '//api.mapserv.utah.gov/api/v1/',

        // defaultAttributeStyle: String
        defaultAttributeStyle: 'identical',

        // xhrProvider: dojo/request/* provider
        //      The current provider as determined by the search function
        xhrProvider: null,


        // Properties to be sent into constructor

        // apiKey: String
        //      web api key (http://developer.mapserv.utah.gov/AccountAccess)
        apiKey: null,


        constructor: function (params) {
            // summary:
            //      description
            // params: {}
            console.log('agrc/modules/WebAPI:constructor', arguments);

            lang.mixin(this, params);
        },
        search: function (featureClass, returnValues, options) {
            // summary:
            //      search service wrapper (http://api.mapserv.utah.gov/#search)
            // featureClass: String
            //      Fully qualified feature class name eg: SGID10.Boundaries.Counties
            // returnValues: String[]<commit_msg>fix: the web api is HTTPS only now<commit_after>define([
    'dojo/Deferred',
    'dojo/request',
    'dojo/request/script',
    'dojo/_base/declare',
    'dojo/_base/lang'
], function (
    Deferred,
    xhr,
    script,
    declare,
    lang
) {
    return declare(null, {
        // description:
        //      A convenience class for using [AGRC's web api](http://api.mapserv.utah.gov).

        // baseUrl: String
        baseUrl: 'https://api.mapserv.utah.gov/api/v1/',

        // defaultAttributeStyle: String
        defaultAttributeStyle: 'identical',

        // xhrProvider: dojo/request/* provider
        //      The current provider as determined by the search function
        xhrProvider: null,


        // Properties to be sent into constructor

        // apiKey: String
        //      web api key (http://developer.mapserv.utah.gov/AccountAccess)
        apiKey: null,


        constructor: function (params) {
            // summary:
            //      description
            // params: {}
            console.log('agrc/modules/WebAPI:constructor', arguments);

            lang.mixin(this, params);
        },
        search: function (featureClass, returnValues, options) {
            // summary:
            //      search service wrapper (http://api.mapserv.utah.gov/#search)
            // featureClass: String
            //      Fully qualified feature class name eg: SGID10.Boundaries.Counties
            // returnValues: String[]
{'fraction_non_alphanumeric': 0.11833505331957345, 'fraction_numerical': 0.0020639834881320948, 'mean_word_length': 1.7642585551330798, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6768542', 'n_tokens_mistral': 817, 'n_tokens_neox': 788, 'n_words': 186}