{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/comments/69830959","id":69830959,"diff_hunk":"@@ -0,0 +1,49 @@\n+package preprocess\n+\n+import (\n+\t\"bytes\"\n+\n+\t\"golang.org/x/text/encoding/unicode\"\n+)\n+\n+var bomSequences = [][]byte{\n+\t{'\\xef', '\\xbb', '\\xbf'}, // python: codecs.BOM_UTF8\n+\t{'\\xff', '\\xfe'},         // python: codecs.BOM, codecs.BOM_LE, codecs.BOM_UTF16_LE\n+\t{'\\xfe', '\\xff'},         // python: codecs.BOM_BE, codecs.BOM_UTF16_BE\n+}\n+\n+var (\n+\tutf16le = []byte{'\\xff', '\\xfe'}","path":"preprocess/bom.go","position":16,"original_position":16,"commit_id":"9a452504a1dcb63e77911d8f3c2c327224f13591","original_commit_id":"9a452504a1dcb63e77911d8f3c2c327224f13591","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"ah I'm realizing these are leftover..","created_at":"2016-07-06T23:39:27Z","updated_at":"2016-07-06T23:39:27Z","html_url":"https://github.com/Azure/custom-script-extension-linux/pull/2#discussion_r69830959","pull_request_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/comments/69830959"},"html":{"href":"https://github.com/Azure/custom-script-extension-linux/pull/2#discussion_r69830959"},"pull_request":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2","id":76516497,"html_url":"https://github.com/Azure/custom-script-extension-linux/pull/2","diff_url":"https://github.com/Azure/custom-script-extension-linux/pull/2.diff","patch_url":"https://github.com/Azure/custom-script-extension-linux/pull/2.patch","issue_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/issues/2","number":2,"state":"open","locked":false,"title":"preprocess: utils to deal with BOM, DOS, UTF-16","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"body":"Contains the utilities to detect & sanitize text files (i.e. scripts).\r\n\r\n- bom.go: removal of bom chars, utf16 to utf8 conversion\r\n- dos.go: removal of DOS line endings\r\n- file.go: detection of script files via file ext or shebang\r\n\r\nand bunch of test files (inherited from old repo)","created_at":"2016-07-06T23:05:54Z","updated_at":"2016-07-06T23:39:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1add0cf633c1df21980f42cd41e15d9f2c8a4920","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/issues/2/comments","statuses_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/statuses/9a452504a1dcb63e77911d8f3c2c327224f13591","head":{"label":"ahmetalpbalkan:preprocess","ref":"preprocess","sha":"9a452504a1dcb63e77911d8f3c2c327224f13591","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"repo":{"id":62758777,"name":"custom-script-extension-linux-1","full_name":"ahmetalpbalkan/custom-script-extension-linux-1","owner":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahmetalpbalkan/custom-script-extension-linux-1","description":"Azure Custom Script Virtual Machine Extension","fork":true,"url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1","forks_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/forks","keys_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/teams","hooks_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/hooks","issue_events_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/issues/events{/number}","events_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/events","assignees_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/assignees{/user}","branches_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/branches{/branch}","tags_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/tags","blobs_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/statuses/{sha}","languages_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/languages","stargazers_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/stargazers","contributors_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/contributors","subscribers_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/subscribers","subscription_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/subscription","commits_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/contents/{+path}","compare_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/merges","archive_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/downloads","issues_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/issues{/number}","pulls_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/pulls{/number}","milestones_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/milestones{/number}","notifications_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/labels{/name}","releases_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/releases{/id}","deployments_url":"https://api.github.com/repos/ahmetalpbalkan/custom-script-extension-linux-1/deployments","created_at":"2016-07-06T22:59:45Z","updated_at":"2016-07-06T22:41:59Z","pushed_at":"2016-07-06T23:13:35Z","git_url":"git://github.com/ahmetalpbalkan/custom-script-extension-linux-1.git","ssh_url":"git@github.com:ahmetalpbalkan/custom-script-extension-linux-1.git","clone_url":"https://github.com/ahmetalpbalkan/custom-script-extension-linux-1.git","svn_url":"https://github.com/ahmetalpbalkan/custom-script-extension-linux-1","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"Azure:master","ref":"master","sha":"6cedcccf9fb3b8e1ce95a783b2a8e266df2d2164","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":62758014,"name":"custom-script-extension-linux","full_name":"Azure/custom-script-extension-linux","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/custom-script-extension-linux","description":"Azure Custom Script Virtual Machine Extension","fork":false,"url":"https://api.github.com/repos/Azure/custom-script-extension-linux","forks_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/forks","keys_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/teams","hooks_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/hooks","issue_events_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/events","assignees_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/tags","blobs_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/languages","stargazers_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/stargazers","contributors_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/contributors","subscribers_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/subscribers","subscription_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/subscription","commits_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/merges","archive_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/downloads","issues_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/labels{/name}","releases_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/custom-script-extension-linux/deployments","created_at":"2016-07-06T22:41:59Z","updated_at":"2016-07-06T22:41:59Z","pushed_at":"2016-07-06T23:13:35Z","git_url":"git://github.com/Azure/custom-script-extension-linux.git","ssh_url":"git@github.com:Azure/custom-script-extension-linux.git","clone_url":"https://github.com/Azure/custom-script-extension-linux.git","svn_url":"https://github.com/Azure/custom-script-extension-linux","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2"},"html":{"href":"https://github.com/Azure/custom-script-extension-linux/pull/2"},"issue":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/issues/2"},"comments":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/custom-script-extension-linux/statuses/9a452504a1dcb63e77911d8f3c2c327224f13591"}}}}
{"actor":{"display_login":"ahmetalpbalkan"}}