{"action":"created","comment":{"url":"https://api.github.com/repos/pathikrit/better-files/pulls/comments/100888492","pull_request_review_id":21604793,"id":100888492,"diff_hunk":"@@ -0,0 +1,100 @@\n+package better.files\n+\n+import java.nio.charset._\n+import java.nio.{BufferOverflowException, ByteBuffer, CharBuffer}\n+\n+import scala.collection.JavaConverters._\n+\n+/**\n+  * A Unicode charset that handles byte-order markers\n+  *\n+  * @param underlyingCharset Use this charset if no known byte-order marker is detected; use this for encoding too\n+  * @param writeByteOrderMarkers If set, write BOMs while encoding\n+  */\n+class UnicodeCharset(underlyingCharset: Charset, writeByteOrderMarkers: Boolean)\n+  extends Charset(underlyingCharset.name(), underlyingCharset.aliases().asScala.toArray) {\n+  override def newDecoder() = new UnicodeDecoder(underlyingCharset)\n+  override def newEncoder() = if (writeByteOrderMarkers) new BomEncoder(underlyingCharset) else underlyingCharset.newEncoder()\n+  override def contains(cs: Charset) = underlyingCharset.contains(cs)","path":"core/src/main/scala/better/files/UnicodeCharset.scala","position":18,"original_position":18,"commit_id":"61b5925c68340b0d2f9fc48ccab7f18195e8fce4","original_commit_id":"61b5925c68340b0d2f9fc48ccab7f18195e8fce4","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Public method must have explicit type](https://www.codacy.com/app/pathikrit/better-files/pullRequest?prid=515286)","created_at":"2017-02-13T20:21:12Z","updated_at":"2017-02-13T20:21:12Z","html_url":"https://github.com/pathikrit/better-files/pull/108#discussion_r100888492","pull_request_url":"https://api.github.com/repos/pathikrit/better-files/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/pathikrit/better-files/pulls/comments/100888492"},"html":{"href":"https://github.com/pathikrit/better-files/pull/108#discussion_r100888492"},"pull_request":{"href":"https://api.github.com/repos/pathikrit/better-files/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/pathikrit/better-files/pulls/108","id":105834171,"html_url":"https://github.com/pathikrit/better-files/pull/108","diff_url":"https://github.com/pathikrit/better-files/pull/108.diff","patch_url":"https://github.com/pathikrit/better-files/pull/108.patch","issue_url":"https://api.github.com/repos/pathikrit/better-files/issues/108","number":108,"state":"open","locked":false,"title":"Fix #107: Support encoding/decoding of Unicode byte-order markers","user":{"login":"pathikrit","id":899219,"avatar_url":"https://avatars.githubusercontent.com/u/899219?v=3","gravatar_id":"","url":"https://api.github.com/users/pathikrit","html_url":"https://github.com/pathikrit","followers_url":"https://api.github.com/users/pathikrit/followers","following_url":"https://api.github.com/users/pathikrit/following{/other_user}","gists_url":"https://api.github.com/users/pathikrit/gists{/gist_id}","starred_url":"https://api.github.com/users/pathikrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pathikrit/subscriptions","organizations_url":"https://api.github.com/users/pathikrit/orgs","repos_url":"https://api.github.com/users/pathikrit/repos","events_url":"https://api.github.com/users/pathikrit/events{/privacy}","received_events_url":"https://api.github.com/users/pathikrit/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-13T06:02:57Z","updated_at":"2017-02-13T20:21:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f317dfe860048d83d48fc1f6bb0e6e7d778af08","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pathikrit/better-files/pulls/108/commits","review_comments_url":"https://api.github.com/repos/pathikrit/better-files/pulls/108/comments","review_comment_url":"https://api.github.com/repos/pathikrit/better-files/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pathikrit/better-files/issues/108/comments","statuses_url":"https://api.github.com/repos/pathikrit/better-files/statuses/61b5925c68340b0d2f9fc48ccab7f18195e8fce4","head":{"label":"pathikrit:issues/107","ref":"issues/107","sha":"61b5925c68340b0d2f9fc48ccab7f18195e8fce4","user":{"login":"pathikrit","id":899219,"avatar_url":"https://avatars.githubusercontent.com/u/899219?v=3","gravatar_id":"","url":"https://api.github.com/users/pathikrit","html_url":"https://github.com/pathikrit","followers_url":"https://api.github.com/users/pathikrit/followers","following_url":"https://api.github.com/users/pathikrit/following{/other_user}","gists_url":"https://api.github.com/users/pathikrit/gists{/gist_id}","starred_url":"https://api.github.com/users/pathikrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pathikrit/subscriptions","organizations_url":"https://api.github.com/users/pathikrit/orgs","repos_url":"https://api.github.com/users/pathikrit/repos","events_url":"https://api.github.com/users/pathikrit/events{/privacy}","received_events_url":"https://api.github.com/users/pathikrit/received_events","type":"User","site_admin":false},"repo":{"id":42343629,"name":"better-files","full_name":"pathikrit/better-files","owner":{"login":"pathikrit","id":899219,"avatar_url":"https://avatars.githubusercontent.com/u/899219?v=3","gravatar_id":"","url":"https://api.github.com/users/pathikrit","html_url":"https://github.com/pathikrit","followers_url":"https://api.github.com/users/pathikrit/followers","following_url":"https://api.github.com/users/pathikrit/following{/other_user}","gists_url":"https://api.github.com/users/pathikrit/gists{/gist_id}","starred_url":"https://api.github.com/users/pathikrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pathikrit/subscriptions","organizations_url":"https://api.github.com/users/pathikrit/orgs","repos_url":"https://api.github.com/users/pathikrit/repos","events_url":"https://api.github.com/users/pathikrit/events{/privacy}","received_events_url":"https://api.github.com/users/pathikrit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pathikrit/better-files","description":"Simple, safe and intuitive Scala I/O","fork":false,"url":"https://api.github.com/repos/pathikrit/better-files","forks_url":"https://api.github.com/repos/pathikrit/better-files/forks","keys_url":"https://api.github.com/repos/pathikrit/better-files/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pathikrit/better-files/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pathikrit/better-files/teams","hooks_url":"https://api.github.com/repos/pathikrit/better-files/hooks","issue_events_url":"https://api.github.com/repos/pathikrit/better-files/issues/events{/number}","events_url":"https://api.github.com/repos/pathikrit/better-files/events","assignees_url":"https://api.github.com/repos/pathikrit/better-files/assignees{/user}","branches_url":"https://api.github.com/repos/pathikrit/better-files/branches{/branch}","tags_url":"https://api.github.com/repos/pathikrit/better-files/tags","blobs_url":"https://api.github.com/repos/pathikrit/better-files/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pathikrit/better-files/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pathikrit/better-files/git/refs{/sha}","trees_url":"https://api.github.com/repos/pathikrit/better-files/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pathikrit/better-files/statuses/{sha}","languages_url":"https://api.github.com/repos/pathikrit/better-files/languages","stargazers_url":"https://api.github.com/repos/pathikrit/better-files/stargazers","contributors_url":"https://api.github.com/repos/pathikrit/better-files/contributors","subscribers_url":"https://api.github.com/repos/pathikrit/better-files/subscribers","subscription_url":"https://api.github.com/repos/pathikrit/better-files/subscription","commits_url":"https://api.github.com/repos/pathikrit/better-files/commits{/sha}","git_commits_url":"https://api.github.com/repos/pathikrit/better-files/git/commits{/sha}","comments_url":"https://api.github.com/repos/pathikrit/better-files/comments{/number}","issue_comment_url":"https://api.github.com/repos/pathikrit/better-files/issues/comments{/number}","contents_url":"https://api.github.com/repos/pathikrit/better-files/contents/{+path}","compare_url":"https://api.github.com/repos/pathikrit/better-files/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pathikrit/better-files/merges","archive_url":"https://api.github.com/repos/pathikrit/better-files/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pathikrit/better-files/downloads","issues_url":"https://api.github.com/repos/pathikrit/better-files/issues{/number}","pulls_url":"https://api.github.com/repos/pathikrit/better-files/pulls{/number}","milestones_url":"https://api.github.com/repos/pathikrit/better-files/milestones{/number}","notifications_url":"https://api.github.com/repos/pathikrit/better-files/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pathikrit/better-files/labels{/name}","releases_url":"https://api.github.com/repos/pathikrit/better-files/releases{/id}","deployments_url":"https://api.github.com/repos/pathikrit/better-files/deployments","created_at":"2015-09-12T03:48:31Z","updated_at":"2017-02-12T13:19:09Z","pushed_at":"2017-02-13T20:17:31Z","git_url":"git://github.com/pathikrit/better-files.git","ssh_url":"git@github.com:pathikrit/better-files.git","clone_url":"https://github.com/pathikrit/better-files.git","svn_url":"https://github.com/pathikrit/better-files","homepage":"http://git.io/better-files-scaladoc","size":2518,"stargazers_count":762,"watchers_count":762,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":51,"mirror_url":null,"open_issues_count":21,"forks":51,"open_issues":21,"watchers":762,"default_branch":"master"}},"base":{"label":"pathikrit:master","ref":"master","sha":"51c22e863233ae586302e93e6da6c342bf94cf8c","user":{"login":"pathikrit","id":899219,"avatar_url":"https://avatars.githubusercontent.com/u/899219?v=3","gravatar_id":"","url":"https://api.github.com/users/pathikrit","html_url":"https://github.com/pathikrit","followers_url":"https://api.github.com/users/pathikrit/followers","following_url":"https://api.github.com/users/pathikrit/following{/other_user}","gists_url":"https://api.github.com/users/pathikrit/gists{/gist_id}","starred_url":"https://api.github.com/users/pathikrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pathikrit/subscriptions","organizations_url":"https://api.github.com/users/pathikrit/orgs","repos_url":"https://api.github.com/users/pathikrit/repos","events_url":"https://api.github.com/users/pathikrit/events{/privacy}","received_events_url":"https://api.github.com/users/pathikrit/received_events","type":"User","site_admin":false},"repo":{"id":42343629,"name":"better-files","full_name":"pathikrit/better-files","owner":{"login":"pathikrit","id":899219,"avatar_url":"https://avatars.githubusercontent.com/u/899219?v=3","gravatar_id":"","url":"https://api.github.com/users/pathikrit","html_url":"https://github.com/pathikrit","followers_url":"https://api.github.com/users/pathikrit/followers","following_url":"https://api.github.com/users/pathikrit/following{/other_user}","gists_url":"https://api.github.com/users/pathikrit/gists{/gist_id}","starred_url":"https://api.github.com/users/pathikrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pathikrit/subscriptions","organizations_url":"https://api.github.com/users/pathikrit/orgs","repos_url":"https://api.github.com/users/pathikrit/repos","events_url":"https://api.github.com/users/pathikrit/events{/privacy}","received_events_url":"https://api.github.com/users/pathikrit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pathikrit/better-files","description":"Simple, safe and intuitive Scala I/O","fork":false,"url":"https://api.github.com/repos/pathikrit/better-files","forks_url":"https://api.github.com/repos/pathikrit/better-files/forks","keys_url":"https://api.github.com/repos/pathikrit/better-files/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pathikrit/better-files/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pathikrit/better-files/teams","hooks_url":"https://api.github.com/repos/pathikrit/better-files/hooks","issue_events_url":"https://api.github.com/repos/pathikrit/better-files/issues/events{/number}","events_url":"https://api.github.com/repos/pathikrit/better-files/events","assignees_url":"https://api.github.com/repos/pathikrit/better-files/assignees{/user}","branches_url":"https://api.github.com/repos/pathikrit/better-files/branches{/branch}","tags_url":"https://api.github.com/repos/pathikrit/better-files/tags","blobs_url":"https://api.github.com/repos/pathikrit/better-files/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pathikrit/better-files/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pathikrit/better-files/git/refs{/sha}","trees_url":"https://api.github.com/repos/pathikrit/better-files/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pathikrit/better-files/statuses/{sha}","languages_url":"https://api.github.com/repos/pathikrit/better-files/languages","stargazers_url":"https://api.github.com/repos/pathikrit/better-files/stargazers","contributors_url":"https://api.github.com/repos/pathikrit/better-files/contributors","subscribers_url":"https://api.github.com/repos/pathikrit/better-files/subscribers","subscription_url":"https://api.github.com/repos/pathikrit/better-files/subscription","commits_url":"https://api.github.com/repos/pathikrit/better-files/commits{/sha}","git_commits_url":"https://api.github.com/repos/pathikrit/better-files/git/commits{/sha}","comments_url":"https://api.github.com/repos/pathikrit/better-files/comments{/number}","issue_comment_url":"https://api.github.com/repos/pathikrit/better-files/issues/comments{/number}","contents_url":"https://api.github.com/repos/pathikrit/better-files/contents/{+path}","compare_url":"https://api.github.com/repos/pathikrit/better-files/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pathikrit/better-files/merges","archive_url":"https://api.github.com/repos/pathikrit/better-files/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pathikrit/better-files/downloads","issues_url":"https://api.github.com/repos/pathikrit/better-files/issues{/number}","pulls_url":"https://api.github.com/repos/pathikrit/better-files/pulls{/number}","milestones_url":"https://api.github.com/repos/pathikrit/better-files/milestones{/number}","notifications_url":"https://api.github.com/repos/pathikrit/better-files/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pathikrit/better-files/labels{/name}","releases_url":"https://api.github.com/repos/pathikrit/better-files/releases{/id}","deployments_url":"https://api.github.com/repos/pathikrit/better-files/deployments","created_at":"2015-09-12T03:48:31Z","updated_at":"2017-02-12T13:19:09Z","pushed_at":"2017-02-13T20:17:31Z","git_url":"git://github.com/pathikrit/better-files.git","ssh_url":"git@github.com:pathikrit/better-files.git","clone_url":"https://github.com/pathikrit/better-files.git","svn_url":"https://github.com/pathikrit/better-files","homepage":"http://git.io/better-files-scaladoc","size":2518,"stargazers_count":762,"watchers_count":762,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":51,"mirror_url":null,"open_issues_count":21,"forks":51,"open_issues":21,"watchers":762,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pathikrit/better-files/pulls/108"},"html":{"href":"https://github.com/pathikrit/better-files/pull/108"},"issue":{"href":"https://api.github.com/repos/pathikrit/better-files/issues/108"},"comments":{"href":"https://api.github.com/repos/pathikrit/better-files/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/pathikrit/better-files/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/pathikrit/better-files/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pathikrit/better-files/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/pathikrit/better-files/statuses/61b5925c68340b0d2f9fc48ccab7f18195e8fce4"}}}}
{"actor":{"display_login":"codacy-bot"}}