Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # So first we have this puzzle
- $ cat all_annotations.json | jq '.notebooks | [.[].order.id | .[]?] | unique | length'
- > 212
- $ cat all_annotations.json | jq '.notebooks | [.[].order.id | .[]?] | length'
- > 212
- $ cat all_annotations.json | jq '.notebooks | map(.annotationCount) | add'
- > 215
- $ cat all_annotations.json | jq -c '.notebooks | map([.annotationCount, .order.id | length]) | .[]'
- > [4,4]
- > [1,1]
- > [2,2]
- > [0,0]
- > [1,1]
- > [2,2]
- > [2,2]
- > [3,3]
- > [2,2]
- > [0,0]
- > [3,4]
- > [33,33]
- > [11,11]
- > [20,16]
- > [1,1]
- > [0,0]
- > [130,130]
- # Okay, let's see if the mismatch is due to our problem or theirs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement