-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Commit Subject: Rename files and fix errors in multiple modules Commit Description: * Commit Subject: Rename files and update dependencies Commit Description: --------- Co-authored-by: Jack Hopkins <[email protected]>
- Loading branch information
1 parent
b0f14f0
commit 6109085
Showing
99 changed files
with
1,002 additions
and
613 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from dotenv import load_dotenv | ||
load_dotenv() | ||
from monkey_patch.monkey import Monkey as monkey | ||
import tanuki | ||
from pydantic import BaseModel | ||
from typing import Literal | ||
|
||
|
@@ -10,7 +10,7 @@ class Persona(BaseModel): | |
name: str | ||
company : str = None | ||
|
||
@monkey.patch | ||
@tanuki.patch | ||
def classify_email(email: str) -> Literal["Real", "Fake"]: | ||
""" | ||
Classify the email addresses as Fake or Real. The usual signs of an email being fake is the following: | ||
|
@@ -19,7 +19,7 @@ def classify_email(email: str) -> Literal["Real", "Fake"]: | |
3) Irregular name in email addresses | ||
""" | ||
|
||
@monkey.align | ||
@tanuki.align | ||
def align_classify(): | ||
assert classify_email("[email protected]") == "Fake" | ||
assert classify_email("[email protected]") == "Real" | ||
|
@@ -31,7 +31,7 @@ def align_classify(): | |
assert classify_email("[email protected]") == "Fake" | ||
|
||
|
||
@monkey.patch | ||
@tanuki.patch | ||
def extract_persona(email: str) -> Persona: | ||
""" | ||
Using the email and email handler, extract the persona from the email | ||
|
@@ -40,7 +40,7 @@ def extract_persona(email: str) -> Persona: | |
name of the user to the best of the ability | ||
""" | ||
|
||
@monkey.align | ||
@tanuki.align | ||
def align_extract(): | ||
assert extract_persona("[email protected]") == Persona(email="[email protected]", name="Jeffrey Sieker", company="Apple") | ||
assert extract_persona("[email protected]") == Persona(email="[email protected]", name="Jon", company="Amazon") | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
openai | ||
monkey-patch.py | ||
tanuki.py | ||
pandas | ||
openpyxl |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
python-dotenv | ||
openai | ||
monkey-patch.py | ||
tanuki.py | ||
pytest |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apscheduler | ||
python-dotenv | ||
openai | ||
monkey-patch.py | ||
tanuki.py | ||
bs4 | ||
requests-html | ||
selenium | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
monkey-patch.py | ||
tanuki.py | ||
openai~=0.28.1 | ||
pydantic==2.4.2 | ||
requests~=2.31.0 | ||
|
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
openai | ||
monkey-patch.py | ||
tanuki.py |
Oops, something went wrong.