<commit_before>import React, { Component } from 'react';
import CurrentMax from './current-max/CurrentMax';
import './App.css';

class App extends Component {
  constructor(props) {
    super(props);
    this.handleCurrentMaxChange = this.handleCurrentMaxChange.bind(this);
    this.handleCurrentMaxSubmit = this.handleCurrentMaxSubmit.bind(this);
    this.state = {
      currentMaxes: {
        benchPress: '',
        deadlift: '',
        overheadPress: '',
        squat: '',
      },
      cycles: null,
      unit: 'lb',
    };
  }

  calculateCycle(currentMax) {
    const cycle = [];
    const cycleBase = [0.65, 0.7, 0.75, 0.4];
    for (let i = 0; i < 4; i++) {
      cycle.push([
        Math.floor(currentMax * (cycleBase[i]) / 5) * 5,
        Math.floor(currentMax * (cycleBase[i] + 0.1) / 5) * 5,
        Math.floor(currentMax * (cycleBase[i] + 0.2) / 5 ) * 5,
      ]);
    }
    return cycle;
  }

  handleCurrentMaxChange(lift, value) {
    this.setState({
      currentMaxes: Object.assign({}, this.state.currentMaxes, {<commit_msg>add two more sets to each cycle row - joker sets increase of 5%<commit_after>import React, { Component } from 'react';
import CurrentMax from './current-max/CurrentMax';
import './App.css';

class App extends Component {
  constructor(props) {
    super(props);
    this.handleCurrentMaxChange = this.handleCurrentMaxChange.bind(this);
    this.handleCurrentMaxSubmit = this.handleCurrentMaxSubmit.bind(this);
    this.state = {
      currentMaxes: {
        benchPress: '',
        deadlift: '',
        overheadPress: '',
        squat: '',
      },
      cycles: null,
      unit: 'lb',
    };
  }

  calculateCycle(currentMax) {
    const cycle = [];
    const cycleBase = [0.65, 0.7, 0.75, 0.4];
    for (let i = 0; i < 4; i++) {
      cycle.push([
        Math.floor(currentMax * (cycleBase[i]) / 5) * 5,
        Math.floor(currentMax * (cycleBase[i] + 0.1) / 5) * 5,
        Math.floor(currentMax * (cycleBase[i] + 0.2) / 5 ) * 5,
        Math.floor(currentMax * (cycleBase[i] + 0.25) / 5 ) * 5,
        Math.floor(currentMax * (cycleBase[i] + 0.3) / 5 ) * 5,
      ]);
    }
    return cycle;
  }

  handleCurrentMaxChange(lift, value) {
    this.setState({
      currentMaxes: Object.assign({}, this.state.currentMaxes, {
{'fraction_non_alphanumeric': 0.1569487067075844, 'fraction_numerical': 0.02367382726874178, 'mean_word_length': 2.527047913446677, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6380138', 'n_tokens_mistral': 802, 'n_tokens_neox': 761, 'n_words': 162}