<commit_before>/**
 * Created by crispin on 10/12/2015.
 */
function loadEmbedIframe(onSave) {
    // add modal window
    $('.workspace-menu').append(templates.embedIframe());

    // variables
    var modal = $(".modal");

    // modal functions
    function closeModal() {
        modal.remove();
    }
    function saveUrl() {
        var embedUrl = $('input#embed-url').val();
        var fullWidth = $('input#full-width-checkbox').is(':checked');
        console.log(fullWidth);
        if (!embedUrl) {
            console.log("No url added");
            sweetAlert('URL field is empty', 'Please add a url and save again');
        } else {
            onSave('<ons-interactive url="' + embedUrl + '" full-width="' + fullWidth + '"/>');
            modal.remove();
        }
    }

    // bind events
    $('.btn-embed-cancel').click(function() {<commit_msg>Remove console log<commit_after>/**
 * Created by crispin on 10/12/2015.
 */
function loadEmbedIframe(onSave) {
    // add modal window
    $('.workspace-menu').append(templates.embedIframe());

    // variables
    var modal = $(".modal");

    // modal functions
    function closeModal() {
        modal.remove();
    }
    function saveUrl() {
        var embedUrl = $('input#embed-url').val();
        var fullWidth = $('input#full-width-checkbox').is(':checked');
        if (!embedUrl) {
            console.log("No url added");
            sweetAlert('URL field is empty', 'Please add a url and save again');
        } else {
            onSave('<ons-interactive url="' + embedUrl + '" full-width="' + fullWidth + '"/>');
            modal.remove();
        }
    }

    // bind events
    $('.btn-embed-cancel').click(function() {
{'fraction_non_alphanumeric': 0.1747800586510264, 'fraction_numerical': 0.0093841642228739, 'mean_word_length': 2.23719165085389, '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': '4623098', 'n_tokens_mistral': 510, 'n_tokens_neox': 481, 'n_words': 113}