<commit_before>//
//  FindTests.swift
//  DVB
//
//  Created by <NAME> on 09/05/16.
//  Copyright © 2016 CocoaPods. All rights reserved.
//

import Quick
import Nimble
import DVB

class FindTests: QuickSpec {
    override func spec() {
        describe("DVB.find") {
            it("should return results") {
                let stops = DVB.find(query: "Helmholtzstraße")
                expect(stops.count) > 0
            }

            it("should return the correct stops") {
                let stops = DVB.find(query: "Zellesch")
                expect(stops.first!.name) == "Zellescher Weg"
            }
        }

        describe("DVB.nearestStops") {
            it("should return correct results") {
                let (helmholtz, distance) = DVB.findNear(latitude: 51.0271761, longitude: 13.7258114, radius: 300).first!
                expect(helmholtz.name) == "Helmholtzstraße"
				expect(distance) <= 300
            }
        }
    }
}
<commit_msg>Refactor FindTests so as not to crash test suite<commit_after>//
//  FindTests.swift
//  DVB
//
//  Created by <NAME> on 09/05/16.
//  Copyright © 2016 CocoaPods. All rights reserved.
//

import Quick
import Nimble
import DVB

class FindTests: QuickSpec {
    override func spec() {
        describe("DVB.find") {
            it("should return results") {
                let stops = DVB.find(query: "Helmholtzstraße")
                expect(stops.count) > 0
            }

            it("should return the correct stops") {
                let stops = DVB.find(query: "Zellesch")
                if let first = stops.first {
                    expect(first.name) == "Zellescher Weg"
                } else {
                    fail("Got empty list")
                }
            }
        }

        describe("DVB.nearestStops") {
            it("should return correct results") {
                let found = DVB.findNear(latitude: 51.0271761, longitude: 13.7258114, radius: 300)
                if let first = found.first {
                    let (helmholtz, distance) = first
                    expect(helmholtz.name) == "Helmholtzstraße"
                    expect(distance) <= 300
                } else {
                    fail("Got empty list")
                }
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.11208791208791209, 'fraction_numerical': 0.03076923076923077, 'mean_word_length': 1.4983534577387487, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1657514', 'n_tokens_mistral': 740, 'n_tokens_neox': 641, 'n_words': 161}