tim-stephenson / OpenWPM-Data-Analytics

GNU General Public License v3.0
2 stars 0 forks source link

Code documentation #11

Open ndanger000 opened 1 year ago

ndanger000 commented 1 year ago

Please document functions, classes, etc. This code is part of your thesis, and is likely to live on past your thesis submission. So I need to be able to read it and be confident that it is correct. And I can't be confident it is correct if I don't know what it is supposed to be doing :smile:

ndanner-wesleyancs commented 1 year ago

@tim-stephenson

This is getting better (as of 0eec442719c79110e1dccac52bcae3e499138dcf), but could still use a bit of work. Remember, the point of documenting a function is to provide the client with enough information that they can use the result without looking at the implementation.

So, e.g., consider the documentation you have for analyzers.analyzer.Analyzer.get_analysis_results: "get the analysis results." I know it returns a List [ Tuple[str, str]]. But what does an item (s, t) in that list represent? I suspect you need something like: