Refactor code structure for improved readability and maintainability
All checks were successful
Build and Push Docker Image / docker (push) Successful in 21s

This commit is contained in:
2025-09-04 21:53:54 +02:00
parent 80f8c4ca90
commit 8c5ca0044f
27 changed files with 3398 additions and 326 deletions

View File

@@ -5,10 +5,20 @@ const cases = [
['World Hold On', 'World Hold on (Children of the Sky) [Radio Edit]'],
['Respect', 'Respect (2019 Remaster)'],
['No Woman No Cry', 'No Woman, No Cry (Live)'],
['It\'s My Life', 'It\'s My Life (Single Version)'],
["It's My Life", "It's My Life (Single Version)"],
];
for (const [guess, truth] of cases) {
const r = scoreTitle(guess, truth);
console.log(JSON.stringify({ guess, truth, pass: r.pass, sim: +r.sim.toFixed(3), jac: +r.jac.toFixed(3), g: r.g, t: r.t }));
console.log(
JSON.stringify({
guess,
truth,
pass: r.pass,
sim: +r.sim.toFixed(3),
jac: +r.jac.toFixed(3),
g: r.g,
t: r.t,
})
);
}