From the description of the project: "The tool was developed using models resultant from running the J48, J48 Graft, PART, and Ridor machine-learning algorithms on a dataset of approximately 100,000 malicious programs and 16,000 clean programs."
This is just machine-generated J48Graft code. Amusing, but not as terrible as it appears at first blush.
Regarding the title of this submission: as demonstrated by the other comments here, it's good to have some context before you make snarky remarks about the work of others.
Automated code should be beautiful too. How can you debug what you generate if is so ugly? I would even say there is less of an excuse since 100% was written by you and you can easily rewrite all of it at once.
2) It isn't that ugly! If you know what the code is supposed to do (which should be clear from documentation or just the purpose of the program) and it fails in some cases, take that failing case and go through the if-else statements manually.
If this is machine-generated code the real program is the one outputting this script. The big machine-generated statements are just data from that program. That program may be much better structured.
heh. this has to be some kind of output of a translator. if someone or some group was directed to make a file like this, we need a new name for design by committee :D
[+] [-] mturmon|14 years ago|reply
Notice how all the leaf nodes (ends of if/then branches) do only one thing: set isDirty to 0 or 1.
And, all the if/then conditions are just thresholds of one variable against a constant threshold.
The later part seems to be exceptions to the above tree. I've never heard of this, but it seems like what they used:
http://weka.sourceforge.net/doc/weka/classifiers/rules/Ridor...
[+] [-] loeg|14 years ago|reply
[+] [-] bri3d|14 years ago|reply
This is just machine-generated J48Graft code. Amusing, but not as terrible as it appears at first blush.
[+] [-] dhconnelly|14 years ago|reply
[+] [-] evanmoran|14 years ago|reply
[+] [-] emilv|14 years ago|reply
2) It isn't that ugly! If you know what the code is supposed to do (which should be clear from documentation or just the purpose of the program) and it fails in some cases, take that failing case and go through the if-else statements manually.
If this is machine-generated code the real program is the one outputting this script. The big machine-generated statements are just data from that program. That program may be much better structured.
[+] [-] Rinzai|14 years ago|reply
[+] [-] pjscott|14 years ago|reply
[+] [-] jefe78|14 years ago|reply
[+] [-] th0ma5|14 years ago|reply
[+] [-] unknown|14 years ago|reply
[deleted]
[+] [-] unknown|14 years ago|reply
[deleted]
[+] [-] richf|14 years ago|reply
[+] [-] leonidwang|14 years ago|reply
[+] [-] cpcloud|14 years ago|reply