<commit_before>import React from 'react'

import withStyles from '../theme/withStyles'

const _DocListIcon = ({
  styles,
  children,

  style,  // MUI
}) =>
  React.cloneElement(React.Children.only(children), { style: Object.assign({}, style, styles) })

const mapThemeToStyles = ({
  docList: {
    iconColor,
    iconHoveredColor,
    iconHoveredOpacity,
  },
}, {
  hovered,
  disabled,
  color,
  hoverColor,
}) => {
  let actualColor = iconColor
  if (! disabled) {
    actualColor = hovered ? hoverColor || iconHoveredColor : color || iconColor
  }
  return ({
    color: actualColor,
    opacity: hovered ? iconHoveredOpacity : 1,
  })
}

const WithStylesComponent = withStyles(mapThemeToStyles)(_DocListIcon)


const DOC_LIST_ICON = 'DocListIcon'

export const renderDocListIcon = (component, params) =>
  component.old.mindhiveName === DOC_LIST_ICON ? React.cloneElement(component, params) : component


export default class DocListIcon extends React.Component {
  static mindhiveName = DOC_LIST_ICON

  render() {<commit_msg>Debug code for resize<commit_after>import React from 'react'

import withStyles from '../theme/withStyles'

const _DocListIcon = ({
  styles,
  children,

  style,  // MUI
}) =>
  React.cloneElement(React.Children.only(children), { style: Object.assign({}, style, styles) })

const mapThemeToStyles = ({
  docList: {
    iconColor,
    iconHoveredColor,
    iconHoveredOpacity,
  },
}, {
  hovered,
  disabled,
  color,
  hoverColor,
}) => {
  let actualColor = iconColor
  if (! disabled) {
    actualColor = hovered ? hoverColor || iconHoveredColor : color || iconColor
  }
  return ({
    color: actualColor,
    opacity: hovered ? iconHoveredOpacity : 1,
  })
}

const WithStylesComponent = withStyles(mapThemeToStyles)(_DocListIcon)


const DOC_LIST_ICON = 'DocListIcon'

export const renderDocListIcon = (component, params) =>
  component.type.mindhiveName === DOC_LIST_ICON ? React.cloneElement(component, params) : component


export default class DocListIcon extends React.Component {
  static mindhiveName = DOC_LIST_ICON

  render() {
{'fraction_non_alphanumeric': 0.1134070158577607, 'fraction_numerical': 0.0009610764055742432, 'mean_word_length': 4.205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1757630', 'n_tokens_mistral': 679, 'n_tokens_neox': 669, 'n_words': 149}