Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analyzer for Python

Code corpus creation for python code for the LASSO Platform.

Implementation of analyzer for Python code.

Install

Assumes Python3 >= 3.12 (tested with Ubuntu 24.04 LTS)

Using pip

Example using Python's virtual environment (you need to have virtualenv installed; e.g. using pip)

pip3 install virtualenv # depending on your OS/Python distribution

Clone and install all required dependencies

git clone https://github.com/SoftwareObservatorium/arena-python.git
python3 -m venv arena
source arena/bin/activate
cd arena-python/

Install packages

pip3 install -r requirements.txt

Usage: Docker

Build

docker build -t swtrepo.informatik.uni-mannheim.de:5050/docker/lasso/analyzer-python:latest -f Dockerfile .

Run on ony project directory

docker run -v "$PWD":/project swtrepo.informatik.uni-mannheim.de:5050/docker/lasso/analyzer-python:latest \
    --solrurl http://localhost:8983/solr/lasso_quickstart/update/json/docs \
    --projectroot=/project --batchsize=50 --meta meta_project_category=python \
    --meta meta_customfield=foo \
    --solruser mysolruser \
    --solrpass mysolrpass

Example (no user/pass)

# --network host -> access solr running in container
docker run --network host -v "$PWD":/project swtrepo.informatik.uni-mannheim.de:5050/docker/lasso/analyzer-python:latest \
    --solrurl http://localhost:8983/solr/lasso_quickstart/update/json/docs \
    --projectroot=/project --batchsize=50 --meta meta_project_category=python \
    --meta meta_customfield=foo

About

Code corpus creation for python code for the LASSO Platform.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages