<commit_before>'use strict';

const createContainerHandler = require('./../api/CreateContainer'),
    deleteContainerHandler = require('./../api/DeleteContainer'),
    listBlobsHandler = require('./../api/ListBlobs'),
    setContainerMetadataHandler = require('./../api/SetContainerMetadata'),
    getContainerMetadataHandler = require('./../api/GetContainerMetadata'),
    getContainerPropertiesHandler = require('./../api/GetContainerProperties'),
    env = require('./../env');

/*
 * Route definitions for all operation on the 'Container' resource type.
 * See https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/blob-service-rest-api
 * for details on specification.
 */
module.exports = (app) => {
    app.route(`/${env.emulatedStorageAccountName}/:container`)
        .get((req, res) => {
            const restype = req.query.restype,
                comp = req.query.comp;
            if (restype === 'container' && comp === 'list') {
                listBlobsHandler.process(req, res, req.params.container);
            } else if (restype === 'container' && comp === 'metadata') {
                getContainerMetadataHandler.process(req, res, req.params.container);
            } else if (restype === 'container') {
                getContainerPropertiesHandler.process(req, res, req.params.container);
            }
        })
        .head((req, res) => {
            const restype = req.query.restype,
                comp = req.query.comp;
            if (restype === 'container' && comp === 'metadata') {
                getContainerMetadataHandler.process(req, res, req.params.container);
            } else if (restype === 'container') {
                getContainerPropertiesHandler.process(req, res, req.params.container);
            }
        })
        .put((req, res) => {
            if (req.query.restype === 'container' && req.query.comp === 'metadata') {
                setContainerMetadataHandler.process(req, res, req.params.container);
            }
            else if (req.query.restype === 'container') {
                createContainerHandler.process(req, res, req.params.container);
            }
        })
        .delete((req, res) => {
            if (req.query.restype === 'container') {
                deleteContainerHandler.process(req, res, req.params.container);
            }
        });
}<commit_msg>Pretend to accept container ACL modifications<commit_after>'use strict';

const createContainerHandler = require('./../api/CreateContainer'),
    deleteContainerHandler = require('./../api/DeleteContainer'),
    listBlobsHandler = require('./../api/ListBlobs'),
    setContainerMetadataHandler = require('./../api/SetContainerMetadata'),
    getContainerMetadataHandler = require('./../api/GetContainerMetadata'),
    getContainerPropertiesHandler = require('./../api/GetContainerProperties'),
    env = require('./../env');

/*
 * Route definitions for all operation on the 'Container' resource type.
 * See https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/blob-service-rest-api
 * for details on specification.
 */
module.exports = (app) => {
    app.route(`/${env.emulatedStorageAccountName}/:container`)
        .get((req, res) => {
            const restype = req.query.restype,
                comp = req.query.comp;
            if (restype === 'container' && comp === 'list') {
                listBlobsHandler.process(req, res, req.params.container);
            } else if (restype === 'container' && comp === 'metadata') {
                getContainerMetadataHandler.process(req, res, req.params.container);
            } else if (restype === 'container') {
                getContainerPropertiesHandler.process(req, res, req.params.container);
            }
        })
        .head((req, res) => {
            const restype = req.query.restype,
                comp = req.query.comp;
            if (restype === 'container' && comp === 'metadata') {
                getContainerMetadataHandler.process(req, res, req.params.container);
            } else if (restype === 'container') {
                getContainerPropertiesHandler.process(req, res, req.params.container);
            }
        })
        .put((req, res) => {
            if (req.query.restype === 'container' && req.query.comp === 'metadata') {
                setContainerMetadataHandler.process(req, res, req.params.container);
            }
            else if (req.query.restype === 'container' && req.query.comp === 'acl') {
                // Not fully supported, but that's no reason to fail!
                res.send();
            }
            else if (req.query.restype === 'container') {
                createContainerHandler.process(req, res, req.params.container);
            }
        })
        .delete((req, res) => {
            if (req.query.restype === 'container') {
                deleteContainerHandler.process(req, res, req.params.container);
            }
        });
}
{'fraction_non_alphanumeric': 0.1524979854955681, 'fraction_numerical': 0.0, 'mean_word_length': 2.2303188028627194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4123928', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1273, 'n_words': 249}