<commit_before>/*
 * Javalin - https://javalin.io
 * Copyright 2017 <NAME>
 * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
 */

package io.javalin.core.util

import io.javalin.Context

class SinglePageHandler {

    private val pathPageMap = mutableMapOf<String, String>()<commit_msg>[javadoc] Add javadoc to SinglePageHandler<commit_after>/*
 * Javalin - https://javalin.io
 * Copyright 2017 <NAME>
 * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
 */

package io.javalin.core.util

import io.javalin.Context

/**
 * This is just a glorified 404 handler.
 * Ex: app.enableSinglePageMode("/my-path", "index.html")
 * If no routes or static files are found on "/my-path/" (or any subpath), index.html will be returned
 */
class SinglePageHandler {

    private val pathPageMap = mutableMapOf<String, String>()
{'fraction_non_alphanumeric': 0.12770809578107184, 'fraction_numerical': 0.01710376282782212, 'mean_word_length': 4.104651162790698, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '5392321', 'n_tokens_mistral': 303, 'n_tokens_neox': 274, 'n_words': 74}