<commit_before># QuantumLeap

[![Build Status](https://secure.travis-ci.org/mattonrails/quantum_leap.png?branch=master)](http://travis-ci.org/mattonrails/quantum_leap)

Righting wrongs in your test suite with time travel!

QuantumLeap lets you change the current time in your tests.

I can't promise you'll meet any historical figures, however.

## Installation

Add this line to your application's Gemfile:

    gem 'quantum_leap'

Or install it yourself as:

    $ gem install quantum_leap

## Usage

    Quantum.leap(Time.new(1956, 9, 13))
    sam.must_be_kind_of(Pilot)
    sam.must_win_baseball_game
    Quantum.leap_back

Or with a block:

    Quantum.leap(Time.new(1974, 10, 24)) do
      sam.must_be_kind_of(Boxer)
      sam.must_win_the_championship
    end

Defaults to Time.now without arguments:

    Time.now
     => 2012-05-31 21:25:34 -0400
    Quantum.leap
    Time.now
     => 2012-05-31 21:25:36 -0400

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
<commit_msg>Code-fence examples for syntax highlighting<commit_after># QuantumLeap

[![Build Status](https://secure.travis-ci.org/mattonrails/quantum_leap.png?branch=master)](http://travis-ci.org/mattonrails/quantum_leap)

Righting wrongs in your test suite with time travel!

QuantumLeap lets you change the current time in your tests.

I can't promise you'll meet any historical figures, however.

## Installation

Add this line to your application's Gemfile:

    gem 'quantum_leap'

Or install it yourself as:

    $ gem install quantum_leap

## Usage

```ruby
Quantum.leap(Time.new(1956, 9, 13))
sam.must_be_kind_of(Pilot)
sam.must_win_baseball_game
Quantum.leap_back
```

Or with a block:

```ruby
Quantum.leap(Time.new(1974, 10, 24)) do
  sam.must_be_kind_of(Boxer)
  sam.must_win_the_championship
end
```

Defaults to Time.now without arguments:

```ruby
Time.now
=> 2012-05-31 21:25:34 -0400
Quantum.leap
Time.now
=> 2012-05-31 21:25:36 -0400
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

{'fraction_non_alphanumeric': 0.10899067005937235, 'fraction_numerical': 0.04749787955894826, 'mean_word_length': 4.062231759656652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1474539', 'n_tokens_mistral': 938, 'n_tokens_neox': 802, 'n_words': 245}