{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/comments/26967094","id":26967094,"diff_hunk":"@@ -0,0 +1,403 @@\n+﻿// Copyright (c) Microsoft. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+\n+using System.Diagnostics;\n+using System.Threading;\n+using System.Runtime.InteropServices;\n+\n+using CFStringRef = System.IntPtr;\n+using CFArrayRef = System.IntPtr;\n+using FSEventStreamRef = System.IntPtr;\n+using size_t = System.IntPtr;\n+using FSEventStreamEventId = System.UInt64;\n+using CFTimeInterval = System.Double;\n+using CFRunLoopRef = System.IntPtr;\n+\n+namespace System.IO\n+{\n+    // OSX implementation of FileSystemWatcher's PAL.  The main partial definition of FileSystemWatcher expects:\n+    // - StartRaisingEvents\n+    // - StopRaisingEvents\n+    // - FinalizeDispose\n+\n+    public partial class FileSystemWatcher\n+    {\n+        // OS X has a case-sensitive File System\n+        internal const bool CaseSensitive = true;\n+\n+        // Flags used to create the event stream\n+        private const Interop.CoreServices.FSEventStreamCreateFlags EventStreamFlags = (Interop.CoreServices.FSEventStreamCreateFlags.kFSEventStreamCreateFlagFileEvents |\n+                                                                                        Interop.CoreServices.FSEventStreamCreateFlags.kFSEventStreamCreateFlagWatchRoot);\n+\n+        // The last directory we were told to watch. This allows us to be smart about how we create streams\n+        // and to only teardown and recreate streams when we need to.\n+        private String _lastWatchedDirectory = String.Empty;\n+\n+        // The bitmask of events that we want to send to the user\n+        private Interop.CoreServices.FSEventStreamEventFlags _filterFlags;\n+\n+        // The EventStream to listen for events on\n+        private FSEventStreamRef _eventStream = IntPtr.Zero;\n+\n+        // The background thread to use to monitor events\n+        private Thread _watcherThread = null;\n+\n+        // A reference to the RunLoop that we can use to start or stop a Watcher\n+        private CFRunLoopRef _watcherRunLoop = IntPtr.Zero;\n+\n+        // Use an event to try to prevent StartRaisingEvents from returning before the\n+        // RunLoop actually begins. This will mitigate a race condition where the watcher\n+        // thread hasn't completed initialization and stop is called before the RunLoop even starts.\n+        private AutoResetEvent _runLoopStartedEvent = new AutoResetEvent(false);\n+\n+        /// <summary>Called when FileSystemWatcher is finalized.</summary>\n+        private void FinalizeDispose()\n+        {\n+            // Make sure we cleanup\n+            StopRaisingEvents();\n+            CleanupStreamAndWatcher();\n+        }\n+\n+        private void StartRaisingEvents()\n+        {\n+            // Make sure the Start and Stop can be called from different threads and don't \n+            // stomp on the other's operation. We use the _lastWatchedDirectory instead of the\n+            // RunLoop or StreamRef because IntPtrs are value types and can't be locked\n+            lock (_lastWatchedDirectory)\n+            {\n+                // Always re-create the filter flags when start is called since they could have changed\n+                if (_notifyFilters.HasFlag(NotifyFilters.Attributes | NotifyFilters.CreationTime | NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.Size))\n+                {\n+                    _filterFlags = Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemInodeMetaMod | Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemFinderInfoMod;\n+                }\n+                if (_notifyFilters.HasFlag(NotifyFilters.Security))\n+                {\n+                    _filterFlags |= Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemChangeOwner | Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemXattrMod;\n+                }\n+                if (_notifyFilters.HasFlag(NotifyFilters.DirectoryName))\n+                {\n+                    _filterFlags |= Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemIsDir | \n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemIsSymlink | \n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemCreated | \n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemModified | \n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemRemoved | \n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemRenamed;\n+                }\n+                if (_notifyFilters.HasFlag(NotifyFilters.FileName))\n+                {\n+                    _filterFlags |= Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemIsFile | \n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemIsSymlink |\n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemCreated |\n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemModified |\n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemRemoved |\n+                                    Interop.CoreServices.FSEventStreamEventFlags.kFSEventStreamEventFlagItemRenamed;\n+                }\n+\n+                // The directory has not changed then just restart receiving events. If the directory has changed \n+                // then we need to cleanup the old stream and kick off a new one\n+                if (_lastWatchedDirectory.Equals(_directory, StringComparison.CurrentCultureIgnoreCase))\n+                {\n+                    RestartStream();\n+                }\n+                else\n+                {\n+                    CleanupStreamAndWatcher();\n+                    CreateStreamAndStartWatcher();\n+                    _lastWatchedDirectory = _directory;\n+                }\n+            }\n+        }\n+\n+        private void CreateStreamAndStartWatcher()\n+        {\n+            Debug.Assert(_eventStream == IntPtr.Zero);\n+            Debug.Assert(_watcherRunLoop == IntPtr.Zero);\n+\n+            // Make sure we only do this if there is a valid directory\n+            if (String.IsNullOrEmpty(_directory) == false)\n+            {\n+                // Get the path to watch and put it into a CFArray.\n+                CFStringRef path = Interop.CoreFoundation.CFStringCreateWithCString(IntPtr.Zero, _directory, Interop.CoreFoundation.CFStringBuiltInEncodings.kCFStringEncodingUTF8);\n+                CFArrayRef arrPaths = Interop.CoreFoundation.CFArrayCreate(IntPtr.Zero, new CFStringRef[1] { path }, 1, IntPtr.Zero);\n+\n+                // Create the event stream for the path and tell the stream to watch for file system events.\n+                _eventStream = Interop.CoreServices.FSEventStreamCreate(\n+                    IntPtr.Zero,\n+                    FileSystemEventCallback,\n+                    IntPtr.Zero,\n+                    arrPaths,\n+                    Interop.CoreServices.kFSEventStreamEventIdSinceNow,\n+                    0.2f,\n+                    EventStreamFlags);\n+                Debug.Assert(_eventStream != IntPtr.Zero);\n+\n+                // The paths are copied inside FSEventStreamCreate so delete our references\n+                Interop.CoreFoundation.CFRelease(path);\n+                Interop.CoreFoundation.CFRelease(arrPaths);\n+\n+                // Create and start our watcher thread then wait for the thread to initialize and start \n+                // the RunLoop. We wait for that to prevent this function from returning before the RunLoop\n+                // has a chance to start so that any callers won't race with the background thread's initialization\n+                // and calling Stop, which would attempt to stop a RunLoop that hasn't started yet.\n+                _watcherThread = new Thread(new ThreadStart(WatchForFileSystemEventsThreadStart));\n+                _watcherThread.Start();\n+                _runLoopStartedEvent.WaitOne();\n+            }\n+        }\n+\n+        private void CleanupStreamAndWatcher()\n+        {\n+            // Make sure there's a loop to clear\n+            if (_watcherRunLoop != IntPtr.Zero)\n+            {\n+                // Stop the RunLoop and wait for the thread to exit gracefully\n+                Interop.CoreFoundation.CFRunLoopStop(_watcherRunLoop);\n+                _watcherThread.Join();\n+            }\n+\n+            // Clean up the EventStream, if it exists\n+            if (_eventStream != IntPtr.Zero)\n+            {\n+                Interop.CoreFoundation.CFRelease(_eventStream);\n+            }\n+\n+            // Reset back to zero\n+            _eventStream = IntPtr.Zero;\n+            _watcherRunLoop = IntPtr.Zero;\n+        }\n+\n+        private void RestartStream()\n+        {\n+            if (_eventStream != IntPtr.Zero)\n+            {\n+                // We don't need to rebuild the stream since the path is the same so just restart the stream.\n+                if (Interop.CoreServices.FSEventStreamStart(_eventStream) == false)\n+                {\n+                    // Pass the error back to the user and set the last watched directory to null so that we'll\n+                    // cleanup and recreate our streams next time Start is called.\n+                    OnError(new ErrorEventArgs(new IOException(\"\", Marshal.GetLastWin32Error())));\n+                    _lastWatchedDirectory = String.Empty;\n+                }\n+            }\n+        }\n+\n+        private void StopStream()\n+        {\n+            // Just stop the EventStream to be optimistic that we'll be restarted with the same path\n+            // and not have to teardown everything and rebuild.\n+            if (_eventStream != IntPtr.Zero)\n+            {\n+                Interop.CoreServices.FSEventStreamStop(_eventStream);\n+            }\n+        }\n+\n+        private void WatchForFileSystemEventsThreadStart()\n+        {\n+            // Get this thread's RunLoop\n+            _watcherRunLoop = Interop.CoreFoundation.CFRunLoopGetCurrent();\n+            Debug.Assert(_watcherRunLoop != IntPtr.Zero);\n+\n+            // Schedule the EventStream to run on the thread's RunLoop\n+            Interop.CoreServices.FSEventStreamScheduleWithRunLoop(_eventStream, _watcherRunLoop, Interop.CoreFoundation.kCFRunLoopDefaultMode);\n+            if (Interop.CoreServices.FSEventStreamStart(_eventStream))\n+            {\n+                // Notify the StartRaisingEvents call that we are initialized and about to start\n+                // so that it can return and avoid a race-condition around multiple threads calling Stop and Start\n+                _runLoopStartedEvent.Set();\n+\n+                // Start the OS X RunLoop (a blocking call) that will pump file system changes into the callback function\n+                Interop.CoreFoundation.CFRunLoopRun();\n+\n+                // When we get here, we've requested to stop so cleanup the EventStream and unschedule from the RunLoop\n+                Interop.CoreServices.FSEventStreamStop(_eventStream);\n+                Interop.CoreServices.FSEventStreamUnscheduleFromRunLoop(_eventStream, _watcherRunLoop, Interop.CoreFoundation.kCFRunLoopDefaultMode);\n+            }\n+            else\n+            {\n+                // An error occurred while trying to start the run loop so fail out\n+                Interop.CoreServices.FSEventStreamUnscheduleFromRunLoop(_eventStream, _watcherRunLoop, Interop.CoreFoundation.kCFRunLoopDefaultMode);\n+                OnError(new ErrorEventArgs(new IOException(\"\", Marshal.GetLastWin32Error())));\n+            }\n+        }\n+\n+        private void FileSystemEventCallback( \n+            FSEventStreamRef streamRef, \n+            IntPtr clientCallBackInfo, \n+            size_t numEvents, \n+            String[] eventPaths, \n+            [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)]\n+            Interop.CoreServices.FSEventStreamEventFlags[] eventFlags,\n+            [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)]\n+            FSEventStreamEventId[] eventIds)\n+        {\n+            Debug.Assert((numEvents.ToInt32() == eventPaths.Length) && (numEvents.ToInt32() == eventFlags.Length) && (numEvents.ToInt32() == eventIds.Length));\n+\n+            // Since renames come in pairs, when we find the first we need to search for the next one. Once we find it, we'll add it to this\n+            // list so when the for-loop comes across it, we'll skip it since it's already been processed as part of the original of the pair.\n+            System.Collections.Generic.List<FSEventStreamEventId> handledRenameEvents = new Collections.Generic.List<FSEventStreamEventId>();","path":"src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs","position":237,"original_position":237,"commit_id":"e3252578b498803f8b838338e5de8611ab31e3a3","original_commit_id":"e3252578b498803f8b838338e5de8611ab31e3a3","user":{"login":"sokket","id":1761798,"avatar_url":"https://avatars.githubusercontent.com/u/1761798?v=3","gravatar_id":"","url":"https://api.github.com/users/sokket","html_url":"https://github.com/sokket","followers_url":"https://api.github.com/users/sokket/followers","following_url":"https://api.github.com/users/sokket/following{/other_user}","gists_url":"https://api.github.com/users/sokket/gists{/gist_id}","starred_url":"https://api.github.com/users/sokket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokket/subscriptions","organizations_url":"https://api.github.com/users/sokket/orgs","repos_url":"https://api.github.com/users/sokket/repos","events_url":"https://api.github.com/users/sokket/events{/privacy}","received_events_url":"https://api.github.com/users/sokket/received_events","type":"User","site_admin":false},"body":"Good idea","created_at":"2015-03-23T18:50:24Z","updated_at":"2015-03-23T18:50:24Z","html_url":"https://github.com/dotnet/corefx/pull/1193#discussion_r26967094","pull_request_url":"https://api.github.com/repos/dotnet/corefx/pulls/1193","_links":{"self":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/comments/26967094"},"html":{"href":"https://github.com/dotnet/corefx/pull/1193#discussion_r26967094"},"pull_request":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1193"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/1193","id":31638765,"html_url":"https://github.com/dotnet/corefx/pull/1193","diff_url":"https://github.com/dotnet/corefx/pull/1193.diff","patch_url":"https://github.com/dotnet/corefx/pull/1193.patch","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/1193","number":1193,"state":"open","locked":false,"title":"Adding initial implementation of the FileSystemWatcher on OS X","user":{"login":"sokket","id":1761798,"avatar_url":"https://avatars.githubusercontent.com/u/1761798?v=3","gravatar_id":"","url":"https://api.github.com/users/sokket","html_url":"https://github.com/sokket","followers_url":"https://api.github.com/users/sokket/followers","following_url":"https://api.github.com/users/sokket/following{/other_user}","gists_url":"https://api.github.com/users/sokket/gists{/gist_id}","starred_url":"https://api.github.com/users/sokket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokket/subscriptions","organizations_url":"https://api.github.com/users/sokket/orgs","repos_url":"https://api.github.com/users/sokket/repos","events_url":"https://api.github.com/users/sokket/events{/privacy}","received_events_url":"https://api.github.com/users/sokket/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-20T18:19:53Z","updated_at":"2015-03-23T18:50:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81bad48f0f96e6dacb371870e4817c6fc687e467","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/corefx/pulls/1193/commits","review_comments_url":"https://api.github.com/repos/dotnet/corefx/pulls/1193/comments","review_comment_url":"https://api.github.com/repos/dotnet/corefx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/1193/comments","statuses_url":"https://api.github.com/repos/dotnet/corefx/statuses/e3252578b498803f8b838338e5de8611ab31e3a3","head":{"label":"sokket:filesystemwatcher","ref":"filesystemwatcher","sha":"e3252578b498803f8b838338e5de8611ab31e3a3","user":{"login":"sokket","id":1761798,"avatar_url":"https://avatars.githubusercontent.com/u/1761798?v=3","gravatar_id":"","url":"https://api.github.com/users/sokket","html_url":"https://github.com/sokket","followers_url":"https://api.github.com/users/sokket/followers","following_url":"https://api.github.com/users/sokket/following{/other_user}","gists_url":"https://api.github.com/users/sokket/gists{/gist_id}","starred_url":"https://api.github.com/users/sokket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokket/subscriptions","organizations_url":"https://api.github.com/users/sokket/orgs","repos_url":"https://api.github.com/users/sokket/repos","events_url":"https://api.github.com/users/sokket/events{/privacy}","received_events_url":"https://api.github.com/users/sokket/received_events","type":"User","site_admin":false},"repo":{"id":31975260,"name":"corefx","full_name":"sokket/corefx","owner":{"login":"sokket","id":1761798,"avatar_url":"https://avatars.githubusercontent.com/u/1761798?v=3","gravatar_id":"","url":"https://api.github.com/users/sokket","html_url":"https://github.com/sokket","followers_url":"https://api.github.com/users/sokket/followers","following_url":"https://api.github.com/users/sokket/following{/other_user}","gists_url":"https://api.github.com/users/sokket/gists{/gist_id}","starred_url":"https://api.github.com/users/sokket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokket/subscriptions","organizations_url":"https://api.github.com/users/sokket/orgs","repos_url":"https://api.github.com/users/sokket/repos","events_url":"https://api.github.com/users/sokket/events{/privacy}","received_events_url":"https://api.github.com/users/sokket/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sokket/corefx","description":"This repo contains the .NET Core foundational libraries, called CoreFX. It includes classes for collections, file systems, console, XML, async and many others.","fork":true,"url":"https://api.github.com/repos/sokket/corefx","forks_url":"https://api.github.com/repos/sokket/corefx/forks","keys_url":"https://api.github.com/repos/sokket/corefx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sokket/corefx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sokket/corefx/teams","hooks_url":"https://api.github.com/repos/sokket/corefx/hooks","issue_events_url":"https://api.github.com/repos/sokket/corefx/issues/events{/number}","events_url":"https://api.github.com/repos/sokket/corefx/events","assignees_url":"https://api.github.com/repos/sokket/corefx/assignees{/user}","branches_url":"https://api.github.com/repos/sokket/corefx/branches{/branch}","tags_url":"https://api.github.com/repos/sokket/corefx/tags","blobs_url":"https://api.github.com/repos/sokket/corefx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sokket/corefx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sokket/corefx/git/refs{/sha}","trees_url":"https://api.github.com/repos/sokket/corefx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sokket/corefx/statuses/{sha}","languages_url":"https://api.github.com/repos/sokket/corefx/languages","stargazers_url":"https://api.github.com/repos/sokket/corefx/stargazers","contributors_url":"https://api.github.com/repos/sokket/corefx/contributors","subscribers_url":"https://api.github.com/repos/sokket/corefx/subscribers","subscription_url":"https://api.github.com/repos/sokket/corefx/subscription","commits_url":"https://api.github.com/repos/sokket/corefx/commits{/sha}","git_commits_url":"https://api.github.com/repos/sokket/corefx/git/commits{/sha}","comments_url":"https://api.github.com/repos/sokket/corefx/comments{/number}","issue_comment_url":"https://api.github.com/repos/sokket/corefx/issues/comments{/number}","contents_url":"https://api.github.com/repos/sokket/corefx/contents/{+path}","compare_url":"https://api.github.com/repos/sokket/corefx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sokket/corefx/merges","archive_url":"https://api.github.com/repos/sokket/corefx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sokket/corefx/downloads","issues_url":"https://api.github.com/repos/sokket/corefx/issues{/number}","pulls_url":"https://api.github.com/repos/sokket/corefx/pulls{/number}","milestones_url":"https://api.github.com/repos/sokket/corefx/milestones{/number}","notifications_url":"https://api.github.com/repos/sokket/corefx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sokket/corefx/labels{/name}","releases_url":"https://api.github.com/repos/sokket/corefx/releases{/id}","created_at":"2015-03-10T18:45:28Z","updated_at":"2015-03-19T23:09:23Z","pushed_at":"2015-03-20T18:19:24Z","git_url":"git://github.com/sokket/corefx.git","ssh_url":"git@github.com:sokket/corefx.git","clone_url":"https://github.com/sokket/corefx.git","svn_url":"https://github.com/sokket/corefx","homepage":"","size":12435,"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":"dotnet:master","ref":"master","sha":"3fb15c7e704e54d1c57982fc72582f49d72e901b","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":26295345,"name":"corefx","full_name":"dotnet/corefx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/corefx","description":"This repo contains the .NET Core foundational libraries, called CoreFX. It includes classes for collections, file systems, console, XML, async and many others.","fork":false,"url":"https://api.github.com/repos/dotnet/corefx","forks_url":"https://api.github.com/repos/dotnet/corefx/forks","keys_url":"https://api.github.com/repos/dotnet/corefx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/corefx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/corefx/teams","hooks_url":"https://api.github.com/repos/dotnet/corefx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/corefx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/corefx/events","assignees_url":"https://api.github.com/repos/dotnet/corefx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/corefx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/corefx/tags","blobs_url":"https://api.github.com/repos/dotnet/corefx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/corefx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/corefx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/corefx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/corefx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/corefx/languages","stargazers_url":"https://api.github.com/repos/dotnet/corefx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/corefx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/corefx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/corefx/subscription","commits_url":"https://api.github.com/repos/dotnet/corefx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/corefx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/corefx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/corefx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/corefx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/corefx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/corefx/merges","archive_url":"https://api.github.com/repos/dotnet/corefx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/corefx/downloads","issues_url":"https://api.github.com/repos/dotnet/corefx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/corefx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/corefx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/corefx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/corefx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/corefx/releases{/id}","created_at":"2014-11-06T23:42:48Z","updated_at":"2015-03-23T18:39:31Z","pushed_at":"2015-03-23T18:39:31Z","git_url":"git://github.com/dotnet/corefx.git","ssh_url":"git@github.com:dotnet/corefx.git","clone_url":"https://github.com/dotnet/corefx.git","svn_url":"https://github.com/dotnet/corefx","homepage":"","size":28356,"stargazers_count":7288,"watchers_count":7288,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1399,"mirror_url":null,"open_issues_count":317,"forks":1399,"open_issues":317,"watchers":7288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1193"},"html":{"href":"https://github.com/dotnet/corefx/pull/1193"},"issue":{"href":"https://api.github.com/repos/dotnet/corefx/issues/1193"},"comments":{"href":"https://api.github.com/repos/dotnet/corefx/issues/1193/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1193/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1193/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/corefx/statuses/e3252578b498803f8b838338e5de8611ab31e3a3"}}}}