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 TestHistoryRemoveAPI(t *testing.T) { node := nodeWithMemoryEngine() ruleConfig := rule.DefaultConfig ruleContainer := rule.NewContainer(ruleConfig) api := NewExecutor(node, ruleContainer, "test") resp := api.HistoryRemove(context.Background(), &HistoryRemoveRequest{}) require.Equal(t, ErrorBadRequest, resp....
explode_data.jsonl/48462
{ "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, 13424, 13021, 7082, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 2436, 2354, 10642, 4571, 741, 7000, 1111, 2648, 1669, 5912, 13275, 2648, 198, 7000, 1111, 4502, 1669, 5912, 7121, 4502, 34944, 2648, 692, 54299, 1669, 1532, 25255,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGroupByClauseRestore(t *testing.T) { testCases := []NodeRestoreTestCase{ {"GROUP BY a,b desc", "GROUP BY `a`,`b` DESC"}, {"GROUP BY 1 desc,b", "GROUP BY 1 DESC,`b`"}, } extractNodeFunc := func(node Node) Node { return node.(*SelectStmt).GroupBy } runNodeRestoreTest(t, testCases, "select * from t %s"...
explode_data.jsonl/27579
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 2808, 1359, 28482, 56284, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1955, 56284, 16458, 515, 197, 197, 4913, 41480, 7710, 264, 8402, 6560, 497, 330, 41480, 7710, 1565, 64, 40181, 65, 63, 16089, 7115, 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 TestUnmarshalServerBoundHandshake(t *testing.T) { tt := []struct { packet mc.Packet unmarshalledPacket mc.ServerBoundHandshake }{ { packet: mc.Packet{ ID: 0x00, // ProtoVer. | Server Address |Serv. Port | Nxt State ...
explode_data.jsonl/45000
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 815 }
[ 2830, 3393, 1806, 27121, 5475, 19568, 2314, 29661, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 68802, 1797, 19223, 93971, 198, 197, 20479, 36239, 4736, 16679, 19223, 22997, 19568, 2314, 29661, 198, 197, 59403, 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 TestNodes_Len(t *testing.T) { nodes := Nodes{ &Node{val: []byte("1")}, &Node{val: []byte("2")}, &Node{val: []byte("3")}, &Node{val: []byte("4")}, &Node{val: []byte("5")}, } exp := len(nodes) if act := nodes.Len(); exp != act { t.Errorf("expected Len to be %d, got %d", exp, act) } }
explode_data.jsonl/57986
{ "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, 12288, 2351, 268, 1155, 353, 8840, 836, 8, 341, 79756, 1669, 52501, 515, 197, 197, 5, 1955, 90, 831, 25, 3056, 3782, 445, 16, 79583, 197, 197, 5, 1955, 90, 831, 25, 3056, 3782, 445, 17, 79583, 197, 197, 5, 1955, 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...
2
func TestCompositeLit4(t *testing.T) { gopClTest(t, ` type Result struct { A int } func foo() *Result { return {A: 1} } `, `package main type Result struct { A int } func foo() *Result { return &Result{A: 1} } `) }
explode_data.jsonl/73631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 41685, 68954, 19, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1313, 5714, 2036, 341, 22985, 526, 198, 630, 2830, 15229, 368, 353, 2077, 341, 853, 314, 32, 25, 220, 16, 532, 532, 7808, 1565, 1722...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFuzz(t *testing.T) { t.Parallel() for _, data := range []string{ ` type H b[A] type b[L] { m b[u:L] l b[z:L] m b[V:L] m b[0:L] H b[o:L] } `, ` type p b[L] type b[L]{ e b[3:L] e b[2:L] e b[1[L]] k b[H] k b[Q] }`, "d~^gB̉`i\u007f?\xb0.", "da[", "define\x98define(define\x98define\x98define\x...
explode_data.jsonl/53122
{ "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, 37, 8889, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 821, 1669, 2088, 3056, 917, 515, 197, 197, 3989, 1313, 472, 293, 22519, 921, 1313, 293, 49415, 60, 341, 2109, 293, 21335, 69233, 921, 8810, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteValidatorBurn(t *testing.T) { stakedValidator := getStakedValidator() var emptyCoins sdk.Dec type args struct { amount sdk.Dec validator types.Validator } type expected struct { amount sdk.Dec found bool message string } tests := []struct { name string panics bool args e...
explode_data.jsonl/9976
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 6435, 14256, 66213, 1155, 353, 8840, 836, 8, 341, 18388, 7741, 14256, 1669, 633, 623, 7741, 14256, 741, 2405, 4287, 69602, 45402, 22442, 271, 13158, 2827, 2036, 341, 197, 197, 6045, 262, 45402, 22442, 198, 197, 197, 16112, 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 TestPublishWithoutSourceId(t *testing.T) { payload := buildDefaultTestPayloadWithoutSourceId() body, statusCode := performPublishRequest(t, publishServer.URL, payload) assertExpectedError(t, body, statusCode, http.StatusBadRequest, api.FieldSourceId+"/"+api.HeaderSourceId, api.ErrorTypeValidationViolation) }
explode_data.jsonl/74411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 50145, 26040, 3608, 764, 1155, 353, 8840, 836, 8, 341, 76272, 1669, 1936, 3675, 2271, 29683, 26040, 3608, 764, 741, 35402, 11, 35532, 1669, 2736, 50145, 1900, 1155, 11, 3415, 5475, 20893, 11, 7729, 340, 6948, 18896, 1454, 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 TestTSCall(t *testing.T) { expectPrintedTS(t, "foo()", "foo();\n") expectPrintedTS(t, "foo<number>()", "foo();\n") expectPrintedTS(t, "foo<number, boolean>()", "foo();\n") }
explode_data.jsonl/82328
{ "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, 51, 3540, 541, 1155, 353, 8840, 836, 8, 341, 24952, 8994, 291, 9951, 1155, 11, 330, 7975, 50514, 330, 7975, 2129, 59, 77, 1138, 24952, 8994, 291, 9951, 1155, 11, 330, 7975, 39982, 13555, 497, 330, 7975, 2129, 59, 77, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJiraIntegration(t *testing.T) { testutil.ConfigureIntegrationTest(t, testConfig, "TestJiraIntegration") Convey("With a JIRA rest interface that makes a valid request", t, func() { jira := JiraHandler{client: http.DefaultClient, opts: *testConfig.Jira.Export()} Convey("the request for a ticket should ret...
explode_data.jsonl/23587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 41, 8832, 52464, 1155, 353, 8840, 836, 8, 341, 18185, 1314, 78281, 52464, 2271, 1155, 11, 1273, 2648, 11, 330, 2271, 41, 8832, 52464, 1138, 93070, 5617, 445, 2354, 264, 619, 60556, 2732, 3749, 429, 3643, 264, 2697, 1681, 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 TestStaticSource(t *testing.T) { certPEM, keyPEM := makePEM("localhost", time.Minute) cert, err := tls.X509KeyPair(certPEM, keyPEM) if err != nil { t.Fatalf("X509KeyPair: got %s want nil", err) } testSource(t, StaticSource{cert}, makeCertPool(certPEM), 0) }
explode_data.jsonl/24942
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 11690, 3608, 1155, 353, 8840, 836, 8, 341, 1444, 529, 1740, 44, 11, 1376, 1740, 44, 1669, 1281, 1740, 44, 445, 8301, 497, 882, 75770, 340, 1444, 529, 11, 1848, 1669, 55026, 4338, 20, 15, 24, 1592, 12443, 87793, 1740, 44,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOverrideDefaultRateLimitConfig(t *testing.T) { var rateLimitReadQPS float32 = 3.0 rateLimitReadBuckets := 10 var rateLimitWriteQPS float32 = 6.0 rateLimitWriteBuckets := 20 defaultConfigWithRateLimits := &CloudProviderRateLimitConfig{ RateLimitConfig: azclients.RateLimitConfig{ CloudProviderRateLimi...
explode_data.jsonl/12804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 593 }
[ 2830, 3393, 2177, 3675, 11564, 16527, 2648, 1155, 353, 8840, 836, 8, 341, 2405, 4379, 16527, 4418, 48, 5012, 2224, 18, 17, 284, 220, 18, 13, 15, 198, 7000, 349, 16527, 4418, 33, 38551, 1669, 220, 16, 15, 198, 2405, 4379, 16527, 7985...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRangeLookupWithOpenTransaction(t *testing.T) { defer leaktest.AfterTest(t)() s, _ := startNoSplitMergeServer(t) defer s.Stopper().Stop(context.TODO()) // Create an intent on the meta1 record by writing directly to the // engine. key := testutils.MakeKey(keys.Meta1Prefix, roachpb.KeyMax) now := s.Clock(...
explode_data.jsonl/36450
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 658 }
[ 2830, 3393, 6046, 34247, 2354, 5002, 8070, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 1903, 11, 716, 1669, 1191, 2753, 20193, 52096, 5475, 1155, 340, 16867, 274, 7758, 18487, 1005, 10674, 5378, 90988, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReversiAnz9(t *testing.T) { r := NewReversiAnz() r.SetPointCnt(1) if r.GetPointCnt() != 1 { t.Errorf("NG") } }
explode_data.jsonl/23032
{ "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, 693, 3004, 72, 2082, 89, 24, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 7000, 4202, 2609, 33747, 7, 16, 340, 743, 435, 2234, 2609, 33747, 368, 961, 220, 16, 341, 197, 3244, 13080, 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 ]
2
func TestWorkspace_DeleteWorkspaceFile(t *testing.T) { testCases := map[string]struct { copilotDir string fs func() afero.Fs }{ ".workspace should be deleted": { copilotDir: "copilot", fs: func() afero.Fs { fs := afero.NewMemMapFs() fs.MkdirAll("/copilot", 0755) fs.Create("/copilot/.wo...
explode_data.jsonl/30122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 45981, 57418, 45981, 1703, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 1444, 453, 23958, 6184, 914, 198, 197, 53584, 260, 2915, 368, 264, 802, 78, 991, 82, 198, 197, 59403, 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 TestReconcileOnStoppedPipelineRunWithCompletedTask(t *testing.T) { // TestReconcileOnStoppedPipelineRunWithCompletedTask runs "Reconcile" on a PipelineRun that has been gracefully stopped // and waits for all running tasks to be completed, before stopping the run. // It verifies that reconcile is successful, fi...
explode_data.jsonl/27293
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1361 }
[ 2830, 3393, 693, 40446, 457, 1925, 59803, 34656, 51918, 22724, 6262, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 1925, 59803, 34656, 51918, 22724, 6262, 8473, 330, 693, 40446, 457, 1, 389, 264, 40907, 6727, 429, 702, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogResponse(t *testing.T) { cases := []struct { Body *bytes.Buffer ExpectBody []byte ReadBody bool LogLevel aws.LogLevelType }{ { Body: bytes.NewBuffer([]byte("body content")), ExpectBody: []byte("body content"), }, { Body: bytes.NewBuffer([]byte("body content")),...
explode_data.jsonl/41773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 820 }
[ 2830, 3393, 2201, 2582, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 197, 5444, 981, 353, 9651, 22622, 198, 197, 35911, 5444, 3056, 3782, 198, 197, 96043, 5444, 256, 1807, 198, 197, 24201, 4449, 256, 31521, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetKnownUsers(t *testing.T) { th := Setup(t) defer th.TearDown() t1, err := th.App.CreateTeam(th.Context, &model.Team{ DisplayName: "dn_" + model.NewId(), Name: GenerateTestTeamName(), Email: th.GenerateTestEmail(), Type: model.TeamOpen, }) require.Nil(t, err, "failed to creat...
explode_data.jsonl/47564
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1387 }
[ 2830, 3393, 1949, 48206, 7137, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 3244, 16, 11, 1848, 1669, 270, 5105, 7251, 14597, 24365, 9328, 11, 609, 2528, 65842, 515, 197, 197, 26456, 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 TestCacheKVStore(t *testing.T) { mem := dbadapter.Store{DB: dbm.NewMemDB()} st := cachekv.NewStore(mem) require.Empty(t, st.Get(keyFmt(1)), "Expected `key1` to be empty") // put something in mem and in cache mem.Set(keyFmt(1), valFmt(1)) st.Set(keyFmt(1), valFmt(1)) require.Equal(t, valFmt(1), st.Get(keyF...
explode_data.jsonl/6647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 572 }
[ 2830, 3393, 8233, 82707, 6093, 1155, 353, 8840, 836, 8, 341, 14145, 1669, 2927, 19731, 38047, 90, 3506, 25, 2927, 76, 7121, 18816, 3506, 23509, 18388, 1669, 60287, 1225, 85, 7121, 6093, 39908, 692, 17957, 11180, 1155, 11, 357, 2234, 485...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLRUCapacityEntries(t *testing.T) { require := require.New(t) const cacheSize = 5 var ( nrEvictCallbacks int evictedKey, evictedValue interface{} ) cache, err := New( Capacity(uint64(cacheSize), false), OnEvict(func(k, v interface{}) { evictedKey, evictedValue = k, v nrEvictCallbac...
explode_data.jsonl/69518
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 877 }
[ 2830, 3393, 20117, 5459, 391, 4018, 24533, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 4777, 6500, 1695, 284, 220, 20, 271, 2405, 2399, 197, 9038, 81, 34112, 849, 44461, 260, 526, 198, 197, 74837, 12770, 1592, 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 TestCaptiveAfterClose(t *testing.T) { metaChan := make(chan metaResult, 100) for i := 64; i <= 66; i++ { meta := buildLedgerCloseMeta(testLedgerHeader{sequence: uint32(i)}) metaChan <- metaResult{ LedgerCloseMeta: &meta, } } mockRunner := &stellarCoreRunnerMock{} ctx, cancel := context.WithCancel(c...
explode_data.jsonl/7330
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 597 }
[ 2830, 3393, 34, 27781, 6025, 7925, 1155, 353, 8840, 836, 8, 341, 84004, 46019, 1669, 1281, 35190, 8823, 2077, 11, 220, 16, 15, 15, 692, 2023, 600, 1669, 220, 21, 19, 26, 600, 2651, 220, 21, 21, 26, 600, 1027, 341, 197, 84004, 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 TestGetApplicationDetail(t *testing.T) { tests := map[string]struct { engine chaosTypes.EngineInfo isErr bool }{ "Test Positive-1": { engine: chaosTypes.EngineInfo{ Instance: &v1alpha1.ChaosEngine{ ObjectMeta: metav1.ObjectMeta{ Name: "test-monitor", Namespace: "test", },...
explode_data.jsonl/32124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 437 }
[ 2830, 3393, 1949, 4988, 10649, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 80118, 26915, 4173, 54424, 1731, 198, 197, 19907, 7747, 220, 1807, 198, 197, 59403, 197, 197, 1, 2271, 43903, 12, 16, 788, 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...
5
func TestErrNotInMainChain(t *testing.T) { errStr := "no block at height 1 exists" err := error(errNotInMainChain(errStr)) // Ensure the stringized output for the error is as expected. if err.Error() != errStr { t.Fatalf("errNotInMainChain retuned unexpected error string - got %q, want %q", err.Error(), errStr) ...
explode_data.jsonl/37661
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 7747, 2623, 641, 6202, 18837, 1155, 353, 8840, 836, 8, 341, 9859, 2580, 1669, 330, 2152, 2504, 518, 2608, 220, 16, 6724, 698, 9859, 1669, 1465, 3964, 2623, 641, 6202, 18837, 3964, 2580, 4390, 197, 322, 29279, 279, 914, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHex2Int(t *testing.T) { assert.EqualValues(t, 0, Hex2Int("0x0")) assert.EqualValues(t, 1, Hex2Int("0x01")) assert.EqualValues(t, 100, Hex2Int("64")) assert.EqualValues(t, 25600, Hex2Int("6400")) var maxUint64 uint64 maxUint64 = math.MaxUint64 assert.EqualValues(t, Hex2Int("ffffffffffffffff"), maxUint64...
explode_data.jsonl/31334
{ "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, 20335, 17, 1072, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 6227, 1155, 11, 220, 15, 11, 27228, 17, 1072, 445, 15, 87, 15, 5455, 6948, 12808, 6227, 1155, 11, 220, 16, 11, 27228, 17, 1072, 445, 15, 87, 15, 16, 5455, 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 TestUnitTokenAccessorRenewSessionContention(t *testing.T) { accessor := getSimpleTokenAccessor() oldToken := "test" accessor.SetTokens(oldToken, "master", 123) var counter int32 = 0 expectedToken := "new token" expectedMaster := "new master" expectedSession := int64(321) renewSessionDummy := func(_ conte...
explode_data.jsonl/44743
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 649 }
[ 2830, 3393, 4562, 3323, 29889, 34625, 365, 5283, 2762, 290, 1155, 353, 8840, 836, 8, 341, 197, 5211, 269, 1669, 633, 16374, 3323, 29889, 741, 61828, 3323, 1669, 330, 1944, 698, 197, 5211, 269, 4202, 29300, 21972, 3323, 11, 330, 13629, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOurConfig(t *testing.T) { cm, example := ConfigMapsFromTestFile(t, ConfigName) if _, err := NewConfigFromConfigMap(cm); err != nil { t.Error("NewConfigFromConfigMap(actual) =", err) } if got, err := NewConfigFromConfigMap(example); err != nil { t.Error("NewConfigFromConfigMap(example) =", err) } else...
explode_data.jsonl/58823
{ "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, 7981, 2648, 1155, 353, 8840, 836, 8, 341, 98316, 11, 3110, 1669, 5532, 36562, 3830, 2271, 1703, 1155, 11, 5532, 675, 692, 743, 8358, 1848, 1669, 1532, 2648, 3830, 2648, 2227, 51126, 1215, 1848, 961, 2092, 341, 197, 3244, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestListenNotifySelfNotification(t *testing.T) { t.Parallel() conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE")) defer closeConn(t, conn) skipCockroachDB(t, conn, "Server does not support LISTEN / NOTIFY (https://github.com/cockroachdb/cockroach/issues/41522)") mustExec(t, conn, "listen self") ...
explode_data.jsonl/40018
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 38714, 28962, 12092, 11196, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 32917, 1669, 1969, 14611, 703, 1155, 11, 2643, 64883, 445, 11383, 55, 11641, 45510, 5455, 16867, 3265, 9701, 1155, 11, 4534, 692, 1903, 13389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSnapshotExtract(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("Depends on unimplemented containerd bind-mount support on Windows") } t.Parallel() ctx := namespaces.WithNamespace(context.Background(), "buildkit-test") tmpdir, err := ioutil.TempDir("", "cachemanager") require.NoError(t, err) d...
explode_data.jsonl/3974
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1457 }
[ 2830, 3393, 15009, 28959, 1155, 353, 8840, 836, 8, 341, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 197, 3244, 57776, 445, 7839, 1412, 389, 650, 54071, 5476, 67, 10719, 59588, 1824, 389, 5515, 1138, 197, 630, 3244, 41288, 7957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTeamsService_ReviewProjectsByID(t *testing.T) { client, mux, _, teardown := setup() defer teardown() wantAcceptHeaders := []string{mediaTypeProjectsPreview} mux.HandleFunc("/organizations/1/team/1/projects/1", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") testHeader(t, r, "Acc...
explode_data.jsonl/4547
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 60669, 1860, 62, 19432, 29958, 60572, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 50780, 16646, 10574, 1669, 3056, 917, 90, 7399, 929, 29958, 24625, 532, 2109, 2200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOneofParsing(t *testing.T) { const in = `name:"Shrek"` m := new(Communique) want := &Communique{Union: &Communique_Name{"Shrek"}} if err := UnmarshalText(in, m); err != nil { t.Fatal(err) } if !Equal(m, want) { t.Errorf("\n got %v\nwant %v", m, want) } const inOverwrite = `name:"Shrek" number:42` ...
explode_data.jsonl/9706
{ "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, 3966, 1055, 68839, 1155, 353, 8840, 836, 8, 341, 4777, 304, 284, 1565, 606, 2974, 2016, 41861, 8805, 2109, 1669, 501, 7, 17977, 9587, 340, 50780, 1669, 609, 17977, 9587, 90, 32658, 25, 609, 17977, 9587, 19015, 4913, 2016, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveoldest(t *testing.T) { k1, k2, k3 := "key1", "key2", "key3" v1, v2, v3 := "v1", "v2", "v3" cap := len(k1 + k2 + v1 + v2) lru := New(int64(cap), nil) lru.Add(k1, String(v1)) lru.Add(k2, String(v2)) lru.Add(k3, String(v3)) if _, ok := lru.Get("key1"); ok || lru.Len() != 2 { t.Fatalf("removeoldes...
explode_data.jsonl/16544
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 13021, 337, 4979, 1155, 353, 8840, 836, 8, 220, 341, 16463, 16, 11, 595, 17, 11, 595, 18, 1669, 330, 792, 16, 497, 330, 792, 17, 497, 330, 792, 18, 698, 5195, 16, 11, 348, 17, 11, 348, 18, 1669, 330, 85, 16, 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 Test_JsonInputSchemaMappingProperties_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of JsonInputSchemaMappingProperties via JSON return...
explode_data.jsonl/39625
{ "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, 62, 5014, 2505, 8632, 6807, 7903, 62, 4498, 77521, 78967, 98054, 2848, 4756, 2121, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 220, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHgGetFileByCommit(t *testing.T) { assert := assert.New(t) repo, client := helpers.CreateHgRepo(t, "hg-repo") defer helpers.CleanupHgRepo(t, client) commitID := helpers.SeedHgRepo(t, repo, client) result, err := repo.GetFileByCommit(commitID, "README") assert.Nil(err) fileContent := helpers.GetRepoFi...
explode_data.jsonl/57186
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 39, 70, 1949, 1703, 1359, 33441, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 17200, 5368, 11, 2943, 1669, 30187, 7251, 39, 70, 25243, 1155, 11, 330, 66602, 5504, 5368, 1138, 16867, 30187, 727, 60639, 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 TestIsMultiSigContractGood(t *testing.T) { prog := make([]byte, 71) prog[0] = byte(PUSH2) prog[1] = byte(PUSHBYTES33) prog[35] = byte(PUSHBYTES33) prog[69] = byte(PUSH2) prog[70] = byte(CHECKMULTISIG) assert.Equal(t, true, IsMultiSigContract(prog)) assert.Equal(t, true, IsStandardContract(prog)) }
explode_data.jsonl/40587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 3872, 20358, 47246, 14067, 15216, 1155, 353, 8840, 836, 8, 341, 197, 32992, 1669, 1281, 10556, 3782, 11, 220, 22, 16, 340, 197, 32992, 58, 15, 60, 284, 4922, 5304, 19518, 17, 340, 197, 32992, 58, 16, 60, 284, 4922, 5304,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStatusUpdatesWithoutReplicasChange(t *testing.T) { // Setup a fake server to listen for requests, and run the rc manager in steady state fakeHandler := utiltesting.FakeHandler{ StatusCode: 200, ResponseBody: "", } testServer := httptest.NewServer(&fakeHandler) // TODO: Uncomment when fix #19254 // ...
explode_data.jsonl/37484
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 570 }
[ 2830, 3393, 2522, 37091, 26040, 18327, 52210, 4072, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 264, 12418, 3538, 311, 8844, 369, 7388, 11, 323, 1598, 279, 10192, 6645, 304, 24020, 1584, 198, 1166, 726, 3050, 1669, 4094, 8840, 991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_DocumentProperties_DeleteDocumentProperty(t *testing.T) { config := ReadConfiguration(t) client, ctx := PrepareTest(t, config) remoteDataFolder := remoteBaseTestDataFolder + "/DocumentElements/DocumentProperties" localFile := "Common/test_multi_pages.docx" remoteFileName := "TestDeleteDocu...
explode_data.jsonl/26159
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 1557, 1452, 7903, 57418, 7524, 3052, 1155, 353, 8840, 836, 8, 341, 262, 2193, 1669, 4457, 7688, 1155, 340, 262, 2943, 11, 5635, 1669, 31166, 2271, 1155, 11, 2193, 340, 262, 8699, 1043, 13682, 1669, 8699, 3978, 83920, 13682, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue15920(t *testing.T) { skipSpecialPlatforms(t) // This package only handles gc export data. if runtime.Compiler != "gc" { t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler) } // On windows, we have to set the -D option for the compiler to avoid having a drive // letter a...
explode_data.jsonl/30569
{ "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, 42006, 16, 20, 24, 17, 15, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 20366, 87268, 1155, 692, 197, 322, 1096, 6328, 1172, 13469, 22122, 7485, 821, 624, 743, 15592, 35952, 961, 330, 20669, 1, 341, 197, 3244, 57776, 69, 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...
3
func TestIllegalArgmentName(t *testing.T) { const SCRIPT = ` 'use strict'; try { eval("function F(eval) {}"); } catch (e) { var rv = e instanceof SyntaxError } ` testScript(SCRIPT, valueTrue, t) }
explode_data.jsonl/75280
{ "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, 33713, 2735, 478, 675, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 197, 19176, 7304, 2357, 6799, 341, 197, 93413, 445, 1688, 434, 54463, 8, 4687, 797, 197, 92, 2287, 320, 68, 8, 341, 197, 2405, 17570, 284, 384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShutdownWorker(t *testing.T) { f := newFixture(t) startTime := metav1.Now() completionTime := metav1.Now() mpiJob := newMPIJob("test", int32Ptr(64), &startTime, &completionTime) f.setUpMPIJob(mpiJob) launcher := newLauncher(mpiJob, "kubectl-delivery") launcher.Status.Succeeded = 1 launcher.Status.Con...
explode_data.jsonl/75014
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 371 }
[ 2830, 3393, 62004, 21936, 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, 12245, 445, 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 TestAggregationBuiltinJSONArrayagg(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 t;") tk.MustExec(`CREATE TABLE t ( a int(11), b varchar(100), c decimal(3,2), d json, e date, ...
explode_data.jsonl/65449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 754 }
[ 2830, 3393, 9042, 34442, 33, 25628, 47812, 15718, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnsurePrefixMap(t *testing.T) { t.Parallel() tests := []struct { giveMap map[string]map[string]interface{} givePrefix string want map[string]map[string]interface{} }{ { giveMap: map[string]map[string]interface{}{ "foo/bar": {"a": "b"}, }, givePrefix: "foo", want: map[string...
explode_data.jsonl/81333
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 573 }
[ 2830, 3393, 64439, 14335, 2227, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 3174, 533, 2227, 262, 2415, 14032, 60, 2186, 14032, 31344, 16094, 197, 3174, 533, 14335, 914, 198, 197, 50780, 981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScenarioResult_FailRate(t *testing.T) { tests := []struct { name string fields fields want float32 }{ {"10%", fields{RequestCount: 10, FailCount: 1}, float32(10)}, {"50%", fields{RequestCount: 10, FailCount: 5}, float32(50)}, {"100%", fields{RequestCount: 10, FailCount: 10}, float32(100)}, }...
explode_data.jsonl/49956
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 54031, 2077, 1400, 604, 11564, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 55276, 5043, 198, 197, 50780, 256, 2224, 18, 17, 198, 197, 59403, 197, 197, 4913, 16, 15, 40192, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomReflectQuerier(t *testing.T) { type CapitalizedQuery struct { Text string `json:"text"` } type QueryMsg struct { Capitalized *CapitalizedQuery `json:"capitalized,omitempty"` // There are more queries but we don't use them yet // https://github.com/CosmWasm/cosmwasm/blob/v0.11.0-alpha3/contrac...
explode_data.jsonl/62567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 617 }
[ 2830, 3393, 10268, 72789, 2183, 261, 1268, 1155, 353, 8840, 836, 8, 341, 13158, 18374, 1506, 2859, 2036, 341, 197, 49635, 914, 1565, 2236, 2974, 1318, 8805, 197, 630, 13158, 11361, 6611, 2036, 341, 197, 6258, 391, 2174, 1506, 353, 63593...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTerragruntHookInterpolation(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_HOOKS_INTERPOLATIONS_PATH) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_HOOKS_INTERPOLATIONS_PATH) rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_HOOKS_INTERPOLATIONS_PATH) var ( stdout bytes.Buffer ...
explode_data.jsonl/10073
{ "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, 51402, 68305, 3850, 31679, 3306, 44686, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 82251, 50, 16732, 49303, 21792, 7944, 340, 20082, 14359, 1820, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolveIdentifyImplicitTeamWithIdentifyBadInput(t *testing.T) { tt := newTeamTester(t) defer tt.cleanup() tt.addUser("abc") g := tt.users[0].tc.G cli, err := client.GetIdentifyClient(g) require.NoError(t, err, "failed to get new identifyclient") attachIdentifyUI(t, g, newSimpleIdentifyUI()) _, err =...
explode_data.jsonl/42665
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 638 }
[ 2830, 3393, 56808, 28301, 1437, 59558, 14597, 2354, 28301, 1437, 17082, 2505, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 14597, 58699, 1155, 340, 16867, 17853, 87689, 2822, 3244, 83, 1364, 1474, 445, 13683, 1138, 3174, 1669, 17853...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAzurermCompute_Image(t *testing.T) { dummyError := errors.New("this is an error") tests := []struct { test string mocks func(*repository.MockComputeRepository, *mocks.AlerterInterface) assertExpected func(t *testing.T, got []*resource.Resource) wantErr error }{ { tes...
explode_data.jsonl/43881
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1424 }
[ 2830, 3393, 37199, 324, 4195, 46254, 45949, 1155, 353, 8840, 836, 8, 1476, 2698, 8574, 1454, 1669, 5975, 7121, 445, 574, 374, 458, 1465, 5130, 78216, 1669, 3056, 1235, 341, 197, 18185, 1843, 914, 198, 197, 2109, 25183, 688, 2915, 4071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpStrictNotEqual(t *testing.T) { assert := assert.New(t) jl := NewEmpty() AddOpStrictNotEqual(jl) TestCases{ // http://jsonlogic.com/operations.html {Logic: `{"!==":[1,2]}`, Data: `null`, Result: true}, {Logic: `{"!==":[1,"1"]}`, Data: `null`, Result: true}, // Zero/One param. {Logic: `{"!==":[]}...
explode_data.jsonl/38297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 7125, 41857, 2623, 2993, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 12428, 75, 1669, 1532, 3522, 741, 37972, 7125, 41857, 2623, 2993, 3325, 75, 340, 73866, 37302, 515, 197, 197, 322, 1758, 1110, 2236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_DeleteNode_Negative_NodeExistsHasChildVolumes(t *testing.T) { // Arrange volumePluginMgr, _ := controllervolumetesting.GetTestVolumePluginMgr((t)) dsw := NewDesiredStateOfWorld(volumePluginMgr) nodeName := "node-name" dsw.AddNode(nodeName) podName := "pod-name" volumeName := api.UniqueDeviceName("volum...
explode_data.jsonl/40742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 453 }
[ 2830, 3393, 57418, 1955, 1604, 15060, 41340, 15575, 10281, 3652, 96325, 1155, 353, 8840, 836, 8, 341, 197, 322, 40580, 198, 5195, 4661, 11546, 25567, 11, 716, 1669, 683, 1100, 648, 1132, 57824, 287, 2234, 2271, 18902, 11546, 25567, 1188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHexadecimal(t *testing.T) { validate := New() s := "ff0044" errs := validate.Var(s, "hexadecimal") Equal(t, errs, nil) s = "abcdefg" errs = validate.Var(s, "hexadecimal") NotEqual(t, errs, nil) AssertError(t, errs, "", "", "", "", "hexadecimal") i := true errs = validate.Var(i, "hexadecimal") No...
explode_data.jsonl/77324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 20335, 49326, 1155, 353, 8840, 836, 8, 1476, 197, 7067, 1669, 1532, 2822, 1903, 1669, 330, 542, 15, 15, 19, 19, 698, 9859, 82, 1669, 9593, 87968, 1141, 11, 330, 17308, 49326, 1138, 197, 2993, 1155, 11, 70817, 11, 2092, 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 TestSugarWith(t *testing.T) { // Convenience functions to create expected error logs. ignored := func(msg interface{}) observer.LoggedEntry { return observer.LoggedEntry{ Entry: zapcore.Entry{Level: DPanicLevel, Message: _oddNumberErrMsg}, Context: []Field{Any("ignored", msg)}, } } nonString := fun...
explode_data.jsonl/5021
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1547 }
[ 2830, 3393, 83414, 2354, 1155, 353, 8840, 836, 8, 341, 197, 322, 80648, 5746, 311, 1855, 3601, 1465, 18422, 624, 197, 58471, 1669, 2915, 8119, 3749, 28875, 22067, 5247, 3556, 5874, 341, 197, 853, 22067, 5247, 3556, 5874, 515, 298, 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 TestSizeRetention(t *testing.T) { db, delete := openTestDB(t, &Options{ BlockRanges: []int64{100}, }) defer func() { testutil.Ok(t, db.Close()) delete() }() blocks := []*BlockMeta{ {MinTime: 100, MaxTime: 200}, // Oldest block {MinTime: 200, MaxTime: 300}, {MinTime: 300, MaxTime: 400}, {MinTime...
explode_data.jsonl/64378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 830 }
[ 2830, 3393, 1695, 86329, 1155, 353, 8840, 836, 8, 341, 20939, 11, 3698, 1669, 1787, 2271, 3506, 1155, 11, 609, 3798, 515, 197, 94940, 74902, 25, 3056, 396, 21, 19, 90, 16, 15, 15, 1583, 197, 3518, 16867, 2915, 368, 341, 197, 18185, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrincipalMatch(t *testing.T) { testCases := []struct { principals Principal principal string expectedResult bool }{ {NewPrincipal("*"), "AccountNumber", true}, {NewPrincipal("arn:aws:iam::*"), "arn:aws:iam::AccountNumber:root", true}, {NewPrincipal("arn:aws:iam::AccountNumber:*"), "arn:a...
explode_data.jsonl/39966
{ "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, 31771, 8331, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 25653, 5706, 1127, 257, 36309, 198, 197, 25653, 15702, 414, 914, 198, 197, 42400, 2077, 1807, 198, 197, 59403, 197, 197, 90, 3564, 31771, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithTraceContext_given_context_without_transaction_it_should_return_same_envelope_without_change(t *testing.T) { ctx := context.Background() rootE := envelope.FromMessage("test message") e := WithTraceContext(ctx, rootE) assert.Same(t, rootE, e) }
explode_data.jsonl/46774
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 2354, 6550, 1972, 57653, 8467, 39904, 28884, 14631, 43378, 12511, 33574, 6205, 18853, 39904, 15947, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 33698, 36, 1669, 34398, 11439, 2052, 445, 1944, 1943, 1138, 7727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatasources_Vault_AppIDAuth(t *testing.T) { v := setupDatasourcesVaultTest(t) v.vc.Logical().Write("secret/foo", map[string]interface{}{"value": "bar"}) defer v.vc.Logical().Delete("secret/foo") err := v.vc.Sys().EnableAuth("app-id", "app-id", "") require.NoError(t, err) err = v.vc.Sys().EnableAuth("app...
explode_data.jsonl/57234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 750 }
[ 2830, 3393, 47663, 2360, 2334, 945, 36117, 915, 5087, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 6505, 47663, 2360, 79177, 2271, 1155, 692, 5195, 3133, 66, 5247, 938, 1005, 7985, 445, 20474, 60555, 497, 2415, 14032, 31344, 6257, 4913, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerifyPolyEval(t *testing.T) { threshold := uint64(2) p1, err := RandomPolynomial(rand.Reader, threshold-1) assert.NilError(t, err) p2, err := RandomPolynomial(rand.Reader, threshold-1) assert.NilError(t, err) for i := 0; i < 10; i++ { xi := KeyperX(i) vi1 := p1.Eval(xi) vi2 := p2.Eval(xi) ass...
explode_data.jsonl/60070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 32627, 38164, 54469, 1155, 353, 8840, 836, 8, 341, 197, 28902, 1669, 2622, 21, 19, 7, 17, 692, 3223, 16, 11, 1848, 1669, 10612, 14658, 25358, 37595, 47431, 11, 12171, 12, 16, 340, 6948, 59678, 1454, 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...
2
func Test_Echo_Skip(t *testing.T) { e := newEcho(validator.Config{ Skipper: func(echo.Context) bool { return true }, }) req := httptest.NewRequest(http.MethodGet, "http://example.com/hello/world", nil) res := httptest.NewRecorder() e.ServeHTTP(res, req) require.Equal(t, http.StatusOK, res.Code) }
explode_data.jsonl/54628
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 2089, 958, 1098, 13389, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 501, 74994, 7, 16112, 10753, 515, 197, 7568, 13389, 712, 25, 2915, 2026, 958, 9328, 8, 1807, 314, 470, 830, 1153, 197, 8824, 24395, 1669, 54320, 70334, 7527...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStateLock_MissingProposalWhenPOLSeenDoesNotUpdateLock(t *testing.T) { config := configSetup(t) logger := log.NewNopLogger() ctx, cancel := context.WithCancel(context.Background()) defer cancel() cs1, vss := makeState(ctx, t, makeStateArgs{config: config, logger: logger}) vs2, vs3, vs4 := vss[1], vss[2],...
explode_data.jsonl/54270
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1155 }
[ 2830, 3393, 1397, 11989, 1245, 13577, 98637, 4498, 49303, 85675, 21468, 2623, 4289, 11989, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2193, 21821, 1155, 340, 17060, 1669, 1487, 7121, 45, 453, 7395, 741, 20985, 11, 9121, 1669, 2266, 26124,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteInstanceIDUnexpectedError(t *testing.T) { var tr *http.Request ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { tr = r w.WriteHeader(511) w.Header().Set("Content-Type", "application/json") w.Write([]byte("{}")) })) defer ts.Close() ctx := context.Back...
explode_data.jsonl/54625
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 6435, 2523, 915, 29430, 1454, 1155, 353, 8840, 836, 8, 341, 2405, 489, 353, 1254, 9659, 198, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 25583, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_Writer_Callback(t *testing.T) { count := int64(-1) onWrite := func(c int64) { count = c } cw := NewWriterCallback(onWrite, nil) buf := []byte{1, 2, 3, 4, 5, 6} _, err := cw.Write(buf) must(t, err) assert.Equal(t, count, int64(6)) _, err = cw.Write(buf) must(t, err) assert.Equal(t, count, int64(12...
explode_data.jsonl/18870
{ "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, 2763, 2542, 55102, 1155, 353, 8840, 836, 8, 341, 18032, 1669, 526, 21, 19, 4080, 16, 340, 24630, 7985, 1669, 2915, 1337, 526, 21, 19, 8, 314, 1760, 284, 272, 555, 1444, 86, 1669, 1532, 6492, 7494, 29355, 7985, 11, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPyModuleGetFilename(t *testing.T) { fmt.Println(assert.CallerInfo()[0]) assert.Equal(t, "", pymodule.GetFilename(nil)) queue := pyimport.ImportModule("queue") defer py.DecRef(queue) queueRefCnt := py.RefCnt(queue) defer func() { assert.Equal(t, queueRefCnt, py.RefCnt(queue)) }() name := pymodule.GetF...
explode_data.jsonl/33472
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 13828, 3332, 1949, 20759, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 75846, 727, 13956, 1731, 10116, 15, 9604, 6948, 12808, 1155, 11, 7342, 45760, 1756, 2234, 20759, 27907, 4390, 46993, 1669, 4510, 474, 67275, 3332, 445, 4584...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCannotCommitWithoutNewTermEntry(t *testing.T) { tt := newNetwork(nil, nil, nil, nil, nil) tt.send(pb.Message{From: 1, To: 1, Type: pb.MsgHup}) // 0 cannot reach 2,3,4 tt.cut(1, 3) tt.cut(1, 4) tt.cut(1, 5) tt.send(pb.Message{From: 1, To: 1, Type: pb.MsgProp, Entries: []pb.Entry{{Data: []byte("some dat...
explode_data.jsonl/67337
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 17444, 33441, 26040, 3564, 17249, 5874, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 12320, 27907, 11, 2092, 11, 2092, 11, 2092, 11, 2092, 340, 3244, 83, 5219, 76878, 8472, 90, 3830, 25, 220, 16, 11, 2014, 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...
4
func TestWithAuthUserPass(t *testing.T) { t.Parallel() Convey("Given a username, password and dialer", t, func() { user := "testuser" pass := "testpass" dialer := &mockDialerStruct{} Convey("And Dial is called with username and password", func() { _, err := mockDial(dialer, WithAuthUserPass(user, pass)) ...
explode_data.jsonl/53406
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 2354, 5087, 1474, 12187, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 93070, 5617, 445, 22043, 264, 5934, 11, 3552, 323, 27860, 261, 497, 259, 11, 2915, 368, 341, 197, 19060, 1669, 330, 1944, 872, 698, 197, 41431...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecordsAdd(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)), }) var tests = []struct { desc string key string ok bool rec *record }{ { ...
explode_data.jsonl/62484
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 25876, 2212, 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, 10538, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOrderingServicePermanentCrash(t *testing.T) { testOrderingServicePermanentCrash(t, blockDelivererConsumerWithRecv) testOrderingServicePermanentCrash(t, blockDelivererConsumerWithSend) connWG.Wait() }
explode_data.jsonl/60875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 4431, 287, 1860, 78793, 16001, 988, 1155, 353, 8840, 836, 8, 341, 18185, 4431, 287, 1860, 78793, 16001, 988, 1155, 11, 2504, 16532, 1524, 261, 29968, 2354, 63483, 340, 18185, 4431, 287, 1860, 78793, 16001, 988, 1155, 11, 250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseScroll(t *testing.T) { fulltext := `--- time: '2016-02-17 06:34:59' last_modified: '2017-06-09 20:00:38' document: doco1 entry: entro1 --- This is some text --- time: '2015-02-16 06:34:59' last_modified: '2015-02-16 06:34:59' document: doco1 entry: entro0 --- First entry --- t...
explode_data.jsonl/30236
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 869 }
[ 2830, 3393, 14463, 8425, 1155, 353, 8840, 836, 8, 972, 94042, 1318, 1669, 1565, 4421, 4474, 1678, 25, 364, 17, 15, 16, 21, 12, 15, 17, 12, 16, 22, 220, 15, 21, 25, 18, 19, 25, 20, 24, 9739, 4259, 37749, 25, 364, 17, 15, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAllKeys(t *testing.T) { initConfigs() ks := sort.StringSlice{ "title", "author.bio", "author.e-mail", "author.github", "author.name", "newkey", "owner.organization", "owner.dob", "owner.bio", "name", "beard", "ppu", "batters.batter", "hobbies", "clothing.jacket", "clothing.tr...
explode_data.jsonl/9886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1210 }
[ 2830, 3393, 2403, 8850, 1155, 353, 8840, 836, 8, 341, 28248, 84905, 2822, 197, 2787, 1669, 3378, 6431, 33236, 515, 197, 197, 82727, 756, 197, 197, 1, 3094, 78818, 756, 197, 197, 1, 3094, 1734, 11468, 756, 197, 197, 1, 3094, 11021, 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 TestCollectorOrderOfArguments(t *testing.T) { jaeger := v1.NewJaeger(types.NamespacedName{Name: "my-instance"}) jaeger.Spec.Collector.Options = v1.NewOptions(map[string]interface{}{ "b-option": "b-value", "a-option": "a-value", "c-option": "c-value", }) a := NewCollector(jaeger) dep := a.Get() assert...
explode_data.jsonl/59533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 53694, 4431, 2124, 19139, 1155, 353, 8840, 836, 8, 341, 197, 5580, 1878, 1669, 348, 16, 7121, 52445, 1878, 52613, 98932, 68552, 675, 63121, 25, 330, 2408, 73655, 23625, 197, 5580, 1878, 36473, 727, 24605, 269, 22179, 284, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRuleORUsage(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := []string{ `SELECT c1,c2,c3 FROM tab WHERE c1 = 14 OR c2 = 17;`, } for _, sql := range sqls { q, err := NewQuery4Audit(sql) if err == nil { rule := q.RuleORUsage() if rule.Item != "ARG.008" { ...
explode_data.jsonl/76806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 11337, 868, 14783, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 3056, 917, 515, 197, 197, 63, 4858, 272, 16, 10109, 17, 10109, 18, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetExtensionsWithMissingExtensions(t *testing.T) { msg := &pb.MyMessage{} ext1 := &pb.Ext{} if err := proto.SetExtension(msg, pb.E_Ext_More, ext1); err != nil { t.Fatalf("Could not set ext1: %s", err) } exts, err := proto.GetExtensions(msg, []*proto.ExtensionDesc{ pb.E_Ext_More, pb.E_Ext_Text, }) ...
explode_data.jsonl/55061
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 1949, 31282, 2354, 25080, 31282, 1155, 353, 8840, 836, 8, 341, 21169, 1669, 609, 16650, 27054, 2052, 16094, 95450, 16, 1669, 609, 16650, 16146, 16094, 743, 1848, 1669, 18433, 4202, 12049, 8119, 11, 17310, 5142, 62, 6756, 1245,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAggregationBuiltinGroupConcat(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create table t(a varchar(100))") tk.MustExec("create table d(a varchar(100))") tk.MustExec("insert into t values('hello'), ('hel...
explode_data.jsonl/65448
{ "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, 9042, 34442, 33, 25628, 2808, 78440, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerKeyAuth(t *testing.T) { ta := testauthority.New() priv, pub, err := ta.GenerateKeyPair("") require.NoError(t, err) caSigner, err := ssh.ParsePrivateKey(priv) require.NoError(t, err) ca, err := types.NewCertAuthority(types.CertAuthoritySpecV2{ Type: types.HostCA, ClusterName: "cluster-na...
explode_data.jsonl/43522
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1476 }
[ 2830, 3393, 5475, 1592, 5087, 1155, 353, 8840, 836, 8, 341, 197, 2565, 1669, 1273, 84454, 7121, 741, 71170, 11, 6675, 11, 1848, 1669, 9450, 57582, 1592, 12443, 31764, 17957, 35699, 1155, 11, 1848, 340, 197, 924, 7264, 261, 11, 1848, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLoggers(t *testing.T) { Init("logs", "debug", 0) CLog().Debugf("format debug clog msg [%s]", "test clog msg") CLog().WithFields(logrus.Fields{"name": "clog_test", "type": "clog"}).Debugf("format debug clog msg [%s]", "test clog msg") VLog().Debugf("format debug vlog msg [%s]", "test vlog msg") VLog().Wi...
explode_data.jsonl/445
{ "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, 2201, 10637, 1155, 353, 8840, 836, 8, 341, 98762, 445, 22081, 497, 330, 8349, 497, 220, 15, 692, 6258, 2201, 1005, 7939, 69, 445, 2243, 7390, 272, 839, 3750, 23610, 82, 19076, 330, 1944, 272, 839, 3750, 1138, 6258, 2201, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetLendingInfo(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip() } _, err := f.GetLendingInfo(context.Background()) if err != nil { t.Error(err) } }
explode_data.jsonl/15178
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 1949, 43, 2459, 1731, 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, 43, 2459, 1731, 5378, 19047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func TestUnmarshalConfig(t *testing.T) { registries, err := GetRegistries(&types.SystemContext{ SystemRegistriesConfPath: "testdata/unmarshal.conf", SystemRegistriesConfDirPath: "testdata/this-does-not-exist", }) assert.Nil(t, err) assert.Equal(t, 4, len(registries)) }
explode_data.jsonl/62231
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 1806, 27121, 2648, 1155, 353, 8840, 836, 8, 341, 37013, 380, 4019, 11, 1848, 1669, 2126, 3477, 380, 4019, 2099, 9242, 16620, 1972, 515, 197, 5816, 3477, 380, 4019, 15578, 1820, 25, 262, 330, 92425, 35217, 27121, 13937, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFind(t *testing.T) { var users = []User{ *GetUser("find", Config{}), *GetUser("find", Config{}), *GetUser("find", Config{}), } if err := DB.Create(&users).Error; err != nil { t.Fatalf("errors happened when create users: %v", err) } t.Run("First", func(t *testing.T) { var first User if err :=...
explode_data.jsonl/48698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2928 }
[ 2830, 3393, 9885, 1155, 353, 8840, 836, 8, 341, 2405, 3847, 284, 3056, 1474, 515, 197, 197, 9, 1949, 1474, 445, 3903, 497, 5532, 6257, 1326, 197, 197, 9, 1949, 1474, 445, 3903, 497, 5532, 6257, 1326, 197, 197, 9, 1949, 1474, 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...
2
func TestDownloadBodyFail(t *testing.T) { srv, close := mock.NewServer() defer close() srv.SetResponse(mock.WithBodyReadError()) // download policy is automatically added during pipeline construction pl := newTestPipeline(&policy.ClientOptions{ Transport: srv, Retry: policy.RetryOptions{ RetryDelay: 10 * ti...
explode_data.jsonl/6861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 11377, 5444, 19524, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 11, 3265, 1669, 7860, 7121, 5475, 741, 16867, 3265, 741, 1903, 10553, 4202, 2582, 30389, 26124, 5444, 4418, 1454, 2398, 197, 322, 4139, 4842, 374, 9463, 3694, 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...
5
func TestValidateSidecar(t *testing.T) { tests := []struct { name string in *networking.Sidecar valid bool }{ {"empty ingress and egress", &networking.Sidecar{}, false}, {"default", &networking.Sidecar{ Egress: []*networking.IstioEgressListener{ { Hosts: []string{"*/*"}, }, }, }, tr...
explode_data.jsonl/56936
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3184 }
[ 2830, 3393, 17926, 16384, 6918, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 17430, 262, 353, 17511, 287, 93135, 6918, 198, 197, 56322, 1807, 198, 197, 59403, 197, 197, 4913, 3194, 78559, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTSNamespaceExports(t *testing.T) { expectPrintedTS(t, ` namespace A { export namespace B { export function fn() {} } namespace C { export function fn() {} } namespace D { function fn() {} } } `, `var A; (function(A) { let B; (function(B) { function fn() { } B...
explode_data.jsonl/82318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2256 }
[ 2830, 3393, 9951, 22699, 86994, 1155, 353, 8840, 836, 8, 341, 24952, 8994, 291, 9951, 1155, 11, 22074, 197, 56623, 362, 341, 298, 59440, 4473, 425, 341, 571, 59440, 729, 5168, 368, 5613, 298, 197, 532, 298, 56623, 356, 341, 571, 59440...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNextMinuteTime(t *testing.T) { nextMinute := nextMinutesTime() minuteElapse := nextMinute.Sub(time.Now()).Minutes() if !almostEqual(minuteElapse, 1.0) { t.Errorf("wrong next one minute. want=%f, got=%f", 1.0, minuteElapse) } }
explode_data.jsonl/1961
{ "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, 5847, 55193, 1462, 1155, 353, 8840, 836, 8, 341, 28144, 55193, 1669, 1790, 27720, 1462, 741, 25320, 1070, 6582, 7477, 1669, 1790, 55193, 12391, 9730, 13244, 6011, 27720, 741, 743, 753, 59201, 2993, 14146, 1070, 6582, 7477, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDockerKillSuccess(t *testing.T) { composeMock, docker, _ := getComposeMocks() composeMock.On("Down", mock.Anything, mock.Anything, mock.Anything).Return(nil) err := docker.Kill() assert.NoError(t, err) }
explode_data.jsonl/50540
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 35, 13659, 53734, 7188, 1155, 353, 8840, 836, 8, 341, 32810, 2900, 11571, 11, 26588, 11, 716, 1669, 633, 70492, 72577, 741, 32810, 2900, 11571, 8071, 445, 4454, 497, 7860, 13311, 1596, 11, 7860, 13311, 1596, 11, 7860, 13311,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccDataSourceIngestProcessorCSV(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { acctest.PreCheck(t) }, ProviderFactories: acctest.Providers, Steps: []resource.TestStep{ { Config: testAccDataSourceIngestProcessorCSV, Check: resource.ComposeTestCheckFunc( re...
explode_data.jsonl/69450
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 14603, 17173, 641, 6969, 22946, 44209, 1155, 353, 8840, 836, 8, 341, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 4703, 3973, 25, 688, 2915, 368, 314, 1613, 67880, 28770, 3973, 1155, 8, 1153, 197, 197, 5179, 17417, 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 TestEntryAddTimed(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() e, lists, _ := testEntry(ctrl, testEntryOptions{}) // Add an initial timed metric. require.NoError(t, e.AddTimed(testTimedMetric, testTimedMetadata)) require.Equal(t, 1, len(e.aggregations)) expectedKey := aggregationKey...
explode_data.jsonl/24237
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1889 }
[ 2830, 3393, 5874, 2212, 20217, 291, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 7727, 11, 11469, 11, 716, 1669, 1273, 5874, 62100, 11, 1273, 5874, 3798, 6257, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProxy(t *testing.T) { // Setup t1 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "target 1") })) defer t1.Close() url1, _ := url.Parse(t1.URL) t2 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "t...
explode_data.jsonl/45582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 989 }
[ 2830, 3393, 16219, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 198, 3244, 16, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 11009, 991, 1350, 3622, 11, 330, 5657, 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 TestTreeLock(t *testing.T) { var path string tree := NewTree() path = "path" err := tree.Lock(path, 1*time.Second) if err != nil { t.Error(err) } path = "path/to/A" err = tree.Lock(path, 1*time.Second) if err != nil { t.Error(err) } }
explode_data.jsonl/73829
{ "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, 6533, 11989, 1155, 353, 8840, 836, 8, 1476, 2405, 1815, 914, 198, 51968, 1669, 1532, 6533, 2822, 26781, 284, 330, 2343, 1837, 9859, 1669, 4916, 31403, 5581, 11, 220, 16, 77053, 32435, 692, 743, 1848, 961, 2092, 341, 197, 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...
3
func TestPostEvents(t *testing.T) { t.Run("Post event deploy without and with authorization", func(t *testing.T) { //r := BuildEngine() // Create a request to send to the above route req, _ := http.NewRequest("POST", "/events", nil) testHTTPResponse(t, r, req, func(w *httptest.ResponseRecorder) bool { /...
explode_data.jsonl/4637
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1619 }
[ 2830, 3393, 4133, 7900, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 4133, 1538, 10517, 2041, 323, 448, 23715, 497, 2915, 1155, 353, 8840, 836, 8, 1476, 197, 197, 322, 81, 1669, 7854, 4571, 2822, 197, 197, 322, 4230, 264, 1681, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuilderBuild(t *testing.T) { testCases := []struct { desc string middlewares []string // buildResponse is needed because secure use a private context key buildResponse func(map[string]*dynamic.Middleware) *http.Response conf map[string]*dynamic.Middleware assertResponse func(*tes...
explode_data.jsonl/13347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2286 }
[ 2830, 3393, 3297, 11066, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 286, 914, 198, 197, 2109, 3310, 37903, 3056, 917, 198, 197, 197, 322, 1936, 2582, 374, 4362, 1576, 9767, 990, 264, 869, 2266, 1376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCRLCreation(t *testing.T) { block, _ := pem.Decode([]byte(pemPrivateKey)) priv, _ := ParsePKCS1PrivateKey(block.Bytes) block, _ = pem.Decode([]byte(pemCertificate)) cert, _ := ParseCertificate(block.Bytes) loc := time.FixedZone("Oz/Atlantis", int((2 * time.Hour).Seconds())) now := time.Unix(1000, 0).In...
explode_data.jsonl/67992
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 34, 4728, 32701, 1155, 353, 8840, 836, 8, 341, 47996, 11, 716, 1669, 54184, 56372, 10556, 3782, 1295, 336, 75981, 1171, 71170, 11, 716, 1669, 14775, 22242, 6412, 16, 75981, 18682, 36868, 340, 47996, 11, 716, 284, 54184, 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...
4
func TestFunction1(t *testing.T) { const SCRIPT = ` var f = function f1(count) { if (count == 0) { return true; } return f1(count-1); } f(1); ` testScript1(SCRIPT, valueTrue, t) }
explode_data.jsonl/75282
{ "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, 5152, 16, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 1565, 271, 2405, 282, 284, 729, 282, 16, 11512, 8, 341, 197, 743, 320, 1830, 621, 220, 15, 8, 341, 298, 853, 830, 280, 197, 197, 532, 197, 853, 282, 16, 11512...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCmdInvalidDiffType(t *testing.T) { runner := cmddiff.NewRunner(fake.CtxWithDefaultPrinter(), "") runner.C.SetArgs([]string{"--diff-type", "invalid"}) err := runner.C.Execute() assert.EqualError(t, err, "invalid diff-type 'invalid': supported diff-types are: local, remote, combined, 3way") }
explode_data.jsonl/1847
{ "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, 15613, 7928, 21751, 929, 1155, 353, 8840, 836, 8, 341, 197, 41736, 1669, 9961, 631, 3092, 7121, 19486, 74138, 727, 3998, 2354, 3675, 45660, 1507, 14676, 197, 41736, 727, 4202, 4117, 10556, 917, 4913, 313, 13490, 10604, 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...
1
func TestNewResourceFromFilename(t *testing.T) { c := qt.New(t) spec := newTestResourceSpec(specDescriptor{c: c}) writeSource(t, spec.Fs, "content/a/b/logo.png", "image") writeSource(t, spec.Fs, "content/a/b/data.json", "json") bfs := afero.NewBasePathFs(spec.Fs.Source, "content") r, err := spec.New(ResourceSo...
explode_data.jsonl/75610
{ "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, 3564, 4783, 3830, 20759, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 38949, 7121, 1155, 340, 98100, 1669, 501, 2271, 4783, 8327, 38209, 11709, 90, 66, 25, 272, 8824, 24945, 3608, 1155, 11, 1398, 991, 82, 11, 330, 1796, 14186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListenNotifyWhileBusyIsSafe(t *testing.T) { t.Parallel() func() { conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE")) defer closeConn(t, conn) skipCockroachDB(t, conn, "Server does not support LISTEN / NOTIFY (https://github.com/cockroachdb/cockroach/issues/41522)") }() listenerDone := mak...
explode_data.jsonl/40017
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 710 }
[ 2830, 3393, 38714, 28962, 7983, 58937, 3872, 25663, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 29244, 368, 341, 197, 32917, 1669, 1969, 14611, 703, 1155, 11, 2643, 64883, 445, 11383, 55, 11641, 45510, 5455, 197, 16867, 3265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJsonpbUTF8Tx(t *testing.T) { NewChain33Config(GetDefaultCfgstring()) bdata, err := common.FromHex("0a05636f696e73121018010a0c108084af5f1a05310a320a3320e8b31b30b9b69483d7f9d3f04c3a22314b67453376617969715a4b6866684d66744e3776743267447639486f4d6b393431") assert.Nil(t, err) var r Transaction err = Decode(bdat...
explode_data.jsonl/58330
{ "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, 5014, 16650, 8561, 23, 31584, 1155, 353, 8840, 836, 8, 341, 197, 3564, 18837, 18, 18, 2648, 24460, 3675, 42467, 917, 2398, 2233, 691, 11, 1848, 1669, 4185, 11439, 20335, 445, 15, 64, 15, 20, 21, 18, 21, 69, 21, 24, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestReconcileAddonsConfiguration_DeleteAddonsProcess_ReconcileOtherAddons(t *testing.T) { // GIVEN failedAddCfg := fixFailedAddonsConfiguration() fixAddonsCfg := fixDeletedAddonsConfiguration() ts := getTestSuite(t, fixAddonsCfg, failedAddCfg) tmpDir := os.TempDir() defer ts.assertExpectations() // WHEN ...
explode_data.jsonl/40352
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 475 }
[ 2830, 3393, 693, 40446, 457, 2212, 2382, 7688, 57418, 2212, 2382, 7423, 50693, 40446, 457, 11409, 2212, 2382, 1155, 353, 8840, 836, 8, 341, 197, 322, 89836, 198, 1166, 5687, 2212, 42467, 1669, 5046, 9408, 2212, 2382, 7688, 741, 1166, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUUIDVersion4(t *testing.T) { uuid := protocol.UUIDVersion4(make([]byte, 16)) if e, a := `00000000-0000-4000-8000-000000000000`, uuid; e != a { t.Errorf("expect %v, got %v", e, a) } b := make([]byte, 16) for i := 0; i < len(b); i++ { b[i] = 1 } uuid = protocol.UUIDVersion4(b) if e, a := `01010101-0...
explode_data.jsonl/78827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 24754, 5637, 19, 1155, 353, 8840, 836, 8, 341, 10676, 2423, 1669, 11507, 39636, 5637, 19, 36944, 10556, 3782, 11, 220, 16, 21, 1171, 743, 384, 11, 264, 1669, 1565, 15, 15, 15, 15, 15, 15, 15, 15, 12, 15, 15, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestKetama(t *testing.T) { k := New(WithReplicas(7), WithGoroutineSafe()) k.Add("1.1.1.1", "2.2.2.2", "3.3.3.3") for i := 0; i < 10; i++ { node, ok := k.Get(strconv.Itoa(i)) t.Logf("%v : %v %v", i, node, ok) } t.Logf("========================") k.Remove("1.1.1.1") for i := 0; i < 10; i++ { node, ok :=...
explode_data.jsonl/53336
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 42, 295, 3029, 1155, 353, 8840, 836, 8, 341, 16463, 1669, 1532, 7, 2354, 18327, 52210, 7, 22, 701, 3085, 38, 269, 14159, 25663, 2398, 16463, 1904, 445, 16, 13, 16, 13, 16, 13, 16, 497, 330, 17, 13, 17, 13, 17, 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...
4
func TestFilesetStructuralValidatorNotFileset(t *testing.T) { validator := NewFilesetStructuralValidator(newMockRepository(nil)) err := validator.ValidateResource(testResource("bs646cd8717.json")) assert.Nil(t, err) }
explode_data.jsonl/16714
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 1703, 746, 9422, 4176, 14256, 2623, 1703, 746, 1155, 353, 8840, 836, 8, 341, 197, 16112, 1669, 1532, 1703, 746, 9422, 4176, 14256, 1755, 11571, 4624, 27907, 1171, 9859, 1669, 22935, 47667, 4783, 8623, 4783, 445, 1279, 21, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestDecodeValueSuccess(t *testing.T) { for _, d := range []struct { n string b []byte t SQLValueType v TypedValue offs int }{ { "varchar", []byte{0, 0, 0, 2, 'H', 'i'}, VarcharType, &Varchar{val: "Hi"}, 6, }, { "varchar padded", []byte{0, 0, 0, 2, 'H', 'i', 1, 2, 3}, V...
explode_data.jsonl/64090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1016 }
[ 2830, 3393, 32564, 1130, 7188, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 294, 1669, 2088, 3056, 1235, 341, 197, 9038, 914, 198, 197, 2233, 3056, 3782, 198, 197, 3244, 7870, 60897, 271, 197, 5195, 262, 50554, 1130, 198, 197, 197, 32483...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportRequestsStallAtServerLimit(t *testing.T) { const maxConcurrent = 2 greet := make(chan struct{}) // server sends initial SETTINGS frame gotRequest := make(chan struct{}) // server received a request clientDone := make(chan struct{}) // Collect errors from goroutines. var wg sync.WaitGroup ...
explode_data.jsonl/16141
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1831 }
[ 2830, 3393, 27560, 35295, 623, 541, 1655, 5475, 16527, 1155, 353, 8840, 836, 8, 341, 4777, 1932, 1109, 3231, 284, 220, 17, 271, 3174, 3744, 1669, 1281, 35190, 2036, 28875, 414, 442, 3538, 21308, 2856, 73991, 4034, 198, 3174, 354, 1900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUtil_Format_MoreArgs(t *testing.T) { vm := goja.New() util := New(vm) var b bytes.Buffer util.Format(&b, "Test: %s %d, %j", vm.ToValue("string"), vm.ToValue(42), vm.NewObject(), vm.ToValue(42.42)) if res := b.String(); res != "Test: string 42, {} 42.42" { t.Fatalf("Unexpected result: '%s'", res) } }
explode_data.jsonl/60332
{ "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, 2742, 72999, 1245, 460, 4117, 1155, 353, 8840, 836, 8, 341, 54879, 1669, 728, 5580, 7121, 741, 79138, 1669, 1532, 31723, 692, 2405, 293, 5820, 22622, 198, 79138, 9978, 2099, 65, 11, 330, 2271, 25, 1018, 82, 1018, 67, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMarkEndRequiresAllTasksToFinishToUpdateBuildStatus(t *testing.T) { assert := assert.New(t) require := require.New(t) require.NoError(db.ClearCollections(task.Collection, build.Collection, VersionCollection, event.AllLogCollection)) v := &Version{ Id: "sample_version", Identifier: "sample", ...
explode_data.jsonl/60441
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2160 }
[ 2830, 3393, 8949, 3727, 46961, 2403, 25449, 1249, 25664, 93919, 11066, 2522, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 17957, 1669, 1373, 7121, 1155, 692, 17957, 35699, 9791, 13524, 52730, 17483, 28629, 11, 1936, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1