GithubHelp home page GithubHelp logo

mlh-fellowship / jamspam Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 6.35 MB

GitHub App to jam the spam PRs on your repo and keep maintainers stress-free (even in Hacktober ๐ŸŽƒ)

License: MIT License

Shell 1.34% Dockerfile 0.95% JavaScript 35.97% Python 61.74%

jamspam's Issues

NLP to detect hit keywords for SPAM/HAM dataset

Implement NLP to extract keywords from SPAM and HAM corpus.

A frequency vector of these keywords would be a great feature for our model. To make sure, we have keywords specific to SPAM and HAM characteristics of the PR, we decide to do the following.

N = complexity of the model (starting with 30, might change iteratively to achieve better results)

A = Top N keywords list from SPAM dataset
B = Top N keywords list from HAM dataset

SPAM_KEYWORDS = (A - B)
HAM_KEYWORDS = (B - A)

Suggest using multi-rake for rapid keyword extraction from corpus

Data Aggregation Script

Create a script to scrape or possibly use APIs to get attributes of spam and ham PRs in order to build a complete dataset

Attributes

  • PR Title
  • PR Description
  • Diffs
  • Commit Messages
  • .. discussion open for more attributes

Extract 'feature'ful attributes from fetched data

  • PR Title
  • PR Body
  • Diffs (actual changes)
  • Commit Messages
  • Files Changes
  • Documentation File Changes (.md, .rst, .txt)
  • Number of commits
  • Diffs number (additions + deletions)

(Those ticked have been worked on in #12 (WIP) or earlier)

Build Classifier Model

  • Build Spam/Ham Classifier Model
  • Decide on passing threshold for misclassification rate
  • Test for Accuracy / Improve, if poor

Add Check For Valid Documentation PRs

Keep pull request open irrespective of contents if all the below conditions are met (skip spam detection)

  • PR should have a linked issue.
  • Linked issue should have label documentation
  • Labelled issue should be assigned to the same user who has sent the Pull Request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.