Codebase Updater on the GPT Store
GPT Description
GPT Prompt Starters
- import os import shutil import sqlite3 # Initialize the database and create necessary tables conn = sqlite3.connect(':memory:') cursor = conn.cursor() cursor.execute(''' CREATE TABLE tasks ( id INTEGER PRIMARY KEY AUTOINCREMENT, file_name TEXT NOT NULL, task_type TEXT NOT NULL, start_line INTEGER, end_line INTEGER, snippet_name TEXT, insert_position INTEGER, status TEXT DEFAULT 'not started' ) ''') conn.commit() # Function to add user-uploaded file def add_user_uploaded_file(file, input_folder='input'): shutil.copy(file, input_folder) cursor.execute("INSERT INTO tasks (file_name, task_type, status) VALUES (?, 'add_file', 'done')", (os.path.basename(file),)) conn.commit() # Function to print a file with line numbers def print_file_with_line_numbers(file_path): with open(file_path, 'r') as file: lines = file.readlines() cursor.execute("UPDATE tasks SET status='done' WHERE file_name=?", (os.path.basename(file_path),)) conn.commit() # Function to extract lines from a file def extract_lines(file_path, start, end, snippet_name): with open(file_path, 'r') as file: lines = file.readlines()[start-1:end] snippet_path = f"snippets/{snippet_name}" with open(snippet_path, 'w') as snippet: snippet.writelines(lines) cursor.execute("INSERT INTO tasks (file_name, task_type, start_line, end_line, snippet_name, status) VALUES (?, 'extract', ?, ?, ?, 'done')", (os.path.basename(file_path), start, end, snippet_name)) conn.commit() return snippet_path # Function to replace a range of lines in a file def replace_lines(file_path, start, end, new_content=None): backup_path = f"backup/{os.path.basename(file_path)}" shutil.copy(file_path, backup_path) with open(file_path, 'r') as file: lines = file.readlines() new_lines = lines[:start-1] + (new_content if new_content else []) + lines[end:] with open(file_path, 'w') as file: file.writelines(new_lines) cursor.execute("UPDATE tasks SET status='done' WHERE file_name=? AND task_type='replace'", (os.path.basename(file_path),)) conn.commit() return backup_path # Function to insert a snippet into a file def insert_snippet(target_file, snippet_file, insert_position): backup_path = f"backup/{os.path.basename(target_file)}" shutil.copy(target_file, backup_path) with open(target_file, 'r') as file: lines = file.readlines() with open(snippet_file, 'r') as snippet: snippet_lines = snippet.readlines() new_lines = lines[:insert_position] + snippet_lines + lines[insert_position:] with open(target_file, 'w') as file: file.writelines(new_lines) cursor.execute("UPDATE tasks SET status='done' WHERE file_name=? AND task_type='insert'", (os.path.basename(target_file),)) conn.commit() return backup_path # Function to validate changes def validate_changes(original_file, edited_file, snippet_file): # This function should implement the comparison logic to validate file changes pass
Codebase Updater GPT FAQs
More custom GPTs by Mikhael Levovich on the GPT Store
Your flyer/poster design creator
Flyer/poster design creator analyzing requests, searching knowledge, and generating images.
50K+
Hebrew Translator
Direct English to Hebrew translator without added dialogue.
1K+
Юридический советник
Юридический советник РФ ищет и выдает ответы на юридические вопросыhttps://www.consultant.ru
100+
TG Wallet Guide
Guides on Telegram wallet features, usage, and updates.
80+
Convert Anything to Markdown
Reliable, no-interaction Markdown conversion.
70+
Repo Explorer
A GitHub/GitLab/Git* Repository Explorer, providing detailed insights into repos.
60+
Research Assistant Pro
Scientific paper author assistant focused on detailed remark feedback.
40+
wized web app builder
Expert in Wized apps and websites building
30+

People Info Gatherer
Web research assistant for compiling individual profiles into a database.
30+
Open Interpreter Prompt engineer
Expert in crafting prompts for Open Interpreter, ensuring safe and efficient code execution.
30+

Docu Compare Assistant
Document comparison assistant, formatting changes in Markdown.
30+
Standartize recepies
30+
UML Diagram Assistant
Generates UML diagrams for documentation, starting with brainstorming and presenting the best approach.
30+
Compress with Sparse Priming Representations
I compress information into Sparse Priming Representations for LLMs.
20+
LEGALEAGLE
Aids in reviewing legal reports for the Bitsi project, focusing on specific legal aspects.
20+
Transcript Processor / Extractor
Refines ASR transcripts, preserving key points
10+
File Processor Assistant
Processes and manipulates code and other texts content in zip files, logging data and managing files dynamically.
10+
Process notes
10+
Content Planner Assistant
Plans website content & manages SQLite DB
9+
Research Pro
Methodical research assistant with web browsing.
8+
Transcript to Document
Transcript structuring expert, correcting ASR errors and formatting documents.
8+

AutoCoder Architect
Friendly, professional guide in AI driven software development architecture design
7+
Conference Speaker Database Assistant
Builds and completes a database of conference speakers.
7+
Minute Composer
An assistant for composing MD formatted emails from transcripts or notes.
6+

Time Estimator
Estimates document creation time in CSV format
6+
Russian to English Translator +Mistakes Correction
Translates low-quality Russian transcripts into high-quality English.
6+
Awato Career Guidance
I provide expert guidance on the Awato, answering queries and navigating its features.
5+

Task Structurer
I organize unstructured chats into to-do lists and store them in a database.
5+

Translation Refiner
Refines translations by improving accuracy and coherence in markdown files.
5+
Code summarizer
Unzips, lists files, adds to SQLite, and creates .md summaries for Python files.
5+
Pilot GPT Assistant
Guide for utilizing Pilot GPT in app development
4+
Copywriting Wizard
Copywriting pro for refining marketing texts
3+
TextRefinerGPT Patient corrector
meticulously rewrite extensive texts, ensuring every sentence is retained while correcting errors
3+
Domain Wizard
Expert on domain names, aiding both newbies and professionals.
3+
NFT and Crypto Legal Expert
Crypto/DeFi/NFT Legal Assistant providing clear, friendly legal guidance.
3+

Travel Weather Assistant
Weather Bot providing forecasts and travel preparation advice based on your calendar.
3+

Transcript Processor Assistant
Assists in processing and extracting data from transcript files.
3+
Sanskrit Guru
A guide for learning and understanding Sanskrit.
2+

Compress Document Bot
Compress documents by removing duplicates.
2+

Deadline Assistant
Helps update deadlines and store info in an SQLite database
2+
CleanScribe
A proofreader specializing in removing extraneous content from documents.
1+

Landing Page Conversion Wizard
Expert in creating high-conversion landing pages, leveraging user files and best practices.
1+

Document Timetracking Database Manager
Assists in managing a database by extracting data from document links and summaries.
1+
