Repository: hub4j/github-api
Pull request #1101 (2021-04-15 20:53:30)

Add sort and order parameters to GHContentSearchBuilder
# Description 

Adds `sort` and `order` parameters from [GitHub code search API](https://docs.github.com/en/rest/reference/search#search-code--parameters) to `GHContentSearchBuilder` as per #1088.

# Before submitting a PR:
We love getting PRs, but we hate asking people for the same basic changes every time. 

- [x] Push your changes to a branch other than `master`. Create your PR from that branch.    
- [x] Add JavaDocs and other comments
- [x] Write tests that run and pass in CI. See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to capture snapshot data.
- [x] Run `mvn -D enable-ci clean install site` locally. If this command doesn't succeed, your change will not pass CI. 

# When creating a PR: 

- [x] Fill in the "Description" above. 
- [x] Enable "Allow edits from maintainers". 



Patch:
diff --git a/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java b/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java
index b4b93880f..8f156cde5 100644
--- a/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java
+++ b/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java
@@ -118,6 +118,41 @@ public class GHContentSearchBuilder extends GHSearchBuilder<GHContent> {
         return q("repo:" + v);
     }
 
+    /**
+     * Order gh content search builder.
+     *
+     * @param v
+     *            the v
+     * @return the gh content search builder
+     */
+    public GHContentSearchBuilder order(GHDirection v) {
+        req.with("order", v);
+        return this;
+    }
+
+    /**
+     * Sort gh content search builder.
+     *
+     * @param sort
+     *            the sort
+     * @return the gh content search builder
+     */
+    public GHContentSearchBuilder sort(GHContentSearchBuilder.Sort sort) {
+        if (Sort.BEST_MATCH.equals(sort)) {
+            req.remove("sort");
+        } else {
+            req.with("sort", sort);
+        }
+        return this;
+    }
+
+    /**
+     * The enum Sort.
+     */
+    public enum Sort {
+        BEST_MATCH, INDEXED
+    }
+
     private static class ContentSearchResult extends SearchResult<GHContent> {
         private GHContent[] items;
 
diff --git a/src/main/java/org/kohsuke/github/GitHubRequest.java b/src/main/java/org/kohsuke/github/GitHubRequest.java
index b988e80c8..aea8b99b1 100644
--- a/src/main/java/org/kohsuke/github/GitHubRequest.java
+++ b/src/main/java/org/kohsuke/github/GitHubRequest.java
@@ -602,13 +602,27 @@ class GitHubRequest {
          * @return the request builder
          */
         public B set(String key, Object value) {
-            for (int index = 0; index < args.size(); index++) {
+            remove(key);
+            return with(key, value);
+
+        }
+
+        /**
+         * Removes all arg entries for a specific key.
+         *
+         * @param key
+         *            the key
+         * @return the request builder
+         */
+        public B remove(String key) {
+            for (int index = 0; index < args.size();) {
                 if (args.get(index).key.equals(key)) {
-                    args.set(index, new Entry(key, value));
-                    return (B) this;
+                    args.remove(index);
+                } else {
+                    index++;
                 }
             }
-            return with(key, value);
+            return (B) this;
         }
 
         /**


Test patch:
diff --git a/src/test/java/org/kohsuke/github/GitHubTest.java b/src/test/java/org/kohsuke/github/GitHubTest.java
index b4182267b..d73af9a88 100644
--- a/src/test/java/org/kohsuke/github/GitHubTest.java
+++ b/src/test/java/org/kohsuke/github/GitHubTest.java
@@ -100,13 +100,60 @@ public class GitHubTest extends AbstractGitHubWireMockTest {
                 .in("file")
                 .language("js")
                 .repo("jquery/jquery")
+                // ignored unless sort is also set
+                .order(GHDirection.DESC)
                 .list();
         GHContent c = r.iterator().next();
+
         // System.out.println(c.getName());
         assertNotNull(c.getDownloadUrl());
         assertNotNull(c.getOwner());
         assertEquals("jquery/jquery", c.getOwner().getFullName());
-        assertTrue(r.getTotalCount() > 0);
+        assertTrue(r.getTotalCount() > 5);
+
+        PagedSearchIterable<GHContent> r2 = gitHub.searchContent()
+                .q("addClass")
+                .in("file")
+                .language("js")
+                .repo("jquery/jquery")
+                // resets query sort back to default
+                .sort(GHContentSearchBuilder.Sort.INDEXED)
+                .sort(GHContentSearchBuilder.Sort.BEST_MATCH)
+                // ignored unless sort is also set to non-default
+                .order(GHDirection.ASC)
+                .list();
+
+        GHContent c2 = r2.iterator().next();
+        assertThat(c2.getPath(), equalTo(c.getPath()));
+        assertThat(r2.getTotalCount(), equalTo(r.getTotalCount()));
+
+        PagedSearchIterable<GHContent> r3 = gitHub.searchContent()
+                .q("addClass")
+                .in("file")
+                .language("js")
+                .repo("jquery/jquery")
+                .sort(GHContentSearchBuilder.Sort.INDEXED)
+                .order(GHDirection.ASC)
+                .list();
+
+        GHContent c3 = r3.iterator().next();
+        assertThat(c3.getPath(), not(equalTo(c2.getPath())));
+        assertThat(r3.getTotalCount(), equalTo(r2.getTotalCount()));
+
+        PagedSearchIterable<GHContent> r4 = gitHub.searchContent()
+                .q("addClass")
+                .in("file")
+                .language("js")
+                .repo("jquery/jquery")
+                .sort(GHContentSearchBuilder.Sort.INDEXED)
+                .order(GHDirection.DESC)
+                .list();
+
+        GHContent c4 = r4.iterator().next();
+        assertThat(c4.getPath(), not(equalTo(c2.getPath())));
+        assertThat(c4.getPath(), not(equalTo(c3.getPath())));
+        assertThat(r4.getTotalCount(), equalTo(r2.getTotalCount()));
+
     }
 
     @Test
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/repositories_167174_contents_src_attributes_classesjs-3.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/repositories_167174_contents_src_attributes_classesjs-3.json
index 30f66e74a..2a496dad8 100644
--- a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/repositories_167174_contents_src_attributes_classesjs-3.json
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/repositories_167174_contents_src_attributes_classesjs-3.json
@@ -1,18 +1,18 @@
 {
   "name": "classes.js",
   "path": "src/attributes/classes.js",
-  "sha": "f1571eb5d0685c8cea8a394d90c61f3d9b5a8f82",
-  "size": 4437,
-  "url": "https://api.github.com/repos/jquery/jquery/contents/src/attributes/classes.js?ref=cf84696fd1d7fe314a11492606529b5a658ee9e3",
-  "html_url": "https://github.com/jquery/jquery/blob/cf84696fd1d7fe314a11492606529b5a658ee9e3/src/attributes/classes.js",
-  "git_url": "https://api.github.com/repos/jquery/jquery/git/blobs/f1571eb5d0685c8cea8a394d90c61f3d9b5a8f82",
-  "download_url": "https://raw.githubusercontent.com/jquery/jquery/cf84696fd1d7fe314a11492606529b5a658ee9e3/src/attributes/classes.js",
+  "sha": "796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+  "size": 3553,
+  "url": "https://api.github.com/repos/jquery/jquery/contents/src/attributes/classes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+  "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/attributes/classes.js",
+  "git_url": "https://api.github.com/repos/jquery/jquery/git/blobs/796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+  "download_url": "https://raw.githubusercontent.com/jquery/jquery/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/attributes/classes.js",
   "type": "file",
-  "content": "ZGVmaW5lKCBbCgkiLi4vY29yZSIsCgkiLi4vY29yZS9zdHJpcEFuZENvbGxh\ncHNlIiwKCSIuLi92YXIvcm5vdGh0bWx3aGl0ZSIsCgkiLi4vZGF0YS92YXIv\nZGF0YVByaXYiLAoJIi4uL2NvcmUvaW5pdCIKXSwgZnVuY3Rpb24oIGpRdWVy\neSwgc3RyaXBBbmRDb2xsYXBzZSwgcm5vdGh0bWx3aGl0ZSwgZGF0YVByaXYg\nKSB7CgoidXNlIHN0cmljdCI7CgpmdW5jdGlvbiBnZXRDbGFzcyggZWxlbSAp\nIHsKCXJldHVybiBlbGVtLmdldEF0dHJpYnV0ZSAmJiBlbGVtLmdldEF0dHJp\nYnV0ZSggImNsYXNzIiApIHx8ICIiOwp9CgpmdW5jdGlvbiBjbGFzc2VzVG9B\ncnJheSggdmFsdWUgKSB7CglpZiAoIEFycmF5LmlzQXJyYXkoIHZhbHVlICkg\nKSB7CgkJcmV0dXJuIHZhbHVlOwoJfQoJaWYgKCB0eXBlb2YgdmFsdWUgPT09\nICJzdHJpbmciICkgewoJCXJldHVybiB2YWx1ZS5tYXRjaCggcm5vdGh0bWx3\naGl0ZSAp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k7CgkJCWNsYXNzTmFtZXMgPSBjbGFz\nc2VzVG9BcnJheSggdmFsdWUgKTsKCgkJCXdoaWxlICggKCBjbGFzc05hbWUg\nPSBjbGFzc05hbWVzWyBpKysgXSApICkgewoKCQkJCS8vIENoZWNrIGVhY2gg\nY2xhc3NOYW1lIGdpdmVuLCBzcGFjZSBzZXBhcmF0ZWQgbGlzdAoJCQkJaWYg\nKCBzZWxmLmhhc0NsYXNzKCBjbGFzc05hbWUgKSApIHsKCQkJCQlzZWxmLnJl\nbW92ZUNsYXNzKCBjbGFzc05hbWUgKTsKCQkJCX0gZWxzZSB7CgkJCQkJc2Vs\nZi5hZGRDbGFzcyggY2xhc3NOYW1lICk7CgkJCQl9CgkJCX0KCQl9ICk7Cgl9\nLAoKCWhhc0NsYXNzOiBmdW5jdGlvbiggc2VsZWN0b3IgKSB7CgkJdmFyIGNs\nYXNzTmFtZSwgZWxlbSwKCQkJaSA9IDA7CgoJCWNsYXNzTmFtZSA9ICIgIiAr\nIHNlbGVjdG9yICsgIiAiOwoJCXdoaWxlICggKCBlbGVtID0gdGhpc1sgaSsr\nIF0gKSApIHsKCQkJaWYgKCBlbGVtLm5vZGVUeXBlID09PSAxICYmCgkJCQko\nICIgIiArIHN0cmlwQW5kQ29sbGFwc2UoIGdldENsYXNzKCBlbGVtICkgKSAr\nICIgIiApLmluZGV4T2YoIGNsYXNzTmFtZSApID4gLTEgKSB7CgkJCQlyZXR1\ncm4gdHJ1ZTsKCQkJfQoJCX0KCgkJcmV0dXJuIGZhbHNlOwoJfQp9ICk7Cg==\n",
   "encoding": "base64",
   "_links": {
-    "self": "https://api.github.com/repos/jquery/jquery/contents/src/attributes/classes.js?ref=cf84696fd1d7fe314a11492606529b5a658ee9e3",
-    "git": "https://api.github.com/repos/jquery/jquery/git/blobs/f1571eb5d0685c8cea8a394d90c61f3d9b5a8f82",
-    "html": "https://github.com/jquery/jquery/blob/cf84696fd1d7fe314a11492606529b5a658ee9e3/src/attributes/classes.js"
+    "self": "https://api.github.com/repos/jquery/jquery/contents/src/attributes/classes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+    "git": "https://api.github.com/repos/jquery/jquery/git/blobs/796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+    "html": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/attributes/classes.js"
   }
 }
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-2.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-2.json
index d51cfe314..1524292e3 100644
--- a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-2.json
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-2.json
@@ -5,10 +5,10 @@
     {
       "name": "classes.js",
       "path": "src/attributes/classes.js",
-      "sha": "f1571eb5d0685c8cea8a394d90c61f3d9b5a8f82",
-      "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=cf84696fd1d7fe314a11492606529b5a658ee9e3",
-      "git_url": "https://api.github.com/repositories/167174/git/blobs/f1571eb5d0685c8cea8a394d90c61f3d9b5a8f82",
-      "html_url": "https://github.com/jquery/jquery/blob/cf84696fd1d7fe314a11492606529b5a658ee9e3/src/attributes/classes.js",
+      "sha": "796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/attributes/classes.js",
       "repository": {
         "id": 167174,
         "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
@@ -19,7 +19,7 @@
           "login": "jquery",
           "id": 70142,
           "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
-          "avatar_url": "https://avatars1.githubusercontent.com/u/70142?v=4",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
           "gravatar_id": "",
           "url": "https://api.github.com/users/jquery",
           "html_url": "https://github.com/jquery",
@@ -76,15 +76,15 @@
         "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
         "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
       },
-      "score": 8.561227
+      "score": 1
     },
     {
       "name": "attributes.js",
       "path": "test/unit/attributes.js",
-      "sha": "1aca11482a5a3f4c06766fd2b562a07801ec08ba",
-      "url": "https://api.github.com/repositories/167174/contents/test/unit/attributes.js?ref=30e1bfbdcb0ff658f1fa128b72480194e8ecb926",
-      "git_url": "https://api.github.com/repositories/167174/git/blobs/1aca11482a5a3f4c06766fd2b562a07801ec08ba",
-      "html_url": "https://github.com/jquery/jquery/blob/30e1bfbdcb0ff658f1fa128b72480194e8ecb926/test/unit/attributes.js",
+      "sha": "d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/attributes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/attributes.js",
       "repository": {
         "id": 167174,
         "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
@@ -95,7 +95,7 @@
           "login": "jquery",
           "id": 70142,
           "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
-          "avatar_url": "https://avatars1.githubusercontent.com/u/70142?v=4",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
           "gravatar_id": "",
           "url": "https://api.github.com/users/jquery",
           "html_url": "https://github.com/jquery",
@@ -152,15 +152,15 @@
         "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
         "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
       },
-      "score": 8.32478
+      "score": 1
     },
     {
       "name": "effects.js",
       "path": "test/unit/effects.js",
-      "sha": "13190dc5bbad00bc4c913c4f9a1ee6ea056c2a06",
-      "url": "https://api.github.com/repositories/167174/contents/test/unit/effects.js?ref=30e1bfbdcb0ff658f1fa128b72480194e8ecb926",
-      "git_url": "https://api.github.com/repositories/167174/git/blobs/13190dc5bbad00bc4c913c4f9a1ee6ea056c2a06",
-      "html_url": "https://github.com/jquery/jquery/blob/30e1bfbdcb0ff658f1fa128b72480194e8ecb926/test/unit/effects.js",
+      "sha": "2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/effects.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/effects.js",
       "repository": {
         "id": 167174,
         "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
@@ -171,7 +171,7 @@
           "login": "jquery",
           "id": 70142,
           "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
-          "avatar_url": "https://avatars1.githubusercontent.com/u/70142?v=4",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
           "gravatar_id": "",
           "url": "https://api.github.com/users/jquery",
           "html_url": "https://github.com/jquery",
@@ -228,15 +228,15 @@
         "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
         "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
       },
-      "score": 5.859816
+      "score": 1
     },
     {
       "name": "basic.js",
       "path": "test/unit/basic.js",
-      "sha": "79a0610ddce8fb19f8259b8b0c7c4474a34aefed",
-      "url": "https://api.github.com/repositories/167174/contents/test/unit/basic.js?ref=5ea5946094784f68437ef26d463dfcfbbbaff1f6",
-      "git_url": "https://api.github.com/repositories/167174/git/blobs/79a0610ddce8fb19f8259b8b0c7c4474a34aefed",
-      "html_url": "https://github.com/jquery/jquery/blob/5ea5946094784f68437ef26d463dfcfbbbaff1f6/test/unit/basic.js",
+      "sha": "fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/basic.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/basic.js",
       "repository": {
         "id": 167174,
         "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
@@ -247,7 +247,7 @@
           "login": "jquery",
           "id": 70142,
           "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
-          "avatar_url": "https://avatars1.githubusercontent.com/u/70142?v=4",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
           "gravatar_id": "",
           "url": "https://api.github.com/users/jquery",
           "html_url": "https://github.com/jquery",
@@ -304,15 +304,15 @@
         "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
         "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
       },
-      "score": 4.442872
+      "score": 1
     },
     {
       "name": "manipulation.js",
       "path": "test/unit/manipulation.js",
-      "sha": "97a5267f3c61cb11b562f8cfe6b3444ab90da1e0",
-      "url": "https://api.github.com/repositories/167174/contents/test/unit/manipulation.js?ref=30e1bfbdcb0ff658f1fa128b72480194e8ecb926",
-      "git_url": "https://api.github.com/repositories/167174/git/blobs/97a5267f3c61cb11b562f8cfe6b3444ab90da1e0",
-      "html_url": "https://github.com/jquery/jquery/blob/30e1bfbdcb0ff658f1fa128b72480194e8ecb926/test/unit/manipulation.js",
+      "sha": "131109448be5c649507aa0013b2a4ce898753ccf",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/manipulation.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/131109448be5c649507aa0013b2a4ce898753ccf",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/manipulation.js",
       "repository": {
         "id": 167174,
         "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
@@ -323,7 +323,7 @@
           "login": "jquery",
           "id": 70142,
           "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
-          "avatar_url": "https://avatars1.githubusercontent.com/u/70142?v=4",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
           "gravatar_id": "",
           "url": "https://api.github.com/users/jquery",
           "html_url": "https://github.com/jquery",
@@ -380,15 +380,15 @@
         "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
         "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
       },
-      "score": 2.9801388
+      "score": 1
     },
     {
       "name": "css.js",
       "path": "test/unit/css.js",
-      "sha": "5d1a97dd068a9c6ea1659a09e70755490a59df8d",
-      "url": "https://api.github.com/repositories/167174/contents/test/unit/css.js?ref=30e1bfbdcb0ff658f1fa128b72480194e8ecb926",
-      "git_url": "https://api.github.com/repositories/167174/git/blobs/5d1a97dd068a9c6ea1659a09e70755490a59df8d",
-      "html_url": "https://github.com/jquery/jquery/blob/30e1bfbdcb0ff658f1fa128b72480194e8ecb926/test/unit/css.js",
+      "sha": "6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/css.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/css.js",
       "repository": {
         "id": 167174,
         "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
@@ -399,7 +399,7 @@
           "login": "jquery",
           "id": 70142,
           "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
-          "avatar_url": "https://avatars1.githubusercontent.com/u/70142?v=4",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
           "gravatar_id": "",
           "url": "https://api.github.com/users/jquery",
           "html_url": "https://github.com/jquery",
@@ -456,15 +456,15 @@
         "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
         "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
       },
-      "score": 2.0772028
+      "score": 1
     },
     {
       "name": "jquery-1.9.1.js",
       "path": "test/data/jquery-1.9.1.js",
       "sha": "80c97a226a9833674b06d341ca9f8e93389e9d33",
-      "url": "https://api.github.com/repositories/167174/contents/test/data/jquery-1.9.1.js?ref=e743cbd28553267f955f71ea7248377915613fd9",
+      "url": "https://api.github.com/repositories/167174/contents/test/data/jquery-1.9.1.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
       "git_url": "https://api.github.com/repositories/167174/git/blobs/80c97a226a9833674b06d341ca9f8e93389e9d33",
-      "html_url": "https://github.com/jquery/jquery/blob/e743cbd28553267f955f71ea7248377915613fd9/test/data/jquery-1.9.1.js",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/data/jquery-1.9.1.js",
       "repository": {
         "id": 167174,
         "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
@@ -475,7 +475,7 @@
           "login": "jquery",
           "id": 70142,
           "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
-          "avatar_url": "https://avatars1.githubusercontent.com/u/70142?v=4",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
           "gravatar_id": "",
           "url": "https://api.github.com/users/jquery",
           "html_url": "https://github.com/jquery",
@@ -532,7 +532,7 @@
         "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
         "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
       },
-      "score": 1.1927781
+      "score": 1
     }
   ]
 }
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-4.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-4.json
new file mode 100644
index 000000000..1524292e3
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-4.json
@@ -0,0 +1,538 @@
+{
+  "total_count": 7,
+  "incomplete_results": false,
+  "items": [
+    {
+      "name": "classes.js",
+      "path": "src/attributes/classes.js",
+      "sha": "796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/attributes/classes.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "attributes.js",
+      "path": "test/unit/attributes.js",
+      "sha": "d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/attributes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/attributes.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "effects.js",
+      "path": "test/unit/effects.js",
+      "sha": "2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/effects.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/effects.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "basic.js",
+      "path": "test/unit/basic.js",
+      "sha": "fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/basic.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/basic.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "manipulation.js",
+      "path": "test/unit/manipulation.js",
+      "sha": "131109448be5c649507aa0013b2a4ce898753ccf",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/manipulation.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/131109448be5c649507aa0013b2a4ce898753ccf",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/manipulation.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "css.js",
+      "path": "test/unit/css.js",
+      "sha": "6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/css.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/css.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "jquery-1.9.1.js",
+      "path": "test/data/jquery-1.9.1.js",
+      "sha": "80c97a226a9833674b06d341ca9f8e93389e9d33",
+      "url": "https://api.github.com/repositories/167174/contents/test/data/jquery-1.9.1.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/80c97a226a9833674b06d341ca9f8e93389e9d33",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/data/jquery-1.9.1.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    }
+  ]
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-5.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-5.json
new file mode 100644
index 000000000..4dae27898
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-5.json
@@ -0,0 +1,538 @@
+{
+  "total_count": 7,
+  "incomplete_results": false,
+  "items": [
+    {
+      "name": "manipulation.js",
+      "path": "test/unit/manipulation.js",
+      "sha": "131109448be5c649507aa0013b2a4ce898753ccf",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/manipulation.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/131109448be5c649507aa0013b2a4ce898753ccf",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/manipulation.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "effects.js",
+      "path": "test/unit/effects.js",
+      "sha": "2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/effects.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/effects.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "css.js",
+      "path": "test/unit/css.js",
+      "sha": "6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/css.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/css.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "classes.js",
+      "path": "src/attributes/classes.js",
+      "sha": "796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/attributes/classes.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "jquery-1.9.1.js",
+      "path": "test/data/jquery-1.9.1.js",
+      "sha": "80c97a226a9833674b06d341ca9f8e93389e9d33",
+      "url": "https://api.github.com/repositories/167174/contents/test/data/jquery-1.9.1.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/80c97a226a9833674b06d341ca9f8e93389e9d33",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/data/jquery-1.9.1.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "attributes.js",
+      "path": "test/unit/attributes.js",
+      "sha": "d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/attributes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/attributes.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "basic.js",
+      "path": "test/unit/basic.js",
+      "sha": "fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/basic.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/basic.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    }
+  ]
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-6.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-6.json
new file mode 100644
index 000000000..8d6f1f6a8
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/search_code-6.json
@@ -0,0 +1,538 @@
+{
+  "total_count": 7,
+  "incomplete_results": false,
+  "items": [
+    {
+      "name": "basic.js",
+      "path": "test/unit/basic.js",
+      "sha": "fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/basic.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/fc3f8e5893fe09ce7cb1d0a9507a32aab004c9f5",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/basic.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "attributes.js",
+      "path": "test/unit/attributes.js",
+      "sha": "d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/attributes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/d83375172bd8e58adcbf8f424b6a34fa4bb50411",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/attributes.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "jquery-1.9.1.js",
+      "path": "test/data/jquery-1.9.1.js",
+      "sha": "80c97a226a9833674b06d341ca9f8e93389e9d33",
+      "url": "https://api.github.com/repositories/167174/contents/test/data/jquery-1.9.1.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/80c97a226a9833674b06d341ca9f8e93389e9d33",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/data/jquery-1.9.1.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "classes.js",
+      "path": "src/attributes/classes.js",
+      "sha": "796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/796fbcc808ca15bbe771f8c9c1a7bab3388f6128",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/attributes/classes.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "css.js",
+      "path": "test/unit/css.js",
+      "sha": "6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/css.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/6d2983f87e9dc7b8a094024d1fc60dab6e653963",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/css.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "effects.js",
+      "path": "test/unit/effects.js",
+      "sha": "2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/effects.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/2278b3afb31f22e274c19512b08cb11e8b65d061",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/effects.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    },
+    {
+      "name": "manipulation.js",
+      "path": "test/unit/manipulation.js",
+      "sha": "131109448be5c649507aa0013b2a4ce898753ccf",
+      "url": "https://api.github.com/repositories/167174/contents/test/unit/manipulation.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
+      "git_url": "https://api.github.com/repositories/167174/git/blobs/131109448be5c649507aa0013b2a4ce898753ccf",
+      "html_url": "https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/test/unit/manipulation.js",
+      "repository": {
+        "id": 167174,
+        "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=",
+        "name": "jquery",
+        "full_name": "jquery/jquery",
+        "private": false,
+        "owner": {
+          "login": "jquery",
+          "id": 70142,
+          "node_id": "MDEyOk9yZ2FuaXphdGlvbjcwMTQy",
+          "avatar_url": "https://avatars.githubusercontent.com/u/70142?v=4",
+          "gravatar_id": "",
+          "url": "https://api.github.com/users/jquery",
+          "html_url": "https://github.com/jquery",
+          "followers_url": "https://api.github.com/users/jquery/followers",
+          "following_url": "https://api.github.com/users/jquery/following{/other_user}",
+          "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}",
+          "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}",
+          "subscriptions_url": "https://api.github.com/users/jquery/subscriptions",
+          "organizations_url": "https://api.github.com/users/jquery/orgs",
+          "repos_url": "https://api.github.com/users/jquery/repos",
+          "events_url": "https://api.github.com/users/jquery/events{/privacy}",
+          "received_events_url": "https://api.github.com/users/jquery/received_events",
+          "type": "Organization",
+          "site_admin": false
+        },
+        "html_url": "https://github.com/jquery/jquery",
+        "description": "jQuery JavaScript Library",
+        "fork": false,
+        "url": "https://api.github.com/repos/jquery/jquery",
+        "forks_url": "https://api.github.com/repos/jquery/jquery/forks",
+        "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}",
+        "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}",
+        "teams_url": "https://api.github.com/repos/jquery/jquery/teams",
+        "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks",
+        "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}",
+        "events_url": "https://api.github.com/repos/jquery/jquery/events",
+        "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}",
+        "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}",
+        "tags_url": "https://api.github.com/repos/jquery/jquery/tags",
+        "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}",
+        "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}",
+        "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}",
+        "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}",
+        "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}",
+        "languages_url": "https://api.github.com/repos/jquery/jquery/languages",
+        "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers",
+        "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors",
+        "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers",
+        "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription",
+        "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}",
+        "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}",
+        "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}",
+        "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments{/number}",
+        "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}",
+        "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}",
+        "merges_url": "https://api.github.com/repos/jquery/jquery/merges",
+        "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}",
+        "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads",
+        "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}",
+        "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}",
+        "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}",
+        "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}",
+        "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}",
+        "releases_url": "https://api.github.com/repos/jquery/jquery/releases{/id}",
+        "deployments_url": "https://api.github.com/repos/jquery/jquery/deployments"
+      },
+      "score": 1
+    }
+  ]
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/user-1.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/user-1.json
index 41fc9e3d0..9fa6f2370 100644
--- a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/user-1.json
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/__files/user-1.json
@@ -2,7 +2,7 @@
   "login": "bitwiseman",
   "id": 1958953,
   "node_id": "MDQ6VXNlcjE5NTg5NTM=",
-  "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4",
+  "avatar_url": "https://avatars.githubusercontent.com/u/1958953?v=4",
   "gravatar_id": "",
   "url": "https://api.github.com/users/bitwiseman",
   "html_url": "https://github.com/bitwiseman",
@@ -23,23 +23,12 @@
   "location": "Seattle, WA, USA",
   "email": "bitwiseman@gmail.com",
   "hireable": null,
-  "bio": "https://twitter.com/bitwiseman",
-  "public_repos": 168,
-  "public_gists": 4,
-  "followers": 136,
-  "following": 9,
+  "bio": null,
+  "twitter_username": "bitwiseman",
+  "public_repos": 206,
+  "public_gists": 8,
+  "followers": 184,
+  "following": 11,
   "created_at": "2012-07-11T20:38:33Z",
-  "updated_at": "2019-09-24T19:32:29Z",
-  "private_gists": 7,
-  "total_private_repos": 9,
-  "owned_private_repos": 0,
-  "disk_usage": 33697,
-  "collaborators": 0,
-  "two_factor_authentication": true,
-  "plan": {
-    "name": "free",
-    "space": 976562499,
-    "collaborators": 0,
-    "private_repos": 10000
-  }
+  "updated_at": "2021-04-15T21:34:44Z"
 }
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/repositories_167174_contents_src_attributes_classesjs-3.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/repositories_167174_contents_src_attributes_classesjs-3.json
index bcd56e567..78f24c175 100644
--- a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/repositories_167174_contents_src_attributes_classesjs-3.json
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/repositories_167174_contents_src_attributes_classesjs-3.json
@@ -1,8 +1,8 @@
 {
-  "id": "d7ab2e43-a548-4208-a44b-5d15b0c3b195",
+  "id": "c96c1e28-f9ec-42a1-93ff-4140578f63bc",
   "name": "repositories_167174_contents_src_attributes_classesjs",
   "request": {
-    "url": "/repositories/167174/contents/src/attributes/classes.js?ref=cf84696fd1d7fe314a11492606529b5a658ee9e3",
+    "url": "/repositories/167174/contents/src/attributes/classes.js?ref=a684e6ba836f7c553968d7d026ed7941e1a612d8",
     "method": "GET",
     "headers": {
       "Accept": {
@@ -14,35 +14,33 @@
     "status": 200,
     "bodyFileName": "repositories_167174_contents_src_attributes_classesjs-3.json",
     "headers": {
-      "Date": "Mon, 07 Oct 2019 20:19:56 GMT",
-      "Content-Type": "application/json; charset=utf-8",
       "Server": "GitHub.com",
-      "Status": "200 OK",
-      "X-RateLimit-Limit": "5000",
-      "X-RateLimit-Remaining": "4816",
-      "X-RateLimit-Reset": "1570482632",
+      "Date": "Thu, 15 Apr 2021 21:48:48 GMT",
+      "Content-Type": "application/json; charset=utf-8",
       "Cache-Control": "private, max-age=60, s-maxage=60",
       "Vary": [
         "Accept, Authorization, Cookie, X-GitHub-OTP",
-        "Accept-Encoding"
+        "Accept-Encoding, Accept, X-Requested-With"
       ],
-      "ETag": "W/\"f1571eb5d0685c8cea8a394d90c61f3d9b5a8f82\"",
-      "Last-Modified": "Mon, 29 Apr 2019 20:56:09 GMT",
-      "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
+      "ETag": "W/\"796fbcc808ca15bbe771f8c9c1a7bab3388f6128\"",
+      "Last-Modified": "Wed, 24 Mar 2021 22:36:25 GMT",
+      "X-OAuth-Scopes": "repo, workflow",
       "X-Accepted-OAuth-Scopes": "",
       "X-GitHub-Media-Type": "unknown, github.v3",
-      "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
-      "Access-Control-Allow-Origin": "*",
+      "X-RateLimit-Limit": "5000",
+      "X-RateLimit-Remaining": "4964",
+      "X-RateLimit-Reset": "1618523976",
+      "X-RateLimit-Used": "36",
       "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
       "X-Frame-Options": "deny",
       "X-Content-Type-Options": "nosniff",
-      "X-XSS-Protection": "1; mode=block",
+      "X-XSS-Protection": "0",
       "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
       "Content-Security-Policy": "default-src 'none'",
-      "X-GitHub-Request-Id": "E9A8:67D6:350D5FA:3F0F530:5D9B9DEC"
+      "X-GitHub-Request-Id": "F6E8:92BD:2986BB:2B4CEA:6078B4C0"
     }
   },
-  "uuid": "d7ab2e43-a548-4208-a44b-5d15b0c3b195",
+  "uuid": "c96c1e28-f9ec-42a1-93ff-4140578f63bc",
   "persistent": true,
   "insertionIndex": 3
 }
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-2.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-2.json
index e92220c41..1acee3dba 100644
--- a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-2.json
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-2.json
@@ -1,8 +1,8 @@
 {
-  "id": "8ebadd89-ed2a-49f2-9dbd-490cadc9923a",
+  "id": "d82afb93-1c32-4166-a7be-04d593653a8e",
   "name": "search_code",
   "request": {
-    "url": "/search/code?q=addClass+in%3Afile+language%3Ajs+repo%3Ajquery%2Fjquery",
+    "url": "/search/code?order=desc&q=addClass+in%3Afile+language%3Ajs+repo%3Ajquery%2Fjquery",
     "method": "GET",
     "headers": {
       "Accept": {
@@ -14,30 +14,31 @@
     "status": 200,
     "bodyFileName": "search_code-2.json",
     "headers": {
-      "Date": "Mon, 07 Oct 2019 20:19:56 GMT",
-      "Content-Type": "application/json; charset=utf-8",
       "Server": "GitHub.com",
-      "Status": "200 OK",
-      "X-RateLimit-Limit": "30",
-      "X-RateLimit-Remaining": "29",
-      "X-RateLimit-Reset": "1570479656",
+      "Date": "Thu, 15 Apr 2021 21:48:48 GMT",
+      "Content-Type": "application/json; charset=utf-8",
       "Cache-Control": "no-cache",
-      "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
+      "Vary": [
+        "Accept, Authorization, Cookie, X-GitHub-OTP",
+        "Accept-Encoding, Accept, X-Requested-With"
+      ],
+      "X-OAuth-Scopes": "repo, workflow",
       "X-Accepted-OAuth-Scopes": "",
       "X-GitHub-Media-Type": "unknown, github.v3",
-      "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
-      "Access-Control-Allow-Origin": "*",
+      "X-RateLimit-Limit": "30",
+      "X-RateLimit-Remaining": "25",
+      "X-RateLimit-Reset": "1618523351",
+      "X-RateLimit-Used": "5",
       "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
       "X-Frame-Options": "deny",
       "X-Content-Type-Options": "nosniff",
-      "X-XSS-Protection": "1; mode=block",
+      "X-XSS-Protection": "0",
       "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
       "Content-Security-Policy": "default-src 'none'",
-      "Vary": "Accept-Encoding",
-      "X-GitHub-Request-Id": "E9A8:67D6:350D5BE:3F0F4B1:5D9B9DEB"
+      "X-GitHub-Request-Id": "F6E8:92BD:2986AA:2B4CD6:6078B4C0"
     }
   },
-  "uuid": "8ebadd89-ed2a-49f2-9dbd-490cadc9923a",
+  "uuid": "d82afb93-1c32-4166-a7be-04d593653a8e",
   "persistent": true,
   "insertionIndex": 2
 }
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-4.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-4.json
new file mode 100644
index 000000000..a5d4ad465
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-4.json
@@ -0,0 +1,44 @@
+{
+  "id": "e5f64eb4-69a4-400d-9407-4d7b1ab58cf2",
+  "name": "search_code",
+  "request": {
+    "url": "/search/code?order=asc&q=addClass+in%3Afile+language%3Ajs+repo%3Ajquery%2Fjquery",
+    "method": "GET",
+    "headers": {
+      "Accept": {
+        "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
+      }
+    }
+  },
+  "response": {
+    "status": 200,
+    "bodyFileName": "search_code-4.json",
+    "headers": {
+      "Server": "GitHub.com",
+      "Date": "Thu, 15 Apr 2021 21:48:48 GMT",
+      "Content-Type": "application/json; charset=utf-8",
+      "Cache-Control": "no-cache",
+      "Vary": [
+        "Accept, Authorization, Cookie, X-GitHub-OTP",
+        "Accept-Encoding, Accept, X-Requested-With"
+      ],
+      "X-OAuth-Scopes": "repo, workflow",
+      "X-Accepted-OAuth-Scopes": "",
+      "X-GitHub-Media-Type": "unknown, github.v3",
+      "X-RateLimit-Limit": "30",
+      "X-RateLimit-Remaining": "24",
+      "X-RateLimit-Reset": "1618523351",
+      "X-RateLimit-Used": "6",
+      "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
+      "X-Frame-Options": "deny",
+      "X-Content-Type-Options": "nosniff",
+      "X-XSS-Protection": "0",
+      "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
+      "Content-Security-Policy": "default-src 'none'",
+      "X-GitHub-Request-Id": "F6E8:92BD:2986C8:2B4CF5:6078B4C0"
+    }
+  },
+  "uuid": "e5f64eb4-69a4-400d-9407-4d7b1ab58cf2",
+  "persistent": true,
+  "insertionIndex": 4
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-5.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-5.json
new file mode 100644
index 000000000..ef0927bed
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-5.json
@@ -0,0 +1,44 @@
+{
+  "id": "a1b414a8-f19d-4ecc-82e2-6328cffbeb26",
+  "name": "search_code",
+  "request": {
+    "url": "/search/code?sort=indexed&order=asc&q=addClass+in%3Afile+language%3Ajs+repo%3Ajquery%2Fjquery",
+    "method": "GET",
+    "headers": {
+      "Accept": {
+        "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
+      }
+    }
+  },
+  "response": {
+    "status": 200,
+    "bodyFileName": "search_code-5.json",
+    "headers": {
+      "Server": "GitHub.com",
+      "Date": "Thu, 15 Apr 2021 21:48:48 GMT",
+      "Content-Type": "application/json; charset=utf-8",
+      "Cache-Control": "no-cache",
+      "Vary": [
+        "Accept, Authorization, Cookie, X-GitHub-OTP",
+        "Accept-Encoding, Accept, X-Requested-With"
+      ],
+      "X-OAuth-Scopes": "repo, workflow",
+      "X-Accepted-OAuth-Scopes": "",
+      "X-GitHub-Media-Type": "unknown, github.v3",
+      "X-RateLimit-Limit": "30",
+      "X-RateLimit-Remaining": "23",
+      "X-RateLimit-Reset": "1618523351",
+      "X-RateLimit-Used": "7",
+      "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
+      "X-Frame-Options": "deny",
+      "X-Content-Type-Options": "nosniff",
+      "X-XSS-Protection": "0",
+      "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
+      "Content-Security-Policy": "default-src 'none'",
+      "X-GitHub-Request-Id": "F6E8:92BD:2986DB:2B4D08:6078B4C0"
+    }
+  },
+  "uuid": "a1b414a8-f19d-4ecc-82e2-6328cffbeb26",
+  "persistent": true,
+  "insertionIndex": 5
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-6.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-6.json
new file mode 100644
index 000000000..24eb69877
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/search_code-6.json
@@ -0,0 +1,44 @@
+{
+  "id": "a9b8870b-33d7-4164-a407-310342d68536",
+  "name": "search_code",
+  "request": {
+    "url": "/search/code?sort=indexed&order=desc&q=addClass+in%3Afile+language%3Ajs+repo%3Ajquery%2Fjquery",
+    "method": "GET",
+    "headers": {
+      "Accept": {
+        "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
+      }
+    }
+  },
+  "response": {
+    "status": 200,
+    "bodyFileName": "search_code-6.json",
+    "headers": {
+      "Server": "GitHub.com",
+      "Date": "Thu, 15 Apr 2021 21:48:49 GMT",
+      "Content-Type": "application/json; charset=utf-8",
+      "Cache-Control": "no-cache",
+      "Vary": [
+        "Accept, Authorization, Cookie, X-GitHub-OTP",
+        "Accept-Encoding, Accept, X-Requested-With"
+      ],
+      "X-OAuth-Scopes": "repo, workflow",
+      "X-Accepted-OAuth-Scopes": "",
+      "X-GitHub-Media-Type": "unknown, github.v3",
+      "X-RateLimit-Limit": "30",
+      "X-RateLimit-Remaining": "22",
+      "X-RateLimit-Reset": "1618523351",
+      "X-RateLimit-Used": "8",
+      "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
+      "X-Frame-Options": "deny",
+      "X-Content-Type-Options": "nosniff",
+      "X-XSS-Protection": "0",
+      "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
+      "Content-Security-Policy": "default-src 'none'",
+      "X-GitHub-Request-Id": "F6E8:92BD:2986E9:2B4D1A:6078B4C1"
+    }
+  },
+  "uuid": "a9b8870b-33d7-4164-a407-310342d68536",
+  "persistent": true,
+  "insertionIndex": 6
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/user-1.json
index 7ae07c725..00df1fd14 100644
--- a/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/user-1.json
+++ b/src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContent/mappings/user-1.json
@@ -1,5 +1,5 @@
 {
-  "id": "d3b1f32c-0a98-4c3d-a630-00f934483deb",
+  "id": "e173c8a1-fa95-4d0c-8b5c-b18f3ecc8bab",
   "name": "user",
   "request": {
     "url": "/user",
@@ -14,35 +14,33 @@
     "status": 200,
     "bodyFileName": "user-1.json",
     "headers": {
-      "Date": "Mon, 07 Oct 2019 20:19:55 GMT",
-      "Content-Type": "application/json; charset=utf-8",
       "Server": "GitHub.com",
-      "Status": "200 OK",
-      "X-RateLimit-Limit": "5000",
-      "X-RateLimit-Remaining": "4818",
-      "X-RateLimit-Reset": "1570482632",
+      "Date": "Thu, 15 Apr 2021 21:48:47 GMT",
+      "Content-Type": "application/json; charset=utf-8",
       "Cache-Control": "private, max-age=60, s-maxage=60",
       "Vary": [
         "Accept, Authorization, Cookie, X-GitHub-OTP",
-        "Accept-Encoding"
+        "Accept-Encoding, Accept, X-Requested-With"
       ],
-      "ETag": "W/\"af0c41afcacb8ceee14b7d896719c3bd\"",
-      "Last-Modified": "Tue, 24 Sep 2019 19:32:29 GMT",
-      "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
+      "ETag": "W/\"a779685068e37c2251b2697aaa2248c18d1fae62251d4d37f705dddef0ec20d3\"",
+      "Last-Modified": "Thu, 15 Apr 2021 21:34:44 GMT",
+      "X-OAuth-Scopes": "repo, workflow",
       "X-Accepted-OAuth-Scopes": "",
       "X-GitHub-Media-Type": "unknown, github.v3",
-      "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
-      "Access-Control-Allow-Origin": "*",
+      "X-RateLimit-Limit": "5000",
+      "X-RateLimit-Remaining": "4966",
+      "X-RateLimit-Reset": "1618523976",
+      "X-RateLimit-Used": "34",
       "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
       "X-Frame-Options": "deny",
       "X-Content-Type-Options": "nosniff",
-      "X-XSS-Protection": "1; mode=block",
+      "X-XSS-Protection": "0",
       "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
       "Content-Security-Policy": "default-src 'none'",
-      "X-GitHub-Request-Id": "E9A8:67D6:350D573:3F0F49D:5D9B9DEB"
+      "X-GitHub-Request-Id": "F6E8:92BD:298685:2B4CAB:6078B4BF"
     }
   },
-  "uuid": "d3b1f32c-0a98-4c3d-a630-00f934483deb",
+  "uuid": "e173c8a1-fa95-4d0c-8b5c-b18f3ecc8bab",
   "persistent": true,
   "insertionIndex": 1
 }
\ No newline at end of file