<commit_before>import GCDWebServers

public class SiteServer {
    private lazy var server = GCDWebServer()!
    let directoryPath: String
    let indexFilename: String
    
    public init(directoryPath: String, indexFilename: String = "index.html") {
        self.directoryPath = directoryPath
        self.indexFilename = indexFilename
        
        // log only warnings, errors and exceptions
        GCDWebServer.setLogLevel(3)
        
        server.addGETHandler(forBasePath: "/", directoryPath: directoryPath, indexFilename: indexFilename , cacheAge: 0, allowRangeRequests: true)
    }
    
    deinit {
        server.stop()
    }
    
    open func run() throws {
        try server.run(options: [:])
    }
    
    open func start(port: Int) throws -> (URL, UInt) {
        try server.start(options: [GCDWebServerOption_Port : port])
        return (server.serverURL!, server.port)
    }
}<commit_msg>Add default value of port in SiteServer#start<commit_after>import GCDWebServers

public class SiteServer {
    private lazy var server = GCDWebServer()!
    let directoryPath: String
    let indexFilename: String
    
    public init(directoryPath: String, indexFilename: String = "index.html") {
        self.directoryPath = directoryPath
        self.indexFilename = indexFilename
        
        // log only warnings, errors and exceptions
        GCDWebServer.setLogLevel(3)
        
        server.addGETHandler(forBasePath: "/", directoryPath: directoryPath, indexFilename: indexFilename , cacheAge: 0, allowRangeRequests: true)
    }
    
    deinit {
        server.stop()
    }
    
    open func run() throws {
        try server.run(options: [:])
    }
    
    open func start(port: Int = 0) throws -> (URL, UInt) {
        try server.start(options: [GCDWebServerOption_Port : port])
        return (server.serverURL!, server.port)
    }
}
{'fraction_non_alphanumeric': 0.09314775160599571, 'fraction_numerical': 0.0026766595289079227, 'mean_word_length': 2.6432748538011697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6693797', 'n_tokens_mistral': 531, 'n_tokens_neox': 524, 'n_words': 135}