<commit_before>import React from 'react';
import * as styles from '../styles/Home.scss';

const delayToText = (delay) => {
  if (delay <= 100) {
    return 'Lightning';
  } else if (delay <= 300) {
    return 'Fast';
  } else if (delay <= 500) {
    return 'Normal';
  } else if (delay <= 700) {
    return 'Slow';
  } else if (delay <= 900) {
    return 'Turtle';
  } else {
    return 'Molasses';
  }
};

const AnimationSpeedSelector = ({ changeDelay, delay }) => {
  return (
    <div className={styles.animationSpeedContainer}>
      <div>
        <span className={styles.button_info}>Animation Speed</span>
        <button onClick={changeDelay.bind(this, -100)}>+</button>
        <button onClick={changeDelay.bind(this, 100)}>-</button>
      </div>
      <div className={styles[delayToText(delay).toLowerCase()]}>
        {delayToText(delay)}
      </div>
    </div>
  );
};

export default AnimationSpeedSelector;<commit_msg>Change display text<commit_after>import React from 'react';
import * as styles from '../styles/Home.scss';

const delayToText = (delay) => {
  if (delay <= 100) {
    return 'Lightning';
  } else if (delay <= 300) {
    return 'Fast';
  } else if (delay <= 500) {
    return 'Normal';
  } else if (delay <= 700) {
    return 'Slow';
  } else if (delay <= 900) {
    return 'Turtle';
  } else {
    return 'Molasses';
  }
};

const AnimationSpeedSelector = ({ changeDelay, delay }) => {
  return (
    <div className={styles.animationSpeedContainer}>
      <div>
        <span className={styles.button_info}>Speed</span>
        <button onClick={changeDelay.bind(this, -100)}>+</button>
        <button onClick={changeDelay.bind(this, 100)}>-</button>
      </div>
      <div className={styles[delayToText(delay).toLowerCase()]}>
        {delayToText(delay)}
      </div>
    </div>
  );
};

export default AnimationSpeedSelector;
{'fraction_non_alphanumeric': 0.1686358754027927, 'fraction_numerical': 0.022556390977443608, 'mean_word_length': 3.10352422907489, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 31, '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': '1354712', 'n_tokens_mistral': 634, 'n_tokens_neox': 586, 'n_words': 140}