Giter Club home page Giter Club logo

frege-extractor's Introduction

frege-extractor

Frege module that assigns repository's sources to programming languages and passes them to analyzers.

The application listens for RabbitMQ messages from queue extract in the following format:

{
    "repo_id": "<repo_id>"
}

After receiving a message, it scans the directory named <repo_id> for any source files by their extensions. Then, it inserts in the database proper entries in tables repository_language, and repository_language_file. Finally, for each language found in the repository, the same RabbitMQ message is passed to its analyzer queue.

Running

Run this application with the following command:

docker run -it jagiellonian/frege-extractor <environmental variables> -v <path to repositories directory>:\repo_downloads

Use -v option to mount volume that contains repositories' directory. Target volume inside the container is called 'repo_downloads'.

Environmental variables

Run this application with following environmental variables:

  • RMQ_HOST - RabbitMQ host
  • RMQ_PORT - RabbitMQ port
  • RMQ_REJECTED_PUBLISH_DELAY - number of seconds to wait between retrying sending output message
  • DB_HOST - Postgres server host
  • DB_PORT - Postgres server port
  • DB_DATABASE - database name
  • DB_USERNAME - database user name
  • DB_PASSWORD - database user password

Authors

Piotr Bienias https://github.com/poitrek

frege-extractor's People

Contributors

poitrek 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.