<commit_before>{strip}
  <a name='create'></a>
  <div class='page-header'>
    <h2>
      {$lang.comments.title.create}
    </h2>
  </div>
  <form method='post' data-ajax='false' class='form-horizontal'>
    {if $_SESSION.user.role == 0 && $_SYSTEM.facebook_plugin == true}
      <p>
        <fb:login-button scope='email'
                         onlogin="window.location='{$CURRENT_URL}#comments'">
        </fb:login-button>
      </p>
    {/if}
    <div class='control-group{if isset($error.name)} alert alert-error{/if}'>
      <label for='input-name' class='control-label'>
        {$lang.global.name} <span title='{$lang.global.required}'>*</span>
      </label>
      <div class='controls'>
        {if $_SESSION.user.name}
          <input type='text' name='name' value="{$_SESSION.user.full_name}"
                 id='input-name' class='disabled span4' disabled />
          {if $_SESSION.user.facebook_id}
            <input type='hidden' value="{$_SESSION.user.facebook_id}" name='facebook_id' />
          {/if}
        {else}
          <input type='text' value="{if isset($name)}{$name}{/if}" name='name'
                id='input-name' class='required span4' required />
          {if isset($error.name)}<span class='help-inline'>{$error.name}</span>{/if}
        {/if}
      </div>
    </div>
    <div class='control-group{if isset($error.email)} alert alert-error{/if}'>
      <label for='input-email' class='control-label'>
        {$lang.global.email.email}
      </label>
      <div class='controls'>
        {if $_SESSION.user.email}
          <input type='text' id='input-email' class='disabled span4' name='email'
                value="{$_SESSION.user.email}" disabled />
        {else}
          <input type='email' class='span4' value="{if isset($email)}{$email}{/if}"
                name='email' id='input-email' />
          {if isset($error.email)}<span class='help-inline'>{$error.email}</span>{/if}
        {/if}
      </div>
    </div>
    <div class='control-group{if isset($error.content)} alert alert-error{/if}'>
      <label for='js-create_commment_text' class='control-label'>
        {$lang.global.content} <span title='{$lang.global.required}'>*</span>
      </label>
      <div class='controls'>
        <textarea name='content' id='js-create_commment_text' rows='5'
                  class='required span4' required>
          {if isset($content)}{$content}{/if}
        </textarea>
        {if isset($error.content)}<span class='help-inline'>{$error.content}</span>{/if}
      </div>
    </div>
    {if isset($_captcha_)}{$_captcha_}{/if}
    <div class='form-actions' data-role='controlgroup' data-type='horizontal'>
      <input type='submit' value='{$lang.comments.title.create}'
             data-theme='b' class='btn btn-primary' />
      <input type='reset' value='{$lang.global.reset}' class='btn' />
      <input type='hidden' value='formdata' name='create_comments' />
      <input type='hidden' value='{$_REQUEST.id}' name='parent_id' />
    </div>
  </form>
{strip}<commit_msg>centered create comment and reset buttons in Comments:_form<commit_after>{strip}
  <a name='create'></a>
  <div class='page-header'>
    <h2>
      {$lang.comments.title.create}
    </h2>
  </div>
  <form method='post' data-ajax='false' class='form-horizontal'>
    {if $_SESSION.user.role == 0 && $_SYSTEM.facebook_plugin == true}
      <p>
        <fb:login-button scope='email'
                         onlogin="window.location='{$CURRENT_URL}#comments'">
        </fb:login-button>
      </p>
    {/if}
    <div class='control-group{if isset($error.name)} alert alert-error{/if}'>
      <label for='input-name' class='control-label'>
        {$lang.global.name} <span title='{$lang.global.required}'>*</span>
      </label>
      <div class='controls'>
        {if $_SESSION.user.name}
          <input type='text' name='name' value="{$_SESSION.user.full_name}"
                 id='input-name' class='disabled span4' disabled />
          {if $_SESSION.user.facebook_id}
            <input type='hidden' value="{$_SESSION.user.facebook_id}" name='facebook_id' />
          {/if}
        {else}
          <input type='text' value="{if isset($name)}{$name}{/if}" name='name'
                id='input-name' class='required span4' required />
          {if isset($error.name)}<span class='help-inline'>{$error.name}</span>{/if}
        {/if}
      </div>
    </div>
    <div class='control-group{if isset($error.email)} alert alert-error{/if}'>
      <label for='input-email' class='control-label'>
        {$lang.global.email.email}
      </label>
      <div class='controls'>
        {if $_SESSION.user.email}
          <input type='text' id='input-email' class='disabled span4' name='email'
                value="{$_SESSION.user.email}" disabled />
        {else}
          <input type='email' class='span4' value="{if isset($email)}{$email}{/if}"
                name='email' id='input-email' />
          {if isset($error.email)}<span class='help-inline'>{$error.email}</span>{/if}
        {/if}
      </div>
    </div>
    <div class='control-group{if isset($error.content)} alert alert-error{/if}'>
      <label for='js-create_commment_text' class='control-label'>
        {$lang.global.content} <span title='{$lang.global.required}'>*</span>
      </label>
      <div class='controls'>
        <textarea name='content' id='js-create_commment_text' rows='5'
                  class='required span4' required>
          {if isset($content)}{$content}{/if}
        </textarea>
        {if isset($error.content)}<span class='help-inline'>{$error.content}</span>{/if}
      </div>
    </div>
    {if isset($_captcha_)}{$_captcha_}{/if}
    <div class='form-actions center' data-role='controlgroup' data-type='horizontal'>
      <input type='submit' value='{$lang.comments.title.create}'
             data-theme='b' class='btn btn-primary' />
      <input type='reset' value='{$lang.global.reset}' class='btn' />
      <input type='hidden' value='formdata' name='create_comments' />
      <input type='hidden' value='{$_REQUEST.id}' name='parent_id' />
    </div>
  </form>
{strip}
{'fraction_non_alphanumeric': 0.19290394757871185, 'fraction_numerical': 0.002876778008630334, 'mean_word_length': 2.557703240477544, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '6511615', 'n_tokens_mistral': 1996, 'n_tokens_neox': 1935, 'n_words': 335}