<commit_before>            <div class="row fade in active tab-pane" id="tab-char">
                <div class="col-md-5 col-sm-5">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title btn-xs-lineheight"><i class="fa fa-caret-down" aria-hidden="true"></i> API Scopes</h3>
                        </div>
                        <div class="panel-body">
                            <strong>Update your API scopes to access other features.</strong>
                            <table class="table table-no-margin-bottom">
                            <thead>
                                <tr>
                                    <th>Scope</th>
                                    <th>Usage</th>
                                    <th>&nbsp;</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td data-toggle="tooltip" data-container="body" data-placement="top" title="esi-skills.read_skills.v1">Skills</td>
                                    <td><span class="small">View your character skills</span></td>
                                    <td class="td-valign-middle"><input name="scope" type="checkbox" value="esi-skills.read_skills.v1" autocomplete="off"></td>
                                </tr>
                                <tr>
                                    <td data-toggle="tooltip" data-container="body" data-placement="top" title="characterAssetsRead">Character assets</td>
                                    <td><span class="small">View your character assets (to only get blueprints)</span></td>
                                    <td class="td-valign-middle"><input name="scope" type="checkbox" value="characterAssetsRead" autocomplete="off"></td>
                                </tr>
                                <tr>
                                    <td data-toggle="tooltip" data-container="body" data-placement="top" title="corporationAssetsRead">Corporation assets</td>
                                    <td><span class="small">View your corporation assets (to only get blueprints)</span></td>
                                    <td class="td-valign-middle"><input name="scope" type="checkbox" value="corporationAssetsRead" autocomplete="off"></td>
                                </tr>
                            </tbody>
                            </table>
                            <p>
                                <a class="pull-right" id="update-scope" href="{{ url_for('sso.login') }}">
                                    <img src="https://images.contentful.com/idjq7aai9ylm/18BxKSXCymyqY4QKo8KwKe/c2bdded6118472dd587c8107f24104d7/EVE_SSO_Login_Buttons_Small_White.png?w=195&amp;h=30" alt="Log in with eveonline.com" />
                                </a>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="col-md-7 col-sm-7">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title btn-xs-lineheight"><i class="fa fa-caret-down" aria-hidden="true"></i> Current API scopes</h3>
                        </div>
                        <div class="panel-body">
                            <table class="table table-no-margin-bottom">
                            <thead>
                                <tr>
                                    <th>Character</th>
                                    <th>Scope</th>
                                    <th>Last Update</th>
                                    <th>&nbsp;</th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for token in current_user.tokens -%}
                                <tr id="scope-{{ current_user.character_id }}" data-scope="{{ token.scope }}">
                                    <td>{{ current_user.character_name }}</td>
                                    <td>{{ token.scope }}</td>
                                    <td>{{ token.get_last_update_string() }}</td>
                                    <td class="td-valign-middle">
                                        <button style="margin-left:5px" class="btn btn-xs btn-danger pull-right delete-scope" data-scope="{{ token.scope }}" data-char-id="{{ current_user.character_id }}">
                                            <i class="fa fa-times" aria-hidden="true"></i>
                                        </button>
                                    </td>
                                </tr>
                                {%- endfor %}
                                {% for alt in current_user.alts_characters.all() -%}
                                    {%- for token in alt.tokens -%}
                                    <tr id="scope-{{ alt.character_id }}" data-scope="{{ token.scope }}">
                                        <td>{{ alt.character_name }}</td>
                                        <td>{{ token.scope }}</td>
                                        <td>{{ token.get_last_update_string() }}</td>
                                        <td class="td-valign-middle">
                                            <button style="margin-left:5px" class="btn btn-xs btn-danger pull-right delete-scope" data-scope="{{ token.scope }}" data-char-id="{{ alt.character_id }}">
                                                <i class="fa fa-times" aria-hidden="true"></i>
                                            </button>
                                        </td>
                                    </tr>
                                    {%- endfor %}
                                {%- endfor %}
                            </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

<commit_msg>Highlight invalid Scopes<commit_after>            <div class="row fade in active tab-pane" id="tab-char">
                <div class="col-md-5 col-sm-5">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title btn-xs-lineheight"><i class="fa fa-caret-down" aria-hidden="true"></i> API Scopes</h3>
                        </div>
                        <div class="panel-body">
                            <strong>Update your API scopes to access other features.</strong>
                            <table class="table table-no-margin-bottom">
                            <thead>
                                <tr>
                                    <th>Scope</th>
                                    <th>Usage</th>
                                    <th>&nbsp;</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td data-toggle="tooltip" data-container="body" data-placement="top" title="esi-skills.read_skills.v1">Skills</td>
                                    <td><span class="small">View your character skills</span></td>
                                    <td class="td-valign-middle"><input name="scope" type="checkbox" value="esi-skills.read_skills.v1" autocomplete="off"></td>
                                </tr>
                                <tr>
                                    <td data-toggle="tooltip" data-container="body" data-placement="top" title="characterAssetsRead">Character assets</td>
                                    <td><span class="small">View your character assets (to only get blueprints)</span></td>
                                    <td class="td-valign-middle"><input name="scope" type="checkbox" value="characterAssetsRead" autocomplete="off"></td>
                                </tr>
                                <tr>
                                    <td data-toggle="tooltip" data-container="body" data-placement="top" title="corporationAssetsRead">Corporation assets</td>
                                    <td><span class="small">View your corporation assets (to only get blueprints)</span></td>
                                    <td class="td-valign-middle"><input name="scope" type="checkbox" value="corporationAssetsRead" autocomplete="off"></td>
                                </tr>
                            </tbody>
                            </table>
                            <p>
                                <a class="pull-right" id="update-scope" href="{{ url_for('sso.login') }}">
                                    <img src="https://images.contentful.com/idjq7aai9ylm/18BxKSXCymyqY4QKo8KwKe/c2bdded6118472dd587c8107f24104d7/EVE_SSO_Login_Buttons_Small_White.png?w=195&amp;h=30" alt="Log in with eveonline.com" />
                                </a>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="col-md-7 col-sm-7">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title btn-xs-lineheight"><i class="fa fa-caret-down" aria-hidden="true"></i> Current API scopes</h3>
                        </div>
                        <div class="panel-body">
                            <table class="table table-no-margin-bottom">
                            <thead>
                                <tr>
                                    <th>Character</th>
                                    <th>Scope</th>
                                    <th>Last Update</th>
                                    <th>&nbsp;</th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for token in current_user.tokens -%}
                                <tr id="scope-{{ current_user.character_id }}" data-scope="{{ token.scope }}" {% if not token.valid %}class="bg-danger" data-toggle="tooltip" data-placement="top" title="This scope is no longer valid (too many errors). It won't be updated unless you delete it and add a new one."{% endif %}>
                                    <td>{{ current_user.character_name }}</td>
                                    <td>
                                        {{ token.scope }}
                                        {% if not token.valid %}
                                        <span class="label label-danger">
                                            <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Invalid
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>{{ token.get_last_update_string() }}</td>
                                    <td class="td-valign-middle">
                                        <button style="margin-left:5px" class="btn btn-xs btn-danger pull-right delete-scope" data-scope="{{ token.scope }}" data-char-id="{{ current_user.character_id }}">
                                            <i class="fa fa-times" aria-hidden="true"></i>
                                        </button>
                                    </td>
                                </tr>
                                {%- endfor %}
                                {% for alt in current_user.alts_characters.all() -%}
                                    {%- for token in alt.tokens -%}
                                    <tr id="scope-{{ alt.character_id }}" data-scope="{{ token.scope }}">
                                        <td>{{ alt.character_name }}</td>
                                        <td>{{ token.scope }}</td>
                                        <td>{{ token.get_last_update_string() }}</td>
                                        <td class="td-valign-middle">
                                            <button style="margin-left:5px" class="btn btn-xs btn-danger pull-right delete-scope" data-scope="{{ token.scope }}" data-char-id="{{ alt.character_id }}">
                                                <i class="fa fa-times" aria-hidden="true"></i>
                                            </button>
                                        </td>
                                    </tr>
                                    {%- endfor %}
                                {%- endfor %}
                            </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>


{'fraction_non_alphanumeric': 0.11997257769652651, 'fraction_numerical': 0.006703229737964655, 'mean_word_length': 0.8577897268996746, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 255, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 109, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5622597', 'n_tokens_mistral': 3090, 'n_tokens_neox': 2856, 'n_words': 546}