<commit_before>import React from 'react';

import { capitalise } from '../../../shared/utils';
import { CardPropTypes } from '../../../shared/prop-types';

const CardName = function CardName({ name, colour }) {
  return (
    <h6 className={`name mtg${capitalise(colour)}`}>{name}</h6>
  );
};

CardName.propTypes = {
  name: CardPropTypes.name.isRequired,
  colour: CardPropTypes.colour.isRequired,
};

export default CardName;<commit_msg>Change colour class to variant format in CardName<commit_after>import React from 'react';

import { capitalise } from '../../../shared/utils';
import { CardPropTypes } from '../../../shared/prop-types';

const CardName = function CardName({ name, colour }) {
  return (
    <h3 className={`name --${capitalise(colour)}`}>{name}</h3>
  );
};

CardName.propTypes = {
  name: CardPropTypes.name.isRequired,
  colour: CardPropTypes.colour.isRequired,
};

export default CardName;
{'fraction_non_alphanumeric': 0.17704918032786884, 'fraction_numerical': 0.004371584699453552, 'mean_word_length': 4.088888888888889, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1872201', 'n_tokens_mistral': 288, 'n_tokens_neox': 284, 'n_words': 66}