Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # So first we have this puzzle
  2. $ cat all_annotations.json | jq '.notebooks | [.[].order.id | .[]?] | unique | length'
  3. > 212
  4. $ cat all_annotations.json | jq '.notebooks | [.[].order.id | .[]?] | length'
  5. > 212
  6. $ cat all_annotations.json | jq '.notebooks | map(.annotationCount) | add'
  7. > 215
  8. $ cat all_annotations.json | jq -c '.notebooks | map([.annotationCount, .order.id | length]) | .[]'
  9. > [4,4]
  10. > [1,1]
  11. > [2,2]
  12. > [0,0]
  13. > [1,1]
  14. > [2,2]
  15. > [2,2]
  16. > [3,3]
  17. > [2,2]
  18. > [0,0]
  19. > [3,4]
  20. > [33,33]
  21. > [11,11]
  22. > [20,16]
  23. > [1,1]
  24. > [0,0]
  25. > [130,130]
  26. # Okay, let's see if the mismatch is due to our problem or theirs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement