lookout.style.format.benchmarks.expected_vnodes_number
¶
Utility to workaround https://github.com/src-d/style-analyzer/issues/557.
Module Contents¶
-
lookout.style.format.benchmarks.expected_vnodes_number.
docker_client
¶
-
lookout.style.format.benchmarks.expected_vnodes_number.
bblfsh_name
= expected_vnodes_bblfshd¶
-
lookout.style.format.benchmarks.expected_vnodes_number.
_stop_bblfshd
()¶
-
lookout.style.format.benchmarks.expected_vnodes_number.
_restart_bblfshd
(first_run:bool=False)¶
-
lookout.style.format.benchmarks.expected_vnodes_number.
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.
Parameters: - repository – URL of repository.
- from_commit – Hash of the base commit.
- to_commit – Hash of the head commit.
- context – LookoutSDK instance to query analyzer.
- bblfsh – Babelfish server address to use. Specify None to use the default value.
Returns: expected vnodes number for a repository.
-
lookout.style.format.benchmarks.expected_vnodes_number.
calc_expected_vnodes_number_entry
(input:str, output:str, runs:int)¶ Entry point for python -m lookout.style.format calc-expected-support command.
Parameters: - input – сsv file with repositories for quality report. Should contain url, to and from columns.
- output – Path to a output csv file.
- runs – Repeat number to ensure the result correctness.