{"action":"created","comment":{"url":"https://api.github.com/repos/biolab/orange3/pulls/comments/42502369","id":42502369,"diff_hunk":"@@ -86,3 +87,17 @@ def test_reuse_variables(self):\n \n         self.assertSequenceEqual(t2.domain['x'].values, 'abcdgh')\n         np.testing.assert_almost_equal(t2.X.ravel(), [5, 4, 0, 2, 1])\n+\n+    def test_some_bio_dataset_with_weird_names_and_column_attributes(self):\n+        data = Table(path.join(path.dirname(__file__), 'weird.tab'))\n+        self.assertEqual(len(data), 6)\n+        self.assertEqual(len(data.domain), 7)\n+        self.assertEqual(data.domain[0].name, \"['5534fab7fad58d5df50061f1', '5534fab8fad58d5de20061f8']\")\n+        self.assertEqual(data.domain[6].name, \"['5534fab8fad58d5de20061f6', '5534fab7fad58d5de20061f4']\")\n+        attributes = dict(\n+            Timepoint='0',\n+            id=\"['5534fab9fad58d5de20061fa', '5534fab9fad58d5de20061f9']\",\n+            Name=\"['Gene expressions (dd_AX4_on_Ka_00Hr_bio1_mapped.bam)', 'Gene expressions (dd_AX4_on_Ka_00Hr_bio2_mapped.bam)']\",\n+            Replicate=\"['1', '2']\",","path":"Orange/tests/test_tab_reader.py","position":27,"original_position":27,"commit_id":"614d3f3292afa3bd5468ef4ce7bfde680ee5895f","original_commit_id":"614d3f3292afa3bd5468ef4ce7bfde680ee5895f","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":"@BlazZupan, @janezd, @astaric were these supposed to be proper lists?","created_at":"2015-10-20T14:28:43Z","updated_at":"2015-10-20T14:28:43Z","html_url":"https://github.com/biolab/orange3/pull/759#discussion_r42502369","pull_request_url":"https://api.github.com/repos/biolab/orange3/pulls/759","_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments/42502369"},"html":{"href":"https://github.com/biolab/orange3/pull/759#discussion_r42502369"},"pull_request":{"href":"https://api.github.com/repos/biolab/orange3/pulls/759"}}},"pull_request":{"url":"https://api.github.com/repos/biolab/orange3/pulls/759","id":47887987,"html_url":"https://github.com/biolab/orange3/pull/759","diff_url":"https://github.com/biolab/orange3/pull/759.diff","patch_url":"https://github.com/biolab/orange3/pull/759.patch","issue_url":"https://api.github.com/repos/biolab/orange3/issues/759","number":759,"state":"open","locked":false,"title":"io: New heuristic for discerning headers from data","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":"If the first three lines of a dataset match the three-line header\r\nformat => it's a three-line header (regardless of the column names\r\nused in the first line).\r\n\r\nOtherwise, if the first and second line don't have all-digits in\r\nexactly the same places and not-all-digits everywhere else => it's\r\na single-line header.\r\n\r\nOtherwise, no header.\r\n\r\nAlso, (@BlazZupan) string variables are considered discrete only if at most `int(round(len(values)**.7))` values, so for 5 instances, there can be at most 3 distinct values for the variable to be considered discrete, and for 100, 25.","created_at":"2015-10-16T09:24:22Z","updated_at":"2015-10-20T14:28:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ce4be18ce414ddfb0d38ccc585d3a24f333eb95","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biolab/orange3/pulls/759/commits","review_comments_url":"https://api.github.com/repos/biolab/orange3/pulls/759/comments","review_comment_url":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biolab/orange3/issues/759/comments","statuses_url":"https://api.github.com/repos/biolab/orange3/statuses/614d3f3292afa3bd5468ef4ce7bfde680ee5895f","head":{"label":"kernc:io-fixups","ref":"io-fixups","sha":"614d3f3292afa3bd5468ef4ce7bfde680ee5895f","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},"repo":{"id":34139728,"name":"orange3","full_name":"kernc/orange3","owner":{"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},"private":false,"html_url":"https://github.com/kernc/orange3","description":"","fork":true,"url":"https://api.github.com/repos/kernc/orange3","forks_url":"https://api.github.com/repos/kernc/orange3/forks","keys_url":"https://api.github.com/repos/kernc/orange3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kernc/orange3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kernc/orange3/teams","hooks_url":"https://api.github.com/repos/kernc/orange3/hooks","issue_events_url":"https://api.github.com/repos/kernc/orange3/issues/events{/number}","events_url":"https://api.github.com/repos/kernc/orange3/events","assignees_url":"https://api.github.com/repos/kernc/orange3/assignees{/user}","branches_url":"https://api.github.com/repos/kernc/orange3/branches{/branch}","tags_url":"https://api.github.com/repos/kernc/orange3/tags","blobs_url":"https://api.github.com/repos/kernc/orange3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kernc/orange3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kernc/orange3/git/refs{/sha}","trees_url":"https://api.github.com/repos/kernc/orange3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kernc/orange3/statuses/{sha}","languages_url":"https://api.github.com/repos/kernc/orange3/languages","stargazers_url":"https://api.github.com/repos/kernc/orange3/stargazers","contributors_url":"https://api.github.com/repos/kernc/orange3/contributors","subscribers_url":"https://api.github.com/repos/kernc/orange3/subscribers","subscription_url":"https://api.github.com/repos/kernc/orange3/subscription","commits_url":"https://api.github.com/repos/kernc/orange3/commits{/sha}","git_commits_url":"https://api.github.com/repos/kernc/orange3/git/commits{/sha}","comments_url":"https://api.github.com/repos/kernc/orange3/comments{/number}","issue_comment_url":"https://api.github.com/repos/kernc/orange3/issues/comments{/number}","contents_url":"https://api.github.com/repos/kernc/orange3/contents/{+path}","compare_url":"https://api.github.com/repos/kernc/orange3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kernc/orange3/merges","archive_url":"https://api.github.com/repos/kernc/orange3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kernc/orange3/downloads","issues_url":"https://api.github.com/repos/kernc/orange3/issues{/number}","pulls_url":"https://api.github.com/repos/kernc/orange3/pulls{/number}","milestones_url":"https://api.github.com/repos/kernc/orange3/milestones{/number}","notifications_url":"https://api.github.com/repos/kernc/orange3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kernc/orange3/labels{/name}","releases_url":"https://api.github.com/repos/kernc/orange3/releases{/id}","created_at":"2015-04-17T20:56:32Z","updated_at":"2015-04-17T20:56:34Z","pushed_at":"2015-10-20T14:25:50Z","git_url":"git://github.com/kernc/orange3.git","ssh_url":"git@github.com:kernc/orange3.git","clone_url":"https://github.com/kernc/orange3.git","svn_url":"https://github.com/kernc/orange3","homepage":null,"size":30411,"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":"master"}},"base":{"label":"biolab:master","ref":"master","sha":"1d6aff05dd0026358e07cf767eeead5618f7bc81","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-10-19T04:04:41Z","pushed_at":"2015-10-20T14:25:51Z","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":77036,"stargazers_count":146,"watchers_count":146,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":35,"forks":62,"open_issues":35,"watchers":146,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biolab/orange3/pulls/759"},"html":{"href":"https://github.com/biolab/orange3/pull/759"},"issue":{"href":"https://api.github.com/repos/biolab/orange3/issues/759"},"comments":{"href":"https://api.github.com/repos/biolab/orange3/issues/759/comments"},"review_comments":{"href":"https://api.github.com/repos/biolab/orange3/pulls/759/comments"},"review_comment":{"href":"https://api.github.com/repos/biolab/orange3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biolab/orange3/pulls/759/commits"},"statuses":{"href":"https://api.github.com/repos/biolab/orange3/statuses/614d3f3292afa3bd5468ef4ce7bfde680ee5895f"}}}}