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

import timestamp from 'util/timestamp';

import {
  mutate,
  createCollection,
  updateCollection,
  deleteCollection,
  createEntityMapping,
  updateEntityMapping,
  deleteEntityMapping,
  triggerCollectionCancel,
  updateCollectionPermissions,
  ingestDocument,
  createEntity,
  createEntitySet,
  deleteEntity,
  deleteEntitySet,
  deleteQueryLog,
  updateRole,
  loginWithToken,
  logout,
} from 'actions';

const initialState = timestamp();

function update() {
  return timestamp();
}

export default createReducer({
  [mutate]: update,
  [loginWithToken]: update,
  [logout]: update,
  // Clear out the redux cache when operations are performed that
  // may affect the content of the results.
  [createCollection.COMPLETE]: update,
  [updateCollection.COMPLETE]: update,
  [deleteCollection.COMPLETE]: update,
  [createEntityMapping.COMPLETE]: update,
  [updateEntityMapping.COMPLETE]: update,
  [deleteEntityMapping.COMPLETE]: update,
  [triggerCollectionCancel.COMPLETE]: update,
  [updateCollectionPermissions.COMPLETE]: update,
  [createEntity.COMPLETE]: update,
  [createEntitySet.COMPLETE]: update,
  [deleteEntity.COMPLETE]: update,
  [deleteEntitySet.COMPLETE]: update,
  [ingestDocument.COMPLETE]: update,
  [deleteQueryLog.COMPLETE]: update,
  [updateRole.COMPLETE]: update,
}, initialState);<commit_msg>Removed createEntitySet from mutation reducer<commit_after>import { createReducer } from 'redux-act';

import timestamp from 'util/timestamp';

import {
  mutate,
  createCollection,
  updateCollection,
  deleteCollection,
  createEntityMapping,
  updateEntityMapping,
  deleteEntityMapping,
  triggerCollectionCancel,
  updateCollectionPermissions,
  ingestDocument,
  createEntity,
  createEntitySet,
  deleteEntity,
  deleteEntitySet,
  deleteQueryLog,
  updateRole,
  loginWithToken,
  logout,
} from 'actions';

const initialState = timestamp();

function update() {
  return timestamp();
}

export default createReducer({
  [mutate]: update,
  [loginWithToken]: update,
  [logout]: update,
  // Clear out the redux cache when operations are performed that
  // may affect the content of the results.
  [createCollection.COMPLETE]: update,
  [updateCollection.COMPLETE]: update,
  [deleteCollection.COMPLETE]: update,
  [createEntityMapping.COMPLETE]: update,
  [updateEntityMapping.COMPLETE]: update,
  [deleteEntityMapping.COMPLETE]: update,
  [triggerCollectionCancel.COMPLETE]: update,
  [updateCollectionPermissions.COMPLETE]: update,
  [createEntity.COMPLETE]: update,
  [deleteEntity.COMPLETE]: update,
  [deleteEntitySet.COMPLETE]: update,
  [ingestDocument.COMPLETE]: update,
  [deleteQueryLog.COMPLETE]: update,
  [updateRole.COMPLETE]: update,
}, initialState);
{'fraction_non_alphanumeric': 0.10326086956521739, 'fraction_numerical': 0.0, 'mean_word_length': 5.669082125603865, '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': '1048320', 'n_tokens_mistral': 800, 'n_tokens_neox': 827, 'n_words': 187}