<commit_before><ion-view view-title="Petition">
  <ion-content class="page-petition content">
    <section class="q-header margin-10">
      <div class="avatar" ng-click="navigateTo('owner-profile', petition.owner)">
        <avatar-img img="petition.owner.avatar" text="petition.owner.name"></avatar-img>
      </div>
      <div class="q-info">
        <div>
          <i class="icon-responses"></i> Responses <br>
          <span ng-bind="petition.signedForPetitionCount()"></span>
        </div>

        <div>
          <i class="icon-calendar"></i> Created <br>
          <time ng-bind="petition.created_at_date | date:'M.d.yy'"></time>
        </div>
        <div>
          <i class="icon-calendar"></i> Expires<br>
          <time ng-bind="petition.expired_at_date | date:'M.d.yy'"></time>
        </div>
        <div>
          Petition <br>
          <i class="icon-petition"></i>
        </div>
      </div>
    </section>

    <section class="q-content">
      <div class="title">
        <strong ng-bind="petition.owner.name" ng-click="navigateTo('owner-profile', petition.owner)"></strong>
      </div>
      
      <h1 ng-bind="petition.title" ng-show="petition.title"></h1>
      <div>
        <p ng-bind-html="petition.html_body" i-content-link></p>
      </div>

      <div ng-show="petition.canSeeResults()">
        <div class="chart">
          <p class="info-message">Current  Results</p>
          <p>Votes for this petition: {{petition.signedForPetitionCount() + 1}} </p>
        </div>
      </div>

      <section class="margin-h-10" ng-show="petition.canBeSigned() || petition.canBeUnsigned()">
          <div  style="float: left;width: 50%;padding-top: 12px;" class="margin-v-20">
              <div class="checkbox-privacy" ng-class="{checked: data.privacy}" ng-click="data.privacy = data.privacy ? 0 : 1" guide="privacy-option">
                  <i></i>
                  {{ data.privacy ? 'Username hidden' : 'Username visible'  }}
              </div>
          </div>
          <div style="float: left;width: 50%;" class="margin-v-20">
              <button class="btn-large btn-primary" ng-click="sign()" ng-show="petition.canBeSigned()">Sign</button>
              <button class="btn-large btn-primary" ng-click="unsign()" ng-show="petition.canBeUnsigned()">Unsign</button>
          </div>
      </section>

      <ng-include src="'templates/widget/share.html'"></ng-include>
    </section>


    <tab-panel>
      <ul class="header">
        <li ng-click="open($event)">Discussion</li>
      </ul>
      <tabs>
        <tab><discussions id="petition.id" entity="'micro-petitions'"></discussions></tab>
      </tabs>
    </tab-panel>
  </ion-content>
</ion-view><commit_msg>fix bug: unable to add comment to Petition<commit_after><ion-view view-title="Petition">
  <ion-content class="page-petition content">
    <section class="q-header margin-10">
      <div class="avatar" ng-click="navigateTo('owner-profile', petition.owner)">
        <avatar-img img="petition.owner.avatar" text="petition.owner.name"></avatar-img>
      </div>
      <div class="q-info">
        <div>
          <i class="icon-responses"></i> Responses <br>
          <span ng-bind="petition.signedForPetitionCount()"></span>
        </div>

        <div>
          <i class="icon-calendar"></i> Created <br>
          <time ng-bind="petition.created_at_date | date:'M.d.yy'"></time>
        </div>
        <div>
          <i class="icon-calendar"></i> Expires<br>
          <time ng-bind="petition.expired_at_date | date:'M.d.yy'"></time>
        </div>
        <div>
          Petition <br>
          <i class="icon-petition"></i>
        </div>
      </div>
    </section>

    <section class="q-content">
      <div class="title">
        <strong ng-bind="petition.owner.name" ng-click="navigateTo('owner-profile', petition.owner)"></strong>
      </div>
      
      <h1 ng-bind="petition.title" ng-show="petition.title"></h1>
      <div>
        <p ng-bind-html="petition.html_body" i-content-link></p>
      </div>

      <div ng-show="petition.canSeeResults()">
        <div class="chart">
          <p class="info-message">Current  Results</p>
          <p>Votes for this petition: {{petition.signedForPetitionCount() + 1}} </p>
        </div>
      </div>

      <section class="margin-h-10" ng-show="petition.canBeSigned() || petition.canBeUnsigned()">
          <div  style="float: left;width: 50%;padding-top: 12px;" class="margin-v-20">
              <div class="checkbox-privacy" ng-class="{checked: data.privacy}" ng-click="data.privacy = data.privacy ? 0 : 1" guide="privacy-option">
                  <i></i>
                  {{ data.privacy ? 'Username hidden' : 'Username visible'  }}
              </div>
          </div>
          <div style="float: left;width: 50%;" class="margin-v-20">
              <button class="btn-large btn-primary" ng-click="sign()" ng-show="petition.canBeSigned()">Sign</button>
              <button class="btn-large btn-primary" ng-click="unsign()" ng-show="petition.canBeUnsigned()">Unsign</button>
          </div>
      </section>

      <ng-include src="'templates/widget/share.html'"></ng-include>
    </section>


    <tab-panel>
      <ul class="header">
        <li ng-click="open($event)">Discussion</li>
      </ul>
      <tabs>
        <tab><discussions id="petition.id" entity="'poll'"></discussions></tab>
      </tabs>
    </tab-panel>
  </ion-content>
</ion-view>
{'fraction_non_alphanumeric': 0.1922794117647059, 'fraction_numerical': 0.006985294117647059, 'mean_word_length': 2.4241661422278162, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 175, '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': '1442269', 'n_tokens_mistral': 1839, 'n_tokens_neox': 1720, 'n_words': 296}