<commit_before>// @flow
/**
 * Part of GDL gdl-frontend.
 * Copyright (C) 2018 GDL
 *
 * See LICENSE
 */
import React from 'react';
import { FiberManualRecord as CircleLabel } from '@material-ui/icons';
import type { ReadingLevel } from '../../types';
import colorMap from '../../style/colorMapping';

type Props = {
  level?: ReadingLevel
};

export default ({ level, ...props }: Props) => {
  return (
    <CircleLabel
      style={{
        color: level ? colorMap[level] : '#D2D2D2',
        marginBottom: '2px'
      }}
      {...props}
    />
  );
};<commit_msg>bug: Fixed bug caused by not including styling override in circleLabel (#337)<commit_after>// @flow
/**
 * Part of GDL gdl-frontend.
 * Copyright (C) 2018 GDL
 *
 * See LICENSE
 */
import React from 'react';
import { FiberManualRecord as CircleLabel } from '@material-ui/icons';
import type { ReadingLevel } from '../../types';
import colorMap from '../../style/colorMapping';

type Props = {
  level?: ReadingLevel,
  style?: Object
};

export default ({ level, style, ...props }: Props) => {
  return (
    <CircleLabel
      style={{
        color: level ? colorMap[level] : '#D2D2D2',
        marginBottom: '2px',
        ...style
      }}
      {...props}
    />
  );
};
{'fraction_non_alphanumeric': 0.16894609814963799, 'fraction_numerical': 0.015285599356395816, 'mean_word_length': 2.6480938416422286, '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': '2557991', 'n_tokens_mistral': 405, 'n_tokens_neox': 394, 'n_words': 115}