<commit_before>import { Component, PropTypes } from '@yummies/yummies';
import Titles from '#tabs/titles';
import Title from '#tabs/title';

export default class extends Component {
    static displayName = 'core: tabs';
    static propTypes = {
        selected: (props, propName, componentName, ...rest) => {
            if (
                typeof props.selected !== 'number' ||
                props.selected < 0 ||
                props.selected >= props.tabs.length
            ) {
                return new Error(`Invalid prop \`${propName}\` of type \`${typeof props[propName]}\` supplied to \`${componentName}\`, expected to be a tab index within given \`props.tabs\` range`);
            }
        },
        tabs: PropTypes.arrayOf(
            PropTypes.shape({
                title: PropTypes.node,
                content: PropTypes.node
            })
        ).isRequired,
        renderTitles: PropTypes.func
    };
    static defaultProps = {
        selected: 0,
        tabs: []
    };

    renderTitles() {
        if ('renderTitles' in this.props) {
            return this.props.renderTitles();
        }
<commit_msg>:heavy_check_mark: tabs: fix missing props in custom `renderTitles` method<commit_after>import { Component, PropTypes } from '@yummies/yummies';
import Titles from '#tabs/titles';
import Title from '#tabs/title';

export default class extends Component {
    static displayName = 'core: tabs';
    static propTypes = {
        selected: (props, propName, componentName, ...rest) => {
            if (
                typeof props.selected !== 'number' ||
                props.selected < 0 ||
                props.selected >= props.tabs.length
            ) {
                return new Error(`Invalid prop \`${propName}\` of type \`${typeof props[propName]}\` supplied to \`${componentName}\`, expected to be a tab index within given \`props.tabs\` range`);
            }
        },
        tabs: PropTypes.arrayOf(
            PropTypes.shape({
                title: PropTypes.node,
                content: PropTypes.node
            })
        ).isRequired,
        renderTitles: PropTypes.func
    };
    static defaultProps = {
        selected: 0,
        tabs: []
    };

    renderTitles() {
        if ('renderTitles' in this.props) {
            return this.props.renderTitles({ ...this.props, key: 'titles' });
        }

{'fraction_non_alphanumeric': 0.12578880942364326, 'fraction_numerical': 0.0016827934371055953, 'mean_word_length': 1.8894289185905224, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3902142', 'n_tokens_mistral': 654, 'n_tokens_neox': 639, 'n_words': 173}