{"action":"created","comment":{"url":"https://api.github.com/repos/apache/reef/pulls/comments/63314754","id":63314754,"diff_hunk":"@@ -0,0 +1,526 @@\n+﻿// Licensed to the Apache Software Foundation (ASF) under one\n+// or more contributor license agreements.  See the NOTICE file\n+// distributed with this work for additional information\n+// regarding copyright ownership.  The ASF licenses this file\n+// to you under the Apache License, Version 2.0 (the\n+// \"License\"); you may not use this file except in compliance\n+// with the License.  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,\n+// software distributed under the License is distributed on an\n+// \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+// KIND, either express or implied.  See the License for the\n+// specific language governing permissions and limitations\n+// under the License.\n+\n+using System;\n+using System.Collections.Generic;\n+using System.Globalization;\n+using System.Linq;\n+using System.Text;\n+using Org.Apache.REEF.Common;\n+using Org.Apache.REEF.Driver.Context;\n+using Org.Apache.REEF.Driver.Evaluator;\n+using Org.Apache.REEF.Driver.Task;\n+using Org.Apache.REEF.IMRU.OnREEF.Driver.StateMachine;\n+using Org.Apache.REEF.Network.Group.Driver;\n+using Org.Apache.REEF.Tang.Implementations.Configuration;\n+using Org.Apache.REEF.Tang.Interface;\n+using Org.Apache.REEF.Utilities.Attributes;\n+using Org.Apache.REEF.Utilities.Diagnostics;\n+using Org.Apache.REEF.Utilities.Logging;\n+\n+namespace Org.Apache.REEF.IMRU.OnREEF.Driver\n+{\n+    /// <summary>\n+    /// Manages Tasks, maintains task states and responsible for task submission\n+    /// It covers the functionality in TaskStarter which will be not used in IMRU driver. \n+    /// </summary>\n+    [NotThreadSafe]\n+    internal sealed class TaskManager\n+    {\n+        private static readonly Logger Logger = Logger.GetLogger(typeof(TaskManager));\n+\n+        internal const string TaskAppError = \"TaskAppError\";\n+        internal const string TaskSystemError = \"TaskSystemError\";\n+        internal const string TaskGroupCommunicationError = \"TaskGroupCommunicationError\";\n+        internal const string TaskEvaluatorError = \"TaskEvaluatorError\";\n+        internal const string TaskKilledByDriver = \"TaskKilledByDriver\";\n+        internal const string CloseTaskByDriver = \"CloseTaskByDriver\";\n+\n+        /// <summary>\n+        /// This Dictionary contains task information. The key is the Id of the Task, the value is TaskInfo which contains\n+        /// task state, partial task configuration, and active context that the task is running on. \n+        /// </summary>\n+        private readonly IDictionary<string, TaskInfo> _tasks\n+            = new Dictionary<string, TaskInfo>();\n+\n+        /// <summary>\n+        /// This Dictionary keeps all the running tasks. The key is the Task Id and the value is IRunningTask. \n+        /// After a task is running, it will be added to this collection. After the task is requested to close, \n+        /// or fails, completed, it will be removed from this collection. \n+        /// </summary>\n+        private readonly IDictionary<string, IRunningTask> _runningTasks = new Dictionary<string, IRunningTask>();\n+\n+        /// <summary>\n+        /// This is the reference of the IGroupCommDriver. The IGroupCommDriver is injected with the driver constructor\n+        /// and passed to this class. \n+        /// </summary>\n+        private readonly IGroupCommDriver _groupCommDriver;\n+\n+        /// <summary>\n+        /// Total expected tasks\n+        /// </summary>\n+        private readonly int _totalExpectedTasks;\n+\n+        /// <summary>\n+        /// Master tasks Id is set in the IGroupCommDriver. It must be the same Id used in the TaskManager.\n+        /// </summary>\n+        private readonly string _masterTaskId;\n+\n+        /// <summary>\n+        /// Total number of Application error received from tasks\n+        /// </summary>\n+        private int _numberOfAppError = 0;\n+\n+        /// <summary>\n+        /// Creates a TaskManager with specified total number of tasks, master task id and associated IGroupCommDriver.\n+        /// Throws IMRUSystemException if numTasks is 0, or masterTaskId is null, or groupCommDriver is null.\n+        /// </summary>\n+        /// <param name=\"numTasks\"></param>\n+        /// <param name=\"masterTaskId\"></param>\n+        /// <param name=\"groupCommDriver\"></param>\n+        internal TaskManager(int numTasks, string masterTaskId, IGroupCommDriver groupCommDriver)\n+        {\n+            if (numTasks <= 0)\n+            {\n+                Exceptions.Throw(new IMRUSystemException(\"Number of expected task cannot be 0\"), Logger);\n+            }\n+\n+            if (string.IsNullOrWhiteSpace(masterTaskId))\n+            {\n+                Exceptions.Throw(new IMRUSystemException(\"masterTaskId cannot be null\"), Logger);\n+            }\n+\n+            if (groupCommDriver == null)\n+            {\n+                Exceptions.Throw(new IMRUSystemException(\"groupCommDriver cannot be null\"), Logger);\n+            }\n+\n+            _totalExpectedTasks = numTasks;\n+            _masterTaskId = masterTaskId;\n+            _groupCommDriver = groupCommDriver;\n+        }\n+\n+        /// <summary>\n+        /// Adds a Task to the task collection\n+        /// Throws IMRUSystemException in the following cases:\n+        ///   taskId is already added \n+        ///   taskConfiguration is null\n+        ///   activeContext is null\n+        ///   trying to add extra tasks\n+        ///   trying to add Master Task twice\n+        ///   No Master Task is added in the collection\n+        /// </summary>\n+        /// <param name=\"taskId\"></param>\n+        /// <param name=\"taskConfiguration\"></param>\n+        /// <param name=\"activeContext\"></param>\n+        internal void AddTask(string taskId, IConfiguration taskConfiguration, IActiveContext activeContext)\n+        {\n+            if (_tasks.ContainsKey(taskId))\n+            {\n+                var msg = string.Format(CultureInfo.InvariantCulture, \"The task [{0}] already exists.\", taskId);\n+                Exceptions.Throw(new IMRUSystemException(msg), Logger);\n+            }\n+\n+            if (taskConfiguration == null)\n+            {\n+                Exceptions.Throw(new IMRUSystemException(\"The task configuration is null.\"), Logger);\n+            }\n+\n+            if (activeContext == null)\n+            {\n+                Exceptions.Throw(new IMRUSystemException(\"The context is null.\"), Logger);\n+            }\n+\n+            if (NumberOfTasks >= _totalExpectedTasks)\n+            {\n+                string msg = string.Format(\"Trying to add an additional Task {0}, but the total expected Task number {1} has been reached.\", taskId, _totalExpectedTasks);\n+                Exceptions.Throw(new IMRUSystemException(msg), Logger);\n+            }\n+\n+            if (taskId.Equals(_masterTaskId) && MasterTaskExists())\n+            {\n+                string msg = string.Format(\"Trying to add second master Task {0}.\", taskId);\n+                Exceptions.Throw(new IMRUSystemException(msg), Logger);\n+            }\n+\n+            _tasks.Add(taskId, new TaskInfo(new TaskStateMachine(), taskConfiguration, activeContext));\n+\n+            if (NumberOfTasks == _totalExpectedTasks && !MasterTaskExists())\n+            {\n+                Exceptions.Throw(new IMRUSystemException(\"There is no master task added.\"), Logger);\n+            }\n+        }\n+\n+        /// <summary>\n+        /// Returns the number of tasks in the task collection\n+        /// </summary>\n+        internal int NumberOfTasks\n+        {\n+            get { return _tasks.Count; }\n+        }\n+\n+        /// <summary>\n+        /// This method is called when receiving IRunningTask event during system SubmittingTasks state.\n+        /// Adds the IRunningTask to the running tasks collection and update the task state to TaskRunning.\n+        /// Throws IMRUSystemException if running tasks already contains this task or tasks collection doesn't contain this task.\n+        /// </summary>\n+        /// <param name=\"runningTask\"></param>\n+        internal void SetRunningTask(IRunningTask runningTask)\n+        {\n+            if (_runningTasks.ContainsKey(runningTask.Id))\n+            {\n+                var msg = string.Format(CultureInfo.InvariantCulture, \"The task [{0}] already running.\", runningTask.Id);\n+                Exceptions.Throw(new IMRUSystemException(msg), Logger);\n+            }\n+\n+            if (!_tasks.ContainsKey(runningTask.Id))\n+            {\n+                var msg = string.Format(CultureInfo.InvariantCulture, \"The task [{0}] doesn't exist.\", runningTask.Id);\n+                Exceptions.Throw(new IMRUSystemException(msg), Logger);\n+            }\n+\n+            _runningTasks.Add(runningTask.Id, runningTask);\n+            UpdateState(runningTask.Id, TaskStateEvent.RunningTask);\n+        }\n+\n+        /// <summary>\n+        /// This method is called at the beginning of the recovery.\n+        /// Clears the task collection, running task collection and resets the number of application error. \n+        /// </summary>\n+        internal void Reset()\n+        {\n+            _tasks.Clear();\n+            _runningTasks.Clear();\n+            _numberOfAppError = 0;\n+        }\n+\n+        /// <summary>\n+        /// This method is called when receiving ICompletedTask event during task running or system shutting down.\n+        /// Removes the task from running tasks\n+        /// Changes the task state from RunningTask to CompletedTask\n+        /// </summary>\n+        /// <param name=\"taskId\"></param>\n+        internal void SetCompletedTask(string taskId)\n+        {\n+            RemoveRunningTask(taskId);\n+            UpdateState(taskId, TaskStateEvent.CompletedTask);\n+        }\n+\n+        /// <summary>\n+        /// This method is called when receiving IFailedTask event during task submitting or running\n+        /// Removes the task from running tasks if the task was running\n+        /// Updates the task state to fail based on the error message in the failed task\n+        /// </summary>\n+        /// <param name=\"failedTask\"></param>\n+        internal void SetFailedRunningTask(IFailedTask failedTask)\n+        {\n+            RemoveRunningTask(failedTask.Id);\n+            UpdateState(failedTask.Id, GetTaskErrorEvent(failedTask));\n+        }\n+\n+        /// <summary>\n+        /// This method is called when receiving IFailedTask event during system shutting down. \n+        /// If the task failed because it receives the close command from driver, update the task state to TaskClosedByDriver.\n+        /// Task could fail by communication error or any other application or system error during this time, as long as it is not \n+        /// TaskFailedByEvaluatorFailure, update the task state based on the error received. \n+        /// </summary>\n+        /// <param name=\"failedTask\"></param>\n+        internal void SetFailedTaskInShuttingDown(IFailedTask failedTask)","path":"lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/TaskManager.cs","position":242,"original_position":242,"commit_id":"92794d646ebac34f00b04ca118fa6b4e26369f14","original_commit_id":"92794d646ebac34f00b04ca118fa6b4e26369f14","user":{"login":"jwang98052","id":5666504,"avatar_url":"https://avatars.githubusercontent.com/u/5666504?v=3","gravatar_id":"","url":"https://api.github.com/users/jwang98052","html_url":"https://github.com/jwang98052","followers_url":"https://api.github.com/users/jwang98052/followers","following_url":"https://api.github.com/users/jwang98052/following{/other_user}","gists_url":"https://api.github.com/users/jwang98052/gists{/gist_id}","starred_url":"https://api.github.com/users/jwang98052/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwang98052/subscriptions","organizations_url":"https://api.github.com/users/jwang98052/orgs","repos_url":"https://api.github.com/users/jwang98052/repos","events_url":"https://api.github.com/users/jwang98052/events{/privacy}","received_events_url":"https://api.github.com/users/jwang98052/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-05-16T06:37:06Z","updated_at":"2016-05-16T06:37:06Z","html_url":"https://github.com/apache/reef/pull/1002#discussion_r63314754","pull_request_url":"https://api.github.com/repos/apache/reef/pulls/1002","_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/comments/63314754"},"html":{"href":"https://github.com/apache/reef/pull/1002#discussion_r63314754"},"pull_request":{"href":"https://api.github.com/repos/apache/reef/pulls/1002"}}},"pull_request":{"url":"https://api.github.com/repos/apache/reef/pulls/1002","id":69912255,"html_url":"https://github.com/apache/reef/pull/1002","diff_url":"https://github.com/apache/reef/pull/1002.diff","patch_url":"https://github.com/apache/reef/pull/1002.patch","issue_url":"https://api.github.com/repos/apache/reef/issues/1002","number":1002,"state":"open","locked":false,"title":"[REEF-1321] Adding TaskManager for IMRU fault tolerant","user":{"login":"jwang98052","id":5666504,"avatar_url":"https://avatars.githubusercontent.com/u/5666504?v=3","gravatar_id":"","url":"https://api.github.com/users/jwang98052","html_url":"https://github.com/jwang98052","followers_url":"https://api.github.com/users/jwang98052/followers","following_url":"https://api.github.com/users/jwang98052/following{/other_user}","gists_url":"https://api.github.com/users/jwang98052/gists{/gist_id}","starred_url":"https://api.github.com/users/jwang98052/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwang98052/subscriptions","organizations_url":"https://api.github.com/users/jwang98052/orgs","repos_url":"https://api.github.com/users/jwang98052/repos","events_url":"https://api.github.com/users/jwang98052/events{/privacy}","received_events_url":"https://api.github.com/users/jwang98052/received_events","type":"User","site_admin":false},"body":"Adding TaskManager class\r\nAdding test cases for it\r\n\r\nJIRA: [REEF-1321](https://issues.apache.org/jira/browse/REEF-1321)\r\nThis closes","created_at":"2016-05-12T21:45:05Z","updated_at":"2016-05-16T06:37:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18bd266161f943d18a21cead03ad0650204ec65c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/reef/pulls/1002/commits","review_comments_url":"https://api.github.com/repos/apache/reef/pulls/1002/comments","review_comment_url":"https://api.github.com/repos/apache/reef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/reef/issues/1002/comments","statuses_url":"https://api.github.com/repos/apache/reef/statuses/92794d646ebac34f00b04ca118fa6b4e26369f14","head":{"label":"jwang98052:REEF-1321","ref":"REEF-1321","sha":"92794d646ebac34f00b04ca118fa6b4e26369f14","user":{"login":"jwang98052","id":5666504,"avatar_url":"https://avatars.githubusercontent.com/u/5666504?v=3","gravatar_id":"","url":"https://api.github.com/users/jwang98052","html_url":"https://github.com/jwang98052","followers_url":"https://api.github.com/users/jwang98052/followers","following_url":"https://api.github.com/users/jwang98052/following{/other_user}","gists_url":"https://api.github.com/users/jwang98052/gists{/gist_id}","starred_url":"https://api.github.com/users/jwang98052/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwang98052/subscriptions","organizations_url":"https://api.github.com/users/jwang98052/orgs","repos_url":"https://api.github.com/users/jwang98052/repos","events_url":"https://api.github.com/users/jwang98052/events{/privacy}","received_events_url":"https://api.github.com/users/jwang98052/received_events","type":"User","site_admin":false},"repo":{"id":25940156,"name":"reef","full_name":"jwang98052/reef","owner":{"login":"jwang98052","id":5666504,"avatar_url":"https://avatars.githubusercontent.com/u/5666504?v=3","gravatar_id":"","url":"https://api.github.com/users/jwang98052","html_url":"https://github.com/jwang98052","followers_url":"https://api.github.com/users/jwang98052/followers","following_url":"https://api.github.com/users/jwang98052/following{/other_user}","gists_url":"https://api.github.com/users/jwang98052/gists{/gist_id}","starred_url":"https://api.github.com/users/jwang98052/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwang98052/subscriptions","organizations_url":"https://api.github.com/users/jwang98052/orgs","repos_url":"https://api.github.com/users/jwang98052/repos","events_url":"https://api.github.com/users/jwang98052/events{/privacy}","received_events_url":"https://api.github.com/users/jwang98052/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwang98052/reef","description":"Mirror of Apache REEF (Incubating)","fork":true,"url":"https://api.github.com/repos/jwang98052/reef","forks_url":"https://api.github.com/repos/jwang98052/reef/forks","keys_url":"https://api.github.com/repos/jwang98052/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwang98052/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwang98052/reef/teams","hooks_url":"https://api.github.com/repos/jwang98052/reef/hooks","issue_events_url":"https://api.github.com/repos/jwang98052/reef/issues/events{/number}","events_url":"https://api.github.com/repos/jwang98052/reef/events","assignees_url":"https://api.github.com/repos/jwang98052/reef/assignees{/user}","branches_url":"https://api.github.com/repos/jwang98052/reef/branches{/branch}","tags_url":"https://api.github.com/repos/jwang98052/reef/tags","blobs_url":"https://api.github.com/repos/jwang98052/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwang98052/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwang98052/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwang98052/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwang98052/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/jwang98052/reef/languages","stargazers_url":"https://api.github.com/repos/jwang98052/reef/stargazers","contributors_url":"https://api.github.com/repos/jwang98052/reef/contributors","subscribers_url":"https://api.github.com/repos/jwang98052/reef/subscribers","subscription_url":"https://api.github.com/repos/jwang98052/reef/subscription","commits_url":"https://api.github.com/repos/jwang98052/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwang98052/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwang98052/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwang98052/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwang98052/reef/contents/{+path}","compare_url":"https://api.github.com/repos/jwang98052/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwang98052/reef/merges","archive_url":"https://api.github.com/repos/jwang98052/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwang98052/reef/downloads","issues_url":"https://api.github.com/repos/jwang98052/reef/issues{/number}","pulls_url":"https://api.github.com/repos/jwang98052/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/jwang98052/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/jwang98052/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwang98052/reef/labels{/name}","releases_url":"https://api.github.com/repos/jwang98052/reef/releases{/id}","deployments_url":"https://api.github.com/repos/jwang98052/reef/deployments","created_at":"2014-10-29T20:32:40Z","updated_at":"2015-12-02T18:42:15Z","pushed_at":"2016-05-13T02:57:37Z","git_url":"git://github.com/jwang98052/reef.git","ssh_url":"git@github.com:jwang98052/reef.git","clone_url":"https://github.com/jwang98052/reef.git","svn_url":"https://github.com/jwang98052/reef","homepage":null,"size":37156,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"72106b97ce20a08907af053ac2c3698f199dcea9","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":25623941,"name":"reef","full_name":"apache/reef","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/reef","description":"Mirror of Apache REEF","fork":false,"url":"https://api.github.com/repos/apache/reef","forks_url":"https://api.github.com/repos/apache/reef/forks","keys_url":"https://api.github.com/repos/apache/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/reef/teams","hooks_url":"https://api.github.com/repos/apache/reef/hooks","issue_events_url":"https://api.github.com/repos/apache/reef/issues/events{/number}","events_url":"https://api.github.com/repos/apache/reef/events","assignees_url":"https://api.github.com/repos/apache/reef/assignees{/user}","branches_url":"https://api.github.com/repos/apache/reef/branches{/branch}","tags_url":"https://api.github.com/repos/apache/reef/tags","blobs_url":"https://api.github.com/repos/apache/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/reef/languages","stargazers_url":"https://api.github.com/repos/apache/reef/stargazers","contributors_url":"https://api.github.com/repos/apache/reef/contributors","subscribers_url":"https://api.github.com/repos/apache/reef/subscribers","subscription_url":"https://api.github.com/repos/apache/reef/subscription","commits_url":"https://api.github.com/repos/apache/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/reef/contents/{+path}","compare_url":"https://api.github.com/repos/apache/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/reef/merges","archive_url":"https://api.github.com/repos/apache/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/reef/downloads","issues_url":"https://api.github.com/repos/apache/reef/issues{/number}","pulls_url":"https://api.github.com/repos/apache/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/reef/labels{/name}","releases_url":"https://api.github.com/repos/apache/reef/releases{/id}","deployments_url":"https://api.github.com/repos/apache/reef/deployments","created_at":"2014-10-23T07:00:10Z","updated_at":"2016-04-23T12:24:09Z","pushed_at":"2016-05-13T18:56:17Z","git_url":"git://github.com/apache/reef.git","ssh_url":"git@github.com:apache/reef.git","clone_url":"https://github.com/apache/reef.git","svn_url":"https://github.com/apache/reef","homepage":"","size":48158,"stargazers_count":47,"watchers_count":47,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":56,"mirror_url":"git://git.apache.org/reef.git","open_issues_count":5,"forks":56,"open_issues":5,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/1002"},"html":{"href":"https://github.com/apache/reef/pull/1002"},"issue":{"href":"https://api.github.com/repos/apache/reef/issues/1002"},"comments":{"href":"https://api.github.com/repos/apache/reef/issues/1002/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/reef/pulls/1002/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/reef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/reef/pulls/1002/commits"},"statuses":{"href":"https://api.github.com/repos/apache/reef/statuses/92794d646ebac34f00b04ca118fa6b4e26369f14"}}}}