<commit_before>from .index.drivers.alchemy import SQLAlchemyIndexDriver
from .alias.drivers.alchemy import SQLAlchemyAliasDriver
from .auth.drivers.alchemy import SQLAlchemyAuthDriver

CONFIG = {}

CONFIG['JSONIFY_PRETTYPRINT_REGULAR'] = False
AUTO_MIGRATE = True

CONFIG['INDEX'] = {
    'driver':  SQLAlchemyIndexDriver(
        'sqlite:///index.sq3', auto_migrate=AUTO_MIGRATE,
        index_config={
            'DEFAULT_PREFIX': 'testprefix:', 'ADD_PREFIX_ALIAS': True,
            'PREPEND_PREFIX': True}
    ),
}

CONFIG['ALIAS'] = {
    'driver': SQLAlchemyAliasDriver(
        'sqlite:///alias.sq3', auto_migrate=AUTO_MIGRATE),
}

CONFIG['DIST'] = [
    {
        'name': 'Other IndexD',
        'host': 'https://indexd.example.io/index/',
        'hints': ['.*ROCKS.*'],
        'type': 'indexd',
    },
    {
        'name': 'DX DOI',
        'host': 'https://dx.doi.org/',
        'hints': ['10\..*'],
        'type': 'doi',
    },
    {
        'name': 'DOS System',
        'host': 'https://example.com/api/ga4gh/dos/v1/',
        'hints': [],
        'type': 'dos',
    },
]

AUTH = SQLAlchemyAuthDriver('sqlite:///auth.sq3')

settings = {'config': CONFIG, 'auth': AUTH}

<commit_msg>Hyperlink DOIs to preferred resolver (#142)<commit_after>from .index.drivers.alchemy import SQLAlchemyIndexDriver
from .alias.drivers.alchemy import SQLAlchemyAliasDriver
from .auth.drivers.alchemy import SQLAlchemyAuthDriver

CONFIG = {}

CONFIG['JSONIFY_PRETTYPRINT_REGULAR'] = False
AUTO_MIGRATE = True

CONFIG['INDEX'] = {
    'driver':  SQLAlchemyIndexDriver(
        'sqlite:///index.sq3', auto_migrate=AUTO_MIGRATE,
        index_config={
            'DEFAULT_PREFIX': 'testprefix:', 'ADD_PREFIX_ALIAS': True,
            'PREPEND_PREFIX': True}
    ),
}

CONFIG['ALIAS'] = {
    'driver': SQLAlchemyAliasDriver(
        'sqlite:///alias.sq3', auto_migrate=AUTO_MIGRATE),
}

CONFIG['DIST'] = [
    {
        'name': 'Other IndexD',
        'host': 'https://indexd.example.io/index/',
        'hints': ['.*ROCKS.*'],
        'type': 'indexd',
    },
    {
        'name': 'DX DOI',
        'host': 'https://doi.org/',
        'hints': ['10\..*'],
        'type': 'doi',
    },
    {
        'name': 'DOS System',
        'host': 'https://example.com/api/ga4gh/dos/v1/',
        'hints': [],
        'type': 'dos',
    },
]

AUTH = SQLAlchemyAuthDriver('sqlite:///auth.sq3')

settings = {'config': CONFIG, 'auth': AUTH}


{'fraction_non_alphanumeric': 0.18639175257731957, 'fraction_numerical': 0.0070103092783505155, 'mean_word_length': 2.7038167938931297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '743065', 'n_tokens_mistral': 901, 'n_tokens_neox': 866, 'n_words': 141}