From 97953de88a91ab56a3a76ec644b02e670d387491 Mon Sep 17 00:00:00 2001 From: DanArmor <39347109+DanArmor@users.noreply.github.com> Date: Thu, 4 Jan 2024 17:27:15 +0300 Subject: [PATCH] style: renamed prj dirs to prj-src --- .github/workflows/release.yml | 4 ++-- README.md | 14 +++++++------- {ant => ant-src}/.gitignore | 0 {ant => ant-src}/Cargo.lock | 0 {ant => ant-src}/Cargo.toml | 0 {ant => ant-src}/README.md | 0 {ant => ant-src}/src/ant_algo.rs | 0 {ant => ant-src}/src/main.rs | 0 {ant => ant-src}/src/settings.rs | 0 {art-1 => art-1-src}/.gitignore | 0 {art-1 => art-1-src}/Cargo.lock | 0 {art-1 => art-1-src}/Cargo.toml | 0 {art-1 => art-1-src}/README.md | 0 {art-1 => art-1-src}/src/art1.rs | 0 {art-1 => art-1-src}/src/main.rs | 0 {genetic => genetic-src}/.gitignore | 0 {genetic => genetic-src}/Cargo.lock | 0 {genetic => genetic-src}/Cargo.toml | 0 {genetic => genetic-src}/README.md | 0 {genetic => genetic-src}/prebuild.sh | 0 {genetic => genetic-src}/src/genetic.rs | 0 {genetic => genetic-src}/src/main.rs | 0 {genetic => genetic-src}/src/settings.rs | 0 {genetic => genetic-src}/weighted_rand/.gitignore | 0 .../weighted_rand/CHANGELOG.md | 0 {genetic => genetic-src}/weighted_rand/Cargo.lock | 0 {genetic => genetic-src}/weighted_rand/Cargo.toml | 0 .../weighted_rand/LICENSE-APACHE | 0 .../weighted_rand/LICENSE-MIT | 0 {genetic => genetic-src}/weighted_rand/README.md | 0 .../weighted_rand/benches/benchmark.rs | 0 .../weighted_rand/examples/basic.rs | 0 .../weighted_rand/examples/cheating_coin.rs | 0 .../weighted_rand/src/builder.rs | 0 {genetic => genetic-src}/weighted_rand/src/lib.rs | 0 .../weighted_rand/src/table.rs | 0 .../weighted_rand/src/util.rs | 0 {hopfield => hopfield-src}/.gitignore | 0 {hopfield => hopfield-src}/Cargo.lock | 0 {hopfield => hopfield-src}/Cargo.toml | 0 {hopfield => hopfield-src}/README.md | 0 {hopfield => hopfield-src}/src/hopfield.rs | 0 {hopfield => hopfield-src}/src/main.rs | 0 {kosko => kosko-src}/.gitignore | 0 {kosko => kosko-src}/Cargo.lock | 0 {kosko => kosko-src}/Cargo.toml | 0 {kosko => kosko-src}/README.md | 0 {kosko => kosko-src}/src/kosko.rs | 0 {kosko => kosko-src}/src/main.rs | 0 {neuro => neuro-src}/.gitignore | 0 {neuro => neuro-src}/Cargo.lock | 0 {neuro => neuro-src}/Cargo.toml | 0 {neuro => neuro-src}/README.md | 0 {neuro => neuro-src}/src/activation.rs | 0 {neuro => neuro-src}/src/error_func.rs | 0 {neuro => neuro-src}/src/main.rs | 0 {neuro => neuro-src}/src/neuro.rs | 0 {sim-ann => sim-ann-src}/.gitignore | 0 {sim-ann => sim-ann-src}/Cargo.lock | 0 {sim-ann => sim-ann-src}/Cargo.toml | 0 {sim-ann => sim-ann-src}/README.md | 0 {sim-ann => sim-ann-src}/src/chess_black.png | Bin .../src/chess_queen_black.png | Bin .../src/chess_queen_white.png | Bin {sim-ann => sim-ann-src}/src/chess_white.png | Bin {sim-ann => sim-ann-src}/src/main.rs | 0 .../src/simulated_annealing.rs | 0 67 files changed, 9 insertions(+), 9 deletions(-) rename {ant => ant-src}/.gitignore (100%) rename {ant => ant-src}/Cargo.lock (100%) rename {ant => ant-src}/Cargo.toml (100%) rename {ant => ant-src}/README.md (100%) rename {ant => ant-src}/src/ant_algo.rs (100%) rename {ant => ant-src}/src/main.rs (100%) rename {ant => ant-src}/src/settings.rs (100%) rename {art-1 => art-1-src}/.gitignore (100%) rename {art-1 => art-1-src}/Cargo.lock (100%) rename {art-1 => art-1-src}/Cargo.toml (100%) rename {art-1 => art-1-src}/README.md (100%) rename {art-1 => art-1-src}/src/art1.rs (100%) rename {art-1 => art-1-src}/src/main.rs (100%) rename {genetic => genetic-src}/.gitignore (100%) rename {genetic => genetic-src}/Cargo.lock (100%) rename {genetic => genetic-src}/Cargo.toml (100%) rename {genetic => genetic-src}/README.md (100%) rename {genetic => genetic-src}/prebuild.sh (100%) mode change 100755 => 100644 rename {genetic => genetic-src}/src/genetic.rs (100%) rename {genetic => genetic-src}/src/main.rs (100%) rename {genetic => genetic-src}/src/settings.rs (100%) rename {genetic => genetic-src}/weighted_rand/.gitignore (100%) rename {genetic => genetic-src}/weighted_rand/CHANGELOG.md (100%) rename {genetic => genetic-src}/weighted_rand/Cargo.lock (100%) rename {genetic => genetic-src}/weighted_rand/Cargo.toml (100%) rename {genetic => genetic-src}/weighted_rand/LICENSE-APACHE (100%) rename {genetic => genetic-src}/weighted_rand/LICENSE-MIT (100%) rename {genetic => genetic-src}/weighted_rand/README.md (100%) rename {genetic => genetic-src}/weighted_rand/benches/benchmark.rs (100%) rename {genetic => genetic-src}/weighted_rand/examples/basic.rs (100%) rename {genetic => genetic-src}/weighted_rand/examples/cheating_coin.rs (100%) rename {genetic => genetic-src}/weighted_rand/src/builder.rs (100%) rename {genetic => genetic-src}/weighted_rand/src/lib.rs (100%) rename {genetic => genetic-src}/weighted_rand/src/table.rs (100%) rename {genetic => genetic-src}/weighted_rand/src/util.rs (100%) rename {hopfield => hopfield-src}/.gitignore (100%) rename {hopfield => hopfield-src}/Cargo.lock (100%) rename {hopfield => hopfield-src}/Cargo.toml (100%) rename {hopfield => hopfield-src}/README.md (100%) rename {hopfield => hopfield-src}/src/hopfield.rs (100%) rename {hopfield => hopfield-src}/src/main.rs (100%) rename {kosko => kosko-src}/.gitignore (100%) rename {kosko => kosko-src}/Cargo.lock (100%) rename {kosko => kosko-src}/Cargo.toml (100%) rename {kosko => kosko-src}/README.md (100%) rename {kosko => kosko-src}/src/kosko.rs (100%) rename {kosko => kosko-src}/src/main.rs (100%) rename {neuro => neuro-src}/.gitignore (100%) rename {neuro => neuro-src}/Cargo.lock (100%) rename {neuro => neuro-src}/Cargo.toml (100%) rename {neuro => neuro-src}/README.md (100%) rename {neuro => neuro-src}/src/activation.rs (100%) rename {neuro => neuro-src}/src/error_func.rs (100%) rename {neuro => neuro-src}/src/main.rs (100%) rename {neuro => neuro-src}/src/neuro.rs (100%) rename {sim-ann => sim-ann-src}/.gitignore (100%) rename {sim-ann => sim-ann-src}/Cargo.lock (100%) rename {sim-ann => sim-ann-src}/Cargo.toml (100%) rename {sim-ann => sim-ann-src}/README.md (100%) rename {sim-ann => sim-ann-src}/src/chess_black.png (100%) rename {sim-ann => sim-ann-src}/src/chess_queen_black.png (100%) rename {sim-ann => sim-ann-src}/src/chess_queen_white.png (100%) rename {sim-ann => sim-ann-src}/src/chess_white.png (100%) rename {sim-ann => sim-ann-src}/src/main.rs (100%) rename {sim-ann => sim-ann-src}/src/simulated_annealing.rs (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1c3300..7691480 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: RUSTTARGET: ${{ matrix.target }} - EXTRA_FILES: "${{matrix.project}}/README.md forReadme/${{matrix.project}}.gif" - SRC_DIR: ${{ matrix.project }} + EXTRA_FILES: "${{matrix.project}}-src/README.md forReadme/${{matrix.project}}.gif" + SRC_DIR: "${{matrix.project}}-src" TOOLCHAIN_VERSION: "nightly" ARCHIVE_NAME: "${{matrix.project}}-release-${{matrix.target}}" diff --git a/README.md b/README.md index d13d334..6316ffd 100644 --- a/README.md +++ b/README.md @@ -13,25 +13,25 @@ Contains: * Hopfield network ([what it is](https://en.wikipedia.org/wiki/Hopfield_network)) * Bidirectional associative memory ([what it is](https://en.wikipedia.org/wiki/Bidirectional_associative_memory)) -#### [Simulated annealing](/sim-ann/) +#### [Simulated annealing](/sim-ann-src/) N Queen Problem solved with simulated annealing ![sim-ann.gif](/forReadme/sim-ann.gif) -#### [ART-1](/art-1/) +#### [ART-1](/art-1-src/) Clastering data with ART-1 ![art-1.gif](/forReadme/art-1.gif) -#### [Ant algorithm](/ant/) +#### [Ant algorithm](/ant-src/) Travel salesman problem solved with ant algorithm ![ant.gif](/forReadme/ant.gif) -#### [Neural network](/neuro/) +#### [Neural network](/neuro-src/) Image classification using a neural network. Works with 28x28 black-white images @@ -39,18 +39,18 @@ Image classification using a neural network. Works with 28x28 black-white images ![neuro.gif](/forReadme/neuro.gif) -#### [Genetic algorithm](/genetic/) +#### [Genetic algorithm](/genetic-src/) Travel salesman problem solved with genetic algorithm ![genetic.gif](/forReadme/genetic.gif) -#### [Hopfield network](/hopfield/) +#### [Hopfield network](/hopfield-src/) Simple example of hopfield network ![hopfield](forReadme/hopfield.gif) -#### [Biderictional associative memory](/kosko/) +#### [Biderictional associative memory](/kosko-src/) Simple example of Biderectional associative memory ![kosko.gif](forReadme/kosko.gif) \ No newline at end of file diff --git a/ant/.gitignore b/ant-src/.gitignore similarity index 100% rename from ant/.gitignore rename to ant-src/.gitignore diff --git a/ant/Cargo.lock b/ant-src/Cargo.lock similarity index 100% rename from ant/Cargo.lock rename to ant-src/Cargo.lock diff --git a/ant/Cargo.toml b/ant-src/Cargo.toml similarity index 100% rename from ant/Cargo.toml rename to ant-src/Cargo.toml diff --git a/ant/README.md b/ant-src/README.md similarity index 100% rename from ant/README.md rename to ant-src/README.md diff --git a/ant/src/ant_algo.rs b/ant-src/src/ant_algo.rs similarity index 100% rename from ant/src/ant_algo.rs rename to ant-src/src/ant_algo.rs diff --git a/ant/src/main.rs b/ant-src/src/main.rs similarity index 100% rename from ant/src/main.rs rename to ant-src/src/main.rs diff --git a/ant/src/settings.rs b/ant-src/src/settings.rs similarity index 100% rename from ant/src/settings.rs rename to ant-src/src/settings.rs diff --git a/art-1/.gitignore b/art-1-src/.gitignore similarity index 100% rename from art-1/.gitignore rename to art-1-src/.gitignore diff --git a/art-1/Cargo.lock b/art-1-src/Cargo.lock similarity index 100% rename from art-1/Cargo.lock rename to art-1-src/Cargo.lock diff --git a/art-1/Cargo.toml b/art-1-src/Cargo.toml similarity index 100% rename from art-1/Cargo.toml rename to art-1-src/Cargo.toml diff --git a/art-1/README.md b/art-1-src/README.md similarity index 100% rename from art-1/README.md rename to art-1-src/README.md diff --git a/art-1/src/art1.rs b/art-1-src/src/art1.rs similarity index 100% rename from art-1/src/art1.rs rename to art-1-src/src/art1.rs diff --git a/art-1/src/main.rs b/art-1-src/src/main.rs similarity index 100% rename from art-1/src/main.rs rename to art-1-src/src/main.rs diff --git a/genetic/.gitignore b/genetic-src/.gitignore similarity index 100% rename from genetic/.gitignore rename to genetic-src/.gitignore diff --git a/genetic/Cargo.lock b/genetic-src/Cargo.lock similarity index 100% rename from genetic/Cargo.lock rename to genetic-src/Cargo.lock diff --git a/genetic/Cargo.toml b/genetic-src/Cargo.toml similarity index 100% rename from genetic/Cargo.toml rename to genetic-src/Cargo.toml diff --git a/genetic/README.md b/genetic-src/README.md similarity index 100% rename from genetic/README.md rename to genetic-src/README.md diff --git a/genetic/prebuild.sh b/genetic-src/prebuild.sh old mode 100755 new mode 100644 similarity index 100% rename from genetic/prebuild.sh rename to genetic-src/prebuild.sh diff --git a/genetic/src/genetic.rs b/genetic-src/src/genetic.rs similarity index 100% rename from genetic/src/genetic.rs rename to genetic-src/src/genetic.rs diff --git a/genetic/src/main.rs b/genetic-src/src/main.rs similarity index 100% rename from genetic/src/main.rs rename to genetic-src/src/main.rs diff --git a/genetic/src/settings.rs b/genetic-src/src/settings.rs similarity index 100% rename from genetic/src/settings.rs rename to genetic-src/src/settings.rs diff --git a/genetic/weighted_rand/.gitignore b/genetic-src/weighted_rand/.gitignore similarity index 100% rename from genetic/weighted_rand/.gitignore rename to genetic-src/weighted_rand/.gitignore diff --git a/genetic/weighted_rand/CHANGELOG.md b/genetic-src/weighted_rand/CHANGELOG.md similarity index 100% rename from genetic/weighted_rand/CHANGELOG.md rename to genetic-src/weighted_rand/CHANGELOG.md diff --git a/genetic/weighted_rand/Cargo.lock b/genetic-src/weighted_rand/Cargo.lock similarity index 100% rename from genetic/weighted_rand/Cargo.lock rename to genetic-src/weighted_rand/Cargo.lock diff --git a/genetic/weighted_rand/Cargo.toml b/genetic-src/weighted_rand/Cargo.toml similarity index 100% rename from genetic/weighted_rand/Cargo.toml rename to genetic-src/weighted_rand/Cargo.toml diff --git a/genetic/weighted_rand/LICENSE-APACHE b/genetic-src/weighted_rand/LICENSE-APACHE similarity index 100% rename from genetic/weighted_rand/LICENSE-APACHE rename to genetic-src/weighted_rand/LICENSE-APACHE diff --git a/genetic/weighted_rand/LICENSE-MIT b/genetic-src/weighted_rand/LICENSE-MIT similarity index 100% rename from genetic/weighted_rand/LICENSE-MIT rename to genetic-src/weighted_rand/LICENSE-MIT diff --git a/genetic/weighted_rand/README.md b/genetic-src/weighted_rand/README.md similarity index 100% rename from genetic/weighted_rand/README.md rename to genetic-src/weighted_rand/README.md diff --git a/genetic/weighted_rand/benches/benchmark.rs b/genetic-src/weighted_rand/benches/benchmark.rs similarity index 100% rename from genetic/weighted_rand/benches/benchmark.rs rename to genetic-src/weighted_rand/benches/benchmark.rs diff --git a/genetic/weighted_rand/examples/basic.rs b/genetic-src/weighted_rand/examples/basic.rs similarity index 100% rename from genetic/weighted_rand/examples/basic.rs rename to genetic-src/weighted_rand/examples/basic.rs diff --git a/genetic/weighted_rand/examples/cheating_coin.rs b/genetic-src/weighted_rand/examples/cheating_coin.rs similarity index 100% rename from genetic/weighted_rand/examples/cheating_coin.rs rename to genetic-src/weighted_rand/examples/cheating_coin.rs diff --git a/genetic/weighted_rand/src/builder.rs b/genetic-src/weighted_rand/src/builder.rs similarity index 100% rename from genetic/weighted_rand/src/builder.rs rename to genetic-src/weighted_rand/src/builder.rs diff --git a/genetic/weighted_rand/src/lib.rs b/genetic-src/weighted_rand/src/lib.rs similarity index 100% rename from genetic/weighted_rand/src/lib.rs rename to genetic-src/weighted_rand/src/lib.rs diff --git a/genetic/weighted_rand/src/table.rs b/genetic-src/weighted_rand/src/table.rs similarity index 100% rename from genetic/weighted_rand/src/table.rs rename to genetic-src/weighted_rand/src/table.rs diff --git a/genetic/weighted_rand/src/util.rs b/genetic-src/weighted_rand/src/util.rs similarity index 100% rename from genetic/weighted_rand/src/util.rs rename to genetic-src/weighted_rand/src/util.rs diff --git a/hopfield/.gitignore b/hopfield-src/.gitignore similarity index 100% rename from hopfield/.gitignore rename to hopfield-src/.gitignore diff --git a/hopfield/Cargo.lock b/hopfield-src/Cargo.lock similarity index 100% rename from hopfield/Cargo.lock rename to hopfield-src/Cargo.lock diff --git a/hopfield/Cargo.toml b/hopfield-src/Cargo.toml similarity index 100% rename from hopfield/Cargo.toml rename to hopfield-src/Cargo.toml diff --git a/hopfield/README.md b/hopfield-src/README.md similarity index 100% rename from hopfield/README.md rename to hopfield-src/README.md diff --git a/hopfield/src/hopfield.rs b/hopfield-src/src/hopfield.rs similarity index 100% rename from hopfield/src/hopfield.rs rename to hopfield-src/src/hopfield.rs diff --git a/hopfield/src/main.rs b/hopfield-src/src/main.rs similarity index 100% rename from hopfield/src/main.rs rename to hopfield-src/src/main.rs diff --git a/kosko/.gitignore b/kosko-src/.gitignore similarity index 100% rename from kosko/.gitignore rename to kosko-src/.gitignore diff --git a/kosko/Cargo.lock b/kosko-src/Cargo.lock similarity index 100% rename from kosko/Cargo.lock rename to kosko-src/Cargo.lock diff --git a/kosko/Cargo.toml b/kosko-src/Cargo.toml similarity index 100% rename from kosko/Cargo.toml rename to kosko-src/Cargo.toml diff --git a/kosko/README.md b/kosko-src/README.md similarity index 100% rename from kosko/README.md rename to kosko-src/README.md diff --git a/kosko/src/kosko.rs b/kosko-src/src/kosko.rs similarity index 100% rename from kosko/src/kosko.rs rename to kosko-src/src/kosko.rs diff --git a/kosko/src/main.rs b/kosko-src/src/main.rs similarity index 100% rename from kosko/src/main.rs rename to kosko-src/src/main.rs diff --git a/neuro/.gitignore b/neuro-src/.gitignore similarity index 100% rename from neuro/.gitignore rename to neuro-src/.gitignore diff --git a/neuro/Cargo.lock b/neuro-src/Cargo.lock similarity index 100% rename from neuro/Cargo.lock rename to neuro-src/Cargo.lock diff --git a/neuro/Cargo.toml b/neuro-src/Cargo.toml similarity index 100% rename from neuro/Cargo.toml rename to neuro-src/Cargo.toml diff --git a/neuro/README.md b/neuro-src/README.md similarity index 100% rename from neuro/README.md rename to neuro-src/README.md diff --git a/neuro/src/activation.rs b/neuro-src/src/activation.rs similarity index 100% rename from neuro/src/activation.rs rename to neuro-src/src/activation.rs diff --git a/neuro/src/error_func.rs b/neuro-src/src/error_func.rs similarity index 100% rename from neuro/src/error_func.rs rename to neuro-src/src/error_func.rs diff --git a/neuro/src/main.rs b/neuro-src/src/main.rs similarity index 100% rename from neuro/src/main.rs rename to neuro-src/src/main.rs diff --git a/neuro/src/neuro.rs b/neuro-src/src/neuro.rs similarity index 100% rename from neuro/src/neuro.rs rename to neuro-src/src/neuro.rs diff --git a/sim-ann/.gitignore b/sim-ann-src/.gitignore similarity index 100% rename from sim-ann/.gitignore rename to sim-ann-src/.gitignore diff --git a/sim-ann/Cargo.lock b/sim-ann-src/Cargo.lock similarity index 100% rename from sim-ann/Cargo.lock rename to sim-ann-src/Cargo.lock diff --git a/sim-ann/Cargo.toml b/sim-ann-src/Cargo.toml similarity index 100% rename from sim-ann/Cargo.toml rename to sim-ann-src/Cargo.toml diff --git a/sim-ann/README.md b/sim-ann-src/README.md similarity index 100% rename from sim-ann/README.md rename to sim-ann-src/README.md diff --git a/sim-ann/src/chess_black.png b/sim-ann-src/src/chess_black.png similarity index 100% rename from sim-ann/src/chess_black.png rename to sim-ann-src/src/chess_black.png diff --git a/sim-ann/src/chess_queen_black.png b/sim-ann-src/src/chess_queen_black.png similarity index 100% rename from sim-ann/src/chess_queen_black.png rename to sim-ann-src/src/chess_queen_black.png diff --git a/sim-ann/src/chess_queen_white.png b/sim-ann-src/src/chess_queen_white.png similarity index 100% rename from sim-ann/src/chess_queen_white.png rename to sim-ann-src/src/chess_queen_white.png diff --git a/sim-ann/src/chess_white.png b/sim-ann-src/src/chess_white.png similarity index 100% rename from sim-ann/src/chess_white.png rename to sim-ann-src/src/chess_white.png diff --git a/sim-ann/src/main.rs b/sim-ann-src/src/main.rs similarity index 100% rename from sim-ann/src/main.rs rename to sim-ann-src/src/main.rs diff --git a/sim-ann/src/simulated_annealing.rs b/sim-ann-src/src/simulated_annealing.rs similarity index 100% rename from sim-ann/src/simulated_annealing.rs rename to sim-ann-src/src/simulated_annealing.rs