<commit_before><html>
<head>
    <meta charset="utf-8">
    <title>Block Break VR</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="theme-color" content="#000">

    <link rel="manifest" href="manifest.webmanifest">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script>
    <script src="https://cdn.rawgit.com/priologic/easyrtc/v1.1.0/api/easyrtc.js"></script>
    <script src="js/index.js"></script>

</head>
<body>

<a-scene main networked-scene="
      room: dev;
      debug: false;
    ">
    <a-assets>

      <a-asset-item id="bomb-obj" src="assets/obj/exploding-bomb/model.obj"></a-asset-item>
      <a-asset-item id="bomb-mtl" src="assets/obj/exploding-bomb/materials.mtl"></a-asset-item>

      <a-asset-item id="block-obj" src="assets/obj/basic-block/model.obj"></a-asset-item>
      <a-asset-item id="block-mtl" src="assets/obj/basic-block/materials.mtl"></a-asset-item>

      <a-asset-item id="mr-block-obj" src="assets/obj/mr-block/model.obj"></a-asset-item>
      <a-asset-item id="mr-block-mtl" src="assets/obj/mr-block/materials.mtl"></a-asset-item>

      <a-asset-item id="relic-obj" src="assets/obj/relic/model.obj"></a-asset-item>
      <a-asset-item id="relic-mtl" src="assets/obj/relic/materials.mtl"></a-asset-item>

      <a-asset-item id="crystal-block-obj" src="assets/obj/crystal-block/model.obj"></a-asset-item>
      <a-asset-item id="crystal-block-mtl" src="assets/obj/crystal-block/materials.mtl"></a-asset-item>

        <audio id="build-music" src="assets/ogg/Build-Phase_looped.ogg"></audio>
        <audio id="game-over-music" src="assets/ogg/You_Win.ogg"></audio>
        <audio id="pop1-sound" src="assets/ogg/240566__onikage22__blip-plock-pop1.ogg"></audio>
        <audio id="pop2-sound" src="assets/ogg/240566__onikage22__blip-plock-pop2.ogg"></audio>
        <audio id="pop3-sound" src="assets/ogg/240566__onikage22__blip-plock-pop3.ogg"></audio>
        <audio id="pop4-sound" src="assets/ogg/240566__onikage22__blip-plock-pop4.ogg"></audio>
        <audio id="pop5-sound" src="assets/ogg/240566__onikage22__blip-plock-pop5.ogg"></audio>
        <audio id="pop6-sound" src="assets/ogg/240566__onikage22__blip-plock-pop6.ogg"></audio>
        <audio id="pop7-sound" src="assets/ogg/240566__onikage22__blip-plock-pop7.ogg"></audio>

        <audio id="explode0-sound" src="assets/ogg/170146__timgormly__8-bit-explosion0.ogg"></audio>
        <audio id="explode1-sound" src="assets/ogg/162792__timgormly__8-bit-explosion1.ogg"></audio>
        <audio id="explode2-sound" src="assets/ogg/170144__timgormly__8-bit-explosion2.ogg"></audio>
        <audio id="explode3-sound" src="assets/ogg/170145__timgormly__8-bit-explosion3.ogg"></audio>

        <audio id="blip0-sound" src="assets/ogg/344297__musiclegends__blip-select46.ogg"></audio>
        <audio id="blip1-sound" src="assets/ogg/344298__musiclegends__blip-select35.ogg"></audio>
        <audio id="blip2-sound" src="assets/ogg/344299__musiclegends__blip-select11.ogg"></audio>

        <audio id="jump0-sound" src="assets/ogg/344304__musiclegends__jump20.ogg"></audio>
        <audio id="jump1-sound" src="assets/ogg/344305__musiclegends__jump14.ogg"></audio>


        <img id="grid" src="https://img.gs/bbdkhfbzkk/stretch/https://i.imgur.com/25P1geh.png" crossorigin="anonymous">
        <img id="sky" src="http://i.imgur.com/WqlqEkq.jpg" crossorigin="anonymous" />

        <!-- Templates -->

        <script id="greystone-block-template" type="text/html">
          <a-entity class="voxel"
                    material="transparent: true; opacity: 0;"
                    geometry="primitive: box; height: 1; width: 1; depth: 1"
                    static-body
                    sound="src: #explode0-sound; autoplay: false; loop: false; poolSize: 1;"
                    ></a-entity>
          <a-entity
                    obj-model="obj: #mr-block-obj; mtl: #mr-block-mtl"
                    scale="5 5 5" 
                    shadow="receive: false"
                    ></a-entity>
        </script>

        <!-- Avatar -->
        <script id="avatar-template" type="text/html">
            <a-entity class="avatar">
                <a-sphere class="head"
                          color="#5985ff"
                          scale="0.45 0.5 0.4"
                          random-color
                        ></a-sphere>
                <a-entity class="face"
                          position="0 0.05 0"
                        >
                    <a-sphere class="eye"
                              color="#efefef"
                              position="0.16 0.1 -0.35"
                              scale="0.12 0.12 0.12"
                            >
                        <a-sphere class="pupil"
                                  color="#000"
                                  position="0 0 -1"
                                  scale="0.2 0.2 0.2"
                                ></a-sphere>
                    </a-sphere>
                    <a-sphere class="eye"
                              color="#efefef"
                              position="-0.16 0.1 -0.35"
                              scale="0.12 0.12 0.12"
                            >
                        <a-sphere class="pupil"
                                  color="#000"
                                  position="0 0 -1"
                                  scale="0.2 0.2 0.2"
                                ></a-sphere>
                    </a-sphere>
                </a-entity>
                <a-entity id="gun" class="gun">
                    <a-box
                            position="0.51 -0.13 -0.29"
                            scale="0.19 0.23 0.67"
                            color="#000"
                            ></a-box>
                    <a-entity id="gun-tip" class="gun-tip"
                              position="0.51 -0.10 -0.64"
                              sound="src: #blip0-sound; autoplay: false; loop: false; poolSize: 5; volume: 0.5"
                            ></a-entity>
                </a-entity>
            </a-entity>
        </script>

        <img id="greystone-texture" src="assets/img/tiles/greystone.png" />

        <!-- /Templates -->
    </a-assets>
        <!-- Bullet -->
        <script id="bullet-template" type="text/html">
          <a-entity class="bullet" obj-model="obj: #bomb-obj; mtl: #bomb-mtl" sphere-collider="objects: .voxel, .relic; watch: false; radius: 0.01">
            <a-animation attribute="rotation" to="360 0 0" easing="linear" dur="1000" repeat="indefinite"></a-animation>
          </a-entity> 
        </script>

    <a-entity id="player" camera="userHeight: 1.6" networked="template:#avatar-template;showLocalTemplate:false;" spawn-in-circle="radius:10" position="0 20 0" universal-controls="movementControls: checkpoint, keyboard"
              checkpoint-controls="mode: teleport"
              gun="bulletTemplate:#bullet-template; triggerKeyCode:17;"
              kinematic-body="radius: 0.5; enableSlopes: false;"
              jump-ability="maxJumps: 2;"
              sound="src: #jump0-sound; autoplay: false; loop: false; poolSize: 5; positional: true;"
            auto-fall-respawn>
        <a-entity id="cursor" cursor="fuse: false; fuseTimeout: 2000"
                  position="0 0 -1"
                  geometry="primitive: ring; radiusInner: 0.02; radiusOuter: 0.03;"
                  material="color: black; shader: flat"
                  raycaster="objects: .checkpoint, #environment-collision1, .voxel, .relic"
                  intersection-spawn-multi="event: click; currenttemplate: #greystone-block-template; templates: #greystone-block-template; offset: 0.5 0.5 0.5; snap: 1 1 1">
            <a-animation begin="click" attribute="material.color" from="red" to="black" dur="0" dur="250"></a-animation>
            <a-animation begin="click" attribute="scale" from="0.7 0.7 0.7" to="1 1 1" dur="0" dur="250"></a-animation>
            <a-animation begin="mouseleave" attribute="scale" from="0.7 0.7 0.7" to="1 1 1" dur="0" dur="250"></a-animation>
            <a-animation begin="cursor-fusing" attribute="material.color" from="black" to="red" dur="2000"></a-animation>
            <a-animation begin="cursor-fusing" easing="ease-in" attribute="scale"
                         fill="forwards" from="1 1 1" to="0.7 0.7 0.7" dur="250"></a-animation>
            <a-animation begin="mouseleave" easing="ease-in" attribute="scale"
                         fill="forwards" from="0.7 0.7 0.7" to="1 1 1" dur="250"></a-animation>
        </a-entity>

        <a-entity id="left-hand" oculus-touch-controls="hand: left" vive-controls="hand: left"  teleport-controls="type: parabolic; collisionEntities: [class='voxel'], #environment-collision1; maxLength: 20; curveShootingSpeed: 20;"></a-entity>
        <a-entity id="right-hand" hand-controls="right" controller-cursor intersection-spawn-multi="event: click; currenttemplate: #greystone-block-template; templates: #greystone-block-template; offset: 0.5 0.5 0.5; snap: 1 1 1"></a-entity>

    </a-entity>

    <a-box id="bullet-collider" class="bullet-collider" position="0 -0.5 0" width="30" depth="30" height="1"></a-box>


    <a-entity visible="true" position="0 -15 0">
        <a-box id="environment-collision1" class="environment" static-body position="0 0 0" width="30" depth="30" height="30"></a-box>
    </a-entity>

    <a-entity environment="preset: forest; groundColor: #445; grid: cross" position="0 -1 0"></a-entity>

    <a-entity id="bg-music-emitter" sound="src: #build-music; autoplay: true; loop: true; positional: false"></a-entity>
    <a-entity id="block-sound-emitter" sound="src: #pop1-sound; autoplay: false; loop: false; poolSize: 5; positional: false;" position="0 0 -1"></a-entity>

</a-scene>
<commit_msg>Tweaks to environment presets<commit_after><html>
<head>
    <meta charset="utf-8">
    <title>Block Break VR</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="theme-color" content="#000">

    <link rel="manifest" href="manifest.webmanifest">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script>
    <script src="https://cdn.rawgit.com/priologic/easyrtc/v1.1.0/api/easyrtc.js"></script>
    <script src="js/index.js"></script>

</head>
<body>

<a-scene main networked-scene="
      room: dev;
      debug: false;
    ">
    <a-assets>

      <a-asset-item id="bomb-obj" src="assets/obj/exploding-bomb/model.obj"></a-asset-item>
      <a-asset-item id="bomb-mtl" src="assets/obj/exploding-bomb/materials.mtl"></a-asset-item>

      <a-asset-item id="block-obj" src="assets/obj/basic-block/model.obj"></a-asset-item>
      <a-asset-item id="block-mtl" src="assets/obj/basic-block/materials.mtl"></a-asset-item>

      <a-asset-item id="mr-block-obj" src="assets/obj/mr-block/model.obj"></a-asset-item>
      <a-asset-item id="mr-block-mtl" src="assets/obj/mr-block/materials.mtl"></a-asset-item>

      <a-asset-item id="relic-obj" src="assets/obj/relic/model.obj"></a-asset-item>
      <a-asset-item id="relic-mtl" src="assets/obj/relic/materials.mtl"></a-asset-item>

      <a-asset-item id="crystal-block-obj" src="assets/obj/crystal-block/model.obj"></a-asset-item>
      <a-asset-item id="crystal-block-mtl" src="assets/obj/crystal-block/materials.mtl"></a-asset-item>

        <audio id="build-music" src="assets/ogg/Build-Phase_looped.ogg"></audio>
        <audio id="game-over-music" src="assets/ogg/You_Win.ogg"></audio>
        <audio id="pop1-sound" src="assets/ogg/240566__onikage22__blip-plock-pop1.ogg"></audio>
        <audio id="pop2-sound" src="assets/ogg/240566__onikage22__blip-plock-pop2.ogg"></audio>
        <audio id="pop3-sound" src="assets/ogg/240566__onikage22__blip-plock-pop3.ogg"></audio>
        <audio id="pop4-sound" src="assets/ogg/240566__onikage22__blip-plock-pop4.ogg"></audio>
        <audio id="pop5-sound" src="assets/ogg/240566__onikage22__blip-plock-pop5.ogg"></audio>
        <audio id="pop6-sound" src="assets/ogg/240566__onikage22__blip-plock-pop6.ogg"></audio>
        <audio id="pop7-sound" src="assets/ogg/240566__onikage22__blip-plock-pop7.ogg"></audio>

        <audio id="explode0-sound" src="assets/ogg/170146__timgormly__8-bit-explosion0.ogg"></audio>
        <audio id="explode1-sound" src="assets/ogg/162792__timgormly__8-bit-explosion1.ogg"></audio>
        <audio id="explode2-sound" src="assets/ogg/170144__timgormly__8-bit-explosion2.ogg"></audio>
        <audio id="explode3-sound" src="assets/ogg/170145__timgormly__8-bit-explosion3.ogg"></audio>

        <audio id="blip0-sound" src="assets/ogg/344297__musiclegends__blip-select46.ogg"></audio>
        <audio id="blip1-sound" src="assets/ogg/344298__musiclegends__blip-select35.ogg"></audio>
        <audio id="blip2-sound" src="assets/ogg/344299__musiclegends__blip-select11.ogg"></audio>

        <audio id="jump0-sound" src="assets/ogg/344304__musiclegends__jump20.ogg"></audio>
        <audio id="jump1-sound" src="assets/ogg/344305__musiclegends__jump14.ogg"></audio>


        <img id="grid" src="https://img.gs/bbdkhfbzkk/stretch/https://i.imgur.com/25P1geh.png" crossorigin="anonymous">
        <img id="sky" src="http://i.imgur.com/WqlqEkq.jpg" crossorigin="anonymous" />

        <!-- Templates -->

        <script id="greystone-block-template" type="text/html">
          <a-entity class="voxel"
                    material="transparent: true; opacity: 0;"
                    geometry="primitive: box; height: 1; width: 1; depth: 1"
                    static-body
                    sound="src: #explode0-sound; autoplay: false; loop: false; poolSize: 1;"
                    ></a-entity>
          <a-entity
                    obj-model="obj: #mr-block-obj; mtl: #mr-block-mtl"
                    scale="5 5 5" 
                    shadow="receive: false"
                    ></a-entity>
        </script>

        <!-- Avatar -->
        <script id="avatar-template" type="text/html">
            <a-entity class="avatar">
                <a-sphere class="head"
                          color="#5985ff"
                          scale="0.45 0.5 0.4"
                          random-color
                        ></a-sphere>
                <a-entity class="face"
                          position="0 0.05 0"
                        >
                    <a-sphere class="eye"
                              color="#efefef"
                              position="0.16 0.1 -0.35"
                              scale="0.12 0.12 0.12"
                            >
                        <a-sphere class="pupil"
                                  color="#000"
                                  position="0 0 -1"
                                  scale="0.2 0.2 0.2"
                                ></a-sphere>
                    </a-sphere>
                    <a-sphere class="eye"
                              color="#efefef"
                              position="-0.16 0.1 -0.35"
                              scale="0.12 0.12 0.12"
                            >
                        <a-sphere class="pupil"
                                  color="#000"
                                  position="0 0 -1"
                                  scale="0.2 0.2 0.2"
                                ></a-sphere>
                    </a-sphere>
                </a-entity>
                <a-entity id="gun" class="gun">
                    <a-box
                            position="0.51 -0.13 -0.29"
                            scale="0.19 0.23 0.67"
                            color="#000"
                            ></a-box>
                    <a-entity id="gun-tip" class="gun-tip"
                              position="0.51 -0.10 -0.64"
                              sound="src: #blip0-sound; autoplay: false; loop: false; poolSize: 5; volume: 0.5"
                            ></a-entity>
                </a-entity>
            </a-entity>
        </script>

        <img id="greystone-texture" src="assets/img/tiles/greystone.png" />

        <!-- /Templates -->
    </a-assets>
        <!-- Bullet -->
        <script id="bullet-template" type="text/html">
          <a-entity class="bullet" obj-model="obj: #bomb-obj; mtl: #bomb-mtl" sphere-collider="objects: .voxel, .relic; watch: false; radius: 0.01">
            <a-animation attribute="rotation" to="360 0 0" easing="linear" dur="1000" repeat="indefinite"></a-animation>
          </a-entity> 
        </script>

    <a-entity id="player" camera="userHeight: 1.6" networked="template:#avatar-template;showLocalTemplate:false;" spawn-in-circle="radius:10" position="0 20 0" universal-controls="movementControls: checkpoint, keyboard"
              checkpoint-controls="mode: teleport"
              gun="bulletTemplate:#bullet-template; triggerKeyCode:17;"
              kinematic-body="radius: 0.5; enableSlopes: false;"
              jump-ability="maxJumps: 2;"
              sound="src: #jump0-sound; autoplay: false; loop: false; poolSize: 5; positional: true;"
            auto-fall-respawn>
        <a-entity id="cursor" cursor="fuse: false; fuseTimeout: 2000"
                  position="0 0 -1"
                  geometry="primitive: ring; radiusInner: 0.02; radiusOuter: 0.03;"
                  material="color: black; shader: flat"
                  raycaster="objects: .checkpoint, #environment-collision1, .voxel, .relic"
                  intersection-spawn-multi="event: click; currenttemplate: #greystone-block-template; templates: #greystone-block-template; offset: 0.5 0.5 0.5; snap: 1 1 1">
            <a-animation begin="click" attribute="material.color" from="red" to="black" dur="0" dur="250"></a-animation>
            <a-animation begin="click" attribute="scale" from="0.7 0.7 0.7" to="1 1 1" dur="0" dur="250"></a-animation>
            <a-animation begin="mouseleave" attribute="scale" from="0.7 0.7 0.7" to="1 1 1" dur="0" dur="250"></a-animation>
            <a-animation begin="cursor-fusing" attribute="material.color" from="black" to="red" dur="2000"></a-animation>
            <a-animation begin="cursor-fusing" easing="ease-in" attribute="scale"
                         fill="forwards" from="1 1 1" to="0.7 0.7 0.7" dur="250"></a-animation>
            <a-animation begin="mouseleave" easing="ease-in" attribute="scale"
                         fill="forwards" from="0.7 0.7 0.7" to="1 1 1" dur="250"></a-animation>
        </a-entity>

        <a-entity id="left-hand" oculus-touch-controls="hand: left" vive-controls="hand: left"  teleport-controls="type: parabolic; collisionEntities: [class='voxel'], #environment-collision1; maxLength: 20; curveShootingSpeed: 20;"></a-entity>
        <a-entity id="right-hand" hand-controls="right" controller-cursor intersection-spawn-multi="event: click; currenttemplate: #greystone-block-template; templates: #greystone-block-template; offset: 0.5 0.5 0.5; snap: 1 1 1"></a-entity>

    </a-entity>

    <a-box id="bullet-collider" class="bullet-collider" position="0 -0.5 0" width="30" depth="30" height="1"></a-box>


    <a-entity visible="true" position="0 -15 0">
        <a-box id="environment-collision1" class="environment" static-body position="0 0 0" width="30" depth="30" height="30"></a-box>
    </a-entity>

    <a-entity id="environment" environment="preset: forest;" position="0 -1 0"></a-entity>

    <a-entity id="bg-music-emitter" sound="src: #build-music; autoplay: true; loop: true; positional: false"></a-entity>
    <a-entity id="block-sound-emitter" sound="src: #pop1-sound; autoplay: false; loop: false; poolSize: 5; positional: false;" position="0 0 -1"></a-entity>

</a-scene>

{'fraction_non_alphanumeric': 0.16911542719130523, 'fraction_numerical': 0.04392673845224917, 'mean_word_length': 2.089538318047567, 'pattern_counts': {'":': 0, '<': 303, '<?xml version=': 0, '>': 303, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2529317', 'n_tokens_mistral': 7075, 'n_tokens_neox': 6356, 'n_words': 1036}