<commit_before><div class="field" ng-class="{'limit-error': item.headline.length > limits.headline}" order="{{editor.headline.order}}" sd-validation-error="error.headline" data-required="schema.headline.required">
  <label translate>Headline</label>
    <span ng-if="schema.headline.maxlength" sd-character-count data-item="item.headline" data-html="true" data-limit="schema.headline.maxlength"></span>
    <div id="title" class="headline"
        sd-text-editor
        data-config="{disableToolbar: true, disableReturn: true, disableEditing: isPublished(item), tabindex: editor.headline.order}"
        data-editorformat="editor.headline.formatOptions"
        data-language="item.language"
        ng-model="item.headline"
        ng-change="autosave(item)"
        ng-if="_editable"
        ng-trim="false"></div>
  <div class="headline" ng-if="!_editable">{{item.headline}}</div>
</div>

<div class="field" ng-if="schema.sms && item._type !== 'archived'" order="{{editor.sms.order}}">
    <label ng-if="_editable" translate>SMS</label>
    <div ng-if="_editable">
        <span ng-if="_editable" sd-switch ng-model="item.flags.marked_for_sms"
        class="sms-switch" tabindex="{{editor.sms.order}}"></span>
    </div>
    <span ng-if="item.flags.marked_for_sms" sd-character-count data-item="item.sms_message" data-html="true" data-limit="160"></span>
    <div ng-if="item.flags.marked_for_sms">
        <label translate>SMS Message</label>
        <input tabindex="{{editor.sms.order}}" type="text"
         class="byline"
         id="sms_message"
         ng-model="item.sms_message"
         ng-change="autosave(item)"
         ng-if="_editable"
         placeholder="Add sms message here"
         sd-focus-element
         data-append-element=".field"
         data-append-class="active">
        <div ng-if="!_editable">{{item.sms_message}}</div>
    </div>
</div>

<div ng-if="schema.feature_image" sd-validation-error="error.feature_image" order="{{editor.feature_image.order}}"
    data-required="schema.feature_image.required" class="field featured-image">
  <label translate>Featured Image</label>
  <div sd-item-association
    data-item="item"
    data-rel="'featureimage'"
    data-editable="_editable"
    data-onchange="autosave(item)"></div>
</div>

<div class="field abstract" ng-class="{'limit-error': item.abstract.length > limits.abstract}" ng-if="schema.abstract" order="{{editor.abstract.order}}" sd-validation-error="error.abstract" data-required="schema.abstract.required">
  <label translate>Abstract</label>
    <span ng-if="schema.abstract.maxlength"
          sd-character-count
          data-item="item.abstract"
          data-html="true"
          data-limit="schema.abstract.maxlength"></span>
    <span sd-word-count data-item="item.abstract" data-html="true"></span>
    <div id="abstract" class="abstract"
        sd-text-editor
        data-config="{disableToolbar: true, disableEditing: isPublished(item), tabindex: editor.abstract.order}"
        data-editorformat="editor.abstract.formatOptions"
        data-language="item.language"
        ng-model="item.abstract"
        ng-change="autosave(item)"
        ng-if="_editable"
        ng-trim="false"></div>
  <div class="abstract" ng-if="!_editable" sd-html-preview="item.abstract"></div>
</div>

<div class="field" ng-if="item._type !== 'archived' && schema.byline" order="{{editor.byline.order}}" sd-validation-error="error.byline" data-required="schema.byline.required">
  <label translate>Byline</label>
   <!-- Placeholder text is temporary, ideally it should come from content type -->
   <div id="byline" class="byline"<commit_msg>Displaying word count for abstract field fixed.<commit_after><div class="field" ng-class="{'limit-error': item.headline.length > limits.headline}" order="{{editor.headline.order}}" sd-validation-error="error.headline" data-required="schema.headline.required">
  <label translate>Headline</label>
    <span ng-if="schema.headline.maxlength" sd-character-count data-item="item.headline" data-html="true" data-limit="schema.headline.maxlength"></span>
    <div id="title" class="headline"
        sd-text-editor
        data-config="{disableToolbar: true, disableReturn: true, disableEditing: isPublished(item), tabindex: editor.headline.order}"
        data-editorformat="editor.headline.formatOptions"
        data-language="item.language"
        ng-model="item.headline"
        ng-change="autosave(item)"
        ng-if="_editable"
        ng-trim="false"></div>
  <div class="headline" ng-if="!_editable">{{item.headline}}</div>
</div>

<div class="field" ng-if="schema.sms && item._type !== 'archived'" order="{{editor.sms.order}}">
    <label ng-if="_editable" translate>SMS</label>
    <div ng-if="_editable">
        <span ng-if="_editable" sd-switch ng-model="item.flags.marked_for_sms"
        class="sms-switch" tabindex="{{editor.sms.order}}"></span>
    </div>
    <span ng-if="item.flags.marked_for_sms" sd-character-count data-item="item.sms_message" data-html="true" data-limit="160"></span>
    <div ng-if="item.flags.marked_for_sms">
        <label translate>SMS Message</label>
        <input tabindex="{{editor.sms.order}}" type="text"
         class="byline"
         id="sms_message"
         ng-model="item.sms_message"
         ng-change="autosave(item)"
         ng-if="_editable"
         placeholder="Add sms message here"
         sd-focus-element
         data-append-element=".field"
         data-append-class="active">
        <div ng-if="!_editable">{{item.sms_message}}</div>
    </div>
</div>

<div ng-if="schema.feature_image" sd-validation-error="error.feature_image" order="{{editor.feature_image.order}}"
    data-required="schema.feature_image.required" class="field featured-image">
  <label translate>Featured Image</label>
  <div sd-item-association
    data-item="item"
    data-rel="'featureimage'"
    data-editable="_editable"
    data-onchange="autosave(item)"></div>
</div>

<div class="field abstract" ng-class="{'limit-error': item.abstract.length > limits.abstract}" ng-if="schema.abstract" order="{{editor.abstract.order}}" sd-validation-error="error.abstract" data-required="schema.abstract.required">
  <label translate>Abstract</label>
    <span sd-character-count
          data-item="item.abstract"
          data-html="true"></span>
    <span sd-word-count data-item="item.abstract" data-html="true"></span>
    <div id="abstract" class="abstract"
        sd-text-editor
        data-config="{disableToolbar: true, disableEditing: isPublished(item), tabindex: editor.abstract.order}"
        data-editorformat="editor.abstract.formatOptions"
        data-language="item.language"
        ng-model="item.abstract"
        ng-change="autosave(item)"
        ng-if="_editable"
        ng-trim="false"></div>
  <div class="abstract" ng-if="!_editable" sd-html-preview="item.abstract"></div>
</div>

<div class="field" ng-if="item._type !== 'archived' && schema.byline" order="{{editor.byline.order}}" sd-validation-error="error.byline" data-required="schema.byline.required">
  <label translate>Byline</label>
   <!-- Placeholder text is temporary, ideally it should come from content type -->
   <div id="byline" class="byline"
{'fraction_non_alphanumeric': 0.1762913723860961, 'fraction_numerical': 0.0008309098462816784, 'mean_word_length': 3.9330601092896176, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 105, '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': '5521251', 'n_tokens_mistral': 2294, 'n_tokens_neox': 2269, 'n_words': 343}