text
stringlengths
93
16.4k
id
stringlengths
20
40
metadata
dict
input_ids
listlengths
45
2.05k
attention_mask
listlengths
45
2.05k
complexity
int64
1
9
func TestNodeProperty(t *testing.T) { labels := make(map[string]string) labels["label1"] = "value1" labels["label2"] = "valuel2" node := &api.Node{ TypeMeta: metav1.TypeMeta{ Kind: "Node", APIVersion: "v1", }, ObjectMeta: metav1.ObjectMeta{ Name: "my-node-1", UID: "my-node-1-UID", ...
explode_data.jsonl/75720
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 1955, 3052, 1155, 353, 8840, 836, 8, 341, 95143, 1669, 1281, 9147, 14032, 30953, 340, 95143, 1183, 1502, 16, 1341, 284, 330, 957, 16, 698, 95143, 1183, 1502, 17, 1341, 284, 330, 831, 4000, 17, 1837, 20831, 1669, 609, 2068,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNewFileWatcher(t *testing.T) { w := createTestWatcher(t) assert.Equal(t, w.notify, "/tmp/notifytest") assert.NotNil(t, w.fsWatcher) assert.NotNil(t, w.Events) }
explode_data.jsonl/81013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 3564, 1703, 47248, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 1855, 2271, 47248, 1155, 340, 6948, 12808, 1155, 11, 289, 24681, 11, 3521, 5173, 14, 21948, 1944, 1138, 6948, 93882, 1155, 11, 289, 41355, 47248, 340, 6948, 93882,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestEndpointsAdapterGet(t *testing.T) { endpoints1, _ := generateEndpointsAndSlice("foo", "testing", []int{80, 443}, []string{"10.1.2.3", "10.1.2.4"}) testCases := map[string]struct { endpointSlicesEnabled bool expectedError error expectedEndpoints *corev1.Endpoints endpoints []*...
explode_data.jsonl/11036
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1126 }
[ 2830, 3393, 80786, 5940, 1949, 1155, 353, 8840, 836, 8, 341, 6246, 7706, 16, 11, 716, 1669, 6923, 80786, 3036, 33236, 445, 7975, 497, 330, 8840, 497, 3056, 396, 90, 23, 15, 11, 220, 19, 19, 18, 2137, 3056, 917, 4913, 16, 15, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestNewGoogleAuthenticator_HappyPath_FirstKey(t *testing.T) { asserter := assert.New(t) reader := rand.Reader bitSize := 2048 start := time.Now() expires := time.Now().Add(time.Hour) clientId := "testyMcTesterson" subject := "12345" email := "test@test.com" name := "Bob McTester" keyOne, err := rsa.Ge...
explode_data.jsonl/7220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 873 }
[ 2830, 3393, 3564, 14444, 5087, 61393, 2039, 11144, 1820, 79790, 1592, 1155, 353, 8840, 836, 8, 341, 197, 33758, 465, 1669, 2060, 7121, 1155, 692, 61477, 1669, 10382, 47431, 198, 79980, 1695, 1669, 220, 17, 15, 19, 23, 271, 21375, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIndex_InvalidName(t *testing.T) { path, err := ioutil.TempDir("", "pilosa-index-") if err != nil { panic(err) } index, err := pilosa.NewIndex(path, "ABC") if index != nil { t.Fatalf("unexpected index name %s", index) } }
explode_data.jsonl/55627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 1552, 62, 7928, 675, 1155, 353, 8840, 836, 8, 341, 26781, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 79, 321, 11983, 21492, 12, 1138, 743, 1848, 961, 2092, 341, 197, 30764, 3964, 340, 197, 532, 26327, 11, 1848, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMiddleware_HTTPBasicAuth(t *testing.T) { env.SetEnv(env.Env{BasicAuthUsername: basicUsername, BasicAuthPassword: basicPass}) mw := &Middleware{} tests := []struct { name string authorization string wantResponseCode int }{ { name: "Testcase #1: Positive", authorizat...
explode_data.jsonl/44826
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 466 }
[ 2830, 3393, 24684, 34954, 15944, 5087, 1155, 353, 8840, 836, 8, 341, 57538, 4202, 14359, 16978, 81214, 90, 15944, 5087, 11115, 25, 6770, 11115, 11, 14625, 5087, 4876, 25, 6770, 12187, 3518, 2109, 86, 1669, 609, 24684, 31483, 78216, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRemoveUnminedTx(t *testing.T) { store, db, teardown, err := testStore() if err != nil { t.Fatal(err) } defer teardown() // In order to reproduce real-world scenarios, we'll use a new database // transaction for each interaction with the wallet. // // We'll start off the test by creating a new coinba...
explode_data.jsonl/48542
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1636 }
[ 2830, 3393, 13021, 1806, 1065, 291, 31584, 1155, 353, 8840, 836, 8, 341, 57279, 11, 2927, 11, 49304, 11, 1848, 1669, 1273, 6093, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 49304, 2822, 197, 322, 758,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAddDilateDoubleInt64(t *testing.T) { f := func(x *Int64) bool { // t.Logf("x = %v", x) l, r := new(Int64), new(Int64) l.Add(x, x) r.Dilate(x, 2) return l.Equals(r) } if err := quick.Check(f, nil); err != nil { t.Error(err) } }
explode_data.jsonl/29669
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 2212, 35, 75357, 7378, 1072, 21, 19, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 2075, 353, 1072, 21, 19, 8, 1807, 341, 197, 197, 322, 259, 98954, 445, 87, 284, 1018, 85, 497, 856, 340, 197, 8810, 11, 435, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNoOpLocalDetector(t *testing.T) { localDetector := NewNoOpLocalDetector() if localDetector.IsImplemented() { t.Error("NoOpLocalDetector returns true for IsImplemented") } ifLocal := localDetector.IfLocal() if len(ifLocal) != 0 { t.Errorf("NoOpLocalDetector returns %v for IsLocal (expected nil)", ifLo...
explode_data.jsonl/10301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 2753, 7125, 7319, 31606, 1155, 353, 8840, 836, 8, 341, 8854, 31606, 1669, 1532, 2753, 7125, 7319, 31606, 741, 743, 2205, 31606, 4506, 18300, 368, 341, 197, 3244, 6141, 445, 2753, 7125, 7319, 31606, 4675, 830, 369, 2160, 1830...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func Test_Token_TextEquals(t *testing.T) { token := Token{ text: []Text{ []byte("one"), []byte("two"), }, } assert.True(t, token.TextEquals("onetwo")) }
explode_data.jsonl/78427
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 1139, 1679, 20550, 4315, 1155, 353, 8840, 836, 8, 341, 43947, 1669, 9660, 515, 197, 15425, 25, 3056, 1178, 515, 298, 197, 1294, 3782, 445, 603, 4461, 298, 197, 1294, 3782, 445, 19789, 4461, 197, 197, 1583, 197, 532, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestLicense(t *testing.T) { licenseStr := "0QFGbwit-" text, err := decrypt(key, licenseStr) if err != nil { fmt.Println("decrypt err") } fmt.Printf("license text: %s", text) }
explode_data.jsonl/31206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 9827, 1155, 353, 8840, 836, 8, 341, 197, 13266, 2580, 1669, 330, 15, 48, 12001, 39824, 275, 12, 698, 15425, 11, 1848, 1669, 38126, 4857, 11, 5723, 2580, 340, 743, 1848, 961, 2092, 341, 197, 11009, 12419, 445, 73295, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestRequestBody(t *testing.T) { // test unknown type r := (&Request{}).Body([]string{"test"}) if r.err == nil || r.body != nil { t.Errorf("should have set err and left body nil: %#v", r) } // test error set when failing to read file f, err := ioutil.TempFile("", "test") if err != nil { t.Fatalf("unable...
explode_data.jsonl/13260
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 33334, 1155, 353, 8840, 836, 8, 341, 197, 322, 1273, 9788, 943, 198, 7000, 1669, 15899, 1900, 6257, 568, 5444, 10556, 917, 4913, 1944, 23625, 743, 435, 18441, 621, 2092, 1369, 435, 5079, 961, 2092, 341, 197, 3244, 13080, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestDomainAlias_Normalize(t *testing.T) { tests := []struct { aliases map[string]string email string want string }{ { aliases: map[string]string{ "examplemail.com": "email.com", }, email: "a@examplemail.com", want: "a@email.com", }, { aliases: map[string]string{}, email: ...
explode_data.jsonl/57367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 13636, 22720, 74900, 551, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 33924, 2415, 14032, 30953, 198, 197, 57549, 256, 914, 198, 197, 50780, 262, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 339...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_underscore_arrays_9(t *testing.T) { tt(t, func() { test, _ := test_() test(` test("union", function() { var result = _.union([1, 2, 3], [2, 30, 1], [1, 40]); equal(result.join(' '), '1 2 3 30 40', 'takes the union of a list of arrays'); var result = _.union([1, 2, 3], [2, 30, 1],...
explode_data.jsonl/68903
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 62, 53933, 68983, 62, 24, 1155, 353, 8840, 836, 8, 972, 3244, 83, 1155, 11, 2915, 368, 972, 197, 18185, 11, 716, 1669, 1273, 62, 18005, 197, 18185, 5809, 319, 220, 1273, 445, 16192, 497, 729, 368, 972, 262, 762, 1102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExtractInvalidPods(t *testing.T) { var testCases = []struct { desc string pod *v1.Pod }{ { desc: "No version", pod: &v1.Pod{TypeMeta: metav1.TypeMeta{APIVersion: ""}}, }, { desc: "Invalid version", pod: &v1.Pod{TypeMeta: metav1.TypeMeta{APIVersion: "v1betta2"}}, }, { desc: "In...
explode_data.jsonl/48249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 853 }
[ 2830, 3393, 28959, 7928, 23527, 82, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 41653, 914, 198, 197, 3223, 347, 220, 353, 85, 16, 88823, 198, 197, 59403, 197, 197, 515, 298, 41653, 25, 330, 2753, 231...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetStatusDetailsHandler(t *testing.T) { context, executor := testContext() req, err := http.NewRequest("GET", "http://10.0.0.100/status", nil) if err != nil { logger.Fatal(err) } executor.MockExecuteCommandWithOutputFile = func(debug bool, actionName string, command string, outFileArg string, args ......
explode_data.jsonl/35436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 659 }
[ 2830, 3393, 1949, 2522, 7799, 3050, 1155, 353, 8840, 836, 8, 341, 28413, 11, 31558, 1669, 1273, 1972, 2822, 24395, 11, 1848, 1669, 1758, 75274, 445, 3806, 497, 330, 1254, 1110, 16, 15, 13, 15, 13, 15, 13, 16, 15, 15, 32518, 497, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestApplicationContext_CreateBean(t *testing.T) { c, ch := container() c.Object(&ObjFactory{}) err := c.Refresh() assert.Nil(t, err) p := <-ch b, err := p.BeanRegistry().Wire((*ObjFactory).NewObj, arg.R1("${i:=5}")) fmt.Println(b, err) }
explode_data.jsonl/17431
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 19736, 34325, 10437, 1155, 353, 8840, 836, 8, 1476, 1444, 11, 521, 1669, 5476, 741, 1444, 8348, 2099, 5261, 4153, 37790, 9859, 1669, 272, 49841, 741, 6948, 59678, 1155, 11, 1848, 692, 3223, 1669, 9119, 331, 271, 2233, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetJobByType(t *testing.T) { th := Setup(t) defer th.TearDown() jobType := model.NewId() statuses := []*model.Job{ { Id: model.NewId(), Type: jobType, CreateAt: 1000, }, { Id: model.NewId(), Type: jobType, CreateAt: 999, }, { Id: model.NewId(), ...
explode_data.jsonl/49285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 496 }
[ 2830, 3393, 1949, 12245, 1359, 929, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 68577, 929, 1669, 1614, 7121, 764, 2822, 23847, 288, 1669, 29838, 2528, 45293, 515, 197, 197, 515, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestRaceParamsContextCopy(t *testing.T) { DefaultWriter = os.Stdout router := Default() nameGroup := router.Group("/:name") var wg sync.WaitGroup wg.Add(2) { nameGroup.GET("/api", func(c *Context) { go func(c *Context, param string) { defer wg.Done() // First assert must be executed after the se...
explode_data.jsonl/26841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 55991, 4870, 1972, 12106, 1155, 353, 8840, 836, 8, 341, 91084, 6492, 284, 2643, 83225, 198, 67009, 1669, 7899, 741, 11609, 2808, 1669, 9273, 5407, 91944, 606, 1138, 2405, 63581, 12811, 28384, 2808, 198, 72079, 1904, 7, 17, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRoundtrip(t *testing.T) { payload := []byte("Lorem ipsum") sharedkey := []byte("Avracadabra") hmacAlgorithms := []jwa.SignatureAlgorithm{jwa.HS256, jwa.HS384, jwa.HS512} for _, alg := range hmacAlgorithms { t.Run("HMAC "+alg.String(), func(t *testing.T) { signed, err := jws.Sign(payload, alg, sharedk...
explode_data.jsonl/1560
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 671 }
[ 2830, 3393, 27497, 32981, 1155, 353, 8840, 836, 8, 341, 76272, 1669, 3056, 3782, 445, 32783, 26342, 1138, 197, 6100, 792, 1669, 3056, 3782, 445, 9865, 19959, 329, 43932, 5130, 9598, 11948, 2101, 18980, 1669, 3056, 73, 9991, 41152, 1568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestDisconnect(t *testing.T) { // Scenario: spawn 2 ordering service instances // and a client. // Have the client try to Recv() from one of them, // and disconnect the client until it tries connecting // to the other instance. defer ensureNoGoroutineLeak(t)() os1 := mocks.NewOrderer(5613, t) os1.SetNextE...
explode_data.jsonl/38324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 768 }
[ 2830, 3393, 60651, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 18042, 220, 17, 21391, 2473, 13121, 198, 197, 322, 323, 264, 2943, 624, 197, 322, 12243, 279, 2943, 1430, 311, 4067, 85, 368, 504, 825, 315, 1105, 345, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRemoveGitBuildFromName(t *testing.T) { pluginName := "datasource-kairosdb" // The root directory should get renamed to the plugin name paths := map[string]string{ "datasource-plugin-kairosdb-cc4a3965ef5d3eb1ae0ee4f93e9e78ec7db69e64/": "datasource-kairosdb/", "datasource-plugin-kairo...
explode_data.jsonl/74301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 13021, 46562, 11066, 3830, 675, 1155, 353, 8840, 836, 8, 341, 197, 9138, 675, 1669, 330, 27240, 919, 12646, 2143, 3630, 1999, 1837, 197, 322, 576, 3704, 6220, 1265, 633, 27280, 311, 279, 9006, 829, 198, 197, 21623, 1669, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestWaitVisible(t *testing.T) { t.Parallel() ctx, cancel := testAllocate(t, "js.html") defer cancel() var nodeIDs []cdp.NodeID if err := Run(ctx, NodeIDs("#input2", &nodeIDs, ByID)); err != nil { t.Fatalf("got error: %v", err) } if len(nodeIDs) != 1 { t.Errorf("expected to have exactly 1 node id: got ...
explode_data.jsonl/59457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 14190, 5715, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 11, 9121, 1669, 1273, 75380, 1155, 11, 330, 2519, 2564, 1138, 16867, 9121, 2822, 2405, 2436, 30466, 3056, 4385, 79, 21714, 915, 198, 743, 1848, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetWorkflow(t *testing.T) { type ( args struct { db mock.DB wfTemplate, wfHardware string } want struct { expectedError bool } ) testCases := map[string]struct { args args want want }{ "SuccessGettingWorkflow": { args: args{ db: mock.DB{ GetWorkflowFun...
explode_data.jsonl/51754
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 591 }
[ 2830, 3393, 1949, 62768, 1155, 353, 8840, 836, 8, 341, 13158, 2399, 197, 31215, 2036, 341, 298, 20939, 3824, 7860, 22537, 198, 298, 6692, 69, 7275, 11, 41248, 66862, 914, 198, 197, 197, 532, 197, 50780, 2036, 341, 298, 42400, 1454, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTerragruntWorksWithSingleJsonConfig(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_CONFIG_SINGLE_JSON_PATH) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_CONFIG_SINGLE_JSON_PATH) rootTerragruntConfigPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_CONFIG_SINGLE_JSON_PATH) runTerragru...
explode_data.jsonl/10079
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 51402, 68305, 3850, 6776, 16056, 10888, 5014, 2648, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 12568, 39028, 25356, 7944, 340, 20082, 14359, 1820, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReceiveMatchWithTimeframe(t *testing.T) { p := New().(*processor) ctx := testutils.NewProcessorContext() p.Configure( ctx, map[string]interface{}{ "Compare_Field": "message", "timeframe": 1, }, ) p.Receive(testutils.NewPacketOld("test", nil)) assert.Equal(t, 0, ctx.SentPacketsCount(0), "...
explode_data.jsonl/74200
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 829 }
[ 2830, 3393, 14742, 8331, 2354, 1462, 6763, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1532, 1005, 4071, 29474, 340, 20985, 1669, 1273, 6031, 7121, 22946, 1972, 741, 3223, 78281, 1006, 197, 20985, 345, 197, 19567, 14032, 31344, 67066, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestTool_DownloadActionResult(t *testing.T) { e, cleanup := fakes.NewTestEnv(t) defer cleanup() cmd := &command.Command{ Args: []string{"tool"}, ExecRoot: e.ExecRoot, InputSpec: &command.InputSpec{}, OutputFiles: []string{"a/b/out"}, } opt := command.DefaultExecutionOptions() output := "o...
explode_data.jsonl/8276
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 504 }
[ 2830, 3393, 7740, 1557, 37702, 17301, 1155, 353, 8840, 836, 8, 341, 7727, 11, 21290, 1669, 282, 2050, 7121, 2271, 14359, 1155, 340, 16867, 21290, 741, 25920, 1669, 609, 5631, 12714, 515, 197, 197, 4117, 25, 286, 3056, 917, 4913, 14172, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestKLog(t *testing.T) { klog.InitFlags(nil) flag.Set("logtostderr", "false") flag.Set("alsologtostderr", "false") flag.Set("stderrthreshold", "100") // flag.Set("v", "100") flag.Set("log_dir", "stu/klog/") flag.Set("add_dir_header", "true") flag.Set("one_output", "true") flag.Parse() if klog.V(1).Enable...
explode_data.jsonl/50089
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 42, 2201, 1155, 353, 8840, 836, 8, 341, 16463, 839, 26849, 9195, 27907, 340, 30589, 4202, 445, 839, 83, 535, 67, 615, 497, 330, 3849, 1138, 30589, 4202, 445, 1127, 1609, 83, 535, 67, 615, 497, 330, 3849, 1138, 30589, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSHA1(t *testing.T) { for i, this := range []struct { input string expectedHash string }{ {"Hello world, gophers!", "c8b5b0e33d408246e30f53e32b8f7627a7a649d4"}, {"Lorem ipsum dolor", "45f75b844be4d17b3394c6701768daf39419c99b"}, } { result, err := sha1(this.input) if err != nil { t.Error...
explode_data.jsonl/9256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 33145, 16, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 419, 1669, 2088, 3056, 1235, 341, 197, 22427, 286, 914, 198, 197, 42400, 6370, 914, 198, 197, 59403, 197, 197, 4913, 9707, 1879, 11, 342, 5127, 388, 18789, 330, 66,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestStreamServerInterceptorWithoutRequestId(t *testing.T) { handler := func(srv interface{}, stream grpc.ServerStream) error { reqID, exists := FromContext(stream.Context()) if exists && reqID == "" { t.Errorf("requestId must be generated by interceptor") } return nil } ctx := DummyContextWithServerT...
explode_data.jsonl/74064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 3027, 5475, 32786, 26040, 61774, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 2915, 1141, 10553, 3749, 22655, 4269, 47900, 22997, 3027, 8, 1465, 341, 197, 24395, 915, 11, 6724, 1669, 5542, 1972, 20574, 9328, 2398, 197, 743, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNewFromJSObject(t *testing.T) { if obj, err := baseobject.Get(js.Global(), "event"); testingutils.AssertErr(t, err) { if d, err := NewFromJSObject(obj); testingutils.AssertErr(t, err) { testingutils.AssertExpect(t, "[object ClipboardEvent]", d.ToString_()) } } }
explode_data.jsonl/42127
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 3564, 3830, 12545, 1190, 1155, 353, 8840, 836, 8, 1476, 743, 2839, 11, 1848, 1669, 2331, 1700, 2234, 53418, 27381, 1507, 330, 3087, 5038, 7497, 6031, 11711, 7747, 1155, 11, 1848, 8, 341, 197, 743, 294, 11, 1848, 1669, 1532...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestOutputService10ProtocolTestTimestampMembersCase1(t *testing.T) { svc := NewOutputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) buf := bytes.NewReader([]byte("<OperationNameResponse><StructMember><foo>2014-04-29T18:30:38Z</foo><bar>1398796238</bar></StructMember><Time...
explode_data.jsonl/46134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 658 }
[ 2830, 3393, 5097, 1860, 16, 15, 20689, 2271, 20812, 24371, 4207, 16, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 1532, 5097, 1860, 16, 15, 20689, 2271, 24144, 20674, 11, 609, 8635, 10753, 90, 27380, 25, 31521, 6431, 445, 2428, 111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestLocale(t *testing.T) { trans := New() expected := "en_KN" if trans.Locale() != expected { t.Errorf("Expected '%s' Got '%s'", expected, trans.Locale()) } }
explode_data.jsonl/27339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 19231, 1155, 353, 8840, 836, 8, 1476, 72453, 1669, 1532, 741, 42400, 1669, 330, 268, 10102, 45, 1837, 743, 1356, 59094, 368, 961, 3601, 341, 197, 3244, 13080, 445, 18896, 7677, 82, 6, 24528, 7677, 82, 22772, 3601, 11, 1356...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestNormalizeAndValidate(t *testing.T) { t.Parallel() path, err := NormalizeAndValidate("") assert.NoError(t, err) assert.Equal(t, ".", path) path, err = NormalizeAndValidate(".") assert.NoError(t, err) assert.Equal(t, ".", path) path, err = NormalizeAndValidate("./.") assert.NoError(t, err) assert.Equal...
explode_data.jsonl/11895
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 87824, 3036, 17926, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 26781, 11, 1848, 1669, 68092, 3036, 17926, 31764, 6948, 35699, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 68514, 1815, 340, 26781, 11, 1848, 284, 680...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_ResolveTypes_UnionItem_Fail(t *testing.T) { data := ` models: Custom: oneOf: nope: NonExisting ` old, err := unmarshalSpec([]byte(data)) assert.Equal(t, err, nil) errors := enrichSpec(old) assert.Equal(t, len(errors), 1) assert.Equal(t, strings.Contains(errors[0].Message, "NonExisting"), t...
explode_data.jsonl/79852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 62, 56808, 4173, 62, 32658, 1234, 1400, 604, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 22074, 6507, 510, 220, 8406, 510, 262, 825, 2124, 510, 414, 902, 375, 25, 11581, 53067, 198, 3989, 61828, 11, 1848, 1669, 650, 27121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestJsonSamples(t *testing.T) { bidder, buildErr := Builder(openrtb_ext.BidderAlgorix, config.Adapter{ Endpoint: "https://{{.Host}}.test.com?sid={{.SourceId}}&token={{.AccountID}}"}) if buildErr != nil { t.Fatalf("Builder returned unexpected error %v", buildErr) } adapterstest.RunJSONBidderTest(t, "algor...
explode_data.jsonl/66138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 5014, 39571, 1155, 353, 8840, 836, 8, 341, 2233, 307, 1107, 11, 1936, 7747, 1669, 20626, 30981, 3342, 65, 9927, 1785, 307, 1107, 2101, 5628, 941, 11, 2193, 34190, 515, 197, 197, 27380, 25, 330, 2428, 1110, 2979, 13, 9296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSwarmLeave(t *testing.T) { buf := new(bytes.Buffer) cmd := newLeaveCommand( test.NewFakeCli(&fakeClient{}, buf)) assert.NoError(t, cmd.Execute()) assert.Equal(t, "Node left the swarm.", strings.TrimSpace(buf.String())) }
explode_data.jsonl/74067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 13218, 2178, 21833, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 501, 23158, 22622, 340, 25920, 1669, 501, 21833, 4062, 1006, 197, 18185, 7121, 52317, 87014, 2099, 30570, 2959, 22655, 6607, 1171, 6948, 35699, 1155, 11, 5439, 138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestParse(t *testing.T) { infos, err := ParseURL(testURL) if err != nil { t.Fatal(err) } if infos.Title != testExpectedTitle { t.Fatal("mercury.Parse(): incorrect Title") } if infos.DatePublished != testExpectedDatePublished { t.Fatal("mercury.Parse(): incorrect DatePublished") } if infos.ImageUR...
explode_data.jsonl/14987
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 14463, 1155, 353, 8840, 836, 8, 341, 197, 55965, 11, 1848, 1669, 14775, 3144, 8623, 3144, 692, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 743, 44144, 22967, 961, 1273, 18896, 3851, 341, 197, 3244, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestRendersElseAFailedUnless(t *testing.T) { template, _ := ParseString("A-{% unless true %}in if{%else%}in else{%endunless%}-Z", nil) assertRender(t, template, nil, `A-in else-Z`) }
explode_data.jsonl/42419
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 49, 14506, 22971, 8276, 5687, 35587, 1155, 353, 8840, 836, 8, 341, 22832, 11, 716, 1669, 14775, 703, 445, 32, 63347, 4, 7241, 830, 1018, 92, 258, 421, 66365, 1503, 4, 92, 258, 770, 66365, 408, 38770, 4, 19732, 57, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestCall_GetTransactionReceipt_InvalidArgs(t *testing.T) { mockJSONRPC := &mocks.JSONRPC{} mockGraphQL := &mocks.GraphQL{} c := &Client{ c: mockJSONRPC, g: mockGraphQL, traceSemaphore: semaphore.NewWeighted(100), } ctx := context.Background() resp, err := c.Call( ctx, &R...
explode_data.jsonl/55497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 7220, 13614, 8070, 67461, 62, 7928, 4117, 1155, 353, 8840, 836, 8, 341, 77333, 5370, 29528, 1669, 609, 16712, 82, 18009, 29528, 16094, 77333, 88637, 1669, 609, 16712, 82, 40237, 3588, 31483, 1444, 1669, 609, 2959, 515, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHandleVersion(t *testing.T) { p, cleanup := newTestPoliteiawww(t) defer cleanup() d := newTestPoliteiad(t, p) defer d.Close() expectedReply := www.VersionReply{ Version: www.PoliteiaWWWAPIVersion, Route: www.PoliteiaWWWAPIRoute, PubKey: hex.EncodeToString(p.cfg.Identity.Key[:]), TestNet: p.cf...
explode_data.jsonl/80244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 590 }
[ 2830, 3393, 6999, 5637, 1155, 353, 8840, 836, 8, 341, 3223, 11, 21290, 1669, 501, 2271, 14658, 632, 72, 672, 1250, 1155, 340, 16867, 21290, 2822, 2698, 1669, 501, 2271, 14658, 632, 62944, 1155, 11, 281, 340, 16867, 294, 10421, 2822, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMessageDeliveryQueueDiscardMessages(t *testing.T) { acks := newAckTracker() blockingReceiver := newTestBlockingMessageReceiver(t) messageQueue := newMessageDeliveryQueue(acks, blockingReceiver.onMessage, 10) msg1 := seqMsgWithOffset(1) ack1 := newAckConsumer(1, 0, nil) msg2 := seqMsgWithOffset(2) ack2 ...
explode_data.jsonl/31634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 2052, 38121, 7554, 23477, 567, 15820, 1155, 353, 8840, 836, 8, 341, 197, 7821, 1669, 501, 55559, 31133, 741, 47996, 287, 25436, 1669, 501, 2271, 48266, 2052, 25436, 1155, 340, 24753, 7554, 1669, 501, 2052, 38121, 7554, 7, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDeployTwinImages(t *testing.T) { f := newIBDFixture(t, k8s.EnvGKE) defer f.TearDown() sancho := NewSanchoDockerBuildManifest(f) newK8sTarget := k8s.MustTarget("sancho", yaml.ConcatYAML(SanchoYAML, SanchoTwinYAML)). WithDependencyIDs(sancho.K8sTarget().DependencyIDs()) manifest := sancho.WithDeployTarge...
explode_data.jsonl/38250
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 346 }
[ 2830, 3393, 69464, 51, 7526, 14228, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 3256, 5262, 12735, 1155, 11, 595, 23, 82, 81214, 38, 3390, 340, 16867, 282, 836, 682, 4454, 2822, 1903, 276, 958, 1669, 1532, 23729, 958, 35, 13659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestImagePullSecrets(t *testing.T) { woc := newWoc() woc.execWf.Spec.ImagePullSecrets = []apiv1.LocalObjectReference{ { Name: "secret-name", }, } tmplCtx, err := woc.createTemplateContext(wfv1.ResourceScopeLocal, "") assert.NoError(t, err) ctx := context.Background() _, err = woc.executeContainer(ct...
explode_data.jsonl/75371
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 298 }
[ 2830, 3393, 1906, 36068, 19773, 82, 1155, 353, 8840, 836, 8, 341, 6692, 509, 1669, 501, 54, 509, 741, 6692, 509, 15776, 54, 69, 36473, 7528, 36068, 19773, 82, 284, 3056, 391, 344, 16, 20856, 1190, 8856, 515, 197, 197, 515, 298, 2129...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMissingImportDiagsClearOnFirstFile(t *testing.T) { t.Parallel() runner.Run(t, onlyMod, func(t *testing.T, env *Env) { env.CreateBuffer("main.go", `package main func m() { log.Println() } `) env.Await( env.DiagnosticAtRegexp("main.go", "log"), ) env.SaveBuffer("main.go") env.Await( EmptyDiag...
explode_data.jsonl/38900
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 25080, 11511, 21685, 2032, 14008, 1925, 5338, 1703, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 41736, 16708, 1155, 11, 1172, 4459, 11, 2915, 1155, 353, 8840, 836, 11, 6105, 353, 14359, 8, 341, 197, 57538, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMultiplicationProofJSON(t *testing.T) { g, gok := buildGroup(big.NewInt(47)) require.True(t, gok, "Failed to setup group for Multiplication proof testing") s := newMultiplicationProofStructure("m1", "m2", "mod", "result", 3) proofBefore := s.fakeProof(g) proofJSON, err := json.Marshal(proofBefore) requ...
explode_data.jsonl/56447
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 57251, 1693, 31076, 5370, 1155, 353, 8840, 836, 8, 341, 3174, 11, 342, 562, 1669, 1936, 2808, 75616, 7121, 1072, 7, 19, 22, 1171, 17957, 32443, 1155, 11, 342, 562, 11, 330, 9408, 311, 6505, 1874, 369, 58712, 1693, 11064, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNilcheckSimple(t *testing.T) { c := testConfig(t) ptrType := c.config.Types.BytePtr fun := c.Fun("entry", Bloc("entry", Valu("mem", OpInitMem, types.TypeMem, 0, nil), Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil), Goto("checkPtr")), Bloc("checkPtr", Valu("ptr1", OpLoad, ptrType, 0, nil, "...
explode_data.jsonl/6045
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 412 }
[ 2830, 3393, 19064, 2028, 16374, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1273, 2648, 1155, 340, 43811, 929, 1669, 272, 5423, 29147, 32119, 5348, 198, 90126, 1669, 272, 991, 359, 445, 4085, 756, 197, 12791, 1074, 445, 4085, 756, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestParseLine1(t *testing.T) { s := "【三扯】扯舸可坷惹喏舍者赭饿个和贺荷课锞社射麝赦猞蔗鹧柘" var cr ChineseRhymes cr.Init() cr.parseLine(1, s) for k, v := range cr.ZhChar2Rhyme { fmt.Printf("[%s]: [%s]\n", k, v.Desc) } if len(cr.ZhChar2Rhyme) != 24 { t.Errorf("TestParseLine1 failed: %v, want: 24", len(cr.ZhChar2Rhyme)) } }
explode_data.jsonl/15079
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 14463, 2460, 16, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 330, 10904, 44991, 105948, 10958, 105948, 120735, 30440, 103841, 105771, 120645, 100496, 28946, 121553, 103048, 18947, 33108, 102103, 100905, 99504, 121222, 60237, 99759, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAddReading(t *testing.T) { reset() myMock := &dbMock.DBClient{} myMock.On("AddReading", mock.Anything).Return("", nil) dbClient = myMock _, err := addReading(models.Reading{Name: "valid"}, logger.NewMockClient()) if err != nil { t.Errorf("Unexpected error adding reading") } }
explode_data.jsonl/48167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 2212, 31899, 1155, 353, 8840, 836, 8, 341, 70343, 741, 13624, 11571, 1669, 609, 1999, 11571, 22537, 2959, 31483, 13624, 11571, 8071, 445, 2212, 31899, 497, 7860, 13311, 1596, 568, 5598, 19814, 2092, 692, 20939, 2959, 284, 847,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLeaveConversation(t *testing.T) { http.HandleFunc("/conversations.leave", leaveConversationHandler) once.Do(startServer) api := New("testing-token", OptionAPIURL("http://"+serverAddr+"/")) _, err := api.LeaveConversation("CXXXXXXXX") if err != nil { t.Errorf("Unexpected error: %s", err) return } }
explode_data.jsonl/78549
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 21833, 60313, 1155, 353, 8840, 836, 8, 341, 28080, 63623, 4283, 443, 72995, 89303, 497, 5274, 60313, 3050, 340, 197, 13184, 33596, 10639, 5475, 340, 54299, 1669, 1532, 445, 8840, 34841, 497, 6959, 7082, 3144, 445, 1254, 1110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAggregateMsgByFlowKey(t *testing.T) { messageChan := make(chan *entities.Message) input := AggregationInput{ MessageChan: messageChan, WorkerNum: 2, CorrelateFields: fields, ActiveExpiryTimeout: testActiveExpiry, InactiveExpiryTimeout: testInactiveExpiry, } aggregati...
explode_data.jsonl/8698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1095 }
[ 2830, 3393, 64580, 6611, 1359, 18878, 1592, 1155, 353, 8840, 836, 8, 341, 24753, 46019, 1669, 1281, 35190, 353, 10499, 8472, 340, 22427, 1669, 4598, 34442, 2505, 515, 197, 46733, 46019, 25, 1843, 1943, 46019, 345, 197, 197, 21936, 4651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRepairWriteTearLast(t *testing.T) { corruptf := func(p string, offset int64) error { f, err := openLast(p) if err != nil { return err } defer f.Close() // 512 bytes perfectly aligns the last record, so use 1024 if offset < 1024 { return fmt.Errorf("got offset %d, expected >1024", offset) }...
explode_data.jsonl/6817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 98386, 7985, 51, 682, 5842, 1155, 353, 8840, 836, 8, 341, 1444, 269, 6585, 69, 1669, 2915, 1295, 914, 11, 4347, 526, 21, 19, 8, 1465, 341, 197, 1166, 11, 1848, 1669, 1787, 5842, 1295, 340, 197, 743, 1848, 961, 2092, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAgent_Checks_ACLFilter(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), TestACLConfig()) defer a.Shutdown() chk1 := &structs.HealthCheck{ Node: a.Config.NodeName, CheckID: "mysql", Name: "mysql", Status: api.HealthPassing, } a.State.AddCheck(chk1, "") t.Run("no token", func(t *t...
explode_data.jsonl/33593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 16810, 28188, 82, 97627, 5632, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 3393, 55393, 2648, 2398, 16867, 264, 10849, 18452, 2822, 23049, 74, 16, 1669, 609, 1235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInstrumentationLibrarySpans_CopyTo(t *testing.T) { ms := NewInstrumentationLibrarySpans() generateTestInstrumentationLibrarySpans().CopyTo(ms) assert.EqualValues(t, generateTestInstrumentationLibrarySpans(), ms) }
explode_data.jsonl/63252
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 56324, 367, 16915, 6406, 596, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 56324, 367, 16915, 6406, 596, 741, 3174, 13220, 2271, 56324, 367, 16915, 6406, 596, 1005, 12106, 1249, 35680, 340, 6948, 12808, 6227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestAuthenticate(t *testing.T) { type testData struct { test string user string errorMsg string anonymousEnabled bool } var tests = []testData{ { test: "TestNoSessionAnonymousDisabled", errorMsg: "no session information", anonymousEnabled: f...
explode_data.jsonl/38042
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 673 }
[ 2830, 3393, 99087, 1155, 353, 8840, 836, 8, 341, 13158, 67348, 2036, 341, 197, 18185, 1797, 914, 198, 197, 19060, 1797, 914, 198, 197, 18290, 6611, 260, 914, 198, 197, 197, 25280, 5462, 1807, 198, 197, 532, 2405, 7032, 284, 3056, 1944...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestPacketDot11DataQOSData(t *testing.T) { p := gopacket.NewPacket(testPacketDot11DataQOSData, LinkTypeIEEE80211Radio, gopacket.Default) if p.ErrorLayer() != nil { t.Error("Failed to decode packet:", p.ErrorLayer().Error()) } checkLayers(p, []gopacket.LayerType{LayerTypeRadioTap, LayerTypeDot11, LayerTypeDot...
explode_data.jsonl/7562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 630 }
[ 2830, 3393, 16679, 34207, 16, 16, 1043, 48, 3126, 1043, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 342, 453, 5709, 7121, 16679, 8623, 16679, 34207, 16, 16, 1043, 48, 3126, 1043, 11, 5948, 929, 76705, 23, 15, 17, 16, 16, 28203, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestLibraryVariableSetGetThatDoesNotExist(t *testing.T) { libraryVariableSetID := "there-is-no-way-this-libraryVariableSet-id-exists-i-hope" expected := octopusdeploy.ErrItemNotFound libraryVariableSet, err := client.LibraryVariableSet.Get(libraryVariableSetID) assert.Error(t, err, "there should have been an ...
explode_data.jsonl/65966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 16915, 7827, 1649, 1949, 4792, 21468, 45535, 1155, 353, 8840, 836, 8, 341, 197, 18065, 7827, 1649, 915, 1669, 330, 18532, 30430, 28366, 26798, 60191, 52421, 7827, 1649, 12897, 10187, 1671, 17600, 2832, 2792, 698, 42400, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLabelNamespace(t *testing.T) { g := NewGomegaWithT(t) l := New() l.Namespace("ns-1") g.Expect(l[NamespaceLabelKey]).To(Equal("ns-1")) }
explode_data.jsonl/22126
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 2476, 22699, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 8810, 1669, 1532, 741, 8810, 46011, 445, 4412, 12, 16, 1138, 3174, 81893, 2333, 22223, 1680, 2476, 1592, 10697, 1249, 67372, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestPrepareTaskRequestEnvironment_IsolateAndCAS(t *testing.T) { t.Parallel() Convey(`Make sure we do not process both Isolate and CAS`, t, func() { c := reproduceRun{} c.init(&testAuthFlags{}) // Use TempDir, which creates a temp directory, to return a unique directory namme // that prepareTaskRequestEnv...
explode_data.jsonl/74872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 322 }
[ 2830, 3393, 50590, 6262, 1900, 12723, 31879, 33066, 3036, 87516, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 93070, 5617, 5809, 8078, 2704, 582, 653, 537, 1882, 2176, 2160, 33066, 323, 41790, 7808, 259, 11, 2915, 368, 341, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCopyOne(t *testing.T) { defer leaktest.AfterTest(t)() t.Skip("#18352") params, _ := tests.CreateTestServerParams() s, db, _ := serverutils.StartServer(t, params) defer s.Stopper().Stop(context.TODO()) if _, err := db.Exec(` CREATE DATABASE d; SET DATABASE = d; CREATE TABLE t ( i INT PRIMARY K...
explode_data.jsonl/2949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 12106, 3966, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 3244, 57776, 3584, 16, 23, 18, 20, 17, 5130, 25856, 11, 716, 1669, 7032, 7251, 2271, 5475, 4870, 741, 1903, 11, 2927, 11, 716, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestInvalidHost(t *testing.T) { c := StartCapture() exit = func(r int) {} os.Args = []string{"dosa", "--host", "invalid-hostname.", "schema", "upsertable", "--scope", "bar", "--namePrefix", "foo", "../../testentity"} main() output := c.stop(true) assert.Contains(t, output, "invalid-hostname") assert.Contain...
explode_data.jsonl/16644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 7928, 9296, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 5145, 27429, 741, 14519, 284, 2915, 2601, 526, 8, 5613, 25078, 51015, 284, 3056, 917, 4913, 67, 11983, 497, 14482, 3790, 497, 330, 11808, 38589, 606, 10465, 330, 17349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReadPlainBOOLEAN(t *testing.T) { testData := [][]interface{}{ []interface{}{(true)}, []interface{}{(false)}, []interface{}{(false), (false)}, []interface{}{(false), (true)}, } for _, data := range testData { res, _ := ReadPlainBOOLEAN(bytes.NewReader(WritePlainBOOLEAN(data)), uint64(len(data))) ...
explode_data.jsonl/23892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 4418, 26982, 72110, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 52931, 4970, 67066, 197, 197, 1294, 4970, 6257, 96065, 1866, 39781, 197, 197, 1294, 4970, 6257, 96065, 3849, 39781, 197, 197, 1294, 4970, 6257, 96065, 3849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRegexValidate(t *testing.T) { testData := []testRegex{ {exp: "[A-Z]+", isValid: true, err: nil, data: "HELLO"}, {exp: "[0-9]{4,6}", isValid: true, err: nil, data: "12345"}, {exp: "\\w+", isValid: true, err: nil, data: "whatever24"}, {exp: `\w+`, isValid: true, err: nil, data: "iamgood"}, {exp: "[^A-...
explode_data.jsonl/11235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 32464, 17926, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 3056, 1944, 32464, 515, 197, 197, 90, 4580, 25, 10545, 32, 11171, 7574, 497, 26171, 25, 830, 11, 1848, 25, 2092, 11, 821, 25, 330, 50712, 1593, 7115, 197, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestClient_CoinsOHLC(t *testing.T) { t.Run("Minutely", func(t *testing.T) { ohlc, err := client.CoinsOHLC(CoinsOHLCParams{Id: "polkadot", VsCurrency: "usd", Days: "1"}) require.NoError(t, err) require.LessOrEqual(t, 48, len(ohlc)) }) t.Run("Hourly", func(t *testing.T) { ohlc, err := client.CoinsOHLC(Coi...
explode_data.jsonl/37793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 2959, 920, 68798, 46761, 8556, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 6217, 97366, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 2267, 17257, 11, 1848, 1669, 2943, 52114, 1330, 46761, 8556, 3025, 68798, 46761, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIndexArrayPtrIssue784(t *testing.T) { gopClTest(t, ` type intArr [2]int func foo(a *intArr) { a[1] = 10 } `, `package main type intArr [2]int func foo(a *intArr) { a[1] = 10 } `) }
explode_data.jsonl/73658
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 1552, 1857, 5348, 42006, 22, 23, 19, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1313, 526, 8838, 508, 17, 63025, 271, 2830, 15229, 2877, 353, 396, 8838, 8, 341, 11323, 58, 16, 60, 284, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOpenFail(t *testing.T) { _, err := Open("/dev/null", DefaultOptions().WithSynced(false)) require.Error(t, err) os.Mkdir("ro_dir1", 0500) defer os.RemoveAll("ro_dir1") _, err = Open("ro_dir/bla", DefaultOptions().WithSynced(false)) require.Error(t, err) _, err = Open("wrongdir\000", DefaultOptions().With...
explode_data.jsonl/49662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 5002, 19524, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 5264, 4283, 3583, 19293, 497, 7899, 3798, 1005, 2354, 12154, 291, 3576, 1171, 17957, 6141, 1155, 11, 1848, 340, 25078, 1321, 12438, 445, 299, 4334, 16, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSservice_CopyExecInOsDefault(t *testing.T) { op := Option{} mpss := make([]immudb.ManpageService, 2) mpss[0] = immudbcmdtest.ManpageServiceMock{} mpss[1] = immudbcmdtest.ManpageServiceMock{} ss := sservice{osMock, &servicetest.ConfigServiceMock{}, mpss, op} _, err := ss.CopyExecInOsDefault("immudb") as...
explode_data.jsonl/57710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 50, 7936, 77637, 10216, 641, 28867, 3675, 1155, 353, 8840, 836, 8, 341, 39703, 1669, 6959, 16094, 53230, 778, 1669, 1281, 10556, 12543, 661, 65, 29902, 2893, 1860, 11, 220, 17, 340, 53230, 778, 58, 15, 60, 284, 4893, 661, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEqual(t *testing.T) { for _, tc := range EqualTests { if res := Equal(tc.a, tc.b); res != tc.exp { t.Errorf("%v: Equal(%v, %v) = %v, want %v", tc.desc, tc.a, tc.b, res, tc.exp) } } }
explode_data.jsonl/23967
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 2993, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 38474, 18200, 341, 197, 743, 592, 1669, 38474, 44415, 5849, 11, 17130, 948, 1215, 592, 961, 17130, 13754, 341, 298, 3244, 13080, 4430, 85, 25, 38474, 15238, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSetError_SetsSuppliedErrorOnPipe(t *testing.T) { t.Parallel() p := script.NewPipe() e := errors.New("fake error") p.SetError(e) if p.Error() != e { t.Errorf("want %v when setting pipe error, got %v", e, p.Error()) } }
explode_data.jsonl/51533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 1649, 1454, 1098, 1415, 10048, 3440, 1454, 1925, 34077, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1669, 5316, 7121, 34077, 741, 7727, 1669, 5975, 7121, 445, 30570, 1465, 1138, 3223, 4202, 1454, 2026, 340, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestStageRead(t *testing.T) { r := require.New(t) in := map[string]interface{}{ "name": "test_stage", "database": "test_db", "schema": "test_schema", } d := stage(t, "test_db|test_schema|test_stage", in) WithMockDb(t, func(db *sql.DB, mock sqlmock.Sqlmock) { // Test when resource is not found,...
explode_data.jsonl/59822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 19398, 4418, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 692, 17430, 1669, 2415, 14032, 31344, 67066, 197, 197, 31486, 788, 257, 330, 1944, 35238, 756, 197, 197, 1, 12216, 788, 330, 1944, 8685, 756, 197, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReconcileAddonsConfiguration_AddAddonsProcess(t *testing.T) { for tn, ac := range map[string]*v1alpha1.AddonsConfiguration{ "empty addons configuration": fixAddonsConfiguration(), "pending addons configuration": fixPendingAddonsConfiguration(), } { t.Run(tn, func(t *testing.T) { // GIVEN fixAdd...
explode_data.jsonl/40347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 770 }
[ 2830, 3393, 693, 40446, 457, 2212, 2382, 7688, 21346, 2212, 2382, 7423, 1155, 353, 8840, 836, 8, 341, 2023, 43308, 11, 1613, 1669, 2088, 2415, 14032, 8465, 85, 16, 7141, 16, 1904, 2382, 7688, 515, 197, 197, 1, 3194, 89145, 6546, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestValidateStepFunctionStateMachineName(t *testing.T) { validTypes := []string{ "foo", "BAR", "FooBar123", "FooBar123Baz-_", } invalidTypes := []string{ "foo bar", "foo<bar>", "foo{bar}", "foo[bar]", "foo*bar", "foo?bar", "foo#bar", "foo%bar", "foo\bar", "foo^bar", "foo|bar", "...
explode_data.jsonl/78599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 386 }
[ 2830, 3393, 17926, 8304, 5152, 94666, 675, 1155, 353, 8840, 836, 8, 341, 56322, 4173, 1669, 3056, 917, 515, 197, 197, 1, 7975, 756, 197, 197, 1, 33065, 756, 197, 197, 1, 40923, 3428, 16, 17, 18, 756, 197, 197, 1, 40923, 3428, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestFleetWithZeroReplicas(t *testing.T) { t.Parallel() ctx := context.Background() client := framework.AgonesClient.AgonesV1() flt := defaultFleet(framework.Namespace) flt.Spec.Replicas = 0 flt, err := client.Fleets(framework.Namespace).Create(ctx, flt, metav1.CreateOptions{}) assert.NoError(t, err) // c...
explode_data.jsonl/15430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 37, 18973, 2354, 17999, 18327, 52210, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 2266, 19047, 741, 25291, 1669, 12626, 49850, 3154, 2959, 49850, 3154, 53, 16, 2822, 1166, 4832, 1669, 1638, 37, 18973, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNormalizeURL(t *testing.T) { tests := []struct { name, base, path, expect string }{ {name: "basic URL", base: "https://example.com", path: "http://helm.sh/foo", expect: "http://helm.sh/foo"}, {name: "relative path", base: "https://helm.sh/charts", path: "foo", expect: "https://helm.sh/charts/foo"}, } ...
explode_data.jsonl/45512
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 87824, 3144, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 11, 2331, 11, 1815, 11, 1720, 914, 198, 197, 59403, 197, 197, 47006, 25, 330, 22342, 5548, 497, 2331, 25, 330, 2428, 1110, 8687, 905, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestConfig_ToString(t *testing.T) { type fields struct { Block *Block FilePath string } tests := []struct { name string fields fields want string }{ { name: "block", fields: fields{ Block: &Block{ Directives: []IDirective{ &Directive{ Name: "user", Pa...
explode_data.jsonl/50894
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 571 }
[ 2830, 3393, 2648, 38346, 703, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 94940, 262, 353, 4713, 198, 197, 197, 19090, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 55276, 5043, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestParallel_1(t *testing.T) { conf := testConf.Config() t.Parallel() for _, test := range tests { if err := test.Check(conf); err != nil { t.Error(err) } } }
explode_data.jsonl/41689
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 16547, 62, 16, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 1273, 15578, 10753, 741, 3244, 41288, 7957, 741, 2023, 8358, 1273, 1669, 2088, 7032, 341, 197, 743, 1848, 1669, 1273, 10600, 29879, 1215, 1848, 961, 2092, 341, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func TestDialContext_CANRaw(t *testing.T) { requireVCAN0(t) ctx, done := context.WithTimeout(context.Background(), time.Second) defer done() conn, err := DialContext(ctx, "can", "vcan0") assert.NilError(t, err) assert.NilError(t, conn.Close()) }
explode_data.jsonl/35854
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 35, 530, 1972, 45600, 20015, 1155, 353, 8840, 836, 8, 341, 17957, 11287, 1093, 15, 1155, 340, 20985, 11, 2814, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 882, 32435, 340, 16867, 2814, 741, 32917, 11, 1848, 1669, 66155, 1972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewPubMessage(t *testing.T) { m := NewPubMessage(uuid.NewString(), "test", []byte("test")) if m.Id == "" { t.Fatal("expected PubMessage to set id") } if m.Type != PubMessage { t.Fatalf("expected PubMessage but got %s", m.Type) } }
explode_data.jsonl/63184
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 3564, 29162, 2052, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 29162, 2052, 41458, 7121, 703, 1507, 330, 1944, 497, 3056, 3782, 445, 1944, 28075, 743, 296, 6444, 621, 1591, 341, 197, 3244, 26133, 445, 7325, 22611, 2052, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTelemetryEnabledToVLabs(t *testing.T) { cs := getDefaultContainerService() cs.Properties.FeatureFlags.EnableTelemetry = true vlabsCS := ConvertContainerServiceToVLabs(cs) if vlabsCS == nil { t.Errorf("expected the converted containerService struct to be non-nil") } if !vlabsCS.Properties.FeatureFlags.E...
explode_data.jsonl/33
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 6639, 35958, 5462, 1249, 30698, 3435, 1155, 353, 8840, 836, 8, 341, 71899, 1669, 69106, 4502, 1860, 741, 71899, 15945, 58434, 9195, 32287, 6639, 35958, 284, 830, 198, 5195, 70271, 6412, 1669, 7169, 4502, 1860, 1249, 30698, 343...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSecondaryDiagnostics(t *testing.T) { const dir = ` -- go.mod -- module mod.com -- main.go -- package main func main() { panic("not here") } -- other.go -- package main func main() {} ` runner.Run(t, dir, func(t *testing.T, env *Env) { log.SetFlags(log.Lshortfile) env.OpenFile("main.go") env.OpenFile("...
explode_data.jsonl/38938
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 463 }
[ 2830, 3393, 48963, 35, 18938, 1155, 353, 8840, 836, 8, 341, 4777, 5419, 284, 22074, 313, 728, 10929, 39514, 4352, 1463, 905, 198, 313, 1887, 18002, 39514, 1722, 1887, 198, 2830, 1887, 368, 341, 30764, 445, 1921, 1588, 1138, 532, 313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestLeaveCommands(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client team := th.BasicTeam user2 := th.BasicUser2 channel1 := &model.Channel{DisplayName: "AA", Name: "aa" + model.NewId() + "a", Type: model.CHANNEL_OPEN, TeamId: team.Id} channel1 = Client.Must(Client.CreateCh...
explode_data.jsonl/26342
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 711 }
[ 2830, 3393, 21833, 30479, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 71724, 1669, 270, 11716, 198, 197, 9196, 1669, 270, 48868, 14597, 198, 19060, 17, 1669, 270, 4886...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestCase7(t *testing.T) { golden := `v=0 o=- 1109162014219182 0 IN IP4 0.0.0.0 s=HIK Media Server V3.4.106 i=HIK Media Server Session Description : standard e=NONE c=IN IP4 0.0.0.0 t=0 0 a=control:* b=AS:4106 a=range:clock=20210520T063812Z-20210520T064816Z m=video 0 RTP/AVP 96 i=Video Media a=rtpmap:96 H264/90000...
explode_data.jsonl/55603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 349 }
[ 2830, 30573, 22, 1155, 353, 8840, 836, 8, 341, 3174, 813, 268, 1669, 1565, 85, 28, 15, 198, 78, 10829, 220, 16, 16, 15, 24, 16, 21, 17, 15, 16, 19, 17, 16, 24, 16, 23, 17, 220, 15, 1964, 6790, 19, 220, 15, 13, 15, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSummaryValueAtPercentile_InitEmpty(t *testing.T) { ms := NewSummaryValueAtPercentile() assert.True(t, ms.IsNil()) ms.InitEmpty() assert.False(t, ms.IsNil()) }
explode_data.jsonl/19585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 19237, 1130, 1655, 32010, 457, 15644, 3522, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 19237, 1130, 1655, 32010, 457, 741, 6948, 32443, 1155, 11, 9829, 4506, 19064, 2398, 47691, 26849, 3522, 741, 6948, 50757, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestAccIterationPermissions_SetPermissions(t *testing.T) { projectName := testutils.GenerateResourceName() config := hclIterationPermissions(projectName, map[string]map[string]string{ "root": { "CREATE_CHILDREN": "Deny", "GENERIC_READ": "NotSet", "DELETE": "Deny", }, "iteration": { ...
explode_data.jsonl/10941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 785 }
[ 2830, 3393, 14603, 53101, 23851, 14812, 23851, 1155, 353, 8840, 836, 8, 341, 72470, 675, 1669, 1273, 6031, 57582, 4783, 675, 741, 25873, 1669, 305, 564, 53101, 23851, 21168, 675, 11, 2415, 14032, 60, 2186, 14032, 30953, 515, 197, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPullMerge(t *testing.T) { onGiteaRun(t, func(t *testing.T, giteaURL *url.URL) { hookTasks, err := models.HookTasks(1, 1) //Retrieve previous hook number assert.NoError(t, err) hookTasksLenBefore := len(hookTasks) session := loginUser(t, "user1") testRepoFork(t, session, "user2", "repo1", "user1", "...
explode_data.jsonl/70633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 36068, 52096, 1155, 353, 8840, 836, 8, 341, 24630, 38, 632, 64, 6727, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 342, 632, 64, 3144, 353, 1085, 20893, 8, 341, 197, 9598, 1941, 25449, 11, 1848, 1669, 4119, 3839, 1941, 2544...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMemTombstonesConcurrency(t *testing.T) { tomb := NewMemTombstones() totalRuns := 100 var wg sync.WaitGroup wg.Add(2) go func() { for x := 0; x < totalRuns; x++ { tomb.AddInterval(uint64(x), Interval{int64(x), int64(x)}) } wg.Done() }() go func() { for x := 0; x < totalRuns; x++ { _, err :...
explode_data.jsonl/80241
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 18816, 51, 2855, 32510, 79611, 1155, 353, 8840, 836, 8, 341, 3244, 2855, 1669, 1532, 18816, 51, 2855, 32510, 741, 34493, 73920, 1669, 220, 16, 15, 15, 198, 2405, 63581, 12811, 28384, 2808, 198, 72079, 1904, 7, 17, 692, 306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUserAccessTokenDisableConfigBotsExcluded(t *testing.T) { th := Setup(t) defer th.TearDown() th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableBotAccountCreation = true *cfg.ServiceSettings.EnableUserAccessTokens = false }) bot, resp, err := th.SystemAdminClient.CreateBot(&mode...
explode_data.jsonl/47555
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 1474, 37649, 25479, 2648, 33, 2412, 840, 10181, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 70479, 5105, 16689, 2648, 18552, 28272, 353, 2528, 10753, 8, 341, 197, 197, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMapProfileToBranch(t *testing.T) { _, filename, _, _ := runtime.Caller(0) execPath := filepath.Dir(filename) testfile := filepath.Join(execPath, "../../test/data/testcodefile") lines, _ := fileparser.ReadLines(testfile) base := filepath.Join(execPath, "../../") tests := []struct { name string ...
explode_data.jsonl/20910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 732 }
[ 2830, 3393, 2227, 8526, 1249, 18197, 1155, 353, 8840, 836, 8, 341, 197, 6878, 3899, 11, 8358, 716, 1669, 15592, 727, 13956, 7, 15, 340, 67328, 1820, 1669, 26054, 83757, 10961, 340, 18185, 1192, 1669, 26054, 22363, 46896, 1820, 11, 10208...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_Resolve_Operations_Fail_UnknownType(t *testing.T) { data := ` http: test: some_url: endpoint: GET /some/url/{id:nonexisting1} query: the_query: nonexisting2 header: The-Header: nonexisting3 response: o...
explode_data.jsonl/79847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 62, 56808, 2232, 712, 804, 1400, 604, 62, 13790, 929, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 22074, 1254, 510, 262, 1273, 510, 286, 1045, 2903, 510, 310, 14887, 25, 7890, 608, 14689, 57254, 9388, 307, 25, 6280, 36895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetCourseHTML(t *testing.T) { handler := func(r *http.Request) (*http.Response, error) { body := `<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="shortcut icon" href="/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta ...
explode_data.jsonl/67950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1244 }
[ 2830, 3393, 1949, 23340, 5835, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 2915, 2601, 353, 1254, 9659, 8, 4609, 1254, 12574, 11, 1465, 8, 341, 197, 35402, 1669, 1565, 13543, 15458, 5272, 397, 197, 197, 13745, 8688, 428, 268, 881, 7847...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidation(t *testing.T) { // Scenarios: This test contains the following sub-tests: // 1) alive message validation: a message is validated <==> it entered the message store // 2) request/response message validation: // 2.1) alive messages from membership requests/responses are validated. // 2.2) once...
explode_data.jsonl/62260
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2428 }
[ 2830, 3393, 13799, 1155, 353, 8840, 836, 8, 341, 197, 322, 2463, 60494, 25, 1096, 1273, 5610, 279, 2701, 1186, 81094, 510, 197, 322, 220, 16, 8, 13675, 1943, 10519, 25, 264, 1943, 374, 32332, 366, 84653, 432, 10636, 279, 1943, 3553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestApiRouter(t *testing.T) { registry := &Registry{} router := gin.New() registry.ApiRegister(router) pathMix := []string{ "/registry/v1/token", "/registry/v1/notifications", "/registry/v1/repositories/mine", "/registry/v1/repositories/public", "/registry/v1/tag/list/:namespace/:image", "/regis...
explode_data.jsonl/53353
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 224 }
[ 2830, 3393, 6563, 9523, 1155, 353, 8840, 836, 8, 341, 197, 29172, 1669, 609, 15603, 31483, 67009, 1669, 46183, 7121, 2822, 197, 29172, 21044, 8690, 61210, 692, 26781, 58083, 1669, 3056, 917, 515, 197, 197, 3115, 29172, 5457, 16, 54386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestApp_Run_Categories(t *testing.T) { buf := new(bytes.Buffer) app := &App{ Name: "categories", HideHelp: true, Commands: []*Command{ { Name: "command1", Category: "1", }, { Name: "command2", Category: "1", }, { Name: "command3", Category: "2", },...
explode_data.jsonl/52590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 458 }
[ 2830, 3393, 2164, 84158, 920, 5268, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 501, 23158, 22622, 692, 28236, 1669, 609, 2164, 515, 197, 21297, 25, 257, 330, 15497, 756, 197, 13292, 577, 12689, 25, 830, 345, 197, 197, 30479, 25, 29838...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDB_BeginRW(t *testing.T) { db := MustOpenDB() defer db.MustClose() tx, err := db.Begin(true) if err != nil { t.Fatal(err) } else if tx == nil { t.Fatal("expected tx") } if tx.DB() != db.DB { t.Fatal("unexpected tx database") } else if !tx.Writable() { t.Fatal("expected writable tx") } if e...
explode_data.jsonl/27473
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 3506, 93447, 56368, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 2822, 46237, 11, 1848, 1669, 2927, 28467, 3715, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestListAny(t *testing.T) { list := New() list.Add("a", "b", "c") any := list.Any(func(index int, value interface{}) bool { return value.(string) == "c" }) if any != true { t.Errorf("Got %v expected %v", any, true) } any = list.Any(func(index int, value interface{}) bool { return value.(string) == "x"...
explode_data.jsonl/18296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 852, 8610, 1155, 353, 8840, 836, 8, 341, 14440, 1669, 1532, 741, 14440, 1904, 445, 64, 497, 330, 65, 497, 330, 66, 1138, 197, 3767, 1669, 1140, 13311, 18552, 7195, 526, 11, 897, 3749, 28875, 1807, 341, 197, 853, 897, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetLocker(t *testing.T) { if locker != nil { t.Fail() t.Log("Expected locker to not be set by default") } SetLocker(&lockerMock{}) if locker == nil { t.Fail() t.Log("Expected locker to be set") } }
explode_data.jsonl/63507
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 1649, 87253, 1155, 353, 8840, 836, 8, 341, 743, 34679, 961, 2092, 341, 197, 3244, 57243, 741, 197, 3244, 5247, 445, 18896, 34679, 311, 537, 387, 738, 553, 1638, 1138, 197, 630, 22212, 87253, 2099, 93414, 11571, 6257, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func TestConvertWithBadImportTypedef(t *testing.T) { lines, err := convertTypes( "Foo", "Bar", ` include "../../bar.thrift" struct Foo { 1: optional bar.MyString one 2: required string two } struct Bar { 1: optional bar.MyString one 2: required string two }`, map[string][]byte{ "../....
explode_data.jsonl/62042
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 12012, 2354, 17082, 11511, 12834, 4219, 1155, 353, 8840, 836, 8, 341, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, 3989, 197, 24699, 10208, 2257, 13677, 41380, 698, 2394, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAPISendMessage(t *testing.T) { // perform login through api req := crud.NewSignInEmailRequest("bejanhtc@gmail.com", "Saburi123") resp, err := req.LoginByEmail() if err != nil { t.Fatal(err) } // send message msg := crud.NewMessage(fmt.Sprintf("Test Message %s", uuid.New().String()), resp.Data.User) ...
explode_data.jsonl/15732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 2537, 1637, 408, 2052, 1155, 353, 8840, 836, 8, 341, 197, 322, 2736, 5858, 1526, 6330, 198, 24395, 1669, 75404, 7121, 35423, 4781, 1900, 445, 1371, 22838, 426, 66, 10375, 905, 497, 330, 76378, 6070, 16, 17, 18, 1138, 34653...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestPeerMonitor(t *testing.T) { peer := NewBpPeer( p2p.ID(tmrand.Str(12)), 0, 10, func(err error, _ p2p.ID) {}, nil) peer.SetLogger(log.TestingLogger()) peer.startMonitor() assert.NotNil(t, peer.recvMonitor) peer.stopMonitor() assert.Nil(t, peer.recvMonitor) }
explode_data.jsonl/35421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 30888, 30098, 1155, 353, 8840, 836, 8, 341, 197, 16537, 1669, 1532, 33, 79, 30888, 1006, 197, 3223, 17, 79, 9910, 64190, 11335, 27318, 7, 16, 17, 5731, 220, 15, 11, 220, 16, 15, 345, 197, 29244, 3964, 1465, 11, 716, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTemplateGoIssues(t *testing.T) { b := newTestSitesBuilder(t) b.WithTemplatesAdded( "index.html", ` {{ $title := "a & b" }} <script type="application/ld+json">{"@type":"WebPage","headline":"{{$title}}"}</script> {{/* Action/commands newlines, from Go 1.16, see https://github.com/golang/go/issues/29770 */}...
explode_data.jsonl/60661
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 7275, 10850, 85828, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 2271, 93690, 3297, 1155, 692, 2233, 26124, 51195, 19337, 1006, 197, 197, 1, 1252, 2564, 497, 22074, 2979, 400, 2102, 1669, 330, 64, 609, 293, 1, 8096, 7734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1