Skip to content

Commit 13b6ef9

Browse files
committed
ton of improvements
- Added Docs - Modularised whole code. check is now a class - minor configs
1 parent 5c8ed7e commit 13b6ef9

17 files changed

+205
-81
lines changed

.github/ISSUE_TEMPLATE/----bug-report.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "\U0001F41B Bug report"
33
about: Create a report to help us improve
44
title: ''
5-
labels: ''
5+
labels: 'bug'
66
assignees: ''
77

88
---
@@ -28,11 +28,5 @@ If applicable, add screenshots to help explain your problem.
2828
- Browser [e.g. chrome, safari]
2929
- Version [e.g. 22]
3030

31-
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
36-
3731
**Additional context**
3832
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/---feature-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "\U0001F680 Feature request"
33
about: Suggest an idea for this project
44
title: ''
5-
labels: ''
5+
labels: 'enhancement'
66
assignees: ''
77

88
---

.github/ISSUE_TEMPLATE/---say-thank-you.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: "\U0001F49F Say thank you"
3-
about: Just say thanks if you liked tutorialdb
3+
about: Just say thanks if you liked PlagCheck
44
title: ''
55
labels: ''
66
assignees: ''

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Contributing to PlagCheck
2+
3+
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
4+
5+
Make sure you follow below guidelines before contributing.
6+
7+
1. Raise an issue before sending any PR.
8+
2. Make you changes to `feature` branch.
9+
3. See if there is already an open PR for the same issue.

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
theme: jekyll-theme-slate
2+
show_downloads: true

demo.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
import os
33
import pprint
44
from plagcheck import plagcheck
5+
import time
56
from dotenv import load_dotenv
67
load_dotenv()
78

89
program_files = ["testfiles/test_python.py", "testfiles/test_python3.py"]
910
language = "python"
1011
userid = os.environ["USER_ID"]
1112

12-
url, results = plagcheck.check(program_files, language, userid)
1313

14+
cheat = plagcheck.check(program_files, language, userid)
1415

15-
print(url)
16-
pprint.pprint(results)
16+
cheat.submit()
17+
18+
print(cheat.getHomePage())
19+
pprint.pprint(cheat.getResults())

docs/about.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## About
2+
3+
plagcheck was built by :
4+
5+
👥 **Bhupesh Varshney**
6+
7+
- Twitter: [@bhupeshimself](https://twitter.com/bhupeshimself)
8+
- DEV: [bhupesh](https://dev.to/bhupesh)
9+
- GitHub: [Bhupesh-V](https://github.com/Bhupesh-V)
10+
11+
## 📝 License
12+
13+
This project is licensed under the MIT License. See the [LICENSE](https://github.com/codeclassroom/PlagCheck/blob/master/LICENSE) file for details.
14+
15+
## 👋 Contributing
16+
17+
Please read the [CONTRIBUTING](https://github.com/codeclassroom/PlagCheck/blob/master/CONTRIBUTING.md) guidelines for the process of submitting pull requests to us.

docs/changelog.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Changelog
2+
3+
4+
## [0.3] - Dec x, 2019
5+
6+
### Added
7+
- New methods: `getHomePage()`, `submit()`, `getResults()`, `addBase()`. See Documentation for usage.
8+
9+
### Changed
10+
- The plagcheck module, more modularised. `check` is now a class.
11+
12+
### Removed
13+
- `requests` as a dependency, network requests are now 50% faster.
14+
15+
16+
## [0.2] - Nov 9, 2019
17+
- Minor Improvements
18+
19+
20+
## [0.1] - Nov 3, 2019
21+
- Initial Release
22+
23+
# Releases
24+
See releases on [PyPi](https://pypi.org/project/plagcheck/#history)

docs/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PlagCheck ✅
2+
3+
![PyPI](https://img.shields.io/pypi/v/plagcheck?color=blue)
4+
[![Build Status](https://travis-ci.org/codeclassroom/PlagCheck.svg?branch=master)](https://travis-ci.org/codeclassroom/PlagCheck)
5+
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/plagcheck)
6+
[![GitHub license](https://img.shields.io/github/license/codeclassroom/PlagCheck)](https://github.com/codeclassroom/CodeRunner/blob/master/LICENSE)
7+
![PyPI - Downloads](https://img.shields.io/pypi/dm/plagcheck?color=blue)
8+
[![GitHub issues](https://img.shields.io/github/issues/codeclassroom/PlagCheck?color=blueviolet)](https://github.com/codeclassroom/CodeRunner/issues)
9+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-orange.svg)](http://makeapullrequest.com)

docs/installation.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Installation
2+
3+
Installing plagcheck is pretty simple, just run
4+
5+
`pip install plagcheck`
6+
7+
Install a specific verison
8+
9+
`pip install plagcheck==0.2`
10+
11+
or directly from GitHub if you cannot wait to test new features
12+
13+
`pip install git+https://github.com/codeclassroom/PlagCheck.git`
14+
15+
If you have already installed it and want to update
16+
17+
`pip install --upgrade plagcheck`

0 commit comments

Comments
 (0)