GeezerVison is showing github.com — isort --profile black . (#2181) · D4VA/Python@5f4da5d
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/autoblack.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 17 | 17 | if: failure() | 18 | 18 | run: | | 19 | 19 | black . | 20 | | - isort --profile black --recursive . | | 20 | + isort --profile black . | 21 | 21 | git config --global user.name github-actions | 22 | 22 | git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' | 23 | 23 | git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
Collapse file Copy file name to clipboardExpand all lines: DIRECTORY.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 253 | 253 | * [Finding Bridges](https://github.com/TheAlgorithms/Python/blob/master/graphs/finding_bridges.py) | 254 | 254 | * [Frequent Pattern Graph Miner](https://github.com/TheAlgorithms/Python/blob/master/graphs/frequent_pattern_graph_miner.py) | 255 | 255 | * [G Topological Sort](https://github.com/TheAlgorithms/Python/blob/master/graphs/g_topological_sort.py) | | 256 | + * [Gale Shapley Bigraph](https://github.com/TheAlgorithms/Python/blob/master/graphs/gale_shapley_bigraph.py) | 256 | 257 | * [Graph List](https://github.com/TheAlgorithms/Python/blob/master/graphs/graph_list.py) | 257 | 258 | * [Graph Matrix](https://github.com/TheAlgorithms/Python/blob/master/graphs/graph_matrix.py) | 258 | 259 | * [Graphs Floyd Warshall](https://github.com/TheAlgorithms/Python/blob/master/graphs/graphs_floyd_warshall.py) | | 596 | 597 |
| 597 | 598 | ## Searches | 598 | 599 | * [Binary Search](https://github.com/TheAlgorithms/Python/blob/master/searches/binary_search.py) | | 600 | + * [Double Linear Search](https://github.com/TheAlgorithms/Python/blob/master/searches/double_linear_search.py) | 599 | 601 | * [Fibonacci Search](https://github.com/TheAlgorithms/Python/blob/master/searches/fibonacci_search.py) | 600 | 602 | * [Hill Climbing](https://github.com/TheAlgorithms/Python/blob/master/searches/hill_climbing.py) | 601 | 603 | * [Interpolation Search](https://github.com/TheAlgorithms/Python/blob/master/searches/interpolation_search.py) | |
Collapse file Copy file name to clipboardExpand all lines: arithmetic_analysis/in_static_equilibrium.py +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | mypy : passed | 7 | 7 | """ | 8 | 8 |
| 9 | | -from numpy import array, cos, sin, radians, cross # type: ignore | 10 | 9 | from typing import List | 11 | 10 |
| | 11 | +from numpy import array, cos, cross, radians, sin # type: ignore | | 12 | + | 12 | 13 |
| 13 | 14 | def polar_force( | 14 | 15 | magnitude: float, angle: float, radian_mode: bool = False | |
Collapse file Copy file name to clipboardExpand all lines: arithmetic_analysis/newton_raphson.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | # Author: Syed Haseeb Shah (github.com/QuantumNovice) | 3 | 3 | # The Newton-Raphson method (also known as Newton's method) is a way to | 4 | 4 | # quickly find a good approximation for the root of a real-valued function | 5 | | - | 6 | 5 | from decimal import Decimal | 7 | 6 | from math import * # noqa: F401, F403 | | 7 | + | 8 | 8 | from sympy import diff | 9 | 9 |
| 10 | 10 |
| |
Collapse file Copy file name to clipboardExpand all lines: ciphers/hill_cipher.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 35 | 35 | https://www.youtube.com/watch?v=4RhLNDqcjpA | 36 | 36 |
| 37 | 37 | """ | 38 | | - | 39 | 38 | import string | | 39 | + | 40 | 40 | import numpy | 41 | 41 |
| 42 | 42 |
| |
Collapse file Copy file name to clipboardExpand all lines: ciphers/playfair_cipher.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import string | 2 | 1 | import itertools | | 2 | +import string | 3 | 3 |
| 4 | 4 |
| 5 | 5 | def chunker(seq, size): | |
Collapse file Copy file name to clipboardExpand all lines: compression/burrows_wheeler.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | original character. The BWT is thus a "free" method of improving the efficiency | 11 | 11 | of text compression algorithms, costing only some extra computation. | 12 | 12 | """ | 13 | | -from typing import List, Dict | | 13 | +from typing import Dict, List | 14 | 14 |
| 15 | 15 |
| 16 | 16 | def all_rotations(s: str) -> List[str]: | |
Collapse file Copy file name to clipboardExpand all lines: computer_vision/harriscorner.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -import numpy as np | 2 | 1 | import cv2 | | 2 | +import numpy as np | 3 | 3 |
| 4 | 4 | """ | 5 | 5 | Harris Corner Detector | |
Collapse file Copy file name to clipboardExpand all lines: data_structures/binary_tree/non_recursive_segment_tree.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 35 | 35 | >>> st.query(0, 2) | 36 | 36 | [1, 2, 3] | 37 | 37 | """ | 38 | | -from typing import List, Callable, TypeVar | | 38 | +from typing import Callable, List, TypeVar | 39 | 39 |
| 40 | 40 | T = TypeVar("T") | 41 | 41 |
| |
Collapse file Copy file name to clipboardExpand all lines: data_structures/binary_tree/segment_tree_other.py +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 | allowing queries to be done later in log(N) time | 4 | 4 | function takes 2 values and returns a same type value | 5 | 5 | """ | 6 | | - | 7 | | -from queue import Queue | 8 | 6 | from collections.abc import Sequence | | 7 | +from queue import Queue | 9 | 8 |
| 10 | 9 |
| 11 | 10 | class SegmentTreeNode(object): | |
|