<commit_before>import logging
import platform
import sys

import linux


log = logging.getLogger(__name__)


def detect_init(*args, **kwargs):
    """ Detect the service manager running on this box
        args/kwargs match those of service.Service
    :return: The apropriate Service object for this system
    """
    detected_os = platform.system()
    if detected_os == 'Linux':
        supported_linux_flavors = ['Ubuntu', 'debian']
        flavor = platform.linux_distribution()[0]
        if flavor not in supported_linux_flavors:
            log.warn('{0} is not a support Linux distribution'.format(flavor))
        return detect_linux_init(*args, **kwargs)
    else:<commit_msg>Compare flavors as lower case<commit_after>import logging
import platform
import sys

import linux


log = logging.getLogger(__name__)


def detect_init(*args, **kwargs):
    """ Detect the service manager running on this box
        args/kwargs match those of service.Service
    :return: The apropriate Service object for this system
    """
    detected_os = platform.system()
    if detected_os == 'Linux':
        supported_linux_flavors = ['ubuntu', 'debian']
        flavor = platform.linux_distribution()[0]
        if flavor.lower() not in supported_linux_flavors:
            log.warn('{0} is not a support Linux distribution'.format(flavor))
        return detect_linux_init(*args, **kwargs)
    else:
{'fraction_non_alphanumeric': 0.095, 'fraction_numerical': 0.002857142857142857, 'mean_word_length': 3.461783439490446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '228297', 'n_tokens_mistral': 392, 'n_tokens_neox': 377, 'n_words': 123}