mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 09:13:04 +01:00
Merge remote-tracking branch 'refs/remotes/origin/master'
This commit is contained in:
@@ -91,7 +91,7 @@ def joins_for_projects(basetables, external_info):
|
||||
e.project_id = hash.hash_unique((repoUri+extra).encode())
|
||||
else:
|
||||
repoUri = "unknown"
|
||||
|
||||
|
||||
res = pd.DataFrame(data={
|
||||
"id" : e.project_id,
|
||||
"project_name" : repoUri,
|
||||
|
||||
@@ -56,6 +56,8 @@ def _signature_dict(args, elem, context: Context):
|
||||
if args.typedef_signatures:
|
||||
# Give every unique struct a name and use a reference to it as value.
|
||||
if signature not in context.sig_to_typedef:
|
||||
#cannot have leading 0 hashes later in table joins so replace now
|
||||
#context.sig_to_typedef[signature] = str("Struct%04d" % shorthash(signature)).replace("0", "1")
|
||||
context.sig_to_typedef[signature] = "Struct%04d" % shorthash(signature)
|
||||
typedef = context.sig_to_typedef[signature]
|
||||
return typedef
|
||||
@@ -82,6 +84,8 @@ def _signature_list(args, elem, context):
|
||||
if args.typedef_signatures:
|
||||
# Give every unique array a name and use a reference to it as value.
|
||||
if signature not in context.sig_to_typedef:
|
||||
#cannot have leading 0 hashes later in table joins so replace now
|
||||
#context.sig_to_typedef[signature] = str("Array%04d" % shorthash(signature)).replace("0", "1")
|
||||
context.sig_to_typedef[signature] = "Array%04d" % shorthash(signature)
|
||||
typedef = context.sig_to_typedef[signature]
|
||||
return typedef
|
||||
|
||||
@@ -115,6 +115,8 @@ def joins_for_problem(tgraph, af_0350_location):
|
||||
#
|
||||
# Form the message dataframe (@kind problem) via joins
|
||||
#
|
||||
import IPython
|
||||
IPython.embed(header="spot 1")
|
||||
|
||||
kind_problem_1 = (
|
||||
aft(6343)
|
||||
|
||||
Reference in New Issue
Block a user