<commit_before>import { Actions, Inputs, Interfaces, StyleGroup, _, absoluteCenter } from '../../../core'
import { View, h } from '../../../interfaces/view'

export const state = {
  checked: false,
  title: '',
}

export type S = typeof state

export const inputs: Inputs = F => ({
  remove: async () => {},
  select: async id => {},
})

export const actions: Actions<S> = {
  SetChecked: checked => s => {
    s.checked = checked
    return s
  },
  SetItem: item => s => ({
    ...s,
    ...item,
  })
}

const view: View<S> = ({ ctx, ev, act }) => s => {
  let style = ctx.groups.style

  return h('li', {
    key: ctx.name,
    class: { [style.base]: true },
  }, [
    h('input', {
      class: { [style.checkbox]: true },
      props: {
        type: 'checkbox',<commit_msg>Fix type in platground<commit_after>import { Actions, Inputs, Interfaces, StyleGroup, _, absoluteCenter } from '../../../core'
import { View, h } from '../../../interfaces/view'

export const state = {
  checked: false,
  title: '',
}

export type S = typeof state

export const inputs: Inputs = F => ({
  remove: async () => {},
  select: async id => {},
})

export const actions: Actions<S> = {
  SetChecked: checked => s => {
    s.checked = checked
    return s
  },
  SetItem: item => s => ({
    ...s,
    ...item,
  })
}

const view: View<S> = ({ ctx, ev, act }) => async s => {
  let style = ctx.groups.style

  return h('li', {
    key: ctx.name,
    class: { [style.base]: true },
  }, [
    h('input', {
      class: { [style.checkbox]: true },
      props: {
        type: 'checkbox',
{'fraction_non_alphanumeric': 0.19911223842739378, 'fraction_numerical': 0.0, 'mean_word_length': 2.4379084967320264, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, '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': '5303212', 'n_tokens_mistral': 528, 'n_tokens_neox': 525, 'n_words': 151}