IntelLabs / control-flag

A system to flag anomalous source code expressions by learning typical expressions from training data
MIT License
1.24k stars 112 forks source link

Support for the Kotlin programming language? #6

Open LifeIsStrange opened 3 years ago

mico-boje commented 3 years ago

I have not tested this, but it should work just fine with Kotlin (or any other language). If you read the accommodating paper, they state: While we only demonstrate ControlFlag for C/C++, we have designed it to be programming language agnostic. As such, it should be capable of learning idiosyncratic signatures of any type of control structure in any programming language.

jgottschlich commented 3 years ago

I don't think we've tested it for Kotlin yet, but I believe we have support for C, C++, Verilog and System Verilog.

As @mico-boje pointed out, we did design ControlFlag (CF) so it's language-agnostic (i.e., it should work with all languages). Thus far, there hasn't been any language it doesn't work with, including hardware description languages (HDLs).

Some of our upcoming target languages for support are Python, JavaScript, and Java.

Thanks much for your interest!