{"action":"created","comment":{"url":"https://api.github.com/repos/billbalancer/app/pulls/comments/78728117","id":78728117,"diff_hunk":"@@ -0,0 +1,56 @@\n+package billbalancer.app.model.repository;\n+\n+import android.content.ContentValues;\n+import android.content.Context;\n+import android.database.Cursor;\n+\n+import billbalancer.app.db.Schema;\n+import billbalancer.app.db.cursor.ApplicationCursorWrapper;\n+import billbalancer.app.db.cursor.BillCursorWrapper;\n+import billbalancer.app.model.Model;\n+import billbalancer.app.model.Part;\n+\n+/**\n+ * Created by lpaniush on 14.09.16.\n+ */\n+public class PartRepository extends Repository {\n+    private PartRepository(Context context) {\n+        super(context);\n+    }\n+\n+    public static Repository getInstance(Context context) {\n+        if (sInstance == null) {\n+            sInstance = new PartRepository(context);","path":"app/src/main/java/billbalancer/app/model/repository/PartRepository.java","position":23,"original_position":23,"commit_id":"608f5d970a7fb5054d363dd0e84f259bf52206fe","original_commit_id":"608f5d970a7fb5054d363dd0e84f259bf52206fe","user":{"login":"jomei","id":2903027,"avatar_url":"https://avatars.githubusercontent.com/u/2903027?v=3","gravatar_id":"","url":"https://api.github.com/users/jomei","html_url":"https://github.com/jomei","followers_url":"https://api.github.com/users/jomei/followers","following_url":"https://api.github.com/users/jomei/following{/other_user}","gists_url":"https://api.github.com/users/jomei/gists{/gist_id}","starred_url":"https://api.github.com/users/jomei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jomei/subscriptions","organizations_url":"https://api.github.com/users/jomei/orgs","repos_url":"https://api.github.com/users/jomei/repos","events_url":"https://api.github.com/users/jomei/events{/privacy}","received_events_url":"https://api.github.com/users/jomei/received_events","type":"User","site_admin":false},"body":"TODO: after merge #23, need to declare Instance as private static member","created_at":"2016-09-14T11:06:07Z","updated_at":"2016-09-14T11:06:07Z","html_url":"https://github.com/billbalancer/app/pull/25#discussion_r78728117","pull_request_url":"https://api.github.com/repos/billbalancer/app/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/billbalancer/app/pulls/comments/78728117"},"html":{"href":"https://github.com/billbalancer/app/pull/25#discussion_r78728117"},"pull_request":{"href":"https://api.github.com/repos/billbalancer/app/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/billbalancer/app/pulls/25","id":85185025,"html_url":"https://github.com/billbalancer/app/pull/25","diff_url":"https://github.com/billbalancer/app/pull/25.diff","patch_url":"https://github.com/billbalancer/app/pull/25.patch","issue_url":"https://api.github.com/repos/billbalancer/app/issues/25","number":25,"state":"open","locked":false,"title":"[#21] Part model","user":{"login":"Yapanyushin","id":11995093,"avatar_url":"https://avatars.githubusercontent.com/u/11995093?v=3","gravatar_id":"","url":"https://api.github.com/users/Yapanyushin","html_url":"https://github.com/Yapanyushin","followers_url":"https://api.github.com/users/Yapanyushin/followers","following_url":"https://api.github.com/users/Yapanyushin/following{/other_user}","gists_url":"https://api.github.com/users/Yapanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/Yapanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yapanyushin/subscriptions","organizations_url":"https://api.github.com/users/Yapanyushin/orgs","repos_url":"https://api.github.com/users/Yapanyushin/repos","events_url":"https://api.github.com/users/Yapanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/Yapanyushin/received_events","type":"User","site_admin":false},"body":"Still have problems:\r\n1. with recursion of accessing  Model objects in creation\r\n2. Is it good practice to fetch data by setMethod and persist with getMethod? Don't we have a problem with data storage and data representation? ","created_at":"2016-09-14T08:22:13Z","updated_at":"2016-09-14T11:06:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2a0b68de1bc61f21515fea1f14050d3cf5b9d95","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/billbalancer/app/pulls/25/commits","review_comments_url":"https://api.github.com/repos/billbalancer/app/pulls/25/comments","review_comment_url":"https://api.github.com/repos/billbalancer/app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/billbalancer/app/issues/25/comments","statuses_url":"https://api.github.com/repos/billbalancer/app/statuses/608f5d970a7fb5054d363dd0e84f259bf52206fe","head":{"label":"Yapanyushin:participant_model","ref":"participant_model","sha":"608f5d970a7fb5054d363dd0e84f259bf52206fe","user":{"login":"Yapanyushin","id":11995093,"avatar_url":"https://avatars.githubusercontent.com/u/11995093?v=3","gravatar_id":"","url":"https://api.github.com/users/Yapanyushin","html_url":"https://github.com/Yapanyushin","followers_url":"https://api.github.com/users/Yapanyushin/followers","following_url":"https://api.github.com/users/Yapanyushin/following{/other_user}","gists_url":"https://api.github.com/users/Yapanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/Yapanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yapanyushin/subscriptions","organizations_url":"https://api.github.com/users/Yapanyushin/orgs","repos_url":"https://api.github.com/users/Yapanyushin/repos","events_url":"https://api.github.com/users/Yapanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/Yapanyushin/received_events","type":"User","site_admin":false},"repo":{"id":60778289,"name":"app","full_name":"Yapanyushin/app","owner":{"login":"Yapanyushin","id":11995093,"avatar_url":"https://avatars.githubusercontent.com/u/11995093?v=3","gravatar_id":"","url":"https://api.github.com/users/Yapanyushin","html_url":"https://github.com/Yapanyushin","followers_url":"https://api.github.com/users/Yapanyushin/followers","following_url":"https://api.github.com/users/Yapanyushin/following{/other_user}","gists_url":"https://api.github.com/users/Yapanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/Yapanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yapanyushin/subscriptions","organizations_url":"https://api.github.com/users/Yapanyushin/orgs","repos_url":"https://api.github.com/users/Yapanyushin/repos","events_url":"https://api.github.com/users/Yapanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/Yapanyushin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yapanyushin/app","description":"Our incredible mobile app","fork":true,"url":"https://api.github.com/repos/Yapanyushin/app","forks_url":"https://api.github.com/repos/Yapanyushin/app/forks","keys_url":"https://api.github.com/repos/Yapanyushin/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yapanyushin/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yapanyushin/app/teams","hooks_url":"https://api.github.com/repos/Yapanyushin/app/hooks","issue_events_url":"https://api.github.com/repos/Yapanyushin/app/issues/events{/number}","events_url":"https://api.github.com/repos/Yapanyushin/app/events","assignees_url":"https://api.github.com/repos/Yapanyushin/app/assignees{/user}","branches_url":"https://api.github.com/repos/Yapanyushin/app/branches{/branch}","tags_url":"https://api.github.com/repos/Yapanyushin/app/tags","blobs_url":"https://api.github.com/repos/Yapanyushin/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yapanyushin/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yapanyushin/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yapanyushin/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yapanyushin/app/statuses/{sha}","languages_url":"https://api.github.com/repos/Yapanyushin/app/languages","stargazers_url":"https://api.github.com/repos/Yapanyushin/app/stargazers","contributors_url":"https://api.github.com/repos/Yapanyushin/app/contributors","subscribers_url":"https://api.github.com/repos/Yapanyushin/app/subscribers","subscription_url":"https://api.github.com/repos/Yapanyushin/app/subscription","commits_url":"https://api.github.com/repos/Yapanyushin/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yapanyushin/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yapanyushin/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yapanyushin/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yapanyushin/app/contents/{+path}","compare_url":"https://api.github.com/repos/Yapanyushin/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yapanyushin/app/merges","archive_url":"https://api.github.com/repos/Yapanyushin/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yapanyushin/app/downloads","issues_url":"https://api.github.com/repos/Yapanyushin/app/issues{/number}","pulls_url":"https://api.github.com/repos/Yapanyushin/app/pulls{/number}","milestones_url":"https://api.github.com/repos/Yapanyushin/app/milestones{/number}","notifications_url":"https://api.github.com/repos/Yapanyushin/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yapanyushin/app/labels{/name}","releases_url":"https://api.github.com/repos/Yapanyushin/app/releases{/id}","deployments_url":"https://api.github.com/repos/Yapanyushin/app/deployments","created_at":"2016-06-09T13:48:28Z","updated_at":"2016-06-28T13:19:39Z","pushed_at":"2016-09-14T08:18:58Z","git_url":"git://github.com/Yapanyushin/app.git","ssh_url":"git@github.com:Yapanyushin/app.git","clone_url":"https://github.com/Yapanyushin/app.git","svn_url":"https://github.com/Yapanyushin/app","homepage":null,"size":126,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"billbalancer:master","ref":"master","sha":"1658ee539e905d28b3beb163409d56752a945bbf","user":{"login":"billbalancer","id":19826097,"avatar_url":"https://avatars.githubusercontent.com/u/19826097?v=3","gravatar_id":"","url":"https://api.github.com/users/billbalancer","html_url":"https://github.com/billbalancer","followers_url":"https://api.github.com/users/billbalancer/followers","following_url":"https://api.github.com/users/billbalancer/following{/other_user}","gists_url":"https://api.github.com/users/billbalancer/gists{/gist_id}","starred_url":"https://api.github.com/users/billbalancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billbalancer/subscriptions","organizations_url":"https://api.github.com/users/billbalancer/orgs","repos_url":"https://api.github.com/users/billbalancer/repos","events_url":"https://api.github.com/users/billbalancer/events{/privacy}","received_events_url":"https://api.github.com/users/billbalancer/received_events","type":"Organization","site_admin":false},"repo":{"id":60727769,"name":"app","full_name":"billbalancer/app","owner":{"login":"billbalancer","id":19826097,"avatar_url":"https://avatars.githubusercontent.com/u/19826097?v=3","gravatar_id":"","url":"https://api.github.com/users/billbalancer","html_url":"https://github.com/billbalancer","followers_url":"https://api.github.com/users/billbalancer/followers","following_url":"https://api.github.com/users/billbalancer/following{/other_user}","gists_url":"https://api.github.com/users/billbalancer/gists{/gist_id}","starred_url":"https://api.github.com/users/billbalancer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billbalancer/subscriptions","organizations_url":"https://api.github.com/users/billbalancer/orgs","repos_url":"https://api.github.com/users/billbalancer/repos","events_url":"https://api.github.com/users/billbalancer/events{/privacy}","received_events_url":"https://api.github.com/users/billbalancer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/billbalancer/app","description":"Our incredible mobile app","fork":false,"url":"https://api.github.com/repos/billbalancer/app","forks_url":"https://api.github.com/repos/billbalancer/app/forks","keys_url":"https://api.github.com/repos/billbalancer/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/billbalancer/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/billbalancer/app/teams","hooks_url":"https://api.github.com/repos/billbalancer/app/hooks","issue_events_url":"https://api.github.com/repos/billbalancer/app/issues/events{/number}","events_url":"https://api.github.com/repos/billbalancer/app/events","assignees_url":"https://api.github.com/repos/billbalancer/app/assignees{/user}","branches_url":"https://api.github.com/repos/billbalancer/app/branches{/branch}","tags_url":"https://api.github.com/repos/billbalancer/app/tags","blobs_url":"https://api.github.com/repos/billbalancer/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/billbalancer/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/billbalancer/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/billbalancer/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/billbalancer/app/statuses/{sha}","languages_url":"https://api.github.com/repos/billbalancer/app/languages","stargazers_url":"https://api.github.com/repos/billbalancer/app/stargazers","contributors_url":"https://api.github.com/repos/billbalancer/app/contributors","subscribers_url":"https://api.github.com/repos/billbalancer/app/subscribers","subscription_url":"https://api.github.com/repos/billbalancer/app/subscription","commits_url":"https://api.github.com/repos/billbalancer/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/billbalancer/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/billbalancer/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/billbalancer/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/billbalancer/app/contents/{+path}","compare_url":"https://api.github.com/repos/billbalancer/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/billbalancer/app/merges","archive_url":"https://api.github.com/repos/billbalancer/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/billbalancer/app/downloads","issues_url":"https://api.github.com/repos/billbalancer/app/issues{/number}","pulls_url":"https://api.github.com/repos/billbalancer/app/pulls{/number}","milestones_url":"https://api.github.com/repos/billbalancer/app/milestones{/number}","notifications_url":"https://api.github.com/repos/billbalancer/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/billbalancer/app/labels{/name}","releases_url":"https://api.github.com/repos/billbalancer/app/releases{/id}","deployments_url":"https://api.github.com/repos/billbalancer/app/deployments","created_at":"2016-06-08T20:14:16Z","updated_at":"2016-06-26T07:11:36Z","pushed_at":"2016-09-14T08:22:13Z","git_url":"git://github.com/billbalancer/app.git","ssh_url":"git@github.com:billbalancer/app.git","clone_url":"https://github.com/billbalancer/app.git","svn_url":"https://github.com/billbalancer/app","homepage":null,"size":127,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/billbalancer/app/pulls/25"},"html":{"href":"https://github.com/billbalancer/app/pull/25"},"issue":{"href":"https://api.github.com/repos/billbalancer/app/issues/25"},"comments":{"href":"https://api.github.com/repos/billbalancer/app/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/billbalancer/app/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/billbalancer/app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/billbalancer/app/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/billbalancer/app/statuses/608f5d970a7fb5054d363dd0e84f259bf52206fe"}}}}
{"actor":{"display_login":"jomei"}}