Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
erjosito committed Jun 30, 2024
1 parent e0dc590 commit 2180692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/get_service_guides/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_waf_service_guide_recos():
service = service.replace('-', ' ')
service = service.title()
if (len(args_service) == 0) or (service.lower() in args_service_list):
if (args_verbose): print("DEBUG: Service {0} in service guide '{1}' matching input services.".format(service))
if (args_verbose): print("DEBUG: Service {0} in service guide '{1}' matching input services.".format(service, file_path))
svcguide_url = f'https://raw.githubusercontent.com/{github_org}/{github_repo}/main/' + file_path
if (args_verbose): print("DEBUG: Found service guide '{0}' for service '{1}'".format(file_path, service))
# if (args_verbose): print("DEBUG: Retrieving service guide from URL '{0}'...".format(svcguide_url))
Expand Down
8 changes: 4 additions & 4 deletions scripts/merge_waf_checklists.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

# Get input arguments
parser = argparse.ArgumentParser(description='Merge different WAF checklists and removes duplicates')
parser.add_argument('--review_checklist-file', dest='review_checklist_file', action='store',
parser.add_argument('--review-checklist-file', dest='review_checklist_file', action='store',
help='You need to supply the name of the JSON file with the review checklist to be merged')
parser.add_argument('--aprl_checklist-file', dest='aprl_checklist_file', action='store',
parser.add_argument('--aprl-checklist-file', dest='aprl_checklist_file', action='store',
help='You need to supply the name of the JSON file with the APRL checklist to be merged')
parser.add_argument('--sg_checklist-file', dest='sg_checklist_file', action='store',
parser.add_argument('--sg-checklist-file', dest='sg_checklist_file', action='store',
help='You need to supply the name of the JSON file with the Service Guide checklist to be merged')
parser.add_argument('--max-recos', dest='max_recos', action='store',
default=0,
Expand Down Expand Up @@ -63,7 +63,7 @@ def calculate_embeddings(checklist, model):
if 'text' in reco:
embeddings = model.encode(reco['text'])
reco['embeddings'] = embeddings
if args.verbose: print('DEBUG: calculated embeddings for {0}: {1}'.format(reco['text'], str(embeddings)))
# if args.verbose: print('DEBUG: calculated embeddings for {0}: {1}'.format(reco['text'], str(embeddings)))

# texts = [x['text'] for x in checklist['items']]
# text_embeddings = model.encode(texts)
Expand Down

0 comments on commit 2180692

Please sign in to comment.