{"action":"created","comment":{"url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/comments/238195780","pull_request_review_id":180674652,"id":238195780,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODE5NTc4MA==","diff_hunk":"@@ -0,0 +1,70 @@\n+package example.com.lab_3;\n+\n+import android.content.Context;\n+import android.content.SharedPreferences;\n+import android.os.Bundle;\n+import android.widget.ListView;\n+import android.widget.SimpleAdapter;\n+\n+import java.util.ArrayList;\n+import java.util.HashMap;\n+import java.util.Iterator;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.Set;\n+\n+\n+public class ListActivity extends MainActivity {\n+\n+    ListView list;\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.activity_users);\n+        list = findViewById(R.id.usersList);\n+        displayData();\n+    }\n+\n+    private Map<String, String> getUsers() {\n+        SharedPreferences sharedPref = getSharedPreferences(USERS_INFO_VALUE, Context.MODE_PRIVATE);\n+        Map<String, String> usersMap = new HashMap<>();\n+\n+        Set<String> user;\n+        for (int i = 1; i < sharedPref.getAll().size() + 1; i++) {\n+            user = sharedPref.getStringSet(USER_KEY_VALUE + i, null);\n+            assert user != null;\n+            ArrayList<String> userInfo = new ArrayList<>(user);\n+            String fullName, surname = \"\", name = \"\", phone = \"\";\n+            for (int j = 0; j < userInfo.size(); j++) {\n+                String information = userInfo.get(j);\n+                if (information.contains(\"surname: \")) {\n+                    surname = information.split(\"surname: \")[1];\n+                } else if (information.contains(\"name: \")) {\n+                    name = information.split(\"name: \")[1];\n+                } else {\n+                    phone = information.split(\"phone: \")[1];\n+                }\n+            }\n+            fullName = name + \" \" + surname;\n+            usersMap.put(fullName, phone);\n+        }\n+        return usersMap;\n+    }","path":"app/src/main/java/example/com/lab_3/ListActivity.java","position":53,"original_position":53,"commit_id":"046dd15d35ce78eed7beb797680c97eaadc55526","original_commit_id":"046dd15d35ce78eed7beb797680c97eaadc55526","user":{"login":"MarkoKuspis","id":14178460,"node_id":"MDQ6VXNlcjE0MTc4NDYw","avatar_url":"https://avatars1.githubusercontent.com/u/14178460?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkoKuspis","html_url":"https://github.com/MarkoKuspis","followers_url":"https://api.github.com/users/MarkoKuspis/followers","following_url":"https://api.github.com/users/MarkoKuspis/following{/other_user}","gists_url":"https://api.github.com/users/MarkoKuspis/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkoKuspis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkoKuspis/subscriptions","organizations_url":"https://api.github.com/users/MarkoKuspis/orgs","repos_url":"https://api.github.com/users/MarkoKuspis/repos","events_url":"https://api.github.com/users/MarkoKuspis/events{/privacy}","received_events_url":"https://api.github.com/users/MarkoKuspis/received_events","type":"User","site_admin":false},"body":"This method could be simplified a lot. Please put a little bit more work into it","created_at":"2018-12-03T09:36:11Z","updated_at":"2018-12-03T09:39:22Z","html_url":"https://github.com/bodyisnumb/Mobile-Development/pull/3#discussion_r238195780","pull_request_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/comments/238195780"},"html":{"href":"https://github.com/bodyisnumb/Mobile-Development/pull/3#discussion_r238195780"},"pull_request":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3","id":235377758,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1Mzc3NzU4","html_url":"https://github.com/bodyisnumb/Mobile-Development/pull/3","diff_url":"https://github.com/bodyisnumb/Mobile-Development/pull/3.diff","patch_url":"https://github.com/bodyisnumb/Mobile-Development/pull/3.patch","issue_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/3","number":3,"state":"open","locked":false,"title":"lab3-4","user":{"login":"bodyisnumb","id":22319851,"node_id":"MDQ6VXNlcjIyMzE5ODUx","avatar_url":"https://avatars1.githubusercontent.com/u/22319851?v=4","gravatar_id":"","url":"https://api.github.com/users/bodyisnumb","html_url":"https://github.com/bodyisnumb","followers_url":"https://api.github.com/users/bodyisnumb/followers","following_url":"https://api.github.com/users/bodyisnumb/following{/other_user}","gists_url":"https://api.github.com/users/bodyisnumb/gists{/gist_id}","starred_url":"https://api.github.com/users/bodyisnumb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodyisnumb/subscriptions","organizations_url":"https://api.github.com/users/bodyisnumb/orgs","repos_url":"https://api.github.com/users/bodyisnumb/repos","events_url":"https://api.github.com/users/bodyisnumb/events{/privacy}","received_events_url":"https://api.github.com/users/bodyisnumb/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-03T09:30:46Z","updated_at":"2018-12-03T09:39:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3/commits","review_comments_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3/comments","review_comment_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/3/comments","statuses_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/statuses/046dd15d35ce78eed7beb797680c97eaadc55526","head":{"label":"bodyisnumb:lab3-4","ref":"lab3-4","sha":"046dd15d35ce78eed7beb797680c97eaadc55526","user":{"login":"bodyisnumb","id":22319851,"node_id":"MDQ6VXNlcjIyMzE5ODUx","avatar_url":"https://avatars1.githubusercontent.com/u/22319851?v=4","gravatar_id":"","url":"https://api.github.com/users/bodyisnumb","html_url":"https://github.com/bodyisnumb","followers_url":"https://api.github.com/users/bodyisnumb/followers","following_url":"https://api.github.com/users/bodyisnumb/following{/other_user}","gists_url":"https://api.github.com/users/bodyisnumb/gists{/gist_id}","starred_url":"https://api.github.com/users/bodyisnumb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodyisnumb/subscriptions","organizations_url":"https://api.github.com/users/bodyisnumb/orgs","repos_url":"https://api.github.com/users/bodyisnumb/repos","events_url":"https://api.github.com/users/bodyisnumb/events{/privacy}","received_events_url":"https://api.github.com/users/bodyisnumb/received_events","type":"User","site_admin":false},"repo":{"id":150061947,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAwNjE5NDc=","name":"Mobile-Development","full_name":"bodyisnumb/Mobile-Development","private":false,"owner":{"login":"bodyisnumb","id":22319851,"node_id":"MDQ6VXNlcjIyMzE5ODUx","avatar_url":"https://avatars1.githubusercontent.com/u/22319851?v=4","gravatar_id":"","url":"https://api.github.com/users/bodyisnumb","html_url":"https://github.com/bodyisnumb","followers_url":"https://api.github.com/users/bodyisnumb/followers","following_url":"https://api.github.com/users/bodyisnumb/following{/other_user}","gists_url":"https://api.github.com/users/bodyisnumb/gists{/gist_id}","starred_url":"https://api.github.com/users/bodyisnumb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodyisnumb/subscriptions","organizations_url":"https://api.github.com/users/bodyisnumb/orgs","repos_url":"https://api.github.com/users/bodyisnumb/repos","events_url":"https://api.github.com/users/bodyisnumb/events{/privacy}","received_events_url":"https://api.github.com/users/bodyisnumb/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bodyisnumb/Mobile-Development","description":"my  labs","fork":false,"url":"https://api.github.com/repos/bodyisnumb/Mobile-Development","forks_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/forks","keys_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/teams","hooks_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/hooks","issue_events_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/events{/number}","events_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/events","assignees_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/assignees{/user}","branches_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/branches{/branch}","tags_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/tags","blobs_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/statuses/{sha}","languages_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/languages","stargazers_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/stargazers","contributors_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/contributors","subscribers_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/subscribers","subscription_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/subscription","commits_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/contents/{+path}","compare_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/merges","archive_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/downloads","issues_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues{/number}","pulls_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls{/number}","milestones_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/milestones{/number}","notifications_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/labels{/name}","releases_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/releases{/id}","deployments_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/deployments","created_at":"2018-09-24T06:14:12Z","updated_at":"2018-12-03T09:21:07Z","pushed_at":"2018-12-03T09:30:46Z","git_url":"git://github.com/bodyisnumb/Mobile-Development.git","ssh_url":"git@github.com:bodyisnumb/Mobile-Development.git","clone_url":"https://github.com/bodyisnumb/Mobile-Development.git","svn_url":"https://github.com/bodyisnumb/Mobile-Development","homepage":null,"size":146,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bodyisnumb:master","ref":"master","sha":"8ddb5f4bbc637fc3665292839b12df3ea2f4fe64","user":{"login":"bodyisnumb","id":22319851,"node_id":"MDQ6VXNlcjIyMzE5ODUx","avatar_url":"https://avatars1.githubusercontent.com/u/22319851?v=4","gravatar_id":"","url":"https://api.github.com/users/bodyisnumb","html_url":"https://github.com/bodyisnumb","followers_url":"https://api.github.com/users/bodyisnumb/followers","following_url":"https://api.github.com/users/bodyisnumb/following{/other_user}","gists_url":"https://api.github.com/users/bodyisnumb/gists{/gist_id}","starred_url":"https://api.github.com/users/bodyisnumb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodyisnumb/subscriptions","organizations_url":"https://api.github.com/users/bodyisnumb/orgs","repos_url":"https://api.github.com/users/bodyisnumb/repos","events_url":"https://api.github.com/users/bodyisnumb/events{/privacy}","received_events_url":"https://api.github.com/users/bodyisnumb/received_events","type":"User","site_admin":false},"repo":{"id":150061947,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAwNjE5NDc=","name":"Mobile-Development","full_name":"bodyisnumb/Mobile-Development","private":false,"owner":{"login":"bodyisnumb","id":22319851,"node_id":"MDQ6VXNlcjIyMzE5ODUx","avatar_url":"https://avatars1.githubusercontent.com/u/22319851?v=4","gravatar_id":"","url":"https://api.github.com/users/bodyisnumb","html_url":"https://github.com/bodyisnumb","followers_url":"https://api.github.com/users/bodyisnumb/followers","following_url":"https://api.github.com/users/bodyisnumb/following{/other_user}","gists_url":"https://api.github.com/users/bodyisnumb/gists{/gist_id}","starred_url":"https://api.github.com/users/bodyisnumb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodyisnumb/subscriptions","organizations_url":"https://api.github.com/users/bodyisnumb/orgs","repos_url":"https://api.github.com/users/bodyisnumb/repos","events_url":"https://api.github.com/users/bodyisnumb/events{/privacy}","received_events_url":"https://api.github.com/users/bodyisnumb/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bodyisnumb/Mobile-Development","description":"my  labs","fork":false,"url":"https://api.github.com/repos/bodyisnumb/Mobile-Development","forks_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/forks","keys_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/teams","hooks_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/hooks","issue_events_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/events{/number}","events_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/events","assignees_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/assignees{/user}","branches_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/branches{/branch}","tags_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/tags","blobs_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/statuses/{sha}","languages_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/languages","stargazers_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/stargazers","contributors_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/contributors","subscribers_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/subscribers","subscription_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/subscription","commits_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/contents/{+path}","compare_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/merges","archive_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/downloads","issues_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues{/number}","pulls_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls{/number}","milestones_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/milestones{/number}","notifications_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/labels{/name}","releases_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/releases{/id}","deployments_url":"https://api.github.com/repos/bodyisnumb/Mobile-Development/deployments","created_at":"2018-09-24T06:14:12Z","updated_at":"2018-12-03T09:21:07Z","pushed_at":"2018-12-03T09:30:46Z","git_url":"git://github.com/bodyisnumb/Mobile-Development.git","ssh_url":"git@github.com:bodyisnumb/Mobile-Development.git","clone_url":"https://github.com/bodyisnumb/Mobile-Development.git","svn_url":"https://github.com/bodyisnumb/Mobile-Development","homepage":null,"size":146,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3"},"html":{"href":"https://github.com/bodyisnumb/Mobile-Development/pull/3"},"issue":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/3"},"comments":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/bodyisnumb/Mobile-Development/statuses/046dd15d35ce78eed7beb797680c97eaadc55526"}},"author_association":"OWNER"}}
{"actor":{"display_login":"MarkoKuspis"}}