Skip to content

YUEchn/visrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

introduction

VisRepo is a visualization-based open-source project retrieval tool, this is a tool demo for it. system

The system contains a module for exploring search results and a module for presenting project details. The exploration module provides an overview of the semantic level of the search results from a thematic perspective, while the detailed information module mainly displays the source code parsing results to improve the comprehensibility of the project.

Demo Tool Website

Demo Video

project directory

vis_repo
|-- back
|   |-- data (for text preprocessing)
|   |-- script
|       |-- app.py (main application file)
|       |-- textProcess 
|           |-- MyBerTopic.py(topic model method)
|           |-- SourceCodeParser (parse source code method)
|           |-- TextPreProcessor(text preprocess method)
|-- vis
    |-- public(public resources)
    |-- scripts (executable commands)
    |-- src 
        |-- App.css
        |-- App.test.tsx
        |-- App.tsx
        |-- index.css
        |-- index.tsx
        |-- apis(request api)
        |   |-- api.ts
        |   |-- http.ts
        |   |-- request.ts
        |-- components (modules implementation)
        |   |-- common
        |   |-- controlPanel
        |   |-- header
        |   |-- main
        |   |-- repoCluster
        |   |-- repoPortrait
        |   |-- resultList
        |   |-- topicModelTree
        |-- styles
        |-- utils

develop environment preparation

1. install and start Elasticsearch 8.4

  • download

https://www.elastic.co/downloads/past-releases#elasticsearch

  • start

./elasticsearch-8.4.0/bin/elasticsearch

  • check status

http://x.x.x.x:9200

2. install node 16

  • download

https://nodejs.org/download/docs/v0.12.7/

  • Configure the system environment

3. get source code

  • clone source code

git clone https://github.com/YUEchn/visrepo.git

  • install dependencies

In the vis_repo/vis directory, run: npm install

4. download data and build Eslaticsearch index

data(Google Drive): https://drive.google.com/drive/folders/1zV7Q9pWhLJ5Wl8de2Hc4vfwROZFSM7Z2?usp=drive_link

build Eslaticsearch index: python indexing.py

5. repo source code

add these folders into a folder and change the folder path in back/app.py

60000-69999 20000-29999 70000-79999 50000-59999 40000-49999 30000-39999 10000-19999 0-9999

start search engine

  • start backend(back/script), run: python app.py.py

  • start frontend(vis_repo/vis), run: npm start

  • check the status of VisRepo

http://x.x.x.x:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published