CoolFace
Apppublic

huggingface/ai-deadlines

sourceHugging Faceupdated 2d agoView on Hugging Face
781likes
test-conference-loading.js48 linesDownload Raw Back to root
1// Simple test to verify conference loading2import fs from 'fs';3import path from 'path';4 5// Count YAML files in the conferences directory6const conferencesDir = path.join(process.cwd(), 'src/data/conferences');7const yamlFiles = fs.readdirSync(conferencesDir).filter(file => file.endsWith('.yml'));8 9console.log(`Found ${yamlFiles.length} YAML files in conferences directory:`);10yamlFiles.forEach(file => console.log(`  - ${file}`));11 12// Expected conferences (from the directory listing you provided)13const expectedFiles = [14    'aaai.yml', 'aamas.yml', 'acl.yml', 'acm_mm.yml', 'aistats.yml', 'alt.yml',15    'cec.yml', 'chi.yml', 'cikm.yml', 'coling.yml', 'collas.yml', 'colm.yml',16    'colt.yml', 'conll.yml', 'corl.yml', 'cpal.yml', 'cvpr.yml', 'ecai.yml',17    'eccv.yml', 'ecir.yml', 'ecml_pkdd.yml', 'emnlp.yml', 'emnlp_industry_track.yml',18    'emnlp_system_demonstrations_track.yml', 'esann.yml', 'eurographics.yml',19    'fg.yml', 'icann.yml', 'icassp.yml', 'iccv.yml', 'icdar.yml', 'icdm.yml',20    'iclr.yml', 'icml.yml', 'icomp.yml', 'icra.yml', 'ijcai.yml', 'ijcnlp_and_aacl.yml',21    'ijcnn.yml', 'interspeech.yml', 'iros.yml', 'iui.yml', 'kdd.yml', 'ksem.yml',22    'lrec.yml', 'mathai.yml', 'naacl.yml', 'neurips.yml', 'nlbse.yml', 'rlc.yml',23    'rss.yml', 'sgp.yml', 'siggraph.yml', 'uai.yml', 'wacv.yml', 'wsdm.yml', 'www.yml'24];25 26console.log(`\nExpected ${expectedFiles.length} files, found ${yamlFiles.length} files`);27 28if (yamlFiles.length === expectedFiles.length) {29    console.log('✅ All expected conference files are present!');30} else {31    console.log('❌ Mismatch in file count');32    const missing = expectedFiles.filter(file => !yamlFiles.includes(file));33    const extra = yamlFiles.filter(file => !expectedFiles.includes(file));34    35    if (missing.length > 0) {36        console.log('Missing files:', missing);37    }38    if (extra.length > 0) {39        console.log('Extra files:', extra);40    }41}42 43 44 45 46 47 48