Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 70 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. def words: map(.content? | [match("\\b[a-zA-Z0-9]+\\b"; "g")] | length) | add;
  2. def mews: map(.content? | [match("\\bmew\\b"; "ig")] | length) | add;
  3. def containing_mews: map(select(.content? | test("\\bmew\\b"; "i"))) | length;
  4.  
  5. [.orderedItems[].object] as $all
  6.  
  7. | $all
  8. | map(select((.published? | fromdate) < ("2018-08-02T00:00:00Z" | fromdate)))
  9. | words as $words_before_jess
  10. | mews as $mews_before_jess
  11. | ($mews_before_jess / $words_before_jess * 100) as $percent_mews_before_jess
  12. | length as $toots_before_jess
  13. | containing_mews as $containing_mews_before_jess
  14. | ($containing_mews_before_jess / $toots_before_jess * 100) as $percent_containing_mews_before_jess
  15.  
  16. | $all
  17. | map(select((.published? | fromdate) >= ("2018-08-02T00:00:00Z" | fromdate)))
  18. | words as $words_since_jess
  19. | mews as $mews_since_jess
  20. | ($mews_since_jess / $words_since_jess * 100) as $percent_mews_since_jess
  21. | length as $toots_since_jess
  22. | containing_mews as $containing_mews_since_jess
  23. | ($containing_mews_since_jess / $toots_since_jess * 100) as $percent_containing_mews_since_jess
  24.  
  25. | ($percent_mews_since_jess / $percent_mews_before_jess * 100) as $percent_mews_increase_percent
  26. | ($percent_containing_mews_since_jess / $percent_containing_mews_before_jess * 100) as $percent_containing_mews_increase_percent
  27.  
  28. | {
  29.       "words_before_jess": $words_before_jess,
  30.       "mews_before_jess": $mews_before_jess,
  31.       "percent_mews_before_jess": $percent_mews_before_jess,
  32.       "toots_before_jess": $toots_before_jess,
  33.       "containing_mews_before_jess": $containing_mews_before_jess,
  34.       "percent_containing_mews_before_jess": $percent_containing_mews_before_jess,
  35.  
  36.       "words_since_jess": $words_since_jess,
  37.       "mews_since_jess": $mews_since_jess,
  38.       "percent_mews_since_jess": $percent_mews_since_jess,
  39.       "toots_since_jess": $toots_since_jess,
  40.       "containing_mews": $containing_mews_since_jess,
  41.       "percent_containing_mews_since_jess": $percent_containing_mews_since_jess,
  42.  
  43.       "percent_mews_increase_percent": $percent_mews_increase_percent,
  44.       "percent_containing_mews_increase_percent": $percent_containing_mews_increase_percent,
  45.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top