<commit_before># -*- coding: utf-8 -*-
from cli_common.command import run_check
from cli_common.log import get_logger

logger = get_logger(__name__)


def report(artifacts, source_dir=None, service_number=None, commit_sha='unused', token='unused', out_format='coveralls', options=[]):
    cmd = [
      'grcov',
      '-t', out_format,
      '-p', '/home/worker/workspace/build/src/',
    ]

    if 'coveralls' in out_format:
        cmd.extend([
          '--service-name', 'TaskCluster',
          '--commit-sha', commit_sha,
          '--token', token,
          '--service-job-number', '1',
        ])

        if service_number is not None:
            cmd.extend(['--service-number', str(service_number)])

    if source_dir is not None:
        cmd.extend(['-s', source_dir])
        cmd.append('--ignore-not-existing')

    cmd.extend(artifacts)
    cmd.extend(options)<commit_msg>codecoverage/bot: Don't pass the prefix option to grcov, as the prefix is already removed on test machines (#1575)<commit_after># -*- coding: utf-8 -*-
from cli_common.command import run_check
from cli_common.log import get_logger

logger = get_logger(__name__)


def report(artifacts, source_dir=None, service_number=None, commit_sha='unused', token='unused', out_format='coveralls', options=[]):
    cmd = [
      'grcov',
      '-t', out_format,
    ]

    if 'coveralls' in out_format:
        cmd.extend([
          '--service-name', 'TaskCluster',
          '--commit-sha', commit_sha,
          '--token', token,
          '--service-job-number', '1',
        ])

        if service_number is not None:
            cmd.extend(['--service-number', str(service_number)])

    if source_dir is not None:
        cmd.extend(['-s', source_dir])
        cmd.append('--ignore-not-existing')

    cmd.extend(artifacts)
    cmd.extend(options)
{'fraction_non_alphanumeric': 0.15300546448087432, 'fraction_numerical': 0.004371584699453552, 'mean_word_length': 2.7064777327935223, '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': '3426656', 'n_tokens_mistral': 583, 'n_tokens_neox': 570, 'n_words': 128}