{"size": 236, "ext": "js", "max_stars_repo_path": "lib/pages/Game/utils/getDirection.js", "max_stars_repo_name": "9dots/artbot", "max_stars_repo_stars_event_min_datetime": "2017-03-14T17:42:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-16T21:22:19.000Z", "max_issues_repo_path": "lib/pages/Game/utils/getDirection.js", "max_issues_repo_name": "9dots/artbot", "max_issues_repo_issues_event_min_datetime": "2017-02-10T01:53:33.000Z", "max_issues_repo_issues_event_max_datetime": "2018-05-31T18:31:48.000Z", "max_forks_repo_path": "lib/pages/Game/utils/getDirection.js", "max_forks_repo_name": "9dots/artbot", "max_forks_repo_forks_event_min_datetime": "2017-04-28T18:56:22.000Z", "max_forks_repo_forks_event_max_datetime": "2017-10-06T19:02:40.000Z"}
{"max_stars_count": 19, "max_issues_count": 412, "max_forks_count": 2, "avg_line_length": 21.4545454545, "max_line_length": 49, "alphanum_fraction": 0.5847457627}
function getRotation (rot) {
  const circles = Math.floor(Math.abs(rot) / 360)
  if (rot < 0) {
    return rot + (360 * (circles + 1))
  } else {
    return rot - (360 * circles)
  }
}

export default rot => (getRotation(rot) / 90) % 4
