MCPcopy Index your code

hub / github.com/center-for-threat-informed-defense/sightings_ecosystem / functions

Functions75 in github.com/center-for-threat-informed-defense/sightings_ecosystem

↓ 4 callersFunctionvalidate_attribution_type
(s)
src/pipeline/objects/validator.py:21
↓ 4 callersFunctionvalidate_hash
(s)
src/pipeline/objects/validator.py:69
↓ 4 callersFunctionvalidate_sighting_type
(s)
src/pipeline/objects/validator.py:11
↓ 3 callersMethodconvert_model_to_sighting_table
(obj)
src/pipeline/db/model.py:35
↓ 3 callersMethodconvert_model_to_technique_table
(obj, sighting_id)
src/pipeline/db/model.py:50
↓ 3 callersFunctionvalidate_detection_type
(s)
src/pipeline/objects/validator.py:16
↓ 2 callersFunctiondb_batched_commit_sightings
(session)
src/pipeline/pipeline.py:156
↓ 2 callersFunctiondb_batched_insert_sightings
(session, obj_model, cid)
src/pipeline/pipeline.py:142
↓ 2 callersMethodfind_assoc_rules
Using update_pair_counts, update_item_counts and desired rule filter (filter_rules_by_conf or filter_rules_by_chi2), Rules ar
src/analysis/helper_functions/rules_object.py:102
↓ 2 callersFunctionupdate_completion_estimate
()
src/pipeline/pipeline.py:179
↓ 2 callersFunctionvalidate_version
(s)
src/pipeline/objects/validator.py:6
↓ 1 callersFunctioncount_sightings
(sighting_data_dir)
src/pipeline/pipeline.py:200
↓ 1 callersFunctiondb_add_sighting
(session, obj_model, cid=None)
src/pipeline/pipeline.py:82
↓ 1 callersFunctiondb_execute_procedure
(db, name)
src/pipeline/pipeline.py:171
↓ 1 callersFunctiondb_session
()
src/pipeline/pipeline.py:56
↓ 1 callersMethodfilter_rules_by_chi2
For a given combination of 2 items from an itemset, (item_a, item_b), Calculates the X^2 test statistic for each pair of items.
src/analysis/helper_functions/rules_object.py:73
↓ 1 callersMethodfilter_rules_by_conf
For a given combination of 2 items from an itemset, (item_a, item_b), calculates conf, the confidence that (item_a => item_b).
src/analysis/helper_functions/rules_object.py:57
↓ 1 callersMethodfrequency_dist
(self, cutoff=80)
src/analysis/support_files/barcharts_object.py:24
↓ 1 callersMethodfrequency_dist_grouped
(self, variable_of_interest)
src/analysis/support_files/barcharts_object.py:104
↓ 1 callersMethodgen_rule_str
(self, a, b, val=None, val_fmt="{:.3f}", sep=" = ")
src/analysis/helper_functions/rules_object.py:138
↓ 1 callersFunctionget_argparse
()
src/validator/validator.py:14
↓ 1 callersFunctionget_argparse
()
src/pipeline/pipeline.py:49
↓ 1 callersFunctionmain
(argv)
src/pipeline/pipeline.py:236
↓ 1 callersFunctionobj_to_json
(obj)
src/pipeline/util.py:43
↓ 1 callersFunctionprocess_sighting
(session, sighting_data_dir)
src/pipeline/pipeline.py:100
↓ 1 callersMethodupdate_item_counts
Updates the dictionary of item counts for all items in a given itemset.
src/analysis/helper_functions/rules_object.py:49
↓ 1 callersMethodupdate_pair_counts
Updates the dictionary of pair counts for all pairs of items in a given itemset.
src/analysis/helper_functions/rules_object.py:36
↓ 1 callersFunctionvalidate_document_against_jsonschema
Raises SchemaError or ValidationError Exception if there is a problem with the schema or YAML document.
src/validator/validator.py:21
Method__init__
(self, variables_list, db_connection_string)
src/analysis/support_files/barcharts_object.py:10
Method__init__
( self, groups: Iterable[Any], order=False, threshold=None, min_count=
src/analysis/helper_functions/rules_object.py:16
Method__init__
(self, technique_id, platform, start_time, end_time, tactic, raw_data)
src/pipeline/objects/technique.py:5
Method__init__
( self, version, id, sighting_type, start_time, end_time,
src/pipeline/objects/sighting.py:13
Method__repr__
(self)
src/pipeline/objects/technique.py:13
Method__repr__
(self)
src/pipeline/objects/sighting.py:51
Functiondb_session
yields a SQLAlchemy connection which is rollbacked after the test
tests/pipeline/test_db.py:12
Methoddraw_graph
(self, method="nx")
src/analysis/helper_functions/rules_object.py:154
Functionget_data_files
(base_dir=None)
src/pipeline/util.py:6
Functionget_graph
(sighting_db_conn_str)
src/analysis/support_files/technique_time_series.py:11
Functionget_graph
(sighting_db_conn_str)
src/analysis/support_files/rule_mining_sequences.py:12
Functionget_verbage
()
src/analysis/support_files/technique_time_series.py:50
Functionget_verbage
()
src/analysis/support_files/rule_mining_sequences.py:68
Functionload_data
(file)
src/pipeline/util.py:14
Functionload_data_str
(str)
src/pipeline/util.py:25
Methodmake_sighting
(self, data, **kwargs)
src/pipeline/objects/sighting.py:76
Methodmake_technique
(self, data, **kwargs)
src/pipeline/objects/technique.py:26
Functionmock_args
(monkeypatch)
tests/pipeline/test_pipeline.py:7
Functionprint_overtop
print overtop the current line useful for showing progress without spamming console
src/pipeline/util.py:53
Methodprint_rules
(self)
src/analysis/helper_functions/rules_object.py:145
Functionsave_data
(file, data)
src/pipeline/util.py:35
Functiontest_arg_parse
()
tests/pipeline/test_pipeline.py:23
Functiontest_db_session
()
tests/pipeline/test_db.py:108
Functiontest_db_tables
()
tests/pipeline/test_db.py:20
Functiontest_find_assoc_rules
Test empty iterable passed to rule processing triggers ValueError.
tests/analysis/test_rules_object.py:6
Functiontest_get_data_files
()
tests/pipeline/test_util.py:4
Functiontest_load_data
()
tests/pipeline/test_util.py:9
Functiontest_load_data_str
()
tests/pipeline/test_util.py:17
Functiontest_model_helper
()
tests/pipeline/test_db.py:40
Functiontest_pipeline_args
()
tests/pipeline/test_pipeline.py:12
Functiontest_process
()
tests/pipeline/test_pipeline.py:19
Functiontest_save_data
()
tests/pipeline/test_util.py:24
Functiontest_sighting
()
tests/pipeline/test_sighting.py:38
Functiontest_sighting_validation_hash
()
tests/pipeline/test_sighting.py:66
Functiontest_sighting_validation_hash_md5
()
tests/pipeline/test_sighting.py:75
Functiontest_sighting_validation_hash_sha1
()
tests/pipeline/test_sighting.py:83
Functiontest_sighting_validation_hash_sha256
()
tests/pipeline/test_sighting.py:91
Functiontest_sighting_validation_sighting_type
()
tests/pipeline/test_sighting.py:57
Functiontest_sighting_validation_version
()
tests/pipeline/test_sighting.py:48
Functiontest_technique
()
tests/pipeline/test_technique.py:15
Functiontest_validate_attribution_type
()
tests/pipeline/test_validator.py:46
Functiontest_validate_detection_type
()
tests/pipeline/test_validator.py:39
Functiontest_validate_sighting_type
()
tests/pipeline/test_validator.py:31
Functiontest_validate_version
()
tests/pipeline/test_validator.py:25
Functiontest_validatehash
()
tests/pipeline/test_validator.py:17
Methodtransform
(self, model)
src/pipeline/interfaces/i_transform.py:6
Functionupdate_grouped_barchart
(variable_of_interest, barcharts=barcharts)
src/analysis/sightings_dash.py:183