GitHub PullRequestReviewCommentEvent at 2014-08-11 20:10:08
Repository: MaterialDesignColorPalette
Actor: HozakaN
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/comments/16076981","id":16076981,"diff_hunk":"@@ -1,85 +1,72 @@\n package fr.hozakan.materialdesigncolorpalette;\n \n-import android.app.Activity;\n import android.app.Fragment;\n-import android.content.Context;\n import android.os.Bundle;\n import android.view.LayoutInflater;\n import android.view.View;\n import android.view.ViewGroup;\n-import android.widget.Toast;\n+import android.widget.ListView;\n \n-import java.util.ArrayList;\n import java.util.List;\n \n-import fr.hozakan.materialdesigncolorpalette.card.ColorCard;\n-import fr.hozakan.materialdesigncolorpalette.card.ColorCardAdapter;\n-import fr.hozakan.materialdesigncolorpalette.model.PaletteColor;\n-import fr.hozakan.materialdesigncolorpalette.services.PaletteColorService;\n-import it.gmariotti.cardslib.library.view.CardListView;\n+import fr.hozakan.materialdesigncolorpalette.model.ColorCard;\n+import fr.hozakan.materialdesigncolorpalette.adapter.ColorCardAdapter;\n+import fr.hozakan.materialdesigncolorpalette.model.PaletteColorSection;\n+import it.gmariotti.cardslib.library.internal.CardArrayAdapter;\n \n-/**\n- * Created by gimbert on 2014-07-18.\n- */\n-public class PaletteFragment extends Fragment implements ColorCard.ColorCardCallback {\n+public class PaletteFragment extends Fragment {\n \n-    private CardListView mClv;\n-    private PaletteColorService mService;\n+    public static final String ARG_COLOR_SECTION = \"COLOR_SECTION\";\n \n-    private int mPrimaryColor;\n+    private static final String SECTION_KEY = \"SECTION_KEY\";\n+    private static final int SCROLL_TO_TOP_MILLIS = 300;\n \n-    public static PaletteFragment newInstance(int primaryColor) {\n-        PaletteFragment f = new PaletteFragment();\n-        f.mPrimaryColor = primaryColor;\n-        return f;\n-    }\n+    private ListView mListView;\n+    private CardArrayAdapter mAdapter;\n+    private PaletteColorSection mPaletteColorSection = null;\n \n     @Override\n-    public void onCreate(Bundle savedInstanceState) {\n-        super.onCreate(savedInstanceState);\n-        mService = new PaletteColorService(getActivity());\n+    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n+        return mListView = (ListView) inflater.inflate(R.layout.fragment_color_palette, container, false);\n     }\n \n     @Override\n-    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n-        View rootView = inflater.inflate(R.layout.fragment_color_palette, container, false);\n-        return rootView;\n+    public void onActivityCreated(Bundle savedInstanceState) {\n+        super.onActivityCreated(savedInstanceState);\n+        if (savedInstanceState != null) {\n+            mPaletteColorSection = savedInstanceState.getParcelable(SECTION_KEY);\n+        }\n+        if (mPaletteColorSection == null) {\n+            mPaletteColorSection = getArguments().getParcelable(ARG_COLOR_SECTION);\n+        }\n+        final List<ColorCard> colorCardList = getColorCardList();\n+        mAdapter = new ColorCardAdapter<ColorCard>(getActivity(), colorCardList);\n+        mListView.setAdapter(mAdapter);\n     }\n \n     @Override\n-    public void onViewCreated(View view, Bundle savedInstanceState) {\n-        super.onViewCreated(view, savedInstanceState);\n-        mClv = (CardListView) view.findViewById(R.id.palette_card_list);\n-        mClv.setAdapter(new ColorCardAdapter(getActivity(), toCards(mService.getPaletteColors(mPrimaryColor))));\n+    public void onSaveInstanceState(Bundle outState) {\n+        outState.putParcelable(SECTION_KEY, mPaletteColorSection);\n+        super.onSaveInstanceState(outState);\n     }\n \n-    private List<ColorCard> toCards(List<PaletteColor> paletteColors) {\n-        List<ColorCard> cards = new ArrayList<ColorCard>();\n-        for (PaletteColor color : paletteColors) {\n-            cards.add(new ColorCard(getActivity(), color, this));\n+    public void replaceColorCardList(PaletteColorSection paletteColorSection) {\n+        mPaletteColorSection = paletteColorSection;\n+        mAdapter.clear();\n+        mAdapter.addAll(getColorCardList());\n+        mAdapter.notifyDataSetChanged();\n+        if (mAdapter.getCount() > 0) {\n+            mListView.setSelection(0);\n         }\n-        return cards;\n     }\n \n-    @Override\n-    public void copyColorToClipboard(String parentColorName, String colorName, String colorHexa) {\n-        android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE);\n-        android.content.ClipData clip = android.content.ClipData.newPlainText(String.format(\"Color %s %s\", parentColorName, colorName), colorHexa);\n-        clipboard.setPrimaryClip(clip);\n-\n-        Toast.makeText(getActivity(), \"Color copied to clipboard\", Toast.LENGTH_SHORT).show();\n+    public void scollToTop() {\n+        mListView.smoothScrollToPositionFromTop(0, 0, SCROLL_TO_TOP_MILLIS);\n     }\n \n-    @Override\n-    public void onAttach(Activity activity) {\n-        super.onAttach(activity);\n-        if (mService == null) {\n-            mService = new PaletteColorService(getActivity());\n-        }\n-//        ((ColorPaletteActivity) activity).onSectionAttached(NavigationDrawerSections.getPaletteColorName(mPrimaryColor));\n-        List<PaletteColor> colors = mService.getPaletteColors(mPrimaryColor);\n-        if (!colors.isEmpty()) {\n-            ((ColorPaletteActivity) activity).onSectionAttached(activity.getResources().getString(mPrimaryColor), colors.get(0).getHexaId());\n-        }\n+    private List<ColorCard> getColorCardList() {\n+        return ColorCard.getColorCardList(getActivity(),","path":"app/src/main/java/fr/hozakan/materialdesigncolorpalette/PaletteFragment.java","position":null,"original_position":122,"commit_id":"6316618040545ca99306fdaea424f8d45891c67e","original_commit_id":"af43306fc04d0ecf645de63d5703fa4933b28d78","user":{"login":"HozakaN","id":1032452,"avatar_url":"https://avatars.githubusercontent.com/u/1032452?v=2","gravatar_id":"3e0193eb1d887819c462708d03b49cc2","url":"https://api.github.com/users/HozakaN","html_url":"https://github.com/HozakaN","followers_url":"https://api.github.com/users/HozakaN/followers","following_url":"https://api.github.com/users/HozakaN/following{/other_user}","gists_url":"https://api.github.com/users/HozakaN/gists{/gist_id}","starred_url":"https://api.github.com/users/HozakaN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HozakaN/subscriptions","organizations_url":"https://api.github.com/users/HozakaN/orgs","repos_url":"https://api.github.com/users/HozakaN/repos","events_url":"https://api.github.com/users/HozakaN/events{/privacy}","received_events_url":"https://api.github.com/users/HozakaN/received_events","type":"User","site_admin":false},"body":"You are using the activity as context, but the activity can be destroyed, right?\r\nOn configuration change, the fragment, and the card list, are persisted in an \"out bundle\".\r\nYou attach the activity as a context to the ColorCard, creating a reference to a potentially destroyed activity, so, in my mind, it could create a leak.\r\nAm I wrong?","created_at":"2014-08-11T20:10:08Z","updated_at":"2014-08-11T20:10:08Z","html_url":"https://github.com/HozakaN/MaterialDesignColorPalette/pull/1#discussion_r16076981","pull_request_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/comments/16076981"},"html":{"href":"https://github.com/HozakaN/MaterialDesignColorPalette/pull/1#discussion_r16076981"},"pull_request":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1","id":19593182,"html_url":"https://github.com/HozakaN/MaterialDesignColorPalette/pull/1","diff_url":"https://github.com/HozakaN/MaterialDesignColorPalette/pull/1.diff","patch_url":"https://github.com/HozakaN/MaterialDesignColorPalette/pull/1.patch","issue_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/issues/1","number":1,"state":"closed","title":"Fixed up everything.  Please never, ever use configChange.  #1 advice to all Android devs.","user":{"login":"NightlyNexus","id":4032667,"avatar_url":"https://avatars.githubusercontent.com/u/4032667?v=2","gravatar_id":"73731950772d6043cee90ad6a5530fb1","url":"https://api.github.com/users/NightlyNexus","html_url":"https://github.com/NightlyNexus","followers_url":"https://api.github.com/users/NightlyNexus/followers","following_url":"https://api.github.com/users/NightlyNexus/following{/other_user}","gists_url":"https://api.github.com/users/NightlyNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/NightlyNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightlyNexus/subscriptions","organizations_url":"https://api.github.com/users/NightlyNexus/orgs","repos_url":"https://api.github.com/users/NightlyNexus/repos","events_url":"https://api.github.com/users/NightlyNexus/events{/privacy}","received_events_url":"https://api.github.com/users/NightlyNexus/received_events","type":"User","site_admin":false},"body":"Also, note the new color in the navigation drawer.  Oooh, aaah.","created_at":"2014-08-11T10:33:16Z","updated_at":"2014-08-11T20:10:08Z","closed_at":"2014-08-11T17:33:39Z","merged_at":"2014-08-11T17:33:39Z","merge_commit_sha":"23e2e6cec7da9e2ab3f2c00d148a40828d656a02","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1/commits","review_comments_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1/comments","review_comment_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/comments/{number}","comments_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/issues/1/comments","statuses_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/statuses/6316618040545ca99306fdaea424f8d45891c67e","head":{"label":"NightlyNexus:master","ref":"master","sha":"6316618040545ca99306fdaea424f8d45891c67e","user":{"login":"NightlyNexus","id":4032667,"avatar_url":"https://avatars.githubusercontent.com/u/4032667?v=2","gravatar_id":"73731950772d6043cee90ad6a5530fb1","url":"https://api.github.com/users/NightlyNexus","html_url":"https://github.com/NightlyNexus","followers_url":"https://api.github.com/users/NightlyNexus/followers","following_url":"https://api.github.com/users/NightlyNexus/following{/other_user}","gists_url":"https://api.github.com/users/NightlyNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/NightlyNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightlyNexus/subscriptions","organizations_url":"https://api.github.com/users/NightlyNexus/orgs","repos_url":"https://api.github.com/users/NightlyNexus/repos","events_url":"https://api.github.com/users/NightlyNexus/events{/privacy}","received_events_url":"https://api.github.com/users/NightlyNexus/received_events","type":"User","site_admin":false},"repo":{"id":22746008,"name":"MaterialDesignColorPalette","full_name":"NightlyNexus/MaterialDesignColorPalette","owner":{"login":"NightlyNexus","id":4032667,"avatar_url":"https://avatars.githubusercontent.com/u/4032667?v=2","gravatar_id":"73731950772d6043cee90ad6a5530fb1","url":"https://api.github.com/users/NightlyNexus","html_url":"https://github.com/NightlyNexus","followers_url":"https://api.github.com/users/NightlyNexus/followers","following_url":"https://api.github.com/users/NightlyNexus/following{/other_user}","gists_url":"https://api.github.com/users/NightlyNexus/gists{/gist_id}","starred_url":"https://api.github.com/users/NightlyNexus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightlyNexus/subscriptions","organizations_url":"https://api.github.com/users/NightlyNexus/orgs","repos_url":"https://api.github.com/users/NightlyNexus/repos","events_url":"https://api.github.com/users/NightlyNexus/events{/privacy}","received_events_url":"https://api.github.com/users/NightlyNexus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NightlyNexus/MaterialDesignColorPalette","description":"","fork":true,"url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette","forks_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/forks","keys_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/teams","hooks_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/hooks","issue_events_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/issues/events{/number}","events_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/events","assignees_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/assignees{/user}","branches_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/branches{/branch}","tags_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/tags","blobs_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/git/refs{/sha}","trees_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/statuses/{sha}","languages_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/languages","stargazers_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/stargazers","contributors_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/contributors","subscribers_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/subscribers","subscription_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/subscription","commits_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/commits{/sha}","git_commits_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/git/commits{/sha}","comments_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/comments{/number}","issue_comment_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/issues/comments/{number}","contents_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/contents/{+path}","compare_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/merges","archive_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/downloads","issues_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/issues{/number}","pulls_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/pulls{/number}","milestones_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/milestones{/number}","notifications_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/labels{/name}","releases_url":"https://api.github.com/repos/NightlyNexus/MaterialDesignColorPalette/releases{/id}","created_at":"2014-08-08T04:30:33Z","updated_at":"2014-08-11T10:29:53Z","pushed_at":"2014-08-11T15:56:44Z","git_url":"git://github.com/NightlyNexus/MaterialDesignColorPalette.git","ssh_url":"git@github.com:NightlyNexus/MaterialDesignColorPalette.git","clone_url":"https://github.com/NightlyNexus/MaterialDesignColorPalette.git","svn_url":"https://github.com/NightlyNexus/MaterialDesignColorPalette","homepage":null,"size":2536,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HozakaN:master","ref":"master","sha":"c52fb63ceaa50b8bf70bf828a0f3bfd5095a0c89","user":{"login":"HozakaN","id":1032452,"avatar_url":"https://avatars.githubusercontent.com/u/1032452?v=2","gravatar_id":"3e0193eb1d887819c462708d03b49cc2","url":"https://api.github.com/users/HozakaN","html_url":"https://github.com/HozakaN","followers_url":"https://api.github.com/users/HozakaN/followers","following_url":"https://api.github.com/users/HozakaN/following{/other_user}","gists_url":"https://api.github.com/users/HozakaN/gists{/gist_id}","starred_url":"https://api.github.com/users/HozakaN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HozakaN/subscriptions","organizations_url":"https://api.github.com/users/HozakaN/orgs","repos_url":"https://api.github.com/users/HozakaN/repos","events_url":"https://api.github.com/users/HozakaN/events{/privacy}","received_events_url":"https://api.github.com/users/HozakaN/received_events","type":"User","site_admin":false},"repo":{"id":22586011,"name":"MaterialDesignColorPalette","full_name":"HozakaN/MaterialDesignColorPalette","owner":{"login":"HozakaN","id":1032452,"avatar_url":"https://avatars.githubusercontent.com/u/1032452?v=2","gravatar_id":"3e0193eb1d887819c462708d03b49cc2","url":"https://api.github.com/users/HozakaN","html_url":"https://github.com/HozakaN","followers_url":"https://api.github.com/users/HozakaN/followers","following_url":"https://api.github.com/users/HozakaN/following{/other_user}","gists_url":"https://api.github.com/users/HozakaN/gists{/gist_id}","starred_url":"https://api.github.com/users/HozakaN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HozakaN/subscriptions","organizations_url":"https://api.github.com/users/HozakaN/orgs","repos_url":"https://api.github.com/users/HozakaN/repos","events_url":"https://api.github.com/users/HozakaN/events{/privacy}","received_events_url":"https://api.github.com/users/HozakaN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HozakaN/MaterialDesignColorPalette","description":"","fork":false,"url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette","forks_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/forks","keys_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/teams","hooks_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/hooks","issue_events_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/issues/events{/number}","events_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/events","assignees_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/assignees{/user}","branches_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/branches{/branch}","tags_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/tags","blobs_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/git/refs{/sha}","trees_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/statuses/{sha}","languages_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/languages","stargazers_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/stargazers","contributors_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/contributors","subscribers_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/subscribers","subscription_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/subscription","commits_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/commits{/sha}","git_commits_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/git/commits{/sha}","comments_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/comments{/number}","issue_comment_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/issues/comments/{number}","contents_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/contents/{+path}","compare_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/merges","archive_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/downloads","issues_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/issues{/number}","pulls_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls{/number}","milestones_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/milestones{/number}","notifications_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/labels{/name}","releases_url":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/releases{/id}","created_at":"2014-08-03T23:28:09Z","updated_at":"2014-08-11T12:31:46Z","pushed_at":"2014-08-11T19:45:34Z","git_url":"git://github.com/HozakaN/MaterialDesignColorPalette.git","ssh_url":"git@github.com:HozakaN/MaterialDesignColorPalette.git","clone_url":"https://github.com/HozakaN/MaterialDesignColorPalette.git","svn_url":"https://github.com/HozakaN/MaterialDesignColorPalette","homepage":null,"size":2644,"stargazers_count":45,"watchers_count":45,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1"},"html":{"href":"https://github.com/HozakaN/MaterialDesignColorPalette/pull/1"},"issue":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/issues/1"},"comments":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/HozakaN/MaterialDesignColorPalette/statuses/6316618040545ca99306fdaea424f8d45891c67e"}}}}