<commit_before>import XCTest
@testable import Vapor
import HTTP

class DropletTests: XCTestCase {
    static let allTests = [
        ("testMediaType", testMediaType)
    ]

    var workDir: String {
        let parent = #file.characters.split(separator: "/").map(String.init).dropLast().joined(separator: "/")
        let path = "/\(parent)/../../Sources/Development/"
        return path
    }

    /**
        Ensures requests to files like CSS
        files have appropriate "Content-Type"
        headers returned.
    */
    func testMediaType() throws {
        let drop = Droplet(workDir: workDir, serverMiddleware: ["file"])

        let request = try Request(method: .get, uri: "styles/app.css")<commit_msg>use appropriate path, not uri<commit_after>import XCTest
@testable import Vapor
import HTTP

class DropletTests: XCTestCase {
    static let allTests = [
        ("testMediaType", testMediaType)
    ]

    var workDir: String {
        let parent = #file.characters.split(separator: "/").map(String.init).dropLast().joined(separator: "/")
        let path = "/\(parent)/../../Sources/Development/"
        return path
    }

    /**
        Ensures requests to files like CSS
        files have appropriate "Content-Type"
        headers returned.
    */
    func testMediaType() throws {
        let drop = Droplet(workDir: workDir, serverMiddleware: ["file"])

        let request = try Request(method: .get, path: "styles/app.css")
{'fraction_non_alphanumeric': 0.12474155754651964, 'fraction_numerical': 0.0, 'mean_word_length': 2.6209476309226933, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6796545', 'n_tokens_mistral': 428, 'n_tokens_neox': 409, 'n_words': 113}