<commit_before>#!/bin/bash

{{ #if bind.has_daemon }}
{{ #each bind.daemon.members as |shield| }}
{{ #unless shield.follower }}
SHIELD_ENDPOINT='https://{{shield.sys.ip}}:{{shield.cfg.port}}'
SHIELD_API_TOKEN='{{shield.cfg.provisioning_key}}'
{{ /unless }}
{{~/each}}
{{else}}
SHIELD_ENDPOINT='{{cfg.shield_endpoint}}'
SHIELD_API_TOKEN='{{cfg.provisioning_key}}'
{{ /if }}<commit_msg>Fix shield-agent using bound daemon<commit_after>#!/bin/bash

SHIELD_ENDPOINT='{{cfg.shield_endpoint}}'
SHIELD_API_TOKEN='{{cfg.provisioning_key}}'

{{ #each bind.daemon.members as |shield| }}
{{ #unless shield.follower }}
# Overriding with values found in binding
SHIELD_ENDPOINT='https://{{shield.sys.ip}}:{{shield.cfg.port}}'
SHIELD_API_TOKEN='{{shield.cfg.provisioning_key}}'
{{ /unless }}
{{~/each}}
{'fraction_non_alphanumeric': 0.217005076142132, 'fraction_numerical': 0.0, 'mean_word_length': 7.21875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3379178', 'n_tokens_mistral': 321, 'n_tokens_neox': 294, 'n_words': 40}