<commit_before>import React, { Component } from 'react';
import { translate } from 'react-i18next';
import style from './style.styl';

export default class Dropdown extends Component {
    constructor (props) {
        super()
        this.state = {
            selected: props.selected || props.options[0]
        }
        this.apply = props.apply || function () {}
    }

    onSelect (o, e) {
        this.setState({selected: o})
        this.apply(o)
    }

    render() {<commit_msg>dropdown: drop 'e' argument, not used<commit_after>import React, { Component } from 'react';
import { translate } from 'react-i18next';
import style from './style.styl';

export default class Dropdown extends Component {
    constructor (props) {
        super()
        this.state = {
            selected: props.selected || props.options[0]
        }
        this.apply = props.apply || function () {}
    }

    onSelect (o) {
        this.setState({selected: o})
        this.apply(o)
    }

    render() {
{'fraction_non_alphanumeric': 0.13313313313313313, 'fraction_numerical': 0.006006006006006006, 'mean_word_length': 2.3444816053511706, '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': '3082109', 'n_tokens_mistral': 290, 'n_tokens_neox': 285, 'n_words': 76}