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 TestPBStandardDeviationOverflow(t *testing.T) { valAddr := sdk.ValAddress(secp256k1.GenPrivKey().PubKey().Address()) exchangeRate, err := sdk.NewDecFromStr("100000000000000000000000000000000000000000000000000000000.0") require.NoError(t, err) pb := ExchangeRateBallot{NewVoteForTally( sdk.ZeroDec(), core.M...
explode_data.jsonl/38396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 40637, 19781, 14592, 7101, 42124, 1155, 353, 8840, 836, 8, 341, 19302, 13986, 1669, 45402, 77819, 4286, 10478, 4672, 17, 20, 21, 74, 16, 65384, 32124, 1592, 1005, 29162, 1592, 1005, 4286, 2398, 8122, 3373, 11564, 11, 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, 1...
1
func Test_DeployHandler_Execution_NoUUIDorSHA_Override(t *testing.T) { release := MockRelease() release.UUID = to.Strp("badString") release.ReleaseSHA256 = "badString" awsc := MockAwsClients(release) state_machine := createTestStateMachine(t, awsc) exec, err := state_machine.Execute(release) output := exec.Out...
explode_data.jsonl/62289
{ "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, 90680, 1989, 3050, 62, 20294, 36989, 24754, 269, 33145, 62, 2177, 1155, 353, 8840, 836, 8, 341, 17200, 1623, 1669, 14563, 16077, 741, 17200, 1623, 39636, 284, 311, 27318, 79, 445, 13855, 703, 1138, 17200, 1623, 58693, 33145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDelNick(t *testing.T) { ch := NewChannel("#test1") nk := NewNick("test1") cp := new(ChanPrivs) ch.addNick(nk, cp) ch.delNick(nk) if len(ch.nicks) != 0 || len(ch.lookup) != 0 { t.Errorf("Nick lists not updated correctly for del.") } if c, ok := ch.nicks[nk]; ok || c != nil { t.Errorf("Nick test1 no...
explode_data.jsonl/2722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 16532, 30356, 1155, 353, 8840, 836, 8, 341, 23049, 1669, 1532, 9629, 3584, 1944, 16, 1138, 9038, 74, 1669, 1532, 30356, 445, 1944, 16, 1138, 52018, 1669, 501, 7, 46019, 32124, 82, 692, 23049, 1364, 30356, 1445, 74, 11, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBasic(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() ds, rt := setupRoot(ctx, t) rootdir := rt.GetValue().(*Directory) // test making a basic dir _, err := rootdir.Mkdir("a") if err != nil { t.Fatal(err) } path := "a/b/c/d/e/f/g" d := mkdirP(t, rootdir, pa...
explode_data.jsonl/35816
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 15944, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 741, 83336, 11, 16677, 1669, 6505, 8439, 7502, 11, 259, 692, 33698, 3741, 1669, 16677, 25816, 1005, 4071, 9310, 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...
4
func TestUDP(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) wg := &sync.WaitGroup{} wg.Add(1) go func(ctx context.Context) { l := alistener.NewRealListener(server.NewBaseTcp("127.0.0.1", 4888).Listen()) l.RegisterAcceptor(alistener.NewSocksAcceptMid(ctx, "tag", map[string]interface{}{"...
explode_data.jsonl/57459
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 742 }
[ 2830, 3393, 41648, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 12367, 72079, 1669, 609, 12996, 28384, 2808, 16094, 72079, 1904, 7, 16, 340, 30680, 2915, 7502, 2266, 9328, 8, 341, 197, 8810, 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 TestSearchTokens(t *testing.T) { node1 := resource.TrieNode{ ChildrenNodes: nil, SvgIds: map[string]struct{}{"group_1": {}, "group_31": {}}, SvIds: map[string]struct{}{"sv_1_2": {}}, } node3 := resource.TrieNode{ ChildrenNodes: nil, SvgIds: nil, SvIds: map[string]struct...
explode_data.jsonl/68104
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1793 }
[ 2830, 3393, 5890, 29300, 1155, 353, 8840, 836, 8, 341, 20831, 16, 1669, 5101, 836, 7231, 1955, 515, 197, 197, 11539, 12288, 25, 2092, 345, 197, 7568, 7239, 12701, 25, 286, 2415, 14032, 60, 1235, 6257, 4913, 4074, 62, 16, 788, 16452, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGitCommandUnstageFile(t *testing.T) { type scenario struct { testName string command func(string, ...string) *exec.Cmd test func(error) reset bool } scenarios := []scenario{ { "Remove an untracked file from staging", func(cmd string, args ...string) *exec.Cmd { assert.EqualValue...
explode_data.jsonl/6317
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 463 }
[ 2830, 3393, 46562, 4062, 1806, 20743, 1703, 1155, 353, 8840, 836, 8, 341, 13158, 15048, 2036, 341, 197, 18185, 675, 914, 198, 197, 45566, 220, 2915, 3609, 11, 2503, 917, 8, 353, 11748, 64512, 198, 197, 18185, 257, 2915, 6390, 340, 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 TestRollupMemoryConstraint(t *testing.T) { defer leaktest.AfterTest(t)() tm := newTestModelRunner(t) tm.Start() defer tm.Stop() series1 := tsd("test.metric", "a") series2 := tsd("test.othermetric", "a") for i := 0; i < 500; i++ { series1.Datapoints = append(series1.Datapoints, tsdp(time.Duration(i), floa...
explode_data.jsonl/71877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1449 }
[ 2830, 3393, 32355, 454, 10642, 17890, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 3244, 76, 1669, 501, 2271, 1712, 19486, 1155, 340, 3244, 76, 12101, 741, 16867, 17333, 30213, 2822, 197, 19880, 16, 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...
7
func TestMetricRules(t *testing.T) { var tcs []CrossAgentRulesTestcase err := crossagent.ReadJSON("rules.json", &tcs) if err != nil { t.Fatal(err) } for _, tc := range tcs { tc.run(t) } }
explode_data.jsonl/63828
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 54310, 26008, 1155, 353, 8840, 836, 8, 341, 2405, 259, 4837, 3056, 28501, 16810, 26008, 2271, 5638, 271, 9859, 1669, 5312, 8092, 6503, 5370, 445, 21977, 4323, 497, 609, 83, 4837, 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 ]
3
func TestDecodedLen(t *testing.T) { for _, tt := range []struct { enc *Encoding n int want int }{ {RawStdEncoding, 0, 0}, {RawStdEncoding, 2, 1}, {RawStdEncoding, 3, 2}, {RawStdEncoding, 4, 3}, {RawStdEncoding, 10, 7}, {StdEncoding, 0, 0}, {StdEncoding, 4, 3}, {StdEncoding, 8, 6}, } { if ...
explode_data.jsonl/35057
{ "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, 4900, 6737, 11271, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 197, 954, 220, 353, 14690, 198, 197, 9038, 262, 526, 198, 197, 50780, 526, 198, 197, 59403, 197, 197, 90, 20015, 22748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClusterPoolFromClaimWithLabels(t *testing.T) { testCases := []struct { description string pools []ctrlruntimeclient.Object labels map[string]string expected *hivev1.ClusterPool expectErr error }{ { description: "select the clusters to satisfy labels", labels: map[string...
explode_data.jsonl/29486
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1623 }
[ 2830, 3393, 28678, 10551, 3830, 45544, 2354, 23674, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 3223, 6178, 981, 3056, 11933, 22255, 2972, 8348, 198, 197, 95143, 414, 2415, 14032, 30953, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedis_Hkeys(t *testing.T) { runOnRedis(t, func(client *Redis) { assert.Nil(t, client.Hset("a", "aa", "aaa")) assert.Nil(t, client.Hset("a", "bb", "bbb")) _, err := NewRedis(client.Addr, "").Hkeys("a") assert.NotNil(t, err) vals, err := client.Hkeys("a") assert.Nil(t, err) assert.ElementsMatch(t,...
explode_data.jsonl/39161
{ "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, 48137, 2039, 10563, 1155, 353, 8840, 836, 8, 341, 56742, 1925, 48137, 1155, 11, 2915, 12805, 353, 48137, 8, 341, 197, 6948, 59678, 1155, 11, 2943, 3839, 746, 445, 64, 497, 330, 5305, 497, 330, 32646, 5455, 197, 6948, 59678...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJoinerWithReference(t *testing.T) { store := mock.NewStorer() ctx, cancel := context.WithCancel(context.Background()) defer cancel() // create root chunk and two data chunks referenced in the root chunk rootChunk := filetest.GenerateTestRandomFileChunk(swarm.ZeroAddress, swarm.ChunkSize*2, swarm.Section...
explode_data.jsonl/51985
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 595 }
[ 2830, 3393, 12292, 261, 2354, 8856, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 7860, 7121, 623, 14827, 2822, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 197, 322, 1855, 3704, 11879, 323, 1378, 821, 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...
9
func TestNameToIndex(t *testing.T) { // invalid id, err := fullNameToIndex("m") assert.NotNil(t, err) assert.Equal(t, -1, id) id, err = fullNameToIndex("mon") assert.NotNil(t, err) assert.Equal(t, -1, id) id, err = fullNameToIndex("rook-ceph-monitor0") assert.NotNil(t, err) assert.Equal(t, -1, id) // valid ...
explode_data.jsonl/39530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 675, 1249, 1552, 1155, 353, 8840, 836, 8, 341, 197, 322, 8318, 198, 15710, 11, 1848, 1669, 48008, 1249, 1552, 445, 76, 1138, 6948, 93882, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 481, 16, 11, 877, 340, 15710, 11, 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...
1
func TestMessageSetFilter(t *testing.T) { var ( value = make(MessageSet, 3) req = require.New(t) ) // filter nothing { set, err := value.Filter(func(*Message) (bool, error) { return true, nil }) req.NoError(err) req.Equal(len(set), len(value)) } // filter one item { found := false set, err...
explode_data.jsonl/5843
{ "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, 2052, 1649, 5632, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 16309, 284, 1281, 29359, 1649, 11, 220, 18, 340, 197, 24395, 256, 284, 1373, 7121, 1155, 340, 197, 692, 197, 322, 4051, 4302, 198, 197, 515, 197, 8196, 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_addBlobsFromBlobsJSONToState(t *testing.T) { tests := []struct { name string blobMap map[string]*Blob icuDataMap map[string]*Node distributedShlibsMap map[string]*Node blobs []BlobFromJSON expectedBlobMap map[string]*Blob expectedSize ...
explode_data.jsonl/12617
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 854 }
[ 2830, 3393, 2891, 33, 68164, 3830, 33, 68164, 5370, 1249, 1397, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 338, 914, 198, 197, 2233, 1684, 2227, 1060, 2415, 14032, 8465, 37985, 198, 197, 197, 292, 84, 1043...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStorageKey_String(t *testing.T) { assertString(t, []stringAssert{ {NewStorageKey([]byte{0, 0, 0}), "[0 0 0]"}, {NewStorageKey([]byte{171, 18, 52}), "[171 18 52]"}, {NewStorageKey([]byte{0, 1}), "[0 1]"}, {NewStorageKey([]byte{18, 52, 86}), "[18 52 86]"}, }) }
explode_data.jsonl/3065
{ "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, 5793, 1592, 31777, 1155, 353, 8840, 836, 8, 341, 6948, 703, 1155, 11, 3056, 917, 8534, 515, 197, 197, 90, 3564, 5793, 1592, 10556, 3782, 90, 15, 11, 220, 15, 11, 220, 15, 38842, 10545, 15, 220, 15, 220, 15, 60, 7115, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIdDoug(t *testing.T) { tc := SetupEngineTest(t, "id") defer tc.Cleanup() idUI, result, err := runIdentify(&tc, "t_doug") if err != nil { t.Fatal(err) } checkDougProofs(t, idUI, &result.Upk) checkDisplayKeys(t, idUI, 1, 1) }
explode_data.jsonl/52985
{ "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, 764, 91576, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 18626, 4571, 2271, 1155, 11, 330, 307, 1138, 16867, 17130, 727, 60639, 741, 15710, 2275, 11, 1102, 11, 1848, 1669, 1598, 28301, 1437, 2099, 10413, 11, 330, 83, 814, 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...
2
func TestAdjacencyList(t *testing.T) { root := &Node{ Children: []*Node{ {Meta: Meta{ID: "N1"}, Ports: []*Port{{Meta: Meta{ID: "P1"}}}}, {Meta: Meta{ID: "N2"}, Ports: []*Port{{Meta: Meta{ID: "P2"}}}}, {Meta: Meta{ID: "N3"}, Ports: []*Port{{Meta: Meta{ID: "P3"}}}}, {Meta: Meta{ID: "N4"}, Ports: []*Port{{M...
explode_data.jsonl/78244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 54866, 40624, 852, 1155, 353, 8840, 836, 8, 341, 33698, 1669, 609, 1955, 515, 197, 197, 11539, 25, 29838, 1955, 515, 298, 197, 90, 12175, 25, 15819, 90, 915, 25, 330, 45, 16, 14345, 69866, 25, 29838, 7084, 2979, 12175, 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 TestSinglePartitionSubscriberStopDuringAdminSeek(t *testing.T) { subscription := subscriptionPartition{"projects/123456/locations/us-central1-b/subscriptions/my-sub", 0} receiver := newTestMessageReceiver(t) msg1 := seqMsgWithOffsetAndSize(1, 100) msg2 := seqMsgWithOffsetAndSize(2, 100) verifiers := test.New...
explode_data.jsonl/31652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 572 }
[ 2830, 3393, 10888, 49978, 40236, 10674, 16014, 7210, 39350, 1155, 353, 8840, 836, 8, 341, 28624, 12124, 1669, 15142, 49978, 4913, 17161, 14, 16, 17, 18, 19, 20, 21, 14, 31309, 62431, 84081, 16, 1455, 37885, 29966, 34198, 17967, 497, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateResponseBody_StableMarshal(t *testing.T) { responseFrom := generateCreateSessionResponseBody("ID", "Session Public Key") transport := new(grpc.CreateResponse_Body) t.Run("non empty", func(t *testing.T) { wire, err := responseFrom.StableMarshal(nil) require.NoError(t, err) err = goproto.Unmarsh...
explode_data.jsonl/79968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 4021, 29637, 70645, 480, 55438, 1155, 353, 8840, 836, 8, 341, 21735, 3830, 1669, 6923, 4021, 5283, 29637, 445, 915, 497, 330, 5283, 3066, 5309, 1138, 197, 26445, 1669, 501, 35963, 3992, 7251, 2582, 1668, 1076, 692, 3244, 167...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestActivate(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) email := &EmailAddress{ ID: int64(1), UID: int64(1), Email: "user11@example.com", } assert.NoError(t, ActivateEmail(email)) emails, _ := GetEmailAddresses(int64(1)) assert.Len(t, emails, 3) assert.True(t, emails[0].I...
explode_data.jsonl/67891
{ "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, 31242, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 12367, 57549, 1669, 609, 79986, 515, 197, 29580, 25, 262, 526, 21, 19, 7, 16, 1326, 197, 197, 6463, 25, 256, 526, 21, 19, 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, 1...
1
func TestNodeGetVolumeStats_NotFound(t *testing.T) { // Create server and client connection s := newTestServer(t) defer s.Stop() c := csi.NewNodeClient(s.Conn()) // Get Capabilities - no volumes found id := "myvol123" gomock.InOrder( s.MockDriver(). EXPECT(). Inspect([]string{id}). Return([]*api.Vol...
explode_data.jsonl/51456
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 687 }
[ 2830, 3393, 1955, 1949, 18902, 16635, 60816, 6650, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 3538, 323, 2943, 3633, 198, 1903, 1669, 501, 2271, 5475, 1155, 340, 16867, 274, 30213, 2822, 1444, 1669, 272, 6321, 7121, 1955, 2959, 1141,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGreenPath(t *testing.T) { testGreenPath(t, blockDelivererConsumerWithRecv) testGreenPath(t, blockDelivererConsumerWithSend) assert.Equal(t, 0, connNumber) }
explode_data.jsonl/38320
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 19576, 1820, 1155, 353, 8840, 836, 8, 341, 18185, 19576, 1820, 1155, 11, 2504, 16532, 1524, 261, 29968, 2354, 63483, 340, 18185, 19576, 1820, 1155, 11, 2504, 16532, 1524, 261, 29968, 2354, 11505, 340, 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
func TestAES256KeyGenSKI(t *testing.T) { t.Parallel() provider, _, cleanup := currentTestConfig.Provider(t) defer cleanup() k, err := provider.KeyGen(&bccsp.AESKeyGenOpts{Temporary: false}) if err != nil { t.Fatalf("Failed generating AES_256 key [%s]", err) } k2, err := provider.GetKey(k.SKI()) if err != ni...
explode_data.jsonl/29278
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 330 }
[ 2830, 3393, 69168, 17, 20, 21, 1592, 9967, 81545, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 19979, 11, 8358, 21290, 1669, 1482, 2271, 2648, 36208, 1155, 340, 16867, 21290, 2822, 16463, 11, 1848, 1669, 9109, 9610, 9967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCodeVarint(t *testing.T) { var buf = make([]byte, 10) var v uint64 = 128 var n uint64 n = EncodeVarint(buf, v) var d uint64 n = DecodeVarint(buf[:n], &d) if v != d { t.Errorf("error %d != %d", v, d) } if n != SizeofVarint(v) { t.Errorf("error %d != %d", n, len(buf[:n])) } }
explode_data.jsonl/58549
{ "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, 2078, 3962, 396, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 284, 1281, 10556, 3782, 11, 220, 16, 15, 340, 2405, 348, 2622, 21, 19, 284, 220, 16, 17, 23, 198, 2405, 308, 2622, 21, 19, 198, 9038, 284, 56562, 3962, 396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInformationSchemaCreateTime(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create table t (c int)") tk.MustExec(`set @@time_zone = 'Asia/Shanghai'`) ret := tk.MustQuery("select create_time fro...
explode_data.jsonl/5773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 592 }
[ 2830, 3393, 14873, 8632, 53251, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLightModulesAsModuleSource(t *testing.T) { logp.TestingSetup() type testMetricSet struct { name string module string isDefault bool hostParser HostParser } cases := map[string]struct { registered []testMetricSet expectedMetricSets map[string][]string expecte...
explode_data.jsonl/9712
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1232 }
[ 2830, 3393, 13911, 28201, 2121, 3332, 3608, 1155, 353, 8840, 836, 8, 341, 6725, 79, 8787, 287, 21821, 2822, 13158, 1273, 54310, 1649, 2036, 341, 197, 11609, 981, 914, 198, 197, 54020, 257, 914, 198, 197, 19907, 3675, 220, 1807, 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...
1
func TestSuObjectPackValue(t *testing.T) { test := func(v1 Value) { t.Helper() enc := pack.NewEncoder(50) packValue(v1, 0, enc) s := enc.String() dec := pack.NewDecoder(s) v2 := unpackValue(dec) assert.T(t).This(v2).Is(v1) } test(SuInt(123)) test(SuStr("hello")) }
explode_data.jsonl/7120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 36459, 1190, 30684, 1130, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 2915, 3747, 16, 5162, 8, 341, 197, 3244, 69282, 741, 197, 197, 954, 1669, 3769, 7121, 19921, 7, 20, 15, 340, 197, 3223, 473, 1130, 3747, 16, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStruct2Map(t *testing.T) { m, err := Struct2Map(Person{ Name: "Korbin", Age: 22, Gender: "男", Weight: 50, }) if err != nil { logger.Println("struct to map err:", err) return } fmt.Println(m) fmt.Println(Json2Map(`{"name": "korbin", "age": 22}`)) fmt.Println(Map2Json(map[string]string{"n...
explode_data.jsonl/37130
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 9422, 17, 2227, 1155, 353, 8840, 836, 8, 341, 2109, 11, 1848, 1669, 16139, 17, 2227, 58174, 515, 197, 21297, 25, 256, 330, 42, 269, 6863, 756, 197, 197, 16749, 25, 262, 220, 17, 17, 345, 197, 9600, 1659, 25, 330, 70108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTest(t *testing.T) { tests := testSimpleCases() for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got, _ := Test(tt.args.pattern, tt.args.subject); got != tt.want { t.Errorf("Test() = %v, want %v", got, tt.want) } }) } testsErrors := testErrorCases() for _, tt := range te...
explode_data.jsonl/48664
{ "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, 2271, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 1273, 16374, 37302, 2822, 2023, 8358, 17853, 1669, 2088, 7032, 341, 197, 3244, 16708, 47152, 2644, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 743, 2684, 11, 716, 1669, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEnsureKubeHostportChains(t *testing.T) { interfaceName := "cbr0" builtinChains := []string{"PREROUTING", "OUTPUT"} jumpRule := "-m comment --comment \"kube hostport portals\" -m addrtype --dst-type LOCAL -j KUBE-HOSTPORTS" masqRule := "-m comment --comment \"SNAT for localhost access to hostports\" -o cbr0...
explode_data.jsonl/19427
{ "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, 64439, 42, 3760, 9296, 403, 1143, 1735, 1155, 353, 8840, 836, 8, 341, 58915, 1564, 675, 1669, 330, 66, 1323, 15, 698, 2233, 25628, 1143, 1735, 1669, 3056, 917, 4913, 6480, 640, 3656, 1718, 497, 330, 30301, 16707, 12428, 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...
2
func TestGetLatestReleaseTagName_Errors(t *testing.T) { _, err := GetLatestReleaseTagName("error", "error") assert.EqualError(t, err, `failed to get latest release tag name on GitHub ("https://github.com/error/error/releases/latest"), status: 404 Not Found`) }
explode_data.jsonl/33574
{ "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, 1949, 31992, 16077, 22616, 93623, 1087, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2126, 31992, 16077, 22616, 445, 841, 497, 330, 841, 5130, 6948, 12808, 1454, 1155, 11, 1848, 11, 1565, 16091, 311, 633, 5535, 4879,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecoverPendingConfig(t *testing.T) { tests := []struct { entType pb.EntryType wpending bool }{ {pb.EntryNormal, false}, {pb.EntryConfChange, true}, } for i, tt := range tests { r := newRaft(1, []uint64{1, 2}, 10, 1, NewMemoryStorage(), 0) r.appendEntry(pb.Entry{Type: tt.entType}) r.becomeCan...
explode_data.jsonl/67367
{ "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, 693, 3688, 32027, 2648, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 77655, 929, 220, 17310, 22330, 929, 198, 197, 6692, 28210, 1807, 198, 197, 59403, 197, 197, 90, 16650, 22330, 12206, 11, 895, 1583, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGroupObjxMap(t *testing.T) { v := &Value{data: [](Map){(Map)(New(1)), (Map)(New(1)), (Map)(New(1)), (Map)(New(1)), (Map)(New(1)), (Map)(New(1))}} grouped := v.GroupObjxMap(func(i int, val Map) string { return fmt.Sprintf("%v", i%2 == 0) }).data.(map[string][](Map)) assert.Equal(t, 2, len(grouped)) as...
explode_data.jsonl/23397
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 2808, 5261, 87, 2227, 1155, 353, 8840, 836, 8, 1476, 5195, 1669, 609, 1130, 90, 691, 25, 39444, 2227, 6098, 7, 2227, 2376, 3564, 7, 16, 5731, 320, 2227, 2376, 3564, 7, 16, 5731, 320, 2227, 2376, 3564, 7, 16, 5731, 320,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiscoverViaProxy(t *testing.T) { // This (complicated) test tests that when the driver is given an initial host // that is infact a proxy it discovers the rest of the ring behind the proxy // and does not store the proxies address as a host in its connection pool. proxy, err := net.Listen("tcp", "localhost...
explode_data.jsonl/11187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1051 }
[ 2830, 3393, 50002, 54428, 16219, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 320, 5689, 13724, 8, 1273, 7032, 429, 979, 279, 5579, 374, 2661, 458, 2856, 3468, 198, 197, 322, 429, 374, 4132, 531, 264, 13291, 432, 51014, 279, 2732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTemplateWithoutJsonCamelCase(t *testing.T) { var tests = []struct { input string expected string }{ {"/test/{test_id}", "/test/{test_id}"}, {"/test1/{test1_id}/test2/{test2_id}", "/test1/{test1_id}/test2/{test2_id}"}, {"/test1/{test1_id}/{test2_id}", "/test1/{test1_id}/{test2_id}"}, {"/test1/t...
explode_data.jsonl/32799
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 592 }
[ 2830, 3393, 7275, 26040, 5014, 25406, 301, 4207, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 22427, 262, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 90, 3115, 1944, 9388, 1944, 842, 9545, 3521, 1944,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetMetadataReturnsError(t *testing.T) { t.Parallel() Convey("When the api cannot connect to datastore return an internal server error", t, func() { r := httptest.NewRequest("GET", "http://localhost:22000/datasets/123/editions/2017/versions/1/metadata", nil) w := httptest.NewRecorder() mockedDataStore...
explode_data.jsonl/39399
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2782 }
[ 2830, 3393, 1949, 14610, 16446, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 93070, 5617, 445, 4498, 279, 6330, 4157, 4564, 311, 64986, 470, 458, 5306, 3538, 1465, 497, 259, 11, 2915, 368, 1476, 197, 7000, 1669, 54320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeNortelDiscovery(t *testing.T) { // http://www.thetechfirm.com/packets/nortel_btdp/btdp_nai.enc data := []byte{ 0x01, 0x00, 0x81, 0x00, 0x01, 0x00, 0x00, 0x04, 0x38, 0xe0, 0xcc, 0xde, 0x00, 0x13, 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x81, 0x01, 0xa2, 0xac, 0x13, 0x58, 0x03, 0x00, 0x04, 0x15, 0x30, 0x0c, ...
explode_data.jsonl/42256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 600 }
[ 2830, 3393, 32564, 45, 371, 301, 67400, 1155, 353, 8840, 836, 8, 341, 197, 322, 1758, 1110, 2136, 13677, 295, 4737, 8802, 905, 4322, 18382, 9612, 371, 301, 880, 1296, 79, 3470, 1296, 79, 1089, 2143, 54444, 198, 8924, 1669, 3056, 3782,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTopLevelReturnForbiddenTLA(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` return await foo `, }, entryPaths: []string{"/entry.js"}, options: config.Options{ Mode: config.ModePassThrough, AbsOutputFile: "/out.js", }, expecte...
explode_data.jsonl/38511
{ "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, 5366, 4449, 5598, 69115, 13470, 32, 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, 853, 2535, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistoryLog(t *testing.T) { db := newSQL(t) defer db.Close() bailIfErr(t, db.LogEvent("namespace", "service", "event 1")) bailIfErr(t, db.LogEvent("namespace", "service", "event 2")) bailIfErr(t, db.LogEvent("namespace", "other", "event 3")) es, err := db.EventsForService("namespace", "service") if err...
explode_data.jsonl/27172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 13424, 2201, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 501, 6688, 1155, 340, 16867, 2927, 10421, 2822, 2233, 604, 2679, 7747, 1155, 11, 2927, 5247, 1556, 445, 2231, 497, 330, 7936, 497, 330, 3087, 220, 16, 5455, 2233, 604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecursiveSliceType(t *testing.T) { type recursiveSlice []recursiveSlice r1 := recursiveSlice{0: recursiveSlice{0: nil}, 1: nil} r2 := make(recursiveSlice, 0) if err := encAndDec(r1, &r2); err != nil { t.Error(err) } }
explode_data.jsonl/43390
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 78542, 33236, 929, 1155, 353, 8840, 836, 8, 341, 13158, 30819, 33236, 3056, 49512, 33236, 198, 7000, 16, 1669, 30819, 33236, 90, 15, 25, 30819, 33236, 90, 15, 25, 2092, 2137, 220, 16, 25, 2092, 532, 7000, 17, 1669, 1281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MongoDBCollectionGetProperties_Status_ResourceARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of MongoDBCollectionGetProperties_...
explode_data.jsonl/9504
{ "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, 1245, 6363, 3506, 6482, 1949, 7903, 36449, 86346, 17911, 62, 4498, 77521, 78967, 98054, 2848, 4756, 2121, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 1453...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsStickyBuffer(t *testing.T) { for _, tt := range []struct { buf string want bool }{ { buf: "pkt_data", want: true, }, { buf: "foobarbaz", want: false, }, { buf: "http_request_line", want: true, }, } { got := isStickyBuffer(tt.buf) if got != tt.want { t.Fatalf("g...
explode_data.jsonl/59696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 3872, 623, 18964, 4095, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 26398, 220, 914, 198, 197, 50780, 1807, 198, 197, 59403, 197, 197, 515, 298, 26398, 25, 220, 330, 46775, 1769, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFindMultiple(t *testing.T) { table := Load(data) result := Find(table, "UNITED") if len(result) < 5 { t.Log("Found ", len(result)) t.Fatal("Find failed to find several matches") } }
explode_data.jsonl/5875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 9885, 32089, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 8893, 2592, 340, 9559, 1669, 7379, 15761, 11, 330, 23040, 1479, 1138, 743, 2422, 4456, 8, 366, 220, 20, 341, 197, 3244, 5247, 445, 6650, 3670, 2422, 4456, 1171, 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 ]
2
func TestAnonymousFallback(t *testing.T) { client := fakeclient.NewSimpleClientset(&corev1.ServiceAccount{ ObjectMeta: metav1.ObjectMeta{ Name: "default", Namespace: "default", }, }) kc, err := New(client, Options{}) if err != nil { t.Errorf("New() = %v", err) } reg, err := name.NewRegistry("fa...
explode_data.jsonl/76048
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 32684, 87206, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 12418, 2972, 7121, 16374, 2959, 746, 2099, 98645, 16, 13860, 7365, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414, 330, 2258, 756, 298, 90823, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSchedulable(t *testing.T) { g := testGraph(t) tcs := []struct { name string finished []string expectedTasks sets.String }{{ name: "nothing-done", finished: []string{}, expectedTasks: sets.NewString("a", "b"), }, { name: "a-done", finished: []stri...
explode_data.jsonl/69245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 832 }
[ 2830, 3393, 1949, 50, 2397, 360, 480, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1273, 11212, 1155, 340, 3244, 4837, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 1166, 24657, 414, 3056, 917, 198, 197, 42400, 25449, 7289, 6431...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScannerMinMaxIdleTime(t *testing.T) { defer leaktest.AfterTest(t)() const targetInterval = 100 * time.Millisecond const minIdleTime = 10 * time.Millisecond const maxIdleTime = 15 * time.Millisecond for count := range []int{1, 10, 20, 100} { startTime := timeutil.Now() ranges := newTestRangeSet(count, ...
explode_data.jsonl/78119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 31002, 92304, 41370, 1462, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 4777, 2169, 10256, 284, 220, 16, 15, 15, 353, 882, 71482, 198, 4777, 1308, 41370, 1462, 284, 220, 16, 15, 353, 882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetUnusedMarginFunds(t *testing.T) { t.Parallel() _, err := b.GetUnusedMarginFunds() if err == nil { t.Error("Test Failed - GetUnusedMarginFunds() error", err) } }
explode_data.jsonl/79964
{ "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, 1949, 94033, 21681, 37, 42950, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 2234, 94033, 21681, 37, 42950, 741, 743, 1848, 621, 2092, 341, 197, 3244, 6141, 445, 2271, 21379, 481, 2126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestSetLenCap(t *testing.T) { xs := []int{1, 2, 3, 4, 5, 6, 7, 8} xa := [8]int{10, 20, 30, 40, 50, 60, 70, 80} vs := ValueOf(&xs).Elem() shouldPanic(func() { vs.SetLen(10) }) shouldPanic(func() { vs.SetCap(10) }) shouldPanic(func() { vs.SetLen(-1) }) shouldPanic(func() { vs.SetCap(-1) }) shouldPanic(func(...
explode_data.jsonl/29579
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 450 }
[ 2830, 3393, 1649, 11271, 12903, 1155, 353, 8840, 836, 8, 341, 10225, 82, 1669, 3056, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 532, 197, 9591, 1669, 508, 23, 63025,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGrantSucccessAppLevelMixed(t *testing.T) { assert := assert.New(t) pn := pubnub.NewPubNub(pamConfigCopy()) pn.Config.UUID = "asd,|//&aqwe" res, _, err := pn.Grant(). Read(false).Write(true).Manage(false).Delete(true). Execute() assert.Nil(err) log.Println(res) assert.NotNil(res) assert.True(re...
explode_data.jsonl/43187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 67971, 50, 14570, 1120, 2164, 4449, 86433, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 3223, 77, 1669, 6675, 77, 392, 7121, 29162, 45, 392, 1295, 309, 2648, 12106, 12367, 3223, 77, 10753, 39636, 284, 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...
1
func TestDownloading(t *testing.T) { t.Run("downloadOkFileTest", downloadOkFileTest) t.Run("downloadNotFoundTest", downloadNotFoundTest) t.Run("downloadOkFileContentTest", downloadOkFileContentTest) t.Run("downloadTimeoutContextTest", downloadTimeoutContextTest) t.Run("downloadHeadNotSupported", downloadHeadNotSu...
explode_data.jsonl/55969
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 76017, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 12885, 11578, 1703, 2271, 497, 4139, 11578, 1703, 2271, 340, 3244, 16708, 445, 12885, 10372, 2271, 497, 4139, 10372, 2271, 340, 3244, 16708, 445, 12885, 11578, 1703, 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 TestGetAllGoFileInfo(t *testing.T) { searchDir := "testdata/pet" p := New() err := p.getAllGoFileInfo("testdata", searchDir) assert.NoError(t, err) assert.Equal(t, 2, len(p.packages.files)) }
explode_data.jsonl/63550
{ "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, 1949, 2403, 10850, 45430, 1155, 353, 8840, 836, 8, 341, 45573, 6184, 1669, 330, 92425, 4322, 295, 1837, 3223, 1669, 1532, 741, 9859, 1669, 281, 28103, 10850, 45430, 445, 92425, 497, 2711, 6184, 692, 6948, 35699, 1155, 11, 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
func TestSchemaDiff(t *testing.T) { old := mkSchema( mkTable("removed"), mkTable( "shared", mkCol("foo", TextColumn, false, false, nil), ), ) new := mkSchema( mkTable( "shared", mkCol("foo", TextColumn, false, false, nil), mkCol("bar", TextColumn, false, false, nil), ), mkTable("new"), )...
explode_data.jsonl/19113
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 8632, 21751, 1155, 353, 8840, 836, 8, 341, 61828, 1669, 23789, 8632, 1006, 197, 2109, 74, 2556, 445, 45756, 4461, 197, 2109, 74, 2556, 1006, 298, 197, 1, 6100, 756, 298, 2109, 74, 6127, 445, 7975, 497, 2918, 2933, 11, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValuesFlat(t *testing.T) { var list ParamsList qs := dORM.QueryTable("user") num, err := qs.OrderBy("id").ValuesFlat(&list, "UserName") throwFail(t, err) throwFail(t, AssertIs(num, 3)) if num == 3 { throwFail(t, AssertIs(list[0], "slene")) throwFail(t, AssertIs(list[1], "astaxie")) throwFail(t, As...
explode_data.jsonl/18138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 6227, 31019, 1155, 353, 8840, 836, 8, 341, 2405, 1140, 34352, 852, 198, 18534, 82, 1669, 294, 4365, 15685, 2556, 445, 872, 5130, 22431, 11, 1848, 1669, 32421, 43040, 445, 307, 1827, 6227, 31019, 2099, 1607, 11, 330, 18856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoggingServiceV2ListLogEntries(t *testing.T) { var nextPageToken string = "" var entriesElement *loggingpb.LogEntry = &loggingpb.LogEntry{} var entries = []*loggingpb.LogEntry{entriesElement} var expectedResponse = &loggingpb.ListLogEntriesResponse{ NextPageToken: nextPageToken, Entries: entries,...
explode_data.jsonl/77761
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 446 }
[ 2830, 3393, 34575, 1860, 53, 17, 852, 2201, 24533, 1155, 353, 8840, 836, 8, 341, 2405, 83595, 3323, 914, 284, 8389, 2405, 10695, 1691, 353, 25263, 16650, 5247, 5874, 284, 609, 25263, 16650, 5247, 5874, 16094, 2405, 10695, 284, 29838, 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...
5
func Test_AssertExpectationsForObjects_Helper(t *testing.T) { var mockedService1 = new(TestExampleImplementation) var mockedService2 = new(TestExampleImplementation) var mockedService3 = new(TestExampleImplementation) mockedService1.On("Test_AssertExpectationsForObjects_Helper", 1).Return() mockedService2...
explode_data.jsonl/8597
{ "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, 62222, 529, 17536, 804, 2461, 11543, 67828, 1155, 353, 8840, 836, 8, 8022, 2405, 46149, 1860, 16, 284, 501, 31159, 13314, 36850, 1218, 2405, 46149, 1860, 17, 284, 501, 31159, 13314, 36850, 1218, 2405, 46149, 1860, 18, 284, 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 TestGetRepoIDsForIssuesOptions(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) user := unittest.AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) for _, test := range []struct { Opts IssuesOptions ExpectedRepoIDs []int64 }{ { IssuesOptions{ AssigneeID: 2, }, []int...
explode_data.jsonl/46846
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 1949, 25243, 30466, 2461, 85828, 3798, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 2398, 19060, 1669, 19905, 11711, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25, 220, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestFieldValuerAndSetter(t *testing.T) { var ( userSchema, _ = schema.Parse(&tests.User{}, &sync.Map{}, schema.NamingStrategy{}) user = tests.User{ Model: gorm.Model{ ID: 10, CreatedAt: time.Now(), DeletedAt: gorm.DeletedAt{Time: time.Now(), Valid: true}, }, Name: "val...
explode_data.jsonl/52679
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 843 }
[ 2830, 3393, 1877, 2208, 8801, 3036, 44294, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 19060, 8632, 11, 716, 284, 10802, 8937, 2099, 23841, 7344, 22655, 609, 12996, 10104, 22655, 10802, 2067, 6469, 19816, 37790, 197, 19060, 688, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDb_ReadWrite(t *testing.T) { trun(t, func(h *dbHarness) { h.put("foo", "v1") h.getVal("foo", "v1") h.put("bar", "v2") h.put("foo", "v3") h.getVal("foo", "v3") h.getVal("bar", "v2") h.reopenDB() h.getVal("foo", "v3") h.getVal("bar", "v2") }) }
explode_data.jsonl/6002
{ "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, 7994, 38381, 7985, 1155, 353, 8840, 836, 8, 341, 25583, 359, 1155, 11, 2915, 3203, 353, 1999, 74248, 8, 341, 197, 9598, 3597, 445, 7975, 497, 330, 85, 16, 1138, 197, 9598, 670, 2208, 445, 7975, 497, 330, 85, 16, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHTTPTomcat6(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) fmt.Fprintln(w, tomcatStatus6) })) defer ts.Close() tc := Tomcat{ URL: ts.URL, Username: "tomcat", Password: "s3cret", } var acc testutil.Accu...
explode_data.jsonl/68784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 529 }
[ 2830, 3393, 2545, 51, 2828, 316, 4616, 21, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 69794, 19886, 52989, 340, 197, 11009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseComposition(t *testing.T) { searchDir := "testdata/composition" p := New() err := p.ParseAPI(searchDir, mainAPIFile, defaultParseDepth) assert.NoError(t, err) expected, err := ioutil.ReadFile(filepath.Join(searchDir, "expected.json")) assert.NoError(t, err) b, _ := json.MarshalIndent(p.swagger, "...
explode_data.jsonl/63560
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 14463, 75683, 1155, 353, 8840, 836, 8, 341, 45573, 6184, 1669, 330, 92425, 25093, 3487, 698, 3223, 1669, 1532, 741, 9859, 1669, 281, 8937, 7082, 20447, 6184, 11, 1887, 7082, 1703, 11, 1638, 14463, 19776, 340, 6948, 35699, 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 TestParsePrivateCloudID(t *testing.T) { testData := []struct { Input string Error bool Expected *PrivateCloudId }{ { // Incomplete URI Input: "", Error: true, }, { // Incomplete URI Input: "/subscriptions", Error: true, }, { // Incomplete URI Input: "/subscriptions/1...
explode_data.jsonl/55234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1069 }
[ 2830, 3393, 14463, 16787, 16055, 915, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 3056, 1235, 341, 197, 66588, 262, 914, 198, 197, 58421, 262, 1807, 198, 197, 197, 18896, 353, 16787, 16055, 764, 198, 197, 59403, 197, 197, 515, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestRequest_Ver(t *testing.T) { tests := []struct { name string request *alice.Request want string }{ { name: "", request: getReq(0), want: "1.0", }, { name: "", request: getReq(1), want: "1.0", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) ...
explode_data.jsonl/18235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 1900, 2334, 261, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 23555, 353, 63195, 9659, 198, 197, 50780, 262, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 262, 8324, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccounts_EditMultisig(t *testing.T) { mutableTree, _ := tree.NewMutableTree(0, db.NewMemDB(), 1024) b := bus.NewBus() b.SetChecker(checker.NewChecker(b)) accounts, err := NewAccounts(b, mutableTree) if err != nil { t.Fatal(err) } msigAddress := CreateMultisigAddress([20]byte{4}, 12) _ = accounts.Cr...
explode_data.jsonl/23603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 455 }
[ 2830, 3393, 41369, 66158, 40404, 285, 343, 1155, 353, 8840, 836, 8, 341, 2109, 5922, 6533, 11, 716, 1669, 4916, 7121, 11217, 6533, 7, 15, 11, 2927, 7121, 18816, 3506, 1507, 220, 16, 15, 17, 19, 340, 2233, 1669, 5828, 7121, 15073, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuspendTemplate(t *testing.T) { controller := newController() wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("") // operate the workflow. it should become in a suspended state after wf := unmarshalWF(suspendTemplate) wf, err := wfcset.Create(wf) assert.NoError(t, err) woc := newWorkflowO...
explode_data.jsonl/54370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 498 }
[ 2830, 3393, 50, 12758, 7275, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 501, 2051, 741, 6692, 8316, 746, 1669, 6461, 1418, 69, 2972, 746, 18979, 45926, 73, 53, 16, 7141, 16, 1005, 6776, 38140, 445, 5130, 197, 322, 14476, 279, 28288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetGPUDriversInstallScript(t *testing.T) { // VMSize with GPU and NVIDIA agreement for drivers distribution validSkus := []string{ "Standard_NC6", "Standard_NC12", "Standard_NC24", "Standard_NC24r", "Standard_NV6", "Standard_NV12", "Standard_NV24", "Standard_NV24r", "Standard_ND6s", "Sta...
explode_data.jsonl/21312
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 417 }
[ 2830, 3393, 1949, 24430, 4656, 81, 1945, 24690, 5910, 1155, 353, 8840, 836, 8, 1476, 197, 322, 17792, 1695, 448, 22670, 323, 33561, 9128, 369, 11788, 7982, 198, 56322, 19290, 355, 1669, 3056, 917, 515, 197, 197, 1, 19781, 95942, 21, 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...
4
func TestLevelEncoders(t *testing.T) { tests := []struct { name string expected interface{} // output of encoding InfoLevel }{ {"capital", "INFO"}, {"lower", "info"}, {"", "info"}, {"something-random", "info"}, } for _, tt := range tests { var le LevelEncoder require.NoError(t, le.UnmarshalText...
explode_data.jsonl/51369
{ "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, 4449, 7408, 52498, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 42400, 3749, 6257, 442, 2550, 315, 11170, 13074, 4449, 198, 197, 59403, 197, 197, 4913, 65063, 497, 330, 6637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleCommonJS(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` const fn = require('./foo') console.log(fn()) `, "/foo.js": ` module.exports = function() { return 123 } `, }, entryPaths: []string{"/entry.js"}, options: co...
explode_data.jsonl/38437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 16374, 10839, 12545, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 4777, 5168, 284, 1373, 8283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueries(t *testing.T) { chainID := util.GetTestChainID() lis, err := initPeer(chainID) if err != nil { t.Fail() t.Logf("Error creating peer: %s", err) } defer finitPeer(lis, chainID) var ctxt = context.Background() url := "github.com/hyperledger/fabric/examples/chaincode/go/map" cID := &pb.Cha...
explode_data.jsonl/52838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1507 }
[ 2830, 3393, 55261, 1155, 353, 8840, 836, 8, 1476, 197, 8819, 915, 1669, 4094, 2234, 2271, 18837, 915, 2822, 8810, 285, 11, 1848, 1669, 2930, 30888, 62591, 915, 340, 743, 1848, 961, 2092, 341, 197, 3244, 57243, 741, 197, 3244, 98954, 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...
9
func TestResolveTerraformModulesTwoModulesWithDependenciesIncludedDirsWithNoDependency(t *testing.T) { t.Parallel() opts, _ := options.NewTerragruntOptionsForTest("running_module_test") opts.IncludeDirs = []string{canonical(t, "../test/fixture-modules/module-a")} moduleA := &TerraformModule{ Path: canon...
explode_data.jsonl/26640
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 613 }
[ 2830, 3393, 56808, 51, 13886, 627, 28201, 11613, 28201, 2354, 48303, 84610, 6184, 16056, 2753, 36387, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 64734, 11, 716, 1669, 2606, 7121, 51402, 68305, 3850, 3798, 2461, 2271, 445, 2717...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryToFilter(t *testing.T) { if queryToFilter(common.Query{}, "my-project", "my-log") != `logName = "projects/my-project/logs/my-log"` { t.Error("Empty search") } if queryToFilter(common.Query{QueryString: "My query"}, "my-project", "my-log") != `logName = "projects/my-project/logs/my-log" AND "My query"...
explode_data.jsonl/2474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 2859, 1249, 5632, 1155, 353, 8840, 836, 8, 341, 743, 3239, 1249, 5632, 57802, 15685, 22655, 330, 2408, 33696, 497, 330, 2408, 46332, 899, 961, 1565, 839, 675, 284, 330, 17161, 34198, 33696, 77554, 34198, 46332, 39917, 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...
4
func TestNoLogRestore(t *testing.T) { ds1 := datastore.NewMapDatastore() putVals(t, ds1, 0, 10) bds, err := Wrap(ds1, NoLogdir) require.NoError(t, err) var bup bytes.Buffer require.NoError(t, bds.Backup(&bup)) putVals(t, ds1, 10, 20) ds2 := datastore.NewMapDatastore() require.NoError(t, RestoreInto(&bup, ...
explode_data.jsonl/26961
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 2753, 2201, 56284, 1155, 353, 8840, 836, 8, 341, 83336, 16, 1669, 64986, 7121, 2227, 1043, 4314, 2822, 45062, 52452, 1155, 11, 11472, 16, 11, 220, 15, 11, 220, 16, 15, 692, 2233, 5356, 11, 1848, 1669, 42187, 33783, 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...
1
func TestMeCommand(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client channel := th.BasicChannel testString := "/me hello" r1 := Client.Must(Client.ExecuteCommand(channel.Id, testString)).(*model.CommandResponse) require.NotNil(t, r1, "Command failed to execute") time.Sleep(1...
explode_data.jsonl/26344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 7823, 4062, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 71724, 1669, 270, 11716, 198, 71550, 1669, 270, 48868, 9629, 271, 18185, 703, 1669, 3521, 2660, 238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFinalizeBlockByzantineValidators(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() app := &testApp{} logger := log.NewNopLogger() cc := abciclient.NewLocalClient(logger, app) proxyApp := proxy.New(cc, logger, proxy.NopMetrics()) err := proxyApp.Start(ctx) require.N...
explode_data.jsonl/49113
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1737 }
[ 2830, 3393, 19357, 551, 4713, 1359, 89, 38357, 31748, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 28236, 1669, 609, 1944, 2164, 16094, 17060, 1669, 1487, 7121, 45, 453, 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...
1
func TestServices(t *testing.T) { testClient := newTestKubeClient() service := &corev1.Service{ ObjectMeta: metav1.ObjectMeta{Name: "test-deployment"}, } namespace := "testing" t.Run("create service", func(t *testing.T) { result, err := testClient.createOrUpdateService(namespace, service) require.NoError(t,...
explode_data.jsonl/22947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 11025, 1155, 353, 8840, 836, 8, 341, 18185, 2959, 1669, 501, 2271, 42, 3760, 2959, 741, 52934, 1669, 609, 98645, 16, 13860, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 63121, 25, 330, 1944, 6810, 52799, 7115, 197, 532, 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 TestAuthHashed(t *testing.T) { for _, conf := range []string{ "nofail", "wronguser", "wrongpass", } { t.Run(conf, func(t *testing.T) { se := NewValidator("sha256:rl3rgi4NcZkpAEcacZnQ2VuOfJ0FxAqCRaKB/SwdZoQ=", "sha256:E9JJ8stBJ7QM+nV4ZoUCeHk/gU3tPFh/5YieiJp6n2w=", []headers.AuthMethod{headers.A...
explode_data.jsonl/50256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 5087, 6370, 291, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2335, 1669, 2088, 3056, 917, 515, 197, 197, 1, 26654, 604, 756, 197, 197, 1, 34870, 872, 756, 197, 197, 1, 34870, 6385, 756, 197, 92, 341, 197, 3244, 16708, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestConfigLoadConfigurationFailTOMLConfigFileDuplicatedData(t *testing.T) { if os.Geteuid() == 0 { t.Skip(testDisabledNeedNonRoot) } tmpdir, err := ioutil.TempDir(testDir, "runtime-config-") assert.NoError(t, err) defer os.RemoveAll(tmpdir) testLoadConfiguration(t, tmpdir, func(config testRuntimeConfig...
explode_data.jsonl/5122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 2648, 5879, 7688, 19524, 51, 1898, 43, 2648, 1703, 35, 98984, 1043, 1155, 353, 8840, 836, 8, 341, 743, 2643, 2234, 68, 2423, 368, 621, 220, 15, 341, 197, 3244, 57776, 8623, 25907, 23657, 8121, 8439, 340, 197, 630, 20082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNotify(t *testing.T) { filename := "./tmp_priv_validator.json" save(filename, privValidatorFile) privValidator := LoadOrGenPrivValidatorFS(filename) now := time.Now().Unix() //task := dpos.DecideTaskByTime(now) // vote, vote voteItem := &VoteItem{ VotedNodeAddress: privValidator.Addre...
explode_data.jsonl/15825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 590 }
[ 2830, 3393, 28962, 1155, 353, 8840, 836, 8, 972, 66434, 1669, 5924, 5173, 24726, 64959, 4323, 5031, 49230, 10961, 11, 6095, 14256, 1703, 1218, 71170, 14256, 1669, 8893, 2195, 9967, 32124, 14256, 8485, 10961, 7229, 80922, 1669, 882, 13244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_crnBuilder(t *testing.T) { type args struct { useraccount string regionZone string host string } tests := []struct { name string args args want string }{ { name: "Generate for Prod", args: args{"12345", "dal12", "dal.power-iaas.cloud.ibm.com"}, want: "crn:v1:bluemix:public:p...
explode_data.jsonl/37959
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 32331, 77, 3297, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 19060, 4608, 914, 198, 197, 197, 3943, 15363, 220, 914, 198, 197, 63104, 286, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRenderSimpleElseIfstatement(t *testing.T) { template, _ := ParseString("A-{% if 0 == 2 %}in if{% elseif 2 == 2 %}in elseif{% endif %}-Z", nil) assertRender(t, template, nil, `A-in elseif-Z`) }
explode_data.jsonl/42414
{ "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, 6750, 16374, 22971, 2679, 24184, 1155, 353, 8840, 836, 8, 341, 22832, 11, 716, 1669, 14775, 703, 445, 32, 63347, 4, 421, 220, 15, 621, 220, 17, 1018, 92, 258, 421, 66365, 11755, 220, 17, 621, 220, 17, 1018, 92, 258, 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 TestReadDeltaByteArray(t *testing.T) { testData := [][]interface{}{ []interface{}{"Hello", "world"}, } for _, data := range testData { res, _ := ReadDeltaByteArray(bytes.NewReader(WriteDeltaByteArray(data))) if fmt.Sprintf("%v", data) != fmt.Sprintf("%v", res) { t.Errorf("ReadDeltaByteArray err, expect...
explode_data.jsonl/23902
{ "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, 4418, 20277, 18394, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 52931, 4970, 67066, 197, 197, 1294, 4970, 6257, 4913, 9707, 497, 330, 14615, 7115, 197, 532, 2023, 8358, 821, 1669, 2088, 67348, 341, 197, 10202, 11, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetUintKey(t *testing.T) { m := &HashMap{} _, ok := m.GetUintKey(0) if ok { t.Error("empty map should not return an item.") } c := uintptr(16) ok = m.Insert(uintptr(0), c) if !ok { t.Error("insert did not succeed.") } ok = m.Insert(uintptr(128), c) if !ok { t.Error("insert did not succeed.") }...
explode_data.jsonl/24426
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 297 }
[ 2830, 3393, 1949, 21570, 1592, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 609, 18497, 16094, 197, 6878, 5394, 1669, 296, 2234, 21570, 1592, 7, 15, 340, 743, 5394, 341, 197, 3244, 6141, 445, 3194, 2415, 1265, 537, 470, 458, 1509, 13053,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsRoot(t *testing.T) { loc := Tag{} if !loc.IsRoot() { t.Errorf("unspecified should be root.") } for i, tt := range parseTests() { loc, _ := Parse(tt.in) undef := tt.lang == "und" && tt.script == "" && tt.region == "" && tt.ext == "" if loc.IsRoot() != undef { t.Errorf("%d: was %v; want %v", i, ...
explode_data.jsonl/15828
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 3872, 8439, 1155, 353, 8840, 836, 8, 341, 71128, 1669, 12353, 16094, 743, 753, 1074, 4506, 8439, 368, 341, 197, 3244, 13080, 445, 359, 53434, 1265, 387, 3704, 13053, 197, 532, 2023, 600, 11, 17853, 1669, 2088, 4715, 18200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdatePost(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client channel := th.BasicChannel th.App.SetLicense(model.NewTestLicense()) fileIds := make([]string, 3) data, err := testutils.ReadTestFile("test.png") require.Nil(t, err) for i := 0; i < len(fileIds); i++ { fi...
explode_data.jsonl/5244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2092 }
[ 2830, 3393, 4289, 4133, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 71550, 1669, 270, 48868, 9629, 271, 70479, 5105, 4202, 9827, 7635, 712...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_FileStore_Get(t *testing.T) { storedir := "/tmp/TestStore/_get" f := NewFileStore(storedir) f.Open() pm := newPublishMsg(QOS_ONE, "/a/b/c", []byte{0xBE, 0xEF, 0xED}) pm.setMsgId(120) key := obound_mid2key(pm.MsgId()) f.Put(key, pm) if !exists(storedir + "/o.120.msg") { t.Fatalf("message not in sto...
explode_data.jsonl/37287
{ "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, 34061, 6093, 13614, 1155, 353, 8840, 836, 8, 341, 18388, 3018, 404, 1669, 3521, 5173, 80527, 6093, 19632, 455, 698, 1166, 1669, 1532, 1703, 6093, 5895, 3018, 404, 340, 1166, 12953, 741, 86511, 1669, 501, 50145, 6611, 6253, 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...
4
func TestParseLoadMap(t *testing.T) { { loadList := "" m, err := ParseLoadMap(loadList) test.S(t).ExpectNil(err) test.S(t).ExpectEquals(len(m), 0) } { loadList := "threads_running=20,threads_connected=10" m, err := ParseLoadMap(loadList) test.S(t).ExpectNil(err) test.S(t).ExpectEquals(len(m), 2) te...
explode_data.jsonl/1133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 328 }
[ 2830, 3393, 14463, 5879, 2227, 1155, 353, 8840, 836, 8, 341, 197, 515, 197, 49386, 852, 1669, 8389, 197, 2109, 11, 1848, 1669, 14775, 5879, 2227, 49092, 852, 340, 197, 18185, 808, 1155, 568, 17536, 19064, 3964, 340, 197, 18185, 808, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue332_Part1(t *testing.T) { // Next shouldn't step inside a function call protest.AllowRecording(t) withTestProcess("issue332", t, func(p *proc.Target, fixture protest.Fixture) { setFileBreakpoint(p, t, fixture.Source, 8) assertNoError(p.Continue(), t, "Continue()") assertNoError(p.Next(), t, "firs...
explode_data.jsonl/56245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 337 }
[ 2830, 3393, 42006, 18, 18, 17, 97938, 16, 1155, 353, 8840, 836, 8, 341, 197, 322, 9295, 13133, 944, 3019, 4766, 264, 729, 1618, 198, 197, 776, 1944, 29081, 52856, 1155, 340, 46948, 2271, 7423, 445, 11159, 18, 18, 17, 497, 259, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestErrorReport(t *testing.T) { t.Run("missing ident", func(t *testing.T) { _, report := ParseGraphqlDocumentString(` { me { ... on Person @foo { personID: } } } `) if !report.HasErrors() { t.Fatalf("want err, got nil") } want := "external: unexpected token - got: RB...
explode_data.jsonl/50805
{ "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, 1454, 10361, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 30616, 3524, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 6878, 1895, 1669, 14775, 11212, 1470, 7524, 703, 61528, 298, 197, 515, 13544, 197, 49294, 341, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiReturnWithDeeplyNestedArray(t *testing.T) { // Similar to TestMultiReturnWithArray, but with a special case in mind: // values of nested static arrays count towards the size as well, and any element following // after such nested array argument should be read with the correct offset, // so that it ...
explode_data.jsonl/22758
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 688 }
[ 2830, 3393, 20358, 5598, 2354, 33464, 398, 71986, 1857, 1155, 353, 8840, 836, 8, 341, 197, 322, 21476, 311, 3393, 20358, 5598, 2354, 1857, 11, 714, 448, 264, 3281, 1142, 304, 3971, 510, 197, 322, 220, 2750, 315, 24034, 1099, 18386, 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...
5
func TestGetAndSetUri(t *testing.T) { connection := connect.NewEmptyConnectionParams() assert.Equal(t, "", connection.Uri()) connection.SetUri("https://pipgoals:3000") assert.Equal(t, "https://pipgoals:3000", connection.Uri()) }
explode_data.jsonl/1894
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 1949, 3036, 1649, 13899, 1155, 353, 8840, 836, 8, 341, 54590, 1669, 4564, 7121, 3522, 4526, 4870, 741, 6948, 12808, 1155, 11, 7342, 3633, 35777, 12367, 54590, 4202, 13899, 445, 2428, 1110, 51501, 84157, 25, 18, 15, 15, 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
func TestMetablockLoad(t *testing.T) { // Create a bunch of tmp json files with invalid format and test load errors: // - invalid json // - missing signatures and signed field // - invalid signatures field // - invalid signed field // - invalid signed type // - invalid signed field for type link // - invalid si...
explode_data.jsonl/51756
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1782 }
[ 2830, 3393, 34673, 370, 1023, 5879, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 264, 15493, 315, 4174, 2951, 3542, 448, 8318, 3561, 323, 1273, 2795, 5975, 510, 197, 322, 481, 8318, 2951, 198, 197, 322, 481, 7402, 32628, 323, 8499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVolumesFromRO(t *testing.T) { taskEngine, done, _ := setupWithDefaultConfig(t) defer done() stateChangeEvents := taskEngine.StateChangeEvents() testTask := createTestTask("testVolumeROContainer") testTask.Containers[0].Image = testVolumeImage for i := 0; i < 3; i++ { cont := createTestContainer() c...
explode_data.jsonl/20162
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 711 }
[ 2830, 3393, 96325, 3830, 1285, 1155, 353, 8840, 836, 8, 341, 49115, 4571, 11, 2814, 11, 716, 1669, 6505, 2354, 3675, 2648, 1155, 340, 16867, 2814, 2822, 24291, 4072, 7900, 1669, 3383, 4571, 18942, 4072, 7900, 2822, 18185, 6262, 1669, 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 TestSHA1(t *testing.T) { uuid := NewSHA1(NameSpace_DNS, []byte("python.org")).String() want := "886313e1-3b8a-5372-9b90-0c9aee199e5d" if uuid != want { t.Errorf("SHA1: got %q expected %q", uuid, want) } }
explode_data.jsonl/31943
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 33145, 16, 1155, 353, 8840, 836, 8, 341, 10676, 2423, 1669, 1532, 33145, 16, 21182, 9914, 1557, 2448, 11, 3056, 3782, 445, 12669, 2659, 15197, 703, 741, 50780, 1669, 330, 23, 23, 21, 18, 16, 18, 68, 16, 12, 18, 65, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetContainerInfoOnNonExistContainer(t *testing.T) { mockCadvisor := &mockCadvisorClient{} kubelet, _, fakeDocker := makeTestKubelet(t) kubelet.cadvisorClient = mockCadvisor fakeDocker.containerList = []docker.APIContainers{} stats, _ := kubelet.GetContainerInfo("qux", "foo", nil) if stats != nil { t....
explode_data.jsonl/2846
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 1949, 4502, 1731, 1925, 8121, 25613, 4502, 1155, 353, 8840, 836, 8, 341, 77333, 34, 81794, 1669, 609, 16712, 34, 81794, 2959, 31483, 16463, 3760, 1149, 11, 8358, 12418, 35, 13659, 1669, 1281, 2271, 42, 3760, 1149, 1155, 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...
2
func TestPeerConnection_Renegotiation_AddTrack_Rename(t *testing.T) { api := NewAPI() lim := test.TimeOut(time.Second * 30) defer lim.Stop() report := test.CheckRoutines(t) defer report() api.mediaEngine.RegisterDefaultCodecs() pcOffer, pcAnswer, err := api.newPair(Configuration{}) if err != nil { t.Fatal(e...
explode_data.jsonl/3767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 609 }
[ 2830, 3393, 30888, 4526, 2568, 268, 65978, 7101, 21346, 15667, 2568, 1840, 1155, 353, 8840, 836, 8, 341, 54299, 1669, 1532, 7082, 741, 197, 4659, 1669, 1273, 16299, 2662, 9730, 32435, 353, 220, 18, 15, 340, 16867, 4568, 30213, 2822, 699...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetFuturesSymbolPriceTicker(t *testing.T) { t.Parallel() _, err := b.GetFuturesSymbolPriceTicker(context.Background(), currency.NewPairWithDelimiter("BTCUSD", "PERP", "_"), "") if err != nil { t.Error(err) } }
explode_data.jsonl/76608
{ "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, 1949, 37, 74606, 15090, 6972, 87278, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 293, 2234, 37, 74606, 15090, 6972, 87278, 5378, 19047, 1507, 11413, 7121, 12443, 2354, 91098, 445, 59118, 26749,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestDecodeDf(t *testing.T) { acc := &testutil.Accumulator{} err := decodeDf(acc, cephDFDump) require.NoError(t, err) for _, r := range cephDfResults { acc.AssertContainsTaggedFields(t, r.metric, r.fields, r.tags) } }
explode_data.jsonl/40225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 32564, 35, 69, 1155, 353, 8840, 836, 8, 341, 197, 4475, 1669, 609, 1944, 1314, 77538, 372, 10511, 16094, 9859, 1669, 16895, 35, 69, 48455, 11, 272, 23544, 5262, 51056, 340, 17957, 35699, 1155, 11, 1848, 692, 2023, 8358, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFIFO_detectLineJumpers(t *testing.T) { f := New(testFifoObjectKeyFunc) f.Add(mkFifoObj("foo", 10)) // nolint: errcheck f.Add(mkFifoObj("bar", 1)) // nolint: errcheck f.Add(mkFifoObj("foo", 11)) // nolint: errcheck f.Add(mkFifoObj("foo", 13)) // nolint: errcheck f.Add(mkFifoObj("zab", 30)) // nolint: er...
explode_data.jsonl/69923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 372 }
[ 2830, 3393, 37, 25997, 56457, 2460, 33979, 388, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 8623, 37, 31497, 1190, 1592, 9626, 692, 1166, 1904, 1255, 74, 37, 31497, 5261, 445, 7975, 497, 220, 16, 15, 593, 442, 308, 337, 396, 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...
5
func Test_StreamingWrite(t *testing.T) { assert := assert.New(t) input := "abcdef123456789" r1 := xxhash.NewXXHash64() r2 := xxhash.NewXXHash64() for i, v := range []byte(input) { r1.Reset() r1.Write([]byte(input[:i+1])) r2.Write([]byte(string(v))) assert.Equal(r1.String(), r2.String()) } }
explode_data.jsonl/3960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 62, 76509, 7985, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 22427, 1669, 330, 41202, 16, 17, 18, 19, 20, 21, 22, 23, 24, 1837, 7000, 16, 1669, 20908, 8296, 7121, 6148, 6370, 21, 19, 741, 7000, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2