<commit_before>/* eslint "class-methods-use-this": 0 */
import Checkbox from 'material-ui/Checkbox';
import React from 'react';

import ImputationResults from './ImputationResults';
import ExternalLink from './ExternalLink';
import Link from './Link';

class Result extends React.Component {
    static propTypes = {
        isSelected: React.PropTypes.func,
        selecting: React.PropTypes.bool,
        snp_id_current: React.PropTypes.string,
        toggleSelected: React.PropTypes.func,
    }

    getYear(datestring) {
        if (datestring) {
            return datestring.split('-').shift();
        }<commit_msg>Fix warning about snp expected to be a string<commit_after>/* eslint "class-methods-use-this": 0 */
import Checkbox from 'material-ui/Checkbox';
import React from 'react';

import ImputationResults from './ImputationResults';
import ExternalLink from './ExternalLink';
import Link from './Link';

class Result extends React.Component {
    static propTypes = {
        isSelected: React.PropTypes.func,
        selecting: React.PropTypes.bool,
        snp_id_current: React.PropTypes.number,
        toggleSelected: React.PropTypes.func,
    }

    getYear(datestring) {
        if (datestring) {
            return datestring.split('-').shift();
        }
{'fraction_non_alphanumeric': 0.115625, 'fraction_numerical': 0.0015625, 'mean_word_length': 3.145631067961165, 'pattern_counts': {'":': 2, '<': 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': '1845217', 'n_tokens_mistral': 370, 'n_tokens_neox': 360, 'n_words': 94}