<commit_before>import { createReducer } from 'redux-act';
import update from 'immutability-helper';

import {
    DEFAULT_SORT,
    FORAGE_RANGE_3KM,
} from './constants';
import {
    setSort,
    setForageRange,
    setApiaryList,
    startFetchApiaryScores,
    failFetchApiaryScores,
    completeFetchApiaryScores,
} from './actions';

const initialState = {
    sortBy: DEFAULT_SORT,
    forageRange: FORAGE_RANGE_3KM,
    apiaries: [],
};

const mainReducer = createReducer({
    [setSort]:
        (state, payload) => update(state, { sortBy: { $set: payload } }),
    [setForageRange]:
        (state, payload) => update(state, { forageRange: { $set: payload } }),
    [setApiaryList]:
        (state, payload) => update(state, { apiaries: { $set: payload } }),
    // TODO: Replace reducers below with real behavior
    [startFetchApiaryScores]: state => update(state, { apiaries: { fetching: { $set: true } } }),
    [failFetchApiaryScores]: state => update(state, { apiaries: { fetching: { $set: false } } }),
    [completeFetchApiaryScores]: state => update(state, { apiaries: { fetching: { $set: true } } }),
}, initialState);

// Placeholder reducer for parts of state that will be persisted to localStorage
const savedReducer = createReducer({}, {});

export default {
    main: mainReducer,
    saved: savedReducer,
};<commit_msg>Remove unused reducers<commit_after>import { createReducer } from 'redux-act';
import update from 'immutability-helper';

import {
    DEFAULT_SORT,
    FORAGE_RANGE_3KM,
} from './constants';
import {
    setSort,
    setForageRange,
    setApiaryList,
} from './actions';

const initialState = {
    sortBy: DEFAULT_SORT,
    forageRange: FORAGE_RANGE_3KM,
    apiaries: [],
};

const mainReducer = createReducer({
    [setSort]:
        (state, payload) => update(state, { sortBy: { $set: payload } }),
    [setForageRange]:
        (state, payload) => update(state, { forageRange: { $set: payload } }),
    [setApiaryList]:
        (state, payload) => update(state, { apiaries: { $set: payload } }),
}, initialState);

// Placeholder reducer for parts of state that will be persisted to localStorage
const savedReducer = createReducer({}, {});

export default {
    main: mainReducer,
    saved: savedReducer,
};
{'fraction_non_alphanumeric': 0.1393188854489164, 'fraction_numerical': 0.0017691287041132243, 'mean_word_length': 3.8127659574468087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '7475937', 'n_tokens_mistral': 742, 'n_tokens_neox': 729, 'n_words': 177}