<commit_before>import Color from './color';
import Rgb   from './rgb';

const NAME = Symbol.for('YUV');
const KEYS = Object.freeze({
  Y: Symbol.for('y'),
  U: Symbol.for('u'),
  V: Symbol.for('v')
});

/**
 * https://en.wikipedia.org/wiki/YUV
 */
export default class Yuv extends Color {
  constructor(y, u, v) {
    super(NAME, [[KEYS.Y, y], [KEYS.U, u], [KEYS.V, v]]);
  }

  rgb() {
    let [y, u, v] = this.values();

    let r = y + 1.13983 * v;
    let g = y - 0.39465 * u - 0.58060 * v;
    let b = y + 2.03211 * u;
    [r, g, b] = [r, g, b].map(value => Math.round(value * 0xFF));
    return new Rgb(r, g, b);
  }
}<commit_msg>Fixed all lint errors in yuv.js<commit_after>import Color from './color';
import Rgb   from './rgb';

const NAME = Symbol.for('YUV');
const KEYS = Object.freeze({
  Y: Symbol.for('y'),
  U: Symbol.for('u'),
  V: Symbol.for('v')
});

/**
 * https://en.wikipedia.org/wiki/YUV
 */
export default class Yuv extends Color {
  constructor(y, u, v) {
    super(NAME, [[KEYS.Y, y], [KEYS.U, u], [KEYS.V, v]]);
  }

  rgb() {
    const [y, u, v] = this.values();

    let r = y + 1.13983 * v;
    let g = y - 0.39465 * u - 0.58060 * v;
    let b = y + 2.03211 * u;
    [r, g, b] = [r, g, b].map((value) => { Math.round(value * 0xFF) });
    return new Rgb(r, g, b);
  }
}
{'fraction_non_alphanumeric': 0.22419106317411402, 'fraction_numerical': 0.03852080123266564, 'mean_word_length': 2.558904109589041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4753817', 'n_tokens_mistral': 589, 'n_tokens_neox': 545, 'n_words': 151}