<commit_before>import {
  CategoryScale,
  Chart,
  LineController,
  LineElement,
  LinearScale,
  PointElement,
  Title,
  Tooltip,
} from 'chart.js';
import { useEffect, useRef } from 'react';
import styled from 'styled-components';

import type { CartesianScaleOptions, Plugin } from 'chart.js';
import type { DeepPartial } from 'chart.js/types/utils';
import type { Code } from '#utils/constant';
import type { Price } from '#utils/model';

interface Props extends StyledProps {
  code: Code;
  prices: Price[];
  color: string;
}

const TEXT_COLOR = '#FFF';
const TOOLTIP_TITLE_COLOR = '#666';
const FRACTION_DIGITS = 2;
const X_SCALE_OPTIONS: DeepPartial<CartesianScaleOptions> = {
  grid: { display: false },
  ticks: {
    color: TEXT_COLOR,
    callback(value, i, ticks) {
      const FIRST = 0;
      const LAST = 1;<commit_msg>chore: normalize color<commit_after>import {
  CategoryScale,
  Chart,
  LineController,
  LineElement,
  LinearScale,
  PointElement,
  Title,
  Tooltip,
} from 'chart.js';
import { useEffect, useRef } from 'react';
import styled from 'styled-components';

import type { CartesianScaleOptions, Plugin } from 'chart.js';
import type { DeepPartial } from 'chart.js/types/utils';
import type { Code } from '#utils/constant';
import type { Price } from '#utils/model';

interface Props extends StyledProps {
  code: Code;
  prices: Price[];
  color: string;
}

const TEXT_COLOR = 'white';
const TOOLTIP_TITLE_COLOR = '#666';
const FRACTION_DIGITS = 2;
const X_SCALE_OPTIONS: DeepPartial<CartesianScaleOptions> = {
  grid: { display: false },
  ticks: {
    color: TEXT_COLOR,
    callback(value, i, ticks) {
      const FIRST = 0;
      const LAST = 1;
{'fraction_non_alphanumeric': 0.11966824644549763, 'fraction_numerical': 0.0071090047393364926, 'mean_word_length': 4.261682242990654, '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': '4142028', 'n_tokens_mistral': 579, 'n_tokens_neox': 553, 'n_words': 157}