{ "cells": [ { "cell_type": "code", "execution_count": 6, "id": "b5a9aa6c", "metadata": {}, "outputs": [], "source": [ "from github import Github\n", "from getpass import getpass\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 3, "id": "88efc658", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Enter access token········\n" ] } ], "source": [ "g = Github(getpass(\"Enter access token\"))" ] }, { "cell_type": "code", "execution_count": 41, "id": "9404d100", "metadata": {}, "outputs": [], "source": [ "def get_candidates():\n", " for result in g.search_code(\"filename:_targets.R extension:.R\"):\n", " yield result.name, result.repository.html_url, result.repository.stargazers_count" ] }, { "cell_type": "code", "execution_count": 42, "id": "3f5ca887", "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame.from_records(\n", " get_candidates()\n", ").rename(\n", " columns = {0: \"filename\", 1: \"repo_url\", 2: \"stars\"}\n", ").query(\n", " \"filename == '_targets.R'\"\n", ").sort_values(\n", " \"stars\", ascending=False\n", ")" ] }, { "cell_type": "code", "execution_count": 43, "id": "8125999b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | repo_url | \n", "stars | \n", "
|---|---|---|
| 2 | \n", "https://github.com/adamaltmejd/covid | \n", "88 | \n", "
| 146 | \n", "https://github.com/robjhyndman/CV | \n", "81 | \n", "
| 590 | \n", "https://github.com/MilesMcBain/tflow | \n", "77 | \n", "
| 564 | \n", "https://github.com/xmarquez/democracyData | \n", "71 | \n", "
| 496 | \n", "https://github.com/wlandau/targets-minimal | \n", "56 | \n", "
| 176 | \n", "https://github.com/InseeFrLab/utilitR | \n", "51 | \n", "
| 15 | \n", "https://github.com/andrewheiss/evalf22.classes.andrewheiss.com | \n", "49 | \n", "
| 97 | \n", "https://github.com/USGS-VIZLAB/chart-challenge-22 | \n", "41 | \n", "
| 261 | \n", "https://github.com/USGS-VIZLAB/chart-challenge-22 | \n", "41 | \n", "
| 223 | \n", "https://github.com/USGS-VIZLAB/chart-challenge-22 | \n", "41 | \n", "
| 112 | \n", "https://github.com/USGS-VIZLAB/chart-challenge-22 | \n", "41 | \n", "
| 274 | \n", "https://github.com/USGS-VIZLAB/chart-challenge-22 | \n", "41 | \n", "
| 681 | \n", "https://github.com/USGS-VIZLAB/chart-challenge-22 | \n", "41 | \n", "
| 348 | \n", "https://github.com/juba/tidyverse | \n", "38 | \n", "
| 253 | \n", "https://github.com/andrewheiss/bayesf22.classes.andrewheiss.com | \n", "36 | \n", "
| 445 | \n", "https://github.com/fdhidalgo/geocode_br_polling_stations | \n", "31 | \n", "
| 315 | \n", "https://github.com/tjmahr/notestar | \n", "29 | \n", "
| 530 | \n", "https://github.com/svmiller/steveproj | \n", "29 | \n", "
| 589 | \n", "https://github.com/nhs-r-community/demos-and-how-tos | \n", "28 | \n", "
| 610 | \n", "https://github.com/nhs-r-community/demos-and-how-tos | \n", "28 | \n", "
| 265 | \n", "https://github.com/noamross/reprotemplate | \n", "25 | \n", "
| 35 | \n", "https://github.com/the-markup/investigation-prediction-bias | \n", "24 | \n", "
| 271 | \n", "https://github.com/andrewheiss/who-cares-about-crackdown | \n", "24 | \n", "
| 521 | \n", "https://github.com/wlandau/targets-stan | \n", "23 | \n", "
| 550 | \n", "https://github.com/ecohealthalliance/container-template | \n", "23 | \n", "
| 447 | \n", "https://github.com/USGS-VIZLAB/flow-tiles | \n", "21 | \n", "
| 480 | \n", "https://github.com/InseeFrLab/lockdown-maps-R | \n", "20 | \n", "
| 45 | \n", "https://github.com/wlandau/targets-four-minutes | \n", "19 | \n", "
| 179 | \n", "https://github.com/goldingn/neuts2efficacy | \n", "18 | \n", "
| 312 | \n", "https://github.com/andrewheiss/evalsp23.classes.andrewheiss.com | \n", "18 | \n", "
| 281 | \n", "https://github.com/ropensci/roweb3 | \n", "16 | \n", "
| 570 | \n", "https://github.com/crsh/reproducible-research-practices-workshop | \n", "16 | \n", "
| 536 | \n", "https://github.com/andrewheiss/nonprofitf22.classes.andrewheiss.com | \n", "15 | \n", "
| 378 | \n", "https://github.com/emptyfield-ds/r_teaching_warehouse | \n", "15 | \n", "
| 69 | \n", "https://github.com/USGS-VIZLAB/viz-scratch | \n", "15 | \n", "
| 219 | \n", "https://github.com/emptyfield-ds/r_teaching_warehouse | \n", "15 | \n", "
| 343 | \n", "https://github.com/wlandau/targetsketch | \n", "14 | \n", "
| 91 | \n", "https://github.com/saturncloud/examples | \n", "14 | \n", "
| 669 | \n", "https://github.com/boyiguo1/Tutorial-Residential_Segregation_Score | \n", "13 | \n", "
| 368 | \n", "https://github.com/databio/unitar | \n", "13 | \n", "
| 557 | \n", "https://github.com/databio/unitar | \n", "13 | \n", "
| 85 | \n", "https://github.com/LungCellAtlas/HLCA_reproducibility | \n", "13 | \n", "
| 302 | \n", "https://github.com/databio/unitar | \n", "13 | \n", "
| 677 | \n", "https://github.com/databio/unitar | \n", "13 | \n", "
| 676 | \n", "https://github.com/databio/unitar | \n", "13 | \n", "
| 282 | \n", "https://github.com/noamross/targets-minio-versioning | \n", "12 | \n", "
| 593 | \n", "https://github.com/sol-eng/targets-deployment-rsc | \n", "11 | \n", "
| 515 | \n", "https://github.com/wlandau/targets-keras | \n", "11 | \n", "
| 357 | \n", "https://github.com/malcolmbarrett/mastering_r_for_epi | \n", "10 | \n", "
| 254 | \n", "https://github.com/r4ds/bookclub-tmwr | \n", "10 | \n", "