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 TestCachedConnExecDropCacheFailed(t *testing.T) { const key = "user" var conn trackedConn r := redis.New("anyredis:8888") c := NewNodeConn(&conn, r, cache.WithExpiry(time.Second*10)) _, err := c.Exec(func(conn sqlx.SqlConn) (result sql.Result, e error) { return conn.Exec("delete from user_table where id='ke...
explode_data.jsonl/64134
{ "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, 70293, 9701, 10216, 19871, 8233, 9408, 1155, 353, 8840, 836, 8, 341, 4777, 1376, 284, 330, 872, 698, 2405, 4534, 33056, 9701, 198, 7000, 1669, 20870, 7121, 445, 3767, 21748, 25, 23, 23, 23, 23, 1138, 1444, 1669, 1532, 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...
1
func TestOpen(t *testing.T) { initOverlay(t, ` { "Replace": { "subdir2/file2.txt": "overlayfiles/subdir2_file2.txt", "subdir3/doesntexist": "this_file_doesnt_exist_anywhere", "subdir4/this_file_is_overlaid.txt": "overlayfiles/subdir4_this_file_is_overlaid.txt", "subdir5/del...
explode_data.jsonl/56050
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1119 }
[ 2830, 3393, 5002, 1155, 353, 8840, 836, 8, 341, 28248, 32755, 1155, 11, 22074, 515, 262, 330, 23107, 788, 341, 197, 197, 1, 1966, 3741, 17, 23903, 17, 3909, 788, 1698, 330, 21118, 7198, 37885, 3741, 17, 2458, 17, 3909, 756, 197, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestResync(t *testing.T) { initialObjs := []runtime.Object{ newPVC("foo", "default"), newPVC("bar", "kube-system"), } c, err := newFakeController(initialObjs...) require.NoError(t, err) fakeIndexerAdd(t, c, initialObjs...) c.resync() assert.Equal(t, 2, c.pvcQueue.Len()) }
explode_data.jsonl/46214
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 1061, 1721, 1155, 353, 8840, 836, 8, 341, 85270, 4121, 2519, 1669, 3056, 22255, 8348, 515, 197, 8638, 47, 11287, 445, 7975, 497, 330, 2258, 4461, 197, 8638, 47, 11287, 445, 2257, 497, 330, 97717, 36648, 4461, 197, 630, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublishWithCache0(t *testing.T) { dst := dssync.MutexWrap(ds.NewMapDatastore()) priv, _, err := ci.GenerateKeyPair(ci.RSA, 1024) if err != nil { t.Fatal(err) } ps := pstoremem.NewPeerstore() pid, err := peer.IDFromPrivateKey(priv) if err != nil { t.Fatal(err) } err = ps.AddPrivKey(pid, priv) if e...
explode_data.jsonl/75430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 50145, 2354, 8233, 15, 1155, 353, 8840, 836, 8, 341, 52051, 1669, 294, 778, 1721, 99014, 26787, 33783, 7121, 2227, 1043, 4314, 2398, 71170, 11, 8358, 1848, 1669, 11825, 57582, 1592, 12443, 77434, 2013, 7778, 11, 220, 16, 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...
6
func TestOptional(t *testing.T) { a := primitives.NewConstantInt(1) o := NewOptional(a) Equal(t, "1", o.String()) True(t, Exactly(t, a, o.Get())) Equal(t, 2, o.Permutations()) Equal(t, 2, o.PermutationsAll()) Nil(t, o.Permutation(1)) Equal(t, "", o.String()) Nil(t, o.Permutation(2)) Equal(t, "1", o.String()...
explode_data.jsonl/53290
{ "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, 15309, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 71194, 7121, 15472, 1072, 7, 16, 692, 22229, 1669, 1532, 15309, 2877, 340, 197, 2993, 1155, 11, 330, 16, 497, 297, 6431, 2398, 197, 2514, 1155, 11, 68490, 1155, 11, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddEvent(t *testing.T) { evt := models.Event{ Id: testUUIDString, DeviceName: testDeviceName, ProfileName: testProfileName, Origin: testOriginTime, Readings: buildReadings(), } tests := []struct { Name string Persistence bool errorExpected bool }{ {"Valid - A...
explode_data.jsonl/54243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 509 }
[ 2830, 3393, 2212, 1556, 1155, 353, 8840, 836, 8, 341, 197, 28734, 1669, 4119, 6904, 515, 197, 67211, 25, 688, 1273, 24754, 703, 345, 197, 197, 6985, 675, 25, 220, 1273, 6985, 675, 345, 197, 197, 8526, 675, 25, 1273, 8526, 675, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintSummaryStatus(t *testing.T) { tests := []struct { description string namespace string deployment string pending int32 ae proto.ActionableErr expected string }{ { description: "no deployment left and current is in success", namespace: "test", deployment: "dep"...
explode_data.jsonl/65254
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 966 }
[ 2830, 3393, 8994, 19237, 2522, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 56623, 256, 914, 198, 197, 197, 82213, 220, 914, 198, 197, 3223, 2459, 257, 526, 18, 17, 198, 197, 197, 5918, 688,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScanReposForURL(t *testing.T) { c := ChartDownloader{ Out: os.Stderr, Verify: VerifyLater, RepositoryConfig: repoConfig, RepositoryCache: repoCache, Getters: getter.All(&cli.EnvSettings{ RepositoryConfig: repoConfig, RepositoryCache: repoCache, }), } u := "http://...
explode_data.jsonl/1374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 365 }
[ 2830, 3393, 26570, 693, 966, 2461, 3144, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 21266, 92698, 515, 197, 197, 2662, 25, 1060, 2643, 77319, 345, 197, 197, 32627, 25, 1843, 25429, 29982, 345, 197, 197, 4624, 2648, 25, 15867, 2648, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDirname_RemovesFilenameComponentFromInputLines(t *testing.T) { t.Parallel() tcs := []struct { path string want string }{ {"/", "/\n"}, {"./", ".\n"}, {"\n", ".\n"}, {"/root", "/\n"}, {"/tmp/example.php", "/tmp\n"}, {"/var/tmp/example.php", "/var/tmp\n"}, {"/var/tmp", "/var\n"}, {"/var/tm...
explode_data.jsonl/51463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 6184, 606, 54551, 10088, 20759, 2189, 3830, 2505, 16794, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3244, 4837, 1669, 3056, 1235, 341, 197, 26781, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 90, 3115, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewApplicationEvent(t *testing.T) { tests := []struct { name string appID, msg string event events.ApplicationEventType wantID, wantMsg string wantEvent events.ApplicationEventType }{ {TestCreateName, "testAppId001", "testTask001", events.SubmitApplication, "testAp...
explode_data.jsonl/9773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 3564, 4988, 1556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 28236, 915, 11, 3750, 414, 914, 198, 197, 28302, 1843, 4357, 17521, 47906, 198, 197, 50780, 915, 11, 1366, 6611,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKube2IamKiamClash(t *testing.T) { config := ` experimental: kube2IamSupport: enabled: true kiamSupport: enabled: true ` confBody := singleAzConfigYaml + config _, err := ClusterFromBytes([]byte(confBody)) if err == nil || !strings.Contains(err.Error(), "not both") { t.Errorf("expected config ...
explode_data.jsonl/4382
{ "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, 42, 3760, 17, 40, 309, 42, 4932, 5066, 988, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 22074, 86703, 510, 220, 80958, 17, 40, 309, 7916, 510, 262, 8970, 25, 830, 198, 220, 595, 4932, 7916, 510, 262, 8970, 25, 830, 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...
3
func TestMemberCancelInviteNoKeys(t *testing.T) { tc, _, name := memberSetup(t) defer tc.Cleanup() username := "t_ellen" _, err := AddMember(context.TODO(), tc.G, name, username, keybase1.TeamRole_READER) if err != nil { t.Fatal(err) } assertInvite(tc, name, "561247eb1cc3b0f5dc9d9bf299da5e19%0", "keybase", k...
explode_data.jsonl/13534
{ "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, 9366, 9269, 93540, 2753, 8850, 1155, 353, 8840, 836, 8, 341, 78255, 11, 8358, 829, 1669, 4462, 21821, 1155, 340, 16867, 17130, 727, 60639, 2822, 72358, 1669, 330, 83, 62, 15671, 698, 197, 6878, 1848, 1669, 2691, 9366, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCurrencyConversionNil(t *testing.T) { res := util.Int64PtrWithCentsToFloat64Ptr(nil) assert.Nil(t, res) res = util.IntPtrWithCentsToFloat64Ptr(nil) assert.Nil(t, res) res2 := util.Float64PtrToInt64PtrWithCents(nil) assert.Nil(t, res2) res3 := util.Float64PtrToIntPtrWithCents(nil) assert.Nil(t, res3)...
explode_data.jsonl/36936
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 26321, 48237, 19064, 1155, 353, 8840, 836, 8, 341, 10202, 1669, 4094, 7371, 21, 19, 5348, 2354, 34, 805, 1249, 5442, 21, 19, 5348, 27907, 340, 6948, 59678, 1155, 11, 592, 692, 10202, 284, 4094, 67630, 2354, 34, 805, 1249, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSkipList_Range(t *testing.T) { sl := newSkipList() if sl == nil { t.Fatalf("%v: got nil", t.Name()) } for i := 0; i < 100; i++ { sl.Set(i, i) } current := 10 sl.Range(10, 20, func(v interface{}) { if v != current { t.Fatalf("range failed, want %v, got %v", current, v) } current++ }) cu...
explode_data.jsonl/54836
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 35134, 852, 2568, 844, 1155, 353, 8840, 836, 8, 341, 78626, 1669, 501, 35134, 852, 741, 743, 1739, 621, 2092, 341, 197, 3244, 30762, 4430, 85, 25, 2684, 2092, 497, 259, 2967, 2398, 197, 630, 2023, 600, 1669, 220, 15, 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...
2
func Test_templates_002(t *testing.T) { tool.Test(t, []string{"-http.templates", TEMPLATES}, new(TApp), func(app *TApp) { // Register a text renderer if err := app.Templates.RegisterRenderer(renderer.NewTextRenderer(CONTENT, "page.tmpl")); err != nil { t.Error(err) } // Serve content from / if err := app....
explode_data.jsonl/43646
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 49526, 62, 15, 15, 17, 1155, 353, 8840, 836, 8, 341, 197, 14172, 8787, 1155, 11, 3056, 917, 4913, 12, 1254, 76107, 497, 350, 17164, 30304, 2137, 501, 4140, 2164, 701, 2915, 11462, 353, 51, 2164, 8, 341, 197, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSliceGet(t *testing.T) { gopClTest(t, ` a := [1, 3, 5, 7, 9] b := a[:3] c := a[1:] d := a[1:2:3] e := "Hello, Go+"[7:] `, `package main func main() { a := []int{1, 3, 5, 7, 9} b := a[:3] c := a[1:] d := a[1:2:3] e := "Hello, Go+"[7:] } `) }
explode_data.jsonl/73654
{ "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, 33236, 1949, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 64, 1669, 508, 16, 11, 220, 18, 11, 220, 20, 11, 220, 22, 11, 220, 24, 921, 65, 1669, 264, 3447, 18, 921, 66, 1669, 264, 58, 16, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsertMempoolTxAlreadyConfirmed(t *testing.T) { store, db, teardown, err := testStore() if err != nil { t.Fatal(err) } defer teardown() // In order to reproduce real-world scenarios, we'll use a new database // transaction for each interaction with the wallet. // // We'll start off the test by creat...
explode_data.jsonl/48543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 586 }
[ 2830, 3393, 13780, 44, 3262, 1749, 31584, 38370, 47948, 1155, 353, 8840, 836, 8, 341, 57279, 11, 2927, 11, 49304, 11, 1848, 1669, 1273, 6093, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 49304, 2822, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRecordsRemoveAt(t *testing.T) { rs := records([]*record{ newRecord("rls-a.v1", releaseStub("rls-a", 1, "default", rspb.StatusSuperseded)), newRecord("rls-a.v2", releaseStub("rls-a", 2, "default", rspb.StatusDeployed)), }) if len(rs) != 2 { t.Fatal("Expected len=2 for mock") } rs.Remove("rls-a.v1")...
explode_data.jsonl/62486
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 25876, 13021, 1655, 1155, 353, 8840, 836, 8, 341, 41231, 1669, 7424, 85288, 8548, 515, 197, 8638, 6471, 445, 2381, 82, 7409, 3133, 16, 497, 4879, 33838, 445, 2381, 82, 7409, 497, 220, 16, 11, 330, 2258, 497, 42160, 65, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetChecksResultListError(t *testing.T) { db := helpers.SetupTestDatabase(t) mockAra := new(araMocks.AraService) rList := &ara.RecordList{} mockAra.On("GetRecordList", "key=trento-results&order=-id").Return( rList, fmt.Errorf("Some error"), ) checksService := NewChecksService(mockAra, db) c, err :=...
explode_data.jsonl/67831
{ "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, 1949, 49820, 2077, 852, 1454, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 30187, 39820, 2271, 5988, 1155, 692, 77333, 32, 956, 1669, 501, 7, 5059, 72577, 875, 956, 1860, 692, 7000, 852, 1669, 609, 5059, 49959, 852, 31483, 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 TestIssue12206(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t12206;") tk.MustExec("create table t12206(\n `col_tinyint_unsigned` tinyint(3) unsigned DEFAULT NULL,\n `col_double_unsi...
explode_data.jsonl/65568
{ "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, 42006, 16, 17, 17, 15, 21, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAgent_RegisterService_TranslateKeys(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), "") defer a.Shutdown() json := `{"name":"test", "port":8000, "enable_tag_override": true, "meta": {"some": "meta"}}` req, _ := http.NewRequest("PUT", "/v1/agent/service/register", strings.NewReader(json)) obj, ...
explode_data.jsonl/33626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 16810, 73124, 1860, 34932, 5075, 8850, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 30847, 1669, 1565, 4913, 606, 3252, 1944, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestContainerUser(t *testing.T) { t.Parallel() t.Run("UserNameAndGroupName", func(t *testing.T) { testContainerUser(t, "squid:squid", "31:31") }) t.Run("UserIDAndGroupName", func(t *testing.T) { testContainerUser(t, "1001:squid", "1001:31") }) t.Run("UserNameAndGroupID", func(t *testing.T) { testContainerUser(...
explode_data.jsonl/39636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 4502, 1474, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3244, 16708, 445, 18856, 3036, 50569, 497, 2915, 1155, 353, 8840, 836, 8, 314, 1273, 4502, 1474, 1155, 11, 330, 97407, 307, 14495, 446, 307, 497, 330, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAuthService_CreateUser(t *testing.T) { var u = st.User{ID: -1, Username: "uname", FirstName: "test", LastName: "user", Email: "test@email.com", Password: "pwd"} dao := dao.MockUserDao{} dao.On("Save", &u).Return(1) dao.On("GetByUsername", u.Username).Return(nil, nil) s := AuthService{&mailer, &dao, crea...
explode_data.jsonl/18889
{ "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, 90466, 34325, 1474, 1155, 353, 8840, 836, 8, 341, 2405, 575, 284, 357, 7344, 90, 915, 25, 481, 16, 11, 29545, 25, 330, 40379, 497, 49467, 25, 330, 1944, 497, 48946, 25, 330, 872, 497, 8299, 25, 330, 1944, 71776, 905, 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 TestNewResolverWithLogging(t *testing.T) { r := httptransport.NewResolver(httptransport.Config{ Logger: log.Log, }) ar, ok := r.(resolver.AddressResolver) if !ok { t.Fatal("not the resolver we expected") } lr, ok := ar.Resolver.(resolver.LoggingResolver) if !ok { t.Fatal("not the resolver we expected"...
explode_data.jsonl/78377
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 3564, 18190, 2354, 34575, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1758, 26445, 7121, 18190, 19886, 26445, 10753, 515, 197, 55861, 25, 1487, 5247, 345, 197, 3518, 69340, 11, 5394, 1669, 435, 12832, 48943, 26979, 18190, 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...
6
func TestDiscard_success(t *testing.T) { test := func(mode string) func(t *testing.T) { return func(t *testing.T) { assert := assert.New(t) server, log, cleanup := setup(t) defer cleanup() switch mode { case "ok": case "redirect": server.startClock() server.next.redirect = 3 case "unknow...
explode_data.jsonl/50
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 23477, 567, 18632, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 2915, 31356, 914, 8, 2915, 1155, 353, 8840, 836, 8, 341, 197, 853, 2915, 1155, 353, 8840, 836, 8, 341, 298, 6948, 1669, 2060, 7121, 1155, 340, 298, 41057, 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 TestRulesGeneratedMerging(t *testing.T) { yamlFile, err := ioutil.ReadFile("testdata/generated.yaml") if err != nil { t.Fatalf("Error reading test data file: %s", err.Error()) } dar, err := ParseDataAccess(yamlFile) if err != nil { t.Fatalf("Error while parsing rules: %s", err.Error()) } das := dar.Acc...
explode_data.jsonl/26669
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 26008, 15741, 44, 95296, 1155, 353, 8840, 836, 8, 341, 14522, 9467, 1703, 11, 1848, 1669, 43144, 78976, 445, 92425, 79372, 33406, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 1454, 5290, 1273, 821, 1034, 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...
3
func TestPath(t *testing.T) { driver := New("APvMjudT4IQ", "/tmp/", nil) blobRef, err := stotypes.BlobRefFromHex("d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592") assert.Ok(t, err) // base32Decode("qukfnco7qu098qeajaub021e9u6lckf4dkudmthd0b8budu9sm90") // = hex("d7a8fbb307d7809469ca9abcb0082e4f...
explode_data.jsonl/81303
{ "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, 1820, 1155, 353, 8840, 836, 8, 341, 33652, 1669, 1532, 445, 2537, 85, 44, 18138, 51, 19, 61950, 497, 3521, 5173, 28105, 2092, 692, 2233, 1684, 3945, 11, 1848, 1669, 357, 21830, 1785, 1684, 3945, 3830, 20335, 445, 67, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdateRepo(t *testing.T) { org := "org" repoName := "repository" yes := true testCases := []struct { description string repo RepoUpdateRequest statusCode int expectError bool expectRepo *FullRepo }{ { description: "Update repository", repo: RepoUpdateRequest{ RepoRequest: R...
explode_data.jsonl/6305
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1032 }
[ 2830, 3393, 4289, 25243, 1155, 353, 8840, 836, 8, 341, 87625, 1669, 330, 1775, 698, 17200, 5368, 675, 1669, 330, 23319, 698, 197, 9693, 1669, 830, 198, 18185, 37302, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 17200, 5368, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBitbucketServerCloneURLs(t *testing.T) { repo := &bitbucketserver.Repo{ ID: 1, Slug: "bar", Project: &bitbucketserver.Project{ Key: "foo", }, } cfg := schema.BitbucketServerConnection{ Token: "abc", Username: "username", Password: "password", } t.Run("ssh", func(t *testing.T) { r...
explode_data.jsonl/39375
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 723 }
[ 2830, 3393, 8344, 30410, 5475, 37677, 3144, 82, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 609, 4489, 30410, 4030, 2817, 5368, 515, 197, 29580, 25, 256, 220, 16, 345, 197, 197, 54968, 25, 330, 2257, 756, 197, 197, 7849, 25, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestReceiversBuilder_StartAll(t *testing.T) { receivers := make(Receivers) rcvCfg := &configmodels.ReceiverSettings{} receiver := &componenttest.ExampleReceiverProducer{} receivers[rcvCfg] = &builtReceiver{ logger: zap.NewNop(), receiver: receiver, } assert.Equal(t, false, receiver.Started) err :=...
explode_data.jsonl/50905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 693, 346, 1945, 3297, 38056, 2403, 1155, 353, 8840, 836, 8, 341, 17200, 346, 1945, 1669, 1281, 7, 693, 346, 1945, 340, 30295, 85, 42467, 1669, 609, 1676, 6507, 2817, 12862, 6086, 31483, 17200, 12862, 1669, 609, 8571, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOptions(t *testing.T) { for i, tt := range []struct { in []Option out options }{ 0: { out: options{ ignore: defaultIgnore, }, }, 1: { in: []Option{IgnoreDiacritics}, out: options{ ignore: [colltab.NumLevels]bool{false, true, false, true, true}, }, }, 2: { in: []Option...
explode_data.jsonl/78101
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1693 }
[ 2830, 3393, 3798, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 17853, 1669, 2088, 3056, 1235, 341, 197, 17430, 220, 3056, 5341, 198, 197, 13967, 2606, 198, 197, 59403, 197, 197, 15, 25, 341, 298, 13967, 25, 2606, 515, 571, 197, 1313...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrors(t *testing.T) { c := newQueryConverter(nil, nil) for sql, expectedErrMessage := range errorCases { _, _, err := c.ConvertSql(sql) assert.Contains(t, err.Error(), expectedErrMessage, sql) } }
explode_data.jsonl/1323
{ "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, 13877, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 501, 2859, 14920, 27907, 11, 2092, 340, 2023, 5704, 11, 3601, 7747, 2052, 1669, 2088, 1465, 37302, 341, 197, 197, 6878, 8358, 1848, 1669, 272, 36179, 8269, 13148, 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 ]
2
func TestCountingX(t *testing.T) { t.Parallel() str := "abxbxcxd" want := 3 got := algo.CountingX(str) if want != got { t.Fatalf("want: %d, got: %d", want, got) } }
explode_data.jsonl/73128
{ "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, 2507, 287, 55, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 11355, 1669, 330, 370, 7929, 8148, 9703, 1837, 50780, 1669, 220, 18, 271, 3174, 354, 1669, 27928, 6134, 287, 55, 4199, 692, 743, 1366, 961, 2684, 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 ]
2
func TestInitializeCloudProviderRateLimitConfigWithInvalidReadAndWriteRateLimitSettingsFromEnv(t *testing.T) { emptyConfig := &CloudProviderRateLimitConfig{} var rateLimitReadQPS float32 = 3.0 rateLimitReadBuckets := 10 var rateLimitWriteQPS float32 = 6.0 rateLimitWriteBuckets := 20 invalidSetting := "invalid" ...
explode_data.jsonl/12803
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1540 }
[ 2830, 3393, 9928, 16055, 5179, 11564, 16527, 2648, 2354, 7928, 4418, 3036, 7985, 11564, 16527, 6086, 3830, 14359, 1155, 353, 8840, 836, 8, 341, 197, 3194, 2648, 1669, 609, 16055, 5179, 11564, 16527, 2648, 16094, 2405, 4379, 16527, 4418, 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...
6
func TestMaxTPSByService(t *testing.T) { rand.Seed(1) // Test the "effectiveness" of the maxTPS option. assert := assert.New(t) s := getTestPriorityEngine() type testCase struct { maxTPS float64 tps float64 relativeError float64 } testCases := []testCase{ {maxTPS: 10.0, tps: 20.0, relat...
explode_data.jsonl/7958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1152 }
[ 2830, 3393, 5974, 4239, 50, 1359, 1860, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 7, 16, 340, 197, 322, 3393, 279, 330, 26061, 12781, 1, 315, 279, 1932, 4239, 50, 2999, 624, 6948, 1669, 2060, 7121, 1155, 340, 1903, 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...
8
func TestIsNotFound(t *testing.T) { testCases := []struct { name string code int body string isNotFound bool }{ { name: "should be not found when status code is 404", code: 404, body: `{"message":"not found","errors":[{"resource":"fake resource","field":"fake fie...
explode_data.jsonl/6266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 578 }
[ 2830, 3393, 3872, 10372, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 43343, 981, 526, 198, 197, 35402, 981, 914, 198, 197, 19907, 10372, 1807, 198, 197, 59403, 197, 197, 515, 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 TestListAdd(t *testing.T) { list := New() list.Add("a") list.Add("b", "c") if actualValue := list.Empty(); actualValue != false { t.Errorf("Got %v expected %v", actualValue, false) } if actualValue := list.Size(); actualValue != 3 { t.Errorf("Got %v expected %v", actualValue, 3) } if actualValue, ok :=...
explode_data.jsonl/18282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 852, 2212, 1155, 353, 8840, 836, 8, 341, 14440, 1669, 1532, 741, 14440, 1904, 445, 64, 1138, 14440, 1904, 445, 65, 497, 330, 66, 1138, 743, 5042, 1130, 1669, 1140, 11180, 2129, 5042, 1130, 961, 895, 341, 197, 3244, 13080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDealsWithExistingPods(t *testing.T) { for _, strategy := range updateStrategies() { ds := newDaemonSet("foo") ds.Spec.UpdateStrategy = *strategy manager, podControl, _, err := newTestController(ds) if err != nil { t.Fatalf("error creating DaemonSets controller: %v", err) } manager.dsStore.Add(d...
explode_data.jsonl/50322
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 1912, 1127, 2354, 53067, 23527, 82, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 8282, 1669, 2088, 2647, 2580, 69388, 368, 341, 197, 83336, 1669, 501, 89177, 1649, 445, 7975, 1138, 197, 83336, 36473, 16689, 19816, 284, 353, 619...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWAL_Snapshots(t *testing.T) { dir, cleanup := mustTempDir(t) defer cleanup() initialValues := []string{ "Hello 1", "Hello 2", "Hello 3", } ctx := context.Background() // Create a snapshot. func() { // Get started. w, err := Open(ctx, dir, WithRequireEmpty(true)) // Try a snapshot right aw...
explode_data.jsonl/70886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1169 }
[ 2830, 3393, 54, 969, 1098, 6861, 27634, 1155, 353, 8840, 836, 8, 341, 48532, 11, 21290, 1669, 1969, 12151, 6184, 1155, 340, 16867, 21290, 2822, 85270, 6227, 1669, 3056, 917, 515, 197, 197, 1, 9707, 220, 16, 756, 197, 197, 1, 9707, 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...
3
func TestErrorRollback(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t_rollback") tk.MustExec("create table t_rollback (c1 int, c2 int, primary key(c1))") tk.MustExec("insert into...
explode_data.jsonl/5771
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 1454, 32355, 1419, 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...
2
func TestInsecureConfig(t *testing.T) { cfg := InsecureConfig("http://domain.com:12345") if cfg.BaseURL != "http://domain.com:12345" { t.Errorf(`unexpected base URL. wanted "http://domain.com:12345", got %q`, cfg.BaseURL) } if cfg.CAFile != "" { t.Error("unexpected CAFile attribute") } if cfg.BearerToken != "...
explode_data.jsonl/6730
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 641, 25132, 2648, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 758, 25132, 2648, 445, 1254, 1110, 12204, 905, 25, 16, 17, 18, 19, 20, 1138, 743, 13286, 13018, 3144, 961, 330, 1254, 1110, 12204, 905, 25, 16, 17, 18, 19, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPluginStartBulkUpdate(t *testing.T) { fixture := newTestFixture(t, nil) fixture.server.ch = make(chan UpdateRequestV1) defer fixture.server.stop() ctx := context.Background() fixture.plugin.Start(ctx) defer fixture.plugin.Stop(ctx) // Start will trigger a status update when the plugin state switches...
explode_data.jsonl/27522
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 11546, 3479, 88194, 4289, 1155, 353, 8840, 836, 8, 1476, 1166, 12735, 1669, 501, 69356, 1155, 11, 2092, 340, 1166, 12735, 12638, 5329, 284, 1281, 35190, 5549, 1900, 53, 16, 340, 16867, 12507, 12638, 13227, 2822, 20985, 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...
2
func TestPatchChannel(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer th.TearDown() Client := th.Client patch := &model.ChannelPatch{ Name: new(string), DisplayName: new(string), Header: new(string), Purpose: new(string), } *patch.Name = model.NewId() *patch.DisplayName...
explode_data.jsonl/65644
{ "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, 43622, 9629, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 1005, 3803, 2320, 7210, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 3223, 754, 1669, 609, 2528, 38716, 43622, 515, 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...
6
func TestGetTimelineRequest_Validate(t *testing.T) { req := &GetTimelineRequest{} req.IdentifierType = Name req.IdentifierValue = "a schedule" req.IntervalUnit = "qwe" err := req.Validate() assert.Equal(t, err.Error(), errors.New("Provided InternalUnit is not valid.").Error()) req.IntervalUnit = Weeks err = re...
explode_data.jsonl/64416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 1949, 59641, 1900, 62, 17926, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 609, 1949, 59641, 1900, 16094, 24395, 70520, 929, 284, 3988, 198, 24395, 70520, 1130, 284, 330, 64, 9700, 698, 24395, 70855, 4562, 284, 330, 80, 896, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestREKeyRange(t *testing.T) { if testing.Short() { t.Skip() } ignoreKeyspaceShardInFieldAndRowEvents = false defer func() { ignoreKeyspaceShardInFieldAndRowEvents = true }() // Needed for this test to run if run standalone engine.watcherOnce.Do(engine.setWatch) execStatements(t, []string{ "create t...
explode_data.jsonl/10411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1336 }
[ 2830, 3393, 787, 1592, 6046, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 532, 197, 13130, 8850, 1306, 2016, 567, 641, 1877, 3036, 3102, 7900, 284, 895, 198, 16867, 2915, 368, 341, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCT_GeomGuideListConstructor(t *testing.T) { v := dml.NewCT_GeomGuideList() if v == nil { t.Errorf("dml.NewCT_GeomGuideList must return a non-nil value") } if err := v.Validate(); err != nil { t.Errorf("newly constructed dml.CT_GeomGuideList should validate: %s", err) } }
explode_data.jsonl/73139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 1162, 2646, 68, 316, 41010, 852, 13288, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 294, 1014, 7121, 1162, 2646, 68, 316, 41010, 852, 741, 743, 348, 621, 2092, 341, 197, 3244, 13080, 445, 67, 1014, 7121, 1162, 2646, 68, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAuthnCheckReportAttributesOriginJwtBoundToOrigin(t *testing.T) { s := env.NewTestSetup(env.CheckReportIstioAuthnAttributesTestOriginJwtBoundToOrigin, t) // In the Envoy config, principal_binding binds to origin s.SetFiltersBeforeMixer(client_test.JwtAuthConfig + authnConfig) // Disable the HotRestart of En...
explode_data.jsonl/72367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 5087, 77, 3973, 10361, 10516, 13298, 72756, 19568, 1249, 13298, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6105, 7121, 2271, 21821, 16978, 10600, 10361, 40, 267, 815, 5087, 77, 10516, 2271, 13298, 72756, 19568, 1249, 13298, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTotalStorageBytesInternal(t *testing.T) { type fields struct { runtime *datav1alpha1.GooseFSRuntime name string namespace string Log logr.Logger } tests := []struct { name string fields fields wantTotal int64 wantErr bool }{ { name: "test", fields: fields{ ...
explode_data.jsonl/70296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 663 }
[ 2830, 3393, 7595, 5793, 7078, 11569, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 7000, 4466, 256, 353, 5911, 402, 16, 7141, 16, 1224, 13752, 8485, 15123, 198, 197, 11609, 414, 914, 198, 197, 56623, 914, 198, 197, 24201,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleList(t *testing.T) { storage := map[string]RESTStorage{} simpleStorage := SimpleRESTStorage{} storage["simple"] = &simpleStorage selfLinker := &setTestSelfLinker{ t: t, expectedSet: "/prefix/version/simple", } handler := Handle(storage, codec, "/prefix/version", selfLinker) server :=...
explode_data.jsonl/71490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 16374, 852, 1155, 353, 8840, 836, 8, 341, 197, 16172, 1669, 2415, 14032, 60, 38307, 5793, 16094, 1903, 6456, 5793, 1669, 8993, 38307, 5793, 16094, 197, 16172, 1183, 22944, 1341, 284, 609, 22944, 5793, 198, 5200, 3939, 261, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccAlicloudSlb_importTraffic(t *testing.T) { resourceName := "alicloud_slb.traffic" resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckInstanceDestroy, Steps: []resource.TestStep{ resource.TestStep{ Config...
explode_data.jsonl/11120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 14603, 32, 415, 52178, 7442, 65, 18434, 87229, 1155, 353, 8840, 836, 8, 341, 50346, 675, 1669, 330, 31513, 52178, 11886, 65, 13, 53987, 1837, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 4703, 3973, 25, 257, 2915, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlushError(t *testing.T) { // Error the first five times we try to write a sstable. errorOps := int32(3) fs := errorfs.Wrap(vfs.NewMem(), errorfs.InjectorFunc(func(op errorfs.Op, path string) error { if op == errorfs.OpCreate && filepath.Ext(path) == ".sst" && atomic.AddInt32(&errorOps, -1) >= 0 { retu...
explode_data.jsonl/51421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 276 }
[ 2830, 3393, 46874, 1454, 1155, 353, 8840, 836, 8, 341, 197, 322, 4600, 279, 1156, 4236, 3039, 582, 1430, 311, 3270, 264, 274, 27992, 624, 18290, 38904, 1669, 526, 18, 17, 7, 18, 340, 53584, 1669, 1465, 3848, 38968, 3747, 3848, 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 TestWindowFunction(t *testing.T) { s := new(plannerSuiteWithOptimizeVars) s.plannerSuite = createPlannerSuite() s.optimizeVars = map[string]string{ variable.TiDBWindowConcurrency: "1", } defer func() { s.optimizeVars = nil }() var input, output []string planSuiteUnexportedData.GetTestCases(t, &input, ...
explode_data.jsonl/50229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 4267, 5152, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 36609, 4887, 28000, 2354, 21367, 11853, 28305, 340, 1903, 7864, 4887, 28000, 284, 1855, 2120, 4887, 28000, 2822, 1903, 74497, 28305, 284, 2415, 14032, 30953, 515, 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 TestGenBankSlice(t *testing.T) { in := testutils.ReadTestfile(t, "NC_001422.gb") state := pars.FromString(in) parser := pars.AsParser(GenBankParser) exp := testutils.ReadTestfile(t, "NC_001422_part.gb") result, err := parser.Parse(state) if err != nil { t.Errorf("parser returned %v\nBuffer:\n%q", err, st...
explode_data.jsonl/6539
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 9967, 25828, 33236, 1155, 353, 8840, 836, 8, 341, 17430, 1669, 1273, 6031, 6503, 2271, 1192, 1155, 11, 330, 9949, 62, 15, 15, 16, 19, 17, 17, 77262, 1138, 24291, 1669, 10154, 11439, 703, 5900, 340, 55804, 1669, 10154, 2024...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGet_archiveSubdirWild(t *testing.T) { dst := tempDir(t) u := testModule("archive-rooted/archive.tar.gz") u += "//*" if err := Get(dst, u); err != nil { t.Fatalf("err: %s", err) } mainPath := filepath.Join(dst, "hello.txt") if _, err := os.Stat(mainPath); err != nil { t.Fatalf("err: %s", err) } }
explode_data.jsonl/816
{ "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, 1949, 42873, 3136, 3741, 40603, 1155, 353, 8840, 836, 8, 341, 52051, 1669, 2730, 6184, 1155, 340, 10676, 1669, 1273, 3332, 445, 16019, 39214, 291, 71627, 28048, 20963, 1138, 10676, 1421, 330, 21417, 698, 743, 1848, 1669, 2126,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBitMatrixParser_setMirror(t *testing.T) { img, _ := gozxing.NewSquareBitMatrix(21) p, _ := NewBitMatrixParser(img) p.parsedVersion = &Version{} p.parsedFormatInfo = &FormatInformation{} p.SetMirror(true) if p.mirror != true { t.Fatalf("p.mirror must be true") } if p.parsedVersion != nil { t.Fatal...
explode_data.jsonl/32237
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 8344, 6689, 6570, 2602, 54216, 1155, 353, 8840, 836, 8, 341, 39162, 11, 716, 1669, 728, 66700, 287, 7121, 33271, 8344, 6689, 7, 17, 16, 340, 3223, 11, 716, 1669, 1532, 8344, 6689, 6570, 11022, 692, 3223, 556, 18112, 5637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue6651(t *testing.T) { db := newTestDB(t, "people") defer closeDB(t, db) var v string want := "error in rows.Next" rowsCursorNextHook = func(dest []driver.Value) error { return fmt.Errorf(want) } defer func() { rowsCursorNextHook = nil }() err := db.QueryRow("SELECT|people|name|").Scan(&v) if ...
explode_data.jsonl/15990
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 42006, 21, 21, 20, 16, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 501, 2271, 3506, 1155, 11, 330, 16069, 1138, 16867, 3265, 3506, 1155, 11, 2927, 692, 2405, 348, 914, 271, 50780, 1669, 330, 841, 304, 6978, 18501, 698, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetTransactionsWithOptions(t *testing.T) { sandboxResp, _ := testClient.CreateSandboxPublicToken(sandboxInstitution, testProducts) tokenResp, _ := testClient.ExchangePublicToken(sandboxResp.PublicToken) startDate := time.Now().Add(-365 * 24 * time.Hour).Format(iso8601TimeFormat) endDate := time.Now().Form...
explode_data.jsonl/49551
{ "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, 1949, 48761, 74238, 1155, 353, 8840, 836, 8, 341, 1903, 31536, 36555, 11, 716, 1669, 1273, 2959, 7251, 50, 31536, 12676, 3323, 1141, 31536, 641, 10446, 11, 1273, 17746, 340, 43947, 36555, 11, 716, 1669, 1273, 2959, 86997, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestShareImage(t *testing.T) { args := &SharedUser{ AccountId: "id", } err := BBC_CLIENT.ShareImage(BBC_TestImageId, args) ExpectEqual(t.Errorf, err, nil) }
explode_data.jsonl/4072
{ "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, 12115, 1906, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 609, 16997, 1474, 515, 197, 197, 62545, 25, 330, 307, 756, 197, 532, 9859, 1669, 18096, 22521, 10849, 546, 1906, 5349, 4897, 32541, 1906, 764, 11, 2827, 340, 35911, 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
func TestShadowTransport(t *testing.T) { //create a server transport := NewTransport("1234", "CHACHA20-IETF-POLY1305", "127.0.0.1:1236") //create client buffer clientBuffer := make([]byte, 4) //call dial on client and check error clientConn, dialErr := transport.Dial() if dialErr != nil { fmt.Println("clientC...
explode_data.jsonl/18074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 23667, 27560, 1155, 353, 8840, 836, 8, 341, 197, 322, 3182, 264, 3538, 198, 197, 26445, 1669, 1532, 27560, 445, 16, 17, 18, 19, 497, 330, 2149, 11873, 32, 17, 15, 21477, 42239, 9299, 1930, 56, 16, 18, 15, 20, 497, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestHashContainer(t *testing.T) { testCases := []struct { name string image string args []string containerPort int32 expectedHash uint64 }{ { name: "test_container", image: "foo/image:v1", args: []string{ "/bin/sh", "-c", "echo abc", }, container...
explode_data.jsonl/18705
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 318 }
[ 2830, 3393, 6370, 4502, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 31426, 260, 914, 198, 197, 31215, 688, 3056, 917, 198, 197, 53290, 7084, 526, 18, 17, 198, 197, 42400, 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, 1, 1, 1, 1, 1...
2
func TestRPC(t *testing.T) { serverlogger := govec.InitGoVector("server", "serverlogfile", govec.GetDefaultConfig()) clientlogger := govec.InitGoVector("client", "clientlogfile", govec.GetDefaultConfig()) go rpcserver(serverlogger) time.Sleep(time.Millisecond) go rpcclient(clientlogger) <-done server_vc := serve...
explode_data.jsonl/66627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 29528, 1155, 353, 8840, 836, 8, 341, 41057, 9786, 1669, 728, 4083, 26849, 10850, 3781, 445, 4030, 497, 330, 4030, 75566, 497, 728, 4083, 2234, 3675, 2648, 2398, 25291, 9786, 1669, 728, 4083, 26849, 10850, 3781, 445, 2972, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWatchEtcdError(t *testing.T) { codec := latest.Codec fakeClient := NewFakeEtcdClient(t) fakeClient.expectNotFoundGetSet["/some/key"] = struct{}{} fakeClient.WatchImmediateError = fmt.Errorf("immediate error") h := EtcdHelper{fakeClient, codec, versioner} got := <-h.Watch("/some/key", 4).ResultChan() if...
explode_data.jsonl/40977
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 14247, 31860, 4385, 1454, 1155, 353, 8840, 836, 8, 341, 43343, 66, 1669, 5535, 20274, 66, 198, 1166, 726, 2959, 1669, 1532, 52317, 31860, 4385, 2959, 1155, 340, 1166, 726, 2959, 25952, 10372, 1949, 1649, 1183, 14, 14689, 688...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouteGroupAddGroup(t *testing.T) { y := RouteGroup("") g := RouteGroup("/group") y.AddGroup(g) if len(y.routes) != 1 { t.Fatalf("Added 1 route group, found %d in the list.", len(y.routes)) } if y.routes[0].(*GroupRoute).prefix != "/group" { t.Fatalf("Added a /group route prefix. Found %s", y.routes...
explode_data.jsonl/35807
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 4899, 2808, 2212, 2808, 1155, 353, 8840, 836, 8, 341, 14522, 1669, 9572, 2808, 31764, 3174, 1669, 9572, 2808, 4283, 4074, 5130, 14522, 1904, 2808, 3268, 692, 743, 2422, 7021, 39306, 8, 961, 220, 16, 341, 197, 3244, 30762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCachedObjectClient_errors(t *testing.T) { objectsInStorage := []string{ // table with just common dbs "table1/db1.gz", "table1/db2.gz", } objectClient := newMockObjectClient(objectsInStorage) cachedObjectClient := newCachedObjectClient(objectClient) // do the initial listing objects, commonPrefix...
explode_data.jsonl/18633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 631 }
[ 2830, 3393, 70293, 1190, 2959, 20196, 1155, 353, 8840, 836, 8, 341, 197, 19210, 641, 5793, 1669, 3056, 917, 515, 197, 197, 322, 1965, 448, 1101, 4185, 84581, 198, 197, 197, 1, 2005, 16, 29357, 16, 20963, 756, 197, 197, 1, 2005, 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 TestGetFuturesKlineData(t *testing.T) { t.Parallel() _, err := b.GetFuturesKlineData(context.Background(), currency.NewPairWithDelimiter("BTCUSD", "PERP", "_"), "1M", 5, time.Time{}, time.Time{}) if err != nil { t.Error(err) } _, err = b.GetFuturesKlineData(context.Background(), currency.NewPairWithDelimit...
explode_data.jsonl/76602
{ "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, 1949, 37, 74606, 42, 1056, 1043, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 293, 2234, 37, 74606, 42, 1056, 1043, 5378, 19047, 1507, 11413, 7121, 12443, 2354, 91098, 445, 59118, 26749, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetFeeds(t *testing.T) { // test with an individual user assert.NoError(t, PrepareTestDatabase()) user := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) actions, err := GetFeeds(GetFeedsOptions{ RequestedUser: user, RequestingUserID: user.ID, IncludePrivate: true, OnlyPerformedBy: false, ...
explode_data.jsonl/74214
{ "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, 1949, 6123, 6767, 1155, 353, 8840, 836, 8, 341, 197, 322, 1273, 448, 458, 3842, 1196, 198, 6948, 35699, 1155, 11, 31166, 2271, 5988, 2398, 19060, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25, 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...
2
func TestROM_BusReader_Success(t *testing.T) { contents := sampleROM() rom, err := NewROM("", contents) if err != nil { t.Fatal(err) } r := rom.BusReader(0x00FFEA) p := uint16(0) err = binary.Read(r, binary.LittleEndian, &p) if err != nil { t.Fatal(err) } if p != 0x80c9 { t.Fatal("expected NMI vector a...
explode_data.jsonl/69475
{ "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, 3361, 1668, 355, 5062, 87161, 1155, 353, 8840, 836, 8, 341, 197, 17610, 1669, 6077, 3361, 741, 197, 441, 11, 1848, 1669, 1532, 3361, 19814, 8794, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 7000,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlainEncodeFloat32s(t *testing.T) { testCases := []struct { f32s []float32 expectedResult []byte }{ {nil, []byte{}}, {[]float32{}, []byte{}}, {[]float32{1}, []byte{0, 0, 128, 63}}, {[]float32{1.0}, []byte{0, 0, 128, 63}}, {[]float32{-1}, []byte{0, 0, 128, 191}}, {[]float32{-1.0}, []...
explode_data.jsonl/28457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 438 }
[ 2830, 3393, 26982, 32535, 5442, 18, 17, 82, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 1166, 18, 17, 82, 1843, 3056, 3649, 18, 17, 198, 197, 42400, 2077, 3056, 3782, 198, 197, 59403, 197, 197, 90, 8385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidationPluginNotFound(t *testing.T) { ccID := "mycc" tx := getEnv(ccID, nil, createRWset(t, ccID), t) l := createMockLedger(t, ccID) b := &common.Block{ Data: &common.BlockData{Data: [][]byte{protoutil.MarshalOrPanic(tx)}}, Header: &common.BlockHeader{}, } pm := &mocks.Mapper{} pm.On("Factory...
explode_data.jsonl/47823
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 13799, 11546, 10372, 1155, 353, 8840, 836, 8, 341, 63517, 915, 1669, 330, 2408, 638, 698, 46237, 1669, 633, 14359, 31424, 915, 11, 2092, 11, 1855, 56368, 746, 1155, 11, 12527, 915, 701, 259, 340, 8810, 1669, 1855, 11571, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExistingIAM(t *testing.T) { lifecycleOverrides := []string{"IAMRole=ExistsAndWarnIfChanges", "IAMRolePolicy=ExistsAndWarnIfChanges", "IAMInstanceProfileRole=ExistsAndWarnIfChanges"} runTestAWS(t, "existing-iam.example.com", "existing_iam", "v1alpha2", false, 3, false, false, lifecycleOverrides) }
explode_data.jsonl/17505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 53067, 73707, 1155, 353, 8840, 836, 8, 341, 8810, 19517, 80010, 1669, 3056, 917, 4913, 73707, 9030, 28, 15575, 3036, 38244, 2679, 11317, 497, 330, 73707, 9030, 13825, 28, 15575, 3036, 38244, 2679, 11317, 497, 330, 73707, 2523,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepository_Execute(t *testing.T) { asst := assert.New(t) sql := `select 1` _, err := testRepo.Execute(sql) asst.Nil(err, common.CombineMessageWithError("test Execute() failed", err)) }
explode_data.jsonl/47436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 4624, 83453, 1155, 353, 8840, 836, 8, 341, 60451, 267, 1669, 2060, 7121, 1155, 692, 30633, 1669, 1565, 1742, 220, 16, 3989, 197, 6878, 1848, 1669, 1273, 25243, 13827, 13148, 692, 60451, 267, 59678, 3964, 11, 4185, 31124, 205...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSample1(t *testing.T) { n := 7 A := []int{3, 1, 6, 7, 2, 5, 4} X := []int{1, 2, 3, 4, 5, 6, 7} expect := []int{0, 1, 1, 2, 1, 0, 0} runSample(t, n, A, X, expect) }
explode_data.jsonl/18186
{ "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, 17571, 16, 1155, 353, 8840, 836, 8, 341, 9038, 1669, 220, 22, 198, 22985, 1669, 3056, 396, 90, 18, 11, 220, 16, 11, 220, 21, 11, 220, 22, 11, 220, 17, 11, 220, 20, 11, 220, 19, 532, 22123, 1669, 3056, 396, 90, 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 TestAuthCmd(t *testing.T) { credentialmanager.MockAuthCreds = true endPoint, apiToken, err := credentialmanager.GetCreds() if err != nil { t.Error(err) return } buf := new(bytes.Buffer) rootCmd.SetOutput(buf) args := []string{ "auth", fmt.Sprintf("--endpoint=%s", endPoint.String()), fmt.Sprin...
explode_data.jsonl/3773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 5087, 15613, 1155, 353, 8840, 836, 8, 1476, 197, 66799, 13297, 24664, 5087, 34, 53369, 284, 830, 271, 6246, 2609, 11, 6330, 3323, 11, 1848, 1669, 40207, 13297, 2234, 34, 53369, 741, 743, 1848, 961, 2092, 341, 197, 3244, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAutoSyncConfigServicesNormal2NotModified(t *testing.T) { client := createMockApolloConfig(120) server := runLongNotmodifiedConfigResponse() newAppConfig := getTestAppConfig() newAppConfig.IP = server.URL time.Sleep(1 * time.Second) newAppConfig.NextTryConnTime = 0 client.appConfig = newAppConfig apoll...
explode_data.jsonl/17968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 362 }
[ 2830, 3393, 13253, 12154, 2648, 11025, 12206, 17, 2623, 19148, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1855, 11571, 95909, 2648, 7, 16, 17, 15, 340, 41057, 1669, 1598, 6583, 2623, 27162, 2648, 2582, 741, 8638, 2164, 2648, 1669, 633, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogBlockHeight(t *testing.T) { logger := logs.NewLogger(100) f, err := ioutil.TempFile("", "blockLogger") if err != nil { t.Fatalf("faile create tmp file:%v\n", err) } defer os.Remove(f.Name()) config := fmt.Sprintf(`{"filename":"%s"}`, f.Name()) logger.SetLogger(logs.AdapterFile, config) rawBlockBy...
explode_data.jsonl/82090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 444 }
[ 2830, 3393, 2201, 4713, 3640, 1155, 353, 8840, 836, 8, 341, 17060, 1669, 18422, 7121, 7395, 7, 16, 15, 15, 340, 1166, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 4574, 7395, 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...
6
func TestGetStringValue(t *testing.T) { client := createMockApolloConfig(120) defaultValue := "j" //test default v := client.GetStringValue("joe", defaultValue) Assert(t, defaultValue, Equal(v)) //normal value v = client.GetStringValue("string", defaultValue) Assert(t, "value", Equal(v)) }
explode_data.jsonl/17967
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 48905, 1130, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1855, 11571, 95909, 2648, 7, 16, 17, 15, 340, 11940, 1130, 1669, 330, 73, 1837, 197, 322, 1944, 1638, 198, 5195, 1669, 2943, 21166, 1130, 445, 73, 4644, 497, 20163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImports(t *testing.T) { var err error var o *owlfunctional.Ontology o, err = OntologyFromReader(strings.NewReader(` Prefix(:=<http://sub-ont#>) Prefix(owl:=<http://www.w3.org/2002/07/owl#>) Prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>) Prefix(xml:=<http://www.w3.org/XML/1998/namespace>) P...
explode_data.jsonl/44457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 469 }
[ 2830, 3393, 31250, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 198, 2405, 297, 353, 9605, 49228, 8382, 406, 2449, 271, 22229, 11, 1848, 284, 17819, 2449, 3830, 5062, 51442, 68587, 61528, 10025, 5060, 3879, 38698, 1254, 1110, 1966, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCommitRepoAction(t *testing.T) { samples := []struct { userID int64 repositoryID int64 commitRepoActionOptions CommitRepoActionOptions action Action }{ { userID: 2, repositoryID: 2, commitRepoActionOptions: CommitRepoActionOptions{ Ref...
explode_data.jsonl/74211
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1334 }
[ 2830, 3393, 33441, 25243, 2512, 1155, 353, 8840, 836, 8, 341, 1903, 4023, 1669, 3056, 1235, 341, 197, 19060, 915, 1698, 526, 21, 19, 198, 197, 17200, 3099, 915, 310, 526, 21, 19, 198, 197, 197, 17413, 25243, 2512, 3798, 9205, 25243, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadConfigFile(t *testing.T) { c, err := NewContainer(ContainerName) if err != nil { t.Errorf(err.Error()) } if err := c.LoadConfigFile(c.ConfigFileName()); err != nil { t.Errorf(err.Error()) } }
explode_data.jsonl/2769
{ "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, 2648, 1703, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 1532, 4502, 75145, 675, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 3964, 6141, 2398, 197, 630, 743, 1848, 1669, 272, 13969, 2648, 1703, 1337, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetLeavesByHashNotPresent(t *testing.T) { t.Run("Success", func(t *testing.T) { cleanTestDB(t, db) tree := createTreeOrPanic(db, testonly.LogTree) s := NewLogStorage(db, nil) runLogTX(t, s, tree, func(ctx context.Context, tx storage.LogTreeTX) error { hashes := [][]byte{[]byte("thisdoesn'texist")}...
explode_data.jsonl/30691
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 472 }
[ 2830, 3393, 1949, 2304, 4693, 1359, 6370, 2623, 21195, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 7188, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 2675, 2271, 3506, 1155, 11, 2927, 340, 197, 51968, 1669, 1855, 6533, 2195...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidEllipticCurve(t *testing.T) { signer256 := ecDecrypterSigner{privateKey: ecTestKey256} signer384 := ecDecrypterSigner{privateKey: ecTestKey384} signer521 := ecDecrypterSigner{privateKey: ecTestKey521} _, err := signer256.signPayload([]byte{}, ES384) if err == nil { t.Error("should not generate E...
explode_data.jsonl/63206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 7928, 42710, 11442, 292, 31325, 1155, 353, 8840, 836, 8, 341, 69054, 261, 17, 20, 21, 1669, 11942, 89660, 261, 7264, 261, 90, 1996, 1592, 25, 11942, 2271, 1592, 17, 20, 21, 532, 69054, 261, 18, 23, 19, 1669, 11942, 89660...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewProcessStateDelegater(t *testing.T) { t.Parallel() mockProcState := &MockProcessState{} procState := newProcessStateDelegater(mockProcState) mockProcState.On("ExitCode"). Once(). Return(111) require.Equal(t, procState.ExitCode(), 111) mockProcState.AssertExpectations(t) mockProcState...
explode_data.jsonl/58519
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 319 }
[ 2830, 3393, 3564, 7423, 1397, 1912, 1937, 962, 1155, 353, 8840, 836, 8, 972, 3244, 41288, 7957, 3568, 77333, 24508, 1397, 1669, 609, 11571, 7423, 1397, 90, 1771, 197, 15782, 1397, 1669, 501, 7423, 1397, 1912, 1937, 962, 30389, 24508, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDontCacheBrokenHTTP2Conn(t *testing.T) { cst := newClientServerTest(t, h2Mode, HandlerFunc(func(w ResponseWriter, r *Request) {}), optQuietLog) defer cst.close() var brokenState brokenState cst.tr.Dial = func(netw, addr string) (net.Conn, error) { c, err := net.Dial(netw, addr) if err != nil { t.E...
explode_data.jsonl/14187
{ "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, 35, 544, 8233, 90526, 9230, 17, 9701, 1155, 353, 8840, 836, 8, 341, 1444, 267, 1669, 501, 2959, 5475, 2271, 1155, 11, 305, 17, 3636, 11, 19954, 9626, 18552, 3622, 5949, 6492, 11, 435, 353, 1900, 8, 4687, 701, 3387, 94984...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTargetAnnotation(t *testing.T) { cases := []struct { name string pa *PodAutoscaler wantTarget int32 wantOk bool }{{ name: "not present", pa: pa(map[string]string{}), wantTarget: 0, wantOk: false, }, { name: "present", pa: pa(map[string]string{ autos...
explode_data.jsonl/32167
{ "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, 6397, 19711, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 3223, 64, 260, 353, 23527, 19602, 436, 63084, 198, 197, 50780, 6397, 526, 18, 17, 198, 197, 50780, 11578, 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...
3
func TestOrgSpaces(t *testing.T) { Convey("Get spaces by org", t, func() { setup(MockRoute{"GET", "/v2/organizations/foo/spaces", []string{orgSpacesPayload}, "", 200, "", nil}, t) defer teardown() c := &Config{ ApiAddress: server.URL, Token: "foobar", } client, err := NewClient(c) So(err, Should...
explode_data.jsonl/4429
{ "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, 42437, 71324, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 1949, 12621, 553, 1240, 497, 259, 11, 2915, 368, 341, 197, 84571, 66436, 4899, 4913, 3806, 497, 3521, 85, 17, 14, 69253, 60555, 26734, 2434, 497, 3056, 917, 90,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetChartCandles(t *testing.T) { _, err := h.GetCandles("BTCUSD", "", "") if err != nil { t.Error("Test faild - HitBTC GetChartData() error", err) } }
explode_data.jsonl/9483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 1949, 14488, 34, 20125, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 305, 2234, 34, 20125, 445, 59118, 26749, 497, 7342, 14676, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 2271, 3690, 67, 481, 15882, 59118, 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 ]
2
func TestDigestFromPath(t *testing.T) { for _, testcase := range []struct { path string expected digest.Digest multilevel bool err error }{ { path: "/docker/registry/v2/blobs/sha256/99/9943fffae777400c0344c58869c4c2619c329ca3ad4df540feda74d291dd7c86/data", multilevel: true, exp...
explode_data.jsonl/8268
{ "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, 45217, 3830, 1820, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 70080, 1669, 2088, 3056, 1235, 341, 197, 26781, 981, 914, 198, 197, 42400, 256, 20882, 909, 15153, 198, 197, 2109, 494, 457, 889, 1807, 198, 197, 9859, 286, 1465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestDoctest(t *testing.T) { src := ` s1 -- >>> a b ` expected := ` Doc Section[s1] Doctest[">>> a\nb"] ` assertParse(t, expected, src) }
explode_data.jsonl/21264
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 5404, 67880, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 22074, 82, 16, 198, 26469, 20154, 264, 198, 65, 198, 3989, 42400, 1669, 22074, 9550, 198, 197, 9620, 11880, 16, 921, 197, 197, 5404, 67880, 58, 755, 2452, 264, 1699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestSetParameter(t *testing.T) { dir, err := ioutil.TempDir("", "") if err != nil { t.Fatal("Failed to create temporary directory") } // clean up tmp dir defer os.RemoveAll(dir) err = SetParameter(dir, "testParam", "testVal") assert.NoError(t, err, "Error occurred but none expected") assert.Equal(t, "...
explode_data.jsonl/52026
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 1649, 4971, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 14676, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 445, 9408, 311, 1855, 13340, 6220, 1138, 197, 630, 197, 322, 4240, 705, 4174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestList(t *testing.T) { hf := New("/test") hf.RegisterCreateHandler(static.New("create")) hf.RegisterGetHandler(static.New("get")) hf.RegisterDeleteHandler(static.New("delete")) hf.RegisterUpdateHandler(static.New("update")) hf.RegisterListHandler(static.New("list")) hf.RegisterPatchHandler(static.New("pat...
explode_data.jsonl/10013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 852, 1155, 353, 8840, 836, 8, 341, 9598, 69, 1669, 1532, 4283, 1944, 1138, 9598, 69, 19983, 4021, 3050, 27610, 7121, 445, 3182, 5455, 9598, 69, 19983, 1949, 3050, 27610, 7121, 445, 455, 5455, 9598, 69, 19983, 6435, 3050, 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...
3
func TestQueryRelate(t *testing.T) { // post := &Post{Id: 2} // qs := dORM.QueryRelate(post, "Tags") // num, err := qs.Count() // throwFailNow(t, err) // throwFailNow(t, AssertIs(num, 2)) // var tags []*Tag // num, err = qs.All(&tags) // throwFailNow(t, err) // throwFailNow(t, AssertIs(num, 2)) // throwFail...
explode_data.jsonl/18143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 2859, 6740, 349, 1155, 353, 8840, 836, 8, 341, 197, 322, 1736, 1669, 609, 4133, 90, 764, 25, 220, 17, 630, 197, 322, 32421, 1669, 294, 4365, 15685, 6740, 349, 19630, 11, 330, 15930, 1138, 197, 322, 1629, 11, 1848, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExecutorDriverExecutorRegisteredEvent(t *testing.T) { setTestEnv(t) ch := make(chan bool, 2) // Mock Slave process to respond to registration event. server := testutil.NewMockSlaveHttpServer(t, func(rsp http.ResponseWriter, req *http.Request) { reqPath, err := url.QueryUnescape(req.URL.String()) assert...
explode_data.jsonl/76146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 513 }
[ 2830, 3393, 25255, 11349, 25255, 41430, 1556, 1155, 353, 8840, 836, 8, 341, 8196, 2271, 14359, 1155, 340, 23049, 1669, 1281, 35190, 1807, 11, 220, 17, 340, 197, 322, 14563, 59368, 1882, 311, 5889, 311, 12227, 1538, 624, 41057, 1669, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestECDSAPrivateKeySKI(t *testing.T) { t.Parallel() provider, _, cleanup := currentTestConfig.Provider(t) defer cleanup() k, err := provider.KeyGen(&bccsp.ECDSAKeyGenOpts{Temporary: false}) if err != nil { t.Fatalf("Failed generating ECDSA key [%s]", err) } ski := k.SKI() if len(ski) == 0 { t.Fatal("...
explode_data.jsonl/29255
{ "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, 7498, 5936, 2537, 81, 731, 1592, 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...
3
func TestParseRequest(t *testing.T) { d := []byte(data) r := AllocRequest(32) r.input = uintptr(unsafe.Pointer(&d[0])) r.inputLen = uintptr(len(d)) ParseRequest(r) fmt.Println("method: ", r.Method()) fmt.Println("path: ", r.Path()) fmt.Println("headers: count", r.NumHeaders()) for i := 0; i < r.NumHeaders(); i...
explode_data.jsonl/59034
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 14463, 1900, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 3056, 3782, 2592, 340, 7000, 1669, 46685, 1900, 7, 18, 17, 340, 7000, 10046, 284, 38190, 7, 38157, 41275, 2099, 67, 58, 15, 10907, 7000, 10046, 11271, 284, 38190, 6901...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReserveBeginExecute(t *testing.T) { db, tsv := setupTabletServerTest(t, "") defer tsv.StopService() defer db.Close() target := querypb.Target{TabletType: topodatapb.TabletType_PRIMARY} _, transactionID, reservedID, _, err := tsv.ReserveBeginExecute(ctx, &target, []string{"select 43"}, nil, "select 42", n...
explode_data.jsonl/80024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 1061, 5852, 11135, 17174, 1155, 353, 8840, 836, 8, 341, 20939, 11, 259, 3492, 1669, 6505, 2556, 83, 5475, 2271, 1155, 11, 14676, 16867, 259, 3492, 30213, 1860, 741, 16867, 2927, 10421, 741, 28861, 1669, 3239, 16650, 35016, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDepositKey(t *testing.T) { var ( address []byte ) for i := 0; i < 41; i++ { address = make([]byte, i) _, _ = rand.Read(address) if i == 20 { require.Equal( t, append(DepositKeyPrefix, address...), DepositKey(address), ) continue } require.Panics(t, func() { DepositKey...
explode_data.jsonl/36217
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 78982, 1592, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 63202, 3056, 3782, 198, 197, 692, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 19, 16, 26, 600, 1027, 341, 197, 63202, 284, 1281, 10556, 3782, 11, 600, 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, 1...
1
func TestDropColumn(t *testing.T) { store, clean := testkit.CreateMockStoreWithSchemaLease(t, columnModifyLease) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") num := 25 multiDDL := make([]string, 0, num) sql := "create table t2 (c1 int, c2 int, c3 int, " for i := 4; i < 4+num; i++ { ...
explode_data.jsonl/51309
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 507 }
[ 2830, 3393, 19871, 2933, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 2354, 8632, 2304, 519, 1155, 11, 3250, 44427, 2304, 519, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlesErrorsBetweenMiddlewares(t *testing.T) { r := NewRouter() var calls int32 r.ErrorHandler = func(Context, error) { atomic.AddInt32(&calls, 1) } r.Use(func(next HandlerFunc) HandlerFunc { return func(c Context) error { return next(c) } }) r.Use(func(next HandlerFunc) HandlerFunc { re...
explode_data.jsonl/18961
{ "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, 65928, 13877, 25477, 43935, 37903, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 9523, 2822, 2405, 6738, 526, 18, 17, 271, 7000, 6141, 3050, 284, 2915, 14001, 11, 1465, 8, 341, 197, 78739, 1904, 1072, 18, 17, 2099, 44620...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStepOutPreservesGoroutine(t *testing.T) { // Checks that StepOut preserves the currently selected goroutine. if runtime.GOOS == "freebsd" { t.SkipNow() } rand.Seed(time.Now().Unix()) runTest(t, "issue2113", func(client *daptest.Client, fixture protest.Fixture) { runDebugSessionWithBPs(t, client, "laun...
explode_data.jsonl/17340
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1055 }
[ 2830, 3393, 8304, 2662, 14367, 13280, 38, 269, 14159, 1155, 353, 8840, 836, 8, 341, 197, 322, 24843, 429, 14822, 2662, 74898, 279, 5023, 4091, 45198, 14159, 624, 743, 15592, 97574, 3126, 621, 330, 10593, 51835, 1, 341, 197, 3244, 57776,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestECRRepository(t *testing.T) { assert := assert.New(t) require := require.New(t) sh := testutil.NewSchemaHelperForService(t, "ecr") crds, err := sh.GetCRDs() require.Nil(err) crd := getCRDByName("Repository", crds) require.NotNil(crd) // The ECR Repository API has just the C and R of the normal CRUD...
explode_data.jsonl/53326
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2488 }
[ 2830, 3393, 7498, 49, 4624, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 17957, 1669, 1373, 7121, 1155, 692, 36196, 1669, 1273, 1314, 7121, 8632, 5511, 2461, 1860, 1155, 11, 330, 757, 81, 5130, 91492, 5356, 11, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1