<commit_before>import React, { PropTypes } from 'react'
import classnames from 'classnames'
import ComponentDialog, { componentDialogType } from 'components/adminPage/ComponentDialog'
import FoolproofDialog from 'components/adminPage/FoolproofDialog'
import Button from 'components/common/Button'
import Tooltip from 'components/common/Tooltip'
import ErrorMessage from 'components/common/ErrorMessage'
import { getComponentColor } from 'utils/status'
import { innerDialogID } from 'utils/dialog'
import classes from './Components.scss'

const dialogType = {
  none: 0,
  add: 1,
  edit: 2,
  delete: 3
}

export default class Components extends React.Component {
  static propTypes = {
    components: PropTypes.arrayOf(PropTypes.shape({
      componentID: PropTypes.string.isRequired,
      name: PropTypes.string.isRequired,
      description: PropTypes.string.isRequired,
      status: PropTypes.string.isRequired,
      order: PropTypes.number.isRequired
    }).isRequired).isRequired,
    fetchComponents: PropTypes.func.isRequired,
    updateComponent: PropTypes.func.isRequired,
    deleteComponent: PropTypes.func.isRequired
  }

  constructor (props) {
    super()
    this.state = {
      dialogType: dialogType.none,
      component: null,
      isFetching: false,
      message: ''
    }
  }

  callbacks = {<commit_msg>Remove unused arg<commit_after>import React, { PropTypes } from 'react'
import classnames from 'classnames'
import ComponentDialog, { componentDialogType } from 'components/adminPage/ComponentDialog'
import FoolproofDialog from 'components/adminPage/FoolproofDialog'
import Button from 'components/common/Button'
import Tooltip from 'components/common/Tooltip'
import ErrorMessage from 'components/common/ErrorMessage'
import { getComponentColor } from 'utils/status'
import { innerDialogID } from 'utils/dialog'
import classes from './Components.scss'

const dialogType = {
  none: 0,
  add: 1,
  edit: 2,
  delete: 3
}

export default class Components extends React.Component {
  static propTypes = {
    components: PropTypes.arrayOf(PropTypes.shape({
      componentID: PropTypes.string.isRequired,
      name: PropTypes.string.isRequired,
      description: PropTypes.string.isRequired,
      status: PropTypes.string.isRequired,
      order: PropTypes.number.isRequired
    }).isRequired).isRequired,
    fetchComponents: PropTypes.func.isRequired,
    updateComponent: PropTypes.func.isRequired,
    deleteComponent: PropTypes.func.isRequired
  }

  constructor () {
    super()
    this.state = {
      dialogType: dialogType.none,
      component: null,
      isFetching: false,
      message: ''
    }
  }

  callbacks = {
{'fraction_non_alphanumeric': 0.09530956848030019, 'fraction_numerical': 0.00300187617260788, 'mean_word_length': 4.117082533589252, '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': '6346459', 'n_tokens_mistral': 739, 'n_tokens_neox': 750, 'n_words': 183}