LCA - StartingPoints (ASE25)
Collection
https://arxiv.org/pdf/2508.02455 • 2 items • Updated
idx int64 2 7.85k | idx_lca int64 0 223 | offset int64 165 54.4k | repo stringclasses 54
values | commit_hash stringclasses 100
values | target_file stringclasses 118
values | line_type_lca stringclasses 6
values | ground_truth stringlengths 1 40 | in_completions bool 1
class | completion_type stringclasses 6
values | non_dunder_count_intellij int64 1 127 | non_dunder_count_jedi int64 1 128 | start_with_ bool 1
class | first_occurrence bool 2
classes | intellij_completions listlengths 1 149 | jedi_completions listlengths 3 148 | prefix stringlengths 165 54.4k | intellij_completions_filtered listlengths 1 123 | prefix_truncated stringlengths 165 1.92k | __index_level_0__ int64 1 5.53k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | 0 | 1,333 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | MergedProjectProfile | true | class | 14 | 19 | false | true | [
"FuzzerProfile",
"List",
"MergedProjectProfile",
"logger",
"None",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | [
{
"name": "add_func_to_reached_and_clone",
"type": "function"
},
{
"name": "Any",
"type": "class"
},
{
"name": "copy",
"type": "module"
},
{
"name": "Dict",
"type": "class"
},
{
"name": "FunctionProfile",
"type": "class"
},
{
"name": "fuzz_cfg_load",
... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"FuzzerProfile",
"List",
"MergedProjectProfile",
"logger",
"None",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 1 |
3 | 0 | 1,409 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | FuzzerProfile | true | class | 14 | 19 | false | true | [
"FuzzerProfile",
"MergedProjectProfile",
"List",
"logger",
"None",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | [
{
"name": "add_func_to_reached_and_clone",
"type": "function"
},
{
"name": "Any",
"type": "class"
},
{
"name": "copy",
"type": "module"
},
{
"name": "Dict",
"type": "class"
},
{
"name": "FunctionProfile",
"type": "class"
},
{
"name": "fuzz_cfg_load",
... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"FuzzerProfile",
"MergedProjectProfile",
"List",
"logger",
"None",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 2 |
5 | 0 | 2,009 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | extract_all_callsites | true | function | 8 | 9 | false | true | [
"extract_all_callsites",
"CalltreeCallsite",
"List",
"logger",
"Optional",
"data_file_read_calltree",
"extract_all_callsites_recursive",
"print_ctcs_tree"
] | [
{
"name": "CalltreeCallsite",
"type": "class"
},
{
"name": "data_file_read_calltree",
"type": "function"
},
{
"name": "extract_all_callsites",
"type": "function"
},
{
"name": "extract_all_callsites_recursive",
"type": "function"
},
{
"name": "List",
"type": "c... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"extract_all_callsites",
"CalltreeCallsite",
"List",
"logger",
"Optional",
"data_file_read_calltree",
"extract_all_callsites_recursive",
"print_ctcs_tree"
] | 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASI... | 4 |
7 | 0 | 2,166 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | demangle_cpp_func | true | function | 13 | 18 | false | true | [
"List",
"logger",
"Optional",
"demangle_cpp_func",
"scan_executables_for_fuzz_introspector_logs",
"data_file_read_yaml",
"get_all_files_in_tree_with_regex",
"get_target_coverage_url",
"longest_common_prefix",
"normalise_str",
"safe_decode",
"Any",
"Dict"
] | [
{
"name": "Any",
"type": "class"
},
{
"name": "cxxfilt",
"type": "module"
},
{
"name": "data_file_read_yaml",
"type": "function"
},
{
"name": "demangle_cpp_func",
"type": "function"
},
{
"name": "Dict",
"type": "class"
},
{
"name": "get_all_files_in_tr... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"List",
"logger",
"Optional",
"demangle_cpp_func",
"scan_executables_for_fuzz_introspector_logs",
"data_file_read_yaml",
"get_all_files_in_tree_with_regex",
"get_target_coverage_url",
"longest_common_prefix",
"normalise_str",
"safe_decode",
"Any",
"Dict"
] | .org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitat... | 5 |
8 | 0 | 2,189 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | dst_function_name | true | statement | 17 | 17 | false | true | [
"depth",
"cov_ct_idx",
"cov_forward_reds",
"cov_largest_blocked_func",
"cov_link",
"children",
"cov_callsite_link",
"cov_color",
"cov_hitcount",
"cov_parent",
"dst_function_name",
"dst_function_source_file",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | [
{
"name": "children",
"type": "statement"
},
{
"name": "cov_callsite_link",
"type": "statement"
},
{
"name": "cov_color",
"type": "statement"
},
{
"name": "cov_ct_idx",
"type": "statement"
},
{
"name": "cov_forward_reds",
"type": "statement"
},
{
"name... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"depth",
"cov_ct_idx",
"cov_forward_reds",
"cov_largest_blocked_func",
"cov_link",
"children",
"cov_callsite_link",
"cov_color",
"cov_hitcount",
"cov_parent",
"dst_function_name",
"dst_function_source_file",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | .0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.... | 6 |
10 | 0 | 2,668 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | random | cov_callsite_link | true | statement | 17 | 17 | false | true | [
"cov_link",
"depth",
"cov_color",
"cov_ct_idx",
"cov_callsite_link",
"children",
"cov_forward_reds",
"cov_hitcount",
"cov_largest_blocked_func",
"cov_parent",
"dst_function_name",
"dst_function_source_file",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | [
{
"name": "children",
"type": "statement"
},
{
"name": "cov_callsite_link",
"type": "statement"
},
{
"name": "cov_color",
"type": "statement"
},
{
"name": "cov_ct_idx",
"type": "statement"
},
{
"name": "cov_forward_reds",
"type": "statement"
},
{
"name... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"cov_link",
"depth",
"cov_color",
"cov_ct_idx",
"cov_callsite_link",
"children",
"cov_forward_reds",
"cov_hitcount",
"cov_largest_blocked_func",
"cov_parent",
"dst_function_name",
"dst_function_source_file",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | z_analysis
import fuzz_data_loader
import fuzz_utils
import fuzz_cfg_load
import fuzz_html_helpers
# For pretty printing the html code:
from bs4 import BeautifulSoup as bs
logger = logging.getLogger(name=__name__)
class FuzzCalltreeAnalysis(fuzz_analysis.AnalysisInterface):
def __init__(self):
self.name... | 8 |
12 | 0 | 2,749 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | infile | create_str_node_ctx_idx | true | function | 7 | 7 | false | true | [
"create_str_node_ctx_idx",
"get_fuzz_blockers",
"name",
"create_fuzz_blocker_table",
"html_create_dedicated_calltree_file",
"__init__",
"analysis_func",
"create_calltree",
"__annotations__",
"__class__",
"__delattr__",
"__dict__",
"__dir__",
"__eq__",
"__format__",
"__getattribute__",
... | [
{
"name": "analysis_func",
"type": "function"
},
{
"name": "create_calltree",
"type": "function"
},
{
"name": "create_fuzz_blocker_table",
"type": "function"
},
{
"name": "create_str_node_ctx_idx",
"type": "function"
},
{
"name": "get_fuzz_blockers",
"type": "... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"create_str_node_ctx_idx",
"get_fuzz_blockers",
"name",
"create_fuzz_blocker_table",
"html_create_dedicated_calltree_file",
"analysis_func",
"create_calltree"
] | fuzz_html_helpers
# For pretty printing the html code:
from bs4 import BeautifulSoup as bs
logger = logging.getLogger(name=__name__)
class FuzzCalltreeAnalysis(fuzz_analysis.AnalysisInterface):
def __init__(self):
self.name = "FuzzCalltreeAnalysis"
logger.info("Creating FuzzCalltreeAnalysis")
... | 10 |
13 | 0 | 2,782 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | infile | cov_ct_idx | true | statement | 17 | 17 | false | true | [
"cov_ct_idx",
"depth",
"dst_function_name",
"cov_forward_reds",
"cov_link",
"children",
"cov_callsite_link",
"cov_color",
"cov_hitcount",
"cov_largest_blocked_func",
"cov_parent",
"dst_function_source_file",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | [
{
"name": "children",
"type": "statement"
},
{
"name": "cov_callsite_link",
"type": "statement"
},
{
"name": "cov_color",
"type": "statement"
},
{
"name": "cov_ct_idx",
"type": "statement"
},
{
"name": "cov_forward_reds",
"type": "statement"
},
{
"name... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"cov_ct_idx",
"depth",
"dst_function_name",
"cov_forward_reds",
"cov_link",
"children",
"cov_callsite_link",
"cov_color",
"cov_hitcount",
"cov_largest_blocked_func",
"cov_parent",
"dst_function_source_file",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | rinting the html code:
from bs4 import BeautifulSoup as bs
logger = logging.getLogger(name=__name__)
class FuzzCalltreeAnalysis(fuzz_analysis.AnalysisInterface):
def __init__(self):
self.name = "FuzzCalltreeAnalysis"
logger.info("Creating FuzzCalltreeAnalysis")
def analysis_func(self,
... | 11 |
28 | 0 | 5,388 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | FuzzerProfile | true | class | 14 | 19 | false | false | [
"FuzzerProfile",
"MergedProjectProfile",
"None",
"List",
"logger",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | [
{
"name": "add_func_to_reached_and_clone",
"type": "function"
},
{
"name": "Any",
"type": "class"
},
{
"name": "copy",
"type": "module"
},
{
"name": "Dict",
"type": "class"
},
{
"name": "FunctionProfile",
"type": "class"
},
{
"name": "fuzz_cfg_load",
... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"FuzzerProfile",
"MergedProjectProfile",
"None",
"List",
"logger",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | " * (int(depth_diff) + 1)
calltree_html_string += closing_divs
calltree_html_string += f"""
<div class="{color_to_be}-background coverage-line">
<span class="coverage-line-inner" data-calltree-idx="{ct_idx_str}">
{node.depth}
<code class="language-cli... | 19 |
29 | 0 | 5,761 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | html_get_header | true | function | 9 | 9 | false | true | [
"html_create_table_head",
"html_table_add_row",
"html_get_header",
"html_get_navbar",
"List",
"html_add_header_with_link",
"html_get_table_of_contents",
"Any",
"Tuple"
] | [
{
"name": "Any",
"type": "class"
},
{
"name": "html_add_header_with_link",
"type": "function"
},
{
"name": "html_create_table_head",
"type": "function"
},
{
"name": "html_get_header",
"type": "function"
},
{
"name": "html_get_navbar",
"type": "function"
},
... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"html_create_table_head",
"html_table_add_row",
"html_get_header",
"html_get_navbar",
"List",
"html_add_header_with_link",
"html_get_table_of_contents",
"Any",
"Tuple"
] | ode>
<span class="coverage-line-filename">
{func_href}
<a href="{callsite_link}">
[call site2]
</a>
<span class="calltree-idx">[calltree idx: {ct_idx_str}]</span>
</span>
</span>
"""
i... | 20 |
32 | 0 | 6,201 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | infile | create_fuzz_blocker_table | true | function | 7 | 7 | false | true | [
"get_fuzz_blockers",
"name",
"create_fuzz_blocker_table",
"create_str_node_ctx_idx",
"html_create_dedicated_calltree_file",
"__init__",
"analysis_func",
"create_calltree",
"__annotations__",
"__class__",
"__delattr__",
"__dict__",
"__dir__",
"__eq__",
"__format__",
"__getattribute__",
... | [
{
"name": "analysis_func",
"type": "function"
},
{
"name": "create_calltree",
"type": "function"
},
{
"name": "create_fuzz_blocker_table",
"type": "function"
},
{
"name": "create_str_node_ctx_idx",
"type": "function"
},
{
"name": "get_fuzz_blockers",
"type": "... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"get_fuzz_blockers",
"name",
"create_fuzz_blocker_table",
"create_str_node_ctx_idx",
"html_create_dedicated_calltree_file",
"analysis_func",
"create_calltree"
] | calltree_html_string += f"""<div
class="calltree-line-wrapper open level-{int(node.depth)}"
style="padding-left: 16px">"""
elif next_node.depth < node.depth:
depth_diff = int(node.depth - next_node.depth)
calltree_html_string += "</div... | 22 |
33 | 0 | 6,814 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | infile | create_str_node_ctx_idx | true | function | 7 | 7 | false | false | [
"get_fuzz_blockers",
"name",
"create_fuzz_blocker_table",
"create_str_node_ctx_idx",
"create_calltree",
"__init__",
"analysis_func",
"html_create_dedicated_calltree_file",
"__annotations__",
"__class__",
"__delattr__",
"__dict__",
"__dir__",
"__eq__",
"__format__",
"__getattribute__",
... | [
{
"name": "analysis_func",
"type": "function"
},
{
"name": "create_calltree",
"type": "function"
},
{
"name": "create_fuzz_blocker_table",
"type": "function"
},
{
"name": "create_str_node_ctx_idx",
"type": "function"
},
{
"name": "get_fuzz_blockers",
"type": "... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"get_fuzz_blockers",
"name",
"create_fuzz_blocker_table",
"create_str_node_ctx_idx",
"create_calltree",
"analysis_func",
"html_create_dedicated_calltree_file"
] | while os.path.isfile(calltree_html_file):
calltree_file_idx += 1
calltree_html_file = f"calltree_view_{calltree_file_idx}.html"
self.html_create_dedicated_calltree_file(
calltree_html_string,
calltree_html_file,
profile,
)
return cal... | 23 |
34 | 0 | 6,847 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | infile | cov_ct_idx | true | statement | 17 | 17 | false | false | [
"cov_ct_idx",
"depth",
"cov_forward_reds",
"dst_function_name",
"dst_function_source_file",
"children",
"cov_callsite_link",
"cov_color",
"cov_hitcount",
"cov_largest_blocked_func",
"cov_link",
"cov_parent",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | [
{
"name": "children",
"type": "statement"
},
{
"name": "cov_callsite_link",
"type": "statement"
},
{
"name": "cov_color",
"type": "statement"
},
{
"name": "cov_ct_idx",
"type": "statement"
},
{
"name": "cov_forward_reds",
"type": "statement"
},
{
"name... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"cov_ct_idx",
"depth",
"cov_forward_reds",
"dst_function_name",
"dst_function_source_file",
"children",
"cov_callsite_link",
"cov_color",
"cov_hitcount",
"cov_largest_blocked_func",
"cov_link",
"cov_parent",
"hitcount",
"parent_calltree_callsite",
"src_function_name",
"src_function_sou... | tml_file):
calltree_file_idx += 1
calltree_html_file = f"calltree_view_{calltree_file_idx}.html"
self.html_create_dedicated_calltree_file(
calltree_html_string,
calltree_html_file,
profile,
)
return calltree_html_file
def html_cre... | 24 |
35 | 0 | 7,754 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | FuzzerProfile | true | class | 14 | 19 | false | false | [
"FuzzerProfile",
"MergedProjectProfile",
"List",
"None",
"logger",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | [
{
"name": "add_func_to_reached_and_clone",
"type": "function"
},
{
"name": "Any",
"type": "class"
},
{
"name": "copy",
"type": "module"
},
{
"name": "Dict",
"type": "class"
},
{
"name": "FunctionProfile",
"type": "class"
},
{
"name": "fuzz_cfg_load",
... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"FuzzerProfile",
"MergedProjectProfile",
"List",
"None",
"logger",
"add_func_to_reached_and_clone",
"FunctionProfile",
"load_all_profiles",
"read_fuzzer_data_file_to_profile",
"Any",
"Dict",
"Optional",
"Set",
"Tuple"
] | ospector: { profile.get_key() }"
)
html_header += '<div class="content-section calltree-content-section">'
complete_html_string += html_header
# Display fuzz blocker at top of page
fuzz_blockers = self.get_fuzz_blockers(
profile,
max_blockers_to_extract=1... | 25 |
36 | 0 | 7,895 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | CalltreeCallsite | true | class | 9 | 9 | false | true | [
"extract_all_callsites",
"List",
"None",
"logger",
"Optional",
"CalltreeCallsite",
"data_file_read_calltree",
"extract_all_callsites_recursive",
"print_ctcs_tree"
] | [
{
"name": "CalltreeCallsite",
"type": "class"
},
{
"name": "data_file_read_calltree",
"type": "function"
},
{
"name": "extract_all_callsites",
"type": "function"
},
{
"name": "extract_all_callsites_recursive",
"type": "function"
},
{
"name": "List",
"type": "c... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"extract_all_callsites",
"List",
"None",
"logger",
"Optional",
"CalltreeCallsite",
"data_file_read_calltree",
"extract_all_callsites_recursive",
"print_ctcs_tree"
] | tml_string += html_header
# Display fuzz blocker at top of page
fuzz_blockers = self.get_fuzz_blockers(
profile,
max_blockers_to_extract=12
)
fuzz_blocker_table = self.create_fuzz_blocker_table(profile, [], "", fuzz_blockers)
if fuzz_blocker_table is not... | 26 |
37 | 0 | 8,028 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | extract_all_callsites | true | function | 8 | 9 | false | false | [
"extract_all_callsites",
"CalltreeCallsite",
"List",
"logger",
"extract_all_callsites_recursive",
"data_file_read_calltree",
"print_ctcs_tree",
"Optional"
] | [
{
"name": "CalltreeCallsite",
"type": "class"
},
{
"name": "data_file_read_calltree",
"type": "function"
},
{
"name": "extract_all_callsites",
"type": "function"
},
{
"name": "extract_all_callsites_recursive",
"type": "function"
},
{
"name": "List",
"type": "c... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"extract_all_callsites",
"CalltreeCallsite",
"List",
"logger",
"extract_all_callsites_recursive",
"data_file_read_calltree",
"print_ctcs_tree",
"Optional"
] | profile,
max_blockers_to_extract=12
)
fuzz_blocker_table = self.create_fuzz_blocker_table(profile, [], "", fuzz_blockers)
if fuzz_blocker_table is not None:
complete_html_string += "<div class=\"report-box\">"
complete_html_string += "<h1>Fuzz blockers</h1>"
... | 27 |
41 | 0 | 9,121 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | infile | get_fuzz_blockers | true | function | 7 | 7 | false | false | [
"get_fuzz_blockers",
"create_fuzz_blocker_table",
"name",
"create_str_node_ctx_idx",
"html_create_dedicated_calltree_file",
"__init__",
"analysis_func",
"create_calltree",
"__annotations__",
"__class__",
"__delattr__",
"__dict__",
"__dir__",
"__eq__",
"__format__",
"__getattribute__",
... | [
{
"name": "analysis_func",
"type": "function"
},
{
"name": "create_calltree",
"type": "function"
},
{
"name": "create_fuzz_blocker_table",
"type": "function"
},
{
"name": "create_str_node_ctx_idx",
"type": "function"
},
{
"name": "get_fuzz_blockers",
"type": "... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"get_fuzz_blockers",
"create_fuzz_blocker_table",
"name",
"create_str_node_ctx_idx",
"html_create_dedicated_calltree_file",
"analysis_func",
"create_calltree"
] | ee.js\"></script>"
complete_html_string += html_end
complete_html_string += "</body></html>"
# Beautify and write HTML
soup = bs(complete_html_string, 'lxml')
pretty_html = soup.prettify()
with open(filename, "w+") as cf:
cf.write(pretty_html)
def creat... | 30 |
42 | 0 | 9,537 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | html_create_table_head | true | function | 9 | 9 | false | true | [
"html_table_add_row",
"html_get_header",
"html_create_table_head",
"html_get_table_of_contents",
"html_get_navbar",
"html_add_header_with_link",
"Any",
"List",
"Tuple"
] | [
{
"name": "Any",
"type": "class"
},
{
"name": "html_add_header_with_link",
"type": "function"
},
{
"name": "html_create_table_head",
"type": "function"
},
{
"name": "html_get_header",
"type": "function"
},
{
"name": "html_get_navbar",
"type": "function"
},
... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"html_table_add_row",
"html_get_header",
"html_create_table_head",
"html_get_table_of_contents",
"html_get_navbar",
"html_add_header_with_link",
"Any",
"List",
"Tuple"
] | idx))
return f"{prefixed_zeros}{cov_ct_idx}"
def get_fuzz_blockers(
self,
profile: fuzz_data_loader.FuzzerProfile,
max_blockers_to_extract=999):
"""Gets a list of fuzz blockers"""
blocker_list: List[fuzz_cfg_load.CalltreeCallsite] = list()
# Extr... | 31 |
45 | 0 | 10,653 | ossf__fuzz-introspector | 4867924b714a7789f94fbcde53713a29ceab7272 | post-processing/analyses/fuzz_calltree_analysis.py | inproject | html_table_add_row | true | function | 9 | 9 | false | true | [
"html_create_table_head",
"html_get_header",
"List",
"html_get_table_of_contents",
"html_table_add_row",
"html_add_header_with_link",
"html_get_navbar",
"Any",
"Tuple"
] | [
{
"name": "Any",
"type": "class"
},
{
"name": "html_add_header_with_link",
"type": "function"
},
{
"name": "html_create_table_head",
"type": "function"
},
{
"name": "html_get_header",
"type": "function"
},
{
"name": "html_get_navbar",
"type": "function"
},
... | # Copyright 2022 Fuzz Introspector Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"html_create_table_head",
"html_get_header",
"List",
"html_get_table_of_contents",
"html_table_add_row",
"html_add_header_with_link",
"html_get_navbar",
"Any",
"Tuple"
] | : fuzz_data_loader.FuzzerProfile,
tables: List[str],
calltree_file_name: str,
fuzz_blockers=None) -> Optional[str]:
"""
Creates HTML string for table showing fuzz blockers.
"""
logger.info("Creating fuzz blocker table")
# Get the fuzz blockers... | 34 |
64 | 1 | 4,330 | vanheeringen-lab__seq2science | d5ff9782c8f6c4cd989f74684154c508b7c65127 | docs/scripts/clean_dags.py | infile | type | true | statement | 17 | 16 | false | true | [
"edges",
"nodes",
"label2id",
"name",
"type",
"__init__",
"_get_node_id",
"_order_edges",
"color_node",
"edge_style",
"graph_style",
"hide_node",
"node_style",
"remove_edge",
"remove_node",
"transitive_reduction",
"write",
"for",
"__annotations__",
"__class__",
"__delattr__",... | [
{
"name": "color_node",
"type": "function"
},
{
"name": "edge_style",
"type": "statement"
},
{
"name": "edges",
"type": "statement"
},
{
"name": "graph_style",
"type": "statement"
},
{
"name": "hide_node",
"type": "function"
},
{
"name": "label2id",
... | import re
import networkx as nx
rules_to_keep = {
# "0.13 0.6 0.85", # yellow
# "0.09 0.6 0.85", # brown
# "0.28 0.6 0.85", # green
# "0.04 0.6 0.85", # red
# "0.00 0.6 0.85", # cherry
# "0.63 0.6 0.85", # purple
# "0.59 0.6 0.85", # dark blue
# "0.58 0.6 0.85", # blue
# "0.... | [
"edges",
"nodes",
"label2id",
"name",
"type",
"color_node",
"edge_style",
"graph_style",
"hide_node",
"node_style",
"remove_edge",
"remove_node",
"transitive_reduction",
"write",
"for"
] | 8 0.6 0.85", # green
"deseq2": "0.28 0.6 0.85", # green
"dexseq_count_matrix": "0.28 0.6 0.85", # green
}
class Digraph:
def __init__(self, infile):
with open(infile) as f:
lines = f.readlines()
self.type, self.name = lines[0].split()[0:2]
self.graph_style = lines[1]... | 45 |