Skip to content

Instantly share code, notes, and snippets.

View nuthanmunaiah's full-sized avatar

Nuthan Munaiah nuthanmunaiah

View GitHub Profile
@nuthanmunaiah
nuthanmunaiah / marshal.py
Last active February 18, 2023 17:00
Python module to serialize and deserialize networkx DiGraph objects to and from a JSON file.
import jsonpickle
import networkx
from networkx.readwrite import json_graph
def serialize(call_graph, file_path):
'''Function to serialize a NetworkX DiGraph to a JSON file.'''
if not isinstance(call_graph, networkx.DiGraph):
raise Exception('call_graph has be an instance of networkx.DiGraph')
@nuthanmunaiah
nuthanmunaiah / organization.csv
Last active September 15, 2021 14:21
Lists of GitHub repositories used to train (organization.csv and utility.csv) and validate (validation.csv) classifiers built as part of the reaper project.
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 12 columns, instead of 1. in line 9.
github_url,architecture,continuous_integration,community,documentation,history,license,management,repository_size,unit_test,stars,class
https://github.com/Netflix/SimianArmy,0.855263,1,8,0.329829,12.593750,1,5.218750,16086,0.321283,3717,project
https://github.com/mongodb/mongo,0.859924,0,17,0.201783,342.101135,1,10.662921,1922831,0.015290,8826,project
https://github.com/mono/mono,0.976082,1,17,0.110074,99.308945,1,13.975610,6294836,0.323889,4292,project
https://github.com/mozilla/socorro,0.850837,1,13,0.164479,97.484535,1,29.082474,147229,0.532899,262,project
https://github.com/FFmpeg/FFmpeg,0.892072,0,17,0.131484,445.285706,1,2.178571,801876,0.012306,3367,project
https://github.com/puppetlabs/puppet,0.979446,1,32,0.120113,159.075623,1,32.117645,224141,0.495465,3818,project
https://github.com/bitcoin/bitcoin,0.955645,1,15,0.055055,175.044769,1,91.447762,256487,0.148008,8549,project
https://github.com/scrapy/scrapy,0.910596,1,6,0.226690,61.518520,1,14.098765,22162,0.407252,12643,project
https://github.com/djan
cve product bounty source
CVE-2014-0257 .NET Framework 5,000.00 https://hackerone.com/reports/18851
CVE-2015-3842 Android 2,000.00 https://code.google.com/p/android/issues/detail?id=177610
CVE-2015-3847 Android 1,500.00 https://code.google.com/p/android/issues/detail?id=179147
CVE-2015-3860 Android 500.00 https://code.google.com/p/android/issues/detail?id=178139
CVE-2015-3862 Android 333.00 https://code.google.com/p/android/issues/detail?id=181895
CVE-2015-3865 Android 1,500.00 https://code.google.com/p/android/issues/detail?id=182294
CVE-2015-3867 Android 4,000.00 https://code.google.com/p/android/issues/detail?id=182838
CVE-2015-3868 Android 4,000.00 https://code.google.com/p/android/issues/detail?id=182146
CVE-2015-3869 Android 3,000.00 https://code.google.com/p/android/issues/detail?id=182053
@nuthanmunaiah
nuthanmunaiah / code.R
Created April 2, 2016 18:50
R scripts accompanying the class notes for Week 10 of Applied Multivariate Statistical Analysis course.
# Initialize Libraries
library("MASS")
library("ROCR")
# Function Definitions
evaluate.performance <- function(model, data){
yhat <- predict(model, newdata = data)$class
cmat <- table(data$y, yhat)
accuracy <- sum(diag(cmat)) / nrow(data)
error <- (1 - accuracy)
We can't make this file beautiful and searchable because it's too large.
release,vulnerable,sloc,num-pre-bugs,num-pre-build-bugs,num-pre-compatibility-bugs,num-pre-features,num-pre-security-bugs,num-pre-stability-crash-bugs,num-pre-regression-bugs,num-pre-tests-fails-bugs,build-experience,compatibility_experience,security_experience,stability_experience,test_fail_experience,cvss_base,bounty
5.0,f,20,2,0,0,0,0,0,1,0,0.666666666666667,0.666666666666667,0.833333333333333,0.833333333333333,0,,0.0
5.0,t,671,29,0,0,12,0,1,1,0,0.555555555555556,0.396825396825397,0.555555555555556,0.634920634920635,0.0436507936507936,7.5,1000.0
5.0,t,204,15,0,0,5,0,0,1,0,0.546875,0.3828125,0.5546875,0.6484375,0.0390625,7.5,1000.0
5.0,f,150,2,0,0,1,0,0,0,0,0.642857142857143,0.5,0.714285714285714,0.928571428571429,0,,0.0
5.0,f,59,0,0,1,2,0,0,0,0,1,1,1,1,0.166666666666667,,0.0
5.0,f,406,16,0,0,0,0,1,1,0,0.673076923076923,0.403846153846154,0.490384615384615,0.663461538461538,0,7.5,1000.0
5.0,f,34,5,0,0,0,0,0,1,0,0.777777777777778,0.37037037037037,0.444444444444444,0.703703703703704,0,,0.0