<commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from flask_cors import CORS
import os


def init_app(app):
    # Allow specific origins
    origins = os.environ.get('CORS_ORIGINS', '*')

    cors = CORS(origins=origins)
    cors.init_app(app)
    return cors
<commit_msg>releng_common: multiple cors origins<commit_after># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from flask_cors import CORS
import os


cors = CORS()


def init_app(app):
    # Allow specific origins
    origins = os.environ.get('CORS_ORIGINS', '*')
    cors.init_app(app, origins=origins.split(' '))
    return cors

{'fraction_non_alphanumeric': 0.09201213346814964, 'fraction_numerical': 0.008088978766430738, 'mean_word_length': 3.7596153846153846, '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': '2219755', 'n_tokens_mistral': 334, 'n_tokens_neox': 321, 'n_words': 118}