<commit_before>import { setHashType, setProgress, setLoading } from './index'
import { SET_HASH_TYPE, SET_PROGRESS, SET_LOADING } from '../constants/ActionTypes'

describe('actions test', () => {
  it('setHashType should create SET_HASH_TYPE action', () => {
    const hashType = 'sha-512'
    const result = { type: SET_HASH_TYPE, hashType }
    expect(setHashType(hashType)).toEqual(result)
  })

  it('setProgress should create SET_PROGRESS action', () => {
    const progress = '100'
    const result = { type: SET_PROGRESS, progress }
    expect(setProgress(progress)).toEqual(result)
  })

  it('setLoading should create SET_LOADING action', () => {
    const loading = 'true'
    const result = { type: SET_LOADING, loading }
    expect(setLoading(loading)).toEqual(result)
  })
})<commit_msg>Fix type of variables<commit_after>import { setHashType, setProgress, setLoading } from './index'
import { SET_HASH_TYPE, SET_PROGRESS, SET_LOADING } from '../constants/ActionTypes'

describe('actions test', () => {
  it('setHashType should create SET_HASH_TYPE action', () => {
    const hashType = 'sha-512'
    const result = { type: SET_HASH_TYPE, hashType }
    expect(setHashType(hashType)).toEqual(result)
  })

  it('setProgress should create SET_PROGRESS action', () => {
    const progress = 100
    const result = { type: SET_PROGRESS, progress }
    expect(setProgress(progress)).toEqual(result)
  })

  it('setLoading should create SET_LOADING action', () => {
    const loading = true
    const result = { type: SET_LOADING, loading }
    expect(setLoading(loading)).toEqual(result)
  })
})
{'fraction_non_alphanumeric': 0.13591022443890274, 'fraction_numerical': 0.007481296758104738, 'mean_word_length': 4.35, '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': '5493031', 'n_tokens_mistral': 505, 'n_tokens_neox': 497, 'n_words': 115}