<commit_before>//
// PlaintextBodyDeserializerSpec.swift
//
// Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved.
// Licensed under the MIT License.
//

import Foundation
import Nimble
import ResponseDetective
import Quick

final class PlaintextBodyDeserializerSpec: QuickSpec {
	
	override func spec() {
		
		describe("PlaintextBodyDeserializer") {

			var sut: PlaintextBodyDeserializer! = nil

			beforeEach {
				sut = PlaintextBodyDeserializer()
			}

			it("should correctly deserialize JSON data") {
				let source = "foo bar\nbaz qux"
				let data = (source as NSString).dataUsingEncoding(NSUTF8StringEncoding)!
				let expected = source
				expect { sut.deserializeBody(data) }.to(equal(expected))
			}
			
		}
		
	}
	
}
<commit_msg>Fix plaintext test name<commit_after>//
// PlaintextBodyDeserializerSpec.swift
//
// Copyright (c) 2016 Netguru Sp. z o.o. All rights reserved.
// Licensed under the MIT License.
//

import Foundation
import Nimble
import ResponseDetective
import Quick

final class PlaintextBodyDeserializerSpec: QuickSpec {
	
	override func spec() {
		
		describe("PlaintextBodyDeserializer") {

			var sut: PlaintextBodyDeserializer! = nil

			beforeEach {
				sut = PlaintextBodyDeserializer()
			}

			it("should correctly deserialize plaintext data") {
				let source = "foo bar\nbaz qux"
				let data = (source as NSString).dataUsingEncoding(NSUTF8StringEncoding)!
				let expected = source
				expect { sut.deserializeBody(data) }.to(equal(expected))
			}
			
		}
		
	}
	
}

{'fraction_non_alphanumeric': 0.09504950495049505, 'fraction_numerical': 0.006600660066006601, 'mean_word_length': 3.566265060240964, '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': '3618000', 'n_tokens_mistral': 568, 'n_tokens_neox': 455, 'n_words': 125}