<commit_before>#!/usr/bin/env python
# encoding: utf-8
#
# conftest.py
#
# Created by <NAME> on 20 Mar 2017.


from collections import OrderedDict
import itertools
import os

import pytest

from marvin import config, marvindb
from marvin.api.api import Interaction
from marvin.tools.cube import Cube
from marvin.tools.modelcube import ModelCube
from marvin.tools.maps import Maps
from marvin.tools.query import Query
from marvin.tools.maps import _get_bintemps, __BINTYPES_MPL4__, __TEMPLATES_KIN_MPL4__
from sdss_access.path import Path
import yaml


# PYTEST MODIFIERS
# -----------------
def pytest_addoption(parser):
    """Add new options"""
    # run slow tests
    parser.addoption('--runslow', action='store_true', default=False, help='Run slow tests.')
    # control releases run
    parser.addoption('--travis-only', action='store_true', default=False, help='Run a Travis only subset')


def pytest_runtest_setup(item):
    """Skip slow tests."""
    if 'slow' in item.keywords and not item.config.getoption('--runslow'):
        pytest.skip('Requires --runslow option to run.')


def pytest_configure(config):
    ''' Runs during configuration of conftest.  Checks and sets a global instance for a
        TravisSubset based on the pytest command line input of --travis-only
    '''
    option = config.getoption('--travis-only')
    global travis
    if option:
        travis = TravisSubset()

# specific release instance
travis = None


class TravisSubset(object):
    def __init__(self):
        self.new_gals = ['8485-1901']
        self.new_releases = ['MPL-5', 'MPL-4']
        self.new_bintypes = ['SPX', 'VOR10', 'NONE', 'STON']
        self.new_templates = ['GAU-MILESHC', 'MILES-THIN']
        self.new_dbs = ['nodb']<commit_msg>going back to MPL5 SPX for travis-only<commit_after>#!/usr/bin/env python
# encoding: utf-8
#
# conftest.py
#
# Created by <NAME> on 20 Mar 2017.


from collections import OrderedDict
import itertools
import os

import pytest

from marvin import config, marvindb
from marvin.api.api import Interaction
from marvin.tools.cube import Cube
from marvin.tools.modelcube import ModelCube
from marvin.tools.maps import Maps
from marvin.tools.query import Query
from marvin.tools.maps import _get_bintemps, __BINTYPES_MPL4__, __TEMPLATES_KIN_MPL4__
from sdss_access.path import Path
import yaml


# PYTEST MODIFIERS
# -----------------
def pytest_addoption(parser):
    """Add new options"""
    # run slow tests
    parser.addoption('--runslow', action='store_true', default=False, help='Run slow tests.')
    # control releases run
    parser.addoption('--travis-only', action='store_true', default=False, help='Run a Travis only subset')


def pytest_runtest_setup(item):
    """Skip slow tests."""
    if 'slow' in item.keywords and not item.config.getoption('--runslow'):
        pytest.skip('Requires --runslow option to run.')


def pytest_configure(config):
    ''' Runs during configuration of conftest.  Checks and sets a global instance for a
        TravisSubset based on the pytest command line input of --travis-only
    '''
    option = config.getoption('--travis-only')
    global travis
    if option:
        travis = TravisSubset()

# specific release instance
travis = None


class TravisSubset(object):
    def __init__(self):
        self.new_gals = ['8485-1901']
        self.new_releases = ['MPL-5']
        self.new_bintypes = ['SPX']  # ['SPX', 'VOR10', 'NONE', 'STON']
        self.new_templates = ['GAU-MILESHC', 'MILES-THIN']
        self.new_dbs = ['nodb']
{'fraction_non_alphanumeric': 0.12241428166619439, 'fraction_numerical': 0.011901388495324454, 'mean_word_length': 3.5666235446313066, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7463714', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1165, 'n_words': 325}