<commit_before>import { isDev, getDevelopmentPackages } from 'worona-deps';
import { map } from 'lodash';
import { combineReducers } from 'redux';
import * as deps from '../deps';

const env = isDev ? 'dev' : 'prod';
const mapPkg = pkg => ({ ...pkg, main: pkg.cdn && pkg.cdn.dashboard[env].main.file });

const create = collection => combineReducers({
  collection: deps.reducerCreators.collectionCreator(collection, mapPkg),
  isReady: deps.reducerCreators.isReadyCreator(collection),
});

const devPkgs = map(getDevelopmentPackages(), pkg => pkg.woronaInfo);
export const devPackages = () => devPkgs;

export const collections = () => combineReducers({
  live: create('settings-live'),
  preview: create('settings-preview'),
  packages: create('packages'),
  devPackages: combineReducers({ collection: devPackages }),
});
<commit_msg>Remove mapPkg from settings collections.<commit_after>import { isDev, getDevelopmentPackages } from 'worona-deps';
import { map } from 'lodash';
import { combineReducers } from 'redux';
import * as deps from '../deps';

const env = isDev ? 'dev' : 'prod';
const mapPkg = pkg => ({ ...pkg, main: pkg.cdn && pkg.cdn.dashboard[env].main.file });

const createSetting = collection => combineReducers({
  collection: deps.reducerCreators.collectionCreator(collection),
  isReady: deps.reducerCreators.isReadyCreator(collection),
});

const createPkg = collection => combineReducers({
  collection: deps.reducerCreators.collectionCreator(collection, mapPkg),
  isReady: deps.reducerCreators.isReadyCreator(collection),
});

const devPkgs = map(getDevelopmentPackages(), pkg => pkg.woronaInfo);
export const devPackages = () => devPkgs;

export const collections = () => combineReducers({
  live: createSetting('settings-live'),
  preview: createSetting('settings-preview'),
  packages: createPkg('packages'),
  devPackages: combineReducers({ collection: devPackages }),
});

{'fraction_non_alphanumeric': 0.1486344537815126, 'fraction_numerical': 0.0, 'mean_word_length': 5.9021739130434785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1698377', 'n_tokens_mistral': 612, 'n_tokens_neox': 587, 'n_words': 136}