{"action":"created","comment":{"url":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/comments/41960951","id":41960951,"diff_hunk":"@@ -94,15 +94,15 @@ def main(argv = None):\n \t\t\t\t_verbose = True\n \n \t\t#format filename\n-\t\tfilenames = [x.strip() for x in filenames]\t\t\n-\t\tfilenames = [filenames[k].strip('\\'\\n') for k in range(len(filenames))]\t\t\n-\t\tfor filename in filenames :\t\t\n-\t\t\tif not os.path.isfile(os.path.join(dirFile, filename)):\t\t\n-\t\t\t\tcontinue\t\t\n-\t\t\tfilename = os.path.join(dirFile, filename) if dirFile else filename\t\t\n-\t\t\tfilename_list.append(filename)\t\t\n-\n-\t\tif len(filename_list) <2 :\t\t\n+\t\tfilenames = [x.strip() for x in filenames]\n+\t\tfilenames = [filenames[k].strip('\\'\\n') for k in range(len(filenames))]\n+\t\tfor filename in filenames :\n+\t\t\tif not os.path.isfile(os.path.join(dirFile, filename)):\n+\t\t\t\tcontinue\n+\t\t\tfilename = os.path.join(dirFile, filename) if dirFile else filename\n+\t\t\tfilename_list.append(filename)","path":"similarity.py","position":65,"original_position":65,"commit_id":"9755412460f6cbbbc4a9c171ed93f31c292e211b","original_commit_id":"9755412460f6cbbbc4a9c171ed93f31c292e211b","user":{"login":"harsham05","id":8755540,"avatar_url":"https://avatars.githubusercontent.com/u/8755540?v=3","gravatar_id":"","url":"https://api.github.com/users/harsham05","html_url":"https://github.com/harsham05","followers_url":"https://api.github.com/users/harsham05/followers","following_url":"https://api.github.com/users/harsham05/following{/other_user}","gists_url":"https://api.github.com/users/harsham05/gists{/gist_id}","starred_url":"https://api.github.com/users/harsham05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harsham05/subscriptions","organizations_url":"https://api.github.com/users/harsham05/orgs","repos_url":"https://api.github.com/users/harsham05/repos","events_url":"https://api.github.com/users/harsham05/events{/privacy}","received_events_url":"https://api.github.com/users/harsham05/received_events","type":"User","site_admin":false},"body":"Can you please do the comma fix here?\r\n**filename_list.append(filename.replace(\",\",\"\")**","created_at":"2015-10-14T07:05:33Z","updated_at":"2015-10-14T07:05:33Z","html_url":"https://github.com/chrismattmann/tika-similarity/pull/38#discussion_r41960951","pull_request_url":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/comments/41960951"},"html":{"href":"https://github.com/chrismattmann/tika-similarity/pull/38#discussion_r41960951"},"pull_request":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38","id":47605339,"html_url":"https://github.com/chrismattmann/tika-similarity/pull/38","diff_url":"https://github.com/chrismattmann/tika-similarity/pull/38.diff","patch_url":"https://github.com/chrismattmann/tika-similarity/pull/38.patch","issue_url":"https://api.github.com/repos/chrismattmann/tika-similarity/issues/38","number":38,"state":"open","locked":false,"title":"fix for #34","user":{"login":"ayberk","id":309940,"avatar_url":"https://avatars.githubusercontent.com/u/309940?v=3","gravatar_id":"","url":"https://api.github.com/users/ayberk","html_url":"https://github.com/ayberk","followers_url":"https://api.github.com/users/ayberk/followers","following_url":"https://api.github.com/users/ayberk/following{/other_user}","gists_url":"https://api.github.com/users/ayberk/gists{/gist_id}","starred_url":"https://api.github.com/users/ayberk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayberk/subscriptions","organizations_url":"https://api.github.com/users/ayberk/orgs","repos_url":"https://api.github.com/users/ayberk/repos","events_url":"https://api.github.com/users/ayberk/events{/privacy}","received_events_url":"https://api.github.com/users/ayberk/received_events","type":"User","site_admin":false},"body":"Please see line 116,118 and 129. Other changes due to my editor automatically removing trailing space.","created_at":"2015-10-14T00:22:44Z","updated_at":"2015-10-14T07:05:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdd94664660b57c5fa01ecce89a0c0cd00e45f3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38/commits","review_comments_url":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38/comments","review_comment_url":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chrismattmann/tika-similarity/issues/38/comments","statuses_url":"https://api.github.com/repos/chrismattmann/tika-similarity/statuses/9755412460f6cbbbc4a9c171ed93f31c292e211b","head":{"label":"ayberk:comma-filename-fix","ref":"comma-filename-fix","sha":"9755412460f6cbbbc4a9c171ed93f31c292e211b","user":{"login":"ayberk","id":309940,"avatar_url":"https://avatars.githubusercontent.com/u/309940?v=3","gravatar_id":"","url":"https://api.github.com/users/ayberk","html_url":"https://github.com/ayberk","followers_url":"https://api.github.com/users/ayberk/followers","following_url":"https://api.github.com/users/ayberk/following{/other_user}","gists_url":"https://api.github.com/users/ayberk/gists{/gist_id}","starred_url":"https://api.github.com/users/ayberk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayberk/subscriptions","organizations_url":"https://api.github.com/users/ayberk/orgs","repos_url":"https://api.github.com/users/ayberk/repos","events_url":"https://api.github.com/users/ayberk/events{/privacy}","received_events_url":"https://api.github.com/users/ayberk/received_events","type":"User","site_admin":false},"repo":{"id":44155821,"name":"tika-similarity","full_name":"ayberk/tika-similarity","owner":{"login":"ayberk","id":309940,"avatar_url":"https://avatars.githubusercontent.com/u/309940?v=3","gravatar_id":"","url":"https://api.github.com/users/ayberk","html_url":"https://github.com/ayberk","followers_url":"https://api.github.com/users/ayberk/followers","following_url":"https://api.github.com/users/ayberk/following{/other_user}","gists_url":"https://api.github.com/users/ayberk/gists{/gist_id}","starred_url":"https://api.github.com/users/ayberk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayberk/subscriptions","organizations_url":"https://api.github.com/users/ayberk/orgs","repos_url":"https://api.github.com/users/ayberk/repos","events_url":"https://api.github.com/users/ayberk/events{/privacy}","received_events_url":"https://api.github.com/users/ayberk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ayberk/tika-similarity","description":null,"fork":true,"url":"https://api.github.com/repos/ayberk/tika-similarity","forks_url":"https://api.github.com/repos/ayberk/tika-similarity/forks","keys_url":"https://api.github.com/repos/ayberk/tika-similarity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayberk/tika-similarity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayberk/tika-similarity/teams","hooks_url":"https://api.github.com/repos/ayberk/tika-similarity/hooks","issue_events_url":"https://api.github.com/repos/ayberk/tika-similarity/issues/events{/number}","events_url":"https://api.github.com/repos/ayberk/tika-similarity/events","assignees_url":"https://api.github.com/repos/ayberk/tika-similarity/assignees{/user}","branches_url":"https://api.github.com/repos/ayberk/tika-similarity/branches{/branch}","tags_url":"https://api.github.com/repos/ayberk/tika-similarity/tags","blobs_url":"https://api.github.com/repos/ayberk/tika-similarity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayberk/tika-similarity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayberk/tika-similarity/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayberk/tika-similarity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayberk/tika-similarity/statuses/{sha}","languages_url":"https://api.github.com/repos/ayberk/tika-similarity/languages","stargazers_url":"https://api.github.com/repos/ayberk/tika-similarity/stargazers","contributors_url":"https://api.github.com/repos/ayberk/tika-similarity/contributors","subscribers_url":"https://api.github.com/repos/ayberk/tika-similarity/subscribers","subscription_url":"https://api.github.com/repos/ayberk/tika-similarity/subscription","commits_url":"https://api.github.com/repos/ayberk/tika-similarity/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayberk/tika-similarity/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayberk/tika-similarity/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayberk/tika-similarity/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayberk/tika-similarity/contents/{+path}","compare_url":"https://api.github.com/repos/ayberk/tika-similarity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayberk/tika-similarity/merges","archive_url":"https://api.github.com/repos/ayberk/tika-similarity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayberk/tika-similarity/downloads","issues_url":"https://api.github.com/repos/ayberk/tika-similarity/issues{/number}","pulls_url":"https://api.github.com/repos/ayberk/tika-similarity/pulls{/number}","milestones_url":"https://api.github.com/repos/ayberk/tika-similarity/milestones{/number}","notifications_url":"https://api.github.com/repos/ayberk/tika-similarity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayberk/tika-similarity/labels{/name}","releases_url":"https://api.github.com/repos/ayberk/tika-similarity/releases{/id}","created_at":"2015-10-13T06:13:20Z","updated_at":"2015-10-13T06:13:21Z","pushed_at":"2015-10-14T06:30:35Z","git_url":"git://github.com/ayberk/tika-similarity.git","ssh_url":"git@github.com:ayberk/tika-similarity.git","clone_url":"https://github.com/ayberk/tika-similarity.git","svn_url":"https://github.com/ayberk/tika-similarity","homepage":null,"size":1963,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"chrismattmann:master","ref":"master","sha":"fe4421bf96a55ffd03446cc83551e962bc60d619","user":{"login":"chrismattmann","id":395887,"avatar_url":"https://avatars.githubusercontent.com/u/395887?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismattmann","html_url":"https://github.com/chrismattmann","followers_url":"https://api.github.com/users/chrismattmann/followers","following_url":"https://api.github.com/users/chrismattmann/following{/other_user}","gists_url":"https://api.github.com/users/chrismattmann/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismattmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismattmann/subscriptions","organizations_url":"https://api.github.com/users/chrismattmann/orgs","repos_url":"https://api.github.com/users/chrismattmann/repos","events_url":"https://api.github.com/users/chrismattmann/events{/privacy}","received_events_url":"https://api.github.com/users/chrismattmann/received_events","type":"User","site_admin":false},"repo":{"id":27951697,"name":"tika-similarity","full_name":"chrismattmann/tika-similarity","owner":{"login":"chrismattmann","id":395887,"avatar_url":"https://avatars.githubusercontent.com/u/395887?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismattmann","html_url":"https://github.com/chrismattmann","followers_url":"https://api.github.com/users/chrismattmann/followers","following_url":"https://api.github.com/users/chrismattmann/following{/other_user}","gists_url":"https://api.github.com/users/chrismattmann/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismattmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismattmann/subscriptions","organizations_url":"https://api.github.com/users/chrismattmann/orgs","repos_url":"https://api.github.com/users/chrismattmann/repos","events_url":"https://api.github.com/users/chrismattmann/events{/privacy}","received_events_url":"https://api.github.com/users/chrismattmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrismattmann/tika-similarity","description":null,"fork":false,"url":"https://api.github.com/repos/chrismattmann/tika-similarity","forks_url":"https://api.github.com/repos/chrismattmann/tika-similarity/forks","keys_url":"https://api.github.com/repos/chrismattmann/tika-similarity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrismattmann/tika-similarity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrismattmann/tika-similarity/teams","hooks_url":"https://api.github.com/repos/chrismattmann/tika-similarity/hooks","issue_events_url":"https://api.github.com/repos/chrismattmann/tika-similarity/issues/events{/number}","events_url":"https://api.github.com/repos/chrismattmann/tika-similarity/events","assignees_url":"https://api.github.com/repos/chrismattmann/tika-similarity/assignees{/user}","branches_url":"https://api.github.com/repos/chrismattmann/tika-similarity/branches{/branch}","tags_url":"https://api.github.com/repos/chrismattmann/tika-similarity/tags","blobs_url":"https://api.github.com/repos/chrismattmann/tika-similarity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrismattmann/tika-similarity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrismattmann/tika-similarity/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrismattmann/tika-similarity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrismattmann/tika-similarity/statuses/{sha}","languages_url":"https://api.github.com/repos/chrismattmann/tika-similarity/languages","stargazers_url":"https://api.github.com/repos/chrismattmann/tika-similarity/stargazers","contributors_url":"https://api.github.com/repos/chrismattmann/tika-similarity/contributors","subscribers_url":"https://api.github.com/repos/chrismattmann/tika-similarity/subscribers","subscription_url":"https://api.github.com/repos/chrismattmann/tika-similarity/subscription","commits_url":"https://api.github.com/repos/chrismattmann/tika-similarity/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrismattmann/tika-similarity/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrismattmann/tika-similarity/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrismattmann/tika-similarity/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrismattmann/tika-similarity/contents/{+path}","compare_url":"https://api.github.com/repos/chrismattmann/tika-similarity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrismattmann/tika-similarity/merges","archive_url":"https://api.github.com/repos/chrismattmann/tika-similarity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrismattmann/tika-similarity/downloads","issues_url":"https://api.github.com/repos/chrismattmann/tika-similarity/issues{/number}","pulls_url":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls{/number}","milestones_url":"https://api.github.com/repos/chrismattmann/tika-similarity/milestones{/number}","notifications_url":"https://api.github.com/repos/chrismattmann/tika-similarity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrismattmann/tika-similarity/labels{/name}","releases_url":"https://api.github.com/repos/chrismattmann/tika-similarity/releases{/id}","created_at":"2014-12-13T06:20:06Z","updated_at":"2015-09-21T12:16:50Z","pushed_at":"2015-10-14T06:30:36Z","git_url":"git://github.com/chrismattmann/tika-similarity.git","ssh_url":"git@github.com:chrismattmann/tika-similarity.git","clone_url":"https://github.com/chrismattmann/tika-similarity.git","svn_url":"https://github.com/chrismattmann/tika-similarity","homepage":null,"size":1963,"stargazers_count":14,"watchers_count":14,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":3,"forks":14,"open_issues":3,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38"},"html":{"href":"https://github.com/chrismattmann/tika-similarity/pull/38"},"issue":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/issues/38"},"comments":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/chrismattmann/tika-similarity/statuses/9755412460f6cbbbc4a9c171ed93f31c292e211b"}}}}