<commit_before>{% extends "base.html" %}
{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h2>Configuration</h2>
                {{ api_key_validate }}
                <hr/>
                {% if message %} {{ message }} {% endif %}
            </div>
        </div>

        <div class="row">
            <h4>Api.key</h4>
        </div>

        <div class='row'>
            <div class="col-md-6">
                {% if api_key_validate == 'You need an API KEY from youtube'%}
                    <p>
                        First of all you will need to <strong>get an API key from Google Console Devellopers</strong>.
                    </p>
                    <p>
                         More specifically from the <strong>youtube Data API v3</strong>. Its totally free. You will just need to activate it and come back with a little key.
                    </p>
                    <p>
                        You can get it here : <a href="https://console.developers.google.com/apis">
                            https://console.developers.google.com/apis
                        </a>
                    </p>
                {% endif %} 
            </div>
            <div class="col-md-6">
                <form action="/config" method="POST">
                    <div class="col-md-10">
                        <input type="text" name='api_key' class="form-control" placeholder="<KEY>">
                    </div>
                    <div class="col-md-2">
                        <button type="submit"  class="btn btn-default">Submit</button>
                    </div>
                </form>
            </div>
        </div>


        <div class='row'>
            <h4>User info</h4>
        </div>

        <div class='row'>
            <div class="col-md-6">
                Your cortext manager account information.
            </div>

            <div class="col-md-6">
                <pre>{{ session_data }}</pre>
            </div>
    </div><commit_msg>adding some securities on form<commit_after>{% extends "base.html" %}
{% block content %}
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h2>Configuration</h2>
                {{ api_key_validate }}
                <hr/>
                {% if message %} {{ message }} {% endif %}
            </div>
        </div>

        <div class="row">
            <h4>Api.key</h4>
        </div>

        <div class='row'>
            <div class="col-md-6">
                {% if api_key_validate == 'You need an API KEY from youtube'%}
                    <p>
                        First of all you will need to <strong>get an API key from Google Console Devellopers</strong>.
                    </p>
                    <p>
                         More specifically from the <strong>youtube Data API v3</strong>. Its totally free. You will just need to activate it and come back with a little key.
                    </p>
                    <p>
                        You can get it here : <a href="https://console.developers.google.com/apis">
                            https://console.developers.google.com/apis
                        </a>
                    </p>
                {% endif %} 
            </div>
            <div class="col-md-6">
                <form action="/config" method="POST">
                    <div class="col-md-10">
                        <input type="text" name='api_key' class="form-control" pattern="[a-zA-Z0-9]{39}" placeholder="<KEY>">
                    </div>
                    <div class="col-md-2">
                        <button type="submit"  class="btn btn-default">Submit</button>
                    </div>
                </form>
            </div>
        </div>


        <div class='row'>
            <h4>User info</h4>
        </div>

        <div class='row'>
            <div class="col-md-6">
                Your cortext manager account information.
            </div>

            <div class="col-md-6">
                <pre>{{ session_data }}</pre>
            </div>
    </div>
{'fraction_non_alphanumeric': 0.13670276774969917, 'fraction_numerical': 0.008664259927797834, 'mean_word_length': 1.1107160995429153, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2604092', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1061, 'n_words': 282}