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 TestChangeColumn(t *testing.T) { store, clean := testkit.CreateMockStoreWithSchemaLease(t, columnModifyLease) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create table t3 (a int default '0', b varchar(10), d int not null default '0')") tk.MustExec("insert into t3 se...
explode_data.jsonl/51310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1542 }
[ 2830, 3393, 4072, 2933, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 2354, 8632, 2304, 519, 1155, 11, 3250, 44427, 2304, 519, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVolumesInUse(t *testing.T) { withVolumesInUse := &v1.Node{ Status: v1.NodeStatus{ VolumesInUse: []v1.UniqueVolumeName{"foo"}, }, } cases := []struct { desc string node *v1.Node synced bool volumesInUse []v1.UniqueVolumeName expectVolumesInUse [...
explode_data.jsonl/31861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 704 }
[ 2830, 3393, 96325, 641, 10253, 1155, 353, 8840, 836, 8, 341, 46948, 96325, 641, 10253, 1669, 609, 85, 16, 21714, 515, 197, 58321, 25, 348, 16, 21714, 2522, 515, 298, 17446, 19705, 641, 10253, 25, 3056, 85, 16, 87443, 18902, 675, 4913,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_writeByte_should_grow_buffer(t *testing.T) { should := require.New(t) stream := NewStream(DefaultAPI(), nil, 1) stream.writeByte('1') should.Equal("1", string(stream.Buffer())) should.Equal(1, len(stream.buf)) stream.writeByte('2') should.Equal("12", string(stream.Buffer())) should.Equal(2, len(stream...
explode_data.jsonl/27136
{ "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, 9165, 7153, 43378, 1889, 651, 7776, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 44440, 1669, 1532, 3027, 87874, 7082, 1507, 2092, 11, 220, 16, 340, 44440, 3836, 7153, 492, 16, 1305, 197, 5445, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDomain(t *testing.T) { //Test cases cases := map[string]bool{ "http://google.com": true, "http://google.com/ding?true": true, "google.com/?ding=false": true, "google.com?ding=false": true, "nonexist.***": false, "google.com": true, "google.co...
explode_data.jsonl/30833
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 423 }
[ 2830, 3393, 13636, 1155, 353, 8840, 836, 8, 341, 197, 322, 2271, 5048, 198, 1444, 2264, 1669, 2415, 14032, 96436, 515, 197, 197, 76932, 1110, 17485, 905, 788, 1843, 830, 345, 197, 197, 76932, 1110, 17485, 905, 3446, 287, 30, 1866, 788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestGetType(t *testing.T) { for _, ft := range []flow.Type{ flow.TypeAPI, flow.TypeBrowser, } { t.Run(fmt.Sprintf("case=%s", ft), func(t *testing.T) { r := &settings.Flow{Type: ft} assert.Equal(t, ft, r.GetType()) }) } }
explode_data.jsonl/72738
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 58064, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 10482, 1669, 2088, 3056, 4965, 10184, 515, 197, 1166, 10303, 10184, 7082, 345, 197, 1166, 10303, 10184, 17878, 345, 197, 92, 341, 197, 3244, 16708, 28197, 17305, 445, 5638, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEncryptPaths(t *testing.T) { cDir := test_helpers.InitFS(t) pDir := cDir + ".mnt" sock := cDir + ".sock" test_helpers.MountOrFatal(t, cDir, pDir, "-ctlsock="+sock, "-extpass", "echo test") defer test_helpers.UnmountPanic(pDir) testCases := []struct { in []string sep0 bool }{ { []string{ ...
explode_data.jsonl/39056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 61520, 26901, 1155, 353, 8840, 836, 8, 341, 1444, 6184, 1669, 1273, 54473, 26849, 8485, 1155, 340, 3223, 6184, 1669, 272, 6184, 488, 5933, 40882, 698, 85809, 1669, 272, 6184, 488, 5933, 13199, 698, 18185, 54473, 1321, 629, 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...
5
func TestTryCatch(t *testing.T) { const SCRIPT = ` function A() { var x; try { throw 4; } catch(e) { x = e; } return x; } var rv = A(); ` testScript(SCRIPT, intToValue(4), t) }
explode_data.jsonl/75223
{ "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, 21453, 57760, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 7527, 362, 368, 341, 197, 2405, 856, 280, 197, 6799, 341, 298, 9581, 220, 19, 280, 197, 197, 92, 2287, 2026, 8, 341, 298, 10225, 284, 384, 280, 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 TestBadFuncNames(t *testing.T) { names := []string{ "", "2", "a-b", } for _, name := range names { testBadFuncName(name, t) } }
explode_data.jsonl/41531
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 17082, 9626, 7980, 1155, 353, 8840, 836, 8, 341, 93940, 1669, 3056, 917, 515, 197, 197, 39680, 197, 197, 1, 17, 756, 197, 197, 56693, 1455, 756, 197, 532, 2023, 8358, 829, 1669, 2088, 5036, 341, 197, 18185, 17082, 9626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGen128Bit(t *testing.T) { tracer, tc := NewTracer("x", NewConstSampler(true), NewNullReporter(), TracerOptions.Gen128Bit(true)) defer tc.Close() span := tracer.StartSpan("test", opentracing.ChildOf(emptyContext)) defer span.Finish() traceID := span.Context().(SpanContext).TraceID() assert.True(t, traceI...
explode_data.jsonl/44652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 9967, 16, 17, 23, 8344, 1155, 353, 8840, 836, 8, 341, 25583, 9584, 11, 17130, 1669, 1532, 1282, 9584, 445, 87, 497, 1532, 19167, 66048, 3715, 701, 1532, 3280, 52766, 1507, 1163, 9584, 3798, 65384, 16, 17, 23, 8344, 3715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiscardErr(t *testing.T) { r := NewReader(strings.NewReader("A,B,C\n1,2,3")) r.Headers() err := r.Discard(2) if err != ErrHeaderSet { t.Errorf("Unexpected error: Got %q, want %q", err, ErrHeaderSet) } }
explode_data.jsonl/21914
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 23477, 567, 7747, 1155, 353, 8840, 836, 8, 1476, 7000, 1669, 1532, 5062, 51442, 68587, 445, 32, 8161, 11289, 1699, 16, 11, 17, 11, 18, 5455, 7000, 43968, 2822, 9859, 1669, 435, 909, 47560, 7, 17, 340, 743, 1848, 961, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSmoothBlueRed(t *testing.T) { p := SmoothBlueRed() wantP := []color.NRGBA{ {59, 76, 192, 255}, {68, 90, 204, 255}, {77, 104, 215, 255}, {87, 117, 225, 255}, {98, 130, 234, 255}, {108, 142, 241, 255}, {119, 154, 247, 255}, {130, 165, 251, 255}, {141, 176, 254, 255}, {152, 185, 255, 255}, ...
explode_data.jsonl/423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 573 }
[ 2830, 3393, 83526, 10331, 6033, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 50725, 10331, 6033, 741, 50780, 47, 1669, 3056, 3423, 2067, 58927, 515, 197, 197, 90, 20, 24, 11, 220, 22, 21, 11, 220, 16, 24, 17, 11, 220, 17, 20, 20, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetricsExporterSendError(t *testing.T) { cleanup, err := obsreporttest.SetupRecordedMetricsTest() require.NoError(t, err) defer cleanup() factory := NewFactory() cfg := factory.CreateDefaultConfig() eCfg := cfg.(*Config) eCfg.APMServerURL = "http://testing.invalid" params := componenttest.NewNopExpor...
explode_data.jsonl/37018
{ "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, 27328, 88025, 11505, 1454, 1155, 353, 8840, 836, 8, 341, 1444, 60639, 11, 1848, 1669, 7448, 11736, 1944, 39820, 6471, 291, 27328, 2271, 741, 17957, 35699, 1155, 11, 1848, 340, 16867, 21290, 2822, 1166, 2919, 1669, 1532, 4153, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAcos(t *testing.T) { expected := []float64{1.5707963267948966, 0} out := talib.Acos([]float64{0, 1}) if !reflect.DeepEqual(expected, out) { t.Errorf("Expected %#v got %#v.", expected, out) } }
explode_data.jsonl/51210
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 32, 9407, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 3056, 3649, 21, 19, 90, 16, 13, 20, 22, 15, 22, 24, 21, 18, 17, 21, 22, 24, 19, 23, 24, 21, 21, 11, 220, 15, 532, 13967, 1669, 8210, 579, 875, 9407, 10556, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDataMetricsEval(t *testing.T) { f := newFixture(t) // Make a request to evaluate `data` testDataMetrics(t, f, "/data?metrics", []string{ "counter_server_query_cache_hit", "timer_rego_input_parse_ns", "timer_rego_query_parse_ns", "timer_rego_query_compile_ns", "timer_rego_query_eval_ns", "timer_...
explode_data.jsonl/79002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 530 }
[ 2830, 93200, 27328, 54469, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 692, 197, 322, 7405, 264, 1681, 311, 15442, 1565, 691, 3989, 18185, 1043, 27328, 1155, 11, 282, 11, 3521, 691, 30, 43262, 497, 3056, 917, 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 TestResourceShadowGetResources(t *testing.T) { type args struct { req *pb.GetResourcesRequest } tests := []struct { name string args args want map[string]*pb.Resource }{ { name: "list unauthorized device", args: args{ req: &pb.GetResourcesRequest{ DeviceIdFilter: []string{Resource0.De...
explode_data.jsonl/10742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2351 }
[ 2830, 3393, 4783, 23667, 1949, 11277, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 24395, 353, 16650, 2234, 11277, 1900, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 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 TestAzureMetadata_Flags(t *testing.T) { testcases := map[string][]resource.Flags{ AzureContainerRegistryResourceType: {}, AzureFirewallResourceType: {}, AzurePostgresqlServerResourceType: {}, AzurePostgresqlDatabaseResourceType: {}, AzurePublicIPResourceType: {}, ...
explode_data.jsonl/46083
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 757 }
[ 2830, 3393, 78107, 14610, 1400, 22851, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 2415, 14032, 45725, 9233, 51887, 515, 197, 22985, 50203, 4502, 15603, 4783, 929, 25, 257, 14573, 197, 22985, 50203, 16697, 16431, 4783, 929, 25, 1060...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGRPCServerSettingsError(t *testing.T) { tests := []struct { settings GRPCServerSettings err string }{ { err: "^failed to load TLS config: failed to load CA CertPool: failed to load CA /doesnt/exist:", settings: GRPCServerSettings{ NetAddr: confignet.NetAddr{ Endpoint: "127.0.0.1:12...
explode_data.jsonl/80330
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 668 }
[ 2830, 3393, 8626, 4872, 5475, 6086, 1454, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 62930, 14773, 4872, 5475, 6086, 198, 197, 9859, 414, 914, 198, 197, 59403, 197, 197, 515, 298, 9859, 25, 39915, 16091, 311, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFrontendRouter_RedirectToEntryPage__should_redirect_to_profile_when_auth_token_is_available(t *testing.T) { setup := setupTest(t, nil) defer setup.ctrl.Finish() attachAuthCookie(setup.testCtx) setup.router.RedirectToEntryPage(setup.testCtx) assert.Equal(t, http.StatusPermanentRedirect, setup.w.Code) a...
explode_data.jsonl/32975
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 23395, 408, 9523, 92940, 1226, 1249, 5874, 2665, 563, 5445, 30043, 2346, 13789, 47636, 14014, 6458, 6892, 26962, 1155, 353, 8840, 836, 8, 341, 84571, 1669, 6505, 2271, 1155, 11, 2092, 340, 16867, 6505, 57078, 991, 18176, 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...
1
func TestEdgeutilRepeatedInterpolation(t *testing.T) { // Check that points do not drift away from unit length when repeated // interpolations are done. for i := 0; i < 100; i++ { a := randomPoint() b := randomPoint() for j := 0; j < 1000; j++ { a = Interpolate(0.01, a, b) } if !a.Vector.IsUnit() { t...
explode_data.jsonl/74791
{ "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, 11656, 1314, 90989, 3306, 44686, 1155, 353, 8840, 836, 8, 341, 197, 322, 4248, 429, 3501, 653, 537, 33638, 3123, 504, 4982, 3084, 979, 11504, 198, 197, 322, 22876, 804, 525, 2814, 624, 2023, 600, 1669, 220, 15, 26, 600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseQueryString(t *testing.T) { type args struct { query string } tests := []struct { name string args args want types.QueryParams }{ { args: args{ query: "", }, want: types.QueryParams{}, }, { args: args{ query: "key1=valuex", }, want: types.QueryParams{ "key1"...
explode_data.jsonl/74272
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 461 }
[ 2830, 3393, 14463, 67001, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 27274, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 4494, 15685, 4870, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSocketRecv(t *testing.T) { ctx, sys := setupMockScriptEnv(` name="recv" type="testing" function vertical(ctx, domain) local conn, err = socket.connect(ctx, "127.0.0.1", 8080, "tcp") if (err ~= nil and err ~= "") then log(ctx, err) end local data data, err = conn:recv(15) if (err ...
explode_data.jsonl/51387
{ "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, 10286, 63483, 1155, 353, 8840, 836, 8, 341, 20985, 11, 5708, 1669, 6505, 11571, 5910, 14359, 61528, 197, 11609, 428, 33977, 698, 197, 13158, 428, 8840, 1837, 197, 7527, 12140, 7502, 11, 7947, 340, 298, 8854, 4534, 11, 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...
1
func Test_UnknownCommand(t *testing.T) { repo, err := repository.Initialize(dir) defer repo.CloseAllQueues() assert.Nil(t, err) mockTCPConn := NewMockTCPConn() controller := NewSession(mockTCPConn, repo) err = controller.UnknownCommand() assert.Equal(t, "ERROR Unknown command", err.Error()) assert.Equal(t, "E...
explode_data.jsonl/1418
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 62, 13790, 4062, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 11, 1848, 1669, 12542, 45829, 14161, 340, 16867, 15867, 10421, 2403, 25776, 1137, 741, 6948, 59678, 1155, 11, 1848, 692, 77333, 49896, 9701, 1669, 1532, 11571, 49896,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateCoinKey(t *testing.T) { t.Parallel() addr, mnemonic, err := server.GenerateCoinKey(hd.Secp256k1) require.NoError(t, err) // Test creation info, err := keyring.NewInMemory().NewAccount("xxx", mnemonic, "", hd.NewFundraiserParams(0, types.GetConfig().GetCoinType(), 0).String(), hd.Secp256k1) requi...
explode_data.jsonl/54498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 31115, 41180, 1592, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 53183, 11, 86801, 11, 1848, 1669, 3538, 57582, 41180, 1592, 3203, 67, 808, 757, 79, 17, 20, 21, 74, 16, 340, 17957, 35699, 1155, 11, 1848, 692, 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 TestDirectoryIfNotModified(t *testing.T) { defer afterTest(t) const indexContents = "I am a fake index.html file" fileMod := time.Unix(1000000000, 0).UTC() fileModStr := fileMod.Format(TimeFormat) dirMod := time.Unix(123, 0).UTC() indexFile := &fakeFileInfo{ basename: "index.html", modtime: fileMod, c...
explode_data.jsonl/48237
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 653 }
[ 2830, 3393, 9310, 2679, 2623, 19148, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 4777, 1922, 14803, 284, 330, 40, 1079, 264, 12418, 1922, 2564, 1034, 698, 17661, 4459, 1669, 882, 10616, 941, 7, 16, 15, 15, 15, 15, 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...
9
func TestStream_gotoNextReadFrameUnsafe(t *testing.T) { t.Run("test", func(t *testing.T) { assert := base.NewAssert(t) testEnd := streamBlockSize * (streamFrameArrayInitSize + 2) stream := NewStream() stream.SetWritePos(streamBlockSize * (streamFrameArrayInitSize + 3)) for i := streamPosBody; i < testEnd; i+...
explode_data.jsonl/21191
{ "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, 3027, 97732, 5847, 4418, 4369, 78770, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6948, 1669, 2331, 7121, 8534, 1155, 340, 197, 18185, 3727, 1669, 4269, 89932, 353, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMsgHeartbeatWillNotStopEnteringQuiesce(t *testing.T) { q := getTestQuiesce() threshold := q.quiesceThreshold() tests := []struct { tick uint64 quiesced bool }{ {threshold / 2, false}, {threshold, false}, {threshold + 1, true}, } for i, tt := range tests { q := getTestQuiesce() for k :=...
explode_data.jsonl/60148
{ "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, 6611, 45384, 22227, 9945, 2623, 10674, 82867, 2183, 550, 346, 1155, 353, 8840, 836, 8, 341, 18534, 1669, 633, 2271, 2183, 550, 346, 741, 197, 28902, 1669, 2804, 17283, 550, 346, 37841, 741, 78216, 1669, 3056, 1235, 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...
4
func TestAudit(t *testing.T) { var buf bytes.Buffer handler := WithAudit(&fakeHTTPHandler{}, &fakeRequestContextMapper{ user: &user.DefaultInfo{Name: "admin"}, }, &buf) req, _ := http.NewRequest("GET", "/api/v1/namespaces/default/pods", nil) req.RemoteAddr = "127.0.0.1" handler.ServeHTTP(httptest.NewRecorder(...
explode_data.jsonl/18069
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 449 }
[ 2830, 3393, 74516, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 5820, 22622, 271, 53326, 1669, 3085, 74516, 2099, 30570, 9230, 3050, 22655, 609, 30570, 1900, 1972, 10989, 515, 197, 19060, 25, 609, 872, 13275, 1731, 63121, 25, 330, 2882, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckAndGenCerts(t *testing.T) { t.Parallel() tempDir := filepath.Join(os.TempDir(), "gct-temp-tls") cleanup := func() { if err := os.RemoveAll(tempDir); err != nil { t.Errorf("unable to remove temp dir %s, manual deletion required", tempDir) } } if err := genCert(tempDir); err != nil { cleanup...
explode_data.jsonl/59243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 386 }
[ 2830, 3393, 3973, 3036, 9967, 34, 15546, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 16280, 6184, 1669, 26054, 22363, 9638, 65009, 6184, 1507, 330, 70, 302, 68190, 2385, 4730, 1138, 1444, 60639, 1669, 2915, 368, 341, 197, 743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSaveMonEndpoints(t *testing.T) { clientset := test.New(1) configDir, _ := ioutil.TempDir("", "") defer os.RemoveAll(configDir) c := New(&clusterd.Context{Clientset: clientset, ConfigDir: configDir}, "ns", "", cephv1.NetworkSpec{}, metav1.OwnerReference{}, &sync.Mutex{}) setCommonMonProperties(c, 1, cephv1...
explode_data.jsonl/57257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 580 }
[ 2830, 3393, 8784, 11095, 80786, 1155, 353, 8840, 836, 8, 341, 25291, 746, 1669, 1273, 7121, 7, 16, 340, 25873, 6184, 11, 716, 1669, 43144, 65009, 6184, 19814, 14676, 16867, 2643, 84427, 8754, 6184, 340, 1444, 1669, 1532, 2099, 18855, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCalculateStorageBuckets(t *testing.T) { t.Parallel() testCases := []struct { name string in *Config expected sets.String }{ { name: "S3 provider prefix gets removed from Plank config", in: &Config{ProwConfig: ProwConfig{Plank: Plank{DefaultDecorationConfigs: []*DefaultDecorationConfi...
explode_data.jsonl/41055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 983 }
[ 2830, 3393, 47866, 5793, 33, 38551, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 17430, 981, 353, 2648, 198, 197, 42400, 7289, 6431, 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...
2
func TestGetPodsTotalRequests(t *testing.T) { testCases := []struct { pods *api.PodList expectedReqs map[api.ResourceName]resource.Quantity }{ { pods: &api.PodList{ Items: []api.Pod{ { Spec: api.PodSpec{ Containers: []api.Container{ { Resources: api.ResourceRequ...
explode_data.jsonl/34937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1143 }
[ 2830, 3393, 1949, 23527, 82, 7595, 35295, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 3223, 29697, 260, 353, 2068, 88823, 852, 198, 197, 42400, 693, 26358, 2415, 58, 2068, 20766, 675, 60, 9233, 66267, 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 TestOther(t *testing.T) { if testing.Short() { t.Skip() } execStatements(t, []string{ "create table stream1(id int, val varbinary(128), primary key(id))", "create table stream2(id int, val varbinary(128), primary key(id))", }) defer execStatements(t, []string{ "drop table stream1", "drop table stre...
explode_data.jsonl/70179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 609 }
[ 2830, 3393, 11409, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 630, 67328, 93122, 1155, 11, 3056, 917, 515, 197, 197, 1, 3182, 1965, 4269, 16, 3724, 526, 11, 1044, 762, 25891, 7, 16, 17, 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...
4
func TestGenModel_Issue398(t *testing.T) { specDoc, err := loads.Spec("../fixtures/codegen/todolist.models.yml") require.NoError(t, err) definitions := specDoc.Spec().Definitions k := "Property" opts := opts() genModel, err := makeGenDefinition(k, "models", definitions[k], specDoc, opts) require.NoError(t, err)...
explode_data.jsonl/2546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 9967, 1712, 7959, 83890, 18, 24, 23, 1155, 353, 8840, 836, 8, 341, 98100, 9550, 11, 1848, 1669, 20907, 36473, 17409, 45247, 46928, 4370, 5523, 347, 34675, 8235, 33936, 1138, 17957, 35699, 1155, 11, 1848, 692, 7452, 4054, 82,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGocloak_GetUserOfflineSessionsForClient(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) SetUpTestUser(t, client) _, err := client.GetToken( cfg.GoCloak.Realm, TokenOptions{ ClientID: cfg.GoCloak.ClientID, ClientSecret: cfg.GoCloak.ClientSecret, Username:...
explode_data.jsonl/79565
{ "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, 509, 385, 585, 13614, 1474, 52563, 59062, 2461, 2959, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 22212, 2324, 2271, 1474, 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...
1
func TestListenSuccess(t *testing.T) { data := logRequest{ ServiceID: "id", Data: "data", } s, server := newServiceAndServer(t) go server.Start() l := New(s, LogOutputOption(ioutil.Discard)) go l.Start() _, execution, err := server.Execute("log", data) assert.Nil(t, err) assert.Equal(t, "success", ...
explode_data.jsonl/61161
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 38714, 7188, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 1487, 1900, 515, 197, 91619, 915, 25, 330, 307, 756, 197, 40927, 25, 414, 330, 691, 756, 197, 630, 1903, 11, 3538, 1669, 501, 1860, 3036, 5475, 1155, 340, 30680, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProjectPrepare(t *testing.T) { p := NewProject("project_test.go") if p.Matcher == nil { t.Fatal("Matcher is nil, not defaulted") } mainfile, _ := filepath.Abs("project_test.go") if p.MainFile != mainfile { t.Fatalf("Mainfile is not the correct, expected %s but got %s", mainfile, p.MainFile) } if ...
explode_data.jsonl/41674
{ "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, 7849, 50590, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1532, 7849, 445, 4987, 4452, 18002, 5130, 743, 281, 76452, 621, 2092, 341, 197, 3244, 26133, 445, 37554, 374, 2092, 11, 537, 92989, 1138, 197, 630, 36641, 1192, 11, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateLevelFromConfigMap(t *testing.T) { logger, atomicLevel := NewLogger("", "debug") want := zapcore.DebugLevel if atomicLevel.Level() != zapcore.DebugLevel { t.Fatalf("Expected initial logger level to %v, got: %v", want, atomicLevel.Level()) } cm := &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta...
explode_data.jsonl/37332
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 4289, 4449, 3830, 2648, 2227, 1155, 353, 8840, 836, 8, 341, 17060, 11, 24510, 4449, 1669, 1532, 7395, 19814, 330, 8349, 1138, 50780, 1669, 32978, 2153, 20345, 4449, 198, 743, 24510, 4449, 25259, 368, 961, 32978, 2153, 20345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateEmptyContext(t *testing.T) { config := clientcmdapi.NewConfig() config.CurrentContext = "anything" config.Contexts["anything"] = &clientcmdapi.Context{} test := configValidationTest{ config: config, expectedErrorSubstring: []string{"user was not specified for context \"anything\...
explode_data.jsonl/13489
{ "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, 17926, 3522, 1972, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2943, 8710, 2068, 7121, 2648, 741, 25873, 11517, 1972, 284, 330, 72154, 698, 25873, 9328, 82, 1183, 72154, 1341, 284, 609, 2972, 8710, 2068, 9328, 16094, 18185, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestYouonP(t *testing.T) { const want = "pyapyupyopyapyipyupyepyo" for _, v := range [2]string{"ぴゃぴゅぴょぴぁぴぃぴぅぴぇぴぉ", "ピャピュピョピァピィピゥピェピォ"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11332
{ "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, 2610, 263, 47, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 3288, 9667, 57498, 1266, 9667, 22947, 57498, 747, 16032, 1837, 2023, 8358, 348, 1669, 2088, 508, 17, 30953, 4913, 139813, 124234, 139813, 138218, 139813, 12418...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientSniffFailure(t *testing.T) { _, err := NewClient(SetURL("http://127.0.0.1:19200", "http://127.0.0.1:19201")) if err == nil { t.Fatalf("expected cluster to fail with no nodes found") } }
explode_data.jsonl/37996
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 2959, 20720, 3092, 17507, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 1532, 2959, 52474, 3144, 445, 1254, 1110, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 16, 24, 17, 15, 15, 497, 330, 1254, 1110, 16, 17, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadResponse(t *testing.T) { tests := []struct { name string mangle func(*gremlin.Response) *gremlin.Response }{ { name: "NoStatus", mangle: func(rsp *gremlin.Response) *gremlin.Response { return rsp }, }, { name: "Malformed", mangle: func(rsp *gremlin.Response) *gremlin.Respons...
explode_data.jsonl/9356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 624 }
[ 2830, 3393, 17082, 2582, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 2109, 4044, 2915, 4071, 15525, 40926, 12574, 8, 353, 15525, 40926, 12574, 198, 197, 59403, 197, 197, 515, 298, 11609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIntegrationsGetAws(t *testing.T) { var ( intgGUID = intgguid.New() apiPath = fmt.Sprintf("external/integrations/%s", intgGUID) fakeServer = lacework.MockServer() ) fakeServer.MockAPI(apiPath, func(w http.ResponseWriter, r *http.Request) { assert.Equal(t, "GET", r.Method, "GetAws should be a GET...
explode_data.jsonl/81116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 1072, 14412, 804, 1949, 47359, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 2084, 70, 41778, 256, 284, 526, 14398, 2423, 7121, 741, 197, 54299, 1820, 262, 284, 8879, 17305, 445, 20921, 31114, 14412, 804, 12627, 82, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFirestoreRollbackError(t *testing.T) { errCode := codes.PermissionDenied mockFirestore.err = gstatus.Error(errCode, "test error") var formattedDatabase string = fmt.Sprintf("projects/%s/databases/%s", "[PROJECT]", "[DATABASE]") var transaction []byte = []byte("-34") var request = &firestorepb.RollbackReq...
explode_data.jsonl/27387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 48513, 32355, 1419, 1454, 1155, 353, 8840, 836, 8, 341, 9859, 2078, 1669, 13912, 73409, 54481, 198, 77333, 48513, 18441, 284, 342, 2829, 6141, 3964, 2078, 11, 330, 1944, 1465, 5130, 2405, 23126, 5988, 914, 284, 8879, 17305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExample(t *testing.T) { b := New() // {} b.AppendBools(true, true, false) // {1, 1, 0} b.AppendBools(true) // {1, 1, 0, 1} b.AppendByte(0x02, 4) // {1, 1, 0, 1, 0, 0, 1, 0} expected := []bool{b1, b1, b0, b1, b0, b0, b1, b0} if !equal(b.Bits(), expected) { ...
explode_data.jsonl/67088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 13314, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 1532, 368, 5180, 442, 5613, 2233, 8982, 1233, 3069, 3715, 11, 830, 11, 895, 8, 442, 314, 16, 11, 220, 16, 11, 220, 15, 532, 2233, 8982, 1233, 3069, 3715, 8, 1060, 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 TestMissingDependencyFixes(t *testing.T) { testenv.NeedsGo1Point(t, 14) const mod = ` -- go.mod -- module mod.com go 1.12 -- main.go -- package main import "example.com/blah" import "random.org/blah" var _, _ = blah.Name, hello.Name ` const want = `module mod.com go 1.12 require random.org v1.2.3 ` wit...
explode_data.jsonl/35672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 424 }
[ 2830, 3393, 25080, 36387, 25958, 288, 1155, 353, 8840, 836, 8, 341, 18185, 3160, 2067, 68, 6767, 10850, 16, 2609, 1155, 11, 220, 16, 19, 340, 4777, 1463, 284, 22074, 313, 728, 10929, 39514, 4352, 1463, 905, 271, 3346, 220, 16, 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...
4
func TestVolumeProvisionerWithIncompleteConfig(t *testing.T) { plugMgr, tmpDir := newPluginMgr(t, makeScaleIOSecret(testSecret, testns)) defer os.RemoveAll(tmpDir) plug, err := plugMgr.FindPluginByName(sioPluginName) if err != nil { t.Fatalf("Can't find the plugin %v", sioPluginName) } sioPlug, ok := plug.(*si...
explode_data.jsonl/29496
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 416 }
[ 2830, 3393, 18902, 1336, 13013, 261, 2354, 96698, 2648, 1155, 353, 8840, 836, 8, 341, 197, 47474, 25567, 11, 4174, 6184, 1669, 501, 11546, 25567, 1155, 11, 1281, 6947, 28136, 50856, 8623, 19773, 11, 1273, 4412, 1171, 16867, 2643, 84427, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerlessRecordCustomEvent(t *testing.T) { cfgFn := func(cfg *Config) { cfg.ServerlessMode.Enabled = true } app := testApp(nil, cfgFn, t) attributes := map[string]interface{}{"zip": 1} app.RecordCustomEvent("myType", attributes) app.expectNoLoggedErrors(t) app.ExpectCustomEvents(t, []internal.WantEvent...
explode_data.jsonl/52868
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 5475, 1717, 6471, 10268, 1556, 1155, 353, 8840, 836, 8, 341, 50286, 24911, 1669, 2915, 28272, 353, 2648, 8, 314, 13286, 22997, 1717, 3636, 13690, 284, 830, 456, 28236, 1669, 1273, 2164, 27907, 11, 13286, 24911, 11, 259, 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 TestDaoIncrLimitBizCache(t *testing.T) { incrLimitNotLiveCache() convey.Convey("IncrLimitBizCache", t, func(ctx convey.C) { count, err := d.IncrLimitBizCache(context.Background(), day, app, mid, biz) ctx.Convey("Then err should be nil.count should not be nil.", func(ctx convey.C) { ctx.So(err, convey.Shou...
explode_data.jsonl/76236
{ "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, 12197, 641, 5082, 16527, 97481, 8233, 1155, 353, 8840, 836, 8, 341, 197, 98428, 16527, 2623, 20324, 8233, 741, 37203, 5617, 4801, 5617, 445, 641, 5082, 16527, 97481, 8233, 497, 259, 11, 2915, 7502, 20001, 727, 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 Test_Hoverfly_GetSimulation_ReturnsMultipleRequestResponsePairs(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) unit.Simulation.AddPair(&models.RequestMatcherResponsePair{ RequestMatcher: models.RequestMatcher{ Destination: []models.RequestFieldMatchers{ { ...
explode_data.jsonl/45368
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 898 }
[ 2830, 3393, 2039, 1975, 21642, 13614, 64554, 53316, 82, 32089, 1900, 2582, 54228, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 81189, 808, 60361, 1904, 1244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalUint64(t *testing.T) { a := assert.New(t) test := func(expected uint64, b []byte) { actual, _ := UnmarshalUint64(b) a.Equal(expected, actual) } test(uint64Value1, uint64Bytes1) test(uint64Value2, uint64Bytes2) test(uint64Value3, uint64Bytes3) }
explode_data.jsonl/72602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 1806, 27121, 21570, 21, 19, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 340, 18185, 1669, 2915, 15253, 2622, 21, 19, 11, 293, 3056, 3782, 8, 341, 197, 88814, 11, 716, 1669, 1230, 27121, 21570, 21, 19, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateOvsMap(t *testing.T) { myMap := make(map[int]string) myMap[1] = "hello" myMap[2] = "world" oMap, err := NewOvsMap(myMap) if err != nil { t.Error("Error creating OvsMap ", err) } data, err := json.Marshal(oMap) if err != nil { t.Error("Error Marshalling OvsMap", err) } expected1 := `["map"...
explode_data.jsonl/37845
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 270 }
[ 2830, 3393, 17926, 46, 11562, 2227, 1155, 353, 8840, 836, 8, 341, 13624, 2227, 1669, 1281, 9147, 18640, 30953, 340, 13624, 2227, 58, 16, 60, 284, 330, 14990, 698, 13624, 2227, 58, 17, 60, 284, 330, 14615, 698, 22229, 2227, 11, 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...
6
func TestUseSnapshot(t *testing.T) { catalogStore, err := store.Open("catalog_snap", store.DefaultOptions()) require.NoError(t, err) defer os.RemoveAll("catalog_snap") dataStore, err := store.Open("sqldata_snap", store.DefaultOptions()) require.NoError(t, err) defer os.RemoveAll("sqldata_snap") engine, err := ...
explode_data.jsonl/64064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 634 }
[ 2830, 3393, 10253, 15009, 1155, 353, 8840, 836, 8, 341, 1444, 7750, 6093, 11, 1848, 1669, 3553, 12953, 445, 26539, 74175, 497, 3553, 13275, 3798, 2398, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 445, 26539, 74175, 5130, 8924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSponsorSlidesApi(t *testing.T) { web := setupTestWeb(t) slide1 := model.SponsorSlide{0, "subtitle", "line1", "line2", "image", 2, 1} slide2 := model.SponsorSlide{0, "Chezy Sponsaur", "Teh", "Chezy Pofs", "ejface.jpg", 54, 2} assert.Nil(t, web.arena.Database.CreateSponsorSlide(&slide1)) assert.Nil(t, web....
explode_data.jsonl/75530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 50, 30241, 73758, 6563, 1155, 353, 8840, 836, 8, 341, 97250, 1669, 6505, 2271, 5981, 1155, 692, 1903, 16655, 16, 1669, 1614, 808, 30241, 29466, 90, 15, 11, 330, 40417, 497, 330, 1056, 16, 497, 330, 1056, 17, 497, 330, 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...
2
func Test_Mock_Return_Run_Out_Of_Order(t *testing.T) { // make a test impl object var mockedService = new(TestExampleImplementation) f := func(args Arguments) { arg := args.Get(0).(*ExampleType) arg.ran = true } c := mockedService.Mock. On("TheExampleMethod3", AnythingOfType("*mock.ExampleType")). ...
explode_data.jsonl/8583
{ "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, 1245, 1176, 53316, 84158, 36675, 89355, 53267, 1155, 353, 8840, 836, 8, 972, 197, 322, 1281, 264, 1273, 11605, 1633, 319, 2405, 46149, 1860, 284, 501, 31159, 13314, 36850, 1218, 1166, 1669, 2915, 7356, 27702, 8, 972, 197, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWithSignedRootCertificates(t *testing.T) { t.Parallel() //use Org1 testdata fileBase := "Org1" certPEMBlock, err := ioutil.ReadFile(filepath.Join("testdata", "certs", fileBase+"-server1-cert.pem")) keyPEMBlock, err := ioutil.ReadFile(filepath.Join("testdata", "certs", fileBase+"-server1-key.pem")) caPEM...
explode_data.jsonl/2125
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 881 }
[ 2830, 3393, 2354, 49312, 8439, 97140, 1155, 353, 8840, 836, 8, 1476, 3244, 41288, 7957, 741, 197, 322, 810, 33706, 16, 1273, 691, 198, 17661, 3978, 1669, 330, 42437, 16, 698, 1444, 529, 1740, 44, 4713, 11, 1848, 1669, 43144, 78976, 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...
7
func TestAbsCollection_Reverse(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 3, 4, 5, 6}) vs := intColl.Reverse() if vs.Count() != 6 { t.Fatal("Reverse error") } }
explode_data.jsonl/66449
{ "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, 27778, 6482, 62, 45695, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 3518, 5195, 82, 1669, 526, 15265, 95691, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPersistentVolumeClaimSelectorFilter(t *testing.T) { cli := &client{} now := time.Now() now = time.Date(now.Year(), now.Month(), now.Day(), now.Hour(), 1, 36, 0, now.Location()) responseMap := map[string]interface{}{ "/persistentvolumeclaims/": &corev1.PersistentVolumeClaimList{ Items: []corev1.Persis...
explode_data.jsonl/51920
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1714 }
[ 2830, 3393, 53194, 18902, 45544, 5877, 5632, 1155, 353, 8840, 836, 8, 341, 86448, 1669, 609, 2972, 16094, 80922, 1669, 882, 13244, 741, 80922, 284, 882, 8518, 32263, 43629, 1507, 1431, 48383, 1507, 1431, 49169, 1507, 1431, 73550, 1507, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestManageDataRoundTrip(t *testing.T) { kp0 := newKeypair0() sourceAccount := NewSimpleAccount(kp0.Address(), int64(3556091187167235)) for _, testCase := range []struct { name string value []byte }{ { "nil data", nil, }, { "empty data slice", []byte{}, }, { "non-empty data slice"...
explode_data.jsonl/62885
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 841 }
[ 2830, 3393, 33076, 1043, 27497, 56352, 1155, 353, 8840, 836, 8, 341, 16463, 79, 15, 1669, 501, 6608, 1082, 1310, 15, 741, 47418, 7365, 1669, 1532, 16374, 7365, 5969, 79, 15, 26979, 1507, 526, 21, 19, 7, 18, 20, 20, 21, 15, 24, 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 TestNestedUnmarshal(t *testing.T) { result := nestedMarshalTestStruct{} err := Unmarshal(nestedTestToml, &result) expected := nestedTestData if err != nil { t.Fatal(err) } if !reflect.DeepEqual(result, expected) { t.Errorf("Bad nested unmarshal: expected %v, got %v", expected, result) } }
explode_data.jsonl/46324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 71986, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 24034, 55438, 2271, 9422, 16094, 9859, 1669, 1230, 27121, 1445, 9980, 2271, 24732, 75, 11, 609, 1382, 340, 42400, 1669, 24034, 83920, 198, 743, 1848, 961, 2092, 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...
3
func TestStrArray_Walk(t *testing.T) { gtest.C(t, func(t *gtest.T) { array := garray.NewStrArrayFrom(g.SliceStr{"1", "2"}) t.Assert(array.Walk(func(value string) string { return "key-" + value }), g.Slice{"key-1", "key-2"}) }) }
explode_data.jsonl/53118
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 2580, 1857, 2763, 1692, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11923, 1669, 342, 1653, 7121, 2580, 1857, 3830, 3268, 95495, 2580, 4913, 16, 497, 330, 17, 23625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetricGroupData_toDistributionPointEquivalence(t *testing.T) { type scrape struct { at int64 value float64 metric string } tests := []struct { name string labels labels.Labels scrapes []*scrape }{ { name: "histogram", labels: labels.Labels{{Name: "a", Value: "A"}, {Name: "le"...
explode_data.jsonl/19394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1581 }
[ 2830, 3393, 54310, 2808, 1043, 2346, 62377, 2609, 24509, 88790, 1155, 353, 8840, 836, 8, 341, 13158, 57128, 2036, 341, 197, 35447, 257, 526, 21, 19, 198, 197, 16309, 220, 2224, 21, 19, 198, 197, 2109, 16340, 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
func Test_BuildImageWithContexts(t *testing.T) { type TestCase struct { Name string ContextPath string ContextArchive func() (io.Reader, error) ExpectedEchoOutput string Dockerfile string ExpectedError error } testCases := []TestCase{ TestCase{ Name: "test buil...
explode_data.jsonl/484
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1782 }
[ 2830, 3393, 96686, 1906, 91101, 82, 1155, 353, 8840, 836, 8, 341, 13158, 30573, 2036, 341, 197, 21297, 2290, 914, 198, 197, 70871, 1820, 286, 914, 198, 197, 70871, 42502, 257, 2915, 368, 320, 815, 47431, 11, 1465, 340, 197, 197, 18896...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestGetArchiveFailure(t *testing.T) { locator := config.NewLocator(config.Config) serverSocketPath, stop := runRepoServer(t, locator) defer stop() client, conn := newRepositoryClient(t, serverSocketPath) defer conn.Close() testRepo, _, cleanupFn := testhelper.NewTestRepo(t) defer cleanupFn() commitID :=...
explode_data.jsonl/60644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1708 }
[ 2830, 3393, 1949, 42502, 17507, 1155, 353, 8840, 836, 8, 341, 197, 68033, 1669, 2193, 7121, 33831, 8754, 10753, 340, 41057, 10286, 1820, 11, 2936, 1669, 1598, 25243, 5475, 1155, 11, 47117, 340, 16867, 2936, 2822, 25291, 11, 4534, 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 TestLogDivider(t *testing.T) { assert := assert.New(t) var b bytes.Buffer lg := NewLogDivider(true, &b) var eg errgroup.Group eg.Go(func() error { lg.Log( func(w io.Writer) { _, _ = w.Write([]byte{byte('1')}) time.Sleep(1 * time.Millisecond) _, _ = w.Write([]byte{byte('2')}) time.Sleep(1...
explode_data.jsonl/66204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 719 }
[ 2830, 3393, 2201, 42571, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2405, 293, 5820, 22622, 198, 8810, 70, 1669, 1532, 2201, 42571, 3715, 11, 609, 65, 340, 2405, 8695, 1848, 4074, 5407, 198, 197, 791, 67131, 1855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKpt_Dependencies(t *testing.T) { tests := []struct { description string kpt latestV1.KptDeploy createFiles map[string]string kustomizations map[string]string expected []string shouldErr bool }{ { description: "bad dir", kpt: latestV1.KptDeploy{ Dir: "invali...
explode_data.jsonl/9523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1605 }
[ 2830, 3393, 42, 417, 1557, 12769, 5946, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 262, 914, 198, 197, 16463, 417, 310, 5535, 53, 16, 11352, 417, 69464, 198, 197, 39263, 10809, 262, 2415, 14032, 30953, 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 TestIssue1034(t *testing.T) { skipOn(t, "broken - cgo stacktraces", "386") protest.MustHaveCgo(t) // The external linker on macOS produces an abbrev for DW_TAG_subprogram // without the "has children" flag, we should support this. withTestProcess("cgostacktest/", t, func(p *proc.Target, fixture protest.Fixtu...
explode_data.jsonl/56299
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 42006, 16, 15, 18, 19, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 1925, 1155, 11, 330, 48909, 481, 272, 3346, 5611, 376, 2434, 497, 330, 18, 23, 21, 1138, 197, 776, 1944, 50463, 12116, 34, 3346, 1155, 692, 197, 322, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContractCreation(t *testing.T) { input := CreateTestInput(t) t.Run("should allow call on a contract with no code when calling with empty data (transfer)", func(t *testing.T) { result, err := input.CvmKeeper.Call(input.Ctx, Addrs[0], Addrs[1], 10, []byte{}, []*payload.ContractMeta{}, false, false, false) ...
explode_data.jsonl/14829
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 610 }
[ 2830, 3393, 14067, 32701, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 4230, 2271, 2505, 1155, 692, 3244, 16708, 445, 5445, 2138, 1618, 389, 264, 5116, 448, 902, 2038, 979, 8098, 448, 4287, 821, 320, 24188, 11583, 2915, 1155, 353, 8840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNaNExpression(t *testing.T) { expr, err := ParseExpr("NaN") require.NoError(t, err) nl, ok := expr.(*NumberLiteral) require.True(t, ok, "expected number literal but got %T", expr) require.True(t, math.IsNaN(float64(nl.Val)), "expected 'NaN' in number literal but got %v", nl.Val) }
explode_data.jsonl/3393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 22831, 9595, 1155, 353, 8840, 836, 8, 341, 8122, 649, 11, 1848, 1669, 14775, 16041, 445, 22831, 1138, 17957, 35699, 1155, 11, 1848, 692, 9038, 75, 11, 5394, 1669, 15169, 41399, 2833, 17350, 340, 17957, 32443, 1155, 11, 5394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertToBit(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t, t1") tk.MustExec("create table t (a bit(64))") tk.MustExec("create table t1 (a varchar(2))") tk.MustExec(`insert t1 valu...
explode_data.jsonl/65432
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 701 }
[ 2830, 3393, 12012, 1249, 8344, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollectFloat32(t *testing.T) { v := &Value{data: []float32{float32(1), float32(1), float32(1), float32(1), float32(1), float32(1)}} collected := v.CollectFloat32(func(index int, val float32) interface{} { return index }) collectedArr := collected.MustInterSlice() if assert.Equal(t, 6, len(collectedAr...
explode_data.jsonl/23511
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 47504, 5442, 18, 17, 1155, 353, 8840, 836, 8, 1476, 5195, 1669, 609, 1130, 90, 691, 25, 3056, 3649, 18, 17, 90, 3649, 18, 17, 7, 16, 701, 2224, 18, 17, 7, 16, 701, 2224, 18, 17, 7, 16, 701, 2224, 18, 17, 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 TestNodeSelectorRequirementKeyExistsInNodeSelectorTerms(t *testing.T) { tests := []struct { name string reqs []v1.NodeSelectorRequirement terms []v1.NodeSelectorTerm exists bool }{ { name: "empty set of keys in empty set of terms", reqs: []v1.NodeSelectorRequirement{}, terms: []v1.No...
explode_data.jsonl/25718
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2374 }
[ 2830, 3393, 1955, 5877, 75802, 1592, 15575, 641, 1955, 5877, 43128, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 24395, 82, 256, 3056, 85, 16, 21714, 5877, 75802, 198, 197, 197, 18347, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetCompositionService(t *testing.T) { var compositionservice CompositionServiceRPCs compositionservice.GetCompositionServiceRPC = mockGetCompositionService mockApp := iris.New() redfishRoutes := mockApp.Party("/redfish/v1/CompositionService") redfishRoutes.Get("/", compositionservice.GetCompositionServic...
explode_data.jsonl/11525
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 1949, 75683, 1860, 1155, 353, 8840, 836, 8, 341, 2405, 18037, 7936, 67106, 1860, 29528, 82, 198, 32810, 3487, 7936, 2234, 75683, 1860, 29528, 284, 7860, 1949, 75683, 1860, 271, 77333, 2164, 1669, 63942, 7121, 741, 197, 1151, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlow(t *testing.T) { conf := internal.NewConfigurationWithDefaults(t) alice := x.NewUUID() malice := x.NewUUID() for k, tc := range []struct { r *settings.Flow s *session.Session expectErr bool }{ { r: settings.MustNewFlow( conf, time.Hour, &http.Request{URL: urlx.P...
explode_data.jsonl/72737
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 636 }
[ 2830, 3393, 18878, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 5306, 7121, 7688, 2354, 16273, 1155, 692, 197, 63195, 1669, 856, 7121, 24754, 741, 2109, 63195, 1669, 856, 7121, 24754, 741, 2023, 595, 11, 17130, 1669, 2088, 3056, 1235, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestWorkerMaintenanceCoolDown(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() wt, err := newWorkerTesterCustomDependency(t.Name(), &dependencies.DependencyDisableCriticalOnMaxBalance{}, modules.ProdDependencies) if err != nil { t.Fatal(err) } defer func() { err := wt.Close() if err ...
explode_data.jsonl/42606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 733 }
[ 2830, 3393, 21936, 92735, 56750, 4454, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 2822, 6692, 83, 11, 1848, 1669, 501, 21936, 58699, 10268, 36387, 1155, 2967, 1507...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerConnError(t *testing.T) { s := &Server{ Handler: func(ctx *RequestCtx) { ctx.Error("foobar", 423) }, } rw := &readWriter{} rw.r.WriteString("GET /foo/bar?baz HTTP/1.1\r\nHost: google.com\r\n\r\n") ch := make(chan error) go func() { ch <- s.ServeConn(rw) }() select { case err := <-ch:...
explode_data.jsonl/73311
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 473 }
[ 2830, 3393, 5475, 9701, 1454, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 5475, 515, 197, 197, 3050, 25, 2915, 7502, 353, 1900, 23684, 8, 341, 298, 20985, 6141, 445, 50267, 497, 220, 19, 17, 18, 340, 197, 197, 1583, 197, 630, 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 TestPushImageLayerRegistry(t *testing.T) { r := spawnTestRegistrySession(t) layer := strings.NewReader("") _, _, err := r.PushImageLayerRegistry(imageID, layer, makeURL("/v1/"), []byte{}) if err != nil { t.Fatal(err) } }
explode_data.jsonl/13105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 16644, 1906, 9188, 15603, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 18042, 2271, 15603, 5283, 1155, 340, 65986, 1669, 9069, 68587, 31764, 197, 6878, 8358, 1848, 1669, 435, 34981, 1906, 9188, 15603, 10075, 915, 11, 6193, 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 ]
2
func TestAdmixerSyncer(t *testing.T) { syncURL := "http://anyHost/anyPath" syncURLTemplate := template.Must( template.New("sync-template").Parse(syncURL), ) syncer := NewAdmixerSyncer(syncURLTemplate) syncInfo, err := syncer.GetUsersyncInfo(privacy.Policies{ GDPR: gdpr.Policy{ Signal: "A", Consent: "B"...
explode_data.jsonl/69984
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 2589, 35071, 261, 12154, 261, 1155, 353, 8840, 836, 8, 341, 1903, 1721, 3144, 1669, 330, 1254, 1110, 3767, 9296, 14, 3767, 1820, 698, 1903, 1721, 3144, 7275, 1669, 3811, 50463, 1006, 197, 22832, 7121, 445, 12996, 33409, 1827...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigValidateBasic(t *testing.T) { cfg := DefaultConfig() assert.NoError(t, cfg.ValidateBasic()) // tamper with timeout_propose cfg.Consensus.TimeoutPropose = -10 * time.Second assert.Error(t, cfg.ValidateBasic()) }
explode_data.jsonl/66913
{ "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, 2648, 17926, 15944, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 7899, 2648, 741, 6948, 35699, 1155, 11, 13286, 47667, 15944, 12367, 197, 322, 25476, 712, 448, 9632, 21663, 960, 198, 50286, 94594, 13626, 63977, 2008, 960, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestIsDeleteSessionRequest(t *testing.T) { state, sessionId := isDeleteSessionRequest("DELETE", "session/123") AssertThat(t, state, Is{true}) AssertThat(t, sessionId, EqualTo{"123"}) state, _ = isDeleteSessionRequest("DELETE", "session/123/cookie") AssertThat(t, state, Is{false}) }
explode_data.jsonl/65294
{ "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, 3872, 6435, 5283, 1900, 1155, 353, 8840, 836, 8, 341, 24291, 11, 54154, 1669, 374, 6435, 5283, 1900, 445, 14424, 497, 330, 5920, 14, 16, 17, 18, 1138, 18017, 4792, 1155, 11, 1584, 11, 2160, 90, 1866, 3518, 18017, 4792, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplicationConfigResourceShouldHaveTwoStateUpgraderForVersionZeroToOne(t *testing.T) { resourceHandler := NewApplicationConfigResourceHandle() require.Equal(t, 3, len(resourceHandler.StateUpgraders())) require.Equal(t, 0, resourceHandler.StateUpgraders()[0].Version) require.Equal(t, 1, resourceHandler.Sta...
explode_data.jsonl/64934
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 4988, 2648, 4783, 14996, 12116, 11613, 1397, 2324, 901, 998, 2461, 5637, 17999, 28190, 1155, 353, 8840, 836, 8, 341, 50346, 3050, 1669, 1532, 4988, 2648, 4783, 6999, 2822, 17957, 12808, 1155, 11, 220, 18, 11, 2422, 23599, 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...
1
func TestReconcileServiceInstanceDeleteWhenAlreadyDeprovisionedUnsuccessfully(t *testing.T) { fakeKubeClient, fakeCatalogClient, fakeClusterServiceBrokerClient, testController, sharedInformers := newTestController(t, noFakeActions()) sharedInformers.ClusterServiceBrokers().Informer().GetStore().Add(getTestClusterSer...
explode_data.jsonl/58153
{ "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, 693, 40446, 457, 1860, 2523, 6435, 4498, 38370, 7839, 299, 13013, 291, 1806, 60505, 1155, 353, 8840, 836, 8, 341, 1166, 726, 42, 3760, 2959, 11, 12418, 41606, 2959, 11, 12418, 28678, 1860, 65545, 2959, 11, 1273, 2051, 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 TestAssertionAssertWhenTemplateNotExisted(t *testing.T) { manifest := common.K8sManifest{} renderedMap := map[string][]common.K8sManifest{ "existed.yaml": {manifest}, } assertionYAML := ` template: not-existed.yaml equal: ` assertion := new(Assertion) err := yaml.Unmarshal([]byte(assertionYAML), &assertion...
explode_data.jsonl/62923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 68639, 8534, 4498, 7275, 2623, 840, 13236, 1155, 353, 8840, 836, 8, 341, 197, 42315, 1669, 4185, 11352, 23, 82, 38495, 16094, 33921, 291, 2227, 1669, 2415, 14032, 45725, 5464, 11352, 23, 82, 38495, 515, 197, 197, 1, 327, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArrowFnScope(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` tests = { 0: ((x = y => x + y, y) => x + y), 1: ((y, x = y => x + y) => x + y), 2: ((x = (y = z => x + y + z, z) => x + y + z, y, z) => x + y + z), 3: ((y, z, x = (z, y = ...
explode_data.jsonl/38515
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 423 }
[ 2830, 3393, 25914, 24911, 10803, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 78216, 284, 341, 464, 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 TestFileHandler(t *testing.T) { record := NewLogRecord(name, DebugLevel, pathname, fun, line, "%s", "debug", fields) record2 := NewLogRecord(name, InfoLevel, pathname, fun, line, "%s", "success", fields) handler := NewFileHandler() err := handler.LoadConfig(Config{ "level": InfoLevel.String(), "filena...
explode_data.jsonl/68218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 1703, 3050, 1155, 353, 8840, 836, 8, 341, 71952, 1669, 1532, 2201, 6471, 3153, 11, 11091, 4449, 11, 39683, 11, 2464, 11, 1555, 11, 5962, 82, 497, 330, 8349, 497, 5043, 340, 71952, 17, 1669, 1532, 2201, 6471, 3153, 11, 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 Test(t *testing.T){ test := Goblin(t) test.Describe("given: an import of the internal package", func(){ test.Describe("when: calling EnvMap with valid params", func(){ test.It("then: it converts the current os.Environ to a map", func(){ os.Setenv("GOBLIN_COLOR", "red") env := EnvMap()...
explode_data.jsonl/4635
{ "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, 1155, 353, 8840, 836, 1264, 220, 1273, 1669, 80164, 1155, 340, 220, 1273, 23548, 3114, 445, 41968, 25, 458, 1159, 315, 279, 5306, 6328, 497, 2915, 3032, 262, 1273, 23548, 3114, 445, 9309, 25, 8098, 37039, 2227, 448, 2697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateCustomEndpointConfigWithSomeDefaultFunctions(t *testing.T) { // create a config with the first 7 interfaces to be overridden endpointConfigOption, err := BuildConfigEndpointFromOptions(m1, m4, m5, m6, m7) if err != nil { t.Fatalf("BuildConfigEndpointFromOptions returned unexpected error %s", err) }...
explode_data.jsonl/29412
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 562 }
[ 2830, 3393, 4021, 10268, 27380, 2648, 2354, 8373, 3675, 25207, 1155, 353, 8840, 836, 8, 341, 197, 322, 1855, 264, 2193, 448, 279, 1156, 220, 22, 24099, 311, 387, 51456, 198, 6246, 2768, 2648, 5341, 11, 1848, 1669, 7854, 2648, 27380, 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...
8
func TestCheckChaincodeCmdParamsWithOldCallingSchema(t *testing.T) { chaincodeCtorJSON = `{ "Function":"func", "Args":["param"] }` chaincodePath = "some/path" chaincodeName = "somename" require := require.New(t) result := checkChaincodeCmdParams(&cobra.Command{}) require.Nil(result) }
explode_data.jsonl/22360
{ "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, 3973, 18837, 1851, 15613, 4870, 2354, 18284, 48853, 8632, 1155, 353, 8840, 836, 8, 341, 197, 8819, 1851, 34, 10980, 5370, 284, 53692, 330, 5152, 3252, 2830, 497, 330, 4117, 36799, 903, 1341, 335, 3989, 197, 8819, 1851, 1820,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTx_Commit_ErrTxClosed(t *testing.T) { db := MustOpenDB() defer db.MustClose() tx, err := db.Begin(true) if err != nil { t.Fatal(err) } if _, err := tx.CreateBucket([]byte("foo")); err != nil { t.Fatal(err) } if err := tx.Commit(); err != nil { t.Fatal(err) } if err := tx.Commit(); err != bol...
explode_data.jsonl/1681
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 31584, 16946, 1763, 93623, 51, 12125, 9259, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 741, 46237, 11, 1848, 1669, 2927, 28467, 3715, 340, 743, 1848, 961, 2092, 341, 197, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidate_NoUnusedFragments_ContainsUnknownAndUndefFragments(t *testing.T) { testutil.ExpectFailsRule(t, graphql.NoUnusedFragmentsRule, ` query Foo { human(id: 4) { ...bar } } fragment foo on Human { name } `, []gqlerrors.FormattedError{ testutil....
explode_data.jsonl/58914
{ "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, 17926, 36989, 94033, 37, 41956, 62, 23805, 13790, 3036, 52, 5037, 37, 41956, 1155, 353, 8840, 836, 8, 341, 18185, 1314, 81893, 37, 6209, 11337, 1155, 11, 48865, 16766, 94033, 37, 41956, 11337, 11, 22074, 414, 3239, 33428, 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...
1
func TestRotorLetterOffset(t *testing.T) { examples := []struct { input rune offset int expected rune }{ { input: 'A', offset: 4, expected: 'E', }, { input: 'L', offset: -5, expected: 'G', }, { input: 'R', offset: 10, expected: 'B', }, { input: ...
explode_data.jsonl/73758
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 87955, 34264, 6446, 1155, 353, 8840, 836, 8, 341, 8122, 4023, 1669, 3056, 1235, 341, 197, 22427, 262, 63499, 198, 197, 40668, 256, 526, 198, 197, 42400, 63499, 198, 197, 59403, 197, 197, 515, 298, 22427, 25, 262, 364, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlatformComponent(t *testing.T) { component := Platform{ Version: "android-23", } require.Equal(t, "platforms;android-23", component.GetSDKStylePath()) require.Equal(t, "android-23", component.GetLegacySDKStylePath()) require.Equal(t, "platforms/android-23", component.InstallPathInAndroidHome()) }
explode_data.jsonl/15335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 17296, 2189, 1155, 353, 8840, 836, 8, 341, 52228, 1669, 17458, 515, 197, 77847, 25, 330, 5954, 12, 17, 18, 756, 197, 630, 17957, 12808, 1155, 11, 330, 15734, 82, 26, 5954, 12, 17, 18, 497, 3692, 2234, 31534, 2323, 1820, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExec_UnmarshalYAML(t *testing.T) { testCases := map[string]struct { inContent []byte wantedStruct ExecuteCommand wantedError error }{ "use default with empty value": { inContent: []byte(`exec: count: 1`), wantedStruct: ExecuteCommand{ Enable: aws.Bool(false), }, }, "use default wi...
explode_data.jsonl/79732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 655 }
[ 2830, 3393, 10216, 40687, 27121, 56, 31102, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 17430, 2762, 3056, 3782, 271, 197, 6692, 7566, 9422, 20848, 4062, 198, 197, 6692, 7566, 1454, 220, 1465, 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 TestDecodeJsonWithInvalidNumberTime(t *testing.T) { dec := json.NewDecoder(strings.NewReader("{\"time\":1e1024,\"event\":\"hello\"}")) dec.More() var msg Event err := dec.Decode(&msg) assert.Error(t, err) }
explode_data.jsonl/5178
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 32564, 5014, 2354, 7928, 2833, 1462, 1155, 353, 8840, 836, 8, 341, 197, 8169, 1669, 2951, 7121, 20732, 51442, 68587, 99141, 1678, 11693, 16, 68, 16, 15, 17, 19, 52318, 3087, 23488, 14990, 2105, 92, 28075, 197, 8169, 92768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGocloak_GetClientUserSessions(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) SetUpTestUser(t, client) _, err := client.GetToken( cfg.GoCloak.Realm, TokenOptions{ ClientID: cfg.GoCloak.ClientID, ClientSecret: cfg.GoCloak.ClientSecret, Username: cfg.GoC...
explode_data.jsonl/79566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 38, 509, 385, 585, 13614, 2959, 1474, 59062, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 22212, 2324, 2271, 1474, 1155, 11, 2943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMemory_FetchCertificate(t *testing.T) { m, err := NewWithDefault() require.NoError(t, err) cert, err := m.FetchCertificate(&ca.FetchCertificateRequest{}) require.NoError(t, err) assert.Empty(t, cert.StoredIntermediateCert) }
explode_data.jsonl/73857
{ "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, 10642, 1400, 2995, 33202, 1155, 353, 8840, 836, 8, 341, 2109, 11, 1848, 1669, 1532, 2354, 3675, 741, 17957, 35699, 1155, 11, 1848, 340, 1444, 529, 11, 1848, 1669, 296, 78506, 33202, 2099, 924, 78506, 33202, 1900, 37790, 1795...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMulWithMULXADxXAgainstMULX(t *testing.T) { defer resetCpuFeatures() if !HasADXandBMI2 { t.Skip("MULX, ADCX and ADOX not supported by the platform") } testMul(t, kUse_MULX, kUse_MULXandADxX) }
explode_data.jsonl/20918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 59155, 2354, 44, 1094, 55, 1808, 87, 55, 84317, 44, 1094, 55, 1155, 353, 8840, 836, 8, 341, 16867, 7585, 34, 5584, 21336, 741, 743, 753, 10281, 83172, 437, 95526, 17, 341, 197, 3244, 57776, 445, 44, 1094, 55, 11, 22083, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLatestLedger(t *testing.T) { tt := test.Start(t).Scenario("base") defer tt.Finish() q := &Q{tt.HorizonSession()} var seq int err := q.LatestLedger(&seq) if tt.Assert.NoError(err) { tt.Assert.Equal(3, seq) } }
explode_data.jsonl/7259
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 31992, 60850, 1389, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 1273, 12101, 1155, 568, 54031, 445, 3152, 1138, 16867, 17853, 991, 18176, 741, 18534, 1669, 609, 48, 90, 5566, 3839, 269, 16973, 5283, 368, 630, 2405, 12981, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDocGet(t *testing.T) { ctx := context.Background() c, srv := newMock(t) path := "projects/projectID/databases/(default)/documents/C/a" pdoc := &pb.Document{ Name: path, CreateTime: aTimestamp, UpdateTime: aTimestamp, Fields: map[string]*pb.Value{"f": intval(1)}, } srv.addRPC(&pb.GetDocu...
explode_data.jsonl/15810
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 445 }
[ 2830, 3393, 9550, 1949, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 43578, 1669, 501, 11571, 1155, 340, 26781, 1669, 330, 17161, 40118, 915, 3446, 23822, 11884, 2258, 5620, 50778, 11295, 14186, 698, 3223, 5236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCedarEasiTestSuite(t *testing.T) { cedarEasiTestSuite := &CedarEasiTestSuite{ Suite: suite.Suite{}, logger: zap.NewNop(), } suite.Run(t, cedarEasiTestSuite) }
explode_data.jsonl/58217
{ "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, 34, 33215, 36, 10215, 2271, 28000, 1155, 353, 8840, 836, 8, 341, 1444, 33215, 36, 10215, 2271, 28000, 1669, 609, 34, 33215, 36, 10215, 2271, 28000, 515, 197, 7568, 9302, 25, 220, 16182, 808, 9302, 38837, 197, 17060, 25, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPersist(t *testing.T) { harness := newDoltHarness(t) dEnv := dtestutils.CreateTestEnv() localConf, ok := dEnv.Config.GetConfig(env.LocalConfig) require.True(t, ok) globals := config.NewPrefixConfig(localConf, env.SqlServerGlobalsPrefix) newPersistableSession := func(ctx *sql.Context) sql.PersistableSessi...
explode_data.jsonl/38729
{ "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, 61267, 1155, 353, 8840, 836, 8, 341, 9598, 23518, 1669, 501, 35, 6181, 74248, 1155, 340, 2698, 14359, 1669, 294, 1944, 6031, 7251, 2271, 14359, 741, 8854, 15578, 11, 5394, 1669, 294, 14359, 10753, 2234, 2648, 16978, 20856, 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