<commit_before>//
//  TaskSpec.swift
//  ReactiveTask
//
//  Created by <NAME> on 2014-10-11.
//  Copyright (c) 2014 Carthage. All rights reserved.
//

import Foundation
import Nimble
import Quick
import ReactiveCocoa
import ReactiveTask
import Result

class TaskSpec: QuickSpec {
	override func spec() {
		it("should notify that a task was launched") {
			var isLaunched: Bool = false

			let task = Task("/usr/bin/true")
			let result = launchTask(task)
				.on(next: { event in
					if case let .Launch(launched) = event {
						isLaunched = true
						expect(launched) == task
					}
				})
				.wait()
<commit_msg>Modify a test name<commit_after>//
//  TaskSpec.swift
//  ReactiveTask
//
//  Created by <NAME> on 2014-10-11.
//  Copyright (c) 2014 Carthage. All rights reserved.
//

import Foundation
import Nimble
import Quick
import ReactiveCocoa
import ReactiveTask
import Result

class TaskSpec: QuickSpec {
	override func spec() {
		it("should notify that a task is about to be launched") {
			var isLaunched: Bool = false

			let task = Task("/usr/bin/true")
			let result = launchTask(task)
				.on(next: { event in
					if case let .Launch(launched) = event {
						isLaunched = true
						expect(launched) == task
					}
				})
				.wait()

{'fraction_non_alphanumeric': 0.11164274322169059, 'fraction_numerical': 0.019138755980861243, 'mean_word_length': 2.814589665653495, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '949325', 'n_tokens_mistral': 498, 'n_tokens_neox': 401, 'n_words': 132}