transform_dependencies_to_sdsmj: Transform parsed dependencies into a structural dsm.json...

View source: R/dv8.R

transform_dependencies_to_sdsmjR Documentation

Transform parsed dependencies into a structural dsm.json file.

Description

Converts table of dependencies from parse_dependencies into an *-sdsm.json. In the sdsm.json, the Variables are all files/methods or any variables under analysis (rows/columns in dependency matrix) and the Cells (matrix cell) contain all the relations of variable (src & dest) pairs.

Usage

transform_dependencies_to_sdsmj(
  project_dependencies,
  sdsmj_path,
  is_sorted = FALSE
)

Arguments

project_dependencies

A parsed depends project by parse_dependencies.

sdsmj_path

the path to save the structural dsm (*-sdsm.json).

is_sorted

whether to sort the variables (filenames) in the sdsm.json file (optional).

See Also

parse_dependencies to get a table of parsed dependencies needed as input into transform_dependencies_to_sdsmj, transform_gitlog_to_hdsmj to perform a similar transformation into a *-dsm.json using a gitlog, transform_temporal_gitlog_to_adsmj to perform a similar transformation into a *-dsm.json using a temporal gitlog, graph_to_dsmj to generate a *-dsm.json file.

Other edgelists: transform_commit_message_id_to_network(), transform_cve_cwe_file_to_network(), transform_dependencies_to_network(), transform_gitlog_to_bipartite_network(), transform_gitlog_to_entity_bipartite_network(), transform_gitlog_to_entity_temporal_network(), transform_gitlog_to_hdsmj(), transform_gitlog_to_temporal_network(), transform_reply_to_bipartite_network(), transform_temporal_gitlog_to_adsmj(), transform_understand_dependencies_to_network()

Other dv8: dependencies_to_sdsmj(), dv8_clsxb_to_clsxj(), dv8_clsxj_to_clsxb(), dv8_depends_to_sdsmj(), dv8_dsmj_to_dsmb(), dv8_hdsmb_sdsmb_to_mdsmb(), dv8_mdsmb_to_flaws(), gitlog_to_hdsmj(), graph_to_dsmj(), parse_dv8_architectural_flaws(), parse_dv8_clusters(), transform_gitlog_to_hdsmj(), transform_temporal_gitlog_to_adsmj()


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.