TODO: parse URL paramters correctly

This commit is contained in:
armistace 2025-05-29 17:29:48 +10:00
parent 1bb99c2343
commit 546b86738a
2 changed files with 25 additions and 5 deletions

View File

@ -0,0 +1,19 @@
## When to Use AI
Right, lets talk about AI. Its the buzzword of the moment, but when is it actually useful? Ive been asked this question a lot recently, so here are two scenarios where AI isnt the silver bullet everyone thinks it is—and where it could genuinely save some time.
### 1. **Contextual Mapping in Workload Analysis**
I was building a spreadsheet to analyze workload drivers and potential savings. The dataset included thousands of work orders with categories like "work types" and durations. Merging these required manually mapping each work type to a category. This is where generative AI excelled—it interpreted text relationships, something regex or string manipulation couldnt handle. LLMs are perfect for understanding context and nuance.
### 2. **Precision in Calculations**
For calculating workload drivers and formulas, precision was key. These required sound math and logic, not interpretation. Trusting an LLM here felt risky—AI might introduce unexpected variables (like changing π to a non-numeric value). Traditional methods ensure accuracy without existential crises.
**Key Takeaways:**
- **Use AI** for interpreting text and relationships.
- **Stick to traditional methods** for precise calculations.
- **Never fully trust AI**; always verify output.
---
**What do you think? Let me know in the comments below!**
<|end_of_thought|>

View File

@ -10,6 +10,7 @@ class GitRepository:
def __init__(self, repo_path, username=None, password=None):
git_protocol = os.environ["GIT_PROTOCOL"]
git_remote = os.environ["GIT_REMOTE"]
#TODO: Parse the URL correctly https://stackoverflow.com/questions/1695183/how-can-i-percent-encode-url-parameters-in-python
remote = f"{git_protocol}://{username}:{password}@{git_remote}"
if os.path.exists(repo_path):