<commit_before>import { OrderedMap, fromJS } from 'immutable';
import { CONFIG_SUCCESS } from '../actions/config';

const collections = (state = null, action) => {
  switch (action.type) {
    case CONFIG_SUCCESS:
      const collections = action.payload && action.payload.collections;
      return OrderedMap().withMutations((map) => {
        (collections || []).forEach(function(collection) {
          map.set(collection.name, fromJS(collection));
        });
      });
    default:
      return state;
  }
}

export default collections;
<commit_msg>Add missing semicolon<commit_after>import { OrderedMap, fromJS } from 'immutable';
import { CONFIG_SUCCESS } from '../actions/config';

const collections = (state = null, action) => {
  switch (action.type) {
    case CONFIG_SUCCESS:
      const collections = action.payload && action.payload.collections;
      return OrderedMap().withMutations((map) => {
        (collections || []).forEach(function(collection) {
          map.set(collection.name, fromJS(collection));
        });
      });
    default:
      return state;
  }
};

export default collections;

{'fraction_non_alphanumeric': 0.1387645478961504, 'fraction_numerical': 0.0, 'mean_word_length': 3.2835249042145596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2823278', 'n_tokens_mistral': 311, 'n_tokens_neox': 312, 'n_words': 70}