nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: tetratelabs/getenvoy
Pull request #170 (2021-04-09 20:47:14)

Migrate from bintray to cloudsmith
Jfrog is sunsetting bintray on May 1st, 2021
https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

Use Cloudsmith (https://cloudsmith.io/) instead to host binaries

Signed-off-by: Arko Dasgupta <arko@tetrate.io>

codefromthecrypt: fyi here is the tracking issue this would resolve #113
codefromthecrypt: how's this going?
arkodg: 👋  updated the PR with the new URLs
will probably need to rerun the CI and merge once the packages have synced from bintray to cloudsmith
codefromthecrypt: Thanks for the update. By re-run CI, you mean the tests here? or a release or..
arkodg: 👍  was referring to this PR workflow

Patch:
diff --git a/pkg/manifest/locate.go b/pkg/manifest/locate.go
index f8c76ab..c19502b 100644
--- a/pkg/manifest/locate.go
+++ b/pkg/manifest/locate.go
@@ -34,8 +34,8 @@ var (
 	// manifestURL defines location of the GetEnvoy manifest.
 	manifestURL = &url.URL{
 		Scheme: "https",
-		Host:   "tetrate.bintray.com",
-		Path:   "/getenvoy/manifest.json",
+		Host:   "dl.getenvoy.io",
+		Path:   "/public/raw/files/manifest.json",
 	}
 )
 


Test patch:
diff --git a/pkg/cmd/root_test.go b/pkg/cmd/root_test.go
index 2042f18..a8ce59e 100644
--- a/pkg/cmd/root_test.go
+++ b/pkg/cmd/root_test.go
@@ -149,9 +149,9 @@ func TestGetEnvoyManifest(t *testing.T) {
 
 	tests := []testCase{ // we don't test default as that depends on the runtime env
 		{
-			name:     "default is https://tetrate.bintray.com/getenvoy/manifest.json",
+			name:     "default is https://dl.getenvoy.io/public/raw/files/manifest.json",
 			setup:    emptySetup,
-			expected: "https://tetrate.bintray.com/getenvoy/manifest.json",
+			expected: "https://dl.getenvoy.io/public/raw/files/manifest.json",
 		},
 		{
 			name: "GETENVOY_MANIFEST_URL env",
Repository: blevesearch/bleve
Pull request #1608 (2021-07-21 00:22:14)

MB-47476: JSON marshalers cannot work on `0xff` (HighTerm)
Using unicode/utf8's MaxRune as the `HighTerm` for sort while
missing values.


Patch:
diff --git a/search/sort.go b/search/sort.go
index 496db47f..9ed9a78c 100644
--- a/search/sort.go
+++ b/search/sort.go
@@ -21,12 +21,13 @@ import (
 	"math"
 	"sort"
 	"strings"
+	"unicode/utf8"
 
 	"github.com/blevesearch/bleve/v2/geo"
 	"github.com/blevesearch/bleve/v2/numeric"
 )
 
-var HighTerm = strings.Repeat(string([]byte{0xff}), 10)
+var HighTerm = strings.Repeat(string(utf8.MaxRune), 3)
 var LowTerm = string([]byte{0x00})
 
 type SearchSort interface {


Test patch:
diff --git a/search/search_test.go b/search/search_test.go
index f15dc061..af813911 100644
--- a/search/search_test.go
+++ b/search/search_test.go
@@ -15,6 +15,7 @@
 package search
 
 import (
+	"encoding/json"
 	"reflect"
 	"testing"
 )
@@ -74,3 +75,20 @@ func TestLocationsDedupe(t *testing.T) {
 		}
 	}
 }
+
+func TestMarshallingHighTerm(t *testing.T) {
+	highTermBytes, err := json.Marshal(HighTerm)
+	if err != nil {
+		t.Fatal(err)
+	}
+
+	var unmarshalledHighTerm string
+	err = json.Unmarshal(highTermBytes, &unmarshalledHighTerm)
+	if err != nil {
+		t.Fatal(err)
+	}
+
+	if unmarshalledHighTerm != HighTerm {
+		t.Fatalf("unexpected %x != %x", unmarshalledHighTerm, HighTerm)
+	}
+}