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 TestAddKernelParamValid(t *testing.T) { var config RuntimeConfig assert := assert.New(t) expected := []vc.Param{ { Key: "foo", Value: "bar", }, } err := config.AddKernelParam(expected[0]) assert.NoError(err) assert.Exactly(config.HypervisorConfig.KernelParams, expected) }
explode_data.jsonl/44046
{ "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, 2212, 26343, 2001, 4088, 1155, 353, 8840, 836, 8, 341, 2405, 2193, 10954, 2648, 198, 6948, 1669, 2060, 7121, 1155, 692, 42400, 1669, 3056, 7362, 9580, 515, 197, 197, 515, 298, 55242, 25, 256, 330, 7975, 756, 298, 47399, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDoltReset(t *testing.T) { for _, script := range DoltReset { // dolt versioning conflicts with reset harness -- use new harness every time enginetest.TestScript(t, newDoltHarness(t), script) } }
explode_data.jsonl/38717
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 35, 6181, 14828, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 5316, 1669, 2088, 422, 6181, 14828, 341, 197, 197, 322, 294, 6181, 2319, 287, 25800, 448, 7585, 32408, 1177, 990, 501, 32408, 1449, 882, 198, 197, 197, 826, 29876,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOnboardCmd(t *testing.T) { // setup current context utils.SetupContextEnv(t) // initialize mock server for handling requests utils.StartMockery(t) // create a test helper testContext := utils.NewTestHelper(t) // get current directory _, filename, _, ok := runtime.Caller(0) if !ok { t.Fatal("Not a...
explode_data.jsonl/11833
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1402 }
[ 2830, 3393, 1925, 2482, 15613, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 1482, 2266, 198, 80206, 39820, 1972, 14359, 1155, 692, 197, 322, 9468, 7860, 3538, 369, 11589, 7388, 198, 80206, 12101, 11571, 722, 1155, 692, 197, 322, 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...
6
func TestDirMove(t *testing.T) { ctx := context.Background() r := fstest.NewRun(t) defer r.Finalise() r.Mkdir(ctx, r.Fremote) // Make some files and dirs r.ForceMkdir(ctx, r.Fremote) files := []fstest.Item{ r.WriteObject(ctx, "A1/one", "one", t1), r.WriteObject(ctx, "A1/two", "two", t2), r.WriteObject(ct...
explode_data.jsonl/51950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 887 }
[ 2830, 3393, 6184, 9860, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 7000, 1669, 48434, 477, 7121, 6727, 1155, 340, 16867, 435, 991, 977, 1064, 2822, 7000, 1321, 12438, 7502, 11, 435, 991, 18147, 692, 197, 322, 7405, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvWire(t *testing.T) { // Block 203707 hash. hashStr := "3264bc2ac36a60840790ba1d475d01367e7c723da941069e9dc" blockHash, err := chainhash.NewHashFromStr(hashStr) if err != nil { t.Errorf("NewHashFromStr: %v", err) } // Transaction 1 of Block 203707 hash. hashStr = "d28a3dc7392bf00a9855ee93dd9a81eff8...
explode_data.jsonl/40331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1838 }
[ 2830, 3393, 15174, 37845, 1155, 353, 8840, 836, 8, 341, 197, 322, 8362, 220, 17, 15, 18, 22, 15, 22, 5175, 624, 50333, 2580, 1669, 330, 18, 17, 21, 19, 8904, 17, 580, 18, 21, 64, 21, 15, 23, 19, 15, 22, 24, 15, 4645, 16, 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...
8
func Test_Mock_Return_Run(t *testing.T) { // make a test impl object var mockedService = new(TestExampleImplementation) fn := func(args Arguments) { arg := args.Get(0).(*ExampleType) arg.ran = true } c := mockedService.Mock. On("TheExampleMethod3", AnythingOfType("*mock.ExampleType")). Retur...
explode_data.jsonl/8582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 1245, 1176, 53316, 84158, 1155, 353, 8840, 836, 8, 8022, 197, 322, 1281, 264, 1273, 11605, 1633, 319, 2405, 46149, 1860, 284, 501, 31159, 13314, 36850, 7229, 40095, 1669, 2915, 7356, 27702, 8, 972, 197, 47903, 1669, 2827, 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...
1
func TestGather(t *testing.T) { saveFind := findSockets saveDump := perfDump defer func() { findSockets = saveFind perfDump = saveDump }() findSockets = func(c *Ceph) ([]*socket, error) { return []*socket{&socket{"osd.1", typeOsd, ""}}, nil } perfDump = func(binary string, s *socket) (string, error) { ...
explode_data.jsonl/25190
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 38, 1856, 1155, 353, 8840, 836, 8, 341, 49230, 9885, 1669, 1477, 50, 19601, 198, 49230, 51056, 1669, 21784, 51056, 198, 16867, 2915, 368, 341, 197, 80603, 50, 19601, 284, 3581, 9885, 198, 197, 197, 59545, 51056, 284, 3581, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestXMLNameIsValid(t *testing.T) { var tests = []struct { element string actual bool }{ {"", false}, {"\xff\xfdand_the_rest", false}, {"valid", true}, {" with_leading_space", false}, {"with space", false}, {"åmal", true}, {"Ball", true}, {"éééé", true}, {"!cruft", false}, {"_underscore",...
explode_data.jsonl/72038
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 434 }
[ 2830, 3393, 10609, 675, 55470, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 43707, 914, 198, 197, 88814, 220, 1807, 198, 197, 59403, 197, 197, 4913, 497, 895, 1583, 197, 197, 4913, 59, 9020, 3462, 6902, 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...
3
func TestHandlerWrapper_Invoke(t *testing.T) { Convey("Given a wrapped function", t, func() { var ( receivedContext context.Context receivedPayload interface{} ) expectedContext := context.Background() // important because lambda defers cancelling the context expectedContext, cancelContext := context...
explode_data.jsonl/35580
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2154 }
[ 2830, 3393, 3050, 11542, 79143, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 22043, 264, 19472, 729, 497, 259, 11, 2915, 368, 341, 197, 2405, 2399, 298, 17200, 8771, 1972, 2266, 9328, 198, 298, 17200, 8771, 29683, 3749, 16094, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHash160(t *testing.T) { testHashHex := "51d9ac622c2133ca4aaf58d4a4239526eb42c348" hash, err := Hash160([]byte("teststring")) if err != nil { t.Error(err) } hashHex := hex.EncodeToString(hash) if hashHex != testHashHex { testutils.CompareError(t, "Deterministic hash RIPEMD160(SHA256(data)) different ...
explode_data.jsonl/67114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 6370, 16, 21, 15, 1155, 353, 8840, 836, 8, 341, 18185, 6370, 20335, 1669, 330, 20, 16, 67, 24, 580, 21, 17, 17, 66, 17, 16, 18, 18, 924, 19, 64, 2577, 20, 23, 67, 19, 64, 19, 17, 18, 24, 20, 17, 21, 3065, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTableGetRouteFamily(t *testing.T) { ipv4t := NewTable(bgp.RF_IPv4_UC) rf := ipv4t.GetRoutefamily() assert.Equal(t, rf, bgp.RF_IPv4_UC) }
explode_data.jsonl/6675
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 2556, 1949, 4899, 15192, 1155, 353, 8840, 836, 8, 341, 197, 42676, 19, 83, 1669, 1532, 2556, 1883, 21888, 2013, 37, 16607, 85, 19, 80314, 340, 7000, 69, 1669, 45475, 19, 83, 2234, 49, 411, 823, 5174, 741, 6948, 12808, 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
func Test_DatabaseAccountsSqlDatabasesThroughputSettings_Spec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of DatabaseAccountsSqlDatabasesT...
explode_data.jsonl/21817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 1557, 2211, 41369, 8269, 35, 23822, 23857, 628, 6086, 1098, 992, 62, 4498, 77521, 78967, 98054, 2848, 4756, 2121, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 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 TestNormalizeOperation(t *testing.T) { t.Run("normal path no slash", func(t *testing.T) { p := "path" p, _ = normalizeOperation(p) assert.Equal(t, "path", p) }) t.Run("normal path caps", func(t *testing.T) { p := "Path" p, _ = normalizeOperation(p) assert.Equal(t, "Path", p) }) t.Run("single s...
explode_data.jsonl/21746
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 511 }
[ 2830, 3393, 87824, 8432, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 8252, 1815, 902, 36626, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3223, 1669, 330, 2343, 698, 197, 3223, 11, 716, 284, 21694, 8432, 1295, 692, 197, 6948, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestData(t *testing.T) { t.Run("contenttype is set", func(t *testing.T) { resp := NewInvokeMethodRequest("test_method") resp.WithRawData([]byte("test"), "application/json") contentType, bData := resp.RawData() assert.Equal(t, "application/json", contentType) assert.Equal(t, []byte("test"), bData) }) ...
explode_data.jsonl/46241
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 93200, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1796, 1313, 374, 738, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 34653, 1669, 1532, 17604, 3523, 1900, 445, 1944, 9032, 1138, 197, 34653, 26124, 20015, 1043, 10556, 3782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoteSpend(t *testing.T) { t.Run("pre-sweep", func(t *testing.T) { testRemoteSpend(t, false) }) t.Run("post-sweep", func(t *testing.T) { testRemoteSpend(t, true) }) }
explode_data.jsonl/34224
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 24703, 50, 3740, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1726, 1331, 48542, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 18185, 24703, 50, 3740, 1155, 11, 895, 340, 197, 3518, 3244, 16708, 445, 2203, 1331, 48542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllReadings(t *testing.T) { dic := mocks.NewMockDIC() dbClientMock := &dbMock.DBClient{} dbClientMock.On("AllReadings", 0, 20).Return([]models.Reading{}, nil) dbClientMock.On("AllReadings", 0, 1).Return([]models.Reading{}, nil) dic.Update(di.ServiceConstructorMap{ container.DBClientInterfaceName: func(g...
explode_data.jsonl/22699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 974 }
[ 2830, 3393, 2403, 4418, 819, 1155, 353, 8840, 836, 8, 341, 2698, 292, 1669, 68909, 7121, 11571, 93161, 741, 20939, 2959, 11571, 1669, 609, 1999, 11571, 22537, 2959, 16094, 20939, 2959, 11571, 8071, 445, 2403, 4418, 819, 497, 220, 15, 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 TestBuildWithEmptyLayers(t *testing.T) { dockerfile := ` FROM busybox COPY 1/ /target/ COPY 2/ /target/ COPY 3/ /target/ ` ctx := context.Background() source := fakecontext.New(t, "", fakecontext.WithDockerfile(dockerfile), fakecontext.WithFile("1/a", "asdf"), fakecontext.WithFile("2/...
explode_data.jsonl/82583
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 303 }
[ 2830, 3393, 11066, 2354, 3522, 40235, 1155, 353, 8840, 836, 8, 341, 2698, 13659, 1192, 1669, 22074, 197, 44768, 262, 13028, 2011, 198, 197, 6258, 9930, 262, 220, 16, 14, 608, 5657, 5894, 197, 6258, 9930, 262, 220, 17, 14, 608, 5657, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPresumedDead(t *testing.T) { comm1, _ := newCommInstance(t, naiveSec) comm2, port2 := newCommInstance(t, naiveSec) wg := sync.WaitGroup{} wg.Add(1) go func() { wg.Wait() comm1.Send(createGossipMsg(), remotePeer(port2)) }() ticker := time.NewTicker(time.Duration(10) * time.Second) acceptCh := comm...
explode_data.jsonl/42174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 14367, 38155, 28320, 1155, 353, 8840, 836, 8, 341, 197, 3621, 16, 11, 716, 1669, 501, 17977, 2523, 1155, 11, 49665, 8430, 340, 197, 3621, 17, 11, 2635, 17, 1669, 501, 17977, 2523, 1155, 11, 49665, 8430, 692, 72079, 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 TestIsAggregated(t *testing.T) { cases := []struct { name string input []byte expected bool }{ { name: "not aggregated", input: []byte("not aggregated"), expected: false, }, { name: "aggregated", input: append(magicNumber, []byte("aggregated")...), expected: tru...
explode_data.jsonl/57244
{ "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, 3872, 9042, 93040, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 3056, 3782, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 257, 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 TestPGWireDrainClient(t *testing.T) { defer leaktest.AfterTest(t)() params, _ := createTestServerParams() params.Insecure = true s, _, _ := serverutils.StartServer(t, params) defer s.Stopper().Stop() host, port, err := net.SplitHostPort(s.ServingAddr()) if err != nil { t.Fatal(err) } pgBaseURL := url....
explode_data.jsonl/15523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 11383, 37845, 8847, 466, 2959, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 25856, 11, 716, 1669, 1855, 2271, 5475, 4870, 741, 25856, 5337, 25132, 284, 830, 198, 1903, 11, 8358, 716, 1669, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestResolveIdentifyImplicitTeamWithReaders(t *testing.T) { tt := newTeamTester(t) defer tt.cleanup() tt.addUser("abc") g := tt.users[0].tc.G tt.addUser("wong") wong := tt.users[1] wong.proveRooter() iTeamNameCreate := tt.users[0].username + "#" + strings.Join([]string{"bob@github", wong.username}, ",") ...
explode_data.jsonl/42660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 768 }
[ 2830, 3393, 56808, 28301, 1437, 59558, 14597, 2354, 4418, 388, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 14597, 58699, 1155, 340, 16867, 17853, 87689, 2822, 3244, 83, 1364, 1474, 445, 13683, 1138, 3174, 1669, 17853, 20653, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServiceCreateArg(t *testing.T) { action, created, _, err := fakeServiceCreate([]string{ "service", "create", "foo", "--image", "gcr.io/foo/bar:baz", "--arg", "myArg1", "--arg", "--myArg2", "--arg", "--myArg3=3", "--no-wait"}, false) assert.NilError(t, err) assert.Assert(t, action.Matches("create", "se...
explode_data.jsonl/42443
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 1860, 4021, 2735, 1155, 353, 8840, 836, 8, 341, 38933, 11, 3465, 11, 8358, 1848, 1669, 12418, 1860, 4021, 10556, 917, 515, 197, 197, 1, 7936, 497, 330, 3182, 497, 330, 7975, 497, 14482, 1805, 497, 330, 70, 5082, 4245, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Each(t *testing.T) { a := NewSet() a.Add("Z") a.Add("Y") a.Add("X") a.Add("W") b := NewSet() a.Each(func(elem interface{}) bool { b.Add(elem) return false }) if !a.Equal(b) { t.Error("The sets are not equal after iterating (Each) through the first set") } var count int a.Each(func(elem i...
explode_data.jsonl/202
{ "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, 2089, 610, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1532, 1649, 2822, 11323, 1904, 445, 57, 1138, 11323, 1904, 445, 56, 1138, 11323, 1904, 445, 55, 1138, 11323, 1904, 445, 54, 5130, 2233, 1669, 1532, 1649, 741, 11323, 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 TestMotanEndpoint_Call(t *testing.T) { url := &motan.URL{Port: 8989, Protocol: "motan2"} url.PutParam(motan.TimeOutKey, "100") url.PutParam(motan.ErrorCountThresholdKey, "1") ep := &MotanEndpoint{} ep.SetURL(url) ep.SetProxy(true) ep.SetSerialization(&serialize.SimpleSerialization{}) ep.Initialize() reque...
explode_data.jsonl/52240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 59932, 276, 27380, 76028, 1155, 353, 8840, 836, 8, 341, 19320, 1669, 609, 46828, 276, 20893, 90, 7084, 25, 220, 23, 24, 23, 24, 11, 24572, 25, 330, 46828, 276, 17, 16707, 19320, 39825, 2001, 1255, 354, 276, 16299, 2662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuObjectPack2(t *testing.T) { ob := &SuObject{} ob.Add(One) ob.Set(SuStr("a"), SuInt(2)) buf := Pack(ob) expected := []byte{6, 1, 3, 3, 129, 10, 1, 2, 4, 97, 3, 3, 129, 20} assert.T(t).This([]byte(buf)).Is(expected) }
explode_data.jsonl/7122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 36459, 1190, 30684, 17, 1155, 353, 8840, 836, 8, 341, 63353, 1669, 609, 36459, 1190, 16094, 63353, 1904, 7, 3966, 340, 63353, 4202, 3759, 84, 2580, 445, 64, 3975, 16931, 1072, 7, 17, 1171, 26398, 1669, 13795, 49595, 340, 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 TestLabels_MarshalGQL(t *testing.T) { as := assert.New(t) var tests = []struct { input Labels expected string }{ //given {Labels{"annotation": 123}, `{"annotation":123}`}, {Labels{"annotation": []string{"val1", "val2"}}, `{"annotation":["val1","val2"]}`}, } for _, test := range tests { //when...
explode_data.jsonl/47660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 23674, 1245, 28423, 38, 3588, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 2060, 7121, 1155, 692, 2405, 7032, 284, 3056, 1235, 341, 197, 22427, 262, 60996, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 322, 41968, 198, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestReportsExpireAsExpected(t *testing.T) { const ( testNamespace = "default" testReportName = "test-report" testQueryName = "test-query" ) testTable := []struct { name string nowAdder int report *metering.Report }{ { name: "expired report should be deleted", report: testhelp...
explode_data.jsonl/8852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 23748, 8033, 554, 2121, 18896, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 18185, 22699, 220, 284, 330, 2258, 698, 197, 18185, 10361, 675, 284, 330, 1944, 47411, 698, 197, 18185, 2859, 675, 220, 284, 330, 1944, 65489, 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 TestAddSequencedLeavesWithDuplicates(t *testing.T) { ctx := context.Background() leaves := createTestLeaves(6, 0) aslt := initAddSequencedLeavesTest(t) mustSignAndStoreLogRoot(ctx, aslt.t, aslt.s, aslt.tree, 0) aslt.addSequencedLeaves(leaves[:3]) aslt.verifySequencedLeaves(0, 3, leaves[:3]) aslt.addSequenc...
explode_data.jsonl/30680
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 2212, 1514, 446, 5767, 2304, 4693, 2354, 76851, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 197, 273, 4693, 1669, 1855, 2271, 2304, 4693, 7, 21, 11, 220, 15, 692, 60451, 4832, 1669, 2930, 2212, 1514, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMeshSubscriptions(t *testing.T) { assert := asserts.NewTesting(t, asserts.FailStop) ctx, cancel := context.WithCancel(context.Background()) sigc := make(chan interface{}) forwardFunc := func(cell mesh.Cell, in mesh.Receptor, out mesh.Emitter) error { for { select { case <-cell.Context().Done(): ...
explode_data.jsonl/18922
{ "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, 14194, 3136, 29966, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 56776, 7121, 16451, 1155, 11, 56776, 57243, 10674, 340, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 84841, 66, 1669, 1281, 35190, 3749, 37790, 2023...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllGrpcServerSettingsExceptAuth(t *testing.T) { gss := &GRPCServerSettings{ NetAddr: confignet.NetAddr{ Endpoint: "localhost:1234", Transport: "tcp", }, TLSSetting: &configtls.TLSServerSetting{ TLSSetting: configtls.TLSSetting{}, ClientCAFile: "", }, MaxRecvMsgSizeMiB: 1, MaxConc...
explode_data.jsonl/80326
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 450 }
[ 2830, 3393, 2403, 6464, 3992, 5475, 6086, 58015, 5087, 1155, 353, 8840, 836, 8, 341, 3174, 778, 1669, 609, 8626, 4872, 5475, 6086, 515, 197, 197, 6954, 13986, 25, 2335, 84858, 16993, 13986, 515, 298, 197, 27380, 25, 220, 330, 8301, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNew(t *testing.T) { t.Run("NoPrefetch", func(t *testing.T) { testfs.TestFS(t, testFileSystemNoPrefetch) }) t.Run("Prefetch", func(t *testing.T) { testfs.TestFS(t, testFileSystemPrefetch) }) }
explode_data.jsonl/11436
{ "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, 3564, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2753, 29978, 2995, 497, 2915, 1155, 353, 8840, 836, 8, 314, 1273, 3848, 8787, 8485, 1155, 11, 1273, 50720, 2753, 29978, 2995, 8, 2751, 3244, 16708, 445, 29978, 2995, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestCommitWithoutNewTermEntry(t *testing.T) { tt := newNetwork(nil, nil, nil, nil, nil) tt.send(pb.Message{From: 1, To: 1, Type: pb.MsgHup}) // 0 cannot reach 2,3,4 tt.cut(1, 3) tt.cut(1, 4) tt.cut(1, 5) tt.send(pb.Message{From: 1, To: 1, Type: pb.MsgProp, Entries: []pb.Entry{{Data: []byte("some data")}}}...
explode_data.jsonl/67338
{ "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, 33441, 26040, 3564, 17249, 5874, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 12320, 27907, 11, 2092, 11, 2092, 11, 2092, 11, 2092, 340, 3244, 83, 5219, 76878, 8472, 90, 3830, 25, 220, 16, 11, 2014, 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...
3
func TestServiceCreateWithLimits(t *testing.T) { action, created, _, err := fakeServiceCreate([]string{ "service", "create", "foo", "--image", "gcr.io/foo/bar:baz", "--limit", "cpu=1000m", "--limit", "memory=1024Mi", "--no-wait"}, false) if err != nil { t.Fatal(err) } else if !action.Matches("create", "serv...
explode_data.jsonl/42446
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 1860, 4021, 2354, 94588, 1155, 353, 8840, 836, 8, 341, 38933, 11, 3465, 11, 8358, 1848, 1669, 12418, 1860, 4021, 10556, 917, 515, 197, 197, 1, 7936, 497, 330, 3182, 497, 330, 7975, 497, 14482, 1805, 497, 330, 70, 5082, 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 TestTermEqual(t *testing.T) { assertTermEqual(t, NullTerm(), NullTerm()) assertTermEqual(t, BooleanTerm(true), BooleanTerm(true)) assertTermEqual(t, IntNumberTerm(5), IntNumberTerm(5)) assertTermEqual(t, NumberTerm(json.Number("1e6")), NumberTerm("1000000")) assertTermEqual(t, StringTerm("a string"), StringTe...
explode_data.jsonl/2910
{ "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, 17249, 2993, 1155, 353, 8840, 836, 8, 341, 6948, 17249, 2993, 1155, 11, 18084, 17249, 1507, 18084, 17249, 2398, 6948, 17249, 2993, 1155, 11, 6992, 17249, 3715, 701, 6992, 17249, 3715, 1171, 6948, 17249, 2993, 1155, 11, 1333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorization_IngressGateway(t *testing.T) { framework.NewTest(t). Run(func(ctx framework.TestContext) { ns := namespace.NewOrFail(t, ctx, namespace.Config{ Prefix: "v1beta1-ingress-gateway", Inject: true, }) args := map[string]string{ "Namespace": ns.Name(), "RootNamespace": ro...
explode_data.jsonl/41496
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 962 }
[ 2830, 3393, 18124, 25972, 2483, 40709, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 7121, 2271, 1155, 4292, 197, 85952, 18552, 7502, 12626, 8787, 1972, 8, 341, 298, 84041, 1669, 4473, 7121, 46059, 1155, 11, 5635, 11, 4473, 10753, 515, 571,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthServers(t *testing.T) { var plainServers = []string{ "nats://localhost:1222", "nats://localhost:1224", } auth := &auth.Plain{ Username: "derek", Password: "foo", } as1 := RunServerOnPort(1222) as1.SetClientAuthMethod(auth) defer as1.Shutdown() as2 := RunServerOnPort(1224) as2.SetClientAu...
explode_data.jsonl/1551
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 491 }
[ 2830, 3393, 5087, 78139, 1155, 353, 8840, 836, 8, 341, 2405, 14396, 78139, 284, 3056, 917, 515, 197, 197, 1, 77, 1862, 1110, 8301, 25, 16, 17, 17, 17, 756, 197, 197, 1, 77, 1862, 1110, 8301, 25, 16, 17, 17, 19, 756, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestClearAllExtensions(t *testing.T) { // unregistered extension desc := &proto.ExtensionDesc{ ExtendedType: (*pb.MyMessage)(nil), ExtensionType: (*bool)(nil), Field: 101010100, Name: "emptyextension", Tag: "varint,0,opt", } m := &pb.MyMessage{} if proto.HasExtension(m, d...
explode_data.jsonl/55069
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 14008, 2403, 31282, 1155, 353, 8840, 836, 8, 341, 197, 322, 650, 34909, 8894, 198, 41653, 1669, 609, 15110, 59715, 11065, 515, 197, 197, 53190, 929, 25, 220, 4609, 16650, 27054, 2052, 2376, 8385, 1326, 197, 197, 12049, 929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestSubscribeBalAndPos(t *testing.T) { r := prework_pri(CROSS_ACCOUNT) var res bool var err error param := map[string]string{} // 产品信息 param["channel"] = "balance_and_position" res, _, err = r.Subscribe(param) if res { fmt.Println("Successfully subscribed!") } else { fmt.Println("Subscription faile...
explode_data.jsonl/61330
{ "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, 28573, 37889, 3036, 4859, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 855, 1778, 85639, 3025, 44484, 38831, 340, 2405, 592, 1807, 198, 2405, 1848, 1465, 271, 36037, 1669, 2415, 14032, 30953, 31483, 197, 322, 220, 82700, 27369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldTransformManifest(t *testing.T) { tests := []struct { manifest map[string]interface{} expected bool }{ {manifest: map[string]interface{}{}, expected: false}, {manifest: map[string]interface{}{"xxx": "v1", "yyy": "Pod"}, expected: false}, // non-KRM {manifest: map[string]interface{}{"apiVersio...
explode_data.jsonl/48441
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1058 }
[ 2830, 3393, 14996, 8963, 38495, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 42315, 2415, 14032, 31344, 16094, 197, 42400, 1807, 198, 197, 59403, 197, 197, 90, 42315, 25, 2415, 14032, 31344, 6257, 22655, 3601, 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 TestGetAuthorization(t *testing.T) { c, _ := NewClient(testClientID, testSecret, APIBaseSandBox) c.GetAccessToken() _, err := c.GetAuthorization(testAuthID) if err == nil { t.Errorf("GetAuthorization expects error") } }
explode_data.jsonl/18442
{ "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, 1949, 18124, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 1532, 2959, 8623, 2959, 915, 11, 1273, 19773, 11, 5333, 3978, 47044, 1611, 340, 1444, 2234, 37649, 2822, 197, 6878, 1848, 1669, 272, 2234, 18124, 8623, 5087, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFutureSchemaGrantCreate(t *testing.T) { r := require.New(t) in := map[string]interface{}{ "on_future": true, "database_name": "test-db", "privilege": "USAGE", "roles": []interface{}{"test-role-1", "test-role-2"}, "with_grant_option": true, } d := schema.TestResour...
explode_data.jsonl/74765
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 396 }
[ 2830, 3393, 24206, 8632, 67971, 4021, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 692, 17430, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 263, 59740, 788, 260, 830, 345, 197, 197, 1, 12216, 1269, 788, 257, 330, 1944,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMarginInfo(t *testing.T) { t.Parallel() _, err := b.GetMarginInfo() if err == nil { t.Error("Test Failed - GetMarginInfo() error") } }
explode_data.jsonl/79941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 63 }
[ 2830, 3393, 1949, 21681, 1731, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 2234, 21681, 1731, 741, 743, 1848, 621, 2092, 341, 197, 3244, 6141, 445, 2271, 21379, 481, 2126, 21681, 1731, 368, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestAgent_RegisterService(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), "") defer a.Shutdown() args := &structs.ServiceDefinition{ Name: "test", Meta: map[string]string{"hello": "world"}, Tags: []string{"master"}, Port: 8000, Check: structs.CheckType{ TTL: 15 * time.Second, }, Chec...
explode_data.jsonl/33625
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 16810, 73124, 1860, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 31215, 1669, 609, 1235, 82, 13860, 10398, 515, 197, 21297, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestStopConsuming_BatchConsumer(t *testing.T) { connection, err := OpenConnection("batchConsume", "tcp", "localhost:6379", 1, nil) assert.NoError(t, err) queue, err := connection.OpenQueue("batchConsume-q") assert.NoError(t, err) _, err = queue.PurgeReady() assert.NoError(t, err) deliveryCount := int64(50)...
explode_data.jsonl/44671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 509 }
[ 2830, 3393, 10674, 41966, 287, 1668, 754, 29968, 1155, 353, 8840, 836, 8, 341, 54590, 11, 1848, 1669, 5264, 4526, 445, 14049, 1109, 31323, 497, 330, 27161, 497, 330, 8301, 25, 21, 18, 22, 24, 497, 220, 16, 11, 2092, 340, 6948, 35699...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestShouldDisconnect(t *testing.T) { dispatcher := &clientmocks.MockDispatcher{LastBlock: 100} ctx := mocks.NewMockContext(mockmsp.NewMockSigningIdentity("test", org1MSP)) resolver := New(dispatcher, ctx, channelID) disconnect := resolver.ShouldDisconnect(peers, p1) assert.Falsef(t, disconnect, "expecting pe...
explode_data.jsonl/1509
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 14996, 60651, 1155, 353, 8840, 836, 8, 341, 60072, 261, 1669, 609, 2972, 16712, 82, 24664, 21839, 90, 5842, 4713, 25, 220, 16, 15, 15, 532, 20985, 1669, 68909, 7121, 11571, 1972, 30389, 92545, 7121, 11571, 93358, 18558, 445,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSessionsController_Destroy_ReapSessions(t *testing.T) { t.Parallel() client := http.Client{} app := cltest.NewApplicationEVMDisabled(t) q := pg.NewQ(app.GetSqlxDB(), app.GetLogger(), app.GetConfig()) require.NoError(t, app.Start()) correctSession := sessions.NewSession() mustInsertSession(t, q, &corre...
explode_data.jsonl/12811
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 365 }
[ 2830, 3393, 59062, 2051, 79266, 50693, 391, 59062, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 25291, 1669, 1758, 11716, 16094, 28236, 1669, 1185, 1944, 7121, 4988, 36, 11187, 25907, 1155, 340, 18534, 1669, 17495, 7121, 48, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateSmrState(t *testing.T) { smr, err := MakeSmr(t) if err != nil { t.Error("TestUpdateSmrState MakeSmr error", err) return } proposalQC := &pb.QuorumCert{ ProposalId: []byte("proposalQC ProposalId"), ProposalMsg: []byte("proposalQC ProposalMsg"), Type: pb.QCState_PREPARE, ViewNumber:...
explode_data.jsonl/33023
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 4289, 10673, 81, 1397, 1155, 353, 8840, 836, 8, 341, 1903, 20946, 11, 1848, 1669, 7405, 10673, 81, 1155, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 2271, 4289, 10673, 81, 1397, 7405, 10673, 81, 1465, 497, 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...
3
func TestEnableGangSchedulingWithDupScheduler(t *testing.T) { f := newFixture(t) startTime := metav1.Now() completionTime := metav1.Now() mpiJob := newMPIJobWithCPUs("test", int32Ptr(16), &startTime, &completionTime) f.setUpMPIJob(mpiJob) mpiJob.Spec.Template.Spec.SchedulerName = "xyz" f.setUpConfigMap(newConf...
explode_data.jsonl/75020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 11084, 38, 524, 50, 44356, 2354, 85713, 38878, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 21375, 1462, 1669, 77520, 16, 13244, 741, 32810, 14386, 1462, 1669, 77520, 16, 13244, 2822, 197, 39479, 12245, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPoliciesPutV1Empty(t *testing.T) { f := newFixture(t) req := newReqV1(http.MethodPut, "/policies/1", "") f.server.Handler.ServeHTTP(f.recorder, req) if f.recorder.Code != 400 { t.Fatalf("Expected bad request but got %v", f.recorder) } }
explode_data.jsonl/79008
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 47, 42038, 19103, 53, 16, 3522, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 24395, 1669, 501, 27234, 53, 16, 19886, 20798, 19103, 11, 3521, 79, 42038, 14, 16, 497, 85617, 1166, 12638, 31010, 83535, 923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue55(t *testing.T) { jsonStr := `{"one": {"two": 2, "three": 3}, "four": 4, "five": 5}` results := GetMany(jsonStr, "four", "five", "one.two", "one.six") expected := []string{"4", "5", "2", ""} for i, r := range results { if r.String() != expected[i] { t.Fatalf("expected %v, got %v", expected[i], r...
explode_data.jsonl/43450
{ "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, 42006, 20, 20, 1155, 353, 8840, 836, 8, 341, 30847, 2580, 1669, 1565, 4913, 603, 788, 5212, 19789, 788, 220, 17, 11, 330, 27856, 788, 220, 18, 2137, 330, 34024, 788, 220, 19, 11, 330, 52670, 788, 220, 20, 31257, 55497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFluentBuilder(t *testing.T) { type test struct { name string company string address string expected Employee } tests := []test{ { name: "emp1", company: "comp1", address: "earth", expected: Employee{"emp1", "comp1", "earth"}, }, } for _, tc := range tests { tc = tc ...
explode_data.jsonl/58845
{ "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, 3882, 11680, 3297, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 2036, 341, 197, 11609, 257, 914, 198, 197, 197, 10139, 220, 914, 198, 197, 63202, 220, 914, 198, 197, 42400, 16850, 198, 197, 630, 78216, 1669, 3056, 1944, 515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFailToListen(t *testing.T) { l, _ := zap.NewDevelopment() handler := app.NewGRPCHandler(l, &mockSpanProcessor{}) server := grpc.NewServer() const invalidPort = -1 addr, err := StartGRPCCollector(invalidPort, server, handler, &mockSamplingStore{}, l, func(e error) { }) assert.Nil(t, addr) assert.EqualEr...
explode_data.jsonl/15622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 19524, 15324, 268, 1155, 353, 8840, 836, 8, 341, 8810, 11, 716, 1669, 32978, 7121, 39419, 741, 53326, 1669, 906, 7121, 95993, 2149, 5252, 2333, 11, 609, 16712, 12485, 22946, 37790, 41057, 1669, 47900, 7121, 5475, 741, 4777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithAfterStep(t *testing.T) { c := 0 suite := NewSuite(t, WithFeaturesPath("features/background.feature"), WithAfterStep(func(ctx Context) { c++ // feature should be *msgs.GherkinDocument_Feature feature, err := ctx.Get(FeatureKey{}) require.NoError(t, err) if _, ok := feature.(*msgs.GherkinDocume...
explode_data.jsonl/69376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 330 }
[ 2830, 3393, 2354, 6025, 8304, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 220, 15, 198, 96572, 1669, 1532, 28000, 1155, 11, 3085, 21336, 1820, 445, 20304, 82445, 29591, 3975, 3085, 6025, 8304, 18552, 7502, 9608, 8, 341, 197, 1444, 81452, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImageRef_GetOrientation__NoEXIF(t *testing.T) { Startup(nil) image, err := NewImageFromFile(resources + "png-24bit.png") require.NoError(t, err) defer image.Close() assert.Equal(t, 0, image.GetOrientation()) }
explode_data.jsonl/38828
{ "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, 1906, 3945, 13614, 22332, 563, 2753, 3257, 2773, 1155, 353, 8840, 836, 8, 341, 197, 39076, 27907, 692, 31426, 11, 1848, 1669, 1532, 1906, 43633, 52607, 488, 330, 14066, 12, 17, 19, 4489, 3508, 1138, 17957, 35699, 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
func TestGetPods(t *testing.T) { manager, fakeDocker := newTestDockerManager() dockerContainers := []*FakeContainer{ { ID: "1111", Name: "/k8s_foo_qux_new_1234_42", }, { ID: "2222", Name: "/k8s_bar_qux_new_1234_42", }, { ID: "3333", Name: "/k8s_bar_jlk_wen_5678_42", }, } // Conv...
explode_data.jsonl/31153
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 607 }
[ 2830, 3393, 1949, 23527, 82, 1155, 353, 8840, 836, 8, 341, 92272, 11, 12418, 35, 13659, 1669, 501, 2271, 35, 13659, 2043, 741, 2698, 13659, 74632, 1669, 29838, 52317, 4502, 515, 197, 197, 515, 298, 29580, 25, 256, 330, 16, 16, 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...
5
func TestRangeIsEmpty(t *testing.T) { assert.Equal(t, false, Range{Pos: 1, Size: 2}.IsEmpty()) assert.Equal(t, true, Range{Pos: 1, Size: 0}.IsEmpty()) assert.Equal(t, true, Range{Pos: 1, Size: -1}.IsEmpty()) }
explode_data.jsonl/2634
{ "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, 6046, 91307, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 895, 11, 16437, 90, 4859, 25, 220, 16, 11, 8478, 25, 220, 17, 7810, 91307, 2398, 6948, 12808, 1155, 11, 830, 11, 16437, 90, 4859, 25, 220, 16, 11, 8478,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterpreterDoubleIndex(t *testing.T) { s, err := parseFile("src/parse/asp/test_data/interpreter/double_index.build") assert.NoError(t, err) assert.EqualValues(t, 1, s.Lookup("y")) }
explode_data.jsonl/81084
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 58426, 7378, 1552, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 4715, 1703, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 3446, 1201, 3560, 13239, 1138, 6948, 35699, 1155, 11, 1848, 340, 6948, 12808, 6227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcilePublicIPWithNewService(t *testing.T) { az := getTestCloud() svc := getTestService("servicea", v1.ProtocolTCP, 80, 443) pip, err := az.reconcilePublicIP(testClusterName, &svc, true /* wantLb*/) if err != nil { t.Errorf("Unexpected error: %q", err) } validatePublicIP(t, pip, &svc, true) pip2,...
explode_data.jsonl/50404
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 693, 40446, 457, 12676, 3298, 2354, 3564, 1860, 1155, 353, 8840, 836, 8, 341, 197, 1370, 1669, 633, 2271, 16055, 741, 1903, 7362, 1669, 633, 2271, 1860, 445, 7936, 64, 497, 348, 16, 54096, 49896, 11, 220, 23, 15, 11, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestServiceResolver_ServicesQuery(t *testing.T) { name := "name" namespace := "namespace" assert := assert.New(t) t.Run("Success", func(t *testing.T) { resource := fixService(name, namespace, nil) resources := []*v1.Service{ resource, resource, } expected := []gqlschema.Service{ { Name: na...
explode_data.jsonl/51132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 710 }
[ 2830, 3393, 1860, 18190, 1098, 2161, 2859, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 330, 606, 698, 56623, 1669, 330, 2231, 1837, 6948, 1669, 2060, 7121, 1155, 692, 3244, 16708, 445, 7188, 497, 2915, 1155, 353, 8840, 836, 8, 1476, 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 TestProcessInput(t *testing.T) { pos, err := ProcessInput(testInput, Position2D{}, AppliedCommand) testutil.CheckUnexpectedError(t, err) exp := Position2D{ X: 15, Depth: 10, } if pos != exp { t.Fatalf("want %v, have %v", exp, pos) } }
explode_data.jsonl/39653
{ "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, 7423, 2505, 1155, 353, 8840, 836, 8, 341, 28164, 11, 1848, 1669, 8603, 2505, 8623, 2505, 11, 12380, 17, 35, 22655, 42508, 4062, 340, 18185, 1314, 10600, 29430, 1454, 1155, 11, 1848, 692, 48558, 1669, 12380, 17, 35, 515, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRevokeLastDevice(t *testing.T) { tc := SetupEngineTest(t, "rev") defer tc.Cleanup() u := CreateAndSignupFakeUser(tc, "rev") assertNumDevicesAndKeys(tc, u, 1, 2) devices, _ := getActiveDevicesAndKeys(tc, u) thisDevice := devices[0] // Revoking the current device should fail. err := doRevokeDevice(tc...
explode_data.jsonl/40410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 337 }
[ 2830, 3393, 693, 7621, 5842, 6985, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 18626, 4571, 2271, 1155, 11, 330, 7282, 1138, 16867, 17130, 727, 60639, 2822, 10676, 1669, 4230, 3036, 56246, 52317, 1474, 44415, 11, 330, 7282, 5130, 6948, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestInspectConfigTx(t *testing.T) { configTxDest := filepath.Join(tmpDir, "configtx") config := configtxgentest.Load(genesisconfig.SampleSingleMSPChannelProfile) assert.NoError(t, doOutputChannelCreateTx(config, "foo", configTxDest), "Good outputChannelCreateTx generation request") assert.NoError(t, doInspec...
explode_data.jsonl/14590
{ "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, 58533, 2648, 31584, 1155, 353, 8840, 836, 8, 341, 25873, 51, 15764, 477, 1669, 26054, 22363, 10368, 6184, 11, 330, 1676, 3998, 5130, 25873, 1669, 2193, 3998, 15772, 477, 13969, 36884, 13774, 1676, 76266, 10888, 44, 4592, 9629,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersioning(t *testing.T) { assertVersioning := func(ts *testServer, mfa string, status string) { ts.Helper() svc := ts.s3Client() bv, err := svc.GetBucketVersioning(&s3.GetBucketVersioningInput{Bucket: aws.String(defaultBucket)}) ts.OK(err) if aws.StringValue(bv.MFADelete) != mfa { ts.Fatal("unex...
explode_data.jsonl/22266
{ "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, 5637, 287, 1155, 353, 8840, 836, 8, 341, 6948, 5637, 287, 1669, 2915, 35864, 353, 1944, 5475, 11, 296, 3632, 914, 11, 2639, 914, 8, 341, 197, 57441, 69282, 741, 197, 1903, 7362, 1669, 10591, 514, 18, 2959, 741, 197, 2233...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMergingIter(t *testing.T) { newFunc := func(iters ...internalIterator) internalIterator { return newMergingIter(nil /* logger */, DefaultComparer.Compare, func(a []byte) int { return len(a) }, iters...) } testIterator(t, newFunc, func(r *rand.Rand) [][]string { // Shuffle testKeyValuePairs into one o...
explode_data.jsonl/36370
{ "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, 44, 95296, 8537, 1155, 353, 8840, 836, 8, 341, 8638, 9626, 1669, 2915, 13338, 388, 2503, 10481, 11951, 8, 5306, 11951, 341, 197, 853, 501, 44, 95296, 8537, 27907, 1391, 5925, 36572, 7899, 31942, 32377, 345, 298, 29244, 2877,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDevicesEndpoint(t *testing.T) { wg := &sync.WaitGroup{} defer wg.Wait() ctx, cancel := context.WithCancel(context.Background()) defer cancel() permSearchUrl, publisher, err := environment.New(ctx, wg) if err != nil { t.Error(err) return } serverPort, err := getFreePortStr() if err != nil { t.Er...
explode_data.jsonl/65009
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1733 }
[ 2830, 3393, 40835, 27380, 1155, 353, 8840, 836, 8, 341, 72079, 1669, 609, 12996, 28384, 2808, 16094, 16867, 63581, 28384, 741, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 741, 197, 19913, 5890, 2864, 11, 2126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestParseValidJson(t *testing.T) { input := `{"valid": "json"}` reader := strings.NewReader(input) result, err := Parse(reader) if err != nil { t.Errorf("Unexpected error: %s\n", err) } if !reflect.DeepEqual(result, map[string]interface{}{"valid": "json"}) { t.Errorf("Unexpected result: %v\n", result) }...
explode_data.jsonl/24717
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 14463, 4088, 5014, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 1565, 4913, 1891, 788, 330, 2236, 9207, 3989, 61477, 1669, 9069, 68587, 5384, 340, 9559, 11, 1848, 1669, 14775, 21987, 340, 743, 1848, 961, 2092, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDaemonReloadLabels(t *testing.T) { daemon := &Daemon{} daemon.configStore = &Config{ CommonConfig: CommonConfig{ Labels: []string{"foo:bar"}, }, } newConfig := &Config{ CommonConfig: CommonConfig{ Labels: []string{"foo:baz"}, }, } daemon.Reload(newConfig) label := daemon.configStore.Labe...
explode_data.jsonl/69668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 89177, 50035, 23674, 1155, 353, 8840, 836, 8, 341, 2698, 64, 7291, 1669, 609, 89177, 16094, 2698, 64, 7291, 5423, 6093, 284, 609, 2648, 515, 197, 90580, 2648, 25, 7718, 2648, 515, 298, 197, 23674, 25, 3056, 917, 4913, 7975...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProgressUpdate(t *testing.T) { prevM, prevN := uint64(3), uint64(5) tests := []struct { update uint64 wm uint64 wn uint64 }{ {prevM - 1, prevM, prevN}, // do not decrease match, next {prevM, prevM, prevN}, // do not decrease next {prevM + 1, prevM + 1, prevN}, // increas...
explode_data.jsonl/67328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 9496, 4289, 1155, 353, 8840, 836, 8, 341, 50728, 44, 11, 7872, 45, 1669, 2622, 21, 19, 7, 18, 701, 2622, 21, 19, 7, 20, 340, 78216, 1669, 3056, 1235, 341, 197, 27175, 2622, 21, 19, 271, 197, 6692, 76, 2622, 21, 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...
4
func TestSizeLedger(t *testing.T) { templates, err := testutils.LoadTemplates("test-data-alltemplates.yaml") if err != nil || len(templates) < 1 { t.Errorf("cannot load test templates! %v", err) return } ld := NewJSONLedger("flavor") summaries := ld.Summarize(templates) expected := []Summary{ Summary{ID: ...
explode_data.jsonl/45684
{ "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, 1695, 60850, 1389, 1155, 353, 8840, 836, 8, 341, 197, 15463, 11, 1848, 1669, 1273, 6031, 13969, 51195, 445, 1944, 13945, 22346, 15463, 33406, 1138, 743, 1848, 961, 2092, 1369, 2422, 7, 15463, 8, 366, 220, 16, 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...
3
func TestGetIPV4(t *testing.T) { tests := []struct { name string wantErr bool }{ { name: "ipv4", wantErr: false, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { _, err := GetIPV4() if (err != nil) != tt.wantErr { t.Errorf("GetIPV4() error = %v, wantErr %v", err, t...
explode_data.jsonl/34114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 1949, 3298, 53, 19, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 50780, 7747, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 262, 330, 42676, 19, 756, 298, 50780, 774...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreate(t *testing.T) { type want struct { cr *v1beta1.SecurityGroup result managed.ExternalCreation err error } cases := map[string]struct { args want }{ "Successful": { args: args{ kube: &test.MockClient{ MockGet: test.NewMockGetFn(nil), MockUpdate: test...
explode_data.jsonl/79621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1410 }
[ 2830, 3393, 4021, 1155, 353, 8840, 836, 8, 341, 13158, 1366, 2036, 341, 197, 91492, 257, 353, 85, 16, 19127, 16, 21567, 2808, 198, 197, 9559, 8975, 5121, 15342, 32701, 198, 197, 9859, 262, 1465, 198, 197, 630, 1444, 2264, 1669, 2415, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArray_Clone(t *testing.T) { gtest.C(t, func(t *gtest.T) { a1 := []interface{}{0, 1, 2, 3} array1 := garray.NewArrayFrom(a1) array2 := array1.Clone() t.Assert(array1.Len(), 4) t.Assert(array2.Sum(), 6) t.AssertEQ(array1, array2) }) }
explode_data.jsonl/13912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 1857, 85110, 603, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11323, 16, 1669, 3056, 4970, 6257, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 532, 197, 11923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoPodsWhenShutdown(t *testing.T) { wf := unmarshalWF(noPodsWhenShutdown) cancel, controller := newController(wf) defer cancel() ctx := context.Background() woc := newWorkflowOperationCtx(wf, controller) woc.operate(ctx) node := woc.wf.Status.Nodes.FindByDisplayName("hello-world") if assert.NotNil(t, ...
explode_data.jsonl/71037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 2753, 23527, 82, 4498, 62004, 1155, 353, 8840, 836, 8, 341, 6692, 69, 1669, 650, 27121, 32131, 39205, 23527, 82, 4498, 62004, 340, 84441, 11, 6461, 1669, 501, 2051, 3622, 69, 340, 16867, 9121, 2822, 20985, 1669, 2266, 19047,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigWithInvalidPaths(t *testing.T) { tests := []struct { desc string output string errOutput string }{ {"output directory doesn't exist", "/tmp/not-there/foo.log", "stderr"}, {"error output directory doesn't exist", "stdout", "/tmp/not-there/foo-errors.log"}, {"neither output directory ...
explode_data.jsonl/27449
{ "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, 2648, 2354, 7928, 26901, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 414, 914, 198, 197, 21170, 262, 914, 198, 197, 9859, 5097, 914, 198, 197, 59403, 197, 197, 4913, 3006, 6220, 3171, 944, 3000,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestORM_GetDealsMaxTimestamp(t *testing.T) { orm, dbPath := MockSqlite3ORM() defer DeleteDB(dbPath) noTS := orm.getDealsMaxTimestamp() assert.True(t, noTS == -1) }
explode_data.jsonl/77891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 4365, 13614, 1912, 1127, 5974, 20812, 1155, 353, 8840, 836, 8, 341, 197, 493, 11, 2927, 1820, 1669, 14563, 8269, 632, 18, 4365, 741, 16867, 10428, 3506, 9791, 1820, 692, 72104, 9951, 1669, 67602, 670, 1912, 1127, 5974, 20812...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepositoriesService_GetHookDelivery_invalidOwner(t *testing.T) { client, _, _, teardown := setup() defer teardown() ctx := context.Background() _, _, err := client.Repositories.GetHookDelivery(ctx, "%", "%", 1, 1) testURLParseError(t, err) }
explode_data.jsonl/82386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 44814, 1860, 13614, 31679, 38121, 31433, 13801, 1155, 353, 8840, 836, 8, 341, 25291, 11, 8358, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 20985, 1669, 2266, 19047, 741, 197, 6878, 8358, 1848, 1669, 2943, 46658, 2234, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestJsThrowError(t *testing.T) { t.Parallel() ctx := NewIsolate().NewContext() res, err := ctx.Eval(`throw new Error('ooopsie')`, "my_file.js") if err == nil { t.Fatalf("It worked but it wasn't supposed to: %v", res.String()) } match, _ := regexp.MatchString("Uncaught exception: Error: ooopsie", err.Error(...
explode_data.jsonl/81548
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 30480, 23079, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 1532, 3872, 33066, 1005, 3564, 1972, 741, 10202, 11, 1848, 1669, 5635, 5142, 831, 5809, 7119, 501, 4600, 492, 2624, 3721, 645, 863, 7808,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLength(t *testing.T) { cases := []struct { errorcase.Error Name string BucketName string }{ { Name: "Empty name is OK", BucketName: "", }, { Name: "3 character name is OK", BucketName: "foo", }, { Name: "63 character name is OK", BucketName: strings.R...
explode_data.jsonl/71158
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 337 }
[ 2830, 3393, 4373, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 18290, 5638, 6141, 198, 197, 21297, 981, 914, 198, 197, 12791, 11152, 675, 914, 198, 197, 59403, 197, 197, 515, 298, 21297, 25, 981, 330, 3522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunnerValidateUnfinishedUp(t *testing.T) { store := NewMockStoreIface() store.ListFunc.SetDefaultReturn([]Migration{ {ID: 1, Introduced: NewVersion(3, 11), Progress: 0.65, Deprecated: newVersionPtr(3, 12)}, }, nil) runner := newRunner(store, nil, &observation.TestContext) statusErr := runner.Validate(c...
explode_data.jsonl/11539
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 19486, 17926, 1806, 12129, 2324, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 11571, 6093, 40, 1564, 741, 57279, 5814, 9626, 4202, 3675, 5598, 10556, 20168, 515, 197, 197, 90, 915, 25, 220, 16, 11, 41689, 25, 1532, 563...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestThisInsideFunction(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` function foo(x = this) { console.log(this) } const objFoo = { foo(x = this) { console.log(this) } } class Foo { x = this static y = this.z foo(x = this) ...
explode_data.jsonl/38513
{ "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, 1986, 24480, 5152, 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, 7527, 15229, 2075, 284, 419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLangFields(t *testing.T) { fl := &FieldList{ {Name: "Foo", Value: "I am English", Language: "en"}, {Name: "Bar", Value: "私は日本人だ", Language: "jp"}, } var got FieldList doc, err := saveDoc(fl) if err != nil { t.Fatalf("saveDoc: %v", err) } if err := loadDoc(&got, doc, nil); err != nil { t.Fatalf("...
explode_data.jsonl/27948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 26223, 8941, 1155, 353, 8840, 836, 8, 341, 1166, 75, 1669, 609, 1877, 852, 515, 197, 197, 63121, 25, 330, 40923, 497, 5162, 25, 330, 40, 1079, 6364, 497, 11434, 25, 330, 268, 7115, 197, 197, 63121, 25, 330, 3428, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestReadErrorBadGzip(t *testing.T) { buf := bytes.NewBufferString("bad gzip bytes") _, err := NewReader(buf).Read() if err == nil { t.Fatal("expected error") } }
explode_data.jsonl/55377
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 4418, 1454, 17082, 38, 9964, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 703, 445, 13855, 57795, 5820, 1138, 197, 6878, 1848, 1669, 1532, 5062, 10731, 568, 4418, 741, 743, 1848, 621, 2092, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestRongCloud_GroupSendMention(t *testing.T) { rc := NewRongCloud( os.Getenv("APP_KEY"), os.Getenv("APP_SECRET"), ) msg := MentionMsgContent{ Content: "@user_2 hello", MentionedInfo: MentionedInfo{Type: 2, UserIDs: []string{"4kIvGJmETlYqDoVFgWdYdM"}, PushContent: "有人@你"}, } err := rc.GroupSend...
explode_data.jsonl/38998
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 49, 644, 16055, 52619, 11505, 44, 2939, 1155, 353, 8840, 836, 8, 1476, 30295, 1669, 1532, 49, 644, 16055, 1006, 197, 25078, 64883, 445, 14707, 6600, 4461, 197, 25078, 64883, 445, 14707, 31408, 4461, 197, 692, 21169, 1669, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_CreateTableWithSize_Migration(t *testing.T) { argsss := []string{"add", "ct", "test123", "first:int", "second:varchar(255)"} fileName, mm, _ := generateMigration(argsss) expectedString := `{"id":"` + getID(fileName) + `","up":{"createTable":[{"tableName":"test123","columns":[{"fieldname":"first","datatype"...
explode_data.jsonl/22632
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 34325, 2556, 2354, 1695, 1245, 5033, 1155, 353, 8840, 836, 8, 341, 47903, 84160, 1669, 3056, 917, 4913, 718, 497, 330, 302, 497, 330, 1944, 16, 17, 18, 497, 330, 3896, 14337, 497, 330, 5569, 25, 32922, 7, 17, 20, 20, 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...
1
func TestIsEmpty(t *testing.T) { queue := NewQueue() t.Run("when queue is not empty", func(t *testing.T) { t.Run("it should return false", func(t *testing.T) { queue.Enqueue(student{"Student 1", 1}) assert.False(t, queue.IsEmpty()) }) }) t.Run("when queue is empty", func(t *testing.T) { t.Run("it sho...
explode_data.jsonl/44141
{ "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, 91307, 1155, 353, 8840, 836, 8, 341, 46993, 1669, 1532, 7554, 2822, 3244, 16708, 445, 9309, 7177, 374, 537, 4287, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 16708, 445, 275, 1265, 470, 895, 497, 2915, 1155, 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 TestValidateDeployWithPolicies(t *testing.T) { state := make(map[string]map[string][]byte) state["lscc"] = make(map[string][]byte) v := newValidationInstance(state) ccname := "mycc" ccver := "1" /*********************************************/ /* test 1: success with an accept-all policy */ /************...
explode_data.jsonl/42505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 675 }
[ 2830, 3393, 17926, 69464, 2354, 47, 42038, 1155, 353, 8840, 836, 8, 341, 24291, 1669, 1281, 9147, 14032, 60, 2186, 14032, 45725, 3782, 340, 24291, 1183, 4730, 638, 1341, 284, 1281, 9147, 14032, 45725, 3782, 692, 5195, 1669, 501, 13799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEntriesAndNextToken(t *testing.T) { provisioningState := "succeeded" DiskSize := int32(10) snapshotID := "test" sourceVolumeID := "unit-test" creationdate := compute.CreationData{ SourceResourceID: &sourceVolumeID, } snapshot := compute.Snapshot{ SnapshotProperties: &compute.SnapshotProperties{ ...
explode_data.jsonl/59378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1036 }
[ 2830, 3393, 1949, 24533, 3036, 5847, 3323, 1155, 353, 8840, 836, 8, 341, 197, 776, 13013, 287, 1397, 1669, 330, 82, 43805, 698, 10957, 3187, 1695, 1669, 526, 18, 17, 7, 16, 15, 340, 1903, 9601, 915, 1669, 330, 1944, 698, 47418, 1890...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddDrawingPicture(t *testing.T) { // testing addDrawingPicture with illegal cell coordinates. f := NewFile() assert.EqualError(t, f.addDrawingPicture("sheet1", "", "A", "", 0, 0, 0, 0, nil), `cannot convert cell "A" to coordinates: invalid cell name "A"`) }
explode_data.jsonl/51747
{ "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, 2212, 37437, 24669, 1155, 353, 8840, 836, 8, 341, 197, 322, 7497, 912, 37437, 24669, 448, 11816, 2779, 13934, 624, 1166, 1669, 1532, 1703, 741, 6948, 12808, 1454, 1155, 11, 282, 1364, 37437, 24669, 445, 15119, 16, 497, 7342,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMenuWithLogOut(t *testing.T) { spec := &v1.JaegerSpec{Ingress: v1.JaegerIngressSpec{Security: v1.IngressSecurityOAuthProxy}} uiOpts := map[string]interface{}{} enableLogOut(uiOpts, spec) assert.Contains(t, uiOpts, "menu") expected := []interface{}{ map[string]interface{}{ "label": "Log Out", ...
explode_data.jsonl/21864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 3514, 2354, 2201, 2662, 1155, 353, 8840, 836, 8, 341, 98100, 1669, 609, 85, 16, 3503, 64, 1878, 8327, 90, 641, 2483, 25, 348, 16, 3503, 64, 1878, 641, 2483, 8327, 90, 15352, 25, 348, 16, 5337, 2483, 15352, 57850, 16219, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStickyLoadBalanceWorksWithNewServiceCalledFirst(t *testing.T) { loadBalancer := NewLoadBalancerRR() service := proxy.ServicePortName{NamespacedName: types.NamespacedName{Namespace: "testnamespace", Name: "foo"}, Port: ""} endpoint, err := loadBalancer.NextEndpoint(service, nil, false) if err == nil || len(...
explode_data.jsonl/66179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 947 }
[ 2830, 3393, 623, 18964, 5879, 21190, 6776, 16056, 3564, 1860, 20960, 5338, 1155, 353, 8840, 836, 8, 341, 49386, 93825, 1669, 1532, 5879, 93825, 8106, 741, 52934, 1669, 13291, 13860, 7084, 675, 90, 7980, 68552, 675, 25, 4494, 98932, 68552,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNetworkChangeName(t *testing.T) { if testing.Short() { return } tl := testLink{"tstEth", "dummy"} newName := "newTst" addLink(t, tl.name, tl.linkType) linkIfc := readLink(t, tl.name) if err := NetworkChangeName(linkIfc, newName); err != nil { deleteLink(t, tl.name) t.Fatalf("Could not change %#...
explode_data.jsonl/76206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 12320, 4072, 675, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 853, 198, 197, 630, 3244, 75, 1669, 1273, 3939, 4913, 83, 267, 65390, 497, 330, 31390, 16707, 8638, 675, 1669, 330, 931, 51, 267, 1837, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestEncodeStruct(t *testing.T) { //t.Skip("skipping TestEncodeStruct") //* u := User{ID: 10, Name: "harry dayo"} byteData := CodecEncode(u) //if fmt.Sprintf("%x", byteData) != "82a249640aa44e616d65aa6861727279206461796f" { if hex.EncodeToString(byteData) != "82a249640aa44e616d65aa6861727279206461796f" { t...
explode_data.jsonl/30439
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 32535, 9422, 1155, 353, 8840, 836, 8, 341, 197, 322, 83, 57776, 445, 4886, 5654, 3393, 32535, 9422, 1138, 197, 322, 5618, 10676, 1669, 2657, 90, 915, 25, 220, 16, 15, 11, 3988, 25, 330, 71, 11433, 1899, 78, 16707, 31422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetExposedContainerPorts(t *testing.T) { assert := asrt.New(t) testContainer, err := FindContainerByLabels(map[string]string{"com.ddev.site-name": testContainerName}) require.NoError(t, err) require.NotNil(t, testContainer) ports, err := GetExposedContainerPorts(testContainer.ID) assert.NoError(err) as...
explode_data.jsonl/41381
{ "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, 1949, 82941, 4502, 68273, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 438, 3342, 7121, 1155, 692, 18185, 4502, 11, 1848, 1669, 7379, 4502, 1359, 23674, 9147, 14032, 30953, 4913, 874, 950, 3583, 22115, 11494, 788, 1273, 4502, 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 TestCopyFile(t *testing.T) { f1 := filepath.Join("testdata", "copyfile.txt") f2 := filepath.Join("testdata", "copyfile2.txt") if err := fileutil.CopyFile(f1, f2); err != nil { t.Error(err) } t.Cleanup(remove(t, f2)) b1, err := os.ReadFile(f1) if err != nil { t.Error(err) } b2, err := os.ReadFile(f2...
explode_data.jsonl/16282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 12106, 1703, 1155, 353, 8840, 836, 8, 341, 1166, 16, 1669, 26054, 22363, 445, 92425, 497, 330, 8560, 1192, 3909, 1138, 1166, 17, 1669, 26054, 22363, 445, 92425, 497, 330, 8560, 1192, 17, 3909, 5130, 743, 1848, 1669, 1034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRefreshWithAuthError(t *testing.T) { defer monkeyPatchGopherCloudAuthWithError().Unpatch() clouds := fakeClouds() errs := clouds.Refresh() assert.NotEmpty(t, errs) }
explode_data.jsonl/57475
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 14567, 2354, 5087, 1454, 1155, 353, 8840, 836, 8, 341, 16867, 38703, 43622, 38, 16940, 16055, 5087, 66102, 1005, 1806, 3400, 741, 197, 12361, 82, 1669, 12418, 16055, 82, 741, 9859, 82, 1669, 29514, 49841, 741, 6948, 15000, 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
func TestGetRemoteHistory(t *testing.T) { r := spawnTestRegistrySession(t) hist, err := r.GetRemoteHistory(imageID, makeURL("/v1/")) if err != nil { t.Fatal(err) } assertEqual(t, len(hist), 2, "Expected 2 images in history") assertEqual(t, hist[0], imageID, "Expected "+imageID+"as first ancestry") assertEqual(...
explode_data.jsonl/13097
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 1949, 24703, 13424, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 18042, 2271, 15603, 5283, 1155, 340, 9598, 380, 11, 1848, 1669, 435, 2234, 24703, 13424, 10075, 915, 11, 1281, 3144, 4283, 85, 16, 14, 5455, 743, 1848, 961, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSolveOperators_PreferDefaultChannelInResolution(t *testing.T) { APISet := APISet{opregistry.APIKey{"g", "v", "k", "ks"}: struct{}{}} Provides := APISet namespace := "olm" catalog := registry.CatalogKey{Name: "community", Namespace: namespace} csvs := []*v1alpha1.ClusterServiceVersion{} const defaultCh...
explode_data.jsonl/43808
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 546 }
[ 2830, 3393, 50, 3948, 77760, 1088, 41160, 3675, 9629, 641, 38106, 1155, 353, 8840, 836, 8, 341, 197, 2537, 1637, 295, 1669, 10106, 1637, 295, 90, 453, 29172, 24922, 1592, 4913, 70, 497, 330, 85, 497, 330, 74, 497, 330, 2787, 9207, 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 TestDomainEventRegister(t *testing.T) { callbackId := -1 conn := buildTestConnection() defer func() { if callbackId >= 0 { if err := conn.DomainEventDeregister(callbackId); err != nil { t.Errorf("got `%v` on DomainEventDeregister instead of nil", err) } } if res, _ := conn.CloseConnection(); r...
explode_data.jsonl/70591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 961 }
[ 2830, 3393, 13636, 1556, 8690, 1155, 353, 8840, 836, 8, 1476, 43350, 764, 1669, 481, 16, 271, 32917, 1669, 1936, 2271, 4526, 741, 16867, 2915, 368, 341, 197, 743, 4822, 764, 2604, 220, 15, 341, 298, 743, 1848, 1669, 4534, 20442, 1556,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoRaw(t *testing.T) { tmpl, err := ParseFile("testdir/test_noraw.slim") if err != nil { t.Fatal(err) } var buf bytes.Buffer err = tmpl.Execute(&buf, Values{ "foo": "<script>alert(1)</script>", }) if err != nil { t.Fatal(err) } expect := readFile(t, "testdir/test_noraw.html") got := buf.String()...
explode_data.jsonl/80440
{ "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, 2753, 20015, 1155, 353, 8840, 836, 8, 341, 3244, 54010, 11, 1848, 1669, 14775, 1703, 445, 1944, 3741, 12697, 1089, 269, 672, 74257, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 2405, 6607, 5820, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerate(t *testing.T) { tt := []struct { name string config *env.RestConfig input int64 }{ { name: "generate jwt token successfully", config: &env.RestConfig{ TokenExpTimeout: 30, Secret: []byte("secret"), }, input: 1, }, } for _, tc := range tt { t.Run(tc.name...
explode_data.jsonl/42832
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 376 }
[ 2830, 3393, 31115, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 25873, 353, 3160, 31129, 2648, 198, 197, 22427, 220, 526, 21, 19, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3