# Path: munin/easy.py
# class EasySession(Session):
#     @staticmethod
#     def from_name(name='EasySession'):
#         return Session.from_name(name)
# 
#     def __init__(self, name='EasySession', disabled_attrs=None):
# 
#         mask = {
#             'artist': pairup(
#                 ArtistNormalizeProvider(compress=True),
#                 None,
#                 0.5,
#             ),
#             'album': pairup(
#                 AlbumNormalizeProvider(compress=True),
#                 None,
#                 0.5,
#             ),
#             'title': pairup(
#                 TitleNormalizeProvider(compress=False) | StemProvider(),
#                 LevenshteinDistance(),
#                 1,
#             ),
#             'date': pairup(
#                 DateProvider(),
#                 DateDistance(),
#                 2
#             ),
#             'bpm': pairup(
#                 BPMCachedProvider(),
#                 BPMDistance(),
#                 3
#             ),
#             'lyrics': pairup(
#                 KeywordsProvider(),
#                 KeywordsDistance(),
#                 3
#             ),
#             'rating': pairup(
#                 None,
#                 RatingDistance(),
#                 2
#             ),
#             'genre': pairup(
#                 GenreTreeProvider(),
#                 GenreTreeAvgDistance(),
#                 4
#             ),
#             'moodbar': pairup(
#                 MoodbarAudioFileProvider(),
#                 MoodbarDistance(),
#                 5
#             )
#         }
# 
#         if not check_for_moodbar():
#             logging.warning('Disabling moodbar attr, no binary found in PATH.')
#             del mask['moodbar']
# 
#         if not check_for_bpmtools():
#             logging.warning("Disabling bpm attr, no binary found in PATH.")
#             del mask['bpm']
# 
#         for disabled_attr in disabled_attrs or []:
#             try:
#                 del mask[disabled_attr]
#             except KeyError:
#                 pass
# 
#         Session.__init__(self, name, mask)


import sys
from munin.easy import EasySession



MY_DATABASE = [
    # Artist:            Album:               Title:             Genre:
    ('Akrea'          , 'Lebenslinie'      , 'Trugbild'       , 'death metal'),
    ('Vogelfrey'      , 'Wiegenfest'       , 'Heldentod'      , 'folk metal'),
    ('Letzte Instanz' , 'Götter auf Abruf' , 'Salve te'       , 'folk rock'),
    ('Debauchery'     , 'Continue to Kill' , 'Apostle of War' , 'brutal death')
]



# Path: munin/easy.py
# class EasySession(Session):
#     @staticmethod
#     def from_name(name='EasySession'):
#         return Session.from_name(name)
# 
#     def __init__(self, name='EasySession', disabled_attrs=None):
# 
#         mask = {
#             'artist': pairup(
#                 ArtistNormalizeProvider(compress=True),
#                 None,
#                 0.5,
#             ),
#             'album': pairup(
#                 AlbumNormalizeProvider(compress=True),
#                 None,
#                 0.5,
#             ),
#             'title': pairup(
#                 TitleNormalizeProvider(compress=False) | StemProvider(),
#                 LevenshteinDistance(),
#                 1,
#             ),
#             'date': pairup(
#                 DateProvider(),
#                 DateDistance(),
#                 2
#             ),
#             'bpm': pairup(
#                 BPMCachedProvider(),
#                 BPMDistance(),
#                 3
#             ),
#             'lyrics': pairup(
#                 KeywordsProvider(),
#                 KeywordsDistance(),
#                 3
#             ),
#             'rating': pairup(
#                 None,
#                 RatingDistance(),
#                 2
#             ),
#             'genre': pairup(
#                 GenreTreeProvider(),
#                 GenreTreeAvgDistance(),
#                 4
#             ),
#             'moodbar': pairup(
#                 MoodbarAudioFileProvider(),
#                 MoodbarDistance(),
#                 5
#             )
#         }
# 
#         if not check_for_moodbar():
#             logging.warning('Disabling moodbar attr, no binary found in PATH.')
#             del mask['moodbar']
# 
#         if not check_for_bpmtools():
#             logging.warning("Disabling bpm attr, no binary found in PATH.")
#             del mask['bpm']
# 
#         for disabled_attr in disabled_attrs or []:
#             try:
#                 del mask[disabled_attr]
#             except KeyError:
#                 pass
# 
#         Session.__init__(self, name, mask)


# Path: examples/minimal.py
import sys
from munin.easy import EasySession




MY_DATABASE = [
    # Artist:            Album:               Title:             Genre:
    ('Akrea'          , 'Lebenslinie'      , 'Trugbild'       , 'death metal'),
    ('Vogelfrey'      , 'Wiegenfest'       , 'Heldentod'      , 'folk metal'),
    ('Letzte Instanz' , 'Götter auf Abruf' , 'Salve te'       , 'folk rock'),
    ('Debauchery'     , 'Continue to Kill' , 'Apostle of War' , 'brutal death')
]



session = EasySession()