<commit_before><%- @filebeat_config['filebeat']['spool_size'] = Integer(@filebeat_config['filebeat']['spool_size']) -%>
<%- if @filebeat_config['output']['file'] -%>
<%- if @filebeat_config['output']['file']['rotate_every_kb'] -%>
<%- @filebeat_config['output']['file']['rotate_every_kb'] = Integer(@filebeat_config['output']['file']['rotate_every_kb']) -%>
<%- end -%>
<%- if @filebeat_config['output']['file']['number_of_files'] -%>
<%- @filebeat_config['output']['file']['number_of_files'] = Integer(@filebeat_config['output']['file']['number_of_files']) -%>
<%- end -%>
<%- end -%>
<%- if @filebeat_config['output']['logstash'] -%>
<%- if @filebeat_config['output']['logstash']['bulk_max_size'] -%>
<%- @filebeat_config['output']['logstash']['bulk_max_size'] = Integer(@filebeat_config['output']['logstash']['bulk_max_size']) -%>
<%- end -%>
<%- end -%>
<%- if @filebeat_config['shipper'] -%>
<%- if @filebeat_config['shipper']['refresh_topology_freq'] -%>
<%- @filebeat_config['shipper']['refresh_topology_freq'] = Integer(@filebeat_config['shipper']['refresh_topology_freq']) -%>
<%- end -%>
<%- if @filebeat_config['shipper']['topology_expire'] -%>
<%- @filebeat_config['shipper']['topology_expire'] = Integer(@filebeat_config['shipper']['topology_expire']) -%>
<%- end -%>
<%- if @filebeat_config['shipper']['queue_size'] -%><commit_msg>Ensure that ports are treated as integers<commit_after><%- @filebeat_config['filebeat']['spool_size'] = Integer(@filebeat_config['filebeat']['spool_size']) -%>
<%- if @filebeat_config['output']['file'] -%>
<%- if @filebeat_config['output']['file']['rotate_every_kb'] -%>
<%- @filebeat_config['output']['file']['rotate_every_kb'] = Integer(@filebeat_config['output']['file']['rotate_every_kb']) -%>
<%- end -%>
<%- if @filebeat_config['output']['file']['number_of_files'] -%>
<%- @filebeat_config['output']['file']['number_of_files'] = Integer(@filebeat_config['output']['file']['number_of_files']) -%>
<%- end -%>
<%- end -%>
<%- if @filebeat_config['output']['elasticsearch'] -%>
<%- if @filebeat_config['output']['elasticsearch']['port'] != nil -%>
<%- @filebeat_config['output']['elasticsearch']['port'] = Integer(@filebeat_config['output']['elasticsearch']['port']) -%>
<%- end -%>
<%- end -%>
<%- if @filebeat_config['output']['logstash'] -%>
<%- if @filebeat_config['output']['logstash']['bulk_max_size'] -%>
<%- @filebeat_config['output']['logstash']['bulk_max_size'] = Integer(@filebeat_config['output']['logstash']['bulk_max_size']) -%>
<%- end -%>
<%- if @filebeat_config['output']['logstash']['port'] != nil -%>
<%- @filebeat_config['output']['logstash']['port'] = Integer(@filebeat_config['output']['logstash']['port']) -%>
<%- end -%>
<%- end -%>
<%- if @filebeat_config['output']['redis'] -%>
<%- if @filebeat_config['output']['redis']['port'] != nil -%>
<%- @filebeat_config['output']['redis']['port'] = Integer(@filebeat_config['output']['redis']['port']) -%>
<%- end -%>
<%- end -%>
<%- if @filebeat_config['shipper'] -%>
<%- if @filebeat_config['shipper']['refresh_topology_freq'] -%>
<%- @filebeat_config['shipper']['refresh_topology_freq'] = Integer(@filebeat_config['shipper']['refresh_topology_freq']) -%>
<%- end -%>
<%- if @filebeat_config['shipper']['topology_expire'] -%>
<%- @filebeat_config['shipper']['topology_expire'] = Integer(@filebeat_config['shipper']['topology_expire']) -%>
<%- end -%>
<%- if @filebeat_config['shipper']['queue_size'] -%>
{'fraction_non_alphanumeric': 0.28538011695906434, 'fraction_numerical': 0.0, 'mean_word_length': 8.802292263610315, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 60, 'https://': 0, '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': '7527677', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1217, 'n_words': 106}