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 TestIssue15305(t *testing.T) { const src = "package p; func f() int16; var _ = f(undef)" f, err := parseSrc("issue15305.go", src) if err != nil { t.Fatal(err) } conf := Config{ Error: func(err error) {}, // allow errors } info := &Info{ Types: make(map[syntax.Expr]TypeAndValue), } conf.Check("p", []...
explode_data.jsonl/29395
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 42006, 16, 20, 18, 15, 20, 1155, 353, 8840, 836, 8, 341, 4777, 2286, 284, 330, 1722, 281, 26, 2915, 282, 368, 526, 16, 21, 26, 762, 716, 284, 282, 7, 16135, 12954, 1166, 11, 1848, 1669, 4715, 20360, 445, 11159, 16, 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 TestCorruptedClusterID(t *testing.T) { defer leaktest.AfterTest(t)() ctx := context.Background() e := storage.NewDefaultInMem() defer e.Close() if _, err := bootstrapCluster( ctx, []storage.Engine{e}, clusterversion.TestingClusterVersion, zonepb.DefaultZoneConfigRef(), zonepb.DefaultSystemZoneConfigRef(),...
explode_data.jsonl/49429
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 541 }
[ 2830, 3393, 10580, 85954, 28678, 915, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 20985, 1669, 2266, 19047, 741, 7727, 1669, 5819, 7121, 3675, 641, 18816, 741, 16867, 384, 10421, 2822, 743, 8358, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestContainerAndPodFromLabels(t *testing.T) { tests := []struct { inspect *dockertypes.ContainerJSON expectedError error }{ { inspect: nil, expectedError: errNoPodOnContainer, }, { inspect: &dockertypes.ContainerJSON{}, expectedError: errNoPodOnContainer, }, { inspe...
explode_data.jsonl/31202
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 4502, 3036, 23527, 3830, 23674, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 82054, 981, 353, 77055, 529, 1804, 33672, 5370, 198, 197, 42400, 1454, 1465, 198, 197, 59403, 197, 197, 515, 298, 197, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadValues(t *testing.T) { tform := New() tform.Register("blah", func(ctx context.Context, t *Transformer, value reflect.Value, param string) error { return nil }) type Test struct { Ignore string `mold:"-"` String string `mold:"blah,,blah"` } var tt Test err := tform.Struct(context.Background(), &...
explode_data.jsonl/43613
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 771 }
[ 2830, 3393, 17082, 6227, 1155, 353, 8840, 836, 8, 341, 3244, 627, 1669, 1532, 741, 3244, 627, 19983, 445, 70614, 497, 2915, 7502, 2266, 9328, 11, 259, 353, 46358, 11, 897, 8708, 6167, 11, 1685, 914, 8, 1465, 314, 470, 2092, 9568, 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...
1
func TestG1Identity(t *testing.T) { g := new(G1).ScalarBaseMult(new(big.Int).SetInt64(0)) if !g.p.IsInfinity() { t.Error("failure") } }
explode_data.jsonl/52903
{ "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, 38, 16, 18558, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 501, 6699, 16, 568, 20639, 3978, 40404, 1755, 75616, 7371, 568, 1649, 1072, 21, 19, 7, 15, 1171, 743, 753, 70, 556, 4506, 45090, 368, 341, 197, 3244, 6141, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestMuxSubroutes(t *testing.T) { hHubView1 := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hub1")) }) hHubView2 := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hub2")) }) hHubView3 := http.HandlerFunc(func(w http.ResponseWriter, r *http...
explode_data.jsonl/42877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1353 }
[ 2830, 3393, 44, 2200, 3136, 19794, 1155, 353, 8840, 836, 8, 341, 9598, 19316, 851, 16, 1669, 1758, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 4073, 10556, 3782, 445, 26682, 16, 5455, 197, 3518, 9598,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckPermission(t *testing.T) { assert.Equal(t, false, CheckPermission("1", Permission{"zone-1", "manage-all-things", "department-1"}), "Permission check of account") perm.AddGroup("1", "role-1") assert.Equal(t, true, CheckPermission("1", Permission{"zone-1", "manage-all-things", "department-1"}), "Permissi...
explode_data.jsonl/49504
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 3973, 14966, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 895, 11, 4248, 14966, 445, 16, 497, 18135, 4913, 8684, 12, 16, 497, 330, 25117, 22346, 7563, 819, 497, 330, 27314, 12, 16, 9207, 701, 330, 14966, 1779, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateDuration(t *testing.T) { usefulDurations := map[string]*metav1.Duration{ "one second": {Duration: time.Second}, "ten minutes": {Duration: time.Minute * 10}, "half hour": {Duration: time.Minute * 30}, "one hour": {Duration: time.Hour}, "one month": {Duration: time.Hour * 24 * 30}, "...
explode_data.jsonl/13791
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1908 }
[ 2830, 3393, 17926, 12945, 1155, 353, 8840, 836, 8, 341, 41819, 1262, 35, 21449, 1669, 2415, 14032, 8465, 4059, 402, 16, 33795, 515, 197, 197, 1, 603, 2086, 788, 220, 314, 12945, 25, 882, 32435, 1583, 197, 197, 1, 1960, 4420, 788, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddKernelParamInvalid(t *testing.T) { var config RuntimeConfig invalid := []vc.Param{ { Key: "", Value: "bar", }, } err := config.AddKernelParam(invalid[0]) assert.Error(t, err) }
explode_data.jsonl/44047
{ "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, 2212, 26343, 2001, 7928, 1155, 353, 8840, 836, 8, 341, 2405, 2193, 10954, 2648, 271, 197, 11808, 1669, 3056, 7362, 9580, 515, 197, 197, 515, 298, 55242, 25, 256, 8324, 298, 47399, 25, 330, 2257, 756, 197, 197, 1583, 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
func TestLinksToOptimization(t *testing.T) { ts := MakeTestingMemstore() fixed := ts.MakeFixed() fixed.AddValue(ts.GetIdFor("cool")) lto := graph.NewLinksToIterator(ts, fixed, "o") lto.AddTag("foo") newIt, changed := lto.Optimize() if !changed { t.Error("Iterator didn't change") } if newIt.Type() != "llrb" {...
explode_data.jsonl/76229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 24089, 1249, 21367, 65964, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 7405, 16451, 18816, 4314, 741, 1166, 3286, 1669, 10591, 50133, 13520, 741, 1166, 3286, 1904, 1130, 35864, 2234, 764, 2461, 445, 42196, 5455, 8810, 983, 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...
6
func TestTxNotifierCancelConf(t *testing.T) { t.Parallel() const startingHeight = 10 hintCache := newMockHintCache() n := chainntnfs.NewTxNotifier(startingHeight, 100, hintCache, hintCache) // We'll register two notification requests. Only the second one will be // canceled. tx1 := wire.NewMsgTx(1) tx1.AddTxO...
explode_data.jsonl/67719
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 765 }
[ 2830, 3393, 31584, 64729, 9269, 15578, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 4777, 5916, 3640, 284, 220, 16, 15, 198, 9598, 396, 8233, 1669, 501, 11571, 26987, 8233, 741, 9038, 1669, 8781, 406, 77, 3848, 7121, 31584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBytes_ToBool(t *testing.T) { tests := []struct { name string e Bytes want Bool }{ {name: "True", e: Bytes{[]byte("true")}, want: Bool{true}}, {name: "True", e: Bytes{[]byte("false")}, want: Bool{false}}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.e.ToBoo...
explode_data.jsonl/34770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 7078, 38346, 11233, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 7727, 262, 30024, 198, 197, 50780, 12608, 198, 197, 59403, 197, 197, 47006, 25, 330, 2514, 497, 384, 25, 30024, 90,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedelegationString(t *testing.T) { r := NewRedelegation(sdk.AccAddress(addr1), addr2, addr3, 0, time.Unix(0, 0), sdk.NewInt(0), sdk.NewDec(10)) require.NotEmpty(t, r.String()) }
explode_data.jsonl/58939
{ "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, 6033, 68, 87566, 703, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 6033, 68, 87566, 1141, 7584, 77538, 4286, 24497, 16, 701, 10789, 17, 11, 10789, 18, 11, 220, 15, 345, 197, 21957, 10616, 941, 7, 15, 11, 220, 15, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAllGroupsParallel(t *testing.T) { registry := newMockRegistry() goNum := 5 wg := &sync.WaitGroup{} wg.Add(goNum) for i := 0; i < goNum; i++ { go func() { defer wg.Done() for i := 0; i < 10000; i++ { assert.Equal(t, GetAllGroups(registry)[0], "testGroup") } }() } wg.Wait() }
explode_data.jsonl/67630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 1949, 2403, 22173, 16547, 1155, 353, 8840, 836, 8, 341, 197, 29172, 1669, 501, 11571, 15603, 741, 30680, 4651, 1669, 220, 20, 198, 72079, 1669, 609, 12996, 28384, 2808, 16094, 72079, 1904, 47415, 4651, 340, 2023, 600, 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...
2
func TestReadMultipartDocument(t *testing.T) { rt := NewRestTester(t, nil) defer rt.Close() reqHeaders := map[string]string{ "MIME-Version": "1.0", "Content-Type": "multipart/related; boundary=123"} bodyText := `--123 Content-Type: application/json {"key":"foo","value":"bar","_attachments":{"att.txt": {"type...
explode_data.jsonl/56946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 4418, 44, 18204, 7524, 1155, 353, 8840, 836, 8, 341, 55060, 1669, 1532, 12416, 58699, 1155, 11, 2092, 340, 16867, 16677, 10421, 2822, 24395, 10574, 1669, 2415, 14032, 30953, 515, 197, 197, 73527, 5660, 83902, 788, 330, 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...
1
func TestIsDisabledMigrationAllowed(t *testing.T) { tests := []struct { desc string dbCodeVersion semver.Version expectErr string }{ { desc: "allowed", dbCodeVersion: semver.Version{Major: codeVersion.Major, Minor: (codeVersion.Minor + 1)}, }, { desc: "not allowed, ...
explode_data.jsonl/43224
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 367 }
[ 2830, 3393, 3872, 25907, 20168, 35382, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 688, 914, 198, 197, 20939, 2078, 5637, 5234, 423, 35842, 198, 197, 24952, 7747, 257, 914, 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...
2
func TestNormalizeNames(t *testing.T) { tests := map[string]string{ "Structure": "Structure", "Date-Time": "DateTime", "Byte String": "ByteString", "Batch Error Continuation Option": "BatchErrorContinuationOption", "CRT Coefficient": ...
explode_data.jsonl/42192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 590 }
[ 2830, 3393, 87824, 7980, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 22952, 788, 5180, 330, 22952, 756, 197, 197, 1, 1916, 54485, 788, 5180, 330, 7689, 756, 197, 197, 1, 7153, 923, 788, 3824, 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 TestDeleteProcedure(t *testing.T) { config.WAITFREQUENCY = 0 client := new(CFClient) stackname := "ToDeleteStack" client.Client = &fakeDeleteCFClient{err: nil, stackname: stackname} deleteStack(stackname, client) }
explode_data.jsonl/29823
{ "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, 6435, 33155, 1155, 353, 8840, 836, 8, 341, 25873, 1175, 18587, 37, 787, 74113, 284, 220, 15, 198, 25291, 1669, 501, 3025, 37, 2959, 340, 48227, 606, 1669, 330, 64105, 4336, 698, 25291, 11716, 284, 609, 30570, 6435, 9650, 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
func TestGetAuthOptionsIdentityV3(t *testing.T) { identity := Identity{ Endpoint: "https://keystone.acme.com", Username: "BpcRBmKbj1gY", Password: "vxWNRLiagH8aEjxA", ProjectID: "sfgAc5sN3LZUhm2Uho8Sreo0qbUPq8Cd", DomainName: "acme", Version: 3, } expected := gophercloud.AuthOptions{ Identity...
explode_data.jsonl/54215
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 1949, 5087, 3798, 18558, 53, 18, 1155, 353, 8840, 836, 8, 341, 197, 16912, 1669, 26540, 515, 197, 197, 27380, 25, 256, 330, 2428, 1110, 440, 41266, 15399, 2660, 905, 756, 197, 197, 11115, 25, 256, 330, 33, 3992, 29259, 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 TestMessageWorkerSend(t *testing.T) { // Setup ws := &workerSignal{} ws.Init() mh := &testMessageHandler{msgs: make(chan message, 10), response: true} mw := newMessageWorker(ws, 10, 0, mh) // Send an event. s1 := newTestSignaler() m1 := message{context: Context{Signal: s1}} mw.send(m1) // Send another ...
explode_data.jsonl/72808
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 343 }
[ 2830, 3393, 2052, 21936, 11505, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 198, 6692, 82, 1669, 609, 21462, 26810, 16094, 6692, 82, 26849, 741, 2109, 71, 1669, 609, 1944, 2052, 3050, 90, 77845, 25, 1281, 35190, 1943, 11, 220, 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 TestFuturesGetOrderData(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("skipping test: api keys not set") } _, err := b.FuturesGetOrderData(context.Background(), currency.NewPairWithDelimiter("BTCUSD", "PERP", "_"), "123", "") if err != nil { t.Error(err) } }
explode_data.jsonl/76621
{ "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, 37, 74606, 1949, 4431, 1043, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 25, 6330, 6894, 537, 738, 1138, 197, 532, 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 TestUserDB(t *testing.T) { cfg := config.TestConfig() dbCfg := cfg.Database testdata.ResetDB(cfg) services, err := NewServices( WithGorm(dbCfg.Dialect(), dbCfg.ConnectionInfo()), WithLogMode(!cfg.IsProd()), // WithUser(cfg.Pepper, cfg.HMACKey), ) if err != nil { t.Error(err) } defer services.Close...
explode_data.jsonl/3681
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 1474, 3506, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 2193, 8787, 2648, 741, 20939, 42467, 1669, 13286, 25008, 198, 18185, 691, 36660, 3506, 28272, 692, 1903, 2161, 11, 1848, 1669, 1532, 11025, 1006, 197, 197, 2354, 38, 493...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContainCmd(t *testing.T) { cases := []struct { args []string cmd string expected bool }{ {args: []string{}, cmd: "", expected: false}, {args: []string{"scan"}, cmd: "version", expected: false}, {args: []string{"version"}, cmd: "version", expected: true}, } for _, tt := range cases { ...
explode_data.jsonl/36202
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 46522, 15613, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 31215, 257, 3056, 917, 198, 197, 25920, 414, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 90, 2116, 25, 3056, 917, 22655, 5439, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBytePoolUnique(t *testing.T) { expect := ttesting.NewExpect(t) pool := NewBytePool() numTests := tinyCount * 10 chunks := make([][]byte, numTests) for i := 0; i < numTests; i++ { data := pool.Get(8) binary.PutVarint(data, int64(i)) chunks[i] = data } for i := 0; i < numTests; i++ { num, err :...
explode_data.jsonl/12407
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 7153, 10551, 22811, 1155, 353, 8840, 836, 8, 341, 24952, 1669, 259, 8840, 7121, 17536, 1155, 340, 85273, 1669, 1532, 7153, 10551, 2822, 22431, 18200, 1669, 13673, 2507, 353, 220, 16, 15, 198, 23049, 15296, 1669, 1281, 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...
3
func TestAddMarkRestore(t *testing.T) { buf := NewBuffer(10) buf.Add([]byte{1, 2, 3, 4, 5, 6, 7, 8}) buf.Mark(1) buf.Mark(2) buf.Add([]byte{9, 10, 11, 12}) ret := buf.GetSinceMarker(1) require.Equal(t, len(ret), 4) require.Equal(t, ret[0], byte(9)) require.Equal(t, ret[1], byte(10)) require.Equal(t, ret[2], b...
explode_data.jsonl/50272
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 2212, 8949, 56284, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 1532, 4095, 7, 16, 15, 340, 26398, 1904, 10556, 3782, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResourceSpans_CopyTo(t *testing.T) { ms := NewResourceSpans() generateTestResourceSpans().CopyTo(ms) assert.EqualValues(t, generateTestResourceSpans(), ms) }
explode_data.jsonl/63242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 59 }
[ 2830, 3393, 4783, 6406, 596, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 4783, 6406, 596, 741, 3174, 13220, 2271, 4783, 6406, 596, 1005, 12106, 1249, 35680, 340, 6948, 12808, 6227, 1155, 11, 6923, 2271, 4783, 6406, 596...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_GetServer_validation(t *testing.T) { var err error _, err = testClient.GetServer(&GetServerInput{ ServiceID: "", }) if err != ErrMissingServiceID { t.Errorf("bad error: %s", err) } _, err = testClient.GetServer(&GetServerInput{ ServiceID: "foo", PoolID: "", }) if err != ErrMissingPoo...
explode_data.jsonl/8321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 2959, 13614, 5475, 19416, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 198, 197, 6878, 1848, 284, 1273, 2959, 2234, 5475, 2099, 1949, 5475, 2505, 515, 197, 91619, 915, 25, 8324, 197, 3518, 743, 1848, 961, 15495, 25080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadInput(t *testing.T) { inst := createDiscoveryInstance(2048, fmt.Sprintf("d%d", 0), []string{}) inst.Discovery.(*gossipDiscoveryImpl).handleMsgFromComm(nil) s, _ := protoext.NoopSign(&proto.GossipMessage{ Content: &proto.GossipMessage_DataMsg{ DataMsg: &proto.DataMessage{}, }, }) inst.Discovery.(...
explode_data.jsonl/62257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 17082, 2505, 1155, 353, 8840, 836, 8, 341, 88656, 1669, 1855, 67400, 2523, 7, 17, 15, 19, 23, 11, 8879, 17305, 445, 67, 14841, 497, 220, 15, 701, 3056, 917, 37790, 88656, 10166, 7449, 41399, 70, 41473, 67400, 9673, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatetimeOverflow(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create table t1 (d date)") tk.MustExec("set sql_mode='traditional'") overflowSQLs := []string{ "insert into t1 (d) select date_add('2000-0...
explode_data.jsonl/65436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 579 }
[ 2830, 3393, 94191, 42124, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50463, 10216, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestApiTest_RequestContextIsPreserved(t *testing.T) { ctxKey := struct{}{} handler := http.NewServeMux() handler.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) { value := r.Context().Value(ctxKey).([]byte) w.Write(value) }) interceptor := func(r *http.Request) { *r = *r.WithContext(c...
explode_data.jsonl/54816
{ "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, 6563, 2271, 44024, 1972, 3872, 14367, 2771, 1155, 353, 8840, 836, 8, 341, 20985, 1592, 1669, 2036, 6257, 16094, 53326, 1669, 1758, 7121, 60421, 44, 2200, 741, 53326, 63623, 4283, 14990, 497, 2915, 3622, 1758, 37508, 11, 435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadSanctionConfig(t *testing.T) { cases := []struct { name string clientJudge roles.Judge expectedSanctionThresholds map[shared.IIGOSanctionsTier]shared.IIGOSanctionsScore expectedRuleViolationSeverity map[string]shared.IIGOSanctionsScore }{ { name:...
explode_data.jsonl/74040
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1304 }
[ 2830, 3393, 5879, 23729, 407, 2648, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 3502, 914, 198, 197, 25291, 60256, 4293, 12783, 3503, 19561, 198, 197, 42400, 23729, 407, 37841, 82, 262, 2415, 58, 6100, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEdgeutilExitPoint(t *testing.T) { tests := []struct { a pointUVW exitAxis axis want r2.Point }{ {pointUVW{r3.Vector{-3.88578058618805e-16, -math.Sqrt(2.0 / 3.0), math.Sqrt(2.0 / 3.0)}}, axisU, r2.Point{-1, 1}}, {pointUVW{r3.Vector{math.Sqrt(4.0 / 3.0), -math.Sqrt(4.0 / 3.0), 0}}, axisV, ...
explode_data.jsonl/74799
{ "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, 11656, 1314, 15339, 2609, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11323, 286, 1459, 22246, 54, 198, 197, 14519, 8143, 8024, 198, 197, 50780, 257, 435, 17, 3775, 198, 197, 59403, 197, 197, 90, 2768,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIteratorPaging(t *testing.T) { for _, testEnv := range testEnvs { t.Logf("Running test for TestEnv = %s", testEnv.getName()) // test explicit paging testLedgerID := "testiterator.1" testEnv.init(t, testLedgerID, nil) testIteratorPagingInit(t, testEnv, 10) returnKeys := []string{"key_002", "key_00...
explode_data.jsonl/63607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 11951, 47, 4118, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 14359, 1669, 2088, 1273, 1702, 11562, 341, 197, 3244, 98954, 445, 18990, 1273, 369, 3393, 14359, 284, 1018, 82, 497, 1273, 14359, 8911, 12367, 197, 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...
2
func TestLegalChars(t *testing.T) { cases := []struct { errorcase.Error Name string BucketNames []string }{ { Name: "Empty name is OK", BucketNames: []string{ "", }, }, { Name: "Name containing lower-case letters, numbers, dashes, underscores, and periods is OK", BucketNames: []s...
explode_data.jsonl/71156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 553 }
[ 2830, 3393, 52786, 32516, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 18290, 5638, 6141, 198, 197, 21297, 286, 914, 198, 197, 12791, 11152, 7980, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 21297, 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...
3
func TestCharsetUniteChar(t *testing.T) { testdata := []struct { ranges []Range ch int32 str string size uint32 }{ {[]Range{}, 1, "1", 1}, {[]Range{{1, 3}}, 0, "0-2", 3}, {[]Range{{1, 3}}, 3, "1-3", 3}, {[]Range{{1, 3}, {4, 10}}, 3, "1-9", 9}, {[]Range{{1, 3}, {4, 10}}, 7, "1-2, ...
explode_data.jsonl/51961
{ "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, 78172, 1806, 632, 4768, 1155, 353, 8840, 836, 8, 972, 18185, 691, 1669, 3056, 1235, 972, 197, 7000, 5520, 3056, 6046, 319, 197, 23049, 257, 526, 18, 17, 319, 197, 11355, 262, 914, 319, 197, 13832, 256, 2622, 18, 17, 319,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMySQLServerRepo_GetByID(t *testing.T) { asst := assert.New(t) entity, err := mysqlServerRepo.GetByID(1) asst.Nil(err, common.CombineMessageWithError("test GetByID() failed", err)) hostIP := entity.GetHostIP() asst.Equal(testInitHostIP, hostIP, "test GetByID() failed") portNum := entity.GetPortNum() ass...
explode_data.jsonl/80039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 59224, 5475, 25243, 13614, 60572, 1155, 353, 8840, 836, 8, 341, 60451, 267, 1669, 2060, 7121, 1155, 692, 52987, 11, 1848, 1669, 10564, 5475, 25243, 2234, 60572, 7, 16, 340, 60451, 267, 59678, 3964, 11, 4185, 31124, 2052, 661...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPrettyPath(t *testing.T) { t.Parallel() tests := []struct { in, x string }{ {"", ""}, {"${HOME}", "~"}, {"${HOME}/", "~/"}, {"${HOME}/Desktop", "~/Desktop"}, {"${HOME}/Desktop/", "~/Desktop/"}, {"Desktop/${HOME}", "Desktop/${HOME}"}, } for _, td := range tests { td := td t.Run(td.in, f...
explode_data.jsonl/57939
{ "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, 51940, 1820, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 17430, 11, 856, 914, 198, 197, 59403, 197, 197, 4913, 497, 77496, 197, 197, 4913, 2365, 27546, 9545, 51269, 7115, 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 TestGetSwapAccountInfo(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("API keys required but not set, skipping test") } _, err := c.GetSwapAccountInfo() if err != nil { t.Error(err) } }
explode_data.jsonl/42942
{ "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, 1949, 46179, 7365, 1731, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 7082, 6894, 2567, 714, 537, 738, 11, 42659, 1273, 1138, 197, 532, 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 TestCrossStructGtFieldValidation(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:"gtcsfield=Inner.CreatedAt"` String string ...
explode_data.jsonl/77228
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1251 }
[ 2830, 3393, 28501, 9422, 38, 83, 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 TestWorkflowGetInitialTaskTemplateName(t *testing.T) { workflow := &Workflow{ TaskTemplates: []TaskTemplate{ TaskTemplate{ TaskName: "First", Initial: true, }, TaskTemplate{ TaskName: "Second", Initial: false, }, TaskTemplate{ TaskName: "Third", Initial: false, }, ...
explode_data.jsonl/19600
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 62768, 1949, 6341, 6262, 68582, 1155, 353, 8840, 836, 8, 341, 197, 56249, 1669, 609, 62768, 515, 197, 81153, 51195, 25, 3056, 6262, 7275, 515, 298, 81153, 7275, 515, 571, 81153, 675, 25, 330, 5338, 756, 571, 197, 6341, 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...
1
func TestIsValidImportPath(t *testing.T) { tests := []struct { path string expected error }{ {"[1,2,3]", fmt.Errorf("invalid path [1, 2, 3]: path must be ref or var")}, } for _, tc := range tests { path := MustParseTerm(tc.path).Value result := IsValidImportPath(path) if tc.expected == nil && resul...
explode_data.jsonl/50484
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 55470, 11511, 1820, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 26781, 257, 914, 198, 197, 42400, 1465, 198, 197, 59403, 197, 197, 4913, 58, 16, 11, 17, 11, 18, 19076, 8879, 13080, 445, 11808, 1815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplicateManagerReplications(t *testing.T) { testBucket := base.GetTestBucket(t) defer testBucket.Close() testCfg, err := base.NewCfgSG(testBucket, "") require.NoError(t, err) manager, err := NewSGReplicateManager(&DatabaseContext{Name: "test"}, testCfg) require.NoError(t, err) replication1_id := "r...
explode_data.jsonl/73338
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 651 }
[ 2830, 3393, 18327, 48795, 2043, 18327, 10709, 1155, 353, 8840, 836, 8, 1476, 18185, 36018, 1669, 2331, 2234, 2271, 36018, 1155, 340, 16867, 1273, 36018, 10421, 2822, 18185, 42467, 11, 1848, 1669, 2331, 7121, 42467, 7783, 8623, 36018, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStopInstancesRun(t *testing.T) { ctx := context.Background() w := testWorkflow() s, _ := w.NewStep("s") ins := []*Resource{{RealName: "in0", link: "link"}, {RealName: "in1", link: "link"}} w.instances.m = map[string]*Resource{"in0": ins[0], "in1": ins[1]} si := &StopInstances{ Instances: []string{"in...
explode_data.jsonl/1366
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 10674, 42725, 6727, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 6692, 1669, 1273, 62768, 2822, 1903, 11, 716, 1669, 289, 7121, 8304, 445, 82, 1138, 197, 1330, 1669, 29838, 4783, 2979, 12768, 675, 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...
6
func TestRemoveIssueErr(t *testing.T) { cucm, iucm, lucm, pucm, m := prepareMocksAndRUC() iucm.On("Remove", uint(1)).Return(false, errors.New("test error")) c, _ := prepareHTTP(echo.DELETE, "/api/issues/:id", nil) c.SetParamNames("id") c.SetParamValues("1") err := m.RemoveIssue(c) assert.NotNil(t, err) asse...
explode_data.jsonl/60177
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 13021, 42006, 7747, 1155, 353, 8840, 836, 8, 341, 1444, 1754, 76, 11, 600, 1754, 76, 11, 25927, 76, 11, 281, 1754, 76, 11, 296, 1669, 10549, 72577, 3036, 49, 5459, 2822, 8230, 1754, 76, 8071, 445, 13021, 497, 2622, 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 TestDuplicateRowMiddleRowOfEmptyFile(t *testing.T) { const sheet = "Sheet1" outFile := filepath.Join("test", "TestDuplicateRow.%s.xlsx") t.Run("MiddleRowOfEmptyFile", func(t *testing.T) { xlsx := NewFile() assert.NoError(t, xlsx.DuplicateRow(sheet, 99)) if !assert.NoError(t, xlsx.SaveAs(fmt.Sprintf(out...
explode_data.jsonl/30497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 53979, 3102, 43935, 3102, 2124, 3522, 1703, 1155, 353, 8840, 836, 8, 341, 4777, 10834, 284, 330, 10541, 16, 698, 13967, 1703, 1669, 26054, 22363, 445, 1944, 497, 330, 2271, 53979, 3102, 22445, 82, 46838, 5130, 3244, 16708, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestDecider(t *testing.T) { defer leaktest.AfterTest(t)() intn := rand.New(rand.NewSource(12)).Intn var d Decider Init(&d, intn, func() float64 { return 10.0 }) ms := func(i int) time.Time { ts, err := time.Parse(time.RFC3339, "2000-01-01T00:00:00Z") assert.NoError(t, err) return ts.Add(time.Duration...
explode_data.jsonl/15787
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1885 }
[ 2830, 3393, 4900, 1776, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 2084, 77, 1669, 10382, 7121, 37595, 7121, 3608, 7, 16, 17, 4579, 1072, 77, 271, 2405, 294, 3714, 1776, 198, 98762, 2099, 67, 11, 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 TestGetBigdFields(t *testing.T) { keywords := []string{"virus", "Hubei", "China", "outbreak", "Policy", "Heath", "ACE2", "[^0-9a-zA-Z]SARS[^0-9a-zA-Z]"} pat := strings.Join(keywords, "|") articleFields, err := GetBigdFields("_demo/bigd.json", nil, &pat, true, true, true, 60) dat, _ := json.MarshalIndent(articl...
explode_data.jsonl/46514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 1949, 15636, 67, 8941, 1155, 353, 8840, 836, 8, 341, 23634, 5761, 1669, 3056, 917, 4913, 85, 16972, 497, 330, 39, 3760, 72, 497, 330, 22282, 497, 330, 411, 8960, 497, 330, 13825, 497, 330, 1519, 587, 497, 330, 5576, 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...
1
func TestGetClient(t *testing.T) { t.Run("correctly returns client", func(t *testing.T) { opts := Options{BaseURL: apiURL} client, err := New(opts) require.NoError(t, err, "create client error") require.Exactly(t, client, &Client{ BaseURL: baseURL, DefaultHeaders: Headers{}, client: http.Defa...
explode_data.jsonl/66010
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 700 }
[ 2830, 3393, 1949, 2959, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 19928, 398, 4675, 2943, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 64734, 1669, 14566, 90, 3978, 3144, 25, 6330, 3144, 532, 197, 25291, 11, 1848, 1669, 1532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_bot_sendMessage(t *testing.T) { cfg := fakeCfg{} discord := &FakeDiscordClientSpy{} prc := &fakeProcessor{} b := &bot{ cfg: cfg, discord: discord, prc: prc, } t.Run("it should send message correctly", func(t *testing.T) { b.sendMessage("chanel", "text") assertSpySuccess(t, discord, ...
explode_data.jsonl/2138
{ "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, 38883, 13565, 2052, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 12418, 42467, 16094, 2698, 3427, 539, 1669, 609, 52317, 23477, 539, 2959, 44027, 16094, 25653, 66, 1669, 609, 30570, 22946, 31483, 2233, 1669, 609, 6331, 515, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRunCmdSync(t *testing.T) { err := runCmdSync("echo", "hello", "world") assert.Nil(t, err) err = runCmdSync("false", "something") assert.NotNil(t, err) }
explode_data.jsonl/28204
{ "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, 6727, 15613, 12154, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 1598, 15613, 12154, 445, 3047, 497, 330, 14990, 497, 330, 14615, 1138, 6948, 59678, 1155, 11, 1848, 692, 9859, 284, 1598, 15613, 12154, 445, 3849, 497, 330, 33331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoLocalTargets(t *testing.T) { f := newLTFixture(t) defer f.TearDown() specs := []model.TargetSpec{ model.ImageTarget{}, model.K8sTarget{}, model.DockerComposeTarget{}, } res, err := f.ltbad.BuildAndDeploy(f.ctx, f.st, specs, store.BuildStateSet{}) assert.Empty(t, res, "expect empty result for failed ...
explode_data.jsonl/17633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 2753, 7319, 49030, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 43, 10808, 12735, 1155, 340, 16867, 282, 836, 682, 4454, 2822, 98100, 82, 1669, 3056, 2528, 35016, 8327, 515, 197, 19727, 7528, 6397, 22655, 1614, 11352, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrorZeroArguments(t *testing.T) { prec := uint(64) in := make([]big.Float, 2) in[0].SetPrec(prec).SetInt64(0) in[1].SetPrec(prec).SetInt64(-2) pslq := New(prec).SetVerbose(verbose) _, err := pslq.Run(in) if err != ErrorZeroArguments { t.Error("Expecting", ErrorZeroArguments, "but got", err) } }
explode_data.jsonl/66845
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 1454, 17999, 19139, 1155, 353, 8840, 836, 8, 341, 197, 10645, 1669, 2622, 7, 21, 19, 340, 17430, 1669, 1281, 10556, 16154, 29794, 11, 220, 17, 340, 17430, 58, 15, 936, 1649, 68833, 1295, 2758, 568, 1649, 1072, 21, 19, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUpdateUncommitted(t *testing.T) { dir := testutils.InitTestEnv(ModuleName, t) c, mgr, driver := initTestContext(t, dir) defer driver.Close() defer c.Close() defer mgr.Stop() schema := catalog.MockSchemaAll(3) schema.BlockMaxRows = 10000 schema.SegmentMaxBlocks = 10 schema.PrimaryKey = 1 bat := comp...
explode_data.jsonl/14640
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 372 }
[ 2830, 3393, 4289, 1806, 97446, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 1273, 6031, 26849, 2271, 14359, 75295, 675, 11, 259, 340, 1444, 11, 57897, 11, 5579, 1669, 2930, 2271, 1972, 1155, 11, 5419, 340, 16867, 5579, 10421, 741, 16867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNetworkLocalhostTCPNat(t *testing.T) { skip.If(t, testEnv.DaemonInfo.OSType == "windows", "FIXME") skip.If(t, testEnv.IsRemoteDaemon) defer setupTest(t)() msg := "hi yall" startServerContainer(t, msg, 8081) conn, err := net.Dial("tcp", "localhost:8081") assert.NilError(t, err) defer conn.Close() d...
explode_data.jsonl/42776
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 12320, 7319, 3790, 49896, 65214, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 32901, 1155, 11, 1273, 14359, 909, 64, 7291, 1731, 13, 4233, 499, 621, 330, 27077, 497, 330, 81019, 1138, 1903, 13389, 32901, 1155, 11, 1273, 14359,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCnsShouldBeFormatted(t *testing.T) { doc, err := brdocs.NewCns("242912018460005") internal_test.AssertValidDocument(t, doc, err) internal_test.AssertDocumentFormatted(t, doc, "242 9120 1846 0005") }
explode_data.jsonl/52273
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 34, 4412, 14996, 3430, 43500, 1155, 353, 8840, 836, 8, 341, 59536, 11, 1848, 1669, 1411, 14120, 7121, 34, 4412, 445, 17, 19, 17, 24, 16, 17, 15, 16, 23, 19, 21, 15, 15, 15, 20, 1138, 33343, 4452, 11711, 4088, 7524, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHappyPath(t *testing.T) { str := "Splendid. " name := "mc_singleton_name" foo1 := Foo{S:str} foo2 := Foo{} p := NewProvider(memcached) p.ErrIfNotFound = true if err := p.ReadSingleton(ctx, name, nil, &foo2); err != singleton.ErrNoSuchEntity { // This test may fail if the object happens to be presen...
explode_data.jsonl/10020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 32847, 1820, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 330, 94159, 50403, 13, 6228, 11609, 1669, 330, 12887, 82119, 1269, 1837, 197, 7975, 16, 1669, 33428, 90, 50, 61296, 532, 197, 7975, 17, 1669, 33428, 31483, 3223, 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 Test_mergeScanStatus(t *testing.T) { errorStatus := job.ErrorStatus.String() runningStatus := job.RunningStatus.String() successStatus := job.SuccessStatus.String() stoppedStatus := job.StoppedStatus.String() type args struct { s1 string s2 string } tests := []struct { name string args args want ...
explode_data.jsonl/52087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 20888, 26570, 2522, 1155, 353, 8840, 836, 8, 341, 18290, 2522, 1669, 2618, 6141, 2522, 6431, 741, 197, 27173, 2522, 1669, 2618, 2013, 11216, 2522, 6431, 741, 30553, 2522, 1669, 2618, 33320, 2522, 6431, 741, 18388, 17573, 2522,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCnsShouldBeSameType(t *testing.T) { doc, _ := brdocs.NewCns("242912018460005") internal_test.AssertDocumentType(t, doc, brdocs.CnsType) }
explode_data.jsonl/52272
{ "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, 34, 4412, 14996, 3430, 19198, 929, 1155, 353, 8840, 836, 8, 341, 59536, 11, 716, 1669, 1411, 14120, 7121, 34, 4412, 445, 17, 19, 17, 24, 16, 17, 15, 16, 23, 19, 21, 15, 15, 15, 20, 1138, 33343, 4452, 11711, 7524, 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
func TestZpopminmax(t *testing.T) { testRaw(t, func(c *client) { c.Do("ZADD", "set:zpop", "1.0", "key1") c.Do("ZADD", "set:zpop", "2.0", "key2") c.Do("ZADD", "set:zpop", "3.0", "key3") c.Do("ZADD", "set:zpop", "4.0", "key4") c.Do("ZADD", "set:zpop", "5.0", "key5") c.Do("ZCARD", "set:zpop") c.Do("ZSCORE"...
explode_data.jsonl/23354
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 477 }
[ 2830, 3393, 57, 8374, 1065, 2810, 1155, 353, 8840, 836, 8, 341, 18185, 20015, 1155, 11, 2915, 1337, 353, 2972, 8, 341, 197, 1444, 33596, 445, 57, 15665, 497, 330, 746, 25, 89, 8374, 497, 330, 16, 13, 15, 497, 330, 792, 16, 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...
1
func TestClientRetryBootstrap(t *testing.T) { defer leaktest.AfterTest(t)() stopper := stop.NewStopper() defer stopper.Stop(context.TODO()) local := startGossip(1, stopper, t, metric.NewRegistry()) remote := startGossip(2, stopper, t, metric.NewRegistry()) if err := local.AddInfo("local-key", []byte("hello"), 0*...
explode_data.jsonl/18551
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 2959, 51560, 45511, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 62644, 712, 1669, 2936, 7121, 10674, 712, 741, 16867, 2936, 712, 30213, 5378, 90988, 2398, 8854, 1669, 1191, 38, 41473, 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 TestSearchGetDataErr(t *testing.T) { mockdb := &mockMongo{ data: nil, err: errors.New("mock error, TestSearchGetDataErr"), errTrigger: 1, errTriggerStep: 0, } DB = mockdb var dat commondata.ObjQueryInput _, _, err := Search(dat) if mockdb.err != err { t.Error(err) } }
explode_data.jsonl/56524
{ "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, 5890, 68957, 7747, 1155, 353, 8840, 836, 8, 341, 77333, 1999, 1669, 609, 16712, 54998, 515, 197, 8924, 25, 1843, 2092, 345, 197, 9859, 25, 310, 5975, 7121, 445, 16712, 1465, 11, 3393, 5890, 68957, 7747, 4461, 197, 9859, 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...
2
func TestParseDocumentError(t *testing.T) { t.Parallel() in := "foo $(" p := NewParser() _, err := p.Document(strings.NewReader(in)) want := "1:5: reached EOF without matching ( with )" got := fmt.Sprintf("%v", err) if got != want { t.Fatalf("Expected %q as an error, but got %q", want, got) } }
explode_data.jsonl/55134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 14463, 7524, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 17430, 1669, 330, 7975, 24148, 198, 3223, 1669, 1532, 6570, 741, 197, 6878, 1848, 1669, 281, 26256, 51442, 68587, 5900, 1171, 50780, 1669, 330, 16, 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...
2
func TestSeverity(t *testing.T) { n := len(severityTests) for i, tt := range severityTests { tryIncl, err := SeverityInclude(tt.execSeverity, tt.itemSeverity) if err != nil && tt.errorIsNil { t.Errorf("[%d/%d] severity.SeverityInclude(\"%s\",\"%s\") error [%v]", i+1, n, tt.execSeverity, tt.itemSeverity, err.Er...
explode_data.jsonl/30233
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 65594, 1155, 353, 8840, 836, 8, 341, 9038, 1669, 2422, 10478, 26472, 18200, 340, 2023, 600, 11, 17853, 1669, 2088, 29920, 18200, 341, 197, 6799, 641, 564, 11, 1848, 1669, 51139, 22283, 47152, 15776, 65594, 11, 17853, 8984, 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...
5
func TestAcc_UserPublicKeys(t *testing.T) { r := require.New(t) prefix := strings.ToUpper(acctest.RandStringFromCharSet(10, acctest.CharSetAlpha)) sshkey1, err := testhelpers.Fixture("userkey1") r.NoError(err) sshkey2, err := testhelpers.Fixture("userkey2") r.NoError(err) resource.ParallelTest(t, resource.TestC...
explode_data.jsonl/62897
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 500 }
[ 2830, 3393, 14603, 31339, 12676, 8850, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 340, 3223, 5060, 1669, 9069, 49396, 48396, 67880, 2013, 437, 703, 3830, 4768, 1649, 7, 16, 15, 11, 1613, 67880, 10447, 1649, 19384, 1171,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTooShort(t *testing.T) { b := make([]byte, 1) b[0] = (header.IPv4Version + header.IPv6Version) << 4 // Get the version of a zero-length slice. const want = -1 if v := header.IPVersion(b[:0]); v != want { t.Fatalf("Bad version, want %v, got %v", want, v) } // Get the version of a nil slice....
explode_data.jsonl/67080
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 31246, 12472, 1155, 353, 8840, 836, 8, 972, 2233, 1669, 1281, 10556, 3782, 11, 220, 16, 1218, 2233, 58, 15, 60, 284, 320, 2708, 46917, 85, 19, 5637, 488, 4247, 46917, 85, 21, 5637, 8, 1115, 220, 19, 871, 197, 322, 2126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttachDeviceId(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.Client deviceId := model.PUSH_NOTIFY_APPLE + ":1234567890" pass, resp := Client.AttachDeviceId(deviceId) CheckNoError(t, resp) if !pass { t.Fatal("should have passed") } if sessions, err := th.App.GetSession...
explode_data.jsonl/21550
{ "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, 30485, 6985, 764, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 54719, 764, 1669, 1614, 1069, 19518, 57614, 16410, 867, 488, 13022, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnqueue(t *testing.T) { finite_tests.Enqueue(t, func(size int) interface { goqueue.Owner goqueue.Enqueuer } { return finite.New(size) }) }
explode_data.jsonl/54506
{ "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, 1702, 4584, 1155, 353, 8840, 836, 8, 341, 1166, 15856, 32509, 65625, 1155, 11, 2915, 6856, 526, 8, 3749, 341, 197, 30680, 4584, 49920, 198, 197, 30680, 4584, 22834, 591, 8801, 198, 197, 92, 341, 197, 853, 34226, 7121, 6856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreRemoveReplicaOldDescriptor(t *testing.T) { defer leaktest.AfterTest(t) store, _, stopper := createTestStore(t) defer stopper.Stop() rng1, err := store.GetReplica(1) if err != nil { t.Fatal(err) } origDesc := rng1.Desc() newDesc := proto.Clone(origDesc).(*roachpb.RangeDescriptor) _, newRep := n...
explode_data.jsonl/44463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 6093, 13021, 18327, 15317, 18284, 11709, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 340, 57279, 11, 8358, 2936, 712, 1669, 1855, 2271, 6093, 1155, 340, 16867, 2936, 712, 30213, 2822, 7000, 968, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPrintSlackMessage(t *testing.T) { color.ForceColor() tests := []struct { input string expected string }{ { "", "", }, { "Hallo :smile:", "Hallo 😄", }, { "Hallo :smile:: how are you? :", "Hallo 😄: how are you? :", }, { "<@here> is some `code`", "\x1b[1m@here\x1...
explode_data.jsonl/67098
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 8994, 7442, 473, 2052, 1155, 353, 8840, 836, 8, 341, 21481, 991, 16316, 1636, 2822, 78216, 1669, 3056, 1235, 341, 197, 22427, 262, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 39680, 298, 197, 39680...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStackSerialization(t *testing.T) { stack := New() stack.Push("a") stack.Push("b") stack.Push("c") var err error assert := func() { if actualValue, expectedValue := fmt.Sprintf("%s%s%s", stack.Values()...), "cba"; actualValue != expectedValue { t.Errorf("Got %v expected %v", actualValue, expectedVal...
explode_data.jsonl/26073
{ "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, 4336, 35865, 1155, 353, 8840, 836, 8, 341, 48227, 1669, 1532, 741, 48227, 34981, 445, 64, 1138, 48227, 34981, 445, 65, 1138, 48227, 34981, 445, 66, 5130, 2405, 1848, 1465, 198, 6948, 1669, 2915, 368, 341, 197, 743, 5042, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNumberConversion(t *testing.T) { testcases := map[string]struct { Old string New string ExpectedPatch string ExpectedResult string }{ "empty": { Old: `{}`, New: `{}`, ExpectedPatch: `{}`, ExpectedResult: `{}`, }, "int32 medium": { Old...
explode_data.jsonl/3511
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1340 }
[ 2830, 3393, 2833, 48237, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 2415, 14032, 60, 1235, 341, 197, 197, 18284, 310, 914, 198, 197, 197, 3564, 310, 914, 198, 197, 197, 18896, 43622, 220, 914, 198, 197, 197, 18896, 2077, 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...
7
func TestNewQEMUStageOptions(t *testing.T) { tests := []struct { Filename string Format QEMUFormat FormatOptions QEMUFormatOptions ExpectedOptions *QEMUStageOptions Error bool }{ { Filename: "image.qcow2", Format: QEMUFormatQCOW2, FormatOptions: QCOW2Options{ Com...
explode_data.jsonl/41616
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1798 }
[ 2830, 3393, 3564, 48, 83606, 19398, 3798, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 12727, 4033, 286, 914, 198, 197, 197, 4061, 688, 1207, 83606, 4061, 198, 197, 197, 4061, 3798, 256, 1207, 83606, 4061, 3798, 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 TestCreateSessionAndQuit(t *testing.T) { ctx := context.Background() d, err := CreateSession(ctx, wdAddress(), 3, nil) if err != nil { t.Fatal(err) } if d.SessionID() == "" { t.Error("session ID should be set") } if name, _ := d.Capabilities()["browserName"].(string); name == "" { t.Error("capabiliti...
explode_data.jsonl/68730
{ "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, 4021, 5283, 3036, 42856, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 2698, 11, 1848, 1669, 4230, 5283, 7502, 11, 45404, 4286, 1507, 220, 18, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDay23Part2(t *testing.T) { swarm, _ := ParseInput(lines2) part2 := Day23Part2(swarm) expected := 36 if part2 != expected { t.Errorf("Part2 was incorrect, got: %d, want: %d.", part2, expected) } }
explode_data.jsonl/52923
{ "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, 10159, 17, 18, 5800, 17, 1155, 353, 8840, 836, 8, 341, 77295, 2178, 11, 716, 1669, 14775, 2505, 33152, 17, 692, 72872, 17, 1669, 6059, 17, 18, 5800, 17, 58902, 2178, 340, 42400, 1669, 220, 18, 21, 198, 743, 949, 17, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateStartTime_NonExistentJob(t *testing.T) { withRepository(func(r *RedisJobRepository) { startTime := time.Now() jobErrors, err := r.UpdateStartTime([]*JobStartInfo{{ JobId: "NonExistent", ClusterId: "cluster1", StartTime: startTime, }}) assert.NoError(t, err) assert.Len(t, jobErrors...
explode_data.jsonl/32056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 4289, 40203, 1604, 263, 840, 18128, 12245, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 18552, 2601, 353, 48137, 12245, 4624, 8, 341, 197, 21375, 1462, 1669, 882, 13244, 741, 197, 68577, 13877, 11, 1848, 1669, 435, 16689, 4020...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCRC32OverThrift(t *testing.T) { // note: do not use a struct with map since // iteration order is not guaranteed in Go and // so, each call to thrift encode will result in // different set of serialized bytes obj := &workflowpb.WorkflowExecutionInfo{ Execution: &commonpb.WorkflowExecution{ WorkflowId...
explode_data.jsonl/82691
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 463 }
[ 2830, 3393, 83339, 18, 17, 1918, 1001, 41380, 1155, 353, 8840, 836, 8, 341, 197, 322, 5185, 25, 653, 537, 990, 264, 2036, 448, 2415, 2474, 198, 197, 322, 19569, 1973, 374, 537, 19323, 304, 5994, 323, 198, 197, 322, 773, 11, 1817, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestText_ToUSI(t *testing.T) { cases := []struct { opt *Text want string }{ { &Text{Name: "test", Value: "abc", Default: "abc"}, "setoption name test value abc", }, { &Text{Name: "test", Value: "abc ", Default: ""}, "setoption name test value abc ", }, } for i, c := range cases { ...
explode_data.jsonl/57627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 1178, 38346, 2034, 40, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 64838, 220, 353, 1178, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 5, 1178, 63121, 25, 330, 1944, 497, 5162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetDepositAddress(t *testing.T) { _, err := h.GetDepositAddress(currency.BTC, "") if err == nil { t.Error("Test Failed - GetDepositAddress() error cannot be nil") } }
explode_data.jsonl/24355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 1949, 78982, 4286, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 305, 2234, 78982, 4286, 90475, 1785, 7749, 11, 14676, 743, 1848, 621, 2092, 341, 197, 3244, 6141, 445, 2271, 21379, 481, 2126, 78982, 4286, 368, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTop001(t *testing.T) { stats := "ert hgf asf asf asd qwe" want := []string{"ert", "hgf", "asf", "asd", "qwe"} got := Top10(stats) sort.Strings(got) sort.Strings(want) if !equalSlice(got, want) { t.Errorf("Top10(stats) == %q, want %q", got, want) } }
explode_data.jsonl/59202
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 5366, 15, 15, 16, 1155, 353, 8840, 836, 8, 341, 79659, 1669, 330, 529, 305, 45124, 438, 69, 438, 69, 438, 67, 2804, 896, 1837, 50780, 1669, 3056, 917, 4913, 529, 497, 330, 71, 45124, 497, 330, 300, 69, 497, 330, 79102,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsImpossible(t *testing.T) { f := ComparisonExpr{ Operator: NotEqualStr, Left: newIntVal("1"), Right: newIntVal("1"), } if !f.IsImpossible() { t.Error("IsImpossible: false, want true") } f = ComparisonExpr{ Operator: EqualStr, Left: newIntVal("1"), Right: newIntVal("1"), } i...
explode_data.jsonl/3378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 3872, 89655, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 42451, 16041, 515, 197, 197, 18461, 25, 2806, 2993, 2580, 345, 197, 197, 5415, 25, 257, 501, 1072, 2208, 445, 16, 4461, 197, 197, 5979, 25, 262, 501, 1072, 2208, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestScript(t *testing.T) { testscript.Run(t, testscript.Params{ Dir: filepath.Join("testdata", "scripts"), Cmds: map[string]func(*testscript.TestScript, bool, []string){ "appendline": cmdAppendLine, "chhome": cmdChHome, "cmpmod": cmdCmpMod, "edit": cmdEdit, "mkfile...
explode_data.jsonl/61045
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 494 }
[ 2830, 3393, 5910, 1155, 353, 8840, 836, 8, 341, 18185, 2282, 16708, 1155, 11, 1273, 2282, 58268, 515, 197, 197, 6184, 25, 26054, 22363, 445, 92425, 497, 330, 19831, 4461, 197, 6258, 2277, 82, 25, 2415, 14032, 60, 2830, 4071, 1944, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetURLTimeout(t *testing.T) { resp, _ := GetURL("https://httpstat.us/200?sleep=10000") if resp != 0 { t.Error("HTTP client get does not timeout for long queries.") } }
explode_data.jsonl/74300
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 1949, 3144, 7636, 1155, 353, 8840, 836, 8, 341, 34653, 11, 716, 1669, 2126, 3144, 445, 2428, 1110, 1254, 9878, 21916, 14, 17, 15, 15, 30, 25809, 28, 16, 15, 15, 15, 15, 1138, 743, 9039, 961, 220, 15, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAPI_GenerateEnv(t *testing.T) { t.Parallel() c := &Config{ Address: "127.0.0.1:8500", Token: "test", TokenFile: "test.file", Scheme: "http", TLSConfig: TLSConfig{ CAFile: "", CAPath: "", CertFile: "", KeyFile: "", Address: ...
explode_data.jsonl/44947
{ "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, 7082, 2646, 13220, 14359, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 1669, 609, 2648, 515, 197, 98090, 25, 256, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 23, 20, 15, 15, 756, 197, 33299, 25, 257,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyPipeline(t *testing.T) { testdata := "testing123" in := bytes.NewBufferString(testdata) out := bytes.NewBuffer(make([]byte, 0, 32)) pipe, err := NewPipeline(8) if err != nil { t.Errorf("Error creating Pipeline: %v", err) } drained := pipe.Process(context.Background(), in, out) d := <-draine...
explode_data.jsonl/46597
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 3522, 34656, 1155, 353, 8840, 836, 8, 341, 18185, 691, 1669, 330, 8840, 16, 17, 18, 1837, 17430, 1669, 5820, 7121, 4095, 703, 8623, 691, 340, 13967, 1669, 5820, 7121, 4095, 36944, 10556, 3782, 11, 220, 15, 11, 220, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestImagesFromBlob(t *testing.T) { imgs := make([]Mat, 0) img := IMRead("images/space_shuttle.jpg", IMReadGrayScale) if img.Empty() { t.Error("Invalid Mat in BlobFromImages test") } defer img.Close() imgs = append(imgs, img) imgs = append(imgs, img) blob := NewMat() defer blob.Close() BlobFromImages...
explode_data.jsonl/31268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 14228, 3830, 37985, 1155, 353, 8840, 836, 8, 341, 39162, 82, 1669, 1281, 10556, 11575, 11, 220, 15, 692, 39162, 1669, 6517, 4418, 445, 3642, 2687, 1306, 3712, 98243, 4819, 497, 6517, 4418, 28174, 6947, 340, 743, 4964, 11180,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJSONStreamWithError(t *testing.T) { render := New(Options{ StreamingJSON: true, }) h := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { render.JSON(w, 299, math.NaN()) }) res := httptest.NewRecorder() req, _ := http.NewRequest("GET", "/foo", nil) h.ServeHTTP(res, req) expect(t, r...
explode_data.jsonl/3678
{ "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, 5370, 3027, 66102, 1155, 353, 8840, 836, 8, 341, 33921, 1669, 1532, 7, 3798, 515, 197, 197, 76509, 5370, 25, 830, 345, 197, 8824, 9598, 1669, 1758, 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 TestFloat64SetRank(t *testing.T) { z := NewFloat64() v := randString("") z.Add(1, v) // test rank of exist value assert.Equal(t, 0, z.Rank(v)) // test rank of non-exist value assert.Equal(t, -1, z.Rank("no-such-"+v)) }
explode_data.jsonl/24991
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 5442, 21, 19, 1649, 22550, 1155, 353, 8840, 836, 8, 341, 20832, 1669, 1532, 5442, 21, 19, 741, 5195, 1669, 10382, 703, 31764, 20832, 1904, 7, 16, 11, 348, 340, 197, 322, 1273, 7077, 315, 3000, 897, 198, 6948, 12808, 1155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetDelayAndComputeCrashCount(t *testing.T) { var ( getDelayAndComputeCrashCountTests = []struct { name string elapsed time.Duration healthyProcessTime time.Duration crashCount int healthyCrashCount int wantDelay time.Duration wantCrashCount ...
explode_data.jsonl/1742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1294 }
[ 2830, 3393, 1949, 20039, 3036, 46254, 16001, 988, 2507, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 10366, 20039, 3036, 46254, 16001, 988, 2507, 18200, 284, 3056, 1235, 341, 298, 11609, 2290, 914, 198, 298, 197, 53118, 310, 882, 3379...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDocstore_Get(t *testing.T) { cases := []struct { name string conn string domid []byte txid []byte want *model.AnchorRecord }{ {"normal", conn1, dom1, tx1, ar1}, } for _, c := range cases { c := c t.Run(c.name, func(t *testing.T) { docs := store.NewDocstore(c.conn) defer docs.Close...
explode_data.jsonl/61311
{ "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, 9550, 4314, 13614, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 32917, 220, 914, 198, 197, 2698, 43019, 3056, 3782, 198, 197, 46237, 307, 220, 3056, 3782, 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...
3
func TestSchlick(t *testing.T) { shape := primitives.NewGlassSphere(nil, 1.5) r := algebra.NewRay(0, 0, math.Sqrt(2)/2, 0, 1, 0) xs := primitives.NewIntersections() i1 := primitives.NewIntersection(shape, -math.Sqrt(2)/2) i2 := primitives.NewIntersection(shape, math.Sqrt(2)/2) xs.GetHits().PushAll(i1, i2) comps ...
explode_data.jsonl/27657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 869 }
[ 2830, 3393, 30124, 1206, 1155, 353, 8840, 836, 8, 341, 197, 12231, 1669, 71194, 7121, 84003, 42959, 27907, 11, 220, 16, 13, 20, 340, 7000, 1669, 46876, 7121, 29187, 7, 15, 11, 220, 15, 11, 6888, 70815, 7, 17, 5620, 17, 11, 220, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRateLimiterMemoryStore_cleanupStaleVisitors(t *testing.T) { var inMemoryStore = NewRateLimiterMemoryStoreWithConfig(RateLimiterMemoryStoreConfig{Rate: 1, Burst: 3}) now = time.Now fmt.Println(now()) inMemoryStore.visitors = map[string]*Visitor{ "A": { Limiter: rate.NewLimiter(1, 3), lastSeen: now(...
explode_data.jsonl/33970
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 11564, 43, 17700, 10642, 6093, 42444, 623, 1574, 3120, 11905, 1155, 353, 8840, 836, 8, 341, 2405, 304, 10642, 6093, 284, 1532, 11564, 43, 17700, 10642, 6093, 2354, 2648, 2785, 349, 43, 17700, 10642, 6093, 2648, 90, 11564, 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...
1
func TestScanTypeHashingIgnoresNonScbLabels(t *testing.T) { originalScanType := scanType.DeepCopy() originalScanType.ObjectMeta.Labels = map[string]string{ "foo.example.com/bar": "54165165135", } modifiedScantype := scanType.DeepCopy() modifiedScantype.ObjectMeta.Labels = map[string]string{ "foo.example.com/b...
explode_data.jsonl/24499
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 26570, 929, 6370, 287, 40, 70, 2152, 416, 8121, 3326, 65, 23674, 1155, 353, 8840, 836, 8, 341, 197, 9889, 26570, 929, 1669, 8569, 929, 55602, 12106, 741, 197, 9889, 26570, 929, 80222, 4679, 82, 284, 2415, 14032, 30953, 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...
1
func TestStackBadParenting(t *testing.T) { integration.ProgramTest(t, &integration.ProgramTestOptions{ Dir: "stack_bad_parenting", Dependencies: []string{"@pulumi/pulumi"}, Quick: true, ExpectFailure: true, }) }
explode_data.jsonl/76354
{ "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, 4336, 17082, 8387, 287, 1155, 353, 8840, 836, 8, 341, 2084, 17376, 80254, 2271, 1155, 11, 609, 60168, 80254, 2271, 3798, 515, 197, 197, 6184, 25, 1843, 330, 7693, 34199, 15960, 287, 756, 197, 197, 48303, 25, 220, 3056, 917...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_buildAnnotations_RemovesNonWhitelisted(t *testing.T) { whitelist := []string{"topic"} userValues := map[string]string{ "com.url": "value", } out := buildAnnotations(whitelist, userValues) if _, ok := out["com.url"]; ok { t.Fail() } }
explode_data.jsonl/11984
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 20801, 21418, 54551, 10088, 8121, 1639, 56643, 13236, 1155, 353, 8840, 836, 8, 341, 197, 1312, 57645, 1669, 3056, 917, 4913, 16411, 63159, 19060, 6227, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 874, 7315, 788, 330, 957, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrefixIndex(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec(`CREATE TABLE t1 ( name varchar(12) DEFAULT NULL, KEY pname (name(12)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_c...
explode_data.jsonl/65467
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 596 }
[ 2830, 3393, 14335, 1552, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 692, 3244, 74, 50463, 10216, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSessionsController_Create(t *testing.T) { t.Parallel() app := cltest.NewApplicationEVMDisabled(t) require.NoError(t, app.Start()) config := app.GetConfig() client := http.Client{} tests := []struct { name string email string password string wantSession bool }{ {"incorrect pwd...
explode_data.jsonl/12808
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 680 }
[ 2830, 3393, 59062, 2051, 34325, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 28236, 1669, 1185, 1944, 7121, 4988, 36, 11187, 25907, 1155, 340, 17957, 35699, 1155, 11, 906, 12101, 12367, 25873, 1669, 906, 2234, 2648, 741, 25291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPodSpecWithMiscArgs(t *testing.T) { fakeClient := fakek8sclient.NewSimpleClientset() coreops.SetInstance(coreops.New(fakeClient)) fakeClient.Discovery().(*fakediscovery.FakeDiscovery).FakedServerVersion = &version.Info{ GitVersion: "v1.12.8", } nodeName := "testNode" cluster := &corev1.StorageCluster...
explode_data.jsonl/55449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 23527, 8327, 2354, 50979, 4117, 1155, 353, 8840, 836, 8, 341, 1166, 726, 2959, 1669, 12418, 74, 23, 82, 2972, 7121, 16374, 2959, 746, 741, 71882, 3721, 4202, 2523, 47867, 3721, 7121, 74138, 2959, 1171, 1166, 726, 2959, 10166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExecInTTY(t *testing.T) { if testing.Short() { return } rootfs, err := newRootfs() ok(t, err) defer remove(rootfs) config := newTemplateConfig(rootfs) container, err := newContainer(config) ok(t, err) defer container.Destroy() // Execute a first process in the container stdinR, stdinW, err := os....
explode_data.jsonl/2990
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 509 }
[ 2830, 3393, 10216, 641, 55544, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 853, 198, 197, 532, 33698, 3848, 11, 1848, 1669, 501, 8439, 3848, 741, 59268, 1155, 11, 1848, 340, 16867, 4057, 9206, 3848, 340, 25873, 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 TestDatabase_Hook_ToLibrary(t *testing.T) { // setup types want := new(library.Hook) want.SetID(1) want.SetRepoID(1) want.SetBuildID(1) want.SetNumber(1) want.SetSourceID("c8da1302-07d6-11ea-882f-4893bca275b8") want.SetCreated(time.Now().UTC().Unix()) want.SetHost("github.com") want.SetEvent("push") wan...
explode_data.jsonl/15586
{ "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, 5988, 2039, 1941, 38346, 16915, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 4494, 198, 50780, 1669, 501, 93299, 3839, 1941, 340, 50780, 4202, 915, 7, 16, 340, 50780, 4202, 25243, 915, 7, 16, 340, 50780, 4202, 11066, 915,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClusterStatus(t *testing.T) { type tst struct { client driver.Client options Options expected string status int err string } tests := testy.NewTable() tests.Add("driver doesn't implement Cluster interface", tst{ client: &mock.Client{}, status: StatusNotImplemented, err: "kivik:...
explode_data.jsonl/54496
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 28678, 2522, 1155, 353, 8840, 836, 8, 341, 13158, 71707, 2036, 341, 197, 25291, 256, 5579, 11716, 198, 197, 35500, 220, 14566, 198, 197, 42400, 914, 198, 197, 23847, 256, 526, 198, 197, 9859, 414, 914, 198, 197, 532, 78216...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1