# Path: gwsumm/utils.py
# WARNC = r'\033[93m'
# ERRC = r'\033[91m'
# ENDC = r'\033[0m'
# UNSAFE_EVAL_STRS = [r'os\.(?![$\'\" ])', 'shutil', r'\.rm', r'\.mv']
# UNSAFE_EVAL = re.compile(r'(%s)' % '|'.join(UNSAFE_EVAL_STRS))
# OBSERVATORY_MAP = {
#     'G1': 'GEO',
#     'H1': 'LIGO Hanford',
#     'K1': 'KAGRA',
#     'L1': 'LIGO Livingston',
#     'V1': 'Virgo',
# }
# def elapsed_time():
# def vprint(message, verbose=True, stream=sys.stdout, profile=True):
# def mkdir(*paths):
# def nat_sorted(iterable, key=None):
#     def convert(text):
#     def alphanum_key(key):
# def get_odc_bitmask(odcchannel):
# def safe_eval(val, strict=False, globals_=None, locals_=None):
# def get_default_ifo(fqdn=getfqdn()):


from MarkupPy import markup
from gwdetchar.io import html
from ..mode import (Mode, get_mode)
from ..utils import re_cchar
            <div class="container">
            </div>
    """
    out = markup.page()
    out.div(class_='container-fluid', id_='main')
    out.add(str(page))
    out.div.close()
    return out


def state_switcher(states, default=0):
    """Build a state switch button, including all of the given
    states, with the default selected by index
    """
    current, chref = states[default]
    page = markup.page()
    page.ul(class_='nav navbar-nav')
    page.li(class_='nav-item dropdown')
    page.a(str(current), class_='nav-link dropdown-toggle', href='#',
           id_='states', role='button', title='Show/hide state menu',
           **{'data-toggle': 'dropdown'})
    page.div(
        class_='dropdown-menu dropdown-menu-right state-switch shadow',
        id_='statemenu',
    )
    page.h6('Select below to view this page in another state (different '
            'time segments).', class_='dropdown-header')
    page.div('', class_='dropdown-divider')
    for i, (state, href) in enumerate(states):
        page.a(str(state), class_='dropdown-item state', title=str(state),

# Path: gwsumm/utils.py
# WARNC = r'\033[93m'
# ERRC = r'\033[91m'
# ENDC = r'\033[0m'
# UNSAFE_EVAL_STRS = [r'os\.(?![$\'\" ])', 'shutil', r'\.rm', r'\.mv']
# UNSAFE_EVAL = re.compile(r'(%s)' % '|'.join(UNSAFE_EVAL_STRS))
# OBSERVATORY_MAP = {
#     'G1': 'GEO',
#     'H1': 'LIGO Hanford',
#     'K1': 'KAGRA',
#     'L1': 'LIGO Livingston',
#     'V1': 'Virgo',
# }
# def elapsed_time():
# def vprint(message, verbose=True, stream=sys.stdout, profile=True):
# def mkdir(*paths):
# def nat_sorted(iterable, key=None):
#     def convert(text):
#     def alphanum_key(key):
# def get_odc_bitmask(odcchannel):
# def safe_eval(val, strict=False, globals_=None, locals_=None):
# def get_default_ifo(fqdn=getfqdn()):


# Path: gwsumm/html/bootstrap.py
from MarkupPy import markup
from gwdetchar.io import html
from ..mode import (Mode, get_mode)
from ..utils import re_cchar

            <div class="container">
            </div>
    """
    out = markup.page()
    out.div(class_='container-fluid', id_='main')
    out.add(str(page))
    out.div.close()
    return out


def state_switcher(states, default=0):
    """Build a state switch button, including all of the given
    states, with the default selected by index
    """
    current, chref = states[default]
    page = markup.page()
    page.ul(class_='nav navbar-nav')
    page.li(class_='nav-item dropdown')
    page.a(str(current), class_='nav-link dropdown-toggle', href='#',
           id_='states', role='button', title='Show/hide state menu',
           **{'data-toggle': 'dropdown'})
    page.div(
        class_='dropdown-menu dropdown-menu-right state-switch shadow',
        id_='statemenu',
    )
    page.h6('Select below to view this page in another state (different '
            'time segments).', class_='dropdown-header')
    page.div('', class_='dropdown-divider')
    for i, (state, href) in enumerate(states):
        page.a(str(state), class_='dropdown-item state', title=str(state),

               id_='state_%s' % re_cchar.sub('_', str(state)).lower(),