Skip to content

Stosan/commentator

Repository files navigation

Commentator

Commentator is an AI-powered code commentator application designed to assist developers in generating comments for their code automatically. By leveraging generative AI, Commentator utilizes AI techniques to analyze code snippets and provide insightful comments, allowing developers to focus more on writing code logic and reducing the effort required for documenting and explaining their code.

Issues GitHub pull requests

Commentator Logo

Features

  • Automatic code commenting: Commentator uses the generative AI to write comments for code snippets, providing meaningful insights and explanations for developers.

  • Multiple programming languages: Commentator supports various programming languages, including Python, Go, and JavaScript, allowing developers from different language communities to benefit from the code commenting capabilities.

  • User-friendly interface: The application provides a user-friendly interface where developers can input their code snippets and receive generated comments quickly and effortlessly.

Getting Started

To get started with Commentator, follow these steps:

  • Clone the repository: git clone https://github.com/Stosan/commentator.git

  • Install the required dependencies: pip install -r requirements.txt

  • Obtain an API key and configure it in the application.

  • Run the application: make start

  • Access the application in your browser at http://localhost:8000.

Usage

  • Open the Commentator application in your browser.

  • Select the desired programming language from the dropdown menu.

  • Enter your code snippet in the provided textarea.

  • Click the "Generate Comments" button to trigger the AI-powered code commenting process.

  • View the generated comments in the output section.

  • Copy the comments or use them as needed in your code documentation.

🤝 Contributing

Contributions to Commentator are welcome! If you encounter any issues or have ideas for enhancements, feel free to submit a pull request or open an issue in the GitHub repository.

When contributing, please adhere to the following guidelines:

  • Check CONTRIBUTINNG.md for project ideas
  • Fork the repository and create your branch from main.
  • Make sure your code follows the established coding style and conventions.
  • Provide clear and descriptive commit messages.
  • Test your changes thoroughly before submitting a pull request.

Show your support

Give a ⭐️ if this project helped you!

Or buy me a coffee 🙌🏾

The development of Commentator was inspired by the need to streamline code documentation and make it more efficient for developers.

Contact

For any inquiries or feedback, please reach out to the Commentator developer [email protected].