<commit_before>//
//  Routes.swift
//  staffDirectory
//
//  Created by <NAME> on 2017-02-20.
//  Copyright (C) 2017 PerfectlySoft, Inc.
//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Perfect.org open source project
//
// Copyright (c) 2015 - 2016 PerfectlySoft Inc. and the Perfect project authors
// Licensed under Apache License v2.0
//
// See http://perfect.org/licensing.html for license information
//
//===----------------------------------------------------------------------===//
//
//  Modified by Clingon: https://github.com/iamjono/clingon
//
import PerfectHTTPServer

func mainRoutes() -> [[String: Any]] {
    var routes: [[String: Any]] = [[String: Any]]()
    routes.append(["method":"get", "uri":"/**", "handler":PerfectHTTPServer.HTTPHandler.staticFiles, "documentRoot":"./webroot","allowResponseFilters":true])

    /// A sample comment for API docs
    routes.append(["method":"get", "uri":"/api/v1/person", "handler":Handlers.personGet])

    /// A sample comment for API docs
    routes.append(["method":"get", "uri":"/api/v1/person/{id}", "handler":Handlers.personGet])

    /// A sample comment for API docs
    routes.append(["method":"post", "uri":"/api/v1/person", "handler":Handlers.personCreate])

    /// A sample comment for API docs
    routes.append(["method":"patch", "uri":"/api/v1/person/{id}", "handler":Handlers.personUpdate])

    /// A sample comment for API docs
    routes.append(["method":"delete", "uri":"/api/v1/person/{id}", "handler":Handlers.personDelete])

    return routes
}<commit_msg>updating doc comments<commit_after>//
//  Routes.swift
//  staffDirectory
//
//  Created by <NAME> on 2017-02-20.
//  Copyright (C) 2017 PerfectlySoft, Inc.
//
//===----------------------------------------------------------------------===//
//
// This source file is part of the Perfect.org open source project
//
// Copyright (c) 2015 - 2016 PerfectlySoft Inc. and the Perfect project authors
// Licensed under Apache License v2.0
//
// See http://perfect.org/licensing.html for license information
//
//===----------------------------------------------------------------------===//
//
//  Modified by Clingon: https://github.com/iamjono/clingon
//
import PerfectHTTPServer

func mainRoutes() -> [[String: Any]] {
    var routes: [[String: Any]] = [[String: Any]]()
    routes.append(["method":"get", "uri":"/**", "handler":PerfectHTTPServer.HTTPHandler.staticFiles, "documentRoot":"./webroot","allowResponseFilters":true])

    /// List all records
    routes.append(["method":"get", "uri":"/api/v1/person", "handler":Handlers.personGet])

    /// Return specified detail record
    routes.append(["method":"get", "uri":"/api/v1/person/{id}", "handler":Handlers.personGet])

    /// Create new record
    routes.append(["method":"post", "uri":"/api/v1/person", "handler":Handlers.personCreate])

    /// Update specified record
    routes.append(["method":"patch", "uri":"/api/v1/person/{id}", "handler":Handlers.personUpdate])

    /// Delete specified record
    routes.append(["method":"delete", "uri":"/api/v1/person/{id}", "handler":Handlers.personDelete])

    return routes
}
{'fraction_non_alphanumeric': 0.2715894868585732, 'fraction_numerical': 0.016896120150187734, 'mean_word_length': 2.540420819490587, 'pattern_counts': {'":': 40, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4548316', 'n_tokens_mistral': 955, 'n_tokens_neox': 910, 'n_words': 212}