<commit_before><!doctype html> 
<html> 
<head> 
  <meta charset="utf-8">
  <title>iV is your friend</title>
  <script type="text/javascript" src="/daimio_composite.js"></script>
  <style>
    body { padding: 0; margin: 0;}
    .hidden {
      display: none !important;
      visibility: hidden;
    }
  </style>
</head>
<body style="display:none">
  
  <div style="position :relative;">
    <div id="rooms" data-daimio-template="build-room-display">
      {begin video_template | >$video-template | ""}
        <video id="{_key}" class="fullscreen hidden" style="" loop="true" width="{$game.width}" height="{$game.height}">
          <source src="{$control-mode | then $game.rooms.{_key}.urls.control else $game.rooms.{_key}.urls.client}" type="video/webm">
          Your browser does not support the video tag.
        </video>
      {end video_template}
    
      {begin image_template | >$image-template | ""}
        <img src="{$control-mode | then $game.rooms.{_key}.urls.control else $game.rooms.{_key}.urls.client}"
              id="{_key}" class="fullscreen hidden" width="{$game.width}" height="{$game.height}">
      {end image_template}
    
      {begin selection | each data $game.rooms}
        { $control-mode 
        | then _value.urls.control 
          else _value.urls.client
        | string slice start -3 
        | is in (:ebm :m4v :mp4 :mov) 
        | then $video-template 
          else $image-template
        | run with {* (:key _key :value _value)} }
      {end selection}
    </div> <!-- TODO: examine this totally freaky webkit whitespace issue -->
  
    <div id="divs" data-daimio-template="show-divs">
      {begin divs | merge data $game.rooms.{$room-id}.exits | if $control-mode then __ else ""}
        <div class="clickable" data-value="{_room}"
             style="top: {_top | or 0}px; left: {_left | or 0}px; 
                    height: {_height | or 100}px; width: {_width | or 100}px; 
                    position: absolute; background-color:green; opacity: {$game.debug | then 0.4 else 0}"></div>
      {end divs}
    </div>
  </div>
  <commit_msg>first pass: adding rendering for text rooms<commit_after><!doctype html> 
<html> 
<head> 
  <meta charset="utf-8">
  <title>iV is your friend</title>
  <script type="text/javascript" src="/daimio_composite.js"></script>
  <style>
    body { padding: 0; margin: 0;}
    .hidden {
      display: none !important;
      visibility: hidden;
    }
  </style>
</head>
<body style="display:none">
  
  <div style="position :relative;">
    <div id="rooms" data-daimio-template="build-room-display">
      {begin video_template | >$video-template | ""}
        <video id="{_key}" class="fullscreen hidden" style="" loop="true" width="{$game.width}" height="{$game.height}">
          <source src="{$control-mode | then _value.urls.control else _value.urls.client}" type="video/webm">
          Your browser does not support the video tag.
        </video>
      {end video_template}
    
      {begin image_template | >$image-template | ""}
        <img src="{$control-mode | then _value.urls.control else _value.urls.client}"
              id="{_key}" class="fullscreen hidden" width="{$game.width}" height="{$game.height}">
      {end image_template}
    
      {begin text_template | >$text-template | ""}
        {_value.text}
      {end text_template}
      
      {begin selection | each data $game.rooms}
        { $control-mode 
        | then _value.urls.control 
          else _value.urls.client
        | string slice start -3 | >extension
        | cond (
           {_value.text}                                $text-template
           {_extension | is in (:ebm :m4v :mp4 :mov)}   $video-template
           {:otherwise }                                $image-template
          )
        | run with {* (:key _key :value _value)} }
      {end selection}
    </div> <!-- TODO: examine this totally freaky webkit whitespace issue -->
  
    <div id="divs" data-daimio-template="show-divs">
      {begin divs | merge data $game.rooms.{$room-id}.exits | if $control-mode then __ else ""}
        <div class="clickable" data-value="{_room}"
             style="top: {_top | or 0}px; left: {_left | or 0}px; 
                    height: {_height | or 100}px; width: {_width | or 100}px; 
                    position: absolute; background-color:green; opacity: {$game.debug | then 0.4 else 0}"></div>
      {end divs}
    </div>
  </div>
  
{'fraction_non_alphanumeric': 0.15743243243243243, 'fraction_numerical': 0.0076576576576576575, 'mean_word_length': 2.424055512721665, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4684416', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1393, 'n_words': 346}