h0bb3 / s4rdm3x

https://tobias-dv-lnu.github.io/s4rdm3x/
Other
5 stars 5 forks source link

Add package/folder derived relations between files #25

Open h0bb3 opened 3 years ago

h0bb3 commented 3 years ago

The physical relations between files are actually missing. We could add relations reflecting this i.e:

pysical_horizontal: between files in the same directory pysical_vertical: for files in the same parent-child directory

as folder structure is often an important part of the mapping there is a fair chance that this will improve the performance of both CDA and HuGMe

h0bb3 commented 3 years ago

possibly also add physical_defined_in for c++ like file pairs i.e. .cpp - .h

h0bb3 commented 3 years ago

one should note that such dependencies are not part of the violations computation in for example HuGMe

h0bb3 commented 3 years ago

working on this and results seem promising. Red is original countAttract, green is countAttract with the physical dependencies (file dependencies), blue is naive bayes using CDA, file names and architecture keywords image