<commit_before>/*global Ext:false */
/*global $:false */
/*global App:false */
/*global document:false */
/*global writeFiles:false */
/*global store:false */
/*global addShape:false */
Ext.namespace('addShape');
addShape.init = function () {
    "use strict";
    Ext.QuickTips.init();
    var me = this;
    me.form = new Ext.Panel({
        region: 'center',
        id: "addform",
        frame: false,
        bodyStyle: 'padding: 0',
        border: false,
        autoHeight: true,
        html: "<div id='shape_uploader'>" + __("You need Flash or a modern browser, which supports HTML5") + "</div>",
        afterRender: function () {
            var arr = [], ext = ["shp", "tab", "geojson", "gml", "kml", "kmz", "mif", "zip", "rar", "dgn"], geoType, encoding, ignoreErrors, overwrite, append, srs, flag = false;
            $("#shape_uploader").pluploadQueue({
                runtimes: 'html5, flash',
                url: '/controllers/upload/vector',
                max_file_size: '2000mb',
                chunk_size: '1mb',
                unique_names: true,
                urlstream_upload: true,
                init: {
                    UploadComplete: function (up, files) {
                        // *****
                        var count = 0, errors = [], i;
                        (function iter() {
                            var e = arr[count], strings = [];
                            if (arr.length === count) {
                                if (flag) {
                                    App.setAlert(App.STATUS_NOTICE, __("All files processed"));
                                    writeFiles();
                                    document.getElementById("wfseditor").contentWindow.window.reLoadTree();
                                    store.load();
                                    if (errors.length > 0) {
                                        for (i = 0; i < errors.length; i = i + 1) {<commit_msg>no message<commit_after>/*global Ext:false */
/*global $:false */
/*global App:false */
/*global document:false */
/*global writeFiles:false */
/*global store:false */
/*global addShape:false */
Ext.namespace('addShape');
addShape.init = function () {
    "use strict";
    Ext.QuickTips.init();
    var me = this;
    me.form = new Ext.Panel({
        region: 'center',
        id: "addform",
        frame: false,
        bodyStyle: 'padding: 0',
        border: false,
        autoHeight: true,
        html: "<div id='shape_uploader'>" + __("You need Flash or a modern browser, which supports HTML5") + "</div>",
        afterRender: function () {
            var arr = [], ext = ["shp", "tab", "geojson", "gml", "kml", "kmz", "mif", "zip", "rar", "dgn", "dxf"], geoType, encoding, ignoreErrors, overwrite, append, srs, flag = false;
            $("#shape_uploader").pluploadQueue({
                runtimes: 'html5, flash',
                url: '/controllers/upload/vector',
                max_file_size: '2000mb',
                chunk_size: '1mb',
                unique_names: true,
                urlstream_upload: true,
                init: {
                    UploadComplete: function (up, files) {
                        // *****
                        var count = 0, errors = [], i;
                        (function iter() {
                            var e = arr[count], strings = [];
                            if (arr.length === count) {
                                if (flag) {
                                    App.setAlert(App.STATUS_NOTICE, __("All files processed"));
                                    writeFiles();
                                    document.getElementById("wfseditor").contentWindow.window.reLoadTree();
                                    store.load();
                                    if (errors.length > 0) {
                                        for (i = 0; i < errors.length; i = i + 1) {
{'fraction_non_alphanumeric': 0.14048106448311157, 'fraction_numerical': 0.006141248720573183, 'mean_word_length': 1.3734061930783241, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4707156', 'n_tokens_mistral': 1050, 'n_tokens_neox': 995, 'n_words': 260}