{"action":"created","comment":{"url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/comments/42323340","id":42323340,"diff_hunk":"@@ -2,58 +2,240 @@\n  * Created by petrfomichev on 28.09.15.\n  */\n \n-(function()\n-{\n+(function() {\n+    // Всякие глобальные переменные\n     var reviewsClassName =\n     {\n \n-    '1': 'review-rating-one',\n-    '2': 'review-rating-two',\n-    '3': 'review-rating-three',\n-    '4': 'review-rating-four',\n-    '5': 'review-rating-five'\n+        '1': 'review-rating-one',\n+        '2': 'review-rating-two',\n+        '3': 'review-rating-three',\n+        '4': 'review-rating-four',\n+        '5': 'review-rating-five'\n \n     }\n \n-    var reviewsFilter = document.getElementById('reviews-filter');\n-    reviewsFilter.className = 'invisible';\n-\n+    var ReadyState = {\n+        'UNSENT': 0,\n+        'OPENED': 1,\n+        'HEADERS_RECEIVED': 2,\n+        'LOADING': 3,\n+        'DONE': 4\n+    };\n     var templateContainer = document.querySelector('.reviews-list');\n-    var templateReview = document.getElementById('review-template');\n+    var reviews;\n \n-    var reviewsFragment = document.createDocumentFragment();\n+  //Добавляем класс invisible\n+  /**var reviewsFilterAppear = document.getElementById('reviews-filter');\n+  reviewsFilterAppear.classList.add('invisible');\n+  console.log(reviewsFilterAppear, 'invis on');**/\n \n-    reviews.forEach(function (reviews, i)\n-    {\n-        var newReviewElement = templateReview.content.children[0].cloneNode(true);\n+    //Блок ошибки загрузки\n+    function showLoadFailure() {\n+        templateContainer.classList.add('reviews-load-failure');\n+    }\n+\n+    //Блок кода отвечающий за отрисовку комментариев\n+    function reviewsRender(reviewToRender) {\n+      templateContainer.classList.remove('hotels-list-failure');\n+      templateContainer.innerHTML = '';\n+\n+        var templateReview = document.getElementById('review-template');\n+        console.log(reviewToRender);\n+        var reviewsFragment = document.createDocumentFragment();\n+        // Пробегаем по данным и отрисовываем\n+        reviewToRender.forEach(function (reviews) {\n+            var newReviewElement = templateReview.content.children[0].cloneNode(true);\n+\n+            newReviewElement.querySelector('.review-rating').classList.add(reviewsClassName[reviews['rating']]);\n+            newReviewElement.querySelector('.review-text').textContent = reviews['description'];\n+\n+            reviewsFragment.appendChild(newReviewElement);\n+            //Обработка изображений и ошибок\n+            if (reviews['author']['picture']) {\n+                var backgroundImage = new Image();\n+                backgroundImage.src = reviews['author']['picture'];\n+                backgroundImage.style.backgroundSize = '124px 124px';\n+                backgroundImage.className = \"review-author\";\n+\n+                backgroundImage.onload = function () {\n+                    var dummyImage = newReviewElement.querySelector('img.review-author');\n+                    newReviewElement.replaceChild(backgroundImage, dummyImage);\n+                }\n+\n+                backgroundImage.onerror = function (evt) {\n+                    newReviewElement.classList.add('review-load-failure');\n+                }\n+            }\n+\n+        });\n+\n+      /**var reviewsFilterAppear = document.getElementById('reviews-filter');\n+      reviewsFilterAppear.classList.remove('invisible');\n+      console.log(reviewsFilterAppear, 'invis off');**/\n+      templateContainer.appendChild(reviewsFragment);\n+    }\n+\n+    //Грузим JSON файл\n+    function loadReviews(callback) {\n+        var xhr = new XMLHttpRequest();\n+        xhr.timeout = 10000;\n+        xhr.open('get', 'data/reviews.json');\n+        xhr.send();\n+\n+        xhr.onreadystatechange = function (evt) {\n+            var loadedXhr = evt.target;\n+\n+            switch (loadedXhr.readyState) {\n+                case ReadyState.OPENED:\n+                case ReadyState.HEADERS_RECEIVED:\n+                case ReadyState.LOADING:\n+                {\n+                    templateContainer.classList.add('.pictures-loading');\n+                    break;\n+                }\n+                case ReadyState.DONE:\n+                default:\n+                {\n+                    if (xhr.status === 200) {\n+                        var data = loadedXhr.response;\n+                        templateContainer.classList.remove('.pictures-loading');\n+                        callback(JSON.parse(data));\n+                    }\n+                    if (xhr.status > 400) {\n+                        showLoadFailure();\n+                    }\n+                    ;\n+                    xhr.ontimeout = function () {\n+                        showLoadFailure();\n+                    };\n+                }\n \n-        newReviewElement.querySelector('.review-rating').classList.add(reviewsClassName[reviews['rating']]);\n-        newReviewElement.querySelector('.review-text').textContent = reviews['description'];\n+            }\n+        }\n+\n+    }\n+  //Функция инициализации фильтров\n+  function initFilters()\n+  {\n+    var filtersContainer = document.querySelector('.reviews-filter');\n+    for (var i = 0, l = filtersContainer.length; i < l; i++) {\n+      filtersContainer.onclick = function (evt)\n+      {\n+        var clickedFilter = evt.target;\n+        console.log(clickedFilter.value, '- это айди кнопки');\n+        setActiveFilter(clickedFilter.value);\n+      }\n+    }\n+\n+  }\n \n-        reviewsFragment.appendChild(newReviewElement);\n+  function setActiveFilter(filterID) {\n+   var filteredReviews = workingFilters(reviews, filterID);\n+    reviewsRender(filteredReviews);\n+  }\n \n-        if (reviews['author']['picture']) {\n-            var backgroundImage = new Image();\n-            backgroundImage.src = reviews['author']['picture'];\n-            backgroundImage.style.backgroundSize = '124px 124px';\n-            backgroundImage.className = \"review-author\";\n \n-            backgroundImage.onload = function ()\n+  //Функция работы фильтров\n+    function workingFilters (reviews, filterID)\n+    {\n+        var filteredReviews = reviews.slice(0);\n+        switch (filterID) {\n+            case 'reviews-recent':\n+            {\n+              filteredReviews = filteredReviews.sort(function(a, b)\n+                {\n+                  aa = new Date(a.date);\n+                  bb = new Date(b.date);\n+                  if (aa < bb)\n+                  {\n+                    return 1;\n+                  }\n+                  if (aa > bb)\n+                  {\n+                    return -1;\n+                  }\n+                  if (aa === bb)\n+                  {\n+                    return 0;\n+                  }\n+                });\n+                  break;\n+            }\n+            case 'reviews-good':\n+            {\n+              filteredReviews = filteredReviews.sort(function(a, b)\n+              {\n+                if (a.rating < b.rating)\n+                {\n+                  return 1;\n+                }\n+                if (a.rating > b.rating)\n+                {\n+                  return -1;\n+                }\n+                if (a.rating === b.rating)\n+                {\n+                  return 0;\n+                }\n+              });\n+                break;\n+            }\n+\n+            case 'reviews-bad':\n             {\n-                var dummyImage = newReviewElement.querySelector('img.review-author');\n-                newReviewElement.replaceChild(backgroundImage, dummyImage);\n+              filteredReviews = filteredReviews.sort(function(a, b)\n+              {","path":"js/reviews-display.js","position":213,"original_position":213,"commit_id":"a97472494542a86bb24785c52a879f011ceddb5f","original_commit_id":"a97472494542a86bb24785c52a879f011ceddb5f","user":{"login":"ekirill","id":1984189,"avatar_url":"https://avatars.githubusercontent.com/u/1984189?v=3","gravatar_id":"","url":"https://api.github.com/users/ekirill","html_url":"https://github.com/ekirill","followers_url":"https://api.github.com/users/ekirill/followers","following_url":"https://api.github.com/users/ekirill/following{/other_user}","gists_url":"https://api.github.com/users/ekirill/gists{/gist_id}","starred_url":"https://api.github.com/users/ekirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekirill/subscriptions","organizations_url":"https://api.github.com/users/ekirill/orgs","repos_url":"https://api.github.com/users/ekirill/repos","events_url":"https://api.github.com/users/ekirill/events{/privacy}","received_events_url":"https://api.github.com/users/ekirill/received_events","type":"User","site_admin":false},"body":"с рейтингом не выше 2","created_at":"2015-10-18T17:25:55Z","updated_at":"2015-10-18T17:25:55Z","html_url":"https://github.com/js-htmlacademy/86802-code-and-magick/pull/4#discussion_r42323340","pull_request_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/comments/42323340"},"html":{"href":"https://github.com/js-htmlacademy/86802-code-and-magick/pull/4#discussion_r42323340"},"pull_request":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4","id":47893963,"html_url":"https://github.com/js-htmlacademy/86802-code-and-magick/pull/4","diff_url":"https://github.com/js-htmlacademy/86802-code-and-magick/pull/4.diff","patch_url":"https://github.com/js-htmlacademy/86802-code-and-magick/pull/4.patch","issue_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/issues/4","number":4,"state":"open","locked":false,"title":"Робкое знакомство с AJAX","user":{"login":"ohinvertedworld","id":3191570,"avatar_url":"https://avatars.githubusercontent.com/u/3191570?v=3","gravatar_id":"","url":"https://api.github.com/users/ohinvertedworld","html_url":"https://github.com/ohinvertedworld","followers_url":"https://api.github.com/users/ohinvertedworld/followers","following_url":"https://api.github.com/users/ohinvertedworld/following{/other_user}","gists_url":"https://api.github.com/users/ohinvertedworld/gists{/gist_id}","starred_url":"https://api.github.com/users/ohinvertedworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohinvertedworld/subscriptions","organizations_url":"https://api.github.com/users/ohinvertedworld/orgs","repos_url":"https://api.github.com/users/ohinvertedworld/repos","events_url":"https://api.github.com/users/ohinvertedworld/events{/privacy}","received_events_url":"https://api.github.com/users/ohinvertedworld/received_events","type":"User","site_admin":false},"body":"\n\n--\n:boom: https://js-htmlacademy.github.io/86802-code-and-magick/4/","created_at":"2015-10-16T10:26:12Z","updated_at":"2015-10-18T17:25:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4/commits","review_comments_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4/comments","review_comment_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/issues/4/comments","statuses_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/statuses/a97472494542a86bb24785c52a879f011ceddb5f","head":{"label":"ohinvertedworld:master","ref":"master","sha":"a97472494542a86bb24785c52a879f011ceddb5f","user":{"login":"ohinvertedworld","id":3191570,"avatar_url":"https://avatars.githubusercontent.com/u/3191570?v=3","gravatar_id":"","url":"https://api.github.com/users/ohinvertedworld","html_url":"https://github.com/ohinvertedworld","followers_url":"https://api.github.com/users/ohinvertedworld/followers","following_url":"https://api.github.com/users/ohinvertedworld/following{/other_user}","gists_url":"https://api.github.com/users/ohinvertedworld/gists{/gist_id}","starred_url":"https://api.github.com/users/ohinvertedworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohinvertedworld/subscriptions","organizations_url":"https://api.github.com/users/ohinvertedworld/orgs","repos_url":"https://api.github.com/users/ohinvertedworld/repos","events_url":"https://api.github.com/users/ohinvertedworld/events{/privacy}","received_events_url":"https://api.github.com/users/ohinvertedworld/received_events","type":"User","site_admin":false},"repo":{"id":43318724,"name":"86802-code-and-magick","full_name":"ohinvertedworld/86802-code-and-magick","owner":{"login":"ohinvertedworld","id":3191570,"avatar_url":"https://avatars.githubusercontent.com/u/3191570?v=3","gravatar_id":"","url":"https://api.github.com/users/ohinvertedworld","html_url":"https://github.com/ohinvertedworld","followers_url":"https://api.github.com/users/ohinvertedworld/followers","following_url":"https://api.github.com/users/ohinvertedworld/following{/other_user}","gists_url":"https://api.github.com/users/ohinvertedworld/gists{/gist_id}","starred_url":"https://api.github.com/users/ohinvertedworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohinvertedworld/subscriptions","organizations_url":"https://api.github.com/users/ohinvertedworld/orgs","repos_url":"https://api.github.com/users/ohinvertedworld/repos","events_url":"https://api.github.com/users/ohinvertedworld/events{/privacy}","received_events_url":"https://api.github.com/users/ohinvertedworld/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ohinvertedworld/86802-code-and-magick","description":"Peter Fomichev","fork":true,"url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick","forks_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/forks","keys_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/teams","hooks_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/events","assignees_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/tags","blobs_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/subscription","commits_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/merges","archive_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/downloads","issues_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/ohinvertedworld/86802-code-and-magick/releases{/id}","created_at":"2015-09-28T18:23:30Z","updated_at":"2015-09-28T18:32:35Z","pushed_at":"2015-10-16T10:29:45Z","git_url":"git://github.com/ohinvertedworld/86802-code-and-magick.git","ssh_url":"git@github.com:ohinvertedworld/86802-code-and-magick.git","clone_url":"https://github.com/ohinvertedworld/86802-code-and-magick.git","svn_url":"https://github.com/ohinvertedworld/86802-code-and-magick","homepage":null,"size":1050,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"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":"js-htmlacademy:master","ref":"master","sha":"116b79361cf97cc94a124b50d36b85c5b9ff12f5","user":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":42815757,"name":"86802-code-and-magick","full_name":"js-htmlacademy/86802-code-and-magick","owner":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-htmlacademy/86802-code-and-magick","description":"Peter Fomichev","fork":false,"url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick","forks_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/forks","keys_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/teams","hooks_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/events","assignees_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/tags","blobs_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/subscription","commits_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/merges","archive_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/downloads","issues_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/releases{/id}","created_at":"2015-09-20T14:23:49Z","updated_at":"2015-10-05T19:03:25Z","pushed_at":"2015-10-16T10:29:45Z","git_url":"git://github.com/js-htmlacademy/86802-code-and-magick.git","ssh_url":"git@github.com:js-htmlacademy/86802-code-and-magick.git","clone_url":"https://github.com/js-htmlacademy/86802-code-and-magick.git","svn_url":"https://github.com/js-htmlacademy/86802-code-and-magick","homepage":null,"size":1130,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4"},"html":{"href":"https://github.com/js-htmlacademy/86802-code-and-magick/pull/4"},"issue":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/issues/4"},"comments":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/js-htmlacademy/86802-code-and-magick/statuses/a97472494542a86bb24785c52a879f011ceddb5f"}}}}