<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flask import Blueprint, send_from_directory

statics = Blueprint('static', __name__)

# STATIC FILES
@statics.route('/js/<path:path>')
def serve_js(path):
    return send_from_directory('public/js', path)

@statics.route('/css/<path:path>')
def serve_css(path):
    return send_from_directory('public/css', path)

@statics.route('/images/<path:path>')
def serve_images(path):
    return send_from_directory('public/images', path)

@statics.route('/fonts/<path:path>')
def serve_fonts(path):
    return send_from_directory('public/fonts', path)

@statics.route('/api/schema/game')
def serve_schema():
    return send_from_directory('model', "game.json")<commit_msg>add SSL acme_challenge as server route<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flask import Blueprint, send_from_directory

statics = Blueprint('static', __name__)

# STATIC FILES
@statics.route('/js/<path:path>')
def serve_js(path):
    return send_from_directory('public/js', path)

@statics.route('/css/<path:path>')
def serve_css(path):
    return send_from_directory('public/css', path)

@statics.route('/images/<path:path>')
def serve_images(path):
    return send_from_directory('public/images', path)

@statics.route('/fonts/<path:path>')
def serve_fonts(path):
    return send_from_directory('public/fonts', path)

@statics.route('/api/schema/game')
def serve_schema():
    return send_from_directory('model', "game.json")

# lets encrypt
@statics.route('/.well-known/acme-challenge/<token_value>')
def letsencrpyt(tmp):
    with open('.well-known/acme-challenge/{}'.format(token_value)) as f:
        answer = f.readline().strip()
    return answer
{'fraction_non_alphanumeric': 0.1691948658109685, 'fraction_numerical': 0.0011668611435239206, 'mean_word_length': 5.57088122605364, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '3494567', 'n_tokens_mistral': 602, 'n_tokens_neox': 583, 'n_words': 105}