MCPcopy Create free account

hub / github.com/DLVulDet/PrimeVul / functions

Functions58 in github.com/DLVulDet/PrimeVul

↓ 5 callersMethod__init__
(self, encoder, config, tokenizer, args)
os_expr/model.py:14
↓ 4 callersFunctioncalculate_metrics
(labels, preds)
os_expr/run_ft.py:360
↓ 4 callersFunctionconvert_examples_to_features
(js,tokenizer,args)
os_expr/run_ft_clr.py:45
↓ 3 callersFunctioncalculate_metrics
(labels, preds)
os_expr/run_ft_clr.py:140
↓ 3 callersFunctionevaluate
(args, accelerator, eval_dataloader, eval_dataset, model, tokenizer, eval_when_training=False)
os_expr/run_ft_accelerator.py:306
↓ 3 callersFunctionevaluate
(args, model, tokenizer,eval_when_training=False)
os_expr/run_ft.py:373
↓ 2 callersFunctioncalculate_metrics
(labels, preds)
os_expr/run_ft_accelerator.py:293
↓ 2 callersFunctionevaluate
(args, model, tokenizer,eval_when_training=False)
os_expr/run_ft_clr.py:358
↓ 2 callersMethodget_t5_vec
(self, source_ids)
os_expr/model.py:149
↓ 2 callersFunctionset_seed
(seed=42)
os_expr/run_ft.py:106
↓ 1 callersFunctionanalyze_predictions
(predictions_path, data_path)
os_expr/run_ft_accelerator.py:365
↓ 1 callersFunctioncalculate_vul_det_score
Calculate the vulnerability detection score (VD-S) given a tolerable FPR. Args: - predictions: List of model prediction probabilitie
calc_vd_score.py:6
↓ 1 callersFunctionconstruct_prompts
(input_file, inst)
openai_expr/run_prompting.py:121
↓ 1 callersFunctionconvert_examples_to_features
(js,tokenizer,args)
os_expr/run_ft_accelerator.py:59
↓ 1 callersFunctionconvert_examples_to_features
(js,tokenizer,args)
os_expr/run_ft.py:64
↓ 1 callersMethodget_bart_vec
(self, source_ids)
os_expr/model.py:164
↓ 1 callersFunctionget_openai_chat
( prompt, args )
openai_expr/run_prompting.py:59
↓ 1 callersMethodget_roberta_vec
(self, source_ids)
os_expr/model.py:177
↓ 1 callersFunctionload_data
Load data from jsonl file
os_expr/run_ft_accelerator.py:357
↓ 1 callersFunctionmain
()
os_expr/run_ft_accelerator.py:513
↓ 1 callersFunctionmain
()
os_expr/run_ft.py:492
↓ 1 callersFunctionmain
()
os_expr/run_ft_clr.py:477
↓ 1 callersFunctionmain
()
openai_expr/run_prompting.py:136
↓ 1 callersFunctionset_seed
(seed=42)
os_expr/run_ft_clr.py:132
↓ 1 callersFunctiontest
(args, accelerator, model, tokenizer)
os_expr/run_ft_accelerator.py:399
↓ 1 callersFunctiontest
(args, model, tokenizer)
os_expr/run_ft.py:432
↓ 1 callersFunctiontest
(args, model, tokenizer)
os_expr/run_ft_clr.py:414
↓ 1 callersFunctiontest_prob
(args, model, tokenizer)
os_expr/run_ft_accelerator.py:470
↓ 1 callersFunctiontrain
Train the model
os_expr/run_ft_accelerator.py:97
↓ 1 callersFunctiontrain
Train the model
os_expr/run_ft.py:115
↓ 1 callersFunctiontrain
Train the model
os_expr/run_ft_clr.py:153
↓ 1 callersFunctiontruncate_tokens_from_messages
Count the number of tokens used by a list of messages, and truncate the messages if the number of tokens exceeds the limit. Reference: h
openai_expr/run_prompting.py:19
Method__getitem__
(self, i)
os_expr/run_ft_accelerator.py:93
Method__getitem__
(self, i)
os_expr/run_ft.py:102
Method__getitem__
(self, i)
os_expr/run_ft_clr.py:91
Method__getitem__
(self, i)
os_expr/run_ft_clr.py:128
Method__init__
(self, input_tokens, input_ids, idx, label
os_expr/run_ft_accelerator.py:46
Method__init__
(self, tokenizer, args, file_path=None)
os_expr/run_ft_accelerator.py:82
Method__init__
(self, input_tokens, input_ids, idx, label
os_expr/run_ft.py:51
Method__init__
(self, tokenizer, args, file_path=None)
os_expr/run_ft.py:84
Method__init__
(self, input_tokens, input_ids, idx, label
os_expr/run_ft_clr.py:32
Method__init__
(self, tokenizer, args, file_path=None)
os_expr/run_ft_clr.py:56
Method__init__
(self, tokenizer, args, file_path=None)
os_expr/run_ft_clr.py:109
Method__init__
(self, temp)
os_expr/model.py:42
Method__init__
(self, encoder,config,tokenizer,args,clr_mask,clr_temp=1.0)
os_expr/model.py:52
Method__init__
(self, encoder, config, tokenizer, args)
os_expr/model.py:128
Method__init__
(self, encoder, config, tokenizer, args)
os_expr/model.py:141
Method__init__
(self, encoder, config, tokenizer, args)
os_expr/model.py:206
Method__len__
(self)
os_expr/run_ft_accelerator.py:90
Method__len__
(self)
os_expr/run_ft.py:99
Method__len__
(self)
os_expr/run_ft_clr.py:88
Method__len__
(self)
os_expr/run_ft_clr.py:125
Methodforward
(self, input_ids=None, labels=None, weight=None)
os_expr/model.py:22
Methodforward
(self, x, y)
os_expr/model.py:47
Methodforward
(self, group_inputs=None,group_labels=None)
os_expr/model.py:63
Methodforward
(self, input_ids=None, labels=None)
os_expr/model.py:131
Methodforward
(self, source_ids=None, labels=None, weight=None)
os_expr/model.py:182
Methodforward
(self, input_ids=None, labels=None, weight=None)
os_expr/model.py:214