Giter Site home page Giter Site logo

jetbrains-research / kotlin-code-anomaly Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 0.0 1.99 MB

Code anomaly detection in Kotlin compiler

License: Apache License 2.0

Kotlin 32.69% Python 18.96% Java 0.27% Shell 1.05% Jupyter Notebook 41.75% CSS 5.29%
kotlin anomaly-detection data-mining kotlin-compiler

kotlin-code-anomaly's Introduction

kotlin-code-anomaly

This is a tool for detecting anomalies in kotlin code. Anomalies are found in two ways: by classical machine learning algorithms on code metrics and by variational autoencoder on n-grams.

Requirements:

  • java 8
    • java fx for visualizer.
  • JDK 1.6, 1.7 for PSI extraction
  • python 3 with packages listed in requiremets.txt

Usage:

  • ./build.sh - to build the feture extraction and visualization kotlin modules
    • --no-visualizer to build only feature extractor
  • ./run-all.sh <path to the data set> - run the pipline. The extracted features are placed in the data/ directory and the resulting anomalies data is put in the out-data/ directory.
  • java -jar visualizer-cli.jar helps analyze the anomalies found by classical algorithms with metrics
    • --seek to extract code with anomalies
    • --binary-mark to manualy mark anomalies and useful or not
    • --copy to copy kotlin files
    • --categ-copy to sort anomalies by category (useful or useless)

The following parts contain external code:

kotlin-code-anomaly's People

Contributors

asgusev avatar ksmirenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.