Skip to content

easz/40hSlavery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How a 40-Hour Week is Spent and Rewarded for the Modern Slavery

By visualization of

How to

Generate Your Own Charts (./charts)

  • adapt public configuration config.json
    • data
      • commit_info_csv and commit_files_json point to the files generated by the tool perforce_commit_metrics.py
      • time_tracking_pt points to the Procrastitracker PT database
        • time_tracking_outlook points to exported Outlook Calendar in CSV format (e.g. meetings)
      • monetary_csv points to a CSV data defining reward
    • info for simple personal info
    • options for various chart options
  • Or create a private configuration private.config.json which will be loaded instead of the config.json
    • private.config.json will not be tracked by git be default
    • Any folder named private will also not be tracked by git by default
  • open index.html with browser (local development)

Use Tools to Collect Data (./tools)

  • perforce_commit_metrics.py
    • collect all perforce commits made by a user within a time span
      • $ perforce_commit_metrics.py -u max.mustermann -f @2017/01/01 -t @2017/12/31 -o output
    • generate output
      • output.csv: all perforce changelists with information about affected files (add, delete, edit) and lines (add, delete, change)
      • output.files.json: all committed file paths with affected revision numbers
  • p4metrics.files.merge.py
    • merge files generated by perforce_commit_metrics.py
      • $ p4metrics.files.merge.py -t json *.json
  • p4metrics.files.anonymize.py
    • anonymize the output.files.json generated by perforce_commit_metrics.py

TODO

  • automatic Outlook Calendar export

About

Visualization of code commit history, time tracking and others.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published