Framework for Source Code Preprocessing
Project description
PyReprism
PyReprism is a suite of essential methods designed for common preprocessing tasks in code clone detection research.
Install
pip install PyReprism
Quick Usage
from PyReprism.languages import Python
source = """
# single line comment
x = 5 + 6
'''
multiline
comment
'''
print(x)
"""
source =''.join(Python.remove_comments(source))
Read the docs for more usage examples.
How to Contribute
git clone https://github.com/unlv-evol/PyReprism.git
cd PyReprism
(Optional) It is suggested to make use of virtualenv. Therefore, before installing the requirements run:
python3 -m venv venv
source venv/bin/activate
Then, install the requirements:
pip install -r requirements.txt
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyreprism-0.0.1.tar.gz.
File metadata
- Download URL: pyreprism-0.0.1.tar.gz
- Upload date:
- Size: 36.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5728ebc93e9ffeed0a8a572cf54d6cf88fecfb1435689c0e5eae42fd12829e80
|
|
| MD5 |
97f9ff86874bd834951ff13fec01ff07
|
|
| BLAKE2b-256 |
ea97d2791939ff74dc16dc3c66a98b73871c4cff10e50a51555e2421806c8c32
|
File details
Details for the file pyreprism-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyreprism-0.0.1-py3-none-any.whl
- Upload date:
- Size: 96.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb9142dfb53b705836f4bb484020c5eff7f86470f0c8d59ee9b74a5c2602e547
|
|
| MD5 |
05920287ae141ddbc928f708f7f80b1d
|
|
| BLAKE2b-256 |
d0d999321d8dc0aa2b9a52b5ae2054cd2ca24e764d82aede0326c2401f6fb313
|