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 TestTakeCard(t *testing.T) { cases := []struct { inCards []int expected []int }{ {[]int{1, 2, 3}, []int{2, 3}}, } for _, c := range cases { hand := NewHand(c.inCards) // test hand.TakeCard() result := hand.GetCards() ok := len(c.expected) == len(result) if ok { for i := 0; i < len(res...
explode_data.jsonl/27794
{ "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, 17814, 5770, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 17430, 28448, 220, 3056, 396, 198, 197, 42400, 3056, 396, 198, 197, 59403, 197, 197, 90, 1294, 396, 90, 16, 11, 220, 17, 11, 220, 18, 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...
7
func TestAbsCollection_Filter(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 2, 3}) ret := intColl.Filter(func(obj interface{}, index int) bool { val := obj.(int) return val == 2 }) if ret.Count() != 2 { t.Fatal("filter error") } }
explode_data.jsonl/66462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 27778, 6482, 68935, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 17, 11, 220, 18, 3518, 11262, 1669, 526, 15265, 31696, 18552, 6779, 3749, 22655, 1922, 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 TestListVolumesWithLabels(t *testing.T) { driverName := "fake_driver5" dir, err := ioutil.TempDir("", "TestListVolumesWithLabels") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) core, err := createVolumeCore(dir) if err != nil { t.Fatal(err) } driver.Register(driver.NewFakeDriver(driverName)...
explode_data.jsonl/51632
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 517 }
[ 2830, 3393, 852, 96325, 2354, 23674, 1155, 353, 8840, 836, 8, 341, 33652, 675, 1669, 330, 30570, 20602, 20, 698, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 2271, 852, 96325, 2354, 23674, 1138, 743, 1848, 961, 2092, 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...
9
func TestJsonWrapperDecode(t *testing.T) { wrapper := NewJsonWrapper() testMessage := "{\"name\":\"test\"}" props := make(map[string]interface{}) props["name"] = "test" decoded, err := wrapper.Decode(testMessage) if err != nil { t.Error("got error: ", err) } if decoded["name"] != props["name"] { t.Error(...
explode_data.jsonl/28842
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 5014, 11542, 32564, 1155, 353, 8840, 836, 8, 341, 6692, 5518, 1669, 1532, 5014, 11542, 741, 18185, 2052, 1669, 54734, 606, 23488, 1944, 2105, 42273, 77691, 1669, 1281, 9147, 14032, 31344, 37790, 77691, 1183, 606, 1341, 284, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockHash(t *testing.T) { // Block 1 hash. hashStr := "839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048" wantHash, err := chainhash.NewHashFromStr(hashStr) if err != nil { t.Errorf("NewHashFromStr: %v", err) } // Ensure the hash produced is expected. blockHash := blockOne.BlockHash() if !blo...
explode_data.jsonl/16742
{ "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, 4713, 6370, 1155, 353, 8840, 836, 8, 341, 197, 322, 8362, 220, 16, 5175, 624, 50333, 2580, 1669, 330, 23, 18, 24, 64, 23, 68, 21, 23, 23, 21, 370, 20, 24, 20, 16, 67, 22, 21, 69, 19, 16, 16, 19, 22, 20, 19, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMats_IsAllowed_EntityPrinciple(t *testing.T) { data := &[]testutil.TestCase{ { Name: "GeneralEntity1_AccessRes1_Allowed", Executer: testutil.NewRestTestExecuter, Method: testutil.METHOD_IS_ALLOWED, Data: &testutil.RestTestData{ URI: URI_IS_ALLOWD, InputBody: &JsonContext{ Subj...
explode_data.jsonl/16529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1830 }
[ 2830, 3393, 44, 1862, 31879, 35382, 89618, 3533, 15996, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 609, 1294, 1944, 1314, 31363, 515, 197, 197, 515, 298, 21297, 25, 257, 330, 15415, 3030, 16, 1566, 1322, 1061, 16, 53629, 12817, 756, 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...
1
func TestAfterOK(t *testing.T) { const wait = 10 * time.Millisecond ctx, cancel := context.WithTimeout(context.Background(), wait*2) defer cancel() now := time.Now() select { case firedAt := <-ablyutil.After(ctx, wait): if elapsed := firedAt.Sub(now); !isCloseTo(elapsed, wait) { t.Errorf("expected timer ...
explode_data.jsonl/10437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 6025, 3925, 1155, 353, 8840, 836, 8, 1476, 4777, 3783, 284, 220, 16, 15, 353, 882, 71482, 271, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 3783, 9, 17, 340, 16867, 9121, 2822, 80922, 1669, 882, 13244, 2822...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestUnarmorInfoBytesErrors(t *testing.T) { unarmoredBytes, err := mintkey.UnarmorInfoBytes("") require.Error(t, err) require.True(t, errors.Is(io.EOF, err)) require.Nil(t, unarmoredBytes) header := map[string]string{ "type": "Info", "version": "0.0.1", } unarmoredBytes, err = mintkey.UnarmorInfoByte...
explode_data.jsonl/64147
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 1806, 42548, 1731, 7078, 13877, 1155, 353, 8840, 836, 8, 341, 20479, 2178, 3018, 7078, 11, 1848, 1669, 28337, 792, 10616, 42548, 1731, 7078, 31764, 17957, 6141, 1155, 11, 1848, 340, 17957, 32443, 1155, 11, 5975, 4506, 37258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBasicMux(t *testing.T) { testtype.SkipUnlessTestType(t, testtype.UnitTestType) var err error Convey("with thousands of docs in each of five collections", t, func() { buf := &closingBuffer{bytes.Buffer{}} mux := NewMultiplexer(buf, new(testNotifier)) muxIns := map[string]*MuxIn{} inChecksum := ma...
explode_data.jsonl/48799
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 728 }
[ 2830, 3393, 15944, 44, 2200, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 57776, 35587, 2271, 929, 1155, 11, 1273, 1313, 25159, 2271, 929, 692, 2405, 1848, 1465, 271, 93070, 5617, 445, 4197, 9037, 315, 26340, 304, 1817, 315, 4236, 15302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBranch(t *testing.T) { setDefaultBranchFlags() fake, cleanup := jiritest.NewFakeJiriRoot(t) defer cleanup() // Add projects numProjects := 8 localProjects := createBranchProjects(t, fake, numProjects) if err := fake.UpdateUniverse(false); err != nil { t.Fatal(err) } gitLocals := make([]*gitutil.Gi...
explode_data.jsonl/59917
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1504 }
[ 2830, 3393, 18197, 1155, 353, 8840, 836, 8, 341, 8196, 3675, 18197, 9195, 741, 1166, 726, 11, 21290, 1669, 502, 6906, 477, 7121, 52317, 41, 20679, 8439, 1155, 340, 16867, 21290, 2822, 197, 322, 2691, 7079, 198, 22431, 29958, 1669, 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...
9
func TestAccessControl_ErrorHandler_Configuration_Error(t *testing.T) { helper := test.New(t) couperConfig, err := configload.LoadFile("testdata/integration/error_handler/03_couper.hcl") helper.Must(err) log, _ := logrustest.NewNullLogger() ctx := context.TODO() expectedMsg := "03_couper.hcl:24,5-11: Missing re...
explode_data.jsonl/60533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 6054, 3273, 28651, 3050, 35412, 2017, 28651, 1155, 353, 8840, 836, 8, 341, 9598, 2947, 1669, 1273, 7121, 1155, 340, 1444, 283, 712, 2648, 11, 1848, 1669, 2193, 1078, 13969, 1703, 445, 92425, 31114, 17376, 41737, 10183, 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, 1...
3
func TestFeatureID_ids(t *testing.T) { id := NodeID(1).FeatureID() oid := id.ObjectID(10) if v := oid.Type(); v != TypeNode { t.Errorf("incorrect type: %v", v) } if v := oid.Ref(); v != 1 { t.Errorf("incorrect id: %v", v) } if v := oid.Version(); v != 10 { t.Errorf("incorrect version: %v", v) } eid :...
explode_data.jsonl/54769
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 716 }
[ 2830, 3393, 13859, 915, 8077, 1155, 353, 8840, 836, 8, 341, 15710, 1669, 6018, 915, 7, 16, 568, 13859, 915, 2822, 197, 588, 1669, 877, 8348, 915, 7, 16, 15, 340, 743, 348, 1669, 48766, 10184, 2129, 348, 961, 3990, 1955, 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...
2
func TestGetUser(t *testing.T) { th := Setup(t) defer th.TearDown() user := th.CreateUser() user.Props = map[string]string{"testpropkey": "testpropvalue"} th.App.UpdateUser(user, false) th.TestForAllClients(t, func(t *testing.T, client *model.Client4) { ruser, resp, err := client.GetUser(user.Id, "") requi...
explode_data.jsonl/47486
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 672 }
[ 2830, 3393, 1949, 1474, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 19060, 1669, 270, 7251, 1474, 741, 19060, 1069, 3702, 284, 2415, 14032, 30953, 4913, 1944, 2674, 792, 788, 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 TestMVCCStatsPutDelPutMovesTimestamp(t *testing.T) { defer leaktest.AfterTest(t)() engine := createTestEngine() defer engine.Close() ctx := context.Background() aggMS := &enginepb.MVCCStats{} assertEq(t, engine, "initially", aggMS, &enginepb.MVCCStats{}) key := roachpb.Key("a") ts1 := hlc.Timestamp{Wal...
explode_data.jsonl/41643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2136 }
[ 2830, 3393, 66626, 3706, 16635, 19103, 16532, 19103, 45789, 20812, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 80118, 1669, 1855, 2271, 4571, 741, 16867, 4712, 10421, 2822, 20985, 1669, 2266, 19047, 741, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPairsToStringArray(t *testing.T) { var pairs []CurrencyPair pairs = append(pairs, NewCurrencyPair("BTC", "USD")) expected := []string{"BTCUSD"} actual := PairsToStringArray(pairs) if actual[0] != expected[0] { t.Error("Test failed. TestPairsToStringArray: Unexpected values") } }
explode_data.jsonl/55843
{ "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, 54228, 5870, 1857, 1155, 353, 8840, 836, 8, 341, 2405, 13530, 3056, 26321, 12443, 198, 3223, 4720, 284, 8737, 1295, 4720, 11, 1532, 26321, 12443, 445, 59118, 497, 330, 26749, 28075, 42400, 1669, 3056, 917, 4913, 59118, 26749, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistoricalInfo(t *testing.T) { validators := createValidators(t) hi := NewHistoricalInfo(header, validators) require.True(t, sort.IsSorted(Validators(hi.Valset)), "Validators are not sorted") var value []byte require.NotPanics(t, func() { value = ModuleCdc.MustMarshalBinaryBare(&hi) }) require.NotNil...
explode_data.jsonl/35591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 48983, 938, 1731, 1155, 353, 8840, 836, 8, 341, 56322, 2973, 1669, 1855, 31748, 1155, 340, 197, 6023, 1669, 1532, 48983, 938, 1731, 25534, 11, 38588, 340, 17957, 32443, 1155, 11, 3378, 4506, 51051, 7, 31748, 3203, 72, 77819,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeletePDPContextRequest(t *testing.T) { cases := []testutils.TestCase{ { Description: "normal", Structured: messages.NewDeletePDPContextRequest( testutils.TestFlow.Seq, testutils.TestFlow.Label, testutils.TestFlow.TID, ), Serialized: []byte{ // Header 0x1e, 0x14, 0x00, 0x00, // S...
explode_data.jsonl/37934
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 6435, 47, 10298, 1972, 1900, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1944, 6031, 31363, 515, 197, 197, 515, 298, 47414, 25, 330, 8252, 756, 298, 197, 97457, 25, 6605, 7121, 6435, 47, 10298, 1972, 1900, 1006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatCartToPolar(t *testing.T) { x := NewMatWithSize(100, 100, MatTypeCV32F) y := NewMatWithSize(100, 100, MatTypeCV32F) magnitude := NewMat() angle := NewMat() CartToPolar(x, y, &magnitude, &angle, false) if magnitude.Empty() || angle.Empty() { t.Error("TestCartToPolar neither magnitude nor angle should...
explode_data.jsonl/81731
{ "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, 11575, 12593, 1249, 47, 7417, 1155, 353, 8840, 836, 8, 341, 10225, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 15, 11, 220, 16, 15, 15, 11, 6867, 929, 19589, 18, 17, 37, 340, 14522, 1669, 1532, 11575, 2354, 1695, 7, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBatch(t *testing.T) { session := createSession(t) defer session.Close() if session.cfg.ProtoVersion == 1 { t.Skip("atomic batches not supported. Please use Cassandra >= 2.0") } if err := createTable(session, `CREATE TABLE gocql_test.batch_table (id int primary key)`); err != nil { t.Fatal("create ta...
explode_data.jsonl/11139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 21074, 1155, 353, 8840, 836, 8, 341, 25054, 1669, 1855, 5283, 1155, 340, 16867, 3797, 10421, 2822, 743, 3797, 30481, 7763, 983, 5637, 621, 220, 16, 341, 197, 3244, 57776, 445, 6618, 44792, 537, 7248, 13, 5209, 990, 81242, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_idToString(t *testing.T) { cases := []struct { name string input interface{} wantErr bool wantID string }{ { "uses integer id", 50, false, "50", }, { "uses string id", "BLzGD63HA4RP8Fh5xEtvdQSMKa2WzJMZjQPNVUc4Rqy8Lh5BEY1", false, "BLzGD63HA4RP8Fh5xEtvdQSMKa2WzJMZj...
explode_data.jsonl/48378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 343 }
[ 2830, 3393, 842, 5870, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 22427, 256, 3749, 16094, 197, 50780, 7747, 1807, 198, 197, 50780, 915, 220, 914, 198, 197, 59403, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetAttributes(t *testing.T) { t.Parallel() tests := []struct { sel string by QueryOption attrs map[string]string exp map[string]string }{ { `//*[@id="icon-brankas"]`, BySearch, map[string]string{"data-url": "brankas"}, map[string]string{ "alt": "Brankas - Easy Money Manag...
explode_data.jsonl/59477
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1054 }
[ 2830, 3393, 1649, 10516, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 1903, 301, 256, 914, 198, 197, 197, 1694, 262, 11361, 5341, 198, 197, 197, 20468, 2415, 14032, 30953, 198, 197, 48558, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCertRevocation(t *testing.T) { defer func() { cs.revokedPkiIDS = map[string]struct{}{} }() totallyFineIdentity := func(nonce uint64) proto.ReceivedMessage { return createUpdateMessage(nonce, createValidUpdateMessage()) } askedForIdentity := make(chan struct{}, 1) pm, cStore, sender := createObject...
explode_data.jsonl/52302
{ "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, 36934, 36184, 2276, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 71899, 69373, 10823, 47, 6642, 25614, 284, 2415, 14032, 60, 1235, 6257, 16094, 197, 66816, 3244, 354, 745, 63716, 18558, 1669, 2915, 1445, 13184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistogramDataPointSlice(t *testing.T) { es := NewHistogramDataPointSlice() assert.EqualValues(t, 0, es.Len()) es = newHistogramDataPointSlice(&[]*otlpmetrics.HistogramDataPoint{}) assert.EqualValues(t, 0, es.Len()) es.Resize(7) emptyVal := NewHistogramDataPoint() emptyVal.InitEmpty() testVal := genera...
explode_data.jsonl/19543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 77210, 1043, 2609, 33236, 1155, 353, 8840, 836, 8, 341, 78966, 1669, 1532, 77210, 1043, 2609, 33236, 741, 6948, 12808, 6227, 1155, 11, 220, 15, 11, 1531, 65819, 2398, 78966, 284, 501, 77210, 1043, 2609, 33236, 2099, 1294, 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...
2
func TestFrameCopy(t *testing.T) { frame := new(Frame) // Pixel values. frame.Pix[0][0] = 1 frame.Pix[9][7] = 2 frame.Pix[FrameRows-1][0] = 3 frame.Pix[0][FrameCols-1] = 4 frame.Pix[FrameRows-1][FrameCols-1] = 5 // Status values. frame.Status.TimeOn = 10 * time.Second frame.Status.FrameCount = 123 frame.Sta...
explode_data.jsonl/10575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 4369, 12106, 1155, 353, 8840, 836, 8, 341, 34465, 1669, 501, 91008, 692, 197, 322, 27469, 2750, 624, 34465, 1069, 941, 58, 15, 1457, 15, 60, 284, 220, 16, 198, 34465, 1069, 941, 58, 24, 1457, 22, 60, 284, 220, 17, 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 TestTLSAuth(t *testing.T) { client, err := NewClient(ClientOptions{ URL: serviceURLTLS, TLSTrustCertsFilePath: caCertsPath, Authentication: NewAuthenticationTLS(tlsClientCertPath, tlsClientKeyPath), }) assert.NoError(t, err) producer, err := client.CreateProducer(ProducerOptions...
explode_data.jsonl/69307
{ "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, 45439, 5087, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 46851, 3798, 515, 197, 79055, 25, 4293, 2473, 3144, 45439, 345, 197, 10261, 43, 784, 35788, 34, 15546, 19090, 25, 2162, 34, 15546, 1820, 345, 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 TestCheckSumPerKeyParams(t *testing.T) { _, _, publicPartitions := ptest.CreateList([]int{0, 1}) for _, tc := range []struct { desc string epsilon float64 delta float64 noiseKind noise.Kind params SumParams partitionType reflect.Type wantErr bool }{ { d...
explode_data.jsonl/42981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1783 }
[ 2830, 3393, 3973, 9190, 3889, 1592, 4870, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 584, 5800, 5930, 1669, 281, 1944, 7251, 852, 10556, 396, 90, 15, 11, 220, 16, 3518, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 41653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSCPParsing(t *testing.T) { t.Parallel() var testCases = []struct { comment string in string dest Destination err error }{ { comment: "full spec of the remote destination", in: "root@remote.host:/etc/nginx.conf", dest: Destination{Login: "root", Host: utils.NetAddr{Add...
explode_data.jsonl/74627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 901 }
[ 2830, 3393, 3540, 4406, 28598, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 96268, 914, 198, 197, 17430, 414, 914, 198, 197, 49616, 262, 41728, 198, 197, 9859, 257, 1465, 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 TestEncode(t *testing.T) { enc, _ := encode("teststr") require.Equal(t, "teststr", enc) enc, _ = encode("test str") require.Equal(t, "test-str", enc) enc, _ = encode("тест") require.Equal(t, "test", enc) enc, _ = encode("тест с пробелом жшщ") require.Equal(t, "test-s-probelom-zhshshch", enc) }
explode_data.jsonl/68565
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 32535, 1155, 353, 8840, 836, 8, 341, 197, 954, 11, 716, 1669, 16164, 445, 1944, 495, 1138, 17957, 12808, 1155, 11, 330, 1944, 495, 497, 3209, 692, 197, 954, 11, 716, 284, 16164, 445, 1944, 607, 1138, 17957, 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 TestBot_GetChatMembersCount(t *testing.T) { type fields struct { apiClient apiClient } tests := []struct { name string fields fields wantResult int64 wantErr bool }{ { name: "test1", fields: fields{ apiClient: &mockAPIClient{ method: "getChatMembersCount", interface...
explode_data.jsonl/46096
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 23502, 13614, 15672, 24371, 2507, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 54299, 2959, 6330, 2959, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 55276, 257, 5043, 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 TestRouteOriginal(t *testing.T) { expect := ttesting.NewExpect(t) // create router mock A mockRouterA := getMockRouterMessageHelper("testStreamA") mockConfA := NewPluginConfig("mockA", "mockRouterA") mockConfA.Override("Stream", "messageDropStreamA") reader := NewPluginConfigReader(&mockConfA) reader.Con...
explode_data.jsonl/25579
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 4899, 18395, 1155, 353, 8840, 836, 8, 341, 24952, 1669, 259, 8840, 7121, 17536, 1155, 692, 197, 322, 1855, 9273, 7860, 362, 198, 77333, 9523, 32, 1669, 633, 11571, 9523, 2052, 5511, 445, 1944, 3027, 32, 5130, 77333, 15578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConverterRecursiveMixedDeep(t *testing.T) { fieldMap := make(map[string]codegen.FieldMapperEntry) lines, err := convertTypes( "Foo", "Bar", ` struct DeepFoo { 1: required string ten 2: optional DeepFoo recur } struct StringFooA { 1: required string one 2: optional StringFooA recur ...
explode_data.jsonl/62094
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1305 }
[ 2830, 3393, 14920, 78542, 86433, 33464, 1155, 353, 8840, 836, 8, 341, 39250, 2227, 1669, 1281, 9147, 14032, 60, 95859, 17087, 10989, 5874, 692, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestChangefeedComputedColumn(t *testing.T) { defer leaktest.AfterTest(t)() testFn := func(t *testing.T, db *gosql.DB, f cdctest.TestFeedFactory) { sqlDB := sqlutils.MakeSQLRunner(db) // TODO(dan): Also test a non-STORED computed column once we support them. sqlDB.Exec(t, `CREATE TABLE cc ( a INT, b INT ...
explode_data.jsonl/7047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 1143, 524, 823, 12051, 56474, 2933, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 18185, 24911, 1669, 2915, 1155, 353, 8840, 836, 11, 2927, 353, 34073, 1470, 22537, 11, 282, 15307, 67880, 8787...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBatchRebuildInstances(t *testing.T) { rebuildArgs := &RebuildBatchInstanceArgs{ ImageId: "ImageId", AdminPass: "123qaz!@#", InstanceIds: []string{"BBC_TestBbcId"}, IsPreserveData: true, RaidId: BBC_TestRaidId, SysRootSize: 20, } result, err := BBC_CLIENT.BatchRebuildIns...
explode_data.jsonl/4044
{ "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, 21074, 693, 5834, 42725, 1155, 353, 8840, 836, 8, 341, 17200, 5834, 4117, 1669, 609, 693, 5834, 21074, 2523, 4117, 515, 197, 53397, 764, 25, 286, 330, 1906, 764, 756, 197, 197, 7210, 12187, 25, 414, 330, 16, 17, 18, 80, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSerialization(t *testing.T) { array := []uint64{123, 0xA00000000A, 0xAFFFFFFF7, 0xFFFFFFFFF} bmp := New() for _, v := range array { bmp.Add(v) } assert.False(t, bmp.IsEmpty()) buf, err := bmp.MarshalBinary() assert.Nil(t, err) assert.NotNil(t, buf) newBmp := New() err = newBmp.UnmarshalBinary(buf...
explode_data.jsonl/20351
{ "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, 35865, 1155, 353, 8840, 836, 8, 341, 11923, 1669, 3056, 2496, 21, 19, 90, 16, 17, 18, 11, 220, 15, 14673, 15, 15, 15, 15, 15, 15, 15, 15, 32, 11, 220, 15, 14673, 28321, 37, 22, 11, 220, 15, 22620, 37, 532, 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...
2
func TestParse_MeasurementsWithSameName(t *testing.T) { s := NewTestStatsd() // Test that counters work validLines := []string{ "test.counter,host=localhost:1|c", "test.counter,host=localhost,region=west:1|c", } for _, line := range validLines { err := s.parseStatsdLine(line) if err != nil { t.Errorf(...
explode_data.jsonl/14379
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 14463, 1245, 68, 3970, 1368, 2354, 19198, 675, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 2271, 16635, 67, 2822, 197, 322, 3393, 429, 31532, 975, 198, 56322, 16794, 1669, 3056, 917, 515, 197, 197, 1, 1944, 43076, 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...
4
func Test(t *testing.T) { // TODO: 测试参数的下界和上界! customTestCases := [][2]string{ { `3 3 1 2 2 3 1 3`, `3`, }, { `4 5 1 2 2 3 3 4 1 4 2 4`, `5`, }, } testutil.AssertEqualStringCase(t, customTestCases, 0, run) }
explode_data.jsonl/71951
{ "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, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 25, 98313, 66635, 32665, 9370, 16872, 97120, 33108, 17447, 97120, 6313, 198, 1444, 1450, 2271, 37302, 1669, 508, 1457, 17, 30953, 515, 197, 197, 515, 298, 197, 63, 18, 220, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_add(t *testing.T) { numA, numB, expectedResult := 3, 4, 7 result := add(numA, numB) if result != expectedResult { t.Fatalf("Add error: expected %d, but got %d", expectedResult, result) } }
explode_data.jsonl/22786
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 2891, 1155, 353, 8840, 836, 8, 341, 22431, 32, 11, 1629, 33, 11, 81441, 1669, 220, 18, 11, 220, 19, 11, 220, 22, 198, 9559, 1669, 912, 8068, 32, 11, 1629, 33, 340, 743, 1102, 961, 81441, 341, 197, 3244, 30762, 445, 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 ]
2
func TestLogWriter(t *testing.T) { var messages []string l := logWriter{func(s string, _ ...zapcore.Field) { messages = append(messages, s) }} n, err := l.Write([]byte("one")) require.NoError(t, err) assert.Equal(t, 3, n) assert.Len(t, messages, 1) n, err = l.Write([]byte("two")) require.NoError(t, err) a...
explode_data.jsonl/16225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 2201, 6492, 1155, 353, 8840, 836, 8, 341, 2405, 6605, 3056, 917, 198, 8810, 1669, 1487, 6492, 90, 2830, 1141, 914, 11, 716, 2503, 92371, 2153, 17087, 8, 341, 197, 2109, 3737, 284, 8737, 55705, 11, 274, 340, 197, 47449, 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 TestEndOfDay(t *testing.T) { res := EndOfDay(testDate) str := Date(res, "Y-m-d H:i:s") require.Equal(t, "2020-03-10 23:59:59", str) }
explode_data.jsonl/45315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 3727, 55075, 1155, 353, 8840, 836, 8, 341, 10202, 1669, 3972, 55075, 8623, 1916, 340, 11355, 1669, 2631, 4590, 11, 330, 56, 1448, 1737, 472, 14665, 14495, 1138, 17957, 12808, 1155, 11, 330, 17, 15, 17, 15, 12, 15, 18, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestBuiltins(t *testing.T) { tmpl, err := ParseFile("testdir/test_builtins.slim") if err != nil { t.Fatal(err) } tmpl.FuncMap(Funcs{ "trim": Trim, "to_upper": ToUpper, "to_lower": ToLower, "repeat": Repeat, }) var buf bytes.Buffer err = tmpl.Execute(&buf, Values{ "name": "golang", }) if ...
explode_data.jsonl/80431
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 54300, 1330, 1155, 353, 8840, 836, 8, 341, 3244, 54010, 11, 1848, 1669, 14775, 1703, 445, 1944, 3741, 12697, 880, 11227, 1330, 74257, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 3244, 54010, 69845...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseIPSet(t *testing.T) { s, err := ParseIPSet("1.0.0.0", "2.0.0.0", "3.0.0.0", "::ffff:4.0.0.0") if err != nil { t.Errorf("error parsing IPSet: %v", err) } if len(s) != 4 { t.Errorf("Expected len=3: %d", len(s)) } a := net.ParseIP("1.0.0.0") b := net.ParseIP("2.0.0.0") c := net.ParseIP("3.0.0.0")...
explode_data.jsonl/15550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 14463, 3298, 1649, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 14775, 3298, 1649, 445, 16, 13, 15, 13, 15, 13, 15, 497, 330, 17, 13, 15, 13, 15, 13, 15, 497, 330, 18, 13, 15, 13, 15, 13, 15, 497, 70154, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestContinue(t *testing.T) { const listenAddr = "127.0.0.1:40573" dlvbin, tmpdir := getDlvBin(t) defer os.RemoveAll(tmpdir) buildtestdir := filepath.Join(protest.FindFixturesDir(), "buildtest") cmd := exec.Command(dlvbin, "debug", "--headless", "--continue", "--accept-multiclient", "--listen", listenAddr) ...
explode_data.jsonl/49187
{ "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, 23526, 1155, 353, 8840, 836, 8, 341, 4777, 8844, 13986, 284, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 19, 15, 20, 22, 18, 1837, 2698, 21827, 6863, 11, 4174, 3741, 1669, 633, 35, 21827, 28794, 1155, 340, 16867, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidUint(t *testing.T) { os.Setenv("UINT", "-44") defer os.Clearenv() cfg := Config{} assert.EqualError(t, Parse(&cfg), "env: parse error on field \"Uint\" of type \"uint\": strconv.ParseUint: parsing \"-44\": invalid syntax") }
explode_data.jsonl/78762
{ "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, 7928, 21570, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 445, 25712, 497, 6523, 19, 19, 1138, 16867, 2643, 727, 273, 9151, 85, 2822, 50286, 1669, 5532, 16094, 6948, 12808, 1454, 1155, 11, 14775, 2099, 14072, 701, 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 TestFB_Break(t *testing.T) { f := FB{} f.Init() fizzBuzz := []int{15, 30, 45, 60, 75, 90} buzz := []int{3, 6, 9, 12, 18, 21, 24, 27, 33, 36, 39, 42, 48, 51, 54, 57, 63, 66, 69, 72, 78, 81, 84, 87, 93, 96, 99} fizz := []int{5, 10, 20, 25, 35, 40, 50, 55, 65, 70, 80, 85} f.fizzBuzz(1, 26) f.fizzBuzz(26, 3...
explode_data.jsonl/19483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 16208, 1668, 1108, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 31921, 16094, 1166, 26849, 2822, 1166, 8759, 59473, 1669, 3056, 396, 90, 16, 20, 11, 220, 18, 15, 11, 220, 19, 20, 11, 220, 21, 15, 11, 220, 22, 20, 11, 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...
7
func Test_Runner_SetWriter(t *testing.T) { buff := bytes.NewBufferString("") expect(t, buff.String(), "") bin := filepath.Join("test_fixtures", "writing_output") if runtime.GOOS == "windows" { bin += ".bat" } runner := gin.NewRunner(bin) runner.SetWriter(buff) cmd, err := runner.Run() cmd.Wait() expect(t...
explode_data.jsonl/4506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 2568, 54415, 14812, 6492, 1155, 353, 8840, 836, 8, 341, 85696, 1669, 5820, 7121, 4095, 703, 31764, 24952, 1155, 11, 11522, 6431, 1507, 85617, 2233, 258, 1669, 26054, 22363, 445, 1944, 36060, 18513, 497, 330, 25304, 7645, 1138,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestZeroPadding(t *testing.T) { var tests = []struct { data string key string }{ {"wangxigang2014@gmail.com", "sfe023f_"}, } for _, test := range tests { t.Log("start data length", len(string(test.data))) block, err := des.NewCipher([]byte(test.key)) if err != nil { t.Error(err) } origData...
explode_data.jsonl/3710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 17999, 21616, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 8924, 914, 198, 197, 23634, 220, 914, 198, 197, 59403, 197, 197, 4913, 70552, 87, 343, 524, 17, 15, 16, 19, 10375, 905, 497, 330, 82, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestStripQueryString(t *testing.T) { u, err := StripQueryString("https://example.com/myvideo.mp4?abc=d") if err != nil { t.Error(err) return } if u != "https://example.com/myvideo.mp4" { t.Error(u) } u, err = StripQueryString("https://example.com/myvideo.mp4") if err != nil { t.Error(err) return ...
explode_data.jsonl/72331
{ "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, 5901, 67001, 1155, 353, 8840, 836, 8, 341, 10676, 11, 1848, 1669, 34899, 67001, 445, 2428, 1110, 8687, 905, 34198, 9986, 16870, 19, 30, 13683, 25405, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 853, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPinErrors(t *testing.T) { cache, cleanup := withCache(t) defer cleanup() var err error // Nil checksum (errors in wasmvm Rust code) var nilChecksum []byte err = Pin(cache, nilChecksum) // TODO: Use ErrorContains once released (https://github.com/stretchr/testify/commit/6990a05d54) require.Error(t, err...
explode_data.jsonl/62551
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 516 }
[ 2830, 3393, 19861, 13877, 1155, 353, 8840, 836, 8, 341, 52680, 11, 21290, 1669, 448, 8233, 1155, 340, 16867, 21290, 741, 2405, 1848, 1465, 271, 197, 322, 32274, 32529, 320, 7650, 304, 98263, 7338, 33789, 2038, 340, 2405, 2092, 73190, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdaterWithEmptyPayloadNoErrorNoUpdateEscapedPath(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mr := mocks.NewMockRequester(ctrl) basePath := "http://api.updates.yourdomain.com/myapp%2Bfoo" mr.EXPECT().Fetch(fmt.Sprintf("%v/%v.json", basePath, defaultPlatform)).Return(newTestReaderC...
explode_data.jsonl/71519
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 79854, 2354, 3522, 29683, 2753, 1454, 2753, 4289, 36121, 10185, 1820, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 2109, 81, 1669, 68909, 7121, 11571, 1900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEachLine_FiltersInputThroughSuppliedFunction(t *testing.T) { t.Parallel() p := script.Echo("Hello\nGoodbye") q := p.EachLine(func(line string, out *strings.Builder) { out.WriteString(line + " world\n") }) want := "Hello world\nGoodbye world\n" got, err := q.String() if err != nil { t.Error(err) } ...
explode_data.jsonl/51464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 4854, 2460, 1400, 8612, 2505, 23857, 10048, 3440, 5152, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1669, 5316, 5142, 958, 445, 9707, 1699, 15216, 28374, 1138, 18534, 1669, 281, 13, 4854, 2460, 18552, 8797, 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 TestV2CID(t *testing.T) { processCgroupPaths = func(_ resolve.Resolver, _ int) (cgroup.PathList, error) { testMap := cgroup.PathList{ V1: map[string]cgroup.ControllerPath{ "cpu": {IsV2: true, ControllerPath: "system.slice/docker-2dcbab615aebfa9313feffc5cfdacd381543cfa04c6be3f39ac656e55ef34805.scope"}, ...
explode_data.jsonl/42536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 53, 17, 54146, 1155, 353, 8840, 836, 8, 341, 53314, 34, 4074, 26901, 284, 2915, 2490, 8830, 8377, 7921, 11, 716, 526, 8, 320, 66, 4074, 17474, 852, 11, 1465, 8, 341, 197, 18185, 2227, 1669, 272, 4074, 17474, 852, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetVolumeSize(t *testing.T) { tests := map[string]struct { expectedOutput string Volume VolumeInfo }{ "Fetching VolumeSize": { Volume: VolumeInfo{ Volume: v1alpha1.CASVolume{ ObjectMeta: metav1.ObjectMeta{ Annotations: map[string]string{}, }, Spec: v1alpha1.CASVolume...
explode_data.jsonl/78051
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 668 }
[ 2830, 3393, 1949, 18902, 1695, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 42400, 5097, 914, 198, 197, 17446, 4661, 260, 20265, 1731, 198, 197, 59403, 197, 197, 1, 52416, 20265, 1695, 788, 341, 298, 174...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSaveEventSubscription(t *testing.T) { common.SetUpMockConfig() defer func() { err := common.TruncateDB(common.OnDisk) if err != nil { t.Fatalf("error: %v", err) } }() sub := Subscription{ SubscriptionID: "1", Destination: "https://10.10.10.23:8080/destination", Name: "Event ...
explode_data.jsonl/49414
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 8784, 1556, 33402, 1155, 353, 8840, 836, 8, 1476, 83825, 4202, 2324, 11571, 2648, 741, 16867, 2915, 368, 341, 197, 9859, 1669, 4185, 8240, 26900, 3506, 57802, 8071, 47583, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 3076...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetDeviceByIF(t *testing.T) { client, _, device, err := test.NewClientServer() if err != nil { t.Fatal(err) } assert := assert.New(t) ifs, err := net.Interfaces() assert.NoError(err) device2, err := client.GetDeviceByIF(ifs[0].Name) assert.NoError(err) assert.EqualValues(device, device2) }
explode_data.jsonl/34118
{ "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, 1949, 6985, 1359, 2773, 1155, 353, 8840, 836, 8, 341, 25291, 11, 8358, 3671, 11, 1848, 1669, 1273, 7121, 2959, 5475, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 6948, 1669, 2060, 7121, 1155, 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...
2
func TestHeartbeatRequest(t *testing.T) { cases := []testutil.TestCase{ { Description: "Normal", Structured: message.NewHeartbeatRequest(seq, ie.NewRecoveryTimeStamp(time.Date(2019, time.January, 1, 0, 0, 0, 0, time.UTC)), ie.NewSourceIPAddress(net.ParseIP("127.0.0.1"), net.ParseIP("2001::1"), 0), )...
explode_data.jsonl/32396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 437 }
[ 2830, 3393, 45384, 22227, 1900, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1944, 1314, 31363, 515, 197, 197, 515, 298, 47414, 25, 330, 12206, 756, 298, 197, 97457, 25, 1943, 7121, 45384, 22227, 1900, 34820, 345, 571, 197, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDecoderIssue4779(t *testing.T) { encoded := `CP/EAT8AAAEF AQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAAB BAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHx Y3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm 9jdHV2d3h5ent8fX5/cRA...
explode_data.jsonl/35061
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 993 }
[ 2830, 3393, 20732, 42006, 19, 22, 22, 24, 1155, 353, 8840, 836, 8, 341, 197, 19329, 1669, 1565, 7123, 25646, 828, 23, 6029, 13669, 37, 198, 92073, 36, 7064, 48, 8264, 57905, 32, 1402, 6029, 48, 5371, 33, 48, 56, 39, 5049, 74, 6463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateEmptyContextName(t *testing.T) { config := clientcmdapi.NewConfig() config.CurrentContext = "anything" config.Contexts[""] = &clientcmdapi.Context{Cluster: "missing", AuthInfo: "missing"} test := configValidationTest{ config: config, expectedErrorSubstring: []string{"empty...
explode_data.jsonl/48032
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 17926, 3522, 1972, 675, 1155, 353, 8840, 836, 8, 972, 25873, 1669, 2943, 8710, 2068, 7121, 2648, 3568, 25873, 11517, 1972, 284, 330, 72154, 5031, 25873, 9328, 82, 1183, 1341, 284, 609, 2972, 8710, 2068, 9328, 90, 28678, 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 TestCallMoreArgsDynamic(t *testing.T) { const SCRIPT = ` function A(a, b) { var c = 4; if (false) { eval(""); } return a - b + c; } var rv = A(1, 2, 3); ` testScript(SCRIPT, intToValue(3), t) }
explode_data.jsonl/75213
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 7220, 7661, 4117, 21752, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 1688, 362, 2877, 11, 293, 8, 341, 2405, 272, 284, 220, 19, 280, 743, 320, 3849, 8, 341, 197, 93413, 13056, 197, 532, 853, 264, 481, 293, 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 TestVirtualService_Input_Output(t *testing.T) { g := NewGomegaWithT(t) xform, _, _ := setupVS(g, processing.ProcessorOptions{}) g.Expect(xform.Inputs()).To(Equal(collection.NewSchemasBuilder().MustAdd(collections.K8SExtensionsV1Beta1Ingresses).Build())) g.Expect(xform.Outputs()).To(Equal(collection.NewSchema...
explode_data.jsonl/71120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 33026, 1860, 48653, 65062, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 10225, 627, 11, 8358, 716, 1669, 6505, 26050, 3268, 11, 8692, 29012, 269, 3798, 6257, 692, 3174, 81893, 2075, 627, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetWorkloadCPUThreads(t *testing.T) { Convey("When using Automatic Core Placement CPU threads list shall not be empty", t, func() { hpThreads, beL1Threads, beLLCThreads := sensitivity.GetWorkloadCPUThreads() So(len(hpThreads), ShouldBeGreaterThan, 0) So(len(beL1Threads), ShouldBeGreaterThan, 0) So(len...
explode_data.jsonl/58098
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 1949, 6776, 1078, 31615, 38666, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 4498, 1667, 33981, 9518, 77416, 13940, 14564, 1140, 4880, 537, 387, 4287, 497, 259, 11, 2915, 368, 341, 197, 9598, 79, 38666, 11, 387, 43, 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 TestNodeFinders(t *testing.T) { t.Run("returns index of left child node", func(t *testing.T) { got := LeftNodeIndex(1) want := 2 if got != want { t.Errorf("wanted left node index %v got %v", want, got) } }) t.Run("returns index of right child node", func(t *testing.T) { got := RightNodeIndex(1) ...
explode_data.jsonl/22502
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 1955, 9885, 388, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4216, 1922, 315, 2115, 1682, 2436, 497, 2915, 1155, 353, 8840, 836, 8, 1476, 197, 3174, 354, 1669, 13727, 1955, 1552, 7, 16, 340, 197, 50780, 1669, 220, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMultiRangeEmptyAfterTruncate(t *testing.T) { defer leaktest.AfterTest(t)() s, _ := startNoSplitMergeServer(t) ctx := context.TODO() defer s.Stopper().Stop(ctx) db := s.DB() if err := setupMultipleRanges(ctx, db, "c", "d"); err != nil { t.Fatal(err) } // Delete the keys within a transaction. The rang...
explode_data.jsonl/36457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 20358, 6046, 3522, 6025, 1282, 26900, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 1903, 11, 716, 1669, 1191, 2753, 20193, 52096, 5475, 1155, 340, 20985, 1669, 2266, 90988, 741, 16867, 274, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPubmaticInvalidStatusCode(t *testing.T) { server := httptest.NewServer( http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // Send 404 http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound) }), ) defer server.Close() conf := *adapters.DefaultHTTPAdapterConfig an ...
explode_data.jsonl/77914
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 29162, 37244, 7928, 15872, 1155, 353, 8840, 836, 8, 1476, 41057, 1669, 54320, 70334, 7121, 5475, 1006, 197, 28080, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 197, 322, 11000, 220, 19, 15, 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...
1
func TestPlayer_Color(t *testing.T) { pl := playerWithResourceProperty("m_iCompTeammateColor", st.PropertyValue{IntVal: int(Yellow)}) assert.Equal(t, Yellow, pl.Color()) }
explode_data.jsonl/12204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 4476, 43387, 1155, 353, 8840, 836, 8, 341, 72213, 1669, 2781, 2354, 4783, 3052, 445, 76, 5318, 13552, 6639, 8666, 349, 1636, 497, 357, 15727, 1130, 90, 1072, 2208, 25, 526, 20206, 5299, 8, 8824, 6948, 12808, 1155, 11, 2546...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_EditTeam(t *testing.T) { // error payload w := httptest.NewRecorder() jsonData, _ := json.Marshal(map[string]interface{}{ "Name": "vidar", "Logo": "", }) req, _ := http.NewRequest("PUT", "/api/manager/team", bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", managerToken) router.ServeHTTP(w...
explode_data.jsonl/77159
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 559 }
[ 2830, 3393, 66158, 14597, 1155, 353, 8840, 836, 8, 341, 197, 322, 1465, 7729, 198, 6692, 1669, 54320, 70334, 7121, 47023, 741, 30847, 1043, 11, 716, 1669, 2951, 37271, 9147, 14032, 31344, 67066, 197, 197, 1, 675, 788, 330, 1301, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFloatSpecialValues(t *testing.T) { testtype.SkipUnlessTestType(t, testtype.UnitTestType) _, err := Marshal(math.NaN()) if err != nil { t.Errorf("Got error for NaN: %v", err) } _, err = Marshal(math.Inf(-1)) if err != nil { t.Errorf("Got error for -Inf: %v", err) } _, err = Marshal(math.Inf(1)) ...
explode_data.jsonl/4565
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 5442, 20366, 6227, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 57776, 35587, 2271, 929, 1155, 11, 1273, 1313, 25159, 2271, 929, 692, 197, 6878, 1848, 1669, 35667, 37270, 78706, 2398, 743, 1848, 961, 2092, 341, 197, 3244, 1308...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBaseBalancerStripAttributes(t *testing.T) { b := (&baseBuilder{}).Build(&testClientConn{ newSubConn: func(addrs []resolver.Address, _ balancer.NewSubConnOptions) (balancer.SubConn, error) { for _, addr := range addrs { if addr.Attributes == nil { t.Errorf("in NewSubConn, got address %+v with nil...
explode_data.jsonl/74257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 3978, 93825, 5901, 10516, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 15899, 3152, 3297, 6257, 568, 11066, 2099, 1944, 2959, 9701, 515, 197, 8638, 3136, 9701, 25, 2915, 25906, 5428, 3056, 48943, 26979, 11, 716, 9642, 11705, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestHtlcIncomingResolverFwdContestedTimeout(t *testing.T) { t.Parallel() defer timeout(t)() ctx := newIncomingResolverTestContext(t, false) // Replace our checkpoint with one which will push reports into a // channel for us to consume. We replace this function on the resolver // itself because it is create...
explode_data.jsonl/30611
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 39, 11544, 66, 97564, 18190, 37, 6377, 818, 9980, 7636, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 16867, 9632, 1155, 8, 2822, 20985, 1669, 501, 97564, 18190, 2271, 1972, 1155, 11, 895, 692, 197, 322, 29558, 103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToMysql(t *testing.T) { beforeEach("mysql") equalityReturned, logicReturned, _ := testingTreeRoot.toMysql() if equalityReturned != testingMysqlEqualityInput { t.Errorf("%v.toMysql() equalityReturned - got %v, want %v", testingTreeRoot, equalityReturned, testingMysqlEqualityInput) } ...
explode_data.jsonl/62582
{ "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, 1249, 44, 14869, 1155, 353, 8840, 836, 8, 341, 262, 17723, 445, 12272, 5130, 262, 21777, 84804, 11, 12218, 84804, 11, 716, 1669, 7497, 6533, 8439, 2389, 44, 14869, 2822, 262, 421, 21777, 84804, 961, 7497, 44, 14869, 50745, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFactoryGet(t *testing.T) { t.Run("should return not found error if extractor does not exist", func(t *testing.T) { name := "wrong-name" factory := extractor.NewFactory() factory.SetTableExtractor("mock", newMockTableExtractor) _, err := factory.Get(name) assert.Equal(t, extractor.NotFoundError{nam...
explode_data.jsonl/71947
{ "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, 4153, 1949, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5445, 470, 537, 1730, 1465, 421, 67472, 1558, 537, 3000, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 11609, 1669, 330, 34870, 11494, 1837, 197, 1166, 2919, 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 TestStoreCreateOrUpdate(t *testing.T) { testWithPostgresStoreV2(t, func(s storev2.Interface) { fixture := corev3.FixtureEntityState("foo") ctx := context.Background() req := storev2.NewResourceRequestFromResource(ctx, fixture) req.UsePostgres = true wrapper := WrapEntityState(fixture) if err := s.Crea...
explode_data.jsonl/73379
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 322 }
[ 2830, 3393, 6093, 4021, 56059, 1155, 353, 8840, 836, 8, 341, 18185, 2354, 4133, 17818, 6093, 53, 17, 1155, 11, 2915, 1141, 3553, 85, 17, 41065, 8, 341, 197, 1166, 12735, 1669, 6200, 85, 18, 991, 12735, 3030, 1397, 445, 7975, 1138, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestStoreType(t *testing.T) { db := dbm.NewMemDB() store := NewStore(db) store.MountStoreWithDB(types.NewKVStoreKey("store1"), types.StoreTypeIAVL, db) }
explode_data.jsonl/21878
{ "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, 6093, 929, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 76, 7121, 18816, 3506, 741, 57279, 1669, 1532, 6093, 9791, 340, 57279, 1321, 629, 6093, 2354, 3506, 52613, 7121, 82707, 6093, 1592, 445, 4314, 16, 3975, 4494, 38047...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConnectResetAfterClose(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() // Set TCPLinger to 3 seconds so that sockets are marked closed // after 3 second in FIN_WAIT2 state. tcpLingerTimeout := 3 * time.Second opt := tcpip.TCPLingerTimeoutOption(tcpLingerTimeout) if err := c.Stack().Se...
explode_data.jsonl/75929
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 900 }
[ 2830, 3393, 14611, 14828, 6025, 7925, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 197, 322, 2573, 24591, 2916, 5137, 311, 220, 18, 6486, 773, 429, 47557, 525, 1286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageSetWalk(t *testing.T) { var ( value = make(MessageSet, 3) req = require.New(t) ) // check walk with no errors { err := value.Walk(func(*Message) error { return nil }) req.NoError(err) } // check walk with error req.Error(value.Walk(func(*Message) error { return errors.New("walk e...
explode_data.jsonl/5842
{ "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, 2052, 1649, 48849, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 16309, 284, 1281, 29359, 1649, 11, 220, 18, 340, 197, 24395, 256, 284, 1373, 7121, 1155, 340, 197, 692, 197, 322, 1779, 4227, 448, 902, 5975, 198, 197, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMarginTransactionDetails(t *testing.T) { request := okgroup.GetSpotTransactionDetailsRequest{ OrderID: 1234, InstrumentID: spotCurrency, } _, err := o.GetMarginTransactionDetails(request) testStandardErrorHandling(t, err) }
explode_data.jsonl/30190
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 1949, 21681, 8070, 7799, 1155, 353, 8840, 836, 8, 341, 23555, 1669, 5394, 4074, 2234, 47049, 8070, 7799, 1900, 515, 197, 197, 4431, 915, 25, 414, 220, 16, 17, 18, 19, 345, 197, 197, 56324, 915, 25, 7702, 26321, 345, 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 TestScrapeLoopRun(t *testing.T) { var ( signal = make(chan struct{}) errc = make(chan error) scraper = &testScraper{} app = func() storage.Appender { return &nopAppender{} } ) defer close(signal) ctx, cancel := context.WithCancel(context.Background()) sl := newScrapeLoop(ctx, scraper, nil,...
explode_data.jsonl/56120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 806 }
[ 2830, 3393, 3326, 19842, 14620, 6727, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 81319, 284, 1281, 35190, 2036, 37790, 197, 9859, 66, 256, 284, 1281, 35190, 1465, 692, 197, 1903, 86282, 284, 609, 1944, 65508, 3191, 16094, 197, 28236...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormatCheck(t *testing.T) { testCases := []struct { dataFormat string dataExists bool expectedFormat string expectedErr *ErrFormatVersionMismatch }{ { dataFormat: "", dataExists: true, expectedFormat: "", expectedErr: nil, }, { dataFormat: "", dataExi...
explode_data.jsonl/4634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 577 }
[ 2830, 3393, 4061, 3973, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 8924, 4061, 257, 914, 198, 197, 8924, 15575, 257, 1807, 198, 197, 42400, 4061, 914, 198, 197, 42400, 7747, 262, 353, 7747, 4061, 5637, 825...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartController(t *testing.T) { g := TestGroup{} g.Init() // Run the controller in a goroutine go Start(g.client, g.edgenetClient) // Create a user g.edgenetClient.AppsV1alpha().Users(g.userObj.GetNamespace()).Create(context.TODO(), g.userObj.DeepCopy(), metav1.CreateOptions{}) go g.mockSigner(g.author...
explode_data.jsonl/53844
{ "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, 3479, 2051, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 3393, 2808, 16094, 3174, 26849, 2822, 197, 322, 6452, 279, 6461, 304, 264, 45198, 14159, 198, 30680, 5145, 3268, 6581, 11, 342, 10059, 4370, 295, 2959, 340, 197, 322, 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 TestCreateGeneric(t *testing.T) { aclip.Unsupported = true s := creator{mockstore.New("")} ctx := context.Background() ctx = ctxutil.WithAlwaysYes(ctx, true) ctx = ctxutil.WithClipTimeout(ctx, 1) buf := &bytes.Buffer{} out.Stdout = buf termio.Stdout = buf defer func() { out.Stdout = os.Stdout termio...
explode_data.jsonl/23336
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 4021, 19964, 1155, 353, 8840, 836, 8, 341, 11323, 7974, 65017, 284, 830, 198, 1903, 1669, 19919, 90, 16712, 4314, 7121, 39047, 630, 20985, 1669, 2266, 19047, 741, 20985, 284, 5635, 1314, 26124, 37095, 9454, 7502, 11, 830, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAddSummaryTooLong(t *testing.T) { t.Parallel() // arrange p := podcast.New( "title", "desc", "Link", nil, nil) summary := "" for { if len(summary) >= 4051 { break } summary += "jax ss 7 " } // act p.AddSummary(summary) // assert assert.Len(t, p.ISummary.Text, 4000) }
explode_data.jsonl/73087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 2212, 19237, 31246, 6583, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 30893, 198, 3223, 1669, 17711, 7121, 1006, 197, 197, 82727, 756, 197, 197, 1, 8614, 756, 197, 197, 1, 3939, 756, 197, 84131, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestValidFieldNames(t *testing.T) { testCases := []struct { name string valid bool }{ {"Normal", true}, {"Also_OK_123", true}, {"Not so great", false}, {"lower_case", true}, {"Exclaim!", false}, {"Hello세상아 안녕", false}, {"", false}, {"Hεllo", false}, {strings.Repeat("A", 500), true}, {str...
explode_data.jsonl/27954
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 313 }
[ 2830, 3393, 4088, 1877, 7980, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 56322, 1807, 198, 197, 59403, 197, 197, 4913, 12206, 497, 830, 1583, 197, 197, 4913, 13394, 8375, 62, 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 TestUploadWithContextCanceled(t *testing.T) { u := s3manager.NewUploader(unit.Session) params := s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), Body: bytes.NewReader(make([]byte, 0)), } ctx := &awstesting.FakeContext{DoneCh: make(chan struct{})} ctx.Error = fmt.Error...
explode_data.jsonl/55654
{ "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, 13844, 91101, 63263, 1155, 353, 8840, 836, 8, 341, 10676, 1669, 274, 18, 13297, 7121, 67574, 24144, 20674, 692, 25856, 1669, 274, 18, 13297, 86597, 2505, 515, 197, 12791, 11152, 25, 31521, 6431, 445, 36018, 4461, 197, 55242, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTypeSystem_ListMustAcceptGraphQLTypes_AcceptsAnTypeAsItemTypeOfList(t *testing.T) { testTypes := withModifiers([]graphql.Type{ graphql.String, someScalarType, someEnumType, someObjectType, someUnionType, someInterfaceType, }) for _, ttype := range testTypes { result := graphql.NewList(ttype) ...
explode_data.jsonl/79188
{ "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, 929, 2320, 27104, 31776, 16646, 88637, 4173, 1566, 66, 57771, 2082, 929, 2121, 74618, 2124, 852, 1155, 353, 8840, 836, 8, 341, 18185, 4173, 1669, 448, 66937, 10556, 38294, 10184, 515, 197, 197, 38294, 6431, 345, 197, 1903, 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...
3
func TestGetCredentialsPathOnWindowsWithoutHome(t *testing.T) { runtimeGOOS := "windows" if err := os.Setenv("AWS_SHARED_CREDENTIALS_FILE", ""); err != nil { t.Error(err) } if err := os.Setenv("HOME", ""); err != nil { t.Error(err) } getCredentialsPath(runtimeGOOS) }
explode_data.jsonl/2448
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 1949, 27025, 1820, 1925, 13164, 26040, 7623, 1155, 353, 8840, 836, 8, 341, 7000, 4466, 15513, 3126, 1669, 330, 27077, 698, 743, 1848, 1669, 2643, 4202, 3160, 445, 36136, 54718, 920, 81509, 50, 8087, 497, 93754, 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...
3
func TestU256(t *testing.T) { tests := []struct{ x, y *big.Int }{ {x: big.NewInt(0), y: big.NewInt(0)}, {x: big.NewInt(1), y: big.NewInt(1)}, {x: BigPow(2, 255), y: BigPow(2, 255)}, {x: BigPow(2, 256), y: big.NewInt(0)}, {x: new(big.Int).Add(BigPow(2, 256), big.NewInt(1)), y: big.NewInt(1)}, // negative va...
explode_data.jsonl/35396
{ "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, 52, 17, 20, 21, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 90, 856, 11, 379, 353, 16154, 7371, 335, 515, 197, 197, 45340, 25, 2409, 7121, 1072, 7, 15, 701, 379, 25, 2409, 7121, 1072, 7, 15, 39781, 197, 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 TestAddTagEventToImageStream(t *testing.T) { tests := map[string]struct { tags map[string]TagEventList nextRef string nextImage string expectedTags map[string]TagEventList expectedUpdate bool }{ "nil entry for tag": { tags: map[string]TagEventList{}, nextRef: "ref...
explode_data.jsonl/40831
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1835 }
[ 2830, 3393, 2212, 5668, 1556, 1249, 1906, 3027, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 3244, 2032, 1843, 2415, 14032, 60, 5668, 1556, 852, 198, 197, 28144, 3945, 286, 914, 198, 197, 28144, 1906, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRevisionPause(t *testing.T) { fc := clockwork.NewFakeClock() rg := &fakeRevGetter{testutil.NewRecorderStream(), 99} // will be 100 compactable := &fakeCompactable{testutil.NewRecorderStream()} tb := newRevision(zap.NewExample(), fc, 10, rg, compactable) tb.Run() tb.Pause() // tb will collect 3 hours o...
explode_data.jsonl/48383
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 403 }
[ 2830, 3393, 33602, 28391, 1155, 353, 8840, 836, 8, 341, 1166, 66, 1669, 8866, 1778, 7121, 52317, 26104, 741, 197, 1984, 1669, 609, 30570, 36184, 31485, 90, 1944, 1314, 7121, 47023, 3027, 1507, 220, 24, 24, 92, 442, 686, 387, 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...
6
func TestServerWithRedisDown(t *testing.T) { // Make sure that server does not panic and exit if redis is down. defer func() { if r := recover(); r != nil { t.Errorf("panic occurred: %v", r) } }() r := rdb.NewRDB(setup(t)) testBroker := testbroker.NewTestBroker(r) srv := NewServer(RedisClientOpt{Addr: ":63...
explode_data.jsonl/81847
{ "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, 5475, 2354, 48137, 4454, 1155, 353, 8840, 836, 8, 341, 197, 322, 7405, 2704, 429, 3538, 1558, 537, 21975, 323, 4869, 421, 20870, 374, 1495, 624, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 961, 2092, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLookupResolverIP(t *testing.T) { addr, err := (resolverLookupClient{}).LookupResolverIP(context.Background()) if err != nil { t.Fatal(err) } if addr == "" { t.Fatal("expected a non-empty string") } }
explode_data.jsonl/79472
{ "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, 34247, 18190, 3298, 1155, 353, 8840, 836, 8, 341, 53183, 11, 1848, 1669, 320, 48943, 34247, 2959, 6257, 568, 34247, 18190, 3298, 5378, 19047, 2398, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 743, 10789...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreatePVC(t *testing.T) { tests := []struct { name string size string labels map[string]string wantErr bool }{ { name: "storage 10Gi", size: "10Gi", labels: map[string]string{ "name": "mongodb", "namespace": "blog", }, wantErr: false, }, { name: "storage 10...
explode_data.jsonl/65143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 975 }
[ 2830, 3393, 4021, 47, 11287, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 13832, 262, 914, 198, 197, 95143, 220, 2415, 14032, 30953, 198, 197, 50780, 7747, 1807, 198, 197, 59403, 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...
9
func TestLogProcessor(t *testing.T) { factory := NewFactory() cfg := factory.CreateDefaultConfig().(*Config) // Manually set required fields cfg.FacilityAttr = "testAttrName" params := component.ProcessorCreateParams{Logger: zap.NewNop()} lp, err := factory.CreateLogsProcessor(context.Background(), params, cfg,...
explode_data.jsonl/60420
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 2201, 22946, 1155, 353, 8840, 836, 8, 341, 1166, 2919, 1669, 1532, 4153, 2822, 50286, 1669, 8633, 7251, 3675, 2648, 1005, 4071, 2648, 340, 197, 322, 2363, 1832, 738, 2567, 5043, 198, 50286, 991, 580, 1403, 13371, 284, 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 TestFindContainerByName(t *testing.T) { assert := asrt.New(t) pwd, _ := os.Getwd() pwd, _ = filepath.Abs(pwd) testdata := filepath.Join(pwd, "testdata") assert.DirExists(testdata) containerName := t.Name() + fileutil.RandomFilenameBase() // Make sure we don't already have one running c, err := FindContai...
explode_data.jsonl/41378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 9885, 4502, 16898, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 438, 3342, 7121, 1155, 692, 3223, 6377, 11, 716, 1669, 2643, 2234, 6377, 741, 3223, 6377, 11, 716, 284, 26054, 33255, 97887, 340, 18185, 691, 1669, 26054, 22363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTracing(t *testing.T) { session := createSession(t) defer session.Close() if err := createTable(session, `CREATE TABLE gocql_test.trace (id int primary key)`); err != nil { t.Fatal("create:", err) } buf := &bytes.Buffer{} trace := &traceWriter{session: session, w: buf} if err := session.Query(`INSER...
explode_data.jsonl/11132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 1282, 4527, 1155, 353, 8840, 836, 8, 341, 25054, 1669, 1855, 5283, 1155, 340, 16867, 3797, 10421, 2822, 743, 1848, 1669, 1855, 2556, 16264, 11, 1565, 22599, 14363, 342, 509, 1470, 4452, 34412, 320, 307, 526, 6028, 1376, 4618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArrayOrString_MarshalJSON_Single(t *testing.T) { assert := assert.New(t) var a ArrayOrString a = []string{"x"} data, err := a.MarshalJSON() assert.Nil(err) assert.Equal(`"x"`, string(data)) }
explode_data.jsonl/63945
{ "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, 1857, 2195, 703, 1245, 28423, 5370, 1098, 2173, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2405, 264, 2910, 2195, 703, 198, 11323, 284, 3056, 917, 4913, 87, 16707, 8924, 11, 1848, 1669, 264, 37271, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestCtxHijack(t *testing.T) { hijackStartCh := make(chan struct{}) hijackStopCh := make(chan struct{}) s := &Server{ Handler: func(ctx *RequestCtx) { if ctx.Hijacked() { t.Fatalf("connection mustn't be hijacked") } ctx.Hijack(func(c net.Conn) { <-hijackStartCh b := make([]byte, 1)...
explode_data.jsonl/73296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 803 }
[ 2830, 3393, 1900, 23684, 39, 3172, 473, 1155, 353, 8840, 836, 8, 341, 9598, 3172, 473, 3479, 1143, 1669, 1281, 35190, 2036, 37790, 9598, 3172, 473, 10674, 1143, 1669, 1281, 35190, 2036, 37790, 1903, 1669, 609, 5475, 515, 197, 197, 3050,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseOptions(t *testing.T) { testCases := []struct { name string given []string expected options }{ { name: "basic case", given: []string{"cmd", "--dry-run=false", "--config=/tmp/config"}, expected: options{ configPath: "/tmp/config", }, }, { name: "with kubeconfig", ...
explode_data.jsonl/10625
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 517 }
[ 2830, 3393, 14463, 3798, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 3174, 2071, 262, 3056, 917, 198, 197, 42400, 2606, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 220, 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 TestValidateUpstreamLBMethod(t *testing.T) { tests := []struct { method string isPlus bool }{ { method: "round_robin", isPlus: false, }, { method: "", isPlus: false, }, { method: "ip_hash", isPlus: true, }, { method: "", isPlus: true, }, } for _, test := range tests...
explode_data.jsonl/65859
{ "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, 17926, 2324, 4027, 34068, 3523, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42257, 914, 198, 197, 19907, 21807, 1807, 198, 197, 59403, 197, 197, 515, 298, 42257, 25, 330, 1049, 26608, 6863, 756, 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, 1...
3
func TestListPeriodic(t *testing.T) { c := &Config{ JobConfig: JobConfig{ Presubmits: map[string][]Presubmit{ "r1": {{Name: "a"}}, }, Postsubmits: map[string][]Postsubmit{ "r1": {{Name: "b"}}, }, Periodics: []Periodic{ { Name: "c", RunAfterSuccess: []Periodic{ {Name: "ca"},...
explode_data.jsonl/36541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 852, 23750, 292, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 2648, 515, 197, 197, 12245, 2648, 25, 12011, 2648, 515, 298, 10025, 416, 392, 44703, 25, 2415, 14032, 45725, 14367, 392, 1763, 515, 571, 197, 1, 81, 16, 788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestRegistry(t *testing.T) { Convey("Test Add", t, func() { RegisterTaskFactory("example", ExampleTaskFactory) So(func() { RegisterTaskFactory("example", ExampleTaskFactory) }, ShouldPanic) tf, ok := getTaskFactory("example") So(ok, ShouldBeTrue) So(tf, ShouldEqual, tf) _, ok = getTaskFactory("none...
explode_data.jsonl/79287
{ "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, 15603, 1155, 353, 8840, 836, 8, 1476, 93070, 5617, 445, 2271, 2691, 497, 259, 11, 2915, 368, 341, 197, 79096, 6262, 4153, 445, 8687, 497, 13383, 6262, 4153, 340, 197, 76912, 18552, 368, 314, 8451, 6262, 4153, 445, 8687, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSecretsUpdate(t *testing.T) { // prepare nsn := types.NamespacedName{ Name: "TestSecretsUpdate", } orig := corev1.Secret{} orig.Name = nsn.Name orig.Annotations = map[string]string{"key": "value"} objs := []runtime.Object{ v1.NewJaeger(nsn), &orig, } r, cl := getReconciler(objs) r.strategyCh...
explode_data.jsonl/76529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 19773, 82, 4289, 1155, 353, 8840, 836, 8, 341, 197, 322, 10549, 198, 84041, 77, 1669, 4494, 98932, 68552, 675, 515, 197, 21297, 25, 330, 2271, 19773, 82, 4289, 756, 197, 630, 197, 4670, 1669, 6200, 85, 16, 74779, 16094, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1