Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SpecterOps/DeepPass2
/ functions
Functions
37 in github.com/SpecterOps/DeepPass2
⨍
Functions
37
◇
Types & classes
2
↳
Endpoints
1
↓ 3 callers
Function
_calculate_accuracy
( y_true, y_pred, type="strict", min_overlap=0.5, string_min_ratio=0.5, method="sequen
test/testDeeppass2.py:96
↓ 3 callers
Function
_string_overlap_ratio
(s1, s2, min_ratio=0.5)
test/testDeeppass2.py:49
↓ 2 callers
Function
calculate_metrics
(y_true, y_pred)
test/testDeeppass2.py:177
↓ 2 callers
Method
check_document
Check document against regex rules asynchronously.
utils/nprules.py:33
↓ 2 callers
Method
evaluate_model
Comprehensive evaluation of the model. Args: model: The trained model (already loaded) tokenizer: Th
utils/trainingEvaluator.py:35
↓ 2 callers
Function
save_results
(path, metrics)
test/testDeeppass2.py:205
↓ 1 callers
Method
_analyze_errors
Analyze prediction errors.
utils/trainingEvaluator.py:236
↓ 1 callers
Function
_areEqualOverlapStrings
(y_true, y_pred, min_overlap=0.5, string_min_ratio=0.5)
test/testDeeppass2.py:56
↓ 1 callers
Function
_calculate_confusionmetrics
(y_true, y_pred)
test/testDeeppass2.py:137
↓ 1 callers
Method
_compute_comprehensive_metrics
Compute comprehensive metrics for token classification.
utils/trainingEvaluator.py:120
↓ 1 callers
Method
_create_confusion_matrix
Create confusion matrix from predictions and labels.
utils/trainingEvaluator.py:184
↓ 1 callers
Method
_get_predictions
Get model predictions on the test dataset.
utils/trainingEvaluator.py:93
↓ 1 callers
Method
_plot_confusion_matrix
Create and save confusion matrix visualization.
utils/trainingEvaluator.py:196
↓ 1 callers
Method
_print_summary
Print evaluation summary.
utils/trainingEvaluator.py:316
↓ 1 callers
Method
_save_results
Save evaluation results to file.
utils/trainingEvaluator.py:281
↓ 1 callers
Function
chunk_document
Chunk the large document between max and min context length of BERT-based model
deeppass2.py:66
↓ 1 callers
Function
classify_tokens
Tokenizes the input document and predicts credential tokens.
utils/BERTprocessor.py:6
↓ 1 callers
Method
compile_pattern
(self, pattern)
utils/nprules.py:15
↓ 1 callers
Function
evaluate_during_training
Convenience function to call from training loop. Args: model: The model being trained tokenizer: The tokenizer t
utils/trainingEvaluator.py:346
↓ 1 callers
Function
fine_tune_bert_for_token_retrieval
(model_name="xlm-roberta-base", dataset_name="Dataset/chunked_training_BERT_realpass", epochs=4, batch_size=8)
utils/finetune-BERT-chunked.py:50
↓ 1 callers
Function
get_nosey_parker_results
Match and remove NoseyParker results
deeppass2.py:96
↓ 1 callers
Function
get_prompt
Prompt for the LLM
deeppass2.py:120
↓ 1 callers
Function
get_secrets_BERT
Scan for secrets using finetuned xlm-RoBERTa-base model
deeppass2.py:170
↓ 1 callers
Function
get_secrets_LLM
Run LLM check and confirmation on the retrieved xlm-RoBERTa-base model
deeppass2.py:130
↓ 1 callers
Method
load_patterns
Load all regex patterns from a JSONL file.
utils/nprules.py:24
↓ 1 callers
Function
read_test_data
(path)
test/testDeeppass2.py:9
↓ 1 callers
Function
remove_np_result
Removes all noseyparker regex matched patterns from the document.
deeppass2.py:111
↓ 1 callers
Function
run_evaluation
(path)
test/testDeeppass2.py:210
↓ 1 callers
Function
scan_secret
Main function to scan the document for secrets
deeppass2.py:183
↓ 1 callers
Function
set_seed
Set seed for all random number generators to ensure reproducibility. Args: seed (int): The seed value to use
utils/finetune-BERT-chunked.py:15
Method
__init__
Load regex patterns from a JSONL file.
utils/nprules.py:10
Method
__init__
Initialize the evaluator. Args: save_dir (str): Directory to save evaluation results and plots
utils/trainingEvaluator.py:25
Function
compute_metrics
(eval_pred)
utils/finetune-BERT-chunked.py:106
Function
deeppass_scanning
DeepPass2 API call
deeppass2.py:222
Function
hit_api_request
(row)
test/testDeeppass2.py:14
Method
match_pattern
Match a single regex pattern synchronously (runs in a thread pool).
utils/nprules.py:43
Function
preprocess
Extracts tokens from text and applies tokenization.
utils/finetune-BERT-chunked.py:73