<commit_before>"""
Flask application for serving poolvr.
"""
import os
import logging
_logger = logging.getLogger(__name__)
import json
from copy import deepcopy

import subprocess

completed_proc = subprocess.run(['git', 'rev-list', '--max-count=4', 'HEAD'], stdout=subprocess.PIPE, check=True, universal_newlines=True)
GIT_REVS = []
for line in completed_proc.stdout.splitlines():
    GIT_REVS.append(line)

from flask import Flask, render_template, request, Markup

import pool_table

STATIC_FOLDER   = os.path.abspath(os.path.split(__file__)[0])
TEMPLATE_FOLDER = STATIC_FOLDER

app = Flask(__name__,
            static_folder=STATIC_FOLDER,
            static_url_path='',
            template_folder=TEMPLATE_FOLDER)

app.debug = True


WebVRConfig = {
    "ENABLE_LEAP_MOTION": False,
    "LEAP_MOTION_HOST": "127.0.0.1",
    "FORCE_ENABLE_VR":       False,
    "K_FILTER":              0.98,
    "PREDICTION_TIME_S":     0.020,
    "TOUCH_PANNER_DISABLED": False,
    "YAW_ONLY":              False,
    "MOUSE_KEYBOARD_CONTROLS_DISABLED": False,
    "KEYBOARD_CONTROLS_DISABLED": True
}


POOLVR = {
    'version': 'v0.1.1',
    'config': {
        'gravity'            : 9.8,
        'useBasicMaterials'  : True,
        'useShadowMap'       : False,
        'useSpotLight'       : True,
        'usePointLight'      : False,
        'useTextGeomLogger'  : True,
        'L_table'            : 2.3368,
        'H_table'            : 0.74295,
        'ball_diameter'      : 2.25 * pool_table.INCH2METER,
        'H_ceiling'          : 8 * 12 * 0.0254,
        'synthSpeakerVolume' : 0.4,
        'toolOptions': {
            'host'      : '127.0.0.1',
            'tipShape'  : 'Cylinder',
            'toolRadius': 0.012,
            'tipRadius' : 0.012,
            'toolLength': 0.37,
            'tipLength' : 0.37,
            'interactionPlaneOpacity': 0.22
        }
    }
}
<commit_msg>thinner stick<commit_after>"""
Flask application for serving poolvr.
"""
import os
import logging
_logger = logging.getLogger(__name__)
import json
from copy import deepcopy

import subprocess

completed_proc = subprocess.run(['git', 'rev-list', '--max-count=4', 'HEAD'], stdout=subprocess.PIPE, check=True, universal_newlines=True)
GIT_REVS = []
for line in completed_proc.stdout.splitlines():
    GIT_REVS.append(line)

from flask import Flask, render_template, request, Markup

import pool_table

STATIC_FOLDER   = os.path.abspath(os.path.split(__file__)[0])
TEMPLATE_FOLDER = STATIC_FOLDER

app = Flask(__name__,
            static_folder=STATIC_FOLDER,
            static_url_path='',
            template_folder=TEMPLATE_FOLDER)

app.debug = True


WebVRConfig = {
    "ENABLE_LEAP_MOTION": False,
    "LEAP_MOTION_HOST": "127.0.0.1",
    "FORCE_ENABLE_VR":       False,
    "K_FILTER":              0.98,
    "PREDICTION_TIME_S":     0.020,
    "TOUCH_PANNER_DISABLED": False,
    "YAW_ONLY":              False,
    "MOUSE_KEYBOARD_CONTROLS_DISABLED": False,
    "KEYBOARD_CONTROLS_DISABLED": True
}


POOLVR = {
    'version': 'v0.1.1',
    'config': {
        'gravity'            : 9.8,
        'useBasicMaterials'  : True,
        'useShadowMap'       : False,
        'useSpotLight'       : True,
        'usePointLight'      : False,
        'useTextGeomLogger'  : True,
        'L_table'            : 2.3368,
        'H_table'            : 0.74295,
        'ball_diameter'      : 2.25 * pool_table.INCH2METER,
        'H_ceiling'          : 8 * 12 * 0.0254,
        'synthSpeakerVolume' : 0.4,
        'toolOptions': {
            'host'      : '127.0.0.1',
            'tipShape'  : 'Cylinder',
            'toolRadius': 0.010,
            'tipRadius' : 0.010,
            'toolLength': 0.37,
            'tipLength' : 0.37,
            'interactionPlaneOpacity': 0.22
        }
    }
}

{'fraction_non_alphanumeric': 0.12664214398318444, 'fraction_numerical': 0.03573305307409354, 'mean_word_length': 2.226271186440678, 'pattern_counts': {'":': 18, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6732871', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1358, 'n_words': 235}