<commit_before>{% extends "chem/base.html" %}
{% load bootstrap %}

{% block title %}Multi Job{% endblock %}

{% block script %}
<script>
{% autoescape on %}

$(function() {
    $("#id_myfiles").change( function () {
        var files = $(this).prop('files');
        var textarea = $("textarea[name='filenames']");
        var names = ''
        $(files).each( function (i, elem) {
            names += '\n' + elem.name;
        });
        if (textarea.val() !== '') {
            textarea.val(textarea.val()+names);
        } else {
            textarea.val(names.slice(1));
        }
    });
    $("#id_post").click(function() {
        console.log("asda")
        event.preventDefault();
        var a = new FormData($("#main")[0]);
        var files = $("input[name='myfiles']").prop('files');
        console.log(files);
        for(var x=0;x<files.length;x++) {
            a.append("files", files[x]);<commit_msg>Remove logging lines<commit_after>{% extends "chem/base.html" %}
{% load bootstrap %}

{% block title %}Multi Job{% endblock %}

{% block script %}
<script>
{% autoescape on %}

$(function() {
    $("#id_myfiles").change( function () {
        var files = $(this).prop('files');
        var textarea = $("textarea[name='filenames']");
        var names = ''
        $(files).each( function (i, elem) {
            names += '\n' + elem.name;
        });
        if (textarea.val() !== '') {
            textarea.val(textarea.val()+names);
        } else {
            textarea.val(names.slice(1));
        }
    });
    $("#id_post").click(function() {
        event.preventDefault();
        var a = new FormData($("#main")[0]);
        var files = $("input[name='myfiles']").prop('files');
        for(var x=0;x<files.length;x++) {
            a.append("files", files[x]);
{'fraction_non_alphanumeric': 0.21559888579387188, 'fraction_numerical': 0.003342618384401114, 'mean_word_length': 2.344506517690875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5196763', 'n_tokens_mistral': 580, 'n_tokens_neox': 551, 'n_words': 105}