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 TestFraming(t *testing.T) { testMessage := []byte("This is a test message") piece1 := testMessage[:8] piece2 := testMessage[8:] cb := CloseableBuffer{bytes.NewBuffer(make([]byte, 0))} defer cb.Close() writer := NewWriter(cb) reader := NewReader(cb) // Do a bunch of concurrent reads and writes to make sure...
explode_data.jsonl/19796
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 620 }
[ 2830, 3393, 37, 2396, 287, 1155, 353, 8840, 836, 8, 341, 18185, 2052, 1669, 3056, 3782, 445, 1986, 374, 264, 1273, 1943, 1138, 3223, 9108, 16, 1669, 1273, 2052, 3447, 23, 921, 3223, 9108, 17, 1669, 1273, 2052, 58, 23, 24135, 63810, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterpreterOptimiseConfig(t *testing.T) { s, statements, err := parseFileToStatements("src/parse/asp/test_data/interpreter/optimise_config.build") assert.NoError(t, err) assert.Equal(t, 1, len(statements)) assert.NotNil(t, statements[0].Ident) assert.NotNil(t, statements[0].Ident.Action) assert.NotNil(t,...
explode_data.jsonl/81077
{ "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, 58426, 21367, 318, 1064, 2648, 1155, 353, 8840, 836, 8, 341, 1903, 11, 12239, 11, 1848, 1669, 4715, 1703, 1249, 93122, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 14, 19133, 1064, 5332, 13239, 1138, 6948, 35699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTeamDiscussion_String(t *testing.T) { v := TeamDiscussion{ Author: &User{}, Body: String(""), BodyHTML: String(""), BodyVersion: String(""), CommentsCount: Int(0), CommentsURL: String(""), CreatedAt: &Timestamp{}, LastEditedAt: &Timestamp{}, HTMLURL: Strin...
explode_data.jsonl/33292
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 14597, 71021, 31777, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 7909, 71021, 515, 197, 197, 7133, 25, 286, 609, 1474, 38837, 197, 197, 5444, 25, 688, 923, 445, 4461, 197, 197, 5444, 5835, 25, 414, 923, 445, 4461, 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...
2
func TestCallTimeout(t *testing.T) { m, _, shutdown := newTestMachine(t) defer shutdown() const timeout = 2 * time.Second ctx, cancel := context.WithTimeout(context.Background(), timeout) err := m.Call(ctx, "Supervisor.Hang", struct{}{}, nil) if got, want := err, context.DeadlineExceeded; got != want { t.Errorf...
explode_data.jsonl/44584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 7220, 7636, 1155, 353, 8840, 836, 8, 341, 2109, 11, 8358, 23766, 1669, 501, 2271, 21605, 1155, 340, 16867, 23766, 741, 4777, 9632, 284, 220, 17, 353, 882, 32435, 198, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_GetAllBulletins2(t *testing.T) { w := httptest.NewRecorder() req, _ := http.NewRequest("GET", "/api/team/bulletins", nil) req.Header.Set("Authorization", team[0].Token) router.ServeHTTP(w, req) assert.Equal(t, 200, w.Code) }
explode_data.jsonl/77176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 13614, 2403, 44658, 1330, 17, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 24395, 11, 716, 1669, 1758, 75274, 445, 3806, 497, 3521, 2068, 78015, 3470, 22376, 1330, 497, 2092, 340, 24395, 15753, 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 TestGetRuleDetail(t *testing.T) { ruleId := BBC_TestRuleId res, err := BBC_CLIENT.GetRuleDetail(ruleId) ExpectEqual(t.Errorf, err, nil) fmt.Println(res) }
explode_data.jsonl/4085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 1949, 11337, 10649, 1155, 353, 8840, 836, 8, 341, 7000, 1111, 764, 1669, 18096, 32541, 11337, 764, 198, 10202, 11, 1848, 1669, 18096, 22521, 2234, 11337, 10649, 34944, 764, 340, 35911, 2993, 1155, 13080, 11, 1848, 11, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestConsumerPanic(t *testing.T) { var sum = 0 q, _ := memq.NewQueue("default") c, err := q.Consumer(&queue.ConsumerOption{ Handler: queue.H(func(m queue.Message) { var v int assert.Nil(t, m.Unmarshal(&v)) if v > 10 { panic("God!!") } sum += v m.Ack() }), }) assert.Nil(t, err) asser...
explode_data.jsonl/62406
{ "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, 29968, 47, 31270, 1155, 353, 8840, 836, 8, 341, 2405, 2629, 284, 220, 15, 198, 18534, 11, 716, 1669, 1833, 80, 7121, 7554, 445, 2258, 1138, 1444, 11, 1848, 1669, 2804, 70471, 2099, 4584, 70471, 5341, 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...
2
func TestWriteFile_TruncatesExistingFile(t *testing.T) { t.Parallel() want := "Hello, world" path := t.TempDir() + "/" + t.Name() // write some data first so we can check for truncation data := make([]byte, 15) err := os.WriteFile(path, data, 0600) if err != nil { t.Fatal(err) } wrote, err := script.Echo(wan...
explode_data.jsonl/51528
{ "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, 7985, 1703, 21038, 1347, 973, 53067, 1703, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50780, 1669, 330, 9707, 11, 1879, 698, 26781, 1669, 259, 65009, 6184, 368, 488, 16891, 488, 259, 2967, 741, 197, 322, 3270, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAutoIntRange(t *testing.T) { // Define a script and some test inputs and outputs. input := strings.Replace("10 20 30 40 50 60 70 80 90 100", " ", "\n", -1) var output int desiredOutput := 150 scr := NewScript() scr.AppendStmt(Auto(4, 6), func(s *Script) { output += s.F(1).Int() }) // Run the script and...
explode_data.jsonl/3022
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 13253, 1072, 6046, 1155, 353, 8840, 836, 8, 341, 197, 322, 18614, 264, 5316, 323, 1045, 1273, 11127, 323, 16275, 624, 22427, 1669, 9069, 20858, 445, 16, 15, 220, 17, 15, 220, 18, 15, 220, 19, 15, 220, 20, 15, 220, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPeerGroupResolverPolicy5(t *testing.T) { signedBy, identities, err := GetPolicies(org1, org2, org3, org4, org5) if err != nil { panic(err) } sigPolicyEnv := &common.SignaturePolicyEnvelope{ Version: 0, Rule: NewNOutOfPolicy(2, signedBy[o1], signedBy[o2], NewNOutOfPolicy(2, signedBy[o3],...
explode_data.jsonl/21578
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1637 }
[ 2830, 3393, 30888, 2808, 18190, 13825, 20, 1155, 353, 8840, 836, 8, 341, 1903, 1542, 1359, 11, 39421, 11, 1848, 1669, 2126, 47, 42038, 36246, 16, 11, 1240, 17, 11, 1240, 18, 11, 1240, 19, 11, 1240, 20, 340, 743, 1848, 961, 2092, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetSetProposal(t *testing.T) { input := getMockApp(t, 0, GenesisState{}, nil) header := abci.Header{Height: input.mApp.LastBlockHeight() + 1} input.mApp.BeginBlock(abci.RequestBeginBlock{Header: header}) ctx := input.mApp.BaseApp.NewContext(false, abci.Header{}) tp := testProposal() proposal, err := i...
explode_data.jsonl/36927
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 1949, 1649, 98637, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 633, 11571, 2164, 1155, 11, 220, 15, 11, 40788, 1397, 22655, 2092, 692, 20883, 1669, 668, 5855, 15753, 90, 3640, 25, 1946, 744, 2164, 24682, 4713, 3640, 368, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreResolveWriteIntent(t *testing.T) { defer leaktest.AfterTest(t)() manual := hlc.NewManualClock(123) cfg := TestStoreConfig(hlc.NewClock(manual.UnixNano, 1000*time.Nanosecond)) cfg.TestingKnobs.EvalKnobs.TestingEvalFilter = func(filterArgs kvserverbase.FilterArgs) *roachpb.Error { pr, ok := filter...
explode_data.jsonl/100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1201 }
[ 2830, 3393, 6093, 56808, 7985, 11536, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 197, 19730, 1669, 305, 17257, 7121, 52092, 26104, 7, 16, 17, 18, 340, 50286, 1669, 3393, 6093, 2648, 3203, 17257, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGatherMachineSet(t *testing.T) { var machineSetYAML = ` apiVersion: machine.openshift.io/v1beta1 kind: MachineSet metadata: name: test-worker ` gvr := schema.GroupVersionResource{Group: "machine.openshift.io", Version: "v1beta1", Resource: "machinesets"} client := dynamicfake.NewSimpleDynamicClient(runt...
explode_data.jsonl/32591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 38, 1856, 21605, 1649, 1155, 353, 8840, 836, 8, 341, 2405, 5662, 1649, 56, 31102, 284, 22074, 2068, 5637, 25, 5662, 42515, 47833, 4245, 5457, 16, 19127, 16, 198, 15314, 25, 12960, 1649, 198, 17637, 510, 262, 829, 25, 1273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewP2PKHScriptPubKey(t *testing.T) { testPublicAddressString := "13LSqJeZBpqLHzmLkJ5mvRHiM11waShFUP" testPublicKeyHash := base58check.Decode(testPublicAddressString) testScriptPubKeyHex := "76a914199db810a3c8ae5e55c0432d2b72e55b0634f79088ac" scriptPubKey, err := NewP2PKHScriptPubKey(testPublicKeyHash) if...
explode_data.jsonl/67118
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 3564, 47, 17, 22242, 39, 5910, 29162, 1592, 1155, 353, 8840, 836, 8, 341, 18185, 12676, 4286, 703, 1669, 330, 16, 18, 7268, 80, 29754, 57, 33, 64016, 43, 11475, 76, 43, 42330, 20, 26002, 49, 13048, 44, 16, 16, 9991, 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 TestLastValueNotSet(t *testing.T) { descriptor := test.NewAggregatorTest(export.ObserverKind, core.Int64NumberKind, true) g := New() g.Checkpoint(context.Background(), descriptor) value, timestamp, err := g.LastValue() require.Equal(t, aggregator.ErrNoLastValue, err) require.True(t, timestamp.IsZero()) re...
explode_data.jsonl/81401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 5842, 1130, 2623, 1649, 1155, 353, 8840, 836, 8, 341, 52912, 6820, 1669, 1273, 7121, 9042, 58131, 2271, 7, 1533, 85721, 10629, 11, 6200, 7371, 21, 19, 2833, 10629, 11, 830, 692, 3174, 1669, 1532, 741, 3174, 10600, 2768, 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, 1, 1, 1, 1, 1...
1
func TestBeaconHandler(t *testing.T) { req, err := http.NewRequest("POST", "/api/v1/beacon", strings.NewReader("foo&bar=baz")) if err != nil { t.Fatal(err) } w := httptest.NewRecorder() handler := http.HandlerFunc(BeaconHandler) handler.ServeHTTP(w, req) // Expect StatusNoContent if status := w.Code; status...
explode_data.jsonl/61631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 3430, 22379, 3050, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 445, 2946, 497, 3521, 2068, 5457, 16, 58689, 22379, 497, 9069, 68587, 445, 7975, 5, 2257, 22086, 1370, 5455, 743, 1848, 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, 1...
3
func TestHit(t *testing.T) { // create the cache c, err := New(1*time.Minute, 1*time.Minute, 1*time.Minute) if err != nil { t.Fatal(err) } defer c.Close() // add a bunch of values to cache wg := sync.WaitGroup{} wg.Add(1000) for i := 0; i < 1000; i += 1 { key := fmt.Sprintf("key%v", i) value := fmt.S...
explode_data.jsonl/51363
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 584 }
[ 2830, 3393, 19498, 1155, 353, 8840, 836, 8, 341, 197, 322, 1855, 279, 6500, 271, 1444, 11, 1848, 1669, 1532, 7, 16, 77053, 75770, 11, 220, 16, 77053, 75770, 11, 220, 16, 77053, 75770, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrepareCacheForClusteredIndex(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create table t1(k varchar(100) primary key clustered, v1 int, v2 int)") tk.MustExec("insert into t1 (k, v1, v2) values('a', 1, 2),...
explode_data.jsonl/5509
{ "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, 50590, 8233, 2461, 28678, 291, 1552, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 741, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestString(t *testing.T) { t.Run("string_1", func(t *testing.T) { // string can contain tab characters dat, _ := ioutil.ReadFile(TestCasePath + "/string_1/load_in.nt") value := &Value{} err := value.Parse(dat) assert.Nil(t, err) assert.Equal(t, ValueTypeDictionary, value.Type) child, exists := v...
explode_data.jsonl/55419
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1499 }
[ 2830, 3393, 703, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 917, 62, 16, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 322, 914, 646, 6644, 5651, 5766, 198, 197, 2698, 266, 11, 716, 1669, 43144, 78976, 62817, 1820, 488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestByteRanger(t *testing.T) { for _, example := range []struct { data string size, offset, length int64 substr string fail bool }{ {"", 0, 0, 0, "", false}, {"abcdef", 6, 0, 0, "", false}, {"abcdef", 6, 3, 0, "", false}, {"abcdef", 6, 0, 6, "abcdef",...
explode_data.jsonl/13733
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 591 }
[ 2830, 3393, 7153, 49, 4003, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3110, 1669, 2088, 3056, 1235, 341, 197, 8924, 338, 914, 198, 197, 13832, 11, 4347, 11, 3084, 526, 21, 19, 198, 197, 28624, 495, 2290, 914, 198, 197, 63052, 338, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func Test_templateClient_getGitHubFileContent(t *testing.T) { g := NewWithT(t) client, mux, teardown := test.NewFakeGitHub() defer teardown() configClient, err := config.New("", config.InjectReader(test.NewFakeReader())) g.Expect(err).NotTo(HaveOccurred()) mux.HandleFunc("/repos/kubernetes-sigs/cluster-api/con...
explode_data.jsonl/68532
{ "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, 8693, 2959, 3062, 75615, 1703, 2762, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 2354, 51, 1155, 692, 25291, 11, 59807, 11, 49304, 1669, 1273, 7121, 52317, 75615, 741, 16867, 49304, 2822, 25873, 2959, 11, 1848, 1669, 219...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCalculateQuantityToFillAsFloat(t *testing.T) { scaledQuantity := lib.BaseUnitsPerCoin expectedValueIfDESO := float64(getDESOToDAOCoinBaseUnitsScalingFactor().Uint64()) // 1e9 expectedValueIfDAOCoin := float64(1) // Bid order to buy $DESO using a DAO coin { quantity, err := CalculateFloatQuantityFromBas...
explode_data.jsonl/63839
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 562 }
[ 2830, 3393, 47866, 17342, 1249, 14449, 2121, 5442, 1155, 353, 8840, 836, 8, 341, 1903, 25228, 17342, 1669, 3051, 13018, 26314, 3889, 41180, 198, 42400, 1130, 2679, 1150, 13880, 1669, 2224, 21, 19, 5433, 1150, 13880, 1249, 6352, 7612, 1961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDb_BloomFilter(t *testing.T) { h := newDbHarnessWopt(t, &opt.Options{ BlockCache: opt.NoCache, Filter: filter.NewBloomFilter(10), }) defer h.close() key := func(i int) string { return fmt.Sprintf("key%06d", i) } const ( n = 10000 indexOverheat = 19898 filterOverheat = 1979...
explode_data.jsonl/6037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 651 }
[ 2830, 3393, 7994, 1668, 18474, 5632, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 501, 7994, 74248, 54, 2912, 1155, 11, 609, 2912, 22179, 515, 197, 94940, 8233, 25, 3387, 16766, 8233, 345, 197, 197, 5632, 25, 257, 4051, 7121, 33, 18474, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPointBls12377G2Serialize(t *testing.T) { bls12377G2 := BLS12377G2() ss := bls12377G2.Scalar.Random(testRng()) g := bls12377G2.Point.Generator() ppt := g.Mul(ss) require.Equal(t, ppt.ToAffineCompressed(), []byte{0x81, 0x88, 0xf4, 0x32, 0xec, 0x60, 0x72, 0xd3, 0x76, 0x77, 0x86, 0xcd, 0x44, 0xce, 0x91, 0x5a...
explode_data.jsonl/15772
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1652 }
[ 2830, 3393, 2609, 33, 4730, 16, 17, 18, 22, 22, 38, 17, 15680, 1155, 353, 8840, 836, 8, 341, 96421, 82, 16, 17, 18, 22, 22, 38, 17, 1669, 425, 7268, 16, 17, 18, 22, 22, 38, 17, 741, 34472, 1669, 1501, 82, 16, 17, 18, 22, 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 TestWalk(t *testing.T) { cases := []struct { Name string Input interface{} ExpectedCalls []string }{ { "Struct with one string field", struct{ Name string }{"Bobo"}, []string{"Bobo"}, }, { "Struct with two string fields", struct { Name string City string }{...
explode_data.jsonl/56734
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 767 }
[ 2830, 3393, 48849, 1155, 353, 8840, 836, 8, 1476, 1444, 2264, 1669, 3056, 1235, 341, 197, 21297, 688, 914, 198, 197, 66588, 260, 3749, 16094, 197, 197, 18896, 55292, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 197, 1, 9422, 448, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllowActivitiesPubRestrict(t *testing.T) { vendorListData := MarshalVendorList(buildVendorList34()) perms := allPurposesEnabledPermissions() perms.vendorIDs = map[openrtb_ext.BidderName]uint16{ openrtb_ext.BidderAppnexus: 2, openrtb_ext.BidderPubmatic: 32, openrtb_ext.BidderRubicon: 8, } perms.fet...
explode_data.jsonl/31096
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 849 }
[ 2830, 3393, 18605, 67820, 29162, 50360, 849, 1155, 353, 8840, 836, 8, 341, 5195, 8029, 852, 1043, 1669, 35667, 44691, 852, 43333, 44691, 852, 18, 19, 12367, 197, 87772, 1669, 678, 47, 324, 8285, 5462, 23851, 741, 197, 87772, 72395, 3046...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadAutoCloser_ReadsAllDataFromSourceAndClosesItAutomatically(t *testing.T) { t.Parallel() want := []byte("hello world") input, err := os.Open("testdata/hello.txt") if err != nil { t.Fatal(err) } acr := script.NewReadAutoCloser(input) got, err := io.ReadAll(acr) if err != nil { t.Error(err) } if ...
explode_data.jsonl/51515
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 4418, 13253, 51236, 799, 38381, 82, 2403, 1043, 3830, 3608, 3036, 34, 49341, 2132, 41072, 7022, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50780, 1669, 3056, 3782, 445, 14990, 1879, 1138, 22427, 11, 1848, 1669, 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 TestGetConfigEmpty(t *testing.T) { t.Setenv("PORT", "") t.Setenv("METADATA_HOST", "") defer func() { if r := recover(); r == nil { t.Errorf("The code did not panic on empty enviroment variables") } }() GetConfig("") t.TempDir() }
explode_data.jsonl/33858
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 1949, 2648, 3522, 1155, 353, 8840, 836, 8, 341, 3244, 4202, 3160, 445, 5095, 497, 14676, 3244, 4202, 3160, 445, 44875, 39119, 17213, 497, 85617, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 621, 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 TestCNCIInitializeCtrls(t *testing.T) { err := initializeCNCICtrls(ctl) if err != nil { t.Fatal(err) } ts, err := ctl.ds.GetAllTenants() if err != nil { t.Fatal(err) } for _, tenant := range ts { if tenant.CNCIctrl == nil { t.Fatal("CNCIctrl not initialized properly") } } }
explode_data.jsonl/39705
{ "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, 34, 9949, 40, 9928, 94982, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 9468, 34, 9949, 1317, 376, 4730, 7, 12373, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 57441, 11, 1848, 1669, 64935, 60017, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInTxns(t *testing.T) { // msgChan := &MessageChannels{In: make(chan interface{}, 66666), Out: make(chan interface{}, 666666)} // // msgChan.In <- &ab.HoneyBadgerBFTMessage{} // msgChan.In <- &cb.Envelope{} // msgChan.In <- &cb.Envelope{} // msgChan.In <- &ab.HoneyBadgerBFTMessage{Height: 1} // msgChan.I...
explode_data.jsonl/7621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 641, 31584, 4412, 1155, 353, 8840, 836, 8, 341, 197, 322, 3750, 46019, 1669, 609, 2052, 35925, 90, 641, 25, 1281, 35190, 3749, 22655, 220, 21, 21, 21, 21, 21, 701, 4371, 25, 1281, 35190, 3749, 22655, 220, 21, 21, 21, 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 TestJoinRestore(t *testing.T) { testCases := []NodeRestoreTestCase{ {"t1 natural join t2", "`t1` NATURAL JOIN `t2`"}, {"t1 natural left join t2", "`t1` NATURAL LEFT JOIN `t2`"}, {"t1 natural right outer join t2", "`t1` NATURAL RIGHT JOIN `t2`"}, {"t1 straight_join t2", "`t1` STRAIGHT_JOIN `t2`"}, {"t1 s...
explode_data.jsonl/27574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1473 }
[ 2830, 3393, 12292, 56284, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1955, 56284, 16458, 515, 197, 197, 4913, 83, 16, 5810, 5138, 259, 17, 497, 35973, 83, 16, 63, 18248, 50685, 13069, 1565, 83, 17, 63, 7115, 197, 197, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_defaultErrorHandler_SetsContentType(t *testing.T) { r := require.New(t) app := New(Options{}) app.GET("/", func(c Context) error { return c.Error(401, fmt.Errorf("boom")) }) w := httptest.New(app) res := w.HTML("/").Get() r.Equal(401, res.Code) ct := res.Header().Get("content-type") r.Equal("text/...
explode_data.jsonl/82180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 9993, 66673, 1098, 1415, 29504, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 340, 28236, 1669, 1532, 7, 3798, 37790, 28236, 17410, 35460, 2915, 1337, 9608, 8, 1465, 341, 197, 853, 272, 6141, 7, 19, 15, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDiscoverClusterChangedSchedulableNodes(t *testing.T) { nodeList := createMockNodes(allocatableMap, schedulableNodeMap) ms := &MockClusterScrapper{ mockGetKubernetesServiceID: func() (string, error) { return testClusterName, nil }, mockGetAllNodes: func() ([]*v1.Node, error) { return nodeList, nil...
explode_data.jsonl/62016
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 500 }
[ 2830, 3393, 50002, 28678, 5389, 50, 2397, 360, 480, 12288, 1155, 353, 8840, 836, 8, 341, 20831, 852, 1669, 1855, 11571, 12288, 7, 4742, 15086, 2227, 11, 5575, 360, 480, 1955, 2227, 340, 47691, 1669, 609, 11571, 28678, 3326, 5518, 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 TestOnce(t *testing.T) { session := actions.NewInMemorySession(feed) localAStore := session.LocalAStore() remoteAStore := session.RemoteAStore() testutil.CreateArchiveFromData(t, feed, localAStore, testutil.Data[0], testutil.Data[1]) testutil.CreateArchiveFromData(t, feed, remoteAStore, testutil.Data[1], test...
explode_data.jsonl/2316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 503 }
[ 2830, 3393, 12522, 1155, 353, 8840, 836, 8, 341, 25054, 1669, 6168, 7121, 641, 10642, 5283, 67886, 340, 8854, 32, 6093, 1669, 3797, 20856, 32, 6093, 741, 197, 18147, 32, 6093, 1669, 3797, 51434, 32, 6093, 741, 18185, 1314, 7251, 42502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorization_Path(t *testing.T) { framework.NewTest(t). Run(func(ctx framework.TestContext) { ns := namespace.NewOrFail(t, ctx, namespace.Config{ Prefix: "v1beta1-path", Inject: true, }) ports := []echo.Port{ { Name: "http", Protocol: protocol.HTTP, ServicePort...
explode_data.jsonl/41501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 982 }
[ 2830, 3393, 18124, 66388, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 7121, 2271, 1155, 4292, 197, 85952, 18552, 7502, 12626, 8787, 1972, 8, 341, 298, 84041, 1669, 4473, 7121, 46059, 1155, 11, 5635, 11, 4473, 10753, 515, 571, 10025, 5060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProtect(t *testing.T) { buffer, _ := Alloc(32) if err := Protect(buffer, ReadWrite()); err != nil { t.Error(err) } if err := Protect(buffer, ReadOnly()); err != nil { t.Error(err) } if err := Protect(buffer, NoAccess()); err != nil { t.Error(err) } if err := Protect(buffer, MemoryProtectionFlag{4...
explode_data.jsonl/77099
{ "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, 61547, 1155, 353, 8840, 836, 8, 341, 31122, 11, 716, 1669, 46685, 7, 18, 17, 340, 743, 1848, 1669, 33663, 12584, 11, 4457, 7985, 13426, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 532, 743, 1848, 1669, 33663, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIndexDatabase_GetOrCreateSeriesID_err(t *testing.T) { ctrl := gomock.NewController(t) defer func() { _ = fileutil.RemoveDir(testPath) createBackend = newIDMappingBackend ctrl.Finish() }() backend := NewMockIDMappingBackend(ctrl) createBackend = func(parent string) (IDMappingBackend, error) { ret...
explode_data.jsonl/33826
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 550 }
[ 2830, 3393, 1552, 5988, 13614, 57111, 25544, 915, 9266, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 2915, 368, 341, 197, 197, 62, 284, 1034, 1314, 13270, 6184, 8623, 1820, 340, 197, 39263, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileErrorsOnNonexistentFile(t *testing.T) { t.Parallel() p := script.File("doesntexist") if p.Error() == nil { t.Error("want error for non-existent file") } }
explode_data.jsonl/51505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 1703, 13877, 1925, 8121, 64085, 1703, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1669, 5316, 8576, 445, 27057, 406, 28575, 1138, 743, 281, 6141, 368, 621, 2092, 341, 197, 3244, 6141, 445, 52657, 1465, 369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHasBlockReturnsNil(t *testing.T) { store := bstore() ex := Exchange(store) block := blocks.NewBlock([]byte("data")) err := ex.HasBlock(block) if err != nil { t.Fail() } if _, err := store.Get(block.Cid()); err != nil { t.Fatal(err) } }
explode_data.jsonl/79711
{ "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, 10281, 4713, 16446, 19064, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 293, 4314, 741, 8122, 1669, 18705, 31200, 340, 47996, 1669, 10010, 7121, 4713, 10556, 3782, 445, 691, 28075, 9859, 1669, 505, 16152, 4713, 18682, 340, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestUint8Slice(t *testing.T) { val := uint8(1) m := map[string]interface{}{"value": []uint8{val}, "nothing": nil} assert.Equal(t, val, New(m).Get("value").Uint8Slice()[0]) assert.Equal(t, val, New(m).Get("value").MustUint8Slice()[0]) assert.Equal(t, []uint8(nil), New(m).Get("nothing").Uint8Slice()) assert.E...
explode_data.jsonl/23465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 21570, 23, 33236, 1155, 353, 8840, 836, 8, 1476, 19302, 1669, 2622, 23, 7, 16, 340, 2109, 1669, 2415, 14032, 31344, 6257, 4913, 957, 788, 3056, 2496, 23, 90, 831, 2137, 330, 41212, 788, 2092, 532, 6948, 12808, 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 Test_BuildAPKs_withoutKeystoreConfig(t *testing.T) { // Given tool := givenTool() aabPath := "/path/to/app.aab" apksPath := "/path/to/app.apks" expectedCommand := buildAPKsCommand(tool, aabPath, apksPath, nil) // When actualCommand := tool.BuildAPKs(aabPath, apksPath, nil).GetCmd().Args // Then require....
explode_data.jsonl/58095
{ "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, 96686, 2537, 42, 82, 39904, 6608, 63373, 2648, 1155, 353, 8840, 836, 8, 341, 197, 322, 16246, 198, 197, 14172, 1669, 2661, 7740, 741, 11323, 370, 1820, 1669, 3521, 2343, 32429, 10640, 5849, 370, 698, 69898, 2787, 1820, 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 TestPostgresqlFieldOutputIntegration(t *testing.T) { const measurement = "postgresql" if testing.Short() { t.Skip("Skipping integration test in short mode") } acc := queryRunner(t, query{{ Sqlquery: "select * from pg_stat_database", Version: 901, Withdbname: false, Tagvalue: "", }}) intMet...
explode_data.jsonl/20137
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 567 }
[ 2830, 3393, 4133, 81624, 1877, 5097, 52464, 1155, 353, 8840, 836, 8, 341, 4777, 18662, 284, 330, 88470, 698, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 85945, 17590, 1273, 304, 2805, 3856, 1138, 197, 630, 197, 4475, 1669, 3239, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLedger_LevelDB_Init(t *testing.T) { ledger := Ledger{ Store: storer, } _, _ = ledger.Store.Get(storage.RecordKey{ Hash: []byte("test"), TimeSlot: 1, }) }
explode_data.jsonl/25705
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 60850, 1389, 78861, 3506, 15644, 1155, 353, 8840, 836, 8, 341, 197, 50704, 1669, 70306, 515, 197, 197, 6093, 25, 357, 14827, 345, 197, 532, 197, 6878, 716, 284, 46933, 38047, 2234, 52463, 49959, 1592, 515, 197, 197, 6370, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMuxTrailingSlash(t *testing.T) { r := NewRouter() r.NotFound(HandlerFunc(func(ctx context.Context, rc *fasthttp.RequestCtx) { rc.Response.SetStatusCode(404) rc.Write([]byte("nothing here")) })) subRoutes := NewRouter() indexHandler := func(ctx context.Context, rc *fasthttp.RequestCtx) { accountID :...
explode_data.jsonl/47943
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 44, 2200, 1282, 14277, 88004, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 9523, 741, 7000, 67255, 7, 3050, 9626, 18552, 7502, 2266, 9328, 11, 10192, 353, 9349, 1254, 9659, 23684, 8, 341, 197, 30295, 12574, 4202, 15872, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogErrorWithStatusCode(t *testing.T) { var buf bytes.Buffer lg := logw.NewLog(logw.WithWriter(&buf), logw.WithLevel(logw.LevelDebug)) eh := mw.LogErrorWithStatusCode(lg, http.StatusTeapot) rec := httptest.NewRecorder() r := httptest.NewRequest("GET", "/", nil) eh(errors.AlreadyRefunded.Newf("Invoice al...
explode_data.jsonl/3138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 2201, 1454, 2354, 15872, 1155, 353, 8840, 836, 8, 1476, 2405, 6607, 5820, 22622, 198, 8810, 70, 1669, 1487, 86, 7121, 2201, 12531, 86, 26124, 6492, 2099, 5909, 701, 1487, 86, 26124, 4449, 12531, 86, 25259, 7939, 4390, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_GetLastPushSeqFailDue2NotSubscribed(t *testing.T) { chain, mock33 := createBlockChain(t) _, err := chain.ProcGetLastPushSeq("test") assert.Equal(t, types.ErrPushNotSubscribed, err) mock33.Close() }
explode_data.jsonl/61722
{ "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, 13614, 5842, 16644, 20183, 19524, 33060, 17, 2623, 3136, 49785, 1155, 353, 8840, 836, 8, 341, 197, 8819, 11, 7860, 18, 18, 1669, 1855, 4713, 18837, 1155, 340, 197, 6878, 1848, 1669, 8781, 7763, 66, 1949, 5842, 16644, 20183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReExportCommonJSAsES6(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` export {bar} from './foo' `, "/foo.js": ` exports.bar = 123 `, }, entryPaths: []string{"/entry.js"}, options: config.Options{ Mode: config.ModeBundle, ...
explode_data.jsonl/38548
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 693, 16894, 10839, 12545, 2121, 1570, 21, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 59440, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplicationRoleService_Get(t *testing.T) { testCases := []struct { name string applicationRoleKey string mockFile string wantHTTPMethod string endpoint string context context.Context wantHTTPCodeReturn int wantErr bool }{ { nam...
explode_data.jsonl/47742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2402 }
[ 2830, 3393, 4988, 9030, 1860, 13614, 1155, 353, 8840, 836, 8, 1476, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 197, 5132, 9030, 1592, 914, 198, 197, 77333, 1703, 1843, 914, 198, 197, 50780, 9230, 3523, 257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrorMessage2(t *testing.T) { msg := &Error{Type: 0, Error: 0} if msg.Type != 0 || msg.Error != 0 { t.Fail() } }
explode_data.jsonl/29152
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 55 }
[ 2830, 3393, 21349, 17, 1155, 353, 8840, 836, 8, 341, 21169, 1669, 609, 1454, 90, 929, 25, 220, 15, 11, 4600, 25, 220, 15, 532, 743, 3750, 10184, 961, 220, 15, 1369, 3750, 6141, 961, 220, 15, 341, 197, 3244, 57243, 741, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func TestApp_Run_SubcommandDoesNotOverwriteErrorFromBefore(t *testing.T) { app := &App{ Commands: []*Command{ { Subcommands: []*Command{ { Name: "sub", }, }, Name: "bar", Before: func(c *Context) error { return fmt.Errorf("before error") }, After: func(c *Context) error { re...
explode_data.jsonl/52593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 2164, 84158, 36359, 5631, 21468, 2623, 1918, 4934, 1454, 3830, 10227, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 609, 2164, 515, 197, 197, 30479, 25, 29838, 4062, 515, 298, 197, 515, 571, 197, 3136, 24270, 25, 29838, 4062, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseRef(t *testing.T) { for _, x := range []struct { test string registry string repo string canon string }{ // Library images can have the domain omitted; a // single-element path is understood to be prefixed with "library". {"alpine", dockerHubHost, "library/alpine", "index.docker...
explode_data.jsonl/60182
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 817 }
[ 2830, 3393, 14463, 3945, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 856, 1669, 2088, 3056, 1235, 341, 197, 18185, 257, 914, 198, 197, 197, 29172, 914, 198, 197, 17200, 5368, 257, 914, 198, 197, 1444, 58910, 262, 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...
7
func TestClient_All(t *testing.T) { type fields struct { URL string Username string Password string ID chronograf.ID Ticker chronograf.Ticker kapaClient func(url, username, password string, insecureSkipVerify bool) (KapaClient, error) } type args struct { ctx context.Context } ...
explode_data.jsonl/52106
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3398 }
[ 2830, 3393, 2959, 53629, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 79055, 286, 914, 198, 197, 197, 11115, 256, 914, 198, 197, 197, 4876, 256, 914, 198, 197, 29580, 260, 25986, 25058, 9910, 198, 197, 10261, 5215, 257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeMechFromJson(t *testing.T) { content := `{ "description": "Mech from Brixton", "id": "01DM3PADN0FQFGD2SDJR04DGF8", "name": "foo", "release": "20190906.1567787180", "version": "0.0.1" } ` mech, err := DecodeMechFromJSON(strings.NewReader(content)) assert.Assert(t, is.Nil(err)) assert.Equal(...
explode_data.jsonl/49270
{ "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, 32564, 57067, 3830, 5014, 1155, 353, 8840, 836, 8, 341, 27751, 1669, 1565, 515, 220, 330, 4684, 788, 330, 57067, 504, 425, 18356, 777, 756, 220, 330, 307, 788, 330, 15, 16, 8395, 18, 43818, 45, 15, 37, 48, 12001, 35, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDay23Part1(t *testing.T) { swarm, masterBot := ParseInput(lines) part1 := Day23Part1(swarm, masterBot) expected := 7 if part1 != expected { t.Errorf("Part1 was incorrect, got: %d, want: %d.", part1, expected) } }
explode_data.jsonl/52922
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 10159, 17, 18, 5800, 16, 1155, 353, 8840, 836, 8, 341, 77295, 2178, 11, 7341, 23502, 1669, 14775, 2505, 33152, 692, 72872, 16, 1669, 6059, 17, 18, 5800, 16, 58902, 2178, 11, 7341, 23502, 340, 42400, 1669, 220, 22, 198, 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...
2
func TestResolver_CreateBatchSpecExecution(t *testing.T) { if testing.Short() { t.Skip() } ctx := context.Background() db := dbtest.NewDB(t, "") now := time.Now().UTC().Truncate(time.Millisecond) cstore := store.NewWithClock(db, nil, func() time.Time { return now }) userID := ct.CreateTestUser(t, db, true).I...
explode_data.jsonl/53222
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 737 }
[ 2830, 3393, 18190, 34325, 21074, 8327, 20294, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 630, 20985, 1669, 2266, 19047, 741, 20939, 1669, 2927, 1944, 7121, 3506, 1155, 11, 14676, 80922, 1669, 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 TestSwitchToFrame(t *testing.T) { ctx := context.Background() d, err := CreateSession(ctx, wdAddress(), 3, nil) if err != nil { t.Fatal(err) } defer d.Quit(ctx) testURL, _ := testURL("webdriver.html") if err := d.NavigateTo(ctx, testURL); err != nil { t.Fatal(err) } // Initial context assertInFram...
explode_data.jsonl/68747
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 16837, 1249, 4369, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 2698, 11, 1848, 1669, 4230, 5283, 7502, 11, 45404, 4286, 1507, 220, 18, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemovedPostings(t *testing.T) { var cases = []struct { a, b []uint64 res []uint64 }{ { a: nil, b: nil, res: []uint64(nil), }, { a: []uint64{1, 2, 3, 4}, b: nil, res: []uint64{1, 2, 3, 4}, }, { a: nil, b: []uint64{1, 2, 3, 4}, res: []uint64(nil), }, { ...
explode_data.jsonl/13128
{ "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, 42642, 4133, 819, 1155, 353, 8840, 836, 8, 341, 2405, 5048, 284, 3056, 1235, 341, 197, 11323, 11, 293, 3056, 2496, 21, 19, 198, 197, 10202, 220, 3056, 2496, 21, 19, 198, 197, 59403, 197, 197, 515, 298, 11323, 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...
2
func TestLsd(t *testing.T) { ctx := context.Background() r := fstest.NewRun(t) defer r.Finalise() file1 := r.WriteObject(ctx, "sub dir/hello world", "hello world", t1) fstest.CheckItems(t, r.Fremote, file1) var buf bytes.Buffer err := operations.ListDir(ctx, r.Fremote, &buf) require.NoError(t, err) res := bu...
explode_data.jsonl/51924
{ "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, 43, 13446, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 7000, 1669, 48434, 477, 7121, 6727, 1155, 340, 16867, 435, 991, 977, 1064, 741, 17661, 16, 1669, 435, 4073, 1190, 7502, 11, 330, 1966, 5419, 7530, 479...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDomain_Delete(t *testing.T) { t.Run("success", func(t *testing.T) { testCtx, _ := testCtx.CacheContext() NewDomain(testCtx, testKeeper, testDomain).Delete() ok := testKeeper.DomainStore(testCtx).Read(testDomain.PrimaryKey(), &types.Domain{}) if ok { t.Fatal("domain was not deleted") } }) }
explode_data.jsonl/16621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 13636, 57418, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5630, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 18185, 23684, 11, 716, 1669, 1273, 23684, 46130, 1972, 741, 197, 197, 3564, 13636, 8623, 23684, 11, 1273, 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...
2
func TestResourcesCheck(t *testing.T) { t.Run("GoodResources", func(t *testing.T) { err := checkResources(&mockchannelconfig.Resources{ PolicyManagerVal: &mockpolicies.Manager{}, OrdererConfigVal: &mockchannelconfig.Orderer{ CapabilitiesVal: &mockchannelconfig.OrdererCapabilities{}, }, ChannelConfigV...
explode_data.jsonl/71401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 712 }
[ 2830, 3393, 11277, 3973, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 15216, 11277, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 9859, 1669, 1779, 11277, 2099, 16712, 10119, 1676, 21703, 515, 298, 10025, 8018, 2043, 2208, 25, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnvironmentVariableSliceArgumentFloat(t *testing.T) { var args struct { Foo []float32 `arg:"env"` } setenv(t, "FOO", "1.1,99.9") MustParse(&args) assert.Equal(t, []float32{1.1, 99.9}, args.Foo) }
explode_data.jsonl/13042
{ "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, 12723, 7827, 33236, 9171, 5442, 1155, 353, 8840, 836, 8, 341, 2405, 2827, 2036, 341, 197, 12727, 2624, 3056, 3649, 18, 17, 1565, 858, 2974, 3160, 8805, 197, 532, 8196, 3160, 1155, 11, 330, 3788, 46, 497, 330, 16, 13, 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 TestGetSystemInfo(t *testing.T) { si, err := getSystemInfo() if err != nil { t.Fatal(err) } t.Logf("numprocs = %d", si.dwNumberOfProcessors) }
explode_data.jsonl/67703
{ "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, 1949, 2320, 1731, 1155, 353, 8840, 836, 8, 341, 1903, 72, 11, 1848, 1669, 633, 2320, 1731, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 3244, 98954, 445, 2413, 90087, 284, 1018, 67, 497, 4403, 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 ]
2
func TestSimpleParseRoutes(t *testing.T) { routeString := "min-healthy/warning/slack" routes, err := ParseRoutes(routeString) assert.NoError(t, err) assert.Len(t, routes, 1) route := routes[0] expectedRoute := Route{ Check: "min-healthy", CheckLevel: checks.Warning, Notifier: "slack", } assert.Equ...
explode_data.jsonl/42331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 16374, 14463, 26653, 1155, 353, 8840, 836, 8, 341, 7000, 2133, 703, 1669, 330, 1065, 12, 37028, 6324, 3177, 82577, 473, 698, 7000, 5495, 11, 1848, 1669, 14775, 26653, 31436, 703, 340, 6948, 35699, 1155, 11, 1848, 340, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIssue58(t *testing.T) { jsonStr := `{"data":[{"uid": 1},{"uid": 2}]}` res := Get(jsonStr, `data.#[uid!=1]`).Raw if res != `{"uid": 2}` { t.Fatalf("expected '%v', got '%v'", `{"uid": 1}`, res) } }
explode_data.jsonl/43451
{ "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, 42006, 20, 23, 1155, 353, 8840, 836, 8, 341, 30847, 2580, 1669, 1565, 4913, 691, 66582, 2423, 788, 220, 16, 36828, 2423, 788, 220, 17, 92, 13989, 3989, 10202, 1669, 2126, 9304, 2580, 11, 1565, 691, 13, 13353, 2423, 5824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestManifestGenErrorCacheByMinutesElapsed(t *testing.T) { tests := []struct { // Test with a range of pause expiration thresholds PauseGenerationOnFailureForMinutes int }{ {1}, {2}, {10}, {24 * 60}, } for _, tt := range tests { testName := fmt.Sprintf("pause-time-%d", tt.PauseGenerationOnFailureForMin...
explode_data.jsonl/5672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1007 }
[ 2830, 3393, 38495, 9967, 1454, 8233, 1359, 27720, 48935, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 197, 322, 3393, 448, 264, 2088, 315, 18087, 31692, 56140, 198, 197, 10025, 3454, 37138, 1925, 17507, 2461, 27720, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetArchiveWithLfsSuccess(t *testing.T) { testhelper.ConfigureGitalyLfsSmudge() defaultOptions := testhelper.GitlabTestServerOptions{ SecretToken: secretToken, LfsBody: lfsBody, } gitlabShellDir, cleanup := testhelper.TempDir(t) defer cleanup() defer func(cfg config.Cfg) { config.Config = cfg...
explode_data.jsonl/60643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1308 }
[ 2830, 3393, 1949, 42502, 2354, 43, 3848, 7188, 1155, 353, 8840, 836, 8, 341, 18185, 18764, 78281, 38, 2174, 88, 43, 3848, 10673, 19561, 2822, 11940, 3798, 1669, 1273, 18764, 1224, 275, 14380, 2271, 5475, 3798, 515, 197, 7568, 50856, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormalizeDockerfilePath(t *testing.T) { tests := []struct { description string files []string dockerfile string expected string // relative path }{ { description: "dockerfile found in context", files: []string{"Dockerfile", "context/Dockerfile"}, dockerfile: "Dockerfile", ...
explode_data.jsonl/8453
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 611 }
[ 2830, 3393, 87824, 35, 13659, 36697, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 74075, 981, 3056, 917, 198, 197, 2698, 13659, 1192, 220, 914, 271, 197, 42400, 914, 442, 8674, 1815, 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 TestLookupRemoteImage(t *testing.T) { r := spawnTestRegistrySession(t) err := r.LookupRemoteImage(imageID, makeURL("/v1/"), token) assertEqual(t, err, nil, "Expected error of remote lookup to nil") if err := r.LookupRemoteImage("abcdef", makeURL("/v1/"), token); err == nil { t.Fatal("Expected error of remote...
explode_data.jsonl/59058
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 34247, 24703, 1906, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 18042, 2271, 15603, 5283, 1155, 340, 9859, 1669, 435, 79261, 24703, 1906, 10075, 915, 11, 1281, 3144, 4283, 85, 16, 14, 3975, 3950, 340, 6948, 2993, 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...
2
func TestBadFactory(t *testing.T) { client := newFakeClient() s, err := NewSubscriber(client, path, newFactory("kaboom"), logger) if err != nil { t.Fatalf("failed to create new Subscriber: %v", err) } defer s.Stop() // instance1 came online client.AddService(path+"/instance1", "kaboom") // instance2 came o...
explode_data.jsonl/63598
{ "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, 17082, 4153, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 501, 52317, 2959, 2822, 1903, 11, 1848, 1669, 1532, 40236, 12805, 11, 1815, 11, 501, 4153, 445, 74, 370, 4191, 3975, 5925, 340, 743, 1848, 961, 2092, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTagsMap(t *testing.T) { tests := []struct { fieldTags map[string]interface{} expected []model.KeyValue err error }{ {fieldTags: map[string]interface{}{"bool:bool": true}, expected: []model.KeyValue{model.Bool("bool.bool", true)}}, {fieldTags: map[string]interface{}{"int.int": int64(1)}, expe...
explode_data.jsonl/5157
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 970 }
[ 2830, 3393, 15930, 2227, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 39250, 15930, 2415, 14032, 31344, 16094, 197, 42400, 220, 3056, 2528, 9610, 1130, 198, 197, 9859, 981, 1465, 198, 197, 59403, 197, 197, 90, 2566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDifference(t *testing.T) { assert := require.New(t) assert.Empty(Difference(nil, nil)) assert.Empty(Difference(nil, []string{`a`, `c`, `e`})) assert.ElementsMatch([]string{`a`, `b`, `c`}, Difference([]string{`a`, `b`, `c`}, nil)) assert.ElementsMatch( []interface{}{`a`}, Difference([]string{`a`, `b`...
explode_data.jsonl/45575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 62707, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 1373, 7121, 1155, 692, 6948, 11180, 5432, 18192, 27907, 11, 2092, 1171, 6948, 11180, 5432, 18192, 27907, 11, 3056, 917, 90, 63, 64, 7808, 1565, 66, 7808, 1565, 68, 63, 44194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsSubset(t *testing.T) { var e1, e2, e3 float32 e := createRandomObject(e1) if v, ok := e.(float32); ok { e1 = v } e = createRandomObject(e2) if v, ok := e.(float32); ok { e2 = v } e = createRandomObject(e2) if v, ok := e.(float32); ok { e3 = v } s1 := New() s2 := New() s1.Add(e1) s1.Add(...
explode_data.jsonl/35013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 3872, 70584, 1155, 353, 8840, 836, 8, 341, 2405, 384, 16, 11, 384, 17, 11, 384, 18, 2224, 18, 17, 198, 7727, 1669, 1855, 13999, 1190, 2026, 16, 340, 743, 348, 11, 5394, 1669, 384, 12832, 3649, 18, 17, 1215, 5394, 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...
6
func TestStaticQRSession(t *testing.T) { client, _ := parseStorage(t) defer test.ClearTestStorage(t) StartRequestorServer(JwtServerConfiguration) defer StopRequestorServer() // start server to receive session result callback after the session var received bool mux := http.NewServeMux() mux.HandleFunc("/", func...
explode_data.jsonl/70008
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 11690, 30465, 5283, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 4715, 5793, 1155, 340, 16867, 1273, 13524, 2271, 5793, 1155, 340, 65999, 1900, 269, 5475, 16368, 9306, 5475, 7688, 340, 16867, 14215, 1900, 269, 5475, 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 TestLookupKey(t *testing.T) { for i, c := range lookupKeyCases { gotX, gotY := lookupKey(c.pad, c.key) if gotX != c.wantX && gotY != c.wantY { t.Fatalf("Case %d: Wanted (%d, %d), got (%d, %d)", i+1, c.wantX, c.wantY, gotX, gotY) } } }
explode_data.jsonl/42988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 34247, 1592, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 272, 1669, 2088, 18615, 1592, 37302, 341, 197, 3174, 354, 55, 11, 2684, 56, 1669, 18615, 1592, 1337, 56266, 11, 272, 4735, 340, 197, 743, 2684, 55, 961, 272, 7021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientWithRequiredPlugins(t *testing.T) { _, err := NewClient(SetRequiredPlugins("no-such-plugin")) if err == nil { t.Fatal("expected error when creating client") } if got, want := err.Error(), "elastic: plugin no-such-plugin not found"; got != want { t.Fatalf("expected error %q; got: %q", want, got) ...
explode_data.jsonl/38000
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 2959, 2354, 8164, 45378, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 1532, 2959, 52474, 8164, 45378, 445, 2152, 1331, 1387, 23629, 5455, 743, 1848, 621, 2092, 341, 197, 3244, 26133, 445, 7325, 1465, 979, 6825, 2943,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestVTAProgVsFuncSet(t *testing.T) { prog, want, err := testProg("testdata/callgraph_nested_ptr.go") if err != nil { t.Fatalf("couldn't load test `testdata/callgraph_nested_ptr.go`: %s", err) } if len(want) == 0 { t.Fatal("couldn't find want in `testdata/callgraph_nested_ptr.go`") } allFuncs := ssautil....
explode_data.jsonl/61023
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 53, 15204, 89535, 51737, 9626, 1649, 1155, 353, 8840, 836, 8, 341, 197, 32992, 11, 1366, 11, 1848, 1669, 1273, 89535, 445, 92425, 2899, 541, 4439, 66279, 4348, 18002, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 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...
7
func TestLoadCollect(t *testing.T) { Convey("Test_Collect", t, func() { Convey("test case1", func() { collector := LoadCollector{} collect := collector.Collect(1) So(collect, ShouldBeNil) }) }) }
explode_data.jsonl/35840
{ "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, 5879, 47504, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2271, 920, 24605, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 1944, 1142, 16, 497, 2915, 368, 1476, 298, 1444, 24605, 269, 1669, 8893, 53694, 16094, 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
func TestCleanupNSTrunk(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ecscniClient := NewClient(&Config{}) libcniClient := mock_libcni.NewMockCNI(ctrl) ecscniClient.(*cniClient).libcni = libcniClient gomock.InOrder( // Bridge plugin was called first libcniClient.EXPECT().DelNetwork(gom...
explode_data.jsonl/30398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 570 }
[ 2830, 3393, 67335, 50479, 81, 3122, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 2388, 7751, 2959, 1669, 1532, 2959, 2099, 2648, 37790, 197, 55576, 7751, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDone_ExecuteInbound(t *testing.T) { followup, _, err := (&done{}).ExecuteInbound(nil, &metaData{}) require.NoError(t, err) require.Equal(t, &noOp{}, followup) }
explode_data.jsonl/66241
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 17453, 83453, 641, 10891, 1155, 353, 8840, 836, 8, 341, 1166, 1544, 454, 11, 8358, 1848, 1669, 15899, 10438, 6257, 568, 17174, 641, 10891, 27907, 11, 609, 5490, 1043, 37790, 17957, 35699, 1155, 11, 1848, 340, 17957, 12808, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSearchWithEmptyChain(t *testing.T) { user := User{Name: "search_with_empty_chain", Age: 1} DB.Create(&user) var result User if DB.Where("").Where("").First(&result).Error != nil { t.Errorf("Should not raise any error if searching with empty strings") } result = User{} if DB.Where(&User{}).Where("nam...
explode_data.jsonl/48712
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 5890, 2354, 3522, 18837, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 2657, 63121, 25, 330, 1836, 6615, 15124, 30583, 497, 13081, 25, 220, 16, 532, 45409, 7251, 2099, 872, 692, 2405, 1102, 2657, 198, 743, 5952, 17067, 80821, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServer_FileRead(t *testing.T) { // create token token, trx, down, err := models.NewArbitrarilyTokenForTest(nil, t) rootPath := models.NewTempDirForTest() assert.Nil(t, err) defer func() { down(t) if util.IsDir(rootPath) { os.RemoveAll(rootPath) } }() testDbConn = trx testRootPath = &rootPath ...
explode_data.jsonl/30085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1071 }
[ 2830, 3393, 5475, 34061, 4418, 1155, 353, 8840, 836, 8, 341, 197, 322, 1855, 3950, 198, 43947, 11, 73021, 11, 1495, 11, 1848, 1669, 4119, 7121, 6953, 4489, 81, 6613, 3323, 2461, 2271, 27907, 11, 259, 340, 33698, 1820, 1669, 4119, 7121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServer_ListBlocks_Pagination(t *testing.T) { db, _ := dbTest.SetupDB(t) ctx := context.Background() count := uint64(100) blks := make([]*ethpb.SignedBeaconBlock, count) blkContainers := make([]*ethpb.BeaconBlockContainer, count) for i := uint64(0); i < count; i++ { b := testutil.NewBeaconBlock() b.B...
explode_data.jsonl/36475
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2080 }
[ 2830, 3393, 5475, 27104, 29804, 1088, 10353, 1155, 353, 8840, 836, 8, 341, 20939, 11, 716, 1669, 2927, 2271, 39820, 3506, 1155, 340, 20985, 1669, 2266, 19047, 2822, 18032, 1669, 2622, 21, 19, 7, 16, 15, 15, 340, 96421, 2787, 1669, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPeerSetGet(t *testing.T) { t.Parallel() var ( peerSet = NewPeerSet() peer = newMockPeer(nil) ) assert.Nil(t, peerSet.Get(peer.ID()), "expecting a nil lookup, before .Add") if err := peerSet.Add(peer); err != nil { t.Fatalf("Failed to add new peer: %v", err) } var wg sync.WaitGroup for i :=...
explode_data.jsonl/68622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 270 }
[ 2830, 3393, 30888, 1649, 1949, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2405, 2399, 197, 197, 16537, 1649, 284, 1532, 30888, 1649, 741, 197, 197, 16537, 262, 284, 501, 11571, 30888, 27907, 340, 197, 692, 6948, 59678, 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 TestProxyRewriteRegex(t *testing.T) { // Setup receivedRequestURI := make(chan string, 1) upstream := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // RequestURI is the unmodified request-target of the Request-Line (RFC 7230, Section 3.1.1) as sent by the client to a serve...
explode_data.jsonl/45585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 924 }
[ 2830, 3393, 16219, 58465, 1247, 32464, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 198, 17200, 8771, 1900, 10301, 1669, 1281, 35190, 914, 11, 220, 16, 340, 59810, 4027, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewTodos(t *testing.T) { todos := NewTodos() assert.Empty(t, todos) todos = NewTodos(&Todo{}) assert.NotEmpty(t, todos) assert.Equal(t, 1, len(todos)) }
explode_data.jsonl/61582
{ "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, 3564, 42147, 1155, 353, 8840, 836, 8, 341, 3244, 16385, 1669, 1532, 42147, 741, 6948, 11180, 1155, 11, 15519, 692, 3244, 16385, 284, 1532, 42147, 2099, 24176, 37790, 6948, 15000, 3522, 1155, 11, 15519, 340, 6948, 12808, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestScriptBuilderAddInt64(t *testing.T) { t.Parallel() tests := []struct { name string val int64 expected []byte }{ {name: "push -1", val: -1, expected: []byte{OP_1NEGATE}}, {name: "push small int 0", val: 0, expected: []byte{OP_0}}, {name: "push small int 1", val: 1, expected: []byte{OP_1...
explode_data.jsonl/66896
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1410 }
[ 2830, 3393, 5910, 3297, 2212, 1072, 21, 19, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 19302, 414, 526, 21, 19, 198, 197, 42400, 3056, 3782, 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 TestMinHTLC(t *testing.T) { t.Parallel() // We'll kick off the test by creating our channels which both are // loaded with 5 BTC each. aliceChannel, bobChannel, cleanUp, err := CreateTestChannels( channeldb.SingleFunderTweaklessBit, ) if err != nil { t.Fatalf("unable to create test channels: %v", err) ...
explode_data.jsonl/72502
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 636 }
[ 2830, 3393, 6217, 2545, 8556, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 1205, 3278, 10323, 1007, 279, 1273, 553, 6825, 1039, 11744, 892, 2176, 525, 198, 197, 322, 6661, 448, 220, 20, 36045, 1817, 624, 197, 63195...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLanguage(t *testing.T) { kb := NewInMemory() _, _, err := kb.CreateMnemonic("something", Japanese, "no_pass", Secp256k1) assert.Error(t, err) assert.Equal(t, "unsupported language: only english is supported", err.Error()) }
explode_data.jsonl/10665
{ "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, 13806, 1155, 353, 8840, 836, 8, 341, 16463, 65, 1669, 1532, 641, 10642, 741, 197, 6878, 8358, 1848, 1669, 38653, 7251, 44, 70775, 445, 33331, 497, 10769, 11, 330, 2152, 15464, 497, 4520, 79, 17, 20, 21, 74, 16, 340, 6948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewBeegfsUrl(t *testing.T) { tests := map[string]struct { host, path string want string }{ "basic ip example": { host: "127.0.0.1", path: "/path/to/volume", want: "beegfs://127.0.0.1/path/to/volume", }, "basic FQDN example": { host: "some.domain.com", path: "/path/to/volume", ...
explode_data.jsonl/77105
{ "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, 3564, 3430, 791, 3848, 2864, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 63104, 11, 1815, 914, 198, 197, 50780, 981, 914, 198, 197, 59403, 197, 197, 1, 22342, 5997, 3110, 788, 341, 298, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAccessModes(t *testing.T) { tmpDir, err := utiltesting.MkTmpdir("rbd_test") if err != nil { t.Fatalf("error creating temp dir: %v", err) } defer os.RemoveAll(tmpDir) plugMgr := volume.VolumePluginMgr{} plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, volumetest.NewFakeVolumeHost(tmpDir, ...
explode_data.jsonl/57652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 1949, 6054, 70035, 1155, 353, 8840, 836, 8, 341, 20082, 6184, 11, 1848, 1669, 4094, 8840, 1321, 74, 35986, 3741, 445, 81, 8940, 4452, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 841, 6825, 2730, 5419, 25, 1018,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttachmentService_Settings(t *testing.T) { testCases := []struct { name string mockFile string wantHTTPMethod string endpoint string context context.Context wantHTTPCodeReturn int wantErr bool }{ { name: "GetAttachme...
explode_data.jsonl/50072
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1789 }
[ 2830, 3393, 33569, 1860, 71769, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 77333, 1703, 1843, 914, 198, 197, 50780, 9230, 3523, 257, 914, 198, 197, 6246, 2768, 1843, 914, 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...
8
func TestLaunchContainerWithRemoteSnapshotter_Isolated(t *testing.T) { integtest.Prepare(t, integtest.WithDefaultNetwork()) vmID := 0 testTimeout := 300 * time.Second ctx, cancel := context.WithTimeout(context.Background(), testTimeout) defer cancel() launchContainerWithRemoteSnapshotterInVM(ctx, t, strconv.It...
explode_data.jsonl/42541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 32067, 4502, 2354, 24703, 15009, 465, 31879, 80519, 1155, 353, 8840, 836, 8, 341, 2084, 791, 1944, 28770, 3380, 1155, 11, 5388, 1944, 26124, 3675, 12320, 12367, 54879, 915, 1669, 220, 15, 271, 18185, 7636, 1669, 220, 18, 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...
1
func TestGtOrEqToSql(t *testing.T) { b := GtOrEq{"id": 1} sql, args, err := b.ToSql() assert.NoError(t, err) expectedSql := "id >= ?" assert.Equal(t, expectedSql, sql) expectedArgs := []interface{}{1} assert.Equal(t, expectedArgs, args) }
explode_data.jsonl/44169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 38, 83, 2195, 27312, 1249, 8269, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 479, 83, 2195, 27312, 4913, 307, 788, 220, 16, 532, 30633, 11, 2827, 11, 1848, 1669, 293, 3274, 8269, 741, 6948, 35699, 1155, 11, 1848, 692, 4240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLua(t *testing.T) { t.Skip() script := ` case = testcase.new() function case:Run(ctx) print(case.toolkit:RandStr(10)) ret = case.blockchain:Invoke({ func="123", args={"123", "123"}, }) case.blockchain:Option({ func="123", args={"123", "123"}, }) return ret end return case ` s...
explode_data.jsonl/35106
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1130 }
[ 2830, 3393, 58020, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 741, 86956, 1669, 22074, 5638, 284, 70080, 4618, 2822, 1688, 1142, 25, 6727, 7502, 8, 715, 6900, 59475, 21268, 8226, 25, 56124, 2580, 7, 16, 15, 1171, 262, 2112, 284, 1142,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidLevel(t *testing.T) { wantCfg := "{\"level\": \"error\",\n\"outputPaths\": [\"stdout\"],\n\"errorOutputPaths\": [\"stderr\"],\n\"encoding\": \"json\"}" _, err := NewConfigFromConfigMap(&corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Namespace: system.Namespace(), Name: "config-logging",...
explode_data.jsonl/37331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 7928, 4449, 1155, 353, 8840, 836, 8, 341, 50780, 42467, 1669, 54734, 3294, 11693, 7245, 841, 65290, 77, 2105, 3006, 26901, 11693, 508, 2105, 36358, 2105, 1125, 59, 77, 2105, 841, 5097, 26901, 11693, 508, 2105, 36422, 2105, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBot_SendMessage(t *testing.T) { type fields struct { Configuration Configuration apiClient apiClient BotUser User messageMHs []matcherHandler editedMessageMHs []matcherHandler channelPostMHs []matcherHandler editedChannelPostMHs []matcher...
explode_data.jsonl/46087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 998 }
[ 2830, 3393, 23502, 46267, 2052, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 7688, 260, 12221, 198, 197, 54299, 2959, 1797, 6330, 2959, 198, 197, 12791, 354, 1474, 2290, 2657, 198, 197, 24753, 48202, 82, 310, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNilFlowResolvers(t *testing.T) { ctx := logger.WithLogger(broker.NewBackground()) resolvers := FlowsResolvers{nil} _, err := resolvers.Resolve(ctx) if err != nil { t.Fatal(err) } }
explode_data.jsonl/2206
{ "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, 19064, 18878, 1061, 39435, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 5925, 26124, 7395, 1883, 45985, 7121, 8706, 2398, 10202, 39435, 1669, 2988, 4241, 1061, 39435, 90, 8385, 532, 197, 6878, 1848, 1669, 592, 39435, 57875, 7502...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMacServiceImpl_FindMacAll(t *testing.T) { a := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() mockMr := database.NewMockMacRepository(ctrl) var expected model.Macs = make(model.Macs, 1) expected[0] = model.Mac{} { // success mpi := NewMacServiceImpl(mockMr) if mpi == nil { t....
explode_data.jsonl/55036
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 19552, 50603, 95245, 19552, 2403, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 77333, 12275, 1669, 4625, 7121, 11571, 1955...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientIdempotentRequest(t *testing.T) { t.Parallel() dialsCount := 0 c := &Client{ Dial: func(addr string) (net.Conn, error) { dialsCount++ switch dialsCount { case 1: return &singleReadConn{ s: "invalid response", }, nil case 2: return &writeErrorConn{}, nil case 3: r...
explode_data.jsonl/79371
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 566 }
[ 2830, 3393, 94116, 3262, 63532, 1900, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2698, 10309, 2507, 1669, 220, 15, 198, 1444, 1669, 609, 2959, 515, 197, 10957, 530, 25, 2915, 24497, 914, 8, 320, 4711, 50422, 11, 1465, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestCacheDO(t *testing.T) { testCache := &cache{} // Fill the cache. reply := (&dns.Msg{ MsgHdr: dns.MsgHdr{ Response: true, }, Answer: []dns.RR{newRR(t, "google.com. 3600 IN A 8.8.8.8")}, }).SetQuestion("google.com.", dns.TypeA) reply.SetEdns0(4096, true) // Store in cache. testCache.set(&cacheI...
explode_data.jsonl/18905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 434 }
[ 2830, 3393, 8233, 5865, 1155, 353, 8840, 836, 8, 341, 18185, 8233, 1669, 609, 9360, 31483, 197, 322, 21979, 279, 6500, 624, 86149, 1669, 15899, 45226, 30365, 515, 197, 197, 6611, 88367, 25, 44077, 30365, 88367, 515, 298, 69604, 25, 830,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1