repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/generate_readme.py
generate_readme.py
# coding=utf-8 import re from rich.console import Console from rich.theme import Theme from core import HackingTool from core import HackingToolsCollection from hackingtool import all_tools _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_theme) def sanitize_anchor(s): return re.sub(r"\W", "-", s...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/payload_creator.py
tools/payload_creator.py
# coding=utf-8 import os from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_theme) ...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/information_gathering_tools.py
tools/information_gathering_tools.py
# coding=utf-8 import os import socket import subprocess import webbrowser import sys from core import HackingTool from core import HackingToolsCollection from core import clear_screen from rich.console import Console from rich.panel import Panel from rich.text import Text from rich.prompt import Prompt from rich.tab...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/tool_manager.py
tools/tool_manager.py
# coding=utf-8 import os import sys from time import sleep from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) c...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/reverse_engineering.py
tools/reverse_engineering.py
# coding=utf-8 import subprocess from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_t...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/wordlist_generator.py
tools/wordlist_generator.py
# coding=utf-8 import os import subprocess from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box from core import HackingTool from core import HackingToolsCollection _theme = Theme({"purple": "#7B61F...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/xss_attack.py
tools/xss_attack.py
# coding=utf-8 import os import subprocess from rich.console import Console from rich.panel import Panel from rich.prompt import Prompt from rich.table import Table from core import HackingTool from core import HackingToolsCollection console = Console() class Dalfox(HackingTool): TITLE = "DalFox (Finder of XSS)...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/anonsurf.py
tools/anonsurf.py
# coding=utf-8 import os from rich.console import Console from rich.panel import Panel from rich.prompt import Prompt from rich.text import Text from rich.table import Table from core import HackingTool from core import HackingToolsCollection console = Console() P_COLOR = "magenta" class AnonymouslySurf(HackingToo...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/webattack.py
tools/webattack.py
# coding=utf-8 import subprocess from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_th...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/wireless_attack_tools.py
tools/wireless_attack_tools.py
# coding=utf-8 import os import subprocess from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Consol...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/other_tools.py
tools/other_tools.py
# coding=utf-8 import os import subprocess from core import HackingTool from core import HackingToolsCollection from tools.others.android_attack import AndroidAttackTools from tools.others.email_verifier import EmailVerifyTools from tools.others.hash_crack import HashCrackingTools from tools.others.homograph_attacks i...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/ddos.py
tools/ddos.py
# coding=utf-8 import os import subprocess from rich.console import Console from rich.prompt import Prompt from rich.panel import Panel from rich.text import Text from rich.table import Table from core import HackingTool from core import HackingToolsCollection console = Console() P_COLOR = "magenta" # primary purpl...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/steganography.py
tools/steganography.py
# coding=utf-8 import subprocess from core import HackingTool from core import HackingToolsCollection from core import validate_input from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/remote_administration.py
tools/remote_administration.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_theme) class Stitc...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/exploit_frameworks.py
tools/exploit_frameworks.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from tools.webattack import Web2Attack from rich.console import Console from rich.table import Table from rich.panel import Panel from rich.text import Text from rich.prompt import Prompt console = Console() PURPLE_STYLE = "bold magen...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/phising_attack.py
tools/phising_attack.py
# coding=utf-8 import os from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_theme) ...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/post_exploitation.py
tools/post_exploitation.py
# coding=utf-8 import os from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_theme) ...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/forensic_tools.py
tools/forensic_tools.py
# coding=utf-8 import os import sys # Fetching parent directory for importing core.py current_dir = os.path.dirname(__file__) parent_dir = os.path.dirname(current_dir) sys.path.append(parent_dir) from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.panel imp...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/sql_tools.py
tools/sql_tools.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_theme) class Sqlma...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/email_verifier.py
tools/others/email_verifier.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=_theme) class Knock...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/mix_tools.py
tools/others/mix_tools.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/android_attack.py
tools/others/android_attack.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/hash_crack.py
tools/others/hash_crack.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/socialmedia_finder.py
tools/others/socialmedia_finder.py
# coding=utf-8 import os import subprocess from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61F...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/web_crawling.py
tools/others/web_crawling.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/socialmedia.py
tools/others/socialmedia.py
# coding=utf-8 import contextlib import os import subprocess from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme(...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/payload_injection.py
tools/others/payload_injection.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/homograph_attacks.py
tools/others/homograph_attacks.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
Z4nzu/hackingtool
https://github.com/Z4nzu/hackingtool/blob/7df27d8383095257e05c9dfd5af3ea696039d793/tools/others/wifi_jamming.py
tools/others/wifi_jamming.py
# coding=utf-8 from core import HackingTool from core import HackingToolsCollection from rich.console import Console from rich.theme import Theme from rich.table import Table from rich.panel import Panel from rich.prompt import Prompt from rich import box _theme = Theme({"purple": "#7B61FF"}) console = Console(theme=...
python
MIT
7df27d8383095257e05c9dfd5af3ea696039d793
2026-01-04T14:39:20.027553Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/scripts/legacy_benchmark.py
scripts/legacy_benchmark.py
""" This module provides functionality to run benchmarks on different folders within the 'benchmark' directory, wait for their completion, and generate a report. """ # list all folders in benchmark folder # for each folder, run the benchmark import contextlib import json import os import subprocess from datetime impo...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/scripts/test_api.py
scripts/test_api.py
"""This is just a demo to test api.py.""" from time import sleep import requests def post_data(url, extra_arguments): """ Make an HTTP POST request with extra_arguments as data. Parameters ---------- url : str The URL to which the POST request should be sent. extra_arguments : dict...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/scripts/clean_benchmarks.py
scripts/clean_benchmarks.py
""" This module provides functionality to clean up benchmark directories by removing all files and folders except for 'prompt' and 'main_prompt'. """ # list all folders in benchmark folder # for each folder, run the benchmark import os import shutil from pathlib import Path from typer import run def main(): "...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/scripts/print_chat.py
scripts/print_chat.py
""" This module provides functionality to print a conversation with messages colored according to the role of the speaker. """ import json import typer from termcolor import colored app = typer.Typer() def pretty_print_conversation(messages): """ Prints a conversation with messages formatted and colored b...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/test_project_config.py
tests/test_project_config.py
import tempfile import pytest from gpt_engineer.core.project_config import ( Config, _GptEngineerAppConfig, _OpenApiConfig, example_config, filter_none, ) def test_config_load(): # write example config to a file with tempfile.NamedTemporaryFile(mode="w", delete=False) as f: f.wri...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/test_install.py
tests/test_install.py
""" Tests for successful installation of the package. """ import shutil import subprocess import sys import venv from pathlib import Path import pytest # Define the directory for the virtual environment. VENV_DIR = "./venv_test_installation" @pytest.fixture(scope="module", autouse=True) def venv_setup_teardown():...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/__init__.py
tests/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/mock_ai.py
tests/mock_ai.py
from typing import Any, List, Optional class MockAI: def __init__(self, response: List): self.responses = iter(response) def start(self, system: str, user: Any, *, step_name: str) -> List[str]: return [next(self.responses)] def next( self, messages: List[str], prompt: Optional[st...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/tools/example_snake_files.py
tests/tools/example_snake_files.py
PYTHON = """ import keyboard import random from dataclasses import dataclass class View: def __init__(self, game): self.game = game def render(self): # Print the game state for y in range(10): for x in range(10): if Point(x, y) in self.game.snake: ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
true
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/benchmark/test_BenchConfig.py
tests/benchmark/test_BenchConfig.py
# Generated by CodiumAI import pytest from gpt_engineer.benchmark.bench_config import ( AppsConfig, BenchConfig, GptmeConfig, MbppConfig, ) class TestBenchConfig: # Creating a BenchConfig object with default values should return an instance of BenchConfig with all attributes set to their defaul...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/applications/__init__.py
tests/applications/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/applications/cli/test_main.py
tests/applications/cli/test_main.py
import dataclasses import functools import inspect import os import shutil import tempfile from argparse import Namespace from unittest.mock import patch import pytest import typer import gpt_engineer.applications.cli.main as main from gpt_engineer.applications.cli.main import load_prompt from gpt_engineer.core.def...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/applications/cli/test_learning.py
tests/applications/cli/test_learning.py
from unittest import mock from gpt_engineer.applications.cli import learning from gpt_engineer.applications.cli.learning import Learning from gpt_engineer.core.default.disk_memory import DiskMemory from gpt_engineer.core.prompt import Prompt def test_human_review_input_no_concent_returns_none(): with mock.patch....
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/applications/cli/test_collect.py
tests/applications/cli/test_collect.py
""" Tests the collect_learnings function in the cli/collect module. """ import pytest # def test_collect_learnings(monkeypatch): # monkeypatch.setattr(rudder_analytics, "track", MagicMock()) # # model = "test_model" # temperature = 0.5 # steps = [simple_gen] # dbs = FileRepositories( # OnD...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/applications/cli/__init__.py
tests/applications/cli/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/applications/cli/test_cli_agent.py
tests/applications/cli/test_cli_agent.py
import os import tempfile import pytest from langchain.schema import AIMessage from gpt_engineer.applications.cli.cli_agent import CliAgent from gpt_engineer.core.default.disk_execution_env import DiskExecutionEnv from gpt_engineer.core.default.disk_memory import DiskMemory # from gpt_engineer.core.default.git_vers...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/applications/cli/test_collection_consent.py
tests/applications/cli/test_collection_consent.py
""" Tests for the revised data collection consent mechanism in the cli/learning module. """ from pathlib import Path from unittest.mock import patch import pytest from gpt_engineer.applications.cli.learning import ( ask_collection_consent, check_collection_consent, ) # Use a fixture to clean up created fil...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/test_file_selector_enhancements.py
tests/core/test_file_selector_enhancements.py
import os from pathlib import Path from typing import List, Union from gpt_engineer.applications.cli.file_selector import FileSelector editorcalled = False def set_editor_called( self, input_path: Union[str, Path], init: bool = True ) -> List[str]: global editorcalled editorcalled = True return [] ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/test_chat_to_files.py
tests/core/test_chat_to_files.py
import os from typing import Dict, Tuple import pytest from gpt_engineer.core.chat_to_files import parse_diffs from gpt_engineer.core.diff import is_similar from gpt_engineer.core.files_dict import file_to_lines_dict THIS_FILE_DIR = os.path.dirname(os.path.abspath(__file__)) example_diff = """ Irrelevant line to b...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/test_git.py
tests/core/test_git.py
import subprocess import tempfile from pathlib import Path from gpt_engineer.core.git import ( filter_by_gitignore, filter_files_with_uncommitted_changes, init_git_repo, is_git_installed, is_git_repo, stage_files, ) def test_verify_git_installed(): # If git isn't installed we can't run a...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/test_token_usage.py
tests/core/test_token_usage.py
import base64 import csv import io import os from io import StringIO from pathlib import Path from langchain.schema import HumanMessage, SystemMessage from PIL import Image from gpt_engineer.core.token_usage import Tokenizer, TokenUsageLog def test_format_log(): # arrange token_usage_log = TokenUsageLog("g...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/__init__.py
tests/core/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/test_salvage_correct_hunks.py
tests/core/test_salvage_correct_hunks.py
import os import shutil from typing import List import pytest from langchain_core.messages import AIMessage from gpt_engineer.core.default.disk_memory import DiskMemory from gpt_engineer.core.default.paths import memory_path from gpt_engineer.core.default.steps import salvage_correct_hunks from gpt_engineer.core.fi...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/test_ai.py
tests/core/test_ai.py
from langchain.chat_models.base import BaseChatModel from langchain_community.chat_models.fake import FakeListChatModel from gpt_engineer.core.ai import AI def mock_create_chat_model(self) -> BaseChatModel: return FakeListChatModel(responses=["response1", "response2", "response3"]) def test_start(monkeypatch):...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/default/__init__.py
tests/core/default/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/default/test_steps.py
tests/core/default/test_steps.py
# Generated by CodiumAI import tempfile from unittest.mock import MagicMock import pytest from langchain.schema import SystemMessage from gpt_engineer.core.ai import AI from gpt_engineer.core.default.disk_memory import DiskMemory from gpt_engineer.core.default.paths import ENTRYPOINT_FILE, PREPROMPTS_PATH from gpt_...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/default/test_simple_agent.py
tests/core/default/test_simple_agent.py
import tempfile import pytest from langchain.schema import AIMessage from gpt_engineer.core.default.disk_execution_env import DiskExecutionEnv from gpt_engineer.core.default.paths import ENTRYPOINT_FILE from gpt_engineer.core.default.simple_agent import SimpleAgent from gpt_engineer.core.files_dict import FilesDict ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/default/test_disk_file_repository.py
tests/core/default/test_disk_file_repository.py
import pytest from gpt_engineer.core.default.disk_memory import DiskMemory def test_DB_operations(tmp_path): # Test initialization db = DiskMemory(tmp_path) # Test __setitem__ db["test_key"] = "test_value" assert (tmp_path / "test_key").is_file() # Test __getitem__ val = db["test_key"]...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/tests/core/default/test_disk_execution_env.py
tests/core/default/test_disk_execution_env.py
import tempfile import unittest from unittest.mock import MagicMock, patch from gpt_engineer.core.default.disk_execution_env import DiskExecutionEnv # from gpt_engineer.core.default.git_version_manager import GitVersionManager from gpt_engineer.core.default.paths import ENTRYPOINT_FILE from gpt_engineer.core.files_d...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/docs/create_api_rst.py
docs/create_api_rst.py
"""Script for auto-generating api_reference.rst""" import glob import re from pathlib import Path ROOT_DIR = Path(__file__).parents[1].absolute() print(ROOT_DIR) PKG_DIR = ROOT_DIR / "gpt_engineer" WRITE_FILE = Path(__file__).parent / "api_reference.rst" def load_members() -> dict: members: dict = {} for py...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/docs/conf.py
docs/conf.py
#!/usr/bin/env python # # file_processor documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/docs/examples/open_llms/langchain_interface.py
docs/examples/open_llms/langchain_interface.py
import os from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler from langchain_openai import ChatOpenAI model = ChatOpenAI( model=os.getenv("MODEL_NAME"), temperature=0.1, callbacks=[StreamingStdOutCallbackHandler()], streaming=True, ) prompt = ( "Provide me with only th...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/docs/examples/open_llms/openai_api_interface.py
docs/examples/open_llms/openai_api_interface.py
import os from openai import OpenAI client = OpenAI( base_url=os.getenv("OPENAI_API_BASE"), api_key=os.getenv("OPENAI_API_KEY") ) response = client.chat.completions.create( model=os.getenv("MODEL_NAME"), messages=[ { "role": "user", "content": "Provide me with only the cod...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/projects/example-improve/controller.py
projects/example-improve/controller.py
import keyboard class Controller: def __init__(self, game, view): self.game = game self.view = view def handle_input(self): if keyboard.is_pressed("up") and not hasattr(self, "last_key_pressed"): self.game.move("down") self.last_key_pressed = "up" elif ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/projects/example-improve/view.py
projects/example-improve/view.py
from model import Point class View: def __init__(self, game): self.game = game def render(self): # Print the game state for y in range(10): for x in range(10): if Point(x, y) in self.game.snake: print("S", end="") elif Po...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/projects/example-improve/model.py
projects/example-improve/model.py
import random from dataclasses import dataclass @dataclass class Point: x: int y: int class Game: def __init__(self): self.snake = [Point(5, 5)] self.food = self.generate_food() self.is_running = True def generate_food(self): return Point(random.randint(0, 10), rand...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/projects/example-improve/main.py
projects/example-improve/main.py
from controller import Controller from model import Game from view import View def main(): game = Game() view = View(game) controller = Controller(game, view) while game.is_running: controller.handle_input() game.update() view.render() if __name__ == "__main__": main()
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/__init__.py
gpt_engineer/__init__.py
# Adding convenience imports to the package # from gpt_engineer.tools import code_vector_repository # from gpt_engineer.core.default import on_disk_repository
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/tools/supported_languages.py
gpt_engineer/tools/supported_languages.py
""" This module defines the supported programming languages for document chunking. Variables: SUPPORTED_LANGUAGES (list): A list of dictionaries defining supported languages. """ SUPPORTED_LANGUAGES = [ {"name": "Python", "extensions": [".py"], "tree_sitter_name": "python"}, { "name": "JavaScript"...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/tools/custom_steps.py
gpt_engineer/tools/custom_steps.py
from platform import platform from sys import version_info from typing import List, Union from langchain.schema import AIMessage, HumanMessage, SystemMessage from gpt_engineer.core.ai import AI from gpt_engineer.core.base_execution_env import BaseExecutionEnv from gpt_engineer.core.base_memory import BaseMemory from ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/tools/__init__.py
gpt_engineer/tools/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/run.py
gpt_engineer/benchmark/run.py
""" Module for running benchmarks. This module defines functions to run benchmarks using a given agent and to print the results of the benchmark tasks. Functions --------- run : function Runs the benchmark tasks using the provided agent and returns a list of TaskResult objects. print_results : function Print...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/bench_config.py
gpt_engineer/benchmark/bench_config.py
from dataclasses import dataclass, field from pathlib import Path from tomlkit.items import Integer from gpt_engineer.core.project_config import read_config @dataclass class AppsConfig: active: bool | None = True test_start_index: int | None = 0 test_end_index: int | None = 1 train_start_index: int ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/__main__.py
gpt_engineer/benchmark/__main__.py
""" Main entry point for the benchmarking tool. This module provides a command-line interface for running benchmarks using Typer. It allows users to specify the path to an agent, the benchmark(s) to run, and other options such as verbosity. Functions --------- get_agent : function Dynamically imports and returns ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/__init__.py
gpt_engineer/benchmark/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/types.py
gpt_engineer/benchmark/types.py
""" Module defining types used in benchmarking. This module contains dataclass definitions for various types used throughout the benchmarking process, such as Assertable, Task, Benchmark, and TaskResult. Classes: Assertable: Represents an object that can be asserted against in a benchmark task. Asser...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/load.py
gpt_engineer/benchmark/benchmarks/load.py
""" Module for loading benchmarks. This module provides a central point to access different benchmarks by name. It maps benchmark names to their respective loading functions. Functions --------- get_benchmark : function Retrieves a Benchmark object by name. Raises ValueError if the benchmark is unknown. """ from ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/apps/load.py
gpt_engineer/benchmark/benchmarks/apps/load.py
""" Module for loading APPS evaluation tasks. This module provides functionality to load tasks for evaluating GPT-based models on smaller, more focused tasks. It defines a set of tasks with predefined prompts and assertions to benchmark the performance of AI models. Functions --------- load_apps : function Loads ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/apps/problems.py
gpt_engineer/benchmark/benchmarks/apps/problems.py
# TODO: Pick problems # Temporary testing against these problems PROBLEM_IDS = list(range(0, 50))
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/apps/problem.py
gpt_engineer/benchmark/benchmarks/apps/problem.py
import json from dataclasses import dataclass from functools import cached_property from typing import List @dataclass(frozen=True) class Problem: id: int question: str input_output: str starter_code: str @property def inputs(self) -> List[str]: return self._parsed_inputs_outputs["in...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/gptme/load.py
gpt_engineer/benchmark/benchmarks/gptme/load.py
""" Module for loading GPT-Me evaluation tasks. This module provides functionality to load tasks for evaluating GPT-based models on smaller, more focused tasks. It defines a set of tasks with predefined prompts and assertions to benchmark the performance of AI models. Functions --------- load_gptme : function Loa...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/mbpp/load.py
gpt_engineer/benchmark/benchmarks/mbpp/load.py
""" Module for loading MBPP evaluation tasks. This module provides functionality to load tasks for evaluating GPT-based models on smaller, more focused tasks. It defines a set of tasks with predefined prompts and assertions to benchmark the performance of AI models. Functions --------- load_mbpp : function Loads ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/mbpp/problems.py
gpt_engineer/benchmark/benchmarks/mbpp/problems.py
# TODO: Pick problems # Temporary testing against these problems PROBLEM_IDS = range(0, 100)
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/benchmark/benchmarks/mbpp/problem.py
gpt_engineer/benchmark/benchmarks/mbpp/problem.py
from dataclasses import dataclass from typing import List @dataclass(frozen=True) class Problem: source_file: int task_id: str prompt: str code: str test_imports: str test_list: List[str] @property def starting_code(self) -> str: lines: List[str] = [] for line in self...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/applications/__init__.py
gpt_engineer/applications/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/applications/cli/learning.py
gpt_engineer/applications/cli/learning.py
""" The `learning` module is designed to facilitate the collection and storage of user feedback on the outputs generated by the GPT Engineer tool. It provides mechanisms for obtaining user consent, capturing user reviews, and storing this information for future analysis and enhancement of the tool's performance. Class...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/applications/cli/main.py
gpt_engineer/applications/cli/main.py
""" Entrypoint for the CLI tool. This module serves as the entry point for a command-line interface (CLI) tool. It is designed to interact with OpenAI's language models. The module provides functionality to: - Load necessary environment variables, - Configure various parameters for the AI interaction, - Manage the gen...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/applications/cli/file_selector.py
gpt_engineer/applications/cli/file_selector.py
""" file_selector.py This module offers interactive file selection for projects. Leveraging a terminal-based, tree-structured display, users can navigate and select files for editing or processing. It integrates with system editors for direct file modification and supports saving selections for later use. Designed for...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/applications/cli/__init__.py
gpt_engineer/applications/cli/__init__.py
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/applications/cli/collect.py
gpt_engineer/applications/cli/collect.py
""" Module `collect` - Data Handling and RudderStack Integration This module provides functionalities to handle and send learning data to RudderStack for the purpose of analysis and to improve the gpt-engineer system. The data is sent only when the user gives consent to share. Functions: send_learning(learning): ...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/applications/cli/cli_agent.py
gpt_engineer/applications/cli/cli_agent.py
""" This module provides the CliAgent class which manages the lifecycle of code generation and improvement using an AI model. It includes functionalities to initialize code generation, improve existing code, and process the code through various steps defined in the step bundle. """ from typing import Callable, Optiona...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/project_config.py
gpt_engineer/core/project_config.py
""" Functions for reading and writing the `gpt-engineer.toml` configuration file. The `gpt-engineer.toml` file is a TOML file that contains project-specific configuration used by the GPT Engineer CLI and gptengineer.app. """ from dataclasses import asdict, dataclass, field from pathlib import Path import tomlkit def...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/chat_to_files.py
gpt_engineer/core/chat_to_files.py
""" This Python script provides functionalities for parsing chat transcripts that contain file paths and code blocks, applying diffs to these files, and parsing unified git diff format strings. The script is designed to work within a larger system that involves processing and manipulating code files based on chat input...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/preprompts_holder.py
gpt_engineer/core/preprompts_holder.py
from pathlib import Path from typing import Dict from gpt_engineer.core.default.disk_memory import DiskMemory class PrepromptsHolder: """ A holder for preprompt texts that are stored on disk. This class provides methods to retrieve preprompt texts from a specified directory. Attributes --------...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/token_usage.py
gpt_engineer/core/token_usage.py
import base64 import io import logging import math from dataclasses import dataclass from typing import List, Union import tiktoken from langchain.schema import AIMessage, HumanMessage, SystemMessage from PIL import Image # workaround for function moved in: # https://github.com/langchain-ai/langchain/blob/535db7260...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/git.py
gpt_engineer/core/git.py
import shutil import subprocess from pathlib import Path from typing import List from gpt_engineer.core.files_dict import FilesDict def is_git_installed(): return shutil.which("git") is not None def is_git_repo(path: Path): return ( subprocess.run( ["git", "rev-parse", "--is-inside-wor...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/diff.py
gpt_engineer/core/diff.py
""" File Overview: This Python module is designed for processing and analyzing diffs in source code files. Diffs represent the changes between two versions of a file, which are crucial in version control systems for tracking file modifications. The module focuses on the detailed examination of these diffs, enabling us...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/base_memory.py
gpt_engineer/core/base_memory.py
""" Base Memory Module This module provides a type alias for a mutable mapping that represents the base memory structure used in the GPT Engineer project. The base memory is a mapping from file names (as strings or Path objects) to their corresponding code content (as strings). Type Aliases: BaseMemory: A mutable...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/base_agent.py
gpt_engineer/core/base_agent.py
""" Base Agent Module This module provides an abstract base class for an agent that interacts with code. It defines the interface for agents capable of initializing and improving code based on a given prompt. Implementations of this class are expected to provide concrete methods for these actions. Classes: BaseAg...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/version_manager.py
gpt_engineer/core/version_manager.py
""" Version Manager Module This module provides an abstract base class for a version manager that handles the creation of snapshots for code. Implementations of this class are expected to provide methods to create a snapshot of the given code and return a reference to it. """ from abc import ABC, abstractmethod from p...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false
AntonOsika/gpt-engineer
https://github.com/AntonOsika/gpt-engineer/blob/a90fcd543eedcc0ff2c34561bc0785d2ba83c47e/gpt_engineer/core/base_execution_env.py
gpt_engineer/core/base_execution_env.py
from abc import ABC, abstractmethod from subprocess import Popen from typing import Optional, Tuple from gpt_engineer.core.files_dict import FilesDict class BaseExecutionEnv(ABC): """ Abstract base class for an execution environment capable of running code. This class defines the interface for execution...
python
MIT
a90fcd543eedcc0ff2c34561bc0785d2ba83c47e
2026-01-04T14:39:15.137338Z
false