<commit_before>//
//  RGUploadConfig.swift
//  RGNetwork
//
//  Created by Rain on 2021/6/28.
//  Copyright © 2021 Smartech. All rights reserved.
//

import Foundation
import Alamofire

struct RGUploadConfig: RGNetworkConfig {

    let urlString: String
    let method: HTTPMethod
    let headers: HTTPHeaders?
    let timeoutInterval: TimeInterval

}
<commit_msg>feat (RGUploadConfig) : add initializer<commit_after>//
//  RGUploadConfig.swift
//  RGNetwork
//
//  Created by Rain on 2021/6/28.
//  Copyright © 2021 Smartech. All rights reserved.
//

import Foundation
import Alamofire

struct RGUploadConfig: RGNetworkConfig {

    let urlString: String
    let method: HTTPMethod
    let headers: HTTPHeaders?
    let timeoutInterval: TimeInterval


    init(urlString: String,
         method: HTTPMethod = .post,
         headers: HTTPHeaders? = nil,
         timeoutInterval: TimeInterval = 30.0)
    {
        self.urlString          =   urlString
        self.method             =   method
        self.headers            =   headers
        self.timeoutInterval    =   timeoutInterval
    }

}

{'fraction_non_alphanumeric': 0.08340888485947416, 'fraction_numerical': 0.022665457842248413, 'mean_word_length': 2.376146788990826, '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': '1675850', 'n_tokens_mistral': 347, 'n_tokens_neox': 310, 'n_words': 90}