GithubHelp home page GithubHelp logo

thakkarparth007 / copilot-explorer Goto Github PK

View Code? Open in Web Editor NEW
598.0 598.0 68.0 6.53 MB

Hacky repo to see what the Copilot extension sends to the server

Home Page: https://twitter.com/parth007_96/status/1604160949434421248

JavaScript 97.88% Python 0.46% HTML 1.66%

copilot-explorer's People

Contributors

spenczar avatar thakkarparth007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

copilot-explorer's Issues

Explore other repos using the same tools?

Amazing work!

There is no simple way of applying the same visualization and exploration tools on any other GitHub repo, is there? I'd love to have this as a VSCode extension.

Integrate with Codex or some other service for code explanation

Some methods are rather hard to understand without spending some time (especially because my deobfuscation only handles a few kinds of obfuscation patterns).

Would be great to select a piece of code, and the interface queries codex for its explanation.

How to invoke Github Copilot programmatically?

I am looking for a way to control GitHub Copilot programmatically, i.e., invoking it from code.

My question is how to capture the top suggestions provided by Copilot in an automated fashion.

For example, for any given autocomplete task to Copilot, the task is to record the code suggestions and save them into a file.

I am wondering whether your project can help on that?

Identify references of exports

Currently the app shows which module imports which other modules, and what symbols are exported by each module. However it'd be good to get a more fine-grained dependency information. This should be possible to some degree.

Package version for `manifest`

Hi @thakkarparth007!
Thank you so much for your effort on this great project!

I was trying to run this project locally but countered some problems with python packages. Namely, I don't have manifest installed and I cannot install it with pip install manifest. Could you provide the version of this package you used?
截屏2022-12-31 下午7 16 58

Thank you so much again!

node index.js error

Cloned, then did npm install, then node index.js.

Received the following error:

/Users/abhinavg/Documents/copilot-explorer/index.js:471
                    throw e;
                    ^

TypeError: Cannot read properties of undefined (reading 'getCode')
    at NodePath.getSource (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/introspection.js:154:27)
    at UnaryExpression (/Users/abhinavg/Documents/copilot-explorer/index.js:231:35)
    at NodePath._call (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:46:20)
    at NodePath.call (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:36:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:84:31)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitMultiple (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:67:17)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:119:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)
    at TraversalContext.visitQueue (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:96:16)
    at TraversalContext.visitSingle (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:72:19)
    at TraversalContext.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/context.js:121:19)
    at traverseNode (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/traverse-node.js:18:17)
    at NodePath.visit (/Users/abhinavg/Documents/copilot-explorer/node_modules/@babel/traverse/lib/path/context.js:90:52)```

Codex/ChatGPT based deobfuscation

This can be done but it's not realiable. So we need a way to check if whatever ChatGPT/Codex produced is the same as a given function. Abstract interpretation comes to mind...but doing that for JS will require some work.

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.