<commit_before>/**
 * XadillaX created at 2014-09-05 18:29
 *
 * Copyright (c) 2014 Huaban.com, all rights
 * reserved.
 */
var Str = {};
Str.name = "String";
Str.needQuotes = true;

Str.restore = function(parsed) {
    if(!parsed) {
        return "";
    }

    return parsed.toString();
};

Str.parse = function(orig) {
    if(!orig) {
        return "";<commit_msg>fix a bug that failed the test case of String field with zero<commit_after>/**
 * XadillaX created at 2014-09-05 18:29
 *
 * Copyright (c) 2014 Huaban.com, all rights
 * reserved.
 */
var Str = {};
Str.name = "String";
Str.needQuotes = true;

Str.restore = function(parsed) {
    if(undefined === parsed || null === parsed) {
        return "";
    }

    return parsed.toString();
};

Str.parse = function(orig) {
    if(undefined === orig || null === orig) {
        return "";
{'fraction_non_alphanumeric': 0.1650943396226415, 'fraction_numerical': 0.03773584905660377, 'mean_word_length': 2.841628959276018, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7185227', 'n_tokens_mistral': 303, 'n_tokens_neox': 277, 'n_words': 76}