Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hamzahussyn/similarityanalyser
A flask based tool to identify similar and dissimilar nodes in two ASTs. Use case is plagiarism detection.
https://github.com/hamzahussyn/similarityanalyser
abstract-syntax-tree algorithms artificial-intelligence python
Last synced: about 5 hours ago
JSON representation
A flask based tool to identify similar and dissimilar nodes in two ASTs. Use case is plagiarism detection.
- Host: GitHub
- URL: https://github.com/hamzahussyn/similarityanalyser
- Owner: hamzahussyn
- Created: 2021-06-08T18:36:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T19:48:04.000Z (7 months ago)
- Last Synced: 2024-04-22T21:02:10.925Z (7 months ago)
- Topics: abstract-syntax-tree, algorithms, artificial-intelligence, python
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimilarityAnalyser
A web based tool for finding similarity in two peices of Python code.
Its a flask project which makes use of AST, astor, RE, and difflib libraries in Python.## Disclaimer
I authored this project for the fun of it to learn more about ASTs and CFGs. This project does not gurantee any results derived of comparisons.
**Warning**: This project is intended for educational purposes only. Any unfair use, including but not limited to plagiarism and unauthorized copying, is strictly prohibited and unethical.
Reach me out at [[email protected]](mailto:[email protected])
## Project Setup
### Virtual Environment (Optional)
Set up a virtual environment in the project directory after cloning it on to your machine.`python3 -m venv env`
Once you have the virtual environment set up, activate it by changing your directory to:
`cd env/bin`
then execute activate scripte, works differently for linux, mac os, or windows.
### Installing dependencies
Make sure you're at the same directory level as `requirement.txt` file at the root. Then execute:`pip install -r requirement.txt`
### Running the project
Now to finally run the flask server, execute:`python3 -m flask --app app run`