<commit_before><script id="dataexplorer_view-template" type="text/x-handlebars-template">
    <div class="section">
        <h1 class="title">Data Explorer</h1>
        <div id="user-alert-space"></div>
        <div class="input_query_full_container"></div>
    </div>
    <div class="results_container section">
    </div>
</script>

<script id="alert-connection_fail-template" type="text/x-handlebars-template">
    <div class="alert alert-error displayed_alert" data-alert="alert">
        <a class="close" href="#">&times;</a>
        <p>The connection to the server failed. Please try to <a href="#" id="reconnect">reconnect</a></p>
    </div>
</script>

<script id="dataexplorer-description-template" type="text/x-handlebars-template">
<p><span class="description_name">{{name}}</span>{{#if args}}<span class="description_arguments">{{args}}</span>{{/if}}</p>
<p>{{print_safe description}}</p>
</script>

<script id="dataexplorer-databases_suggestions-template" type="text/x-handlebars-template">
{{#if no_database}}
<br/>No database found. Use dbCreate() to create a new database first.
{{else}}
<br/>List of databases available: {{comma_separated_simple databases_available}}
{{/if}}
</script>
<script id="dataexplorer-namespaces_suggestions-template" type="text/x-handlebars-template">
{{#if error}}
<br/>The database specified in db() was not found.
{{else}}
    {{#if no_namespace}}
        {{#if database_name}}
        <br/>No table found in {{database_name}}. Use create() to create a new table first.
        {{else}}
        <br/>You need to create a database then a table first.
        {{/if}}
    {{else}}
    <br/>List of tables{{#if database_name}} in {{database_name}}{{/if}}: {{comma_separated_simple namespaces_available}}
    {{/if}}
{{/if}}




</script>



<script id="alert-reconnection_success-template" type="text/x-handlebars-template">
    <div class="alert" data-alert="alert">
        <a class="close" href="#">&times;</a>
        <p>Successfully reconnected.</p>
    </div>
</script>

<script id="dataexplorer_input_query-template" type="text/x-handlebars-template">
    <div class="input_query_container" >
        <div class="suggestion_full_container">
            <div class="suggestion_list_container">
                <ul class="suggestion_name_list"></ul>
            </div>
            <div class="suggestion_description"></div>
        </div>
        <div class="suggestion_description_arrow arrow"></div>
        <div class="suggestion_description_arrow_overlay arrow"></div>


        <textarea class="input_query" id="input_query"></textarea>
        <div class="button_container">
            <button class="btn button_query execute_query">Execute</button>
            <button class="btn button_query clear_query">Clear</button>
        </div>

    </div>
    <div class="loading_query">
        <img src="/images/ajax-loader.gif" class="loading_query_img"/>
    </div>
</script>

 
<script id="dataexplorer_suggestion_name_li-template" type="text/x-handlebars-template">
    <li class="suggestion_name_li" data-has_argument="{{has_argument}}" data-id={{id}}>{{suggestion}}</li>
</script>

<script id="dataexplorer_suggestion_name_li-template" type="text/x-handlebars-template">
    You have to choose the database that contains the tables you want to query on.
</script>
<script id="dataexplorer_suggestion_name_li-template" type="text/x-handlebars-template">
    You have to choose a table where you will run your query.
</script>


<script id="dataexplorer_default_view-template" type="text/x-handlebars-template">
    <p>You can automatically build a query by clicking on a table or on a previous query. You can then modify them as you wish.</p>
    <p>The data explorer is equipped with a suggestion feature, but if you are lost, you can find more details in the <a href="#help">help page</a>.</p>

    <div class="namespaces_available_container">
        <h3>Tables available</h3><commit_msg>Remove extra templates that we don't use anymore<commit_after><script id="dataexplorer_view-template" type="text/x-handlebars-template">
    <div class="section">
        <h1 class="title">Data Explorer</h1>
        <div id="user-alert-space"></div>
        <div class="input_query_full_container"></div>
    </div>
    <div class="results_container section">
    </div>
</script>

<script id="alert-connection_fail-template" type="text/x-handlebars-template">
    <div class="alert alert-error displayed_alert" data-alert="alert">
        <a class="close" href="#">&times;</a>
        <p>The connection to the server failed. Please try to <a href="#" id="reconnect">reconnect</a></p>
    </div>
</script>

<script id="dataexplorer-description-template" type="text/x-handlebars-template">
<p><span class="description_name">{{name}}</span>{{#if args}}<span class="description_arguments">{{args}}</span>{{/if}}</p>
<p>{{print_safe description}}</p>
</script>

<script id="dataexplorer-databases_suggestions-template" type="text/x-handlebars-template">
{{#if no_database}}
<br/>No database found. Use dbCreate() to create a new database first.
{{else}}
<br/>List of databases available: {{comma_separated_simple databases_available}}
{{/if}}
</script>
<script id="dataexplorer-namespaces_suggestions-template" type="text/x-handlebars-template">
{{#if error}}
<br/>The database specified in db() was not found.
{{else}}
    {{#if no_namespace}}
        {{#if database_name}}
        <br/>No table found in {{database_name}}. Use create() to create a new table first.
        {{else}}
        <br/>You need to create a database then a table first.
        {{/if}}
    {{else}}
    <br/>List of tables{{#if database_name}} in {{database_name}}{{/if}}: {{comma_separated_simple namespaces_available}}
    {{/if}}
{{/if}}




</script>



<script id="alert-reconnection_success-template" type="text/x-handlebars-template">
    <div class="alert" data-alert="alert">
        <a class="close" href="#">&times;</a>
        <p>Successfully reconnected.</p>
    </div>
</script>

<script id="dataexplorer_input_query-template" type="text/x-handlebars-template">
    <div class="input_query_container" >
        <div class="suggestion_full_container">
            <div class="suggestion_list_container">
                <ul class="suggestion_name_list"></ul>
            </div>
            <div class="suggestion_description"></div>
        </div>
        <div class="suggestion_description_arrow arrow"></div>
        <div class="suggestion_description_arrow_overlay arrow"></div>


        <textarea class="input_query" id="input_query"></textarea>
        <div class="button_container">
            <button class="btn button_query execute_query">Execute</button>
            <button class="btn button_query clear_query">Clear</button>
        </div>

    </div>
    <div class="loading_query">
        <img src="/images/ajax-loader.gif" class="loading_query_img"/>
    </div>
</script>

 
<script id="dataexplorer_suggestion_name_li-template" type="text/x-handlebars-template">
    <li class="suggestion_name_li" data-has_argument="{{has_argument}}" data-id={{id}}>{{suggestion}}</li>
</script>

<script id="dataexplorer_default_view-template" type="text/x-handlebars-template">
    <p>You can automatically build a query by clicking on a table or on a previous query. You can then modify them as you wish.</p>
    <p>The data explorer is equipped with a suggestion feature, but if you are lost, you can find more details in the <a href="#help">help page</a>.</p>

    <div class="namespaces_available_container">
        <h3>Tables available</h3>
{'fraction_non_alphanumeric': 0.16077552097072012, 'fraction_numerical': 0.0010551305724083356, 'mean_word_length': 4.092679650772331, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 189, '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': '7470496', 'n_tokens_mistral': 2358, 'n_tokens_neox': 2273, 'n_words': 545}