{"action":"created","comment":{"url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/comments/61839406","id":61839406,"diff_hunk":"@@ -0,0 +1,217 @@\n+/**\n+ *   Copyright 2016, Quickstep Research Group, Computer Sciences Department,\n+ *     University of Wisconsin—Madison.\n+ *\n+ *   Licensed under the Apache License, Version 2.0 (the \"License\");\n+ *   you may not use this file except in compliance with the License.\n+ *   You may obtain a copy of the License at\n+ *\n+ *       http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *   Unless required by applicable law or agreed to in writing, software\n+ *   distributed under the License is distributed on an \"AS IS\" BASIS,\n+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ *   See the License for the specific language governing permissions and\n+ *   limitations under the License.\n+ **/\n+\n+#include \"transaction/LockManager.hpp\"\n+\n+#include <stack>\n+#include <utility>\n+#include <vector>\n+\n+#include \"threading/Mutex.hpp\"\n+#include \"threading/Thread.hpp\"\n+#include \"transaction/AccessMode.hpp\"\n+#include \"transaction/DeadLockDetector.hpp\"\n+#include \"transaction/LockRequest.hpp\"\n+#include \"transaction/LockTable.hpp\"\n+#include \"transaction/ResourceId.hpp\"\n+#include \"transaction/Transaction.hpp\"\n+#include \"transaction/TransactionTable.hpp\"\n+\n+#include \"glog/logging.h\"\n+\n+namespace quickstep {\n+namespace transaction {\n+\n+LockManager::LockManager(ThreadSafeQueue<LockRequest> *incoming_requests,\n+                         ThreadSafeQueue<LockRequest> *permitted_requests)\n+    : lock_table_(std::make_unique<LockTable>()),\n+      transaction_table_(std::make_unique<TransactionTable>()),\n+      detector_status_(DeadLockDetectorStatus::kNotReady),\n+      deadlock_detector_(std::make_unique<DeadLockDetector>(lock_table_.get(),\n+                                                            &detector_status_,\n+                                                            &victim_result_)),\n+      incoming_requests_(*incoming_requests),\n+      permitted_requests_(*permitted_requests),\n+      inner_pending_requests_() {\n+}\n+\n+LockManager::~LockManager() {\n+  deadlock_detector_->join();\n+}\n+\n+void LockManager::run() {\n+  deadlock_detector_->start();\n+\n+  constexpr std::uint64_t kMaxTryIncoming = 10000;\n+  constexpr std::uint64_t kMaxTryInner = 6000;\n+\n+  while (true) {\n+    for (std::uint64_t tries = 0; tries < kMaxTryIncoming; ++tries) {\n+      if (!incoming_requests_.empty()) {\n+        const LockRequest request = incoming_requests_.popOne();\n+        if (request.getRequestType() == RequestType::kReleaseLocks) {\n+          CHECK(releaseAllLocks(request.getTransactionId()))\n+              << \"Unexpected condition occured.\";\n+\n+        } else if (acquireLock(request.getTransactionId(),\n+                               request.getResourceId(),\n+                               request.getAccessMode())) {\n+          LOG(INFO) << \"Transaction \"\n+                       + std::to_string(request.getTransactionId())\n+                       + \" is waiting \" + request.getResourceId().toString();\n+\n+            inner_pending_requests_.push(request);\n+        } else {\n+            LOG(INFO) << \"Transaction \"\n+                         + std::to_string(request.getTransactionId())\n+                         + \" acquired \" + request.getResourceId().toString();\n+\n+            permitted_requests_.push(request);\n+        }\n+      }\n+    }\n+\n+    for (std::uint64_t tries = 0; tries < kMaxTryInner; ++tries) {\n+      if (!inner_pending_requests_.empty()) {\n+        const LockRequest request = inner_pending_requests_.front();\n+\n+        if (acquireLock(request.getTransactionId(), request.getResourceId(),\n+                        request.getAccessMode())) {\n+          inner_pending_requests_.pop();\n+          permitted_requests_.push(request);\n+        }\n+      }\n+    }\n+\n+    // Resolve deadlocks.\n+    killVictims();\n+  }\n+}\n+\n+bool LockManager::acquireLock(const transaction_id tid,\n+                              const ResourceId &rid,\n+                              const AccessMode access_mode) {\n+  std::stack<std::pair<ResourceId, AccessMode>> stack;\n+  ResourceId current_rid = rid;\n+  AccessMode current_access_mode = access_mode;\n+  stack.push(std::make_pair(current_rid, current_access_mode));\n+\n+  while (current_rid.hasParent()) {\n+    current_rid = current_rid.getParentResourceId();\n+    current_access_mode = (current_access_mode.isShareLock() ||\n+                           current_access_mode.isIntentionShareLock())\n+                              ? AccessMode(AccessModeType::kIsLock)\n+                              : AccessMode(AccessModeType::kIxLock);\n+\n+    stack.push(std::make_pair(current_rid, current_access_mode));\n+  }\n+\n+  lock_table_->latchExclusive();\n+\n+  while (!stack.empty()) {\n+    const std::pair<ResourceId, AccessMode> pair_to_pick = stack.top();\n+    const ResourceId rid_to_pick = pair_to_pick.first;\n+    const AccessMode access_mode_to_pick = pair_to_pick.second;\n+\n+    if (!acquireLockInternal(tid, rid_to_pick, access_mode_to_pick)) {\n+      lock_table_->unlatchExclusive();\n+      return false;\n+    }\n+    stack.pop();\n+  }\n+  lock_table_->unlatchExclusive();\n+  return true;\n+}\n+\n+bool LockManager::releaseAllLocks(const transaction_id tid) {\n+  const std::vector<ResourceId> resource_ids\n+      = transaction_table_->getResourceIdList(tid);\n+  const TransactionTableResult transaction_deleted\n+      = transaction_table_->deleteTransaction(tid);\n+  if (transaction_deleted\n+          == TransactionTableResult::kTransactionDeleteError) {\n+    LOG(FATAL)\n+        << \"In LockManager.releaseAllLocks: Transaction could not be deleted!\";\n+  }\n+\n+  lock_table_->latchExclusive();\n+\n+  for (const auto &resource_id : resource_ids) {\n+    const LockTableResult lock_deleted = lock_table_->deleteLock(tid, resource_id);\n+\n+    LOG(INFO) << \"Transaction \"\n+                 + std::to_string(tid)\n+                 + \" released lock:\"\n+                 + resource_id.toString()\n+                 + \"\\n\";\n+\n+    if (lock_deleted == LockTableResult::kDeleteError) {\n+      LOG(FATAL) << \"In LockManager.releaseAllLock lock could not be deleted \"\n+                    \"from LockTable\";\n+    }\n+  }\n+\n+  lock_table_->unlatchExclusive();\n+  return true;\n+}\n+\n+bool LockManager::acquireLockInternal(const transaction_id tid,\n+                                      const ResourceId &rid,\n+                                      const AccessMode access_mode) {\n+  const LockTableResult lock_result = lock_table_->putLock(tid, rid, access_mode);\n+  CHECK(lock_result != LockTableResult::kPutError)\n+      << \"Unexpected result in LockManager.acquireLockInternal\";\n+\n+  if (lock_result == LockTableResult::kAlreadyInOwned) {\n+    return true;\n+  } else if (lock_result == LockTableResult::kPlacedInOwned) {\n+    const TransactionTableResult transaction_result\n+        = transaction_table_->putOwnEntry(tid, rid, access_mode);\n+    CHECK(transaction_result == TransactionTableResult::kPlacedInOwned)\n+        << \"Unexpected result in LockManager.acquireLockInternal: \"\n+           \"Mismatch of table results (No.1).\";\n+    return true;\n+  } else if (lock_result == LockTableResult::kAlreadyInPending) {\n+    return false;\n+  } else if (lock_result == LockTableResult::kPlacedInPending) {\n+    const TransactionTableResult transaction_result =\n+      transaction_table_->putPendingEntry(tid, rid, access_mode);\n+    CHECK(transaction_result == TransactionTableResult::kPlacedInPending)\n+        << \"Unexpected result in LockManager.acquireLockInternal: \"\n+           \"Mismatch of table results (No.2).\";\n+    return false;\n+  }\n+  return false;\n+}\n+\n+void LockManager::killVictims() {\n+  // TODO(Hakan): Find a method to latch this function\n+  //              (it cannot because it calls releaseLocks)\n+  if (detector_status_.load() == DeadLockDetectorStatus::kDone) {\n+    for (const auto victim_transaction_id : victim_result_) {\n+      releaseAllLocks(victim_transaction_id);\n+      // TODO(Hakan): Find a way to kill transaction, so that requests with this\n+      //              tid should be ignored.\n+      LOG(INFO) << \"Killed transaction \" + std::to_string(victim_transaction_id);","path":"transaction/LockManager.cpp","position":209,"original_position":209,"commit_id":"78bf241f1d800b7f13b2c2e8e06aec91fb358f2d","original_commit_id":"55745986e3174c9a665d14a433d2af1887896dbf","user":{"login":"zuyu","id":2245572,"avatar_url":"https://avatars.githubusercontent.com/u/2245572?v=3","gravatar_id":"","url":"https://api.github.com/users/zuyu","html_url":"https://github.com/zuyu","followers_url":"https://api.github.com/users/zuyu/followers","following_url":"https://api.github.com/users/zuyu/following{/other_user}","gists_url":"https://api.github.com/users/zuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuyu/subscriptions","organizations_url":"https://api.github.com/users/zuyu/orgs","repos_url":"https://api.github.com/users/zuyu/repos","events_url":"https://api.github.com/users/zuyu/events{/privacy}","received_events_url":"https://api.github.com/users/zuyu/received_events","type":"User","site_admin":false},"body":"Check out `glog` for the thread safe options.","created_at":"2016-05-03T05:24:07Z","updated_at":"2016-05-03T05:24:07Z","html_url":"https://github.com/pivotalsoftware/quickstep/pull/187#discussion_r61839406","pull_request_url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/comments/61839406"},"html":{"href":"https://github.com/pivotalsoftware/quickstep/pull/187#discussion_r61839406"},"pull_request":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187","id":67446262,"html_url":"https://github.com/pivotalsoftware/quickstep/pull/187","diff_url":"https://github.com/pivotalsoftware/quickstep/pull/187.diff","patch_url":"https://github.com/pivotalsoftware/quickstep/pull/187.patch","issue_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/187","number":187,"state":"open","locked":false,"title":"Transaction Part 4: LockManager, CycleDetector and DeadLockDetector.","user":{"login":"hakanmemisoglu","id":2506341,"avatar_url":"https://avatars.githubusercontent.com/u/2506341?v=3","gravatar_id":"","url":"https://api.github.com/users/hakanmemisoglu","html_url":"https://github.com/hakanmemisoglu","followers_url":"https://api.github.com/users/hakanmemisoglu/followers","following_url":"https://api.github.com/users/hakanmemisoglu/following{/other_user}","gists_url":"https://api.github.com/users/hakanmemisoglu/gists{/gist_id}","starred_url":"https://api.github.com/users/hakanmemisoglu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakanmemisoglu/subscriptions","organizations_url":"https://api.github.com/users/hakanmemisoglu/orgs","repos_url":"https://api.github.com/users/hakanmemisoglu/repos","events_url":"https://api.github.com/users/hakanmemisoglu/events{/privacy}","received_events_url":"https://api.github.com/users/hakanmemisoglu/received_events","type":"User","site_admin":false},"body":"This PR introduces the last piece of the transaction module:\r\n\r\n- LockManager: This is the entry point for the module. All outside interaction will happen via this class.\r\n\r\n- DeadLockDetector: This class contains the logic for deadlock detection and selection of victims.\r\n\r\n- CycleDetector: This class will be used by DeadLockDetector for detection of the cycles in the wait-for graph.","created_at":"2016-04-22T01:19:18Z","updated_at":"2016-05-03T05:24:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc1749dae94a69fcc48f56aa76726bb73c4375e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187/commits","review_comments_url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187/comments","review_comment_url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/187/comments","statuses_url":"https://api.github.com/repos/pivotalsoftware/quickstep/statuses/78bf241f1d800b7f13b2c2e8e06aec91fb358f2d","head":{"label":"pivotalsoftware:transaction-part4","ref":"transaction-part4","sha":"78bf241f1d800b7f13b2c2e8e06aec91fb358f2d","user":{"login":"pivotalsoftware","id":4247270,"avatar_url":"https://avatars.githubusercontent.com/u/4247270?v=3","gravatar_id":"","url":"https://api.github.com/users/pivotalsoftware","html_url":"https://github.com/pivotalsoftware","followers_url":"https://api.github.com/users/pivotalsoftware/followers","following_url":"https://api.github.com/users/pivotalsoftware/following{/other_user}","gists_url":"https://api.github.com/users/pivotalsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotalsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotalsoftware/subscriptions","organizations_url":"https://api.github.com/users/pivotalsoftware/orgs","repos_url":"https://api.github.com/users/pivotalsoftware/repos","events_url":"https://api.github.com/users/pivotalsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/pivotalsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":45578105,"name":"quickstep","full_name":"pivotalsoftware/quickstep","owner":{"login":"pivotalsoftware","id":4247270,"avatar_url":"https://avatars.githubusercontent.com/u/4247270?v=3","gravatar_id":"","url":"https://api.github.com/users/pivotalsoftware","html_url":"https://github.com/pivotalsoftware","followers_url":"https://api.github.com/users/pivotalsoftware/followers","following_url":"https://api.github.com/users/pivotalsoftware/following{/other_user}","gists_url":"https://api.github.com/users/pivotalsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotalsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotalsoftware/subscriptions","organizations_url":"https://api.github.com/users/pivotalsoftware/orgs","repos_url":"https://api.github.com/users/pivotalsoftware/repos","events_url":"https://api.github.com/users/pivotalsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/pivotalsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pivotalsoftware/quickstep","description":"Quickstep Project","fork":false,"url":"https://api.github.com/repos/pivotalsoftware/quickstep","forks_url":"https://api.github.com/repos/pivotalsoftware/quickstep/forks","keys_url":"https://api.github.com/repos/pivotalsoftware/quickstep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pivotalsoftware/quickstep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pivotalsoftware/quickstep/teams","hooks_url":"https://api.github.com/repos/pivotalsoftware/quickstep/hooks","issue_events_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/events{/number}","events_url":"https://api.github.com/repos/pivotalsoftware/quickstep/events","assignees_url":"https://api.github.com/repos/pivotalsoftware/quickstep/assignees{/user}","branches_url":"https://api.github.com/repos/pivotalsoftware/quickstep/branches{/branch}","tags_url":"https://api.github.com/repos/pivotalsoftware/quickstep/tags","blobs_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/refs{/sha}","trees_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pivotalsoftware/quickstep/statuses/{sha}","languages_url":"https://api.github.com/repos/pivotalsoftware/quickstep/languages","stargazers_url":"https://api.github.com/repos/pivotalsoftware/quickstep/stargazers","contributors_url":"https://api.github.com/repos/pivotalsoftware/quickstep/contributors","subscribers_url":"https://api.github.com/repos/pivotalsoftware/quickstep/subscribers","subscription_url":"https://api.github.com/repos/pivotalsoftware/quickstep/subscription","commits_url":"https://api.github.com/repos/pivotalsoftware/quickstep/commits{/sha}","git_commits_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/commits{/sha}","comments_url":"https://api.github.com/repos/pivotalsoftware/quickstep/comments{/number}","issue_comment_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/comments{/number}","contents_url":"https://api.github.com/repos/pivotalsoftware/quickstep/contents/{+path}","compare_url":"https://api.github.com/repos/pivotalsoftware/quickstep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pivotalsoftware/quickstep/merges","archive_url":"https://api.github.com/repos/pivotalsoftware/quickstep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pivotalsoftware/quickstep/downloads","issues_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues{/number}","pulls_url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls{/number}","milestones_url":"https://api.github.com/repos/pivotalsoftware/quickstep/milestones{/number}","notifications_url":"https://api.github.com/repos/pivotalsoftware/quickstep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pivotalsoftware/quickstep/labels{/name}","releases_url":"https://api.github.com/repos/pivotalsoftware/quickstep/releases{/id}","deployments_url":"https://api.github.com/repos/pivotalsoftware/quickstep/deployments","created_at":"2015-11-05T01:06:50Z","updated_at":"2016-04-26T18:43:31Z","pushed_at":"2016-05-03T04:20:19Z","git_url":"git://github.com/pivotalsoftware/quickstep.git","ssh_url":"git@github.com:pivotalsoftware/quickstep.git","clone_url":"https://github.com/pivotalsoftware/quickstep.git","svn_url":"https://github.com/pivotalsoftware/quickstep","homepage":null,"size":8995,"stargazers_count":16,"watchers_count":16,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":18,"forks":10,"open_issues":18,"watchers":16,"default_branch":"master"}},"base":{"label":"pivotalsoftware:master","ref":"master","sha":"29a71ac21f746e74dc7a544c8d8e09f71854158c","user":{"login":"pivotalsoftware","id":4247270,"avatar_url":"https://avatars.githubusercontent.com/u/4247270?v=3","gravatar_id":"","url":"https://api.github.com/users/pivotalsoftware","html_url":"https://github.com/pivotalsoftware","followers_url":"https://api.github.com/users/pivotalsoftware/followers","following_url":"https://api.github.com/users/pivotalsoftware/following{/other_user}","gists_url":"https://api.github.com/users/pivotalsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotalsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotalsoftware/subscriptions","organizations_url":"https://api.github.com/users/pivotalsoftware/orgs","repos_url":"https://api.github.com/users/pivotalsoftware/repos","events_url":"https://api.github.com/users/pivotalsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/pivotalsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":45578105,"name":"quickstep","full_name":"pivotalsoftware/quickstep","owner":{"login":"pivotalsoftware","id":4247270,"avatar_url":"https://avatars.githubusercontent.com/u/4247270?v=3","gravatar_id":"","url":"https://api.github.com/users/pivotalsoftware","html_url":"https://github.com/pivotalsoftware","followers_url":"https://api.github.com/users/pivotalsoftware/followers","following_url":"https://api.github.com/users/pivotalsoftware/following{/other_user}","gists_url":"https://api.github.com/users/pivotalsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotalsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotalsoftware/subscriptions","organizations_url":"https://api.github.com/users/pivotalsoftware/orgs","repos_url":"https://api.github.com/users/pivotalsoftware/repos","events_url":"https://api.github.com/users/pivotalsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/pivotalsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pivotalsoftware/quickstep","description":"Quickstep Project","fork":false,"url":"https://api.github.com/repos/pivotalsoftware/quickstep","forks_url":"https://api.github.com/repos/pivotalsoftware/quickstep/forks","keys_url":"https://api.github.com/repos/pivotalsoftware/quickstep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pivotalsoftware/quickstep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pivotalsoftware/quickstep/teams","hooks_url":"https://api.github.com/repos/pivotalsoftware/quickstep/hooks","issue_events_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/events{/number}","events_url":"https://api.github.com/repos/pivotalsoftware/quickstep/events","assignees_url":"https://api.github.com/repos/pivotalsoftware/quickstep/assignees{/user}","branches_url":"https://api.github.com/repos/pivotalsoftware/quickstep/branches{/branch}","tags_url":"https://api.github.com/repos/pivotalsoftware/quickstep/tags","blobs_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/refs{/sha}","trees_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pivotalsoftware/quickstep/statuses/{sha}","languages_url":"https://api.github.com/repos/pivotalsoftware/quickstep/languages","stargazers_url":"https://api.github.com/repos/pivotalsoftware/quickstep/stargazers","contributors_url":"https://api.github.com/repos/pivotalsoftware/quickstep/contributors","subscribers_url":"https://api.github.com/repos/pivotalsoftware/quickstep/subscribers","subscription_url":"https://api.github.com/repos/pivotalsoftware/quickstep/subscription","commits_url":"https://api.github.com/repos/pivotalsoftware/quickstep/commits{/sha}","git_commits_url":"https://api.github.com/repos/pivotalsoftware/quickstep/git/commits{/sha}","comments_url":"https://api.github.com/repos/pivotalsoftware/quickstep/comments{/number}","issue_comment_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/comments{/number}","contents_url":"https://api.github.com/repos/pivotalsoftware/quickstep/contents/{+path}","compare_url":"https://api.github.com/repos/pivotalsoftware/quickstep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pivotalsoftware/quickstep/merges","archive_url":"https://api.github.com/repos/pivotalsoftware/quickstep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pivotalsoftware/quickstep/downloads","issues_url":"https://api.github.com/repos/pivotalsoftware/quickstep/issues{/number}","pulls_url":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls{/number}","milestones_url":"https://api.github.com/repos/pivotalsoftware/quickstep/milestones{/number}","notifications_url":"https://api.github.com/repos/pivotalsoftware/quickstep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pivotalsoftware/quickstep/labels{/name}","releases_url":"https://api.github.com/repos/pivotalsoftware/quickstep/releases{/id}","deployments_url":"https://api.github.com/repos/pivotalsoftware/quickstep/deployments","created_at":"2015-11-05T01:06:50Z","updated_at":"2016-04-26T18:43:31Z","pushed_at":"2016-05-03T04:20:19Z","git_url":"git://github.com/pivotalsoftware/quickstep.git","ssh_url":"git@github.com:pivotalsoftware/quickstep.git","clone_url":"https://github.com/pivotalsoftware/quickstep.git","svn_url":"https://github.com/pivotalsoftware/quickstep","homepage":null,"size":8995,"stargazers_count":16,"watchers_count":16,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":18,"forks":10,"open_issues":18,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187"},"html":{"href":"https://github.com/pivotalsoftware/quickstep/pull/187"},"issue":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/187"},"comments":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/pivotalsoftware/quickstep/statuses/78bf241f1d800b7f13b2c2e8e06aec91fb358f2d"}}}}