<commit_before>// @flow

/* Wraps glamor's stylesheet and exports a singleton for the rest
*  of the app to use. */

import { StyleSheet as GlamorStyle } from '../vendor/glamor/sheet'

class StyleSheet {
  styleSheet: GlamorStyle
  constructor() {
    this.styleSheet = new GlamorStyle({ speedy: false, maxLength: 40 })
  }
  get injected(): boolean {
    return this.styleSheet.injected
  }
  inject() {
    return this.styleSheet.inject()
  }
  insert(css: string) {
    return this.styleSheet.insert(css)
  }
  reset() {
    if (this.styleSheet.sheet) this.styleSheet.flush()
  }
  getCSS({ min = true }: { min: boolean } = {}) {
    return this.styleSheet.sheet ?
      this.styleSheet.rules().map(rule => rule.cssText).join(min ? '' : '\n')
      : '';
  }
}

export default new StyleSheet()
<commit_msg>remove extra semi<commit_after>// @flow

/* Wraps glamor's stylesheet and exports a singleton for the rest
*  of the app to use. */

import { StyleSheet as GlamorStyle } from '../vendor/glamor/sheet'

class StyleSheet {
  styleSheet: GlamorStyle
  constructor() {
    this.styleSheet = new GlamorStyle({ speedy: false, maxLength: 40 })
  }
  get injected(): boolean {
    return this.styleSheet.injected
  }
  inject() {
    return this.styleSheet.inject()
  }
  insert(css: string) {
    return this.styleSheet.insert(css)
  }
  reset() {
    if (this.styleSheet.sheet) this.styleSheet.flush()
  }
  getCSS({ min = true }: { min: boolean } = {}) {
    return this.styleSheet.sheet ?
      this.styleSheet.rules().map(rule => rule.cssText).join(min ? '' : '\n')
      : ''
  }
}

export default new StyleSheet()

{'fraction_non_alphanumeric': 0.14373843306600864, 'fraction_numerical': 0.0024676125848241827, 'mean_word_length': 3.127226463104326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7215321', 'n_tokens_mistral': 551, 'n_tokens_neox': 538, 'n_words': 132}