<commit_before>extends ../layout

block content
  if error.length
    .alert.alert-danger.fade.in
      button.close(data-dixsiss='alert'): i.fa.fa-times-circle
      = error
  if success.length
    .alert.alert-success.fade.in
      button.close(data-dixsiss='alert'): i.fa.fa-times-circle
      = success

  .page-header
    h3 Profile Information

  form.form-horizontal(action='/account/profile', method='POST')
    .form-group
      label.col-xs-2.control-label(for='email') Email
      .col-xs-4
        input.form-control(type='email', name='email', id='email', value='#{user.email}')
    .form-group
      label.col-xs-2.control-label(for='name') Name
      .col-xs-4
        input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
    .form-group
      label.col-xs-2.control-label(for='name') Gender
      .col-xs-4
        label.radio
          input(type='radio', checked=user.profile.gender=='male', name='gender', value='male', data-toggle='radio')
          | Male
        label.radio
          input(type='radio', checked=user.profile.gender=='female', name='gender', value='female', data-toggle='radio')
          | Female
    .form-group<commit_msg>Fixed animation and data-dismiss on profile flash messages<commit_after>extends ../layout

block content
  if error.length
    .alert.alert-danger.animated.fadeIn
      button.close(data-dismiss='alert') ×
      = error
  if success.length
    .alert.alert-success.animated.fadeInUp
      button.close(data-dismiss='alert') ×
      i.fa.fa-check
      = success

  .page-header
    h3 Profile Information

  form.form-horizontal(action='/account/profile', method='POST')
    .form-group
      label.col-xs-2.control-label(for='email') Email
      .col-xs-4
        input.form-control(type='email', name='email', id='email', value='#{user.email}')
    .form-group
      label.col-xs-2.control-label(for='name') Name
      .col-xs-4
        input.form-control(type='text', name='name', id='name', value='#{user.profile.name}')
    .form-group
      label.col-xs-2.control-label(for='name') Gender
      .col-xs-4
        label.radio
          input(type='radio', checked=user.profile.gender=='male', name='gender', value='male', data-toggle='radio')
          | Male
        label.radio
          input(type='radio', checked=user.profile.gender=='female', name='gender', value='female', data-toggle='radio')
          | Female
    .form-group
{'fraction_non_alphanumeric': 0.16988100123102176, 'fraction_numerical': 0.005744768157570784, 'mean_word_length': 2.8515007898894154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4091597', 'n_tokens_mistral': 801, 'n_tokens_neox': 773, 'n_words': 121}