// newIdent returns a new identifier with attached Object.
// If no Object currently exists for the identifier, it is
// created in package scope.
511864
func (p *parser) resolve(ident *ast.Ident) {
	if ident.Name == "_" {
		return
	}
	// try to resolve the identifier
	for s := p.topScope; s != nil; s = s.Outer {
		if obj := s.Lookup(ident.Name); obj != nil {
			ident.Obj = obj
			return
		}
	}
	if p.pkgScope == nil {
		return
	}
	ident.Obj = ast.NewObj(ast.Bad, ident.Name)
	p.pkgScope.Insert(ident.Obj)
}
308418
func New(alg jwa.SignatureAlgorithm) (Verifier, error) {
	switch alg {
	case jwa.RS256, jwa.RS384, jwa.RS512, jwa.PS256, jwa.PS384, jwa.PS512:
		return newRSA(alg)
	case jwa.ES256, jwa.ES384, jwa.ES512:
		return newECDSA(alg)
	case jwa.HS256, jwa.HS384, jwa.HS512:
		return newHMAC(alg)
	default:
		return nil, errors.Errorf(`unsupported signature algorithm: %s`, alg)
	}
}
1368706
func (s *CreateResourceServerInput) SetIdentifier(v string) *CreateResourceServerInput {
	s.Identifier = &v
	return s
}
688074
func (i InodeDelta) New() *Entry {
	if i.diff == Modified || i.diff == Extra {
		return ePtr(i.new)
	}
	return nil
}
1325413
func NewDUIDEN(enterpriseNumber uint32, identifier []byte) *DUIDEN {
	return &DUIDEN{
		Type:             DUIDTypeEN,
		EnterpriseNumber: enterpriseNumber,
		Identifier:       identifier,
	}
}
214125
func (p *gc_parser) parse_package() *ast.Ident {
	path, err := strconv.Unquote(p.expect(scanner.String))
	if err != nil {
		panic(err)
	}

	return ast.NewIdent(path)
}
132177
func (s *ResourceServerType) SetIdentifier(v string) *ResourceServerType {
	s.Identifier = &v
	return s
}
1006431
func New() locales.Translator {
	return &id{
		locale:             "id",
		pluralsCardinal:    []locales.PluralRule{6},
		pluralsOrdinal:     []locales.PluralRule{6},
		pluralsRange:       []locales.PluralRule{6},
		decimal:            ",",
		group:              ".",
		minus:              "-",
		percent:            "%",
		perMille:           "‰",
		timeSeparator:      ".",
		inifinity:          "∞",
		currencies:         []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AU$", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "R$", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CA$", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNH", "CNX", "CN¥", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "€", "FIM", "FJD", "FKP", "FRF", "£", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HK$", "HNL", "HRD", "HRK", "HTG", "HUF", "Rp", "IEP", "ILP", "ILR", "₪", "Rs", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JP¥", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "₩", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MX$", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZ$", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "STN", "SUR", "SVC", "SYP", "SZL", "฿", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "NT$", "TZS", "UAH", "UAK", "UGS", "UGX", "US$", "USN", "USS", "UYI", "UYP", "UYU", "UZS", "VEB", "VEF", "₫", "VNN", "VUV", "WST", "FCFA", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "EC$", "XDR", "XEU", "XFO", "XFU", "CFA", "XPD", "CFPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"},
		monthsAbbreviated:  []string{"", "Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agt", "Sep", "Okt", "Nov", "Des"},
		monthsNarrow:       []string{"", "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"},
		monthsWide:         []string{"", "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"},
		daysAbbreviated:    []string{"Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"},
		daysNarrow:         []string{"M", "S", "S", "R", "K", "J", "S"},
		daysShort:          []string{"Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"},
		daysWide:           []string{"Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"},
		periodsAbbreviated: []string{"AM", "PM"},
		periodsNarrow:      []string{"AM", "PM"},
		periodsWide:        []string{"AM", "PM"},
		erasAbbreviated:    []string{"SM", "M"},
		erasNarrow:         []string{"SM", "M"},
		erasWide:           []string{"Sebelum Masehi", "Masehi"},
		timezones:          map[string]string{"CLT": "Waktu Standar Cile", "HAST": "Waktu Standar Hawaii-Aleutian", "PDT": "Waktu Musim Panas Pasifik", "BOT": "Waktu Bolivia", "BT": "Waktu Bhutan", "SGT": "Waktu Standar Singapura", "EDT": "Waktu Musim Panas Timur", "HKST": "Waktu Musim Panas Hong Kong", "ACWDT": "Waktu Musim Panas Barat Tengah Australia", "SRT": "Waktu Suriname", "HNCU": "Waktu Standar Kuba", "CAT": "Waktu Afrika Tengah", "EAT": "Waktu Afrika Timur", "AWST": "Waktu Standar Barat Australia", "HNOG": "Waktu Standar Greenland Barat", "MESZ": "Waktu Musim Panas Eropa Tengah", "WART": "Waktu Standar Argentina Bagian Barat", "LHST": "Waktu Standar Lord Howe", "WIT": "Waktu Indonesia Timur", "WIB": "Waktu Indonesia Barat", "SAST": "Waktu Standar Afrika Selatan", "GFT": "Waktu Guyana Prancis", "IST": "Waktu India", "AWDT": "Waktu Musim Panas Barat Australia", "CDT": "Waktu Musim Panas Tengah", "ADT": "Waktu Musim Panas Atlantik", "WESZ": "Waktu Musim Panas Eropa Barat", "ECT": "Waktu Ekuador", "HEEG": "Waktu Musim Panas Greenland Timur", "COT": "Waktu Standar Kolombia", "HEPMX": "Waktu Musim Panas Pasifik Meksiko", "AEDT": "Waktu Musim Panas Timur Australia", "AST": "Waktu Standar Atlantik", "AKDT": "Waktu Musim Panas Alaska", "EST": "Waktu Standar Timur", "HAT": "Waktu Musim Panas Newfoundland", "HENOMX": "Waktu Musim Panas Meksiko Barat Laut", "COST": "Waktu Musim Panas Kolombia", "WARST": "Waktu Musim Panas Argentina Bagian Barat", "HNPM": "Waktu Standar Saint Pierre dan Miquelon", "MST": "Waktu Standar Makau", "UYT": "Waktu Standar Uruguay", "WAT": "Waktu Standar Afrika Barat", "TMST": "Waktu Musim Panas Turkmenistan", "HNPMX": "Waktu Standar Pasifik Meksiko", "WEZ": "Waktu Standar Eropa Barat", "NZST": "Waktu Standar Selandia Baru", "ACWST": "Waktu Standar Barat Tengah Australia", "OESZ": "Waktu Musim Panas Eropa Timur", "HADT": "Waktu Musim Panas Hawaii-Aleutian", "CHAST": "Waktu Standar Chatham", "HEPM": "Waktu Musim Panas Saint Pierre dan Miquelon", "TMT": "Waktu Standar Turkmenistan", "ART": "Waktu Standar Argentina", "ARST": "Waktu Musim Panas Argentina", "HECU": "Waktu Musim Panas Kuba", "MYT": "Waktu Malaysia", "JST": "Waktu Standar Jepang", "NZDT": "Waktu Musim Panas Selandia Baru", "ACDT": "Waktu Musim Panas Tengah Australia", "∅∅∅": "Waktu Musim Panas Azores", "AEST": "Waktu Standar Timur Australia", "JDT": "Waktu Musim Panas Jepang", "HNEG": "Waktu Standar Greenland Timur", "ACST": "Waktu Standar Tengah Australia", "UYST": "Waktu Musim Panas Uruguay", "GMT": "Greenwich Mean Time", "WITA": "Waktu Indonesia Tengah", "CLST": "Waktu Musim Panas Cile", "PST": "Waktu Standar Pasifik", "WAST": "Waktu Musim Panas Afrika Barat", "AKST": "Waktu Standar Alaska", "MEZ": "Waktu Standar Eropa Tengah", "HKT": "Waktu Standar Hong Kong", "LHDT": "Waktu Musim Panas Lord Howe", "VET": "Waktu Venezuela", "CHADT": "Waktu Musim Panas Chatham", "CST": "Waktu Standar Tengah", "HEOG": "Waktu Musim Panas Greenland Barat", "HNNOMX": "Waktu Standar Meksiko Barat Laut", "MDT": "Waktu Musim Panas Makau", "GYT": "Waktu Guyana", "ChST": "Waktu Standar Chamorro", "HNT": "Waktu Standar Newfoundland", "OEZ": "Waktu Standar Eropa Timur"},
	}
}
1190226
func New(id string, runtime *runc.Runc, stdio proc.Stdio) *Init {
	p := &Init{
		id:        id,
		runtime:   runtime,
		stdio:     stdio,
		status:    0,
		waitBlock: make(chan struct{}),
	}
	p.initState = &createdState{p: p}
	return p
}
843627
func newRegistrant(
	firstName, lastName,
	addr1, addr2,
	city, state, postalCode, country,
	phone, email string,
) *Registrant {
	return &Registrant{
		RegistrantFirstName:     firstName,
		RegistrantLastName:      lastName,
		RegistrantAddress1:      addr1,
		RegistrantAddress2:      addr2,
		RegistrantCity:          city,
		RegistrantStateProvince: state,
		RegistrantPostalCode:    postalCode,
		RegistrantCountry:       country,
		RegistrantPhone:         phone,
		RegistrantEmailAddress:  email,
		TechFirstName:           firstName,
		TechLastName:            lastName,
		TechAddress1:            addr1,
		TechAddress2:            addr2,
		TechCity:                city,
		TechStateProvince:       state,
		TechPostalCode:          postalCode,
		TechCountry:             country,
		TechPhone:               phone,
		TechEmailAddress:        email,
		AdminFirstName:          firstName,
		AdminLastName:           lastName,
		AdminAddress1:           addr1,
		AdminAddress2:           addr2,
		AdminCity:               city,
		AdminStateProvince:      state,
		AdminPostalCode:         postalCode,
		AdminCountry:            country,
		AdminPhone:              phone,
		AdminEmailAddress:       email,
		AuxBillingFirstName:     firstName,
		AuxBillingLastName:      lastName,
		AuxBillingAddress1:      addr1,
		AuxBillingAddress2:      addr2,
		AuxBillingCity:          city,
		AuxBillingStateProvince: state,
		AuxBillingPostalCode:    postalCode,
		AuxBillingCountry:       country,
		AuxBillingPhone:         phone,
		AuxBillingEmailAddress:  email,
	}
}
660159
func New(rawData ...interface{}) *Notifier {
	config := Config.clone()
	for i, datum := range rawData {
		if c, ok := datum.(Configuration); ok {
			config.update(&c)
			rawData[i] = nil
		}
	}

	return &Notifier{
		Config:  config,
		RawData: rawData,
	}
}
335985
func NewIdentityAttributeEntry(receiverChainID string, destinationChainID string, attributesJSON string, signerKey *IdentityKey, signerChainID string) *Entry {
	message := []byte(receiverChainID + destinationChainID)
	attributeHash := sha256.Sum256([]byte(attributesJSON))
	message = append(message, attributeHash[:]...)
	signature := signerKey.Sign(message)

	e := Entry{}
	e.ChainID = destinationChainID
	e.ExtIDs = [][]byte{
		[]byte("IdentityAttribute"),
		[]byte(receiverChainID),
		signature[:],
		[]byte(signerKey.String()),
		[]byte(signerChainID),
	}
	e.Content = []byte(attributesJSON)
	return &e
}
1095986
func (client *Client) NewRegistrant(
	firstName, lastName,
	addr1, addr2,
	city, state, postalCode, country,
	phone, email string,
) {
	client.Registrant = newRegistrant(
		firstName, lastName,
		addr1, addr2,
		city, state, postalCode, country,
		phone, email,
	)
}
578462
func New(validSchemes enr.IdentityScheme, r *enr.Record) (*Node, error) {
	if err := r.VerifySignature(validSchemes); err != nil {
		return nil, err
	}
	node := &Node{r: *r}
	if n := copy(node.id[:], validSchemes.NodeAddr(&node.r)); n != len(ID{}) {
		return nil, fmt.Errorf("invalid node ID length %d, need %d", n, len(ID{}))
	}
	return node, nil
}
1169727
func NewIdentityChain(name []string, keys []string) (*Chain, error) {
	e := &Entry{}
	e.ExtIDs = append(e.ExtIDs, []byte("IdentityChain"))
	for _, part := range name {
		e.ExtIDs = append(e.ExtIDs, []byte(part))
	}

	var publicKeys []string
	for _, key := range keys {
		if IdentityKeyStringType(key) != IDPub {
			return nil, fmt.Errorf("provided key %s is not a valid identity public key", key)
		}
		publicKeys = append(publicKeys, key)
	}
	keysMap := map[string]interface{}{"version": 1, "keys": publicKeys}
	keysJSON, _ := json.Marshal(keysMap)
	e.Content = keysJSON
	c := NewChain(e)
	return c, nil
}
325023
func NewAddOne(ctx *middleware.Context, handler AddOneHandler) *AddOne {
	return &AddOne{Context: ctx, Handler: handler}
}
979599
func packageIdentityName(f *descriptor.FileDescriptorProto) string {
	if f.Options != nil && f.Options.GoPackage != nil {
		gopkg := f.Options.GetGoPackage()
		idx := strings.LastIndex(gopkg, "/")
		if idx < 0 {
			return gopkg
		}

		return gopkg[idx+1:]
	}

	if f.Package == nil {
		base := filepath.Base(f.GetName())
		ext := filepath.Ext(base)
		return strings.TrimSuffix(base, ext)
	}
	return f.GetPackage()
}