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 TestHeadersWireErrors(t *testing.T) { pver := wire.ProtocolVersion wireErr := &wire.MessageError{} hash := mainNetGenesisHash merkleHash := blockOne.Header.MerkleRoot bits := uint32(0x1d00ffff) nonce := uint32(0x9962e301) bh := wire.NewBlockHeader(&hash, &merkleHash, bits, nonce) bh.Version = blockOne.Hea...
explode_data.jsonl/52394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2212 }
[ 2830, 3393, 10574, 37845, 13877, 1155, 353, 8840, 836, 8, 341, 3223, 423, 1669, 9067, 54096, 5637, 198, 6692, 554, 7747, 1669, 609, 35531, 8472, 1454, 31483, 50333, 1669, 1887, 6954, 84652, 6370, 198, 197, 1174, 23089, 6370, 1669, 2504, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScanDefinitionFile(t *testing.T) { tests := []struct { name string defPath string sections string }{ {"Arch", "../testdata_good/arch/arch", "../testdata_good/arch/arch_sections.json"}, {"BusyBox", "../testdata_good/busybox/busybox", "../testdata_good/busybox/busybox_sections.json"}, {"Deboot...
explode_data.jsonl/30714
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 736 }
[ 2830, 3393, 26570, 10398, 1703, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 7452, 1820, 220, 914, 198, 197, 197, 24661, 914, 198, 197, 59403, 197, 197, 4913, 18727, 497, 7005, 92425, 447...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateClusterServiceClass(t *testing.T) { cases := []struct { name string serviceClass *servicecatalog.ClusterServiceClass valid bool }{ { name: "valid serviceClass", serviceClass: validClusterServiceClass(), valid: true, }, { name: "valid serviceClass ...
explode_data.jsonl/48908
{ "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, 17926, 28678, 1860, 1957, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 52934, 1957, 353, 7936, 26539, 72883, 1860, 1957, 198, 197, 56322, 286, 1807, 198, 197, 59403, 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 TestEnvListBasic(t *testing.T) { s := newScaffold(t) defer s.reset() err := s.executeCommand("env", "list") require.NoError(t, err) lines := strings.Split(strings.Trim(s.stdout(), "\n"), "\n") a := assert.New(t) require.Equal(t, 4, len(lines)) a.Equal("dev", lines[0]) a.Equal("local", lines[1]) a.Equal("...
explode_data.jsonl/241
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 14359, 852, 15944, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 50, 27864, 1155, 340, 16867, 274, 13857, 741, 9859, 1669, 274, 7769, 4062, 445, 3160, 497, 330, 1607, 1138, 17957, 35699, 1155, 11, 1848, 340, 78390, 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 TestDetails(t *testing.T) { err1 := errors.New("error 1") err2 := errors.WithDetails(err1, errors.Details{"data": 123}) err3 := errors.HandledWithMessage(err2, "error 2") err := errors.WithDetails(err3, errors.Details{"data": 456, "value": errors.SafeDetail.Value("test")}) Convey("WithDetails/CollectDetails",...
explode_data.jsonl/3551
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 7799, 1155, 353, 8840, 836, 8, 341, 9859, 16, 1669, 5975, 7121, 445, 841, 220, 16, 1138, 9859, 17, 1669, 5975, 26124, 7799, 3964, 16, 11, 5975, 87719, 4913, 691, 788, 220, 16, 17, 18, 3518, 9859, 18, 1669, 5975, 77388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAdapterUpdateIngressLoadBalancer(t *testing.T) { a, _ := NewAdapter(testConfig, IngressAPIVersionNetworking, testIngressFilter, testSecurityGroup, testSSLPolicy, aws.LoadBalancerTypeApplication, DefaultClusterLocalDomain, false) client := &mockClient{} a.kubeClient = client ing := &Ingress{ Namespace: ...
explode_data.jsonl/6732
{ "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, 5940, 4289, 641, 2483, 5879, 93825, 1155, 353, 8840, 836, 8, 341, 11323, 11, 716, 1669, 1532, 5940, 8623, 2648, 11, 758, 2483, 7082, 5637, 78007, 11, 1273, 641, 2483, 5632, 11, 1273, 15352, 2808, 11, 1273, 1220, 12567, 801...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMsgDecode(t *testing.T) { registry := codectypes.NewInterfaceRegistry() cryptocodec.RegisterInterfaces(registry) RegisterInterfaces(registry) cdc := codec.NewProtoCodec(registry) // firstly we start testing the pubkey serialization pk1bz, err := cdc.MarshalInterface(pk1) require.NoError(t, err) var p...
explode_data.jsonl/22794
{ "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, 6611, 32564, 1155, 353, 8840, 836, 8, 341, 197, 29172, 1669, 20329, 439, 1804, 7121, 5051, 15603, 741, 1444, 3571, 43688, 66, 19983, 41066, 18390, 4944, 340, 79096, 41066, 18390, 4944, 340, 1444, 7628, 1669, 34647, 7121, 31549...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_processFiles(t *testing.T) { fakeStdin := strings.NewReader("hey cool how is it going") files, err := processFiles(io.NopCloser(fakeStdin), "", []string{"-"}) if err != nil { t.Fatalf("unexpected error processing files: %s", err) } assert.Equal(t, 1, len(files)) assert.Equal(t, "hey cool how is it go...
explode_data.jsonl/27556
{ "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, 11305, 10809, 1155, 353, 8840, 836, 8, 341, 1166, 726, 22748, 258, 1669, 9069, 68587, 445, 35561, 7010, 1246, 374, 432, 2087, 1138, 74075, 11, 1848, 1669, 1882, 10809, 37258, 2067, 453, 51236, 799, 74138, 22748, 258, 701, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Pagination_PrevNext_1NextLink(t *testing.T) { doc := testutil.CreateHTML() body := dom.QuerySelector(doc, "body") root := testutil.CreateDiv(0) dom.AppendChild(body, root) anchor := testutil.CreateAnchor("next", "next page") dom.AppendChild(root, anchor) assertDefaultDocumenOutlink(t, doc, nil, nil)...
explode_data.jsonl/10820
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 1088, 10353, 1088, 7282, 5847, 62, 16, 5847, 3939, 1155, 353, 8840, 836, 8, 341, 59536, 1669, 1273, 1314, 7251, 5835, 741, 35402, 1669, 4719, 15685, 5877, 19153, 11, 330, 2599, 5130, 33698, 1669, 1273, 1314, 7251, 12509, 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 TestPrintJobList(t *testing.T) { completions := int32(2) jobList := batch.JobList{ Items: []batch.Job{ { ObjectMeta: metav1.ObjectMeta{ Name: "job1", CreationTimestamp: metav1.Time{Time: time.Now().Add(1.9e9)}, }, Spec: batch.JobSpec{ Completions: &completions, T...
explode_data.jsonl/21610
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1059 }
[ 2830, 3393, 8994, 12245, 852, 1155, 353, 8840, 836, 8, 341, 32810, 10819, 908, 1669, 526, 18, 17, 7, 17, 340, 68577, 852, 1669, 7162, 45293, 852, 515, 197, 197, 4353, 25, 3056, 14049, 45293, 515, 298, 197, 515, 571, 23816, 12175, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CurrentVersion_Using_Flag(t *testing.T) { // // #TODO(kishorevaishnav): Don't know how to handle this // args := os.Args // defer func() { os.Args = args }() // os.Args = []string{"", "-version"} // initializeDefaults() }
explode_data.jsonl/22628
{ "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, 40735, 5637, 62, 16429, 98135, 1155, 353, 8840, 836, 8, 341, 197, 322, 442, 671, 14732, 5969, 812, 460, 6586, 812, 3722, 1648, 4320, 944, 1414, 1246, 311, 3705, 419, 198, 197, 322, 2827, 1669, 2643, 51015, 198, 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...
1
func TestCommits_SubRepoPerms(t *testing.T) { t.Parallel() ctx := actor.WithActor(context.Background(), &actor.Actor{ UID: 1, }) gitCommands := []string{ "touch file1", "git add file1", "GIT_COMMITTER_NAME=a GIT_COMMITTER_EMAIL=a@a.com GIT_COMMITTER_DATE=2006-01-02T15:04:05Z git commit -m commit1 --author='...
explode_data.jsonl/8518
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1414 }
[ 2830, 3393, 17977, 1199, 36359, 25243, 3889, 1011, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 12089, 26124, 18870, 5378, 19047, 1507, 609, 5621, 76094, 515, 197, 197, 6463, 25, 220, 16, 345, 197, 3518, 90731, 304...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaoSetLinkMailCount(t *testing.T) { var ( c = context.Background() linkMail = "2459593393@qq.com" ) convey.Convey("SetLinkMailCount", t, func(ctx convey.C) { state, err := d.SetLinkMailCount(c, linkMail) ctx.Convey("Then err should be nil.state should not be nil.", func(ctx convey.C) { ctx...
explode_data.jsonl/61952
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 12197, 1649, 3939, 16702, 2507, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 286, 284, 2266, 19047, 741, 197, 54238, 16702, 284, 330, 17, 19, 20, 24, 20, 24, 18, 18, 24, 18, 61652, 905, 698, 197, 340, 37203, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerInactiveMonitor(t *testing.T) { inactivityDetected := false ctx, cancel := context.WithTimeout(context.Background(), time.Second*8) defer cancel() ld, err := coapNet.NewListenUDP("udp4", "") require.NoError(t, err) defer func() { err := ld.Close() require.NoError(t, err) }() checkClose := ...
explode_data.jsonl/34013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 652 }
[ 2830, 3393, 5475, 72214, 30098, 1155, 353, 8840, 836, 8, 341, 17430, 7175, 17076, 1569, 1669, 895, 271, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 882, 32435, 9, 23, 340, 16867, 9121, 2822, 197, 507, 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...
1
func TestBalancerUnderServerShutdownDelete(t *testing.T) { testBalancerUnderServerShutdownMutable(t, func(cli *clientv3.Client, ctx context.Context) error { _, err := cli.Delete(ctx, "foo") return err }) }
explode_data.jsonl/29448
{ "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, 93825, 16250, 5475, 62004, 6435, 1155, 353, 8840, 836, 8, 341, 18185, 93825, 16250, 5475, 62004, 11217, 1155, 11, 2915, 70249, 353, 2972, 85, 18, 11716, 11, 5635, 2266, 9328, 8, 1465, 341, 197, 197, 6878, 1848, 1669, 21348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListComprehensionMultiLevel(t *testing.T) { gopClTest(t, ` arr := [1, 2, 3, 4.1, 5, 6] x := [[a, b] for a <- arr, a < b for b <- arr, b > 2] println("x:", x) `, `package main import fmt "fmt" func main() { arr := []float64{1, 2, 3, 4.1, 5, 6} x := func() (_gop_ret [][]float64) { for _, b := range arr { ...
explode_data.jsonl/73653
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 852, 1092, 30782, 2645, 20358, 4449, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1118, 1669, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 13, 16, 11, 220, 20, 11, 220, 21, 921, 87, 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 TestRollupBasic(t *testing.T) { defer leaktest.AfterTest(t)() tm := newTestModelRunner(t) tm.Start() defer tm.Stop() series1a := tsd("test.metric", "a") series1b := tsd("test.metric", "b") series2 := tsd("test.othermetric", "a") for i := 0; i < 500; i++ { series1a.Datapoints = append(series1a.Datapoints...
explode_data.jsonl/71876
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 988 }
[ 2830, 3393, 32355, 454, 15944, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 3244, 76, 1669, 501, 2271, 1712, 19486, 1155, 340, 3244, 76, 12101, 741, 16867, 17333, 30213, 2822, 197, 19880, 16, 64, 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 TestPlaceAutocompleteMissingInput(t *testing.T) { c, _ := NewClient(WithAPIKey(apiKey)) r := &PlaceAutocompleteRequest{} _, err := c.PlaceAutocomplete(context.Background(), r) if err == nil { t.Errorf("Error expected: maps: Input missing") } if "maps: Input missing" != err.Error() { t.Errorf("Wrong er...
explode_data.jsonl/76301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 17371, 19602, 20104, 25080, 2505, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 1532, 2959, 7, 2354, 7082, 1592, 24827, 1592, 1171, 7000, 1669, 609, 17371, 19602, 20104, 1900, 31483, 197, 6878, 1848, 1669, 272, 86675, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedeemYobicode(t *testing.T) { t.Parallel() _, err := y.RedeemCoupon("bla2") if err == nil { t.Error("Test Failed - RedeemYobicode() error", err) } }
explode_data.jsonl/79873
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 6033, 68, 336, 56, 674, 13634, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 379, 2013, 15326, 336, 88052, 445, 64726, 17, 1138, 743, 1848, 621, 2092, 341, 197, 3244, 6141, 445, 2271, 21379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvokeNOKInvokesEmptyCCName(t *testing.T) { t.Run("1.2Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithV12Capabilities(t) defer cleanup() testInvokeNOKInvokesEmptyCCName(t, l, v) }) t.Run("1.3Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWit...
explode_data.jsonl/47810
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 17604, 45, 3925, 15174, 7940, 3522, 3706, 675, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 16, 13, 17, 63746, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 8810, 11, 348, 11, 21290, 1669, 6505, 60850, 1389, 3036, 142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClosing(t *testing.T) { ctx := context.Background() lastID.Set(0) count.Set(0) p := NewResourcePool(PoolFactory, 5, 5, time.Second) var resources [10]Resource for i := 0; i < 5; i++ { r, err := p.Get(ctx) if err != nil { t.Errorf("Get failed: %v", err) } resources[i] = r } ch := make(chan bo...
explode_data.jsonl/660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 565 }
[ 2830, 3393, 36294, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 33096, 915, 4202, 7, 15, 340, 18032, 4202, 7, 15, 340, 3223, 1669, 1532, 4783, 10551, 5304, 1749, 4153, 11, 220, 20, 11, 220, 20, 11, 882, 32435, 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 TestTwoDevicePing(t *testing.T) { goroutineLeakCheck(t) pair := genTestPair(t) t.Run("ping 1.0.0.1", func(t *testing.T) { pair.Send(t, Ping, nil) }) t.Run("ping 1.0.0.2", func(t *testing.T) { pair.Send(t, Pong, nil) }) }
explode_data.jsonl/53965
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 11613, 6985, 69883, 1155, 353, 8840, 836, 8, 341, 3174, 269, 14159, 2304, 585, 3973, 1155, 340, 3223, 1310, 1669, 4081, 2271, 12443, 1155, 340, 3244, 16708, 445, 9989, 220, 16, 13, 15, 13, 15, 13, 16, 497, 2915, 1155, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseResourceID(t *testing.T) { testData := []struct { Environment azure.Environment Input string }{ { Environment: azure.ChinaCloud, Input: "https://account1.blob.core.chinacloudapi.cn/container1", }, { Environment: azure.GermanCloud, Input: "https://account1.blob.cor...
explode_data.jsonl/25312
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 14463, 4783, 915, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 3056, 1235, 341, 197, 197, 12723, 76530, 45651, 198, 197, 66588, 981, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 12723, 25, 76530, 6353, 2210, 16055, 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...
5
func TestCreateVmScaleSetsWithCustomTags(t *testing.T) { testTags := map[string]*string{ "orchestrator": to.StringPtr("k8s"), "aksEngineVersion": to.StringPtr("1.15"), "poolName": to.StringPtr("TestPool"), } testVirtualMachineScaleSet := compute.VirtualMachineScaleSet{ Tags: testTags, } testT...
explode_data.jsonl/49328
{ "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, 4021, 88124, 6947, 30175, 2354, 10268, 15930, 1155, 353, 8840, 836, 8, 341, 18185, 15930, 1669, 2415, 14032, 8465, 917, 515, 197, 197, 1, 21584, 15111, 850, 788, 257, 311, 6431, 5348, 445, 74, 23, 82, 4461, 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...
2
func TestSimplifier(t *testing.T) { orig, simpl_5f, simpl_3t := GetTestData() simpl_5f_test := Simplify(orig, 5, false) simpl_3t_test := Simplify(orig, 3, true) if !CompareSlices(simpl_5f_test, simpl_5f) { t.Fatalf(" 5 false | Something went wrong") } if !CompareSlices(simpl_3t_test, simpl_3t) { t.Fatalf("...
explode_data.jsonl/71966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 50, 6383, 3049, 1155, 353, 8840, 836, 8, 341, 197, 4670, 11, 15491, 62, 20, 69, 11, 15491, 62, 18, 83, 1669, 2126, 83920, 2822, 1903, 6383, 62, 20, 69, 4452, 1669, 61242, 1437, 54837, 11, 220, 20, 11, 895, 340, 1903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHttpStatusCodeError(t *testing.T) { cases := []struct { name string err error expectedOutput string }{ { name: "async required error", err: HTTPStatusCodeError{ StatusCode: http.StatusUnprocessableEntity, ErrorMessage: strPtr(AsyncErrorMessage), Description: ...
explode_data.jsonl/53562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 469 }
[ 2830, 3393, 2905, 15872, 1454, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 9859, 310, 1465, 198, 197, 42400, 5097, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 7692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubset_NestedSlice(t *testing.T) { super := map[string]interface{}{ "a": "1", "b": "2", "c": "3", "d": []interface{}{ "11", "22", }, } sub := map[string]interface{}{ "c": "3", "d": []interface{}{ "11", }, } if !testutil.ContainSubset(super, sub) { t.Fatalf("expected map to be subs...
explode_data.jsonl/79704
{ "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, 70584, 1604, 9980, 33236, 1155, 353, 8840, 836, 8, 1476, 12468, 1669, 2415, 14032, 31344, 67066, 197, 197, 56693, 788, 330, 16, 756, 197, 197, 1, 65, 788, 330, 17, 756, 197, 197, 96946, 788, 330, 18, 756, 197, 197, 44917...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetTime(t *testing.T) { // now time now := time.Now() fmt.Println(now) // unix timestamp fmt.Println(now.Unix()) // nano time fmt.Println(now.UnixNano()) // decimal part fmt.Println(now.Nanosecond()) }
explode_data.jsonl/4698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 1949, 1462, 1155, 353, 8840, 836, 8, 341, 197, 322, 1431, 882, 198, 80922, 1669, 882, 13244, 741, 11009, 12419, 32263, 340, 197, 322, 51866, 11441, 198, 11009, 12419, 32263, 10616, 941, 2398, 197, 322, 50493, 882, 198, 11009...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPathEnclosingInterval_Paths(t *testing.T) { // For these tests, we check only the path of the enclosing // node, but not its complete text because it's often quite // large when !exact. tests := []struct { substr string // first occurrence of this string indicates interval path string // the pathToSt...
explode_data.jsonl/40770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 566 }
[ 2830, 3393, 1820, 7408, 17831, 10256, 1088, 26286, 1155, 353, 8840, 836, 8, 341, 197, 322, 1752, 1493, 7032, 11, 582, 1779, 1172, 279, 1815, 315, 279, 84928, 198, 197, 322, 2436, 11, 714, 537, 1181, 4583, 1467, 1576, 432, 594, 3545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGlob(t *testing.T) { sc, c, cleanup := createContexts(t) defer cleanup() root, mts, _, stopper := createNamespace(t, sc) runNestedMountTables(t, sc, mts) defer stopper() ns := v23.GetNamespace(c) ns.SetRoots(root.name) tln := []string{"baz", "mt1", "mt2", "mt3", "mt4", "mt5", "joke1", "joke2", "joke3...
explode_data.jsonl/8228
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 778 }
[ 2830, 3393, 38, 1684, 1155, 353, 8840, 836, 8, 341, 29928, 11, 272, 11, 21290, 1669, 83674, 82, 1155, 340, 16867, 21290, 2822, 33698, 11, 296, 2576, 11, 8358, 2936, 712, 1669, 1855, 22699, 1155, 11, 1136, 340, 56742, 71986, 16284, 216...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateProjectUnknownCommand(t *testing.T) { testInvalidInputHelper("update project sockshop someUnknownCommand --git-user=GIT_USER --git-token=GIT_TOKEN --git-remote-url=GIT_REMOTE_URL", "too many arguments set", t) }
explode_data.jsonl/53460
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 4289, 7849, 13790, 4062, 1155, 353, 8840, 836, 8, 341, 18185, 7928, 2505, 5511, 445, 2386, 2390, 11087, 8675, 1045, 13790, 4062, 1177, 12882, 8694, 28, 90559, 9107, 1177, 12882, 34841, 28, 90559, 18681, 1177, 12882, 12, 18147,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSerialize(t *testing.T) { file, err := os.OpenFile("tmp.txt", os.O_RDWR|os.O_CREATE, 0666) assert.Nil(t, err) err = testTxout.Serialize(file) assert.Nil(t, err) _, err = file.Seek(0, 0) assert.Nil(t, err) txOutRead := &TxOut{} txOutRead.value = 0 txOutRead.scriptPubKey = script.NewEmptyScript() ...
explode_data.jsonl/38864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 15680, 1155, 353, 8840, 836, 8, 341, 17661, 11, 1848, 1669, 2643, 12953, 1703, 445, 5173, 3909, 497, 2643, 8382, 66266, 91, 436, 8382, 25823, 11, 220, 15, 21, 21, 21, 340, 6948, 59678, 1155, 11, 1848, 692, 9859, 284, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsertIntoPath(t *testing.T) { t.Parallel() tests := []struct { givePath string giveAfter string giveInsert string want string }{ { givePath: "", giveAfter: "", giveInsert: "", want: "", }, { givePath: "foo", giveAfter: "fo", giveInsert: "b", want:...
explode_data.jsonl/81335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 550 }
[ 2830, 3393, 13780, 26591, 1820, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 3174, 533, 1820, 256, 914, 198, 197, 3174, 533, 6025, 220, 914, 198, 197, 3174, 533, 13780, 914, 198, 197, 50780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunTask(t *testing.T) { SetupWithMock(t) // valid collect task... should succeed ct := &collectHTTPTask{ TaskMeta: TaskMeta{ Task: StringPointer(CollectHTTPTaskName), }, With: collectHTTPInputs{ Duration: StringPointer("1s"), Headers: map[string]string{}, URL: "https://httpbin.org/g...
explode_data.jsonl/6855
{ "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, 6727, 6262, 1155, 353, 8840, 836, 8, 341, 197, 21821, 2354, 11571, 1155, 692, 197, 322, 2697, 6530, 3383, 1112, 1265, 11996, 198, 89216, 1669, 609, 17384, 2545, 51, 2828, 1073, 515, 197, 81153, 12175, 25, 5430, 12175, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRateLimitRealImgur(t *testing.T) { key := os.Getenv("IMGURCLIENTID") if key == "" { t.Skip("IMGURCLIENTID environment variable not set.") } client := createClient(new(http.Client), key, "") rl, err := client.GetRateLimit() if err != nil { t.Errorf("GetRateLimit() failed with error: %v", err) t.F...
explode_data.jsonl/4809
{ "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, 11564, 16527, 12768, 13033, 324, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 2643, 64883, 445, 30346, 1511, 45271, 915, 1138, 743, 1376, 621, 1591, 341, 197, 3244, 57776, 445, 30346, 1511, 45271, 915, 4573, 3890, 537, 738, 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...
5
func TestDerivePathFromSeedAeAccount(t *testing.T) { type args struct { accountIndex uint32 addressIndex uint32 } tests := []struct { name string seed string args args wantAddress string wantErr bool }{ { name: "Standard Seed, m/44'/457'/0'/0'/0'", seed: "60812c7c93d6f...
explode_data.jsonl/25832
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 738 }
[ 2830, 3393, 22171, 533, 1820, 3830, 41471, 32, 68, 7365, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 86866, 1552, 2622, 18, 17, 198, 197, 63202, 1552, 2622, 18, 17, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 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...
6
func TestProjectResourceHandler_UpdateProjectResource(t *testing.T) { type fields struct { ProjectResourceManager *handler_mock.IResourceManagerMock } tests := []struct { name string fields fields request *http.Request wantParams *models.UpdateResourceParams wantStatus int }{ { name: "...
explode_data.jsonl/7381
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1461 }
[ 2830, 3393, 7849, 4783, 3050, 47393, 7849, 4783, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 7849, 32498, 353, 17905, 34134, 2447, 32498, 11571, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 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 TestCloseLeavesGroup(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() topic := makeTopic() createTopic(t, topic, 1) groupID := makeGroupID() r := NewReader(ReaderConfig{ Brokers: []string{"localhost:9092"}, Topic: topic, GroupID...
explode_data.jsonl/80368
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 679 }
[ 2830, 3393, 7925, 2304, 4693, 2808, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 220, 18, 15, 77053, 32435, 340, 16867, 9121, 741, 3244, 24810, 1669, 1281, 26406, 741, 39263, 26406, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAPIDeleteGitHook(t *testing.T) { defer prepareTestEnv(t)() repo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: 37}).(*models.Repository) owner := models.AssertExistsAndLoadBean(t, &models.User{ID: repo.OwnerID}).(*models.User) // user1 is an admin user session := loginUser(t, "user1") toke...
explode_data.jsonl/32986
{ "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, 2537, 915, 68, 1617, 46562, 31679, 1155, 353, 8840, 836, 8, 341, 16867, 10549, 2271, 14359, 1155, 8, 2822, 17200, 5368, 1669, 4119, 11711, 15575, 3036, 5879, 10437, 1155, 11, 609, 6507, 25170, 90, 915, 25, 220, 18, 22, 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 TestColumnPageIndex(t *testing.T) { for _, config := range [...]struct { name string test func(*testing.T, rows) bool }{ { name: "buffer", test: testColumnPageIndexWithBuffer, }, { name: "file", test: testColumnPageIndexWithFile, }, } { t.Run(config.name, func(t *testing.T) { for _,...
explode_data.jsonl/5821
{ "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, 2933, 92938, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2193, 1669, 2088, 48179, 1235, 341, 197, 11609, 914, 198, 197, 18185, 2915, 4071, 8840, 836, 11, 6978, 8, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransactionFetcherBroadcasts(t *testing.T) { testTransactionFetcherParallel(t, txFetcherTest{ init: func() *TxFetcher { return NewTxFetcher( func(common.Hash) bool { return false }, func(txs []*types.Transaction) []error { return make([]error, len(txs)) }, func(string, []common.Hash)...
explode_data.jsonl/52217
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 698 }
[ 2830, 3393, 8070, 97492, 43362, 82, 1155, 353, 8840, 836, 8, 341, 18185, 8070, 97492, 16547, 1155, 11, 259, 9770, 2995, 261, 2271, 515, 197, 28248, 25, 2915, 368, 353, 51, 9770, 2995, 261, 341, 298, 853, 1532, 51, 9770, 2995, 261, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyErrorListAsErrorIsNil(t *testing.T) { errs := errors.L() err := errs.AsError() if err != nil { t.Fatalf("got error %v but want nil", err) } }
explode_data.jsonl/82009
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 3522, 1454, 852, 2121, 1454, 3872, 19064, 1155, 353, 8840, 836, 8, 341, 9859, 82, 1669, 5975, 1214, 741, 9859, 1669, 70817, 20242, 1454, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 22390, 1465, 1018, 85, 714, 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 ]
2
func TestNofollowLink(t *testing.T) { var tests = []string{ "[foo](http://bar.com/foo/)\n", "<p><a href=\"http://bar.com/foo/\" rel=\"nofollow\">foo</a></p>\n", "[foo](/bar/)\n", "<p><a href=\"/bar/\">foo</a></p>\n", } doTestsInlineParam(t, tests, 0, HTML_SAFELINK|HTML_NOFOLLOW_LINKS, HtmlRendererParamete...
explode_data.jsonl/57354
{ "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, 45, 1055, 1544, 3939, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 917, 515, 197, 197, 36864, 7975, 9533, 1254, 1110, 2257, 905, 60555, 14, 10699, 77, 756, 197, 197, 22476, 79, 1784, 64, 1801, 4070, 1254, 1110, 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 TestMakeFileConfig(t *testing.T) { var testFileName = "test.json" type testingFileConfig struct { Locale string `json:"locale"` TranslationPath string `json:"translation_path"` DefaultContext string `json:"default_context"` } var newTestingFile = testingFileConfig{ Locale: "en", T...
explode_data.jsonl/81779
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 8078, 1703, 2648, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 10903, 284, 330, 1944, 4323, 698, 13158, 7497, 1703, 2648, 2036, 341, 197, 197, 19231, 688, 914, 1565, 2236, 2974, 14484, 8805, 197, 197, 24412, 1820, 914, 1565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangefeedColumnFamily(t *testing.T) { defer leaktest.AfterTest(t)() testFn := func(t *testing.T, db *gosql.DB, f cdctest.TestFeedFactory) { sqlDB := sqlutils.MakeSQLRunner(db) // Table with 2 column families. sqlDB.Exec(t, `CREATE TABLE foo (a INT PRIMARY KEY, b STRING, FAMILY (a), FAMILY (b))`) i...
explode_data.jsonl/7044
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 518 }
[ 2830, 3393, 1143, 524, 823, 12051, 2933, 15192, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 18185, 24911, 1669, 2915, 1155, 353, 8840, 836, 11, 2927, 353, 34073, 1470, 22537, 11, 282, 15307, 67880, 8787...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateTarStreamIncludeParentDir(t *testing.T) { tempDir, err := ioutil.TempDir("", "testtar") defer os.RemoveAll(tempDir) if err != nil { t.Fatalf("Cannot create temp directory for test: %v", err) } modificationDate := time.Date(2011, time.March, 5, 23, 30, 1, 0, time.UTC) testDirs := []dirDesc{ {"di...
explode_data.jsonl/40323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 620 }
[ 2830, 3393, 4021, 62733, 3027, 22283, 8387, 6184, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 1944, 26737, 1138, 16867, 2643, 84427, 9758, 6184, 340, 743, 1848, 961, 2092, 341, 197, 3244, 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...
7
func TestSlaveStorage_getSlaveIds(t *testing.T) { assert := assert.New(t) slaveStorage := newSlaveStorage() assert.Equal(0, len(slaveStorage.slaves)) slaveId := "1" slaveHostname := "hn1" slaveStorage.checkAndAdd(slaveId, slaveHostname) assert.Equal(1, len(slaveStorage.getSlaveIds())) slaveId = "2" slaveHos...
explode_data.jsonl/63771
{ "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, 95960, 5793, 3062, 95960, 12701, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 78626, 523, 5793, 1669, 501, 95960, 5793, 741, 6948, 12808, 7, 15, 11, 2422, 55691, 523, 5793, 25101, 4693, 4390, 78626, 523, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplicationContext_AutoWireBeans(t *testing.T) { t.Run("wired error", func(t *testing.T) { c := gs.New() obj := &TestObject{} c.Object(obj) i := int(3) c.Object(&i).Name("int_ptr") i2 := int(3) c.Object(&i2).Name("int_ptr_2") err := c.Refresh() assert.Error(t, err, "\"TestObject.IntPtrB...
explode_data.jsonl/17396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 429 }
[ 2830, 3393, 19736, 1566, 1535, 37845, 81558, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 86, 2690, 1465, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 1669, 28081, 7121, 2822, 197, 22671, 1669, 609, 2271, 1190, 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...
1
func TestNewPeerHandlerOnRaftPrefix(t *testing.T) { ph := newPeerHandler(zap.NewExample(), &fakeServer{cluster: &fakeCluster{}}, fakeRaftHandler, nil) srv := httptest.NewServer(ph) defer srv.Close() tests := []string{ rafthttp.RaftPrefix, rafthttp.RaftPrefix + "/hello", } for i, tt := range tests { resp, e...
explode_data.jsonl/74234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 3564, 30888, 3050, 1925, 55535, 723, 14335, 1155, 353, 8840, 836, 8, 341, 197, 759, 1669, 501, 30888, 3050, 13174, 391, 7121, 13314, 1507, 609, 30570, 5475, 90, 18855, 25, 609, 30570, 28678, 6257, 2137, 12418, 55535, 723, 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...
5
func TestStepIntoFunction(t *testing.T) { withTestProcess("teststep", t, func(p *proc.Target, fixture protest.Fixture) { // Continue until breakpoint assertNoError(p.Continue(), t, "Continue() returned an error") // Step into function assertNoError(p.Step(), t, "Step() returned an error") // We should now be...
explode_data.jsonl/56244
{ "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, 8304, 26591, 5152, 1155, 353, 8840, 836, 8, 341, 46948, 2271, 7423, 445, 1944, 9520, 497, 259, 11, 2915, 1295, 353, 15782, 35016, 11, 12507, 8665, 991, 12735, 8, 341, 197, 197, 322, 15003, 3080, 52745, 198, 197, 6948, 2753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAutoFilterError(t *testing.T) { outFile := filepath.Join("test", "TestAutoFilterError%d.xlsx") f, err := prepareTestBook1() if !assert.NoError(t, err) { t.FailNow() } formats := []string{ `{"column":"B","expression":"x <= 1 and x >= blanks"}`, `{"column":"B","expression":"x -- y or x == *2*"}`, ...
explode_data.jsonl/36986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 13253, 5632, 1454, 1155, 353, 8840, 836, 8, 341, 13967, 1703, 1669, 26054, 22363, 445, 1944, 497, 330, 2271, 13253, 5632, 1454, 14841, 46838, 5130, 1166, 11, 1848, 1669, 10549, 2271, 7134, 16, 741, 743, 753, 2207, 35699, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScriptMatch(t *testing.T) { client := &livekit.ClientInfo{ Protocol: 6, Browser: "chrome", Sdk: 3, // android DeviceModel: "12345", } type testcase struct { name string expr string result bool err bool } cases := []testcase{ {name: "simple match", expr: `c.protoco...
explode_data.jsonl/35110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 5910, 8331, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 609, 24822, 8226, 11716, 1731, 515, 197, 197, 20689, 25, 262, 220, 21, 345, 197, 12791, 4012, 25, 257, 330, 31902, 756, 197, 7568, 7584, 25, 260, 220, 18, 11, 442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_TransactionComplete(t *testing.T) { mct := newMemcacheTest(defaultConfig) trans := mct.genTransaction( textParseNoFail(t, "set k 0 0 5\r\nvalue\r\n"), textParseNoFail(t, "STORED\r\n"), ) assert.Equal(t, common.OK_STATUS, trans.Status) assert.Equal(t, uint64(20), trans.BytesOut) assert.Equal(t, uint6...
explode_data.jsonl/15059
{ "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, 34932, 1311, 12548, 1155, 353, 8840, 836, 8, 341, 2109, 302, 1669, 501, 18816, 9360, 2271, 18978, 2648, 340, 72453, 1669, 296, 302, 22822, 8070, 1006, 197, 15425, 14463, 2753, 19524, 1155, 11, 330, 746, 595, 220, 15, 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
func TestLibrato_ClientError(t *testing.T) { handler := &GrumpyHandler{ResponseCodes: []int{401}} server := httptest.NewServer(handler) defer server.Close() config := GetConfig() config.LibratoUrl, _ = url.Parse(server.URL) config.LibratoUser = "user" config.LibratoToken = "token" measurements := make(chan Me...
explode_data.jsonl/51437
{ "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, 9194, 81, 4330, 46102, 1454, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 609, 6464, 6752, 3050, 90, 2582, 20871, 25, 3056, 396, 90, 19, 15, 16, 11248, 41057, 1669, 54320, 70334, 7121, 5475, 36514, 340, 16867, 3538, 10421, 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 TestValidatorsQuery(t *testing.T) { cleanup, valPubKeys, operAddrs, port := InitializeTestLCD(t, 1, []sdk.AccAddress{}, true) defer cleanup() require.Equal(t, 1, len(valPubKeys)) require.Equal(t, 1, len(operAddrs)) validators := getValidators(t, port) require.Equal(t, 1, len(validators), fmt.Sprintf("%+v",...
explode_data.jsonl/25408
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 31748, 2859, 1155, 353, 8840, 836, 8, 341, 1444, 60639, 11, 1044, 29162, 8850, 11, 1997, 2212, 5428, 11, 2635, 1669, 9008, 2271, 64003, 1155, 11, 220, 16, 11, 3056, 51295, 77538, 4286, 22655, 830, 340, 16867, 21290, 2822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_PostConfig_Anonymous(t *testing.T) { setup(t) defer cleanup(t) for _, c := range allClients { w := request(t, "POST", c.Endpoint, nil) assert.Equal(t, http.StatusUnauthorized, w.Code) } }
explode_data.jsonl/37309
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 66726, 2648, 1566, 6280, 89392, 1155, 353, 8840, 836, 8, 341, 84571, 1155, 340, 16867, 21290, 1155, 692, 2023, 8358, 272, 1669, 2088, 678, 47174, 341, 197, 6692, 1669, 1681, 1155, 11, 330, 2946, 497, 272, 90409, 11, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPipeline_Secret_ParseRepo_failure(t *testing.T) { // setup tests tests := []struct { secret *Secret org string repo string want error }{ { // failure with bad org secret: &Secret{ Name: "foo", Value: "bar", Key: "octocat/helloworld/foo", Engine: "native", Type: ...
explode_data.jsonl/51852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 581 }
[ 2830, 3393, 34656, 1098, 50856, 77337, 25243, 43618, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 7032, 198, 78216, 1669, 3056, 1235, 341, 197, 197, 20474, 353, 19773, 198, 197, 87625, 262, 914, 198, 197, 17200, 5368, 256, 914, 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...
3
func TestMsgAddLiquidity(t *testing.T) { tests := []struct { name string msg MsgAddLiquidity expectPass bool }{ {"no deposit coin", NewMsgAddLiquidity(sdk.Coin{}, amt, sdk.OneInt(), deadline, sender), false}, {"zero deposit coin", NewMsgAddLiquidity(sdk.NewCoin(denom1, sdk.ZeroInt()), amt, sdk....
explode_data.jsonl/70504
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 6611, 2212, 43, 5011, 18518, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 21169, 286, 24205, 2212, 43, 5011, 18518, 198, 197, 24952, 12187, 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 TestValidation(t *testing.T) { Convey("Validation", t, func() { Convey("ValidateRequired()", func() { So(ValidateRequired("foo"), ShouldEqual, true) So(ValidateRequired(""), ShouldEqual, false) So(ValidateRequired(0), ShouldEqual, false) So(ValidateRequired(1), ShouldEqual, true) }) Convey("Val...
explode_data.jsonl/67576
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 13799, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 13799, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 17926, 8164, 50514, 2915, 368, 341, 298, 76912, 7, 17926, 8164, 445, 7975, 3975, 12260, 2993, 11, 830, 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 TestBOM(t *testing.T) { // A byte order mark should not be parsed as an identifier kind, _ := lexToken("\uFEFF.") test.AssertEqual(t, kind, TDelimDot) }
explode_data.jsonl/47978
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 33, 1898, 1155, 353, 8840, 836, 8, 341, 197, 322, 362, 4922, 1973, 1868, 1265, 537, 387, 15676, 438, 458, 12816, 198, 197, 15314, 11, 716, 1669, 22429, 3323, 4921, 84, 11419, 1748, 13053, 18185, 11711, 2993, 1155, 11, 3093...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseGrossAmountRemittanceReaderParseError(t *testing.T) { var line = "{8500}USD1234.56Z*" r := NewReader(strings.NewReader(line)) r.line = line err := r.parseGrossAmountRemittanceDocument() expected := r.parseError(fieldError("Amount", ErrNonAmount, "1234.56Z")).Error() require.EqualError(t, err, expe...
explode_data.jsonl/41409
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 14463, 38, 2128, 10093, 6590, 87191, 5062, 14463, 1454, 1155, 353, 8840, 836, 8, 341, 2405, 1555, 284, 13868, 23, 20, 15, 15, 92, 26749, 16, 17, 18, 19, 13, 20, 21, 57, 9, 698, 7000, 1669, 1532, 5062, 51442, 68587, 879...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTomlNoProviders(t *testing.T) { assert := assert.New(t) settings := testutil.Settings().With(&print.Settings{ ShowHeader: true, ShowInputs: true, ShowOutputs: true, ShowProviders: false, ShowRequirements: true, }).Build() expected, err := testutil.GetExpected("toml", "toml-No...
explode_data.jsonl/36764
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 24732, 75, 2753, 37351, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 62930, 1669, 1273, 1314, 27000, 1005, 2354, 2099, 1350, 27000, 515, 197, 197, 7812, 4047, 25, 981, 830, 345, 197, 197, 7812, 31946, 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 TestNewClass(t *testing.T) { got := NewClass(1010, "1010", "Name", "Class", "Teacher", "Time") if err := got.Valid(); err != nil { t.Error(err) } }
explode_data.jsonl/14390
{ "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, 3564, 1957, 1155, 353, 8840, 836, 8, 341, 3174, 354, 1669, 1532, 1957, 7, 16, 15, 16, 15, 11, 330, 16, 15, 16, 15, 497, 330, 675, 497, 330, 1957, 497, 330, 45065, 497, 330, 1462, 1138, 743, 1848, 1669, 2684, 47156, 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 ]
2
func TestRemittanceOriginatorIdentificationNumberInvalid(t *testing.T) { ro := mockRemittanceOriginator() ro.IdentificationCode = PICDateBirthPlace ro.IdentificationNumber = "zz" err := ro.Validate() require.EqualError(t, err, fieldError("IdentificationNumber", ErrInvalidProperty, ro.IdentificationNumber).Error(...
explode_data.jsonl/32947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 6590, 87191, 13298, 850, 95212, 2833, 7928, 1155, 353, 8840, 836, 8, 341, 197, 299, 1669, 7860, 6590, 87191, 13298, 850, 741, 197, 299, 6444, 306, 2404, 2078, 284, 60606, 1916, 31478, 17371, 198, 197, 299, 6444, 306, 2404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEvalWriteMapOutput(t *testing.T) { ctx := new(MockEvalContext) ctx.StateState = NewState() ctx.StateLock = new(sync.RWMutex) cases := []struct { name string cfg *ResourceConfig err bool }{ { // Eval should recognize a single map in a slice, and collapse it // into the map value "single...
explode_data.jsonl/8390
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 472 }
[ 2830, 3393, 54469, 7985, 2227, 5097, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 501, 66436, 54469, 1972, 340, 20985, 18942, 1397, 284, 1532, 1397, 741, 20985, 18942, 11989, 284, 501, 97233, 2013, 15210, 9371, 692, 1444, 2264, 1669, 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...
3
func TestCloudEventInit(t *testing.T) { s := &CloudEvent{} expectedError := fmt.Errorf(cloudEventErrMsg, "Missing cloudevent url") var Tests = []struct { cloudevent config.CloudEvent err error }{ {config.CloudEvent{Url: "foo"}, nil}, {config.CloudEvent{}, expectedError}, } for _, tt := range Test...
explode_data.jsonl/39363
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 16055, 1556, 3803, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 16055, 1556, 16094, 42400, 1454, 1669, 8879, 13080, 9849, 2950, 1556, 75449, 11, 330, 25080, 1185, 283, 450, 684, 2515, 5130, 2405, 20150, 284, 3056, 1235, 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...
3
func TestStatsLogsAverageAndTotal(t *testing.T) { state := makeState() state.logResponse("A", 5) state.logResponse("A", 11) aStats := state.getStats("A") assertStats(t, aStats, float64(8), 2) }
explode_data.jsonl/67661
{ "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, 16635, 51053, 26292, 3036, 7595, 1155, 353, 8840, 836, 8, 341, 24291, 1669, 1281, 1397, 741, 24291, 1665, 2582, 445, 32, 497, 220, 20, 340, 24291, 1665, 2582, 445, 32, 497, 220, 16, 16, 692, 11323, 16635, 1669, 1584, 670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewIDFromBase58(t *testing.T) { id := gen.ID() idStr := "1" + base58.Encode(id.Bytes()) id2, err := insolar.NewIDFromBase58(idStr) require.NoError(t, err) assert.Equal(t, id, *id2) }
explode_data.jsonl/42742
{ "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, 3564, 915, 3830, 3978, 20, 23, 1155, 353, 8840, 836, 8, 341, 15710, 1669, 4081, 9910, 741, 15710, 2580, 1669, 330, 16, 1, 488, 2331, 20, 23, 50217, 3724, 36868, 2398, 15710, 17, 11, 1848, 1669, 1640, 7417, 7121, 915, 383...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTx_CreateBucket_ErrBucketExists(t *testing.T) { db := MustOpenDB() defer db.MustClose() // Create a bucket. if err := db.Update(func(tx *bolt.Tx) error { if _, err := tx.CreateBucket([]byte("widgets")); err != nil { t.Fatal(err) } return nil }); err != nil { t.Fatal(err) } // Create the sam...
explode_data.jsonl/1692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 31584, 34325, 36018, 93623, 36018, 15575, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 2822, 197, 322, 4230, 264, 15621, 624, 743, 1848, 1669, 2927, 16689, 18552, 27301, 353, 524...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVMCBuildImage(t *testing.T) { testForSkip(t) var ctxt = context.Background() //get the tarball for codechain tarRdr, err := getCodeChainBytesInMem() if err != nil { t.Fail() t.Logf("Error reading tar file: %s", err) return } c := make(chan struct{}) //creat a CreateImageReq obj and send it to ...
explode_data.jsonl/74639
{ "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, 11187, 34, 11066, 1906, 1155, 353, 8840, 836, 8, 341, 18185, 2461, 35134, 1155, 340, 2405, 59162, 284, 2266, 19047, 2822, 197, 322, 455, 279, 12183, 3959, 369, 2038, 8819, 198, 3244, 277, 49, 3612, 11, 1848, 1669, 82873, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponse_GetFrameworksVerboseEqual(t *testing.T) { popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) p := NewPopulatedResponse_GetFrameworks(popr, false) data, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { panic(err) } msg := &Response_GetFrameworks{} if err := githu...
explode_data.jsonl/42024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 2582, 13614, 89615, 63404, 2993, 1155, 353, 8840, 836, 8, 341, 3223, 46288, 1669, 6888, 33864, 7121, 37270, 33864, 7121, 3608, 9730, 13244, 1005, 55832, 83819, 12145, 3223, 1669, 1532, 11598, 7757, 2582, 13614, 89615, 40148, 81,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewInt32(t *testing.T) { testCases := []struct { name string input []int32 expect []int32 }{ { name: "test Int32 New, s nothing", input: nil, expect: nil, }, { name: "test Int32 New, inputs multiple elements", input: []int32{1, 2, 3}, expect: []int32{1, 2, 3}, }, } ...
explode_data.jsonl/62317
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 3564, 1072, 18, 17, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 22427, 220, 3056, 396, 18, 17, 198, 197, 24952, 3056, 396, 18, 17, 198, 197, 59403, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleObjProvider(t *testing.T) { desc := "obj_desc" simple := Simple{Name: "simple", Desc: &desc, Age: 240, Flag: true, Add: []int{12, 34, 45}} simpleObj, simpleErr := GetObject(simple) if simpleErr != nil { t.Errorf("GetObject failed, err:%s", simpleErr.Error()) return } data, dataErr := EncodeOb...
explode_data.jsonl/3459
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 531 }
[ 2830, 3393, 16374, 5261, 5179, 1155, 353, 8840, 836, 8, 341, 41653, 1669, 330, 2295, 10986, 698, 1903, 6456, 1669, 8993, 63121, 25, 330, 22944, 497, 31185, 25, 609, 8614, 11, 13081, 25, 220, 17, 19, 15, 11, 22666, 25, 830, 11, 2691,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGlobs(t *testing.T) { dir := fs.NewDir(t, "fixtures", fs.WithFile("some.foo.js", "foo", fs.WithMode(0755)), fs.WithFile("some.other.bar.js", "bar", fs.WithMode(0755))) defer dir.Remove() type args struct { patterns []string } tests := []struct { name string args args want []string }{ { ...
explode_data.jsonl/72030
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 38, 68164, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 8619, 7121, 6184, 1155, 11, 330, 45247, 756, 197, 53584, 26124, 1703, 445, 14689, 58432, 2857, 497, 330, 7975, 497, 8619, 26124, 3636, 7, 15, 22, 20, 20, 6965, 197, 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...
2
func TestAnonymousSameStructDifferentTags(t *testing.T) { validate := New() validate.RegisterTagNameFunc(func(fld reflect.StructField) string { name := strings.SplitN(fld.Tag.Get("json"), ",", 2)[0] if name == "-" { return "" } return name }) type Test struct { A interface{} } tst := &Test{ A:...
explode_data.jsonl/77218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 318 }
[ 2830, 3393, 32684, 19198, 9422, 69123, 15930, 1155, 353, 8840, 836, 8, 1476, 197, 7067, 1669, 1532, 741, 197, 7067, 19983, 22616, 9626, 18552, 955, 507, 8708, 51445, 1877, 8, 914, 341, 197, 11609, 1669, 9069, 19823, 45, 955, 507, 23676,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateBootstrap(t *testing.T) { for _, tc := range []struct { burl string h header wantError bool }{ {"", nil, true}, {"619867110810.dkr.ecr.us-west-2.amazonaws.com/reflowbootstrap:reflowbootstrap", nil, true}, {"http://path_to_bootstrap", nil, true}, {"https://path_to_bootstrap"...
explode_data.jsonl/42285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 17926, 45511, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 2233, 1085, 414, 914, 198, 197, 9598, 260, 4247, 198, 197, 50780, 1454, 1807, 198, 197, 59403, 197, 197, 4913, 497, 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 TestSyncPodWithPullPolicy(t *testing.T) { dm, fakeDocker := newTestDockerManagerWithRealImageManager() puller := dm.dockerPuller.(*FakeDockerPuller) puller.HasImages = []string{"foo/existing_one:v1", "foo/want:latest"} dm.podInfraContainerImage = "foo/infra_image:v1" pod := makePod("foo", &api.PodSpec{ Con...
explode_data.jsonl/31182
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 712 }
[ 2830, 3393, 12154, 23527, 2354, 36068, 13825, 1155, 353, 8840, 836, 8, 341, 2698, 76, 11, 12418, 35, 13659, 1669, 501, 2271, 35, 13659, 2043, 2354, 12768, 1906, 2043, 741, 3223, 617, 261, 1669, 28676, 91131, 36068, 261, 41399, 52317, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWalkNotFoundMaskError(t *testing.T) { // this doesn't work for WalkR newListDirs(t, nil, true, listResults{ "": {err: fs.ErrorDirNotFound}, }, errorMap{ "": nil, }, nil, ).Walk() }
explode_data.jsonl/72551
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 48849, 10372, 12686, 1454, 1155, 353, 8840, 836, 8, 341, 197, 322, 419, 3171, 944, 975, 369, 12554, 49, 198, 8638, 852, 97384, 1155, 11, 2092, 11, 830, 345, 197, 14440, 9801, 515, 298, 197, 28796, 314, 615, 25, 8619, 614...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDownloadOverrideObjectWeb(t *testing.T) { var ( proxyURL = tutils.RandomProxyURL(t) baseParams = tutils.BaseAPIParams(proxyURL) bck = cmn.Bck{ Name: cos.RandString(10), Provider: cmn.ProviderAIS, } p = cmn.DefaultBckProps(bck) objName = cos.RandString(10) link = "https://r...
explode_data.jsonl/70391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 518 }
[ 2830, 3393, 11377, 2177, 1190, 5981, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 22803, 3144, 256, 284, 259, 6031, 26709, 16219, 3144, 1155, 340, 197, 24195, 4870, 284, 259, 6031, 13018, 7082, 4870, 65787, 3144, 340, 197, 2233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalEmptyStringSet(t *testing.T) { input := []byte(`{ "SS": [ ] }`) var av DynamoDBAttributeValue err := json.Unmarshal(input, &av) assert.Nil(t, err) assert.Equal(t, DataTypeStringSet, av.DataType()) assert.Equal(t, 0, len(av.StringSet())) }
explode_data.jsonl/61706
{ "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, 1806, 27121, 3522, 703, 1649, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 3782, 5809, 90, 330, 1220, 788, 508, 2279, 335, 63, 692, 2405, 1822, 71813, 3506, 78554, 198, 9859, 1669, 2951, 38097, 5384, 11, 609, 402, 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, 1...
1
func TestFetchesUncachedServiceAccount(t *testing.T) { ns := "myns" // Build a test client that the admission plugin can use to look up the service account missing from its cache client := fake.NewSimpleClientset(&corev1.ServiceAccount{ ObjectMeta: metav1.ObjectMeta{ Name: DefaultServiceAccountName, Na...
explode_data.jsonl/61345
{ "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, 20714, 288, 63718, 3854, 1860, 7365, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 330, 76, 1872, 82, 1837, 197, 322, 7854, 264, 1273, 2943, 429, 279, 25293, 9006, 646, 990, 311, 1401, 705, 279, 2473, 2692, 7402, 504, 1181, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_isTwoPair(t *testing.T) { type args struct { hand deck.Hand } tests := []struct { name string args args want string want1 bool }{ { name: "Should be a 2 pairs", args: args{deck.Hand{ deck.Card{Value: 8}, deck.Card{Value: 8}, deck.Card{Value: 7}, deck.Card{Value: 7}, ...
explode_data.jsonl/7191
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 682 }
[ 2830, 3393, 6892, 11613, 12443, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 9598, 437, 9530, 35308, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 31215, 220, 2827, 198, 197, 50780, 220, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRename(t *testing.T) { srcFileName, dstFileName := dirRoot+"/src-file.txt", dirRoot+"/dst-file.txt" err := AppendToFile(srcFileName, []byte("filesystem")) if err != nil { panic(err) } t.Cleanup(func() { _ = RemoveWithRecur(dirRoot) }) if !Exists(srcFileName) { t.Error("Rename test failed!") } ...
explode_data.jsonl/34182
{ "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, 88757, 1155, 353, 8840, 836, 8, 341, 41144, 10903, 11, 10648, 10903, 1669, 5419, 8439, 27569, 3548, 14203, 3909, 497, 5419, 8439, 27569, 15658, 14203, 3909, 1837, 9859, 1669, 29807, 41550, 14705, 10903, 11, 3056, 3782, 445, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatchRegexp_OutputsOnlyLinesMatchingRegexp(t *testing.T) { t.Parallel() input := "This is the first line in the file.\nHello, world.\nThis is another line in the file.\n" tcs := []struct { regex, want string }{ { regex: `Hello|file`, want: "This is the first line in the file.\nHello, world.\nThi...
explode_data.jsonl/51495
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 8331, 3477, 4580, 36675, 16920, 7308, 16794, 64430, 3477, 4580, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 22427, 1669, 330, 1986, 374, 279, 1156, 1555, 304, 279, 1034, 7110, 77, 9707, 11, 1879, 7110, 77, 1986, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBroadcastTxCommit(t *testing.T) { require := require.New(t) mempool := node.MempoolReactor().Mempool for i, c := range GetClients() { _, _, tx := MakeTxKV() bres, err := c.BroadcastTxCommit(tx) require.Nil(err, "%d: %+v", i, err) require.True(bres.CheckTx.IsOK()) require.True(bres.DeliverTx.IsOK(...
explode_data.jsonl/48949
{ "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, 43362, 31584, 33441, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 2109, 3262, 1749, 1669, 2436, 1321, 3262, 1749, 693, 5621, 1005, 44, 3262, 1749, 198, 2023, 600, 11, 272, 1669, 2088, 2126, 47174, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTreeLookupSimple(t *testing.T) { router := New() for _, v := range testTable { v := v router.AddRoute("GET", v[0], func(w http.ResponseWriter, r *http.Request, vp Parameter) { for i := 1; i < len(v); i++ { if r.URL.Path == v[i] { return } } t.Errorf("GOT %s EXPECTED %s\n", r.URL.Pa...
explode_data.jsonl/45454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 316 }
[ 2830, 3393, 6533, 34247, 16374, 1155, 353, 8840, 836, 8, 341, 67009, 1669, 1532, 2822, 2023, 8358, 348, 1669, 2088, 1273, 2556, 341, 197, 5195, 1669, 348, 198, 197, 67009, 1904, 4899, 445, 3806, 497, 348, 58, 15, 1125, 2915, 3622, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCrossStructGteFieldValidation(t *testing.T) { type Inner struct { CreatedAt *time.Time String string Int int Uint uint Float float64 Array []string } type Test struct { Inner *Inner CreatedAt *time.Time `validate:"gtecsfield=Inner.CreatedAt"` String string ...
explode_data.jsonl/77227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1366 }
[ 2830, 3393, 28501, 9422, 38, 665, 1877, 13799, 1155, 353, 8840, 836, 8, 1476, 13158, 36356, 2036, 341, 197, 84062, 1655, 353, 1678, 16299, 198, 197, 4980, 262, 914, 198, 197, 57152, 981, 526, 198, 197, 15980, 396, 414, 2622, 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...
1
func TestStacktraceLocationThrowFromGo(t *testing.T) { vm := New() f := func() { panic(vm.ToValue("Test")) } vm.Set("f", f) _, err := vm.RunString(` function main() { (function noop() {})(); return callee(); } function callee() { return f(); } main(); `) if err == nil { t.Fatal("Expected error") ...
explode_data.jsonl/10529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 4336, 15067, 4707, 23079, 3830, 10850, 1155, 353, 8840, 836, 8, 341, 54879, 1669, 1532, 741, 1166, 1669, 2915, 368, 341, 197, 30764, 31723, 3274, 1130, 445, 2271, 5455, 197, 532, 54879, 4202, 445, 69, 497, 282, 340, 197, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProject_ListProjWbOverviewData(t *testing.T) { tests := []struct { name string desc string wantErr bool dopErr bool mspErr bool }{ { name: "dop_issue_query_error", wantErr: false, dopErr: true, mspErr: false, }, { name: "dop_msp_query_error", wantErr: false, ...
explode_data.jsonl/54731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 717 }
[ 2830, 3393, 7849, 27104, 61075, 54, 65, 41044, 1043, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 41653, 262, 914, 198, 197, 50780, 7747, 1807, 198, 197, 2698, 453, 7747, 220, 1807, 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 TestFormatterColorHexError(test *testing.T) { formatted, err := formatter.Format(`{color "0xFFF3AC67"}funky{normal}`) assert.Error(test, err) assert.Empty(test, formatted) }
explode_data.jsonl/39794
{ "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, 14183, 1636, 20335, 1454, 8623, 353, 8840, 836, 8, 341, 37410, 12127, 11, 1848, 1669, 24814, 9978, 5809, 90, 3423, 330, 15, 69420, 18, 1706, 21, 22, 9207, 69, 69205, 90, 8252, 5541, 692, 6948, 6141, 8623, 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
func TestClusterListenAddressForMultiReplica(t *testing.T) { a := monitoringv1.Alertmanager{} replicas := int32(3) a.Spec.Version = operator.DefaultAlertmanagerVersion a.Spec.Replicas = &replicas statefulSet, err := makeStatefulSetSpec(&a, defaultTestConfig) if err != nil { t.Fatal(err) } amArgs := stateful...
explode_data.jsonl/25266
{ "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, 28678, 38714, 4286, 2461, 20358, 18327, 15317, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 16558, 85, 16, 40143, 13297, 16094, 73731, 52210, 1669, 526, 18, 17, 7, 18, 340, 11323, 36473, 35842, 284, 5675, 13275, 9676, 13297, 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...
5
func TestGetFirstNumberThatIsNotSumOfPair(t *testing.T) { t.Run("example", func(t *testing.T) { got := GetFirstNumberThatIsNotSumOfPair("example.txt", 5) want := 127 if got != want { t.Errorf("GetFirstNumberThatIsNotSumOfPair got %d want %d", got, want) } }) t.Run("input", func(t *testing.T) { got := G...
explode_data.jsonl/19324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 1949, 5338, 2833, 4792, 3872, 2623, 9190, 2124, 12443, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 8687, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3174, 354, 1669, 2126, 5338, 2833, 4792, 3872, 2623, 9190, 2124, 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...
2
func TestNewResolverWithPrefilledReadonlyCache(t *testing.T) { r := httptransport.NewResolver(httptransport.Config{ DNSCache: map[string][]string{ "dns.google.com": {"8.8.8.8"}, }, }) ar, ok := r.(resolver.AddressResolver) if !ok { t.Fatal("not the resolver we expected") } ewr, ok := ar.Resolver.(resolve...
explode_data.jsonl/78380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 3564, 18190, 2354, 29978, 4374, 4418, 3243, 8233, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1758, 26445, 7121, 18190, 19886, 26445, 10753, 515, 197, 10957, 2448, 8233, 25, 2415, 14032, 45725, 917, 515, 298, 197, 44917, 4412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllEnabled(t *testing.T) { t.Parallel() exampleFolder := test_structure.CopyTerraformFolderToTemp(t, "../", "examples/all-enabled") //awsRegion := aws.GetRandomStableRegion(t, nil, nil) terraformOptions := &terraform.Options{ TerraformDir: exampleFolder, Vars: map[string]interface{}{ "root_domain_...
explode_data.jsonl/40696
{ "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, 2403, 5462, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 8122, 1516, 13682, 1669, 1273, 38283, 31770, 51, 13886, 627, 13682, 1249, 12151, 1155, 11, 7005, 497, 330, 51668, 31406, 54192, 1138, 197, 322, 8635, 14091, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStellarDecorate(t *testing.T) { cases := []decorateTest{ decorateTest{ body: "+1xlm other test", payments: []chat1.TextPayment{ chat1.TextPayment{ Username: "mikem", PaymentText: "+1XLM", Result: chat1.NewTextPaymentResultWithSent(stellar1.PaymentID("stellarid")), }, ...
explode_data.jsonl/74770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1146 }
[ 2830, 3393, 623, 26880, 35227, 349, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 47976, 2271, 515, 197, 197, 47976, 2271, 515, 298, 35402, 25, 6630, 16, 87, 17771, 1008, 1273, 756, 298, 3223, 352, 1368, 25, 3056, 9686, 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...
2
func TestPostFilterPlugins(t *testing.T) { tests := []struct { name string plugins []*TestPlugin wantStatus *framework.Status }{ { name: "a single plugin makes a Pod schedulable", plugins: []*TestPlugin{ { name: "TestPlugin", inj: injectedResult{PostFilterStatus: int(framework.Su...
explode_data.jsonl/35743
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 934 }
[ 2830, 3393, 4133, 5632, 45378, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 197, 18716, 262, 29838, 2271, 11546, 198, 197, 50780, 2522, 353, 3794, 10538, 198, 197, 59403, 197, 197, 515, 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 TestResetCornerCases(t *testing.T) { t.Run("should fail on cLog read error", func(t *testing.T) { injectedErr := errors.New("injected error") pLog := appendableFromBuffer(nil) dLog := appendableFromBuffer(make([]byte, 3*sha256.Size)) cLog := appendableFromBuffer(make([]byte, 12*2)) cLog.ReadAtFn = func...
explode_data.jsonl/49666
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1116 }
[ 2830, 3393, 14828, 50352, 37302, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 5445, 3690, 389, 272, 2201, 1349, 1465, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 17430, 28303, 7747, 1669, 5975, 7121, 445, 258, 28303, 1465, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConsolidatedSeriesIterator(t *testing.T) { for _, tt := range consolidatedSeriesIteratorTests { blocks, bounds := generateBlocks(t, tt.stepSize) j := 0 for i, block := range blocks { iters, err := block.SeriesIter() require.NoError(t, err) verifyMetas(t, i, bounds, iters.Meta(), iters.SeriesMe...
explode_data.jsonl/19683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 15220, 5192, 657, 25544, 11951, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 59291, 25544, 11951, 18200, 341, 197, 2233, 34936, 11, 14262, 1669, 6923, 29804, 1155, 11, 17853, 21465, 1695, 340, 197, 12428, 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 TestArchiveTeams(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() id := model.NewId() name := "name" + id displayName := "Name " + id th.CheckCommand(t, "team", "create", "--name", name, "--display_name", displayName) th.CheckCommand(t, "team", "archive", name) output := th.CheckCommand(t...
explode_data.jsonl/59047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 42502, 60669, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 15710, 1669, 1614, 7121, 764, 741, 11609, 1669, 330, 606, 1, 488, 877, 198, 31271, 675, 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 TestAPI_IsRetryableError(t *testing.T) { t.Parallel() if IsRetryableError(nil) { t.Fatal("should not be a retryable error") } if IsRetryableError(fmt.Errorf("not the error you are looking for")) { t.Fatal("should not be a retryable error") } if !IsRetryableError(fmt.Errorf(serverError)) { t.Fatal("sh...
explode_data.jsonl/44946
{ "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, 7082, 31879, 51560, 480, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 2160, 51560, 480, 1454, 27907, 8, 341, 197, 3244, 26133, 445, 5445, 537, 387, 264, 22683, 480, 1465, 1138, 197, 630, 743, 2160, 5156...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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