From 3d609aa3d11fba325e5e644f1bad29c97f325cb1 Mon Sep 17 00:00:00 2001 From: hrshdhgd Date: Mon, 12 Feb 2024 23:12:43 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20hrshdhgd?= =?UTF-8?q?/CoderGPT@492a5ae39ba496a1c490c0504cb3f8f1b8098a0a=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _sources/codergpt.rst.txt | 1 - _sources/codergpt.utils.rst.txt | 21 --- _sources/developer.rst.txt | 1 - _sources/expression_evaluator.rst.txt | 90 ----------- cli.html | 1 - codergpt.commenter.html | 1 - codergpt.documenter.html | 1 - codergpt.explainer.html | 1 - codergpt.html | 14 -- codergpt.optimizer.html | 1 - codergpt.test_writer.html | 3 - codergpt.utils.html | 175 --------------------- commenter.html | 1 - developer.html | 8 - explainer.html | 1 - expression_evaluator.html | 215 -------------------------- genindex.html | 37 +---- index.html | 1 - main.html | 1 - modules.html | 10 +- objects.inv | Bin 1077 -> 982 bytes optimizer.html | 1 - py-modindex.html | 10 -- searchindex.js | 2 +- test_writer.html | 5 +- 25 files changed, 7 insertions(+), 595 deletions(-) delete mode 100644 _sources/codergpt.utils.rst.txt delete mode 100644 _sources/expression_evaluator.rst.txt delete mode 100644 codergpt.utils.html delete mode 100644 expression_evaluator.html diff --git a/_sources/codergpt.rst.txt b/_sources/codergpt.rst.txt index 5203054..ef72852 100644 --- a/_sources/codergpt.rst.txt +++ b/_sources/codergpt.rst.txt @@ -12,7 +12,6 @@ Subpackages codergpt.explainer codergpt.optimizer codergpt.test_writer - codergpt.utils Submodules ---------- diff --git a/_sources/codergpt.utils.rst.txt b/_sources/codergpt.utils.rst.txt deleted file mode 100644 index 2eee79f..0000000 --- a/_sources/codergpt.utils.rst.txt +++ /dev/null @@ -1,21 +0,0 @@ -codergpt.utils package -====================== - -Submodules ----------- - -codergpt.utils.expression\_evaluator module -------------------------------------------- - -.. automodule:: codergpt.utils.expression_evaluator - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: codergpt.utils - :members: - :undoc-members: - :show-inheritance: diff --git a/_sources/developer.rst.txt b/_sources/developer.rst.txt index 974f0f8..0dfe133 100644 --- a/_sources/developer.rst.txt +++ b/_sources/developer.rst.txt @@ -16,5 +16,4 @@ This section contains documentation for developers who want to contribute or ext commenter optimizer test_writer - expression_evaluator diff --git a/_sources/expression_evaluator.rst.txt b/_sources/expression_evaluator.rst.txt deleted file mode 100644 index 7a3e7f9..0000000 --- a/_sources/expression_evaluator.rst.txt +++ /dev/null @@ -1,90 +0,0 @@ -The ExpressionEvaluator Class -============================= - -The ExpressionEvaluator class is designed for evaluating code expressions and extracting the source code of specified functions or classes from a given source code input. It utilizes the Abstract Syntax Tree (AST) provided by Python's ``ast`` module to navigate and interpret the structure of the code. - -.. code-block:: python - - from expression_evaluator import ExpressionEvaluator - -Initialization --------------- - -To initialize an instance of the ExpressionEvaluator class, the source code to be analyzed needs to be provided, along with optional parameters specifying the names of the function or class to extract. - -.. code-block:: python - - evaluator = ExpressionEvaluator(source_code, function_name="my_function", class_name="MyClass") - -Parameters: - -- ``source_code``: The complete source code as a string. -- ``function_name``: Optional. The name of the function to find and extract from the source code. -- ``class_name``: Optional. The name of the class to find and extract from the source code. - -Attributes ----------- - -- ``function_code``: After evaluation, this attribute contains the extracted source code of the specified function, if found. -- ``class_code``: After evaluation, this attribute contains the extracted source code of the specified class, if found. -- ``function_name``: The name of the function to search for in the source code. -- ``class_name``: The name of the class to search for in the source code. -- ``source_code``: The source code provided during initialization. - -Methods -------- - -visit_FunctionDef -^^^^^^^^^^^^^^^^^ - -This method is called when a function definition node is encountered in the AST. If the name of the function matches the target function name specified during initialization, the source segment of the function is extracted. - -.. code-block:: python - - def visit_FunctionDef(self, node): - ... - -Parameters: - -- ``node``: An instance of ``ast.FunctionDef`` representing a function definition node in the AST. - -visit_ClassDef -^^^^^^^^^^^^^^ - -This method is called when a class definition node is encountered in the AST. If the name of the class matches the target class name specified during initialization, the source segment of the class is extracted. - -.. code-block:: python - - def visit_ClassDef(self, node): - ... - -Parameters: - -- ``node``: An instance of ``ast.ClassDef`` representing a class definition node in the AST. - -Usage ------ - -To utilize the ExpressionEvaluator class, an instance must be created with the source code and optionally the function or class name. After initialization, the Abstract Syntax Tree is traversed, and if the specified function or class is found, its source code is extracted and stored in the ``function_code`` or ``class_code`` attributes respectively. - -Example: - -.. code-block:: python - - source = ''' - def hello_world(): - print("Hello, world!") - - class Greeter: - def greet(self): - print("Hello, world!") - ''' - - evaluator = ExpressionEvaluator(source, function_name="hello_world") - ast.parse(source) - evaluator.visit(ast.parse(source)) - - print(evaluator.function_code) - # Output: def hello_world():\n print("Hello, world!") - -This class provides a straightforward way to extract specific portions of code from a larger source code base, leveraging the power of Python's AST for code analysis and manipulation. diff --git a/cli.html b/cli.html index 7c0ba47..df20306 100644 --- a/cli.html +++ b/cli.html @@ -66,7 +66,6 @@
  • Commenter Module
  • Optimizer Module
  • Test Writing Module
  • -
  • The ExpressionEvaluator Class
  • codergpt
  • diff --git a/codergpt.commenter.html b/codergpt.commenter.html index e18a150..27397e5 100644 --- a/codergpt.commenter.html +++ b/codergpt.commenter.html @@ -56,7 +56,6 @@
  • codergpt.explainer package
  • codergpt.optimizer package
  • codergpt.test_writer package
  • -
  • codergpt.utils package
  • Submodules
  • diff --git a/codergpt.documenter.html b/codergpt.documenter.html index a25c673..630a9d5 100644 --- a/codergpt.documenter.html +++ b/codergpt.documenter.html @@ -56,7 +56,6 @@
  • codergpt.explainer package
  • codergpt.optimizer package
  • codergpt.test_writer package
  • -
  • codergpt.utils package
  • Submodules
  • diff --git a/codergpt.explainer.html b/codergpt.explainer.html index 698d0f9..7d3b384 100644 --- a/codergpt.explainer.html +++ b/codergpt.explainer.html @@ -56,7 +56,6 @@
  • codergpt.explainer package
  • codergpt.optimizer package
  • codergpt.test_writer package
  • -
  • codergpt.utils package
  • Submodules
  • diff --git a/codergpt.html b/codergpt.html index cd5653c..97fdc63 100644 --- a/codergpt.html +++ b/codergpt.html @@ -56,7 +56,6 @@
  • codergpt.explainer package
  • codergpt.optimizer package
  • codergpt.test_writer package
  • -
  • codergpt.utils package
  • Submodules
  • @@ -195,19 +194,6 @@

    SubpackagesModule contents -
  • codergpt.utils package -
  • diff --git a/codergpt.optimizer.html b/codergpt.optimizer.html index 5abdf87..0b03638 100644 --- a/codergpt.optimizer.html +++ b/codergpt.optimizer.html @@ -56,7 +56,6 @@
  • codergpt.explainer package
  • codergpt.optimizer package
  • codergpt.test_writer package
  • -
  • codergpt.utils package
  • Submodules
  • diff --git a/codergpt.test_writer.html b/codergpt.test_writer.html index 5f7abd7..6ffbdd6 100644 --- a/codergpt.test_writer.html +++ b/codergpt.test_writer.html @@ -21,7 +21,6 @@ - @@ -56,7 +55,6 @@
  • codergpt.explainer package
  • codergpt.optimizer package
  • codergpt.test_writer package
  • -
  • codergpt.utils package
  • Submodules
  • @@ -138,7 +136,6 @@

    Submodules -
    diff --git a/codergpt.utils.html b/codergpt.utils.html deleted file mode 100644 index a455466..0000000 --- a/codergpt.utils.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - codergpt.utils package — CoderGPT 0.0.0 documentation - - - - - - - - - - - - - - - - - - -
    - - -
    - -
    -
    -
    - -
    -
    -
    -
    - -
    -

    codergpt.utils package

    -
    -

    Submodules

    -
    -
    -

    codergpt.utils.expression_evaluator module

    -

    The ExpressionEvaluator Class.

    -

    Used for evaluating the code expression and extracting the source code of the specified function or class.

    -
    -
    -class codergpt.utils.expression_evaluator.ExpressionEvaluator(source_code, function_name=None, class_name=None)
    -

    Bases: NodeVisitor

    -

    Evaluate the code expression and extract the source code of the specified function or class.

    -
    -
    -visit_ClassDef(node)
    -

    Visit a ClassDef (class definition) node in the AST.

    -

    If the class name matches the target class name, it extracts the source segment.

    -
    -
    Parameters:
    -

    node (ast.ClassDef) – The node representing a class definition in the AST.

    -
    -
    -
    - -
    -
    -visit_FunctionDef(node)
    -

    Visit a FunctionDef (function definition) node in the AST.

    -

    If the function name matches the target function name, it extracts the source segment.

    -
    -
    Parameters:
    -

    node (ast.FunctionDef) – The node representing a function definition in the AST.

    -
    -
    -
    - -
    - -
    -
    -

    Module contents

    -

    Utility functions for the project.

    -
    -
    - - -
    -
    - -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/commenter.html b/commenter.html index 3f79318..c4b7893 100644 --- a/commenter.html +++ b/commenter.html @@ -67,7 +67,6 @@
  • Optimizer Module
  • Test Writing Module
  • -
  • The ExpressionEvaluator Class
  • codergpt
  • diff --git a/developer.html b/developer.html index f4f80b6..506634f 100644 --- a/developer.html +++ b/developer.html @@ -59,7 +59,6 @@
  • Commenter Module
  • Optimizer Module
  • Test Writing Module
  • -
  • The ExpressionEvaluator Class
  • codergpt
  • @@ -159,13 +158,6 @@
  • CodeTester
  • -
  • The ExpressionEvaluator Class -
  • diff --git a/explainer.html b/explainer.html index 86beca0..8159478 100644 --- a/explainer.html +++ b/explainer.html @@ -59,7 +59,6 @@
  • Commenter Module
  • Optimizer Module
  • Test Writing Module
  • -
  • The ExpressionEvaluator Class
  • codergpt
  • diff --git a/expression_evaluator.html b/expression_evaluator.html deleted file mode 100644 index 707409d..0000000 --- a/expression_evaluator.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - - The ExpressionEvaluator Class — CoderGPT 0.0.0 documentation - - - - - - - - - - - - - - - - - - - -
    - - -
    - -
    -
    -
    - -
    -
    -
    -
    - -
    -

    The ExpressionEvaluator Class

    -

    The ExpressionEvaluator class is designed for evaluating code expressions and extracting the source code of specified functions or classes from a given source code input. It utilizes the Abstract Syntax Tree (AST) provided by Python’s ast module to navigate and interpret the structure of the code.

    -
    from expression_evaluator import ExpressionEvaluator
    -
    -
    -
    -

    Initialization

    -

    To initialize an instance of the ExpressionEvaluator class, the source code to be analyzed needs to be provided, along with optional parameters specifying the names of the function or class to extract.

    -
    evaluator = ExpressionEvaluator(source_code, function_name="my_function", class_name="MyClass")
    -
    -
    -

    Parameters:

    -
      -
    • source_code: The complete source code as a string.

    • -
    • function_name: Optional. The name of the function to find and extract from the source code.

    • -
    • class_name: Optional. The name of the class to find and extract from the source code.

    • -
    -
    -
    -

    Attributes

    -
      -
    • function_code: After evaluation, this attribute contains the extracted source code of the specified function, if found.

    • -
    • class_code: After evaluation, this attribute contains the extracted source code of the specified class, if found.

    • -
    • function_name: The name of the function to search for in the source code.

    • -
    • class_name: The name of the class to search for in the source code.

    • -
    • source_code: The source code provided during initialization.

    • -
    -
    -
    -

    Methods

    -
    -

    visit_FunctionDef

    -

    This method is called when a function definition node is encountered in the AST. If the name of the function matches the target function name specified during initialization, the source segment of the function is extracted.

    -
    def visit_FunctionDef(self, node):
    -    ...
    -
    -
    -

    Parameters:

    -
      -
    • node: An instance of ast.FunctionDef representing a function definition node in the AST.

    • -
    -
    -
    -

    visit_ClassDef

    -

    This method is called when a class definition node is encountered in the AST. If the name of the class matches the target class name specified during initialization, the source segment of the class is extracted.

    -
    def visit_ClassDef(self, node):
    -    ...
    -
    -
    -

    Parameters:

    -
      -
    • node: An instance of ast.ClassDef representing a class definition node in the AST.

    • -
    -
    -
    -
    -

    Usage

    -

    To utilize the ExpressionEvaluator class, an instance must be created with the source code and optionally the function or class name. After initialization, the Abstract Syntax Tree is traversed, and if the specified function or class is found, its source code is extracted and stored in the function_code or class_code attributes respectively.

    -

    Example:

    -
    source = '''
    -def hello_world():
    -    print("Hello, world!")
    -
    -class Greeter:
    -    def greet(self):
    -        print("Hello, world!")
    -'''
    -
    -evaluator = ExpressionEvaluator(source, function_name="hello_world")
    -ast.parse(source)
    -evaluator.visit(ast.parse(source))
    -
    -print(evaluator.function_code)
    -# Output: def hello_world():\n    print("Hello, world!")
    -
    -
    -

    This class provides a straightforward way to extract specific portions of code from a larger source code base, leveraging the power of Python’s AST for code analysis and manipulation.

    -
    -
    - - -
    -
    - -
    -
    -
    -
    - - - - \ No newline at end of file diff --git a/genindex.html b/genindex.html index 9779210..178c03c 100644 --- a/genindex.html +++ b/genindex.html @@ -84,7 +84,6 @@

    Index

    | M | O | T - | V | W @@ -180,6 +179,8 @@

    C

  • module
  • + + - - -
  • ExpressionEvaluator (class in codergpt.utils.expression_evaluator) -
  • @@ -379,10 +362,6 @@

    M

  • codergpt.test_writer
  • codergpt.test_writer.test_writer -
  • -
  • codergpt.utils -
  • -
  • codergpt.utils.expression_evaluator
  • optimizer
  • @@ -433,18 +412,6 @@

    T

    -

    V

    - - - -
    -

    W

    - - - - - - diff --git a/searchindex.js b/searchindex.js index 487ab30..8d32f69 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["cli", "codergpt", "codergpt.commenter", "codergpt.documenter", "codergpt.explainer", "codergpt.optimizer", "codergpt.test_writer", "codergpt.utils", "commenter", "description", "developer", "explainer", "expression_evaluator", "index", "main", "modules", "optimizer", "test", "test_writer"], "filenames": ["cli.rst", "codergpt.rst", "codergpt.commenter.rst", "codergpt.documenter.rst", "codergpt.explainer.rst", "codergpt.optimizer.rst", "codergpt.test_writer.rst", "codergpt.utils.rst", "commenter.rst", "description.rst", "developer.rst", "explainer.rst", "expression_evaluator.rst", "index.rst", "main.rst", "modules.rst", "optimizer.rst", "test.rst", "test_writer.rst"], "titles": ["Command line interface for CoderGPT", "codergpt package", "codergpt.commenter package", "codergpt.documenter package", "codergpt.explainer package", "codergpt.optimizer package", "codergpt.test_writer package", "codergpt.utils package", "Commenter Module", "CoderGPT", "Developer Documentation", "Explainer Module", "The ExpressionEvaluator Class", "Welcome to CoderGPT\u2019s documentation!", "CoderGPT", "codergpt", "Optimizer Module", "Test writing module", "Test Writing Module"], "terms": {"thi": [0, 8, 9, 10, 12, 14, 16, 18], "modul": [0, 10, 12, 13, 14, 15], "provid": [0, 8, 9, 12, 14, 16, 17], "cli": [0, 13, 15], "power": [0, 9, 12], "code": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 17, 18], "gener": [0, 8, 9, 14, 17, 18], "tool": 0, "design": [0, 8, 12, 14, 18], "assist": 0, "variou": [0, 14], "task": [0, 8, 14, 16, 17, 18], "includ": [0, 9, 14], "inspect": [0, 1, 9, 10], "explan": [0, 4, 9, 14], "comment": [0, 1, 9, 10, 13, 15, 16], "optim": [0, 1, 9, 10, 13, 15], "test": [0, 1, 6, 9, 10, 13], "write": [0, 1, 2, 6, 8, 9, 10, 13, 14, 16], "document": [0, 1, 9, 15, 16], "file": [0, 1, 2, 3, 4, 5, 6, 8, 9, 14, 16, 17, 18], "To": [0, 9, 12], "us": [0, 1, 7, 8, 9, 14, 17, 18], "run": [0, 9], "follow": [0, 9], "your": [0, 9], "termin": 0, "arg": [0, 9], "v": [0, 9], "verbos": [0, 9], "integ": [0, 9], "level": [0, 9], "which": [0, 8, 9, 16, 17, 18], "can": [0, 8, 9, 14, 18], "set": [0, 8, 9, 14], "0": [0, 9], "1": [0, 9], "2": [0, 9], "q": [0, 9], "quiet": [0, 9], "activ": 0, "mode": [0, 9], "limit": [0, 18], "output": [0, 9, 12, 18], "messag": [0, 9], "version": [0, 9], "displai": [0, 1, 9, 14], "current": 0, "exit": 0, "packag": [0, 9, 10, 13, 15], "show": 0, "languag": [0, 1, 2, 4, 8, 9, 14], "map": [0, 1, 9, 14], "requir": [0, 9], "path": [0, 1, 5, 6, 8, 9, 14, 16, 17, 18], "an": [0, 8, 9, 12, 14, 16, 18], "argument": [0, 9], "explain": [0, 1, 2, 3, 5, 6, 9, 10, 13, 15], "specifi": [0, 1, 7, 8, 9, 12, 14, 16, 17, 18], "function": [0, 1, 3, 4, 5, 6, 7, 9, 10, 12, 14, 16, 17, 18], "class": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 13, 14, 17], "within": [0, 9, 14, 16, 17, 18], "name": [0, 1, 3, 4, 5, 6, 7, 8, 9, 12, 14, 16, 17, 18], "add": [0, 1, 8, 9, 14], "accept": 0, "overwrit": [0, 1, 2, 5, 8, 9, 14, 16], "flag": [0, 16], "indic": [0, 1, 2, 14, 17, 18], "whether": [0, 1, 2, 8, 9, 14], "exist": [0, 1, 9, 14], "should": [0, 8, 17, 18], "overwritten": [0, 8, 16], "improv": [0, 9], "its": [0, 12, 14], "perform": [0, 9, 14, 16], "qualiti": 0, "case": [0, 9, 17, 18], "all": [0, 1, 9], "string": [0, 1, 2, 3, 8, 12, 14], "pathlib": 0, "object": [0, 1, 2, 3, 4, 5, 6, 8, 14, 16, 17, 18], "f": [0, 9], "my_funct": [0, 12], "py": [0, 9, 16], "enabl": [0, 9], "without": 0, "c": 0, "myclass": [0, 12], "p": 0, "ath": 0, "The": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 16, 17, 18], "directori": [0, 1, 9, 14, 17, 18], "i": [0, 1, 2, 3, 4, 5, 6, 8, 12, 13, 14, 16, 17, 18], "classnam": [0, 1, 3, 4, 5, 6, 9, 14, 16, 17, 18], "A": [0, 1, 2, 8, 9, 14, 16, 17, 18], "codecomment": [1, 2, 10, 13, 14, 15], "codedocument": [1, 3, 9, 10, 13, 14, 15], "codeexplain": [1, 4, 10, 13, 14, 15], "codeoptim": [1, 5, 10, 13, 14, 15], "test_writ": [1, 10, 14, 15], "codetest": [1, 6, 10, 14, 17], "write_test": [1, 6, 17, 18], "util": [1, 12, 14, 15, 17], "expression_evalu": [1, 12, 15], "expressionevalu": [1, 7, 10, 13], "visit_classdef": [1, 7], "visit_functiondef": [1, 7], "python": [1, 9, 12], "model": [1, 9, 14], "gpt": [1, 9, 14], "4": [1, 9, 14], "turbo": [1, 14], "preview": [1, 14], "base": [1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 14, 16], "fals": [1, 2, 5, 8, 14, 16], "paramet": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 17, 18], "union": [1, 14, 17], "str": [1, 2, 4, 5, 6, 8, 14, 16, 17, 18], "bool": [1, 2, 8, 14, 16], "default": [1, 2, 3, 4, 5, 6, 8, 9, 14, 16, 17, 18], "outfil": [1, 3, 6, 9, 14, 17, 18], "none": [1, 2, 3, 4, 5, 6, 7, 14, 16, 17, 18], "option": [1, 4, 5, 6, 8, 10, 12, 14, 16, 17, 18], "get_cod": [1, 10, 14, 15], "filenam": [1, 2, 3, 5, 6, 8, 9, 14, 16, 17, 18], "function_nam": [1, 7, 9, 12, 14], "class_nam": [1, 7, 9, 12, 14], "extract": [1, 2, 3, 4, 5, 7, 8, 12, 14], "return": [1, 9, 14], "sourc": [1, 7, 8, 12, 14, 16, 17, 18], "from": [1, 2, 3, 4, 5, 6, 8, 9, 12, 14, 16, 17], "contain": [1, 2, 3, 8, 9, 10, 12, 14, 18], "type": [1, 8, 9, 14], "found": [1, 12, 14], "inspect_packag": [1, 10, 14, 15], "tabl": [1, 14], "chain": [1, 2, 3, 4, 5, 6, 8, 9, 14, 16, 17, 18], "given": [1, 2, 3, 4, 5, 6, 8, 9, 12, 14, 17, 18], "invok": [1, 2, 3, 4, 5, 6, 8, 9, 14, 16, 17, 18], "runnabl": [1, 2, 3, 4, 5, 6, 8, 9, 14, 16, 18], "new": [1, 2, 8, 9, 14, 16, 17], "origin": [1, 2, 8, 14, 16], "boolean": [1, 2, 14], "tester": 6, "evalu": [7, 12], "express": [7, 12], "source_cod": [7, 12], "nodevisitor": 7, "node": [7, 12], "visit": [7, 12], "classdef": [7, 12], "definit": [7, 12], "ast": [7, 12], "If": [7, 9, 12, 14, 16, 17, 18], "match": [7, 12], "target": [7, 12, 16, 17], "segment": [7, 12], "repres": [7, 12], "functiondef": [7, 12], "project": [7, 9, 10], "enhanc": [8, 9], "readabl": [8, 9, 14], "automat": [8, 18], "ad": [8, 9], "sphinx": 8, "compat": 8, "docstr": 8, "piec": 8, "initi": [8, 10, 14, 16, 17, 18], "runnableserializ": [8, 16, 17, 18], "capabl": [8, 16, 17, 18], "execut": [8, 9, 16, 17, 18], "defin": [8, 9], "respons": [8, 17, 18], "primari": 8, "oper": [8, 9, 14], "analyz": [8, 12], "dict": [8, 17, 18], "ani": [8, 9, 17, 18], "ar": [8, 17, 18], "wa": 8, "unless": 8, "true": [8, 9, 16], "determin": 8, "By": [8, 9, 14], "written": [8, 9, 17, 18], "_updat": [8, 16], "suffix": [8, 16], "program": [8, 14], "cannot": 8, "infer": 8, "inform": [8, 9], "help": 8, "more": [8, 9, 14], "accur": [8, 9], "appropri": [8, 17], "first": [8, 9], "instruct": 8, "specif": [8, 9, 12, 14, 16, 17, 18], "format": [8, 9], "expect": 8, "either": [8, 16, 17, 18], "o": 8, "manipul": [8, 12], "support": 8, "hint": 8, "modifi": 9, "It": [9, 12, 14, 17, 18], "allow": [9, 14], "llm": [9, 17], "langchain": 9, "note": 9, "befor": 9, "ensur": 9, "environ": [9, 14], "variabl": [9, 14], "openai_api_kei": 9, "local": 9, "machin": 9, "kei": [9, 14], "authent": 9, "openai": [9, 14], "api": [9, 14], "underli": 9, "export": 9, "here": 9, "replac": 9, "actual": 9, "step": 9, "crucial": 9, "proper": 9, "reli": 9, "clone": 9, "repositori": 9, "depend": [9, 10], "pip": 9, "most": 9, "recent": 9, "data": 9, "directli": 9, "github": 9, "git": 9, "http": 9, "com": 9, "hrshdhgd": 9, "poetri": 9, "cd": 9, "syntax": [9, 12], "exampl": [9, 10, 12, 14, 16], "src": [9, 14], "constant": [9, 15], "__init__": [9, 14, 17, 18], "method": [9, 10, 14, 16, 17], "call": [9, 12], "take": [9, 14], "three": 9, "user": 9, "ha": 9, "choic": 9, "creat": [9, 12, 14, 16, 17], "one": 9, "let": 9, "": [9, 12], "consid": 9, "greet": [9, 12], "def": [9, 12], "hello": [9, 12], "__name__": 9, "__main__": 9, "user_nam": 9, "alic": 9, "print": [9, 12], "result": [9, 17], "calculate_sum": 9, "number": 9, "mathoper": 9, "multipli": 9, "self": [9, 12], "b": 9, "answer": 9, "rang": 9, "import": [9, 12, 16], "list": 9, "int": 9, "calcul": 9, "sum": 9, "two": 9, "second": 9, "In": 9, "we": 9, "built": 9, "effici": 9, "than": 9, "manual": 9, "iter": 9, "over": 9, "each": [9, 14], "elimin": 9, "need": [9, 12], "loop": 9, "output_filenam": 9, "subtract": 9, "creation": 9, "both": 9, "content": [9, 14, 15], "might": 9, "look": 9, "like": 9, "unittest": 9, "testaddfunct": 9, "testcas": 9, "test_addit": 9, "assertequ": 9, "3": 9, "7": 9, "testcalcul": 9, "setup": 9, "calc": 9, "test_subtract": 9, "10": 9, "5": 9, "unit": 9, "verifi": 9, "correctli": 9, "comput": 9, "process": 9, "simpl": 9, "produc": [9, 14, 17], "after": [9, 12], "input": [9, 12], "rst": 9, "extens": [9, 14], "save": [9, 17], "docs_dir": 9, "instead": 9, "vari": 9, "implement": 9, "would": 9, "typic": 9, "resembl": 9, "structur": [9, 12], "autofunct": 9, "autoclass": 9, "member": 9, "restructuredtext": 9, "entir": [9, 14, 17, 18], "detail": 9, "descript": [9, 14], "well": 9, "public": 9, "click": 9, "librari": 9, "below": 9, "how": [9, 14], "coder": 9, "new_command": 9, "logic": 9, "pass": 9, "section": 10, "who": 10, "want": 10, "contribut": 10, "extend": 10, "command": [10, 13], "line": [10, 13], "interfac": [10, 13], "codergpt": [10, 17], "usag": [10, 16], "constructor": 10, "get": 10, "writer": 10, "main": [10, 15], "attribut": 10, "abstract": 12, "tree": 12, "navig": 12, "interpret": 12, "instanc": [12, 14, 16, 17], "along": 12, "complet": 12, "find": 12, "function_cod": 12, "class_cod": 12, "search": [12, 13], "dure": 12, "when": 12, "encount": 12, "must": 12, "travers": 12, "store": 12, "respect": 12, "hello_world": 12, "world": [12, 14], "greeter": 12, "pars": 12, "n": 12, "straightforward": 12, "wai": 12, "portion": 12, "larger": 12, "leverag": [12, 14], "analysi": 12, "what": 13, "instal": 13, "develop": [13, 14], "index": 13, "page": 13, "integr": 14, "work": 14, "up": 14, "construct": 14, "start": 14, "prompt": 14, "templat": 14, "role": 14, "softwar": 14, "identifi": 14, "detect": 14, "dictionari": 14, "neither": 14, "nor": 14, "facilit": 14, "focu": 14, "through": 14, "comprehens": 14, "valu": 14, "accomplish": 14, "script": 14, "check": 14, "so": 14, "serv": 14, "codebas": 14, "subpackag": 15, "submodul": 15, "read": [16, 17], "same": 16, "onli": 16, "otherwis": [16, 17], "hold": 16, "langchain_cor": 16, "assum": 16, "attempt": 17, "where": [17, 18], "test_dir": 17, "prefix": 18, "test_": 18}, "objects": {"": [[18, 0, 1, "", "CodeTester"], [17, 2, 0, "-", "codergpt"], [16, 2, 0, "-", "optimizer"]], "CodeTester": [[18, 1, 1, "", "__init__"], [18, 1, 1, "", "write_tests"]], "codergpt": [[14, 0, 1, "", "CodeCommenter"], [14, 0, 1, "", "CodeDocumenter"], [14, 0, 1, "", "CodeExplainer"], [14, 0, 1, "", "CodeOptimizer"], [17, 0, 1, "", "CodeTester"], [14, 0, 1, "id0", "CoderGPT"], [2, 2, 0, "-", "commenter"], [1, 2, 0, "-", "constants"], [3, 2, 0, "-", "documenter"], [4, 2, 0, "-", "explainer"], [1, 2, 0, "-", "main"], [5, 2, 0, "-", "optimizer"], [6, 2, 0, "-", "test_writer"], [7, 2, 0, "-", "utils"]], "codergpt.CodeCommenter": [[14, 1, 1, "", "comment"]], "codergpt.CodeDocumenter": [[14, 1, 1, "", "document"]], "codergpt.CodeExplainer": [[14, 1, 1, "", "explain"]], "codergpt.CodeOptimizer": [[14, 1, 1, "", "optimize"]], "codergpt.CodeTester": [[17, 1, 1, "", "__init__"], [17, 1, 1, "", "write_tests"]], "codergpt.CoderGPT": [[14, 1, 1, "", "__init__"], [14, 1, 1, "id1", "commenter"], [14, 1, 1, "id2", "documenter"], [14, 1, 1, "id3", "explainer"], [14, 1, 1, "id4", "get_code"], [14, 1, 1, "id5", "inspect_package"], [14, 1, 1, "id6", "optimizer"], [14, 1, 1, "id7", "test_writer"]], "codergpt.commenter": [[2, 0, 1, "", "CodeCommenter"], [2, 2, 0, "-", "commenter"]], "codergpt.commenter.CodeCommenter": [[2, 1, 1, "", "comment"]], "codergpt.commenter.commenter": [[2, 0, 1, "", "CodeCommenter"]], "codergpt.commenter.commenter.CodeCommenter": [[2, 1, 1, "", "comment"]], "codergpt.documenter": [[3, 0, 1, "", "CodeDocumenter"], [3, 2, 0, "-", "documenter"]], "codergpt.documenter.CodeDocumenter": [[3, 1, 1, "", "document"]], "codergpt.documenter.documenter": [[3, 0, 1, "", "CodeDocumenter"]], "codergpt.documenter.documenter.CodeDocumenter": [[3, 1, 1, "", "document"]], "codergpt.explainer": [[4, 0, 1, "", "CodeExplainer"], [4, 2, 0, "-", "explainer"]], "codergpt.explainer.CodeExplainer": [[4, 1, 1, "", "explain"]], "codergpt.explainer.explainer": [[4, 0, 1, "", "CodeExplainer"]], "codergpt.explainer.explainer.CodeExplainer": [[4, 1, 1, "", "explain"]], "codergpt.main": [[1, 0, 1, "", "CoderGPT"]], "codergpt.main.CoderGPT": [[1, 1, 1, "", "commenter"], [1, 1, 1, "", "documenter"], [1, 1, 1, "", "explainer"], [1, 1, 1, "", "get_code"], [1, 1, 1, "", "inspect_package"], [1, 1, 1, "", "optimizer"], [1, 1, 1, "", "test_writer"]], "codergpt.optimizer": [[5, 0, 1, "", "CodeOptimizer"], [5, 2, 0, "-", "optimizer"]], "codergpt.optimizer.CodeOptimizer": [[5, 1, 1, "", "optimize"]], "codergpt.optimizer.optimizer": [[5, 0, 1, "", "CodeOptimizer"]], "codergpt.optimizer.optimizer.CodeOptimizer": [[5, 1, 1, "", "optimize"]], "codergpt.test_writer": [[6, 2, 0, "-", "test_writer"]], "codergpt.test_writer.test_writer": [[6, 0, 1, "", "CodeTester"]], "codergpt.test_writer.test_writer.CodeTester": [[6, 1, 1, "", "write_tests"]], "codergpt.utils": [[7, 2, 0, "-", "expression_evaluator"]], "codergpt.utils.expression_evaluator": [[7, 0, 1, "", "ExpressionEvaluator"]], "codergpt.utils.expression_evaluator.ExpressionEvaluator": [[7, 1, 1, "", "visit_ClassDef"], [7, 1, 1, "", "visit_FunctionDef"]], "optimizer": [[16, 0, 1, "", "CodeOptimizer"], [16, 1, 1, "", "optimize"]]}, "objtypes": {"0": "py:class", "1": "py:method", "2": "py:module"}, "objnames": {"0": ["py", "class", "Python class"], "1": ["py", "method", "Python method"], "2": ["py", "module", "Python module"]}, "titleterms": {"command": [0, 9], "line": [0, 9], "interfac": [0, 9], "codergpt": [0, 1, 2, 3, 4, 5, 6, 7, 9, 13, 14, 15], "usag": [0, 12], "option": [0, 9], "exampl": 0, "paramet": 0, "packag": [1, 2, 3, 4, 5, 6, 7, 14], "subpackag": 1, "submodul": [1, 2, 3, 4, 5, 6, 7], "cli": [1, 9], "modul": [1, 2, 3, 4, 5, 6, 7, 8, 11, 16, 17, 18], "constant": 1, "main": [1, 14], "content": [1, 2, 3, 4, 5, 6, 7, 10], "comment": [2, 8, 14], "document": [3, 10, 13, 14], "explain": [4, 11, 14], "optim": [5, 14, 16], "test_writ": 6, "util": 7, "expression_evalu": 7, "class": [8, 12, 16, 18], "codecomment": 8, "method": [8, 12], "depend": 8, "what": 9, "i": 9, "instal": 9, "develop": [9, 10], "The": 12, "expressionevalu": 12, "initi": 12, "attribut": 12, "visit_functiondef": 12, "visit_classdef": 12, "welcom": 13, "": 13, "get": [13, 14], "start": 13, "indic": 13, "tabl": 13, "constructor": 14, "inspect": 14, "code": 14, "test": [14, 17, 18], "writer": 14, "codeoptim": 16, "write": [17, 18], "codetest": 18}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"Command line interface for CoderGPT": [[0, "command-line-interface-for-codergpt"]], "Usage": [[0, "usage"], [12, "usage"]], "Options": [[0, "options"], [9, "options"]], "Commands": [[0, "commands"], [9, "commands"]], "Examples": [[0, "examples"]], "Parameters and Options": [[0, "parameters-and-options"]], "codergpt package": [[1, "codergpt-package"]], "Subpackages": [[1, "subpackages"]], "Submodules": [[1, "submodules"], [2, "submodules"], [3, "submodules"], [4, "submodules"], [5, "submodules"], [6, "submodules"], [7, "submodules"]], "codergpt.cli module": [[1, "codergpt-cli-module"]], "codergpt.constants module": [[1, "module-codergpt.constants"]], "codergpt.main module": [[1, "module-codergpt.main"]], "Module contents": [[1, "module-codergpt"], [2, "module-codergpt.commenter"], [3, "module-codergpt.documenter"], [4, "module-codergpt.explainer"], [5, "module-codergpt.optimizer"], [6, "module-codergpt.test_writer"], [7, "module-codergpt.utils"]], "codergpt.commenter package": [[2, "codergpt-commenter-package"]], "codergpt.commenter.commenter module": [[2, "module-codergpt.commenter.commenter"]], "codergpt.documenter package": [[3, "codergpt-documenter-package"]], "codergpt.documenter.documenter module": [[3, "module-codergpt.documenter.documenter"]], "codergpt.explainer package": [[4, "codergpt-explainer-package"]], "codergpt.explainer.explainer module": [[4, "module-codergpt.explainer.explainer"]], "codergpt.optimizer package": [[5, "codergpt-optimizer-package"]], "codergpt.optimizer.optimizer module": [[5, "module-codergpt.optimizer.optimizer"]], "codergpt.test_writer package": [[6, "codergpt-test-writer-package"]], "codergpt.test_writer.test_writer module": [[6, "module-codergpt.test_writer.test_writer"]], "codergpt.utils package": [[7, "codergpt-utils-package"]], "codergpt.utils.expression_evaluator module": [[7, "module-codergpt.utils.expression_evaluator"]], "Commenter Module": [[8, "commenter-module"]], "Classes": [[8, "classes"], [16, "classes"], [18, "classes"]], "CodeCommenter": [[8, "codecommenter"]], "Methods": [[8, "methods"], [12, "methods"]], "Dependencies": [[8, "dependencies"]], "CoderGPT": [[9, "codergpt"], [14, "codergpt"]], "What is it?": [[9, "what-is-it"]], "Installation": [[9, "installation"]], "Command Line Interface (CLI)": [[9, "command-line-interface-cli"]], "Development": [[9, "development"]], "Developer Documentation": [[10, "developer-documentation"]], "Contents:": [[10, null]], "Explainer Module": [[11, "explainer-module"]], "The ExpressionEvaluator Class": [[12, "the-expressionevaluator-class"]], "Initialization": [[12, "initialization"]], "Attributes": [[12, "attributes"]], "visit_FunctionDef": [[12, "visit-functiondef"]], "visit_ClassDef": [[12, "visit-classdef"]], "Welcome to CoderGPT\u2019s documentation!": [[13, "welcome-to-codergpt-s-documentation"]], "Getting Started": [[13, null]], "Indices and tables": [[13, "indices-and-tables"]], "Constructor": [[14, "constructor"]], "Inspect Package": [[14, "inspect-package"]], "Get Code": [[14, "get-code"]], "Explainer": [[14, "explainer"]], "Commenter": [[14, "commenter"]], "Optimizer": [[14, "optimizer"]], "Test Writer": [[14, "test-writer"]], "Documenter": [[14, "documenter"]], "Main": [[14, "main"]], "codergpt": [[15, "codergpt"]], "Optimizer Module": [[16, "module-optimizer"]], "CodeOptimizer": [[16, "codeoptimizer"]], "Test writing module": [[17, "test-writing-module"]], "Test Writing Module": [[18, "test-writing-module"]], "CodeTester": [[18, "codetester"]]}, "indexentries": {"codecommenter (class in codergpt)": [[1, "codergpt.CodeCommenter"], [14, "codergpt.CodeCommenter"]], "codedocumenter (class in codergpt)": [[1, "codergpt.CodeDocumenter"], [14, "codergpt.CodeDocumenter"]], "codeexplainer (class in codergpt)": [[1, "codergpt.CodeExplainer"], [14, "codergpt.CodeExplainer"]], "codeoptimizer (class in codergpt)": [[1, "codergpt.CodeOptimizer"], [14, "codergpt.CodeOptimizer"]], "codergpt (class in codergpt)": [[1, "codergpt.CoderGPT"], [14, "codergpt.CoderGPT"], [14, "id0"]], "codergpt (class in codergpt.main)": [[1, "codergpt.main.CoderGPT"]], "codergpt": [[1, "module-codergpt"], [14, "module-codergpt"], [17, "module-codergpt"]], "codergpt.constants": [[1, "module-codergpt.constants"]], "codergpt.main": [[1, "module-codergpt.main"]], "comment() (codergpt.codecommenter method)": [[1, "codergpt.CodeCommenter.comment"], [14, "codergpt.CodeCommenter.comment"]], "commenter() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.commenter"], [14, "codergpt.CoderGPT.commenter"], [14, "id1"]], "commenter() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.commenter"]], "document() (codergpt.codedocumenter method)": [[1, "codergpt.CodeDocumenter.document"], [14, "codergpt.CodeDocumenter.document"]], "documenter() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.documenter"], [14, "codergpt.CoderGPT.documenter"], [14, "id2"]], "documenter() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.documenter"]], "explain() (codergpt.codeexplainer method)": [[1, "codergpt.CodeExplainer.explain"], [14, "codergpt.CodeExplainer.explain"]], "explainer() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.explainer"], [14, "codergpt.CoderGPT.explainer"], [14, "id3"]], "explainer() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.explainer"]], "get_code() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.get_code"], [14, "codergpt.CoderGPT.get_code"], [14, "id4"]], "get_code() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.get_code"]], "inspect_package() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.inspect_package"], [14, "codergpt.CoderGPT.inspect_package"], [14, "id5"]], "inspect_package() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.inspect_package"]], "module": [[1, "module-codergpt"], [1, "module-codergpt.constants"], [1, "module-codergpt.main"], [2, "module-codergpt.commenter"], [2, "module-codergpt.commenter.commenter"], [3, "module-codergpt.documenter"], [3, "module-codergpt.documenter.documenter"], [4, "module-codergpt.explainer"], [4, "module-codergpt.explainer.explainer"], [5, "module-codergpt.optimizer"], [5, "module-codergpt.optimizer.optimizer"], [6, "module-codergpt.test_writer"], [6, "module-codergpt.test_writer.test_writer"], [7, "module-codergpt.utils"], [7, "module-codergpt.utils.expression_evaluator"], [14, "module-codergpt"], [16, "module-optimizer"], [17, "module-codergpt"]], "optimize() (codergpt.codeoptimizer method)": [[1, "codergpt.CodeOptimizer.optimize"], [14, "codergpt.CodeOptimizer.optimize"]], "optimizer() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.optimizer"], [14, "codergpt.CoderGPT.optimizer"], [14, "id6"]], "optimizer() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.optimizer"]], "test_writer() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.test_writer"], [14, "codergpt.CoderGPT.test_writer"], [14, "id7"]], "test_writer() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.test_writer"]], "codecommenter (class in codergpt.commenter)": [[2, "codergpt.commenter.CodeCommenter"]], "codecommenter (class in codergpt.commenter.commenter)": [[2, "codergpt.commenter.commenter.CodeCommenter"]], "codergpt.commenter": [[2, "module-codergpt.commenter"]], "codergpt.commenter.commenter": [[2, "module-codergpt.commenter.commenter"]], "comment() (codergpt.commenter.codecommenter method)": [[2, "codergpt.commenter.CodeCommenter.comment"]], "comment() (codergpt.commenter.commenter.codecommenter method)": [[2, "codergpt.commenter.commenter.CodeCommenter.comment"]], "codedocumenter (class in codergpt.documenter)": [[3, "codergpt.documenter.CodeDocumenter"]], "codedocumenter (class in codergpt.documenter.documenter)": [[3, "codergpt.documenter.documenter.CodeDocumenter"]], "codergpt.documenter": [[3, "module-codergpt.documenter"]], "codergpt.documenter.documenter": [[3, "module-codergpt.documenter.documenter"]], "document() (codergpt.documenter.codedocumenter method)": [[3, "codergpt.documenter.CodeDocumenter.document"]], "document() (codergpt.documenter.documenter.codedocumenter method)": [[3, "codergpt.documenter.documenter.CodeDocumenter.document"]], "codeexplainer (class in codergpt.explainer)": [[4, "codergpt.explainer.CodeExplainer"]], "codeexplainer (class in codergpt.explainer.explainer)": [[4, "codergpt.explainer.explainer.CodeExplainer"]], "codergpt.explainer": [[4, "module-codergpt.explainer"]], "codergpt.explainer.explainer": [[4, "module-codergpt.explainer.explainer"]], "explain() (codergpt.explainer.codeexplainer method)": [[4, "codergpt.explainer.CodeExplainer.explain"]], "explain() (codergpt.explainer.explainer.codeexplainer method)": [[4, "codergpt.explainer.explainer.CodeExplainer.explain"]], "codeoptimizer (class in codergpt.optimizer)": [[5, "codergpt.optimizer.CodeOptimizer"]], "codeoptimizer (class in codergpt.optimizer.optimizer)": [[5, "codergpt.optimizer.optimizer.CodeOptimizer"]], "codergpt.optimizer": [[5, "module-codergpt.optimizer"]], "codergpt.optimizer.optimizer": [[5, "module-codergpt.optimizer.optimizer"]], "optimize() (codergpt.optimizer.codeoptimizer method)": [[5, "codergpt.optimizer.CodeOptimizer.optimize"]], "optimize() (codergpt.optimizer.optimizer.codeoptimizer method)": [[5, "codergpt.optimizer.optimizer.CodeOptimizer.optimize"]], "codetester (class in codergpt.test_writer.test_writer)": [[6, "codergpt.test_writer.test_writer.CodeTester"]], "codergpt.test_writer": [[6, "module-codergpt.test_writer"]], "codergpt.test_writer.test_writer": [[6, "module-codergpt.test_writer.test_writer"]], "write_tests() (codergpt.test_writer.test_writer.codetester method)": [[6, "codergpt.test_writer.test_writer.CodeTester.write_tests"]], "expressionevaluator (class in codergpt.utils.expression_evaluator)": [[7, "codergpt.utils.expression_evaluator.ExpressionEvaluator"]], "codergpt.utils": [[7, "module-codergpt.utils"]], "codergpt.utils.expression_evaluator": [[7, "module-codergpt.utils.expression_evaluator"]], "visit_classdef() (codergpt.utils.expression_evaluator.expressionevaluator method)": [[7, "codergpt.utils.expression_evaluator.ExpressionEvaluator.visit_ClassDef"]], "visit_functiondef() (codergpt.utils.expression_evaluator.expressionevaluator method)": [[7, "codergpt.utils.expression_evaluator.ExpressionEvaluator.visit_FunctionDef"]], "__init__() (codergpt.codergpt method)": [[14, "codergpt.CoderGPT.__init__"]], "codeoptimizer (class in optimizer)": [[16, "optimizer.CodeOptimizer"]], "optimize() (in module optimizer)": [[16, "optimizer.optimize"]], "optimizer": [[16, "module-optimizer"]], "codetester (class in codergpt)": [[17, "codergpt.CodeTester"]], "__init__() (codergpt.codetester method)": [[17, "codergpt.CodeTester.__init__"]], "write_tests() (codergpt.codetester method)": [[17, "codergpt.CodeTester.write_tests"]], "codetester (built-in class)": [[18, "CodeTester"]], "__init__() (codetester method)": [[18, "CodeTester.__init__"]], "write_tests() (codetester method)": [[18, "CodeTester.write_tests"]]}}) \ No newline at end of file +Search.setIndex({"docnames": ["cli", "codergpt", "codergpt.commenter", "codergpt.documenter", "codergpt.explainer", "codergpt.optimizer", "codergpt.test_writer", "commenter", "description", "developer", "explainer", "index", "main", "modules", "optimizer", "test", "test_writer"], "filenames": ["cli.rst", "codergpt.rst", "codergpt.commenter.rst", "codergpt.documenter.rst", "codergpt.explainer.rst", "codergpt.optimizer.rst", "codergpt.test_writer.rst", "commenter.rst", "description.rst", "developer.rst", "explainer.rst", "index.rst", "main.rst", "modules.rst", "optimizer.rst", "test.rst", "test_writer.rst"], "titles": ["Command line interface for CoderGPT", "codergpt package", "codergpt.commenter package", "codergpt.documenter package", "codergpt.explainer package", "codergpt.optimizer package", "codergpt.test_writer package", "Commenter Module", "CoderGPT", "Developer Documentation", "Explainer Module", "Welcome to CoderGPT\u2019s documentation!", "CoderGPT", "codergpt", "Optimizer Module", "Test writing module", "Test Writing Module"], "terms": {"thi": [0, 7, 8, 9, 12, 14, 16], "modul": [0, 9, 11, 12, 13], "provid": [0, 7, 8, 12, 14, 15], "cli": [0, 11, 13], "power": [0, 8], "code": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 15, 16], "gener": [0, 7, 8, 12, 15, 16], "tool": 0, "design": [0, 7, 12, 16], "assist": 0, "variou": [0, 12], "task": [0, 7, 12, 14, 15, 16], "includ": [0, 8, 12], "inspect": [0, 1, 8, 9], "explan": [0, 4, 8, 12], "comment": [0, 1, 8, 9, 11, 13, 14], "optim": [0, 1, 8, 9, 11, 13], "test": [0, 1, 6, 8, 9, 11], "write": [0, 1, 2, 6, 7, 8, 9, 11, 12, 14], "document": [0, 1, 8, 13, 14], "file": [0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 16], "To": [0, 8], "us": [0, 1, 7, 8, 12, 15, 16], "run": [0, 8], "follow": [0, 8], "your": [0, 8], "termin": 0, "arg": [0, 8], "v": [0, 8], "verbos": [0, 8], "integ": [0, 8], "level": [0, 8], "which": [0, 7, 8, 14, 15, 16], "can": [0, 7, 8, 12, 16], "set": [0, 7, 8, 12], "0": [0, 8], "1": [0, 8], "2": [0, 8], "q": [0, 8], "quiet": [0, 8], "activ": 0, "mode": [0, 8], "limit": [0, 16], "output": [0, 8, 16], "messag": [0, 8], "version": [0, 8], "displai": [0, 1, 8, 12], "current": 0, "exit": 0, "packag": [0, 8, 9, 11, 13], "show": 0, "languag": [0, 1, 2, 4, 7, 8, 12], "map": [0, 1, 8, 12], "requir": [0, 8], "path": [0, 1, 5, 6, 7, 8, 12, 14, 15, 16], "an": [0, 7, 8, 12, 14, 16], "argument": [0, 8], "explain": [0, 1, 2, 3, 5, 6, 8, 9, 11, 13], "specifi": [0, 1, 7, 8, 12, 14, 15, 16], "function": [0, 1, 3, 4, 5, 6, 8, 9, 12, 14, 15, 16], "class": [0, 1, 2, 3, 4, 5, 6, 8, 9, 12, 15], "within": [0, 8, 12, 14, 15, 16], "name": [0, 1, 3, 4, 5, 6, 7, 8, 12, 14, 15, 16], "add": [0, 1, 7, 8, 12], "accept": 0, "overwrit": [0, 1, 2, 5, 7, 8, 12, 14], "flag": [0, 14], "indic": [0, 1, 2, 12, 15, 16], "whether": [0, 1, 2, 7, 8, 12], "exist": [0, 1, 8, 12], "should": [0, 7, 15, 16], "overwritten": [0, 7, 14], "improv": [0, 8], "its": [0, 12], "perform": [0, 8, 12, 14], "qualiti": 0, "case": [0, 8, 15, 16], "all": [0, 1, 8], "string": [0, 1, 2, 3, 7, 12], "pathlib": 0, "object": [0, 1, 2, 3, 4, 5, 6, 7, 12, 14, 15, 16], "f": [0, 8], "my_funct": 0, "py": [0, 8, 14], "enabl": [0, 8], "without": 0, "c": 0, "myclass": 0, "p": 0, "ath": 0, "The": [0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 16], "directori": [0, 1, 8, 12, 15, 16], "i": [0, 1, 2, 3, 4, 5, 6, 7, 11, 12, 14, 15, 16], "classnam": [0, 1, 3, 4, 5, 6, 8, 12, 14, 15, 16], "A": [0, 1, 2, 7, 8, 12, 14, 15, 16], "codecomment": [1, 2, 9, 11, 12, 13], "codedocument": [1, 3, 8, 9, 11, 12, 13], "codeexplain": [1, 4, 9, 11, 12, 13], "codeoptim": [1, 5, 9, 11, 12, 13], "test_writ": [1, 9, 12, 13], "codetest": [1, 6, 9, 12, 15], "write_test": [1, 6, 15, 16], "python": [1, 8], "model": [1, 8, 12], "gpt": [1, 8, 12], "4": [1, 8, 12], "turbo": [1, 12], "preview": [1, 12], "base": [1, 2, 3, 4, 5, 6, 7, 8, 12, 14], "fals": [1, 2, 5, 7, 12, 14], "paramet": [1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 14, 15, 16], "union": [1, 12, 15], "str": [1, 2, 4, 5, 6, 7, 12, 14, 15, 16], "bool": [1, 2, 7, 12, 14], "default": [1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 16], "outfil": [1, 3, 6, 8, 12, 15, 16], "none": [1, 2, 3, 4, 5, 6, 12, 14, 15, 16], "option": [1, 4, 5, 6, 7, 9, 12, 14, 15, 16], "get_cod": [1, 9, 12, 13], "filenam": [1, 2, 3, 5, 6, 7, 8, 12, 14, 15, 16], "function_nam": [1, 8, 12], "class_nam": [1, 8, 12], "extract": [1, 2, 3, 4, 5, 7, 12], "return": [1, 8, 12], "sourc": [1, 7, 12, 14, 15, 16], "from": [1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15], "contain": [1, 2, 3, 7, 8, 9, 12, 16], "type": [1, 7, 8, 12], "found": [1, 12], "inspect_packag": [1, 9, 12, 13], "tabl": [1, 12], "chain": [1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 16], "given": [1, 2, 3, 4, 5, 6, 7, 8, 12, 15, 16], "invok": [1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 15, 16], "runnabl": [1, 2, 3, 4, 5, 6, 7, 8, 12, 14, 16], "new": [1, 2, 7, 8, 12, 14, 15], "origin": [1, 2, 7, 12, 14], "boolean": [1, 2, 12], "tester": 6, "enhanc": [7, 8], "readabl": [7, 8, 12], "automat": [7, 16], "ad": [7, 8], "sphinx": 7, "compat": 7, "docstr": 7, "piec": 7, "initi": [7, 12, 14, 15, 16], "runnableserializ": [7, 14, 15, 16], "capabl": [7, 14, 15, 16], "execut": [7, 8, 14, 15, 16], "defin": [7, 8], "respons": [7, 15, 16], "primari": 7, "oper": [7, 8, 12], "analyz": 7, "dict": [7, 15, 16], "ani": [7, 8, 15, 16], "ar": [7, 15, 16], "wa": 7, "unless": 7, "true": [7, 8, 14], "determin": 7, "By": [7, 8, 12], "written": [7, 8, 15, 16], "_updat": [7, 14], "suffix": [7, 14], "program": [7, 12], "cannot": 7, "infer": 7, "inform": [7, 8], "help": 7, "more": [7, 8, 12], "accur": [7, 8], "appropri": [7, 15], "first": [7, 8], "instruct": 7, "specif": [7, 8, 12, 14, 15, 16], "format": [7, 8], "expect": 7, "either": [7, 14, 15, 16], "o": 7, "manipul": 7, "support": 7, "hint": 7, "modifi": 8, "It": [8, 12, 15, 16], "allow": [8, 12], "project": [8, 9], "llm": [8, 15], "langchain": 8, "note": 8, "befor": 8, "ensur": 8, "environ": [8, 12], "variabl": [8, 12], "openai_api_kei": 8, "local": 8, "machin": 8, "kei": [8, 12], "authent": 8, "openai": [8, 12], "api": [8, 12], "underli": 8, "export": 8, "here": 8, "replac": 8, "actual": 8, "step": 8, "crucial": 8, "proper": 8, "reli": 8, "clone": 8, "repositori": 8, "depend": [8, 9], "pip": 8, "most": 8, "recent": 8, "data": 8, "directli": 8, "github": 8, "git": 8, "http": 8, "com": 8, "hrshdhgd": 8, "poetri": 8, "cd": 8, "syntax": 8, "exampl": [8, 9, 12, 14], "src": [8, 12], "constant": [8, 13], "__init__": [8, 12, 15, 16], "method": [8, 9, 12, 14, 15], "call": 8, "take": [8, 12], "three": 8, "user": 8, "ha": 8, "choic": 8, "creat": [8, 12, 14, 15], "one": 8, "let": 8, "": 8, "consid": 8, "greet": 8, "def": 8, "hello": 8, "__name__": 8, "__main__": 8, "user_nam": 8, "alic": 8, "print": 8, "result": [8, 15], "calculate_sum": 8, "number": 8, "mathoper": 8, "multipli": 8, "self": 8, "b": 8, "answer": 8, "rang": 8, "import": [8, 14], "list": 8, "int": 8, "calcul": 8, "sum": 8, "two": 8, "second": 8, "In": 8, "we": 8, "built": 8, "effici": 8, "than": 8, "manual": 8, "iter": 8, "over": 8, "each": [8, 12], "elimin": 8, "need": 8, "loop": 8, "output_filenam": 8, "subtract": 8, "creation": 8, "both": 8, "content": [8, 12, 13], "might": 8, "look": 8, "like": 8, "unittest": 8, "testaddfunct": 8, "testcas": 8, "test_addit": 8, "assertequ": 8, "3": 8, "7": 8, "testcalcul": 8, "setup": 8, "calc": 8, "test_subtract": 8, "10": 8, "5": 8, "unit": 8, "verifi": 8, "correctli": 8, "comput": 8, "process": 8, "simpl": 8, "produc": [8, 12, 15], "after": 8, "input": 8, "rst": 8, "extens": [8, 12], "save": [8, 15], "docs_dir": 8, "If": [8, 12, 14, 15, 16], "instead": 8, "vari": 8, "implement": 8, "would": 8, "typic": 8, "resembl": 8, "structur": 8, "autofunct": 8, "autoclass": 8, "member": 8, "restructuredtext": 8, "entir": [8, 12, 15, 16], "detail": 8, "descript": [8, 12], "well": 8, "public": 8, "click": 8, "librari": 8, "below": 8, "how": [8, 12], "coder": 8, "new_command": 8, "logic": 8, "pass": 8, "section": 9, "who": 9, "want": 9, "contribut": 9, "extend": 9, "command": [9, 11], "line": [9, 11], "interfac": [9, 11], "codergpt": [9, 15], "usag": [9, 14], "constructor": 9, "get": 9, "writer": 9, "main": [9, 13], "what": 11, "instal": 11, "develop": [11, 12], "index": 11, "search": 11, "page": 11, "integr": 12, "work": 12, "leverag": 12, "up": 12, "construct": 12, "start": 12, "prompt": 12, "templat": 12, "role": 12, "world": 12, "softwar": 12, "identifi": 12, "detect": 12, "dictionari": 12, "neither": 12, "nor": 12, "util": [12, 15], "instanc": [12, 14, 15], "facilit": 12, "focu": 12, "through": 12, "comprehens": 12, "valu": 12, "accomplish": 12, "script": 12, "check": 12, "so": 12, "serv": 12, "codebas": 12, "subpackag": 13, "submodul": 13, "read": [14, 15], "same": 14, "onli": 14, "target": [14, 15], "otherwis": [14, 15], "hold": 14, "langchain_cor": 14, "assum": 14, "attempt": 15, "where": [15, 16], "test_dir": 15, "prefix": 16, "test_": 16}, "objects": {"": [[16, 0, 1, "", "CodeTester"], [15, 2, 0, "-", "codergpt"], [14, 2, 0, "-", "optimizer"]], "CodeTester": [[16, 1, 1, "", "__init__"], [16, 1, 1, "", "write_tests"]], "codergpt": [[12, 0, 1, "", "CodeCommenter"], [12, 0, 1, "", "CodeDocumenter"], [12, 0, 1, "", "CodeExplainer"], [12, 0, 1, "", "CodeOptimizer"], [15, 0, 1, "", "CodeTester"], [12, 0, 1, "id0", "CoderGPT"], [2, 2, 0, "-", "commenter"], [1, 2, 0, "-", "constants"], [3, 2, 0, "-", "documenter"], [4, 2, 0, "-", "explainer"], [1, 2, 0, "-", "main"], [5, 2, 0, "-", "optimizer"], [6, 2, 0, "-", "test_writer"]], "codergpt.CodeCommenter": [[12, 1, 1, "", "comment"]], "codergpt.CodeDocumenter": [[12, 1, 1, "", "document"]], "codergpt.CodeExplainer": [[12, 1, 1, "", "explain"]], "codergpt.CodeOptimizer": [[12, 1, 1, "", "optimize"]], "codergpt.CodeTester": [[15, 1, 1, "", "__init__"], [15, 1, 1, "", "write_tests"]], "codergpt.CoderGPT": [[12, 1, 1, "", "__init__"], [12, 1, 1, "id1", "commenter"], [12, 1, 1, "id2", "documenter"], [12, 1, 1, "id3", "explainer"], [12, 1, 1, "id4", "get_code"], [12, 1, 1, "id5", "inspect_package"], [12, 1, 1, "id6", "optimizer"], [12, 1, 1, "id7", "test_writer"]], "codergpt.commenter": [[2, 0, 1, "", "CodeCommenter"], [2, 2, 0, "-", "commenter"]], "codergpt.commenter.CodeCommenter": [[2, 1, 1, "", "comment"]], "codergpt.commenter.commenter": [[2, 0, 1, "", "CodeCommenter"]], "codergpt.commenter.commenter.CodeCommenter": [[2, 1, 1, "", "comment"]], "codergpt.documenter": [[3, 0, 1, "", "CodeDocumenter"], [3, 2, 0, "-", "documenter"]], "codergpt.documenter.CodeDocumenter": [[3, 1, 1, "", "document"]], "codergpt.documenter.documenter": [[3, 0, 1, "", "CodeDocumenter"]], "codergpt.documenter.documenter.CodeDocumenter": [[3, 1, 1, "", "document"]], "codergpt.explainer": [[4, 0, 1, "", "CodeExplainer"], [4, 2, 0, "-", "explainer"]], "codergpt.explainer.CodeExplainer": [[4, 1, 1, "", "explain"]], "codergpt.explainer.explainer": [[4, 0, 1, "", "CodeExplainer"]], "codergpt.explainer.explainer.CodeExplainer": [[4, 1, 1, "", "explain"]], "codergpt.main": [[1, 0, 1, "", "CoderGPT"]], "codergpt.main.CoderGPT": [[1, 1, 1, "", "commenter"], [1, 1, 1, "", "documenter"], [1, 1, 1, "", "explainer"], [1, 1, 1, "", "get_code"], [1, 1, 1, "", "inspect_package"], [1, 1, 1, "", "optimizer"], [1, 1, 1, "", "test_writer"]], "codergpt.optimizer": [[5, 0, 1, "", "CodeOptimizer"], [5, 2, 0, "-", "optimizer"]], "codergpt.optimizer.CodeOptimizer": [[5, 1, 1, "", "optimize"]], "codergpt.optimizer.optimizer": [[5, 0, 1, "", "CodeOptimizer"]], "codergpt.optimizer.optimizer.CodeOptimizer": [[5, 1, 1, "", "optimize"]], "codergpt.test_writer": [[6, 2, 0, "-", "test_writer"]], "codergpt.test_writer.test_writer": [[6, 0, 1, "", "CodeTester"]], "codergpt.test_writer.test_writer.CodeTester": [[6, 1, 1, "", "write_tests"]], "optimizer": [[14, 0, 1, "", "CodeOptimizer"], [14, 1, 1, "", "optimize"]]}, "objtypes": {"0": "py:class", "1": "py:method", "2": "py:module"}, "objnames": {"0": ["py", "class", "Python class"], "1": ["py", "method", "Python method"], "2": ["py", "module", "Python module"]}, "titleterms": {"command": [0, 8], "line": [0, 8], "interfac": [0, 8], "codergpt": [0, 1, 2, 3, 4, 5, 6, 8, 11, 12, 13], "usag": 0, "option": [0, 8], "exampl": 0, "paramet": 0, "packag": [1, 2, 3, 4, 5, 6, 12], "subpackag": 1, "submodul": [1, 2, 3, 4, 5, 6], "cli": [1, 8], "modul": [1, 2, 3, 4, 5, 6, 7, 10, 14, 15, 16], "constant": 1, "main": [1, 12], "content": [1, 2, 3, 4, 5, 6, 9], "comment": [2, 7, 12], "document": [3, 9, 11, 12], "explain": [4, 10, 12], "optim": [5, 12, 14], "test_writ": 6, "class": [7, 14, 16], "codecomment": 7, "method": 7, "depend": 7, "what": 8, "i": 8, "instal": 8, "develop": [8, 9], "welcom": 11, "": 11, "get": [11, 12], "start": 11, "indic": 11, "tabl": 11, "constructor": 12, "inspect": 12, "code": 12, "test": [12, 15, 16], "writer": 12, "codeoptim": 14, "write": [15, 16], "codetest": 16}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"Command line interface for CoderGPT": [[0, "command-line-interface-for-codergpt"]], "Usage": [[0, "usage"]], "Options": [[0, "options"], [8, "options"]], "Commands": [[0, "commands"], [8, "commands"]], "Examples": [[0, "examples"]], "Parameters and Options": [[0, "parameters-and-options"]], "codergpt package": [[1, "codergpt-package"]], "Subpackages": [[1, "subpackages"]], "Submodules": [[1, "submodules"], [2, "submodules"], [3, "submodules"], [4, "submodules"], [5, "submodules"], [6, "submodules"]], "codergpt.cli module": [[1, "codergpt-cli-module"]], "codergpt.constants module": [[1, "module-codergpt.constants"]], "codergpt.main module": [[1, "module-codergpt.main"]], "Module contents": [[1, "module-codergpt"], [2, "module-codergpt.commenter"], [3, "module-codergpt.documenter"], [4, "module-codergpt.explainer"], [5, "module-codergpt.optimizer"], [6, "module-codergpt.test_writer"]], "codergpt.commenter package": [[2, "codergpt-commenter-package"]], "codergpt.commenter.commenter module": [[2, "module-codergpt.commenter.commenter"]], "codergpt.documenter package": [[3, "codergpt-documenter-package"]], "codergpt.documenter.documenter module": [[3, "module-codergpt.documenter.documenter"]], "codergpt.explainer package": [[4, "codergpt-explainer-package"]], "codergpt.explainer.explainer module": [[4, "module-codergpt.explainer.explainer"]], "codergpt.optimizer package": [[5, "codergpt-optimizer-package"]], "codergpt.optimizer.optimizer module": [[5, "module-codergpt.optimizer.optimizer"]], "codergpt.test_writer package": [[6, "codergpt-test-writer-package"]], "codergpt.test_writer.test_writer module": [[6, "module-codergpt.test_writer.test_writer"]], "Commenter Module": [[7, "commenter-module"]], "Classes": [[7, "classes"], [14, "classes"], [16, "classes"]], "CodeCommenter": [[7, "codecommenter"]], "Methods": [[7, "methods"]], "Dependencies": [[7, "dependencies"]], "CoderGPT": [[8, "codergpt"], [12, "codergpt"]], "What is it?": [[8, "what-is-it"]], "Installation": [[8, "installation"]], "Command Line Interface (CLI)": [[8, "command-line-interface-cli"]], "Development": [[8, "development"]], "Developer Documentation": [[9, "developer-documentation"]], "Contents:": [[9, null]], "Explainer Module": [[10, "explainer-module"]], "Welcome to CoderGPT\u2019s documentation!": [[11, "welcome-to-codergpt-s-documentation"]], "Getting Started": [[11, null]], "Indices and tables": [[11, "indices-and-tables"]], "Constructor": [[12, "constructor"]], "Inspect Package": [[12, "inspect-package"]], "Get Code": [[12, "get-code"]], "Explainer": [[12, "explainer"]], "Commenter": [[12, "commenter"]], "Optimizer": [[12, "optimizer"]], "Test Writer": [[12, "test-writer"]], "Documenter": [[12, "documenter"]], "Main": [[12, "main"]], "codergpt": [[13, "codergpt"]], "Optimizer Module": [[14, "module-optimizer"]], "CodeOptimizer": [[14, "codeoptimizer"]], "Test writing module": [[15, "test-writing-module"]], "Test Writing Module": [[16, "test-writing-module"]], "CodeTester": [[16, "codetester"]]}, "indexentries": {"codecommenter (class in codergpt)": [[1, "codergpt.CodeCommenter"], [12, "codergpt.CodeCommenter"]], "codedocumenter (class in codergpt)": [[1, "codergpt.CodeDocumenter"], [12, "codergpt.CodeDocumenter"]], "codeexplainer (class in codergpt)": [[1, "codergpt.CodeExplainer"], [12, "codergpt.CodeExplainer"]], "codeoptimizer (class in codergpt)": [[1, "codergpt.CodeOptimizer"], [12, "codergpt.CodeOptimizer"]], "codergpt (class in codergpt)": [[1, "codergpt.CoderGPT"], [12, "codergpt.CoderGPT"], [12, "id0"]], "codergpt (class in codergpt.main)": [[1, "codergpt.main.CoderGPT"]], "codergpt": [[1, "module-codergpt"], [12, "module-codergpt"], [15, "module-codergpt"]], "codergpt.constants": [[1, "module-codergpt.constants"]], "codergpt.main": [[1, "module-codergpt.main"]], "comment() (codergpt.codecommenter method)": [[1, "codergpt.CodeCommenter.comment"], [12, "codergpt.CodeCommenter.comment"]], "commenter() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.commenter"], [12, "codergpt.CoderGPT.commenter"], [12, "id1"]], "commenter() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.commenter"]], "document() (codergpt.codedocumenter method)": [[1, "codergpt.CodeDocumenter.document"], [12, "codergpt.CodeDocumenter.document"]], "documenter() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.documenter"], [12, "codergpt.CoderGPT.documenter"], [12, "id2"]], "documenter() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.documenter"]], "explain() (codergpt.codeexplainer method)": [[1, "codergpt.CodeExplainer.explain"], [12, "codergpt.CodeExplainer.explain"]], "explainer() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.explainer"], [12, "codergpt.CoderGPT.explainer"], [12, "id3"]], "explainer() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.explainer"]], "get_code() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.get_code"], [12, "codergpt.CoderGPT.get_code"], [12, "id4"]], "get_code() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.get_code"]], "inspect_package() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.inspect_package"], [12, "codergpt.CoderGPT.inspect_package"], [12, "id5"]], "inspect_package() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.inspect_package"]], "module": [[1, "module-codergpt"], [1, "module-codergpt.constants"], [1, "module-codergpt.main"], [2, "module-codergpt.commenter"], [2, "module-codergpt.commenter.commenter"], [3, "module-codergpt.documenter"], [3, "module-codergpt.documenter.documenter"], [4, "module-codergpt.explainer"], [4, "module-codergpt.explainer.explainer"], [5, "module-codergpt.optimizer"], [5, "module-codergpt.optimizer.optimizer"], [6, "module-codergpt.test_writer"], [6, "module-codergpt.test_writer.test_writer"], [12, "module-codergpt"], [14, "module-optimizer"], [15, "module-codergpt"]], "optimize() (codergpt.codeoptimizer method)": [[1, "codergpt.CodeOptimizer.optimize"], [12, "codergpt.CodeOptimizer.optimize"]], "optimizer() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.optimizer"], [12, "codergpt.CoderGPT.optimizer"], [12, "id6"]], "optimizer() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.optimizer"]], "test_writer() (codergpt.codergpt method)": [[1, "codergpt.CoderGPT.test_writer"], [12, "codergpt.CoderGPT.test_writer"], [12, "id7"]], "test_writer() (codergpt.main.codergpt method)": [[1, "codergpt.main.CoderGPT.test_writer"]], "codecommenter (class in codergpt.commenter)": [[2, "codergpt.commenter.CodeCommenter"]], "codecommenter (class in codergpt.commenter.commenter)": [[2, "codergpt.commenter.commenter.CodeCommenter"]], "codergpt.commenter": [[2, "module-codergpt.commenter"]], "codergpt.commenter.commenter": [[2, "module-codergpt.commenter.commenter"]], "comment() (codergpt.commenter.codecommenter method)": [[2, "codergpt.commenter.CodeCommenter.comment"]], "comment() (codergpt.commenter.commenter.codecommenter method)": [[2, "codergpt.commenter.commenter.CodeCommenter.comment"]], "codedocumenter (class in codergpt.documenter)": [[3, "codergpt.documenter.CodeDocumenter"]], "codedocumenter (class in codergpt.documenter.documenter)": [[3, "codergpt.documenter.documenter.CodeDocumenter"]], "codergpt.documenter": [[3, "module-codergpt.documenter"]], "codergpt.documenter.documenter": [[3, "module-codergpt.documenter.documenter"]], "document() (codergpt.documenter.codedocumenter method)": [[3, "codergpt.documenter.CodeDocumenter.document"]], "document() (codergpt.documenter.documenter.codedocumenter method)": [[3, "codergpt.documenter.documenter.CodeDocumenter.document"]], "codeexplainer (class in codergpt.explainer)": [[4, "codergpt.explainer.CodeExplainer"]], "codeexplainer (class in codergpt.explainer.explainer)": [[4, "codergpt.explainer.explainer.CodeExplainer"]], "codergpt.explainer": [[4, "module-codergpt.explainer"]], "codergpt.explainer.explainer": [[4, "module-codergpt.explainer.explainer"]], "explain() (codergpt.explainer.codeexplainer method)": [[4, "codergpt.explainer.CodeExplainer.explain"]], "explain() (codergpt.explainer.explainer.codeexplainer method)": [[4, "codergpt.explainer.explainer.CodeExplainer.explain"]], "codeoptimizer (class in codergpt.optimizer)": [[5, "codergpt.optimizer.CodeOptimizer"]], "codeoptimizer (class in codergpt.optimizer.optimizer)": [[5, "codergpt.optimizer.optimizer.CodeOptimizer"]], "codergpt.optimizer": [[5, "module-codergpt.optimizer"]], "codergpt.optimizer.optimizer": [[5, "module-codergpt.optimizer.optimizer"]], "optimize() (codergpt.optimizer.codeoptimizer method)": [[5, "codergpt.optimizer.CodeOptimizer.optimize"]], "optimize() (codergpt.optimizer.optimizer.codeoptimizer method)": [[5, "codergpt.optimizer.optimizer.CodeOptimizer.optimize"]], "codetester (class in codergpt.test_writer.test_writer)": [[6, "codergpt.test_writer.test_writer.CodeTester"]], "codergpt.test_writer": [[6, "module-codergpt.test_writer"]], "codergpt.test_writer.test_writer": [[6, "module-codergpt.test_writer.test_writer"]], "write_tests() (codergpt.test_writer.test_writer.codetester method)": [[6, "codergpt.test_writer.test_writer.CodeTester.write_tests"]], "__init__() (codergpt.codergpt method)": [[12, "codergpt.CoderGPT.__init__"]], "codeoptimizer (class in optimizer)": [[14, "optimizer.CodeOptimizer"]], "optimize() (in module optimizer)": [[14, "optimizer.optimize"]], "optimizer": [[14, "module-optimizer"]], "codetester (class in codergpt)": [[15, "codergpt.CodeTester"]], "__init__() (codergpt.codetester method)": [[15, "codergpt.CodeTester.__init__"]], "write_tests() (codergpt.codetester method)": [[15, "codergpt.CodeTester.write_tests"]], "codetester (built-in class)": [[16, "CodeTester"]], "__init__() (codetester method)": [[16, "CodeTester.__init__"]], "write_tests() (codetester method)": [[16, "CodeTester.write_tests"]]}}) \ No newline at end of file diff --git a/test_writer.html b/test_writer.html index 79f9c82..9dedf59 100644 --- a/test_writer.html +++ b/test_writer.html @@ -21,7 +21,7 @@ - + @@ -66,7 +66,6 @@ -
  • The ExpressionEvaluator Class
  • codergpt
  • @@ -146,7 +145,7 @@

    CodeTester - +

  • codergpt
  • codergpt
  • diff --git a/modules.html b/modules.html index fbd207a..302b6dd 100644 --- a/modules.html +++ b/modules.html @@ -22,7 +22,7 @@ - + @@ -114,12 +114,6 @@

    codergpt
  • Module contents
  • -
  • codergpt.utils package -
  • Submodules
  • @@ -177,7 +171,7 @@

    codergpt
    diff --git a/objects.inv b/objects.inv index 99c66541a016e7e9c883bcd405ee992c1d88a76d..bbf499d05dfaefaf990002e2d18576668111cf49 100644 GIT binary patch delta 873 zcmV-v1D5=?2-XLXdVifT5Z&_?uG%dq=~K$~ri!|#8Yz*oL=-zWR(T1WHtDLr(ckNr z)W!xsm?1{u?!caNhGUOs#vEG8ZrLDMPrB!evMPpwoD(5O@?Sld!`XwVtJiNxnjB`+ zEYEqvMV>26&BQ}XBS7O+uB?Waaizrd$4-ovEq$yQIU6mtiGLnSUCT_lI<$4onm|om z@Mg*E+h?VI^1f^Zc-fYZn><-SM$Kcaug_0iC1;~u&Gs47PqB`^b%NLYceJC~K5NZW ztS30+R*mtXTZgTM9fItyu5aNb;PebKhQDn^{|GAGUu! z2VrzEJYa6xNVuoS{pFrOcr%EiF-LwO7Zn*Ctp(7|$8fAv3Y0O93a%lWNq3fe8s#Th z1V0rngwNBsZfk2GI2=g9zKXNj9vmK zf|+()-n2B~@=_$E39^me?%Au)*YQLo4wDND9e>zBqwFWE+Rpbf4{GDf*=A~e3&muy zsl*MTB$q-8LP^ZqhLtfG+&~FWAkMX%bM-J*U%zw%2-%7M)rLk691-Q9h^8 z4Pu`Rp3&fF+6->C!TH=5bX-5n^xgP!23GXtgAdeW8grxPuhkiq7xq5L(Ux5bxMD)^ z=16Xo9ixdl=dP0ZhaOQCkf;ox%=PjmNIqGlkr8`mux1U$`E)F$8*oAJFYBSe5?pMQ_T;W5_N)l*lA-Dp>neMa3#u2kcEN3AYrvz1$NBZx}C{q2yBe$Tqx>X6 za9iO___Q6?ZA^kQIz$)41J3T1gjk$=S?|*72KqKFUhB1L59t{u7@@PCf z(xc(vWRFHK4ftphc+N+|L*ssd!1XvwmT5bjHpV1)Y!1=I@W99Em5f`e++OeY%Kb!` zDW2UkA&-^Qb`I-SlQD~24{2w zBSx3@G(hIhB|W&HyC4L1ZyX4^LHdN&e1{mlGk+=qFCsptnfVZ@u; z9~41j)F-q%Cq(JD9t3xBpH}xIh|m-Q@;lf>qP|gD4mtNyI;BY<7n~F@m*20dtP+dK zhWQRmwqo)~sMRj)|2pSHmcPD$&&<2wy_r1qe&G1D&CdO=VX<6KpO6Vtux6{Y``}+?= z*pBY2WH=+Qh?Tm=SU#seu1wO19u6qzp3`wd+v_+ET6Euc%4b+|>t^cjD_$9FAYR`v z<7N1~*6Y5YypxMoOoWkA@*dYdLKUIgc72*B|1aMU}HvHOt diff --git a/optimizer.html b/optimizer.html index fc6fa46..f20f750 100644 --- a/optimizer.html +++ b/optimizer.html @@ -67,7 +67,6 @@
  • Test Writing Module
  • -
  • The ExpressionEvaluator Class
  • codergpt
  • diff --git a/py-modindex.html b/py-modindex.html index c86dd5d..2819903 100644 --- a/py-modindex.html +++ b/py-modindex.html @@ -152,16 +152,6 @@

    Python Module Index

        codergpt.test_writer.test_writer
        - codergpt.utils -
        - codergpt.utils.expression_evaluator -
     
    o