<commit_before>import hash from 'string-hash'
import { store } from './store'
import * as CSS from 'csstype'
import { Options, Meta } from './typings'

const invalidProps = ['excludedProps']

export { Options, Meta }

/**
 * @example p2,mx4,left10,spaceX4...
 * @example p-20,opacity-80
 */
export const digitReg =
  /^(m[xytrbl]?-?|p[xytrbl]?|space[xy]?|top-?|right-?|bottom-?|left-?|[wh]|square|circle|min[hw]|max[hw]|opacity|delay|duration|translate[xyz]|scale[xy]?|rotate[xy]?|skew[xy]?|text|zIndex-?|leading|stroke|fontWeight|outlineOffset|order|flex(Grow|Shrink|Basis)?|(row|column)?Gap|gridTemplateColumns|border(Top|Right|Bottom|Left)?|rounded(Top(Left|Right)?|Right|Bottom(Left|Right)?|Left)?)(-?\d+[a-z]*?|-auto)$/i

export class Atom {
  constructor(private readonly options: Options) {
    this.propKey = options.propKey
    this.propValue = options.propValue

    this.propKeys = [this.propKey]

    this.key = options.key || this.propKey
    this.value = options.value || this.propValue

    this.style = options.style

    this.handled = this.getInitialHandled()
    this.isValid = this.getIsValid()

    this.inserted = false

    // shallow clone it
    this.meta = { ...options.meta } || {}

    this.preprocessAtom()
  }
<commit_msg>fix: inline style init<commit_after>import hash from 'string-hash'
import { store } from './store'
import * as CSS from 'csstype'
import { Options, Meta } from './typings'

const invalidProps = ['excludedProps']

export { Options, Meta }

/**
 * @example p2,mx4,left10,spaceX4...
 * @example p-20,opacity-80
 */
export const digitReg =
  /^(m[xytrbl]?-?|p[xytrbl]?|space[xy]?|top-?|right-?|bottom-?|left-?|[wh]|square|circle|min[hw]|max[hw]|opacity|delay|duration|translate[xyz]|scale[xy]?|rotate[xy]?|skew[xy]?|text|zIndex-?|leading|stroke|fontWeight|outlineOffset|order|flex(Grow|Shrink|Basis)?|(row|column)?Gap|gridTemplateColumns|border(Top|Right|Bottom|Left)?|rounded(Top(Left|Right)?|Right|Bottom(Left|Right)?|Left)?)(-?\d+[a-z]*?|-auto)$/i

export class Atom {
  constructor(private readonly options: Options) {
    this.propKey = options.propKey
    this.propValue = options.propValue

    this.propKeys = [this.propKey]

    this.key = options.key || this.propKey
    this.value = options.value || this.propValue

    this.style = options.style || {}

    this.handled = this.getInitialHandled()
    this.isValid = this.getIsValid()

    this.inserted = false

    // shallow clone it
    this.meta = { ...options.meta } || {}

    this.preprocessAtom()
  }

{'fraction_non_alphanumeric': 0.1814211988884478, 'fraction_numerical': 0.007145692735212386, 'mean_word_length': 4.7272727272727275, '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': '6405792', 'n_tokens_mistral': 929, 'n_tokens_neox': 904, 'n_words': 133}