<commit_before>local lfs = require 'lfs'
local bashcolors = require 'ralis.core.bashcolors'

local settings = [[
local Settings = {}

Settings.development = {
    code_cache = false,
    port = 7200
}

Settings.test = {
    code_cache = false,
    port = 7201
}

Settings.production = {
    code_cache = true,
    port = 80
}

return Settings
]]


local nginx_config = [[
worker_processes 1;
pid tmp/{{RALIS_ENV}}-nginx.pid;

events {
    worker_connections 1024;
}

http {
    lua_package_path "./?.lua;$prefix/lib/?.lua;#{= LUA_PACKAGE_PATH };;";

    server {
        access_log logs/{{RALIS_ENV}}-access.log;
        error_log logs/{{RALIS_ENV}}-error.log;

        listen {{RALIS_PORT}};
<commit_msg>Add sendfile on option to nginx.conf default file<commit_after>local lfs = require 'lfs'
local bashcolors = require 'ralis.core.bashcolors'

local settings = [[
local Settings = {}

Settings.development = {
    code_cache = false,
    port = 7200
}

Settings.test = {
    code_cache = false,
    port = 7201
}

Settings.production = {
    code_cache = true,
    port = 80
}

return Settings
]]


local nginx_config = [[
worker_processes 1;
pid tmp/{{RALIS_ENV}}-nginx.pid;

events {
    worker_connections 1024;
}

http {
    sendfile on;

    lua_package_path "./?.lua;$prefix/lib/?.lua;#{= LUA_PACKAGE_PATH };;";

    server {
        access_log logs/{{RALIS_ENV}}-access.log;
        error_log logs/{{RALIS_ENV}}-error.log;

        listen {{RALIS_PORT}};

{'fraction_non_alphanumeric': 0.13524590163934427, 'fraction_numerical': 0.020491803278688523, 'mean_word_length': 3.138418079096045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '631384', 'n_tokens_mistral': 568, 'n_tokens_neox': 517, 'n_words': 107}