Git Product home page Git Product logo

github-source-code-identifiers's Introduction

Setup

Tree-sitter

Building on Ubuntu (Linux)

Prerequisites

sudo apt install git

sudo apt install openjdk-17-jdk or any other version.

sudo apt-get install python3-distutils

sudo apt install build-essential

Add JAVA_HOME to ~/.bashrc (Linux):

export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 export PATH=$JAVA_HOME/bin:$PATH

macOS (~/.zshrc): export JAVA_HOME=$(/usr/libexec/java_home)

Clone

git clone https://github.com/jcrienen/java-tree-sitter.git cd java-tree-sitter git clone https://github.com/tree-sitter/tree-sitter.git

For each of the wanted tree-sitter grammars: git clone [clone-url] ex. git clone https://github.com/tree-sitter/tree-sitter-java.git

https://tree-sitter.github.io/tree-sitter/

Build library

python3 build.py -a x86_64 -o libjava-tree-sitter tree-sitter-java ...

Running the code

Extractor

Build the wrapper library locally using mvn install. Build the extractor using Maven and run it by using java -jar file.jar -p app.properties. Modify app.properties according to your own needs.

Analyzer

Run analysis3D.py with the app.properties as a parameter. Results will be extractor into /analysis_3d.

CSE3000 Research project

This repository links to the work for the 2023 Q2 Research project course of the CSE bachelor at TU Delft.

Please see the projects here.

github-source-code-identifiers's People

Contributors

jcrienen avatar

Watchers

 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.