{"action":"created","comment":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/193651273","pull_request_review_id":126663362,"id":193651273,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzY1MTI3Mw==","diff_hunk":"@@ -0,0 +1,189 @@\n+import os\n+import json\n+\n+import requests\n+from django.http import HttpResponse\n+\n+from loop_ivr.outliers.removal import remove_crop_outliers\n+from loop_ivr.helper_function import run_query\n+from loop_ivr.utils.marketinfo import get_query\n+\n+from mi_data_structure import *\n+from loop.models import *\n+import pandas as pd\n+from tastypie.models import ApiKey\n+from crop_price_structure import *\n+from loop.utils.mi_pilot_var import mandi_list, agg_list\n+\n+fileDir = os.path.dirname(os.path.realpath('__file__'))\n+\n+def get_aggregator_mi_related_data(request):\n+    ","path":"loop/mi_views.py","position":21,"original_position":21,"commit_id":"5c543945d604d87ab66f66abee72ca8386e286a2","original_commit_id":"5c543945d604d87ab66f66abee72ca8386e286a2","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Trailing whitespace](https://app.codacy.com/app/alodha21051992/dg/pullRequest?prid=1748786)","created_at":"2018-06-07T07:36:55Z","updated_at":"2018-06-07T07:36:55Z","html_url":"https://github.com/digitalgreenorg/dg/pull/931#discussion_r193651273","pull_request_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/193651273"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/931#discussion_r193651273"},"pull_request":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931"}}},"pull_request":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931","id":193226823,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMjI2ODIz","html_url":"https://github.com/digitalgreenorg/dg/pull/931","diff_url":"https://github.com/digitalgreenorg/dg/pull/931.diff","patch_url":"https://github.com/digitalgreenorg/dg/pull/931.patch","issue_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/931","number":931,"state":"open","locked":false,"title":"Loop mi v5 pilot","user":{"login":"sujit22993","id":8048341,"node_id":"MDQ6VXNlcjgwNDgzNDE=","avatar_url":"https://avatars0.githubusercontent.com/u/8048341?v=4","gravatar_id":"","url":"https://api.github.com/users/sujit22993","html_url":"https://github.com/sujit22993","followers_url":"https://api.github.com/users/sujit22993/followers","following_url":"https://api.github.com/users/sujit22993/following{/other_user}","gists_url":"https://api.github.com/users/sujit22993/gists{/gist_id}","starred_url":"https://api.github.com/users/sujit22993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sujit22993/subscriptions","organizations_url":"https://api.github.com/users/sujit22993/orgs","repos_url":"https://api.github.com/users/sujit22993/repos","events_url":"https://api.github.com/users/sujit22993/events{/privacy}","received_events_url":"https://api.github.com/users/sujit22993/received_events","type":"User","site_admin":false},"body":"Market Information in Loop App.\r\nRelease Steps : \r\n\r\n- normal steps.","created_at":"2018-06-07T07:27:21Z","updated_at":"2018-06-07T07:36:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7565304020fc659caca9787d7954d099a075b80","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Abhishek-lodha","id":7737588,"node_id":"MDQ6VXNlcjc3Mzc1ODg=","avatar_url":"https://avatars2.githubusercontent.com/u/7737588?v=4","gravatar_id":"","url":"https://api.github.com/users/Abhishek-lodha","html_url":"https://github.com/Abhishek-lodha","followers_url":"https://api.github.com/users/Abhishek-lodha/followers","following_url":"https://api.github.com/users/Abhishek-lodha/following{/other_user}","gists_url":"https://api.github.com/users/Abhishek-lodha/gists{/gist_id}","starred_url":"https://api.github.com/users/Abhishek-lodha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abhishek-lodha/subscriptions","organizations_url":"https://api.github.com/users/Abhishek-lodha/orgs","repos_url":"https://api.github.com/users/Abhishek-lodha/repos","events_url":"https://api.github.com/users/Abhishek-lodha/events{/privacy}","received_events_url":"https://api.github.com/users/Abhishek-lodha/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931/commits","review_comments_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931/comments","review_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/931/comments","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/5c543945d604d87ab66f66abee72ca8386e286a2","head":{"label":"digitalgreenorg:loop_mi_v5_pilot","ref":"loop_mi_v5_pilot","sha":"5c543945d604d87ab66f66abee72ca8386e286a2","user":{"login":"digitalgreenorg","id":1179852,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzk4NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"repo":{"id":2742622,"node_id":"MDEwOlJlcG9zaXRvcnkyNzQyNjIy","name":"dg","full_name":"digitalgreenorg/dg","owner":{"login":"digitalgreenorg","id":1179852,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzk4NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalgreenorg/dg","description":"COCO, Analytics, Website, LOOP, Training, IVR, Helpline","fork":false,"url":"https://api.github.com/repos/digitalgreenorg/dg","forks_url":"https://api.github.com/repos/digitalgreenorg/dg/forks","keys_url":"https://api.github.com/repos/digitalgreenorg/dg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalgreenorg/dg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalgreenorg/dg/teams","hooks_url":"https://api.github.com/repos/digitalgreenorg/dg/hooks","issue_events_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/events{/number}","events_url":"https://api.github.com/repos/digitalgreenorg/dg/events","assignees_url":"https://api.github.com/repos/digitalgreenorg/dg/assignees{/user}","branches_url":"https://api.github.com/repos/digitalgreenorg/dg/branches{/branch}","tags_url":"https://api.github.com/repos/digitalgreenorg/dg/tags","blobs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalgreenorg/dg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalgreenorg/dg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalgreenorg/dg/languages","stargazers_url":"https://api.github.com/repos/digitalgreenorg/dg/stargazers","contributors_url":"https://api.github.com/repos/digitalgreenorg/dg/contributors","subscribers_url":"https://api.github.com/repos/digitalgreenorg/dg/subscribers","subscription_url":"https://api.github.com/repos/digitalgreenorg/dg/subscription","commits_url":"https://api.github.com/repos/digitalgreenorg/dg/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalgreenorg/dg/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalgreenorg/dg/contents/{+path}","compare_url":"https://api.github.com/repos/digitalgreenorg/dg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalgreenorg/dg/merges","archive_url":"https://api.github.com/repos/digitalgreenorg/dg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalgreenorg/dg/downloads","issues_url":"https://api.github.com/repos/digitalgreenorg/dg/issues{/number}","pulls_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalgreenorg/dg/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalgreenorg/dg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalgreenorg/dg/labels{/name}","releases_url":"https://api.github.com/repos/digitalgreenorg/dg/releases{/id}","deployments_url":"https://api.github.com/repos/digitalgreenorg/dg/deployments","created_at":"2011-11-09T16:04:45Z","updated_at":"2018-05-04T10:17:10Z","pushed_at":"2018-06-07T07:27:22Z","git_url":"git://github.com/digitalgreenorg/dg.git","ssh_url":"git@github.com:digitalgreenorg/dg.git","clone_url":"https://github.com/digitalgreenorg/dg.git","svn_url":"https://github.com/digitalgreenorg/dg","homepage":"","size":638225,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":43,"license":null,"forks":8,"open_issues":43,"watchers":11,"default_branch":"master"}},"base":{"label":"digitalgreenorg:master","ref":"master","sha":"405b78651ed0d87cd5edafa839c193ff3a902d7d","user":{"login":"digitalgreenorg","id":1179852,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzk4NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"repo":{"id":2742622,"node_id":"MDEwOlJlcG9zaXRvcnkyNzQyNjIy","name":"dg","full_name":"digitalgreenorg/dg","owner":{"login":"digitalgreenorg","id":1179852,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNzk4NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalgreenorg/dg","description":"COCO, Analytics, Website, LOOP, Training, IVR, Helpline","fork":false,"url":"https://api.github.com/repos/digitalgreenorg/dg","forks_url":"https://api.github.com/repos/digitalgreenorg/dg/forks","keys_url":"https://api.github.com/repos/digitalgreenorg/dg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalgreenorg/dg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalgreenorg/dg/teams","hooks_url":"https://api.github.com/repos/digitalgreenorg/dg/hooks","issue_events_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/events{/number}","events_url":"https://api.github.com/repos/digitalgreenorg/dg/events","assignees_url":"https://api.github.com/repos/digitalgreenorg/dg/assignees{/user}","branches_url":"https://api.github.com/repos/digitalgreenorg/dg/branches{/branch}","tags_url":"https://api.github.com/repos/digitalgreenorg/dg/tags","blobs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalgreenorg/dg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalgreenorg/dg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalgreenorg/dg/languages","stargazers_url":"https://api.github.com/repos/digitalgreenorg/dg/stargazers","contributors_url":"https://api.github.com/repos/digitalgreenorg/dg/contributors","subscribers_url":"https://api.github.com/repos/digitalgreenorg/dg/subscribers","subscription_url":"https://api.github.com/repos/digitalgreenorg/dg/subscription","commits_url":"https://api.github.com/repos/digitalgreenorg/dg/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalgreenorg/dg/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalgreenorg/dg/contents/{+path}","compare_url":"https://api.github.com/repos/digitalgreenorg/dg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalgreenorg/dg/merges","archive_url":"https://api.github.com/repos/digitalgreenorg/dg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalgreenorg/dg/downloads","issues_url":"https://api.github.com/repos/digitalgreenorg/dg/issues{/number}","pulls_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalgreenorg/dg/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalgreenorg/dg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalgreenorg/dg/labels{/name}","releases_url":"https://api.github.com/repos/digitalgreenorg/dg/releases{/id}","deployments_url":"https://api.github.com/repos/digitalgreenorg/dg/deployments","created_at":"2011-11-09T16:04:45Z","updated_at":"2018-05-04T10:17:10Z","pushed_at":"2018-06-07T07:27:22Z","git_url":"git://github.com/digitalgreenorg/dg.git","ssh_url":"git@github.com:digitalgreenorg/dg.git","clone_url":"https://github.com/digitalgreenorg/dg.git","svn_url":"https://github.com/digitalgreenorg/dg","homepage":"","size":638225,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":43,"license":null,"forks":8,"open_issues":43,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/931"},"issue":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/931"},"comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/931/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/931/commits"},"statuses":{"href":"https://api.github.com/repos/digitalgreenorg/dg/statuses/5c543945d604d87ab66f66abee72ca8386e286a2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}