<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>quick-slider</title>

<link rel="stylesheet" href="css/main.css" type="text/css">
<link rel="stylesheet" href="css/jssor-slider-navigator.css" type="text/css">

<script src="third_party/jquery/dist/jquery.min.js"></script>
<script src="third_party/jssor/js/jssor.slider.mini.js"></script>

<script type="text/javascript" charset="utf-8">
    $(document).ready(
            function() {

                $.ajax({
                    url : "./get_container",
                    data : {
                        id : 1
                    },
                    success : function(data) {
                        console.log(data);

                        if (data) {

                            var styles = data.styles;
                            if (styles) {

                                for ( var attr in styles) {
                                    if (styles.hasOwnProperty(attr)) {
                                        $("#container").css(attr, styles[attr]);
                                        $("#slides").css(attr, styles[attr]);
                                    }

                                }

                            }

                            var slides = data.slides;
                            if (slides) {

                                for ( var i = 0, len = slides.length; i < len; i++) {
                                    var slide = slides[i];

                                    if (slide) {
                                        // append new slide
                                        var newSlideDiv = $("<div></div>");<commit_msg>Pass in the container id as parameter and use container 1 by default<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>quick-slider</title>

<link rel="stylesheet" href="css/main.css" type="text/css">
<link rel="stylesheet" href="css/jssor-slider-navigator.css" type="text/css">

<script src="third_party/jquery/dist/jquery.min.js"></script>
<script src="third_party/jssor/js/jssor.slider.mini.js"></script>

<script type="text/javascript" charset="utf-8">
    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
            return unescape(r[2]);
        } else {
            // by default we read slider 1
            return 1;
        }
    }

    $(document).ready(
            function() {

                $.ajax({
                    url : "./get_container",
                    data : {
                        id : getQueryString("container_id")
                    },
                    success : function(data) {
                        console.log(data);

                        if (data) {

                            var styles = data.styles;
                            if (styles) {

                                for ( var attr in styles) {
                                    if (styles.hasOwnProperty(attr)) {
                                        $("#container").css(attr, styles[attr]);
                                        $("#slides").css(attr, styles[attr]);
                                    }

                                }

                            }

                            var slides = data.slides;
                            if (slides) {

                                for ( var i = 0, len = slides.length; i < len; i++) {
                                    var slide = slides[i];

                                    if (slide) {
                                        // append new slide
                                        var newSlideDiv = $("<div></div>");
{'fraction_non_alphanumeric': 0.1330514797314101, 'fraction_numerical': 0.005968664511315593, 'mean_word_length': 1.0583418628454453, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2982134', 'n_tokens_mistral': 1054, 'n_tokens_neox': 976, 'n_words': 204}