<commit_before>{% extends "/base.html" %}
{% set active_page = "applications" %}
{% set active_app  = app.short_name %}
{% import "applications/_helpers.html" as helper %}

{% block content %}
{% from "_formhelpers.html" import render_field %}
{{ helper.render_loading(loading_text) }}

<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="<KEY>"></script>

<div class="row">
    <div class="span3">
        {{ helper.render_app_local_nav(app, 'tasks', current_user)}}
    </div>
    <div class="span9">
       <h1><strong>{{app.name}}</strong>: {{_('Import tasks')}}</h1>
       <h2>{{_('From your Dropbox account')}}</h2>
        <div id="dropbox-chooser"></div>

        <br>
        {% if form %}<commit_msg>Use dropbox app key from config<commit_after>{% extends "/base.html" %}
{% set active_page = "applications" %}
{% set active_app  = app.short_name %}
{% import "applications/_helpers.html" as helper %}

{% block content %}
{% from "_formhelpers.html" import render_field %}
{{ helper.render_loading(loading_text) }}

<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="{{ config.get('DROPBOX_APP_KEY') }}"></script>

<div class="row">
    <div class="span3">
        {{ helper.render_app_local_nav(app, 'tasks', current_user)}}
    </div>
    <div class="span9">
       <h1><strong>{{app.name}}</strong>: {{_('Import tasks')}}</h1>
       <h2>{{_('From your Dropbox account')}}</h2>
        <div id="dropbox-chooser"></div>

        <br>
        {% if form %}
{'fraction_non_alphanumeric': 0.20890840652446674, 'fraction_numerical': 0.00878293601003764, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5891589', 'n_tokens_mistral': 573, 'n_tokens_neox': 538, 'n_words': 101}