<commit_before>import os from 'os'
import { Store } from 'redux'
import { debounce } from 'lodash'
import log from 'electron-log'
import { optimize } from '../apis'
import { TaskStatus, IState } from '../../common/types'
import actions from './actionCreaters'

const maxRunningNum = os.cpus().length - 1
<commit_msg>fix: workaround for `os.cpus().length = 0`<commit_after>import os from 'os'
import { Store } from 'redux'
import { debounce } from 'lodash'
import log from 'electron-log'
import { optimize } from '../apis'
import { TaskStatus, IState } from '../../common/types'
import actions from './actionCreaters'

const maxRunningNum = Math.max(os.cpus().length - 1, 1)

{'fraction_non_alphanumeric': 0.1513353115727003, 'fraction_numerical': 0.005934718100890208, 'mean_word_length': 4.1923076923076925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7469806', 'n_tokens_mistral': 218, 'n_tokens_neox': 208, 'n_words': 71}