Giter Site home page Giter Site logo

gitsocratic's Introduction

GitSocratic

Source code query command line interface

Build Status

gitsocratic architecture

GitSocratic provides a pain-free interface for querying source code. GitSocratic uses the omnilingual parser Babelfish to extract universal abstract syntax trees (which are additionally annotated with their semantic meanings) and imports that data into a knowledge graph powered by Grakn. This process is fully facilitated by GitSocratic's integration with Phenomena.

Features

Setup

GitSocratic requires access to two services:

GitSocratic is able to install these services automatically using Docker. If you do no wish to use Docker you may supply the host and ports for these services through the config file or command.

To automatically setup these services with Docker, simply use the command:

gitsocratic init

Note: This command may take several minutes on the first use.

Bare-bones installation

apt-get update
apt install openjdk-8-jre-headless
apt install unzip
apt install docker.io
wget https://github.com/CodeBrig/GitSocratic/releases/download/v0.2.1-alpha/gitsocratic-0.2.1.zip
unzip gitsocratic-0.2.1.zip
cd gitsocratic-0.2.1/bin/
./gitsocratic init

Usage

gitsocratic [-hV] [-c=<configFile>] [COMMAND]

asciicast

Commands

add-local-repo   Add local source code repository to the knowledge graph
add-remote-repo  Add remote source code repository to the knowledge graph
config           Configure GitSocratic
console          Open interactive source code query console
init             Initialize services necessary to use GitSocratic
logs             View logs for initialized services
query            Execute a single source code query
question         Execute a single source code question

More information: COMMANDS

License

Apache 2.0

gitsocratic's People

Contributors

bfergerson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gitsocratic's Issues

Example queries

  • functions which declare return value of Integer but return int

Project node

So files/methods can be traversed back to project

find/search command

Allows you to look through a given codebase/file(s) by Arthur filter logic

Stats command

Show general statistics about stored source code:

  • file count
  • repo count
  • method count
  • languages
  • SLOC
  • project count
  • etc

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.