Skip to content

Commit

Permalink
Merge pull request #346 from georgetown-cset/233-5-year-total-rank
Browse files Browse the repository at this point in the history
Move derived metrics to preprocessing script
  • Loading branch information
brianlove authored May 17, 2024
2 parents be1368a + d46bcd0 commit c1cf2bc
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 38 deletions.
2 changes: 1 addition & 1 deletion web/gui-v2/src/static_data/data.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/gui-v2/src/static_data/overall_data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"years": [2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023], "startArticleYear": 2019, "endArticleYear": 2022, "startPatentYear": 2017, "endPatentYear": 2020, "groups": {"sp500": {"cset_id": 1000500, "name": "S&P 500", "articles": {"all_publications": {"total": 25213, "counts": [2219, 2244, 2276, 2335, 2335, 2401, 2531, 2606, 2474, 1850, 1941]}, "ai_publications": {"total": 82, "counts": [4, 4, 4, 5, 6, 8, 10, 13, 13, 9, 7]}, "ai_publications_growth": {"total": -4, "counts": []}, "highly_cited_ai_pubs": {"total": 24, "counts": [1, 1, 1, 2, 2, 3, 4, 4, 4, 2, 1]}, "ai_pubs_top_conf": {"total": 36, "counts": [1, 1, 2, 2, 3, 4, 5, 5, 7, 3, 1]}, "ai_citation_counts": {"total": 4419, "counts": [45, 65, 89, 123, 177, 284, 425, 601, 782, 854, 973]}, "cv_citation_counts": {"total": 2184, "counts": [18, 27, 37, 51, 81, 140, 219, 298, 388, 428, 498]}, "nlp_citation_counts": {"total": 814, "counts": [8, 13, 18, 29, 39, 61, 84, 112, 137, 145, 168]}, "robotics_citation_counts": {"total": 159, "counts": [3, 4, 5, 6, 7, 10, 14, 19, 25, 30, 36]}, "cv_publications": {"total": 23, "counts": [1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 2]}, "nlp_publications": {"total": 16, "counts": [1, 1, 1, 1, 1, 2, 2, 3, 3, 1, 1]}, "robotics_publications": {"total": 6, "counts": [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]}, "ai_citations_per_article": {"total": 12, "counts": [1, 2, 2, 3, 4, 5, 7, 9, 12, 20, 38]}}, "patents": {"ai_patents": {"total": 77, "counts": [2, 3, 4, 6, 9, 12, 13, 14, 13, 2, 0]}, "ai_patents_growth": {"total": 7, "counts": []}, "ai_patents_grants": {"total": 44, "counts": []}, "all_patents": {"total": 1274, "counts": [153, 146, 146, 147, 144, 137, 133, 126, 118, 22, 1]}, "Physical_Sciences_and_Engineering": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Life_Sciences": {"total": 6, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Security__eg_cybersecurity": {"total": 5, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Transportation": {"total": 7, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}, "Industrial_and_Manufacturing": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Education": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Document_Mgt_and_Publishing": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Military": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Agricultural": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computing_in_Government": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Personal_Devices_and_Computing": {"total": 44, "counts": [1, 1, 2, 3, 5, 7, 8, 8, 7, 1, 0]}, "Banking_and_Finance": {"total": 4, "counts": [0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0]}, "Telecommunications": {"total": 18, "counts": [0, 1, 1, 1, 2, 3, 3, 3, 3, 0, 0]}, "Networks__eg_social_IOT_etc": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Business": {"total": 11, "counts": [0, 0, 1, 1, 2, 2, 2, 2, 1, 0, 0]}, "Energy_Management": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Entertainment": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Nanotechnology": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Semiconductors": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Language_Processing": {"total": 2, "counts": [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0]}, "Speech_Processing": {"total": 4, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Knowledge_Representation": {"total": 8, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}, "Planning_and_Scheduling": {"total": 7, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}, "Control": {"total": 9, "counts": [0, 0, 0, 1, 1, 2, 2, 1, 1, 0, 0]}, "Distributed_AI": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Robotics": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computer_Vision": {"total": 14, "counts": [0, 0, 1, 1, 2, 3, 2, 2, 2, 0, 0]}, "Analytics_and_Algorithms": {"total": 6, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Measuring_and_Testing": {"total": 6, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}}, "other_metrics": {"tt1_jobs": {"total": 3361, "counts": null}, "ai_jobs": {"total": 302, "counts": null}}}, "global500": {"cset_id": 1000501, "name": "Fortune Global 500", "articles": {"all_publications": {"total": 66619, "counts": [5694, 5746, 5811, 5992, 6063, 6314, 6690, 6903, 6744, 5181, 5481]}, "ai_publications": {"total": 236, "counts": [10, 11, 11, 13, 15, 21, 29, 35, 39, 28, 25]}, "ai_publications_growth": {"total": 3, "counts": []}, "highly_cited_ai_pubs": {"total": 56, "counts": [2, 2, 3, 4, 5, 6, 8, 9, 9, 5, 2]}, "ai_pubs_top_conf": {"total": 83, "counts": [3, 3, 4, 4, 6, 9, 13, 13, 17, 8, 4]}, "ai_citation_counts": {"total": 9723, "counts": [104, 149, 202, 275, 391, 618, 927, 1304, 1707, 1885, 2161]}, "cv_citation_counts": {"total": 4714, "counts": [43, 62, 84, 113, 174, 295, 459, 632, 835, 932, 1086]}, "nlp_citation_counts": {"total": 1794, "counts": [18, 27, 40, 62, 83, 132, 185, 247, 303, 325, 371]}, "robotics_citation_counts": {"total": 451, "counts": [9, 12, 15, 18, 23, 29, 40, 53, 71, 83, 99]}, "cv_publications": {"total": 68, "counts": [3, 3, 4, 4, 4, 6, 8, 9, 11, 9, 8]}, "nlp_publications": {"total": 41, "counts": [2, 2, 2, 2, 3, 4, 6, 7, 8, 4, 2]}, "robotics_publications": {"total": 24, "counts": [1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3]}, "ai_citations_per_article": {"total": 24, "counts": [3, 5, 5, 6, 9, 12, 15, 19, 25, 39, 65]}}, "patents": {"ai_patents": {"total": 268, "counts": [5, 7, 9, 15, 25, 37, 47, 51, 52, 20, 0]}, "ai_patents_growth": {"total": 35, "counts": []}, "ai_patents_grants": {"total": 123, "counts": []}, "all_patents": {"total": 6704, "counts": [677, 683, 696, 713, 719, 733, 753, 737, 699, 287, 7]}, "Physical_Sciences_and_Engineering": {"total": 6, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Life_Sciences": {"total": 17, "counts": [0, 1, 1, 1, 2, 3, 3, 3, 3, 0, 0]}, "Security__eg_cybersecurity": {"total": 14, "counts": [0, 0, 0, 1, 1, 2, 2, 3, 3, 1, 0]}, "Transportation": {"total": 25, "counts": [0, 1, 1, 2, 4, 5, 5, 4, 3, 1, 0]}, "Industrial_and_Manufacturing": {"total": 9, "counts": [0, 0, 0, 0, 1, 1, 2, 2, 1, 0, 0]}, "Education": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Document_Mgt_and_Publishing": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Military": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Agricultural": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computing_in_Government": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Personal_Devices_and_Computing": {"total": 135, "counts": [2, 3, 4, 8, 13, 19, 25, 27, 26, 8, 0]}, "Banking_and_Finance": {"total": 13, "counts": [0, 0, 0, 1, 1, 2, 2, 2, 3, 2, 0]}, "Telecommunications": {"total": 51, "counts": [1, 1, 2, 3, 6, 8, 9, 10, 9, 2, 0]}, "Networks__eg_social_IOT_etc": {"total": 4, "counts": [0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0]}, "Business": {"total": 37, "counts": [1, 1, 1, 3, 4, 5, 6, 7, 7, 3, 0]}, "Energy_Management": {"total": 15, "counts": [0, 0, 0, 1, 1, 2, 2, 3, 3, 2, 0]}, "Entertainment": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]}, "Nanotechnology": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Semiconductors": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Language_Processing": {"total": 5, "counts": [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0]}, "Speech_Processing": {"total": 14, "counts": [0, 0, 0, 1, 2, 2, 3, 3, 2, 1, 0]}, "Knowledge_Representation": {"total": 18, "counts": [1, 1, 1, 2, 3, 3, 3, 3, 2, 0, 0]}, "Planning_and_Scheduling": {"total": 25, "counts": [1, 1, 1, 2, 3, 3, 4, 5, 5, 3, 0]}, "Control": {"total": 30, "counts": [1, 1, 1, 3, 5, 6, 6, 4, 3, 1, 0]}, "Distributed_AI": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Robotics": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computer_Vision": {"total": 45, "counts": [1, 1, 1, 3, 6, 8, 7, 8, 8, 2, 0]}, "Analytics_and_Algorithms": {"total": 19, "counts": [0, 0, 1, 1, 1, 2, 3, 4, 4, 1, 0]}, "Measuring_and_Testing": {"total": 21, "counts": [0, 0, 1, 2, 2, 3, 4, 4, 3, 1, 0]}}, "other_metrics": {"tt1_jobs": {"total": 6200, "counts": null}, "ai_jobs": {"total": 583, "counts": null}}}}, "groupIdOffset": 1000000}
{"years": [2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023], "startArticleYear": 2019, "endArticleYear": 2022, "startPatentYear": 2017, "endPatentYear": 2020, "groups": {"sp500": {"cset_id": 1000500, "name": "S&P 500", "articles": {"all_publications": {"total": 25213, "counts": [2219, 2244, 2276, 2335, 2335, 2401, 2531, 2606, 2474, 1850, 1941]}, "ai_publications": {"total": 82, "counts": [4, 4, 4, 5, 6, 8, 10, 13, 13, 9, 7]}, "ai_publications_growth": {"total": -4, "counts": []}, "highly_cited_ai_pubs": {"total": 24, "counts": [1, 1, 1, 2, 2, 3, 4, 4, 4, 2, 1]}, "ai_pubs_top_conf": {"total": 36, "counts": [1, 1, 2, 2, 3, 4, 5, 5, 7, 3, 1]}, "ai_citation_counts": {"total": 4419, "counts": [45, 65, 89, 123, 177, 284, 425, 601, 782, 854, 973]}, "cv_citation_counts": {"total": 2184, "counts": [18, 27, 37, 51, 81, 140, 219, 298, 388, 428, 498]}, "nlp_citation_counts": {"total": 814, "counts": [8, 13, 18, 29, 39, 61, 84, 112, 137, 145, 168]}, "robotics_citation_counts": {"total": 159, "counts": [3, 4, 5, 6, 7, 10, 14, 19, 25, 30, 36]}, "cv_publications": {"total": 23, "counts": [1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 2]}, "nlp_publications": {"total": 16, "counts": [1, 1, 1, 1, 1, 2, 2, 3, 3, 1, 1]}, "robotics_publications": {"total": 6, "counts": [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]}, "ai_citations_per_article": {"total": 12, "counts": [1, 2, 2, 3, 4, 5, 7, 9, 12, 20, 38]}, "all_pubs_5yr": {"total": 11862, "counts": []}, "ai_pubs_percent": {"total": 1, "counts": []}, "ai_pubs_last_full_year": {"total": 9, "counts": []}}, "patents": {"ai_patents": {"total": 77, "counts": [2, 3, 4, 6, 9, 12, 13, 14, 13, 2, 0]}, "ai_patents_growth": {"total": 7, "counts": []}, "ai_patents_grants": {"total": 44, "counts": []}, "all_patents": {"total": 1274, "counts": [153, 146, 146, 147, 144, 137, 133, 126, 118, 22, 1]}, "Physical_Sciences_and_Engineering": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Life_Sciences": {"total": 6, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Security__eg_cybersecurity": {"total": 5, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Transportation": {"total": 7, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}, "Industrial_and_Manufacturing": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Education": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Document_Mgt_and_Publishing": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Military": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Agricultural": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computing_in_Government": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Personal_Devices_and_Computing": {"total": 44, "counts": [1, 1, 2, 3, 5, 7, 8, 8, 7, 1, 0]}, "Banking_and_Finance": {"total": 4, "counts": [0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0]}, "Telecommunications": {"total": 18, "counts": [0, 1, 1, 1, 2, 3, 3, 3, 3, 0, 0]}, "Networks__eg_social_IOT_etc": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Business": {"total": 11, "counts": [0, 0, 1, 1, 2, 2, 2, 2, 1, 0, 0]}, "Energy_Management": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Entertainment": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Nanotechnology": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Semiconductors": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Language_Processing": {"total": 2, "counts": [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0]}, "Speech_Processing": {"total": 4, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Knowledge_Representation": {"total": 8, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}, "Planning_and_Scheduling": {"total": 7, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}, "Control": {"total": 9, "counts": [0, 0, 0, 1, 1, 2, 2, 1, 1, 0, 0]}, "Distributed_AI": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Robotics": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computer_Vision": {"total": 14, "counts": [0, 0, 1, 1, 2, 3, 2, 2, 2, 0, 0]}, "Analytics_and_Algorithms": {"total": 6, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Measuring_and_Testing": {"total": 6, "counts": [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0]}, "all_patents_5yr": {"total": 688, "counts": []}, "ai_patents_percent": {"total": 5, "counts": []}}, "other_metrics": {"tt1_jobs": {"total": 3361, "counts": null}, "ai_jobs": {"total": 302, "counts": null}}}, "global500": {"cset_id": 1000501, "name": "Fortune Global 500", "articles": {"all_publications": {"total": 66619, "counts": [5694, 5746, 5811, 5992, 6063, 6314, 6690, 6903, 6744, 5181, 5481]}, "ai_publications": {"total": 236, "counts": [10, 11, 11, 13, 15, 21, 29, 35, 39, 28, 25]}, "ai_publications_growth": {"total": 3, "counts": []}, "highly_cited_ai_pubs": {"total": 56, "counts": [2, 2, 3, 4, 5, 6, 8, 9, 9, 5, 2]}, "ai_pubs_top_conf": {"total": 83, "counts": [3, 3, 4, 4, 6, 9, 13, 13, 17, 8, 4]}, "ai_citation_counts": {"total": 9723, "counts": [104, 149, 202, 275, 391, 618, 927, 1304, 1707, 1885, 2161]}, "cv_citation_counts": {"total": 4714, "counts": [43, 62, 84, 113, 174, 295, 459, 632, 835, 932, 1086]}, "nlp_citation_counts": {"total": 1794, "counts": [18, 27, 40, 62, 83, 132, 185, 247, 303, 325, 371]}, "robotics_citation_counts": {"total": 451, "counts": [9, 12, 15, 18, 23, 29, 40, 53, 71, 83, 99]}, "cv_publications": {"total": 68, "counts": [3, 3, 4, 4, 4, 6, 8, 9, 11, 9, 8]}, "nlp_publications": {"total": 41, "counts": [2, 2, 2, 2, 3, 4, 6, 7, 8, 4, 2]}, "robotics_publications": {"total": 24, "counts": [1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3]}, "ai_citations_per_article": {"total": 24, "counts": [3, 5, 5, 6, 9, 12, 15, 19, 25, 39, 65]}, "all_pubs_5yr": {"total": 31832, "counts": []}, "ai_pubs_percent": {"total": 3, "counts": []}, "ai_pubs_last_full_year": {"total": 28, "counts": []}}, "patents": {"ai_patents": {"total": 268, "counts": [5, 7, 9, 15, 25, 37, 47, 51, 52, 20, 0]}, "ai_patents_growth": {"total": 35, "counts": []}, "ai_patents_grants": {"total": 123, "counts": []}, "all_patents": {"total": 6704, "counts": [677, 683, 696, 713, 719, 733, 753, 737, 699, 287, 7]}, "Physical_Sciences_and_Engineering": {"total": 6, "counts": [0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]}, "Life_Sciences": {"total": 17, "counts": [0, 1, 1, 1, 2, 3, 3, 3, 3, 0, 0]}, "Security__eg_cybersecurity": {"total": 14, "counts": [0, 0, 0, 1, 1, 2, 2, 3, 3, 1, 0]}, "Transportation": {"total": 25, "counts": [0, 1, 1, 2, 4, 5, 5, 4, 3, 1, 0]}, "Industrial_and_Manufacturing": {"total": 9, "counts": [0, 0, 0, 0, 1, 1, 2, 2, 1, 0, 0]}, "Education": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Document_Mgt_and_Publishing": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Military": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Agricultural": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computing_in_Government": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Personal_Devices_and_Computing": {"total": 135, "counts": [2, 3, 4, 8, 13, 19, 25, 27, 26, 8, 0]}, "Banking_and_Finance": {"total": 13, "counts": [0, 0, 0, 1, 1, 2, 2, 2, 3, 2, 0]}, "Telecommunications": {"total": 51, "counts": [1, 1, 2, 3, 6, 8, 9, 10, 9, 2, 0]}, "Networks__eg_social_IOT_etc": {"total": 4, "counts": [0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0]}, "Business": {"total": 37, "counts": [1, 1, 1, 3, 4, 5, 6, 7, 7, 3, 0]}, "Energy_Management": {"total": 15, "counts": [0, 0, 0, 1, 1, 2, 2, 3, 3, 2, 0]}, "Entertainment": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0]}, "Nanotechnology": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Semiconductors": {"total": 2, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Language_Processing": {"total": 5, "counts": [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0]}, "Speech_Processing": {"total": 14, "counts": [0, 0, 0, 1, 2, 2, 3, 3, 2, 1, 0]}, "Knowledge_Representation": {"total": 18, "counts": [1, 1, 1, 2, 3, 3, 3, 3, 2, 0, 0]}, "Planning_and_Scheduling": {"total": 25, "counts": [1, 1, 1, 2, 3, 3, 4, 5, 5, 3, 0]}, "Control": {"total": 30, "counts": [1, 1, 1, 3, 5, 6, 6, 4, 3, 1, 0]}, "Distributed_AI": {"total": 1, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Robotics": {"total": 0, "counts": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}, "Computer_Vision": {"total": 45, "counts": [1, 1, 1, 3, 6, 8, 7, 8, 8, 2, 0]}, "Analytics_and_Algorithms": {"total": 19, "counts": [0, 0, 1, 1, 1, 2, 3, 4, 4, 1, 0]}, "Measuring_and_Testing": {"total": 21, "counts": [0, 0, 1, 2, 2, 3, 4, 4, 3, 1, 0]}, "all_patents_5yr": {"total": 3656, "counts": []}, "ai_patents_percent": {"total": 9, "counts": []}}, "other_metrics": {"tt1_jobs": {"total": 6200, "counts": null}, "ai_jobs": {"total": 583, "counts": null}}}}, "groupIdOffset": 1000000}
39 changes: 7 additions & 32 deletions web/gui-v2/src/static_data/table_columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,8 @@ const columnDefinitions = [
aggregateType: "median",
...generateSliderColDef(
"articles",
"all_publications",
((_val, row) => {
const data = row.articles.all_publications;
return data.counts.slice(startArticleIx, endArticleIx+1).reduce((acc, curr) => acc + curr);
}),
(val, row, extract) => {
return <CellStat data={{ total: extract(val, row) }} />;
},
"all_pubs_5yr"
),
isDerived: true,
tooltip: "Zach_tktk",
},
{
Expand Down Expand Up @@ -238,17 +230,14 @@ const columnDefinitions = [
aggregateType: "median",
...generateSliderColDef(
"articles",
"ai_publications",
((_val, row) => {
return Math.round(row.articles.ai_publications.total / row.articles.all_publications.total * 1000) / 10;
}),
"ai_pubs_percent",
null,
(val, row, extract) => {
const extractedVal = extract(val, row);
const total = extractedVal ? `${extractedVal.toFixed(1)}%` : '---';
return <CellStat data={{ total }} />
},
),
isDerived: true,
isPercent: true,
tooltip: "Zach_tktk",
},
Expand All @@ -271,11 +260,8 @@ const columnDefinitions = [
aggregateType: "median",
...generateSliderColDef(
"articles",
"ai_publications",
((_val, row) => row.articles.ai_publications.counts[endArticleIx]),
(val, row, extract) => <CellStat data={{ total: extract(val, row) }} />,
"ai_pubs_last_full_year",
),
isDerived: true,
tooltip: "Zach_tktk",
},
{
Expand Down Expand Up @@ -313,16 +299,8 @@ const columnDefinitions = [
aggregateType: "median",
...generateSliderColDef(
"patents",
"all_patents",
((_val, row) => {
const data = row.patents.all_patents;
return data.counts.slice(startPatentIx, endPatentIx+1).reduce((acc, curr) => acc + curr);
}),
(val, row, extract) => {
return <CellStat data={{ total: extract(val, row) }} />;
},
"all_patents_5yr"
),
isDerived: true,
tooltip: "Zach_tktk",
},
{
Expand Down Expand Up @@ -357,17 +335,14 @@ const columnDefinitions = [
aggregateType: "median",
...generateSliderColDef(
"patents",
"ai_patents",
((_val, row) => {
return Math.round(row.patents.ai_patents.total / row.patents.all_patents.total * 1000) / 10;
}),
"ai_patents_percent",
null,
(val, row, extract) => {
const extractedVal = extract(val, row);
const total = extractedVal ? `${extractedVal.toFixed(1)}%` : '---';
return <CellStat data={{ total }} />
},
),
isDerived: true,
isPercent: true,
tooltip: "Zach_tktk",
},
Expand Down
Loading

0 comments on commit c1cf2bc

Please sign in to comment.