<commit_before>jQuery(document).ready(function() {
    var _ckoFRAMES = window.CKOConfig = window.CKOConfig || {};
    setTimeout(function(){
        
        if (window.hasOwnProperty('CheckoutApiEmbConfig') && typeof Frames != 'undefined') {
            Frames.init(window.CheckoutApiEmbConfig);
        }

        delete window.CheckoutApiEmbConfig;

        createBindings();

        if(jQuery('#createaccount').length === 1){
            var checkbox = document.querySelector("input[name=createaccount]");
            checkbox.addEventListener( 'change', function() {<commit_msg>Frames events cleanup<commit_after>jQuery(document).ready(function() {
    var _ckoFRAMES = window.CKOConfig = window.CKOConfig || {};
    setTimeout(function(){
        
        if (window.hasOwnProperty('CheckoutApiEmbConfig') && typeof Frames != 'undefined') {
            // Clean up the event handlers
            Frames.removeAllEventHandlers(Frames.Events.LIGHTBOX_ACTIVATED);
            Frames.removeAllEventHandlers(Frames.Events.CARD_TOKENISED);
            Frames.removeAllEventHandlers(Frames.Events.CARD_VALIDATION_CHANGED);
            Frames.removeAllEventHandlers(Frames.Events.FRAME_ACTIVATED);
            Frames.removeAllEventHandlers(Frames.Events.READY);

            // Init Frames
            Frames.init(window.CheckoutApiEmbConfig);
        }

        delete window.CheckoutApiEmbConfig;

        createBindings();

        if(jQuery('#createaccount').length === 1){
            var checkbox = document.querySelector("input[name=createaccount]");
            checkbox.addEventListener( 'change', function() {
{'fraction_non_alphanumeric': 0.11735639283508338, 'fraction_numerical': 0.0012353304508956147, 'mean_word_length': 3.039900249376559, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7320393', 'n_tokens_mistral': 442, 'n_tokens_neox': 419, 'n_words': 60}