<commit_before>// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
var path = require('path')

module.exports = function (configuration) {
    return function (table) {
        return {
            path: path.normalize(configuration.tableRootPath + '/' + table.name + '/{id}'),
            operations: [
                {
                    method: 'GET',
                    summary: 'Return the record specified by the id parameter from the ' + table.name + ' table',
                    type: table.name,
                    parameters: [
                        {
                            name: "id",
                            description: "The record identifier",
                            required: true,
                            type: "string",
                            paramType: "path"
                        }
                    ]
                }, {
                    method: 'GET',
                    summary: 'Query the ' + table.name + ' table',
                    type: 'object'
                }, {
                    method: 'POST',
                    summary: 'Insert a record into the ' + table.name + ' table',
                    type: table.name
                }, {
                    method: 'PATCH',
                    summary: 'Update a record in the ' + table.name + ' table',
                    type: table.name
                }, {
                    method: 'DELETE',
                    summary: 'Delete a record from the ' + table.name + ' table',
                    type: table.name,
                    parameters: [<commit_msg>spec update<commit_after>// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
var path = require('path')

module.exports = function (configuration) {
    return function (table) {
        return {
            path: path.normalize(configuration.tableRootPath + '/' + table.name + '/{id}'),
            operations: [
                {
                    method: 'GET',
                    summary: 'Return the record specified by the id parameter from the ' + table.name + ' table',
                    type: table.name,
                    parameters: [
                        {
                            name: "id",
                            description: "The record identifier",
                            required: false,
                            type: "string",
                            paramType: "path"
                        }
                    ]
                }, {
                    method: 'POST',
                    summary: 'Insert a record into the ' + table.name + ' table',
                    type: table.name
                }, {
                    method: 'PATCH',
                    summary: 'Update a record in the ' + table.name + ' table',
                    type: table.name
                }, {
                    method: 'DELETE',
                    summary: 'Delete a record from the ' + table.name + ' table',
                    type: table.name,
                    parameters: [
{'fraction_non_alphanumeric': 0.18130395951175945, 'fraction_numerical': 0.0, 'mean_word_length': 0.7853347502656748, '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': '7285093', 'n_tokens_mistral': 692, 'n_tokens_neox': 644, 'n_words': 190}