{"action":"created","comment":{"url":"https://api.github.com/repos/imzhenyu/rDSN/pulls/comments/43473163","id":43473163,"diff_hunk":"@@ -0,0 +1,372 @@\n+/*\n+* The MIT License (MIT)\n+*\n+* Copyright (c) 2015 Microsoft Corporation\n+*\n+* -=- Robust Distributed System Nucleus (rDSN) -=-\n+*\n+* Permission is hereby granted, free of charge, to any person obtaining a copy\n+* of this software and associated documentation files (the \"Software\"), to deal\n+* in the Software without restriction, including without limitation the rights\n+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+* copies of the Software, and to permit persons to whom the Software is\n+* furnished to do so, subject to the following conditions:\n+*\n+* The above copyright notice and this permission notice shall be included in\n+* all copies or substantial portions of the Software.\n+*\n+* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+* THE SOFTWARE.\n+*/\n+\n+\n+/************************************************************\n+*   hpc_logger (High-Performance Computing logger)\n+*\n+*   Editor: Chang Lou (v-chlou@microsoft.com)\n+*\n+*\n+*   The structure of the logger is like the following graph.\n+*\n+*   For each thread:\n+*   -------------------------              -------------------------\n+*   |    new single log     |     ->       |                       |\n+*   -------------------------              | --------------------- |\n+*                                          |                       |\n+*                                          | --------------------- |\n+*                                          |                       |\n+*                                          | --------------------- |\n+*                                          |                       |\n+*                                          | --------------------- |\n+*                                                    ...\n+*                                          | --------------------- |\n+*                                          |                       |\n+*                                          -------------------------\n+*                                             buffer (per thread)\n+*                                                      |\n+*                                                      |   when the buffer is full, \n+*                                                      |   push the buffer and buffer size into _write_list,\n+*                                                      |   malloc a new buffer for the thread to use\n+*                                                      V\n+*                  ========================================================================================================== _write_list_lock\n+*\n+*                                            -------------------------------------------------------------      \n+*                                                {buf1, buf1_size} | {buf2, buf2_size} | {buf3, buf3_size} | ...     \n+*                                            -------------------------------------------------------------\n+*                                                              _write_list\n+*\n+*                  ========================================================================================================== _write_list_lock\n+*                                                                   |\n+*                                                                   |   when the _write_list is not empty,\n+*                                                                   |   daemon thread is notified by _write_list_cond\n+*\t                                                                V          \n+*\n+*                                                             Daemon thread \n+*\n+*                                                                   ||\n+*                                                                   ===========>     hpc_log.x.txt\n+*\n+*\tSome other facts:\n+*\t1. The log file size is restricted, when max size is achieved, a new log file will be established.\n+*\t2. When exiting, the logger flushes, in other words, print out the retained log info in buffers of each thread and buffers in the buffer list.\n+\n+************************************************************/\n+\n+# include \"hpc_logger.h\"\n+# include <dsn/internal/singleton_store.h>\n+# include <dsn/cpp/utils.h>\n+# include <dsn/internal/command.h>\n+# include <cstdlib>\n+# include <sstream>\n+# include <fstream>\n+# include <iostream>\n+\n+\n+#define MAX_FILE_SIZE 30 * 1024 * 1024\n+namespace dsn\n+{\n+\tnamespace tools\n+\t{\n+\t\t//store log ptr for each thread\n+\t\ttypedef ::dsn::utils::safe_singleton_store<int, hpc_log_tls_info*> hpc_log_manager;\n+\n+\t\t//log ptr for each thread\n+\t\tstatic __thread hpc_log_tls_info s_hpc_log_tls_info;\n+\n+\t\t//daemon thread\n+\t\tvoid hpc_logger::log_thread()\n+\t\t{\n+\t\t\t_start_index = 0;\n+\t\t\t_index = 0;\n+\n+\t\t\t// check existing log files and decide start_index\n+\t\t\tstd::vector<std::string> sub_list;\n+\t\t\tstd::string path = \"./\";\n+\t\t\tif (!dsn::utils::filesystem::get_subfiles(path, sub_list, false))\n+\t\t\t{\n+\t\t\t\tdassert(false, \"Fail to get subfiles in %s.\", path.c_str());\n+\t\t\t}\n+\n+\t\t\tfor (auto& fpath : sub_list)\n+\t\t\t{\n+\t\t\t\tauto&& name = dsn::utils::filesystem::get_file_name(fpath);\n+\t\t\t\tif (name.length() <= 10 ||\n+\t\t\t\t\tname.substr(0, 8) != \"hpc_log.\")\n+\t\t\t\t\tcontinue;\n+\n+\t\t\t\tint index;\n+\t\t\t\tif (1 != sscanf(name.c_str(), \"hpc_log.%d.txt\", &index))\n+\t\t\t\t\tcontinue;\n+\n+\t\t\t\tif (index > _index)\n+\t\t\t\t\t_index = index;\n+\n+\t\t\t\tif (_start_index == 0 || index < _start_index)\n+\t\t\t\t\t_start_index = index;\n+\t\t\t}\n+\t\t\tsub_list.clear();\n+\n+\t\t\tif (_start_index == 0)\n+\t\t\t\t_start_index = _index;\n+\n+\t\t\t_index++;\n+\n+\t\t\tstd::stringstream log;\n+\t\t\tlog << \"hpc_log.\" << _index << \".txt\";\n+\t\t\t_current_log = new std::ofstream(log.str().c_str(), std::ofstream::out | std::ofstream::app | std::ofstream::binary);\n+\n+\n+\t\t\tstd::list<buffer_info*> saved_list;\n+\n+\t\t\twhile (!_stop_thread || _flush_finish_flag==1)\n+\t\t\t{\n+\t\t\t\t_write_list_lock.lock();\n+\t\t\t\t_write_list_cond.wait(_write_list_lock, [=]{ return  _stop_thread || _write_list.size() > 0; });\n+\t\t\t\tsaved_list = _write_list;\n+\t\t\t\t_write_list.clear();\n+\t\t\t\t_write_list_lock.unlock();\n+\t\t\t\t\n+\t\t\t\tif (_flush_finish_flag == true)\n+\t\t\t\t{\n+\t\t\t\t\twrite_buffer_list(saved_list);\n+\t\t\t\t\t_flush_finish_flag = false;\n+\t\t\t\t}\n+\t\t\t\telse\n+\t\t\t\t\twrite_buffer_list(saved_list);\n+\t\t\t}\n+\n+\t\t\t_current_log->close();\n+\t\t\tdelete _current_log;\n+\t\t}\n+\n+\t\thpc_logger::hpc_logger() :_stop_thread(false), _flush_finish_flag(false)\n+\t\t{\n+\n+\t\t\t_per_thread_buffer_bytes = config()->get_value<int>(\n+\t\t\t\t\"tools.hpc_logger\",\n+\t\t\t\t\"per_thread_buffer_bytes\",\n+\t\t\t\t10 *1024* 1024, // 10 MB by default\n+\t\t\t\t\"buffer size for per-thread logging\"\n+\t\t\t\t);\n+\n+\t\t\t_log_thread = std::thread(&hpc_logger::log_thread, this);\n+\t\t\t\n+\t\t}\n+\n+\t\thpc_logger::~hpc_logger(void)\n+\t\t{\n+\t\t\tif (!_stop_thread)\n+\t\t\t{\n+\t\t\t\t_stop_thread = true;\n+\t\t\t\t_write_list_cond.notify_one();\n+\t\t\t\t_log_thread.join();\n+\t\t\t}\n+\t\t}\n+\n+\t\tvoid hpc_logger::flush()\n+\t\t{\n+\t\t\t//print retained log in the buffers of threads\n+\t\t\thpc_log_flush_all_buffers_at_exit();\n+\t\t\t_flush_finish_flag = true;\n+\n+\t\t\t_stop_thread = true;\n+\t\t\t_write_list_cond.notify_one();\n+\t\t\t_log_thread.join();\n+\t\t}\n+\n+\t\tvoid hpc_logger::hpc_log_flush_all_buffers_at_exit()\n+\t\t{\n+\t\t\tstd::vector<int> threads;\n+\t\t\thpc_log_manager::instance().get_all_keys(threads);\n+\n+\t\t\tfor (auto& tid : threads)\n+\t\t\t{\n+\t\t\t\t__hpc_log_info__* log;\n+\t\t\t\tif (!hpc_log_manager::instance().get(tid, log))\n+\t\t\t\t\tcontinue;\n+\n+\t\t\t\tbuffer_push(log->buffer, log->next_write_ptr - log->buffer);\n+\n+\t\t\t\thpc_log_manager::instance().remove(tid);\n+\n+\t\t\t}\n+\n+\t\t}\n+\n+\n+\t\tvoid hpc_logger::dsn_logv(const char *file,\n+\t\t\tconst char *function,\n+\t\t\tconst int line,\n+\t\t\tdsn_log_level_t log_level,\n+\t\t\tconst char* title,\n+\t\t\tconst char *fmt,\n+\t\t\tva_list args\n+\t\t\t)\n+\t\t{\n+\t\t\tif (s_hpc_log_tls_info.magic != 0xdeadbeef)\n+\t\t\t{\n+\t\t\t\ts_hpc_log_tls_info.buffer = (char*)malloc(_per_thread_buffer_bytes);\n+\t\t\t\ts_hpc_log_tls_info.next_write_ptr = s_hpc_log_tls_info.buffer;\n+\n+\t\t\t\thpc_log_manager::instance().put(::dsn::utils::get_current_tid(), &s_hpc_log_tls_info);\n+\t\t\t\ts_hpc_log_tls_info.magic = 0xdeadbeef;\n+\t\t\t}\n+\n+\t\t\t// get enough write space >= 1K\n+\t\t\tif (s_hpc_log_tls_info.next_write_ptr + 1024 > s_hpc_log_tls_info.buffer + _per_thread_buffer_bytes)\n+\t\t\t{\n+\t\t\t\t//critical section begin\n+\t\t\t\t_write_list_lock.lock();\n+\n+\t\t\t\tbuffer_push(s_hpc_log_tls_info.buffer, s_hpc_log_tls_info.next_write_ptr - s_hpc_log_tls_info.buffer);\n+\n+\t\t\t\tif (_write_list.size() > 0) _write_list_cond.notify_one();\n+\t\t\t\t_write_list_lock.unlock();","path":"src/core/tools/hpc/hpc_logger.cpp","position":249,"original_position":249,"commit_id":"97aeb1c277fac6b2b3feb40c9644c1126d494f30","original_commit_id":"97aeb1c277fac6b2b3feb40c9644c1126d494f30","user":{"login":"imzhenyu","id":6927143,"avatar_url":"https://avatars.githubusercontent.com/u/6927143?v=3","gravatar_id":"","url":"https://api.github.com/users/imzhenyu","html_url":"https://github.com/imzhenyu","followers_url":"https://api.github.com/users/imzhenyu/followers","following_url":"https://api.github.com/users/imzhenyu/following{/other_user}","gists_url":"https://api.github.com/users/imzhenyu/gists{/gist_id}","starred_url":"https://api.github.com/users/imzhenyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imzhenyu/subscriptions","organizations_url":"https://api.github.com/users/imzhenyu/orgs","repos_url":"https://api.github.com/users/imzhenyu/repos","events_url":"https://api.github.com/users/imzhenyu/events{/privacy}","received_events_url":"https://api.github.com/users/imzhenyu/received_events","type":"User","site_admin":false},"body":"this check seems unnecessary?","created_at":"2015-10-30T05:38:21Z","updated_at":"2015-10-30T05:38:21Z","html_url":"https://github.com/imzhenyu/rDSN/pull/6#discussion_r43473163","pull_request_url":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/imzhenyu/rDSN/pulls/comments/43473163"},"html":{"href":"https://github.com/imzhenyu/rDSN/pull/6#discussion_r43473163"},"pull_request":{"href":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6","id":49124273,"html_url":"https://github.com/imzhenyu/rDSN/pull/6","diff_url":"https://github.com/imzhenyu/rDSN/pull/6.diff","patch_url":"https://github.com/imzhenyu/rDSN/pull/6.patch","issue_url":"https://api.github.com/repos/imzhenyu/rDSN/issues/6","number":6,"state":"open","locked":false,"title":"A much simpler version of hpc_logger (_current_log_file_byte fixed)","user":{"login":"mcfatealan","id":4024630,"avatar_url":"https://avatars.githubusercontent.com/u/4024630?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfatealan","html_url":"https://github.com/mcfatealan","followers_url":"https://api.github.com/users/mcfatealan/followers","following_url":"https://api.github.com/users/mcfatealan/following{/other_user}","gists_url":"https://api.github.com/users/mcfatealan/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfatealan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfatealan/subscriptions","organizations_url":"https://api.github.com/users/mcfatealan/orgs","repos_url":"https://api.github.com/users/mcfatealan/repos","events_url":"https://api.github.com/users/mcfatealan/events{/privacy}","received_events_url":"https://api.github.com/users/mcfatealan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-29T10:58:05Z","updated_at":"2015-10-30T05:38:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f58b4d57dd058fbbbadd62a4cc18eb45d034e791","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6/commits","review_comments_url":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6/comments","review_comment_url":"https://api.github.com/repos/imzhenyu/rDSN/pulls/comments{/number}","comments_url":"https://api.github.com/repos/imzhenyu/rDSN/issues/6/comments","statuses_url":"https://api.github.com/repos/imzhenyu/rDSN/statuses/97aeb1c277fac6b2b3feb40c9644c1126d494f30","head":{"label":"mcfatealan:master","ref":"master","sha":"97aeb1c277fac6b2b3feb40c9644c1126d494f30","user":{"login":"mcfatealan","id":4024630,"avatar_url":"https://avatars.githubusercontent.com/u/4024630?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfatealan","html_url":"https://github.com/mcfatealan","followers_url":"https://api.github.com/users/mcfatealan/followers","following_url":"https://api.github.com/users/mcfatealan/following{/other_user}","gists_url":"https://api.github.com/users/mcfatealan/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfatealan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfatealan/subscriptions","organizations_url":"https://api.github.com/users/mcfatealan/orgs","repos_url":"https://api.github.com/users/mcfatealan/repos","events_url":"https://api.github.com/users/mcfatealan/events{/privacy}","received_events_url":"https://api.github.com/users/mcfatealan/received_events","type":"User","site_admin":false},"repo":{"id":42874529,"name":"rDSN","full_name":"mcfatealan/rDSN","owner":{"login":"mcfatealan","id":4024630,"avatar_url":"https://avatars.githubusercontent.com/u/4024630?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfatealan","html_url":"https://github.com/mcfatealan","followers_url":"https://api.github.com/users/mcfatealan/followers","following_url":"https://api.github.com/users/mcfatealan/following{/other_user}","gists_url":"https://api.github.com/users/mcfatealan/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfatealan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfatealan/subscriptions","organizations_url":"https://api.github.com/users/mcfatealan/orgs","repos_url":"https://api.github.com/users/mcfatealan/repos","events_url":"https://api.github.com/users/mcfatealan/events{/privacy}","received_events_url":"https://api.github.com/users/mcfatealan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcfatealan/rDSN","description":"Robust Distributed System Nucleus (rDSN) is an open framework for quickly building and managing high performance and robust distributed systems.","fork":true,"url":"https://api.github.com/repos/mcfatealan/rDSN","forks_url":"https://api.github.com/repos/mcfatealan/rDSN/forks","keys_url":"https://api.github.com/repos/mcfatealan/rDSN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcfatealan/rDSN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcfatealan/rDSN/teams","hooks_url":"https://api.github.com/repos/mcfatealan/rDSN/hooks","issue_events_url":"https://api.github.com/repos/mcfatealan/rDSN/issues/events{/number}","events_url":"https://api.github.com/repos/mcfatealan/rDSN/events","assignees_url":"https://api.github.com/repos/mcfatealan/rDSN/assignees{/user}","branches_url":"https://api.github.com/repos/mcfatealan/rDSN/branches{/branch}","tags_url":"https://api.github.com/repos/mcfatealan/rDSN/tags","blobs_url":"https://api.github.com/repos/mcfatealan/rDSN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcfatealan/rDSN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcfatealan/rDSN/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcfatealan/rDSN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcfatealan/rDSN/statuses/{sha}","languages_url":"https://api.github.com/repos/mcfatealan/rDSN/languages","stargazers_url":"https://api.github.com/repos/mcfatealan/rDSN/stargazers","contributors_url":"https://api.github.com/repos/mcfatealan/rDSN/contributors","subscribers_url":"https://api.github.com/repos/mcfatealan/rDSN/subscribers","subscription_url":"https://api.github.com/repos/mcfatealan/rDSN/subscription","commits_url":"https://api.github.com/repos/mcfatealan/rDSN/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcfatealan/rDSN/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcfatealan/rDSN/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcfatealan/rDSN/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcfatealan/rDSN/contents/{+path}","compare_url":"https://api.github.com/repos/mcfatealan/rDSN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcfatealan/rDSN/merges","archive_url":"https://api.github.com/repos/mcfatealan/rDSN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcfatealan/rDSN/downloads","issues_url":"https://api.github.com/repos/mcfatealan/rDSN/issues{/number}","pulls_url":"https://api.github.com/repos/mcfatealan/rDSN/pulls{/number}","milestones_url":"https://api.github.com/repos/mcfatealan/rDSN/milestones{/number}","notifications_url":"https://api.github.com/repos/mcfatealan/rDSN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcfatealan/rDSN/labels{/name}","releases_url":"https://api.github.com/repos/mcfatealan/rDSN/releases{/id}","created_at":"2015-09-21T15:18:18Z","updated_at":"2015-09-21T15:18:20Z","pushed_at":"2015-10-30T05:32:12Z","git_url":"git://github.com/mcfatealan/rDSN.git","ssh_url":"git@github.com:mcfatealan/rDSN.git","clone_url":"https://github.com/mcfatealan/rDSN.git","svn_url":"https://github.com/mcfatealan/rDSN","homepage":null,"size":44326,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"imzhenyu:master","ref":"master","sha":"9f3f6c909c5d85a4ad8c90798656d65b254a544e","user":{"login":"imzhenyu","id":6927143,"avatar_url":"https://avatars.githubusercontent.com/u/6927143?v=3","gravatar_id":"","url":"https://api.github.com/users/imzhenyu","html_url":"https://github.com/imzhenyu","followers_url":"https://api.github.com/users/imzhenyu/followers","following_url":"https://api.github.com/users/imzhenyu/following{/other_user}","gists_url":"https://api.github.com/users/imzhenyu/gists{/gist_id}","starred_url":"https://api.github.com/users/imzhenyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imzhenyu/subscriptions","organizations_url":"https://api.github.com/users/imzhenyu/orgs","repos_url":"https://api.github.com/users/imzhenyu/repos","events_url":"https://api.github.com/users/imzhenyu/events{/privacy}","received_events_url":"https://api.github.com/users/imzhenyu/received_events","type":"User","site_admin":false},"repo":{"id":37038578,"name":"rDSN","full_name":"imzhenyu/rDSN","owner":{"login":"imzhenyu","id":6927143,"avatar_url":"https://avatars.githubusercontent.com/u/6927143?v=3","gravatar_id":"","url":"https://api.github.com/users/imzhenyu","html_url":"https://github.com/imzhenyu","followers_url":"https://api.github.com/users/imzhenyu/followers","following_url":"https://api.github.com/users/imzhenyu/following{/other_user}","gists_url":"https://api.github.com/users/imzhenyu/gists{/gist_id}","starred_url":"https://api.github.com/users/imzhenyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imzhenyu/subscriptions","organizations_url":"https://api.github.com/users/imzhenyu/orgs","repos_url":"https://api.github.com/users/imzhenyu/repos","events_url":"https://api.github.com/users/imzhenyu/events{/privacy}","received_events_url":"https://api.github.com/users/imzhenyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imzhenyu/rDSN","description":"Robust Distributed System Nucleus (rDSN) is an open framework for quickly building and managing high performance and robust distributed systems.","fork":true,"url":"https://api.github.com/repos/imzhenyu/rDSN","forks_url":"https://api.github.com/repos/imzhenyu/rDSN/forks","keys_url":"https://api.github.com/repos/imzhenyu/rDSN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imzhenyu/rDSN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imzhenyu/rDSN/teams","hooks_url":"https://api.github.com/repos/imzhenyu/rDSN/hooks","issue_events_url":"https://api.github.com/repos/imzhenyu/rDSN/issues/events{/number}","events_url":"https://api.github.com/repos/imzhenyu/rDSN/events","assignees_url":"https://api.github.com/repos/imzhenyu/rDSN/assignees{/user}","branches_url":"https://api.github.com/repos/imzhenyu/rDSN/branches{/branch}","tags_url":"https://api.github.com/repos/imzhenyu/rDSN/tags","blobs_url":"https://api.github.com/repos/imzhenyu/rDSN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imzhenyu/rDSN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imzhenyu/rDSN/git/refs{/sha}","trees_url":"https://api.github.com/repos/imzhenyu/rDSN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imzhenyu/rDSN/statuses/{sha}","languages_url":"https://api.github.com/repos/imzhenyu/rDSN/languages","stargazers_url":"https://api.github.com/repos/imzhenyu/rDSN/stargazers","contributors_url":"https://api.github.com/repos/imzhenyu/rDSN/contributors","subscribers_url":"https://api.github.com/repos/imzhenyu/rDSN/subscribers","subscription_url":"https://api.github.com/repos/imzhenyu/rDSN/subscription","commits_url":"https://api.github.com/repos/imzhenyu/rDSN/commits{/sha}","git_commits_url":"https://api.github.com/repos/imzhenyu/rDSN/git/commits{/sha}","comments_url":"https://api.github.com/repos/imzhenyu/rDSN/comments{/number}","issue_comment_url":"https://api.github.com/repos/imzhenyu/rDSN/issues/comments{/number}","contents_url":"https://api.github.com/repos/imzhenyu/rDSN/contents/{+path}","compare_url":"https://api.github.com/repos/imzhenyu/rDSN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imzhenyu/rDSN/merges","archive_url":"https://api.github.com/repos/imzhenyu/rDSN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imzhenyu/rDSN/downloads","issues_url":"https://api.github.com/repos/imzhenyu/rDSN/issues{/number}","pulls_url":"https://api.github.com/repos/imzhenyu/rDSN/pulls{/number}","milestones_url":"https://api.github.com/repos/imzhenyu/rDSN/milestones{/number}","notifications_url":"https://api.github.com/repos/imzhenyu/rDSN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imzhenyu/rDSN/labels{/name}","releases_url":"https://api.github.com/repos/imzhenyu/rDSN/releases{/id}","created_at":"2015-06-08T00:54:11Z","updated_at":"2015-06-08T00:54:12Z","pushed_at":"2015-10-30T05:32:12Z","git_url":"git://github.com/imzhenyu/rDSN.git","ssh_url":"git@github.com:imzhenyu/rDSN.git","clone_url":"https://github.com/imzhenyu/rDSN.git","svn_url":"https://github.com/imzhenyu/rDSN","homepage":null,"size":44910,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6"},"html":{"href":"https://github.com/imzhenyu/rDSN/pull/6"},"issue":{"href":"https://api.github.com/repos/imzhenyu/rDSN/issues/6"},"comments":{"href":"https://api.github.com/repos/imzhenyu/rDSN/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/imzhenyu/rDSN/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/imzhenyu/rDSN/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/imzhenyu/rDSN/statuses/97aeb1c277fac6b2b3feb40c9644c1126d494f30"}}}}