<commit_before>'use strict';

import React from 'react';
import classnames from 'classnames';

var getDotCount = function(spec) {
  var dots;
  dots = Math.floor(spec.slideCount / spec.slidesToScroll);
  return dots;
};


export var Dots = React.createClass({

  clickHandler: function (options, e) {
    // In Autoplay the focus stays on clicked button even after transition
    // to next slide. That only goes away by click somewhere outside
    e.preventDefault();
    this.props.clickHandler(options);
  },
  render: function () {

    var dotCount = getDotCount({
      slideCount: this.props.slideCount,
      slidesToScroll: this.props.slidesToScroll
    });

    var dots = Array.apply(null, {length: dotCount}).map((x, i) => {

      var className = classnames({
        'slick-active': (this.props.currentSlide === i * this.props.slidesToScroll)<commit_msg>Fix dotCount implementation<commit_after>'use strict';

import React from 'react';
import classnames from 'classnames';

var getDotCount = function(spec) {
  var dots;
  dots = Math.ceil(spec.slideCount / spec.slidesToScroll);
  return dots;
};


export var Dots = React.createClass({

  clickHandler: function (options, e) {
    // In Autoplay the focus stays on clicked button even after transition
    // to next slide. That only goes away by click somewhere outside
    e.preventDefault();
    this.props.clickHandler(options);
  },
  render: function () {

    var dotCount = getDotCount({
      slideCount: this.props.slideCount,
      slidesToScroll: this.props.slidesToScroll
    });

    var dots = Array.apply(null, {length: dotCount}).map((x, i) => {

      var className = classnames({
        'slick-active': (this.props.currentSlide === i * this.props.slidesToScroll)
{'fraction_non_alphanumeric': 0.11778158947970269, 'fraction_numerical': 0.0, 'mean_word_length': 3.5454545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '50824', 'n_tokens_mistral': 530, 'n_tokens_neox': 512, 'n_words': 149}