<commit_before>from ceph_deploy.util import paths
from ceph_deploy.util.wrappers import check_call
from ceph_deploy.util.context import remote


def ceph_version(conn, logger):
    """
    Log the remote ceph-version by calling `ceph --version`
    """
    return check_call(conn, logger, ['ceph', '--version'])


def which_service(conn, logger):
    """
    Attempt to find the right `service` executable location as it
    might not be in the path for the user executing the remote
    calls
    """
    locations = ['/sbin/service', '/usr/sbin/service']
    for location in locations:
        if conn.modules.os.path.exists(location):
            return location


def mon_create(distro, logger, args, monitor_keyring, hostname):
    logger.debug('remote hostname: %s' % hostname)
    path = paths.mon.path(args.cluster, hostname)
    done_path = paths.mon.done(args.cluster, hostname)
    init_path = paths.mon.init(args.cluster, hostname, 'sysvinit')
<commit_msg>add log statements to which_service<commit_after>from ceph_deploy.util import paths
from ceph_deploy.util.wrappers import check_call
from ceph_deploy.util.context import remote


def ceph_version(conn, logger):
    """
    Log the remote ceph-version by calling `ceph --version`
    """
    return check_call(conn, logger, ['ceph', '--version'])


def which_service(conn, logger):
    """
    Attempt to find the right `service` executable location as it
    might not be in the path for the user executing the remote
    calls
    """
    logger.info('locating `service` executable...')
    locations = ['/sbin/service', '/usr/sbin/service']
    for location in locations:
        if conn.modules.os.path.exists(location):
            logger.info('found `service` executable: %s' % location)
            return location
    logger.error('could not find `service` executable')


def mon_create(distro, logger, args, monitor_keyring, hostname):
    logger.debug('remote hostname: %s' % hostname)
    path = paths.mon.path(args.cluster, hostname)
    done_path = paths.mon.done(args.cluster, hostname)
    init_path = paths.mon.init(args.cluster, hostname, 'sysvinit')

{'fraction_non_alphanumeric': 0.11381733021077284, 'fraction_numerical': 0.0, 'mean_word_length': 3.613390928725702, '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': '7361700', 'n_tokens_mistral': 656, 'n_tokens_neox': 638, 'n_words': 187}