From cfc8be65abec59ba065a44847b1ae1949111e535 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Wed, 10 Jan 2024 20:39:25 -0500 Subject: [PATCH 01/13] frontend workflow check --- .github/workflows/frontend.yml | 69 ++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/frontend.yml diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 00000000..d00e00e5 --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,69 @@ +name: Frontend Workflow Check +on: [pull_request, push] + +concurrency: preview-${{ github.ref }} + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install + run: pnpm install --frozen-lockfile + id: install + + - name: Run prettier + run: yarn run format:check + + - name: Run ESLint + run: yarn run lint + # Always run the linter, even if prettier failed + if: ${{ steps.install.outcome == 'success' }} + + build: + name: Build & Stage + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install + run: pnpm install --frozen-lockfile + + - name: Build + run: yarn build + env: + CI: 'true' + PUBLIC_URL: ${{ env.npm_package_homepage }}/pr-preview/pr-${{ github.event.number }}/ + REACT_APP_PREVIEW: 'true' + REACT_APP_FIREBASE_API_KEY: ${{ secrets.REACT_APP_FIREBASE_API_KEY_DEV }} + REACT_APP_FIREBASE_AUTH_DOMAIN: ${{ secrets.REACT_APP_FIREBASE_AUTH_DOMAIN_DEV }} + REACT_APP_FIREBASE_PROJECT_ID: ${{ secrets.REACT_APP_FIREBASE_PROJECT_ID_DEV }} + REACT_APP_FIREBASE_STORAGE_BUCKET: ${{ secrets.REACT_APP_FIREBASE_STORAGE_BUCKET_DEV }} + REACT_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.REACT_APP_FIREBASE_MESSAGING_SENDER_ID_DEV }} + REACT_APP_FIREBASE_APP_ID: ${{ secrets.REACT_APP_FIREBASE_APP_ID_DEV }} + REACT_APP_FIREBASE_MEASUREMENT_ID: ${{ secrets.REACT_APP_FIREBASE_MEASUREMENT_ID_DEV }} + + - name: Stage + uses: rossjrw/pr-preview-action@v1 + with: + source-dir: ./build/ + + + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install + run: pnpm install --frozen-lockfile + + - name: Test + run: pnpm run test --coverage + env: + CI: 'true' \ No newline at end of file From f724cf75ceaf28f5e8e17e1c22deefba378416d8 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Wed, 10 Jan 2024 20:46:45 -0500 Subject: [PATCH 02/13] added new step for installing npm --- .github/workflows/frontend.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index d00e00e5..d0b4c8b5 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -11,6 +11,9 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Install pnpm + run: npm install -g pnpm + - name: Install run: pnpm install --frozen-lockfile id: install @@ -29,6 +32,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + + - name: Install pnpm + run: npm install -g pnpm - name: Install run: pnpm install --frozen-lockfile @@ -59,6 +65,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + + - name: Install pnpm + run: npm install -g pnpm - name: Install run: pnpm install --frozen-lockfile From 8e174e6c2c7a07d5aaa162e5cb1e0fa8aca0eb36 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 21:40:55 -0500 Subject: [PATCH 03/13] added working directory line for frontend --- .github/workflows/frontend.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index d0b4c8b5..65e14b90 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -13,18 +13,22 @@ jobs: - name: Install pnpm run: npm install -g pnpm + working-directory: ./frontend - name: Install run: pnpm install --frozen-lockfile id: install + working-directory: ./frontend - name: Run prettier run: yarn run format:check + working-directory: ./frontend - name: Run ESLint run: yarn run lint # Always run the linter, even if prettier failed if: ${{ steps.install.outcome == 'success' }} + working-directory: ./frontend build: name: Build & Stage @@ -35,9 +39,11 @@ jobs: - name: Install pnpm run: npm install -g pnpm + working-directory: ./frontend - name: Install run: pnpm install --frozen-lockfile + working-directory: ./frontend - name: Build run: yarn build @@ -52,6 +58,7 @@ jobs: REACT_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.REACT_APP_FIREBASE_MESSAGING_SENDER_ID_DEV }} REACT_APP_FIREBASE_APP_ID: ${{ secrets.REACT_APP_FIREBASE_APP_ID_DEV }} REACT_APP_FIREBASE_MEASUREMENT_ID: ${{ secrets.REACT_APP_FIREBASE_MEASUREMENT_ID_DEV }} + working-directory: ./frontend - name: Stage uses: rossjrw/pr-preview-action@v1 @@ -68,11 +75,14 @@ jobs: - name: Install pnpm run: npm install -g pnpm + working-directory: ./frontend - name: Install run: pnpm install --frozen-lockfile + working-directory: ./frontend - name: Test run: pnpm run test --coverage env: - CI: 'true' \ No newline at end of file + CI: 'true' + working-directory: ./frontend \ No newline at end of file From e408698a21cf9129d06f3d4dbc189710b6e6307d Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 21:52:30 -0500 Subject: [PATCH 04/13] added specific prettier dev dependency --- frontend/package.json | 4 +++- frontend/pnpm-lock.yaml | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index fe3e789e..8b026c45 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,8 @@ "scripts": { "preinstall": "npx only-allow pnpm", "lint": "next lint", - "start": "next dev" + "start": "next dev", + "format:check": "prettier \"**/*.{js,jsx,ts,tsx,json}\" -l" }, "keywords": [], "author": "", @@ -61,6 +62,7 @@ "depcheck": "^1.4.7", "eslint": "^8.52.0", "eslint-plugin-react": "^7.33.2", + "prettier": "3.2.2", "typescript": "^5.2.2" } } diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 57e3962e..6029cc0b 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -154,6 +154,9 @@ devDependencies: eslint-plugin-react: specifier: ^7.33.2 version: 7.33.2(eslint@8.52.0) + prettier: + specifier: 3.2.2 + version: 3.2.2 typescript: specifier: ^5.2.2 version: 5.2.2 @@ -5144,6 +5147,12 @@ packages: engines: {node: '>= 0.8.0'} dev: true + /prettier@3.2.2: + resolution: {integrity: sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==} + engines: {node: '>=14'} + hasBin: true + dev: true + /pretty-bytes@6.1.1: resolution: {integrity: sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==} engines: {node: ^14.13.1 || >=16.0.0} From e3f38f160c94eabacaed018a152ddcf2c6bb2523 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 21:58:09 -0500 Subject: [PATCH 05/13] prettier dev dependency --- .github/workflows/frontend.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 65e14b90..abf674c6 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -21,11 +21,11 @@ jobs: working-directory: ./frontend - name: Run prettier - run: yarn run format:check + run: pnpm run format:check working-directory: ./frontend - name: Run ESLint - run: yarn run lint + run: pnpm run lint # Always run the linter, even if prettier failed if: ${{ steps.install.outcome == 'success' }} working-directory: ./frontend @@ -46,7 +46,7 @@ jobs: working-directory: ./frontend - name: Build - run: yarn build + run: pnpm build env: CI: 'true' PUBLIC_URL: ${{ env.npm_package_homepage }}/pr-preview/pr-${{ github.event.number }}/ From 454183bfa826d6c8ba755f6516fd6e791019b9b7 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 22:00:08 -0500 Subject: [PATCH 06/13] removed prettier dependency --- .github/workflows/frontend.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index abf674c6..2a400805 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -20,14 +20,9 @@ jobs: id: install working-directory: ./frontend - - name: Run prettier - run: pnpm run format:check - working-directory: ./frontend - name: Run ESLint run: pnpm run lint - # Always run the linter, even if prettier failed - if: ${{ steps.install.outcome == 'success' }} working-directory: ./frontend build: From 77d1943467c09cc52152e1bb8401c8d6ec616753 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 22:04:20 -0500 Subject: [PATCH 07/13] remove dtest block --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 8b026c45..94c132d6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,7 +5,7 @@ "preinstall": "npx only-allow pnpm", "lint": "next lint", "start": "next dev", - "format:check": "prettier \"**/*.{js,jsx,ts,tsx,json}\" -l" + "build": "next build" }, "keywords": [], "author": "", From 7f25e3231e834e712ad63288fe8ff5317a7b80b1 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 22:05:35 -0500 Subject: [PATCH 08/13] removed test block for now --- .github/workflows/frontend.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 2a400805..8246ac28 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -59,25 +59,3 @@ jobs: uses: rossjrw/pr-preview-action@v1 with: source-dir: ./build/ - - - test: - name: Test - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install pnpm - run: npm install -g pnpm - working-directory: ./frontend - - - name: Install - run: pnpm install --frozen-lockfile - working-directory: ./frontend - - - name: Test - run: pnpm run test --coverage - env: - CI: 'true' - working-directory: ./frontend \ No newline at end of file From 7d5afdda06a968b2ec6c31eb1220cb6af87304f1 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 22:09:02 -0500 Subject: [PATCH 09/13] changed env for build and stage --- .github/workflows/frontend.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 8246ac28..317df24f 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -26,7 +26,7 @@ jobs: working-directory: ./frontend build: - name: Build & Stage + name: Build runs-on: ubuntu-latest steps: - name: Checkout @@ -43,19 +43,6 @@ jobs: - name: Build run: pnpm build env: - CI: 'true' - PUBLIC_URL: ${{ env.npm_package_homepage }}/pr-preview/pr-${{ github.event.number }}/ - REACT_APP_PREVIEW: 'true' - REACT_APP_FIREBASE_API_KEY: ${{ secrets.REACT_APP_FIREBASE_API_KEY_DEV }} - REACT_APP_FIREBASE_AUTH_DOMAIN: ${{ secrets.REACT_APP_FIREBASE_AUTH_DOMAIN_DEV }} - REACT_APP_FIREBASE_PROJECT_ID: ${{ secrets.REACT_APP_FIREBASE_PROJECT_ID_DEV }} - REACT_APP_FIREBASE_STORAGE_BUCKET: ${{ secrets.REACT_APP_FIREBASE_STORAGE_BUCKET_DEV }} - REACT_APP_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.REACT_APP_FIREBASE_MESSAGING_SENDER_ID_DEV }} - REACT_APP_FIREBASE_APP_ID: ${{ secrets.REACT_APP_FIREBASE_APP_ID_DEV }} - REACT_APP_FIREBASE_MEASUREMENT_ID: ${{ secrets.REACT_APP_FIREBASE_MEASUREMENT_ID_DEV }} + REACT_APP_CAPTCHA_SITE_KEY: ${{ secrets.REACT_APP_CAPTCHA_SITE_KEY }} + REACT_APP_FEEDBACK_EMAIL: ${{ secrets.REACT_APP_FEEDBACK_EMAIL }} working-directory: ./frontend - - - name: Stage - uses: rossjrw/pr-preview-action@v1 - with: - source-dir: ./build/ From c52fd0d63b53f2b63c8d41419dd2ec2789d60ffa Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 22:11:03 -0500 Subject: [PATCH 10/13] added git dom --- frontend/package.json | 1 + frontend/pnpm-lock.yaml | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 94c132d6..5b5ec3b5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -57,6 +57,7 @@ }, "devDependencies": { "@next/eslint-plugin-next": "^14.0.1", + "@types/react-dom": "^18.2.18", "@typescript-eslint/eslint-plugin": "^6.9.0", "@typescript-eslint/parser": "^6.9.0", "depcheck": "^1.4.7", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 6029cc0b..4722fd7e 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -118,7 +118,7 @@ dependencies: version: 2.6.0(plotly.js@2.27.0)(react@18.2.0) react-redux: specifier: ^8.1.3 - version: 8.1.3(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0)(redux@4.2.1) + version: 8.1.3(@types/react-dom@18.2.18)(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0)(redux@4.2.1) react-syntax-highlighter: specifier: ^15.5.0 version: 15.5.0(react@18.2.0) @@ -139,6 +139,9 @@ devDependencies: '@next/eslint-plugin-next': specifier: ^14.0.1 version: 14.0.1 + '@types/react-dom': + specifier: ^18.2.18 + version: 18.2.18 '@typescript-eslint/eslint-plugin': specifier: ^6.9.0 version: 6.9.0(@typescript-eslint/parser@6.9.0)(eslint@8.52.0)(typescript@5.2.2) @@ -1652,7 +1655,7 @@ packages: dependencies: immer: 9.0.21 react: 18.2.0 - react-redux: 8.1.3(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0)(redux@4.2.1) + react-redux: 8.1.3(@types/react-dom@18.2.18)(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0)(redux@4.2.1) redux: 4.2.1 redux-thunk: 2.4.2(redux@4.2.1) reselect: 4.1.8 @@ -1961,7 +1964,11 @@ packages: /@types/prop-types@15.7.9: resolution: {integrity: sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g==} - dev: false + + /@types/react-dom@18.2.18: + resolution: {integrity: sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==} + dependencies: + '@types/react': 18.2.33 /@types/react-google-recaptcha@2.1.7: resolution: {integrity: sha512-qAif3VMKgIrT6l3YcCN29F0W0LZR9Q5jxLvH2MANgc2Hm3Pk27goHBwj3Ri4vtFc0jZyFt6npdERdzUtZtJsLQ==} @@ -1994,11 +2001,9 @@ packages: '@types/prop-types': 15.7.9 '@types/scheduler': 0.16.5 csstype: 3.1.2 - dev: false /@types/scheduler@0.16.5: resolution: {integrity: sha512-s/FPdYRmZR8SjLWGMCuax7r3qCWQw9QKHzXVukAuuIJkXkDRwp+Pu5LMIVFi0Fxbav35WURicYr8u1QsoybnQw==} - dev: false /@types/semver@7.5.4: resolution: {integrity: sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ==} @@ -2810,7 +2815,6 @@ packages: /csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} - dev: false /d3-array@1.2.4: resolution: {integrity: sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==} @@ -5356,7 +5360,7 @@ packages: react: 18.2.0 dev: false - /react-redux@8.1.3(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0)(redux@4.2.1): + /react-redux@8.1.3(@types/react-dom@18.2.18)(@types/react@18.2.33)(react-dom@18.2.0)(react@18.2.0)(redux@4.2.1): resolution: {integrity: sha512-n0ZrutD7DaX/j9VscF+uTALI3oUPa/pO4Z3soOBIjuRn/FzVu6aehhysxZCLi6y7duMf52WNZGMl7CtuK5EnRw==} peerDependencies: '@types/react': ^16.8 || ^17.0 || ^18.0 @@ -5380,6 +5384,7 @@ packages: '@babel/runtime': 7.23.2 '@types/hoist-non-react-statics': 3.3.4 '@types/react': 18.2.33 + '@types/react-dom': 18.2.18 '@types/use-sync-external-store': 0.0.3 hoist-non-react-statics: 3.3.2 react: 18.2.0 From 5bc1fa295a8098ec21148aa7fa8bc771ef5a0653 Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 22:15:59 -0500 Subject: [PATCH 11/13] added new test components without sample unit test --- .github/workflows/frontend.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 317df24f..3f9e894a 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -25,13 +25,13 @@ jobs: run: pnpm run lint working-directory: ./frontend - build: - name: Build + test: + name: Test runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - + - name: Install pnpm run: npm install -g pnpm working-directory: ./frontend @@ -40,9 +40,8 @@ jobs: run: pnpm install --frozen-lockfile working-directory: ./frontend - - name: Build - run: pnpm build - env: - REACT_APP_CAPTCHA_SITE_KEY: ${{ secrets.REACT_APP_CAPTCHA_SITE_KEY }} - REACT_APP_FEEDBACK_EMAIL: ${{ secrets.REACT_APP_FEEDBACK_EMAIL }} + - name: Test + run: echo "pnpm run test should be here" working-directory: ./frontend + + \ No newline at end of file From 7ceaad2667e713eda4d291cb5ec52f6c7c3bae8e Mon Sep 17 00:00:00 2001 From: Prisha Vallamsetti Date: Tue, 16 Jan 2024 22:20:29 -0500 Subject: [PATCH 12/13] made changes on checkout synatx and removed build --- .github/workflows/frontend.yml | 4 ++-- frontend/package.json | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 3f9e894a..ba77050f 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install pnpm run: npm install -g pnpm @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install pnpm run: npm install -g pnpm diff --git a/frontend/package.json b/frontend/package.json index 5b5ec3b5..2bee4225 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,8 +4,7 @@ "scripts": { "preinstall": "npx only-allow pnpm", "lint": "next lint", - "start": "next dev", - "build": "next build" + "start": "next dev" }, "keywords": [], "author": "", From 21e2c9921ce7ce7f07dab32bcecd66e004ee6236 Mon Sep 17 00:00:00 2001 From: farisdurrani Date: Fri, 2 Feb 2024 01:07:54 +0000 Subject: [PATCH 13/13] :art: Auto-generated directory tree for repository in Architecture.md --- .github/Architecture.md | 310 ++++++++++++++++++++-------------------- 1 file changed, 155 insertions(+), 155 deletions(-) diff --git a/.github/Architecture.md b/.github/Architecture.md index ddb4b76a..5dae829a 100644 --- a/.github/Architecture.md +++ b/.github/Architecture.md @@ -5,163 +5,149 @@ ``` 📦 training | |- 📂 training: +| | |- 📂 core: +| | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now) +| | | |- 📜 dl_model.py : torch model based on user specifications from drag and drop +| | | |- 📜 dataset.py : read in the dataset through URL or file upload +| | | |- 📜 authenticator.py +| | | |- 📜 trainer.py +| | | |- 📜 criterion.py +| | | |- 📜 __init__.py | | |- 📂 routes: -| | | |- 📂 tabular: -| | | | |- 📜 __init__.py +| | | |- 📂 image: | | | | |- 📜 schemas.py +| | | | |- 📜 __init__.py +| | | | |- 📜 image.py +| | | |- 📂 tabular: | | | | |- 📜 tabular.py +| | | | |- 📜 schemas.py +| | | | |- 📜 __init__.py | | | |- 📂 datasets: | | | | |- 📂 default: +| | | | | |- 📜 schemas.py | | | | | |- 📜 columns.py | | | | | |- 📜 __init__.py -| | | | | |- 📜 schemas.py | | | | |- 📜 __init__.py -| | | |- 📂 image: -| | | | |- 📜 image.py -| | | | |- 📜 __init__.py -| | | | |- 📜 schemas.py -| | | |- 📜 __init__.py | | | |- 📜 schemas.py -| | |- 📂 core: -| | | |- 📜 dl_model.py : torch model based on user specifications from drag and drop -| | | |- 📜 trainer.py -| | | |- 📜 authenticator.py | | | |- 📜 __init__.py -| | | |- 📜 dataset.py : read in the dataset through URL or file upload -| | | |- 📜 criterion.py -| | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now) | | |- 📜 settings.py -| | |- 📜 urls.py -| | |- 📜 wsgi.py | | |- 📜 asgi.py +| | |- 📜 wsgi.py +| | |- 📜 urls.py | | |- 📜 __init__.py -| |- 📜 poetry.lock -| |- 📜 pyproject.toml -| |- 📜 docker-compose.prod.yml +| |- 📜 cli.py +| |- 📜 Dockerfile +| |- 📜 README.md | |- 📜 docker-compose.yml -| |- 📜 Dockerfile.prod -| |- 📜 pytest.ini | |- 📜 manage.py +| |- 📜 poetry.lock +| |- 📜 Dockerfile.prod | |- 📜 environment.yml -| |- 📜 README.md -| |- 📜 Dockerfile -| |- 📜 cli.py +| |- 📜 pytest.ini +| |- 📜 pyproject.toml +| |- 📜 docker-compose.prod.yml ``` ## Frontend Architecture ``` 📦 frontend -| |- 📂 layer_docs: -| | |- 📜 Linear.md : Doc for Linear layer -| | |- 📜 softmax_equation.png : PNG file of Softmax equation -| | |- 📜 Softmax.md : Doc for Softmax layer -| | |- 📜 ReLU.md : Doc for ReLU later -| |- 📂 public: -| | |- 📂 images: -| | | |- 📂 learn_mod_images: -| | | | |- 📜 binarystepactivation.png -| | | | |- 📜 lossExampleEquation.png -| | | | |- 📜 robotImage.jpg -| | | | |- 📜 sigmoidfunction.png -| | | | |- 📜 tanhactivation.png -| | | | |- 📜 lossExampleTable.png -| | | | |- 📜 neuron.png -| | | | |- 📜 sigmoidactivation.png -| | | | |- 📜 ReLUactivation.png -| | | | |- 📜 lossExample.png -| | | | |- 📜 neuralnet.png -| | | | |- 📜 neuronWithEquation.png -| | | | |- 📜 LeakyReLUactivation.png -| | | |- 📂 wiki_images: -| | | | |- 📜 tanh_equation.png -| | | | |- 📜 avgpool_maxpool.gif -| | | | |- 📜 batchnorm_diagram.png -| | | | |- 📜 conv2d.gif -| | | | |- 📜 tanh_plot.png -| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation -| | | | |- 📜 dropout_diagram.png -| | | | |- 📜 sigmoid_equation.png -| | | | |- 📜 conv2d2.gif -| | | | |- 📜 maxpool2d.gif -| | | |- 📂 logos: -| | | | |- 📂 dlp_branding: -| | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public -| | | | | |- 📜 dlp-logo.svg : DLP Logo, duplicate of files in public, but essential as the frontend can't read public -| | | | |- 📜 flask-logo.png -| | | | |- 📜 dsgt-logo-white-back.png -| | | | |- 📜 aws-logo.png -| | | | |- 📜 pandas-logo.png -| | | | |- 📜 react-logo.png -| | | | |- 📜 github.png -| | | | |- 📜 google.png -| | | | |- 📜 dsgt-logo-dark.png -| | | | |- 📜 dsgt-logo-light.png -| | | | |- 📜 python-logo.png -| | | | |- 📜 pytorch-logo.png -| | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session -| | |- 📜 dlp-logo.ico : DLP Logo -| | |- 📜 index.html : Base HTML file that will be initially rendered -| | |- 📜 robots.txt -| | |- 📜 manifest.json : Default React file for choosing icon based on | |- 📂 src: +| | |- 📂 pages: +| | | |- 📂 train: +| | | | |- 📜 [train_space_id].tsx +| | | | |- 📜 index.tsx +| | | |- 📜 wiki.tsx +| | | |- 📜 _app.tsx +| | | |- 📜 learn.tsx +| | | |- 📜 LearnContent.tsx +| | | |- 📜 forgot.tsx +| | | |- 📜 feedback.tsx +| | | |- 📜 about.tsx +| | | |- 📜 dashboard.tsx +| | | |- 📜 login.tsx +| | | |- 📜 _document.tsx +| | | |- 📜 settings.tsx +| | |- 📂 common: +| | | |- 📂 utils: +| | | | |- 📜 dateFormat.ts +| | | | |- 📜 firebase.ts +| | | | |- 📜 dndHelpers.ts +| | | |- 📂 redux: +| | | | |- 📜 hooks.ts +| | | | |- 📜 store.ts +| | | | |- 📜 userLogin.ts +| | | | |- 📜 train.ts +| | | | |- 📜 backendApi.ts +| | | |- 📂 styles: +| | | | |- 📜 globals.css +| | | | |- 📜 Home.module.css +| | | |- 📂 components: +| | | | |- 📜 HtmlTooltip.tsx +| | | | |- 📜 DlpTooltip.tsx +| | | | |- 📜 TitleText.tsx +| | | | |- 📜 ClientOnlyPortal.tsx +| | | | |- 📜 EmailInput.tsx +| | | | |- 📜 Spacer.tsx +| | | | |- 📜 Footer.tsx +| | | | |- 📜 NavBarMain.tsx | | |- 📂 features: -| | | |- 📂 OpenAi: -| | | | |- 📜 openAiUtils.ts -| | | |- 📂 Feedback: -| | | | |- 📂 redux: -| | | | | |- 📜 feedbackApi.ts | | | |- 📂 Train: -| | | | |- 📂 types: -| | | | | |- 📜 trainTypes.ts | | | | |- 📂 features: -| | | | | |- 📂 Image: -| | | | | | |- 📂 types: -| | | | | | | |- 📜 imageTypes.ts +| | | | | |- 📂 Tabular: | | | | | | |- 📂 redux: -| | | | | | | |- 📜 imageApi.ts -| | | | | | | |- 📜 imageActions.ts -| | | | | | |- 📂 components: -| | | | | | | |- 📜 ImageParametersStep.tsx -| | | | | | | |- 📜 ImageFlow.tsx -| | | | | | | |- 📜 ImageDatasetStep.tsx -| | | | | | | |- 📜 ImageReviewStep.tsx -| | | | | | | |- 📜 ImageTrainspace.tsx +| | | | | | | |- 📜 tabularActions.ts +| | | | | | | |- 📜 tabularApi.ts | | | | | | |- 📂 constants: -| | | | | | | |- 📜 imageConstants.ts -| | | | | | |- 📜 index.ts -| | | | | |- 📂 Tabular: +| | | | | | | |- 📜 tabularConstants.ts | | | | | | |- 📂 types: | | | | | | | |- 📜 tabularTypes.ts -| | | | | | |- 📂 redux: -| | | | | | | |- 📜 tabularApi.ts -| | | | | | | |- 📜 tabularActions.ts | | | | | | |- 📂 components: | | | | | | | |- 📜 TabularDatasetStep.tsx -| | | | | | | |- 📜 TabularReviewStep.tsx -| | | | | | | |- 📜 TabularParametersStep.tsx | | | | | | | |- 📜 TabularTrainspace.tsx | | | | | | | |- 📜 TabularFlow.tsx +| | | | | | | |- 📜 TabularParametersStep.tsx +| | | | | | | |- 📜 TabularReviewStep.tsx +| | | | | | |- 📜 index.ts +| | | | | |- 📂 Image: +| | | | | | |- 📂 redux: +| | | | | | | |- 📜 imageActions.ts +| | | | | | | |- 📜 imageApi.ts | | | | | | |- 📂 constants: -| | | | | | | |- 📜 tabularConstants.ts +| | | | | | | |- 📜 imageConstants.ts +| | | | | | |- 📂 types: +| | | | | | | |- 📜 imageTypes.ts +| | | | | | |- 📂 components: +| | | | | | | |- 📜 ImageReviewStep.tsx +| | | | | | | |- 📜 ImageParametersStep.tsx +| | | | | | | |- 📜 ImageDatasetStep.tsx +| | | | | | | |- 📜 ImageTrainspace.tsx +| | | | | | | |- 📜 ImageFlow.tsx | | | | | | |- 📜 index.ts | | | | |- 📂 redux: | | | | | |- 📜 trainspaceApi.ts | | | | | |- 📜 trainspaceSlice.ts +| | | | |- 📂 constants: +| | | | | |- 📜 trainConstants.ts +| | | | |- 📂 types: +| | | | | |- 📜 trainTypes.ts | | | | |- 📂 components: | | | | | |- 📜 CreateTrainspace.tsx -| | | | | |- 📜 DatasetStepLayout.tsx | | | | | |- 📜 TrainspaceLayout.tsx -| | | | |- 📂 constants: -| | | | | |- 📜 trainConstants.ts +| | | | | |- 📜 DatasetStepLayout.tsx +| | | |- 📂 Feedback: +| | | | |- 📂 redux: +| | | | | |- 📜 feedbackApi.ts +| | | |- 📂 OpenAi: +| | | | |- 📜 openAiUtils.ts | | | |- 📂 LearnMod: -| | | | |- 📜 Exercise.tsx | | | | |- 📜 MCQuestion.tsx +| | | | |- 📜 ModulesSideBar.tsx +| | | | |- 📜 ImageComponent.tsx +| | | | |- 📜 LearningModulesContent.tsx | | | | |- 📜 FRQuestion.tsx +| | | | |- 📜 Exercise.tsx | | | | |- 📜 ClassCard.tsx -| | | | |- 📜 LearningModulesContent.tsx -| | | | |- 📜 ImageComponent.tsx -| | | | |- 📜 ModulesSideBar.tsx | | | |- 📂 Dashboard: | | | | |- 📂 redux: | | | | | |- 📜 dashboardApi.ts @@ -169,59 +155,73 @@ | | | | | |- 📜 TrainDoughnutChart.tsx | | | | | |- 📜 TrainBarChart.tsx | | | | | |- 📜 TrainDataGrid.tsx -| | |- 📂 pages: -| | | |- 📂 train: -| | | | |- 📜 [train_space_id].tsx -| | | | |- 📜 index.tsx -| | | |- 📜 about.tsx -| | | |- 📜 dashboard.tsx -| | | |- 📜 _document.tsx -| | | |- 📜 learn.tsx -| | | |- 📜 LearnContent.tsx -| | | |- 📜 wiki.tsx -| | | |- 📜 forgot.tsx -| | | |- 📜 settings.tsx -| | | |- 📜 _app.tsx -| | | |- 📜 feedback.tsx -| | | |- 📜 login.tsx | | |- 📂 backend_outputs: -| | | |- 📜 model.pkl -| | | |- 📜 model.pt : Last model.pt output | | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output -| | |- 📂 common: -| | | |- 📂 redux: -| | | | |- 📜 store.ts -| | | | |- 📜 train.ts -| | | | |- 📜 backendApi.ts -| | | | |- 📜 hooks.ts -| | | | |- 📜 userLogin.ts -| | | |- 📂 components: -| | | | |- 📜 EmailInput.tsx -| | | | |- 📜 TitleText.tsx -| | | | |- 📜 NavBarMain.tsx -| | | | |- 📜 Spacer.tsx -| | | | |- 📜 DlpTooltip.tsx -| | | | |- 📜 Footer.tsx -| | | | |- 📜 HtmlTooltip.tsx -| | | | |- 📜 ClientOnlyPortal.tsx -| | | |- 📂 utils: -| | | | |- 📜 dateFormat.ts -| | | | |- 📜 dndHelpers.ts -| | | | |- 📜 firebase.ts -| | | |- 📂 styles: -| | | | |- 📜 globals.css -| | | | |- 📜 Home.module.css +| | | |- 📜 model.pt : Last model.pt output +| | | |- 📜 model.pkl | | |- 📜 GlobalStyle.ts -| | |- 📜 constants.ts | | |- 📜 iris.csv : Sample CSV data +| | |- 📜 constants.ts | | |- 📜 next-env.d.ts +| |- 📂 public: +| | |- 📂 images: +| | | |- 📂 wiki_images: +| | | | |- 📜 maxpool2d.gif +| | | | |- 📜 tanh_equation.png +| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation +| | | | |- 📜 conv2d2.gif +| | | | |- 📜 dropout_diagram.png +| | | | |- 📜 tanh_plot.png +| | | | |- 📜 avgpool_maxpool.gif +| | | | |- 📜 batchnorm_diagram.png +| | | | |- 📜 conv2d.gif +| | | | |- 📜 sigmoid_equation.png +| | | |- 📂 logos: +| | | | |- 📂 dlp_branding: +| | | | | |- 📜 dlp-logo.svg : DLP Logo, duplicate of files in public, but essential as the frontend can't read public +| | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public +| | | | |- 📜 aws-logo.png +| | | | |- 📜 pytorch-logo.png +| | | | |- 📜 python-logo.png +| | | | |- 📜 react-logo.png +| | | | |- 📜 github.png +| | | | |- 📜 pandas-logo.png +| | | | |- 📜 google.png +| | | | |- 📜 dsgt-logo-white-back.png +| | | | |- 📜 dsgt-logo-dark.png +| | | | |- 📜 flask-logo.png +| | | | |- 📜 dsgt-logo-light.png +| | | |- 📂 learn_mod_images: +| | | | |- 📜 lossExample.png +| | | | |- 📜 neuronWithEquation.png +| | | | |- 📜 neuralnet.png +| | | | |- 📜 robotImage.jpg +| | | | |- 📜 sigmoidfunction.png +| | | | |- 📜 lossExampleTable.png +| | | | |- 📜 LeakyReLUactivation.png +| | | | |- 📜 lossExampleEquation.png +| | | | |- 📜 ReLUactivation.png +| | | | |- 📜 neuron.png +| | | | |- 📜 tanhactivation.png +| | | | |- 📜 sigmoidactivation.png +| | | | |- 📜 binarystepactivation.png +| | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session +| | |- 📜 manifest.json : Default React file for choosing icon based on +| | |- 📜 index.html : Base HTML file that will be initially rendered +| | |- 📜 robots.txt +| | |- 📜 dlp-logo.ico : DLP Logo +| |- 📂 layer_docs: +| | |- 📜 softmax_equation.png : PNG file of Softmax equation +| | |- 📜 Softmax.md : Doc for Softmax layer +| | |- 📜 Linear.md : Doc for Linear layer +| | |- 📜 ReLU.md : Doc for ReLU later | |- 📜 .eslintrc.json -| |- 📜 package.json | |- 📜 .eslintignore -| |- 📜 next.config.js | |- 📜 pnpm-lock.yaml +| |- 📜 next.config.js +| |- 📜 jest.config.js +| |- 📜 package.json | |- 📜 tsconfig.json | |- 📜 next-env.d.ts -| |- 📜 jest.config.js ```