{"action":"created","comment":{"url":"https://api.github.com/repos/symengine/symengine/pulls/comments/49085091","id":49085091,"diff_hunk":"@@ -59,7 +59,7 @@ class Precedence : public BaseVisitor<Precedence> {\n             if(x.imaginary_ == 1) {\n                 precedence = PrecedenceEnum::Atom;\n             } else {\n-                precedence = PrecedenceEnum::Mul;\n+                precedence = PrecedenceEnum::Add;","path":"symengine/printer.h","position":5,"original_position":5,"commit_id":"3e1785bdc01198c69365c5ac0884ab1119b56b7f","original_commit_id":"3e1785bdc01198c69365c5ac0884ab1119b56b7f","user":{"login":"certik","id":20568,"avatar_url":"https://avatars.githubusercontent.com/u/20568?v=3","gravatar_id":"","url":"https://api.github.com/users/certik","html_url":"https://github.com/certik","followers_url":"https://api.github.com/users/certik/followers","following_url":"https://api.github.com/users/certik/following{/other_user}","gists_url":"https://api.github.com/users/certik/gists{/gist_id}","starred_url":"https://api.github.com/users/certik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/certik/subscriptions","organizations_url":"https://api.github.com/users/certik/orgs","repos_url":"https://api.github.com/users/certik/repos","events_url":"https://api.github.com/users/certik/events{/privacy}","received_events_url":"https://api.github.com/users/certik/received_events","type":"User","site_admin":false},"body":"Is this a bug in the `Precedence` class? What is the rationale behind this change?","created_at":"2016-01-07T15:36:16Z","updated_at":"2016-01-07T15:36:16Z","html_url":"https://github.com/symengine/symengine/pull/567#discussion_r49085091","pull_request_url":"https://api.github.com/repos/symengine/symengine/pulls/567","_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine/pulls/comments/49085091"},"html":{"href":"https://github.com/symengine/symengine/pull/567#discussion_r49085091"},"pull_request":{"href":"https://api.github.com/repos/symengine/symengine/pulls/567"}}},"pull_request":{"url":"https://api.github.com/repos/symengine/symengine/pulls/567","id":40849301,"html_url":"https://github.com/symengine/symengine/pull/567","diff_url":"https://github.com/symengine/symengine/pull/567.diff","patch_url":"https://github.com/symengine/symengine/pull/567.patch","issue_url":"https://api.github.com/repos/symengine/symengine/issues/567","number":567,"state":"open","locked":false,"title":"Improve printing of Complex","user":{"login":"Sumith1896","id":9217608,"avatar_url":"https://avatars.githubusercontent.com/u/9217608?v=3","gravatar_id":"","url":"https://api.github.com/users/Sumith1896","html_url":"https://github.com/Sumith1896","followers_url":"https://api.github.com/users/Sumith1896/followers","following_url":"https://api.github.com/users/Sumith1896/following{/other_user}","gists_url":"https://api.github.com/users/Sumith1896/gists{/gist_id}","starred_url":"https://api.github.com/users/Sumith1896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sumith1896/subscriptions","organizations_url":"https://api.github.com/users/Sumith1896/orgs","repos_url":"https://api.github.com/users/Sumith1896/repos","events_url":"https://api.github.com/users/Sumith1896/events{/privacy}","received_events_url":"https://api.github.com/users/Sumith1896/received_events","type":"User","site_admin":false},"body":"Fix to https://github.com/sympy/symengine/issues/566\r\nBefore\r\n```\r\np/q + r/s*I\r\n```\r\nAfter\r\n```\r\np/q + r*I/s\r\n```\r\ncc @certik @shivamvats @isuruf ","created_at":"2015-07-26T07:20:39Z","updated_at":"2016-01-07T15:36:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5b05932e386bb514725aaf9804245f7cd0de8cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symengine/symengine/pulls/567/commits","review_comments_url":"https://api.github.com/repos/symengine/symengine/pulls/567/comments","review_comment_url":"https://api.github.com/repos/symengine/symengine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symengine/symengine/issues/567/comments","statuses_url":"https://api.github.com/repos/symengine/symengine/statuses/3e1785bdc01198c69365c5ac0884ab1119b56b7f","head":{"label":"Sumith1896:complexprint","ref":"complexprint","sha":"3e1785bdc01198c69365c5ac0884ab1119b56b7f","user":{"login":"Sumith1896","id":9217608,"avatar_url":"https://avatars.githubusercontent.com/u/9217608?v=3","gravatar_id":"","url":"https://api.github.com/users/Sumith1896","html_url":"https://github.com/Sumith1896","followers_url":"https://api.github.com/users/Sumith1896/followers","following_url":"https://api.github.com/users/Sumith1896/following{/other_user}","gists_url":"https://api.github.com/users/Sumith1896/gists{/gist_id}","starred_url":"https://api.github.com/users/Sumith1896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sumith1896/subscriptions","organizations_url":"https://api.github.com/users/Sumith1896/orgs","repos_url":"https://api.github.com/users/Sumith1896/repos","events_url":"https://api.github.com/users/Sumith1896/events{/privacy}","received_events_url":"https://api.github.com/users/Sumith1896/received_events","type":"User","site_admin":false},"repo":{"id":29534532,"name":"csympy","full_name":"Sumith1896/csympy","owner":{"login":"Sumith1896","id":9217608,"avatar_url":"https://avatars.githubusercontent.com/u/9217608?v=3","gravatar_id":"","url":"https://api.github.com/users/Sumith1896","html_url":"https://github.com/Sumith1896","followers_url":"https://api.github.com/users/Sumith1896/followers","following_url":"https://api.github.com/users/Sumith1896/following{/other_user}","gists_url":"https://api.github.com/users/Sumith1896/gists{/gist_id}","starred_url":"https://api.github.com/users/Sumith1896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sumith1896/subscriptions","organizations_url":"https://api.github.com/users/Sumith1896/orgs","repos_url":"https://api.github.com/users/Sumith1896/repos","events_url":"https://api.github.com/users/Sumith1896/events{/privacy}","received_events_url":"https://api.github.com/users/Sumith1896/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sumith1896/csympy","description":"Fast symbolic manipulation library, written in C++","fork":true,"url":"https://api.github.com/repos/Sumith1896/csympy","forks_url":"https://api.github.com/repos/Sumith1896/csympy/forks","keys_url":"https://api.github.com/repos/Sumith1896/csympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sumith1896/csympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sumith1896/csympy/teams","hooks_url":"https://api.github.com/repos/Sumith1896/csympy/hooks","issue_events_url":"https://api.github.com/repos/Sumith1896/csympy/issues/events{/number}","events_url":"https://api.github.com/repos/Sumith1896/csympy/events","assignees_url":"https://api.github.com/repos/Sumith1896/csympy/assignees{/user}","branches_url":"https://api.github.com/repos/Sumith1896/csympy/branches{/branch}","tags_url":"https://api.github.com/repos/Sumith1896/csympy/tags","blobs_url":"https://api.github.com/repos/Sumith1896/csympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sumith1896/csympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sumith1896/csympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sumith1896/csympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sumith1896/csympy/statuses/{sha}","languages_url":"https://api.github.com/repos/Sumith1896/csympy/languages","stargazers_url":"https://api.github.com/repos/Sumith1896/csympy/stargazers","contributors_url":"https://api.github.com/repos/Sumith1896/csympy/contributors","subscribers_url":"https://api.github.com/repos/Sumith1896/csympy/subscribers","subscription_url":"https://api.github.com/repos/Sumith1896/csympy/subscription","commits_url":"https://api.github.com/repos/Sumith1896/csympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sumith1896/csympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sumith1896/csympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sumith1896/csympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sumith1896/csympy/contents/{+path}","compare_url":"https://api.github.com/repos/Sumith1896/csympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sumith1896/csympy/merges","archive_url":"https://api.github.com/repos/Sumith1896/csympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sumith1896/csympy/downloads","issues_url":"https://api.github.com/repos/Sumith1896/csympy/issues{/number}","pulls_url":"https://api.github.com/repos/Sumith1896/csympy/pulls{/number}","milestones_url":"https://api.github.com/repos/Sumith1896/csympy/milestones{/number}","notifications_url":"https://api.github.com/repos/Sumith1896/csympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sumith1896/csympy/labels{/name}","releases_url":"https://api.github.com/repos/Sumith1896/csympy/releases{/id}","created_at":"2015-01-20T14:46:11Z","updated_at":"2015-03-26T16:28:05Z","pushed_at":"2016-01-07T05:30:23Z","git_url":"git://github.com/Sumith1896/csympy.git","ssh_url":"git@github.com:Sumith1896/csympy.git","clone_url":"https://github.com/Sumith1896/csympy.git","svn_url":"https://github.com/Sumith1896/csympy","homepage":"http://sympy.org","size":3686,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symengine:master","ref":"master","sha":"07f0830f3f481cb4c627be2d76032cbdd7f231c1","user":{"login":"symengine","id":11509221,"avatar_url":"https://avatars.githubusercontent.com/u/11509221?v=3","gravatar_id":"","url":"https://api.github.com/users/symengine","html_url":"https://github.com/symengine","followers_url":"https://api.github.com/users/symengine/followers","following_url":"https://api.github.com/users/symengine/following{/other_user}","gists_url":"https://api.github.com/users/symengine/gists{/gist_id}","starred_url":"https://api.github.com/users/symengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symengine/subscriptions","organizations_url":"https://api.github.com/users/symengine/orgs","repos_url":"https://api.github.com/users/symengine/repos","events_url":"https://api.github.com/users/symengine/events{/privacy}","received_events_url":"https://api.github.com/users/symengine/received_events","type":"Organization","site_admin":false},"repo":{"id":42376,"name":"symengine","full_name":"symengine/symengine","owner":{"login":"symengine","id":11509221,"avatar_url":"https://avatars.githubusercontent.com/u/11509221?v=3","gravatar_id":"","url":"https://api.github.com/users/symengine","html_url":"https://github.com/symengine","followers_url":"https://api.github.com/users/symengine/followers","following_url":"https://api.github.com/users/symengine/following{/other_user}","gists_url":"https://api.github.com/users/symengine/gists{/gist_id}","starred_url":"https://api.github.com/users/symengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symengine/subscriptions","organizations_url":"https://api.github.com/users/symengine/orgs","repos_url":"https://api.github.com/users/symengine/repos","events_url":"https://api.github.com/users/symengine/events{/privacy}","received_events_url":"https://api.github.com/users/symengine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symengine/symengine","description":"SymEngine is a fast symbolic manipulation library, written in C++","fork":false,"url":"https://api.github.com/repos/symengine/symengine","forks_url":"https://api.github.com/repos/symengine/symengine/forks","keys_url":"https://api.github.com/repos/symengine/symengine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symengine/symengine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symengine/symengine/teams","hooks_url":"https://api.github.com/repos/symengine/symengine/hooks","issue_events_url":"https://api.github.com/repos/symengine/symengine/issues/events{/number}","events_url":"https://api.github.com/repos/symengine/symengine/events","assignees_url":"https://api.github.com/repos/symengine/symengine/assignees{/user}","branches_url":"https://api.github.com/repos/symengine/symengine/branches{/branch}","tags_url":"https://api.github.com/repos/symengine/symengine/tags","blobs_url":"https://api.github.com/repos/symengine/symengine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symengine/symengine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symengine/symengine/git/refs{/sha}","trees_url":"https://api.github.com/repos/symengine/symengine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symengine/symengine/statuses/{sha}","languages_url":"https://api.github.com/repos/symengine/symengine/languages","stargazers_url":"https://api.github.com/repos/symengine/symengine/stargazers","contributors_url":"https://api.github.com/repos/symengine/symengine/contributors","subscribers_url":"https://api.github.com/repos/symengine/symengine/subscribers","subscription_url":"https://api.github.com/repos/symengine/symengine/subscription","commits_url":"https://api.github.com/repos/symengine/symengine/commits{/sha}","git_commits_url":"https://api.github.com/repos/symengine/symengine/git/commits{/sha}","comments_url":"https://api.github.com/repos/symengine/symengine/comments{/number}","issue_comment_url":"https://api.github.com/repos/symengine/symengine/issues/comments{/number}","contents_url":"https://api.github.com/repos/symengine/symengine/contents/{+path}","compare_url":"https://api.github.com/repos/symengine/symengine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symengine/symengine/merges","archive_url":"https://api.github.com/repos/symengine/symengine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symengine/symengine/downloads","issues_url":"https://api.github.com/repos/symengine/symengine/issues{/number}","pulls_url":"https://api.github.com/repos/symengine/symengine/pulls{/number}","milestones_url":"https://api.github.com/repos/symengine/symengine/milestones{/number}","notifications_url":"https://api.github.com/repos/symengine/symengine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symengine/symengine/labels{/name}","releases_url":"https://api.github.com/repos/symengine/symengine/releases{/id}","created_at":"2008-08-13T18:40:14Z","updated_at":"2016-01-06T19:45:07Z","pushed_at":"2016-01-07T15:30:21Z","git_url":"git://github.com/symengine/symengine.git","ssh_url":"git@github.com:symengine/symengine.git","clone_url":"https://github.com/symengine/symengine.git","svn_url":"https://github.com/symengine/symengine","homepage":"http://sympy.org","size":33046,"stargazers_count":106,"watchers_count":106,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":98,"forks":79,"open_issues":98,"watchers":106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine/pulls/567"},"html":{"href":"https://github.com/symengine/symengine/pull/567"},"issue":{"href":"https://api.github.com/repos/symengine/symengine/issues/567"},"comments":{"href":"https://api.github.com/repos/symengine/symengine/issues/567/comments"},"review_comments":{"href":"https://api.github.com/repos/symengine/symengine/pulls/567/comments"},"review_comment":{"href":"https://api.github.com/repos/symengine/symengine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symengine/symengine/pulls/567/commits"},"statuses":{"href":"https://api.github.com/repos/symengine/symengine/statuses/3e1785bdc01198c69365c5ac0884ab1119b56b7f"}}}}