Skip to content

Commit

Permalink
Similarity checker (OWASP-BLT#3134)
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-sehgal authored Dec 21, 2024
1 parent e88406b commit 42763fa
Show file tree
Hide file tree
Showing 6 changed files with 886 additions and 0 deletions.
11 changes: 11 additions & 0 deletions blt/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
vote_count,
)
from website.views.organization import (
CodeSimilarityAnalyze,
CreateHunt,
DomainDetailView,
DomainList,
Expand Down Expand Up @@ -778,6 +779,16 @@
path("teams/delete-team/", delete_team, name="delete_team"),
path("teams/leave-team/", leave_team, name="leave_team"),
path("teams/kick-member/", kick_member, name="kick_member"),
path(
"similarity-check/",
TemplateView.as_view(template_name="similarity.html"),
name="similarity_check",
),
path(
"api/code-similarity/analyze/",
CodeSimilarityAnalyze.as_view(),
name="code_similarity_analyze",
),
]

if settings.DEBUG:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ matplotlib = "^3.10.0"
openpyxl = "^3.1.5"
atproto = "^0.0.55"
slack-bolt = "^1.22.0"
gitpython = "^3.1.43"
transformers = "^4.47.1"
torch = "^2.5.1"
scikit-learn = "^1.6.0"

[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
Expand Down
Loading

0 comments on commit 42763fa

Please sign in to comment.