<commit_before>/* @flow */

import type { User } from '../../lib/schemaTypes';

/*
 * User related actions
 */
export const signIn = (provider: string, accessToken: string): Object => ({
	auth: {
		[provider]: {
			accessToken
		}
	}
});

export const signUp = (user: User): Object => ({
	auth: {
		signup: user
	}
});

export const cancelSignUp = (): Object => ({
	state: {
		__op__: { signup: 'delete' }
	}
});

export const signOut = (): Object => ({

});

export const saveUser = (user: User): Object => ({
	entities: {
		[user.id]: user,
		__op__: {
			[user.id]: 'replace'
		}
	}
});

export const banUser = (): Object => ({

});

export const unbanUser = (): Object => ({

});


/*
 * Text related actions
 */
export const sendText = (): Object => ({<commit_msg>Fix canceling sign up<commit_after>/* @flow */

import type { User } from '../../lib/schemaTypes';

/*
 * User related actions
 */
export const signIn = (provider: string, accessToken: string): Object => ({
	auth: {
		[provider]: {
			accessToken
		}
	}
});

export const signUp = (user: User): Object => ({
	auth: {
		signup: user
	}
});

export const cancelSignUp = (): Object => ({
	state: {
		signup: null
	}
});

export const signOut = (): Object => ({

});

export const saveUser = (user: User): Object => ({
	entities: {
		[user.id]: user,
		__op__: {
			[user.id]: 'replace'
		}
	}
});

export const banUser = (): Object => ({

});

export const unbanUser = (): Object => ({

});


/*
 * Text related actions
 */
export const sendText = (): Object => ({
{'fraction_non_alphanumeric': 0.20326797385620915, 'fraction_numerical': 0.0, 'mean_word_length': 3.082666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '4598830', 'n_tokens_mistral': 555, 'n_tokens_neox': 534, 'n_words': 140}