<commit_before>define([
    'dojo/text!./templates/TRSsearch.html',

    'dojo/_base/declare',
    'dojo/_base/lang',
    'dojo/_base/array',

    'dojo/dom-style',
    'dojo/dom-construct',
    'dojo/dom-class',
    'dojo/dom-attr',

    'dojo/query',

    'dojo/request/script',

    'dojo/store/Memory',

    'dijit/_WidgetBase',
    'dijit/_TemplatedMixin',

    'esri/graphic',

    './data/townships'
], function(
    template,

    declare,
    lang,
    array,

    domStyle,
    domConstruct,
    domClass,
    domAttr,

    query,

    script,

    MemoryStore,

    _WidgetBase,
    _TemplatedMixin,

    Graphic,

    townships
) {
    return declare([_WidgetBase, _TemplatedMixin], {
        // description:
        //      **Summary**: Allows the user to quickly zoom to a specific township, range, and optionally section.
        //      <p>
        //      **Owner(s)**: <NAME>
        //      </p>
        //      <p>
        //      **Test Page**: <a href='/tests/dojo/agrc/1.0/agrc/widgets/tests/TRSsearchTests.html' target='_blank'>
        //        agrc.widgets.map.TRSsearch.Test</a>
        //      </p>
        //      <p>
        //      **Description**:
        //      You can set the meridian, township, range and section values by using the set method and the
        //      corresponding controls with update.
        //      This widget can be used without a map.
        //      </p>
        //      <p>
        //      **Required Files**:
        //      </p>
        //      <ul><li>agrc/themes/standard/locate/TRSsearch.css</li></ul>
        // example:
        // |    var demoWidget = new agrc.widgets.locate.TRSsearch({
        // |        map: map
        // |    }, 'demo-widget');

        templateString: template,

        baseClass: 'agrc-trs',

        // _rangeQueryUrl: [private]String
        //      The url for the web service to query for appropriate ranges based on
        //      the passed in meridian and township

        // _sectionQueryUrl: [private]String
        //      The url for the web service to query for appropriate sections based on
        //      the passed in meridian, township and range.

        // _getEnvelopeUrl: [private]String
        //      The url for the get envelope web service

        urls: {
            range: '//api.mapserv.utah.gov/api/v1/search/SGID10.CADASTRE.PLSS_TR_Lookup/' +
                'PairsWith?predicate=TorRNAME=\'{0}\'&apikey={1}',
            section: '//api.mapserv.utah.gov/api/v1/search/SGID10.CADASTRE.PLSS_Sec_Lookup/' +
                'PairsWith?predicate=TRNAME=\'{0}\'&apikey={1}',
            envelope: '//api.mapserv.utah.gov/api/v1/search/{0}/shape@?predicate={1}&apikey={2}'
        },

        fields: {
            meridian: 'BASEMERIDIAN',
            section: 'SECTION'
        },

        featureClasses: {
            section: 'SGID10.CADASTRE.PLSSSections_GCDB',
            township: 'SGID10.CADASTRE.PLSSTownships_GCDB'
        },

        // meridian: String
        //      The currently selected meridian. (sl or ub)
        meridian: 'SL',

        // township: String
        //      The currently selected township. (ie. 1N)
        township: '',

        // range: String
        //      The currently selected range. (ie. R1E)
        range: '',

        // section: String
        //      The currently selected section. (ie. 23)
        section: '',

        // attach points
        // townshipNode: <select>
        // rangeNode: <select>
        // sectionNode: <select>
        // slNode: <button>
        // ubNode: <button>
        // zoomNode: <buton>

        // Parameters to constructor

        // map: esri.Map
        //      A reference to the map that you want the widget associated with.
        //      If no map is provided, the zoom button is hidden.
        map: null,

        // apiKey: string
        //      Your http://developer.mapserv.utah.gov api key
        apiKey: null,

        // hideSection: Boolean
        //      Determines whether or not the section number is used.
        //      Defaults to false.
        hideSection: false,

        // requireSection: Boolean
        //      Determines whether or not the section number is required.
        //      Defaults to false.
        requireSection: false,

        // formName: string
        //      When using this widget in a form this is the name of the hidden
        //      input for submitting the trs values.
        //      defaults to 'trs'
        formName: 'trs',

        constructor: function() {
            // summary:
            //      description
            console.log('agrc.widgets.locate.TrsSeearch::constructor', arguments);

            this.inherited(arguments);
        },
        postCreate: function() {
            // summary:
            //    Overrides method of same name in dijit._Widget.
            // tags:
            //    private<commit_msg>removed `this.inherited(arguments)` call from constructor<commit_after>define([
    'dojo/text!./templates/TRSsearch.html',

    'dojo/_base/declare',
    'dojo/_base/lang',
    'dojo/_base/array',

    'dojo/dom-style',
    'dojo/dom-construct',
    'dojo/dom-class',
    'dojo/dom-attr',

    'dojo/query',

    'dojo/request/script',

    'dojo/store/Memory',

    'dijit/_WidgetBase',
    'dijit/_TemplatedMixin',

    'esri/graphic',

    './data/townships'
], function(
    template,

    declare,
    lang,
    array,

    domStyle,
    domConstruct,
    domClass,
    domAttr,

    query,

    script,

    MemoryStore,

    _WidgetBase,
    _TemplatedMixin,

    Graphic,

    townships
) {
    return declare([_WidgetBase, _TemplatedMixin], {
        // description:
        //      **Summary**: Allows the user to quickly zoom to a specific township, range, and optionally section.
        //      <p>
        //      **Owner(s)**: <NAME>
        //      </p>
        //      <p>
        //      **Test Page**: <a href='/tests/dojo/agrc/1.0/agrc/widgets/tests/TRSsearchTests.html' target='_blank'>
        //        agrc.widgets.map.TRSsearch.Test</a>
        //      </p>
        //      <p>
        //      **Description**:
        //      You can set the meridian, township, range and section values by using the set method and the
        //      corresponding controls with update.
        //      This widget can be used without a map.
        //      </p>
        //      <p>
        //      **Required Files**:
        //      </p>
        //      <ul><li>agrc/themes/standard/locate/TRSsearch.css</li></ul>
        // example:
        // |    var demoWidget = new agrc.widgets.locate.TRSsearch({
        // |        map: map
        // |    }, 'demo-widget');

        templateString: template,

        baseClass: 'agrc-trs',

        // _rangeQueryUrl: [private]String
        //      The url for the web service to query for appropriate ranges based on
        //      the passed in meridian and township

        // _sectionQueryUrl: [private]String
        //      The url for the web service to query for appropriate sections based on
        //      the passed in meridian, township and range.

        // _getEnvelopeUrl: [private]String
        //      The url for the get envelope web service

        urls: {
            range: '//api.mapserv.utah.gov/api/v1/search/SGID10.CADASTRE.PLSS_TR_Lookup/' +
                'PairsWith?predicate=TorRNAME=\'{0}\'&apikey={1}',
            section: '//api.mapserv.utah.gov/api/v1/search/SGID10.CADASTRE.PLSS_Sec_Lookup/' +
                'PairsWith?predicate=TRNAME=\'{0}\'&apikey={1}',
            envelope: '//api.mapserv.utah.gov/api/v1/search/{0}/shape@?predicate={1}&apikey={2}'
        },

        fields: {
            meridian: 'BASEMERIDIAN',
            section: 'SECTION'
        },

        featureClasses: {
            section: 'SGID10.CADASTRE.PLSSSections_GCDB',
            township: 'SGID10.CADASTRE.PLSSTownships_GCDB'
        },

        // meridian: String
        //      The currently selected meridian. (sl or ub)
        meridian: 'SL',

        // township: String
        //      The currently selected township. (ie. 1N)
        township: '',

        // range: String
        //      The currently selected range. (ie. R1E)
        range: '',

        // section: String
        //      The currently selected section. (ie. 23)
        section: '',

        // attach points
        // townshipNode: <select>
        // rangeNode: <select>
        // sectionNode: <select>
        // slNode: <button>
        // ubNode: <button>
        // zoomNode: <buton>

        // Parameters to constructor

        // map: esri.Map
        //      A reference to the map that you want the widget associated with.
        //      If no map is provided, the zoom button is hidden.
        map: null,

        // apiKey: string
        //      Your http://developer.mapserv.utah.gov api key
        apiKey: null,

        // hideSection: Boolean
        //      Determines whether or not the section number is used.
        //      Defaults to false.
        hideSection: false,

        // requireSection: Boolean
        //      Determines whether or not the section number is required.
        //      Defaults to false.
        requireSection: false,

        // formName: string
        //      When using this widget in a form this is the name of the hidden
        //      input for submitting the trs values.
        //      defaults to 'trs'
        formName: 'trs',

        constructor: function() {
            // summary:
            //      description
            console.log('agrc.widgets.locate.TrsSeearch::constructor', arguments);
        },
        postCreate: function() {
            // summary:
            //    Overrides method of same name in dijit._Widget.
            // tags:
            //    private
{'fraction_non_alphanumeric': 0.12418633034987794, 'fraction_numerical': 0.004882017900732303, 'mean_word_length': 1.525815566401233, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3598854', 'n_tokens_mistral': 2997, 'n_tokens_neox': 2852, 'n_words': 704}