<commit_before>import {Modal} from 'widget/modal'
import {PanelButtons} from './panelButtons'
import {PanelContent} from './panelContent'
import {PanelHeader} from './panelHeader'
import {compose} from 'compose'
import {connect} from 'store'
import BlurDetector from 'widget/blurDetector'
import Portal from 'widget/portal'
import PropTypes from 'prop-types'
import React from 'react'
import styles from './panel.module.css'

// PANEL ----------------------------------------------------------------------

class _Panel extends React.Component {
    state = {
        enabled: true
    }

    constructor(props) {
        super(props)
        this.props.onEnable(() => this.setState({enabled: true}))
        this.props.onDisable(() => this.setState({enabled: false}))
    }

    render() {
        const {type} = this.props
        switch (type) {
        case 'normal':
            return this.renderNormal()
        case 'modal':
            return this.renderModal()<commit_msg>Cleanup.<commit_after>import {Modal} from 'widget/modal'
import {PanelButtons} from './panelButtons'
import {PanelContent} from './panelContent'
import {PanelHeader} from './panelHeader'
import {compose} from 'compose'
import {connect} from 'store'
import Portal from 'widget/portal'
import PropTypes from 'prop-types'
import React from 'react'
import styles from './panel.module.css'

// PANEL ----------------------------------------------------------------------

class _Panel extends React.Component {
    state = {
        enabled: true
    }

    constructor(props) {
        super(props)
        this.props.onEnable(() => this.setState({enabled: true}))
        this.props.onDisable(() => this.setState({enabled: false}))
    }

    render() {
        const {type} = this.props
        switch (type) {
        case 'normal':
            return this.renderNormal()
        case 'modal':
            return this.renderModal()
{'fraction_non_alphanumeric': 0.19246861924686193, 'fraction_numerical': 0.0, 'mean_word_length': 2.27008547008547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4432669', 'n_tokens_mistral': 499, 'n_tokens_neox': 503, 'n_words': 143}