<commit_before>import React from 'react';
import {Shape} from 'react-art';

import {drawCircle, drawCenteredCircle, PropTypes} from './DrawingUtils.js';

export default class Circle extends React.Component {

  render() {
    const {position, fillColor, lineColor, lineWidth} = this.props,
          path = position.points
            ? drawCircle(...position.points)
            : drawCenteredCircle(position.center);

    return (
      <Shape
        strokeWidth={lineWidth}
        stroke={lineColor}
        fill={fillColor}
        d={path}
      />
    );
  }
}

Circle.propTypes = {
  position: React.PropTypes.oneOfType([
    React.PropTypes.shape({
      center: PropTypes.Vector
    }),
    React.PropTypes.shape({
      points: React.PropTypes.arrayOf(PropTypes.Vector) // two points
    })
  ]).isRequired,
  fillColor: React.PropTypes.string,
  lineColor: React.PropTypes.string,
  lineWidth: React.PropTypes.number.isRequired
};

Circle.defaultProps = {
  fillColor: 'rgba(0,0,0,0)',<commit_msg>Add radius to Circle props<commit_after>import React from 'react';
import {Shape} from 'react-art';

import {drawCircle, drawCenteredCircle, PropTypes} from './DrawingUtils.js';

export default class Circle extends React.Component {

  render() {
    const {position, fillColor, lineColor, lineWidth} = this.props,
          path = position.points
            ? drawCircle(...position.points)
            : drawCenteredCircle(position.center, position.radius);

    return (
      <Shape
        strokeWidth={lineWidth}
        stroke={lineColor}
        fill={fillColor}
        d={path}
      />
    );
  }
}

Circle.propTypes = {
  position: React.PropTypes.oneOfType([
    React.PropTypes.shape({
      center: PropTypes.Vector,
      radius: PropTypes.number
    }),
    React.PropTypes.shape({
      points: React.PropTypes.arrayOf(PropTypes.Vector) // two points
    })
  ]).isRequired,
  fillColor: React.PropTypes.string,
  lineColor: React.PropTypes.string,
  lineWidth: React.PropTypes.number.isRequired
};

Circle.defaultProps = {
  fillColor: 'rgba(0,0,0,0)',
{'fraction_non_alphanumeric': 0.12728146013448607, 'fraction_numerical': 0.0038424591738712775, 'mean_word_length': 3.0212355212355213, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '734205', 'n_tokens_mistral': 639, 'n_tokens_neox': 641, 'n_words': 122}