<commit_before>tr[id="team_user_#{team_user.id}"]
  td= team_user.user.username
  td
    .role= team_user.role.titleize
    .[id="change_role_team_user_#{team_user.id}" class="collapse"]
      = form_for team_user, remote: true, html: {class: 'form-inline', role: 'form'} do |f|
        = f.select(:role, TeamUser.roles.keys.map {|role| [role.titleize,role]}, {}, {class: 'form-control'})
        .[class='col-md-offset-2 col-md-7']
        = button_tag(type: 'submit', class: 'btn btn-primary') do
          i.fa.fa-check
          'Save

        .errors
  - if can_manage_team?(team_user.team)
    td
      button[class="btn btn-default btn-edit-role"
        value="#{team_user.id}"]
        i[class="fa fa-pencil fa-lg"]
    td
      a[class="btn btn-default"
        data-placement="left"
        data-toggle="popover"
        data-title="Please confirm"
        data-content='<p>Are you sure you want to remove this team member?</p><a class="btn btn-default">No</a> <a class="btn btn-primary" data-method="delete" rel="nofollow" data-remote="true" href="#{url_for(team_user)}">Yes</a>'
        data-html="true"
        tabindex="0"
        role="button"
        ]
        i[class="fa fa-trash fa-lg"]<commit_msg>ISSUE-214: removed useless tag in team page to align role select and  button. Fixed some slim codestyle.<commit_after>tr id="team_user_#{team_user.id}"
  td= team_user.user.username
  td
    .role= team_user.role.titleize
    .collapse id="change_role_team_user_#{team_user.id}"
      = form_for team_user, remote: true, html: {class: 'form-inline', role: 'form'} do |f|
        = f.select(:role, TeamUser.roles.keys.map {|role| [role.titleize,role]}, {}, {class: 'form-control'})
        = button_tag(type: 'submit', class: 'btn btn-primary pull-right') do
          i.fa.fa-check
          |Save

        .errors
  - if can_manage_team?(team_user.team)
    td
      button.btn.btn-default.btn-edit-role value="#{team_user.id}"
        i.fa.fa-pencil.fa-lg
    td
      a[class="btn btn-default"
        data-placement="left"
        data-toggle="popover"
        data-title="Please confirm"
        data-content='<p>Are you sure you want to remove this team member?</p><a class="btn btn-default">No</a> <a class="btn btn-primary" data-method="delete" rel="nofollow" data-remote="true" href="#{url_for(team_user)}">Yes</a>'
        data-html="true"
        tabindex="0"
        role="button"
        ]
        i[class="fa fa-trash fa-lg"]
{'fraction_non_alphanumeric': 0.16564916564916565, 'fraction_numerical': 0.002849002849002849, 'mean_word_length': 2.9140127388535033, 'pattern_counts': {'":': 0, '<': 15, '<?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': '4029601', 'n_tokens_mistral': 857, 'n_tokens_neox': 852, 'n_words': 167}