<commit_before>export default class Color {
  static styleToRGBA(value) {
    document.head.style.color = value;

    const results = /rgba?\s*\(\s*(\d*),\s*(\d*)\s*,\s*(\d*)\s*(,\s*([.\d]*))?\s*\)/.exec(getComputedStyle(document.head).getPropertyValue('color'));
    return results ? [
      parseInt(results[1]) / 255,
      parseInt(results[2]) / 255,
      parseInt(results[3]) / 255,
      results[5] !== undefined ? parseFloat(results[5]) : 1,<commit_msg>Color.styleToRGBA: add dumb element to get styles<commit_after>const element = document.createElement('br');
element.style.display = 'none';
document.body.appendChild(element);

export default class Color {
  static styleToRGBA(value) {
    element.style.color = value;

    const results = /rgba?\s*\(\s*(\d*),\s*(\d*)\s*,\s*(\d*)\s*(,\s*([.\d]*))?\s*\)/.exec(getComputedStyle(element).getPropertyValue('color'));
    return results ? [
      parseInt(results[1]) / 255,
      parseInt(results[2]) / 255,
      parseInt(results[3]) / 255,
      results[5] !== undefined ? parseFloat(results[5]) : 1,
{'fraction_non_alphanumeric': 0.21489161168708765, 'fraction_numerical': 0.02827521206409048, 'mean_word_length': 3.871559633027523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3072944', 'n_tokens_mistral': 381, 'n_tokens_neox': 364, 'n_words': 57}