<commit_before>'use strict';

import React from 'react';
import { SUPPORTED_REPOS } from '../constants';

class RepoFilterButton extends React.Component {

  constructor() {
    super();

    this.onClick = this.onClick.bind(this);
  }

  repoUnsupported(repo) {
    return SUPPORTED_REPOS.indexOf(repo) === -1;
  }

  onClick() {
    this.props.onClick(this.props.repo);
  }

  render() {
    const btnClassName = this.props.selected ?
      'btn btn-default active' : 'btn btn-default';

    return (
      <button className={btnClassName}
        type="button"
        style={{'outline':'none'}}
        onClick={this.onClick}
        disabled={this.repoUnsupported(this.props.repo)}
      >
        {this.props.repo}
      </button>
    )
  }

}

export default RepoFilterButton;<commit_msg>fix linter issues in RepoFilterButton<commit_after>import React from 'react';
import { SUPPORTED_REPOS } from '../constants';

class RepoFilterButton extends React.Component {

  constructor() {
    super();

    this.onClick = this.onClick.bind(this);
  }

  onClick() {
    this.props.onClick(this.props.repo);
  }

  repoUnsupported() {
    return SUPPORTED_REPOS.indexOf(this.props.repo) === -1;
  }

  render() {
    const btnClassName = this.props.selected ?
      'btn btn-default active' : 'btn btn-default';

    return (
      <button className={btnClassName}
        type="button"
        style={{ outline: 'none' }}
        onClick={this.onClick}
        disabled={this.repoUnsupported}
      >
        {this.props.repo}
      </button>
    );
  }

}

RepoFilterButton.propTypes = {
  onClick: React.PropTypes.func,
  repo: React.PropTypes.object,
  selected: React.PropTypes.bool,
};

export default RepoFilterButton;
{'fraction_non_alphanumeric': 0.1373913043478261, 'fraction_numerical': 0.0011594202898550724, 'mean_word_length': 2.9138321995464853, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4326752', 'n_tokens_mistral': 559, 'n_tokens_neox': 554, 'n_words': 100}