cfpq_data.dataset.download_grammars#

download_grammars(template: str, *, graph_name: str | None = None) Path | None[source]#

Download grammars of the given template.

Parameters:
  • template (str) -- The name of the grammar template from the dataset.

  • graph_name (Union[str, None]) -- The name of the specified graph from the dataset or None for downloading example grammars.

Examples

>>> from cfpq_data import *
>>> path = download_grammars("java_points_to", graph_name="avrora")
Returns:

path -- Path to the directory with grammars data or None if there is no such grammars in dataset.

Return type:

Union[Path, None]