<commit_before>require 'dokidoki.module' [[ make ]]

local game = require 'dokidoki.game'
local kernel = require 'dokidoki.kernel'
local v2 = require 'dokidoki.v2'

local blueprints = require 'blueprints'

local music

function make ()
  return game.make_game(
    {'update_setup', 'update', 'collision_registry', 'collision_check',
     'update_cleanup'},
    {'draw_setup', 'draw', 'draw_foreground', 'fade_draw'},
    function (game)
      math.randomseed(os.time())

      game.init_component('exit_handler')
      game.init_component('keyboard')
      game.init_component('opengl_2d')
      game.opengl_2d.width = 1024
      game.opengl_2d.height = 768

      game.init_component('constants')
      game.init_component('collision')
      game.init_component('resources')
      game.init_component('targeting')
      game.init_component('tracing')
      game.init_component('log')
      game.init_component('fast_forward')
      game.init_component('the_one_button')
      game.init_component('particles')

      function game.exit_handler.on_close()
        game.log.print_stats()
        kernel.abort_main_loop()
      end

      local function init()
        game.actors.new(blueprints.background)
        game.actors.new(blueprints.background_fx)
        game.actors.new(blueprints.game_flow)
      end

      if music then<commit_msg>added --no-music command line option<commit_after>require 'dokidoki.module' [[ make ]]

local game = require 'dokidoki.game'
local kernel = require 'dokidoki.kernel'
local v2 = require 'dokidoki.v2'

local blueprints = require 'blueprints'

local music

local args = {}
for _, a in ipairs(arg) do
  args[a] = true
end

function make ()
  return game.make_game(
    {'update_setup', 'update', 'collision_registry', 'collision_check',
     'update_cleanup'},
    {'draw_setup', 'draw', 'draw_foreground', 'fade_draw'},
    function (game)
      math.randomseed(os.time())

      game.init_component('exit_handler')
      game.init_component('keyboard')
      game.init_component('opengl_2d')
      game.opengl_2d.width = 1024
      game.opengl_2d.height = 768

      game.init_component('constants')
      game.init_component('collision')
      game.init_component('resources')
      game.init_component('targeting')
      game.init_component('tracing')
      game.init_component('log')
      game.init_component('fast_forward')
      game.init_component('the_one_button')
      game.init_component('particles')

      function game.exit_handler.on_close()
        game.log.print_stats()
        kernel.abort_main_loop()
      end

      local function init()
        game.actors.new(blueprints.background)
        game.actors.new(blueprints.background_fx)
        game.actors.new(blueprints.game_flow)
      end

      if args['--no-music'] or music then
{'fraction_non_alphanumeric': 0.1226752503576538, 'fraction_numerical': 0.008583690987124463, 'mean_word_length': 3.425632911392405, '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': '3544556', 'n_tokens_mistral': 913, 'n_tokens_neox': 882, 'n_words': 151}