<commit_before>import Immutable from 'immutable'
import { auth } from 'utils/request'
import { appConstants } from 'constants'

export const authLoginSuccess = app => ({ app: Immutable.fromJS(app), type: appConstants.AUTH_LOGIN_SUCCESS })

export const authLogin = (mobile, token) => (
  dispatch => (
    auth(mobile, token).then(json => {
      const data = json.data<commit_msg>fix App<commit_after>import Immutable from 'immutable'
import { auth } from 'utils/request'
import { appConstants } from 'constants'

export const authLoginSuccess = app => ({ app: Immutable.fromJS(app), type: appConstants.AUTH_LOGIN_SUCCESS })

export const authLogin = (mobile, token) => (
  dispatch => (
    auth(mobile, token).then((json) => {
      const data = json.data
{'fraction_non_alphanumeric': 0.12928759894459102, 'fraction_numerical': 0.0, 'mean_word_length': 4.75, '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': '753147', 'n_tokens_mistral': 223, 'n_tokens_neox': 226, 'n_words': 62}