<commit_before>import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import styles from './collections-button.css'

class CollectionsButton extends PureComponent {
    static propTypes = {
        listBtnClick: PropTypes.func.isRequired,
        onShowBtnClick: PropTypes.func,
        isListFilterActive: PropTypes.bool.isRequired,
    }

    render() {
        return (
            <div
                className={styles.buttonContainer}
                onDragEnter={this.props.listBtnClick}
            >
                {this.props.isListFilterActive ? (
                    <div
                        onClick={this.props.onShowBtnClick}
                        className={styles.enabled}
                    >
                        Show All
                    </div>
                ) : (
                    <div
                        onClick={this.props.listBtnClick}
                        className={styles.enabled}
                    >
                        Show Collections
                    </div>
                )}
            </div>
        )
    }<commit_msg>open sidebar onhover over collections button<commit_after>import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import styles from './collections-button.css'

class CollectionsButton extends PureComponent {
    static propTypes = {
        listBtnClick: PropTypes.func.isRequired,
        onShowBtnClick: PropTypes.func,
        isListFilterActive: PropTypes.bool.isRequired,
    }

    render() {
        return (
            <div
                className={styles.buttonContainer}
                onDragEnter={this.props.listBtnClick}
            >
                {this.props.isListFilterActive ? (
                    <div
                        onClick={this.props.onShowBtnClick}
                        className={styles.enabled}
                    >
                        Show All
                    </div>
                ) : (
                    <div
                        onMouseEnter={this.props.listBtnClick}
                        className={styles.enabled}
                    >
                        Show Collections
                    </div>
                )}
            </div>
        )
    }
{'fraction_non_alphanumeric': 0.07950530035335689, 'fraction_numerical': 0.0, 'mean_word_length': 1.1489563567362429, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7057503', 'n_tokens_mistral': 534, 'n_tokens_neox': 500, 'n_words': 93}