Code corpus creation for python code for the LASSO Platform.
Implementation of analyzer for Python code.
Assumes Python3 >= 3.12 (tested with Ubuntu 24.04 LTS)
Example using Python's virtual environment (you need to have virtualenv installed; e.g. using pip)
pip3 install virtualenv # depending on your OS/Python distributionClone 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.txtdocker build -t swtrepo.informatik.uni-mannheim.de:5050/docker/lasso/analyzer-python:latest -f Dockerfile .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 mysolrpassExample (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