Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 6 * * 1" # fresh Codeforces ratings for the projection

permissions:
contents: read
Expand All @@ -14,14 +16,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- if: github.event_name != 'pull_request'
run: make ratings
- run: make test
- uses: actions/upload-pages-artifact@v3
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
with:
path: site

deploy:
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
needs: test
runs-on: ubuntu-latest
permissions:
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.PHONY: data serve test
.PHONY: data ratings serve test

data:
python3 scripts/build_data.py
uv run python scripts/build_data.py

ratings:
uv run python scripts/refresh_ratings.py

serve: data
python3 -m http.server 8000 --directory site --bind 127.0.0.1
Expand Down
4 changes: 4 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The results and medals in data/sources/cphof-1999-2025.json were read from the
Competitive Programming Hall of Fame, https://www.cphof.org/, (c) Yury Pisarchyk.
They are not covered by this repository's license.

data/sources/cf-team-ratings-2021-2024.json and wf-2026-field.json were read from team lists posted by
the Codeforces community (sources in each file). cf-ratings.json comes from the public Codeforces API.
They are not covered by this repository's license.

site/vendor/echarts.min.js is Apache ECharts (Apache-2.0).
data/sources/countries-110m.json is world-atlas (ISC), from Natural Earth (public domain).
site/logos holds university logos, not covered by this repository's license. Sources are in
Expand Down
163 changes: 163 additions & 0 deletions data/sources/cf-name-aliases.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"aast": "arab academy",
"aast cairo": "arab academy",
"alex fe": "alexandria university.*engineering|alexandria.*engineering",
"american international university": "american international university",
"arab academy for science technology and maritime transport": "arab academy.*alexandria",
"azhar university": "al azhar",
"beihang university": "beihang",
"beihang unviersity": "beihang",
"belarusian state university of informatics and radioelectronics": "informatics and radio",
"belarusian su": "^belarusian state university$",
"belarusian suir": "belarusian state university of informatics",
"birla institute of technology and science pilani": "birla institute.*pilani|bits pilani(?!.*hyderabad)",
"birla institute of technology and science pilani pilani campus": "birla institute.*pilani|bits pilani(?!.*hyderabad)",
"birzeit university": "birzeit",
"bits hyderabad": "bits pilani hyderabad",
"bits pilani pilani campus": "birla institute.*pilani|bits pilani(?!.*hyderabad)",
"buet": "bangladesh university of engineering",
"charles university in prague": "^charles university",
"cu fcai": "cairo university.*(computers|artificial)",
"da iict": "dhirubhai",
"dhirubhai ambani institute of information and communication technology": "dhirubhai",
"eafit": "eafit",
"ecole normale superieure": "ecole normale superieure",
"escom ipn": "escuela superior de computo",
"fast nuces khi": "nu fast karachi",
"fc unam": "autonoma de mexico.*ciencias|facultad de ciencias.*unam|unam",
"fcai cairo": "cairo university.*(computers|artificial)|faculty of computers.*cairo",
"fcai cairo university": "cairo university.*(computers|artificial)|faculty of computers.*cairo",
"fcen uba": "buenos aires",
"fcis ain shams": "ain shams",
"fcis ain shams university": "ain shams",
"fe alexandria university": "alexandria university",
"georgia tech": "georgia institute of technology",
"giki": "ghulam ishaq",
"guc": "german university in cairo",
"hanyang university": "hanyang",
"harbin institute of technology hit": "^harbin institute of technology",
"harbour space university": "harbour space",
"havana university": "universidad de la habana",
"hiast": "higher institute for applied",
"higher institute of computer science ariana": "higher institute of computer science",
"higher school of economics": "^hse university$",
"hse university": "^hse university$",
"iiit bangalore": "iiit bangalore|international institute of information technology bangalore",
"iiit hyderabad": "iiit hyderabad|international institute of information technology hyderabad",
"iit bhu": "varanasi",
"iit bhu varanasi": "varanasi",
"iit bombay": "bombay",
"iit delhi": "^indian institute of technology delhi",
"iit guwahati": "guwahati",
"iit hyderabad": "indian institute of technology hyderabad|iit hyderabad",
"iit indore": "indore",
"iit ism dhanbad": "dhanbad",
"iit jodhpur": "jodhpur",
"iit kanpur": "kanpur",
"iit kharagpur": "kharagpur",
"iit madras": "madras",
"iit patna": "patna",
"iit roorkee": "roorkee",
"ime": "instituto militar de engenharia",
"innopolis university": "innopolis",
"institute of science tokyo": "tokyo institute of technology|institute of science tokyo",
"instituto militar de engenharia ime": "instituto militar de engenharia",
"international university vnu hcm": "international university.*(vnu|hcm|vietnam)",
"itam": "instituto tecnologico autonomo de mexico|itam",
"itmo university": "^st petersburg itmo",
"izhevsk stu": "izhevsk",
"jadavpur university": "jadavpur",
"jagiellonian university": "jagiellonian",
"kaist": "^kaist$",
"kazan fu": "kazan federal",
"kbtu": "kazakh british",
"mansoura fe": "mansoura",
"massachusetts institute of technology": "massachusetts institute of technology",
"massachusetts institute of technology mit": "massachusetts institute of technology",
"menofia university": "menofia",
"michigan state university": "michigan state",
"middle east technical university": "middle east technical",
"mipt": "moscow institute of physics",
"moscow ipt": "moscow institute of physics",
"moscow su": "moscow state university",
"nanjing university": "^nanjing university$",
"nanjing university nju": "^nanjing university$",
"national chiao tung university": "chiao tung",
"national research nuclear university mephl": "mephi|nuclear",
"national research university higher school of economics": "^hse university$",
"nit trichy": "tiruchirappalli|trichy",
"nnsu": "nizhny novgorod state|lobachevsky",
"northeastern university": "northeastern university",
"nru hse saint petersburg": "st petersburg campus of higher",
"nust misis": "misis",
"nycu": "yang ming chiao tung",
"ruet": "rajshahi",
"saint petersburg state university": "^st petersburg state university$",
"saratov su": "saratov",
"shanghai jiaotong university": "shanghai jiao tong",
"sharif university of technology": "sharif",
"southeast university": "^southeast university",
"spb hse": "st petersburg campus of higher",
"spb itmo": "itmo",
"spb su": "^st petersburg state university$",
"st petersburg su": "^st petersburg state university$",
"suleyman demirel university": "demirel",
"sun yat sen university": "sun yat sen",
"sust": "shahjalal",
"svu qena": "south valley",
"syrian virtual university svu": "syrian virtual",
"technical university munich": "munchen",
"the chinese university of hong kong": "chinese university of hong kong",
"the university of osaka": "^osaka university$",
"tolyatti su": "togliatti|tolyatti",
"uba": "buenos aires.*(fcen|ciencias exactas)",
"uc berkeley": "california berkeley",
"uc irvine": "california irvine",
"uc san diego": "california san diego",
"uchile": "^universidad de chile",
"ucla": "california los angeles",
"udesc": "estado de santa catarina",
"ufba": "federal da bahia",
"ufcg": "campina grande",
"ufmg": "minas gerais",
"ufpe": "pernambuco",
"ufrj": "rio de janeiro",
"ug cimat": "guanajuato",
"uh": "universidad de la habana",
"unb": "brasilia",
"unc": "nacional de cordoba",
"uni fiis": "ingenieria fiis",
"unicamp": "^universidade estadual de campinas",
"universidad de guanajuato cimat": "guanajuato",
"universidad nacional de colombia": "nacional de colombia",
"universidad nacional de ingenieria": "nacional de ingenieria",
"universidad nacional de rosario unr": "nacional de rosario",
"universidad panamericana": "panamericana",
"universidad panamericana bonaterra": "panamericana",
"universidad tecnologica nacional frsf": "tecnologica nacional",
"universidade do estado de santa catarina udesc": "santa catarina",
"universidade federal de goias ufg": "goias",
"universidade federal de minas gerais ufmg": "minas gerais",
"university of california": "california",
"university of california santa barbara": "santa barbara",
"university of electronic science and technology of china": "electronic science and technology",
"university of engineering and technology": "^bangladesh university of engineering",
"university of havana": "universidad de la habana",
"university of illinois urbana champaign": "illinois",
"university of illinois urbanachampaign": "illinois at urbana",
"university of michigan": "university of michigan",
"university of minnesota": "minnesota twin cities",
"university of new south wales": "unsw|new south wales",
"university of vienna": "vienna|wien",
"university of virginia": "university of virginia",
"unlp": "nacional de la plata",
"unr": "^universidad nacional de rosario",
"up bonaterra": "panamericana",
"ural fu": "ural federal",
"ut austin": "texas at austin",
"ut dallas": "texas at dallas",
"uw madison": "wisconsin",
"xi an jiaotong university": "xi an jiaotong",
"yerevan su": "yerevan state",
"zhejiang university": "^zhejiang university$"
}
Loading
Loading