{"action":"created","comment":{"url":"https://api.github.com/repos/nextcloud/android/pulls/comments/201667962","pull_request_review_id":136212570,"id":201667962,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTY2Nzk2Mg==","diff_hunk":"@@ -0,0 +1,56 @@\n+/**\n+ * Nextcloud Android client application\n+ *\n+ * @author Mario Danic\n+ * Copyright (C) 2017 Nextcloud GmbH.\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+package com.owncloud.android.utils;\n+\n+import android.support.annotation.ColorInt;\n+import android.text.TextUtils;\n+\n+import java.util.regex.Matcher;\n+import java.util.regex.Pattern;\n+\n+/**\n+ * Helper class for handling and manipulation of Strings.\n+ */\n+public class StringUtils {","path":"src/main/java/com/owncloud/android/utils/StringUtils.java","position":32,"original_position":32,"commit_id":"8daa76f1f16bcb5c3ff594773da103deec4101e7","original_commit_id":"8daa76f1f16bcb5c3ff594773da103deec4101e7","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","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://app.codacy.com/assets/images/favicon.png) Issue found: [All methods are static.  Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.](https://app.codacy.com/app/Nextcloud/android/pullRequest?prid=486273)","created_at":"2018-07-11T12:20:01Z","updated_at":"2018-07-11T12:20:01Z","html_url":"https://github.com/nextcloud/android/pull/565#discussion_r201667962","pull_request_url":"https://api.github.com/repos/nextcloud/android/pulls/565","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nextcloud/android/pulls/comments/201667962"},"html":{"href":"https://github.com/nextcloud/android/pull/565#discussion_r201667962"},"pull_request":{"href":"https://api.github.com/repos/nextcloud/android/pulls/565"}}},"pull_request":{"url":"https://api.github.com/repos/nextcloud/android/pulls/565","id":102459345,"node_id":"MDExOlB1bGxSZXF1ZXN0MTAyNDU5MzQ1","html_url":"https://github.com/nextcloud/android/pull/565","diff_url":"https://github.com/nextcloud/android/pull/565.diff","patch_url":"https://github.com/nextcloud/android/pull/565.patch","issue_url":"https://api.github.com/repos/nextcloud/android/issues/565","number":565,"state":"open","locked":false,"title":"Search inside of text files","user":{"login":"mario","id":5810,"node_id":"MDQ6VXNlcjU4MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/5810?v=4","gravatar_id":"","url":"https://api.github.com/users/mario","html_url":"https://github.com/mario","followers_url":"https://api.github.com/users/mario/followers","following_url":"https://api.github.com/users/mario/following{/other_user}","gists_url":"https://api.github.com/users/mario/gists{/gist_id}","starred_url":"https://api.github.com/users/mario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario/subscriptions","organizations_url":"https://api.github.com/users/mario/orgs","repos_url":"https://api.github.com/users/mario/repos","events_url":"https://api.github.com/users/mario/events{/privacy}","received_events_url":"https://api.github.com/users/mario/received_events","type":"User","site_admin":false},"body":"Fixes #454 and \r\nFixes #211\r\n","created_at":"2017-01-20T13:05:31Z","updated_at":"2018-07-11T12:20:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e82b68e8a0bb1125e1f2e59e6f8ff405837f381a","assignee":{"login":"mario","id":5810,"node_id":"MDQ6VXNlcjU4MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/5810?v=4","gravatar_id":"","url":"https://api.github.com/users/mario","html_url":"https://github.com/mario","followers_url":"https://api.github.com/users/mario/followers","following_url":"https://api.github.com/users/mario/following{/other_user}","gists_url":"https://api.github.com/users/mario/gists{/gist_id}","starred_url":"https://api.github.com/users/mario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario/subscriptions","organizations_url":"https://api.github.com/users/mario/orgs","repos_url":"https://api.github.com/users/mario/repos","events_url":"https://api.github.com/users/mario/events{/privacy}","received_events_url":"https://api.github.com/users/mario/received_events","type":"User","site_admin":false},"assignees":[{"login":"mario","id":5810,"node_id":"MDQ6VXNlcjU4MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/5810?v=4","gravatar_id":"","url":"https://api.github.com/users/mario","html_url":"https://github.com/mario","followers_url":"https://api.github.com/users/mario/followers","following_url":"https://api.github.com/users/mario/following{/other_user}","gists_url":"https://api.github.com/users/mario/gists{/gist_id}","starred_url":"https://api.github.com/users/mario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario/subscriptions","organizations_url":"https://api.github.com/users/mario/orgs","repos_url":"https://api.github.com/users/mario/repos","events_url":"https://api.github.com/users/mario/events{/privacy}","received_events_url":"https://api.github.com/users/mario/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":392413733,"node_id":"MDU6TGFiZWwzOTI0MTM3MzM=","url":"https://api.github.com/repos/nextcloud/android/labels/1.%20developing","name":"1. developing","color":"0052cc","default":false},{"id":388626763,"node_id":"MDU6TGFiZWwzODg2MjY3NjM=","url":"https://api.github.com/repos/nextcloud/android/labels/enhancement","name":"enhancement","color":"0e8a16","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/nextcloud/android/pulls/565/commits","review_comments_url":"https://api.github.com/repos/nextcloud/android/pulls/565/comments","review_comment_url":"https://api.github.com/repos/nextcloud/android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/565/comments","statuses_url":"https://api.github.com/repos/nextcloud/android/statuses/8daa76f1f16bcb5c3ff594773da103deec4101e7","head":{"label":"nextcloud:bugfix-454","ref":"bugfix-454","sha":"8daa76f1f16bcb5c3ff594773da103deec4101e7","user":{"login":"nextcloud","id":19211038,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjExMDM4","avatar_url":"https://avatars1.githubusercontent.com/u/19211038?v=4","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":60561834,"node_id":"MDEwOlJlcG9zaXRvcnk2MDU2MTgzNA==","name":"android","full_name":"nextcloud/android","owner":{"login":"nextcloud","id":19211038,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjExMDM4","avatar_url":"https://avatars1.githubusercontent.com/u/19211038?v=4","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nextcloud/android","description":"📱 Nextcloud Android app","fork":false,"url":"https://api.github.com/repos/nextcloud/android","forks_url":"https://api.github.com/repos/nextcloud/android/forks","keys_url":"https://api.github.com/repos/nextcloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nextcloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nextcloud/android/teams","hooks_url":"https://api.github.com/repos/nextcloud/android/hooks","issue_events_url":"https://api.github.com/repos/nextcloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/nextcloud/android/events","assignees_url":"https://api.github.com/repos/nextcloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/nextcloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/nextcloud/android/tags","blobs_url":"https://api.github.com/repos/nextcloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nextcloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nextcloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/nextcloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nextcloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/nextcloud/android/languages","stargazers_url":"https://api.github.com/repos/nextcloud/android/stargazers","contributors_url":"https://api.github.com/repos/nextcloud/android/contributors","subscribers_url":"https://api.github.com/repos/nextcloud/android/subscribers","subscription_url":"https://api.github.com/repos/nextcloud/android/subscription","commits_url":"https://api.github.com/repos/nextcloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/nextcloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/nextcloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/nextcloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/nextcloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/nextcloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nextcloud/android/merges","archive_url":"https://api.github.com/repos/nextcloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nextcloud/android/downloads","issues_url":"https://api.github.com/repos/nextcloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/nextcloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/nextcloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/nextcloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nextcloud/android/labels{/name}","releases_url":"https://api.github.com/repos/nextcloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/nextcloud/android/deployments","created_at":"2016-06-06T21:23:36Z","updated_at":"2018-07-11T00:46:06Z","pushed_at":"2018-07-11T12:18:30Z","git_url":"git://github.com/nextcloud/android.git","ssh_url":"git@github.com:nextcloud/android.git","clone_url":"https://github.com/nextcloud/android.git","svn_url":"https://github.com/nextcloud/android","homepage":"https://play.google.com/store/apps/details?id=com.nextcloud.client","size":99052,"stargazers_count":799,"watchers_count":799,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":444,"mirror_url":null,"archived":false,"open_issues_count":646,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":444,"open_issues":646,"watchers":799,"default_branch":"master"}},"base":{"label":"nextcloud:master","ref":"master","sha":"532d2a1b3578293b0545c7d243a09f8dd530d341","user":{"login":"nextcloud","id":19211038,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjExMDM4","avatar_url":"https://avatars1.githubusercontent.com/u/19211038?v=4","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":60561834,"node_id":"MDEwOlJlcG9zaXRvcnk2MDU2MTgzNA==","name":"android","full_name":"nextcloud/android","owner":{"login":"nextcloud","id":19211038,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MjExMDM4","avatar_url":"https://avatars1.githubusercontent.com/u/19211038?v=4","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nextcloud/android","description":"📱 Nextcloud Android app","fork":false,"url":"https://api.github.com/repos/nextcloud/android","forks_url":"https://api.github.com/repos/nextcloud/android/forks","keys_url":"https://api.github.com/repos/nextcloud/android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nextcloud/android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nextcloud/android/teams","hooks_url":"https://api.github.com/repos/nextcloud/android/hooks","issue_events_url":"https://api.github.com/repos/nextcloud/android/issues/events{/number}","events_url":"https://api.github.com/repos/nextcloud/android/events","assignees_url":"https://api.github.com/repos/nextcloud/android/assignees{/user}","branches_url":"https://api.github.com/repos/nextcloud/android/branches{/branch}","tags_url":"https://api.github.com/repos/nextcloud/android/tags","blobs_url":"https://api.github.com/repos/nextcloud/android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nextcloud/android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nextcloud/android/git/refs{/sha}","trees_url":"https://api.github.com/repos/nextcloud/android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nextcloud/android/statuses/{sha}","languages_url":"https://api.github.com/repos/nextcloud/android/languages","stargazers_url":"https://api.github.com/repos/nextcloud/android/stargazers","contributors_url":"https://api.github.com/repos/nextcloud/android/contributors","subscribers_url":"https://api.github.com/repos/nextcloud/android/subscribers","subscription_url":"https://api.github.com/repos/nextcloud/android/subscription","commits_url":"https://api.github.com/repos/nextcloud/android/commits{/sha}","git_commits_url":"https://api.github.com/repos/nextcloud/android/git/commits{/sha}","comments_url":"https://api.github.com/repos/nextcloud/android/comments{/number}","issue_comment_url":"https://api.github.com/repos/nextcloud/android/issues/comments{/number}","contents_url":"https://api.github.com/repos/nextcloud/android/contents/{+path}","compare_url":"https://api.github.com/repos/nextcloud/android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nextcloud/android/merges","archive_url":"https://api.github.com/repos/nextcloud/android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nextcloud/android/downloads","issues_url":"https://api.github.com/repos/nextcloud/android/issues{/number}","pulls_url":"https://api.github.com/repos/nextcloud/android/pulls{/number}","milestones_url":"https://api.github.com/repos/nextcloud/android/milestones{/number}","notifications_url":"https://api.github.com/repos/nextcloud/android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nextcloud/android/labels{/name}","releases_url":"https://api.github.com/repos/nextcloud/android/releases{/id}","deployments_url":"https://api.github.com/repos/nextcloud/android/deployments","created_at":"2016-06-06T21:23:36Z","updated_at":"2018-07-11T00:46:06Z","pushed_at":"2018-07-11T12:18:30Z","git_url":"git://github.com/nextcloud/android.git","ssh_url":"git@github.com:nextcloud/android.git","clone_url":"https://github.com/nextcloud/android.git","svn_url":"https://github.com/nextcloud/android","homepage":"https://play.google.com/store/apps/details?id=com.nextcloud.client","size":99052,"stargazers_count":799,"watchers_count":799,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":444,"mirror_url":null,"archived":false,"open_issues_count":646,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":444,"open_issues":646,"watchers":799,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nextcloud/android/pulls/565"},"html":{"href":"https://github.com/nextcloud/android/pull/565"},"issue":{"href":"https://api.github.com/repos/nextcloud/android/issues/565"},"comments":{"href":"https://api.github.com/repos/nextcloud/android/issues/565/comments"},"review_comments":{"href":"https://api.github.com/repos/nextcloud/android/pulls/565/comments"},"review_comment":{"href":"https://api.github.com/repos/nextcloud/android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nextcloud/android/pulls/565/commits"},"statuses":{"href":"https://api.github.com/repos/nextcloud/android/statuses/8daa76f1f16bcb5c3ff594773da103deec4101e7"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}