I have made a tool that can analyze code and if needed, translate to these languages:
- Python
- JavaScript
- Java
- C++
- C#
- Ruby
- Go
To make this:
- Gemini 1.5 Flash is used for the generation of code report, vulnerabilities and potential improvements, translated language.
- Tkinter is used for interface
- Regular expression (re) is used for finding patterns and formatting text for easier readibility.
The below image is the starting interface of the tool:

We enter our code(no need of mentioning the language of the code, the tool detects it by its own) and select the language we want to translate in (optional). If needed, click Reset to erase everything (In this case, it's python language and we translate it to C++):

After we click Analyze, it will analyze and generate results after a while.
When done analyzing, we can select any tab for the result:
Here, the model explains the working of the code the user has uploaded:

Here, the model generates a report on vulnerabilities on the code and also gives some suggestions to tackle them:

Here, the model translates our code to the language we select (It's empty if we don't select any language):

- It only works on codes, nothing else
- In 'Translated Code' section, only translation is given, no explaination
- You need to have your own Gemini API