Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
Sort and get top results in for public suffix, mime-type counts
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Aug 20, 2014
1 parent 5fedf37 commit c7ab663
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/aggregate/analysis.sh
Expand Up @@ -62,7 +62,7 @@ def nullFalllbackEmptyObject:
def mangleUrl:
{
domains: .domain.value | keyCounterObjectTopOneHundred | keyCounterObjectMinimumTwo | nullFalllbackEmptyObject | keyCounterObjectSortByValueDesc | nullFalllbackEmptyObject,
"public-suffixes": .domain."public-suffixes" | nullFalllbackEmptyObject,
"public-suffixes": .domain."public-suffixes" | keyCounterObjectSortByValueDesc | nullFalllbackEmptyObject,
"primary-domain": .domain."primary-domain" | keyCounterObjectTopOneHundred | keyCounterObjectMinimumTwo | nullFalllbackEmptyObject | keyCounterObjectSortByValueDesc | nullFalllbackEmptyObject,
};
Expand Down Expand Up @@ -119,12 +119,12 @@ def mangleShared:
{
counts: {
"kinds-resource": {
types: ."mime-type".types,
groups: ."mime-type".groups
types: (."mime-type".types | keyCounterObjectTopOneHundred | keyCounterObjectSortByValueDesc | nullFalllbackEmptyObject),
groups: (."mime-type".groups | keyCounterObjectTopOneHundred | keyCounterObjectSortByValueDesc | nullFalllbackEmptyObject)
},
"request-status": {
codes: .status.codes,
groups: .status.groups
codes: (.status.codes | keyCounterObjectTopOneHundred | keyCounterObjectSortByValueDesc | nullFalllbackEmptyObject),
groups: (.status.groups | keyCounterObjectTopOneHundred | keyCounterObjectSortByValueDesc | nullFalllbackEmptyObject)
},
classification: {
"is-same-domain": .classification.isSameDomain,
Expand Down

0 comments on commit c7ab663

Please sign in to comment.