Skip to content

Commit

Permalink
Update data sets
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertcostas committed May 19, 2021
1 parent 64e3fdd commit 7056acf
Show file tree
Hide file tree
Showing 29 changed files with 13 additions and 14 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
27 changes: 13 additions & 14 deletions data-raw/build_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ source("data-raw/nist-cpe.R")
source("data-raw/nist-cve.R")

# Build sample data sets
set.seed(42)

cpe.nist <- dplyr::sample_frac(cpe.nist, 0.0002)
cve.nist <- dplyr::sample_frac(cve.nist, 0.004)
cwe.weaknesses <- cwe.weaknesses[cwe.weaknesses$Status != "Deprecated", ]
cwe.weaknesses <- dplyr::sample_frac(cwe.weaknesses, 0.5)
cwe.categories <- cwe.weaknesses[cwe.categories$Status != "Deprecated", ]
cwe.categories <- dplyr::sample_frac(cwe.categories, 0.5)
capec.patterns <- dplyr::sample_frac(capec.patterns, 0.5)
attck.relations <- dplyr::sample_frac(attck.relations, 0.5)
attck.techniques <- dplyr::sample_frac(attck.techniques, 0.5)
attck.software <- dplyr::sample_frac(attck.software, 0.5)
car.analytics <- dplyr::sample_frac(car.analytics, 0.5)
car.model <- dplyr::sample_frac(car.model, 0.5)
# set.seed(42)
# cpe.nist <- dplyr::sample_frac(cpe.nist, 0.0002)
# cve.nist <- dplyr::sample_frac(cve.nist, 0.005)
# cwe.weaknesses <- cwe.weaknesses[cwe.weaknesses$Status != "Deprecated", ]
# cwe.weaknesses <- dplyr::sample_frac(cwe.weaknesses, 0.6)
# cwe.categories <- cwe.weaknesses[cwe.categories$Status != "Deprecated", ]
# cwe.categories <- dplyr::sample_frac(cwe.categories, 0.6)
# capec.patterns <- dplyr::sample_frac(capec.patterns, 0.6)
# attck.relations <- dplyr::sample_frac(attck.relations, 0.6)
# attck.techniques <- dplyr::sample_frac(attck.techniques, 0.6)
# attck.software <- dplyr::sample_frac(attck.software, 0.6)
# car.analytics <- dplyr::sample_frac(car.analytics, 0.6)
# car.model <- dplyr::sample_frac(car.model, 0.6)

usethis::use_data(cve.nist, cpe.nist, cwe.views, cwe.categories, cwe.weaknesses,
capec.views, capec.categories, capec.patterns, capec.relations,
Expand Down
Binary file modified data/attck.groups.rda
Binary file not shown.
Binary file modified data/attck.mitigations.rda
Binary file not shown.
Binary file modified data/attck.relations.rda
Binary file not shown.
Binary file modified data/attck.software.rda
Binary file not shown.
Binary file modified data/attck.tactics.rda
Binary file not shown.
Binary file modified data/attck.techniques.rda
Binary file not shown.
Binary file modified data/capec.categories.rda
Binary file not shown.
Binary file modified data/capec.patterns.rda
Binary file not shown.
Binary file modified data/capec.relations.rda
Binary file not shown.
Binary file modified data/capec.views.rda
Binary file not shown.
Binary file modified data/car.analytics.rda
Binary file not shown.
Binary file modified data/car.coverage.rda
Binary file not shown.
Binary file modified data/car.implementations.rda
Binary file not shown.
Binary file modified data/car.model.rda
Binary file not shown.
Binary file modified data/car.relations.rda
Binary file not shown.
Binary file modified data/car.sensors.rda
Binary file not shown.
Binary file modified data/cpe.nist.rda
Binary file not shown.
Binary file modified data/cve.nist.rda
Binary file not shown.
Binary file modified data/cwe.categories.rda
Binary file not shown.
Binary file modified data/cwe.views.rda
Binary file not shown.
Binary file modified data/cwe.weaknesses.rda
Binary file not shown.
Binary file modified data/shield.opportunities.rda
Binary file not shown.
Binary file modified data/shield.procedures.rda
Binary file not shown.
Binary file modified data/shield.relations.rda
Binary file not shown.
Binary file modified data/shield.tactics.rda
Binary file not shown.
Binary file modified data/shield.techniques.rda
Binary file not shown.
Binary file modified data/shield.use_cases.rda
Binary file not shown.

0 comments on commit 7056acf

Please sign in to comment.