-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_claude_event.js
More file actions
64 lines (55 loc) · 1.97 KB
/
Copy pathcheck_claude_event.js
File metadata and controls
64 lines (55 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
const sqlite3 = require('sqlite3').verbose();
const path = require('path');
const dbPath = path.join(__dirname, 'ufc_database.sqlite');
const db = new sqlite3.Database(dbPath);
const eventId = 20713; // The event being queried
console.log(`\n=== Checking Claude predictions for event_id ${eventId} ===\n`);
// First check what predictions exist for this event
db.all(`
SELECT
event_id,
model_used,
card_type,
created_at,
LENGTH(prediction_data) as data_size
FROM stored_predictions
WHERE event_id = ?
ORDER BY model_used, card_type
`, [eventId], (err, rows) => {
if (err) {
console.error('Error:', err);
db.close();
return;
}
console.log(`Found ${rows.length} predictions for event ${eventId}:`);
rows.forEach(row => {
console.log(` Model: "${row.model_used}", Card: "${row.card_type}", Created: ${row.created_at}`);
});
// Now check if there's a Claude prediction for a different event_id
console.log('\n=== Checking for Claude predictions in nearby events ===\n');
db.all(`
SELECT DISTINCT
sp.event_id,
e.Event as event_name,
sp.model_used,
COUNT(*) as prediction_count
FROM stored_predictions sp
JOIN events e ON sp.event_id = e.event_id
WHERE e.Event LIKE '%Walker%Zhang%'
OR e.Event LIKE '%Zhang%Walker%'
GROUP BY sp.event_id, e.Event, sp.model_used
ORDER BY sp.event_id, sp.model_used
`, [], (err, rows) => {
if (err) {
console.error('Error:', err);
db.close();
return;
}
console.log('Walker vs Zhang events and their predictions:');
rows.forEach(row => {
console.log(` Event ID: ${row.event_id}, Name: "${row.event_name}"`);
console.log(` Model: "${row.model_used}", Count: ${row.prediction_count}`);
});
db.close();
});
});