<commit_before>const React = require('react');

const rebound = require('rebound');
const {
  SpringSystem,
  SpringConfig,
  OrigamiValueConverter
} = rebound;
const {
  mapValueInRange
} = rebound.MathUtil;

const {
  getVendorPrefix
} = require('./util/dom');

const {
  dropRight,
  last,
  takeRight
} = require('./util/array');

const {
  assign
} = require('./util/object');

const Transition = require('./util/transition');

const classNames = require('classnames');
const transformPrefix = getVendorPrefix('transform');

const optionTypes = {
  pushView: {
    view: React.PropTypes.element.isRequired,
    transition: React.PropTypes.oneOfType([
      React.PropTypes.func,
      React.PropTypes.number
    ]),
    onComplete: React.PropTypes.func
  },
  popView: {
    transition: React.PropTypes.oneOfType([
      React.PropTypes.func,
      React.PropTypes.number
    ]),
    onComplete: React.PropTypes.func
  },
  popToRootView: {
    preserveState: React.PropTypes.bool,
    transition: React.PropTypes.oneOfType([
      React.PropTypes.func,
      React.PropTypes.number
    ]),
    onComplete: React.PropTypes.func<commit_msg>Remove preserveState option for popToRootView<commit_after>const React = require('react');

const rebound = require('rebound');
const {
  SpringSystem,
  SpringConfig,
  OrigamiValueConverter
} = rebound;
const {
  mapValueInRange
} = rebound.MathUtil;

const {
  getVendorPrefix
} = require('./util/dom');

const {
  dropRight,
  last,
  takeRight
} = require('./util/array');

const {
  assign
} = require('./util/object');

const Transition = require('./util/transition');

const classNames = require('classnames');
const transformPrefix = getVendorPrefix('transform');

const optionTypes = {
  pushView: {
    view: React.PropTypes.element.isRequired,
    transition: React.PropTypes.oneOfType([
      React.PropTypes.func,
      React.PropTypes.number
    ]),
    onComplete: React.PropTypes.func
  },
  popView: {
    transition: React.PropTypes.oneOfType([
      React.PropTypes.func,
      React.PropTypes.number
    ]),
    onComplete: React.PropTypes.func
  },
  popToRootView: {
    transition: React.PropTypes.oneOfType([
      React.PropTypes.func,
      React.PropTypes.number
    ]),
    onComplete: React.PropTypes.func
{'fraction_non_alphanumeric': 0.13075910487055725, 'fraction_numerical': 0.0, 'mean_word_length': 3.6435845213849287, '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': '6175545', 'n_tokens_mistral': 717, 'n_tokens_neox': 714, 'n_words': 123}