<commit_before>import { REQUEST_MOVIES, RECEIVE_MOVIES } from './ActionTypes';

const initialState = {
  isFetching: false,
  movies: []
};

const movies = ( state = initialState, action ) => {
  switch (action.type) {
    case REQUEST_MOVIES:
      return {
        ...state,
        isFetching: true
      }
    case RECEIVE_MOVIES:
      return {
        ...state,
        isFetching: false,
        movies: action.movies
      }
    default:
      return state;
  }
}

export default movies;<commit_msg>renames movies into items in movie Reducers<commit_after>import { REQUEST_MOVIES, RECEIVE_MOVIES } from './ActionTypes';

const initialState = {
  isFetching: false,
  items: []
};

const movies = ( state = initialState, action ) => {
  switch (action.type) {
    case REQUEST_MOVIES:
      return {
        ...state,
        isFetching: true
      }
    case RECEIVE_MOVIES:
      return {
        ...state,
        isFetching: false,
        items: action.movies
      }
    default:
      return state;
  }
}

export default movies;
{'fraction_non_alphanumeric': 0.10748560460652591, 'fraction_numerical': 0.0, 'mean_word_length': 2.2291021671826625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7519129', 'n_tokens_mistral': 342, 'n_tokens_neox': 336, 'n_words': 79}