<commit_before><!-- CSS -->
<link rel="stylesheet" type="text/css" href="/devwidgets/embedcontent/css/embedcontent.css" />

<!-- MAIN VIEW -->

<div id="embedcontent_main_container" style="display:none">
    <div class="fl-widget-content s3d-widget-content">
        <div id="embedcontent_content" class="clearfix"><!-- --></div>
        <div id="embedcontent_content_html_template"><!--
        {if embedmethod === "original"}
            {var embedClass="embedcontent_large_content clearfix"}
            {var alt="__MSG__LARGE_IMAGE__"}
        {elseif embedmethod ==="thumbnail"}
            {var embedClass="embedcontent_thumbnail_content clearfix"}
            {var alt="__MSG__THUMBNAIL_IMAGE__"}
        {/if}
        {if title || description}
            <div class="s3d-highlight_area_background">
            {if title}<h2>${title}</h2>{/if}
            {if description}<p>${description}</p>{/if}
        {/if}
        {for item in items}
            {if item.type === "notfound"}
                <div class="s3d-highlight_area_background embedcontent_thumbnail_content clearfix ${layout}">
                    <img src="/dev/images/not_found.png" class="not_found" alt="__MSG__NOT_FOUND__"/>
                    <div class="embedcontent_details">
                        <span class="embedcontent_include_details">__MSG__NO_LONGER_AVAILABLE__</span>
                    </div>
                </div>
            {else}
                <div class="${embedClass} ${layout}">
                    <a href="/content#content_path=${item.path}">
                    {if item.filetype === "image"}
                        <img src="${item.link}" alt="${sakai.config.MimeTypes[item.mimetype].description}" />
                    {elseif item.filetype === "video"}
                        <img border="1" style="display: block; padding: 10px; margin: 4px;" class="widget_inline" id="widget_video_id${item.uId}" src="/devwidgets/video/images/video.png">
                    {elseif sakai.config.MimeTypes[item.mimetype]}
                        <img src="${sakai.config.MimeTypes[item.mimetype].URL}" alt="${sakai.config.MimeTypes[item.mimetype].description}"/>
                    {else}
                        <img src="${sakai.config.MimeTypes['other'].URL}" alt="${sakai.config.MimeTypes['other'].description}"/>
                    {/if}
                    </a>
                    <div class="embedcontent_details">
                        {if name}<span><a href="/content#content_path=${item.path}" class="s3d-action embedcontent_include_name">${item.name}</a></span>{/if}
                        {if details}<span class="embedcontent_include_details">${item.description}</span>{/if}
                        {if download}<span><a href="${item.link}" class="s3d-action embedcontent_include_download">__MSG__DOWNLOAD__</a></span>{/if}
                    </div>
                </div>
            {/if}
        {/for}
        {if title || description}
            </div>
        {/if}
        --></div>
    </div>
    <div class="s3d-widget-no-options fl-fix">
        <div class="s3d-widget-no-options-inner"></div>
    </div>
</div>


<div id="embedcontent_settings" style="display:none">
    <div class="fl-widget-content s3d-widget-content">
        <div id="embedcontent_settings_container">
            <div id="embedcontent_header">
                <h2>
                    <span id="embedcontent_placing_content_label">__MSG__PLACING_CONTENT_ON_PAGE__: </span>
                    <span id="embedcontent_page_name"></span>
                </h2>
            </div>
            <div id="embedcontent_tabs">
                <div class="s3d-primary-tabs">
                    <ul class="fl-tabs fl-tabs-left">
                        <li class="fl-tabs-active"><a id="embedcontent_tab_choose" href="#">__MSG__CHOOSE_CONTENT__</a></li>
                        <li><a href="#" id="embedcontent_tab_display">__MSG__DISPLAY_SETTINGS__</a></li>
                    </ul>
                </div>
            </div>
            <div id="embedcontent_tab_content_container">
                <div class="content_top content_top_rounded">
                    <div class="content_top_inner"><!-- --></div>
                </div>
                <div id="embedcontent_tab_content">
                    <div id="embedcontent_tab_choose_content" class="tab_content_active">
                        <div id="embedcontent_choose">
                            <div class="embedcontent_left_label fl-force-left fl-container">
                                <p>__MSG__TYPE_NAME_OF_EXISTING_ITEM__</p>
                                <p><a href="#" class="s3d-action" id="embedcontent_search_for_content">__MSG__SEARCH_FOR_CONTENT__</a> __MSG__OR__ <a href="#" class="group_content s3d-action" id="upload_content">__MSG__ADD_NEW_CONTENT__</a></p>
                            </div>
                            <div class="embedcontent_right_input fl-force-left fl-container">
                                <input type="text" id="embedcontent_content_input"/>
                            </div>
                        </div>
                        <div class="embedcontent_footer">
                            <div class="fl-force-right">
                                <button class="s3d-button embedcontent_dont_add"><span class="s3d-button-inner embedcontent_primary_display">__MSG__DONT_ADD__</span><span class="s3d-button-inner embedcontent_alt_display" style="display:none">__MSG__DONT_SAVE__</span></button>
                                <button class="s3d-button" id="embedcontent_just_add" disabled="disabled"><span class="s3d-button-inner embedcontent_primary_display">__MSG__ADD_SELECTED_CONTENT__</span><span class="s3d-button-inner embedcontent_alt_display" style="display:none">__MSG__SAVE_CHANGES__</span></button>
                                <button class="s3d-button s3d-button-primary" id="embedcontent_button_goto_display_settings" disabled="disabled"><span class="s3d-button-inner">__MSG__CHOOSE_DISPLAY_SETTINGS__</span></button>
                            </div>
                        </div>
                    </div>
                    <form action="#" method="POST" id="embedcontent_display_form">
                        <div id="embedcontent_tab_display_content" style="display:none" class="clearfix">
                            <div id="embedcontent_display_style">
                                <h2>__MSG__CHOOSE_DISPLAY_STYLE__</h2>
                                <div class="s3d-highlight_area_background">
                                    <div class="embedcontent_large_content">
                                        <img src="/devwidgets/embedcontent/images/Surfer-Large.jpg" alt="__MSG__LARGE_IMAGE__" class="selected"/>
                                        <span><a href="#" class="s3d-action embedcontent_include_name" style="display:none">__MSG__NAME_OF_CONTENT__</a></span>
                                        <span class="embedcontent_include_details" style="display:none">__MSG__EXTRA_DETAILS__</span>
                                        <span><a href="#" class="s3d-action embedcontent_include_download" style="display:none">__MSG__DOWNLOAD__</a></span>
                                    </div>
                                    <div class="embedcontent_option">
                                        <input type="radio" name="style" value="original" id="original_size" checked="true"/>
                                        <label for="original_size">__MSG__ORIGINAL_SIZE__</label>
                                    </div>
                                </div>
                                <div class="s3d-highlight_area_background" id="embedcontent_thumbnail_example">
                                    <div class="embedcontent_thumbnail_content clearfix">
                                        <img src="/devwidgets/embedcontent/images/Surfer-Small.jpg" alt="__MSG__THUMBNAIL_IMAGE__"/>
                                        <div class="embedcontent_details">
                                            <span><a href="#" class="s3d-action embedcontent_include_name" style="display:none">__MSG__NAME_OF_CONTENT__</a></span>
                                            <span class="embedcontent_include_details" style="display:none">__MSG__EXTRA_DETAILS__</span>
                                            <span><a href="#" class="s3d-action embedcontent_include_download" style="display:none">__MSG__DOWNLOAD__</a></span>
                                        </div>
                                    </div>
                                    <div class="embedcontent_option">
                                        <input type="radio" name="style" value="thumbnail" id="thumbnail"/>
                                        <label for="thumbnail">__MSG__THUMBNAIL__</label>
                                    </div>
                                </div>
                            </div>
                            <div id="embedcontent_include">
                                <h2>__MSG__INCLUDE__</h2>
                                <div class="s3d-highlight_area_background" id="embedcontent_choose_data">
                                    <span>
                                        <input type="checkbox" name="name" id="embedcontent_name_checkbox"/>
                                        <label for="embedcontent_name_checkbox">__MSG__NAME_OF_EACH_CONTENT_ITEM__</label>
                                    </span>
                                    <span>
                                        <input type="checkbox" name="details" id="embedcontent_details_checkbox"/>
                                        <label for="embedcontent_details_checkbox">__MSG__EXTRA_DETAILS__</label>
                                    </span>
                                    <span>
                                        <input type="checkbox" name="download" id="embedcontent_download_checkbox"/>
                                        <label for="embedcontent_download_checkbox">__MSG__DOWNLOAD_LINK__</label>
                                    </span>
                                </div>
                                <div id="embedcontent_choose_layout_container" style="display:none">
                                    <h2>__MSG__LAYOUT__</h2>
                                    <div class="s3d-highlight_area_background clearfix" id="embedcontent_choose_layout">
                                        <div>
                                            <img src="/devwidgets/embedcontent/images/layout_vertical.png" alt="__MSG__LAYOUT_VERTICAL__" class="selected"/>
                                            <input type="radio" checked="true" name="layout" id="embedcontent_layout_vertical" value="vertical"/>
                                            <label for="embedcontent_layout_vertical">__MSG__VERTICAL__</label>
                                        </div>
                                        <div>
                                            <img src="/devwidgets/embedcontent/images/layout_horizontal.png" alt="__MSG__LAYOUT_HORIZONTAL__"/>
                                            <input type="radio" name="layout" id="embedcontent_layout_horizontal" value="horizontal"/>
                                            <label for="embedcontent_layout_horizontal">__MSG__HORIZONTAL__</label>
                                        </div>
                                    </div>
                                </div>
                                <div id="embedcontent_add_title_description" class="s3d-highlight_area_background overflowhidden"> 
                                    <h2>__MSG__ADD_TITLE_DESCRIPTION__</h2>
                                    <button id="embedcontent_add_title_description_button"
                                        class="s3d-button s3d-button-link-2-state"><commit_msg>NOJIRA fixing a line ending<commit_after><!-- CSS -->
<link rel="stylesheet" type="text/css" href="/devwidgets/embedcontent/css/embedcontent.css" />

<!-- MAIN VIEW -->

<div id="embedcontent_main_container" style="display:none">
    <div class="fl-widget-content s3d-widget-content">
        <div id="embedcontent_content" class="clearfix"><!-- --></div>
        <div id="embedcontent_content_html_template"><!--
        {if embedmethod === "original"}
            {var embedClass="embedcontent_large_content clearfix"}
            {var alt="__MSG__LARGE_IMAGE__"}
        {elseif embedmethod ==="thumbnail"}
            {var embedClass="embedcontent_thumbnail_content clearfix"}
            {var alt="__MSG__THUMBNAIL_IMAGE__"}
        {/if}
        {if title || description}
            <div class="s3d-highlight_area_background">
            {if title}<h2>${title}</h2>{/if}
            {if description}<p>${description}</p>{/if}
        {/if}
        {for item in items}
            {if item.type === "notfound"}
                <div class="s3d-highlight_area_background embedcontent_thumbnail_content clearfix ${layout}">
                    <img src="/dev/images/not_found.png" class="not_found" alt="__MSG__NOT_FOUND__"/>
                    <div class="embedcontent_details">
                        <span class="embedcontent_include_details">__MSG__NO_LONGER_AVAILABLE__</span>
                    </div>
                </div>
            {else}
                <div class="${embedClass} ${layout}">
                    <a href="/content#content_path=${item.path}">
                    {if item.filetype === "image"}
                        <img src="${item.link}" alt="${sakai.config.MimeTypes[item.mimetype].description}" />
                    {elseif item.filetype === "video"}
                        <img border="1" style="display: block; padding: 10px; margin: 4px;" class="widget_inline" id="widget_video_id${item.uId}" src="/devwidgets/video/images/video.png">
                    {elseif sakai.config.MimeTypes[item.mimetype]}
                        <img src="${sakai.config.MimeTypes[item.mimetype].URL}" alt="${sakai.config.MimeTypes[item.mimetype].description}"/>
                    {else}
                        <img src="${sakai.config.MimeTypes['other'].URL}" alt="${sakai.config.MimeTypes['other'].description}"/>
                    {/if}
                    </a>
                    <div class="embedcontent_details">
                        {if name}<span><a href="/content#content_path=${item.path}" class="s3d-action embedcontent_include_name">${item.name}</a></span>{/if}
                        {if details}<span class="embedcontent_include_details">${item.description}</span>{/if}
                        {if download}<span><a href="${item.link}" class="s3d-action embedcontent_include_download">__MSG__DOWNLOAD__</a></span>{/if}
                    </div>
                </div>
            {/if}
        {/for}
        {if title || description}
            </div>
        {/if}
        --></div>
    </div>
    <div class="s3d-widget-no-options fl-fix">
        <div class="s3d-widget-no-options-inner"></div>
    </div>
</div>


<div id="embedcontent_settings" style="display:none">
    <div class="fl-widget-content s3d-widget-content">
        <div id="embedcontent_settings_container">
            <div id="embedcontent_header">
                <h2>
                    <span id="embedcontent_placing_content_label">__MSG__PLACING_CONTENT_ON_PAGE__: </span>
                    <span id="embedcontent_page_name"></span>
                </h2>
            </div>
            <div id="embedcontent_tabs">
                <div class="s3d-primary-tabs">
                    <ul class="fl-tabs fl-tabs-left">
                        <li class="fl-tabs-active"><a id="embedcontent_tab_choose" href="#">__MSG__CHOOSE_CONTENT__</a></li>
                        <li><a href="#" id="embedcontent_tab_display">__MSG__DISPLAY_SETTINGS__</a></li>
                    </ul>
                </div>
            </div>
            <div id="embedcontent_tab_content_container">
                <div class="content_top content_top_rounded">
                    <div class="content_top_inner"><!-- --></div>
                </div>
                <div id="embedcontent_tab_content">
                    <div id="embedcontent_tab_choose_content" class="tab_content_active">
                        <div id="embedcontent_choose">
                            <div class="embedcontent_left_label fl-force-left fl-container">
                                <p>__MSG__TYPE_NAME_OF_EXISTING_ITEM__</p>
                                <p><a href="#" class="s3d-action" id="embedcontent_search_for_content">__MSG__SEARCH_FOR_CONTENT__</a> __MSG__OR__ <a href="#" class="group_content s3d-action" id="upload_content">__MSG__ADD_NEW_CONTENT__</a></p>
                            </div>
                            <div class="embedcontent_right_input fl-force-left fl-container">
                                <input type="text" id="embedcontent_content_input"/>
                            </div>
                        </div>
                        <div class="embedcontent_footer">
                            <div class="fl-force-right">
                                <button class="s3d-button embedcontent_dont_add"><span class="s3d-button-inner embedcontent_primary_display">__MSG__DONT_ADD__</span><span class="s3d-button-inner embedcontent_alt_display" style="display:none">__MSG__DONT_SAVE__</span></button>
                                <button class="s3d-button" id="embedcontent_just_add" disabled="disabled"><span class="s3d-button-inner embedcontent_primary_display">__MSG__ADD_SELECTED_CONTENT__</span><span class="s3d-button-inner embedcontent_alt_display" style="display:none">__MSG__SAVE_CHANGES__</span></button>
                                <button class="s3d-button s3d-button-primary" id="embedcontent_button_goto_display_settings" disabled="disabled"><span class="s3d-button-inner">__MSG__CHOOSE_DISPLAY_SETTINGS__</span></button>
                            </div>
                        </div>
                    </div>
                    <form action="#" method="POST" id="embedcontent_display_form">
                        <div id="embedcontent_tab_display_content" style="display:none" class="clearfix">
                            <div id="embedcontent_display_style">
                                <h2>__MSG__CHOOSE_DISPLAY_STYLE__</h2>
                                <div class="s3d-highlight_area_background">
                                    <div class="embedcontent_large_content">
                                        <img src="/devwidgets/embedcontent/images/Surfer-Large.jpg" alt="__MSG__LARGE_IMAGE__" class="selected"/>
                                        <span><a href="#" class="s3d-action embedcontent_include_name" style="display:none">__MSG__NAME_OF_CONTENT__</a></span>
                                        <span class="embedcontent_include_details" style="display:none">__MSG__EXTRA_DETAILS__</span>
                                        <span><a href="#" class="s3d-action embedcontent_include_download" style="display:none">__MSG__DOWNLOAD__</a></span>
                                    </div>
                                    <div class="embedcontent_option">
                                        <input type="radio" name="style" value="original" id="original_size" checked="true"/>
                                        <label for="original_size">__MSG__ORIGINAL_SIZE__</label>
                                    </div>
                                </div>
                                <div class="s3d-highlight_area_background" id="embedcontent_thumbnail_example">
                                    <div class="embedcontent_thumbnail_content clearfix">
                                        <img src="/devwidgets/embedcontent/images/Surfer-Small.jpg" alt="__MSG__THUMBNAIL_IMAGE__"/>
                                        <div class="embedcontent_details">
                                            <span><a href="#" class="s3d-action embedcontent_include_name" style="display:none">__MSG__NAME_OF_CONTENT__</a></span>
                                            <span class="embedcontent_include_details" style="display:none">__MSG__EXTRA_DETAILS__</span>
                                            <span><a href="#" class="s3d-action embedcontent_include_download" style="display:none">__MSG__DOWNLOAD__</a></span>
                                        </div>
                                    </div>
                                    <div class="embedcontent_option">
                                        <input type="radio" name="style" value="thumbnail" id="thumbnail"/>
                                        <label for="thumbnail">__MSG__THUMBNAIL__</label>
                                    </div>
                                </div>
                            </div>
                            <div id="embedcontent_include">
                                <h2>__MSG__INCLUDE__</h2>
                                <div class="s3d-highlight_area_background" id="embedcontent_choose_data">
                                    <span>
                                        <input type="checkbox" name="name" id="embedcontent_name_checkbox"/>
                                        <label for="embedcontent_name_checkbox">__MSG__NAME_OF_EACH_CONTENT_ITEM__</label>
                                    </span>
                                    <span>
                                        <input type="checkbox" name="details" id="embedcontent_details_checkbox"/>
                                        <label for="embedcontent_details_checkbox">__MSG__EXTRA_DETAILS__</label>
                                    </span>
                                    <span>
                                        <input type="checkbox" name="download" id="embedcontent_download_checkbox"/>
                                        <label for="embedcontent_download_checkbox">__MSG__DOWNLOAD_LINK__</label>
                                    </span>
                                </div>
                                <div id="embedcontent_choose_layout_container" style="display:none">
                                    <h2>__MSG__LAYOUT__</h2>
                                    <div class="s3d-highlight_area_background clearfix" id="embedcontent_choose_layout">
                                        <div>
                                            <img src="/devwidgets/embedcontent/images/layout_vertical.png" alt="__MSG__LAYOUT_VERTICAL__" class="selected"/>
                                            <input type="radio" checked="true" name="layout" id="embedcontent_layout_vertical" value="vertical"/>
                                            <label for="embedcontent_layout_vertical">__MSG__VERTICAL__</label>
                                        </div>
                                        <div>
                                            <img src="/devwidgets/embedcontent/images/layout_horizontal.png" alt="__MSG__LAYOUT_HORIZONTAL__"/>
                                            <input type="radio" name="layout" id="embedcontent_layout_horizontal" value="horizontal"/>
                                            <label for="embedcontent_layout_horizontal">__MSG__HORIZONTAL__</label>
                                        </div>
                                    </div>
                                </div>
                                <div id="embedcontent_add_title_description" class="s3d-highlight_area_background overflowhidden">
                                    <h2>__MSG__ADD_TITLE_DESCRIPTION__</h2>
                                    <button id="embedcontent_add_title_description_button"
                                        class="s3d-button s3d-button-link-2-state">
{'fraction_non_alphanumeric': 0.11806977229997911, 'fraction_numerical': 0.004010862753290161, 'mean_word_length': 1.5415162454873645, 'pattern_counts': {'":': 0, '<': 421, '<?xml version=': 0, '>': 421, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 148, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4926739', 'n_tokens_mistral': 6116, 'n_tokens_neox': 5884, 'n_words': 811}