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 TestArm64Compiler_readInstructionAddress(t *testing.T) { env := newCompilerEnvironment() compiler := env.requireNewCompiler(t, newArm64Compiler, nil).(*arm64Compiler) err := compiler.compilePreamble() require.NoError(t, err) // Set the acquisition target instruction to the one after RET, // and read the ab...
explode_data.jsonl/79910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 32913, 21, 19, 38406, 6443, 16664, 4286, 1155, 353, 8840, 836, 8, 341, 57538, 1669, 501, 38406, 12723, 741, 197, 33620, 1669, 6105, 23712, 3564, 38406, 1155, 11, 501, 32913, 21, 19, 38406, 11, 2092, 568, 4071, 2178, 21, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInterfaceGet(t *testing.T) { var inter struct { E interface{} } inter.E = 123.456 v1 := ValueOf(&inter) v2 := v1.Elem().Field(0) assert(t, v2.Type().String(), "interface {}") i2 := v2.Interface() v3 := ValueOf(i2) assert(t, v3.Type().String(), "float64") }
explode_data.jsonl/29529
{ "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, 5051, 1949, 1155, 353, 8840, 836, 8, 341, 2405, 946, 2036, 341, 197, 22784, 3749, 16094, 197, 532, 58915, 5142, 284, 220, 16, 17, 18, 13, 19, 20, 21, 198, 5195, 16, 1669, 5162, 2124, 2099, 2245, 340, 5195, 17, 1669, 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 TestNewROM(t *testing.T) { contents := sampleROM() gotR, err := NewROM("", contents) if err != nil { t.Fatal(err) } // check: if gotR.Header.NativeVectors.NMI != 0x80c9 { t.Fatal("NativeVectors.NMI") } }
explode_data.jsonl/69474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 3564, 3361, 1155, 353, 8840, 836, 8, 341, 197, 17610, 1669, 6077, 3361, 741, 3174, 354, 49, 11, 1848, 1669, 1532, 3361, 19814, 8794, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 197, 322, 1779, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAppendToLower(t *testing.T) { tests := []string{ "", "A", "a", "__segment_internal", "someFieldWithALongBName", "Hello World!", "Hello\"World!", "Hello\\World!", "Hello\nWorld!", "Hello\rWorld!", "Hello\tWorld!", "Hello\bWorld!", "Hello\fWorld!", "你好", "<", ">", "&", "\u001...
explode_data.jsonl/54776
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 23877, 55620, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 917, 515, 197, 197, 39680, 197, 197, 29133, 756, 197, 197, 56693, 756, 197, 197, 1, 563, 23169, 23472, 756, 197, 197, 1, 14689, 1877, 2354, 969, 644, 33, 675...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigTxContext_GetClusterConfig(t *testing.T) { cryptoDir := testutils.GenerateTestClientCrypto(t, []string{"admin", "server"}) testServer, nodePort, peerPort, err := SetupTestServer(t, cryptoDir) defer func() { if testServer != nil { _ = testServer.Stop() } }() require.NoError(t, err) StartTestS...
explode_data.jsonl/65325
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 899 }
[ 2830, 3393, 2648, 31584, 1972, 13614, 28678, 2648, 1155, 353, 8840, 836, 8, 341, 1444, 9444, 6184, 1669, 1273, 6031, 57582, 2271, 2959, 58288, 1155, 11, 3056, 917, 4913, 2882, 497, 330, 4030, 23625, 18185, 5475, 11, 2436, 7084, 11, 1439...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNilMap(t *testing.T) { var m map[string]int mv := ValueOf(m) keys := mv.MapKeys() if len(keys) != 0 { t.Errorf(">0 keys for nil map: %v", keys) } // Check that value for missing key is zero. x := mv.MapIndex(ValueOf("hello")) if x.Kind() != Invalid { t.Errorf("m.MapIndex(\"hello\") for nil map = %...
explode_data.jsonl/29548
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 19064, 2227, 1155, 353, 8840, 836, 8, 341, 2405, 296, 2415, 14032, 63025, 198, 64791, 1669, 5162, 2124, 1255, 340, 80112, 1669, 23164, 10104, 8850, 741, 743, 2422, 36131, 8, 961, 220, 15, 341, 197, 3244, 13080, 63853, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestPeerConnection_satisfyTypeAndDirection(t *testing.T) { createTransceiver := func(kind RTPCodecType, direction RTPTransceiverDirection) *RTPTransceiver { return &RTPTransceiver{Mid: newTransceiverMid, kind: kind, Direction: direction} } for _, test := range []struct { name string kinds []RTPCode...
explode_data.jsonl/37349
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1204 }
[ 2830, 3393, 30888, 4526, 643, 7478, 88, 929, 3036, 9268, 1155, 353, 8840, 836, 8, 341, 39263, 3167, 12862, 1669, 2915, 62697, 85627, 36913, 929, 11, 5106, 85627, 3167, 12862, 9268, 8, 353, 49, 4239, 3167, 12862, 341, 197, 853, 609, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRemoveVolume(t *testing.T) { volName1 := "vol2" driverName1 := "fake_driver12" volid1 := types.VolumeContext{Name: volName1, Driver: driverName1} dir, err := ioutil.TempDir("", "TestGetVolume") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) core, err := createVolumeCore(dir) if err != nil ...
explode_data.jsonl/51634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 408 }
[ 2830, 3393, 13021, 18902, 1155, 353, 8840, 836, 8, 341, 5195, 337, 675, 16, 1669, 330, 12536, 17, 698, 33652, 675, 16, 1669, 330, 30570, 20602, 16, 17, 698, 5195, 5192, 16, 1669, 4494, 79106, 1972, 63121, 25, 4400, 675, 16, 11, 1457...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFloat64SetScore(t *testing.T) { z := NewFloat64() v := randString("") s := rand.Float64() z.Add(s, v) as, ok := z.Score(v) assert.True(t, ok) assert.Equal(t, s, as) _, ok = z.Score("no-such-" + v) assert.False(t, ok) }
explode_data.jsonl/24988
{ "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, 5442, 21, 19, 1649, 10570, 1155, 353, 8840, 836, 8, 341, 20832, 1669, 1532, 5442, 21, 19, 741, 5195, 1669, 10382, 703, 31764, 1903, 1669, 10382, 29794, 21, 19, 741, 20832, 1904, 1141, 11, 348, 340, 60451, 11, 5394, 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 TestRunner_Run_Integer(t *testing.T) { t.Parallel() testCases := []struct { name string template string constraint string }{ { name: "structural v1beta1 templates", template: templateV1Beta1Integer, constraint: constraintV1Beta1Integer, }, { name: "non-structural v...
explode_data.jsonl/56703
{ "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, 19486, 84158, 80318, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 22832, 256, 914, 198, 197, 37203, 4655, 914, 198, 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...
4
func TestParseMultipleTransfers(t *testing.T) { script := `0500bca06501145a936d7abbaae28579dd36609f910f9b50de972f147bee835ff211327677c453d5f19b693e70a361ab53c1087472616e7366657267b6155db85e53298f01e0280cc2f21a0f40c4e808f10400e1f505147e548ecd2a87dd58731e6171752b1aa11494c62f147bee835ff211327677c453d5f19b693e70a361ab53c1...
explode_data.jsonl/28984
{ "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, 14463, 32089, 3167, 49793, 1155, 353, 8840, 836, 8, 341, 86956, 1669, 1565, 15, 20, 15, 15, 65, 924, 15, 21, 20, 15, 16, 16, 19, 20, 64, 24, 18, 21, 67, 22, 370, 4645, 5918, 17, 23, 20, 22, 24, 631, 18, 21, 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...
4
func TestGetLabels(t *testing.T) { type args struct { storageName string componentName string applicationName string additional bool } tests := []struct { name string args args want map[string]string }{ { name: "Case 1: Everything filled", args: args{ storageName: "storagena...
explode_data.jsonl/47039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 823 }
[ 2830, 3393, 1949, 23674, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 16172, 675, 257, 914, 198, 197, 52228, 675, 256, 914, 198, 197, 197, 5132, 675, 914, 198, 197, 12718, 3005, 414, 1807, 198, 197, 532, 78216, 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...
2
func TestInfo(t *testing.T) { for i, c := range GetClients() { // status, err := c.Status() // require.Nil(t, err, "%+v", err) info, err := c.ABCIInfo() require.Nil(t, err, "%d: %+v", i, err) // TODO: this is not correct - fix merkleeyes! // assert.EqualValues(t, status.SyncInfo.LatestBlockHeight, info.Res...
explode_data.jsonl/48941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 1731, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 272, 1669, 2088, 2126, 47174, 368, 341, 197, 197, 322, 2639, 11, 1848, 1669, 272, 10538, 741, 197, 197, 322, 1373, 59678, 1155, 11, 1848, 11, 5962, 10, 85, 497, 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...
2
func TestValidate_NoCircularFragmentSpreads_DoubleSpreadWithinAbstractTypes(t *testing.T) { testutil.ExpectPassesRule(t, graphql.NoFragmentCyclesRule, ` fragment nameFragment on Pet { ... on Dog { name } ... on Cat { name } } fragment spreadsInAnon on Pet { ... on Dog { ...na...
explode_data.jsonl/30367
{ "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, 17926, 36989, 82440, 9488, 6406, 30358, 84390, 46486, 41961, 15949, 4173, 1155, 353, 8840, 836, 8, 341, 18185, 1314, 81893, 12187, 288, 11337, 1155, 11, 48865, 16766, 9488, 34, 15805, 11337, 11, 22074, 414, 12289, 829, 9488, 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 TestTypeSystem_InputObjectFieldsMustHaveInputTypes_AcceptsAnInputTypeAsInputFieldType(t *testing.T) { for _, ttype := range inputTypes { _, err := schemaWithInputFieldOfType(ttype) if err != nil { t.Fatalf(`unexpected error: %v for type "%v"`, err, ttype) } } }
explode_data.jsonl/79186
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 929, 2320, 48653, 1190, 8941, 31776, 12116, 2505, 4173, 1566, 66, 57771, 2082, 2505, 929, 2121, 2505, 63733, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 259, 1313, 1669, 2088, 1946, 4173, 341, 197, 197, 6878, 1848, 1669, 10802...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJsonTagOmitempty(t *testing.T) { type X struct { A int `json:",omitempty"` B int `json:"C,omitempty"` } expected := `{ "swagger.X": { "id": "swagger.X", "properties": { "A": { "type": "integer", "description": "", "format": "int32" }, "C": { "type": "integer", ...
explode_data.jsonl/39925
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 5014, 5668, 63488, 19918, 1155, 353, 8840, 836, 8, 341, 13158, 1599, 2036, 341, 197, 22985, 526, 1565, 2236, 12147, 19967, 8805, 197, 12791, 526, 1565, 2236, 2974, 34, 20478, 8805, 197, 630, 42400, 1669, 1565, 515, 220, 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 TestIPv6JoinLeaveSolicitedNodeAddressPerformsMLD(t *testing.T) { const nicID = 1 c := newMLDTestContext() defer c.cleanup() s := c.s e := channel.New(1, header.IPv6MinimumMTU, "") defer e.Close() if err := s.CreateNIC(nicID, e); err != nil { t.Fatalf("CreateNIC(%d, _): %s", nicID, err) } // The stack...
explode_data.jsonl/60334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 612 }
[ 2830, 3393, 58056, 21, 12292, 21833, 50, 91104, 1955, 4286, 3889, 9807, 2668, 35, 1155, 353, 8840, 836, 8, 341, 4777, 17327, 915, 284, 220, 16, 271, 1444, 1669, 501, 2668, 35, 2271, 1972, 741, 16867, 272, 87689, 741, 1903, 1669, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnalyticsModulesAuthenticate(t *testing.T) { logger, err := zap.NewDevelopment() require.NoError(t, err, "failed to get logger") testParam := analyticsModuleTestEnvCreate(t, logger) testFullRADIUSSessiontWithAnalyticsModulesAuthenticate(t, logger, testParam) analyticsModuleTestEnvDestroy(testParam) }
explode_data.jsonl/59964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 60539, 28201, 99087, 1155, 353, 8840, 836, 8, 341, 17060, 11, 1848, 1669, 32978, 7121, 39419, 741, 17957, 35699, 1155, 11, 1848, 11, 330, 16091, 311, 633, 5925, 1138, 18185, 2001, 1669, 27875, 3332, 2271, 14359, 4021, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestKosarajuSharirSCC(t *testing.T) { var d *Digraph var scc *KosarajuSharirSCC // Expected number of vertices for each strongly // connected component. var expSCCElems [5]int = [5]int{1, 5, 4, 2, 1} d = makeDigraph() scc = NewKosarajuSharirSCC(d) scc.Compute() sccToV := make(map[int][]int) for v := ra...
explode_data.jsonl/66017
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 42, 436, 277, 51413, 42215, 404, 3540, 34, 1155, 353, 8840, 836, 8, 341, 2405, 294, 353, 37098, 1935, 198, 2405, 274, 638, 353, 42, 436, 277, 51413, 42215, 404, 3540, 34, 198, 197, 322, 31021, 1372, 315, 17228, 369, 1817...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintCoinChangeCombination(t *testing.T) { var tests = []struct { coins []int amount int expect string }{ {[]int{1, 2, 5}, 11, "[5 5 1]"}, {[]int{2}, 3, "[]"}, {[]int{7, 2, 3, 6}, 13, "[6 7]"}, {[]int{3, 2, 4}, 6, "[3 3]"}, } for _, test := range tests { _, R := coinChange(test.coins, tes...
explode_data.jsonl/25384
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 8994, 41180, 4072, 36192, 2554, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 197, 29609, 220, 3056, 396, 198, 197, 197, 6045, 526, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 90, 1294, 396, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNeedsHealthCheck(t *testing.T) { checkNeedsHealthCheck := func(needsHealthCheck bool, service *v1.Service) { res := NeedsHealthCheck(service) if res != needsHealthCheck { t.Errorf("Expected needs health check = %v, got %v", needsHealthCheck, res) } } checkNeedsHealthCheck(false, &v1.Service{ ...
explode_data.jsonl/23294
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 493 }
[ 2830, 3393, 65064, 14542, 3973, 1155, 353, 8840, 836, 8, 341, 25157, 65064, 14542, 3973, 1669, 2915, 48405, 6767, 14542, 3973, 1807, 11, 2473, 353, 85, 16, 13860, 8, 341, 197, 10202, 1669, 43140, 14542, 3973, 21656, 340, 197, 743, 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...
2
func TestReconcileServiceInstanceWithSecretParameters(t *testing.T) { fakeKubeClient, fakeCatalogClient, fakeClusterServiceBrokerClient, testController, sharedInformers := newTestController(t, fakeosb.FakeClientConfiguration{ ProvisionReaction: &fakeosb.ProvisionReaction{ Response: &osb.ProvisionResponse{}, }, ...
explode_data.jsonl/58183
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1377 }
[ 2830, 3393, 693, 40446, 457, 1860, 2523, 2354, 19773, 9706, 1155, 353, 8840, 836, 8, 341, 1166, 726, 42, 3760, 2959, 11, 12418, 41606, 2959, 11, 12418, 28678, 1860, 65545, 2959, 11, 1273, 2051, 11, 6094, 37891, 388, 1669, 501, 2271, 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 TestFileMkdir(t *testing.T) { dir, _ := filepath.Abs(filepath.Dir(os.Args[0])) eng := New() err := eng.Execute(`$file.mkdir('` + dir + `/test/test1');`) if err != nil { t.Error(err) } if !fileExists(dir + "/test/test1") { t.Error("Directory does not exist: ", dir) } defer os.RemoveAll(dir + "/test/te...
explode_data.jsonl/36291
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 1703, 44, 12438, 1155, 353, 8840, 836, 8, 341, 48532, 11, 716, 1669, 26054, 33255, 34793, 83757, 9638, 51015, 58, 15, 10907, 197, 826, 1669, 1532, 741, 9859, 1669, 2922, 13827, 5809, 3, 1192, 30163, 492, 63, 488, 5419, 488...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGCSManifests(t *testing.T) { tests := []struct { description string kubectl latestV1.KubectlDeploy commands util.Command shouldErr bool skipRender bool }{ { description: "manifest from GCS", kubectl: latestV1.KubectlDeploy{ Manifests: []string{"gs://dev/deployment.yaml"}, }...
explode_data.jsonl/52882
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 684 }
[ 2830, 3393, 38, 6412, 38495, 82, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 16463, 53380, 257, 5535, 53, 16, 11352, 53380, 69464, 198, 197, 197, 24270, 262, 4094, 12714, 198, 197, 197, 5445,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestsOnlyLocalTraffic(t *testing.T) { checkRequestsOnlyLocalTraffic := func(requestsOnlyLocalTraffic bool, service *v1.Service) { res := RequestsOnlyLocalTraffic(service) if res != requestsOnlyLocalTraffic { t.Errorf("Expected requests OnlyLocal traffic = %v, got %v", requestsOnlyLocalTraffic, r...
explode_data.jsonl/23293
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 588 }
[ 2830, 3393, 35295, 7308, 7319, 87229, 1155, 353, 8840, 836, 8, 341, 25157, 35295, 7308, 7319, 87229, 1669, 2915, 4875, 82, 7308, 7319, 87229, 1807, 11, 2473, 353, 85, 16, 13860, 8, 341, 197, 10202, 1669, 50882, 7308, 7319, 87229, 21656,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUninitialisedPRNG(t *testing.T) { if sc := NewSourceChannel(nil, 3); sc != nil { fmt.Fprintln(os.Stderr, "tunafish: new source should fail for uninitialised PRNG") t.FailNow() } if sw := NewSourceWriter(nil, 3); sw != nil { fmt.Fprintln(os.Stderr, "tunafish: new source should fail for uninitialised P...
explode_data.jsonl/67460
{ "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, 1806, 9426, 4056, 6480, 6140, 1155, 353, 8840, 836, 8, 341, 743, 1136, 1669, 1532, 3608, 9629, 27907, 11, 220, 18, 1215, 1136, 961, 2092, 341, 197, 11009, 991, 33655, 9638, 77319, 11, 330, 83, 359, 2577, 812, 25, 501, 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...
5
func TestSchemaParser_Scalar(t *testing.T) { body := `scalar Hello` astDoc := parse(t, body) expected := ast.NewDocument(&ast.Document{ Loc: testLoc(0, 12), Definitions: []ast.Node{ ast.NewScalarDefinition(&ast.ScalarDefinition{ Loc: testLoc(0, 12), Name: ast.NewName(&ast.Name{ Value: "Hello", ...
explode_data.jsonl/73880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 8632, 6570, 1098, 59153, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 1565, 35342, 21927, 3989, 88836, 9550, 1669, 4715, 1155, 11, 2487, 340, 42400, 1669, 11763, 7121, 7524, 2099, 559, 26256, 515, 197, 197, 9152, 25, 1273, 915...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReversiAnz25(t *testing.T) { r := NewReversiAnz() r.SetOwnAvg(1.1) if r.GetOwnAvg() != 1.1 { t.Errorf("NG") } }
explode_data.jsonl/23048
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 693, 3004, 72, 2082, 89, 17, 20, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 7000, 4202, 14182, 39447, 7, 16, 13, 16, 340, 743, 435, 2234, 14182, 39447, 368, 961, 220, 16, 13, 16, 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 ]
2
func TestValidateFrom_Failure(t *testing.T) { tests := []struct { name string tasks []PipelineTask }{{ name: "invalid pipeline task - from in a pipeline with single pipeline task", tasks: []PipelineTask{{ Name: "foo", TaskRef: &TaskRef{Name: "foo-task"}, Resources: &PipelineTaskResources{ Inp...
explode_data.jsonl/26528
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1151 }
[ 2830, 3393, 17926, 3830, 1400, 9373, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 3244, 4604, 3056, 34656, 6262, 198, 197, 15170, 515, 197, 11609, 25, 330, 11808, 15301, 3383, 481, 504, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAPIReposGitCommits(t *testing.T) { defer prepareTestEnv(t)() user := models.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User) // Login as User2. session := loginUser(t, user.Name) token := getTokenForLoggedInUser(t, session) //check invalid requests for GetCommitsBySHA req := NewRequestf(t...
explode_data.jsonl/2217
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 788 }
[ 2830, 3393, 7082, 693, 966, 46562, 17977, 1199, 1155, 353, 8840, 836, 8, 341, 16867, 10549, 2271, 14359, 1155, 8, 741, 19060, 1669, 4119, 11711, 15575, 3036, 5879, 10437, 1155, 11, 609, 6507, 7344, 90, 915, 25, 220, 17, 16630, 4071, 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 TestValidatePorts(t *testing.T) { defer utilfeaturetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SCTPSupport, true)() successCase := []core.ContainerPort{ {Name: "abc", ContainerPort: 80, HostPort: 80, Protocol: "TCP"}, {Name: "easy", ContainerPort: 82, Protocol: "TCP"}, {Nam...
explode_data.jsonl/1011
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1287 }
[ 2830, 3393, 17926, 68273, 1155, 353, 8840, 836, 8, 341, 16867, 4094, 12753, 8840, 4202, 13859, 42318, 16014, 2271, 1155, 11, 4094, 12753, 13275, 13859, 42318, 11, 4419, 808, 1162, 5012, 2800, 11, 830, 8, 741, 30553, 4207, 1669, 3056, 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...
9
func TestUnmarshalArrayThatContainsInteger(t *testing.T) { data := `a:3:{s:4:"name";s:2:"tw";s:3:"age";i:123;s:4:"wife";a:1:{s:1:"x";s:1:"y";}}` var result map[interface{}]interface{} err := phpserialize.Unmarshal([]byte(data), &result) expectErrorToNotHaveOccurred(t, err) expected := map[interface{}]interface{}{...
explode_data.jsonl/27032
{ "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, 1806, 27121, 1857, 4792, 23805, 3486, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 1565, 64, 25, 18, 12547, 82, 25, 19, 2974, 606, 5123, 82, 25, 17, 2974, 15560, 5123, 82, 25, 18, 2974, 424, 5123, 72, 25, 16, 17, 18, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAdd(t *testing.T) { dictionary := Dictionary{} t.Run("new word", func(t *testing.T) { err := dictionary.Add("test", "this is just a test") assert.Equal(t, err, nil) }) t.Run("existing word", func(t *testing.T) { err := dictionary.Add("test", "this is just a test") assert.NotEqual(t, err, nil) })...
explode_data.jsonl/54103
{ "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, 2212, 1155, 353, 8840, 836, 8, 341, 2698, 3916, 1669, 10466, 31483, 3244, 16708, 445, 931, 3409, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 9859, 1669, 10997, 1904, 445, 1944, 497, 330, 574, 374, 1101, 264, 1273, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServerResumption(t *testing.T) { sessionFilePath := tempFile("") defer os.Remove(sessionFilePath) testIssue := &serverTest{ name: "IssueTicket", command: []string{"openssl", "s_client", "-cipher", "AES128-SHA", "-ciphersuites", "TLS_AES_128_GCM_SHA256", "-sess_out", sessionFilePath}, wait: true...
explode_data.jsonl/36345
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 5475, 1061, 60574, 1155, 353, 8840, 836, 8, 341, 25054, 19090, 1669, 2730, 1703, 31764, 16867, 2643, 13270, 16264, 19090, 692, 18185, 42006, 1669, 609, 4030, 2271, 515, 197, 11609, 25, 262, 330, 42006, 34058, 756, 197, 45566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerLogsSuccess(t *testing.T) { composeMock, docker, _ := getComposeMocks() composeMock.On("Ps", mock.Anything, mock.Anything, mock.Anything).Return([]api.ContainerSummary{{ID: "test", Name: "test"}}, nil) composeMock.On("Logs", mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil) err ...
explode_data.jsonl/50542
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 35, 13659, 51053, 7188, 1155, 353, 8840, 836, 8, 341, 32810, 2900, 11571, 11, 26588, 11, 716, 1669, 633, 70492, 72577, 741, 32810, 2900, 11571, 8071, 445, 20420, 497, 7860, 13311, 1596, 11, 7860, 13311, 1596, 11, 7860, 13311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSchemaParser_SimpleType(t *testing.T) { body := ` type Hello { world: String }` astDoc := parse(t, body) expected := ast.NewDocument(&ast.Document{ Loc: testLoc(1, 31), Definitions: []ast.Node{ ast.NewObjectDefinition(&ast.ObjectDefinition{ Loc: testLoc(1, 31), Name: ast.NewName(&ast.Name{...
explode_data.jsonl/73866
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 521 }
[ 2830, 3393, 8632, 6570, 1098, 6456, 929, 1155, 353, 8840, 836, 8, 1476, 35402, 1669, 22074, 1313, 21927, 341, 220, 1879, 25, 923, 198, 31257, 88836, 9550, 1669, 4715, 1155, 11, 2487, 340, 42400, 1669, 11763, 7121, 7524, 2099, 559, 26256...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCmdAddInvalidK8sArgsKeyword(t *testing.T) { defer resetGlobalTestVariables() k8Args = "K8S_POD_NAMESPACE_InvalidKeyword=istio-system" cniConf := fmt.Sprintf(conf, currentVersion, ifname, sandboxDirectory, "mock") args := testSetArgs(cniConf) err := CmdAdd(args) if err != nil { if !strings.Contains(e...
explode_data.jsonl/17800
{ "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, 15613, 2212, 7928, 42, 23, 82, 4117, 34481, 1155, 353, 8840, 836, 8, 341, 16867, 7585, 11646, 2271, 22678, 2822, 16463, 23, 4117, 284, 330, 42, 23, 50, 1088, 2069, 34552, 62, 7928, 34481, 28, 380, 815, 36648, 1837, 1444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterMatchMostLongestFilter(t *testing.T) { p, err := graphite.NewParser([]string{ "*.* .wrong.measurement*", "servers.* .wrong.measurement*", "servers.localhost .wrong.measurement*", "servers.localhost.cpu .host.resource.measurement*", // should match this "*.localhost .wrong.measurement*", }, ni...
explode_data.jsonl/32184
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 5632, 8331, 13319, 6583, 477, 5632, 1155, 353, 8840, 836, 8, 341, 3223, 11, 1848, 1669, 94173, 7121, 6570, 10556, 917, 515, 197, 197, 61593, 4908, 659, 34870, 17326, 24359, 9, 756, 197, 197, 40787, 18729, 4908, 659, 34870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLog_GlobalLogger_redirection(t *testing.T) { defer SaveGlobalLogger()() SetLogLevel(insolar.InfoLevel) originalG := GlobalLogger() var buf bytes.Buffer newGL, err := GlobalLogger().Copy().WithOutput(&buf).WithBuffer(10, false).Build() require.NoError(t, err) SetGlobalLogger(newGL) newCopyLL, err :=...
explode_data.jsonl/40292
{ "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, 2201, 93132, 7395, 26058, 2866, 1155, 353, 8840, 836, 8, 341, 16867, 10255, 11646, 7395, 368, 2822, 22212, 72676, 56337, 7417, 20132, 4449, 692, 197, 9889, 38, 1669, 7962, 7395, 2822, 2405, 6607, 5820, 22622, 198, 8638, 3825, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPodSpecWithEssentials(t *testing.T) { defer func() { os.Unsetenv(pxutil.EnvKeyPortworxEssentials) os.Unsetenv(pxutil.EnvKeyMarketplaceName) }() fakeClient := fakek8sclient.NewSimpleClientset() coreops.SetInstance(coreops.New(fakeClient)) fakeClient.Discovery().(*fakediscovery.FakeDiscovery).FakedServe...
explode_data.jsonl/55451
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1970 }
[ 2830, 3393, 23527, 8327, 2354, 37438, 8476, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 25078, 10616, 746, 3160, 81661, 1314, 81214, 1592, 7084, 49710, 12606, 778, 8476, 340, 197, 25078, 10616, 746, 3160, 81661, 1314, 81214,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLeafTxnClientRejectError(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) // We're going to inject an error so that a leaf txn is "poisoned". This can // happen, for example, if the leaf is used concurrently by multiple requests, // where the first one gets a TransactionAbortedEr...
explode_data.jsonl/76912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 658 }
[ 2830, 3393, 31461, 31584, 77, 2959, 78413, 1454, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 692, 197, 322, 1205, 2299, 2087, 311, 15551, 458, 1465, 773, 429, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateSpans(t *testing.T) { random := rand.Reader count1 := 16 spans, nextPos, err := GenerateSpans(count1, 0, "testdata/generated_pict_pairs_spans.txt", random) assert.Nil(t, err) assert.Equal(t, count1, len(spans)) count2 := 256 spans, nextPos, err = GenerateSpans(count2, nextPos, "testdata/generate...
explode_data.jsonl/34133
{ "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, 31115, 6406, 596, 1155, 353, 8840, 836, 8, 341, 83628, 1669, 10382, 47431, 198, 18032, 16, 1669, 220, 16, 21, 198, 41378, 596, 11, 1790, 4859, 11, 1848, 1669, 19813, 6406, 596, 11512, 16, 11, 220, 15, 11, 330, 92425, 793...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSliceMaxFunc(t *testing.T) { tests := []struct { name string input []int want int }{ { name: "case", input: []int{1, 2, 1, 5}, want: 5, }, { name: "case", input: []int{-1, -2, -1, -5}, want: -1, }, { name: "case", input: []int{10, 2, 1, 5}, want: 10, }, ...
explode_data.jsonl/55754
{ "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, 33236, 5974, 9626, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 22427, 3056, 396, 198, 197, 50780, 220, 526, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 220, 330, 5638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportDoubleCloseOnWriteError(t *testing.T) { var ( mu sync.Mutex conn net.Conn // to close if set ) st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { mu.Lock() defer mu.Unlock() if conn != nil { conn.Close() } }, optOnlyServer, ) defer st.Close() tr...
explode_data.jsonl/16110
{ "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, 27560, 7378, 7925, 1925, 7985, 1454, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 2109, 84, 256, 12811, 99014, 198, 197, 32917, 4179, 50422, 442, 311, 3265, 421, 738, 198, 197, 692, 18388, 1669, 501, 5475, 58699, 1155, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMessageDao_ListByUserIdAndUserSeq(t *testing.T) { messages, err := MessageDao.ListBySeq("message", 1, 1, 1, 0) fmt.Println(err) bytes, _ := json.Marshal(messages) fmt.Println(string(bytes)) }
explode_data.jsonl/25905
{ "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, 2052, 12197, 27104, 1359, 13504, 3036, 1474, 20183, 1155, 353, 8840, 836, 8, 341, 2109, 3737, 11, 1848, 1669, 4856, 12197, 5814, 1359, 20183, 445, 1994, 497, 220, 16, 11, 220, 16, 11, 220, 16, 11, 220, 15, 340, 11009, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func Test_getInstallationCRModificationFunc(t *testing.T) { newInstallationCR := func() *v1alpha1.Installation { return &v1alpha1.Installation{ ObjectMeta: v1.ObjectMeta{ Name: "kyma-installation", Namespace: "default", }, Spec: v1alpha1.InstallationSpec{}, } } t.Run("should create modifi...
explode_data.jsonl/73956
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 484 }
[ 2830, 3393, 3062, 55453, 8973, 80795, 9626, 1155, 353, 8840, 836, 8, 1476, 8638, 55453, 8973, 1669, 2915, 368, 353, 85, 16, 7141, 16, 71207, 541, 367, 341, 197, 853, 609, 85, 16, 7141, 16, 71207, 541, 367, 515, 298, 23816, 12175, 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 TestLeaveTeam(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() th.CheckCommand(t, "team", "remove", th.BasicTeam.Name, th.BasicUser.Email) profiles := th.Client.Must(th.Client.GetUsersInTeam(th.BasicTeam.Id, 0, 1000, "")).([]*model.User) found := false for _, user := range profiles { if u...
explode_data.jsonl/59041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 21833, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 70479, 10600, 4062, 1155, 11, 330, 9196, 497, 330, 5399, 497, 270, 48868, 14597, 2967, 11, 270, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetMostRecentlyAddedDevice(t *testing.T) { lsblkOutput := `{ "blockdevices": [ {"name": "loop0", "fstype": "squashfs", "label": null, "uuid": null, "mountpoint": "/snap/core/8935"}, {"name": "loop1", "fstype": "squashfs", "label": null, "uuid": null, "mountpoint": "/snap/amazon-ssm-agent/1566"}, {"name...
explode_data.jsonl/6759
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 534 }
[ 2830, 3393, 1949, 13319, 45137, 19337, 6985, 1155, 353, 8840, 836, 8, 341, 197, 4730, 34989, 5097, 1669, 1565, 515, 197, 1, 4574, 46966, 788, 2278, 197, 197, 4913, 606, 788, 330, 10498, 15, 497, 330, 49494, 499, 788, 330, 97407, 988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGRPCSplit(t *testing.T) { t.Parallel() clients := test.Setup(t) const suffixBlue = "- blue" blueName, bluePort, cancel := CreateGRPCService(t, clients, suffixBlue) defer cancel() const suffixGreen = "- green" greenName, greenPort, cancel := CreateGRPCService(t, clients, suffixGreen) defer cancel() ...
explode_data.jsonl/51348
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 915 }
[ 2830, 3393, 8626, 4872, 20193, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 31869, 1669, 1273, 39820, 1155, 692, 4777, 20525, 10331, 284, 6523, 6303, 698, 197, 12203, 675, 11, 6303, 7084, 11, 9121, 1669, 4230, 8626, 4872, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLookupHashString(t *testing.T) { lookuphash := createLookup(t, "lookup_hash", false) lookuphashunique := createLookup(t, "lookup_hash_unique", false) if strings.Compare("lookup_hash", lookuphash.String()) != 0 { t.Errorf("String(): %s, want lookup_hash", lookuphash.String()) } if strings.Compare("looku...
explode_data.jsonl/3415
{ "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, 34247, 6370, 703, 1155, 353, 8840, 836, 8, 341, 197, 21020, 8296, 1669, 1855, 34247, 1155, 11, 330, 21020, 8950, 497, 895, 340, 197, 21020, 8296, 9587, 1669, 1855, 34247, 1155, 11, 330, 21020, 8950, 21218, 497, 895, 692, 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 TestHostQueueDrainOnClose(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mockConnPool := NewMockconnectionPool(ctrl) opts := newHostQueueTestOptions() queue := newTestHostQueue(opts) queue.connPool = mockConnPool // Open mockConnPool.EXPECT().Open() queue.Open() assert.Equal(t, st...
explode_data.jsonl/54468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 774 }
[ 2830, 3393, 9296, 7554, 8847, 466, 1925, 7925, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 77333, 9701, 10551, 1669, 1532, 11571, 7742, 10551, 62100, 692, 64734, 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 TestNonStringKeys(t *testing.T) { _, err := loadYAML(` version: "3" 123: foo: image: busybox `) assert.Error(t, err) assert.Contains(t, err.Error(), "Non-string key at top level: 123") _, err = loadYAML(` version: "3" services: foo: image: busybox 123: image: busybox `) assert.Error(t, err)...
explode_data.jsonl/16381
{ "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, 8121, 703, 8850, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2795, 56, 31102, 61528, 4366, 25, 330, 18, 698, 16, 17, 18, 510, 220, 15229, 510, 262, 2168, 25, 13028, 2011, 198, 24183, 6948, 6141, 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 TestSwitchJumpOutOfReturn(t *testing.T) { const SCRIPT = ` function f(x) { switch(x) { case 0: break; default: return x; } } f(0); ` testScript1(SCRIPT, _undefined, t) }
explode_data.jsonl/75301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 16837, 33979, 31731, 5598, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 7527, 282, 2075, 8, 341, 197, 8961, 2075, 8, 341, 197, 2722, 220, 15, 510, 298, 3388, 280, 197, 11940, 510, 298, 853, 856, 280, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewEntityWithPreferredHash(t *testing.T) { c := &packet.Config{ DefaultHash: crypto.SHA256, } entity, err := NewEntity("Golang Gopher", "Test Key", "no-reply@golang.com", c) if err != nil { t.Fatal(err) } for _, identity := range entity.Identities { if len(identity.SelfSignature.PreferredHash) == ...
explode_data.jsonl/14742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 3564, 3030, 2354, 22482, 6370, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 24829, 10753, 515, 197, 91084, 6370, 25, 19028, 808, 17020, 17, 20, 21, 345, 197, 532, 52987, 11, 1848, 1669, 1532, 3030, 445, 38, 37287, 479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetup(t *testing.T) { cfg := config.GetConfig() cfg.LoadConfig("../../testdata/configtest.json") bConfig, err := cfg.GetExchangeConfig("BTC Markets") if err != nil { t.Error("Test Failed - BTC Markets Setup() init error") } bConfig.APIKey = apiKey bConfig.APISecret = apiSecret bConfig.AuthenticatedAP...
explode_data.jsonl/48985
{ "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, 21821, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 2193, 2234, 2648, 741, 50286, 13969, 2648, 36800, 92425, 14730, 1944, 4323, 1138, 2233, 2648, 11, 1848, 1669, 13286, 2234, 31564, 2648, 445, 59118, 46810, 1138, 743, 1848, 961,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTranslateIngressV1beta1NoBackend(t *testing.T) { prefix := networkingv1beta1.PathTypePrefix // no backend. ing := &networkingv1beta1.Ingress{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "default", }, Spec: networkingv1beta1.IngressSpec{ Rules: []networkingv1beta1.IngressRule{...
explode_data.jsonl/6701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 490 }
[ 2830, 3393, 27473, 641, 2483, 53, 16, 19127, 16, 2753, 29699, 1155, 353, 8840, 836, 8, 341, 3223, 5060, 1669, 28030, 85, 16, 19127, 16, 17474, 929, 14335, 198, 197, 322, 902, 19163, 624, 197, 287, 1669, 609, 17511, 287, 85, 16, 1912...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMergeTopLevelExtensions(t *testing.T) { base := map[string]interface{}{ "x-foo": "foo", "x-bar": map[string]interface{}{ "base": map[string]interface{}{}, }, } override := map[string]interface{}{ "x-bar": map[string]interface{}{ "base": "qix", }, "x-zot": "zot", } configDetails := types....
explode_data.jsonl/59639
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 410 }
[ 2830, 3393, 52096, 5366, 4449, 31282, 1155, 353, 8840, 836, 8, 341, 24195, 1669, 2415, 14032, 31344, 67066, 197, 197, 65438, 12, 7975, 788, 330, 7975, 756, 197, 197, 65438, 15773, 788, 2415, 14032, 31344, 67066, 298, 197, 1, 3152, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeyAuthSetKeys(t *testing.T) { assert := assert.New(t) var schema map[string]interface{} err := json.Unmarshal([]byte(KeyAuthSchema), &schema) assert.Nil(err) config := make(kong.Configuration) config["key_in_body"] = true def := make(kong.Configuration) err = json.Unmarshal([]byte(KeyAuthDefaultCon...
explode_data.jsonl/79411
{ "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, 1592, 5087, 1649, 8850, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2405, 10802, 2415, 14032, 31344, 16094, 9859, 1669, 2951, 38097, 10556, 3782, 21358, 5087, 8632, 701, 609, 17349, 340, 6948, 59678, 3964,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKafkaClient_decodeAndSendGroupMetadata_Errors(t *testing.T) { module := fixtureModule() module.Configure("test", "consumer.test") for _, value := range decodeAndSendGroupMetadataErrors { // Should not timeout module.decodeAndSendGroupMetadata(1, "testgroup", bytes.NewBuffer(value), zap.NewNop()) } }
explode_data.jsonl/34277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 42, 21883, 2959, 15227, 3036, 11505, 2808, 14610, 93623, 1087, 1155, 353, 8840, 836, 8, 341, 54020, 1669, 12507, 3332, 741, 54020, 78281, 445, 1944, 497, 330, 46764, 5958, 5130, 2023, 8358, 897, 1669, 2088, 16895, 3036, 11505,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadConfigFromUrl(t *testing.T) { fileName, _, _ := toolbox.CallerInfo(2) basePath := path.Dir(fileName) url := toolbox.FileSchema + path.Join(basePath, "test", "config.json") config := &TestConfig{} err := toolbox.LoadConfigFromUrl(url, config) assert.Nil(t, err) assert.Equal(t, "value1", config.Attr1...
explode_data.jsonl/72332
{ "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, 5879, 2648, 3830, 2864, 1155, 353, 8840, 836, 8, 1476, 17661, 675, 11, 8358, 716, 1669, 67870, 727, 13956, 1731, 7, 17, 340, 24195, 1820, 1669, 1815, 83757, 23014, 340, 19320, 1669, 67870, 8576, 8632, 488, 1815, 22363, 12663...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIP2LongInvalid(t *testing.T) { l1 := IP2Long("") if l1 != 0 { t.Fatalf("ip2long expect %d, actual %d", 0, l1) } l2 := IP2Long("192.168") if l2 != 0 { t.Fatalf("ip2long expect %d, actual %d", 0, l2) } l3 := IP2Long("192.168.0.1.1") if l3 != 0 { t.Fatalf("ip2long expect %d, actual %d", 0, l3) } ...
explode_data.jsonl/64883
{ "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, 3298, 17, 6583, 7928, 1155, 353, 8840, 836, 8, 341, 8810, 16, 1669, 6790, 17, 6583, 31764, 743, 326, 16, 961, 220, 15, 341, 197, 3244, 30762, 445, 573, 17, 4825, 1720, 1018, 67, 11, 5042, 1018, 67, 497, 220, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestURLErrorImplementsNetError(t *testing.T) { for i, tt := range netErrorTests { err, ok := tt.err.(net.Error) if !ok { t.Errorf("%d: %T does not implement net.Error", i+1, tt.err) continue } if err.Timeout() != tt.timeout { t.Errorf("%d: err.Timeout(): got %v, want %v", i+1, err.Timeout(), tt.t...
explode_data.jsonl/71734
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 1511, 94618, 1427, 4674, 6954, 1454, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 17853, 1669, 2088, 4179, 1454, 18200, 341, 197, 9859, 11, 5394, 1669, 17853, 18441, 12832, 4711, 6141, 340, 197, 743, 753, 562, 341, 298, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGreaterEqualInt(t *testing.T) { t.Parallel() match, err := path.GreaterEqual(&testType1{ Int: 1234, }, "int", "1233") require.Nil(t, err) require.True(t, match) match, err = path.GreaterEqual(&testType1{ Int: 1234, }, "int", "1234") require.Nil(t, err) require.True(t, match) match, err = path....
explode_data.jsonl/78464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 41366, 2993, 1072, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 47706, 11, 1848, 1669, 1815, 1224, 28362, 2993, 2099, 1944, 929, 16, 515, 197, 57152, 25, 220, 16, 17, 18, 19, 345, 197, 2137, 330, 396, 497, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIssue28246(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() orgEnable := core.PreparedPlanCacheEnabled() defer core.SetPreparedPlanCache(orgEnable) core.SetPreparedPlanCache(true) se, err := session.CreateSession4TestWithOpt(store, &session.Opt{ PreparedPlanCache: kvcache.NewSim...
explode_data.jsonl/5533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 651 }
[ 2830, 3393, 42006, 17, 23, 17, 19, 21, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 741, 87625, 11084, 1669, 6200, 28770, 7212, 20485, 8233, 5462, 741, 16867, 6200, 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 Test_CanHandle(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() handler, _ := getHandlerWithMock(ctrl) canHandle := handler.CanHandle(mockResourceName) assert.True(t, canHandle) }
explode_data.jsonl/39505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 920, 276, 6999, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 53326, 11, 716, 1669, 633, 3050, 2354, 11571, 62100, 340, 92936, 6999, 1669, 7013, 53280, 6999...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientGetTimeoutSuccess(t *testing.T) { t.Parallel() s := startEchoServer(t, "tcp", "127.0.0.1:") defer s.Stop() testClientGetTimeoutSuccess(t, &defaultClient, "http://"+s.Addr(), 100) }
explode_data.jsonl/79361
{ "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, 2959, 1949, 7636, 7188, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 1669, 1191, 74994, 5475, 1155, 11, 330, 27161, 497, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 34403, 16867, 274, 30213, 2822, 18185, 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 TestNewPageable(t *testing.T) { s := []struct { pageNo, pageSize, got, expected int }{ {1, 10, 1, 10}, {2, 10, 2, 10}, {-3, -5, 1, 10}, {5, 600, 5, 500}, } for _, v := range s { out := domain.NewPageable(v.pageNo, v.pageSize) if out.PageNo() != v.got { t.Errorf(`domain.NewPageable().PageNo():"...
explode_data.jsonl/68515
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 3564, 2665, 480, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 3056, 1235, 341, 197, 35272, 2753, 11, 22635, 11, 2684, 11, 3601, 526, 198, 197, 59403, 197, 197, 90, 16, 11, 220, 16, 15, 11, 220, 16, 11, 220, 16, 15, 1583...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangefeedComputedColumn(t *testing.T) { defer leaktest.AfterTest(t)() testFn := func(t *testing.T, db *gosql.DB, f testfeedFactory) { sqlDB := sqlutils.MakeSQLRunner(db) // TODO(dan): Also test a non-STORED computed column once we support them. sqlDB.Exec(t, `CREATE TABLE cc ( a INT, b INT AS (a + ...
explode_data.jsonl/21283
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 393 }
[ 2830, 3393, 1143, 524, 823, 12051, 56474, 2933, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 18185, 24911, 1669, 2915, 1155, 353, 8840, 836, 11, 2927, 353, 34073, 1470, 22537, 11, 282, 1273, 11184, 4153,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecommendationService(t *testing.T) { // Connecting //url := "127.0.0.1:8080" url := "recommendationservice:8080" conn := connect(t, url) defer conn.Close() // Creating context ctx, cn := context.WithTimeout(context.Background(), timeout) defer cn() // Creating the stub client := hipstershop.NewRec...
explode_data.jsonl/43997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 67644, 367, 1860, 1155, 353, 8840, 836, 8, 341, 197, 322, 83938, 198, 197, 322, 1085, 1669, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 23, 15, 23, 15, 698, 19320, 1669, 330, 66589, 804, 1017, 25, 23, 15, 23, 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 TestDriverLanguage_GenerateItem(t *testing.T) { ds := NewDriverLanguage(80, 240, 5, OptionShowSineLine|OptionShowSlimeLine|OptionShowHollowLine, 5, nil, []*truetype.Font{fontChinese}, "emotion") for i := 0; i < 40; i++ { q, _ := ds.GenerateQuestionAnswer() item, err := ds.GenerateItem(q) if err != nil { ...
explode_data.jsonl/38806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 11349, 13806, 2646, 13220, 1234, 1155, 353, 8840, 836, 8, 341, 83336, 1669, 1532, 11349, 13806, 7, 23, 15, 11, 220, 17, 19, 15, 11, 220, 20, 11, 6959, 7812, 50, 482, 2460, 91, 5341, 7812, 7442, 545, 2460, 91, 5341, 781...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatReshape(t *testing.T) { mat := NewMatWithSize(100, 100, MatTypeCV8UC4) defer mat.Close() r := mat.Reshape(1, 1) if r.Rows() != 1 { t.Errorf("Mat reshape incorrect row count: %v\n", r.Rows()) } if r.Cols() != 40000 { t.Errorf("Mat reshape incorrect col count: %v\n", r.Cols()) } }
explode_data.jsonl/81695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 11575, 1061, 29788, 1155, 353, 8840, 836, 8, 341, 59874, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 15, 11, 220, 16, 15, 15, 11, 6867, 929, 19589, 23, 5459, 19, 340, 16867, 5517, 10421, 2822, 7000, 1669, 5517, 8377, 29788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewSortedArrayFromCopy(t *testing.T) { gtest.C(t, func(t *gtest.T) { a1 := []interface{}{"a", "f", "c"} func1 := func(v1, v2 interface{}) int { return strings.Compare(gconv.String(v1), gconv.String(v2)) } func2 := func(v1, v2 interface{}) int { return -1 } array1 := garray.NewSortedArrayFro...
explode_data.jsonl/67005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 3564, 51051, 1857, 3830, 12106, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11323, 16, 1669, 3056, 4970, 6257, 4913, 64, 497, 330, 69, 497, 330, 66, 63159, 197, 2924...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSignProposal(t *testing.T) { pv := mock.NewPV() pk, _ := pv.GetPubKey() proposal := &tmproto.Proposal{Round: 2} pv.SignProposal(chainID, proposal) msg := tmtypes.ProposalSignBytes(chainID, proposal) ok := pk.VerifySignature(msg, proposal.Signature) require.True(t, ok) }
explode_data.jsonl/35539
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 7264, 98637, 1155, 353, 8840, 836, 8, 341, 3223, 85, 1669, 7860, 7121, 48469, 741, 3223, 74, 11, 716, 1669, 33491, 2234, 29162, 1592, 2822, 197, 73874, 1669, 609, 13730, 15110, 42483, 32556, 90, 27497, 25, 220, 17, 532, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnvListJSON(t *testing.T) { s := newScaffold(t) defer s.reset() err := s.executeCommand("env", "list", "-o", "json", "--k8s:kubeconfig=kubeconfig.yaml") require.NoError(t, err) var data interface{} err = s.jsonOutput(&data) require.NoError(t, err) }
explode_data.jsonl/243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 14359, 852, 5370, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 50, 27864, 1155, 340, 16867, 274, 13857, 741, 9859, 1669, 274, 7769, 4062, 445, 3160, 497, 330, 1607, 497, 6523, 78, 497, 330, 2236, 497, 14482, 74, 23, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDequeue(t *testing.T) { goqueue_tests.Dequeue(t, func(size int) interface { goqueue.Owner goqueue.Enqueuer goqueue.Dequeuer goqueue.Info } { return finite.New(size) }) }
explode_data.jsonl/54503
{ "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, 1912, 4584, 1155, 353, 8840, 836, 8, 341, 30680, 4584, 32509, 8934, 4584, 1155, 11, 2915, 6856, 526, 8, 3749, 341, 197, 30680, 4584, 49920, 198, 197, 30680, 4584, 22834, 591, 8801, 198, 197, 30680, 4584, 8934, 591, 8801, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttributeMap_InitFromMap(t *testing.T) { am := NewAttributeMap().InitFromMap(map[string]AttributeValue(nil)) assert.EqualValues(t, NewAttributeMap(), am) rawMap := map[string]AttributeValue{ "k_string": NewAttributeValueString("123"), "k_int": NewAttributeValueInt(123), "k_double": NewAttributeVal...
explode_data.jsonl/38201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 3907, 2227, 15644, 3830, 2227, 1155, 353, 8840, 836, 8, 341, 197, 309, 1669, 1532, 3907, 2227, 1005, 3803, 3830, 2227, 9147, 14032, 60, 78554, 27907, 1171, 6948, 12808, 6227, 1155, 11, 1532, 3907, 2227, 1507, 1079, 692, 7655...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExpiredTokenOnAuth(t *testing.T) { // the middleware to test authMiddleware, _ := New(&GinJWTMiddleware{ Realm: "test zone", Key: key, Timeout: time.Hour, MaxRefresh: time.Hour * 24, Authenticator: defaultAuthenticator, SendAuthorization: true, Aut...
explode_data.jsonl/64453
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 54349, 3323, 1925, 5087, 1155, 353, 8840, 836, 8, 341, 197, 322, 279, 29679, 311, 1273, 198, 78011, 24684, 11, 716, 1669, 1532, 2099, 38, 258, 55172, 24684, 515, 197, 197, 64290, 25, 1797, 330, 1944, 10143, 756, 197, 55242...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInboxNewMessage(t *testing.T) { _, inbox, uid := setupInboxTest(t, "basic") // Create an inbox with a bunch of convos, merge it and read it back out numConvs := 10 var convs []types.RemoteConversation for i := numConvs - 1; i >= 0; i-- { convs = append(convs, makeConvo(gregor1.Time(i), 1, 1)) } uid...
explode_data.jsonl/16804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1135 }
[ 2830, 3393, 641, 2011, 3564, 2052, 1155, 353, 8840, 836, 8, 1476, 197, 6878, 22883, 11, 14617, 1669, 6505, 641, 2011, 2271, 1155, 11, 330, 22342, 5130, 197, 322, 4230, 458, 22883, 448, 264, 15493, 315, 5686, 436, 11, 10880, 432, 323, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMySQLClusterService_Delete(t *testing.T) { asst := assert.New(t) entity, err := createMySQLCluster() asst.Nil(err, common.CombineMessageWithError("test Delete() failed", err)) s := initNewMySQLService() err = s.Delete(entity.Identity()) asst.Nil(err, common.CombineMessageWithError("test Delete() failed"...
explode_data.jsonl/6158
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 59224, 28678, 1860, 57418, 1155, 353, 8840, 836, 8, 341, 60451, 267, 1669, 2060, 7121, 1155, 692, 52987, 11, 1848, 1669, 1855, 59224, 28678, 741, 60451, 267, 59678, 3964, 11, 4185, 31124, 2052, 66102, 445, 1944, 10428, 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...
1
func TestSnake(t *testing.T) { cases := map[string]string{ "i": "i", "I": "i", "iD": "i_d", "ID": "i_d", "NO": "n_o", "NOO": "n_o_o", "NOOooOOoo": "n_o_ooo_o_ooo", "OrderNO": "order_n_o", "tagName": "tag_name", "tag_Name": "tag__na...
explode_data.jsonl/18165
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 322 }
[ 2830, 3393, 83420, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 72, 788, 1843, 330, 72, 756, 197, 197, 7044, 788, 1843, 330, 72, 756, 197, 197, 1, 72, 35, 788, 688, 330, 72, 814, 756, 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 TestStartCmdWithBlankArg(t *testing.T) { t.Run("test blank tls cert arg", func(t *testing.T) { startCmd := GetStartCmd(&mockServer{}) var args []string args = append(args, hostURLArg()...) args = append(args, endpointAuthURLArg()...) args = append(args, endpointTokenURLArg()...) args = append(args, c...
explode_data.jsonl/23755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 773 }
[ 2830, 3393, 3479, 15613, 2354, 22770, 2735, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 10113, 55026, 2777, 1392, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 21375, 15613, 1669, 2126, 3479, 15613, 2099, 16712, 5475, 6257, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetConfigEnabled(t *testing.T) { var request int ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch request { case 0: w.Header().Set("Etag", "etag-0") fmt.Fprintln(w, `{"project":{"attributes":{"enable-osconfig":"false"}},"instance":{"attributes":{"enabl...
explode_data.jsonl/4155
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 825 }
[ 2830, 3393, 1649, 2648, 5462, 1155, 353, 8840, 836, 8, 341, 2405, 1681, 526, 198, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 8961, 1681, 341, 197, 2722, 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...
5
func TestInitCleanedDriver(t *testing.T) { t.Skip("FIXME: not a unit test") d := newDriver(t) if err := d.Create("1", ""); err != nil { t.Fatal(err) } if _, err := d.Get("1"); err != nil { t.Fatal(err) } if err := d.Cleanup(); err != nil { t.Fatal(err) } driver, err := Init(d.home) if err != nil { ...
explode_data.jsonl/45483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 3803, 27529, 291, 11349, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 81019, 25, 537, 264, 4982, 1273, 1138, 2698, 1669, 501, 11349, 1155, 692, 743, 1848, 1669, 294, 7251, 445, 16, 497, 93754, 1848, 961, 2092, 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...
6
func TestLocale(t *testing.T) { trans := New() expected := "luo" if trans.Locale() != expected { t.Errorf("Expected '%s' Got '%s'", expected, trans.Locale()) } }
explode_data.jsonl/48817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 19231, 1155, 353, 8840, 836, 8, 1476, 72453, 1669, 1532, 741, 42400, 1669, 330, 9835, 78, 1837, 743, 1356, 59094, 368, 961, 3601, 341, 197, 3244, 13080, 445, 18896, 7677, 82, 6, 24528, 7677, 82, 22772, 3601, 11, 1356, 5909...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAt(t *testing.T) { test := []bool{b0, b1, b0, b1, b0, b1, b1, b0, b1} bitset := New(test...) for i, v := range test { result := bitset.At(i) if result != test[i] { t.Errorf("bitset[%d] => %t, want %t", i, result, v) } } }
explode_data.jsonl/67087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 1655, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 3056, 2641, 90, 65, 15, 11, 293, 16, 11, 293, 15, 11, 293, 16, 11, 293, 15, 11, 293, 16, 11, 293, 16, 11, 293, 15, 11, 293, 16, 630, 79980, 746, 1669, 1532, 8623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIpAllowed(t *testing.T) { tables := []struct { allowedIps []string actualIps []string allowed bool }{ {[]string{"10.1.1.1"}, []string{"10.1.1.1"}, true}, // same IP {[]string{"10.1.1.1"}, []string{"10.1.1.0"}, false}, // different IP {[]string{"10.1.1.1"}, []string{"10....
explode_data.jsonl/12275
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 586 }
[ 2830, 3393, 23378, 35382, 1155, 353, 8840, 836, 8, 341, 26481, 82, 1669, 3056, 1235, 341, 197, 197, 20967, 40, 1690, 3056, 917, 198, 197, 88814, 40, 1690, 220, 3056, 917, 198, 197, 197, 20967, 262, 1807, 198, 197, 59403, 197, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestUpdateAppResource(t *testing.T) { updatesReceived := make([]string, 0) cluster := newCluster(testPod, testRS, testDeploy) cluster.onAppUpdated = func(appName string) { updatesReceived = append(updatesReceived, appName) } err := cluster.ensureSynced() assert.Nil(t, err) err = cluster.processEvent(wat...
explode_data.jsonl/75185
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 4289, 2164, 4783, 1155, 353, 8840, 836, 8, 341, 197, 49661, 23260, 1669, 1281, 10556, 917, 11, 220, 15, 340, 197, 18855, 1669, 501, 28678, 8623, 23527, 11, 1273, 11451, 11, 1273, 69464, 340, 197, 18855, 3488, 2164, 16196, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDealTwinGet(t *testing.T) { contentKeyTwin, _ := json.Marshal(keyTwinUpdateFunc()) context := contextFunc(deviceB) tests := []struct { name string context *dtcontext.DTContext resource string msg interface{} err error }{ { name: "TestDealTwinGet(): Case 1: msg not Message ...
explode_data.jsonl/30634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 607 }
[ 2830, 3393, 72841, 51, 7526, 1949, 1155, 353, 8840, 836, 8, 341, 27751, 1592, 51, 7526, 11, 716, 1669, 2951, 37271, 4857, 51, 7526, 4289, 9626, 2398, 28413, 1669, 2266, 9626, 17848, 33, 692, 78216, 1669, 3056, 1235, 341, 197, 11609, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGitWithHelmOCIRegistryDependencies(t *testing.T) { Given(t). PushChartToOCIRegistry("helm-values", "helm-values", "1.0.0"). HelmOCIRepoAdded("myrepo"). Path("helm-oci-with-dependencies"). When(). Create(). Then(). When(). Sync(). Then(). Expect(OperationPhaseIs(OperationSucceeded)). Expe...
explode_data.jsonl/69419
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 46562, 2354, 39, 23162, 63983, 15603, 48303, 1155, 353, 8840, 836, 8, 341, 9600, 2071, 1155, 4292, 197, 10025, 1116, 14488, 1249, 63983, 15603, 445, 51899, 69050, 497, 330, 51899, 69050, 497, 330, 16, 13, 15, 13, 15, 38609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleFormat(t *testing.T) { input := []string{ "Column A | Column B | Column C", "x | y | z", } output := SimpleFormat(input) expected := "Column A Column B Column C\n" expected += "x y z" if output != expected { t.Fatalf("\nexpected:\n%s\n\ngot:\n%s", expected, output) } }
explode_data.jsonl/10644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 16374, 4061, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 917, 515, 197, 197, 1, 2933, 362, 760, 9332, 425, 760, 9332, 356, 756, 197, 197, 65438, 760, 379, 760, 1147, 756, 197, 630, 21170, 1669, 8993, 4061, 5384, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_mut_add(t *testing.T) { // number of workers, and size of job queue pool := grpool.NewPool(10, 50) defer pool.Release() // how many jobs we should wait max := 10000 pool.WaitCount(max) // submit one or more jobs to pool for i := 0; i < max; i++ { count := i pool.JobQueue <- func() { // say t...
explode_data.jsonl/50746
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 29523, 2891, 1155, 353, 8840, 836, 8, 341, 197, 322, 1372, 315, 7337, 11, 323, 1379, 315, 2618, 7177, 198, 85273, 1669, 1081, 10285, 7121, 10551, 7, 16, 15, 11, 220, 20, 15, 340, 16867, 7314, 58693, 2822, 197, 322, 1246,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSelectDatabase(t *testing.T) { executor, _, _, _ := createLegacyExecutorEnv() executor.normalize = true sql := "select database()" newSession := *masterSession session := NewSafeSession(&newSession) session.TargetString = "TestExecutor@master" result, err := executor.Execute( context.Background(), "...
explode_data.jsonl/67397
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 3379, 5988, 1155, 353, 8840, 836, 8, 341, 67328, 4831, 11, 8358, 8358, 716, 1669, 1855, 77415, 25255, 14359, 741, 67328, 4831, 44657, 284, 830, 198, 30633, 1669, 330, 1742, 4625, 99144, 8638, 5283, 1669, 353, 13629, 5283, 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 TestFinWithPendingDataCwndFull(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() c.CreateConnected(context.TestInitialSequenceNumber, 30000, -1 /* epRcvBuf */) // Write enough segments to fill the congestion window before ACK'ing // any of them. view := make([]byte, 10) var r bytes.Reader ...
explode_data.jsonl/75984
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1101 }
[ 2830, 3393, 9134, 2354, 32027, 1043, 34, 23152, 9432, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 1444, 7251, 21146, 5378, 8787, 6341, 14076, 2833, 11, 220, 18, 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 TestUntarPath(t *testing.T) { tmpFolder, err := ioutil.TempDir("", "docker-archive-test") if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpFolder) srcFile := filepath.Join(tmpFolder, "src") tarFile := filepath.Join(tmpFolder, "src.tar") os.Create(filepath.Join(tmpFolder, "src")) destFolder := filepa...
explode_data.jsonl/81983
{ "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, 20250, 277, 1820, 1155, 353, 8840, 836, 8, 341, 20082, 13682, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 28648, 95100, 16839, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2643, 84427, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestControllerCreateError(t *testing.T) { ctx, cancel, infs := SetupFakeContextWithCancel(t) waitInformers, err := controller.RunInformers(ctx.Done(), infs...) if err != nil { t.Fatal("Error starting up informers:", err) } defer func() { cancel() waitInformers() }() want := apierrors.NewBadRequest("a...
explode_data.jsonl/35442
{ "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, 2051, 4021, 1454, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 11, 304, 3848, 1669, 18626, 52317, 1972, 2354, 9269, 1155, 340, 48750, 37891, 388, 11, 1848, 1669, 6461, 16708, 37891, 388, 7502, 60422, 1507, 304, 3848, 31218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Run_Balance(t *testing.T) { mockScheduler := mocks.Scheduler{} mockExchange := mocks.ExchangeClient{} mockConfig := &shresiesbot.AutoInvest{ Balance: &shresiesbot.BalanceConfiguration{ Scheduler: "MY_SCHEDULER", Holds: []shresiesbot.Hold{}, }, } entryId := new(cron.EntryID) mockScheduler....
explode_data.jsonl/5834
{ "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, 84158, 1668, 4978, 1155, 353, 8840, 836, 8, 341, 77333, 38878, 1669, 68909, 808, 15222, 16094, 77333, 31564, 1669, 68909, 86997, 2959, 31483, 77333, 2648, 1669, 609, 927, 416, 550, 6331, 6477, 33876, 515, 197, 12791, 4978, 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 TestServeMembersGet(t *testing.T) { memb1 := etcdserver.Member{ID: 1, Attributes: etcdserver.Attributes{ClientURLs: []string{"http://localhost:8080"}}} memb2 := etcdserver.Member{ID: 2, Attributes: etcdserver.Attributes{ClientURLs: []string{"http://localhost:8081"}}} cluster := &fakeCluster{ id: 1, mem...
explode_data.jsonl/567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 686 }
[ 2830, 3393, 60421, 24371, 1949, 1155, 353, 8840, 836, 8, 341, 2109, 8858, 16, 1669, 1842, 4385, 4030, 46404, 90, 915, 25, 220, 16, 11, 34127, 25, 1842, 4385, 4030, 31384, 90, 2959, 3144, 82, 25, 3056, 917, 4913, 1254, 1110, 8301, 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...
8
func TestCreateNetworkRule(t *testing.T) { t.Run("Valid", func(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() c := mocks.NewMockConnection(mockCtrl) s := Service{ connection: c, } req := CreateNetworkRuleRequest{ Name: "test", } c.EXPECT().Post("/ecloud/v2/network...
explode_data.jsonl/34656
{ "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, 4021, 12320, 11337, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4088, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 197, 16867, 7860, 15001, 991, 18176, 2822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPodContainerDeviceAllocation(t *testing.T) { res1 := TestResource{ resourceName: "domain1.com/resource1", resourceQuantity: *resource.NewQuantity(int64(2), resource.DecimalSI), devs: checkpoint.DevicesPerNUMA{0: []string{"dev1", "dev2"}}, topology: true, } res2 := TestResourc...
explode_data.jsonl/82148
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1571 }
[ 2830, 3393, 23527, 4502, 6985, 78316, 1155, 353, 8840, 836, 8, 341, 10202, 16, 1669, 3393, 4783, 515, 197, 50346, 675, 25, 257, 330, 12204, 16, 905, 53100, 16, 756, 197, 50346, 17342, 25, 353, 9233, 7121, 17342, 1548, 21, 19, 7, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestConfigDefaultServiceSettingsExperimentalGroupUnreadChannels(t *testing.T) { c1 := Config{} c1.SetDefaults() if *c1.ServiceSettings.ExperimentalGroupUnreadChannels != GROUP_UNREAD_CHANNELS_DISABLED { t.Fatal("ServiceSettings.ExperimentalGroupUnreadChannels should default to 'disabled'") } // This setti...
explode_data.jsonl/50676
{ "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, 2648, 3675, 1860, 6086, 81330, 2808, 1806, 878, 35925, 1155, 353, 8840, 836, 8, 341, 1444, 16, 1669, 5532, 16094, 1444, 16, 4202, 16273, 2822, 743, 353, 66, 16, 13860, 6086, 90320, 2808, 1806, 878, 35925, 961, 26870, 6735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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