<commit_before>import * as easingFunctions from './shifty.easing-functions';
import * as token from './shifty.token';

// Aliases that get defined later in this function
var formula;

// CONSTANTS
const DEFAULT_EASING = 'linear';
const DEFAULT_DURATION = 500;
const UPDATE_TIME = 1000 / 60;
const root = typeof window !== 'undefined' ? window : global;

const DEFAULT_SCHEDULE_FUNCTION = (typeof window !== 'undefined') ?
  // requestAnimationFrame() shim by <NAME> (modified for Shifty)
  // http://paulirish.com/2011/requestanimationframe-for-smart-animating/
  (
    window.requestAnimationFrame
    || window.webkitRequestAnimationFrame
    || window.oRequestAnimationFrame
    || window.msRequestAnimationFrame
    || (window.mozCancelRequestAnimationFrame &&
        window.mozRequestAnimationFrame)
    || setTimeout
  )
  :
  setTimeout;

function noop () {
  // NOOP!
}

/**
 * Handy shortcut for doing a for-in loop. This is not a "normal" each
 * function, it is optimized for Shifty.  The iterator function only receives
 * the property name, not the value.
 * @param {Object} obj
 * @param {Function(string)} fn
 * @private
 */
export function each (obj, fn) {
  var key;
  for (key in obj) {
    if (Object.hasOwnProperty.call(obj, key)) {<commit_msg>Refactor DEFAULT_SCHEDULE_FUNCTION and noop<commit_after>import * as easingFunctions from './shifty.easing-functions';
import * as token from './shifty.token';

// Aliases that get defined later in this function
var formula;

// CONSTANTS
const DEFAULT_EASING = 'linear';
const DEFAULT_DURATION = 500;
const UPDATE_TIME = 1000 / 60;
const root = typeof window !== 'undefined' ? window : global;

// requestAnimationFrame() shim by <NAME> (modified for Shifty)
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
const DEFAULT_SCHEDULE_FUNCTION = (
  root.requestAnimationFrame
  || root.webkitRequestAnimationFrame
  || root.oRequestAnimationFrame
  || root.msRequestAnimationFrame
  || (root.mozCancelRequestAnimationFrame && root.mozRequestAnimationFrame)
  || setTimeout
);

const noop = () => {};

/**
 * Handy shortcut for doing a for-in loop. This is not a "normal" each
 * function, it is optimized for Shifty.  The iterator function only receives
 * the property name, not the value.
 * @param {Object} obj
 * @param {Function(string)} fn
 * @private
 */
export function each (obj, fn) {
  var key;
  for (key in obj) {
    if (Object.hasOwnProperty.call(obj, key)) {
{'fraction_non_alphanumeric': 0.11463414634146342, 'fraction_numerical': 0.01056910569105691, 'mean_word_length': 4.105809128630705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '6467580', 'n_tokens_mistral': 766, 'n_tokens_neox': 739, 'n_words': 224}