<commit_before>/***** Functions *****/

// colorful table
table-color(state)
  th
  td
    border-color: lightness(state['border-color']) > 85% ? state['border-color'] : lighten(state['border-color'], 70%)
  th
    color: lightness(state['color']) > 85% ? state['invert-color'] : state['color'] !important
    background-color: lightness(state['color']) > 85% ? state['color'] : lighten(state['color'], 85%)

table-colorful-vertical(state)
  tbody > tr > td:first-child
    background-color lightness(state['color']) > 85% ? state['color'] : lighten(state['color'], 85%)
    font-weight 600

table-colorful-striped(state)
  tbody > tr:nth-child(2n)
    background-color lightness(state['color']) > 95% ? state['color'] : lighten(state['color'], 95%)

table-colorful-active(state)
  tbody > tr
    &:hover
    &:active
      background-color lightness(state['color']) > 90% ? state['color'] : lighten(state['color'], 90%)

table-colorful-invert(state)
  th
    colorful-invert(state)

/***** Styles *****/
table
table.table
  +fd()
    margin 0
    background-color base-back
    font-weight normal
    // box-shadow 0px 0px 0px 1px light-shadow;
    border-radius .2rem
    colorful(table-color)
    th
    td
      padding 8px 10px
      border-width 1px
      border 1px solid
    th
      font-weight 600
    &.striped
      colorful(table-colorful-striped)
    &.active
      colorful(table-colorful-active)
    &.invert
      colorful(table-colorful-invert)
    &.vertical
      colorful(table-colorful-vertical)<commit_msg>调整 table padding 值<commit_after>/***** Functions *****/

// colorful table
table-color(state)
  th
  td
    border-color: lightness(state['border-color']) > 85% ? state['border-color'] : lighten(state['border-color'], 70%)
  th
    color: lightness(state['color']) > 85% ? state['invert-color'] : state['color'] !important
    background-color: lightness(state['color']) > 85% ? state['color'] : lighten(state['color'], 85%)

table-colorful-vertical(state)
  tbody > tr > td:first-child
    background-color lightness(state['color']) > 85% ? state['color'] : lighten(state['color'], 85%)
    font-weight 600

table-colorful-striped(state)
  tbody > tr:nth-child(2n)
    background-color lightness(state['color']) > 95% ? state['color'] : lighten(state['color'], 95%)

table-colorful-active(state)
  tbody > tr
    &:hover
    &:active
      background-color lightness(state['color']) > 90% ? state['color'] : lighten(state['color'], 90%)

table-colorful-invert(state)
  th
    colorful-invert(state)

/***** Styles *****/
table
table.table
  +fd()
    margin 0
    background-color base-back
    font-weight normal
    box-shadow 0px 0px 0px 1px light-shadow;
    border-radius .2rem
    colorful(table-color)
    th
    td
      padding .5em .8em
      border-width 1px
      border 1px solid
    th
      font-weight 600
    &.striped
      colorful(table-colorful-striped)
    &.active
      colorful(table-colorful-active)
    &.invert
      colorful(table-colorful-invert)
    &.vertical
      colorful(table-colorful-vertical)
{'fraction_non_alphanumeric': 0.1633453119895459, 'fraction_numerical': 0.025808559294348252, 'mean_word_length': 3.431259044862518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '4902170', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1015, 'n_words': 204}