:mod:`lookout.style.format.benchmarks.expected_vnodes_number` ============================================================= .. py:module:: lookout.style.format.benchmarks.expected_vnodes_number .. autoapi-nested-parse:: Utility to workaround https://github.com/src-d/style-analyzer/issues/557. Module Contents --------------- .. data:: docker_client .. data:: bblfsh_name :annotation: = expected_vnodes_bblfshd .. function:: _stop_bblfshd() .. function:: _restart_bblfshd(first_run:bool=False) .. function:: get_vnodes_number(repository:str, from_commit:str, to_commit:str, context:AnalyzerContextManager, bblfsh:Optional[str]) Calculate the number of expected vnodes number for a repository. :param repository: URL of repository. :param from_commit: Hash of the base commit. :param to_commit: Hash of the head commit. :param context: LookoutSDK instance to query analyzer. :param bblfsh: Babelfish server address to use. Specify None to use the default value. :return: expected vnodes number for a repository. .. function:: calc_expected_vnodes_number_entry(input:str, output:str, runs:int) Entry point for `python -m lookout.style.format calc-expected-support` command. :param input: сsv file with repositories for quality report. Should contain url, to and from columns. :param output: Path to a output csv file. :param runs: Repeat number to ensure the result correctness.