IAMJB commited on
Commit
40ac6bc
·
1 Parent(s): 00176e9

github stars

Browse files
Files changed (1) hide show
  1. df/PaperCentral.py +10 -4
df/PaperCentral.py CHANGED
@@ -70,6 +70,7 @@ class PaperCentral:
70
  'upvotes',
71
  'num_comments',
72
  'github',
 
73
  'conference_name',
74
  'id',
75
  'type',
@@ -82,8 +83,8 @@ class PaperCentral:
82
  'date': 'str',
83
  'arxiv_id': 'markdown',
84
  'paper_page': 'markdown',
85
- 'upvotes': 'str',
86
- 'num_comments': 'str',
87
  'num_models': 'markdown',
88
  'num_datasets': 'markdown',
89
  'num_spaces': 'markdown',
@@ -94,6 +95,7 @@ class PaperCentral:
94
  'id': 'str',
95
  'type': 'str',
96
  'authors': 'str',
 
97
  }
98
 
99
  # Mapping for renaming columns for display purposes
@@ -101,7 +103,10 @@ class PaperCentral:
101
  'num_models': 'models',
102
  'num_spaces': 'spaces',
103
  'num_datasets': 'datasets',
104
- 'conference_name': 'venue',
 
 
 
105
  }
106
 
107
  def __init__(self):
@@ -149,7 +154,7 @@ class PaperCentral:
149
  paper_central_df: pd.DataFrame = load_and_process(DATASET_PAPER_CENTRAL)[
150
  ['arxiv_id', 'categories', 'primary_category', 'date', 'upvotes', 'num_comments', 'github', 'num_models',
151
  'num_datasets', 'num_spaces', 'id', 'proceedings', 'type',
152
- 'conference_name', 'title', 'paper_page', 'authors']
153
  ]
154
 
155
  return paper_central_df
@@ -404,6 +409,7 @@ class PaperCentral:
404
  if "github" in hf_options:
405
  if 'github' not in columns_to_show:
406
  columns_to_show.append('github')
 
407
  filtered_df = filtered_df[(filtered_df['github'] != "") & (filtered_df['github'].notnull())]
408
 
409
  # Apply conference filtering
 
70
  'upvotes',
71
  'num_comments',
72
  'github',
73
+ 'github_stars',
74
  'conference_name',
75
  'id',
76
  'type',
 
83
  'date': 'str',
84
  'arxiv_id': 'markdown',
85
  'paper_page': 'markdown',
86
+ 'upvotes': 'number',
87
+ 'num_comments': 'number',
88
  'num_models': 'markdown',
89
  'num_datasets': 'markdown',
90
  'num_spaces': 'markdown',
 
95
  'id': 'str',
96
  'type': 'str',
97
  'authors': 'str',
98
+ 'github_stars': 'number',
99
  }
100
 
101
  # Mapping for renaming columns for display purposes
 
103
  'num_models': 'models',
104
  'num_spaces': 'spaces',
105
  'num_datasets': 'datasets',
106
+ 'github': 'GitHub',
107
+ 'github_stars': 'GitHub⭐',
108
+ 'num_comments': '💬',
109
+ 'upvotes': '👍',
110
  }
111
 
112
  def __init__(self):
 
154
  paper_central_df: pd.DataFrame = load_and_process(DATASET_PAPER_CENTRAL)[
155
  ['arxiv_id', 'categories', 'primary_category', 'date', 'upvotes', 'num_comments', 'github', 'num_models',
156
  'num_datasets', 'num_spaces', 'id', 'proceedings', 'type',
157
+ 'conference_name', 'title', 'paper_page', 'authors', 'github_stars']
158
  ]
159
 
160
  return paper_central_df
 
409
  if "github" in hf_options:
410
  if 'github' not in columns_to_show:
411
  columns_to_show.append('github')
412
+ columns_to_show.append('github_stars')
413
  filtered_df = filtered_df[(filtered_df['github'] != "") & (filtered_df['github'].notnull())]
414
 
415
  # Apply conference filtering