<commit_before>var FieldValue = function (field, value, attributeType) {

    this.field = '';
    this.value = '';
    this.attributeType = 'S';

    this.setField = function (field) {
        if (field === undefined) {
            var err = new Error();
            err.message = "'field' is required to Query";
            throw err;
        }
        this.field = field;
    };

    this.setValue = function (value) {
        if (value === undefined) {
            var err = new Error();
            err.message = "'value' is required to Query";
            throw err;
        }

        this.value = value;
    };

    this.setAttributeType = function (attributeType) {
        this.attributeType = attributeType || 'S';
    };

    this.setField(field);
    this.setValue(value);
    this.setAttributeType(attributeType);
};

module.exports = FieldValue;

// TODO: これ、Attribute という名前の方がよい。

<commit_msg>Update throw error<commit_after>var FieldValue = function (field, value, attributeType) {

    this.field = '';
    this.value = '';
    this.attributeType = 'S';

    this.setField = function (field) {
        if (field === undefined) {
            var err = new Error();
            err.message = "'field' is required to Query";
            throw err;
        }
        this.field = field;
    };

    this.setValue = function (value) {
        if (value === undefined) {
            throw new Error('"value" is required to Query');
        }

        this.value = value;
    };

    this.setAttributeType = function (attributeType) {
        this.attributeType = attributeType || 'S';
    };

    this.setField(field);
    this.setValue(value);
    this.setAttributeType(attributeType);
};

module.exports = FieldValue;

// TODO: これ、Attribute という名前の方がよい。


{'fraction_non_alphanumeric': 0.13065610859728508, 'fraction_numerical': 0.0, 'mean_word_length': 2.10896309314587, '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': '7452973', 'n_tokens_mistral': 522, 'n_tokens_neox': 510, 'n_words': 125}