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 TestWriterErrors(t *testing.T) { errorTests := []struct { html string n []int }{ {`<!doctype>`, []int{0}}, {`text`, []int{0}}, {`<foo attr=val>`, []int{0, 1, 2, 3, 4, 5}}, {`</foo>`, []int{0}}, {`<style>x</style>`, []int{2}}, {`<textarea>x</textarea>`, []int{2}}, {`<code>x</code>`, []int{2}}...
explode_data.jsonl/59590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 6492, 13877, 1155, 353, 8840, 836, 8, 341, 18290, 18200, 1669, 3056, 1235, 341, 197, 36126, 914, 198, 197, 9038, 262, 3056, 396, 198, 197, 59403, 197, 197, 90, 63, 13543, 50139, 29, 7808, 3056, 396, 90, 15, 22050, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetContext(t *testing.T) { conf, cleanup := testutil.InitConfig(t) defer cleanup(t) context, err := conf.GetContext("def_ephemeral") require.NoError(t, err) // Test Positives assert.EqualValues(t, context.NameInKubeconf, "def_ephemeral") // Test Wrong Cluster _, err = conf.GetContext("unknown") ass...
explode_data.jsonl/57902
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 1949, 1972, 1155, 353, 8840, 836, 8, 341, 67850, 11, 21290, 1669, 1273, 1314, 26849, 2648, 1155, 340, 16867, 21290, 1155, 692, 28413, 11, 1848, 1669, 2335, 2234, 1972, 445, 750, 12476, 29032, 3253, 1138, 17957, 35699, 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 TestNewRequestCloudfronting(t *testing.T) { client := newClient() client.Host = "www.x.org" req, err := client.NewRequest( context.Background(), "GET", "/", nil, nil, ) if err != nil { t.Fatal(err) } if req.Host != client.Host { t.Fatal("expected different req.Host here") } }
explode_data.jsonl/60963
{ "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, 3564, 1900, 16055, 6951, 287, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 501, 2959, 741, 25291, 29840, 284, 330, 2136, 1993, 2659, 698, 24395, 11, 1848, 1669, 2943, 75274, 1006, 197, 28413, 19047, 1507, 330, 3806, 497, 64657...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSnapshotNotExists(t *testing.T) { if test.UpdateGoldenGlobal { t.Skip() } a := struct { A string B int C bool D *string }{ A: "foo", B: 1, C: true, D: swag.String("bar"), } b := "Hello World!" defer func() { os.Remove(filepath.Join(test.DefaultSnapshotDirPathAbs, "TestSnapshotNotEx...
explode_data.jsonl/17629
{ "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, 15009, 2623, 15575, 1155, 353, 8840, 836, 8, 341, 743, 1273, 16689, 59790, 11646, 341, 197, 3244, 57776, 741, 197, 532, 11323, 1669, 2036, 341, 197, 22985, 914, 198, 197, 12791, 526, 198, 197, 6258, 1807, 198, 197, 10957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_PutSimulation_ImportsDelaysWithValidationError(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) simulationToImport := v2.SimulationViewV5{ v2.DataViewV5{ GlobalActions: v2.GlobalActionsView{ Delays: []v1.ResponseDelayView{delayOne, invalidDelay}...
explode_data.jsonl/45379
{ "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, 2039, 1975, 21642, 1088, 332, 64554, 62, 31250, 16532, 942, 2354, 80553, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 1903, 60361, 1249, 11511, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBoolMarshal(t *testing.T) { b := val.Boolean(true) j, _ := b.MarshalJSON() require.Equal(t, []byte("true"), j) bin, _ := b.MarshalBinary() require.Equal(t, []byte{0xc3}, bin) b = val.Boolean(false) j, _ = b.MarshalJSON() require.Equal(t, []byte("false"), j) bin, _ = b.MarshalBinary() require.Eq...
explode_data.jsonl/37955
{ "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, 11233, 55438, 1155, 353, 8840, 836, 8, 1476, 2233, 1669, 1044, 19162, 3715, 692, 12428, 11, 716, 1669, 293, 37271, 5370, 741, 17957, 12808, 1155, 11, 3056, 3782, 445, 1866, 3975, 502, 692, 2233, 258, 11, 716, 1669, 293, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListIngress(t *testing.T) { a, _ := NewAdapter(testConfig, IngressAPIVersionNetworking, testIngressFilter, testIngressDefaultSecurityGroup, testSSLPolicy, aws.LoadBalancerTypeApplication, DefaultClusterLocalDomain, false) client := &mockClient{} a.kubeClient = client ingresses, err := a.ListIngress() if e...
explode_data.jsonl/6731
{ "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, 852, 641, 2483, 1155, 353, 8840, 836, 8, 341, 11323, 11, 716, 1669, 1532, 5940, 8623, 2648, 11, 758, 2483, 7082, 5637, 78007, 11, 1273, 641, 2483, 5632, 11, 1273, 641, 2483, 3675, 15352, 2808, 11, 1273, 1220, 12567, 8018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDocumentExtraction(t *testing.T) { for _, test := range []struct { Name string Document *birch.Document EncoderShouldError bool NumEncodedValues int FirstEncodedValue int64 Types []bsontype.Type }{ { Name: "EmptyDocument", Document: ...
explode_data.jsonl/15278
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1027 }
[ 2830, 3393, 7524, 840, 26425, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 21297, 2290, 914, 198, 197, 98887, 1843, 353, 43855, 331, 26256, 198, 197, 197, 19921, 14996, 1454, 1807, 198, 197, 197, 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...
3
func Test_GenerateMarkdown_Returns_Parse_Err(t *testing.T) { eng := &goeditorjs.MarkdownEngine{BlockHandlers: make(map[string]goeditorjs.MarkdownBlockHandler)} _, err := eng.GenerateMarkdown(``) require.Error(t, err) }
explode_data.jsonl/21334
{ "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, 2646, 13220, 68005, 53316, 82, 77337, 93623, 1155, 353, 8840, 836, 8, 341, 197, 826, 1669, 609, 3346, 8868, 2519, 75888, 2923, 4571, 90, 4713, 39949, 25, 1281, 9147, 14032, 60, 3346, 8868, 2519, 75888, 2923, 4713, 3050, 1056...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitConfigFromRawWithPem(t *testing.T) { // get a config byte for testing configPath := filepath.Join(getConfigPath(), configPemTestFile) cBytes, err := loadConfigBytesFromFile(t, configPath) if err != nil { t.Fatalf("Failed to load sample bytes from File. Error: %s", err) } // test init config from b...
explode_data.jsonl/34087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1044 }
[ 2830, 3393, 3803, 2648, 3830, 20015, 2354, 47, 336, 1155, 353, 8840, 836, 8, 341, 197, 322, 633, 264, 2193, 4922, 369, 7497, 198, 25873, 1820, 1669, 26054, 22363, 5433, 2648, 1820, 1507, 2193, 47, 336, 2271, 1703, 340, 1444, 7078, 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...
9
func TestServerCustomNodeId(t *testing.T) { idHex := "5a3ce1c14e7a08645677bbd1cfe7d8f956d53256" idBytes, err := hex.DecodeString(idHex) require.NoError(t, err) var id [20]byte n := copy(id[:], idBytes) require.Equal(t, 20, n) // How to test custom *secure* ID when tester computers will have // different IDs? Ge...
explode_data.jsonl/35952
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 5475, 10268, 79206, 1155, 353, 8840, 836, 8, 341, 15710, 20335, 1669, 330, 20, 64, 18, 346, 16, 66, 16, 19, 68, 22, 64, 15, 23, 21, 19, 20, 21, 22, 22, 6066, 67, 16, 66, 1859, 22, 67, 23, 69, 24, 20, 21, 67, 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
func TestInvalidV2Configs(t *testing.T) { for _, c := range []struct{ path, errorSubstring string }{ {"testdata/insecure-conflicts.conf", "registry 'registry.com' is defined multiple times with conflicting 'insecure' setting"}, {"testdata/blocked-conflicts.conf", "registry 'registry.com' is defined multiple times ...
explode_data.jsonl/62230
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 7928, 53, 17, 84905, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 272, 1669, 2088, 3056, 1235, 90, 1815, 11, 1465, 59075, 914, 335, 515, 197, 197, 4913, 92425, 17996, 25132, 50717, 56445, 13937, 497, 330, 29172, 364, 29172, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestHook_HasError(t *testing.T) { hook := NewHook(nil, nil) hook.Err(errors.New("test")) hook.Err(errors.New("test")) hook.Err(errors.New("test")) hook.Err(errors.New("test")) hook.Err(errors.New("test")) if !hook.HasError() { t.Error("has error err") } }
explode_data.jsonl/40945
{ "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, 31679, 2039, 300, 1454, 1155, 353, 8840, 836, 8, 341, 9598, 1941, 1669, 1532, 31679, 27907, 11, 2092, 340, 9598, 1941, 27862, 38881, 7121, 445, 1944, 5455, 9598, 1941, 27862, 38881, 7121, 445, 1944, 5455, 9598, 1941, 27862, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadSequence(t *testing.T) { // first create archive, that we will be able to read updateTestDir, _ := ioutil.TempDir("", "update") defer os.RemoveAll(updateTestDir) archive, err := WriteRootfsImageArchive(updateTestDir, RootfsImageStructOK) assert.NoError(t, err) assert.NotEqual(t, "", archive) // op...
explode_data.jsonl/35300
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 539 }
[ 2830, 3393, 4418, 14076, 1155, 353, 8840, 836, 8, 341, 197, 322, 1156, 1855, 18132, 11, 429, 582, 686, 387, 2952, 311, 1349, 198, 27175, 2271, 6184, 11, 716, 1669, 43144, 65009, 6184, 19814, 330, 2386, 1138, 16867, 2643, 84427, 31540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUintBytesToBigInt(t *testing.T) { res, err := UintBytesToBigInt(MustHexDecodeString("0x0004")) assert.NoError(t, err) assert.Equal(t, big.NewInt(4), res) res, err = UintBytesToBigInt(MustHexDecodeString("0xfffc")) assert.NoError(t, err) assert.Equal(t, big.NewInt(65532), res) _, err = UintBytesToBigIn...
explode_data.jsonl/18432
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 21570, 7078, 1249, 87474, 1155, 353, 8840, 836, 8, 341, 10202, 11, 1848, 1669, 27883, 7078, 1249, 87474, 3189, 590, 20335, 32564, 703, 445, 15, 87, 15, 15, 15, 19, 5455, 6948, 35699, 1155, 11, 1848, 340, 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 TestUpdateDocumentsKeepNullFalse(t *testing.T) { ctx := context.Background() c := createClientFromEnv(t, true) db := ensureDatabase(ctx, c, "document_test", nil, t) col := ensureCollection(ctx, db, "documents_test", nil, t) docs := []Account{ Account{ ID: "1234", User: &UserDoc{ "Mathilda", 45...
explode_data.jsonl/49558
{ "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, 4289, 27143, 19434, 3280, 4049, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 1669, 1855, 2959, 3830, 14359, 1155, 11, 830, 340, 20939, 1669, 5978, 5988, 7502, 11, 272, 11, 330, 6062, 4452, 497, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestFilePoolSizes(t *testing.T) { tests := []struct { size int err error }{ {-1, ErrPoolSizeLessThanZero}, {0, ErrPoolSizeLessThanZero}, {4, nil}, {8, nil}, } for _, tc := range tests { t.Run(fmt.Sprintf("size %d", tc.size), func(t *testing.T) { dir, err := ioutil.TempDir("", "fastzip-filepo...
explode_data.jsonl/60246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 1703, 10551, 34930, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 13832, 526, 198, 197, 9859, 220, 1465, 198, 197, 59403, 197, 197, 19999, 16, 11, 15495, 10551, 1695, 27451, 26067, 17999, 1583, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestNewMention(t *testing.T) { msg := NewMention([]string{"user"}, nil, true) data := msg.payload() assert.NotNil(t, data.Text) assert.Equal(t, data.MessageType, "text") assert.Equal(t, msg.members, []string{"user"}) assert.Equal(t, msg.all, true) }
explode_data.jsonl/57563
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 3564, 44, 2939, 1155, 353, 8840, 836, 8, 341, 21169, 1669, 1532, 44, 2939, 10556, 917, 4913, 872, 14345, 2092, 11, 830, 692, 8924, 1669, 3750, 17492, 741, 6948, 93882, 1155, 11, 821, 1979, 340, 6948, 12808, 1155, 11, 821, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDHCP(t *testing.T) { t.Run("Put", testDHCPPutConfig) t.Run("Get", testDHCPGetConfig) t.Run("Lease", testDHCPLease) t.Run("Renew", testDHCPRenew) t.Run("Release", testDHCPRelease) t.Run("Decline", testDHCPDecline) t.Run("Expire", testDHCPLeaseExpiration) t.Run("Race", testDHCPLeaseRace) t.Run("Generat...
explode_data.jsonl/73032
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 51326, 7123, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 19103, 497, 1273, 51326, 15855, 332, 2648, 340, 3244, 16708, 445, 1949, 497, 1273, 51326, 7123, 1949, 2648, 340, 3244, 16708, 445, 2304, 519, 497, 1273, 51326, 712...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilepathREST_Update_SimultaneousUpdates(t *testing.T) { f := newRESTFixture(t) defer f.tearDown() var obj runtime.Object obj = &v1alpha1.Manifest{ ObjectMeta: metav1.ObjectMeta{ Name: "test-obj", }, Spec: v1alpha1.ManifestSpec{ Message: "original", }, } f.mustCreate(obj) type result str...
explode_data.jsonl/64544
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 986 }
[ 2830, 3393, 1703, 2343, 38307, 47393, 1098, 318, 494, 17666, 37091, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 38307, 18930, 1155, 340, 16867, 282, 31853, 59342, 2822, 2405, 2839, 15592, 8348, 198, 22671, 284, 609, 85, 16, 7141, 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 TestRemoveComments(t *testing.T) { // Leading ; comment. input := "; Leading comment" expected := "" actual := removeComments(input) if expected != actual { t.Errorf("expected: %q, actual: %q", expected, actual) } // Leading # comment. input = "# Leading comment" expected = "" actual = removeComments(...
explode_data.jsonl/49349
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 13021, 17373, 1155, 353, 8840, 836, 8, 341, 197, 322, 58043, 2587, 3980, 624, 22427, 1669, 18963, 58043, 3980, 698, 42400, 1669, 8389, 88814, 1669, 4057, 17373, 5384, 340, 743, 3601, 961, 5042, 341, 197, 3244, 13080, 445, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestMaxDeltaSchemaCount(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") require.Equal(t, int64(variable.DefTiDBMaxDeltaSchemaCount), variable.GetMaxDeltaSchemaCount()) tk.MustExec("set @@global.tidb_max_delta_schema_count= ...
explode_data.jsonl/38153
{ "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, 5974, 20277, 8632, 2507, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBucketOverflow(t *testing.T) { t.Parallel() b := NewBucket(10, 10*time.Millisecond) defer b.Close() n, err := b.Fill(func(remaining int64) (int64, error) { return 11, nil }) if err != nil { t.Fatalf("Fill(): got %v, want no error", err) } n, err = b.Fill(func(int64) (int64, error) { t.Fatal("F...
explode_data.jsonl/74397
{ "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, 36018, 42124, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2233, 1669, 1532, 36018, 7, 16, 15, 11, 220, 16, 15, 77053, 71482, 340, 16867, 293, 10421, 2822, 9038, 11, 1848, 1669, 293, 19495, 18552, 7, 43436, 526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTemporal(t *testing.T) { conf := ` { "start":"10:00", "end": "19:30" } ` p, err := Temporal([]byte(conf), 13, 100) if err != nil { t.Error(err) } if p.ValueRange() != 87 { t.Error("Expected 87, found:", p.ValueRange()) } if p.TotalMinutes() != 570 { t.Error("Expected 570, found:", p.TotalMinut...
explode_data.jsonl/48672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 189 }
[ 2830, 3393, 92850, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 22074, 515, 197, 1, 2468, 3252, 16, 15, 25, 15, 15, 756, 197, 1, 408, 788, 330, 16, 24, 25, 18, 15, 698, 532, 3989, 3223, 11, 1848, 1669, 19944, 9819, 10556, 3782, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGrantChannelsAndUUIDsFailureNotStubbed(t *testing.T) { assert := assert.New(t) pn := pubnub.NewPubNub(pamConfigCopy()) res, _, err := pn.Grant().Channels([]string{"ch1", "ch2"}). Get(true).Update(true).Join(true).Read(true). AuthKeys([]string{"uuid-key"}).UUIDs([]string{"ch1", "ch2"}). Execute() a...
explode_data.jsonl/43182
{ "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, 67971, 35925, 3036, 24754, 82, 17507, 2623, 33838, 2721, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 3223, 77, 1669, 6675, 77, 392, 7121, 29162, 45, 392, 1295, 309, 2648, 12106, 12367, 10202, 11, 8358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubrace_QueryList_IT(t *testing.T) { query := make(map[string]string, 1) query["index"] = "high-elf" resp, err := Client.QueryList(query) r, _ := json.Marshal(resp) log.Print(fmt.Sprintf("Response: %s", r)) assert.Nil(t, err, "Should not receive an error contacting API.") assert.True(t, true, "Should co...
explode_data.jsonl/57198
{ "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, 3136, 41183, 48042, 852, 41681, 1155, 353, 8840, 836, 8, 341, 27274, 1669, 1281, 9147, 14032, 30953, 11, 220, 16, 340, 27274, 1183, 1252, 1341, 284, 330, 11892, 12, 490, 698, 34653, 11, 1848, 1669, 8423, 15685, 852, 10741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestACO(t *testing.T) { settings := ACOSettings{} pop := []Ant{ ant{true, true}, ant{true, true}, ant{true, true}, } res, err := ACO(pop, settings) if err == nil { t.Error("ACO should fail when settings are invalid") } settings.Evaporation = 0.9 settings.MaxIterations = 10 settings.Verbose = 1 se...
explode_data.jsonl/60133
{ "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, 1706, 46, 1155, 353, 8840, 836, 8, 341, 62930, 1669, 362, 8281, 6086, 16094, 74813, 1669, 3056, 17117, 515, 197, 197, 517, 90, 1866, 11, 830, 1583, 197, 197, 517, 90, 1866, 11, 830, 1583, 197, 197, 517, 90, 1866, 11, 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...
7
func TestScaleUint64(t *testing.T) { n1 := NewScalerUint64(0, 0) require.Equal(t, uint32(0), n1.ScaleUint64(0)) require.Equal(t, uint32(math.MaxUint32), n1.ScaleUint64(1)) n2 := NewScalerUint64(0, 1<<32) require.Equal(t, uint32(math.MaxUint32), n2.ScaleUint64(1<<32)) require.Equal(t, uint32(0x3fffffff), n2.Scal...
explode_data.jsonl/30795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 6947, 21570, 21, 19, 1155, 353, 8840, 836, 8, 341, 9038, 16, 1669, 1532, 59553, 21570, 21, 19, 7, 15, 11, 220, 15, 340, 17957, 12808, 1155, 11, 2622, 18, 17, 7, 15, 701, 308, 16, 51832, 21570, 21, 19, 7, 15, 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 TestGetReturnsErrIfLocalFilePathDoesNotExist(t *testing.T) { beforeTest(t) conn := _getConnection(t) defer conn.Close() client := agaveproto.NewSftpRelayClient(conn) // create a random directory name in our test dir tmpTestFilePath, err := _createTempFile("", ".bin") if err != nil { assert.FailNowf(t, ...
explode_data.jsonl/32562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 566 }
[ 2830, 3393, 1949, 16446, 7747, 2679, 7319, 19090, 21468, 45535, 1155, 353, 8840, 836, 8, 341, 63234, 2271, 1155, 692, 32917, 1669, 716, 52414, 1155, 340, 16867, 4534, 10421, 2822, 25291, 1669, 933, 523, 15110, 7121, 50, 25068, 6740, 352, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUseStrictDirectiveMinifyNoBundle(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` 'use strict' 'use loose' a b `, }, entryPaths: []string{"/entry.js"}, options: config.Options{ MangleSyntax: true, RemoveWhitespace: true, ...
explode_data.jsonl/38543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 10253, 41857, 62076, 6217, 1437, 2753, 8409, 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, 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 TestPodOrphaningAndAdoptionWhenLabelsChange(t *testing.T) { s, closeFn, rm, informers, c := rmSetup(t) defer closeFn() ns := framework.CreateTestingNamespace("test-pod-orphaning-and-adoption-when-labels-change", s, t) defer framework.DeleteTestingNamespace(ns, s, t) stopCh := runControllerAndInformers(t, rm, ...
explode_data.jsonl/40117
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1098 }
[ 2830, 3393, 23527, 2195, 9943, 287, 3036, 2589, 2047, 4498, 23674, 4072, 1155, 353, 8840, 836, 8, 341, 1903, 11, 3265, 24911, 11, 18998, 11, 6051, 388, 11, 272, 1669, 18998, 21821, 1155, 340, 16867, 3265, 24911, 741, 84041, 1669, 12626,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProvisionURI(t *testing.T) { otpconf := OTPConfig{ Secret: "x", } cases := []struct { user, iss string hotp bool out string }{ {"test", "", false, "otpauth://totp/test?secret=x"}, {"test", "", true, "otpauth://hotp/test?counter=1&secret=x"}, {"test", "Company", true, "otpauth://ho...
explode_data.jsonl/75092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 1336, 13013, 10301, 1155, 353, 8840, 836, 8, 341, 197, 48708, 6135, 1669, 80868, 2648, 515, 197, 7568, 50856, 25, 330, 87, 756, 197, 630, 1444, 2264, 1669, 3056, 1235, 341, 197, 19060, 11, 2369, 914, 198, 197, 9598, 48708,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadConfig(t *testing.T) { _, err := readConfig(nil) if err == nil { t.Errorf("Should fail when no config is provided: %s", err) } cfg, err := readConfig(strings.NewReader(` [Global] target = 0.0.0.0 project = project overrideIP = true vmID = vmid authentication = false `)) if err != nil { t.Fatalf("...
explode_data.jsonl/21915
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 4418, 2648, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 1349, 2648, 27907, 340, 743, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 14996, 3690, 979, 902, 2193, 374, 3897, 25, 1018, 82, 497, 1848, 340, 197, 630, 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...
6
func TestErrorPageHasRequiredFields(t *testing.T) { tests := []struct { errorPage v1.ErrorPage expected bool }{ { errorPage: v1.ErrorPage{ Codes: nil, Return: nil, Redirect: nil, }, expected: false, }, { errorPage: v1.ErrorPage{ Codes: nil, Return: &v1.ErrorPageRet...
explode_data.jsonl/65914
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 1454, 2665, 10281, 8164, 8941, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 18290, 2665, 348, 16, 6141, 2665, 198, 197, 42400, 220, 1807, 198, 197, 59403, 197, 197, 515, 298, 18290, 2665, 25, 348, 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...
3
func TestHypervisorDefaultsKernel(t *testing.T) { assert := assert.New(t) tmpdir, err := ioutil.TempDir(testDir, "") assert.NoError(err) defer os.RemoveAll(tmpdir) testKernelPath := filepath.Join(tmpdir, "kernel") testKernelLinkPath := filepath.Join(tmpdir, "kernel-link") err = createEmptyFile(testKernelPath)...
explode_data.jsonl/5128
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 39, 1082, 31396, 16273, 26343, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 20082, 3741, 11, 1848, 1669, 43144, 65009, 6184, 8623, 6184, 11, 14676, 6948, 35699, 3964, 340, 16867, 2643, 84427, 10368, 3741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStuff(t *testing.T) { strings := []string{ "Come watch https://www.twitch.tv/lietu because I'm awesome", "Come watch https://twitch.tv/lietu because I'm awesome", "Come watch http://www.twitch.tv/lietu because I'm awesome", "Come watch http://twitch.tv/lietu because I'm awesome", "Come watch www.twi...
explode_data.jsonl/29886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 891 }
[ 2830, 3393, 86622, 1155, 353, 8840, 836, 8, 341, 11355, 819, 1669, 3056, 917, 515, 197, 197, 1, 28851, 3736, 3703, 1110, 2136, 90179, 14485, 88381, 94417, 1576, 358, 2776, 12456, 756, 197, 197, 1, 28851, 3736, 3703, 1110, 83, 5539, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleList(t *testing.T) { storage := map[string]RESTStorage{} simpleStorage := SimpleRESTStorage{} storage["simple"] = &simpleStorage handler := New(storage, "/prefix/version") server := httptest.NewServer(handler) resp, err := http.Get(server.URL + "/prefix/version/simple") expectNoError(t, err) if...
explode_data.jsonl/30455
{ "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, 16374, 852, 1155, 353, 8840, 836, 8, 341, 197, 16172, 1669, 2415, 14032, 60, 38307, 5793, 16094, 1903, 6456, 5793, 1669, 8993, 38307, 5793, 16094, 197, 16172, 1183, 22944, 1341, 284, 609, 22944, 5793, 198, 53326, 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...
2
func TestNegativeInput(t *testing.T) { ctx := createSweeperTestContext(t) // Sweep an input large enough to cover fees, so in any case the tx // output will be above the dust limit. largeInput := createTestInput(100000, input.CommitmentNoDelay) largeInputResult, err := ctx.sweeper.SweepInput( &largeInput, defau...
explode_data.jsonl/34222
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 685 }
[ 2830, 3393, 38489, 2505, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1855, 50, 896, 10436, 2271, 1972, 1155, 692, 197, 322, 85022, 458, 1946, 3460, 3322, 311, 3421, 12436, 11, 773, 304, 894, 1142, 279, 9854, 198, 197, 322, 2550, 686, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWatchWithCreatedNotificationDropConn(t *testing.T) { integration2.BeforeTest(t) cluster := integration2.NewClusterV3(t, &integration2.ClusterConfig{Size: 1, UseBridge: true}) defer cluster.Terminate(t) client := cluster.RandClient() wch := client.Watch(context.Background(), "a", clientv3.WithCreatedNot...
explode_data.jsonl/28941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 14247, 2354, 11694, 11196, 19871, 9701, 1155, 353, 8840, 836, 8, 341, 2084, 17376, 17, 31153, 2271, 1155, 692, 197, 18855, 1669, 17590, 17, 7121, 28678, 53, 18, 1155, 11, 609, 60168, 17, 72883, 2648, 90, 1695, 25, 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...
4
func TestDockerEnvWhitelist(t *testing.T) { as := assert.New(t) envTotalMatch := "TEST_REGION,TEST_ZONE" envMatchWithPrefix := "TEST_" envMatchWithPrefixEmpty := "" rawCntConfig := container.Config{Env: []string{"TEST_REGION=FRA", "TEST_ZONE=A", "HELLO=WORLD"}} newCntConfig := container.Config{Env: []string{"TE...
explode_data.jsonl/29970
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 696 }
[ 2830, 3393, 35, 13659, 14359, 1639, 57645, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 2060, 7121, 1155, 692, 57538, 7595, 8331, 1669, 330, 10033, 39179, 11, 10033, 60742, 698, 57538, 8331, 2354, 14335, 1669, 330, 10033, 62, 698, 57538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHeadTracker_SwitchesToLongestChainWithHeadSamplingDisabled(t *testing.T) { // Need separate db because ht.Stop() will cancel the ctx, causing a db connection // close and go-txdb rollback. config, _ := heavyweight.FullTestORM(t, "switches_longest_chain", true, true) config.Overrides.GlobalEvmFinalityDepth...
explode_data.jsonl/63754
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2229 }
[ 2830, 3393, 12346, 31133, 1098, 5539, 288, 1249, 6583, 477, 18837, 2354, 12346, 98622, 25907, 1155, 353, 8840, 836, 8, 341, 197, 322, 14656, 8651, 2927, 1576, 34323, 30213, 368, 686, 9121, 279, 5635, 11, 14381, 264, 2927, 3633, 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 TestLoadDaemonCliConfigWithDaemonFlags(t *testing.T) { content := `{"log-opts": {"max-size": "1k"}}` tempFile := tempfile.NewTempFile(t, "config", content) defer tempFile.Remove() opts := defaultOptions(tempFile.Name()) opts.common.Debug = true opts.common.LogLevel = "info" assert.NilError(t, opts.flags.Se...
explode_data.jsonl/12064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 277 }
[ 2830, 3393, 5879, 89177, 87014, 2648, 2354, 89177, 9195, 1155, 353, 8840, 836, 8, 341, 27751, 1669, 1565, 4913, 839, 12, 10518, 788, 5212, 2810, 7174, 788, 330, 16, 74, 30975, 3989, 16280, 1703, 1669, 54819, 7121, 12151, 1703, 1155, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDB_Get(t *testing.T) { defer leaktest.AfterTest(t)() s, db := setup(t) defer s.Stopper().Stop() result, err := db.Get(context.TODO(), "aa") if err != nil { t.Fatal(err) } checkResult(t, []byte(""), result.ValueBytes()) }
explode_data.jsonl/20015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 3506, 13614, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 1903, 11, 2927, 1669, 6505, 1155, 340, 16867, 274, 7758, 18487, 1005, 10674, 2822, 9559, 11, 1848, 1669, 2927, 2234, 5378, 90988, 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 TestRemovedPropertyAndTagWithSameName(t *testing.T) { t.Skipf("Not valid until use case is supported in SFx exporter") dimension := types.Dimension{ Properties: map[string]string{ "shared_name": "", }, Tags: map[string]bool{ "shared_name": false, }, } metadataUpdate := dimensionToMetadataUpdate(d...
explode_data.jsonl/6189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 42642, 3052, 3036, 5668, 2354, 19198, 675, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 69, 445, 2623, 2697, 3080, 990, 1142, 374, 7248, 304, 23463, 87, 57378, 1138, 2698, 18161, 1669, 4494, 53234, 515, 197, 197, 7903, 25, 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 TestGetCert(t *testing.T) { tID := os.Getenv("TENANT_ID") certID := os.Getenv("CERT_ID") url := os.Getenv("URL") token := os.Getenv("TOKEN") c := NewClient(Config{ ClusterType: ClusterTypeSingleNode, Token: token, Environment: EnvironmentDev, SamlTenant: "ycloud.accounts.ondemand.com", URL:...
explode_data.jsonl/502
{ "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, 1949, 36934, 1155, 353, 8840, 836, 8, 341, 3244, 915, 1669, 2643, 64883, 445, 51, 953, 2821, 3450, 1138, 1444, 529, 915, 1669, 2643, 64883, 445, 89431, 3450, 5130, 19320, 1669, 2643, 64883, 445, 3144, 1138, 43947, 1669, 2643...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQuestion(t *testing.T) { tests := []struct { desc string given string fallback string expected string }{ {"records interactive response", "hello\n", "", "hello"}, {"responds with default if response is empty", "\n", "Fine.", "Fine."}, } for _, test := range tests { q := &Question{ R...
explode_data.jsonl/16167
{ "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, 14582, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 257, 914, 198, 197, 3174, 2071, 262, 914, 198, 197, 1166, 3420, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 4913, 26203, 20753, 2033,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseOutpostAccessPointARNResource(t *testing.T) { cases := map[string]struct { ARN arn.ARN ExpectErr string ExpectARN OutpostAccessPointARN }{ "region not set": { ARN: arn.ARN{ Partition: "aws", Service: "s3-outposts", AccountID: "012345678901", Resource: "outpost/myoutpo...
explode_data.jsonl/62370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1437 }
[ 2830, 3393, 14463, 2662, 2203, 6054, 2609, 9051, 4783, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 2415, 14032, 60, 1235, 341, 197, 197, 9051, 981, 796, 77, 875, 50195, 198, 197, 35911, 7747, 914, 198, 197, 35911, 9051, 4371, 2203...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEventSeriesf(t *testing.T) { hostname, _ := os.Hostname() testPod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ SelfLink: "/api/version/pods/foo", Name: "foo", Namespace: "baz", UID: "bar", }, } regarding, err := ref.GetPartialReference(scheme.Scheme, testPod, ".spec.containers[1...
explode_data.jsonl/27773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1417 }
[ 2830, 3393, 1556, 25544, 69, 1155, 353, 8840, 836, 8, 341, 197, 27806, 11, 716, 1669, 2643, 29840, 606, 2822, 18185, 23527, 1669, 609, 85, 16, 88823, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 7568, 490, 3939, 25, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAccAWSS3BucketObject_storageClass(t *testing.T) { var obj s3.GetObjectOutput resourceName := "aws_s3_bucket_object.object" rInt := acctest.RandInt() resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckAWSS...
explode_data.jsonl/64968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 889 }
[ 2830, 3393, 14603, 14419, 1220, 18, 36018, 1190, 23310, 1957, 1155, 353, 8840, 836, 8, 341, 2405, 2839, 274, 18, 25618, 5097, 198, 50346, 675, 1669, 330, 8635, 643, 18, 38749, 5314, 6035, 698, 7000, 1072, 1669, 1613, 67880, 2013, 437, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransactionPendingMinimumAllowance(t *testing.T) { t.Parallel() // Create the pool to test the limit enforcement with statedb, _ := state.New(common.Hash{}, state.NewDatabase(rawdb.NewMemoryDatabase()), nil) blockchain := &testBlockChain{statedb, 1000000, new(notify.Feed)} config := testTxPoolConfig co...
explode_data.jsonl/7875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 499 }
[ 2830, 3393, 8070, 32027, 28695, 18605, 681, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 4230, 279, 7314, 311, 1273, 279, 3930, 13324, 448, 198, 18388, 657, 65, 11, 716, 1669, 1584, 7121, 57802, 15103, 22655, 1584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockedDiscardStats(t *testing.T) { dir, err := ioutil.TempDir("", "badger-test") require.NoError(t, err) defer os.Remove(dir) db, err := Open(getTestOptions(dir)) require.NoError(t, err) // Set discard stats. db.vlog.lfDiscardStats.m = map[uint32]int64{0: 0} db.blockWrite() // Push discard stats more...
explode_data.jsonl/39105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 95847, 23477, 567, 16635, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 13855, 1389, 16839, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 13270, 14161, 340, 20939, 11, 1848, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestProxyDirectorURL(t *testing.T) { for i, c := range []struct { requestURL string targetURL string without string expectURL string }{ { requestURL: `http://localhost:2020/test`, targetURL: `https://localhost:2021`, expectURL: `https://localhost:2021/test`, }, { requestURL: `htt...
explode_data.jsonl/64243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1388 }
[ 2830, 3393, 16219, 37194, 3144, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 272, 1669, 2088, 3056, 1235, 341, 197, 23555, 3144, 914, 198, 197, 28861, 3144, 220, 914, 198, 197, 197, 28996, 262, 914, 198, 197, 24952, 3144, 220, 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...
5
func TestServiceRoleInvalid(t *testing.T) { assert := assert.New(t) conf := config.NewConfig() config.Set(conf) sr := data.AddServicesToServiceRole([]string{"service3"}, data.CreateEmptyServiceRole("sr1", "test")) sc := ServiceChecker{ ServiceRole: sr, Services: getFourServices(), } checks, valid := sc....
explode_data.jsonl/8820
{ "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, 1860, 9030, 7928, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 67850, 1669, 2193, 7121, 2648, 741, 25873, 4202, 29879, 692, 1903, 81, 1669, 821, 1904, 11025, 1249, 1860, 9030, 10556, 917, 4913, 7936, 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 TestKubelessTestsJobPostsubmit(t *testing.T) { // WHEN jobConfig, err := tester.ReadJobConfig("./../../../../prow/jobs/kyma/tests/kubeless/kubeless.yaml") // THEN require.NoError(t, err) assert.Len(t, jobConfig.Postsubmits, 1) kymaPost, ex := jobConfig.Postsubmits["kyma-project/kyma"] assert.True(t, ex) a...
explode_data.jsonl/33132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 522 }
[ 2830, 3393, 42, 3760, 1717, 18200, 12245, 4133, 5955, 1155, 353, 8840, 836, 8, 341, 197, 322, 33633, 198, 68577, 2648, 11, 1848, 1669, 37111, 6503, 12245, 2648, 13988, 84257, 79, 651, 4437, 5481, 14109, 1600, 64, 62468, 14109, 3760, 171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestV4DMagnitude(t *testing.T) { ctx := assert.Context(t) for _, test := range []struct { v f32.Vec4 r float32 }{ {f32.Vec4{0, 0, 0, 0}, 0}, {f32.Vec4{1, 0, 0, 0}, 1}, {f32.Vec4{0, 2, 0, 0}, 2}, {f32.Vec4{0, 0, -3, 0}, 3}, {f32.Vec4{0, 0, 0, -4}, 4}, {f32.Vec4{1, 1, 1, 1}, 2}, } { assert.For(...
explode_data.jsonl/8028
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 53, 19, 8395, 34715, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2060, 9328, 1155, 340, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 5195, 282, 18, 17, 5058, 757, 19, 198, 197, 7000, 2224, 18, 17, 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 TestList(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() th.Mux.HandleFunc("/v2.0/fw/firewalls", func(w http.ResponseWriter, r *http.Request) { th.TestMethod(t, r, "GET") th.TestHeader(t, r, "X-Auth-Token", fake.TokenID) w.Header().Add("Content-Type", "application/json") w.WriteHeader(http.Stat...
explode_data.jsonl/36151
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1193 }
[ 2830, 3393, 852, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 2822, 70479, 1321, 2200, 63623, 4283, 85, 17, 13, 15, 60193, 53010, 86296, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublicKeyIsEqual(t *testing.T) { pubKey1, err := ParsePubKey( []byte{0x03, 0x26, 0x89, 0xc7, 0xc2, 0xda, 0xb1, 0x33, 0x09, 0xfb, 0x14, 0x3e, 0x0e, 0x8f, 0xe3, 0x96, 0x34, 0x25, 0x21, 0x88, 0x7e, 0x97, 0x66, 0x90, 0xb6, 0xb4, 0x7f, 0x5b, 0x2a, 0x4b, 0x7d, 0x44, 0x8e, }, S256(), ) if err != nil...
explode_data.jsonl/71132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 572 }
[ 2830, 3393, 61822, 3872, 2993, 1155, 353, 8840, 836, 8, 341, 62529, 1592, 16, 11, 1848, 1669, 14775, 29162, 1592, 1006, 197, 197, 1294, 3782, 90, 15, 87, 15, 18, 11, 220, 15, 87, 17, 21, 11, 220, 15, 87, 23, 24, 11, 220, 15, 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 TestGracefulShutdown(t *testing.T) { // Create context that listns for the interrupt signal. ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) defer stop() // load config config.AppConfig() logrus.Infof("API route mounted on port %s\n", viper.GetString("SERVER_PORT"))...
explode_data.jsonl/3955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 709 }
[ 2830, 3393, 86543, 1262, 62004, 1155, 353, 8840, 836, 8, 1476, 197, 322, 4230, 2266, 429, 1140, 4412, 369, 279, 12667, 8286, 624, 20985, 11, 2936, 1669, 8286, 80435, 1972, 5378, 19047, 1507, 49345, 85086, 3221, 11, 49345, 85086, 49349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientSniffSuccess(t *testing.T) { client, err := NewClient(SetURL("http://127.0.0.1:19200", "http://127.0.0.1:9200")) if err != nil { t.Fatal(err) } // The client should sniff both URLs, but only 127.0.0.1:9200 should return nodes. if len(client.conns) != 1 { t.Fatalf("expected exactly 1 node in the ...
explode_data.jsonl/37995
{ "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, 2959, 20720, 3092, 7188, 1155, 353, 8840, 836, 8, 341, 25291, 11, 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...
3
func TestStepPrepareTools(t *testing.T) { tf, err := ioutil.TempFile("", "packer") if err != nil { t.Fatalf("err: %s", err) } tf.Close() defer os.Remove(tf.Name()) state := testState(t) step := &StepPrepareTools{ RemoteType: "", ToolsUploadFlavor: "foo", } driver := state.Get("driver").(*DriverM...
explode_data.jsonl/77416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 8304, 50590, 16583, 1155, 353, 8840, 836, 8, 341, 3244, 69, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 4748, 261, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 615, 25, 1018, 82, 497, 1848, 340, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestManyMigrations(t *testing.T) { defer func(v []migration, s string) { schemaMigrations = v DbSchemaCurrent = s }(schemaMigrations, DbSchemaCurrent) DbSchemaCurrent = DbSchemaCode shouldNotRun := false executionOrder := []int{-1, -1, -1, -1} schemaMigrations = []migration{ {name: DbSchemaCode, fn:...
explode_data.jsonl/79612
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 792 }
[ 2830, 3393, 8441, 44, 17824, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 3747, 3056, 80227, 11, 274, 914, 8, 341, 197, 1903, 3416, 44, 17824, 284, 348, 198, 197, 197, 7994, 8632, 5405, 284, 274, 198, 197, 25547, 17349, 44, 17824, 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 TestRestore(t *testing.T) { fs, cleanup := defaultFSStoreBackend(t) defer cleanup() id1, err := fs.Set([]byte(`{"comment": "abc", "rootfs": {"type": "layers"}}`)) assert.NilError(t, err) _, err = fs.Set([]byte(`invalid`)) assert.NilError(t, err) id2, err := fs.Set([]byte(`{"comment": "def", "rootfs": {"t...
explode_data.jsonl/45447
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 801 }
[ 2830, 3393, 56284, 1155, 353, 8840, 836, 8, 341, 53584, 11, 21290, 1669, 1638, 8485, 6093, 29699, 1155, 340, 16867, 21290, 2822, 15710, 16, 11, 1848, 1669, 8619, 4202, 10556, 3782, 5809, 4913, 6182, 788, 330, 13683, 497, 330, 2888, 3848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateSSGenVotes(t *testing.T) { var tests = []struct { votebits uint16 expected []byte }{ {65535, hexToBytes("6a02ffff")}, {256, hexToBytes("6a020001")}, {127, hexToBytes("6a027f00")}, {0, hexToBytes("6a020000")}, } for _, test := range tests { s, err := GenerateSSGenVotes(test.votebits) ...
explode_data.jsonl/29690
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 31115, 1220, 9967, 75535, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 5195, 1272, 11516, 2622, 16, 21, 198, 197, 42400, 3056, 3782, 198, 197, 59403, 197, 197, 90, 21, 20, 20, 18, 20, 11, 12371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWorkingKey(t *testing.T) { var workingKeyFields ebs_fields.WorkingKeyFields workingKeyFields.ClientID = "noebs" workingKeyFields.TerminalID = "12345678" workingKeyFields.TranDateTime = time.Now().UTC().String() workingKeyFields.SystemTraceAuditNumber = rand.Intn(99999) payload, err := json.Marshal(worki...
explode_data.jsonl/27397
{ "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, 33978, 1592, 1155, 353, 8840, 836, 8, 341, 2405, 3238, 1592, 8941, 384, 1279, 12132, 28748, 287, 1592, 8941, 198, 197, 21152, 1592, 8941, 11716, 915, 284, 330, 2152, 68, 1279, 698, 197, 21152, 1592, 8941, 80671, 977, 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 TestWalletNew2(t *testing.T) { address.CurrentNetwork = address.Mainnet ki, addr, err := WalletNew(types.KTSecp256k1) if err != nil { t.Error(err) } t.Log(hex.EncodeToString(ki.PrivateKey)) t.Log(addr.String()) // 3e91d9dfb6a98f224745177e1c670fee00f7cf4f55f1576c34b6a0fae7b83c2c // f1yfi4yslez2hz3ori5g...
explode_data.jsonl/17781
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 38259, 3564, 17, 1155, 353, 8840, 836, 8, 1476, 63202, 11517, 12320, 284, 2621, 23873, 4711, 271, 197, 6642, 11, 10789, 11, 1848, 1669, 36483, 3564, 52613, 11352, 51, 8430, 79, 17, 20, 21, 74, 16, 340, 743, 1848, 961, 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...
2
func TestHealthStates(t *testing.T) { // set up environment: events, task, container .... e := events.New() _, l, _ := e.Subscribe() defer e.Evict(l) task := &api.Task{ ID: "id", ServiceID: "sid", Spec: api.TaskSpec{ Runtime: &api.TaskSpec_Container{ Container: &api.ContainerSpec{ Image:...
explode_data.jsonl/71483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 746 }
[ 2830, 3393, 14542, 23256, 1155, 353, 8840, 836, 8, 1476, 197, 322, 738, 705, 4573, 25, 4357, 11, 3383, 11, 5476, 21903, 198, 7727, 1669, 4357, 7121, 741, 197, 6878, 326, 11, 716, 1669, 384, 82628, 741, 16867, 384, 5142, 85, 849, 233...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreUpdateDirTTL(t *testing.T) { s := newStore() fc := newFakeClock() s.clock = fc var eidx uint64 = 3 s.Create("/foo", true, "", false, TTLOptionSet{ExpireTime: Permanent}) s.Create("/foo/bar", false, "baz", false, TTLOptionSet{ExpireTime: Permanent}) e, err := s.Update("/foo", "", TTLOptionSet{Expir...
explode_data.jsonl/44121
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 6093, 4289, 6184, 51, 13470, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 6093, 741, 1166, 66, 1669, 501, 52317, 26104, 741, 1903, 50546, 284, 25563, 271, 2405, 384, 6361, 2622, 21, 19, 284, 220, 18, 198, 1903, 7251, 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...
1
func TestTransportNoBodyMeansNoDATA(t *testing.T) { ct := newClientTester(t) unblockClient := make(chan bool) ct.client = func() error { req, _ := http.NewRequest("GET", "https://dummy.tld/", http.NoBody) ct.tr.RoundTrip(req) <-unblockClient return nil } ct.server = func() error { defer close(unblockCl...
explode_data.jsonl/16144
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 27560, 2753, 5444, 83402, 2753, 17777, 1155, 353, 8840, 836, 8, 341, 89216, 1669, 501, 2959, 58699, 1155, 692, 20479, 4574, 2959, 1669, 1281, 35190, 1807, 692, 89216, 6581, 284, 2915, 368, 1465, 341, 197, 24395, 11, 716, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMinSyncIntervalClose(t *testing.T) { const minSyncInterval = 100 * time.Millisecond f := &syncFile{} w := NewLogWriter(f, 0) w.SetMinSyncInterval(func() time.Duration { return minSyncInterval }) var timer fakeTimer w.afterFunc = func(d time.Duration, f func()) syncTimer { if d != minSyncInterval {...
explode_data.jsonl/58758
{ "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, 6217, 12154, 10256, 7925, 1155, 353, 8840, 836, 8, 341, 4777, 1308, 12154, 10256, 284, 220, 16, 15, 15, 353, 882, 71482, 271, 1166, 1669, 609, 12996, 1703, 16094, 6692, 1669, 1532, 2201, 6492, 955, 11, 220, 15, 340, 6692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseAttributes(t *testing.T) { line := "TEST-ID=\"Help\",URI=\"http://test\",ID=33\n" mapAttr := m3u8.ParseAttributes(line) assert.NotNil(t, mapAttr) assert.Equal(t, "Help", mapAttr["TEST-ID"]) assert.Equal(t, "http://test", mapAttr["URI"]) assert.Equal(t, "33", mapAttr["ID"]) }
explode_data.jsonl/4031
{ "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, 14463, 10516, 1155, 353, 8840, 836, 8, 341, 27109, 1669, 330, 10033, 53365, 4070, 12689, 16215, 10301, 4070, 1254, 1110, 1944, 16215, 915, 28, 18, 18, 1699, 698, 19567, 13371, 1669, 296, 18, 84, 23, 8937, 10516, 8797, 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 TestFindSingleEvent(t *testing.T) { contractAddress := common.HexToAddress("abcd") from := common.HexToAddress("00") to := common.HexToAddress("01") value := big.NewInt(0) t.Run("ok", func(t *testing.T) { var event transferEvent err := transaction.FindSingleEvent( &erc20ABI, &types.Receipt{ Log...
explode_data.jsonl/24536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 829 }
[ 2830, 3393, 9885, 10888, 1556, 1155, 353, 8840, 836, 8, 341, 197, 20257, 4286, 1669, 4185, 91538, 1249, 4286, 445, 68644, 1138, 42727, 1669, 4185, 91538, 1249, 4286, 445, 15, 15, 1138, 31709, 1669, 4185, 91538, 1249, 4286, 445, 15, 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 TestAddKeyCommand(t *testing.T) { err := ioutil.WriteFile("testkey.pub", []byte("ssh-rsa aaaaawhartevervAsde fake key"), 0600) if err != nil { t.Error(err) } err = ioutil.WriteFile("testkey", []byte("-----BEGIN RSA PRIVATE KEY-----\nfake key\n-----END RSA PRIVATE KEY-----"), 0600) if err != nil { t.Error...
explode_data.jsonl/26278
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1375 }
[ 2830, 3393, 2212, 1592, 4062, 1155, 353, 8840, 836, 8, 1476, 9859, 1669, 43144, 4073, 1703, 445, 1944, 792, 47773, 497, 3056, 3782, 445, 25537, 3795, 9081, 264, 32646, 672, 46389, 2054, 85, 2121, 450, 12418, 1376, 3975, 220, 15, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnableRPCFlagDeprecation(t *testing.T) { MarkIntegrationTest(t, CanRunWithoutGcp) rpcPort := randomPort() out, err := skaffold.Build("--enable-rpc", "--rpc-port", rpcPort).InDir("testdata/build").RunWithCombinedOutput(t) testutil.CheckError(t, false, err) testutil.CheckContains(t, "Flag --enable-rpc has b...
explode_data.jsonl/22966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 11084, 29528, 12135, 7839, 2758, 367, 1155, 353, 8840, 836, 8, 341, 197, 8949, 52464, 2271, 1155, 11, 2980, 6727, 26040, 38, 4672, 340, 7000, 3992, 7084, 1669, 4194, 7084, 741, 13967, 11, 1848, 1669, 1901, 2649, 813, 25212, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsMember(t *testing.T) { ts := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodGet { t.Errorf("Bad method: %s", r.Method) } if r.URL.Path != "/orgs/k8s/members/person" { t.Errorf("Bad request path: %s", r.URL.Path) } http.Error(w,...
explode_data.jsonl/6248
{ "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, 3872, 9366, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 743, 435, 20798, 961, 1758, 20798, 1949, 341, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestClusterCreate(t *testing.T) { t.Parallel() withNamespace(t, func(namespace func() string) { t.Run("create cluster", func(t *testing.T) { t.Run("creates a workflow", func(t *testing.T) { output, err := pgo("create", "cluster", "mycluster", "-n", namespace()).Exec(t) defer teardownCluster(t, name...
explode_data.jsonl/54309
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 524 }
[ 2830, 3393, 28678, 4021, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 46948, 22699, 1155, 11, 2915, 52397, 2915, 368, 914, 8, 341, 197, 3244, 16708, 445, 3182, 10652, 497, 2915, 1155, 353, 8840, 836, 8, 341, 298, 3244, 16708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScanHexInt(t *testing.T) { t.Parallel() const in = "hi 0x123 bye" var a, b string var i Int _, err := fmt.Sscanf(in, "%s %x %s", &a, &i, &b) if err != nil { t.Fatal(err) } if i.Int64() != 291 { t.Fatal(i.Int64(), 291) } }
explode_data.jsonl/80653
{ "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, 26570, 20335, 1072, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 4777, 304, 284, 330, 6023, 220, 15, 87, 16, 17, 18, 53041, 698, 2405, 264, 11, 293, 914, 198, 2405, 600, 1333, 198, 197, 6878, 1848, 1669, 8879, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHasVoted(t *testing.T) { p1 := &poll.Poll{Question: "Question", AnswerOptions: []*poll.AnswerOption{ {Answer: "Answer 1", Voter: []string{"a"}}, {Answer: "Answer 2"}, }, } assert.True(t, p1.HasVoted("a")) assert.False(t, p1.HasVoted("b")) }
explode_data.jsonl/30289
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 10281, 53, 9253, 1155, 353, 8840, 836, 8, 341, 3223, 16, 1669, 609, 30141, 1069, 965, 90, 14582, 25, 330, 14582, 756, 197, 197, 16141, 3798, 25, 29838, 30141, 8624, 3559, 5341, 515, 298, 197, 90, 16141, 25, 330, 16141, 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 TestWriteKeyFilesIfNotExist(t *testing.T) { setupKey, _ := NewServiceAccountSigningKey() key, _ := NewServiceAccountSigningKey() var tests = []struct { setupFunc func(pkiDir string) error expectedError bool expectedKey *rsa.PrivateKey }{ { // key does not exists > key written expectedKey: ke...
explode_data.jsonl/58622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 707 }
[ 2830, 3393, 7985, 1592, 10809, 2679, 45535, 1155, 353, 8840, 836, 8, 1476, 84571, 1592, 11, 716, 1669, 1532, 1860, 7365, 93358, 1592, 741, 23634, 11, 716, 1669, 1532, 1860, 7365, 93358, 1592, 2822, 2405, 7032, 284, 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...
1
func TestCatalog_Register_ForwardDC(t *testing.T) { t.Parallel() dir1, s1 := testServer(t) defer os.RemoveAll(dir1) defer s1.Shutdown() codec := rpcClient(t, s1) defer codec.Close() dir2, s2 := testServerDC(t, "dc2") defer os.RemoveAll(dir2) defer s2.Shutdown() // Try to join joinWAN(t, s2, s1) testrpc.W...
explode_data.jsonl/49211
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 41606, 73124, 84368, 1606, 5626, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 48532, 16, 11, 274, 16, 1669, 1273, 5475, 1155, 340, 16867, 2643, 84427, 14161, 16, 340, 16867, 274, 16, 10849, 18452, 741, 43343, 66, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestIsValidBranchName(t *testing.T) { tests := []struct { name string input string want bool }{ {name: "simple", input: "branch", want: true}, {name: "empty", input: "", want: false}, {name: "short", input: "a", want: true}, {name: "space", input: "got space", want: false}, {name: "special", in...
explode_data.jsonl/13871
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 55470, 18197, 675, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 22427, 914, 198, 197, 50780, 220, 1807, 198, 197, 59403, 197, 197, 47006, 25, 330, 22944, 497, 1946, 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...
2
func TestFormat_Struct(t *testing.T) { str := "some test {Field1:%s} and {Field2:08d}" got := Format(str, &testObject{Field1: "abc", Field2: 123}) want := "some test abc and 00000123" assert.Equal(t, want, got) }
explode_data.jsonl/54322
{ "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, 4061, 72246, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 330, 14689, 1273, 314, 1877, 16, 7533, 82, 92, 323, 314, 1877, 17, 25, 15, 23, 67, 11195, 3174, 354, 1669, 15042, 4199, 11, 609, 1944, 1190, 90, 1877, 16, 25, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStorageLastIndex(t *testing.T) { ents := []pb.Entry{{Index: 3, Term: 3}, {Index: 4, Term: 4}, {Index: 5, Term: 5}} s := &MemoryStorage{ents: ents} last, err := s.LastIndex() if err != nil { t.Errorf("err = %v, want nil", err) } if last != 5 { t.Errorf("term = %d, want %d", last, 5) } s.Append([]p...
explode_data.jsonl/66753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 224 }
[ 2830, 3393, 5793, 5842, 1552, 1155, 353, 8840, 836, 8, 341, 197, 805, 1669, 3056, 16650, 22330, 2979, 1552, 25, 220, 18, 11, 17519, 25, 220, 18, 2137, 314, 1552, 25, 220, 19, 11, 17519, 25, 220, 19, 2137, 314, 1552, 25, 220, 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...
5
func TestMapSliceToBool(t *testing.T) { assert := assert.New(t) g := &Group{ People: []*Person{ {0, "George", 42.42, true}, {1, "Jeff", 0, true}, {2, "Ted", 50, true}, {3, "Luda", 100, false}, }, } s, err := slices.ToBools(g.People, "Male") assert.Nil(err) assert.NotEmpty(s) assert.Equal(s[0], ...
explode_data.jsonl/18826
{ "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, 2227, 33236, 1249, 11233, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 3174, 1669, 609, 2808, 515, 197, 10025, 68, 1164, 25, 29838, 10680, 515, 298, 197, 90, 15, 11, 330, 38952, 497, 220, 19, 17, 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 TestObserve(t *testing.T) { type args struct { mg resource.Managed } type want struct { mg resource.Managed obs managed.ExternalObservation err error } cases := map[string]struct { handler http.Handler kube client.Client args args want want }{ "NotFound": { handler: http.Handl...
explode_data.jsonl/69613
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2987 }
[ 2830, 3393, 4121, 13267, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 2109, 70, 5101, 29902, 3279, 198, 197, 532, 13158, 1366, 2036, 341, 197, 2109, 70, 220, 5101, 29902, 3279, 198, 197, 197, 5481, 8975, 5121, 15342, 377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintInput(t *testing.T) { name := Input{"Lala"} want := true result := PrintInput(name) if result != want { t.Fatalf(`Want %v get %v`, want, result) } }
explode_data.jsonl/8694
{ "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, 8994, 2505, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 5571, 4913, 43, 6053, 16707, 50780, 1669, 830, 198, 9559, 1669, 8213, 2505, 3153, 340, 743, 1102, 961, 1366, 341, 197, 3244, 30762, 5809, 28823, 1018, 85, 633, 1018, 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 ]
2
func TestHistogram(t *testing.T) { for i, test := range []struct { x []float64 weights []float64 dividers []float64 ans []float64 }{ { x: []float64{1, 3, 5, 6, 7, 8}, dividers: []float64{0, 2, 4, 6, 7, 9}, ans: []float64{1, 1, 1, 1, 2}, }, { x: []float64{1, 3,...
explode_data.jsonl/1767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1303 }
[ 2830, 3393, 77210, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 1273, 1669, 2088, 3056, 1235, 341, 197, 10225, 286, 3056, 3649, 21, 19, 198, 197, 197, 13327, 220, 3056, 3649, 21, 19, 198, 197, 63278, 13269, 3056, 3649, 21, 19, 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 TestMappingRuleMarkTombstoned(t *testing.T) { proto := &rulepb.MappingRule{ Uuid: "12669817-13ae-40e6-ba2f-33087b262c68", Snapshots: []*rulepb.MappingRuleSnapshot{ testMappingRuleSnapshot3V2Proto, }, } rr, err := newMappingRuleFromProto(proto, testTagsFilterOptions()) require.NoError(t, err) meta :=...
explode_data.jsonl/64583
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 451 }
[ 2830, 3393, 6807, 11337, 8949, 51, 2855, 7720, 291, 1155, 353, 8840, 836, 8, 341, 197, 15110, 1669, 609, 12937, 16650, 76455, 11337, 515, 197, 15980, 2423, 25, 330, 16, 17, 21, 21, 24, 23, 16, 22, 12, 16, 18, 5918, 12, 19, 15, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPicturesService_Upsert(t *testing.T) { client, mux, _, teardown := setup() defer teardown() tcs := map[string]struct { id string Image *bytes.Buffer want *Picture }{ "ok": {"1", bytes.NewBuffer(make([]byte, 0, 10)), getPicture("1")}, } for n, tc := range tcs { t.Run(n, func(t *testing.T) ...
explode_data.jsonl/53570
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 351 }
[ 2830, 3393, 76646, 1860, 6665, 1690, 529, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 3244, 4837, 1669, 2415, 14032, 60, 1235, 341, 197, 15710, 262, 914, 198, 197, 53397, 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 TestCustomDisplay(t *testing.T) { tests := []struct { node *Node level int expected string }{ { newNodeWithSize("hello", 3*1024*1024), 3, " hello | 3.00 MiB \n", }, { newNodeWithDisplay("hashAAAA"...
explode_data.jsonl/12625
{ "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, 10268, 7020, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 20831, 257, 353, 1955, 198, 197, 53743, 262, 526, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 515, 298, 8638, 1955, 2354, 1695, 445, 14990,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCouchdbRedoLogger(t *testing.T) { testEnv := NewTestVDBEnv(t) defer testEnv.Cleanup() // commitToRedologAndRestart - a helper function that commits directly to redologs and restart the statedb commitToRedologAndRestart := func(newVal string, version *version.Height) { batch := statedb.NewUpdateBatch() ...
explode_data.jsonl/2698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1319 }
[ 2830, 3393, 34, 3026, 1999, 6033, 78, 7395, 1155, 353, 8840, 836, 8, 341, 18185, 14359, 1669, 1532, 2271, 53, 3506, 14359, 1155, 340, 16867, 1273, 14359, 727, 60639, 2822, 197, 322, 5266, 1249, 6033, 1609, 3036, 59354, 481, 264, 13137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue_SearchIssueIDsByKeyword(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) total, ids, err := SearchIssueIDsByKeyword("issue2", []int64{1}, 10, 0) assert.NoError(t, err) assert.EqualValues(t, 1, total) assert.EqualValues(t, []int64{2}, ids) total, ids, err = SearchIssueIDsByKeyword(...
explode_data.jsonl/46845
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 42006, 65913, 42006, 30466, 1359, 34481, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 2398, 34493, 11, 14151, 11, 1848, 1669, 7542, 42006, 30466, 1359, 34481, 445, 11159, 17, 497, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEth_GetFilterChanges_BlockFilter(t *testing.T) { rpcRes := call(t, "eth_newBlockFilter", []string{}) var ID string err := json.Unmarshal(rpcRes.Result, &ID) require.NoError(t, err) time.Sleep(5 * time.Second) changesRes := call(t, "eth_getFilterChanges", []string{ID}) var hashes []common.Hash err = ...
explode_data.jsonl/852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 65390, 13614, 5632, 11317, 51779, 5632, 1155, 353, 8840, 836, 8, 341, 7000, 3992, 1061, 1669, 1618, 1155, 11, 330, 769, 5921, 4713, 5632, 497, 3056, 917, 6257, 692, 2405, 3034, 914, 198, 9859, 1669, 2951, 38097, 2601, 3992, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntry_OnKeyDown_BackspaceBeyondTextAndNewLine(t *testing.T) { entry := widget.NewMultiLineEntry() entry.SetText("H\ni") down := &fyne.KeyEvent{Name: fyne.KeyDown} entry.TypedKey(down) right := &fyne.KeyEvent{Name: fyne.KeyRight} entry.TypedKey(right) key := &fyne.KeyEvent{Name: fyne.KeyBackspace} ent...
explode_data.jsonl/12338
{ "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, 5874, 35482, 24173, 1668, 7821, 1306, 55341, 1178, 3036, 3564, 2460, 1155, 353, 8840, 836, 8, 341, 48344, 1669, 9086, 7121, 20358, 2460, 5874, 741, 48344, 92259, 445, 39, 1699, 72, 5130, 2698, 779, 1669, 609, 30595, 811, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMinifiedDynamicImportWithExpressionCJS(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/a.js": ` import('foo') import(foo()) `, }, entryPaths: []string{"/a.js"}, options: config.Options{ Mode: config.ModeConvertFormat, OutputFormat: ...
explode_data.jsonl/38472
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 6217, 1870, 21752, 11511, 2354, 9595, 34, 12545, 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, 64, 2857, 788, 22074, 571, 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 Test_Execution_CheckHealthy_Never_Healthy_ELB(t *testing.T) { // Should end in Alert Bad Thing Happened State release := models.MockRelease(t) maws := models.MockAwsClients(release) maws.ELB.DescribeInstanceHealthResp["web-elb"] = &mocks.DescribeInstanceHealthResponse{} stateMachine := createTestStateMachin...
explode_data.jsonl/3586
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 62, 20294, 28188, 96113, 1604, 2054, 62, 96113, 2089, 34068, 1155, 353, 8840, 836, 8, 341, 197, 322, 12260, 835, 304, 13975, 11461, 37200, 34700, 6758, 3234, 198, 17200, 1623, 1669, 4119, 24664, 16077, 1155, 692, 2109, 8635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMsgFilter_NotByBot(t *testing.T) { var botID disgord.Snowflake = 123 messageFromBot := &disgord.Message{ Author: &disgord.User{Bot: true}, } messageNotFromBot := &disgord.Message{ Author: &disgord.User{Bot: false}, } testCases := []struct { name string evt interface{...
explode_data.jsonl/1327
{ "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, 6611, 5632, 60816, 1359, 23502, 1155, 353, 8840, 836, 8, 341, 2405, 10924, 915, 32183, 539, 808, 3328, 63456, 284, 220, 16, 17, 18, 271, 24753, 3830, 23502, 1669, 609, 4243, 70, 539, 8472, 515, 197, 197, 7133, 25, 609, 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...
5
func TestDeleteFinalStateUnknown(t *testing.T) { for _, strategy := range updateStrategies() { manager, _, _, err := newTestController() if err != nil { t.Fatalf("error creating DaemonSets controller: %v", err) } addNodes(manager.nodeStore, 0, 1, nil) ds := newDaemonSet("foo") ds.Spec.UpdateStrategy = *...
explode_data.jsonl/50302
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 6435, 19357, 1397, 13790, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 8282, 1669, 2088, 2647, 2580, 69388, 368, 341, 197, 92272, 11, 8358, 8358, 1848, 1669, 501, 2271, 2051, 741, 197, 743, 1848, 961, 2092, 341, 298, 3244, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestAtCharset(t *testing.T) { expectPrinted(t, "@charset \"UTF-8\";", "@charset \"UTF-8\";\n") expectPrinted(t, "@charset 'UTF-8';", "@charset \"UTF-8\";\n") expectParseError(t, "@charset \"US-ASCII\";", "<stdin>: warning: \"UTF-8\" will be used instead of unsupported charset \"US-ASCII\"\n") expectParseError...
explode_data.jsonl/32626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 448 }
[ 2830, 3393, 1655, 78172, 1155, 353, 8840, 836, 8, 341, 24952, 8994, 291, 1155, 11, 8428, 25327, 7245, 8561, 12, 23, 2105, 32503, 8428, 25327, 7245, 8561, 12, 23, 2105, 17882, 77, 1138, 24952, 8994, 291, 1155, 11, 8428, 25327, 364, 856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSingleMapLiteralReturnStatement(t *testing.T) { p := createParser(`return map[string]int{"one":2, "two":3}`) bvmUtils.Assert(t, isReturnStatement(p), "should detect return statement") parseReturnStatement(p) u := p.scope.Next() bvmUtils.AssertNow(t, u.Type() == ast.ReturnStatement, "wrong return type") ...
explode_data.jsonl/49734
{ "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, 10888, 2227, 17350, 5598, 8636, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1855, 6570, 5809, 689, 2415, 14032, 63025, 4913, 603, 788, 17, 11, 330, 19789, 788, 18, 27085, 2233, 7338, 4209, 11711, 1155, 11, 374, 5598, 8636, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWorkerAddFunction(t *testing.T) { if !runIntegrationTests { t.Skip("To run this test, use: go test -integration") } if err := worker.AddFunc("foobar", foobar, 0); err != nil { t.Error(err) } if err := worker.AddFunc("timeout", foobar, 5); err != nil { t.Error(err) } if l := len(worker.funcs); l !=...
explode_data.jsonl/43513
{ "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, 21936, 2212, 5152, 1155, 353, 8840, 836, 8, 341, 743, 753, 6108, 52464, 18200, 341, 197, 3244, 57776, 445, 1249, 1598, 419, 1273, 11, 990, 25, 728, 1273, 481, 60168, 1138, 197, 532, 743, 1848, 1669, 11864, 1904, 9626, 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...
5