{"action":"created","comment":{"url":"https://api.github.com/repos/biolab/orange3/pulls/comments/78364116","id":78364116,"diff_hunk":"@@ -73,9 +73,7 @@ class EnumValue(int):\n         EnumType = property(lambda self: EnumType)\n \n         def __repr__(self):\n-            return str(names[self])\n-\n-        __str__ = __repr__\n+            return self.__str__()","path":"Orange/misc/enum.py","position":7,"original_position":7,"commit_id":"e214b42307c6f06fd32085533733fd5d971ad63f","original_commit_id":"e214b42307c6f06fd32085533733fd5d971ad63f","user":{"login":"kernc","id":684364,"avatar_url":"https://avatars.githubusercontent.com/u/684364?v=3","gravatar_id":"","url":"https://api.github.com/users/kernc","html_url":"https://github.com/kernc","followers_url":"https://api.github.com/users/kernc/followers","following_url":"https://api.github.com/users/kernc/following{/other_user}","gists_url":"https://api.github.com/users/kernc/gists{/gist_id}","starred_url":"https://api.github.com/users/kernc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kernc/subscriptions","organizations_url":"https://api.github.com/users/kernc/orgs","repos_url":"https://api.github.com/users/kernc/repos","events_url":"https://api.github.com/users/kernc/events{/privacy}","received_events_url":"https://api.github.com/users/kernc/received_events","type":"User","site_admin":false},"body":"Are you sure this is still the same? A string was returned before, I think.","created_at":"2016-09-12T12:41:03Z","updated_at":"2016-09-12T12:41:03Z","html_url":"https://github.com/biolab/orange3/pull/1507#discussion_r78364116","pull_request_url":"https://api.github.com/repos/biolab/orange3/pulls/1507","_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments/78364116"},"html":{"href":"https://github.com/biolab/orange3/pull/1507#discussion_r78364116"},"pull_request":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1507"}}},"pull_request":{"url":"https://api.github.com/repos/biolab/orange3/pulls/1507","id":80729870,"html_url":"https://github.com/biolab/orange3/pull/1507","diff_url":"https://github.com/biolab/orange3/pull/1507.diff","patch_url":"https://github.com/biolab/orange3/pull/1507.patch","issue_url":"https://api.github.com/repos/biolab/orange3/issues/1507","number":1507,"state":"open","locked":false,"title":"Created __repr__ functions for learners + preprocessors","user":{"login":"Ameobea","id":4335849,"avatar_url":"https://avatars.githubusercontent.com/u/4335849?v=3","gravatar_id":"","url":"https://api.github.com/users/Ameobea","html_url":"https://github.com/Ameobea","followers_url":"https://api.github.com/users/Ameobea/followers","following_url":"https://api.github.com/users/Ameobea/following{/other_user}","gists_url":"https://api.github.com/users/Ameobea/gists{/gist_id}","starred_url":"https://api.github.com/users/Ameobea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ameobea/subscriptions","organizations_url":"https://api.github.com/users/Ameobea/orgs","repos_url":"https://api.github.com/users/Ameobea/repos","events_url":"https://api.github.com/users/Ameobea/events{/privacy}","received_events_url":"https://api.github.com/users/Ameobea/received_events","type":"User","site_admin":false},"body":"This commit creates `__repr__` functions for the majority of Orange's learner and preprocessor classes.  It uses standardized and generic functions wherever possible.  These changes pave the way for my code generator (PR upcoming), which makes extensive use of these functions to create runnable Python scripts based on the contents of the workflow.\r\n\r\nI moved some data processing functions out of widget code and into more appropriate directories, updating the widget code as appropriate.  I converted some functions to classes in order to make them more similar to others and created __repr__ functions for them as well.  Their usages were updated accordingly.  I then squashed all commits into a single commit.\r\n\r\nAll tests are passing (except those that weren't passing before) and the linter doesn't show anything significant caused by this commit.  As far as I can tell, this commit is ready to merge and completely working.  If any changes need to be made, please let me know.\r\n\r\nEDIT: I've changed the title to WIP due to issues between the results of tests on my computer and those returned by Travis.","created_at":"2016-08-10T03:39:25Z","updated_at":"2016-09-12T12:41:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af63ddecb9314b0a3917e289278c6a75e3fdaaaf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/biolab/orange3/pulls/1507/commits","review_comments_url":"https://api.github.com/repos/biolab/orange3/pulls/1507/comments","review_comment_url":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biolab/orange3/issues/1507/comments","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/e214b42307c6f06fd32085533733fd5d971ad63f","head":{"label":"Ameobea:repr-pr","ref":"repr-pr","sha":"e214b42307c6f06fd32085533733fd5d971ad63f","user":{"login":"Ameobea","id":4335849,"avatar_url":"https://avatars.githubusercontent.com/u/4335849?v=3","gravatar_id":"","url":"https://api.github.com/users/Ameobea","html_url":"https://github.com/Ameobea","followers_url":"https://api.github.com/users/Ameobea/followers","following_url":"https://api.github.com/users/Ameobea/following{/other_user}","gists_url":"https://api.github.com/users/Ameobea/gists{/gist_id}","starred_url":"https://api.github.com/users/Ameobea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ameobea/subscriptions","organizations_url":"https://api.github.com/users/Ameobea/orgs","repos_url":"https://api.github.com/users/Ameobea/repos","events_url":"https://api.github.com/users/Ameobea/events{/privacy}","received_events_url":"https://api.github.com/users/Ameobea/received_events","type":"User","site_admin":false},"repo":{"id":61900843,"name":"orange3","full_name":"Ameobea/orange3","owner":{"login":"Ameobea","id":4335849,"avatar_url":"https://avatars.githubusercontent.com/u/4335849?v=3","gravatar_id":"","url":"https://api.github.com/users/Ameobea","html_url":"https://github.com/Ameobea","followers_url":"https://api.github.com/users/Ameobea/followers","following_url":"https://api.github.com/users/Ameobea/following{/other_user}","gists_url":"https://api.github.com/users/Ameobea/gists{/gist_id}","starred_url":"https://api.github.com/users/Ameobea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ameobea/subscriptions","organizations_url":"https://api.github.com/users/Ameobea/orgs","repos_url":"https://api.github.com/users/Ameobea/repos","events_url":"https://api.github.com/users/Ameobea/events{/privacy}","received_events_url":"https://api.github.com/users/Ameobea/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ameobea/orange3","description":"Orange 3 data mining suite: http://orange.biolab.si ","fork":true,"url":"https://api.github.com/repos/Ameobea/orange3","forks_url":"https://api.github.com/repos/Ameobea/orange3/forks","keys_url":"https://api.github.com/repos/Ameobea/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ameobea/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ameobea/orange3/teams","hooks_url":"https://api.github.com/repos/Ameobea/orange3/hooks","issue_events_url":"https://api.github.com/repos/Ameobea/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/Ameobea/orange3/events","assignees_url":"https://api.github.com/repos/Ameobea/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/Ameobea/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/Ameobea/orange3/tags","blobs_url":"https://api.github.com/repos/Ameobea/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ameobea/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ameobea/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ameobea/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ameobea/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/Ameobea/orange3/languages","stargazers_url":"https://api.github.com/repos/Ameobea/orange3/stargazers","contributors_url":"https://api.github.com/repos/Ameobea/orange3/contributors","subscribers_url":"https://api.github.com/repos/Ameobea/orange3/subscribers","subscription_url":"https://api.github.com/repos/Ameobea/orange3/subscription","commits_url":"https://api.github.com/repos/Ameobea/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ameobea/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ameobea/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ameobea/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ameobea/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/Ameobea/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ameobea/orange3/merges","archive_url":"https://api.github.com/repos/Ameobea/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ameobea/orange3/downloads","issues_url":"https://api.github.com/repos/Ameobea/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/Ameobea/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/Ameobea/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/Ameobea/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ameobea/orange3/labels{/name}","releases_url":"https://api.github.com/repos/Ameobea/orange3/releases{/id}","deployments_url":"https://api.github.com/repos/Ameobea/orange3/deployments","created_at":"2016-06-24T17:25:22Z","updated_at":"2016-06-24T17:28:19Z","pushed_at":"2016-09-12T08:09:09Z","git_url":"git://github.com/Ameobea/orange3.git","ssh_url":"git@github.com:Ameobea/orange3.git","clone_url":"https://github.com/Ameobea/orange3.git","svn_url":"https://github.com/Ameobea/orange3","homepage":"","size":38504,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"biolab:master","ref":"master","sha":"2e7b23d365e45f0b9c5cdec5dba9cc221f74cd6f","user":{"login":"biolab","id":555189,"avatar_url":"https://avatars.githubusercontent.com/u/555189?v=3","gravatar_id":"","url":"https://api.github.com/users/biolab","html_url":"https://github.com/biolab","followers_url":"https://api.github.com/users/biolab/followers","following_url":"https://api.github.com/users/biolab/following{/other_user}","gists_url":"https://api.github.com/users/biolab/gists{/gist_id}","starred_url":"https://api.github.com/users/biolab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biolab/subscriptions","organizations_url":"https://api.github.com/users/biolab/orgs","repos_url":"https://api.github.com/users/biolab/repos","events_url":"https://api.github.com/users/biolab/events{/privacy}","received_events_url":"https://api.github.com/users/biolab/received_events","type":"Organization","site_admin":false},"repo":{"id":8357227,"name":"orange3","full_name":"biolab/orange3","owner":{"login":"biolab","id":555189,"avatar_url":"https://avatars.githubusercontent.com/u/555189?v=3","gravatar_id":"","url":"https://api.github.com/users/biolab","html_url":"https://github.com/biolab","followers_url":"https://api.github.com/users/biolab/followers","following_url":"https://api.github.com/users/biolab/following{/other_user}","gists_url":"https://api.github.com/users/biolab/gists{/gist_id}","starred_url":"https://api.github.com/users/biolab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biolab/subscriptions","organizations_url":"https://api.github.com/users/biolab/orgs","repos_url":"https://api.github.com/users/biolab/repos","events_url":"https://api.github.com/users/biolab/events{/privacy}","received_events_url":"https://api.github.com/users/biolab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biolab/orange3","description":"Orange 3 data mining suite: http://orange.biolab.si ","fork":false,"url":"https://api.github.com/repos/biolab/orange3","forks_url":"https://api.github.com/repos/biolab/orange3/forks","keys_url":"https://api.github.com/repos/biolab/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biolab/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biolab/orange3/teams","hooks_url":"https://api.github.com/repos/biolab/orange3/hooks","issue_events_url":"https://api.github.com/repos/biolab/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/biolab/orange3/events","assignees_url":"https://api.github.com/repos/biolab/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/biolab/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/biolab/orange3/tags","blobs_url":"https://api.github.com/repos/biolab/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biolab/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biolab/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/biolab/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/biolab/orange3/languages","stargazers_url":"https://api.github.com/repos/biolab/orange3/stargazers","contributors_url":"https://api.github.com/repos/biolab/orange3/contributors","subscribers_url":"https://api.github.com/repos/biolab/orange3/subscribers","subscription_url":"https://api.github.com/repos/biolab/orange3/subscription","commits_url":"https://api.github.com/repos/biolab/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/biolab/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/biolab/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/biolab/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/biolab/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/biolab/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biolab/orange3/merges","archive_url":"https://api.github.com/repos/biolab/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biolab/orange3/downloads","issues_url":"https://api.github.com/repos/biolab/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/biolab/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/biolab/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/biolab/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biolab/orange3/labels{/name}","releases_url":"https://api.github.com/repos/biolab/orange3/releases{/id}","deployments_url":"https://api.github.com/repos/biolab/orange3/deployments","created_at":"2013-02-22T12:52:56Z","updated_at":"2016-09-11T18:57:29Z","pushed_at":"2016-09-12T12:23:07Z","git_url":"git://github.com/biolab/orange3.git","ssh_url":"git@github.com:biolab/orange3.git","clone_url":"https://github.com/biolab/orange3.git","svn_url":"https://github.com/biolab/orange3","homepage":"","size":94806,"stargazers_count":477,"watchers_count":477,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":61,"forks":164,"open_issues":61,"watchers":477,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1507"},"html":{"href":"https://github.com/biolab/orange3/pull/1507"},"issue":{"href":"https://api.github.com/repos/biolab/orange3/issues/1507"},"comments":{"href":"https://api.github.com/repos/biolab/orange3/issues/1507/comments"},"review_comments":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1507/comments"},"review_comment":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biolab/orange3/pulls/1507/commits"},"statuses":{"href":"https://api.github.com/repos/biolab/orange3/statuses/e214b42307c6f06fd32085533733fd5d971ad63f"}}}}
{"actor":{"display_login":"kernc"}}