Giter VIP home page Giter VIP logo

coderid's People

Contributors

azoacha avatar danielwatson3141 avatar jpngfile avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jpngfile jur1cek

coderid's Issues

Config Menu

There are many design decisions that have been made throughout this project that I would love to see built in as configurable options:

-Whether to consider comments
-Whether to consider whitespace
-Whether to consider string literals as unique tokens
-Toggle various feature sets: Tokens, chars, unigrams

Feature Extraction Efficiency

Feature extraction has efficiency problems:

Takes too much memory
Takes too long due to duplicate work

Would love to see such things reduced to speed up iteration.

Project Re-organization

Root dir of repo is getting cluttered. I would like source files moved into an src directory and the necessary changes made to ensure everything stays working.

ML Model Modularity

Currently, our tool is built around a RFC (Random Forest Classifier). It would be of great value if we could run other algorithms over our dataset to see what we can come across. I would like to see our RFC code abstracted out of the main program and brought into a more genericized class so we can attempt other classification techniques.

Normalize Whitespace

I would like the ability to normalize the whitespace of all code in a GPS. That is:

Any "unnecessary" spaces, those which do not effect the syntax of the code should be removed.
Any instances of multiple, consecutive, identical, white-space characters should be reduced to single instances of the character (except for tabs).
Newlines should only occur:

  1. After semi-colons

  2. After opening brackets {

  3. Before and after closing brackets }

  4. After colons : as in switch cases and labels.

  5. After ) in for, if, and while blocks with no brackets

  6. I am open to other logical instances.

All other newlines should be stripped out.

For example,
<-------------------------------------------------------------------->
for( int i=0; i<10; i++) would reduce to for(int i=0;i<10;i++). Note the only remaining space comes after the "int" as it is syntactically necessary.
<-------------------------------------------------------------------->
int i=0 reduces to int i=0 (got rid of double space)
<-------------------------------------------------------------------->
for(int i=0;i<10;i++)
foo()
remains unchanged
<-------------------------------------------------------------------->
code

code

would be reduced to:
code
code
as newlines count.
<-------------------------------------------------------------------->
The goal here is to propose and validate one step in an obfuscation process. That is, a way to prevent stylometric attacks without obscuring the meaning of the code.

Refactor Wanted: Classification Code

coderID.py is getting too cluttered with various classification problem code. I would like this refactored out to a new file. The difficulty is that due to laziness, there are a lot of self references in said functions which will need to be refactored out to parameters and so forth.

Feature: Data-Set Metrics output

I would like a command added that plots (or summarizes) the following information for inclusion in the paper:

Summary:
Total Number of functions
Total LOC
AVG function length (LOC)

Plot:
Function length (LOC) - Histogram

Recursive Feature Elimination

Our current feature reduction method isn't giving very consistent results. The threshold seems to be highly variable depending on the size of the dataset.

I would like to see recursive feature elimination implemented as this would be a more flexible approach.

Idea:
set lambda = .1 (some small fraction)
while score is not decreasing:
score model by cross validation
remove lamda * featureSetSize least important features
return featureSet

Time will be the biggest obstacle here. Has to be done efficiently.

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.