<commit_before>import ƒ from "./f";

export default function(name, value) {
  if (typeof(name) == 'object'){
    for (var key in name){
      addStyle(this, key, name[key])
    }
    return this
  } else{
    return arguments.length == 1 ? this.style(name) : addStyle(this, name, value)
  }


  function addStyle(sel, style, value){
    var style = style.replace(/([a-z\d])([A-Z])/g, '$1-$2').toLowerCase()
    console.log(style)

    var pxStyles = 'top left bottom right padding-top padding-left padding-bottom padding-right border-top b-width border-left-width border-botto-width m border-right-width  margin-top margin-left margin-bottom margin-right font-size width height stroke-width line-height margin padding border max-width min-width'

    if (~pxStyles.indexOf(style) ){
      sel.style(style, typeof value == 'function' ? ƒ(value, addPx) : addPx(value))
    } else{
      sel.style(style, value)
    }<commit_msg>removes logging<commit_after>import ƒ from "./f";

export default function(name, value) {
  if (typeof(name) == 'object'){
    for (var key in name){
      addStyle(this, key, name[key])
    }
    return this
  } else{
    return arguments.length == 1 ? this.style(name) : addStyle(this, name, value)
  }


  function addStyle(sel, style, value){
    var style = style.replace(/([a-z\d])([A-Z])/g, '$1-$2').toLowerCase()

    var pxStyles = 'top left bottom right padding-top padding-left padding-bottom padding-right border-top b-width border-left-width border-botto-width m border-right-width  margin-top margin-left margin-bottom margin-right font-size width height stroke-width line-height margin padding border max-width min-width'

    if (~pxStyles.indexOf(style) ){
      sel.style(style, typeof value == 'function' ? ƒ(value, addPx) : addPx(value))
    } else{
      sel.style(style, value)
    }
{'fraction_non_alphanumeric': 0.1436373566357182, 'fraction_numerical': 0.0032768978700163844, 'mean_word_length': 3.5346534653465347, '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': '3562369', 'n_tokens_mistral': 593, 'n_tokens_neox': 599, 'n_words': 160}