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 TestValidateRevision(t *testing.T) { testCases := []struct { rev string ok bool }{ {rev: "foo/bar", ok: true}, {rev: "-foo/bar", ok: false}, {rev: "foo bar", ok: false}, {rev: "foo\x00bar", ok: false}, {rev: "foo/bar:baz", ok: false}, } for _, tc := range testCases { t.Run(tc.rev, func(t *tes...
explode_data.jsonl/13445
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 17926, 33602, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 7282, 914, 198, 197, 59268, 220, 1807, 198, 197, 59403, 197, 197, 90, 7282, 25, 330, 7975, 49513, 497, 5394, 25, 830, 1583, 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 TestAddShardStats(t *testing.T) { d := NewMongodbData( &StatLine{ TotalInUse: 0, TotalAvailable: 0, TotalCreated: 0, TotalRefreshing: 0, }, tags, ) var acc testutil.Accumulator d.AddDefaultStats() d.flush(&acc) for key := range defaultShardStats { require.True(t, acc.HasInt64F...
explode_data.jsonl/35776
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 2212, 2016, 567, 16635, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 1532, 44, 21225, 1043, 1006, 197, 197, 5, 15878, 2460, 515, 298, 197, 7595, 641, 10253, 25, 414, 220, 15, 345, 298, 197, 7595, 16485, 25, 220, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLoggingCreateOrUpdate(t *testing.T) { type args struct { cl *LoggingConfigurationClient b *v1beta1.Bucket } type want struct { err error } cases := map[string]struct { args want }{ "Error": { args: args{ b: s3Testing.Bucket(s3Testing.WithLoggingConfig(generateLoggingConfig())), ...
explode_data.jsonl/14880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 850 }
[ 2830, 3393, 34575, 4021, 56059, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 39407, 353, 34575, 7688, 2959, 198, 197, 2233, 220, 353, 85, 16, 19127, 16, 1785, 11152, 198, 197, 630, 13158, 1366, 2036, 341, 197, 9859, 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 TestInt32_String(t *testing.T) { testcases := []struct { name string s Int32 expect string }{ { name: "test Int32 String, s is empty", s: Int32{}, expect: "[]", }, { name: "test Int32 String, s is not empty", s: map[int32]struct{}{1: {}}, expect: "[1]", }, } ...
explode_data.jsonl/62339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 1072, 18, 17, 31777, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 1903, 414, 1333, 18, 17, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGreaterThanOrEqualToMatcherInt(t *testing.T) { logger := logging.NewLogger(&logging.LoggerOptions{}) attrName := "value" dto := &dtos.MatcherDTO{ MatcherType: "GREATER_THAN_OR_EQUAL_TO", UnaryNumeric: &dtos.UnaryNumericMatcherDataDTO{ DataType: "NUMBER", Value: int64(100), }, KeySelector: &...
explode_data.jsonl/60370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 433 }
[ 2830, 3393, 41366, 89387, 37554, 1072, 1155, 353, 8840, 836, 8, 341, 17060, 1669, 8392, 7121, 7395, 2099, 25263, 12750, 3798, 37790, 60943, 675, 1669, 330, 957, 698, 98864, 1669, 609, 8047, 436, 76452, 14923, 515, 197, 197, 37554, 929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWidgetSection_Remove(t *testing.T) { wid := NewWidgetID() tests := []struct { Name string Area WidgetAreaType Input WidgetID Expected []WidgetID Nil bool }{ { Name: "top: remove a widget from widget section", Area: WidgetAreaTop, Input: wid, Expected: []Wi...
explode_data.jsonl/77656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 697 }
[ 2830, 3393, 4548, 9620, 66843, 1155, 353, 8840, 836, 8, 341, 6692, 307, 1669, 1532, 4548, 915, 2822, 78216, 1669, 3056, 1235, 341, 197, 21297, 257, 914, 198, 197, 197, 8726, 257, 12980, 8726, 929, 198, 197, 66588, 262, 12980, 915, 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 TestProcessorClose(t *testing.T) { ctx := cdcContext.NewBackendContext4Test(true) p, tester := initProcessor4Test(ctx, t) var err error // init tick _, err = p.Tick(ctx, p.changefeed) require.Nil(t, err) tester.MustApplyPatches() // add tables p.changefeed.PatchTaskStatus(p.captureInfo.ID, func(status *m...
explode_data.jsonl/81942
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1181 }
[ 2830, 3393, 22946, 7925, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 272, 7628, 1972, 7121, 29699, 1972, 19, 2271, 3715, 340, 3223, 11, 37111, 1669, 2930, 22946, 19, 2271, 7502, 11, 259, 340, 2405, 1848, 1465, 198, 197, 322, 2930, 9341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecycle(t *testing.T) { f, err := ioutil.TempFile("", t.Name()) assert.NoError(t, err) assert.NotNil(t, f) fmt.Println("-->tempfile", f.Name()) dir, err := ioutil.TempDir("", t.Name()) assert.NoError(t, err) assert.NotNil(t, dir) fmt.Println("-->tempdir", dir) sto, err := store.NewBoltHold(f.Name())...
explode_data.jsonl/66403
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1084 }
[ 2830, 3393, 3820, 5449, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 43144, 65009, 1703, 19814, 259, 2967, 2398, 6948, 35699, 1155, 11, 1848, 340, 6948, 93882, 1155, 11, 282, 340, 11009, 12419, 21549, 29, 3888, 1192, 497, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsNullFunc(t *testing.T) { t.Parallel() ctx := createContext(t) fc := funcs[ast.IsNull] f, err := fc.getFunction(ctx, datumsToConstants(types.MakeDatums(1))) require.NoError(t, err) v, err := evalBuiltinFunc(f, chunk.Row{}) require.NoError(t, err) require.Equal(t, int64(0), v.GetInt64()) f, err = fc....
explode_data.jsonl/71326
{ "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, 98593, 9626, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 83674, 1155, 340, 1166, 66, 1669, 76871, 58, 559, 66275, 921, 1166, 11, 1848, 1669, 25563, 670, 5152, 7502, 11, 3258, 6237, 1249, 9386, 52613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewFeatureGroups(t *testing.T) { featureA := &wave.Feature{Name: "test", Groups: []string{"test"}, Users: nil} featureB := wave.NewFeatureGroups("test", []string{"test"}) if featureA.Name != featureB.Name { t.Errorf("Feature names do not match") } if featureA.Groups[0] != featureB.Groups[0] { t.Erro...
explode_data.jsonl/10797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 3564, 13859, 22173, 1155, 353, 8840, 836, 8, 341, 1166, 15208, 32, 1669, 609, 30398, 58434, 63121, 25, 330, 1944, 497, 34580, 25, 3056, 917, 4913, 1944, 14345, 14627, 25, 2092, 532, 1166, 15208, 33, 1669, 12060, 7121, 13859,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigTxContext_UpdateClusterNode(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/65332
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 559 }
[ 2830, 3393, 2648, 31584, 1972, 47393, 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 TestHas_EmitError(t *testing.T) { _, _, err := bob.HasTable("").ToSql() if err.Error() != "has statement should have a table name" { t.Fatal("error is different:", err.Error()) } }
explode_data.jsonl/61172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 10281, 2089, 1763, 1454, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 1848, 1669, 35192, 16152, 2556, 80821, 1249, 8269, 741, 743, 1848, 6141, 368, 961, 330, 4648, 5114, 1265, 614, 264, 1965, 829, 1, 341, 197, 3244, 2613...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCorrelationIDPublisherDecorator(t *testing.T) { var fn CorrelationIDExtractor = func(msg *message.Message) (string, bool) { return "id", true } pubsub := gochannel.NewGoChannel(gochannel.Config{}, watermill.NopLogger{}) publisher, err := CorrelationIDPublisherDecorator(fn)(pubsub) if err != nil { t....
explode_data.jsonl/76320
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 10580, 22221, 915, 34550, 47951, 1155, 353, 8840, 836, 8, 341, 2405, 5168, 4463, 22221, 915, 56118, 284, 2915, 8119, 353, 1994, 8472, 8, 320, 917, 11, 1807, 8, 341, 197, 853, 330, 307, 497, 830, 198, 197, 630, 62529, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcileSecurityGroupRemoveService(t *testing.T) { az := getTestCloud() service1 := getTestService("servicea", v1.ProtocolTCP, 81) service2 := getTestService("serviceb", v1.ProtocolTCP, 82) clusterResources := getClusterResources(az, 1, 1) lb, _ := az.reconcileLoadBalancer(testClusterName, &service1, cl...
explode_data.jsonl/50401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 291 }
[ 2830, 3393, 693, 40446, 457, 15352, 2808, 13021, 1860, 1155, 353, 8840, 836, 8, 341, 197, 1370, 1669, 633, 2271, 16055, 741, 52934, 16, 1669, 633, 2271, 1860, 445, 7936, 64, 497, 348, 16, 54096, 49896, 11, 220, 23, 16, 340, 52934, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDispatcherMultipleMount(t *testing.T) { d := NewClientTester(Div()) defer d.Close() d.Mount(A()) d.Mount(Text("hello")) d.Mount(&hello{}) d.Mount(&hello{}) d.Consume() }
explode_data.jsonl/15934
{ "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, 21839, 32089, 16284, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 1532, 2959, 58699, 5432, 344, 2398, 16867, 294, 10421, 741, 2698, 1321, 629, 4346, 2398, 2698, 1321, 629, 34082, 445, 14990, 5455, 2698, 1321, 629, 2099, 14990, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetOpenAPISchemaForbiddenFallback(t *testing.T) { server, err := openapiSchemaDeprecatedFakeServer(http.StatusForbidden, t) if err != nil { t.Errorf("unexpected error starting fake server: %v", err) } defer server.Close() client := NewDiscoveryClientForConfigOrDie(&restclient.Config{Host: server.URL}) ...
explode_data.jsonl/19753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 1949, 5002, 2537, 1637, 3416, 69115, 87206, 1155, 353, 8840, 836, 8, 341, 41057, 11, 1848, 1669, 1787, 2068, 8632, 51344, 52317, 5475, 19886, 10538, 69115, 11, 259, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 5385...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetaBackend_configureWithExtra(t *testing.T) { // Create a temporary working directory that is empty td := tempDir(t) copy.CopyDir(testFixturePath("init-backend-empty"), td) defer os.RemoveAll(td) defer testChdir(t, td)() extras := map[string]interface{}{"path": "hello"} m := testMetaBackend(t, nil) o...
explode_data.jsonl/34351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 569 }
[ 2830, 3393, 12175, 29699, 75887, 2354, 11612, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 264, 13340, 3238, 6220, 429, 374, 4287, 198, 76373, 1669, 2730, 6184, 1155, 340, 49124, 31770, 6184, 8623, 18930, 1820, 445, 2327, 89987, 39433, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterfacePtr(t *testing.T) { type Test struct { Iface interface{} `s:"default"` } type Inner struct { String string `s:"defaultStr"` } set := New() set.SetTagName("s") set.Register("default", func(ctx context.Context, t *Transformer, value reflect.Value, param string) error { value.Set(reflect.V...
explode_data.jsonl/43619
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 362 }
[ 2830, 3393, 5051, 5348, 1155, 353, 8840, 836, 8, 341, 13158, 3393, 2036, 341, 197, 24486, 1564, 3749, 6257, 1565, 82, 2974, 2258, 8805, 197, 630, 13158, 36356, 2036, 341, 197, 4980, 914, 1565, 82, 2974, 2258, 2580, 8805, 197, 630, 819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFullCyclePlumbing(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() rangeManager := mock.NewMockentryCataloger(ctrl) mri := metaRangeID prevCommitID := graveler.CommitID("somePrevCommitID") rangeManager.EXPECT(). ListEntries(gomock.Any(), gomock.Eq(repoID), gomock.Eq(graveler.Ref(pr...
explode_data.jsonl/31615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 525 }
[ 2830, 3393, 9432, 44820, 2120, 32446, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 75087, 2043, 1669, 7860, 7121, 11571, 4085, 41606, 261, 62100, 692, 2109, 461, 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 TestPodAutoscalerDuckTypes(t *testing.T) { tests := []struct { name string t duck.Implementable }{{ name: "conditions", t: &duckv1.Conditions{}, }} for _, test := range tests { t.Run(test.name, func(t *testing.T) { err := duck.VerifyType(&PodAutoscaler{}, test.t) if err != nil { t.Er...
explode_data.jsonl/27218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 23527, 19602, 436, 63084, 35, 1942, 4173, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 3244, 262, 35985, 26914, 2764, 480, 198, 197, 15170, 515, 197, 11609, 25, 330, 16495, 756, 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, 1, 1, 1, 1, 1, 1, 1...
2
func TestHttpParser_simpleRequest(t *testing.T) { http := httpModForTests(nil) http.parserConfig.sendHeaders = true http.parserConfig.sendAllHeaders = true data := "GET / HTTP/1.1\r\n" + "Host: www.google.ro\r\n" + "Connection: keep-alive\r\n" + "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) App...
explode_data.jsonl/16489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 689 }
[ 2830, 3393, 2905, 6570, 30015, 1900, 1155, 353, 8840, 836, 8, 341, 28080, 1669, 1758, 4459, 2461, 18200, 27907, 340, 28080, 25617, 2648, 5219, 10574, 284, 830, 198, 28080, 25617, 2648, 5219, 2403, 10574, 284, 830, 271, 8924, 1669, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateDuplicateRepo(t *testing.T) { ctx, cancel, config, tempdir := initConfig(t) defer cancel() defer os.RemoveAll(tempdir) defer libkbfs.CheckConfigAndShutdown(ctx, t, config) config2 := libkbfs.ConfigAsUser(config, "user2") ctx2, cancel2 := context.WithCancel(context.Background()) defer cancel2() t...
explode_data.jsonl/26651
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 928 }
[ 2830, 3393, 4021, 53979, 25243, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 11, 2193, 11, 2730, 3741, 1669, 2930, 2648, 1155, 340, 16867, 9121, 741, 16867, 2643, 84427, 9758, 3741, 340, 16867, 3051, 21310, 3848, 10600, 2648, 3036, 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...
1
func Test_JavaScript_HTML_Partial(t *testing.T) { const tmpl = "let a = \"<%= partial(\"part.html\") %>\"" const part = `<div id="foo"> <p>hi</p> </div>` r := require.New(t) e := NewEngine() box := e.TemplatesBox r.NoError(box.AddString(jsTemplate, tmpl)) r.NoError(box.AddString("_part.html", part)) h := e...
explode_data.jsonl/44615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 10598, 2907, 5910, 56726, 1088, 20894, 1155, 353, 8840, 836, 8, 341, 4777, 79839, 284, 330, 1149, 264, 284, 7245, 27, 35205, 7130, 36014, 4480, 2564, 62705, 79036, 2105, 698, 4777, 949, 284, 30586, 611, 877, 428, 7975, 881, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateMountBindings(t *testing.T) { mounts := []*runtimeapi.Mount{ // everything default { HostPath: "/mnt/1", ContainerPath: "/var/lib/mysql/1", }, // readOnly { HostPath: "/mnt/2", ContainerPath: "/var/lib/mysql/2", Readonly: true, }, // SELinux { HostPath:...
explode_data.jsonl/52789
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 845 }
[ 2830, 3393, 31115, 16284, 52843, 1155, 353, 8840, 836, 8, 341, 2109, 629, 82, 1669, 29838, 22255, 2068, 1321, 629, 515, 197, 197, 322, 4297, 1638, 198, 197, 197, 515, 298, 197, 9296, 1820, 25, 414, 3521, 40882, 14, 16, 756, 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 TestVehicles(t *testing.T) { acceptable := []string{ "invalid plugin type: ...", "missing mqtt broker configuration", "received status code 404 (INVALID PARAMS)", // Nissan "missing personID", "401 Unauthorized", "unexpected length", "i/o timeout", "Missing required parameter", // Renault "error...
explode_data.jsonl/21362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 53, 41865, 1155, 353, 8840, 836, 8, 341, 197, 37016, 1669, 3056, 917, 515, 197, 197, 1, 11808, 9006, 943, 25, 2503, 756, 197, 197, 1, 30616, 59431, 22316, 6546, 756, 197, 197, 1, 41823, 2639, 2038, 220, 19, 15, 19, 320...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestHasHostMountPVC(t *testing.T) { tests := map[string]struct { pvError error pvcError error expected bool podHasPVC bool pvcIsHostPath bool }{ "no pvc": {podHasPVC: false, expected: false}, "error fetching pvc": { podHasPVC: true, pvcError: fmt.Errorf("foo"), expecte...
explode_data.jsonl/49890
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 821 }
[ 2830, 3393, 10281, 9296, 16284, 47, 11287, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 3223, 85, 1454, 981, 1465, 198, 197, 3223, 7362, 1454, 414, 1465, 198, 197, 42400, 414, 1807, 198, 197, 3223, 347, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPercentile(t *testing.T) { tests := []struct { name string input []float64 percent float64 want float64 wantErr bool }{ { name: "Median []", input: []float64{}, percent: 0.5, wantErr: true, }, { name: "Median [0.1]", input: []float64{0.1}, percent: 0.5, ...
explode_data.jsonl/31329
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 753 }
[ 2830, 3393, 32010, 457, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 22427, 256, 3056, 3649, 21, 19, 198, 197, 197, 24422, 2224, 21, 19, 198, 197, 50780, 262, 2224, 21, 19, 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...
4
func TestAdminServer_DeleteTree(t *testing.T) { ctx := context.Background() ts, err := setupAdminServer(ctx, t) if err != nil { t.Fatalf("setupAdminServer() failed: %v", err) } defer ts.closeAll() tests := []struct { desc string baseTree *trillian.Tree }{ {desc: "logTree", baseTree: testonly.LogTre...
explode_data.jsonl/43981
{ "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, 7210, 5475, 57418, 6533, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 57441, 11, 1848, 1669, 6505, 7210, 5475, 7502, 11, 259, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 15188, 7210, 5475, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPRNumberFromCommitMessage(t *testing.T) { testCases := []struct { name string commitMessage string expectedPRNumber int }{ { name: "Get PR number from merged PR", commitMessage: `Merge pull request #76030 from andrewsykim/e2e-legacyscheme test/e2e: replace legacy scheme w...
explode_data.jsonl/5297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 1949, 6480, 2833, 3830, 33441, 2052, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 1797, 914, 198, 197, 197, 17413, 2052, 262, 914, 198, 197, 42400, 6480, 2833, 526, 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, 1...
3
func TestLiveClose(t *testing.T) { status, err := ys.CloseLive(fmt.Sprintf("%s:%d", DeviceSerial, ChannelNo)) if err != nil { tlog(err) } else { tlog(status) } }
explode_data.jsonl/81449
{ "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, 20324, 7925, 1155, 353, 8840, 836, 8, 341, 23847, 11, 1848, 1669, 31810, 10421, 20324, 28197, 17305, 4430, 82, 7533, 67, 497, 13903, 5915, 11, 13434, 2753, 1171, 743, 1848, 961, 2092, 341, 197, 3244, 839, 3964, 340, 197, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestK8SServiceVolumeSecretAndConfigMapAddsBothVolumesAndVolumeMountsToPod(t *testing.T) { t.Parallel() deployment := renderK8SServiceDeploymentWithSetValues( t, map[string]string{ "configMaps.dbsettings.as": "volume", "configMaps.dbsettings.mountPath": "/etc/db", "secrets.dbpassword.as": ...
explode_data.jsonl/59765
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 554 }
[ 2830, 3393, 42, 23, 1220, 1017, 18902, 19773, 3036, 2648, 2227, 72111, 20629, 96325, 3036, 18902, 16284, 82, 1249, 23527, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 82213, 1669, 3141, 42, 23, 1220, 1017, 75286, 2354, 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...
3
func TestDaisyInflater_Inflate_ReadsDiskStatsFromWorker(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mockWorker := mocks.NewMockDaisyWorker(ctrl) inflater := daisyInflater{ mockWorker, map[string]string{}, nil, "/disk/uri", logging.NewToolLogger("test"), } mockWorker.EXPECT().RunAndReadS...
explode_data.jsonl/75622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 346 }
[ 2830, 3393, 35, 49056, 12342, 25972, 16716, 38381, 82, 47583, 16635, 3830, 21936, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 77333, 21936, 1669, 68909, 7121, 11571, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBefore(t *testing.T) { fmt.Printf("tests_codec: %v\n", os.Getenv("tests_codec")) // util.SetDefaultInfoStream(util.NewPrintStreamInfoStream(os.Stdout)) index.DefaultSimilarity = func() index.Similarity { return search.NewDefaultSimilarity() } // This controls how suite-level rules are nested. It is imp...
explode_data.jsonl/50442
{ "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, 10227, 1155, 353, 8840, 836, 8, 341, 11009, 19367, 445, 23841, 51084, 25, 1018, 85, 1699, 497, 2643, 64883, 445, 23841, 51084, 28075, 197, 322, 4094, 4202, 3675, 1731, 3027, 67811, 7121, 8994, 3027, 1731, 3027, 9638, 83225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParserNEP5Transfer(t *testing.T) { p := smartcontract.NewParserWithScript("0480969800146063795d3b9b3cd55aef026eae992b91063db0db142c06a9124a089e43874d7a06a6532569df05d0ab53c1087472616e7366657267fb1c540417067c270dee32f21023aa8b9b71abcef1669ef64cb3c09aa3b3") //the order of your method signature has the be exa...
explode_data.jsonl/28988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 412 }
[ 2830, 3393, 6570, 3944, 47, 20, 21970, 1155, 353, 8840, 836, 8, 1476, 3223, 1669, 7785, 20257, 7121, 6570, 2354, 5910, 445, 15, 19, 23, 15, 24, 21, 24, 23, 15, 15, 16, 19, 21, 15, 21, 18, 22, 24, 20, 67, 18, 65, 24, 65, 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...
4
func TestHaltKeepsSteppingBreakpoints(t *testing.T) { withTestProcess("sleep", t, func(p *proc.Target, fixture protest.Fixture) { p.KeepSteppingBreakpoints = proc.HaltKeepsSteppingBreakpoints setFileBreakpoint(p, t, fixture.Source, 18) assertNoError(p.Continue(), t, "Continue()") resumeChan := make(chan struct...
explode_data.jsonl/56305
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 39, 3145, 6608, 7124, 20903, 10732, 22524, 7706, 1155, 353, 8840, 836, 8, 341, 46948, 2271, 7423, 445, 25809, 497, 259, 11, 2915, 1295, 353, 15782, 35016, 11, 12507, 8665, 991, 12735, 8, 341, 197, 3223, 13, 19434, 20903, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomOK(t *testing.T) { g := gomega.NewGomegaWithT(t) isvc := makeTestInferenceService() isvc.Spec.Default.Predictor.Tensorflow = nil isvc.Spec.Default.Predictor.Custom = &CustomSpec{ v1.Container{ Image: "custom:0.1", }, } err := isvc.validate(c) fmt.Println(err) g.Expect(isvc.validate(c)).Sho...
explode_data.jsonl/1496
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 10268, 3925, 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, 44203, 4965, 284, 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 TestStringAtEnd_Basic(t *testing.T) { if want, got := true, testStringAtEnd("TESTING", 1, 2, "B", "E", "TING"); want != got { t.Fatalf("StringStart error, wanted %v got %v", want, got) } if want, got := true, testStringAtEnd("JOSE", 0, 1, "OSE"); want != got { t.Fatalf("StringStart error, wanted %v got %v",...
explode_data.jsonl/9348
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 703, 1655, 3727, 1668, 5971, 1155, 353, 8840, 836, 8, 341, 743, 1366, 11, 2684, 1669, 830, 11, 1273, 703, 1655, 3727, 445, 10033, 1718, 497, 220, 16, 11, 220, 17, 11, 330, 33, 497, 330, 36, 497, 330, 25043, 5038, 1366,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHelmHooksAreCreated(t *testing.T) { Given(t). Path("hook"). When(). PatchFile("hook.yaml", `[{"op": "replace", "path": "/metadata/annotations", "value": {"helm.sh/hook": "pre-install"}}]`). Create(). Sync(). Then(). Expect(OperationPhaseIs(OperationSucceeded)). Expect(HealthIs(health.HealthSta...
explode_data.jsonl/69392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 39, 23162, 67769, 11526, 11694, 1155, 353, 8840, 836, 8, 341, 9600, 2071, 1155, 4292, 197, 69640, 445, 20873, 38609, 197, 197, 4498, 25829, 197, 10025, 754, 1703, 445, 20873, 33406, 497, 77644, 4913, 453, 788, 330, 8156, 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 TestGetPackage(t *testing.T) { a := newForTest(t) defer a.Close() tTeam, _ := a.AddTeam(&Team{Name: "test_team"}) tApp, _ := a.AddApp(&Application{Name: "test_app", TeamID: tTeam.ID}) tChannel, _ := a.AddChannel(&Channel{Name: "test_channel1", Color: "blue", ApplicationID: tApp.ID}) tPkg, err := a.AddPackag...
explode_data.jsonl/74615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 420 }
[ 2830, 3393, 1949, 13100, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 501, 2461, 2271, 1155, 340, 16867, 264, 10421, 2822, 3244, 14597, 11, 716, 1669, 264, 1904, 14597, 2099, 14597, 63121, 25, 330, 1944, 26532, 23625, 3244, 2164, 11, 716,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStackOutputsSuppressed(t *testing.T) { stdout := &bytes.Buffer{} integration.ProgramTest(t, &integration.ProgramTestOptions{ Dir: filepath.Join("stack_outputs", "nodejs"), Dependencies: []string{"@pulumi/pulumi"}, Quick: false, Verbose: tru...
explode_data.jsonl/76352
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 328 }
[ 2830, 3393, 4336, 61438, 10048, 14318, 1155, 353, 8840, 836, 8, 341, 6736, 411, 1669, 609, 9651, 22622, 16094, 2084, 17376, 80254, 2271, 1155, 11, 609, 60168, 80254, 2271, 3798, 515, 197, 197, 6184, 25, 503, 26054, 22363, 445, 7693, 351...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRandomPort(t *testing.T) { assert := assert.New(t) // tcp status, err := util.GetProxyStatus(consts.ADMIN_ADDR, consts.ADMIN_USER, consts.ADMIN_PWD, consts.ProxyTcpRandomPort) if assert.NoError(err) { addr := status.RemoteAddr res, err := util.SendTcpMsg(addr, consts.TEST_TCP_ECHO_STR) assert.NoError...
explode_data.jsonl/79667
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 303 }
[ 2830, 3393, 13999, 7084, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 197, 322, 28051, 198, 23847, 11, 1848, 1669, 4094, 2234, 16219, 2522, 2741, 82, 96869, 16058, 11, 95432, 96869, 9107, 11, 95432, 96869, 1088, 1756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImportVolume(t *testing.T) { const ( backendName = "backend02" scName = "sc01" volumeName01 = "volume01" volumeName02 = "volume02" originalName01 = "origVolume01" originalName02 = "origVolume02" backendProtocol = config.File ) orchestrator, volumeConfig := importVolumeSet...
explode_data.jsonl/62736
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 646 }
[ 2830, 3393, 11511, 18902, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 197, 20942, 675, 257, 284, 330, 20942, 15, 17, 698, 197, 29928, 675, 688, 284, 330, 2388, 15, 16, 698, 197, 5195, 4661, 675, 15, 16, 262, 284, 330, 25060, 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...
5
func Test_getTargetVersionFromIstioChart(t *testing.T) { branch := "branch" log := logger.NewLogger(false) t.Run("should not get target version when the istio Chart does not exist", func(t *testing.T) { // given istioChart := "not-existing-chart" factory := &workspacemocks.Factory{} factory.On("Get", mock.A...
explode_data.jsonl/67286
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 800 }
[ 2830, 3393, 3062, 6397, 5637, 3830, 40, 267, 815, 14488, 1155, 353, 8840, 836, 8, 341, 197, 17940, 1669, 330, 17940, 698, 6725, 1669, 5925, 7121, 7395, 3576, 692, 3244, 16708, 445, 5445, 537, 633, 2169, 2319, 979, 279, 5999, 815, 2126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAdminServer_TreeGC(t *testing.T) { ctx := context.Background() ts, err := setupAdminServer(ctx, t) if err != nil { t.Fatalf("setupAdminServer() failed: %v", err) } defer ts.closeAll() tree, err := ts.adminClient.CreateTree(ctx, &trillian.CreateTreeRequest{Tree: testonly.LogTree}) if err != nil { t...
explode_data.jsonl/43985
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 7210, 5475, 90770, 22863, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 57441, 11, 1848, 1669, 6505, 7210, 5475, 7502, 11, 259, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 15188, 7210, 5475, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGeneratePortProtocolKey(t *testing.T) { port := 53 protocol := "UDP" expected := "53/UDP" result := generatePortProtocolKey(port, protocol) if result != expected { t.Errorf("generatePortProtocolKey(%d, %q) returned %q but expected %q", port, protocol, result, expected) } }
explode_data.jsonl/11999
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 31115, 7084, 20689, 1592, 1155, 353, 8840, 836, 8, 341, 52257, 1669, 220, 20, 18, 198, 197, 17014, 1669, 330, 41648, 1837, 42400, 1669, 330, 20, 18, 14, 41648, 1837, 9559, 1669, 6923, 7084, 20689, 1592, 21230, 11, 11507, 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...
2
func TestTransformToCloudEventMultipleEvents(t *testing.T) { value1 := "1234" value2 := "4321" valueType := models.ValueTypeInt64 want := []string{ `{"data":"` + value1 + `","datacontenttype":"application/json","eventid":"event-` + devID1 + `","floatencoding":"","id":"123-abc","source":"id1","specversion":"1.0","...
explode_data.jsonl/58242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 530 }
[ 2830, 3393, 8963, 1249, 16055, 1556, 32089, 7900, 1155, 353, 8840, 836, 8, 341, 16309, 16, 1669, 330, 16, 17, 18, 19, 698, 16309, 17, 1669, 330, 19, 18, 17, 16, 698, 16309, 929, 1669, 4119, 6167, 929, 1072, 21, 19, 198, 50780, 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...
2
func TestSearchRepositories(t *testing.T) { r := spawnTestRegistrySession(t) results, err := r.SearchRepositories("fakequery") if err != nil { t.Fatal(err) } if results == nil { t.Fatal("Expected non-nil SearchResults object") } assertEqual(t, results.NumResults, 1, "Expected 1 search results") assertEqual(...
explode_data.jsonl/13112
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 5890, 44814, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 18042, 2271, 15603, 5283, 1155, 340, 55497, 11, 1848, 1669, 435, 31903, 44814, 445, 30570, 1631, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestIsLocalSourceAddr(t *testing.T) { table := []struct { name string addr string want bool }{ { name: "local dir with ./", addr: "./somedir", want: true, }, { name: "local dir with ../", addr: "../somedir", want: true, }, { name: "local dir with .\\", addr: ".\\somedir",...
explode_data.jsonl/16231
{ "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, 3872, 7319, 3608, 13986, 1155, 353, 8840, 836, 8, 1476, 26481, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 53183, 914, 198, 197, 50780, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 2438, 5419, 448, 1299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue877(t *testing.T) { if runtime.GOOS != "darwin" && testBackend == "lldb" { return } if os.Getenv("TRAVIS") == "true" && runtime.GOOS == "darwin" { // Something changed on Travis side that makes the Go compiler fail if // DYLD_LIBRARY_PATH is set. t.Skip("broken") } const envval = "/usr/local/...
explode_data.jsonl/56288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 42006, 23, 22, 22, 1155, 353, 8840, 836, 8, 341, 743, 15592, 97574, 3126, 961, 330, 98765, 1, 1009, 1273, 29699, 621, 330, 32459, 65, 1, 341, 197, 853, 198, 197, 532, 743, 2643, 64883, 445, 2378, 98716, 899, 621, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetUserAccessToken(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer th.TearDown() Client := th.Client AdminClient := th.SystemAdminClient testDescription := "test token" th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableUserAccessTokens = true }) _, resp := Cli...
explode_data.jsonl/21559
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 827 }
[ 2830, 3393, 1949, 1474, 37649, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 1005, 3803, 2320, 7210, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 197, 7210, 2959, 1669, 270, 16620, 7210, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHandlers_PostDirectMessage(t *testing.T) { t.Parallel() path := "/api/v3/users/{userId}/messages" env := Setup(t, common1) user := env.CreateUser(t, rand) user2 := env.CreateUser(t, rand) user3 := env.CreateUser(t, rand) dm := env.CreateDMChannel(t, user.GetID(), user2.GetID()) s := env.S(t, user.GetI...
explode_data.jsonl/40163
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1143 }
[ 2830, 3393, 39949, 66726, 16027, 2052, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 26781, 1669, 3521, 2068, 5457, 18, 19178, 9388, 13508, 4472, 16325, 698, 57538, 1669, 18626, 1155, 11, 4185, 16, 340, 19060, 1669, 6105, 7251, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSecretCreate(t *testing.T) { secret := &api.Secret{ ObjectMeta: api.ObjectMeta{ Name: "abc", Namespace: "foo", }, Data: map[string][]byte{ "data-1": []byte("value-1"), }, } nodeWithSecret := tools.EtcdResponseWithError{ R: &etcd.Response{ Node: &etcd.Node{ Value: runt...
explode_data.jsonl/60361
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 678 }
[ 2830, 3393, 19773, 4021, 1155, 353, 8840, 836, 8, 341, 197, 20474, 1669, 609, 2068, 74779, 515, 197, 23816, 12175, 25, 6330, 80222, 515, 298, 21297, 25, 414, 330, 13683, 756, 298, 90823, 25, 330, 7975, 756, 197, 197, 1583, 197, 40927,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOnDemandAuthorizationServiceCreateError(t *testing.T) { c := newMockClient(400, filepath.Join("testdata", "validation-error.json")) res, err := c.OnDemandAuthorization.Create(ctx) assert.Nil(t, res) assert.NotNil(t, err) }
explode_data.jsonl/82566
{ "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, 1925, 81027, 18124, 1860, 4021, 1454, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 501, 11571, 2959, 7, 19, 15, 15, 11, 26054, 22363, 445, 92425, 497, 330, 12284, 18917, 4323, 5455, 10202, 11, 1848, 1669, 272, 8071, 81027, 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
func Test_OpenAccount(t *testing.T) { t.Run( "when the account does not exist", func(t *testing.T) { t.Run( "the new account is opened", func(t *testing.T) { Begin(t, &example.App{}). Expect( ExecuteCommand( commands.OpenAccount{ CustomerID: "C001", AccountID...
explode_data.jsonl/53567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 708 }
[ 2830, 3393, 51747, 7365, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 1006, 197, 197, 1, 9309, 279, 2692, 1558, 537, 3000, 756, 197, 29244, 1155, 353, 8840, 836, 8, 341, 298, 3244, 16708, 1006, 571, 197, 1, 1782, 501, 2692, 374, 8930,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLinuxConnReceiveLargeMessage(t *testing.T) { n := os.Getpagesize() * 4 res := Message{ Header: Header{ Length: uint32(nlmsgAlign(nlmsgLength(n))), Type: HeaderTypeError, Sequence: 1, PID: uint32(os.Getpid()), }, Data: make([]byte, n), } resb, err := res.MarshalBinary() if err...
explode_data.jsonl/33490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 46324, 9701, 14742, 34253, 2052, 1155, 353, 8840, 836, 8, 341, 9038, 1669, 2643, 2234, 84917, 368, 353, 220, 19, 271, 10202, 1669, 4856, 515, 197, 197, 4047, 25, 12104, 515, 298, 197, 4373, 25, 256, 2622, 18, 17, 1445, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestFullySec_DamgardDDH(t *testing.T) { params := []damgardTestParam{{name: "random", modulusLength: 512, precomputed: false}, {name: "precomputed", modulusLength: 2048, precomputed: true}} for _, param := range params { t.Run(param.name, func(t *testing.T) { testFullySecDamgardDDHFromParam(t, param) }...
explode_data.jsonl/8847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 67386, 8430, 1557, 309, 53492, 4103, 39, 1155, 353, 8840, 836, 8, 341, 25856, 1669, 3056, 15408, 53492, 2271, 2001, 2979, 606, 25, 330, 11463, 497, 74024, 4373, 25, 220, 20, 16, 17, 11, 855, 71011, 25, 895, 1583, 197, 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, 1, 1, 1, 1, 1, 1, 1...
1
func TestListAllTables(t *testing.T) { db, mock, err := sqlmock.New() require.NoError(t, err) defer func() { require.NoError(t, db.Close()) }() conn, err := db.Conn(context.Background()) require.NoError(t, err) tctx := tcontext.Background().WithLogger(appLogger) // Test list all tables and skipping views. ...
explode_data.jsonl/49485
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 963 }
[ 2830, 3393, 852, 2403, 21670, 1155, 353, 8840, 836, 8, 341, 20939, 11, 7860, 11, 1848, 1669, 5704, 16712, 7121, 741, 17957, 35699, 1155, 11, 1848, 340, 16867, 2915, 368, 341, 197, 17957, 35699, 1155, 11, 2927, 10421, 2398, 197, 66816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadFromKubernetesSecret(t *testing.T) { // it is a special test, it requires kubectl configured. // it will not run part of CI. to run it comment the line below t.Skip() _, err := exec.LookPath("kubectl") if err != nil { t.Skip() } cmd := exec.Command("kubectl", "create", "secret", "generic", "k-api-...
explode_data.jsonl/60732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 4418, 3830, 42, 29827, 19773, 1155, 353, 8840, 836, 8, 341, 197, 322, 432, 374, 264, 3281, 1273, 11, 432, 7460, 595, 53380, 19755, 624, 197, 322, 432, 686, 537, 1598, 949, 315, 20694, 13, 311, 1598, 432, 3980, 279, 1555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetricsExporter(t *testing.T) { _, err := newMetricsExporter(&metricsConfig{ domain: servingDomain, component: testComponent, backendDestination: "unsupported", stackdriverProjectID: ""}, TestLogger(t)) if err == nil { t.Errorf("Expected an error for unsupported backend %...
explode_data.jsonl/29322
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 27328, 88025, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 501, 27328, 88025, 2099, 43262, 2648, 515, 197, 2698, 3121, 25, 2290, 13480, 13636, 345, 197, 52228, 25, 310, 1273, 2189, 345, 197, 197, 20942, 33605, 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...
3
func TestVersionedTreeSpecialCase(t *testing.T) { require := require.New(t) tree := NewMutableTree(db.NewMemDB(), 100) tree.Set([]byte("key1"), []byte("val0")) tree.Set([]byte("key2"), []byte("val0")) tree.SaveVersion() tree.Set([]byte("key1"), []byte("val1")) tree.Set([]byte("key2"), []byte("val1")) tree.Sav...
explode_data.jsonl/25121
{ "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, 5637, 291, 6533, 20366, 4207, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 51968, 1669, 1532, 11217, 6533, 9791, 7121, 18816, 3506, 1507, 220, 16, 15, 15, 692, 51968, 4202, 10556, 3782, 445, 792, 16, 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 TestIssues(t *testing.T) { setting.UI.IssuePagingNum = 1 assert.NoError(t, models.LoadFixtures()) ctx := test.MockContext(t, "issues") test.LoadUser(t, ctx, 2) ctx.SetParams(":type", "issues") ctx.Req.Form.Set("state", "closed") Issues(ctx) assert.EqualValues(t, http.StatusOK, ctx.Resp.Status()) assert....
explode_data.jsonl/6990
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 85828, 1155, 353, 8840, 836, 8, 341, 8196, 1280, 8216, 2447, 83890, 47, 4118, 4651, 284, 220, 16, 198, 6948, 35699, 1155, 11, 4119, 13969, 25958, 18513, 12367, 20985, 1669, 1273, 24664, 1972, 1155, 11, 330, 18427, 1138, 1818...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_DefaultIstioPerformer_PatchMutatingWebhook(t *testing.T) { log := logger.NewLogger(false) t.Run("should not patch MutatingWebhookConfiguration when kubeclient had returned an error", func(t *testing.T) { // given kubeClient := mocks.Client{} kubeClient.On("Clientset").Return(nil, errors.New("kubecli...
explode_data.jsonl/67281
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1823 }
[ 2830, 3393, 60336, 40, 267, 815, 3889, 34527, 1088, 754, 51440, 1095, 5981, 20873, 1155, 353, 8840, 836, 8, 1476, 6725, 1669, 5925, 7121, 7395, 3576, 692, 3244, 16708, 445, 5445, 537, 10900, 31228, 1095, 5981, 20873, 7688, 979, 80958, 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 TestContext2Plan_preventDestroy_countGood(t *testing.T) { m := testModule(t, "plan-prevent-destroy-count-good") p := testProvider("aws") p.GetSchemaReturn = &ProviderSchema{ ResourceTypes: map[string]*configschema.Block{ "aws_instance": { Attributes: map[string]*configschema.Attribute{ "current": ...
explode_data.jsonl/28663
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 579 }
[ 2830, 3393, 1972, 17, 20485, 10442, 684, 14245, 3180, 15216, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 21334, 684, 12, 15518, 26580, 71700, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 2234, 863...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestP2PQuery(t *testing.T) { addrPeerFilterOpt := func(bapp *baseapp.BaseApp) { bapp.SetAddrPeerFilter(func(addrport string) abci.ResponseQuery { require.Equal(t, "1.1.1.1:8000", addrport) return abci.ResponseQuery{Code: uint32(3)} }) } idPeerFilterOpt := func(bapp *baseapp.BaseApp) { bapp.SetIDPee...
explode_data.jsonl/30048
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 345 }
[ 2830, 3393, 47, 17, 47, 2859, 1155, 353, 8840, 836, 8, 341, 53183, 30888, 5632, 21367, 1669, 2915, 1883, 676, 353, 3152, 676, 13018, 2164, 8, 341, 197, 2233, 676, 4202, 13986, 30888, 5632, 18552, 24497, 403, 914, 8, 668, 5855, 12574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAsync(t *testing.T) { //testAsync() //a := time.Now().UnixMicro() //fmt.Println(RandomIPv6(10)) //fmt.Println(time.UnixMicro(a)) response, err := http.Get("https://www.coder.work/article/25431") if err != nil { return } defer response.Body.Close() reader, err := goquery.NewDocumentFromReader(respons...
explode_data.jsonl/1919
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 6525, 1155, 353, 8840, 836, 8, 341, 197, 322, 1944, 6525, 741, 197, 322, 64, 1669, 882, 13244, 1005, 55832, 34609, 741, 197, 322, 12501, 12419, 75456, 58056, 21, 7, 16, 15, 1171, 197, 322, 12501, 12419, 9730, 10616, 941, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOnReciveProposal(t *testing.T) { key, _ := GeneratePrivateKey() hs := New(NewConfig(1, key, nil)) block1 := CreateLeaf(hs.genesis, []Command{Command("command1")}, hs.qcHigh, hs.genesis.Height+1) qc := CreateQuorumCert(block1) pc, err := hs.OnReceiveProposal(block1) if err != nil { t.Errorf("onReciveP...
explode_data.jsonl/1121
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 384 }
[ 2830, 3393, 1925, 3820, 533, 98637, 1155, 353, 8840, 836, 8, 341, 23634, 11, 716, 1669, 19813, 75981, 741, 81692, 1669, 1532, 35063, 2648, 7, 16, 11, 1376, 11, 2092, 1171, 47996, 16, 1669, 4230, 31461, 3203, 82, 22822, 13774, 11, 3056...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestCachedConnExecDropCache(t *testing.T) { r, err := miniredis.Run() assert.Nil(t, err) defer fx.DoWithTimeout(func() error { r.Close() return nil }, time.Second) const ( key = "user" value = "any" ) var conn trackedConn c := NewNodeConn(&conn, redis.New(r.Addr()), cache.WithExpiry(time.Second*...
explode_data.jsonl/64133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 328 }
[ 2830, 3393, 70293, 9701, 10216, 19871, 8233, 1155, 353, 8840, 836, 8, 341, 7000, 11, 1848, 1669, 1308, 2690, 285, 16708, 741, 6948, 59678, 1155, 11, 1848, 340, 16867, 33219, 33596, 2354, 7636, 18552, 368, 1465, 341, 197, 7000, 10421, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBasic(t *testing.T) { type Foo struct { A int B int C int } f := Foo{1, 2, 3} fv := reflect.ValueOf(f) m := NewMapperFunc("", func(s string) string { return s }) v := m.FieldByName(fv, "A") if ival(v) != f.A { t.Errorf("Expecting %d, got %d", ival(v), f.A) } v = m.FieldByName(fv, "B") if iv...
explode_data.jsonl/59093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 15944, 1155, 353, 8840, 836, 8, 341, 13158, 33428, 2036, 341, 197, 22985, 526, 198, 197, 12791, 526, 198, 197, 6258, 526, 198, 197, 630, 1166, 1669, 33428, 90, 16, 11, 220, 17, 11, 220, 18, 532, 1166, 85, 1669, 8708, 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 TestDump(t *testing.T) { if skipIntegrateTest { t.Skip("skip integration test") } ctx, cancel := context.WithTimeout(context.Background(), 180*time.Second) defer cancel() // NOTE: Spanner doesn't allow to use trailer ";" in DDL. ddls := []string{ `CREATE TABLE t1 ( Id INT64 NOT NULL, StrCol STRING(16...
explode_data.jsonl/70139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1113 }
[ 2830, 3393, 51056, 1155, 353, 8840, 836, 8, 341, 743, 10706, 1072, 57017, 2271, 341, 197, 3244, 57776, 445, 20599, 17590, 1273, 1138, 197, 630, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 220, 16, 23, 15, 77053, 32435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlayer_FlashDurationTime(t *testing.T) { pl := newPlayer(0) pl.FlashDuration = 2.3 assert.Equal(t, 2300*time.Millisecond, pl.FlashDurationTime()) }
explode_data.jsonl/12167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 4476, 1400, 24686, 12945, 1462, 1155, 353, 8840, 836, 8, 341, 72213, 1669, 501, 4476, 7, 15, 692, 72213, 991, 24686, 12945, 284, 220, 17, 13, 18, 271, 6948, 12808, 1155, 11, 220, 17, 18, 15, 15, 77053, 71482, 11, 625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMergeMap(t *testing.T) { tests := map[string]struct { Map1 map[string]interface{} Map2 map[string]interface{} expectedMap map[string]interface{} }{ "merge map of 2 objects": { Map1: map[string]interface{}{ "k1": "v1", }, Map2: map[string]interface{}{ "k2": "v2", }, ...
explode_data.jsonl/44192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 959 }
[ 2830, 3393, 52096, 2227, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 26873, 16, 286, 2415, 14032, 31344, 16094, 197, 26873, 17, 286, 2415, 14032, 31344, 16094, 197, 42400, 2227, 2415, 14032, 31344, 16094, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIndexCachingWorks(t *testing.T) { ctx := context.Background() metric := labels.Labels{ {Name: labels.MetricName, Value: "foo"}, {Name: "bar", Value: "baz"}, } storeMaker := stores[1] storeCfg := storeMaker.configFn() store := newTestChunkStoreConfig(t, "v9", storeCfg) defer store.Stop() storage :...
explode_data.jsonl/43823
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 1552, 34, 11829, 37683, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 2109, 16340, 1669, 9201, 4679, 82, 515, 197, 197, 63121, 25, 9201, 1321, 16340, 675, 11, 5162, 25, 330, 7975, 7115, 197, 197, 63121, 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...
1
func Test_20210602(t *testing.T) { type params struct { para1 []int para2 int ans bool } qs := []params{ { para1: []int{23, 2, 4, 6, 7}, para2: 6, ans: true, }, { para1: []int{23, 2, 6, 4, 7}, para2: 6, ans: true, }, { para1: []int{23, 2, 6, 4, 7}, para2: 13, ans: f...
explode_data.jsonl/830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 62, 17, 15, 17, 16, 15, 21, 15, 17, 1155, 353, 8840, 836, 8, 341, 13158, 3628, 2036, 341, 197, 197, 14794, 16, 3056, 396, 198, 197, 197, 14794, 17, 526, 198, 197, 43579, 256, 1807, 198, 197, 532, 18534, 82, 1669, 305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryString(t *testing.T) { setupServer() defer teardownServer() var want = "http://example.com/url?foo=bar" mux.HandleFunc("/url", func(w http.ResponseWriter, r *http.Request) { var got = r.URL.String() if got != want { t.Errorf("Wanted URL %v, got %v instead", want, got) } }) req := URL("ht...
explode_data.jsonl/24767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 67001, 1155, 353, 8840, 836, 8, 341, 84571, 5475, 741, 16867, 49304, 5475, 2822, 2405, 1366, 284, 330, 1254, 1110, 8687, 905, 57254, 30, 7975, 28, 2257, 1837, 2109, 2200, 63623, 4283, 1085, 497, 2915, 3622, 1758, 37508, 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 TestLinearSVC(t *testing.T) { Convey("Doing a LinearSVC test", t, func() { var SVC *LinearSVC var err error Convey("Test NewLinearSVC", func() { _, err = NewLinearSVC("l1", "l1", false, 1.0, -1e6) So(err, ShouldNotBeNil) _, err = NewLinearSVC("l0", "l1", false, 1.0, -1e6) So(err, ShouldNotBeNil)...
explode_data.jsonl/9561
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1071 }
[ 2830, 3393, 31898, 50, 11287, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 83046, 264, 28263, 50, 11287, 1273, 497, 259, 11, 2915, 368, 341, 197, 2405, 88212, 353, 31898, 50, 11287, 198, 197, 2405, 1848, 1465, 198, 197, 93070, 5617...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKlout(t *testing.T) { c := NewChance() actual := c.Klout() if actual < 0 { t.Errorf("Klout() was incorrect, expect: [positive number], actual: %d.", actual) } }
explode_data.jsonl/62178
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 42, 75, 411, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 76070, 741, 88814, 1669, 272, 11352, 75, 411, 741, 743, 5042, 366, 220, 15, 341, 197, 3244, 13080, 445, 42, 75, 411, 368, 572, 15114, 11, 1720, 25, 508, 3048...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRendersCaptureWithNestedOutputs(t *testing.T) { d := map[string]interface{}{ "ghola": PersonS{"Duncan", 67}, } template, _ := ParseString("welcome{% capture name %} {{ ghola | downcase }}{%endcapture%}! {{ name }}", nil) assertRender(t, template, d, `welcome! duncan`) }
explode_data.jsonl/42412
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 49, 14506, 27429, 2354, 71986, 61438, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 866, 7924, 788, 7357, 50, 4913, 35, 37466, 497, 220, 21, 22, 1583, 197, 532, 22832, 11, 716, 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...
1
func TestNodeStatusWritten(t *testing.T) { defer leaktest.AfterTest(t)() // ======================================== // Start test server and wait for full initialization. // ======================================== srv, _, kvDB := serverutils.StartServer(t, base.TestServerArgs{ DisableEventLog: true, }) defe...
explode_data.jsonl/49430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1893 }
[ 2830, 3393, 1955, 2522, 35624, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 197, 322, 35774, 41405, 197, 322, 5145, 1273, 3538, 323, 3783, 369, 2480, 17465, 624, 197, 322, 35774, 41405, 1903, 10553, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDiffFilenameShownInOutput(t *testing.T) { containerCmd := `echo foo > /root/bar` runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "sh", "-c", containerCmd) out, _, err := runCommandWithOutput(runCmd) if err != nil { t.Fatalf("failed to start the container: %s, %v", out, err) } cleanCID := ...
explode_data.jsonl/35831
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 21751, 20759, 58997, 641, 5097, 1155, 353, 8840, 836, 8, 341, 53290, 15613, 1669, 1565, 3047, 15229, 861, 608, 2888, 49513, 3989, 56742, 15613, 1669, 3883, 12714, 1500, 13659, 21338, 11, 330, 6108, 497, 6523, 67, 497, 330, 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...
6
func Test_Resolve(t *testing.T) { parser := NewDefault() resolved, err := parser.Resolve([]byte(have), "test.tf") require.NoError(t, err) require.Equal(t, []byte(have), *resolved) }
explode_data.jsonl/40763
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 62, 56808, 1155, 353, 8840, 836, 8, 341, 55804, 1669, 1532, 3675, 2822, 10202, 8731, 11, 1848, 1669, 6729, 57875, 10556, 3782, 3203, 523, 701, 330, 1944, 68994, 1138, 17957, 35699, 1155, 11, 1848, 340, 17957, 12808, 1155, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestCompositeLitTypes(t *testing.T) { for _, test := range []struct { lit, typ string }{ {`[16]byte{}`, `[16]byte`}, {`[...]byte{}`, `[0]byte`}, // test for issue #14092 {`[...]int{1, 2, 3}`, `[3]int`}, // test for issue #14092 {`[...]int{90: 0, 98: 1, 2}`, `[100]int`}, // test...
explode_data.jsonl/29396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 672 }
[ 2830, 3393, 41685, 68954, 4173, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 8810, 275, 11, 3582, 914, 198, 197, 59403, 197, 197, 90, 63, 58, 16, 21, 90184, 90, 28350, 77644, 16, 21, 90184, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestStatusFindRecipesError(t *testing.T) { common.CfgFolder = "testdata" ck := &mockedCookbook{} err := migrate.Status(ck, []string{}) if err == nil { t.Errorf("Status should returns an error") } if ck.called { t.Errorf("Do should not be called") } }
explode_data.jsonl/10218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 2522, 9885, 69853, 1454, 1155, 353, 8840, 836, 8, 341, 83825, 727, 4817, 13682, 284, 330, 92425, 698, 197, 377, 1669, 609, 16712, 291, 58382, 2190, 16094, 9859, 1669, 44566, 10538, 7, 377, 11, 3056, 917, 37790, 743, 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...
3
func TestCrossShardPoolv2GetNextCrossShardHeight(t *testing.T) { ResetCrossShardPoolTest() shardID := byte(0) toShardID := byte(1) var nextHeight uint64 nextHeight = crossShardPoolMapTest[shardID].GetNextCrossShardHeight(shardID, toShardID, 1) if nextHeight != 3 { t.Fatal("Expect 3 but get ", nextHeight) } ne...
explode_data.jsonl/74591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 434 }
[ 2830, 3393, 28501, 2016, 567, 10551, 85, 17, 1949, 5847, 28501, 2016, 567, 3640, 1155, 353, 8840, 836, 8, 341, 197, 14828, 28501, 2016, 567, 10551, 2271, 741, 36196, 567, 915, 1669, 4922, 7, 15, 340, 31709, 2016, 567, 915, 1669, 4922,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildErrorExecute(t *testing.T) { fh := &FakeSTI{ BuildRequest: &api.Config{ BuilderImage: "testimage", }, BuildResult: &api.Result{}, ExecuteError: errors.New("ExecuteError"), ExpectedError: false, } builder := newFakeSTI(fh) _, err := builder.Build(&api.Config{BuilderImage: "testimage"}) ...
explode_data.jsonl/59436
{ "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, 11066, 1454, 17174, 1155, 353, 8840, 836, 8, 341, 1166, 71, 1669, 609, 52317, 784, 40, 515, 197, 197, 11066, 1900, 25, 609, 2068, 10753, 515, 298, 197, 3297, 1906, 25, 330, 1944, 1805, 756, 197, 197, 1583, 197, 197, 1106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateNamespace(t *testing.T) { validLabels := map[string]string{"a": "b"} invalidLabels := map[string]string{"NoUppercaseOrSpecialCharsLike=Equals": "b"} successCases := []api.Namespace{ { ObjectMeta: api.ObjectMeta{Name: "abc", Labels: validLabels}, }, { ObjectMeta: api.ObjectMeta{Name: "abc...
explode_data.jsonl/62810
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 17926, 22699, 1155, 353, 8840, 836, 8, 341, 56322, 23674, 1669, 2415, 14032, 30953, 4913, 64, 788, 330, 65, 16707, 197, 11808, 23674, 1669, 2415, 14032, 30953, 4913, 2753, 52, 602, 2962, 519, 2195, 20366, 32516, 12949, 28, 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...
5
func TestOrderCreate(t *testing.T) { setup() defer teardown() httpmock.RegisterResponder("POST", fmt.Sprintf("https://fooshop.myshopify.com/%s/orders.json", client.pathPrefix), httpmock.NewStringResponder(201, `{"order":{"id": 1}}`)) order := Order{ LineItems: []LineItem{ LineItem{ VariantID: 1, Qu...
explode_data.jsonl/17990
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 4431, 4021, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 28080, 16712, 19983, 30884, 445, 2946, 497, 8879, 17305, 445, 2428, 1110, 824, 9267, 453, 12618, 8675, 1437, 905, 12627, 82, 82818, 4323, 497, 2943, 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 TestMapCollection(t *testing.T) { type mapValue struct { v string } t.Run("", func(t *testing.T) { c, ch := container() c.Object(&mapValue{"a"}).Name("a").Order(1) c.Object(&mapValue{"b"}).Name("b").Order(2) err := c.Refresh() assert.Nil(t, err) p := <-ch var vSlice []*mapValue err = p.Be...
explode_data.jsonl/17437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 2227, 6482, 1155, 353, 8840, 836, 8, 1476, 13158, 2415, 1130, 2036, 341, 197, 5195, 914, 198, 197, 630, 3244, 16708, 19814, 2915, 1155, 353, 8840, 836, 8, 1476, 197, 1444, 11, 521, 1669, 5476, 741, 197, 1444, 8348, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAppendAccessRecords(t *testing.T) { repo := "testRepo" expectedResource := auth.Resource{ Type: "repository", Name: repo, } expectedPullRecord := auth.Access{ Resource: expectedResource, Action: "pull", } expectedPushRecord := auth.Access{ Resource: expectedResource, Action:...
explode_data.jsonl/72952
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 716 }
[ 2830, 3393, 23877, 6054, 25876, 1155, 353, 8840, 836, 8, 972, 17200, 5368, 1669, 330, 1944, 25243, 18591, 42400, 4783, 1669, 4166, 20766, 1666, 197, 27725, 25, 330, 23319, 4723, 197, 21297, 25, 15867, 1871, 197, 2570, 42400, 36068, 6471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetOrganizationList(t *testing.T) { t.Log("Test catalogrepository organization list") catalogRepo := NewCatalogRepository(db) orgList, err := catalogRepo.GetOrganizationList(context.TODO()) assert.Nil(t, err) assert.Equal(t, len(orgList), 2) assert.Equal(t, orgList[0].Name, "pizza") }
explode_data.jsonl/58783
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 1949, 41574, 852, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 445, 2271, 16403, 23319, 7321, 1140, 5130, 1444, 7750, 25243, 1669, 1532, 41606, 4624, 9791, 692, 87625, 852, 11, 1848, 1669, 16403, 25243, 2234, 41574, 852, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetPlugin(t *testing.T) { cases := []struct { Name string Mod *modInfo Expected *pulumirpc.PluginDependency ShouldErr bool JSON *plugin.PulumiPluginJSON JSONPath string }{ { Name: "valid-pulumi-mod", Mod: &modInfo{ Path: "github.com/pulumi/pulumi-aws/sdk", Ver...
explode_data.jsonl/70070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2381 }
[ 2830, 3393, 1949, 11546, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 21297, 414, 914, 198, 197, 197, 4459, 981, 353, 2593, 1731, 198, 197, 197, 18896, 220, 353, 79, 16496, 404, 3992, 64378, 36387, 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 TestUpdateReplicaSetRelease(t *testing.T) { f := newFixture(t) d1 := newDeployment("d1", 1, nil, nil, nil, map[string]string{"foo": "bar"}) d2 := newDeployment("d2", 1, nil, nil, nil, map[string]string{"foo": "bar"}) rs := newReplicaSet(d1, "rs1", 1) f.dLister = append(f.dLister, d1, d2) f.rsLister = appe...
explode_data.jsonl/66052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 335 }
[ 2830, 3393, 4289, 18327, 15317, 1649, 16077, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 692, 2698, 16, 1669, 501, 75286, 445, 67, 16, 497, 220, 16, 11, 2092, 11, 2092, 11, 2092, 11, 2415, 14032, 30953, 4913, 7975, 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...
3
func TestValidate(t *testing.T) { tests := []struct { name string b RabbitBroker want *apis.FieldError }{{ name: "missing annotation, so not our broker", b: RabbitBroker{}, }, { name: "empty annotation, again not our broker", b: RabbitBroker{eventingv1.Broker{ ObjectMeta: metav1.ObjectMeta{ ...
explode_data.jsonl/34999
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2059 }
[ 2830, 3393, 17926, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 2233, 262, 48331, 65545, 198, 197, 50780, 353, 13725, 17087, 1454, 198, 197, 15170, 515, 197, 11609, 25, 330, 30616, 21223, 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 TestAccDataCatalogEntryGroup_update(t *testing.T) { t.Parallel() context := map[string]interface{}{ "random_suffix": randString(t, 10), } vcrTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckDataCatalogEntryGroupDestroyPr...
explode_data.jsonl/62976
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 448 }
[ 2830, 3393, 14603, 1043, 41606, 5874, 2808, 8882, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 28413, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 11463, 37151, 788, 10382, 703, 1155, 11, 220, 16, 15, 1326, 197, 630, 5195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultErrLogger(t *testing.T) { cases := []struct { name string in string out string }{ { name: "helloworld", in: "helloworld", out: "helloworld\n", }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { var ( buf = new(bytes.Buffer) ) _, e, _ := Defaul...
explode_data.jsonl/37586
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 3675, 7747, 7395, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 17430, 256, 914, 198, 197, 13967, 220, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 71, 95292, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSchemaParser_SingleValueEnum(t *testing.T) { body := `enum Hello { WORLD }` astDoc := parse(t, body) expected := ast.NewDocument(&ast.Document{ Loc: testLoc(0, 20), Definitions: []ast.Node{ ast.NewEnumDefinition(&ast.EnumDefinition{ Loc: testLoc(0, 20), Name: ast.NewName(&ast.Name{ Value...
explode_data.jsonl/73871
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 8632, 6570, 1098, 2173, 1130, 10766, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 1565, 9018, 21927, 314, 50891, 335, 3989, 88836, 9550, 1669, 4715, 1155, 11, 2487, 340, 42400, 1669, 11763, 7121, 7524, 2099, 559, 26256, 515, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestClientAuth(t *testing.T) { var certPath, keyPath, ecdsaCertPath, ecdsaKeyPath string if *update { certPath = tempFile(clientCertificatePEM) defer os.Remove(certPath) keyPath = tempFile(clientKeyPEM) defer os.Remove(keyPath) ecdsaCertPath = tempFile(clientECDSACertificatePEM) defer os.Remove(ecds...
explode_data.jsonl/80568
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 555 }
[ 2830, 3393, 2959, 5087, 1155, 353, 8840, 836, 8, 341, 2405, 2777, 1820, 11, 1376, 1820, 11, 384, 4385, 9081, 36934, 1820, 11, 384, 4385, 9081, 1592, 1820, 914, 271, 743, 353, 2386, 341, 197, 1444, 529, 1820, 284, 2730, 1703, 12805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRespectingCanceledContext(t *testing.T) { must := func(checker check.Checker, err error) check.Checker { require.NoError(t, err) return checker } checkers := []check.Checker{ check.NewDuplicatedPattern(), check.NewFileExist(), check.NewValidSyntax(), check.NewNotOwnedFile(check.NotOwnedFileConf...
explode_data.jsonl/13164
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 1061, 65348, 63263, 1972, 1155, 353, 8840, 836, 8, 341, 2109, 590, 1669, 2915, 24077, 261, 1779, 10600, 261, 11, 1848, 1465, 8, 1779, 10600, 261, 341, 197, 17957, 35699, 1155, 11, 1848, 340, 197, 853, 40915, 198, 197, 630,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckpoint(t *testing.T) { tests := []struct { name string basePath string }{ { name: "test with empty basepath", basePath: "", }, { name: "test with relative basepath", basePath: "base/path", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { test...
explode_data.jsonl/81139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 92688, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 24195, 1820, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 257, 330, 1944, 448, 4287, 2331, 2343, 756, 298, 24195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNamedValueCheckerSkip(t *testing.T) { Register("NamedValueCheckSkip", &nvcDriver{skipNamedValueCheck: true}) db, err := Open("NamedValueCheckSkip", "") if err != nil { t.Fatal(err) } defer db.Close() ctx, cancel := context.WithCancel(context.Background()) defer cancel() _, err = db.ExecContext(ctx,...
explode_data.jsonl/16033
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 15810, 1130, 35188, 35134, 1155, 353, 8840, 836, 8, 341, 79096, 445, 15810, 1130, 3973, 35134, 497, 609, 77, 7362, 11349, 90, 20599, 15810, 1130, 3973, 25, 830, 3518, 20939, 11, 1848, 1669, 5264, 445, 15810, 1130, 3973, 3513...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDoClusterResizeCA(t *testing.T) { client := MockApiClient{ cluster: Cluster{ ID: "mock", BundleType: "APACHE_CASSANDRA", BundleOption: &BundleOptions{}, DataCentres: []DataCentre{ {ID: "test"}, }, }, } data := MockResourceData{ changes: map[string]MockChange{"node_size":...
explode_data.jsonl/3837
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 362 }
[ 2830, 3393, 5404, 28678, 30561, 5049, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 14563, 56584, 515, 197, 197, 18855, 25, 35380, 515, 298, 29580, 25, 1843, 330, 16712, 756, 298, 197, 8409, 929, 25, 256, 330, 2537, 17810, 920, 4939, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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