<commit_before>import {Bean, Autowired} from 'ag-grid/main';
import {Utils} from 'ag-grid/main';
import {MD5} from './license/md5';

@Bean('licenseManager')
export class LicenseManager {
    private static RELEASE_INFORMATION:string = 'MTUyMzU0NTI1NDE5Ng==';
    private static licenseKey:string;

    @Autowired('md5') private md5:MD5;

    public validateLicense():void {
        const gridReleaseDate = LicenseManager.getGridReleaseDate();
        let valid: boolean = false;
        let current: boolean = false;
        let expiry: Date = null;

        if (!Utils.missingOrEmpty(LicenseManager.licenseKey) && LicenseManager.licenseKey.length > 32) {
            const {md5, license} = LicenseManager.extractLicenseComponents(LicenseManager.licenseKey);

            if (md5 === this.md5.md5(license)) {

                expiry = LicenseManager.extractExpiry(license);

                if(!isNaN(expiry.getTime())) {
                    valid = true;
                    current = (gridReleaseDate < expiry)
                }
            }<commit_msg>Release 18.0.0 setting new license key<commit_after>import {Bean, Autowired} from 'ag-grid/main';
import {Utils} from 'ag-grid/main';
import {MD5} from './license/md5';

@Bean('licenseManager')
export class LicenseManager {
    private static RELEASE_INFORMATION:string = 'MTUyODcxMzg1Nzk1Mg==';
    private static licenseKey:string;

    @Autowired('md5') private md5:MD5;

    public validateLicense():void {
        const gridReleaseDate = LicenseManager.getGridReleaseDate();
        let valid: boolean = false;
        let current: boolean = false;
        let expiry: Date = null;

        if (!Utils.missingOrEmpty(LicenseManager.licenseKey) && LicenseManager.licenseKey.length > 32) {
            const {md5, license} = LicenseManager.extractLicenseComponents(LicenseManager.licenseKey);

            if (md5 === this.md5.md5(license)) {

                expiry = LicenseManager.extractExpiry(license);

                if(!isNaN(expiry.getTime())) {
                    valid = true;
                    current = (gridReleaseDate < expiry)
                }
            }
{'fraction_non_alphanumeric': 0.11324286382779597, 'fraction_numerical': 0.014506317267197005, 'mean_word_length': 2.6735395189003435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5072023', 'n_tokens_mistral': 629, 'n_tokens_neox': 591, 'n_words': 131}