<commit_before># Notes to self
:source-highlighter: highlightjs

## Merge TLE database information

Current database will receive the updates if `(norad, epoch)` is unique.
[source,sql]
----
ATTACH 'other.sqlite' AS other;
INSERT OR IGNORE INTO tle SELECT * FROM other.tle;
----

<commit_msg>add note using jq to filter observations<commit_after># Notes to self
:source-highlighter: highlightjs

## Merge TLE database information

Current database will receive the updates if `(norad, epoch)` is unique.
[source,sql]
----
ATTACH 'other.sqlite' AS other;
INSERT OR IGNORE INTO tle SELECT * FROM other.tle;
----


## Filter observations to find null values

[source,bash]
----
jq '.[] | if (.ground_station | not) then .id else "x" end' | grep -v '"x"'
----

How to emit *nothing* in the `else` clause?

{'fraction_non_alphanumeric': 0.1285892634207241, 'fraction_numerical': 0.0, 'mean_word_length': 3.950617283950617, 'pattern_counts': {'":': 0, '<': 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': '7187107', 'n_tokens_mistral': 266, 'n_tokens_neox': 253, 'n_words': 101}