mariagrandury commited on
Commit
a3d9457
·
1 Parent(s): 377b868

update arena scores

Browse files
calculate_personal_scores.py CHANGED
@@ -237,24 +237,28 @@ def get_estereotipos_data():
237
 
238
 
239
  def get_arena_data():
240
- """Get arena data from JSON."""
241
- json_path = os.path.join(DATA_DIR, "arena.json")
242
- if not os.path.exists(json_path):
243
  return []
244
 
245
  try:
246
- with open(json_path, "r", encoding="utf-8") as f:
247
- arena_data = json.load(f)
 
 
 
 
248
 
249
  user_counts = defaultdict(int)
250
- for conversations in arena_data.values():
251
- for conversation in conversations:
252
- if username := conversation.get("username"):
253
- user_counts[username.lower()] += 1
254
 
255
  return [
256
- {"source": "arena", "username": get_discord_username(mail), "count": count}
257
- for mail, count in user_counts.items()
258
  ]
259
  except Exception as e:
260
  print(f"Error loading arena data: {e}")
 
237
 
238
 
239
  def get_arena_data():
240
+ """Get arena data from CSV."""
241
+ csv_path = os.path.join(DATA_DIR, "arena_data_cruzada.csv")
242
+ if not os.path.exists(csv_path):
243
  return []
244
 
245
  try:
246
+ df = pd.read_csv(csv_path)
247
+
248
+ # Check if username column exists
249
+ if "username" not in df.columns:
250
+ print("Error: 'username' column not found in arena_data_cruzada.csv")
251
+ return []
252
 
253
  user_counts = defaultdict(int)
254
+ for _, row in df.iterrows():
255
+ username = row.get("username", "")
256
+ if pd.notna(username) and username.strip():
257
+ user_counts[username.lower()] += 1
258
 
259
  return [
260
+ {"source": "arena", "username": get_discord_username(email), "count": count}
261
+ for email, count in user_counts.items()
262
  ]
263
  except Exception as e:
264
  print(f"Error loading arena data: {e}")
leaderboard_equipos.csv ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ Think Paraguayo,enpaiva93,luceldasilva,edmenciab,,,195,1.95,0,0.0,3,0.03,502,1.0,2.98
3
+ TralaleloTralala-MemeAlign,andres_seba,peroloso,,,,120,1.2,0,0.0,70,0.7,370,1.0,2.9
4
+ HoCV-COL,dreamripper1,,,,,83,0.83,0,0.0,85,0.85,902,1.0,2.6799999999999997
5
+ Cresia,roverico,cresia.aillm,alberto.medina,,,164,1.64,0,0.0,1,0.01,303,1.0,2.65
6
+ Comida Colombia + Ecuador,pablo.ce,magodyboybusiness,nestoralarcon.ed,oddyec,,153,1.53,0,0.0,0,0.0,2830,1.0,2.5300000000000002
7
+ IberoTales,mcdaqc,,,,,118,1.18,0,0.0,2,0.02,449,1.0,2.2
8
+ Equipo LeIA,susanazhou,cosntanzapjeldres,,,,111,1.11,0,0.0,0,0.0,560,1.0,2.1100000000000003
9
+ Refranero Afro-Cubano,rasel3132,bel21093,,,,636,2.0,0,0.0,0,0.0,0,0.0,2.0
10
+ SabiduriaPopular Castellana,alvaro8gb,enrique.solera.navarro,angustias22,comasberto,,105,1.05,0,0.0,2,0.02,0,0.0,1.07
11
+ PeruWhisper,vandread13,,,,,0,0.0,0,0.0,0,0.0,0,0.0,0.0
12
+ Falsos_Amigos,yeisonm3011,erick bustamante,dinho9779,,,0,0.0,0,0.0,0,0.0,0,0.0,0.0
13
+ MP,rvk6212,,,,,0,0.0,0,0.0,0,0.0,0,0.0,0.0
leaderboard_personal.csv CHANGED
@@ -1,53 +1,57 @@
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
41
  reewos,0,0,0,608
42
  bel21093_72376,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
 
 
 
 
 
 
 
 
 
 
 
 
1
  Username,Arena,Blend-ES,Estereotipos,INCLUDE
2
+ rasel3132,430,0,0,0
3
+ bel21093,206,0,0,0
4
+ conilinguist,196,0,0,300
5
+ roverico,164,0,1,303
6
+ pablo.ce,153,0,0,2830
7
  steminism,133,0,0,577
8
  andres_seba,120,0,70,370
9
  mcdaqc,118,0,2,449
10
+ susanazhou,111,0,0,560
11
+ enpaiva93,107,0,3,502
12
  dreamripper1,83,0,85,902
13
  bea esparcia,80,0,126,0
14
  angustias22,63,0,0,0
15
  henry mantilla,58,0,0,0
16
+ luceldasilva,58,0,0,0
17
  fabianpp,50,0,0,372
18
  alvaro8gb,42,0,2,0
 
19
  ghuerta170,35,0,0,353
20
  edmenciab,30,0,0,0
 
21
  adriszmar,22,0,20,227
22
+ diegoacheve,21,0,0,0
23
  danielcavilla,19,0,0,0
24
+ helenpy,19,0,0,0
25
  gonzalo_40146,8,0,0,0
26
  gonzalo.fuentes,1,0,0,0
27
  gfuentes2000,1,0,0,0
28
+ mariagrandury,1,0,0,0
29
+ elena w.,0,0,57,0
 
 
 
 
 
30
  freddyalfonsoboulton,0,0,1,0
 
 
 
31
  arri98,0,0,0,598
32
+ gpalomeque,0,0,0,120
33
+ guidoivetta ,0,0,0,393
34
+ henrymantilla,0,0,0,302
35
+ godswrath97,0,0,0,561
36
+ jorge-neo,0,0,0,927
37
  mgomez8540,0,0,0,348
 
38
  oscarcumbicus,0,0,0,1280
 
39
  rasel,0,0,0,300
40
  reewos,0,0,0,608
41
  bel21093_72376,0,0,0,300
 
 
 
42
  neovalleltd,0,0,122,0
43
+ yee51,0,0,1,0
44
  amayuelas,0,0,0,2300
45
+ valaery,0,0,1,0
 
 
 
 
46
  alexis_castillo,0,0,68,0
47
+ xat.,0,0,2,0
48
+ lucase#5596,0,0,3,0
49
+ clauvallory,0,0,5,0
50
+ dramos7,0,0,5,0
51
+ maria isabel ll,0,0,12,0
52
+ jorgeav,0,0,13,0
53
+ jorge.vallego,0,0,14,0
54
+ agumeister,0,0,21,0
55
+ gonznm,0,0,24,0
56
+ jedzill4,0,0,27,0
57
+ alebravo,0,0,30,0
leaderboards/leaderboard_arena.csv CHANGED
@@ -1,24 +1,31 @@
1
  Username,Arena
2
- roverico,140
 
 
 
 
3
  steminism,133
4
  andres_seba,120
5
  mcdaqc,118
 
 
6
  dreamripper1,83
7
  bea esparcia,80
8
  angustias22,63
9
  henry mantilla,58
 
10
  fabianpp,50
11
  alvaro8gb,42
12
- enpaiva93,40
13
  ghuerta170,35
14
  edmenciab,30
15
- luceldasilva,23
16
  adriszmar,22
 
17
  danielcavilla,19
18
  helenpy,19
19
  gonzalo_40146,8
20
  gfuentes2000,1
21
  gonzalo.fuentes,1
 
22
  agumeister,0
23
  alebravo,0
24
  alexis_castillo,0
@@ -26,7 +33,6 @@ amayuelas,0
26
  arri98,0
27
  bel21093_72376,0
28
  clauvallory,0
29
- conilinguist,0
30
  dramos7,0
31
  elena w.,0
32
  freddyalfonsoboulton,0
@@ -44,10 +50,8 @@ maria isabel ll,0
44
  mgomez8540,0
45
  neovalleltd,0
46
  oscarcumbicus,0
47
- pablo.ce,0
48
  rasel,0
49
  reewos,0
50
- susanazhou,0
51
  valaery,0
52
  xat.,0
53
  yee51,0
 
1
  Username,Arena
2
+ rasel3132,430
3
+ bel21093,206
4
+ conilinguist,196
5
+ roverico,164
6
+ pablo.ce,153
7
  steminism,133
8
  andres_seba,120
9
  mcdaqc,118
10
+ susanazhou,111
11
+ enpaiva93,107
12
  dreamripper1,83
13
  bea esparcia,80
14
  angustias22,63
15
  henry mantilla,58
16
+ luceldasilva,58
17
  fabianpp,50
18
  alvaro8gb,42
 
19
  ghuerta170,35
20
  edmenciab,30
 
21
  adriszmar,22
22
+ diegoacheve,21
23
  danielcavilla,19
24
  helenpy,19
25
  gonzalo_40146,8
26
  gfuentes2000,1
27
  gonzalo.fuentes,1
28
+ mariagrandury,1
29
  agumeister,0
30
  alebravo,0
31
  alexis_castillo,0
 
33
  arri98,0
34
  bel21093_72376,0
35
  clauvallory,0
 
36
  dramos7,0
37
  elena w.,0
38
  freddyalfonsoboulton,0
 
50
  mgomez8540,0
51
  neovalleltd,0
52
  oscarcumbicus,0
 
53
  rasel,0
54
  reewos,0
 
55
  valaery,0
56
  xat.,0
57
  yee51,0
leaderboards/leaderboard_arena.txt CHANGED
@@ -2,23 +2,30 @@
2
 
3
  | Puesto | Discord ID | Puntuación |
4
  |------|----------|-------|
5
- | 🥇 | roverico | 140 |
6
- | 🥈 | steminism | 133 |
7
- | 🥉 | andres_seba | 120 |
8
- | 4 | mcdaqc | 118 |
9
- | 5 | dreamripper1 | 83 |
10
- | 6 | bea esparcia | 80 |
11
- | 7 | angustias22 | 63 |
12
- | 8 | henry mantilla | 58 |
13
- | 9 | fabianpp | 50 |
14
- | 10 | alvaro8gb | 42 |
15
- | 11 | enpaiva93 | 40 |
16
- | 12 | ghuerta170 | 35 |
17
- | 13 | edmenciab | 30 |
18
- | 14 | luceldasilva | 23 |
19
- | 15 | adriszmar | 22 |
20
- | 16 | danielcavilla | 19 |
21
- | 17 | helenpy | 19 |
22
- | 18 | gonzalo_40146 | 8 |
23
- | 19 | gfuentes2000 | 1 |
24
- | 20 | gonzalo.fuentes | 1 |
 
 
 
 
 
 
 
 
2
 
3
  | Puesto | Discord ID | Puntuación |
4
  |------|----------|-------|
5
+ | 🥇 | rasel3132 | 430 |
6
+ | 🥈 | bel21093 | 206 |
7
+ | 🥉 | conilinguist | 196 |
8
+ | 4 | roverico | 164 |
9
+ | 5 | pablo.ce | 153 |
10
+ | 6 | steminism | 133 |
11
+ | 7 | andres_seba | 120 |
12
+ | 8 | mcdaqc | 118 |
13
+ | 9 | susanazhou | 111 |
14
+ | 10 | enpaiva93 | 107 |
15
+ | 11 | dreamripper1 | 83 |
16
+ | 12 | bea esparcia | 80 |
17
+ | 13 | angustias22 | 63 |
18
+ | 14 | henry mantilla | 58 |
19
+ | 15 | luceldasilva | 58 |
20
+ | 16 | fabianpp | 50 |
21
+ | 17 | alvaro8gb | 42 |
22
+ | 18 | ghuerta170 | 35 |
23
+ | 19 | edmenciab | 30 |
24
+ | 20 | adriszmar | 22 |
25
+ | 21 | diegoacheve | 21 |
26
+ | 22 | danielcavilla | 19 |
27
+ | 23 | helenpy | 19 |
28
+ | 24 | gonzalo_40146 | 8 |
29
+ | 25 | gfuentes2000 | 1 |
30
+ | 26 | gonzalo.fuentes | 1 |
31
+ | 27 | mariagrandury | 1 |
leaderboards/leaderboard_blend_es.csv CHANGED
@@ -9,10 +9,12 @@ andres_seba,0
9
  angustias22,0
10
  arri98,0
11
  bea esparcia,0
 
12
  bel21093_72376,0
13
  clauvallory,0
14
  conilinguist,0
15
  danielcavilla,0
 
16
  dramos7,0
17
  dreamripper1,0
18
  edmenciab,0
@@ -38,12 +40,14 @@ jorgeav,0
38
  lucase#5596,0
39
  luceldasilva,0
40
  maria isabel ll,0
 
41
  mcdaqc,0
42
  mgomez8540,0
43
  neovalleltd,0
44
  oscarcumbicus,0
45
  pablo.ce,0
46
  rasel,0
 
47
  reewos,0
48
  roverico,0
49
  steminism,0
 
9
  angustias22,0
10
  arri98,0
11
  bea esparcia,0
12
+ bel21093,0
13
  bel21093_72376,0
14
  clauvallory,0
15
  conilinguist,0
16
  danielcavilla,0
17
+ diegoacheve,0
18
  dramos7,0
19
  dreamripper1,0
20
  edmenciab,0
 
40
  lucase#5596,0
41
  luceldasilva,0
42
  maria isabel ll,0
43
+ mariagrandury,0
44
  mcdaqc,0
45
  mgomez8540,0
46
  neovalleltd,0
47
  oscarcumbicus,0
48
  pablo.ce,0
49
  rasel,0
50
+ rasel3132,0
51
  reewos,0
52
  roverico,0
53
  steminism,0
leaderboards/leaderboard_estereotipos.csv CHANGED
@@ -27,9 +27,11 @@ yee51,1
27
  amayuelas,0
28
  angustias22,0
29
  arri98,0
 
30
  bel21093_72376,0
31
  conilinguist,0
32
  danielcavilla,0
 
33
  edmenciab,0
34
  fabianpp,0
35
  gfuentes2000,0
@@ -44,10 +46,12 @@ henry mantilla,0
44
  henrymantilla,0
45
  jorge-neo,0
46
  luceldasilva,0
 
47
  mgomez8540,0
48
  oscarcumbicus,0
49
  pablo.ce,0
50
  rasel,0
 
51
  reewos,0
52
  steminism,0
53
  susanazhou,0
 
27
  amayuelas,0
28
  angustias22,0
29
  arri98,0
30
+ bel21093,0
31
  bel21093_72376,0
32
  conilinguist,0
33
  danielcavilla,0
34
+ diegoacheve,0
35
  edmenciab,0
36
  fabianpp,0
37
  gfuentes2000,0
 
46
  henrymantilla,0
47
  jorge-neo,0
48
  luceldasilva,0
49
+ mariagrandury,0
50
  mgomez8540,0
51
  oscarcumbicus,0
52
  pablo.ce,0
53
  rasel,0
54
+ rasel3132,0
55
  reewos,0
56
  steminism,0
57
  susanazhou,0
leaderboards/leaderboard_include.csv CHANGED
@@ -29,8 +29,10 @@ alexis_castillo,0
29
  alvaro8gb,0
30
  angustias22,0
31
  bea esparcia,0
 
32
  clauvallory,0
33
  danielcavilla,0
 
34
  dramos7,0
35
  edmenciab,0
36
  elena w.,0
@@ -47,7 +49,9 @@ jorgeav,0
47
  lucase#5596,0
48
  luceldasilva,0
49
  maria isabel ll,0
 
50
  neovalleltd,0
 
51
  valaery,0
52
  xat.,0
53
  yee51,0
 
29
  alvaro8gb,0
30
  angustias22,0
31
  bea esparcia,0
32
+ bel21093,0
33
  clauvallory,0
34
  danielcavilla,0
35
+ diegoacheve,0
36
  dramos7,0
37
  edmenciab,0
38
  elena w.,0
 
49
  lucase#5596,0
50
  luceldasilva,0
51
  maria isabel ll,0
52
+ mariagrandury,0
53
  neovalleltd,0
54
+ rasel3132,0
55
  valaery,0
56
  xat.,0
57
  yee51,0