Giter VIP home page Giter VIP logo

swept's Introduction

Japeeti

AI sends pull requests for features you request in natural language

  • Create frontend website for marketing
  • Semantic search for what files to update and recursive update
  • Slackbot that takes requests from users and responds with PR links
  • Github api to retrieve PR comments and what file, line num it correspond to

Usage

python swept.py -h                                                                                              
usage: swept.py [-h] -f FILE -i INSTRUCTION [-r REPO] [-d] [-pr]

Edit a section of code, PR with changes.

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  location of a file
  -i INSTRUCTION, --instruction INSTRUCTION
                        instruction on how to edit the file
  -r REPO, --repo REPO  location to git repo
  -d, --diff            show diff
  -pr, --pull-request   add change, commit, push and raise a PR

Example

OPENAI_KEY="<key>" GH_TOKEN="<token>" python swept.py -f examples/import_indent_bug.py -i "Rewrite the given code and fix any bugs in the program." -d --pr

Here is a real PR opened by this above command: keerthanpg#8

OPENAI_KEY="<key>" GH_TOKEN="<token>" python swept.py
-f /Users/keerthanapg/robotics_transformer/tokenizers/image_tokenizer.py -i "Rewrite the given code by making the __call__ function always use token learner and remove use_token_learner and self._use_token_learner variable" -r "/Users/keerthanapg/robotics_transformer" -d -pr

Here is a more complex PR opened on an open source repo: https://github.com/keerthanpg/robotics_transformer/pull/5/commits/20dda2730774a414cfd6a59e59f8870c83ce6307

swept's People

Contributors

keerthanpg avatar nuwandavek avatar frickerj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.