{"id":23396474,"url":"https://github.com/mneedham/ranking-algorithms","last_synced_at":"2025-04-11T14:42:37.682Z","repository":{"id":10364136,"uuid":"12505179","full_name":"mneedham/ranking-algorithms","owner":"mneedham","description":null,"archived":false,"fork":false,"pushed_at":"2013-09-30T20:24:57.000Z","size":22413,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T10:51:11.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mneedham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-31T12:36:26.000Z","updated_at":"2023-07-25T13:49:19.000Z","dependencies_parsed_at":"2022-09-22T19:01:36.883Z","dependency_job_id":null,"html_url":"https://github.com/mneedham/ranking-algorithms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Franking-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Franking-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Franking-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Franking-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mneedham","download_url":"https://codeload.github.com/mneedham/ranking-algorithms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248420269,"owners_count":21100350,"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":[],"created_at":"2024-12-22T07:35:48.949Z","updated_at":"2025-04-11T14:42:37.665Z","avatar_url":"https://github.com/mneedham.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ranking-algorithms\n\nA clojure library for ranking Champions League football teams based on matches against each other\n\n## Usage\n\n\n### Calculating rankings for multiple seasons\n````clojure\nuser\u003e (def the-matches (ranking-algorithms.uefa/read-from-file \"data/cl-matches-2004-2012.json\"))\n#'user/the-matches        \n\nuser\u003e (ranking-algorithms.core/print-top-teams-without-round 10 the-matches)\n==========================================================\n:rank | :team          | :ranking | :wins | :draw | :loses\n==========================================================\n1     | Barcelona      | 1383.85  | 55    | 25    | 12    \n2     | Man. United    | 1343.54  | 49    | 21    | 14    \n3     | Chelsea        | 1322.0   | 44    | 27    | 17    \n4     | Real Madrid    | 1317.68  | 42    | 14    | 18    \n5     | Bayern         | 1306.18  | 42    | 13    | 19    \n6     | Arsenal        | 1276.83  | 47    | 21    | 18    \n7     | Liverpool      | 1272.52  | 41    | 17    | 17    \n8     | Internazionale | 1260.27  | 36    | 18    | 21    \n9     | Milan          | 1257.63  | 34    | 22    | 18    \n10    | Bordeaux       | 1243.04  | 12    | 3     | 7     \n==========================================================\n````\n\n### Calculating rankings for one season\n````clojure\nuser\u003e (ranking-algorithms.core/print-top-teams 10 (ranking-algorithms.uefa/all-matches 2013))\n========================================================================\n:rank | :team       | :ranking | :round         | :wins | :draw | :loses\n========================================================================\n1     | Bayern      | 1272.74  | Final          | 10    | 1     | 2     \n2     | PSG         | 1230.02  | Quarter-finals | 6     | 3     | 1     \n3     | Dortmund    | 1220.96  | Final          | 7     | 4     | 2     \n4     | Real Madrid | 1220.33  | Semi-finals    | 6     | 3     | 3     \n5     | Porto       | 1216.97  | Round of 16    | 5     | 1     | 2     \n6     | CFR Cluj    | 1216.56  | Group stage    | 7     | 1     | 2     \n7     | Galatasaray | 1215.56  | Quarter-finals | 5     | 2     | 3     \n8     | Juventus    | 1214.0   | Quarter-finals | 5     | 3     | 2     \n9     | Málaga      | 1211.53  | Quarter-finals | 5     | 5     | 2     \n10    | Valencia    | 1211.0   | Round of 16    | 4     | 2     | 2     \n========================================================================\n````\n\n## License\n\nCopyright © 2013 Mark Needham\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Franking-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmneedham%2Franking-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Franking-algorithms/lists"}