<commit_before>    check = (require 'assert').deepEqual
    bluebird = require 'bluebird'
    fs = bluebird.promisifyAll require 'fs'

    describe 'Generators', ->
      it 'should work as expected', (done) ->
        make_generator = (x) ->
          check x, 4
          a = yield x+3
          check a, 9
          null

        generator = make_generator 4

This brings us to the first yield.

        b = generator.next 8

The return value of `next` is the argument of `yield`.
It's unclear what the argument(s) of that first `next` are used for, since clear the argument to `make_generator` becomes the argument of its generating function.

        check b.value, 7
        check b.done, false

Since we are stopped `inside` the `yield`, return its value and continue until the next `yield` or `return`.

        c = generator.next 9

        check c.value, null
        check c.done, true
        done()

    describe 'seem', ->
      seem = require '../index'
      it 'should work with readFileAsync', (done) ->

        make_generator_2 = (x) ->
          a = parseInt yield fs.readFileAsync x
          check a, 4
          b = parseInt yield fs.readFileAsync 'test/3plus'+a
          check b, 7
          fs.readFileAsync 'test/bar'+b, encoding:'utf-8'

        g = seem make_generator_2

        d = g 'test/four'
        d.then (x) ->
          check x, 'foo\n'<commit_msg>test basic values<commit_after>    check = (require 'assert').deepEqual
    bluebird = require 'bluebird'
    fs = bluebird.promisifyAll require 'fs'

    describe 'Generators', ->
      it 'should work as expected', (done) ->
        make_generator = (x) ->
          check x, 4
          a = yield x+3
          check a, 9
          null

        generator = make_generator 4

This brings us to the first yield.

        b = generator.next 8

The return value of `next` is the argument of `yield`.
It's unclear what the argument(s) of that first `next` are used for, since clear the argument to `make_generator` becomes the argument of its generating function.

        check b.value, 7
        check b.done, false

Since we are stopped `inside` the `yield`, return its value and continue until the next `yield` or `return`.

        c = generator.next 9

        check c.value, null
        check c.done, true
        done()

    describe 'seem', ->
      seem = require '../index'

      it 'should work with undefined', (done) ->
        f = seem ->
          yield undefined

        f().then (x) ->
          done() if typeof x is 'undefined'

      it 'should work with null', (done) ->
        f = seem ->
          yield null

        f().then (x) ->
          done() if x is null

      it 'should work with numbers', (done) ->
        f = seem ->
          yield 4

        f().then (x) ->
          done() if x is 4

      it 'should work with numbers', (done) ->
        f = seem ->
          yield 4

        f().then (x) ->
          done() if x is 4

      it 'should work with readFileAsync', (done) ->

        make_generator_2 = (x) ->
          a = parseInt yield fs.readFileAsync x
          check a, 4
          b = parseInt yield fs.readFileAsync 'test/3plus'+a
          check b, 7
          fs.readFileAsync 'test/bar'+b, encoding:'utf-8'

        g = seem make_generator_2

        d = g 'test/four'
        d.then (x) ->
          check x, 'foo\n'
{'fraction_non_alphanumeric': 0.10288432946773714, 'fraction_numerical': 0.008920606601248885, 'mean_word_length': 1.7963424771404821, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '7619427', 'n_tokens_mistral': 1013, 'n_tokens_neox': 957, 'n_words': 382}