{"action":"opened","issue":{"url":"https://api.github.com/repos/variety/variety/issues/69","labels_url":"https://api.github.com/repos/variety/variety/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/variety/variety/issues/69/comments","events_url":"https://api.github.com/repos/variety/variety/issues/69/events","html_url":"https://github.com/variety/variety/issues/69","id":58061020,"number":69,"title":"Wrong precentage indications?","user":{"login":"oz123","id":1083045,"avatar_url":"https://avatars.githubusercontent.com/u/1083045?v=3","gravatar_id":"","url":"https://api.github.com/users/oz123","html_url":"https://github.com/oz123","followers_url":"https://api.github.com/users/oz123/followers","following_url":"https://api.github.com/users/oz123/following{/other_user}","gists_url":"https://api.github.com/users/oz123/gists{/gist_id}","starred_url":"https://api.github.com/users/oz123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oz123/subscriptions","organizations_url":"https://api.github.com/users/oz123/orgs","repos_url":"https://api.github.com/users/oz123/repos","events_url":"https://api.github.com/users/oz123/events{/privacy}","received_events_url":"https://api.github.com/users/oz123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-18T12:21:18Z","updated_at":"2015-02-18T12:21:18Z","closed_at":null,"body":"Sometime variety would out put stuff like this:\r\n````\r\n[66] oti@core-dev:~/Software/variety  [master]  $ /srv/mongodb/bin/mongo  --eval \"var db_name = 'client'; var collection = 'rules'\" variety.js\r\nMongoDB shell version: 2.6.4\r\nconnecting to: test\r\nVariety: A MongoDB Schema Analyzer\r\nVersion 1.4.1, released 14 Oct 2014\r\nUsing query of { }\r\nUsing limit of 84\r\nUsing maxDepth of 99\r\nUsing sort of { \"_id\" : -1 }\r\nUsing outputFormat of ascii\r\nUsing persistResults of false\r\nremoving leaf arrays in results collection, and getting percentages\r\n+----------------------------------------------------------------------------------------------+\r\n| key                                      | types          | occurrences | percents           |\r\n| ---------------------------------------- | -------------- | ----------- | ------------------ |\r\n| rules.XX.filter                          | Object         | 5907        | 7032.142857142857  |\r\n| rules.XX.filter.account                  | String         | 5907        | 7032.142857142857  |\r\n| rules.XX.modify                          | Object         | 5907        | 7032.142857142857  |\r\n| rules.XX.name                            | String         | 5907        | 7032.142857142857  |\r\n| rules.XX.modify.channel                  | String         | 5012        | 5966.666666666666  |\r\n| rules.XX.modify.sub_channel              | String         | 5012        | 5966.666666666666  |\r\n| rules.XX.modify.sub2_channel             | String         | 4976        | 5923.809523809524  |\r\n| rules.XX.modify.top_channel              | String         | 4592        | 5466.666666666666  |\r\n| rules.XX.filter.channel                  | String         | 4278        | 5092.857142857143  |\r\n| rules.XX.filter.campaign                 | String         | 3816        | 4542.857142857143  |\r\n| rules.XX.modify.paid_performance_channel | Boolean,String | 1987        | 2365.4761904761904 |\r\n| rules.XX.modify.exclude                  | Boolean        | 1164        | 1385.7142857142858 |\r\n| rules.XX.modify.sea_brand                | String,Boolean | 567         | 675                |\r\n| rules.XX.modify.cpc                      | Number         | 476         | 566.6666666666667  |\r\n| rules.XX.modify.cost                     | Number         | 281         | 334.5238095238095  |\r\n| rules.XX.modify.campaignId               | String         | 168         | 200                |\r\n| rules.XX.modify.crr                      | Number         | 159         | 189.28571428571428 |\r\n| _id                                      | ObjectId       | 84          | 100                |\r\n| author                                   | String         | 84          | 100                |\r\n| rules                                    | Array          | 84          | 100                |\r\n| date                                     | String         | 27          | 32.142857142857146 |\r\n| rules.XX.modify.sea_brand_non_brand      | Boolean        | 4           | 4.761904761904762  |\r\n+----------------------------------------------------------------------------------------------+\r\n```\r\n\r\nThis is true for values inside arrays. Notice here the rules.XX.modify is appearing 5907 times in 84 records? This is exactly `5907/84*100=7032.14285714285`."}}