<commit_before>.main-content.city-info(ng-controller="CityInfoController" ng-init="initialize('#{escape_javascript(CitySerializer.new(@city).to_json)}', '#{escape_javascript(City.colors.to_json)}')")

  %form{:role => 'form', name: 'cityForm'}(novalidate ng-submit="updateCity()")

    .screen-intro
      %p.screen-info
        Fill in your city's details to create your custom City72 site.
      .action-area
        %button.btn.btn-primary.ladda-button{:type => 'submit'}(ng-disabled="cityForm.$invalid || updating" data-style="expand-left" ui-ladda="updating")
          %span.ladda-label Save Changes

    .form-group(ng-class="{'has-error': cityForm.name.$dirty && cityForm.name.$invalid}")
      %label.control-label{:for => 'name'}
        City Name
        %span.req *
        %span.help (e.g. New York, Denver ... )
      %input.form-control#name{:name => 'name', :'ng-model' => 'city.name'}(required)
      %span.help-block(ng-show="cityForm.name.$dirty && cityForm.name.$invalid")
        can't be blank

    .form-group(ng-class="{'has-error': cityForm.abbreviation.$dirty && cityForm.abbreviation.$invalid}")
      %label.control-label{:for => 'city-abr'}
        City Abbreviation
        %span.req *
        %span.help (e.g. NY, Den ... )
      .input-group.input-sm.input-abr<commit_msg>Update show.html.haml<commit_after>.main-content.city-info(ng-controller="CityInfoController" ng-init="initialize('#{escape_javascript(CitySerializer.new(@city).to_json)}', '#{escape_javascript(City.colors.to_json)}')")

  %form{:role => 'form', name: 'cityForm'}(novalidate ng-submit="updateCity()")

    .screen-intro
      %p.screen-info
        Fill in your county's details to create your custom City72 site.
      .action-area
        %button.btn.btn-primary.ladda-button{:type => 'submit'}(ng-disabled="cityForm.$invalid || updating" data-style="expand-left" ui-ladda="updating")
          %span.ladda-label Save Changes

    .form-group(ng-class="{'has-error': cityForm.name.$dirty && cityForm.name.$invalid}")
      %label.control-label{:for => 'name'}
        City Name
        %span.req *
        %span.help (e.g. New York, Denver ... )
      %input.form-control#name{:name => 'name', :'ng-model' => 'city.name'}(required)
      %span.help-block(ng-show="cityForm.name.$dirty && cityForm.name.$invalid")
        can't be blank

    .form-group(ng-class="{'has-error': cityForm.abbreviation.$dirty && cityForm.abbreviation.$invalid}")
      %label.control-label{:for => 'city-abr'}
        City Abbreviation
        %span.req *
        %span.help (e.g. NY, Den ... )
      .input-group.input-sm.input-abr
{'fraction_non_alphanumeric': 0.186401833460657, 'fraction_numerical': 0.0015278838808250573, 'mean_word_length': 3.2794117647058822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2745549', 'n_tokens_mistral': 883, 'n_tokens_neox': 852, 'n_words': 130}