<commit_before>(function() {
    /**
     * 散列表
     */

    'use strict';

    function HashTable() {
        var table = [];

        this.put = function(key, value) {
            var position = loseloseHashCode(key);

            if (table[position] === undefined) {
                table[position] = new ValuePair(key, value);
            } else {
                var index = ++position;

                while (table[index] !== undefined) {
                    index++;
                }
                table[index] = new ValuePair(key, value);
            }
        };

        this.get = function(key) {
            return table[loseloseHashCode(key)];
        };

        this.remove = function(key) {
            table[loseloseHashCode(key)] = undefined;
        };<commit_msg>学完第七章<commit_after>(function() {
    /**
     * 散列表
     */

    'use strict';

    function HashTable() {
        var table = [];

        this.put = function(key, value) {
            var position = loseloseHashCode(key);

            if (table[position] === undefined) {
                table[position] = new ValuePair(key, value);
            } else {
                var index = ++position;

                while (table[index] !== undefined) {
                    index++;
                }
                table[index] = new ValuePair(key, value);
            }
        };

        this.get = function(key) {
            var position = loseloseHashCode(key);

            if (table[position] !== undefined) {
                if (table[position] === key) {
                    return table[position].value;
                } else {
                    var index = ++position;

                    while(table[index] !== undefined && (table[index] && table[index].key !== key)) {
                        index++;
                    }

                    if (table[index] && (table[index].key === key)) {
                        return table[index].value;
                    }
                }
            }

            return undefined;
        };

        this.remove = function(key) {
            var position = loseloseHashCode(key);

            if (table[position] !== undefined) {
                if (table[position] === key) {
                    table[position] = undefined;
                } else {
                    var index = ++position;

                    while(table[index] !== undefined && (table[index] && table[index].key !== key)) {
                        index++;
                    }

                    if (table[index] && (table[index].key === key)) {
                        table[index] = undefined;
                    }
                }
            }

            return undefined;
        };
{'fraction_non_alphanumeric': 0.12816746235769372, 'fraction_numerical': 0.0, 'mean_word_length': 1.134796238244514, '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': '4264502', 'n_tokens_mistral': 712, 'n_tokens_neox': 658, 'n_words': 136}