<commit_before>/* eslint-disable func-names no-console */
require('./registerBabel');

import { logInvalidIds, logInvalidRelations,
  validateIdComposition, validateIdLength, validateIdMatch } from './commonValidations';
import coreLessons from '../src/server/models/corelessons.json';
import coreSubjects from '../src/server/models/coresubjects.json';

const assert = require('assert');

/**
 * Check the validity of the corecourses.json file
 */
describe('Validate corelessons.json', () => {
  describe('Validate lesson id length', () => {
    let invalidLessonIds = [];
    afterEach(() => {
      invalidLessonIds = logInvalidIds(invalidLessonIds, 'Lesson id > 16 characters');
    });<commit_msg>Fix describe string to denote corelessons.js instead of corecourses.js<commit_after>/* eslint-disable func-names no-console */
require('./registerBabel');

import { logInvalidIds, logInvalidRelations,
  validateIdComposition, validateIdLength, validateIdMatch } from './commonValidations';
import coreLessons from '../src/server/models/corelessons.json';
import coreSubjects from '../src/server/models/coresubjects.json';

const assert = require('assert');

/**
 * Check the validity of the corelessons.json file
 */
describe('Validate corelessons.json', () => {
  describe('Validate lesson id length', () => {
    let invalidLessonIds = [];
    afterEach(() => {
      invalidLessonIds = logInvalidIds(invalidLessonIds, 'Lesson id > 16 characters');
    });
{'fraction_non_alphanumeric': 0.13982179575051404, 'fraction_numerical': 0.0027416038382453737, 'mean_word_length': 4.863453815261044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6788097', 'n_tokens_mistral': 417, 'n_tokens_neox': 408, 'n_words': 100}