<commit_before># -*- coding: utf-8 -*-
# License AGPLv3 (https://www.gnu.org/licenses/agpl-3.0-standalone.html)
from __future__ import absolute_import, print_function

import configparser
import os

CREDENTIALS_FILE = 'oca.cfg'


def init_config():
    config = configparser.ConfigParser()
    config.add_section("GitHub")
    config.set("GitHub", "username", "")
    config.set("GitHub", "token", "")
    config.add_section("odoo")
    config.set("odoo", "username", "")
    config.set("odoo", "password", "")
    config.add_section("apps.odoo.com")
    config.set("apps.odoo.com", "username", "")
    config.set("apps.odoo.com", "password", "")
    config.set(
        "apps.odoo.com", "chromedriver_path",
        "/usr/lib/chromium-browser/chromedriver",
    )
    write_config(config)


def read_config():
    if not os.path.exists(CREDENTIALS_FILE):
        init_config()
    config = configparser.ConfigParser()
    config.read(CREDENTIALS_FILE)
    return config


def write_config(config):
    with open(CREDENTIALS_FILE, 'w') as fd:
        config.write(fd)


NOT_ADDONS = {
    '.github',
    'ansible-odoo',
    'connector-magento-php-extension',
    'contribute-md-template',
    'maintainer-quality-tools',
    'maintainer-tools',
    'oca-addons-repo-template',
    'oca-custom',
    'oca-decorators',
    'oca-github-bot',
    'oca-weblate-deployment',
    'OCB',
    'odoo-community.org',
    'odoo-module-migrator',
    'odoo-sentinel',
    'odoo-sphinx-autodoc',
    'odoorpc',
    'OpenUpgrade',
    'openupgradelib',
    'pylint-odoo',
}


MAIN_BRANCHES = (
    '6.1',
    '7.0',
    '8.0',
    '9.0',
    '10.0',
    '11.0',
    '12.0',
    '13.0',
    '14.0',
)
<commit_msg>Add 15.0 to main branches<commit_after># -*- coding: utf-8 -*-
# License AGPLv3 (https://www.gnu.org/licenses/agpl-3.0-standalone.html)
from __future__ import absolute_import, print_function

import configparser
import os

CREDENTIALS_FILE = 'oca.cfg'


def init_config():
    config = configparser.ConfigParser()
    config.add_section("GitHub")
    config.set("GitHub", "username", "")
    config.set("GitHub", "token", "")
    config.add_section("odoo")
    config.set("odoo", "username", "")
    config.set("odoo", "password", "")
    config.add_section("apps.odoo.com")
    config.set("apps.odoo.com", "username", "")
    config.set("apps.odoo.com", "password", "")
    config.set(
        "apps.odoo.com", "chromedriver_path",
        "/usr/lib/chromium-browser/chromedriver",
    )
    write_config(config)


def read_config():
    if not os.path.exists(CREDENTIALS_FILE):
        init_config()
    config = configparser.ConfigParser()
    config.read(CREDENTIALS_FILE)
    return config


def write_config(config):
    with open(CREDENTIALS_FILE, 'w') as fd:
        config.write(fd)


NOT_ADDONS = {
    '.github',
    'ansible-odoo',
    'connector-magento-php-extension',
    'contribute-md-template',
    'maintainer-quality-tools',
    'maintainer-tools',
    'oca-addons-repo-template',
    'oca-custom',
    'oca-decorators',
    'oca-github-bot',
    'oca-weblate-deployment',
    'OCB',
    'odoo-community.org',
    'odoo-module-migrator',
    'odoo-sentinel',
    'odoo-sphinx-autodoc',
    'odoorpc',
    'OpenUpgrade',
    'openupgradelib',
    'pylint-odoo',
}


MAIN_BRANCHES = (
    '6.1',
    '7.0',
    '8.0',
    '9.0',
    '10.0',
    '11.0',
    '12.0',
    '13.0',
    '14.0',
    '15.0',
)

{'fraction_non_alphanumeric': 0.17934464599180808, 'fraction_numerical': 0.017554125219426564, 'mean_word_length': 2.984848484848485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6388370', 'n_tokens_mistral': 1327, 'n_tokens_neox': 1285, 'n_words': 187}