Spaces:
Runtime error
Runtime error
Commit
·
d70837b
1
Parent(s):
76a45e4
fix stereotype scores
Browse files- calculate_personal_scores.py +9 -4
- leaderboard_equipos.csv +7 -7
- leaderboard_personal.csv +26 -27
calculate_personal_scores.py
CHANGED
@@ -76,14 +76,19 @@ def get_user_mapping():
|
|
76 |
if pd.notna(discord) and discord != "NA":
|
77 |
discord_lower = discord.lower()
|
78 |
|
79 |
-
# Map
|
80 |
gmail = row.get(COLUMN_MAP["gmail"], "")
|
81 |
-
if pd.notna(gmail):
|
82 |
email_to_discord[gmail.lower()] = discord_lower
|
83 |
|
|
|
|
|
|
|
|
|
|
|
84 |
# Map hf_username to discord
|
85 |
hf_username = row.get(COLUMN_MAP["hf_username"], "")
|
86 |
-
if pd.notna(hf_username):
|
87 |
hf_to_discord[hf_username.lower()] = discord_lower
|
88 |
|
89 |
return email_to_discord, hf_to_discord
|
@@ -220,7 +225,7 @@ def get_estereotipos_data():
|
|
220 |
|
221 |
return [
|
222 |
{
|
223 |
-
"source": "
|
224 |
"username": get_discord_username(mail),
|
225 |
"count": count,
|
226 |
}
|
|
|
76 |
if pd.notna(discord) and discord != "NA":
|
77 |
discord_lower = discord.lower()
|
78 |
|
79 |
+
# Map gmail to discord
|
80 |
gmail = row.get(COLUMN_MAP["gmail"], "")
|
81 |
+
if pd.notna(gmail) and gmail.strip():
|
82 |
email_to_discord[gmail.lower()] = discord_lower
|
83 |
|
84 |
+
# Map contact_email to discord
|
85 |
+
contact_email = row.get(COLUMN_MAP["contact_email"], "")
|
86 |
+
if pd.notna(contact_email) and contact_email.strip():
|
87 |
+
email_to_discord[contact_email.lower()] = discord_lower
|
88 |
+
|
89 |
# Map hf_username to discord
|
90 |
hf_username = row.get(COLUMN_MAP["hf_username"], "")
|
91 |
+
if pd.notna(hf_username) and hf_username.strip():
|
92 |
hf_to_discord[hf_username.lower()] = discord_lower
|
93 |
|
94 |
return email_to_discord, hf_to_discord
|
|
|
225 |
|
226 |
return [
|
227 |
{
|
228 |
+
"source": "estereotipos",
|
229 |
"username": get_discord_username(mail),
|
230 |
"count": count,
|
231 |
}
|
leaderboard_equipos.csv
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
team_name,discord_1,discord_2,discord_3,discord_4,discord_5,total_arena,ptos_arena,total_blend_es,ptos_blend_es,total_estereotipos,ptos_estereotipos,total_include,ptos_include,ptos_total
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
SabiduriaPopular Castellana,alvaro8gb,enrique.solera.navarro,angustias22,comasberto,,105,1.05,0,0.0,
|
8 |
-
Comida Colombia + Ecuador,pablo.ce,
|
9 |
Equipo LeIA,susanazhou,cosntanzapjeldres,,,,0,0.0,0,0.0,0,0.0,560,1.0,1.0
|
10 |
Refranero Afro-Cubano,rasel3132,bel21093,,,,0,0.0,0,0.0,0,0.0,0,0.0,0.0
|
11 |
PeruWhisper,vandread13,,,,,0,0.0,0,0.0,0,0.0,0,0.0,0.0
|
|
|
1 |
team_name,discord_1,discord_2,discord_3,discord_4,discord_5,total_arena,ptos_arena,total_blend_es,ptos_blend_es,total_estereotipos,ptos_estereotipos,total_include,ptos_include,ptos_total
|
2 |
+
TralaleloTralala-MemeAlign,andres_seba,peroloso,,,,120,1.2,0,0.0,70,0.7,370,1.0,2.9
|
3 |
+
HoCV-COL,dreamripper1,,,,,83,0.83,0,0.0,85,0.85,902,1.0,2.6799999999999997
|
4 |
+
Cresia,roverico,cresia.aillm,alberto.medina,,,140,1.4,0,0.0,1,0.01,303,1.0,2.41
|
5 |
+
IberoTales,mcdaqc,,,,,118,1.18,0,0.0,2,0.02,449,1.0,2.2
|
6 |
+
Think Paraguayo,enpaiva93,luceldasilva,edmenciab,,,93,0.93,0,0.0,3,0.03,502,1.0,1.96
|
7 |
+
SabiduriaPopular Castellana,alvaro8gb,enrique.solera.navarro,angustias22,comasberto,,105,1.05,0,0.0,2,0.02,0,0.0,1.07
|
8 |
+
Comida Colombia + Ecuador,pablo.ce,magodyboybusiness,nestoralarcon.ed,oddyec,,0,0.0,0,0.0,0,0.0,2830,1.0,1.0
|
9 |
Equipo LeIA,susanazhou,cosntanzapjeldres,,,,0,0.0,0,0.0,0,0.0,560,1.0,1.0
|
10 |
Refranero Afro-Cubano,rasel3132,bel21093,,,,0,0.0,0,0.0,0,0.0,0,0.0,0.0
|
11 |
PeruWhisper,vandread13,,,,,0,0.0,0,0.0,0,0.0,0,0.0,0.0
|
leaderboard_personal.csv
CHANGED
@@ -1,41 +1,40 @@
|
|
1 |
Username,Arena,Blend-ES,Estereotipos,INCLUDE
|
2 |
-
roverico,140,0,
|
3 |
steminism,133,0,0,577
|
4 |
-
andres_seba,120,0,
|
5 |
-
mcdaqc,118,0,
|
6 |
-
dreamripper1,83,0,
|
7 |
-
bea esparcia,80,0,0
|
8 |
angustias22,63,0,0,0
|
9 |
henry mantilla,58,0,0,0
|
10 |
fabianpp,50,0,0,372
|
11 |
-
alvaro8gb,42,0,0
|
12 |
-
enpaiva93,40,0,
|
13 |
ghuerta170,35,0,0,353
|
14 |
edmenciab,30,0,0,0
|
15 |
luceldasilva,23,0,0,0
|
16 |
-
adriszmar,22,0,
|
17 |
helenpy,19,0,0,0
|
18 |
danielcavilla,19,0,0,0
|
19 |
gonzalo_40146,8,0,0,0
|
20 |
gonzalo.fuentes,1,0,0,0
|
21 |
gfuentes2000,1,0,0,0
|
22 |
-
|
23 |
-
clauvallory,0,0,0
|
24 |
-
lucase#5596,0,0,0
|
25 |
-
|
26 |
-
da.qc,0,0,0,2
|
27 |
guidoivetta ,0,0,0,393
|
|
|
28 |
jorge-neo,0,0,0,927
|
29 |
-
|
30 |
-
|
31 |
-
mgomez8540,0,0,0,348
|
32 |
gpalomeque,0,0,0,120
|
33 |
conilinguist,0,0,0,300
|
34 |
arri98,0,0,0,598
|
35 |
-
dramos7,0,0,0
|
36 |
-
|
37 |
-
|
38 |
-
jorge.vallego,0,0,0
|
39 |
oscarcumbicus,0,0,0,1280
|
40 |
pablo.ce,0,0,0,2830
|
41 |
rasel,0,0,0,300
|
@@ -44,11 +43,11 @@ bel21093_72376,0,0,0,300
|
|
44 |
godswrath97,0,0,0,561
|
45 |
susanazhou,0,0,0,560
|
46 |
henrymantilla,0,0,0,302
|
47 |
-
neovalleltd,0,0,0
|
48 |
amayuelas,0,0,0,2300
|
49 |
-
elena w.,0,0,0
|
50 |
-
alebravo,0,0,0
|
51 |
-
jedzill4,0,0,0
|
52 |
-
gonznm,0,0,0
|
53 |
-
agumeister,0,0,0
|
54 |
-
alexis_castillo,0,0,0
|
|
|
1 |
Username,Arena,Blend-ES,Estereotipos,INCLUDE
|
2 |
+
roverico,140,0,1,303
|
3 |
steminism,133,0,0,577
|
4 |
+
andres_seba,120,0,70,370
|
5 |
+
mcdaqc,118,0,2,449
|
6 |
+
dreamripper1,83,0,85,902
|
7 |
+
bea esparcia,80,0,126,0
|
8 |
angustias22,63,0,0,0
|
9 |
henry mantilla,58,0,0,0
|
10 |
fabianpp,50,0,0,372
|
11 |
+
alvaro8gb,42,0,2,0
|
12 |
+
enpaiva93,40,0,3,502
|
13 |
ghuerta170,35,0,0,353
|
14 |
edmenciab,30,0,0,0
|
15 |
luceldasilva,23,0,0,0
|
16 |
+
adriszmar,22,0,20,227
|
17 |
helenpy,19,0,0,0
|
18 |
danielcavilla,19,0,0,0
|
19 |
gonzalo_40146,8,0,0,0
|
20 |
gonzalo.fuentes,1,0,0,0
|
21 |
gfuentes2000,1,0,0,0
|
22 |
+
yee51,0,0,1,0
|
23 |
+
clauvallory,0,0,5,0
|
24 |
+
lucase#5596,0,0,3,0
|
25 |
+
xat.,0,0,2,0
|
|
|
26 |
guidoivetta ,0,0,0,393
|
27 |
+
valaery,0,0,1,0
|
28 |
jorge-neo,0,0,0,927
|
29 |
+
freddyalfonsoboulton,0,0,1,0
|
30 |
+
maria isabel ll,0,0,12,0
|
|
|
31 |
gpalomeque,0,0,0,120
|
32 |
conilinguist,0,0,0,300
|
33 |
arri98,0,0,0,598
|
34 |
+
dramos7,0,0,5,0
|
35 |
+
jorgeav,0,0,13,0
|
36 |
+
mgomez8540,0,0,0,348
|
37 |
+
jorge.vallego,0,0,14,0
|
38 |
oscarcumbicus,0,0,0,1280
|
39 |
pablo.ce,0,0,0,2830
|
40 |
rasel,0,0,0,300
|
|
|
43 |
godswrath97,0,0,0,561
|
44 |
susanazhou,0,0,0,560
|
45 |
henrymantilla,0,0,0,302
|
46 |
+
neovalleltd,0,0,122,0
|
47 |
amayuelas,0,0,0,2300
|
48 |
+
elena w.,0,0,57,0
|
49 |
+
alebravo,0,0,30,0
|
50 |
+
jedzill4,0,0,27,0
|
51 |
+
gonznm,0,0,24,0
|
52 |
+
agumeister,0,0,21,0
|
53 |
+
alexis_castillo,0,0,68,0
|