<commit_before>// @flow

import React, {Component} from 'react'
import {
  Button,
  Checkbox,
  ControlLabel,
  FormGroup,
  FormControl,
  Modal
} from 'react-bootstrap'
import {connect} from 'react-redux'

import * as snapshotActions from '../actions/snapshots.js'
import {getComponentMessages} from '../../common/util/config'
import {formatTimestamp} from '../../common/util/date-time'

import type {Feed} from '../../types'
import type {AppState, ManagerUserState} from '../../types/reducers'

type Props = {
  createSnapshot: typeof snapshotActions.createSnapshot,
  feedSource: Feed
}

type State = {
  comment: ?string,
  name: ?string,
  publishNewVersion: boolean,
  showModal: boolean
}

function getDefaultState () {<commit_msg>refactor: fix lint<commit_after>// @flow

import React, {Component} from 'react'
import {
  Button,
  Checkbox,
  ControlLabel,
  FormGroup,
  FormControl,
  Modal
} from 'react-bootstrap'
import {connect} from 'react-redux'

import * as snapshotActions from '../actions/snapshots.js'
import {getComponentMessages} from '../../common/util/config'
import {formatTimestamp} from '../../common/util/date-time'

import type {Feed} from '../../types'
import type {AppState} from '../../types/reducers'

type Props = {
  createSnapshot: typeof snapshotActions.createSnapshot,
  feedSource: Feed
}

type State = {
  comment: ?string,
  name: ?string,
  publishNewVersion: boolean,
  showModal: boolean
}

function getDefaultState () {
{'fraction_non_alphanumeric': 0.14042263122017723, 'fraction_numerical': 0.0, 'mean_word_length': 4.097222222222222, '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': '2484275', 'n_tokens_mistral': 448, 'n_tokens_neox': 449, 'n_words': 127}