<commit_before>require.def('design/form', [], {
    
    Form : function(view, concept_pk){
          var s_to_primative_map = {"true":true, "false":false, "null":null};
          var $form = $('<span class="form_container"></span>');
          var decOperatorsTmpl =  ['<option selected id="<%=this.field_id%>" value="range">is between</option>',
                                   '<option id="<%=this.field_id%>" value="-range">is not between</option>',
                                   '<option id="<%=this.field_id%>" value="lt">is less than</option>',
                                   '<option id="<%=this.field_id%>" value="gt">is greater than</option>',
                                   '<option id="<%=this.field_id%>" value="lte">is less than or equal to</option>',
                                   '<option id="<%=this.field_id%>" value="gte">is greater than or equal to</option>',
                                   '<option id="<%=this.field_id%>" value="exact">is equal to</option>',
                                   '<option id="<%=this.field_id%>" value="-exact">is not equal to</option>',
                                   '<option id="<%=this.field_id%>" value="isnull">is null</option>',
                                   '<option id="<%=this.field_id%>" value="-isnull">is not null</option>'].join('');
                                   
          var choiceOperatorsTmpl = ['<option selected value="in">is equal to</option>',
                                     '<option value="-in">is not equal to</option>'].join('');
                                     
                                     
          var freeTextOperatorsTmpl = ['<option selected value="exact">is equal to</option>',
                                       '<option value="-exact">is not equal to</option>',
                                       '<option value="contains">contains</option>',
                                       '<option value="-contains">does not contain</option>'].join('');
           
          // For most cases we use the name attribute to constuct a unique id for all inputs (see field_id in the template context 
          // object below). The format for it is <concept primary key>_<field primary key> with optional "_input[01]" to support datatypes that
          // require ranges, and "_operator" to indicate the field represents an operator that can be changed by the users. With nothing appended to the 
          // end of the name, this indicates a "choice" or "assertion" (which maps to a check box) datatype. There is one exception that complicates things:
          // Some concepts include a field that is itself variable. That is to say that the user will supply some sort of value, for example, a decimal range,<commit_msg>Text inputs exact -> iexact.<commit_after>require.def('design/form', [], {
    
    Form : function(view, concept_pk){
          var s_to_primative_map = {"true":true, "false":false, "null":null};
          var $form = $('<span class="form_container"></span>');
          var decOperatorsTmpl =  ['<option selected id="<%=this.field_id%>" value="range">is between</option>',
                                   '<option id="<%=this.field_id%>" value="-range">is not between</option>',
                                   '<option id="<%=this.field_id%>" value="lt">is less than</option>',
                                   '<option id="<%=this.field_id%>" value="gt">is greater than</option>',
                                   '<option id="<%=this.field_id%>" value="lte">is less than or equal to</option>',
                                   '<option id="<%=this.field_id%>" value="gte">is greater than or equal to</option>',
                                   '<option id="<%=this.field_id%>" value="exact">is equal to</option>',
                                   '<option id="<%=this.field_id%>" value="-exact">is not equal to</option>',
                                   '<option id="<%=this.field_id%>" value="isnull">is null</option>',
                                   '<option id="<%=this.field_id%>" value="-isnull">is not null</option>'].join('');
                                   
          var choiceOperatorsTmpl = ['<option selected value="in">is equal to</option>',
                                     '<option value="-in">is not equal to</option>'].join('');
                                     
                                     
          var freeTextOperatorsTmpl = ['<option selected value="iexact">is equal to</option>',
                                       '<option value="-iexact">is not equal to</option>',
                                       '<option value="contains">contains</option>',
                                       '<option value="-contains">does not contain</option>'].join('');
           
          // For most cases we use the name attribute to constuct a unique id for all inputs (see field_id in the template context 
          // object below). The format for it is <concept primary key>_<field primary key> with optional "_input[01]" to support datatypes that
          // require ranges, and "_operator" to indicate the field represents an operator that can be changed by the users. With nothing appended to the 
          // end of the name, this indicates a "choice" or "assertion" (which maps to a check box) datatype. There is one exception that complicates things:
          // Some concepts include a field that is itself variable. That is to say that the user will supply some sort of value, for example, a decimal range,
{'fraction_non_alphanumeric': 0.1382347654143448, 'fraction_numerical': 0.0007190364911019234, 'mean_word_length': 1.8143651997976733, 'pattern_counts': {'":': 6, '<': 95, '<?xml version=': 0, '>': 96, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2362662', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1368, 'n_words': 434}