<commit_before>///
// Dependencies
///

import { combineEpics } from 'redux-observable';
import { Observable } from 'rxjs';
import * as actions from './actions';


///
// Epics
///

const submitForm = (action$, store) => (
	action$.ofType(actions.FORM_SUBMIT_START)
		.debounceTime(50)
		.switchMap(action => (Observable.of(
			actions.delegateFormSubmit(
				action.payload,
				store.getState().getIn(['forms', action.payload, 'values'])
			)
		)))
);

const submitFormFulfilled = (action$, store) => (
	action$.ofType(actions.FORM_SUBMIT_FULFILLED)
		.debounceTime(50)
		.switchMap(action => (Observable.of(
			actions.hideForm(action.payload)
		)))
);


///
// Export
///<commit_msg>Converting form submit values to JS from Immutable prior to dispatching fulfilled action<commit_after>///
// Dependencies
///

import { combineEpics } from 'redux-observable';
import { Observable } from 'rxjs';
import * as actions from './actions';


///
// Epics
///

const submitForm = (action$, store) => (
	action$.ofType(actions.FORM_SUBMIT_START)
		.debounceTime(50)
		.switchMap(action => (Observable.of(
			actions.delegateFormSubmit(
				action.payload,
				store.getState().getIn(['forms', action.payload, 'values']).toJS()
			)
		)))
);

const submitFormFulfilled = (action$, store) => (
	action$.ofType(actions.FORM_SUBMIT_FULFILLED)
		.debounceTime(50)
		.switchMap(action => (Observable.of(
			actions.hideForm(action.payload.formName)
		)))
);


///
// Export
///
{'fraction_non_alphanumeric': 0.1720136518771331, 'fraction_numerical': 0.005460750853242321, 'mean_word_length': 3.775244299674267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '764041', 'n_tokens_mistral': 551, 'n_tokens_neox': 496, 'n_words': 90}