Skip to content

proyectosbeta/refactoring-detector-gemini-nano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refactoring Detector Gemini Nano

Overview

Refactoring Detector Gemini Nano is a tool designed to assist with code analysis and refactoring recommendations by leveraging modern web technologies and Gemini Nano's capabilities. This guide provides the necessary steps to configure and use the Prompt API and Translation API. The tool not only detects potential code refactorings but also translates the refactoring suggestions into Spanish for greater accessibility.

Technologies Used

Prerequisites

To use Gemini Nano, you need to install Google Chrome Canary. Make sure you are using the latest version for compatibility.

Enabling Required Flags

To properly enable Gemini Nano's capabilities, certain Chrome flags need to be enabled. Please follow the links below for detailed instructions on each API:

Example Input Code

You can use the following code snippet as an example input in the application:

def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n - 1)

print(factorial(5))

This code will be analyzed for possible improvements and refactoring suggestions. The refactoring suggestions will then be translated into Spanish.

Use

Only Google Canary

Demo

About

Refactoring detector with Gemini Nano

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published