Skip to content

Commits on Jul 11, 2022

  1. pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0 (#6245)

    * pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0
    
    * pre-commit run --all-files
    cclauss committed Jul 11, 2022

Commits on Jun 8, 2021

  1. Wavelet tree (#4267)

    * Added the matrix_exponentiation.py file in maths directory
    
    * Implemented the requested changes
    
    * Update matrix_exponentiation.py
    
    * resolve merge conflict with upstream branch
    
    * add new line at end of file
    
    * add wavelet_tree
    
    * fix isort issue
    
    * updating DIRECTORY.md
    
    * fix variable names in wavelet_tree and correct typo
    
    * Add type hints and variable renaming
    
    * Update data_structures/binary_tree/wavelet_tree.py
    
    Add doctests to placate the algorithm-bot, thanks to @cclauss.
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    
    * Move doctest to individual functions and reformat code
    
    * Move common test array to the global scope and reuse in tests
    
    * MMove test array to global scope and minor linting changes
    
    * Correct the failing pytest tests
    
    * MUse built-in list for type annotation
    
    * Update wavelet_tree.py
    
    * types-requests
    
    * updating DIRECTORY.md
    
    * Update wavelet_tree.py
    
    * # type: ignore
    
    * # type: ignore
    
    * Update decrypt_caesar_with_chi_squared.py
    
    * ,
    
    * Update decrypt_caesar_with_chi_squared.py
    
    Co-authored-by: Christian Clauss <cclauss@me.com>
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    Co-authored-by: Aniruddha Bhattacharjee <aniruddha@Aniruddhas-MacBook-Air.local>
    4 people committed Jun 8, 2021

Commits on May 12, 2021

  1. feat(ci): Hash project euler solutions (#4411)

    * hash project euler solutions
    
    * fix errors
    
    * Return missing annotation
    
    * Fix typo
    
    * Extract variable to shorten excessively long line
    
    * Update scripts/validate_solutions.py
    
    * Update scripts/validate_solutions.py
    
    * Simplify with str.encode()
    
    * PEP 585: type hinting generics in standard collections;
    
    * str().encode()
    
    * Texas two step to placate black, flake8, mypy
    
    Co-authored-by: Andrii Siriak <siryaka@gmail.com>
    Co-authored-by: Christian Clauss <cclauss@me.com>
    3 people committed May 12, 2021

Commits on Apr 7, 2021

Commits on Nov 29, 2020

  1. Validate only submitted Project Euler solution (#3977)

    * Update validate solution script to fetch only submitted solution
    * Update workflow file with the updated PE script
    * Fix: do not fetch `validate_solutions.py` script
    * Update script to use the requests package for API calls
    * Fix: install requests module
    * Pytest ignore scripts/ directory
    dhruvmanila committed Nov 29, 2020

Commits on Oct 24, 2020

  1. Move validate_solutions and add durations flag to pytest.ini (#3704)

    * Move PE validate_solutions to scripts/ directory
    
    * Update pytest.ini file with durations settings
    
    * Remove codespell and autoblack workflow file
    
    * Dependent changes to test config files
    
    * Update pytest.ini
    dhruvmanila committed Oct 24, 2020

Commits on Sep 28, 2020

  1. Fix imports for all namespace packages (#2506)

    * Fix imports as they're namespace packages
    
    * Fix import for scripts/validate_filenames.py
    
    * Fix path in doctest
    dhruvmanila committed Sep 28, 2020

Commits on Sep 19, 2020

  1. hyphen_files = [file for file in filepaths if "-" in file] (#2447)

    * hyphen_files = [file for file in filepaths if "-" in file]
    
    * updating DIRECTORY.md
    
    * Rename recursive-quick-sort.py to recursive_quick_sort.py
    
    * updating DIRECTORY.md
    
    * Rename aho-corasick.py to aho_corasick.py
    
    * updating DIRECTORY.md
    
    * Rename polynom-for-points.py to polynom_for_points.py
    
    * updating DIRECTORY.md
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    cclauss and github-actions committed Sep 19, 2020

Commits on Jul 6, 2020

  1. isort --profile black . (#2181)

    * updating DIRECTORY.md
    
    * isort --profile black .
    
    * Black after
    
    * updating DIRECTORY.md
    
    Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
    cclauss and github-actions committed Jul 6, 2020

Commits on Jun 2, 2020

  1. Update build_directory_md.py (#2066)

    Propagate argument `top_dir` to good_file_paths.
    Previously this argument did not get passed to the helper function when calling print_directory_md.
    VaeterchenFrost committed Jun 2, 2020

Commits on Mar 4, 2020

  1. contribution guidelines checks (#1787)

    * spelling corrections
    
    * review
    
    * improved documentation, removed redundant variables, added testing
    
    * added type hint
    
    * camel case to snake case
    
    * spelling fix
    
    * review
    
    * python --> Python # it is a brand name, not a snake
    
    * explicit cast to int
    
    * spaces in int list
    
    * "!= None" to "is not None"
    
    * Update comb_sort.py
    
    * various spelling corrections in documentation & several variables naming conventions fix
    
    * + char in file name
    
    * import dependency - bug fix
    
    Co-authored-by: John Law <johnlaw.po@gmail.com>
    matkosoric and poyea committed Mar 4, 2020

Commits on Oct 25, 2019

Commits on Oct 22, 2019

  1. Create greedy.py (#1359)

    * Create greedy.py
    
    * Update greedy.py
    
    * Add a doctest and format with black
    
    * Update build_directory_md.py
    DanishSheikh1999 authored and cclauss committed Oct 22, 2019

Commits on Oct 5, 2019

Commits on Sep 6, 2019

  1. Update DIRECTORY (#1161)

    * Update DIRECTORY
    
    * Updated DIRECTORY
    
    * Fixed bug in directory build and re-build the directory.md
    
    * fixed url issue
    
    * fixed indentation in Directory.md
    jai-dewani authored and cclauss committed Sep 6, 2019

Commits on Jul 30, 2019

  1. Validate Python filenames (#1086)

    cclauss authored and AnshulMalik committed Jul 30, 2019

Commits on Jul 28, 2019

  1. Rewrite build_directory_md.py (#1076)

    * Rewrite build_directory_md.py
    
    * Regenerate DIRECTORY.md
    cclauss committed Jul 28, 2019

Commits on Jul 13, 2019

  1. Updated ~script.py per #978 (#1013)

    * Added print function into matrix_multiplication_addition.py and removed blank space in data_structures/binary tree directory
    
    * Removed .vs/ folder per #893
    
    * Rename matrix_multiplication_addition.py to matrix_operation.py
    
    * Moved and renamed ~script.py to scripts/build_directory_md.py
    Updated DIRECTORY.MD file
    
    * Modified .travis.yml per suggestion in #1013
    
    * Fixed typo per suggestions in #1013
    qckzr authored and cclauss committed Jul 13, 2019