Skip to content

Commit 6e8f100

Browse files
authored
Merge pull request #5 from codeclassroom/dev
0.3 release
2 parents 5c8ed7e + d1b5aa0 commit 6e8f100

29 files changed

+614
-101
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: ''

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,7 @@ venv.bak/
102102

103103
# mypy
104104
.mypy_cache/
105+
106+
# custom
107+
/submission
108+
sample.py

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ script:
1414
- isort --check-only --recursive plagcheck
1515
- black --check --diff plagcheck
1616
- flake8 plagcheck --max-line-length=88 --ignore=F401
17-
- pylint plagcheck --disable=bad-continuation,invalid-name
17+
- pylint plagcheck --disable=bad-continuation,invalid-name,attribute-defined-outside-init,no-self-use,too-many-locals,too-few-public-methods
1818
after_success:
1919
- coveralls

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.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Bhupesh Varshney
3+
Copyright (c) 2020 Bhupesh Varshney
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

_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: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@
22
import os
33
import pprint
44
from plagcheck import plagcheck
5+
56
from dotenv import load_dotenv
67
load_dotenv()
78

8-
program_files = ["testfiles/test_python.py", "testfiles/test_python3.py"]
99
language = "python"
1010
userid = os.environ["USER_ID"]
1111

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

13+
moss = plagcheck.check(language, userid)
14+
15+
moss.addFilesByWildCard("testfiles/test_python*.py")
16+
17+
# or moss.addFile("testfiles/test_python.py")
18+
19+
moss.submit()
1420

15-
print(url)
16-
pprint.pprint(results)
21+
print(moss.getHomePage())
22+
pprint.pprint(moss.getResults())
23+
# print frequency of each shared solution
24+
pprint.pprint(moss.getShareScores())
25+
# print potential distributor-culprit relationships
26+
pprint.pprint(moss.getInsights())

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.

0 commit comments

Comments
 (0)