Skip to content
Closed

Qw #11493

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
5987f86
Add automatic differentiation algorithm (#10977)
PoojanSmart Oct 27, 2023
34eb9c5
Added doctest to hash_table.py (#11023)
Suyashd999 Oct 27, 2023
e4eda14
Add perplexity loss algorithm (#11028)
PoojanSmart Oct 27, 2023
f336cca
Added doctest to double_hash.py (#11020)
Suyashd999 Oct 27, 2023
185a355
Create monotonic_array.py (#11025)
Khushi-Shukla Oct 27, 2023
b0837d3
Increase code coverage for dijkstra algorithm (#10695)
R055A Oct 27, 2023
0eb1825
Tests for odd_even_transposition_parallel (#10926)
RaymondDashWu Oct 27, 2023
5df16f1
Add doctest to hashes/hamming_code.py (#10961)
tielarose Oct 27, 2023
a0e80a7
Added Gradient Boosting Classifier (#10944)
SannketNikam Oct 27, 2023
1e1ee00
Excess 3 code (#11001)
manmita Oct 27, 2023
f243631
Add FuzzySet Class for Triangular Fuzzy Sets (#11036)
Shreya123714 Oct 28, 2023
b51b833
Added doctest to heap.py (#11059)
Suyashd999 Oct 28, 2023
d80ee90
Create crossword_puzzle_solver.py (#11011)
Khushi-Shukla Oct 28, 2023
444dfb0
Added adams-bashforth method of order 2, 3, 4, 5 (#10969)
ravi-ivar-7 Oct 28, 2023
aa5c97d
Create ipv4_conversion.py (#11008)
its-tapas Oct 28, 2023
e3eb9da
Add bitap_string_match algo (#11060)
edy252 Oct 28, 2023
5019561
Create multiplexer.py (#11064)
its-tapas Oct 29, 2023
bad39cd
Add more doctest to intro_sort.py #9943 (#11068)
ojas-wani Oct 29, 2023
adb13a1
Update instagram_pic.py (#10957)
nababuddin Oct 29, 2023
8217f9b
Create find_previous_power_of_two.py (#11004)
its-tapas Oct 29, 2023
403d3b8
Add Integer Square Root Algorithm (#10949)
aqib-m31 Oct 29, 2023
cc22d0b
Generate parentheses (#10903)
invincible04 Oct 29, 2023
7c1dfec
XOR Cipher: doctests and bug fixes (#10840)
FarzadHayat Oct 29, 2023
6b588e4
Added doctests for fibonacci.py (#10836)
nkstonks Oct 29, 2023
d59cf17
Add running key cipher (#10834)
ArshdeepSingh98 Oct 29, 2023
3ad90ce
add a yield method to fibonaci (#10826)
08183080 Oct 29, 2023
67c85ee
Added doctest to hash_map.py (#11082)
Suyashd999 Oct 29, 2023
be60f42
Add Josephus Problem (#10928)
aqib-m31 Oct 29, 2023
eafdb8b
Dahhou ilyas (#10058)
dahhou-ilyas Oct 29, 2023
760d9be
Added Fast Inverse Square Root (#11054)
aryanshb Oct 29, 2023
c7a1331
Create karnaugh_map_simplification.py (#11056)
Khushi-Shukla Oct 29, 2023
13e66c1
Fix typo power_using_recursion.py (#11083)
Oct 29, 2023
2531f8e
test: adding more tests to missing number algorithm (#10394)
kibolho Oct 29, 2023
c38b222
serialize deserialize binary tree (#9625)
AVAniketh0905 Oct 29, 2023
ad9948d
implementation of Gaussian Elimination pivoting as a numerical linear…
TheKidPadra Oct 30, 2023
ddd4023
Happy number (new algorithm) (#10864)
Devadeut Oct 30, 2023
79a327f
[pre-commit.ci] pre-commit autoupdate (#11106)
pre-commit-ci[bot] Oct 30, 2023
b072ba6
Added tests for validate_sudoku_board.py (#11108)
AksharGoyal Oct 31, 2023
99f3a0e
adding-docstrings (#11114)
Arya-Hari Oct 31, 2023
ebfdb12
Added doctest to hash_map.py (#11105)
Suyashd999 Nov 4, 2023
257cfbd
Added doctest to decision_tree.py (#11143)
Suyashd999 Nov 5, 2023
1e50cf3
Added doctest to binary_search_tree.py (#11141)
Suyashd999 Nov 5, 2023
e48ea7d
Create get_ip_geolocation.py (#10902)
nababuddin Nov 5, 2023
eb989c0
Data structures/arrays/triplet sum (#11134)
Skyad Nov 6, 2023
fa508d7
Added doctest to detecting_english_programmatically.py (#11135)
Suyashd999 Nov 6, 2023
12e4016
Added doctest to string_switch_case.py (#11136)
Suyashd999 Nov 6, 2023
a13e9c2
[pre-commit.ci] pre-commit autoupdate (#11146)
pre-commit-ci[bot] Nov 7, 2023
8b73526
Added doctest to randomized_heap.py (#11151)
Suyashd999 Nov 12, 2023
fb17eea
Added doctest to stack.py (#11149)
Suyashd999 Nov 12, 2023
0e2e6ab
Added doctest to heap.py (#11129)
Suyashd999 Nov 13, 2023
5f61af4
Fix ignore venv in build_directory_md.py (#11156)
FishyGitHubUser Nov 16, 2023
3999abf
adding a geometry module (#11138)
meg-1 Nov 24, 2023
b8e7a4c
Fix typo in knight_tour.py (#11173)
FishyGitHubUser Nov 25, 2023
5898b96
Typo deicmal -> decimal (#11169)
rahidzeynal Nov 25, 2023
4151a13
add graphs/ant_colony_optimization_algorithms.py (#11163)
Clarkzzzzz Nov 25, 2023
050b2a6
Bug fix combinations (#11158)
moaldeen Nov 25, 2023
8b39a0f
[pre-commit.ci] pre-commit autoupdate (#11154)
pre-commit-ci[bot] Nov 25, 2023
86ae30d
Create Spearman's rank correlation coefficient (#11155)
cyrixninja Nov 25, 2023
84a1533
Added doctest to binary_search_tree.py (#11145)
Suyashd999 Nov 25, 2023
154e5e8
Update levenshtein_distance.py (#11171)
pedram-mohajer Nov 26, 2023
b860003
Add doctest to is_safe function (#11183)
pedram-mohajer Nov 27, 2023
0ac97f3
[pre-commit.ci] pre-commit autoupdate (#11184)
pre-commit-ci[bot] Nov 27, 2023
82e539d
Create smallestRange.py (#11179)
pedram-mohajer Dec 1, 2023
a73f37b
[pre-commit.ci] pre-commit autoupdate (#11195)
pre-commit-ci[bot] Dec 4, 2023
c14a580
[pre-commit.ci] pre-commit autoupdate (#11210)
pre-commit-ci[bot] Dec 11, 2023
2d0ed13
[pre-commit.ci] pre-commit autoupdate (#11215)
pre-commit-ci[bot] Dec 18, 2023
b46fc1d
Corrected the Python Doctest command in equilibrium_index_in_array.py…
thecoddiwompler Dec 19, 2023
7b9f82c
optimize quicksort implementation (#11196)
tusharpamnani Dec 20, 2023
94c8e1a
[pre-commit.ci] pre-commit autoupdate (#11223)
pre-commit-ci[bot] Dec 25, 2023
51c5c87
File moved to neural_network/activation_functions (#11216)
ParamThakkar123 Dec 27, 2023
9caf478
[pre-commit.ci] pre-commit autoupdate (#11231)
pre-commit-ci[bot] Jan 8, 2024
227944e
fix: consider months and days in `years_old` (#11234)
vil02 Jan 12, 2024
a56f24e
fix: use `GITHUB_ACTOR` in `git config` (#11233)
vil02 Jan 12, 2024
ffb93ad
chore: update `actions/setup-python` to `v5` (#11236)
vil02 Jan 12, 2024
13559ae
style: use proper indentation in `ruff.yml` (#11237)
vil02 Jan 13, 2024
dd47651
[pre-commit.ci] pre-commit autoupdate (#11246)
pre-commit-ci[bot] Jan 15, 2024
4b6f688
Use compiled black as the pre-commit formatter (#11247)
ZJUGuoShuai Jan 16, 2024
0101dd4
Fixed Inappropriate Logical Expression (#11203)
nydelzaf Jan 16, 2024
05a5cda
Added doctest to skew_heap.py (#11147)
Suyashd999 Jan 18, 2024
3952ba7
Add categorical focal cross-entropy loss algorithm (#11248)
ZJUGuoShuai Jan 18, 2024
b01571d
[pre-commit.ci] pre-commit autoupdate (#11255)
pre-commit-ci[bot] Jan 22, 2024
b092d77
fixes #11256 : computer vision link update in .computer_vision/README…
geoffreylgv Jan 24, 2024
c0e700c
[pre-commit.ci] pre-commit autoupdate (#11261)
pre-commit-ci[bot] Jan 29, 2024
c1d29ba
Add smooth l1 loss algorithm (#11239)
ZJUGuoShuai Jan 30, 2024
8995f45
Rename .github/.github/dependabot.yml to .github/dependabot.yml (#11264)
cclauss Feb 1, 2024
6a16974
Bump actions/cache from 3 to 4 (#11265)
dependabot[bot] Feb 1, 2024
4128f19
Fixed lines that needed to be uncommented after Hacktoberfest (#11267)
tonguegrease Feb 2, 2024
ed8d920
[pre-commit.ci] pre-commit autoupdate (#11275)
pre-commit-ci[bot] Feb 5, 2024
5d6846b
[pre-commit.ci] pre-commit autoupdate (#11292)
pre-commit-ci[bot] Feb 12, 2024
c6ca194
[pre-commit.ci] pre-commit autoupdate (#11296)
pre-commit-ci[bot] Feb 19, 2024
fd27953
Reenable files when TensorFlow supports the current Python (#11318)
MaximSmolskiy Mar 12, 2024
5f95d6f
fix: function name typo (#11319)
testwill Mar 12, 2024
bc8df6d
[pre-commit.ci] pre-commit autoupdate (#11322)
pre-commit-ci[bot] Mar 13, 2024
435309a
[pre-commit.ci] pre-commit autoupdate (#11325)
pre-commit-ci[bot] Mar 18, 2024
8faf823
adding a proper fractions algorithm (#11224)
meg-1 Mar 20, 2024
a936e94
Enable ruff ARG001 rule (#11321)
MaximSmolskiy Mar 20, 2024
481c071
add vicsek to fractals (#11306)
PAxitoo Mar 20, 2024
102e9a3
Enable ruff DTZ001 rule (#11326)
MaximSmolskiy Mar 25, 2024
ead5431
[pre-commit.ci] pre-commit autoupdate (#11328)
pre-commit-ci[bot] Mar 25, 2024
b5cb1fb
Enable ruff DTZ005 rule (#11327)
MaximSmolskiy Mar 25, 2024
19fd435
Improved doctests for some functions (#11334)
MrBubb1es Mar 28, 2024
516a302
Enable ruff PLR5501 rule (#11332)
MaximSmolskiy Mar 28, 2024
da47d5c
Enable ruff N999 rule (#11331)
MaximSmolskiy Mar 28, 2024
efb7463
Enable ruff PLW0120 rule (#11330)
MaximSmolskiy Mar 28, 2024
f2246ce
Enable ruff ICN001 rule (#11329)
MaximSmolskiy Mar 28, 2024
c328b00
[pre-commit.ci] pre-commit autoupdate (#11339)
pre-commit-ci[bot] Apr 1, 2024
39daaf8
Enable ruff RUF100 rule (#11337)
MaximSmolskiy Apr 1, 2024
f8a9489
Enable ruff NPY002 rule (#11336)
MaximSmolskiy Apr 1, 2024
93fb555
Enable ruff SIM102 rule (#11341)
MaximSmolskiy Apr 2, 2024
f8cdb3e
Enable ruff S105 rule (#11343)
MaximSmolskiy Apr 2, 2024
f437f92
Enable ruff INP001 rule (#11346)
MaximSmolskiy Apr 2, 2024
f5bbea3
Enable ruff RUF005 rule (#11344)
MaximSmolskiy Apr 2, 2024
53b2926
Enable ruff PGH003 rule (#11345)
MaximSmolskiy Apr 2, 2024
cc2f5b1
Do not fix ruff EXE001 rule (#11350)
MaximSmolskiy Apr 8, 2024
9e55c9d
Added documentations (#11352)
Jiayoqin Apr 8, 2024
14ca726
[pre-commit.ci] pre-commit autoupdate (#11355)
pre-commit-ci[bot] Apr 9, 2024
0a9a860
[pre-commit.ci] pre-commit autoupdate (#11364)
pre-commit-ci[bot] Apr 15, 2024
a42eb35
Enable ruff E741 rule (#11370)
MaximSmolskiy Apr 19, 2024
4259348
Add doctests in all functions in basic_string.py (#11374)
KelvinPuyam Apr 20, 2024
7b88e15
Enable ruff RUF007 rule (#11349)
MaximSmolskiy Apr 20, 2024
2702bf9
Enable ruff S113 rule (#11375)
MaximSmolskiy Apr 21, 2024
dbfa218
[pre-commit.ci] pre-commit autoupdate (#11380)
pre-commit-ci[bot] Apr 22, 2024
79dc7c9
Enable ruff RUF001 rule (#11378)
MaximSmolskiy Apr 22, 2024
4700297
Enable ruff RUF002 rule (#11377)
MaximSmolskiy Apr 22, 2024
d016fda
Enable ruff RUF003 rule (#11376)
MaximSmolskiy Apr 22, 2024
3925b81
Fix ARG005 per file ignore (#11383)
MaximSmolskiy Apr 24, 2024
2d6be5f
Enable ruff UP031 rule (#11388)
MaximSmolskiy Apr 30, 2024
a7e0b14
[pre-commit.ci] pre-commit autoupdate (#11387)
pre-commit-ci[bot] Apr 30, 2024
c026b19
adding a matrix equalization algorithm (#11360)
meg-1 May 1, 2024
5131e31
Fix some ARG002 per file ignores (#11382)
MaximSmolskiy May 1, 2024
ea53051
Use `spawn` start method in multiprocessing programs (#11391)
XuehaiPan May 2, 2024
1868c0b
[pre-commit.ci] pre-commit autoupdate (#11394)
pre-commit-ci[bot] May 6, 2024
c599f6c
Fix some SIM114 per file ignores (#11395)
MaximSmolskiy May 10, 2024
1f368da
[pre-commit.ci] pre-commit autoupdate (#11402)
pre-commit-ci[bot] May 14, 2024
0139143
[pre-commit.ci] pre-commit autoupdate (#11408)
pre-commit-ci[bot] May 20, 2024
82aa909
[pre-commit.ci] pre-commit autoupdate (#11417)
pre-commit-ci[bot] May 28, 2024
b8afb21
Changed the N to self.N in show_data in segment_tree.py (#11276)
Marco-campione-github May 31, 2024
70bd06d
add doctest/document to actual_power and document to power (#11187)
pedram-mohajer Jun 1, 2024
723cf9c
Remove duplicate implementation of median of two arrays algorithm (#1…
tianyizheng02 Jun 1, 2024
edee8e6
use format to remove '0b' (#11307)
groupsvkg Jun 2, 2024
2f1704d
issue #11150 Ensure explicit column selection and data type setting i…
MannCode Jun 3, 2024
ffaa976
Fixes #9943 (#10252)
Jun 3, 2024
c919579
Add KL divergence loss algorithm (#11238)
ZJUGuoShuai Jun 3, 2024
5827aac
[pre-commit.ci] pre-commit autoupdate (#11430)
pre-commit-ci[bot] Jun 3, 2024
41a1cdf
Add rainfall intensity calculation function (#11432)
yuriishizawa Jun 11, 2024
4467423
Fix grammar and spelling mistakes in sequential_minimum_optimization.…
tianyizheng02 Jun 13, 2024
af6a45e
Remove some per file ignores (#11381)
MaximSmolskiy Jun 16, 2024
df94d46
Fix/fixes get top billionaries code (#11466)
ra230537 Jun 16, 2024
31d1cd8
[pre-commit.ci] pre-commit autoupdate (#11435)
pre-commit-ci[bot] Jun 17, 2024
1cfca52
chore: fix typos (#11467)
xiaoxianBoy Jun 17, 2024
75b8667
[pre-commit.ci] pre-commit autoupdate (#11472)
pre-commit-ci[bot] Jun 24, 2024
6882a8b
Tests/add new test case weight_conversion (#11468)
ShiryuReb Jun 26, 2024
716bdeb
[pre-commit.ci] pre-commit autoupdate (#11473)
pre-commit-ci[bot] Jul 2, 2024
c1dc8e9
Create count_vowels.py (#11474)
its-100rabh Jul 4, 2024
9190888
[pre-commit.ci] pre-commit autoupdate (#11481)
pre-commit-ci[bot] Jul 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@

# /cellular_automata/

# /ciphers/ @cclauss # TODO: Uncomment this line after Hacktoberfest
# /ciphers/

# /compression/

# /computer_vision/

# /conversions/ @cclauss # TODO: Uncomment this line after Hacktoberfest
# /conversions/

# /data_structures/ @cclauss # TODO: Uncomment this line after Hacktoberfest
# /data_structures/

# /digital_image_processing/

Expand Down Expand Up @@ -67,7 +67,7 @@

# /neural_network/

# /other/ @cclauss # TODO: Uncomment this line after Hacktoberfest
# /other/

# /project_euler/

Expand All @@ -81,7 +81,7 @@

# /sorts/

# /strings/ @cclauss # TODO: Uncomment this line after Hacktoberfest
# /strings/

# /traversals/

Expand Down
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Keep GitHub Actions up to date with Dependabot...
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
allow-prereleases: true
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
Expand All @@ -25,10 +25,10 @@ jobs:
- name: Run tests
# TODO: #8818 Re-enable quantum tests
run: pytest
--ignore=quantum/q_fourier_transform.py
--ignore=project_euler/
--ignore=scripts/validate_solutions.py
--cov-report=term-missing:skip-covered
--cov=. .
--ignore=quantum/q_fourier_transform.py
--ignore=project_euler/
--ignore=scripts/validate_solutions.py
--cov-report=term-missing:skip-covered
--cov=. .
- if: ${{ success() }}
run: scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
6 changes: 3 additions & 3 deletions .github/workflows/directory_writer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Write DIRECTORY.md
run: |
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Update DIRECTORY.md
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/project_euler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install pytest and pytest-cov
Expand All @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install pytest and requests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install --user ruff
- run: ruff --output-format=github .
- uses: actions/checkout@v4
- run: pip install --user ruff
- run: ruff check --output-format=github .
29 changes: 16 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-executables-have-shebangs
- id: check-toml
Expand All @@ -11,29 +11,25 @@ repos:
- id: requirements-txt-fixer

- repo: https://github.com/MarcoGorelli/auto-walrus
rev: v0.2.2
rev: 0.3.4
hooks:
- id: auto-walrus
- id: auto-walrus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
rev: v0.5.1
hooks:
- id: ruff

- repo: https://github.com/psf/black
rev: 23.10.0
hooks:
- id: black
- id: ruff-format

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.2.0"
rev: "2.1.4"
hooks:
- id: pyproject-fmt

Expand All @@ -46,16 +42,23 @@ repos:
pass_filenames: false

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.15
rev: v0.18
hooks:
- id: validate-pyproject

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
rev: v1.10.1
hooks:
- id: mypy
args:
- --explicit-package-bases
- --ignore-missing-imports
- --install-types # See mirrors-mypy README.md
- --non-interactive
additional_dependencies: [types-requests]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [toml, yaml]
Loading