<commit_before>/*
 * boilerplate-redux-react
 *
 * Copyright(c) 2015 <NAME> <<EMAIL>>
 * MIT Licensed
 *
 */

/**
 * @author <NAME> <<EMAIL>>
 *
 */

import {handleActions} from 'redux-actions';

import Actions from '../actions';

const {RANDOMIZE} = Actions.greeting;

const GREETINS = [
    'Servus',
    'Hello',
    'Hallo',
    'Guten Tag'
];

function getRandomGreeting () {
    return GREETINS[Math.floor(Math.random() * 1000) % GREETINS.length];
}

function createState () {
    return getRandomGreeting();
}

export default handleActions({
    [RANDOMIZE]: (state, action) => {
        return getRandomGreeting()
    }
}, createState());<commit_msg>[TASK] Add some more greetings<commit_after>/*
 * boilerplate-redux-react
 *
 * Copyright(c) 2015 <NAME> <<EMAIL>>
 * MIT Licensed
 *
 */

/**
 * @author <NAME> <<EMAIL>>
 *
 */

import {handleActions} from 'redux-actions';

import Actions from '../actions';

const {RANDOMIZE} = Actions.greeting;

const GREETINS = [
    'Servus',
    'Hello',
    'Hallo',
    'Guten Tag',
    'Hey',
    'S\'up?',
    'Moin',
    'Moin Moin'
];

function getRandomGreeting () {
    return GREETINS[Math.floor(Math.random() * 1000) % GREETINS.length];
}

function createState () {
    return getRandomGreeting();
}

export default handleActions({
    [RANDOMIZE]: (state, action) => {
        return getRandomGreeting()
    }
}, createState());
{'fraction_non_alphanumeric': 0.17231434751261715, 'fraction_numerical': 0.011535688536409516, 'mean_word_length': 3.4063492063492062, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '1325656', 'n_tokens_mistral': 511, 'n_tokens_neox': 486, 'n_words': 104}