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 TestValidIP4ToReturnTrueOnValidAddress(t *testing.T) { result := ipparser.ValidIP4("1.2.3.4") if result != true { t.Fatalf("Expected ValidIP(1.2.3.4) to be true but got false") } }
explode_data.jsonl/70071
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 4088, 3298, 19, 1249, 5598, 2514, 1925, 4088, 4286, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 5997, 9657, 47156, 3298, 19, 445, 16, 13, 17, 13, 18, 13, 19, 5130, 743, 1102, 961, 830, 341, 197, 3244, 30762, 445, 18896, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOwnerReadPubEK(t *testing.T) { rwc := openTPMOrSkip(t) defer rwc.Close() // This test code assumes that the owner auth is the well-known value. ownerAuth := getAuth(ownerAuthEnvVar) pkb, err := OwnerReadPubEK(rwc, ownerAuth) if err != nil { t.Fatal("Couldn't read the pub EK using owner auth:", err) }...
explode_data.jsonl/75357
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 13801, 4418, 29162, 71133, 1155, 353, 8840, 836, 8, 341, 7000, 24028, 1669, 1787, 4239, 44, 2195, 35134, 1155, 340, 16867, 435, 24028, 10421, 2822, 197, 322, 1096, 1273, 2038, 21484, 429, 279, 6372, 4166, 374, 279, 1632, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSyncNamespace(t *testing.T) { namespaceList := kapi.NamespaceList{ Items: []kapi.Namespace{ { ObjectMeta: kapi.ObjectMeta{Name: "foo", ResourceVersion: "1"}, }, { ObjectMeta: kapi.ObjectMeta{Name: "bar", ResourceVersion: "2"}, }, { ObjectMeta: kapi.ObjectMeta{Name: "car", Resource...
explode_data.jsonl/12032
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 939 }
[ 2830, 3393, 12154, 22699, 1155, 353, 8840, 836, 8, 341, 56623, 852, 1669, 595, 2068, 46011, 852, 515, 197, 197, 4353, 25, 3056, 74, 2068, 46011, 515, 298, 197, 515, 571, 23816, 12175, 25, 595, 2068, 80222, 63121, 25, 330, 7975, 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...
4
func TestHttpParser_composedHeaders(t *testing.T) { data := "HTTP/1.1 200 OK\r\n" + "Content-Length: 0\r\n" + "Date: Tue, 14 Aug 2012 22:31:45 GMT\r\n" + "Set-Cookie: aCookie=yummy\r\n" + "Set-Cookie: anotherCookie=why%20not\r\n" + "\r\n" http := httpModForTests(nil) http.parserConfig.sendHeaders = true h...
explode_data.jsonl/16517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 2905, 6570, 2965, 3865, 10574, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 330, 9230, 14, 16, 13, 16, 220, 17, 15, 15, 10402, 12016, 1699, 1, 3610, 197, 197, 1, 2762, 52493, 25, 220, 15, 12016, 1699, 1, 3610, 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
func TestRegisterRPC(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() g := newTestingGateway(t) defer func() { if err := g.Close(); err != nil { t.Fatal(err) } }() g.RegisterRPC("Foo", func(conn modules.PeerConn) error { return nil }) defer func() { if r := recover(); r == nil { t....
explode_data.jsonl/74446
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 189 }
[ 2830, 3393, 8690, 29528, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 741, 3174, 1669, 501, 16451, 40709, 1155, 340, 16867, 2915, 368, 341, 197, 743, 1848, 1669, 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...
2
func TestAvg(t *testing.T) { t.Parallel() testCases := []struct { slice []float64 val float64 }{ { slice: []float64{1, 2, 3, 4}, val: 2.5, }, { slice: []float64{-1, -2, -3, -4}, val: -2.5, }, } r := reducer.Avg() for _, c := range testCases { val, err := r.Reduce(c.slice) requ...
explode_data.jsonl/4720
{ "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, 39447, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 1903, 4754, 3056, 3649, 21, 19, 198, 197, 19302, 256, 2224, 21, 19, 198, 197, 59403, 197, 197, 515, 298, 1903, 4754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_HandleSur(t *testing.T) { task := &Task{ Module: Sur, Input: "../test/sur.xlsx", Output: "../test/surTest.xlsx", } t.Log(task.Run()) }
explode_data.jsonl/25095
{ "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, 42714, 23043, 1155, 353, 8840, 836, 8, 341, 49115, 1669, 609, 6262, 515, 197, 197, 3332, 25, 8082, 345, 197, 66588, 25, 220, 7005, 1944, 2687, 324, 46838, 756, 197, 80487, 25, 7005, 1944, 2687, 324, 2271, 46838, 756, 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
func TestBindUnaryOp(t *testing.T) { env := environment(map[string]interface{}{ "a": NumberType, "b": BoolType, "c": NewOutputType(NumberType), "d": NewOutputType(BoolType), "e": NewPromiseType(NumberType), "f": NewPromiseType(BoolType), }) scope := env.scope() cases := []exprTestCase{ // Standard op...
explode_data.jsonl/42574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 406 }
[ 2830, 3393, 9950, 94545, 7125, 1155, 353, 8840, 836, 8, 341, 57538, 1669, 4573, 9147, 14032, 31344, 67066, 197, 197, 56693, 788, 5624, 929, 345, 197, 197, 1, 65, 788, 12608, 929, 345, 197, 197, 96946, 788, 1532, 5097, 929, 42999, 929,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReaderSimple(t *testing.T) { data := "hello world" b := NewReader(strings.NewReader(data)) if s := readBytes(b); s != "hello world" { t.Errorf("simple hello world test failed: got %q", s) } b = NewReader(newRot13Reader(strings.NewReader(data))) if s := readBytes(b); s != "uryyb jbeyq" { t.Errorf("ro...
explode_data.jsonl/2874
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 5062, 16374, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 330, 14990, 1879, 698, 2233, 1669, 1532, 5062, 51442, 68587, 2592, 1171, 743, 274, 1669, 1349, 7078, 1883, 1215, 274, 961, 330, 14990, 1879, 1, 341, 197, 3244, 13080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStreamDelete(t *testing.T) { s, err := Run() ok(t, err) defer s.Close() c, err := redis.Dial("tcp", s.Addr()) ok(t, err) defer c.Close() _, err = redis.String(c.Do("XGROUP", "CREATE", "planets", "processing", "$", "MKSTREAM")) ok(t, err) _, err = redis.String(c.Do("XADD", "planets", "0-1", "name", "...
explode_data.jsonl/31885
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 3027, 6435, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 6452, 741, 59268, 1155, 11, 1848, 340, 16867, 274, 10421, 741, 1444, 11, 1848, 1669, 20870, 98462, 445, 27161, 497, 274, 93626, 2398, 59268, 1155, 11, 1848, 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 TestTransactionService_GetTransactionStatus(t *testing.T) { mockServer.AddRouter(&mock.Router{ Path: "/transaction/7D354E056A10E7ADAC66741D1021B0E79A57998EAD7E17198821141CE87CF63F/status", RespBody: statusJson, }) cl := mockServer.getTestNetClientUnsafe() txStatus, err := cl.Transaction.GetTransactio...
explode_data.jsonl/69185
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 8070, 1860, 13614, 8070, 2522, 1155, 353, 8840, 836, 8, 341, 77333, 5475, 1904, 9523, 2099, 16712, 31413, 515, 197, 69640, 25, 257, 3521, 13528, 14, 22, 35, 18, 20, 19, 36, 15, 20, 21, 32, 16, 15, 36, 22, 1808, 1706, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResource_Insert(t *testing.T) { type fields struct { update *update query *query insert *insert } type args struct { allOrNone bool records []sobject.Inserter } tests := []struct { name string fields fields args args want []sobject.InsertValue wantErr bool }{ { name:...
explode_data.jsonl/64168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1750 }
[ 2830, 3393, 4783, 76417, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 27175, 353, 2386, 198, 197, 27274, 220, 353, 1631, 198, 197, 59847, 353, 4208, 198, 197, 532, 13158, 2827, 2036, 341, 197, 50960, 2195, 4064, 1807, 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...
3
func TestMember(t *testing.T) { tmpl, err := ParseFile("testdir/test_member.slim") if err != nil { t.Fatal(err) } m := make(map[string]string) m["baz"] = "Baz!" type Baz struct { Fuga string } var buf bytes.Buffer err = tmpl.Execute(&buf, Values{ "foo": struct { Baz []Baz }{ Baz: []Baz{ {Fu...
explode_data.jsonl/80436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 9366, 1155, 353, 8840, 836, 8, 341, 3244, 54010, 11, 1848, 1669, 14775, 1703, 445, 1944, 3741, 12697, 19388, 74257, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 2109, 1669, 1281, 9147, 14032, 30953...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveFile(t *testing.T) { beforeTest(t) conn := _getConnection(t) defer conn.Close() client := agaveproto.NewSftpRelayClient(conn) // create a random directory name in our test dir tmpTestFilePath, err := _createTempFile("", ".bin") if err != nil { assert.FailNowf(t, err.Error(), "Unable to create...
explode_data.jsonl/32550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 424 }
[ 2830, 3393, 13021, 1703, 1155, 353, 8840, 836, 8, 341, 63234, 2271, 1155, 692, 32917, 1669, 716, 52414, 1155, 340, 16867, 4534, 10421, 2822, 25291, 1669, 933, 523, 15110, 7121, 50, 25068, 6740, 352, 2959, 20571, 692, 197, 322, 1855, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAckTimeout(t *testing.T) { ctx := context.Background() ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) defer cancel() workChan := make(chan *TestWork, 10) go testWorker(workChan) a := ack.NewAckTree(ctx, func() { t.Errorf("expecting timeout error. Completion function should not be ca...
explode_data.jsonl/51888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 55559, 7636, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 20985, 11, 9121, 1669, 2266, 26124, 7636, 7502, 11, 220, 16, 15, 15, 77053, 71482, 340, 16867, 9121, 2822, 97038, 46019, 1669, 1281, 35190, 353, 2271,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddAddressByIP(t *testing.T) { fmtErr := fmt.Errorf("") addrErr := &net.AddrError{} var tests = []struct { addrIP string err error }{ { someIP + ":8333", nil, }, { someIP, addrErr, }, { someIP[:12] + ":8333", fmtErr, }, { someIP + ":abcd", fmtErr, }, } amgr...
explode_data.jsonl/49088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 2212, 4286, 1359, 3298, 1155, 353, 8840, 836, 8, 341, 11009, 7747, 1669, 8879, 13080, 31764, 53183, 7747, 1669, 609, 4711, 93626, 1454, 16094, 2405, 7032, 284, 3056, 1235, 341, 197, 53183, 3298, 914, 198, 197, 9859, 262, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestNodeNetwork(t *testing.T) { node := testSetup() if node.Network().Name() != testNodeNetName { t.Errorf("Expected network: %s, found: %s", testNodeNetName, node.Network().Name()) } }
explode_data.jsonl/23543
{ "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, 1955, 12320, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 1273, 21821, 741, 743, 2436, 30149, 1005, 675, 368, 961, 1273, 1955, 6954, 675, 341, 197, 3244, 13080, 445, 18896, 3922, 25, 1018, 82, 11, 1730, 25, 1018, 82, 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 ]
2
func TestGatherHostAddresses(t *testing.T) { type outputRow struct { IP string Preference int } for _, tc := range []struct { Name string Input []string Output []outputRow }{ { Name: "blank", }, { Name: "loopback", Input: []string{ "127.0.0.1", }, }, { Name: "Single...
explode_data.jsonl/10789
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1728 }
[ 2830, 3393, 38, 1856, 9296, 52290, 1155, 353, 8840, 836, 8, 341, 13158, 2550, 3102, 2036, 341, 197, 197, 3298, 260, 914, 198, 197, 197, 31173, 526, 198, 197, 532, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 21297, 256, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseApplyOncePolicy(t *testing.T) { r := require.New(t) app := &v1beta1.Application{Spec: v1beta1.ApplicationSpec{ Policies: []v1beta1.AppPolicy{{Type: "example"}}, }} spec, err := ParseApplyOncePolicy(app) r.NoError(err) r.Nil(spec) app.Spec.Policies = append(app.Spec.Policies, v1beta1.AppPolicy{ ...
explode_data.jsonl/22
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 14463, 28497, 12522, 13825, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 340, 28236, 1669, 609, 85, 16, 19127, 16, 17521, 90, 8327, 25, 348, 16, 19127, 16, 17521, 8327, 515, 197, 10025, 42038, 25, 3056, 85, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegrationsEmptyAwsGovCloudCredentials(t *testing.T) { var awsData api.AwsIntegrationData credentials := awsData.GetGovCloudCredentials() accountID := awsData.GetAccountID() secretKey := credentials.SecretAccessKey accessID := credentials.AccessKeyID assert.Empty(t, accountID) assert.Empty(t, secretKe...
explode_data.jsonl/81111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 1072, 14412, 804, 3522, 47359, 66901, 16055, 27025, 1155, 353, 8840, 836, 8, 341, 2405, 31521, 1043, 6330, 875, 8915, 52464, 1043, 198, 197, 32353, 1669, 31521, 1043, 2234, 66901, 16055, 27025, 741, 86866, 915, 1669, 31521, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSet(t *testing.T) { t.Parallel() hCopy := sample(t) one0, err := net.ResolveIPAddr("ip", "10.0.0.1") ok(t, err) hCopy.Set(*one0, "tendot") equals(t, len(hCopy.records), 4) equals(t, hCopy.records[3].Hostnames["tendot"], true) equals(t, hCopy.records[3].IpAddress.String(), "10.0.0.1") // appending sam...
explode_data.jsonl/43703
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 1649, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 9598, 12106, 1669, 6077, 1155, 340, 197, 603, 15, 11, 1848, 1669, 4179, 57875, 3298, 13986, 445, 573, 497, 330, 16, 15, 13, 15, 13, 15, 13, 16, 1138, 59268, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplaceWords(t *testing.T) { wants := []struct { s string sNew string words []string err bool }{ { s: "hello there my friendy friend", sNew: "howdy there my friendly friends", words: []string{"howdy", "there", "my", "friendly", "friends"}, err: false, }, { s: "h...
explode_data.jsonl/26716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 23107, 23489, 1155, 353, 8840, 836, 8, 341, 6692, 1783, 1669, 3056, 1235, 341, 197, 1903, 257, 914, 198, 197, 1903, 3564, 220, 914, 198, 197, 197, 5761, 3056, 917, 198, 197, 9859, 256, 1807, 198, 197, 59403, 197, 197, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLazyAcker(t *testing.T) { type ackRequest struct { Events []fleetapi.AckEvent `json:"events"` } log, _ := logger.New("") client := newTestingClient() agentInfo := &testAgentInfo{} acker, err := fleet.NewAcker(log, agentInfo, client) if err != nil { t.Fatal(err) } lacker := NewAcker(acker, log) ...
explode_data.jsonl/7597
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 688 }
[ 2830, 3393, 39766, 32, 15160, 1155, 353, 8840, 836, 8, 341, 13158, 10725, 1900, 2036, 341, 197, 197, 7900, 3056, 72698, 2068, 875, 377, 1556, 1565, 2236, 2974, 12389, 8805, 197, 630, 6725, 11, 716, 1669, 5925, 7121, 31764, 25291, 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 TestVPCs_Get(t *testing.T) { setup() defer teardown() svc := client.VPCs path := "/v2/vpcs" want := vTestObj id := "880b7f98-f062-404d-b33c-458d545696f6" jsonBlob := ` { "vpc": ` + vTestJSON + ` } ` mux.HandleFunc(path+"/"+id, func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, http.Metho...
explode_data.jsonl/41239
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 53, 4872, 82, 13614, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 1903, 7362, 1669, 2943, 5058, 4872, 82, 198, 26781, 1669, 3521, 85, 17, 5457, 47313, 698, 50780, 1669, 348, 2271, 5261, 198, 15710, 1669, 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 TestClientConfiguration(t *testing.T) { t.Parallel() t.Run("With empty", func(t *testing.T) { c, err := NewDefaultClient() if err != nil { t.Errorf("Unexpected error: %s", err) } u := c.Transport.(*estransport.Client).URLs()[0].String() if u != defaultURL { t.Errorf("Unexpected URL, want=%s, ...
explode_data.jsonl/24029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1711 }
[ 2830, 3393, 2959, 7688, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3244, 16708, 445, 2354, 4287, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 11, 1848, 1669, 1532, 3675, 2959, 2822, 197, 743, 1848, 961, 2092, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTwoSum(t *testing.T) { var tests = []struct { nums []int target int indices []int }{ {[]int{2, 7, 11, 15}, 9, []int{0, 1}}, {[]int{2, 3, 4, 6}, 6, []int{0, 2}}, {[]int{2, 3, 4, 7}, 8, nil}, {nil, 8, nil}, } for _, tt := range tests { indices := twoSum(tt.nums, tt.target) if reflect.D...
explode_data.jsonl/58633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 11613, 9190, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 22431, 82, 262, 3056, 396, 198, 197, 28861, 220, 526, 198, 197, 197, 14987, 3056, 396, 198, 197, 59403, 197, 197, 90, 1294, 396, 90, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsEastAsianLANG(t *testing.T) { env := saveEnv() defer restoreEnv(&env) os.Setenv("LC_ALL", "") os.Setenv("LC_CTYPE", "") testcases := []struct { lcctype string want bool }{ {"ja_JP.UTF-8", true}, {"C", false}, {"POSIX", false}, {"en_US.UTF-8", false}, {"C.UTF-8", false}, } for _, tt...
explode_data.jsonl/66385
{ "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, 3872, 36340, 67440, 20000, 1155, 353, 8840, 836, 8, 341, 57538, 1669, 3581, 14359, 741, 16867, 14952, 14359, 2099, 3160, 340, 25078, 4202, 3160, 445, 8556, 16269, 497, 14676, 25078, 4202, 3160, 445, 8556, 920, 9502, 497, 85617...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRangeMetaKey(t *testing.T) { testCases := []struct { key, expKey roachpb.RKey }{ { key: roachpb.RKey{}, expKey: roachpb.RKeyMin, }, { key: roachpb.RKey("\x03\x04zonefoo"), expKey: roachpb.RKey("\x02\x04zonefoo"), }, { key: roachpb.RKey("\x02\x04zonefoo"), expKey: roachp...
explode_data.jsonl/56590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 419 }
[ 2830, 3393, 6046, 12175, 1592, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 23634, 11, 1343, 1592, 926, 610, 16650, 2013, 1592, 198, 197, 59403, 197, 197, 515, 298, 23634, 25, 262, 926, 610, 16650, 2013, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMailMessageAttachmentsEndpoint_GetPrimary(t *testing.T) { var want types.GUID n := &MailMessageAttachments{ID: &want} if got := n.GetPrimary(); !reflect.DeepEqual(*got, want) { t.Errorf("MailMessageAttachmentsEndpoint.GetPrimary() failed, got: %v, want: %v", *got, want) } }
explode_data.jsonl/53375
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 16702, 2052, 75740, 27380, 13614, 15972, 1155, 353, 8840, 836, 8, 341, 2405, 1366, 4494, 1224, 6463, 198, 9038, 1669, 609, 16702, 2052, 75740, 90, 915, 25, 609, 52657, 630, 743, 2684, 1669, 308, 2234, 15972, 2129, 753, 34913...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hasRoleWhenRbacEnabled(t *testing.T) { helmChartParser := NewHelmConfigParser( NewHelmTest(t, helmChartRelativePath, map[string]string{ "traefik.enabled": "true", "traefik.rbac.enabled": "true", }), ) require.True(t, helmChartParser.Contains(SearchResourceOption{ Name: "pega-traefik", K...
explode_data.jsonl/14600
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 21778, 9030, 4498, 49, 55877, 5462, 1155, 353, 8840, 836, 8, 341, 9598, 23162, 14488, 6570, 1669, 1532, 39, 23162, 2648, 6570, 1006, 197, 197, 3564, 39, 23162, 2271, 1155, 11, 33765, 14488, 28442, 1820, 11, 2415, 14032, 3095...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTraceparent_SetTraceFlags(t *testing.T) { type fields struct { traceFlags byte } type args struct { flags byte } tests := []struct { name string fields fields args args want byte }{ {"ok", fields{0x00}, args{0x01}, 0x01}, {"ok", fields{0xff}, args{0x00}, 0x00}, {"ok", fields{0x00}...
explode_data.jsonl/35205
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 302 }
[ 2830, 3393, 6550, 3765, 14812, 6550, 9195, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 65058, 9195, 4922, 198, 197, 532, 13158, 2827, 2036, 341, 197, 59516, 4922, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetRawData(t *testing.T) { database := testdb{ inventory: map[string]interface{}{ "key_cache_block_size": 10, "key_buffer_size": 10, "version_comment": "mysql", "version": "5.4.3", }, metrics: map[string]interface{}{}, replica: map[string]interface{}{}, } inventory...
explode_data.jsonl/13418
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 1949, 20015, 1043, 1155, 353, 8840, 836, 8, 341, 2698, 2211, 1669, 1273, 1999, 515, 197, 17430, 7223, 25, 2415, 14032, 31344, 67066, 298, 197, 1, 792, 11529, 7113, 2368, 788, 220, 16, 15, 345, 298, 197, 1, 792, 7776, 236...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGC_TrackSwitchedTags_DoesNothingIfTriggerDisabled(t *testing.T) { require.NoError(t, testutil.TruncateAllTables(suite.db)) enable, err := testutil.GCTrackSwitchedTagsTrigger.Disable(suite.db) require.NoError(t, err) defer enable() // disable other triggers that also insert on gc_manifest_review_queue so ...
explode_data.jsonl/48575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 609 }
[ 2830, 3393, 22863, 21038, 473, 16837, 291, 15930, 1557, 7072, 23780, 2679, 17939, 25907, 1155, 353, 8840, 836, 8, 341, 17957, 35699, 1155, 11, 1273, 1314, 8240, 26900, 2403, 21670, 89516, 7076, 4390, 197, 12552, 11, 1848, 1669, 1273, 1314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTodo_TableName(t *testing.T) { // way 1 todo := Todo{} assert.Equal(t, "todos", todo.TableName()) // way 2 todoPtr := &Todo{} assert.Equal(t, "todos", todoPtr.TableName()) }
explode_data.jsonl/61583
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 24176, 42544, 675, 1155, 353, 8840, 836, 8, 341, 197, 322, 1616, 220, 16, 198, 3244, 6004, 1669, 25404, 16094, 6948, 12808, 1155, 11, 330, 49188, 497, 11804, 86783, 12367, 197, 322, 1616, 220, 17, 198, 3244, 6004, 5348, 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
func TestPipePair(t *testing.T) { cmd := NewCommand(&oldcmds.Command{Type: "string"}) req, err := cmds.NewRequest(context.TODO(), nil, nil, nil, nil, cmd) if err != nil { t.Fatal(err) } r, w := io.Pipe() re := cmds.NewWriterResponseEmitter(w, req, cmds.Encoders[cmds.JSON]) res := cmds.NewReaderResponse(r, cm...
explode_data.jsonl/71794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 34077, 12443, 1155, 353, 8840, 836, 8, 341, 25920, 1669, 1532, 4062, 2099, 813, 92407, 12714, 90, 929, 25, 330, 917, 1, 8824, 24395, 11, 1848, 1669, 47657, 75274, 5378, 90988, 1507, 2092, 11, 2092, 11, 2092, 11, 2092, 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...
3
func TestMessageSend(t *testing.T) { t.Parallel() d := th.NewDaemon( t, th.DefaultAddress(fixtures.TestAddresses[0]), th.KeyFile(fixtures.KeyFilePaths()[1]), // must include same-index KeyFilePath when configuring with a TestMiner. th.WithMiner(fixtures.TestMiners[0]), th.KeyFile(fixtures.KeyFilePaths()[...
explode_data.jsonl/74070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 421 }
[ 2830, 3393, 2052, 11505, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2698, 1669, 270, 7121, 89177, 1006, 197, 3244, 345, 197, 70479, 13275, 4286, 955, 941, 18513, 8787, 52290, 58, 15, 17036, 197, 70479, 9610, 1703, 955, 941, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLocale(t *testing.T) { trans := New() expected := "kam" if trans.Locale() != expected { t.Errorf("Expected '%s' Got '%s'", expected, trans.Locale()) } }
explode_data.jsonl/26541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 19231, 1155, 353, 8840, 836, 8, 1476, 72453, 1669, 1532, 741, 42400, 1669, 330, 74, 309, 1837, 743, 1356, 59094, 368, 961, 3601, 341, 197, 3244, 13080, 445, 18896, 7677, 82, 6, 24528, 7677, 82, 22772, 3601, 11, 1356, 59094...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublishBlobsDownloadFail(t *testing.T) { bm, cancel := newTestBroadcast(t) defer cancel() mdi := bm.database.(*databasemocks.Plugin) mdx := bm.exchange.(*dataexchangemocks.Plugin) blobHash := fftypes.NewRandB32() dataID := fftypes.NewUUID() ctx := context.Background() mdx.On("DownloadBLOB", ctx, "blo...
explode_data.jsonl/12110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 50145, 33, 68164, 11377, 19524, 1155, 353, 8840, 836, 8, 341, 2233, 76, 11, 9121, 1669, 501, 2271, 43362, 1155, 340, 16867, 9121, 741, 2109, 8579, 1669, 34868, 15062, 41399, 67, 2096, 300, 336, 25183, 64378, 340, 2109, 12719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAfterRetryWithContext(t *testing.T) { c := awstesting.NewClient() req := c.NewRequest(&request.Operation{Name: "Operation"}, nil, nil) ctx := &awstesting.FakeContext{DoneCh: make(chan struct{})} req.SetContext(ctx) req.Error = fmt.Errorf("some error") req.Retryable = aws.Bool(true) req.HTTPResponse =...
explode_data.jsonl/44096
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 6025, 51560, 91101, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1360, 267, 59855, 7121, 2959, 2822, 24395, 1669, 272, 75274, 2099, 2035, 56297, 63121, 25, 330, 8432, 14345, 2092, 11, 2092, 692, 20985, 1669, 609, 672, 267, 5985...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccPermissionsJobs(t *testing.T) { permissionsTestHelper(t, func(permissionsAPI PermissionsAPI, user, group string, ef func(string) PermissionsEntity) { ctx := context.Background() jobsAPI := compute.NewJobsAPI(ctx, permissionsAPI.client) job, err := jobsAPI.Create(compute.JobSettings{ NewCluster: ...
explode_data.jsonl/50890
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 574 }
[ 2830, 3393, 14603, 23851, 40667, 1155, 353, 8840, 836, 8, 341, 197, 29900, 2271, 5511, 1155, 11, 2915, 7, 29900, 7082, 53357, 7082, 11, 1196, 11, 1874, 914, 345, 197, 197, 823, 2915, 3609, 8, 53357, 3030, 8, 341, 197, 20985, 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...
1
func TestUnixDomain(t *testing.T) { assert := assert.New(t) // Normal addr := fmt.Sprintf("127.0.0.1:%d", consts.TEST_UNIX_DOMAIN_FRP_PORT) res, err := util.SendTcpMsg(addr, consts.TEST_UNIX_DOMAIN_STR) if assert.NoError(err) { assert.Equal(consts.TEST_UNIX_DOMAIN_STR, res) } }
explode_data.jsonl/79662
{ "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, 55832, 13636, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 197, 322, 18437, 198, 53183, 1669, 8879, 17305, 445, 16, 17, 22, 13, 15, 13, 15, 13, 16, 7533, 67, 497, 95432, 73501, 82754, 33729, 14220, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWrap(t *testing.T) { f := Yaml{} yaml := ` apiVersion: batch/v1 kind: Job metadata: name: pi spec: template: metadata: name: pi spec: containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] ...
explode_data.jsonl/34053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 26787, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 809, 9467, 16094, 14522, 9467, 1669, 1565, 220, 6330, 5637, 25, 7162, 5457, 16, 198, 220, 3093, 25, 12011, 198, 220, 11160, 510, 262, 829, 25, 8938, 198, 220, 1398, 510, 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 TestParseClassDeclarationStatements(t *testing.T) { checkParseStatement( t, ` class Point { public x: int public y: int } `, "(class-declaration Point ((class-field public x int) (class-field public y int)))", ) /* checkParseStatement( t, ` class Point { public x: int ...
explode_data.jsonl/33517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 14463, 1957, 24489, 93122, 1155, 353, 8840, 836, 8, 341, 25157, 14463, 8636, 1006, 197, 3244, 345, 197, 197, 3989, 7847, 536, 5126, 341, 298, 1219, 856, 25, 526, 198, 298, 1219, 379, 25, 526, 198, 7847, 456, 197, 197, 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...
1
func TestSmallNegativeInt(t *testing.T) { i := int16(-1) v := ValueOf(i) if v.Int() != -1 { t.Errorf("int16(-1).Int() returned %v", v.Int()) } }
explode_data.jsonl/29575
{ "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, 25307, 38489, 1072, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 526, 16, 21, 4080, 16, 340, 5195, 1669, 5162, 2124, 1956, 340, 743, 348, 7371, 368, 961, 481, 16, 341, 197, 3244, 13080, 445, 396, 16, 21, 4080, 16, 568, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_profileName(t *testing.T) { tests := []struct { profileType appstoreconnect.ProfileType bundleID string want string wantErr bool }{ { profileType: appstoreconnect.IOSAppDevelopment, bundleID: "io.bitrise.app", want: "Bitrise iOS development - (io.bitrise.app)", ...
explode_data.jsonl/59051
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1011 }
[ 2830, 3393, 13789, 675, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 5365, 929, 906, 4314, 6459, 59872, 929, 198, 197, 2233, 4206, 915, 262, 914, 198, 197, 50780, 286, 914, 198, 197, 50780, 7747, 257, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormalizeGDPR(t *testing.T) { tests := []struct { description string gdprDefaultValue string giveSignal Signal wantSignal Signal }{ { description: "Don't normalize - Signal No and gdprDefaultValue 1", gdprDefaultValue: "1", giveSignal: SignalNo, wantSignal: ...
explode_data.jsonl/31100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 720 }
[ 2830, 3393, 87824, 40849, 6480, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 414, 914, 198, 197, 3174, 67, 649, 41533, 914, 198, 197, 3174, 533, 26810, 981, 27230, 198, 197, 50780, 26810, 981, 27230, 198, 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...
3
func TestUpdateQCHigh(t *testing.T) { key, _ := GeneratePrivateKey() hs := New(NewConfig(1, key, nil)) block1 := CreateLeaf(hs.genesis, []Command{Command("command1")}, hs.qcHigh, hs.genesis.Height+1) hs.Blocks.Put(block1) qc1 := CreateQuorumCert(block1) if hs.UpdateQCHigh(qc1) { if hs.bLeaf.Hash() != block1.Ha...
explode_data.jsonl/1119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 4289, 48, 2149, 1090, 1155, 353, 8840, 836, 8, 341, 23634, 11, 716, 1669, 19813, 75981, 741, 81692, 1669, 1532, 35063, 2648, 7, 16, 11, 1376, 11, 2092, 1171, 47996, 16, 1669, 4230, 31461, 3203, 82, 22822, 13774, 11, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFinalizePulse_NotNextPulse(t *testing.T) { ctx := inslogger.TestContext(t) testPulse := insolar.PulseNumber(pulse.MinTimePulse) jk := executor.NewJetKeeperMock(t) jk.HasAllJetConfirmsMock.Return(true) jk.TopSyncPulseMock.Return(testPulse) pc := insolarPulse.NewCalculatorMock(t) pc.ForwardsMock.Return...
explode_data.jsonl/68988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 19357, 551, 47, 17217, 60816, 5847, 47, 17217, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1640, 9786, 8787, 1972, 1155, 692, 18185, 47, 17217, 1669, 1640, 7417, 1069, 17217, 2833, 1295, 17217, 17070, 1462, 47, 17217, 692, 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...
1
func TestRunAsAnyGenerateSingle(t *testing.T) { s, err := NewRunAsAny() if err != nil { t.Fatalf("unexpected error initializing NewRunAsAny %v", err) } group, err := s.GenerateSingle(nil) if group != nil { t.Errorf("expected empty but got %v", group) } if err != nil { t.Errorf("unexpected error generating ...
explode_data.jsonl/34882
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 6727, 2121, 8610, 31115, 10888, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 1532, 6727, 2121, 8610, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 53859, 1465, 57060, 1532, 6727, 2121, 8610, 1018, 85, 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...
4
func TestQueryWithRowFiltering(t *testing.T) { catalogStore, err := store.Open("catalog_where", store.DefaultOptions()) require.NoError(t, err) defer os.RemoveAll("catalog_where") dataStore, err := store.Open("sqldata_where", store.DefaultOptions()) require.NoError(t, err) defer os.RemoveAll("sqldata_where") e...
explode_data.jsonl/64074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1395 }
[ 2830, 3393, 2859, 2354, 3102, 5632, 287, 1155, 353, 8840, 836, 8, 341, 1444, 7750, 6093, 11, 1848, 1669, 3553, 12953, 445, 26539, 36814, 497, 3553, 13275, 3798, 2398, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 445, 26539, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewFactory(t *testing.T) { defer func() { _ = fileutil.RemoveDir(testPath) listDirFunc = fileutil.ListDir mapFileFunc = fileutil.RWMap }() // case 1: list page files err listDirFunc = func(path string) ([]string, error) { return nil, fmt.Errorf("err") } fct, err := NewFactory(testPath, 128) asse...
explode_data.jsonl/53070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 493 }
[ 2830, 3393, 3564, 4153, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 197, 62, 284, 1034, 1314, 13270, 6184, 8623, 1820, 340, 197, 14440, 6184, 9626, 284, 1034, 1314, 5814, 6184, 198, 197, 19567, 1703, 9626, 284, 1034, 131...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSocketWriter_Write_err(t *testing.T) { listener, err := net.Listen("tcp", "127.0.0.1:0") require.NoError(t, err) sw := newSocketWriter() sw.Address = "tcp://" + listener.Addr().String() err = sw.Connect() require.NoError(t, err) sw.Conn.(*net.TCPConn).SetReadBuffer(256) lconn, err := listener.Accept...
explode_data.jsonl/34021
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 246 }
[ 2830, 3393, 10286, 6492, 31825, 9266, 1155, 353, 8840, 836, 8, 341, 14440, 798, 11, 1848, 1669, 4179, 68334, 445, 27161, 497, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 15, 1138, 17957, 35699, 1155, 11, 1848, 692, 77295, 1669, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWhereInt(t *testing.T) { v := &Value{data: []int{int(1), int(1), int(1), int(1), int(1), int(1)}} selected := v.WhereInt(func(i int, val int) bool { return i%2 == 0 }).MustIntSlice() assert.Equal(t, 3, len(selected)) }
explode_data.jsonl/23420
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 9064, 1072, 1155, 353, 8840, 836, 8, 1476, 5195, 1669, 609, 1130, 90, 691, 25, 3056, 396, 90, 396, 7, 16, 701, 526, 7, 16, 701, 526, 7, 16, 701, 526, 7, 16, 701, 526, 7, 16, 701, 526, 7, 16, 9139, 630, 70631, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListAuthChecker_String(t *testing.T) { defer func() { if r := recover(); r != nil { t.Fatalf("Panic detected: %v", r) } }() options := DefaultListAuthCheckerOptions() options.AuthMode = AuthDenylist c := NewListAuthChecker(options) c.Set("1", "2", "3") // Make sure it doesn't crash _ = c.Stri...
explode_data.jsonl/38961
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 852, 5087, 35188, 31777, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 961, 2092, 341, 298, 3244, 30762, 445, 47, 31270, 16507, 25, 1018, 85, 497, 435, 340, 197, 197, 532, 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...
2
func TestTunnelServerEndpointEds(t *testing.T) { s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{}) s.Discovery.MemRegistry.AddHTTPService(edsIncSvc, edsIncVip, 8080) s.Discovery.MemRegistry.SetEndpoints(edsIncSvc, "", []*model.IstioEndpoint{ { Address: "127.0.0.1", ServicePortName: "http-mai...
explode_data.jsonl/7947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 548 }
[ 2830, 3393, 51, 40292, 5475, 27380, 2715, 82, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 856, 5356, 7121, 52317, 67400, 5475, 1155, 11, 856, 5356, 991, 726, 3798, 37790, 1903, 10166, 7449, 1321, 336, 15603, 1904, 9230, 1860, 7, 6767, 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 TestList(t *testing.T) { key := sdk.NewKVStoreKey("test") ctx, cdc := defaultComponents(key) store := ctx.KVStore(key) lm := NewList(cdc, store) val := S{1, true} var res S lm.Push(val) require.Equal(t, uint64(1), lm.Len()) lm.Get(uint64(0), &res) require.Equal(t, val, res) val = S{2, false} lm.Set(...
explode_data.jsonl/7809
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 446 }
[ 2830, 3393, 852, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 45402, 7121, 82707, 6093, 1592, 445, 1944, 1138, 20985, 11, 272, 7628, 1669, 1638, 10443, 4857, 340, 57279, 1669, 5635, 11352, 53, 6093, 4857, 340, 8810, 76, 1669, 1532, 852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChannelConfig(t *testing.T) { cc, err := NewChannelConfig(&cb.ConfigGroup{ Groups: map[string]*cb.ConfigGroup{ "UnknownGroupKey": {}, }, }) assert.Error(t, err) assert.Nil(t, cc) }
explode_data.jsonl/30621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 9629, 2648, 1155, 353, 8840, 836, 8, 341, 63517, 11, 1848, 1669, 1532, 9629, 2648, 2099, 7221, 10753, 2808, 515, 197, 197, 22173, 25, 2415, 14032, 8465, 7221, 10753, 2808, 515, 298, 197, 1, 13790, 2808, 1592, 788, 14573, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCalculateHeadersToPropagate(t *testing.T) { for i, tc := range []struct { cfg [][]string claims map[string]interface{} expected map[string]string }{ { cfg: [][]string{{"a", "x-a"}, {"b", "x-b"}, {"c", "x-c"}, {"d", "x-d"}}, claims: map[string]interface{}{ "a": 1, "b": "foo", ...
explode_data.jsonl/67491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 47866, 10574, 1249, 2008, 46836, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 17130, 1669, 2088, 3056, 1235, 341, 197, 50286, 414, 52931, 917, 198, 197, 197, 48561, 256, 2415, 14032, 31344, 16094, 197, 42400, 2415, 14032, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRankingRepository_RankingsForContest(t *testing.T) { sqlHandler, cleanup := setupTestingSuite(t) defer cleanup() repo := repositories.NewRankingRepository(sqlHandler) contestID := uint64(1) users := createTestUsers(t, sqlHandler, 3) type testCase struct { contestID uint64 userID uin...
explode_data.jsonl/18795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 754 }
[ 2830, 3393, 22550, 287, 4624, 2568, 1180, 819, 2461, 818, 477, 1155, 353, 8840, 836, 8, 341, 30633, 3050, 11, 21290, 1669, 6505, 16451, 28000, 1155, 340, 16867, 21290, 2822, 17200, 5368, 1669, 49657, 7121, 22550, 287, 4624, 13148, 3050, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTableNameConcurrently(t *testing.T) { DB := DB.Model("") if DB.NewScope(Order{}).TableName() != "orders" { t.Errorf("Order's table name should be orders") } var wg sync.WaitGroup wg.Add(10) for i := 1; i <= 10; i++ { go func(db *gorm.DB) { DB.SingularTable(true) wg.Done() }(DB) } wg.Wait(...
explode_data.jsonl/28039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 33227, 1109, 58202, 1155, 353, 8840, 836, 8, 341, 45409, 1669, 5952, 5659, 31764, 743, 5952, 7121, 10803, 39692, 6257, 568, 33227, 368, 961, 330, 7917, 1, 341, 197, 3244, 13080, 445, 4431, 594, 1965, 829, 1265, 387, 10163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiFilters(t *testing.T) { tracer1 := mocktrace.NewTracer("tracer1") tracer2 := mocktrace.NewTracer("tracer2") tracer3 := mocktrace.NewTracer("tracer3") wrappedFunc := func(tracerName string) restful.RouteFunction { return func(req *restful.Request, resp *restful.Response) { span := oteltrace.SpanF...
explode_data.jsonl/50856
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 649 }
[ 2830, 3393, 20358, 28351, 1155, 353, 8840, 836, 8, 341, 25583, 9584, 16, 1669, 7860, 15067, 7121, 1282, 9584, 445, 94941, 16, 1138, 25583, 9584, 17, 1669, 7860, 15067, 7121, 1282, 9584, 445, 94941, 17, 1138, 25583, 9584, 18, 1669, 7860,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fsimpl_CheckExistsOrWrite(t *testing.T) { type args struct { path string data []byte } tests := map[string]struct { args args want bool wantErr string beforeFn func(m *mocks.FS) }{ "should exists": { args: args{path: "/usr/bar", data: []byte{}}, want: true, beforeFn: func(m...
explode_data.jsonl/58980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 938 }
[ 2830, 3393, 34470, 6383, 28188, 15575, 2195, 7985, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 26781, 914, 198, 197, 8924, 3056, 3782, 198, 197, 532, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 31215, 257, 2827, 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...
1
func TestAttachmentsUnmarshalJSON(t *testing.T) { tests := []struct { name string input string expected Attachments err string }{ { name: "no attachments", input: "{}", expected: Attachments{}, }, { name: "one attachment", input: `{ "foo.txt": { "content_type": "tex...
explode_data.jsonl/28905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 426 }
[ 2830, 3393, 75740, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 22427, 914, 271, 197, 42400, 48384, 1368, 198, 197, 9859, 414, 914, 198, 197, 59403, 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...
3
func TestWriteTheNextLineAtTheEndOfTheFile(t *testing.T) { logFile := outputs.NewSimpleLogFileWithFolderPath("./", "test3") _, _ = logFile.Write([]byte("Dumb log line")) _, writeErr := logFile.Write([]byte("Second log line")) if writeErr != nil { t.Errorf("Could not write in the log file : %v", writeErr) } c...
explode_data.jsonl/22140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 7985, 785, 5847, 2460, 1655, 785, 3727, 2124, 785, 1703, 1155, 353, 8840, 836, 8, 341, 6725, 1703, 1669, 16275, 7121, 16374, 98857, 2354, 90597, 13988, 497, 330, 1944, 18, 5130, 197, 6878, 716, 284, 1487, 1703, 4073, 10556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAssignField(t *testing.T) { t.Parallel() tests := []struct { name string dest interface{} src interface{} expected interface{} }{ { name: "same types", dest: int8(0), src: int8(100), expected: int8(100), }, { name: "same types - more source pointers", ...
explode_data.jsonl/5030
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1891 }
[ 2830, 3393, 28933, 1877, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 49616, 257, 3749, 16094, 197, 41144, 414, 3749, 16094, 197, 42400, 3749, 16094, 197, 59403, 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 TestShuffleStrings(t *testing.T) { ShuffleStrings([]string{"a"}) ShuffleStrings(nil) a := []string{"a", "b", "c", "d", "e", "f", "g", "h"} b := make([]string, len(a)) copy(b, a) ShuffleStrings(a) if equalSliceString(a, b) { t.Errorf("shuffle resulted in the same permutation, the odds are slim") } }
explode_data.jsonl/82368
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 2016, 13208, 20859, 1155, 353, 8840, 836, 8, 341, 197, 2016, 13208, 20859, 10556, 917, 4913, 64, 23625, 197, 2016, 13208, 20859, 27907, 692, 11323, 1669, 3056, 917, 4913, 64, 497, 330, 65, 497, 330, 66, 497, 330, 67, 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 TestWSIsControlFrame(t *testing.T) { for _, test := range []struct { name string code wsOpCode isControl bool }{ {"binary", wsBinaryMessage, false}, {"text", wsTextMessage, false}, {"ping", wsPingMessage, true}, {"pong", wsPongMessage, true}, {"close", wsCloseMessage, true}, } { t.Ru...
explode_data.jsonl/42685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 7433, 3872, 3273, 4369, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 43343, 414, 17624, 7125, 2078, 198, 197, 19907, 3273, 1807, 198, 197, 59403, 197, 197, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCarver_DetectHorizontalEnergySeam(t *testing.T) { var seams [][]Seam var totalEnergySeams int img := image.NewNRGBA(image.Rect(0, 0, ImgWidth, ImgHeight)) draw.Draw(img, img.Bounds(), &image.Uniform{image.White}, image.ZP, draw.Src) // Replace the pixel colors in a single row from 0xff to 0xdd. 5 is an ...
explode_data.jsonl/8687
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 8852, 423, 1557, 13176, 15837, 32675, 1514, 309, 1155, 353, 8840, 836, 8, 341, 2405, 73688, 52931, 1514, 309, 198, 2405, 2790, 32675, 1514, 4122, 526, 271, 39162, 1669, 2168, 7121, 45, 58927, 10075, 32153, 7, 15, 11, 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...
6
func TestUserDataMerge(t *testing.T) { for testName, testCase := range map[string]struct { provision userData custom userData expected userData expectError bool }{ "Succeeds": { provision: userData{ Options: userdata.Options{ Directive: userdata.ShellScript + "/bin/bash", Content:...
explode_data.jsonl/3805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1416 }
[ 2830, 3393, 39485, 52096, 1155, 353, 8840, 836, 8, 341, 2023, 94396, 11, 54452, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 197, 776, 13013, 256, 34385, 198, 197, 1444, 1450, 414, 34385, 198, 197, 42400, 262, 34385, 198, 197, 24952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestManagementClient_Endpoint_Failures(t *testing.T) { //Create a new api client client, err := NewManagementClient(configManagementTest.HTTP.BaseURL) if !assert.NoError(t, err, "error while creating a new api client") { return } //Set username and password if configManagementTest.HTTP.AuthUsername != "" &...
explode_data.jsonl/82179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 750 }
[ 2830, 3393, 22237, 2959, 49953, 2768, 1400, 604, 1413, 1155, 353, 8840, 836, 8, 341, 197, 322, 4021, 264, 501, 6330, 2943, 198, 25291, 11, 1848, 1669, 1532, 22237, 2959, 8754, 22237, 2271, 27358, 13018, 3144, 340, 743, 753, 2207, 35699,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepository_SaveAddAffiliate(t *testing.T) { db, err := sqlx.Connect("pgx", "host=localhost port=5432 user=postgres dbname=juno password=postgres sslmode=disable") if err != nil { t.Fatal(err) } // Create the codec codec := simapp.MakeTestEncodingConfig() type args struct { msg []*accountstypes.MsgA...
explode_data.jsonl/25488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1018 }
[ 2830, 3393, 4624, 78746, 2212, 25841, 34850, 1155, 353, 8840, 836, 8, 341, 20939, 11, 1848, 1669, 5704, 87, 43851, 445, 3517, 87, 497, 330, 3790, 84551, 2635, 28, 20, 19, 18, 17, 1196, 28, 43070, 83492, 45612, 16311, 3552, 28, 43070, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStrToParquetType(t *testing.T) { testData := []struct { StrData string GoData interface{} PT *parquet.Type CT *parquet.ConvertedType Length int Scale int }{ {"false", bool(false), parquet.TypePtr(parquet.Type_BOOLEAN), nil, 0, 0}, {"1", int32(1), parquet.TypePtr(parquet.Type_INT...
explode_data.jsonl/29861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1660 }
[ 2830, 3393, 2580, 1249, 4272, 23300, 929, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 3056, 1235, 341, 197, 197, 2580, 1043, 914, 198, 197, 9600, 78, 1043, 220, 3749, 16094, 197, 197, 2828, 414, 353, 1732, 23300, 10184, 198, 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...
3
func TestMetaAddress_Receive_Segwit_Address(t *testing.T) { path := NewDerivationPath(BaseCoinBip84MainNet, 0, 0) wallet := NewHDWalletFromWords(w, BaseCoinBip84MainNet) usableAddress, err := newUsableAddressWithDerivationPath(wallet, path) assert.Nil(t, err) meta, err := usableAddress.MetaAddress() assert.Nil(...
explode_data.jsonl/64002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 12175, 4286, 62, 14742, 1098, 791, 88519, 64899, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 1532, 22171, 39127, 1820, 22225, 41180, 33, 573, 23, 19, 6202, 6954, 11, 220, 15, 11, 220, 15, 340, 6692, 7464, 1669, 1532, 19147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsJSONType(t *testing.T) { for _, test := range []struct { input string expect bool }{ {"application/json", true}, {"application/xml+json", true}, {"application/vnd.foo+json", true}, {"application/json; charset=utf-8", true}, {"application/vnd.foo+json; charset=utf-8", true}, {"text/json",...
explode_data.jsonl/51176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 3872, 5370, 929, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 22427, 220, 914, 198, 197, 24952, 1807, 198, 197, 59403, 197, 197, 4913, 5132, 8931, 497, 830, 1583, 197, 197, 4913, 5132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBoxFillWriterFillsBox(t *testing.T) { bfw := createBoxFillWriter(NewRect(1, 1, 5, 5), termbox.ColorCyan) // test left/right margin for y := 0; y < 7; y++ { _, outputAttribute := bfw(termbox.ColorWhite, termbox.ColorBlack, point{0, y}) assert.Equal(t, termbox.ColorBlack, outputAttribute, "Expected (%...
explode_data.jsonl/30727
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 523 }
[ 2830, 3393, 1611, 14449, 6492, 37, 3305, 1611, 1155, 353, 8840, 836, 8, 341, 2233, 20564, 1669, 1855, 1611, 14449, 6492, 35063, 4415, 7, 16, 11, 220, 16, 11, 220, 20, 11, 220, 20, 701, 4647, 2011, 6669, 34, 8339, 692, 197, 322, 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...
5
func Test_podTracker_Stop(t *testing.T) { // setup types logger := logrus.NewEntry(logrus.StandardLogger()) clientset := fake.NewSimpleClientset() tests := []struct { name string pod *v1.Pod started bool }{ { name: "started", pod: _pod, started: true, }, { name: "not start...
explode_data.jsonl/62942
{ "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, 85337, 31133, 80308, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 4494, 198, 17060, 1669, 1487, 20341, 7121, 5874, 12531, 20341, 53615, 7395, 2398, 25291, 746, 1669, 12418, 7121, 16374, 2959, 746, 2822, 78216, 1669, 3056, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldIgnoreAllowedPattern(t *testing.T) { results := helpers.NewDetectionResults() content := []byte("\"key\" : \"This is an allowed keyword\"\npassword=y0uw1lln3v3rgu3ssmyP@55w0rd") filename := "allowed_pattern.txt" additions := []gitrepo.Addition{gitrepo.NewAddition(filename, content)} fileIgnoreConfig...
explode_data.jsonl/82120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 14996, 12497, 35382, 15760, 1155, 353, 8840, 836, 8, 341, 55497, 1669, 30187, 7121, 54817, 9801, 741, 27751, 1669, 3056, 3782, 38915, 792, 2105, 549, 7245, 1986, 374, 458, 5420, 16174, 22245, 77, 3833, 29368, 15, 42110, 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...
1
func Test_reconstructQueue(t *testing.T) { type args struct { people [][]int } tests := []struct { name string args args want [][]int }{ { args: args{ people: [][]int{ {7, 0}, {4, 4}, {7, 1}, {5, 0}, {6, 1}, {5, 2}, }, }, want: [][]int{ {5, 0}, {7, 0}...
explode_data.jsonl/7968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 1288, 7596, 7554, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 16069, 52931, 396, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 52931, 396, 198, 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...
2
func TestUserEntityUpdateWRONGIMAGE(t *testing.T) { resp, _ := sendPut("http://localhost:8080/TESTING/YourAccount&q=Update", UserEntityUpdateWRONGIMAGE, auth.Header.Get("Authorization")) response := responseToString(resp) compareResults(t, response, HyperText.CustomResponses["wrong-validation"]) }
explode_data.jsonl/59341
{ "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, 1474, 3030, 4289, 17925, 7539, 29926, 1155, 353, 8840, 836, 8, 341, 34653, 11, 716, 1669, 3624, 19103, 445, 1254, 1110, 8301, 25, 23, 15, 23, 15, 14, 10033, 1718, 14, 7771, 7365, 62735, 28, 4289, 497, 2657, 3030, 4289, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNilPointer(t *testing.T) { var name *string = nil eq := Eq{"name": name} sql, args, err := eq.ToSql() assert.NoError(t, err) assert.Empty(t, args) assert.Equal(t, "name IS NULL", sql) neq := NotEq{"name": name} sql, args, err = neq.ToSql() assert.NoError(t, err) assert.Empty(t, args) assert.Equal...
explode_data.jsonl/44173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 435 }
[ 2830, 3393, 19064, 9084, 1155, 353, 8840, 836, 8, 341, 2405, 829, 353, 917, 284, 2092, 198, 7727, 80, 1669, 33122, 4913, 606, 788, 829, 532, 30633, 11, 2827, 11, 1848, 1669, 8939, 3274, 8269, 2822, 6948, 35699, 1155, 11, 1848, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUntarHardlinkToSymlink(t *testing.T) { // TODO Windows. There may be a way of running this, but turning off for now if runtime.GOOS == "windows" { t.Skip("hardlinks on Windows") } for i, headers := range [][]*tar.Header{ { { Name: "symlink1", Typeflag: tar.TypeSymlink, Linkname: "reg...
explode_data.jsonl/82000
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 20250, 277, 26907, 2080, 1249, 34667, 44243, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 5515, 13, 2619, 1231, 387, 264, 1616, 315, 4303, 419, 11, 714, 13054, 1007, 369, 1431, 198, 743, 15592, 97574, 3126, 621, 330, 2707...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBundledResourcesWhenMultipleOutputFormats(t *testing.T) { t.Parallel() b := newTestSitesBuilder(t).Running().WithConfigFile("toml", ` baseURL = "https://example.org" [outputs] # This looks odd, but it triggers the behaviour in #5858 # The total output formats list gets sorted, so CSS before HTML. home...
explode_data.jsonl/68132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 276 }
[ 2830, 3393, 33, 1241, 832, 11277, 4498, 32089, 5097, 44599, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2233, 1669, 501, 2271, 93690, 3297, 1155, 568, 18990, 1005, 2354, 2648, 1703, 445, 37401, 75, 497, 22074, 3152, 3144, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateS3BucketLifecycleExpirationDays(t *testing.T) { validDays := []int{ 1, 31, 1024, } for _, v := range validDays { _, errors := validateS3BucketLifecycleExpirationDays(v, "days") if len(errors) != 0 { t.Fatalf("%q should be valid days: %q", v, errors) } } invalidDays := []int{ -1,...
explode_data.jsonl/78573
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 17926, 50, 18, 36018, 62731, 66301, 20557, 1155, 353, 8840, 836, 8, 341, 56322, 20557, 1669, 3056, 396, 515, 197, 197, 16, 345, 197, 197, 18, 16, 345, 197, 197, 16, 15, 17, 19, 345, 197, 630, 2023, 8358, 348, 1669, 208...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCallLessArgsDynamicLocalVar(t *testing.T) { const SCRIPT = ` function f(param) { var a = 42; if (false) { eval(""); } return a; } f(); ` testScript1(SCRIPT, intToValue(42), t) }
explode_data.jsonl/75215
{ "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, 7220, 27451, 4117, 21752, 7319, 3962, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 7527, 282, 9743, 8, 341, 197, 2405, 264, 284, 220, 19, 17, 280, 197, 743, 320, 3849, 8, 341, 298, 93413, 13056, 197, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDoErr(t *testing.T) { is := is.New(t) var calls int srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { calls++ is.Equal(r.Method, http.MethodPost) query := r.FormValue("query") is.Equal(query, `query {}`) io.WriteString(w, `{ "errors": [{ "message": "S...
explode_data.jsonl/53422
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 5404, 7747, 1155, 353, 8840, 836, 8, 341, 19907, 1669, 374, 7121, 1155, 340, 2405, 6738, 526, 198, 1903, 10553, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 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 TestMySQLBackupWrapper(t *testing.T) { logf.SetLogger(logf.ZapLoggerTo(GinkgoWriter, true)) RegisterFailHandler(Fail) RunSpecs(t, "MySQLBackup wrapper unit tests") }
explode_data.jsonl/29986
{ "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, 59224, 56245, 11542, 1155, 353, 8840, 836, 8, 341, 6725, 69, 4202, 7395, 12531, 69, 13476, 391, 7395, 1249, 6699, 766, 3346, 6492, 11, 830, 4390, 79096, 19524, 3050, 7832, 604, 340, 85952, 8327, 82, 1155, 11, 330, 59224, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTxExecutorRollbackRedoFail(t *testing.T) { txe, tsv, db := newTestTxExecutor(t) defer db.Close() defer tsv.StopService() txid := newTxForPrep(tsv) // Allow all additions to redo logs to succeed db.AddQueryPattern("insert into _vt\\.redo_state.*", &sqltypes.Result{}) err := txe.Prepare(txid, "bb") requi...
explode_data.jsonl/25170
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 31584, 25255, 32355, 1419, 6033, 78, 19524, 1155, 353, 8840, 836, 8, 341, 3244, 8371, 11, 259, 3492, 11, 2927, 1669, 501, 2271, 31584, 25255, 1155, 340, 16867, 2927, 10421, 741, 16867, 259, 3492, 30213, 1860, 741, 46237, 307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoReadPath(t *testing.T) { t.Parallel() g := gomega.NewGomegaWithT(t) // Set the logger to development mode for verbose logs. logf.SetLogger(zap.New(zap.UseDevMode(true))) namespaced := types.NamespacedName{ Name: "read-test", Namespace: "default", } application := &app.FybrikApplication{} g....
explode_data.jsonl/45017
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 637 }
[ 2830, 3393, 2753, 4418, 1820, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 197, 322, 2573, 279, 5925, 311, 4401, 3856, 369, 13694, 18422, 624, 6725, 69, 4202, 7395...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScopesAllMatcher(t *testing.T) { for _, v := range []struct { name string scopesKey string claims map[string]interface{} requiredScopes []string expected bool }{ { name: "all_simple_success", scopesKey: "scope", claims: map[string]inter...
explode_data.jsonl/67489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1161 }
[ 2830, 3393, 3326, 18523, 2403, 37554, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 348, 1669, 2088, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 29928, 18523, 1592, 414, 914, 198, 197, 197, 48561, 260, 2415, 14032, 31344, 16094, 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...
2
func TestToHex(t *testing.T) { if h := ToHex(refClr); h != "8E0CF2" { t.Errorf("result color hex was %s", h) } if h := ToHex(&color.RGBA{0, 0, 0, 255}); h != "000000" { t.Errorf("result color hex was %s", h) } }
explode_data.jsonl/37826
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 1249, 20335, 1155, 353, 8840, 836, 8, 341, 743, 305, 1669, 2014, 20335, 13321, 90431, 1215, 305, 961, 330, 23, 36, 15, 9650, 17, 1, 341, 197, 3244, 13080, 445, 1382, 1894, 12371, 572, 1018, 82, 497, 305, 340, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStorePointerToStruct(t *testing.T) { tc := New(DefaultExpiration, 0) tc.Set(v1, &TestStruct{Num: 1}, DefaultExpiration) x, found := tc.Get(v1) if !found { t.Fatal("*TestStruct was not found for foo") } foo := x.(*TestStruct) foo.Num++ y, found := tc.Get(v1) if !found { t.Fatal("*TestStruct was no...
explode_data.jsonl/63758
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 6093, 9084, 1249, 9422, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 1532, 87874, 66301, 11, 220, 15, 340, 78255, 4202, 3747, 16, 11, 609, 2271, 9422, 90, 4651, 25, 220, 16, 2137, 7899, 66301, 340, 10225, 11, 1730, 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...
4
func TestPoolError2(t *testing.T) { assert := assert.New(t) var ( panicCount = uint32(0) panicHandler = func(alias string, err interface{}) { atomic.AddUint32(&panicCount, 1) // Do work panic assert.Equal(alias, fmt.Sprintf("%s-%d", poolName, 1)) } pool = New(poolName, numWorkers, panicHandler)...
explode_data.jsonl/73115
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 10551, 1454, 17, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 2405, 2399, 197, 30764, 2507, 256, 284, 2622, 18, 17, 7, 15, 340, 197, 30764, 3050, 284, 2915, 79965, 914, 11, 1848, 3749, 28875, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExtendSectorExpiration(t *testing.T) { periodOffset := abi.ChainEpoch(100) actor := newHarness(t, periodOffset) precommitEpoch := abi.ChainEpoch(1) builder := builderForHarness(actor). WithEpoch(precommitEpoch). WithBalance(bigBalance, big.Zero()) commitSector := func(t *testing.T, rt *mock.Runtime) ...
explode_data.jsonl/43147
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1597 }
[ 2830, 3393, 72136, 68188, 66301, 1155, 353, 8840, 836, 8, 341, 197, 19304, 6446, 1669, 61050, 98269, 44338, 7, 16, 15, 15, 340, 93410, 1669, 501, 74248, 1155, 11, 4168, 6446, 340, 40346, 17413, 44338, 1669, 61050, 98269, 44338, 7, 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...
1
func TestOCMProvider_ApplyResources(t *testing.T) { type fields struct { ocmClient ocm.Client } type args struct { clusterSpec *types.ClusterSpec resources types.ResourceSet } internalId := "test-internal-id" spec := &types.ClusterSpec{ InternalID: internalId, ExternalID: "", Status: ...
explode_data.jsonl/4835
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2036 }
[ 2830, 3393, 7612, 44, 5179, 36117, 398, 11277, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 509, 76, 2959, 297, 6226, 11716, 198, 197, 532, 13158, 2827, 2036, 341, 197, 197, 18855, 8327, 353, 9242, 72883, 8327, 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...
1
func TestFrom(t *testing.T) { b := &Builder{flags: &BFlags{}, runConfig: &container.Config{}, disableCommit: true} err := from(b, []string{"scratch"}, nil, "") if runtime.GOOS == "windows" { if err == nil { t.Fatalf("Error not set on Windows") } expectedError := "Windows does not support FROM scratch" ...
explode_data.jsonl/28276
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 3830, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 609, 3297, 90, 11161, 25, 609, 33, 9195, 22655, 1598, 2648, 25, 609, 3586, 10753, 22655, 11156, 33441, 25, 830, 630, 9859, 1669, 504, 1883, 11, 3056, 917, 4913, 54055, 14345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestManifestGenerateGateway(t *testing.T) { runTestGroup(t, testGroup{ { desc: "ingressgateway_k8s_settings", diffSelect: "Deployment:*:istio-ingressgateway, Service:*:istio-ingressgateway", }, }) }
explode_data.jsonl/47911
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 38495, 31115, 40709, 1155, 353, 8840, 836, 8, 341, 56742, 2271, 2808, 1155, 11, 1273, 2808, 515, 197, 197, 515, 298, 41653, 25, 981, 330, 287, 673, 46473, 4698, 23, 82, 10853, 756, 298, 80564, 3379, 25, 330, 75286, 53386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunFailsWithImpossibleTest(t *testing.T) { logs := []string{} config := &Config{ args: []string{".binary", "0"}, logf: func(f string, a ...interface{}) { fmt.Printf(f+"\n", a...) logs = append(logs, fmt.Sprintf(f, a...)) }, puzzles: testPuzzles(), } err := Run(config) require.Error(t, err) ...
explode_data.jsonl/67965
{ "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, 6727, 37, 6209, 2354, 89655, 2271, 1155, 353, 8840, 836, 8, 341, 6725, 82, 1669, 3056, 917, 16094, 25873, 1669, 609, 2648, 515, 197, 31215, 25, 3056, 917, 90, 3263, 25891, 497, 330, 15, 7115, 197, 6725, 69, 25, 2915, 955...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccKeycloakOpenidClient_baseUrl(t *testing.T) { realmName := "terraform-" + acctest.RandString(10) clientId := "terraform-" + acctest.RandString(10) baseUrl := "https://www.example.com" resource.Test(t, resource.TestCase{ ProviderFactories: testAccProviderFactories, PreCheck: func() { testAcc...
explode_data.jsonl/52129
{ "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, 14603, 1592, 88751, 5002, 307, 2959, 7651, 2864, 1155, 353, 8840, 836, 8, 341, 17200, 7673, 675, 1669, 330, 61385, 27651, 488, 1613, 67880, 2013, 437, 703, 7, 16, 15, 340, 25291, 764, 1669, 330, 61385, 27651, 488, 1613, 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...
1
func TestNewGoogleAuthenticator_Garbage(t *testing.T) { asserter := assert.New(t) reader := rand.Reader bitSize := 2048 start := time.Now() expires := time.Now().Add(-time.Second) clientId := "testyMcTesterson" keyOne, err := rsa.GenerateKey(reader, bitSize) if err != nil { panic(err) } certFetcher := f...
explode_data.jsonl/7228
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 435 }
[ 2830, 3393, 3564, 14444, 5087, 61393, 2646, 277, 20652, 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, 882, 13244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBigInt(t *testing.T) { tests := []string{ // 16 0xFFFFFFFF 32-bit uintptrs strings.Repeat("FFFFFFFF", 16), // 17 32-bit uintptrs, minimum value which enters loop on 32-bit "01" + strings.Repeat("00000000", 16), // 32 0xFFFFFFFF 32-bit uintptrs, maximum value which enters loop exactly once on 32-bi...
explode_data.jsonl/62541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 511 }
[ 2830, 3393, 87474, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 917, 515, 197, 197, 322, 220, 16, 21, 220, 15, 22620, 220, 18, 17, 15257, 38190, 82, 198, 197, 11355, 819, 2817, 10979, 445, 98843, 497, 220, 16, 21, 18459, 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...
5