Skip to content

Instantly share code, notes, and snippets.

@aaronbassett
Last active September 29, 2020 22:47
Show Gist options
  • Save aaronbassett/d4e0c8d79cbfb61300057831011e7865 to your computer and use it in GitHub Desktop.
Save aaronbassett/d4e0c8d79cbfb61300057831011e7865 to your computer and use it in GitHub Desktop.
[
{ "Number of Headers": 9, "Count": 850456 },
{ "Number of Headers": 7, "Count": 646445 },
{ "Number of Headers": 8, "Count": 625424 },
{ "Number of Headers": 11, "Count": 621524 },
{ "Number of Headers": 10, "Count": 577927 },
{ "Number of Headers": 6, "Count": 498719 },
{ "Number of Headers": 5, "Count": 472418 },
{ "Number of Headers": 15, "Count": 408587 },
{ "Number of Headers": 14, "Count": 401035 },
{ "Number of Headers": 4, "Count": 396752 },
{ "Number of Headers": 12, "Count": 363256 },
{ "Number of Headers": 13, "Count": 344801 },
{ "Number of Headers": 3, "Count": 167771 },
{ "Number of Headers": 16, "Count": 140153 },
{ "Number of Headers": 17, "Count": 113924 },
{ "Number of Headers": 2, "Count": 111962 },
{ "Number of Headers": 21, "Count": 78980 },
{ "Number of Headers": 32, "Count": 78424 },
{ "Number of Headers": 18, "Count": 75854 },
{ "Number of Headers": 22, "Count": 73709 },
{ "Number of Headers": 19, "Count": 63113 },
{ "Number of Headers": 20, "Count": 42375 },
{ "Number of Headers": 24, "Count": 31224 },
{ "Number of Headers": 23, "Count": 28577 },
{ "Number of Headers": 25, "Count": 12401 },
{ "Number of Headers": 26, "Count": 12090 },
{ "Number of Headers": 28, "Count": 8343 },
{ "Number of Headers": 27, "Count": 7988 },
{ "Number of Headers": 33, "Count": 5954 },
{ "Number of Headers": 31, "Count": 4473 },
{ "Number of Headers": 29, "Count": 3102 },
{ "Number of Headers": 30, "Count": 2605 },
{ "Number of Headers": 1, "Count": 2014 },
{ "Number of Headers": 0, "Count": 842 },
{ "Number of Headers": 35, "Count": 85 },
{ "Number of Headers": 34, "Count": 84 },
{ "Number of Headers": 36, "Count": 57 },
{ "Number of Headers": 37, "Count": 51 },
{ "Number of Headers": 38, "Count": 39 },
{ "Number of Headers": 39, "Count": 25 },
{ "Number of Headers": 53, "Count": 22 },
{ "Number of Headers": 52, "Count": 15 },
{ "Number of Headers": 62, "Count": 9 },
{ "Number of Headers": 61, "Count": 8 },
{ "Number of Headers": 46, "Count": 6 },
{ "Number of Headers": 50, "Count": 6 },
{ "Number of Headers": 42, "Count": 3 },
{ "Number of Headers": 57, "Count": 3 },
{ "Number of Headers": 56, "Count": 2 },
{ "Number of Headers": 55, "Count": 2 },
{ "Number of Headers": 43, "Count": 2 },
{ "Number of Headers": 51, "Count": 2 },
{ "Number of Headers": 41, "Count": 2 },
{ "Number of Headers": 81, "Count": 2 },
{ "Number of Headers": 47, "Count": 2 },
{ "Number of Headers": 48, "Count": 1 },
{ "Number of Headers": 137, "Count": 1 },
{ "Number of Headers": 80, "Count": 1 },
{ "Number of Headers": 54, "Count": 1 },
{ "Number of Headers": 75, "Count": 1 },
{ "Number of Headers": 44, "Count": 1 },
{ "Number of Headers": 59, "Count": 1 },
{ "Number of Headers": 58, "Count": 1 },
{ "Number of Headers": 84, "Count": 1 },
{ "Number of Headers": 45, "Count": 1 }
]
aggregations = [
{'$match': {'completed': True}},
{'$sample': { 'size': 100000 } },
{'$project': {
'domain': 1,
'headerKeys': { '$objectToArray': "$headers"}
}},
{'$unwind': '$headerKeys'},
{'$project': {
'headerKeys.v': 1,
'headerLength': {'$strLenBytes': "$headerKeys.v"}
}},
{'$bucketAuto':{
'groupBy': "$headerLength",
'buckets': 10
}}
]
[
{ "_id": { "max": 5, "min": 0 }, "count": 152917 },
{ "_id": { "max": 8, "min": 5 }, "count": 145010 },
{ "_id": { "max": 11, "min": 8 }, "count": 115430 },
{ "_id": { "max": 17, "min": 11 }, "count": 102463 },
{ "_id": { "max": 25, "min": 17 }, "count": 131001 },
{ "_id": { "max": 30, "min": 25 }, "count": 180202 },
{ "_id": { "max": 63, "min": 30 }, "count": 105275 },
{ "_id": { "max": 15395, "min": 63 }, "count": 89783 }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment