From 4f6c7c0d2e1fc1d6640310c49759af25cdc36f96 Mon Sep 17 00:00:00 2001 From: Jake Ireland Date: Tue, 5 Nov 2024 23:32:21 +1300 Subject: [PATCH] Add example subproject --- Project.toml | 6 ++++++ examples/Project.toml | 15 +++------------ examples/bounds.jl | 5 +---- examples/get_codewords_time_analysis.jl | 5 +---- examples/random_numbers_core.jl | 4 +--- examples/sort_bounds.jl | 4 +--- 6 files changed, 13 insertions(+), 26 deletions(-) diff --git a/Project.toml b/Project.toml index 06fbe50..ac5d28c 100644 --- a/Project.toml +++ b/Project.toml @@ -4,12 +4,18 @@ authors = ["Jake W. Ireland and contributors"] version = "0.2.3" [deps] +# CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" +# Cairo = "159f3aea-2a34-519c-b102-8c37f9878175" +# Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" FLoops = "cc61a311-1640-44b5-9fba-1b764f453329" Hecke = "3e1990a7-5d81-5526-99ce-9ba3ff248f21" +# Javis = "78b212ba-a7f9-42d4-b726-60726080707e" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +# Luxor = "ae8d54c2-7ccd-5906-9d76-62fc9837b5bc" Mmap = "a63ad114-7e13-5084-954f-fe012c677804" Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45" Primes = "27ebfcd6-29c5-5fa9-bf4b-fb8fc14df3ae" +# ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" [compat] diff --git a/examples/Project.toml b/examples/Project.toml index 665d320..c770f90 100644 --- a/examples/Project.toml +++ b/examples/Project.toml @@ -1,23 +1,14 @@ [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" Cairo = "159f3aea-2a34-519c-b102-8c37f9878175" +CodingTheory = "89c41d41-0018-4667-9435-0b7cbc9fb764" Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" DataFramesMeta = "1313f7d8-7da2-5740-9ea0-a2ca25f37964" FLoops = "cc61a311-1640-44b5-9fba-1b764f453329" -Formatting = "59287772-0a20-5a39-b81b-1366585eb4c0" -InspectDR = "d0351b0e-4b05-5898-87b3-e2a8edfddd1d" -IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e" -Lazy = "50d2b5c4-7a5e-59d5-8109-a42b560f39c0" -LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +Format = "1fa38f19-a742-5d3f-a2b9-30dd87b9d5f8" +Javis = "78b212ba-a7f9-42d4-b726-60726080707e" Luxor = "ae8d54c2-7ccd-5906-9d76-62fc9837b5bc" -Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a" -PGFPlotsX = "8314cec4-20b6-5062-9cdb-752b83310925" -Plotly = "58dd65bb-95f3-509e-9936-c39a10fdeae7" -PlotlyBase = "a03496cd-edff-5a9b-9e67-9cda94a718b5" Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" -Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45" -Primes = "27ebfcd6-29c5-5fa9-bf4b-fb8fc14df3ae" ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" -PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee" StatsPlots = "f3b207a7-027a-5e70-b257-86293d7955fd" diff --git a/examples/bounds.jl b/examples/bounds.jl index b62f378..c849b2d 100755 --- a/examples/bounds.jl +++ b/examples/bounds.jl @@ -1,7 +1,4 @@ -using CSV, DataFrames, StatsPlots, ProgressMeter - -include(joinpath(dirname(dirname(@__FILE__)), "src", "CodingTheory.jl")) -using .CodingTheory +using CSV, DataFrames, StatsPlots, ProgressMeter, CodingTheory stop_at = parse(BigInt, ARGS[1]) diff --git a/examples/get_codewords_time_analysis.jl b/examples/get_codewords_time_analysis.jl index 29c4fae..5b9e82e 100755 --- a/examples/get_codewords_time_analysis.jl +++ b/examples/get_codewords_time_analysis.jl @@ -1,7 +1,4 @@ -using StatsPlots, ProgressMeter, CSV, DataFrames - -include(joinpath(dirname(dirname(@__FILE__)), "src", "CodingTheory.jl")) -using .CodingTheory +using StatsPlots, ProgressMeter, CSV, DataFrames, CodingTheory stop_at = parse(BigInt, ARGS[1]) diff --git a/examples/random_numbers_core.jl b/examples/random_numbers_core.jl index fe5ef56..f65701a 100755 --- a/examples/random_numbers_core.jl +++ b/examples/random_numbers_core.jl @@ -4,12 +4,10 @@ using Base.Threads: @threads using ProgressMeter: @showprogress, Progress, next! using FLoops: @floop, ThreadedEx using Plots, Formatting, CSV, DataFrames +using CodingTheory plotly() -include(joinpath(dirname(dirname(@__FILE__)), "src", "CodingTheory.jl")) -using .CodingTheory - function obtain_data( q::Integer, n::Integer, d::Integer, stop_at::Integer; m::Integer = 10_000 ) diff --git a/examples/sort_bounds.jl b/examples/sort_bounds.jl index 85b896d..801e777 100755 --- a/examples/sort_bounds.jl +++ b/examples/sort_bounds.jl @@ -1,6 +1,4 @@ -include(joinpath(dirname(@__DIR__), "src", "CodingTheory.jl")) -using .CodingTheory - +using CodingTheory using DataFrames, CSV using DataFramesMeta: @where using Formatting