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 TestBuildCmdEnvFileUpperCase(t *testing.T) { appName := "test3" appNames := []string{"test3"} err := secretStore.LoadSecrets(appName, scopes[0]) assert.NoError(t, err) err = secretStore.SetSecret(appName, "ANYTHING", "must_be_set", scopes[0]) assert.NoError(t, err) err = secretStore.SetSecret(appName, "K...
explode_data.jsonl/8941
{ "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, 11066, 15613, 14359, 1703, 20953, 1155, 353, 8840, 836, 8, 341, 28236, 675, 1669, 330, 1944, 18, 698, 28236, 7980, 1669, 3056, 917, 4913, 1944, 18, 63159, 9859, 1669, 6234, 6093, 13969, 19773, 82, 11462, 675, 11, 50598, 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 TestCompareAndSetAndSuccess(t *testing.T) { seq := newSequence() id := seq.incrementAndGet() seq.compareAndSet(id, 2) id2 := seq.get() if id2 != 2 { t.Error("compareAndSet should return ", 2) } }
explode_data.jsonl/62907
{ "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, 27374, 3036, 1649, 3036, 7188, 1155, 353, 8840, 836, 8, 341, 78561, 1669, 501, 14076, 741, 15710, 1669, 12981, 56936, 97726, 741, 78561, 20614, 3036, 1649, 3724, 11, 220, 17, 340, 15710, 17, 1669, 12981, 670, 741, 743, 877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParser_findConfigFileFlag(t *testing.T) { type fields struct { DefaultConfig string env string } tests := []struct { name string fields fields arg []string want string found bool }{ { name: "default case", arg: nil, found: false, }, { name: "simple case...
explode_data.jsonl/76323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1028 }
[ 2830, 3393, 6570, 21814, 2648, 1703, 12135, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 91084, 2648, 914, 198, 197, 57538, 1843, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 55276, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMergeCell(t *testing.T) { f, err := OpenFile(filepath.Join("test", "Book1.xlsx")) if !assert.NoError(t, err) { t.FailNow() } f.MergeCell("Sheet1", "D9", "D9") f.MergeCell("Sheet1", "D9", "E9") f.MergeCell("Sheet1", "H14", "G13") f.MergeCell("Sheet1", "C9", "D8") f.MergeCell("Sheet1", "F11", "G13") ...
explode_data.jsonl/36967
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 453 }
[ 2830, 3393, 52096, 3599, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 5264, 1703, 34793, 22363, 445, 1944, 497, 330, 7134, 16, 46838, 5455, 743, 753, 2207, 35699, 1155, 11, 1848, 8, 341, 197, 3244, 57243, 7039, 741, 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...
2
func TestNewDialerVanilla(t *testing.T) { d := httptransport.NewDialer(httptransport.Config{}) pd, ok := d.(dialer.ProxyDialer) if !ok { t.Fatal("not the dialer we expected") } if pd.ProxyURL != nil { t.Fatal("not the proxy URL we expected") } dnsd, ok := pd.Dialer.(dialer.DNSDialer) if !ok { t.Fatal("not...
explode_data.jsonl/78381
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 3564, 35, 530, 261, 45224, 6241, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 1758, 26445, 7121, 35, 530, 261, 19886, 26445, 10753, 37790, 3223, 67, 11, 5394, 1669, 294, 12832, 67, 530, 261, 75200, 35, 530, 261, 340, 743, 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...
9
func TestCompression(t *testing.T) { testData := []byte("Test Data: This is test data for compression. This data is needs to have with some repetitive values, so compression is effective.") for z, f := range compressors { compressedBuf, err := f(testData) assert.Equalf(t, err, nil, "Expected successful %s comp...
explode_data.jsonl/74103
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 81411, 1155, 353, 8840, 836, 8, 1476, 18185, 1043, 1669, 3056, 3782, 445, 2271, 2885, 25, 1096, 374, 1273, 821, 369, 25111, 13, 220, 1096, 821, 374, 3880, 311, 614, 448, 1045, 58077, 2750, 11, 773, 25111, 374, 7373, 31225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStart_CanTransitionTo(t *testing.T) { st := &start{} require.Equal(t, stateNameStart, st.Name()) require.True(t, st.CanTransitionTo(&arranging{})) require.True(t, st.CanTransitionTo(&deciding{})) require.True(t, st.CanTransitionTo(&requesting{})) require.True(t, st.CanTransitionTo(&abandoning{})) requ...
explode_data.jsonl/66237
{ "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, 3479, 920, 276, 21768, 1249, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 609, 2468, 16094, 17957, 12808, 1155, 11, 1584, 675, 3479, 11, 357, 2967, 12367, 17957, 32443, 1155, 11, 357, 53280, 21768, 1249, 2099, 1118, 8595, 6257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMaxAgeNegative(t *testing.T) { db := newDB() store := New(db, []byte("secret")) countFn := makeCountHandler("session", store) r1 := req(countFn, nil) match(t, r1, 200, "1") r2 := req(func(w http.ResponseWriter, r *http.Request) { session, err := store.Get(r, "session") if err != nil { panic(err)...
explode_data.jsonl/71333
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 316 }
[ 2830, 3393, 5974, 16749, 38489, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 501, 3506, 741, 57279, 1669, 1532, 9791, 11, 3056, 3782, 445, 20474, 5455, 18032, 24911, 1669, 1281, 2507, 3050, 445, 5920, 497, 3553, 692, 7000, 16, 1669, 4232,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHTTPFetcher_AddsArbitraryRequestID(t *testing.T) { empty := adapterResponse{} handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { var req fetcherRequest body, _ := ioutil.ReadAll(r.Body) err := json.Unmarshal(body, &req) require.NoError(t, err) require.NotEmpty(t, req.ID) ...
explode_data.jsonl/26506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 9230, 97492, 21346, 82, 6953, 87851, 1900, 915, 1155, 353, 8840, 836, 8, 341, 197, 3194, 1669, 12956, 2582, 31483, 53326, 1669, 1758, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 2405, 4232, 7807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMenusShadowMembers(t *testing.T) { b := newTestSitesBuilder(t).WithConfigFile("toml", ` [[menus.main]] identifier = "contact" pageRef = "contact" title = "Contact Us" url = "mailto:noreply@example.com" weight = 1 [[menus.main]] pageRef = "/blog/post3" title = "My Post 3" url = "/blog/post3" `) commonTempl...
explode_data.jsonl/51847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 935 }
[ 2830, 3393, 77944, 23667, 24371, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 2271, 93690, 3297, 1155, 568, 2354, 2648, 1703, 445, 37401, 75, 497, 22074, 15505, 57627, 8880, 14288, 15909, 284, 330, 6287, 698, 2893, 3945, 284, 330, 628...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMilestoneStats_String(t *testing.T) { v := MilestoneStats{ TotalMilestones: Int(0), OpenMilestones: Int(0), ClosedMilestones: Int(0), } want := `github.MilestoneStats{TotalMilestones:0, OpenMilestones:0, ClosedMilestones:0}` if got := v.String(); got != want { t.Errorf("MilestoneStats.String = %...
explode_data.jsonl/33261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 44, 93028, 16635, 31777, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 38597, 10812, 16635, 515, 197, 197, 7595, 44, 457, 32510, 25, 220, 1333, 7, 15, 1326, 197, 197, 5002, 44, 457, 32510, 25, 256, 1333, 7, 15, 1326, 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 TestStatus(t *testing.T) { fakeRuntime, _, _, _ := createTestRuntimeManager() fakeRuntime.FakeStatus = &runtimeapi.RuntimeStatus{ Conditions: []*runtimeapi.RuntimeCondition{ {Type: runtimeapi.RuntimeReady, Status: false}, {Type: runtimeapi.NetworkReady, Status: true}, }, } irs := newInstrumentedRunti...
explode_data.jsonl/40685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 2522, 1155, 353, 8840, 836, 8, 341, 1166, 726, 15123, 11, 8358, 8358, 716, 1669, 1855, 2271, 15123, 2043, 741, 1166, 726, 15123, 991, 726, 2522, 284, 609, 22255, 2068, 16706, 2522, 515, 197, 197, 35435, 25, 29838, 22255, 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 TestProof(t *testing.T) { // Try an empty proof first rootHash, proofs := ProofsFromByteSlices([][]byte{}) require.Equal(t, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", hex.EncodeToString(rootHash)) require.Empty(t, proofs) total := 100 items := make([][]byte, total) for i := 0; i ...
explode_data.jsonl/27632
{ "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, 31076, 1155, 353, 8840, 836, 8, 1476, 197, 322, 9735, 458, 4287, 11064, 1156, 198, 33698, 6370, 11, 77159, 1669, 1298, 36081, 3830, 7153, 50, 37414, 10556, 1294, 3782, 37790, 17957, 12808, 1155, 11, 330, 68, 18, 65, 15, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCustomBadFields(t *testing.T) { g := gomega.NewGomegaWithT(t) isvc := makeTestInferenceService() isvc.Spec.Default.Predictor.Tensorflow = nil isvc.Spec.Default.Predictor.Custom = &CustomSpec{ v1.Container{ Name: "foo", Image: "custom:0.1", Stdin: true, StdinOnce: true, }, } g...
explode_data.jsonl/1495
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 10268, 17082, 8941, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 19907, 7362, 1669, 1281, 2271, 641, 2202, 1860, 741, 19907, 7362, 36473, 13275, 1069, 8861, 269, 44203, 4965, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthenticate(t *testing.T) { log, db, teardown := tests.NewUnit(t) t.Cleanup(teardown) store := user.NewStore(log, db) t.Log("Given the need to authenticate users") { testID := 0 t.Logf("\tTest %d:\tWhen handling a single User.", testID) { ctx := context.Background() now := time.Date(2018, t...
explode_data.jsonl/37352
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 759 }
[ 2830, 3393, 99087, 1155, 353, 8840, 836, 8, 341, 6725, 11, 2927, 11, 49304, 1669, 7032, 7121, 4562, 1155, 340, 3244, 727, 60639, 71847, 37496, 692, 57279, 1669, 1196, 7121, 6093, 12531, 11, 2927, 692, 3244, 5247, 445, 22043, 279, 1184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteUserDataHeaders(t *testing.T) { buf := &bytes.Buffer{} boundary := "some_boundary" require.NoError(t, writeUserDataHeaders(buf, boundary)) res := strings.ToLower(buf.String()) assert.Contains(t, res, "mime-version: 1.0") assert.Contains(t, res, "content-type: multipart/mixed") assert.Contains(t, re...
explode_data.jsonl/3812
{ "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, 7985, 39485, 10574, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 609, 9651, 22622, 16094, 2233, 72466, 1669, 330, 14689, 54004, 698, 17957, 35699, 1155, 11, 3270, 39485, 10574, 10731, 11, 18732, 1171, 10202, 1669, 9069, 29983, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTicketMatured(t *testing.T) { t.Parallel() params := chaincfg.MainNetParams() maturity := int32(params.TicketMaturity) tests := []struct { txHeight, tipHeight int32 matured bool }{ {0, 0, false}, {0, maturity - 1, false}, {0, maturity, false}, // hdfd off-by-one results in this being...
explode_data.jsonl/68628
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 34058, 44, 1568, 67, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 25856, 1669, 8781, 14072, 23873, 6954, 4870, 741, 2109, 37854, 1669, 526, 18, 17, 8917, 836, 5897, 44, 37854, 340, 78216, 1669, 3056, 1235, 341, 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 TestRunSimpleContainer(t *testing.T) { assert := asrt.New(t) basename := fileutil.RandomFilenameBase() pwd, _ := os.Getwd() pwd, _ = filepath.Abs(pwd) testdata := filepath.Join(pwd, "testdata") assert.DirExists(testdata) // Try the success case; script found, runs, all good. _, out, err := RunSimpleConta...
explode_data.jsonl/41380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 681 }
[ 2830, 3393, 6727, 16374, 4502, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 438, 3342, 7121, 1155, 692, 2233, 27100, 1669, 1034, 1314, 26709, 20759, 3978, 741, 3223, 6377, 11, 716, 1669, 2643, 2234, 6377, 741, 3223, 6377, 11, 716, 284, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestDSV_Serialize_EnsureOrdering(t *testing.T) { return testCase := []LottoFields{} for i := 0; i < 2000; i++ { var b bool if rand.Intn(1000) < 500 { b = true } testCase = append(testCase, LottoFields{ A: randStr(15), B: rand.Intn(2400), C: rand.Float64() * 2400, D: randStr(24), E: ran...
explode_data.jsonl/11884
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 646 }
[ 2830, 3393, 5936, 53, 1098, 9050, 62, 64439, 4431, 287, 1155, 353, 8840, 836, 8, 341, 853, 198, 18185, 4207, 1669, 3056, 43, 35626, 8941, 16094, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 17, 15, 15, 15, 26, 600, 1027, 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 TestAllowMethod(t *testing.T) { tests := []struct { m string ms []string w bool wh string }{ // Accepted methods { m: "GET", ms: []string{"GET", "POST", "PUT"}, w: true, }, { m: "POST", ms: []string{"POST"}, w: true, }, // Made-up methods no good { m: "FAKE", ...
explode_data.jsonl/44960
{ "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, 18605, 3523, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 2109, 220, 914, 198, 197, 47691, 3056, 917, 198, 197, 6692, 220, 1807, 198, 197, 197, 1312, 914, 198, 197, 59403, 197, 197, 322, 63289, 5413, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStatsReporter(t *testing.T) { setup() args := &ReportArgs{ Namespace: "testns", EventType: "dev.knative.event", EventSource: "unit-test", Name: "testsource", ResourceGroup: "testresourcegroup", } r, err := NewStatsReporter() if err != nil { t.Fatalf("Failed to create a new...
explode_data.jsonl/51714
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 16635, 52766, 1155, 353, 8840, 836, 8, 341, 84571, 2822, 31215, 1669, 609, 10361, 4117, 515, 197, 90823, 25, 257, 330, 1944, 4412, 756, 197, 197, 47906, 25, 257, 330, 3583, 5202, 29738, 5773, 756, 197, 56055, 3608, 25, 256...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNonEmptyList(t *testing.T) { storage := map[string]RESTStorage{} simpleStorage := SimpleRESTStorage{ list: []Simple{ { Name: "foo", }, }, } storage["simple"] = &simpleStorage handler := New(storage, "/prefix/version") server := httptest.NewServer(handler) resp, err := http.Get(server.URL ...
explode_data.jsonl/30457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 314 }
[ 2830, 3393, 8121, 3522, 852, 1155, 353, 8840, 836, 8, 341, 197, 16172, 1669, 2415, 14032, 60, 38307, 5793, 16094, 1903, 6456, 5793, 1669, 8993, 38307, 5793, 515, 197, 14440, 25, 3056, 16374, 515, 298, 197, 515, 571, 21297, 25, 330, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOffsetRequest(t *testing.T) { emptyOffsetRequest := new(OffsetRequest) testRequest(t, emptyOffsetRequest, emptyOffsetRequestBytes) singleOffsetRequest := new(OffsetRequest) singleOffsetRequest.AddPartitionOffsetRequestInfo("logs", 2, LatestTime, 1) testRequest(t, singleOffsetRequest, singleOffsetRequestB...
explode_data.jsonl/49801
{ "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, 6446, 1900, 1155, 353, 8840, 836, 8, 341, 197, 3194, 6446, 1900, 1669, 501, 7, 6446, 1900, 340, 18185, 1900, 1155, 11, 4287, 6446, 1900, 11, 4287, 6446, 1900, 7078, 692, 1903, 2173, 6446, 1900, 1669, 501, 7, 6446, 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...
1
func Test_JsonFieldWithDefault_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip from JsonFieldWithDefault to JsonFieldWithDefault via Assi...
explode_data.jsonl/39628
{ "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, 62, 5014, 1877, 2354, 3675, 62, 4498, 7903, 61941, 2568, 795, 21884, 1690, 26040, 39838, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 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...
1
func TestDuplicateRowWithLargeOffsetToMiddleOfData(t *testing.T) { const sheet = "Sheet1" outFile := filepath.Join("test", "TestDuplicateRow.%s.xlsx") cells := map[string]string{ "A1": "A1 Value", "A2": "A2 Value", "A3": "A3 Value", "B1": "B1 Value", "B2": "B2 Value", "B3": "B3 Value", } newFileWithD...
explode_data.jsonl/30498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 514 }
[ 2830, 3393, 53979, 3102, 2354, 34253, 6446, 1249, 43935, 2124, 1043, 1155, 353, 8840, 836, 8, 341, 4777, 10834, 284, 330, 10541, 16, 698, 13967, 1703, 1669, 26054, 22363, 445, 1944, 497, 330, 2271, 53979, 3102, 22445, 82, 46838, 5130, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstanceMetadata(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() t.Run("", func(t *testing.T) { cloud := GetTestCloud(ctrl) expectedVM := buildDefaultTestVirtualMachine("as", []string{"/subscriptions/subscription/resourceGroups/rg/providers/Microsoft.Network/networkInterfaces/k8s-ag...
explode_data.jsonl/60301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 999 }
[ 2830, 3393, 2523, 14610, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 3244, 16708, 19814, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 12361, 1669, 2126, 2271, 16055,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetRemove(t *testing.T) { index := Bitmap{} for i := uint32(100); i < 200; i++ { index.Set(i) assert.True(t, index.Contains(i)) } for i := uint32(150); i < 180; i++ { index.Remove(i) assert.False(t, index.Contains(i)) } }
explode_data.jsonl/39879
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 1649, 13021, 1155, 353, 8840, 836, 8, 341, 26327, 1669, 17533, 16094, 2023, 600, 1669, 2622, 18, 17, 7, 16, 15, 15, 1215, 600, 366, 220, 17, 15, 15, 26, 600, 1027, 341, 197, 26327, 4202, 1956, 340, 197, 6948, 32443, 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 TestDaoUpdateMorals(t *testing.T) { var ( c = context.TODO() moral = int32(0) ids = []int64{0} ) convey.Convey("UpdateMorals", t, func(ctx convey.C) { affect, err := d.UpdateMorals(c, moral, ids) ctx.Convey("Then err should be nil.affect should not be nil.", func(ctx convey.C) { ctx.So(err, c...
explode_data.jsonl/51300
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 12197, 4289, 41678, 1127, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 257, 284, 2266, 90988, 741, 197, 2109, 9819, 284, 526, 18, 17, 7, 15, 340, 197, 197, 3365, 256, 284, 3056, 396, 21, 19, 90, 15, 532, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHeaderFlagsString(t *testing.T) { tests := []struct { f HeaderFlags s string }{ { f: 0, s: "0", }, { f: HeaderFlagsRequest, s: "request", }, { f: HeaderFlagsMulti, s: "multi", }, { f: HeaderFlagsEcho, s: "echo", }, { f: HeaderFlagsDumpInterrupted, s: "dumpi...
explode_data.jsonl/25581
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 649 }
[ 2830, 3393, 4047, 9195, 703, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 1166, 12104, 9195, 198, 197, 1903, 914, 198, 197, 59403, 197, 197, 515, 298, 1166, 25, 220, 15, 345, 298, 1903, 25, 330, 15, 756, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEngine(t *testing.T) { Convey("Engine", t, func() { Convey("try create and check new engine", func() { var ( v = NewValidator() b = NewBinder(v) z = zap.L() l = NewLogger(z) c = newTestViper() _ = c err error dic = dig.New() ) Convey("create engine with empty para...
explode_data.jsonl/20007
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2479 }
[ 2830, 3393, 4571, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 4571, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 1539, 1855, 323, 1779, 501, 4712, 497, 2915, 368, 341, 298, 2405, 2399, 571, 5195, 284, 1532, 14256, 741, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGaiaCLISubmitProposal(t *testing.T) { chainID, servAddr, port := initializeFixtures(t) flags := fmt.Sprintf("--home=%s --node=%v --chain-id=%v", gaiacliHome, servAddr, chainID) // start gaiad server proc := tests.GoExecuteTWithStdout(t, fmt.Sprintf("gaiad start --home=%s --rpc.laddr=%v", gaiadHome, servAd...
explode_data.jsonl/20995
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1622 }
[ 2830, 3393, 80788, 685, 3140, 1637, 392, 1763, 98637, 1155, 353, 8840, 836, 8, 341, 197, 8819, 915, 11, 4853, 13986, 11, 2635, 1669, 9468, 25958, 18513, 1155, 340, 59516, 1669, 8879, 17305, 21549, 5117, 7846, 82, 1177, 3509, 7846, 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 TestClientInvalidURI(t *testing.T) { t.Parallel() ln := fasthttputil.NewInmemoryListener() requests := int64(0) s := &Server{ Handler: func(ctx *RequestCtx) { atomic.AddInt64(&requests, 1) }, } go s.Serve(ln) //nolint:errcheck c := &Client{ Dial: func(addr string) (net.Conn, error) { return ln....
explode_data.jsonl/79332
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 2959, 7928, 10301, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 2261, 1669, 4937, 96336, 628, 321, 7121, 641, 17269, 2743, 741, 23555, 82, 1669, 526, 21, 19, 7, 15, 340, 1903, 1669, 609, 5475, 515, 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...
1
func TestGetSumOfSmallestAndLargestInContiguousRange(t *testing.T) { t.Run("example", func(t *testing.T) { got := GetSumOfSmallestAndLargestInContiguousRange("example.txt", 5) want := 62 if got != want { t.Errorf("GetSumOfSmallestAndLargestInContiguousRange got %d want %d", got, want) } }) t.Run("input",...
explode_data.jsonl/19325
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 1949, 9190, 2124, 10673, 19236, 3036, 43, 32381, 641, 818, 27029, 6046, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 8687, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3174, 354, 1669, 2126, 9190, 2124, 10673, 19236, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestActivityService_GetRepositorySubscription_false(t *testing.T) { client, mux, _, teardown := setup() defer teardown() mux.HandleFunc("/repos/o/r/subscription", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") w.WriteHeader(http.StatusNotFound) }) ctx := context.Background() sub...
explode_data.jsonl/50051
{ "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, 4052, 1860, 13614, 4624, 33402, 36015, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 68354, 20271, 7382, 14, 34404, 497, 2915, 3622, 1758, 37508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClusterQueueSubs(t *testing.T) { srvA, srvB, optsA, optsB := runServers(t) defer srvA.Shutdown() defer srvB.Shutdown() clientA := createClientConn(t, optsA.Host, optsA.Port) defer clientA.Close() clientB := createClientConn(t, optsB.Host, optsB.Port) defer clientB.Close() sendA, expectA := setupConn...
explode_data.jsonl/5072
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1467 }
[ 2830, 3393, 28678, 7554, 3136, 82, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 32, 11, 43578, 33, 11, 12185, 32, 11, 12185, 33, 1669, 1598, 78139, 1155, 340, 16867, 43578, 32, 10849, 18452, 741, 16867, 43578, 33, 10849, 18452, 2822, 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...
9
func TestGenerateClientTransport(t *testing.T) { testcases := []struct { proxyURL, err string expectNil bool }{ {proxyURL: "", expectNil: true}, {proxyURL: "http//localhost:3000", expectNil: true, err: "invalid proxy URI"}, {proxyURL: "http://127.0.0.1:8080", expectNil: false}, } for _, testcase := r...
explode_data.jsonl/78633
{ "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, 31115, 2959, 27560, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 197, 22803, 3144, 11, 1848, 914, 198, 197, 24952, 19064, 257, 1807, 198, 197, 59403, 197, 197, 90, 22803, 3144, 25, 7342, 1720, 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 TestCBOREncodeState(t *testing.T) { tf.UnitTest(t) state := NewState(address.TestAddress, []byte{}, big.NewInt(1), th.RequireRandomPeerID(t), types.NewZeroAttoFIL(), types.OneKiBSectorSize) state.SectorCommitments["1"] = types.Commitments{ CommD: types.CommD{}, CommR: types.CommR{}, CommRStar: t...
explode_data.jsonl/55764
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 34, 4677, 787, 1016, 534, 1397, 1155, 353, 8840, 836, 8, 341, 3244, 69, 25159, 2271, 1155, 692, 24291, 1669, 1532, 1397, 15434, 8787, 4286, 11, 3056, 3782, 22655, 2409, 7121, 1072, 7, 16, 701, 270, 81288, 13999, 30888, 915...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTimes0(t *testing.T) { rep, ctrl := createFixtures(t) defer ctrl.Finish() s := new(Subject) ctrl.RecordCall(s, "FooMethod", "arg").Times(0) rep.assertFatal(func() { ctrl.Call(s, "FooMethod", "arg") }) }
explode_data.jsonl/17294
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 18889, 15, 1155, 353, 8840, 836, 8, 341, 73731, 11, 23743, 1669, 1855, 25958, 18513, 1155, 340, 16867, 23743, 991, 18176, 2822, 1903, 1669, 501, 7, 13019, 340, 84381, 49959, 7220, 1141, 11, 330, 40923, 3523, 497, 330, 858, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTerragruntGenerateBlockOverwriteTerragruntFail(t *testing.T) { t.Parallel() generateTestCase := filepath.Join(TEST_FIXTURE_CODEGEN_PATH, "generate-block", "overwrite_terragrunt_error") cleanupTerraformFolder(t, generateTestCase) cleanupTerragruntFolder(t, generateTestCase) stdout := bytes.Buffer{} stde...
explode_data.jsonl/10161
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 51402, 68305, 3850, 31115, 4713, 1918, 4934, 51402, 68305, 3850, 19524, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3174, 13220, 16458, 1669, 26054, 22363, 50320, 42635, 41486, 10020, 11085, 7944, 11, 330, 19366, 9425...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWALFlushedOnDBClose(t *testing.T) { db, delete := openTestDB(t, nil) defer delete() dirDb := db.Dir() lbls := labels.Labels{labels.Label{Name: "labelname", Value: "labelvalue"}} app := db.Appender() _, err := app.Add(lbls, 0, 1) testutil.Ok(t, err) testutil.Ok(t, app.Commit()) testutil.Ok(t, db.Cl...
explode_data.jsonl/64373
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 54, 969, 46874, 291, 1925, 3506, 7925, 1155, 353, 8840, 836, 8, 341, 20939, 11, 3698, 1669, 1787, 2271, 3506, 1155, 11, 2092, 340, 16867, 3698, 2822, 48532, 7994, 1669, 2927, 83757, 2822, 86588, 82, 1669, 9201, 4679, 82, 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 TestRegisterDomain(t *testing.T) { domain := "foo.com" years := 3 code := 300 charge := "6.42" extraParams := make(map[string]string) ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { v := r.URL.Query() i, _ := strconv.Atoi(v.Get("years")) if i != years { t.Err...
explode_data.jsonl/9931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 921 }
[ 2830, 3393, 8690, 13636, 1155, 353, 8840, 836, 8, 341, 2698, 3121, 1669, 330, 7975, 905, 698, 197, 41720, 1669, 220, 18, 198, 43343, 1669, 220, 18, 15, 15, 198, 7450, 709, 1669, 330, 21, 13, 19, 17, 698, 8122, 2172, 4870, 1669, 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, 1, 1, 1, 1, 1...
5
func TestStackReferencePython(t *testing.T) { if owner := os.Getenv("PULUMI_TEST_OWNER"); owner == "" { t.Skipf("Skipping: PULUMI_TEST_OWNER is not set") } opts := &integration.ProgramTestOptions{ Dir: filepath.Join("stack_reference", "python"), Dependencies: []string{ filepath.Join("..", "..", "sdk", "pyt...
explode_data.jsonl/76367
{ "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, 4336, 8856, 30280, 1155, 353, 8840, 836, 8, 341, 743, 6372, 1669, 2643, 64883, 445, 47, 1094, 2794, 40, 11641, 74323, 5038, 6372, 621, 1591, 341, 197, 3244, 57776, 69, 445, 85945, 25, 393, 1094, 2794, 40, 11641, 74323, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodePool_MaxSize(t *testing.T) { maxSize := 5 np := NodePool{maxSize: maxSize} if np.MaxSize() != maxSize { t.Errorf("got %d expected %d", np.MaxSize(), maxSize) } }
explode_data.jsonl/71596
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 1955, 10551, 58843, 1695, 1155, 353, 8840, 836, 8, 341, 22543, 1695, 1669, 220, 20, 198, 197, 6199, 1669, 6018, 10551, 90, 2810, 1695, 25, 61935, 532, 743, 2595, 14535, 1695, 368, 961, 61935, 341, 197, 3244, 13080, 445, 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 ]
2
func TestProcessorsForMetricSet_ListModules(t *testing.T) { source := NewLightModulesSource("testdata/lightmodules") modules, err := source.Modules() require.NoError(t, err) // Check that regular file in directory is not listed as module require.FileExists(t, "testdata/lightmodules/regular_file") assert.NotConta...
explode_data.jsonl/9722
{ "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, 7423, 1087, 2461, 54310, 1649, 27104, 28201, 1155, 353, 8840, 836, 8, 341, 47418, 1669, 1532, 13911, 28201, 3608, 445, 92425, 76844, 11525, 1138, 42228, 2425, 11, 1848, 1669, 2530, 71692, 741, 17957, 35699, 1155, 11, 1848, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSubscribeMany(t *testing.T) { e1 := blocks.NewBlock([]byte("1")) e2 := blocks.NewBlock([]byte("2")) n := New() defer n.Shutdown() ch := n.Subscribe(context.Background(), e1.Cid(), e2.Cid()) n.Publish(e1) r1, ok := <-ch if !ok { t.Fatal("didn't receive first expected block") } assertBlocksEqual(t,...
explode_data.jsonl/8956
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 28573, 8441, 1155, 353, 8840, 836, 8, 341, 7727, 16, 1669, 10010, 7121, 4713, 10556, 3782, 445, 16, 5455, 7727, 17, 1669, 10010, 7121, 4713, 10556, 3782, 445, 17, 28075, 9038, 1669, 1532, 741, 16867, 308, 10849, 18452, 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...
3
func TestUnmarshalSecretKey(t *testing.T) { var sk SecretKey if err := sk.Unmarshal(params); err != nil { t.Errorf("unexpected unmarshal error: %v", err) return } if err := sk.DeriveKey(&password); err != nil { t.Errorf("unexpected DeriveKey error: %v", err) return } if !bytes.Equal(sk.Key[:], key.Key[:...
explode_data.jsonl/17465
{ "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, 1806, 27121, 19773, 1592, 1155, 353, 8840, 836, 8, 341, 2405, 1901, 8599, 1592, 198, 743, 1848, 1669, 1901, 38097, 8917, 1215, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 53859, 650, 27121, 1465, 25, 1018, 85, 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...
4
func TestAPI_ParseQueryMeta(t *testing.T) { t.Parallel() resp := &http.Response{ Header: make(map[string][]string), } resp.Header.Set("X-Consul-Index", "12345") resp.Header.Set("X-Consul-LastContact", "80") resp.Header.Set("X-Consul-KnownLeader", "true") resp.Header.Set("X-Consul-Translate-Addresses", "true") ...
explode_data.jsonl/44943
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 302 }
[ 2830, 3393, 7082, 77337, 2859, 12175, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 34653, 1669, 609, 1254, 12574, 515, 197, 197, 4047, 25, 1281, 9147, 14032, 45725, 917, 1326, 197, 532, 34653, 15753, 4202, 445, 55, 12, 15220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageNoCryptoDecode(t *testing.T) { nocpt := &Nocrypto{} decode := nocpt.Decode(noCryptodataTest) if len(noCryptodataTest) != len(decode) { t.Error("NoCrypto decode function: data len is not equal") } for i := 0; i < len(decode); i++ { if decode[i] != noCryptodataTest[i] { t.Error("NoCrypto de...
explode_data.jsonl/77975
{ "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, 2052, 2753, 58288, 32564, 1155, 353, 8840, 836, 8, 341, 9038, 509, 417, 1669, 609, 45, 509, 9444, 31483, 197, 18196, 1669, 75497, 417, 56372, 39205, 53367, 56169, 2271, 692, 743, 2422, 39205, 53367, 56169, 2271, 8, 961, 2422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fetchAuthorizationData(t *testing.T) { type args struct { a core.Authenticator } tests := []struct { name string args args want string wantErr bool }{ { name: "Fetch Sample Bearer Token", args: args{ a: &core.BearerTokenAuthenticator{ BearerToken: "sample", }, },...
explode_data.jsonl/37958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 410 }
[ 2830, 3393, 11803, 18124, 1043, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 11323, 6200, 25233, 61393, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 50780, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBeginBlocker(t *testing.T) { ctx, ck, sk, _, keeper := createTestInput(t, DefaultParams()) power := int64(100) amt := sdk.TokensFromConsensusPower(power) addr, pk := addrs[2], pks[2] // bond the validator res, err := staking.NewHandler(sk)(ctx, NewTestMsgCreateValidator(addr, pk, amt)) require.NoError(...
explode_data.jsonl/35731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 932 }
[ 2830, 3393, 11135, 4713, 261, 1155, 353, 8840, 836, 8, 341, 20985, 11, 38613, 11, 1901, 11, 8358, 53416, 1669, 1855, 2271, 2505, 1155, 11, 7899, 4870, 2398, 3223, 1202, 1669, 526, 21, 19, 7, 16, 15, 15, 340, 197, 35225, 1669, 45402,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_GetMovie(t *testing.T) { if testMovie == nil { t.Skip("Skipping due to previous failure") } movie, err := conn.GetMovie(movieId) if err != nil { t.Fatal(err) } if movie == nil { t.Fatal("GetMovie() returned nil movie and nil error") } compareMovies(testMovie, movie, t) }
explode_data.jsonl/22004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 13614, 19668, 1155, 353, 8840, 836, 8, 341, 743, 1273, 19668, 621, 2092, 341, 197, 3244, 57776, 445, 85945, 4152, 311, 3681, 7901, 1138, 197, 630, 2109, 6327, 11, 1848, 1669, 4534, 2234, 19668, 42604, 764, 340, 743, 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...
4
func TestIsSignatureContractBadExcessiveInstr(t *testing.T) { prog := make([]byte, 36) prog[0] = byte(PUSHBYTES33) prog[34] = byte(CHECKSIG) prog[35] = byte(RET) assert.Equal(t, false, IsSignatureContract(prog)) }
explode_data.jsonl/40586
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 3872, 25088, 14067, 17082, 840, 86628, 74375, 1155, 353, 8840, 836, 8, 341, 197, 32992, 1669, 1281, 10556, 3782, 11, 220, 18, 21, 340, 197, 32992, 58, 15, 60, 284, 4922, 5304, 19518, 97849, 18, 18, 340, 197, 32992, 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...
1
func TestIndexGetCompileError(t *testing.T) { f := newFixture(t) // "foo" is not bound get, err := http.NewRequest(http.MethodGet, `/?q=foo`, strings.NewReader("")) if err != nil { panic(err) } f.server.Handler.ServeHTTP(f.recorder, get) if f.recorder.Code != 200 { t.Errorf("Expected success but got: %v", f....
explode_data.jsonl/79006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 1552, 1949, 46126, 1454, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 197, 322, 330, 7975, 1, 374, 537, 6822, 198, 10366, 11, 1848, 1669, 1758, 75274, 19886, 20798, 1949, 11, 1565, 17763, 80, 28, 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...
4
func TestProperties_ValidateSinglePlacementGroup(t *testing.T) { tests := []struct { name string masterProfile *MasterProfile agentPoolProfiles []*AgentPoolProfile expectedMsg string }{ { name: "Master profile VMAS with SinglePlacementGroup", masterProfile: &MasterProfile{ ...
explode_data.jsonl/17883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1135 }
[ 2830, 3393, 7903, 62, 17926, 10888, 28237, 2808, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 1060, 914, 198, 197, 2109, 2300, 8526, 257, 353, 18041, 8526, 198, 197, 197, 8092, 10551, 62719, 29838, 16810, 105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFailureLatestNonPatchFinalToMinor(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) result, err := testRepo.sut.LatestNonPatchFinalToMinor() require.NotNil(t, err) require.Equal(t, result, git.DiscoverResult{}) }
explode_data.jsonl/14009
{ "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, 17507, 31992, 8121, 43622, 19357, 1249, 57024, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 9559, 11, 1848, 1669, 1273, 25243, 514, 332, 1214, 13893, 8121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSeriesCollection(t *testing.T) { // some helper functions. short names because local scope and frequently used. var ( equal = reflect.DeepEqual b = func(s string) []byte { return []byte(s) } bs = func(s ...string) [][]byte { out := make([][]byte, len(s)) for i := range s { out[i] = b(s...
explode_data.jsonl/64634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1724 }
[ 2830, 3393, 25544, 6482, 1155, 353, 8840, 836, 8, 341, 197, 322, 1045, 13137, 5746, 13, 2805, 5036, 1576, 2205, 6891, 323, 13814, 1483, 624, 2405, 2399, 197, 7727, 1751, 284, 8708, 94750, 198, 197, 2233, 257, 284, 2915, 1141, 914, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEscapedURLParams(t *testing.T) { m := NewRouter() m.Get("/api/{identifier}/{region}/{size}/{rotation}/*", HandlerFunc(func(ctx context.Context, rc *fasthttp.RequestCtx) { rc.Response.SetStatusCode(200) rctx := RouteContext(rc) if rctx == nil { t.Error("no context") return } identifier := URLP...
explode_data.jsonl/47969
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 454 }
[ 2830, 3393, 36121, 10185, 3144, 4870, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 9523, 741, 2109, 2234, 4283, 2068, 9388, 15909, 22472, 3943, 22472, 2141, 22472, 13538, 92, 1057, 497, 19954, 9626, 18552, 7502, 2266, 9328, 11, 10192, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_Error(t *testing.T) { gtest.C(t, func(t *gtest.T) { w := bytes.NewBuffer(nil) l := NewWithWriter(w) l.Error(ctx, 1, 2, 3) l.Errorf(ctx, "%d %d %d", 1, 2, 3) t.Assert(gstr.Count(w.String(), defaultLevelPrefixes[LEVEL_ERRO]), 2) t.Assert(gstr.Count(w.String(), "1 2 3"), 2) }) }
explode_data.jsonl/2603
{ "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, 28651, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 6692, 1669, 5820, 7121, 4095, 27907, 340, 197, 8810, 1669, 1532, 2354, 6492, 3622, 340, 197, 8810, 6141, 7502, 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 TestHttpParser_Response_HTTP_10_without_content_length(t *testing.T) { http := HttpModForTests() data := []byte("HTTP/1.0 200 OK\r\n" + "Date: Tue, 14 Aug 2012 22:31:45 GMT\r\n" + "Expires: -1\r\n" + "Cache-Control: private, max-age=0\r\n" + "Content-Type: text/html; charset=UTF-8\r\n" + "\r\n" + "t...
explode_data.jsonl/6837
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 2905, 6570, 65873, 34954, 62, 16, 15, 39904, 7495, 5118, 1155, 353, 8840, 836, 8, 341, 28080, 1669, 4823, 4459, 2461, 18200, 2822, 8924, 1669, 3056, 3782, 445, 9230, 14, 16, 13, 15, 220, 17, 15, 15, 10402, 12016, 1699, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_postApplicationMetadataHandler_AsProvider(t *testing.T) { api, db, tsURL := newTestServer(t) u, _ := assets.InsertAdminUser(t, db) localConsumer, err := authentication.LoadConsumerByTypeAndUserID(context.TODO(), api.mustDB(), sdk.ConsumerLocal, u.ID, authentication.LoadConsumerOptions.WithAuthentifiedUser...
explode_data.jsonl/53761
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 700 }
[ 2830, 3393, 6333, 4988, 14610, 3050, 62741, 5179, 1155, 353, 8840, 836, 8, 341, 54299, 11, 2927, 11, 10591, 3144, 1669, 501, 2271, 5475, 1155, 692, 10676, 11, 716, 1669, 11770, 23142, 7210, 1474, 1155, 11, 2927, 340, 8854, 29968, 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...
2
func TestGRPCClientSettingsError(t *testing.T) { tt, err := obsreporttest.SetupTelemetry() require.NoError(t, err) t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) }) tests := []struct { settings GRPCClientSettings err string host component.Host }{ { err: "^failed to lo...
explode_data.jsonl/80328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1096 }
[ 2830, 3393, 8626, 4872, 2959, 6086, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 83, 11, 1848, 1669, 7448, 11736, 1944, 39820, 6639, 35958, 741, 17957, 35699, 1155, 11, 1848, 340, 3244, 727, 60639, 18552, 368, 314, 1373, 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, 1, 1, 1, 1...
1
func TestGetInt32VarDefault(t *testing.T) { os.Clearenv() v, err := GetInt32Var(variableName, 12) if err != nil { t.Error(err) } if v != 12 { t.Error("Variable must contain 12") } }
explode_data.jsonl/18928
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 85097, 18, 17, 3962, 3675, 1155, 353, 8840, 836, 8, 341, 25078, 727, 273, 9151, 85, 2822, 5195, 11, 1848, 1669, 2126, 1072, 18, 17, 3962, 45029, 675, 11, 220, 16, 17, 692, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExists(t *testing.T) { s, err := Run() ok(t, err) defer s.Close() c, err := redis.Dial("tcp", s.Addr()) ok(t, err) // String key { s.Set("foo", "bar!") v, err := redis.Int(c.Do("EXISTS", "foo")) ok(t, err) equals(t, 1, v) } // Hash key { s.HSet("aap", "noot", "mies") v, err := redis.Int...
explode_data.jsonl/23148
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 408 }
[ 2830, 3393, 15575, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 6452, 741, 59268, 1155, 11, 1848, 340, 16867, 274, 10421, 741, 1444, 11, 1848, 1669, 20870, 98462, 445, 27161, 497, 274, 93626, 2398, 59268, 1155, 11, 1848, 692, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBaseIdentity_HeroFormGettersSetters(t *testing.T) { i := getTestBaseIdentity() if i.IsHeroForm() { t.Errorf("IsHeroForm should have returned false, it returned true") } i.ChangeForm() if !i.IsHeroForm() { t.Errorf("Change Form should have set set isHero to true, but it was false") } i.ChangeForm()...
explode_data.jsonl/55784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 3978, 18558, 2039, 2328, 1838, 1949, 5045, 1649, 5045, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 633, 2271, 3978, 18558, 741, 743, 600, 4506, 30228, 1838, 368, 341, 197, 3244, 13080, 445, 3872, 30228, 1838, 1265, 614, 5927, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMaxDistanceString(t *testing.T) { var max int160 max.SetMax() require.EqualValues(t, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", max.Bytes()) }
explode_data.jsonl/35949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 5974, 14778, 703, 1155, 353, 8840, 836, 8, 341, 2405, 1932, 526, 16, 21, 15, 198, 22543, 4202, 5974, 741, 17957, 12808, 6227, 1155, 11, 2917, 9020, 86977, 86977, 86977, 86977, 86977, 86977, 86977, 86977, 86977, 86977, 86977, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateServiceAccount(t *testing.T) { cluster1Endppoints := []*model.IstioEndpoint{ {Address: "10.172.0.1", ServiceAccount: "sa1"}, {Address: "10.172.0.2", ServiceAccount: "sa-vm1"}, } testCases := []struct { name string shardKey model.ShardKey endpoints []*model.IstioEndpoint expect bo...
explode_data.jsonl/11473
{ "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, 4289, 1860, 7365, 1155, 353, 8840, 836, 8, 341, 197, 18855, 16, 3727, 602, 14399, 1669, 29838, 2528, 2447, 267, 815, 27380, 515, 197, 197, 90, 4286, 25, 330, 16, 15, 13, 16, 22, 17, 13, 15, 13, 16, 497, 5362, 7365, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestOOMHard(t *testing.T) { distro, err := qemu.Unpack() if err != nil { t.Fatal(err) } defer distro.Delete() arch, err := distro.TargetCPU() if err != nil { t.Fatal(err) } i := distro.Create(qemu.Params{ Arch: arch, ZBI: zbiPath(t), AppendCmdline: cmdline, }) err = i.Start...
explode_data.jsonl/7790
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 57751, 26907, 1155, 353, 8840, 836, 8, 341, 2698, 15561, 11, 1848, 1669, 85108, 10616, 4748, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 1582, 299, 18872, 741, 197, 1113, 11, 1848, 1669, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestReadCSV(t *testing.T) { expected := [][]string{ {"id", "comment"}, {"1", "comment"}, {"2", "comment"}, {"3", "comment"}, {"4", "comment"}, {"5", "comment"}, } cases := []struct { filePath string expected [][]string }{ { filePath: "../samples/file.csv", expected: expected, }, { ...
explode_data.jsonl/14354
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 4418, 44209, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 52931, 917, 515, 197, 197, 4913, 307, 497, 330, 6182, 7115, 197, 197, 4913, 16, 497, 330, 6182, 7115, 197, 197, 4913, 17, 497, 330, 6182, 7115, 197, 197, 4913, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRegistry_Repository(t *testing.T) { reg, err := NewRegistry("localhost:5000") if err != nil { t.Fatalf("NewRegistry() error = %v", err) } reg.PlainHTTP = true reg.RepositoryListPageSize = 50 reg.TagListPageSize = 100 reg.ReferrerListPageSize = 10 reg.MaxMetadataBytes = 8 * 1024 * 1024 ctx := contex...
explode_data.jsonl/82489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 15603, 62, 4624, 1155, 353, 8840, 836, 8, 341, 37013, 11, 1848, 1669, 1532, 15603, 445, 8301, 25, 20, 15, 15, 15, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 3564, 15603, 368, 1465, 284, 1018, 85, 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...
4
func TestTeardownCallsShaper(t *testing.T) { fexec := &fakeexec.FakeExec{ CommandScript: []fakeexec.FakeCommandAction{}, LookPathFunc: func(file string) (string, error) { return fmt.Sprintf("/fake-bin/%s", file), nil }, } fhost := nettest.NewFakeHost(nil) fshaper := &bandwidth.FakeShaper{} mockcni := &moc...
explode_data.jsonl/4477
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 594 }
[ 2830, 3393, 6639, 37496, 55292, 2016, 3191, 1155, 353, 8840, 836, 8, 341, 1166, 11748, 1669, 609, 30570, 11748, 991, 726, 10216, 515, 197, 97493, 5910, 25, 3056, 30570, 11748, 991, 726, 4062, 2512, 38837, 197, 197, 10380, 1820, 9626, 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 TestAddDilateDistributiveInt64(t *testing.T) { f := func(x, y *Int64) bool { // t.Logf("x = %v, y = %v", x, y) var a int64 = 2 l, r := new(Int64), new(Int64) l.Dilate(l.Add(x, y), a) r.Add(r.Dilate(x, a), new(Int64).Dilate(y, a)) return l.Equals(r) } if err := quick.Check(f, nil); err != nil { t.E...
explode_data.jsonl/29675
{ "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, 2212, 35, 75357, 35, 4789, 6704, 1072, 21, 19, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 2075, 11, 379, 353, 1072, 21, 19, 8, 1807, 341, 197, 197, 322, 259, 98954, 445, 87, 284, 1018, 85, 11, 379, 284, 1018, 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 TestDesECB(t *testing.T) { gtest.C(t, func(t *gtest.T) { key := []byte("11111111") text := []byte("12345678") padding := gdes.NOPADDING result := "858b176da8b12503" // encrypt test cipherText, err := gdes.EncryptECB(text, key, padding) t.AssertEQ(err, nil) t.AssertEQ(hex.EncodeToString(cipherText)...
explode_data.jsonl/61844
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 799 }
[ 2830, 3393, 4896, 7498, 33, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 23634, 1669, 3056, 3782, 445, 16, 16, 16, 16, 16, 16, 16, 16, 1138, 197, 15425, 1669, 3056, 3782, 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 TestShouldPost(t *testing.T) { t.Run("Success", func(t *testing.T) { p, _ := time.Parse(layout, "2021-07-18 12:55:50 +0200 SAST") tweet := &domain.Tweet{ PostTime: p, } assert.Equal(t, true, ShouldPost(*tweet)) }) }
explode_data.jsonl/55999
{ "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, 14996, 4133, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 7188, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3223, 11, 716, 1669, 882, 8937, 19930, 11, 330, 17, 15, 17, 16, 12, 15, 22, 12, 16, 23, 220, 16, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_core_NodeSpec_to_v1_NodeSpec(t *testing.T) { // core to v1 testInputs := []core.NodeSpec{ { PodCIDRs: []string{"10.0.0.0/24", "10.0.1.0/24"}, }, { PodCIDRs: nil, }, { PodCIDRs: []string{"10.0.0.0/24"}, }, { PodCIDRs: []string{"ace:cab:deca::/8"}, }, { PodCIDRs: []string{"10....
explode_data.jsonl/27253
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 644 }
[ 2830, 3393, 15467, 41340, 8327, 2346, 2273, 16, 41340, 8327, 1155, 353, 8840, 836, 8, 341, 197, 322, 6200, 311, 348, 16, 198, 18185, 31946, 1669, 3056, 2153, 21714, 8327, 515, 197, 197, 515, 298, 10025, 347, 54146, 42327, 25, 3056, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUtxoEntryHeaderCodeErrors(t *testing.T) { t.Parallel() tests := []struct { name string entry *txo.UtxoEntry code uint64 errType error }{ { name: "Force assertion due to spent output", entry: &txo.UtxoEntry{}, errType: common.AssertError(""), }, } tests[0].entry.Spend() ...
explode_data.jsonl/37667
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 52, 3998, 78, 5874, 97258, 13877, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 48344, 256, 353, 3998, 78, 5255, 3998, 78, 5874, 198, 197, 43343, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPortForward(t *testing.T) { const ( podName = "podFoo" podNamespace = "nsFoo" podUID types.UID = "12345678" port int32 = 5000 ) var ( stream = &fakeReadWriteCloser{} ) testcases := []struct { description string podName string expectError bool...
explode_data.jsonl/68349
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1150 }
[ 2830, 3393, 7084, 25925, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 3223, 347, 675, 394, 284, 330, 39073, 40923, 698, 197, 3223, 347, 22699, 1843, 284, 330, 4412, 40923, 698, 197, 3223, 347, 6463, 981, 4494, 5255, 915, 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...
4
func TestPlistData(t *testing.T) { t.Log("development profile specifies development export method") { profile, err := plistutil.NewPlistDataFromContent(developmentProfileContent) require.NoError(t, err) require.Equal(t, "4b617a5f-e31e-4edc-9460-718a5abacd05", PlistData(profile).GetUUID()) require.Equal(t, "Bi...
explode_data.jsonl/52178
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1867 }
[ 2830, 3393, 47, 1607, 1043, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 445, 29571, 5526, 29102, 4401, 7485, 1714, 1138, 197, 515, 197, 197, 5365, 11, 1848, 1669, 68635, 1314, 7121, 47, 1607, 1043, 3830, 2762, 12797, 75831, 8526, 2762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldReturnBadRequestWhenTypeIsMissing(t *testing.T) { // mock AccountsFetcher mockAccountsFetcher := &mockAccountsFetcher{} // mock PBS Analytics Module mockAnalyticsModule := &eventsMockAnalyticsModule{ Fail: false, } // mock config cfg := &config.Configuration{ AccountDefaults: config.Account...
explode_data.jsonl/132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 299 }
[ 2830, 3393, 14996, 5598, 46015, 4498, 929, 3872, 25080, 1155, 353, 8840, 836, 8, 1476, 197, 322, 7860, 40655, 97492, 198, 77333, 41369, 97492, 1669, 609, 16712, 41369, 97492, 31483, 197, 322, 7860, 59045, 32427, 13711, 198, 77333, 60539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSettingsAreValid(t *testing.T) { request := ` { "deny_palindrome_key": true } ` rawRequest := []byte(request) settings, err := NewSettingsFromValidateSettingsPayload(rawRequest) if err != nil { t.Errorf("Unexpected error %+v", err) } if !settings.Valid() { t.Errorf("Settings are reported as no...
explode_data.jsonl/75142
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 6086, 11526, 4088, 1155, 353, 8840, 836, 8, 341, 23555, 1669, 22074, 197, 515, 197, 197, 1, 89963, 73310, 36058, 3097, 788, 830, 198, 197, 532, 197, 3989, 76559, 1900, 1669, 3056, 3782, 4875, 692, 62930, 11, 1848, 1669, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSingleReplacement(t *testing.T) { input := "This is [name] text" replacements := map[string]string{ "name": "test", } replacer := defaultReplacer{} assert.Equal(t, "This is test text", replacer.replace(replacements, input), "[name] should be replaced by test") }
explode_data.jsonl/76420
{ "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, 10888, 68569, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 330, 1986, 374, 508, 606, 60, 1467, 698, 17200, 63535, 1669, 2415, 14032, 30953, 515, 197, 197, 31486, 788, 330, 1944, 756, 197, 532, 17200, 90212, 1669, 1638, 693, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKubeSystemNamespaceInHA(t *testing.T) { testCases := []struct { testDescription string k8sConfigs []string expectedOutput string }{ { "passes when webhook policy is Ignore is not enabled", getWebhookAndKubeSystemNamespace("", "Ignore"), "", }, { "passes when webhook policy is Fa...
explode_data.jsonl/19147
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 747 }
[ 2830, 3393, 42, 3760, 2320, 22699, 641, 17020, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 18185, 5009, 914, 198, 197, 16463, 23, 82, 84905, 414, 3056, 917, 198, 197, 42400, 5097, 220, 914, 198, 197, 59403,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestExpiredJWTToken(t *testing.T) { maker, err := NewJWTMaker(util.RandomString(32)) require.NoError(t, err) token, err := maker.CreateToken(util.RandomOwner(), -time.Minute) require.NoError(t, err) require.NotEmpty(t, token) payload, err := maker.VerifyToken(token) require.Error(t, err) require.EqualErr...
explode_data.jsonl/74088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 54349, 55172, 3323, 1155, 353, 8840, 836, 8, 341, 2109, 4407, 11, 1848, 1669, 1532, 55172, 33259, 67811, 26709, 703, 7, 18, 17, 1171, 17957, 35699, 1155, 11, 1848, 692, 43947, 11, 1848, 1669, 24232, 7251, 3323, 67811, 26709,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClasses(t *testing.T) { if !java.IsAvailable() { t.Skipf("java importer is not available") } runTest(t, []string{ "github.com/sagernet/gomobile/bind/testdata/testpkg/javapkg", }, "", "ClassesTest") }
explode_data.jsonl/16767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 20077, 1155, 353, 8840, 836, 8, 341, 743, 753, 10042, 4506, 16485, 368, 341, 197, 3244, 57776, 69, 445, 10042, 62561, 374, 537, 2500, 1138, 197, 532, 56742, 2271, 1155, 11, 3056, 917, 515, 197, 197, 9749, 905, 2687, 351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDetectNetworkDestinations(t *testing.T) { dummyProcDir, err := newTempFolder("test-find-docker-networks") assert.Nil(t, err) defer dummyProcDir.removeAll() // clean up config.Datadog.SetDefault("container_proc_root", dummyProcDir.RootPath) for _, tc := range []struct { pid int routes s...
explode_data.jsonl/19612
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1240 }
[ 2830, 3393, 57193, 12320, 34830, 12634, 1155, 353, 8840, 836, 8, 341, 2698, 8574, 24508, 6184, 11, 1848, 1669, 501, 12151, 13682, 445, 1944, 75784, 1737, 13659, 56732, 82, 1138, 6948, 59678, 1155, 11, 1848, 340, 16867, 17292, 24508, 6184,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAltKeyring_ImportExportPubKey_ByAddress(t *testing.T) { keyring, err := New(t.Name(), BackendTest, t.TempDir(), nil) require.NoError(t, err) uid := theID mnemonic, _, err := keyring.NewMnemonic(uid, English, sdk.FullFundraiserPath, hd.Secp256k1) require.NoError(t, err) armor, err := keyring.ExportPubKe...
explode_data.jsonl/73465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 26017, 1592, 12640, 62, 11511, 16894, 29162, 1592, 85996, 4286, 1155, 353, 8840, 836, 8, 341, 23634, 12640, 11, 1848, 1669, 1532, 1155, 2967, 1507, 55260, 2271, 11, 259, 65009, 6184, 1507, 2092, 340, 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, 1, 1, 1, 1...
1
func TestMatchLanguage(t *testing.T) { c := catalog.NewBuilder(catalog.Fallback(language.English)) c.SetString(language.Bengali, "", "") c.SetString(language.English, "", "") c.SetString(language.German, "", "") saved := DefaultCatalog defer func() { DefaultCatalog = saved }() DefaultCatalog = c testCases := ...
explode_data.jsonl/42296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 352 }
[ 2830, 3393, 8331, 13806, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 16403, 7121, 3297, 1337, 7750, 991, 3420, 60740, 13, 22574, 1171, 1444, 97304, 60740, 1785, 826, 7956, 11, 7342, 14676, 1444, 97304, 60740, 13, 22574, 11, 7342, 14676, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTwoFlows(t *testing.T) { workflow, _ := fixture(t, "valid/two-flows.workflow") assert.Equal(t, "push", workflow.Workflows[0].On.String()) assert.IsType(t, &model.OnEvent{}, workflow.Workflows[0].On) assert.Len(t, workflow.Workflows[0].Resolves[0], 1) assert.Equal(t, []string{"a"}, workflow.Workflows[0].R...
explode_data.jsonl/55683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 11613, 3882, 4241, 1155, 353, 8840, 836, 8, 341, 197, 56249, 11, 716, 1669, 12507, 1155, 11, 330, 1891, 5523, 1126, 12276, 4241, 72774, 5130, 6948, 12808, 1155, 11, 330, 9077, 497, 28288, 28748, 38140, 58, 15, 936, 1925, 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 Test_prHasSuccessStatus(t *testing.T) { t.Parallel() type args struct { pr *clients.PullRequest } //nolint tests := []struct { name string args args want bool wantErr bool status string }{ { name: "check run with conclusion success", args: args{ pr: &clients.PullRequest{ ...
explode_data.jsonl/77209
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1150 }
[ 2830, 3393, 5294, 10281, 7188, 2522, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 13158, 2827, 2036, 341, 197, 25653, 353, 31869, 97357, 1900, 198, 197, 532, 197, 322, 77, 337, 396, 198, 78216, 1669, 3056, 1235, 341, 197, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormatArgs(t *testing.T) { // given m := &sysl.Module{ Apps: map[string]*sysl.Application{ "test": { Types: map[string]*sysl.Type{ "User": { Attrs: map[string]*sysl.Attribute{ "iso_conf": { Attribute: &sysl.Attribute_S{ S: "Red", }, }, "iso_in...
explode_data.jsonl/58735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 316 }
[ 2830, 3393, 4061, 4117, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 2109, 1669, 609, 7791, 75, 26958, 515, 197, 197, 53602, 25, 2415, 14032, 8465, 7791, 75, 17521, 515, 298, 197, 1, 1944, 788, 341, 571, 197, 4173, 25, 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 TestVerifyEmptyCertificate(t *testing.T) { if _, err := new(Certificate).Verify(VerifyOptions{}); err != errNotParsed { t.Errorf("Verifying empty certificate resulted in unexpected error: %q (wanted %q)", err, errNotParsed) } }
explode_data.jsonl/68008
{ "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, 32627, 3522, 33202, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 501, 3025, 20962, 568, 32627, 7, 32627, 3798, 6257, 1215, 1848, 961, 1848, 2623, 82959, 341, 197, 3244, 13080, 445, 10141, 7766, 4287, 15748, 19006, 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 ]
2
func Test_RedisEnterprise_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip from RedisEnterprise to RedisEnterprise via AssignPropertiesToR...
explode_data.jsonl/44552
{ "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, 2568, 41825, 85647, 62, 4498, 7903, 61941, 2568, 795, 21884, 1690, 26040, 39838, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 220, 16, 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
func TestValidateOpenIdURL(t *testing.T) { cases := []struct { Value string ErrCount int }{ { Value: "http://wrong.scheme.com", ErrCount: 1, }, { Value: "ftp://wrong.scheme.co.uk", ErrCount: 1, }, { Value: "%@invalidUrl", ErrCount: 1, }, { Value: "https://example....
explode_data.jsonl/78619
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 17926, 5002, 764, 3144, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 47399, 262, 914, 198, 197, 197, 7747, 2507, 526, 198, 197, 59403, 197, 197, 515, 298, 47399, 25, 262, 330, 1254, 1110, 34870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckVersion(t *testing.T) { reg := newFakeRegistryForCheckVersion(version.Version) _, ok := checkVersion(reg) if !ok { t.Errorf("checkVersion failed but should have succeeded") } reg = newFakeRegistryForCheckVersion("9.0.0") msg, ok := checkVersion(reg) if ok || msg == "" { t.Errorf("checkVersion s...
explode_data.jsonl/19862
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 3973, 5637, 1155, 353, 8840, 836, 8, 341, 37013, 1669, 501, 52317, 15603, 2461, 3973, 5637, 37770, 35842, 340, 197, 6878, 5394, 1669, 1779, 5637, 18390, 340, 743, 753, 562, 341, 197, 3244, 13080, 445, 2028, 5637, 4641, 714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVisualizationReadNotFound(t *testing.T) { d, err := qa.ResourceFixture{ Fixtures: []qa.HTTPFixture{ { Method: "GET", Resource: "/api/2.0/preview/sql/queries/foo", Response: api.Query{ ID: "foo", Visualizations: []json.RawMessage{ json.RawMessage(` { "id": 1234...
explode_data.jsonl/69575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 69036, 4418, 10372, 1155, 353, 8840, 836, 8, 341, 2698, 11, 1848, 1669, 88496, 20766, 18930, 515, 197, 12727, 941, 18513, 25, 3056, 15445, 27358, 18930, 515, 298, 197, 515, 571, 84589, 25, 256, 330, 3806, 756, 571, 79487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRead521(t *testing.T) { v := New() const ( k1 = "did:key:z2J9gaYxrKVpdoG9A4gRnmpnRCcxU6agDtFVVBVdn1JedouoZN7SzcyREXXzWgt3gGiwpoHq7K68X4m32D8HgzG8wv3sY5j7" //nolint:lll k1KID = "did:key:z2J9gaYxrKVpdoG9A4g...
explode_data.jsonl/16608
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1335 }
[ 2830, 3393, 4418, 20, 17, 16, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 1532, 2822, 4777, 2399, 197, 16463, 16, 262, 284, 330, 22920, 64849, 25, 89, 17, 41, 24, 6743, 56, 50997, 82707, 29714, 38, 24, 32, 19, 70, 49, 77, 1307, 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 TestStreamCloseError(t *testing.T) { var bw bytes.Buffer w := closeableWriter{w: &bw} writer := NewWriter(&w) _, err := writer.Write([]byte("cc")) failOnError(t, "Failed writing to compress object", err) w.Close() if err = writer.Close(); err == nil { debug.PrintStack() t.Fatal("Writer.Close returned ...
explode_data.jsonl/70465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 3027, 7925, 1454, 1155, 353, 8840, 836, 8, 341, 2405, 34375, 5820, 22622, 198, 6692, 1669, 3265, 480, 6492, 90, 86, 25, 609, 39824, 532, 38959, 1669, 1532, 6492, 2099, 86, 692, 197, 6878, 1848, 1669, 6916, 4073, 10556, 378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDowngradeMedia(t *testing.T) { decoder := xml.NewDecoder(strings.NewReader(CALI_2018_XML)) var caliScte2018 scte224.Media decodeErr := decoder.Decode(&caliScte2018) if nil != decodeErr { t.Log(decodeErr) t.FailNow() } pretty, marshalErr := xml.MarshalIndent(DowngradeMedia(caliScte2018), "", " ") ...
explode_data.jsonl/3239
{ "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, 4454, 6937, 12661, 1155, 353, 8840, 836, 8, 1476, 197, 48110, 1669, 8396, 7121, 20732, 51442, 68587, 3025, 969, 40, 62, 17, 15, 16, 23, 45617, 1171, 2405, 1620, 72, 50, 302, 68, 17, 15, 16, 23, 274, 302, 68, 17, 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...
4
func TestClientAuthMaxAuthTriesPublicKey(t *testing.T) { signers := []Signer{} for i := 0; i < 6; i++ { signers = append(signers, testSigners["dsa"]) } validConfig := &ClientConfig{ User: "testuser", Auth: []AuthMethod{ PublicKeys(append([]Signer{testSigners["rsa"]}, signers...)...), }, HostKeyCallbac...
explode_data.jsonl/6949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 2959, 5087, 5974, 5087, 51, 4019, 61822, 1155, 353, 8840, 836, 8, 341, 69054, 388, 1669, 3056, 7264, 261, 16094, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 21, 26, 600, 1027, 341, 197, 69054, 388, 284, 8737, 40046, 388...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCachedInstall(t *testing.T) { defer os.RemoveAll("pkg") h1 := filepath.Join("pkg", libgodir, "libgo.h") h2 := filepath.Join("pkg", libgodir, "p.h") buildcmd := []string{"go", "install", "-i", "-buildmode=c-archive", "libgo"} cmd := exec.Command(buildcmd[0], buildcmd[1:]...) cmd.Env = gopathEnv t.Log(...
explode_data.jsonl/50867
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 487 }
[ 2830, 3393, 70293, 24690, 1155, 353, 8840, 836, 8, 341, 16867, 2643, 84427, 445, 30069, 5130, 9598, 16, 1669, 26054, 22363, 445, 30069, 497, 3051, 39711, 404, 11, 330, 2740, 3346, 860, 1138, 9598, 17, 1669, 26054, 22363, 445, 30069, 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...
9
func TestProcessTasksStream(t *testing.T) { Convey(`Test disallow unknown fields`, t, func() { r := bytes.NewReader([]byte(`{"requests": [{"thing": "does not exist"}]}`)) _, err := processTasksStream(r) So(err, ShouldNotBeNil) }) Convey(`Test success`, t, func() { r := bytes.NewReader([]byte(`{ "requests...
explode_data.jsonl/27126
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 473 }
[ 2830, 3393, 7423, 25449, 3027, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 5809, 2271, 827, 7183, 9788, 5043, 7808, 259, 11, 2915, 368, 341, 197, 7000, 1669, 5820, 68587, 10556, 3782, 5809, 4913, 36242, 788, 61753, 1596, 788, 330, 27057,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1