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 TestSessionOutput(t *testing.T) { conn := dial(fixedOutputHandler, t) defer conn.Close() session, err := conn.NewSession() if err != nil { t.Fatalf("Unable to request new session: %v", err) } defer session.Close() buf, err := session.Output("") // cmd is ignored by fixedOutputHandler if err != nil { t...
explode_data.jsonl/34794
{ "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, 5283, 5097, 1155, 353, 8840, 836, 8, 341, 32917, 1669, 27860, 955, 3286, 5097, 3050, 11, 259, 340, 16867, 4534, 10421, 741, 25054, 11, 1848, 1669, 4534, 7121, 5283, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 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 TestSort(t *testing.T) { v := New() for i := 10; i >= 0; i-- { v.PushBack(i) } sort.Sort(v.Begin(), v.End(), comparator.BuiltinTypeComparator) for i := 0; i < v.Size(); i++ { assert.Equal(t, i, v.At(i)) } sort.Sort(v.Begin(), v.End(), comparator.Reverse(comparator.BuiltinTypeComparator)) for i := 0; i...
explode_data.jsonl/33854
{ "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, 10231, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 1532, 741, 2023, 600, 1669, 220, 16, 15, 26, 600, 2604, 220, 15, 26, 600, 313, 341, 197, 5195, 34981, 3707, 1956, 340, 197, 532, 39487, 35976, 3747, 28467, 1507, 348, 1856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRewardLongerDurationBonus(t *testing.T) { shortDuration := 24 * time.Hour totalDuration := 365 * 24 * time.Hour shortBalance := units.KiloDjtx for i := 0; i < int(totalDuration/shortDuration); i++ { r := reward(shortDuration, shortBalance, 359*units.MegaDjtx+shortBalance, defaultMaxStakingDuration) sho...
explode_data.jsonl/16536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 59622, 6583, 261, 12945, 48728, 1155, 353, 8840, 836, 8, 341, 47981, 12945, 1669, 220, 17, 19, 353, 882, 73550, 198, 34493, 12945, 1669, 220, 18, 21, 20, 353, 220, 17, 19, 353, 882, 73550, 198, 47981, 21190, 1669, 8153, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenMan(t *testing.T) { defer leaktest.AfterTest(t)() // Generate man pages in a temp directory. manpath, err := ioutil.TempDir("", "TestGenMan") if err != nil { t.Fatal(err) } defer func() { if err := os.RemoveAll(manpath); err != nil { t.Errorf("couldn't remove temporary directory %s: %s", manpa...
explode_data.jsonl/33199
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 9967, 1658, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 197, 322, 19813, 883, 6816, 304, 264, 2730, 6220, 624, 197, 1515, 2343, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 2271, 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...
2
func TestTcpClient(t *testing.T) { conn, err := net.Dial("tcp", "127.0.0.1:2021") if err != nil { fmt.Println("客户端启动错误,退出!") return } for { // 发封包message消息 dp := hnet.NewPackage(0, []byte("哈哈哈哈")) pack, _ := dp.Pack() _, err := conn.Write(pack) if err != nil { fmt.Println("写错误,异常:", err) retur...
explode_data.jsonl/27863
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 77536, 2959, 1155, 353, 8840, 836, 8, 1476, 32917, 11, 1848, 1669, 4179, 98462, 445, 27161, 497, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 17, 15, 17, 16, 1138, 743, 1848, 961, 2092, 341, 197, 11009, 12419, 445, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestFormatterAutomaticArguments(test *testing.T) { formatted, err := formatter.New().Format("{p} {p}-{p}", 4, "test", true) assert.NoError(test, err) assert.Equal(test, "4 test-true", formatted) }
explode_data.jsonl/39730
{ "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, 14183, 62790, 19139, 8623, 353, 8840, 836, 8, 341, 37410, 12127, 11, 1848, 1669, 24814, 7121, 1005, 4061, 13976, 79, 92, 314, 79, 72013, 79, 9545, 220, 19, 11, 330, 1944, 497, 830, 692, 6948, 35699, 8623, 11, 1848, 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
func TestContextServeContent(t *testing.T) { e := New() req := test.NewRequest(GET, "/", nil) rec := test.NewResponseRecorder() c := e.NewContext(req, rec) fs := http.Dir("_fixture/images") f, err := fs.Open("walle.png") if assert.NoError(t, err) { fi, err := f.Stat() if assert.NoError(t, err) { // Not c...
explode_data.jsonl/35880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 1972, 60421, 2762, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 1532, 741, 24395, 1669, 1273, 75274, 62918, 11, 64657, 2092, 340, 67904, 1669, 1273, 7121, 2582, 47023, 741, 1444, 1669, 384, 7121, 1972, 6881, 11, 1395, 692, 5358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsVoteTypeValid(t *testing.T) { tc := []struct { name string in SignedMsgType out bool }{ {"Prevote", PrevoteType, true}, {"Precommit", PrecommitType, true}, {"InvalidType", SignedMsgType(0x3), false}, } for _, tt := range tc { tt := tt t.Run(tt.name, func(st *testing.T) { if rs := I...
explode_data.jsonl/54535
{ "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, 3872, 41412, 929, 4088, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 17430, 256, 52453, 6611, 929, 198, 197, 13967, 220, 1807, 198, 197, 59403, 197, 197, 4913, 4703, 29358, 497, 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...
2
func TestNewSubmitApplicationEvent(t *testing.T) { tests := []struct { name string appID string wantID string wantEvent events.ApplicationEventType }{ {TestCreateName, "testAppId001", "testAppId001", events.SubmitApplication}, } for _, tt := range tests { instance := NewSubmitApplicationEve...
explode_data.jsonl/9782
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 3564, 8890, 4988, 1556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 28236, 915, 257, 914, 198, 197, 50780, 915, 262, 914, 198, 197, 50780, 1556, 4357, 17521, 47906, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCreateOpenUnsupported(t *testing.T) { // Ensure creating a database with an unsupported type fails with the expected error. testName := "create with unsupported database type" dbType := "unsupported" _, err := database.Create(dbType) if !checkDbError(t, testName, err, database.ErrDbUnknownType) { return...
explode_data.jsonl/1918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 4021, 5002, 41884, 1155, 353, 8840, 836, 8, 341, 197, 322, 29279, 6825, 264, 4625, 448, 458, 40409, 943, 14525, 448, 279, 3601, 1465, 624, 18185, 675, 1669, 330, 3182, 448, 40409, 4625, 943, 698, 20939, 929, 1669, 330, 811...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGitGetter_sshKey(t *testing.T) { if !testHasGit { t.Log("git not found, skipping") t.Skip() } g := new(GitGetter) dst := tempDir(t) encodedKey := base64.StdEncoding.EncodeToString([]byte(testGitToken)) u, err := url.Parse("ssh://git@github.com/hashicorp/test-private-repo" + "?sshkey=" + encodedK...
explode_data.jsonl/39699
{ "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, 46562, 31485, 82805, 1592, 1155, 353, 8840, 836, 8, 341, 743, 753, 1944, 10281, 46562, 341, 197, 3244, 5247, 445, 12882, 537, 1730, 11, 42659, 1138, 197, 3244, 57776, 741, 197, 630, 3174, 1669, 501, 6699, 275, 31485, 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...
5
func TestBackupRestoreMultiNodeRemote(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 1000 ctx, tc, _, _, cleanupFn := BackupRestoreTestSetup(t, MultiNode, numAccounts, InitNone) defer cleanupFn() // Backing up to node2's local file system remoteFoo := "nodelocal://2/foo" backupAndRestore(ctx...
explode_data.jsonl/57573
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 56245, 56284, 20358, 1955, 24703, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 1629, 41369, 284, 220, 16, 15, 15, 15, 198, 20985, 11, 17130, 11, 8358, 8358, 21290, 24911, 1669, 43438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeferGo(t *testing.T) { gopClTest(t, ` go println("Hi") defer println("Go+") `, `package main import fmt "fmt" func main() { go fmt.Println("Hi") defer fmt.Println("Go+") } `) }
explode_data.jsonl/73637
{ "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, 1912, 802, 10850, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 3346, 13751, 445, 13048, 1138, 62095, 13751, 445, 10850, 10, 1138, 7808, 1565, 1722, 1887, 271, 474, 8879, 330, 12501, 1837, 2830, 1887,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRest_UpdateDelete(t *testing.T) { ts, _, teardown := startupT(t) defer teardown() c1 := store.Comment{Text: "test test #1", ParentID: "p1", Locator: store.Locator{SiteID: "remark42", URL: "https://radio-t.com/blah1"}} id := addComment(t, c1, ts) // check multi count updated resp, err := post(t, ts.UR...
explode_data.jsonl/37394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 982 }
[ 2830, 3393, 12416, 47393, 6435, 1155, 353, 8840, 836, 8, 341, 57441, 11, 8358, 49304, 1669, 20567, 51, 1155, 340, 16867, 49304, 2822, 1444, 16, 1669, 3553, 56730, 90, 1178, 25, 330, 1944, 1273, 671, 16, 497, 17022, 915, 25, 330, 79, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_Handler_PipeReturnsNilValue_ExpectAbortPipeGroupExecution(t *testing.T) { var returnsNilPipe Pipe = func(v reflect.Value, args ...interface{}) (*reflect.Value, error) { return nil, nil } executed := false var pipeWhatHaveToNotExecuteAfter Pipe = func(v reflect.Value, args ...interface{}) (*reflect.Valu...
explode_data.jsonl/45775
{ "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, 41879, 1088, 3444, 16446, 19064, 1130, 62, 17536, 85891, 34077, 2808, 20294, 1155, 353, 8840, 836, 8, 341, 2405, 4675, 19064, 34077, 27805, 284, 2915, 3747, 8708, 6167, 11, 2827, 2503, 4970, 28875, 4609, 34913, 6167, 11, 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...
1
func TestAppendToFile(t *testing.T) { fileName := dirRoot + "/append-to-file.txt" err := AppendToFile(fileName, []byte("filesystem")) if err != nil { panic(err) } t.Cleanup(func() { _ = RemoveWithRecur(dirRoot) }) if !Exists(fileName) { t.Error("AppendToFile test failed!") } }
explode_data.jsonl/34168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 23877, 41550, 1155, 353, 8840, 836, 8, 341, 17661, 675, 1669, 5419, 8439, 488, 3521, 5090, 4686, 14203, 3909, 1837, 9859, 1669, 29807, 41550, 23014, 11, 3056, 3782, 445, 41897, 5455, 743, 1848, 961, 2092, 341, 197, 30764, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSettime(t *testing.T) { tests := []struct { line string expected time.Time }{ // this year, in the past {"Feb 10 23:00", newTime(thisYear, time.February, 10, 23)}, // this year, less than six months in the future {"Sep 10 22:59", newTime(thisYear, time.September, 10, 22, 59)}, // previous...
explode_data.jsonl/54612
{ "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, 1649, 1678, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 27109, 257, 914, 198, 197, 42400, 882, 16299, 198, 197, 59403, 197, 197, 322, 419, 1042, 11, 304, 279, 3267, 198, 197, 197, 4913, 40591, 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...
3
func TestGetInstance(t *testing.T) { firstInstance, err := GetInstance() if err != nil { t.Fatal(err) } secondInstance, err := GetInstance() if err != nil { t.Fatal(err) } if firstInstance != secondInstance { t.Error("GetInstance returned two different pointers!") } }
explode_data.jsonl/62507
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 42761, 1155, 353, 8840, 836, 8, 341, 42190, 2523, 11, 1848, 1669, 2126, 2523, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 197, 5569, 2523, 11, 1848, 1669, 2126, 2523, 741, 743, 1848, 961, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMemCache_Expire(t *testing.T) { assert := assert.New(t) err := cMem.Set("test", "aaa", time.Millisecond*500) assert.Nil(err) time.Sleep(time.Second) _, err = cMem.Get("test") assert.True(isNotExits(err)) }
explode_data.jsonl/74754
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 18816, 8233, 62, 8033, 554, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 9859, 1669, 272, 18816, 4202, 445, 1944, 497, 330, 32646, 497, 882, 71482, 9, 20, 15, 15, 340, 6948, 59678, 3964, 340, 21957, 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 TestStream_PulsarMsgStream_Delete(t *testing.T) { pulsarAddress, _ := Params.Load("_PulsarAddress") c := funcutil.RandomString(8) producerChannels := []string{c} consumerChannels := []string{c} consumerSubName := funcutil.RandomString(8) msgPack := MsgPack{} msgPack.Msgs = append(msgPack.Msgs, getTsMsg(comm...
explode_data.jsonl/55287
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 3027, 1088, 14295, 277, 6611, 3027, 57418, 1155, 353, 8840, 836, 8, 341, 3223, 14295, 277, 4286, 11, 716, 1669, 34352, 13969, 16975, 47, 14295, 277, 4286, 1138, 1444, 1669, 2915, 1314, 26709, 703, 7, 23, 340, 197, 58912, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDoubleAdd(t *testing.T) { t.Run("doubleadd ", func(t *testing.T) { rb := NewBitmap() rb.AddRange(65533, 65536) rb.AddRange(65530, 65536) rb2 := NewBitmap() rb2.AddRange(65530, 65536) assert.True(t, rb.Equals(rb2)) rb2.RemoveRange(65530, 65536) assert.EqualValues(t, 0, rb2.GetCardinality()) ...
explode_data.jsonl/20345
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 940 }
[ 2830, 3393, 7378, 2212, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4331, 718, 3670, 2915, 1155, 353, 8840, 836, 8, 341, 197, 85589, 1669, 1532, 16773, 741, 197, 85589, 19672, 7, 21, 20, 20, 18, 18, 11, 220, 21, 20, 20, 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 TestGetProcessor(t *testing.T) { t.Parallel() ctrl := gomock.NewController(t) mo := mock_owner.NewMockOwner(ctrl) cp := capture.NewCapture4Test(mo) router := newRouter(cp, newStatusProvider()) // test get processor succeeded api := testCase{ url: fmt.Sprintf("/api/v1/processors/%s/%s", changeFeedID, ca...
explode_data.jsonl/75119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 479 }
[ 2830, 3393, 1949, 22946, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 2109, 78, 1669, 7860, 29027, 7121, 11571, 13801, 62100, 340, 52018, 1669, 12322, 7121, 27429, 19, 2271, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseCert(t *testing.T) { // Test: Valid cert (happy case) validCert := "-----BEGIN CERTIFICATE-----\nMIICKjCCAdGgAwIBAgIUBFTi56rmjunJiRESpyJW0q4sRL4wCgYIKoZIzj0EAwIw\ncjELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMQ8wDQYDVQQH\nEwZEdXJoYW0xGjAYBgNVBAoTEW9yZzEubmV0d29yazEuY29tMR0wGwYDVQQDExRj\nYS5vcmcxL...
explode_data.jsonl/48208
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1344 }
[ 2830, 3393, 14463, 36934, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 25, 7818, 2777, 320, 56521, 1142, 340, 56322, 36934, 1669, 330, 15081, 37588, 62357, 82023, 15081, 59, 77, 9773, 10685, 73, 3706, 2589, 38, 70, 22600, 3256, 9042, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateOrderbook(t *testing.T) { t.Parallel() cp := currency.NewPairWithDelimiter(currency.BTC.String(), currency.AUD.String(), "-") _, err := b.UpdateOrderbook(cp, asset.Spot) if err != nil { t.Error(err) } }
explode_data.jsonl/33175
{ "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, 4289, 4431, 2190, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 52018, 1669, 11413, 7121, 12443, 2354, 91098, 90475, 1785, 7749, 6431, 1507, 11413, 875, 4656, 6431, 1507, 6523, 1138, 197, 6878, 1848, 1669, 293, 16689, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRuntimeTypeID(t *testing.T) { arrayEqual(t, RuntimeTypeIDOf(time.Time{}), RuntimeTypeID(reflect.TypeOf(time.Now())), ValueOf(time.Now()).RuntimeTypeID(), ValueFrom(reflect.ValueOf(time.Now())).RuntimeTypeID(), ) arrayEqual(t, RuntimeTypeIDOf(&time.Time{}), RuntimeTypeID(reflect.TypeOf(&time.Time{})), Va...
explode_data.jsonl/29652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 15123, 91981, 1155, 353, 8840, 836, 8, 341, 11923, 2993, 1155, 345, 197, 68321, 91981, 2124, 9730, 16299, 6257, 701, 10954, 91981, 13321, 767, 73921, 9730, 13244, 96501, 5162, 2124, 9730, 13244, 6011, 15123, 91981, 1507, 5162, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEarliestTaskStatusForContainersWhenKnownStatusIsNotSetForContainers(t *testing.T) { testTask := &Task{ KnownStatusUnsafe: apitaskstatus.TaskStatusNone, Containers: []*apicontainer.Container{ {}, {}, }, } assert.Equal(t, testTask.getEarliestKnownTaskStatusForContainers(), apitaskstatus.TaskSta...
explode_data.jsonl/37214
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 1949, 17813, 23138, 6262, 2522, 2461, 74632, 4498, 48206, 2522, 3872, 2623, 1649, 2461, 74632, 1155, 353, 8840, 836, 8, 341, 18185, 6262, 1669, 609, 6262, 515, 197, 39340, 4169, 2522, 78770, 25, 1443, 275, 1073, 2829, 28258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNetworkConfig_UnmarshalYAML(t *testing.T) { testCases := map[string]struct { data string wantedConfig *NetworkConfig wantedErr error }{ "defaults to public placement if vpc is empty": { data: ` network: vpc: `, wantedConfig: &NetworkConfig{ VPC: &vpcConfig{ Placement: stringP(Pub...
explode_data.jsonl/79736
{ "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, 12320, 2648, 40687, 27121, 56, 31102, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 8924, 914, 271, 197, 6692, 7566, 2648, 353, 12320, 2648, 198, 197, 6692, 7566, 7747, 262, 1465, 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...
2
func TestTomlNoInputs(t *testing.T) { assert := assert.New(t) settings := testutil.Settings().With(&print.Settings{ ShowHeader: true, ShowInputs: false, ShowOutputs: true, ShowProviders: true, ShowRequirements: true, }).Build() expected, err := testutil.GetExpected("toml", "toml-NoInp...
explode_data.jsonl/36762
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 24732, 75, 2753, 31946, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 62930, 1669, 1273, 1314, 27000, 1005, 2354, 2099, 1350, 27000, 515, 197, 197, 7812, 4047, 25, 981, 830, 345, 197, 197, 7812, 31946, 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 TestEnableGangScheduling(t *testing.T) { f := newFixture(t) startTime := metav1.Now() completionTime := metav1.Now() mpiJob := newMPIJobWithCPUs("test", int32Ptr(16), &startTime, &completionTime) f.setUpMPIJob(mpiJob) f.setUpConfigMap(newConfigMap(mpiJob, 2, 8)) f.setUpRbac(mpiJob, 2) worker := newWorke...
explode_data.jsonl/75019
{ "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, 11084, 38, 524, 50, 44356, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 21375, 1462, 1669, 77520, 16, 13244, 741, 32810, 14386, 1462, 1669, 77520, 16, 13244, 2822, 197, 39479, 12245, 1669, 501, 56369, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapAppendAssignment(t *testing.T) { m := make(map[int][]int, 0) m[0] = nil m[0] = append(m[0], 12345) m[0] = append(m[0], 67890) sinkAppend, m[0] = !sinkAppend, append(m[0], 123, 456) a := []int{7, 8, 9, 0} m[0] = append(m[0], a...) want := []int{12345, 67890, 123, 456, 7, 8, 9, 0} if got := m[0]; !...
explode_data.jsonl/19905
{ "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, 2227, 23877, 41613, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1281, 9147, 18640, 45725, 396, 11, 220, 15, 692, 2109, 58, 15, 60, 284, 2092, 198, 2109, 58, 15, 60, 284, 8737, 1255, 58, 15, 1125, 220, 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...
2
func TestDisallowFullClusterRestoreOnNonFreshCluster(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 10 _, _, sqlDB, tempDir, cleanupFn := backupRestoreTestSetup(t, singleNode, numAccounts, initNone) _, _, sqlDBRestore, cleanupEmptyCluster := backupRestoreTestSetupEmpty(t, singleNode, tempDir, in...
explode_data.jsonl/48479
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 87854, 9432, 28678, 56284, 1925, 8121, 55653, 28678, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 1629, 41369, 284, 220, 16, 15, 198, 197, 6878, 8358, 5704, 3506, 11, 2730, 6184, 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 TestStream_PulsarTtMsgStream_NoSeek(t *testing.T) { pulsarAddress, _ := Params.Load("_PulsarAddress") c1 := funcutil.RandomString(8) producerChannels := []string{c1} consumerChannels := []string{c1} consumerSubName := funcutil.RandomString(8) msgPack0 := MsgPack{} msgPack0.Msgs = append(msgPack0.Msgs, getT...
explode_data.jsonl/55297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 838 }
[ 2830, 3393, 3027, 1088, 14295, 277, 51, 83, 6611, 3027, 36989, 39350, 1155, 353, 8840, 836, 8, 341, 3223, 14295, 277, 4286, 11, 716, 1669, 34352, 13969, 16975, 47, 14295, 277, 4286, 1138, 1444, 16, 1669, 2915, 1314, 26709, 703, 7, 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...
1
func TestMakeSubsitutions(t *testing.T) { cases := []struct { input string subst map[string]string exp string expectedSubs []string }{ {input: "Replace $thisbin", subst: map[string]string{"this": "that"}, exp: "Replace that", expectedSubs: []string{"that"}}, {input: "Replace $thisbi...
explode_data.jsonl/60202
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 8078, 3136, 46865, 3977, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 22427, 286, 914, 198, 197, 28624, 267, 286, 2415, 14032, 30953, 198, 197, 48558, 688, 914, 198, 197, 42400, 3136, 82, 3056, 917...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrorToTag(t *testing.T) { assert.Equal(t, errorToTag(nil), "none") assert.Equal(t, errorToTag(errors.New("fail")), "non-retryable") assert.Equal(t, errorToTag(client.NewRetryableError(errors.New("fail"))), "retryable") }
explode_data.jsonl/82450
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 1454, 1249, 5668, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 1465, 1249, 5668, 27907, 701, 330, 6697, 1138, 6948, 12808, 1155, 11, 1465, 1249, 5668, 38881, 7121, 445, 18403, 35674, 330, 6280, 5504, 1539, 480, 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 TestNftList(t *testing.T) { to, path, err := createBalances() assert.NoError(t, err, "createBalances() failed") // see to.balances.setAssetBalance function details for more info assetIDBytes := testGlobal.asset1.assetID addTailInfoToAssetsState(to.stor.entities.assets, assetIDBytes) defer func() { to.sto...
explode_data.jsonl/37806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 45, 723, 852, 1155, 353, 8840, 836, 8, 341, 31709, 11, 1815, 11, 1848, 1669, 1855, 37889, 3020, 741, 6948, 35699, 1155, 11, 1848, 11, 330, 3182, 37889, 3020, 368, 4641, 5130, 197, 322, 1490, 311, 948, 278, 3020, 980, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestObjectNamesWithPath(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionWithObjectHeaders(t) defer rollback() objects, err := c.ObjectNames(ctx, CONTAINER, &swift.ObjectsOpts{Delimiter: '/', Path: ""}) if err != nil { t.Fatal(err) } if len(objects) != 1 || objects[0] != OBJECT { ...
explode_data.jsonl/12703
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 1190, 7980, 89534, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 2354, 1190, 10574, 1155, 340, 16867, 60414, 741, 197, 19210, 11, 1848, 1669, 272, 8348, 7980, 7502, 11, 16120...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDotEnv(t *testing.T) { filepath := createTestFile(t) var cfg structConfig loader := aconfig.LoaderFor(&cfg, aconfig.Config{ SkipDefaults: true, SkipEnv: true, SkipFlags: true, FileDecoders: map[string]aconfig.FileDecoder{ ".env": aconfigdotenv.New(), }, Files: []string{filepath}, })...
explode_data.jsonl/37380
{ "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, 34207, 14359, 1155, 353, 8840, 836, 8, 341, 17661, 2343, 1669, 1855, 2271, 1703, 1155, 692, 2405, 13286, 2036, 2648, 198, 197, 8355, 1669, 264, 1676, 82987, 2461, 2099, 14072, 11, 264, 1676, 10753, 515, 197, 7568, 13389, 162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKafkaClient_decodeKeyAndOffset_Whitelist(t *testing.T) { module := fixtureModule() viper.Set("consumer.test.group-whitelist", "test.*") module.Configure("test", "consumer.test") keyBuf := bytes.NewBuffer([]byte("\x00\x0ddropthisgroup\x00\x09testtopic\x00\x00\x00\x0b")) valueBytes := []byte("\x00\x00\x00\...
explode_data.jsonl/34273
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 224 }
[ 2830, 3393, 42, 21883, 2959, 15227, 1592, 3036, 6446, 62, 1639, 57645, 1155, 353, 8840, 836, 8, 341, 54020, 1669, 12507, 3332, 741, 5195, 12858, 4202, 445, 46764, 5958, 6175, 55332, 57645, 497, 330, 1944, 4908, 1138, 54020, 78281, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseRecoverOperation(t *testing.T) { p := protocol.Protocol{ HashAlgorithmInMultiHashCode: sha2_256, } t.Run("success", func(t *testing.T) { request, err := getRecoverRequestBytes() require.NoError(t, err) op, err := ParseRecoverOperation(request, p) require.NoError(t, err) require.Equal(t, b...
explode_data.jsonl/78225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1262 }
[ 2830, 3393, 14463, 693, 3688, 8432, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 11507, 54096, 515, 197, 197, 6370, 27847, 641, 20358, 28265, 25, 15870, 17, 62, 17, 20, 21, 345, 197, 630, 3244, 16708, 445, 5630, 497, 2915, 1155, 353, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_dkTags_checkCustomTags(t *testing.T) { type fields struct { regexpStr string tags map[string]string replaceTags map[string]string } tests := []struct { name string fields fields want *dkTags }{ { name: "regexp-1", fields: fields{ tags: map[string]string{}, r...
explode_data.jsonl/14408
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 655 }
[ 2830, 3393, 814, 74, 15930, 7200, 10268, 15930, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 37013, 4580, 2580, 256, 914, 198, 197, 3244, 2032, 286, 2415, 14032, 30953, 198, 197, 197, 8156, 15930, 2415, 14032, 30953, 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...
2
func TestMeSuccess(t *testing.T) { ctx := context.Background() renderMock := &MeRendererMock{} renderMock.On("RenderMe", mock.Anything).Return(nil) userResponseGiven := api.UserResponse{ Data: models.Me{ Username: "login", Groups: []string{"group1", "group2"}, TwoFASendTo: "m@me.com", }, } ...
explode_data.jsonl/37178
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 7823, 7188, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 33921, 11571, 1669, 609, 7823, 11541, 11571, 16094, 33921, 11571, 8071, 445, 6750, 7823, 497, 7860, 13311, 1596, 568, 5598, 27907, 692, 19060, 2582, 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 Test_IsOktetoCloud(t *testing.T) { var tests = []struct { name string context *OktetoContext want bool }{ {name: "is-cloud", context: &OktetoContext{Name: "https://cloud.okteto.com"}, want: true}, {name: "is-staging", context: &OktetoContext{Name: "https://staging.okteto.dev"}, want: true}, {na...
explode_data.jsonl/53940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 31879, 46, 5840, 11023, 16055, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 28413, 353, 46, 5840, 11023, 1972, 198, 197, 50780, 262, 1807, 198, 197, 59403, 197, 197, 47006...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreSafeSet(t *testing.T) { st, closer := makeStore() defer closer() root, err := st.CurrentRoot() assert.NotNil(t, root) assert.NoError(t, err) for n := uint64(0); n <= 64; n++ { opts := schema.SafeSetOptions{ Kv: &schema.KeyValue{ Key: []byte(strconv.FormatUint(n, 10)), Value: []byte(...
explode_data.jsonl/77968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 533 }
[ 2830, 3393, 6093, 25663, 1649, 1155, 353, 8840, 836, 8, 341, 18388, 11, 12128, 1669, 1281, 6093, 741, 16867, 12128, 2822, 33698, 11, 1848, 1669, 357, 11517, 8439, 741, 6948, 93882, 1155, 11, 3704, 340, 6948, 35699, 1155, 11, 1848, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDynamicCount(t *testing.T) { Convey("get DynamicCount", t, func() { _, err := dao.DynamicCount(ctx(), 27515258) err = nil So(err, ShouldBeNil) }) }
explode_data.jsonl/51609
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 21752, 2507, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 455, 21886, 2507, 497, 259, 11, 2915, 368, 341, 197, 197, 6878, 1848, 1669, 24775, 42101, 2507, 7502, 1507, 220, 17, 22, 20, 16, 20, 17, 20, 23, 340, 197, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetDaemonEndpointsForHostname3(t *testing.T) { // parsing hostname - double form udpAddr := "127.0.0.1:2000" tcpAddr := "127.0.0.1:2000" udpEndpt, _ := resolveUDPAddr(udpAddr) tcpEndpt, _ := resolveTCPAddr(tcpAddr) dEndpt, _ := GetDaemonEndpointsFromString("tcp:localhost:2000 udp:localhost:2000") assert...
explode_data.jsonl/49945
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 1949, 89177, 80786, 2461, 88839, 18, 1155, 353, 8840, 836, 8, 314, 442, 22314, 28115, 481, 1990, 1352, 198, 197, 31101, 13986, 1669, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 17, 15, 15, 15, 698, 3244, 4672, 13986, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetWeightedClusterForService(t *testing.T) { assert := tassert.New(t) mc := newFakeMeshCatalog() weightedCluster, err := mc.GetWeightedClusterForService(tests.BookstoreV1Service) assert.Nil(err) expected := service.WeightedCluster{ ClusterName: "default/bookstore-v1", Weight: tests.Weight90, }...
explode_data.jsonl/69757
{ "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, 1949, 8295, 291, 28678, 2461, 1860, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 259, 2207, 7121, 1155, 692, 97662, 1669, 501, 52317, 14194, 41606, 741, 197, 79796, 28678, 11, 1848, 1669, 19223, 2234, 8295, 291, 28678, 2461, 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 TestComputeNonstiff(t *testing.T) { fixture := &fixtureNonstiff input, output := &fixture.input, &fixture.output integrator, _ := New(fixture.configure()) ys, _, stats, _ := integrator.ComputeWithStats(input.dydx, input.y0, input.xs) assert.Close(ys, output.ys, 1e-14, t) assert.Equal(*stats, Stats{Evaluati...
explode_data.jsonl/80695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 46254, 8121, 267, 3092, 1155, 353, 8840, 836, 8, 341, 1166, 12735, 1669, 609, 59612, 8121, 267, 3092, 198, 22427, 11, 2550, 1669, 609, 59612, 10046, 11, 609, 59612, 13413, 271, 2084, 96435, 11, 716, 1669, 1532, 94886, 21343,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLint(t *testing.T) { expectedArgs := []string{"lint"} expectedOutput := "test" helm, runner := createHelm(t, nil, expectedOutput) output, err := helm.Lint() assert.NoError(t, err, "should lint the chart without any error") verifyArgs(t, helm, runner, expectedArgs...) assert.Equal(t, "test", output) }
explode_data.jsonl/4653
{ "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, 47556, 1155, 353, 8840, 836, 8, 341, 42400, 4117, 1669, 3056, 917, 4913, 14957, 16707, 42400, 5097, 1669, 330, 1944, 698, 9598, 23162, 11, 22259, 1669, 1855, 39, 23162, 1155, 11, 2092, 11, 3601, 5097, 692, 21170, 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 TestDefaults(t *testing.T) { if BConfig.WebConfig.FlashName != "BEEGO_FLASH" { t.Errorf("FlashName was not set to default.") } if BConfig.WebConfig.FlashSeparator != "BEEGOFLASH" { t.Errorf("FlashName was not set to default.") } }
explode_data.jsonl/60513
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 16273, 1155, 353, 8840, 836, 8, 341, 743, 425, 2648, 6473, 2648, 991, 24686, 675, 961, 330, 33, 7099, 15513, 48515, 1, 341, 197, 3244, 13080, 445, 23876, 675, 572, 537, 738, 311, 1638, 13053, 197, 630, 743, 425, 2648, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseVolumeWithInvalidVolumeOptions(t *testing.T) { _, err := parseVolume("name:/target:bogus") assert.EqualError(t, err, "invalid spec: name:/target:bogus: unknown option: bogus") }
explode_data.jsonl/70101
{ "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, 14463, 18902, 2354, 7928, 18902, 3798, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 4715, 18902, 445, 606, 14375, 5657, 43973, 538, 355, 1138, 6948, 12808, 1454, 1155, 11, 1848, 11, 330, 11808, 1398, 25, 829, 14375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClaimableBalancesQueryURLTemplate(t *testing.T) { tt := assert.New(t) expected := "/claimable_balances?{asset,claimant,sponsor}" q := ClaimableBalancesQuery{} tt.Equal(expected, q.URITemplate()) }
explode_data.jsonl/67484
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 45544, 480, 37889, 3020, 2859, 3144, 7275, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 2060, 7121, 1155, 340, 42400, 1669, 3521, 7859, 480, 56441, 3020, 30, 90, 9852, 11, 7859, 517, 10671, 30241, 11195, 18534, 1669, 37502,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAPIGetObjectHandler(t *testing.T) { globalPolicySys = NewPolicySys() defer func() { globalPolicySys = nil }() defer DetectTestLeak(t)() ExecObjectLayerAPITest(t, testAPIGetObjectHandler, []string{"GetObject"}) }
explode_data.jsonl/10696
{ "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, 7082, 84540, 3050, 1155, 353, 8840, 836, 8, 341, 18842, 13825, 32792, 284, 1532, 13825, 32792, 741, 16867, 2915, 368, 314, 3644, 13825, 32792, 284, 2092, 335, 2822, 16867, 33287, 2271, 2304, 585, 1155, 8, 741, 197, 10216, 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
func TestRemoveMachine(t *testing.T) { sys := NewSystem() m0 := sys.NewMachine() if m0.ID != 0 { t.Errorf("Machine 0 should have ID 0") } m1 := sys.NewMachine() if m1.ID != 1 { t.Errorf("Machine 1 should have ID 1") } m0st0 := m0.NewState() m0st1 := m0.NewState() tr0 := NewSend(m1, "Msg") tr0.SetNext(m0s...
explode_data.jsonl/45735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 13021, 21605, 1155, 353, 8840, 836, 8, 341, 41709, 1669, 1532, 2320, 741, 2109, 15, 1669, 5708, 7121, 21605, 741, 743, 296, 15, 9910, 961, 220, 15, 341, 197, 3244, 13080, 445, 21605, 220, 15, 1265, 614, 3034, 220, 15, 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...
6
func TestConfigClients_Update_Success(t *testing.T) { s, cfg, sec, h, iss, err := setupHydraTest(false) if err != nil { t.Fatalf("setupHydraTest() failed: %v", err) } clientName := "test_client" before := cfg.Clients[clientName] beforeSec := sec.ClientSecrets[before.ClientId] // Update the client RedirectU...
explode_data.jsonl/18520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 587 }
[ 2830, 3393, 2648, 47174, 47393, 87161, 1155, 353, 8840, 836, 8, 341, 1903, 11, 13286, 11, 5701, 11, 305, 11, 2369, 11, 1848, 1669, 6505, 30816, 22248, 2271, 3576, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 15188, 30816, 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...
9
func TestCreateCloudwatchSession(t *testing.T) { testAWSClient( t, "Cloudwatch", func(t *testing.T, s *session.Session, region *string, role Role, fips bool) { iface := createCloudwatchSession(s, region, role, fips) if iface == nil { t.Fail() } }) }
explode_data.jsonl/18785
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 4021, 16055, 14321, 5283, 1155, 353, 8840, 836, 8, 341, 18185, 36136, 2959, 1006, 197, 3244, 345, 197, 197, 1, 16055, 14321, 756, 197, 29244, 1155, 353, 8840, 836, 11, 274, 353, 5920, 20674, 11, 5537, 353, 917, 11, 3476, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFailToCreateVerifier(t *testing.T) { t.Parallel() logger := createTestLogger(t) _, err := NewVerifier(map[string]*x509.Certificate{}, logger) require.Error(t, err) require.Contains(t, err.Error(), "no servers' certificates provided") }
explode_data.jsonl/66736
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 19524, 1249, 4021, 82394, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 17060, 1669, 1855, 2271, 7395, 1155, 692, 197, 6878, 1848, 1669, 1532, 82394, 9147, 14032, 8465, 87, 20, 15, 24, 727, 20962, 22655, 5925, 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
func TestPartitionComparisonHelpers(t *testing.T) { assert.True( t, SameBrokers( PartitionAssignment{ Replicas: []int{1, 2, 3}, }, PartitionAssignment{ Replicas: []int{3, 2, 1}, }, ), ) assert.False( t, SameBrokers( PartitionAssignment{ Replicas: []int{1, 2, 3}, }, Partitio...
explode_data.jsonl/70034
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 623 }
[ 2830, 3393, 49978, 33487, 28430, 1155, 353, 8840, 836, 8, 341, 6948, 32443, 1006, 197, 3244, 345, 197, 7568, 373, 26272, 26177, 1006, 298, 197, 49978, 41613, 515, 571, 197, 18327, 52210, 25, 3056, 396, 90, 16, 11, 220, 17, 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 TestLevelDBReceiptsGetReceiptsOK(t *testing.T) { assert := assert.New(t) conf := &LevelDBReceiptStoreConf{ Path: path.Join(tmpdir, "test1"), } r, err := newLevelDBReceipts(conf) defer r.store.Close() id1 := "a492bc53-d971-4a9b-7d8c-d420a10d0aad" receipt1 := make(map[string]interface{}) receipt1["_id"] ...
explode_data.jsonl/21452
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 488 }
[ 2830, 3393, 4449, 3506, 67461, 82, 1949, 67461, 82, 3925, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 67850, 1669, 609, 4449, 3506, 67461, 6093, 15578, 515, 197, 69640, 25, 1815, 22363, 10368, 3741, 11, 330, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestVeryBigInts(t *testing.T) { for _, tc := range stringCases { num, ok := new(big.Int).SetString(tc.numStr, 10) assert.True(t, ok) result := FromBytes(tc.buf) assert.Equal(t, num, result, "error while converting %s from bytes", tc.numStr) assert.Equal(t, tc.buf, ToBytes(result), "error while converti...
explode_data.jsonl/64290
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 25756, 87474, 82, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 914, 37302, 341, 197, 22431, 11, 5394, 1669, 501, 75616, 7371, 568, 1649, 703, 44415, 10522, 2580, 11, 220, 16, 15, 340, 197, 6948, 32443, 1155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCreateFlagEntityType(t *testing.T) { t.Run("happy code path", func(t *testing.T) { f := GenFixtureFlag() db := PopulateTestDB(f) err := CreateFlagEntityType(db, "") assert.NoError(t, err) }) t.Run("invalid key", func(t *testing.T) { f := GenFixtureFlag() db := PopulateTestDB(f) err := Creat...
explode_data.jsonl/36841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 4021, 12135, 75789, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 56521, 2038, 1815, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1166, 1669, 9316, 18930, 12135, 741, 197, 20939, 1669, 70938, 2271, 3506, 955, 692, 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 TestPKCSDecryptNeverFails(t *testing.T) { // We don't want RSA-PKCS1 v1.5 decryption to ever fail, in order to prevent // side-channel timing attacks (Bleichenbacher attack in particular). priv, err := rsa.GenerateKey(rand.Reader, 2048) if err != nil { t.Error(err) return } dec := new(rsaDecrypterSigner...
explode_data.jsonl/63205
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 22242, 6412, 89660, 26155, 37, 6209, 1155, 353, 8840, 836, 8, 341, 197, 322, 1205, 1513, 944, 1366, 45641, 9299, 42, 6412, 16, 348, 16, 13, 20, 89374, 311, 3512, 3690, 11, 304, 1973, 311, 5358, 198, 197, 322, 3108, 53868...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoopBackManager_GetBackFileToLoopMap_InvalidData(t *testing.T) { var mockexec = &mocks.GoMockExecutor{} var manager = NewLoopBackManager(mockexec, "", "", logger) mockexec.On("RunCmd", readLoopBackDevicesMappingCmd). Return("\ninvalid\ndata data data", "", nil) _, err := manager.GetBackFileToLoopMap() ...
explode_data.jsonl/73561
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 14620, 3707, 2043, 13614, 3707, 1703, 1249, 14620, 2227, 62, 7928, 1043, 1155, 353, 8840, 836, 8, 341, 2405, 7860, 11748, 284, 609, 16712, 82, 67131, 11571, 25255, 16094, 2405, 6645, 284, 1532, 14620, 3707, 2043, 30389, 11748,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmountMount(t *testing.T) { t.Run("neverMounted", func(t *testing.T) { mount, err := CreateMount() require.NoError(t, err) require.NotNil(t, mount) assert.False(t, mount.IsMounted()) assert.NoError(t, mount.Release()) }) t.Run("mountUnmount", func(t *testing.T) { mount := fsConnect(t) defer f...
explode_data.jsonl/29510
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 59539, 16284, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 36493, 90789, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2109, 629, 11, 1848, 1669, 4230, 16284, 741, 197, 17957, 35699, 1155, 11, 1848, 340, 197, 17957, 938...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPostsAfter(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client post1 := th.CreatePost() post2 := th.CreatePost() post3 := th.CreatePost() post4 := th.CreatePost() post5 := th.CreatePost() posts, resp := Client.GetPostsAfter(th.BasicChannel.Id, post3.Id, 0, 100, "") ...
explode_data.jsonl/5252
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2083 }
[ 2830, 3393, 1949, 19631, 6025, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 51172, 16, 1669, 270, 7251, 4133, 741, 51172, 17, 1669, 270, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStashPop(t *testing.T) { runner := oscommands.NewFakeRunner(t). ExpectGitArgs([]string{"stash", "pop", "stash@{1}"}, "", nil) instance := buildStashCommands(commonDeps{runner: runner}) assert.NoError(t, instance.Pop(1)) runner.CheckForMissingCalls() }
explode_data.jsonl/41417
{ "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, 623, 988, 11598, 1155, 353, 8840, 836, 8, 341, 197, 41736, 1669, 2643, 24270, 7121, 52317, 19486, 1155, 4292, 197, 35911, 46562, 4117, 10556, 917, 4913, 49771, 497, 330, 8374, 497, 330, 49771, 31, 90, 16, 9863, 2137, 7342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerDenyCommandExecutionWhenFollower(t *testing.T) { s := newTestServer("1", &testTransporter{}) s.Start() defer s.Stop() var err error if _, err = s.Do(&testCommand1{Val: "foo", I: 10}); err != NotLeaderError { t.Fatalf("Expected error: %v, got: %v", NotLeaderError, err) } }
explode_data.jsonl/44068
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 5475, 23619, 88, 4062, 20294, 4498, 37, 29034, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 2271, 5475, 445, 16, 497, 609, 1944, 27560, 261, 37790, 1903, 12101, 741, 16867, 274, 30213, 741, 2405, 1848, 1465, 198, 743, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetDefault(t *testing.T) { dataMap := make(map[string]interface{}) key1 := "key1" key2 := "key2" key3 := "key3" defaultVal1 := true defaultVal2 := false key3Val := true setDefault(dataMap, key1, defaultVal1) assert.Equal(t, defaultVal1, dataMap[key1]) setDefault(dataMap, key2, defaultVal2) assert....
explode_data.jsonl/34105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 1649, 3675, 1155, 353, 8840, 836, 8, 341, 8924, 2227, 1669, 1281, 9147, 14032, 31344, 37790, 23634, 16, 1669, 330, 792, 16, 698, 23634, 17, 1669, 330, 792, 17, 698, 23634, 18, 1669, 330, 792, 18, 698, 11940, 2208, 16, 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 TestJsOpen(t *testing.T) { t.Parallel() t.Run("fileExists", func(t *testing.T) { t.Parallel() var msg string logger := &testLogger{ info: func(args ...interface{}) { msg = fmt.Sprintf("%v", args[0]) }, } reader := &testReader{readFunc: func(file *common.File) error { file.Data = "foobar" ...
explode_data.jsonl/32513
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 411 }
[ 2830, 3393, 30480, 5002, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3244, 16708, 445, 1192, 15575, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 2405, 3750, 914, 198, 197, 17060, 1669, 609, 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 TestConfigTxContext_DeleteClusterNode(t *testing.T) { t.Skip("Add/Remove/Update node is a config update, TODO in issue: https://github.com/hyperledger-labs/orion-server/issues/40") clientCryptoDir := testutils.GenerateTestClientCrypto(t, []string{"admin", "server"}) testServer, _, _, err := SetupTestServer(t, ...
explode_data.jsonl/65331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1145 }
[ 2830, 3393, 2648, 31584, 1972, 57418, 28678, 1955, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 2212, 14, 13021, 14, 4289, 2436, 374, 264, 2193, 2647, 11, 5343, 304, 4265, 25, 3703, 1110, 5204, 905, 7530, 39252, 50704, 2852, 3435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImportThenCatch(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` import(name).then(pass, fail) import(name).then(pass).catch(fail) import(name).catch(fail) `, }, entryPaths: []string{"/entry.js"}, options: config.Options{ Mode: ...
explode_data.jsonl/38488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 11511, 12209, 57760, 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, 21918, 3153, 568, 3391, 39790...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPop2(t *testing.T) { var e1, e2 float32 e := createRandomObject(e1) if v, ok := e.(float32); ok { e1 = v } e = createRandomObject(e2) if v, ok := e.(float32); ok { e2 = v } s := New() popped, found := s.Pop2() if popped != nonExistent { t.Errorf("default non existent sentinel not returned, ins...
explode_data.jsonl/35006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 11598, 17, 1155, 353, 8840, 836, 8, 341, 2405, 384, 16, 11, 384, 17, 2224, 18, 17, 198, 7727, 1669, 1855, 13999, 1190, 2026, 16, 340, 743, 348, 11, 5394, 1669, 384, 12832, 3649, 18, 17, 1215, 5394, 341, 197, 7727, 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...
7
func TestRejectMultipleModelSpecs(t *testing.T) { g := gomega.NewGomegaWithT(t) isvc := makeTestInferenceService() isvc.Spec.Default.Predictor.Custom = &CustomSpec{Container: v1.Container{}} g.Expect(isvc.validate(c)).Should(gomega.MatchError(ExactlyOnePredictorViolatedError)) }
explode_data.jsonl/1487
{ "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, 78413, 32089, 1712, 8327, 82, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 19907, 7362, 1669, 1281, 2271, 641, 2202, 1860, 741, 19907, 7362, 36473, 13275, 1069, 8861, 269, 27649...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsStatusCode(t *testing.T) { tests := []struct { Error interface{} Code int Want bool }{ // #0 { Error: nil, Code: 200, Want: false, }, // #1 { Error: "", Code: 200, Want: false, }, // #2 { Error: http.StatusConflict, Code: 409, Want: true, }, // #...
explode_data.jsonl/16557
{ "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, 3872, 15872, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 58421, 3749, 16094, 197, 90774, 220, 526, 198, 197, 17300, 517, 220, 1807, 198, 197, 59403, 197, 197, 322, 671, 15, 198, 197, 197, 515, 298, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetGroupByRemoteID(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() group := th.CreateGroup() g, err := th.App.GetGroupByRemoteID(group.RemoteId, model.GroupSourceLdap) require.Nil(t, err) require.NotNil(t, g) g, err = th.App.GetGroupByRemoteID(model.NewId(), model.GroupSourceLdap) requ...
explode_data.jsonl/37034
{ "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, 1949, 2808, 1359, 24703, 915, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 44260, 1669, 270, 7251, 2808, 2822, 3174, 11, 1848, 1669, 270, 5105, 2234, 2808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLabels(t *testing.T) { taskEngine, done, _ := setupWithDefaultConfig(t) defer done() client, err := sdkClient.NewClientWithOpts(sdkClient.WithHost(endpoint), sdkClient.WithVersion(sdkclientfactory.GetDefaultVersion().String())) require.NoError(t, err, "Creating go docker client failed") testArn := "Test...
explode_data.jsonl/39475
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 489 }
[ 2830, 3393, 23674, 1155, 353, 8840, 836, 8, 341, 49115, 4571, 11, 2814, 11, 716, 1669, 6505, 2354, 3675, 2648, 1155, 340, 16867, 2814, 2822, 25291, 11, 1848, 1669, 45402, 2959, 7121, 2959, 2354, 43451, 1141, 7584, 2959, 26124, 9296, 548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandleTimeout(t *testing.T) { h, err := NewHandle() if err != nil { t.Fatal(err) } defer h.Close() for _, sh := range h.sockets { verifySockTimeVal(t, sh.Socket.GetFd(), unix.Timeval{Sec: 0, Usec: 0}) } h.SetSocketTimeout(2*time.Second + 8*time.Millisecond) for _, sh := range h.sockets { verif...
explode_data.jsonl/22563
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 6999, 7636, 1155, 353, 8840, 836, 8, 341, 9598, 11, 1848, 1669, 1532, 6999, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 305, 10421, 2822, 2023, 8358, 557, 1669, 2088, 305, 514, 19601, 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...
4
func TestMats_PolicyWithSingleEntity(t *testing.T) { sName := "TestMats_PolicyWithEntity" sType := pms.TypeApplication pName := "policy1" rpName := "role-policy1" context := &testutil.TestContext{ NameIDMap: make(map[string]string), NameObjectMap: make(map[string]interface{}), } data := &[]testutil.T...
explode_data.jsonl/581
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2465 }
[ 2830, 3393, 44, 1862, 1088, 8018, 2354, 10888, 3030, 1155, 353, 8840, 836, 8, 1476, 1903, 675, 1669, 330, 2271, 44, 1862, 1088, 8018, 2354, 3030, 698, 1903, 929, 1669, 281, 1011, 10184, 4988, 271, 3223, 675, 1669, 330, 34790, 16, 698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFeedForbidden(t *testing.T) { client, mux, _, teardown := setup() defer teardown() mux.HandleFunc("/api/v2/feed/", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusForbidden) }) got, resp, err := client.Feed(context.Background(), "30aa7ab8-4389-4658-a4f8-0bc6d0015ba0", "c423ab8d...
explode_data.jsonl/78670
{ "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, 28916, 69115, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 2068, 5457, 17, 93730, 28105, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestQueryWatchBasic(t *testing.T) { // Test basic watch results. exp := strings.Join([]string{ "HTTP/1.1 200 OK\nContent-Type: application/json\nTransfer-Encoding: chunked\n\n10", `{"result":null} `, `7c`, `{"result":[{"expressions":[{"value":true,"text":"a=data.x","location":{"row":1,"col":1}}],"binding...
explode_data.jsonl/79017
{ "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, 2859, 14247, 15944, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 6770, 3736, 3059, 624, 48558, 1669, 9069, 22363, 10556, 917, 515, 197, 197, 1, 9230, 14, 16, 13, 16, 220, 17, 15, 15, 10402, 1699, 2762, 10804, 25, 3766, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProgressEventHandlerOnSuccessfulCoord(t *testing.T) { ev := NewProgressEventHandler(true, 0) board := challengeBoard coord := &Coord{3, 3} testProgressEventHandler(t, func() { ev.OnSuccessfulCoord(board, coord) }, ev, coord, true) }
explode_data.jsonl/54911
{ "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, 9496, 17945, 1925, 36374, 19437, 1155, 353, 8840, 836, 8, 341, 74837, 1669, 1532, 9496, 17945, 3715, 11, 220, 15, 340, 59868, 1669, 8645, 11932, 198, 197, 26402, 1669, 609, 19437, 90, 18, 11, 220, 18, 532, 18185, 9496, 179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_DeleteETHKey(t *testing.T) { t.Parallel() ethClient := newEthMock(t) ethClient.On("BalanceAt", mock.Anything, mock.Anything, mock.Anything).Return(big.NewInt(42), nil) ethClient.On("GetLINKBalance", mock.Anything, mock.Anything).Return(assets.NewLinkFromJuels(42), nil) app := startNewApplication(t...
explode_data.jsonl/79046
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 2959, 57418, 7625, 1592, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 769, 2959, 1669, 501, 65390, 11571, 1155, 340, 197, 769, 2959, 8071, 445, 21190, 1655, 497, 7860, 13311, 1596, 11, 7860, 13311, 1596, 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 TestSyncPodWithFailure(t *testing.T) { pod := makePod("foo", nil) tests := map[string]struct { container api.Container dockerError map[string]error pullerError []error expected []*kubecontainer.SyncResult }{ "PullImageFailure": { api.Container{Name: "bar", Image: "foo/real_image:v1", ImagePull...
explode_data.jsonl/31183
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 709 }
[ 2830, 3393, 12154, 23527, 2354, 17507, 1155, 353, 8840, 836, 8, 341, 3223, 347, 1669, 1281, 23527, 445, 7975, 497, 2092, 340, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 53290, 256, 6330, 33672, 198, 197, 2698, 13659, 1454, 2415, 1403...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlers_EditMessage(t *testing.T) { t.Parallel() path := "/api/v3/messages/{messageId}" env := Setup(t, common1) user := env.CreateUser(t, rand) user2 := env.CreateUser(t, rand) user3 := env.CreateUser(t, rand) pub := env.CreateChannel(t, rand) bot := env.CreateBot(t, rand, user.GetID()) bot2 := ...
explode_data.jsonl/40150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1633 }
[ 2830, 3393, 39949, 66158, 2052, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 26781, 1669, 3521, 2068, 5457, 18, 71753, 9388, 1994, 764, 11195, 57538, 1669, 18626, 1155, 11, 4185, 16, 692, 19060, 1669, 6105, 7251, 1474, 1155, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReconcileOnCancelledRunFinallyPipelineRunWithFinalTask(t *testing.T) { // TestReconcileOnCancelledRunFinallyPipelineRunWithFinalTask runs "Reconcile" on a PipelineRun that has been gracefully cancelled. // It verifies that reconcile is successful, final tasks run, the pipeline status updated and events gener...
explode_data.jsonl/68262
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1033 }
[ 2830, 3393, 693, 40446, 457, 1925, 39473, 6727, 23949, 34656, 51918, 19357, 6262, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 1925, 39473, 6727, 23949, 34656, 51918, 19357, 6262, 8473, 330, 693, 40446, 457, 1, 389, 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...
6
func TestGetMarginLendingRates(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip() } _, err := f.GetMarginLendingRates(context.Background()) if err != nil { t.Error(err) } }
explode_data.jsonl/15171
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 1949, 21681, 43, 2459, 82623, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 741, 197, 532, 197, 6878, 1848, 1669, 282, 2234, 21681, 43, 2459, 82623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProxy(t *testing.T) { table := []struct { method string path string reqBody string respBody string respContentType string reqNamespace string }{ {"GET", "/some/dir", "", "answer", "text/css", "default"}, {"GET", "/some/dir", "", "<html><head></head><body>...
explode_data.jsonl/53612
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1405 }
[ 2830, 3393, 16219, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 3056, 1235, 341, 197, 42257, 688, 914, 198, 197, 26781, 310, 914, 198, 197, 24395, 5444, 260, 914, 198, 197, 34653, 5444, 286, 914, 198, 197, 34653, 29504, 914, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestNewConfig(t *testing.T) { expConfgig := &processor.Config{ Buffer: 0, Receive: struct { Response bool Errors bool }{ Response: true, Errors: false, }, } got := processor.NewConfig() require.Equal(t, expConfgig, got) }
explode_data.jsonl/7168
{ "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, 3564, 2648, 1155, 353, 8840, 836, 8, 341, 48558, 1109, 4817, 343, 1669, 609, 29474, 10753, 515, 197, 48424, 25, 220, 15, 345, 197, 197, 14742, 25, 2036, 341, 298, 69604, 1807, 198, 298, 197, 13877, 256, 1807, 198, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMemoryDB(t *testing.T) { t.Run("DatabaseSuite", func(t *testing.T) { dbtest.TestDatabaseSuite(t, func() ethdb.KeyValueStore { return New() }) }) }
explode_data.jsonl/27176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 10642, 3506, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5988, 28000, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 20939, 1944, 8787, 5988, 28000, 1155, 11, 2915, 368, 8372, 1999, 9610, 1130, 6093, 341, 298, 853, 1532...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRandomPorts(t *testing.T) { port := "9096" m1, _ := ma.NewMultiaddr("/ip4/0.0.0.0/tcp/9096") m2, _ := ma.NewMultiaddr("/ip6/::/udp/9096") addresses, err := cmdutils.RandomizePorts([]ma.Multiaddr{m1, m2}) if err != nil { t.Fatal(err) } v1, err := addresses[0].ValueForProtocol(ma.P_TCP) if err != nil...
explode_data.jsonl/14306
{ "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, 13999, 68273, 1155, 353, 8840, 836, 8, 341, 52257, 1669, 330, 24, 15, 24, 21, 698, 2109, 16, 11, 716, 1669, 7491, 7121, 20358, 6214, 4283, 573, 19, 14, 15, 13, 15, 13, 15, 13, 15, 95958, 14, 24, 15, 24, 21, 1138, 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...
6
func TestWriterReadFromErrors(t *testing.T) { for i, rw := range errorReaderFromTests { w := NewWriter(rw) if _, err := w.ReadFrom(rw); err != rw.expected { t.Errorf("w.ReadFrom(errorReaderFromTests[%d]) = _, %v, want _,%v", i, err, rw.expected) } } }
explode_data.jsonl/22877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 6492, 4418, 3830, 13877, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 25991, 1669, 2088, 1465, 5062, 3830, 18200, 341, 197, 6692, 1669, 1532, 6492, 2601, 86, 340, 197, 743, 8358, 1848, 1669, 289, 6503, 3830, 2601, 86, 1215...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBasicTypes(test *testing.T) { schema := loadTestSchema(test, "basictypes.rdl") if schema == nil { return } if !assertStringEquals(test, "namespace", "test", string(schema.Namespace)) { return } pdata := loadTestData(test, "basictypes.json") if pdata == nil { return } data := *pdata validation ...
explode_data.jsonl/74345
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 15944, 4173, 8623, 353, 8840, 836, 8, 341, 1903, 3416, 1669, 2795, 2271, 8632, 8623, 11, 330, 17797, 849, 1804, 1746, 8736, 1138, 743, 10802, 621, 2092, 341, 197, 853, 198, 197, 532, 743, 753, 2207, 703, 4315, 8623, 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...
7
func TestShrinkDefaultRoute(t *testing.T) { tests := []struct { route string in []string out []string localIPFn func(netaddr.IP) bool // true if this machine's local IP address should be "in" after shrinking. }{ { route: "0.0.0.0/0", in: []string{"1.2.3.4", "25.0.0.1"}, out: []s...
explode_data.jsonl/1958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 876 }
[ 2830, 3393, 2016, 34365, 3675, 4899, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 7000, 2133, 257, 914, 198, 197, 17430, 286, 3056, 917, 198, 197, 13967, 981, 3056, 917, 198, 197, 8854, 3298, 24911, 2915, 30723, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRootDirectory(t *testing.T) { var tests = []struct { target string root string unix bool win bool }{ {target: ".", root: "."}, {target: "foo/bar/baz", root: "."}, {target: "../foo/bar/baz", root: ".."}, {target: "..", root: ".."}, {target: "../../..", root: "../../.."}, {target: "/...
explode_data.jsonl/2037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 8439, 9310, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 28861, 914, 198, 197, 33698, 256, 914, 198, 197, 20479, 941, 256, 1807, 198, 197, 68452, 262, 1807, 198, 197, 59403, 197, 197, 90, 5657, 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...
6
func TestServerSymlink(t *testing.T) { skipIfWindows(t) // No symlinks on windows. listenerGo, hostGo, portGo := testServer(t, GolangSFTP, READONLY) defer listenerGo.Close() link := "/tmp/" + randName() defer os.RemoveAll(link) // now create a symbolic link within the new directory if output, err := runSftpCli...
explode_data.jsonl/6580
{ "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, 5475, 34667, 44243, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 2679, 13164, 1155, 8, 442, 2308, 6568, 1014, 15504, 389, 11030, 624, 14440, 798, 10850, 11, 3468, 10850, 11, 2635, 10850, 1669, 1273, 5475, 1155, 11, 479, 37287,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtractDirective(t *testing.T) { for testName, testCase := range map[string]struct { userData string expectError bool expectedDirective userdata.Directive expectedUserData string }{ "Succeeds": { userData: "#!/bin/bash\necho foo", expectedDirective: "#!/bin/bash", ...
explode_data.jsonl/3808
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 439 }
[ 2830, 3393, 28959, 62076, 1155, 353, 8840, 836, 8, 341, 2023, 94396, 11, 54452, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 19060, 1043, 688, 914, 198, 197, 24952, 1454, 981, 1807, 198, 197, 42400, 62076, 66874, 89592, 533, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestManifestFromImage(t *testing.T) { for _, usedotslash := range []bool{false, true} { img, err := newTestACI(usedotslash) if err != nil { t.Fatalf("newTestACI: unexpected error: %v", err) } defer img.Close() defer os.Remove(img.Name()) im, err := ManifestFromImage(img) if err != nil { t.Fat...
explode_data.jsonl/31980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 38495, 3830, 1906, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1483, 2412, 24686, 1669, 2088, 3056, 2641, 90, 3849, 11, 830, 92, 341, 197, 39162, 11, 1848, 1669, 501, 2271, 1706, 40, 7, 2591, 2412, 24686, 340, 197, 743, 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...
7
func TestPeerConnection_Transceiver_Mid(t *testing.T) { lim := test.TimeOut(time.Second * 30) defer lim.Stop() report := test.CheckRoutines(t) defer report() pcOffer, err := NewPeerConnection(Configuration{}) assert.NoError(t, err) pcAnswer, err := NewPeerConnection(Configuration{}) assert.NoError(t, err) ...
explode_data.jsonl/3768
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1049 }
[ 2830, 3393, 30888, 4526, 34932, 12862, 1245, 307, 1155, 353, 8840, 836, 8, 341, 197, 4659, 1669, 1273, 16299, 2662, 9730, 32435, 353, 220, 18, 15, 340, 16867, 4568, 30213, 2822, 69931, 1669, 1273, 10600, 49, 28628, 1155, 340, 16867, 189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetCommitKVStore(t *testing.T) { var db dbm.DB = dbm.NewMemDB() ms := newMultiStoreWithMounts(db, types.PruneDefault) err := ms.LoadLatestVersion() require.Nil(t, err) key := ms.keysByName["store1"] store1 := ms.GetCommitKVStore(key) require.NotNil(t, store1) require.IsType(t, &iavl.Store{}, store1) ...
explode_data.jsonl/44863
{ "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, 1949, 33441, 82707, 6093, 1155, 353, 8840, 836, 8, 341, 2405, 2927, 2927, 76, 22537, 284, 2927, 76, 7121, 18816, 3506, 741, 47691, 1669, 501, 20358, 6093, 2354, 16284, 82, 9791, 11, 4494, 17947, 2886, 3675, 340, 9859, 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 TestWorkflows(t *testing.T) { wfs := Workflows{ {ObjectMeta: metav1.ObjectMeta{Name: "3"}, Status: WorkflowStatus{FinishedAt: metav1.NewTime(time.Time{}.Add(1))}}, {ObjectMeta: metav1.ObjectMeta{Name: "2"}, Status: WorkflowStatus{FinishedAt: metav1.NewTime(time.Time{}.Add(0))}}, {ObjectMeta: metav1.ObjectMe...
explode_data.jsonl/26012
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 6776, 38140, 1155, 353, 8840, 836, 8, 341, 6692, 3848, 1669, 5547, 38140, 515, 197, 197, 90, 1190, 12175, 25, 77520, 16, 80222, 63121, 25, 330, 18, 14345, 8104, 25, 60173, 2522, 90, 24890, 1655, 25, 77520, 16, 7121, 1462, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAllOrcidAttributesHappyDay(t *testing.T) { expected := http.StatusOK status, attributes := client.GetAllOrcidAttributes(cfg.Endpoint, goodToken(cfg.Secret)) if status != expected { t.Fatalf("Expected %v, got %v\n", expected, status) } ensureValidOrcidsAttributes(t, attributes) }
explode_data.jsonl/4712
{ "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, 1949, 2403, 46, 1287, 307, 10516, 32847, 10159, 1155, 353, 8840, 836, 8, 1476, 42400, 1669, 1758, 52989, 198, 23847, 11, 8201, 1669, 2943, 45732, 46, 1287, 307, 10516, 28272, 90409, 11, 1661, 3323, 28272, 74779, 1171, 743, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2