{"id":16928973,"url":"https://github.com/peterjclaw/ranker","last_synced_at":"2025-04-13T08:50:51.131Z","repository":{"id":7955744,"uuid":"9351983","full_name":"PeterJCLaw/ranker","owner":"PeterJCLaw","description":"League ranking for arbitrary numbers of competitors.","archived":false,"fork":false,"pushed_at":"2024-03-12T18:03:12.000Z","size":86,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-16T07:01:55.320Z","etag":null,"topics":["league","ranking-algorithm","ranking-system","srcomp"],"latest_commit_sha":null,"homepage":"https://github.com/PeterJCLaw/srcomp/wiki/Component-Overview#ranker","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterJCLaw.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-10T17:42:30.000Z","updated_at":"2022-03-12T14:05:06.000Z","dependencies_parsed_at":"2024-10-13T20:48:18.911Z","dependency_job_id":null,"html_url":"https://github.com/PeterJCLaw/ranker","commit_stats":{"total_commits":127,"total_committers":3,"mean_commits":"42.333333333333336","dds":"0.15748031496062997","last_synced_commit":"77f0915f1cfde5ee8f34c70ab44a34c325df491e"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Franker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Franker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Franker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterJCLaw%2Franker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterJCLaw","download_url":"https://codeload.github.com/PeterJCLaw/ranker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688433,"owners_count":21145763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["league","ranking-algorithm","ranking-system","srcomp"],"created_at":"2024-10-13T20:38:08.813Z","updated_at":"2025-04-13T08:50:51.110Z","avatar_url":"https://github.com/PeterJCLaw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"League Ranker\n=============\n\n|Build Status| |PyPI - Version|\n\nGiven a collection of entrants and their scores, sort them and return their\nranked points.\n\nThe mechanism used to allocate the ranked points is a generalised form of that\nused for the `Student Robotics \u003chttps://www.studentrobotics.org\u003e`__ league\npoints (quote from the SR\n`rulebook \u003chttps://www.studentrobotics.org/docs/rules\u003e`__):\n\n    The team with the **most** game points will be awarded 8 points\n    towards the competition league. The team with the second most will\n    be awarded 6. The team with the third most will be awarded 4 points,\n    and the team with the fewest game points will be awarded 2 points.\n    Teams whose robot was not entered into the round, or who were\n    disqualified from the round, will be awarded no points.\n\n    Tied robots will be awarded the average of the points that their\n    combined positions would be awarded. Thus, three robots tied for\n    first place would receive 6 points each (since this is\n    ``(8+6+4)/3``).\n\nThe ranker supports an arbitrary number of entrants and zones (as long as there\nare fewer entrants than zones) and will return points which follow the pattern\ndescribed above.\n\nThe points for the winning team will be 2 × the number of zones, points for\nsubsequent places reduce by 2 points per place. Ties are resolved as described\nand as a result of the points per place reducing by two, the points for any\nentrant will always be an integer.\n\nIt supports Python 3.7+.\n\nTests\n~~~~~\n\nTests can be run for the current interpreter by running ``./run-tests`` or for\nall supported available interpreters by running ``tox``.\n\n.. |Build Status| image:: https://circleci.com/gh/PeterJCLaw/ranker.svg?style=svg\n   :target: https://circleci.com/gh/PeterJCLaw/ranker\n\n.. |PyPI - Version| image:: https://img.shields.io/pypi/v/league-ranker\n   :target: https://pypi.org/project/league-ranker/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterjclaw%2Franker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterjclaw%2Franker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterjclaw%2Franker/lists"}