<commit_before>curl 'http://localhost:9200/_cat/indices?v'

curl 'localhost:9200/ubirch-avatar-state/_mapping/?pretty' > ubirch-avatar-state.json
curl 'localhost:9200/ubirch-device-raw-data/_mapping/?pretty' > ubirch-device-raw-mappings.json
curl 'localhost:9200/ubirch-device-history/_mapping/?pretty' > ubirch-device-history-mappings.json
curl 'localhost:9200/ubirch-device-raw-data-anchored/_mapping/?pretty' > ubirch-device-raw-anchored.json
curl 'localhost:9200/ubirch-devices/_mapping/?pretty' > ubirch-device-raw-anchored.json
curl 'localhost:9200/ubirch-device-state/_mapping/?pretty' > ubirch-device-state.json
curl 'localhost:9200/ubirch-device-type/_mapping/?pretty' > ubirch-device-type.json

curl -XDELETE http://localhost:9200/ubirch-device-history

curl 'localhost:9200/ubirch-device-raw-data/devicemessage/_search?pretty&size=100' > ubirch-device-raw-test.json

curl 'localhost:9200/ubirch-device-raw-data/devicemessage/_search?pretty' -d '{
  "from" : 0,
  "size" : 4,
  "query" : {
    "term" : {
      "a": "345112e9-fb88-4621-b229-2902993cb364"
    }
  },
  "sort" : [
    { "ts" : {"order" : "desc"}}
  ]
}'<commit_msg>UBI-278: fixed typo<commit_after>curl 'http://localhost:9200/_cat/indices?v'

curl 'localhost:9200/ubirch-avatar-state/_mapping/?pretty' > ubirch-avatar-state.json
curl 'localhost:9200/ubirch-device-raw-data/_mapping/?pretty' > ubirch-device-raw-mappings.json
curl 'localhost:9200/ubirch-device-history/_mapping/?pretty' > ubirch-device-history-mappings.json
curl 'localhost:9200/ubirch-device-raw-data-anchored/_mapping/?pretty' > ubirch-device-raw-anchored.json
curl 'localhost:9200/ubirch-devices/_mapping/?pretty' > ubirch-devices.json
curl 'localhost:9200/ubirch-device-state/_mapping/?pretty' > ubirch-device-state.json
curl 'localhost:9200/ubirch-device-type/_mapping/?pretty' > ubirch-device-type.json

curl -XDELETE http://localhost:9200/ubirch-device-history

curl 'localhost:9200/ubirch-device-raw-data/devicemessage/_search?pretty&size=100' > ubirch-device-raw-test.json

curl 'localhost:9200/ubirch-device-raw-data/devicemessage/_search?pretty' -d '{
  "from" : 0,
  "size" : 4,
  "query" : {
    "term" : {
      "a": "345112e9-fb88-4621-b229-2902993cb364"
    }
  },
  "sort" : [
    { "ts" : {"order" : "desc"}}
  ]
}'
{'fraction_non_alphanumeric': 0.1706244503078276, 'fraction_numerical': 0.06728232189973615, 'mean_word_length': 4.833333333333333, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 19, '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': '4856786', 'n_tokens_mistral': 1015, 'n_tokens_neox': 878, 'n_words': 90}