{"action":"created","comment":{"url":"https://api.github.com/repos/biolab/orange3/pulls/comments/24332436","id":24332436,"diff_hunk":"@@ -476,6 +484,14 @@ def ordered_values(values):\n                 return presorted\n         return sorted(values)\n \n+    def __eq__(self, other):\n+        if not isinstance(other, DiscreteVariable):\n+            return False\n+        return self.name == other.name and self.values == other.values\n+\n+    def __hash__(self):\n+        return hash(self.name) ^ hash(self.name)","path":"Orange/data/variable.py","position":25,"original_position":25,"commit_id":"d6ef6654a9bbe016545cfb72195aaad1fd2e7651","original_commit_id":"d6ef6654a9bbe016545cfb72195aaad1fd2e7651","user":{"login":"lanzagar","id":4579717,"avatar_url":"https://avatars.githubusercontent.com/u/4579717?v=3","gravatar_id":"","url":"https://api.github.com/users/lanzagar","html_url":"https://github.com/lanzagar","followers_url":"https://api.github.com/users/lanzagar/followers","following_url":"https://api.github.com/users/lanzagar/following{/other_user}","gists_url":"https://api.github.com/users/lanzagar/gists{/gist_id}","starred_url":"https://api.github.com/users/lanzagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanzagar/subscriptions","organizations_url":"https://api.github.com/users/lanzagar/orgs","repos_url":"https://api.github.com/users/lanzagar/repos","events_url":"https://api.github.com/users/lanzagar/events{/privacy}","received_events_url":"https://api.github.com/users/lanzagar/received_events","type":"User","site_admin":false},"body":"hash(self.name) ^ hash(self.values)","created_at":"2015-02-09T14:51:32Z","updated_at":"2015-02-09T14:51:32Z","html_url":"https://github.com/biolab/orange3/pull/248#discussion_r24332436","pull_request_url":"https://api.github.com/repos/biolab/orange3/pulls/248","_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments/24332436"},"html":{"href":"https://github.com/biolab/orange3/pull/248#discussion_r24332436"},"pull_request":{"href":"https://api.github.com/repos/biolab/orange3/pulls/248"}}},"pull_request":{"url":"https://api.github.com/repos/biolab/orange3/pulls/248","id":28725210,"html_url":"https://github.com/biolab/orange3/pull/248","diff_url":"https://github.com/biolab/orange3/pull/248.diff","patch_url":"https://github.com/biolab/orange3/pull/248.patch","issue_url":"https://api.github.com/repos/biolab/orange3/issues/248","number":248,"state":"open","locked":false,"title":"Add domain __eq__.","user":{"login":"astaric","id":588601,"avatar_url":"https://avatars.githubusercontent.com/u/588601?v=3","gravatar_id":"","url":"https://api.github.com/users/astaric","html_url":"https://github.com/astaric","followers_url":"https://api.github.com/users/astaric/followers","following_url":"https://api.github.com/users/astaric/following{/other_user}","gists_url":"https://api.github.com/users/astaric/gists{/gist_id}","starred_url":"https://api.github.com/users/astaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaric/subscriptions","organizations_url":"https://api.github.com/users/astaric/orgs","repos_url":"https://api.github.com/users/astaric/repos","events_url":"https://api.github.com/users/astaric/events{/privacy}","received_events_url":"https://api.github.com/users/astaric/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-05T13:46:15Z","updated_at":"2015-02-09T14:51:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e8a7ac232d51d9f6817a7bec9274b7eb3aabcff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biolab/orange3/pulls/248/commits","review_comments_url":"https://api.github.com/repos/biolab/orange3/pulls/248/comments","review_comment_url":"https://api.github.com/repos/biolab/orange3/pulls/comments/{number}","comments_url":"https://api.github.com/repos/biolab/orange3/issues/248/comments","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/d6ef6654a9bbe016545cfb72195aaad1fd2e7651","head":{"label":"astaric:domain-eq","ref":"domain-eq","sha":"d6ef6654a9bbe016545cfb72195aaad1fd2e7651","user":{"login":"astaric","id":588601,"avatar_url":"https://avatars.githubusercontent.com/u/588601?v=3","gravatar_id":"","url":"https://api.github.com/users/astaric","html_url":"https://github.com/astaric","followers_url":"https://api.github.com/users/astaric/followers","following_url":"https://api.github.com/users/astaric/following{/other_user}","gists_url":"https://api.github.com/users/astaric/gists{/gist_id}","starred_url":"https://api.github.com/users/astaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaric/subscriptions","organizations_url":"https://api.github.com/users/astaric/orgs","repos_url":"https://api.github.com/users/astaric/repos","events_url":"https://api.github.com/users/astaric/events{/privacy}","received_events_url":"https://api.github.com/users/astaric/received_events","type":"User","site_admin":false},"repo":{"id":8647497,"name":"orange3","full_name":"astaric/orange3","owner":{"login":"astaric","id":588601,"avatar_url":"https://avatars.githubusercontent.com/u/588601?v=3","gravatar_id":"","url":"https://api.github.com/users/astaric","html_url":"https://github.com/astaric","followers_url":"https://api.github.com/users/astaric/followers","following_url":"https://api.github.com/users/astaric/following{/other_user}","gists_url":"https://api.github.com/users/astaric/gists{/gist_id}","starred_url":"https://api.github.com/users/astaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaric/subscriptions","organizations_url":"https://api.github.com/users/astaric/orgs","repos_url":"https://api.github.com/users/astaric/repos","events_url":"https://api.github.com/users/astaric/events{/privacy}","received_events_url":"https://api.github.com/users/astaric/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astaric/orange3","description":"","fork":true,"url":"https://api.github.com/repos/astaric/orange3","forks_url":"https://api.github.com/repos/astaric/orange3/forks","keys_url":"https://api.github.com/repos/astaric/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astaric/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astaric/orange3/teams","hooks_url":"https://api.github.com/repos/astaric/orange3/hooks","issue_events_url":"https://api.github.com/repos/astaric/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/astaric/orange3/events","assignees_url":"https://api.github.com/repos/astaric/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/astaric/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/astaric/orange3/tags","blobs_url":"https://api.github.com/repos/astaric/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astaric/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astaric/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/astaric/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astaric/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/astaric/orange3/languages","stargazers_url":"https://api.github.com/repos/astaric/orange3/stargazers","contributors_url":"https://api.github.com/repos/astaric/orange3/contributors","subscribers_url":"https://api.github.com/repos/astaric/orange3/subscribers","subscription_url":"https://api.github.com/repos/astaric/orange3/subscription","commits_url":"https://api.github.com/repos/astaric/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/astaric/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/astaric/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/astaric/orange3/issues/comments/{number}","contents_url":"https://api.github.com/repos/astaric/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/astaric/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astaric/orange3/merges","archive_url":"https://api.github.com/repos/astaric/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astaric/orange3/downloads","issues_url":"https://api.github.com/repos/astaric/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/astaric/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/astaric/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/astaric/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astaric/orange3/labels{/name}","releases_url":"https://api.github.com/repos/astaric/orange3/releases{/id}","created_at":"2013-03-08T09:08:23Z","updated_at":"2014-12-10T12:44:29Z","pushed_at":"2015-02-09T10:45:46Z","git_url":"git://github.com/astaric/orange3.git","ssh_url":"git@github.com:astaric/orange3.git","clone_url":"https://github.com/astaric/orange3.git","svn_url":"https://github.com/astaric/orange3","homepage":null,"size":8197,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"remote"}},"base":{"label":"biolab:master","ref":"master","sha":"5e844f28607a1048a985a470fa2335f272806f1f","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":"","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}","created_at":"2013-02-22T12:52:56Z","updated_at":"2015-02-09T13:56:22Z","pushed_at":"2015-02-09T13:56:21Z","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":null,"size":11246,"stargazers_count":74,"watchers_count":74,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":25,"forks":45,"open_issues":25,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/248"},"html":{"href":"https://github.com/biolab/orange3/pull/248"},"issue":{"href":"https://api.github.com/repos/biolab/orange3/issues/248"},"comments":{"href":"https://api.github.com/repos/biolab/orange3/issues/248/comments"},"review_comments":{"href":"https://api.github.com/repos/biolab/orange3/pulls/248/comments"},"review_comment":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/biolab/orange3/pulls/248/commits"},"statuses":{"href":"https://api.github.com/repos/biolab/orange3/statuses/d6ef6654a9bbe016545cfb72195aaad1fd2e7651"}}}}