<commit_before><%=javascript_include_tag 'openseadragon.js' %>
    <div id="example-inline-configuration-for-iiif" style="width:100%;height:100%;border:1px solid black;color:#333;background-color: black;">
		<script type="text/javascript">
		    OpenSeadragon({
		        id:                 "example-inline-configuration-for-iiif",  //div id to put this image in
            prefixUrl:          "",
            navImages:     {
              zoomIn: {
                REST: "<%= asset_path('iiif-images/zoomin_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/zoomin_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/zoomin_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/zoomin_pressed.png') %>"
              },
              zoomOut: {
                REST: "<%= asset_path('iiif-images/zoomout_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/zoomout_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/zoomout_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/zoomout_pressed.png') %>"
              },
              home: {
                REST: "<%= asset_path('iiif-images/home_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/home_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/home_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/home_pressed.png') %>"
              },
              fullpage: {
                REST: "<%= asset_path('iiif-images/fullpage_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/fullpage_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/fullpage_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/fullpage_pressed.png') %>"
              },
              rotateleft: {
                REST: "<%= asset_path('iiif-images/rotateleft_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/rotateleft_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/rotateleft_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/rotateleft_pressed.png') %>"
              },
              rotateright: {
                REST: "<%= asset_path('iiif-images/rotateright_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/rotateright_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/rotateright_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/rotateright_pressed.png') %>"
              },
              previous: {
                REST: "<%= asset_path('iiif-images/previous_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/previous_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/previous_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/previous_pressed.png') %>"
              },
              next: {
                REST: "<%= asset_path('iiif-images/next_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/next_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/next_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/next_pressed.png') %>"
              }
            },
		        preserveViewport:   true,
		        visibilityRatio:    1,
		        minZoomLevel:       1,
            maxZoomPixelRatio:  10,
		        defaultZoomLevel:   1,
		        sequenceMode:       false, //we want fromthepage to handle pages sequentially, rather than openseadragon
		      	tileSources:   [
		      	  "<%= @page.sc_canvas.sc_service_id %>/info.json"
		      	]
		      });

		</script>
        <noscript>
            <p>OpenSeadragon is not available unless JavaScript is enabled.</p>
            <img src='/example-images/highsmith/01967v.jpg'
                 height='600'/><commit_msg>Add `fitBounds` option (and remove extraneous options)<commit_after><%=javascript_include_tag 'openseadragon.js' %>
    <div id="example-inline-configuration-for-iiif" style="width:100%;height:100%;border:1px solid black;color:#333;background-color: black;">
		<script type="text/javascript">
		    OpenSeadragon({
		        id:                 "example-inline-configuration-for-iiif",  //div id to put this image in
            prefixUrl:          "",
            navImages:     {
              zoomIn: {
                REST: "<%= asset_path('iiif-images/zoomin_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/zoomin_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/zoomin_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/zoomin_pressed.png') %>"
              },
              zoomOut: {
                REST: "<%= asset_path('iiif-images/zoomout_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/zoomout_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/zoomout_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/zoomout_pressed.png') %>"
              },
              home: {
                REST: "<%= asset_path('iiif-images/home_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/home_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/home_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/home_pressed.png') %>"
              },
              fullpage: {
                REST: "<%= asset_path('iiif-images/fullpage_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/fullpage_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/fullpage_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/fullpage_pressed.png') %>"
              },
              rotateleft: {
                REST: "<%= asset_path('iiif-images/rotateleft_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/rotateleft_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/rotateleft_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/rotateleft_pressed.png') %>"
              },
              rotateright: {
                REST: "<%= asset_path('iiif-images/rotateright_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/rotateright_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/rotateright_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/rotateright_pressed.png') %>"
              },
              previous: {
                REST: "<%= asset_path('iiif-images/previous_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/previous_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/previous_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/previous_pressed.png') %>"
              },
              next: {
                REST: "<%= asset_path('iiif-images/next_rest.png') %>",
                GROUP: "<%= asset_path('iiif-images/next_grouphover.png') %>",
                HOVER: "<%= asset_path('iiif-images/next_hover.png') %>",
                DOWN: "<%= asset_path('iiif-images/next_pressed.png') %>"
              }
            },
            maxZoomPixelRatio:  10,
            visibilityRatio:    1,
            fitBounds:          true,
		        preserveViewport:   true,
		        sequenceMode:       false, //we want fromthepage to handle pages sequentially, rather than openseadragon
            tileSources:   [
		      	  "<%= @page.sc_canvas.sc_service_id %>/info.json"
		      	]
		      });

		</script>
        <noscript>
            <p>OpenSeadragon is not available unless JavaScript is enabled.</p>
            <img src='/example-images/highsmith/01967v.jpg'
                 height='600'/>
{'fraction_non_alphanumeric': 0.16863449691991786, 'fraction_numerical': 0.005646817248459959, 'mean_word_length': 1.9045844204248974, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '1767473', 'n_tokens_mistral': 2588, 'n_tokens_neox': 2317, 'n_words': 267}