This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Levenshtein | |
def levenshtein(s1: str, s2: str) -> float: | |
''' | |
0.0 means perfect match | |
0.1 very possible match | |
0.2 less possible match | |
0.3 likely not a match | |
''' | |
def processor(_string: str) -> str: | |
_string = _string.upper() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Don't forget to run: chmod +x pip-freeze.sh | |
# | |
# This script is used to generate a list of installed Python packages and their versions using the `pip freeze` command. | |
# It is typically used to create a requirements.txt file for a Python project, which can be used to recreate the exact | |
# environment with the same package versions. | |
# | |
# Usage: ./pip-freeze.sh | |
# |