<commit_before>% if nodes:
    <div style="margin-right: 20px; margin-left: 20px" id = "${addon_short_name}-header">
        <table class="table table-hove" id="${addon_short_name}-auth-table">
             <thead>Authorized Projects:</thead>

            % for node in nodes:
                 <tr id="${addon_short_name}-${node['_id']}-auth-row">
                    <th><a style="font-weight: normal" href="${node['url']}">${node['title']}</a></th>
                     <th><a><i class="icon-remove pull-right text-danger ${addon_short_name}-remove-token" title="Deauthorize Project"></i></a></th>
                 </tr>
            % endfor
        </table>
    </div>

    <script>
        $('.${addon_short_name}-remove-token').on('click', function(event) {
            var $elm = $(event.target);
            bootbox.confirm('Are you sure you want to remove the ${addon_full_name} authorization from this project?', function(confirm) {
                if (confirm) {
                    $.ajax({
                        type: 'DELETE',
                        url: '/api/v1/project/${node['_id']}/${addon_short_name}/config/',
                        success: function(response) {

                            $("#${addon_short_name}-${node['_id']}-auth-row").hide();
                            if ($("#${addon_short_name}-auth-table tr:visible").length === 0) {
                                $("#${addon_short_name}-header").hide();
                            }
                        },

                        error: function(response) {

                            bootbox.alert('There was a problem, the project has not been deauthorized.');
                        }
                    });
                }
            });
        });
    </script>
% endif<commit_msg>add html attr node id<commit_after>% if nodes:
    <div style="margin-right: 20px; margin-left: 20px" id = "${addon_short_name}-header">
        <table class="table table-hove" id="${addon_short_name}-auth-table">
             <thead>Authorized Projects:</thead>

            % for node in nodes:
                 <tr id="${addon_short_name}-${node['_id']}-auth-row">
                    <th><a style="font-weight: normal" href="${node['url']}">${node['title']}</a></th>
                     <th><a><i class="icon-remove pull-right text-danger ${addon_short_name}-remove-token" node-id="${node['_id']}" title="Deauthorize Project"></i></a></th>
                 </tr>
            % endfor
        </table>
    </div>

    <script>
        $('.${addon_short_name}-remove-token').on('click', function(event) {
            var $elm = $(event.target);
            var nodeId = $(this).attr('node-id');
            bootbox.confirm('Are you sure you want to remove the ${addon_full_name} authorization from this project?', function(confirm) {
                if (confirm) {
                    $.ajax({
                        type: 'DELETE',
                        url: '/api/v1/project/' + nodeId + '/${addon_short_name}/config/',

                        success: function(response) {

                            $("#${addon_short_name}-" + nodeId + "-auth-row").hide();
                            if ($("#${addon_short_name}-auth-table tr:visible").length === 0) {
                                $("#${addon_short_name}-header").hide();
                            }
                        },

                        error: function(response) {

                            bootbox.alert('There was a problem, the project has not been deauthorized.');
                        }
                    });
                }
            });
        });
    </script>
% endif
{'fraction_non_alphanumeric': 0.1654833424358274, 'fraction_numerical': 0.0032768978700163844, 'mean_word_length': 1.5020491803278688, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '5318505', 'n_tokens_mistral': 1019, 'n_tokens_neox': 968, 'n_words': 183}