<commit_before>#!/bin/bash
# kibala-create-index.sh
# Initialize elasticsearch instance for kibala index

# Load configuration
source $(dirname $0)/kibala.conf

curl -XPUT $ES_URL/$ES_INDEX -d "{
	\"settings\" : {
		\"index\" : {
			\"number_of_shards\" : ${ELASTICSEARCH_number_of_shards:-3},
			\"number_of_replicas\" : ${ELASTICSEARCH_number_of_replicas:-1}
		}
	},
	\"mappings\": {
		\"Client\": {
			\"properties\": {
				\"ClientName\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				},
				\"ClientUname\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				},
				\"JobName\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				}
			}
		},
		\"Media\": {
			\"properties\": {
				\"VolumeName\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				},
				\"VolBytes\": {
					\"type\": \"byte\"
				}
			}
		}<commit_msg>Fix ES mapping for Media.VolBytes<commit_after>#!/bin/bash
# kibala-create-index.sh
# Initialize elasticsearch instance for kibala index

# Load configuration
source $(dirname $0)/kibala.conf

curl -XPUT $ES_URL/$ES_INDEX -d "{
	\"settings\" : {
		\"index\" : {
			\"number_of_shards\" : ${ELASTICSEARCH_number_of_shards:-3},
			\"number_of_replicas\" : ${ELASTICSEARCH_number_of_replicas:-1}
		}
	},
	\"mappings\": {
		\"Client\": {
			\"properties\": {
				\"ClientName\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				},
				\"ClientUname\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				},
				\"JobName\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				}
			}
		},
		\"Media\": {
			\"properties\": {
				\"VolumeName\": {
					\"type\": \"string\",
					\"index\": \"not_analyzed\"
				}
			}
		}
{'fraction_non_alphanumeric': 0.2418710781517399, 'fraction_numerical': 0.0034227039361095267, 'mean_word_length': 2.2723880597014925, 'pattern_counts': {'":': 36, '<': 3, '<?xml version=': 0, '>': 3, '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': '317567', 'n_tokens_mistral': 800, 'n_tokens_neox': 634, 'n_words': 103}