<commit_before>'use strict' /* @flow */

import React from 'react'
import ReactCSS from 'reactcss'

import SliderSwatch from './SliderSwatch'

export class SliderSwatches extends ReactCSS.Component {

  constructor() {
    super()

    this.handleClick = this.handleClick.bind(this)
  }

  classes(): any {
    return {
      'default': {
        swatches: {
          marginRight: '-4px',
          marginTop: '20px',
        },
        swatch: {
          width: '19.65%',
          marginRight: '1px',
          float: 'left',
        },
        clear: {
          clear: 'both',
        },
      },
    }
  }

  handleClick(data: any) {
    this.props.onClick(data)
  }

  render(): any {
    return (<commit_msg>Fix sliderSwatches styles breaking on small widths<commit_after>'use strict' /* @flow */

import React from 'react'
import ReactCSS from 'reactcss'

import SliderSwatch from './SliderSwatch'

export class SliderSwatches extends ReactCSS.Component {

  constructor() {
    super()

    this.handleClick = this.handleClick.bind(this)
  }

  classes(): any {
    return {
      'default': {
        swatches: {
          marginTop: '20px',
        },
        swatch: {
          boxSizing: 'border-box',
          width: '20%',
          paddingRight: '1px',
          float: 'left',
        },
        clear: {
          clear: 'both',
        },
      },
    }
  }

  handleClick(data: any) {
    this.props.onClick(data)
  }

  render(): any {
    return (
{'fraction_non_alphanumeric': 0.13238289205702647, 'fraction_numerical': 0.008825526137135099, 'mean_word_length': 1.9362549800796813, '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': '2751753', 'n_tokens_mistral': 477, 'n_tokens_neox': 457, 'n_words': 104}