Skip to content

Commit

Permalink
Merge branch 'ossf:main' into add-mypy-pyright-webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurscchan authored Jun 13, 2024
2 parents 312c8a7 + 3c1d139 commit 10a494b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/web-fuzzing-introspection/app/webapp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(self,
self.is_jvm_library = is_jvm_library
self.is_enum_class = is_enum_class

def __dict__(self):
def to_dict(self):
return {
'function_name': self.name,
'function_arguments': self.function_arguments,
Expand Down
3 changes: 2 additions & 1 deletion tools/web-fuzzing-introspection/app/webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ def oracle_1(all_functions, all_projects, max_project_count=5):
and function.accummulated_cyclomatic_complexity > 30):

to_continue = False

for proj in all_projects:
if proj.name == function.project and proj.language in {
'c', 'c++'
Expand Down Expand Up @@ -1503,7 +1504,7 @@ def api_all_interesting_function_targets():
# Rewrite list
list_of_targets = []
for func, heuristic_name in functions_to_display:
dict_to_use = func.__dict__()
dict_to_use = func.to_dict()

list_of_targets.append({
'function_target': dict_to_use,
Expand Down

0 comments on commit 10a494b

Please sign in to comment.