<commit_before>/**
 * qwin
 *
 * Copyright (c) 2008-2011 <NAME>. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author      <NAME> <<EMAIL>>
 * @copyright   <NAME>
 * @license     http://www.opensource.org/licenses/apache2.0.php Apache License
 * @version     $Id$
 * @since       2011-04-05 03:20:19
 */

var Qwin = {
    App: {},
    Lang: {}
};<commit_msg>[资源]修复js出错<commit_after>/**
 * qwin
 *
 * Copyright (c) 2008-2011 <NAME>. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author      <NAME> <<EMAIL>>
 * @copyright   <NAME>
 * @license     http://www.opensource.org/licenses/apache2.0.php Apache License
 * @version     $Id$
 * @since       2011-04-05 03:20:19
 */

var Qwin = {
    App: {},
    Lang: {}
};

// JavaScript Document 中文 2010 1 20 - 30
Qwin.urlSeparator = {
    0: '&',
    1: '='
};
Qwin.url = {
    createUrl : function(array1, array2)
    {
        // TODO: 合并数组1和2
        if ('undefined' != typeof(array2)) {
            for(var i in array2) {
                array1[i] = array2[i];
            }
        }
        return '?' + this.arrayKey2Url(array1);
    },
    arrayKey2Url : function(arr) {
        var url = '';
        for (var i in arr) {
            url += this.array2Url(arr[i], i) + Qwin.urlSeparator[0];
        }
        return url.slice(0, -1);
    },
    array2Url : function(arr, name)
    {
        var url = '';
        if ('object' == typeof(arr)) {
            for (var key in arr) {
                if ('object' == typeof(arr[key])) {
                    url += this.array2Url(arr[key], name + '[' + key + ']') + Qwin.urlSeparator[0];
                } else if(name) {
                    url += name + '[' + key + ']' + Qwin.urlSeparator[1] + arr[key] + Qwin.urlSeparator[0];

                } else {
                    url += name + Qwin.urlSeparator[1] + arr[key] + Qwin.urlSeparator[0];
                }
            }
        } else {
            return name + Qwin.urlSeparator[1] + arr;
        }
        return url.slice(0, -1);
    }
};
{'fraction_non_alphanumeric': 0.13289902280130292, 'fraction_numerical': 0.02996742671009772, 'mean_word_length': 2.1923076923076925, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1238971', 'n_tokens_mistral': 986, 'n_tokens_neox': 944, 'n_words': 296}