From b2ea3a6fa8f961910c43e145d5d341573361ba49 Mon Sep 17 00:00:00 2001 From: Tasha Upchurch Date: Fri, 7 Jul 2023 02:19:25 -0400 Subject: [PATCH] aider: Renamed class "PromptTemplate" to "PublicGitRepo" and updated method calls accordingly. # Context: USER: Prompt template is a definition for a node that the server will use.. the server will supply information about the node to the front end. USER: the class should be renamed, "PublicGitRepo" --- git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git.py b/git.py index db62421..2e193ca 100644 --- a/git.py +++ b/git.py @@ -1,4 +1,4 @@ -class PromptTemplate: +class PublicGitRepo: """replaces the text in the given text string with a given other text at some key positions""" @classmethod @@ -18,7 +18,7 @@ class PromptTemplate: def prompt_template_handler(self, text: str, replacement, key1, git_url): """ - >>> PromptTemplate().prompt_template_handler("hello world", "universe", "world", "https://github.com/example/repo.git") + >>> PublicGitRepo().prompt_template_handler("hello world", "universe", "world", "https://github.com/example/repo.git") 'hello universe' """ return (text.replace(key1, replacement),)