moio / pase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PaSe

Pa(tch)Se(arch) is an experimental search engine for code allowing search by patch.

It will return files by applicability of a specified patch.

Indexing

To index a source directory:

java -jar pase.jar index <source_path> <index_path>

Searching

Once indexing has finished, you can search:

  • on the command line: use java -jar pase.jar search <index_path> <patch_path>
  • via API:
    • use java -jar pase.jar serve <index_path> to start the PaSe Server
    • query the URL http://localhost:4567/search?patch=URL_ENCODED_PATCH to get results as JSON (see utils/example_client.py for a full example)
  • via the Web UI:
    • use java -jar pase.jar serve <index_path> to start the PaSe Server
    • visit http://localhost:4567 with your browser

Screen capture of PaSe's Web UI

About

License:MIT License


Languages

Language:Java 65.6%Language:JavaScript 24.8%Language:HTML 6.7%Language:FreeMarker 2.1%Language:CSS 0.6%Language:ActionScript 0.1%Language:HCL 0.1%Language:XSLT 0.1%Language:SaltStack 0.0%Language:Shell 0.0%Language:Python 0.0%Language:Dockerfile 0.0%Language:Fluent 0.0%