<commit_before>import * as React from 'react';

import './ui.css';

export function Fraction({
  numerator,
  denominator,
}: {
  numerator: React.ReactNode;
  denominator: React.ReactNode;
}) {
  return (
    <div className="fraction">
      <div className="numerator">{numerator}</div>
      <div className="denominator">
        {' / '}
        {denominator}
      </div>
    </div>
  );
}

const RADIUS = 32;
const STROKE = 2;
const CENTER = RADIUS + STROKE;

const Circle = (props: React.SVGProps<SVGCircleElement>) => (
  <circle
    strokeWidth={STROKE}
    r={RADIUS}
    cx={CENTER}
    cy={CENTER}
    fill="transparent"
    {...props}
  />
);

const CIRCUM = 2 * Math.PI * RADIUS;

export function CircleProgress({ value }: { value: number }) {
  return (
    <div className="circle-progress">
      <svg>
        <Circle />
        <Circle
          className="progress-circle"
          strokeDasharray={CIRCUM}
          strokeDashoffset={CIRCUM * (1 - value)}
        />
        <text
          x={CENTER}
          y={CENTER}
          textAnchor="middle"<commit_msg>full circle progress when overshooting goal<commit_after>import * as React from 'react';

import './ui.css';

export function Fraction({
  numerator,
  denominator,
}: {
  numerator: React.ReactNode;
  denominator: React.ReactNode;
}) {
  return (
    <div className="fraction">
      <div className="numerator">{numerator}</div>
      <div className="denominator">
        {' / '}
        {denominator}
      </div>
    </div>
  );
}

const RADIUS = 32;
const STROKE = 2;
const CENTER = RADIUS + STROKE;

const Circle = (props: React.SVGProps<SVGCircleElement>) => (
  <circle
    strokeWidth={STROKE}
    r={RADIUS}
    cx={CENTER}
    cy={CENTER}
    fill="transparent"
    {...props}
  />
);

const CIRCUM = 2 * Math.PI * RADIUS;

export function CircleProgress({ value }: { value: number }) {
  return (
    <div className="circle-progress">
      <svg>
        <Circle />
        <Circle
          className="progress-circle"
          strokeDasharray={CIRCUM}
          strokeDashoffset={CIRCUM * Math.max(1 - value, 0)}
        />
        <text
          x={CENTER}
          y={CENTER}
          textAnchor="middle"
{'fraction_non_alphanumeric': 0.14680561848663343, 'fraction_numerical': 0.004984141368373357, 'mean_word_length': 2.45, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '2638287', 'n_tokens_mistral': 765, 'n_tokens_neox': 750, 'n_words': 151}