<commit_before>import setupMutations from './mutations'
import { mapMutations } from 'vuex'

export default function setupFeathersModule (store, options) {
  if (!options.feathersModule || !options.feathersModule.name) {
    return () => {}
  }

  const moduleName = options.feathersModule.name

  return feathers => {
    store.registerModule(moduleName, {
      namespaced: true,
      state: {
        services: {
          all: feathers.services,
          vuex: {}
        }
      },
      mutations: setupMutations(options)
    })

    const { addService } = mapMutations(moduleName, ['addService'])

    return function addToFeathersModule (service) {
      addService.call({$store: store}, service)
    }
  }
}<commit_msg>Finish renaming feathersModule to feathers<commit_after>import setupMutations from './mutations'
import { mapMutations } from 'vuex'

export default function setupFeathersModule (store, options) {
  if (!options.feathers || !options.feathers.name) {
    return () => {}
  }
  
  const moduleName = options.feathers.name

  return feathers => {
    store.registerModule(moduleName, {
      namespaced: true,
      state: {
        services: {
          all: feathers.services,
          vuex: {}
        }
      },
      mutations: setupMutations(options)
    })

    const { addService } = mapMutations(moduleName, ['addService'])

    return function addToFeathersModule (service) {
      addService.call({$store: store}, service)
    }
  }
}
{'fraction_non_alphanumeric': 0.11676849966055669, 'fraction_numerical': 0.0, 'mean_word_length': 2.9306666666666668, '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': '6068505', 'n_tokens_mistral': 440, 'n_tokens_neox': 430, 'n_words': 92}