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 TestUnmarshalInteger(t *testing.T) { input := []byte(`{ "N": "123"}`) var av DynamoDBAttributeValue err := json.Unmarshal(input, &av) assert.Nil(t, err) var i int64 i, err = av.Integer() assert.Nil(t, err) assert.Equal(t, int64(123), i) }
explode_data.jsonl/61699
{ "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, 1806, 27121, 3486, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 3782, 5809, 90, 330, 45, 788, 330, 16, 17, 18, 1, 5541, 692, 2405, 1822, 71813, 3506, 78554, 198, 9859, 1669, 2951, 38097, 5384, 11, 609, 402, 692, 6948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestU32(t *testing.T) { w := newbw(nil) w.WriteUint32(uint32(4)) b := w.Bytes() if b == nil { fmt.Println("Bwriter failed.") t.FailNow() } r := newbr(b) n, ok := r.NextU32() if !ok { fmt.Println("Breader failed.") t.FailNow() } else if n != 4 { fmt.Println("expected 4, got", n) t.FailNow() ...
explode_data.jsonl/22546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 52, 18, 17, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 501, 39824, 27907, 340, 6692, 4073, 21570, 18, 17, 8488, 18, 17, 7, 19, 4390, 2233, 1669, 289, 36868, 741, 743, 293, 621, 2092, 341, 197, 11009, 12419, 445, 33, 181...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServiceCreateInvalidDataYAML(t *testing.T) { tempDir, err := ioutil.TempDir("", "kn-file") defer os.RemoveAll(tempDir) assert.NilError(t, err) tempFile := filepath.Join(tempDir, "invalid.yaml") // Remove dash invalidData := strings.Replace(serviceYAML, "- image", "image", 1) err = ioutil.WriteFile(temp...
explode_data.jsonl/42464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 1860, 4021, 7928, 1043, 56, 31102, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 19095, 14203, 1138, 16867, 2643, 84427, 9758, 6184, 340, 6948, 59678, 1454, 1155, 11, 1848, 340, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResource_Delete(t *testing.T) { type fields struct { update *update query *query insert *insert remove *remove } type args struct { allOrNone bool records []string } tests := []struct { name string fields fields args args want []DeleteValue wantErr bool }{ { name: ...
explode_data.jsonl/64169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1931 }
[ 2830, 3393, 4783, 57418, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 27175, 353, 2386, 198, 197, 27274, 220, 353, 1631, 198, 197, 59847, 353, 4208, 198, 197, 47233, 353, 5399, 198, 197, 532, 13158, 2827, 2036, 341, 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 TestBatchQueryInfo(t *testing.T) { session := createSession(t) defer session.Close() if session.cfg.ProtoVersion == 1 { t.Skip("atomic batches not supported. Please use Cassandra >= 2.0") } if err := createTable(session, "CREATE TABLE gocql_test.batch_query_info (id int, cluster int, value text, PRIMARY K...
explode_data.jsonl/11156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 511 }
[ 2830, 3393, 21074, 2859, 1731, 1155, 353, 8840, 836, 8, 341, 25054, 1669, 1855, 5283, 1155, 340, 16867, 3797, 10421, 2822, 743, 3797, 30481, 7763, 983, 5637, 621, 220, 16, 341, 197, 3244, 57776, 445, 6618, 44792, 537, 7248, 13, 5209, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiError_Append(t *testing.T) { tests := []multiErrorTest{ { name: "append error", setup: func() *MultiError { return NewMultiError() }, test: func(t *testing.T, multiError *MultiError) { assert.Equal(t, 0, len(multiError.Errors())) multiError.Append(errors.New("something broke :("...
explode_data.jsonl/79126
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 20358, 1454, 36117, 408, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 26268, 1454, 2271, 515, 197, 197, 515, 298, 11609, 25, 330, 5090, 1465, 756, 298, 84571, 25, 2915, 368, 353, 20358, 1454, 341, 571, 853, 1532, 20358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZeroScaledWindowReceive(t *testing.T) { // This test ensures that the endpoint sends a non-zero window size // advertisement when the scaled window transitions from 0 to non-zero, // but the actual window (not scaled) hasn't gotten to zero. c := context.New(t, defaultMTU) defer c.Cleanup() // Set the bu...
explode_data.jsonl/75962
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1415 }
[ 2830, 3393, 17999, 94201, 4267, 14742, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 1273, 25351, 429, 279, 14887, 21308, 264, 2477, 36929, 3241, 1379, 198, 197, 322, 32689, 979, 279, 30690, 3241, 33592, 504, 220, 15, 311, 2477, 36929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLock_MonitorRetry(t *testing.T) { t.Parallel() raw, s := makeClient(t) defer s.Stop() // Set up a server that always responds with 500 errors. failer := func(w http.ResponseWriter, req *http.Request) { w.WriteHeader(500) } outage := httptest.NewServer(http.HandlerFunc(failer)) defer outage.Close() ...
explode_data.jsonl/27629
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1117 }
[ 2830, 3393, 11989, 1245, 30314, 51560, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 76559, 11, 274, 1669, 1281, 2959, 1155, 340, 16867, 274, 30213, 2822, 197, 322, 2573, 705, 264, 3538, 429, 2677, 30580, 448, 220, 20, 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...
1
func TestCreateContainerFromTask(t *testing.T) { assert := assert.New(t) require := require.New(t) assert.NoError(db.ClearCollections(task.Collection, model.VersionCollection, distro.Collection, model.ProjectRefCollection, model.ProjectVarsCollection, host.Collection)) t1 := task.Task{ Id: "t1", Displ...
explode_data.jsonl/63020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1009 }
[ 2830, 3393, 4021, 4502, 3830, 6262, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 17957, 1669, 1373, 7121, 1155, 340, 6948, 35699, 9791, 13524, 52730, 17483, 28629, 11, 1614, 35842, 6482, 11, 1582, 299, 28629, 11, 161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigError(t *testing.T) { confFile := configfile(`{}`) os.Remove(confFile) conf := config.NewConfig() err := conf.Load(confFile, logConfPath) AssertThat(t, err.Error(), EqualTo{fmt.Sprintf("browsers config: read error: open %s: no such file or directory", confFile)}) }
explode_data.jsonl/37914
{ "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, 2648, 1454, 1155, 353, 8840, 836, 8, 341, 67850, 1703, 1669, 2193, 1192, 5809, 90, 27085, 25078, 13270, 29879, 1703, 340, 67850, 1669, 2193, 7121, 2648, 741, 9859, 1669, 2335, 13969, 29879, 1703, 11, 1487, 15578, 1820, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdateOAuthUserAttrs(t *testing.T) { th := Setup(t) defer th.TearDown() id := model.NewId() id2 := model.NewId() gitlabProvider := einterfaces.GetOauthProvider("gitlab") username := "user" + id username2 := "user" + id2 email := "user" + id + "@nowhere.com" email2 := "user" + id2 + "@nowhere.com" ...
explode_data.jsonl/31416
{ "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, 4289, 57850, 1474, 53671, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 15710, 1669, 1614, 7121, 764, 741, 15710, 17, 1669, 1614, 7121, 764, 741, 90731, 14380, 5179, 1669, 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, 1...
2
func TestPeerSetAddRemoveOne(t *testing.T) { t.Parallel() peerSet := NewPeerSet() var peerList []Peer for i := 0; i < 5; i++ { p := newMockPeer(net.IP{127, 0, 0, byte(i)}) if err := peerSet.Add(p); err != nil { t.Error(err) } peerList = append(peerList, p) } n := len(peerList) // 1. Test removing f...
explode_data.jsonl/68619
{ "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, 30888, 1649, 2212, 13021, 3966, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 16537, 1649, 1669, 1532, 30888, 1649, 2822, 2405, 14397, 852, 3056, 30888, 198, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 20, 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...
8
func TestStateComp(t *testing.T) { st1 := state.NewState(dbm.NewMemDB()) _, _, err := st1.Update(func(ws state.Updatable) error { return ws.UpdateAccount(acm.NewAccountFromSecret("1")) }) require.NoError(t, err) _, _, err = st1.Update(func(ws state.Updatable) error { return ws.UpdateAccount(acm.NewAccountFromS...
explode_data.jsonl/79288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 297 }
[ 2830, 3393, 1397, 13552, 1155, 353, 8840, 836, 8, 341, 18388, 16, 1669, 1584, 7121, 1397, 9791, 76, 7121, 18816, 3506, 2398, 197, 6878, 8358, 1848, 1669, 357, 16, 16689, 18552, 57786, 1584, 60828, 88831, 8, 1465, 341, 197, 853, 17624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_adapter_FetchArtifacts(t *testing.T) { a, s := getMockAdapter(t, true, true) defer s.Close() var filters = []*model.Filter{} var resources, err = a.FetchArtifacts(filters) assert.NotNil(t, err) assert.Nil(t, resources) }
explode_data.jsonl/38949
{ "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, 43682, 1400, 2995, 9286, 26401, 1155, 353, 8840, 836, 8, 341, 11323, 11, 274, 1669, 633, 11571, 5940, 1155, 11, 830, 11, 830, 340, 16867, 274, 10421, 741, 2405, 13406, 284, 29838, 2528, 31696, 16094, 2405, 4963, 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
func TestGetExtensionDefaults(t *testing.T) { var setFloat64 float64 = 1 var setFloat32 float32 = 2 var setInt32 int32 = 3 var setInt64 int64 = 4 var setUint32 uint32 = 5 var setUint64 uint64 = 6 var setBool = true var setBool2 = false var setString = "Goodnight string" var setBytes = []byte("Goodnight bytes"...
explode_data.jsonl/55064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1964 }
[ 2830, 3393, 1949, 12049, 16273, 1155, 353, 8840, 836, 8, 341, 2405, 738, 5442, 21, 19, 2224, 21, 19, 284, 220, 16, 198, 2405, 738, 5442, 18, 17, 2224, 18, 17, 284, 220, 17, 198, 2405, 738, 1072, 18, 17, 526, 18, 17, 284, 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...
9
func TestEncode(t *testing.T) { testcases := []struct { in Value outSQL string outASCII string }{{ in: NULL, outSQL: "null", outASCII: "null", }, { in: TestValue(Int64, "1"), outSQL: "1", outASCII: "1", }, { in: TestValue(VarChar, "foo"), outSQL: "'foo'", outA...
explode_data.jsonl/30813
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 452 }
[ 2830, 3393, 32535, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 17430, 981, 5162, 198, 197, 13967, 6688, 256, 914, 198, 197, 13967, 56450, 914, 198, 197, 15170, 515, 197, 17430, 25, 981, 1770, 345, 197, 1396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAppWithoutReorderedMiddleware(t *testing.T) { app = nil r := mux.NewRouter() r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {}) n := GetApp() n.UseHandler(r) server := httptest.NewServer(n) defer server.Close() resp, err := http.Get(server.URL) if err != nil { t.Fatal("Expected r...
explode_data.jsonl/51058
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 1949, 2164, 26040, 693, 10544, 24684, 1155, 353, 8840, 836, 8, 341, 28236, 284, 2092, 198, 7000, 1669, 59807, 7121, 9523, 741, 7000, 63623, 35460, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 35248, 9038, 1669, 2126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDatabaseTerminate(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() d, mapCh, _ := newTestDatabase(t, ctrl, Bootstrapped) defer func() { close(mapCh) leaktest.CheckTimeout(t, time.Second)() }() require.NoError(t, d.Open()) require.NoError(t, d.Terminate()) require.Equal(t, errDat...
explode_data.jsonl/46525
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 5988, 62519, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 2698, 11, 2415, 1143, 11, 716, 1669, 501, 2271, 5988, 1155, 11, 23743, 11, 15004, 495, 5677, 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 TestProcess(t *testing.T) { testdataBase := `../../testdata` for idx, spec := range processSpecs { destination := fmt.Sprintf(`/tmp/test-%s.txt`, spec.testDir) p, err := filepath.Abs(filepath.Join(testdataBase, spec.testDir, spec.template)) if err != nil { log.Println(err) } exp, err := filepath.Ab...
explode_data.jsonl/66295
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 489 }
[ 2830, 3393, 7423, 1155, 353, 8840, 836, 8, 341, 18185, 691, 3978, 1669, 1565, 2748, 92425, 3989, 2023, 7187, 11, 1398, 1669, 2088, 1882, 8327, 82, 341, 197, 197, 17997, 1669, 8879, 17305, 31813, 5173, 12697, 11069, 82, 3909, 7808, 1398,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealthHandler(t *testing.T) { req, _ := http.NewRequest("GET", "/_ah/health", nil) res := httptest.NewRecorder() healthCheckHandler(res, req) checkResponseCode(t, http.StatusOK, res.Code) if res.Body.String() != "ok" { t.Error("Health failed to return expected 'ok'") } }
explode_data.jsonl/74556
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 14542, 3050, 1155, 353, 8840, 836, 8, 341, 24395, 11, 716, 1669, 1758, 75274, 445, 3806, 497, 3521, 62, 1466, 14, 12120, 497, 2092, 340, 10202, 1669, 54320, 70334, 7121, 47023, 2822, 197, 12120, 3973, 3050, 4590, 11, 4232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParse_Template(t *testing.T) { s := NewTestStatsd() s.Templates = []string{ "measurement.measurement.host.service", } lines := []string{ "cpu.idle.localhost:1|c", "cpu.busy.host01.myservice:11|c", } for _, line := range lines { err := s.parseStatsdLine(line) if err != nil { t.Errorf("Parsi...
explode_data.jsonl/14371
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 14463, 57917, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 2271, 16635, 67, 741, 1903, 836, 76793, 284, 3056, 917, 515, 197, 197, 1, 81425, 17326, 24359, 17840, 5736, 756, 197, 630, 78390, 1669, 3056, 917, 515, 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...
5
func TestTaskTemplateDisconnectActionTemplates(t *testing.T) { tt := TaskTemplate{ DataPipeTemplates: []DataPipeTemplate{ DataPipeTemplate{ SourceActionName: "Action1", SourceOutputName: "out1", DestActionName: "Action2", DestInputName: "in2", }, }, } err := tt.DisconnectActionTemplat...
explode_data.jsonl/19604
{ "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, 6262, 7275, 60651, 2512, 51195, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 5430, 7275, 515, 197, 40927, 34077, 51195, 25, 3056, 1043, 34077, 7275, 515, 298, 40927, 34077, 7275, 515, 571, 197, 3608, 2512, 675, 25, 330, 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 TestParseCertificateFail(t *testing.T) { var tests = []struct { desc string in string wantErr string wantFatal bool }{ {desc: "SubjectInfoEmpty", in: "testdata/invalid/xf-ext-subject-info-empty.pem", wantErr: "empty SubjectInfoAccess"}, {desc: "RSAParamsNonNULL", in: "testdata/invalid/x...
explode_data.jsonl/68023
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 860 }
[ 2830, 3393, 14463, 33202, 19524, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 41653, 414, 914, 198, 197, 17430, 286, 914, 198, 197, 50780, 7747, 256, 914, 198, 197, 50780, 62396, 1807, 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...
5
func TestLUT(t *testing.T) { src := IMRead("images/gocvlogo.jpg", IMReadColor) if src.Empty() { t.Error("Invalid read of Source Mat in LUT test") } defer src.Close() lut := IMRead("images/lut.png", IMReadColor) if lut.Empty() { t.Error("Invalid read of LUT Mat in LUT test") } defer lut.Close() dst := New...
explode_data.jsonl/81701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 43, 1381, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 6517, 4418, 445, 3642, 4846, 509, 85, 10129, 4819, 497, 6517, 4418, 1636, 340, 743, 2286, 11180, 368, 341, 197, 3244, 6141, 445, 7928, 1349, 315, 8748, 6867, 304, 444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToken_lexIdentifier(t *testing.T) { tests := []struct { Identifier bool input string value string }{ { Identifier: true, input: "a", value: "a", }, { Identifier: true, input: "abc", value: "abc", }, { Identifier: true, input: "abc ", ...
explode_data.jsonl/60002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 610 }
[ 2830, 3393, 3323, 74547, 8714, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 8714, 1807, 198, 197, 22427, 414, 914, 198, 197, 16309, 414, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 8714, 25, 830, 345, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInjectCorrelationContextToHTTPReq(t *testing.T) { propagator := correlation.CorrelationContext{} props := propagation.New(propagation.WithInjectors(propagator)) tests := []struct { name string kvs []label.KeyValue wantInHeader []string wantedLen int }{ { name: "two simple v...
explode_data.jsonl/30216
{ "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, 13738, 10580, 22221, 1972, 1249, 9230, 27234, 1155, 353, 8840, 836, 8, 341, 79244, 351, 850, 1669, 25588, 63560, 22221, 1972, 16094, 77691, 1669, 53643, 7121, 30638, 27137, 26124, 13738, 1087, 30638, 351, 850, 1171, 78216, 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...
4
func TestLinkYaml(t *testing.T) { as := assert.New(t) linkTemplate := projectriff_v1.Link{} opts := options.InitOptions{ FunctionName: "myfunc", Input: "in", UserAccount: "me", Version: "0.0.1", } yaml, err := createLinkYaml(linkTemplate, opts) t.Log(yaml) as.NoError(err) as.Equal(yaml, ...
explode_data.jsonl/50587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 3939, 56, 9467, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 2060, 7121, 1155, 692, 54238, 7275, 1669, 2390, 81, 3092, 2273, 16, 22534, 16094, 64734, 1669, 2606, 26849, 3798, 515, 197, 87522, 675, 25, 330, 2408, 2830, 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...
1
func TestSortedSetIncyby(t *testing.T) { testRaw(t, func(c *client) { c.Do("ZINCRBY", "z", "1.0", "m") c.Do("ZINCRBY", "z", "1.0", "m") c.Do("ZINCRBY", "z", "1.0", "m") c.Do("ZINCRBY", "z", "2.0", "m") c.Do("ZINCRBY", "z", "3", "m2") c.Do("ZINCRBY", "z", "3", "m2") c.Do("ZINCRBY", "z", "3", "m2") // f...
explode_data.jsonl/23350
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 51051, 1649, 641, 11130, 1694, 1155, 353, 8840, 836, 8, 341, 18185, 20015, 1155, 11, 2915, 1337, 353, 2972, 8, 341, 197, 1444, 33596, 445, 57, 687, 8973, 19912, 497, 330, 89, 497, 330, 16, 13, 15, 497, 330, 76, 1138, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInterpreterFStringDollars(t *testing.T) { s, err := parseFile("src/parse/asp/test_data/interpreter/fstrings.build") assert.NoError(t, err) assert.EqualValues(t, "mickey donald ${goofy} {sora}", s.Lookup("z")) }
explode_data.jsonl/81083
{ "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, 58426, 37, 703, 35, 965, 1561, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 4715, 1703, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 6663, 18594, 13239, 1138, 6948, 35699, 1155, 11, 1848, 340, 6948, 12808...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBooleanParsing(t *testing.T) { testCases := []struct { s string b bool }{ {s: "true", b: true}, {s: "'true'", b: true}, {s: "yes", b: true}, {s: "'yes'", b: true}, {s: "'1'", b: true}, {s: "1", b: true}, {s: "no", b: false}, {s: "0", b: false}, } for i, tc := range testCases { msg := ...
explode_data.jsonl/47158
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 6890, 68839, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 1903, 914, 198, 197, 2233, 1807, 198, 197, 59403, 197, 197, 84386, 25, 330, 1866, 497, 293, 25, 830, 1583, 197, 197, 84386, 25, 7178, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartAndShutdown(t *testing.T) { r := &CountingReconciler{} impl := NewImplWithStats(r, TestLogger(t), "Testing", &FakeStatsReporter{}) ctx, cancel := context.WithCancel(context.Background()) doneCh := make(chan struct{}) go func() { defer close(doneCh) StartAll(ctx, impl) }() t.Cleanup(func() { ...
explode_data.jsonl/45285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 3479, 3036, 62004, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 2507, 287, 693, 40446, 5769, 16094, 197, 6383, 1669, 1532, 9673, 2354, 16635, 2601, 11, 3393, 7395, 1155, 701, 330, 16451, 497, 609, 52317, 16635, 52766, 6257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFieldByIndexes(t *testing.T) { type C struct { C0 bool C1 string C2 int C3 map[string]int } type B struct { B1 C B2 *C } type A struct { A1 B A2 *B } testCases := []struct { value interface{} indexes []int expectedValue interface{} readOnly bool }{ { valu...
explode_data.jsonl/59108
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 631 }
[ 2830, 3393, 1877, 1359, 62229, 1155, 353, 8840, 836, 8, 341, 13158, 356, 2036, 341, 197, 6258, 15, 1807, 198, 197, 6258, 16, 914, 198, 197, 6258, 17, 526, 198, 197, 6258, 18, 2415, 14032, 63025, 198, 197, 532, 13158, 425, 2036, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMetricsServiceV2UpdateLogMetricError(t *testing.T) { errCode := codes.Internal mockMetrics.err = grpc.Errorf(errCode, "test error") var formattedMetricName string = MetricsMetricPath("[PROJECT]", "[METRIC]") var metric *loggingpb.LogMetric = &loggingpb.LogMetric{} var request = &loggingpb.UpdateLogMetric...
explode_data.jsonl/77784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 27328, 1860, 53, 17, 4289, 2201, 54310, 1454, 1155, 353, 8840, 836, 8, 341, 9859, 2078, 1669, 13912, 32579, 198, 77333, 27328, 18441, 284, 47900, 13080, 3964, 2078, 11, 330, 1944, 1465, 5130, 2405, 23126, 54310, 675, 914, 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...
3
func TestKafkaClient_decodeKeyAndOffset(t *testing.T) { module := fixtureModule() viper.Set("consumer.test.group-whitelist", "test.*") module.Configure("test", "consumer.test") keyBuf := bytes.NewBuffer([]byte("\x00\x09testgroup\x00\x09testtopic\x00\x00\x00\x0b")) valueBytes := []byte("\x00\x00\x00\x00\x00\x00\x0...
explode_data.jsonl/34271
{ "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, 42, 21883, 2959, 15227, 1592, 3036, 6446, 1155, 353, 8840, 836, 8, 341, 54020, 1669, 12507, 3332, 741, 5195, 12858, 4202, 445, 46764, 5958, 6175, 55332, 57645, 497, 330, 1944, 4908, 1138, 54020, 78281, 445, 1944, 497, 330, 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 TestPing(t *testing.T) { t.Parallel() p := Ping{} // good { msg, err := p.Read(payload.NewReader(id.Write())) assert.Nil(t, err) _, castOK := msg.(Ping) assert.True(t, castOK) assert.Truef(t, id.Equals(msg.(Ping).ID), "Expected equal %v vs %v", id, msg) } // bad { _, err := p.Read(payload.NewR...
explode_data.jsonl/15795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 69883, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1669, 48657, 31483, 197, 322, 1661, 198, 197, 515, 197, 21169, 11, 1848, 1669, 281, 6503, 26772, 68587, 3724, 4073, 12145, 197, 6948, 59678, 1155, 11, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServer_Listen(t *testing.T) { // given s := &Server{ cfg: Config{ BindAddr: "127.0.0.1", Port: 56000, }, } // when _ = s.Start(context.Background()) ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() cc, ccErr := grpc.DialContext(ctx, "127.0.0.1:56000"...
explode_data.jsonl/73180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 5475, 27104, 268, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 1903, 1669, 609, 5475, 515, 197, 50286, 25, 5532, 515, 298, 197, 9950, 13986, 25, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 756, 298, 98459, 25, 257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFilterToken(t *testing.T) { tests := []struct { name string useToken bool }{ { name: "no token", useToken: false, }, { name: "some with token", useToken: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { traces := buildTestTraces(tt.useToken)...
explode_data.jsonl/72154
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 5632, 3323, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 41819, 3323, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 257, 330, 2152, 3950, 756, 298, 41819, 3323, 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 TestEvalTakes(t *testing.T) { var strNode = ArgNode{ value: "a.B", values: strings.Split("a.B", "."), valuesLen: 2, } var m = map[string]interface{}{"a": "B"} var r, _ = EvalTakes(strNode, m) fmt.Println(r) }
explode_data.jsonl/52555
{ "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, 54469, 51, 2050, 1155, 353, 8840, 836, 8, 341, 2405, 607, 1955, 284, 7638, 1955, 515, 197, 16309, 25, 257, 330, 64, 1785, 756, 197, 45939, 25, 262, 9069, 19823, 445, 64, 1785, 497, 5933, 4461, 197, 45939, 11271, 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...
1
func TestParseImageReferences(t *testing.T) { refs := []string{ "gcr.io/library/busybox@sha256:e6693c20186f837fc393390135d8a598a96a833917917789d63766cab6c59582", "gcr.io/library/busybox:1.2", "sha256:e6693c20186f837fc393390135d8a598a96a833917917789d63766cab6c59582", "arbitrary-ref", } expectedTags := []strin...
explode_data.jsonl/8825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 14463, 1906, 31712, 1155, 353, 8840, 836, 8, 341, 197, 16149, 1669, 3056, 917, 515, 197, 197, 59719, 5082, 4245, 45446, 96916, 88, 2011, 31, 15247, 17, 20, 21, 55976, 21, 21, 24, 18, 66, 17, 15, 16, 23, 21, 69, 23, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestJobRunsController_Update_BadInput(t *testing.T) { t.Parallel() ethClient, _, assertMocksCalled := cltest.NewEthMocksWithStartupAssertions(t) defer assertMocksCalled() app, cleanup := cltest.NewApplication(t, ethClient, ) defer cleanup() app.Start() client := app.NewHTTPClient() _, bt := cltest.NewB...
explode_data.jsonl/49855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 12245, 73920, 2051, 47393, 1668, 329, 2505, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 769, 2959, 11, 8358, 2060, 72577, 20960, 1669, 1185, 1944, 7121, 65390, 11571, 16056, 39076, 90206, 1155, 340, 16867, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterpreterBuiltins(t *testing.T) { s, err := parseFile("src/parse/asp/test_data/interpreter/builtins.build") require.NoError(t, err) assert.Equal(t, 1, s.pkg.NumTargets()) assert.NotNil(t, s.pkg.Target("lib")) }
explode_data.jsonl/81061
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 58426, 54300, 1330, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 4715, 1703, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 3470, 11227, 1330, 13239, 1138, 17957, 35699, 1155, 11, 1848, 340, 6948, 12808, 1155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestQueryAutocompleteMissingInput(t *testing.T) { c, _ := NewClient(WithAPIKey(apiKey)) r := &QueryAutocompleteRequest{} _, err := c.QueryAutocomplete(context.Background(), r) if err == nil { t.Errorf("Error expected: maps: Input missing") } if "maps: Input missing" != err.Error() { t.Errorf("Wrong er...
explode_data.jsonl/76298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 2859, 19602, 20104, 25080, 2505, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 1532, 2959, 7, 2354, 7082, 1592, 24827, 1592, 1171, 7000, 1669, 609, 2859, 19602, 20104, 1900, 31483, 197, 6878, 1848, 1669, 272, 15685, 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...
3
func TestLineDirectives(t *testing.T) { for _, test := range []struct { src, msg string filename string line, col uint }{ // test validity of //line directive {`//line :`, "invalid line number: ", "", 1, 8}, {`//line :x`, "invalid line number: x", "", 1, 8}, {`//line foo :`, "invalid line number: ", "...
explode_data.jsonl/24652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 698 }
[ 2830, 3393, 2460, 16027, 1886, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 41144, 11, 3750, 220, 914, 198, 197, 66434, 220, 914, 198, 197, 27109, 11, 1375, 2622, 198, 197, 59403, 197, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestDeauthorizeOAuthApp(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.Client AdminClient := th.SystemAdminClient enableOAuth := th.App.Config().ServiceSettings.EnableOAuthServiceProvider defer func() { th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableOAu...
explode_data.jsonl/30133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 503 }
[ 2830, 3393, 1912, 52022, 57850, 2164, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 197, 7210, 2959, 1669, 270, 16620, 7210, 2959, 271, 197, 1255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportCancelDataResponseRace(t *testing.T) { cancel := make(chan struct{}) clientGotError := make(chan bool, 1) const msg = "Hello." st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { if strings.Contains(r.URL.Path, "/hello") { time.Sleep(50 * time.Millisecond) io.WriteStri...
explode_data.jsonl/16135
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 516 }
[ 2830, 3393, 27560, 9269, 1043, 2582, 55991, 1155, 353, 8840, 836, 8, 341, 84441, 1669, 1281, 35190, 2036, 37790, 25291, 32462, 1454, 1669, 1281, 35190, 1807, 11, 220, 16, 692, 4777, 3750, 284, 330, 9707, 10040, 18388, 1669, 501, 5475, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSet(t *testing.T) { g := &TTY{} if err := json.Unmarshal([]byte(j), g); err != nil { t.Fatalf("load from JSON: got %v, want nil", err) } sets := [][]string{ {"speed", "0"}, {"rows", "72"}, {"cols", "238"}, {"brkint"}, {"~clocal"}, {"cread"}, {"~cstopb"}, {"echo"}, {"echoctl"}, {"echoe...
explode_data.jsonl/73094
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 829 }
[ 2830, 3393, 1649, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 609, 55544, 16094, 743, 1848, 1669, 2951, 38097, 10556, 3782, 3325, 701, 342, 1215, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 1078, 504, 4718, 25, 2684, 1018, 85, 11, 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...
7
func TestYoutubeDLError_mockCommand_Run(t *testing.T) { t.Parallel() tests := []struct { name string cmd mockCommand expectedErr error runBeforeFunc func(mockCommand *mockCommand) }{ { "std1", mockCommand{ stdinData: "stdin1", stdoutData: "stdout1", stderrData: "stde...
explode_data.jsonl/4288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 685 }
[ 2830, 3393, 91667, 35, 94618, 34134, 4062, 84158, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 78216, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 25920, 1843, 7860, 4062, 198, 197, 42400, 7747, 256, 1465, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDefaultValuesNotAllowedWithRequired(t *testing.T) { var args struct { A int `arg:"required" default:"123"` // required not allowed with default! } err := parse("", &args) assert.EqualError(t, err, ".A: 'required' cannot be used when a default value is specified") }
explode_data.jsonl/13082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 3675, 6227, 97634, 2354, 8164, 1155, 353, 8840, 836, 8, 341, 2405, 2827, 2036, 341, 197, 22985, 526, 1565, 858, 2974, 6279, 1, 1638, 2974, 16, 17, 18, 39917, 442, 2567, 537, 5420, 448, 1638, 4894, 197, 630, 9859, 1669, 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 TestBQSerialization(t *testing.T) { for _, tc := range []struct { desc string opts *BoundedQuantilesOptions }{ {"default options", &BoundedQuantilesOptions{ Epsilon: ln3, Lower: 0, Upper: 1, Delta: 0, M...
explode_data.jsonl/80645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 912 }
[ 2830, 3393, 33, 48, 35865, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 41653, 914, 198, 197, 64734, 353, 33, 13082, 44220, 3658, 3798, 198, 197, 59403, 197, 197, 4913, 2258, 2606, 497, 609, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestConsulListRecords(t *testing.T) { consulReset() _, err := cache.ListRecords() cache.ResetRecords(&nanoBoth) _, err2 := cache.ListRecords() if err != nil || err2 != nil { t.Errorf("Failed to list records in consul cacher - %v%v", err, err2) } }
explode_data.jsonl/61013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 15220, 360, 852, 25876, 1155, 353, 8840, 836, 8, 341, 197, 6254, 360, 14828, 741, 197, 6878, 1848, 1669, 6500, 5814, 25876, 741, 52680, 36660, 25876, 2099, 93625, 20629, 340, 197, 6878, 1848, 17, 1669, 6500, 5814, 25876, 741...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoopBackManager_overrideDeviceWithSizeChanging(t *testing.T) { var mockexec = &mocks.GoMockExecutor{} var manager = NewLoopBackManager(mockexec, "", "", logger) // Initialize manager with local default settings manager.updateDevicesFromConfig() assert.Equal(t, defaultNumberOfDevices, len(manager.devices)...
explode_data.jsonl/73568
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 14620, 3707, 2043, 48576, 6985, 2354, 1695, 59046, 1155, 353, 8840, 836, 8, 341, 2405, 7860, 11748, 284, 609, 16712, 82, 67131, 11571, 25255, 16094, 2405, 6645, 284, 1532, 14620, 3707, 2043, 30389, 11748, 11, 7342, 7342, 5925,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQuery_PathRequired(t *testing.T) { for _, cmd := range []string{"read", "range"} { c := StartCapture() exit = func(r int) {} os.Args = []string{ "dosa", "query", cmd, "--scope", "foo", "--namePrefix", "foo", "StrKey:eq:foo", } main() assert.Contains(t, c.stop(true), "--path' was ...
explode_data.jsonl/70149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 2859, 66388, 8164, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 5439, 1669, 2088, 3056, 917, 4913, 878, 497, 330, 9669, 9207, 341, 197, 1444, 1669, 5145, 27429, 741, 197, 14519, 284, 2915, 2601, 526, 8, 5613, 197, 25078, 5101...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseDSN(t *testing.T) { var dsn = "dspo:12345678@(localhost:3307)/dbname" settings, err := pygrator.ParseDSN(dsn) if err != nil { t.Fatal(err) } t.Logf("%+v", settings) }
explode_data.jsonl/72941
{ "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, 14463, 5936, 45, 1155, 353, 8840, 836, 8, 341, 2405, 294, 9613, 284, 330, 67, 82859, 25, 16, 17, 18, 19, 20, 21, 22, 23, 59404, 8301, 25, 18, 18, 15, 22, 5620, 35265, 698, 62930, 11, 1848, 1669, 4510, 901, 850, 8937,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWindowsDesktopService(t *testing.T) { t.Parallel() for _, test := range []struct { desc string mutate func(fc *FileConfig) expectError require.ErrorAssertionFunc }{ { desc: "NOK - invalid static host addr", expectError: require.Error, mutate: func(fc *FileConfig) { f...
explode_data.jsonl/47176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 682 }
[ 2830, 3393, 13164, 23597, 1860, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 41653, 286, 914, 198, 197, 2109, 332, 349, 414, 2915, 77684, 353, 1703, 2648, 340, 197, 24952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSessionReceiver_acceptSessionButAlreadyLocked(t *testing.T) { client, cleanup, queueName := setupLiveTest(t, &admin.QueueProperties{ RequiresSession: to.Ptr(true), }) defer cleanup() ctx := context.Background() receiver, err := client.AcceptSessionForQueue(ctx, queueName, "session-1", nil) require.No...
explode_data.jsonl/70560
{ "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, 5283, 25436, 35728, 5283, 3983, 38370, 49010, 1155, 353, 8840, 836, 8, 341, 25291, 11, 21290, 11, 7177, 675, 1669, 6505, 20324, 2271, 1155, 11, 609, 2882, 50251, 7903, 515, 197, 197, 46961, 5283, 25, 311, 94989, 3715, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRule_Validate(t *testing.T) { if err := (&Rule{}).Validate(); err == nil { t.Errorf("exptected empty name error") } if err := (&Rule{Alert: "alert"}).Validate(); err == nil { t.Errorf("exptected empty expr error") } if err := (&Rule{Alert: "alert", Expr: "test>0"}).Validate(); err != nil { t.Errorf(...
explode_data.jsonl/45653
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 11337, 62, 17926, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 15899, 11337, 6257, 568, 17926, 2129, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 327, 417, 1569, 4287, 829, 1465, 1138, 197, 532, 743, 1848, 1669, 15899, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReaderSuccessReturnsCorrectBodyWithZeroFunctions(t *testing.T) { m := metrics.MetricOptions{} c := &testServiceApiClient{ serviceListServices: []swarm.Service{}, serviceListError: nil, } handler := handlers.MakeFunctionReader(m, c) w := httptest.NewRecorder() r := &http.Request{} handler.ServeHT...
explode_data.jsonl/63779
{ "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, 5062, 7188, 16446, 33092, 5444, 2354, 17999, 25207, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 16734, 1321, 16340, 3798, 16094, 1444, 1669, 609, 1944, 1860, 56584, 515, 197, 52934, 852, 11025, 25, 3056, 2280, 2178, 13860, 38837...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestK8SServiceEnvVarAddsEnvVarsToPod(t *testing.T) { t.Parallel() deployment := renderK8SServiceDeploymentWithSetValues( t, map[string]string{ "envVars.DB_HOST": "mysql.default.svc.cluster.local", "envVars.DB_PORT": "3306", }, ) // Verify that there is only one container and that the environments...
explode_data.jsonl/59753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 42, 23, 1220, 1017, 14359, 3962, 72111, 14359, 28305, 1249, 23527, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 82213, 1669, 3141, 42, 23, 1220, 1017, 75286, 2354, 1649, 6227, 1006, 197, 3244, 345, 197, 19567,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetConfigFromFlagsSetsImage(t *testing.T) { d, err := getTestDriver() if assert.NoError(t, err) { assert.Equal(t, "MY_TEST_IMAGE", d.deviceConfig.Image) } }
explode_data.jsonl/37427
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 1649, 2648, 3830, 9195, 30175, 1906, 1155, 353, 8840, 836, 8, 341, 2698, 11, 1848, 1669, 633, 2271, 11349, 2822, 743, 2060, 35699, 1155, 11, 1848, 8, 341, 197, 6948, 12808, 1155, 11, 330, 19159, 11641, 19121, 497, 294, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewService(t *testing.T) { cluster := &clusterv1.Cluster{ ObjectMeta: metav1.ObjectMeta{Name: "test-cluster"}, } client := fake.NewFakeClientWithScheme(scheme.Scheme, cluster) s, err := scope.NewClusterScope(context.Background(), scope.ClusterScopeParams{ AzureClients: scope.AzureClients{ Authorizer...
explode_data.jsonl/17830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 485 }
[ 2830, 3393, 3564, 1860, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 609, 564, 590, 648, 16, 72883, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 63121, 25, 330, 1944, 93208, 7115, 197, 532, 25291, 1669, 12418, 7121, 52317, 2959, 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 TestJetStream_UnsubscribeDeleteNoPermissions(t *testing.T) { conf := createConfFile(t, []byte(` listen: 127.0.0.1:-1 jetstream: {max_mem_store: 64GB, max_file_store: 10TB} no_auth_user: guest accounts: { JS: { # User should not be able to delete consumer. jetstream: enabled users: [ {user: gu...
explode_data.jsonl/29177
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 654 }
[ 2830, 3393, 35641, 3027, 40687, 9384, 6435, 2753, 23851, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 1855, 15578, 1703, 1155, 11, 3056, 3782, 61528, 197, 14440, 268, 25, 220, 16, 17, 22, 13, 15, 13, 15, 13, 16, 10944, 16, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPRRejectUnmarshalJSON(t *testing.T) { policyJSONUmarshallerTests{ newDest: func() json.Unmarshaler { return &prReject{} }, newValidObject: func() (interface{}, error) { return NewPRReject(), nil }, otherJSONParser: func(validJSON []byte) (interface{}, error) { return newPolicyRequirementFromJSON...
explode_data.jsonl/36501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 6480, 78413, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 3223, 8018, 5370, 52, 52541, 18200, 515, 197, 8638, 34830, 25, 2915, 368, 2951, 38097, 261, 314, 470, 609, 649, 78413, 6257, 1153, 197, 8638, 4088, 1190, 25, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestActiveFailedConnectionAttemptIncrement(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() stats := c.Stack().Stats() ep, err := c.Stack().NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &c.WQ) if err != nil { t.Fatalf("NewEndpoint failed: %s", err) } c.EP = ep want := stats.TCP.F...
explode_data.jsonl/75919
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 361 }
[ 2830, 3393, 5728, 9408, 4526, 47052, 38311, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 79659, 1669, 272, 58646, 1005, 16635, 741, 96626, 11, 1848, 1669, 272, 58646,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEncoder(t *testing.T) { for _, p := range pairs { bb := &bytes.Buffer{} encoder := NewEncoder(StdEncoding, bb) encoder.Write([]byte(p.decoded)) encoder.Close() testEqual(t, "Encode(%q) = %q, want %q", p.decoded, bb.String(), p.encoded) } }
explode_data.jsonl/35050
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 19921, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 281, 1669, 2088, 13530, 341, 197, 2233, 65, 1669, 609, 9651, 22622, 16094, 197, 197, 27008, 1669, 1532, 19921, 7, 22748, 14690, 11, 16520, 340, 197, 197, 27008, 4073, 10556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServiceInspect(t *testing.T) { expectedURL := "/services/service_id" client := &Client{ client: newMockClient(func(req *http.Request) (*http.Response, error) { if !strings.HasPrefix(req.URL.Path, expectedURL) { return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL) } conte...
explode_data.jsonl/82218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 1860, 58533, 1155, 353, 8840, 836, 8, 341, 42400, 3144, 1669, 3521, 12779, 34186, 842, 698, 25291, 1669, 609, 2959, 515, 197, 25291, 25, 501, 11571, 2959, 18552, 6881, 353, 1254, 9659, 8, 4609, 1254, 12574, 11, 1465, 8, 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...
3
func TestEventChannel_OutputFormat(t *testing.T) { toGzip := func(payload string) []byte { var buf bytes.Buffer zw := gzip.NewWriter(&buf) if _, err := zw.Write([]byte(payload)); err != nil { assert.Fail(t, err.Error()) } if err := zw.Close(); err != nil { assert.Fail(t, err.Error()) } return bu...
explode_data.jsonl/43922
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 1556, 9629, 65062, 4061, 1155, 353, 8840, 836, 8, 1476, 31709, 38, 9964, 1669, 2915, 26772, 914, 8, 3056, 3782, 341, 197, 2405, 6607, 5820, 22622, 198, 197, 20832, 86, 1669, 57795, 7121, 6492, 2099, 5909, 692, 197, 743, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_Hoverfly_SetModeWithArguments_CanSetModeToModify(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) Expect(unit.SetModeWithArguments( v2.ModeView{ Mode: "modify", })).To(BeNil()) Expect(unit.Cfg.Mode).To(Equal("modify")) }
explode_data.jsonl/45397
{ "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, 2039, 1975, 21642, 14812, 3636, 2354, 19139, 920, 276, 1649, 3636, 1249, 44427, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 35911, 24144, 4202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrorsPostWhenEmptyBody(t *testing.T) { r := NewRouter() bh := &bodyHandler{} bh.handle = func(Context) error { assert.FailNow(t, "called Handle") return nil } r.Post("/", func(Context) (Handler, error) { return bh, nil }) rec := httptest.NewRecorder() req := httptest.NewRequest("POST", "/", n...
explode_data.jsonl/18960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 13877, 4133, 4498, 3522, 5444, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 9523, 2822, 2233, 71, 1669, 609, 2599, 3050, 16094, 2233, 71, 10132, 284, 2915, 14001, 8, 1465, 341, 197, 6948, 57243, 7039, 1155, 11, 330, 438...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetryPolicyIsNotRetriable(t *testing.T) { theErr := fatalError{s: "it's dead Jim"} srv, close := mock.NewServer() defer close() srv.AppendResponse(mock.WithStatusCode(http.StatusRequestTimeout)) srv.AppendError(theErr) pl := NewPipeline(srv, NewRetryPolicy(testRetryOptions())) req, err := NewRequest(con...
explode_data.jsonl/24386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 51560, 13825, 3872, 2623, 12020, 461, 480, 1155, 353, 8840, 836, 8, 341, 32088, 7747, 1669, 57863, 84386, 25, 330, 275, 594, 5593, 11387, 16707, 1903, 10553, 11, 3265, 1669, 7860, 7121, 5475, 741, 16867, 3265, 741, 1903, 105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStruct_Basic(t *testing.T) { testItem := newPerson() // Pass by value - not ok err := Scrub(testItem, []string{}) assert.Error(t, err) // Pass by reference - ok err = Scrub(&testItem, []string{}) assert.NoError(t, err) assert.NoError(t, err) assert.Equal(t, int32(0), testItem.Height) assert.NotNi...
explode_data.jsonl/9422
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 295 }
[ 2830, 3393, 9422, 1668, 5971, 1155, 353, 8840, 836, 8, 1476, 18185, 1234, 1669, 501, 10680, 2822, 197, 322, 9970, 553, 897, 481, 537, 5394, 198, 9859, 1669, 32134, 392, 8623, 1234, 11, 3056, 917, 37790, 6948, 6141, 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...
1
func TestFindFitSomeError(t *testing.T) { predicates := map[string]algorithmpredicates.FitPredicate{"true": truePredicate, "matches": matchesPredicate} nodes := makeNodeList([]string{"3", "2", "1"}) scheduler := makeScheduler(predicates, nodes) pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "1", UID: types.UID...
explode_data.jsonl/6746
{ "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, 9885, 23346, 8373, 1454, 1155, 353, 8840, 836, 8, 341, 3223, 1151, 24821, 1669, 2415, 14032, 60, 278, 6063, 1307, 1151, 24821, 991, 275, 36329, 4913, 1866, 788, 830, 36329, 11, 330, 19914, 788, 9071, 36329, 532, 79756, 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...
4
func TestStream_writeRTValue(t *testing.T) { t.Run("test write failed", func(t *testing.T) { assert := base.NewAssert(t) testRange := getTestRange(streamPosBody, 3*streamBlockSize, 80, 80, 61) for _, testData := range streamTestWriteCollections["rtValue"] { for _, i := range testRange { testRuntime.thread...
explode_data.jsonl/21215
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 602 }
[ 2830, 3393, 3027, 9165, 5350, 1130, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 3270, 4641, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6948, 1669, 2331, 7121, 8534, 1155, 340, 197, 18185, 6046, 1669, 633, 2271, 6046, 2057...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidate(t *testing.T) { testCases := []struct { name string version Version err string }{{ name: "empty", version: Version(""), err: `invalid schema version "": Invalid Semantic Version`, }, { name: "invalid", version: Version("not-semver"), err: `invalid schema versi...
explode_data.jsonl/75540
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 17926, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 74954, 6079, 198, 197, 9859, 257, 914, 198, 197, 15170, 515, 197, 11609, 25, 262, 330, 3194, 756, 197, 74954, 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...
2
func TestSocketConfig(t *testing.T) { createParser := func() func(string) (proto.Message, error) { return func(s string) (proto.Message, error) { config := new(SocketConfig) if err := json.Unmarshal([]byte(s), config); err != nil { return nil, err } return config.Build() } } runMultiTestCase(t, ...
explode_data.jsonl/15413
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 10286, 2648, 1155, 353, 8840, 836, 8, 341, 39263, 6570, 1669, 2915, 368, 2915, 3609, 8, 320, 15110, 8472, 11, 1465, 8, 341, 197, 853, 2915, 1141, 914, 8, 320, 15110, 8472, 11, 1465, 8, 341, 298, 25873, 1669, 501, 73066, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContentLengthZero(t *testing.T) { ts := httptest.NewServer(HandlerFunc(func(rw ResponseWriter, req *Request) {})) defer ts.Close() for _, version := range []string{"HTTP/1.0", "HTTP/1.1"} { conn, err := net.Dial("tcp", ts.Listener.Addr().String()) if err != nil { t.Fatalf("error dialing: %v", err) ...
explode_data.jsonl/22451
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 2762, 4373, 17999, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 7, 3050, 9626, 18552, 2601, 86, 5949, 6492, 11, 4232, 353, 1900, 8, 4687, 1171, 16867, 10591, 10421, 2822, 2023, 8358, 2319, 1669, 2088,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCleanup007(t *testing.T) { var inWord string var got, want string inWord = `` want = `` got = cleanupWord(inWord) if got != want { t.Errorf("cleanupWord(inWord) == %q, want %q", got, want) } }
explode_data.jsonl/59192
{ "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, 67335, 15, 15, 22, 1155, 353, 8840, 836, 8, 341, 2405, 304, 10879, 914, 198, 2405, 2684, 11, 1366, 914, 271, 17430, 10879, 284, 1565, 3989, 50780, 284, 1565, 3989, 3174, 354, 284, 21290, 10879, 5900, 10879, 692, 743, 2684,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPostStoreGetSingle(t *testing.T) { Setup() o1 := &model.Post{} o1.ChannelId = model.NewId() o1.UserId = model.NewId() o1.Message = "zz" + model.NewId() + "b" o1 = (<-store.Post().Save(o1)).Data.(*model.Post) if r1 := <-store.Post().GetSingle(o1.Id); r1.Err != nil { t.Fatal(r1.Err) } else { if r1...
explode_data.jsonl/55939
{ "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, 4133, 6093, 1949, 10888, 1155, 353, 8840, 836, 8, 341, 197, 21821, 2822, 22229, 16, 1669, 609, 2528, 23442, 16094, 22229, 16, 38716, 764, 284, 1614, 7121, 764, 741, 22229, 16, 37478, 284, 1614, 7121, 764, 741, 22229, 16, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSigReleaseMasterBlockingOrInformingJobsShouldUseFastBuilds(t *testing.T) { jobs := allStaticJobs() for _, job := range jobs { dashboards, ok := job.Annotations["testgrid-dashboards"] if !ok || !strings.Contains(dashboards, "sig-release-master-blocking") || !strings.Contains(dashboards, "sig-release-maste...
explode_data.jsonl/55589
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 47246, 16077, 18041, 48266, 2195, 37891, 287, 40667, 14996, 10253, 32174, 11066, 82, 1155, 353, 8840, 836, 8, 341, 12428, 5481, 1669, 678, 11690, 40667, 741, 2023, 8358, 2618, 1669, 2088, 6887, 341, 197, 2698, 988, 19270, 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...
8
func TestCreateVolume(t *testing.T) { testCases := []struct { name string testFunc func(t *testing.T) }{ { name: "valid request", testFunc: func(t *testing.T) { d, err := NewFakeDriver(t) require.NoError(t, err) stdCapacityRangetest := &csi.CapacityRange{ RequiredBytes: pkg.GiBToBytes...
explode_data.jsonl/49369
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 504 }
[ 2830, 3393, 4021, 18902, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 18185, 9626, 2915, 1155, 353, 8840, 836, 340, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 1891, 1681, 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 TestRMIDComparison(t *testing.T) { a := "rmid1:0d77c-b0b2e66aece-00000000-00000001" b := "rmid1:0d77c-b0b2e66aece-00000000-00000002" rmidA, err := ReplicationGroupMessageIDFromString(a) if err != nil { t.Error(err) } if rmidA == nil { t.Error("Expected non nil RMID, got nil") } rmidB, err := Replicatio...
explode_data.jsonl/72226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 23652, 915, 33487, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 330, 8719, 307, 16, 25, 15, 67, 22, 22, 66, 1455, 15, 65, 17, 68, 21, 21, 5918, 346, 12, 15, 15, 15, 15, 15, 15, 15, 15, 12, 15, 15, 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...
9
func TestTrie_VisitReturnError(t *testing.T) { trie := NewTrie() data := []testData{ {"Pepa", 0, success}, {"Pepa Zdepa", 1, success}, {"Pepa Kuchar", 2, success}, {"Honza", 3, success}, {"Jenik", 4, success}, } for _, v := range data { t.Logf("INSERT prefix=%v, item=%v, success=%v", v.key, v.value, v...
explode_data.jsonl/2365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 51, 7231, 2334, 285, 275, 5598, 1454, 1155, 353, 8840, 836, 8, 341, 197, 8927, 1669, 1532, 51, 7231, 2822, 8924, 1669, 3056, 1944, 1043, 515, 197, 197, 4913, 47, 747, 64, 497, 220, 15, 11, 2393, 1583, 197, 197, 4913, 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 TestPipeline(t *testing.T) { tests := []struct { name string steps []pipeline.PipelineStep data []map[string]interface{} }{ { name: "Empty", steps: []pipeline.PipelineStep{}, data: []map[string]interface{}{}, }, { name: "SingleButEmpty", steps: []pipeline.PipelineStep{ pipelin...
explode_data.jsonl/29442
{ "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, 34656, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 18388, 7124, 3056, 51258, 1069, 8790, 8304, 198, 197, 8924, 220, 3056, 2186, 14032, 31344, 16094, 197, 59403, 197, 197, 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
func TestBreakerTripping(t *testing.T) { cb := NewBreaker() if cb.Tripped() { t.Fatal("expected breaker to not be tripped") } cb.Trip() if !cb.Tripped() { t.Fatal("expected breaker to be tripped") } cb.Reset() if cb.Tripped() { t.Fatal("expected breaker to have been reset") } }
explode_data.jsonl/60793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 22524, 261, 21884, 10732, 1155, 353, 8840, 836, 8, 341, 63810, 1669, 1532, 22524, 261, 2822, 743, 9858, 836, 461, 6924, 368, 341, 197, 3244, 26133, 445, 7325, 66767, 311, 537, 387, 2406, 6924, 1138, 197, 630, 63810, 836, 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...
4
func TestAddManyAgents(t *testing.T) { count := 1000 for i := 0; i < count; i ++ { agentList, err := agents.SharedAgentList() if err != nil { t.Fatal(err) } agent := agents.NewAgentConfig() agent.On = false agent.Name = "Web" + fmt.Sprintf("%d", i) agent.Host = "192.168.0." + fmt.Sprintf("%d", i) ...
explode_data.jsonl/32405
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 2212, 8441, 91804, 1155, 353, 8840, 836, 8, 341, 18032, 1669, 220, 16, 15, 15, 15, 198, 2023, 600, 1669, 220, 15, 26, 600, 366, 1760, 26, 600, 3443, 341, 197, 197, 8092, 852, 11, 1848, 1669, 13009, 32969, 16810, 852, 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...
5
func TestStruct(t *testing.T) { type str struct { IntVal int `json:"int"` StrVal string `json:"str"` FloatVal float64 `json:"float"` BoolVal bool `json:"bool"` private string } var s str m := Map{"int": 4, "str": "now's the time", "float": 3.14159, "bool": true, "private": "Somewhere over th...
explode_data.jsonl/59168
{ "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, 9422, 1155, 353, 8840, 836, 8, 341, 13158, 607, 2036, 341, 197, 57152, 2208, 256, 526, 257, 1565, 2236, 2974, 396, 8805, 197, 197, 2580, 2208, 256, 914, 220, 1565, 2236, 2974, 495, 8805, 197, 197, 5442, 2208, 2224, 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, 1...
2
func TestGetFileContentTypeKO(t *testing.T) { file := `../testdata/files/test.txt` _, err := GetFileContentType(file) if err == nil { t.Log("Error -> ", err) t.Fail() } t.Log(err) }
explode_data.jsonl/24004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 1949, 1703, 29504, 54947, 1155, 353, 8840, 836, 8, 341, 17661, 1669, 1565, 1244, 92425, 33220, 12697, 3909, 3989, 197, 6878, 1848, 1669, 2126, 1703, 29504, 4866, 692, 743, 1848, 621, 2092, 341, 197, 3244, 5247, 445, 1454, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestURLString(t *testing.T) { for _, tt := range urltests { u, err := Parse(tt.in) if err != nil { t.Errorf("Parse(%q) returned error %s", tt.in, err) continue } expected := tt.in if tt.roundtrip != "" { expected = tt.roundtrip } s := u.String() if s != expected { t.Errorf("Parse(%q).S...
explode_data.jsonl/71720
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 3144, 703, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 2515, 23841, 341, 197, 10676, 11, 1848, 1669, 14775, 47152, 1858, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 13080, 445, 14463, 15238, 80, 8, 592...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageCommandArgumentsWithArguments(t *testing.T) { message := tgbotapi.Message{Text: "/command with arguments"} message.Entities = &[]tgbotapi.MessageEntity{{Type: "bot_command", Offset: 0, Length: 8}} if message.CommandArguments() != "with arguments" { t.Fail() } }
explode_data.jsonl/25803
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 2052, 4062, 19139, 2354, 19139, 1155, 353, 8840, 836, 8, 341, 24753, 1669, 53188, 6331, 2068, 8472, 90, 1178, 25, 3521, 5631, 448, 5977, 16707, 24753, 23793, 284, 609, 1294, 41428, 6331, 2068, 8472, 3030, 2979, 929, 25, 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 TestValidateIdentityRemappingPrefix(t *testing.T) { for _, s := range []string{ "localhost", "example.com", "example.com:80", "example.com/repo", "example.com/ns1/ns2/ns3/repo.with.dots-dashes_underscores", "example.com:80/ns1/ns2/ns3/repo.with.dots-dashes_underscores", // NOTE: These values are inv...
explode_data.jsonl/36521
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 17926, 18558, 6590, 3629, 14335, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 274, 1669, 2088, 3056, 917, 515, 197, 197, 1, 8301, 756, 197, 197, 1, 8687, 905, 756, 197, 197, 1, 8687, 905, 25, 23, 15, 756, 197, 197, 1, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGC_TrackDeletedManifests(t *testing.T) { require.NoError(t, testutil.TruncateAllTables(suite.db)) // disable other triggers that also insert on gc_blob_review_queue so that they don't interfere with this test enable, err := testutil.GCTrackConfigurationBlobsTrigger.Disable(suite.db) require.NoError(t, err...
explode_data.jsonl/48564
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 656 }
[ 2830, 3393, 22863, 21038, 473, 26039, 38495, 82, 1155, 353, 8840, 836, 8, 341, 17957, 35699, 1155, 11, 1273, 1314, 8240, 26900, 2403, 21670, 89516, 7076, 4390, 197, 322, 11156, 1008, 30754, 429, 1083, 5656, 389, 22122, 45908, 38661, 10841...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewResource(t *testing.T) { r, err := NewResource(resType, resName, resGroup, resVersion, resKind, resNsd) if err != nil { t.Fatalf("failed creating new resource: %v", err) } if n := r.Name(); n != resName { t.Errorf("expected name: %s, got: %s", resName, n) } if g := r.Group(); g != resGroup { t...
explode_data.jsonl/38888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 3564, 4783, 1155, 353, 8840, 836, 8, 341, 7000, 11, 1848, 1669, 1532, 4783, 4590, 929, 11, 592, 675, 11, 592, 2808, 11, 592, 5637, 11, 592, 10629, 11, 592, 45, 13446, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 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...
7
func TestHamming(t *testing.T) { for _, row := range hamming_testdata { res := Hamming(row[0], row[1]) expected, err := strconv.Atoi(row[2]) if err != nil { t.Error("bad row in test data") } if res != expected { t.Errorf("Hamming(%q, %q) => %d, expected %d", row[0], row[1], res, expected) } } }
explode_data.jsonl/58064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 39941, 5311, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2802, 1669, 2088, 13515, 5311, 4452, 691, 341, 197, 10202, 1669, 9582, 5311, 7835, 58, 15, 1125, 2802, 58, 16, 2546, 197, 42400, 11, 1848, 1669, 33317, 67107, 7835, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCapability_CompatibleWithNetCap(t *testing.T) { assert := assert.New(t) // sanity checks bcast := NewCapabilities(nil, nil) orch := NewCapabilities(nil, nil) assert.Nil(bcast.bitstring) assert.Nil(orch.bitstring) assert.True(bcast.CompatibleWith(orch.ToNetCapabilities())) assert.True(orch.CompatibleWi...
explode_data.jsonl/74080
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 699 }
[ 2830, 3393, 63746, 16946, 37079, 2354, 6954, 12903, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 197, 322, 46842, 12341, 198, 2233, 3829, 1669, 1532, 55315, 27907, 11, 2092, 340, 197, 21584, 1669, 1532, 55315, 27907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewHeader(t *testing.T) { user := mspmocks.NewMockSigningIdentity("test", "1234") ctx := mocks.NewMockContext(user) creator, err := ctx.Serialize() require.NoError(t, err) txh, err := NewHeader(ctx, testChannel) require.NoError(t, err) require.NotEmptyf(t, txh.nonce, "Expecting nonce") require.Equal(...
explode_data.jsonl/26394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 3564, 4047, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 296, 2154, 16712, 82, 7121, 11571, 93358, 18558, 445, 1944, 497, 330, 16, 17, 18, 19, 1138, 20985, 1669, 68909, 7121, 11571, 1972, 4277, 692, 197, 32398, 11, 1848, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestColocationPuzzleInfoCanonicalDigest(t *testing.T) { puzzle := ColocationPuzzleInfo{ Goal: []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}, Rounds: 123, StartOffset: 456, StartRange: 789, } h := sha512.New384() puzzle.canonicalDigest(h) digest := h.Sum(nil) expected := ...
explode_data.jsonl/45222
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 6127, 2276, 47, 14945, 1731, 70914, 45217, 1155, 353, 8840, 836, 8, 341, 3223, 14945, 1669, 4254, 2276, 47, 14945, 1731, 515, 197, 9600, 78, 278, 25, 286, 3056, 3782, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 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 TestSecureCancelHandshake(t *testing.T) { // t.Skip("Skipping in favor of another test") ctx, cancel := context.WithCancel(context.Background()) c1, c2, p1, p2 := setupSingleConn(t, ctx) done := make(chan error) go secureHandshake(t, ctx, p1.PrivKey, c1, done) <-time.After(time.Millisecond) cancel() // ca...
explode_data.jsonl/62879
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 49813, 9269, 2314, 29661, 1155, 353, 8840, 836, 8, 341, 197, 322, 259, 57776, 445, 85945, 304, 4694, 315, 2441, 1273, 5130, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 1444, 16, 11, 272, 17, 11, 281, 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 TestFetchIntoObjectPool_CollectLogStatistics(t *testing.T) { cfg, repo, _ := testcfg.BuildWithRepo(t) testcfg.BuildGitalyHooks(t, cfg) locator := config.NewLocator(cfg) logger, hook := test.NewNullLogger() serverSocketPath := runObjectPoolServer(t, cfg, locator, logger) conn, err := grpc.Dial(serverSocke...
explode_data.jsonl/62526
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 561 }
[ 2830, 3393, 20714, 26591, 1190, 10551, 920, 24605, 2201, 38599, 1155, 353, 8840, 836, 8, 341, 50286, 11, 15867, 11, 716, 1669, 1273, 14072, 25212, 2354, 25243, 1155, 692, 18185, 14072, 25212, 38, 2174, 88, 67769, 1155, 11, 13286, 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...
1
func TestGetDeployment(t *testing.T) { testCases := []*deployTestData{ defaultDeployTestData, { testName: "Bad Environment", spaceName: "mySpace", appName: "myApp", envName: "doesNotExist", cassetteName: "getdeployment", shouldFail: true, }, { // Verifies that a newer sc...
explode_data.jsonl/41272
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2196 }
[ 2830, 3393, 1949, 75286, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 29838, 35794, 83920, 515, 197, 11940, 69464, 83920, 345, 197, 197, 515, 298, 18185, 675, 25, 257, 330, 17082, 11586, 756, 298, 1903, 1306, 675, 25, 262, 330, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestScrapeLoopAppendGracefullyIfAmendOrOutOfOrderOrOutOfBounds(t *testing.T) { app := &errorAppender{} sl := newScrapeLoop(context.Background(), nil, nil, nil, nopMutator, nopMutator, func() storage.Appender { return app }, nil, 0, true, ) now := time.Unix(1, 0) total, added, seriesAdded, er...
explode_data.jsonl/56134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 3326, 19842, 14620, 23877, 86543, 3641, 2679, 6091, 408, 2195, 31731, 4431, 2195, 61349, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 609, 841, 2164, 1659, 31483, 78626, 1669, 501, 3326, 19842, 14620, 5378, 19047, 3148, 197, 841...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapProxy_PutIfAbsentWithNilValue(t *testing.T) { _, err := mp.PutIfAbsent("test", nil) AssertErrorNotNil(t, err, "putIfAbsent did not return an error for nil value") mp.Clear() }
explode_data.jsonl/57012
{ "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, 2227, 16219, 1088, 332, 2679, 80251, 2354, 19064, 1130, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10490, 39825, 2679, 80251, 445, 1944, 497, 2092, 340, 18017, 1454, 96144, 1155, 11, 1848, 11, 330, 628, 2679, 80251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1