<commit_before>import Foundation
import Result

@available(*, unavailable, renamed: "MoyaError", message: "Moya.Error has been renamed to MoyaError in version 8.0.0")
public typealias Error = MoyaError

extension Endpoint {
    @available(*, unavailable, renamed: "adding(newParameters:)")
    public func endpointByAddingParameters(parameters: [String: AnyObject]) -> Endpoint<Target> { fatalError() }

    @available(*, unavailable, renamed: "adding(newHTTPHeaderFields:)")
    public func endpointByAddingHTTPHeaderFields(httpHeaderFields: [String: String]) -> Endpoint<Target> { fatalError() }

    @available(*, unavailable, renamed: "adding(newParameterEncoding:)")
    public func endpointByAddingParameterEncoding(newParameterEncoding: Moya.ParameterEncoding) -> Endpoint<Target> { fatalError() }

    @available(*, unavailable, renamed: "adding(parameters:httpHeaderFields:parameterEncoding:)")
    public func endpointByAdding(parameters: [String: AnyObject]? = nil, httpHeaderFields: [String: String]? = nil, parameterEncoding: Moya.ParameterEncoding? = nil)  -> Endpoint<Target> { fatalError() }
}

@available(*, unavailable, renamed: "MultiTarget", message: "StructTarget has been renamed to MultiTarget in version 8.0.0")
enum StructTarget { }

extension MoyaProvider {
    @available(*, unavailable, renamed: "notifyPluginsOfImpendingStub(for:target:)")
    internal final func notifyPluginsOfImpendingStub(request: URLRequest, target: Target) { fatalError() }
}

extension Response {
    @available(*, unavailable, renamed: "filter(statusCodes:)")
    public func filterStatusCodes(range: ClosedRange<Int>) throws -> Response { fatalError() }

    @available(*, unavailable, renamed: "filter(statusCode:)")
    public func filterStatusCode(code: Int) throws -> Response { fatalError() }
}

extension PluginType {
    @available(*, unavailable, renamed: "willSend(_:)")
    func willSendRequest(request: RequestType, target: TargetType) { fatalError() }

    @available(*, unavailable, renamed: "didReceive(_:)")
    func didReceiveResponse(result: Result<Moya.Response, Moya.Error>, target: TargetType) { fatalError() }
}
<commit_msg>Fix building on Swift 3.1<commit_after>import Foundation
import Result

@available(*, unavailable, renamed: "MoyaError", message: "Moya.Error has been renamed to MoyaError in version 8.0.0")
public typealias Error = MoyaError

extension Endpoint {
    @available(*, unavailable, renamed: "adding(newParameters:)")
    public func endpointByAddingParameters(parameters: [String: AnyObject]) -> Endpoint<Target> { fatalError() }

    @available(*, unavailable, renamed: "adding(newHTTPHeaderFields:)")
    public func endpointByAddingHTTPHeaderFields(httpHeaderFields: [String: String]) -> Endpoint<Target> { fatalError() }

    @available(*, unavailable, renamed: "adding(newParameterEncoding:)")
    public func endpointByAddingParameterEncoding(newParameterEncoding: Moya.ParameterEncoding) -> Endpoint<Target> { fatalError() }

    @available(*, unavailable, renamed: "adding(parameters:httpHeaderFields:parameterEncoding:)")
    public func endpointByAdding(parameters: [String: AnyObject]? = nil, httpHeaderFields: [String: String]? = nil, parameterEncoding: Moya.ParameterEncoding? = nil)  -> Endpoint<Target> { fatalError() }
}

@available(*, unavailable, renamed: "MultiTarget", message: "StructTarget has been renamed to MultiTarget in version 8.0.0")
enum StructTarget { }

extension MoyaProvider {
    @available(*, unavailable, renamed: "notifyPluginsOfImpendingStub(for:target:)")
    internal final func notifyPluginsOfImpendingStub(request: URLRequest, target: Target) { fatalError() }
}

extension Response {
    @available(*, unavailable, renamed: "filter(statusCodes:)")
    public func filterStatusCodes(range: ClosedRange<Int>) throws -> Response { fatalError() }

    @available(*, unavailable, renamed: "filter(statusCode:)")
    public func filterStatusCode(code: Int) throws -> Response { fatalError() }
}

extension PluginType {
    @available(*, unavailable, renamed: "willSend(_:)")
    func willSendRequest(request: RequestType, target: TargetType) { fatalError() }

    @available(*, unavailable, renamed: "didReceive(_:)")
    func didReceiveResponse(result: Result<Moya.Response, MoyaError>, target: TargetType) { fatalError() }
}

{'fraction_non_alphanumeric': 0.12804453723034098, 'fraction_numerical': 0.003247506379030387, 'mean_word_length': 6.39622641509434, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 27, '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': '6196003', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1151, 'n_words': 308}