<commit_before>(function(){
    "use strict";

    var contentTypes = {},
        ct = require("../../entities/contentTypes"),
        Response = require('../helpers/response'),
        Request = require('../helpers/request'),
        request = new Request();

    contentTypes.getById = function (httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.getById(httpRequest.params.id));
    };

    contentTypes.deleteById = function(httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.deleteById(httpRequest.params.id));
    };

    contentTypes.getList = function (httpRequest, httpResponse){
        var limit = request.getListPageSize(httpRequest),
            skip = request.getListSkipSize(httpRequest);

        new Response(httpResponse).writeFromPromise(ct.list({ limit: limit, skip: skip }));
    };

    contentTypes.create = function(httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.create(httpRequest.body));
    };

    contentTypes.update = function(httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.update(httpRequest.body));
    };

    module.exports = contentTypes;
})();<commit_msg>Updated the module to use the bridgetown response.<commit_after>(function(){
    "use strict";

    var contentTypes = {},
        ct = require("../../entities/contentTypes"),
        Response = require('bridgetown-api').Response,
        Request = require('../helpers/request'),
        request = new Request();

    contentTypes.getById = function (httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.getById(httpRequest.params.id));
    };

    contentTypes.deleteById = function(httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.deleteById(httpRequest.params.id));
    };

    contentTypes.getList = function (httpRequest, httpResponse){
        var limit = request.getListPageSize(httpRequest),
            skip = request.getListSkipSize(httpRequest);

        new Response(httpResponse).writeFromPromise(ct.list({ limit: limit, skip: skip }));
    };

    contentTypes.create = function(httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.create(httpRequest.body));
    };

    contentTypes.update = function(httpRequest, httpResponse){
        new Response(httpResponse).writeFromPromise(ct.update(httpRequest.body));
    };

    module.exports = contentTypes;
})();
{'fraction_non_alphanumeric': 0.13186372745490982, 'fraction_numerical': 0.0, 'mean_word_length': 3.682926829268293, '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': '1184776', 'n_tokens_mistral': 655, 'n_tokens_neox': 643, 'n_words': 111}