<commit_before>newaction {
    trigger     = "setup",
    description = "Setup resource files within generated files.",
    execute     = function ()
        if os.is("macosx") or os.is("linux") then
            local base = path.getabsolute(".")
            local res  = base .. "/res"
            local rel  = base .. "/out/release"
            local deb  = base .. "/out/debug"

            os.mkdir(rel)
            os.mkdir(deb)
            os.execute(table.concat({"cp -r", res, deb}, " "))
            os.execute(table.concat({"cp -r", res, rel}, " "))
        end
   end
}

solution "glcookbook"
    configurations {"Debug", "Release"}
        language "C++"

        defines {
            "GLFW_STATIC",
            "GLEW_STATIC"
        }

        libdirs {
            os.findlib("glfw3"),
            os.findlib("glew")
        }

    configuration {"gmake"}
        buildoptions {
            "-Wall",
            "-std=c++11"
        }

    configuration {"macosx"}
        links {
            "glfw3",
            "GLEW",
            "Cocoa.framework",
            "OpenGL.framework",
            "IOKit.framework",
            "CoreVideo.framework"
        }

    configuration {"linux"}
        links {
            "glfw3",
            "GLEW",
            "GL",
            "X11",
            "Xxf86vm",
            "Xrandr",
            "Xinerama",
            "Xi",
            "Xcursor",
            "pthread"
        }

    configuration "Release"
        defines {"NDEBUG"}
        objdir "out/release/obj"
        targetdir "out/release"
        kind "WindowedApp"
        flags {"OptimizeSpeed"}

    configuration "Debug"
        defines {"DEBUG"}
        targetdir "out/debug"
        objdir "out/debug/obj"
        kind "ConsoleApp"
        flags {"Symbols"}

    project "window_creation"
        location "build/window_creation"
        files {
            "src/window_creation/**.cpp",
            "src/window_creation/**.h"
        }

    project "triangle"
        location "build/triangle"
        files {
            "src/triangle/**.cpp",
            "src/triangle/**.h"
        }<commit_msg>Added a new project called rectangle.<commit_after>newaction {
    trigger     = "setup",
    description = "Setup resource files within generated files.",
    execute     = function ()
        if os.is("macosx") or os.is("linux") then
            local base = path.getabsolute(".")
            local res  = base .. "/res"
            local rel  = base .. "/out/release"
            local deb  = base .. "/out/debug"

            os.mkdir(rel)
            os.mkdir(deb)
            os.execute(table.concat({"cp -r", res, deb}, " "))
            os.execute(table.concat({"cp -r", res, rel}, " "))
        end
   end
}

solution "glcookbook"
    configurations {"Debug", "Release"}
        language "C++"

        defines {
            "GLFW_STATIC",
            "GLEW_STATIC"
        }

        libdirs {
            os.findlib("glfw3"),
            os.findlib("glew")
        }

    configuration {"gmake"}
        buildoptions {
            "-Wall",
            "-std=c++11"
        }

    configuration {"macosx"}
        links {
            "glfw3",
            "GLEW",
            "Cocoa.framework",
            "OpenGL.framework",
            "IOKit.framework",
            "CoreVideo.framework"
        }

    configuration {"linux"}
        links {
            "glfw3",
            "GLEW",
            "GL",
            "X11",
            "Xxf86vm",
            "Xrandr",
            "Xinerama",
            "Xi",
            "Xcursor",
            "pthread"
        }

    configuration "Release"
        defines {"NDEBUG"}
        objdir "out/release/obj"
        targetdir "out/release"
        kind "WindowedApp"
        flags {"OptimizeSpeed"}

    configuration "Debug"
        defines {"DEBUG"}
        targetdir "out/debug"
        objdir "out/debug/obj"
        kind "ConsoleApp"
        flags {"Symbols"}

    project "window_creation"
        location "build/window_creation"
        files {
            "src/window_creation/**.cpp",
            "src/window_creation/**.h"
        }

    project "triangle"
        location "build/triangle"
        files {
            "src/triangle/**.cpp",
            "src/triangle/**.h"
        }

    project "rectangle"
        location "build/rectangle"
        files {
            "src/rectangle/**.cpp",
            "src/rectangle/**.h"
        }
{'fraction_non_alphanumeric': 0.1337694563501015, 'fraction_numerical': 0.004060455673358899, 'mean_word_length': 1.3312302839116719, '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': '1399143', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1259, 'n_words': 256}