<commit_before>/**
 * wip-limiter module.
 *
 * Chrome extension to get a visual hint when your Kanban-style WIP
 * limit has been exceeded in Asana.
 */

import SubtaskSection from './subtask-section';
import TaskGroup from './task-group';

((css) => {
  const head = document.getElementsByTagName('head')[0];
  if (!head) { return; }
  const style = document.createElement('style');
  style.type = 'text/css';
  style.innerHTML = css;
  head.appendChild(style);
})(`
  .wip-limit-under { }
  .wip-limit-over {
    background-color: rgb(214, 65, 65) !important;
  }
  .wip-limit-on-edge {
    background-color: rgb(239, 190, 67) !important;
  }
`);

const isSubtaskSectionElement = (e: Element) => e.classList.contains('SectionRow');

const buildSubtaskSections = (elements: Element[]): SubtaskSection[] => {
  let currentSectionElement: Element | null = null;
  let currentChildElements: Element[] = [];
  const subtaskSections: SubtaskSection[] = [];

  const addSubtaskSection = () => {<commit_msg>Drop redundant and deprecated .type setting on HTMLStyleElement<commit_after>/**
 * wip-limiter module.
 *
 * Chrome extension to get a visual hint when your Kanban-style WIP
 * limit has been exceeded in Asana.
 */

import SubtaskSection from './subtask-section';
import TaskGroup from './task-group';

((css) => {
  const head = document.getElementsByTagName('head')[0];
  if (!head) { return; }
  const style = document.createElement('style');
  style.innerHTML = css;
  head.appendChild(style);
})(`
  .wip-limit-under { }
  .wip-limit-over {
    background-color: rgb(214, 65, 65) !important;
  }
  .wip-limit-on-edge {
    background-color: rgb(239, 190, 67) !important;
  }
`);

const isSubtaskSectionElement = (e: Element) => e.classList.contains('SectionRow');

const buildSubtaskSections = (elements: Element[]): SubtaskSection[] => {
  let currentSectionElement: Element | null = null;
  let currentChildElements: Element[] = [];
  const subtaskSections: SubtaskSection[] = [];

  const addSubtaskSection = () => {
{'fraction_non_alphanumeric': 0.15244203256043415, 'fraction_numerical': 0.015786877158362113, 'mean_word_length': 4.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3580240', 'n_tokens_mistral': 669, 'n_tokens_neox': 635, 'n_words': 163}