<commit_before>request-animation-frame-mock
============================

Mock of requestAnimationFrame API.

## Usage ##
```
  var requestAnimationFrameMock = require('request-animation-frame-mock');
  
  var testedModule = proxyrequire('example', {
    'request-animation-frame': requestAnimationFrameMock.mock
    /* mock field is an object with two functions
      requestAnimationFrame and cancelAnimationFrame
    */
  });
  
  // manual mode is default
  // it allows you to manually trigger frame callbacks with specified time
  requestAnimationFrameMock.setMode(requestAnimationFrameMock.modes.MANUAL);
  
  // you can use trigger method only in manual mode
  requestAnimationFrame.trigger(1000);
  
  
  // interval mode allows you to schedule calling frame callback
  requestAnimationFrameMock.setMode(requestAnimationFrameMock.modes.INTERVAL, {
    setInterval: window.setInterval,
    clearInterval: window.clearInterval,
    time: 4, // time to pass to setInterval function
    // result of function below is passed to frame callbacks
    // the first argument is previously returned time (0 initially),
    // the second amount of emitted frames
    // in current mode (both variables are reseted after each mode change)
    frameTime: function(previousTime, framesCount) {
      return (previousTime + (1000 / 60) + (Math.random() * (1000 / 60)));
    }
  });
  
  <commit_msg>fix proxyquire name<commit_after>request-animation-frame-mock
============================

Mock of requestAnimationFrame API.

## Usage ##
```
  var requestAnimationFrameMock = require('request-animation-frame-mock');
  
  var testedModule = proxyquire('example', {
    'request-animation-frame': requestAnimationFrameMock.mock
    /* mock field is an object with two functions
      requestAnimationFrame and cancelAnimationFrame
    */
  });
  
  // manual mode is default
  // it allows you to manually trigger frame callbacks with specified time
  requestAnimationFrameMock.setMode(requestAnimationFrameMock.modes.MANUAL);
  
  // you can use trigger method only in manual mode
  requestAnimationFrame.trigger(1000);
  
  
  // interval mode allows you to schedule calling frame callback
  requestAnimationFrameMock.setMode(requestAnimationFrameMock.modes.INTERVAL, {
    setInterval: window.setInterval,
    clearInterval: window.clearInterval,
    time: 4, // time to pass to setInterval function
    // result of function below is passed to frame callbacks
    // the first argument is previously returned time (0 initially),
    // the second amount of emitted frames
    // in current mode (both variables are reseted after each mode change)
    frameTime: function(previousTime, framesCount) {
      return (previousTime + (1000 / 60) + (Math.random() * (1000 / 60)));
    }
  });
  
  
{'fraction_non_alphanumeric': 0.1025089605734767, 'fraction_numerical': 0.012903225806451613, 'mean_word_length': 3.754684838160136, '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': '6729490', 'n_tokens_mistral': 736, 'n_tokens_neox': 697, 'n_words': 238}