<commit_before>import React from 'react';
import DomainNew from './domain-new.js';
import DomainContainer from './domain-container.js';
import DomainItem from './domain-item.js';
import shortid from 'shortid';

class Domains extends React.Component {
    constructor(props) {
        super(props);
        //localStorage.setItem('container', JSON.stringify([]));
        var container = JSON.parse(localStorage.getItem('container')) || [];

        this.state = {
            container
        };

        this.addDomain = this.addDomain.bind(this);
        this.storeDomain = this.storeDomain.bind(this);
        this.removeDomain = this.removeDomain.bind(this);
        this.getIndex = this.getIndex.bind(this);
    }

    /*
    *  Adds valid domain from form input into the domain container.
    *
    *  @param domain: Domain from form input value.
    */
    addDomain(domain) {<commit_msg>update header test suite/comment random line of code<commit_after>import React from 'react';
import DomainNew from './domain-new.js';
import DomainContainer from './domain-container.js';
import DomainItem from './domain-item.js';
import shortid from 'shortid';

class Domains extends React.Component {
    constructor(props) {
        super(props);
        //localStorage.setItem('container', JSON.stringify([])); // TESTING PURPOSES
        var container = JSON.parse(localStorage.getItem('container')) || [];

        this.state = {
            container
        };

        this.addDomain = this.addDomain.bind(this);
        this.storeDomain = this.storeDomain.bind(this);
        this.removeDomain = this.removeDomain.bind(this);
        this.getIndex = this.getIndex.bind(this);
    }

    /*
    *  Adds valid domain from form input into the domain container.
    *
    *  @param domain: Domain from form input value.
    */
    addDomain(domain) {
{'fraction_non_alphanumeric': 0.12479740680713128, 'fraction_numerical': 0.0, 'mean_word_length': 2.8264462809917354, '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': '7285011', 'n_tokens_mistral': 515, 'n_tokens_neox': 503, 'n_words': 127}