<commit_before>import {
	mockQuery,
	MOCK_RENDERPROPS,
	MOCK_API_RESULT,
} from 'meetup-web-mocks/lib/app';

import * as api from '../sync/apiActionCreators';

import { makeCache } from './util';
import { CACHE_CLEAR, CACHE_SUCCESS } from './cacheActionCreators';
import getCacheEpics from './';

const MOCK_QUERY = mockQuery(MOCK_RENDERPROPS);
const MOCK_SUCCESS_ACTION = api.success({
	query: api.get(MOCK_QUERY).payload[0],
	response: MOCK_API_RESULT[0],
});
const apiRequestAction = api.get(MOCK_QUERY);

const fakeStore = {
	getState() {
		return { api: {} };
	},
	dispatch() {},
	subscribe() {},
};

const flattenArray = arrays => [].concat.apply([], arrays);
function makeCacheEpic() {
	const cacheEpics = getCacheEpics(makeCache());
	return (action, store) =><commit_msg>read memberId from state.config<commit_after>import {
	mockQuery,
	MOCK_RENDERPROPS,
	MOCK_API_RESULT,
} from 'meetup-web-mocks/lib/app';

import * as api from '../sync/apiActionCreators';

import { makeCache } from './util';
import { CACHE_CLEAR, CACHE_SUCCESS } from './cacheActionCreators';
import getCacheEpics from './';

const MOCK_QUERY = mockQuery(MOCK_RENDERPROPS);
const MOCK_SUCCESS_ACTION = api.success({
	query: api.get(MOCK_QUERY).payload[0],
	response: MOCK_API_RESULT[0],
});
const apiRequestAction = api.get(MOCK_QUERY);

const fakeStore = {
	getState() {
		return { api: {}, config: { memberId: 0 } };
	},
	dispatch() {},
	subscribe() {},
};

const flattenArray = arrays => [].concat.apply([], arrays);
function makeCacheEpic() {
	const cacheEpics = getCacheEpics(makeCache());
	return (action, store) =>
{'fraction_non_alphanumeric': 0.15740162398500937, 'fraction_numerical': 0.003123048094940662, 'mean_word_length': 5.408, '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': '6711467', 'n_tokens_mistral': 578, 'n_tokens_neox': 566, 'n_words': 118}