code stringlengths 114 1.05M | path stringlengths 3 312 | quality_prob float64 0.5 0.99 | learning_prob float64 0.2 1 | filename stringlengths 3 168 | kind stringclasses 1 value |
|---|---|---|---|---|---|
package measurement
import (
"regexp"
"sort"
"strconv"
"strings"
"github.com/wayn3h0/gop/decimal"
"github.com/wayn3h0/gop/errors"
)
// DimensionUnit represents the unit of dimension.
type DimensionUnit int
// Dimension Units.
const (
Millimeter DimensionUnit = 1 // base
Centimeter DimensionUnit = 10
Meter DimensionUnit = 1000
)
var (
// default dimension unit
DefaultDimensionUnit = Centimeter
)
// Dimension represents a dimension information.
// The value of dimension will reserves to MinimumDimensionUnit.
type Dimension struct {
unit DimensionUnit
value *decimal.Decimal
}
func (d *Dimension) ensureInitialized() {
if d.value == nil {
d.unit = DefaultDimensionUnit
d.value = new(decimal.Decimal)
}
}
// Unit returns the unit of dimension.
func (d *Dimension) Unit() DimensionUnit {
return d.unit
}
// Value returns the float64 value of dimension and a indicator whether the value is exact.
func (d *Dimension) Value() (float64, bool) {
return d.value.Float64()
}
// IsZero reports whether the value is zero.
func (d *Dimension) IsZero() bool {
d.ensureInitialized()
return d.value.IsZero()
}
// String returns the formatted string.
func (d *Dimension) String() string {
d.ensureInitialized()
switch d.unit {
case Millimeter:
return d.value.String() + "mm"
case Centimeter:
return d.value.String() + "cm"
case Meter:
return d.value.String() + "m"
}
panic(errors.Newf("measurement: unknown dimension unit `%d`", d.unit))
}
// Copy sets x to y and return x.
func (x *Dimension) Copy(y *Dimension) *Dimension {
x.ensureInitialized()
y.ensureInitialized()
x.unit = y.unit
x.value.Copy(y.value)
return x
}
// Convert converts the dimension with given unit.
func (d *Dimension) Convert(unit DimensionUnit) *Dimension {
d.ensureInitialized()
if d.unit != unit {
if !d.value.IsZero() {
src := new(decimal.Decimal).SetInt64(int64(d.unit))
dst := new(decimal.Decimal).SetInt64(int64(unit))
d.value.Mul(src).Div(dst)
}
d.unit = unit
}
return d
}
// RoundUp rounds the value up to integer.
func (d *Dimension) RoundUp() *Dimension {
d.value.RoundUp(0)
return d
}
// Cmp compares x and y and returns:
// -1 if x < y
// 0 if x == y
// +1 if x > y
func (x *Dimension) Cmp(y *Dimension) int {
x.ensureInitialized()
y.ensureInitialized()
yval := new(Dimension).Copy(y).Convert(x.unit).value
return x.value.Cmp(yval)
}
// Add set x to x+y and return x.
func (x *Dimension) Add(y *Dimension) *Dimension {
x.ensureInitialized()
y.ensureInitialized()
yval := new(Dimension).Copy(y).Convert(x.unit).value
x.value.Add(yval)
return x
}
// Sub sets x to x-y and return x.
func (x *Dimension) Sub(y *Dimension) *Dimension {
x.ensureInitialized()
y.ensureInitialized()
yval := new(Dimension).Copy(y).Convert(x.unit).value
x.value.Sub(yval)
return x
}
// Mul sets x to x*y and return x.
func (x *Dimension) Mul(y float64) *Dimension {
x.ensureInitialized()
x.value.Mul(decimal.New(y))
return x
}
// Div sets x to x/y and return x.
func (x *Dimension) Div(y float64) *Dimension {
x.ensureInitialized()
x.value.Div(decimal.New(y))
return x
}
// NewDimension returns a new weight.
func NewDimension(value float64, unit DimensionUnit) (*Dimension, error) {
val := decimal.New(value)
if val.Sign() < 0 {
return nil, errors.Newf("measurement: dimension value `%f' is invalid", value)
}
return &Dimension{
unit: unit,
value: val,
}, nil
}
// MustNewDimension is similar to NewDimension but panics if has error.
func MustNewDimension(value float64, unit DimensionUnit) *Dimension {
d, err := NewDimension(value, unit)
if err != nil {
panic(err)
}
return d
}
var (
_DimensionPattern = regexp.MustCompile(`^(\d+\.?\d*)(\s*)(mm|cm|m)?$`)
)
// ParseDimension returns a new weight by parsing string.
func ParseDimension(str string) (*Dimension, error) {
s := strings.ToLower(strings.Replace(str, " ", "", -1))
matches := _DimensionPattern.FindStringSubmatch(s)
if len(matches) != 4 {
return nil, errors.Newf("measurement: dimension string %q is invalid", str)
}
value, _ := strconv.ParseFloat(matches[1], 64)
var unit DimensionUnit
switch matches[3] {
case "mm":
unit = Millimeter
case "cm":
unit = Centimeter
case "m":
unit = Meter
default:
unit = DefaultDimensionUnit
}
return NewDimension(value, unit)
}
// MustParseDimension is similar to ParseDimension but panics if has error.
func MustParseDimension(str string) *Dimension {
d, err := ParseDimension(str)
if err != nil {
panic(err)
}
return d
}
// MarshalJSON marshals to JSON data.
// Implements Marshaler interface.
func (d *Dimension) MarshalJSON() ([]byte, error) {
d.ensureInitialized()
return []byte(strconv.Quote(d.String())), nil
}
// UnmarshalJSON unmarshas from JSON data.
// Implements Unmarshaler interface.
func (d *Dimension) UnmarshalJSON(data []byte) error {
str, err := strconv.Unquote(string(data))
if err != nil {
return err
}
d2, err := ParseDimension(str)
if err != nil {
return err
}
d.Copy(d2)
return nil
}
// Dimensions represents a sortable collection of dimension.
type Dimensions []*Dimension
// implements sort.Interface.
func (ds Dimensions) Len() int {
return len(ds)
}
// implements sort.Interface.
func (ds Dimensions) Less(i, j int) bool {
return ds[i].Cmp(ds[j]) < 0
}
// implements sort.Interface.
func (ds Dimensions) Swap(i, j int) {
ds[i], ds[j] = ds[j], ds[i]
}
func (ds Dimensions) Sort() {
sort.Sort(ds)
} | measurement/dimension.go | 0.81772 | 0.437884 | dimension.go | starcoder |
package ebnf
import "io"
const sentinel byte = 4
// inputBuffer implements the two-buffer scheme for reading the input characters.
type inputBuffer struct {
src io.Reader
// The first and second halves of the buff are alternatively reloaded.
// Each half is of the same size N plus an additional space for the sentinel character.
// Usually, N should be the size of a disk block (4096 bytes).
buff []byte
lexemeBegin int // Pointer lexemeBegin marks the beginning of the current lexeme.
forward int // Pointer forward scans ahead until a pattern match is found.
char byte // Last character read
err error // Last error encountered
}
// newInputBuffer creates a new input buffer of size N.
// N usually should be the size of a disk block (4096 bytes).
func newInputBuffer(size int, src io.Reader) (*inputBuffer, error) {
// buff is divided into two sub-buffers (first half and second half).
// Each sub-buffer has an additional space for the sentinel character.
l := (size + 1) * 2
buff := make([]byte, l)
in := &inputBuffer{
src: src,
buff: buff,
lexemeBegin: 0,
forward: 0,
}
if err := in.loadFirst(); err != nil {
return nil, err
}
return in, nil
}
// GetNextChar reads the next character from the input source.
// Next advances the input buffer to the next character, which will then be available through the Char method.
// It returns false when either an error occurs or the end of the input is reached.
// After Next returns false, the Err method will return any error that occurred.
func (i *inputBuffer) Next() bool {
if i.err != nil {
return false
}
i.char = i.buff[i.forward]
i.forward++
if i.buff[i.forward] == sentinel {
if i.isForwardAtEndOfFirst() {
if i.err = i.loadSecond(); i.err == nil {
i.forward++
}
} else if i.isForwardAtEndOfSecond() {
if i.err = i.loadFirst(); i.err == nil {
i.forward = 0
}
} else {
// Sentinel within a sub-buffer signifies the end of input
i.err = io.EOF
}
}
// The current read is valid, but the next read is not possible
return true
}
// Char returns the most recent character read by a call to Next method.
func (i *inputBuffer) Char() byte {
return i.char
}
// Err returns the first non-EOF error encountered by a call to Next method.
func (i *inputBuffer) Err() error {
if i.err == io.EOF {
return nil
}
return i.err
}
// isForwardAtEndOfFirst determines whether or not forward is at the end of the first half.
func (i *inputBuffer) isForwardAtEndOfFirst() bool {
high := (len(i.buff) / 2) - 1
return i.forward == high
}
// isForwardAtEndOfSecond determines whether or not forward is at the end of the second half.
func (i *inputBuffer) isForwardAtEndOfSecond() bool {
high := len(i.buff) - 1
return i.forward == high
}
// loadFirst reads the input and loads the first sub-buffer.
func (i *inputBuffer) loadFirst() error {
high := (len(i.buff) / 2) - 1
n, err := i.src.Read(i.buff[:high])
if err != nil {
return err
}
i.buff[n] = sentinel
return nil
}
// loadSecond reads the input and loads the second sub-buffer.
func (i *inputBuffer) loadSecond() error {
low, high := len(i.buff)/2, len(i.buff)-1
n, err := i.src.Read(i.buff[low:high])
if err != nil {
return err
}
i.buff[low+n] = sentinel
return nil
} | internal/ebnf/input_buffer.go | 0.771843 | 0.503052 | input_buffer.go | starcoder |
package is
import (
"errors"
"reflect"
)
func init() {
loadTestFile()
}
var (
comments map[string]map[int]string
arguments map[string]map[int]string
)
// Is is the test helper.
type Is struct {
T
}
// New makes a new test helper given by T. Any failures will reported onto T.
// Most of the time T will be testing.T from the stdlib.
func New(t T) *Is {
is := &Is{T: t}
return is
}
/*
New creates new test helper with the new T.
(In v1.4.1 or later, this function is no different with the New function in package level)
func TestNew(t *testing.T) {
is := is.New(t)
for i := 0; i < 5; i++ {
t.Run("test"+i, func(t *testing.T) {
is := is.New(t)
is.True(true)
})
}
}
*/
func (is *Is) New(t T) *Is {
return &Is{
T: t,
}
}
/*
Equal asserts that a and b are equal. Upon failing the test,
is.Equal also report the data type if a and b has different data type.
func TestEqual(t *testing.T) {
is := is.New(t)
got := hello("girl").
is.Equal(got, false) // seduce a girl
}
Will output:
is.Equal: string(hello girl) != bool(false) // seduce a girl
*/
func (is *Is) Equal(a, b interface{}) {
if is.T == nil {
panic("is: T is nil")
}
is.Helper()
prefix := "is.Equal"
skip := 3
if reflect.DeepEqual(a, b) {
return
}
if isNil(a) || isNil(b) {
is.logf(is.T.Fail, skip, "%s: %s != %s", prefix, valWithType(a), valWithType(b))
return
}
if reflect.ValueOf(a).Type() == reflect.ValueOf(b).Type() {
is.logf(is.Fail, skip, "%s: %v != %v", prefix, a, b)
return
}
is.logf(is.Fail, skip, "%s: %s != %s", prefix, valWithType(a), valWithType(b))
}
/*
Error asserts that err is one of the expectedErrors.
Error uses errors.Is to test the error.
If no expectedErrors is given, any error will output passed the tests.
Error uses t.FailNow upon failing the test.
func TestError(t *testing.T) {
is := is.New(t)
_, err := findGirlfriend("Anyone?")
is.Error(err, errors.New("coding")) // its not easy
}
Will output:
is.Error: get a girlfriend as programmer? != coding // its not easy
*/
func (is *Is) Error(err error, expectedErrors ...error) {
if is.T == nil {
panic("is: T is nil")
}
is.Helper()
prefix := "is.Error"
skip := 3
if err == nil {
is.logf(is.FailNow, skip, "%s: <nil>", prefix)
return
}
lenErr := len(expectedErrors)
if lenErr == 0 {
return
}
for _, expectedError := range expectedErrors {
if errors.Is(err, expectedError) {
return
}
}
if lenErr == 1 {
is.logf(is.FailNow, skip, "%s: %s != %s", prefix, err.Error(), expectedErrors[0].Error())
return
}
is.logf(is.FailNow, skip, "%s: %s != one of the expected errors", prefix, err.Error())
}
/*
ErrorAs asserts that err as target. ErrorAs uses errors.As to test the error.
ErrorAs uses t.FailNow upon failing the test.
func TestNoError(t *testing.T) {
is := is.New(t)
err := errors.New("find a way her heart")
var pathError *os.PathError
is.ErrorAs(err, &pathError) // where should I go?
}
Will output:
is.ErrorAs: err != **os.PathError // where should I go?
*/
func (is *Is) ErrorAs(err error, target interface{}) {
if is.T == nil {
panic("is: T is nil")
}
is.Helper()
prefix := "is.ErrorAs"
skip := 3
if !errors.As(err, target) {
is.logf(is.FailNow, skip, "%s: err != %T", prefix, target)
return
}
}
/*
NoError assert that err is nil. NoError uses t.FailNow upon failing the test.
func TestNoError(t *testing.T) {
is := is.New(t)
girl, err := findGirlfriend("Anyone?")
is.NoError(err) // i give up
is.Equal(girl, nil) // it will not get executed
}
Will output:
is.NoError: girlfriend not found // i give up
*/
func (is *Is) NoError(err error) {
if is.T == nil {
panic("is: T is nil")
}
is.Helper()
prefix := "is.NoError"
skip := 3
if err != nil {
is.logf(is.FailNow, skip, "%s: %s", prefix, err.Error())
}
}
/*
True asserts that expression is true.
The expression code itself will be reported if the assertion fails.
func TestTrue(t *testing.T) {
is := is.New(t)
money := openTheWallet()
is.True(money != 0) // money shouldn't be 0 to get a girl
}
Will output:
is.True: money != 0 // money shouldn't be 0 to get a girl
*/
func (is *Is) True(expression bool) {
if is.T == nil {
panic("is: T is nil")
}
is.Helper()
prefix := "is.True"
skip := 3
if expression {
return
}
args := is.loadArgument()
is.logf(is.Fail, skip, "%s: %s", prefix, args)
}
/*
Panic assert that function f is panic.
func TestPanic(t *testing.T) {
is := is.New(t)
panicFunc := func() { panic("single") }
is.Panic(panicFunc, "really panic", "crazy panic") // ok
}
Will output:
is.Panic: single != one of the expected panic values // ok
*/
func (is *Is) Panic(f PanicFunc, expectedValues ...interface{}) {
if is.T == nil {
panic("is: T is nil")
}
is.Helper()
defer func(expectedValues ...interface{}) {
is.Helper()
prefix := "is.Panic"
skip := 4
r := recover()
if r == nil {
is.logf(is.Fail, skip, "%s: the function is not panic", prefix)
return
}
lenVal := len(expectedValues)
if lenVal == 0 {
return
}
for _, v := range expectedValues {
if reflect.DeepEqual(r, v) {
return
}
}
if lenVal == 1 {
is.logf(is.Fail, skip, "%s: %v != %v", prefix, r, expectedValues[0])
return
}
is.logf(is.Fail, skip, "%s: %v != one of the expected panic values", prefix, r)
}(expectedValues...)
f()
}
// PanicFunc is a function to test that function call is panic or not.
type PanicFunc func()
// T is the subset of testing.T used by the package is.
type T interface {
Fail()
FailNow()
Log(args ...interface{})
Helper()
} | is.go | 0.59302 | 0.499451 | is.go | starcoder |
package typ
import "xelf.org/xelf/cor"
// Param describes a strc field or spec parameter.
type Param struct {
Name string
Key string
Type
}
func P(name string, t Type) Param {
return Param{Name: name, Key: cor.Keyed(name), Type: t}
}
func (p Param) IsOpt() bool {
return p.Name != "" && p.Name[len(p.Name)-1] == '?'
}
// Const describes a named constant value for an enum or bits type.
type Const struct {
Name string
Key string
Val int64
}
func C(name string, v int64) Const {
return Const{Name: name, Key: cor.Keyed(name), Val: v}
}
type (
// ElBody contains an element type for expression and container types.
ElBody struct {
El Type
}
// SelBody contains a selection type and selection path into that type.
// Selection types are mainly used internally for partially resolved selections.
SelBody struct {
Sel Type
Path string
}
// RefBody contains the type reference to named type.
RefBody struct {
Ref string
}
// AltBody contains compound type alternatives.
AltBody struct {
Alts []Type
}
// ParamBody contains a name and a list of parameters for spec and rec types.
ParamBody struct {
Name string
Params []Param
}
// ConstBody contains a name and a list of constants for the enum and bits types.
ConstBody struct {
Name string
Consts []Const
}
)
func (b *ElBody) EqualHist(o Body, h Hist) bool {
ob, ok := o.(*ElBody)
if !ok {
return false
}
for _, p := range h {
if p.A == b && p.B == o {
return true
}
}
h = append(h, BodyPair{b, o})
return b.El.EqualHist(ob.El, h)
}
func (b *SelBody) EqualHist(o Body, h Hist) bool {
ob, ok := o.(*SelBody)
return ok && b.Path == ob.Path && b.Sel.EqualHist(ob.Sel, h)
}
func (b *RefBody) EqualHist(o Body, h Hist) bool {
ob, ok := o.(*RefBody)
return ok && b.Ref == ob.Ref
}
func (b *AltBody) EqualHist(o Body, h Hist) bool {
ob, ok := o.(*AltBody)
if b == nil {
return ok && ob == nil
}
if !ok || ob == nil || len(b.Alts) != len(ob.Alts) {
return false
}
for i, p := range b.Alts {
op := ob.Alts[i]
if !p.EqualHist(op, h) {
return false
}
}
return true
}
func (b *ParamBody) EqualHist(o Body, h Hist) bool {
ob, ok := o.(*ParamBody)
if !ok || b.Name != ob.Name || len(b.Params) != len(ob.Params) {
return false
}
for _, p := range h {
if p.A == b && p.B == o {
return true
}
}
h = append(h, BodyPair{b, o})
for i, p := range b.Params {
op := ob.Params[i]
if p.Name != op.Name || p.Key != op.Key || !p.EqualHist(op.Type, h) {
return false
}
}
return true
}
func (b *ParamBody) FindKeyIndex(key string) int {
for i, p := range b.Params {
if p.Key == key {
return i
}
}
return -1
}
func (b *ConstBody) EqualHist(o Body, h Hist) bool {
ob, ok := o.(*ConstBody)
if !ok || b.Name != ob.Name || len(b.Consts) != len(ob.Consts) {
return false
}
for i, p := range b.Consts {
op := ob.Consts[i]
if p.Name != op.Name || p.Key != op.Key || p.Val != op.Val {
return false
}
}
return true
}
func (b *ConstBody) FindKeyIndex(key string) int {
for i, p := range b.Consts {
if p.Key == key {
return i
}
}
return -1
}
func (b *ConstBody) FindValIndex(val int64) int {
for i, p := range b.Consts {
if p.Val == val {
return i
}
}
return -1
} | typ/body.go | 0.651687 | 0.520192 | body.go | starcoder |
package enumerable
// ReduceIntToInt reduces a slice of int to int
func ReduceIntToInt(in []int, memo int, f func(int, int) int) int {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceIntToFloat64 reduces a slice of int to float64
func ReduceIntToFloat64(in []int, memo float64, f func(float64, int) float64) float64 {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceIntToBool reduces a slice of int to bool
func ReduceIntToBool(in []int, memo bool, f func(bool, int) bool) bool {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceIntToString reduces a slice of int to string
func ReduceIntToString(in []int, memo string, f func(string, int) string) string {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceIntToAnyValue reduces a slice of int to AnyValue
func ReduceIntToAnyValue(in []int, memo AnyValue, f func(AnyValue, int) AnyValue) AnyValue {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceFloat64ToInt reduces a slice of float64 to int
func ReduceFloat64ToInt(in []float64, memo int, f func(int, float64) int) int {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceFloat64ToFloat64 reduces a slice of float64 to float64
func ReduceFloat64ToFloat64(in []float64, memo float64, f func(float64, float64) float64) float64 {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceFloat64ToBool reduces a slice of float64 to bool
func ReduceFloat64ToBool(in []float64, memo bool, f func(bool, float64) bool) bool {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceFloat64ToString reduces a slice of float64 to string
func ReduceFloat64ToString(in []float64, memo string, f func(string, float64) string) string {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceFloat64ToAnyValue reduces a slice of float64 to AnyValue
func ReduceFloat64ToAnyValue(in []float64, memo AnyValue, f func(AnyValue, float64) AnyValue) AnyValue {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceBoolToInt reduces a slice of bool to int
func ReduceBoolToInt(in []bool, memo int, f func(int, bool) int) int {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceBoolToFloat64 reduces a slice of bool to float64
func ReduceBoolToFloat64(in []bool, memo float64, f func(float64, bool) float64) float64 {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceBoolToBool reduces a slice of bool to bool
func ReduceBoolToBool(in []bool, memo bool, f func(bool, bool) bool) bool {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceBoolToString reduces a slice of bool to string
func ReduceBoolToString(in []bool, memo string, f func(string, bool) string) string {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceBoolToAnyValue reduces a slice of bool to AnyValue
func ReduceBoolToAnyValue(in []bool, memo AnyValue, f func(AnyValue, bool) AnyValue) AnyValue {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceStringToInt reduces a slice of string to int
func ReduceStringToInt(in []string, memo int, f func(int, string) int) int {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceStringToFloat64 reduces a slice of string to float64
func ReduceStringToFloat64(in []string, memo float64, f func(float64, string) float64) float64 {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceStringToBool reduces a slice of string to bool
func ReduceStringToBool(in []string, memo bool, f func(bool, string) bool) bool {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceStringToString reduces a slice of string to string
func ReduceStringToString(in []string, memo string, f func(string, string) string) string {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceStringToAnyValue reduces a slice of string to AnyValue
func ReduceStringToAnyValue(in []string, memo AnyValue, f func(AnyValue, string) AnyValue) AnyValue {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceAnyValueToInt reduces a slice of AnyValue to int
func ReduceAnyValueToInt(in []AnyValue, memo int, f func(int, AnyValue) int) int {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceAnyValueToFloat64 reduces a slice of AnyValue to float64
func ReduceAnyValueToFloat64(in []AnyValue, memo float64, f func(float64, AnyValue) float64) float64 {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceAnyValueToBool reduces a slice of AnyValue to bool
func ReduceAnyValueToBool(in []AnyValue, memo bool, f func(bool, AnyValue) bool) bool {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceAnyValueToString reduces a slice of AnyValue to string
func ReduceAnyValueToString(in []AnyValue, memo string, f func(string, AnyValue) string) string {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
// ReduceAnyValueToAnyValue reduces a slice of AnyValue to AnyValue
func ReduceAnyValueToAnyValue(in []AnyValue, memo AnyValue, f func(AnyValue, AnyValue) AnyValue) AnyValue {
for _, value := range in {
memo = f(memo, value)
}
return memo
}
var reduceFuncs = []interface{}{
ReduceIntToInt,
ReduceIntToFloat64,
ReduceIntToBool,
ReduceIntToString,
ReduceIntToAnyValue,
ReduceFloat64ToInt,
ReduceFloat64ToFloat64,
ReduceFloat64ToBool,
ReduceFloat64ToString,
ReduceFloat64ToAnyValue,
ReduceBoolToInt,
ReduceBoolToFloat64,
ReduceBoolToBool,
ReduceBoolToString,
ReduceBoolToAnyValue,
ReduceStringToInt,
ReduceStringToFloat64,
ReduceStringToBool,
ReduceStringToString,
ReduceStringToAnyValue,
ReduceAnyValueToInt,
ReduceAnyValueToFloat64,
ReduceAnyValueToBool,
ReduceAnyValueToString,
ReduceAnyValueToAnyValue,
} | generated_reduce_funcs.go | 0.818302 | 0.408159 | generated_reduce_funcs.go | starcoder |
package text
import (
"bytes"
"github.com/yuin/goldmark/util"
)
var space = []byte(" ")
// A Segment struct holds information about source positions.
type Segment struct {
// Start is a start position of the segment.
Start int
// Stop is a stop position of the segment.
// This value should be excluded.
Stop int
// Padding is a padding length of the segment.
Padding int
}
// NewSegment return a new Segment.
func NewSegment(start, stop int) Segment {
return Segment{
Start: start,
Stop: stop,
Padding: 0,
}
}
// NewSegmentPadding returns a new Segment with the given padding.
func NewSegmentPadding(start, stop, n int) Segment {
return Segment{
Start: start,
Stop: stop,
Padding: n,
}
}
// Value returns a value of the segment.
func (t *Segment) Value(buffer []byte) []byte {
if t.Padding == 0 {
return buffer[t.Start:t.Stop]
}
result := make([]byte, 0, t.Padding+t.Stop-t.Start+1)
result = append(result, bytes.Repeat(space, t.Padding)...)
return append(result, buffer[t.Start:t.Stop]...)
}
// Len returns a length of the segment.
func (t *Segment) Len() int {
return t.Stop - t.Start + t.Padding
}
// Between returns a segment between this segment and the given segment.
func (t *Segment) Between(other Segment) Segment {
if t.Stop != other.Stop {
panic("invalid state")
}
return NewSegmentPadding(
t.Start,
other.Start,
t.Padding-other.Padding,
)
}
// IsEmpty returns true if this segment is empty, otherwise false.
func (t *Segment) IsEmpty() bool {
return t.Start >= t.Stop && t.Padding == 0
}
// TrimRightSpace returns a new segment by slicing off all trailing
// space characters.
func (t *Segment) TrimRightSpace(buffer []byte) Segment {
v := buffer[t.Start:t.Stop]
l := util.TrimRightSpaceLength(v)
if l == len(v) {
return NewSegment(t.Start, t.Start)
}
return NewSegmentPadding(t.Start, t.Stop-l, t.Padding)
}
// TrimLeftSpace returns a new segment by slicing off all leading
// space characters including padding.
func (t *Segment) TrimLeftSpace(buffer []byte) Segment {
v := buffer[t.Start:t.Stop]
l := util.TrimLeftSpaceLength(v)
return NewSegment(t.Start+l, t.Stop)
}
// TrimLeftSpaceWidth returns a new segment by slicing off leading space
// characters until the given width.
func (t *Segment) TrimLeftSpaceWidth(width int, buffer []byte) Segment {
padding := t.Padding
for ; width > 0; width-- {
if padding == 0 {
break
}
padding--
}
if width == 0 {
return NewSegmentPadding(t.Start, t.Stop, padding)
}
text := buffer[t.Start:t.Stop]
start := t.Start
for _, c := range text {
if start >= t.Stop-1 || width <= 0 {
break
}
if c == ' ' {
width--
} else if c == '\t' {
width -= 4
} else {
break
}
start++
}
if width < 0 {
padding = width * -1
}
return NewSegmentPadding(start, t.Stop, padding)
}
// WithStart returns a new Segment with same value except Start.
func (t *Segment) WithStart(v int) Segment {
return NewSegmentPadding(v, t.Stop, t.Padding)
}
// WithStop returns a new Segment with same value except Stop.
func (t *Segment) WithStop(v int) Segment {
return NewSegmentPadding(t.Start, v, t.Padding)
}
// ConcatPadding concats the padding to the given slice.
func (t *Segment) ConcatPadding(v []byte) []byte {
if t.Padding > 0 {
return append(v, bytes.Repeat(space, t.Padding)...)
}
return v
}
// Segments is a collection of the Segment.
type Segments struct {
values []Segment
}
// NewSegments return a new Segments.
func NewSegments() *Segments {
return &Segments{
values: nil,
}
}
// Append appends the given segment after the tail of the collection.
func (s *Segments) Append(t Segment) {
if s.values == nil {
s.values = make([]Segment, 0, 20)
}
s.values = append(s.values, t)
}
// AppendAll appends all elements of given segments after the tail of the collection.
func (s *Segments) AppendAll(t []Segment) {
if s.values == nil {
s.values = make([]Segment, 0, 20)
}
s.values = append(s.values, t...)
}
// Len returns the length of the collection.
func (s *Segments) Len() int {
if s.values == nil {
return 0
}
return len(s.values)
}
// At returns a segment at the given index.
func (s *Segments) At(i int) Segment {
return s.values[i]
}
// Set sets the given Segment.
func (s *Segments) Set(i int, v Segment) {
s.values[i] = v
}
// SetSliced replace the collection with a subsliced value.
func (s *Segments) SetSliced(lo, hi int) {
s.values = s.values[lo:hi]
}
// Sliced returns a subslice of the collection.
func (s *Segments) Sliced(lo, hi int) []Segment {
return s.values[lo:hi]
}
// Clear delete all element of the collection.
func (s *Segments) Clear() {
s.values = nil
}
// Unshift insert the given Segment to head of the collection.
func (s *Segments) Unshift(v Segment) {
s.values = append(s.values[0:1], s.values[0:]...)
s.values[0] = v
} | vendor/github.com/yuin/goldmark/text/segment.go | 0.823754 | 0.47725 | segment.go | starcoder |
package shapes
import (
. "github.com/gabz57/goledmatrix/canvas"
. "github.com/gabz57/goledmatrix/components"
)
type Panel struct {
shape *CompositeDrawable
cornerRadius int
dimensions Point
fill bool
border bool
}
func NewPanel(parent *Graphic, layout *Layout, initialPosition Point, dimensions Point, cornerRadius int, fill, border bool) *Panel {
p := Panel{
shape: NewCompositeDrawable(
NewOffsetGraphic(
parent,
layout,
initialPosition),
),
cornerRadius: cornerRadius,
dimensions: dimensions,
fill: fill,
border: border,
}
if border {
p.shape.AddDrawable(p.buildTopLine())
p.shape.AddDrawable(p.buildBottomLine())
p.shape.AddDrawable(p.buildLeftLine())
p.shape.AddDrawable(p.buildRightLine())
}
if fill {
// FIXME: adapt size when no border ??
var fillLayout = NewLayout(p.shape.Graphic.Layout().BackgroundColor(), nil)
p.shape.AddDrawable(p.buildFillingCenter(fillLayout))
if cornerRadius > 0 {
p.shape.AddDrawable(p.buildFillingLeft(fillLayout))
p.shape.AddDrawable(p.buildFillingRight(fillLayout))
}
}
if cornerRadius > 0 {
// FIXME: adapt circle size when no border ??
p.shape.AddDrawable(p.buildTopLeftCorner())
p.shape.AddDrawable(p.buildTopRightCorner())
p.shape.AddDrawable(p.buildBottomLeftCorner())
p.shape.AddDrawable(p.buildBottomRightCorner())
}
return &p
}
func (p *Panel) Draw(canvas Canvas) error {
return p.shape.Draw(canvas)
}
func (p *Panel) buildTopLine() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewLine(graphic,
Point{
X: p.cornerRadius,
Y: 0,
},
Point{
X: p.dimensions.X - p.cornerRadius,
Y: 0,
},
)
}
func (p *Panel) buildBottomLine() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewLine(graphic,
Point{
X: p.cornerRadius,
Y: p.dimensions.Y,
},
Point{
X: p.dimensions.X - p.cornerRadius,
Y: p.dimensions.Y,
},
)
}
func (p *Panel) buildLeftLine() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewLine(graphic,
Point{
X: 0,
Y: p.cornerRadius,
},
Point{
X: 0,
Y: p.dimensions.Y - p.cornerRadius,
},
)
}
func (p *Panel) buildRightLine() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewLine(graphic,
Point{
X: p.dimensions.X,
Y: p.cornerRadius,
},
Point{
X: p.dimensions.X,
Y: p.dimensions.Y - p.cornerRadius,
},
)
}
func (p *Panel) buildTopLeftCorner() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewCircleTL(graphic, Point{
X: p.cornerRadius,
Y: p.cornerRadius,
}, p.cornerRadius, p.fill)
}
func (p *Panel) buildTopRightCorner() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewCircleTR(graphic, Point{
X: p.dimensions.X - p.cornerRadius,
Y: p.cornerRadius,
}, p.cornerRadius, p.fill)
}
func (p *Panel) buildBottomLeftCorner() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewCircleBL(graphic, Point{
X: p.cornerRadius,
Y: p.dimensions.Y - p.cornerRadius,
}, p.cornerRadius, p.fill)
}
func (p *Panel) buildBottomRightCorner() Drawable {
graphic := NewGraphic(p.shape.Graphic, nil)
return NewCircleBR(graphic, Point{
X: p.dimensions.X - p.cornerRadius,
Y: p.dimensions.Y - p.cornerRadius,
}, p.cornerRadius, p.fill)
}
func (p *Panel) buildFillingCenter(layout *Layout) Drawable {
graphic := NewGraphic(p.shape.Graphic, layout)
return NewRectangle(graphic, Point{
X: p.cornerRadius + 1,
Y: 1,
}, Point{
X: p.dimensions.X - 2*p.cornerRadius - 2,
Y: p.dimensions.Y - 2,
}, true)
}
func (p *Panel) buildFillingLeft(layout *Layout) Drawable {
graphic := NewGraphic(p.shape.Graphic, layout)
return NewRectangle(graphic, Point{
X: 1,
Y: p.cornerRadius + 1,
}, Point{
X: p.cornerRadius - 1,
Y: p.dimensions.Y - 2*p.cornerRadius - 2,
}, true)
}
func (p *Panel) buildFillingRight(layout *Layout) Drawable {
graphic := NewGraphic(p.shape.Graphic, layout)
return NewRectangle(graphic, Point{
X: p.dimensions.X - p.cornerRadius,
Y: p.cornerRadius + 1,
}, Point{
X: p.cornerRadius - 1,
Y: p.dimensions.Y - 2*p.cornerRadius - 2,
}, true)
} | components/shapes/panel.go | 0.568176 | 0.401541 | panel.go | starcoder |
package encoding
import (
"bytes"
"fmt"
"math"
"math/bits"
"github.com/eleme/lindb/pkg/bit"
)
const blockSizeAdjustment = 1
type FloatEncoder struct {
previousVal uint64
buf bytes.Buffer
bw *bit.Writer
leading int
trailing int
first bool
finish bool
err error
}
type FloatDecoder struct {
val uint64
b []byte
br *bit.Reader
leading uint64
trailing uint64
first bool
err error
}
func NewFloatEncoder() *FloatEncoder {
s := &FloatEncoder{
first: true,
leading: int(^uint8(0)),
}
// new bit writer
s.bw = bit.NewWriter(&s.buf)
return s
}
func NewFloatDecoder(b []byte) *FloatDecoder {
s := &FloatDecoder{
b: b,
first: true,
}
s.br = bit.NewReader(bytes.NewBuffer(b))
return s
}
// write float64 v to underlying buffer, using xor compress
// Value is encoded by XOR then with previous value.
// If XOR result is a zero value(value is the same as the previous value),
// only a single '0' bit is stored, otherwise '1' bit is stored.
// For non-zero XOR result, there are two choices:
// 1). If the block of meaningful bits falls in between the block of previous meaningful bits,
// i.e., there are at least as many leading and trailing zeros as with the previous value,
// use that information for the block position and just store the XOR value.
// 2). Length of the number of leading zeros is stored in the next 6 bits,
// then length of the XOR value is stored in the next 6 bits,
// finally the XOR value is stored.
func (e *FloatEncoder) Write(v float64) error {
if math.IsNaN(v) {
return fmt.Errorf("unspoorted value for NaN")
}
val := math.Float64bits(v)
if e.first {
e.first = false
e.previousVal = val
e.err = e.bw.WriteBits(val, 64)
return nil
}
delta := val ^ e.previousVal
if delta == 0 {
// write '0' bit
e.err = e.bw.WriteBit(bit.Zero)
} else {
// write '1' bit
e.err = e.bw.WriteBit(bit.One)
leading := bits.LeadingZeros64(delta)
trailing := bits.TrailingZeros64(delta)
if leading >= e.leading && trailing >= e.trailing {
// write control bit('1') for using previous block information
e.err = e.bw.WriteBit(bit.One)
e.err = e.bw.WriteBits(delta>>uint(e.trailing), 64-e.leading-e.trailing)
} else {
// write control bit('0') for not using previous block information
e.err = e.bw.WriteBit(bit.Zero)
blockSize := 64 - leading - trailing
/*
* Store the length of the number of leading zeros in the next 6 bits.
* Store the length of the meaningful XORed value in the next 6 bits.
* Store the meaningful bits of the XOR value.
*/
e.err = e.bw.WriteBits(uint64(leading), 6)
e.err = e.bw.WriteBits(uint64(blockSize-blockSizeAdjustment), 6)
e.err = e.bw.WriteBits(delta>>uint(trailing), blockSize)
e.leading = leading
e.trailing = trailing
}
}
e.previousVal = val
return nil
}
func (e *FloatEncoder) Flush() error {
e.finish = true
err := e.bw.Flush()
if nil != err {
return err
}
return nil
}
// Bytes returns a copy of the underlying byte buffer
func (e *FloatEncoder) Bytes() []byte {
return e.buf.Bytes()
}
func (d *FloatDecoder) Next() bool {
if d.err != nil {
return false
}
if d.first {
d.first = false
d.val, d.err = d.br.ReadBits(64)
return true
}
var b bit.Bit
b, d.err = d.br.ReadBit()
if d.err != nil {
return false
}
if b == bit.Zero {
//same as previous
} else {
// read control bit
b, d.err = d.br.ReadBit()
if d.err != nil {
return false
}
var blockSize uint64
if b == bit.Zero {
d.leading, d.err = d.br.ReadBits(6)
if d.err != nil {
return false
}
blockSize, d.err = d.br.ReadBits(6)
if d.err != nil {
return false
}
blockSize += blockSizeAdjustment
d.trailing = 64 - d.leading - blockSize
} else {
//reuse previous leading and trailing
blockSize = 64 - d.leading - d.trailing
}
delta, err := d.br.ReadBits(int(blockSize))
if err != nil {
d.err = err
return false
}
val := delta << d.trailing
d.val ^= val
}
return true
}
func (d *FloatDecoder) Value() float64 {
return math.Float64frombits(d.val)
} | pkg/encoding/float.go | 0.632957 | 0.40751 | float.go | starcoder |
package dijkstra
import (
"github.com/DrakeEsdon/Go-Snake/datatypes"
"github.com/RyanCarrier/dijkstra"
"math"
)
func addGameStateToGraph(request *datatypes.GameRequest, g *dijkstra.Graph, canGoToTail bool) *dijkstra.Graph {
board := &request.Board
you := request.You
dangerousSnakeMoves := GetPossibleMovesOfEqualOrLargerSnakes(request)
for x := 0; x < board.Width; x++ {
for y := 0; y < board.Height; y++ {
coordA := datatypes.Coord{X: x, Y: y}
for _, direction := range datatypes.AllDirections {
coordB := datatypes.AddDirectionToCoord(coordA, direction)
var distance int64 = 1
if coordA == you.Head {
_, found := FindCoordInList(dangerousSnakeMoves, coordB)
if found {
distance += 99
}
}
if !datatypes.IsOutOfBounds(coordB, *board) {
if !datatypes.IsSnake(coordB, *board) ||
(datatypes.IsMyTail(coordB, request.You) && canGoToTail) {
if datatypes.IsHazard(coordB, *board) {
distance += 14
}
g.AddMappedVertex(datatypes.CoordToString(coordA))
g.AddMappedVertex(datatypes.CoordToString(coordB))
err := g.AddMappedArc(
datatypes.CoordToString(coordA),
datatypes.CoordToString(coordB),
distance,
)
if err != nil {
return nil
}
}
}
}
}
}
return g
}
func GetDijkstraGraph(request *datatypes.GameRequest, canGoForTail bool) *dijkstra.Graph {
graph := dijkstra.NewGraph()
graph = addGameStateToGraph(request, graph, canGoForTail)
return graph
}
func GetDijkstraPathDirection(from, to datatypes.Coord, graph *dijkstra.Graph) (*datatypes.Direction, int) {
const errorLength = math.MaxInt64
if graph == nil {
// There was an issue adding board elements to the graph
return nil, errorLength
}
fromID, err := graph.GetMapping(datatypes.CoordToString(from))
if err != nil {
return nil, errorLength
}
toID, err := graph.GetMapping(datatypes.CoordToString(to))
if err != nil {
return nil, errorLength
}
bestPath, err := graph.Shortest(fromID, toID)
if err != nil {
return nil, errorLength
}
firstID := bestPath.Path[0]
secondID := bestPath.Path[1]
firstString, err := graph.GetMapped(firstID)
if err != nil {
return nil, errorLength
}
secondString, err := graph.GetMapped(secondID)
if err != nil {
return nil, errorLength
}
firstCoord := datatypes.CoordFromString(firstString)
secondCoord := datatypes.CoordFromString(secondString)
diffX := secondCoord.X - firstCoord.X
diffY := secondCoord.Y - firstCoord.Y
var distance = int(bestPath.Distance)
if diffX > 0 && diffY == 0 {
return &datatypes.DirectionRight, distance
} else if diffX < 0 && diffY == 0 {
return &datatypes.DirectionLeft, distance
} else if diffX == 0 && diffY > 0 {
return &datatypes.DirectionUp, distance
} else if diffX == 0 && diffY < 0 {
return &datatypes.DirectionDown, distance
} else {
// Something went wrong...
return nil, errorLength
}
}
func GetPossibleMovesOfSnake(battlesnake datatypes.Battlesnake) []datatypes.Coord {
possibleCoords := make([]datatypes.Coord, 0)
for _, dir := range datatypes.AllDirections {
destCoord := datatypes.AddDirectionToCoord(battlesnake.Head, dir)
possibleCoords = append(possibleCoords, destCoord)
}
return possibleCoords
}
func GetPossibleMovesOfEqualOrLargerSnakes(request *datatypes.GameRequest) []datatypes.Coord {
possibleCoords := make([]datatypes.Coord, 0)
for _, snake := range request.Board.Snakes {
if snake.ID != request.You.ID && snake.Length >= request.You.Length {
snakeCoords := GetPossibleMovesOfSnake(snake)
for _, coord := range snakeCoords {
possibleCoords = append(possibleCoords, coord)
}
}
}
return possibleCoords
}
func FindCoordInList(slice []datatypes.Coord, element datatypes.Coord) (int, bool) {
for i, item := range slice {
if item == element {
return i, true
}
}
return -1, false
} | dijkstra/dijkstra.go | 0.636805 | 0.465448 | dijkstra.go | starcoder |
// Package conti provides business logic of trial account calculation
package conti
import (
"math"
)
type Report struct {
Balance BalanceSections
Profit ProfitSections
}
type BalanceSections struct {
Assets Tally
Liabls Tally
Equity Tally
// Retained result
// Accumulated results, i.e. retained earnings (accumulated deficit)
Retained Tally
}
type ProfitSections struct {
Revenue Tally
Expense Tally
Profit Tally
}
// specialSection detects if category's section requires special treatment
func specialSection(csec map[string]string, cat string) bool {
if s, ok := csec[cat]; ok {
// Found
// Special sections:
if s == "Revenues" || s == "Liabilities" || s == "Equity" {
return true
} else {
return false
}
}
return false
}
// startBal calculates the total balance value per section at the beginning
func (this *Report) startBal(sval map[string]float64, csec map[string]string, cat string) {
if value, ok := sval[cat]; ok {
if section, ok := csec[cat]; ok {
switch {
case section == "Assets":
this.Balance.Assets.Sta += value
case section == "Liabilities":
this.Balance.Liabls.Sta += value
case section == "Equity":
this.Balance.Equity.Sta += value
case section == "Assets" || section == "Liabilities" || section == "Equity":
this.Balance.Retained.Sta += value
case section == "Revenues":
this.Profit.Revenue.Sta += value
case section == "Expenses":
this.Profit.Expense.Sta += value
default:
// Do nothing
}
}
}
}
// changeBal calculates the difference between the ending and the starting values per section
func (this *Report) changeBal(csec map[string]string, cat string, value float64) {
if section, ok := csec[cat]; ok {
switch {
case section == "Assets":
this.Balance.Assets.Dif += value
case section == "Liabilities":
this.Balance.Liabls.Dif += value
case section == "Equity":
this.Balance.Equity.Dif += value
case section == "Revenues":
this.Profit.Revenue.Dif += value
this.Profit.Profit.Dif += value
case section == "Expenses":
this.Profit.Expense.Dif += value
this.Profit.Profit.Dif -= value
default:
// Do nothing
}
}
}
// finalBal calculates the total balance value per section at the end
func (this *Report) finalBal() {
this.Balance.Assets.End = this.Balance.Assets.Sta + this.Balance.Assets.Dif
this.Balance.Liabls.End = this.Balance.Liabls.Sta + this.Balance.Liabls.Dif
this.Balance.Equity.End = this.Balance.Equity.Sta + this.Balance.Equity.Dif
this.Profit.Revenue.End = this.Profit.Revenue.Sta + this.Profit.Revenue.Dif
this.Profit.Expense.End = this.Profit.Expense.Sta + this.Profit.Expense.Dif
this.Profit.Profit.End = this.Profit.Profit.Sta + this.Profit.Profit.Dif
this.Balance.Retained.Dif = this.Profit.Profit.Dif
this.Balance.Retained.End = this.Balance.Retained.Sta + this.Balance.Retained.Dif
}
// roundBal rounds the balance change and the ending balance to the required
// number of decimals
func (this *Report) roundBal() {
this.Balance.Assets.Sta = math.Round(this.Balance.Assets.Sta*decimals) / decimals
this.Balance.Liabls.Sta = math.Round(this.Balance.Liabls.Sta*decimals) / decimals
this.Balance.Equity.Sta = math.Round(this.Balance.Equity.Sta*decimals) / decimals
this.Profit.Revenue.Sta = math.Round(this.Profit.Revenue.Sta*decimals) / decimals
this.Profit.Expense.Sta = math.Round(this.Profit.Expense.Sta*decimals) / decimals
this.Profit.Profit.Sta = math.Round(this.Profit.Profit.Sta*decimals) / decimals
this.Balance.Assets.End = math.Round(this.Balance.Assets.End*decimals) / decimals
this.Balance.Liabls.End = math.Round(this.Balance.Liabls.End*decimals) / decimals
this.Balance.Equity.End = math.Round(this.Balance.Equity.End*decimals) / decimals
this.Profit.Revenue.End = math.Round(this.Profit.Revenue.End*decimals) / decimals
this.Profit.Expense.End = math.Round(this.Profit.Expense.End*decimals) / decimals
this.Profit.Profit.End = math.Round(this.Profit.Profit.End*decimals) / decimals
this.Balance.Assets.Dif = math.Round(this.Balance.Assets.Dif*decimals) / decimals
this.Balance.Liabls.Dif = math.Round(this.Balance.Liabls.Dif*decimals) / decimals
this.Balance.Equity.Dif = math.Round(this.Balance.Equity.Dif*decimals) / decimals
this.Profit.Revenue.Dif = math.Round(this.Profit.Revenue.Dif*decimals) / decimals
this.Profit.Expense.Dif = math.Round(this.Profit.Expense.Dif*decimals) / decimals
this.Profit.Profit.Dif = math.Round(this.Profit.Profit.Dif*decimals) / decimals
this.Balance.Retained.Dif = math.Round(this.Balance.Retained.Dif*decimals) / decimals
this.Balance.Retained.End = math.Round(this.Balance.Retained.End*decimals) / decimals
} | conti/sections.go | 0.628635 | 0.452113 | sections.go | starcoder |
package hplot
import (
"math"
"gonum.org/v1/plot"
"gonum.org/v1/plot/plotter"
"gonum.org/v1/plot/vg"
"gonum.org/v1/plot/vg/draw"
)
// S2D plots a set of 2-dim points with error bars.
type S2D struct {
Data plotter.XYer
// GlyphStyle is the style of the glyphs drawn
// at each point.
draw.GlyphStyle
// options controls various display options of this plot.
options Options
xbars *plotter.XErrorBars
ybars *plotter.YErrorBars
}
// withXErrBars enables the X error bars
func (pts *S2D) withXErrBars() error {
if pts.options&WithXErrBars == 0 {
pts.xbars = nil
return nil
}
xerr, ok := pts.Data.(plotter.XErrorer)
if !ok {
return nil
}
type xerrT struct {
plotter.XYer
plotter.XErrorer
}
xplt, err := plotter.NewXErrorBars(xerrT{pts.Data, xerr})
if err != nil {
return err
}
pts.xbars = xplt
return nil
}
// withYErrBars enables the Y error bars
func (pts *S2D) withYErrBars() error {
if pts.options&WithYErrBars == 0 {
pts.ybars = nil
return nil
}
yerr, ok := pts.Data.(plotter.YErrorer)
if !ok {
return nil
}
type yerrT struct {
plotter.XYer
plotter.YErrorer
}
yplt, err := plotter.NewYErrorBars(yerrT{pts.Data, yerr})
if err != nil {
return err
}
pts.ybars = yplt
return nil
}
// NewS2D creates a 2-dim scatter plot from a XYer.
func NewS2D(data plotter.XYer, opts ...Options) *S2D {
s := &S2D{
Data: data,
GlyphStyle: plotter.DefaultGlyphStyle,
}
for _, opt := range opts {
s.options |= opt
}
for _, f := range []func() error{s.withXErrBars, s.withYErrBars} {
_ = f()
}
s.GlyphStyle.Shape = draw.CrossGlyph{}
return s
}
// Plot draws the Scatter, implementing the plot.Plotter
// interface.
func (pts *S2D) Plot(c draw.Canvas, plt *plot.Plot) {
trX, trY := plt.Transforms(&c)
for i := 0; i < pts.Data.Len(); i++ {
x, y := pts.Data.XY(i)
c.DrawGlyph(pts.GlyphStyle, vg.Point{X: trX(x), Y: trY(y)})
}
if pts.xbars != nil {
pts.xbars.LineStyle.Color = pts.GlyphStyle.Color
pts.xbars.Plot(c, plt)
}
if pts.ybars != nil {
pts.ybars.LineStyle.Color = pts.GlyphStyle.Color
pts.ybars.Plot(c, plt)
}
}
// DataRange returns the minimum and maximum
// x and y values, implementing the plot.DataRanger
// interface.
func (pts *S2D) DataRange() (xmin, xmax, ymin, ymax float64) {
if dr, ok := pts.Data.(plot.DataRanger); ok {
xmin, xmax, ymin, ymax = dr.DataRange()
} else {
xmin, xmax, ymin, ymax = plotter.XYRange(pts.Data)
}
if pts.xbars != nil {
xmin1, xmax1, ymin1, ymax1 := pts.xbars.DataRange()
xmin = math.Min(xmin1, xmin)
xmax = math.Max(xmax1, xmax)
ymin = math.Min(ymin1, ymin)
ymax = math.Max(ymax1, ymax)
}
if pts.ybars != nil {
xmin1, xmax1, ymin1, ymax1 := pts.ybars.DataRange()
xmin = math.Min(xmin1, xmin)
xmax = math.Max(xmax1, xmax)
ymin = math.Min(ymin1, ymin)
ymax = math.Max(ymax1, ymax)
}
return xmin, xmax, ymin, ymax
}
// GlyphBoxes returns a slice of plot.GlyphBoxes,
// implementing the plot.GlyphBoxer interface.
func (pts *S2D) GlyphBoxes(plt *plot.Plot) []plot.GlyphBox {
bs := make([]plot.GlyphBox, pts.Data.Len())
for i := 0; i < pts.Data.Len(); i++ {
x, y := pts.Data.XY(i)
bs[i].X = plt.X.Norm(x)
bs[i].Y = plt.Y.Norm(y)
bs[i].Rectangle = pts.GlyphStyle.Rectangle()
}
if pts.xbars != nil {
bs = append(bs, pts.xbars.GlyphBoxes(plt)...)
}
if pts.ybars != nil {
bs = append(bs, pts.ybars.GlyphBoxes(plt)...)
}
return bs
}
// Thumbnail the thumbnail for the Scatter,
// implementing the plot.Thumbnailer interface.
func (pts *S2D) Thumbnail(c *draw.Canvas) {
c.DrawGlyph(pts.GlyphStyle, c.Center())
} | hplot/s2d.go | 0.75985 | 0.47859 | s2d.go | starcoder |
package neox
import (
"github.com/neo4j/neo4j-go-driver/neo4j"
)
// Record wraps the standard implementation of a neo4j.Record
// adding some useful utlities
type Record struct {
neo4j.Record
}
// GetIntAtIndex retrieves the value for the record at the provided index
// asserting it as an integer, returning the value and boolean indicating
// whether the type was asserted to be an integer
func (r *Record) GetIntAtIndex(index int) (value int, ok bool) {
value, ok = r.GetByIndex(index).(int)
return
}
// GetInt attempts to retrieve an integer value for the provided key
// If the provided key does not exist, or the value is not an integer, the method
// returns the zero value and false
func (r *Record) GetInt(key string) (value int, ok bool) {
v, ok := r.Get(key)
if !ok {
return
}
value, ok = v.(int)
if !ok {
return
}
return
}
// GetStringAtIndex retrieves the value for the record at the provided index
// asserting it as a string, returning the value and boolean indicating
// whether the type was asserted correctly
func (r *Record) GetStringAtIndex(index int) (value string, ok bool) {
value, ok = r.GetByIndex(index).(string)
return
}
// GetString attempts to retrieve a string value for the provided key
// If the provided key does not exist, or the value is not a string, the method
// returns the zero value and false
func (r *Record) GetString(key string) (value string, ok bool) {
v, ok := r.Get(key)
if !ok {
return "", false
}
value, ok = v.(string)
if !ok {
return "", false
}
return
}
// GetFloatAtIndex retrieves the value for the record at the provided index
// asserting it as a float, returning the value and boolean indicating
// whether the type was asserted correctly
func (r *Record) GetFloatAtIndex(index int) (value float64, ok bool) {
value, ok = r.GetByIndex(index).(float64)
return
}
// GetFloat attempts to retrieve a float value for the provided key
// If the provided key does not exist, or the value is not a float, the method
// returns the zero value and false
func (r *Record) GetFloat(key string) (value float64, ok bool) {
v, ok := r.Get(key)
if !ok {
return 0, false
}
value, ok = v.(float64)
if !ok {
return 0, false
}
return
}
// GetBoolAtIndex retrieves the value for the record at the provided index
// asserting it as a bool, returning the value and boolean indicating
// whether the type was asserted correctly
func (r *Record) GetBoolAtIndex(index int) (value bool, ok bool) {
value, ok = r.GetByIndex(index).(bool)
return
}
// GetBool attempts to retrieve a rune value for the provided key
// If the provided key does not exist, or the value is not a rune, the method
// returns the zero value and false
func (r *Record) GetBool(key string) (value bool, ok bool) {
v, ok := r.Get(key)
if !ok {
return false, false
}
value, ok = v.(bool)
if !ok {
return false, false
}
return
} | record.go | 0.836988 | 0.501282 | record.go | starcoder |
package rect
import (
"math"
"sort"
)
// Rectangle struct defines a plane figure with four straight sides
// and four right angles, which contains 4 vertixes points, P1 through P4
type Rectangle struct {
P1, P2, P3, P4 Point
}
// maximum error used for floating point math
var ɛ = 0.00001
// IsRect determins if the rectangle provided really is a rectangle, which
// by definition means a plane figure with four straight sides and four
// right angles.
func (r Rectangle) IsRect() bool {
// make sure they aren't all just the same point
if (r.P1.X == r.P2.X && r.P1.X == r.P3.X && r.P1.X == r.P4.X) &&
(r.P1.Y == r.P2.Y && r.P1.Y == r.P3.Y && r.P1.Y == r.P4.Y) {
return false
}
cx := (r.P1.X + r.P2.X + r.P3.X + r.P4.X) / 4.0
cy := (r.P1.Y + r.P2.Y + r.P3.Y + r.P4.Y) / 4.0
dd1 := math.Sqrt(math.Abs(cx-r.P1.X)) + math.Sqrt(math.Abs(cy-r.P1.Y))
dd2 := math.Sqrt(math.Abs(cx-r.P2.X)) + math.Sqrt(math.Abs(cy-r.P2.Y))
dd3 := math.Sqrt(math.Abs(cx-r.P3.X)) + math.Sqrt(math.Abs(cy-r.P3.Y))
dd4 := math.Sqrt(math.Abs(cx-r.P4.X)) + math.Sqrt(math.Abs(cy-r.P4.Y))
return math.Abs(dd1-dd2) < ɛ && math.Abs(dd1-dd3) < ɛ && math.Abs(dd1-dd4) < ɛ
}
// neighbors returns the two points that form the line which creates the right
// angle of the point passed in as a parameter.
func (r Rectangle) neighbors(p Point) (Point, Point) {
keys := []float64{distance(r.P1, p), distance(r.P2, p), distance(r.P3, p), distance(r.P4, p)}
sort.Float64s(keys)
n := []Point{}
d := distance(r.P1, p)
if math.Abs(keys[1]-d) < ɛ || math.Abs(keys[2]-d) < ɛ {
n = append(n, r.P1)
}
d = distance(r.P2, p)
if math.Abs(keys[1]-d) < ɛ || math.Abs(keys[2]-d) < ɛ {
n = append(n, r.P2)
}
d = distance(r.P3, p)
if math.Abs(keys[1]-d) < ɛ || math.Abs(keys[2]-d) < ɛ {
n = append(n, r.P3)
}
d = distance(r.P4, p)
if math.Abs(keys[1]-d) < ɛ || math.Abs(keys[2]-d) < ɛ {
n = append(n, r.P4)
}
return n[0], n[1]
}
// size returns the size of the Rectangle
func (r Rectangle) size() float64 {
n1, n2 := r.neighbors(r.P1)
return distance(r.P1, n1) * distance(r.P1, n2)
}
// inOrder returns a []Point, let us call pts, in which the four sides of the
// Rectangle can be defined as pts[0] -- pts[1], pts[0] -- pts[2],
// pts[3] -- pts[1], and pts[3] -- pts[2]
func (r Rectangle) inOrder() []Point {
n1, n2 := r.neighbors(r.P1)
across := &Point{}
if r.P2 != n1 || r.P2 != n2 {
across = &r.P2
}
if r.P3 != n1 || r.P3 != n2 {
across = &r.P3
}
if r.P4 != n1 || r.P4 != n2 {
across = &r.P4
}
return []Point{r.P1, n1, n2, *across}
}
// Adjacency detects whether two rectangles, r1, and r2, are adjacent.
// Adjacency is defined as the sharing of a side
func Adjacency(r1, r2 Rectangle) bool {
order1 := r1.inOrder()
order2 := r2.inOrder()
sides1 := []line{
{order1[0], order1[1]},
{order1[0], order1[2]},
{order1[3], order1[1]},
{order1[3], order1[2]},
}
sides2 := []line{
{order2[0], order2[1]},
{order2[0], order2[2]},
{order2[3], order2[1]},
{order2[3], order2[2]},
}
for _, i := range sides1 {
for _, j := range sides2 {
if lineOnLine(i, j) {
return true
}
}
}
return false
}
func removeDuplicates(xs *[]Point) {
found := make(map[Point]bool)
j := 0
for i, x := range *xs {
if !found[x] {
found[x] = true
(*xs)[j] = (*xs)[i]
j++
}
}
*xs = (*xs)[:j]
}
// Intersection determine whether two rectangles, r1 and r2, have one or more
// intersecting lines and produce a result, []Point, identifying the points
// of intersection
func Intersection(r1, r2 Rectangle) []Point {
order1 := r1.inOrder()
order2 := r2.inOrder()
sides1 := []line{
{order1[0], order1[1]},
{order1[0], order1[2]},
{order1[3], order1[1]},
{order1[3], order1[2]},
}
sides2 := []line{
{order2[0], order2[1]},
{order2[0], order2[2]},
{order2[3], order2[1]},
{order2[3], order2[2]},
}
pts := []Point{}
for _, i := range sides1 {
for _, j := range sides2 {
p, err := lineIntersection(i, j)
if err == nil {
pts = append(pts, p)
}
}
}
removeDuplicates(&pts)
return pts
}
// sumOfTri determines if the sum of the areas of the triangles created from
// point p to two neighboring vertices of a side of the Rectangle, r, add up
// to the same size as the Rectangle, r. This is one way to determine if
// a point is inside of a Rectangle.
func sumOfTri(r Rectangle, p Point) bool {
n1, n2 := r.neighbors(r.P1)
x1, x2 := Point{}, Point{}
across := &Point{}
if r.P2 != n1 || r.P2 != n2 {
across = &r.P2
x1, x2 = r.neighbors(r.P2)
}
if r.P3 != n1 || r.P3 != n2 {
across = &r.P3
x1, x2 = r.neighbors(r.P3)
}
if r.P4 != n1 || r.P4 != n2 {
across = &r.P4
x1, x2 = r.neighbors(r.P4)
}
sumTri := sizeTriangle(r.P1, n1, p) +
sizeTriangle(r.P1, n2, p) +
sizeTriangle(*across, x1, p) +
sizeTriangle(*across, x2, p)
if math.Abs(r.size()-sumTri) < ɛ {
return true
}
return false
}
// Containment returns whether r2 is contained inside of r1
func Containment(r1, r2 Rectangle) bool {
if r1.size() <= r2.size() {
return false
}
if sumOfTri(r1, r2.P1) && sumOfTri(r1, r2.P2) && sumOfTri(r1, r2.P3) && sumOfTri(r1, r2.P4) {
return true
}
return false
} | rectangle.go | 0.810441 | 0.637934 | rectangle.go | starcoder |
package slices
import (
"math/rand"
)
type integer interface {
~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}
type float interface {
~float32 | ~float64
}
type complex interface {
~complex64 | ~complex128
}
type ordered interface {
integer | float | string
}
// 指定した位置の要素を返す。
func Get[T any](slice []T, index int) (T, bool) {
if index < len(slice) {
return slice[index], true
}
return *new(T), false
}
// 指定した位置の要素を返す。無い場合はvを返す。
func GetOrElse[T any](slice []T, index int, v T) T {
if index < len(slice) {
return slice[index]
}
return v
}
// 指定した位置の要素を受け取り任意の処理を実行する関数を返す。
// 関数は、要素が範囲内なら true を、範囲外なら false を返す。
func RunWith[T any](slice []T, f func(T)) func(int) bool {
return func(i int) bool {
if i >= len(slice) {
return false
}
f(slice[i])
return true
}
}
// 指定した位置に要素を追加する。
func Insert[T any](slice []T, index int, v ...T) []T {
return append(slice[:index], append(v, slice[index:]...)...)
}
// 末尾に要素を追加する。
func Push[T any](slice []T, v ...T) []T {
return append(slice, v...)
}
// 先頭に要素を追加する。
func PushBack[T any](slice []T, v ...T) []T {
return append(v, slice...)
}
// 末尾から要素を取り出す。
func Pop[T any](slice []T) (T, []T) {
if len(slice) == 0 {
return *new(T), slice
}
return slice[len(slice)-1], slice[:len(slice)-1]
}
// 末尾からn個の要素を取り出す。
func PopN[T any](slice []T, n int) ([]T, []T) {
if n > len(slice) {
n = len(slice)
}
return slice[len(slice)-n:], slice[:len(slice)-n]
}
// 先頭から要素を取り出す。
func PopBack[T any](slice []T) (T, []T) {
if len(slice) == 0 {
return *new(T), slice
}
return slice[0], slice[1:]
}
// 先頭からn個の要素を取り出す。
func PopBackN[T any](slice []T, n int) ([]T, []T) {
if n > len(slice) {
n = len(slice)
}
return slice[:n], slice[n:]
}
// 指定した位置の要素を削除する。
func Remove[T any](slice []T, index int) []T {
return RemoveN(slice, index, 1)
}
// 指定した位置からn個の要素を削除する。
func RemoveN[T any](slice []T, index int, n int) []T {
if index+n > len(slice) {
n = len(slice) - index
}
if index > len(slice) {
return slice
}
copy(slice[index:], slice[index+n:])
for i := len(slice) - n; i < len(slice); i++ {
slice[i] = *new(T)
}
return slice[:len(slice)-n]
}
// 要素をランダムに入れ替える。
func Shuffle[T any](slice []T, r *rand.Rand) {
var n int
for i := 0; i < len(slice); i++ {
n = r.Intn(i + 1)
slice[i], slice[n] = slice[n], slice[i]
}
}
// 要素を1つランダムに返す。
func Sample[T any](slice []T, r *rand.Rand) T {
return slice[r.Intn(len(slice))]
}
// スライスの各要素を組み合わせたスライスを返す。
func Combine[T any](slice []T, slices ...[]T) [][]T {
size := len(slice)
for _, slice := range slices {
size *= len(slice)
}
dst := make([][]T, 0, size)
for _, v := range slice {
dst = append(dst, []T{v})
}
for _, slice := range slices {
dst = combine(dst, slice)
}
return dst
}
func combine[T any](dst [][]T, slice []T) [][]T {
size := len(dst)
var j int
for i := 0; i < size; i++ {
for j = 0; j < len(slice); j++ {
dst = append(dst, append(dst[i], slice[j]))
}
}
return dst[size:]
}
// 1つでも値と一致する要素が存在したらtrue。
func Contains[T comparable](slice []T, v T) bool {
for i := range slice {
if slice[i] == v {
return true
}
}
return false
}
// 1つでも条件を満たす要素が存在したらtrue。
func ContainsFunc[T any](slice []T, f func(T) bool) bool {
for i := range slice {
if f(slice[i]) {
return true
}
}
return false
}
// 他のスライスのすべての要素を内包していたらtrue。
func ContainsAll[T comparable](slice []T, subset []T) bool {
for i := range subset {
if !Contains(slice, subset[i]) {
return false
}
}
return true
}
// すべての要素が条件を満たしたらtrue。
func ContainsAllFunc[T any](slice []T, f func(T) bool) bool {
for i := range slice {
if !f(slice[i]) {
return false
}
}
return true
}
// 他のスライスの要素をひとつでも内包していたらtrue。
func ContainsAny[T comparable](slice []T, subset []T) bool {
for i := range subset {
if Contains(slice, subset[i]) {
return true
}
}
return false
}
// 他のスライスの要素をひとつでも内包していたらtrue。
func ContainsAnyFunc[T any](slice []T, subset []T, f func(T, T) bool) bool {
for i := range subset {
if ContainsFunc(slice, func(v T) bool { return f(v, subset[i]) }) {
return true
}
}
return false
}
// 値と一致する要素の数を返す。
func Count[T comparable](slice []T, v T) int {
c := 0
for i := range slice {
if slice[i] == v {
c++
}
}
return c
}
// 条件を満たす要素の数を返す。
func CountFunc[T any](slice []T, f func(T) bool) int {
c := 0
for i := range slice {
if f(slice[i]) {
c++
}
}
return c
}
// 値と一致する最初の要素の位置を返す。
func Index[T comparable](slice []T, v T) int {
for i := range slice {
if slice[i] == v {
return i
}
}
return -1
}
// 条件を満たす最初の要素の位置を返す。
func IndexFunc[T any](slice []T, f func(T) bool) int {
for i := range slice {
if f(slice[i]) {
return i
}
}
return -1
}
// 値と一致する最後の要素の位置を返す。
func LastIndex[T comparable](slice []T, v T) int {
for i := len(slice) - 1; i >= 0; i-- {
if slice[i] == v {
return i
}
}
return -1
}
// 条件を満たす最後の要素の位置を返す。
func LastIndexFunc[T any](slice []T, f func(T) bool) int {
for i := len(slice) - 1; i >= 0; i-- {
if f(slice[i]) {
return i
}
}
return -1
}
// 逆順にしたスライスを返す。
func Reverse[T any](slice []T) []T {
dst := make([]T, 0, len(slice))
for i := len(slice) - 1; i >= 0; i-- {
dst = append(dst, slice[i])
}
return dst
}
// 逆順にしたスライスを返す。
func ReverseInplace[T any](slice []T) []T {
for i := 0; i < len(slice)/2; i++ {
j := len(slice) - i - 1
slice[i], slice[j] = slice[j], slice[i]
}
return slice
}
// 値を変換したスライスを返す。
func MapFunc[T1, T2 any](slice []T1, f func(T1) T2) []T2 {
dst := make([]T2, len(slice))
for i := range slice {
dst[i] = f(slice[i])
}
return dst
}
// 要素を先頭から順に演算する。
func ReduceFunc[T any](slice []T, f func(T, T) T) T {
if len(slice) == 0 {
return *new(T)
}
v := slice[0]
for i := 1; i < len(slice); i++ {
v = f(v, slice[i])
}
return v
}
// 要素を終端から順に演算する。
func ReduceRightFunc[T any](slice []T, f func(T, T) T) T {
if len(slice) == 0 {
return *new(T)
}
v := slice[len(slice)-1]
for i := len(slice) - 2; i >= 0; i-- {
v = f(v, slice[i])
}
return v
}
// 初期値と要素を先頭から順に演算する。
func FoldFunc[T1, T2 any](slice []T1, v T2, f func(T2, T1) T2) T2 {
for i := range slice {
v = f(v, slice[i])
}
return v
}
// 初期値と要素を終端から順に演算する。
func FoldRightFunc[T1, T2 any](slice []T1, v T2, f func(T2, T1) T2) T2 {
for i := len(slice) - 1; i >= 0; i-- {
v = f(v, slice[i])
}
return v
}
// 初期値と要素を先頭から順に演算して途中経過のスライスを返す。
func ScanFunc[T1, T2 any](slice []T1, v T2, f func(T2, T1) T2) []T2 {
dst := make([]T2, 0, len(slice)+1)
dst = append(dst, v)
for i := range slice {
v = f(v, slice[i])
dst = append(dst, v)
}
return dst
}
// 初期値と要素を終端から順に演算して途中経過のスライスを返す。
func ScanRightFunc[T1, T2 any](slice []T1, v T2, f func(T2, T1) T2) []T2 {
dst := make([]T2, 0, len(slice)+1)
dst = append(dst, v)
for i := len(slice) - 1; i >= 0; i-- {
v = f(v, slice[i])
dst = append(dst, v)
}
return dst
}
// スライスを平坦化する。
func Flatten[T any](slice [][]T) []T {
dst := make([]T, 0, len(slice))
for i := range slice {
dst = append(dst, slice[i]...)
}
return dst
}
// 値をスライスに変換し、それらを結合したスライスを返す。
func FlatMapFunc[T1, T2 any](slice []T1, f func(T1) []T2) []T2 {
dst := make([]T2, 0, len(slice))
for i := range slice {
dst = append(dst, f(slice[i])...)
}
return dst
}
// 値と一致する要素で分割したスライスを返す。
func Split[T comparable](slice []T, v T) [][]T {
dst := [][]T{{}}
for i := range slice {
if slice[i] == v {
dst = append(dst, []T{})
continue
}
dst[len(dst)-1] = append(dst[len(dst)-1], slice[i])
}
return dst
}
// 条件を満たす要素で分割したスライスを返す。
func SplitFunc[T any](slice []T, f func(T) bool) [][]T {
dst := [][]T{{}}
for i := range slice {
if f(slice[i]) {
dst = append(dst, []T{})
continue
}
dst[len(dst)-1] = append(dst[len(dst)-1], slice[i])
}
return dst
}
// 値と一致する要素の直後で分割したスライスを返す。
func SplitAfter[T comparable](slice []T, v T) [][]T {
dst := [][]T{{}}
for i := range slice {
dst[len(dst)-1] = append(dst[len(dst)-1], slice[i])
if slice[i] == v {
dst = append(dst, []T{})
}
}
return dst
}
// 条件を満たす要素の直後で分割したスライスを返す。
func SplitAfterFunc[T any](slice []T, f func(T) bool) [][]T {
dst := [][]T{{}}
for i := range slice {
dst[len(dst)-1] = append(dst[len(dst)-1], slice[i])
if f(slice[i]) {
dst = append(dst, []T{})
}
}
return dst
}
// 値と一致する最初の要素を返す。
func Find[T comparable](slice []T, v T) (ret T, ok bool) {
for _, t := range slice {
if t == v {
return t, true
}
}
return
}
// 条件を満たす最初の要素を返す。
func FindFunc[T any](slice []T, f func(T) bool) (ret T, ok bool) {
for _, t := range slice {
if f(t) {
return t, true
}
}
return
}
// 値と一致する先頭部分と一致しない残りの部分を返す。
func Span[T comparable](slice []T, v T) ([]T, []T) {
for i := range slice {
if slice[i] != v {
return slice[0:i], slice[i:]
}
}
return slice, []T{}
}
// 条件を満たす先頭部分と満たさない残りの部分を返す。
func SpanFunc[T any](slice []T, f func(T) bool) ([]T, []T) {
for i := range slice {
if !f(slice[i]) {
return slice[0:i], slice[i:]
}
}
return slice, []T{}
}
// 先頭n個の要素を返す。
func Take[T any](slice []T, n int) []T {
if n > len(slice) {
return slice
}
return slice[:n]
}
// 値と一致する先頭のスライスを返す。
// 値と一致しなかった時点で終了する。
func TakeWhile[T comparable](slice []T, v T) []T {
for i := range slice {
if slice[i] != v {
return slice[0:i]
}
}
return slice
}
// 条件を満たす先頭のスライスを返す。
// 条件を満たさなかった時点で終了する。
func TakeWhileFunc[T any](slice []T, f func(T) bool) []T {
for i := range slice {
if !f(slice[i]) {
return slice[0:i]
}
}
return slice
}
// 先頭n個の要素を除いたスライスを返す。
func Drop[T any](slice []T, n int) []T {
if n > len(slice) {
return []T{}
}
return slice[n:]
}
// 値と一致する先頭の要素を除いていったスライスを返す。
// 値と一致しなかった時点で終了する。
func DropWhile[T comparable](slice []T, v T) []T {
for i := range slice {
if slice[i] != v {
return slice[i:]
}
}
return []T{}
}
// 条件を満たす先頭の要素を除いていったスライスを返す。
// 条件を満たさなかった時点で終了する。
func DropWhileFunc[T any](slice []T, f func(T) bool) []T {
for i := range slice {
if !f(slice[i]) {
return slice[i:]
}
}
return []T{}
}
// スライスが一致していたらtrue。
func Equal[T comparable](slices1 []T, slices2 []T) bool {
if len(slices1) != len(slices2) {
return false
}
for i := 0; i < len(slices1); i++ {
if slices1[i] != slices2[i] {
return false
}
}
return true
}
// スライスが一致していたらtrue。
func EqualFunc[T any](slices1 []T, slices2 []T, f func(T, T) bool) bool {
if len(slices1) != len(slices2) {
return false
}
for i := 0; i < len(slices1); i++ {
if !f(slices1[i], slices2[i]) {
return false
}
}
return true
}
// スライスの先頭がスライスと一致していたら true を返す。
func StartWith[T comparable](slice1 []T, slice2 []T) bool {
if len(slice1) < len(slice2) {
return false
}
for i := range slice2 {
if i >= len(slice1) {
return false
}
if slice1[i] != slice2[i] {
return false
}
}
return true
}
// スライスの先頭がスライスと一致していたら true を返す。
func StartWithFunc[T any](slice1 []T, slice2 []T, f func(T, T) bool) bool {
if len(slice1) < len(slice2) {
return false
}
for i := range slice2 {
if i >= len(slice1) {
return false
}
if !f(slice1[i], slice2[i]) {
return false
}
}
return true
}
// スライスの終端がスライスと一致していたら true を返す。
func EndWith[T comparable](slice1 []T, slice2 []T) bool {
if len(slice1) < len(slice2) {
return false
}
n := len(slice1) - len(slice2)
for i := len(slice2) - 1; i >= 0; i-- {
if i+n >= len(slice1) {
return false
}
if slice1[i+n] != slice2[i] {
return false
}
}
return true
}
// スライスの終端がスライスと一致していたら true を返す。
func EndWithFunc[T any](slice1 []T, slice2 []T, f func(T, T) bool) bool {
if len(slice1) < len(slice2) {
return false
}
n := len(slice1) - len(slice2)
for i := len(slice2) - 1; i >= 0; i-- {
if i+n >= len(slice1) {
return false
}
if !f(slice1[i+n], slice2[i]) {
return false
}
}
return true
}
// 重複を排除したスライスを返す。
// 入力スライスはソートされている必要がある。
func Unique[T comparable](slice []T) []T {
dst := make([]T, 0, len(slice))
if len(slice) > 0 {
dst = append(dst, slice[0])
}
for i := 1; i < len(slice); i++ {
if slice[i] != slice[i-1] {
dst = append(dst, slice[i])
}
}
return dst
}
// 重複を排除したスライスを返す。
// 入力スライスはソートされている必要がある。
func UniqueFunc[T any](slice []T, f func(T, T) bool) []T {
dst := make([]T, 0, len(slice))
if len(slice) > 0 {
dst = append(dst, slice[0])
}
for i := 1; i < len(slice); i++ {
if !f(slice[i], slice[i-1]) {
dst = append(dst, slice[i])
}
}
return dst
}
// 重複を排除したスライスを返す。
func UniqueInplace[T comparable](slice []T) []T {
size := len(slice)
var j int
for i := 0; i < size; i++ {
for j = i + 1; j < size; {
if slice[i] == slice[j] {
size--
slice[j], slice[size] = slice[size], slice[j]
} else {
j++
}
}
}
return slice[:size]
}
// 重複を排除したスライスを返す。
func UniqueInplaceFunc[T any](slice []T, f func(T, T) bool) []T {
size := len(slice)
var j int
for i := 0; i < size; i++ {
for j = i + 1; j < size; {
if f(slice[i], slice[j]) {
size--
slice[j], slice[size] = slice[size], slice[j]
} else {
j++
}
}
}
return slice[:size]
}
// 値の一致する要素だけのスライスを返す。
func Filter[T comparable](slice []T, v T) []T {
dst := make([]T, 0, len(slice))
for i := range slice {
if slice[i] == v {
dst = append(dst, v)
}
}
return dst
}
// 条件を満たす要素だけのスライスを返す。
func FilterFunc[T any](slice []T, f func(T) bool) []T {
dst := make([]T, 0, len(slice))
for i := range slice {
if f(slice[i]) {
dst = append(dst, slice[i])
}
}
return dst
}
// 値の一致する要素だけのスライスを返す。
func FilterInplace[T comparable](slice []T, v T) []T {
c := 0
for i := range slice {
if slice[i] == v {
slice[c], slice[i] = slice[i], slice[c]
c++
}
}
for i := c; i < len(slice); i++ {
slice[i] = *new(T)
}
return slice[:c]
}
// 条件を満たす要素だけのスライスを返す。
func FilterInplaceFunc[T any](slice []T, f func(T) bool) []T {
c := 0
for i := range slice {
if f(slice[i]) {
slice[c], slice[i] = slice[i], slice[c]
c++
}
}
for i := c; i < len(slice); i++ {
slice[i] = *new(T)
}
return slice[:c]
}
// 値の一致しない要素だけのスライスを返す。
func FilterNot[T comparable](slice []T, v T) []T {
dst := make([]T, 0, len(slice))
for i := range slice {
if slice[i] != v {
dst = append(dst, slice[i])
}
}
return dst
}
// 条件を満たさない要素だけのスライスを返す。
func FilterNotFunc[T any](slice []T, f func(T) bool) []T {
dst := make([]T, 0, len(slice))
for i := range slice {
if !f(slice[i]) {
dst = append(dst, slice[i])
}
}
return dst
}
// 値の一致しない要素だけのスライスを返す。
func FilterNotInplace[T comparable](slice []T, v T) []T {
c := 0
for i := range slice {
if slice[i] != v {
slice[c], slice[i] = slice[i], slice[c]
c++
}
}
for i := c; i < len(slice); i++ {
slice[i] = *new(T)
}
return slice[:c]
}
// 条件を満たさない要素だけのスライスを返す。
func FilterNotInplaceFunc[T any](slice []T, f func(T) bool) []T {
c := 0
for i := range slice {
if !f(slice[i]) {
slice[c], slice[i] = slice[i], slice[c]
c++
}
}
for i := c; i < len(slice); i++ {
slice[i] = *new(T)
}
return slice[:c]
}
// 条件を満たす要素を変換したスライスを返す。
func CollectFunc[T1, T2 any](slice []T1, f func(T1) (T2, bool)) []T2 {
dst := make([]T2, 0, len(slice))
for i := range slice {
if v, ok := f(slice[i]); ok {
dst = append(dst, v)
}
}
return dst
}
// 要素ごとに関数の返すキーでグルーピングしたマップを返す。
func GroupBy[T1 any, T2 comparable](slice []T1, f func(T1) T2) map[T2][]T1 {
m := map[T2][]T1{}
var k T2
for i := range slice {
k = f(slice[i])
if v, ok := m[k]; !ok {
m[k] = []T1{slice[i]}
} else {
m[k] = append(v, slice[i])
}
}
return m
}
// 値の一致するスライスと一致しないスライスを返す。
func Partition[T comparable](slice []T, v T) ([]T, []T) {
dst1 := make([]T, 0, len(slice)/2)
dst2 := make([]T, 0, len(slice)/2)
for i := range slice {
if slice[i] == v {
dst1 = append(dst1, slice[i])
} else {
dst2 = append(dst2, slice[i])
}
}
return dst1, dst2
}
// 条件を満たすスライスと満たさないスライスを返す。
func PartitionFunc[T any](slice []T, f func(T) bool) ([]T, []T) {
dst1 := make([]T, 0, len(slice)/2)
dst2 := make([]T, 0, len(slice)/2)
for i := range slice {
if f(slice[i]) {
dst1 = append(dst1, slice[i])
} else {
dst2 = append(dst2, slice[i])
}
}
return dst1, dst2
}
// 値の一致するスライスと一致しないスライスを返す。
func PartitionInplace[T comparable](slice []T, v T) ([]T, []T) {
c := 0
for i := range slice {
if slice[i] == v {
slice[c], slice[i] = slice[i], slice[c]
c++
}
}
return slice[:c], slice[c:]
}
// 条件を満たすスライスと満たさないスライスを返す。
func PartitionInplaceFunc[T any](slice []T, f func(T) bool) ([]T, []T) {
c := 0
for i := range slice {
if f(slice[i]) {
slice[c], slice[i] = slice[i], slice[c]
c++
}
}
return slice[:c], slice[c:]
}
// 要素の合計を返す。
func Sum[T ordered | complex](slice []T) T {
if len(slice) == 0 {
return *new(T)
}
v := slice[0]
for i := 1; i < len(slice); i++ {
v += slice[i]
}
return v
}
// 要素をすべて掛ける。
func Product[T integer | float | complex](slice []T) T {
if len(slice) == 0 {
return *new(T)
}
v := slice[0]
for i := 1; i < len(slice); i++ {
v *= slice[i]
}
return v
}
// 最大の要素を返す。
func Max[T ordered](slice []T) T {
if len(slice) == 0 {
return *new(T)
}
max := slice[0]
for i := 1; i < len(slice); i++ {
if max < slice[i] {
max = slice[i]
}
}
return max
}
// 要素を変換して最大の要素を返す。
func MaxBy[T1 any, T2 ordered](slice []T1, f func(T1) T2) T2 {
if len(slice) == 0 {
return *new(T2)
}
max := f(slice[0])
for i := 1; i < len(slice); i++ {
v := f(slice[i])
if max < v {
max = v
}
}
return max
}
// 最小の要素を返す。
func Min[T ordered](slice []T) T {
if len(slice) == 0 {
return *new(T)
}
min := slice[0]
for i := 1; i < len(slice); i++ {
if min > slice[i] {
min = slice[i]
}
}
return min
}
// 要素を変換して最小の要素を返す。
func MinBy[T1 any, T2 ordered](slice []T1, f func(T1) T2) T2 {
if len(slice) == 0 {
return *new(T2)
}
min := f(slice[0])
for i := 1; i < len(slice); i++ {
v := f(slice[i])
if min > v {
min = v
}
}
return min
}
// すべての要素に値を代入する。
func Fill[T any](slice []T, v T) {
for i := range slice {
slice[i] = v
}
}
// 要素がn個になるまで先頭にvを挿入する。
func PadLeft[T any](slice []T, n int, v T) []T {
if len(slice) >= n {
return slice
}
c := n - len(slice)
t := make([]T, c)
for i := 0; i < len(t); i++ {
t[i] = v
}
return append(t, slice...)
}
// 要素がn個になるまで末尾にvを挿入する。
func PadRight[T any](slice []T, n int, v T) []T {
if len(slice) >= n {
return slice
}
c := n - len(slice)
t := make([]T, c)
for i := 0; i < len(t); i++ {
t[i] = v
}
return append(slice, t...)
}
// ふたつのスライスの同じ位置の要素をペアにしたスライスを返す。
func Zip[T1, T2 any](slice1 []T1, slice2 []T2) []Tuple2[T1, T2] {
size := len(slice1)
if size > len(slice2) {
size = len(slice2)
}
dst := make([]Tuple2[T1, T2], 0, size)
for i := 0; i < size; i++ {
dst = append(dst, NewTuple2(slice1[i], slice2[i]))
}
return dst
}
// スライスの要素と位置をペアにしたスライスを返す。
func ZipWithIndex[T any](slice []T) []Tuple2[T, int] {
dst := make([]Tuple2[T, int], 0, len(slice))
for i := range slice {
dst = append(dst, NewTuple2(slice[i], i))
}
return dst
}
// 要素を分離してふたつのスライスを返す。
func Unzip[T1, T2 any](slice []Tuple2[T1, T2]) ([]T1, []T2) {
dst1 := make([]T1, 0, len(slice))
dst2 := make([]T2, 0, len(slice))
for i := range slice {
dst1 = append(dst1, slice[i].V1)
dst2 = append(dst2, slice[i].V2)
}
return dst1, dst2
} | slices.go | 0.568056 | 0.400398 | slices.go | starcoder |
package convexhull
import (
"fmt"
"math"
"sort"
"github.com/go-gl/gl"
)
type Point struct {
X, Y float64
}
type PointList []Point
func MakePoint(x float64, y float64) Point {
return Point{X: x, Y: y}
}
func PrintStack(s *Stack) {
v := s.top
fmt.Printf("Stack: ")
for v != nil {
fmt.Printf("%v ", v.value)
v = v.next
}
fmt.Println("")
}
//Implement sort interface
func (p PointList) Len() int {
return len(p)
}
func (p PointList) Swap(i, j int) {
p[i], p[j] = p[j], p[i]
}
func (p PointList) Less(i, j int) bool {
area := Area2(p[0], p[i], p[j])
if area == 0 {
x := math.Abs(p[i].X-p[0].X) - math.Abs(p[j].X-p[0].X)
y := math.Abs(p[i].Y-p[0].Y) - math.Abs(p[j].Y-p[0].Y)
if x < 0 || y < 0 {
return true
} else if x > 0 || y > 0 {
return false
} else {
return false
}
}
return area > 0
}
func (p PointList) FindLowestPoint() {
m := 0
for i := 1; i < len(p); i++ {
//If lowest points are on the same line, take the rightmost point
if (p[i].Y < p[m].Y) || ((p[i].Y == p[m].Y) && p[i].X > p[m].X) {
m = i
}
}
p[0], p[m] = p[m], p[0]
}
func (points PointList) Compute() (PointList, bool) {
if len(points) < 3 {
return nil, false
}
stack := new(Stack)
points.FindLowestPoint()
sort.Sort(&points)
stack.Push(points[0])
stack.Push(points[1])
fmt.Println("-START----------------------------------------")
fmt.Printf("Sorted Points: %v\n", points)
i := 2
for i < len(points) {
pi := points[i]
PrintStack(stack)
p1 := stack.top.next.value.(Point)
p2 := stack.top.value.(Point)
if isLeft(p1, p2, pi) {
stack.Push(pi)
i++
} else {
stack.Pop()
}
}
//Copy the hull
ret := make(PointList, stack.Len())
top := stack.top
count := 0
for top != nil {
ret[count] = top.value.(Point)
top = top.next
count++
}
fmt.Println("-END------------------------------------------------")
return ret, true
}
func isLeft(p0, p1, p2 Point) bool {
return Area2(p0, p1, p2) > 0
}
func Area2(a, b, c Point) float64 {
return (b.X-a.X)*(c.Y-a.Y) - (c.X-a.X)*(b.Y-a.Y)
}
func (points PointList) DrawPoints() {
gl.Begin(gl.POINTS)
for _, p := range points {
gl.Color3f(1, 0, 0)
gl.Vertex2f(float32(p.X), float32(p.Y))
}
gl.End()
}
func (points PointList) DrawLines() {
gl.Begin(gl.LINE_LOOP)
for _, p := range points {
gl.Color3f(0, 0, 1)
gl.Vertex2f(float32(p.X), float32(p.Y))
}
gl.End()
}
func (points PointList) DrawLowestPoint() {
if len(points) <= 0 {
return
}
gl.Begin(gl.POINTS)
gl.Color3f(0, 0, 0)
gl.Vertex2f(float32(points[0].X), float32(points[0].Y))
gl.End()
} | convexhull/grahamscan.go | 0.660939 | 0.403743 | grahamscan.go | starcoder |
package set
type Set struct {
elements map[interface{}]struct{}
}
// New creates and returns a new set containing `xs`.
func New(xs ...interface{}) *Set {
n := make(map[interface{}]struct{})
for _, x := range xs {
n[x] = struct{}{}
}
return &Set{n}
}
// Copy returns a distinct copy of `s`.
func (s *Set) Copy() *Set {
x := New()
for k, _ := range s.elements {
x.elements[k] = struct{}{}
}
return x
}
// Add adds the element `x` to the set `s` and returns true if `x` was added.
func (s *Set) Add(x interface{}) bool {
if _, exists := s.elements[x]; !exists {
s.elements[x] = struct{}{}
return true
}
return false
}
// Delete removes the element `x` from the set `s` and returns true if `x` was found.
func (s *Set) Delete(x interface{}) bool {
if _, exists := s.elements[x]; exists {
delete(s.elements, x)
return true
}
return false
}
// Member returns true if `x` is contained in `s`.
func (s *Set) Member(x interface{}) bool {
_, exists := s.elements[x]
return exists
}
// Merge adds the elements in `x` to `s`.
func (s *Set) Merge(x *Set) {
for k, _ := range x.elements {
s.elements[k] = struct{}{}
}
}
// Discard removes the elements of `x` from `s`.
func (s *Set) Discard(x *Set) {
for k, _ := range x.elements {
delete(s.elements, k)
}
}
// Difference returns a new set containing the difference between `s` and `x`.
func (s *Set) Difference(x *Set) *Set {
n := s.Copy()
for k, _ := range x.elements {
delete(n.elements, k)
}
return n
}
// Union returns a new set composed of the union of `s` and `x`.
func (s *Set) Union(x *Set) *Set {
n := New()
for k, _ := range s.elements {
n.elements[k] = struct{}{}
}
for k, _ := range x.elements {
n.elements[k] = struct{}{}
}
return n
}
// Intersection returns a new set composed of the intersection between `s` and `x`.
func (s *Set) Intersection(x *Set) *Set {
n := New()
for k1, _ := range x.elements {
for k2, _ := range s.elements {
if k1 == k2 {
n.elements[k1] = struct{}{}
}
}
}
return n
}
// Superset returns true if `s` is a superset of `x`.
func (s *Set) Superset(x *Set) bool {
return x.Subset(s)
}
// Subset returns true of `s` is a subset of `x`.
func (s *Set) Subset(x *Set) bool {
for k, _ := range s.elements {
if _, exists := x.elements[k]; !exists {
return false
}
}
return true
}
// Len returns the cardinality of the set.
func (s *Set) Len() int {
return len(s.elements)
}
// Empty returns true if set is empty
func (s *Set) Empty() bool {
return len(s.elements) == 0
}
// Freeze returns a slice representing the underlying set data.
func (s *Set) Freeze() []interface{} {
x := make([]interface{}, len(s.elements))
i := 0
for k, _ := range s.elements {
x[i] = k
i++
}
return x
} | set.go | 0.888487 | 0.417746 | set.go | starcoder |
package rbt
// KeyComparison structure used as result of comparing two keys
type KeyComparison int8
const (
// KeyIsLess is returned as result of key comparison if the first key is less than the second key
KeyIsLess KeyComparison = iota - 1
// KeysAreEqual is returned as result of key comparison if the first key is equal to the second key
KeysAreEqual
// KeyIsGreater is returned as result of key comparison if the first key is greater than the second key
KeyIsGreater
)
const (
red byte = byte(0)
black byte = byte(1)
zeroOrEqual = int8(0)
)
func (tree KeyComparison) String() string {
switch tree {
case KeyIsLess:
return "lessThan"
case KeyIsGreater:
return "greaterThan"
default:
return "equalTo"
}
}
// RbKey interface
type RbKey interface {
ComparedTo(key RbKey) KeyComparison
}
// rbNode structure used for storing key and value pairs
type rbNode struct {
key RbKey
value interface{}
color byte
left, right *rbNode
}
// RbTree structure
type RbTree struct {
root *rbNode
count int
version uint32
onInsert InsertEvent
onDelete DeleteEvent
}
// DeleteEvent function used on Insert or Delete operations
type DeleteEvent func(key RbKey, oldValue interface{}) (updatedValue interface{})
// InsertEvent function used on Insert or Delete operations
type InsertEvent func(key RbKey, oldValue interface{}, newValue interface{}) (updatedValue interface{})
// NewRbTree creates a new RbTree and returns its address
func NewRbTree() *RbTree {
return &RbTree{}
}
// NewRbTreeWithEvents creates a new RbTree assigning its insert and delete events and returns its address
func NewRbTreeWithEvents(onInsert InsertEvent, onDelete DeleteEvent) *RbTree {
return &RbTree{
onInsert: onInsert,
onDelete: onDelete,
}
}
// newRbNode creates a new rbNode and returns its address
func newRbNode(key RbKey, value interface{}) *rbNode {
result := &rbNode{
key: key,
value: value,
color: red,
}
return result
}
// isRed checks if node exists and its color is red
func isRed(node *rbNode) bool {
return node != nil && node.color == red
}
// isBlack checks if node exists and its color is black
func isBlack(node *rbNode) bool {
return node != nil && node.color == black
}
// min finds the smallest node key including the given node
func min(node *rbNode) *rbNode {
if node != nil {
for node.left != nil {
node = node.left
}
}
return node
}
// max finds the greatest node key including the given node
func max(node *rbNode) *rbNode {
if node != nil {
for node.right != nil {
node = node.right
}
}
return node
}
// floor returns the largest key node in the subtree rooted at x less than or equal to the given key
func floor(node *rbNode, key RbKey) *rbNode {
if node == nil {
return nil
}
switch key.ComparedTo(node.key) {
case KeysAreEqual:
return node
case KeyIsLess:
return floor(node.left, key)
default:
fn := floor(node.right, key)
if fn != nil {
return fn
}
return node
}
}
// ceilig returns the smallest key node in the subtree rooted at x greater than or equal to the given key
func ceiling(node *rbNode, key RbKey) *rbNode {
if node == nil {
return nil
}
switch key.ComparedTo(node.key) {
case KeysAreEqual:
return node
case KeyIsGreater:
return ceiling(node.right, key)
default:
cn := ceiling(node.left, key)
if cn != nil {
return cn
}
return node
}
}
// flipColor switchs the color of the node from red to black or black to red
func flipColor(node *rbNode) {
if node.color == black {
node.color = red
} else {
node.color = black
}
}
// colorFlip switchs the color of the node and its children from red to black or black to red
func colorFlip(node *rbNode) {
flipColor(node)
flipColor(node.left)
flipColor(node.right)
}
// rotateLeft makes a right-leaning link lean to the left
func rotateLeft(node *rbNode) *rbNode {
child := node.right
node.right = child.left
child.left = node
child.color = node.color
node.color = red
return child
}
// rotateRight makes a left-leaning link lean to the right
func rotateRight(node *rbNode) *rbNode {
child := node.left
node.left = child.right
child.right = node
child.color = node.color
node.color = red
return child
}
// moveRedLeft makes node.left or one of its children red,
// assuming that node is red and both children are black.
func moveRedLeft(node *rbNode) *rbNode {
colorFlip(node)
if isRed(node.right.left) {
node.right = rotateRight(node.right)
node = rotateLeft(node)
colorFlip(node)
}
return node
}
// moveRedRight makes node.right or one of its children red,
// assuming that node is red and both children are black.
func moveRedRight(node *rbNode) *rbNode {
colorFlip(node)
if isRed(node.left.left) {
node = rotateRight(node)
colorFlip(node)
}
return node
}
// balance restores red-black tree invariant
func balance(node *rbNode) *rbNode {
if isRed(node.right) {
node = rotateLeft(node)
}
if isRed(node.left) && isRed(node.left.left) {
node = rotateRight(node)
}
if isRed(node.left) && isRed(node.right) {
colorFlip(node)
}
return node
}
// deleteMin removes the smallest key and associated value from the tree
func deleteMin(node *rbNode) *rbNode {
if node.left == nil {
return nil
}
if isBlack(node.left) && !isRed(node.left.left) {
node = moveRedLeft(node)
}
node.left = deleteMin(node.left)
/* if node.left != nil {
node.left.parent = node
} */
return balance(node)
}
// Count returns if count of the nodes stored.
func (tree *RbTree) Count() int {
return tree.count
}
// IsEmpty returns if the tree has any node.
func (tree *RbTree) IsEmpty() bool {
return tree.root == nil
}
// Min returns the smallest key in the tree.
func (tree *RbTree) Min() (RbKey, interface{}) {
if tree.root != nil {
result := min(tree.root)
return result.key, result.value
}
return nil, nil
}
// Max returns the largest key in the tree.
func (tree *RbTree) Max() (RbKey, interface{}) {
if tree.root != nil {
result := max(tree.root)
return result.key, result.value
}
return nil, nil
}
// Floor returns the largest key in the tree less than or equal to key
func (tree *RbTree) Floor(key RbKey) (RbKey, interface{}) {
if key != nil && tree.root != nil {
node := floor(tree.root, key)
if node == nil {
return nil, nil
}
return node.key, node.value
}
return nil, nil
}
// Ceiling returns the smallest key in the tree greater than or equal to key
func (tree *RbTree) Ceiling(key RbKey) (RbKey, interface{}) {
if key != nil && tree.root != nil {
node := ceiling(tree.root, key)
if node == nil {
return nil, nil
}
return node.key, node.value
}
return nil, nil
}
// Get returns the stored value if key found and 'true',
// otherwise returns 'false' with second return param if key not found
func (tree *RbTree) Get(key RbKey) (interface{}, bool) {
if key != nil && tree.root != nil {
node := tree.find(key)
if node != nil {
return node.value, true
}
}
return nil, false
}
// find returns the node if key found, otherwise returns nil
func (tree *RbTree) find(key RbKey) *rbNode {
for node := tree.root; node != nil; {
switch key.ComparedTo(node.key) {
case KeyIsLess:
node = node.left
case KeyIsGreater:
node = node.right
default:
return node
}
}
return nil
}
// Exists returns the node if key found, otherwise returns nil
func (tree *RbTree) Exists(key RbKey) bool {
return tree.find(key) != nil
}
// Insert inserts the given key and value into the tree
func (tree *RbTree) Insert(key RbKey, value interface{}) {
if key != nil {
tree.version++
tree.root = tree.insertNode(tree.root, key, value);
tree.root.color = black
// tree.root.parent = nil
}
}
// insertNode adds the given key and value into the node
func (tree *RbTree) insertNode(node *rbNode, key RbKey, value interface{}) *rbNode {
if node == nil {
tree.count++
return newRbNode(key, value)
}
switch key.ComparedTo(node.key) {
case KeyIsLess:
node.left = tree.insertNode(node.left, key, value)
// node.left.parent = node
case KeyIsGreater:
node.right = tree.insertNode(node.right, key, value)
// node.right.parent = node
default:
if tree.onInsert == nil {
node.value = value
} else {
node.value = tree.onInsert(key, node.value, value)
}
}
return balance(node)
}
// Delete deletes the given key from the tree
func (tree *RbTree) Delete(key RbKey) {
tree.version++
tree.root = tree.deleteNode(tree.root, key)
if tree.root != nil {
tree.root.color = black
}
}
// deleteNode deletes the given key from the node
func (tree *RbTree) deleteNode(node *rbNode, key RbKey) *rbNode {
if node == nil {
return nil
}
cmp := key.ComparedTo(node.key)
if cmp == KeyIsLess {
if isBlack(node.left) && !isRed(node.left.left) {
node = moveRedLeft(node)
}
node.left = tree.deleteNode(node.left, key)
} else {
if cmp == KeysAreEqual && tree.onDelete != nil {
value := tree.onDelete(key, node.value)
if value != nil {
node.value = value
return node
}
}
if isRed(node.left) {
node = rotateRight(node)
}
if isBlack(node.right) && !isRed(node.right.left) {
node = moveRedRight(node)
}
if key.ComparedTo(node.key) != KeysAreEqual {
node.right = tree.deleteNode(node.right, key)
} else {
if node.right == nil {
return nil
}
rm := min(node.right)
node.key = rm.key
node.value = rm.value
node.right = deleteMin(node.right)
rm.left = nil
rm.right = nil
tree.count--
}
}
return balance(node)
} | rbtree.go | 0.896004 | 0.52476 | rbtree.go | starcoder |
package goqkit
/*
QBits register which has same of qbits and can apply the many quantum gates
*/
type Register struct {
//Number of QBits in this register.
numberOfQBits int
//QBits value. if this register has 0x01,0x02 qbits, then QBits will be 0x03
qBits uint
//How many shift from local to global value in circuit.
shift int
//Pointer of the circuit.
circuit *QBitsCircuit
//Name
Name string
}
/*
Do nothing.
*/
func (reg *Register) Nothing() {
}
/*
Return number of qbits in this register.
*/
func (reg *Register) NumberOfQBits() int {
return reg.numberOfQBits
}
/*
Return qbits value.
Example: if this register has 0x01, 0x02, 0x04 qbits, return 6.
*/
func (reg *Register) GetQBits() uint {
return reg.qBits
}
/*
Return the qbits value from the point of global view.
The register use local qbits value on basis,
so depending on the situation, transfer from local value in this register to global one in global circuit.
Example: if shift is 4 and this register has 0x01 local value, this function will return 0x08 by shifting 4.
*/
func (reg *Register) ToGlobalQBits(val int) int {
return val << reg.shift
}
/*
Read all qbits value in this register and return local integer value.
*/
func (reg *Register) ReadAll() int {
r := reg.circuit.ReadQBits(int(reg.GetQBits()))
//back to local
return r >> reg.shift
}
/*
Read the qbits specified as val and return local integer value.
val: local qbits value
*/
func (reg *Register) Read(val int) int {
qbits := reg.ToGlobalQBits(val)
r := reg.circuit.ReadQBits(qbits)
//back to local
return r >> reg.shift
}
/*
Write the qbits specified as val.
val: local qbits value
*/
func (reg *Register) Write(val int) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.Write(qbits)
}
/*
Apply Not Gate to all qbits in this register
*/
func (reg *Register) NotAll() {
reg.circuit.Not(int(reg.qBits), 0)
}
/*
Appy Not Gate to the specified value with control
val: local qbits value
control: global control qbits value
*/
func (reg *Register) Not(val int, control int) {
reg.circuit.Not(reg.ToGlobalQBits(val), control)
}
/*
Apply Hadamard Gate to all qbits in this register
*/
func (reg *Register) HadAll() {
reg.circuit.Had(int(reg.qBits), 0)
}
/*
Appy Hadamard Gate to the specified value with control
val: local qbits value
control: global control qbits value
*/
func (reg *Register) Had(val int, control int) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.Had(qbits, control)
}
/*
Apply Rotate Gate to all qbits in this register
deg: degree to rotate
*/
func (reg *Register) RotXAll(deg float64) {
reg.circuit.RotX(int(reg.qBits), 0, deg)
}
/*
Apply Rotate Gate to all qbits in this register
deg: degree to rotate
*/
func (reg *Register) RotYAll(deg float64) {
reg.circuit.RotY(int(reg.qBits), 0, deg)
}
/*
Apply Rotate Gate to all qbits in this register
deg: degree to rotate
*/
func (reg *Register) RotZAll(deg float64) {
reg.circuit.RotZ(int(reg.qBits), 0, deg)
}
/*
Apply Rotate Gate to the value which specified val with control qbits.
val: local qbits value
control: global control qbits value
deg: degree to rotate
*/
func (reg *Register) RotX(val int, control int, deg float64) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.RotX(qbits, control, deg)
}
/*
Apply Rotate Gate to the value which specified val with control qbits.
val: local qbits value
control: global control qbits value
deg: degree to rotate
*/
func (reg *Register) RotY(val int, control int, deg float64) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.RotY(qbits, control, deg)
}
/*
Apply Rotate Gate to the value which specified val with control qbits.
val: local qbits value
control: global control qbits value
deg: degree to rotate
*/
func (reg *Register) RotZ(val int, control int, deg float64) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.RotZ(qbits, control, deg)
}
/*
Apply X Gate to the value with control qbits.
val: local qbits value
control: global control qbits value
*/
func (reg *Register) XAll() {
reg.circuit.X(int(reg.qBits), 0)
}
func (reg *Register) X(val int, control int) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.X(qbits, control)
}
/*
Apply Y Gate to the value with control qbits.
val: local qbits value
control: global control qbits value
*/
func (reg *Register) YAll() {
reg.circuit.Y(int(reg.qBits), 0)
}
func (reg *Register) Y(val int, control int) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.Y(qbits, control)
}
/*
Apply Z Gate to the value with control qbits.
val: local qbits value
control: global control qbits value
*/
func (reg *Register) ZAll() {
reg.circuit.Z(int(reg.qBits), 0)
}
func (reg *Register) Z(val int, control int) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.Z(qbits, control)
}
func (reg *Register) PhaseAll(deg float64) {
reg.circuit.Phase(int(reg.qBits), 0, deg)
}
func (reg *Register) Phase(val int, control int, deg float64) {
qbits := reg.ToGlobalQBits(val)
reg.circuit.Phase(qbits, control, deg)
}
/*
Apply Swap Gate to all qbits in this register
targetVal: local target qbits value
swapVal: local swap target qbits value
control: global control qbits value
*/
func (reg *Register) Swap(targetVal int, swapVal int, control int) {
tqbits := reg.ToGlobalQBits(targetVal)
reg.circuit.Swap(tqbits, swapVal, control)
}
/*
Shift the qbits value in this register with shift number.
control: global control qbits value
numShift: number of shift
*/
func (reg *Register) ShiftLeft(control int, numShift int) {
reg.circuit.ShiftLeft(int(reg.GetQBits()), control, numShift)
}
/*
Quantum version of Discrete Fourier transform(DFT)
Apply all qbits in this register.
*/
func (reg *Register) QFT() {
reg.circuit.QFT(int(reg.GetQBits()))
}
/*
Quantum version of Inversed Discrete Fourier transform(InvDFT)
Apply all qbits in this register.
*/
func (reg *Register) InversedQFT() {
reg.circuit.InversedQFT(int(reg.GetQBits()))
}
/*
Subtract the value with control qbits.
val: local qbits value
control: global control qbits value
Example: Subtract(3, 0)
*/
func (reg *Register) Subtract(val int, control int) {
reg.circuit.Subtract(int(reg.GetQBits()), val, control)
}
/*
Subtract a register
registerB: the register to subtract to this register
*/
func (reg *Register) SubtractRegister(registerB Register) {
reg.Subtract(int(registerB.GetQBits()>>registerB.shift), int(registerB.GetQBits()))
}
/*
Add the value with control qbits.
val: local qbits value
control: global control qbits value
Example: Add(3, 0)
*/
func (reg *Register) Add(val int, control int) {
reg.circuit.Add(int(reg.GetQBits()), val, control)
}
/*
Add a register
registerB: the register to add to this register
*/
func (reg *Register) AddRegister(registerB *Register) {
reg.Add(int(registerB.GetQBits()>>registerB.shift), int(registerB.GetQBits()))
} | register.go | 0.837221 | 0.504639 | register.go | starcoder |
package main
import (
"fmt"
)
// Structure of a node in the tree
type Node struct {
/* Every node has a data, pointer to its
left child and also right child.*/
data int
left *Node
right *Node
}
/* This function prints thre pre order traversal of
the tree recursively.*/
func pre_order(root *Node) {
// If we reach the end, return
if(root == nil) {
return
}
// Print the data
fmt.Print(root.data, " ")
// Call the function for left half
pre_order(root.left)
// Then, call for the right half
pre_order(root.right)
}
// This function creates a new node
func new_node(value int) *Node {
// It takes data to be stored as parameter
return &Node{value, nil, nil}
}
func form_tree(array []int) *Node {
/* The user input is considered as level
order traversal of the tree. This function
returns pointer to the root of the tree.*/
// This array contains all nodes in the tree
a := make([]*Node , len(array))
for i := 0; i < len(array); i++ {
a[i] = new_node(array[i])
}
// Below are some base cases for 1, 2, 3, 4 nodes
// If there is only one node return the node
if(len(array) == 1) {
return a[0]
}
// If there are two nodes
a[0].left = a[1]
if(len(array) == 2) {
// Point the second node to first and return
return a[0]
}
// If there are three nodes
a[0].right = a[2]
if(len(array) == 3) {
// Make a binary tree and return root node
return a[0]
}
// If there are four nodes
if(len(array) == 4) {
a[1].left = a[3]
return a[0]
}
// If there are more than four nodes
for i := 1; i < len(array); i++ {
// Point each node to its left and right child
a[i].left = a[2*i + 1]
a[i].right = a[2*i + 2]
// If we reach the end, return root node
if(2*i + 2 == len(array) - 1) {
return a[0]
}
}
// Return root node
return a[0]
}
func main() {
// Take number of nodes in the tree as input from the user
fmt.Print("Enter the number of nodes in the tree: ")
var n int
fmt.Scan(&n)
// Take the value of nodes as input
fmt.Print("Enter the value of nodes of tree in level order traversal manner: ")
array := make([]int, n)
for i := 0; i < n; i++ {
fmt.Scan(&array[i])
}
// Call the function and form the tree
var root *Node = form_tree(array)
// Call the pre order function and print it
fmt.Print("\nPre order traversal of the tree is: ")
pre_order(root)
fmt.Print("\n")
}
/*
Sample I/O:
Enter the number of nodes in the tree: 11
Enter the value of nodes of tree in level order traversal manner: 1 2 3 4 5 6 7 8 9 10 11
Pre order traversal of the tree is: 1 2 4 8 9 5 10 11 3 6 7
*/ | Go/ds/binary_tree/pre_order_traversal/Pre_Order_Traversal.go | 0.608594 | 0.621311 | Pre_Order_Traversal.go | starcoder |
package iso20022
// Net position of a segregated holding, in a single security, within the overall position held in a securities account at a specified place of safekeeping.
type AggregateBalancePerSafekeepingPlace2 struct {
// Total quantity of financial instrument for the referenced holding.
AggregateBalance *BalanceQuantity1Choice `xml:"AggtBal"`
// Specifies the number of days used for calculating the accrued interest amount.
DaysAccrued *Number `xml:"DaysAcrd,omitempty"`
// Total value of a balance of the securities account for a specific financial instrument, expressed in one or more currencies.
HoldingValue []*ActiveOrHistoricCurrencyAndAmount `xml:"HldgVal"`
// Interest amount that has accrued in between coupon payment periods.
AccruedInterestAmount *ActiveOrHistoricCurrencyAndAmount `xml:"AcrdIntrstAmt,omitempty"`
// Value of a security, as booked in an account. Book value is often different from the current market value of the security.
BookValue *ActiveOrHistoricCurrencyAndAmount `xml:"BookVal,omitempty"`
// Place where the securities are safe-kept, physically or notionally. This place can be, for example, a local custodian, a Central Securities Depository (CSD) or an International Securities Depository (ICSD).
SafekeepingPlace *SafekeepingPlaceFormatChoice `xml:"SfkpgPlc"`
// Price of the financial instrument in one or more currencies.
PriceDetails []*PriceInformation1 `xml:"PricDtls"`
// Currency exchange related to a securities order.
ForeignExchangeDetails *ForeignExchangeTerms3 `xml:"FrgnXchgDtls,omitempty"`
// Net position of a segregated holding of a single security within the overall position held in a securities account, eg, sub-balance per status.
BalanceBreakdownDetails []*SubBalanceInformation1 `xml:"BalBrkdwnDtls,omitempty"`
// Net position of a segregated holding, in a single security, within the overall position held in a securities account.
AdditionalBalanceBreakdownDetails []*AdditionalBalanceInformation `xml:"AddtlBalBrkdwnDtls,omitempty"`
}
func (a *AggregateBalancePerSafekeepingPlace2) AddAggregateBalance() *BalanceQuantity1Choice {
a.AggregateBalance = new(BalanceQuantity1Choice)
return a.AggregateBalance
}
func (a *AggregateBalancePerSafekeepingPlace2) SetDaysAccrued(value string) {
a.DaysAccrued = (*Number)(&value)
}
func (a *AggregateBalancePerSafekeepingPlace2) AddHoldingValue(value, currency string) {
a.HoldingValue = append(a.HoldingValue, NewActiveOrHistoricCurrencyAndAmount(value, currency))
}
func (a *AggregateBalancePerSafekeepingPlace2) SetAccruedInterestAmount(value, currency string) {
a.AccruedInterestAmount = NewActiveOrHistoricCurrencyAndAmount(value, currency)
}
func (a *AggregateBalancePerSafekeepingPlace2) SetBookValue(value, currency string) {
a.BookValue = NewActiveOrHistoricCurrencyAndAmount(value, currency)
}
func (a *AggregateBalancePerSafekeepingPlace2) AddSafekeepingPlace() *SafekeepingPlaceFormatChoice {
a.SafekeepingPlace = new(SafekeepingPlaceFormatChoice)
return a.SafekeepingPlace
}
func (a *AggregateBalancePerSafekeepingPlace2) AddPriceDetails() *PriceInformation1 {
newValue := new(PriceInformation1)
a.PriceDetails = append(a.PriceDetails, newValue)
return newValue
}
func (a *AggregateBalancePerSafekeepingPlace2) AddForeignExchangeDetails() *ForeignExchangeTerms3 {
a.ForeignExchangeDetails = new(ForeignExchangeTerms3)
return a.ForeignExchangeDetails
}
func (a *AggregateBalancePerSafekeepingPlace2) AddBalanceBreakdownDetails() *SubBalanceInformation1 {
newValue := new(SubBalanceInformation1)
a.BalanceBreakdownDetails = append(a.BalanceBreakdownDetails, newValue)
return newValue
}
func (a *AggregateBalancePerSafekeepingPlace2) AddAdditionalBalanceBreakdownDetails() *AdditionalBalanceInformation {
newValue := new(AdditionalBalanceInformation)
a.AdditionalBalanceBreakdownDetails = append(a.AdditionalBalanceBreakdownDetails, newValue)
return newValue
} | AggregateBalancePerSafekeepingPlace2.go | 0.874131 | 0.517266 | AggregateBalancePerSafekeepingPlace2.go | starcoder |
package circuits
import (
"fmt"
"math"
"time"
"github.com/markkurossi/mpc/circuit"
"github.com/markkurossi/mpc/compiler/utils"
"github.com/markkurossi/mpc/types"
)
// Builtin implements a buitin circuit that uses input wires a and b
// and returns the circuit result in r.
type Builtin func(cc *Compiler, a, b, r []*Wire) error
// Compiler implements binary circuit compiler.
type Compiler struct {
Params *utils.Params
OutputsAssigned bool
Inputs circuit.IO
Outputs circuit.IO
InputWires []*Wire
OutputWires []*Wire
Gates []*Gate
nextWireID uint32
pending []*Gate
assigned []*Gate
compiled []circuit.Gate
wiresX map[string][]*Wire
zeroWire *Wire
oneWire *Wire
}
// NewCompiler creates a new circuit compiler for the specified
// circuit input and output values.
func NewCompiler(params *utils.Params, inputs, outputs circuit.IO,
inputWires, outputWires []*Wire) (*Compiler, error) {
if len(inputWires) == 0 {
return nil, fmt.Errorf("no inputs defined")
}
return &Compiler{
Params: params,
Inputs: inputs,
Outputs: outputs,
InputWires: inputWires,
OutputWires: outputWires,
Gates: make([]*Gate, 0, 65536),
}, nil
}
// ZeroWire returns a wire holding value 0.
func (c *Compiler) ZeroWire() *Wire {
if c.zeroWire == nil {
c.zeroWire = NewWire()
c.AddGate(NewBinary(circuit.XOR, c.InputWires[0], c.InputWires[0],
c.zeroWire))
c.zeroWire.Value = Zero
}
return c.zeroWire
}
// OneWire returns a wire holding value 1.
func (c *Compiler) OneWire() *Wire {
if c.oneWire == nil {
c.oneWire = NewWire()
c.AddGate(NewBinary(circuit.XNOR, c.InputWires[0], c.InputWires[0],
c.oneWire))
c.oneWire.Value = One
}
return c.oneWire
}
// ZeroPad pads the argument wires x and y with zero values so that
// the resulting wires have the same number of bits.
func (c *Compiler) ZeroPad(x, y []*Wire) ([]*Wire, []*Wire) {
if len(x) == len(y) {
return x, y
}
max := len(x)
if len(y) > max {
max = len(y)
}
rx := make([]*Wire, max)
for i := 0; i < max; i++ {
if i < len(x) {
rx[i] = x[i]
} else {
rx[i] = c.ZeroWire()
}
}
ry := make([]*Wire, max)
for i := 0; i < max; i++ {
if i < len(y) {
ry[i] = y[i]
} else {
ry[i] = c.ZeroWire()
}
}
return rx, ry
}
// ShiftLeft shifts the size number of bits of the input wires w,
// count bits left.
func (c *Compiler) ShiftLeft(w []*Wire, size, count int) []*Wire {
result := make([]*Wire, size)
if count < size {
copy(result[count:], w)
}
for i := 0; i < count; i++ {
result[i] = c.ZeroWire()
}
for i := count + len(w); i < size; i++ {
result[i] = c.ZeroWire()
}
return result
}
// INV creates an inverse wire inverting the input wire i's value to
// the output wire o.
func (c *Compiler) INV(i, o *Wire) {
c.AddGate(NewBinary(circuit.XOR, i, c.OneWire(), o))
}
// ID creates an identity wire passing the input wire i's value to the
// output wire o.
func (c *Compiler) ID(i, o *Wire) {
c.AddGate(NewBinary(circuit.XOR, i, c.ZeroWire(), o))
}
// AddGate adds a get into the circuit.
func (c *Compiler) AddGate(gate *Gate) {
c.Gates = append(c.Gates, gate)
}
// SetNextWireID sets the next unique wire ID to use.
func (c *Compiler) SetNextWireID(next uint32) {
c.nextWireID = next
}
// NextWireID returns the next unique wire ID.
func (c *Compiler) NextWireID() uint32 {
ret := c.nextWireID
c.nextWireID++
return ret
}
// ConstPropagate propagates constant wire values in the circuit and
// short circuits gates if their output does not depend on the gate's
// logical operation.
func (c *Compiler) ConstPropagate() {
var stats circuit.Stats
start := time.Now()
for _, g := range c.Gates {
switch g.Op {
case circuit.XOR:
if (g.A.Value == Zero && g.B.Value == Zero) ||
(g.A.Value == One && g.B.Value == One) {
g.O.Value = Zero
stats[g.Op]++
} else if (g.A.Value == Zero && g.B.Value == One) ||
(g.A.Value == One && g.B.Value == Zero) {
g.O.Value = One
stats[g.Op]++
} else if g.A.Value == Zero {
// O = B
stats[g.Op]++
g.ShortCircuit(g.B)
} else if g.B.Value == Zero {
// O = A
stats[g.Op]++
g.ShortCircuit(g.A)
}
case circuit.XNOR:
if (g.A.Value == Zero && g.B.Value == Zero) ||
(g.A.Value == One && g.B.Value == One) {
g.O.Value = One
stats[g.Op]++
} else if (g.A.Value == Zero && g.B.Value == One) ||
(g.A.Value == One && g.B.Value == Zero) {
g.O.Value = Zero
stats[g.Op]++
}
case circuit.AND:
if g.A.Value == Zero || g.B.Value == Zero {
g.O.Value = Zero
stats[g.Op]++
} else if g.A.Value == One && g.B.Value == One {
g.O.Value = One
stats[g.Op]++
} else if g.A.Value == One {
// O = B
stats[g.Op]++
g.ShortCircuit(g.B)
} else if g.B.Value == One {
// O = A
stats[g.Op]++
g.ShortCircuit(g.A)
}
case circuit.OR:
if g.A.Value == One || g.B.Value == One {
g.O.Value = One
stats[g.Op]++
} else if g.A.Value == Zero && g.B.Value == Zero {
g.O.Value = Zero
stats[g.Op]++
} else if g.A.Value == Zero {
// O = B
stats[g.Op]++
g.ShortCircuit(g.B)
} else if g.B.Value == Zero {
// O = A
stats[g.Op]++
g.ShortCircuit(g.A)
}
case circuit.INV:
if g.A.Value == One {
g.O.Value = Zero
stats[g.Op]++
} else if g.A.Value == Zero {
g.O.Value = One
stats[g.Op]++
}
}
if g.A.Value == Zero {
g.A.RemoveOutput(g)
g.A = c.ZeroWire()
g.A.AddOutput(g)
} else if g.A.Value == One {
g.A.RemoveOutput(g)
g.A = c.OneWire()
g.A.AddOutput(g)
}
if g.B != nil {
if g.B.Value == Zero {
g.B.RemoveOutput(g)
g.B = c.ZeroWire()
g.B.AddOutput(g)
} else if g.B.Value == One {
g.B.RemoveOutput(g)
g.B = c.OneWire()
g.B.AddOutput(g)
}
}
}
elapsed := time.Since(start)
if c.Params.Diagnostics && stats.Count() > 0 {
fmt.Printf(" - ConstPropagate: %12s: %d/%d (%.2f%%)\n",
elapsed, stats.Count(), len(c.Gates),
float64(stats.Count())/float64(len(c.Gates))*100)
}
}
// Prune removes all gates whose output wires are unused.
func (c *Compiler) Prune() int {
n := make([]*Gate, len(c.Gates))
nPos := len(n)
for i := len(c.Gates) - 1; i >= 0; i-- {
g := c.Gates[i]
if !g.Prune() {
nPos--
n[nPos] = g
}
}
c.Gates = n[nPos:]
return nPos
}
// Compile compiles the circuit.
func (c *Compiler) Compile() *circuit.Circuit {
if len(c.pending) != 0 {
panic("Compile: pending set")
}
c.pending = make([]*Gate, 0, len(c.Gates))
if len(c.assigned) != 0 {
panic("Compile: assigned set")
}
c.assigned = make([]*Gate, 0, len(c.Gates))
if len(c.compiled) != 0 {
panic("Compile: compiled set")
}
c.compiled = make([]circuit.Gate, 0, len(c.Gates))
for _, w := range c.InputWires {
w.Assign(c)
}
for len(c.pending) > 0 {
gate := c.pending[0]
c.pending = c.pending[1:]
gate.Assign(c)
}
// Assign outputs.
for _, w := range c.OutputWires {
if w.Assigned() {
if !c.OutputsAssigned {
panic("Output already assigned")
}
} else {
w.ID = c.NextWireID()
}
}
// Compile circuit.
for _, gate := range c.assigned {
gate.Compile(c)
}
var stats circuit.Stats
for _, g := range c.compiled {
stats[g.Op]++
}
result := &circuit.Circuit{
NumGates: len(c.compiled),
NumWires: int(c.nextWireID),
Inputs: c.Inputs,
Outputs: c.Outputs,
Gates: c.compiled,
Stats: stats,
}
return result
}
const (
// UnassignedID identifies an unassigned wire ID.
UnassignedID uint32 = math.MaxUint32
)
// Wire implements a wire connecting binary gates.
type Wire struct {
Output bool
Value WireValue
ID uint32
NumOutputs uint32
Input *Gate
Outputs []*Gate
}
// WireValue defines wire values.
type WireValue uint8
// Possible wire values.
const (
Unknown WireValue = iota
Zero
One
)
func (v WireValue) String() string {
switch v {
case Zero:
return "0"
case One:
return "1"
default:
return "?"
}
}
// Assigned tests if the wire is assigned with an unique ID.
func (w *Wire) Assigned() bool {
return w.ID != UnassignedID
}
// NewWire creates an unassigned wire.
func NewWire() *Wire {
return &Wire{
ID: UnassignedID,
Outputs: make([]*Gate, 0, 1),
}
}
// MakeWires creates bits number of wires.
func MakeWires(bits types.Size) []*Wire {
result := make([]*Wire, bits)
for i := 0; i < int(bits); i++ {
result[i] = NewWire()
}
return result
}
func (w *Wire) String() string {
return fmt.Sprintf("Wire{%x, Input:%s, Value:%s, Outputs:%v, Output=%v}",
w.ID, w.Input, w.Value, w.Outputs, w.Output)
}
// Assign assings wire ID.
func (w *Wire) Assign(c *Compiler) {
if w.Output {
return
}
if !w.Assigned() {
w.ID = c.NextWireID()
}
for _, output := range w.Outputs {
output.Visit(c)
}
}
// SetInput sets the wire's input gate.
func (w *Wire) SetInput(gate *Gate) {
if w.Input != nil {
panic("Input gate already set")
}
w.Input = gate
}
// AddOutput adds gate to the wire's output gates.
func (w *Wire) AddOutput(gate *Gate) {
w.Outputs = append(w.Outputs, gate)
w.NumOutputs++
}
// RemoveOutput removes gate from the wire's output gates.
func (w *Wire) RemoveOutput(gate *Gate) {
w.NumOutputs--
} | compiler/circuits/compiler.go | 0.693888 | 0.466299 | compiler.go | starcoder |
package models
import (
"math/rand"
"github.com/DheerendraRathor/GoTracer/utils"
)
type Material interface {
Scatter(*Ray, *HitRecord, *rand.Rand) (bool, *Vector, *Ray)
IsLight() bool
}
type BaseMaterial struct {
Albedo *Vector
isLight bool
}
func NewBaseMaterial(albedo *Vector, isLight bool) *BaseMaterial {
return &BaseMaterial{
Albedo: albedo,
isLight: isLight,
}
}
func (b *BaseMaterial) IsLight() bool {
return b.isLight
}
type Lambertian struct {
*BaseMaterial
}
func NewLambertian(albedo *Vector) *Lambertian {
return &Lambertian{
BaseMaterial: NewBaseMaterial(albedo, false),
}
}
func (l *Lambertian) Scatter(ray *Ray, hitRecord *HitRecord, rng *rand.Rand) (bool, *Vector, *Ray) {
pN := RandomPointInUnitSphere(rng).
AddVector(hitRecord.N)
scattered := Ray{
Origin: hitRecord.P,
Direction: pN,
}
return true, l.Albedo.Copy(), &scattered
}
type Metal struct {
*BaseMaterial
fuzz float64
}
func NewMetal(albedo *Vector, fuzz float64) *Metal {
return &Metal{
BaseMaterial: NewBaseMaterial(albedo, false),
fuzz: fuzz,
}
}
func (m *Metal) Scatter(ray *Ray, hitRecord *HitRecord, rng *rand.Rand) (bool, *Vector, *Ray) {
reflected := ray.Direction.Copy().Reflect(hitRecord.N).MakeUnitVector()
scattered := Ray{
hitRecord.P,
reflected.AddScaledVector(RandomPointInUnitSphere(rng), m.fuzz),
}
shouldScatter := scattered.Direction.Dot(hitRecord.N) > 0
return shouldScatter, m.Albedo.Copy(), &scattered
}
type Dielectric struct {
*BaseMaterial
RefIndex float64
}
func (d *Dielectric) Scatter(ray *Ray, hitRecord *HitRecord, rng *rand.Rand) (bool, *Vector, *Ray) {
reflected := ray.Direction.Copy().Reflect(hitRecord.N)
var outwardNormal *Vector
var ni, nt, cosine, reflectionProb float64
if ray.Direction.Dot(hitRecord.N) > 0 {
outwardNormal = hitRecord.N.Copy().Negate()
ni = d.RefIndex
nt = 1
cosine = d.RefIndex * ray.Direction.Dot(hitRecord.N) / ray.Direction.Length()
} else {
outwardNormal = hitRecord.N
ni = 1
nt = d.RefIndex
cosine = -ray.Direction.Dot(hitRecord.N) / ray.Direction.Length()
}
var scattered *Ray
willRefract, refractedVec := Refract(ray.Direction, outwardNormal, ni, nt)
if willRefract {
reflectionProb = utils.Schlick(cosine, ni, nt)
} else {
reflectionProb = 1.0
}
if rng.Float64() < reflectionProb {
scattered = &Ray{hitRecord.P, reflected}
} else {
scattered = &Ray{hitRecord.P, refractedVec}
}
return true, d.Albedo.Copy(), scattered
}
func NewDielectric(albedo *Vector, r float64) *Dielectric {
return &Dielectric{
BaseMaterial: NewBaseMaterial(albedo, false),
RefIndex: r,
}
}
type Light struct {
*BaseMaterial
}
func NewLight(albedo *Vector) *Light {
return &Light{
BaseMaterial: NewBaseMaterial(albedo, true),
}
}
func (l *Light) Scatter(ray *Ray, hitRecord *HitRecord, rng *rand.Rand) (bool, *Vector, *Ray) {
return false, l.Albedo.Copy(), nil
} | models/material.go | 0.782247 | 0.450782 | material.go | starcoder |
package aggregation
import (
"sync"
"time"
)
// TimedFloat64Buckets keeps buckets that have been collected at a certain time.
type TimedFloat64Buckets struct {
bucketsMutex sync.RWMutex
buckets map[time.Time]float64Bucket
granularity time.Duration
}
// NewTimedFloat64Buckets generates a new TimedFloat64Buckets with the given
// granularity.
func NewTimedFloat64Buckets(granularity time.Duration) *TimedFloat64Buckets {
return &TimedFloat64Buckets{
buckets: make(map[time.Time]float64Bucket),
granularity: granularity,
}
}
// Record adds a value with an associated time to the correct bucket.
func (t *TimedFloat64Buckets) Record(time time.Time, name string, value float64) {
t.bucketsMutex.Lock()
defer t.bucketsMutex.Unlock()
bucketKey := time.Truncate(t.granularity)
bucket, ok := t.buckets[bucketKey]
if !ok {
bucket = float64Bucket{}
t.buckets[bucketKey] = bucket
}
bucket.record(name, value)
}
// isEmpty returns whether or not there are no values currently stored.
// isEmpty requires t.bucketMux to be held.
func (t *TimedFloat64Buckets) isEmpty() bool {
return len(t.buckets) == 0
}
// ForEachBucket calls the given Accumulator function for each bucket.
// Returns true if any data was recorded.
func (t *TimedFloat64Buckets) ForEachBucket(accs ...Accumulator) bool {
t.bucketsMutex.RLock()
defer t.bucketsMutex.RUnlock()
if t.isEmpty() {
return false
}
for bucketTime, bucket := range t.buckets {
for _, acc := range accs {
acc(bucketTime, bucket)
}
}
return true
}
// RemoveOlderThan removes buckets older than the given time from the state.
func (t *TimedFloat64Buckets) RemoveOlderThan(time time.Time) {
t.bucketsMutex.Lock()
defer t.bucketsMutex.Unlock()
for bucketTime := range t.buckets {
if bucketTime.Before(time) {
delete(t.buckets, bucketTime)
}
}
}
// float64Bucket keeps all the stats that fall into a defined bucket.
type float64Bucket map[string]float64Value
// float64Value is a single value for a Float64Bucket. It maintains a summed
// up value and a count to ultimately calculate an average.
type float64Value struct {
sum float64
count float64
}
// record adds a value to the bucket. Buckets with the same given name
// will be collapsed.
func (b float64Bucket) record(name string, value float64) {
current := b[name]
b[name] = float64Value{
sum: current.sum + value,
count: current.count + 1.0,
}
}
// sum calculates the sum over the bucket. Values of the same name in
// the same bucket will be averaged between themselves first.
func (b float64Bucket) sum() float64 {
var total float64
for _, value := range b {
total += value.sum / value.count
}
return total
} | pkg/autoscaler/aggregation/bucketing.go | 0.81899 | 0.509093 | bucketing.go | starcoder |
package types
// A Kind represents the specific kind of type that a Type represents.
// The zero Kind is not a valid kind.
type Kind uint
// KindString implements fmt.Stringer interface.
func (k Kind) String() string {
name, ok := kindNameMap[k]
if !ok {
return "Invalid"
}
return name
}
// IsNumber checks if given kind is of number (integers, floats)
func (k Kind) IsNumber() bool {
return k >= KindInt && k <= KindFloat64
}
// IsBuiltin checks if given kind is
func (k Kind) IsBuiltin() bool {
return k >= KindBool && k <= KindString
}
// BuiltInName gets the name of the builtin kind.
func (k Kind) BuiltInName() string {
if k == Invalid {
return "_INVALID_KIND_"
}
if !k.IsBuiltin() {
return "_NOT_BUILT_IN_"
}
return builtInNames[k-1]
}
// Enumerated kind representations.
const (
Invalid Kind = iota
KindBool
KindInt
KindInt8
KindInt16
KindInt32
KindInt64
KindUint
KindUint8
KindUint16
KindUint32
KindUint64
KindUintptr
KindFloat32
KindFloat64
KindComplex64
KindComplex128
KindString
KindArray
KindChan
KindFunc
KindInterface
KindMap
KindPtr
KindSlice
KindStruct
KindUnsafePointer
)
var stdKindMap = map[string]Kind{"int": KindInt, "int8": KindInt8, "int16": KindInt16, "int32": KindInt32, "int64": KindInt64, "uint": KindUint, "uint8": KindUint8, "uint16": KindUint16, "uint32": KindUint32, "uint64": KindUint64, "float32": KindFloat32, "float64": KindFloat64, "string": KindString, "bool": KindBool, "uintptr": KindUintptr, "complex64": KindComplex64, "complex128": KindComplex128}
var builtInNames = [KindString]string{"bool", "int", "int8", "int16", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint64", "uintptr", "float32", "float64", "complex64", "complex128", "string"}
var kindNameMap = map[Kind]string{Invalid: "Invalid", KindBool: "Bool", KindInt: "Int", KindInt8: "Int8", KindInt16: "Int16", KindInt32: "Int32", KindInt64: "Int64", KindUint: "Uint", KindUint8: "Uint8", KindUint16: "Uint16", KindUint32: "Uint32", KindUint64: "Uint64", KindUintptr: "Uintptr", KindFloat32: "Float32", KindFloat64: "Float64", KindComplex64: "Complex64", KindComplex128: "Complex128", KindArray: "Array", KindChan: "Chan", KindFunc: "Func", KindInterface: "Interface", KindMap: "Map", KindPtr: "Ptr", KindSlice: "Slice", KindString: "String", KindStruct: "Struct", KindUnsafePointer: "UnsafePointer"} | types/kind.go | 0.781539 | 0.470919 | kind.go | starcoder |
package utils
import (
"fmt"
"strconv"
"strings"
"unsafe"
)
// ToSliceByte converts an unsafe.Pointer to a slice of byte
// Usage:
// f := []float64{1.0, 2.0, 3.0}
// b := ToSliceByte(unsafe.Pointer(&f[0]), len(f)*8)
func ToSliceByte(ptr unsafe.Pointer, l int) []byte {
sl := (*[1]byte)(ptr)[:]
setCapLen(unsafe.Pointer(&sl), l)
return sl
}
func convertSize(b []byte, d int) int {
l := len(b)
if l%d != 0 {
panic(fmt.Sprintf("len must be a multiple of %d", d))
}
return l / d
}
// SliceByteToUInt16 converts a slice of byte to a slice of uint16
func SliceByteToUInt16(b []byte) []uint16 {
r := (*[1]uint16)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 2))
return r
}
// SliceByteToUInt32 converts a slice of byte to a slice of uint32
func SliceByteToUInt32(b []byte) []uint32 {
r := (*[1]uint32)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 4))
return r
}
// SliceByteToInt8 converts a slice of byte to a slice of int8
func SliceByteToInt8(b []byte) []int8 {
r := (*[1]int8)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 1))
return r
}
// SliceByteToInt16 converts a slice of byte to a slice of int16
func SliceByteToInt16(b []byte) []int16 {
r := (*[1]int16)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 2))
return r
}
// SliceByteToInt32 converts a slice of byte to a slice of int32
func SliceByteToInt32(b []byte) []int32 {
r := (*[1]int32)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 4))
return r
}
// SliceByteToFloat32 converts a slice of byte to a slice of float32
func SliceByteToFloat32(b []byte) []float32 {
r := (*[1]float32)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 4))
return r
}
// SliceByteToFloat64 converts a slice of byte to a slice of float34
func SliceByteToFloat64(b []byte) []float64 {
r := (*[1]float64)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 8))
return r
}
// SliceByteToComplex64 converts a slice of byte to a slice of complex64
func SliceByteToComplex64(b []byte) []complex64 {
r := (*[1]complex64)(unsafe.Pointer(&b[0]))[:]
setCapLen(unsafe.Pointer(&r), convertSize(b, 8))
return r
}
// Ugly function to set the capacity and the length of a slice
func setCapLen(ptr unsafe.Pointer, l int) {
addrSize := unsafe.Sizeof(uintptr(0))
lenPtr := unsafe.Pointer(uintptr(ptr) + addrSize) // Capture the address where the length and cap size is stored
capPtr := unsafe.Pointer(uintptr(ptr) + 2*addrSize) // WARNING: This is fragile, depending on a go-internal structure.
*(*int)(lenPtr) = l
*(*int)(capPtr) = l
}
// SliceInt64Equal returns true if the two slices contain the same elements
func SliceInt64Equal(a, b []int64) bool {
// For big slices, it's more efficient to use ToSliceByte and bytes.Equal ?
if len(a) != len(b) {
return false
}
for i, v := range a {
if v != b[i] {
return false
}
}
return true
}
// SliceFloat64Equal returns true if the two slices contain the same elements
func SliceFloat64Equal(a, b []float64) bool {
// For big slices, it's more efficient to use ToSliceByte and bytes.Equal ?
if len(a) != len(b) {
return false
}
for i, v := range a {
if v != b[i] {
return false
}
}
return true
}
// JoinInt64 is the int64 equivalent of strings.Join
func JoinInt64(elems []int64, sep string) string {
strelems := make([]string, len(elems))
for i, e := range elems {
strelems[i] = strconv.Itoa(int(e))
}
return strings.Join(strelems, sep)
}
// StringSet is a set of strings (all elements are unique)
type StringSet map[string]struct{}
// Push adds the string to the set if not already exists
func (ss StringSet) Push(s string) {
ss[s] = struct{}{}
}
// Pop removes the string from the set
func (ss StringSet) Pop(s string) {
delete(ss, s)
}
// Slice returns a slice from the set
func (ss StringSet) Slice() []string {
sl := make([]string, 0, len(ss))
for k := range ss {
sl = append(sl, k)
}
return sl
}
// Exists returns true if the string already exists in the Set
func (ss StringSet) Exists(s string) bool {
_, ok := ss[s]
return ok
} | internal/utils/slice.go | 0.737347 | 0.450299 | slice.go | starcoder |
package ast
// Declaration represents a Declaration node.
type Declaration struct {
HoistableDeclaration *HoistableDeclaration
ClassDeclaration *ClassDeclaration
LexicalDeclaration *LexicalDeclaration
}
// HoistableDeclaration represents a HoistableDeclaration node.
type HoistableDeclaration struct {
FunctionDeclaration *FunctionDeclaration
GeneratorDeclaration *GeneratorDeclaration
AsyncFunctionDeclaration *AsyncFunctionDeclaration
AsyncGeneratorDeclaration *AsyncGeneratorDeclaration
}
// FunctionDeclaration represents a FunctionDeclaration node.
type FunctionDeclaration struct {
BindingIdentifier *BindingIdentifier
FormalParameters *FormalParameters
FunctionBody *FunctionBody
}
// GeneratorDeclaration represents a GeneratorDeclaration node.
type GeneratorDeclaration struct {
BindingIdentifier *BindingIdentifier
FormalParameters *FormalParameters
GeneratorBody *GeneratorBody
}
// VariableDeclarationList represents a VariableDeclarationList node.
type VariableDeclarationList struct {
VariableDeclarations []*VariableDeclaration
}
// VariableDeclaration represents a VariableDeclaration node.
type VariableDeclaration struct {
BindingIdentifier *BindingIdentifier
BindingPattern *BindingPattern
Initializer *Initializer
}
// ForDeclaration represents a ForDeclaration node.
type ForDeclaration struct {
LetOrConst *LetOrConst
ForBinding *ForBinding
}
// LexicalDeclaration represents a LexicalDeclaration node.
type LexicalDeclaration struct {
LetOrConst *LetOrConst
BindingList *BindingList
}
// ClassDeclaration represents a ClassDeclaration node.
type ClassDeclaration struct {
BindingIdentifier *BindingIdentifier
ClassTail *ClassTail
}
// AsyncFunctionDeclaration represents a AsyncFunctionDeclaration node.
type AsyncFunctionDeclaration struct {
BindingIdentifier *BindingIdentifier
AsyncFunctionBody *AsyncFunctionBody
FormalParameters *FormalParameters
}
// AsyncGeneratorDeclaration represents a AsyncGeneratorDeclaration node.
type AsyncGeneratorDeclaration struct {
BindingIdentifier *BindingIdentifier
AsyncGeneratorBody *AsyncGeneratorBody
FormalParameters *FormalParameters
} | internal/parser/ast/declaration.go | 0.603698 | 0.506347 | declaration.go | starcoder |
package math
import (
"math"
"math/bits"
)
// @param m `1 <= m`
// @return x mod m
func SafeMod(x, m int64) int64 {
x %= m
if x < 0 {
x += m
}
return x
}
// Fast moduler by barrett reduction
type Barrett struct {
M uint
Im uint64
}
// @param m `1 <= m`
func NewBarrett(m uint) *Barrett {
return &Barrett{
M: m,
// im: uint64(-1)/m + 1,
Im: math.MaxUint64/uint64(m) + 1,
}
}
// @return m
func (barrett *Barrett) Umod() uint {
return barrett.M
}
// @param a `0 <= a < m`
// @param b `0 <= b < m`
// @return `a * b mod m`
func (barrett *Barrett) Mul(a, b uint) uint {
z := uint64(a)
z *= uint64(b)
x, _ := bits.Mul64(z, barrett.Im)
v := uint(z - x*uint64(barrett.M))
if barrett.M <= v {
v += barrett.M
}
return v
}
// @param n `0 <= n`
// @param m `1 <= m`
// @return `(x ** n) % m`
func PowMod(x, n int64, m int) int64 {
if m == 1 {
return 0
}
um := uint(m)
r := uint64(1)
y := uint64(SafeMod(x, int64(m)))
for n > 0 {
if n&1 > 0 {
r = (r * y) % uint64(um)
}
y = (y * y) % uint64(um)
n >>= 1
}
return int64(r)
}
// @param n `0 <= n`
func IsPrime(n int) bool {
if n <= 1 {
return false
}
if n == 2 || n == 7 || n == 61 {
return true
}
if n%2 == 0 {
return false
}
d := int64(n - 1)
for d%2 == 0 {
d /= 2
}
for _, a := range []int64{2, 7, 61} {
t := d
y := PowMod(a, t, n)
for t != int64(n-1) && y != 1 && y != int64(n-1) {
y = y * y % int64(n)
t <<= 1
}
if y != int64(n-1) && t%2 == 0 {
return false
}
}
return true
}
// @param b `1 <= b`
// @return (g, x) s.t. g = gcd(a, b), xa = g (mod b), 0 <= x < b/g
func InvGcd(a, b int64) (int64, int64) {
a = SafeMod(a, b)
if a == 0 {
return b, 0
}
s := b
t := a
m0 := int64(0)
m1 := int64(1)
for t > 0 {
u := s / t
s -= t * u
m0 -= m1 * u
tmp := s
s = t
t = tmp
tmp = m0
m0 = m1
m1 = tmp
}
if m0 < 0 {
m0 += b / s
}
return s, m0
}
// @param m must be prime
// @return primitive root (and minimum in now)
func PrimitiveRoot(m int) int {
if m == 2 {
return 1
}
if m == 167772161 {
return 3
}
if m == 469762049 {
return 3
}
if m == 754974721 {
return 11
}
if m == 998244353 {
return 3
}
var divs [20]int
divs[0] = 2
cnt := 1
x := (m - 1) / 2
for x%2 == 0 {
x /= 2
}
for i := 3; int64(i)*int64(i) <= int64(x); i += 2 {
if x%i == 0 {
divs[cnt] = i
cnt++
for x%i == 0 {
x /= i
}
}
}
if x > 1 {
divs[cnt] = x
cnt++
}
for g := 2; ; g++ {
ok := true
for i := 0; i < cnt; i++ {
if PowMod(int64(g), int64((m-1)/divs[i]), m) == 1 {
ok = false
break
}
}
if ok {
return g
}
}
} | internal/math/math.go | 0.558327 | 0.420064 | math.go | starcoder |
package graph
import (
"strings"
"github.com/srafi1/LineForge/ansi"
"github.com/srafi1/LineForge/mathstring"
)
type Point struct {
x float64
y float64
myString string
myColor string
}
func (p *Point) New() {
p.checkAxis(-1)
p.myString = " "
}
//toString prints myString with whatever color the point is.
func (p *Point) String() string {
return p.myColor + p.myString + ansi.RESET
}
//makes myString blank
func (p *Point) reset() {
p.myString = " "
p.myColor = ansi.WHITE
}
//this version of checkAxis does a "close enough" to axis sorta thing
func (p *Point) checkAxis(halfInc float64) {
nearX := p.x < halfInc && p.x > -1*halfInc
nearY := p.y < halfInc && p.y > -1*halfInc
if nearX && nearY {
p.myString = "+"
} else if nearX {
p.myString = "|"
} else if nearY {
p.myString = "-"
}
}
//substitues its coordinates into a given equation and checks for equality
func (p *Point) subEq(eq string) bool {
eq = mathstring.Sub(eq, "x", p.x)
eq = mathstring.Sub(eq, "y", p.y)
return mathstring.IsEqual(eq)
}
//sets myColor variable using ANSI codes
func (p *Point) setColor(graphNum int) {
graphNum = graphNum % 7
switch graphNum {
case 0:
p.myColor = ansi.WHITE
break
case 1:
p.myColor = ansi.RED
break
case 2:
p.myColor = ansi.GREEN
break
case 3:
p.myColor = ansi.YELLOW
break
case 4:
p.myColor = ansi.BLUE
break
case 5:
p.myColor = ansi.PURPLE
break
case 6:
p.myColor = ansi.CYAN
break
}
}
//closeEnough but with colors
func (p *Point) CloseEnoughColor(eq string, halfInc float64, graphNum int) {
graphed := p.myString == "*"
p.myString = " "
p.closeEnough(eq, halfInc)
if p.myString == "*" {
p.setColor(graphNum)
} else if graphed {
p.myString = "*"
}
}
//long and complicated algorithm that determines whether or not a point is close enough to the curve of a graph
func (p *Point) closeEnough(eq string, halfInc float64) {
center := mathstring.Sub(eq, "x", p.x)
center = mathstring.Sub(center, "y", p.y)
divZero := mathstring.DivZero(center)
center = mathstring.EvaluateParens(center)
divZeroIndex := strings.Index(center, "/0.0")
var numNext bool
if len(center) > divZeroIndex + 4 {
nextChar := center[divZeroIndex+4:divZeroIndex+5]
numNext = strings.Index(mathstring.GetNumbers(), nextChar) != -1
} else {
numNext = false
}
if divZero || divZeroIndex != -1 && halfInc > 0.001 && !numNext {
//handle asymptotes
p.checkAxis(halfInc)
origX := p.x
origY := p.y
p.setCor(origX + halfInc/2, origY + halfInc/2)
p.closeEnough(eq, halfInc/2 - 0.01)
if p.myString != "*" {
p.setCor(origX + halfInc/2, origY - halfInc/2)
p.closeEnough(eq, halfInc/2 - 0.01)
}
if p.myString != "*" {
p.setCor(origX - halfInc/2, origY - halfInc/2)
p.closeEnough(eq, halfInc/2 - 0.01)
}
if p.myString != "*" {
p.setCor(origX - halfInc/2, origY + halfInc/2)
p.closeEnough(eq, halfInc/2 - 0.01)
}
p.setCor(origX, origY)
if p.myString != "*" {
p.checkAxis(halfInc)
}
return
}
positives := false
negatives := false
if mathstring.IsEqual(center) {
p.myString = "*"
return
}
eq1 := mathstring.Sub(eq, "x", p.x + halfInc)
eq1 = mathstring.Sub(eq1, "y", p.y + halfInc)
if mathstring.SubSides(eq1) == -1 {
negatives = true
} else if (mathstring.SubSides(eq1) == 1) {
positives = true
}
eq2 := mathstring.Sub(eq, "x", p.x - halfInc)
eq2 = mathstring.Sub(eq2, "y", p.y - halfInc)
if mathstring.SubSides(eq2) == -1 {
negatives = true
} else if mathstring.SubSides(eq2) == 1 {
positives = true
}
eq3 := mathstring.Sub(eq, "x", p.x + halfInc)
eq3 = mathstring.Sub(eq3, "y", p.y - halfInc)
if mathstring.SubSides(eq3) == -1 {
negatives = true
} else if mathstring.SubSides(eq3) == 1 {
positives = true
}
eq4 := mathstring.Sub(eq, "x", p.x - halfInc)
eq4 = mathstring.Sub(eq4, "y", p.y + halfInc)
if (mathstring.SubSides(eq4) == -1) {
negatives = true
} else if (mathstring.SubSides(eq4) == 1) {
positives = true
}
if (positives && negatives) {
p.myString = "*"
} else {
p.checkAxis(halfInc)
}
}
//mutator method for x and y coordinates
func (p *Point) setCor(X float64, Y float64) {
p.x = X
p.y = Y
}
//accessor method for x and y coordinates
func (p *Point) GetCor() []float64 {
coords := []float64{p.x, p.y}
return coords
}
func (p *Point) GetString() string {
return p.myString
}
//moves a point a certain distance
func (p *Point) Translate(dx float64, dy float64) {
p.x += dx
p.y += dy
p.checkAxis(-1)
} | graph/point.go | 0.628863 | 0.477554 | point.go | starcoder |
package trapping_rain_water
/*
42. 接雨水 https://leetcode-cn.com/problems/trapping-rain-water
给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。
上面是由数组 [0,1,0,2,1,0,1,3,2,1,2,1] 表示的高度图,在这种情况下,可以接 6 个单位的雨水(蓝色部分表示雨水)。 感谢 Marcos 贡献此图。
示例:
输入: [0,1,0,2,1,0,1,3,2,1,2,1]
输出: 6
*/
/*
#### 考虑每个位置能接到的雨水量
遍历数组,对于位置 i,考虑可以接到多少雨水。
显然这由左右两侧比当前位置高的柱子的高度来决定,实际生要找到左右两侧最高的柱子。如果知道左侧最高的高度 leftMax 和右侧最高的高度 rightMax,那么 i 处能接到雨水量为 `min(leftMax, rightMax)-height[i]`。
> 注意,可能左右侧最高的柱子也没有当前柱子 height[i] 高,接到雨水量为 0。这样的话可以让 leftMax 或 rightMax 等于 height[i]`,不影响结果。
为了降低复杂度,可以事先用动态规划的方式计算出前缀最大值和后缀最大值数组,再遍历一遍得到结果,这样会使线性复杂度。
*/
func trap0(height []int) int {
n := len(height)
if n == 0 {
return 0
}
prefixMax := make([]int, n)
prefixMax[0] = height[0]
for i := 1; i < n; i++ {
prefixMax[i] = max(prefixMax[i-1], height[i])
}
suffixMax := make([]int, n)
suffixMax[n-1] = height[n-1]
for i := n - 2; i >= 0; i-- {
suffixMax[i] = max(suffixMax[i+1], height[i])
}
res := 0
for i, h := range height {
res += min(prefixMax[i], suffixMax[i]) - h
}
return res
}
/*
#### 双指针优化
实际上上边的两个数组可以用两个变量代替,这样就能降低空间复杂度。
使用左右双指针left、right 向中间凑,用两个变量 leftPeek,rightPeek 来维护左右峰值。
每次移动指针后,先根据左右指针处的值leftVal 和 rightVal 更新 leftPeek 和 rightPeek,再分情况讨论:
如果 leftVal < rightVal, 必有 leftPeek < rightPeek,可以确定 left 处的接雨水量为 leftPeek - leftVal;反之,可以确定 right 处的接雨水量为 rightPeek - rightVal。
如果确定了 left 处的结果,就向右移动 left 指针,反之向左移动 right 指针,直到两个指针相遇。
*/
func trap(height []int) int {
n := len(height)
if n < 3 {
return 0
}
left, right := 0, n-1
leftPeek, rightPeek := 0, 0
res := 0
for left < right {
leftVal, rightVal := height[left], height[right]
leftPeek = max(leftPeek, leftVal)
rightPeek = max(rightPeek, rightVal)
if leftVal < rightVal { // 处理左侧
res += leftPeek - leftVal
left++
} else { // 处理右侧
res += rightPeek - rightVal
right--
}
}
return res
}
/*
#### 单调栈
这个思路不容易想到。
遍历数组时维护一个单调递减栈,记录可能存水的条形块的索引。
每次如果当前柱子 i 大于栈顶索引对应的柱子,可以确定栈顶的柱子比当前 i 处柱子和栈的前一个柱子低,因此可以弹出栈顶元素并且累加答案。
如果当前柱子 i 小于或等于栈顶索引对应的条形块,将 i 入栈,意思是当前柱子被栈中的前一个条形块界定。
时间复杂度:O(n)。单次遍历O(n) ,每个条形块最多访问两次(由于栈的弹入和弹出),并且弹入和弹出栈都是 O(1)的。
空间复杂度:O(n)。 栈最多在阶梯型或平坦型条形块结构中占用 O(n)的空间。
*/
func trap1(height []int) int {
n := len(height)
if n < 3 {
return 0
}
res := 0
var stack []int // 记录可能存水的柱子索引
for i, v := range height {
for len(stack) > 0 && v > height[stack[len(stack)-1]] {
top := stack[len(stack)-1]
stack = stack[:len(stack)-1]
if len(stack) == 0 {
break
}
newTop := stack[len(stack)-1]
width := i - newTop - 1
boundHeight := min(v, height[newTop]) - height[top]
res += width * boundHeight
}
stack = append(stack, i)
}
return res
}
func min(a, b int) int {
if a < b {
return a
}
return b
}
func max(a, b int) int {
if a > b {
return a
}
return b
} | solutions/trapping-rain-water/d.go | 0.582491 | 0.476762 | d.go | starcoder |
package data
import (
"github.com/kode4food/ale/types"
"github.com/kode4food/ale/types/basic"
)
type (
// ArityChecker is the interface for arity checks
ArityChecker func(int) error
// Convention describes the way a function should be called
Convention int
// Call is the type of function that can be turned into a Function
Call func(...Value) Value
// Caller provides the necessary methods for performing a runtime call
Caller interface {
Call(...Value) Value
CheckArity(int) error
Convention() Convention
}
// Function is a Value that provides a Caller interface
Function interface {
Value
Caller
}
function struct {
call Call
arity ArityChecker
conv Convention
}
)
//go:generate stringer -output function_string.go -type Convention -linecomment
const (
ApplicativeCall Convention = iota // applicative
NormalCall // normal
)
// Applicative constructs an Applicative Function from a func that matches the
// standard calling signature
func Applicative(c Call, arity ...int) Function {
return MakeApplicative(c, MakeChecker(arity...))
}
func makeFunction(c Call, conv Convention, arity ArityChecker) Function {
return &function{
call: c,
arity: arity,
conv: conv,
}
}
// MakeApplicative constructs an applicative Function from a Caller and
// ArityChecker
func MakeApplicative(c Call, arity ArityChecker) Function {
return makeFunction(c, ApplicativeCall, arity)
}
// Normal constructs a normal Function with
func Normal(c Call, arity ...int) Function {
return MakeNormal(c, MakeChecker(arity...))
}
// MakeNormal constructs a normal Function from a Caller and ArityChecker
func MakeNormal(c Call, arity ArityChecker) Function {
return makeFunction(c, NormalCall, arity)
}
// IsApplicative returns whether the function is applicative
func IsApplicative(f Function) bool {
return f.Convention() == ApplicativeCall
}
// IsNormal returns whether the function is normal
func IsNormal(f Function) bool {
return f.Convention() == NormalCall
}
func (f *function) CheckArity(argCount int) error {
if a := f.arity; a != nil {
return a(argCount)
}
return nil
}
func (f *function) Call(args ...Value) Value {
return f.call(args...)
}
func (f *function) Convention() Convention {
return f.conv
}
func (f *function) Type() types.Type {
return basic.Lambda
}
func (f *function) Equal(v Value) bool {
return f == v
}
func (f *function) String() string {
return DumpString(f)
} | data/function.go | 0.669637 | 0.407333 | function.go | starcoder |
package quad
import (
"math"
"sync"
)
// Implements Integral
type trapezoidalIntegral struct {
function func(float64) float64
accuracy float64
steps int
workers int
stats *Stats
lock sync.RWMutex
}
// Create a new Integral, based on the trapezoidal
// rule. This will evaluate the integral concurrently.
// The argument specifies how many workers will be used
// to evaluate the function. Passing workers < 1 is
// the same as passing workers = 1.
// If more than one worker is used, integrand functions
// must be thread safe.
func NewTrapezoidalIntegral(workers int) Integral {
if workers < 1 {
workers = 1
}
return &trapezoidalIntegral{
accuracy: defaultAccuracy,
steps: defaultMaxStep,
workers: workers,
}
}
// Accuracy implements Integral
func (trap *trapezoidalIntegral) Accuracy(acc *float64) float64 {
if acc != nil {
trap.lock.Lock()
defer trap.lock.Unlock()
// Cap at machine epsilon
trap.accuracy = math.Max(*acc, 1e-16)
} else {
// We only need a read lock
trap.lock.RLock()
defer trap.lock.RUnlock()
}
return trap.accuracy
}
// Steps implements Integral
func (trap *trapezoidalIntegral) Steps(stp *int) int {
if stp != nil {
trap.lock.Lock()
defer trap.lock.Unlock()
trap.steps = *stp
} else {
trap.lock.RLock()
defer trap.lock.RUnlock()
}
return trap.steps
}
// Function implements Integral
func (trap *trapezoidalIntegral) Function(fn func(float64) float64) error {
trap.lock.Lock()
defer trap.lock.Unlock()
trap.function = fn
return nil
}
func (trap *trapezoidalIntegral) Stats() *Stats {
return trap.stats
}
// Integrate implements Integral
func (trap *trapezoidalIntegral) Integrate(a, b float64) (float64, error) {
// We don't want people messing with the function / accuracy while we are
// working hard for them!
trap.lock.RLock()
defer trap.lock.RUnlock()
if trap.steps < 2 && trap.steps >= 0 {
trap.stats = &Stats{0, 0, ErrorMinSteps}
return 0, ErrorMinSteps
}
out := make(chan float64)
next := make(chan bool)
defer close(next)
go trap_stepper(trap.workers, trap.function, a, b, out, next)
steps := 2
integral := <-out
var prevInt float64
var n int
for n = 1; steps+n < trap.steps || trap.steps < 0; n *= 2 {
steps += n
prevInt = integral
next <- true // Request next integral
integral = <-out
// Check for convergence, after the first 5 steps
if n > 1<<5 && math.Abs(integral-prevInt) < trap.accuracy {
break
}
}
// Record statistics
trap.stats = &Stats{steps, math.Abs(integral - prevInt), nil}
if n <= 1<<5 {
// We are not confident in the result, unless we take 5 refining steps
// This number is based on experience and comes from Numerical Recipes
trap.stats.Error = ErrorInsufficientSteps
} else if trap.stats.Accuracy > trap.accuracy {
trap.stats.Error = ErrorConverge
}
return integral, trap.stats.Error
} | pkg/quad/trap.go | 0.768125 | 0.459319 | trap.go | starcoder |
Package lingua accurately detects the natural language of written text, be it long or short.
What this library does
Its task is simple: It tells you which language some provided textual data is written in.
This is very useful as a preprocessing step for linguistic data in natural language
processing applications such as text classification and spell checking.
Other use cases, for instance, might include routing e-mails to the right geographically
located customer service department, based on the e-mails' languages.
Why this library exists
Language detection is often done as part of large machine learning frameworks or natural
language processing applications. In cases where you don't need the full-fledged
functionality of those systems or don't want to learn the ropes of those,
a small flexible library comes in handy.
So far, the only other comprehensive open source library in the Go ecosystem for this task
is Whatlanggo (https://github.com/abadojack/whatlanggo).
Unfortunately, it has two major drawbacks:
1. Detection only works with quite lengthy text fragments. For very short text snippets
such as Twitter messages, it does not provide adequate results.
2. The more languages take part in the decision process, the less accurate are the
detection results.
Lingua aims at eliminating these problems. It nearly does not need any configuration and
yields pretty accurate results on both long and short text, even on single words and phrases.
It draws on both rule-based and statistical methods but does not use any dictionaries of words.
It does not need a connection to any external API or service either.
Once the library has been downloaded, it can be used completely offline.
Supported languages
Compared to other language detection libraries, Lingua's focus is on quality over quantity,
that is, getting detection right for a small set of languages first before adding new ones.
Currently, 75 languages are supported. They are listed as variants of type Language.
How good it is
Lingua is able to report accuracy statistics for some bundled test data available for each
supported language. The test data for each language is split into three parts:
1. a list of single words with a minimum length of 5 characters
2. a list of word pairs with a minimum length of 10 characters
3. a list of complete grammatical sentences of various lengths
Both the language models and the test data have been created from separate documents of the
Wortschatz corpora (https://wortschatz.uni-leipzig.de) offered by Leipzig University, Germany.
Data crawled from various news websites have been used for training, each corpus comprising one
million sentences. For testing, corpora made of arbitrarily chosen websites have been used,
each comprising ten thousand sentences. From each test corpus, a random unsorted subset of
1000 single words, 1000 word pairs and 1000 sentences has been extracted, respectively.
Given the generated test data, I have compared the detection results of Lingua, and
Whatlanggo running over the data of Lingua's supported 75 languages.
Additionally, I have added Google's CLD3 (https://github.com/google/cld3/) to the comparison
with the help of the gocld3 bindings (https://github.com/jmhodges/gocld3). Languages that are not
supported by CLD3 or Whatlanggo are simply ignored during the detection process.
The bar and box plots (https://github.com/pemistahl/lingua-go/blob/main/ACCURACY_PLOTS.md)
show the measured accuracy values for all three performed tasks: Single word detection,
word pair detection and sentence detection. Lingua clearly outperforms its contenders.
Detailed statistics including mean, median and standard deviation values for each language
and classifier are available in
tabular form (https://github.com/pemistahl/lingua-go/blob/main/ACCURACY_TABLE.md) as well.
Why it is better than other libraries
Every language detector uses a probabilistic n-gram (https://en.wikipedia.org/wiki/N-gram)
model trained on the character distribution in some training corpus. Most libraries only use
n-grams of size 3 (trigrams) which is satisfactory for detecting the language of longer text
fragments consisting of multiple sentences. For short phrases or single words, however,
trigrams are not enough. The shorter the input text is, the less n-grams are available.
The probabilities estimated from such few n-grams are not reliable. This is why Lingua makes
use of n-grams of sizes 1 up to 5 which results in much more accurate prediction of the correct
language.
A second important difference is that Lingua does not only use such a statistical model, but
also a rule-based engine. This engine first determines the alphabet of the input text and
searches for characters which are unique in one or more languages. If exactly one language can
be reliably chosen this way, the statistical model is not necessary anymore. In any case, the
rule-based engine filters out languages that do not satisfy the conditions of the input text.
Only then, in a second step, the probabilistic n-gram model is taken into consideration.
This makes sense because loading less language models means less memory consumption and better
runtime performance.
In general, it is always a good idea to restrict the set of languages to be considered in the
classification process using the respective api methods. If you know beforehand that certain
languages are never to occur in an input text, do not let those take part in the classifcation
process. The filtering mechanism of the rule-based engine is quite good, however, filtering
based on your own knowledge of the input text is always preferable.
*/
package lingua | doc.go | 0.875734 | 0.904861 | doc.go | starcoder |
package isolationforest
import (
"math"
"math/rand"
)
// IsolationForest data type of forest
type IsolationForest struct {
nTrees int
sampleSize int
trees []*IsolationTree
rng rand.Rand
}
var goroutineWatcher chan struct{}
// Init constructor of IsolationForest
func Init(nTrees int, sampleSize int, rng rand.Rand) *IsolationForest {
return &IsolationForest{nTrees, sampleSize, make([]*IsolationTree, nTrees), rng}
}
// Build IsolationForest
func (forest *IsolationForest) Build(data [][]float64) {
dataLen := len(data)
if (dataLen / forest.sampleSize) < forest.nTrees {
forest.nTrees = dataLen / forest.sampleSize
}
// Shuffle the data in place
for i := 0; i < 10; i++ {
for o := range data {
if o != len(data)-1 {
n := forest.rng.Intn(o + 1)
data[o], data[n] = data[n], data[o]
}
}
}
ch := make(chan *IsolationTree)
goroutineWatcher = make(chan struct{}, 50)
for i := 0; i < forest.nTrees; i++ {
treeData := make([][]float64, forest.sampleSize)
for j := 0; j < forest.sampleSize; j++ {
treeData = append(treeData, data[i*forest.sampleSize+j])
}
goroutineWatcher <- struct{}{}
go buildIsolationTreeAsync(treeData, 20, forest.rng, ch)
}
for i := 0; i < forest.nTrees; i++ {
forest.trees = append(forest.trees, <-ch)
}
goroutineWatcher = nil
}
// Predict the data
func (forest *IsolationForest) Predict(data [][]float64) []float64 {
predicted := make([]float64, len(data))
for _, datapoint := range data {
predicted = append(predicted, forest.PredictSingle(datapoint))
}
return predicted
}
// PredictSingle datapoint
func (forest *IsolationForest) PredictSingle(data []float64) float64 {
heightSum := 0
heightAverage := float64(0.0)
score := 0.0
heightChan := make(chan int)
goroutineWatcher = make(chan struct{}, 50)
for _, tree := range forest.trees {
goroutineWatcher <- struct{}{}
go getHeightAsync(tree, data, heightChan)
}
for i := 0; i < forest.nTrees; i++ {
heightSum += <-heightChan
}
heightAverage = float64(heightSum) / float64(forest.nTrees)
goroutineWatcher = nil
score = math.Pow(
float64(2),
-1*(heightAverage/(2*(math.Log(float64(forest.sampleSize-1))+0.577215-(float64(forest.sampleSize-1)/(float64(forest.sampleSize)))))))
return score
}
// IsolationTree data type of tree
type IsolationTree struct {
splitFeature int
splitValue float64
height int
size int
left *IsolationTree
right *IsolationTree
}
func (tree *IsolationTree) getHeight(data []float64) int {
if tree.left == nil && tree.right == nil {
return tree.height
}
if data[tree.splitFeature] < tree.splitValue {
return tree.left.getHeight(data)
}
return tree.right.getHeight(data)
}
func getHeightAsync(tree *IsolationTree, data []float64, ch chan int) {
ch <- tree.getHeight(data)
<-goroutineWatcher
}
// BuildIsolationTree build IsolationTree
func buildIsolationTree(
data [][]float64,
currentTreeHeight int,
heightLimit int,
rng rand.Rand) *IsolationTree {
tree := &IsolationTree{0, 0, currentTreeHeight, len(data), nil, nil}
if len(data) <= 1 {
return tree
}
if currentTreeHeight >= heightLimit {
return tree
}
numberOfFeatures := len(data[0])
tree.splitFeature = rng.Intn(numberOfFeatures)
minValue, maxValue := getMinMax(data, tree.splitFeature)
tree.splitValue = rng.Float64()*(maxValue-minValue) + minValue
leftData, rightData := splitData(data, tree.splitFeature, tree.splitValue)
tree.left = buildIsolationTree(leftData, currentTreeHeight+1, heightLimit, rng)
tree.right = buildIsolationTree(rightData, currentTreeHeight+1, heightLimit, rng)
return tree
}
func buildIsolationTreeAsync(
data [][]float64,
heightLimit int,
rng rand.Rand,
ch chan<- *IsolationTree) {
ch <- buildIsolationTree(data, 0, heightLimit, rng)
<-goroutineWatcher
}
func getMinMax(data [][]float64, feature int) (float64, float64) {
var min, max float64
for i, dp := range data {
if i == 0 {
min = dp[feature]
max = dp[feature]
continue
}
if dp[feature] < min {
min = dp[feature]
continue
}
if dp[feature] > max {
max = dp[feature]
continue
}
}
return min, max
}
func splitData(data [][]float64, feature int, value float64) ([][]float64, [][]float64) {
left := make([][]float64, len(data)/5)
right := make([][]float64, len(data)/5)
for _, dr := range data {
if dr[feature] < value {
left = append(left, dr)
} else {
right = append(right, dr)
}
}
return left, right
} | isolationforest.go | 0.692538 | 0.47993 | isolationforest.go | starcoder |
package cube
import (
gl "github.com/adrianderstroff/realtime-clouds/pkg/core/gl"
geometry "github.com/adrianderstroff/realtime-clouds/pkg/view/geometry"
)
// MakeQuad creates a Quad with the specified width, height and depth.
// If the normals should be inside the quad the inside parameter should be true.
func Make(width, height, depth float32, inside bool) geometry.Geometry {
// half side lengths
halfWidth := width / 2.0
halfHeight := height / 2.0
halfDepth := depth / 2.0
// vertex positions
v1 := []float32{-halfWidth, halfHeight, halfDepth}
v2 := []float32{-halfWidth, -halfHeight, halfDepth}
v3 := []float32{halfWidth, halfHeight, halfDepth}
v4 := []float32{halfWidth, -halfHeight, halfDepth}
v5 := []float32{-halfWidth, halfHeight, -halfDepth}
v6 := []float32{-halfWidth, -halfHeight, -halfDepth}
v7 := []float32{halfWidth, halfHeight, -halfDepth}
v8 := []float32{halfWidth, -halfHeight, -halfDepth}
positions := geometry.Combine(
// right
v3, v4, v7,
v7, v4, v8,
// left
v5, v6, v1,
v1, v6, v2,
// top
v5, v1, v7,
v7, v1, v3,
// bottom
v2, v6, v4,
v4, v6, v8,
// front
v1, v2, v3,
v3, v2, v4,
// back
v7, v8, v5,
v5, v8, v6,
)
if inside {
positions = geometry.Combine(
// right
v7, v8, v3,
v3, v8, v4,
// left
v1, v2, v5,
v5, v2, v6,
// top
v7, v3, v5,
v5, v3, v1,
// bottom
v4, v8, v2,
v2, v8, v6,
// front
v3, v4, v1,
v1, v4, v2,
//back
v5, v6, v7,
v7, v6, v8,
)
}
// tex coordinates
t1 := []float32{0.0, 1.0}
t2 := []float32{0.0, 0.0}
t3 := []float32{1.0, 1.0}
t4 := []float32{1.0, 0.0}
uvs := geometry.Repeat(geometry.Combine(t1, t2, t3, t3, t2, t4), 6)
// normals
right := []float32{1.0, 0.0, 0.0}
left := []float32{-1.0, 0.0, 0.0}
top := []float32{0.0, 1.0, 0.0}
bottom := []float32{0.0, -1.0, 0.0}
front := []float32{0.0, 0.0, -1.0}
back := []float32{0.0, 0.0, 1.0}
// swap normals if inside is true
if inside {
right, left = left, right
top, bottom = bottom, top
front, back = back, front
}
normals := geometry.Combine(
geometry.Repeat(right, 6),
geometry.Repeat(left, 6),
geometry.Repeat(top, 6),
geometry.Repeat(bottom, 6),
geometry.Repeat(front, 6),
geometry.Repeat(back, 6),
)
// setup data
data := [][]float32{
positions,
uvs,
normals,
}
// setup layout
layout := []geometry.VertexAttribute{
geometry.MakeVertexAttribute("pos", gl.FLOAT, 3, gl.STATIC_DRAW),
geometry.MakeVertexAttribute("uv", gl.FLOAT, 2, gl.STATIC_DRAW),
geometry.MakeVertexAttribute("normal", gl.FLOAT, 3, gl.STATIC_DRAW),
}
return geometry.Make(layout, data)
} | pkg/view/geometry/cube/cube.go | 0.715821 | 0.457743 | cube.go | starcoder |
package alt
import (
"fmt"
"math"
"reflect"
"strconv"
"strings"
"time"
"github.com/ohler55/ojg"
"github.com/ohler55/ojg/gen"
)
// DefaultRecomposer provides a shared Recomposer. Note that this should not
// be shared across go routines unless all types that will be used are
// registered first. That can be done explicitly or with a warm up run.
var DefaultRecomposer = Recomposer{
composers: map[string]*composer{},
}
// RecomposeFunc should build an object from data in a map returning the
// recomposed object or an error.
type RecomposeFunc func(map[string]interface{}) (interface{}, error)
// RecomposeAnyFunc should build an object from data in an interface{}
// returning the recomposed object or an error.
type RecomposeAnyFunc func(interface{}) (interface{}, error)
// Recomposer is used to recompose simple data into structs.
type Recomposer struct {
// CreateKey identifies the creation key in decomposed objects.
CreateKey string
composers map[string]*composer
}
// RegisterComposer regsiters a composer function for a value type. A nil
// function will still register the default composer which uses reflection.
func (r *Recomposer) RegisterComposer(val interface{}, fun RecomposeFunc) error {
_, err := r.registerComposer(reflect.TypeOf(val), fun)
return err
}
// RegisterAnyComposer regsiters a composer function for a value type. A nil
// function will still register the default composer which uses reflection.
func (r *Recomposer) RegisterAnyComposer(val interface{}, fun RecomposeAnyFunc) error {
_, err := r.registerAnyComposer(reflect.TypeOf(val), fun)
return err
}
func (r *Recomposer) registerComposer(rt reflect.Type, fun RecomposeFunc) (*composer, error) {
if rt.Kind() == reflect.Ptr {
rt = rt.Elem()
}
full := rt.PkgPath() + "/" + rt.Name()
// TBD could loosen this up and allow any type as long as a function is provided.
if rt.Kind() != reflect.Struct {
return nil, fmt.Errorf("only structs can be recomposed. %s is not a struct type", rt)
}
c := r.composers[full]
if c == nil {
c = &composer{
fun: fun,
short: rt.Name(),
full: full,
rtype: rt,
}
c.indexes = indexType(c.rtype)
r.composers[c.short] = c
r.composers[c.full] = c
} else {
c.fun = fun
}
for i := rt.NumField() - 1; 0 <= i; i-- {
f := rt.Field(i)
// Private fields should be skipped.
if len(f.Name) == 0 || ([]byte(f.Name)[0]&0x20) != 0 {
continue
}
ft := f.Type
switch ft.Kind() {
case reflect.Array, reflect.Slice, reflect.Map, reflect.Ptr:
ft = ft.Elem()
}
if _, has := r.composers[ft.Name()]; has {
continue
}
_, _ = r.registerComposer(ft, nil)
}
return c, nil
}
func (r *Recomposer) registerAnyComposer(rt reflect.Type, fun RecomposeAnyFunc) (*composer, error) {
if rt.Kind() == reflect.Ptr {
rt = rt.Elem()
}
full := rt.PkgPath() + "/" + rt.Name()
if rt.Kind() != reflect.Struct {
return nil, fmt.Errorf("only structs can be recomposed. %s is not a struct type", rt)
}
c := r.composers[full]
if c == nil {
c = &composer{
any: fun,
short: rt.Name(),
full: full,
rtype: rt,
}
c.indexes = indexType(c.rtype)
r.composers[c.short] = c
r.composers[c.full] = c
} else {
c.any = fun
}
return c, nil
}
// Recompose simple data into more complex go types.
func (r *Recomposer) Recompose(v interface{}, tv ...interface{}) (out interface{}, err error) {
defer func() {
if rec := recover(); rec != nil {
err = ojg.NewError(r)
out = nil
}
}()
out = r.MustRecompose(v, tv...)
return
}
// MustRecompose simple data into more complex go types.
func (r *Recomposer) MustRecompose(v interface{}, tv ...interface{}) (out interface{}) {
if 0 < len(tv) {
out = tv[0]
rv := reflect.ValueOf(tv[0])
switch rv.Kind() {
case reflect.Array, reflect.Slice:
rv = reflect.New(rv.Type())
r.recomp(v, rv)
out = rv.Elem().Interface()
case reflect.Map:
r.recomp(v, rv)
case reflect.Ptr:
r.recomp(v, rv)
switch rv.Elem().Kind() {
case reflect.Slice, reflect.Array, reflect.Map, reflect.Interface:
out = rv.Elem().Interface()
}
default:
panic(fmt.Errorf("only a slice, map, or pointer is allowed as an optional argument"))
}
} else {
out = r.recompAny(v)
}
return
}
func (r *Recomposer) recompAny(v interface{}) interface{} {
switch tv := v.(type) {
case nil, bool, int64, float64, string, time.Time:
case int:
v = int64(tv)
case int8:
v = int64(tv)
case int16:
v = int64(tv)
case int32:
v = int64(tv)
case uint:
v = int64(tv)
case uint8:
v = int64(tv)
case uint16:
v = int64(tv)
case uint32:
v = int64(tv)
case uint64:
v = int64(tv)
case float32:
// This small rounding makes the conversion from 32 bit to 64 bit
// display nicer.
f, i := math.Frexp(float64(tv))
f = float64(int64(f*fracMax)) / fracMax
v = math.Ldexp(f, i)
case []interface{}:
a := make([]interface{}, len(tv))
for i, m := range tv {
a[i] = r.recompAny(m)
}
v = a
case map[string]interface{}:
if cv := tv[r.CreateKey]; cv != nil {
tn, _ := cv.(string)
if c := r.composers[tn]; c != nil {
if c.fun != nil {
val, err := c.fun(tv)
if err != nil {
panic(err)
}
return val
}
rv := reflect.New(c.rtype)
r.recomp(v, rv)
return rv.Interface()
}
}
o := map[string]interface{}{}
for k, m := range tv {
o[k] = r.recompAny(m)
}
v = o
case gen.Bool:
v = bool(tv)
case gen.Int:
v = int64(tv)
case gen.Float:
v = float64(tv)
case gen.String:
v = string(tv)
case gen.Time:
v = time.Time(tv)
case gen.Big:
v = string(tv)
case gen.Array:
a := make([]interface{}, len(tv))
for i, m := range tv {
a[i] = r.recompAny(m)
}
v = a
case gen.Object:
if cv := tv[r.CreateKey]; cv != nil {
gn, _ := cv.(gen.String)
tn := string(gn)
if c := r.composers[tn]; c != nil {
simple, _ := tv.Simplify().(map[string]interface{})
if c.fun != nil {
val, err := c.fun(simple)
if err != nil {
panic(err)
}
return val
}
rv := reflect.New(c.rtype)
r.recomp(simple, rv)
return rv.Interface()
}
}
o := map[string]interface{}{}
for k, m := range tv {
o[k] = r.recompAny(m)
}
v = o
default:
panic(fmt.Errorf("can not recompose a %T", v))
}
return v
}
func (r *Recomposer) recomp(v interface{}, rv reflect.Value) {
as, _ := rv.Interface().(AttrSetter)
if rv.Kind() == reflect.Ptr {
if v == nil {
return
}
rv = rv.Elem()
}
switch rv.Kind() {
case reflect.Array, reflect.Slice:
va, ok := (v).([]interface{})
if !ok {
vv := reflect.ValueOf(v)
if vv.Kind() != reflect.Slice {
panic(fmt.Errorf("can only recompose a %s from a []interface{}, not a %T", rv.Type(), v))
}
va = make([]interface{}, vv.Len())
for i := len(va) - 1; 0 <= i; i-- {
va[i] = vv.Index(i).Interface()
}
}
size := len(va)
av := reflect.MakeSlice(rv.Type(), size, size)
et := av.Type().Elem()
if et.Kind() == reflect.Ptr {
et = et.Elem()
for i := 0; i < size; i++ {
ev := reflect.New(et)
r.recomp(va[i], ev)
av.Index(i).Set(ev)
}
} else {
for i := 0; i < size; i++ {
r.setValue(va[i], av.Index(i), nil)
}
}
rv.Set(av)
case reflect.Map:
if v == nil {
return
}
et := rv.Type().Elem()
vm, ok := (v).(map[string]interface{})
if !ok {
vv := reflect.ValueOf(v)
if vv.Kind() != reflect.Map {
panic(fmt.Errorf("can only recompose a map from a map[string]interface{}, not a %T", v))
}
vm = map[string]interface{}{}
iter := vv.MapRange()
for iter.Next() {
k := iter.Key().Interface().(string)
vm[k] = iter.Value().Interface()
}
}
if rv.IsNil() {
rv.Set(reflect.MakeMapWithSize(rv.Type(), len(vm)))
}
if et.Kind() == reflect.Interface {
for k, m := range vm {
rv.SetMapIndex(reflect.ValueOf(k), reflect.ValueOf(r.recompAny(m)))
}
} else if et.Kind() == reflect.Ptr {
et = et.Elem()
for k, m := range vm {
ev := reflect.New(et)
r.recomp(m, ev)
rv.SetMapIndex(reflect.ValueOf(k), ev)
}
} else {
for k, m := range vm {
ev := reflect.New(et)
r.recomp(m, ev)
rv.SetMapIndex(reflect.ValueOf(k), ev.Elem())
}
}
case reflect.Struct:
vm, ok := (v).(map[string]interface{})
if !ok {
if c := r.composers[rv.Type().Name()]; c != nil && c.any != nil {
if val, err := c.any(v); err == nil {
if val == nil {
break
}
vv := reflect.ValueOf(val)
if vv.Type().Kind() == reflect.Ptr {
vv = vv.Elem()
}
rv.Set(vv)
} else {
panic(err)
}
break
}
vv := reflect.ValueOf(v)
if vv.Kind() != reflect.Map {
panic(fmt.Errorf("can only recompose a %s from a map[string]interface{}, not a %T", rv.Type(), v))
}
vm = map[string]interface{}{}
iter := vv.MapRange()
for iter.Next() {
k := iter.Key().Interface().(string)
vm[k] = iter.Value().Interface()
}
}
if as != nil {
for k, m := range vm {
if r.CreateKey == k {
continue
}
if err := as.SetAttr(k, m); err != nil {
panic(err)
}
}
return
}
var im map[string]reflect.StructField
if c := r.composers[rv.Type().Name()]; c != nil {
if c.fun != nil {
if val, err := c.fun(vm); err == nil {
vv := reflect.ValueOf(val)
if vv.Type().Kind() == reflect.Ptr {
vv = vv.Elem()
}
rv.Set(vv)
} else {
panic(err)
}
break
}
im = c.indexes
} else {
c, _ = r.registerComposer(rv.Type(), nil)
im = c.indexes
}
for k, sf := range im {
f := rv.FieldByIndex(sf.Index)
var m interface{}
var has bool
if m, has = vm[k]; !has {
if m, has = vm[sf.Name]; !has {
name := []byte(sf.Name)
name[0] = name[0] | 0x20
if m, has = vm[string(name)]; !has {
m, has = vm[strings.ToLower(string(name))]
}
}
}
if has && m != nil {
r.setValue(m, f, &sf)
}
}
case reflect.Interface:
v = r.recompAny(v)
rv.Set(reflect.ValueOf(v))
case reflect.Bool:
rv.Set(reflect.ValueOf(v))
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64,
reflect.Float32, reflect.Float64,
reflect.String:
rv.Set(reflect.ValueOf(v).Convert(rv.Type()))
default:
panic(fmt.Errorf("can not convert (%T)%v to a %s", v, v, rv.Type()))
}
}
func (r *Recomposer) setValue(v interface{}, rv reflect.Value, sf *reflect.StructField) {
switch rv.Kind() {
case reflect.Bool:
if s, ok := v.(string); ok && sf != nil && strings.Contains(sf.Tag.Get("json"), ",string") {
if b, err := strconv.ParseBool(s); err == nil {
rv.Set(reflect.ValueOf(b))
} else {
panic(err)
}
} else {
rv.Set(reflect.ValueOf(v))
}
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
if s, ok := v.(string); ok && sf != nil && strings.Contains(sf.Tag.Get("json"), ",string") {
if i, err := strconv.Atoi(s); err == nil {
rv.Set(reflect.ValueOf(i).Convert(rv.Type()))
} else {
panic(err)
}
} else {
rv.Set(reflect.ValueOf(v).Convert(rv.Type()))
}
case reflect.Float32, reflect.Float64:
if s, ok := v.(string); ok && sf != nil && strings.Contains(sf.Tag.Get("json"), ",string") {
if f, err := strconv.ParseFloat(s, 64); err == nil {
rv.Set(reflect.ValueOf(f).Convert(rv.Type()))
} else {
panic(err)
}
} else {
rv.Set(reflect.ValueOf(v).Convert(rv.Type()))
}
case reflect.String:
rv.Set(reflect.ValueOf(v).Convert(rv.Type()))
case reflect.Interface:
v = r.recompAny(v)
rv.Set(reflect.ValueOf(v))
case reflect.Ptr:
ev := reflect.New(rv.Type().Elem())
r.recomp(v, ev)
rv.Set(ev)
default:
r.recomp(v, rv)
}
} | ingest/vendor/github.com/ohler55/ojg/alt/recomposer.go | 0.576423 | 0.449211 | recomposer.go | starcoder |
package sgf
import (
"bytes"
"fmt"
"io"
)
// A Node is the fundamental unit in an SGF tree. Nodes have 0 or more keys,
// which have 1 or more values. Keys and values are strings. These strings are
// kept in an unescaped state; escaping and unescaping is handled during loading
// and saving of files. A node also contains information about the node's parent
// (if not root) and a list of all child nodes.
type Node struct {
// Properties are stored in a slice of slices of strings, where the
// first item in a slice is the key, and what follows are values.
// Instead, maps could be used, but the performance is much worse.
props [][]string // e.g. ["B" "dd"] ["TR", "dd", "fj", "np"] - e.g. 1 and 3 values for these keys.
children []*Node
parent *Node
// Note: generating a board_cache always involves generating all the ancestor
// board_caches first, so if a board_cache is nil, all the node's descendents
// will have nil caches as well. We actually rely on this fact in the method
// clear_board_cache_recursive(). Therefore, to ensure this is so, this should
// never be set directly except by a very few functions, hence its name.
__board_cache *Board
}
// NewNode creates a new node with the specified parent.
func NewNode(parent *Node) *Node {
node := new(Node)
node.parent = parent
if node.parent != nil {
node.parent.children = append(node.parent.children, node)
}
return node
}
// Copy provides a deep copy of the node with no attached parent or children.
func (self *Node) Copy() *Node {
ret := new(Node)
ret.props = make([][]string, len(self.props))
for ki := 0; ki < len(self.props); ki++ {
ret.props[ki] = make([]string, len(self.props[ki]))
for j := 0; j < len(self.props[ki]); j++ {
ret.props[ki][j] = self.props[ki][j]
}
}
return ret
}
// WriteTo writes the node in SGF format to an io.Writer. This method
// instantiates io.WriterTo for no particularly good reason.
func (self *Node) WriteTo(w io.Writer) (n int64, err error) {
b := bytes.NewBuffer(make([]byte, 0, 8)) // Start buffer with len 0 cap 8
b.WriteByte(';')
for _, slice := range self.props {
b.WriteString(slice[0])
for _, value := range slice[1:] {
b.WriteByte('[')
b.WriteString(escape_string(value))
b.WriteByte(']')
}
}
count, err := fmt.Fprintf(w, b.String())
return int64(count), err
}
func (self *Node) key_index(key string) int {
for i, slice := range self.props {
if slice[0] == key {
return i
}
}
return -1
}
// ------------------------------------------------------------------------------------------------------------------
// IMPORTANT...
// AddValue(), DeleteKey(), and DeleteValue() adjust the properties directly and
// so need to call mutor_check() to see if they are affecting any cached boards.
// ------------------------------------------------------------------------------------------------------------------
// AddValue adds the specified string as a value for the given key. If the value
// already exists for the key, nothing happens.
func (self *Node) AddValue(key, val string) {
self.mutor_check(key) // If key is a MUTOR, clear board caches.
ki := self.key_index(key)
if ki == -1 {
self.props = append(self.props, []string{key, val})
return
}
for _, old_val := range self.props[ki][1:] {
if old_val == val {
return
}
}
self.props[ki] = append(self.props[ki], val)
}
// DeleteKey deletes the given key and all of its values.
func (self *Node) DeleteKey(key string) {
ki := self.key_index(key)
if ki == -1 {
return
}
self.mutor_check(key) // If key is a MUTOR, clear board caches.
self.props = append(self.props[:ki], self.props[ki + 1:]...)
}
// DeleteValue checks if the given key in this node has the given value, and
// removes that value, if it does.
func (self *Node) DeleteValue(key, val string) {
ki := self.key_index(key)
if ki == -1 {
return
}
self.mutor_check(key) // If key is a MUTOR, clear board caches.
for i := len(self.props[ki]) - 1; i >= 1; i-- { // Use i >= 1 so we don't delete the key itself.
if self.props[ki][i] == val {
self.props[ki] = append(self.props[ki][:i], self.props[ki][i + 1:]...)
}
}
// Delete key if needed...
if len(self.props[ki]) < 2 {
self.props = append(self.props[:ki], self.props[ki + 1:]...)
}
}
// ------------------------------------------------------------------------------------------------------------------
// IMPORTANT...
// The rest of the functions are either read-only, or built up from the safe
// functions above. None of these must adjust the properties directly.
// ------------------------------------------------------------------------------------------------------------------
// GetValue returns the first value for the given key, if present, in which case
// ok will be true. Otherwise it returns "" and false.
func (self *Node) GetValue(key string) (val string, ok bool) {
ki := self.key_index(key)
if ki == -1 {
return "", false
}
return self.props[ki][1], true
}
// SetValue sets the specified string as the first and only value for the given
// key.
func (self *Node) SetValue(key, val string) {
self.DeleteKey(key)
self.AddValue(key, val)
}
// SetValues sets the values of the key to the values provided. The original
// slice remains safe to modify.
func (self *Node) SetValues(key string, values []string) {
self.DeleteKey(key)
for _, val := range values {
self.AddValue(key, val)
}
}
// KeyCount returns the number of keys a node has.
func (self *Node) KeyCount() int {
return len(self.props)
}
// ValueCount returns the number of values a key has.
func (self *Node) ValueCount(key string) int {
ki := self.key_index(key)
if ki == -1 {
return 0
}
return len(self.props[ki]) - 1
}
// AllKeys returns a new slice of strings, containing all the keys that the node
// has.
func (self *Node) AllKeys() []string {
var ret []string
for _, slice := range self.props {
ret = append(ret, slice[0])
}
return ret
}
// AllValues returns a new slice of strings, containing all the values that a
// given key has in this node.
func (self *Node) AllValues(key string) []string {
ki := self.key_index(key)
if ki == -1 {
return nil
}
var ret []string // Make a new slice so that it's safe to modify.
for _, val := range self.props[ki][1:] {
ret = append(ret, val)
}
return ret
} | node.go | 0.68458 | 0.465266 | node.go | starcoder |
package managedseed
import (
"io/ioutil"
"os"
"strings"
gardencorev1beta1 "github.com/gardener/gardener/pkg/apis/core/v1beta1"
seedmanagementv1alpha1 "github.com/gardener/gardener/pkg/apis/seedmanagement/v1alpha1"
"github.com/gardener/gardener/pkg/gardenlet/apis/config"
confighelper "github.com/gardener/gardener/pkg/gardenlet/apis/config/helper"
configv1alpha1 "github.com/gardener/gardener/pkg/gardenlet/apis/config/v1alpha1"
"github.com/gardener/gardener/pkg/utils"
"github.com/gardener/gardener/pkg/utils/imagevector"
"github.com/gardener/gardener/pkg/utils/secrets"
"k8s.io/component-base/version"
)
// ValuesHelper provides methods for merging GardenletDeployment and GardenletConfiguration with parent,
// as well as computing the values to be used when applying the gardenlet chart.
type ValuesHelper interface {
// MergeGardenletDeployment merges the given GardenletDeployment with the values from the parent gardenlet.
MergeGardenletDeployment(*seedmanagementv1alpha1.GardenletDeployment, *gardencorev1beta1.Shoot) (*seedmanagementv1alpha1.GardenletDeployment, error)
// MergeGardenletConfiguration merges the given GardenletConfiguration with the parent GardenletConfiguration.
MergeGardenletConfiguration(config *configv1alpha1.GardenletConfiguration) (*configv1alpha1.GardenletConfiguration, error)
// GetGardenletChartValues computes the values to be used when applying the gardenlet chart.
GetGardenletChartValues(*seedmanagementv1alpha1.GardenletDeployment, *configv1alpha1.GardenletConfiguration, string) (map[string]interface{}, error)
}
// valuesHelper is a concrete implementation of ValuesHelper
type valuesHelper struct {
config *config.GardenletConfiguration
imageVector imagevector.ImageVector
}
// newValuesHelper creates a new ValuesHelper with the given parent GardenletConfiguration and image vector.
func newValuesHelper(config *config.GardenletConfiguration, imageVector imagevector.ImageVector) ValuesHelper {
return &valuesHelper{
config: config,
imageVector: imageVector,
}
}
// MergeGardenletDeployment merges the given GardenletDeployment with the values from the parent gardenlet.
func (vp *valuesHelper) MergeGardenletDeployment(deployment *seedmanagementv1alpha1.GardenletDeployment, shoot *gardencorev1beta1.Shoot) (*seedmanagementv1alpha1.GardenletDeployment, error) {
// Convert deployment object to values
deploymentValues, err := utils.ToValuesMap(deployment)
if err != nil {
return nil, err
}
// Get parent deployment values
parentDeployment, err := getParentGardenletDeployment(vp.imageVector, shoot)
if err != nil {
return nil, err
}
parentDeploymentValues, err := utils.ToValuesMap(parentDeployment)
if err != nil {
return nil, err
}
// Merge with parent
deploymentValues = utils.MergeMaps(parentDeploymentValues, deploymentValues)
// Convert deployment values back to an object
var deploymentObj *seedmanagementv1alpha1.GardenletDeployment
if err := utils.FromValuesMap(deploymentValues, &deploymentObj); err != nil {
return nil, err
}
return deploymentObj, nil
}
// MergeGardenletConfiguration merges the given GardenletConfiguration with the parent GardenletConfiguration.
func (vp *valuesHelper) MergeGardenletConfiguration(config *configv1alpha1.GardenletConfiguration) (*configv1alpha1.GardenletConfiguration, error) {
// Convert configuration object to values
configValues, err := utils.ToValuesMap(config)
if err != nil {
return nil, err
}
// Get parent config values
parentConfig, err := confighelper.ConvertGardenletConfigurationExternal(vp.config)
if err != nil {
return nil, err
}
parentConfigValues, err := utils.ToValuesMap(parentConfig)
if err != nil {
return nil, err
}
// Delete seedClientConnection.kubeconfig and seedConfig in parent config values
parentConfigValues, err = utils.DeleteFromValuesMap(parentConfigValues, "seedClientConnection", "kubeconfig")
if err != nil {
return nil, err
}
parentConfigValues, err = utils.DeleteFromValuesMap(parentConfigValues, "seedConfig")
if err != nil {
return nil, err
}
// Merge with parent
configValues = utils.MergeMaps(parentConfigValues, configValues)
// Convert config values back to an object
var configObj *configv1alpha1.GardenletConfiguration
if err := utils.FromValuesMap(configValues, &configObj); err != nil {
return nil, err
}
return configObj, nil
}
// GetGardenletChartValues computes the values to be used when applying the gardenlet chart.
func (vp *valuesHelper) GetGardenletChartValues(
deployment *seedmanagementv1alpha1.GardenletDeployment,
config *configv1alpha1.GardenletConfiguration,
bootstrapKubeconfig string,
) (map[string]interface{}, error) {
var err error
// Get deployment values
deploymentValues, err := vp.getGardenletDeploymentValues(deployment)
if err != nil {
return nil, err
}
// Get config values
configValues, err := vp.getGardenletConfigurationValues(config, bootstrapKubeconfig)
if err != nil {
return nil, err
}
// Set gardenlet values to deployment values
gardenletValues := deploymentValues
// Ensure gardenlet values is a non-nil map
gardenletValues = utils.InitValuesMap(gardenletValues)
// Set config values in gardenlet values
gardenletValues, err = utils.SetToValuesMap(gardenletValues, configValues, "config")
if err != nil {
return nil, err
}
// Return gardenlet chart values
return map[string]interface{}{
"global": map[string]interface{}{
"gardenlet": gardenletValues,
},
}, nil
}
// getGardenletDeploymentValues computes and returns the gardenlet deployment values from the given GardenletDeployment.
func (vp *valuesHelper) getGardenletDeploymentValues(deployment *seedmanagementv1alpha1.GardenletDeployment) (map[string]interface{}, error) {
// Convert deployment object to values
deploymentValues, err := utils.ToValuesMap(deployment)
if err != nil {
return nil, err
}
// Set imageVectorOverwrite and componentImageVectorOverwrites from parent
deploymentValues["imageVectorOverwrite"], err = getParentImageVectorOverwrite()
if err != nil {
return nil, err
}
deploymentValues["componentImageVectorOverwrites"], err = getParentComponentImageVectorOverwrites()
if err != nil {
return nil, err
}
return deploymentValues, nil
}
// getGardenletConfigurationValues computes and returns the gardenlet configuration values from the given GardenletConfiguration.
func (vp *valuesHelper) getGardenletConfigurationValues(config *configv1alpha1.GardenletConfiguration, bootstrapKubeconfig string) (map[string]interface{}, error) {
// Convert configuration object to values
configValues, err := utils.ToValuesMap(config)
if err != nil {
return nil, err
}
// If bootstrap kubeconfig is specified, set it in gardenClientConnection
// Otherwise, if kubeconfig path is specified in gardenClientConnection, read it and store its contents
if bootstrapKubeconfig != "" {
configValues, err = utils.SetToValuesMap(configValues, bootstrapKubeconfig, "gardenClientConnection", "bootstrapKubeconfig", "kubeconfig")
if err != nil {
return nil, err
}
} else {
kubeconfigPath, err := utils.GetFromValuesMap(configValues, "gardenClientConnection", "kubeconfig")
if err != nil {
return nil, err
}
if kubeconfigPath != nil && kubeconfigPath.(string) != "" {
kubeconfig, err := ioutil.ReadFile(kubeconfigPath.(string))
if err != nil {
return nil, err
}
configValues, err = utils.SetToValuesMap(configValues, string(kubeconfig), "gardenClientConnection", "kubeconfig")
if err != nil {
return nil, err
}
}
}
// If kubeconfig path is specified in seedClientConnection, read it and store its contents
kubeconfigPath, err := utils.GetFromValuesMap(configValues, "seedClientConnection", "kubeconfig")
if err != nil {
return nil, err
}
if kubeconfigPath != nil && kubeconfigPath.(string) != "" {
kubeconfig, err := ioutil.ReadFile(kubeconfigPath.(string))
if err != nil {
return nil, err
}
configValues, err = utils.SetToValuesMap(configValues, string(kubeconfig), "seedClientConnection", "kubeconfig")
if err != nil {
return nil, err
}
}
// Read server certificate file and store its contents
certPath, err := utils.GetFromValuesMap(configValues, "server", "https", "tls", "serverCertPath")
if err != nil {
return nil, err
}
if certPath != nil && certPath.(string) != "" && !strings.Contains(certPath.(string), secrets.TemporaryDirectoryForSelfGeneratedTLSCertificatesPattern) {
cert, err := ioutil.ReadFile(certPath.(string))
if err != nil {
return nil, err
}
configValues, err = utils.SetToValuesMap(configValues, string(cert), "server", "https", "tls", "crt")
if err != nil {
return nil, err
}
}
// Read server key file and store its contents
keyPath, err := utils.GetFromValuesMap(configValues, "server", "https", "tls", "serverKeyPath")
if err != nil {
return nil, err
}
if keyPath != nil && keyPath.(string) != "" && !strings.Contains(keyPath.(string), secrets.TemporaryDirectoryForSelfGeneratedTLSCertificatesPattern) {
key, err := ioutil.ReadFile(keyPath.(string))
if err != nil {
return nil, err
}
configValues, err = utils.SetToValuesMap(configValues, string(key), "server", "https", "tls", "key")
if err != nil {
return nil, err
}
}
// Delete server certificate and key paths
configValues, err = utils.DeleteFromValuesMap(configValues, "server", "https", "tls", "serverCertPath")
if err != nil {
return nil, err
}
configValues, err = utils.DeleteFromValuesMap(configValues, "server", "https", "tls", "serverKeyPath")
if err != nil {
return nil, err
}
return configValues, nil
}
func getParentGardenletDeployment(imageVector imagevector.ImageVector, shoot *gardencorev1beta1.Shoot) (*seedmanagementv1alpha1.GardenletDeployment, error) {
// Get image repository and tag
var imageRepository, imageTag string
gardenletImage, err := imageVector.FindImage("gardenlet")
if err != nil {
return nil, err
}
if gardenletImage.Tag != nil {
imageRepository = gardenletImage.Repository
imageTag = *gardenletImage.Tag
} else {
imageRepository = gardenletImage.String()
imageTag = version.Get().GitVersion
}
// Create and return result
return &seedmanagementv1alpha1.GardenletDeployment{
Image: &seedmanagementv1alpha1.Image{
Repository: &imageRepository,
Tag: &imageTag,
},
}, nil
}
func getParentImageVectorOverwrite() (string, error) {
var imageVectorOverwrite string
if overWritePath := os.Getenv(imagevector.OverrideEnv); len(overWritePath) > 0 {
data, err := ioutil.ReadFile(overWritePath)
if err != nil {
return "", err
}
imageVectorOverwrite = string(data)
}
return imageVectorOverwrite, nil
}
func getParentComponentImageVectorOverwrites() (string, error) {
var componentImageVectorOverwrites string
if overWritePath := os.Getenv(imagevector.ComponentOverrideEnv); len(overWritePath) > 0 {
data, err := ioutil.ReadFile(overWritePath)
if err != nil {
return "", err
}
componentImageVectorOverwrites = string(data)
}
return componentImageVectorOverwrites, nil
} | pkg/gardenlet/controller/managedseed/managedseed_valueshelper.go | 0.633524 | 0.445228 | managedseed_valueshelper.go | starcoder |
package data
import (
"bytes"
"math/rand"
"github.com/kode4food/ale/types"
"github.com/kode4food/ale/types/basic"
)
type (
// Vector is a fixed-length array of Values
Vector interface {
vector() // marker
Sequence
ValuerSequence
Prepender
Appender
Reverser
RandomAccess
Caller
Valuer
}
vector Values
)
// EmptyVector represents an empty Vector
var (
EmptyVector = vector{}
vectorHash = rand.Uint64()
)
// NewVector creates a new Vector instance
func NewVector(v ...Value) Vector {
return vector(v)
}
func (vector) vector() {}
func (v vector) Values() Values {
return Values(v)
}
func (v vector) Count() int {
return len(v)
}
func (v vector) ElementAt(index int) (Value, bool) {
if index >= 0 && index < len(v) {
return v[index], true
}
return Nil, false
}
func (v vector) First() Value {
if len(v) > 0 {
return v[0]
}
return Nil
}
func (v vector) Rest() Sequence {
if len(v) > 1 {
return v[1:]
}
return EmptyVector
}
func (v vector) IsEmpty() bool {
return len(v) == 0
}
func (v vector) Split() (Value, Sequence, bool) {
lv := len(v)
if lv > 1 {
return v[0], v[1:], true
} else if lv == 1 {
return v[0], EmptyVector, true
}
return Nil, EmptyVector, false
}
func (v vector) Car() Value {
return v.First()
}
func (v vector) Cdr() Value {
return v.Rest()
}
func (v vector) Prepend(e Value) Sequence {
return append(vector{e}, v...)
}
func (v vector) Append(e Value) Sequence {
return append(v, e)
}
func (v vector) Reverse() Sequence {
vl := len(v)
if vl <= 1 {
return v
}
res := make(vector, vl)
for i, j := 0, vl-1; j >= 0; i, j = i+1, j-1 {
res[i] = v[j]
}
return res
}
func (v vector) Call(args ...Value) Value {
return indexedCall(v, args)
}
func (v vector) Convention() Convention {
return ApplicativeCall
}
func (v vector) CheckArity(argCount int) error {
return checkRangedArity(1, 2, argCount)
}
func (v vector) Equal(r Value) bool {
if r, ok := r.(vector); ok {
if len(v) != len(r) {
return false
}
for i, elem := range r {
if !v[i].Equal(elem) {
return false
}
}
return true
}
return false
}
func (v vector) String() string {
var b bytes.Buffer
l := len(v)
b.WriteString("[")
for i := 0; i < l; i++ {
if i > 0 {
b.WriteString(" ")
}
b.WriteString(MaybeQuoteString(v[i]))
}
b.WriteString("]")
return b.String()
}
func (vector) Type() types.Type {
return basic.Vector
}
func (v vector) HashCode() uint64 {
h := vectorHash
for _, e := range v {
h *= HashCode(e)
}
return h
} | data/vector.go | 0.73077 | 0.593256 | vector.go | starcoder |
package geojson
import (
"encoding/json"
"errors"
)
var (
// ErrNoGeometry happens when no Geometry has been specified during, for instance
// a MarshalJSON operation
ErrNoGeometry = errors.New("no geometry specified")
// ErrMultipleGeometries happens when more than one Geometry has been specified
// and usually happens during MarshalJSON
ErrMultipleGeometries = errors.New("cannot specify multiple geometries")
// ErrInvalidGeometry can happen during UnmarshalJSON when Type is an unknown
// value
ErrInvalidGeometry = errors.New("invalid geometry specified")
)
// Position is single GeoJSON position. It's the building block for multi-position
// types. Positions should be specified in an x, y, z ordering. This would be:
// [longitude, latitude, altitude] for a geographic position.
type Position []float64
// Positions specifies an array of Position types
type Positions []Position
// Point is a specific GeoJSON point object
type Point struct {
// Object is the common GeoJSON object properties
Object
// Coordinates is the position of the Point
Coordinates Position `json:"coordinates"`
}
// MultiPoint is a group of GeoJSON point objects
type MultiPoint struct {
// Object is the common GeoJSON object properties
Object
// Coordinates are the multiple positions
Coordinates Positions `json:"coordinates"`
}
// LineString is a GeoJSON object that is a group of positions that make a line
type LineString struct {
// Object is the common GeoJSON object properties
Object
// Coordinates are the multiple positions that make up a Line
// Positions length must be >= 2
Coordinates Positions `json:"coordinates"`
}
// MultiLineString is a GeoJSON object that is a group of positions that make
// multiple lines
type MultiLineString struct {
// Object is the common GeoJSON object properties
Object
// Coordinates are multiple lines of multiple positions
Coordinates []Positions `json:"coordinates"`
}
// Polygon is a so called LineRing which is a closed LineString of 4 or more
// positions. Multiple rings may be specified, but the first must be an exterior
// ring with any others being holes on the interior of the first LineRing
type Polygon struct {
// Object is the common GeoJSON object properties
Object
// Coordinates are multiple closed LineStrings of 4 or more positions.
// Multiple rings may be specified, but the first must be an exterior
Coordinates []Positions `json:"coordinates"`
}
// MultiPolygon represents a GeoJSON object of multiple Polygons
type MultiPolygon struct {
// Object is the common GeoJSON object properties
Object
// Coordinates are defined by multiple Polygon positions
Coordinates [][]Positions `json:"coordinates"`
}
// GeometryCollection is a set of Geometry objects grouped together
type GeometryCollection struct {
// Object is the common GeoJSON object properties
Object
// Geometries are the Geometry objects to include in the collection
Geometries []Geometry `json:"geometries"`
}
type rawGeometry struct {
Object
Coordinates json.RawMessage `json:"coordinates"`
Geometries json.RawMessage `json:"geometries"`
}
// Geometry is the top-level object that will appropriately marshal & unmarshal into
// GeoJSON
type Geometry struct {
// Object is the common GeoJSON object properties
Object
rawGeometry
// Point if set, represents a GeoJSON Point geometry object
Point *Point `json:",omitempty"`
// MultiPoint if set, represents a GeoJSON MultiPoint geometry object
MultiPoint *MultiPoint `json:",omitempty"`
// LineString if set, represents a GeoJSON LineString geometry object
LineString *LineString `json:",omitempty"`
// MultiLineString if set, represents a GeoJSON MultiLineString geometry object
MultiLineString *MultiLineString `json:",omitempty"`
// Polygon if set, represents a GeoJSON Polygon geometry object
Polygon *Polygon `json:",omitempty"`
// MultiPolygon if set, represents a GeoJSON MultiPolygon geometry object
MultiPolygon *MultiPolygon `json:",omitempty"`
// GeometryCollection if set, represents a GeoJSON GeometryCollection geometry object
GeometryCollection *GeometryCollection `json:",omitempty"`
}
func (g *Geometry) setGeometry() error {
var d interface{}
var r json.RawMessage
switch g.Type {
case "Point":
g.Point = &Point{Object: g.Object}
d, r = &g.Point.Coordinates, g.Coordinates
case "MultiPoint":
g.MultiPoint = &MultiPoint{Object: g.Object}
d, r = &g.MultiPoint.Coordinates, g.Coordinates
case "LineString":
g.LineString = &LineString{Object: g.Object}
d, r = &g.LineString.Coordinates, g.Coordinates
case "MultiLineString":
g.MultiLineString = &MultiLineString{Object: g.Object}
d, r = &g.MultiLineString.Coordinates, g.Coordinates
case "Polygon":
g.Polygon = &Polygon{Object: g.Object}
d, r = &g.Polygon.Coordinates, g.Coordinates
case "MultiPolygon":
g.MultiPolygon = &MultiPolygon{Object: g.Object}
d, r = &g.MultiPolygon.Coordinates, g.Coordinates
case "GeometryCollection":
g.GeometryCollection = &GeometryCollection{Object: g.Object}
d, r = &g.GeometryCollection.Geometries, g.Geometries
default:
return ErrInvalidGeometry
}
return json.Unmarshal(r, d)
}
// MarshalJSON will take a general Geometry object and appropriately marshal the
// object into GeoJSON based on the geometry type that's filled in.
func (g Geometry) MarshalJSON() ([]byte, error) {
type geometry struct {
Object
Coordinates interface{} `json:"coordinates,omitempty"`
Geometries interface{} `json:"geometries,omitempty"`
}
var j geometry
i := 0
if g.Point != nil {
g.Type = "Point"
j = geometry{Object: g.Object, Coordinates: g.Point.Coordinates}
i++
}
if g.MultiPoint != nil {
g.Type = "MultiPoint"
j = geometry{Object: g.Object, Coordinates: g.MultiPoint.Coordinates}
i++
}
if g.LineString != nil {
g.Type = "LineString"
j = geometry{Object: g.Object, Coordinates: g.LineString.Coordinates}
i++
}
if g.MultiLineString != nil {
g.Type = "MultiLineString"
j = geometry{Object: g.Object, Coordinates: g.MultiLineString.Coordinates}
i++
}
if g.Polygon != nil {
g.Type = "Polygon"
j = geometry{Object: g.Object, Coordinates: g.Polygon.Coordinates}
i++
}
if g.MultiPolygon != nil {
g.Type = "MultiPolygon"
j = geometry{Object: g.Object, Coordinates: g.MultiPolygon.Coordinates}
i++
}
if g.GeometryCollection != nil {
g.Type = "GeometryCollection"
j = geometry{Object: g.Object, Geometries: g.GeometryCollection.Geometries}
i++
}
// Exactly one geometry must be specified
if i == 0 {
return nil, ErrNoGeometry
} else if i >= 2 {
return nil, ErrMultipleGeometries
}
return json.Marshal(j)
}
// UnmarshalJSON will take a geometry GeoJSON string and appropriately fill in the
// specific geometry type
func (g *Geometry) UnmarshalJSON(b []byte) error {
var r rawGeometry
err := json.Unmarshal(b, &r)
if err != nil {
return err
}
g.Object = r.Object
g.rawGeometry = r
return g.setGeometry()
} | geometry.go | 0.725551 | 0.558447 | geometry.go | starcoder |
package longest_increasing_path_in_a_matrix
/*
329.矩阵中的最长递增路径 https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix
给定一个整数矩阵,找出最长递增路径的长度。
对于每个单元格,你可以往上,下,左,右四个方向移动。 你不能在对角线方向上移动或移动到边界外(即不允许环绕)。
示例 1:
输入: nums =
[
[9,9,4],
[6,6,8],
[2,1,1]
]
输出: 4
解释: 最长递增路径为 [1, 2, 6, 9]。
示例 2:
输入: nums =
[
[3,4,5],
[3,2,6],
[2,2,1]
]
输出: 4
解释: 最长递增路径是 [3, 4, 5, 6]。注意不允许在对角线方向上移动。
*/
/*
朴素dfs
时间复杂度 :O(2^(m+n))。对每个有效递增路径均进行搜索。在最坏情况下,会有2^(m+n)次调用。例如:
1 2 3 . . . n
2 3 . . . n+1
3 . . . n+2
. .
. .
. .
m m+1 . . . n+m-1
空间复杂度 : O(mn)。 对于每次深度优先搜索,系统栈需要 O(h)空间,其中 h 为递归的最深深度。最坏情况下, O(h) = O(mn)。
*/
func longestIncreasingPath1(matrix [][]int) int {
if len(matrix) == 0 || len(matrix[0]) == 0 {
return 0
}
m, n := len(matrix), len(matrix[0])
dirs := [][]int{{0, 1}, {1, 0}, {0, -1}, {-1, 0}}
var dfs func(r, c int) int
dfs = func(r, c int) int {
result := 1 // 一个元素自身可作为一个递增序列
for _, d := range dirs {
x, y := r+d[0], c+d[1]
if x >= 0 && x < m && y >= 0 && y < n && matrix[x][y] > matrix[r][c] {
result = max(result, 1+dfs(x, y))
}
}
return result
}
result := 0
for r := 0; r < m; r++ {
for c := 0; c < n; c++ {
result = max(result, dfs(r, c))
}
}
return result
}
/*
可以用一个备忘录存储dfs函数里已经计算的结果,减少重复计算
时间复杂度降为O((mn)^2);空间复杂度依然是O(mn)
*/
func longestIncreasingPath(matrix [][]int) int {
if len(matrix) == 0 || len(matrix[0]) == 0 {
return 0
}
m, n := len(matrix), len(matrix[0])
dirs := [][]int{{0, 1}, {1, 0}, {0, -1}, {-1, 0}}
memo := make([][]int, m)
for i := range memo {
memo[i] = make([]int, n) // 可以初始化全部元素为1,但也可在dfs过程中初始化为1
}
var dfs func(r, c int) int
dfs = func(r, c int) int {
if memo[r][c] > 0 {
return memo[r][c]
}
memo[r][c] = 1
for _, d := range dirs {
x, y := r+d[0], c+d[1]
if x >= 0 && x < m && y >= 0 && y < n && matrix[x][y] > matrix[r][c] {
memo[r][c] = max(memo[r][c], 1+dfs(x, y))
}
}
return memo[r][c]
}
result := 0
for r := 0; r < m; r++ {
for c := 0; c < n; c++ {
result = max(result, dfs(r, c))
}
}
return result
}
func max(a, b int) int {
if a > b {
return a
}
return b
} | solutions/longest-increasing-path-in-a-matrix/d.go | 0.587352 | 0.624866 | d.go | starcoder |
package render
import (
"fmt"
"strconv"
"time"
"golang.org/x/tools/godoc/vfs"
)
var registry = map[string](func(vfs.FileSystem) Component){}
// RegisterComponent adds a new component to the registry, returning an error if duplicate names exist.
func RegisterComponent(name string, generator func(vfs.FileSystem) Component) error {
if registry == nil {
registry = map[string](func(vfs.FileSystem) Component){}
}
if registry[name] != nil {
return fmt.Errorf("cannot register component, %v is already registered", name)
}
registry[name] = generator
return nil
}
// Decode searches the registry for a component matching the provided name and returns a new blank component of that type.
func Decode(name string) (Component, error) {
if registry == nil || registry[name] == nil {
return nil, fmt.Errorf("component error: no component registered for name %v", name)
}
return registry[name](vfs.OS(".")), nil
}
// NamedProperties is a map of property names to property values - application variables to be set.
type NamedProperties map[string]interface{}
// Component provides a generic interface for operations to perform on a canvas.
type Component interface {
Write(canvas Canvas) (Canvas, error)
SetNamedProperties(properties NamedProperties) (Component, error)
GetJSONFormat() interface{}
VerifyAndSetJSONData(interface{}) (Component, NamedProperties, error)
}
// PropertySetFunc maps property names and values to component inner properties.
type PropertySetFunc func(string, interface{}) error
// StandardSetNamedProperties iterates over all named properties, retrieves their value, and calls the provided function to map properties to inner component properties. Each implementation of Component should call this within its SetNamedProperties function.
func StandardSetNamedProperties(properties NamedProperties, propMap map[string][]string, setFunc PropertySetFunc) (leftovers map[string][]string, err error) {
for name, value := range properties {
innerPropNames := propMap[name]
if len(innerPropNames) <= 0 {
// Not matching props, keep going
continue
}
for _, innerName := range innerPropNames {
err = setFunc(innerName, value)
if err != nil {
return propMap, err
}
}
delete(propMap, name)
}
return propMap, nil
}
// DeconstructedDataValue is a string broken down into static values and property names. The reconstruction always starts with a static value, always has one more static value than props, and always alternates static, prop, static, prop... if any props exist.
type DeconstructedDataValue struct {
// StaticValues are the true string components of the processed JSON value.
StaticValues []string
// PropNames are the extracted variable names from the processed JSON value.
PropNames []string
}
func isSingleProp(d DeconstructedDataValue) bool {
return len(d.PropNames) == 1 && len(d.StaticValues) == 2 && d.StaticValues[0] == "" && d.StaticValues[1] == ""
}
// PropType represents the types of properties which can be parsed.
type PropType string
const (
// IntType is an int
IntType PropType = "int"
// StringType is a string
StringType PropType = "string"
// BoolType is a bool
BoolType PropType = "bool"
// Uint8Type is a uint8
Uint8Type PropType = "uint8"
// Float64Type is a float64
Float64Type PropType = "float64"
// TimeType is a *time.Time
TimeType PropType = "time"
)
// ExtractSingleProp parses the loaded property configuration and application inputs and returns the desired property if it exists.
func ExtractSingleProp(inputVal, propName string, typeName PropType, namedPropsMap map[string][]string) (returnedPropsMap map[string][]string, ExtractedValue interface{}, err error) {
var foundProps bool
if returnedPropsMap, foundProps, err = parseToProps(inputVal, propName, namedPropsMap); err != nil || foundProps {
return
}
switch typeName {
case IntType:
var int64Val int64
int64Val, err = strconv.ParseInt(inputVal, 10, 64) //Use ParseInt instead of Atoi for compatibility with go 1.7
if err != nil {
err = fmt.Errorf("failed to convert property %v to integer: %v", propName, err)
} else {
ExtractedValue = int(int64Val)
}
case StringType:
ExtractedValue = inputVal
case BoolType:
ExtractedValue, err = strconv.ParseBool(inputVal)
if err != nil {
err = fmt.Errorf("failed to convert property %v to bool: %v", propName, err)
}
case Uint8Type:
var rawU uint64
rawU, err = strconv.ParseUint(inputVal, 0, 8)
if err != nil {
err = fmt.Errorf("failed to convert property %v to uint8: %v", propName, err)
}
ExtractedValue = uint8(rawU)
case Float64Type:
ExtractedValue, err = strconv.ParseFloat(inputVal, 64)
if err != nil {
err = fmt.Errorf("failed to convert property %v to float64: %v", propName, err)
}
case TimeType:
ExtractedValue, err = time.ParseDuration(inputVal)
if err != nil {
err = fmt.Errorf("failed to convert property %v to time.Duration: %v", propName, err)
}
default:
err = fmt.Errorf("cannot convert property %v to unsupported type %v", propName, typeName)
}
if err != nil {
returnedPropsMap = namedPropsMap
}
return returnedPropsMap, ExtractedValue, err
}
func parseToProps(inputVal, propName string, existingProps map[string][]string) (map[string][]string, bool, error) {
npm := existingProps
if npm == nil {
npm = make(map[string][]string)
}
hasNamedProps, deconstructed, err := ParseDataValue(inputVal)
if err != nil {
return existingProps, false, fmt.Errorf("error parsing data for property %v: %v", propName, err)
}
if hasNamedProps {
if !isSingleProp(deconstructed) {
return existingProps, false, fmt.Errorf("composite properties are not yet supported: %v", inputVal)
}
customPropName := deconstructed.PropNames[0]
npm[customPropName] = append(npm[propName], propName)
return npm, true, nil
}
return npm, false, nil
}
// PropData is a matched triplet of input property data for use with extraction of exclusive properties.
type PropData struct {
// InputValue is the raw JSON string data.
InputValue string
// PropName is the name of the property being sought, to associate with discovered variables.
PropName string
// Type is the conversion to attempt on the string.
Type PropType
}
// ExtractExclusiveProp parses the loaded property configuration and application inputs and returns the desired property if it exists and if only one of the desired options exists.
func ExtractExclusiveProp(data []PropData, namedPropsMap map[string][]string) (returnedPropsMap map[string][]string, ExtractedValue interface{}, validIndex int, err error) {
listSize := len(data)
type result struct {
props map[string][]string
err error
value interface{}
}
resultArray := make([]*result, listSize)
for i := range resultArray {
resultArray[i] = &result{props: make(map[string][]string)}
}
setCount := 0
validIndex = -1
for i, datum := range data {
aResult := resultArray[i]
aResult.props, aResult.value, aResult.err = ExtractSingleProp(datum.InputValue, datum.PropName, datum.Type, aResult.props)
if len(aResult.props) != 0 || aResult.err == nil { //This is an || because if a property has been added to the blank array, the function succeeded
setCount++
validIndex = i
}
}
if setCount != 1 {
concatString := ""
for i, datum := range data {
if i != 0 {
concatString = concatString + ","
}
concatString = concatString + datum.PropName
}
return namedPropsMap, nil, -1, fmt.Errorf("exactly one of (%v) must be set", concatString)
}
returnedPropsMap = namedPropsMap
for key, value := range resultArray[validIndex].props {
if returnedPropsMap == nil {
returnedPropsMap = make(map[string][]string)
}
returnedPropsMap[key] = append(returnedPropsMap[key], value...)
}
ExtractedValue = resultArray[validIndex].value
err = nil
return
}
// ParseDataValue determines whether a string represents raw data or a named variable and returns this information as well as the data cleaned of any variable definitions.
func ParseDataValue(value string) (hasNamedProperties bool, deconstructed DeconstructedDataValue, err error) {
deconstructed = DeconstructedDataValue{}
cleanString := ""
if len(value) == 0 {
err = fmt.Errorf("could not parse empty property")
return
}
for i := 0; i < len(value); i++ {
if value[i] != '$' {
cleanString = cleanString + string(value[i])
continue
}
var j int
for j = i + 1; j < len(value); j++ {
if value[j] == '$' {
break
}
}
if j >= len(value) || value[j] != '$' {
err = fmt.Errorf("unclosed named property in '%v'", value)
return
}
subString := value[i+1 : j]
i = j
if len(subString) == 0 {
cleanString = cleanString + "$"
continue
}
hasNamedProperties = true
deconstructed.StaticValues = append(deconstructed.StaticValues, cleanString)
cleanString = ""
deconstructed.PropNames = append(deconstructed.PropNames, subString)
}
deconstructed.StaticValues = append(deconstructed.StaticValues, cleanString)
return
} | render/component.go | 0.63477 | 0.411998 | component.go | starcoder |
package gcdby
import (
"math/big"
)
type step struct {
delta int
f *big.Int
g *big.Int
p []*big.Float
}
var (
zero = big.NewInt(0)
zerof = big.NewFloat(0)
one = big.NewInt(1)
onef = big.NewFloat(1)
two = big.NewInt(2)
twof = big.NewFloat(2)
)
func truncate(f *big.Int, t uint) *big.Int {
if t == 0 {
return zero
}
twoT := new(big.Int).Lsh(one, t-1) // twoT = 1 << (t - 1)
a := new(big.Int).Add(f, twoT) // a = f + twoT
b := new(big.Int).Mul(two, twoT)
b.Sub(b, one) // b = 2 * twoT - 1
a.And(a, b) // a = a & b
return a.Sub(a, twoT) // ((f + twoT) & (2 * twoT - 1)) - twoT
}
func iterations(d uint) uint {
if d < 46 {
return (49*d + 80) / 17
}
return (49*d + 57) / 17
}
func divstep(n, t uint, delta int, initialF, initialG *big.Int) step {
if t < n || n < 0 {
panic("invalid divstep arguments")
}
f, g := truncate(initialF, t), truncate(initialG, t)
u, v, q, r := big.NewFloat(1), big.NewFloat(0), big.NewFloat(0), big.NewFloat(1)
for n > 0 {
f = truncate(f, t)
g0 := new(big.Int).And(g, one)
if delta > 0 && (g0.Cmp(one) == 0) {
delta, f, g, u, v, q, r = -delta, g, new(big.Int).Neg(f), q, r, new(big.Float).Neg(u), new(big.Float).Neg(v)
}
g0.And(g, one)
g0f := new(big.Float).SetInt(g0)
delta = 1 + delta
g.Add(g, new(big.Int).Mul(g0, f)).Quo(g, two) // (g+g0*f)/2
q.Add(q, new(big.Float).Mul(g0f, u)).Quo(q, twof) // (q+g0f*u)/2
r.Add(r, new(big.Float).Mul(g0f, v)).Quo(r, twof) // (r+g0f*v)/2
n, t = n-1, t-1
g = truncate(g, t)
}
result := step{
delta: delta,
f: f,
g: g,
p: []*big.Float{u, v, q, r},
}
return result
}
func GcdInt(f, g int) int {
return 0
}
func Gcd(f, g *big.Int) *big.Int {
f1 := new(big.Int).And(f, one)
if f1.Cmp(one) == 0 {
panic("f must be odd")
}
var d uint
fd := f.BitLen()
gd := g.BitLen()
if gd > fd {
d = uint(gd)
} else {
d = uint(fd)
}
m := iterations(d)
step := divstep(m, m+d, 1, f, g)
return new(big.Int).Abs(step.f)
} | gcd.go | 0.569613 | 0.401717 | gcd.go | starcoder |
package models
import (
"math"
"raytracer/utility"
"sort"
"github.com/go-gl/mathgl/mgl32"
"github.com/udhos/gwob"
)
type Triangle struct {
Index int
Vertices [3]mgl32.Vec3
TextureCoords [3]mgl32.Vec2
// TODO: Add vertex normals
// For Woop intersection
//LocalM mgl32.Mat3
//LocalN mgl32.Vec3
Normal mgl32.Vec3
Material *gwob.Material
// Helpers for trace
Edge0 mgl32.Vec3
Edge1 mgl32.Vec3
Edge2 mgl32.Vec3
IsLight bool
}
func (t *Triangle) Center() mgl32.Vec3 {
return t.Vertices[0].Add(t.Vertices[1]).Add(t.Vertices[2]).Mul(1.0 / 3.0)
}
func (t *Triangle) Min() mgl32.Vec3 {
return utility.Vec3Min(utility.Vec3Min(t.Vertices[0], t.Vertices[1]), t.Vertices[2])
}
func (t *Triangle) Max() mgl32.Vec3 {
return utility.Vec3Max(utility.Vec3Max(t.Vertices[0], t.Vertices[1]), t.Vertices[2])
}
func NewTriangle(v0 mgl32.Vec3, v1 mgl32.Vec3, v2 mgl32.Vec3, material *gwob.Material, index int) *Triangle {
normal := v1.Sub(v0).Cross(v2.Sub(v0)).Normalize()
tri := &Triangle{
Index: index,
Vertices: [3]mgl32.Vec3{
v0, v1, v2,
},
Normal: normal,
Material: material,
Edge0: v1.Sub(v0),
Edge1: v2.Sub(v1),
Edge2: v0.Sub(v2),
IsLight: material.Name == "Light",
//LocalM: mgl32.Mat3FromCols(v1.Sub(v0), v2.Sub(v0), normal).Inv(),
}
//tri.LocalN = tri.LocalM.Mul(-1).Mul3x1(v0)
return tri
}
func TriangleSorter(axis mgl32.Vec3, triangles []*Triangle, startIndex int, endIndex int) {
sort.Slice(triangles[startIndex:endIndex+1], func(i, j int) bool {
a := axis.Dot(triangles[startIndex+i].Center())
b := axis.Dot(triangles[startIndex+j].Center())
if a == b {
return triangles[startIndex+i].Index < triangles[startIndex+j].Index
}
return a < b
})
}
func (triangle *Triangle) RayIntersect(ray *Ray) (float32, float32, float32) {
// From https://www.scratchapixel.com/lessons/3d-basic-rendering/ray-tracing-rendering-a-triangle/moller-trumbore-ray-triangle-intersection
v0v2 := triangle.Edge2.Mul(-1)
pvec := ray.Direction.Cross(v0v2)
det := triangle.Edge0.Dot(pvec)
if det < 0.0001 {
return -1, 0, 0
}
invdet := 1.0 / det
tvec := ray.Origin.Sub(triangle.Vertices[0])
u := tvec.Dot(pvec) * invdet
if u < 0 || u > 1 {
return -1, 0, 0
}
qvec := tvec.Cross(triangle.Edge0)
v := ray.Direction.Dot(qvec) * invdet
if v < 0 || u+v > 1 {
return -1, 0, 0
}
t := v0v2.Dot(qvec) * invdet
return t, u, v
}
func (triangle *Triangle) GetShortestEdge() mgl32.Vec3 {
if triangle.Edge0.Len() < triangle.Edge1.Len() {
if triangle.Edge0.Len() < triangle.Edge2.Len() {
return triangle.Edge0
}
return triangle.Edge2
}
if triangle.Edge1.Len() < triangle.Edge2.Len() {
return triangle.Edge1
}
return triangle.Edge2
}
func (triangle *Triangle) GetMiddleEdge() mgl32.Vec3 {
if triangle.Edge0.Len() < triangle.Edge1.Len() {
if triangle.Edge1.Len() < triangle.Edge2.Len() {
return triangle.Edge1
}
if triangle.Edge0.Len() < triangle.Edge2.Len() {
return triangle.Edge2
}
return triangle.Edge0
}
if triangle.Edge2.Len() < triangle.Edge1.Len() {
return triangle.Edge1
}
if triangle.Edge0.Len() < triangle.Edge2.Len() {
return triangle.Edge0
}
return triangle.Edge2
}
func GetTriangleBounds(triangles []*Triangle) (mgl32.Vec3, mgl32.Vec3) {
var minx, miny, minz float32 = math.MaxFloat32, math.MaxFloat32, math.MaxFloat32
var maxx, maxy, maxz float32 = -math.MaxFloat32, -math.MaxFloat32, -math.MaxFloat32
for _, triangle := range triangles {
for _, vertex := range triangle.Vertices {
if vertex.X() < minx {
minx = vertex.X()
}
if vertex.Y() < miny {
miny = vertex.Y()
}
if vertex.Z() < minz {
minz = vertex.Z()
}
if vertex.X() > maxx {
maxx = vertex.X()
}
if vertex.Y() > maxy {
maxy = vertex.Y()
}
if vertex.Z() > maxz {
maxz = vertex.Z()
}
}
}
return mgl32.Vec3{minx, miny, minz}, mgl32.Vec3{maxx, maxy, maxz}
}
/*
func NewTriangle(v0 mgl32.Vec3, v1 mgl32.Vec3, v2 mgl32.Vec3) *Triangle {
// Woop04
normal := v1.Sub(v0).Cross(v2.Sub(v0)).Normalize()
tri := &Triangle{
Vertices: [3]mgl32.Vec3{v0, v1, v2},
LocalM: mgl32.Mat3FromCols(v1.Sub(v0), v2.Sub(v0), normal).Inv(),
Normal: normal,
}
tri.LocalN = tri.LocalM.Mul(-1).Mul3x1(v0)
return tri
}
*/
/*
func (triangle *Triangle) RayIntersect(ray *Ray) (float32, float32, float32) {
// Woop04
transformed_origin := triangle.LocalM.Mul3x1(ray.Origin).Add(triangle.LocalN)
transformed_dir := triangle.LocalM.Mul3x1(ray.Direction)
t := -transformed_origin.Z() / transformed_dir.Z()
u := transformed_origin.X() + transformed_dir.X()*t
v := transformed_origin.Y() + transformed_dir.Y()*t
if u <= 0.0 || v <= 0.0 || u+v >= 1.0 {
return -1, -1, -1
}
return t, u, v
}
*/ | src/backend/models/triangle.go | 0.502441 | 0.560794 | triangle.go | starcoder |
package assertions
import (
"fmt"
"reflect"
"strings"
)
import (
"github.com/smartystreets/oglematchers"
)
// ShouldEqual receives exactly two parameters and does an equality check.
func ShouldEqual(actual interface{}, expected ...interface{}) string {
if message := need(1, expected); message != success {
return message
}
return shouldEqual(actual, expected[0])
}
func shouldEqual(actual, expected interface{}) (message string) {
defer func() {
if r := recover(); r != nil {
message = fmt.Sprintf(shouldHaveBeenEqual, expected, actual)
}
}()
if matchError := oglematchers.Equals(expected).Matches(actual); matchError != nil {
return fmt.Sprintf(shouldHaveBeenEqual, expected, actual)
}
return success
}
// ShouldNotEqual receives exactly two parameters and does an inequality check.
func ShouldNotEqual(actual interface{}, expected ...interface{}) string {
if fail := need(1, expected); fail != success {
return fail
} else if ShouldEqual(actual, expected[0]) == success {
return fmt.Sprintf(shouldNotHaveBeenEqual, actual, expected[0])
}
return success
}
// ShouldResemble receives exactly two parameters and does a deep equal check (see reflect.DeepEqual)
func ShouldResemble(actual interface{}, expected ...interface{}) string {
if message := need(1, expected); message != success {
return message
}
if matchError := oglematchers.DeepEquals(expected[0]).Matches(actual); matchError != nil {
return fmt.Sprintf(shouldHaveResembled, expected[0], actual)
}
return success
}
// ShouldNotResemble receives exactly two parameters and does an inverse deep equal check (see reflect.DeepEqual)
func ShouldNotResemble(actual interface{}, expected ...interface{}) string {
if message := need(1, expected); message != success {
return message
} else if ShouldResemble(actual, expected[0]) == success {
return fmt.Sprintf(shouldNotHaveResembled, actual, expected[0])
}
return success
}
// ShouldPointTo receives exactly two parameters and checks to see that they point to the same address.
func ShouldPointTo(actual interface{}, expected ...interface{}) string {
if message := need(1, expected); message != success {
return message
}
return shouldPointTo(actual, expected[0])
}
func shouldPointTo(actual, expected interface{}) string {
actualValue := reflect.ValueOf(actual)
expectedValue := reflect.ValueOf(expected)
if ShouldNotBeNil(actual) != success {
return fmt.Sprintf(shouldHaveBeenNonNilPointer, "first", "nil")
} else if ShouldNotBeNil(expected) != success {
return fmt.Sprintf(shouldHaveBeenNonNilPointer, "second", "nil")
} else if actualValue.Kind() != reflect.Ptr {
return fmt.Sprintf(shouldHaveBeenNonNilPointer, "first", "not")
} else if expectedValue.Kind() != reflect.Ptr {
return fmt.Sprintf(shouldHaveBeenNonNilPointer, "second", "not")
} else if ShouldEqual(actualValue.Pointer(), expectedValue.Pointer()) != success {
return fmt.Sprintf(shouldHavePointedTo,
actual, reflect.ValueOf(actual).Pointer(),
expected, reflect.ValueOf(expected).Pointer())
}
return success
}
// ShouldNotPointTo receives exactly two parameters and checks to see that they point to different addresess.
func ShouldNotPointTo(actual interface{}, expected ...interface{}) string {
if message := need(1, expected); message != success {
return message
}
compare := ShouldPointTo(actual, expected[0])
if strings.HasPrefix(compare, shouldBePointers) {
return compare
} else if compare == success {
return fmt.Sprintf(shouldNotHavePointedTo, actual, expected[0], reflect.ValueOf(actual).Pointer())
}
return success
}
// ShouldBeNil receives a single parameter and ensures that it is nil.
func ShouldBeNil(actual interface{}, expected ...interface{}) string {
if fail := need(0, expected); fail != success {
return fail
} else if actual == nil {
return success
} else if interfaceIsNilPointer(actual) {
return success
}
return fmt.Sprintf(shouldHaveBeenNil, actual)
}
func interfaceIsNilPointer(actual interface{}) bool {
value := reflect.ValueOf(actual)
return value.Kind() == reflect.Ptr && value.Pointer() == 0
}
// ShouldNotBeNil receives a single parameter and ensures that it is not nil.
func ShouldNotBeNil(actual interface{}, expected ...interface{}) string {
if fail := need(0, expected); fail != success {
return fail
} else if ShouldBeNil(actual) == success {
return fmt.Sprintf(shouldNotHaveBeenNil, actual)
}
return success
}
// ShouldBeTrue receives a single parameter and ensures that it is true.
func ShouldBeTrue(actual interface{}, expected ...interface{}) string {
if fail := need(0, expected); fail != success {
return fail
} else if actual != true {
return fmt.Sprintf(shouldHaveBeenTrue, actual)
}
return success
}
// ShouldBeFalse receives a single parameter and ensures that it is false.
func ShouldBeFalse(actual interface{}, expected ...interface{}) string {
if fail := need(0, expected); fail != success {
return fail
} else if actual != false {
return fmt.Sprintf(shouldHaveBeenFalse, actual)
}
return success
} | src/github.com/smartystreets/goconvey/assertions/equality.go | 0.760473 | 0.731442 | equality.go | starcoder |
package plugins
import (
"strings"
"time"
)
// State describes a pull-request states, based on the events we've
// seen.
type State interface {
// Has the state been activated
Active() bool
// How long has the state been activated (will panic if not active)
Age(t time.Time) time.Duration
// Receive the event, return the new state
ReceiveEvent(eventName, label string, t time.Time) (State, bool)
}
// ActiveState describe a states that has been enabled.
type ActiveState struct {
startTime time.Time
exit EventMatcher
}
var _ State = &ActiveState{}
// Active if always true for an ActiveState
func (ActiveState) Active() bool {
return true
}
// Age gives the time since the state has been activated.
func (a *ActiveState) Age(t time.Time) time.Duration {
return t.Sub(a.startTime)
}
// ReceiveEvent checks if the event matches the exit criteria.
// Returns a new InactiveState or self, and true if it changed.
func (a *ActiveState) ReceiveEvent(eventName, label string, t time.Time) (State, bool) {
if a.exit.Match(eventName, label) {
return &InactiveState{
entry: a.exit.Opposite(),
}, true
}
return a, false
}
// InactiveState describes a state that has not enabled, or been disabled.
type InactiveState struct {
entry EventMatcher
}
var _ State = &InactiveState{}
// Active is always false for an InactiveState
func (InactiveState) Active() bool {
return false
}
// Age doesn't make sense for InactiveState.
func (i *InactiveState) Age(t time.Time) time.Duration {
panic("InactiveState doesn't have an age.")
}
// ReceiveEvent checks if the event matches the entry criteria
// Returns a new ActiveState or self, and true if it changed.
func (i *InactiveState) ReceiveEvent(eventName, label string, t time.Time) (State, bool) {
if i.entry.Match(eventName, label) {
return &ActiveState{
startTime: t,
exit: i.entry.Opposite(),
}, true
}
return i, false
}
// MultiState tracks multiple individual states at the same time.
type MultiState struct {
states []State
}
var _ State = &MultiState{}
// Active is true if all the states are active.
func (m *MultiState) Active() bool {
for _, state := range m.states {
if !state.Active() {
return false
}
}
return true
}
// Age returns the time since all states have been activated.
// It will panic if any of the state is not active.
func (m *MultiState) Age(t time.Time) time.Duration {
minAge := time.Duration(1<<63 - 1)
for _, state := range m.states {
stateAge := state.Age(t)
if stateAge < minAge {
minAge = stateAge
}
}
return minAge
}
// ReceiveEvent will send the event to each individual state, and update
// them if they change.
func (m *MultiState) ReceiveEvent(eventName, label string, t time.Time) (State, bool) {
oneChanged := false
for i := range m.states {
state, changed := m.states[i].ReceiveEvent(eventName, label, t)
if changed {
oneChanged = true
}
m.states[i] = state
}
return m, oneChanged
}
// NewState creates a MultiState instance based on the statesDescription
// string. statesDescription is a comma separated list of
// events. Events can be prepended with "!" (bang) to say that the state
// will be activated only if this event doesn't happen (or is inverted).
func NewState(statesDescription string) State {
states := []State{}
if statesDescription == "" {
// Create an infinite inactive state
return &InactiveState{
entry: FalseEvent{},
}
}
splitDescription := strings.Split(statesDescription, ",")
for _, description := range splitDescription {
description = strings.TrimSpace(description)
if strings.HasPrefix(description, "!") {
states = append(states, &ActiveState{
startTime: time.Time{},
exit: NewEventMatcher(description[1:]),
})
} else {
states = append(states, &InactiveState{
entry: NewEventMatcher(description),
})
}
}
return &MultiState{states: states}
} | velodrome/transform/plugins/states.go | 0.542621 | 0.447219 | states.go | starcoder |
package advent
import . "github.com/davidparks11/advent2021/internal/advent/day11"
var _ Problem = &dumboOctopus{}
type dumboOctopus struct {
dailyProblem
}
func NewDumboOctopus() Problem {
return &dumboOctopus{
dailyProblem{
day: 11,
},
}
}
func (d *dumboOctopus) Solve() interface{} {
input := d.GetInputLines()
var results []int
results = append(results, d.flashCount(input))
results = append(results, d.syncStep(input))
return results
}
/*
You enter a large cavern full of rare bioluminescent dumbo octopuses! They seem to not like the Christmas lights on your submarine, so you turn them off for now.
There are 100 octopuses arranged neatly in a 10 by 10 grid. Each octopus slowly gains energy over time and flashes brightly for a moment when its energy is full. Although your lights are off, maybe you could navigate through the cave without disturbing the octopuses if you could predict when the flashes of light will happen.
Each octopus has an energy level - your submarine can remotely measure the energy level of each octopus (your puzzle input). For example:
5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526
The energy level of each octopus is a value between 0 and 9. Here, the top-left octopus has an energy level of 5, the bottom-right one has an energy level of 6, and so on.
You can model the energy levels and flashes of light in steps. During a single step, the following occurs:
First, the energy level of each octopus increases by 1.
Then, any octopus with an energy level greater than 9 flashes. This increases the energy level of all adjacent octopuses by 1, including octopuses that are diagonally adjacent. If this causes an octopus to have an energy level greater than 9, it also flashes. This process continues as long as new octopuses keep having their energy level increased beyond 9. (An octopus can only flash at most once per step.)
Finally, any octopus that flashed during this step has its energy level set to 0, as it used all of its energy to flash.
Adjacent flashes can cause an octopus to flash on a step even if it begins that step with very little energy. Consider the middle octopus with 1 energy in this situation:
Before any steps:
11111
19991
19191
19991
11111
After step 1:
34543
40004
50005
40004
34543
After step 2:
45654
51115
61116
51115
45654
An octopus is highlighted when it flashed during the given step.
Here is how the larger example above progresses:
Before any steps:
.
.
.
After 100 steps, there have been a total of 1656 flashes.
Given the starting energy levels of the dumbo octopuses in your cavern, simulate 100 steps. How many total flashes are there after 100 steps?
*/
func (d *dumboOctopus) flashCount(input []string) int {
grid := ParseInput(input)
flashes := 0
for i := 0; i < 100; i++ {
flashes += grid.Step()
}
return flashes
}
/*
It seems like the individual flashes aren't bright enough to navigate. However, you might have a better option: the flashes seem to be synchronizing!
In the example above, the first time all octopuses flash simultaneously is step 195:
After step 193:
5877777777
8877777777
7777777777
7777777777
7777777777
7777777777
7777777777
7777777777
7777777777
7777777777
After step 194:
6988888888
9988888888
8888888888
8888888888
8888888888
8888888888
8888888888
8888888888
8888888888
8888888888
After step 195:
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
If you can calculate the exact moments when the octopuses will all flash simultaneously, you should be able to navigate through the cavern. What is the first step during which all octopuses flash?
*/
func (d *dumboOctopus) syncStep(input []string) int {
grid := ParseInput(input)
totalOctopuses := grid.Width * grid.Length
steps := 0
for {
steps++
if flashes := grid.Step(); flashes == totalOctopuses {
break
}
}
return steps
} | internal/advent/day11.go | 0.736874 | 0.451508 | day11.go | starcoder |
package element
import (
"errors"
"math"
"reflect"
)
type Element struct {
Val interface{}
Type reflect.Kind
}
var emptyElement = New(nil)
var Ops = map[string]func(Element, Element) (Element, error) {
"+": func(a, b Element) (Element, error) { return New(a.Val.(float64) + b.Val.(float64)), nil },
"-": func(a, b Element) (Element, error) { return New(a.Val.(float64) - b.Val.(float64)), nil },
"*": func(a, b Element) (Element, error) { return New(a.Val.(float64) * b.Val.(float64)), nil },
"/": func(a, b Element) (Element, error) { return New(a.Val.(float64) / b.Val.(float64)), nil },
"%": func(a, b Element) (Element, error) { return New(math.Mod(a.Val.(float64), b.Val.(float64))), nil },
"<": func(a, b Element) (Element, error) { return New(a.Val.(float64) < b.Val.(float64)), nil },
"<=": func(a, b Element) (Element, error) { return New(a.Val.(float64) <= b.Val.(float64)), nil },
">": func(a, b Element) (Element, error) { return New(a.Val.(float64) > b.Val.(float64)), nil },
">=": func(a, b Element) (Element, error) { return New(a.Val.(float64) >= b.Val.(float64)), nil },
}
// ------------------------------------------
// Element Methods --------------------------
// ------------------------------------------
func New(value interface{}) Element {
if value == nil {
return Element{Val: value, Type: reflect.Invalid}
}
return Element{Val: value, Type: reflect.TypeOf(value).Kind()}
}
func (e *Element) AsFloat() error {
switch e.Val.(type) {
case uint8:
e.Val = float64(e.Val.(uint8))
case int8:
e.Val = float64(e.Val.(uint8))
case uint16:
e.Val = float64(e.Val.(uint16))
case int16:
e.Val = float64(e.Val.(int16))
case uint32:
e.Val = float64(e.Val.(uint32))
case int32:
e.Val = float64(e.Val.(int32))
case uint64:
e.Val = float64(e.Val.(uint64))
case int64:
e.Val = float64(e.Val.(int64))
case int:
e.Val = float64(e.Val.(int))
case float32:
e.Val = float64(e.Val.(float32))
case float64:
e.Val = float64(e.Val.(float64))
default:
return errors.New("ArithmeticError: can only add numeric types")
}
e.Type = reflect.Float64
return nil
}
// --------------------------------------------
// Element Functions --------------------------
// --------------------------------------------
func Op(e, x Element, op string) (Element, error) {
// Ensure e has float value - strings cannot be cast to floats, so ignore these errors
err_e := e.AsFloat()
if err_e != nil && op != "==" {
return emptyElement, err_e
}
// Ensure x has float value - strings cannot be cast to floats, so ignore these errors
err_x := x.AsFloat()
if err_x != nil && op != "==" {
return emptyElement, err_x
}
// Return no error
return Ops[op](e, x)
}
func Add(e, x Element) (Element, error) {
return Op(e, x, "+")
}
func Diff(e, x Element) (Element, error) {
return Op(e, x, "-")
}
func Prod(e, x Element) (Element, error) {
return Op(e, x, "*")
}
func Quot(e, x Element) (Element, error) {
return Op(e, x, "/")
}
func Mod(e, x Element) (Element, error) {
return Op(e, x, "%")
}
func Eq(e, x Element) (Element, error) {
// If one is nil, the other must also be nil.
False := New(false)
True := New(true)
if (e.Val == nil) != (x.Val == nil) {
return False, nil
}
if !reflect.DeepEqual(e, x) {
// Compare floats, which may have floating point precision errors
e_type := e.Type
x_type := x.Type
if e_type == reflect.Float32 || e_type == reflect.Float64 || x_type == reflect.Float32 || x_type == reflect.Float64 {
e.AsFloat()
x.AsFloat()
if math.Abs(e.Val.(float64) - x.Val.(float64)) > 1e-10 {
return False, nil
}
} else {
return False, nil
}
}
return True, nil
}
func Le(e, x Element) (Element, error) {
return Op(e, x, "<")
}
func Leq(e, x Element) (Element, error) {
return Op(e, x, "<=")
}
func Ge(e, x Element) (Element, error) {
return Op(e, x, ">")
}
func Geq(e, x Element) (Element, error) {
return Op(e, x, ">=")
} | src/frame/element/element.go | 0.63861 | 0.42322 | element.go | starcoder |
package swagger
const (
Antidoteinfo = `{
"swagger": "2.0",
"info": {
"title": "antidoteinfo.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/exp/antidoteinfo": {
"get": {
"operationId": "AntidoteInfoService_GetAntidoteInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expAntidoteInfo"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"AntidoteInfoService"
]
}
}
},
"definitions": {
"expAntidoteInfo": {
"type": "object",
"properties": {
"buildSha": {
"type": "string"
},
"buildVersion": {
"type": "string"
},
"curriculumVersion": {
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}
`
Collection = `{
"swagger": "2.0",
"info": {
"title": "collection.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/exp/collection": {
"get": {
"operationId": "CollectionService_ListCollections",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expCollections"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"CollectionService"
]
}
},
"/exp/collection/{slug}": {
"get": {
"operationId": "CollectionService_GetCollection",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expCollection"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "slug",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"CollectionService"
]
}
}
},
"definitions": {
"expCollection": {
"type": "object",
"properties": {
"Slug": {
"type": "string"
},
"Title": {
"type": "string"
},
"Image": {
"type": "string"
},
"Website": {
"type": "string"
},
"ContactEmail": {
"type": "string"
},
"BriefDescription": {
"type": "string",
"title": "Why should users view your collection?"
},
"LongDescription": {
"type": "string",
"title": "Why should users continue and view your lessons?"
},
"Type": {
"type": "string"
},
"Tier": {
"type": "string"
},
"CollectionFile": {
"type": "string"
},
"Lessons": {
"type": "array",
"items": {
"$ref": "#/definitions/expLessonSummary"
}
}
}
},
"expCollections": {
"type": "object",
"properties": {
"collections": {
"type": "array",
"items": {
"$ref": "#/definitions/expCollection"
}
}
}
},
"expLessonSummary": {
"type": "object",
"properties": {
"Slug": {
"type": "string"
},
"Name": {
"type": "string"
},
"Description": {
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}
`
Curriculum = `{
"swagger": "2.0",
"info": {
"title": "curriculum.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/exp/curriculum": {
"get": {
"operationId": "CurriculumService_GetCurriculumInfo",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expCurriculumInfo"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"CurriculumService"
]
}
}
},
"definitions": {
"expCurriculumInfo": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Description": {
"type": "string"
},
"Website": {
"type": "string"
},
"AVer": {
"type": "string"
},
"GitRoot": {
"type": "string"
}
},
"description": "Use this to return only metadata about the installed curriculum."
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}
`
Image = `{
"swagger": "2.0",
"info": {
"title": "image.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {},
"definitions": {
"expImage": {
"type": "object",
"properties": {
"Name": {
"type": "string"
}
}
},
"expImages": {
"type": "object",
"properties": {
"items": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/expImage"
}
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}
`
Lesson = `{
"swagger": "2.0",
"info": {
"title": "lesson.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/exp/lesson": {
"get": {
"summary": "Retrieve all Lessons with filter",
"operationId": "LessonService_ListLessons",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expLessons"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "Category",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"LessonService"
]
}
},
"/exp/lesson/{slug}": {
"get": {
"operationId": "LessonService_GetLesson",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expLesson"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "slug",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"LessonService"
]
}
},
"/exp/lesson/{slug}/prereqs": {
"get": {
"summary": "NOTE that this doesn't just get the prereqs for this lesson, but for all dependent\nlessons as well. So it's not enough to just retrieve from the prereqs field in a given lesson,\nthis function will traverse that tree for you and provide a flattened and de-duplicated list.",
"operationId": "LessonService_GetAllLessonPrereqs",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expLessonPrereqs"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "slug",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"LessonService"
]
}
}
},
"definitions": {
"expAuthor": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Link": {
"type": "string"
}
}
},
"expConnection": {
"type": "object",
"properties": {
"A": {
"type": "string"
},
"B": {
"type": "string"
}
}
},
"expEndpoint": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Image": {
"type": "string"
},
"ConfigurationType": {
"type": "string"
},
"AdditionalPorts": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"Presentations": {
"type": "array",
"items": {
"$ref": "#/definitions/expPresentation"
}
},
"Host": {
"type": "string"
}
}
},
"expLesson": {
"type": "object",
"properties": {
"Slug": {
"type": "string"
},
"Stages": {
"type": "array",
"items": {
"$ref": "#/definitions/expLessonStage"
}
},
"Name": {
"type": "string"
},
"Endpoints": {
"type": "array",
"items": {
"$ref": "#/definitions/expEndpoint"
}
},
"Connections": {
"type": "array",
"items": {
"$ref": "#/definitions/expConnection"
}
},
"Authors": {
"type": "array",
"items": {
"$ref": "#/definitions/expAuthor"
}
},
"Category": {
"type": "string"
},
"Diagram": {
"type": "string"
},
"Video": {
"type": "string"
},
"Tier": {
"type": "string"
},
"Prereqs": {
"type": "array",
"items": {
"type": "string"
},
"title": "this field ONLY contains immediately listed prereqs from the lesson meta.\nfor a full flattened tree of all prereqs, see GetAllLessonPrereqs"
},
"Tags": {
"type": "array",
"items": {
"type": "string"
}
},
"Collection": {
"type": "string"
},
"Description": {
"type": "string"
},
"ShortDescription": {
"type": "string",
"title": "This is meant to fill: \"How well do you know \u003cShortDescription\u003e?\""
},
"LessonFile": {
"type": "string"
},
"LessonDir": {
"type": "string"
},
"ReadyDelay": {
"type": "integer",
"format": "int32"
}
}
},
"expLessonPrereqs": {
"type": "object",
"properties": {
"prereqs": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"expLessonStage": {
"type": "object",
"properties": {
"Description": {
"type": "string"
},
"GuideType": {
"type": "string"
},
"StageVideo": {
"type": "string"
}
}
},
"expLessons": {
"type": "object",
"properties": {
"lessons": {
"type": "array",
"items": {
"$ref": "#/definitions/expLesson"
}
}
}
},
"expPresentation": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Port": {
"type": "integer",
"format": "int32"
},
"Type": {
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}
`
Livelesson = `{
"swagger": "2.0",
"info": {
"title": "livelesson.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/*": {
"get": {
"operationId": "LiveLessonsService_HealthCheck",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expLBHealthCheckResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
"LiveLessonsService"
]
}
},
"/exp/livelesson": {
"post": {
"summary": "Request a lab is created, or request the UUID of one that already exists for these parameters.",
"operationId": "LiveLessonsService_RequestLiveLesson",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expLiveLessonId"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/expLiveLessonRequest"
}
}
],
"tags": [
"LiveLessonsService"
]
}
},
"/exp/livelesson/{id}": {
"get": {
"summary": "Retrieve details about a lesson",
"operationId": "LiveLessonsService_GetLiveLesson",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expLiveLesson"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"LiveLessonsService"
]
}
}
},
"definitions": {
"expKillLiveLessonStatus": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"format": "boolean"
}
}
},
"expLBHealthCheckResponse": {
"type": "object"
},
"expLiveEndpoint": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Image": {
"type": "string"
},
"Ports": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
},
"LivePresentations": {
"type": "array",
"items": {
"$ref": "#/definitions/expLivePresentation"
}
},
"Host": {
"type": "string"
},
"SSHUser": {
"type": "string"
},
"SSHPassword": {
"type": "string"
}
}
},
"expLiveLesson": {
"type": "object",
"properties": {
"ID": {
"type": "string"
},
"SessionID": {
"type": "string"
},
"AntidoteID": {
"type": "string"
},
"LessonSlug": {
"type": "string"
},
"LiveEndpoints": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/expLiveEndpoint"
}
},
"CurrentStage": {
"type": "integer",
"format": "int32"
},
"GuideContents": {
"type": "string"
},
"GuideType": {
"type": "string"
},
"GuideDomain": {
"type": "string"
},
"Status": {
"type": "string"
},
"Error": {
"type": "boolean",
"format": "boolean"
},
"HealthyTests": {
"type": "integer",
"format": "int32"
},
"TotalTests": {
"type": "integer",
"format": "int32"
},
"Diagram": {
"type": "string"
},
"Video": {
"type": "string"
},
"StageVideo": {
"type": "string"
}
}
},
"expLiveLessonId": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
},
"expLiveLessonRequest": {
"type": "object",
"properties": {
"lessonSlug": {
"type": "string"
},
"sessionId": {
"type": "string"
},
"lessonStage": {
"type": "integer",
"format": "int32"
}
}
},
"expLiveLessons": {
"type": "object",
"properties": {
"LiveLessons": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/expLiveLesson"
}
}
}
},
"expLivePresentation": {
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Port": {
"type": "integer",
"format": "int32"
},
"Type": {
"type": "string"
},
"HepDomain": {
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}
`
Livesession = `{
"swagger": "2.0",
"info": {
"title": "livesession.proto",
"version": "version not set"
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/exp/livesession": {
"post": {
"summary": "Request a lab is created, or request the UUID of one that already exists for these parameters.",
"operationId": "LiveSessionsService_RequestLiveSession",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/expLiveSession"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"properties": {}
}
}
],
"tags": [
"LiveSessionsService"
]
}
}
},
"definitions": {
"expLiveSession": {
"type": "object",
"properties": {
"ID": {
"type": "string"
},
"SourceIP": {
"type": "string"
},
"Persistent": {
"type": "boolean",
"format": "boolean"
}
}
},
"expLiveSessions": {
"type": "object",
"properties": {
"items": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/expLiveSession"
}
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}
`
) | api/exp/swagger/swagger.pb.go | 0.606149 | 0.40751 | swagger.pb.go | starcoder |
package crf
import (
"math"
"github.com/nlpodyssey/spago/ag"
"github.com/nlpodyssey/spago/mat"
"github.com/nlpodyssey/spago/mat/float"
)
// FIXME: ViterbiStructure currently works with float64 only
// ViterbiStructure implements Viterbi decoding.
type ViterbiStructure struct {
scores mat.Matrix
backpointers []int
}
// NewViterbiStructure returns a new ViterbiStructure ready to use.
func NewViterbiStructure(size int) *ViterbiStructure {
return &ViterbiStructure{
scores: mat.NewInitVecDense(size, math.Inf(-1)),
backpointers: make([]int, size),
}
}
// Viterbi decodes the xs sequence according to the transitionMatrix.
func Viterbi(transitionMatrix mat.Matrix, xs []ag.Node) []int {
alpha := make([]*ViterbiStructure, len(xs)+1)
alpha[0] = viterbiStepStart(transitionMatrix, xs[0].Value())
for i := 1; i < len(xs); i++ {
alpha[i] = viterbiStep(transitionMatrix, alpha[i-1].scores, xs[i].Value())
}
alpha[len(xs)] = viterbiStepEnd(transitionMatrix, alpha[len(xs)-1].scores)
ys := make([]int, len(xs))
ys[len(xs)-1] = alpha[len(xs)].scores.ArgMax()
for i := len(xs) - 2; i >= 0; i-- {
ys[i] = alpha[i+1].backpointers[ys[i+1]]
}
return ys
}
func viterbiStepStart(transitionMatrix, maxVec mat.Matrix) *ViterbiStructure {
y := NewViterbiStructure(transitionMatrix.Rows() - 1)
for i := 0; i < transitionMatrix.Rows()-1; i++ {
mv := maxVec.ScalarAt(i, 0).F64()
tv := transitionMatrix.ScalarAt(0, i+1).F64()
yv := y.scores.ScalarAt(i, 0).F64()
score := mv + tv
if score > yv {
y.scores.SetVecScalar(i, float.Interface(score))
y.backpointers[i] = i
}
}
return y
}
func viterbiStepEnd(transitionMatrix, maxVec mat.Matrix) *ViterbiStructure {
y := NewViterbiStructure(transitionMatrix.Rows() - 1)
for i := 0; i < transitionMatrix.Rows()-1; i++ {
mv := maxVec.ScalarAt(i, 0).F64()
tv := transitionMatrix.ScalarAt(i+1, 0).F64()
yv := y.scores.ScalarAt(i, 0).F64()
score := mv + tv
if score > yv {
y.scores.SetVecScalar(i, float.Interface(score))
y.backpointers[i] = i
}
}
return y
}
func viterbiStep(transitionMatrix, maxVec, stepVec mat.Matrix) *ViterbiStructure {
y := NewViterbiStructure(transitionMatrix.Rows() - 1)
for i := 0; i < transitionMatrix.Rows()-1; i++ {
for j := 0; j < transitionMatrix.Columns()-1; j++ {
mv := maxVec.ScalarAt(i, 0).F64()
sv := stepVec.ScalarAt(j, 0).F64()
tv := transitionMatrix.ScalarAt(i+1, j+1).F64()
yv := y.scores.ScalarAt(j, 0).F64()
score := mv + sv + tv
if score > yv {
y.scores.SetVecScalar(j, float.Interface(score))
y.backpointers[j] = i
}
}
}
return y
} | nn/crf/viterbi.go | 0.538983 | 0.453262 | viterbi.go | starcoder |
package fsm
import (
"fmt"
"sync"
)
const (
NO_INPUT Input = -1
)
// An Input to give to an FSM.
type Input int
// An Action describes something an FSM will do.
// It returns an Input to allow for automatic chaining of actions.
type Action func() Input
// NO_ACTION is useful for when you need a certain input to just change the state of the FSM without doing anytyhing else.
func NO_ACTION() Input { return NO_INPUT }
// An Outcome describes the result of running an FSM.
// It describes which state to move to next, and an Action to perform.
type Outcome struct {
State int
Action Action
}
// A State describes one possible state of an FSM.
// It maps Inputs to Outcomes.
type State struct {
Index int
Outcomes map[Input]Outcome
}
// FSM is the main structure defining a Finite State Machine.
type FSM struct {
sync.Mutex
states map[int]State
current int
}
// InvalidInputError indicates that an input was passed to an FSM which is not valid for its current state.
type InvalidInputError struct {
StateIndex int
Input Input
}
func (err InvalidInputError) Error() string {
return fmt.Sprintf("input invalid in current state. (State: %v, Input: %v)", err.StateIndex, err.Input)
}
// ImpossibleStateError indicates that an FSM is in a state which wasn't part of its definition.
// This indicates that either the definition is wrong, or someone is monkeying around with the FSM state manually.
type ImpossibleStateError int
func (err ImpossibleStateError) Error() string {
return fmt.Sprintf("FSM in impossible state: %d", err)
}
// ClashingStateError indicates that an attempt to define an FSM where two states share the same index was made.
type ClashingStateError int
func (err ClashingStateError) Error() string {
return fmt.Sprintf("attempt to define FSM with clashing states. Index: %d", err)
}
// Define an FSM from a list of States.
// Will return an error if you try to use two states with the same index.
func Define(states ...State) (*FSM, error) {
stateMap := map[int]State{}
for _, s := range states {
if _, ok := stateMap[s.Index]; ok {
return nil, ClashingStateError(s.Index)
}
stateMap[s.Index] = s
}
return &FSM{
states: stateMap,
current: states[0].Index,
}, nil
}
// Spin the FSM one time.
// This method is thread-safe.
func (f *FSM) Spin(in Input) error {
f.Lock()
defer f.Unlock()
for i := in; i != NO_INPUT; {
s, ok := f.states[f.current]
if !ok {
return ImpossibleStateError(f.current)
}
do, ok := s.Outcomes[i]
if !ok {
return InvalidInputError{f.current, i}
}
i = do.Action()
f.current = do.State
}
return nil
} | vendor/github.com/discoviking/fsm/fsm.go | 0.680985 | 0.42483 | fsm.go | starcoder |
package containers
import (
"io"
"unsafe"
"github.com/RoaringBitmap/roaring"
"github.com/RoaringBitmap/roaring/roaring64"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/stl"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/stl/containers"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/types"
)
type vector[T any] struct {
stlvec stl.Vector[T]
impl Vector
typ types.Type
nulls *roaring64.Bitmap
}
func NewVector[T any](typ types.Type, nullable bool, opts ...*Options) *vector[T] {
vec := &vector[T]{
stlvec: containers.NewVector[T](opts...),
typ: typ,
}
if nullable {
vec.impl = newNullableVecImpl[T](vec)
} else {
vec.impl = newVecImpl[T](vec)
}
return vec
}
// func NewEmptyVector[T any](typ types.Type, opts ...*Options) *vector[T] {
// vec := new(vector[T])
// vec.typ = typ
// vec.stlvec = container.NewVector[T](opts...)
// return vec
// }
func (vec *vector[T]) IsView() bool { return vec.impl.IsView() }
func (vec *vector[T]) Nullable() bool { return vec.impl.Nullable() }
func (vec *vector[T]) IsNull(i int) bool { return vec.impl.IsNull(i) }
func (vec *vector[T]) HasNull() bool { return vec.impl.HasNull() }
func (vec *vector[T]) NullMask() *roaring64.Bitmap { return vec.impl.NullMask() }
func (vec *vector[T]) Bytes() *Bytes { return vec.impl.Bytes() }
func (vec *vector[T]) Data() []byte { return vec.impl.Data() }
func (vec *vector[T]) DataWindow(offset, length int) []byte {
return vec.impl.DataWindow(offset, length)
}
func (vec *vector[T]) Get(i int) (v any) { return vec.impl.Get(i) }
func (vec *vector[T]) Update(i int, v any) { vec.impl.Update(i, v) }
func (vec *vector[T]) Delete(i int) { vec.impl.Delete(i) }
func (vec *vector[T]) Append(v any) { vec.impl.Append(v) }
func (vec *vector[T]) AppendMany(vs ...any) { vec.impl.AppendMany(vs...) }
func (vec *vector[T]) Extend(o Vector) { vec.impl.Extend(o) }
func (vec *vector[T]) Length() int { return vec.impl.Length() }
func (vec *vector[T]) Capacity() int { return vec.impl.Capacity() }
func (vec *vector[T]) Allocated() int { return vec.impl.Allocated() }
func (vec *vector[T]) GetAllocator() MemAllocator { return vec.stlvec.GetAllocator() }
func (vec *vector[T]) GetType() types.Type { return vec.typ }
func (vec *vector[T]) String() string { return vec.impl.String() }
func (vec *vector[T]) Close() { vec.impl.Close() }
func (vec *vector[T]) Window() Vector { return nil }
func (vec *vector[T]) Compact(deletes *roaring.Bitmap) {
if deletes == nil || deletes.IsEmpty() {
return
}
arr := deletes.ToArray()
for i := len(arr) - 1; i >= 0; i-- {
vec.Delete(int(arr[i]))
}
}
func (vec *vector[T]) WriteTo(w io.Writer) (n int64, err error) {
var nr int
var tmpn int64
// 1. Vector type
if nr, err = w.Write(types.EncodeType(vec.GetType())); err != nil {
return
}
n += int64(nr)
// 2. Nullable
if nr, err = w.Write(types.EncodeFixed(vec.Nullable())); err != nil {
return
}
n += int64(nr)
// 3. Vector data
if tmpn, err = vec.stlvec.WriteTo(w); err != nil {
return
}
n += tmpn
if !vec.Nullable() {
return
}
// 4. Nulls
var nullBuf []byte
if vec.nulls != nil {
if nullBuf, err = vec.nulls.ToBytes(); err != nil {
return
}
}
if nr, err = w.Write(types.EncodeFixed(uint32(len(nullBuf)))); err != nil {
return
}
n += int64(nr)
if len(nullBuf) == 0 {
return
}
if nr, err = w.Write(nullBuf); err != nil {
return
}
n += int64(nr)
return
}
func (vec *vector[T]) ReadFrom(r io.Reader) (n int64, err error) {
var tmpn int64
// 1. Vector type
typeBuf := make([]byte, types.TypeSize)
if _, err = r.Read(typeBuf); err != nil {
return
}
vec.typ = types.DecodeType(typeBuf)
n += int64(len(typeBuf))
// 2. Nullable
oneBuf := make([]byte, 1)
if _, err = r.Read(oneBuf); err != nil {
return
}
nullable := types.DecodeFixed[bool](oneBuf)
n += 1
if nullable {
vec.impl = newNullableVecImpl(vec)
} else {
vec.impl = newVecImpl(vec)
}
// 3. Data
if tmpn, err = vec.stlvec.ReadFrom(r); err != nil {
return
}
n += tmpn
// 4. Null
if !nullable {
return
}
fourBuf := make([]byte, int(unsafe.Sizeof(uint32(0))))
if _, err = r.Read(fourBuf); err != nil {
return
}
n += int64(len(fourBuf))
nullSize := types.DecodeFixed[uint32](fourBuf)
if nullSize == 0 {
return
}
vec.nulls = roaring64.New()
if tmpn, err = vec.nulls.ReadFrom(r); err != nil {
return
}
n += tmpn
return
}
func (vec *vector[T]) ReadVectorFromReader(r io.Reader) (created Vector, n int64, err error) {
return
} | pkg/vm/engine/tae/containers/vector.go | 0.540924 | 0.426979 | vector.go | starcoder |
package main
func infoGeneral() {
println(`
### All CSVs ###
The first row:
- "CODE": Means the following column says what version of the code produced
the output.
- "v0.2.2": The code version
- "RAMES": Means the following column says what RAMSES specification was used.
- "SPU045-S2:6F": The RAMSES version
- "INNOSAT": Means the following column says what INNOSAT specification was
used.
- "IS-OSE-ICD-0005:1": The INNOSAT version
- "AEZ": Means the following column says what AEZ specification was used.
- "AEZICD002:H": The AEZ version
The header row starts with a couple of columns common to all output and then
follows columns specific to each file
- File
The full path to the rac-file on the computer that produced the csv
- ProcessingDate
The local time when the file was processed
- RamsesTime (Ramses Header)
The time when the ramses file was created (UTC)
- QualityIndicator (Ramses TM Header)
Indicates whether the transported data is complete or partial
(0 = Complete, 1 = partial).
- LossFlag (Ramses TM Header)
Used to indicate that a sequence discontinuity has been detected
- VCFrameCounter (Ramses TM Header)
Counter of the transfer frame the payload packet arrived in.
Wraps at (2^16)-1
- SPSequenceCount (Innosat Source Header)
A counter that increases with each packet, may never short cycle and should
wrap around to zero after 2^14-1
- TMHeaderTime (Innosat TM Header)
The time of the TM packet creation (UTC)
- TMHeaderNanoseconds
The time of the TM packet creation (nanoseconds since epoch)
- SID
The name of the SID or empty if the packet has no SID
- RID
The name of the RID or empty if the packet has no RID
Note that each line should have a SID or a RID depending on packet type
All files also have a final common column
- Error
If an error occurred it will be written here.
If empty, then no error occurred extracting the data.
For information about fields specific to a certain csv use any of these:
-help CCD, -help CPRU, -help HTR, -help PWR, -help STAT, -help TCV,
-help PM
`)
}
func infoCCD() {
println(`
### CCD.csv ###
The following columns directly export the data in the rac:
CCDSEL, WDWOV, JPEGQ, FRAME, NROW, NRBIN, NRSKIP, NCOL, NCSKIP, NFLUSH
TEXPMS, TEMP, FBINOV, LBLNK, TBLNK, ZERO, TIMING1, TIMING2, VERSION
TIMING3, NBC, BC
The following columns parse the values further:
- EXP Nanoseconds
Time of exposure (nanoseconds since epoch)
- EXP Date
Time of exposure (UTC)
- WDW Mode
"Manual" (value in rac 0b0)
"Automatic" (value in rac 0b1)
- WDW InputDataWindow
Written as the from - to bits used in the original image
"11..0" (value in rac 0x0)
"12..1" (value in rac 0x1)
"13..2" (value in rac 0x2)
"14..3" (value in rac 0x3)
"15..4" (value in rac 0x4)
"15..0" which is the full image (value in rac 0x7)
- NCBIN FPGAColumns
The actual number of FPGA Columns (value in rac is the exponent in 2^N)
- NCBIN CCDColumns
The number of CCD Columns
- GAIN Mode
"High" (value in rac 0b0)
"Low" (value in rac 0b1)
- GAIN Timing
"Faster" used for binned and discarded (value in rac 0b0)
"Full" used even for pixels that are not read out (value in rac 0b1)
- GAIN Trunctation
The value of the truncation bits
- Image File Name
The name of the image file associated with these measurements
`)
}
func infoCPRU() {
println(`
### CPRU.csv ###
All voltages are the calculated float values of their respective type
according to the specification and not the raw encoded integer of the rac.
- VGATE0: voltage
- VSUBS0: voltage
- VRD0: voltage
- VOD0: voltage
- Overvoltage0: If over voltage fault registered (bool)
- Power0: If power is enabled (bool)
- VGATE1: voltage
- VSUBS1: voltage
- VRD1: voltage
- VOD1: voltage
- Overvoltage1: If over voltage fault registered (bool)
- Power1: If power is enabled (bool)
- VGATE2: voltage
- VSUBS2: voltage
- VRD2: voltage
- VOD2: voltage
- Overvoltage2: If over voltage fault registered (bool)
- Power2: If power is enabled (bool)
- VGATE3: voltage
- VSUBS3: voltage
- VRD3: voltage
- VOD3: voltage
- Overvoltage3: If over voltage fault registered (bool)
- Power3: If power is enabled (bool)
`)
}
func infoHTR() {
println(`
### HTR.csv ###
All voltages are the calculated float values of their respective type
according to the specification and not the raw encoded integer of the rac.
All temperatures are calculated from the specification and given in degrees
Celcius.
- HTR1A: temperature,
- HTR1B: temperature,
- HTR1OD: voltage
- HTR2A: temperature,
- HTR2B: temperature,
- HTR2OD: voltage
- HTR7A: temperature,
- HTR7B: temperature,
- HTR7OD: voltage,
- HTR8A: temperature,
- HTR8B: temperature,
- HTR8OD: voltage,
- WARNINGS: A summary of warnings from the temperature calculations.
The warnings come from the interpolator and probably indicate the measured
resistance is out of range.
Each warning is separated by a '|' character.
`)
}
func infoPWR() {
println(`
### PWR.csv ###
All voltages are the calculated float values of their respective type
according to the specification and not the raw encoded integer of the rac.
All currents are calulated from the specification.
All temperatures are calculated from the specification and given in degrees
Celcius.
- PWRT: temperature,
- PWRP32V: voltage,
- PWRP32C: current,
- PWRP16V: voltage,
- PWRP16C: current,
- PWRM16V: voltage,
- PWRM16C: current,
- PWRP3V3: voltage,
- PWRP3C3: current,
- WARNINGS: A summary of warnings from the temperature calculations.
The warnings come from the interpolator and probably indicate the measured
resistance is out of range.
Each warning is separated by a '|' character.
`)
}
func infoSTAT() {
println(`
### STAT.csv ###
The following fields are read out exactly as they are encoded in the rac:
SPID, SPREV, FPID, FPREV, SVNA, SVNB, SVNC, MODE, EDACE, EDACCE, EDACN,
SPWEOP, SPWEEP, ANOMALY
The fields TS and TSS are replaced by:
- STATTIME: The time of the packet (UTC)
- STATNANO: The time of the packet (nanoseconds since epoch)
`)
}
func infoTCV() {
println(`
### TCV.csv ###
This contains all the four telecommand verification types
- TCV
"Accept" for both accept success and fail
"Exec" for both execute success and fail
- TCPID
A copy of the Packet ID header field of the TC header
- PSC
A copy of the Sequence Control Header field of the TC header
- ErrorCode
Empty if success else the fail code
`)
}
func infoPM() {
println(`
### PM.csv ###
The following fields are read out exactly as they are encoded in the rac:
PM1A, PM1ACNTR, PM1B, PM1BCNTR, PM1S, PM1SCNTR, PM2A, PM2ACNTR, PM2B,
PM2BCNTR, PM2S, PM2SCNTR
The fields EXPTS and EXPTSS are replaced by:
- PMTIME: The exposure time (UTC)
- PMNANO: The exposure time (nanoseconds since epoch)
`)
}
func infoSpace() {
println(`
+--------------------------------------------------------------------------------+
|.. . .. . |
| . . .. |
| . . .. . |
|.. . . ~. |
| . .. . __.--´|` + "`" + `--.__ .. |
| . __.--´|__.--|--._ |` + "`" + `--.__ . |
| __.--´|__.--|--.__|__.--|--.__|` + "`" + `--. .|
| __.--´|__.--|--.__|__.--|--.__|__.--|_.-´ . |
| __.--´|__.--|--.__|__.--|--.__|__.--|_.--´ |
| -.__.--|--.__|__.--´--.__|__.--|_.,-'*\ |
| | ` + "`" + `--|__.--|--.__|__.--|_.--´ |* | |
|.. | ` + "`" + `--|__.--|_.--´ | |.---´ |
|o+o++:~~~.. | __ '-´* | |* ` + "`" + `--.__ |
|~::::++++++::~~~... | / ` + "`" + `--. |# | .` + "`" + `-.__ ` + "`" + `. |
| ..~~~~~~:~~~~~~...| | \ |# _.-\ | | ` + "`" + `--._/ |
| .. ....~~~~~~| \ |# |# / /* | |` + "`" + `-._.-_.-\ |
| . . | ` + "`" + `--.__/* |# \_.-* | |_.-´ /* / |
| ... ` + "`" + `--.__ * |# |_ |_--._\_.- |
| .... ` + "`" + `--.__ |* __.--' ` + "`" + `--´ |
|~~~~~~... . . ..~::~~~~~ ` + "`" + `--.|__.--´~~~.. |
|..~+++++:~:~~.~~~~~~~~~.~~:~:+::~::~+:~~~~ ...... |
|.. .~~:~~::~~~:~~~::~:~::~~:+:~~.~~+:::~~.. . . |
|+:~~~~~~~~.~~~~~~~:~:::++:~++::~..~~..~~~.~~.. .. ~ . |
|~~.~~:~~.... . . ..~..~~~~~~~~~. .. . ... . |
|:~:~:+:~~ . .. .. .. M A T S |
+--------------------------------------------------------------------------------+
`)
} | cmd/rac/output.go | 0.533884 | 0.520009 | output.go | starcoder |
// Helper code to assist emitting correctly minimally parenthesized
// TypeScript type literals.
package tstypes
import (
"bytes"
)
// Supported types include type identifiers, arrays `T[]`, unions
// `A|B`, and maps with string keys.
type TypeAst interface {
depth() int
}
// Produces a TypeScript type literal for the type, with minimally
// inserted parentheses.
func TypeLiteral(ast TypeAst) string {
tokens := (&typeScriptTypeUnparser{}).unparse(ast)
return toLiteral(tokens)
}
// Builds a type identifier (possibly qualified such as
// "my.module.MyType") or a primitive such as "boolean".
func Identifier(id string) TypeAst {
return &idType{id}
}
// Builds a `T[]` type from a `T` type.
func Array(t TypeAst) TypeAst {
return &arrayType{t}
}
// Builds a `{[key: string]: T}` type from a `T` type.
func StringMap(t TypeAst) TypeAst {
return &mapType{t}
}
// Builds a union `A | B | C` type.
func Union(t ...TypeAst) TypeAst {
if len(t) == 0 {
panic("At least one type is needed to form a Union, none are given")
}
if len(t) == 1 {
return t[0]
}
return &unionType{t[0], t[1], t[2:]}
}
// Normalizes by unnesting unions `A | (B | C) => A | B | C`.
func Normalize(ast TypeAst) TypeAst {
return transform(ast, func(t TypeAst) TypeAst {
switch v := t.(type) {
case *unionType:
var all []TypeAst
for _, e := range v.all() {
switch ev := e.(type) {
case *unionType:
all = append(all, ev.all()...)
default:
all = append(all, ev)
}
}
return Union(all...)
default:
return t
}
})
}
func transform(t TypeAst, f func(x TypeAst) TypeAst) TypeAst {
switch v := t.(type) {
case *unionType:
var ts []TypeAst
for _, x := range v.all() {
ts = append(ts, transform(x, f))
}
return f(Union(ts...))
case *arrayType:
return f(&arrayType{transform(v.arrayElement, f)})
case *mapType:
return f(&mapType{transform(v.mapElement, f)})
default:
return f(t)
}
}
type idType struct {
id string
}
func (*idType) depth() int {
return 1
}
var _ TypeAst = &idType{}
type mapType struct {
mapElement TypeAst
}
func (t *mapType) depth() int {
return t.mapElement.depth() + 1
}
var _ TypeAst = &mapType{}
type arrayType struct {
arrayElement TypeAst
}
func (t *arrayType) depth() int {
return t.arrayElement.depth() + 1
}
var _ TypeAst = &arrayType{}
type unionType struct {
t1 TypeAst
t2 TypeAst
tRest []TypeAst
}
func (t *unionType) all() []TypeAst {
return append([]TypeAst{t.t1, t.t2}, t.tRest...)
}
func (t *unionType) depth() int {
var maxDepth = 0
for _, t := range t.all() {
d := t.depth()
if d > maxDepth {
maxDepth = d
}
}
return maxDepth
}
var _ TypeAst = &unionType{}
type typeTokenKind string
const (
openParen typeTokenKind = "("
closeParen = ")"
openMap = "{[key: string]: "
closeMap = "}"
identifier = "x"
array = "[]"
union = " | "
)
type typeToken struct {
kind typeTokenKind
value string
}
type typeScriptTypeUnparser struct{}
func (u typeScriptTypeUnparser) unparse(ast TypeAst) []typeToken {
switch v := ast.(type) {
case *idType:
return []typeToken{{identifier, v.id}}
case *arrayType:
return append(u.unparseWithUnionParens(v.arrayElement), typeToken{array, ""})
case *mapType:
return append([]typeToken{{openMap, ""}}, append(u.unparse(v.mapElement), typeToken{closeMap, ""})...)
case *unionType:
var tokens []typeToken
for i, t := range v.all() {
if i > 0 {
tokens = append(tokens, typeToken{union, ""})
}
tokens = append(tokens, u.unparseWithUnionParens(t)...)
}
return tokens
default:
panic("Unknown object of type typeAst")
}
}
func (u typeScriptTypeUnparser) unparseWithUnionParens(ast TypeAst) []typeToken {
var parens bool
switch ast.(type) {
case *unionType:
parens = true
}
tokens := u.unparse(ast)
if parens {
return u.parenthesize(tokens)
}
return tokens
}
func (u typeScriptTypeUnparser) parenthesize(tokens []typeToken) []typeToken {
return append([]typeToken{{openParen, ""}}, append(tokens, typeToken{closeParen, ""})...)
}
func toLiteral(tokens []typeToken) string {
var buffer bytes.Buffer
for _, t := range tokens {
if t.value != "" {
buffer.WriteString(t.value)
} else {
buffer.WriteString(string(t.kind))
}
}
return buffer.String()
} | pkg/codegen/internal/tstypes/tstypes.go | 0.722331 | 0.537891 | tstypes.go | starcoder |
package yoo
import (
"math"
"errors"
"encoding/binary"
)
type ByteArray struct {
buf []byte
posWrite int
posRead int
endian binary.ByteOrder
}
var ByteArrayEndian binary.ByteOrder = binary.BigEndian
func CreateByteArray(bytes []byte) *ByteArray {
var ba *ByteArray
if len(bytes) > 0 {
ba = &ByteArray{ buf: bytes }
} else {
ba = &ByteArray{}
}
ba.endian = binary.BigEndian
return ba
}
func (this *ByteArray) Length() int {
return len(this.buf)
}
func (this *ByteArray) Available() int {
return this.Length() - this.posRead
}
func (this *ByteArray) SetEndian(endian binary.ByteOrder) {
this.endian = endian
}
func (this *ByteArray) GetEndian() binary.ByteOrder {
if this.endian == nil {
return ByteArrayEndian
}
return this.endian
}
func (this *ByteArray) SetWritePos(pos int) error {
if pos > this.Length() {
this.posWrite = this.Length()
return errors.New("Buffer end")
} else {
this.posWrite = pos
}
return nil
}
func (this *ByteArray) SetWriteEnd() {
this.SetWritePos(this.Length())
}
func (this *ByteArray) GetWritePos() int {
return this.posWrite
}
func (this *ByteArray) SetReadPos(pos int) error {
if pos > this.Length() {
this.posRead = this.Length()
return errors.New("Buffer end")
} else {
this.posRead = pos
}
return nil
}
func (this *ByteArray) SetReadEnd() {
this.SetReadPos(this.Length())
}
func (this *ByteArray) GetReadPos() int {
return this.posRead
}
func (this *ByteArray) Seek(pos int) error {
err := this.SetWritePos(pos)
this.SetReadPos(pos)
return err
}
func (this *ByteArray) Reset() {
this.buf = []byte{}
this.Seek(0)
}
func (this *ByteArray) Bytes() []byte {
return this.buf
}
func (this *ByteArray) BytesAvailable() []byte {
return this.buf[this.posRead:]
}
func (this *ByteArray) Read(bytes []byte) (l int, err error) {
if len(bytes) == 0 {
return
}
if len(bytes) > this.Length() - this.posRead{
return 0, errors.New("Buffer end")
}
l = copy(bytes, this.buf[this.posRead:])
this.posRead += l
return l, nil
}
func (this *ByteArray) ReadBytes(bytes []byte, length int, offset int) (l int, err error) {
return this.Read(bytes[offset:offset + length])
}
func (this *ByteArray) ReadByte() (b byte, err error) {
bytes := make([]byte, 1)
_, err = this.ReadBytes(bytes, 1, 0)
if err == nil{
b = bytes[0]
}
return
}
func (this *ByteArray) ReadLength() (ret int, err error) {
i := 0
for _tk, b := true, 0; _tk || (err == nil && b == 255); _tk = false {
b, err = this.ReadByte()
}
ret = int(math.Pow(256, i)) - 1 + b
return
}
func (this *ByteArray) ReadInt8() (ret int8, err error) {
err = binary.Read(this, this.endian, &ret)
return
}
func (this *ByteArray) ReadInt16() (ret int16, err error) {
err = binary.Read(this, this.endian, &ret)
return
}
func (this *ByteArray) ReadInt32() (ret int32, err error) {
err = binary.Read(this, this.endian, &ret)
return
}
func (this *ByteArray) ReadInt64() (ret int64, err error) {
err = binary.Read(this, this.endian, &ret)
return
}
func (this *ByteArray) ReadFloat32() (ret float32, err error) {
err = binary.Read(this, this.endian, &ret)
return
}
func (this *ByteArray) ReadFloat64() (ret float64, err error) {
err = binary.Read(this, this.endian, &ret)
return
}
func (this *ByteArray) ReadBool() (ret bool, err error) {
var bb byte
bb, err = this.ReadByte()
if err == nil{
if bb == 1 {
ret = true
} else {
ret = false
}
} else {
ret = false
}
return
}
func (this *ByteArray) ReadString(length int) (ret string, err error) {
bytes := make([]byte, length, length)
_, err = this.ReadBytes(bytes, length, 0)
if err == nil{
ret = string(bytes)
} else {
ret = "";
}
return
}
func (this *ByteArray) ReadUTF() (ret string, err error) {
var l int16
l, err = this.ReadInt16()
if err != nil{
return "", err
}
return this.ReadString(int(l))
} | tbs.go | 0.645008 | 0.47591 | tbs.go | starcoder |
package nQueens
//Count will take a board matrix and return a solution count
func Count(n int) int {
solutionCount := 0
doneCh := make(chan bool)
countCh := make(chan int)
for i := 0; i < n; i++ {
go pathSupervisor(makeBoardWithPiece(n, i), 1, makeColsWithPiece(n, i), doneCh, countCh)
}
for n > 0 {
select {
case _ = <-countCh:
solutionCount++
case _ = <-doneCh:
n--
}
}
return solutionCount
}
// makeBoard constructs an NxN matrix with 1 piece in row 0
func makeBoardWithPiece(n int, first int) (board [][]int) {
board = make([][]int, n)
for i := 0; i < n; i++ {
board[i] = make([]int, n)
}
board[0][first] = 1
return
}
func makeColsWithPiece(n int, first int) (cols []int) {
for i := 0; i < n; i++ {
if i != first {
cols = append(cols, i)
}
}
return
}
func hasMajorDiagonalConflitctAt(board [][]int, row, col int) bool {
for row >= 0 && col >= 0 {
if board[row][col] != 0 {
return true
}
row--
col--
}
return false
}
func hasMinorDiagonalConflictAt(board [][]int, row, col int) bool {
for row >= 0 && col < len(board) {
if board[row][col] != 0 {
return true
}
row--
col++
}
return false
}
func filterCols(cols []int, col int) []int {
newCols := make([]int, len(cols)-1)
for i, v := range cols {
if v != col {
newCols[i] = v
}
}
return newCols
}
func pathSupervisor(board [][]int, row int, cols []int, doneCh chan bool, countCh chan int) {
search(board, row, cols, countCh)
doneCh <- true
}
func search(board [][]int, row int, cols []int, countCh chan int) {
if len(cols) == 0 {
countCh <- 1
return
}
for _, col := range cols {
if !hasMajorDiagonalConflitctAt(board, row, col) && !hasMinorDiagonalConflictAt(board, row, col) {
board[row][col] = 1
search(board, row+1, filterCols(cols, col), countCh)
board[row][col] = 0
}
}
return
}
// For the speed effect test
func copyBoard(oldBoard [][]int) (newBoard [][]int) {
length := len(oldBoard)
newBoard = make([][]int, length)
for i := 0; i < length; i++ {
newBoard[i] = make([]int, length)
for j := 0; j < length; j++ {
newBoard[i][j] = oldBoard[i][j]
}
}
return
} | go/concurrent/nQueens.go | 0.718298 | 0.44071 | nQueens.go | starcoder |
package golgi
import (
"fmt"
"github.com/chewxy/hm"
G "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)
type unnameable interface {
unnamed()
}
type id struct{}
func (l id) Model() G.Nodes { return nil }
func (l id) Fwd(x G.Input) G.Result { return x.Node() }
func (l id) Type() hm.Type { return hm.NewFnType(hm.TypeVariable('a'), hm.TypeVariable('a')) }
func (l id) Shape() tensor.Shape { panic("not implemented") }
func (l id) Name() string { return "I" }
func (l id) Describe() {}
func (l id) unnamed() {}
type k struct{ *G.Node }
func (l k) Model() G.Nodes { return nil }
func (l k) Fwd(x G.Input) G.Result { return l.Node }
func (l k) Type() hm.Type { return hm.NewFnType(hm.TypeVariable('a'), l.Node.Type()) }
func (l k) Shape() tensor.Shape { panic("not implemented") }
func (l k) Name() string { return "K" }
func (l k) Describe() {}
func (l k) unnamed() {}
type reshape tensor.Shape
// ConsReshape is a construction function for a reshaping layer. It ignores the `x` input.
func ConsReshape(_ G.Input, opts ...ConsOpt) (l Layer, err error) {
l = reshape(nil)
for _, opt := range opts {
if l, err = opt(l); err != nil {
return nil, err
}
}
return l, nil
}
func (l reshape) Model() G.Nodes { return nil }
func (l reshape) Fwd(x G.Input) G.Result {
if err := G.CheckOne(x); err != nil {
return G.Err(err)
}
to := tensor.Shape(l)
n := x.Node()
if to.Eq(n.Shape()) {
return n
}
return G.LiftResult(G.Reshape(x.Node(), tensor.Shape(l)))
}
func (l reshape) Type() hm.Type { return hm.NewFnType(hm.TypeVariable('a'), hm.TypeVariable('a')) }
func (l reshape) Shape() tensor.Shape { return tensor.Shape(l) }
func (l reshape) Name() string { return fmt.Sprintf("Reshape%v", tensor.Shape(l)) }
func (l reshape) Describe() {}
func (l reshape) unnamed() {}
type dropout float64
// ConsDropout creates a dropout layer. It ignores the `x` input
func ConsDropout(_ G.Input, opts ...ConsOpt) (l Layer, err error) {
l = dropout(0)
for _, opt := range opts {
if l, err = opt(l); err != nil {
return nil, err
}
}
return l, nil
}
func (l dropout) Model() G.Nodes { return nil }
func (l dropout) Fwd(x G.Input) G.Result {
if err := G.CheckOne(x); err != nil {
return G.Err(err)
}
return G.LiftResult(G.Dropout(x.Node(), float64(l)))
}
func (l dropout) Type() hm.Type { return hm.NewFnType(hm.TypeVariable('a'), hm.TypeVariable('a')) }
func (l dropout) Shape() tensor.Shape { panic("not implemented") }
func (l dropout) Name() string { return fmt.Sprintf("Dropout(%v)", float64(l)) }
func (l dropout) Describe() {}
func (l dropout) unnamed() {} | trivial.go | 0.713931 | 0.411879 | trivial.go | starcoder |
package cios
import (
"encoding/json"
)
// Location struct for Location
type Location struct {
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
}
// NewLocation instantiates a new Location object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewLocation(latitude float32, longitude float32, ) *Location {
this := Location{}
this.Latitude = latitude
this.Longitude = longitude
return &this
}
// NewLocationWithDefaults instantiates a new Location object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewLocationWithDefaults() *Location {
this := Location{}
return &this
}
// GetLatitude returns the Latitude field value
func (o *Location) GetLatitude() float32 {
if o == nil {
var ret float32
return ret
}
return o.Latitude
}
// GetLatitudeOk returns a tuple with the Latitude field value
// and a boolean to check if the value has been set.
func (o *Location) GetLatitudeOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.Latitude, true
}
// SetLatitude sets field value
func (o *Location) SetLatitude(v float32) {
o.Latitude = v
}
// GetLongitude returns the Longitude field value
func (o *Location) GetLongitude() float32 {
if o == nil {
var ret float32
return ret
}
return o.Longitude
}
// GetLongitudeOk returns a tuple with the Longitude field value
// and a boolean to check if the value has been set.
func (o *Location) GetLongitudeOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.Longitude, true
}
// SetLongitude sets field value
func (o *Location) SetLongitude(v float32) {
o.Longitude = v
}
func (o Location) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["latitude"] = o.Latitude
}
if true {
toSerialize["longitude"] = o.Longitude
}
return json.Marshal(toSerialize)
}
type NullableLocation struct {
value *Location
isSet bool
}
func (v NullableLocation) Get() *Location {
return v.value
}
func (v *NullableLocation) Set(val *Location) {
v.value = val
v.isSet = true
}
func (v NullableLocation) IsSet() bool {
return v.isSet
}
func (v *NullableLocation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLocation(val *Location) *NullableLocation {
return &NullableLocation{value: val, isSet: true}
}
func (v NullableLocation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLocation) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
} | cios/model_location.go | 0.841044 | 0.46721 | model_location.go | starcoder |
package day11
import (
"errors"
"fmt"
"github.com/knalli/aoc"
)
func solve1(lines []string) error {
if grid, err := parseGrid(lines); err != nil {
return err
} else {
round := 0
changes := 0
for {
changes, grid = doPlacements1(grid)
round++
if changes == 0 {
break
}
}
occupiedSeats := grid.Count(func(p *Point, v int) bool {
return v == SEAT
})
aoc.PrintSolution(fmt.Sprintf("%d occupied seats", occupiedSeats))
}
return nil
}
func solve2(lines []string) error {
if grid, err := parseGrid(lines); err != nil {
return err
} else {
round := 0
changes := 0
//grid.Print(os.Stdout)
for {
changes, grid = doPlacements2(grid)
//fmt.Println()
//grid.Print(os.Stdout)
round++
if changes == 0 {
break
}
}
occupiedSeats := grid.Count(func(p *Point, v int) bool {
return v == SEAT
})
aoc.PrintSolution(fmt.Sprintf("%d occupied seats", occupiedSeats))
}
return nil
}
const EMPTY = 'L'
const FLOOR = '.'
const SEAT = '#'
func parseGrid(lines []string) (*IntGrid, error) {
height := len(lines)
if height == 0 {
return nil, errors.New("empty rows")
}
width := len(lines[0])
if height == 0 {
return nil, errors.New("empty columns")
}
grid := NewIntGrid(width, height)
for y, line := range lines {
for x, c := range line {
if c == EMPTY || c == FLOOR || c == SEAT {
//goland:noinspection GoUnhandledErrorResult
grid.SetXY(x, y, int(c))
} else {
return nil, errors.New("invalid character found")
}
}
}
return grid, nil
}
func doPlacements1(grid *IntGrid) (int, *IntGrid) {
next := grid.Clone()
changes := 0
grid.Each(func(p *Point, v int) {
occupiedAdjacents := grid.CountAdjacents(p.X, p.Y, func(p *Point, v int) bool {
return v == SEAT
})
if v == EMPTY && occupiedAdjacents == 0 {
//goland:noinspection GoUnhandledErrorResult
next.SetXY(p.X, p.Y, SEAT)
changes++
} else if v == SEAT && occupiedAdjacents >= 4 {
//goland:noinspection GoUnhandledErrorResult
next.SetXY(p.X, p.Y, EMPTY)
changes++
}
})
return changes, next
}
func doPlacements2(grid *IntGrid) (int, *IntGrid) {
next := grid.Clone()
changes := 0
grid.Each(func(p *Point, v int) {
occupiedAdjacents := grid.CountAdjacentVectors(p.X, p.Y, true, func(p *Point, v int) bool {
return v == FLOOR
}, func(p *Point, v int) bool {
return v == SEAT
})
if v == EMPTY && occupiedAdjacents == 0 {
//goland:noinspection GoUnhandledErrorResult
next.SetXY(p.X, p.Y, SEAT)
changes++
} else if v == SEAT && occupiedAdjacents >= 5 {
//goland:noinspection GoUnhandledErrorResult
next.SetXY(p.X, p.Y, EMPTY)
changes++
}
})
return changes, next
} | day11/puzzle.go | 0.554712 | 0.4184 | puzzle.go | starcoder |
package beta
import (
"math"
)
/*
* Beta related functions
*/
// Complete : complete beta function, B(a,b)
func Complete(a, b float64) float64 {
return math.Exp(lgamma(a) + lgamma(b) - lgamma(a+b))
}
// Incomplete : B(x;a,b) is the incomplete beta function
func Incomplete(x, a, b float64) float64 {
return regIncByContFraction(x, a, b, false)
}
// RegularizedIncomplete : I_x(a,b) = B(x;a,b) / B(a,b),
// where B(x;a,b) is the incomplete and B(a,b) is the complete beta function
func RegularizedIncomplete(x, a, b float64) float64 {
return regIncByContFraction(x, a, b, true)
}
// regIncByContFraction :
// calculate regularized incomplete beta function using continued fraction representation
// see "Numerical Recipes" by Press, Flannery, Teukolsky, and Vetterling,
// Cambridge University Press
// (0 <= x <= 1)
func regIncByContFraction(x, a, b float64, isRegularized bool) float64 {
var bt float64
if x == 0 || x == 1 {
bt = 0
} else {
bt = math.Exp((a * math.Log(x)) + (b * math.Log(1-x)))
if isRegularized && bt != 0 {
bt /= Complete(a, b)
}
}
var betai float64
if x < (a+1)/(a+b+2) {
betai = bt * betaCF(x, a, b) / a
} else {
betai = 1 - bt*betaCF(1-x, b, a)/b
}
return betai
}
// betaCF : beta continued fraction representation
func betaCF(x, a, b float64) float64 {
const itmax = 100
const eps = 3E-7
var am float64 = 1
var bm float64 = 1
var az float64 = 1
var qab = a + b
var qap = a + 1
var qam = a - 1
var bz = 1 - qab*x/qap
for m := 1; m <= itmax; m++ {
mf := float64(m)
var tm = mf + mf
// even step
var d = mf * (b - mf) * x / ((qam + tm) * (a + tm))
var ap = az + d*am
var bp = bz + d*bm
// odd step
d = -(a + mf) * (qab + mf) * x / ((a + tm) * (qap + tm))
var app = ap + d*az
var bpp = bp + d*bz
// save old answer
var aold = az
// renormalize to prevent overflows
am = ap / bpp
bm = bp / bpp
az = app / bpp
bz = 1
// check tolerance
if math.Abs(az-aold) < eps*math.Abs(az) {
return az
}
}
return az
}
// lgamma : log gamma function
func lgamma(x float64) float64 {
y, _ := math.Lgamma(x)
return y
} | beta/betaFunc.go | 0.777046 | 0.502075 | betaFunc.go | starcoder |
package rtree
import (
"fmt"
"strings"
"go-hep.org/x/hep/groot/root"
)
type join struct {
name string
title string
trees []Tree
branches []Branch
leaves []Leaf
bmap map[string]Branch
lmap map[string]Leaf
}
// Join returns a new Tree that represents the logical join of the input trees.
// The returned tree will contain all the columns of all the input trees.
// Join errors out if the input slice of trees is empty.
// Join errors out if the input trees do not have the same amount of entries.
// Join errors out if two trees have each a column with the same name.
func Join(trees ...Tree) (Tree, error) {
if len(trees) == 0 {
return nil, fmt.Errorf("rtree: no trees to join")
}
nevts := trees[0].Entries()
for _, t := range trees[1:] {
if t.Entries() != nevts {
return nil, fmt.Errorf(
"rtree: invalid number of entries in tree %s (got=%d, want=%d)",
t.Name(), t.Entries(), nevts,
)
}
}
var (
bset = make([]map[string]struct{}, len(trees))
branches []Branch
leaves []Leaf
names = make([]string, len(trees))
titles = make([]string, len(trees))
)
for i, t := range trees {
names[i] = t.Name()
titles[i] = t.Title()
bset[i] = make(map[string]struct{}, len(t.Branches()))
for _, b := range t.Branches() {
bset[i][b.Name()] = struct{}{}
}
branches = append(branches, t.Branches()...)
leaves = append(leaves, t.Leaves()...)
}
for i, ti := range trees {
bsi := bset[i]
for j, tj := range trees[i+1:] {
bsj := bset[j+i+1]
for ki := range bsi {
if _, dup := bsj[ki]; dup {
return nil, fmt.Errorf(
"rtree: trees %s and %s both have a branch named %s",
ti.Name(), tj.Name(), ki,
)
}
}
}
}
tree := &join{
name: "join_" + strings.Join(names, "_"),
title: strings.Join(titles, ", "),
trees: trees,
branches: branches,
leaves: leaves,
bmap: make(map[string]Branch, len(branches)),
lmap: make(map[string]Leaf, len(leaves)),
}
for _, b := range tree.branches {
tree.bmap[b.Name()] = b
}
for _, l := range tree.leaves {
tree.lmap[l.Name()] = l
}
return tree, nil
}
// Class returns the ROOT class of the argument.
func (*join) Class() string {
return "TJoin"
}
// Name returns the name of the ROOT objet in the argument.
func (t *join) Name() string {
return t.name
}
// Title returns the title of the ROOT object in the argument.
func (t *join) Title() string {
return t.title
}
// Entries returns the total number of entries.
func (t *join) Entries() int64 {
return t.trees[0].Entries()
}
// Branches returns the list of branches.
func (t *join) Branches() []Branch {
return t.branches
}
// Branch returns the branch whose name is the argument.
func (t *join) Branch(name string) Branch {
return t.bmap[name]
}
// Leaves returns direct pointers to individual branch leaves.
func (t *join) Leaves() []Leaf {
return t.leaves
}
// Leaf returns the leaf whose name is the argument.
func (t *join) Leaf(name string) Leaf {
return t.lmap[name]
}
var (
_ root.Object = (*chain)(nil)
_ root.Named = (*chain)(nil)
_ Tree = (*chain)(nil)
)
var (
_ Tree = (*join)(nil)
) | groot/rtree/join.go | 0.734405 | 0.448607 | join.go | starcoder |
package models
import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
// BookingAppointment
type BookingAppointment struct {
Entity
// Additional information that is sent to the customer when an appointment is confirmed.
additionalInformation *string
// The SMTP address of the bookingCustomer who is booking the appointment.
customerEmailAddress *string
// The ID of the bookingCustomer for this appointment. If no ID is specified when an appointment is created, then a new bookingCustomer object is created. Once set, you should consider the customerId immutable.
customerId *string
// Represents location information for the bookingCustomer who is booking the appointment.
customerLocation Locationable
// The customer's name.
customerName *string
// Notes from the customer associated with this appointment. You can get the value only when reading this bookingAppointment by its ID. You can set this property only when initially creating an appointment with a new customer. After that point, the value is computed from the customer represented by customerId.
customerNotes *string
// The customer's phone number.
customerPhone *string
// It lists down the customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional.
customers []BookingCustomerInformationBaseable
// The time zone of the customer. For a list of possible values, see dateTimeTimeZone.
customerTimeZone *string
// The length of the appointment, denoted in ISO8601 format.
duration *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
// The end property
end DateTimeTimeZoneable
// The current number of customers in the appointment.
filledAttendeesCount *int32
// The billed amount on the invoice.
invoiceAmount *float64
// The date, time, and time zone of the invoice for this appointment.
invoiceDate DateTimeTimeZoneable
// The ID of the invoice.
invoiceId *string
// The status of the invoice. Possible values are: draft, reviewing, open, canceled, paid, corrective.
invoiceStatus *BookingInvoiceStatus
// The URL of the invoice in Microsoft Bookings.
invoiceUrl *string
// True indicates that the appointment will be held online. Default value is false.
isLocationOnline *bool
// The URL of the online meeting for the appointment.
joinWebUrl *string
// The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation.
maximumAttendeesCount *int32
// The onlineMeetingUrl property
onlineMeetingUrl *string
// True indicates that the bookingCustomer for this appointment does not wish to receive a confirmation for this appointment.
optOutOfCustomerEmail *bool
// The amount of time to reserve after the appointment ends, for cleaning up, as an example. The value is expressed in ISO8601 format.
postBuffer *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
// The amount of time to reserve before the appointment begins, for preparation, as an example. The value is expressed in ISO8601 format.
preBuffer *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration
// The regular price for an appointment for the specified bookingService.
price *float64
// A setting to provide flexibility for the pricing structure of services. Possible values are: undefined, fixedPrice, startingAt, hourly, free, priceVaries, callUs, notSet, unknownFutureValue.
priceType *BookingPriceType
// The collection of customer reminders sent for this appointment. The value of this property is available only when reading this bookingAppointment by its ID.
reminders []BookingReminderable
// An additional tracking ID for the appointment, if the appointment has been created directly by the customer on the scheduling page, as opposed to by a staff member on the behalf of the customer.
selfServiceAppointmentId *string
// The ID of the bookingService associated with this appointment.
serviceId *string
// The location where the service is delivered.
serviceLocation Locationable
// The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it is computed from the service associated with the appointment by the serviceId property.
serviceName *string
// Notes from a bookingStaffMember. The value of this property is available only when reading this bookingAppointment by its ID.
serviceNotes *string
// True indicates SMS notifications will be sent to the customers for the appointment. Default value is false.
smsNotificationsEnabled *bool
// The ID of each bookingStaffMember who is scheduled in this appointment.
staffMemberIds []string
// The start property
start DateTimeTimeZoneable
}
// NewBookingAppointment instantiates a new bookingAppointment and sets the default values.
func NewBookingAppointment()(*BookingAppointment) {
m := &BookingAppointment{
Entity: *NewEntity(),
}
return m
}
// CreateBookingAppointmentFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateBookingAppointmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewBookingAppointment(), nil
}
// GetAdditionalInformation gets the additionalInformation property value. Additional information that is sent to the customer when an appointment is confirmed.
func (m *BookingAppointment) GetAdditionalInformation()(*string) {
if m == nil {
return nil
} else {
return m.additionalInformation
}
}
// GetCustomerEmailAddress gets the customerEmailAddress property value. The SMTP address of the bookingCustomer who is booking the appointment.
func (m *BookingAppointment) GetCustomerEmailAddress()(*string) {
if m == nil {
return nil
} else {
return m.customerEmailAddress
}
}
// GetCustomerId gets the customerId property value. The ID of the bookingCustomer for this appointment. If no ID is specified when an appointment is created, then a new bookingCustomer object is created. Once set, you should consider the customerId immutable.
func (m *BookingAppointment) GetCustomerId()(*string) {
if m == nil {
return nil
} else {
return m.customerId
}
}
// GetCustomerLocation gets the customerLocation property value. Represents location information for the bookingCustomer who is booking the appointment.
func (m *BookingAppointment) GetCustomerLocation()(Locationable) {
if m == nil {
return nil
} else {
return m.customerLocation
}
}
// GetCustomerName gets the customerName property value. The customer's name.
func (m *BookingAppointment) GetCustomerName()(*string) {
if m == nil {
return nil
} else {
return m.customerName
}
}
// GetCustomerNotes gets the customerNotes property value. Notes from the customer associated with this appointment. You can get the value only when reading this bookingAppointment by its ID. You can set this property only when initially creating an appointment with a new customer. After that point, the value is computed from the customer represented by customerId.
func (m *BookingAppointment) GetCustomerNotes()(*string) {
if m == nil {
return nil
} else {
return m.customerNotes
}
}
// GetCustomerPhone gets the customerPhone property value. The customer's phone number.
func (m *BookingAppointment) GetCustomerPhone()(*string) {
if m == nil {
return nil
} else {
return m.customerPhone
}
}
// GetCustomers gets the customers property value. It lists down the customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional.
func (m *BookingAppointment) GetCustomers()([]BookingCustomerInformationBaseable) {
if m == nil {
return nil
} else {
return m.customers
}
}
// GetCustomerTimeZone gets the customerTimeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone.
func (m *BookingAppointment) GetCustomerTimeZone()(*string) {
if m == nil {
return nil
} else {
return m.customerTimeZone
}
}
// GetDuration gets the duration property value. The length of the appointment, denoted in ISO8601 format.
func (m *BookingAppointment) GetDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
if m == nil {
return nil
} else {
return m.duration
}
}
// GetEnd gets the end property value. The end property
func (m *BookingAppointment) GetEnd()(DateTimeTimeZoneable) {
if m == nil {
return nil
} else {
return m.end
}
}
// GetFieldDeserializers the deserialization information for the current model
func (m *BookingAppointment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Entity.GetFieldDeserializers()
res["additionalInformation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetAdditionalInformation(val)
}
return nil
}
res["customerEmailAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCustomerEmailAddress(val)
}
return nil
}
res["customerId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCustomerId(val)
}
return nil
}
res["customerLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateLocationFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetCustomerLocation(val.(Locationable))
}
return nil
}
res["customerName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCustomerName(val)
}
return nil
}
res["customerNotes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCustomerNotes(val)
}
return nil
}
res["customerPhone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCustomerPhone(val)
}
return nil
}
res["customers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfObjectValues(CreateBookingCustomerInformationBaseFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
res := make([]BookingCustomerInformationBaseable, len(val))
for i, v := range val {
res[i] = v.(BookingCustomerInformationBaseable)
}
m.SetCustomers(res)
}
return nil
}
res["customerTimeZone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetCustomerTimeZone(val)
}
return nil
}
res["duration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetISODurationValue()
if err != nil {
return err
}
if val != nil {
m.SetDuration(val)
}
return nil
}
res["end"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetEnd(val.(DateTimeTimeZoneable))
}
return nil
}
res["filledAttendeesCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetFilledAttendeesCount(val)
}
return nil
}
res["invoiceAmount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetFloat64Value()
if err != nil {
return err
}
if val != nil {
m.SetInvoiceAmount(val)
}
return nil
}
res["invoiceDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetInvoiceDate(val.(DateTimeTimeZoneable))
}
return nil
}
res["invoiceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetInvoiceId(val)
}
return nil
}
res["invoiceStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetEnumValue(ParseBookingInvoiceStatus)
if err != nil {
return err
}
if val != nil {
m.SetInvoiceStatus(val.(*BookingInvoiceStatus))
}
return nil
}
res["invoiceUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetInvoiceUrl(val)
}
return nil
}
res["isLocationOnline"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetIsLocationOnline(val)
}
return nil
}
res["joinWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetJoinWebUrl(val)
}
return nil
}
res["maximumAttendeesCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetMaximumAttendeesCount(val)
}
return nil
}
res["onlineMeetingUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetOnlineMeetingUrl(val)
}
return nil
}
res["optOutOfCustomerEmail"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetOptOutOfCustomerEmail(val)
}
return nil
}
res["postBuffer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetISODurationValue()
if err != nil {
return err
}
if val != nil {
m.SetPostBuffer(val)
}
return nil
}
res["preBuffer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetISODurationValue()
if err != nil {
return err
}
if val != nil {
m.SetPreBuffer(val)
}
return nil
}
res["price"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetFloat64Value()
if err != nil {
return err
}
if val != nil {
m.SetPrice(val)
}
return nil
}
res["priceType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetEnumValue(ParseBookingPriceType)
if err != nil {
return err
}
if val != nil {
m.SetPriceType(val.(*BookingPriceType))
}
return nil
}
res["reminders"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfObjectValues(CreateBookingReminderFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
res := make([]BookingReminderable, len(val))
for i, v := range val {
res[i] = v.(BookingReminderable)
}
m.SetReminders(res)
}
return nil
}
res["selfServiceAppointmentId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetSelfServiceAppointmentId(val)
}
return nil
}
res["serviceId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetServiceId(val)
}
return nil
}
res["serviceLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateLocationFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetServiceLocation(val.(Locationable))
}
return nil
}
res["serviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetServiceName(val)
}
return nil
}
res["serviceNotes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetServiceNotes(val)
}
return nil
}
res["smsNotificationsEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetBoolValue()
if err != nil {
return err
}
if val != nil {
m.SetSmsNotificationsEnabled(val)
}
return nil
}
res["staffMemberIds"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfPrimitiveValues("string")
if err != nil {
return err
}
if val != nil {
res := make([]string, len(val))
for i, v := range val {
res[i] = *(v.(*string))
}
m.SetStaffMemberIds(res)
}
return nil
}
res["start"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreateDateTimeTimeZoneFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetStart(val.(DateTimeTimeZoneable))
}
return nil
}
return res
}
// GetFilledAttendeesCount gets the filledAttendeesCount property value. The current number of customers in the appointment.
func (m *BookingAppointment) GetFilledAttendeesCount()(*int32) {
if m == nil {
return nil
} else {
return m.filledAttendeesCount
}
}
// GetInvoiceAmount gets the invoiceAmount property value. The billed amount on the invoice.
func (m *BookingAppointment) GetInvoiceAmount()(*float64) {
if m == nil {
return nil
} else {
return m.invoiceAmount
}
}
// GetInvoiceDate gets the invoiceDate property value. The date, time, and time zone of the invoice for this appointment.
func (m *BookingAppointment) GetInvoiceDate()(DateTimeTimeZoneable) {
if m == nil {
return nil
} else {
return m.invoiceDate
}
}
// GetInvoiceId gets the invoiceId property value. The ID of the invoice.
func (m *BookingAppointment) GetInvoiceId()(*string) {
if m == nil {
return nil
} else {
return m.invoiceId
}
}
// GetInvoiceStatus gets the invoiceStatus property value. The status of the invoice. Possible values are: draft, reviewing, open, canceled, paid, corrective.
func (m *BookingAppointment) GetInvoiceStatus()(*BookingInvoiceStatus) {
if m == nil {
return nil
} else {
return m.invoiceStatus
}
}
// GetInvoiceUrl gets the invoiceUrl property value. The URL of the invoice in Microsoft Bookings.
func (m *BookingAppointment) GetInvoiceUrl()(*string) {
if m == nil {
return nil
} else {
return m.invoiceUrl
}
}
// GetIsLocationOnline gets the isLocationOnline property value. True indicates that the appointment will be held online. Default value is false.
func (m *BookingAppointment) GetIsLocationOnline()(*bool) {
if m == nil {
return nil
} else {
return m.isLocationOnline
}
}
// GetJoinWebUrl gets the joinWebUrl property value. The URL of the online meeting for the appointment.
func (m *BookingAppointment) GetJoinWebUrl()(*string) {
if m == nil {
return nil
} else {
return m.joinWebUrl
}
}
// GetMaximumAttendeesCount gets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation.
func (m *BookingAppointment) GetMaximumAttendeesCount()(*int32) {
if m == nil {
return nil
} else {
return m.maximumAttendeesCount
}
}
// GetOnlineMeetingUrl gets the onlineMeetingUrl property value. The onlineMeetingUrl property
func (m *BookingAppointment) GetOnlineMeetingUrl()(*string) {
if m == nil {
return nil
} else {
return m.onlineMeetingUrl
}
}
// GetOptOutOfCustomerEmail gets the optOutOfCustomerEmail property value. True indicates that the bookingCustomer for this appointment does not wish to receive a confirmation for this appointment.
func (m *BookingAppointment) GetOptOutOfCustomerEmail()(*bool) {
if m == nil {
return nil
} else {
return m.optOutOfCustomerEmail
}
}
// GetPostBuffer gets the postBuffer property value. The amount of time to reserve after the appointment ends, for cleaning up, as an example. The value is expressed in ISO8601 format.
func (m *BookingAppointment) GetPostBuffer()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
if m == nil {
return nil
} else {
return m.postBuffer
}
}
// GetPreBuffer gets the preBuffer property value. The amount of time to reserve before the appointment begins, for preparation, as an example. The value is expressed in ISO8601 format.
func (m *BookingAppointment) GetPreBuffer()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) {
if m == nil {
return nil
} else {
return m.preBuffer
}
}
// GetPrice gets the price property value. The regular price for an appointment for the specified bookingService.
func (m *BookingAppointment) GetPrice()(*float64) {
if m == nil {
return nil
} else {
return m.price
}
}
// GetPriceType gets the priceType property value. A setting to provide flexibility for the pricing structure of services. Possible values are: undefined, fixedPrice, startingAt, hourly, free, priceVaries, callUs, notSet, unknownFutureValue.
func (m *BookingAppointment) GetPriceType()(*BookingPriceType) {
if m == nil {
return nil
} else {
return m.priceType
}
}
// GetReminders gets the reminders property value. The collection of customer reminders sent for this appointment. The value of this property is available only when reading this bookingAppointment by its ID.
func (m *BookingAppointment) GetReminders()([]BookingReminderable) {
if m == nil {
return nil
} else {
return m.reminders
}
}
// GetSelfServiceAppointmentId gets the selfServiceAppointmentId property value. An additional tracking ID for the appointment, if the appointment has been created directly by the customer on the scheduling page, as opposed to by a staff member on the behalf of the customer.
func (m *BookingAppointment) GetSelfServiceAppointmentId()(*string) {
if m == nil {
return nil
} else {
return m.selfServiceAppointmentId
}
}
// GetServiceId gets the serviceId property value. The ID of the bookingService associated with this appointment.
func (m *BookingAppointment) GetServiceId()(*string) {
if m == nil {
return nil
} else {
return m.serviceId
}
}
// GetServiceLocation gets the serviceLocation property value. The location where the service is delivered.
func (m *BookingAppointment) GetServiceLocation()(Locationable) {
if m == nil {
return nil
} else {
return m.serviceLocation
}
}
// GetServiceName gets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it is computed from the service associated with the appointment by the serviceId property.
func (m *BookingAppointment) GetServiceName()(*string) {
if m == nil {
return nil
} else {
return m.serviceName
}
}
// GetServiceNotes gets the serviceNotes property value. Notes from a bookingStaffMember. The value of this property is available only when reading this bookingAppointment by its ID.
func (m *BookingAppointment) GetServiceNotes()(*string) {
if m == nil {
return nil
} else {
return m.serviceNotes
}
}
// GetSmsNotificationsEnabled gets the smsNotificationsEnabled property value. True indicates SMS notifications will be sent to the customers for the appointment. Default value is false.
func (m *BookingAppointment) GetSmsNotificationsEnabled()(*bool) {
if m == nil {
return nil
} else {
return m.smsNotificationsEnabled
}
}
// GetStaffMemberIds gets the staffMemberIds property value. The ID of each bookingStaffMember who is scheduled in this appointment.
func (m *BookingAppointment) GetStaffMemberIds()([]string) {
if m == nil {
return nil
} else {
return m.staffMemberIds
}
}
// GetStart gets the start property value. The start property
func (m *BookingAppointment) GetStart()(DateTimeTimeZoneable) {
if m == nil {
return nil
} else {
return m.start
}
}
// Serialize serializes information the current object
func (m *BookingAppointment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.Entity.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteStringValue("additionalInformation", m.GetAdditionalInformation())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("customerEmailAddress", m.GetCustomerEmailAddress())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("customerId", m.GetCustomerId())
if err != nil {
return err
}
}
{
err = writer.WriteObjectValue("customerLocation", m.GetCustomerLocation())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("customerName", m.GetCustomerName())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("customerNotes", m.GetCustomerNotes())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("customerPhone", m.GetCustomerPhone())
if err != nil {
return err
}
}
if m.GetCustomers() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomers()))
for i, v := range m.GetCustomers() {
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("customers", cast)
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("customerTimeZone", m.GetCustomerTimeZone())
if err != nil {
return err
}
}
{
err = writer.WriteISODurationValue("duration", m.GetDuration())
if err != nil {
return err
}
}
{
err = writer.WriteObjectValue("end", m.GetEnd())
if err != nil {
return err
}
}
{
err = writer.WriteInt32Value("filledAttendeesCount", m.GetFilledAttendeesCount())
if err != nil {
return err
}
}
{
err = writer.WriteFloat64Value("invoiceAmount", m.GetInvoiceAmount())
if err != nil {
return err
}
}
{
err = writer.WriteObjectValue("invoiceDate", m.GetInvoiceDate())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("invoiceId", m.GetInvoiceId())
if err != nil {
return err
}
}
if m.GetInvoiceStatus() != nil {
cast := (*m.GetInvoiceStatus()).String()
err = writer.WriteStringValue("invoiceStatus", &cast)
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("invoiceUrl", m.GetInvoiceUrl())
if err != nil {
return err
}
}
{
err = writer.WriteBoolValue("isLocationOnline", m.GetIsLocationOnline())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("joinWebUrl", m.GetJoinWebUrl())
if err != nil {
return err
}
}
{
err = writer.WriteInt32Value("maximumAttendeesCount", m.GetMaximumAttendeesCount())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("onlineMeetingUrl", m.GetOnlineMeetingUrl())
if err != nil {
return err
}
}
{
err = writer.WriteBoolValue("optOutOfCustomerEmail", m.GetOptOutOfCustomerEmail())
if err != nil {
return err
}
}
{
err = writer.WriteISODurationValue("postBuffer", m.GetPostBuffer())
if err != nil {
return err
}
}
{
err = writer.WriteISODurationValue("preBuffer", m.GetPreBuffer())
if err != nil {
return err
}
}
{
err = writer.WriteFloat64Value("price", m.GetPrice())
if err != nil {
return err
}
}
if m.GetPriceType() != nil {
cast := (*m.GetPriceType()).String()
err = writer.WriteStringValue("priceType", &cast)
if err != nil {
return err
}
}
if m.GetReminders() != nil {
cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetReminders()))
for i, v := range m.GetReminders() {
cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable)
}
err = writer.WriteCollectionOfObjectValues("reminders", cast)
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("selfServiceAppointmentId", m.GetSelfServiceAppointmentId())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("serviceId", m.GetServiceId())
if err != nil {
return err
}
}
{
err = writer.WriteObjectValue("serviceLocation", m.GetServiceLocation())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("serviceName", m.GetServiceName())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("serviceNotes", m.GetServiceNotes())
if err != nil {
return err
}
}
{
err = writer.WriteBoolValue("smsNotificationsEnabled", m.GetSmsNotificationsEnabled())
if err != nil {
return err
}
}
if m.GetStaffMemberIds() != nil {
err = writer.WriteCollectionOfStringValues("staffMemberIds", m.GetStaffMemberIds())
if err != nil {
return err
}
}
{
err = writer.WriteObjectValue("start", m.GetStart())
if err != nil {
return err
}
}
return nil
}
// SetAdditionalInformation sets the additionalInformation property value. Additional information that is sent to the customer when an appointment is confirmed.
func (m *BookingAppointment) SetAdditionalInformation(value *string)() {
if m != nil {
m.additionalInformation = value
}
}
// SetCustomerEmailAddress sets the customerEmailAddress property value. The SMTP address of the bookingCustomer who is booking the appointment.
func (m *BookingAppointment) SetCustomerEmailAddress(value *string)() {
if m != nil {
m.customerEmailAddress = value
}
}
// SetCustomerId sets the customerId property value. The ID of the bookingCustomer for this appointment. If no ID is specified when an appointment is created, then a new bookingCustomer object is created. Once set, you should consider the customerId immutable.
func (m *BookingAppointment) SetCustomerId(value *string)() {
if m != nil {
m.customerId = value
}
}
// SetCustomerLocation sets the customerLocation property value. Represents location information for the bookingCustomer who is booking the appointment.
func (m *BookingAppointment) SetCustomerLocation(value Locationable)() {
if m != nil {
m.customerLocation = value
}
}
// SetCustomerName sets the customerName property value. The customer's name.
func (m *BookingAppointment) SetCustomerName(value *string)() {
if m != nil {
m.customerName = value
}
}
// SetCustomerNotes sets the customerNotes property value. Notes from the customer associated with this appointment. You can get the value only when reading this bookingAppointment by its ID. You can set this property only when initially creating an appointment with a new customer. After that point, the value is computed from the customer represented by customerId.
func (m *BookingAppointment) SetCustomerNotes(value *string)() {
if m != nil {
m.customerNotes = value
}
}
// SetCustomerPhone sets the customerPhone property value. The customer's phone number.
func (m *BookingAppointment) SetCustomerPhone(value *string)() {
if m != nil {
m.customerPhone = value
}
}
// SetCustomers sets the customers property value. It lists down the customer properties for an appointment. An appointment will contain a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional.
func (m *BookingAppointment) SetCustomers(value []BookingCustomerInformationBaseable)() {
if m != nil {
m.customers = value
}
}
// SetCustomerTimeZone sets the customerTimeZone property value. The time zone of the customer. For a list of possible values, see dateTimeTimeZone.
func (m *BookingAppointment) SetCustomerTimeZone(value *string)() {
if m != nil {
m.customerTimeZone = value
}
}
// SetDuration sets the duration property value. The length of the appointment, denoted in ISO8601 format.
func (m *BookingAppointment) SetDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
if m != nil {
m.duration = value
}
}
// SetEnd sets the end property value. The end property
func (m *BookingAppointment) SetEnd(value DateTimeTimeZoneable)() {
if m != nil {
m.end = value
}
}
// SetFilledAttendeesCount sets the filledAttendeesCount property value. The current number of customers in the appointment.
func (m *BookingAppointment) SetFilledAttendeesCount(value *int32)() {
if m != nil {
m.filledAttendeesCount = value
}
}
// SetInvoiceAmount sets the invoiceAmount property value. The billed amount on the invoice.
func (m *BookingAppointment) SetInvoiceAmount(value *float64)() {
if m != nil {
m.invoiceAmount = value
}
}
// SetInvoiceDate sets the invoiceDate property value. The date, time, and time zone of the invoice for this appointment.
func (m *BookingAppointment) SetInvoiceDate(value DateTimeTimeZoneable)() {
if m != nil {
m.invoiceDate = value
}
}
// SetInvoiceId sets the invoiceId property value. The ID of the invoice.
func (m *BookingAppointment) SetInvoiceId(value *string)() {
if m != nil {
m.invoiceId = value
}
}
// SetInvoiceStatus sets the invoiceStatus property value. The status of the invoice. Possible values are: draft, reviewing, open, canceled, paid, corrective.
func (m *BookingAppointment) SetInvoiceStatus(value *BookingInvoiceStatus)() {
if m != nil {
m.invoiceStatus = value
}
}
// SetInvoiceUrl sets the invoiceUrl property value. The URL of the invoice in Microsoft Bookings.
func (m *BookingAppointment) SetInvoiceUrl(value *string)() {
if m != nil {
m.invoiceUrl = value
}
}
// SetIsLocationOnline sets the isLocationOnline property value. True indicates that the appointment will be held online. Default value is false.
func (m *BookingAppointment) SetIsLocationOnline(value *bool)() {
if m != nil {
m.isLocationOnline = value
}
}
// SetJoinWebUrl sets the joinWebUrl property value. The URL of the online meeting for the appointment.
func (m *BookingAppointment) SetJoinWebUrl(value *string)() {
if m != nil {
m.joinWebUrl = value
}
}
// SetMaximumAttendeesCount sets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation.
func (m *BookingAppointment) SetMaximumAttendeesCount(value *int32)() {
if m != nil {
m.maximumAttendeesCount = value
}
}
// SetOnlineMeetingUrl sets the onlineMeetingUrl property value. The onlineMeetingUrl property
func (m *BookingAppointment) SetOnlineMeetingUrl(value *string)() {
if m != nil {
m.onlineMeetingUrl = value
}
}
// SetOptOutOfCustomerEmail sets the optOutOfCustomerEmail property value. True indicates that the bookingCustomer for this appointment does not wish to receive a confirmation for this appointment.
func (m *BookingAppointment) SetOptOutOfCustomerEmail(value *bool)() {
if m != nil {
m.optOutOfCustomerEmail = value
}
}
// SetPostBuffer sets the postBuffer property value. The amount of time to reserve after the appointment ends, for cleaning up, as an example. The value is expressed in ISO8601 format.
func (m *BookingAppointment) SetPostBuffer(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
if m != nil {
m.postBuffer = value
}
}
// SetPreBuffer sets the preBuffer property value. The amount of time to reserve before the appointment begins, for preparation, as an example. The value is expressed in ISO8601 format.
func (m *BookingAppointment) SetPreBuffer(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() {
if m != nil {
m.preBuffer = value
}
}
// SetPrice sets the price property value. The regular price for an appointment for the specified bookingService.
func (m *BookingAppointment) SetPrice(value *float64)() {
if m != nil {
m.price = value
}
}
// SetPriceType sets the priceType property value. A setting to provide flexibility for the pricing structure of services. Possible values are: undefined, fixedPrice, startingAt, hourly, free, priceVaries, callUs, notSet, unknownFutureValue.
func (m *BookingAppointment) SetPriceType(value *BookingPriceType)() {
if m != nil {
m.priceType = value
}
}
// SetReminders sets the reminders property value. The collection of customer reminders sent for this appointment. The value of this property is available only when reading this bookingAppointment by its ID.
func (m *BookingAppointment) SetReminders(value []BookingReminderable)() {
if m != nil {
m.reminders = value
}
}
// SetSelfServiceAppointmentId sets the selfServiceAppointmentId property value. An additional tracking ID for the appointment, if the appointment has been created directly by the customer on the scheduling page, as opposed to by a staff member on the behalf of the customer.
func (m *BookingAppointment) SetSelfServiceAppointmentId(value *string)() {
if m != nil {
m.selfServiceAppointmentId = value
}
}
// SetServiceId sets the serviceId property value. The ID of the bookingService associated with this appointment.
func (m *BookingAppointment) SetServiceId(value *string)() {
if m != nil {
m.serviceId = value
}
}
// SetServiceLocation sets the serviceLocation property value. The location where the service is delivered.
func (m *BookingAppointment) SetServiceLocation(value Locationable)() {
if m != nil {
m.serviceLocation = value
}
}
// SetServiceName sets the serviceName property value. The name of the bookingService associated with this appointment.This property is optional when creating a new appointment. If not specified, it is computed from the service associated with the appointment by the serviceId property.
func (m *BookingAppointment) SetServiceName(value *string)() {
if m != nil {
m.serviceName = value
}
}
// SetServiceNotes sets the serviceNotes property value. Notes from a bookingStaffMember. The value of this property is available only when reading this bookingAppointment by its ID.
func (m *BookingAppointment) SetServiceNotes(value *string)() {
if m != nil {
m.serviceNotes = value
}
}
// SetSmsNotificationsEnabled sets the smsNotificationsEnabled property value. True indicates SMS notifications will be sent to the customers for the appointment. Default value is false.
func (m *BookingAppointment) SetSmsNotificationsEnabled(value *bool)() {
if m != nil {
m.smsNotificationsEnabled = value
}
}
// SetStaffMemberIds sets the staffMemberIds property value. The ID of each bookingStaffMember who is scheduled in this appointment.
func (m *BookingAppointment) SetStaffMemberIds(value []string)() {
if m != nil {
m.staffMemberIds = value
}
}
// SetStart sets the start property value. The start property
func (m *BookingAppointment) SetStart(value DateTimeTimeZoneable)() {
if m != nil {
m.start = value
}
} | models/booking_appointment.go | 0.622918 | 0.438364 | booking_appointment.go | starcoder |
package wid
import (
"image"
"gioui.org/gesture"
"gioui.org/io/pointer"
"gioui.org/layout"
"gioui.org/op/clip"
"gioui.org/op/paint"
)
// Resize provides a draggable handle in between two widgets for resizing their area.
type Resize struct {
// ratio defines how much space is available to the first widget.
axis layout.Axis
Theme *Theme
ratio float32
Length float32
drag gesture.Drag
start int
}
// SplitHorizontal is used to layout two widgets with a vertical splitter between.
func SplitHorizontal(th *Theme, ratio float32, w1 layout.Widget, w2 layout.Widget) func(gtx C) D {
rs := Resize{Theme: th, ratio: ratio, axis: layout.Horizontal}
return func(gtx C) D {
return rs.Layout(gtx, w1, w2)
}
}
// SplitVertical is used to layout two widgets with a vertical splitter between.
func SplitVertical(th *Theme, ratio float32, w1 layout.Widget, w2 layout.Widget) func(gtx C) D {
rs := Resize{Theme: th, ratio: ratio, axis: layout.Vertical}
return func(gtx C) D {
return rs.Layout(gtx, w1, w2)
}
}
// Layout displays w1 and w2 with handle in between.
func (rs *Resize) Layout(gtx C, w1 layout.Widget, w2 layout.Widget) D {
// Compute the first widget's max width/height.
if rs.axis == layout.Horizontal {
rs.dragging(gtx, float32(gtx.Constraints.Max.X))
} else {
rs.dragging(gtx, float32(gtx.Constraints.Max.Y))
}
return layout.Flex{
Axis: rs.axis,
}.Layout(gtx,
layout.Flexed(rs.ratio, w1),
layout.Rigid(func(gtx C) D {
dims := rs.drawSash(gtx)
rs.setCursor(gtx, dims)
return D{Size: dims}
}),
layout.Flexed(1-rs.ratio, w2),
)
}
func (rs *Resize) setCursor(gtx C, dims image.Point) {
rect := image.Rectangle{Max: dims}
defer clip.Rect(rect).Push(gtx.Ops).Pop()
rs.drag.Add(gtx.Ops)
if rs.axis == layout.Horizontal {
pointer.CursorNameOp{Name: pointer.CursorColResize}.Add(gtx.Ops)
} else {
pointer.CursorNameOp{Name: pointer.CursorRowResize}.Add(gtx.Ops)
}
}
func clamp(v float32, lo float32, hi float32) float32 {
if v < lo {
return lo
} else if v > hi {
return 0.95
}
return v
}
func (rs *Resize) dragging(gtx C, length float32) {
var dp int
pos := int(rs.ratio * length)
for _, e := range rs.drag.Events(gtx.Metric, gtx, gesture.Axis(rs.axis)) {
if rs.axis == layout.Horizontal {
dp = int(e.Position.X)
} else {
dp = int(e.Position.Y)
}
if e.Type == pointer.Drag {
pos += dp - rs.start
} else if e.Type == pointer.Press {
rs.start = dp
return
}
}
// Clamp the handle position, leaving it always visible.
rs.ratio = clamp(float32(pos)/length, 0.05, 0.95)
}
func (rs *Resize) drawSash(gtx C) image.Point {
var sashSize, dims image.Point
if rs.axis == layout.Horizontal {
dims = gtx.Constraints.Max
dims.X = gtx.Px(rs.Theme.SashWidth)
sashSize = image.Pt(gtx.Px(rs.Theme.SashWidth), dims.Y)
} else {
dims = gtx.Constraints.Max
dims.Y = gtx.Px(rs.Theme.SashWidth)
sashSize = image.Pt(dims.X, gtx.Px(rs.Theme.SashWidth))
}
defer clip.Rect{Max: sashSize}.Push(gtx.Ops).Pop()
paint.ColorOp{Color: rs.Theme.SashColor}.Add(gtx.Ops)
paint.PaintOp{}.Add(gtx.Ops)
return dims
} | wid/resizer.go | 0.679391 | 0.510863 | resizer.go | starcoder |
package client
import (
"math"
"sort"
)
//nearestObstacle() returns a integer corresponding to the stick that is nearest to the ball at that moment.
func (ball *Ball) nearestObstacle(c1 chan int) {
distance := [8]int32{61, 136, 211, 286, 361, 436, 511, 586}
i := sort.Search(len(distance), func(i int) bool { return distance[i] >= int32(ball.X) })
if i < len(distance) && distance[i] == int32(ball.X) {
c1 <- i
} else if i == 0 {
c1 <- i
} else if i == 8 {
c1 <- i - 1
} else {
if math.Abs(float64(distance[i]-int32(ball.X))) < math.Abs(float64(distance[i-1]-int32(ball.X))) {
c1 <- i
} else {
c1 <- i - 1
}
}
}
//collides() returns true if the ball collides with a player.
func (ball *Ball) collides(c2 Player) bool {
distance := math.Sqrt(math.Pow(c2.X-ball.X+c2.Radius, 2) + math.Pow(c2.Y-ball.Y+c2.Radius, 2))
return distance <= ball.Radius+c2.Radius
}
//CheckCollision() checks at every frame if a collision has happened with a player or not.
//If a collision has happened, it invokes onCollisionwithPlayer().
func (ball *Ball) CheckCollision(t Team, teamid int32) {
c1 := make(chan int)
go ball.nearestObstacle(c1)
arr := [2][]int{{0, 1, 3, 5}, {7, 6, 4, 2}}
var stick [4][]Player
stick[0] = t.GoalKeeper[0:1]
stick[1] = t.Defence[0:2]
stick[2] = t.Mid[0:5]
stick[3] = t.Attack[0:3]
index := <-c1
for i, j := range arr[teamid-1] {
if j == index {
for k := range stick[i] {
go ball.collision(t, teamid, stick[i][k])
}
}
}
}
func (ball *Ball) collision(t Team, teamid int32, p Player) {
if ball.collides(p) {
onCollisionwithPlayer(ball, teamid, t.LastMotion)
}
}
//onCollisionwithPlayer() changes the direction of the ball.
//It also changes the speed of the ball if it has not been increased by a collision with another player.
func onCollisionwithPlayer(ball *Ball, teamid int32, lastMotion int32) {
if (ball.Xv < 0 && teamid == 1) || (ball.Xv > 0 && teamid == 2) {
ball.Xv = -ball.Xv
}
if math.Abs(ball.Xv) <= BallSpeedX {
ball.Xv *= 2
ball.Yv *= 2
}
ball.Yv += float64(lastMotion) * 0.2
}
//collidesWall() checks if a collision has happened with a wall or not.
//It also checks and returns if a goal has happened.
//index -1 means no collision
// 1 means collision with left wall
// 2 right wall
// 3 upper wall
// 4 means lower wall
func (ball *Ball) collidesWall() (goal int, index int) {
if ball.X < boundarywidth+radius && ball.Xv < 0 {
if ball.Y <= 297-radius && ball.Y >= 201+radius {
insideGoal = true
return 2, -1
}
return 0, 1
} else if ball.X > BoxWidth-boundarywidth-radius-1 && ball.Xv > 0 {
if ball.Y <= 297-radius && ball.Y >= 201+radius {
insideGoal = true
return 1, -1
}
return 0, 2
} else if ball.Y < boundarywidth+radius && ball.Yv < 0 {
return 0, 3
} else if ball.Y > BoxHeight-boundarywidth-radius-1 && ball.Yv > 0 {
return 0, 4
}
return 0, -1
}
//onCollisionWithWall() changes the direction and speed of the ball.
func onCollisionWithWall(ball *Ball, index int) {
if index == 1 || index == 2 {
ball.Xv = -ball.Xv
} else if index == 3 || index == 4 {
ball.Yv = -ball.Yv
}
if math.Abs(ball.Xv) > BallSpeedX {
ball.Xv /= 2
ball.Yv = BallSpeedY * (ball.Yv / math.Abs(ball.Yv))
}
}
//movementInsidePost() decides the movement of the ball inside the goal post.
func (ball *Ball) movementInsidePost() {
ball.Yv = 0
} | src/client/collision.go | 0.735642 | 0.420183 | collision.go | starcoder |
package mat
import (
"math"
"github.com/angelsolaorbaiceta/inkmath/nums"
"github.com/angelsolaorbaiceta/inkmath/vec"
)
/*
AreEqual returns true iff matrices have the same number of rows and columns with
exactly the same values in matching positions.
*/
func AreEqual(m1, m2 ReadOnlyMatrix) bool {
if m1.Rows() != m2.Rows() || m1.Cols() != m2.Cols() {
return false
}
for i := 0; i < m1.Rows(); i++ {
for j := 0; j < m1.Cols(); j++ {
if !nums.FuzzyEqual(m1.Value(i, j), m2.Value(i, j)) {
return false
}
}
}
return true
}
/*
IsSquare returns true if the given matrix has the same number of rows and
columns.
*/
func IsSquare(m ReadOnlyMatrix) bool {
return m.Rows() == m.Cols()
}
/*
IsSymmetric returns true if the given matrix is square and equals to it's
traspose.
*/
func IsSymmetric(m ReadOnlyMatrix) bool {
if !IsSquare(m) {
panic("Matrix symmetry only applies to square matrices")
}
for i := 0; i < m.Rows(); i++ {
for j := i + 1; j < m.Cols(); j++ {
if !nums.FuzzyEqual(m.Value(i, j), m.Value(j, i)) {
return false
}
}
}
return true
}
/*
IsRowDominant returns true if for every row in the matrix, the element in the
main diagonal is greater than every other element.
*/
func IsRowDominant(m ReadOnlyMatrix) bool {
if !IsSquare(m) {
panic("Matrix dominancy only applies to square matrices")
}
var diagonalValue float64
for i := 0; i < m.Rows(); i++ {
diagonalValue = math.Abs(m.Value(i, i))
for j := 0; j < m.Cols(); j++ {
if i != j && diagonalValue < math.Abs(m.Value(i, j)) {
return false
}
}
}
return true
}
/*
HasZeroInMainDiagonal returns true if a zero is found in the matrix main diagonal.
*/
func HasZeroInMainDiagonal(m ReadOnlyMatrix) bool {
if !IsSquare(m) {
panic("Matrix main diagonal only applies to square matrices")
}
for i := 0; i < m.Rows(); i++ {
if nums.IsCloseToZero(m.Value(i, i)) {
return true
}
}
return false
}
/*
MainDiagonal returns a vector containing the values of the main diagonal.
*/
func MainDiagonal(m ReadOnlyMatrix) vec.ReadOnlyVector {
if !IsSquare(m) {
panic("Matrix main diagonal only applies to square matrices")
}
diag := vec.Make(m.Rows())
for i := 0; i < m.Rows(); i++ {
diag.SetValue(i, m.Value(i, i))
}
return diag
}
/*
MatrixContainsData tests whether a given matrix has exactly the same data as the slice
of float64 numbers.
The number of items in the matrix and the slice need to be the same in order for this
test to return true.
*/
func MatrixContainsData(matrix ReadOnlyMatrix, data []float64) bool {
var (
offset int
got, want float64
)
if matrix.Rows()*matrix.Cols() != len(data) {
return false
}
for rowIndex := 0; rowIndex < matrix.Rows(); rowIndex++ {
offset = rowIndex * matrix.Cols()
for colIndex := 0; colIndex < matrix.Cols(); colIndex++ {
got = matrix.Value(rowIndex, colIndex)
want = data[offset+colIndex]
if !nums.FuzzyEqual(got, want) {
return false
}
}
}
return true
}
/*
FillMatrixWithData fills the matrix using the given slice of float64 numbers. This
function expects the matrix to have the same number of items as the slice.
*/
func FillMatrixWithData(matrix MutableMatrix, data []float64) {
if matrix.Rows()*matrix.Cols() != len(data) {
panic("Wrong number of items: can't initialize matrix")
}
var (
offset int
rows = matrix.Rows()
cols = matrix.Cols()
)
for rowIndex := 0; rowIndex < rows; rowIndex++ {
offset = rowIndex * cols
for colIndex := 0; colIndex < cols; colIndex++ {
matrix.SetValue(rowIndex, colIndex, data[offset+colIndex])
}
}
} | mat/matrices.go | 0.83924 | 0.65619 | matrices.go | starcoder |
package element
import (
"math"
"math/rand"
mathex "github.com/locatw/go-ray-tracer/math"
. "github.com/locatw/go-ray-tracer/vector"
)
type Ray struct {
Origin Vector
Direction Vector
}
type HitInfo struct {
Object Shape
Position Vector
Normal Vector
T float64
}
func CreateRay(origin Vector, direction Vector) Ray {
return Ray{Origin: origin, Direction: Normalize(direction)}
}
func CreateDiffuseRay(rnd *rand.Rand, ray Ray, hitInfo *HitInfo) Ray {
// base vectors in tangent space
u := Normalize(Cross(hitInfo.Normal, ray.Direction))
v := Normalize(Cross(u, hitInfo.Normal))
n := hitInfo.Normal
r := math.Sqrt(rnd.Float64())
theta := 2.0 * math.Pi * rnd.Float64()
x := r * math.Cos(theta)
y := r * math.Sin(theta)
z := math.Sqrt(math.Max(0.0, 1.0-x*x-y*y))
origin := Add(hitInfo.Position, Multiply(10000.0*mathex.Epsilon(), hitInfo.Normal))
dir := AddAll(Multiply(x, u), Multiply(y, v), Multiply(z, n))
return CreateRay(origin, dir)
}
func CreateReflectRay(ray Ray, hitInfo *HitInfo) Ray {
dir := Multiply(2.0*Dot(Multiply(-1.0, ray.Direction), hitInfo.Normal), hitInfo.Normal)
dir = Subtract(dir, Multiply(-1.0, ray.Direction))
origin := Add(hitInfo.Position, Multiply(10000.0*mathex.Epsilon(), hitInfo.Normal))
return CreateRay(origin, dir)
}
func CreateRefractRay(ray Ray, hitInfo *HitInfo) (Ray, bool) {
if hitInfo.Object.GetMaterial().IndexOfRefraction == nil {
panic("cannot create refract ray because object does not have index of refraction.")
}
inObject := Dot(Multiply(-1.0, ray.Direction), hitInfo.Normal) < 0.0
iot := *hitInfo.Object.GetMaterial().IndexOfRefraction
normal := hitInfo.Normal
if inObject {
normal = Multiply(-1.0, hitInfo.Normal)
}
eta := 1.0 / iot
if inObject {
eta = iot
}
a := Dot(Multiply(-1.0, ray.Direction), normal)
d := 1.0 - math.Pow(eta, 2.0)*(1.0-math.Pow(a, 2.0))
if 0.0 <= d {
dir := Multiply(-eta, Subtract(Multiply(-1.0, ray.Direction), Multiply(a, normal)))
dir = Subtract(dir, Multiply(math.Sqrt(d), normal))
origin := Subtract(hitInfo.Position, Multiply(10000.0*mathex.Epsilon(), normal))
return CreateRay(origin, dir), false
} else {
return Ray{}, true
}
} | src/github.com/locatw/go-ray-tracer/element/ray.go | 0.807385 | 0.54462 | ray.go | starcoder |
package dclass
// A DataType declares the type of data stored by a Parameter.
type DataType int
const (
InvalidType DataType = iota
// Basic DataTypes
Int8Type
Int16Type
Int32Type
Int64Type
Uint8Type
Uint16Type
Uint32Type
Uint64Type
FloatType
StringType
BlobType
CharType
StructType
)
// An Error is a dclass package specific error
type Error string
// implements Error interface
func (err Error) Error() string {
return string(err)
}
// implements Stringer interface
func (err Error) String() string {
return string(err)
}
func runtimeError(msg string) Error {
return Error("runtime error: " + msg)
}
type Hashable interface {
Hash() uint64
}
// A KeywordList is any dctype that has an associated keyword list. The most common KeywordLists
// are: a File object with its list of declared keywords and a Field with its list of enabled keywords.
type KeywordList interface {
// AddKeyword adds the keyword argument to the set of keywords in the list.
AddKeyword(keyword string)
// AddKeywords performs a union of the KeywordList argument into this KeywordList.
AddKeywords(list KeywordList)
// CompareKeywords compares two KeywordLists and returns true if they contain the same set of
// keywords. Order does not matter.
CompareKeywords(list KeywordList) bool
// HasKeyword returns whether the keyword argument exists in the list.
HasKeyword(keyword string) bool
// Keywords returns the list of keywords as a slice
Keywords() []string
// NumKeywords returns the length of the keyword list
NumKeywords() int
}
// type keywords is a string slice satisfying the KeywordList interface.
type keywords []string
// implementing KeywordList
func (k *keywords) AddKeyword(keyword string) {
if !k.HasKeyword(keyword) {
k = append(k, keyword)
}
}
// implementing KeywordList
func (k *keywords) AddKeywords(list KeywordList) {
for _, keyword := range list.Keywords() {
k.AddKeyword(keyword)
}
}
// implementing KeywordList
func (k *keywords) CompareKeywords(list KeywordList) bool {
if len(k) != len(list.Keywords()) {
return false
}
for _, keyword := range k {
if !list.HasKeyword(keyword) {
return false
}
}
return true
}
// implementing KeywordList
func (k *keywords) HasKeyword(keyword string) bool {
for _, word := range k {
if keyword == word {
return true
}
}
return false
}
// implementing KeywordList
func (k *keywords) Keywords() []string {
return []string(k)
}
// implementing KeywordList
func (k *keywords) NumKeywords() int {
return len(k)
}
// A Transform defines a set of operations to perform on a parameter when being unpacked.
// The inverse set of operations is performed when packing the data.
type Transform struct{} // TODO: Define
// A Range defines a constraint for a particular DataType
type Range interface{}
type RangeInt8 struct {
Min, Max int8
}
type RangeInt16 struct {
Min, Max int16
}
type RangeInt32 struct {
Min, Max int32
}
type RangeInt64 struct {
Min, Max int64
}
type RangeUint8 struct {
Min, Max uint8
}
type RangeUint16 struct {
Min, Max uint16
}
type RangeUint32 struct {
Min, Max uint32
}
type RangeUint64 struct {
Min, Max uint64
}
type RangeFloat struct {
Min, Max float64
}
type RangeLength struct {
RangeInt16
}
type RangeArray struct {
RangeInt16
} | dclass/types.go | 0.703753 | 0.434341 | types.go | starcoder |
package rates
import (
"errors"
"regexp"
)
// ErrRateInvalid is the error that signals about invalid rate value
var ErrRateInvalid = errors.New("rate must be greater that zero")
// Rule is the base class of rule
type Rule struct {
Rate float64
}
// NewRule is the constructor for Rule
func NewRule(rate float64) (*Rule, error) {
if rate <= 0 {
return nil, ErrRateInvalid
}
return &Rule{Rate: rate}, nil
}
// NamespaceRule is the one of the rule types
type NamespaceRule struct {
Rule
namespace *regexp.Regexp
}
// NewNamespaceRule is the constructor for NamespaceRule
func NewNamespaceRule(record RateRecord) (*NamespaceRule, error) {
ruleBase, err := NewRule(record.Rate)
if err != nil {
return nil, err
}
rule := &NamespaceRule{
Rule: *ruleBase,
}
namespaceRegex, err := regexp.Compile(record.Namespace)
if err != nil {
return nil, err
}
rule.namespace = namespaceRegex
return rule, nil
}
// Match tries to match specified string with namespace regular expression
func (rule *NamespaceRule) Match(namespace string) bool {
return rule.namespace.MatchString(namespace)
}
// PodRule is the one of the rule types
type PodRule struct {
Rule
pod *regexp.Regexp
}
// NewPodRule is the constructor for PodRule
func NewPodRule(record RateRecord) (*PodRule, error) {
ruleBase, err := NewRule(record.Rate)
if err != nil {
return nil, err
}
rule := &PodRule{
Rule: *ruleBase,
}
podRegex, err := regexp.Compile(record.Pod)
if err != nil {
return nil, err
}
rule.pod = podRegex
return rule, nil
}
// Match tries to match specified string with pod regular expression
func (rule *PodRule) Match(pod string) bool {
return rule.pod.MatchString(pod)
}
// NamespacedPodRule is the one of the rule types
type NamespacedPodRule struct {
Rule
namespace *regexp.Regexp
pod *regexp.Regexp
}
// NewNamespacedPodRule is the constructor for NamespacedPodRule
func NewNamespacedPodRule(record RateRecord) (*NamespacedPodRule, error) {
ruleBase, err := NewRule(record.Rate)
if err != nil {
return nil, err
}
rule := &NamespacedPodRule{
Rule: *ruleBase,
}
namespaceRegex, err := regexp.Compile(record.Namespace)
if err != nil {
return nil, err
}
podRegex, err := regexp.Compile(record.Pod)
if err != nil {
return nil, err
}
rule.namespace = namespaceRegex
rule.pod = podRegex
return rule, nil
}
// Match tries to match specified pair with namespace and pod regular expressions
func (rule *NamespacedPodRule) Match(namespace, pod string) bool {
return rule.namespace.MatchString(namespace) && rule.pod.MatchString(pod)
} | components/rates/rule.go | 0.712232 | 0.447158 | rule.go | starcoder |
// Package ghash is a constant time 64 bit optimized GHASH implementation.
package ghash
import "encoding/binary"
const blockSize = 16
func bmul64(x, y uint64) uint64 {
x0 := x & 0x1111111111111111
x1 := x & 0x2222222222222222
x2 := x & 0x4444444444444444
x3 := x & 0x8888888888888888
y0 := y & 0x1111111111111111
y1 := y & 0x2222222222222222
y2 := y & 0x4444444444444444
y3 := y & 0x8888888888888888
z0 := (x0 * y0) ^ (x1 * y3) ^ (x2 * y2) ^ (x3 * y1)
z1 := (x0 * y1) ^ (x1 * y0) ^ (x2 * y3) ^ (x3 * y2)
z2 := (x0 * y2) ^ (x1 * y1) ^ (x2 * y0) ^ (x3 * y3)
z3 := (x0 * y3) ^ (x1 * y2) ^ (x2 * y1) ^ (x3 * y0)
z0 &= 0x1111111111111111
z1 &= 0x2222222222222222
z2 &= 0x4444444444444444
z3 &= 0x8888888888888888
return z0 | z1 | z2 | z3
}
func rev64(x uint64) uint64 {
x = ((x & 0x5555555555555555) << 1) | ((x >> 1) & 0x5555555555555555)
x = ((x & 0x3333333333333333) << 2) | ((x >> 2) & 0x3333333333333333)
x = ((x & 0x0F0F0F0F0F0F0F0F) << 4) | ((x >> 4) & 0x0F0F0F0F0F0F0F0F)
x = ((x & 0x00FF00FF00FF00FF) << 8) | ((x >> 8) & 0x00FF00FF00FF00FF)
x = ((x & 0x0000FFFF0000FFFF) << 16) | ((x >> 16) & 0x0000FFFF0000FFFF)
return (x << 32) | (x >> 32)
}
// Ghash calculates the GHASH of data, with key h, and input y, and stores the
// resulting digest in y.
func Ghash(y, h *[blockSize]byte, data []byte) {
var tmp [blockSize]byte
var src []byte
buf := data
l := len(buf)
y1 := binary.BigEndian.Uint64(y[:])
y0 := binary.BigEndian.Uint64(y[8:])
h1 := binary.BigEndian.Uint64(h[:])
h0 := binary.BigEndian.Uint64(h[8:])
h0r := rev64(h0)
h1r := rev64(h1)
h2 := h0 ^ h1
h2r := h0r ^ h1r
for l > 0 {
if l >= blockSize {
src = buf
buf = buf[blockSize:]
l -= blockSize
} else {
copy(tmp[:], buf)
src = tmp[:]
l = 0
}
y1 ^= binary.BigEndian.Uint64(src)
y0 ^= binary.BigEndian.Uint64(src[8:])
y0r := rev64(y0)
y1r := rev64(y1)
y2 := y0 ^ y1
y2r := y0r ^ y1r
z0 := bmul64(y0, h0)
z1 := bmul64(y1, h1)
z2 := bmul64(y2, h2)
z0h := bmul64(y0r, h0r)
z1h := bmul64(y1r, h1r)
z2h := bmul64(y2r, h2r)
z2 ^= z0 ^ z1
z2h ^= z0h ^ z1h
z0h = rev64(z0h) >> 1
z1h = rev64(z1h) >> 1
z2h = rev64(z2h) >> 1
v0 := z0
v1 := z0h ^ z2
v2 := z1 ^ z2h
v3 := z1h
v3 = (v3 << 1) | (v2 >> 63)
v2 = (v2 << 1) | (v1 >> 63)
v1 = (v1 << 1) | (v0 >> 63)
v0 = (v0 << 1)
v2 ^= v0 ^ (v0 >> 1) ^ (v0 >> 2) ^ (v0 >> 7)
v1 ^= (v0 << 63) ^ (v0 << 62) ^ (v0 << 57)
v3 ^= v1 ^ (v1 >> 1) ^ (v1 >> 2) ^ (v1 >> 7)
v2 ^= (v1 << 63) ^ (v1 << 62) ^ (v1 << 57)
y0 = v2
y1 = v3
}
binary.BigEndian.PutUint64(y[:], y1)
binary.BigEndian.PutUint64(y[8:], y0)
} | ghash/ghash.go | 0.678859 | 0.422386 | ghash.go | starcoder |
package circonus
import (
"github.com/circonus-labs/circonus-gometrics"
"github.com/go-kit/kit/metrics"
)
// NewCounter returns a counter backed by a Circonus counter with the given
// name. Due to the Circonus data model, fields are not supported.
func NewCounter(name string) metrics.Counter {
return counter(name)
}
type counter circonusgometrics.Counter
// Name implements Counter.
func (c counter) Name() string {
return string(c)
}
// With implements Counter, but is a no-op.
func (c counter) With(metrics.Field) metrics.Counter {
return c
}
// Add implements Counter.
func (c counter) Add(delta uint64) {
circonusgometrics.Counter(c).AddN(delta)
}
// NewGauge returns a gauge backed by a Circonus gauge with the given name. Due
// to the Circonus data model, fields are not supported. Also, Circonus gauges
// are defined as integers, so values are truncated.
func NewGauge(name string) metrics.Gauge {
return gauge(name)
}
type gauge circonusgometrics.Gauge
// Name implements Gauge.
func (g gauge) Name() string {
return string(g)
}
// With implements Gauge, but is a no-op.
func (g gauge) With(metrics.Field) metrics.Gauge {
return g
}
// Set implements Gauge.
func (g gauge) Set(value float64) {
circonusgometrics.Gauge(g).Set(int64(value))
}
// Add implements Gauge, but is a no-op, as Circonus gauges don't support
// incremental (delta) mutation.
func (g gauge) Add(float64) {
return
}
// Get implements Gauge, but always returns zero, as there's no way to extract
// the current value from a Circonus gauge.
func (g gauge) Get() float64 {
return 0.0
}
// NewHistogram returns a histogram backed by a Circonus histogram.
// Due to the Circonus data model, fields are not supported.
func NewHistogram(name string) metrics.Histogram {
return histogram{
h: circonusgometrics.NewHistogram(name),
}
}
type histogram struct {
h *circonusgometrics.Histogram
}
// Name implements Histogram.
func (h histogram) Name() string {
return h.h.Name()
}
// With implements Histogram, but is a no-op.
func (h histogram) With(metrics.Field) metrics.Histogram {
return h
}
// Observe implements Histogram. The value is converted to float64.
func (h histogram) Observe(value int64) {
h.h.RecordValue(float64(value))
}
// Distribution implements Histogram, but is a no-op.
func (h histogram) Distribution() ([]metrics.Bucket, []metrics.Quantile) {
return []metrics.Bucket{}, []metrics.Quantile{}
} | vendor/github.com/go-kit/kit/metrics/circonus/circonus.go | 0.884346 | 0.475605 | circonus.go | starcoder |
package sprite
const Font_JR_sm_A = `
XX
X X
X X
XXX
X X
X X`
const Font_JR_sm_B = `
XX
X X
X X
XX
X X
XX`
const Font_JR_sm_C = `
XX
X X
X
X
X
XX`
const Font_JR_sm_D = `
XX
X X
X X
X X
X X
XX`
const Font_JR_sm_E = `
XXX
X
X
XX
X
XXX`
const Font_JR_sm_F = `
XXX
X
X
XX
X
X`
const Font_JR_sm_G = `
XX
X X
X
X X
X X
XXX`
const Font_JR_sm_H = `
X X
X X
X X
XXX
X X
X X`
const Font_JR_sm_I = `
XXX
X
X
X
X
XXX`
const Font_JR_sm_J = `
XXX
X
X
X
X
X
XX`
const Font_JR_sm_K = `
X X
X X
X X
XX
X X
X X`
const Font_JR_sm_L = `
X
X
X
X
X
XXX`
const Font_JR_sm_M = `
X X
XXX
XXX
X X
X X
X X`
const Font_JR_sm_N = `
XX
X X
X X
X X
X X
X X`
const Font_JR_sm_O = `
XX
X X
X X
X X
X X
XX`
const Font_JR_sm_P = `
XX
X X
X X
XX
X
X`
const Font_JR_sm_Q = `
XX
X X
X X
X X
X X
XX
X`
const Font_JR_sm_R = `
XX
X X
X X
XX
X X
X X`
const Font_JR_sm_S = `
X
X X
X
XXX
X
XX`
const Font_JR_sm_T = `
XXX
X
X
X
X
X`
const Font_JR_sm_U = `
X X
X X
X X
X X
X X
XX`
const Font_JR_sm_V = `
X X
X X
X X
X X
XX
X`
const Font_JR_sm_W = `
X X
X X
X X
XXX
XXX
X X`
const Font_JR_sm_X = `
X X
X X
X X
X
X X
X X`
const Font_JR_sm_Y = `
X X
X X
X X
X
X
X`
const Font_JR_sm_Z = `
XXX
X
X
X
X
XXX`
const Font_JR_sm_a = `
XX
X
XX
X X
XX`
const Font_JR_sm_b = `
X
XX
X X
X X
X X
XXX`
const Font_JR_sm_c = `
XX
X X
X
X
XX`
const Font_JR_sm_d = `
X
XX
X X
X X
X X
XXX`
const Font_JR_sm_e = `
XX
X X
XXX
X
XX`
const Font_JR_sm_f = `
X
X
X
XXX
X
X`
const Font_JR_sm_g = `
XX
X X
X X
XX
X
XX`
const Font_JR_sm_h = `
X
XX
X X
X X
X X
X X`
const Font_JR_sm_i = `
X
XX
X
X
XXX`
const Font_JR_sm_j = `
X
XXX
X
X
X
XX`
const Font_JR_sm_k = `
X
X X
X X
XX
X X
X X`
const Font_JR_sm_l = `
XX
X
X
X
X
X`
const Font_JR_sm_m = `
X X
XXX
XXX
X X
X X`
const Font_JR_sm_n = `
XX
X X
X X
X X
X X`
const Font_JR_sm_o = `
XX
X X
X X
X X
XX`
const Font_JR_sm_p = `
XX
X X
X X
X X
XX
X`
const Font_JR_sm_q = `
XX
X X
X X
X X
XX
X`
const Font_JR_sm_r = `
XX
X X
X
X
X`
const Font_JR_sm_s = `
XX
X
XXX
X
XX`
const Font_JR_sm_t = `
X
XXX
X
X
X
X`
const Font_JR_sm_u = `
X X
X X
X X
X X
XX`
const Font_JR_sm_v = `
X X
X X
X X
XX
X`
const Font_JR_sm_w = `
X X
X X
XXX
XXX
X X`
const Font_JR_sm_x = `
X X
X X
X
X X
X X`
const Font_JR_sm_y = `
X X
X X
X X
XX
X
XX`
const Font_JR_sm_z = `
XXX
X
X
X
XXX`
const Font_JR_sm_0 = `
XX
X X
X X
X X
X X
XX`
const Font_JR_sm_1 = `
X
X
XX
X
X
XXX`
const Font_JR_sm_2 = `
XX
X X
X
X
X
XXX`
const Font_JR_sm_3 = `
XX
X X
X
X
X
XXX`
const Font_JR_sm_4 = `
X
X X
X X
XXX
X
X`
const Font_JR_sm_5 = `
XXX
X
X
XXX
X
XX`
const Font_JR_sm_6 = `
XX
X X
X
XXX
X X
XX`
const Font_JR_sm_7 = `
XXX
X
X
X
X
X`
const Font_JR_sm_8 = `
XX
X X
X X
X
X X
XX`
const Font_JR_sm_9 = `
XX
X X
X X
XX
X
XX`
const Font_JR_sm_period = `
XX
XX`
const Font_JR_sm_comma = `
XX
XX
X`
const Font_JR_sm_semicolon = `
XX
XX
XX
XX
X`
const Font_JR_sm_colon = `
XX
XX
XX
XX`
const Font_JR_sm_minus = `
XXX`
const Font_JR_sm_plus = `
X
X
XXX
X
X`
const Font_JR_sm_times = `
X X
X
XXX
X
X X`
const Font_JR_sm_slash = `
X
X
X
X
X
X`
const Font_JR_sm_percent = `
X X
X
X
X
X
X X`
const Font_JR_sm_lt = `
X
X
X
X
X`
const Font_JR_sm_gt = `
X
X
X
X
X`
const Font_JR_sm_exclamation = `
XX
XX
XX
X
X`
const Font_JR_sm_question = `
XX
X X
X
X
X`
const Font_JR_sm_down = `
X X
X`
const Font_JR_sm_up = `
X
X X`
const Font_JR_sm_l_bracket = `
XX
X
X
X
X
XX`
const Font_JR_sm_r_bracket = `
XX
X
X
X
X
XX`
const Font_JR_sm_l_paren = `
X
X
X
X
X
X`
const Font_JR_sm_r_paren = `
X
X
X
X
X
X`
const Font_JR_sm_l_brace = `
XX
X
X
X
X
XX`
const Font_JR_sm_r_brace = `
XX
X
X
X
X
XX`
const Font_JR_sm_sharp = `
X X
XXX
X X
XXX
X X`
const Font_JR_sm_amp = `
X
X X
X
X X
X
XX`
const Font_JR_sm_equals = `
XXX
XXX`
const Font_JR_sm_double_quot = `
X X
X X`
const Font_JR_sm_quot = `
X
X`
const Font_JR_sm_at = `
X
X X
XXX
XXX
X
XX`
const Font_JR_sm_pipe = `X
X
X
X
X
X
X
X`
const Font_JR_sm_b_slash = `
X
X
X
X
X
X`
const Font_JR_sm_eszett = `
X
X X
XX
X X
X X
XXX
X`
const Font_JR_sm_star = `
X X
XXX
XXX
X X`
const Font_JR_sm_underscore = `
XXX`
const Font_JR_sm_tilde = `
XX
X X`
const Font_JR_sm_dollars = `
X
XXX
XX
X
XXX
X`
// NewJRFont provides a font based upon <NAME>'s RPG Tileset
func NewJRSMFont() *Font {
m := map[rune]string{
'A': Font_JR_sm_A,
'B': Font_JR_sm_B,
'C': Font_JR_sm_C,
'D': Font_JR_sm_D,
'E': Font_JR_sm_E,
'F': Font_JR_sm_F,
'G': Font_JR_sm_G,
'H': Font_JR_sm_H,
'I': Font_JR_sm_I,
'J': Font_JR_sm_J,
'K': Font_JR_sm_K,
'L': Font_JR_sm_L,
'M': Font_JR_sm_M,
'N': Font_JR_sm_N,
'O': Font_JR_sm_O,
'P': Font_JR_sm_P,
'Q': Font_JR_sm_Q,
'R': Font_JR_sm_R,
'S': Font_JR_sm_S,
'T': Font_JR_sm_T,
'U': Font_JR_sm_U,
'V': Font_JR_sm_V,
'W': Font_JR_sm_W,
'X': Font_JR_sm_X,
'Y': Font_JR_sm_Y,
'Z': Font_JR_sm_Z,
'a': Font_JR_sm_a,
'b': Font_JR_sm_b,
'c': Font_JR_sm_c,
'd': Font_JR_sm_d,
'e': Font_JR_sm_e,
'f': Font_JR_sm_f,
'g': Font_JR_sm_g,
'h': Font_JR_sm_h,
'i': Font_JR_sm_i,
'j': Font_JR_sm_j,
'k': Font_JR_sm_k,
'l': Font_JR_sm_l,
'm': Font_JR_sm_m,
'n': Font_JR_sm_n,
'o': Font_JR_sm_o,
'p': Font_JR_sm_p,
'q': Font_JR_sm_q,
'r': Font_JR_sm_r,
's': Font_JR_sm_s,
't': Font_JR_sm_t,
'u': Font_JR_sm_u,
'v': Font_JR_sm_v,
'w': Font_JR_sm_w,
'x': Font_JR_sm_x,
'y': Font_JR_sm_y,
'z': Font_JR_sm_z,
'0': Font_JR_sm_0,
'1': Font_JR_sm_1,
'2': Font_JR_sm_2,
'3': Font_JR_sm_3,
'4': Font_JR_sm_4,
'5': Font_JR_sm_5,
'6': Font_JR_sm_6,
'7': Font_JR_sm_7,
'8': Font_JR_sm_8,
'9': Font_JR_sm_9,
'.': Font_JR_sm_period,
',': Font_JR_sm_comma,
';': Font_JR_sm_semicolon,
':': Font_JR_sm_colon,
'-': Font_JR_sm_minus,
'+': Font_JR_sm_plus,
'*': Font_JR_sm_times,
'/': Font_JR_sm_slash,
'%': Font_JR_sm_percent,
'<': Font_JR_sm_lt,
'>': Font_JR_sm_gt,
'!': Font_JR_sm_exclamation,
'?': Font_JR_sm_question,
'∨': Font_JR_sm_down, // unicode U+2228
'^': Font_JR_sm_up,
'[': Font_JR_sm_l_bracket,
']': Font_JR_sm_r_bracket,
'(': Font_JR_sm_l_paren,
')': Font_JR_sm_r_paren,
'{': Font_JR_sm_l_brace,
'}': Font_JR_sm_r_brace,
'#': Font_JR_sm_sharp,
'&': Font_JR_sm_amp,
'=': Font_JR_sm_equals,
'"': Font_JR_sm_double_quot,
'\'': Font_JR_sm_quot,
'@': Font_JR_sm_at,
'|': Font_JR_sm_pipe,
'\\': Font_JR_sm_b_slash,
'ß': Font_JR_sm_eszett,
'☆': Font_JR_sm_star,
'_': Font_JR_sm_underscore,
'~': Font_JR_sm_tilde,
'$': Font_JR_sm_dollars,
}
return NewFont(m, 4, 8)
} | font_jr_sm.go | 0.699152 | 0.441553 | font_jr_sm.go | starcoder |
package indexfile
import (
"flag"
"github.com/brimdata/zed/cmd/zed/dev"
"github.com/brimdata/zed/cmd/zed/root"
"github.com/brimdata/zed/pkg/charm"
)
var Cmd = &charm.Spec{
Name: "indexfile",
Usage: "indexfile <command> [options] [arguments...]",
Short: "create and search Zed indexes",
Long: `
"zed dev indexfile" is command-line utility for creating and manipulating Zed indexes.
A Zed index is a sectioned ZNG file organized around one or more search keys.
The values in the first section are Zed records sorted by the search keys
in ascending or descending order.
These values are further organized as a sequence of seekable chunks,
as support by ZNG end-of-stream indicators.
The first section is followed by one or more additional sections comprising
the hierarchy of a constant B-tree whose order is derived from the sort key(s)
specified. The bottom-level B-tree records point at the seekable ZNG chunks
of ZNG data according to the sort key.
A Zed trailer stores the sizes of all the sections, the sort keys, and the sort order.
Since a Zed index is just a ZNG file, its contents can be easily examined
with "zq" or with the "section" and "trailer" sub-commands of "zed dev dig".
The "zed indexfile create" command generates Zed indexes from input data.
The "zed indexfile lookup" command uses a Zed index to locate a given value
of the keyed field using the B-tree. This command is useful for test and debug
rather than production workflows. In production, Zed indexes are typically
used programmatically within a larger system, e.g., to index the data objects
of a large-scale data store like a Zed lake.
In this design, each index lookup is not itself particular performant
due to the round-trips required to traverse the B-tree,
but a large number of parallel index lookups hitting cached portions of
a large index (composed of many individual Zed indexes) performs quite well in practice.
Note that any type of Zed data can be in the index: e.g., the target
data to search, the values of an indexed field where the data is stored
elsewhere, pre-computed partial aggregations indexed by group-by keys,
and so forth.
Note also that the values comprising the keyed fields may be any Zed type and
need not be specified ahead of time. Since the space of all Zed values has
a total order, an index of mixed types has a well-defined order and searches
work without issue across fields of heterogeneous types.
Finally, the input values are assumed to be records which are accesssed to
determine their key value. If any inputs values are not records, an error
is returned. (This does not mean that non-record values cannot be indexed;
rather, the use of indexes must use records to represent the searchable
entities.)
`,
New: New,
}
func init() {
dev.Cmd.Add(Cmd)
}
type Command struct {
*root.Command
}
func New(parent charm.Command, f *flag.FlagSet) (charm.Command, error) {
return &Command{Command: parent.(*root.Command)}, nil
}
func (c *Command) Run(args []string) error {
_, cleanup, err := c.Init()
if err != nil {
return err
}
defer cleanup()
if len(args) == 0 {
return charm.NeedHelp
}
return charm.ErrNoRun
} | cmd/zed/dev/indexfile/command.go | 0.562898 | 0.516108 | command.go | starcoder |
package h28
// Row of data table.
type Row struct {
ID string
Description string
Comment string
}
// Table of data.
type Table struct {
ID string
Name string
Row []Row
}
// TableLookup provides valid values for field types.
var TableLookup = map[string]Table{
`0001`: {ID: `0001`, Name: `Administrative Sex`, Row: []Row{
{ID: `A`, Description: `Ambiguous`},
{ID: `F`, Description: `Female`},
{ID: `M`, Description: `Male`},
{ID: `N`, Description: `Not applicable`},
{ID: `O`, Description: `Other`},
{ID: `U`, Description: `Unknown`}}},
`0002`: {ID: `0002`, Name: `Marital Status`, Row: []Row{
{ID: `A`, Description: `Separated`},
{ID: `B`, Description: `Unmarried`},
{ID: `C`, Description: `Common law`},
{ID: `D`, Description: `Divorced`},
{ID: `E`, Description: `Legally Separated`},
{ID: `G`, Description: `Living together`},
{ID: `I`, Description: `Interlocutory`},
{ID: `M`, Description: `Married`},
{ID: `N`, Description: `Annulled`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Domestic partner`},
{ID: `R`, Description: `Registered domestic partner`},
{ID: `S`, Description: `Single`},
{ID: `T`, Description: `Unreported`},
{ID: `U`, Description: `Unknown`},
{ID: `W`, Description: `Widowed`}}},
`0003`: {ID: `0003`, Name: `Event Type`, Row: []Row{
{ID: `A01`, Description: `ADT/ACK - Admit/visit notification`},
{ID: `A02`, Description: `ADT/ACK - Transfer a patient`},
{ID: `A03`, Description: `ADT/ACK - Discharge/end visit`},
{ID: `A04`, Description: `ADT/ACK - Register a patient`},
{ID: `A05`, Description: `ADT/ACK - Pre-admit a patient`},
{ID: `A06`, Description: `ADT/ACK - Change an outpatient to an inpatient`},
{ID: `A07`, Description: `ADT/ACK - Change an inpatient to an outpatient`},
{ID: `A08`, Description: `ADT/ACK - Update patient information`},
{ID: `A09`, Description: `ADT/ACK - Patient departing - tracking`},
{ID: `A10`, Description: `ADT/ACK - Patient arriving - tracking`},
{ID: `A11`, Description: `ADT/ACK - Cancel admit/visit notification`},
{ID: `A12`, Description: `ADT/ACK - Cancel transfer`},
{ID: `A13`, Description: `ADT/ACK - Cancel discharge/end visit`},
{ID: `A14`, Description: `ADT/ACK - Pending admit`},
{ID: `A15`, Description: `ADT/ACK - Pending transfer`},
{ID: `A16`, Description: `ADT/ACK - Pending discharge`},
{ID: `A17`, Description: `ADT/ACK - Swap patients`},
{ID: `A18`, Description: `ADT/ACK - Merge patient information`},
{ID: `A19`, Description: `QRY/ADR - Patient query`},
{ID: `A20`, Description: `ADT/ACK - Bed status update`},
{ID: `A21`, Description: `ADT/ACK - Patient goes on a "leave of absence"`},
{ID: `A22`, Description: `ADT/ACK - Patient returns from a "leave of absence"`},
{ID: `A23`, Description: `ADT/ACK - Delete a patient record`},
{ID: `A24`, Description: `ADT/ACK - Link patient information`},
{ID: `A25`, Description: `ADT/ACK - Cancel pending discharge`},
{ID: `A26`, Description: `ADT/ACK - Cancel pending transfer`},
{ID: `A27`, Description: `ADT/ACK - Cancel pending admit`},
{ID: `A28`, Description: `ADT/ACK - Add person information`},
{ID: `A29`, Description: `ADT/ACK - Delete person information`},
{ID: `A30`, Description: `ADT/ACK - Merge person information`},
{ID: `A31`, Description: `ADT/ACK - Update person information`},
{ID: `A32`, Description: `ADT/ACK - Cancel patient arriving - tracking`},
{ID: `A33`, Description: `ADT/ACK - Cancel patient departing - tracking`},
{ID: `A34`, Description: `ADT/ACK - Merge patient information - patient ID only`},
{ID: `A35`, Description: `ADT/ACK - Merge patient information - account number only`},
{ID: `A36`, Description: `ADT/ACK - Merge patient information - patient ID and account number`},
{ID: `A37`, Description: `ADT/ACK - Unlink patient information`},
{ID: `A38`, Description: `ADT/ACK - Cancel pre-admit`},
{ID: `A39`, Description: `ADT/ACK - Merge person - patient ID`},
{ID: `A40`, Description: `ADT/ACK - Merge patient - patient identifier list`},
{ID: `A41`, Description: `ADT/ACK - Merge account - patient account number`},
{ID: `A42`, Description: `ADT/ACK - Merge visit - visit number`},
{ID: `A43`, Description: `ADT/ACK - Move patient information - patient identifier list`},
{ID: `A44`, Description: `ADT/ACK - Move account information - patient account number`},
{ID: `A45`, Description: `ADT/ACK - Move visit information - visit number`},
{ID: `A46`, Description: `ADT/ACK - Change patient ID`},
{ID: `A47`, Description: `ADT/ACK - Change patient identifier list`},
{ID: `A48`, Description: `ADT/ACK - Change alternate patient ID`},
{ID: `A49`, Description: `ADT/ACK - Change patient account number`},
{ID: `A50`, Description: `ADT/ACK - Change visit number`},
{ID: `A51`, Description: `ADT/ACK - Change alternate visit ID`},
{ID: `A52`, Description: `ADT/ACK - Cancel leave of absence for a patient`},
{ID: `A53`, Description: `ADT/ACK - Cancel patient returns from a leave of absence`},
{ID: `A54`, Description: `ADT/ACK - Change attending doctor`},
{ID: `A55`, Description: `ADT/ACK - Cancel change attending doctor`},
{ID: `A60`, Description: `ADT/ACK - Update allergy information`},
{ID: `A61`, Description: `ADT/ACK - Change consulting doctor`},
{ID: `A62`, Description: `ADT/ACK - Cancel change consulting doctor`},
{ID: `B01`, Description: `PMU/ACK - Add personnel record`},
{ID: `B02`, Description: `PMU/ACK - Update personnel record`},
{ID: `B03`, Description: `PMU/ACK - Delete personnel re cord`},
{ID: `B04`, Description: `PMU/ACK - Active practicing person`},
{ID: `B05`, Description: `PMU/ACK - Deactivate practicing person`},
{ID: `B06`, Description: `PMU/ACK - Terminate practicing person`},
{ID: `B07`, Description: `PMU/ACK - Grant Certificate/Permission`},
{ID: `B08`, Description: `PMU/ACK - Revoke Certificate/Permission`},
{ID: `C01`, Description: `CRM - Register a patient on a clinical trial`},
{ID: `C02`, Description: `CRM - Cancel a patient registration on clinical trial (for clerical mistakes only)`},
{ID: `C03`, Description: `CRM - Correct/update registration information`},
{ID: `C04`, Description: `CRM - Patient has gone off a clinical trial`},
{ID: `C05`, Description: `CRM - Patient enters phase of clinical trial`},
{ID: `C06`, Description: `CRM - Cancel patient entering a phase (clerical mistake)`},
{ID: `C07`, Description: `CRM - Correct/update phase information`},
{ID: `C08`, Description: `CRM - Patient has gone off phase of clinical trial`},
{ID: `C09`, Description: `CSU - Automated time intervals for reporting, like monthly`},
{ID: `C10`, Description: `CSU - Patient completes the clinical trial`},
{ID: `C11`, Description: `CSU - Patient completes a phase of the clinical trial`},
{ID: `C12`, Description: `CSU - Update/correction of patient order/result information`},
{ID: `E01`, Description: `Submit HealthCare Services Invoice`},
{ID: `E02`, Description: `Cancel HealthCare Services Invoice`},
{ID: `E03`, Description: `HealthCare Services Invoice Status`},
{ID: `E04`, Description: `Re-Assess HealthCare Services Invoice Request`},
{ID: `E10`, Description: `Edit/Adjudication Results`},
{ID: `E12`, Description: `Request Additional Information`},
{ID: `E13`, Description: `Additional Information Response`},
{ID: `E15`, Description: `Payment/Remittance Advice`},
{ID: `E20`, Description: `Submit Authorization Request`},
{ID: `E21`, Description: `Cancel Authorization Request`},
{ID: `E22`, Description: `Authorization Request Status`},
{ID: `E24`, Description: `Authorization Response`},
{ID: `E30`, Description: `Submit Health Document related to Authorization Request`},
{ID: `E31`, Description: `Cancel Health Document related to Authorization Request`},
{ID: `I01`, Description: `RQI/RPI - Request for insurance information`},
{ID: `I02`, Description: `RQI/RPL - Request/receipt of patient selection display list`},
{ID: `I03`, Description: `RQI/RPR - Request/receipt of patient selection list`},
{ID: `I04`, Description: `RQD/RPI - Request for patient demographic data`},
{ID: `I05`, Description: `RQC/RCI - Request for patient clinical information`},
{ID: `I06`, Description: `RQC/RCL - Request/receipt of clinical data listing`},
{ID: `I07`, Description: `PIN/ACK - Unsolicited insurance information`},
{ID: `I08`, Description: `RQA/RPA - Request for treatment authorization information`},
{ID: `I09`, Description: `RQA/RPA - Request for modification to an authorization`},
{ID: `I10`, Description: `RQA/RPA - Request for resubmission of an authorization`},
{ID: `I11`, Description: `RQA/RPA - Request for cancellation of an authorization`},
{ID: `I12`, Description: `REF/RRI - Patient referral`},
{ID: `I13`, Description: `REF/RRI - Modify patient referral`},
{ID: `I14`, Description: `REF/RRI - Cancel patient referral`},
{ID: `I15`, Description: `REF/RRI - Request patient referral status`},
{ID: `I16`, Description: `Collaborative Care Referral`},
{ID: `I17`, Description: `Modify Collaborative Care Referral`},
{ID: `I18`, Description: `Cancel Collaborative Care Referral`},
{ID: `I19`, Description: `Collaborative Care Query/Collaborative Care Query Update`},
{ID: `I20`, Description: `Asynchronous Collaborative Care Update`},
{ID: `I21`, Description: `Collaborative Care Message`},
{ID: `I22`, Description: `Collaborative Care Fetch / Collaborative Care Information`},
{ID: `J01`, Description: `QCN/ACK - Cancel query/acknowledge message`},
{ID: `J02`, Description: `QSX/ACK - Cancel subscription/acknowledge message`},
{ID: `K11`, Description: `RSP - Segment pattern response in response to QBP^Q11`},
{ID: `K13`, Description: `RTB - Tabular response in response to QBP^Q13`},
{ID: `K15`, Description: `RDY - Display response in response to QBP^Q15`},
{ID: `K21`, Description: `RSP - Get person demographics response`},
{ID: `K22`, Description: `RSP - Find candidates response`},
{ID: `K23`, Description: `RSP - Get corresponding identifiers response`},
{ID: `K24`, Description: `RSP - Allocate identifiers response`},
{ID: `K25`, Description: `RSP - Personnel Information by Segment Response`},
{ID: `K31`, Description: `RSP -Dispense History Response`},
{ID: `K32`, Description: `Find Candidates including Visit Information Response`},
{ID: `M01`, Description: `MFN/MFK - Master file not otherwise specified`},
{ID: `M02`, Description: `MFN/MFK - Master file - staff practitioner`},
{ID: `M03`, Description: `MFN/MFK - Master file - test/observation`},
{ID: `M04`, Description: `MFN/MFK - Master files charge description`},
{ID: `M05`, Description: `MFN/MFK - Patient location master file`},
{ID: `M06`, Description: `MFN/MFK - Clinical study with phases and schedules master file`},
{ID: `M07`, Description: `MFN/MFK - Clinical study without phases but with schedules master file`},
{ID: `M08`, Description: `MFN/MFK - Test/observation (numeric) master file`},
{ID: `M09`, Description: `MFN/MFK - Test/observation (categorical) master file`},
{ID: `M10`, Description: `MFN/MFK - Test /observation batteries master file`},
{ID: `M11`, Description: `MFN/MFK - Test/calculated observations master file`},
{ID: `M12`, Description: `MFN/MFK - Master file notification message`},
{ID: `M13`, Description: `MFN/MFK - Master file notification - general`},
{ID: `M14`, Description: `MFN/MFK - Master file notification - site defined`},
{ID: `M15`, Description: `MFN/MFK - Inventory item master file notification`},
{ID: `M16`, Description: `MFN/MFK - Master File Notification Inventory Item Enhanced`},
{ID: `M17`, Description: `DRG Master File Message`},
{ID: `N01`, Description: `NMQ/NMR - Application management query message`},
{ID: `N02`, Description: `NMD/ACK - Application management data message (unsolicited)`},
{ID: `O01`, Description: `ORM - Order message (also RDE, RDS, RGV, RAS)`},
{ID: `O02`, Description: `ORR - Order response (also RRE, RRD, RRG, RRA)`},
{ID: `O03`, Description: `OMD - Diet order`},
{ID: `O04`, Description: `ORD - Diet order acknowledgment`},
{ID: `O05`, Description: `OMS - Stock requisition order`},
{ID: `O06`, Description: `ORS - Stock requisition acknowledgment`},
{ID: `O07`, Description: `OMN - Non-stock requisition order`},
{ID: `O08`, Description: `ORN - Non-stock requisition acknowledgment`},
{ID: `O09`, Description: `OMP - Pharmacy/treatment order`},
{ID: `O10`, Description: `ORP - Pharmacy/treatment order acknowledgment`},
{ID: `O11`, Description: `RDE - Pharmacy/treatment encoded order`},
{ID: `O12`, Description: `RRE - Pharmacy/treatment encoded order acknowledgment`},
{ID: `O13`, Description: `RDS - Pharmacy/treatment dispense`},
{ID: `O14`, Description: `RRD - Pharmacy/treatment dispense acknowledgment`},
{ID: `O15`, Description: `RGV - Pharmacy/treatment give`},
{ID: `O16`, Description: `RRG - Pharmacy/treatment give acknowledgment`},
{ID: `O17`, Description: `RAS - Pharmacy/treatment administration`},
{ID: `O18`, Description: `RRA - Pharmacy/treatment administration acknowledgment`},
{ID: `O19`, Description: `OMG - General clinical order`},
{ID: `O20`, Description: `ORG/ORL - General clinical order response`},
{ID: `O21`, Description: `OML - Laboratory order`},
{ID: `O22`, Description: `ORL - General laboratory order response message to any OML`},
{ID: `O23`, Description: `OMI - Imaging order`},
{ID: `O24`, Description: `ORI - Imaging order response message to any OMI`},
{ID: `O25`, Description: `RDE - Pharmacy/treatment refill authorization request`},
{ID: `O26`, Description: `RRE - Pharmacy/Treatment Refill Authorization Acknowledgement`},
{ID: `O27`, Description: `OMB - Blood product order`},
{ID: `O28`, Description: `ORB - Blood product order acknowledgment`},
{ID: `O29`, Description: `BPS - Blood product dispense status`},
{ID: `O30`, Description: `BRP - Blood product dispense status acknowledgment`},
{ID: `O31`, Description: `BTS - Blood product transfusion/disposition`},
{ID: `O32`, Description: `BRT - Blood product transfusion/disposition acknowledgment`},
{ID: `O33`, Description: `OML - Laboratory order for multiple orders related to a single specimen`},
{ID: `O34`, Description: `ORL - Laboratory order response message to a multiple order related to single specimen OML`},
{ID: `O35`, Description: `OML - Laboratory order for multiple orders related to a single container of a specimen`},
{ID: `O36`, Description: `ORL - Laboratory order response message to a single container of a specimen OML`},
{ID: `O37`, Description: `OPL - Population/Location-Based Laboratory Order Message`},
{ID: `O38`, Description: `OPR - Population/Location-Based Laboratory Order Acknowledgment Message`},
{ID: `O39`, Description: `Specimen shipment centric laboratory order`},
{ID: `O40`, Description: `Specimen Shipment Centric Laboratory Order Acknowledgment Message`},
{ID: `P01`, Description: `BAR/ACK - Add patient accounts`},
{ID: `P02`, Description: `BAR/ACK - Purge patient accounts`},
{ID: `P03`, Description: `DFT/ACK - Post detail financial transaction`},
{ID: `P04`, Description: `QRY/DSP - Generate bill and A/R statements`},
{ID: `P05`, Description: `BAR/ACK - Update account`},
{ID: `P06`, Description: `BAR/ACK - End account`},
{ID: `P07`, Description: `PEX - Unsolicited initial individual product experience report`},
{ID: `P08`, Description: `PEX - Unsolicited update individual product experience report`},
{ID: `P09`, Description: `SUR - Summary product experience report`},
{ID: `P10`, Description: `BAR/ACK -Transmit Ambulatory Payment Classification(APC)`},
{ID: `P11`, Description: `DFT/ACK - Post Detail Financial Transactions - New`},
{ID: `P12`, Description: `BAR/ACK - Update Diagnosis/Procedure`},
{ID: `PC1`, Description: `PPR - PC/ problem add`},
{ID: `PC2`, Description: `PPR - PC/ problem update`},
{ID: `PC3`, Description: `PPR - PC/ problem delete`},
{ID: `PC4`, Description: `QRY - PC/ problem query`},
{ID: `PC5`, Description: `PRR - PC/ problem response`},
{ID: `PC6`, Description: `PGL - PC/ goal add`},
{ID: `PC7`, Description: `PGL - PC/ goal update`},
{ID: `PC8`, Description: `PGL - PC/ goal delete`},
{ID: `PC9`, Description: `QRY - PC/ goal query`},
{ID: `PCA`, Description: `PPV - PC/ goal response`},
{ID: `PCB`, Description: `PPP - PC/ pathway (problem-oriented) add`},
{ID: `PCC`, Description: `PPP - PC/ pathway (problem-oriented) update`},
{ID: `PCD`, Description: `PPP - PC/ pathway (problem-oriented) delete`},
{ID: `PCE`, Description: `QRY - PC/ pathway (problem-oriented) query`},
{ID: `PCF`, Description: `PTR - PC/ pathway (problem-oriented) query response`},
{ID: `PCG`, Description: `PPG - PC/ pathway (goal-oriented) add`},
{ID: `PCH`, Description: `PPG - PC/ pathway (goal-oriented) update`},
{ID: `PCJ`, Description: `PPG - PC/ pathway (goal-oriented) delete`},
{ID: `PCK`, Description: `QRY - PC/ pathway (goal-oriented) query`},
{ID: `PCL`, Description: `PPT - PC/ pathway (goal-oriented) query response`},
{ID: `Q01`, Description: `QRY/DSR - Query sent for immediate response`},
{ID: `Q02`, Description: `QRY/QCK - Query sent for deferred response`},
{ID: `Q03`, Description: `DSR/ACK - Deferred response to a query`},
{ID: `Q05`, Description: `UDM/ACK - Unsolicited display update message`},
{ID: `Q06`, Description: `OSQ/OSR - Query for order status`},
{ID: `Q11`, Description: `QBP - Query by parameter requesting an RSP segment pattern response`},
{ID: `Q13`, Description: `QBP - Query by parameter requesting an RTB - tabular response`},
{ID: `Q15`, Description: `QBP - Query by parameter requesting an RDY display response`},
{ID: `Q16`, Description: `QSB - Create subscription`},
{ID: `Q17`, Description: `QVR - Query for previous events`},
{ID: `Q21`, Description: `QBP - Get person demographics`},
{ID: `Q22`, Description: `QBP - Find candidates`},
{ID: `Q23`, Description: `QBP - Get corresponding identifiers`},
{ID: `Q24`, Description: `QBP - Allocate identifiers`},
{ID: `Q25`, Description: `QBP - Personnel Information by Segment Query`},
{ID: `Q26`, Description: `ROR - Pharmacy/treatment order response`},
{ID: `Q27`, Description: `RAR - Pharmacy/treatment administration information`},
{ID: `Q28`, Description: `RDR - Pharmacy/treatment dispense information`},
{ID: `Q29`, Description: `RER - Pharmacy/treatment encoded order information`},
{ID: `Q30`, Description: `RGR - Pharmacy/treatment dose information`},
{ID: `Q31`, Description: `QBP Query Dispense history`},
{ID: `Q32`, Description: `Find Candidates including Visit Information`},
{ID: `R01`, Description: `ORU/ACK - Unsolicited transmission of an observation message`},
{ID: `R02`, Description: `QRY - Query for results of observation`},
{ID: `R04`, Description: `ORF - Response to query; transmission of requested observation`},
{ID: `R21`, Description: `OUL - Unsolicited laboratory observation`},
{ID: `R22`, Description: `OUL - Unsolicited Specimen Oriented Observation Message`},
{ID: `R23`, Description: `OUL - Unsolicited Specimen Container Oriented Observation Message`},
{ID: `R24`, Description: `OUL - Unsolicited Order Oriented Observation Message`},
{ID: `R25`, Description: `OPU - Unsolicited Population/Location-Based Laboratory Observation Message`},
{ID: `R26`, Description: `OSM - Unsolicited Specimen Shipment Manifest Message`},
{ID: `R30`, Description: `ORU - Unsolicited Point-Of-Care Observation Message Without Existing Order - Place An Order`},
{ID: `R31`, Description: `ORU - Unsolicited New Point-Of-Care Observation Message - Search For An Order`},
{ID: `R32`, Description: `ORU - Unsolicited Pre-Ordered Point-Of-Care Observation`},
{ID: `R33`, Description: `ORA - Observation Report Acknowledgement`},
{ID: `ROR`, Description: `ROR - Pharmacy prescription order query response`},
{ID: `S01`, Description: `SRM/SRR - Request new appointment booking`},
{ID: `S02`, Description: `SRM/SRR - Request appointment rescheduling`},
{ID: `S03`, Description: `SRM/SRR - Request appointment modification`},
{ID: `S04`, Description: `SRM/SRR - Request appointment cancellation`},
{ID: `S05`, Description: `SRM/SRR - Request appointment discontinuation`},
{ID: `S06`, Description: `SRM/SRR - Request appointment deletion`},
{ID: `S07`, Description: `SRM/SRR - Request addition of service/resource on appointment`},
{ID: `S08`, Description: `SRM/SRR - Request modification of service/resource on appointment`},
{ID: `S09`, Description: `SRM/SRR - Request cancellation of service/resource on appointment`},
{ID: `S10`, Description: `SRM/SRR - Request discontinuation of service/resource on appointment`},
{ID: `S11`, Description: `SRM/SRR - Request deletion of service/resource on appointment`},
{ID: `S12`, Description: `SIU/ACK - Notification of new appointment booking`},
{ID: `S13`, Description: `SIU/ACK - Notification of appointment rescheduling`},
{ID: `S14`, Description: `SIU/ACK - Notification of appointment modification`},
{ID: `S15`, Description: `SIU/ACK - Notification of appointment cancellation`},
{ID: `S16`, Description: `SIU/ACK - Notification of appointment discontinuation`},
{ID: `S17`, Description: `SIU/ACK - Notification of appointment deletion`},
{ID: `S18`, Description: `SIU/ACK - Notification of addition of service/resource on appointment`},
{ID: `S19`, Description: `SIU/ACK - Notification of modification of service/resource on appointment`},
{ID: `S20`, Description: `SIU/ACK - Notification of cancellation of service/resource on appointment`},
{ID: `S21`, Description: `SIU/ACK - Notification of discontinuation of service/resource on appointment`},
{ID: `S22`, Description: `SIU/ACK - Notification of deletion of service/resource on appointment`},
{ID: `S23`, Description: `SIU/ACK - Notification of blocked schedule time slot(s)`},
{ID: `S24`, Description: `SIU/ACK - Notification of opened ("unblocked") schedule time slot(s)`},
{ID: `S25`, Description: `SQM/SQR - Schedule query message and response`},
{ID: `S26`, Description: `SIU/ACK Notification that patient did not show up for schedule appointment`},
{ID: `S27`, Description: `SIU/ACK - Broadcast Notification of Scheduled Appointments`},
{ID: `S28`, Description: `SLR/SLS - Request new sterilization lot`},
{ID: `S29`, Description: `SLR/SLS - Request Sterilization lot deletion`},
{ID: `S30`, Description: `STI/STS - Request item`},
{ID: `S31`, Description: `SDR/SDS - Request anti-microbial device data`},
{ID: `S32`, Description: `SMD/SMS - Request anti-microbial device cycle data`},
{ID: `S33`, Description: `STC/ACK - Notification of sterilization configuration`},
{ID: `S34`, Description: `SLN/ACK - Notification of sterilization lot`},
{ID: `S35`, Description: `SLN/ACK - Notification of sterilization lot deletion`},
{ID: `S36`, Description: `SDN/ACK - Notification of anti-microbial device data`},
{ID: `S37`, Description: `SCN/ACK - Notification of anti-microbial device cycle data`},
{ID: `T01`, Description: `MDM/ACK - Original document notification`},
{ID: `T02`, Description: `MDM/ACK - Original document notification and content`},
{ID: `T03`, Description: `MDM/ACK - Document status change notification`},
{ID: `T04`, Description: `MDM/ACK - Document status change notification and content`},
{ID: `T05`, Description: `MDM/ACK - Document addendum notification`},
{ID: `T06`, Description: `MDM/ACK - Document addendum notification and content`},
{ID: `T07`, Description: `MDM/ACK - Document edit notification`},
{ID: `T08`, Description: `MDM/ACK - Document edit notification and content`},
{ID: `T09`, Description: `MDM/ACK - Document replacement notification`},
{ID: `T10`, Description: `MDM/ACK - Document replacement notification and content`},
{ID: `T11`, Description: `MDM/ACK - Document cancel notification`},
{ID: `T12`, Description: `QRY/DOC - Document query`},
{ID: `U01`, Description: `ESU/ACK - Automated equipment status update`},
{ID: `U02`, Description: `ESR/ACK - Automated equipment status request`},
{ID: `U03`, Description: `SSU/ACK - Specimen status update`},
{ID: `U04`, Description: `SSR/ACK - specimen status request`},
{ID: `U05`, Description: `INU/ACK - Automated equipment inventory update`},
{ID: `U06`, Description: `INR/ACK - Automated equipment inventory request`},
{ID: `U07`, Description: `EAC/ACK - Automated equipment command`},
{ID: `U08`, Description: `EAR/ACK - Automated equipment response`},
{ID: `U09`, Description: `EAN/ACK - Automated equipment notification`},
{ID: `U10`, Description: `TCU/ACK - Automated equipment test code settings update`},
{ID: `U11`, Description: `TCR/ACK - Automated equipment test code settings request`},
{ID: `U12`, Description: `LSU/ACK - Automated equipment log/service update`},
{ID: `U13`, Description: `LSR/ACK - Automated equipment log/service request`},
{ID: `V01`, Description: `VXQ - Query for vaccination record`},
{ID: `V02`, Description: `VXX - Response to vaccination query returning multiple PID matches`},
{ID: `V03`, Description: `VXR - Vaccination record response`},
{ID: `V04`, Description: `VXU - Unsolicited vaccination record update`},
{ID: `W01`, Description: `ORU - Waveform result, unsolicited transmission of requested information`},
{ID: `W02`, Description: `QRF - Waveform result, response to query`},
{ID: `Z73`},
{ID: `Z74`},
{ID: `Z75`},
{ID: `Z76`},
{ID: `Z77`},
{ID: `Z78`},
{ID: `Z79`},
{ID: `Z80`},
{ID: `Z81`},
{ID: `Z82`},
{ID: `Z83`},
{ID: `Z84`},
{ID: `Z85`},
{ID: `Z86`},
{ID: `Z87`},
{ID: `Z88`},
{ID: `Z89`},
{ID: `Z90`},
{ID: `Z91`},
{ID: `Z92`},
{ID: `Z93`},
{ID: `Z94`},
{ID: `Z95`},
{ID: `Z96`},
{ID: `Z97`},
{ID: `Z98`},
{ID: `Z99`}}},
`0004`: {ID: `0004`, Name: `Patient Class`, Row: []Row{
{ID: `B`, Description: `Obstetrics`},
{ID: `C`, Description: `Commercial Account`},
{ID: `E`, Description: `Emergency`},
{ID: `I`, Description: `Inpatient`},
{ID: `N`, Description: `Not Applicable`},
{ID: `O`, Description: `Outpatient`},
{ID: `P`, Description: `Preadmit`},
{ID: `R`, Description: `Recurring patient`},
{ID: `U`, Description: `Unknown`}}},
`0005`: {ID: `0005`, Name: `Race`, Row: []Row{
{ID: `1002-5`, Description: `American Indian or Alaska Native`},
{ID: `2028-9`, Description: `Asian`},
{ID: `2054-5`, Description: `Black or African American`},
{ID: `2076-8`, Description: `Native Hawaiian or Other Pacific Islander`},
{ID: `2106-3`, Description: `White`},
{ID: `2131-1`, Description: `Other Race`}}},
`0006`: {ID: `0006`, Name: `Religion`, Row: []Row{
{ID: `ABC`, Description: `Christian: American Baptist Church`},
{ID: `AGN`, Description: `Agnostic`},
{ID: `AME`, Description: `Christian: African Methodist Episcopal Zion`},
{ID: `AMT`, Description: `Christian: African Methodist Episcopal`},
{ID: `ANG`, Description: `Christian: Anglican`},
{ID: `AOG`, Description: `Christian: Assembly of God`},
{ID: `ATH`, Description: `Atheist`},
{ID: `BAH`, Description: `Baha'i`},
{ID: `BAP`, Description: `Christian: Baptist`},
{ID: `BMA`, Description: `Buddhist: Mahayana`},
{ID: `BOT`, Description: `Buddhist: Other`},
{ID: `BRE`, Description: `Brethren`},
{ID: `BTA`, Description: `Buddhist: Tantrayana`},
{ID: `BTH`, Description: `Buddhist: Theravada`},
{ID: `BUD`, Description: `Buddhist`},
{ID: `CAT`, Description: `Christian: Roman Catholic`},
{ID: `CFR`, Description: `Chinese Folk Religionist`},
{ID: `CHR`, Description: `Christian`},
{ID: `CHS`, Description: `Christian: Christian Science`},
{ID: `CMA`, Description: `Christian: Christian Missionary Alliance`},
{ID: `CNF`, Description: `Confucian`},
{ID: `COC`, Description: `Christian: Church of Christ`},
{ID: `COG`, Description: `Christian: Church of God`},
{ID: `COI`, Description: `Christian: Church of God in Christ`},
{ID: `COL`, Description: `Christian: Congregational`},
{ID: `COM`, Description: `Christian: Community`},
{ID: `COP`, Description: `Christian: Other Pentecostal`},
{ID: `COT`, Description: `Christian: Other`},
{ID: `CRR`, Description: `Christian: Christian Reformed`},
{ID: `DOC`, Description: `Disciples of Christ`},
{ID: `EOT`, Description: `Christian: Eastern Orthodox`},
{ID: `EPI`, Description: `Christian: Episcopalian`},
{ID: `ERL`, Description: `Ethnic Religionist`},
{ID: `EVC`, Description: `Christian: Evangelical Church`},
{ID: `FRQ`, Description: `Christian: Friends`},
{ID: `FUL`, Description: `Christian: Full Gospel`},
{ID: `FWB`, Description: `Christian: Free Will Baptist`},
{ID: `GRE`, Description: `Christian: Greek Orthodox`},
{ID: `HIN`, Description: `Hindu`},
{ID: `HOT`, Description: `Hindu: Other`},
{ID: `HSH`, Description: `Hindu: Shaivites`},
{ID: `HVA`, Description: `Hindu: Vaishnavites`},
{ID: `JAI`, Description: `Jain`},
{ID: `JCO`, Description: `Jewish: Conservative`},
{ID: `JEW`, Description: `Jewish`},
{ID: `JOR`, Description: `Jewish: Orthodox`},
{ID: `JOT`, Description: `Jewish: Other`},
{ID: `JRC`, Description: `Jewish: Reconstructionist`},
{ID: `JRF`, Description: `Jewish: Reform`},
{ID: `JRN`, Description: `Jewish: Renewal`},
{ID: `JWN`, Description: `Christian: Jehovah's Witness`},
{ID: `LMS`, Description: `Christian: Lutheran Missouri Synod`},
{ID: `LUT`, Description: `Christian: Lutheran`},
{ID: `MEN`, Description: `Christian: Mennonite`},
{ID: `MET`, Description: `Christian: Methodist`},
{ID: `MOM`, Description: `Christian: Latter-day Saints`},
{ID: `MOS`, Description: `Muslim`},
{ID: `MOT`, Description: `Muslim: Other`},
{ID: `MSH`, Description: `Muslim: Shiite`},
{ID: `MSU`, Description: `Muslim: Sunni`},
{ID: `NAM`, Description: `Native American`},
{ID: `NAZ`, Description: `Christian: Church of the Nazarene`},
{ID: `NOE`, Description: `Nonreligious`},
{ID: `NRL`, Description: `New Religionist`},
{ID: `ORT`, Description: `Christian: Orthodox`},
{ID: `OTH`, Description: `Other`},
{ID: `PEN`, Description: `Christian: Pentecostal`},
{ID: `PRC`, Description: `Christian: Other Protestant`},
{ID: `PRE`, Description: `Christian: Presbyterian`},
{ID: `PRO`, Description: `Christian: Protestant`},
{ID: `REC`, Description: `Christian: Reformed Church`},
{ID: `REO`, Description: `Christian: Reorganized Church of Jesus Christ-LDS`},
{ID: `SAA`, Description: `Christian: Salvation Army`},
{ID: `SEV`, Description: `Christian: Seventh Day Adventist`},
{ID: `SHN`, Description: `Shintoist`},
{ID: `SIK`, Description: `Sikh`},
{ID: `SOU`, Description: `Christian: Southern Baptist`},
{ID: `SPI`, Description: `Spiritist`},
{ID: `UCC`, Description: `Christian: United Church of Christ`},
{ID: `UMD`, Description: `Christian: United Methodist`},
{ID: `UNI`, Description: `Christian: Unitarian`},
{ID: `UNU`, Description: `Christian: Unitarian Universalist`},
{ID: `VAR`, Description: `Unknown`},
{ID: `WES`, Description: `Christian: Wesleyan`},
{ID: `WMC`, Description: `Christian: Wesleyan Methodist`}}},
`0007`: {ID: `0007`, Name: `Admission Type`, Row: []Row{
{ID: `A`, Description: `Accident`},
{ID: `C`, Description: `Elective`},
{ID: `E`, Description: `Emergency`},
{ID: `L`, Description: `Labor and Delivery`},
{ID: `N`, Description: `Newborn (Birth in healthcare facility)`},
{ID: `R`, Description: `Routine`},
{ID: `U`, Description: `Urgent`}}},
`0008`: {ID: `0008`, Name: `Acknowledgment Code`, Row: []Row{
{ID: `AA`, Description: `Original mode: Application Accept - Enhanced mode: Application acknowledgment: Accept`},
{ID: `AE`, Description: `Original mode: Application Error - Enhanced mode: Application acknowledgment: Error`},
{ID: `AR`, Description: `Original mode: Application Reject - Enhanced mode: Application acknowledgment: Reject`},
{ID: `CA`, Description: `Enhanced mode: Accept acknowledgment: Commit Accept`},
{ID: `CE`, Description: `Enhanced mode: Accept acknowledgment: Commit Error`},
{ID: `CR`, Description: `Enhanced mode: Accept acknowledgment: Commit Reject`}}},
`0009`: {ID: `0009`, Name: `Ambulatory Status`, Row: []Row{
{ID: `A0`, Description: `No functional limitations`},
{ID: `A1`, Description: `Ambulates with assistive device`},
{ID: `A2`, Description: `Wheelchair/stretcher bound`},
{ID: `A3`, Description: `Comatose; non-responsive`},
{ID: `A4`, Description: `Disoriented`},
{ID: `A5`, Description: `Vision impaired`},
{ID: `A6`, Description: `Hearing impaired`},
{ID: `A7`, Description: `Speech impaired`},
{ID: `A8`, Description: `Non-English speaking`},
{ID: `A9`, Description: `Functional level unknown`},
{ID: `B1`, Description: `Oxygen therapy`},
{ID: `B2`, Description: `Special equipment (tubes, IVs, catheters)`},
{ID: `B3`, Description: `Amputee`},
{ID: `B4`, Description: `Mastectomy`},
{ID: `B5`, Description: `Paraplegic`},
{ID: `B6`, Description: `Pregnant`}}},
`0010`: {ID: `0010`, Name: `Physician ID`, Row: []Row{}},
`0017`: {ID: `0017`, Name: `Transaction Type`, Row: []Row{
{ID: `AJ`, Description: `Adjustment`},
{ID: `CD`, Description: `Credit`},
{ID: `CG`, Description: `Charge`},
{ID: `CO`, Description: `Co-payment`},
{ID: `PY`, Description: `Payment`}}},
`0018`: {ID: `0018`, Name: `Patient Type`, Row: []Row{}},
`0019`: {ID: `0019`, Name: `Anesthesia Code`, Row: []Row{}},
`0021`: {ID: `0021`, Name: `Bad Debt Agency Code`, Row: []Row{}},
`0022`: {ID: `0022`, Name: `Billing Status`, Row: []Row{}},
`0023`: {ID: `0023`, Name: `Admit Source`, Row: []Row{}},
`0024`: {ID: `0024`, Name: `Fee Schedule`, Row: []Row{}},
`0027`: {ID: `0027`, Name: `Priority`, Row: []Row{
{ID: `A`, Description: `As soon as possible (a priority lower than stat)`},
{ID: `P`, Description: `Preoperative (to be done prior to surgery)`},
{ID: `R`, Description: `Routine`},
{ID: `S`, Description: `Stat (do immediately)`},
{ID: `T`, Description: `Timing critical (do as near as possible to requested time)`}}},
`0032`: {ID: `0032`, Name: `Charge/Price Indicator`, Row: []Row{}},
`0038`: {ID: `0038`, Name: `Order status`, Row: []Row{
{ID: `A`, Description: `Some, but not all, results available`},
{ID: `CA`, Description: `Order was canceled`},
{ID: `CM`, Description: `Order is completed`},
{ID: `DC`, Description: `Order was discontinued`},
{ID: `ER`, Description: `Error, order not found`},
{ID: `HD`, Description: `Order is on hold`},
{ID: `IP`, Description: `In process, unspecified`},
{ID: `RP`, Description: `Order has been replaced`},
{ID: `SC`, Description: `In process, scheduled`}}},
`0042`: {ID: `0042`, Name: `Company Plan Code`, Row: []Row{}},
`0043`: {ID: `0043`, Name: `Condition Code`, Row: []Row{}},
`0044`: {ID: `0044`, Name: `Contract Code`, Row: []Row{}},
`0045`: {ID: `0045`, Name: `Courtesy Code`, Row: []Row{}},
`0046`: {ID: `0046`, Name: `Credit Rating`, Row: []Row{}},
`0049`: {ID: `0049`, Name: `Department Code`, Row: []Row{}},
`0050`: {ID: `0050`, Name: `Accident Code`, Row: []Row{}},
`0051`: {ID: `0051`, Name: `Diagnosis Code`, Row: []Row{}},
`0052`: {ID: `0052`, Name: `Diagnosis Type`, Row: []Row{
{ID: `A`, Description: `Admitting`},
{ID: `F`, Description: `Final`},
{ID: `W`, Description: `Working`}}},
`0055`: {ID: `0055`, Name: `Diagnosis Related Group`, Row: []Row{}},
`0056`: {ID: `0056`, Name: `DRG Grouper Review Code`, Row: []Row{}},
`0059`: {ID: `0059`, Name: `Consent Code`, Row: []Row{}},
`0061`: {ID: `0061`, Name: `Check Digit Scheme`, Row: []Row{
{ID: `BCV`, Description: `Bank Card Validation Number`},
{ID: `ISO`, Description: `ISO 7064: 1983`},
{ID: `M10`, Description: `Mod 10 algorithm`},
{ID: `M11`, Description: `Mod 11 algorithm`},
{ID: `NPI`, Description: `Check digit algorithm in the US National Provider Identifier`}}},
`0062`: {ID: `0062`, Name: `Event Reason`, Row: []Row{
{ID: `01`, Description: `Patient request`},
{ID: `02`, Description: `Physician/health practitioner order`},
{ID: `03`, Description: `Census management`},
{ID: `O`, Description: `Other`},
{ID: `U`, Description: `Unknown`}}},
`0063`: {ID: `0063`, Name: `Relationship`, Row: []Row{
{ID: `ASC`, Description: `Associate`},
{ID: `BRO`, Description: `Brother`},
{ID: `CGV`, Description: `Care giver`},
{ID: `CHD`, Description: `Child`},
{ID: `DEP`, Description: `Handicapped dependent`},
{ID: `DOM`, Description: `Life partner`},
{ID: `EMC`, Description: `Emergency contact`},
{ID: `EME`, Description: `Employee`},
{ID: `EMR`, Description: `Employer`},
{ID: `EXF`, Description: `Extended family`},
{ID: `FCH`, Description: `Foster child`},
{ID: `FND`, Description: `Friend`},
{ID: `FTH`, Description: `Father`},
{ID: `GCH`, Description: `Grandchild`},
{ID: `GRD`, Description: `Guardian`},
{ID: `GRP`, Description: `Grandparent`},
{ID: `MGR`, Description: `Manager`},
{ID: `MTH`, Description: `Mother`},
{ID: `NCH`, Description: `Natural child`},
{ID: `NON`, Description: `None`},
{ID: `OAD`, Description: `Other adult`},
{ID: `OTH`, Description: `Other`},
{ID: `OWN`, Description: `Owner`},
{ID: `PAR`, Description: `Parent`},
{ID: `SCH`, Description: `Stepchild`},
{ID: `SEL`, Description: `Self`},
{ID: `SIB`, Description: `Sibling`},
{ID: `SIS`, Description: `Sister`},
{ID: `SPO`, Description: `Spouse`},
{ID: `TRA`, Description: `Trainer`},
{ID: `UNK`, Description: `Unknown`},
{ID: `WRD`, Description: `Ward of court`}}},
`0064`: {ID: `0064`, Name: `Financial Class`, Row: []Row{}},
`0065`: {ID: `0065`, Name: `Specimen Action Code`, Row: []Row{
{ID: `A`, Description: `Add ordered tests to the existing specimen`},
{ID: `G`, Description: `Generated order; reflex order`},
{ID: `L`, Description: `Lab to obtain specimen from patient`},
{ID: `O`, Description: `Specimen obtained by service other than Lab`},
{ID: `P`, Description: `Pending specimen; Order sent prior to delivery`},
{ID: `R`, Description: `Revised order`},
{ID: `S`, Description: `Schedule the tests specified below`}}},
`0066`: {ID: `0066`, Name: `Employment Status`, Row: []Row{
{ID: `1`, Description: `Full time employed`},
{ID: `2`, Description: `Part time employed`},
{ID: `3`, Description: `Unemployed`},
{ID: `4`, Description: `Self-employed,`},
{ID: `5`, Description: `Retired`},
{ID: `6`, Description: `On active military duty`},
{ID: `9`, Description: `Unknown`},
{ID: `C`, Description: `Contract, per diem`},
{ID: `L`, Description: `Leave of absence (e.g., family leave, sabbatical, etc.)`},
{ID: `O`, Description: `Other`},
{ID: `T`, Description: `Temporarily unemployed`}}},
`0068`: {ID: `0068`, Name: `Guarantor Type`, Row: []Row{}},
`0069`: {ID: `0069`, Name: `Hospital Service`, Row: []Row{
{ID: `CAR`, Description: `Cardiac Service`},
{ID: `MED`, Description: `Medical Service`},
{ID: `PUL`, Description: `Pulmonary Service`},
{ID: `SUR`, Description: `Surgical Service`},
{ID: `URO`, Description: `Urology Service`}}},
`0072`: {ID: `0072`, Name: `Insurance plan ID`, Row: []Row{}},
`0073`: {ID: `0073`, Name: `Interest Rate Code`, Row: []Row{}},
`0074`: {ID: `0074`, Name: `Diagnostic Service Section ID`, Row: []Row{
{ID: `AU`, Description: `Audiology`},
{ID: `BG`, Description: `Blood Gases`},
{ID: `BLB`, Description: `Blood Bank`},
{ID: `CH`, Description: `Chemistry`},
{ID: `CP`, Description: `Cytopathology`},
{ID: `CT`, Description: `CAT Scan`},
{ID: `CTH`, Description: `Cardiac Catheterization`},
{ID: `CUS`, Description: `Cardiac Ultrasound`},
{ID: `EC`, Description: `Electrocardiac (e.g., EKG, EEC, Holter)`},
{ID: `EN`, Description: `Electroneuro (EEG, EMG,EP,PSG)`},
{ID: `HM`, Description: `Hematology`},
{ID: `ICU`, Description: `Bedside ICU Monitoring`},
{ID: `IMM`, Description: `Immunology`},
{ID: `LAB`, Description: `Laboratory`},
{ID: `MB`, Description: `Microbiology`},
{ID: `MCB`, Description: `Mycobacteriology`},
{ID: `MYC`, Description: `Mycology`},
{ID: `NMR`, Description: `Nuclear Magnetic Resonance`},
{ID: `NMS`, Description: `Nuclear Medicine Scan`},
{ID: `NRS`, Description: `Nursing Service Measures`},
{ID: `OSL`, Description: `Outside Lab`},
{ID: `OT`, Description: `Occupational Therapy`},
{ID: `OTH`, Description: `Other`},
{ID: `OUS`, Description: `OB Ultrasound`},
{ID: `PF`, Description: `Pulmonary Function`},
{ID: `PHR`, Description: `Pharmacy`},
{ID: `PHY`, Description: `Physician (Hx. Dx, admission note, etc.)`},
{ID: `PT`, Description: `Physical Therapy`},
{ID: `RAD`, Description: `Radiology`},
{ID: `RC`, Description: `Respiratory Care (therapy)`},
{ID: `RT`, Description: `Radiation Therapy`},
{ID: `RUS`, Description: `Radiology Ultrasound`},
{ID: `RX`, Description: `Radiograph`},
{ID: `SP`, Description: `Surgical Pathology`},
{ID: `SR`, Description: `Serology`},
{ID: `TX`, Description: `Toxicology`},
{ID: `VR`, Description: `Virology`},
{ID: `VUS`, Description: `Vascular Ultrasound`},
{ID: `XRC`, Description: `Cineradiograph`}}},
`0076`: {ID: `0076`, Name: `Message Type`, Row: []Row{
{ID: `ACK`, Description: `General acknowledgment message`},
{ID: `ADR`, Description: `ADT response`},
{ID: `ADT`, Description: `ADT message`},
{ID: `BAR`, Description: `Add/change billing account`},
{ID: `BPS`, Description: `Blood product dispense status message`},
{ID: `BRP`, Description: `Blood product dispense status acknowledgement message`},
{ID: `BRT`, Description: `Blood product transfusion/disposition acknowledgement message`},
{ID: `BTS`, Description: `Blood product transfusion/disposition message`},
{ID: `CCF`, Description: `Collaborative Care Fetch`},
{ID: `CCI`, Description: `Collaborative Care Information`},
{ID: `CCM`, Description: `Collaborative Care Message`},
{ID: `CCQ`, Description: `Collaborative Care Referral`},
{ID: `CCU`, Description: `Collaborative Care Referral`},
{ID: `CQU`, Description: `Collaborative Care Referral`},
{ID: `CRM`, Description: `Clinical study registration message`},
{ID: `CSU`, Description: `Unsolicited study data message`},
{ID: `DFT`, Description: `Detail financial transactions`},
{ID: `DOC`, Description: `Document response`},
{ID: `DSR`, Description: `Display response`},
{ID: `EAC`, Description: `Automated equipment command message`},
{ID: `EAN`, Description: `Automated equipment notification message`},
{ID: `EAR`, Description: `Automated equipment response message`},
{ID: `EHC`, Description: `Health Care Invoice`},
{ID: `ESR`, Description: `Automated equipment status update acknowledgment message`},
{ID: `ESU`, Description: `Automated equipment status update message`},
{ID: `INR`, Description: `Automated equipment inventory request message`},
{ID: `INU`, Description: `Automated equipment inventory update message`},
{ID: `LSR`, Description: `Automated equipment log/service request message`},
{ID: `LSU`, Description: `Automated equipment log/service update message`},
{ID: `MDM`, Description: `Medical document management`},
{ID: `MFD`, Description: `Master files delayed application acknowledgment`},
{ID: `MFK`, Description: `Master files application acknowledgment`},
{ID: `MFN`, Description: `Master files notification`},
{ID: `MFQ`, Description: `Master files query`},
{ID: `MFR`, Description: `Master files response`},
{ID: `NMD`, Description: `Application management data message`},
{ID: `NMQ`, Description: `Application management query message`},
{ID: `NMR`, Description: `Application management response message`},
{ID: `OMB`, Description: `Blood product order message`},
{ID: `OMD`, Description: `Dietary order`},
{ID: `OMG`, Description: `General clinical order message`},
{ID: `OMI`, Description: `Imaging order`},
{ID: `OML`, Description: `Laboratory order message`},
{ID: `OMN`, Description: `Non-stock requisition order message`},
{ID: `OMP`, Description: `Pharmacy/treatment order message`},
{ID: `OMS`, Description: `Stock requisition order message`},
{ID: `OPL`, Description: `Population/Location-Based Laboratory Order Message`},
{ID: `OPR`, Description: `Population/Location-Based Laboratory Order Acknowledgment Message`},
{ID: `OPU`, Description: `Unsolicited Population/Location-Based Laboratory Observation Message`},
{ID: `ORA`, Description: `Observation Report Acknowledgment`},
{ID: `ORB`, Description: `Blood product order acknowledgement message`},
{ID: `ORD`, Description: `Dietary order acknowledgment message`},
{ID: `ORF`, Description: `Query for results of observation`},
{ID: `ORG`, Description: `General clinical order acknowledgment message`},
{ID: `ORI`, Description: `Imaging order acknowledgement message`},
{ID: `ORL`, Description: `Laboratory acknowledgment message (unsolicited)`},
{ID: `ORM`, Description: `Pharmacy/treatment order message`},
{ID: `ORN`, Description: `Non-stock requisition - General order acknowledgment message`},
{ID: `ORP`, Description: `Pharmacy/treatment order acknowledgment message`},
{ID: `ORR`, Description: `General order response message response to any ORM`},
{ID: `ORS`, Description: `Stock requisition - Order acknowledgment message`},
{ID: `ORU`, Description: `Unsolicited transmission of an observation message`},
{ID: `OSM`, Description: `Specimen Shipment Message`},
{ID: `OSQ`, Description: `Query response for order status`},
{ID: `OSR`, Description: `Query response for order status`},
{ID: `OUL`, Description: `Unsolicited laboratory observation message`},
{ID: `PEX`, Description: `Product experience message`},
{ID: `PGL`, Description: `Patient goal message`},
{ID: `PIN`, Description: `Patient insurance information`},
{ID: `PMU`, Description: `Add personnel record`},
{ID: `PPG`, Description: `Patient pathway message (goal-oriented)`},
{ID: `PPP`, Description: `Patient pathway message (problem-oriented)`},
{ID: `PPR`, Description: `Patient problem message`},
{ID: `PPT`, Description: `Patient pathway goal-oriented response`},
{ID: `PPV`, Description: `Patient goal response`},
{ID: `PRR`, Description: `Patient problem response`},
{ID: `PTR`, Description: `Patient pathway problem-oriented response`},
{ID: `QBP`, Description: `Query by parameter`},
{ID: `QCK`, Description: `Deferred query`},
{ID: `QCN`, Description: `Cancel query`},
{ID: `QRY`, Description: `Query, original mode`},
{ID: `QSB`, Description: `Create subscription`},
{ID: `QSX`, Description: `Cancel subscription/acknowledge message`},
{ID: `QVR`, Description: `Query for previous events`},
{ID: `RAR`, Description: `Pharmacy/treatment administration information`},
{ID: `RAS`, Description: `Pharmacy/treatment administration message`},
{ID: `RCI`, Description: `Return clinical information`},
{ID: `RCL`, Description: `Return clinical list`},
{ID: `RDE`, Description: `Pharmacy/treatment encoded order message`},
{ID: `RDR`, Description: `Pharmacy/treatment dispense information`},
{ID: `RDS`, Description: `Pharmacy/treatment dispense message`},
{ID: `RDY`, Description: `Display based response`},
{ID: `REF`, Description: `Patient referral`},
{ID: `RER`, Description: `Pharmacy/treatment encoded order information`},
{ID: `RGR`, Description: `Pharmacy/treatment dose information`},
{ID: `RGV`, Description: `Pharmacy/treatment give message`},
{ID: `ROR`, Description: `Pharmacy/treatment order response`},
{ID: `RPA`, Description: `Return patient authorization`},
{ID: `RPI`, Description: `Return patient information`},
{ID: `RPL`, Description: `Return patient display list`},
{ID: `RPR`, Description: `Return patient list`},
{ID: `RQA`, Description: `Request patient authorization`},
{ID: `RQC`, Description: `Request clinical information`},
{ID: `RQI`, Description: `Request patient information`},
{ID: `RQP`, Description: `Request patient demographics`},
{ID: `RRA`, Description: `Pharmacy/treatment administration acknowledgment message`},
{ID: `RRD`, Description: `Pharmacy/treatment dispense acknowledgment message`},
{ID: `RRE`, Description: `Pharmacy/treatment encoded order acknowledgment message`},
{ID: `RRG`, Description: `Pharmacy/treatment give acknowledgment message`},
{ID: `RRI`, Description: `Return referral information`},
{ID: `RSP`, Description: `Segment pattern response`},
{ID: `RTB`, Description: `Tabular response`},
{ID: `SCN`, Description: `Notification of Anti-Microbial Device Cycle Data`},
{ID: `SDN`, Description: `Notification of Anti-Microbial Device Data`},
{ID: `SDR`, Description: `Sterilization anti-microbial device data request`},
{ID: `SIU`, Description: `Schedule information unsolicited`},
{ID: `SLN`, Description: `Notification of New Sterilization Lot`},
{ID: `SLR`, Description: `Sterilization lot request`},
{ID: `SMD`, Description: `Sterilization anti-microbial device cycle data request`},
{ID: `SQM`, Description: `Schedule query message`},
{ID: `SQR`, Description: `Schedule query response`},
{ID: `SRM`, Description: `Schedule request message`},
{ID: `SRR`, Description: `Scheduled request response`},
{ID: `SSR`, Description: `Specimen status request message`},
{ID: `SSU`, Description: `Specimen status update message`},
{ID: `STC`, Description: `Notification of Sterilization Configuration`},
{ID: `STI`, Description: `Sterilization item request`},
{ID: `SUR`, Description: `Summary product experience report`},
{ID: `TBR`, Description: `Tabular data response`},
{ID: `TCR`, Description: `Automated equipment test code settings request message`},
{ID: `TCU`, Description: `Automated equipment test code settings update message`},
{ID: `UDM`, Description: `Unsolicited display update message`},
{ID: `VXQ`, Description: `Query for vaccination record`},
{ID: `VXR`, Description: `Vaccination record response`},
{ID: `VXU`, Description: `Unsolicited vaccination record update`},
{ID: `VXX`, Description: `Response for vaccination query with multiple PID matches`}}},
`0080`: {ID: `0080`, Name: `Nature of Abnormal Testing`, Row: []Row{
{ID: `A`, Description: `An age-based population`},
{ID: `B`, Description: `Breed`},
{ID: `N`, Description: `None - generic normal range`},
{ID: `R`, Description: `A race-based population`},
{ID: `S`, Description: `A sex-based population`},
{ID: `SP`, Description: `Species`},
{ID: `ST`, Description: `Strain`}}},
`0083`: {ID: `0083`, Name: `Outlier Type`, Row: []Row{
{ID: `C`, Description: `Outlier cost`},
{ID: `D`, Description: `Outlier days`}}},
`0084`: {ID: `0084`, Name: `Performed by`, Row: []Row{}},
`0085`: {ID: `0085`, Name: `Observation Result Status Codes Interpretation`, Row: []Row{
{ID: `C`, Description: `Record coming over is a correction and thus replaces a final result`},
{ID: `D`, Description: `Deletes the OBX record`},
{ID: `F`, Description: `Final results; Can only be changed with a corrected result.`},
{ID: `I`, Description: `Specimen in lab; results pending`},
{ID: `N`, Description: `Not asked; used to affirmatively document that the observation identified in the OBX was not sought when the universal service ID in OBR-4 implies that it would be sought.`},
{ID: `O`, Description: `Order detail description only (no result)`},
{ID: `P`, Description: `Preliminary results`},
{ID: `R`, Description: `Results entered -- not verified`},
{ID: `S`, Description: `Partial results. Deprecated. Retained only for backward compatibility as of V2.6.`},
{ID: `U`, Description: `Results status change to final without retransmitting results already sent as 'preliminary.' E.g., radiology changes status from preliminary to final`},
{ID: `W`, Description: `Post original as wrong, e.g., transmitted for wrong patient`},
{ID: `X`, Description: `Results cannot be obtained for this observation`}}},
`0086`: {ID: `0086`, Name: `Plan ID`, Row: []Row{}},
`0087`: {ID: `0087`, Name: `Pre-Admit Test Indicator`, Row: []Row{}},
`0088`: {ID: `0088`, Name: `Procedure Code`, Row: []Row{}},
`0091`: {ID: `0091`, Name: `Query Priority`, Row: []Row{
{ID: `D`, Description: `Deferred`},
{ID: `I`, Description: `Immediate`}}},
`0092`: {ID: `0092`, Name: `Re-Admission Indicator`, Row: []Row{
{ID: `R`, Description: `Re-admission`}}},
`0093`: {ID: `0093`, Name: `Release Information`, Row: []Row{
{ID: `N`, Description: `No`},
{ID: `Y`, Description: `Yes`}}},
`0098`: {ID: `0098`, Name: `Type of Agreement`, Row: []Row{
{ID: `M`, Description: `Maternity`},
{ID: `S`, Description: `Standard`},
{ID: `U`, Description: `Unified`}}},
`0099`: {ID: `0099`, Name: `VIP Indicator`, Row: []Row{}},
`0100`: {ID: `0100`, Name: `Invocation event`, Row: []Row{
{ID: `D`, Description: `On discharge`},
{ID: `O`, Description: `On receipt of order`},
{ID: `R`, Description: `At time service is completed`},
{ID: `S`, Description: `At time service is started`},
{ID: `T`, Description: `At a designated date/time`}}},
`0103`: {ID: `0103`, Name: `Processing ID`, Row: []Row{
{ID: `D`, Description: `Debugging`},
{ID: `P`, Description: `Production`},
{ID: `T`, Description: `Training`}}},
`0104`: {ID: `0104`, Name: `Version ID`, Row: []Row{
{ID: `2.0`, Description: `Release 2.0`},
{ID: `2.0D`, Description: `Demo 2.0`},
{ID: `2.1`, Description: `Release 2.1`},
{ID: `2.2`, Description: `Release 2.2`},
{ID: `2.3`, Description: `Release 2.3`},
{ID: `2.3.1`, Description: `Release 2.3.1`},
{ID: `2.4`, Description: `Release 2.4`},
{ID: `2.5`, Description: `Release 2.5`},
{ID: `2.5.1`, Description: `Release 2.5.1`},
{ID: `2.6`, Description: `Release 2.6`},
{ID: `2.7`, Description: `Release 2.7`},
{ID: `2.7.1`, Description: `Release 2.7.1`},
{ID: `2.8`, Description: `Release 2.8`}}},
`0105`: {ID: `0105`, Name: `Source of Comment`, Row: []Row{
{ID: `L`, Description: `Ancillary (filler) department is source of comment`},
{ID: `O`, Description: `Other system is source of comment`},
{ID: `P`, Description: `Orderer (placer) is source of comment`}}},
`0110`: {ID: `0110`, Name: `Transfer to Bad Debt Code`, Row: []Row{}},
`0111`: {ID: `0111`, Name: `Delete Account Code`, Row: []Row{}},
`0112`: {ID: `0112`, Name: `Discharge Disposition`, Row: []Row{}},
`0113`: {ID: `0113`, Name: `Discharged to Location`, Row: []Row{}},
`0114`: {ID: `0114`, Name: `Diet Type`, Row: []Row{}},
`0115`: {ID: `0115`, Name: `Servicing Facility`, Row: []Row{}},
`0116`: {ID: `0116`, Name: `Bed Status`, Row: []Row{
{ID: `C`, Description: `Closed`},
{ID: `H`, Description: `Housekeeping`},
{ID: `I`, Description: `Isolated`},
{ID: `K`, Description: `Contaminated`},
{ID: `O`, Description: `Occupied`},
{ID: `U`, Description: `Unoccupied`}}},
`0117`: {ID: `0117`, Name: `Account Status`, Row: []Row{}},
`0118`: {ID: `0118`, Name: `Major Diagnostic Category`, Row: []Row{}},
`0119`: {ID: `0119`, Name: `Order Control Codes`, Row: []Row{
{ID: `AF`, Description: `Order/service refill request approval`},
{ID: `CA`, Description: `Cancel order/service request`},
{ID: `CH`, Description: `Child order/service`},
{ID: `CN`, Description: `Combined result`},
{ID: `CR`, Description: `Canceled as requested`},
{ID: `DC`, Description: `Discontinue order/service request`},
{ID: `DE`, Description: `Data errors`},
{ID: `DF`, Description: `Order/service refill request denied`},
{ID: `DR`, Description: `Discontinued as requested`},
{ID: `FU`, Description: `Order/service refilled, unsolicited`},
{ID: `HD`, Description: `Hold order request`},
{ID: `HR`, Description: `On hold as requested`},
{ID: `LI`, Description: `Link order/service to patient care problem or goal`},
{ID: `MC`, Description: `Miscellaneous Charge - not associated with an order`},
{ID: `NA`, Description: `Number assigned`},
{ID: `NW`, Description: `New order/service`},
{ID: `OC`, Description: `Order/service canceled`},
{ID: `OD`, Description: `Order/service discontinued`},
{ID: `OE`, Description: `Order/service released`},
{ID: `OF`, Description: `Order/service refilled as requested`},
{ID: `OH`, Description: `Order/service held`},
{ID: `OK`, Description: `Order/service accepted & OK`},
{ID: `OP`, Description: `Notification of order for outside dispense`},
{ID: `OR`, Description: `Released as requested`},
{ID: `PA`, Description: `Parent order/service`},
{ID: `PR`, Description: `Previous Results with new order/service`},
{ID: `PY`, Description: `Notification of replacement order for outside dispense`},
{ID: `RE`, Description: `Observations/Performed Service to follow`},
{ID: `RF`, Description: `Refill order/service request`},
{ID: `RL`, Description: `Release previous hold`},
{ID: `RO`, Description: `Replacement order`},
{ID: `RP`, Description: `Order/service replace request`},
{ID: `RQ`, Description: `Replaced as requested`},
{ID: `RR`, Description: `Request received`},
{ID: `RU`, Description: `Replaced unsolicited`},
{ID: `SC`, Description: `Status changed`},
{ID: `SN`, Description: `Send order/service number`},
{ID: `SR`, Description: `Response to send order/service status request`},
{ID: `SS`, Description: `Send order/service status request`},
{ID: `UA`, Description: `Unable to accept order/service`},
{ID: `UC`, Description: `Unable to cancel`},
{ID: `UD`, Description: `Unable to discontinue`},
{ID: `UF`, Description: `Unable to refill`},
{ID: `UH`, Description: `Unable to put on hold`},
{ID: `UM`, Description: `Unable to replace`},
{ID: `UN`, Description: `Unlink order/service from patient care problem or goal`},
{ID: `UR`, Description: `Unable to release`},
{ID: `UX`, Description: `Unable to change`},
{ID: `XO`, Description: `Change order/service request`},
{ID: `XR`, Description: `Changed as requested`},
{ID: `XX`, Description: `Order/service changed, unsol.`}}},
`0121`: {ID: `0121`, Name: `Response Flag`, Row: []Row{
{ID: `D`, Description: `Same as R, also other associated segments`},
{ID: `E`, Description: `Report exceptions only`},
{ID: `F`, Description: `Same as D, plus confirmations explicitly`},
{ID: `N`, Description: `Only the MSA segment is returned`},
{ID: `R`, Description: `Same as E, also Replacement and Parent-Child`}}},
`0122`: {ID: `0122`, Name: `Charge Type`, Row: []Row{
{ID: `CH`, Description: `Charge`},
{ID: `CO`, Description: `Contract`},
{ID: `CR`, Description: `Credit`},
{ID: `DP`, Description: `Department`},
{ID: `GR`, Description: `Grant`},
{ID: `NC`, Description: `No Charge`},
{ID: `PC`, Description: `Professional`},
{ID: `RS`, Description: `Research`}}},
`0123`: {ID: `0123`, Name: `Result Status`, Row: []Row{
{ID: `A`, Description: `Some, but not all, results available`},
{ID: `C`, Description: `Correction to results`},
{ID: `F`, Description: `Final results; results stored and verified. Can only be changed with a corrected result.`},
{ID: `I`, Description: `No results available; specimen received, procedure incomplete`},
{ID: `O`, Description: `Order received; specimen not yet received`},
{ID: `P`, Description: `Preliminary: A verified early result is available, final results not yet obtained`},
{ID: `R`, Description: `Results stored; not yet verified`},
{ID: `S`, Description: `No results available; procedure scheduled, but not done`},
{ID: `X`, Description: `No results available; Order canceled.`},
{ID: `Y`, Description: `No order on record for this test. (Used only on queries)`},
{ID: `Z`, Description: `No record of this patient. (Used only on queries)`}}},
`0124`: {ID: `0124`, Name: `Transportation Mode`, Row: []Row{
{ID: `CART`, Description: `Cart - patient travels on cart or gurney`},
{ID: `PORT`, Description: `The examining device goes to patient's location`},
{ID: `WALK`, Description: `Patient walks to diagnostic service`},
{ID: `WHLC`, Description: `Wheelchair`}}},
`0125`: {ID: `0125`, Name: `Value Type`, Row: []Row{
{ID: `AD`, Description: `Address`},
{ID: `CF`, Description: `Coded Element With Formatted Values`},
{ID: `CK`, Description: `Composite ID With Check Digit`},
{ID: `CN`, Description: `Composite ID And Name`},
{ID: `CNE`, Description: `Coded with No Exceptions`},
{ID: `CP`, Description: `Composite Price`},
{ID: `CWE`, Description: `Coded Entry`},
{ID: `CX`, Description: `Extended Composite ID With Check Digit`},
{ID: `DR`, Description: `Date/Time Range`},
{ID: `DT`, Description: `Date`},
{ID: `DTM`, Description: `Time Stamp (Date & Time)`},
{ID: `ED`, Description: `Encapsulated Data`},
{ID: `FT`, Description: `Formatted Text (Display)`},
{ID: `ID`, Description: `Coded Value for HL7 Defined Tables`},
{ID: `IS`, Description: `Coded Value for User-Defined Tables`},
{ID: `MA`, Description: `Multiplexed Array`},
{ID: `MO`, Description: `Money`},
{ID: `NA`, Description: `Numeric Array`},
{ID: `NM`, Description: `Numeric`},
{ID: `PN`, Description: `Person Name`},
{ID: `RP`, Description: `Reference Pointer`},
{ID: `SN`, Description: `Structured Numeric`},
{ID: `ST`, Description: `String Data.`},
{ID: `TM`, Description: `Time`},
{ID: `TN`, Description: `Telephone Number`},
{ID: `TX`, Description: `Text Data (Display)`},
{ID: `XAD`, Description: `Extended Address`},
{ID: `XCN`, Description: `Extended Composite Name And Number For Persons`},
{ID: `XON`, Description: `Extended Composite Name And Number For Organizations`},
{ID: `XPN`, Description: `Extended Person Name`},
{ID: `XTN`, Description: `Extended Telecommunications Number`}}},
`0127`: {ID: `0127`, Name: `Allergen Type`, Row: []Row{
{ID: `AA`, Description: `Animal Allergy`},
{ID: `DA`, Description: `Drug allergy`},
{ID: `EA`, Description: `Environmental Allergy`},
{ID: `FA`, Description: `Food allergy`},
{ID: `LA`, Description: `Pollen Allergy`},
{ID: `MA`, Description: `Miscellaneous allergy`},
{ID: `MC`, Description: `Miscellaneous contraindication`},
{ID: `PA`, Description: `Plant Allergy`}}},
`0128`: {ID: `0128`, Name: `Allergy Severity`, Row: []Row{
{ID: `MI`, Description: `Mild`},
{ID: `MO`, Description: `Moderate`},
{ID: `SV`, Description: `Severe`},
{ID: `U`, Description: `Unknown`}}},
`0129`: {ID: `0129`, Name: `Accommodation Code`, Row: []Row{}},
`0130`: {ID: `0130`, Name: `Visit User Code`, Row: []Row{
{ID: `HO`, Description: `Home`},
{ID: `MO`, Description: `Mobile Unit`},
{ID: `PH`, Description: `Phone`},
{ID: `TE`, Description: `Teaching`}}},
`0131`: {ID: `0131`, Name: `Contact Role`, Row: []Row{
{ID: `C`, Description: `Emergency Contact`},
{ID: `E`, Description: `Employer`},
{ID: `F`, Description: `Federal Agency`},
{ID: `I`, Description: `Insurance Company`},
{ID: `N`, Description: `Next-of-Kin`},
{ID: `O`, Description: `Other`},
{ID: `S`, Description: `State Agency`},
{ID: `U`, Description: `Unknown`}}},
`0132`: {ID: `0132`, Name: `Transaction Code`, Row: []Row{}},
`0135`: {ID: `0135`, Name: `Assignment of Benefits`, Row: []Row{
{ID: `M`, Description: `Modified assignment`},
{ID: `N`, Description: `No`},
{ID: `Y`, Description: `Yes`}}},
`0136`: {ID: `0136`, Name: `Yes/no Indicator`, Row: []Row{
{ID: `N`, Description: `No`},
{ID: `Y`, Description: `Yes`}}},
`0137`: {ID: `0137`, Name: `Mail Claim Party`, Row: []Row{
{ID: `E`, Description: `Employer`},
{ID: `G`, Description: `Guarantor`},
{ID: `I`, Description: `Insurance company`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Patient`}}},
`0139`: {ID: `0139`, Name: `Employer Information Data`, Row: []Row{}},
`0140`: {ID: `0140`, Name: `Military Service`, Row: []Row{
{ID: `AUSA`, Description: `Australian Army`},
{ID: `AUSAF`, Description: `Australian Air Force`},
{ID: `AUSN`, Description: `Australian Navy`},
{ID: `NATO`, Description: `North Atlantic Treaty Organization`},
{ID: `NOAA`, Description: `National Oceanic and Atmospheric Administration`},
{ID: `USA`, Description: `US Army`},
{ID: `USAF`, Description: `US Air Force`},
{ID: `USCG`, Description: `US Coast Guard`},
{ID: `USMC`, Description: `US Marine Corps`},
{ID: `USN`, Description: `US Navy`},
{ID: `USPHS`, Description: `US Public Health Service`}}},
`0141`: {ID: `0141`, Name: `Military Rank/Grade`, Row: []Row{
{ID: `E1... E9`, Description: `Enlisted`},
{ID: `O1 ... O9`, Description: `Officers`},
{ID: `W1 ... W4`, Description: `Warrant Officers`}}},
`0142`: {ID: `0142`, Name: `Military Status`, Row: []Row{
{ID: `ACT`, Description: `Active duty`},
{ID: `DEC`, Description: `Deceased`},
{ID: `RET`, Description: `Retired`}}},
`0143`: {ID: `0143`, Name: `Non-covered Insurance Code`, Row: []Row{}},
`0144`: {ID: `0144`, Name: `Eligibility Source`, Row: []Row{
{ID: `1`, Description: `Insurance company`},
{ID: `2`, Description: `Employer`},
{ID: `3`, Description: `Insured presented policy`},
{ID: `4`, Description: `Insured presented card`},
{ID: `5`, Description: `Signed statement on file`},
{ID: `6`, Description: `Verbal information`},
{ID: `7`, Description: `None`}}},
`0145`: {ID: `0145`, Name: `Room Type`, Row: []Row{
{ID: `2ICU`, Description: `Second intensive care unit`},
{ID: `2PRI`, Description: `Second private room`},
{ID: `2SPR`, Description: `Second semi-private room`},
{ID: `ICU`, Description: `Intensive care unit`},
{ID: `PRI`, Description: `Private room`},
{ID: `SPR`, Description: `Semi-private room`}}},
`0146`: {ID: `0146`, Name: `Amount Type`, Row: []Row{
{ID: `DF`, Description: `Differential`},
{ID: `LM`, Description: `Limit`},
{ID: `PC`, Description: `Percentage`},
{ID: `RT`, Description: `Rate`},
{ID: `UL`, Description: `Unlimited`}}},
`0147`: {ID: `0147`, Name: `Policy Type`, Row: []Row{
{ID: `2ANC`, Description: `Second ancillary`},
{ID: `2MMD`, Description: `Second major medical`},
{ID: `3MMD`, Description: `Third major medical`},
{ID: `ANC`, Description: `Ancillary`},
{ID: `MMD`, Description: `Major medical`}}},
`0148`: {ID: `0148`, Name: `Money or Percentage Indicator`, Row: []Row{
{ID: `AT`, Description: `Currency amount`},
{ID: `PC`, Description: `Percentage`}}},
`0149`: {ID: `0149`, Name: `Day Type`, Row: []Row{
{ID: `AP`, Description: `Approved`},
{ID: `DE`, Description: `Denied`},
{ID: `PE`, Description: `Pending`}}},
`0150`: {ID: `0150`, Name: `Certification Patient Type`, Row: []Row{
{ID: `ER`, Description: `Emergency`},
{ID: `IPE`, Description: `Inpatient elective`},
{ID: `OPE`, Description: `Outpatient elective`},
{ID: `UR`, Description: `Urgent`}}},
`0151`: {ID: `0151`, Name: `Second Opinion Status`, Row: []Row{}},
`0152`: {ID: `0152`, Name: `Second Opinion Documentation Received`, Row: []Row{}},
`0153`: {ID: `0153`, Name: `Value Code`, Row: []Row{}},
`0155`: {ID: `0155`, Name: `Accept/Application Acknowledgment Conditions`, Row: []Row{
{ID: `AL`, Description: `Always`},
{ID: `ER`, Description: `Error/reject conditions only`},
{ID: `NE`, Description: `Never`},
{ID: `SU`, Description: `Successful completion only`}}},
`0159`: {ID: `0159`, Name: `Diet Code Specification Type`, Row: []Row{
{ID: `D`, Description: `Diet`},
{ID: `P`, Description: `Preference`},
{ID: `S`, Description: `Supplement`}}},
`0160`: {ID: `0160`, Name: `Tray Type`, Row: []Row{
{ID: `EARLY`, Description: `Early tray`},
{ID: `GUEST`, Description: `Guest tray`},
{ID: `LATE`, Description: `Late tray`},
{ID: `MSG`, Description: `Tray message only`},
{ID: `NO`, Description: `No tray`}}},
`0161`: {ID: `0161`, Name: `Allow Substitution`, Row: []Row{
{ID: `G`, Description: `Allow generic substitutions.`},
{ID: `N`, Description: `Substitutions are NOT authorized. (This is the default - null.)`},
{ID: `T`, Description: `Allow therapeutic substitutions`}}},
`0162`: {ID: `0162`, Name: `Route of Administration`, Row: []Row{
{ID: `AP`, Description: `Apply Externally`},
{ID: `B`, Description: `Buccal`},
{ID: `DT`, Description: `Dental`},
{ID: `EP`, Description: `Epidural`},
{ID: `ET`, Description: `Endotrachial Tube*`, Comment: `used primarily for respiratory therapy and anesthesia delivery`},
{ID: `GTT`, Description: `Gastrostomy Tube`},
{ID: `GU`, Description: `GU Irrigant`},
{ID: `IA`, Description: `Intra-arterial`},
{ID: `IB`, Description: `Intrabursal`},
{ID: `IC`, Description: `Intracardiac`},
{ID: `ICV`, Description: `Intracervical (uterus)`},
{ID: `ID`, Description: `Intradermal`},
{ID: `IH`, Description: `Inhalation`},
{ID: `IHA`, Description: `Intrahepatic Artery`},
{ID: `IM`, Description: `Intramuscular`},
{ID: `IMR`, Description: `Immerse (Soak) Body Part`},
{ID: `IN`, Description: `Intranasal`},
{ID: `IO`, Description: `Intraocular`},
{ID: `IP`, Description: `Intraperitoneal`},
{ID: `IS`, Description: `Intrasynovial`},
{ID: `IT`, Description: `Intrathecal`},
{ID: `IU`, Description: `Intrauterine`},
{ID: `IV`, Description: `Intravenous`},
{ID: `MM`, Description: `Mucous Membrane`},
{ID: `MTH`, Description: `Mouth/Throat`},
{ID: `NG`, Description: `Nasogastric`},
{ID: `NP`, Description: `Nasal Prongs*`, Comment: `used primarily for respiratory therapy and anesthesia delivery`},
{ID: `NS`, Description: `Nasal`},
{ID: `NT`, Description: `Nasotrachial Tube`},
{ID: `OP`, Description: `Ophthalmic`},
{ID: `OT`, Description: `Otic`},
{ID: `OTH`, Description: `Other/Miscellaneous`},
{ID: `PF`, Description: `Perfusion`},
{ID: `PO`, Description: `Oral`},
{ID: `PR`, Description: `Rectal`},
{ID: `RM`, Description: `Rebreather Mask*`, Comment: `used primarily for respiratory therapy and anesthesia delivery`},
{ID: `SC`, Description: `Subcutaneous`},
{ID: `SD`, Description: `Soaked Dressing`},
{ID: `SL`, Description: `Sublingual`},
{ID: `TD`, Description: `Transdermal`},
{ID: `TL`, Description: `Translingual`},
{ID: `TP`, Description: `Topical`},
{ID: `TRA`, Description: `Tracheostomy*`, Comment: `used primarily for respiratory therapy and anesthesia delivery`},
{ID: `UR`, Description: `Urethral`},
{ID: `VG`, Description: `Vaginal`},
{ID: `VM`, Description: `Ventimask`},
{ID: `WND`, Description: `Wound`}}},
`0163`: {ID: `0163`, Name: `Body Site`, Row: []Row{
{ID: `BE`, Description: `Bilateral Ears`},
{ID: `BN`, Description: `Bilateral Nares`},
{ID: `BU`, Description: `Buttock`},
{ID: `CT`, Description: `Chest Tube`},
{ID: `LA`, Description: `Left Arm`},
{ID: `LAC`, Description: `Left Anterior Chest`},
{ID: `LACF`, Description: `Left Antecubital Fossa`},
{ID: `LD`, Description: `Left Deltoid`},
{ID: `LE`, Description: `Left Ear`},
{ID: `LEJ`, Description: `Left External Jugular`},
{ID: `LF`, Description: `Left Foot`},
{ID: `LG`, Description: `Left Gluteus Medius`},
{ID: `LH`, Description: `Left Hand`},
{ID: `LIJ`, Description: `Left Internal Jugular`},
{ID: `LLAQ`, Description: `Left Lower Abd Quadrant`},
{ID: `LLFA`, Description: `Left Lower Forearm`},
{ID: `LMFA`, Description: `Left Mid Forearm`},
{ID: `LN`, Description: `Left Naris`},
{ID: `LPC`, Description: `Left Posterior Chest`},
{ID: `LSC`, Description: `Left Subclavian`},
{ID: `LT`, Description: `Left Thigh`},
{ID: `LUA`, Description: `Left Upper Arm`},
{ID: `LUAQ`, Description: `Left Upper Abd Quadrant`},
{ID: `LUFA`, Description: `Left Upper Forearm`},
{ID: `LVG`, Description: `Left Ventragluteal`},
{ID: `LVL`, Description: `Left Vastus Lateralis`},
{ID: `NB`, Description: `Nebulized`},
{ID: `OD`, Description: `Right Eye`},
{ID: `OS`, Description: `Left Eye`},
{ID: `OU`, Description: `Bilateral Eyes`},
{ID: `PA`, Description: `Perianal`},
{ID: `PERIN`, Description: `Perineal`},
{ID: `RA`, Description: `Right Arm`},
{ID: `RAC`, Description: `Right Anterior Chest`},
{ID: `RACF`, Description: `Right Antecubital Fossa`},
{ID: `RD`, Description: `Right Deltoid`},
{ID: `RE`, Description: `Right Ear`},
{ID: `REJ`, Description: `Right External Jugular`},
{ID: `RF`, Description: `Right Foot`},
{ID: `RG`, Description: `Right Gluteus Medius`},
{ID: `RH`, Description: `Right Hand`},
{ID: `RIJ`, Description: `Right Internal Jugular`},
{ID: `RLAQ`, Description: `Rt Lower Abd Quadrant`},
{ID: `RLFA`, Description: `Right Lower Forearm`},
{ID: `RMFA`, Description: `Right Mid Forearm`},
{ID: `RN`, Description: `Right Naris`},
{ID: `RPC`, Description: `Right Posterior Chest`},
{ID: `RSC`, Description: `Right Subclavian`},
{ID: `RT`, Description: `Right Thigh`},
{ID: `RUA`, Description: `Right Upper Arm`},
{ID: `RUAQ`, Description: `Right Upper Abd Quadrant`},
{ID: `RUFA`, Description: `Right Upper Forearm`},
{ID: `RVG`, Description: `Right Ventragluteal`},
{ID: `RVL`, Description: `Right Vastus Lateralis`}}},
`0164`: {ID: `0164`, Name: `Administration Device`, Row: []Row{
{ID: `AP`, Description: `Applicator`},
{ID: `BT`, Description: `Buretrol`},
{ID: `HL`, Description: `Heparin Lock`},
{ID: `IPPB`, Description: `IPPB`},
{ID: `IVP`, Description: `IV Pump`},
{ID: `IVS`, Description: `IV Soluset`},
{ID: `MI`, Description: `Metered Inhaler`},
{ID: `NEB`, Description: `Nebulizer`},
{ID: `PCA`, Description: `PCA Pump`}}},
`0165`: {ID: `0165`, Name: `Administration Method`, Row: []Row{
{ID: `CH`, Description: `Chew`},
{ID: `DI`, Description: `Dissolve`},
{ID: `DU`, Description: `Dust`},
{ID: `IF`, Description: `Infiltrate`},
{ID: `IR`, Description: `Irrigate`},
{ID: `IS`, Description: `Insert`},
{ID: `IVP`, Description: `IV Push`},
{ID: `IVPB`, Description: `IV Piggyback`},
{ID: `NB`, Description: `Nebulized`},
{ID: `PF`, Description: `Perfuse`},
{ID: `PT`, Description: `Paint`},
{ID: `SH`, Description: `Shampoo`},
{ID: `SO`, Description: `Soak`},
{ID: `WA`, Description: `Wash`},
{ID: `WI`, Description: `Wipe`}}},
`0166`: {ID: `0166`, Name: `RX Component Type`, Row: []Row{
{ID: `A`, Description: `Additive`},
{ID: `B`, Description: `Base`}}},
`0167`: {ID: `0167`, Name: `Substitution Status`, Row: []Row{
{ID: `0`, Description: `No product selection indicated`},
{ID: `1`, Description: `Substitution not allowed by prescriber`},
{ID: `2`, Description: `Substitution allowed - patient requested product dispensed`},
{ID: `3`, Description: `Substitution allowed - pharmacist selected product dispensed`},
{ID: `4`, Description: `Substitution allowed - generic drug not in stock`},
{ID: `5`, Description: `Substitution allowed - brand drug dispensed as a generic`},
{ID: `7`, Description: `Substitution not allowed - brand drug mandated by law`},
{ID: `8`, Description: `Substitution allowed - generic drug not available in marketplace`},
{ID: `G`, Description: `A generic substitution was dispensed.`},
{ID: `N`, Description: `No substitute was dispensed. This is equivalent to the default (null) value.`},
{ID: `T`, Description: `A therapeutic substitution was dispensed.`}}},
`0168`: {ID: `0168`, Name: `Processing Priority`, Row: []Row{
{ID: `A`, Description: `As soon as possible (a priority lower than stat)`},
{ID: `B`, Description: `Do at bedside or portable (may be used with other codes)`},
{ID: `C`, Description: `Measure continuously (e.g., arterial line blood pressure)`},
{ID: `P`, Description: `Preoperative (to be done prior to surgery)`},
{ID: `R`, Description: `Routine`},
{ID: `S`, Description: `Stat (do immediately)`},
{ID: `T`, Description: `Timing critical (do as near as possible to requested time)`}}},
`0169`: {ID: `0169`, Name: `Reporting Priority`, Row: []Row{
{ID: `C`, Description: `Call back results`},
{ID: `R`, Description: `Rush reporting`}}},
`0170`: {ID: `0170`, Name: `Derived Specimen`, Row: []Row{
{ID: `C`, Description: `Child Observation`},
{ID: `N`, Description: `Not Applicable`},
{ID: `P`, Description: `Parent Observation`}}},
`0171`: {ID: `0171`, Name: `Citizenship`, Row: []Row{}},
`0172`: {ID: `0172`, Name: `Veterans Military Status`, Row: []Row{}},
`0173`: {ID: `0173`, Name: `Coordination of Benefits`, Row: []Row{
{ID: `CO`, Description: `Coordination`},
{ID: `IN`, Description: `Independent`}}},
`0174`: {ID: `0174`, Name: `Nature of Service/Test/Observation`, Row: []Row{
{ID: `A`, Description: `Atomic service/test/observation (test code or treatment code)`},
{ID: `C`, Description: `Single observation calculated via a rule or formula from other independent observations (e.g., Alveolar-arterial ratio, cardiac output)`},
{ID: `F`, Description: `Functional procedure that may consist of one or more interrelated measures (e.g., glucose tolerance test, creatinine clearance), usually done at different times and/or on different specimens`},
{ID: `P`, Description: `Profile or battery consisting of many independent atomic observations (e.g., SMA12, electrolytes), usually done at one instrument on one specimen`},
{ID: `S`, Description: `Superset-a set of batteries or procedures ordered under a single code unit but processed as separate batteries (e.g., routines = CBC, UA, electrolytes)<p>This set indicates that the code being described is used to order multiple service/test/observation b`}}},
`0175`: {ID: `0175`, Name: `Master File Identifier Code`, Row: []Row{
{ID: `CDM`, Description: `Charge description master file`},
{ID: `CLN`, Description: `Clinic master file`},
{ID: `CMA`, Description: `Clinical study with phases and scheduled master file`},
{ID: `CMB`, Description: `Clinical study without phases but with scheduled master file`},
{ID: `INV`, Description: `Inventory master file`},
{ID: `LOC`, Description: `Location master file`},
{ID: `OMA`, Description: `Numerical observation master file`},
{ID: `OMB`, Description: `Categorical observation master file`},
{ID: `OMC`, Description: `Observation batteries master file`},
{ID: `OMD`, Description: `Calculated observations master file`},
{ID: `OME`, Description: `Other Observation/Service Item master file`},
{ID: `PRA`, Description: `Practitioner master file`},
{ID: `STF`, Description: `Staff master file`}}},
`0177`: {ID: `0177`, Name: `Confidentiality Code`, Row: []Row{
{ID: `AID`, Description: `AIDS patient`},
{ID: `EMP`, Description: `Employee`},
{ID: `ETH`, Description: `Alcohol/drug treatment patient`},
{ID: `HIV`, Description: `HIV(+) patient`},
{ID: `PSY`, Description: `Psychiatric patient`},
{ID: `R`, Description: `Restricted`},
{ID: `U`, Description: `Usual control`},
{ID: `UWM`, Description: `Unwed mother`},
{ID: `V`, Description: `Very restricted`},
{ID: `VIP`, Description: `Very important person or celebrity`}}},
`0178`: {ID: `0178`, Name: `File Level Event Code`, Row: []Row{
{ID: `REP`, Description: `Replace current version of this master file with the version contained in this message`},
{ID: `UPD`, Description: `Change file records as defined in the record-level event codes for each record that follows`}}},
`0179`: {ID: `0179`, Name: `Response Level`, Row: []Row{
{ID: `AL`, Description: `Always. All MFA segments (whether denoting errors or not) must be returned via the application-level acknowledgment message`},
{ID: `ER`, Description: `Error/Reject conditions only. Only MFA segments denoting errors must be returned via the application-level acknowledgment for this message`},
{ID: `NE`, Description: `Never. No application-level response needed`},
{ID: `SU`, Description: `Success. Only MFA segments denoting success must be returned via the application-level acknowledgment for this message`}}},
`0180`: {ID: `0180`, Name: `Record-level Event Code`, Row: []Row{
{ID: `MAC`, Description: `Reactivate deactivated record`},
{ID: `MAD`, Description: `Add record to master file`},
{ID: `MDC`, Description: `Deactivate: discontinue using record in master file, but do not delete from database`},
{ID: `MDL`, Description: `Delete record from master file`},
{ID: `MUP`, Description: `Update record for master file`}}},
`0181`: {ID: `0181`, Name: `MFN Record-level Error Return`, Row: []Row{
{ID: `S`, Description: `Successful posting of the record defined by the MFE segment`},
{ID: `U`, Description: `Unsuccessful posting of the record defined by the MFE segment`}}},
`0182`: {ID: `0182`, Name: `Staff type`, Row: []Row{}},
`0183`: {ID: `0183`, Name: `Active/Inactive`, Row: []Row{
{ID: `A`, Description: `Active Staff`},
{ID: `I`, Description: `Inactive Staff`}}},
`0184`: {ID: `0184`, Name: `Department`, Row: []Row{}},
`0185`: {ID: `0185`, Name: `Preferred Method of Contact`, Row: []Row{
{ID: `B`, Description: `Beeper Number`},
{ID: `C`, Description: `Cellular Phone Number`},
{ID: `E`, Description: `E-Mail Address (for backward compatibility)`},
{ID: `F`, Description: `FAX Number`},
{ID: `H`, Description: `Home Phone Number`},
{ID: `O`, Description: `Office Phone Number`}}},
`0186`: {ID: `0186`, Name: `Practitioner Category`, Row: []Row{}},
`0187`: {ID: `0187`, Name: `Provider Billing`, Row: []Row{
{ID: `I`, Description: `Institution bills for provider`},
{ID: `P`, Description: `Provider does own billing`}}},
`0188`: {ID: `0188`, Name: `Operator ID`, Row: []Row{}},
`0189`: {ID: `0189`, Name: `Ethnic Group`, Row: []Row{
{ID: `H`, Description: `Hispanic or Latino`},
{ID: `N`, Description: `Not Hispanic or Latino`},
{ID: `U`, Description: `Unknown`}}},
`0190`: {ID: `0190`, Name: `Address Type`, Row: []Row{
{ID: `B`, Description: `Firm/Business`},
{ID: `BA`, Description: `Bad address`},
{ID: `BDL`, Description: `Birth delivery location (address where birth occurred)`},
{ID: `BI`, Description: `Billing Address`},
{ID: `BR`, Description: `Residence at birth (home address at time of birth)`},
{ID: `C`, Description: `Current Or Temporary`},
{ID: `F`, Description: `Country Of Origin`},
{ID: `H`, Description: `Home`},
{ID: `L`, Description: `Legal Address`},
{ID: `M`, Description: `Mailing`},
{ID: `N`, Description: `Birth (nee) (birth address, not otherwise specified)`},
{ID: `O`, Description: `Office/Business`},
{ID: `P`, Description: `Permanent`},
{ID: `RH`, Description: `Registry home. Refers to the information system, typically managed by a public health agency, that stores patient information such as immunization histories or cancer data, regardless of where the patient obtains services.`},
{ID: `S`, Description: `Service Location`},
{ID: `SH`, Description: `Shipping Address`},
{ID: `TM`, Description: `Tube Address`},
{ID: `V`, Description: `Vacation`}}},
`0191`: {ID: `0191`, Name: `Type of Referenced Data`, Row: []Row{
{ID: `AP`, Description: `Other application data, typically uninterpreted binary data (HL7 V2.3 and later)`},
{ID: `AU`, Description: `Audio data (HL7 V2.3 and later)`},
{ID: `FT`, Description: `Formatted text (HL7 V2.2 only)`},
{ID: `IM`, Description: `Image data (HL7 V2.3 and later)`},
{ID: `multipart`, Description: `MIME multipart package`},
{ID: `NS`, Description: `Non-scanned image (HL7 V2.2 only)`},
{ID: `SD`, Description: `Scanned document (HL7 V2.2 only)`},
{ID: `SI`, Description: `Scanned image (HL7 V2.2 only)`},
{ID: `TEXT`, Description: `Machine readable text document (HL7 V2.3.1 and later)`},
{ID: `TX`, Description: `Machine readable text document (HL7 V2.2 only)`}}},
`0193`: {ID: `0193`, Name: `Amount Class`, Row: []Row{
{ID: `AT`, Description: `Amount`},
{ID: `LM`, Description: `Limit`},
{ID: `PC`, Description: `Percentage`},
{ID: `UL`, Description: `Unlimited`}}},
`0200`: {ID: `0200`, Name: `Name Type`, Row: []Row{
{ID: `A`, Description: `Assigned`},
{ID: `B`, Description: `Birth name`},
{ID: `BAD`, Description: `Bad Name`},
{ID: `C`, Description: `Adopted Name`},
{ID: `D`, Description: `Customary Name`},
{ID: `I`, Description: `Licensing Name`},
{ID: `K`, Description: `Business name`},
{ID: `L`, Description: `Official Registry Name`},
{ID: `M`, Description: `Maiden Name`},
{ID: `MSK`, Description: `Masked`},
{ID: `N`, Description: `Nickname`},
{ID: `NAV`, Description: `Temporarily Unavailable`},
{ID: `NB`, Description: `Newborn Name`},
{ID: `NOUSE`, Description: `No Longer To Be Used`},
{ID: `P`, Description: `Name of Partner/Spouse`},
{ID: `R`, Description: `Registered Name`},
{ID: `REL`, Description: `Religious`},
{ID: `S`, Description: `Pseudonym`},
{ID: `T`, Description: `Indigenous/Tribal`},
{ID: `TEMP`, Description: `Temporary Name`},
{ID: `U`, Description: `Unknown`}}},
`0201`: {ID: `0201`, Name: `Telecommunication Use Code`, Row: []Row{
{ID: `ASN`, Description: `Answering Service Number`},
{ID: `BPN`, Description: `Beeper Number`},
{ID: `EMR`, Description: `Emergency Number`},
{ID: `NET`, Description: `Network (email) Address`},
{ID: `ORN`, Description: `Other Residence Number`},
{ID: `PRN`, Description: `Primary Residence Number`},
{ID: `PRS`, Description: `Personal`},
{ID: `VHN`, Description: `Vacation Home Number`},
{ID: `WPN`, Description: `Work Number`}}},
`0202`: {ID: `0202`, Name: `Telecommunication Equipment Type`, Row: []Row{
{ID: `BP`, Description: `Beeper`},
{ID: `CP`, Description: `Cellular or Mobile Phone`},
{ID: `FX`, Description: `Fax`},
{ID: `Internet`, Description: `Internet Address`},
{ID: `MD`, Description: `Modem`},
{ID: `PH`, Description: `Telephone`},
{ID: `SAT`, Description: `Satellite Phone`},
{ID: `TDD`, Description: `Telecommunications Device for the Deaf`},
{ID: `TTY`, Description: `Teletypewriter`},
{ID: `X.400`, Description: `X.400 email address`}}},
`0203`: {ID: `0203`, Name: `Identifier Type`, Row: []Row{
{ID: `ACSN`, Description: `Accession ID`},
{ID: `AM`, Description: `American Express`},
{ID: `AMA`, Description: `American Medical Association Number`},
{ID: `AN`, Description: `Account number`},
{ID: `An Identifier for a provi`},
{ID: `ANC`, Description: `Account number Creditor`},
{ID: `AND`, Description: `Account number debitor`},
{ID: `ANON`, Description: `Anonymous identifier`},
{ID: `ANT`, Description: `Temporary Account Number`},
{ID: `APRN`, Description: `Advanced Practice Registered Nurse number`},
{ID: `ASID`, Description: `Ancestor Specimen ID`},
{ID: `BA`, Description: `Bank Account Number`},
{ID: `BC`, Description: `Bank Card Number`},
{ID: `BCT`, Description: `Birth Certificate`},
{ID: `BR`, Description: `Birth registry number`},
{ID: `BRN`, Description: `Breed Registry Number`},
{ID: `BSNR`, Description: `Primary physician office number`},
{ID: `CC`, Description: `Cost Center number`},
{ID: `CONM`, Description: `Change of Name Document`},
{ID: `CY`, Description: `County number`},
{ID: `CZ`, Description: `Citizenship Card`},
{ID: `DDS`, Description: `Dentist license number`},
{ID: `DEA`, Description: `Drug Enforcement Administration registration number`},
{ID: `DFN`, Description: `Drug Furnishing or prescriptive authority Number`},
{ID: `DI`, Description: `Diner's Club card`},
{ID: `DL`, Description: `Driver's license number`},
{ID: `DN`, Description: `Doctor number`},
{ID: `DO`, Description: `Osteopathic License number`},
{ID: `DP`, Description: `Diplomatic Passport`},
{ID: `DPM`, Description: `Podiatrist license number`},
{ID: `DR`, Description: `Donor Registration Number`},
{ID: `DS`, Description: `Discover Card`},
{ID: `EI`, Description: `Employee number`},
{ID: `EN`, Description: `Employer number`},
{ID: `ESN`, Description: `Staff Enterprise Number`},
{ID: `FI`, Description: `Facility ID`},
{ID: `GI`, Description: `Guarantor internal identifier`},
{ID: `GL`, Description: `General ledger number`},
{ID: `GN`, Description: `Guarantor external identifier`},
{ID: `HC`, Description: `Health Card Number`},
{ID: `IND`, Description: `Indigenous/Aboriginal`},
{ID: `JHN`, Description: `Jurisdictional health number (Canada)`},
{ID: `LACSN`, Description: `Laboratory Accession ID`},
{ID: `LANR`, Description: `Lifelong physician number`},
{ID: `LI`, Description: `Labor and industries number`},
{ID: `LN`, Description: `License number`},
{ID: `LR`, Description: `Local Registry ID`},
{ID: `MA`, Description: `Patient Medicaid number`},
{ID: `MB`, Description: `Member Number`},
{ID: `MC`, Description: `Patient's Medicare number`},
{ID: `MCD`, Description: `Practitioner Medicaid number`},
{ID: `MCN`, Description: `Microchip Number`},
{ID: `MCR`, Description: `Practitioner Medicare number`},
{ID: `MCT`, Description: `Marriage Certificate`},
{ID: `MD`, Description: `Medical License number`},
{ID: `MI`, Description: `Military ID number`},
{ID: `MR`, Description: `Medical record number`},
{ID: `MRT`, Description: `Temporary Medical Record Number`},
{ID: `MS`, Description: `MasterCard`},
{ID: `NBSNR`, Description: `Secondary physician office number`},
{ID: `NCT`, Description: `Naturalization Certificate`},
{ID: `NE`, Description: `National employer identifier`},
{ID: `NH`, Description: `National Health Plan Identifier`},
{ID: `NI`, Description: `National unique individual identifier`},
{ID: `NII`, Description: `National Insurance Organization Identifier`},
{ID: `NIIP`, Description: `National Insurance Payor Identifier (Payor)`},
{ID: `NNxxx`, Description: `National Person Identifier where the xxx is the ISO table 3166 3-character (alphabetic) country code`},
{ID: `NP`, Description: `Nurse practitioner number`},
{ID: `NPI`, Description: `National provider identifier`},
{ID: `OD`, Description: `Optometrist license number`},
{ID: `PA`, Description: `Physician Assistant number`},
{ID: `PC`, Description: `Parole Card`},
{ID: `PCN`, Description: `Penitentiary/correctional institution Number`},
{ID: `PE`, Description: `Living Subject Enterprise Number`},
{ID: `PEN`, Description: `Pension Number`},
{ID: `PI`, Description: `Patient internal identifier`},
{ID: `PN`, Description: `Person number`},
{ID: `PNT`, Description: `Temporary Living Subject Number`},
{ID: `PPIN`, Description: `Medicare/CMS Performing Provider Identification Number`},
{ID: `PPN`, Description: `Passport number`},
{ID: `PRC`, Description: `Permanent Resident Card Number`},
{ID: `PRN`, Description: `Provider number`},
{ID: `PT`, Description: `Patient external identifier`},
{ID: `QA`, Description: `QA number`},
{ID: `RI`, Description: `Resource identifier`},
{ID: `RN`, Description: `Registered Nurse Number`},
{ID: `RPH`, Description: `Pharmacist license number`},
{ID: `RR`, Description: `Railroad Retirement number`},
{ID: `RRI`, Description: `Regional registry ID`},
{ID: `RRP`, Description: `Railroad Retirement Provider`},
{ID: `SID`, Description: `Specimen ID`},
{ID: `SL`, Description: `State license`},
{ID: `SN`, Description: `Subscriber Number`},
{ID: `SP`, Description: `Study Permit`},
{ID: `SR`, Description: `State registry ID`},
{ID: `SS`, Description: `Social Security number`},
{ID: `TAX`, Description: `Tax ID number`},
{ID: `TN`, Description: `Treaty Number/ (Canada)`},
{ID: `TPR`, Description: `Temporary Permanent Resident (Canada)`},
{ID: `U`, Description: `Unspecified identifier`},
{ID: `UPIN`, Description: `Medicare/CMS (formerly HCFA)'s Universal Physician Identification numbers`},
{ID: `USID`, Description: `Unique Specimen ID`},
{ID: `VN`, Description: `Visit number`},
{ID: `VP`, Description: `Visitor Permit`},
{ID: `VS`, Description: `VISA`},
{ID: `WC`, Description: `WIC identifier`},
{ID: `WCN`, Description: `Workers' Comp Number`},
{ID: `WP`, Description: `Work Permit`},
{ID: `XX`, Description: `Organization identifier`}}},
`0204`: {ID: `0204`, Name: `Organizational Name Type`, Row: []Row{
{ID: `A`, Description: `Alias name`},
{ID: `D`, Description: `Display name`},
{ID: `L`, Description: `Legal name`},
{ID: `SL`, Description: `Stock exchange listing name`}}},
`0205`: {ID: `0205`, Name: `Price Type`, Row: []Row{
{ID: `AP`, Description: `administrative price or handling fee`},
{ID: `DC`, Description: `direct unit cost`},
{ID: `IC`, Description: `indirect unit cost`},
{ID: `PF`, Description: `professional fee for performing provider`},
{ID: `TF`, Description: `technology fee for use of equipment`},
{ID: `TP`, Description: `total price`},
{ID: `UP`, Description: `unit price, may be based on length of procedure or service`}}},
`0206`: {ID: `0206`, Name: `Segment action code`, Row: []Row{
{ID: `A`, Description: `Add/Insert`},
{ID: `D`, Description: `Delete`},
{ID: `U`, Description: `Update`},
{ID: `X`, Description: `No Change`}}},
`0207`: {ID: `0207`, Name: `Processing Mode`, Row: []Row{
{ID: `A`, Description: `Archive`},
{ID: `I`, Description: `Initial load`},
{ID: `Not present`, Description: `Not present (the default, meaning current processing)`},
{ID: `R`, Description: `Restore from archive`},
{ID: `T`, Description: `Current processing, transmitted at intervals (scheduled or on demand)`}}},
`0208`: {ID: `0208`, Name: `Query Response Status`, Row: []Row{
{ID: `AE`, Description: `Application error`},
{ID: `AR`, Description: `Application reject`},
{ID: `NF`, Description: `No data found, no errors`},
{ID: `OK`, Description: `Data found, no errors (this is the default)`}}},
`0211`: {ID: `0211`, Name: `Alternate Character Sets`, Row: []Row{
{ID: `8859/1`, Description: `The printable characters from the ISO 8859/1 Character set`},
{ID: `8859/15`, Description: `The printable characters from the ISO 8859/15 (Latin-15)`},
{ID: `8859/2`, Description: `The printable characters from the ISO 8859/2 Character set`},
{ID: `8859/3`, Description: `The printable characters from the ISO 8859/3 Character set`},
{ID: `8859/4`, Description: `The printable characters from the ISO 8859/4 Character set`},
{ID: `8859/5`, Description: `The printable characters from the ISO 8859/5 Character set`},
{ID: `8859/6`, Description: `The printable characters from the ISO 8859/6 Character set`},
{ID: `8859/7`, Description: `The printable characters from the ISO 8859/7 Character set`},
{ID: `8859/8`, Description: `The printable characters from the ISO 8859/8 Character set`},
{ID: `8859/9`, Description: `The printable characters from the ISO 8859/9 Character set`},
{ID: `ASCII`, Description: `The printable 7-bit ASCII character set.`},
{ID: `BIG-5`, Description: `Code for Taiwanese Character Set (BIG-5)`},
{ID: `CNS 11643-1992`, Description: `Code for Taiwanese Character Set (CNS 11643-1992)`},
{ID: `GB 18030-2000`, Description: `Code for Chinese Character Set (GB 18030-2000)`},
{ID: `ISO IR14`, Description: `Code for Information Exchange (one byte)(JIS X 0201-1976).`},
{ID: `ISO IR159`, Description: `Code of the supplementary Japanese Graphic Character set for information interchange (JIS X 0212-1990).`},
{ID: `ISO IR6`, Description: `ASCII graphic character set consisting of 94 characters.`},
{ID: `ISO IR87`, Description: `Code for the Japanese Graphic Character set for information interchange (JIS X 0208-1990),`},
{ID: `KS X 1001`, Description: `Code for Korean Character Set (KS X 1001)`},
{ID: `UNICODE`, Description: `The world wide character standard from ISO/IEC 10646-1-1993`},
{ID: `UNICODE UTF-16`, Description: `UCS Transformation Format, 16-bit form`},
{ID: `UNICODE UTF-32`, Description: `UCS Transformation Format, 32-bit form`},
{ID: `UNICODE UTF-8`, Description: `UCS Transformation Format, 8-bit form`}}},
`0212`: {ID: `0212`, Name: `Nationality`, Row: []Row{}},
`0213`: {ID: `0213`, Name: `Purge Status Code`, Row: []Row{
{ID: `D`, Description: `The visit is marked for deletion and the user cannot enter new data against it.`},
{ID: `I`, Description: `The visit is marked inactive and the user cannot enter new data against it.`},
{ID: `P`, Description: `Marked for purge. User is no longer able to update the visit.`}}},
`0214`: {ID: `0214`, Name: `Special Program Code`, Row: []Row{
{ID: `CH`, Description: `Child Health Assistance`},
{ID: `ES`, Description: `Elective Surgery Program`},
{ID: `FP`, Description: `Family Planning`},
{ID: `O`, Description: `Other`},
{ID: `U`, Description: `Unknown`}}},
`0215`: {ID: `0215`, Name: `Publicity Code`, Row: []Row{
{ID: `F`, Description: `Family only`},
{ID: `N`, Description: `No Publicity`},
{ID: `O`, Description: `Other`},
{ID: `U`, Description: `Unknown`}}},
`0216`: {ID: `0216`, Name: `Patient Status Code`, Row: []Row{
{ID: `AI`, Description: `Active Inpatient`},
{ID: `DI`, Description: `Discharged Inpatient`}}},
`0217`: {ID: `0217`, Name: `Visit Priority Code`, Row: []Row{
{ID: `1`, Description: `Emergency`},
{ID: `2`, Description: `Urgent`},
{ID: `3`, Description: `Elective`}}},
`0218`: {ID: `0218`, Name: `Patient Charge Adjustment`, Row: []Row{}},
`0219`: {ID: `0219`, Name: `Recurring Service Code`, Row: []Row{}},
`0220`: {ID: `0220`, Name: `Living Arrangement`, Row: []Row{
{ID: `A`, Description: `Alone`},
{ID: `F`, Description: `Family`},
{ID: `I`, Description: `Institution`},
{ID: `R`, Description: `Relative`},
{ID: `S`, Description: `Spouse Only`},
{ID: `U`, Description: `Unknown`}}},
`0222`: {ID: `0222`, Name: `Contact Reason`, Row: []Row{}},
`0223`: {ID: `0223`, Name: `Living Dependency`, Row: []Row{
{ID: `C`, Description: `Small Children Dependent`},
{ID: `M`, Description: `Medical Supervision Required`},
{ID: `O`, Description: `Other`},
{ID: `S`, Description: `Spouse Dependent`},
{ID: `U`, Description: `Unknown`}}},
`0224`: {ID: `0224`, Name: `Transport Arranged`, Row: []Row{
{ID: `A`, Description: `Arranged`},
{ID: `N`, Description: `Not Arranged`},
{ID: `U`, Description: `Unknown`}}},
`0225`: {ID: `0225`, Name: `Escort Required`, Row: []Row{
{ID: `N`, Description: `Not Required`},
{ID: `R`, Description: `Required`},
{ID: `U`, Description: `Unknown`}}},
`0227`: {ID: `0227`, Name: `Manufacturers of Vaccines`, Row: []Row{
{ID: `AB`, Description: `Abbott Laboratories`},
{ID: `AD`, Description: `Adams Laboratories, Inc.`},
{ID: `ALP`, Description: `Alpha Therapeutic Corporation`},
{ID: `AR`, Description: `Armour`},
{ID: `AVB`, Description: `Aventis Behring L.L.C.`},
{ID: `AVI`, Description: `Aviron`},
{ID: `BA`, Description: `Baxter Healthcare Corporation`},
{ID: `BAH`, Description: `Baxter Healthcare Corporation`},
{ID: `BAY`, Description: `Bayer Corporation`},
{ID: `BP`, Description: `Berna Products`},
{ID: `BPC`, Description: `Berna Products Corporation`},
{ID: `CEN`, Description: `Centeon L.L.C.`},
{ID: `CHI`, Description: `Chiron Corporation`},
{ID: `CMP`, Description: `Celltech Medeva Pharmaceuticals`},
{ID: `CNJ`, Description: `Cangene Corporation`},
{ID: `CON`, Description: `Connaught`},
{ID: `DVC`, Description: `DynPort Vaccine Company, LLC`},
{ID: `EVN`, Description: `Evans Medical Limited`},
{ID: `GEO`, Description: `GeoVax Labs, Inc.`},
{ID: `GRE`, Description: `Greer Laboratories, Inc.`},
{ID: `IAG`, Description: `Immuno International AG`},
{ID: `IM`, Description: `Merieux`},
{ID: `IUS`, Description: `Immuno-U.S., Inc.`},
{ID: `JPN`, Description: `The Research Foundation for Microbial Diseases of Osaka University`},
{ID: `KGC`, Description: `Korea Green Cross Corporation`},
{ID: `LED`, Description: `Lederle`},
{ID: `MA`, Description: `Massachusetts Public Health Biologic Laboratories`},
{ID: `MBL`, Description: `Massachusetts Biologic Laboratories`},
{ID: `MED`, Description: `MedImmune, Inc.`},
{ID: `MIL`, Description: `Miles`},
{ID: `MIP`, Description: `Bioport Corporation`},
{ID: `MSD`, Description: `Merck & Co., Inc.`},
{ID: `NAB`, Description: `NABI`},
{ID: `NAV`, Description: `North American Vaccine, Inc.`},
{ID: `NOV`, Description: `Novartis Pharmaceutical Corporation`},
{ID: `NVX`, Description: `Novavax, Inc.`},
{ID: `NYB`, Description: `New York Blood Center`},
{ID: `ORT`, Description: `Ortho-Clinical Diagnostics`},
{ID: `OTC`, Description: `Organon Teknika Corporation`},
{ID: `OTH`, Description: `Other manufacturer`},
{ID: `PD`, Description: `Parkedale Pharmaceuticals`},
{ID: `PMC`, Description: `sanofi pasteur`},
{ID: `PRX`, Description: `Praxis Biologics`},
{ID: `PWJ`, Description: `PowderJect Pharmaceuticals`},
{ID: `SCL`, Description: `Sclavo, Inc.`},
{ID: `SI`, Description: `Swiss Serum and Vaccine Inst.`},
{ID: `SKB`, Description: `GlaxoSmithKline`},
{ID: `SOL`, Description: `Solvay Pharmaceuticals`},
{ID: `TAL`, Description: `Talecris Biotherapeutics`},
{ID: `UNK`, Description: `Unknown manufacturer`},
{ID: `USA`, Description: `United States Army Medical Research and Material Command`},
{ID: `VXG`, Description: `VaxGen`},
{ID: `WA`, Description: `Wyeth-Ayerst`},
{ID: `WAL`, Description: `Wyeth-Ayerst`},
{ID: `ZLB`, Description: `ZLB Behring`}}},
`0228`: {ID: `0228`, Name: `Diagnosis Classification`, Row: []Row{
{ID: `C`, Description: `Consultation`},
{ID: `D`, Description: `Diagnosis`},
{ID: `I`, Description: `Invasive procedure not classified elsewhere (I.V., catheter, etc.)`},
{ID: `M`, Description: `Medication (antibiotic)`},
{ID: `O`, Description: `Other`},
{ID: `R`, Description: `Radiological scheduling (not using ICDA codes)`},
{ID: `S`, Description: `Sign and symptom`},
{ID: `T`, Description: `Tissue diagnosis`}}},
`0229`: {ID: `0229`, Name: `<NAME>`, Row: []Row{
{ID: `C`, Description: `Champus`},
{ID: `G`, Description: `Managed Care Organization`},
{ID: `M`, Description: `Medicare`}}},
`0230`: {ID: `0230`, Name: `Procedure Functional Type`, Row: []Row{
{ID: `A`, Description: `Anesthesia`},
{ID: `D`, Description: `Diagnostic procedure`},
{ID: `I`, Description: `Invasive procedure not classified elsewhere (e.g., IV, catheter, etc.)`},
{ID: `P`, Description: `Procedure for treatment (therapeutic, including operations)`}}},
`0231`: {ID: `0231`, Name: `Student Status`, Row: []Row{
{ID: `F`, Description: `Full-time student`},
{ID: `N`, Description: `Not a student`},
{ID: `P`, Description: `Part-time student`}}},
`0232`: {ID: `0232`, Name: `Insurance Company Contact Reason`, Row: []Row{
{ID: `01`, Description: `Medicare claim status`},
{ID: `02`, Description: `Medicaid claim status`},
{ID: `03`, Description: `Name/address change`}}},
`0233`: {ID: `0233`, Name: `Non-Concur Code/Description`, Row: []Row{}},
`0234`: {ID: `0234`, Name: `Report Timing`, Row: []Row{
{ID: `10D`, Description: `10 day report`},
{ID: `15D`, Description: `15 day report`},
{ID: `30D`, Description: `30 day report`},
{ID: `3D`, Description: `3 day report`},
{ID: `7D`, Description: `7 day report`},
{ID: `AD`, Description: `Additional information`},
{ID: `CO`, Description: `Correction`},
{ID: `DE`, Description: `Device evaluation`},
{ID: `PD`, Description: `Periodic`},
{ID: `RQ`, Description: `Requested information`}}},
`0235`: {ID: `0235`, Name: `Report Source`, Row: []Row{
{ID: `C`, Description: `Clinical trial`},
{ID: `D`, Description: `Database/registry/poison control center`},
{ID: `E`, Description: `Distributor`},
{ID: `H`, Description: `Health professional`},
{ID: `L`, Description: `Literature`},
{ID: `M`, Description: `Manufacturer/marketing authority holder`},
{ID: `N`, Description: `Non-healthcare professional`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Patient`},
{ID: `R`, Description: `Regulatory agency`}}},
`0236`: {ID: `0236`, Name: `Event Reported To`, Row: []Row{
{ID: `D`, Description: `Distributor`},
{ID: `L`, Description: `Local facility/user facility`},
{ID: `M`, Description: `Manufacturer`},
{ID: `R`, Description: `Regulatory agency`}}},
`0237`: {ID: `0237`, Name: `Event Qualification`, Row: []Row{
{ID: `A`, Description: `Abuse`},
{ID: `B`, Description: `Unexpected beneficial effect`},
{ID: `D`, Description: `Dependency`},
{ID: `I`, Description: `Interaction`},
{ID: `L`, Description: `Lack of expect therapeutic effect`},
{ID: `M`, Description: `Misuse`},
{ID: `O`, Description: `Overdose`},
{ID: `W`, Description: `Drug withdrawal`}}},
`0238`: {ID: `0238`, Name: `Event Seriousness`, Row: []Row{
{ID: `N`, Description: `No`},
{ID: `S`, Description: `Significant`},
{ID: `Y`, Description: `Yes`}}},
`0239`: {ID: `0239`, Name: `Event Expected`, Row: []Row{
{ID: `N`, Description: `No`},
{ID: `U`, Description: `Unknown`},
{ID: `Y`, Description: `Yes`}}},
`0240`: {ID: `0240`, Name: `Event Consequence`, Row: []Row{
{ID: `C`, Description: `Congenital anomaly/birth defect`},
{ID: `D`, Description: `Death`},
{ID: `H`, Description: `Caused hospitalized`},
{ID: `I`, Description: `Incapacity which is significant, persistent or permanent`},
{ID: `J`, Description: `Disability which is significant, persistent or permanent`},
{ID: `L`, Description: `Life threatening`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Prolonged hospitalization`},
{ID: `R`, Description: `Required intervention to prevent permanent impairment/damage`}}},
`0241`: {ID: `0241`, Name: `Patient Outcome`, Row: []Row{
{ID: `D`, Description: `Died`},
{ID: `F`, Description: `Fully recovered`},
{ID: `N`, Description: `Not recovering/unchanged`},
{ID: `R`, Description: `Recovering`},
{ID: `S`, Description: `Sequelae`},
{ID: `U`, Description: `Unknown`},
{ID: `W`, Description: `Worsening`}}},
`0242`: {ID: `0242`, Name: `Primary Observer's Qualification`, Row: []Row{
{ID: `C`, Description: `Health care consumer/patient`},
{ID: `H`, Description: `Other health professional`},
{ID: `L`, Description: `Lawyer/attorney`},
{ID: `M`, Description: `Mid-level professional (nurse, nurse practitioner, physician's assistant)`},
{ID: `O`, Description: `Other non-health professional`},
{ID: `P`, Description: `Physician (osteopath, homeopath)`},
{ID: `R`, Description: `Pharmacist`}}},
`0243`: {ID: `0243`, Name: `Identity May Be Divulged`, Row: []Row{
{ID: `N`, Description: `No`},
{ID: `NA`, Description: `Not applicable`},
{ID: `Y`, Description: `Yes`}}},
`0244`: {ID: `0244`, Name: `Single Use Device`, Row: []Row{}},
`0245`: {ID: `0245`, Name: `Product Problem`, Row: []Row{}},
`0246`: {ID: `0246`, Name: `Product Available for Inspection`, Row: []Row{}},
`0247`: {ID: `0247`, Name: `Status of Evaluation`, Row: []Row{
{ID: `A`, Description: `Evaluation anticipated, but not yet begun`},
{ID: `C`, Description: `Product received in condition which made analysis impossible`},
{ID: `D`, Description: `Product discarded -- unable to follow up`},
{ID: `I`, Description: `Product remains implanted -- unable to follow up`},
{ID: `K`, Description: `Problem already known, no evaluation necessary`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Evaluation in progress`},
{ID: `Q`, Description: `Product under quarantine -- unable to follow up`},
{ID: `R`, Description: `Product under recall/corrective action`},
{ID: `U`, Description: `Product unavailable for follow up investigation`},
{ID: `X`, Description: `Product not made by company`},
{ID: `Y`, Description: `Evaluation completed`}}},
`0248`: {ID: `0248`, Name: `Product Source`, Row: []Row{
{ID: `A`, Description: `Actual product involved in incident was evaluated`},
{ID: `L`, Description: `A product from the same lot as the actual product involved was evaluated`},
{ID: `N`, Description: `A product from a controlled/non-related inventory was evaluated`},
{ID: `R`, Description: `A product from a reserve sample was evaluated`}}},
`0249`: {ID: `0249`, Name: `Generic Product`, Row: []Row{}},
`0250`: {ID: `0250`, Name: `Relatedness Assessment`, Row: []Row{
{ID: `H`, Description: `Highly probable`},
{ID: `I`, Description: `Improbable`},
{ID: `M`, Description: `Moderately probable`},
{ID: `N`, Description: `Not related`},
{ID: `S`, Description: `Somewhat probable`}}},
`0251`: {ID: `0251`, Name: `Action Taken in Response to the Event`, Row: []Row{
{ID: `DI`, Description: `Product dose or frequency of use increased`},
{ID: `DR`, Description: `Product dose or frequency of use reduced`},
{ID: `N`, Description: `None`},
{ID: `OT`, Description: `Other`},
{ID: `WP`, Description: `Product withdrawn permanently`},
{ID: `WT`, Description: `Product withdrawn temporarily`}}},
`0252`: {ID: `0252`, Name: `Causality Observations`, Row: []Row{
{ID: `AW`, Description: `Abatement of event after product withdrawn`},
{ID: `BE`, Description: `Event recurred after product reintroduced`},
{ID: `DR`, Description: `Dose response observed`},
{ID: `EX`, Description: `Alternative explanations for the event available`},
{ID: `IN`, Description: `Event occurred after product introduced`},
{ID: `LI`, Description: `Literature reports association of product with event`},
{ID: `OE`, Description: `Occurrence of event was confirmed by objective evidence`},
{ID: `OT`, Description: `Other`},
{ID: `PL`, Description: `Effect observed when patient receives placebo`},
{ID: `SE`, Description: `Similar events in past for this patient`},
{ID: `TC`, Description: `Toxic levels of product documented in blood or body fluids`}}},
`0253`: {ID: `0253`, Name: `Indirect Exposure Mechanism`, Row: []Row{
{ID: `B`, Description: `Breast milk`},
{ID: `F`, Description: `Father`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Transplacental`},
{ID: `X`, Description: `Blood product`}}},
`0254`: {ID: `0254`, Name: `Kind of Quantity`, Row: []Row{
{ID: `ABS`, Description: `Absorbance`},
{ID: `ACNC`, Description: `Concentration, Arbitrary Substance`},
{ID: `ACT`, Description: `*Activity`},
{ID: `APER`, Description: `Appearance`},
{ID: `ARB`, Description: `*Arbitrary`},
{ID: `AREA`, Description: `Area`},
{ID: `ASPECT`, Description: `Aspect`},
{ID: `CACT`, Description: `*Catalytic Activity`},
{ID: `CCNT`, Description: `*Catalytic Content`},
{ID: `CCRTO`, Description: `Catalytic Concentration Ratio`},
{ID: `CFR`, Description: `*Catalytic Fraction`},
{ID: `CLAS`, Description: `Class`},
{ID: `CNC`, Description: `*Catalytic Concentration`},
{ID: `CNST`, Description: `*Constant`},
{ID: `COEF`, Description: `*Coefficient`},
{ID: `COLOR`, Description: `Color`},
{ID: `CONS`, Description: `Consistency`},
{ID: `CRAT`, Description: `*Catalytic Rate`},
{ID: `CRTO`, Description: `Catalytic Ratio`},
{ID: `DEN`, Description: `Density`},
{ID: `DEV`, Description: `Device`},
{ID: `DIFF`, Description: `*Difference`},
{ID: `ELAS`, Description: `Elasticity`},
{ID: `ELPOT`, Description: `Electrical Potential (Voltage)`},
{ID: `ELRAT`, Description: `Electrical current (amperage)`},
{ID: `ELRES`, Description: `Electrical Resistance`},
{ID: `ENGR`, Description: `Energy`},
{ID: `ENT`, Description: `*Entitic`},
{ID: `ENTCAT`, Description: `*Entitic Catalytic Activity`},
{ID: `ENTNUM`, Description: `*Entitic Number`},
{ID: `ENTSUB`, Description: `*Entitic Substance of Amount`},
{ID: `ENTVOL`, Description: `*Entitic Volume`},
{ID: `EQL`, Description: `Equilibrium`},
{ID: `FORCE`, Description: `Mechanical force`},
{ID: `FREQ`, Description: `Frequency`},
{ID: `IMP`, Description: `Impression/ interpretation of study`},
{ID: `KINV`, Description: `*Kinematic Viscosity`},
{ID: `LEN`, Description: `Length`},
{ID: `LINC`, Description: `*Length Increment`},
{ID: `LIQ`, Description: `*Liquefaction`},
{ID: `MASS`, Description: `*Mass`},
{ID: `MCNC`, Description: `*Mass Concentration`},
{ID: `MCNT`, Description: `Mass Content`},
{ID: `MCRTO`, Description: `*Mass Concentration Ratio`},
{ID: `MFR`, Description: `*Mass Fraction`},
{ID: `MGFLUX`, Description: `Magnetic flux`},
{ID: `MINC`, Description: `*Mass Increment`},
{ID: `MORPH`, Description: `Morphology`},
{ID: `MOTIL`, Description: `Motility`},
{ID: `MRAT`, Description: `*Mass Rate`},
{ID: `MRTO`, Description: `*Mass Ratio`},
{ID: `NCNC`, Description: `*Number Concentration`},
{ID: `NCNT`, Description: `*Number Content`},
{ID: `NFR`, Description: `*Number Fraction`},
{ID: `NRTO`, Description: `*Number Ratio`},
{ID: `NUM`, Description: `*Number`},
{ID: `OD`, Description: `Optical density`},
{ID: `OSMOL`, Description: `*Osmolality`},
{ID: `PRES`, Description: `*Pressure (Partial)`},
{ID: `PRID`, Description: `Presence/Identity/Existence`},
{ID: `PWR`, Description: `Power (wattage)`},
{ID: `RANGE`, Description: `*Ranges`},
{ID: `RATIO`, Description: `*Ratios`},
{ID: `RCRLTM`, Description: `*Reciprocal Relative Time`},
{ID: `RDEN`, Description: `*Relative Density`},
{ID: `REL`, Description: `*Relative`},
{ID: `RLMCNC`, Description: `*Relative Mass Concentration`},
{ID: `RLSCNC`, Description: `*Relative Substance Concentration`},
{ID: `RLTM`, Description: `*Relative Time`},
{ID: `SATFR`, Description: `*Saturation Fraction`},
{ID: `SCNC`, Description: `*Substance Concentration`},
{ID: `SCNCIN`, Description: `*Substance Concentration Increment`},
{ID: `SCNT`, Description: `*Substance Content`},
{ID: `SCNTR`, Description: `*Substance Content Rate`},
{ID: `SCRTO`, Description: `*Substance Concentration Ratio`},
{ID: `SFR`, Description: `*Substance Fraction`},
{ID: `SHAPE`, Description: `Shape`},
{ID: `SMELL`, Description: `Smell`},
{ID: `SRAT`, Description: `*Substance Rate`},
{ID: `SRTO`, Description: `*Substance Ratio`},
{ID: `SUB`, Description: `*Substance Amount`},
{ID: `SUSC`, Description: `*Susceptibility`},
{ID: `TASTE`, Description: `Taste`},
{ID: `TEMP`, Description: `*Temperature`},
{ID: `TEMPDF`, Description: `*Temperature Difference`},
{ID: `TEMPIN`, Description: `*Temperature Increment`},
{ID: `THRMCNC`, Description: `*Threshold Mass Concentration`},
{ID: `THRSCNC`, Description: `*Threshold Substance Concentration`},
{ID: `TIME`, Description: `*Time (e.g. seconds)`},
{ID: `TITR`, Description: `*Dilution Factor (Titer)`},
{ID: `TMDF`, Description: `*Time Difference`},
{ID: `TMSTP`, Description: `*Time Stamp-Date and Time`},
{ID: `TRTO`, Description: `*Time Ratio`},
{ID: `TYPE`, Description: `*Type`},
{ID: `VCNT`, Description: `*Volume Content`},
{ID: `VEL`, Description: `*Velocity`},
{ID: `VELRT`, Description: `*Velocity Ratio`},
{ID: `VFR`, Description: `*Volume Fraction`},
{ID: `VISC`, Description: `*Viscosity`},
{ID: `VOL`, Description: `*Volume`},
{ID: `VRAT`, Description: `*Volume Rate`},
{ID: `VRTO`, Description: `*Volume Ratio`}}},
`0255`: {ID: `0255`, Name: `Duration Categories`, Row: []Row{
{ID: `*`, Description: `(asterisk) Life of the "unit." Used for blood products.`},
{ID: `12H`, Description: `12 hours`},
{ID: `1H`, Description: `1 hour`},
{ID: `1L`, Description: `1 months (30 days)`},
{ID: `1W`, Description: `1 week`},
{ID: `2.5H`, Description: `2½ hours`},
{ID: `24H`, Description: `24 hours`},
{ID: `2D`, Description: `2 days`},
{ID: `2H`, Description: `2 hours`},
{ID: `2L`, Description: `2 months`},
{ID: `2W`, Description: `2 weeks`},
{ID: `30M`, Description: `30 minutes`},
{ID: `3D`, Description: `3 days`},
{ID: `3H`, Description: `3 hours`},
{ID: `3L`, Description: `3 months`},
{ID: `3W`, Description: `3 weeks`},
{ID: `4D`, Description: `4 days`},
{ID: `4H`, Description: `4 hours`},
{ID: `4W`, Description: `4 weeks`},
{ID: `5D`, Description: `5 days`},
{ID: `5H`, Description: `5 hours`},
{ID: `6D`, Description: `6 days`},
{ID: `6H`, Description: `6 hours`},
{ID: `7H`, Description: `7 hours`},
{ID: `8H`, Description: `8 hours`},
{ID: `PT`, Description: `To identify measures at a point in time. This is a synonym for "spot" or "random" as applied to urine measurements.`}}},
`0258`: {ID: `0258`, Name: `Relationship Modifier`, Row: []Row{
{ID: `BPU`, Description: `Blood product unit`},
{ID: `CONTROL`, Description: `Control`},
{ID: `DONOR`, Description: `Donor`},
{ID: `PATIENT`, Description: `Patient`}}},
`0260`: {ID: `0260`, Name: `Patient Location Type`, Row: []Row{
{ID: `B`, Description: `Bed`},
{ID: `C`, Description: `Clinic`},
{ID: `D`, Description: `Department`},
{ID: `E`, Description: `Exam Room`},
{ID: `L`, Description: `Other Location`},
{ID: `N`, Description: `Nursing Unit`},
{ID: `O`, Description: `Operating Room`},
{ID: `R`, Description: `Room`}}},
`0261`: {ID: `0261`, Name: `Location Equipment`, Row: []Row{
{ID: `EEG`, Description: `Electro-Encephalogram`},
{ID: `EKG`, Description: `Electro-Cardiogram`},
{ID: `INF`, Description: `Infusion pump`},
{ID: `IVP`, Description: `IV pump`},
{ID: `OXY`, Description: `Oxygen`},
{ID: `SUC`, Description: `Suction`},
{ID: `VEN`, Description: `Ventilator`},
{ID: `VIT`, Description: `Vital signs monitor`}}},
`0264`: {ID: `0264`, Name: `Location Department`, Row: []Row{}},
`0265`: {ID: `0265`, Name: `Specialty Type`, Row: []Row{
{ID: `ALC`, Description: `Allergy`},
{ID: `AMB`, Description: `Ambulatory`},
{ID: `CAN`, Description: `Cancer`},
{ID: `CAR`, Description: `Coronary/cardiac care`},
{ID: `CCR`, Description: `Critical care`},
{ID: `CHI`, Description: `Chiropractic`},
{ID: `EDI`, Description: `Education`},
{ID: `EMR`, Description: `Emergency`},
{ID: `FPC`, Description: `Family planning`},
{ID: `INT`, Description: `Intensive care`},
{ID: `ISO`, Description: `Isolation`},
{ID: `NAT`, Description: `Naturopathic`},
{ID: `NBI`, Description: `Newborn, nursery, infants`},
{ID: `OBG`, Description: `Obstetrics, gynecology`},
{ID: `OBS`, Description: `Observation`},
{ID: `OTH`, Description: `Other specialty`},
{ID: `PED`, Description: `Pediatrics`},
{ID: `PHY`, Description: `General/family practice`},
{ID: `PIN`, Description: `Pediatric/neonatal intensive care`},
{ID: `PPS`, Description: `Pediatric psychiatric`},
{ID: `PRE`, Description: `Pediatric rehabilitation`},
{ID: `PSI`, Description: `Psychiatric intensive care`},
{ID: `PSY`, Description: `Psychiatric`},
{ID: `REH`, Description: `Rehabilitation`},
{ID: `SUR`, Description: `Surgery`},
{ID: `WIC`, Description: `Walk-in clinic`}}},
`0267`: {ID: `0267`, Name: `Days of the Week`, Row: []Row{
{ID: `FRI`, Description: `Friday`},
{ID: `MON`, Description: `Monday`},
{ID: `SAT`, Description: `Saturday`},
{ID: `SUN`, Description: `Sunday`},
{ID: `THU`, Description: `Thursday`},
{ID: `TUE`, Description: `Tuesday`},
{ID: `WED`, Description: `Wednesday`}}},
`0268`: {ID: `0268`, Name: `Override`, Row: []Row{
{ID: `A`, Description: `Override allowed`},
{ID: `R`, Description: `Override required`},
{ID: `X`, Description: `Override not allowed`}}},
`0269`: {ID: `0269`, Name: `Charge On Indicator`, Row: []Row{
{ID: `O`, Description: `Charge on Order`},
{ID: `R`, Description: `Charge on Result`}}},
`0270`: {ID: `0270`, Name: `Document Type`, Row: []Row{
{ID: `AR`, Description: `Autopsy report`},
{ID: `CD`, Description: `Cardiodiagnostics`},
{ID: `CN`, Description: `Consultation`},
{ID: `DI`, Description: `Diagnostic imaging`},
{ID: `DS`, Description: `Discharge summary`},
{ID: `ED`, Description: `Emergency department report`},
{ID: `HP`, Description: `History and physical examination`},
{ID: `OP`, Description: `Operative report`},
{ID: `PC`, Description: `Psychiatric consultation`},
{ID: `PH`, Description: `Psychiatric history and physical examination`},
{ID: `PN`, Description: `Procedure note`},
{ID: `PR`, Description: `Progress note`},
{ID: `SP`, Description: `Surgical pathology`},
{ID: `TS`, Description: `Transfer summary`}}},
`0271`: {ID: `0271`, Name: `Document Completion Status`, Row: []Row{
{ID: `AU`, Description: `Authenticated`},
{ID: `DI`, Description: `Dictated`},
{ID: `DO`, Description: `Documented`},
{ID: `IN`, Description: `Incomplete`},
{ID: `IP`, Description: `In Progress`},
{ID: `LA`, Description: `Legally authenticated`},
{ID: `PA`, Description: `Pre-authenticated`}}},
`0272`: {ID: `0272`, Name: `Document Confidentiality Status`, Row: []Row{
{ID: `R`, Description: `Restricted`},
{ID: `U`, Description: `Usual control`},
{ID: `V`, Description: `Very restricted`}}},
`0273`: {ID: `0273`, Name: `Document Availability Status`, Row: []Row{
{ID: `AV`, Description: `Available for patient care`},
{ID: `CA`, Description: `Deleted`},
{ID: `OB`, Description: `Obsolete`},
{ID: `UN`, Description: `Unavailable for patient care`}}},
`0275`: {ID: `0275`, Name: `Document Storage Status`, Row: []Row{
{ID: `AA`, Description: `Active and archived`},
{ID: `AC`, Description: `Active`},
{ID: `AR`, Description: `Archived (not active)`},
{ID: `PU`, Description: `Purged`}}},
`0276`: {ID: `0276`, Name: `Appointment reason codes`, Row: []Row{
{ID: `CHECKUP`, Description: `A routine check-up, such as an annual physical`},
{ID: `EMERGENCY`, Description: `Emergency appointment`},
{ID: `FOLLOWUP`, Description: `A follow up visit from a previous appointment`},
{ID: `ROUTINE`, Description: `Routine appointment - default if not valued`},
{ID: `WALKIN`, Description: `A previously unscheduled walk-in visit`}}},
`0277`: {ID: `0277`, Name: `Appointment Type Codes`, Row: []Row{
{ID: `Complete`, Description: `A request to add a completed appointment, used to maintain records of completed appointments that did not appear in the schedule (e.g., STAT, walk-in, etc.)`},
{ID: `Normal`, Description: `Routine schedule request type - default if not valued`},
{ID: `Tentative`, Description: `A request for a tentative (e.g., "penciled in") appointment`}}},
`0278`: {ID: `0278`, Name: `Filler status codes`, Row: []Row{
{ID: `Blocked`, Description: `The indicated time slot(s) is(are) blocked`},
{ID: `Booked`, Description: `The indicated appointment is booked`},
{ID: `Cancelled`, Description: `The indicated appointment was stopped from occurring (canceled prior to starting)`},
{ID: `Complete`, Description: `The indicated appointment has completed normally (was not discontinued, canceled, or deleted)`},
{ID: `Dc`, Description: `The indicated appointment was discontinued (DC'ed while in progress, discontinued parent appointment, or discontinued child appointment)`},
{ID: `Deleted`, Description: `The indicated appointment was deleted from the filler application`},
{ID: `Noshow`, Description: `The patient did not show up for the appointment`},
{ID: `Overbook`, Description: `The appointment has been confirmed; however it is confirmed in an overbooked state`},
{ID: `Pending`, Description: `Appointment has not yet been confirmed`},
{ID: `Started`, Description: `The indicated appointment has begun and is currently in progress`},
{ID: `Waitlist`, Description: `Appointment has been placed on a waiting list for a particular slot, or set of slots`}}},
`0279`: {ID: `0279`, Name: `Allow Substitution Codes`, Row: []Row{
{ID: `Confirm`, Description: `Contact the Placer Contact Person prior to making any substitutions of this resource`},
{ID: `No`, Description: `Substitution of this resource is not allowed`},
{ID: `Notify`, Description: `Notify the Placer Contact Person, through normal institutional procedures, that a substitution of this resource has been made`},
{ID: `Yes`, Description: `Substitution of this resource is allowed`}}},
`0280`: {ID: `0280`, Name: `Referral Priority`, Row: []Row{
{ID: `A`, Description: `ASAP`},
{ID: `R`, Description: `Routine`},
{ID: `S`, Description: `STAT`}}},
`0281`: {ID: `0281`, Name: `Referral Type`, Row: []Row{
{ID: `Hom`, Description: `Home Care`},
{ID: `Lab`, Description: `Laboratory`},
{ID: `Med`, Description: `Medical`},
{ID: `Psy`, Description: `Psychiatric`},
{ID: `Rad`, Description: `Radiology`},
{ID: `Skn`, Description: `Skilled Nursing`}}},
`0282`: {ID: `0282`, Name: `Referral Disposition`, Row: []Row{
{ID: `AM`, Description: `Assume Management`},
{ID: `RP`, Description: `Return Patient After Evaluation`},
{ID: `SO`, Description: `Second Opinion`},
{ID: `WR`, Description: `Send Written Report`}}},
`0283`: {ID: `0283`, Name: `Referral Status`, Row: []Row{
{ID: `A`, Description: `Accepted`},
{ID: `E`, Description: `Expired`},
{ID: `P`, Description: `Pending`},
{ID: `R`, Description: `Rejected`}}},
`0284`: {ID: `0284`, Name: `Referral Category`, Row: []Row{
{ID: `A`, Description: `Ambulatory`},
{ID: `E`, Description: `Emergency`},
{ID: `I`, Description: `Inpatient`},
{ID: `O`, Description: `Outpatient`}}},
`0285`: {ID: `0285`, Name: `Insurance Company ID Codes`, Row: []Row{}},
`0286`: {ID: `0286`, Name: `Provider Role`, Row: []Row{
{ID: `CP`, Description: `Consulting Provider`},
{ID: `PP`, Description: `Primary Care Provider`},
{ID: `RP`, Description: `Referring Provider`},
{ID: `RT`, Description: `Referred to Provider`}}},
`0287`: {ID: `0287`, Name: `Problem/Goal Action Code`, Row: []Row{
{ID: `AD`, Description: `ADD`},
{ID: `CO`, Description: `CORRECT`},
{ID: `DE`, Description: `DELETE`},
{ID: `LI`, Description: `LINK`},
{ID: `UC`, Description: `UNCHANGED *`},
{ID: `UN`, Description: `UNLINK`},
{ID: `UP`, Description: `UPDATE`}}},
`0288`: {ID: `0288`, Name: `Census Tract`, Row: []Row{}},
`0289`: {ID: `0289`, Name: `County/Parish`, Row: []Row{}},
`0291`: {ID: `0291`, Name: `Subtype of Referenced Data`, Row: []Row{
{ID: `x-hl7-cda-level-one`, Description: `HL7 Clinical Document Architecture Level One document`}}},
`0292`: {ID: `0292`, Name: `Vaccines Administered`, Row: []Row{
{ID: `01`, Description: `DTP`},
{ID: `02`, Description: `OPV`},
{ID: `03`, Description: `MMR`},
{ID: `04`, Description: `M/R`},
{ID: `05`, Description: `measles`},
{ID: `06`, Description: `rubella`},
{ID: `07`, Description: `mumps`},
{ID: `08`, Description: `Hep B, adolescent or pediatric`},
{ID: `09`, Description: `Td (adult)`},
{ID: `10`, Description: `IPV`},
{ID: `100`, Description: `pneumococcal conjugate`},
{ID: `101`, Description: `typhoid, ViCPs`},
{ID: `102`, Description: `DTP-Hib-Hep B`},
{ID: `103`, Description: `meningococcal C conjugate`},
{ID: `104`, Description: `Hep A-Hep B`},
{ID: `105`, Description: `vaccinia (smallpox) diluted`},
{ID: `106`, Description: `DTaP, 5 pertussis antigens6`},
{ID: `107`, Description: `DTaP, NOS`},
{ID: `108`, Description: `meningococcal, NOS`},
{ID: `109`, Description: `pneumococcal, NOS`},
{ID: `11`, Description: `pertussis`},
{ID: `110`, Description: `DTaP-Hep B-IPV`},
{ID: `111`, Description: `influenza, live, intranasal`},
{ID: `112`, Description: `tetanus toxoid, NOS`},
{ID: `113`, Description: `Td (adult)`},
{ID: `114`, Description: `meningococcal A,C,Y,W-135 diphtheria conjugate`},
{ID: `115`, Description: `Tdap`},
{ID: `116`, Description: `rotavirus, pentavalent`},
{ID: `117`, Description: `VZIG (IND)`},
{ID: `118`, Description: `HPV, bivalent`},
{ID: `119`, Description: `rotavirus, monovalent`},
{ID: `12`, Description: `diphtheria antitoxin`},
{ID: `120`, Description: `DTaP-Hib-IPV`},
{ID: `121`, Description: `zoster`},
{ID: `122`, Description: `rotavirus, NOS1`},
{ID: `13`, Description: `TIG`},
{ID: `14`, Description: `IG, NOS`},
{ID: `15`, Description: `influenza, split (incl. purified surface antigen)`},
{ID: `16`, Description: `influenza, whole`},
{ID: `17`, Description: `Hib, NOS`},
{ID: `18`, Description: `rabies, intramuscular injection`},
{ID: `19`, Description: `BCG`},
{ID: `20`, Description: `DTaP`},
{ID: `21`, Description: `varicella`},
{ID: `22`, Description: `DTP-Hib`},
{ID: `23`, Description: `plague`},
{ID: `24`, Description: `anthrax`},
{ID: `25`, Description: `typhoid, oral`},
{ID: `26`, Description: `cholera`},
{ID: `27`, Description: `botulinum antitoxin`},
{ID: `28`, Description: `DT (pediatric)`},
{ID: `29`, Description: `CMVIG`},
{ID: `30`, Description: `HBIG`},
{ID: `31`, Description: `Hep A, pediatric, NOS`},
{ID: `32`, Description: `meningococcal`},
{ID: `33`, Description: `pneumococcal`},
{ID: `34`, Description: `RIG`},
{ID: `35`, Description: `tetanus toxoid`},
{ID: `36`, Description: `VZIG`},
{ID: `37`, Description: `yellow fever`},
{ID: `38`, Description: `rubella/mumps`},
{ID: `39`, Description: `Japanese encephalitis`},
{ID: `40`, Description: `rabies, intradermal injection`},
{ID: `41`, Description: `typhoid, parenteral`},
{ID: `42`, Description: `Hep B, adolescent/high risk infant2`},
{ID: `43`, Description: `Hep B, adult4`},
{ID: `44`, Description: `Hep B, dialysis`},
{ID: `45`, Description: `Hep B, NOS`},
{ID: `46`, Description: `Hib (PRP-D)`},
{ID: `47`, Description: `Hib (HbOC)`},
{ID: `48`, Description: `Hib (PRP-T)`},
{ID: `49`, Description: `Hib (PRP-OMP)`},
{ID: `50`, Description: `DTaP-Hib`},
{ID: `51`, Description: `Hib-Hep B`},
{ID: `52`, Description: `Hep A, adult`},
{ID: `53`, Description: `typhoid, parenteral, AKD (U.S. military)`},
{ID: `54`, Description: `adenovirus, type 4`},
{ID: `55`, Description: `adenovirus, type 7`},
{ID: `56`, Description: `dengue fever`},
{ID: `57`, Description: `hantavirus`},
{ID: `58`, Description: `Hep C`},
{ID: `59`, Description: `Hep E`},
{ID: `60`, Description: `herpes simplex 2`},
{ID: `61`, Description: `HIV`},
{ID: `62`, Description: `HPV, quadrivalent`},
{ID: `63`, Description: `Junin virus`},
{ID: `64`, Description: `leishmaniasis`},
{ID: `65`, Description: `leprosy`},
{ID: `66`, Description: `Lyme disease`},
{ID: `67`, Description: `malaria`},
{ID: `68`, Description: `melanoma`},
{ID: `69`, Description: `parainfluenza-3`},
{ID: `70`, Description: `Q fever`},
{ID: `71`, Description: `RSV-IGIV`},
{ID: `72`, Description: `rheumatic fever`},
{ID: `73`, Description: `Rift Valley fever`},
{ID: `74`, Description: `rotavirus, tetravalent`},
{ID: `75`, Description: `vaccinia (smallpox)`},
{ID: `76`, Description: `Staphylococcus bacterio lysate`},
{ID: `77`, Description: `tick-borne encephalitis`},
{ID: `78`, Description: `tularemia vaccine`},
{ID: `79`, Description: `vaccinia immune globulin`},
{ID: `80`, Description: `VEE, live`},
{ID: `81`, Description: `VEE, inactivated`},
{ID: `82`, Description: `adenovirus, NOS1`},
{ID: `83`, Description: `Hep A, ped/adol, 2 dose`},
{ID: `84`, Description: `Hep A, ped/adol, 3 dose`},
{ID: `85`, Description: `Hep A, NOS`},
{ID: `86`, Description: `IG`},
{ID: `87`, Description: `IGIV`},
{ID: `88`, Description: `influenza, NOS`},
{ID: `89`, Description: `polio, NOS`},
{ID: `90`, Description: `rabies, NOS`},
{ID: `91`, Description: `typhoid, NOS`},
{ID: `92`, Description: `VEE, NOS`},
{ID: `93`, Description: `RSV-MAb`},
{ID: `94`, Description: `MMRV`},
{ID: `95`, Description: `TST-OT tine test`},
{ID: `96`, Description: `TST-PPD intradermal`},
{ID: `97`, Description: `TST-PPD tine test`},
{ID: `98`, Description: `TST, NOS`},
{ID: `99`, Description: `RESERVED - do not use3`},
{ID: `998`, Description: `no vaccine administered5`},
{ID: `999`, Description: `unknown`}}},
`0293`: {ID: `0293`, Name: `Billing Category`, Row: []Row{}},
`0294`: {ID: `0294`, Name: `Time Selection Criteria Parameter Class Codes`, Row: []Row{
{ID: `Fri`, Description: `An indicator that Friday is or is not preferred for the day on which the appointment will occur.`},
{ID: `Mon`, Description: `An indicator that Monday is or is not preferred for the day on which the appointment will occur.`},
{ID: `Prefend`, Description: `An indicator that there is a preferred end time for the appointment request, service or resource.`},
{ID: `Prefstart`, Description: `An indicator that there is a preferred start time for the appointment request, service or resource.`},
{ID: `Sat`, Description: `An indicator that Saturday is or is not preferred for the day on which the appointment will occur.`},
{ID: `Sun`, Description: `An indicator that Sunday is or is not preferred for the day on which the appointment will occur.`},
{ID: `Thu`, Description: `An indicator that Thursday is or is not preferred for the day on which the appointment will occur.`},
{ID: `Tue`, Description: `An indicator that Tuesday is or is not preferred for the day on which the appointment will occur.`},
{ID: `Wed`, Description: `An indicator that Wednesday is or is not preferred for the day on which the appointment will occur.`}}},
`0295`: {ID: `0295`, Name: `Handicap`, Row: []Row{}},
`0296`: {ID: `0296`, Name: `Primary Language`, Row: []Row{}},
`0297`: {ID: `0297`, Name: `CN ID Source`, Row: []Row{}},
`0298`: {ID: `0298`, Name: `CP Range Type`, Row: []Row{
{ID: `F`, Description: `Flat-rate. Apply the entire price to this interval, do not pro-rate the price if the full interval has not occurred/been consumed`},
{ID: `P`, Description: `Pro-rate. Apply this price to this interval, pro-rated by whatever portion of the interval has occurred/been consumed`}}},
`0299`: {ID: `0299`, Name: `Encoding`, Row: []Row{
{ID: `A`, Description: `No encoding - data are displayable ASCII characters.`},
{ID: `Base64`, Description: `Encoding as defined by MIME (Multipurpose Internet Mail Extensions) standard RFC 1521. Four consecutive ASCII characters represent three consecutive octets of binary data. Base64 utilizes a 65-character subset of US-ASCII, consisting of both the upper and`},
{ID: `Hex`, Description: `Hexadecimal encoding - consecutive pairs of hexadecimal digits represent consecutive single octets.`}}},
`0300`: {ID: `0300`, Name: `Namespace ID`, Row: []Row{}},
`0301`: {ID: `0301`, Name: `Universal ID Type`, Row: []Row{
{ID: `CLIA`, Description: `Clinical Laboratory Improvement Amendments. Allows for the ability to designate organization identifier as a "CLIA" assigned number (for labs)`},
{ID: `CLIP`, Description: `Clinical laboratory Improvement Program. Allows for the ability to designate organization identifier as a "CLIP" assigned number (for labs). Used by US Department of Defense.`},
{ID: `DNS`, Description: `An Internet host name, in accordance with RFC 1035; or an IP address. Either in ASCII or as integers, with periods between components ("dotted" notation).`},
{ID: `EUI64`, Description: `IEEE 64-bit Extended Unique Identifier is comprised of a 24-bit company identifier and a 40-bit instance identifier. The value shall be formatted as 16 ASCII HEX digits, for example, "AABBCC1122334455". The 24-bit company identifier, formally known as `},
{ID: `GUID`, Description: `Same as UUID.`},
{ID: `HCD`, Description: `The CEN Healthcare Coding Scheme Designator`},
{ID: `HL7`, Description: `HL7 registration schemes`},
{ID: `ISO`, Description: `An International Standards Organization Object Identifier (OID), in accordance with ISO/IEC 8824. Formatted as decimal digits separated by periods; recommended limit of 64 characters`},
{ID: `L,M,N`, Description: `Locally defined coding entity identifier.`},
{ID: `Random`, Description: `Usually a base64 encoded string of random bits.<p>Note: Random IDs are typically used for instance identifiers, rather than an identifier of an Assigning Authority that issues instance identifiers`},
{ID: `URI`, Description: `Uniform Resource Identifier`},
{ID: `UUID`, Description: `The DCE Universal Unique Identifier, in accordance with RFC 4122. Recommended format is 32 hexadecimal digits separated by hyphens, in the digit grouping 8-4-4-4-12`},
{ID: `x400`, Description: `An X.400 MHS identifier. Recommended format is in accordance with RFC 1649`},
{ID: `x500`, Description: `An X.500 directory name`}}},
`0302`: {ID: `0302`, Name: `Point of Care`, Row: []Row{}},
`0303`: {ID: `0303`, Name: `Room`, Row: []Row{}},
`0304`: {ID: `0304`, Name: `Bed`, Row: []Row{}},
`0305`: {ID: `0305`, Name: `Person Location Type`, Row: []Row{
{ID: `C`, Description: `Clinic`},
{ID: `D`, Description: `Department`},
{ID: `H`, Description: `Home`},
{ID: `N`, Description: `Nursing Unit`},
{ID: `O`, Description: `Provider's Office`},
{ID: `P`, Description: `Phone`},
{ID: `S`, Description: `SNF`}}},
`0306`: {ID: `0306`, Name: `Location Status`, Row: []Row{}},
`0307`: {ID: `0307`, Name: `Building`, Row: []Row{}},
`0308`: {ID: `0308`, Name: `Floor`, Row: []Row{}},
`0309`: {ID: `0309`, Name: `Coverage Type`, Row: []Row{
{ID: `B`, Description: `Both hospital and physician`},
{ID: `H`, Description: `Hospital/institutional`},
{ID: `P`, Description: `Physician/professional`},
{ID: `RX`, Description: `Pharmacy`}}},
`0311`: {ID: `0311`, Name: `Job Status`, Row: []Row{
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Permanent`},
{ID: `T`, Description: `Temporary`},
{ID: `U`, Description: `Unknown`}}},
`0312`: {ID: `0312`, Name: `Policy Scope`, Row: []Row{}},
`0313`: {ID: `0313`, Name: `Policy Source`, Row: []Row{}},
`0315`: {ID: `0315`, Name: `Living Will Code`, Row: []Row{
{ID: `F`, Description: `Yes, patient has a living will but it is not on file`},
{ID: `I`, Description: `No, patient does not have a living will but information was provided`},
{ID: `N`, Description: `No, patient does not have a living will and no information was provided`},
{ID: `U`, Description: `Unknown`},
{ID: `Y`, Description: `Yes, patient has a living will`}}},
`0316`: {ID: `0316`, Name: `Organ Donor Code`, Row: []Row{
{ID: `F`, Description: `Yes, patient is a documented donor, but documentation is not on file`},
{ID: `I`, Description: `No, patient is not a documented donor, but information was provided`},
{ID: `N`, Description: `No, patient has not agreed to be a donor`},
{ID: `P`, Description: `Patient leaves organ donation decision to a specific person`},
{ID: `R`, Description: `Patient leaves organ donation decision to relatives`},
{ID: `U`, Description: `Unknown`},
{ID: `Y`, Description: `Yes, patient is a documented donor and documentation is on file`}}},
`0319`: {ID: `0319`, Name: `Department Cost Center`, Row: []Row{}},
`0320`: {ID: `0320`, Name: `Item Natural Account Code`, Row: []Row{}},
`0321`: {ID: `0321`, Name: `Dispense Method`, Row: []Row{
{ID: `AD`, Description: `Automatic Dispensing`},
{ID: `F`, Description: `Floor Stock`},
{ID: `TR`, Description: `Traditional`},
{ID: `UD`, Description: `Unit Dose`}}},
`0322`: {ID: `0322`, Name: `Completion Status`, Row: []Row{
{ID: `CP`, Description: `Complete`},
{ID: `NA`, Description: `Not Administered`},
{ID: `PA`, Description: `Partially Administered`},
{ID: `RE`, Description: `Refused`}}},
`0324`: {ID: `0324`, Name: `Location Characteristic ID`, Row: []Row{
{ID: `GEN`, Description: `Gender of patient(s)`},
{ID: `IMP`, Description: `Implant: can be used for radiation implant patients`},
{ID: `INF`, Description: `Infectious disease: this location can be used for isolation`},
{ID: `LCR`, Description: `Level of care`},
{ID: `LIC`, Description: `Licensed`},
{ID: `OVR`, Description: `Overflow`},
{ID: `PRL`, Description: `Privacy level: indicating the level of private versus non-private room`},
{ID: `SET`, Description: `Bed is set up`},
{ID: `SHA`, Description: `Shadow: a temporary holding location that does not physically exist`},
{ID: `SMK`, Description: `Smoking`},
{ID: `STF`, Description: `Bed is staffed`},
{ID: `TEA`, Description: `Teaching location`}}},
`0325`: {ID: `0325`, Name: `Location Relationship ID`, Row: []Row{
{ID: `ALI`, Description: `Location Alias(es)`},
{ID: `DTY`, Description: `Nearest dietary location`},
{ID: `LAB`, Description: `Nearest lab`},
{ID: `LB2`, Description: `Second nearest lab`},
{ID: `PAR`, Description: `Parent location`},
{ID: `RX`, Description: `Nearest pharmacy`},
{ID: `RX2`, Description: `Second nearest pharmacy`}}},
`0326`: {ID: `0326`, Name: `Visit Indicator`, Row: []Row{
{ID: `A`, Description: `Account level (default)`},
{ID: `V`, Description: `Visit level`}}},
`0327`: {ID: `0327`, Name: `Job Code`, Row: []Row{}},
`0328`: {ID: `0328`, Name: `Employee Classification`, Row: []Row{}},
`0332`: {ID: `0332`, Name: `Source Type`, Row: []Row{
{ID: `A`, Description: `Accept`},
{ID: `I`, Description: `Initiate`}}},
`0333`: {ID: `0333`, Name: `Driver's License Issuing Authority`, Row: []Row{}},
`0334`: {ID: `0334`, Name: `Disabled Person Code `, Row: []Row{
{ID: `AP`, Description: `Associated party`},
{ID: `GT`, Description: `Guarantor`},
{ID: `IN`, Description: `Insured`},
{ID: `PT`, Description: `Patient`}}},
`0335`: {ID: `0335`, Name: `Repeat Pattern`, Row: []Row{
{ID: `A`, Description: `Ante (before)`},
{ID: `BID`, Description: `twice a day at institution-specified times`},
{ID: `C`, Description: `service is provided continuously between start time and stop time`},
{ID: `D`, Description: `Cibus Diurnus (lunch)`},
{ID: `I`, Description: `Inter`},
{ID: `M`, Description: `Cibus Matutinus (breakfast)`},
{ID: `Meal Related Timings`, Description: `<timing>C ("cum")<meal>`},
{ID: `Once`, Description: `one time only.`},
{ID: `P`, Description: `Post (after)`},
{ID: `PRN`, Description: `given as needed`},
{ID: `PRNxxx`, Description: `where xxx is some frequency code`},
{ID: `Q<integer>D`, Description: `every <integer> days`},
{ID: `Q<integer>H`, Description: `every <integer> hours`},
{ID: `Q<integer>J<day#>`, Description: `repeats on a particular day of the week,`},
{ID: `Q<integer>L`, Description: `every <integer> months (Lunar cycle)`},
{ID: `Q<integer>M`, Description: `every <integer> minutes`},
{ID: `Q<integer>S`, Description: `every <integer> seconds`},
{ID: `Q<integer>W`, Description: `every <integer> weeks`},
{ID: `QAM`, Description: `in the morning at institution-specified time`},
{ID: `QHS`, Description: `every day before the hour of sleep`},
{ID: `QID`, Description: `four times a day at institution-specified times`},
{ID: `QOD`, Description: `every other day`},
{ID: `QPM`, Description: `in the evening at institution-specified time`},
{ID: `QSHIFT`, Description: `during each of three eight-hour shifts at institution-specified times`},
{ID: `TID`, Description: `three times a day at institution-specified times`},
{ID: `U <spec>`, Description: `for future use, where <spec> is an interval specification as defined by the UNIX cron specification.`},
{ID: `V`, Description: `Cibus Vespertinus (dinner)`},
{ID: `xID`, Description: `"X" times per day at institution-specified times, where X is a numeral 5 or greater.`}}},
`0336`: {ID: `0336`, Name: `Referral Reason`, Row: []Row{
{ID: `O`, Description: `Provider Ordered`},
{ID: `P`, Description: `Patient Preference`},
{ID: `S`, Description: `Second Opinion`},
{ID: `W`, Description: `Work Load`}}},
`0337`: {ID: `0337`, Name: `Certification Status`, Row: []Row{
{ID: `C`, Description: `Certified`},
{ID: `E`, Description: `Eligible`}}},
`0338`: {ID: `0338`, Name: `Practitioner ID Number Type`, Row: []Row{
{ID: `CY`, Description: `County number`},
{ID: `DEA`, Description: `Drug Enforcement Agency no.`},
{ID: `GL`, Description: `General ledger number`},
{ID: `L&I`, Description: `Labor and industries number`},
{ID: `LI`, Description: `Labor and industries number`},
{ID: `MCD`, Description: `Medicaid number`},
{ID: `MCR`, Description: `Medicare number`},
{ID: `QA`, Description: `QA number`},
{ID: `SL`, Description: `State license number`},
{ID: `TAX`, Description: `Tax ID number`},
{ID: `TRL`, Description: `Training license number`},
{ID: `UPIN`, Description: `Unique physician ID no.`}}},
`0339`: {ID: `0339`, Name: `Advanced Beneficiary Notice Code`, Row: []Row{
{ID: `1`, Description: `Service is subject to medical necessity procedures`},
{ID: `2`, Description: `Patient has been informed of responsibility, and agrees to pay for service`},
{ID: `3`, Description: `Patient has been informed of responsibility, and asks that the payer be billed`},
{ID: `4`, Description: `Advanced Beneficiary Notice has not been signed`}}},
`0340`: {ID: `0340`, Name: `Procedure Code Modifier`, Row: []Row{}},
`0341`: {ID: `0341`, Name: `Guarantor Credit Rating Code`, Row: []Row{}},
`0342`: {ID: `0342`, Name: `Military Recipient`, Row: []Row{}},
`0343`: {ID: `0343`, Name: `Military Handicapped Program Code`, Row: []Row{}},
`0344`: {ID: `0344`, Name: `Patient's Relationship to Insured`, Row: []Row{
{ID: `01`, Description: `Patient is insured`},
{ID: `02`, Description: `Spouse`},
{ID: `03`, Description: `Natural child/insured financial responsibility`},
{ID: `04`, Description: `Natural child/Insured does not have financial responsibility`},
{ID: `05`, Description: `Step child`},
{ID: `06`, Description: `Foster child`},
{ID: `07`, Description: `Ward of the court`},
{ID: `08`, Description: `Employee`},
{ID: `09`, Description: `Unknown`},
{ID: `10`, Description: `Handicapped dependent`},
{ID: `11`, Description: `Organ donor`},
{ID: `12`, Description: `Cadaver donor`},
{ID: `13`, Description: `Grandchild`},
{ID: `14`, Description: `Niece/nephew`},
{ID: `15`, Description: `Injured plaintiff`},
{ID: `16`, Description: `Sponsored dependent`},
{ID: `17`, Description: `Minor dependent of a minor dependent`},
{ID: `18`, Description: `Parent`},
{ID: `19`, Description: `Grandparent`}}},
`0345`: {ID: `0345`, Name: `Appeal Reason`, Row: []Row{}},
`0346`: {ID: `0346`, Name: `Certification Agency`, Row: []Row{}},
`0347`: {ID: `0347`, Name: `State/Province`, Row: []Row{}},
`0350`: {ID: `0350`, Name: `Occurrence Code`, Row: []Row{}},
`0351`: {ID: `0351`, Name: `Occurrence Span`, Row: []Row{}},
`0354`: {ID: `0354`, Name: `Message Structure`, Row: []Row{
{ID: `ACK`, Description: `Varies`},
{ID: `ADR_A19`},
{ID: `ADT_A01`, Description: `A01, A04, A08, A13`},
{ID: `ADT_A02`, Description: `A02`},
{ID: `ADT_A03`, Description: `A03`},
{ID: `ADT_A05`, Description: `A05, A14, A28, A31`},
{ID: `ADT_A06`, Description: `A06, A07`},
{ID: `ADT_A09`, Description: `A09, A10, A11`},
{ID: `ADT_A12`, Description: `A12`},
{ID: `ADT_A15`, Description: `A15`},
{ID: `ADT_A16`, Description: `A16`},
{ID: `ADT_A17`, Description: `A17`},
{ID: `ADT_A18`},
{ID: `ADT_A20`, Description: `A20`},
{ID: `ADT_A21`, Description: `A21, A22, A23, A25, A26, A27, A29, A32, A33`},
{ID: `ADT_A24`, Description: `A24`},
{ID: `ADT_A30`},
{ID: `ADT_A37`, Description: `A37`},
{ID: `ADT_A38`, Description: `A38`},
{ID: `ADT_A39`, Description: `A39, A40, A41, A42`},
{ID: `ADT_A43`, Description: `A43`},
{ID: `ADT_A44`, Description: `A44`},
{ID: `ADT_A45`, Description: `A45`},
{ID: `ADT_A50`, Description: `A50, A51`},
{ID: `ADT_A52`, Description: `A52, A53`},
{ID: `ADT_A54`, Description: `A54, A55`},
{ID: `ADT_A60`, Description: `A60`},
{ID: `ADT_A61`, Description: `A61, A62`},
{ID: `BAR_P01`, Description: `P01`},
{ID: `BAR_P02`, Description: `P02`},
{ID: `BAR_P05`, Description: `P05`},
{ID: `BAR_P06`, Description: `P06`},
{ID: `BAR_P10`, Description: `P10`},
{ID: `BAR_P12`, Description: `P12`},
{ID: `BPS_O29`, Description: `O29`},
{ID: `BRP_O30`, Description: `O30`},
{ID: `BRT_O32`, Description: `O32`},
{ID: `BTS_O31`, Description: `O31`},
{ID: `CCF_I22`, Description: `I22`},
{ID: `CCI_I22`, Description: `I22`},
{ID: `CCM_I21`, Description: `I21`},
{ID: `CCQ_I19`, Description: `I19`},
{ID: `CCR_I16`, Description: `I16, |17, |18`},
{ID: `CCU_I20`, Description: `I20`},
{ID: `CQU_I19`, Description: `I19`},
{ID: `CRM_C01`, Description: `C01, C02, C03, C04, C05, C06, C07, C08`},
{ID: `CSU_C09`, Description: `C09, C10, C11, C12`},
{ID: `DFT_P03`, Description: `P03`},
{ID: `DFT_P11`, Description: `P11`},
{ID: `DOC_T12`},
{ID: `EAC_U07`, Description: `U07`},
{ID: `EAN_U09`, Description: `U09`},
{ID: `EAR_U08`, Description: `U08`},
{ID: `EHC_E01`, Description: `E01`},
{ID: `EHC_E02`, Description: `E02`},
{ID: `EHC_E04`, Description: `E04`},
{ID: `EHC_E10`, Description: `E10`},
{ID: `EHC_E12`, Description: `E12`},
{ID: `EHC_E13`, Description: `E13`},
{ID: `EHC_E15`, Description: `E15`},
{ID: `EHC_E20`, Description: `E20`},
{ID: `EHC_E21`, Description: `E21`},
{ID: `EHC_E24`, Description: `E24`},
{ID: `ESR_U02`, Description: `U02`},
{ID: `ESU_U01`, Description: `U01`},
{ID: `INR_U06`, Description: `U06`},
{ID: `INU_U05`, Description: `U05`},
{ID: `LSU_U12`, Description: `U12, U13`},
{ID: `MDM_T01`, Description: `T01, T03, T05, T07, T09, T11`},
{ID: `MDM_T02`, Description: `T02, T04, T06, T08, T10`},
{ID: `MFK_M01`, Description: `M01, M02, M03, M04, M05, M06, M07, M08, M09, M10, M11`},
{ID: `MFN_M01`},
{ID: `MFN_M02`, Description: `M02`},
{ID: `MFN_M03`, Description: `M03`},
{ID: `MFN_M04`, Description: `M04`},
{ID: `MFN_M05`, Description: `M05`},
{ID: `MFN_M06`, Description: `M06`},
{ID: `MFN_M07`, Description: `M07`},
{ID: `MFN_M08`, Description: `M08`},
{ID: `MFN_M09`, Description: `M09`},
{ID: `MFN_M10`, Description: `M10`},
{ID: `MFN_M11`, Description: `M11`},
{ID: `MFN_M12`, Description: `M12`},
{ID: `MFN_M13`, Description: `M13`},
{ID: `MFN_M15`, Description: `M15`},
{ID: `MFN_M16`, Description: `M16`},
{ID: `MFN_M17`, Description: `M17`},
{ID: `MFN_Znn`, Description: `Znn`},
{ID: `MFQ_M01`, Description: `M01, M02, M03, M04, M05, M06`},
{ID: `MFR_M01`, Description: `M01, M02, M03,`},
{ID: `MFR_M04`, Description: `M04`},
{ID: `MFR_M05`, Description: `M05`},
{ID: `MFR_M06`, Description: `M06`},
{ID: `MFR_M07`, Description: `M07`},
{ID: `NMD_N02`, Description: `N02`},
{ID: `NMQ_N01`, Description: `N01`},
{ID: `NMR_N01`, Description: `N01`},
{ID: `OMB_O27`, Description: `O27`},
{ID: `OMD_O03`, Description: `O03`},
{ID: `OMG_O19`, Description: `O19`},
{ID: `OMI_O23`, Description: `O23`},
{ID: `OML_O21`, Description: `O21`},
{ID: `OML_O33`, Description: `O33`},
{ID: `OML_O35`, Description: `O35`},
{ID: `OML_O39`, Description: `O39`},
{ID: `OMN_O07`, Description: `O07`},
{ID: `OMP_O09`, Description: `O09`},
{ID: `OMS_O05`, Description: `O05`},
{ID: `OPL_O37`, Description: `O37`},
{ID: `OPR_O38`, Description: `O38`},
{ID: `OPU_R25`, Description: `R25`},
{ID: `ORA_R33`, Description: `R33`},
{ID: `ORB_O28`, Description: `O28`},
{ID: `ORD_O04`, Description: `O04`},
{ID: `ORF_R04`, Description: `R04`},
{ID: `ORG_O20`, Description: `O20`},
{ID: `ORI_O24`, Description: `O24`},
{ID: `ORL_O22`, Description: `O22`},
{ID: `ORL_O34`, Description: `O34`},
{ID: `ORL_O36`, Description: `O36`},
{ID: `ORL_O40`, Description: `O40`},
{ID: `ORM_O01`, Description: `O01`},
{ID: `ORN_O08`, Description: `O08`},
{ID: `ORP_O10`, Description: `O10`},
{ID: `ORR_O02`, Description: `O02`},
{ID: `ORS_O06`, Description: `O06`},
{ID: `ORU_R01`, Description: `R01`},
{ID: `ORU_R30`, Description: `R30`},
{ID: `ORU_W01`, Description: `W01`},
{ID: `OSM_R26`, Description: `R26`},
{ID: `OSQ_Q06`, Description: `Q06`},
{ID: `OSR_Q06`, Description: `Q06`},
{ID: `OUL_R21`, Description: `R21`},
{ID: `OUL_R22`, Description: `R22`},
{ID: `OUL_R23`, Description: `R23`},
{ID: `OUL_R24`, Description: `R24`},
{ID: `PEX_P07`, Description: `P07, P08`},
{ID: `PGL_PC6`, Description: `PC6, PC7, PC8`},
{ID: `PMU_B01`, Description: `B01, B02`},
{ID: `PMU_B03`, Description: `B03`},
{ID: `PMU_B04`, Description: `B04, B05, B06`},
{ID: `PMU_B07`, Description: `B07`},
{ID: `PMU_B08`, Description: `B08`},
{ID: `PPG_PCG`, Description: `PCC, PCG, PCH, PCJ`},
{ID: `PPP_PCB`, Description: `PCB, PCD`},
{ID: `PPR_PC1`, Description: `PC1, PC2, PC3`},
{ID: `PPT_PCL`, Description: `PCL`},
{ID: `PPV_PCA`, Description: `PCA`},
{ID: `PRR_PC5`, Description: `PC5`},
{ID: `PTR_PCF`, Description: `PCF`},
{ID: `QBP_E03`, Description: `E03`},
{ID: `QBP_E22`, Description: `E22`},
{ID: `QBP_Q11`, Description: `Q11`},
{ID: `QBP_Q13`, Description: `Q13`},
{ID: `QBP_Q15`, Description: `Q15`},
{ID: `QBP_Q21`, Description: `Q21, Q22, Q23,Q24, Q25`},
{ID: `QBP_Qnn`, Description: `Qnn`},
{ID: `QBP_Z73`, Description: `Z73`},
{ID: `QCK_Q02`, Description: `Q02`},
{ID: `QCN_J01`, Description: `J01, J02`},
{ID: `QRF_W02`, Description: `W02`},
{ID: `QRY_A19`, Description: `A19`},
{ID: `QRY_PC4`, Description: `PC4, PC9, PCE, PCK`},
{ID: `QRY_Q01`, Description: `Q01, Q26, Q27, Q28, Q29, Q30`},
{ID: `QRY_Q02`, Description: `Q02`},
{ID: `QRY_R02`, Description: `R02`},
{ID: `QRY_T12`, Description: `T12`},
{ID: `QSB_Q16`, Description: `Q16`},
{ID: `QVR_Q17`, Description: `Q17`},
{ID: `RAR_RAR`, Description: `RAR`},
{ID: `RAS_O17`, Description: `O17`},
{ID: `RCI_I05`, Description: `I05`},
{ID: `RCL_I06`, Description: `I06`},
{ID: `RDE_O11`, Description: `O11, O25`},
{ID: `RDR_RDR`, Description: `RDR`},
{ID: `RDS_O13`, Description: `O13`},
{ID: `RDY_K15`, Description: `K15`},
{ID: `REF_I12`, Description: `I12, I13, I14, I15`},
{ID: `RER_RER`, Description: `RER`},
{ID: `RGR_RGR`, Description: `RGR`},
{ID: `RGV_O15`, Description: `O15`},
{ID: `ROR_ROR`, Description: `ROR`},
{ID: `RPA_I08`, Description: `I08, I09. I10, I11`},
{ID: `RPI_I01`, Description: `I01, I04`},
{ID: `RPI_I04`, Description: `I04`},
{ID: `RPL_I02`, Description: `I02`},
{ID: `RPR_I03`, Description: `I03`},
{ID: `RQA_I08`, Description: `I08, I09, I10, I11`},
{ID: `RQC_I05`, Description: `I05, I06`},
{ID: `RQI_I01`, Description: `I01, I02, I03, I07`},
{ID: `RQP_I04`, Description: `I04`},
{ID: `RRA_O18`, Description: `O18`},
{ID: `RRD_O14`, Description: `O14`},
{ID: `RRE_O12`, Description: `O12, O26`},
{ID: `RRG_O16`, Description: `O16`},
{ID: `RRI_I12`, Description: `I12, I13, I14, I15`},
{ID: `RSP_E03`, Description: `E03`},
{ID: `RSP_E22`, Description: `E22`},
{ID: `RSP_K11`, Description: `K11`},
{ID: `RSP_K21`, Description: `K21`},
{ID: `RSP_K22`, Description: `K22`},
{ID: `RSP_K23`, Description: `K23, K24`},
{ID: `RSP_K25`, Description: `K25`},
{ID: `RSP_K31`, Description: `K31`},
{ID: `RSP_K32`, Description: `K32`},
{ID: `RSP_Q11`, Description: `Q11`},
{ID: `RSP_Z82`, Description: `Z82`},
{ID: `RSP_Z86`, Description: `Z86`},
{ID: `RSP_Z88`, Description: `Z88`},
{ID: `RSP_Z90`, Description: `Z90`},
{ID: `RTB_K13`, Description: `K13`},
{ID: `RTB_Knn`, Description: `Knn`},
{ID: `RTB_Z74`, Description: `Z74`},
{ID: `SDR_S31`, Description: `S31, S36`},
{ID: `SDR_S32`, Description: `S32, S37`},
{ID: `SIU_S12`, Description: `S12, S13, S14, S15, S16, S17, S18, S19, S20, S21, S22, S23, S24, S26`},
{ID: `SLR_S28`, Description: `S28, S29, S30, S34, S35`},
{ID: `SQM_S25`, Description: `S25`},
{ID: `SQR_S25`, Description: `S25`},
{ID: `SRM_S01`, Description: `S01, S02, S03, S04, S05, S06, S07, S08, S09, S10, S11`},
{ID: `SRR_S01`, Description: `S01, S02, S03, S04, S05, S06, S07, S08, S09, S10, S11`},
{ID: `SSR_U04`, Description: `U04`},
{ID: `SSU_U03`, Description: `U03`},
{ID: `STC_S33`, Description: `S33`},
{ID: `SUR_P09`, Description: `P09`},
{ID: `TCU_U10`, Description: `U10, U11`},
{ID: `UDM_Q05`, Description: `Q05`},
{ID: `VXQ_V01`, Description: `V01`},
{ID: `VXR_V03`, Description: `V03`},
{ID: `VXU_V04`, Description: `V04`},
{ID: `VXX_V02`, Description: `V02`}}},
`0355`: {ID: `0355`, Name: `Primary Key Value Type`, Row: []Row{
{ID: `CE`, Description: `Coded element`},
{ID: `CWE`, Description: `Coded with Exceptions`},
{ID: `PL`, Description: `Person location`}}},
`0356`: {ID: `0356`, Name: `Alternate Character Set Handling Scheme`, Row: []Row{
{ID: `<null>`, Description: `This is the default, indicating that there is no character set switching occurring in this message.`},
{ID: `2.3`, Description: `The character set switching mode specified in HL7 2.5, section 2.7.2 and section 2.A.46, "XPN - extended person name".`},
{ID: `ISO 2022-1994`, Description: `This standard is titled "Information Technology - Character Code Structure and Extension Technique". .`}}},
`0357`: {ID: `0357`, Name: `Message Error Condition Codes`, Row: []Row{
{ID: `0`, Description: `Message accepted`},
{ID: `100`, Description: `Segment sequence error`},
{ID: `101`, Description: `Required field missing`},
{ID: `102`, Description: `Data type error`},
{ID: `103`, Description: `Table value not found`},
{ID: `104`, Description: `Value too long`},
{ID: `200`, Description: `Unsupported message type`},
{ID: `201`, Description: `Unsupported event code`},
{ID: `202`, Description: `Unsupported processing id`},
{ID: `203`, Description: `Unsupported version id`},
{ID: `204`, Description: `Unknown key identifier`},
{ID: `205`, Description: `Duplicate key identifier`},
{ID: `206`, Description: `Application record locked`},
{ID: `207`, Description: `Application internal error`}}},
`0358`: {ID: `0358`, Name: `Practitioner Group`, Row: []Row{}},
`0359`: {ID: `0359`, Name: `Diagnosis Priority`, Row: []Row{
{ID: `0`, Description: `Not included in diagnosis ranking`},
{ID: `1`, Description: `The primary diagnosis`},
{ID: `2`, Description: `For ranked secondary diagnoses`}}},
`0360`: {ID: `0360`, Name: `Degree/License/Certificate`, Row: []Row{
{ID: `AA`, Description: `Associate of Arts`},
{ID: `AAS`, Description: `Associate of Applied Science`},
{ID: `ABA`, Description: `Associate of Business Administration`},
{ID: `AE`, Description: `Associate of Engineering`},
{ID: `AS`, Description: `Associate of Science`},
{ID: `BA`, Description: `Bachelor of Arts`},
{ID: `BBA`, Description: `Bachelor of Business Administration`},
{ID: `BE`, Description: `Bachelor or Engineering`},
{ID: `BFA`, Description: `Bachelor of Fine Arts`},
{ID: `BN`, Description: `Bachelor of Nursing`},
{ID: `BS`, Description: `Bachelor of Science`},
{ID: `BSL`, Description: `Bachelor of Science - Law`},
{ID: `BSN`, Description: `Bachelor on Science - Nursing`},
{ID: `BT`, Description: `Bachelor of Theology`},
{ID: `CANP`, Description: `Certified Adult Nurse Practitioner`},
{ID: `CER`, Description: `Certificate`},
{ID: `CMA`, Description: `Certified Medical Assistant`},
{ID: `CNM`, Description: `Certified Nurse Midwife`},
{ID: `CNP`, Description: `Certified Nurse Practitioner`},
{ID: `CNS`, Description: `Certified Nurse Specialist`},
{ID: `CPNP`, Description: `Certified Pediatric Nurse Practitioner`},
{ID: `CRN`, Description: `Certified Registered Nurse`},
{ID: `DBA`, Description: `Doctor of Business Administration`},
{ID: `DED`, Description: `Doctor of Education`},
{ID: `DIP`, Description: `Diploma`},
{ID: `DO`, Description: `Doctor of Osteopathy`},
{ID: `EMT`, Description: `Emergency Medical Technician`},
{ID: `EMTP`, Description: `Emergency Medical Technician - Paramedic`},
{ID: `FPNP`, Description: `Family Practice Nurse Practitioner`},
{ID: `HS`, Description: `High School Graduate`},
{ID: `JD`, Description: `Juris Doctor`},
{ID: `MA`, Description: `Master of Arts`},
{ID: `MBA`, Description: `Master of Business Administration`},
{ID: `MCE`, Description: `Master of Civil Engineering`},
{ID: `MD`, Description: `Doctor of Medicine`},
{ID: `MDA`, Description: `Medical Assistant`},
{ID: `MDI`, Description: `Master of Divinity`},
{ID: `ME`, Description: `Master of Engineering`},
{ID: `MED`, Description: `Master of Education`},
{ID: `MEE`, Description: `Master of Electrical Engineering`},
{ID: `MFA`, Description: `Master of Fine Arts`},
{ID: `MME`, Description: `Master of Mechanical Engineering`},
{ID: `MS`, Description: `Master of Science`},
{ID: `MSL`, Description: `Master of Science - Law`},
{ID: `MSN`, Description: `Master of Science - Nursing`},
{ID: `MT`, Description: `Medical Technician`},
{ID: `MTH`, Description: `Master of Theology`},
{ID: `NG`, Description: `Non-Graduate`},
{ID: `NP`, Description: `Nurse Practitioner`},
{ID: `PA`, Description: `Physician Assistant`},
{ID: `PharmD`, Description: `Doctor of Pharmacy`},
{ID: `PHD`, Description: `Doctor of Philosophy`},
{ID: `PHE`, Description: `Doctor of Engineering`},
{ID: `PHS`, Description: `Doctor of Science`},
{ID: `PN`, Description: `Advanced Practice Nurse`},
{ID: `RMA`, Description: `Registered Medical Assistant`},
{ID: `RN`, Description: `Registered Nurse`},
{ID: `RPH`, Description: `Registered Pharmacist`},
{ID: `SEC`, Description: `Secretarial Certificate`},
{ID: `TS`, Description: `Trade School Graduate`}}},
`0361`: {ID: `0361`, Name: `Application`, Row: []Row{}},
`0362`: {ID: `0362`, Name: `Facility`, Row: []Row{}},
`0363`: {ID: `0363`, Name: `Assigning Authority`, Row: []Row{}},
`0364`: {ID: `0364`, Name: `Comment Type`, Row: []Row{
{ID: `1R`, Description: `Primary Reason`},
{ID: `2R`, Description: `Secondary Reason`},
{ID: `AI`, Description: `Ancillary Instructions`},
{ID: `DR`, Description: `Duplicate/Interaction Reason`},
{ID: `GI`, Description: `General Instructions`},
{ID: `GR`, Description: `General Reason`},
{ID: `PI`, Description: `Patient Instructions`},
{ID: `RE`, Description: `Remark`}}},
`0365`: {ID: `0365`, Name: `Equipment State`, Row: []Row{
{ID: `CL`, Description: `Clearing`},
{ID: `CO`, Description: `Configuring`},
{ID: `ES`, Description: `E-stopped`},
{ID: `ID`, Description: `Idle`},
{ID: `IN`, Description: `Initializing`},
{ID: `OP`, Description: `Normal Operation`},
{ID: `PA`, Description: `Pausing`},
{ID: `PD`, Description: `Paused`},
{ID: `PU`, Description: `Powered Up`}}},
`0366`: {ID: `0366`, Name: `Local/Remote Control State`, Row: []Row{
{ID: `L`, Description: `Local`},
{ID: `R`, Description: `Remote`}}},
`0367`: {ID: `0367`, Name: `Alert Level`, Row: []Row{
{ID: `C`, Description: `Critical`},
{ID: `N`, Description: `Normal`},
{ID: `S`, Description: `Serious`},
{ID: `W`, Description: `Warning`}}},
`0368`: {ID: `0368`, Name: `Remote Control Command`, Row: []Row{
{ID: `AB`, Description: `Abort`},
{ID: `CL`, Description: `Clear`},
{ID: `CN`, Description: `Clear Notification`},
{ID: `DI`, Description: `Disable Sending Events`},
{ID: `EN`, Description: `Enable Sending Events`},
{ID: `ES`, Description: `Emergency -stop`},
{ID: `EX`, Description: `Execute (command specified in field Parameters (ST) 01394)`},
{ID: `IN`, Description: `Initialize/Initiate`},
{ID: `LC`, Description: `Local Control Request`},
{ID: `LK`, Description: `Lock`},
{ID: `LO`, Description: `Load`},
{ID: `PA`, Description: `Pause`},
{ID: `RC`, Description: `Remote Control Request`},
{ID: `RE`, Description: `Resume`},
{ID: `SA`, Description: `Sampling`},
{ID: `SU`, Description: `Setup`},
{ID: `TT`, Description: `Transport To`},
{ID: `UC`, Description: `Unlock`},
{ID: `UN`, Description: `Unload`}}},
`0369`: {ID: `0369`, Name: `Specimen Role`, Row: []Row{
{ID: `B`, Description: `Blind Sample`},
{ID: `C`, Description: `Calibrator, used for initial setting of calibration`},
{ID: `E`, Description: `Electronic QC, used with manufactured reference providing signals that simulate QC results`},
{ID: `F`, Description: `Specimen used for testing proficiency of the organization performing the testing (Filler)`},
{ID: `G`, Description: `Group (where a specimen consists of multiple individual elements that are not individually identified)`},
{ID: `L`, Description: `Pool (aliquots of individual specimens combined to form a single specimen representing all of the components.)`},
{ID: `O`, Description: `Specimen used for testing Operator Proficiency`},
{ID: `P`, Description: `Patient (default if blank component value)`},
{ID: `Q`, Description: `Control specimen`},
{ID: `R`, Description: `Replicate (of patient sample as a control)`},
{ID: `V`, Description: `Verifying Calibrator, used for periodic calibration checks`}}},
`0370`: {ID: `0370`, Name: `Container Status`, Row: []Row{
{ID: `I`, Description: `Identified`},
{ID: `L`, Description: `Left Equipment`},
{ID: `M`, Description: `Missing`},
{ID: `O`, Description: `In Process`},
{ID: `P`, Description: `In Position`},
{ID: `R`, Description: `Process Completed`},
{ID: `U`, Description: `Unknown`},
{ID: `X`, Description: `Container Unavailable`}}},
`0371`: {ID: `0371`, Name: `Additive/Preservative`, Row: []Row{
{ID: `ACDA`, Description: `ACD Solution A`},
{ID: `ACDB`, Description: `ACD Solution B`},
{ID: `ACET`, Description: `Acetic Acid`},
{ID: `AMIES`, Description: `Amies transport medium`},
{ID: `BACTM`, Description: `Bacterial Transport medium`},
{ID: `BF10`, Description: `Buffered 10% formalin`},
{ID: `BOR`, Description: `Borate Boric Acid`},
{ID: `BOUIN`, Description: `Bouin's solution`},
{ID: `BSKM`, Description: `Buffered skim milk`},
{ID: `C32`, Description: `3.2% Citrate`},
{ID: `C38`, Description: `3.8% Citrate`},
{ID: `CARS`, Description: `Carson's Modified 10% formalin`},
{ID: `CARY`, Description: `Cary Blair Medium`},
{ID: `CHLTM`, Description: `Chlamydia transport medium`},
{ID: `CTAD`, Description: `CTAD (this should be spelled out if not universally understood)`},
{ID: `EDTK`, Description: `Potassium/K EDTA`},
{ID: `EDTK15`, Description: `Potassium/K EDTA 15%`},
{ID: `EDTK75`, Description: `Potassium/K EDTA 7.5%`},
{ID: `EDTN`, Description: `Sodium/Na EDTA`},
{ID: `ENT`, Description: `Enteric bacteria transport medium`},
{ID: `ENT+`, Description: `Enteric plus`},
{ID: `F10`, Description: `10% Formalin`},
{ID: `FDP`, Description: `Thrombin NIH; soybean trypsin inhibitor (Fibrin Degradation Products)`},
{ID: `FL10`, Description: `Sodium Fluoride, 10mg`},
{ID: `FL100`, Description: `Sodium Fluoride, 100mg`},
{ID: `HCL6`, Description: `6N HCL`},
{ID: `HEPA`, Description: `Ammonium heparin`},
{ID: `HEPL`, Description: `Lithium/Li Heparin`},
{ID: `HEPN`, Description: `Sodium/Na Heparin`},
{ID: `HNO3`, Description: `Nitric Acid`},
{ID: `JKM`, Description: `Jones Kendrick Medium`},
{ID: `KARN`, Description: `Karnovsky's fixative`},
{ID: `KOX`, Description: `Potassium Oxalate`},
{ID: `LIA`, Description: `Lithium iodoacetate`},
{ID: `M4`, Description: `M4`},
{ID: `M4RT`, Description: `M4-RT`},
{ID: `M5`, Description: `M5`},
{ID: `MICHTM`, Description: `Michel's transport medium`},
{ID: `MMDTM`, Description: `MMD transport medium`},
{ID: `NAF`, Description: `Sodium Fluoride`},
{ID: `NAPS`, Description: `Sodium polyanethol sulfonate 0.35% in 0.85% sodium chloride`},
{ID: `NONE`, Description: `None`},
{ID: `PAGE`, Description: `Pages's Saline`},
{ID: `PHENOL`, Description: `Phenol`},
{ID: `PVA`, Description: `PVA (polyvinylalcohol)`},
{ID: `RLM`, Description: `Reagan Lowe Medium`},
{ID: `SILICA`, Description: `Siliceous earth, 12 mg`},
{ID: `SPS`, Description: `SPS(this should be spelled out if not universally understood)`},
{ID: `SST`, Description: `Serum Separator Tube (Polymer Gel)`},
{ID: `STUTM`, Description: `Stuart transport medium`},
{ID: `THROM`, Description: `Thrombin`},
{ID: `THYMOL`, Description: `Thymol`},
{ID: `THYO`, Description: `Thyoglycollate broth`},
{ID: `TOLU`, Description: `Toluene`},
{ID: `URETM`, Description: `Ureaplasma transport medium`},
{ID: `VIRTM`, Description: `Viral Transport medium`},
{ID: `WEST`, Description: `Buffered Citrate (Westergren Sedimentation Rate)`}}},
`0372`: {ID: `0372`, Name: `Specimen Component`, Row: []Row{
{ID: `BLD`, Description: `Whole blood, homogeneous`},
{ID: `BSEP`, Description: `Whole blood, separated`},
{ID: `PLAS`, Description: `Plasma, NOS (not otherwise specified)`},
{ID: `PPP`, Description: `Platelet poor plasma`},
{ID: `PRP`, Description: `Platelet rich plasma`},
{ID: `SED`, Description: `Sediment`},
{ID: `SER`, Description: `Serum, NOS (not otherwise specified)`},
{ID: `SUP`, Description: `Supernatant`}}},
`0373`: {ID: `0373`, Name: `Treatment`, Row: []Row{
{ID: `ACID`, Description: `Acidification`},
{ID: `ALK`, Description: `Alkalization`},
{ID: `DEFB`, Description: `Defibrination`},
{ID: `FILT`, Description: `Filtration`},
{ID: `LDLP`, Description: `LDL Precipitation`},
{ID: `NEUT`, Description: `Neutralization`},
{ID: `RECA`, Description: `Recalification`},
{ID: `UFIL`, Description: `Ultrafiltration`}}},
`0374`: {ID: `0374`, Name: `System Induced Contaminants`, Row: []Row{
{ID: `CNTM`, Description: `Present, type of contamination unspecified`}}},
`0375`: {ID: `0375`, Name: `Artificial Blood`, Row: []Row{
{ID: `FLUR`, Description: `Fluorocarbons`},
{ID: `SFHB`, Description: `Stromal free hemoglobin preparations`}}},
`0376`: {ID: `0376`, Name: `Special Handling Code`, Row: []Row{
{ID: `AMB`, Description: `Ambient temperature`},
{ID: `C37`, Description: `Body temperature`},
{ID: `CAMB`, Description: `Critical ambient temperature`},
{ID: `CATM`, Description: `Protect from air`},
{ID: `CFRZ`, Description: `Critical frozen temperature`},
{ID: `CREF`, Description: `Critical refrigerated temperature`},
{ID: `DFRZ`, Description: `Deep frozen`},
{ID: `DRY`, Description: `Dry`},
{ID: `FRZ`, Description: `Frozen temperature`},
{ID: `MTLF`, Description: `Metal Free`},
{ID: `NTR`, Description: `Liquid nitrogen`},
{ID: `PRTL`, Description: `Protect from light`},
{ID: `PSA`, Description: `Do not shake`},
{ID: `PSO`, Description: `No shock`},
{ID: `REF`, Description: `Refrigerated temperature`},
{ID: `UFRZ`, Description: `Ultra frozen`},
{ID: `UPR`, Description: `Upright`}}},
`0377`: {ID: `0377`, Name: `Other Environmental Factors`, Row: []Row{
{ID: `A60`, Description: `Opened container, indoor atmosphere, 60 minutes duration`},
{ID: `ATM`, Description: `Opened container, atmosphere and duration unspecified`}}},
`0378`: {ID: `0378`, Name: `Carrier Type`, Row: []Row{}},
`0379`: {ID: `0379`, Name: `Tray Type`, Row: []Row{}},
`0380`: {ID: `0380`, Name: `Separator Type`, Row: []Row{}},
`0381`: {ID: `0381`, Name: `Cap Type`, Row: []Row{}},
`0382`: {ID: `0382`, Name: `Drug Interference`, Row: []Row{}},
`0383`: {ID: `0383`, Name: `Substance Status`, Row: []Row{
{ID: `CE`, Description: `Calibration Error`},
{ID: `CW`, Description: `Calibration Warning`},
{ID: `EE`, Description: `Expired Error`},
{ID: `EW`, Description: `Expired Warning`},
{ID: `NE`, Description: `Not Available Error`},
{ID: `NW`, Description: `Not Available Warning`},
{ID: `OE`, Description: `Other Error`},
{ID: `OK`, Description: `OK Status`},
{ID: `OW`, Description: `Other Warning`},
{ID: `QE`, Description: `QC Error`},
{ID: `QW`, Description: `QC Warning`}}},
`0384`: {ID: `0384`, Name: `Substance Type`, Row: []Row{
{ID: `CO`, Description: `Control`},
{ID: `DI`, Description: `Diluent`},
{ID: `LI`, Description: `Measurable Liquid Item`},
{ID: `LW`, Description: `Liquid Waste`},
{ID: `MR`, Description: `Multiple Test Reagent`},
{ID: `OT`, Description: `Other`},
{ID: `PT`, Description: `Pretreatment`},
{ID: `PW`, Description: `Purified Water`},
{ID: `RC`, Description: `Reagent Calibrator`},
{ID: `SC`, Description: `Countable Solid Item`},
{ID: `SR`, Description: `Single Test Reagent`},
{ID: `SW`, Description: `Solid Waste`}}},
`0385`: {ID: `0385`, Name: `Manufacturer Identifier`, Row: []Row{}},
`0386`: {ID: `0386`, Name: `Supplier Identifier`, Row: []Row{}},
`0387`: {ID: `0387`, Name: `Command Response`, Row: []Row{
{ID: `ER`, Description: `Command cannot be completed because of error condition`},
{ID: `OK`, Description: `Command completed successfully`},
{ID: `ST`, Description: `Command cannot be completed because of the status of the requested equipment`},
{ID: `TI`, Description: `Command cannot be completed within requested completion time`},
{ID: `UN`, Description: `Command cannot be completed for unknown reasons`}}},
`0388`: {ID: `0388`, Name: `Processing Type`, Row: []Row{
{ID: `E`, Description: `Evaluation`},
{ID: `P`, Description: `Regular Production`}}},
`0389`: {ID: `0389`, Name: `Analyte Repeat Status`, Row: []Row{
{ID: `D`, Description: `Repeated with dilution`},
{ID: `F`, Description: `Reflex test`},
{ID: `O`, Description: `Original, first run`},
{ID: `R`, Description: `Repeated without dilution`}}},
`0391`: {ID: `0391`, Name: `Segment Group`, Row: []Row{
{ID: `ADMINISTRATION`},
{ID: `ALLERGY`},
{ID: `APP_STATS`},
{ID: `APP_STATUS`},
{ID: `ASSOCIATED_PERSON`},
{ID: `ASSOCIATED_RX_ADMIN`},
{ID: `ASSOCIATED_RX_ORDER`},
{ID: `AUTHORIZATION`},
{ID: `AUTHORIZATION_CONTACT`},
{ID: `CERTIFICATE`},
{ID: `CLOCK`},
{ID: `CLOCK_AND_STATISTICS`},
{ID: `CLOCK_AND_STATS_WITH_NOTE`},
{ID: `COMMAND`},
{ID: `COMMAND_RESPONSE`},
{ID: `COMMON_ORDER`},
{ID: `COMPONENT`},
{ID: `COMPONENTS`},
{ID: `CONTAINER`},
{ID: `DEFINITION`},
{ID: `DIET`},
{ID: `DISPENSE`},
{ID: `ENCODED_ORDER`},
{ID: `ENCODING`},
{ID: `EXPERIENCE`},
{ID: `FINANCIAL`},
{ID: `FINANCIAL_COMMON_ORDER`},
{ID: `FINANCIAL_INSURANCE`},
{ID: `FINANCIAL_OBSERVATION`},
{ID: `FINANCIAL_ORDER`},
{ID: `FINANCIAL_PROCEDURE`},
{ID: `FINANCIAL_TIMING_QUANTITY`},
{ID: `GENERAL_RESOURCE`},
{ID: `GIVE`},
{ID: `GOAL`},
{ID: `GOAL_OBSERVATION`},
{ID: `GOAL_PATHWAY`},
{ID: `GOAL_ROLE`},
{ID: `GUARANTOR_INSURANCE`},
{ID: `INSURANCE`},
{ID: `LOCATION_RESOURCE`},
{ID: `MERGE_INFO`},
{ID: `MF`},
{ID: `MF_CDM`},
{ID: `MF_CLIN_STUDY`},
{ID: `MF_CLIN_STUDY_SCHED`},
{ID: `MF_INV_ITEM`},
{ID: `MF_LOC_DEPT`},
{ID: `MF_LOCATION`},
{ID: `MF_OBS_ATTRIBUTES`},
{ID: `MF_PHASE_SCHED_DETAIL`},
{ID: `MF_QUERY`},
{ID: `MF_SITE_DEFINED`},
{ID: `MF_STAFF`},
{ID: `MF_TEST`},
{ID: `MF_TEST_BATT_DETAIL`},
{ID: `MF_TEST_BATTERIES`},
{ID: `MF_TEST_CALC_DETAIL`},
{ID: `MF_TEST_CALCULATED`},
{ID: `MF_TEST_CAT_DETAIL`},
{ID: `MF_TEST_CATEGORICAL`},
{ID: `MF_TEST_NUMERIC`},
{ID: `NK1_TIMING_QTY`},
{ID: `NOTIFICATION`},
{ID: `OBSERVATION`},
{ID: `OBSERVATION_PRIOR`},
{ID: `OBSERVATION_REQUEST`},
{ID: `OMSERVATION`},
{ID: `ORDER`},
{ID: `ORDER_CHOICE`},
{ID: `ORDER_DETAIL`},
{ID: `ORDER_DETAIL_SUPPLEMENT`},
{ID: `ORDER_DIET`},
{ID: `ORDER_ENCODED`},
{ID: `ORDER_OBSERVATION`},
{ID: `ORDER_PRIOR`},
{ID: `ORDER_TRAY`},
{ID: `PATHWAY`},
{ID: `PATHWAY_ROLE`},
{ID: `PATIENT`},
{ID: `PATIENT_PRIOR`},
{ID: `PATIENT_RESULT`},
{ID: `PATIENT_VISIT`},
{ID: `PATIENT_VISIT_PRIOR`},
{ID: `PERSONNEL_RESOURCE`},
{ID: `PEX_CAUSE`},
{ID: `PEX_OBSERVATION`},
{ID: `PRIOR_RESULT`},
{ID: `PROBLEM`},
{ID: `PROBLEM_OBSERVATION`},
{ID: `PROBLEM_PATHWAY`},
{ID: `PROBLEM_ROLE`},
{ID: `PROCEDURE`},
{ID: `PRODUCT`},
{ID: `PRODUCT_STATUS`},
{ID: `PROVIDER`},
{ID: `PROVIDER_CONTACT`},
{ID: `QBP`},
{ID: `QRY_WITH_DETAIL`},
{ID: `QUERY_RESPONSE`},
{ID: `QUERY_RESULT_CLUSTER`},
{ID: `REQUEST`},
{ID: `RESOURCE`},
{ID: `RESOURCES`},
{ID: `RESPONSE`},
{ID: `RESULT`},
{ID: `RESULTS`},
{ID: `RESULTS_NOTES`},
{ID: `ROW_DEFINITION`},
{ID: `RX_ADMINISTRATION`},
{ID: `RX_ORDER`},
{ID: `SCHEDULE`},
{ID: `SERVICE`},
{ID: `SPECIMEN`},
{ID: `SPECIMEN_CONTAINER`},
{ID: `STAFF`},
{ID: `STUDY`},
{ID: `STUDY_OBSERVATION`},
{ID: `STUDY_PHASE`},
{ID: `STUDY_SCHEDULE`},
{ID: `TEST_CONFIGURATION`},
{ID: `TIMING`},
{ID: `TIMING_DIET`},
{ID: `TIMING_ENCODED`},
{ID: `TIMING_GIVE`},
{ID: `TIMING_PRIOR`},
{ID: `TIMING_QTY`},
{ID: `TIMING_QUANTITY`},
{ID: `TIMING_TRAY`},
{ID: `TREATMENT`},
{ID: `VISIT`}}},
`0392`: {ID: `0392`, Name: `Match Reason`, Row: []Row{
{ID: `DB`, Description: `Match on Date of Birth`},
{ID: `NA`, Description: `Match on Name (Alpha Match)`},
{ID: `NP`, Description: `Match on Name (Phonetic Match)`},
{ID: `SS`, Description: `Match on Social Security Number`}}},
`0393`: {ID: `0393`, Name: `Match Algorithms`, Row: []Row{
{ID: `LINKSOFT_2.01`, Description: `Proprietary algorithm for LinkSoft v2.01`},
{ID: `MATCHWARE_1.2`, Description: `Proprietary algorithm for MatchWare v1.2`}}},
`0394`: {ID: `0394`, Name: `Response Modality`, Row: []Row{
{ID: `B`, Description: `Batch`},
{ID: `R`, Description: `Real Time`},
{ID: `T`, Description: `Bolus (a series of responses sent at the same time without use of batch formatting)`}}},
`0395`: {ID: `0395`, Name: `Modify Indicator`, Row: []Row{
{ID: `M`, Description: `Modified Subscription`},
{ID: `N`, Description: `New Subscription`}}},
`0396`: {ID: `0396`, Name: `Coding System`, Row: []Row{
{ID: `99zzz`, Description: `Local general code where z is an alphanumeric character`},
{ID: `ACR`, Description: `American College of Radiology finding codes`},
{ID: `ALPHAID2006`, Description: `German Alpha-ID v2006`},
{ID: `ALPHAID2007`, Description: `German Alpha-ID v2007`},
{ID: `ALPHAID2008`, Description: `German Alpha-ID v2008`},
{ID: `ALPHAID2009`, Description: `German Alpha-ID v2009`},
{ID: `ALPHAID2010`, Description: `German Alpha-ID v2010`},
{ID: `ALPHAID2011`, Description: `German Alpha-ID v2011`},
{ID: `ANS+`, Description: `HL7 set of units of measure`},
{ID: `ART`, Description: `WHO Adverse Reaction Terms`},
{ID: `AS4`, Description: `ASTM E1238/ E1467 Universal`},
{ID: `AS4E`, Description: `AS4 Neurophysiology Codes`},
{ID: `ATC`, Description: `American Type Culture Collection`},
{ID: `C4`, Description: `CPT-4`},
{ID: `CAPECC`, Description: `College of American Pathologists Electronic Cancer Checklist`},
{ID: `CAS`, Description: `Chemical abstract codes`},
{ID: `CCC`, Description: `Clinical Care Classification system`},
{ID: `CD2`, Description: `CDT-2 Codes`},
{ID: `CDCA`, Description: `CDC Analyte Codes`},
{ID: `CDCEDACUITY`, Description: `CDC Emergency Department Acuity`},
{ID: `CDCM`, Description: `CDC Methods/Instruments Codes`},
{ID: `CDCOBS`, Description: `CDC BioSense RT observations (Census) - CDC`},
{ID: `CDCPHINVS`, Description: `CDC PHIN Vocabulary Coding System`},
{ID: `CDCREC`, Description: `Race & Ethnicity - CDC`},
{ID: `CDS`, Description: `CDC Surveillance`},
{ID: `CE (obsolete)`, Description: `CEN ECG diagnostic codes`},
{ID: `CLP`, Description: `CLIP`},
{ID: `CPTM`, Description: `CPT Modifier Code`},
{ID: `CST`, Description: `COSTART`},
{ID: `CVX`, Description: `CDC Vaccine Codes`},
{ID: `DCM`, Description: `DICOM Controlled Terminology`},
{ID: `E`, Description: `EUCLIDES`},
{ID: `E5`, Description: `Euclides quantity codes`},
{ID: `E6`, Description: `Euclides Lab method codes`},
{ID: `E7`, Description: `Euclides Lab equipment codes`},
{ID: `ENZC`, Description: `Enzyme Codes`},
{ID: `EPASRS`, Description: `EPA SRS`},
{ID: `FDAUNII`, Description: `Unique Ingredient Identifier (UNII)`},
{ID: `FDDC`, Description: `First DataBank Drug Codes`},
{ID: `FDDX`, Description: `First DataBank Diagnostic Codes`},
{ID: `FDK`, Description: `FDA K10`},
{ID: `FIPS5_2`, Description: `FIPS 5-2 (State)`},
{ID: `FIPS6_4`, Description: `FIPS 6-4 (County)`},
{ID: `GDRG2004`, Description: `G-DRG German DRG Codes v2004`},
{ID: `GDRG2005`, Description: `G-DRG German DRG Codes v2005`},
{ID: `GDRG2006`, Description: `G-DRG German DRG Codes v2006`},
{ID: `GDRG2007`, Description: `G-DRG German DRG Codes v2007`},
{ID: `GDRG2008`, Description: `G-DRG German DRG Codes v2008`},
{ID: `GDRG2009`, Description: `G-DRG German DRG Codes v2009`},
{ID: `GMDC2004`, Description: `German Major Diagnostic Codes v2004`},
{ID: `GMDC2005`, Description: `German Major Diagnostic Codes v2005`},
{ID: `GMDC2006`, Description: `German Major Diagnostic Codes v2006`},
{ID: `GMDC2007`, Description: `German Major Diagnostic Codes v2007`},
{ID: `GMDC2008`, Description: `German Major Diagnostic Codes v2008`},
{ID: `GMDC2009`, Description: `German Major Diagnostic Codes v2009`},
{ID: `HB`, Description: `HIBCC`},
{ID: `HCPCS`, Description: `CMS (formerly HCFA) Common Procedure Coding System`},
{ID: `HCPT`, Description: `Health Care Provider Taxonomy`},
{ID: `HHC`, Description: `Home Health Care`},
{ID: `HI`, Description: `Health Outcomes`},
{ID: `HL7nnnn`, Description: `HL7 Defined Codes where nnnn is the HL7 table number`},
{ID: `HOT`, Description: `Japanese Nationwide Medicine Code`},
{ID: `HPC`, Description: `CMS (formerly HCFA )Procedure Codes (HCPCS)`},
{ID: `I10`, Description: `ICD-10`},
{ID: `I10G2004`, Description: `ICD 10 Germany 2004`},
{ID: `I10G2005`, Description: `ICD 10 Germany 2005`},
{ID: `I10G2006`, Description: `ICD 10 Germany 2006`},
{ID: `I10P`, Description: `ICD-10 Procedure Codes`},
{ID: `I9`, Description: `ICD9`},
{ID: `I9C`, Description: `ICD-9CM`},
{ID: `I9CDX`, Description: `ICD-9CM Diagnosis codes`},
{ID: `I9CP`, Description: `ICD-9CM Procedure codes`},
{ID: `IBT`, Description: `ISBT`},
{ID: `IBTnnnn`, Description: `ISBT 128 codes where nnnn specifies a specific table within ISBT 128.`},
{ID: `IC2`, Description: `ICHPPC-2`},
{ID: `ICD10AM`, Description: `ICD-10 Australian modification`},
{ID: `ICD10CA`, Description: `ICD-10 Canada`},
{ID: `ICD10GM2007`, Description: `ICD 10 Germany v2007`},
{ID: `ICD10GM2008`, Description: `ICD 10 Germany v2008`},
{ID: `ICD10GM2009`, Description: `ICD 10 Germany v2009`},
{ID: `ICD10GM2010`, Description: `ICD 10 Germany v2010`},
{ID: `ICD10GM2011`, Description: `ICD 10 Germany v2011`},
{ID: `ICDO`, Description: `International Classification of Diseases for Oncology`},
{ID: `ICDO2`, Description: `International Classification of Disease for Oncology Second Edition`},
{ID: `ICDO3`, Description: `International Classification of Disease for Oncology Third Edition`},
{ID: `ICS`, Description: `ICCS`},
{ID: `ICSD`, Description: `International Classification of Sleep Disorders`},
{ID: `ISO`, Description: `ISO 2955.83 (units of measure) with HL7 extensions`},
{ID: `ISO3166_1`, Description: `ISO 3166-1 Country Codes`},
{ID: `ISO3166_2`, Description: `ISO 3166-2 Country subdivisions`},
{ID: `ISO4217`, Description: `ISO4217 Currency Codes`},
{ID: `ISO639`, Description: `ISO 639 Language`},
{ID: `ISOnnnn (deprecated)`, Description: `ISO Defined Codes where nnnn is the ISO table number`},
{ID: `ITIS`, Description: `Integrated Taxonomic Information System`},
{ID: `IUPC`, Description: `IUPAC/IFCC Component Codes`},
{ID: `IUPP`, Description: `IUPAC/IFCC Property Codes`},
{ID: `JC10`, Description: `JLAC/JSLM, nationwide laboratory code`},
{ID: `JC8`, Description: `Japanese Chemistry`},
{ID: `JJ1017`, Description: `Japanese Image Examination Cache`},
{ID: `L`, Description: `Local general code`},
{ID: `LB`, Description: `Local billing code`},
{ID: `LN`, Description: `Logical Observation Identifier Names and Codes (LOINC®)`},
{ID: `MCD`, Description: `Medicaid`},
{ID: `MCR`, Description: `Medicare`},
{ID: `MDC`, Description: `Medical Device Communication`},
{ID: `MDDX`, Description: `Medispan Diagnostic Codes`},
{ID: `MEDC`, Description: `Medical Economics Drug Codes`},
{ID: `MEDR`, Description: `Medical Dictionary for Drug Regulatory Affairs (MEDDRA)`},
{ID: `MEDX`, Description: `Medical Economics Diagnostic Codes`},
{ID: `MGPI`, Description: `Medispan GPI`},
{ID: `MVX`, Description: `CDC Vaccine Manufacturer Codes`},
{ID: `NAICS`, Description: `Industry (NAICS)`},
{ID: `NCPDPnnnnsss`, Description: `NCPDP code list for data element nnnn [as used in segment sss]`},
{ID: `NDA`, Description: `NANDA`},
{ID: `NDC`, Description: `National drug codes`},
{ID: `NDFRT`, Description: `NDF-RT (Drug Classification)`},
{ID: `NIC`, Description: `Nursing Interventions Classification`},
{ID: `NIP001`, Description: `Source of Information (Immunization)`},
{ID: `NIP002`, Description: `Substance refusal reason`},
{ID: `NIP004`, Description: `Vaccination - Contraindications, Precautions, and Immunities`},
{ID: `NIP007`, Description: `Vaccinated at location (facility)`},
{ID: `NIP008`, Description: `Vaccine purchased with (Type of funding)`},
{ID: `NIP009`, Description: `Reported adverse event previously`},
{ID: `NIP010`, Description: `VAERS Report type`},
{ID: `NND`, Description: `Notifiable Event (Disease/Condition) Code List`},
{ID: `NPI`, Description: `National Provider Identifier`},
{ID: `NUBC`, Description: `National Uniform Billing Committee`},
{ID: `NULLFL`, Description: `Null Flavor`},
{ID: `O301`, Description: `German Procedure Codes`},
{ID: `O3012004`, Description: `OPS Germany v2004`},
{ID: `O3012005`, Description: `OPS Germany v2005`},
{ID: `O3012006`, Description: `OPS Germany v2006`},
{ID: `OHA`, Description: `Omaha System`},
{ID: `OPS2007`, Description: `OPS Germany v2007`},
{ID: `OPS2008`, Description: `OPS Germany v2008`},
{ID: `OPS2009`, Description: `OPS Germany v2009`},
{ID: `OPS2010`, Description: `OPS Germany v2010`},
{ID: `OPS2011`, Description: `OPS Germany v2011`},
{ID: `PHINQUESTION`, Description: `CDC Public Health Information Network (PHIN) Question`},
{ID: `PLR`, Description: `CDC PHLIP Lab result codes that are not covered in SNOMED at the time of this implementation`},
{ID: `PLT`, Description: `CDC PHLIP Lab test codes, where LOINC concept is too broad or not yet available, especially as needed for ordering and or lab to lab reporting )`},
{ID: `POS`, Description: `POS Codes`},
{ID: `RC`, Description: `Read Classification`},
{ID: `RXNORM`, Description: `RxNorm`},
{ID: `SCT`, Description: `SNOMED Clinical Terms`},
{ID: `SCT2`, Description: `SNOMED Clinical Terms alphanumeric codes`},
{ID: `SDM`, Description: `SNOMED- DICOM Microglossary`},
{ID: `SIC`, Description: `Industry (SIC)`},
{ID: `SNM`, Description: `Systemized Nomenclature of Medicine (SNOMED)`},
{ID: `SNM3`, Description: `SNOMED International`},
{ID: `SNT`, Description: `SNOMED topology codes (anatomic sites)`},
{ID: `SOC`, Description: `Occupation (SOC 2000)`},
{ID: `UB04FL14`, Description: `Priority (Type) of Visit`},
{ID: `UB04FL15`, Description: `Point of Origin`},
{ID: `UB04FL17`, Description: `Patient Discharge Status`},
{ID: `UB04FL31`, Description: `Occurrence Code`},
{ID: `UB04FL35`, Description: `Occurrence Span`},
{ID: `UB04FL39`, Description: `Value Code`},
{ID: `UC`, Description: `UCDS`},
{ID: `UCUM`, Description: `UCUM code set for units of measure(from Regenstrief)`},
{ID: `UMD`, Description: `MDNS`},
{ID: `UML`, Description: `Unified Medical Language`},
{ID: `UPC`, Description: `Universal Product Code`},
{ID: `UPIN`, Description: `UPIN`},
{ID: `USPS`, Description: `United States Postal Service`},
{ID: `W1`, Description: `WHO record # drug codes (6 digit)`},
{ID: `W2`, Description: `WHO record # drug codes (8 digit)`},
{ID: `W4`, Description: `WHO record # code with ASTM extension`},
{ID: `WC`, Description: `WHO ATC`},
{ID: `X12Dennnn`, Description: `ASC X12 Code List nnnn`}}},
`0397`: {ID: `0397`, Name: `Sequencing`, Row: []Row{
{ID: `A`, Description: `Ascending`},
{ID: `AN`, Description: `Ascending, case insensitive`},
{ID: `D`, Description: `Descending`},
{ID: `DN`, Description: `Descending, case insensitive`},
{ID: `N`, Description: `None`}}},
`0398`: {ID: `0398`, Name: `Continuation Style Code`, Row: []Row{
{ID: `F`, Description: `Fragmentation`},
{ID: `I`, Description: `Interactive Continuation`}}},
`0399`: {ID: `0399`, Name: `Country Code`, Row: []Row{}},
`0401`: {ID: `0401`, Name: `Government Reimbursement Program`, Row: []Row{
{ID: `C`, Description: `Medi-Cal`},
{ID: `MM`, Description: `Medicare`}}},
`0402`: {ID: `0402`, Name: `School Type`, Row: []Row{
{ID: `D`, Description: `Dental`},
{ID: `G`, Description: `Graduate`},
{ID: `M`, Description: `Medical`},
{ID: `U`, Description: `Undergraduate`}}},
`0403`: {ID: `0403`, Name: `Language Ability`, Row: []Row{
{ID: `1`, Description: `Read`},
{ID: `2`, Description: `Write`},
{ID: `3`, Description: `Speak`},
{ID: `4`, Description: `Understand`},
{ID: `5`, Description: `Sign`}}},
`0404`: {ID: `0404`, Name: `Language Proficiency`, Row: []Row{
{ID: `1`, Description: `Excellent`},
{ID: `2`, Description: `Good`},
{ID: `3`, Description: `Fair`},
{ID: `4`, Description: `Poor`},
{ID: `5`, Description: `Some (level unknown)`},
{ID: `6`, Description: `None`}}},
`0405`: {ID: `0405`, Name: `Organization Unit`, Row: []Row{}},
`0406`: {ID: `0406`, Name: `Organization Unit Type`, Row: []Row{
{ID: `1`, Description: `Hospital`},
{ID: `2`, Description: `Physician Clinic`},
{ID: `3`, Description: `Long Term Care`},
{ID: `4`, Description: `Acute Care`},
{ID: `5`, Description: `Other`},
{ID: `H`, Description: `Home`},
{ID: `O`, Description: `Office`}}},
`0409`: {ID: `0409`, Name: `Application Change Type`, Row: []Row{
{ID: `M`, Description: `Migrates to different CPU`},
{ID: `SD`, Description: `Shut down`},
{ID: `SU`, Description: `Start up`}}},
`0411`: {ID: `0411`, Name: `Supplemental Service Information Values`, Row: []Row{}},
`0412`: {ID: `0412`, Name: `Category Identifier`, Row: []Row{}},
`0413`: {ID: `0413`, Name: `Consent Identifier`, Row: []Row{}},
`0414`: {ID: `0414`, Name: `Units of Time`, Row: []Row{}},
`0415`: {ID: `0415`, Name: `DRG Transfer Type`, Row: []Row{
{ID: `E`, Description: `DRG Exempt`},
{ID: `N`, Description: `DRG Non Exempt`}}},
`0416`: {ID: `0416`, Name: `Procedure DRG Type`, Row: []Row{
{ID: `1`, Description: `1st non-Operative`},
{ID: `2`, Description: `2nd non-Operative`},
{ID: `3`, Description: `Major Operative`},
{ID: `4`, Description: `2nd Operative`},
{ID: `5`, Description: `3rd Operative`}}},
`0417`: {ID: `0417`, Name: `Tissue Type Code`, Row: []Row{
{ID: `0`, Description: `No tissue expected`},
{ID: `1`, Description: `Insufficient Tissue`},
{ID: `2`, Description: `Not abnormal`},
{ID: `3`, Description: `Abnormal-not categorized`},
{ID: `4`, Description: `Mechanical abnormal`},
{ID: `5`, Description: `Growth alteration`},
{ID: `6`, Description: `Degeneration & necrosis`},
{ID: `7`, Description: `Non-acute inflammation`},
{ID: `8`, Description: `Non-malignant neoplasm`},
{ID: `9`, Description: `Malignant neoplasm`},
{ID: `B`, Description: `Basal cell carcinoma`},
{ID: `C`, Description: `Carcinoma-unspecified type`},
{ID: `G`, Description: `Additional tissue required`}}},
`0418`: {ID: `0418`, Name: `Procedure Priority`, Row: []Row{
{ID: `0`, Description: `the admitting procedure`},
{ID: `1`, Description: `the primary procedure`},
{ID: `2`, Description: `for ranked secondary procedures`}}},
`0421`: {ID: `0421`, Name: `Severity of Illness Code`, Row: []Row{
{ID: `MI`, Description: `Mild`},
{ID: `MO`, Description: `Moderate`},
{ID: `SE`, Description: `Severe`}}},
`0422`: {ID: `0422`, Name: `Triage Code`, Row: []Row{
{ID: `1`, Description: `Non-acute`},
{ID: `2`, Description: `Acute`},
{ID: `3`, Description: `Urgent`},
{ID: `4`, Description: `Severe`},
{ID: `5`, Description: `Dead on Arrival (DOA)`},
{ID: `99`, Description: `Other`}}},
`0423`: {ID: `0423`, Name: `Case Category Code`, Row: []Row{
{ID: `D`, Description: `Doctor's Office Closed`}}},
`0424`: {ID: `0424`, Name: `Gestation Category Code`, Row: []Row{
{ID: `1`, Description: `Premature / Pre-term`},
{ID: `2`, Description: `Full Term`},
{ID: `3`, Description: `Overdue / Post-term`}}},
`0425`: {ID: `0425`, Name: `Newborn Code`, Row: []Row{
{ID: `1`, Description: `Born in facility`},
{ID: `2`, Description: `Transfer in`},
{ID: `3`, Description: `Born en route`},
{ID: `4`, Description: `Other`},
{ID: `5`, Description: `Born at home`}}},
`0426`: {ID: `0426`, Name: `Blood Product Code`, Row: []Row{
{ID: `CRYO`, Description: `Cryoprecipitated AHF`},
{ID: `CRYOP`, Description: `Pooled Cryoprecipitate`},
{ID: `FFP`, Description: `Fresh Frozen Plasma`},
{ID: `FFPTH`, Description: `Fresh Frozen Plasma - Thawed`},
{ID: `PC`, Description: `Packed Cells`},
{ID: `PCA`, Description: `Autologous Packed Cells`},
{ID: `PCNEO`, Description: `Packed Cells - Neonatal`},
{ID: `PCW`, Description: `Washed Packed Cells`},
{ID: `PLT`, Description: `Platelet Concentrate`},
{ID: `PLTNEO`, Description: `Reduced Volume Platelets`},
{ID: `PLTP`, Description: `Pooled Platelets`},
{ID: `PLTPH`, Description: `Platelet Pheresis`},
{ID: `PLTPHLR`, Description: `Leukoreduced Platelet Pheresis`},
{ID: `RWB`, Description: `Reconstituted Whole Blood`},
{ID: `WBA`, Description: `Autologous Whole Blood`}}},
`0427`: {ID: `0427`, Name: `Risk Management Incident Code`, Row: []Row{
{ID: `B`, Description: `Body fluid exposure`},
{ID: `C`, Description: `Contaminated Substance`},
{ID: `D`, Description: `Diet Errors`},
{ID: `E`, Description: `Equipment problem`},
{ID: `F`, Description: `Patient fell (not from bed)`},
{ID: `H`, Description: `Patient fell from bed`},
{ID: `I`, Description: `Infusion error`},
{ID: `J`, Description: `Foreign object left during surgery`},
{ID: `K`, Description: `Sterile precaution violated`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Procedure error`},
{ID: `R`, Description: `Pharmaceutical error`},
{ID: `S`, Description: `Suicide Attempt`},
{ID: `T`, Description: `Transfusion error`}}},
`0428`: {ID: `0428`, Name: `Incident Type Code`, Row: []Row{
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Preventable`},
{ID: `U`, Description: `User Error`}}},
`0429`: {ID: `0429`, Name: `Production Class Code`, Row: []Row{
{ID: `BR`, Description: `Breeding/genetic stock`},
{ID: `DA`, Description: `Dairy`},
{ID: `DR`, Description: `Draft`},
{ID: `DU`, Description: `Dual Purpose`},
{ID: `LY`, Description: `Layer, Includes Multiplier flocks`},
{ID: `MT`, Description: `Meat`},
{ID: `NA`, Description: `Not Applicable`},
{ID: `OT`, Description: `Other`},
{ID: `PL`, Description: `Pleasure`},
{ID: `RA`, Description: `Racing`},
{ID: `SH`, Description: `Show`},
{ID: `U`, Description: `Unknown`}}},
`0430`: {ID: `0430`, Name: `Mode of Arrival Code`, Row: []Row{
{ID: `A`, Description: `Ambulance`},
{ID: `C`, Description: `Car`},
{ID: `F`, Description: `On foot`},
{ID: `H`, Description: `Helicopter`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Public Transport`},
{ID: `U`, Description: `Unknown`}}},
`0431`: {ID: `0431`, Name: `Recreational Drug Use Code`, Row: []Row{
{ID: `A`, Description: `Alcohol`},
{ID: `C`, Description: `Tobacco - chewed`},
{ID: `K`, Description: `Kava`},
{ID: `M`, Description: `Marijuana`},
{ID: `O`, Description: `Other`},
{ID: `T`, Description: `Tobacco - smoked`},
{ID: `U`, Description: `Unknown`}}},
`0432`: {ID: `0432`, Name: `Admission Level of Care Code`, Row: []Row{
{ID: `AC`, Description: `Acute`},
{ID: `CH`, Description: `Chronic`},
{ID: `CO`, Description: `Comatose`},
{ID: `CR`, Description: `Critical`},
{ID: `IM`, Description: `Improved`},
{ID: `MO`, Description: `Moribund`}}},
`0433`: {ID: `0433`, Name: `Precaution Code`, Row: []Row{
{ID: `A`, Description: `Aggressive`},
{ID: `B`, Description: `Blind`},
{ID: `C`, Description: `Confused`},
{ID: `D`, Description: `Deaf`},
{ID: `I`, Description: `On IV`},
{ID: `N`, Description: `"No-code" (i.e. Do not resuscitate)`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Paraplegic`},
{ID: `U`, Description: `Unknown`}}},
`0434`: {ID: `0434`, Name: `Patient Condition Code`, Row: []Row{
{ID: `A`, Description: `Satisfactory`},
{ID: `C`, Description: `Critical`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Poor`},
{ID: `S`, Description: `Stable`},
{ID: `U`, Description: `Unknown`}}},
`0435`: {ID: `0435`, Name: `Advance Directive Code`, Row: []Row{
{ID: `DNR`, Description: `Do not resuscitate`},
{ID: `N`, Description: `No directive`}}},
`0436`: {ID: `0436`, Name: `Sensitivity to Causative Agent Code`, Row: []Row{
{ID: `AD`, Description: `Adverse Reaction (Not otherwise classified)`},
{ID: `AL`, Description: `Allergy`},
{ID: `CT`, Description: `Contraindication`},
{ID: `IN`, Description: `Intolerance`},
{ID: `SE`, Description: `Side Effect`}}},
`0437`: {ID: `0437`, Name: `Alert Device Code`, Row: []Row{
{ID: `B`, Description: `Bracelet`},
{ID: `N`, Description: `Necklace`},
{ID: `W`, Description: `Wallet Card`}}},
`0438`: {ID: `0438`, Name: `Allergy Clinical Status`, Row: []Row{
{ID: `C`, Description: `Confirmed or verified`},
{ID: `D`, Description: `Doubt raised`},
{ID: `E`, Description: `Erroneous`},
{ID: `I`, Description: `Confirmed but inactive`},
{ID: `P`, Description: `Pending`},
{ID: `S`, Description: `Suspect`},
{ID: `U`, Description: `Unconfirmed`}}},
`0440`: {ID: `0440`, Name: `Data Types`, Row: []Row{
{ID: `AD`, Description: `Address`},
{ID: `AUI`, Description: `Authorization information`},
{ID: `CCD`, Description: `Charge code and date`},
{ID: `CCP`, Description: `Channel calibration parameters`},
{ID: `CD`, Description: `Channel definition`},
{ID: `CE`, Description: `Coded element`},
{ID: `CF`, Description: `Coded element with formatted values`},
{ID: `CK`, Description: `Composite ID with check digit`},
{ID: `CM`, Description: `Composite`},
{ID: `CN`, Description: `Composite ID number and name`},
{ID: `CNE`, Description: `Coded with no exceptions`},
{ID: `CNN`, Description: `Composite ID number and name simplified`},
{ID: `CP`, Description: `Composite price`},
{ID: `CQ`, Description: `Composite quantity with units`},
{ID: `CSU`, Description: `Channel sensitivity and units`},
{ID: `CWE`, Description: `Coded with exceptions`},
{ID: `CX`, Description: `Extended composite ID with check digit`},
{ID: `DDI`, Description: `Daily deductible information`},
{ID: `DIN`, Description: `Date and institution name`},
{ID: `DLD`, Description: `Discharge to location and date`},
{ID: `DLN`, Description: `Driver's license number`},
{ID: `DLT`, Description: `Delta`},
{ID: `DR`, Description: `Date/time range`},
{ID: `DT`, Description: `Date`},
{ID: `DTM`, Description: `Date/time`},
{ID: `DTN`, Description: `Day type and number`},
{ID: `ED`, Description: `Encapsulated data`},
{ID: `EI`, Description: `Entity identifier`},
{ID: `EIP`, Description: `Entity identifier pair`},
{ID: `ELD`, Description: `Error location and description`},
{ID: `ERL`, Description: `Error location`},
{ID: `FC`, Description: `Financial class`},
{ID: `FN`, Description: `Family name`},
{ID: `FT`, Description: `Formatted text`},
{ID: `GTS`, Description: `General timing specification`},
{ID: `HD`, Description: `Hierarchic designator`},
{ID: `ICD`, Description: `Insurance certification definition`},
{ID: `ID`, Description: `Coded values for HL7 tables`},
{ID: `IS`, Description: `Coded value for user-defined tables`},
{ID: `JCC`, Description: `Job code/class`},
{ID: `LA1`, Description: `Location with address variation 1`},
{ID: `LA2`, Description: `Location with address variation 2`},
{ID: `MA`, Description: `Multiplexed array`},
{ID: `MO`, Description: `Money`},
{ID: `MOC`, Description: `Money and charge code`},
{ID: `MOP`, Description: `Money or percentage`},
{ID: `MSG`, Description: `Message type`},
{ID: `NA`, Description: `Numeric array`},
{ID: `NDL`, Description: `Name with date and location`},
{ID: `NM`, Description: `Numeric`},
{ID: `NR`, Description: `Numeric range`},
{ID: `OCD`, Description: `Occurrence code and date`},
{ID: `OSD`, Description: `Order sequence definition`},
{ID: `OSP`, Description: `Occurrence span code and date`},
{ID: `PIP`, Description: `Practitioner institutional privileges`},
{ID: `PL`, Description: `Person location`},
{ID: `PLN`, Description: `Practitioner license or other ID number`},
{ID: `PN`, Description: `Person name`},
{ID: `PPN`, Description: `Performing person time stamp`},
{ID: `PRL`, Description: `Parent result link`},
{ID: `PT`, Description: `Processing type`},
{ID: `PTA`, Description: `Policy type and amount`},
{ID: `QIP`, Description: `Query input parameter list`},
{ID: `QSC`, Description: `Query selection criteria`},
{ID: `RCD`, Description: `Row column definition`},
{ID: `RFR`, Description: `Reference range`},
{ID: `RI`, Description: `Repeat interval`},
{ID: `RMC`, Description: `Room coverage`},
{ID: `RP`, Description: `Reference pointer`},
{ID: `RPT`, Description: `Repeat pattern`},
{ID: `SAD`, Description: `Street Address`},
{ID: `SCV`, Description: `Scheduling class value pair`},
{ID: `SI`, Description: `Sequence ID`},
{ID: `SN`, Description: `Structured numeric`},
{ID: `SNM`, Description: `String of telephone number digits`},
{ID: `SPD`, Description: `Specialty description`},
{ID: `SPS`, Description: `Specimen source`},
{ID: `SRT`, Description: `Sort order`},
{ID: `ST`, Description: `String data`},
{ID: `TM`, Description: `Time`},
{ID: `TN`, Description: `Telephone number`},
{ID: `TQ`, Description: `Timing/quantity`},
{ID: `TS`, Description: `Time stamp`},
{ID: `TX`, Description: `Text data`},
{ID: `UVC`, Description: `UB value code and amount`},
{ID: `VH`, Description: `Visiting hours`},
{ID: `VID`, Description: `Version identifier`},
{ID: `VR`, Description: `Value range`},
{ID: `WVI`, Description: `Channel Identifier`},
{ID: `WVS`, Description: `Waveform source`},
{ID: `XAD`, Description: `Extended address`},
{ID: `XCN`, Description: `Extended composite ID number and name for persons`},
{ID: `XON`, Description: `Extended composite name and ID number for organizations`},
{ID: `XPN`, Description: `Extended person name`},
{ID: `XTN`, Description: `Extended telecommunications number`}}},
`0441`: {ID: `0441`, Name: `Immunization Registry Status`, Row: []Row{
{ID: `A`, Description: `Active`},
{ID: `I`, Description: `Inactive`},
{ID: `L`, Description: `Inactive - Lost to follow-up (cancel contract)`},
{ID: `M`, Description: `Inactive - Moved or gone elsewhere (cancel contract)`},
{ID: `O`, Description: `Other`},
{ID: `P`, Description: `Inactive - Permanently inactive (Do not reactivate or add new entries to the record)`},
{ID: `U`, Description: `Unknown`}}},
`0442`: {ID: `0442`, Name: `Location Service Code`, Row: []Row{
{ID: `D`, Description: `Diagnostic`},
{ID: `E`, Description: `Emergency Room Casualty`},
{ID: `P`, Description: `Primary Care`},
{ID: `T`, Description: `Therapeutic`}}},
`0443`: {ID: `0443`, Name: `Provider Role`, Row: []Row{
{ID: `AD`, Description: `Admitting`},
{ID: `AI`, Description: `Assistant/Alternate Interpreter`},
{ID: `AP`, Description: `Administering Provider`},
{ID: `AT`, Description: `Attending`},
{ID: `CLP`, Description: `Collecting Provider`},
{ID: `CP`, Description: `Consulting Provider`},
{ID: `DP`, Description: `Dispensing Provider`},
{ID: `EP`, Description: `Entering Provider (probably not the same as transcriptionist?)`},
{ID: `FHCP`, Description: `Family Health Care Professional`},
{ID: `IP`, Description: `Initiating Provider (as in action by)`},
{ID: `MDIR`, Description: `Medical Director`},
{ID: `OP`, Description: `Ordering Provider`},
{ID: `PH`, Description: `Pharmacist (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)`},
{ID: `PI`, Description: `Primary Interpreter`},
{ID: `PP`, Description: `Primary Care Provider`},
{ID: `RO`, Description: `Responsible Observer`},
{ID: `RP`, Description: `Referring Provider`},
{ID: `RT`, Description: `Referred to Provider`},
{ID: `TN`, Description: `Technician`},
{ID: `TR`, Description: `Transcriptionist`},
{ID: `VP`, Description: `Verifying Provider`},
{ID: `VPS`, Description: `Verifying Pharmaceutical Supplier (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)`},
{ID: `VTS`, Description: `Verifying Treatment Supplier (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)`}}},
`0444`: {ID: `0444`, Name: `Name Assembly Order`, Row: []Row{
{ID: `F`, Description: `Prefix Family Middle Given Suffix`},
{ID: `G`, Description: `Prefix Given Middle Family Suffix`}}},
`0445`: {ID: `0445`, Name: `Identity Reliability Code`, Row: []Row{
{ID: `AL`, Description: `Patient/Person Name is an Alias`},
{ID: `UA`, Description: `Unknown/Default Address`},
{ID: `UD`, Description: `Unknown/Default Date of Birth`},
{ID: `US`, Description: `Unknown/Default Social Security Number`}}},
`0446`: {ID: `0446`, Name: `Species Code`, Row: []Row{}},
`0447`: {ID: `0447`, Name: `Breed Code`, Row: []Row{}},
`0448`: {ID: `0448`, Name: `Name Context`, Row: []Row{}},
`0450`: {ID: `0450`, Name: `Event Type`, Row: []Row{
{ID: `LOG`, Description: `Log Event`},
{ID: `SER`, Description: `Service Event`}}},
`0451`: {ID: `0451`, Name: `Substance Identifier`, Row: []Row{
{ID: `ALL`, Description: `Used for query of all inventory items`}}},
`0452`: {ID: `0452`, Name: `Health Care Provider Type Code`, Row: []Row{
{ID: `SUGGESTION`, Description: `ANSI ASC X12 Health Care Provider Taxonomy, Level 1 - Type`}}},
`0453`: {ID: `0453`, Name: `Health Care Provider Classification`, Row: []Row{
{ID: `SUGGESTION`, Description: `ANSI ASC X12 Health Care Provider Taxonomy, Level 2 - Classification`}}},
`0454`: {ID: `0454`, Name: `Health Care Provider Area of Specialization`, Row: []Row{
{ID: `SUGGESTION`, Description: `ANSI ASC X12 Health Care Provider Taxonomy, Level 3 - specialization`}}},
`0455`: {ID: `0455`, Name: `Type of Bill Code`, Row: []Row{}},
`0456`: {ID: `0456`, Name: `Revenue code`, Row: []Row{}},
`0457`: {ID: `0457`, Name: `Overall Claim Disposition Code`, Row: []Row{
{ID: `0`, Description: `No edits present on claim`},
{ID: `1`, Description: `Only edits present are for line item denial or rejection`},
{ID: `2`, Description: `Multiple-day claim with one or more days denied or rejected`},
{ID: `3`, Description: `Claim denied, rejected, suspended or returned to provider with only post payment edits`},
{ID: `4`, Description: `Claim denied, rejected, suspended or returned to provider with only pre payment edits`}}},
`0458`: {ID: `0458`, Name: `OCE Edit Code`, Row: []Row{
{ID: `1`, Description: `Invalid diagnosis code`},
{ID: `10`, Description: `Non-covered service submitted for verification of denial (condition code 21 from header information on claim)`},
{ID: `11`, Description: `Non-covered service submitted for FI review (condition code 20 from header information on claim)`},
{ID: `12`, Description: `Questionable covered service`},
{ID: `13`, Description: `Additional payment for service not provided by Medicare`},
{ID: `14`, Description: `Code indicates a site of service not included in OPPS`},
{ID: `15`, Description: `Service unit out of range for procedure`},
{ID: `16`, Description: `Multiple bilateral procedures without modifier 50 (see Appendix A)`},
{ID: `17`, Description: `Multiple bilateral procedures with modifier 50 (see Appendix A)`},
{ID: `18`, Description: `Inpatient procedure`},
{ID: `19`, Description: `Mutually exclusive procedure that is not allowed even if appropriate modifier present`},
{ID: `2`, Description: `Diagnosis and age conflict`},
{ID: `20`, Description: `Component of a comprehensive procedure that is not allowed even if appropriate modifier present`},
{ID: `21`, Description: `Medical visit on same day as a type "T" or "S" procedure without modifier 25 (see Appendix B)`},
{ID: `22`, Description: `Invalid modifier`},
{ID: `23`, Description: `Invalid date`},
{ID: `24`, Description: `Date out of OCE range`},
{ID: `25`, Description: `Invalid age`},
{ID: `26`, Description: `Invalid sex`},
{ID: `27`, Description: `Only incidental services reported`},
{ID: `28`, Description: `Code not recognized by Medicare; alternate code for same service available`},
{ID: `29`, Description: `Partial hospitalization service for non-mental health diagnosis`},
{ID: `3`, Description: `Diagnosis and sex conflict`},
{ID: `30`, Description: `Insufficient services on day of partial hospitalization`},
{ID: `31`, Description: `Partial hospitalization on same day as ECT or type "T" procedure`},
{ID: `32`, Description: `Partial hospitalization claim spans 3 or less days with in-sufficient services, or ECT or significant procedure on at least one of the days`},
{ID: `33`, Description: `Partial hospitalization claim spans more than 3 days with insufficient number of days having mental health services`},
{ID: `34`, Description: `Partial hospitalization claim spans more than 3 days with insufficient number of days meeting partial hospitalization criteria`},
{ID: `35.`, Description: `Only activity therapy and/or occupational therapy services provided`},
{ID: `36.`, Description: `Extensive mental health services provided on day of ECT or significant procedure`},
{ID: `37`, Description: `Terminated bilateral procedure or terminated procedure with units greater than one`},
{ID: `38.`, Description: `Inconsistency between implanted device and implantation procedure`},
{ID: `39.`, Description: `Mutually exclusive procedure that would be allowed if appropriate modifier were present`},
{ID: `4`, Description: `Medicare secondary payer alert`},
{ID: `40.`, Description: `Component of a comprehensive procedure that would be allowed if appropriate modifier were present`},
{ID: `41.`, Description: `Invalid revenue code`},
{ID: `42.`, Description: `Multiple medical visits on same day with same revenue code without condition code G0 (see Appendix B)`},
{ID: `5`, Description: `E-code as reason for visit`},
{ID: `6`, Description: `Invalid procedure code`},
{ID: `7`, Description: `Procedure and age conflict`},
{ID: `8`, Description: `Procedure and sex conflict`},
{ID: `9`, Description: `Nov-covered service`}}},
`0459`: {ID: `0459`, Name: `Reimbursement Action Code`, Row: []Row{
{ID: `0`, Description: `OCE line item denial or rejection is not ignored`},
{ID: `1`, Description: `OCE line item denial or rejection is ignored`},
{ID: `2`, Description: `External line item denial. Line item is denied even if no OCE edits`},
{ID: `3`, Description: `External line item rejection. Line item is rejected even if no OCE edits`}}},
`0460`: {ID: `0460`, Name: `Denial or Rejection Code`, Row: []Row{
{ID: `0`, Description: `Line item not denied or rejected`},
{ID: `1`, Description: `Line item denied or rejected`},
{ID: `2`, Description: `Line item is on a multiple-day claim. The line item is not denied or rejected, but occurs on a day that has been denied or rejected.`}}},
`0461`: {ID: `0461`, Name: `License Number`, Row: []Row{}},
`0462`: {ID: `0462`, Name: `Location Cost Center`, Row: []Row{}},
`0463`: {ID: `0463`, Name: `Inventory Number`, Row: []Row{}},
`0464`: {ID: `0464`, Name: `Facility ID`, Row: []Row{}},
`0465`: {ID: `0465`, Name: `Name/Address Representation`, Row: []Row{
{ID: `A`, Description: `Alphabetic (i.e., Default or some single-byte)`},
{ID: `I`, Description: `Ideographic (i.e., Kanji)`},
{ID: `P`, Description: `Phonetic (i.e., ASCII, Katakana, Hiragana, etc.)`}}},
`0466`: {ID: `0466`, Name: `Ambulatory Payment Classification Code`, Row: []Row{
{ID: `031`, Description: `Dental procedures`},
{ID: `163`, Description: `Excision/biopsy`},
{ID: `181`, Description: `Level 1 skin repair.`}}},
`0467`: {ID: `0467`, Name: `Modifier Edit Code`, Row: []Row{
{ID: `0`, Description: `Modifier does NOT exist`},
{ID: `1`, Description: `Modifier present, no errors`},
{ID: `2`, Description: `Modifier invalid`},
{ID: `3`, Description: `Modifier NOT approved for ASC/HOPD use`},
{ID: `4`, Description: `Modifier approved for ASC/HOPD use, inappropriate for code`},
{ID: `U`, Description: `Modifier edit code unknown`}}},
`0468`: {ID: `0468`, Name: `Payment Adjustment Code`, Row: []Row{
{ID: `1`, Description: `No payment adjustment`},
{ID: `2`, Description: `Designated current drug or biological payment adjustment applies to APC (status indicator G)`},
{ID: `3`, Description: `Designated new device payment adjustment applies to APC (status indicator H)`},
{ID: `4`, Description: `Designated new drug or new biological payment adjustment applies to APC (status indicator J)`},
{ID: `5`, Description: `Deductible not applicable (specific list of HCPCS codes)`}}},
`0469`: {ID: `0469`, Name: `Packaging Status Code`, Row: []Row{
{ID: `0`, Description: `Not packaged`},
{ID: `1`, Description: `Packaged service (status indicator N, or no HCPCS code and certain revenue codes)`},
{ID: `2`, Description: `Packaged as part of partial hospitalization per diem or daily mental health service per diem`}}},
`0470`: {ID: `0470`, Name: `Reimbursement Type Code`, Row: []Row{
{ID: `Crnl`, Description: `Corneal Tissue APC`},
{ID: `DME`, Description: `Durable Medical Equipment`},
{ID: `EPO`, Description: `Epotein`},
{ID: `Lab`, Description: `Clinical Laboratory APC`},
{ID: `Mamm`, Description: `Screening Mammography APC`},
{ID: `NoPay`, Description: `This APC is not paid`},
{ID: `OPPS`, Description: `Outpatient Prospective Payment System`},
{ID: `PartH`, Description: `Partial Hospitalization APC`},
{ID: `Pckg`, Description: `Packaged APC`},
{ID: `Thrpy`, Description: `Therapy APC`}}},
`0471`: {ID: `0471`, Name: `Query Name`, Row: []Row{}},
`0472`: {ID: `0472`, Name: `TQ Conjunction ID`, Row: []Row{
{ID: `A`, Description: `Asynchronous`, Comment: `Do the next specification in parallel with this one (unless otherwise constrained by the following fields: TQ1-7-start date/time and TQ1-8-end date/time). The conjunction of "A" specifies two parallel instructions, as are sometimes used in medication, e.g., prednisone given at 1 tab on Monday, Wednesday, Friday, and at 1/2 tab on Tuesday, Thursday, Saturday, Sunday.`},
{ID: `C`, Description: `Actuation Time`, Comment: `It will be followed by a completion time for the service. This code allows one to distinguish between the time and priority at which a service should be actuated (e.g., blood should be drawn) and the time and priority at which a service should be completed (e.g., results should be reported).`},
{ID: `S`, Description: `Synchronous`, Comment: `Do the next specification after this one (unless otherwise constrained by the following fields: TQ1-7-start date/time and TQ1-8-end date/time). An "S" specification implies that the second timing sequence follows the first, e.g., when a service request is written to measure blood pressure Q15 minutes for the 1st hour, then every 2 hours for the next day.`}}},
`0473`: {ID: `0473`, Name: `Formulary Status`, Row: []Row{
{ID: `G`, Description: `This observation/service is on the formulary, and has guidelines`},
{ID: `N`, Description: `This observation/service is not on the formulary`},
{ID: `R`, Description: `This observation/service is on the formulary, but is restricted`},
{ID: `Y`, Description: `This observation/service is on the formulary`}}},
`0474`: {ID: `0474`, Name: `Organization Unit Type`, Row: []Row{
{ID: `D`, Description: `Department`},
{ID: `F`, Description: `Facility`},
{ID: `S`, Description: `Subdivision`},
{ID: `U`, Description: `Subdepartment`},
{ID: `V`, Description: `Division`}}},
`0475`: {ID: `0475`, Name: `Charge Type Reason`, Row: []Row{
{ID: `01`, Description: `Allergy`},
{ID: `02`, Description: `Intolerance`},
{ID: `03`, Description: `Treatment Failure`},
{ID: `04`, Description: `Patient Request`},
{ID: `05`, Description: `No Exception`}}},
`0476`: {ID: `0476`, Name: `Medically Necessary Duplicate Procedure Reason`, Row: []Row{}},
`0477`: {ID: `0477`, Name: `Controlled Substance Schedule*`, Row: []Row{
{ID: `I`, Description: `Schedule I`, Comment: `Includes drugs that have a high potential for abuse, no currently accepted medical use in the United States and a lack of accepted safety for use under medical supervision.`},
{ID: `II`, Description: `Schedule II`, Comment: `Includes drugs having currently accepted medical use in the United States and a high abuse potential, with severe psychological or physical dependence liability.`},
{ID: `III`, Description: `Schedule III`, Comment: `Includes drugs having an abuse potential less than that of drugs listed in Schedules I and II. All CS III drugs have a currently accepted medical use in the United States.`},
{ID: `IV`, Description: `Schedule IV`, Comment: `Includes drugs having a lesser potential for abuse than those listed in Schedule III. CS IV drugs have a currently accepted medical use in the United States.`},
{ID: `V`, Description: `Schedule V`, Comment: `Includes drugs having low abuse potential and limited physical or psychological dependence relative to those listed in IV and have an accepted medical use in the United States.`},
{ID: `VI`, Description: `Schedule VI`, Comment: `State defined`}}},
`0478`: {ID: `0478`, Name: `Formulary Status`, Row: []Row{
{ID: `G`, Description: `Pharmaceutical substance is in the formulary, but guidelines apply`},
{ID: `N`, Description: `Pharmaceutical substance is NOT in the formulary`},
{ID: `R`, Description: `Pharmaceutical substance is in the formulary, but restrictions apply`},
{ID: `Y`, Description: `Pharmaceutical substance is in the formulary`}}},
`0480`: {ID: `0480`, Name: `Pharmacy Order Types`, Row: []Row{
{ID: `M`, Description: `Medication`, Comment: `Default value. Includes, but is not limited to, tables, capsules, powders, puffs, and other non-injected/non-infused products.`},
{ID: `O`, Description: `Other solution as medication orders`, Comment: `Includes, but is not limited to, piggybacks and syringes`},
{ID: `S`, Description: `IV Large Volume Solutions`, Comment: `Includes, but is not limited to, TPNs, admixtures, solutions and drips.`}}},
`0482`: {ID: `0482`, Name: `Order Type`, Row: []Row{
{ID: `I`, Description: `Inpatient Order`},
{ID: `O`, Description: `Outpatient Order`}}},
`0483`: {ID: `0483`, Name: `Authorization Mode`, Row: []Row{
{ID: `EL`, Description: `Electronic`},
{ID: `EM`, Description: `E-mail`},
{ID: `FX`, Description: `Fax`},
{ID: `IP`, Description: `In Person`},
{ID: `MA`, Description: `Mail`},
{ID: `PA`, Description: `Paper`},
{ID: `PH`, Description: `Phone`},
{ID: `RE`, Description: `Reflexive (Automated system)`},
{ID: `VC`, Description: `Video-conference`},
{ID: `VO`, Description: `Voice`}}},
`0484`: {ID: `0484`, Name: `Dispense Type`, Row: []Row{
{ID: `B`, Description: `Trial Quantity Balance`},
{ID: `C`, Description: `Compassionate Fill`},
{ID: `N`, Description: `New/Renew - Full Fill`},
{ID: `P`, Description: `New/Renew - Part Fill`},
{ID: `Q`, Description: `Refill - Part Fill`},
{ID: `R`, Description: `Refill - Full Fill`},
{ID: `S`, Description: `Manufacturer Sample`},
{ID: `T`, Description: `Trial Quantity`},
{ID: `Z`, Description: `Non-Prescription Fill`}}},
`0485`: {ID: `0485`, Name: `Extended Priority Codes`, Row: []Row{
{ID: `A`, Description: `ASAP`},
{ID: `C`, Description: `Callback`},
{ID: `P`, Description: `Preop`},
{ID: `PRN`, Description: `As needed`},
{ID: `R`, Description: `Routine`},
{ID: `S`, Description: `Stat`},
{ID: `T`, Description: `Timing critical`},
{ID: `TD<integer>`},
{ID: `TH<integer>`},
{ID: `TL<integer>`},
{ID: `TM<integer>`},
{ID: `TS<integer>`},
{ID: `TW<integer>`}}},
`0487`: {ID: `0487`, Name: `Specimen Type`, Row: []Row{
{ID: `ABS`, Description: `Abscess`},
{ID: `ACNE`, Description: `Tissue, Acne`},
{ID: `ACNFLD`, Description: `Fluid, Acne`},
{ID: `AIRS`, Description: `Air Sample`},
{ID: `ALL`, Description: `Allograft`},
{ID: `AMP`, Description: `Amputation`},
{ID: `ANGI`, Description: `Catheter Tip, Angio`},
{ID: `ARTC`, Description: `Catheter Tip, Arterial`},
{ID: `ASERU`, Description: `Serum, Acute`},
{ID: `ASP`, Description: `Aspirate`},
{ID: `ATTE`, Description: `Environment, Attest`},
{ID: `AUTOA`, Description: `Environmental, Autoclave Ampule`},
{ID: `AUTOC`, Description: `Environmental, Autoclave Capsule`},
{ID: `AUTP`, Description: `Autopsy`},
{ID: `BBL`, Description: `Blood bag`},
{ID: `BCYST`, Description: `Cyst, Baker's`},
{ID: `BITE`, Description: `Bite`},
{ID: `BLEB`, Description: `Bleb`},
{ID: `BLIST`, Description: `Blister`},
{ID: `BOIL`, Description: `Boil`},
{ID: `BON`, Description: `Bone`},
{ID: `BOWL`, Description: `Bowel contents`},
{ID: `BPU`, Description: `Blood product unit`},
{ID: `BRN`, Description: `Burn`},
{ID: `BRSH`, Description: `Brush`},
{ID: `BRTH`, Description: `Breath (use EXHLD)`},
{ID: `BRUS`, Description: `Brushing`},
{ID: `BUB`, Description: `Bubo`},
{ID: `BULLA`, Description: `Bulla/Bullae`},
{ID: `BX`, Description: `Biopsy`},
{ID: `CALC`, Description: `Calculus (=Stone)`},
{ID: `CARBU`, Description: `Carbuncle`},
{ID: `CAT`, Description: `Catheter`},
{ID: `CBITE`, Description: `Bite, Cat`},
{ID: `CLIPP`, Description: `Clippings`},
{ID: `CNJT`, Description: `Conjunctiva`},
{ID: `COL`, Description: `Colostrum`},
{ID: `CONE`, Description: `Biospy, Cone`},
{ID: `CSCR`, Description: `Scratch, Cat`},
{ID: `CSERU`, Description: `Serum, Convalescent`},
{ID: `CSITE`, Description: `Catheter Insertion Site`},
{ID: `CSMY`, Description: `Fluid, Cystostomy Tube`},
{ID: `CST`, Description: `Fluid, Cyst`},
{ID: `CSVR`, Description: `Blood, Cell Saver`},
{ID: `CTP`, Description: `Catheter tip`},
{ID: `CVPS`, Description: `Site, CVP`},
{ID: `CVPT`, Description: `Catheter Tip, CVP`},
{ID: `CYN`, Description: `Nodule, Cystic`},
{ID: `CYST`, Description: `Cyst`},
{ID: `DBITE`, Description: `Bite, Dog`},
{ID: `DCS`, Description: `Sputum, Deep Cough`},
{ID: `DEC`, Description: `Ulcer, Decubitus`},
{ID: `DEION`, Description: `Environmental, Water (Deionized)`},
{ID: `DIA`, Description: `Dialysate`},
{ID: `DISCHG`, Description: `Discharge`},
{ID: `DIV`, Description: `Diverticulum`},
{ID: `DRN`, Description: `Drain`},
{ID: `DRNG`, Description: `Drainage, Tube`},
{ID: `DRNGP`, Description: `Drainage, Penrose`},
{ID: `EARW`, Description: `Ear wax (cerumen)`},
{ID: `EBRUSH`, Description: `Brush, Esophageal`},
{ID: `EEYE`, Description: `Environmental, Eye Wash`},
{ID: `EFF`, Description: `Environmental, Effluent`},
{ID: `EFFUS`, Description: `Effusion`},
{ID: `EFOD`, Description: `Environmental, Food`},
{ID: `EISO`, Description: `Environmental, Isolette`},
{ID: `ELT`, Description: `Electrode`},
{ID: `ENVIR`, Description: `Environmental, Unidentified Substance`},
{ID: `EOTH`, Description: `Environmental, Other Substance`},
{ID: `ESOI`, Description: `Environmental, Soil`},
{ID: `ESOS`, Description: `Environmental, Solution (Sterile)`},
{ID: `ETA`, Description: `Aspirate, Endotrach`},
{ID: `ETTP`, Description: `Catheter Tip, Endotracheal`},
{ID: `ETTUB`, Description: `Tube, Endotracheal`},
{ID: `EWHI`, Description: `Environmental, Whirlpool`},
{ID: `EXG`, Description: `Gas, exhaled (=breath)`},
{ID: `EXS`, Description: `Shunt, External`},
{ID: `EXUDTE`, Description: `Exudate`},
{ID: `FAW`, Description: `Environmental, Water (Well)`},
{ID: `FBLOOD`, Description: `Blood, Fetal`},
{ID: `FGA`, Description: `Fluid, Abdomen`},
{ID: `FIST`, Description: `Fistula`},
{ID: `FLD`, Description: `Fluid, Other`},
{ID: `FLT`, Description: `Filter`},
{ID: `FLU`, Description: `Fluid, Body unsp`},
{ID: `FLUID`, Description: `Fluid`},
{ID: `FOLEY`, Description: `Catheter Tip, Foley`},
{ID: `FRS`, Description: `Fluid, Respiratory`},
{ID: `FSCLP`, Description: `Scalp, Fetal`},
{ID: `FUR`, Description: `Furuncle`},
{ID: `GAS`, Description: `Gas`},
{ID: `GASA`, Description: `Aspirate, Gastric`},
{ID: `GASAN`, Description: `Antrum, Gastric`},
{ID: `GASBR`, Description: `Brushing, Gastric`},
{ID: `GASD`, Description: `Drainage, Gastric`},
{ID: `GAST`, Description: `Fluid/contents, Gastric`},
{ID: `GENV`, Description: `Genital vaginal`},
{ID: `GRAFT`, Description: `Graft`},
{ID: `GRAFTS`, Description: `Graft Site`},
{ID: `GRANU`, Description: `Granuloma`},
{ID: `GROSH`, Description: `Catheter, Groshong`},
{ID: `GSOL`, Description: `Solution, Gastrostomy`},
{ID: `GSPEC`, Description: `Biopsy, Gastric`},
{ID: `GT`, Description: `Tube, Gastric`},
{ID: `GTUBE`, Description: `Drainage Tube, Drainage (Gastrostomy)`},
{ID: `HBITE`, Description: `Bite, Human`},
{ID: `HBLUD`, Description: `Blood, Autopsy`},
{ID: `HEMAQ`, Description: `Catheter Tip, Hemaquit`},
{ID: `HEMO`, Description: `Catheter Tip, Hemovac`},
{ID: `HERNI`, Description: `Tissue, Herniated`},
{ID: `HEV`, Description: `Drain, Hemovac`},
{ID: `HIC`, Description: `Catheter, Hickman`},
{ID: `HYDC`, Description: `Fluid, Hydrocele`},
{ID: `IBITE`, Description: `Bite, Insect`},
{ID: `ICYST`, Description: `Cyst, Inclusion`},
{ID: `IDC`, Description: `Catheter Tip, Indwelling`},
{ID: `IHG`, Description: `Gas, Inhaled`},
{ID: `ILEO`, Description: `Drainage, Ileostomy`},
{ID: `ILLEG`, Description: `Source of Specimen Is Illegible`},
{ID: `IMP`, Description: `Implant`},
{ID: `INCI`, Description: `Site, Incision/Surgical`},
{ID: `INFIL`, Description: `Infiltrate`},
{ID: `INS`, Description: `Insect`},
{ID: `INTRD`, Description: `Catheter Tip, Introducer`},
{ID: `IT`, Description: `Intubation tube`},
{ID: `IUD`, Description: `Intrauterine Device`},
{ID: `IVCAT`, Description: `Catheter Tip, IV`},
{ID: `IVFLD`, Description: `Fluid, IV`},
{ID: `IVTIP`, Description: `Tubing Tip, IV`},
{ID: `JEJU`, Description: `Drainage, Jejunal`},
{ID: `JNTFLD`, Description: `Fluid, Joint`},
{ID: `JP`, Description: `Drainage, Jackson Pratt`},
{ID: `KELOI`, Description: `Lavage`},
{ID: `KIDFLD`, Description: `Fluid, Kidney`},
{ID: `LAVG`, Description: `Lavage, Bronhial`},
{ID: `LAVGG`, Description: `Lavage, Gastric`},
{ID: `LAVGP`, Description: `Lavage, Peritoneal`},
{ID: `LAVPG`, Description: `Lavage, Pre-Bronch`},
{ID: `LENS1`, Description: `Contact Lens`},
{ID: `LENS2`, Description: `Contact Lens Case`},
{ID: `LESN`, Description: `Lesion`},
{ID: `LIQ`, Description: `Liquid, Unspecified`},
{ID: `LIQO`, Description: `Liquid, Other`},
{ID: `LSAC`, Description: `Fluid, Lumbar Sac`},
{ID: `MAHUR`, Description: `Catheter Tip, Makurkour`},
{ID: `MASS`, Description: `Mass`},
{ID: `MBLD`, Description: `Blood, Menstrual`},
{ID: `MUCOS`, Description: `Mucosa`},
{ID: `MUCUS`, Description: `Mucus`},
{ID: `NASDR`, Description: `Drainage, Nasal`},
{ID: `NEDL`, Description: `Needle`},
{ID: `NEPH`, Description: `Site, Nephrostomy`},
{ID: `NGASP`, Description: `Aspirate, Nasogastric`},
{ID: `NGAST`, Description: `Drainage, Nasogastric`},
{ID: `NGS`, Description: `Site, Naso/Gastric`},
{ID: `NODUL`, Description: `Nodule(s)`},
{ID: `NSECR`, Description: `Secretion, Nasal`},
{ID: `ORH`, Description: `Other`},
{ID: `ORL`, Description: `Lesion, Oral`},
{ID: `OTH`, Description: `Source, Other`},
{ID: `PACEM`, Description: `Pacemaker`},
{ID: `PCFL`, Description: `Fluid, Pericardial`},
{ID: `PDSIT`, Description: `Site, Peritoneal Dialysis`},
{ID: `PDTS`, Description: `Site, Peritoneal Dialysis Tunnel`},
{ID: `PELVA`, Description: `Abscess, Pelvic`},
{ID: `PENIL`, Description: `Lesion, Penile`},
{ID: `PERIA`, Description: `Abscess, Perianal`},
{ID: `PILOC`, Description: `Cyst, Pilonidal`},
{ID: `PINS`, Description: `Site, Pin`},
{ID: `PIS`, Description: `Site, Pacemaker Insetion`},
{ID: `PLAN`, Description: `Plant Material`},
{ID: `PLAS`, Description: `Plasma`},
{ID: `PLB`, Description: `Plasma bag`},
{ID: `PLEVS`, Description: `Serum, Peak Level`},
{ID: `PND`, Description: `Drainage, Penile`},
{ID: `POL`, Description: `Polyps`},
{ID: `POPGS`, Description: `Graft Site, Popliteal`},
{ID: `POPLG`, Description: `Graft, Popliteal`},
{ID: `POPLV`, Description: `Site, Popliteal Vein`},
{ID: `PORTA`, Description: `Catheter, Porta`},
{ID: `PPP`, Description: `Plasma, Platelet poor`},
{ID: `PROST`, Description: `Prosthetic Device`},
{ID: `PRP`, Description: `Plasma, Platelet rich`},
{ID: `PSC`, Description: `Pseudocyst`},
{ID: `PUNCT`, Description: `Wound, Puncture`},
{ID: `PUS`, Description: `Pus`},
{ID: `PUSFR`, Description: `Pustule`},
{ID: `PUST`, Description: `Pus`},
{ID: `QC3`, Description: `Quality Control`},
{ID: `RANDU`, Description: `Urine, Random`},
{ID: `RBITE`, Description: `Bite, Reptile`},
{ID: `RECT`, Description: `Drainage, Rectal`},
{ID: `RECTA`, Description: `Abscess, Rectal`},
{ID: `RENALC`, Description: `Cyst, Renal`},
{ID: `RENC`, Description: `Fluid, Renal Cyst`},
{ID: `RES`, Description: `Respiratory`},
{ID: `SAL`, Description: `Saliva`},
{ID: `SCAR`, Description: `Tissue, Keloid (Scar)`},
{ID: `SCLV`, Description: `Catheter Tip, Subclavian`},
{ID: `SCROA`, Description: `Abscess, Scrotal`},
{ID: `SECRE`, Description: `Secretion(s)`},
{ID: `SER`, Description: `Serum`},
{ID: `SHU`, Description: `Site, Shunt`},
{ID: `SHUNF`, Description: `Fluid, Shunt`},
{ID: `SHUNT`, Description: `Shunt`},
{ID: `SITE`, Description: `Site`},
{ID: `SKBP`, Description: `Biopsy, Skin`},
{ID: `SKN`, Description: `Skin`},
{ID: `SMM`, Description: `Mass, Sub-Mandibular`},
{ID: `SNV`, Description: `Fluid, synovial (Joint fluid)`},
{ID: `SPRM`, Description: `Spermatozoa`},
{ID: `SPRP`, Description: `Catheter Tip, Suprapubic`},
{ID: `SPRPB`, Description: `Cathether Tip, Suprapubic`},
{ID: `SPS`, Description: `Environmental, Spore Strip`},
{ID: `SPT`, Description: `Sputum`},
{ID: `SPTC`, Description: `Sputum - coughed`},
{ID: `SPTT`, Description: `Sputum - tracheal aspirate`},
{ID: `SPUT1`, Description: `Sputum, Simulated`},
{ID: `SPUTIN`, Description: `Sputum, Inducted`},
{ID: `SPUTSP`, Description: `Sputum, Spontaneous`},
{ID: `STER`, Description: `Environmental, Sterrad`},
{ID: `STL`, Description: `Stool = Fecal`},
{ID: `STONE`, Description: `Stone, Kidney`},
{ID: `SUBMA`, Description: `Abscess, Submandibular`},
{ID: `SUBMX`, Description: `Abscess, Submaxillary`},
{ID: `SUMP`, Description: `Drainage, Sump`},
{ID: `SUP`, Description: `Suprapubic Tap`},
{ID: `SUTUR`, Description: `Suture`},
{ID: `SWGZ`, Description: `Catheter Tip, Swan Gantz`},
{ID: `TASP`, Description: `Aspirate, Tracheal`},
{ID: `TISS`, Description: `Tissue`},
{ID: `TISU`, Description: `Tissue ulcer`},
{ID: `TLC`, Description: `Cathether Tip, Triple Lumen`},
{ID: `TRAC`, Description: `Site, Tracheostomy`},
{ID: `TRANS`, Description: `Transudate`},
{ID: `TSERU`, Description: `Serum, Trough`},
{ID: `TSTES`, Description: `Abscess, Testicular`},
{ID: `TTRA`, Description: `Aspirate, Transtracheal`},
{ID: `TUBES`, Description: `Tubes`},
{ID: `TUMOR`, Description: `Tumor`},
{ID: `TZANC`, Description: `Smear, Tzanck`},
{ID: `UDENT`, Description: `Source, Unidentified`},
{ID: `UR`, Description: `Urine`},
{ID: `URC`, Description: `Urine clean catch`},
{ID: `URINB`, Description: `Urine, Bladder Washings`},
{ID: `URINC`, Description: `Urine, Catheterized`},
{ID: `URINM`, Description: `Urine, Midstream`},
{ID: `URINN`, Description: `Urine, Nephrostomy`},
{ID: `URINP`, Description: `Urine, Pedibag`},
{ID: `URT`, Description: `Urine catheter`},
{ID: `USCOP`, Description: `Urine, Cystoscopy`},
{ID: `USPEC`, Description: `Source, Unspecified`},
{ID: `VASTIP`, Description: `Catheter Tip, Vas`},
{ID: `VENT`, Description: `Catheter Tip, Ventricular`},
{ID: `VITF`, Description: `Vitreous Fluid`},
{ID: `VOM`, Description: `Vomitus`},
{ID: `WASH`, Description: `Wash`},
{ID: `WASI`, Description: `Washing, e.g. bronchial washing`},
{ID: `WAT`, Description: `Water`},
{ID: `WB`, Description: `Blood, Whole`},
{ID: `WEN`, Description: `Wen`},
{ID: `WICK`, Description: `Wick`},
{ID: `WND`, Description: `Wound`},
{ID: `WNDA`, Description: `Wound abscess`},
{ID: `WNDD`, Description: `Wound drainage`},
{ID: `WNDE`, Description: `Wound exudate`},
{ID: `WORM`, Description: `Worm`},
{ID: `WRT`, Description: `Wart`},
{ID: `WWA`, Description: `Environmental, Water`},
{ID: `WWO`, Description: `Environmental, Water (Ocean)`},
{ID: `WWT`, Description: `Environmental, Water (Tap)`}}},
`0488`: {ID: `0488`, Name: `Specimen Collection Method`, Row: []Row{
{ID: `ANP`, Description: `Plates, Anaerobic`},
{ID: `BAP`, Description: `Plates, Blood Agar`},
{ID: `BCAE`, Description: `Blood Culture, Aerobic Bottle`},
{ID: `BCAN`, Description: `Blood Culture, Anaerobic Bottle`},
{ID: `BCPD`, Description: `Blood Culture, Pediatric Bottle`},
{ID: `BIO`, Description: `Biopsy`},
{ID: `CAP`, Description: `Capillary Specimen`},
{ID: `CATH`, Description: `Catheterized`},
{ID: `CVP`, Description: `Line, CVP`},
{ID: `EPLA`, Description: `Environmental, Plate`},
{ID: `ESWA`, Description: `Environmental, Swab`},
{ID: `FNA`, Description: `Aspiration, Fine Needle`},
{ID: `KOFFP`, Description: `Plate, Cough`},
{ID: `LNA`, Description: `Line, Arterial`},
{ID: `LNV`, Description: `Line, Venous`},
{ID: `MARTL`, Description: `Martin-Lewis Agar`},
{ID: `ML11`, Description: `Mod. Martin-Lewis Agar`},
{ID: `MLP`, Description: `Plate, Martin-Lewis`},
{ID: `NYP`, Description: `Plate, New York City`},
{ID: `PACE`, Description: `Pace, Gen-Probe`},
{ID: `PIN`, Description: `Pinworm Prep`},
{ID: `PNA`, Description: `Arterial puncture`},
{ID: `PRIME`, Description: `Pump Prime`},
{ID: `PUMP`, Description: `Pump Specimen`},
{ID: `QC5`, Description: `Quality Control For Micro`},
{ID: `SCLP`, Description: `Scalp, Fetal Vein`},
{ID: `SCRAPS`, Description: `Scrapings`},
{ID: `SHA`, Description: `Shaving`},
{ID: `SWA`, Description: `Swab`},
{ID: `SWD`, Description: `Swab, Dacron tipped`},
{ID: `TMAN`, Description: `Transport Media, Anaerobic`},
{ID: `TMCH`, Description: `Transport Media, Chalamydia`},
{ID: `TMM4`, Description: `Transport Media, M4`},
{ID: `TMMY`, Description: `Transport Media, Mycoplasma`},
{ID: `TMOT`, Description: `Transport Media,`},
{ID: `TMP`, Description: `Plate, Thayer-Martin`},
{ID: `TMPV`, Description: `Transport Media, PVA`},
{ID: `TMSC`, Description: `Transport Media, Stool Culture`},
{ID: `TMUP`, Description: `Transport Media, Ureaplasma`},
{ID: `TMVI`, Description: `Transport Media, Viral`},
{ID: `VENIP`, Description: `Venipuncture`},
{ID: `WOOD`, Description: `Swab, Wooden Shaft`}}},
`0489`: {ID: `0489`, Name: `Risk Codes`, Row: []Row{
{ID: `AGG`, Description: `Aggressive`},
{ID: `BHZ`, Description: `Biohazard`},
{ID: `BIO`, Description: `Biological`},
{ID: `COR`, Description: `Corrosive`},
{ID: `ESC`, Description: `Escape Risk`},
{ID: `EXP`, Description: `Explosive`},
{ID: `IFL`, Description: `MaterialDangerInflammable`},
{ID: `INF`, Description: `MaterialDangerInfectious`},
{ID: `INJ`, Description: `Injury Hazard`},
{ID: `POI`, Description: `Poison`},
{ID: `RAD`, Description: `Radioactive`}}},
`0490`: {ID: `0490`, Name: `Specimen Reject Reason`, Row: []Row{
{ID: `EX`, Description: `Expired`},
{ID: `QS`, Description: `Quantity not sufficient`},
{ID: `RA`, Description: `Missing patient ID number`},
{ID: `RB`, Description: `Broken container`},
{ID: `RC`, Description: `Clotting`},
{ID: `RD`, Description: `Missing collection date`},
{ID: `RE`, Description: `Missing patient name`},
{ID: `RH`, Description: `Hemolysis`},
{ID: `RI`, Description: `Identification problem`},
{ID: `RM`, Description: `Labeling`},
{ID: `RN`, Description: `Contamination`},
{ID: `RP`, Description: `Missing phlebotomist ID`},
{ID: `RR`, Description: `Improper storage`},
{ID: `RS`, Description: `Name misspelling`}}},
`0491`: {ID: `0491`, Name: `Specimen Quality`, Row: []Row{
{ID: `E`, Description: `Excellent`},
{ID: `F`, Description: `Fair`},
{ID: `G`, Description: `Good`},
{ID: `P`, Description: `Poor`}}},
`0492`: {ID: `0492`, Name: `Specimen Appropriateness`, Row: []Row{
{ID: `??`, Description: `Inappropriate due to ...`},
{ID: `A`, Description: `Appropriate`},
{ID: `I`, Description: `Inappropriate`},
{ID: `P`, Description: `Preferred`}}},
`0493`: {ID: `0493`, Name: `Specimen Condition`, Row: []Row{
{ID: `AUT`, Description: `Autolyzed`},
{ID: `CLOT`, Description: `Clotted`},
{ID: `CON`, Description: `Contaminated`},
{ID: `COOL`, Description: `Cool`},
{ID: `FROZ`, Description: `Frozen`},
{ID: `HEM`, Description: `Hemolyzed`},
{ID: `LIVE`, Description: `Live`},
{ID: `ROOM`, Description: `Room temperature`},
{ID: `SNR`, Description: `Sample not received`}}},
`0494`: {ID: `0494`, Name: `Specimen Child Role`, Row: []Row{
{ID: `A`, Description: `Aliquot`},
{ID: `C`, Description: `Component`},
{ID: `M`, Description: `Modified from original specimen`}}},
`0495`: {ID: `0495`, Name: `Body Site Modifier`, Row: []Row{
{ID: `ANT`, Description: `Anterior`},
{ID: `BIL`, Description: `Bilateral`},
{ID: `DIS`, Description: `Distal`},
{ID: `EXT`, Description: `External`},
{ID: `L`, Description: `Left`},
{ID: `LAT`, Description: `Lateral`},
{ID: `LLQ`, Description: `Quadrant, Left Lower`},
{ID: `LOW`, Description: `Lower`},
{ID: `LUQ`, Description: `Quadrant, Left Upper`},
{ID: `MED`, Description: `Medial`},
{ID: `POS`, Description: `Posterior`},
{ID: `PRO`, Description: `Proximal`},
{ID: `R`, Description: `Right`},
{ID: `RLQ`, Description: `Quadrant, Right Lower`},
{ID: `RUQ`, Description: `Quadrant, Right Upper`},
{ID: `UPP`, Description: `Upper`}}},
`0496`: {ID: `0496`, Name: `Consent Type`, Row: []Row{
{ID: `001`, Description: `Release of Information/MR / Authorization to Disclosure Protected Health Information`},
{ID: `002`, Description: `Medical Procedure (invasive)`},
{ID: `003`, Description: `Acknowledge Receipt of Privacy Notice`},
{ID: `004`, Description: `Abortion`},
{ID: `005`, Description: `Abortion/Laminaria`},
{ID: `006`, Description: `Accutane - Information`},
{ID: `007`, Description: `Accutane - Woman`},
{ID: `008`, Description: `Advanced Beneficiary Notice`},
{ID: `009`, Description: `AFP (Alpha Fetoprotein) Screening`},
{ID: `010`, Description: `Amniocentesis (consent & refusal)`},
{ID: `011`, Description: `Anatomical Gift (organ donation)`},
{ID: `012`, Description: `Anesthesia - Complications`},
{ID: `013`, Description: `Anesthesia - Questionnaire`},
{ID: `014`, Description: `Angiogram`},
{ID: `015`, Description: `Angioplasty`},
{ID: `016`, Description: `Anticancer Drugs`},
{ID: `017`, Description: `Antipsychotic Medications`},
{ID: `018`, Description: `Arthrogram`},
{ID: `019`, Description: `Autopsy`},
{ID: `020`, Description: `AZT Therapy`},
{ID: `021`, Description: `Biliary Drainage`},
{ID: `022`, Description: `Biliary Stone Extraction`},
{ID: `023`, Description: `Biopsy`},
{ID: `024`, Description: `Bleeding Time Test`},
{ID: `025`, Description: `Bronchogram`},
{ID: `026`, Description: `Cardiac Catheterization`},
{ID: `027`, Description: `Coronary Angiography`},
{ID: `028`, Description: `"" "" w/o Surgery Capability`},
{ID: `029`, Description: `Cataract Op/Implant of FDA Aprvd Lens`},
{ID: `030`, Description: `Cataract Op/Implant of Investigational Lens`},
{ID: `031`, Description: `Cataract Surgery`},
{ID: `032`, Description: `Cholera Immunization`},
{ID: `033`, Description: `Cholesterol Screening`},
{ID: `034`, Description: `Circumcision - Newborn`},
{ID: `035`, Description: `Colonoscopy`},
{ID: `036`, Description: `Contact Lenses`},
{ID: `037`, Description: `CT Scan - Cervical & Lumbar`},
{ID: `038`, Description: `CT Scan w/ IV Contrast Media into Vein`},
{ID: `039`, Description: `CVS (Chorionic Villus) Sampling`},
{ID: `040`, Description: `Cystospy`},
{ID: `041`, Description: `Disclosure of Protected Health Information to Family/Friends`},
{ID: `042`, Description: `D & C and Conization`},
{ID: `043`, Description: `Dacryocystogram`},
{ID: `044`, Description: `Diagnostic Isotope`},
{ID: `045`, Description: `Drainage of an Abscess`},
{ID: `046`, Description: `Drug Screening`},
{ID: `047`, Description: `Electronic Monitoring of Labor - Refusal`},
{ID: `048`, Description: `Endometrial Biopsy`},
{ID: `049`, Description: `Endoscopy/Sclerosis of Esophageal Varices`},
{ID: `050`, Description: `ERCP`},
{ID: `051`, Description: `Exposure to reportable Communicable Disease`},
{ID: `052`, Description: `External Version`},
{ID: `053`, Description: `Fluorescein Angioscopy`},
{ID: `054`, Description: `Hepatitis B - Consent/Declination`},
{ID: `055`, Description: `Herniogram`},
{ID: `056`, Description: `HIV Test - Consent Refusal`},
{ID: `057`, Description: `HIV Test - Disclosure`},
{ID: `058`, Description: `HIV Test - Prenatal`},
{ID: `059`, Description: `Home IV Treatment Program`},
{ID: `060`, Description: `Home Parenteral Treatment Program`},
{ID: `061`, Description: `Hysterectomy`},
{ID: `062`, Description: `Hysterosalpingogram`},
{ID: `063`, Description: `Injection Slip/ Consent`},
{ID: `064`, Description: `Intrauterine Device`},
{ID: `065`, Description: `Intrauterine Device/Sterilization`},
{ID: `066`, Description: `Intravascular Infusion of Streptokinase/Urokinase`},
{ID: `067`, Description: `Intravenous Cholangiogram`},
{ID: `068`, Description: `Intravenous Digital Angiography`},
{ID: `069`, Description: `Iodine Administration`},
{ID: `070`, Description: `ISG`},
{ID: `071`, Description: `IVP`},
{ID: `072`, Description: `Laser Photocoagulation`},
{ID: `073`, Description: `Laser treatment`},
{ID: `074`, Description: `Lithium Carbonate`},
{ID: `075`, Description: `Liver Biopsy`},
{ID: `076`, Description: `Lumbar Puncture`},
{ID: `077`, Description: `Lymphangiogram`},
{ID: `078`, Description: `MAO Inhibitors`},
{ID: `079`, Description: `Med, Psych, and/or Drug/Alcohol`},
{ID: `080`, Description: `Medical Treatment - Refusal`},
{ID: `081`, Description: `Morning-after Pill`},
{ID: `082`, Description: `MRI - Adult`},
{ID: `083`, Description: `MRI - Pediatric`},
{ID: `084`, Description: `Myelogram`},
{ID: `085`, Description: `Needle Biopsy`},
{ID: `086`, Description: `Needle Biopsy of Lung`},
{ID: `087`, Description: `Newborn Treatment and Release`},
{ID: `088`, Description: `Norplant Subdermal Birth Control Implant`},
{ID: `089`, Description: `Operations, Anesthesia, Transfusions`},
{ID: `090`, Description: `Oral Contraceptives`},
{ID: `091`, Description: `Organ Donation`},
{ID: `092`, Description: `Patient Permits, Consents`},
{ID: `093`, Description: `Patient Treatment Permit, Release & Admission`},
{ID: `094`, Description: `Penile Injections`},
{ID: `095`, Description: `Percutaneous Nephrostomy`},
{ID: `096`, Description: `Percutaneous Transhepatic Cholangiogram`},
{ID: `097`, Description: `Photographs`},
{ID: `098`, Description: `Photographs - Employee`},
{ID: `099`, Description: `Photographs - Medical Research`},
{ID: `100`, Description: `Photographs - news Media`},
{ID: `101`, Description: `Psychiatric Admission - Next of Kin`},
{ID: `102`, Description: `Psychiatric Information During Hospital Stay`},
{ID: `103`, Description: `Public Release of Information`},
{ID: `104`, Description: `Radiologic Procedure`},
{ID: `105`, Description: `Refusal of Treatment`},
{ID: `106`, Description: `Release of Body`},
{ID: `107`, Description: `Release of Limb`},
{ID: `108`, Description: `Rh Immune Globulin`},
{ID: `109`, Description: `Rights of Medical Research Participants`},
{ID: `110`, Description: `Request to Restrict Access/Disclosure to Medical Record/Protected Health Information`},
{ID: `111`, Description: `Request for Remain Anonymous`},
{ID: `112`, Description: `Seat Belt Exemption`},
{ID: `113`, Description: `Sialogram`},
{ID: `1137`, Description: `Voiding Cystogram`},
{ID: `114`, Description: `Sigmoidoscopy`},
{ID: `115`, Description: `Sterilization - Anesthesia & Medical Services`},
{ID: `116`, Description: `Sterilization -Federally Funded`},
{ID: `117`, Description: `Sterilization - Female`},
{ID: `118`, Description: `Sterilization - Laparoscopy/Pomeroy`},
{ID: `119`, Description: `Sterilization - Non-Federally Funded`},
{ID: `120`, Description: `Sterilization - Secondary`},
{ID: `121`, Description: `Tranquilizers`},
{ID: `122`, Description: `Transfer - Acknowledgement`},
{ID: `123`, Description: `Transfer - Authorization`},
{ID: `124`, Description: `Transfer Certification - Physician`},
{ID: `125`, Description: `Transfer/Discharge Request`},
{ID: `126`, Description: `Transfer for Non-Medical Reasons`},
{ID: `127`, Description: `Transfer - Interfaculty Neonatal`},
{ID: `128`, Description: `Transfer Refusal`},
{ID: `129`, Description: `Transfer Refusal of Further Treatment`},
{ID: `130`, Description: `Treadmill & EKG`},
{ID: `131`, Description: `Treadmill, Thallium-201`},
{ID: `132`, Description: `Typhoid`},
{ID: `133`, Description: `Use of Investigational Device`},
{ID: `134`, Description: `Use of Investigational Drug`},
{ID: `135`, Description: `Venogram`},
{ID: `136`, Description: `Videotape`}}},
`0497`: {ID: `0497`, Name: `Consent Mode`, Row: []Row{
{ID: `T`, Description: `Telephone`},
{ID: `V`, Description: `Verbal`},
{ID: `W`, Description: `Written`}}},
`0498`: {ID: `0498`, Name: `Consent Status`, Row: []Row{
{ID: `A`, Description: `Active - Consent has been granted`},
{ID: `B`, Description: `Bypassed (Consent not sought)`},
{ID: `L`, Description: `Limited - Consent has been granted with limitations`},
{ID: `P`, Description: `Pending - Consent has not yet been sought`},
{ID: `R`, Description: `Refused - Consent has been refused`},
{ID: `X`, Description: `Rescinded - Consent was initially granted, but was subsequently revoked or ended.`}}},
`0499`: {ID: `0499`, Name: `Consent Bypass Reason`, Row: []Row{
{ID: `E`, Description: `Emergency`},
{ID: `PJ`, Description: `Professional Judgment`}}},
`0500`: {ID: `0500`, Name: `Consent Disclosure Level`, Row: []Row{
{ID: `F`, Description: `Full Disclosure`},
{ID: `N`, Description: `No Disclosure`},
{ID: `P`, Description: `Partial Disclosure`}}},
`0501`: {ID: `0501`, Name: `Consent Non-Disclosure Reason`, Row: []Row{
{ID: `E`, Description: `Emergency`},
{ID: `PR`, Description: `Patient Request`},
{ID: `RX`, Description: `Rx Private`}}},
`0502`: {ID: `0502`, Name: `Non-Subject Consenter Reason`, Row: []Row{
{ID: `LM`, Description: `Legally mandated`},
{ID: `MIN`, Description: `Subject is a minor`},
{ID: `NC`, Description: `Subject is not competent to consent`}}},
`0503`: {ID: `0503`, Name: `Sequence/Results Flag`, Row: []Row{
{ID: `C`, Description: `Cyclical`, Comment: `Used for indicating a repeating cycle of service requests; for example, individual intravenous solutions used in a cyclical sequence (a.k.a. "Alternating IVs"). This value would be compatible with linking separate service requests or with having all cyclical service request components in a single service request. Likewise, the value would be compatible with either Parent-Child messages or a single service request message to communicate the service requests' sequencing`},
{ID: `R`, Description: `Reserved for future use`},
{ID: `S`, Description: `Sequential`}}},
`0504`: {ID: `0504`, Name: `Sequence Condition Code`, Row: []Row{
{ID: `EE`, Description: `End related service request(s), end current service request.`},
{ID: `ES`, Description: `End related service request(s), start current service request.`},
{ID: `SE`, Description: `Start related service request(s), end current service request.`},
{ID: `SS`, Description: `Start related service request(s), start current service request.`}}},
`0505`: {ID: `0505`, Name: `Cyclic Entry/Exit Indicator`, Row: []Row{
{ID: `#`, Description: `The last service request in a cyclic group.`},
{ID: `*`, Description: `The first service request in a cyclic group`}}},
`0506`: {ID: `0506`, Name: `Service Request Relationship`, Row: []Row{
{ID: `C`, Description: `Compound`, Comment: `A compound is an extempo order which may be made up of multiple drugs. For example, many hospitals have a standard item called "Magic Mouthwash". The item is ordered that way by the physician. The extempo items will contain multiple products, such as Maalox, Benadryl, Xylocaine, etc. They will all be mixed together and will be dispensed in a single container.`},
{ID: `E`, Description: `Exclusive`, Comment: `An exclusive order is an order where only one of the multiple items should be administered at any one dosage time. The nurse may chose between the alternatives, but should only give ONE of them. An example would be: Phenergan 25 mg PO, IM or R q6h prn (orally, intramuscularly, or rectally every 6 hours as needed).`},
{ID: `N`, Description: `Nurse prerogative`, Comment: `Where a set of two or more orders exist and the Nurse, or other caregiver, has the prerogative to choose which order will be administered at a particular point in time.`},
{ID: `S`, Description: `Simultaneous`, Comment: `simultaneous order is 2 or more drugs which are ordered to be given at the same time. A common example of this would be Demerol and Phenergan (Phenergan is given with the Demerol to control the nausea that Demerol can cause). The order could be: Demerol 50 mg IM with Phenergan 25 mg IM q4h prn (every 4 hours as needed).`},
{ID: `T`, Description: `Tapering`, Comment: `A tapering order is one in which the same drug is used, but it has a declining dosage over a number of days.`}}},
`0507`: {ID: `0507`, Name: `Observation Result Handling`, Row: []Row{
{ID: `F`, Description: `Film-with-patient`},
{ID: `N`, Description: `Notify provider when ready`}}},
`0508`: {ID: `0508`, Name: `Blood Product Processing Requirements`, Row: []Row{
{ID: `AU`, Description: `Autologous Unit`},
{ID: `CM`, Description: `CMV Negative`},
{ID: `CS`, Description: `CMV Safe`},
{ID: `DI`, Description: `Directed Unit`},
{ID: `FR`, Description: `Fresh unit`},
{ID: `HB`, Description: `Hemoglobin S Negative`},
{ID: `HL`, Description: `HLA Matched`},
{ID: `IG`, Description: `IgA Deficient`},
{ID: `IR`, Description: `Irradiated`},
{ID: `LR`, Description: `Leukoreduced`},
{ID: `WA`, Description: `Washed`}}},
`0509`: {ID: `0509`, Name: `Indication for Use`, Row: []Row{}},
`0510`: {ID: `0510`, Name: `Blood Product Dispense Status`, Row: []Row{
{ID: `CR`, Description: `Released into inventory for general availability`, Comment: `Status determined by Filler`},
{ID: `DS`, Description: `Dispensed to patient location`, Comment: `Status determined by Filler`},
{ID: `PT`, Description: `Presumed transfused (dispensed and not returned)`, Comment: `Status determined by Filler`},
{ID: `RA`, Description: `Returned unused/no longer needed`, Comment: `Status determined by Filler`},
{ID: `RD`, Description: `Reserved and ready to dispense`, Comment: `Status determined by Filler`},
{ID: `RE`, Description: `Released (no longer allocated for the patient)`, Comment: `Status determined by Placer or Filler`},
{ID: `RI`, Description: `Received into inventory (for specified patient)`, Comment: `Status determined by Filler`},
{ID: `RL`, Description: `Returned unused/keep linked to patient for possible use later`, Comment: `Status determined by Filler`},
{ID: `RQ`, Description: `Request to dispense blood product`, Comment: `Status determined by Placer`},
{ID: `RS`, Description: `Reserved (ordered and product allocated for the patient)`, Comment: `Status determined by Filler`},
{ID: `WA`, Description: `Wasted (product no longer viable)`, Comment: `Status determined by Filler`}}},
`0511`: {ID: `0511`, Name: `BP Observation Status Codes Interpretation`, Row: []Row{
{ID: `C`, Description: `Record coming over is a correction and thus replaces a final status`},
{ID: `D`, Description: `Deletes the BPX record`},
{ID: `F`, Description: `Final status; Can only be changed with a corrected status`},
{ID: `O`, Description: `Order detail description only (no status)`},
{ID: `P`, Description: `Preliminary status`},
{ID: `W`, Description: `Post original as wrong, e.g., transmitted for wrong patient`}}},
`0512`: {ID: `0512`, Name: `Commercial Product`, Row: []Row{}},
`0513`: {ID: `0513`, Name: `Blood Product Transfusion/Disposition Status`, Row: []Row{
{ID: `RA`, Description: `Returned unused/no longer needed`},
{ID: `RL`, Description: `Returned unused/keep linked to patient for possible use later`},
{ID: `TR`, Description: `Transfused with adverse reaction`},
{ID: `TX`, Description: `Transfused`},
{ID: `WA`, Description: `Wasted (product no longer viable)`}}},
`0514`: {ID: `0514`, Name: `Transfusion Adverse Reaction`, Row: []Row{
{ID: `ABOINC`, Description: `ABO Incompatible Transfusion Reaction`},
{ID: `ACUTHEHTR`, Description: `Acute Hemolytic Transfusion Reaction`},
{ID: `ALLERGIC1`, Description: `Allergic Reaction - First`},
{ID: `ALLERGIC2`, Description: `Allergic Reaction - Recurrent`},
{ID: `ALLERGICR`, Description: `Allergic Reaction - Repeating`},
{ID: `ANAPHYLAC`, Description: `Anaphylactic Reaction`},
{ID: `BACTCONTAM`, Description: `Reaction to Bacterial Contamination`},
{ID: `DELAYEDHTR`, Description: `Delayed Hemolytic Transfusion Reaction`},
{ID: `DELAYEDSTR`, Description: `Delayed Serological Transfusion Reaction`},
{ID: `GVHD`, Description: `Graft vs Host Disease - Transfusion - Associated`},
{ID: `HYPOTENS`, Description: `Non-hemolytic Hypotensive Reaction`},
{ID: `NONHTR1`, Description: `Non-Hemolytic Fever Chill Transfusion Reaction - First`},
{ID: `NONHTR2`, Description: `Non-Hemolytic Fever Chill Transfusion Reaction - Recurrent`},
{ID: `NONHTRREC`, Description: `Non-Hemolytic Fever Chill Transfusion Reaction - Repeating`},
{ID: `NONIMMUNE`, Description: `Non-Immune Hemolysis`},
{ID: `NONSPEC`, Description: `Non-Specific, Non-Hemolytic Transfusion Reaction`},
{ID: `NORXN`, Description: `No Evidence of Transfusion Reaction`},
{ID: `PTP`, Description: `Posttransfusion Purpura`},
{ID: `VOLOVER`, Description: `Symptoms most likely due to volume overload`}}},
`0515`: {ID: `0515`, Name: `Transfusion Interrupted Reason`, Row: []Row{}},
`0516`: {ID: `0516`, Name: `Error Severity`, Row: []Row{
{ID: `E`, Description: `Error`},
{ID: `F`, Description: `Fatal Error`},
{ID: `I`, Description: `Information`},
{ID: `W`, Description: `Warning`}}},
`0517`: {ID: `0517`, Name: `Inform Person Code`, Row: []Row{
{ID: `HD`, Description: `Inform help desk`},
{ID: `NPAT`, Description: `Do NOT inform patient`},
{ID: `PAT`, Description: `Inform patient`},
{ID: `USR`, Description: `Inform User`}}},
`0518`: {ID: `0518`, Name: `Override Type`, Row: []Row{
{ID: `EQV`, Description: `Equivalence Override`},
{ID: `EXTN`, Description: `Extension Override`},
{ID: `INLV`, Description: `Interval Override`}}},
`0519`: {ID: `0519`, Name: `Override Reason`, Row: []Row{}},
`0520`: {ID: `0520`, Name: `Message Waiting Priority`, Row: []Row{
{ID: `H`, Description: `High`},
{ID: `L`, Description: `Low`},
{ID: `M`, Description: `Medium`}}},
`0521`: {ID: `0521`, Name: `Override Code`, Row: []Row{}},
`0523`: {ID: `0523`, Name: `Computation Type`, Row: []Row{
{ID: `%`, Description: `Indicates a percent change`},
{ID: `a`, Description: `Absolute Change`}}},
`0525`: {ID: `0525`, Name: `Privilege`, Row: []Row{}},
`0526`: {ID: `0526`, Name: `Privilege Class`, Row: []Row{}},
`0527`: {ID: `0527`, Name: `Calendar Alignment`, Row: []Row{
{ID: `DM`, Description: `day of the month`},
{ID: `DW`, Description: `day of the week (begins with Monday)`},
{ID: `DY`, Description: `day of the year`},
{ID: `HD`, Description: `hour of the day`},
{ID: `MY`, Description: `month of the year`},
{ID: `NH`, Description: `minute of the hour`},
{ID: `SN`, Description: `second of the minute`},
{ID: `WY`, Description: `week of the year`}}},
`0528`: {ID: `0528`, Name: `Event Related Period`, Row: []Row{
{ID: `AC`, Description: `before meal (from lat. ante cibus)`},
{ID: `ACD`, Description: `before lunch (from lat. ante cibus diurnus)`},
{ID: `ACM`, Description: `before breakfast (from lat. ante cibus matutinus)`},
{ID: `ACV`, Description: `before dinner (from lat. ante cibus vespertinus)`},
{ID: `HS`, Description: `the hour of sleep (e.g., H18-22)`},
{ID: `IC`, Description: `between meals (from lat. inter cibus)`},
{ID: `ICD`, Description: `between lunch and dinner`},
{ID: `ICM`, Description: `between breakfast and lunch`},
{ID: `ICV`, Description: `between dinner and the hour of sleep`},
{ID: `PC`, Description: `after meal (from lat. post cibus)`},
{ID: `PCD`, Description: `after lunch (from lat. post cibus diurnus)`},
{ID: `PCM`, Description: `after breakfast (from lat. post cibus matutinus)`},
{ID: `PCV`, Description: `after dinner (from lat. post cibus vespertinus)`}}},
`0531`: {ID: `0531`, Name: `Institution`, Row: []Row{}},
`0532`: {ID: `0532`, Name: `Expanded Yes/no Indicator`, Row: []Row{
{ID: `ASKU`, Description: `asked but unknown`},
{ID: `N`, Description: `No`},
{ID: `NA`, Description: `not applicable`},
{ID: `NASK`, Description: `not asked`},
{ID: `NAV`, Description: `temporarily unavailable`},
{ID: `NI`, Description: `No Information`},
{ID: `NP`, Description: `not present`},
{ID: `UNK`, Description: `unknown`},
{ID: `Y`, Description: `Yes`}}},
`0533`: {ID: `0533`, Name: `Application Error Code`, Row: []Row{}},
`0534`: {ID: `0534`, Name: `Notify Clergy Code`, Row: []Row{
{ID: `L`, Description: `Last Rites only`},
{ID: `N`, Description: `No`},
{ID: `O`, Description: `Other`},
{ID: `U`, Description: `Unknown`},
{ID: `Y`, Description: `Yes`}}},
`0535`: {ID: `0535`, Name: `Signature Code`, Row: []Row{
{ID: `C`, Description: `Signed CMS-1500 claim form on file, e.g., authorization for release of any medical or other information necessary to process this claim and assignment of benefits.`},
{ID: `M`, Description: `Signed authorization for assignment of benefits on file.`},
{ID: `P`, Description: `Signature generated by provider because the patient was not physically present for services.`},
{ID: `S`, Description: `Signed authorization for release of any medical or other information necessary to process this claim on file.`}}},
`0536`: {ID: `0536`, Name: `Certificate Status`, Row: []Row{
{ID: `E`, Description: `Expired`},
{ID: `I`, Description: `Inactive`},
{ID: `P`, Description: `Provisional`},
{ID: `R`, Description: `Revoked`},
{ID: `V`, Description: `Active/Valid`}}},
`0537`: {ID: `0537`, Name: `Institution`, Row: []Row{}},
`0538`: {ID: `0538`, Name: `Institution Relationship Type`, Row: []Row{
{ID: `CON`, Description: `Contractor`},
{ID: `CST`, Description: `Consultant`},
{ID: `EMP`, Description: `Employee`},
{ID: `VOL`, Description: `Volunteer`}}},
`0539`: {ID: `0539`, Name: `Cost Center Code`, Row: []Row{}},
`0540`: {ID: `0540`, Name: `Inactive Reason Code`, Row: []Row{
{ID: `L`, Description: `Leave of Absence`},
{ID: `R`, Description: `Retired`},
{ID: `T`, Description: `Termination`}}},
`0541`: {ID: `0541`, Name: `Specimen Type Modifier`, Row: []Row{}},
`0542`: {ID: `0542`, Name: `Specimen Source Type Modifier`, Row: []Row{}},
`0543`: {ID: `0543`, Name: `Specimen Collection Site`, Row: []Row{}},
`0544`: {ID: `0544`, Name: `Container Condition`, Row: []Row{
{ID: `CC`, Description: `Container Cracked`},
{ID: `CL`, Description: `Container Leaking`},
{ID: `CT`, Description: `Container Torn`},
{ID: `SB`, Description: `Seal Broken`},
{ID: `XAMB`, Description: `Not Ambient temperature`},
{ID: `XC37`, Description: `Not Body temperature`},
{ID: `XCAMB`, Description: `Not Critical ambient temperature`},
{ID: `XCATM`, Description: `Exposed to Air`},
{ID: `XCFRZ`, Description: `Not Critical frozen temperature`},
{ID: `XCREF`, Description: `Not Critical refrigerated temperature`},
{ID: `XDFRZ`, Description: `Not Deep frozen`},
{ID: `XDRY`, Description: `Not Dry`},
{ID: `XFRZ`, Description: `Not Frozen temperature`},
{ID: `XMTLF`, Description: `Metal Exposed`},
{ID: `XNTR`, Description: `Not Liquid nitrogen`},
{ID: `XPRTL`, Description: `Not Protected from light`},
{ID: `XPSA`, Description: `Shaken`},
{ID: `XPSO`, Description: `Exposed to shock`},
{ID: `XREF`, Description: `Not Refrigerated temperature`},
{ID: `XUFRZ`, Description: `Not Ultra frozen`},
{ID: `XUPR`, Description: `Not Upright`}}},
`0547`: {ID: `0547`, Name: `Jurisdictional Breadth`, Row: []Row{
{ID: `C`, Description: `County/Parish`},
{ID: `N`, Description: `Country`},
{ID: `S`, Description: `State/Province`}}},
`0548`: {ID: `0548`, Name: `Signatory's Relationship to Subject`, Row: []Row{
{ID: `1`, Description: `Self`},
{ID: `2`, Description: `Parent`},
{ID: `3`, Description: `Next of Kin`},
{ID: `4`, Description: `Durable Power of Attorney in Healthcare Affairs`},
{ID: `5`, Description: `Conservator`},
{ID: `6`, Description: `Emergent Practitioner (practitioner judging case as emergency requiring care without a consent)`},
{ID: `7`, Description: `Non-Emergent Practitioner (i.e. medical ethics committee)`}}},
`0549`: {ID: `0549`, Name: `NDC Codes`, Row: []Row{}},
`0550`: {ID: `0550`, Name: `Body Parts`, Row: []Row{
{ID: `Â`, Description: `External Jugular`},
{ID: `ACET`, Description: `Acetabulum`},
{ID: `ACHIL`, Description: `Achilles`},
{ID: `ADB`, Description: `Abdomen`},
{ID: `ADE`, Description: `Adenoids`},
{ID: `ADR`, Description: `Adrenal`},
{ID: `AMN`, Description: `Amniotic fluid`},
{ID: `AMS`, Description: `Amniotic Sac`},
{ID: `ANAL`, Description: `Anal`},
{ID: `ANKL`, Description: `Ankle`},
{ID: `ANTEC`, Description: `Antecubital`},
{ID: `ANTECF`, Description: `Antecubital Fossa`},
{ID: `ANTR`, Description: `Antrum`},
{ID: `ANUS`, Description: `Anus`},
{ID: `AORTA`, Description: `Aorta`},
{ID: `APDX`, Description: `Appendix`},
{ID: `AR`, Description: `Aortic Rim`},
{ID: `AREO`, Description: `Areola`},
{ID: `ARM`, Description: `Arm`},
{ID: `ARTE`, Description: `Artery`},
{ID: `ASCIT`, Description: `Ascites`},
{ID: `ASCT`, Description: `Ascitic Fluid`},
{ID: `ATR`, Description: `Atrium`},
{ID: `AURI`, Description: `Auricular`},
{ID: `AV`, Description: `Aortic Valve`},
{ID: `AXI`, Description: `Axilla`},
{ID: `BACK`, Description: `Back`},
{ID: `BARTD`, Description: `Bartholin Duct`},
{ID: `BARTG`, Description: `Bartholin Gland`},
{ID: `BCYS`, Description: `Brain Cyst Fluid`},
{ID: `BDY`, Description: `Body, Whole`},
{ID: `BID`, Description: `Bile Duct`},
{ID: `BIFL`, Description: `Bile fluid`},
{ID: `BLAD`, Description: `Bladder`},
{ID: `BLD`, Description: `Blood, Whole`},
{ID: `BLDA`, Description: `Blood, Arterial`},
{ID: `BLDC`, Description: `Blood, Capillary`},
{ID: `BLDV`, Description: `Blood, Venous`},
{ID: `BLOOD`, Description: `Blood`},
{ID: `BMAR`, Description: `Bone marrow`},
{ID: `BON`, Description: `Bone`},
{ID: `BOWEL`, Description: `Bowel`},
{ID: `BOWLA`, Description: `Bowel, Large`},
{ID: `BOWSM`, Description: `Bowel, Small`},
{ID: `BPH`, Description: `Basophils`},
{ID: `BRA`, Description: `Brachial`},
{ID: `BRAIN`, Description: `Brain`},
{ID: `BRO`, Description: `Bronchial`},
{ID: `BROCH`, Description: `Bronchiole/Bronchiolar`},
{ID: `BRONC`, Description: `Bronchus/Bronchial`},
{ID: `BROW`, Description: `Eyebrow`},
{ID: `BRST`, Description: `Breast`},
{ID: `BRSTFL`, Description: `Breast fluid`},
{ID: `BRTGF`, Description: `Bartholin Gland Fluid`},
{ID: `BRV`, Description: `Broviac`},
{ID: `BUCCA`, Description: `Buccal`},
{ID: `BURSA`, Description: `Bursa`},
{ID: `BURSF`, Description: `Bursa Fluid`},
{ID: `BUTT`, Description: `Buttocks`},
{ID: `CALF`, Description: `Calf`},
{ID: `CANAL`, Description: `Canal`},
{ID: `CANLI`, Description: `Canaliculis`},
{ID: `CANTH`, Description: `Canthus`},
{ID: `CARO`, Description: `Carotid`},
{ID: `CARP`, Description: `Carpal`},
{ID: `CAVIT`, Description: `Cavity`},
{ID: `CBLD`, Description: `Blood, Cord`},
{ID: `CDM`, Description: `Cardiac Muscle`},
{ID: `CDUCT`, Description: `Common Duct`},
{ID: `CECUM`, Description: `Cecum/Cecal`},
{ID: `CERVUT`, Description: `Cervix/Uterus`},
{ID: `CHE`, Description: `Cavity, Chest`},
{ID: `CHEEK`, Description: `Cheek`},
{ID: `CHES`, Description: `Chest`},
{ID: `CHESTÂ`, Description: `Chest Tube`},
{ID: `CHIN`, Description: `Chin`},
{ID: `CIRCU`, Description: `Circumcision Site`},
{ID: `CLAVI`, Description: `Clavicle/Clavicular`},
{ID: `CLIT`, Description: `Clitoris`},
{ID: `CLITO`, Description: `Clitoral`},
{ID: `CNL`, Description: `Cannula`},
{ID: `COCCG`, Description: `Coccygeal`},
{ID: `COCCY`, Description: `Coccyx`},
{ID: `COLON`, Description: `Colon`},
{ID: `COLOS`, Description: `Colostomy`},
{ID: `CONJ`, Description: `Conjunctiva`},
{ID: `COR`, Description: `Cord`},
{ID: `CORAL`, Description: `Coral`},
{ID: `CORD`, Description: `Cord Blood`},
{ID: `CORN`, Description: `Cornea`},
{ID: `COS`, Description: `Colostomy Stoma`},
{ID: `CRANE`, Description: `Cranium, ethmoid`},
{ID: `CRANF`, Description: `Cranium, frontal`},
{ID: `CRANO`, Description: `Cranium, occipital`},
{ID: `CRANP`, Description: `Cranium, parietal`},
{ID: `CRANS`, Description: `Cranium, sphenoid`},
{ID: `CRANT`, Description: `Cranium, temporal`},
{ID: `CSF`, Description: `Cerebral Spinal Fluid`},
{ID: `CUBIT`, Description: `Cubitus`},
{ID: `CUFF`, Description: `Cuff`},
{ID: `CULD`, Description: `Cul De Sac`},
{ID: `CULDO`, Description: `Culdocentesis`},
{ID: `CVX`, Description: `Cervix`},
{ID: `DELT`, Description: `Deltoid`},
{ID: `DEN`, Description: `Dental Gingiva`},
{ID: `DENTA`, Description: `Dental`},
{ID: `DIAF`, Description: `Dialysis Fluid`},
{ID: `DIGIT`, Description: `Digit`},
{ID: `DISC`, Description: `Disc`},
{ID: `DORS`, Description: `Dorsum/Dorsal`},
{ID: `DPH`, Description: `Diaphragm`},
{ID: `DUFL`, Description: `Duodenal Fluid`},
{ID: `DUODE`, Description: `Duodenum/Duodenal`},
{ID: `DUR`, Description: `Dura`},
{ID: `EAR`, Description: `Ear`},
{ID: `EARBI`, Description: `Ear bone, incus`},
{ID: `EARBM`, Description: `Ear bone, malleus`},
{ID: `EARBS`, Description: `Ear bone,stapes`},
{ID: `EARLO`, Description: `Ear Lobe`},
{ID: `EC`, Description: `Endocervical`},
{ID: `ELBOW`, Description: `Elbow`},
{ID: `ELBOWJ`, Description: `Elbow Joint`},
{ID: `ENDC`, Description: `Endocardium`},
{ID: `ENDM`, Description: `Endometrium`},
{ID: `EOLPH`, Description: `endolpthamitis`},
{ID: `EOS`, Description: `Eosinophils`},
{ID: `EPD`, Description: `Epididymis`},
{ID: `EPICA`, Description: `Epicardial`},
{ID: `EPICM`, Description: `Epicardium`},
{ID: `EPIDU`, Description: `Epidural`},
{ID: `EPIGL`, Description: `Epiglottis`},
{ID: `ESO`, Description: `Esophagus`},
{ID: `ESOPG`, Description: `Esophageal`},
{ID: `ET`, Description: `Endotracheal`},
{ID: `ETHMO`, Description: `Ethmoid`},
{ID: `EUR`, Description: `Endourethral`},
{ID: `EYE`, Description: `Eye`},
{ID: `EYELI`, Description: `Eyelid`},
{ID: `FACE`, Description: `Face`},
{ID: `FALLT`, Description: `Fallopian Tube`},
{ID: `FBINC`, Description: `Facial bone, inferior nasal concha`},
{ID: `FBLAC`, Description: `Facial bone, lacrimal`},
{ID: `FBMAX`, Description: `Facial bone, maxilla`},
{ID: `FBNAS`, Description: `Facial bone, nasal`},
{ID: `FBPAL`, Description: `Facial bone, palatine`},
{ID: `FBVOM`, Description: `Facial bone, vomer`},
{ID: `FBZYG`, Description: `Facial bone, zygomatic`},
{ID: `FEMOR`, Description: `Femoral`},
{ID: `FEMUR`, Description: `Femur`},
{ID: `FET`, Description: `Fetus`},
{ID: `FIBU`, Description: `Fibula`},
{ID: `FING`, Description: `Finger`},
{ID: `FINGN`, Description: `Finger Nail`},
{ID: `FMH`, Description: `Femoral Head`},
{ID: `FOL`, Description: `Follicle`},
{ID: `FOOT`, Description: `Foot`},
{ID: `FOREA`, Description: `Forearm`},
{ID: `FOREH`, Description: `Forehead`},
{ID: `FORES`, Description: `Foreskin`},
{ID: `FOURC`, Description: `Fourchette`},
{ID: `GB`, Description: `Gall Bladder`},
{ID: `GEN`, Description: `Genital`},
{ID: `GENC`, Description: `Genital Cervix`},
{ID: `GENL`, Description: `Genital Lochia`},
{ID: `GL`, Description: `Genital Lesion`},
{ID: `GLAND`, Description: `Gland`},
{ID: `GLANS`, Description: `Glans`},
{ID: `GLUT`, Description: `Gluteus`},
{ID: `GLUTE`, Description: `Gluteal`},
{ID: `GLUTM`, Description: `Gluteus Medius`},
{ID: `GROIN`, Description: `Groin`},
{ID: `GUM`, Description: `Gum`},
{ID: `GVU`, Description: `Genital - Vulva`},
{ID: `HAL`, Description: `Hallux`},
{ID: `HAND`, Description: `Hand`},
{ID: `HAR`, Description: `Hair`},
{ID: `HART`, Description: `Heart`},
{ID: `HEAD`, Description: `Head`},
{ID: `HEEL`, Description: `Heel`},
{ID: `HEM`, Description: `Hemorrhoid`},
{ID: `HIP`, Description: `Hip`},
{ID: `HIPJ`, Description: `Hip Joint`},
{ID: `HUMER`, Description: `Humerus`},
{ID: `HV`, Description: `Heart Valve`},
{ID: `HVB`, Description: `Heart Valve, Bicuspid`},
{ID: `HVT`, Description: `Heart Valve, Tricuspid`},
{ID: `HYMEN`, Description: `Hymen`},
{ID: `ICX`, Description: `Intracervical`},
{ID: `ILC`, Description: `Ileal Conduit`},
{ID: `ILCON`, Description: `Ilical Conduit`},
{ID: `ILCR`, Description: `Iliac Crest`},
{ID: `ILE`, Description: `Ileal Loop`},
{ID: `ILEOS`, Description: `Ileostomy`},
{ID: `ILEUM`, Description: `Ileum`},
{ID: `ILIAC`, Description: `Iliac`},
{ID: `INASA`, Description: `Intranasal`},
{ID: `INGUI`, Description: `Inguinal`},
{ID: `INSTL`, Description: `Intestine, Large`},
{ID: `INSTS`, Description: `Intestine, Small`},
{ID: `INT`, Description: `Intestine`},
{ID: `INTRO`, Description: `Introitus`},
{ID: `INTRU`, Description: `Intrauterine`},
{ID: `ISCHI`, Description: `Ischium`},
{ID: `ISH`, Description: `Loop, Ishial`},
{ID: `JAW`, Description: `Jaw`},
{ID: `JUGI`, Description: `Jugular, Internal`},
{ID: `KIDNÂ`, Description: `Kidney`},
{ID: `KNEE`, Description: `Knee`},
{ID: `KNEEF`, Description: `Knee Fluid`},
{ID: `KNEEJ`, Description: `Knee Joint`},
{ID: `LABIA`, Description: `Labia`},
{ID: `LABMA`, Description: `Labia Majora`},
{ID: `LABMI`, Description: `Labia Minora`},
{ID: `LACRI`, Description: `Lacrimal`},
{ID: `LAM`, Description: `Lamella`},
{ID: `LARYN`, Description: `Larynx`},
{ID: `LEG`, Description: `Leg`},
{ID: `LENS`, Description: `Lens`},
{ID: `LING`, Description: `Lingual`},
{ID: `LINGU`, Description: `Lingula`},
{ID: `LIP`, Description: `Lip`},
{ID: `LIVER`, Description: `Liver`},
{ID: `LMN`, Description: `Lumen`},
{ID: `LN`, Description: `Lymph Node`},
{ID: `LNG`, Description: `Lymph Node, Groin`},
{ID: `LOBE`, Description: `Lobe`},
{ID: `LOCH`, Description: `Lochia`},
{ID: `LUMBA`, Description: `Lumbar`},
{ID: `LUNG`, Description: `Lung`},
{ID: `LYM`, Description: `Lymphocytes`},
{ID: `MAC`, Description: `Macrophages`},
{ID: `MALLE`, Description: `Malleolus`},
{ID: `MANDI`, Description: `Mandible/Mandibular`},
{ID: `MAR`, Description: `Marrow`},
{ID: `MAST`, Description: `Mastoid`},
{ID: `MAXIL`, Description: `Maxilla/Maxillary`},
{ID: `MAXS`, Description: `Maxillary Sinus`},
{ID: `MEATU`, Description: `Meatus`},
{ID: `MEC`, Description: `Meconium`},
{ID: `MEDST`, Description: `Mediastinum`},
{ID: `MEDU`, Description: `Medullary`},
{ID: `METAC`, Description: `Metacarpal`},
{ID: `METAT`, Description: `Metatarsal`},
{ID: `MILK`, Description: `Milk, Breast`},
{ID: `MITRL`, Description: `Mitral Valve`},
{ID: `MOLAR`, Description: `Molar`},
{ID: `MONSU`, Description: `Mons Ureteris`},
{ID: `MONSV`, Description: `Mons Veneris(Mons Pubis)`},
{ID: `MOU`, Description: `Membrane`},
{ID: `MOUTH`, Description: `Mouth`},
{ID: `MP`, Description: `Mons Pubis`},
{ID: `MPB`, Description: `Meninges`},
{ID: `MRSA2`, Description: `Mrsa:`},
{ID: `MYO`, Description: `Myocardium`},
{ID: `NAIL`, Description: `Nail`},
{ID: `NAILB`, Description: `Nail Bed`},
{ID: `NAILF`, Description: `Nail, Finger`},
{ID: `NAILT`, Description: `Nail, Toe`},
{ID: `NARES`, Description: `Nares`},
{ID: `NASL`, Description: `Nasal`},
{ID: `NAVEL`, Description: `Navel`},
{ID: `NECK`, Description: `Neck`},
{ID: `NERVE`, Description: `Nerve`},
{ID: `NIPPL`, Description: `Nipple`},
{ID: `NLACR`, Description: `Nasolacrimal`},
{ID: `NOS`, Description: `Nose (Nasal Passage)`},
{ID: `NOSE`, Description: `Nose/Nose(outside)`},
{ID: `NOSTR`, Description: `Nostril`},
{ID: `NP`, Description: `Nasopharyngeal/Nasopharynx`},
{ID: `NSS`, Description: `Nasal Septum`},
{ID: `NTRAC`, Description: `Nasotracheal`},
{ID: `OCCIP`, Description: `Occipital`},
{ID: `OLECR`, Description: `Olecranon`},
{ID: `OMEN`, Description: `Omentum`},
{ID: `ORBIT`, Description: `Orbit/Orbital`},
{ID: `ORO`, Description: `Oropharynx`},
{ID: `OSCOX`, Description: `Os coxa (pelvic girdle)`},
{ID: `OVARY`, Description: `Ovary`},
{ID: `PAFL`, Description: `Pancreatic Fluid`},
{ID: `PALAT`, Description: `Palate`},
{ID: `PALM`, Description: `Palm`},
{ID: `PANAL`, Description: `Perianal/Perirectal`},
{ID: `PANCR`, Description: `Pancreas`},
{ID: `PARAT`, Description: `Paratracheal`},
{ID: `PARIE`, Description: `Parietal`},
{ID: `PARON`, Description: `Paronychia`},
{ID: `PAROT`, Description: `Parotid/Parotid Gland`},
{ID: `PAS`, Description: `Parasternal`},
{ID: `PATEL`, Description: `Patella`},
{ID: `PCARD`, Description: `Pericardium`},
{ID: `PCLIT`, Description: `Periclitoral`},
{ID: `PELV`, Description: `Pelvis`},
{ID: `PENIS`, Description: `Penis`},
{ID: `PENSH`, Description: `Penile Shaft`},
{ID: `PER`, Description: `Peritoneal`},
{ID: `PERI`, Description: `Pericardial Fluid`},
{ID: `PERIH`, Description: `Perihepatic`},
{ID: `PERIN`, Description: `Perineal Abscess`},
{ID: `PERIS`, Description: `Perisplenic`},
{ID: `PERIT`, Description: `Peritoneum`},
{ID: `PERIU`, Description: `Periurethal`},
{ID: `PERIV`, Description: `Perivesicular`},
{ID: `PERRA`, Description: `Perirectal`},
{ID: `PERT`, Description: `Peritoneal Fluid`},
{ID: `PHALA`, Description: `Phalanyx`},
{ID: `PILO`, Description: `Pilonidal`},
{ID: `PINNA`, Description: `Pinna`},
{ID: `PLACF`, Description: `Placenta (Fetal Side)`},
{ID: `PLACM`, Description: `Placenta (Maternal Side)`},
{ID: `PLANT`, Description: `Plantar`},
{ID: `PLATH`, Description: `Palate, Hard`},
{ID: `PLATS`, Description: `Palate, Soft`},
{ID: `PLC`, Description: `Placenta`},
{ID: `PLEU`, Description: `Pleural Fluid`},
{ID: `PLEUR`, Description: `Pleura`},
{ID: `PLR`, Description: `Pleural Fluid (Thoracentesis Fld)`},
{ID: `PNEAL`, Description: `Perineal`},
{ID: `PNEPH`, Description: `Perinephric`},
{ID: `PNM`, Description: `Perineum`},
{ID: `POPLI`, Description: `Popliteal`},
{ID: `PORBI`, Description: `Periorbital`},
{ID: `PREAU`, Description: `Preauricular`},
{ID: `PRERE`, Description: `Prerenal`},
{ID: `PROS`, Description: `Prostatic Fluid`},
{ID: `PRST`, Description: `Prostate Gland`},
{ID: `PTONS`, Description: `Peritonsillar`},
{ID: `PUBIC`, Description: `Pubic`},
{ID: `PUL`, Description: `Pulmonary Artery`},
{ID: `RADI`, Description: `Radial`},
{ID: `RADIUS`, Description: `Radius`},
{ID: `RBC`, Description: `Red Blood Cells`},
{ID: `RECTL`, Description: `Rectal`},
{ID: `RECTU`, Description: `Rectum`},
{ID: `RENL`, Description: `Renal`},
{ID: `RIB`, Description: `Rib`},
{ID: `RNP`, Description: `Renal Pelvis`},
{ID: `RPERI`, Description: `Retroperitoneal`},
{ID: `SAC`, Description: `Uterine Cul/De/Sac`},
{ID: `SACIL`, Description: `Sacroiliac`},
{ID: `SACRA`, Description: `Sacral`},
{ID: `SACRO`, Description: `Sacrococcygeal`},
{ID: `SACRU`, Description: `Sacrum`},
{ID: `SALGL`, Description: `Salivary Gland`},
{ID: `SCALP`, Description: `Scalp`},
{ID: `SCAPU`, Description: `Scapula/Scapular`},
{ID: `SCLAV`, Description: `Supraclavicle/Supraclavicular`},
{ID: `SCLER`, Description: `Sclera`},
{ID: `SCLV`, Description: `Sub Clavian`},
{ID: `SCROT`, Description: `Scrotum/Scrotal`},
{ID: `SDP`, Description: `Subdiaphramatic`},
{ID: `SEM`, Description: `Seminal Fluid`},
{ID: `SEMN`, Description: `Semen`},
{ID: `SEPTU`, Description: `Septum/Septal`},
{ID: `SEROM`, Description: `Seroma`},
{ID: `SGF`, Description: `Subgaleal Fluid`},
{ID: `SHIN`, Description: `Shin`},
{ID: `SHOL`, Description: `Shoulder`},
{ID: `SHOLJ`, Description: `Sholder Joint`},
{ID: `SIGMO`, Description: `Sigmoid`},
{ID: `SINUS`, Description: `Sinus`},
{ID: `SKENE`, Description: `Skene's Gland`},
{ID: `SKM`, Description: `Skeletal Muscle`},
{ID: `SKULL`, Description: `Skull`},
{ID: `SOLE`, Description: `Sole`},
{ID: `SPCOR`, Description: `Spinal Cord`},
{ID: `SPHEN`, Description: `Sphenoid`},
{ID: `SPLN`, Description: `Spleen`},
{ID: `SPRM`, Description: `Spermatozoa`},
{ID: `SPX`, Description: `Supra Cervical`},
{ID: `STER`, Description: `Sternum/Sternal`},
{ID: `STOM`, Description: `Stoma`},
{ID: `STOMA`, Description: `Stomach`},
{ID: `STOOLL`, Description: `Liquid Stool`},
{ID: `STUMP`, Description: `Stump`},
{ID: `SUB`, Description: `Subdural`},
{ID: `SUBD`, Description: `Subdural Fluid`},
{ID: `SUBM`, Description: `Submandibular`},
{ID: `SUBME`, Description: `Submental`},
{ID: `SUBPH`, Description: `Subphrenic`},
{ID: `SUBX`, Description: `Submaxillary`},
{ID: `SUPB`, Description: `Suprapubic Specimen`},
{ID: `SUPRA`, Description: `Suprapubic`},
{ID: `SWT`, Description: `Sweat`},
{ID: `SWTG`, Description: `Sweat Gland`},
{ID: `SYN`, Description: `Synovial Fluid`},
{ID: `SYNOL`, Description: `Synovial`},
{ID: `SYNOV`, Description: `Synovium`},
{ID: `TARS`, Description: `Tarsal`},
{ID: `TBRON`, Description: `Transbronchial`},
{ID: `TCN`, Description: `Transcarina Asp`},
{ID: `TDUCT`, Description: `Tear Duct`},
{ID: `TEAR`, Description: `Tears`},
{ID: `TEMPL`, Description: `Temple`},
{ID: `TEMPO`, Description: `Temporal`},
{ID: `TESTI`, Description: `Testicle(Testis)`},
{ID: `THIGH`, Description: `Thigh`},
{ID: `THM`, Description: `Thymus`},
{ID: `THORA`, Description: `Thorax/Thoracic/Thoracentesis`},
{ID: `THRB`, Description: `Throat`},
{ID: `THUMB`, Description: `Thumb`},
{ID: `THYRD`, Description: `Thyroid`},
{ID: `TIBIA`, Description: `Tibia`},
{ID: `TML`, Description: `Temporal Lobe`},
{ID: `TNL`, Description: `Thumbnail`},
{ID: `TOE`, Description: `Toe`},
{ID: `TOEN`, Description: `Toe Nail`},
{ID: `TONG`, Description: `Tongue`},
{ID: `TONS`, Description: `Tonsil`},
{ID: `TOOTH`, Description: `Tooth`},
{ID: `TRCHE`, Description: `Trachea/Tracheal`},
{ID: `TSK`, Description: `Tooth Socket`},
{ID: `ULNA`, Description: `Ulna/Ulnar`},
{ID: `UMB`, Description: `Umbilical Blood`},
{ID: `UMBL`, Description: `Umbilicus/Umbilical`},
{ID: `URET`, Description: `Ureter`},
{ID: `URTH`, Description: `Urethra`},
{ID: `USTOM`, Description: `Stoma, Urinary`},
{ID: `UTER`, Description: `Uterus`},
{ID: `UTERI`, Description: `Uterine`},
{ID: `VAGIN`, Description: `Vagina/Vaginal`},
{ID: `VAL`, Description: `Valve`},
{ID: `VAS`, Description: `Vas Deferens`},
{ID: `VASTL`, Description: `Vastus Lateralis`},
{ID: `VAULT`, Description: `Vault`},
{ID: `VCSF`, Description: `Ventricular CSF`},
{ID: `VCUFF`, Description: `Vaginal Cuff`},
{ID: `VEIN`, Description: `Vein`},
{ID: `VENTG`, Description: `Ventragluteal`},
{ID: `VERMI`, Description: `Vermis Cerebelli`},
{ID: `VERTC`, Description: `Vertebra, cervical`},
{ID: `VERTL`, Description: `Vertebra, lumbar`},
{ID: `VERTT`, Description: `Vertebra, thoracic`},
{ID: `VESCL`, Description: `Vesicular`},
{ID: `VESFLD`, Description: `Vesicular Fluid`},
{ID: `VESI`, Description: `Vesicle`},
{ID: `VESTI`, Description: `Vestibule(Genital)`},
{ID: `VGV`, Description: `Vaginal Vault`},
{ID: `VITR`, Description: `Vitreous Fluid`},
{ID: `VOC`, Description: `Vocal Cord`},
{ID: `VULVA`, Description: `Vulva`},
{ID: `WBC`, Description: `Leukocytes`},
{ID: `WRIST`, Description: `Wrist`}}},
`0552`: {ID: `0552`, Name: `Advanced Beneficiary Notice Override Reason`, Row: []Row{}},
`0553`: {ID: `0553`, Name: `Invoice Control Code`, Row: []Row{
{ID: `AA`, Description: `Authorization request for inpatient admission`},
{ID: `AI`, Description: `Combined Authorization and Adjudication request`},
{ID: `CA`, Description: `Cancel Authorization request`},
{ID: `CG`, Description: `Cancel Invoice Product/Service Group`},
{ID: `CL`, Description: `Cancel Invoice Product/Service Line Item`},
{ID: `CN`, Description: `Cancel Invoice`},
{ID: `CP`, Description: `Copy of Invoice`},
{ID: `CQ`, Description: `Coverage Register Query`},
{ID: `EA`, Description: `Authorization request for inpatient stay extension`},
{ID: `OA`, Description: `Original Authorization`},
{ID: `OR`, Description: `Original Invoice`},
{ID: `PA`, Description: `Pre-Authorization`},
{ID: `PD`, Description: `Pre-Determination Invoice`},
{ID: `RA`, Description: `Re-Assessment`},
{ID: `RC`, Description: `Referral Pre-Authorization`},
{ID: `RU`, Description: `Referral authorization`},
{ID: `SA`, Description: `Special Authorization`}}},
`0554`: {ID: `0554`, Name: `Invoice Reason Codes`, Row: []Row{
{ID: `LATE`, Description: `Late Invoice`},
{ID: `NORM`, Description: `Normal submission`},
{ID: `SUB`, Description: `Subscriber coverage problem`}}},
`0555`: {ID: `0555`, Name: `Invoice Type`, Row: []Row{
{ID: `BK`, Description: `Block`},
{ID: `FN`, Description: `Final`},
{ID: `FS`, Description: `Fee for Service`},
{ID: `GP`, Description: `Group`},
{ID: `IN`, Description: `Information Only`},
{ID: `NP`, Description: `Non Patient`},
{ID: `PA`, Description: `Partial`},
{ID: `SL`, Description: `Salary`},
{ID: `SS`, Description: `By Session`},
{ID: `SU`, Description: `Supplemental`}}},
`0556`: {ID: `0556`, Name: `Benefit Group`, Row: []Row{
{ID: `AMB`, Description: `AMBULATORY CARE`},
{ID: `DENT`, Description: `DENTAL`}}},
`0557`: {ID: `0557`, Name: `Payee Type`, Row: []Row{
{ID: `EMPL`, Description: `Employer`},
{ID: `ORG`, Description: `Payee Organization`},
{ID: `PERS`, Description: `Person`},
{ID: `PPER`, Description: `Pay Person`}}},
`0558`: {ID: `0558`, Name: `Payee Relationship to Invoice`, Row: []Row{
{ID: `FM`, Description: `Family Member`},
{ID: `GT`, Description: `Guarantor`},
{ID: `PT`, Description: `Patient`},
{ID: `SB`, Description: `Subscriber`}}},
`0559`: {ID: `0559`, Name: `Product/Service Status`, Row: []Row{
{ID: `D`, Description: `Denied`},
{ID: `P`, Description: `Processed`},
{ID: `R`, Description: `Rejected`}}},
`0561`: {ID: `0561`, Name: `Product/Services Clarification Codes`, Row: []Row{
{ID: `CLCTR`, Description: `Claim Center`},
{ID: `DGAPP`, Description: `Diagnostic Approval Number`},
{ID: `DTCTR`, Description: `Data Center Number`},
{ID: `ENC`, Description: `Encounter Number`},
{ID: `GFTH`, Description: `Good Faith Indicator`},
{ID: `OOP`, Description: `Out of Province Indicator`},
{ID: `SEQ`, Description: `Sequence Number`}}},
`0562`: {ID: `0562`, Name: `Processing Consideration Codes`, Row: []Row{
{ID: `DFADJ`, Description: `Deferred Adjudication Processing`},
{ID: `EFORM`, Description: `Electronic form to follow`},
{ID: `FAX`, Description: `Fax to follow`},
{ID: `PAPER`, Description: `Paper documentation to follow`},
{ID: `PYRDELAY`, Description: `Delayed by a Previous Payer`},
{ID: `RTADJ`, Description: `Real Time Adjudication Processing`}}},
`0564`: {ID: `0564`, Name: `Adjustment Category Code`, Row: []Row{
{ID: `EA`, Description: `Edit/Adjudication Response`},
{ID: `IN`, Description: `Information`},
{ID: `PA`, Description: `Provider Adjustment`},
{ID: `PR`, Description: `Processing Result`}}},
`0565`: {ID: `0565`, Name: `Provider Adjustment Reason Code`, Row: []Row{
{ID: `DISP`, Description: `Dispensing Fee`},
{ID: `GST`, Description: `Goods and Services Tax`},
{ID: `HST`, Description: `Harmonized Sales Tax`},
{ID: `MKUP`, Description: `Mark up Fee`},
{ID: `PST`, Description: `Provincial Sales Tax`}}},
`0566`: {ID: `0566`, Name: `Blood Unit Type`, Row: []Row{
{ID: `GRN`, Description: `Granulocytes`},
{ID: `LYM`, Description: `Lymphocytes`},
{ID: `PLS`, Description: `Plasma`},
{ID: `PLT`, Description: `Platelets`},
{ID: `PSC`, Description: `Peripheral Stem Cells`},
{ID: `RBC`, Description: `Red Blood Cells`},
{ID: `WBL`, Description: `Whole Blood`}}},
`0569`: {ID: `0569`, Name: `Adjustment Action`, Row: []Row{
{ID: `EOB`, Description: `Print on EOB`},
{ID: `PAT`, Description: `Inform Patient`},
{ID: `PRO`, Description: `Inform Provider`}}},
`0570`: {ID: `0570`, Name: `Payment Method Code`, Row: []Row{
{ID: `CASH`, Description: `Cash`},
{ID: `CCCA`, Description: `Credit Card`},
{ID: `CCHK`, Description: `Cashier's Check`},
{ID: `CDAC`, Description: `Credit/Debit Account`},
{ID: `CHCK`, Description: `Check`},
{ID: `DDPO`, Description: `Direct Deposit`},
{ID: `DEBC`, Description: `Debit Card`},
{ID: `SWFT`, Description: `Society for Worldwide Interbank Financial Telecommunications (S.W.I.F.T.)`},
{ID: `TRAC`, Description: `Traveler's Check`},
{ID: `VISN`, Description: `VISA Special Electronic Funds Transfer Network`}}},
`0571`: {ID: `0571`, Name: `Invoice Processing Results Status`, Row: []Row{
{ID: `ACK`, Description: `Acknowledge`},
{ID: `ADJ`, Description: `Adjudicated with Adjustments`},
{ID: `ADJSUB`, Description: `Adjudicated as Submitted`},
{ID: `ADJZER`, Description: `Adjudicated to Zero`},
{ID: `PAID`, Description: `Paid`},
{ID: `PEND`, Description: `Pending`},
{ID: `PRED`, Description: `Pre-Determination`},
{ID: `REJECT`, Description: `Reject`}}},
`0572`: {ID: `0572`, Name: `Tax status`, Row: []Row{
{ID: `RVAT`, Description: `Registered in VAT register`},
{ID: `UVAT`, Description: `Unregistered in VAT register`}}},
`0615`: {ID: `0615`, Name: `User Authentication Credential Type Code`, Row: []Row{
{ID: `KERB`, Description: `Kerberos Service Ticket`},
{ID: `SAML`, Description: `Authenticated User Identity Assertion`}}},
`0616`: {ID: `0616`, Name: `Address Expiration Reason`, Row: []Row{
{ID: `C`, Description: `Corrected`},
{ID: `E`, Description: `Added in error`},
{ID: `M`, Description: `Moved`},
{ID: `R`, Description: `On request`}}},
`0617`: {ID: `0617`, Name: `Address Usage`, Row: []Row{
{ID: `C`, Description: `Classification`},
{ID: `M`, Description: `Mailing`},
{ID: `V`, Description: `Visit`}}},
`0618`: {ID: `0618`, Name: `Protection Code`, Row: []Row{
{ID: `LI`, Description: `Listed`},
{ID: `UL`, Description: `Unlisted (Should not appear in directories)`},
{ID: `UP`, Description: `Unpublished`}}},
`0625`: {ID: `0625`, Name: `Item Status Codes`, Row: []Row{
{ID: `1`, Description: `Active`},
{ID: `2`, Description: `Pending Inactive`},
{ID: `3`, Description: `Inactive`}}},
`0634`: {ID: `0634`, Name: `Item Importance Codes`, Row: []Row{
{ID: `CRT`, Description: `Critical`}}},
`0642`: {ID: `0642`, Name: `Reorder Theory Codes`, Row: []Row{
{ID: `D`, Description: `DOP/DOQ`},
{ID: `M`, Description: `MIN/MAX`},
{ID: `O`, Description: `Override`}}},
`0651`: {ID: `0651`, Name: `Labor Calculation Type`, Row: []Row{
{ID: `CST`, Description: `Cost`},
{ID: `TME`, Description: `Time`}}},
`0653`: {ID: `0653`, Name: `Date Format`, Row: []Row{
{ID: `1`, Description: `mm/dd/yy`},
{ID: `2`, Description: `yy.mm.dd`},
{ID: `3`, Description: `dd/mm/yy`},
{ID: `4`, Description: `dd.mm.yy`},
{ID: `5`, Description: `yy/mm/dd`},
{ID: `6`, Description: `Yymmdd`}}},
`0657`: {ID: `0657`, Name: `Device Type`, Row: []Row{
{ID: `1`, Description: `EO Gas Sterilizer`},
{ID: `2`, Description: `Steam Sterilizer`},
{ID: `3`, Description: `Peracetic Acid`}}},
`0659`: {ID: `0659`, Name: `Lot Control`, Row: []Row{
{ID: `1`, Description: `OR Mode Without Operator`},
{ID: `2`, Description: `OR Mode with Operator`},
{ID: `3`, Description: `CPD Mode Without Operator`},
{ID: `4`, Description: `CPD Mode With Operator`},
{ID: `5`, Description: `Offline Mode`}}},
`0667`: {ID: `0667`, Name: `Device Data State -`, Row: []Row{
{ID: `0`, Description: `Real Time Values`},
{ID: `1`, Description: `Historic Values`}}},
`0669`: {ID: `0669`, Name: `Load Status`, Row: []Row{
{ID: `LCC`, Description: `Load is Complete`},
{ID: `LCN`, Description: `Load Canceled`},
{ID: `LCP`, Description: `Load In Process`},
{ID: `LLD`, Description: `Building a Load`}}},
`0682`: {ID: `0682`, Name: `Device Status-`, Row: []Row{
{ID: `0`, Description: `Ready`},
{ID: `1`, Description: `Not Ready`}}},
`0702`: {ID: `0702`, Name: `Cycle Type-`, Row: []Row{
{ID: `2RS`, Description: `Second Rinse`},
{ID: `ANR`, Description: `Anesthesia/Respiratory`},
{ID: `BDP`, Description: `Bedpans`},
{ID: `BWD`, Description: `Bowie-Dick Test`},
{ID: `CMW`, Description: `Chemical Wash`},
{ID: `COD`, Description: `Code`},
{ID: `CRT`, Description: `Cart Wash`},
{ID: `DEC`, Description: `Decontamination`},
{ID: `DRT`, Description: `Dart`},
{ID: `DRW`, Description: `Dart Warm-up Cycle`},
{ID: `EOH`, Description: `EO High Temperature`},
{ID: `EOL`, Description: `EO Low Temperature`},
{ID: `EXP`, Description: `Express`},
{ID: `FLS`, Description: `Flash`},
{ID: `GLS`, Description: `Glassware`},
{ID: `GNP`, Description: `Gen. Purpose`},
{ID: `GRV`, Description: `Gravity`},
{ID: `GTL`, Description: `Gentle`},
{ID: `ISO`, Description: `Isothermal`},
{ID: `IST`, Description: `Instrument Wash`},
{ID: `LKT`, Description: `Leak Test`},
{ID: `LQD`, Description: `Liquid`},
{ID: `OPW`, Description: `Optional Wash`},
{ID: `PEA`, Description: `Peracetic Acid`},
{ID: `PLA`, Description: `Plastic Goods Wash`},
{ID: `PRV`, Description: `Prevac`},
{ID: `RNS`, Description: `Rinse`},
{ID: `SFP`, Description: `Steam Flush Pressure Pulse`},
{ID: `THR`, Description: `Thermal`},
{ID: `TRB`, Description: `Tray/Basin`},
{ID: `UTL`, Description: `Utensil Wash`},
{ID: `WFP`, Description: `Wrap/Steam Flush Pressure Pulse (Wrap/SFPP)`}}},
`0717`: {ID: `0717`, Name: `Access Restriction Value`, Row: []Row{
{ID: `ALL`, Description: `All`},
{ID: `DEM`, Description: `All demographic data`},
{ID: `DRG`, Description: `Drug`},
{ID: `HIV`, Description: `HIV status and results`},
{ID: `LOC`, Description: `Patient Location`},
{ID: `NO`, Description: `None`},
{ID: `OI`, Description: `Opt in all registries (HIPAA)`},
{ID: `OO`, Description: `Opt out all registries (HIPAA)`},
{ID: `PID-17`, Description: `Religion`},
{ID: `PID-7`, Description: `Date of Birth`},
{ID: `PSY`, Description: `Psychiatric Mental health`},
{ID: `SMD`, Description: `Sensitive medical data`},
{ID: `STD`, Description: `Sexually transmitted diseases`}}},
`0719`: {ID: `0719`, Name: `Access Restriction Reason Code`, Row: []Row{
{ID: `DIA`, Description: `Diagnosis-related`},
{ID: `EMP`, Description: `Employee of this organization`},
{ID: `ORG`, Description: `Organizational policy or requirement`},
{ID: `PAT`, Description: `Patient Request`},
{ID: `PHY`, Description: `Physician Request`},
{ID: `REG`, Description: `Regulatory requirement`},
{ID: `VIP`, Description: `Very important person or celebrity`}}},
`0725`: {ID: `0725`, Name: `Mood Codes`, Row: []Row{
{ID: `APT`, Description: `Appointment`, Comment: `Planned act for specific time and place`},
{ID: `ARQ`, Description: `Appointment Request`, Comment: `Request for Booking of an Appointment`},
{ID: `EVN`, Description: `Event`, Comment: `Service actually happens or happened or is ongoing.`},
{ID: `EVN.CRT`, Description: `Event Criterion`, Comment: `Criterion applying to Events for another Service to be applied.`},
{ID: `EXP`, Description: `Expectation`, Comment: `Expecting that something will occur independently of deliberate intent. Eg expect a patient will discard medications.`},
{ID: `INT`, Description: `Intent`, Comment: `Plan to perform a service`},
{ID: `PRMS`, Description: `Promise`, Comment: `An intent to perform a service`},
{ID: `PRP`, Description: `Proposal`, Comment: `Non-mandated intent to perform an act`},
{ID: `RQO`, Description: `Request-Order`, Comment: `Request or Order for a service`}}},
`0728`: {ID: `0728`, Name: `CCL Value`, Row: []Row{
{ID: `0`, Description: `Nothing obvious`},
{ID: `1`, Description: `Low`},
{ID: `2`, Description: `Moderate`},
{ID: `3`, Description: `High`},
{ID: `4`, Description: `Very high`}}},
`0731`: {ID: `0731`, Name: `DRG Diagnosis Determination Status`, Row: []Row{
{ID: `0`, Description: `Valid code`},
{ID: `1`, Description: `Invalid code`},
{ID: `2`, Description: `Two primary diagnosis codes`},
{ID: `3`, Description: `Invalid for this gender`},
{ID: `4`, Description: `Invalid for this age`}}},
`0734`: {ID: `0734`, Name: `Grouper Status`, Row: []Row{
{ID: `0`, Description: `Normal grouping`},
{ID: `1`, Description: `Invalid or missing primary diagnosis`},
{ID: `2`, Description: `Diagnosis is not allowed to be primary`},
{ID: `3`, Description: `Data does not fulfill DRG criteria`},
{ID: `4`, Description: `Invalid age, admission date, date of birth or discharge date`},
{ID: `5`, Description: `Invalid gender`},
{ID: `6`, Description: `Invalid discharge status`},
{ID: `7`, Description: `Invalid weight ad admission`},
{ID: `8`, Description: `Invalid length of stay`},
{ID: `9`, Description: `Invalid field "same day"`}}},
`0739`: {ID: `0739`, Name: `Status Patient`, Row: []Row{
{ID: `1`, Description: `Normal length of stay`},
{ID: `2`, Description: `Short length of stay`},
{ID: `3`, Description: `Long length of stay`}}},
`0742`: {ID: `0742`, Name: `DRG Status Financial Calculation`, Row: []Row{
{ID: `00`, Description: `Effective weight calculated`},
{ID: `01`, Description: `Hospital specific contract`},
{ID: `03`, Description: `Eeffective weight for transfer/referral calculated`},
{ID: `04`, Description: `Referral from other hospital based on a cooperation (no DRG reimbursement)`},
{ID: `05`, Description: `Invalid length of stay`},
{ID: `10`, Description: `No information/entry in cost data for this DRG`},
{ID: `11`, Description: `No relative weight found for department (type)`}}},
`0749`: {ID: `0749`, Name: `DRG Grouping Status`, Row: []Row{
{ID: `0`, Description: `Valid code; not used for grouping`},
{ID: `1`, Description: `Valid code; used for grouping`},
{ID: `2`, Description: `Invalid code; not used for grouping`},
{ID: `3`, Description: `Invalid code; code is relevant for grouping`}}},
`0755`: {ID: `0755`, Name: `Status Weight At Birth`, Row: []Row{
{ID: `0`, Description: `No weight reported at admission used for grouping`},
{ID: `1`, Description: `Weight reported at admission used for grouping`},
{ID: `2`, Description: `Default weight (>2499g) used for grouping`}}},
`0757`: {ID: `0757`, Name: `Status Respiration Minutes`, Row: []Row{
{ID: `0`, Description: `Respiration minutes not used for grouping`},
{ID: `1`, Description: `Listed respiration minutes used for grouping`},
{ID: `2`, Description: `OPS code value used for grouping`}}},
`0759`: {ID: `0759`, Name: `Status Admission`, Row: []Row{
{ID: `0`, Description: `Admission status is valid; used for grouping`},
{ID: `1`, Description: `Admission status is valid; not used for grouping`},
{ID: `2`, Description: `Admission status is invalid; not used for grouping`},
{ID: `3`, Description: `Admission status is invalid; default value used for grouping`}}},
`0761`: {ID: `0761`, Name: `DRG Procedure Determination Status`, Row: []Row{
{ID: `0`, Description: `Valid code`},
{ID: `1`, Description: `Invalid code`},
{ID: `2`, Description: `Not used`},
{ID: `3`, Description: `Invalid for this gender`},
{ID: `4`, Description: `Invalid for this age`}}},
`0763`: {ID: `0763`, Name: `DRG Procedure Relevance`, Row: []Row{
{ID: `0`, Description: `Neither operation relevant nor non-operation relevant procedure`},
{ID: `1`, Description: `Operation relevant procedure`},
{ID: `2`, Description: `Non-operation relevant procedure`}}},
`0771`: {ID: `0771`, Name: `Resource Type or Category`, Row: []Row{}},
`0776`: {ID: `0776`, Name: `Item Status`, Row: []Row{
{ID: `A`, Description: `Active`},
{ID: `I`, Description: `Inactive`},
{ID: `P`, Description: `Pending Inactive`}}},
`0778`: {ID: `0778`, Name: `Item Type`, Row: []Row{
{ID: `EQP`, Description: `Equipment`},
{ID: `IMP`, Description: `Implant`},
{ID: `MED`, Description: `Medication`},
{ID: `SUP`, Description: `Supply`},
{ID: `TDC`, Description: `Tubes, Drains, and Catheters`}}},
`0790`: {ID: `0790`, Name: `Approving Regulatory Agency`, Row: []Row{
{ID: `AMA`, Description: `American Medical Association`},
{ID: `FDA`, Description: `Food and Drug Administration`}}},
`0793`: {ID: `0793`, Name: `Ruling Act`, Row: []Row{
{ID: `SMDA`, Description: `Safe Medical Devices Act`}}},
`0806`: {ID: `0806`, Name: `Sterilization Type`, Row: []Row{
{ID: `EOG`, Description: `Ethylene Oxide Gas`},
{ID: `PCA`, Description: `Peracetic acid`},
{ID: `STM`, Description: `Steam`}}},
`0809`: {ID: `0809`, Name: `Maintenance Cycle`, Row: []Row{}},
`0811`: {ID: `0811`, Name: `Maintenance Type`, Row: []Row{}},
`0818`: {ID: `0818`, Name: `Package`, Row: []Row{
{ID: `BX`, Description: `Box`},
{ID: `CS`, Description: `Case`},
{ID: `EA`, Description: `Each`},
{ID: `SET`, Description: `Set`}}},
`0834`: {ID: `0834`, Name: `MIME Types`, Row: []Row{
{ID: `application`, Description: `Application data`},
{ID: `audio`, Description: `Audio data`},
{ID: `image`, Description: `Image data`},
{ID: `model`, Description: `Model data`},
{ID: `multipart`, Description: `MIME multipart package`},
{ID: `text`, Description: `Text data`},
{ID: `video`, Description: `Video data`}}},
`0836`: {ID: `0836`, Name: `Problem Severity`, Row: []Row{
{ID: `No Values Defined`}}},
`0838`: {ID: `0838`, Name: `Problem Perspective`, Row: []Row{
{ID: `No Values Defined`}}},
`0865`: {ID: `0865`, Name: `Referral Documentation Completion Status`, Row: []Row{}},
`0868`: {ID: `0868`, Name: `Telecommunication Expiration Reason`, Row: []Row{
{ID: `C`, Description: `Corrected`},
{ID: `E`, Description: `Added in error`},
{ID: `M`, Description: `Moved`},
{ID: `N`, Description: `No longer in service`},
{ID: `R`, Description: `On request`}}},
`0871`: {ID: `0871`, Name: `Supply Risk Codes`, Row: []Row{
{ID: `COR`, Description: `Corrosive`},
{ID: `EXP`, Description: `Explosive`},
{ID: `FLA`, Description: `Flammable`},
{ID: `INJ`, Description: `Injury Hazard`},
{ID: `RAD`, Description: `Radioactive`},
{ID: `TOX`, Description: `Toxic`},
{ID: `UNK`, Description: `Unknown`}}},
`0879`: {ID: `0879`, Name: `Product/Service Code`, Row: []Row{}},
`0880`: {ID: `0880`, Name: `Product/Service Code Modifier`, Row: []Row{}},
`0881`: {ID: `0881`, Name: `Role Executing Physician`, Row: []Row{
{ID: `B`, Description: `Both`},
{ID: `P`, Description: `Professional Part`},
{ID: `T`, Description: `Technical Part`}}},
`0882`: {ID: `0882`, Name: `Medical Role Executing Physician`, Row: []Row{
{ID: `E`, Description: `Employed`},
{ID: `SE`, Description: `Self-employed`}}},
`0894`: {ID: `0894`, Name: `Side of body`, Row: []Row{
{ID: `L`, Description: `Left`},
{ID: `R`, Description: `Right`}}},
`0895`: {ID: `0895`, Name: `Present On Admission (POA) Indicator`, Row: []Row{
{ID: `E`, Description: `Exempt`},
{ID: `N`, Description: `No`},
{ID: `U`, Description: `Unknown`},
{ID: `W`, Description: `Not applicable`},
{ID: `Y`, Description: `Yes`}}},
`0904`: {ID: `0904`, Name: `Security Check Scheme`, Row: []Row{
{ID: `BCV`, Description: `Bank Card Validation Number`},
{ID: `CCS`, Description: `Credit Card Security code`},
{ID: `VID`, Description: `Version ID`}}},
`0905`: {ID: `0905`, Name: `Shipment Status`, Row: []Row{
{ID: `INV`, Description: `Inventoried`},
{ID: `ONH`, Description: `On Hold`},
{ID: `PRC`, Description: `Processing`},
{ID: `REJ`, Description: `Rejected`},
{ID: `TRN`, Description: `In Transit`},
{ID: `TTL`, Description: `Triaged to Lab`}}},
`0906`: {ID: `0906`, Name: `ActPriority`, Row: []Row{
{ID: `A`, Description: `ASAP - As soon as possible, next highest priority after stat`},
{ID: `CR`, Description: `Callback results - filler should contact the placer as soon as results are available, even for preliminary results`},
{ID: `CS`, Description: `Callback for scheduling - Filler should contact the placer (or target) to schedule the service.`},
{ID: `CSP`, Description: `Callback placer for scheduling - filler should contact the placer to schedule the service`},
{ID: `CSR`, Description: `Contact recipient for scheduling - Filler should contact the service recipient (target) to schedule the service`},
{ID: `EL`, Description: `Elective - Beneficial to the patient but not essential for survival.`},
{ID: `EM`, Description: `Emergency - An unforeseen combination of circumstances or the resulting state that calls for immediate action`},
{ID: `P`, Description: `Preop - Used to indicate that a service is to be performed prior to a scheduled surgery. When ordering a service and using the pre-op priority, a check is done to see the amount of time that must be allowed for performance of the service. When the order`},
{ID: `PRN`, Description: `As needed - An "as needed" order should be accompanied by a description of what constitutes a need. This description is represented by an observation service predicate as a precondition.`},
{ID: `R`, Description: `Routine - Routine service, do at usual work hours`},
{ID: `RR`, Description: `Rush reporting - A report should be prepared and sent as quickly as possible`},
{ID: `S`, Description: `Stat - With highest priority (e.g. emergency).`},
{ID: `T`, Description: `Timing critical - It is critical to come as close as possible to the requested time (e.g. for a through antimicrobial level).`},
{ID: `UD`, Description: `Use as directed - Drug is to be used as directed by the prescriber.`},
{ID: `UR`, Description: `Urgent - Calls for prompt action`}}},
`0907`: {ID: `0907`, Name: `Confidentiality`, Row: []Row{
{ID: `B`, Description: `Business - Since the service class can represent knowledge structures that may be considered a trade or business secret, there is sometimes (though rarely) the need to flag those items as of business level confidentiality. However, no patient related inf`},
{ID: `C`, Description: `Celebrity - Celebrities are people of public interest (VIP) including employees, whose information require special protection.`},
{ID: `D`, Description: `Clinician - Only clinicians may see this item, billing and administration persons can not access this item without special permission.`},
{ID: `ETH`, Description: `Substance abuse related - Alcohol/drug-abuse related item`},
{ID: `HIV`, Description: `HIV Related - HIV and AIDS related item`},
{ID: `I`, Description: `Individual - Access only to individual persons who are mentioned explicitly as actors of this service and whose actor type warrants that access (cf. to actor typed code).`},
{ID: `L`, Description: `Low - No patient record item can be of low confidentiality. However, some service objects are not patient related and therefore may have low confidentiality.`},
{ID: `N`, Description: `Normal - Normal confidentiality rules (according to good health care practice) apply, that is, only authorized individuals with a legitimate medical or business need may access this item.`},
{ID: `PSY`, Description: `Psychiatry related - Psychiatry related item`},
{ID: `R`, Description: `Restricted - Restricted access, e.g. only to providers having a current care relationship to the patient.`},
{ID: `S`, Description: `Sensitive - Information for which the patient seeks heightened confidentiality. Sensitive information is not to be shared with family members. Information reported by the patient about family members is sensitive by default. Flag can be set or cleared `},
{ID: `SDV`, Description: `Sexual and domestic violence related - Sexual assault / domestic violence related item`},
{ID: `T`, Description: `Taboo - Information not to be disclosed or discussed with patient except through physician assigned to patient in this case. This is usually a temporary constraint only; example use is a new fatal diagnosis or finding, such as malignancy or HIV.`},
{ID: `V`, Description: `Very restricted - Very restricted access as declared by the Privacy Officer of the record holder.`}}},
`0908`: {ID: `0908`, Name: `Package Type`, Row: []Row{}},
`0909`: {ID: `0909`, Name: `Patient Results Release Categorization Scheme`, Row: []Row{
{ID: `SID`, Description: `Share In1 Day -<p>Share result regardless of reference/therapeutic range after 1 or more business day as agreed to by the systems in play.`},
{ID: `SIDC`, Description: `Share in 1 Day Conditionally -<p>Share result in reference ranges/therapeutic with patient after 1 or more business day as agreed to by the systems in play.<p>Withhold result out of reference/therapeutic range until physician release`},
{ID: `SIMM`, Description: `Share Immediately -<p>Share result with patient immediately`},
{ID: `STBD`, Description: `Share To Be Determined -<p>Category to be determined`},
{ID: `SWNL`, Description: `Share Within Normal Limits -<p>Share result in reference/therapeutic range with patient immediately<p>Share result out of reference/therapeutic ranges with patient after 1 or more business day as agreed to by the systems in play.`},
{ID: `SWTH`, Description: `Share Withhold -<p>Withhold result regardless of reference/therapeutic ranges`}}},
`0910`: {ID: `0910`, Name: `Acquisition Modality`, Row: []Row{}},
`0912`: {ID: `0912`, Name: `Participation`, Row: []Row{
{ID: `AD`, Description: `Admitting Provider`},
{ID: `AI`, Description: `Assistant/Alternate Interpreter`},
{ID: `AP`, Description: `Administering Provider`},
{ID: `ARI`, Description: `Assistant Result Interpreter`},
{ID: `AT`, Description: `Attending Provider`},
{ID: `AUT`, Description: `AUT Author/Event Initiator`},
{ID: `CP`, Description: `Consulting Provider`},
{ID: `DP`, Description: `Dispensing Provider`},
{ID: `EP`, Description: `Entering Provider (probably not the same as transcriptionist)`},
{ID: `EQUIP`, Description: `Equipment`},
{ID: `FHCP`, Description: `Family Health Care Professional`},
{ID: `MDIR`, Description: `Medical Director`},
{ID: `OP`, Description: `Ordering Provider`},
{ID: `PB`, Description: `Packed by`},
{ID: `PH`, Description: `Pharmacist (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)`},
{ID: `PI`, Description: `Primary Interpreter`},
{ID: `PO`, Description: `Performing Organization`},
{ID: `POMD`, Description: `Performing Organization Medical Director`},
{ID: `PP`, Description: `Primary Care Provider`},
{ID: `PRI`, Description: `Principal Result Interpreter`},
{ID: `RCT`, Description: `Results Copies To`},
{ID: `RO`, Description: `Responsible Observer`},
{ID: `RP`, Description: `Referring Provider`},
{ID: `RT`, Description: `Referred to Provider`},
{ID: `SB`, Description: `Send by`},
{ID: `SC`, Description: `Specimen Collector`},
{ID: `TN`, Description: `Technician`},
{ID: `TR`, Description: `Transcriptionist`},
{ID: `VP`, Description: `Verifying Provider`},
{ID: `VPS`, Description: `Verifying Pharmaceutical Supplier (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)`},
{ID: `VTS`, Description: `Verifying Treatment Supplier (not sure how to dissect Pharmacist/Treatment Supplier's Verifier ID)`},
{ID: `WAY`, Description: `Waypoint`},
{ID: `WAYR`, Description: `Waypoint Recipient`}}},
`0913`: {ID: `0913`, Name: `Monetary Denomination Code`, Row: []Row{
{ID: ``, Description: `No universal currency`},
{ID: `AED`, Description: `UAE Dirham`},
{ID: `AFN`, Description: `Afghani`},
{ID: `ALL`, Description: `Lek`},
{ID: `AMD`, Description: `Armenian Dram`},
{ID: `ANG`, Description: `Netherlands Antillean Guilder`},
{ID: `AOA`, Description: `Kwanza`},
{ID: `ARS`, Description: `Argentine Peso`},
{ID: `AUD`, Description: `Australian Dollar`},
{ID: `AWG`, Description: `Aruban Florin`},
{ID: `AZN`, Description: `Azerbaijan Manat`},
{ID: `BAM`, Description: `Convertible Mark`},
{ID: `BBD`, Description: `Barbados Dollar`},
{ID: `BDT`, Description: `Taka`},
{ID: `BGN`, Description: `Bulgarian Lev`},
{ID: `BHD`, Description: `Bahraini Dinar`},
{ID: `BIF`, Description: `Burundi Franc`},
{ID: `BMD`, Description: `Bermudian Dollar`},
{ID: `BND`, Description: `Brunei Dollar`},
{ID: `BOB`, Description: `Boliviano`},
{ID: `BOV`, Description: `Mvdol`},
{ID: `BRL`, Description: `Brazilian Real`},
{ID: `BSD`, Description: `Bahamian Dollar`},
{ID: `BTN`, Description: `Ngultrum`},
{ID: `BWP`, Description: `Pula`},
{ID: `BYN`, Description: `Belarusian Ruble`},
{ID: `BZD`, Description: `Belize Dollar`},
{ID: `CAD`, Description: `Canadian Dollar`},
{ID: `CDF`, Description: `Congolese Franc`},
{ID: `CHE`, Description: `WIR Euro`},
{ID: `CHF`, Description: `Swiss Franc`},
{ID: `CHW`, Description: `WIR Franc`},
{ID: `CLF`, Description: `Unidad de Fomento`},
{ID: `CLP`, Description: `Chilean Peso`},
{ID: `CNY`, Description: `Yuan Renminbi`},
{ID: `COP`, Description: `Colombian Peso`},
{ID: `COU`, Description: `Unidad de Valor Real`},
{ID: `CRC`, Description: `Costa Rican Colon`},
{ID: `CUC`, Description: `Peso Convertible`},
{ID: `CUP`, Description: `Cuban Peso`},
{ID: `CVE`, Description: `Cabo Verde Escudo`},
{ID: `CZK`, Description: `Czech Koruna`},
{ID: `DJF`, Description: `Djibouti Franc`},
{ID: `DKK`, Description: `Danish Krone`},
{ID: `DOP`, Description: `Dominican Peso`},
{ID: `DZD`, Description: `Algerian Dinar`},
{ID: `EGP`, Description: `Egyptian Pound`},
{ID: `ERN`, Description: `Nakfa`},
{ID: `ETB`, Description: `Ethiopian Birr`},
{ID: `EUR`, Description: `Euro`},
{ID: `FJD`, Description: `Fiji Dollar`},
{ID: `FKP`, Description: `Falkland Islands Pound`},
{ID: `GBP`, Description: `Pound Sterling`},
{ID: `GEL`, Description: `Lari`},
{ID: `GHS`, Description: `Ghana Cedi`},
{ID: `GIP`, Description: `Gibraltar Pound`},
{ID: `GMD`, Description: `Dalasi`},
{ID: `GNF`, Description: `Guinean Franc`},
{ID: `GTQ`, Description: `Quetzal`},
{ID: `GYD`, Description: `Guyana Dollar`},
{ID: `HKD`, Description: `Hong Kong Dollar`},
{ID: `HNL`, Description: `Lempira`},
{ID: `HRK`, Description: `Kuna`},
{ID: `HTG`, Description: `Gourde`},
{ID: `HUF`, Description: `Forint`},
{ID: `IDR`, Description: `Rupiah`},
{ID: `ILS`, Description: `New Israeli Sheqel`},
{ID: `INR`, Description: `Indian Rupee`},
{ID: `IQD`, Description: `Iraqi Dinar`},
{ID: `IRR`, Description: `Iranian Rial`},
{ID: `ISK`, Description: `Iceland Krona`},
{ID: `JMD`, Description: `Jamaican Dollar`},
{ID: `JOD`, Description: `Jordanian Dinar`},
{ID: `JPY`, Description: `Yen`},
{ID: `KES`, Description: `Kenyan Shilling`},
{ID: `KGS`, Description: `Som`},
{ID: `KHR`, Description: `Riel`},
{ID: `KMF`, Description: `Comorian Franc `},
{ID: `KPW`, Description: `North Korean Won`},
{ID: `KRW`, Description: `Won`},
{ID: `KWD`, Description: `Kuwaiti Dinar`},
{ID: `KYD`, Description: `Cayman Islands Dollar`},
{ID: `KZT`, Description: `Tenge`},
{ID: `LAK`, Description: `Lao Kip`},
{ID: `LBP`, Description: `Lebanese Pound`},
{ID: `LKR`, Description: `Sri Lanka Rupee`},
{ID: `LRD`, Description: `Liberian Dollar`},
{ID: `LSL`, Description: `Loti`},
{ID: `LYD`, Description: `Libyan Dinar`},
{ID: `MAD`, Description: `Moroccan Dirham`},
{ID: `MDL`, Description: `Moldovan Leu`},
{ID: `MGA`, Description: `Malagasy Ariary`},
{ID: `MKD`, Description: `Denar`},
{ID: `MMK`, Description: `Kyat`},
{ID: `MNT`, Description: `Tugrik`},
{ID: `MOP`, Description: `Pataca`},
{ID: `MRU`, Description: `Ouguiya`},
{ID: `MUR`, Description: `Mauritius Rupee`},
{ID: `MVR`, Description: `Rufiyaa`},
{ID: `MWK`, Description: `Malawi Kwacha`},
{ID: `MXN`, Description: `Mexican Peso`},
{ID: `MXV`, Description: `Mexican Unidad de Inversion (UDI)`},
{ID: `MYR`, Description: `Malaysian Ringgit`},
{ID: `MZN`, Description: `Mozambique Metical`},
{ID: `NAD`, Description: `Namibia Dollar`},
{ID: `NGN`, Description: `Naira`},
{ID: `NIO`, Description: `Cordoba Oro`},
{ID: `NOK`, Description: `Norwegian Krone`},
{ID: `NPR`, Description: `Nepalese Rupee`},
{ID: `NZD`, Description: `New Zealand Dollar`},
{ID: `OMR`, Description: `Rial Omani`},
{ID: `PAB`, Description: `Balboa`},
{ID: `PEN`, Description: `Sol`},
{ID: `PGK`, Description: `Kina`},
{ID: `PHP`, Description: `Philippine Peso`},
{ID: `PKR`, Description: `Pakistan Rupee`},
{ID: `PLN`, Description: `Zloty`},
{ID: `PYG`, Description: `Guarani`},
{ID: `QAR`, Description: `Qatari Rial`},
{ID: `RON`, Description: `Romanian Leu`},
{ID: `RSD`, Description: `Serbian Dinar`},
{ID: `RUB`, Description: `Russian Ruble`},
{ID: `RWF`, Description: `Rwanda Franc`},
{ID: `SAR`, Description: `Saudi Riyal`},
{ID: `SBD`, Description: `Solomon Islands Dollar`},
{ID: `SCR`, Description: `Seychelles Rupee`},
{ID: `SDG`, Description: `Sudanese Pound`},
{ID: `SEK`, Description: `Swedish Krona`},
{ID: `SGD`, Description: `Singapore Dollar`},
{ID: `SHP`, Description: `Saint Helena Pound`},
{ID: `SLL`, Description: `Leone`},
{ID: `SOS`, Description: `Somali Shilling`},
{ID: `SRD`, Description: `Surinam Dollar`},
{ID: `SSP`, Description: `South Sudanese Pound`},
{ID: `STN`, Description: `Dobra`},
{ID: `SVC`, Description: `El Salvador Colon`},
{ID: `SYP`, Description: `Syrian Pound`},
{ID: `SZL`, Description: `Lilangeni`},
{ID: `THB`, Description: `Baht`},
{ID: `TJS`, Description: `Somoni`},
{ID: `TMT`, Description: `Turkmenistan New Manat`},
{ID: `TND`, Description: `Tunisian Dinar`},
{ID: `TOP`, Description: `Pa’anga`},
{ID: `TRY`, Description: `Turkish Lira`},
{ID: `TTD`, Description: `Trinidad and Tobago Dollar`},
{ID: `TWD`, Description: `New Taiwan Dollar`},
{ID: `TZS`, Description: `Tanzanian Shilling`},
{ID: `UAH`, Description: `Hryvnia`},
{ID: `UGX`, Description: `Uganda Shilling`},
{ID: `USD`, Description: `US Dollar`},
{ID: `USN`, Description: `US Dollar (Next day)`},
{ID: `UYI`, Description: `Uruguay Peso en Unidades Indexadas (UI)`},
{ID: `UYU`, Description: `Peso Uruguayo`},
{ID: `UYW`, Description: `Unidad Previsional`},
{ID: `UZS`, Description: `Uzbekistan Sum`},
{ID: `VES`, Description: `Bolívar Soberano`},
{ID: `VND`, Description: `Dong`},
{ID: `VUV`, Description: `Vatu`},
{ID: `WST`, Description: `Tala`},
{ID: `XAF`, Description: `CFA Franc BEAC`},
{ID: `XAG`, Description: `Silver`},
{ID: `XAU`, Description: `Gold`},
{ID: `XBA`, Description: `Bond Markets Unit European Composite Unit (EURCO)`},
{ID: `XBB`, Description: `Bond Markets Unit European Monetary Unit (E.M.U.-6)`},
{ID: `XBC`, Description: `Bond Markets Unit European Unit of Account 9 (E.U.A.-9)`},
{ID: `XBD`, Description: `Bond Markets Unit European Unit of Account 17 (E.U.A.-17)`},
{ID: `XCD`, Description: `East Caribbean Dollar`},
{ID: `XDR`, Description: `SDR (Special Drawing Right)`},
{ID: `XOF`, Description: `CFA Franc BCEAO`},
{ID: `XPD`, Description: `Palladium`},
{ID: `XPF`, Description: `CFP Franc`},
{ID: `XPT`, Description: `Platinum`},
{ID: `XSU`, Description: `Sucre`},
{ID: `XTS`, Description: `Codes specifically reserved for testing purposes`},
{ID: `XUA`, Description: `ADB Unit of Account`},
{ID: `XXX`, Description: `The codes assigned for transactions where no currency is involved`},
{ID: `YER`, Description: `Yemeni Rial`},
{ID: `ZAR`, Description: `Rand`},
{ID: `ZMW`, Description: `Zambian Kwacha`},
{ID: `ZWL`, Description: `Zimbabwe Dollar`}}},
`0914`: {ID: `0914`, Name: `Root Cause`, Row: []Row{
{ID: `AP`, Description: `Analysis Process`, Comment: `Enter (AP) when ANALYSIS PROCESS is the reason due to:- Product or supply failure (reagents, calibrators, QC material)- Equipment or instrumentation failure`},
{ID: `IM`, Description: `Information Management`, Comment: `Enter (IM) when INFORMATION MANAGEMENT is the reason due to:- Database or Programming issues- Overriding of test results- Inaccurate calculations- Inaccurate flagging, reference ranges, units of measure- Incomplete/inaccurate transmission of test results- Other`},
{ID: `L`, Description: `Laboratory`, Comment: `Enter (L) when LABORATORY is the reason due to:- Data Entry error- Testing/Technical error- Repeat testing causing change to test result`},
{ID: `NA`, Description: `Not Applicable`, Comment: `Enter (NA) when NOT-APPLICABLE is the reason due to:- If no revisions performed or - unable to determine reason for revisionNote: Do not use NA if result code status is not corrected (revised) or if a preliminary release of results with a correction (revision)`},
{ID: `PD`, Description: `Placer Data`, Comment: `Enter (PD) when new or changed PLACER DATA information is the reason due to:- Changed patient demographics or- Result code data provided by the client on the requisition or specimen manifest that will be entered during order entry (i.e. Previous Biopsy Date, Clinical Information, Source, etc...)`}}},
`0915`: {ID: `0915`, Name: `Process Control Code`, Row: []Row{}},
`0916`: {ID: `0916`, Name: `Relevant Clinical Information`, Row: []Row{
{ID: `F`, Description: `Patient was fasting prior to the procedure`},
{ID: `FNA`, Description: `Fasting not asked of the patient at time of procedure`},
{ID: `NF`, Description: `The patient indicated they did not fast prior to the procedure`},
{ID: `NG`, Description: `Not Given – Patient was not asked at the time of the procedure`}}},
`0917`: {ID: `0917`, Name: `Bolus Type`, Row: []Row{
{ID: `C`, Description: `Supplemental`},
{ID: `L`, Description: `Loading`}}},
`0918`: {ID: `0918`, Name: `PCA Type`, Row: []Row{
{ID: `C`, Description: `Continuous`},
{ID: `P`, Description: `PCA Only`},
{ID: `PC`, Description: `PCA + Continuous`}}},
`0919`: {ID: `0919`, Name: `Exclusive Test`, Row: []Row{
{ID: `D`, Description: `In some cases, this test should be only exclusively with like tests (examples are cyto or pathology)`, Comment: `When D is specified for this field, using field OM1-49 determines how tests must be grouped together. Tests within the same Diagnostic Service Sector may be on the same requisition, and therefore in the same message`},
{ID: `N`, Description: `This test can be included with any number of other tests`, Comment: `Default –.will be assumed when this field is empty`},
{ID: `Y`, Description: `This test should be exclusive`}}},
`0920`: {ID: `0920`, Name: `Preferred Specimen/Attribute Status`, Row: []Row{
{ID: `A`, Description: `Alternate`, Comment: `This is a specimen that is acceptable as a replacement for a preferred specimen. In the following field (OM4-17), the sequence number of the preferred specimen must be messaged.`},
{ID: `P`, Description: `Preferred`, Comment: `This specimen is Preferred for all attributes (Container and Additive) identified in the OM4 segment.`}}},
`0921`: {ID: `0921`, Name: `Certification Type Code`, Row: []Row{
{ID: `ADM`, Description: `Admitting`},
{ID: `PROC`, Description: `Procedure`},
{ID: `SERV`, Description: `Service`}}},
`0922`: {ID: `0922`, Name: `Certification Category Code`, Row: []Row{
{ID: `IR`, Description: `Initial Request`},
{ID: `RA`, Description: `Request for Appeal`},
{ID: `RE`, Description: `Request for Extension`}}},
`0923`: {ID: `0923`, Name: `Process Interruption`, Row: []Row{
{ID: `ABR`, Description: `Aborted Run: Process interrupted after the Phlebotomist inserts the needle in the Donor’s arm`},
{ID: `NIN`, Description: `Process was not interrupted`},
{ID: `WOT`, Description: `Walk Out: Process interrupted before the Phlebotomist inserts the needle in the Donor’s arm`}}},
`0924`: {ID: `0924`, Name: `Cumulative Dosage Limit UoM`, Row: []Row{
{ID: `A`, Description: `Annual`},
{ID: `D`, Description: `Per Day`},
{ID: `M`, Description: `Per Month`},
{ID: `O`, Description: `Duration of the Order`, Comment: `Not from UCUM`},
{ID: `PL`, Description: `Patients Lifetime`, Comment: `Not fromUCUM`},
{ID: `WK`, Description: `Per Week`}}},
`0925`: {ID: `0925`, Name: `Phlebotomy Issue`, Row: []Row{
{ID: `ACN`, Description: `Air Contamination`},
{ID: `CLT`, Description: `Clotted`},
{ID: `COL`, Description: `Collapse`},
{ID: `DAK`, Description: `Defective Apheresis Kit`},
{ID: `DBG`, Description: `Defective Bag`},
{ID: `DMT`, Description: `Defective Instrument`},
{ID: `DND`, Description: `Defective Needle`},
{ID: `INF`, Description: `Infiltration`},
{ID: `IPF`, Description: `Instrument Power Failure`},
{ID: `MIS`, Description: `Missed / in tissue`},
{ID: `NAD`, Description: `Needle adjustment`, Comment: `(this may not end a procedure, if successful will impact component production)`},
{ID: `PFL`, Description: `Poor flow`},
{ID: `VSM`, Description: `Vein Spasm`}}},
`0926`: {ID: `0926`, Name: `Phlebotomy Status`, Row: []Row{
{ID: `NDR`, Description: `Not Drawn`},
{ID: `SUC`, Description: `Successful`, Comment: `Successful means a complete component was drawn`},
{ID: `UL5`, Description: `Unsuccessful Less than 50 ml drawn`}}},
`0927`: {ID: `0927`, Name: `Arm Stick`, Row: []Row{
{ID: `B`, Description: `Both Arms`},
{ID: `L`, Description: `Left Arm`},
{ID: `R`, Description: `Right Arm`}}},
`0929`: {ID: `0929`, Name: `Weight Units`, Row: []Row{
{ID: `[lb_av]`, Description: `Pound`},
{ID: `[oz_av]`, Description: `Ounce`},
{ID: `g`, Description: `Gram`},
{ID: `kg`, Description: `Kilogram`}}},
`0930`: {ID: `0930`, Name: `Volume Units`, Row: []Row{
{ID: `[pt_us]`, Description: `Pint`},
{ID: `l`, Description: `Liter`},
{ID: `ml`, Description: `Milliliters`}}},
`0931`: {ID: `0931`, Name: `Temperature Units`, Row: []Row{
{ID: `Cel`, Description: `Degrees Celsius`},
{ID: `degF`, Description: `Degrees Fahrenheit`}}},
`0932`: {ID: `0932`, Name: `Donation Duration Units`, Row: []Row{
{ID: `min`, Description: `Minutes`},
{ID: `s`, Description: `Seconds`}}},
`0933`: {ID: `0933`, Name: `Intended Procedure Type`, Row: []Row{
{ID: `2RC`, Description: `Double Red Cells`},
{ID: `GRN`, Description: `Granulocytes`},
{ID: `HEM`, Description: `Hemachromatosis`},
{ID: `HPC`, Description: `Hematopoietic Progenitor Cells`, Comment: `Stem Cells and other cells classified as Hematopoietic`},
{ID: `LYM`, Description: `Lymphocytes`},
{ID: `PLS`, Description: `Plasma`},
{ID: `PLT`, Description: `Platelets`},
{ID: `PNP`, Description: `Platelets and Plasma`},
{ID: `PNR`, Description: `Platelets and Red Cells`},
{ID: `PPR`, Description: `Platelets, Plasma, and Red Cells`},
{ID: `THA`, Description: `Therapeutic Apheresis`},
{ID: `THW`, Description: `Therapeutic Whole Blood`},
{ID: `WBL`, Description: `Whole Blood`}}},
`0934`: {ID: `0934`, Name: `Order Workflow Profile`, Row: []Row{}},
`0935`: {ID: `0935`, Name: `Process Interruption Reason`, Row: []Row{
{ID: `ASC`, Description: `Apheresis Software Crash`},
{ID: `BSC`, Description: `Manufacturing Software Crash`},
{ID: `CFT`, Description: `Couldn’t follow through with donation (scared)`},
{ID: `DBB`, Description: `Bathroom`},
{ID: `DCW`, Description: `Couldn’t wait`},
{ID: `DNI`, Description: `Phlebotomy Issue`},
{ID: `GFE`, Description: `General Facility Emergency`, Comment: `Power outage, natural disaster (tornado, flood, hurricane, etc.), air conditioning failure, etc.`},
{ID: `NRG`, Description: `No reason given, donor decided to stop without giving a reason`},
{ID: `PCD`, Description: `Phone Call-Donor`}}},
`9999`: {ID: `9999`, Name: `no table for CE`, Row: []Row{}},
`City`: {ID: `City`, Name: `City`, Row: []Row{
{ID: `Albuquerque`},
{ID: `Arlington`},
{ID: `Atlanta`},
{ID: `Austin`},
{ID: `Baltimore`},
{ID: `Boston`},
{ID: `Charlotte`},
{ID: `Chicago`},
{ID: `Cleveland`},
{ID: `Colorado Springs`},
{ID: `Columbus`},
{ID: `Dallas`},
{ID: `Denver`},
{ID: `Detroit`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Fresno`},
{ID: `Honolulu`},
{ID: `Houston`},
{ID: `Indianapolis`},
{ID: `Jacksonville`},
{ID: `Kansas City`},
{ID: `Las Vegas`},
{ID: `Long Beach`},
{ID: `Los Angeles`},
{ID: `Louisville-Jefferson County`},
{ID: `Memphis`},
{ID: `Mesa`},
{ID: `Miami`},
{ID: `Milwaukee`},
{ID: `Minneapolis`},
{ID: `Nashville-Davidson`},
{ID: `New York`},
{ID: `Oakland`},
{ID: `Oklahoma City`},
{ID: `Omaha`},
{ID: `Philadelphia`},
{ID: `Phoenix`},
{ID: `Portland`},
{ID: `Raleigh`},
{ID: `Sacramento`},
{ID: `<NAME>onio`},
{ID: `San Diego`},
{ID: `San Francisco`},
{ID: `San Jose`},
{ID: `Seattle`},
{ID: `Tucson`},
{ID: `Tulsa`},
{ID: `<NAME>`},
{ID: `Washington`}}},
`FirstName`: {ID: `FirstName`, Name: `First Name`, Row: []Row{
{ID: `Aaron`},
{ID: `Abby`},
{ID: `Abe`},
{ID: `Abel`},
{ID: `Abigail`},
{ID: `Abraham`},
{ID: `Ada`},
{ID: `Adam`},
{ID: `Addie`},
{ID: `Adela`},
{ID: `Adele`},
{ID: `Adolfo`},
{ID: `Adolph`},
{ID: `Adolphus`},
{ID: `Adrian`},
{ID: `Adrienne`},
{ID: `Agnes`},
{ID: `Agustin`},
{ID: `Aida`},
{ID: `Aileen`},
{ID: `Aimee`},
{ID: `Al`},
{ID: `Alan`},
{ID: `Alana`},
{ID: `Albert`},
{ID: `Alberta`},
{ID: `Alberto`},
{ID: `Alden`},
{ID: `Alejandro`},
{ID: `Aleta`},
{ID: `Aletha`},
{ID: `Alex`},
{ID: `Alexander`},
{ID: `Alexandra`},
{ID: `Alexis`},
{ID: `Alfonso`},
{ID: `Alfonzo`},
{ID: `Alford`},
{ID: `Alfred`},
{ID: `Alfreda`},
{ID: `Alfredo`},
{ID: `Alice`},
{ID: `Alicia`},
{ID: `Alisa`},
{ID: `Alison`},
{ID: `Allan`},
{ID: `Allen`},
{ID: `Allison`},
{ID: `Allyn`},
{ID: `Alma`},
{ID: `Alonzo`},
{ID: `Alphonse`},
{ID: `Alphonso`},
{ID: `Alta`},
{ID: `Althea`},
{ID: `Alton`},
{ID: `Alva`},
{ID: `Alvin`},
{ID: `Alyce`},
{ID: `Amanda`},
{ID: `Amber`},
{ID: `Amelia`},
{ID: `Amos`},
{ID: `Amy`},
{ID: `Ana`},
{ID: `Anderson`},
{ID: `Andre`},
{ID: `Andrea`},
{ID: `Andres`},
{ID: `Andrew`},
{ID: `Andy`},
{ID: `Angel`},
{ID: `Angela`},
{ID: `Angelia`},
{ID: `Angelina`},
{ID: `Angeline`},
{ID: `Angelita`},
{ID: `Angelo`},
{ID: `Angie`},
{ID: `Anita`},
{ID: `Ann`},
{ID: `Anna`},
{ID: `Anne`},
{ID: `Annemarie`},
{ID: `Annetta`},
{ID: `Annette`},
{ID: `Annie`},
{ID: `Annmarie`},
{ID: `Anthony`},
{ID: `Antionette`},
{ID: `Antoinette`},
{ID: `Anton`},
{ID: `Antonia`},
{ID: `Antonio`},
{ID: `April`},
{ID: `Archie`},
{ID: `Arden`},
{ID: `Arleen`},
{ID: `Arlen`},
{ID: `Arlene`},
{ID: `Arlie`},
{ID: `Armand`},
{ID: `Armando`},
{ID: `Arnold`},
{ID: `Arnulfo`},
{ID: `Art`},
{ID: `Arthur`},
{ID: `Artie`},
{ID: `Artis`},
{ID: `Arturo`},
{ID: `Ashley`},
{ID: `Athena`},
{ID: `Aubrey`},
{ID: `Audie`},
{ID: `Audrey`},
{ID: `August`},
{ID: `Augustine`},
{ID: `Augustus`},
{ID: `Aurelio`},
{ID: `Aurora`},
{ID: `Austin`},
{ID: `Ava`},
{ID: `Avery`},
{ID: `Avis`},
{ID: `Bambi`},
{ID: `Barbara`},
{ID: `Barbra`},
{ID: `Barney`},
{ID: `Barrett`},
{ID: `Barry`},
{ID: `Bart`},
{ID: `Barton`},
{ID: `Basil`},
{ID: `Beatrice`},
{ID: `Becky`},
{ID: `Belinda`},
{ID: `Ben`},
{ID: `Benedict`},
{ID: `Benita`},
{ID: `Benito`},
{ID: `Benjamin`},
{ID: `Bennett`},
{ID: `Bennie`},
{ID: `Benny`},
{ID: `Benton`},
{ID: `Bernadette`},
{ID: `Bernadine`},
{ID: `Bernard`},
{ID: `Bernice`},
{ID: `Bernie`},
{ID: `Berry`},
{ID: `Bert`},
{ID: `Bertha`},
{ID: `Bertram`},
{ID: `Beryl`},
{ID: `Bessie`},
{ID: `Beth`},
{ID: `Bethany`},
{ID: `Betsy`},
{ID: `Bette`},
{ID: `Bettie`},
{ID: `Betty`},
{ID: `Bettye`},
{ID: `Beulah`},
{ID: `Beverley`},
{ID: `Beverly`},
{ID: `Bill`},
{ID: `Billie`},
{ID: `Billy`},
{ID: `Blaine`},
{ID: `Blair`},
{ID: `Blake`},
{ID: `Blanca`},
{ID: `Blanche`},
{ID: `Blane`},
{ID: `Bob`},
{ID: `Bobbi`},
{ID: `Bobbie`},
{ID: `Bobby`},
{ID: `Bonita`},
{ID: `Bonnie`},
{ID: `Bonny`},
{ID: `Booker`},
{ID: `Boyce`},
{ID: `Boyd`},
{ID: `Brad`},
{ID: `Bradford`},
{ID: `Bradley`},
{ID: `Bradly`},
{ID: `Brady`},
{ID: `Brandon`},
{ID: `Brant`},
{ID: `Brenda`},
{ID: `Brendan`},
{ID: `Brent`},
{ID: `Bret`},
{ID: `Brett`},
{ID: `Brian`},
{ID: `Brice`},
{ID: `Bridget`},
{ID: `Britt`},
{ID: `Brooks`},
{ID: `Bruce`},
{ID: `Bruno`},
{ID: `Bryan`},
{ID: `Bryant`},
{ID: `Bryce`},
{ID: `Bryon`},
{ID: `Bud`},
{ID: `Buddy`},
{ID: `Buford`},
{ID: `Burl`},
{ID: `Burt`},
{ID: `Burton`},
{ID: `Buster`},
{ID: `Butch`},
{ID: `Byron`},
{ID: `Callie`},
{ID: `Calvin`},
{ID: `Cameron`},
{ID: `Camilla`},
{ID: `Camille`},
{ID: `Candace`},
{ID: `Candice`},
{ID: `Candy`},
{ID: `Cara`},
{ID: `Caren`},
{ID: `Carey`},
{ID: `Carey`},
{ID: `Carl`},
{ID: `Carla`},
{ID: `Carleen`},
{ID: `Carlene`},
{ID: `Carleton`},
{ID: `Carlo`},
{ID: `Carlos`},
{ID: `Carlotta`},
{ID: `Carlton`},
{ID: `Carmel`},
{ID: `Carmela`},
{ID: `Carmella`},
{ID: `Carmelo`},
{ID: `Carmen`},
{ID: `Carmine`},
{ID: `Carnell`},
{ID: `Carol`},
{ID: `Carole`},
{ID: `Carolina`},
{ID: `Caroline`},
{ID: `Carolyn`},
{ID: `Caron`},
{ID: `Carrie`},
{ID: `Carroll`},
{ID: `Carson`},
{ID: `Carter`},
{ID: `Cary`},
{ID: `Caryl`},
{ID: `Caryn`},
{ID: `Casey`},
{ID: `Cassandra`},
{ID: `Catharine`},
{ID: `Catherine`},
{ID: `Cathey`},
{ID: `Cathie`},
{ID: `Cathleen`},
{ID: `Cathrine`},
{ID: `Cathryn`},
{ID: `Cathy`},
{ID: `Cecelia`},
{ID: `Cecil`},
{ID: `Cecile`},
{ID: `Cecilia`},
{ID: `Cedric`},
{ID: `Celeste`},
{ID: `Celestine`},
{ID: `Celia`},
{ID: `Cesar`},
{ID: `Chad`},
{ID: `Charla`},
{ID: `Charleen`},
{ID: `Charlene`},
{ID: `Charles`},
{ID: `Charley`},
{ID: `Charlie`},
{ID: `Charlotte`},
{ID: `Charmaine`},
{ID: `Chauncey`},
{ID: `Cheri`},
{ID: `Cherie`},
{ID: `Cherri`},
{ID: `Cherrie`},
{ID: `Cherry`},
{ID: `Cheryl`},
{ID: `Cheryle`},
{ID: `Cheryll`},
{ID: `Chester`},
{ID: `Chip`},
{ID: `Chris`},
{ID: `Christa`},
{ID: `Christi`},
{ID: `Christian`},
{ID: `Christie`},
{ID: `Christina`},
{ID: `Christine`},
{ID: `Christophe`},
{ID: `Christopher`},
{ID: `Christy`},
{ID: `Chuck`},
{ID: `Cinda`},
{ID: `Cindi`},
{ID: `Cindy`},
{ID: `Clair`},
{ID: `Claire`},
{ID: `Clara`},
{ID: `Clare`},
{ID: `Clarence`},
{ID: `Clarice`},
{ID: `Clarissa`},
{ID: `Clark`},
{ID: `Clarke`},
{ID: `Claud`},
{ID: `Claude`},
{ID: `Claudette`},
{ID: `Claudia`},
{ID: `Clay`},
{ID: `Clayton`},
{ID: `Clement`},
{ID: `Cleo`},
{ID: `Cletus`},
{ID: `Cleve`},
{ID: `Cleveland`},
{ID: `Cliff`},
{ID: `Clifford`},
{ID: `Clifton`},
{ID: `Clint`},
{ID: `Clinton`},
{ID: `Clyde`},
{ID: `Cody`},
{ID: `Cole`},
{ID: `Coleen`},
{ID: `Coleman`},
{ID: `Colette`},
{ID: `Colin`},
{ID: `Colleen`},
{ID: `Collette`},
{ID: `Columbus`},
{ID: `Concetta`},
{ID: `Connie`},
{ID: `Connie`},
{ID: `Conrad`},
{ID: `Constance`},
{ID: `Consuelo`},
{ID: `Cora`},
{ID: `Cordell`},
{ID: `Corey`},
{ID: `Corine`},
{ID: `Corinne`},
{ID: `Corliss`},
{ID: `Cornelia`},
{ID: `Cornelius`},
{ID: `Cornell`},
{ID: `Corrine`},
{ID: `Cory`},
{ID: `Courtney`},
{ID: `Coy`},
{ID: `Craig`},
{ID: `Cris`},
{ID: `Cristina`},
{ID: `Cruz`},
{ID: `Crystal`},
{ID: `Curt`},
{ID: `Curtis`},
{ID: `Curtiss`},
{ID: `Cynthia`},
{ID: `Cyril`},
{ID: `Cyrus`},
{ID: `Daisy`},
{ID: `Dale`},
{ID: `Dallas`},
{ID: `Dalton`},
{ID: `Damian`},
{ID: `Damon`},
{ID: `Dan`},
{ID: `Dana`},
{ID: `Dane`},
{ID: `Danette`},
{ID: `Danial`},
{ID: `Daniel`},
{ID: `Danielle`},
{ID: `Danita`},
{ID: `Dann`},
{ID: `Danna`},
{ID: `Dannie`},
{ID: `Danny`},
{ID: `Dante`},
{ID: `Daphne`},
{ID: `Darcy`},
{ID: `Darell`},
{ID: `Daria`},
{ID: `Darius`},
{ID: `Darla`},
{ID: `Darleen`},
{ID: `Darlene`},
{ID: `Darnell`},
{ID: `Darold`},
{ID: `Darrel`},
{ID: `Darrell`},
{ID: `Darryl`},
{ID: `Darwin`},
{ID: `Daryl`},
{ID: `Daryle`},
{ID: `Dave`},
{ID: `Davey`},
{ID: `David`},
{ID: `Davie`},
{ID: `Davis`},
{ID: `Davy`},
{ID: `Dawn`},
{ID: `Dayna`},
{ID: `Dean`},
{ID: `Deana`},
{ID: `Deann`},
{ID: `Deanna`},
{ID: `Deanne`},
{ID: `Debbi`},
{ID: `Debbie`},
{ID: `Debbra`},
{ID: `Debby`},
{ID: `Debi`},
{ID: `Debora`},
{ID: `Deborah`},
{ID: `Debra`},
{ID: `Debrah`},
{ID: `Debroah`},
{ID: `Dee`},
{ID: `Deena`},
{ID: `Deidre`},
{ID: `Deirdre`},
{ID: `Del`},
{ID: `Delbert`},
{ID: `Delia`},
{ID: `Delilah`},
{ID: `Dell`},
{ID: `Della`},
{ID: `Delma`},
{ID: `Delmar`},
{ID: `Delmer`},
{ID: `Delois`},
{ID: `Delores`},
{ID: `Deloris`},
{ID: `Delphine`},
{ID: `Delton`},
{ID: `Demetrius`},
{ID: `Dena`},
{ID: `Denice`},
{ID: `Denis`},
{ID: `Denise`},
{ID: `Dennie`},
{ID: `Dennis`},
{ID: `Denny`},
{ID: `Denver`},
{ID: `Derek`},
{ID: `Derrell`},
{ID: `Derrick`},
{ID: `Desiree`},
{ID: `Desmond`},
{ID: `Dewayne`},
{ID: `Dewey`},
{ID: `Dewitt`},
{ID: `Dexter`},
{ID: `Dian`},
{ID: `Diana`},
{ID: `Diane`},
{ID: `Diann`},
{ID: `Dianna`},
{ID: `Dianne`},
{ID: `Dick`},
{ID: `Dickie`},
{ID: `Dina`},
{ID: `Dinah`},
{ID: `Dino`},
{ID: `Dirk`},
{ID: `Dixie`},
{ID: `Dollie`},
{ID: `Dolly`},
{ID: `Dolores`},
{ID: `Domenic`},
{ID: `Domingo`},
{ID: `Dominic`},
{ID: `Dominick`},
{ID: `Don`},
{ID: `Dona`},
{ID: `Donald`},
{ID: `Donell`},
{ID: `Donita`},
{ID: `Donn`},
{ID: `Donna`},
{ID: `Donnell`},
{ID: `Donnie`},
{ID: `Donny`},
{ID: `Donovan`},
{ID: `Dora`},
{ID: `Dorcas`},
{ID: `Doreen`},
{ID: `Dorene`},
{ID: `Doretha`},
{ID: `Dorian`},
{ID: `Dorinda`},
{ID: `Doris`},
{ID: `Dorothea`},
{ID: `Dorothy`},
{ID: `Dorsey`},
{ID: `Dorthy`},
{ID: `Dottie`},
{ID: `Doug`},
{ID: `Douglas`},
{ID: `Douglass`},
{ID: `Doyle`},
{ID: `Drew`},
{ID: `Duane`},
{ID: `Dudley`},
{ID: `Duke`},
{ID: `Duncan`},
{ID: `Dusty`},
{ID: `Duwayne`},
{ID: `Dwain`},
{ID: `Dwaine`},
{ID: `Dwayne`},
{ID: `Dwight`},
{ID: `Earl`},
{ID: `Earle`},
{ID: `Earlene`},
{ID: `Earline`},
{ID: `Earnest`},
{ID: `Earnestine`},
{ID: `Eartha`},
{ID: `Ed`},
{ID: `Eddie`},
{ID: `Eddy`},
{ID: `Edgar`},
{ID: `Edith`},
{ID: `Edmund`},
{ID: `Edna`},
{ID: `Eduardo`},
{ID: `Edward`},
{ID: `Edwardo`},
{ID: `Edwin`},
{ID: `Edwina`},
{ID: `Effie`},
{ID: `Efrain`},
{ID: `Eileen`},
{ID: `Elaine`},
{ID: `Elbert`},
{ID: `Eldon`},
{ID: `Eldridge`},
{ID: `Eleanor`},
{ID: `Elena`},
{ID: `Eli`},
{ID: `Elias`},
{ID: `Elijah`},
{ID: `Elisa`},
{ID: `Elisabeth`},
{ID: `Elise`},
{ID: `Eliseo`},
{ID: `Elissa`},
{ID: `Eliza`},
{ID: `Elizabeth`},
{ID: `Ella`},
{ID: `Ellen`},
{ID: `Elliot`},
{ID: `Elliott`},
{ID: `Ellis`},
{ID: `Elma`},
{ID: `Elmer`},
{ID: `Elmo`},
{ID: `Elnora`},
{ID: `Eloise`},
{ID: `Eloy`},
{ID: `Elroy`},
{ID: `Elsa`},
{ID: `Elsie`},
{ID: `Elton`},
{ID: `Elva`},
{ID: `Elvin`},
{ID: `Elvira`},
{ID: `Elvis`},
{ID: `Elwood`},
{ID: `Elyse`},
{ID: `Emanuel`},
{ID: `Emerson`},
{ID: `Emery`},
{ID: `Emil`},
{ID: `Emilio`},
{ID: `Emily`},
{ID: `Emma`},
{ID: `Emmanuel`},
{ID: `Emmett`},
{ID: `Emmitt`},
{ID: `Emory`},
{ID: `Enoch`},
{ID: `Enrique`},
{ID: `Eric`},
{ID: `Erica`},
{ID: `Erich`},
{ID: `Erick`},
{ID: `Erik`},
{ID: `Erin`},
{ID: `Erma`},
{ID: `Ernest`},
{ID: `Ernestine`},
{ID: `Ernesto`},
{ID: `Ernie`},
{ID: `Errol`},
{ID: `Ervin`},
{ID: `Erwin`},
{ID: `Esmeralda`},
{ID: `Esperanza`},
{ID: `Essie`},
{ID: `Esteban`},
{ID: `Estela`},
{ID: `Estella`},
{ID: `Estelle`},
{ID: `Ester`},
{ID: `Esther`},
{ID: `Ethel`},
{ID: `Etta`},
{ID: `Eugene`},
{ID: `Eugenia`},
{ID: `Eula`},
{ID: `Eunice`},
{ID: `Eva`},
{ID: `Evan`},
{ID: `Evangeline`},
{ID: `Eve`},
{ID: `Evelyn`},
{ID: `Everett`},
{ID: `Everette`},
{ID: `Ezra`},
{ID: `Faith`},
{ID: `Fannie`},
{ID: `Faron`},
{ID: `Farrell`},
{ID: `Fay`},
{ID: `Faye`},
{ID: `Federico`},
{ID: `Felecia`},
{ID: `Felicia`},
{ID: `Felipe`},
{ID: `Felix`},
{ID: `Felton`},
{ID: `Ferdinand`},
{ID: `Fern`},
{ID: `Fernando`},
{ID: `Fidel`},
{ID: `Fletcher`},
{ID: `Flora`},
{ID: `Florence`},
{ID: `Florine`},
{ID: `Floyd`},
{ID: `Forest`},
{ID: `Forrest`},
{ID: `Foster`},
{ID: `Fran`},
{ID: `Frances`},
{ID: `Francesca`},
{ID: `Francine`},
{ID: `Francis`},
{ID: `Francis`},
{ID: `Francisco`},
{ID: `Frank`},
{ID: `Frankie`},
{ID: `Franklin`},
{ID: `Franklyn`},
{ID: `Fred`},
{ID: `Freda`},
{ID: `Freddie`},
{ID: `Freddie`},
{ID: `Freddy`},
{ID: `Frederic`},
{ID: `Frederick`},
{ID: `Fredric`},
{ID: `Fredrick`},
{ID: `Freeman`},
{ID: `Freida`},
{ID: `Frieda`},
{ID: `Fritz`},
{ID: `Gabriel`},
{ID: `Gail`},
{ID: `Gail`},
{ID: `Gale`},
{ID: `Gale`},
{ID: `Galen`},
{ID: `Garland`},
{ID: `Garold`},
{ID: `Garrett`},
{ID: `Garry`},
{ID: `Garth`},
{ID: `Gary`},
{ID: `Gavin`},
{ID: `Gay`},
{ID: `Gaye`},
{ID: `Gayla`},
{ID: `Gayle`},
{ID: `Gaylon`},
{ID: `Gaylord`},
{ID: `Gearld`},
{ID: `Geary`},
{ID: `Gena`},
{ID: `Gene`},
{ID: `Geneva`},
{ID: `Genevieve`},
{ID: `Geoffrey`},
{ID: `George`},
{ID: `Georgette`},
{ID: `Georgia`},
{ID: `Georgina`},
{ID: `Gerald`},
{ID: `Geraldine`},
{ID: `Geralyn`},
{ID: `Gerard`},
{ID: `Gerardo`},
{ID: `Geri`},
{ID: `Gerri`},
{ID: `Gerry`},
{ID: `Gertrude`},
{ID: `Gil`},
{ID: `Gilbert`},
{ID: `Gilberto`},
{ID: `Gilda`},
{ID: `Giles`},
{ID: `Gina`},
{ID: `Ginger`},
{ID: `Gino`},
{ID: `Gisele`},
{ID: `Gladys`},
{ID: `Glen`},
{ID: `Glenda`},
{ID: `Glenn`},
{ID: `Glenna`},
{ID: `Glinda`},
{ID: `Gloria`},
{ID: `Glynn`},
{ID: `Goldie`},
{ID: `Gordon`},
{ID: `Grace`},
{ID: `Gracie`},
{ID: `Graciela`},
{ID: `Grady`},
{ID: `Graham`},
{ID: `Grant`},
{ID: `Greg`},
{ID: `Gregg`},
{ID: `Greggory`},
{ID: `Gregorio`},
{ID: `Gregory`},
{ID: `Greta`},
{ID: `Gretchen`},
{ID: `Grover`},
{ID: `Guadalupe`},
{ID: `Guadalupe`},
{ID: `Guillermo`},
{ID: `Gus`},
{ID: `Gustavo`},
{ID: `Guy`},
{ID: `Gwen`},
{ID: `Gwendolyn`},
{ID: `Hal`},
{ID: `Hank`},
{ID: `Hannah`},
{ID: `Hans`},
{ID: `Harlan`},
{ID: `Harley`},
{ID: `Harmon`},
{ID: `Harold`},
{ID: `Harriet`},
{ID: `Harriett`},
{ID: `Harris`},
{ID: `Harrison`},
{ID: `Harry`},
{ID: `Harvey`},
{ID: `Hattie`},
{ID: `Hayward`},
{ID: `Haywood`},
{ID: `Hazel`},
{ID: `Heather`},
{ID: `Hector`},
{ID: `Heidi`},
{ID: `Helen`},
{ID: `Helena`},
{ID: `Helene`},
{ID: `Henrietta`},
{ID: `Henry`},
{ID: `Herbert`},
{ID: `Heriberto`},
{ID: `Herman`},
{ID: `Herschel`},
{ID: `Hershel`},
{ID: `Hilary`},
{ID: `Hilda`},
{ID: `Hilton`},
{ID: `Hiram`},
{ID: `Hollis`},
{ID: `Hollis`},
{ID: `Holly`},
{ID: `Homer`},
{ID: `Hope`},
{ID: `Horace`},
{ID: `Hosea`},
{ID: `Houston`},
{ID: `Howard`},
{ID: `Hoyt`},
{ID: `Hubert`},
{ID: `Huey`},
{ID: `Hugh`},
{ID: `Hugo`},
{ID: `Humberto`},
{ID: `Ian`},
{ID: `Ida`},
{ID: `Ignacio`},
{ID: `Ike`},
{ID: `Ilene`},
{ID: `Imogene`},
{ID: `Ina`},
{ID: `Inez`},
{ID: `Ingrid`},
{ID: `Ira`},
{ID: `Irene`},
{ID: `Iris`},
{ID: `Irma`},
{ID: `Irvin`},
{ID: `Irving`},
{ID: `Irwin`},
{ID: `Isaac`},
{ID: `Isabel`},
{ID: `Isaiah`},
{ID: `Isiah`},
{ID: `Ismael`},
{ID: `Israel`},
{ID: `Issac`},
{ID: `Iva`},
{ID: `Ivan`},
{ID: `Ivory`},
{ID: `Ivy`},
{ID: `Jacalyn`},
{ID: `Jack`},
{ID: `Jackie`},
{ID: `Jacklyn`},
{ID: `Jackson`},
{ID: `Jacky`},
{ID: `Jacob`},
{ID: `Jacque`},
{ID: `Jacqueline`},
{ID: `Jacquelyn`},
{ID: `Jacques`},
{ID: `Jacquline`},
{ID: `Jaime`},
{ID: `Jake`},
{ID: `Jame`},
{ID: `James`},
{ID: `Jamie`},
{ID: `Jamie`},
{ID: `Jan`},
{ID: `Jana`},
{ID: `Jane`},
{ID: `Janeen`},
{ID: `Janell`},
{ID: `Janelle`},
{ID: `Janet`},
{ID: `Janette`},
{ID: `Janice`},
{ID: `Janie`},
{ID: `Janine`},
{ID: `Janis`},
{ID: `Jann`},
{ID: `Janna`},
{ID: `Jannette`},
{ID: `Jannie`},
{ID: `Jared`},
{ID: `Jarvis`},
{ID: `Jason`},
{ID: `Jasper`},
{ID: `Javier`},
{ID: `Jay`},
{ID: `Jaye`},
{ID: `Jayne`},
{ID: `Jean`},
{ID: `Jeanette`},
{ID: `Jeanie`},
{ID: `Jeanine`},
{ID: `Jeanne`},
{ID: `Jeannette`},
{ID: `Jeannie`},
{ID: `Jeannine`},
{ID: `Jed`},
{ID: `Jeff`},
{ID: `Jefferey`},
{ID: `Jefferson`},
{ID: `Jeffery`},
{ID: `Jeffry`},
{ID: `Jenifer`},
{ID: `Jennie`},
{ID: `Jennifer`},
{ID: `Jenny`},
{ID: `Jerald`},
{ID: `Jere`},
{ID: `Jeremiah`},
{ID: `Jeremy`},
{ID: `Jeri`},
{ID: `Jerilyn`},
{ID: `Jerold`},
{ID: `Jerome`},
{ID: `Jerri`},
{ID: `Jerrie`},
{ID: `Jerrold`},
{ID: `Jerry`},
{ID: `Jeryl`},
{ID: `Jess`},
{ID: `Jesse`},
{ID: `Jessica`},
{ID: `Jessie`},
{ID: `Jesus`},
{ID: `Jewel`},
{ID: `Jewell`},
{ID: `Jill`},
{ID: `Jim`},
{ID: `Jimmie`},
{ID: `Jimmy`},
{ID: `Jo`},
{ID: `Joan`},
{ID: `Joanie`},
{ID: `Joann`},
{ID: `Joanna`},
{ID: `Joanne`},
{ID: `Joaquin`},
{ID: `Jocelyn`},
{ID: `Jodi`},
{ID: `Jodie`},
{ID: `Jody`},
{ID: `Joe`},
{ID: `Joel`},
{ID: `Joellen`},
{ID: `Joesph`},
{ID: `Joette`},
{ID: `Joey`},
{ID: `Johanna`},
{ID: `John`},
{ID: `Johnathan`},
{ID: `Johnie`},
{ID: `Johnnie`},
{ID: `Johnny`},
{ID: `Joleen`},
{ID: `Jolene`},
{ID: `Jon`},
{ID: `Jonas`},
{ID: `Jonathan`},
{ID: `Jonathon`},
{ID: `Joni`},
{ID: `Jordan`},
{ID: `Jorge`},
{ID: `Jose`},
{ID: `Josefina`},
{ID: `Joseph`},
{ID: `Josephine`},
{ID: `Joshua`},
{ID: `Josie`},
{ID: `Joy`},
{ID: `Joyce`},
{ID: `Joycelyn`},
{ID: `Juan`},
{ID: `Juana`},
{ID: `Juanita`},
{ID: `Jude`},
{ID: `Judi`},
{ID: `Judith`},
{ID: `Judson`},
{ID: `Judy`},
{ID: `Jules`},
{ID: `Julia`},
{ID: `Julian`},
{ID: `Juliana`},
{ID: `Juliann`},
{ID: `Julianne`},
{ID: `Julie`},
{ID: `Juliet`},
{ID: `Juliette`},
{ID: `Julio`},
{ID: `Julius`},
{ID: `June`},
{ID: `Junior`},
{ID: `Justin`},
{ID: `Justine`},
{ID: `Kandy`},
{ID: `Karan`},
{ID: `Karen`},
{ID: `Kari`},
{ID: `Karin`},
{ID: `Karl`},
{ID: `Karla`},
{ID: `Karol`},
{ID: `Karon`},
{ID: `Karyn`},
{ID: `Kate`},
{ID: `Kathaleen`},
{ID: `Katharine`},
{ID: `Katherine`},
{ID: `Katheryn`},
{ID: `Kathi`},
{ID: `Kathie`},
{ID: `Kathleen`},
{ID: `Kathrine`},
{ID: `Kathryn`},
{ID: `Kathy`},
{ID: `Katie`},
{ID: `Katrina`},
{ID: `Kay`},
{ID: `Kaye`},
{ID: `Keith`},
{ID: `Kelley`},
{ID: `Kelly`},
{ID: `Kelly`},
{ID: `Kelvin`},
{ID: `Ken`},
{ID: `Kendall`},
{ID: `Kendra`},
{ID: `Kenneth`},
{ID: `Kennith`},
{ID: `Kenny`},
{ID: `Kent`},
{ID: `Kenton`},
{ID: `Kermit`},
{ID: `Kerri`},
{ID: `Kerry`},
{ID: `Kevan`},
{ID: `Keven`},
{ID: `Kevin`},
{ID: `Kim`},
{ID: `Kim`},
{ID: `Kimberlee`},
{ID: `Kimberley`},
{ID: `Kimberly`},
{ID: `King`},
{ID: `Kip`},
{ID: `Kirby`},
{ID: `Kirk`},
{ID: `Kirt`},
{ID: `Kit`},
{ID: `Kitty`},
{ID: `Kraig`},
{ID: `Kris`},
{ID: `Krista`},
{ID: `Kristen`},
{ID: `Kristi`},
{ID: `Kristie`},
{ID: `Kristin`},
{ID: `Kristina`},
{ID: `Kristine`},
{ID: `Kristy`},
{ID: `Kurt`},
{ID: `Kurtis`},
{ID: `Kyle`},
{ID: `Lacy`},
{ID: `Ladonna`},
{ID: `Lafayette`},
{ID: `Lamar`},
{ID: `Lamont`},
{ID: `Lana`},
{ID: `Lance`},
{ID: `Lane`},
{ID: `Lanette`},
{ID: `Lanny`},
{ID: `Larry`},
{ID: `Laura`},
{ID: `Laureen`},
{ID: `Laurel`},
{ID: `Lauren`},
{ID: `Laurence`},
{ID: `Laurene`},
{ID: `Lauretta`},
{ID: `Lauri`},
{ID: `Laurie`},
{ID: `Lavern`},
{ID: `Laverne`},
{ID: `Lavonne`},
{ID: `Lawanda`},
{ID: `Lawerence`},
{ID: `Lawrence`},
{ID: `Layne`},
{ID: `Lea`},
{ID: `Leah`},
{ID: `Leander`},
{ID: `Leann`},
{ID: `Leanna`},
{ID: `Leanne`},
{ID: `Lee`},
{ID: `Leeann`},
{ID: `Leigh`},
{ID: `Leila`},
{ID: `Lela`},
{ID: `Leland`},
{ID: `Lelia`},
{ID: `Lemuel`},
{ID: `Len`},
{ID: `Lena`},
{ID: `Lenard`},
{ID: `Lennie`},
{ID: `Lenny`},
{ID: `Lenora`},
{ID: `Lenore`},
{ID: `Leo`},
{ID: `Leola`},
{ID: `Leon`},
{ID: `Leona`},
{ID: `Leonard`},
{ID: `Leonardo`},
{ID: `Leroy`},
{ID: `Les`},
{ID: `Lesa`},
{ID: `Leslee`},
{ID: `Lesley`},
{ID: `Leslie`},
{ID: `Lessie`},
{ID: `Lester`},
{ID: `Leta`},
{ID: `Letha`},
{ID: `Leticia`},
{ID: `Letitia`},
{ID: `Levern`},
{ID: `Levi`},
{ID: `Levon`},
{ID: `Lewis`},
{ID: `Lex`},
{ID: `Libby`},
{ID: `Lila`},
{ID: `Lillian`},
{ID: `Lillie`},
{ID: `Lilly`},
{ID: `Lily`},
{ID: `Lincoln`},
{ID: `Linda`},
{ID: `Lindsay`},
{ID: `Lindsey`},
{ID: `Lindy`},
{ID: `Linnea`},
{ID: `Linwood`},
{ID: `Lionel`},
{ID: `Lisa`},
{ID: `Lise`},
{ID: `Lizabeth`},
{ID: `Lizzie`},
{ID: `Lloyd`},
{ID: `Logan`},
{ID: `Lois`},
{ID: `Lola`},
{ID: `Lolita`},
{ID: `Lon`},
{ID: `Lona`},
{ID: `Lonnie`},
{ID: `Lonny`},
{ID: `Lora`},
{ID: `Loraine`},
{ID: `Lorelei`},
{ID: `Loren`},
{ID: `Lorena`},
{ID: `Lorene`},
{ID: `Lorenzo`},
{ID: `Loretta`},
{ID: `Lori`},
{ID: `Lorie`},
{ID: `Lorin`},
{ID: `Lorinda`},
{ID: `Lorna`},
{ID: `Lorraine`},
{ID: `Lorri`},
{ID: `Lorrie`},
{ID: `Lottie`},
{ID: `Lou`},
{ID: `Louann`},
{ID: `Louella`},
{ID: `Louie`},
{ID: `Louis`},
{ID: `Louisa`},
{ID: `Louise`},
{ID: `Lourdes`},
{ID: `Lowell`},
{ID: `Loyd`},
{ID: `Lu`},
{ID: `Luann`},
{ID: `Luanne`},
{ID: `Lucia`},
{ID: `Lucille`},
{ID: `Lucinda`},
{ID: `Lucius`},
{ID: `Lucretia`},
{ID: `Lucy`},
{ID: `Luella`},
{ID: `Luis`},
{ID: `Luke`},
{ID: `Lula`},
{ID: `Lupe`},
{ID: `Luther`},
{ID: `Luz`},
{ID: `Lydia`},
{ID: `Lyle`},
{ID: `Lyman`},
{ID: `Lyn`},
{ID: `Lynda`},
{ID: `Lyndon`},
{ID: `Lynette`},
{ID: `Lynn`},
{ID: `Lynne`},
{ID: `Lynnette`},
{ID: `Lynwood`},
{ID: `Mabel`},
{ID: `Mable`},
{ID: `Mac`},
{ID: `Mack`},
{ID: `Madeleine`},
{ID: `Madeline`},
{ID: `Madelyn`},
{ID: `Madonna`},
{ID: `Mae`},
{ID: `Magdalena`},
{ID: `Maggie`},
{ID: `Major`},
{ID: `Malcolm`},
{ID: `Malinda`},
{ID: `Mamie`},
{ID: `Manuel`},
{ID: `Mara`},
{ID: `Marc`},
{ID: `Marcel`},
{ID: `Marcella`},
{ID: `Marci`},
{ID: `Marcia`},
{ID: `Marcie`},
{ID: `Marco`},
{ID: `Marcos`},
{ID: `Marcus`},
{ID: `Marcy`},
{ID: `Margaret`},
{ID: `Margarita`},
{ID: `Margarito`},
{ID: `Margery`},
{ID: `Margie`},
{ID: `Margo`},
{ID: `Margot`},
{ID: `Margret`},
{ID: `Marguerite`},
{ID: `Mari`},
{ID: `Maria`},
{ID: `Marian`},
{ID: `Mariann`},
{ID: `Marianna`},
{ID: `Marianne`},
{ID: `Maribeth`},
{ID: `Marie`},
{ID: `Marietta`},
{ID: `Marilee`},
{ID: `Marilyn`},
{ID: `Marilynn`},
{ID: `Marina`},
{ID: `Mario`},
{ID: `Marion`},
{ID: `Marita`},
{ID: `Marjorie`},
{ID: `Mark`},
{ID: `Marla`},
{ID: `Marlene`},
{ID: `Marlin`},
{ID: `Marlon`},
{ID: `Marlys`},
{ID: `Marsha`},
{ID: `Marshall`},
{ID: `Marta`},
{ID: `Martha`},
{ID: `Martin`},
{ID: `Martina`},
{ID: `Marty`},
{ID: `Marva`},
{ID: `Marvin`},
{ID: `Mary`},
{ID: `Maryann`},
{ID: `Maryanne`},
{ID: `Marybeth`},
{ID: `Maryellen`},
{ID: `Maryjane`},
{ID: `Maryjo`},
{ID: `Marylou`},
{ID: `Mason`},
{ID: `Mathew`},
{ID: `Matilda`},
{ID: `Matt`},
{ID: `Matthew`},
{ID: `Mattie`},
{ID: `Maura`},
{ID: `Maureen`},
{ID: `Maurice`},
{ID: `Mavis`},
{ID: `Max`},
{ID: `Maxine`},
{ID: `Maxwell`},
{ID: `May`},
{ID: `Maynard`},
{ID: `Mckinley`},
{ID: `Megan`},
{ID: `Mel`},
{ID: `Melanie`},
{ID: `Melba`},
{ID: `Melinda`},
{ID: `Melissa`},
{ID: `Melodee`},
{ID: `Melodie`},
{ID: `Melody`},
{ID: `Melva`},
{ID: `Melvin`},
{ID: `Mercedes`},
{ID: `Meredith`},
{ID: `Merle`},
{ID: `Merlin`},
{ID: `Merri`},
{ID: `Merrill`},
{ID: `Merry`},
{ID: `Mervin`},
{ID: `Meryl`},
{ID: `Michael`},
{ID: `Michal`},
{ID: `Michale`},
{ID: `Micheal`},
{ID: `Michel`},
{ID: `Michele`},
{ID: `Michelle`},
{ID: `Mickey`},
{ID: `Mickie`},
{ID: `Micky`},
{ID: `Migdalia`},
{ID: `Miguel`},
{ID: `Mike`},
{ID: `Mikel`},
{ID: `Milagros`},
{ID: `Milan`},
{ID: `Mildred`},
{ID: `Miles`},
{ID: `Milford`},
{ID: `Millard`},
{ID: `Millicent`},
{ID: `Millie`},
{ID: `Milo`},
{ID: `Milton`},
{ID: `Mimi`},
{ID: `Mindy`},
{ID: `Minerva`},
{ID: `Minnie`},
{ID: `Miriam`},
{ID: `Mitch`},
{ID: `Mitchel`},
{ID: `Mitchell`},
{ID: `Mitzi`},
{ID: `Moira`},
{ID: `Moises`},
{ID: `Mollie`},
{ID: `Molly`},
{ID: `Mona`},
{ID: `Monica`},
{ID: `Monique`},
{ID: `Monroe`},
{ID: `Monte`},
{ID: `Monty`},
{ID: `Morgan`},
{ID: `Morris`},
{ID: `Mose`},
{ID: `Moses`},
{ID: `Muriel`},
{ID: `Murphy`},
{ID: `Murray`},
{ID: `Myles`},
{ID: `Myra`},
{ID: `Myrna`},
{ID: `Myron`},
{ID: `Myrtle`},
{ID: `Nadine`},
{ID: `Nan`},
{ID: `Nanci`},
{ID: `Nancy`},
{ID: `Nanette`},
{ID: `Nannette`},
{ID: `Naomi`},
{ID: `Napoleon`},
{ID: `Natalie`},
{ID: `Nathan`},
{ID: `Nathaniel`},
{ID: `Neal`},
{ID: `Ned`},
{ID: `Nedra`},
{ID: `Neil`},
{ID: `Nelda`},
{ID: `Nellie`},
{ID: `Nelson`},
{ID: `Nettie`},
{ID: `Neva`},
{ID: `Newton`},
{ID: `Nicholas`},
{ID: `Nick`},
{ID: `Nicki`},
{ID: `Nickolas`},
{ID: `Nicky`},
{ID: `Nicolas`},
{ID: `Nicole`},
{ID: `Nikki`},
{ID: `Nina`},
{ID: `Nita`},
{ID: `Noah`},
{ID: `Noe`},
{ID: `Noel`},
{ID: `Noel`},
{ID: `Noemi`},
{ID: `Nola`},
{ID: `Nolan`},
{ID: `Nona`},
{ID: `Nora`},
{ID: `Norbert`},
{ID: `Noreen`},
{ID: `Norma`},
{ID: `Norman`},
{ID: `Normand`},
{ID: `Norris`},
{ID: `Odell`},
{ID: `Odessa`},
{ID: `Odis`},
{ID: `Ofelia`},
{ID: `Ola`},
{ID: `Olen`},
{ID: `Olga`},
{ID: `Olin`},
{ID: `Oliver`},
{ID: `Olivia`},
{ID: `Ollie`},
{ID: `Ollie`},
{ID: `Omar`},
{ID: `Opal`},
{ID: `Ophelia`},
{ID: `Ora`},
{ID: `Oralia`},
{ID: `Orlando`},
{ID: `Orval`},
{ID: `Orville`},
{ID: `Oscar`},
{ID: `Otha`},
{ID: `Otis`},
{ID: `Otto`},
{ID: `Owen`},
{ID: `Pablo`},
{ID: `Paige`},
{ID: `Pam`},
{ID: `Pamala`},
{ID: `Pamela`},
{ID: `Pamella`},
{ID: `Pasquale`},
{ID: `Pat`},
{ID: `Patrica`},
{ID: `Patrice`},
{ID: `Patricia`},
{ID: `Patrick`},
{ID: `Patsy`},
{ID: `Patti`},
{ID: `Pattie`},
{ID: `Patty`},
{ID: `Paul`},
{ID: `Paula`},
{ID: `Paulette`},
{ID: `Pauline`},
{ID: `Pearl`},
{ID: `Pearlie`},
{ID: `Pedro`},
{ID: `Peggie`},
{ID: `Peggy`},
{ID: `Penelope`},
{ID: `Pennie`},
{ID: `Penny`},
{ID: `Percy`},
{ID: `Perry`},
{ID: `Pete`},
{ID: `Peter`},
{ID: `Phil`},
{ID: `Philip`},
{ID: `Phoebe`},
{ID: `Phyllis`},
{ID: `Pierre`},
{ID: `Polly`},
{ID: `Porter`},
{ID: `Portia`},
{ID: `Preston`},
{ID: `Prince`},
{ID: `Priscilla`},
{ID: `Queen`},
{ID: `Quentin`},
{ID: `Quincy`},
{ID: `Quinton`},
{ID: `Rachael`},
{ID: `Rachel`},
{ID: `Rachelle`},
{ID: `Rae`},
{ID: `Rafael`},
{ID: `Raleigh`},
{ID: `Ralph`},
{ID: `Ramiro`},
{ID: `Ramon`},
{ID: `Ramona`},
{ID: `Rand`},
{ID: `Randal`},
{ID: `Randall`},
{ID: `Randel`},
{ID: `Randi`},
{ID: `Randle`},
{ID: `Randolf`},
{ID: `Randolph`},
{ID: `Randy`},
{ID: `Raphael`},
{ID: `Raquel`},
{ID: `Raul`},
{ID: `Ray`},
{ID: `Rayford`},
{ID: `Raymon`},
{ID: `Raymond`},
{ID: `Raymundo`},
{ID: `Reba`},
{ID: `Rebecca`},
{ID: `Rebekah`},
{ID: `Reed`},
{ID: `Regenia`},
{ID: `Reggie`},
{ID: `Regina`},
{ID: `Reginald`},
{ID: `Regis`},
{ID: `Reid`},
{ID: `Rena`},
{ID: `Renae`},
{ID: `Rene`},
{ID: `Renee`},
{ID: `Renita`},
{ID: `Reta`},
{ID: `Retha`},
{ID: `Reuben`},
{ID: `Reva`},
{ID: `Rex`},
{ID: `Reynaldo`},
{ID: `Reynold`},
{ID: `Rhea`},
{ID: `Rhett`},
{ID: `Rhoda`},
{ID: `Rhonda`},
{ID: `Ricardo`},
{ID: `Richard`},
{ID: `Rick`},
{ID: `Rickey`},
{ID: `Ricki`},
{ID: `Rickie`},
{ID: `Ricky`},
{ID: `Riley`},
{ID: `Rita`},
{ID: `Ritchie`},
{ID: `Rob`},
{ID: `Robbie`},
{ID: `Robbin`},
{ID: `Robbin`},
{ID: `Robby`},
{ID: `Robert`},
{ID: `Roberta`},
{ID: `Roberto`},
{ID: `Robin`},
{ID: `Robyn`},
{ID: `Rocco`},
{ID: `Rochelle`},
{ID: `Rock`},
{ID: `Rocky`},
{ID: `Rod`},
{ID: `Roderick`},
{ID: `Rodger`},
{ID: `Rodney`},
{ID: `Rodolfo`},
{ID: `Rodrick`},
{ID: `Rogelio`},
{ID: `Roger`},
{ID: `Rogers`},
{ID: `Roland`},
{ID: `Rolando`},
{ID: `Rolf`},
{ID: `Rolland`},
{ID: `Roman`},
{ID: `Romona`},
{ID: `Ron`},
{ID: `Rona`},
{ID: `Ronald`},
{ID: `Ronda`},
{ID: `Roni`},
{ID: `Ronna`},
{ID: `Ronnie`},
{ID: `Ronny`},
{ID: `Roosevelt`},
{ID: `Rory`},
{ID: `Rosa`},
{ID: `Rosalie`},
{ID: `Rosalind`},
{ID: `Rosalinda`},
{ID: `Rosalyn`},
{ID: `Rosanna`},
{ID: `Rosanne`},
{ID: `Rosario`},
{ID: `Roscoe`},
{ID: `Rose`},
{ID: `Roseann`},
{ID: `Roseanne`},
{ID: `Rosemarie`},
{ID: `Rosemary`},
{ID: `Rosendo`},
{ID: `Rosetta`},
{ID: `Rosie`},
{ID: `Rosita`},
{ID: `Roslyn`},
{ID: `Ross`},
{ID: `Rowena`},
{ID: `Rowland`},
{ID: `Roxane`},
{ID: `Roxann`},
{ID: `Roxanna`},
{ID: `Roxanne`},
{ID: `Roxie`},
{ID: `Roy`},
{ID: `Royal`},
{ID: `Royce`},
{ID: `Ruben`},
{ID: `Rubin`},
{ID: `Ruby`},
{ID: `Rudolfo`},
{ID: `Rudolph`},
{ID: `Rudy`},
{ID: `Rufus`},
{ID: `Russ`},
{ID: `Russel`},
{ID: `Russell`},
{ID: `Rusty`},
{ID: `Ruth`},
{ID: `Ruthie`},
{ID: `Ryan`},
{ID: `Sabrina`},
{ID: `Sadie`},
{ID: `Sallie`},
{ID: `Sally`},
{ID: `Salvador`},
{ID: `Salvatore`},
{ID: `Sam`},
{ID: `Sammie`},
{ID: `Sammy`},
{ID: `Samuel`},
{ID: `Sandi`},
{ID: `Sandra`},
{ID: `Sandy`},
{ID: `Sanford`},
{ID: `Santiago`},
{ID: `Santos`},
{ID: `Sara`},
{ID: `Sarah`},
{ID: `Saul`},
{ID: `Saundra`},
{ID: `Scot`},
{ID: `Scott`},
{ID: `Scottie`},
{ID: `Scotty`},
{ID: `Sean`},
{ID: `Selma`},
{ID: `Serena`},
{ID: `Sergio`},
{ID: `Seth`},
{ID: `Shane`},
{ID: `Shannon`},
{ID: `Sharen`},
{ID: `Shari`},
{ID: `Sharlene`},
{ID: `Sharon`},
{ID: `Sharron`},
{ID: `Shaun`},
{ID: `Shauna`},
{ID: `Shawn`},
{ID: `Sheila`},
{ID: `Sheilah`},
{ID: `Shelby`},
{ID: `Sheldon`},
{ID: `Shelia`},
{ID: `Shelley`},
{ID: `Shelly`},
{ID: `Shelton`},
{ID: `Sheree`},
{ID: `Sheri`},
{ID: `Sherie`},
{ID: `Sherman`},
{ID: `Sheron`},
{ID: `Sherree`},
{ID: `Sherri`},
{ID: `Sherrie`},
{ID: `Sherrill`},
{ID: `Sherry`},
{ID: `Sherryl`},
{ID: `Sherwood`},
{ID: `Sheryl`},
{ID: `Sheryll`},
{ID: `Shirlene`},
{ID: `Shirley`},
{ID: `Sidney`},
{ID: `Silas`},
{ID: `Silvia`},
{ID: `Simon`},
{ID: `Skip`},
{ID: `Solomon`},
{ID: `Sondra`},
{ID: `Sonia`},
{ID: `Sonja`},
{ID: `Sonny`},
{ID: `Sonya`},
{ID: `Sophia`},
{ID: `Sophie`},
{ID: `Spencer`},
{ID: `Stacey`},
{ID: `Stacy`},
{ID: `Stacy`},
{ID: `Stan`},
{ID: `Stanford`},
{ID: `Stanley`},
{ID: `Stanton`},
{ID: `Starla`},
{ID: `Stella`},
{ID: `Stephan`},
{ID: `Stephanie`},
{ID: `Stephen`},
{ID: `Sterling`},
{ID: `Stevan`},
{ID: `Steve`},
{ID: `Steven`},
{ID: `Stevie`},
{ID: `Stewart`},
{ID: `Stuart`},
{ID: `Sue`},
{ID: `Suellen`},
{ID: `Susan`},
{ID: `Susana`},
{ID: `Susanna`},
{ID: `Susanne`},
{ID: `Susie`},
{ID: `Suzan`},
{ID: `Suzann`},
{ID: `Suzanne`},
{ID: `Suzette`},
{ID: `Sybil`},
{ID: `Sydney`},
{ID: `Sylvester`},
{ID: `Sylvia`},
{ID: `Tad`},
{ID: `Talmadge`},
{ID: `Tamara`},
{ID: `Tami`},
{ID: `Tammy`},
{ID: `Tana`},
{ID: `Tanya`},
{ID: `Tara`},
{ID: `Taryn`},
{ID: `Taylor`},
{ID: `Ted`},
{ID: `Teddy`},
{ID: `Teena`},
{ID: `Tena`},
{ID: `Terence`},
{ID: `Teresa`},
{ID: `Terese`},
{ID: `Teressa`},
{ID: `Teri`},
{ID: `Terrance`},
{ID: `Terrell`},
{ID: `Terrence`},
{ID: `Terri`},
{ID: `Terrie`},
{ID: `Terry`},
{ID: `Thad`},
{ID: `Thaddeus`},
{ID: `Thea`},
{ID: `Theadore`},
{ID: `Thelma`},
{ID: `Theodis`},
{ID: `Theodore`},
{ID: `Theresa`},
{ID: `Therese`},
{ID: `Theron`},
{ID: `Thomas`},
{ID: `Thurman`},
{ID: `Tim`},
{ID: `Timmothy`},
{ID: `Timmy`},
{ID: `Timothy`},
{ID: `Tina`},
{ID: `Toby`},
{ID: `Tod`},
{ID: `Todd`},
{ID: `Tom`},
{ID: `Tomas`},
{ID: `Tommie`},
{ID: `Tommy`},
{ID: `Toney`},
{ID: `Toni`},
{ID: `Tonia`},
{ID: `Tony`},
{ID: `Tonya`},
{ID: `Tracey`},
{ID: `Tracy`},
{ID: `Travis`},
{ID: `Trena`},
{ID: `Trent`},
{ID: `Treva`},
{ID: `Tricia`},
{ID: `Trina`},
{ID: `Troy`},
{ID: `Trudy`},
{ID: `Truman`},
{ID: `Twila`},
{ID: `Twyla`},
{ID: `Ty`},
{ID: `Tyler`},
{ID: `Tyrone`},
{ID: `Ulysses`},
{ID: `Ursula`},
{ID: `Val`},
{ID: `Valarie`},
{ID: `Valentine`},
{ID: `Valeria`},
{ID: `Valerie`},
{ID: `Valorie`},
{ID: `Van`},
{ID: `Vance`},
{ID: `Vanessa`},
{ID: `Vaughn`},
{ID: `Velda`},
{ID: `Velma`},
{ID: `Venita`},
{ID: `Vera`},
{ID: `Vern`},
{ID: `Verna`},
{ID: `Verne`},
{ID: `Vernell`},
{ID: `Vernell`},
{ID: `Vernita`},
{ID: `Vernon`},
{ID: `Veronica`},
{ID: `Vicente`},
{ID: `Vickey`},
{ID: `Vicki`},
{ID: `Vickie`},
{ID: `Vicky`},
{ID: `Victor`},
{ID: `Victoria`},
{ID: `Vikki`},
{ID: `Vince`},
{ID: `Vincent`},
{ID: `Viola`},
{ID: `Violet`},
{ID: `Virgie`},
{ID: `Virgil`},
{ID: `Virginia`},
{ID: `Vito`},
{ID: `Vivian`},
{ID: `Von`},
{ID: `Vonda`},
{ID: `Wade`},
{ID: `Walker`},
{ID: `Wallace`},
{ID: `Wally`},
{ID: `Walter`},
{ID: `Wanda`},
{ID: `Ward`},
{ID: `Wardell`},
{ID: `Warner`},
{ID: `Warren`},
{ID: `Waymon`},
{ID: `Wayne`},
{ID: `Weldon`},
{ID: `Wendell`},
{ID: `Wendy`},
{ID: `Wesley`},
{ID: `Wilbert`},
{ID: `Wilbur`},
{ID: `Wilburn`},
{ID: `Wiley`},
{ID: `Wilford`},
{ID: `Wilfred`},
{ID: `Wilfredo`},
{ID: `Will`},
{ID: `Willa`},
{ID: `Willard`},
{ID: `William`},
{ID: `Williams`},
{ID: `Willie`},
{ID: `Willis`},
{ID: `Wilma`},
{ID: `Wilmer`},
{ID: `Wilson`},
{ID: `Wilton`},
{ID: `Winford`},
{ID: `Winfred`},
{ID: `Winifred`},
{ID: `Winona`},
{ID: `Winston`},
{ID: `Woodrow`},
{ID: `Woody`},
{ID: `Wyatt`},
{ID: `Xavier`},
{ID: `Yolanda`},
{ID: `Yvette`},
{ID: `Yvonne`},
{ID: `Zachary`},
{ID: `Zane`},
{ID: `Zelda`},
{ID: `Zelma`},
{ID: `Zoe`}}},
`PhoneNumber`: {ID: `PhoneNumber`, Name: `Phone Number`, Row: []Row{
{ID: `(000)503-3290`},
{ID: `(002)912-8668`},
{ID: `(003)060-0974`},
{ID: `(003)791-2955`},
{ID: `(004)371-3089`},
{ID: `(004)706-7495`},
{ID: `(004)723-8271`},
{ID: `(007)105-2079`},
{ID: `(009)384-4587`},
{ID: `(009)489-2523`},
{ID: `(010)647-1327`},
{ID: `(013)691-1470`},
{ID: `(015)036-3156`},
{ID: `(015)289-6392`},
{ID: `(016)540-1454`},
{ID: `(017)070-6374`},
{ID: `(018)715-4178`},
{ID: `(019)139-0416`},
{ID: `(019)716-0500`},
{ID: `(020)194-0034`},
{ID: `(020)849-4973`},
{ID: `(021)223-4523`},
{ID: `(021)422-2184`},
{ID: `(022)869-2197`},
{ID: `(024)065-9119`},
{ID: `(025)904-1039`},
{ID: `(027)208-2365`},
{ID: `(027)475-6720`},
{ID: `(028)108-0238`},
{ID: `(029)036-7289`},
{ID: `(030)582-4128`},
{ID: `(031)269-4560`},
{ID: `(031)424-9609`},
{ID: `(032)815-6760`},
{ID: `(033)244-0726`},
{ID: `(033)438-4988`},
{ID: `(033)586-0374`},
{ID: `(034)111-9582`},
{ID: `(036)676-1372`},
{ID: `(038)211-1102`},
{ID: `(040)824-5847`},
{ID: `(043)065-6356`},
{ID: `(043)596-2806`},
{ID: `(043)823-2538`},
{ID: `(044)656-4942`},
{ID: `(046)348-4079`},
{ID: `(046)414-7849`},
{ID: `(047)109-9173`},
{ID: `(048)115-6190`},
{ID: `(051)838-9519`},
{ID: `(052)604-8044`},
{ID: `(052)921-2833`},
{ID: `(055)386-6569`},
{ID: `(055)432-4112`},
{ID: `(056)915-1096`},
{ID: `(056)992-2232`},
{ID: `(058)109-0276`},
{ID: `(058)864-2295`},
{ID: `(059)280-5179`},
{ID: `(059)520-5259`},
{ID: `(059)779-4344`},
{ID: `(060)858-5109`},
{ID: `(060)983-1989`},
{ID: `(061)516-4952`},
{ID: `(062)657-6469`},
{ID: `(063)155-1229`},
{ID: `(064)457-1271`},
{ID: `(065)373-0732`},
{ID: `(066)074-6490`},
{ID: `(069)230-1887`},
{ID: `(069)742-8257`},
{ID: `(069)754-9611`},
{ID: `(070)462-1205`},
{ID: `(072)395-1492`},
{ID: `(072)420-3523`},
{ID: `(075)489-1136`},
{ID: `(077)156-7343`},
{ID: `(077)541-2856`},
{ID: `(079)145-7971`},
{ID: `(080)664-4237`},
{ID: `(082)040-5891`},
{ID: `(082)195-4821`},
{ID: `(083)406-6723`},
{ID: `(083)483-5991`},
{ID: `(087)241-5023`},
{ID: `(088)489-8724`},
{ID: `(088)696-6852`},
{ID: `(089)811-1888`},
{ID: `(091)639-8297`},
{ID: `(092)966-3934`},
{ID: `(093)256-8654`},
{ID: `(095)672-4654`},
{ID: `(098)391-8341`},
{ID: `(098)416-8830`},
{ID: `(099)628-5848`},
{ID: `(102)709-6111`},
{ID: `(103)228-7215`},
{ID: `(103)262-0320`},
{ID: `(103)292-5439`},
{ID: `(104)622-7908`},
{ID: `(104)689-0166`},
{ID: `(105)615-5856`},
{ID: `(105)628-0336`},
{ID: `(105)702-0880`},
{ID: `(106)534-0914`},
{ID: `(107)732-2379`},
{ID: `(107)784-3345`},
{ID: `(108)819-9427`},
{ID: `(108)873-6082`},
{ID: `(109)347-7690`},
{ID: `(109)608-3776`},
{ID: `(109)916-7853`},
{ID: `(112)633-8283`},
{ID: `(112)752-0942`},
{ID: `(115)222-1944`},
{ID: `(115)889-6818`},
{ID: `(118)393-8780`},
{ID: `(118)762-1615`},
{ID: `(119)216-6501`},
{ID: `(119)977-7977`},
{ID: `(121)864-7287`},
{ID: `(122)091-6358`},
{ID: `(123)274-9613`},
{ID: `(123)685-2708`},
{ID: `(125)441-7663`},
{ID: `(126)225-8991`},
{ID: `(126)524-4596`},
{ID: `(130)091-2416`},
{ID: `(131)788-3073`},
{ID: `(134)894-6688`},
{ID: `(134)970-2755`},
{ID: `(135)450-8105`},
{ID: `(137)492-1205`},
{ID: `(138)060-1315`},
{ID: `(138)928-2523`},
{ID: `(139)030-1713`},
{ID: `(139)455-2779`},
{ID: `(139)474-6928`},
{ID: `(142)564-5602`},
{ID: `(143)433-3909`},
{ID: `(143)950-0817`},
{ID: `(146)704-7067`},
{ID: `(147)340-8591`},
{ID: `(148)412-5568`},
{ID: `(148)799-2429`},
{ID: `(150)058-4475`},
{ID: `(151)498-8566`},
{ID: `(151)902-0269`},
{ID: `(152)710-9598`},
{ID: `(152)906-3006`},
{ID: `(156)356-7137`},
{ID: `(157)024-3918`},
{ID: `(157)687-3493`},
{ID: `(157)927-8202`},
{ID: `(159)523-6517`},
{ID: `(160)068-4907`},
{ID: `(161)463-5188`},
{ID: `(162)153-7433`},
{ID: `(163)054-3027`},
{ID: `(163)458-5291`},
{ID: `(164)744-0036`},
{ID: `(164)909-3183`},
{ID: `(166)991-6655`},
{ID: `(167)082-3478`},
{ID: `(167)820-3863`},
{ID: `(168)304-0302`},
{ID: `(169)008-2343`},
{ID: `(169)355-2528`},
{ID: `(171)295-2312`},
{ID: `(171)894-0025`},
{ID: `(171)959-4074`},
{ID: `(173)456-3664`},
{ID: `(176)494-8246`},
{ID: `(176)680-7428`},
{ID: `(179)404-1075`},
{ID: `(180)432-8504`},
{ID: `(180)595-8939`},
{ID: `(181)156-2076`},
{ID: `(183)430-9688`},
{ID: `(185)639-4760`},
{ID: `(186)386-6132`},
{ID: `(186)592-2245`},
{ID: `(188)591-6136`},
{ID: `(189)710-4631`},
{ID: `(190)421-5552`},
{ID: `(192)073-0277`},
{ID: `(192)685-9015`},
{ID: `(199)210-7188`},
{ID: `(200)354-8721`},
{ID: `(202)217-5102`},
{ID: `(202)624-9486`},
{ID: `(202)866-6263`},
{ID: `(203)831-7337`},
{ID: `(205)499-3441`},
{ID: `(205)891-8016`},
{ID: `(207)308-2766`},
{ID: `(207)344-8223`},
{ID: `(208)187-3910`},
{ID: `(208)759-8568`},
{ID: `(209)732-3442`},
{ID: `(209)734-0145`},
{ID: `(210)534-7153`},
{ID: `(211)916-6352`},
{ID: `(211)971-2024`},
{ID: `(212)603-0058`},
{ID: `(212)821-6961`},
{ID: `(216)555-9335`},
{ID: `(218)988-1372`},
{ID: `(221)558-6885`},
{ID: `(223)293-9838`},
{ID: `(223)343-4132`},
{ID: `(224)088-3864`},
{ID: `(224)333-7890`},
{ID: `(226)093-3014`},
{ID: `(226)934-8448`},
{ID: `(228)057-2396`},
{ID: `(228)202-0426`},
{ID: `(228)273-1420`},
{ID: `(228)294-3872`},
{ID: `(228)828-3818`},
{ID: `(229)327-7533`},
{ID: `(231)145-1584`},
{ID: `(231)247-7563`},
{ID: `(232)714-2933`},
{ID: `(234)386-0989`},
{ID: `(234)815-7007`},
{ID: `(236)498-9009`},
{ID: `(238)335-3862`},
{ID: `(241)156-5823`},
{ID: `(245)535-3716`},
{ID: `(245)835-1382`},
{ID: `(248)993-0603`},
{ID: `(249)745-9320`},
{ID: `(251)321-5064`},
{ID: `(252)623-2197`},
{ID: `(253)291-2275`},
{ID: `(254)442-1760`},
{ID: `(255)809-0577`},
{ID: `(256)881-9253`},
{ID: `(257)051-5138`},
{ID: `(257)636-0217`},
{ID: `(258)316-0310`},
{ID: `(258)508-7852`},
{ID: `(258)833-9222`},
{ID: `(258)938-2039`},
{ID: `(259)342-4512`},
{ID: `(261)300-0096`},
{ID: `(267)112-7989`},
{ID: `(267)554-2469`},
{ID: `(268)922-4967`},
{ID: `(268)949-2505`},
{ID: `(270)546-9048`},
{ID: `(271)092-2658`},
{ID: `(273)430-7094`},
{ID: `(274)769-7713`},
{ID: `(276)877-7439`},
{ID: `(278)682-1772`},
{ID: `(279)163-0060`},
{ID: `(279)452-2109`},
{ID: `(280)698-2335`},
{ID: `(281)215-4807`},
{ID: `(281)544-8581`},
{ID: `(282)151-9460`},
{ID: `(282)306-2569`},
{ID: `(283)016-6536`},
{ID: `(286)743-1038`},
{ID: `(287)527-8113`},
{ID: `(287)889-1233`},
{ID: `(287)889-2501`},
{ID: `(288)817-0784`},
{ID: `(289)609-1858`},
{ID: `(289)870-8706`},
{ID: `(290)228-8981`},
{ID: `(291)201-8175`},
{ID: `(291)499-0374`},
{ID: `(291)627-6797`},
{ID: `(291)806-1698`},
{ID: `(291)982-9942`},
{ID: `(292)270-0243`},
{ID: `(292)824-1320`},
{ID: `(293)181-8432`},
{ID: `(294)850-2124`},
{ID: `(297)006-5022`},
{ID: `(298)340-7100`},
{ID: `(300)986-2736`},
{ID: `(301)434-3859`},
{ID: `(303)741-3296`},
{ID: `(304)296-8457`},
{ID: `(307)143-4944`},
{ID: `(307)683-8701`},
{ID: `(307)700-4692`},
{ID: `(308)991-5267`},
{ID: `(309)482-8110`},
{ID: `(309)548-7794`},
{ID: `(310)387-9193`},
{ID: `(310)440-8045`},
{ID: `(311)678-3486`},
{ID: `(313)077-0397`},
{ID: `(313)596-2652`},
{ID: `(314)797-3015`},
{ID: `(316)861-5772`},
{ID: `(318)522-4088`},
{ID: `(318)756-0731`},
{ID: `(319)972-9529`},
{ID: `(320)470-8698`},
{ID: `(323)679-5219`},
{ID: `(323)805-4742`},
{ID: `(323)861-8409`},
{ID: `(325)418-7973`},
{ID: `(325)938-7699`},
{ID: `(327)841-4635`},
{ID: `(328)109-9783`},
{ID: `(334)235-4488`},
{ID: `(334)686-5697`},
{ID: `(335)297-7433`},
{ID: `(336)833-0445`},
{ID: `(338)895-1370`},
{ID: `(338)965-6696`},
{ID: `(339)431-4537`},
{ID: `(339)947-4189`},
{ID: `(339)949-6401`},
{ID: `(341)603-5104`},
{ID: `(342)252-0512`},
{ID: `(342)325-2247`},
{ID: `(342)535-5615`},
{ID: `(342)773-1673`},
{ID: `(343)813-8373`},
{ID: `(346)818-8636`},
{ID: `(346)923-4272`},
{ID: `(347)249-5996`},
{ID: `(347)659-2569`},
{ID: `(347)813-6348`},
{ID: `(347)898-4726`},
{ID: `(348)105-2636`},
{ID: `(348)633-5659`},
{ID: `(349)834-7568`},
{ID: `(349)940-3903`},
{ID: `(350)551-1949`},
{ID: `(350)969-3384`},
{ID: `(351)521-8096`},
{ID: `(351)657-9527`},
{ID: `(351)920-9979`},
{ID: `(352)346-3192`},
{ID: `(352)572-3753`},
{ID: `(352)813-7699`},
{ID: `(353)571-9328`},
{ID: `(353)734-4437`},
{ID: `(357)206-3921`},
{ID: `(358)260-2906`},
{ID: `(358)443-3105`},
{ID: `(359)055-7442`},
{ID: `(359)660-2174`},
{ID: `(362)566-6872`},
{ID: `(363)696-5662`},
{ID: `(364)455-6039`},
{ID: `(365)618-1800`},
{ID: `(365)987-5723`},
{ID: `(366)745-5764`},
{ID: `(368)150-3525`},
{ID: `(369)675-0347`},
{ID: `(370)852-2804`},
{ID: `(371)457-3138`},
{ID: `(371)824-8676`},
{ID: `(372)873-9163`},
{ID: `(373)306-5227`},
{ID: `(374)472-6944`},
{ID: `(375)579-0962`},
{ID: `(377)342-9398`},
{ID: `(378)105-2471`},
{ID: `(378)221-9592`},
{ID: `(379)130-9890`},
{ID: `(379)211-6896`},
{ID: `(379)284-6108`},
{ID: `(381)263-3395`},
{ID: `(381)673-7468`},
{ID: `(383)601-1058`},
{ID: `(384)180-2584`},
{ID: `(384)938-6496`},
{ID: `(385)290-8460`},
{ID: `(385)833-6509`},
{ID: `(388)119-2749`},
{ID: `(388)258-1387`},
{ID: `(388)375-7301`},
{ID: `(390)978-2697`},
{ID: `(395)291-4430`},
{ID: `(395)878-6308`},
{ID: `(395)931-7094`},
{ID: `(399)054-4627`},
{ID: `(399)249-5648`},
{ID: `(400)147-2102`},
{ID: `(400)455-9848`},
{ID: `(400)470-4740`},
{ID: `(403)559-8817`},
{ID: `(404)385-2422`},
{ID: `(404)638-2932`},
{ID: `(405)145-0317`},
{ID: `(406)051-9985`},
{ID: `(406)176-2347`},
{ID: `(406)569-7233`},
{ID: `(407)155-6201`},
{ID: `(409)090-0084`},
{ID: `(409)346-6541`},
{ID: `(409)765-1451`},
{ID: `(410)625-4841`},
{ID: `(411)685-1825`},
{ID: `(411)738-3402`},
{ID: `(413)204-5839`},
{ID: `(414)665-3249`},
{ID: `(415)319-3966`},
{ID: `(415)766-6735`},
{ID: `(418)269-7776`},
{ID: `(418)866-9389`},
{ID: `(419)179-5498`},
{ID: `(419)296-0568`},
{ID: `(420)177-7801`},
{ID: `(421)803-5499`},
{ID: `(423)675-8558`},
{ID: `(424)220-4883`},
{ID: `(424)837-7127`},
{ID: `(425)394-7431`},
{ID: `(427)322-3615`},
{ID: `(428)559-6652`},
{ID: `(428)747-2642`},
{ID: `(429)719-2829`},
{ID: `(430)031-9275`},
{ID: `(431)695-8541`},
{ID: `(432)483-4111`},
{ID: `(433)897-2204`},
{ID: `(435)172-8495`},
{ID: `(436)428-3533`},
{ID: `(437)490-4436`},
{ID: `(438)418-6258`},
{ID: `(439)156-8045`},
{ID: `(439)520-0144`},
{ID: `(440)035-0301`},
{ID: `(440)661-3829`},
{ID: `(440)964-2847`},
{ID: `(443)208-7431`},
{ID: `(444)531-4151`},
{ID: `(447)867-1650`},
{ID: `(450)661-7337`},
{ID: `(451)445-3454`},
{ID: `(453)453-9496`},
{ID: `(453)742-6569`},
{ID: `(453)841-9597`},
{ID: `(454)612-4389`},
{ID: `(455)766-1641`},
{ID: `(456)344-1269`},
{ID: `(457)211-2990`},
{ID: `(458)744-9454`},
{ID: `(458)841-9455`},
{ID: `(460)923-4708`},
{ID: `(462)249-1126`},
{ID: `(462)769-7484`},
{ID: `(463)792-7207`},
{ID: `(463)793-0089`},
{ID: `(464)043-7396`},
{ID: `(466)020-8794`},
{ID: `(466)719-5502`},
{ID: `(467)695-5419`},
{ID: `(468)265-2733`},
{ID: `(469)504-0680`},
{ID: `(470)419-3270`},
{ID: `(470)974-5922`},
{ID: `(470)978-8523`},
{ID: `(471)551-4277`},
{ID: `(472)498-6104`},
{ID: `(474)092-0985`},
{ID: `(474)515-2118`},
{ID: `(477)355-7502`},
{ID: `(477)816-0873`},
{ID: `(478)951-7242`},
{ID: `(479)641-6937`},
{ID: `(481)890-6449`},
{ID: `(482)537-9094`},
{ID: `(482)608-1906`},
{ID: `(485)044-4689`},
{ID: `(485)878-2778`},
{ID: `(486)196-0236`},
{ID: `(487)361-9472`},
{ID: `(488)227-1192`},
{ID: `(490)363-1724`},
{ID: `(490)581-1683`},
{ID: `(491)056-2691`},
{ID: `(492)340-2105`},
{ID: `(493)449-9353`},
{ID: `(493)558-2330`},
{ID: `(495)881-8656`},
{ID: `(496)649-3490`},
{ID: `(498)483-6438`},
{ID: `(500)126-3629`},
{ID: `(502)541-6350`},
{ID: `(503)799-9651`},
{ID: `(504)400-5778`},
{ID: `(504)600-9630`},
{ID: `(506)518-9133`},
{ID: `(508)009-0311`},
{ID: `(513)843-8210`},
{ID: `(514)218-4313`},
{ID: `(514)463-7083`},
{ID: `(515)141-9299`},
{ID: `(516)059-4087`},
{ID: `(516)636-3997`},
{ID: `(517)643-3356`},
{ID: `(519)191-9417`},
{ID: `(523)165-7674`},
{ID: `(525)142-5695`},
{ID: `(525)580-0351`},
{ID: `(526)225-3999`},
{ID: `(526)368-4043`},
{ID: `(526)855-2737`},
{ID: `(527)675-6113`},
{ID: `(530)287-4456`},
{ID: `(530)814-1162`},
{ID: `(530)935-8616`},
{ID: `(531)134-1587`},
{ID: `(533)721-7542`},
{ID: `(533)885-1179`},
{ID: `(535)896-1109`},
{ID: `(536)040-4796`},
{ID: `(537)119-3022`},
{ID: `(539)327-4819`},
{ID: `(539)747-3658`},
{ID: `(541)644-7108`},
{ID: `(542)039-7083`},
{ID: `(544)333-8413`},
{ID: `(544)881-1615`},
{ID: `(547)205-1413`},
{ID: `(549)300-1441`},
{ID: `(549)328-2327`},
{ID: `(551)423-3511`},
{ID: `(551)901-6452`},
{ID: `(552)265-2807`},
{ID: `(553)748-3267`},
{ID: `(556)012-0350`},
{ID: `(556)666-4825`},
{ID: `(557)080-4887`},
{ID: `(557)413-6179`},
{ID: `(557)891-7243`},
{ID: `(558)110-5674`},
{ID: `(559)019-2177`},
{ID: `(560)398-2890`},
{ID: `(560)492-2803`},
{ID: `(560)824-4296`},
{ID: `(563)057-9593`},
{ID: `(563)135-7239`},
{ID: `(566)343-6158`},
{ID: `(567)343-3601`},
{ID: `(567)699-0964`},
{ID: `(567)955-4755`},
{ID: `(568)455-5518`},
{ID: `(569)485-1351`},
{ID: `(569)675-5592`},
{ID: `(572)256-5255`},
{ID: `(572)583-6670`},
{ID: `(572)599-8576`},
{ID: `(574)370-3785`},
{ID: `(574)448-6569`},
{ID: `(575)149-1800`},
{ID: `(575)519-6399`},
{ID: `(575)968-9030`},
{ID: `(576)008-9199`},
{ID: `(578)513-1672`},
{ID: `(578)513-3257`},
{ID: `(578)737-4341`},
{ID: `(580)561-3207`},
{ID: `(584)846-4230`},
{ID: `(586)302-0737`},
{ID: `(587)286-0462`},
{ID: `(588)157-6521`},
{ID: `(589)219-4327`},
{ID: `(590)382-0464`},
{ID: `(594)780-8689`},
{ID: `(595)171-4971`},
{ID: `(595)609-5113`},
{ID: `(595)742-1887`},
{ID: `(596)242-5986`},
{ID: `(596)787-1563`},
{ID: `(597)063-4595`},
{ID: `(597)704-7408`},
{ID: `(600)599-8053`},
{ID: `(601)292-0226`},
{ID: `(601)430-4410`},
{ID: `(602)386-1964`},
{ID: `(603)339-0991`},
{ID: `(603)454-5797`},
{ID: `(603)922-9921`},
{ID: `(605)166-2693`},
{ID: `(606)491-6899`},
{ID: `(608)159-1463`},
{ID: `(609)075-9738`},
{ID: `(610)258-6392`},
{ID: `(610)451-3175`},
{ID: `(616)084-5568`},
{ID: `(616)367-5125`},
{ID: `(616)591-9407`},
{ID: `(617)933-5027`},
{ID: `(619)384-5684`},
{ID: `(620)091-7168`},
{ID: `(620)848-0484`},
{ID: `(621)993-9659`},
{ID: `(622)021-5399`},
{ID: `(622)665-9770`},
{ID: `(623)551-5738`},
{ID: `(624)192-9953`},
{ID: `(624)330-3619`},
{ID: `(626)054-3967`},
{ID: `(627)966-9063`},
{ID: `(629)328-9582`},
{ID: `(629)426-8169`},
{ID: `(630)649-4087`},
{ID: `(630)688-7013`},
{ID: `(631)283-9658`},
{ID: `(631)861-0610`},
{ID: `(633)271-7066`},
{ID: `(634)767-7614`},
{ID: `(635)817-4500`},
{ID: `(636)019-9596`},
{ID: `(636)648-5663`},
{ID: `(637)469-1401`},
{ID: `(637)992-1529`},
{ID: `(640)532-7532`},
{ID: `(640)808-2950`},
{ID: `(643)406-5013`},
{ID: `(643)617-1328`},
{ID: `(643)815-7142`},
{ID: `(645)939-1884`},
{ID: `(646)330-7552`},
{ID: `(646)430-4425`},
{ID: `(646)757-9645`},
{ID: `(648)576-6542`},
{ID: `(649)281-5817`},
{ID: `(651)434-7877`},
{ID: `(651)855-5503`},
{ID: `(651)907-9152`},
{ID: `(652)201-1937`},
{ID: `(652)677-9302`},
{ID: `(653)913-3561`},
{ID: `(653)919-0290`},
{ID: `(654)214-0363`},
{ID: `(654)584-3638`},
{ID: `(655)628-3423`},
{ID: `(656)205-8838`},
{ID: `(658)186-0584`},
{ID: `(660)553-2359`},
{ID: `(660)614-6256`},
{ID: `(661)888-8175`},
{ID: `(662)918-0585`},
{ID: `(664)486-7933`},
{ID: `(664)644-0588`},
{ID: `(666)373-9068`},
{ID: `(666)610-9788`},
{ID: `(666)711-0630`},
{ID: `(666)936-4637`},
{ID: `(667)581-4428`},
{ID: `(667)794-5040`},
{ID: `(669)412-4853`},
{ID: `(671)377-1515`},
{ID: `(672)861-4357`},
{ID: `(673)209-2035`},
{ID: `(673)899-9851`},
{ID: `(674)824-2613`},
{ID: `(675)289-8662`},
{ID: `(677)434-0724`},
{ID: `(677)521-9206`},
{ID: `(678)508-7427`},
{ID: `(682)595-4806`},
{ID: `(683)223-0630`},
{ID: `(683)770-8839`},
{ID: `(684)935-4057`},
{ID: `(685)584-0855`},
{ID: `(686)066-5474`},
{ID: `(687)058-2573`},
{ID: `(687)113-9639`},
{ID: `(687)136-5457`},
{ID: `(688)233-4463`},
{ID: `(691)104-4382`},
{ID: `(691)327-7872`},
{ID: `(694)102-9428`},
{ID: `(698)008-9712`},
{ID: `(698)465-6001`},
{ID: `(698)651-7847`},
{ID: `(698)660-8633`},
{ID: `(698)879-0511`},
{ID: `(699)048-1691`},
{ID: `(701)753-9540`},
{ID: `(704)385-8282`},
{ID: `(705)269-7628`},
{ID: `(705)424-3598`},
{ID: `(705)895-5731`},
{ID: `(706)021-7859`},
{ID: `(707)357-8230`},
{ID: `(708)245-0694`},
{ID: `(708)907-9137`},
{ID: `(709)679-7726`},
{ID: `(710)315-6149`},
{ID: `(711)499-6820`},
{ID: `(712)182-2385`},
{ID: `(712)943-1067`},
{ID: `(713)078-7309`},
{ID: `(713)282-1103`},
{ID: `(713)888-1609`},
{ID: `(714)489-4836`},
{ID: `(714)532-9784`},
{ID: `(714)589-2697`},
{ID: `(714)725-3320`},
{ID: `(715)926-8554`},
{ID: `(717)296-3780`},
{ID: `(717)392-9508`},
{ID: `(718)838-3600`},
{ID: `(719)831-7376`},
{ID: `(719)954-3815`},
{ID: `(720)426-7959`},
{ID: `(720)437-6393`},
{ID: `(724)126-9900`},
{ID: `(724)229-3105`},
{ID: `(725)396-8121`},
{ID: `(726)900-2631`},
{ID: `(727)695-2782`},
{ID: `(728)179-6849`},
{ID: `(730)006-9963`},
{ID: `(731)087-2021`},
{ID: `(731)747-9962`},
{ID: `(732)212-3121`},
{ID: `(733)036-5331`},
{ID: `(733)527-8173`},
{ID: `(733)934-8906`},
{ID: `(734)805-0698`},
{ID: `(735)447-5288`},
{ID: `(736)068-7905`},
{ID: `(736)141-3190`},
{ID: `(737)834-7922`},
{ID: `(739)712-7981`},
{ID: `(740)439-4080`},
{ID: `(741)651-2611`},
{ID: `(742)057-3047`},
{ID: `(742)851-1109`},
{ID: `(743)771-1953`},
{ID: `(744)038-4911`},
{ID: `(744)269-2466`},
{ID: `(745)625-4492`},
{ID: `(746)052-6260`},
{ID: `(747)047-0854`},
{ID: `(748)496-6638`},
{ID: `(748)640-5986`},
{ID: `(748)941-9575`},
{ID: `(749)328-0833`},
{ID: `(749)675-5619`},
{ID: `(751)117-2370`},
{ID: `(751)468-0594`},
{ID: `(751)724-9503`},
{ID: `(752)623-8555`},
{ID: `(755)270-0373`},
{ID: `(755)375-1935`},
{ID: `(755)483-9014`},
{ID: `(756)067-8075`},
{ID: `(757)193-1109`},
{ID: `(759)957-2741`},
{ID: `(760)032-5379`},
{ID: `(760)226-4153`},
{ID: `(760)508-8473`},
{ID: `(761)292-1159`},
{ID: `(761)770-7382`},
{ID: `(761)986-9054`},
{ID: `(762)148-6339`},
{ID: `(763)595-3724`},
{ID: `(764)408-3515`},
{ID: `(766)167-8587`},
{ID: `(768)584-0342`},
{ID: `(769)152-1601`},
{ID: `(769)275-5693`},
{ID: `(770)349-8258`},
{ID: `(770)467-2443`},
{ID: `(770)702-3494`},
{ID: `(771)137-8946`},
{ID: `(771)613-6848`},
{ID: `(771)769-8105`},
{ID: `(771)867-9665`},
{ID: `(773)841-0055`},
{ID: `(774)619-9237`},
{ID: `(774)780-5604`},
{ID: `(774)840-6740`},
{ID: `(775)862-9463`},
{ID: `(779)588-9955`},
{ID: `(780)129-4538`},
{ID: `(781)273-3064`},
{ID: `(781)834-5371`},
{ID: `(784)638-1850`},
{ID: `(785)238-4683`},
{ID: `(785)299-1011`},
{ID: `(785)910-3080`},
{ID: `(787)542-1431`},
{ID: `(787)624-0514`},
{ID: `(788)288-9544`},
{ID: `(788)293-3465`},
{ID: `(790)248-0778`},
{ID: `(790)258-1436`},
{ID: `(790)292-7346`},
{ID: `(791)414-2366`},
{ID: `(794)405-1423`},
{ID: `(796)547-6357`},
{ID: `(796)993-4781`},
{ID: `(797)084-7316`},
{ID: `(797)387-8553`},
{ID: `(800)113-1772`},
{ID: `(801)282-8040`},
{ID: `(801)534-7997`},
{ID: `(802)171-7049`},
{ID: `(802)457-4026`},
{ID: `(803)667-9121`},
{ID: `(804)356-6528`},
{ID: `(805)908-0773`},
{ID: `(808)026-8750`},
{ID: `(808)726-1797`},
{ID: `(809)137-7017`},
{ID: `(809)859-2894`},
{ID: `(811)084-1723`},
{ID: `(812)814-2808`},
{ID: `(813)232-5375`},
{ID: `(815)119-3354`},
{ID: `(815)574-6110`},
{ID: `(815)922-9990`},
{ID: `(815)988-9936`},
{ID: `(816)932-6273`},
{ID: `(818)080-9652`},
{ID: `(818)207-5326`},
{ID: `(819)085-2607`},
{ID: `(819)274-5153`},
{ID: `(821)143-6569`},
{ID: `(824)000-6213`},
{ID: `(826)146-1471`},
{ID: `(827)055-4196`},
{ID: `(831)517-7557`},
{ID: `(835)044-4685`},
{ID: `(835)566-4747`},
{ID: `(836)214-5561`},
{ID: `(836)667-7541`},
{ID: `(838)430-2097`},
{ID: `(839)611-8354`},
{ID: `(840)214-1443`},
{ID: `(842)206-9652`},
{ID: `(842)553-9277`},
{ID: `(842)984-2217`},
{ID: `(843)609-6669`},
{ID: `(843)954-4932`},
{ID: `(845)125-8340`},
{ID: `(846)415-6832`},
{ID: `(849)176-1461`},
{ID: `(850)456-0085`},
{ID: `(851)544-0548`},
{ID: `(851)950-9071`},
{ID: `(853)054-9411`},
{ID: `(853)714-7336`},
{ID: `(854)055-1538`},
{ID: `(854)768-9065`},
{ID: `(854)772-6556`},
{ID: `(855)148-9530`},
{ID: `(855)921-1046`},
{ID: `(856)368-2122`},
{ID: `(857)077-4220`},
{ID: `(857)454-3787`},
{ID: `(859)131-3651`},
{ID: `(862)731-8562`},
{ID: `(863)595-1623`},
{ID: `(864)113-0448`},
{ID: `(866)690-4927`},
{ID: `(869)168-3379`},
{ID: `(869)219-9586`},
{ID: `(869)636-8984`},
{ID: `(872)062-9910`},
{ID: `(873)138-2124`},
{ID: `(873)591-1697`},
{ID: `(876)342-2217`},
{ID: `(876)816-1712`},
{ID: `(877)428-2087`},
{ID: `(879)646-6310`},
{ID: `(881)626-2391`},
{ID: `(881)760-6150`},
{ID: `(883)422-0394`},
{ID: `(883)638-2566`},
{ID: `(885)578-8821`},
{ID: `(888)489-0328`},
{ID: `(890)215-4593`},
{ID: `(891)340-2881`},
{ID: `(891)550-3544`},
{ID: `(892)328-0619`},
{ID: `(893)120-9009`},
{ID: `(894)325-8747`},
{ID: `(894)371-5424`},
{ID: `(894)577-2581`},
{ID: `(895)254-0384`},
{ID: `(895)756-4212`},
{ID: `(896)161-1085`},
{ID: `(896)745-9705`},
{ID: `(896)988-8817`},
{ID: `(898)335-4657`},
{ID: `(900)591-9222`},
{ID: `(901)868-4243`},
{ID: `(902)063-0631`},
{ID: `(903)939-8820`},
{ID: `(904)319-2997`},
{ID: `(905)653-8129`},
{ID: `(906)466-2298`},
{ID: `(907)759-8056`},
{ID: `(909)246-1852`},
{ID: `(909)300-2377`},
{ID: `(909)345-0034`},
{ID: `(910)861-4300`},
{ID: `(911)021-7823`},
{ID: `(911)281-3420`},
{ID: `(911)724-4584`},
{ID: `(913)503-8339`},
{ID: `(914)021-5994`},
{ID: `(915)757-2966`},
{ID: `(916)147-7644`},
{ID: `(917)141-1025`},
{ID: `(917)694-5537`},
{ID: `(918)803-9971`},
{ID: `(919)532-5858`},
{ID: `(919)693-6668`},
{ID: `(921)251-4862`},
{ID: `(921)775-9266`},
{ID: `(922)750-4564`},
{ID: `(924)229-8600`},
{ID: `(925)020-5381`},
{ID: `(925)692-5744`},
{ID: `(925)878-9730`},
{ID: `(926)487-5368`},
{ID: `(928)631-5868`},
{ID: `(929)550-5648`},
{ID: `(929)907-8014`},
{ID: `(932)218-3738`},
{ID: `(935)580-3106`},
{ID: `(935)606-3273`},
{ID: `(935)751-3561`},
{ID: `(936)135-2310`},
{ID: `(938)413-6458`},
{ID: `(941)047-2527`},
{ID: `(941)296-8588`},
{ID: `(941)934-6234`},
{ID: `(942)354-1999`},
{ID: `(942)722-6917`},
{ID: `(943)217-1571`},
{ID: `(943)774-5357`},
{ID: `(944)886-8208`},
{ID: `(947)108-2454`},
{ID: `(947)538-2838`},
{ID: `(948)304-6100`},
{ID: `(948)733-3149`},
{ID: `(949)800-0810`},
{ID: `(951)270-9835`},
{ID: `(952)162-1559`},
{ID: `(952)853-3566`},
{ID: `(953)189-1330`},
{ID: `(955)947-0459`},
{ID: `(956)517-0702`},
{ID: `(957)103-7685`},
{ID: `(957)376-1507`},
{ID: `(957)568-5503`},
{ID: `(959)252-4837`},
{ID: `(959)866-6711`},
{ID: `(960)159-9490`},
{ID: `(961)012-7334`},
{ID: `(961)772-7344`},
{ID: `(962)558-0335`},
{ID: `(963)592-4777`},
{ID: `(964)921-2640`},
{ID: `(967)034-3119`},
{ID: `(967)803-7125`},
{ID: `(968)059-6712`},
{ID: `(968)923-4624`},
{ID: `(969)545-9064`},
{ID: `(970)639-3627`},
{ID: `(970)819-7458`},
{ID: `(971)387-8213`},
{ID: `(973)129-2831`},
{ID: `(973)147-3696`},
{ID: `(973)724-7344`},
{ID: `(974)718-6899`},
{ID: `(974)793-8041`},
{ID: `(976)135-2972`},
{ID: `(978)965-3841`},
{ID: `(979)722-7875`},
{ID: `(980)341-1664`},
{ID: `(980)930-4619`},
{ID: `(981)732-8982`},
{ID: `(983)627-8743`},
{ID: `(984)814-2316`},
{ID: `(985)173-3767`},
{ID: `(986)294-6279`},
{ID: `(989)251-0197`},
{ID: `(990)266-2799`},
{ID: `(991)231-1452`},
{ID: `(992)643-0429`},
{ID: `(995)289-6049`},
{ID: `(995)907-1091`},
{ID: `(995)952-5150`},
{ID: `(996)139-6132`},
{ID: `(999)673-0589`},
{ID: `(999)879-1284`}}},
`State`: {ID: `State`, Name: `State`, Row: []Row{
{ID: `Alabama`},
{ID: `Alaska`},
{ID: `Arizona`},
{ID: `Arkansas`},
{ID: `California`},
{ID: `Colorado`},
{ID: `Connecticut`},
{ID: `Delaware`},
{ID: `Florida`},
{ID: `Georgia`},
{ID: `Hawaii`},
{ID: `Idaho`},
{ID: `Illinois`},
{ID: `Indiana`},
{ID: `Iowa`},
{ID: `Kansas`},
{ID: `Kentucky`},
{ID: `Louisiana`},
{ID: `Maine`},
{ID: `Maryland`},
{ID: `Massachusetts`},
{ID: `Michigan`},
{ID: `Minnesota`},
{ID: `Mississippi`},
{ID: `Missouri`},
{ID: `Montana`},
{ID: `Nebraska`},
{ID: `Nevada`},
{ID: `New Hampshire`},
{ID: `New Jersey`},
{ID: `New Mexico`},
{ID: `New York `},
{ID: `North Carolina`},
{ID: `North Dakota`},
{ID: `Ohio`},
{ID: `Oklahoma`},
{ID: `Oregon`},
{ID: `Pennsylvania`},
{ID: `Rhode Island`},
{ID: `South Carolina`},
{ID: `South Dakota`},
{ID: `Tennessee`},
{ID: `Texas`},
{ID: `Utah`},
{ID: `Vermont`},
{ID: `Virginia`},
{ID: `Washington`},
{ID: `West Virginia`},
{ID: `Wisconsin`},
{ID: `Wyoming`}}},
`Street`: {ID: `Street`, Name: `Street`, Row: []Row{
{ID: `11th St`},
{ID: `1st St`},
{ID: `2nd St`},
{ID: `3rd St`},
{ID: `41st St`},
{ID: `4th St`},
{ID: `6th St`},
{ID: `7th St`},
{ID: `8th St`},
{ID: `9th St`},
{ID: `Aaron Ln`},
{ID: `Abbey Ln`},
{ID: `Abercrombie St`},
{ID: `Aberdeen Ct`},
{ID: `<NAME>`},
{ID: `Abington Ct`},
{ID: `Access Rd`},
{ID: `<NAME>d`},
{ID: `<NAME> NW`},
{ID: `<NAME>`},
{ID: `<NAME> Rd`},
{ID: `Adairsville Pleasant Valley Rd`},
{ID: `<NAME> Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Adcock Rd`},
{ID: `Aiken St`},
{ID: `Akin Dr`},
{ID: `Akin Rd`},
{ID: `<NAME>`},
{ID: `Akron St`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Alford Rd`},
{ID: `<NAME>`},
{ID: `All Metals Dr`},
{ID: `Allatoona Dam Rd`},
{ID: `Allatoona Dr`},
{ID: `Allatoona Estates Dr`},
{ID: `Allatoona Landing Rd`},
{ID: `Allatoona Pass Rd`},
{ID: `Allatoona Trace Dr`},
{ID: `Allatoona Woods Trl`},
{ID: `Allegiance Ct`},
{ID: `Allen Cir`},
{ID: `Allen Rd`},
{ID: `Allison Cir`},
{ID: `Allweather St`},
{ID: `Alpine Dr`},
{ID: `Amanda Ln`},
{ID: `Amandas Ct`},
{ID: `Amberidge Dr`},
{ID: `Amberly Ln`},
{ID: `Amberwood Conn`},
{ID: `Amberwood Ct`},
{ID: `Amberwood Ln`},
{ID: `Amberwood Pl`},
{ID: `Amberwood Trl`},
{ID: `Amberwood Way`},
{ID: `Ampacet Dr`},
{ID: `Anchor Rd`},
{ID: `Anderson St`},
{ID: `<NAME> Trl`},
{ID: `Angus Trl`},
{ID: `<NAME>ir`},
{ID: `Ann Rd`},
{ID: `Anna Pl`},
{ID: `Anns Ct`},
{ID: `Anns Trc`},
{ID: `Ansley Way`},
{ID: `Ansubet Dr`},
{ID: `Antebellum Ct`},
{ID: `Apache Dr`},
{ID: `Apache Trl`},
{ID: `Apex Dr`},
{ID: `Appaloosa Ct`},
{ID: `Apple Barrel Way`},
{ID: `Apple Ln`},
{ID: `Apple Tree Ln`},
{ID: `Apple Wood Ln`},
{ID: `Appletree Ct`},
{ID: `Appling Way`},
{ID: `April Ln`},
{ID: `Aragon Rd`},
{ID: `Arapaho Dr`},
{ID: `Arbor Ln`},
{ID: `Arbors Way`},
{ID: `Arbutus Trl`},
{ID: `Ardmore Cir`},
{ID: `Arizona Ave`},
{ID: `Arlington Way`},
{ID: `Arnold Rd`},
{ID: `<NAME>`},
{ID: `Arrington Rd`},
{ID: `Arrow Mountain Dr`},
{ID: `Arrowhead Ct`},
{ID: `Arrowhead Dr`},
{ID: `Arrowhead Ln`},
{ID: `Ash Ct`},
{ID: `Ash Way`},
{ID: `Ashford Ct`},
{ID: `Ashford Pt`},
{ID: `Ashley Ct`},
{ID: `Ashley Rd`},
{ID: `Ashwood Dr`},
{ID: `Aspen Dr`},
{ID: `Aspen Ln`},
{ID: `Assembly Dr`},
{ID: `Atco All`},
{ID: `Attaway Dr`},
{ID: `Atwood Rd`},
{ID: `Aubrey Lake Rd`},
{ID: `Aubrey Rd`},
{ID: `Aubrey St`},
{ID: `Auburn Dr`},
{ID: `Austin Rd`},
{ID: `Autry Rd`},
{ID: `Autumn Pl`},
{ID: `Autumn Ridge Dr`},
{ID: `Autumn Turn`},
{ID: `Autumn Wood Dr`},
{ID: `<NAME>`},
{ID: `Avon Ct`},
{ID: `Azalea Dr`},
{ID: `Aztec Way`},
{ID: `B D Trl`},
{ID: `Backus Rd`},
{ID: `Bagwell Ln`},
{ID: `<NAME> Rd`},
{ID: `Bailey Rd`},
{ID: `Baker Rd`},
{ID: `Baker St`},
{ID: `<NAME> Lndg`},
{ID: `Baldwell Ct`},
{ID: `Balfour Dr`},
{ID: `Balsam Dr`},
{ID: `Bandit Ln`},
{ID: `Bangor St`},
{ID: `Baptist Cir`},
{ID: `Barnsley Church Rd`},
{ID: `Barnsley Ct`},
{ID: `Barnsley Dr`},
{ID: `Barnsley Garden Rd`},
{ID: `Barnsley Village Dr`},
{ID: `Barnsley Village Trl`},
{ID: `Barrett Ln`},
{ID: `Barrett Rd`},
{ID: `Barry Dr`},
{ID: `Bartow Beach Rd`},
{ID: `<NAME> Rd`},
{ID: `Bartow St`},
{ID: `Bates Rd`},
{ID: `Bay Ct`},
{ID: `Bearden Rd`},
{ID: `Beasley Rd`},
{ID: `Beaureguard St`},
{ID: `Beaver Trl`},
{ID: `Beavers Dr`},
{ID: `Bedford Ct`},
{ID: `Bedford Rdg`},
{ID: `Bee Tree Rd`},
{ID: `Beechwood Dr`},
{ID: `Beguine Dr`},
{ID: `Bell Dr`},
{ID: `<NAME> Rd`},
{ID: `Belmont Dr`},
{ID: `Belmont Way`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME> Rd`},
{ID: `Bennett Way`},
{ID: `Bent Water Dr`},
{ID: `Berkeley Pl`},
{ID: `Berkshire Dr`},
{ID: `Bestway Dr`},
{ID: `Bestway Pkwy`},
{ID: `Betsy Locke Pt`},
{ID: `Beverlie Dr`},
{ID: `Bevil Ridge Rd`},
{ID: `Biddy Rd`},
{ID: `Big Branch Ct`},
{ID: `Big Ditch Rd`},
{ID: `Big Oak Tree Rd`},
{ID: `Big Pond Rd`},
{ID: `<NAME> Rd`},
{ID: `<NAME> Rd`},
{ID: `Billies Cv`},
{ID: `Bingham Rd`},
{ID: `Birch Pl`},
{ID: `Birch Way`},
{ID: `Bishop Cv`},
{ID: `Bishop Dr`},
{ID: `Bishop Loop`},
{ID: `Bishop Mill Dr`},
{ID: `Bishop Rd`},
{ID: `Black Jack Mountain Cir`},
{ID: `Black Oak Rd`},
{ID: `Black Rd`},
{ID: `Black Water Dr`},
{ID: `Blackacre Trl`},
{ID: `Blackberry Rdg`},
{ID: `Blackfoot Trl`},
{ID: `Blacksmith Ln`},
{ID: `Bloomfield Ct`},
{ID: `Blueberry Rdg`},
{ID: `Bluebird Cir`},
{ID: `Bluegrass Cv`},
{ID: `Bluff Ct`},
{ID: `Boardwalk Ct`},
{ID: `<NAME>`},
{ID: `<NAME> Link Dr`},
{ID: `<NAME> Trl`},
{ID: `Bobcat Ct`},
{ID: `Boliver Rd`},
{ID: `Bonair St`},
{ID: `Boones Farm`},
{ID: `Boones Ridge Dr`},
{ID: `Boones Ridge Pkwy`},
{ID: `Boss Rd`},
{ID: `Boulder Crest Rd`},
{ID: `Boulder Rd`},
{ID: `Bowen Rd`},
{ID: `Bowens Ct`},
{ID: `<NAME> Dr`},
{ID: `Boyd Mountain Rd`},
{ID: `Boysenberry Ct`},
{ID: `Bozeman Rd`},
{ID: `Bradford Ct`},
{ID: `Bradford Dr`},
{ID: `Bradley Ln`},
{ID: `Bradley Trl`},
{ID: `Bramblewood Ct`},
{ID: `Bramblewood Dr`},
{ID: `Bramblewood Pl`},
{ID: `Bramblewood Trl`},
{ID: `Bramblewood Way`},
{ID: `<NAME> Rd`},
{ID: `<NAME>`},
{ID: `<NAME>n`},
{ID: `<NAME> Rd`},
{ID: `<NAME> Dr`},
{ID: `Branton Rd`},
{ID: `<NAME>`},
{ID: `Brentwood Dr`},
{ID: `<NAME>`},
{ID: `<NAME> Ct`},
{ID: `<NAME> Ln`},
{ID: `Briarcrest Way`},
{ID: `Briarwood Ln`},
{ID: `Brickshire`},
{ID: `Brickshire Dr`},
{ID: `Bridgestone Way`},
{ID: `Bridlewood Ct`},
{ID: `Brighton Ct`},
{ID: `Brightwell Pl`},
{ID: `Bristol Ct`},
{ID: `Brittani Ln`},
{ID: `Broadlands Dr`},
{ID: `Broken Arrow Ct`},
{ID: `Bronco Ct`},
{ID: `Brook Dr`},
{ID: `Brook Knoll Ct`},
{ID: `Brooke Rd`},
{ID: `Brookhollow Ln`},
{ID: `Brookland Dr`},
{ID: `Brookshire Dr`},
{ID: `Brookside Ct`},
{ID: `Brookside Way`},
{ID: `Brookwood Dr`},
{ID: `Brown Dr`},
{ID: `Brown Farm Rd`},
{ID: `Brown Loop`},
{ID: `Brown Loop Spur`},
{ID: `Brown Rd`},
{ID: `Brownwood Dr`},
{ID: `Bruce St`},
{ID: `Brutis Rd`},
{ID: `Bryan Dr`},
{ID: `Bryan Ln`},
{ID: `Buckhorn Trl`},
{ID: `Buckingham Ct`},
{ID: `Buckland Ct`},
{ID: `Buckskin Dr`},
{ID: `Bucky St`},
{ID: `Buena Vista Cir`},
{ID: `Buford St`},
{ID: `Bunch Mountain Rd`},
{ID: `Burch Ln`},
{ID: `Burges Mill Rd`},
{ID: `Burnt Hickory Dr`},
{ID: `Burnt Hickory Rd`},
{ID: `Busch Dr`},
{ID: `Bushey Trl`},
{ID: `Buttonwood Dr`},
{ID: `Buttram Rd`},
{ID: `Byars Rd`},
{ID: `C J Ct`},
{ID: `C J Dr`},
{ID: `Caboose Ct`},
{ID: `Cade Dr`},
{ID: `Cagle Rd`},
{ID: `Cain Dr`},
{ID: `Calico Valley Rd`},
{ID: `Calloway Ln`},
{ID: `Calvary Ct`},
{ID: `Cambridge Ct`},
{ID: `Cambridge Way`},
{ID: `Camden Woods Dr`},
{ID: `Camellia Ln`},
{ID: `Camelot Dr`},
{ID: `Camp Creek Rd`},
{ID: `Camp Dr`},
{ID: `Camp Pl`},
{ID: `Camp Sunrise Rd`},
{ID: `Camp Trl`},
{ID: `Campbell Dr`},
{ID: `Campfire Trl`},
{ID: `Candlestick Comm`},
{ID: `Canefield Dr`},
{ID: `<NAME>`},
{ID: `Cannon Ct`},
{ID: `Cannonade Run`},
{ID: `Canter Ln`},
{ID: `Canterbury Ct`},
{ID: `Canterbury Walk`},
{ID: `Cantrell Ln`},
{ID: `Cantrell Pt`},
{ID: `Cantrell St`},
{ID: `Canty Rd`},
{ID: `<NAME>kwy`},
{ID: `Captains Turn`},
{ID: `Captains Walk`},
{ID: `Cardinal Ct`},
{ID: `Cardinal Rd`},
{ID: `<NAME> Dr`},
{ID: `<NAME>`},
{ID: `Carnes Dr`},
{ID: `Carnes Rd`},
{ID: `Carolyn Ct`},
{ID: `Carr Rd`},
{ID: `Carriage Ln`},
{ID: `Carriage Trc`},
{ID: `Carrington Dr`},
{ID: `Carrington Trc`},
{ID: `<NAME> Rd`},
{ID: `Carson Ct`},
{ID: `<NAME>`},
{ID: `Carson Rd`},
{ID: `<NAME> Blvd`},
{ID: `Carter Ln`},
{ID: `Carter Rd`},
{ID: `Carver Landing Rd`},
{ID: `Casey Dr`},
{ID: `Casey Ln`},
{ID: `Casey St`},
{ID: `Cass Dr`},
{ID: `Cass Station Dr`},
{ID: `Cass Station Pass`},
{ID: `Cassandra View`},
{ID: `Cassville Pine Log Rd`},
{ID: `Cassville Rd`},
{ID: `Cassville White Rd`},
{ID: `Catalpa Ct`},
{ID: `Cathedral Hght`},
{ID: `Catherine Cir`},
{ID: `Catherine Way`},
{ID: `Cedar Creek Church Rd`},
{ID: `Cedar Creek Rd`},
{ID: `Cedar Gate Ln`},
{ID: `Cedar Ln`},
{ID: `Cedar Rd`},
{ID: `Cedar Rdg`},
{ID: `Cedar Springs Dr`},
{ID: `Cedar St`},
{ID: `Cedar Way`},
{ID: `Cemetary Rd`},
{ID: `Center Bluff`},
{ID: `Center Rd`},
{ID: `Center St`},
{ID: `Centerport Dr`},
{ID: `Central Ave`},
{ID: `Chance Cir`},
{ID: `Chandler Ln`},
{ID: `Chapel Way`},
{ID: `Charismatic Rd`},
{ID: `Charles Ct`},
{ID: `Charles St`},
{ID: `Charlotte Dr`},
{ID: `Chase Pl`},
{ID: `Chateau Dr`},
{ID: `Cherokee Cir`},
{ID: `Cherokee Dr`},
{ID: `Cherokee Hght`},
{ID: `Cherokee Hills Dr`},
{ID: `Cherokee Pl`},
{ID: `Cherokee St`},
{ID: `Cherry St`},
{ID: `Cherrywood Ln`},
{ID: `Cherrywood Way`},
{ID: `Cheryl Dr`},
{ID: `Chestnut Ridge Ct`},
{ID: `Chestnut Ridge Dr`},
{ID: `Chestnut St`},
{ID: `Cheyenne Way`},
{ID: `Chickasaw Trl`},
{ID: `Chickasaw Way`},
{ID: `Chimney Ln`},
{ID: `Chimney Springs Dr`},
{ID: `Chippewa Dr`},
{ID: `Chippewa Way`},
{ID: `<NAME> Rd`},
{ID: `Choctaw Ct`},
{ID: `Christon Dr`},
{ID: `Christopher Pl`},
{ID: `Christopher Rdg`},
{ID: `Chulio Dr`},
{ID: `Chunn Dr`},
{ID: `Chunn Facin Rd`},
{ID: `Church St`},
{ID: `Churchill Down`},
{ID: `Churchill Downs Down`},
{ID: `Cindy Ln`},
{ID: `Citation Pte`},
{ID: `Claire Cv`},
{ID: `<NAME>`},
{ID: `Clark Way`},
{ID: `Clear Creek Rd`},
{ID: `Clear Lake Dr`},
{ID: `Clear Pass`},
{ID: `Clearview Dr`},
{ID: `Clearwater St`},
{ID: `<NAME> Rd`},
{ID: `Cliffhanger Pte`},
{ID: `Cline Dr`},
{ID: `Cline Smith Rd`},
{ID: `Cline St`},
{ID: `Clover Dr`},
{ID: `Clover Ln`},
{ID: `Clover Pass`},
{ID: `Clubhouse Ct`},
{ID: `Clubview Dr`},
{ID: `Clydesdale Trl`},
{ID: `Cobblestone Dr`},
{ID: `Cochrans Way`},
{ID: `Coffee St`},
{ID: `Cole Ct`},
{ID: `Cole Dr`},
{ID: `Coleman St`},
{ID: `Colleen and Karen Rd`},
{ID: `College St`},
{ID: `Collins Dr`},
{ID: `Collins Pl`},
{ID: `Collins St`},
{ID: `Collum Rd`},
{ID: `Colonial Cir`},
{ID: `Colonial Club Dr`},
{ID: `Colony Ct`},
{ID: `Colony Dr`},
{ID: `Colt Ct`},
{ID: `Colt Way`},
{ID: `Columbia St`},
{ID: `Comedy Ln`},
{ID: `Commanche Dr`},
{ID: `Commanche Trl`},
{ID: `Commerce Dr`},
{ID: `Commerce Row`},
{ID: `Commerce Way`},
{ID: `Cone Rd`},
{ID: `Confederate St`},
{ID: `Connesena Rd`},
{ID: `Connie St`},
{ID: `Conyers Industrial Dr`},
{ID: `Cook St`},
{ID: `Cooper Mill Rd`},
{ID: `Copeland Rd`},
{ID: `Coperite Pl`},
{ID: `Copperhead Rd`},
{ID: `Corbitt Dr`},
{ID: `Corinth Rd`},
{ID: `Corson Trl`},
{ID: `Cottage Dr`},
{ID: `Cottage Trc`},
{ID: `Cottage Walk`},
{ID: `Cotton Bend`},
{ID: `Cotton Dr`},
{ID: `Cotton St`},
{ID: `Cottonwood Ct`},
{ID: `Country Club Dr`},
{ID: `Country Cove Ln`},
{ID: `Country Creek Rd`},
{ID: `Country Dr`},
{ID: `Country Ln`},
{ID: `Country Meadow Way`},
{ID: `Country Walk`},
{ID: `County Line Loop No 1`},
{ID: `County Line Rd`},
{ID: `County Line Road No 2`},
{ID: `Courrant St`},
{ID: `Court Xing`},
{ID: `Courtyard Dr`},
{ID: `Courtyard Ln`},
{ID: `Covered Bridge Rd`},
{ID: `Cowan Dr`},
{ID: `Cox Farm Rd`},
{ID: `Cox Farm Spur`},
{ID: `Cox Rd`},
{ID: `Cox St`},
{ID: `Cozy Ln`},
{ID: `Craigs Rd`},
{ID: `Crane Cir`},
{ID: `Creed Dr`},
{ID: `Creek Bend Ct`},
{ID: `Creek Dr`},
{ID: `Creek Trl`},
{ID: `Creekbend Dr`},
{ID: `Creekside Dr`},
{ID: `Creekside Ln`},
{ID: `Creekstone Ct`},
{ID: `Creekview Dr`},
{ID: `Crescent Dr`},
{ID: `Crestbrook Dr`},
{ID: `Crestview Ln`},
{ID: `Crestwood Ct`},
{ID: `Crestwood Rd`},
{ID: `Crimson Hill Dr`},
{ID: `Criss Black Rd`},
{ID: `Crolley Ln`},
{ID: `Cromwell Ct`},
{ID: `Cross Creek Dr`},
{ID: `Cross St`},
{ID: `Cross Tie Ct`},
{ID: `Crossbridge CT`},
{ID: `Crossfield Cir`},
{ID: `Crowe Dr`},
{ID: `Crowe Springs Rd`},
{ID: `Crowe Springs Spur`},
{ID: `Crump Rd`},
{ID: `Crystal Ln`},
{ID: `Crystal Mountain Rd`},
{ID: `Culver Rd`},
{ID: `Cumberland Gap`},
{ID: `Cumberland Rd`},
{ID: `Cummings Rd`},
{ID: `Curtis Ct`},
{ID: `Cut Off Rd`},
{ID: `<NAME>`},
{ID: `Dabbs Dr`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>t`},
{ID: `Darnell Rd`},
{ID: `<NAME>d`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Davistown Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Dean Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>d`},
{ID: `<NAME> Rd`},
{ID: `<NAME> Dr`},
{ID: `<NAME> Ln`},
{ID: `<NAME>`},
{ID: `Deerview Ct`},
{ID: `Defender St`},
{ID: `<NAME>`},
{ID: `Dempsey Rd`},
{ID: `<NAME>`},
{ID: `Denver Dr`},
{ID: `<NAME>`},
{ID: `Derrick Ln`},
{ID: `Devin Ln`},
{ID: `Devon Ct`},
{ID: `Dewberry Ln`},
{ID: `Dewey Dr`},
{ID: `<NAME>`},
{ID: `Dixie Dr`},
{ID: `<NAME>`},
{ID: `<NAME>d`},
{ID: `Dodson Rd`},
{ID: `Doe Ct`},
{ID: `Dog Ln`},
{ID: `Dogwood Cir`},
{ID: `Dogwood Dr`},
{ID: `Dogwood Ln`},
{ID: `Dogwood Pl`},
{ID: `Dogwood Trl`},
{ID: `Dolphin Dr`},
{ID: `<NAME>`},
{ID: `<NAME> Rd`},
{ID: `Doris Rd`},
{ID: `Doss Dr`},
{ID: `Douglas St`},
{ID: `Douthit Bridge Rd`},
{ID: `<NAME> Rd`},
{ID: `Dove Ct`},
{ID: `Dove Dr`},
{ID: `Dove Trl`},
{ID: `Dover Rd`},
{ID: `Downing Way`},
{ID: `<NAME> Trl`},
{ID: `Drury Ln`},
{ID: `<NAME>`},
{ID: `Duncan Dr`},
{ID: `Dunhill Ct`},
{ID: `Durey Ct`},
{ID: `Dyar St`},
{ID: `Dysart Rd`},
{ID: `E Carter St`},
{ID: `E Cherokee Ave`},
{ID: `E Church St`},
{ID: `E Felton Rd`},
{ID: `E George St`},
{ID: `E Greenridge Rd`},
{ID: `E Holiday Ct`},
{ID: `E Howard St`},
{ID: `E Indiana Ave`},
{ID: `E Lee St`},
{ID: `E Main St`},
{ID: `E Mitchell Rd`},
{ID: `E Pleasant Valley Rd`},
{ID: `E Porter St`},
{ID: `E Railroad St`},
{ID: `E Rocky St`},
{ID: `Eagle Dr`},
{ID: `Eagle Glen Dr`},
{ID: `Eagle Ln`},
{ID: `Eagle Mountain Trl`},
{ID: `Eagle Pkwy`},
{ID: `Eagles Ct`},
{ID: `Eagles Nest Cv`},
{ID: `Eagles View Dr`},
{ID: `Earle Dr`},
{ID: `East Boxwood Dr`},
{ID: `East Heritage Dr`},
{ID: `East Valley Rd`},
{ID: `Easton Trc`},
{ID: `Eastview Ct`},
{ID: `Eastview Ter`},
{ID: `Eastwood Dr`},
{ID: `Echota Rd`},
{ID: `Edgewater Dr`},
{ID: `Edgewood Rd`},
{ID: `Edsel Dr`},
{ID: `Eidson St`},
{ID: `Elizabeth Rd`},
{ID: `Elizabeth St`},
{ID: `Elkhorn Ct`},
{ID: `Elliott St`},
{ID: `Ellis Rd`},
{ID: `Elm Dr`},
{ID: `Elm St`},
{ID: `Elmwood Pl`},
{ID: `Elrod Rdg`},
{ID: `Elrod St`},
{ID: `Ember Way`},
{ID: `Emerald Pass`},
{ID: `Emerald Run`},
{ID: `Emerald Springs Ct`},
{ID: `Emerald Springs Dr`},
{ID: `Emerald Springs Way`},
{ID: `Emerald Trl`},
{ID: `Engineer Ln`},
{ID: `English Turn`},
{ID: `Enon Ridge Rd`},
{ID: `Enterprise Dr`},
{ID: `Equestrian Way`},
{ID: `Estate Dr`},
{ID: `Estates Rdg`},
{ID: `Etowah Ct`},
{ID: `Etowah Dr`},
{ID: `Etowah Ln`},
{ID: `Etowah Ridge Dr`},
{ID: `Etowah Ridge Ovlk`},
{ID: `Etowah Ridge Trl`},
{ID: `Euharlee Five Forks Rd`},
{ID: `Euharlee Rd`},
{ID: `Euharlee St`},
{ID: `Evans Hightower Rd`},
{ID: `Evans Rd`},
{ID: `Evening Trl`},
{ID: `Everest Dr`},
{ID: `Everett Cir`},
{ID: `Evergreen Trl`},
{ID: `Ezell Rd`},
{ID: `Fairfield Ct`},
{ID: `Fairfield Dr`},
{ID: `Fairfield Ln`},
{ID: `Fairfield Way`},
{ID: `Fairmount Rd`},
{ID: `Fairview Church Rd`},
{ID: `Fairview Cir`},
{ID: `Fairview Dr`},
{ID: `Fairview St`},
{ID: `Faith Ln`},
{ID: `<NAME>ir`},
{ID: `Fall Dr`},
{ID: `Falling Springs Rd`},
{ID: `Farm Rd`},
{ID: `Farmbrook Dr`},
{ID: `Farmer Rd`},
{ID: `Farmstead Ct`},
{ID: `Farr Cir`},
{ID: `Fawn Lake Trl`},
{ID: `Fawn Ridge Dr`},
{ID: `Fawn View`},
{ID: `Felton Pl`},
{ID: `Felton St`},
{ID: `Ferguson Dr`},
{ID: `Ferry Views`},
{ID: `Fields Rd`},
{ID: `Fieldstone Ct`},
{ID: `Fieldstone Path`},
{ID: `Fieldwood Dr`},
{ID: `Finch Ct`},
{ID: `Findley Rd`},
{ID: `Finley St`},
{ID: `Fire Tower Rd`},
{ID: `Fireside Ct`},
{ID: `Fite St`},
{ID: `Five Forks Rd`},
{ID: `Flagstone Ct`},
{ID: `Flint Hill Rd`},
{ID: `Floral Dr`},
{ID: `Florence Dr`},
{ID: `Florida Ave`},
{ID: `Floyd Creek Church Rd`},
{ID: `Floyd Rd`},
{ID: `Folsom Glade Rd`},
{ID: `Folsom Rd`},
{ID: `Fools Gold Rd`},
{ID: `Foothills Pkwy`},
{ID: `Ford St`},
{ID: `Forest Hill Dr`},
{ID: `Forest Trl`},
{ID: `Forrest Ave`},
{ID: `Forrest Hill Dr`},
{ID: `Forrest Ln`},
{ID: `Fossetts Cv`},
{ID: `Fouche Ct`},
{ID: `Fouche Dr`},
{ID: `Four Feathers Ln`},
{ID: `Fowler Dr`},
{ID: `Fowler Rd`},
{ID: `Fox Chas`},
{ID: `Fox Hill Dr`},
{ID: `Fox Meadow Ct`},
{ID: `Foxfire Ln`},
{ID: `Foxhound Way`},
{ID: `Foxrun Ct`},
{ID: `Frances Way`},
{ID: `Franklin Dr`},
{ID: `Franklin Johnson Dr`},
{ID: `Franklin Loop`},
{ID: `Fredda Ln`},
{ID: `Freedom Dr`},
{ID: `Freeman St`},
{ID: `Friction Dr`},
{ID: `Friendly Ln`},
{ID: `Friendship Rd`},
{ID: `Fuger Ln`},
{ID: `Fun Dr`},
{ID: `Funkhouser Industrial Access Rd`},
{ID: `Gaddis Rd`},
{ID: `Gail St`},
{ID: `Gaines Rd`},
{ID: `Gaither Boggs Rd`},
{ID: `Galt St`},
{ID: `Galway Dr`},
{ID: `Garden Gate`},
{ID: `Garland No 1 Rd`},
{ID: `Garland No 2 Rd`},
{ID: `Garrison Dr`},
{ID: `Gaston Westbrook Ave`},
{ID: `Gatepost Ln`},
{ID: `Gatlin Rd`},
{ID: `Gayle Dr`},
{ID: `Geneva Ln`},
{ID: `Gentilly Blvd`},
{ID: `Gentry Dr`},
{ID: `George St`},
{ID: `Georgia Ave`},
{ID: `Georgia Blvd`},
{ID: `Georgia North Cir`},
{ID: `Georgia North Industrial Rd`},
{ID: `Gertrude Ln`},
{ID: `Gibbons Rd`},
{ID: `Gill Rd`},
{ID: `<NAME>`},
{ID: `Gilmer St`},
{ID: `Gilreath Rd`},
{ID: `Gilreath Trl`},
{ID: `Glade Rd`},
{ID: `Glen Cove Dr`},
{ID: `Glenabby Dr`},
{ID: `Glenmar Ave`},
{ID: `<NAME>`},
{ID: `Glenmore Dr`},
{ID: `Glenn Dr`},
{ID: `Glory Ln`},
{ID: `Gold Creek Trl`},
{ID: `Gold Hill Dr`},
{ID: `Golden Eagle Dr`},
{ID: `Goode Dr`},
{ID: `<NAME> Rd`},
{ID: `Goodwin St`},
{ID: `Goodyear Ave`},
{ID: `<NAME> Rd`},
{ID: `Gordon Rd`},
{ID: `Gore Rd`},
{ID: `Gore Springs Rd`},
{ID: `Goss St`},
{ID: `Governors Ct`},
{ID: `Grace Park Dr`},
{ID: `Grace St`},
{ID: `Grand Main St`},
{ID: `Grandview Ct`},
{ID: `Grandview Dr`},
{ID: `Granger Dr`},
{ID: `Grant Dr`},
{ID: `Grapevine Way`},
{ID: `Grassdale Rd`},
{ID: `Gray Rd`},
{ID: `Gray St`},
{ID: `Graysburg Dr`},
{ID: `Graystone Dr`},
{ID: `Greatwood Dr`},
{ID: `Green Acre Ln`},
{ID: `Green Apple Ct`},
{ID: `Green Gable Pt`},
{ID: `Green Ives Ln`},
{ID: `Green Loop Rd`},
{ID: `Green Rd`},
{ID: `Green St`},
{ID: `Green Valley Trl`},
{ID: `Greenbriar Ave`},
{ID: `Greencliff Way`},
{ID: `Greenhouse Dr`},
{ID: `Greenmont Ct`},
{ID: `Greenridge Rd`},
{ID: `Greenridge Trl`},
{ID: `Greenway Ln`},
{ID: `Greenwood Dr`},
{ID: `Greyrock`},
{ID: `Greystone Ln`},
{ID: `Greystone Way`},
{ID: `Greywood Ln`},
{ID: `Griffin Mill Dr`},
{ID: `Griffin Rd`},
{ID: `Grimshaw Rd`},
{ID: `Grist Mill Ln`},
{ID: `<NAME>`},
{ID: `Grogan Rd`},
{ID: `Groovers Landing Rd`},
{ID: `Grove Cir`},
{ID: `Grove Park Cir`},
{ID: `Grove Pointe Way`},
{ID: `Grove Springs Ct`},
{ID: `Grove Way`},
{ID: `Grover Rd`},
{ID: `Guest Holl`},
{ID: `Gum Dr`},
{ID: `Gum Springs Ln`},
{ID: `Gunston Hall`},
{ID: `Guyton Industrial Dr`},
{ID: `Guyton St`},
{ID: `Habersham Cir`},
{ID: `Haley Pl`},
{ID: `Hall St`},
{ID: `Hall Station Rd`},
{ID: `Hames Pte`},
{ID: `Hamil Ct`},
{ID: `Hamilton Blvd`},
{ID: `Hamilton Crossing Rd`},
{ID: `Hampton Dr`},
{ID: `Hampton Ln`},
{ID: `Haney Hollow Way`},
{ID: `Hannon Way`},
{ID: `Happy Hollow Rd`},
{ID: `Happy Valley Ln`},
{ID: `Harbor Dr`},
{ID: `Harbor Ln`},
{ID: `Hardin Bridge Rd`},
{ID: `Hardin Rd`},
{ID: `Hardwood Ct`},
{ID: `Hardwood Ridge Dr`},
{ID: `Hardwood Ridge Pkwy`},
{ID: `Hardy Rd`},
{ID: `Hargis Way`},
{ID: `<NAME>d`},
{ID: `Harris St`},
{ID: `Harrison Rd`},
{ID: `Harvest Way`},
{ID: `<NAME> Rd`},
{ID: `Hastings Dr`},
{ID: `<NAME>d`},
{ID: `Hattie St`},
{ID: `Hawk Rd`},
{ID: `Hawkins Rd`},
{ID: `Hawks Branch Ln`},
{ID: `Hawks Farm Rd`},
{ID: `Hawkstone Ct`},
{ID: `Hawthorne Dr`},
{ID: `<NAME>`},
{ID: `Hazelwood Rd`},
{ID: `<NAME>dg`},
{ID: `Heartwood Dr`},
{ID: `Heatco Ct`},
{ID: `Hedgerow Ct`},
{ID: `Heidelberg Ln`},
{ID: `Helen Ln`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>d`},
{ID: `<NAME>d`},
{ID: `Hendricks St`},
{ID: `<NAME> Rd`},
{ID: `Hepworth Ln`},
{ID: `<NAME>ve`},
{ID: `Heritage Cv`},
{ID: `Heritage Dr`},
{ID: `Heritage Way`},
{ID: `Herring St`},
{ID: `<NAME> Ln`},
{ID: `<NAME> Dr`},
{ID: `<NAME>`},
{ID: `Hickory Ln`},
{ID: `Hidden Valley Ln`},
{ID: `High Ct`},
{ID: `High Moon St`},
{ID: `High Point Ct`},
{ID: `High Pointe Dr`},
{ID: `Highland Cir`},
{ID: `Highland Crest Dr`},
{ID: `Highland Dr`},
{ID: `Highland Ln`},
{ID: `Highland Trl`},
{ID: `Highland Way`},
{ID: `Highpine Dr`},
{ID: `Hill St`},
{ID: `Hillside Dr`},
{ID: `Hillstone Way`},
{ID: `Hilltop Ct`},
{ID: `Hilltop Dr`},
{ID: `History St`},
{ID: `Hitchcock Sta`},
{ID: `Hobgood Rd`},
{ID: `Hodges Mine Rd`},
{ID: `Holcomb Rd`},
{ID: `Holcomb Spur`},
{ID: `Holcomb Trl`},
{ID: `Holloway Rd`},
{ID: `Hollows Dr`},
{ID: `Holly Ann St`},
{ID: `Holly Dr`},
{ID: `Holly Springs Rd`},
{ID: `Hollyhock Ln`},
{ID: `Holt Rd`},
{ID: `Home Place Dr`},
{ID: `Home Place Rd`},
{ID: `Homestead Dr`},
{ID: `Hometown Ct`},
{ID: `Honey Vine Trl`},
{ID: `Honeylocust Ct`},
{ID: `Honeysuckle Dr`},
{ID: `Hopkins Breeze`},
{ID: `Hopkins Farm Dr`},
{ID: `Hopkins Rd`},
{ID: `Hopson Rd`},
{ID: `Horizon Trl`},
{ID: `Horseshoe Ct`},
{ID: `Horseshoe Loop`},
{ID: `Horseshow Rd`},
{ID: `Hotel St`},
{ID: `Howard Ave`},
{ID: `Howard Dr`},
{ID: `Howard Heights St`},
{ID: `Howard St`},
{ID: `Howell Bend Rd`},
{ID: `Howell Rd`},
{ID: `Howell St`},
{ID: `Hughs Pl`},
{ID: `Hunt Club Ln`},
{ID: `Huntcliff Dr`},
{ID: `Hunters Cv`},
{ID: `Hunters Rdg`},
{ID: `Hunters View`},
{ID: `Huntington Ct`},
{ID: `Hwy 293`},
{ID: `Hwy 411`},
{ID: `Hyatt Ct`},
{ID: `I-75`},
{ID: `Idlewood Dr`},
{ID: `Imperial Ct`},
{ID: `Independence Way`},
{ID: `Indian Hills Dr`},
{ID: `Indian Hills Hght`},
{ID: `Indian Mounds Rd`},
{ID: `Indian Ridge Ct`},
{ID: `Indian Springs Dr`},
{ID: `Indian Trl`},
{ID: `Indian Valley Way`},
{ID: `Indian Woods Dr`},
{ID: `Industrial Dr`},
{ID: `Industrial Park Rd`},
{ID: `Ingram Rd`},
{ID: `Iron Belt Ct`},
{ID: `Iron Belt Rd`},
{ID: `Iron Hill Cv`},
{ID: `Iron Hill Rd`},
{ID: `Iron Mountain Rd`},
{ID: `Irwin St`},
{ID: `Isabella Ct`},
{ID: `Island Ford Rd`},
{ID: `Island Mill Rd`},
{ID: `Ivan Evans Rd`},
{ID: `Ivanhoe Pl`},
{ID: `Ivy Chase Way`},
{ID: `Ivy Ln`},
{ID: `Ivy Stone Ct`},
{ID: `<NAME> Rd`},
{ID: `Jackson Dr`},
{ID: `<NAME>`},
{ID: `Jackson Rd`},
{ID: `<NAME>`},
{ID: `Jackson St`},
{ID: `<NAME>`},
{ID: `Jacobs Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `James Rd`},
{ID: `James St`},
{ID: `Jamesport Ln`},
{ID: `Janice Dr`},
{ID: `Janice Ln`},
{ID: `<NAME>`},
{ID: `<NAME>n`},
{ID: `<NAME>q`},
{ID: `Jeffery Ln`},
{ID: `Jeffery Rd`},
{ID: `<NAME>`},
{ID: `Jennifer Ln`},
{ID: `Jenny Ln`},
{ID: `Jewell Rd`},
{ID: `Jill Ln`},
{ID: `<NAME>`},
{ID: `<NAME> Rd`},
{ID: `Jim Ln`},
{ID: `<NAME> Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME> Rd`},
{ID: `<NAME> Dr`},
{ID: `<NAME> St`},
{ID: `<NAME> Rd`},
{ID: `<NAME>`},
{ID: `Johnson Dr`},
{ID: `Johnson Ln`},
{ID: `<NAME> Rd`},
{ID: `Johnson St`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Jones Ct`},
{ID: `<NAME> Pl`},
{ID: `<NAME> Rd`},
{ID: `Jones Rd`},
{ID: `<NAME> Rd`},
{ID: `Jones St`},
{ID: `Jordan Rd`},
{ID: `Jordan St`},
{ID: `Joree Rd`},
{ID: `<NAME>`},
{ID: `Jude Dr`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Juniper Ln`},
{ID: `Justine Rd`},
{ID: `Kakki Ct`},
{ID: `Kaleigh Ct`},
{ID: `Katie Dr`},
{ID: `<NAME>`},
{ID: `Katrina Dr`},
{ID: `Kay Rd`},
{ID: `Kayla Ct`},
{ID: `Keeling Lake Rd`},
{ID: `Keeling Mountain Rd`},
{ID: `Keith Rd`},
{ID: `Kelley Trl`},
{ID: `<NAME> Ct`},
{ID: `<NAME>`},
{ID: `Kelly Dr`},
{ID: `Ken St`},
{ID: `Kent Dr`},
{ID: `Kentucky Ave`},
{ID: `Kentucky Walk`},
{ID: `Kenwood Ln`},
{ID: `Kerry St`},
{ID: `Kimberly Dr`},
{ID: `<NAME>`},
{ID: `Kincannon Rd`},
{ID: `King Rd`},
{ID: `King St`},
{ID: `Kings Camp Rd`},
{ID: `Kings Dr`},
{ID: `<NAME>wy`},
{ID: `Kingston Pointe Dr`},
{ID: `Kiowa Ct`},
{ID: `Kirby Ct`},
{ID: `Kirby Dr`},
{ID: `Kirk Rd`},
{ID: `Kitchen Mountain Rd`},
{ID: `Kitchens All`},
{ID: `Knight Dr`},
{ID: `Knight St`},
{ID: `Knight Way`},
{ID: `Knollwood Way`},
{ID: `Knucklesville Rd`},
{ID: `Kooweskoowe Blvd`},
{ID: `Kortlyn Pl`},
{ID: `Kovells Dr`},
{ID: `Kristen Ct`},
{ID: `Kristen Ln`},
{ID: `Kuhlman St`},
{ID: `Lacey Rd`},
{ID: `Ladds Mountain Rd`},
{ID: `Lake Ct`},
{ID: `Lake Dr`},
{ID: `Lake Drive No 1`},
{ID: `Lake Eagle Ct`},
{ID: `Lake Haven Dr`},
{ID: `Lake Marguerite Rd`},
{ID: `Lake Overlook Dr`},
{ID: `Lake Point Dr`},
{ID: `Lake Top Dr`},
{ID: `Lakeport`},
{ID: `Lakeshore Cir`},
{ID: `Lakeside Trl`},
{ID: `Lakeside Way`},
{ID: `Lakeview Ct`},
{ID: `Lakeview Drive No 1`},
{ID: `Lakeview Drive No 2`},
{ID: `Lakeview Drive No 3`},
{ID: `Lakewood Ct`},
{ID: `Lamplighter Cv`},
{ID: `Lancelot Ct`},
{ID: `Lancer Ct`},
{ID: `Landers Dr`},
{ID: `Landers Rd`},
{ID: `Lanham Field Rd`},
{ID: `Lanham Rd`},
{ID: `Lanier Dr`},
{ID: `Lantern Cir`},
{ID: `Lantern Light Trl`},
{ID: `Lark Cir`},
{ID: `Larkspur Ln`},
{ID: `Larkspur Rd`},
{ID: `Larkwood Cir`},
{ID: `<NAME>`},
{ID: `Latimer Ln`},
{ID: `Latimer Rd`},
{ID: `Laura Dr`},
{ID: `Laurel Cv`},
{ID: `Laurel Dr`},
{ID: `Laurel Trc`},
{ID: `Laurel Way`},
{ID: `Laurelwood Ln`},
{ID: `Lauren Ln`},
{ID: `<NAME>`},
{ID: `Law Rd`},
{ID: `Lawrence St`},
{ID: `<NAME> Dr`},
{ID: `<NAME> Rd`},
{ID: `Leake St`},
{ID: `<NAME>`},
{ID: `<NAME>n`},
{ID: `Lee Rd`},
{ID: `Lee St`},
{ID: `<NAME>`},
{ID: `Legion St`},
{ID: `Leila Cv`},
{ID: `<NAME> Ave`},
{ID: `Lenox Dr`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Lewis Dr`},
{ID: `<NAME> Rd`},
{ID: `Lewis Rd`},
{ID: `<NAME>`},
{ID: `<NAME>t`},
{ID: `<NAME>`},
{ID: `<NAME> Dr`},
{ID: `Liberty Dr`},
{ID: `Liberty Square Dr`},
{ID: `<NAME>`},
{ID: `Limerick Ct`},
{ID: `Linda Rd`},
{ID: `Lindsey Dr`},
{ID: `Lingerfelt Ln`},
{ID: `Linwood Rd`},
{ID: `<NAME>ir`},
{ID: `Litchfield St`},
{ID: `Little Gate Way`},
{ID: `<NAME> Ln`},
{ID: `<NAME> Trl`},
{ID: `Little St`},
{ID: `Little Valley Rd`},
{ID: `Littlefield Rd`},
{ID: `Live Oak Run`},
{ID: `Livsey Rd`},
{ID: `Lodge Rd`},
{ID: `Lois Ln`},
{ID: `Lois Rd`},
{ID: `London Ct`},
{ID: `Londonderry Way`},
{ID: `Long Branch Ct`},
{ID: `Long Rd`},
{ID: `Long Trl`},
{ID: `Longview Pte`},
{ID: `Lovell St`},
{ID: `Low Ct`},
{ID: `Lowery Rd`},
{ID: `Lowry Way`},
{ID: `Lucas Ln`},
{ID: `Lucas Rd`},
{ID: `Lucille Rd`},
{ID: `Luckie St`},
{ID: `Luke Ln`},
{ID: `Lumpkin Dr`},
{ID: `<NAME>`},
{ID: `Luther Knight Rd`},
{ID: `Luwanda Trl`},
{ID: `Lynch St`},
{ID: `<NAME>d`},
{ID: `<NAME>d`},
{ID: `Macedonia Rd`},
{ID: `Macra Dr`},
{ID: `Madden Rd`},
{ID: `Madden St`},
{ID: `Maddox Rd`},
{ID: `<NAME>`},
{ID: `Madison Ct`},
{ID: `Madison Ln`},
{ID: `Madison Pl`},
{ID: `Madison Way`},
{ID: `Magnolia Ct`},
{ID: `Magnolia Dr`},
{ID: `Magnolia Farm Rd`},
{ID: `Mahan Ln`},
{ID: `Mahan Rd`},
{ID: `Main Lake Dr`},
{ID: `Main St`},
{ID: `Mallet Pte`},
{ID: `Mallory Ct`},
{ID: `Mallory Dr`},
{ID: `<NAME> Rd`},
{ID: `Manning Mill Way`},
{ID: `Manning Rd`},
{ID: `Manor House Ln`},
{ID: `Manor Way`},
{ID: `Mansfield Rd`},
{ID: `Maple Ave`},
{ID: `Maple Dr`},
{ID: `Maple Grove Dr`},
{ID: `Maple Ln`},
{ID: `Maple Ridge Dr`},
{ID: `Maple St`},
{ID: `Maplewood Pl`},
{ID: `Maplewood Trl`},
{ID: `Marguerite Dr`},
{ID: `Marina Rd`},
{ID: `Mariner Way`},
{ID: `Mark Trl`},
{ID: `Market Place Blvd`},
{ID: `Marlin Ln`},
{ID: `Marr Rd`},
{ID: `<NAME>len`},
{ID: `Martha Ct`},
{ID: `Marthas Pl`},
{ID: `Marthas Walk`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME> King Jr Cir`},
{ID: `Martin Luther King Jr Dr`},
{ID: `Martin Rd`},
{ID: `<NAME> Ln`},
{ID: `Mary Ln`},
{ID: `Mary St`},
{ID: `Massell Dr`},
{ID: `Massingale Rd`},
{ID: `Mathews Rd`},
{ID: `<NAME> Rd`},
{ID: `<NAME>`},
{ID: `Maxwell Rd`},
{ID: `May St`},
{ID: `Maybelle St`},
{ID: `Mayfield Rd`},
{ID: `Mayflower Cir`},
{ID: `Mayflower St`},
{ID: `Mayflower Way`},
{ID: `Mays Rd`},
{ID: `McCanless St`},
{ID: `McClure Dr`},
{ID: `McCormick Rd`},
{ID: `McCoy Rd`},
{ID: `McElreath St`},
{ID: `McEver St`},
{ID: `<NAME> Rd`},
{ID: `McKay Dr`},
{ID: `McKelvey Ct`},
{ID: `<NAME>d`},
{ID: `<NAME>`},
{ID: `McKenzie St`},
{ID: `McKinley Ct`},
{ID: `<NAME> Rd`},
{ID: `McMillan Rd`},
{ID: `McStotts Rd`},
{ID: `<NAME>`},
{ID: `Meadow Ln`},
{ID: `Meadowbridge Dr`},
{ID: `Meadowview Cir`},
{ID: `Meadowview Rd`},
{ID: `Medical Dr`},
{ID: `Melhana Dr`},
{ID: `Melone Dr`},
{ID: `Mercer Dr`},
{ID: `Mercer Ln`},
{ID: `Merchants Square Dr`},
{ID: `Michael Ln`},
{ID: `<NAME>`},
{ID: `Middle Ct`},
{ID: `Middlebrook Dr`},
{ID: `Middleton Ct`},
{ID: `Milam Bridge Rd`},
{ID: `Milam Cir`},
{ID: `Milam St`},
{ID: `Miles Dr`},
{ID: `Mill Creek Rd`},
{ID: `Mill Rock Dr`},
{ID: `Mill View Ct`},
{ID: `Miller Farm Rd`},
{ID: `Millers Way`},
{ID: `Millstone Pt`},
{ID: `Millstream Ct`},
{ID: `Milner Rd`},
{ID: `Milner St`},
{ID: `Miltons Walk`},
{ID: `Mimosa Ln`},
{ID: `Mimosa Ter`},
{ID: `Mineral Museum Dr`},
{ID: `Miners Pt`},
{ID: `Mint Rd`},
{ID: `Mirror Lake Dr`},
{ID: `Mission Hills Dr`},
{ID: `Mission Mountain Rd`},
{ID: `Mission Rd`},
{ID: `Mission Ridge Dr`},
{ID: `Misty Hollow Ct`},
{ID: `Misty Ridge Dr`},
{ID: `Misty Valley Dr`},
{ID: `<NAME>ve`},
{ID: `Mitchell Rd`},
{ID: `Mockingbird Dr`},
{ID: `Mohawk Dr`},
{ID: `<NAME>`},
{ID: `Montclair Ct`},
{ID: `Montgomery St`},
{ID: `Montview Cir`},
{ID: `Moody St`},
{ID: `Moonlight Dr`},
{ID: `Moore Rd`},
{ID: `Moore St`},
{ID: `Moores Spring Rd`},
{ID: `Morgan Ave`},
{ID: `Morgan Dr`},
{ID: `Moriah Way`},
{ID: `Morris Dr`},
{ID: `Morris Rd`},
{ID: `Mosley Dr`},
{ID: `Moss Landing Rd`},
{ID: `Moss Ln`},
{ID: `Moss Way`},
{ID: `Mossy Rock Ln`},
{ID: `Mostellers Mill Rd`},
{ID: `Motorsports Dr`},
{ID: `Mount Olive St`},
{ID: `Mount Pleasant Rd`},
{ID: `Mountain Breeze Rd`},
{ID: `Mountain Chase Dr`},
{ID: `Mountain Creek Trl`},
{ID: `Mountain Ridge Dr`},
{ID: `Mountain Ridge Rd`},
{ID: `Mountain Trail Ct`},
{ID: `Mountain View Ct`},
{ID: `Mountain View Dr`},
{ID: `Mountain View Rd`},
{ID: `Mountainbrook Dr`},
{ID: `Muirfield Walk`},
{ID: `Mulberry Ln`},
{ID: `Mulberry Way`},
{ID: `Mulinix Rd`},
{ID: `Mull St`},
{ID: `Mullinax Rd`},
{ID: `Mundy Rd`},
{ID: `Mundy St`},
{ID: `Murphy Ln`},
{ID: `Murray Ave`},
{ID: `N Bartow St`},
{ID: `N Cass St`},
{ID: `N Central Ave`},
{ID: `N Dixie Ave`},
{ID: `N Erwin St`},
{ID: `N Franklin St`},
{ID: `N Gilmer St`},
{ID: `N Main St`},
{ID: `N Morningside Dr`},
{ID: `N Museum Dr`},
{ID: `N Public Sq`},
{ID: `N Railroad St`},
{ID: `N Tennessee St`},
{ID: `N Wall St`},
{ID: `Nally Rd`},
{ID: `Natalie Dr`},
{ID: `Natchi Trl`},
{ID: `Navajo Ln`},
{ID: `Navajo Trl`},
{ID: `Navigation Pte`},
{ID: `Needle Point Rdg`},
{ID: `Neel St`},
{ID: `Nelson St`},
{ID: `New Hope Church Rd`},
{ID: `<NAME>n`},
{ID: `<NAME>`},
{ID: `Noble St`},
{ID: `Noland St`},
{ID: `Norland Ct`},
{ID: `North Ave`},
{ID: `North Dr`},
{ID: `North Hampton Dr`},
{ID: `North Oaks Cir`},
{ID: `North Point Dr`},
{ID: `North Ridge Cir`},
{ID: `North Ridge Ct`},
{ID: `North Ridge Dr`},
{ID: `North Ridge Pt`},
{ID: `North Valley Rd`},
{ID: `North Village Cir`},
{ID: `North Wesley Rdg`},
{ID: `North Woods Dr`},
{ID: `Northpoint Pkwy`},
{ID: `Northside Pkwy`},
{ID: `Norton Rd`},
{ID: `Nottingham Dr`},
{ID: `Nottingham Way`},
{ID: `November Ln`},
{ID: `Oak Beach Dr`},
{ID: `Oak Ct`},
{ID: `Oak Dr`},
{ID: `Oak Farm Dr`},
{ID: `Oak Grove Ct`},
{ID: `Oak Grove Ln`},
{ID: `Oak Grove Rd`},
{ID: `Oak Hill Cir`},
{ID: `Oak Hill Dr`},
{ID: `Oak Hill Ln`},
{ID: `Oak Hill Way`},
{ID: `Oak Hollow Rd`},
{ID: `Oak Leaf Dr`},
{ID: `Oak Ln`},
{ID: `Oak St`},
{ID: `Oak Street No 1`},
{ID: `Oak Street No 2`},
{ID: `Oak Way`},
{ID: `Oakbrook Dr`},
{ID: `Oakdale Dr`},
{ID: `Oakland St`},
{ID: `Oakridge Dr`},
{ID: `Oakside Ct`},
{ID: `Oakside Trl`},
{ID: `Oakwood Way`},
{ID: `Ohio Ave`},
{ID: `Ohio St`},
{ID: `Old 140 Hwy`},
{ID: `Old 41 Hwy`},
{ID: `Old Alabama Rd`},
{ID: `Old Alabama Spur`},
{ID: `Old Allatoona Rd`},
{ID: `Old Barn Way`},
{ID: `Old Bells Ferry Rd`},
{ID: `Old C C C Rd`},
{ID: `Old Canton Rd`},
{ID: `Old Cassville White Rd`},
{ID: `Old Cline Smith Rd`},
{ID: `Old Dallas Hwy`},
{ID: `Old Dallas Rd`},
{ID: `Old Dixie Hwy`},
{ID: `Old Farm Rd`},
{ID: `Old Field Rd`},
{ID: `Old Furnace Rd`},
{ID: `Old Gilliam Springs Rd`},
{ID: `Old Goodie Mountain Rd`},
{ID: `Old Grassdale Rd`},
{ID: `Old Hall Station Rd`},
{ID: `Old Hardin Bridge Rd`},
{ID: `Old Hemlock Cv`},
{ID: `Old Home Place Rd`},
{ID: `Old Jones Mill Rd`},
{ID: `Old Macedonia Campground Rd`},
{ID: `Old Martin Rd`},
{ID: `Old McKaskey Creek Rd`},
{ID: `Old Mill Farm Rd`},
{ID: `Old Mill Rd`},
{ID: `Old Old Alabama Rd`},
{ID: `Old Post Rd`},
{ID: `Old River Rd`},
{ID: `Old Rome Rd`},
{ID: `Old Roving Rd`},
{ID: `Old Rudy York Rd`},
{ID: `Old Sandtown Rd`},
{ID: `Old Spring Place Rd`},
{ID: `Old Stilesboro Rd`},
{ID: `Old Tennessee Hwy`},
{ID: `Old Tennessee Rd`},
{ID: `Old Wade Rd`},
{ID: `Olive Vine Church Rd`},
{ID: `Opal St`},
{ID: `Orchard Rd`},
{ID: `Ore Mine Rd`},
{ID: `Oriole Dr`},
{ID: `Otting Dr`},
{ID: `Overlook Cir`},
{ID: `Overlook Way`},
{ID: `Owensby Ln`},
{ID: `Oxford Ct`},
{ID: `Oxford Dr`},
{ID: `Oxford Ln`},
{ID: `Oxford Mill Way`},
{ID: `P M B Young Rd`},
{ID: `Paddock Way`},
{ID: `Padgett Rd`},
{ID: `Paga Mine Rd`},
{ID: `Paige Dr`},
{ID: `Paige St`},
{ID: `Palmer Rd`},
{ID: `Pam Cir`},
{ID: `Park Ct`},
{ID: `Park Marina Rd`},
{ID: `Park Place Dr`},
{ID: `Park St`},
{ID: `Parker Ave`},
{ID: `Parker Wood Rd`},
{ID: `Parkside View`},
{ID: `Parkview Dr`},
{ID: `Parmenter St`},
{ID: `<NAME>d`},
{ID: `Pasley Rd`},
{ID: `Pathfinder St`},
{ID: `Patricia Dr`},
{ID: `Patterson Dr`},
{ID: `<NAME>`},
{ID: `<NAME>n`},
{ID: `Patton St`},
{ID: `Pawnee Trl`},
{ID: `Peace Tree Ln`},
{ID: `<NAME>`},
{ID: `Peachtree St`},
{ID: `Pearl Ln`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Pearson St`},
{ID: `<NAME>t`},
{ID: `<NAME>t`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME> Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Penelope Ln`},
{ID: `Penfield Dr`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Peppermill Dr`},
{ID: `<NAME>`},
{ID: `Perkins Dr`},
{ID: `<NAME> Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Pettit Rd`},
{ID: `Phillips Dr`},
{ID: `Phoenix Air Dr`},
{ID: `<NAME>`},
{ID: `Picklesimer Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `Piedmont Ln`},
{ID: `Pilgrim St`},
{ID: `<NAME> Rd`},
{ID: `Pine Cir`},
{ID: `Pine Dr`},
{ID: `Pine Forrest Rd`},
{ID: `Pine Grove Church Rd`},
{ID: `Pine Grove Cir`},
{ID: `Pine Grove Rd`},
{ID: `Pine Log Rd`},
{ID: `Pine Loop`},
{ID: `Pine Needle Trl`},
{ID: `Pine Oak Ct`},
{ID: `Pine Ridge Ct`},
{ID: `Pine Ridge Dr`},
{ID: `Pine Ridge Ln`},
{ID: `Pine Ridge Rd`},
{ID: `Pine St`},
{ID: `Pine Street No 1`},
{ID: `Pine Street No 2`},
{ID: `Pine Valley Cir`},
{ID: `Pine Valley Dr`},
{ID: `Pine Vista Cir`},
{ID: `Pine Water Ct`},
{ID: `Pine Wood Rd`},
{ID: `Pinecrest Dr`},
{ID: `Pinehill Dr`},
{ID: `Pinery Dr`},
{ID: `Piney Woods Rd`},
{ID: `Pinson Dr`},
{ID: `Pioneer Trl`},
{ID: `Pittman St`},
{ID: `Piute Pl`},
{ID: `Plainview Dr`},
{ID: `Plantation Rd`},
{ID: `Plantation Ridge Dr`},
{ID: `Planters Dr`},
{ID: `Pleasant Grove Church Rd`},
{ID: `Pleasant Ln`},
{ID: `Pleasant Run Dr`},
{ID: `Pleasant Valley Rd`},
{ID: `Plymouth Ct`},
{ID: `Plymouth Dr`},
{ID: `Point Dr`},
{ID: `Point Place Dr`},
{ID: `Pointe North Dr`},
{ID: `Pointe Way`},
{ID: `Polo Flds`},
{ID: `Pompano Ln`},
{ID: `Ponders Rd`},
{ID: `Popham Rd`},
{ID: `Poplar Springs Rd`},
{ID: `Poplar St`},
{ID: `Popular Dr`},
{ID: `Post Office Cir`},
{ID: `Postelle St`},
{ID: `Powell Rd`},
{ID: `Powers Ct`},
{ID: `Powersports Cir`},
{ID: `Prather St`},
{ID: `Pratt Rd`},
{ID: `Prayer Trl`},
{ID: `Prestwick Loop`},
{ID: `Princeton Ave`},
{ID: `Princeton Blvd`},
{ID: `Princeton Glen Ct`},
{ID: `Princeton Pl`},
{ID: `Princeton Place Dr`},
{ID: `Princeton Walk`},
{ID: `Priory Club Dr`},
{ID: `Public Sq`},
{ID: `Puckett Rd`},
{ID: `Puckett St`},
{ID: `Pumpkinvine Trl`},
{ID: `Puritan St`},
{ID: `Pyron Ct`},
{ID: `Quail Ct`},
{ID: `Quail Hollow Dr`},
{ID: `Quail Ridge Dr`},
{ID: `Quail Ridge Rd`},
{ID: `Quail Run`},
{ID: `Quality Dr`},
{ID: `R E Fields Rd`},
{ID: `Rail Dr`},
{ID: `Rail Ovlk`},
{ID: `Railroad Ave`},
{ID: `Railroad Pass`},
{ID: `Railroad St`},
{ID: `Raindrop Ln`},
{ID: `Randolph Rd`},
{ID: `Randy Way`},
{ID: `Ranell Pl`},
{ID: `Ranger Rd`},
{ID: `Rattler Rd`},
{ID: `Ravenfield Rd`},
{ID: `<NAME> Rd`},
{ID: `Recess Rd`},
{ID: `Red Apple Ter`},
{ID: `Red Barn Rd`},
{ID: `Red Bug Pt`},
{ID: `Red Fox Trl`},
{ID: `Red Oak Dr`},
{ID: `Red Tip Dr`},
{ID: `Red Top Beach Rd`},
{ID: `Red Top Cir`},
{ID: `Red Top Dr`},
{ID: `Red Top Mountain Rd`},
{ID: `Redcomb Dr`},
{ID: `Redd Rd`},
{ID: `Redding Rd`},
{ID: `Redfield Ct`},
{ID: `Rediger Ct`},
{ID: `Redwood Dr`},
{ID: `Reject Rd`},
{ID: `Remington Ct`},
{ID: `Remington Dr`},
{ID: `Remington Ln`},
{ID: `Retreat Rdg`},
{ID: `Rex Ln`},
{ID: `Reynolds Bend Rd`},
{ID: `Reynolds Bridge Rd`},
{ID: `Reynolds Ln`},
{ID: `Rhonda Ln`},
{ID: `Rice Dr`},
{ID: `Richards Rd`},
{ID: `Richland Dr`},
{ID: `Riddle Mill Rd`},
{ID: `Ridge Cross Rd`},
{ID: `Ridge Rd`},
{ID: `Ridge Row Dr`},
{ID: `Ridge View Dr`},
{ID: `Ridge Way`},
{ID: `Ridgedale Rd`},
{ID: `Ridgeline Way`},
{ID: `Ridgemont Way`},
{ID: `Ridgeview Ct`},
{ID: `Ridgeview Dr`},
{ID: `Ridgeview Trl`},
{ID: `Ridgewater Dr`},
{ID: `Ridgeway Ct`},
{ID: `Ridgewood Dr`},
{ID: `Ringers Rd`},
{ID: `Rip Rd`},
{ID: `Ripley Ave`},
{ID: `River Birch Cir`},
{ID: `River Birch Ct`},
{ID: `River Birch Dr`},
{ID: `River Birch Rd`},
{ID: `River Ct`},
{ID: `River Dr`},
{ID: `River Oaks Ct`},
{ID: `River Oaks Dr`},
{ID: `River Shoals Dr`},
{ID: `River Walk Pkwy`},
{ID: `Riverbend Rd`},
{ID: `Rivercreek Xing`},
{ID: `Riverside Ct`},
{ID: `Riverside Dr`},
{ID: `Riverview Ct`},
{ID: `Riverview Trl`},
{ID: `Riverwood Cv`},
{ID: `Roach Dr`},
{ID: `Road No 1 South`},
{ID: `Road No 2 South`},
{ID: `Road No 3 South`},
{ID: `<NAME>`},
{ID: `Roberson Rd`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME> Dr`},
{ID: `<NAME>`},
{ID: `Rock Fence Cir`},
{ID: `Rock Fence Rd`},
{ID: `Rock Fence Road No 2`},
{ID: `Rock Ridge Ct`},
{ID: `Rock Ridge Rd`},
{ID: `Rockaway Ct`},
{ID: `Rockcrest Cir`},
{ID: `Rockpoint`},
{ID: `Rockridge Dr`},
{ID: `Rocky Ave`},
{ID: `Rocky Cir`},
{ID: `Rocky Mountain Pass`},
{ID: `Rocky Rd`},
{ID: `Rocky St`},
{ID: `<NAME> Rd`},
{ID: `Rogers Rd`},
{ID: `Rogers St`},
{ID: `Rolling Hills Dr`},
{ID: `Ron St`},
{ID: `Ronson St`},
{ID: `Roosevelt St`},
{ID: `<NAME>`},
{ID: `Rose Trl`},
{ID: `Rose Way`},
{ID: `Rosebury Ct`},
{ID: `Rosen St`},
{ID: `Rosewood Ln`},
{ID: `Ross Rd`},
{ID: `Roth Ln`},
{ID: `Roundtable Ct`},
{ID: `<NAME> Cir`},
{ID: `Roving Rd`},
{ID: `Rowland Springs Rd`},
{ID: `Roxburgh Trl`},
{ID: `Roxy Pl`},
{ID: `Royal Lake Ct`},
{ID: `Royal Lake Cv`},
{ID: `Royal Lake Dr`},
{ID: `Royco Dr`},
{ID: `Rubie Ln`},
{ID: `<NAME> Ln`},
{ID: `Ruby St`},
{ID: `<NAME>`},
{ID: `Ruff Dr`},
{ID: `<NAME> Trl`},
{ID: `<NAME> Way`},
{ID: `Russell Dr`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>`},
{ID: `<NAME>d`},
{ID: `Ryles Rd`},
{ID: `S Bartow St`},
{ID: `S Cass St`},
{ID: `S Central Ave`},
{ID: `S Dixie Ave`},
{ID: `S Erwin St`},
{ID: `S Franklin St`},
{ID: `S Gilmer St`},
{ID: `S Main St`},
{ID: `S Morningside Dr`},
{ID: `S Museum Dr`},
{ID: `S Public Sq`},
{ID: `S Railroad St`},
{ID: `S Tennessee St`},
{ID: `S Wall St`},
{ID: `Saddle Club Dr`},
{ID: `Saddle Field Cir`},
{ID: `Saddle Ln`},
{ID: `Saddle Ridge Dr`},
{ID: `Saddlebrook Dr`},
{ID: `Saddleman Ct`},
{ID: `Sage Way`},
{ID: `Saggus Rd`},
{ID: `Sailors Cv`},
{ID: `Saint Andrews Dr`},
{ID: `Saint Elmo Cir`},
{ID: `S<NAME> Pl`},
{ID: `Saint Ives Way`},
{ID: `Salacoa Creek Rd`},
{ID: `Salacoa Rd`},
{ID: `<NAME> Rd`},
{ID: `Samuel Way`},
{ID: `Sandcliffe Ln`},
{ID: `Sandtown Rd`},
{ID: `Saratoga Dr`},
{ID: `Sassafras Trl`},
{ID: `Sassy Ln`},
{ID: `Satcher Rd`},
{ID: `Scale House Dr`},
{ID: `Scarlett Oak Dr`},
{ID: `Scenic Mountain Dr`},
{ID: `School St`},
{ID: `Scott Dr`},
{ID: `Screaming Eagle Ct`},
{ID: `Sea Horse Cir`},
{ID: `Secretariat Ct`},
{ID: `Secretariat Rd`},
{ID: `Seminole Rd`},
{ID: `Seminole Trl`},
{ID: `Seneca Ln`},
{ID: `Sentry Dr`},
{ID: `Sequoia Pl`},
{ID: `Sequoyah Cir`},
{ID: `Sequoyah Trl`},
{ID: `Serena St`},
{ID: `Service Road No 3`},
{ID: `Setters Pte`},
{ID: `Settlers Cv`},
{ID: `Sewell Rd`},
{ID: `Shadow Ln`},
{ID: `Shady Oak Ln`},
{ID: `Shady Valley Dr`},
{ID: `Shagbark Dr`},
{ID: `Shake Rag Cir`},
{ID: `Shake Rag Rd`},
{ID: `Shaker Ct`},
{ID: `Shallowood Pl`},
{ID: `Sharp Way`},
{ID: `Shaw Blvd`},
{ID: `Shaw St`},
{ID: `Sheffield Pl`},
{ID: `Sheila Ln`},
{ID: `Sheila Rdg`},
{ID: `Shenandoah Pkwy`},
{ID: `Sherman Ln`},
{ID: `Sherwood Dr`},
{ID: `Sherwood Ln`},
{ID: `Sherwood Way`},
{ID: `Shiloh Church Rd`},
{ID: `Shinall Gaines Rd`},
{ID: `Shinall Rd`},
{ID: `Shirley Ln`},
{ID: `Shotgun Rd`},
{ID: `Shropshire Ln`},
{ID: `Signal Mountain Cir`},
{ID: `Signal Mountain Dr`},
{ID: `Silversmith Trl`},
{ID: `Simmons Dr`},
{ID: `<NAME>ir`},
{ID: `Simpson Rd`},
{ID: `Simpson Trl`},
{ID: `Singletree Rdg`},
{ID: `Siniard Dr`},
{ID: `Siniard Rd`},
{ID: `Sioux Rd`},
{ID: `Skinner St`},
{ID: `Skyline Dr`},
{ID: `Skyview Dr`},
{ID: `Skyview Pte`},
{ID: `Slopes Dr`},
{ID: `Smiley Ingram Rd`},
{ID: `<NAME>`},
{ID: `Smith Dr`},
{ID: `Smith Rd`},
{ID: `Smyrna St`},
{ID: `Snapper Ln`},
{ID: `Snow Springs Church Rd`},
{ID: `Snow Springs Rd`},
{ID: `Snug Harbor Dr`},
{ID: `Soaring Heights Dr`},
{ID: `Soho Dr`},
{ID: `Somerset Club Dr`},
{ID: `Somerset Ln`},
{ID: `Sonya Pl`},
{ID: `South Ave`},
{ID: `South Bridge Dr`},
{ID: `South Dr`},
{ID: `South Oaks Dr`},
{ID: `South Valley Rd`},
{ID: `Southern Rd`},
{ID: `Southridge Trl`},
{ID: `Southview Dr`},
{ID: `Southwell Ave`},
{ID: `Southwood Dr`},
{ID: `Sparks Rd`},
{ID: `Sparks St`},
{ID: `Sparky Trl`},
{ID: `Sparrow Ct`},
{ID: `Spigs St`},
{ID: `Split Oak Dr`},
{ID: `Split Rail Ct`},
{ID: `Spring Creek Cir`},
{ID: `Spring Folly`},
{ID: `Spring Lake Trl`},
{ID: `Spring Meadows Ln`},
{ID: `Spring Place Rd`},
{ID: `Spring St`},
{ID: `Springhouse Ct`},
{ID: `Springmont Dr`},
{ID: `Springwell Ln`},
{ID: `Spruce Ln`},
{ID: `Spruce St`},
{ID: `Squires Ct`},
{ID: `SR 113`},
{ID: `SR 140`},
{ID: `SR 20`},
{ID: `SR 294`},
{ID: `SR 61`},
{ID: `Stamp Creek Rd`},
{ID: `Stampede Pass`},
{ID: `Standard Ct`},
{ID: `Star Dust Trl`},
{ID: `Starlight Dr`},
{ID: `Starnes Rd`},
{ID: `Starting Gate Dr`},
{ID: `Stately Oaks Dr`},
{ID: `Station Ct`},
{ID: `Station Rail Dr`},
{ID: `Station Way`},
{ID: `Staton Pl`},
{ID: `Steeplechase Ln`},
{ID: `Stephen Way`},
{ID: `Stephens Rd`},
{ID: `Stephens St`},
{ID: `Sterling Ct`},
{ID: `Stewart Dr`},
{ID: `Stewart Ln`},
{ID: `Stiles Ct`},
{ID: `Stiles Fairway`},
{ID: `Stiles Rd`},
{ID: `Stillmont Way`},
{ID: `Stillwater Ct`},
{ID: `Stoker Rd`},
{ID: `Stokley St`},
{ID: `Stone Gate Dr`},
{ID: `Stone Mill Dr`},
{ID: `Stonebridge Ct`},
{ID: `Stonebrook Dr`},
{ID: `Stonecreek Dr`},
{ID: `Stonehaven Cir`},
{ID: `Stonehenge Ct`},
{ID: `Stoner Rd`},
{ID: `Stoneridge Pl`},
{ID: `Stoners Chapel Rd`},
{ID: `Stonewall Ln`},
{ID: `Stonewall St`},
{ID: `Stoneybrook Ct`},
{ID: `Stratford Ln`},
{ID: `Stratford Way`},
{ID: `Striplin Cv`},
{ID: `Sue U Path`},
{ID: `Sugar Hill Rd`},
{ID: `Sugar Mill Dr`},
{ID: `Sugar Valley Rd`},
{ID: `Sugarberry Pl`},
{ID: `Sukkau Dr`},
{ID: `Sullins Rd`},
{ID: `Summer Dr`},
{ID: `Summer Pl`},
{ID: `Summer St`},
{ID: `Summerset Ct`},
{ID: `Summit Ridge Cir`},
{ID: `Summit Ridge Dr`},
{ID: `Summit St`},
{ID: `Sumner Ln`},
{ID: `Sunrise Dr`},
{ID: `Sunset Cir`},
{ID: `Sunset Dr`},
{ID: `Sunset Rd`},
{ID: `Sunset Ter`},
{ID: `Surrey Ln`},
{ID: `Sutton Rd`},
{ID: `Sutton Trl`},
{ID: `Swafford Rd`},
{ID: `Swallow Dr`},
{ID: `Swan Cir`},
{ID: `Sweet Eloise Ln`},
{ID: `Sweet Gracie Holl`},
{ID: `Sweet Gum Ln`},
{ID: `Sweet Water Ct`},
{ID: `Sweetbriar Cir`},
{ID: `Swisher Dr`},
{ID: `Syble Cv`},
{ID: `Tabernacle St`},
{ID: `Taff Rd`},
{ID: `Talisman Dr`},
{ID: `<NAME> Ln`},
{ID: `Tanager Ln`},
{ID: `Tanchez Dr`},
{ID: `Tanglewood Dr`},
{ID: `Tank Hill St`},
{ID: `<NAME>d`},
{ID: `<NAME> Rd`},
{ID: `Tanyard Rd`},
{ID: `<NAME>`},
{ID: `Tarpon Trl`},
{ID: `Tasha Trl`},
{ID: `<NAME> Rd`},
{ID: `Taylor Dr`},
{ID: `Taylor Ln`},
{ID: `Taylorsville Macedonia Rd`},
{ID: `Taylorsville Rd`},
{ID: `Teague Rd`},
{ID: `Teal Ct`},
{ID: `Tellus Dr`},
{ID: `Tennessee Ave`},
{ID: `Terrell Dr`},
{ID: `Terry Ln`},
{ID: `Thatch Ct`},
{ID: `Theater Ave`},
{ID: `Third Army Rd`},
{ID: `Thistle Stop`},
{ID: `Thomas Ct`},
{ID: `Thompson St`},
{ID: `Thornwood Dr`},
{ID: `Thoroughbred Ln`},
{ID: `Thrasher Ct`},
{ID: `Thrasher Rd`},
{ID: `Thunderhawk Ln`},
{ID: `Tidwell Rd`},
{ID: `Tillberry Ct`},
{ID: `Tillton Trl`},
{ID: `Timber Ridge Dr`},
{ID: `Timber Trl`},
{ID: `Timberlake Cv`},
{ID: `Timberlake Pte`},
{ID: `<NAME>ir`},
{ID: `Timberland Ct`},
{ID: `Timberwalk Ct`},
{ID: `Timberwood Knol`},
{ID: `Timberwood Rd`},
{ID: `Tinsley Dr`},
{ID: `Todd Rd`},
{ID: `<NAME> Rd`},
{ID: `Tomahawk Dr`},
{ID: `Top Ridge Ct`},
{ID: `Topridge Dr`},
{ID: `Tori Ln`},
{ID: `Towe Chapel Rd`},
{ID: `Tower Dr`},
{ID: `Tower Ridge Rd`},
{ID: `Tower St`},
{ID: `Town And Country Dr`},
{ID: `Townsend Dr`},
{ID: `Townsend Teague Rd`},
{ID: `Townsley Dr`},
{ID: `Tracy Ln`},
{ID: `Tramore Ct`},
{ID: `Trappers Cv`},
{ID: `Travelers Path`},
{ID: `Treemont Dr`},
{ID: `Triangle Ln`},
{ID: `Trimble Hollow Rd`},
{ID: `Trotters Walk`},
{ID: `Tuba Dr`},
{ID: `Tumlin St`},
{ID: `Tupelo Dr`},
{ID: `Turnberry Ct`},
{ID: `Turner Dr`},
{ID: `Turner St`},
{ID: `Turtle Rock Ct`},
{ID: `Twelve Oaks Dr`},
{ID: `Twin Branches Ln`},
{ID: `Twin Bridges Rd`},
{ID: `Twin Oaks Ln`},
{ID: `Twin Pines Rd`},
{ID: `Twinleaf Ct`},
{ID: `Two Gun Bailey Rd`},
{ID: `Two Run Creek Rd`},
{ID: `Two Run Creek Trl`},
{ID: `Two Run Trc`},
{ID: `Two Run Xing`},
{ID: `Unbridled Rd`},
{ID: `Val Hollow Ridge Rd`},
{ID: `Valley Creek Dr`},
{ID: `Valley Dale Dr`},
{ID: `Valley Dr`},
{ID: `Valley Trl`},
{ID: `Valley View Ct`},
{ID: `Valley View Dr`},
{ID: `Valley View Farm Rd`},
{ID: `Vaughan Ct`},
{ID: `Vaughan Dr`},
{ID: `Vaughn Dairy Rd`},
{ID: `Vaughn Rd`},
{ID: `<NAME>ur`},
{ID: `Veach Loop`},
{ID: `Vermont Ave`},
{ID: `Victoria Dr`},
{ID: `Vigilant St`},
{ID: `Village Dr`},
{ID: `Village Trc`},
{ID: `Vineyard Mountain Rd`},
{ID: `Vineyard Rd`},
{ID: `Vineyard Way`},
{ID: `Vinnings Ln`},
{ID: `Vintage Ct`},
{ID: `Vintagewood Cv`},
{ID: `Virginia Ave`},
{ID: `Vista Ct`},
{ID: `Vista Woods Dr`},
{ID: `Vulcan Quarry Rd`},
{ID: `W Carter St`},
{ID: `W Cherokee Ave`},
{ID: `W Church St`},
{ID: `W Felton Rd`},
{ID: `W George St`},
{ID: `W Georgia Ave`},
{ID: `W Holiday Ct`},
{ID: `W Howard St`},
{ID: `W Indiana Ave`},
{ID: `W Iron Belt Rd`},
{ID: `W Lee St`},
{ID: `W Main St`},
{ID: `W Oak Grove Rd`},
{ID: `W Porter St`},
{ID: `W Railroad St`},
{ID: `W Rocky St`},
{ID: `Wade Chapel Rd`},
{ID: `Wade Rd`},
{ID: `Wagonwheel Dr`},
{ID: `<NAME>`},
{ID: `Walker Hills Cir`},
{ID: `Walker Rd`},
{ID: `Walker St`},
{ID: `Walnut Dr`},
{ID: `Walnut Grove Rd`},
{ID: `Walnut Ln`},
{ID: `Walnut Trl`},
{ID: `Walt Way`},
{ID: `Walton St`},
{ID: `Wanda Dr`},
{ID: `Wansley Dr`},
{ID: `Ward Cir`},
{ID: `Ward Mountain Rd`},
{ID: `Ward Mountain Trl`},
{ID: `Warren Cv`},
{ID: `Washakie Ln`},
{ID: `Water Tower Rd`},
{ID: `Waterford Dr`},
{ID: `Waterfront Dr`},
{ID: `Waters Edge Dr`},
{ID: `Waters View`},
{ID: `Waterside Dr`},
{ID: `Waterstone Ct`},
{ID: `Waterstone Dr`},
{ID: `Watters Rd`},
{ID: `Wayland Cir`},
{ID: `Wayne Ave`},
{ID: `Wayne Dr`},
{ID: `Wayside Dr`},
{ID: `Wayside Rd`},
{ID: `Weaver St`},
{ID: `Webb Dr`},
{ID: `Websters Ferry Lndg`},
{ID: `Websters Overlook Dr`},
{ID: `Websters Overlook Lndg`},
{ID: `Weems Dr`},
{ID: `Weems Rd`},
{ID: `Weems Spur`},
{ID: `<NAME> Ln`},
{ID: `Weissinger Rd`},
{ID: `Wellington Dr`},
{ID: `Wellons Rd`},
{ID: `Wells Dr`},
{ID: `Wells St`},
{ID: `Wentercress Dr`},
{ID: `<NAME> Ln`},
{ID: `Wesley Mill Dr`},
{ID: `Wesley Rd`},
{ID: `Wesley Trc`},
{ID: `Wessington Pl`},
{ID: `West Ave`},
{ID: `West Dr`},
{ID: `West Ln`},
{ID: `West Oak Dr`},
{ID: `West Ridge Ct`},
{ID: `West Ridge Dr`},
{ID: `Westchester Dr`},
{ID: `Westfield Park`},
{ID: `Westgate Dr`},
{ID: `Westminster Dr`},
{ID: `Westover Dr`},
{ID: `Westover Rdg`},
{ID: `Westside Chas`},
{ID: `Westview Dr`},
{ID: `Westwood Cir`},
{ID: `Westwood Dr`},
{ID: `Westwood Ln`},
{ID: `Wetlands Rd`},
{ID: `Wexford Cir`},
{ID: `Wey Bridge Ct`},
{ID: `Wheeler Rd`},
{ID: `Whipporwill Ct`},
{ID: `Whipporwill Ln`},
{ID: `Whispering Pine Cir`},
{ID: `Whispering Pine Ln`},
{ID: `Whistle Stop Dr`},
{ID: `White Oak Dr`},
{ID: `White Rd`},
{ID: `Widgeon Way`},
{ID: `Wild Flower Trl`},
{ID: `Wildberry Path`},
{ID: `Wilderness Camp Rd`},
{ID: `Wildwood Dr`},
{ID: `Wilkey St`},
{ID: `Wilkins Rd`},
{ID: `William Dr`},
{ID: `Williams Creek Trl`},
{ID: `Williams Rd`},
{ID: `<NAME> Rd`},
{ID: `Williams St`},
{ID: `Willis Rd`},
{ID: `<NAME> Dr`},
{ID: `<NAME>`},
{ID: `Willow Ct`},
{ID: `Willow Ln`},
{ID: `Willow Trc`},
{ID: `<NAME> Ln`},
{ID: `Willowbrook Ct`},
{ID: `Wilmer Way`},
{ID: `Wilson St`},
{ID: `Winchester Ave`},
{ID: `Winchester Dr`},
{ID: `Windcliff Ct`},
{ID: `<NAME>`},
{ID: `Windfield Dr`},
{ID: `Winding Branch Trc`},
{ID: `Winding Water Cv`},
{ID: `Windrush Dr`},
{ID: `Windsor Ct`},
{ID: `Windsor Trc`},
{ID: `Windy Hill Rd`},
{ID: `Wingfoot Ct`},
{ID: `Wingfoot Trl`},
{ID: `<NAME> Rd`},
{ID: `<NAME> Ct`},
{ID: `<NAME> Cv`},
{ID: `Winter Wood Dr`},
{ID: `Winter Wood Trc`},
{ID: `<NAME> Trl`},
{ID: `Winter Wood Way`},
{ID: `Winterset Dr`},
{ID: `Wiseman Rd`},
{ID: `Wisteria Trl`},
{ID: `Wofford St`},
{ID: `Wolfcliff Rd`},
{ID: `Wolfpen Pass`},
{ID: `Wolfridge Trl`},
{ID: `Womack Dr`},
{ID: `Wood Cir`},
{ID: `Wood Forest Dr`},
{ID: `Wood Ln`},
{ID: `Wood Rd`},
{ID: `Wood St`},
{ID: `Woodall Rd`},
{ID: `Woodbine Dr`},
{ID: `Woodbridge Dr`},
{ID: `Woodcrest Dr`},
{ID: `Woodcrest Rd`},
{ID: `Wooddale Dr`},
{ID: `Woodhaven Ct`},
{ID: `Woodhaven Dr`},
{ID: `Woodland Bridge Rd`},
{ID: `Woodland Dr`},
{ID: `Woodland Rd`},
{ID: `Woodland Way`},
{ID: `Woodlands Way`},
{ID: `Woodsong Ct`},
{ID: `Woodview Dr`},
{ID: `Woodvine Ct`},
{ID: `Woodvine Dr`},
{ID: `Woody Rd`},
{ID: `Wooleys Rd`},
{ID: `Worthington Rd`},
{ID: `Wren Ct`},
{ID: `Wykle St`},
{ID: `Wynn Loop`},
{ID: `Wynn Rd`},
{ID: `Yacht Club Rd`},
{ID: `Yellow Brick Rd`},
{ID: `Yellow Hammer Dr`},
{ID: `Yonah Ct`},
{ID: `York Trl`},
{ID: `Young Deer Trl`},
{ID: `Young Loop`},
{ID: `Young Rd`},
{ID: `Young St`},
{ID: `Youngs Mill Rd`},
{ID: `Zena Dr`},
{ID: `Zion Rd`}}},
`ZipCode`: {ID: `ZipCode`, Name: `<NAME>`, Row: []Row{
{ID: `01770`},
{ID: `02030`},
{ID: `02108`},
{ID: `02109`},
{ID: `02110`},
{ID: `02199`},
{ID: `02481`},
{ID: `02493`},
{ID: `06820`},
{ID: `06830`},
{ID: `06831`},
{ID: `06840`},
{ID: `06853`},
{ID: `06870`},
{ID: `06878`},
{ID: `06880`},
{ID: `06883`},
{ID: `07021`},
{ID: `07046`},
{ID: `07078`},
{ID: `07417`},
{ID: `07458`},
{ID: `07620`},
{ID: `07760`},
{ID: `07924`},
{ID: `07931`},
{ID: `07945`},
{ID: `10004`},
{ID: `10017`},
{ID: `10018`},
{ID: `10021`},
{ID: `10022`},
{ID: `10028`},
{ID: `10069`},
{ID: `10504`},
{ID: `10506`},
{ID: `10514`},
{ID: `10538`},
{ID: `10576`},
{ID: `10577`},
{ID: `10580`},
{ID: `10583`},
{ID: `11024`},
{ID: `11030`},
{ID: `11568`},
{ID: `11724`},
{ID: `19035`},
{ID: `19041`},
{ID: `19085`},
{ID: `19807`},
{ID: `20198`},
{ID: `20854`},
{ID: `22066`},
{ID: `23219`},
{ID: `28207`},
{ID: `30326`},
{ID: `32963`},
{ID: `33480`},
{ID: `33786`},
{ID: `33921`},
{ID: `34102`},
{ID: `34108`},
{ID: `34228`},
{ID: `60022`},
{ID: `60043`},
{ID: `60045`},
{ID: `60093`},
{ID: `60521`},
{ID: `60606`},
{ID: `60611`},
{ID: `63124`},
{ID: `74103`},
{ID: `75205`},
{ID: `75225`},
{ID: `76102`},
{ID: `77002`},
{ID: `77024`},
{ID: `78257`},
{ID: `83014`},
{ID: `85253`},
{ID: `89451`},
{ID: `90067`},
{ID: `90077`},
{ID: `90210`},
{ID: `90212`},
{ID: `90272`},
{ID: `90402`},
{ID: `91436`},
{ID: `92067`},
{ID: `92091`},
{ID: `92657`},
{ID: `93108`},
{ID: `94022`},
{ID: `94027`},
{ID: `94028`},
{ID: `94062`},
{ID: `94111`},
{ID: `94301`},
{ID: `94304`},
{ID: `94920`},
{ID: `98039`}}},
}
// TableValueLookup may be used to validate a specific value.
var TableValueLookup = map[string]map[string]bool{
`0001`: {
`A`: true,
`F`: true,
`M`: true,
`N`: true,
`O`: true,
`U`: true},
`0002`: {
`A`: true,
`B`: true,
`C`: true,
`D`: true,
`E`: true,
`G`: true,
`I`: true,
`M`: true,
`N`: true,
`O`: true,
`P`: true,
`R`: true,
`S`: true,
`T`: true,
`U`: true,
`W`: true},
`0003`: {
`A01`: true,
`A02`: true,
`A03`: true,
`A04`: true,
`A05`: true,
`A06`: true,
`A07`: true,
`A08`: true,
`A09`: true,
`A10`: true,
`A11`: true,
`A12`: true,
`A13`: true,
`A14`: true,
`A15`: true,
`A16`: true,
`A17`: true,
`A18`: true,
`A19`: true,
`A20`: true,
`A21`: true,
`A22`: true,
`A23`: true,
`A24`: true,
`A25`: true,
`A26`: true,
`A27`: true,
`A28`: true,
`A29`: true,
`A30`: true,
`A31`: true,
`A32`: true,
`A33`: true,
`A34`: true,
`A35`: true,
`A36`: true,
`A37`: true,
`A38`: true,
`A39`: true,
`A40`: true,
`A41`: true,
`A42`: true,
`A43`: true,
`A44`: true,
`A45`: true,
`A46`: true,
`A47`: true,
`A48`: true,
`A49`: true,
`A50`: true,
`A51`: true,
`A52`: true,
`A53`: true,
`A54`: true,
`A55`: true,
`A60`: true,
`A61`: true,
`A62`: true,
`B01`: true,
`B02`: true,
`B03`: true,
`B04`: true,
`B05`: true,
`B06`: true,
`B07`: true,
`B08`: true,
`C01`: true,
`C02`: true,
`C03`: true,
`C04`: true,
`C05`: true,
`C06`: true,
`C07`: true,
`C08`: true,
`C09`: true,
`C10`: true,
`C11`: true,
`C12`: true,
`E01`: true,
`E02`: true,
`E03`: true,
`E04`: true,
`E10`: true,
`E12`: true,
`E13`: true,
`E15`: true,
`E20`: true,
`E21`: true,
`E22`: true,
`E24`: true,
`E30`: true,
`E31`: true,
`I01`: true,
`I02`: true,
`I03`: true,
`I04`: true,
`I05`: true,
`I06`: true,
`I07`: true,
`I08`: true,
`I09`: true,
`I10`: true,
`I11`: true,
`I12`: true,
`I13`: true,
`I14`: true,
`I15`: true,
`I16`: true,
`I17`: true,
`I18`: true,
`I19`: true,
`I20`: true,
`I21`: true,
`I22`: true,
`J01`: true,
`J02`: true,
`K11`: true,
`K13`: true,
`K15`: true,
`K21`: true,
`K22`: true,
`K23`: true,
`K24`: true,
`K25`: true,
`K31`: true,
`K32`: true,
`M01`: true,
`M02`: true,
`M03`: true,
`M04`: true,
`M05`: true,
`M06`: true,
`M07`: true,
`M08`: true,
`M09`: true,
`M10`: true,
`M11`: true,
`M12`: true,
`M13`: true,
`M14`: true,
`M15`: true,
`M16`: true,
`M17`: true,
`N01`: true,
`N02`: true,
`O01`: true,
`O02`: true,
`O03`: true,
`O04`: true,
`O05`: true,
`O06`: true,
`O07`: true,
`O08`: true,
`O09`: true,
`O10`: true,
`O11`: true,
`O12`: true,
`O13`: true,
`O14`: true,
`O15`: true,
`O16`: true,
`O17`: true,
`O18`: true,
`O19`: true,
`O20`: true,
`O21`: true,
`O22`: true,
`O23`: true,
`O24`: true,
`O25`: true,
`O26`: true,
`O27`: true,
`O28`: true,
`O29`: true,
`O30`: true,
`O31`: true,
`O32`: true,
`O33`: true,
`O34`: true,
`O35`: true,
`O36`: true,
`O37`: true,
`O38`: true,
`O39`: true,
`O40`: true,
`P01`: true,
`P02`: true,
`P03`: true,
`P04`: true,
`P05`: true,
`P06`: true,
`P07`: true,
`P08`: true,
`P09`: true,
`P10`: true,
`P11`: true,
`P12`: true,
`PC1`: true,
`PC2`: true,
`PC3`: true,
`PC4`: true,
`PC5`: true,
`PC6`: true,
`PC7`: true,
`PC8`: true,
`PC9`: true,
`PCA`: true,
`PCB`: true,
`PCC`: true,
`PCD`: true,
`PCE`: true,
`PCF`: true,
`PCG`: true,
`PCH`: true,
`PCJ`: true,
`PCK`: true,
`PCL`: true,
`Q01`: true,
`Q02`: true,
`Q03`: true,
`Q05`: true,
`Q06`: true,
`Q11`: true,
`Q13`: true,
`Q15`: true,
`Q16`: true,
`Q17`: true,
`Q21`: true,
`Q22`: true,
`Q23`: true,
`Q24`: true,
`Q25`: true,
`Q26`: true,
`Q27`: true,
`Q28`: true,
`Q29`: true,
`Q30`: true,
`Q31`: true,
`Q32`: true,
`R01`: true,
`R02`: true,
`R04`: true,
`R21`: true,
`R22`: true,
`R23`: true,
`R24`: true,
`R25`: true,
`R26`: true,
`R30`: true,
`R31`: true,
`R32`: true,
`R33`: true,
`ROR`: true,
`S01`: true,
`S02`: true,
`S03`: true,
`S04`: true,
`S05`: true,
`S06`: true,
`S07`: true,
`S08`: true,
`S09`: true,
`S10`: true,
`S11`: true,
`S12`: true,
`S13`: true,
`S14`: true,
`S15`: true,
`S16`: true,
`S17`: true,
`S18`: true,
`S19`: true,
`S20`: true,
`S21`: true,
`S22`: true,
`S23`: true,
`S24`: true,
`S25`: true,
`S26`: true,
`S27`: true,
`S28`: true,
`S29`: true,
`S30`: true,
`S31`: true,
`S32`: true,
`S33`: true,
`S34`: true,
`S35`: true,
`S36`: true,
`S37`: true,
`T01`: true,
`T02`: true,
`T03`: true,
`T04`: true,
`T05`: true,
`T06`: true,
`T07`: true,
`T08`: true,
`T09`: true,
`T10`: true,
`T11`: true,
`T12`: true,
`U01`: true,
`U02`: true,
`U03`: true,
`U04`: true,
`U05`: true,
`U06`: true,
`U07`: true,
`U08`: true,
`U09`: true,
`U10`: true,
`U11`: true,
`U12`: true,
`U13`: true,
`V01`: true,
`V02`: true,
`V03`: true,
`V04`: true,
`W01`: true,
`W02`: true,
`Z73`: true,
`Z74`: true,
`Z75`: true,
`Z76`: true,
`Z77`: true,
`Z78`: true,
`Z79`: true,
`Z80`: true,
`Z81`: true,
`Z82`: true,
`Z83`: true,
`Z84`: true,
`Z85`: true,
`Z86`: true,
`Z87`: true,
`Z88`: true,
`Z89`: true,
`Z90`: true,
`Z91`: true,
`Z92`: true,
`Z93`: true,
`Z94`: true,
`Z95`: true,
`Z96`: true,
`Z97`: true,
`Z98`: true,
`Z99`: true},
`0004`: {
`B`: true,
`C`: true,
`E`: true,
`I`: true,
`N`: true,
`O`: true,
`P`: true,
`R`: true,
`U`: true},
`0005`: {
`1002-5`: true,
`2028-9`: true,
`2054-5`: true,
`2076-8`: true,
`2106-3`: true,
`2131-1`: true},
`0006`: {
`ABC`: true,
`AGN`: true,
`AME`: true,
`AMT`: true,
`ANG`: true,
`AOG`: true,
`ATH`: true,
`BAH`: true,
`BAP`: true,
`BMA`: true,
`BOT`: true,
`BRE`: true,
`BTA`: true,
`BTH`: true,
`BUD`: true,
`CAT`: true,
`CFR`: true,
`CHR`: true,
`CHS`: true,
`CMA`: true,
`CNF`: true,
`COC`: true,
`COG`: true,
`COI`: true,
`COL`: true,
`COM`: true,
`COP`: true,
`COT`: true,
`CRR`: true,
`DOC`: true,
`EOT`: true,
`EPI`: true,
`ERL`: true,
`EVC`: true,
`FRQ`: true,
`FUL`: true,
`FWB`: true,
`GRE`: true,
`HIN`: true,
`HOT`: true,
`HSH`: true,
`HVA`: true,
`JAI`: true,
`JCO`: true,
`JEW`: true,
`JOR`: true,
`JOT`: true,
`JRC`: true,
`JRF`: true,
`JRN`: true,
`JWN`: true,
`LMS`: true,
`LUT`: true,
`MEN`: true,
`MET`: true,
`MOM`: true,
`MOS`: true,
`MOT`: true,
`MSH`: true,
`MSU`: true,
`NAM`: true,
`NAZ`: true,
`NOE`: true,
`NRL`: true,
`ORT`: true,
`OTH`: true,
`PEN`: true,
`PRC`: true,
`PRE`: true,
`PRO`: true,
`REC`: true,
`REO`: true,
`SAA`: true,
`SEV`: true,
`SHN`: true,
`SIK`: true,
`SOU`: true,
`SPI`: true,
`UCC`: true,
`UMD`: true,
`UNI`: true,
`UNU`: true,
`VAR`: true,
`WES`: true,
`WMC`: true},
`0007`: {
`A`: true,
`C`: true,
`E`: true,
`L`: true,
`N`: true,
`R`: true,
`U`: true},
`0008`: {
`AA`: true,
`AE`: true,
`AR`: true,
`CA`: true,
`CE`: true,
`CR`: true},
`0009`: {
`A0`: true,
`A1`: true,
`A2`: true,
`A3`: true,
`A4`: true,
`A5`: true,
`A6`: true,
`A7`: true,
`A8`: true,
`A9`: true,
`B1`: true,
`B2`: true,
`B3`: true,
`B4`: true,
`B5`: true,
`B6`: true},
`0010`: {},
`0017`: {
`AJ`: true,
`CD`: true,
`CG`: true,
`CO`: true,
`PY`: true},
`0018`: {},
`0019`: {},
`0021`: {},
`0022`: {},
`0023`: {},
`0024`: {},
`0027`: {
`A`: true,
`P`: true,
`R`: true,
`S`: true,
`T`: true},
`0032`: {},
`0038`: {
`A`: true,
`CA`: true,
`CM`: true,
`DC`: true,
`ER`: true,
`HD`: true,
`IP`: true,
`RP`: true,
`SC`: true},
`0042`: {},
`0043`: {},
`0044`: {},
`0045`: {},
`0046`: {},
`0049`: {},
`0050`: {},
`0051`: {},
`0052`: {
`A`: true,
`F`: true,
`W`: true},
`0055`: {},
`0056`: {},
`0059`: {},
`0061`: {
`BCV`: true,
`ISO`: true,
`M10`: true,
`M11`: true,
`NPI`: true},
`0062`: {
`01`: true,
`02`: true,
`03`: true,
`O`: true,
`U`: true},
`0063`: {
`ASC`: true,
`BRO`: true,
`CGV`: true,
`CHD`: true,
`DEP`: true,
`DOM`: true,
`EMC`: true,
`EME`: true,
`EMR`: true,
`EXF`: true,
`FCH`: true,
`FND`: true,
`FTH`: true,
`GCH`: true,
`GRD`: true,
`GRP`: true,
`MGR`: true,
`MTH`: true,
`NCH`: true,
`NON`: true,
`OAD`: true,
`OTH`: true,
`OWN`: true,
`PAR`: true,
`SCH`: true,
`SEL`: true,
`SIB`: true,
`SIS`: true,
`SPO`: true,
`TRA`: true,
`UNK`: true,
`WRD`: true},
`0064`: {},
`0065`: {
`A`: true,
`G`: true,
`L`: true,
`O`: true,
`P`: true,
`R`: true,
`S`: true},
`0066`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`6`: true,
`9`: true,
`C`: true,
`L`: true,
`O`: true,
`T`: true},
`0068`: {},
`0069`: {
`CAR`: true,
`MED`: true,
`PUL`: true,
`SUR`: true,
`URO`: true},
`0072`: {},
`0073`: {},
`0074`: {
`AU`: true,
`BG`: true,
`BLB`: true,
`CH`: true,
`CP`: true,
`CT`: true,
`CTH`: true,
`CUS`: true,
`EC`: true,
`EN`: true,
`HM`: true,
`ICU`: true,
`IMM`: true,
`LAB`: true,
`MB`: true,
`MCB`: true,
`MYC`: true,
`NMR`: true,
`NMS`: true,
`NRS`: true,
`OSL`: true,
`OT`: true,
`OTH`: true,
`OUS`: true,
`PF`: true,
`PHR`: true,
`PHY`: true,
`PT`: true,
`RAD`: true,
`RC`: true,
`RT`: true,
`RUS`: true,
`RX`: true,
`SP`: true,
`SR`: true,
`TX`: true,
`VR`: true,
`VUS`: true,
`XRC`: true},
`0076`: {
`ACK`: true,
`ADR`: true,
`ADT`: true,
`BAR`: true,
`BPS`: true,
`BRP`: true,
`BRT`: true,
`BTS`: true,
`CCF`: true,
`CCI`: true,
`CCM`: true,
`CCQ`: true,
`CCU`: true,
`CQU`: true,
`CRM`: true,
`CSU`: true,
`DFT`: true,
`DOC`: true,
`DSR`: true,
`EAC`: true,
`EAN`: true,
`EAR`: true,
`EHC`: true,
`ESR`: true,
`ESU`: true,
`INR`: true,
`INU`: true,
`LSR`: true,
`LSU`: true,
`MDM`: true,
`MFD`: true,
`MFK`: true,
`MFN`: true,
`MFQ`: true,
`MFR`: true,
`NMD`: true,
`NMQ`: true,
`NMR`: true,
`OMB`: true,
`OMD`: true,
`OMG`: true,
`OMI`: true,
`OML`: true,
`OMN`: true,
`OMP`: true,
`OMS`: true,
`OPL`: true,
`OPR`: true,
`OPU`: true,
`ORA`: true,
`ORB`: true,
`ORD`: true,
`ORF`: true,
`ORG`: true,
`ORI`: true,
`ORL`: true,
`ORM`: true,
`ORN`: true,
`ORP`: true,
`ORR`: true,
`ORS`: true,
`ORU`: true,
`OSM`: true,
`OSQ`: true,
`OSR`: true,
`OUL`: true,
`PEX`: true,
`PGL`: true,
`PIN`: true,
`PMU`: true,
`PPG`: true,
`PPP`: true,
`PPR`: true,
`PPT`: true,
`PPV`: true,
`PRR`: true,
`PTR`: true,
`QBP`: true,
`QCK`: true,
`QCN`: true,
`QRY`: true,
`QSB`: true,
`QSX`: true,
`QVR`: true,
`RAR`: true,
`RAS`: true,
`RCI`: true,
`RCL`: true,
`RDE`: true,
`RDR`: true,
`RDS`: true,
`RDY`: true,
`REF`: true,
`RER`: true,
`RGR`: true,
`RGV`: true,
`ROR`: true,
`RPA`: true,
`RPI`: true,
`RPL`: true,
`RPR`: true,
`RQA`: true,
`RQC`: true,
`RQI`: true,
`RQP`: true,
`RRA`: true,
`RRD`: true,
`RRE`: true,
`RRG`: true,
`RRI`: true,
`RSP`: true,
`RTB`: true,
`SCN`: true,
`SDN`: true,
`SDR`: true,
`SIU`: true,
`SLN`: true,
`SLR`: true,
`SMD`: true,
`SQM`: true,
`SQR`: true,
`SRM`: true,
`SRR`: true,
`SSR`: true,
`SSU`: true,
`STC`: true,
`STI`: true,
`SUR`: true,
`TBR`: true,
`TCR`: true,
`TCU`: true,
`UDM`: true,
`VXQ`: true,
`VXR`: true,
`VXU`: true,
`VXX`: true},
`0080`: {
`A`: true,
`B`: true,
`N`: true,
`R`: true,
`S`: true,
`SP`: true,
`ST`: true},
`0083`: {
`C`: true,
`D`: true},
`0084`: {},
`0085`: {
`C`: true,
`D`: true,
`F`: true,
`I`: true,
`N`: true,
`O`: true,
`P`: true,
`R`: true,
`S`: true,
`U`: true,
`W`: true,
`X`: true},
`0086`: {},
`0087`: {},
`0088`: {},
`0091`: {
`D`: true,
`I`: true},
`0092`: {
`R`: true},
`0093`: {
`N`: true,
`Y`: true},
`0098`: {
`M`: true,
`S`: true,
`U`: true},
`0099`: {},
`0100`: {
`D`: true,
`O`: true,
`R`: true,
`S`: true,
`T`: true},
`0103`: {
`D`: true,
`P`: true,
`T`: true},
`0104`: {
`2.0`: true,
`2.0D`: true,
`2.1`: true,
`2.2`: true,
`2.3`: true,
`2.3.1`: true,
`2.4`: true,
`2.5`: true,
`2.5.1`: true,
`2.6`: true,
`2.7`: true,
`2.7.1`: true,
`2.8`: true},
`0105`: {
`L`: true,
`O`: true,
`P`: true},
`0110`: {},
`0111`: {},
`0112`: {},
`0113`: {},
`0114`: {},
`0115`: {},
`0116`: {
`C`: true,
`H`: true,
`I`: true,
`K`: true,
`O`: true,
`U`: true},
`0117`: {},
`0118`: {},
`0119`: {
`AF`: true,
`CA`: true,
`CH`: true,
`CN`: true,
`CR`: true,
`DC`: true,
`DE`: true,
`DF`: true,
`DR`: true,
`FU`: true,
`HD`: true,
`HR`: true,
`LI`: true,
`MC`: true,
`NA`: true,
`NW`: true,
`OC`: true,
`OD`: true,
`OE`: true,
`OF`: true,
`OH`: true,
`OK`: true,
`OP`: true,
`OR`: true,
`PA`: true,
`PR`: true,
`PY`: true,
`RE`: true,
`RF`: true,
`RL`: true,
`RO`: true,
`RP`: true,
`RQ`: true,
`RR`: true,
`RU`: true,
`SC`: true,
`SN`: true,
`SR`: true,
`SS`: true,
`UA`: true,
`UC`: true,
`UD`: true,
`UF`: true,
`UH`: true,
`UM`: true,
`UN`: true,
`UR`: true,
`UX`: true,
`XO`: true,
`XR`: true,
`XX`: true},
`0121`: {
`D`: true,
`E`: true,
`F`: true,
`N`: true,
`R`: true},
`0122`: {
`CH`: true,
`CO`: true,
`CR`: true,
`DP`: true,
`GR`: true,
`NC`: true,
`PC`: true,
`RS`: true},
`0123`: {
`A`: true,
`C`: true,
`F`: true,
`I`: true,
`O`: true,
`P`: true,
`R`: true,
`S`: true,
`X`: true,
`Y`: true,
`Z`: true},
`0124`: {
`CART`: true,
`PORT`: true,
`WALK`: true,
`WHLC`: true},
`0125`: {
`AD`: true,
`CF`: true,
`CK`: true,
`CN`: true,
`CNE`: true,
`CP`: true,
`CWE`: true,
`CX`: true,
`DR`: true,
`DT`: true,
`DTM`: true,
`ED`: true,
`FT`: true,
`ID`: true,
`IS`: true,
`MA`: true,
`MO`: true,
`NA`: true,
`NM`: true,
`PN`: true,
`RP`: true,
`SN`: true,
`ST`: true,
`TM`: true,
`TN`: true,
`TX`: true,
`XAD`: true,
`XCN`: true,
`XON`: true,
`XPN`: true,
`XTN`: true},
`0127`: {
`AA`: true,
`DA`: true,
`EA`: true,
`FA`: true,
`LA`: true,
`MA`: true,
`MC`: true,
`PA`: true},
`0128`: {
`MI`: true,
`MO`: true,
`SV`: true,
`U`: true},
`0129`: {},
`0130`: {
`HO`: true,
`MO`: true,
`PH`: true,
`TE`: true},
`0131`: {
`C`: true,
`E`: true,
`F`: true,
`I`: true,
`N`: true,
`O`: true,
`S`: true,
`U`: true},
`0132`: {},
`0135`: {
`M`: true,
`N`: true,
`Y`: true},
`0136`: {
`N`: true,
`Y`: true},
`0137`: {
`E`: true,
`G`: true,
`I`: true,
`O`: true,
`P`: true},
`0139`: {},
`0140`: {
`AUSA`: true,
`AUSAF`: true,
`AUSN`: true,
`NATO`: true,
`NOAA`: true,
`USA`: true,
`USAF`: true,
`USCG`: true,
`USMC`: true,
`USN`: true,
`USPHS`: true},
`0141`: {
`E1... E9`: true,
`O1 ... O9`: true,
`W1 ... W4`: true},
`0142`: {
`ACT`: true,
`DEC`: true,
`RET`: true},
`0143`: {},
`0144`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`6`: true,
`7`: true},
`0145`: {
`2ICU`: true,
`2PRI`: true,
`2SPR`: true,
`ICU`: true,
`PRI`: true,
`SPR`: true},
`0146`: {
`DF`: true,
`LM`: true,
`PC`: true,
`RT`: true,
`UL`: true},
`0147`: {
`2ANC`: true,
`2MMD`: true,
`3MMD`: true,
`ANC`: true,
`MMD`: true},
`0148`: {
`AT`: true,
`PC`: true},
`0149`: {
`AP`: true,
`DE`: true,
`PE`: true},
`0150`: {
`ER`: true,
`IPE`: true,
`OPE`: true,
`UR`: true},
`0151`: {},
`0152`: {},
`0153`: {},
`0155`: {
`AL`: true,
`ER`: true,
`NE`: true,
`SU`: true},
`0159`: {
`D`: true,
`P`: true,
`S`: true},
`0160`: {
`EARLY`: true,
`GUEST`: true,
`LATE`: true,
`MSG`: true,
`NO`: true},
`0161`: {
`G`: true,
`N`: true,
`T`: true},
`0162`: {
`AP`: true,
`B`: true,
`DT`: true,
`EP`: true,
`ET`: true,
`GTT`: true,
`GU`: true,
`IA`: true,
`IB`: true,
`IC`: true,
`ICV`: true,
`ID`: true,
`IH`: true,
`IHA`: true,
`IM`: true,
`IMR`: true,
`IN`: true,
`IO`: true,
`IP`: true,
`IS`: true,
`IT`: true,
`IU`: true,
`IV`: true,
`MM`: true,
`MTH`: true,
`NG`: true,
`NP`: true,
`NS`: true,
`NT`: true,
`OP`: true,
`OT`: true,
`OTH`: true,
`PF`: true,
`PO`: true,
`PR`: true,
`RM`: true,
`SC`: true,
`SD`: true,
`SL`: true,
`TD`: true,
`TL`: true,
`TP`: true,
`TRA`: true,
`UR`: true,
`VG`: true,
`VM`: true,
`WND`: true},
`0163`: {
`BE`: true,
`BN`: true,
`BU`: true,
`CT`: true,
`LA`: true,
`LAC`: true,
`LACF`: true,
`LD`: true,
`LE`: true,
`LEJ`: true,
`LF`: true,
`LG`: true,
`LH`: true,
`LIJ`: true,
`LLAQ`: true,
`LLFA`: true,
`LMFA`: true,
`LN`: true,
`LPC`: true,
`LSC`: true,
`LT`: true,
`LUA`: true,
`LUAQ`: true,
`LUFA`: true,
`LVG`: true,
`LVL`: true,
`NB`: true,
`OD`: true,
`OS`: true,
`OU`: true,
`PA`: true,
`PERIN`: true,
`RA`: true,
`RAC`: true,
`RACF`: true,
`RD`: true,
`RE`: true,
`REJ`: true,
`RF`: true,
`RG`: true,
`RH`: true,
`RIJ`: true,
`RLAQ`: true,
`RLFA`: true,
`RMFA`: true,
`RN`: true,
`RPC`: true,
`RSC`: true,
`RT`: true,
`RUA`: true,
`RUAQ`: true,
`RUFA`: true,
`RVG`: true,
`RVL`: true},
`0164`: {
`AP`: true,
`BT`: true,
`HL`: true,
`IPPB`: true,
`IVP`: true,
`IVS`: true,
`MI`: true,
`NEB`: true,
`PCA`: true},
`0165`: {
`CH`: true,
`DI`: true,
`DU`: true,
`IF`: true,
`IR`: true,
`IS`: true,
`IVP`: true,
`IVPB`: true,
`NB`: true,
`PF`: true,
`PT`: true,
`SH`: true,
`SO`: true,
`WA`: true,
`WI`: true},
`0166`: {
`A`: true,
`B`: true},
`0167`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`7`: true,
`8`: true,
`G`: true,
`N`: true,
`T`: true},
`0168`: {
`A`: true,
`B`: true,
`C`: true,
`P`: true,
`R`: true,
`S`: true,
`T`: true},
`0169`: {
`C`: true,
`R`: true},
`0170`: {
`C`: true,
`N`: true,
`P`: true},
`0171`: {},
`0172`: {},
`0173`: {
`CO`: true,
`IN`: true},
`0174`: {
`A`: true,
`C`: true,
`F`: true,
`P`: true,
`S`: true},
`0175`: {
`CDM`: true,
`CLN`: true,
`CMA`: true,
`CMB`: true,
`INV`: true,
`LOC`: true,
`OMA`: true,
`OMB`: true,
`OMC`: true,
`OMD`: true,
`OME`: true,
`PRA`: true,
`STF`: true},
`0177`: {
`AID`: true,
`EMP`: true,
`ETH`: true,
`HIV`: true,
`PSY`: true,
`R`: true,
`U`: true,
`UWM`: true,
`V`: true,
`VIP`: true},
`0178`: {
`REP`: true,
`UPD`: true},
`0179`: {
`AL`: true,
`ER`: true,
`NE`: true,
`SU`: true},
`0180`: {
`MAC`: true,
`MAD`: true,
`MDC`: true,
`MDL`: true,
`MUP`: true},
`0181`: {
`S`: true,
`U`: true},
`0182`: {},
`0183`: {
`A`: true,
`I`: true},
`0184`: {},
`0185`: {
`B`: true,
`C`: true,
`E`: true,
`F`: true,
`H`: true,
`O`: true},
`0186`: {},
`0187`: {
`I`: true,
`P`: true},
`0188`: {},
`0189`: {
`H`: true,
`N`: true,
`U`: true},
`0190`: {
`B`: true,
`BA`: true,
`BDL`: true,
`BI`: true,
`BR`: true,
`C`: true,
`F`: true,
`H`: true,
`L`: true,
`M`: true,
`N`: true,
`O`: true,
`P`: true,
`RH`: true,
`S`: true,
`SH`: true,
`TM`: true,
`V`: true},
`0191`: {
`AP`: true,
`AU`: true,
`FT`: true,
`IM`: true,
`multipart`: true,
`NS`: true,
`SD`: true,
`SI`: true,
`TEXT`: true,
`TX`: true},
`0193`: {
`AT`: true,
`LM`: true,
`PC`: true,
`UL`: true},
`0200`: {
`A`: true,
`B`: true,
`BAD`: true,
`C`: true,
`D`: true,
`I`: true,
`K`: true,
`L`: true,
`M`: true,
`MSK`: true,
`N`: true,
`NAV`: true,
`NB`: true,
`NOUSE`: true,
`P`: true,
`R`: true,
`REL`: true,
`S`: true,
`T`: true,
`TEMP`: true,
`U`: true},
`0201`: {
`ASN`: true,
`BPN`: true,
`EMR`: true,
`NET`: true,
`ORN`: true,
`PRN`: true,
`PRS`: true,
`VHN`: true,
`WPN`: true},
`0202`: {
`BP`: true,
`CP`: true,
`FX`: true,
`Internet`: true,
`MD`: true,
`PH`: true,
`SAT`: true,
`TDD`: true,
`TTY`: true,
`X.400`: true},
`0203`: {
`ACSN`: true,
`AM`: true,
`AMA`: true,
`AN`: true,
`An Identifier for a provi`: true,
`ANC`: true,
`AND`: true,
`ANON`: true,
`ANT`: true,
`APRN`: true,
`ASID`: true,
`BA`: true,
`BC`: true,
`BCT`: true,
`BR`: true,
`BRN`: true,
`BSNR`: true,
`CC`: true,
`CONM`: true,
`CY`: true,
`CZ`: true,
`DDS`: true,
`DEA`: true,
`DFN`: true,
`DI`: true,
`DL`: true,
`DN`: true,
`DO`: true,
`DP`: true,
`DPM`: true,
`DR`: true,
`DS`: true,
`EI`: true,
`EN`: true,
`ESN`: true,
`FI`: true,
`GI`: true,
`GL`: true,
`GN`: true,
`HC`: true,
`IND`: true,
`JHN`: true,
`LACSN`: true,
`LANR`: true,
`LI`: true,
`LN`: true,
`LR`: true,
`MA`: true,
`MB`: true,
`MC`: true,
`MCD`: true,
`MCN`: true,
`MCR`: true,
`MCT`: true,
`MD`: true,
`MI`: true,
`MR`: true,
`MRT`: true,
`MS`: true,
`NBSNR`: true,
`NCT`: true,
`NE`: true,
`NH`: true,
`NI`: true,
`NII`: true,
`NIIP`: true,
`NNxxx`: true,
`NP`: true,
`NPI`: true,
`OD`: true,
`PA`: true,
`PC`: true,
`PCN`: true,
`PE`: true,
`PEN`: true,
`PI`: true,
`PN`: true,
`PNT`: true,
`PPIN`: true,
`PPN`: true,
`PRC`: true,
`PRN`: true,
`PT`: true,
`QA`: true,
`RI`: true,
`RN`: true,
`RPH`: true,
`RR`: true,
`RRI`: true,
`RRP`: true,
`SID`: true,
`SL`: true,
`SN`: true,
`SP`: true,
`SR`: true,
`SS`: true,
`TAX`: true,
`TN`: true,
`TPR`: true,
`U`: true,
`UPIN`: true,
`USID`: true,
`VN`: true,
`VP`: true,
`VS`: true,
`WC`: true,
`WCN`: true,
`WP`: true,
`XX`: true},
`0204`: {
`A`: true,
`D`: true,
`L`: true,
`SL`: true},
`0205`: {
`AP`: true,
`DC`: true,
`IC`: true,
`PF`: true,
`TF`: true,
`TP`: true,
`UP`: true},
`0206`: {
`A`: true,
`D`: true,
`U`: true,
`X`: true},
`0207`: {
`A`: true,
`I`: true,
`Not present`: true,
`R`: true,
`T`: true},
`0208`: {
`AE`: true,
`AR`: true,
`NF`: true,
`OK`: true},
`0211`: {
`8859/1`: true,
`8859/15`: true,
`8859/2`: true,
`8859/3`: true,
`8859/4`: true,
`8859/5`: true,
`8859/6`: true,
`8859/7`: true,
`8859/8`: true,
`8859/9`: true,
`ASCII`: true,
`BIG-5`: true,
`CNS 11643-1992`: true,
`GB 18030-2000`: true,
`ISO IR14`: true,
`ISO IR159`: true,
`ISO IR6`: true,
`ISO IR87`: true,
`KS X 1001`: true,
`UNICODE`: true,
`UNICODE UTF-16`: true,
`UNICODE UTF-32`: true,
`UNICODE UTF-8`: true},
`0212`: {},
`0213`: {
`D`: true,
`I`: true,
`P`: true},
`0214`: {
`CH`: true,
`ES`: true,
`FP`: true,
`O`: true,
`U`: true},
`0215`: {
`F`: true,
`N`: true,
`O`: true,
`U`: true},
`0216`: {
`AI`: true,
`DI`: true},
`0217`: {
`1`: true,
`2`: true,
`3`: true},
`0218`: {},
`0219`: {},
`0220`: {
`A`: true,
`F`: true,
`I`: true,
`R`: true,
`S`: true,
`U`: true},
`0222`: {},
`0223`: {
`C`: true,
`M`: true,
`O`: true,
`S`: true,
`U`: true},
`0224`: {
`A`: true,
`N`: true,
`U`: true},
`0225`: {
`N`: true,
`R`: true,
`U`: true},
`0227`: {
`AB`: true,
`AD`: true,
`ALP`: true,
`AR`: true,
`AVB`: true,
`AVI`: true,
`BA`: true,
`BAH`: true,
`BAY`: true,
`BP`: true,
`BPC`: true,
`CEN`: true,
`CHI`: true,
`CMP`: true,
`CNJ`: true,
`CON`: true,
`DVC`: true,
`EVN`: true,
`GEO`: true,
`GRE`: true,
`IAG`: true,
`IM`: true,
`IUS`: true,
`JPN`: true,
`KGC`: true,
`LED`: true,
`MA`: true,
`MBL`: true,
`MED`: true,
`MIL`: true,
`MIP`: true,
`MSD`: true,
`NAB`: true,
`NAV`: true,
`NOV`: true,
`NVX`: true,
`NYB`: true,
`ORT`: true,
`OTC`: true,
`OTH`: true,
`PD`: true,
`PMC`: true,
`PRX`: true,
`PWJ`: true,
`SCL`: true,
`SI`: true,
`SKB`: true,
`SOL`: true,
`TAL`: true,
`UNK`: true,
`USA`: true,
`VXG`: true,
`WA`: true,
`WAL`: true,
`ZLB`: true},
`0228`: {
`C`: true,
`D`: true,
`I`: true,
`M`: true,
`O`: true,
`R`: true,
`S`: true,
`T`: true},
`0229`: {
`C`: true,
`G`: true,
`M`: true},
`0230`: {
`A`: true,
`D`: true,
`I`: true,
`P`: true},
`0231`: {
`F`: true,
`N`: true,
`P`: true},
`0232`: {
`01`: true,
`02`: true,
`03`: true},
`0233`: {},
`0234`: {
`10D`: true,
`15D`: true,
`30D`: true,
`3D`: true,
`7D`: true,
`AD`: true,
`CO`: true,
`DE`: true,
`PD`: true,
`RQ`: true},
`0235`: {
`C`: true,
`D`: true,
`E`: true,
`H`: true,
`L`: true,
`M`: true,
`N`: true,
`O`: true,
`P`: true,
`R`: true},
`0236`: {
`D`: true,
`L`: true,
`M`: true,
`R`: true},
`0237`: {
`A`: true,
`B`: true,
`D`: true,
`I`: true,
`L`: true,
`M`: true,
`O`: true,
`W`: true},
`0238`: {
`N`: true,
`S`: true,
`Y`: true},
`0239`: {
`N`: true,
`U`: true,
`Y`: true},
`0240`: {
`C`: true,
`D`: true,
`H`: true,
`I`: true,
`J`: true,
`L`: true,
`O`: true,
`P`: true,
`R`: true},
`0241`: {
`D`: true,
`F`: true,
`N`: true,
`R`: true,
`S`: true,
`U`: true,
`W`: true},
`0242`: {
`C`: true,
`H`: true,
`L`: true,
`M`: true,
`O`: true,
`P`: true,
`R`: true},
`0243`: {
`N`: true,
`NA`: true,
`Y`: true},
`0244`: {},
`0245`: {},
`0246`: {},
`0247`: {
`A`: true,
`C`: true,
`D`: true,
`I`: true,
`K`: true,
`O`: true,
`P`: true,
`Q`: true,
`R`: true,
`U`: true,
`X`: true,
`Y`: true},
`0248`: {
`A`: true,
`L`: true,
`N`: true,
`R`: true},
`0249`: {},
`0250`: {
`H`: true,
`I`: true,
`M`: true,
`N`: true,
`S`: true},
`0251`: {
`DI`: true,
`DR`: true,
`N`: true,
`OT`: true,
`WP`: true,
`WT`: true},
`0252`: {
`AW`: true,
`BE`: true,
`DR`: true,
`EX`: true,
`IN`: true,
`LI`: true,
`OE`: true,
`OT`: true,
`PL`: true,
`SE`: true,
`TC`: true},
`0253`: {
`B`: true,
`F`: true,
`O`: true,
`P`: true,
`X`: true},
`0254`: {
`ABS`: true,
`ACNC`: true,
`ACT`: true,
`APER`: true,
`ARB`: true,
`AREA`: true,
`ASPECT`: true,
`CACT`: true,
`CCNT`: true,
`CCRTO`: true,
`CFR`: true,
`CLAS`: true,
`CNC`: true,
`CNST`: true,
`COEF`: true,
`COLOR`: true,
`CONS`: true,
`CRAT`: true,
`CRTO`: true,
`DEN`: true,
`DEV`: true,
`DIFF`: true,
`ELAS`: true,
`ELPOT`: true,
`ELRAT`: true,
`ELRES`: true,
`ENGR`: true,
`ENT`: true,
`ENTCAT`: true,
`ENTNUM`: true,
`ENTSUB`: true,
`ENTVOL`: true,
`EQL`: true,
`FORCE`: true,
`FREQ`: true,
`IMP`: true,
`KINV`: true,
`LEN`: true,
`LINC`: true,
`LIQ`: true,
`MASS`: true,
`MCNC`: true,
`MCNT`: true,
`MCRTO`: true,
`MFR`: true,
`MGFLUX`: true,
`MINC`: true,
`MORPH`: true,
`MOTIL`: true,
`MRAT`: true,
`MRTO`: true,
`NCNC`: true,
`NCNT`: true,
`NFR`: true,
`NRTO`: true,
`NUM`: true,
`OD`: true,
`OSMOL`: true,
`PRES`: true,
`PRID`: true,
`PWR`: true,
`RANGE`: true,
`RATIO`: true,
`RCRLTM`: true,
`RDEN`: true,
`REL`: true,
`RLMCNC`: true,
`RLSCNC`: true,
`RLTM`: true,
`SATFR`: true,
`SCNC`: true,
`SCNCIN`: true,
`SCNT`: true,
`SCNTR`: true,
`SCRTO`: true,
`SFR`: true,
`SHAPE`: true,
`SMELL`: true,
`SRAT`: true,
`SRTO`: true,
`SUB`: true,
`SUSC`: true,
`TASTE`: true,
`TEMP`: true,
`TEMPDF`: true,
`TEMPIN`: true,
`THRMCNC`: true,
`THRSCNC`: true,
`TIME`: true,
`TITR`: true,
`TMDF`: true,
`TMSTP`: true,
`TRTO`: true,
`TYPE`: true,
`VCNT`: true,
`VEL`: true,
`VELRT`: true,
`VFR`: true,
`VISC`: true,
`VOL`: true,
`VRAT`: true,
`VRTO`: true},
`0255`: {
`*`: true,
`12H`: true,
`1H`: true,
`1L`: true,
`1W`: true,
`2.5H`: true,
`24H`: true,
`2D`: true,
`2H`: true,
`2L`: true,
`2W`: true,
`30M`: true,
`3D`: true,
`3H`: true,
`3L`: true,
`3W`: true,
`4D`: true,
`4H`: true,
`4W`: true,
`5D`: true,
`5H`: true,
`6D`: true,
`6H`: true,
`7H`: true,
`8H`: true,
`PT`: true},
`0258`: {
`BPU`: true,
`CONTROL`: true,
`DONOR`: true,
`PATIENT`: true},
`0260`: {
`B`: true,
`C`: true,
`D`: true,
`E`: true,
`L`: true,
`N`: true,
`O`: true,
`R`: true},
`0261`: {
`EEG`: true,
`EKG`: true,
`INF`: true,
`IVP`: true,
`OXY`: true,
`SUC`: true,
`VEN`: true,
`VIT`: true},
`0264`: {},
`0265`: {
`ALC`: true,
`AMB`: true,
`CAN`: true,
`CAR`: true,
`CCR`: true,
`CHI`: true,
`EDI`: true,
`EMR`: true,
`FPC`: true,
`INT`: true,
`ISO`: true,
`NAT`: true,
`NBI`: true,
`OBG`: true,
`OBS`: true,
`OTH`: true,
`PED`: true,
`PHY`: true,
`PIN`: true,
`PPS`: true,
`PRE`: true,
`PSI`: true,
`PSY`: true,
`REH`: true,
`SUR`: true,
`WIC`: true},
`0267`: {
`FRI`: true,
`MON`: true,
`SAT`: true,
`SUN`: true,
`THU`: true,
`TUE`: true,
`WED`: true},
`0268`: {
`A`: true,
`R`: true,
`X`: true},
`0269`: {
`O`: true,
`R`: true},
`0270`: {
`AR`: true,
`CD`: true,
`CN`: true,
`DI`: true,
`DS`: true,
`ED`: true,
`HP`: true,
`OP`: true,
`PC`: true,
`PH`: true,
`PN`: true,
`PR`: true,
`SP`: true,
`TS`: true},
`0271`: {
`AU`: true,
`DI`: true,
`DO`: true,
`IN`: true,
`IP`: true,
`LA`: true,
`PA`: true},
`0272`: {
`R`: true,
`U`: true,
`V`: true},
`0273`: {
`AV`: true,
`CA`: true,
`OB`: true,
`UN`: true},
`0275`: {
`AA`: true,
`AC`: true,
`AR`: true,
`PU`: true},
`0276`: {
`CHECKUP`: true,
`EMERGENCY`: true,
`FOLLOWUP`: true,
`ROUTINE`: true,
`WALKIN`: true},
`0277`: {
`Complete`: true,
`Normal`: true,
`Tentative`: true},
`0278`: {
`Blocked`: true,
`Booked`: true,
`Cancelled`: true,
`Complete`: true,
`Dc`: true,
`Deleted`: true,
`Noshow`: true,
`Overbook`: true,
`Pending`: true,
`Started`: true,
`Waitlist`: true},
`0279`: {
`Confirm`: true,
`No`: true,
`Notify`: true,
`Yes`: true},
`0280`: {
`A`: true,
`R`: true,
`S`: true},
`0281`: {
`Hom`: true,
`Lab`: true,
`Med`: true,
`Psy`: true,
`Rad`: true,
`Skn`: true},
`0282`: {
`AM`: true,
`RP`: true,
`SO`: true,
`WR`: true},
`0283`: {
`A`: true,
`E`: true,
`P`: true,
`R`: true},
`0284`: {
`A`: true,
`E`: true,
`I`: true,
`O`: true},
`0285`: {},
`0286`: {
`CP`: true,
`PP`: true,
`RP`: true,
`RT`: true},
`0287`: {
`AD`: true,
`CO`: true,
`DE`: true,
`LI`: true,
`UC`: true,
`UN`: true,
`UP`: true},
`0288`: {},
`0289`: {},
`0291`: {
`x-hl7-cda-level-one`: true},
`0292`: {
`01`: true,
`02`: true,
`03`: true,
`04`: true,
`05`: true,
`06`: true,
`07`: true,
`08`: true,
`09`: true,
`10`: true,
`100`: true,
`101`: true,
`102`: true,
`103`: true,
`104`: true,
`105`: true,
`106`: true,
`107`: true,
`108`: true,
`109`: true,
`11`: true,
`110`: true,
`111`: true,
`112`: true,
`113`: true,
`114`: true,
`115`: true,
`116`: true,
`117`: true,
`118`: true,
`119`: true,
`12`: true,
`120`: true,
`121`: true,
`122`: true,
`13`: true,
`14`: true,
`15`: true,
`16`: true,
`17`: true,
`18`: true,
`19`: true,
`20`: true,
`21`: true,
`22`: true,
`23`: true,
`24`: true,
`25`: true,
`26`: true,
`27`: true,
`28`: true,
`29`: true,
`30`: true,
`31`: true,
`32`: true,
`33`: true,
`34`: true,
`35`: true,
`36`: true,
`37`: true,
`38`: true,
`39`: true,
`40`: true,
`41`: true,
`42`: true,
`43`: true,
`44`: true,
`45`: true,
`46`: true,
`47`: true,
`48`: true,
`49`: true,
`50`: true,
`51`: true,
`52`: true,
`53`: true,
`54`: true,
`55`: true,
`56`: true,
`57`: true,
`58`: true,
`59`: true,
`60`: true,
`61`: true,
`62`: true,
`63`: true,
`64`: true,
`65`: true,
`66`: true,
`67`: true,
`68`: true,
`69`: true,
`70`: true,
`71`: true,
`72`: true,
`73`: true,
`74`: true,
`75`: true,
`76`: true,
`77`: true,
`78`: true,
`79`: true,
`80`: true,
`81`: true,
`82`: true,
`83`: true,
`84`: true,
`85`: true,
`86`: true,
`87`: true,
`88`: true,
`89`: true,
`90`: true,
`91`: true,
`92`: true,
`93`: true,
`94`: true,
`95`: true,
`96`: true,
`97`: true,
`98`: true,
`99`: true,
`998`: true,
`999`: true},
`0293`: {},
`0294`: {
`Fri`: true,
`Mon`: true,
`Prefend`: true,
`Prefstart`: true,
`Sat`: true,
`Sun`: true,
`Thu`: true,
`Tue`: true,
`Wed`: true},
`0295`: {},
`0296`: {},
`0297`: {},
`0298`: {
`F`: true,
`P`: true},
`0299`: {
`A`: true,
`Base64`: true,
`Hex`: true},
`0300`: {},
`0301`: {
`CLIA`: true,
`CLIP`: true,
`DNS`: true,
`EUI64`: true,
`GUID`: true,
`HCD`: true,
`HL7`: true,
`ISO`: true,
`L,M,N`: true,
`Random`: true,
`URI`: true,
`UUID`: true,
`x400`: true,
`x500`: true},
`0302`: {},
`0303`: {},
`0304`: {},
`0305`: {
`C`: true,
`D`: true,
`H`: true,
`N`: true,
`O`: true,
`P`: true,
`S`: true},
`0306`: {},
`0307`: {},
`0308`: {},
`0309`: {
`B`: true,
`H`: true,
`P`: true,
`RX`: true},
`0311`: {
`O`: true,
`P`: true,
`T`: true,
`U`: true},
`0312`: {},
`0313`: {},
`0315`: {
`F`: true,
`I`: true,
`N`: true,
`U`: true,
`Y`: true},
`0316`: {
`F`: true,
`I`: true,
`N`: true,
`P`: true,
`R`: true,
`U`: true,
`Y`: true},
`0319`: {},
`0320`: {},
`0321`: {
`AD`: true,
`F`: true,
`TR`: true,
`UD`: true},
`0322`: {
`CP`: true,
`NA`: true,
`PA`: true,
`RE`: true},
`0324`: {
`GEN`: true,
`IMP`: true,
`INF`: true,
`LCR`: true,
`LIC`: true,
`OVR`: true,
`PRL`: true,
`SET`: true,
`SHA`: true,
`SMK`: true,
`STF`: true,
`TEA`: true},
`0325`: {
`ALI`: true,
`DTY`: true,
`LAB`: true,
`LB2`: true,
`PAR`: true,
`RX`: true,
`RX2`: true},
`0326`: {
`A`: true,
`V`: true},
`0327`: {},
`0328`: {},
`0332`: {
`A`: true,
`I`: true},
`0333`: {},
`0334`: {
`AP`: true,
`GT`: true,
`IN`: true,
`PT`: true},
`0335`: {
`A`: true,
`BID`: true,
`C`: true,
`D`: true,
`I`: true,
`M`: true,
`Meal Related Timings`: true,
`Once`: true,
`P`: true,
`PRN`: true,
`PRNxxx`: true,
`Q<integer>D`: true,
`Q<integer>H`: true,
`Q<integer>J<day#>`: true,
`Q<integer>L`: true,
`Q<integer>M`: true,
`Q<integer>S`: true,
`Q<integer>W`: true,
`QAM`: true,
`QHS`: true,
`QID`: true,
`QOD`: true,
`QPM`: true,
`QSHIFT`: true,
`TID`: true,
`U <spec>`: true,
`V`: true,
`xID`: true},
`0336`: {
`O`: true,
`P`: true,
`S`: true,
`W`: true},
`0337`: {
`C`: true,
`E`: true},
`0338`: {
`CY`: true,
`DEA`: true,
`GL`: true,
`L&I`: true,
`LI`: true,
`MCD`: true,
`MCR`: true,
`QA`: true,
`SL`: true,
`TAX`: true,
`TRL`: true,
`UPIN`: true},
`0339`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true},
`0340`: {},
`0341`: {},
`0342`: {},
`0343`: {},
`0344`: {
`01`: true,
`02`: true,
`03`: true,
`04`: true,
`05`: true,
`06`: true,
`07`: true,
`08`: true,
`09`: true,
`10`: true,
`11`: true,
`12`: true,
`13`: true,
`14`: true,
`15`: true,
`16`: true,
`17`: true,
`18`: true,
`19`: true},
`0345`: {},
`0346`: {},
`0347`: {},
`0350`: {},
`0351`: {},
`0354`: {
`ACK`: true,
`ADR_A19`: true,
`ADT_A01`: true,
`ADT_A02`: true,
`ADT_A03`: true,
`ADT_A05`: true,
`ADT_A06`: true,
`ADT_A09`: true,
`ADT_A12`: true,
`ADT_A15`: true,
`ADT_A16`: true,
`ADT_A17`: true,
`ADT_A18`: true,
`ADT_A20`: true,
`ADT_A21`: true,
`ADT_A24`: true,
`ADT_A30`: true,
`ADT_A37`: true,
`ADT_A38`: true,
`ADT_A39`: true,
`ADT_A43`: true,
`ADT_A44`: true,
`ADT_A45`: true,
`ADT_A50`: true,
`ADT_A52`: true,
`ADT_A54`: true,
`ADT_A60`: true,
`ADT_A61`: true,
`BAR_P01`: true,
`BAR_P02`: true,
`BAR_P05`: true,
`BAR_P06`: true,
`BAR_P10`: true,
`BAR_P12`: true,
`BPS_O29`: true,
`BRP_O30`: true,
`BRT_O32`: true,
`BTS_O31`: true,
`CCF_I22`: true,
`CCI_I22`: true,
`CCM_I21`: true,
`CCQ_I19`: true,
`CCR_I16`: true,
`CCU_I20`: true,
`CQU_I19`: true,
`CRM_C01`: true,
`CSU_C09`: true,
`DFT_P03`: true,
`DFT_P11`: true,
`DOC_T12`: true,
`EAC_U07`: true,
`EAN_U09`: true,
`EAR_U08`: true,
`EHC_E01`: true,
`EHC_E02`: true,
`EHC_E04`: true,
`EHC_E10`: true,
`EHC_E12`: true,
`EHC_E13`: true,
`EHC_E15`: true,
`EHC_E20`: true,
`EHC_E21`: true,
`EHC_E24`: true,
`ESR_U02`: true,
`ESU_U01`: true,
`INR_U06`: true,
`INU_U05`: true,
`LSU_U12`: true,
`MDM_T01`: true,
`MDM_T02`: true,
`MFK_M01`: true,
`MFN_M01`: true,
`MFN_M02`: true,
`MFN_M03`: true,
`MFN_M04`: true,
`MFN_M05`: true,
`MFN_M06`: true,
`MFN_M07`: true,
`MFN_M08`: true,
`MFN_M09`: true,
`MFN_M10`: true,
`MFN_M11`: true,
`MFN_M12`: true,
`MFN_M13`: true,
`MFN_M15`: true,
`MFN_M16`: true,
`MFN_M17`: true,
`MFN_Znn`: true,
`MFQ_M01`: true,
`MFR_M01`: true,
`MFR_M04`: true,
`MFR_M05`: true,
`MFR_M06`: true,
`MFR_M07`: true,
`NMD_N02`: true,
`NMQ_N01`: true,
`NMR_N01`: true,
`OMB_O27`: true,
`OMD_O03`: true,
`OMG_O19`: true,
`OMI_O23`: true,
`OML_O21`: true,
`OML_O33`: true,
`OML_O35`: true,
`OML_O39`: true,
`OMN_O07`: true,
`OMP_O09`: true,
`OMS_O05`: true,
`OPL_O37`: true,
`OPR_O38`: true,
`OPU_R25`: true,
`ORA_R33`: true,
`ORB_O28`: true,
`ORD_O04`: true,
`ORF_R04`: true,
`ORG_O20`: true,
`ORI_O24`: true,
`ORL_O22`: true,
`ORL_O34`: true,
`ORL_O36`: true,
`ORL_O40`: true,
`ORM_O01`: true,
`ORN_O08`: true,
`ORP_O10`: true,
`ORR_O02`: true,
`ORS_O06`: true,
`ORU_R01`: true,
`ORU_R30`: true,
`ORU_W01`: true,
`OSM_R26`: true,
`OSQ_Q06`: true,
`OSR_Q06`: true,
`OUL_R21`: true,
`OUL_R22`: true,
`OUL_R23`: true,
`OUL_R24`: true,
`PEX_P07`: true,
`PGL_PC6`: true,
`PMU_B01`: true,
`PMU_B03`: true,
`PMU_B04`: true,
`PMU_B07`: true,
`PMU_B08`: true,
`PPG_PCG`: true,
`PPP_PCB`: true,
`PPR_PC1`: true,
`PPT_PCL`: true,
`PPV_PCA`: true,
`PRR_PC5`: true,
`PTR_PCF`: true,
`QBP_E03`: true,
`QBP_E22`: true,
`QBP_Q11`: true,
`QBP_Q13`: true,
`QBP_Q15`: true,
`QBP_Q21`: true,
`QBP_Qnn`: true,
`QBP_Z73`: true,
`QCK_Q02`: true,
`QCN_J01`: true,
`QRF_W02`: true,
`QRY_A19`: true,
`QRY_PC4`: true,
`QRY_Q01`: true,
`QRY_Q02`: true,
`QRY_R02`: true,
`QRY_T12`: true,
`QSB_Q16`: true,
`QVR_Q17`: true,
`RAR_RAR`: true,
`RAS_O17`: true,
`RCI_I05`: true,
`RCL_I06`: true,
`RDE_O11`: true,
`RDR_RDR`: true,
`RDS_O13`: true,
`RDY_K15`: true,
`REF_I12`: true,
`RER_RER`: true,
`RGR_RGR`: true,
`RGV_O15`: true,
`ROR_ROR`: true,
`RPA_I08`: true,
`RPI_I01`: true,
`RPI_I04`: true,
`RPL_I02`: true,
`RPR_I03`: true,
`RQA_I08`: true,
`RQC_I05`: true,
`RQI_I01`: true,
`RQP_I04`: true,
`RRA_O18`: true,
`RRD_O14`: true,
`RRE_O12`: true,
`RRG_O16`: true,
`RRI_I12`: true,
`RSP_E03`: true,
`RSP_E22`: true,
`RSP_K11`: true,
`RSP_K21`: true,
`RSP_K22`: true,
`RSP_K23`: true,
`RSP_K25`: true,
`RSP_K31`: true,
`RSP_K32`: true,
`RSP_Q11`: true,
`RSP_Z82`: true,
`RSP_Z86`: true,
`RSP_Z88`: true,
`RSP_Z90`: true,
`RTB_K13`: true,
`RTB_Knn`: true,
`RTB_Z74`: true,
`SDR_S31`: true,
`SDR_S32`: true,
`SIU_S12`: true,
`SLR_S28`: true,
`SQM_S25`: true,
`SQR_S25`: true,
`SRM_S01`: true,
`SRR_S01`: true,
`SSR_U04`: true,
`SSU_U03`: true,
`STC_S33`: true,
`SUR_P09`: true,
`TCU_U10`: true,
`UDM_Q05`: true,
`VXQ_V01`: true,
`VXR_V03`: true,
`VXU_V04`: true,
`VXX_V02`: true},
`0355`: {
`CE`: true,
`CWE`: true,
`PL`: true},
`0356`: {
`<null>`: true,
`2.3`: true,
`ISO 2022-1994`: true},
`0357`: {
`0`: true,
`100`: true,
`101`: true,
`102`: true,
`103`: true,
`104`: true,
`200`: true,
`201`: true,
`202`: true,
`203`: true,
`204`: true,
`205`: true,
`206`: true,
`207`: true},
`0358`: {},
`0359`: {
`0`: true,
`1`: true,
`2`: true},
`0360`: {
`AA`: true,
`AAS`: true,
`ABA`: true,
`AE`: true,
`AS`: true,
`BA`: true,
`BBA`: true,
`BE`: true,
`BFA`: true,
`BN`: true,
`BS`: true,
`BSL`: true,
`BSN`: true,
`BT`: true,
`CANP`: true,
`CER`: true,
`CMA`: true,
`CNM`: true,
`CNP`: true,
`CNS`: true,
`CPNP`: true,
`CRN`: true,
`DBA`: true,
`DED`: true,
`DIP`: true,
`DO`: true,
`EMT`: true,
`EMTP`: true,
`FPNP`: true,
`HS`: true,
`JD`: true,
`MA`: true,
`MBA`: true,
`MCE`: true,
`MD`: true,
`MDA`: true,
`MDI`: true,
`ME`: true,
`MED`: true,
`MEE`: true,
`MFA`: true,
`MME`: true,
`MS`: true,
`MSL`: true,
`MSN`: true,
`MT`: true,
`MTH`: true,
`NG`: true,
`NP`: true,
`PA`: true,
`PharmD`: true,
`PHD`: true,
`PHE`: true,
`PHS`: true,
`PN`: true,
`RMA`: true,
`RN`: true,
`RPH`: true,
`SEC`: true,
`TS`: true},
`0361`: {},
`0362`: {},
`0363`: {},
`0364`: {
`1R`: true,
`2R`: true,
`AI`: true,
`DR`: true,
`GI`: true,
`GR`: true,
`PI`: true,
`RE`: true},
`0365`: {
`CL`: true,
`CO`: true,
`ES`: true,
`ID`: true,
`IN`: true,
`OP`: true,
`PA`: true,
`PD`: true,
`PU`: true},
`0366`: {
`L`: true,
`R`: true},
`0367`: {
`C`: true,
`N`: true,
`S`: true,
`W`: true},
`0368`: {
`AB`: true,
`CL`: true,
`CN`: true,
`DI`: true,
`EN`: true,
`ES`: true,
`EX`: true,
`IN`: true,
`LC`: true,
`LK`: true,
`LO`: true,
`PA`: true,
`RC`: true,
`RE`: true,
`SA`: true,
`SU`: true,
`TT`: true,
`UC`: true,
`UN`: true},
`0369`: {
`B`: true,
`C`: true,
`E`: true,
`F`: true,
`G`: true,
`L`: true,
`O`: true,
`P`: true,
`Q`: true,
`R`: true,
`V`: true},
`0370`: {
`I`: true,
`L`: true,
`M`: true,
`O`: true,
`P`: true,
`R`: true,
`U`: true,
`X`: true},
`0371`: {
`ACDA`: true,
`ACDB`: true,
`ACET`: true,
`AMIES`: true,
`BACTM`: true,
`BF10`: true,
`BOR`: true,
`BOUIN`: true,
`BSKM`: true,
`C32`: true,
`C38`: true,
`CARS`: true,
`CARY`: true,
`CHLTM`: true,
`CTAD`: true,
`EDTK`: true,
`EDTK15`: true,
`EDTK75`: true,
`EDTN`: true,
`ENT`: true,
`ENT+`: true,
`F10`: true,
`FDP`: true,
`FL10`: true,
`FL100`: true,
`HCL6`: true,
`HEPA`: true,
`HEPL`: true,
`HEPN`: true,
`HNO3`: true,
`JKM`: true,
`KARN`: true,
`KOX`: true,
`LIA`: true,
`M4`: true,
`M4RT`: true,
`M5`: true,
`MICHTM`: true,
`MMDTM`: true,
`NAF`: true,
`NAPS`: true,
`NONE`: true,
`PAGE`: true,
`PHENOL`: true,
`PVA`: true,
`RLM`: true,
`SILICA`: true,
`SPS`: true,
`SST`: true,
`STUTM`: true,
`THROM`: true,
`THYMOL`: true,
`THYO`: true,
`TOLU`: true,
`URETM`: true,
`VIRTM`: true,
`WEST`: true},
`0372`: {
`BLD`: true,
`BSEP`: true,
`PLAS`: true,
`PPP`: true,
`PRP`: true,
`SED`: true,
`SER`: true,
`SUP`: true},
`0373`: {
`ACID`: true,
`ALK`: true,
`DEFB`: true,
`FILT`: true,
`LDLP`: true,
`NEUT`: true,
`RECA`: true,
`UFIL`: true},
`0374`: {
`CNTM`: true},
`0375`: {
`FLUR`: true,
`SFHB`: true},
`0376`: {
`AMB`: true,
`C37`: true,
`CAMB`: true,
`CATM`: true,
`CFRZ`: true,
`CREF`: true,
`DFRZ`: true,
`DRY`: true,
`FRZ`: true,
`MTLF`: true,
`NTR`: true,
`PRTL`: true,
`PSA`: true,
`PSO`: true,
`REF`: true,
`UFRZ`: true,
`UPR`: true},
`0377`: {
`A60`: true,
`ATM`: true},
`0378`: {},
`0379`: {},
`0380`: {},
`0381`: {},
`0382`: {},
`0383`: {
`CE`: true,
`CW`: true,
`EE`: true,
`EW`: true,
`NE`: true,
`NW`: true,
`OE`: true,
`OK`: true,
`OW`: true,
`QE`: true,
`QW`: true},
`0384`: {
`CO`: true,
`DI`: true,
`LI`: true,
`LW`: true,
`MR`: true,
`OT`: true,
`PT`: true,
`PW`: true,
`RC`: true,
`SC`: true,
`SR`: true,
`SW`: true},
`0385`: {},
`0386`: {},
`0387`: {
`ER`: true,
`OK`: true,
`ST`: true,
`TI`: true,
`UN`: true},
`0388`: {
`E`: true,
`P`: true},
`0389`: {
`D`: true,
`F`: true,
`O`: true,
`R`: true},
`0391`: {
`ADMINISTRATION`: true,
`ALLERGY`: true,
`APP_STATS`: true,
`APP_STATUS`: true,
`ASSOCIATED_PERSON`: true,
`ASSOCIATED_RX_ADMIN`: true,
`ASSOCIATED_RX_ORDER`: true,
`AUTHORIZATION`: true,
`AUTHORIZATION_CONTACT`: true,
`CERTIFICATE`: true,
`CLOCK`: true,
`CLOCK_AND_STATISTICS`: true,
`CLOCK_AND_STATS_WITH_NOTE`: true,
`COMMAND`: true,
`COMMAND_RESPONSE`: true,
`COMMON_ORDER`: true,
`COMPONENT`: true,
`COMPONENTS`: true,
`CONTAINER`: true,
`DEFINITION`: true,
`DIET`: true,
`DISPENSE`: true,
`ENCODED_ORDER`: true,
`ENCODING`: true,
`EXPERIENCE`: true,
`FINANCIAL`: true,
`FINANCIAL_COMMON_ORDER`: true,
`FINANCIAL_INSURANCE`: true,
`FINANCIAL_OBSERVATION`: true,
`FINANCIAL_ORDER`: true,
`FINANCIAL_PROCEDURE`: true,
`FINANCIAL_TIMING_QUANTITY`: true,
`GENERAL_RESOURCE`: true,
`GIVE`: true,
`GOAL`: true,
`GOAL_OBSERVATION`: true,
`GOAL_PATHWAY`: true,
`GOAL_ROLE`: true,
`GUARANTOR_INSURANCE`: true,
`INSURANCE`: true,
`LOCATION_RESOURCE`: true,
`MERGE_INFO`: true,
`MF`: true,
`MF_CDM`: true,
`MF_CLIN_STUDY`: true,
`MF_CLIN_STUDY_SCHED`: true,
`MF_INV_ITEM`: true,
`MF_LOC_DEPT`: true,
`MF_LOCATION`: true,
`MF_OBS_ATTRIBUTES`: true,
`MF_PHASE_SCHED_DETAIL`: true,
`MF_QUERY`: true,
`MF_SITE_DEFINED`: true,
`MF_STAFF`: true,
`MF_TEST`: true,
`MF_TEST_BATT_DETAIL`: true,
`MF_TEST_BATTERIES`: true,
`MF_TEST_CALC_DETAIL`: true,
`MF_TEST_CALCULATED`: true,
`MF_TEST_CAT_DETAIL`: true,
`MF_TEST_CATEGORICAL`: true,
`MF_TEST_NUMERIC`: true,
`NK1_TIMING_QTY`: true,
`NOTIFICATION`: true,
`OBSERVATION`: true,
`OBSERVATION_PRIOR`: true,
`OBSERVATION_REQUEST`: true,
`OMSERVATION`: true,
`ORDER`: true,
`ORDER_CHOICE`: true,
`ORDER_DETAIL`: true,
`ORDER_DETAIL_SUPPLEMENT`: true,
`ORDER_DIET`: true,
`ORDER_ENCODED`: true,
`ORDER_OBSERVATION`: true,
`ORDER_PRIOR`: true,
`ORDER_TRAY`: true,
`PATHWAY`: true,
`PATHWAY_ROLE`: true,
`PATIENT`: true,
`PATIENT_PRIOR`: true,
`PATIENT_RESULT`: true,
`PATIENT_VISIT`: true,
`PATIENT_VISIT_PRIOR`: true,
`PERSONNEL_RESOURCE`: true,
`PEX_CAUSE`: true,
`PEX_OBSERVATION`: true,
`PRIOR_RESULT`: true,
`PROBLEM`: true,
`PROBLEM_OBSERVATION`: true,
`PROBLEM_PATHWAY`: true,
`PROBLEM_ROLE`: true,
`PROCEDURE`: true,
`PRODUCT`: true,
`PRODUCT_STATUS`: true,
`PROVIDER`: true,
`PROVIDER_CONTACT`: true,
`QBP`: true,
`QRY_WITH_DETAIL`: true,
`QUERY_RESPONSE`: true,
`QUERY_RESULT_CLUSTER`: true,
`REQUEST`: true,
`RESOURCE`: true,
`RESOURCES`: true,
`RESPONSE`: true,
`RESULT`: true,
`RESULTS`: true,
`RESULTS_NOTES`: true,
`ROW_DEFINITION`: true,
`RX_ADMINISTRATION`: true,
`RX_ORDER`: true,
`SCHEDULE`: true,
`SERVICE`: true,
`SPECIMEN`: true,
`SPECIMEN_CONTAINER`: true,
`STAFF`: true,
`STUDY`: true,
`STUDY_OBSERVATION`: true,
`STUDY_PHASE`: true,
`STUDY_SCHEDULE`: true,
`TEST_CONFIGURATION`: true,
`TIMING`: true,
`TIMING_DIET`: true,
`TIMING_ENCODED`: true,
`TIMING_GIVE`: true,
`TIMING_PRIOR`: true,
`TIMING_QTY`: true,
`TIMING_QUANTITY`: true,
`TIMING_TRAY`: true,
`TREATMENT`: true,
`VISIT`: true},
`0392`: {
`DB`: true,
`NA`: true,
`NP`: true,
`SS`: true},
`0393`: {
`LINKSOFT_2.01`: true,
`MATCHWARE_1.2`: true},
`0394`: {
`B`: true,
`R`: true,
`T`: true},
`0395`: {
`M`: true,
`N`: true},
`0396`: {
`99zzz`: true,
`ACR`: true,
`ALPHAID2006`: true,
`ALPHAID2007`: true,
`ALPHAID2008`: true,
`ALPHAID2009`: true,
`ALPHAID2010`: true,
`ALPHAID2011`: true,
`ANS+`: true,
`ART`: true,
`AS4`: true,
`AS4E`: true,
`ATC`: true,
`C4`: true,
`CAPECC`: true,
`CAS`: true,
`CCC`: true,
`CD2`: true,
`CDCA`: true,
`CDCEDACUITY`: true,
`CDCM`: true,
`CDCOBS`: true,
`CDCPHINVS`: true,
`CDCREC`: true,
`CDS`: true,
`CE (obsolete)`: true,
`CLP`: true,
`CPTM`: true,
`CST`: true,
`CVX`: true,
`DCM`: true,
`E`: true,
`E5`: true,
`E6`: true,
`E7`: true,
`ENZC`: true,
`EPASRS`: true,
`FDAUNII`: true,
`FDDC`: true,
`FDDX`: true,
`FDK`: true,
`FIPS5_2`: true,
`FIPS6_4`: true,
`GDRG2004`: true,
`GDRG2005`: true,
`GDRG2006`: true,
`GDRG2007`: true,
`GDRG2008`: true,
`GDRG2009`: true,
`GMDC2004`: true,
`GMDC2005`: true,
`GMDC2006`: true,
`GMDC2007`: true,
`GMDC2008`: true,
`GMDC2009`: true,
`HB`: true,
`HCPCS`: true,
`HCPT`: true,
`HHC`: true,
`HI`: true,
`HL7nnnn`: true,
`HOT`: true,
`HPC`: true,
`I10`: true,
`I10G2004`: true,
`I10G2005`: true,
`I10G2006`: true,
`I10P`: true,
`I9`: true,
`I9C`: true,
`I9CDX`: true,
`I9CP`: true,
`IBT`: true,
`IBTnnnn`: true,
`IC2`: true,
`ICD10AM`: true,
`ICD10CA`: true,
`ICD10GM2007`: true,
`ICD10GM2008`: true,
`ICD10GM2009`: true,
`ICD10GM2010`: true,
`ICD10GM2011`: true,
`ICDO`: true,
`ICDO2`: true,
`ICDO3`: true,
`ICS`: true,
`ICSD`: true,
`ISO`: true,
`ISO3166_1`: true,
`ISO3166_2`: true,
`ISO4217`: true,
`ISO639`: true,
`ISOnnnn (deprecated)`: true,
`ITIS`: true,
`IUPC`: true,
`IUPP`: true,
`JC10`: true,
`JC8`: true,
`JJ1017`: true,
`L`: true,
`LB`: true,
`LN`: true,
`MCD`: true,
`MCR`: true,
`MDC`: true,
`MDDX`: true,
`MEDC`: true,
`MEDR`: true,
`MEDX`: true,
`MGPI`: true,
`MVX`: true,
`NAICS`: true,
`NCPDPnnnnsss`: true,
`NDA`: true,
`NDC`: true,
`NDFRT`: true,
`NIC`: true,
`NIP001`: true,
`NIP002`: true,
`NIP004`: true,
`NIP007`: true,
`NIP008`: true,
`NIP009`: true,
`NIP010`: true,
`NND`: true,
`NPI`: true,
`NUBC`: true,
`NULLFL`: true,
`O301`: true,
`O3012004`: true,
`O3012005`: true,
`O3012006`: true,
`OHA`: true,
`OPS2007`: true,
`OPS2008`: true,
`OPS2009`: true,
`OPS2010`: true,
`OPS2011`: true,
`PHINQUESTION`: true,
`PLR`: true,
`PLT`: true,
`POS`: true,
`RC`: true,
`RXNORM`: true,
`SCT`: true,
`SCT2`: true,
`SDM`: true,
`SIC`: true,
`SNM`: true,
`SNM3`: true,
`SNT`: true,
`SOC`: true,
`UB04FL14`: true,
`UB04FL15`: true,
`UB04FL17`: true,
`UB04FL31`: true,
`UB04FL35`: true,
`UB04FL39`: true,
`UC`: true,
`UCUM`: true,
`UMD`: true,
`UML`: true,
`UPC`: true,
`UPIN`: true,
`USPS`: true,
`W1`: true,
`W2`: true,
`W4`: true,
`WC`: true,
`X12Dennnn`: true},
`0397`: {
`A`: true,
`AN`: true,
`D`: true,
`DN`: true,
`N`: true},
`0398`: {
`F`: true,
`I`: true},
`0399`: {},
`0401`: {
`C`: true,
`MM`: true},
`0402`: {
`D`: true,
`G`: true,
`M`: true,
`U`: true},
`0403`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true},
`0404`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`6`: true},
`0405`: {},
`0406`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`H`: true,
`O`: true},
`0409`: {
`M`: true,
`SD`: true,
`SU`: true},
`0411`: {},
`0412`: {},
`0413`: {},
`0414`: {},
`0415`: {
`E`: true,
`N`: true},
`0416`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true},
`0417`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`6`: true,
`7`: true,
`8`: true,
`9`: true,
`B`: true,
`C`: true,
`G`: true},
`0418`: {
`0`: true,
`1`: true,
`2`: true},
`0421`: {
`MI`: true,
`MO`: true,
`SE`: true},
`0422`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`99`: true},
`0423`: {
`D`: true},
`0424`: {
`1`: true,
`2`: true,
`3`: true},
`0425`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true},
`0426`: {
`CRYO`: true,
`CRYOP`: true,
`FFP`: true,
`FFPTH`: true,
`PC`: true,
`PCA`: true,
`PCNEO`: true,
`PCW`: true,
`PLT`: true,
`PLTNEO`: true,
`PLTP`: true,
`PLTPH`: true,
`PLTPHLR`: true,
`RWB`: true,
`WBA`: true},
`0427`: {
`B`: true,
`C`: true,
`D`: true,
`E`: true,
`F`: true,
`H`: true,
`I`: true,
`J`: true,
`K`: true,
`O`: true,
`P`: true,
`R`: true,
`S`: true,
`T`: true},
`0428`: {
`O`: true,
`P`: true,
`U`: true},
`0429`: {
`BR`: true,
`DA`: true,
`DR`: true,
`DU`: true,
`LY`: true,
`MT`: true,
`NA`: true,
`OT`: true,
`PL`: true,
`RA`: true,
`SH`: true,
`U`: true},
`0430`: {
`A`: true,
`C`: true,
`F`: true,
`H`: true,
`O`: true,
`P`: true,
`U`: true},
`0431`: {
`A`: true,
`C`: true,
`K`: true,
`M`: true,
`O`: true,
`T`: true,
`U`: true},
`0432`: {
`AC`: true,
`CH`: true,
`CO`: true,
`CR`: true,
`IM`: true,
`MO`: true},
`0433`: {
`A`: true,
`B`: true,
`C`: true,
`D`: true,
`I`: true,
`N`: true,
`O`: true,
`P`: true,
`U`: true},
`0434`: {
`A`: true,
`C`: true,
`O`: true,
`P`: true,
`S`: true,
`U`: true},
`0435`: {
`DNR`: true,
`N`: true},
`0436`: {
`AD`: true,
`AL`: true,
`CT`: true,
`IN`: true,
`SE`: true},
`0437`: {
`B`: true,
`N`: true,
`W`: true},
`0438`: {
`C`: true,
`D`: true,
`E`: true,
`I`: true,
`P`: true,
`S`: true,
`U`: true},
`0440`: {
`AD`: true,
`AUI`: true,
`CCD`: true,
`CCP`: true,
`CD`: true,
`CE`: true,
`CF`: true,
`CK`: true,
`CM`: true,
`CN`: true,
`CNE`: true,
`CNN`: true,
`CP`: true,
`CQ`: true,
`CSU`: true,
`CWE`: true,
`CX`: true,
`DDI`: true,
`DIN`: true,
`DLD`: true,
`DLN`: true,
`DLT`: true,
`DR`: true,
`DT`: true,
`DTM`: true,
`DTN`: true,
`ED`: true,
`EI`: true,
`EIP`: true,
`ELD`: true,
`ERL`: true,
`FC`: true,
`FN`: true,
`FT`: true,
`GTS`: true,
`HD`: true,
`ICD`: true,
`ID`: true,
`IS`: true,
`JCC`: true,
`LA1`: true,
`LA2`: true,
`MA`: true,
`MO`: true,
`MOC`: true,
`MOP`: true,
`MSG`: true,
`NA`: true,
`NDL`: true,
`NM`: true,
`NR`: true,
`OCD`: true,
`OSD`: true,
`OSP`: true,
`PIP`: true,
`PL`: true,
`PLN`: true,
`PN`: true,
`PPN`: true,
`PRL`: true,
`PT`: true,
`PTA`: true,
`QIP`: true,
`QSC`: true,
`RCD`: true,
`RFR`: true,
`RI`: true,
`RMC`: true,
`RP`: true,
`RPT`: true,
`SAD`: true,
`SCV`: true,
`SI`: true,
`SN`: true,
`SNM`: true,
`SPD`: true,
`SPS`: true,
`SRT`: true,
`ST`: true,
`TM`: true,
`TN`: true,
`TQ`: true,
`TS`: true,
`TX`: true,
`UVC`: true,
`VH`: true,
`VID`: true,
`VR`: true,
`WVI`: true,
`WVS`: true,
`XAD`: true,
`XCN`: true,
`XON`: true,
`XPN`: true,
`XTN`: true},
`0441`: {
`A`: true,
`I`: true,
`L`: true,
`M`: true,
`O`: true,
`P`: true,
`U`: true},
`0442`: {
`D`: true,
`E`: true,
`P`: true,
`T`: true},
`0443`: {
`AD`: true,
`AI`: true,
`AP`: true,
`AT`: true,
`CLP`: true,
`CP`: true,
`DP`: true,
`EP`: true,
`FHCP`: true,
`IP`: true,
`MDIR`: true,
`OP`: true,
`PH`: true,
`PI`: true,
`PP`: true,
`RO`: true,
`RP`: true,
`RT`: true,
`TN`: true,
`TR`: true,
`VP`: true,
`VPS`: true,
`VTS`: true},
`0444`: {
`F`: true,
`G`: true},
`0445`: {
`AL`: true,
`UA`: true,
`UD`: true,
`US`: true},
`0446`: {},
`0447`: {},
`0448`: {},
`0450`: {
`LOG`: true,
`SER`: true},
`0451`: {
`ALL`: true},
`0452`: {
`SUGGESTION`: true},
`0453`: {
`SUGGESTION`: true},
`0454`: {
`SUGGESTION`: true},
`0455`: {},
`0456`: {},
`0457`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true},
`0458`: {
`1`: true,
`10`: true,
`11`: true,
`12`: true,
`13`: true,
`14`: true,
`15`: true,
`16`: true,
`17`: true,
`18`: true,
`19`: true,
`2`: true,
`20`: true,
`21`: true,
`22`: true,
`23`: true,
`24`: true,
`25`: true,
`26`: true,
`27`: true,
`28`: true,
`29`: true,
`3`: true,
`30`: true,
`31`: true,
`32`: true,
`33`: true,
`34`: true,
`35.`: true,
`36.`: true,
`37`: true,
`38.`: true,
`39.`: true,
`4`: true,
`40.`: true,
`41.`: true,
`42.`: true,
`5`: true,
`6`: true,
`7`: true,
`8`: true,
`9`: true},
`0459`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true},
`0460`: {
`0`: true,
`1`: true,
`2`: true},
`0461`: {},
`0462`: {},
`0463`: {},
`0464`: {},
`0465`: {
`A`: true,
`I`: true,
`P`: true},
`0466`: {
`031`: true,
`163`: true,
`181`: true},
`0467`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`U`: true},
`0468`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true},
`0469`: {
`0`: true,
`1`: true,
`2`: true},
`0470`: {
`Crnl`: true,
`DME`: true,
`EPO`: true,
`Lab`: true,
`Mamm`: true,
`NoPay`: true,
`OPPS`: true,
`PartH`: true,
`Pckg`: true,
`Thrpy`: true},
`0471`: {},
`0472`: {
`A`: true,
`C`: true,
`S`: true},
`0473`: {
`G`: true,
`N`: true,
`R`: true,
`Y`: true},
`0474`: {
`D`: true,
`F`: true,
`S`: true,
`U`: true,
`V`: true},
`0475`: {
`01`: true,
`02`: true,
`03`: true,
`04`: true,
`05`: true},
`0476`: {},
`0477`: {
`I`: true,
`II`: true,
`III`: true,
`IV`: true,
`V`: true,
`VI`: true},
`0478`: {
`G`: true,
`N`: true,
`R`: true,
`Y`: true},
`0480`: {
`M`: true,
`O`: true,
`S`: true},
`0482`: {
`I`: true,
`O`: true},
`0483`: {
`EL`: true,
`EM`: true,
`FX`: true,
`IP`: true,
`MA`: true,
`PA`: true,
`PH`: true,
`RE`: true,
`VC`: true,
`VO`: true},
`0484`: {
`B`: true,
`C`: true,
`N`: true,
`P`: true,
`Q`: true,
`R`: true,
`S`: true,
`T`: true,
`Z`: true},
`0485`: {
`A`: true,
`C`: true,
`P`: true,
`PRN`: true,
`R`: true,
`S`: true,
`T`: true,
`TD<integer>`: true,
`TH<integer>`: true,
`TL<integer>`: true,
`TM<integer>`: true,
`TS<integer>`: true,
`TW<integer>`: true},
`0487`: {
`ABS`: true,
`ACNE`: true,
`ACNFLD`: true,
`AIRS`: true,
`ALL`: true,
`AMP`: true,
`ANGI`: true,
`ARTC`: true,
`ASERU`: true,
`ASP`: true,
`ATTE`: true,
`AUTOA`: true,
`AUTOC`: true,
`AUTP`: true,
`BBL`: true,
`BCYST`: true,
`BITE`: true,
`BLEB`: true,
`BLIST`: true,
`BOIL`: true,
`BON`: true,
`BOWL`: true,
`BPU`: true,
`BRN`: true,
`BRSH`: true,
`BRTH`: true,
`BRUS`: true,
`BUB`: true,
`BULLA`: true,
`BX`: true,
`CALC`: true,
`CARBU`: true,
`CAT`: true,
`CBITE`: true,
`CLIPP`: true,
`CNJT`: true,
`COL`: true,
`CONE`: true,
`CSCR`: true,
`CSERU`: true,
`CSITE`: true,
`CSMY`: true,
`CST`: true,
`CSVR`: true,
`CTP`: true,
`CVPS`: true,
`CVPT`: true,
`CYN`: true,
`CYST`: true,
`DBITE`: true,
`DCS`: true,
`DEC`: true,
`DEION`: true,
`DIA`: true,
`DISCHG`: true,
`DIV`: true,
`DRN`: true,
`DRNG`: true,
`DRNGP`: true,
`EARW`: true,
`EBRUSH`: true,
`EEYE`: true,
`EFF`: true,
`EFFUS`: true,
`EFOD`: true,
`EISO`: true,
`ELT`: true,
`ENVIR`: true,
`EOTH`: true,
`ESOI`: true,
`ESOS`: true,
`ETA`: true,
`ETTP`: true,
`ETTUB`: true,
`EWHI`: true,
`EXG`: true,
`EXS`: true,
`EXUDTE`: true,
`FAW`: true,
`FBLOOD`: true,
`FGA`: true,
`FIST`: true,
`FLD`: true,
`FLT`: true,
`FLU`: true,
`FLUID`: true,
`FOLEY`: true,
`FRS`: true,
`FSCLP`: true,
`FUR`: true,
`GAS`: true,
`GASA`: true,
`GASAN`: true,
`GASBR`: true,
`GASD`: true,
`GAST`: true,
`GENV`: true,
`GRAFT`: true,
`GRAFTS`: true,
`GRANU`: true,
`GROSH`: true,
`GSOL`: true,
`GSPEC`: true,
`GT`: true,
`GTUBE`: true,
`HBITE`: true,
`HBLUD`: true,
`HEMAQ`: true,
`HEMO`: true,
`HERNI`: true,
`HEV`: true,
`HIC`: true,
`HYDC`: true,
`IBITE`: true,
`ICYST`: true,
`IDC`: true,
`IHG`: true,
`ILEO`: true,
`ILLEG`: true,
`IMP`: true,
`INCI`: true,
`INFIL`: true,
`INS`: true,
`INTRD`: true,
`IT`: true,
`IUD`: true,
`IVCAT`: true,
`IVFLD`: true,
`IVTIP`: true,
`JEJU`: true,
`JNTFLD`: true,
`JP`: true,
`KELOI`: true,
`KIDFLD`: true,
`LAVG`: true,
`LAVGG`: true,
`LAVGP`: true,
`LAVPG`: true,
`LENS1`: true,
`LENS2`: true,
`LESN`: true,
`LIQ`: true,
`LIQO`: true,
`LSAC`: true,
`MAHUR`: true,
`MASS`: true,
`MBLD`: true,
`MUCOS`: true,
`MUCUS`: true,
`NASDR`: true,
`NEDL`: true,
`NEPH`: true,
`NGASP`: true,
`NGAST`: true,
`NGS`: true,
`NODUL`: true,
`NSECR`: true,
`ORH`: true,
`ORL`: true,
`OTH`: true,
`PACEM`: true,
`PCFL`: true,
`PDSIT`: true,
`PDTS`: true,
`PELVA`: true,
`PENIL`: true,
`PERIA`: true,
`PILOC`: true,
`PINS`: true,
`PIS`: true,
`PLAN`: true,
`PLAS`: true,
`PLB`: true,
`PLEVS`: true,
`PND`: true,
`POL`: true,
`POPGS`: true,
`POPLG`: true,
`POPLV`: true,
`PORTA`: true,
`PPP`: true,
`PROST`: true,
`PRP`: true,
`PSC`: true,
`PUNCT`: true,
`PUS`: true,
`PUSFR`: true,
`PUST`: true,
`QC3`: true,
`RANDU`: true,
`RBITE`: true,
`RECT`: true,
`RECTA`: true,
`RENALC`: true,
`RENC`: true,
`RES`: true,
`SAL`: true,
`SCAR`: true,
`SCLV`: true,
`SCROA`: true,
`SECRE`: true,
`SER`: true,
`SHU`: true,
`SHUNF`: true,
`SHUNT`: true,
`SITE`: true,
`SKBP`: true,
`SKN`: true,
`SMM`: true,
`SNV`: true,
`SPRM`: true,
`SPRP`: true,
`SPRPB`: true,
`SPS`: true,
`SPT`: true,
`SPTC`: true,
`SPTT`: true,
`SPUT1`: true,
`SPUTIN`: true,
`SPUTSP`: true,
`STER`: true,
`STL`: true,
`STONE`: true,
`SUBMA`: true,
`SUBMX`: true,
`SUMP`: true,
`SUP`: true,
`SUTUR`: true,
`SWGZ`: true,
`TASP`: true,
`TISS`: true,
`TISU`: true,
`TLC`: true,
`TRAC`: true,
`TRANS`: true,
`TSERU`: true,
`TSTES`: true,
`TTRA`: true,
`TUBES`: true,
`TUMOR`: true,
`TZANC`: true,
`UDENT`: true,
`UR`: true,
`URC`: true,
`URINB`: true,
`URINC`: true,
`URINM`: true,
`URINN`: true,
`URINP`: true,
`URT`: true,
`USCOP`: true,
`USPEC`: true,
`VASTIP`: true,
`VENT`: true,
`VITF`: true,
`VOM`: true,
`WASH`: true,
`WASI`: true,
`WAT`: true,
`WB`: true,
`WEN`: true,
`WICK`: true,
`WND`: true,
`WNDA`: true,
`WNDD`: true,
`WNDE`: true,
`WORM`: true,
`WRT`: true,
`WWA`: true,
`WWO`: true,
`WWT`: true},
`0488`: {
`ANP`: true,
`BAP`: true,
`BCAE`: true,
`BCAN`: true,
`BCPD`: true,
`BIO`: true,
`CAP`: true,
`CATH`: true,
`CVP`: true,
`EPLA`: true,
`ESWA`: true,
`FNA`: true,
`KOFFP`: true,
`LNA`: true,
`LNV`: true,
`MARTL`: true,
`ML11`: true,
`MLP`: true,
`NYP`: true,
`PACE`: true,
`PIN`: true,
`PNA`: true,
`PRIME`: true,
`PUMP`: true,
`QC5`: true,
`SCLP`: true,
`SCRAPS`: true,
`SHA`: true,
`SWA`: true,
`SWD`: true,
`TMAN`: true,
`TMCH`: true,
`TMM4`: true,
`TMMY`: true,
`TMOT`: true,
`TMP`: true,
`TMPV`: true,
`TMSC`: true,
`TMUP`: true,
`TMVI`: true,
`VENIP`: true,
`WOOD`: true},
`0489`: {
`AGG`: true,
`BHZ`: true,
`BIO`: true,
`COR`: true,
`ESC`: true,
`EXP`: true,
`IFL`: true,
`INF`: true,
`INJ`: true,
`POI`: true,
`RAD`: true},
`0490`: {
`EX`: true,
`QS`: true,
`RA`: true,
`RB`: true,
`RC`: true,
`RD`: true,
`RE`: true,
`RH`: true,
`RI`: true,
`RM`: true,
`RN`: true,
`RP`: true,
`RR`: true,
`RS`: true},
`0491`: {
`E`: true,
`F`: true,
`G`: true,
`P`: true},
`0492`: {
`??`: true,
`A`: true,
`I`: true,
`P`: true},
`0493`: {
`AUT`: true,
`CLOT`: true,
`CON`: true,
`COOL`: true,
`FROZ`: true,
`HEM`: true,
`LIVE`: true,
`ROOM`: true,
`SNR`: true},
`0494`: {
`A`: true,
`C`: true,
`M`: true},
`0495`: {
`ANT`: true,
`BIL`: true,
`DIS`: true,
`EXT`: true,
`L`: true,
`LAT`: true,
`LLQ`: true,
`LOW`: true,
`LUQ`: true,
`MED`: true,
`POS`: true,
`PRO`: true,
`R`: true,
`RLQ`: true,
`RUQ`: true,
`UPP`: true},
`0496`: {
`001`: true,
`002`: true,
`003`: true,
`004`: true,
`005`: true,
`006`: true,
`007`: true,
`008`: true,
`009`: true,
`010`: true,
`011`: true,
`012`: true,
`013`: true,
`014`: true,
`015`: true,
`016`: true,
`017`: true,
`018`: true,
`019`: true,
`020`: true,
`021`: true,
`022`: true,
`023`: true,
`024`: true,
`025`: true,
`026`: true,
`027`: true,
`028`: true,
`029`: true,
`030`: true,
`031`: true,
`032`: true,
`033`: true,
`034`: true,
`035`: true,
`036`: true,
`037`: true,
`038`: true,
`039`: true,
`040`: true,
`041`: true,
`042`: true,
`043`: true,
`044`: true,
`045`: true,
`046`: true,
`047`: true,
`048`: true,
`049`: true,
`050`: true,
`051`: true,
`052`: true,
`053`: true,
`054`: true,
`055`: true,
`056`: true,
`057`: true,
`058`: true,
`059`: true,
`060`: true,
`061`: true,
`062`: true,
`063`: true,
`064`: true,
`065`: true,
`066`: true,
`067`: true,
`068`: true,
`069`: true,
`070`: true,
`071`: true,
`072`: true,
`073`: true,
`074`: true,
`075`: true,
`076`: true,
`077`: true,
`078`: true,
`079`: true,
`080`: true,
`081`: true,
`082`: true,
`083`: true,
`084`: true,
`085`: true,
`086`: true,
`087`: true,
`088`: true,
`089`: true,
`090`: true,
`091`: true,
`092`: true,
`093`: true,
`094`: true,
`095`: true,
`096`: true,
`097`: true,
`098`: true,
`099`: true,
`100`: true,
`101`: true,
`102`: true,
`103`: true,
`104`: true,
`105`: true,
`106`: true,
`107`: true,
`108`: true,
`109`: true,
`110`: true,
`111`: true,
`112`: true,
`113`: true,
`1137`: true,
`114`: true,
`115`: true,
`116`: true,
`117`: true,
`118`: true,
`119`: true,
`120`: true,
`121`: true,
`122`: true,
`123`: true,
`124`: true,
`125`: true,
`126`: true,
`127`: true,
`128`: true,
`129`: true,
`130`: true,
`131`: true,
`132`: true,
`133`: true,
`134`: true,
`135`: true,
`136`: true},
`0497`: {
`T`: true,
`V`: true,
`W`: true},
`0498`: {
`A`: true,
`B`: true,
`L`: true,
`P`: true,
`R`: true,
`X`: true},
`0499`: {
`E`: true,
`PJ`: true},
`0500`: {
`F`: true,
`N`: true,
`P`: true},
`0501`: {
`E`: true,
`PR`: true,
`RX`: true},
`0502`: {
`LM`: true,
`MIN`: true,
`NC`: true},
`0503`: {
`C`: true,
`R`: true,
`S`: true},
`0504`: {
`EE`: true,
`ES`: true,
`SE`: true,
`SS`: true},
`0505`: {
`#`: true,
`*`: true},
`0506`: {
`C`: true,
`E`: true,
`N`: true,
`S`: true,
`T`: true},
`0507`: {
`F`: true,
`N`: true},
`0508`: {
`AU`: true,
`CM`: true,
`CS`: true,
`DI`: true,
`FR`: true,
`HB`: true,
`HL`: true,
`IG`: true,
`IR`: true,
`LR`: true,
`WA`: true},
`0509`: {},
`0510`: {
`CR`: true,
`DS`: true,
`PT`: true,
`RA`: true,
`RD`: true,
`RE`: true,
`RI`: true,
`RL`: true,
`RQ`: true,
`RS`: true,
`WA`: true},
`0511`: {
`C`: true,
`D`: true,
`F`: true,
`O`: true,
`P`: true,
`W`: true},
`0512`: {},
`0513`: {
`RA`: true,
`RL`: true,
`TR`: true,
`TX`: true,
`WA`: true},
`0514`: {
`ABOINC`: true,
`ACUTHEHTR`: true,
`ALLERGIC1`: true,
`ALLERGIC2`: true,
`ALLERGICR`: true,
`ANAPHYLAC`: true,
`BACTCONTAM`: true,
`DELAYEDHTR`: true,
`DELAYEDSTR`: true,
`GVHD`: true,
`HYPOTENS`: true,
`NONHTR1`: true,
`NONHTR2`: true,
`NONHTRREC`: true,
`NONIMMUNE`: true,
`NONSPEC`: true,
`NORXN`: true,
`PTP`: true,
`VOLOVER`: true},
`0515`: {},
`0516`: {
`E`: true,
`F`: true,
`I`: true,
`W`: true},
`0517`: {
`HD`: true,
`NPAT`: true,
`PAT`: true,
`USR`: true},
`0518`: {
`EQV`: true,
`EXTN`: true,
`INLV`: true},
`0519`: {},
`0520`: {
`H`: true,
`L`: true,
`M`: true},
`0521`: {},
`0523`: {
`%`: true,
`a`: true},
`0525`: {},
`0526`: {},
`0527`: {
`DM`: true,
`DW`: true,
`DY`: true,
`HD`: true,
`MY`: true,
`NH`: true,
`SN`: true,
`WY`: true},
`0528`: {
`AC`: true,
`ACD`: true,
`ACM`: true,
`ACV`: true,
`HS`: true,
`IC`: true,
`ICD`: true,
`ICM`: true,
`ICV`: true,
`PC`: true,
`PCD`: true,
`PCM`: true,
`PCV`: true},
`0531`: {},
`0532`: {
`ASKU`: true,
`N`: true,
`NA`: true,
`NASK`: true,
`NAV`: true,
`NI`: true,
`NP`: true,
`UNK`: true,
`Y`: true},
`0533`: {},
`0534`: {
`L`: true,
`N`: true,
`O`: true,
`U`: true,
`Y`: true},
`0535`: {
`C`: true,
`M`: true,
`P`: true,
`S`: true},
`0536`: {
`E`: true,
`I`: true,
`P`: true,
`R`: true,
`V`: true},
`0537`: {},
`0538`: {
`CON`: true,
`CST`: true,
`EMP`: true,
`VOL`: true},
`0539`: {},
`0540`: {
`L`: true,
`R`: true,
`T`: true},
`0541`: {},
`0542`: {},
`0543`: {},
`0544`: {
`CC`: true,
`CL`: true,
`CT`: true,
`SB`: true,
`XAMB`: true,
`XC37`: true,
`XCAMB`: true,
`XCATM`: true,
`XCFRZ`: true,
`XCREF`: true,
`XDFRZ`: true,
`XDRY`: true,
`XFRZ`: true,
`XMTLF`: true,
`XNTR`: true,
`XPRTL`: true,
`XPSA`: true,
`XPSO`: true,
`XREF`: true,
`XUFRZ`: true,
`XUPR`: true},
`0547`: {
`C`: true,
`N`: true,
`S`: true},
`0548`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`6`: true,
`7`: true},
`0549`: {},
`0550`: {
`Â`: true,
`ACET`: true,
`ACHIL`: true,
`ADB`: true,
`ADE`: true,
`ADR`: true,
`AMN`: true,
`AMS`: true,
`ANAL`: true,
`ANKL`: true,
`ANTEC`: true,
`ANTECF`: true,
`ANTR`: true,
`ANUS`: true,
`AORTA`: true,
`APDX`: true,
`AR`: true,
`AREO`: true,
`ARM`: true,
`ARTE`: true,
`ASCIT`: true,
`ASCT`: true,
`ATR`: true,
`AURI`: true,
`AV`: true,
`AXI`: true,
`BACK`: true,
`BARTD`: true,
`BARTG`: true,
`BCYS`: true,
`BDY`: true,
`BID`: true,
`BIFL`: true,
`BLAD`: true,
`BLD`: true,
`BLDA`: true,
`BLDC`: true,
`BLDV`: true,
`BLOOD`: true,
`BMAR`: true,
`BON`: true,
`BOWEL`: true,
`BOWLA`: true,
`BOWSM`: true,
`BPH`: true,
`BRA`: true,
`BRAIN`: true,
`BRO`: true,
`BROCH`: true,
`BRONC`: true,
`BROW`: true,
`BRST`: true,
`BRSTFL`: true,
`BRTGF`: true,
`BRV`: true,
`BUCCA`: true,
`BURSA`: true,
`BURSF`: true,
`BUTT`: true,
`CALF`: true,
`CANAL`: true,
`CANLI`: true,
`CANTH`: true,
`CARO`: true,
`CARP`: true,
`CAVIT`: true,
`CBLD`: true,
`CDM`: true,
`CDUCT`: true,
`CECUM`: true,
`CERVUT`: true,
`CHE`: true,
`CHEEK`: true,
`CHES`: true,
`CHESTÂ`: true,
`CHIN`: true,
`CIRCU`: true,
`CLAVI`: true,
`CLIT`: true,
`CLITO`: true,
`CNL`: true,
`COCCG`: true,
`COCCY`: true,
`COLON`: true,
`COLOS`: true,
`CONJ`: true,
`COR`: true,
`CORAL`: true,
`CORD`: true,
`CORN`: true,
`COS`: true,
`CRANE`: true,
`CRANF`: true,
`CRANO`: true,
`CRANP`: true,
`CRANS`: true,
`CRANT`: true,
`CSF`: true,
`CUBIT`: true,
`CUFF`: true,
`CULD`: true,
`CULDO`: true,
`CVX`: true,
`DELT`: true,
`DEN`: true,
`DENTA`: true,
`DIAF`: true,
`DIGIT`: true,
`DISC`: true,
`DORS`: true,
`DPH`: true,
`DUFL`: true,
`DUODE`: true,
`DUR`: true,
`EAR`: true,
`EARBI`: true,
`EARBM`: true,
`EARBS`: true,
`EARLO`: true,
`EC`: true,
`ELBOW`: true,
`ELBOWJ`: true,
`ENDC`: true,
`ENDM`: true,
`EOLPH`: true,
`EOS`: true,
`EPD`: true,
`EPICA`: true,
`EPICM`: true,
`EPIDU`: true,
`EPIGL`: true,
`ESO`: true,
`ESOPG`: true,
`ET`: true,
`ETHMO`: true,
`EUR`: true,
`EYE`: true,
`EYELI`: true,
`FACE`: true,
`FALLT`: true,
`FBINC`: true,
`FBLAC`: true,
`FBMAX`: true,
`FBNAS`: true,
`FBPAL`: true,
`FBVOM`: true,
`FBZYG`: true,
`FEMOR`: true,
`FEMUR`: true,
`FET`: true,
`FIBU`: true,
`FING`: true,
`FINGN`: true,
`FMH`: true,
`FOL`: true,
`FOOT`: true,
`FOREA`: true,
`FOREH`: true,
`FORES`: true,
`FOURC`: true,
`GB`: true,
`GEN`: true,
`GENC`: true,
`GENL`: true,
`GL`: true,
`GLAND`: true,
`GLANS`: true,
`GLUT`: true,
`GLUTE`: true,
`GLUTM`: true,
`GROIN`: true,
`GUM`: true,
`GVU`: true,
`HAL`: true,
`HAND`: true,
`HAR`: true,
`HART`: true,
`HEAD`: true,
`HEEL`: true,
`HEM`: true,
`HIP`: true,
`HIPJ`: true,
`HUMER`: true,
`HV`: true,
`HVB`: true,
`HVT`: true,
`HYMEN`: true,
`ICX`: true,
`ILC`: true,
`ILCON`: true,
`ILCR`: true,
`ILE`: true,
`ILEOS`: true,
`ILEUM`: true,
`ILIAC`: true,
`INASA`: true,
`INGUI`: true,
`INSTL`: true,
`INSTS`: true,
`INT`: true,
`INTRO`: true,
`INTRU`: true,
`ISCHI`: true,
`ISH`: true,
`JAW`: true,
`JUGI`: true,
`KIDNÂ`: true,
`KNEE`: true,
`KNEEF`: true,
`KNEEJ`: true,
`LABIA`: true,
`LABMA`: true,
`LABMI`: true,
`LACRI`: true,
`LAM`: true,
`LARYN`: true,
`LEG`: true,
`LENS`: true,
`LING`: true,
`LINGU`: true,
`LIP`: true,
`LIVER`: true,
`LMN`: true,
`LN`: true,
`LNG`: true,
`LOBE`: true,
`LOCH`: true,
`LUMBA`: true,
`LUNG`: true,
`LYM`: true,
`MAC`: true,
`MALLE`: true,
`MANDI`: true,
`MAR`: true,
`MAST`: true,
`MAXIL`: true,
`MAXS`: true,
`MEATU`: true,
`MEC`: true,
`MEDST`: true,
`MEDU`: true,
`METAC`: true,
`METAT`: true,
`MILK`: true,
`MITRL`: true,
`MOLAR`: true,
`MONSU`: true,
`MONSV`: true,
`MOU`: true,
`MOUTH`: true,
`MP`: true,
`MPB`: true,
`MRSA2`: true,
`MYO`: true,
`NAIL`: true,
`NAILB`: true,
`NAILF`: true,
`NAILT`: true,
`NARES`: true,
`NASL`: true,
`NAVEL`: true,
`NECK`: true,
`NERVE`: true,
`NIPPL`: true,
`NLACR`: true,
`NOS`: true,
`NOSE`: true,
`NOSTR`: true,
`NP`: true,
`NSS`: true,
`NTRAC`: true,
`OCCIP`: true,
`OLECR`: true,
`OMEN`: true,
`ORBIT`: true,
`ORO`: true,
`OSCOX`: true,
`OVARY`: true,
`PAFL`: true,
`PALAT`: true,
`PALM`: true,
`PANAL`: true,
`PANCR`: true,
`PARAT`: true,
`PARIE`: true,
`PARON`: true,
`PAROT`: true,
`PAS`: true,
`PATEL`: true,
`PCARD`: true,
`PCLIT`: true,
`PELV`: true,
`PENIS`: true,
`PENSH`: true,
`PER`: true,
`PERI`: true,
`PERIH`: true,
`PERIN`: true,
`PERIS`: true,
`PERIT`: true,
`PERIU`: true,
`PERIV`: true,
`PERRA`: true,
`PERT`: true,
`PHALA`: true,
`PILO`: true,
`PINNA`: true,
`PLACF`: true,
`PLACM`: true,
`PLANT`: true,
`PLATH`: true,
`PLATS`: true,
`PLC`: true,
`PLEU`: true,
`PLEUR`: true,
`PLR`: true,
`PNEAL`: true,
`PNEPH`: true,
`PNM`: true,
`POPLI`: true,
`PORBI`: true,
`PREAU`: true,
`PRERE`: true,
`PROS`: true,
`PRST`: true,
`PTONS`: true,
`PUBIC`: true,
`PUL`: true,
`RADI`: true,
`RADIUS`: true,
`RBC`: true,
`RECTL`: true,
`RECTU`: true,
`RENL`: true,
`RIB`: true,
`RNP`: true,
`RPERI`: true,
`SAC`: true,
`SACIL`: true,
`SACRA`: true,
`SACRO`: true,
`SACRU`: true,
`SALGL`: true,
`SCALP`: true,
`SCAPU`: true,
`SCLAV`: true,
`SCLER`: true,
`SCLV`: true,
`SCROT`: true,
`SDP`: true,
`SEM`: true,
`SEMN`: true,
`SEPTU`: true,
`SEROM`: true,
`SGF`: true,
`SHIN`: true,
`SHOL`: true,
`SHOLJ`: true,
`SIGMO`: true,
`SINUS`: true,
`SKENE`: true,
`SKM`: true,
`SKULL`: true,
`SOLE`: true,
`SPCOR`: true,
`SPHEN`: true,
`SPLN`: true,
`SPRM`: true,
`SPX`: true,
`STER`: true,
`STOM`: true,
`STOMA`: true,
`STOOLL`: true,
`STUMP`: true,
`SUB`: true,
`SUBD`: true,
`SUBM`: true,
`SUBME`: true,
`SUBPH`: true,
`SUBX`: true,
`SUPB`: true,
`SUPRA`: true,
`SWT`: true,
`SWTG`: true,
`SYN`: true,
`SYNOL`: true,
`SYNOV`: true,
`TARS`: true,
`TBRON`: true,
`TCN`: true,
`TDUCT`: true,
`TEAR`: true,
`TEMPL`: true,
`TEMPO`: true,
`TESTI`: true,
`THIGH`: true,
`THM`: true,
`THORA`: true,
`THRB`: true,
`THUMB`: true,
`THYRD`: true,
`TIBIA`: true,
`TML`: true,
`TNL`: true,
`TOE`: true,
`TOEN`: true,
`TONG`: true,
`TONS`: true,
`TOOTH`: true,
`TRCHE`: true,
`TSK`: true,
`ULNA`: true,
`UMB`: true,
`UMBL`: true,
`URET`: true,
`URTH`: true,
`USTOM`: true,
`UTER`: true,
`UTERI`: true,
`VAGIN`: true,
`VAL`: true,
`VAS`: true,
`VASTL`: true,
`VAULT`: true,
`VCSF`: true,
`VCUFF`: true,
`VEIN`: true,
`VENTG`: true,
`VERMI`: true,
`VERTC`: true,
`VERTL`: true,
`VERTT`: true,
`VESCL`: true,
`VESFLD`: true,
`VESI`: true,
`VESTI`: true,
`VGV`: true,
`VITR`: true,
`VOC`: true,
`VULVA`: true,
`WBC`: true,
`WRIST`: true},
`0552`: {},
`0553`: {
`AA`: true,
`AI`: true,
`CA`: true,
`CG`: true,
`CL`: true,
`CN`: true,
`CP`: true,
`CQ`: true,
`EA`: true,
`OA`: true,
`OR`: true,
`PA`: true,
`PD`: true,
`RA`: true,
`RC`: true,
`RU`: true,
`SA`: true},
`0554`: {
`LATE`: true,
`NORM`: true,
`SUB`: true},
`0555`: {
`BK`: true,
`FN`: true,
`FS`: true,
`GP`: true,
`IN`: true,
`NP`: true,
`PA`: true,
`SL`: true,
`SS`: true,
`SU`: true},
`0556`: {
`AMB`: true,
`DENT`: true},
`0557`: {
`EMPL`: true,
`ORG`: true,
`PERS`: true,
`PPER`: true},
`0558`: {
`FM`: true,
`GT`: true,
`PT`: true,
`SB`: true},
`0559`: {
`D`: true,
`P`: true,
`R`: true},
`0561`: {
`CLCTR`: true,
`DGAPP`: true,
`DTCTR`: true,
`ENC`: true,
`GFTH`: true,
`OOP`: true,
`SEQ`: true},
`0562`: {
`DFADJ`: true,
`EFORM`: true,
`FAX`: true,
`PAPER`: true,
`PYRDELAY`: true,
`RTADJ`: true},
`0564`: {
`EA`: true,
`IN`: true,
`PA`: true,
`PR`: true},
`0565`: {
`DISP`: true,
`GST`: true,
`HST`: true,
`MKUP`: true,
`PST`: true},
`0566`: {
`GRN`: true,
`LYM`: true,
`PLS`: true,
`PLT`: true,
`PSC`: true,
`RBC`: true,
`WBL`: true},
`0569`: {
`EOB`: true,
`PAT`: true,
`PRO`: true},
`0570`: {
`CASH`: true,
`CCCA`: true,
`CCHK`: true,
`CDAC`: true,
`CHCK`: true,
`DDPO`: true,
`DEBC`: true,
`SWFT`: true,
`TRAC`: true,
`VISN`: true},
`0571`: {
`ACK`: true,
`ADJ`: true,
`ADJSUB`: true,
`ADJZER`: true,
`PAID`: true,
`PEND`: true,
`PRED`: true,
`REJECT`: true},
`0572`: {
`RVAT`: true,
`UVAT`: true},
`0615`: {
`KERB`: true,
`SAML`: true},
`0616`: {
`C`: true,
`E`: true,
`M`: true,
`R`: true},
`0617`: {
`C`: true,
`M`: true,
`V`: true},
`0618`: {
`LI`: true,
`UL`: true,
`UP`: true},
`0625`: {
`1`: true,
`2`: true,
`3`: true},
`0634`: {
`CRT`: true},
`0642`: {
`D`: true,
`M`: true,
`O`: true},
`0651`: {
`CST`: true,
`TME`: true},
`0653`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`6`: true},
`0657`: {
`1`: true,
`2`: true,
`3`: true},
`0659`: {
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true},
`0667`: {
`0`: true,
`1`: true},
`0669`: {
`LCC`: true,
`LCN`: true,
`LCP`: true,
`LLD`: true},
`0682`: {
`0`: true,
`1`: true},
`0702`: {
`2RS`: true,
`ANR`: true,
`BDP`: true,
`BWD`: true,
`CMW`: true,
`COD`: true,
`CRT`: true,
`DEC`: true,
`DRT`: true,
`DRW`: true,
`EOH`: true,
`EOL`: true,
`EXP`: true,
`FLS`: true,
`GLS`: true,
`GNP`: true,
`GRV`: true,
`GTL`: true,
`ISO`: true,
`IST`: true,
`LKT`: true,
`LQD`: true,
`OPW`: true,
`PEA`: true,
`PLA`: true,
`PRV`: true,
`RNS`: true,
`SFP`: true,
`THR`: true,
`TRB`: true,
`UTL`: true,
`WFP`: true},
`0717`: {
`ALL`: true,
`DEM`: true,
`DRG`: true,
`HIV`: true,
`LOC`: true,
`NO`: true,
`OI`: true,
`OO`: true,
`PID-17`: true,
`PID-7`: true,
`PSY`: true,
`SMD`: true,
`STD`: true},
`0719`: {
`DIA`: true,
`EMP`: true,
`ORG`: true,
`PAT`: true,
`PHY`: true,
`REG`: true,
`VIP`: true},
`0725`: {
`APT`: true,
`ARQ`: true,
`EVN`: true,
`EVN.CRT`: true,
`EXP`: true,
`INT`: true,
`PRMS`: true,
`PRP`: true,
`RQO`: true},
`0728`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true},
`0731`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true},
`0734`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true,
`5`: true,
`6`: true,
`7`: true,
`8`: true,
`9`: true},
`0739`: {
`1`: true,
`2`: true,
`3`: true},
`0742`: {
`00`: true,
`01`: true,
`03`: true,
`04`: true,
`05`: true,
`10`: true,
`11`: true},
`0749`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true},
`0755`: {
`0`: true,
`1`: true,
`2`: true},
`0757`: {
`0`: true,
`1`: true,
`2`: true},
`0759`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true},
`0761`: {
`0`: true,
`1`: true,
`2`: true,
`3`: true,
`4`: true},
`0763`: {
`0`: true,
`1`: true,
`2`: true},
`0771`: {},
`0776`: {
`A`: true,
`I`: true,
`P`: true},
`0778`: {
`EQP`: true,
`IMP`: true,
`MED`: true,
`SUP`: true,
`TDC`: true},
`0790`: {
`AMA`: true,
`FDA`: true},
`0793`: {
`SMDA`: true},
`0806`: {
`EOG`: true,
`PCA`: true,
`STM`: true},
`0809`: {},
`0811`: {},
`0818`: {
`BX`: true,
`CS`: true,
`EA`: true,
`SET`: true},
`0834`: {
`application`: true,
`audio`: true,
`image`: true,
`model`: true,
`multipart`: true,
`text`: true,
`video`: true},
`0836`: {
`No Values Defined`: true},
`0838`: {
`No Values Defined`: true},
`0865`: {},
`0868`: {
`C`: true,
`E`: true,
`M`: true,
`N`: true,
`R`: true},
`0871`: {
`COR`: true,
`EXP`: true,
`FLA`: true,
`INJ`: true,
`RAD`: true,
`TOX`: true,
`UNK`: true},
`0879`: {},
`0880`: {},
`0881`: {
`B`: true,
`P`: true,
`T`: true},
`0882`: {
`E`: true,
`SE`: true},
`0894`: {
`L`: true,
`R`: true},
`0895`: {
`E`: true,
`N`: true,
`U`: true,
`W`: true,
`Y`: true},
`0904`: {
`BCV`: true,
`CCS`: true,
`VID`: true},
`0905`: {
`INV`: true,
`ONH`: true,
`PRC`: true,
`REJ`: true,
`TRN`: true,
`TTL`: true},
`0906`: {
`A`: true,
`CR`: true,
`CS`: true,
`CSP`: true,
`CSR`: true,
`EL`: true,
`EM`: true,
`P`: true,
`PRN`: true,
`R`: true,
`RR`: true,
`S`: true,
`T`: true,
`UD`: true,
`UR`: true},
`0907`: {
`B`: true,
`C`: true,
`D`: true,
`ETH`: true,
`HIV`: true,
`I`: true,
`L`: true,
`N`: true,
`PSY`: true,
`R`: true,
`S`: true,
`SDV`: true,
`T`: true,
`V`: true},
`0908`: {},
`0909`: {
`SID`: true,
`SIDC`: true,
`SIMM`: true,
`STBD`: true,
`SWNL`: true,
`SWTH`: true},
`0910`: {},
`0912`: {
`AD`: true,
`AI`: true,
`AP`: true,
`ARI`: true,
`AT`: true,
`AUT`: true,
`CP`: true,
`DP`: true,
`EP`: true,
`EQUIP`: true,
`FHCP`: true,
`MDIR`: true,
`OP`: true,
`PB`: true,
`PH`: true,
`PI`: true,
`PO`: true,
`POMD`: true,
`PP`: true,
`PRI`: true,
`RCT`: true,
`RO`: true,
`RP`: true,
`RT`: true,
`SB`: true,
`SC`: true,
`TN`: true,
`TR`: true,
`VP`: true,
`VPS`: true,
`VTS`: true,
`WAY`: true,
`WAYR`: true},
`0913`: {
``: true,
`AED`: true,
`AFN`: true,
`ALL`: true,
`AMD`: true,
`ANG`: true,
`AOA`: true,
`ARS`: true,
`AUD`: true,
`AWG`: true,
`AZN`: true,
`BAM`: true,
`BBD`: true,
`BDT`: true,
`BGN`: true,
`BHD`: true,
`BIF`: true,
`BMD`: true,
`BND`: true,
`BOB`: true,
`BOV`: true,
`BRL`: true,
`BSD`: true,
`BTN`: true,
`BWP`: true,
`BYN`: true,
`BZD`: true,
`CAD`: true,
`CDF`: true,
`CHE`: true,
`CHF`: true,
`CHW`: true,
`CLF`: true,
`CLP`: true,
`CNY`: true,
`COP`: true,
`COU`: true,
`CRC`: true,
`CUC`: true,
`CUP`: true,
`CVE`: true,
`CZK`: true,
`DJF`: true,
`DKK`: true,
`DOP`: true,
`DZD`: true,
`EGP`: true,
`ERN`: true,
`ETB`: true,
`EUR`: true,
`FJD`: true,
`FKP`: true,
`GBP`: true,
`GEL`: true,
`GHS`: true,
`GIP`: true,
`GMD`: true,
`GNF`: true,
`GTQ`: true,
`GYD`: true,
`HKD`: true,
`HNL`: true,
`HRK`: true,
`HTG`: true,
`HUF`: true,
`IDR`: true,
`ILS`: true,
`INR`: true,
`IQD`: true,
`IRR`: true,
`ISK`: true,
`JMD`: true,
`JOD`: true,
`JPY`: true,
`KES`: true,
`KGS`: true,
`KHR`: true,
`KMF`: true,
`KPW`: true,
`KRW`: true,
`KWD`: true,
`KYD`: true,
`KZT`: true,
`LAK`: true,
`LBP`: true,
`LKR`: true,
`LRD`: true,
`LSL`: true,
`LYD`: true,
`MAD`: true,
`MDL`: true,
`MGA`: true,
`MKD`: true,
`MMK`: true,
`MNT`: true,
`MOP`: true,
`MRU`: true,
`MUR`: true,
`MVR`: true,
`MWK`: true,
`MXN`: true,
`MXV`: true,
`MYR`: true,
`MZN`: true,
`NAD`: true,
`NGN`: true,
`NIO`: true,
`NOK`: true,
`NPR`: true,
`NZD`: true,
`OMR`: true,
`PAB`: true,
`PEN`: true,
`PGK`: true,
`PHP`: true,
`PKR`: true,
`PLN`: true,
`PYG`: true,
`QAR`: true,
`RON`: true,
`RSD`: true,
`RUB`: true,
`RWF`: true,
`SAR`: true,
`SBD`: true,
`SCR`: true,
`SDG`: true,
`SEK`: true,
`SGD`: true,
`SHP`: true,
`SLL`: true,
`SOS`: true,
`SRD`: true,
`SSP`: true,
`STN`: true,
`SVC`: true,
`SYP`: true,
`SZL`: true,
`THB`: true,
`TJS`: true,
`TMT`: true,
`TND`: true,
`TOP`: true,
`TRY`: true,
`TTD`: true,
`TWD`: true,
`TZS`: true,
`UAH`: true,
`UGX`: true,
`USD`: true,
`USN`: true,
`UYI`: true,
`UYU`: true,
`UYW`: true,
`UZS`: true,
`VES`: true,
`VND`: true,
`VUV`: true,
`WST`: true,
`XAF`: true,
`XAG`: true,
`XAU`: true,
`XBA`: true,
`XBB`: true,
`XBC`: true,
`XBD`: true,
`XCD`: true,
`XDR`: true,
`XOF`: true,
`XPD`: true,
`XPF`: true,
`XPT`: true,
`XSU`: true,
`XTS`: true,
`XUA`: true,
`XXX`: true,
`YER`: true,
`ZAR`: true,
`ZMW`: true,
`ZWL`: true},
`0914`: {
`AP`: true,
`IM`: true,
`L`: true,
`NA`: true,
`PD`: true},
`0915`: {},
`0916`: {
`F`: true,
`FNA`: true,
`NF`: true,
`NG`: true},
`0917`: {
`C`: true,
`L`: true},
`0918`: {
`C`: true,
`P`: true,
`PC`: true},
`0919`: {
`D`: true,
`N`: true,
`Y`: true},
`0920`: {
`A`: true,
`P`: true},
`0921`: {
`ADM`: true,
`PROC`: true,
`SERV`: true},
`0922`: {
`IR`: true,
`RA`: true,
`RE`: true},
`0923`: {
`ABR`: true,
`NIN`: true,
`WOT`: true},
`0924`: {
`A`: true,
`D`: true,
`M`: true,
`O`: true,
`PL`: true,
`WK`: true},
`0925`: {
`ACN`: true,
`CLT`: true,
`COL`: true,
`DAK`: true,
`DBG`: true,
`DMT`: true,
`DND`: true,
`INF`: true,
`IPF`: true,
`MIS`: true,
`NAD`: true,
`PFL`: true,
`VSM`: true},
`0926`: {
`NDR`: true,
`SUC`: true,
`UL5`: true},
`0927`: {
`B`: true,
`L`: true,
`R`: true},
`0929`: {
`[lb_av]`: true,
`[oz_av]`: true,
`g`: true,
`kg`: true},
`0930`: {
`[pt_us]`: true,
`l`: true,
`ml`: true},
`0931`: {
`Cel`: true,
`degF`: true},
`0932`: {
`min`: true,
`s`: true},
`0933`: {
`2RC`: true,
`GRN`: true,
`HEM`: true,
`HPC`: true,
`LYM`: true,
`PLS`: true,
`PLT`: true,
`PNP`: true,
`PNR`: true,
`PPR`: true,
`THA`: true,
`THW`: true,
`WBL`: true},
`0934`: {},
`0935`: {
`ASC`: true,
`BSC`: true,
`CFT`: true,
`DBB`: true,
`DCW`: true,
`DNI`: true,
`GFE`: true,
`NRG`: true,
`PCD`: true},
`9999`: {},
`City`: {
`Albuquerque`: true,
`Arlington`: true,
`Atlanta`: true,
`Austin`: true,
`Baltimore`: true,
`Boston`: true,
`Charlotte`: true,
`Chicago`: true,
`Cleveland`: true,
`Colorado Springs`: true,
`Columbus`: true,
`Dallas`: true,
`Denver`: true,
`Detroit`: true,
`El Paso`: true,
`Fort Worth`: true,
`Fresno`: true,
`Honolulu`: true,
`Houston`: true,
`Indianapolis`: true,
`Jacksonville`: true,
`Kansas City`: true,
`Las Vegas`: true,
`Long Beach`: true,
`Los Angeles`: true,
`Louisville-Jefferson County`: true,
`Memphis`: true,
`Mesa`: true,
`Miami`: true,
`Milwaukee`: true,
`Minneapolis`: true,
`Nashville-Davidson`: true,
`New York`: true,
`Oakland`: true,
`Oklahoma City`: true,
`Omaha`: true,
`Philadelphia`: true,
`Phoenix`: true,
`Portland`: true,
`Raleigh`: true,
`Sacramento`: true,
`San Antonio`: true,
`San Diego`: true,
`San Francisco`: true,
`San Jose`: true,
`Seattle`: true,
`Tucson`: true,
`Tulsa`: true,
`Virginia Beach`: true,
`Washington`: true},
`FirstName`: {
`Aaron`: true,
`Abby`: true,
`Abe`: true,
`Abel`: true,
`Abigail`: true,
`Abraham`: true,
`Ada`: true,
`Adam`: true,
`Addie`: true,
`Adela`: true,
`Adele`: true,
`Adolfo`: true,
`Adolph`: true,
`Adolphus`: true,
`Adrian`: true,
`Adrienne`: true,
`Agnes`: true,
`Agustin`: true,
`Aida`: true,
`Aileen`: true,
`Aimee`: true,
`Al`: true,
`Alan`: true,
`Alana`: true,
`Albert`: true,
`Alberta`: true,
`Alberto`: true,
`Alden`: true,
`Alejandro`: true,
`Aleta`: true,
`Aletha`: true,
`Alex`: true,
`Alexander`: true,
`Alexandra`: true,
`Alexis`: true,
`Alfonso`: true,
`Alfonzo`: true,
`Alford`: true,
`Alfred`: true,
`Alfreda`: true,
`Alfredo`: true,
`Alice`: true,
`Alicia`: true,
`Alisa`: true,
`Alison`: true,
`Allan`: true,
`Allen`: true,
`Allison`: true,
`Allyn`: true,
`Alma`: true,
`Alonzo`: true,
`Alphonse`: true,
`Alphonso`: true,
`Alta`: true,
`Althea`: true,
`Alton`: true,
`Alva`: true,
`Alvin`: true,
`Alyce`: true,
`Amanda`: true,
`Amber`: true,
`Amelia`: true,
`Amos`: true,
`Amy`: true,
`Ana`: true,
`Anderson`: true,
`Andre`: true,
`Andrea`: true,
`Andres`: true,
`Andrew`: true,
`Andy`: true,
`Angel`: true,
`Angela`: true,
`Angelia`: true,
`Angelina`: true,
`Angeline`: true,
`Angelita`: true,
`Angelo`: true,
`Angie`: true,
`Anita`: true,
`Ann`: true,
`Anna`: true,
`Anne`: true,
`Annemarie`: true,
`Annetta`: true,
`Annette`: true,
`Annie`: true,
`Annmarie`: true,
`Anthony`: true,
`Antionette`: true,
`Antoinette`: true,
`Anton`: true,
`Antonia`: true,
`Antonio`: true,
`April`: true,
`Archie`: true,
`Arden`: true,
`Arleen`: true,
`Arlen`: true,
`Arlene`: true,
`Arlie`: true,
`Armand`: true,
`Armando`: true,
`Arnold`: true,
`Arnulfo`: true,
`Art`: true,
`Arthur`: true,
`Artie`: true,
`Artis`: true,
`Arturo`: true,
`Ashley`: true,
`Athena`: true,
`Aubrey`: true,
`Audie`: true,
`Audrey`: true,
`August`: true,
`Augustine`: true,
`Augustus`: true,
`Aurelio`: true,
`Aurora`: true,
`Austin`: true,
`Ava`: true,
`Avery`: true,
`Avis`: true,
`Bambi`: true,
`Barbara`: true,
`Barbra`: true,
`Barney`: true,
`Barrett`: true,
`Barry`: true,
`Bart`: true,
`Barton`: true,
`Basil`: true,
`Beatrice`: true,
`Becky`: true,
`Belinda`: true,
`Ben`: true,
`Benedict`: true,
`Benita`: true,
`Benito`: true,
`Benjamin`: true,
`Bennett`: true,
`Bennie`: true,
`Benny`: true,
`Benton`: true,
`Bernadette`: true,
`Bernadine`: true,
`Bernard`: true,
`Bernice`: true,
`Bernie`: true,
`Berry`: true,
`Bert`: true,
`Bertha`: true,
`Bertram`: true,
`Beryl`: true,
`Bessie`: true,
`Beth`: true,
`Bethany`: true,
`Betsy`: true,
`Bette`: true,
`Bettie`: true,
`Betty`: true,
`Bettye`: true,
`Beulah`: true,
`Beverley`: true,
`Beverly`: true,
`Bill`: true,
`Billie`: true,
`Billy`: true,
`Blaine`: true,
`Blair`: true,
`Blake`: true,
`Blanca`: true,
`Blanche`: true,
`Blane`: true,
`Bob`: true,
`Bobbi`: true,
`Bobbie`: true,
`Bobby`: true,
`Bonita`: true,
`Bonnie`: true,
`Bonny`: true,
`Booker`: true,
`Boyce`: true,
`Boyd`: true,
`Brad`: true,
`Bradford`: true,
`Bradley`: true,
`Bradly`: true,
`Brady`: true,
`Brandon`: true,
`Brant`: true,
`Brenda`: true,
`Brendan`: true,
`Brent`: true,
`Bret`: true,
`Brett`: true,
`Brian`: true,
`Brice`: true,
`Bridget`: true,
`Britt`: true,
`Brooks`: true,
`Bruce`: true,
`Bruno`: true,
`Bryan`: true,
`Bryant`: true,
`Bryce`: true,
`Bryon`: true,
`Bud`: true,
`Buddy`: true,
`Buford`: true,
`Burl`: true,
`Burt`: true,
`Burton`: true,
`Buster`: true,
`Butch`: true,
`Byron`: true,
`Callie`: true,
`Calvin`: true,
`Cameron`: true,
`Camilla`: true,
`Camille`: true,
`Candace`: true,
`Candice`: true,
`Candy`: true,
`Cara`: true,
`Caren`: true,
`Carey`: true,
`Carl`: true,
`Carla`: true,
`Carleen`: true,
`Carlene`: true,
`Carleton`: true,
`Carlo`: true,
`Carlos`: true,
`Carlotta`: true,
`Carlton`: true,
`Carmel`: true,
`Carmela`: true,
`Carmella`: true,
`Carmelo`: true,
`Carmen`: true,
`Carmine`: true,
`Carnell`: true,
`Carol`: true,
`Carole`: true,
`Carolina`: true,
`Caroline`: true,
`Carolyn`: true,
`Caron`: true,
`Carrie`: true,
`Carroll`: true,
`Carson`: true,
`Carter`: true,
`Cary`: true,
`Caryl`: true,
`Caryn`: true,
`Casey`: true,
`Cassandra`: true,
`Catharine`: true,
`Catherine`: true,
`Cathey`: true,
`Cathie`: true,
`Cathleen`: true,
`Cathrine`: true,
`Cathryn`: true,
`Cathy`: true,
`Cecelia`: true,
`Cecil`: true,
`Cecile`: true,
`Cecilia`: true,
`Cedric`: true,
`Celeste`: true,
`Celestine`: true,
`Celia`: true,
`Cesar`: true,
`Chad`: true,
`Charla`: true,
`Charleen`: true,
`Charlene`: true,
`Charles`: true,
`Charley`: true,
`Charlie`: true,
`Charlotte`: true,
`Charmaine`: true,
`Chauncey`: true,
`Cheri`: true,
`Cherie`: true,
`Cherri`: true,
`Cherrie`: true,
`Cherry`: true,
`Cheryl`: true,
`Cheryle`: true,
`Cheryll`: true,
`Chester`: true,
`Chip`: true,
`Chris`: true,
`Christa`: true,
`Christi`: true,
`Christian`: true,
`Christie`: true,
`Christina`: true,
`Christine`: true,
`Christophe`: true,
`Christopher`: true,
`Christy`: true,
`Chuck`: true,
`Cinda`: true,
`Cindi`: true,
`Cindy`: true,
`Clair`: true,
`Claire`: true,
`Clara`: true,
`Clare`: true,
`Clarence`: true,
`Clarice`: true,
`Clarissa`: true,
`Clark`: true,
`Clarke`: true,
`Claud`: true,
`Claude`: true,
`Claudette`: true,
`Claudia`: true,
`Clay`: true,
`Clayton`: true,
`Clement`: true,
`Cleo`: true,
`Cletus`: true,
`Cleve`: true,
`Cleveland`: true,
`Cliff`: true,
`Clifford`: true,
`Clifton`: true,
`Clint`: true,
`Clinton`: true,
`Clyde`: true,
`Cody`: true,
`Cole`: true,
`Coleen`: true,
`Coleman`: true,
`Colette`: true,
`Colin`: true,
`Colleen`: true,
`Collette`: true,
`Columbus`: true,
`Concetta`: true,
`Connie`: true,
`Conrad`: true,
`Constance`: true,
`Consuelo`: true,
`Cora`: true,
`Cordell`: true,
`Corey`: true,
`Corine`: true,
`Corinne`: true,
`Corliss`: true,
`Cornelia`: true,
`Cornelius`: true,
`Cornell`: true,
`Corrine`: true,
`Cory`: true,
`Courtney`: true,
`Coy`: true,
`Craig`: true,
`Cris`: true,
`Cristina`: true,
`Cruz`: true,
`Crystal`: true,
`Curt`: true,
`Curtis`: true,
`Curtiss`: true,
`Cynthia`: true,
`Cyril`: true,
`Cyrus`: true,
`Daisy`: true,
`Dale`: true,
`Dallas`: true,
`Dalton`: true,
`Damian`: true,
`Damon`: true,
`Dan`: true,
`Dana`: true,
`Dane`: true,
`Danette`: true,
`Danial`: true,
`Daniel`: true,
`Danielle`: true,
`Danita`: true,
`Dann`: true,
`Danna`: true,
`Dannie`: true,
`Danny`: true,
`Dante`: true,
`Daphne`: true,
`Darcy`: true,
`Darell`: true,
`Daria`: true,
`Darius`: true,
`Darla`: true,
`Darleen`: true,
`Darlene`: true,
`Darnell`: true,
`Darold`: true,
`Darrel`: true,
`Darrell`: true,
`Darryl`: true,
`Darwin`: true,
`Daryl`: true,
`Daryle`: true,
`Dave`: true,
`Davey`: true,
`David`: true,
`Davie`: true,
`Davis`: true,
`Davy`: true,
`Dawn`: true,
`Dayna`: true,
`Dean`: true,
`Deana`: true,
`Deann`: true,
`Deanna`: true,
`Deanne`: true,
`Debbi`: true,
`Debbie`: true,
`Debbra`: true,
`Debby`: true,
`Debi`: true,
`Debora`: true,
`Deborah`: true,
`Debra`: true,
`Debrah`: true,
`Debroah`: true,
`Dee`: true,
`Deena`: true,
`Deidre`: true,
`Deirdre`: true,
`Del`: true,
`Delbert`: true,
`Delia`: true,
`Delilah`: true,
`Dell`: true,
`Della`: true,
`Delma`: true,
`Delmar`: true,
`Delmer`: true,
`Delois`: true,
`Delores`: true,
`Deloris`: true,
`Delphine`: true,
`Delton`: true,
`Demetrius`: true,
`Dena`: true,
`Denice`: true,
`Denis`: true,
`Denise`: true,
`Dennie`: true,
`Dennis`: true,
`Denny`: true,
`Denver`: true,
`Derek`: true,
`Derrell`: true,
`Derrick`: true,
`Desiree`: true,
`Desmond`: true,
`Dewayne`: true,
`Dewey`: true,
`Dewitt`: true,
`Dexter`: true,
`Dian`: true,
`Diana`: true,
`Diane`: true,
`Diann`: true,
`Dianna`: true,
`Dianne`: true,
`Dick`: true,
`Dickie`: true,
`Dina`: true,
`Dinah`: true,
`Dino`: true,
`Dirk`: true,
`Dixie`: true,
`Dollie`: true,
`Dolly`: true,
`Dolores`: true,
`Domenic`: true,
`Domingo`: true,
`Dominic`: true,
`Dominick`: true,
`Don`: true,
`Dona`: true,
`Donald`: true,
`Donell`: true,
`Donita`: true,
`Donn`: true,
`Donna`: true,
`Donnell`: true,
`Donnie`: true,
`Donny`: true,
`Donovan`: true,
`Dora`: true,
`Dorcas`: true,
`Doreen`: true,
`Dorene`: true,
`Doretha`: true,
`Dorian`: true,
`Dorinda`: true,
`Doris`: true,
`Dorothea`: true,
`Dorothy`: true,
`Dorsey`: true,
`Dorthy`: true,
`Dottie`: true,
`Doug`: true,
`Douglas`: true,
`Douglass`: true,
`Doyle`: true,
`Drew`: true,
`Duane`: true,
`Dudley`: true,
`Duke`: true,
`Duncan`: true,
`Dusty`: true,
`Duwayne`: true,
`Dwain`: true,
`Dwaine`: true,
`Dwayne`: true,
`Dwight`: true,
`Earl`: true,
`Earle`: true,
`Earlene`: true,
`Earline`: true,
`Earnest`: true,
`Earnestine`: true,
`Eartha`: true,
`Ed`: true,
`Eddie`: true,
`Eddy`: true,
`Edgar`: true,
`Edith`: true,
`Edmund`: true,
`Edna`: true,
`Eduardo`: true,
`Edward`: true,
`Edwardo`: true,
`Edwin`: true,
`Edwina`: true,
`Effie`: true,
`Efrain`: true,
`Eileen`: true,
`Elaine`: true,
`Elbert`: true,
`Eldon`: true,
`Eldridge`: true,
`Eleanor`: true,
`Elena`: true,
`Eli`: true,
`Elias`: true,
`Elijah`: true,
`Elisa`: true,
`Elisabeth`: true,
`Elise`: true,
`Eliseo`: true,
`Elissa`: true,
`Eliza`: true,
`Elizabeth`: true,
`Ella`: true,
`Ellen`: true,
`Elliot`: true,
`Elliott`: true,
`Ellis`: true,
`Elma`: true,
`Elmer`: true,
`Elmo`: true,
`Elnora`: true,
`Eloise`: true,
`Eloy`: true,
`Elroy`: true,
`Elsa`: true,
`Elsie`: true,
`Elton`: true,
`Elva`: true,
`Elvin`: true,
`Elvira`: true,
`Elvis`: true,
`Elwood`: true,
`Elyse`: true,
`Emanuel`: true,
`Emerson`: true,
`Emery`: true,
`Emil`: true,
`Emilio`: true,
`Emily`: true,
`Emma`: true,
`Emmanuel`: true,
`Emmett`: true,
`Emmitt`: true,
`Emory`: true,
`Enoch`: true,
`Enrique`: true,
`Eric`: true,
`Erica`: true,
`Erich`: true,
`Erick`: true,
`Erik`: true,
`Erin`: true,
`Erma`: true,
`Ernest`: true,
`Ernestine`: true,
`Ernesto`: true,
`Ernie`: true,
`Errol`: true,
`Ervin`: true,
`Erwin`: true,
`Esmeralda`: true,
`Esperanza`: true,
`Essie`: true,
`Esteban`: true,
`Estela`: true,
`Estella`: true,
`Estelle`: true,
`Ester`: true,
`Esther`: true,
`Ethel`: true,
`Etta`: true,
`Eugene`: true,
`Eugenia`: true,
`Eula`: true,
`Eunice`: true,
`Eva`: true,
`Evan`: true,
`Evangeline`: true,
`Eve`: true,
`Evelyn`: true,
`Everett`: true,
`Everette`: true,
`Ezra`: true,
`Faith`: true,
`Fannie`: true,
`Faron`: true,
`Farrell`: true,
`Fay`: true,
`Faye`: true,
`Federico`: true,
`Felecia`: true,
`Felicia`: true,
`Felipe`: true,
`Felix`: true,
`Felton`: true,
`Ferdinand`: true,
`Fern`: true,
`Fernando`: true,
`Fidel`: true,
`Fletcher`: true,
`Flora`: true,
`Florence`: true,
`Florine`: true,
`Floyd`: true,
`Forest`: true,
`Forrest`: true,
`Foster`: true,
`Fran`: true,
`Frances`: true,
`Francesca`: true,
`Francine`: true,
`Francis`: true,
`Francisco`: true,
`Frank`: true,
`Frankie`: true,
`Franklin`: true,
`Franklyn`: true,
`Fred`: true,
`Freda`: true,
`Freddie`: true,
`Freddy`: true,
`Frederic`: true,
`Frederick`: true,
`Fredric`: true,
`Fredrick`: true,
`Freeman`: true,
`Freida`: true,
`Frieda`: true,
`Fritz`: true,
`Gabriel`: true,
`Gail`: true,
`Gale`: true,
`Galen`: true,
`Garland`: true,
`Garold`: true,
`Garrett`: true,
`Garry`: true,
`Garth`: true,
`Gary`: true,
`Gavin`: true,
`Gay`: true,
`Gaye`: true,
`Gayla`: true,
`Gayle`: true,
`Gaylon`: true,
`Gaylord`: true,
`Gearld`: true,
`Geary`: true,
`Gena`: true,
`Gene`: true,
`Geneva`: true,
`Genevieve`: true,
`Geoffrey`: true,
`George`: true,
`Georgette`: true,
`Georgia`: true,
`Georgina`: true,
`Gerald`: true,
`Geraldine`: true,
`Geralyn`: true,
`Gerard`: true,
`Gerardo`: true,
`Geri`: true,
`Gerri`: true,
`Gerry`: true,
`Gertrude`: true,
`Gil`: true,
`Gilbert`: true,
`Gilberto`: true,
`Gilda`: true,
`Giles`: true,
`Gina`: true,
`Ginger`: true,
`Gino`: true,
`Gisele`: true,
`Gladys`: true,
`Glen`: true,
`Glenda`: true,
`Glenn`: true,
`Glenna`: true,
`Glinda`: true,
`Gloria`: true,
`Glynn`: true,
`Goldie`: true,
`Gordon`: true,
`Grace`: true,
`Gracie`: true,
`Graciela`: true,
`Grady`: true,
`Graham`: true,
`Grant`: true,
`Greg`: true,
`Gregg`: true,
`Greggory`: true,
`Gregorio`: true,
`Gregory`: true,
`Greta`: true,
`Gretchen`: true,
`Grover`: true,
`Guadalupe`: true,
`Guillermo`: true,
`Gus`: true,
`Gustavo`: true,
`Guy`: true,
`Gwen`: true,
`Gwendolyn`: true,
`Hal`: true,
`Hank`: true,
`Hannah`: true,
`Hans`: true,
`Harlan`: true,
`Harley`: true,
`Harmon`: true,
`Harold`: true,
`Harriet`: true,
`Harriett`: true,
`Harris`: true,
`Harrison`: true,
`Harry`: true,
`Harvey`: true,
`Hattie`: true,
`Hayward`: true,
`Haywood`: true,
`Hazel`: true,
`Heather`: true,
`Hector`: true,
`Heidi`: true,
`Helen`: true,
`Helena`: true,
`Helene`: true,
`Henrietta`: true,
`Henry`: true,
`Herbert`: true,
`Heriberto`: true,
`Herman`: true,
`Herschel`: true,
`Hershel`: true,
`Hilary`: true,
`Hilda`: true,
`Hilton`: true,
`Hiram`: true,
`Hollis`: true,
`Holly`: true,
`Homer`: true,
`Hope`: true,
`Horace`: true,
`Hosea`: true,
`Houston`: true,
`Howard`: true,
`Hoyt`: true,
`Hubert`: true,
`Huey`: true,
`Hugh`: true,
`Hugo`: true,
`Humberto`: true,
`Ian`: true,
`Ida`: true,
`Ignacio`: true,
`Ike`: true,
`Ilene`: true,
`Imogene`: true,
`Ina`: true,
`Inez`: true,
`Ingrid`: true,
`Ira`: true,
`Irene`: true,
`Iris`: true,
`Irma`: true,
`Irvin`: true,
`Irving`: true,
`Irwin`: true,
`Isaac`: true,
`Isabel`: true,
`Isaiah`: true,
`Isiah`: true,
`Ismael`: true,
`Israel`: true,
`Issac`: true,
`Iva`: true,
`Ivan`: true,
`Ivory`: true,
`Ivy`: true,
`Jacalyn`: true,
`Jack`: true,
`Jackie`: true,
`Jacklyn`: true,
`Jackson`: true,
`Jacky`: true,
`Jacob`: true,
`Jacque`: true,
`Jacqueline`: true,
`Jacquelyn`: true,
`Jacques`: true,
`Jacquline`: true,
`Jaime`: true,
`Jake`: true,
`Jame`: true,
`James`: true,
`Jamie`: true,
`Jan`: true,
`Jana`: true,
`Jane`: true,
`Janeen`: true,
`Janell`: true,
`Janelle`: true,
`Janet`: true,
`Janette`: true,
`Janice`: true,
`Janie`: true,
`Janine`: true,
`Janis`: true,
`Jann`: true,
`Janna`: true,
`Jannette`: true,
`Jannie`: true,
`Jared`: true,
`Jarvis`: true,
`Jason`: true,
`Jasper`: true,
`Javier`: true,
`Jay`: true,
`Jaye`: true,
`Jayne`: true,
`Jean`: true,
`Jeanette`: true,
`Jeanie`: true,
`Jeanine`: true,
`Jeanne`: true,
`Jeannette`: true,
`Jeannie`: true,
`Jeannine`: true,
`Jed`: true,
`Jeff`: true,
`Jefferey`: true,
`Jefferson`: true,
`Jeffery`: true,
`Jeffry`: true,
`Jenifer`: true,
`Jennie`: true,
`Jennifer`: true,
`Jenny`: true,
`Jerald`: true,
`Jere`: true,
`Jeremiah`: true,
`Jeremy`: true,
`Jeri`: true,
`Jerilyn`: true,
`Jerold`: true,
`Jerome`: true,
`Jerri`: true,
`Jerrie`: true,
`Jerrold`: true,
`Jerry`: true,
`Jeryl`: true,
`Jess`: true,
`Jesse`: true,
`Jessica`: true,
`Jessie`: true,
`Jesus`: true,
`Jewel`: true,
`Jewell`: true,
`Jill`: true,
`Jim`: true,
`Jimmie`: true,
`Jimmy`: true,
`Jo`: true,
`Joan`: true,
`Joanie`: true,
`Joann`: true,
`Joanna`: true,
`Joanne`: true,
`Joaquin`: true,
`Jocelyn`: true,
`Jodi`: true,
`Jodie`: true,
`Jody`: true,
`Joe`: true,
`Joel`: true,
`Joellen`: true,
`Joesph`: true,
`Joette`: true,
`Joey`: true,
`Johanna`: true,
`John`: true,
`Johnathan`: true,
`Johnie`: true,
`Johnnie`: true,
`Johnny`: true,
`Joleen`: true,
`Jolene`: true,
`Jon`: true,
`Jonas`: true,
`Jonathan`: true,
`Jonathon`: true,
`Joni`: true,
`Jordan`: true,
`Jorge`: true,
`Jose`: true,
`Josefina`: true,
`Joseph`: true,
`Josephine`: true,
`Joshua`: true,
`Josie`: true,
`Joy`: true,
`Joyce`: true,
`Joycelyn`: true,
`Juan`: true,
`Juana`: true,
`Juanita`: true,
`Jude`: true,
`Judi`: true,
`Judith`: true,
`Judson`: true,
`Judy`: true,
`Jules`: true,
`Julia`: true,
`Julian`: true,
`Juliana`: true,
`Juliann`: true,
`Julianne`: true,
`Julie`: true,
`Juliet`: true,
`Juliette`: true,
`Julio`: true,
`Julius`: true,
`June`: true,
`Junior`: true,
`Justin`: true,
`Justine`: true,
`Kandy`: true,
`Karan`: true,
`Karen`: true,
`Kari`: true,
`Karin`: true,
`Karl`: true,
`Karla`: true,
`Karol`: true,
`Karon`: true,
`Karyn`: true,
`Kate`: true,
`Kathaleen`: true,
`Katharine`: true,
`Katherine`: true,
`Katheryn`: true,
`Kathi`: true,
`Kathie`: true,
`Kathleen`: true,
`Kathrine`: true,
`Kathryn`: true,
`Kathy`: true,
`Katie`: true,
`Katrina`: true,
`Kay`: true,
`Kaye`: true,
`Keith`: true,
`Kelley`: true,
`Kelly`: true,
`Kelvin`: true,
`Ken`: true,
`Kendall`: true,
`Kendra`: true,
`Kenneth`: true,
`Kennith`: true,
`Kenny`: true,
`Kent`: true,
`Kenton`: true,
`Kermit`: true,
`Kerri`: true,
`Kerry`: true,
`Kevan`: true,
`Keven`: true,
`Kevin`: true,
`Kim`: true,
`Kimberlee`: true,
`Kimberley`: true,
`Kimberly`: true,
`King`: true,
`Kip`: true,
`Kirby`: true,
`Kirk`: true,
`Kirt`: true,
`Kit`: true,
`Kitty`: true,
`Kraig`: true,
`Kris`: true,
`Krista`: true,
`Kristen`: true,
`Kristi`: true,
`Kristie`: true,
`Kristin`: true,
`Kristina`: true,
`Kristine`: true,
`Kristy`: true,
`Kurt`: true,
`Kurtis`: true,
`Kyle`: true,
`Lacy`: true,
`Ladonna`: true,
`Lafayette`: true,
`Lamar`: true,
`Lamont`: true,
`Lana`: true,
`Lance`: true,
`Lane`: true,
`Lanette`: true,
`Lanny`: true,
`Larry`: true,
`Laura`: true,
`Laureen`: true,
`Laurel`: true,
`Lauren`: true,
`Laurence`: true,
`Laurene`: true,
`Lauretta`: true,
`Lauri`: true,
`Laurie`: true,
`Lavern`: true,
`Laverne`: true,
`Lavonne`: true,
`Lawanda`: true,
`Lawerence`: true,
`Lawrence`: true,
`Layne`: true,
`Lea`: true,
`Leah`: true,
`Leander`: true,
`Leann`: true,
`Leanna`: true,
`Leanne`: true,
`Lee`: true,
`Leeann`: true,
`Leigh`: true,
`Leila`: true,
`Lela`: true,
`Leland`: true,
`Lelia`: true,
`Lemuel`: true,
`Len`: true,
`Lena`: true,
`Lenard`: true,
`Lennie`: true,
`Lenny`: true,
`Lenora`: true,
`Lenore`: true,
`Leo`: true,
`Leola`: true,
`Leon`: true,
`Leona`: true,
`Leonard`: true,
`Leonardo`: true,
`Leroy`: true,
`Les`: true,
`Lesa`: true,
`Leslee`: true,
`Lesley`: true,
`Leslie`: true,
`Lessie`: true,
`Lester`: true,
`Leta`: true,
`Letha`: true,
`Leticia`: true,
`Letitia`: true,
`Levern`: true,
`Levi`: true,
`Levon`: true,
`Lewis`: true,
`Lex`: true,
`Libby`: true,
`Lila`: true,
`Lillian`: true,
`Lillie`: true,
`Lilly`: true,
`Lily`: true,
`Lincoln`: true,
`Linda`: true,
`Lindsay`: true,
`Lindsey`: true,
`Lindy`: true,
`Linnea`: true,
`Linwood`: true,
`Lionel`: true,
`Lisa`: true,
`Lise`: true,
`Lizabeth`: true,
`Lizzie`: true,
`Lloyd`: true,
`Logan`: true,
`Lois`: true,
`Lola`: true,
`Lolita`: true,
`Lon`: true,
`Lona`: true,
`Lonnie`: true,
`Lonny`: true,
`Lora`: true,
`Loraine`: true,
`Lorelei`: true,
`Loren`: true,
`Lorena`: true,
`Lorene`: true,
`Lorenzo`: true,
`Loretta`: true,
`Lori`: true,
`Lorie`: true,
`Lorin`: true,
`Lorinda`: true,
`Lorna`: true,
`Lorraine`: true,
`Lorri`: true,
`Lorrie`: true,
`Lottie`: true,
`Lou`: true,
`Louann`: true,
`Louella`: true,
`Louie`: true,
`Louis`: true,
`Louisa`: true,
`Louise`: true,
`Lourdes`: true,
`Lowell`: true,
`Loyd`: true,
`Lu`: true,
`Luann`: true,
`Luanne`: true,
`Lucia`: true,
`Lucille`: true,
`Lucinda`: true,
`Lucius`: true,
`Lucretia`: true,
`Lucy`: true,
`Luella`: true,
`Luis`: true,
`Luke`: true,
`Lula`: true,
`Lupe`: true,
`Luther`: true,
`Luz`: true,
`Lydia`: true,
`Lyle`: true,
`Lyman`: true,
`Lyn`: true,
`Lynda`: true,
`Lyndon`: true,
`Lynette`: true,
`Lynn`: true,
`Lynne`: true,
`Lynnette`: true,
`Lynwood`: true,
`Mabel`: true,
`Mable`: true,
`Mac`: true,
`Mack`: true,
`Madeleine`: true,
`Madeline`: true,
`Madelyn`: true,
`Madonna`: true,
`Mae`: true,
`Magdalena`: true,
`Maggie`: true,
`Major`: true,
`Malcolm`: true,
`Malinda`: true,
`Mamie`: true,
`Manuel`: true,
`Mara`: true,
`Marc`: true,
`Marcel`: true,
`Marcella`: true,
`Marci`: true,
`Marcia`: true,
`Marcie`: true,
`Marco`: true,
`Marcos`: true,
`Marcus`: true,
`Marcy`: true,
`Margaret`: true,
`Margarita`: true,
`Margarito`: true,
`Margery`: true,
`Margie`: true,
`Margo`: true,
`Margot`: true,
`Margret`: true,
`Marguerite`: true,
`Mari`: true,
`Maria`: true,
`Marian`: true,
`Mariann`: true,
`Marianna`: true,
`Marianne`: true,
`Maribeth`: true,
`Marie`: true,
`Marietta`: true,
`Marilee`: true,
`Marilyn`: true,
`Marilynn`: true,
`Marina`: true,
`Mario`: true,
`Marion`: true,
`Marita`: true,
`Marjorie`: true,
`Mark`: true,
`Marla`: true,
`Marlene`: true,
`Marlin`: true,
`Marlon`: true,
`Marlys`: true,
`Marsha`: true,
`Marshall`: true,
`Marta`: true,
`Martha`: true,
`Martin`: true,
`Martina`: true,
`Marty`: true,
`Marva`: true,
`Marvin`: true,
`Mary`: true,
`Maryann`: true,
`Maryanne`: true,
`Marybeth`: true,
`Maryellen`: true,
`Maryjane`: true,
`Maryjo`: true,
`Marylou`: true,
`Mason`: true,
`Mathew`: true,
`Matilda`: true,
`Matt`: true,
`Matthew`: true,
`Mattie`: true,
`Maura`: true,
`Maureen`: true,
`Maurice`: true,
`Mavis`: true,
`Max`: true,
`Maxine`: true,
`Maxwell`: true,
`May`: true,
`Maynard`: true,
`Mckinley`: true,
`Megan`: true,
`Mel`: true,
`Melanie`: true,
`Melba`: true,
`Melinda`: true,
`Melissa`: true,
`Melodee`: true,
`Melodie`: true,
`Melody`: true,
`Melva`: true,
`Melvin`: true,
`Mercedes`: true,
`Meredith`: true,
`Merle`: true,
`Merlin`: true,
`Merri`: true,
`Merrill`: true,
`Merry`: true,
`Mervin`: true,
`Meryl`: true,
`Michael`: true,
`Michal`: true,
`Michale`: true,
`Micheal`: true,
`Michel`: true,
`Michele`: true,
`Michelle`: true,
`Mickey`: true,
`Mickie`: true,
`Micky`: true,
`Migdalia`: true,
`Miguel`: true,
`Mike`: true,
`Mikel`: true,
`Milagros`: true,
`Milan`: true,
`Mildred`: true,
`Miles`: true,
`Milford`: true,
`Millard`: true,
`Millicent`: true,
`Millie`: true,
`Milo`: true,
`Milton`: true,
`Mimi`: true,
`Mindy`: true,
`Minerva`: true,
`Minnie`: true,
`Miriam`: true,
`Mitch`: true,
`Mitchel`: true,
`Mitchell`: true,
`Mitzi`: true,
`Moira`: true,
`Moises`: true,
`Mollie`: true,
`Molly`: true,
`Mona`: true,
`Monica`: true,
`Monique`: true,
`Monroe`: true,
`Monte`: true,
`Monty`: true,
`Morgan`: true,
`Morris`: true,
`Mose`: true,
`Moses`: true,
`Muriel`: true,
`Murphy`: true,
`Murray`: true,
`Myles`: true,
`Myra`: true,
`Myrna`: true,
`Myron`: true,
`Myrtle`: true,
`Nadine`: true,
`Nan`: true,
`Nanci`: true,
`Nancy`: true,
`Nanette`: true,
`Nannette`: true,
`Naomi`: true,
`Napoleon`: true,
`Natalie`: true,
`Nathan`: true,
`Nathaniel`: true,
`Neal`: true,
`Ned`: true,
`Nedra`: true,
`Neil`: true,
`Nelda`: true,
`Nellie`: true,
`Nelson`: true,
`Nettie`: true,
`Neva`: true,
`Newton`: true,
`Nicholas`: true,
`Nick`: true,
`Nicki`: true,
`Nickolas`: true,
`Nicky`: true,
`Nicolas`: true,
`Nicole`: true,
`Nikki`: true,
`Nina`: true,
`Nita`: true,
`Noah`: true,
`Noe`: true,
`Noel`: true,
`Noemi`: true,
`Nola`: true,
`Nolan`: true,
`Nona`: true,
`Nora`: true,
`Norbert`: true,
`Noreen`: true,
`Norma`: true,
`Norman`: true,
`Normand`: true,
`Norris`: true,
`Odell`: true,
`Odessa`: true,
`Odis`: true,
`Ofelia`: true,
`Ola`: true,
`Olen`: true,
`Olga`: true,
`Olin`: true,
`Oliver`: true,
`Olivia`: true,
`Ollie`: true,
`Omar`: true,
`Opal`: true,
`Ophelia`: true,
`Ora`: true,
`Oralia`: true,
`Orlando`: true,
`Orval`: true,
`Orville`: true,
`Oscar`: true,
`Otha`: true,
`Otis`: true,
`Otto`: true,
`Owen`: true,
`Pablo`: true,
`Paige`: true,
`Pam`: true,
`Pamala`: true,
`Pamela`: true,
`Pamella`: true,
`Pasquale`: true,
`Pat`: true,
`Patrica`: true,
`Patrice`: true,
`Patricia`: true,
`Patrick`: true,
`Patsy`: true,
`Patti`: true,
`Pattie`: true,
`Patty`: true,
`Paul`: true,
`Paula`: true,
`Paulette`: true,
`Pauline`: true,
`Pearl`: true,
`Pearlie`: true,
`Pedro`: true,
`Peggie`: true,
`Peggy`: true,
`Penelope`: true,
`Pennie`: true,
`Penny`: true,
`Percy`: true,
`Perry`: true,
`Pete`: true,
`Peter`: true,
`Phil`: true,
`Philip`: true,
`Phoebe`: true,
`Phyllis`: true,
`Pierre`: true,
`Polly`: true,
`Porter`: true,
`Portia`: true,
`Preston`: true,
`Prince`: true,
`Priscilla`: true,
`Queen`: true,
`Quentin`: true,
`Quincy`: true,
`Quinton`: true,
`Rachael`: true,
`Rachel`: true,
`Rachelle`: true,
`Rae`: true,
`Rafael`: true,
`Raleigh`: true,
`Ralph`: true,
`Ramiro`: true,
`Ramon`: true,
`Ramona`: true,
`Rand`: true,
`Randal`: true,
`Randall`: true,
`Randel`: true,
`Randi`: true,
`Randle`: true,
`Randolf`: true,
`Randolph`: true,
`Randy`: true,
`Raphael`: true,
`Raquel`: true,
`Raul`: true,
`Ray`: true,
`Rayford`: true,
`Raymon`: true,
`Raymond`: true,
`Raymundo`: true,
`Reba`: true,
`Rebecca`: true,
`Rebekah`: true,
`Reed`: true,
`Regenia`: true,
`Reggie`: true,
`Regina`: true,
`Reginald`: true,
`Regis`: true,
`Reid`: true,
`Rena`: true,
`Renae`: true,
`Rene`: true,
`Renee`: true,
`Renita`: true,
`Reta`: true,
`Retha`: true,
`Reuben`: true,
`Reva`: true,
`Rex`: true,
`Reynaldo`: true,
`Reynold`: true,
`Rhea`: true,
`Rhett`: true,
`Rhoda`: true,
`Rhonda`: true,
`Ricardo`: true,
`Richard`: true,
`Rick`: true,
`Rickey`: true,
`Ricki`: true,
`Rickie`: true,
`Ricky`: true,
`Riley`: true,
`Rita`: true,
`Ritchie`: true,
`Rob`: true,
`Robbie`: true,
`Robbin`: true,
`Robby`: true,
`Robert`: true,
`Roberta`: true,
`Roberto`: true,
`Robin`: true,
`Robyn`: true,
`Rocco`: true,
`Rochelle`: true,
`Rock`: true,
`Rocky`: true,
`Rod`: true,
`Roderick`: true,
`Rodger`: true,
`Rodney`: true,
`Rodolfo`: true,
`Rodrick`: true,
`Rogelio`: true,
`Roger`: true,
`Rogers`: true,
`Roland`: true,
`Rolando`: true,
`Rolf`: true,
`Rolland`: true,
`Roman`: true,
`Romona`: true,
`Ron`: true,
`Rona`: true,
`Ronald`: true,
`Ronda`: true,
`Roni`: true,
`Ronna`: true,
`Ronnie`: true,
`Ronny`: true,
`Roosevelt`: true,
`Rory`: true,
`Rosa`: true,
`Rosalie`: true,
`Rosalind`: true,
`Rosalinda`: true,
`Rosalyn`: true,
`Rosanna`: true,
`Rosanne`: true,
`Rosario`: true,
`Roscoe`: true,
`Rose`: true,
`Roseann`: true,
`Roseanne`: true,
`Rosemarie`: true,
`Rosemary`: true,
`Rosendo`: true,
`Rosetta`: true,
`Rosie`: true,
`Rosita`: true,
`Roslyn`: true,
`Ross`: true,
`Rowena`: true,
`Rowland`: true,
`Roxane`: true,
`Roxann`: true,
`Roxanna`: true,
`Roxanne`: true,
`Roxie`: true,
`Roy`: true,
`Royal`: true,
`Royce`: true,
`Ruben`: true,
`Rubin`: true,
`Ruby`: true,
`Rudolfo`: true,
`Rudolph`: true,
`Rudy`: true,
`Rufus`: true,
`Russ`: true,
`Russel`: true,
`Russell`: true,
`Rusty`: true,
`Ruth`: true,
`Ruthie`: true,
`Ryan`: true,
`Sabrina`: true,
`Sadie`: true,
`Sallie`: true,
`Sally`: true,
`Salvador`: true,
`Salvatore`: true,
`Sam`: true,
`Sammie`: true,
`Sammy`: true,
`Samuel`: true,
`Sandi`: true,
`Sandra`: true,
`Sandy`: true,
`Sanford`: true,
`Santiago`: true,
`Santos`: true,
`Sara`: true,
`Sarah`: true,
`Saul`: true,
`Saundra`: true,
`Scot`: true,
`Scott`: true,
`Scottie`: true,
`Scotty`: true,
`Sean`: true,
`Selma`: true,
`Serena`: true,
`Sergio`: true,
`Seth`: true,
`Shane`: true,
`Shannon`: true,
`Sharen`: true,
`Shari`: true,
`Sharlene`: true,
`Sharon`: true,
`Sharron`: true,
`Shaun`: true,
`Shauna`: true,
`Shawn`: true,
`Sheila`: true,
`Sheilah`: true,
`Shelby`: true,
`Sheldon`: true,
`Shelia`: true,
`Shelley`: true,
`Shelly`: true,
`Shelton`: true,
`Sheree`: true,
`Sheri`: true,
`Sherie`: true,
`Sherman`: true,
`Sheron`: true,
`Sherree`: true,
`Sherri`: true,
`Sherrie`: true,
`Sherrill`: true,
`Sherry`: true,
`Sherryl`: true,
`Sherwood`: true,
`Sheryl`: true,
`Sheryll`: true,
`Shirlene`: true,
`Shirley`: true,
`Sidney`: true,
`Silas`: true,
`Silvia`: true,
`Simon`: true,
`Skip`: true,
`Solomon`: true,
`Sondra`: true,
`Sonia`: true,
`Sonja`: true,
`Sonny`: true,
`Sonya`: true,
`Sophia`: true,
`Sophie`: true,
`Spencer`: true,
`Stacey`: true,
`Stacy`: true,
`Stan`: true,
`Stanford`: true,
`Stanley`: true,
`Stanton`: true,
`Starla`: true,
`Stella`: true,
`Stephan`: true,
`Stephanie`: true,
`Stephen`: true,
`Sterling`: true,
`Stevan`: true,
`Steve`: true,
`Steven`: true,
`Stevie`: true,
`Stewart`: true,
`Stuart`: true,
`Sue`: true,
`Suellen`: true,
`Susan`: true,
`Susana`: true,
`Susanna`: true,
`Susanne`: true,
`Susie`: true,
`Suzan`: true,
`Suzann`: true,
`Suzanne`: true,
`Suzette`: true,
`Sybil`: true,
`Sydney`: true,
`Sylvester`: true,
`Sylvia`: true,
`Tad`: true,
`Talmadge`: true,
`Tamara`: true,
`Tami`: true,
`Tammy`: true,
`Tana`: true,
`Tanya`: true,
`Tara`: true,
`Taryn`: true,
`Taylor`: true,
`Ted`: true,
`Teddy`: true,
`Teena`: true,
`Tena`: true,
`Terence`: true,
`Teresa`: true,
`Terese`: true,
`Teressa`: true,
`Teri`: true,
`Terrance`: true,
`Terrell`: true,
`Terrence`: true,
`Terri`: true,
`Terrie`: true,
`Terry`: true,
`Thad`: true,
`Thaddeus`: true,
`Thea`: true,
`Theadore`: true,
`Thelma`: true,
`Theodis`: true,
`Theodore`: true,
`Theresa`: true,
`Therese`: true,
`Theron`: true,
`Thomas`: true,
`Thurman`: true,
`Tim`: true,
`Timmothy`: true,
`Timmy`: true,
`Timothy`: true,
`Tina`: true,
`Toby`: true,
`Tod`: true,
`Todd`: true,
`Tom`: true,
`Tomas`: true,
`Tommie`: true,
`Tommy`: true,
`Toney`: true,
`Toni`: true,
`Tonia`: true,
`Tony`: true,
`Tonya`: true,
`Tracey`: true,
`Tracy`: true,
`Travis`: true,
`Trena`: true,
`Trent`: true,
`Treva`: true,
`Tricia`: true,
`Trina`: true,
`Troy`: true,
`Trudy`: true,
`Truman`: true,
`Twila`: true,
`Twyla`: true,
`Ty`: true,
`Tyler`: true,
`Tyrone`: true,
`Ulysses`: true,
`Ursula`: true,
`Val`: true,
`Valarie`: true,
`Valentine`: true,
`Valeria`: true,
`Valerie`: true,
`Valorie`: true,
`Van`: true,
`Vance`: true,
`Vanessa`: true,
`Vaughn`: true,
`Velda`: true,
`Velma`: true,
`Venita`: true,
`Vera`: true,
`Vern`: true,
`Verna`: true,
`Verne`: true,
`Vernell`: true,
`Vernita`: true,
`Vernon`: true,
`Veronica`: true,
`Vicente`: true,
`Vickey`: true,
`Vicki`: true,
`Vickie`: true,
`Vicky`: true,
`Victor`: true,
`Victoria`: true,
`Vikki`: true,
`Vince`: true,
`Vincent`: true,
`Viola`: true,
`Violet`: true,
`Virgie`: true,
`Virgil`: true,
`Virginia`: true,
`Vito`: true,
`Vivian`: true,
`Von`: true,
`Vonda`: true,
`Wade`: true,
`Walker`: true,
`Wallace`: true,
`Wally`: true,
`Walter`: true,
`Wanda`: true,
`Ward`: true,
`Wardell`: true,
`Warner`: true,
`Warren`: true,
`Waymon`: true,
`Wayne`: true,
`Weldon`: true,
`Wendell`: true,
`Wendy`: true,
`Wesley`: true,
`Wilbert`: true,
`Wilbur`: true,
`Wilburn`: true,
`Wiley`: true,
`Wilford`: true,
`Wilfred`: true,
`Wilfredo`: true,
`Will`: true,
`Willa`: true,
`Willard`: true,
`William`: true,
`Williams`: true,
`Willie`: true,
`Willis`: true,
`Wilma`: true,
`Wilmer`: true,
`Wilson`: true,
`Wilton`: true,
`Winford`: true,
`Winfred`: true,
`Winifred`: true,
`Winona`: true,
`Winston`: true,
`Woodrow`: true,
`Woody`: true,
`Wyatt`: true,
`Xavier`: true,
`Yolanda`: true,
`Yvette`: true,
`Yvonne`: true,
`Zachary`: true,
`Zane`: true,
`Zelda`: true,
`Zelma`: true,
`Zoe`: true},
`PhoneNumber`: {
`(000)503-3290`: true,
`(002)912-8668`: true,
`(003)060-0974`: true,
`(003)791-2955`: true,
`(004)371-3089`: true,
`(004)706-7495`: true,
`(004)723-8271`: true,
`(007)105-2079`: true,
`(009)384-4587`: true,
`(009)489-2523`: true,
`(010)647-1327`: true,
`(013)691-1470`: true,
`(015)036-3156`: true,
`(015)289-6392`: true,
`(016)540-1454`: true,
`(017)070-6374`: true,
`(018)715-4178`: true,
`(019)139-0416`: true,
`(019)716-0500`: true,
`(020)194-0034`: true,
`(020)849-4973`: true,
`(021)223-4523`: true,
`(021)422-2184`: true,
`(022)869-2197`: true,
`(024)065-9119`: true,
`(025)904-1039`: true,
`(027)208-2365`: true,
`(027)475-6720`: true,
`(028)108-0238`: true,
`(029)036-7289`: true,
`(030)582-4128`: true,
`(031)269-4560`: true,
`(031)424-9609`: true,
`(032)815-6760`: true,
`(033)244-0726`: true,
`(033)438-4988`: true,
`(033)586-0374`: true,
`(034)111-9582`: true,
`(036)676-1372`: true,
`(038)211-1102`: true,
`(040)824-5847`: true,
`(043)065-6356`: true,
`(043)596-2806`: true,
`(043)823-2538`: true,
`(044)656-4942`: true,
`(046)348-4079`: true,
`(046)414-7849`: true,
`(047)109-9173`: true,
`(048)115-6190`: true,
`(051)838-9519`: true,
`(052)604-8044`: true,
`(052)921-2833`: true,
`(055)386-6569`: true,
`(055)432-4112`: true,
`(056)915-1096`: true,
`(056)992-2232`: true,
`(058)109-0276`: true,
`(058)864-2295`: true,
`(059)280-5179`: true,
`(059)520-5259`: true,
`(059)779-4344`: true,
`(060)858-5109`: true,
`(060)983-1989`: true,
`(061)516-4952`: true,
`(062)657-6469`: true,
`(063)155-1229`: true,
`(064)457-1271`: true,
`(065)373-0732`: true,
`(066)074-6490`: true,
`(069)230-1887`: true,
`(069)742-8257`: true,
`(069)754-9611`: true,
`(070)462-1205`: true,
`(072)395-1492`: true,
`(072)420-3523`: true,
`(075)489-1136`: true,
`(077)156-7343`: true,
`(077)541-2856`: true,
`(079)145-7971`: true,
`(080)664-4237`: true,
`(082)040-5891`: true,
`(082)195-4821`: true,
`(083)406-6723`: true,
`(083)483-5991`: true,
`(087)241-5023`: true,
`(088)489-8724`: true,
`(088)696-6852`: true,
`(089)811-1888`: true,
`(091)639-8297`: true,
`(092)966-3934`: true,
`(093)256-8654`: true,
`(095)672-4654`: true,
`(098)391-8341`: true,
`(098)416-8830`: true,
`(099)628-5848`: true,
`(102)709-6111`: true,
`(103)228-7215`: true,
`(103)262-0320`: true,
`(103)292-5439`: true,
`(104)622-7908`: true,
`(104)689-0166`: true,
`(105)615-5856`: true,
`(105)628-0336`: true,
`(105)702-0880`: true,
`(106)534-0914`: true,
`(107)732-2379`: true,
`(107)784-3345`: true,
`(108)819-9427`: true,
`(108)873-6082`: true,
`(109)347-7690`: true,
`(109)608-3776`: true,
`(109)916-7853`: true,
`(112)633-8283`: true,
`(112)752-0942`: true,
`(115)222-1944`: true,
`(115)889-6818`: true,
`(118)393-8780`: true,
`(118)762-1615`: true,
`(119)216-6501`: true,
`(119)977-7977`: true,
`(121)864-7287`: true,
`(122)091-6358`: true,
`(123)274-9613`: true,
`(123)685-2708`: true,
`(125)441-7663`: true,
`(126)225-8991`: true,
`(126)524-4596`: true,
`(130)091-2416`: true,
`(131)788-3073`: true,
`(134)894-6688`: true,
`(134)970-2755`: true,
`(135)450-8105`: true,
`(137)492-1205`: true,
`(138)060-1315`: true,
`(138)928-2523`: true,
`(139)030-1713`: true,
`(139)455-2779`: true,
`(139)474-6928`: true,
`(142)564-5602`: true,
`(143)433-3909`: true,
`(143)950-0817`: true,
`(146)704-7067`: true,
`(147)340-8591`: true,
`(148)412-5568`: true,
`(148)799-2429`: true,
`(150)058-4475`: true,
`(151)498-8566`: true,
`(151)902-0269`: true,
`(152)710-9598`: true,
`(152)906-3006`: true,
`(156)356-7137`: true,
`(157)024-3918`: true,
`(157)687-3493`: true,
`(157)927-8202`: true,
`(159)523-6517`: true,
`(160)068-4907`: true,
`(161)463-5188`: true,
`(162)153-7433`: true,
`(163)054-3027`: true,
`(163)458-5291`: true,
`(164)744-0036`: true,
`(164)909-3183`: true,
`(166)991-6655`: true,
`(167)082-3478`: true,
`(167)820-3863`: true,
`(168)304-0302`: true,
`(169)008-2343`: true,
`(169)355-2528`: true,
`(171)295-2312`: true,
`(171)894-0025`: true,
`(171)959-4074`: true,
`(173)456-3664`: true,
`(176)494-8246`: true,
`(176)680-7428`: true,
`(179)404-1075`: true,
`(180)432-8504`: true,
`(180)595-8939`: true,
`(181)156-2076`: true,
`(183)430-9688`: true,
`(185)639-4760`: true,
`(186)386-6132`: true,
`(186)592-2245`: true,
`(188)591-6136`: true,
`(189)710-4631`: true,
`(190)421-5552`: true,
`(192)073-0277`: true,
`(192)685-9015`: true,
`(199)210-7188`: true,
`(200)354-8721`: true,
`(202)217-5102`: true,
`(202)624-9486`: true,
`(202)866-6263`: true,
`(203)831-7337`: true,
`(205)499-3441`: true,
`(205)891-8016`: true,
`(207)308-2766`: true,
`(207)344-8223`: true,
`(208)187-3910`: true,
`(208)759-8568`: true,
`(209)732-3442`: true,
`(209)734-0145`: true,
`(210)534-7153`: true,
`(211)916-6352`: true,
`(211)971-2024`: true,
`(212)603-0058`: true,
`(212)821-6961`: true,
`(216)555-9335`: true,
`(218)988-1372`: true,
`(221)558-6885`: true,
`(223)293-9838`: true,
`(223)343-4132`: true,
`(224)088-3864`: true,
`(224)333-7890`: true,
`(226)093-3014`: true,
`(226)934-8448`: true,
`(228)057-2396`: true,
`(228)202-0426`: true,
`(228)273-1420`: true,
`(228)294-3872`: true,
`(228)828-3818`: true,
`(229)327-7533`: true,
`(231)145-1584`: true,
`(231)247-7563`: true,
`(232)714-2933`: true,
`(234)386-0989`: true,
`(234)815-7007`: true,
`(236)498-9009`: true,
`(238)335-3862`: true,
`(241)156-5823`: true,
`(245)535-3716`: true,
`(245)835-1382`: true,
`(248)993-0603`: true,
`(249)745-9320`: true,
`(251)321-5064`: true,
`(252)623-2197`: true,
`(253)291-2275`: true,
`(254)442-1760`: true,
`(255)809-0577`: true,
`(256)881-9253`: true,
`(257)051-5138`: true,
`(257)636-0217`: true,
`(258)316-0310`: true,
`(258)508-7852`: true,
`(258)833-9222`: true,
`(258)938-2039`: true,
`(259)342-4512`: true,
`(261)300-0096`: true,
`(267)112-7989`: true,
`(267)554-2469`: true,
`(268)922-4967`: true,
`(268)949-2505`: true,
`(270)546-9048`: true,
`(271)092-2658`: true,
`(273)430-7094`: true,
`(274)769-7713`: true,
`(276)877-7439`: true,
`(278)682-1772`: true,
`(279)163-0060`: true,
`(279)452-2109`: true,
`(280)698-2335`: true,
`(281)215-4807`: true,
`(281)544-8581`: true,
`(282)151-9460`: true,
`(282)306-2569`: true,
`(283)016-6536`: true,
`(286)743-1038`: true,
`(287)527-8113`: true,
`(287)889-1233`: true,
`(287)889-2501`: true,
`(288)817-0784`: true,
`(289)609-1858`: true,
`(289)870-8706`: true,
`(290)228-8981`: true,
`(291)201-8175`: true,
`(291)499-0374`: true,
`(291)627-6797`: true,
`(291)806-1698`: true,
`(291)982-9942`: true,
`(292)270-0243`: true,
`(292)824-1320`: true,
`(293)181-8432`: true,
`(294)850-2124`: true,
`(297)006-5022`: true,
`(298)340-7100`: true,
`(300)986-2736`: true,
`(301)434-3859`: true,
`(303)741-3296`: true,
`(304)296-8457`: true,
`(307)143-4944`: true,
`(307)683-8701`: true,
`(307)700-4692`: true,
`(308)991-5267`: true,
`(309)482-8110`: true,
`(309)548-7794`: true,
`(310)387-9193`: true,
`(310)440-8045`: true,
`(311)678-3486`: true,
`(313)077-0397`: true,
`(313)596-2652`: true,
`(314)797-3015`: true,
`(316)861-5772`: true,
`(318)522-4088`: true,
`(318)756-0731`: true,
`(319)972-9529`: true,
`(320)470-8698`: true,
`(323)679-5219`: true,
`(323)805-4742`: true,
`(323)861-8409`: true,
`(325)418-7973`: true,
`(325)938-7699`: true,
`(327)841-4635`: true,
`(328)109-9783`: true,
`(334)235-4488`: true,
`(334)686-5697`: true,
`(335)297-7433`: true,
`(336)833-0445`: true,
`(338)895-1370`: true,
`(338)965-6696`: true,
`(339)431-4537`: true,
`(339)947-4189`: true,
`(339)949-6401`: true,
`(341)603-5104`: true,
`(342)252-0512`: true,
`(342)325-2247`: true,
`(342)535-5615`: true,
`(342)773-1673`: true,
`(343)813-8373`: true,
`(346)818-8636`: true,
`(346)923-4272`: true,
`(347)249-5996`: true,
`(347)659-2569`: true,
`(347)813-6348`: true,
`(347)898-4726`: true,
`(348)105-2636`: true,
`(348)633-5659`: true,
`(349)834-7568`: true,
`(349)940-3903`: true,
`(350)551-1949`: true,
`(350)969-3384`: true,
`(351)521-8096`: true,
`(351)657-9527`: true,
`(351)920-9979`: true,
`(352)346-3192`: true,
`(352)572-3753`: true,
`(352)813-7699`: true,
`(353)571-9328`: true,
`(353)734-4437`: true,
`(357)206-3921`: true,
`(358)260-2906`: true,
`(358)443-3105`: true,
`(359)055-7442`: true,
`(359)660-2174`: true,
`(362)566-6872`: true,
`(363)696-5662`: true,
`(364)455-6039`: true,
`(365)618-1800`: true,
`(365)987-5723`: true,
`(366)745-5764`: true,
`(368)150-3525`: true,
`(369)675-0347`: true,
`(370)852-2804`: true,
`(371)457-3138`: true,
`(371)824-8676`: true,
`(372)873-9163`: true,
`(373)306-5227`: true,
`(374)472-6944`: true,
`(375)579-0962`: true,
`(377)342-9398`: true,
`(378)105-2471`: true,
`(378)221-9592`: true,
`(379)130-9890`: true,
`(379)211-6896`: true,
`(379)284-6108`: true,
`(381)263-3395`: true,
`(381)673-7468`: true,
`(383)601-1058`: true,
`(384)180-2584`: true,
`(384)938-6496`: true,
`(385)290-8460`: true,
`(385)833-6509`: true,
`(388)119-2749`: true,
`(388)258-1387`: true,
`(388)375-7301`: true,
`(390)978-2697`: true,
`(395)291-4430`: true,
`(395)878-6308`: true,
`(395)931-7094`: true,
`(399)054-4627`: true,
`(399)249-5648`: true,
`(400)147-2102`: true,
`(400)455-9848`: true,
`(400)470-4740`: true,
`(403)559-8817`: true,
`(404)385-2422`: true,
`(404)638-2932`: true,
`(405)145-0317`: true,
`(406)051-9985`: true,
`(406)176-2347`: true,
`(406)569-7233`: true,
`(407)155-6201`: true,
`(409)090-0084`: true,
`(409)346-6541`: true,
`(409)765-1451`: true,
`(410)625-4841`: true,
`(411)685-1825`: true,
`(411)738-3402`: true,
`(413)204-5839`: true,
`(414)665-3249`: true,
`(415)319-3966`: true,
`(415)766-6735`: true,
`(418)269-7776`: true,
`(418)866-9389`: true,
`(419)179-5498`: true,
`(419)296-0568`: true,
`(420)177-7801`: true,
`(421)803-5499`: true,
`(423)675-8558`: true,
`(424)220-4883`: true,
`(424)837-7127`: true,
`(425)394-7431`: true,
`(427)322-3615`: true,
`(428)559-6652`: true,
`(428)747-2642`: true,
`(429)719-2829`: true,
`(430)031-9275`: true,
`(431)695-8541`: true,
`(432)483-4111`: true,
`(433)897-2204`: true,
`(435)172-8495`: true,
`(436)428-3533`: true,
`(437)490-4436`: true,
`(438)418-6258`: true,
`(439)156-8045`: true,
`(439)520-0144`: true,
`(440)035-0301`: true,
`(440)661-3829`: true,
`(440)964-2847`: true,
`(443)208-7431`: true,
`(444)531-4151`: true,
`(447)867-1650`: true,
`(450)661-7337`: true,
`(451)445-3454`: true,
`(453)453-9496`: true,
`(453)742-6569`: true,
`(453)841-9597`: true,
`(454)612-4389`: true,
`(455)766-1641`: true,
`(456)344-1269`: true,
`(457)211-2990`: true,
`(458)744-9454`: true,
`(458)841-9455`: true,
`(460)923-4708`: true,
`(462)249-1126`: true,
`(462)769-7484`: true,
`(463)792-7207`: true,
`(463)793-0089`: true,
`(464)043-7396`: true,
`(466)020-8794`: true,
`(466)719-5502`: true,
`(467)695-5419`: true,
`(468)265-2733`: true,
`(469)504-0680`: true,
`(470)419-3270`: true,
`(470)974-5922`: true,
`(470)978-8523`: true,
`(471)551-4277`: true,
`(472)498-6104`: true,
`(474)092-0985`: true,
`(474)515-2118`: true,
`(477)355-7502`: true,
`(477)816-0873`: true,
`(478)951-7242`: true,
`(479)641-6937`: true,
`(481)890-6449`: true,
`(482)537-9094`: true,
`(482)608-1906`: true,
`(485)044-4689`: true,
`(485)878-2778`: true,
`(486)196-0236`: true,
`(487)361-9472`: true,
`(488)227-1192`: true,
`(490)363-1724`: true,
`(490)581-1683`: true,
`(491)056-2691`: true,
`(492)340-2105`: true,
`(493)449-9353`: true,
`(493)558-2330`: true,
`(495)881-8656`: true,
`(496)649-3490`: true,
`(498)483-6438`: true,
`(500)126-3629`: true,
`(502)541-6350`: true,
`(503)799-9651`: true,
`(504)400-5778`: true,
`(504)600-9630`: true,
`(506)518-9133`: true,
`(508)009-0311`: true,
`(513)843-8210`: true,
`(514)218-4313`: true,
`(514)463-7083`: true,
`(515)141-9299`: true,
`(516)059-4087`: true,
`(516)636-3997`: true,
`(517)643-3356`: true,
`(519)191-9417`: true,
`(523)165-7674`: true,
`(525)142-5695`: true,
`(525)580-0351`: true,
`(526)225-3999`: true,
`(526)368-4043`: true,
`(526)855-2737`: true,
`(527)675-6113`: true,
`(530)287-4456`: true,
`(530)814-1162`: true,
`(530)935-8616`: true,
`(531)134-1587`: true,
`(533)721-7542`: true,
`(533)885-1179`: true,
`(535)896-1109`: true,
`(536)040-4796`: true,
`(537)119-3022`: true,
`(539)327-4819`: true,
`(539)747-3658`: true,
`(541)644-7108`: true,
`(542)039-7083`: true,
`(544)333-8413`: true,
`(544)881-1615`: true,
`(547)205-1413`: true,
`(549)300-1441`: true,
`(549)328-2327`: true,
`(551)423-3511`: true,
`(551)901-6452`: true,
`(552)265-2807`: true,
`(553)748-3267`: true,
`(556)012-0350`: true,
`(556)666-4825`: true,
`(557)080-4887`: true,
`(557)413-6179`: true,
`(557)891-7243`: true,
`(558)110-5674`: true,
`(559)019-2177`: true,
`(560)398-2890`: true,
`(560)492-2803`: true,
`(560)824-4296`: true,
`(563)057-9593`: true,
`(563)135-7239`: true,
`(566)343-6158`: true,
`(567)343-3601`: true,
`(567)699-0964`: true,
`(567)955-4755`: true,
`(568)455-5518`: true,
`(569)485-1351`: true,
`(569)675-5592`: true,
`(572)256-5255`: true,
`(572)583-6670`: true,
`(572)599-8576`: true,
`(574)370-3785`: true,
`(574)448-6569`: true,
`(575)149-1800`: true,
`(575)519-6399`: true,
`(575)968-9030`: true,
`(576)008-9199`: true,
`(578)513-1672`: true,
`(578)513-3257`: true,
`(578)737-4341`: true,
`(580)561-3207`: true,
`(584)846-4230`: true,
`(586)302-0737`: true,
`(587)286-0462`: true,
`(588)157-6521`: true,
`(589)219-4327`: true,
`(590)382-0464`: true,
`(594)780-8689`: true,
`(595)171-4971`: true,
`(595)609-5113`: true,
`(595)742-1887`: true,
`(596)242-5986`: true,
`(596)787-1563`: true,
`(597)063-4595`: true,
`(597)704-7408`: true,
`(600)599-8053`: true,
`(601)292-0226`: true,
`(601)430-4410`: true,
`(602)386-1964`: true,
`(603)339-0991`: true,
`(603)454-5797`: true,
`(603)922-9921`: true,
`(605)166-2693`: true,
`(606)491-6899`: true,
`(608)159-1463`: true,
`(609)075-9738`: true,
`(610)258-6392`: true,
`(610)451-3175`: true,
`(616)084-5568`: true,
`(616)367-5125`: true,
`(616)591-9407`: true,
`(617)933-5027`: true,
`(619)384-5684`: true,
`(620)091-7168`: true,
`(620)848-0484`: true,
`(621)993-9659`: true,
`(622)021-5399`: true,
`(622)665-9770`: true,
`(623)551-5738`: true,
`(624)192-9953`: true,
`(624)330-3619`: true,
`(626)054-3967`: true,
`(627)966-9063`: true,
`(629)328-9582`: true,
`(629)426-8169`: true,
`(630)649-4087`: true,
`(630)688-7013`: true,
`(631)283-9658`: true,
`(631)861-0610`: true,
`(633)271-7066`: true,
`(634)767-7614`: true,
`(635)817-4500`: true,
`(636)019-9596`: true,
`(636)648-5663`: true,
`(637)469-1401`: true,
`(637)992-1529`: true,
`(640)532-7532`: true,
`(640)808-2950`: true,
`(643)406-5013`: true,
`(643)617-1328`: true,
`(643)815-7142`: true,
`(645)939-1884`: true,
`(646)330-7552`: true,
`(646)430-4425`: true,
`(646)757-9645`: true,
`(648)576-6542`: true,
`(649)281-5817`: true,
`(651)434-7877`: true,
`(651)855-5503`: true,
`(651)907-9152`: true,
`(652)201-1937`: true,
`(652)677-9302`: true,
`(653)913-3561`: true,
`(653)919-0290`: true,
`(654)214-0363`: true,
`(654)584-3638`: true,
`(655)628-3423`: true,
`(656)205-8838`: true,
`(658)186-0584`: true,
`(660)553-2359`: true,
`(660)614-6256`: true,
`(661)888-8175`: true,
`(662)918-0585`: true,
`(664)486-7933`: true,
`(664)644-0588`: true,
`(666)373-9068`: true,
`(666)610-9788`: true,
`(666)711-0630`: true,
`(666)936-4637`: true,
`(667)581-4428`: true,
`(667)794-5040`: true,
`(669)412-4853`: true,
`(671)377-1515`: true,
`(672)861-4357`: true,
`(673)209-2035`: true,
`(673)899-9851`: true,
`(674)824-2613`: true,
`(675)289-8662`: true,
`(677)434-0724`: true,
`(677)521-9206`: true,
`(678)508-7427`: true,
`(682)595-4806`: true,
`(683)223-0630`: true,
`(683)770-8839`: true,
`(684)935-4057`: true,
`(685)584-0855`: true,
`(686)066-5474`: true,
`(687)058-2573`: true,
`(687)113-9639`: true,
`(687)136-5457`: true,
`(688)233-4463`: true,
`(691)104-4382`: true,
`(691)327-7872`: true,
`(694)102-9428`: true,
`(698)008-9712`: true,
`(698)465-6001`: true,
`(698)651-7847`: true,
`(698)660-8633`: true,
`(698)879-0511`: true,
`(699)048-1691`: true,
`(701)753-9540`: true,
`(704)385-8282`: true,
`(705)269-7628`: true,
`(705)424-3598`: true,
`(705)895-5731`: true,
`(706)021-7859`: true,
`(707)357-8230`: true,
`(708)245-0694`: true,
`(708)907-9137`: true,
`(709)679-7726`: true,
`(710)315-6149`: true,
`(711)499-6820`: true,
`(712)182-2385`: true,
`(712)943-1067`: true,
`(713)078-7309`: true,
`(713)282-1103`: true,
`(713)888-1609`: true,
`(714)489-4836`: true,
`(714)532-9784`: true,
`(714)589-2697`: true,
`(714)725-3320`: true,
`(715)926-8554`: true,
`(717)296-3780`: true,
`(717)392-9508`: true,
`(718)838-3600`: true,
`(719)831-7376`: true,
`(719)954-3815`: true,
`(720)426-7959`: true,
`(720)437-6393`: true,
`(724)126-9900`: true,
`(724)229-3105`: true,
`(725)396-8121`: true,
`(726)900-2631`: true,
`(727)695-2782`: true,
`(728)179-6849`: true,
`(730)006-9963`: true,
`(731)087-2021`: true,
`(731)747-9962`: true,
`(732)212-3121`: true,
`(733)036-5331`: true,
`(733)527-8173`: true,
`(733)934-8906`: true,
`(734)805-0698`: true,
`(735)447-5288`: true,
`(736)068-7905`: true,
`(736)141-3190`: true,
`(737)834-7922`: true,
`(739)712-7981`: true,
`(740)439-4080`: true,
`(741)651-2611`: true,
`(742)057-3047`: true,
`(742)851-1109`: true,
`(743)771-1953`: true,
`(744)038-4911`: true,
`(744)269-2466`: true,
`(745)625-4492`: true,
`(746)052-6260`: true,
`(747)047-0854`: true,
`(748)496-6638`: true,
`(748)640-5986`: true,
`(748)941-9575`: true,
`(749)328-0833`: true,
`(749)675-5619`: true,
`(751)117-2370`: true,
`(751)468-0594`: true,
`(751)724-9503`: true,
`(752)623-8555`: true,
`(755)270-0373`: true,
`(755)375-1935`: true,
`(755)483-9014`: true,
`(756)067-8075`: true,
`(757)193-1109`: true,
`(759)957-2741`: true,
`(760)032-5379`: true,
`(760)226-4153`: true,
`(760)508-8473`: true,
`(761)292-1159`: true,
`(761)770-7382`: true,
`(761)986-9054`: true,
`(762)148-6339`: true,
`(763)595-3724`: true,
`(764)408-3515`: true,
`(766)167-8587`: true,
`(768)584-0342`: true,
`(769)152-1601`: true,
`(769)275-5693`: true,
`(770)349-8258`: true,
`(770)467-2443`: true,
`(770)702-3494`: true,
`(771)137-8946`: true,
`(771)613-6848`: true,
`(771)769-8105`: true,
`(771)867-9665`: true,
`(773)841-0055`: true,
`(774)619-9237`: true,
`(774)780-5604`: true,
`(774)840-6740`: true,
`(775)862-9463`: true,
`(779)588-9955`: true,
`(780)129-4538`: true,
`(781)273-3064`: true,
`(781)834-5371`: true,
`(784)638-1850`: true,
`(785)238-4683`: true,
`(785)299-1011`: true,
`(785)910-3080`: true,
`(787)542-1431`: true,
`(787)624-0514`: true,
`(788)288-9544`: true,
`(788)293-3465`: true,
`(790)248-0778`: true,
`(790)258-1436`: true,
`(790)292-7346`: true,
`(791)414-2366`: true,
`(794)405-1423`: true,
`(796)547-6357`: true,
`(796)993-4781`: true,
`(797)084-7316`: true,
`(797)387-8553`: true,
`(800)113-1772`: true,
`(801)282-8040`: true,
`(801)534-7997`: true,
`(802)171-7049`: true,
`(802)457-4026`: true,
`(803)667-9121`: true,
`(804)356-6528`: true,
`(805)908-0773`: true,
`(808)026-8750`: true,
`(808)726-1797`: true,
`(809)137-7017`: true,
`(809)859-2894`: true,
`(811)084-1723`: true,
`(812)814-2808`: true,
`(813)232-5375`: true,
`(815)119-3354`: true,
`(815)574-6110`: true,
`(815)922-9990`: true,
`(815)988-9936`: true,
`(816)932-6273`: true,
`(818)080-9652`: true,
`(818)207-5326`: true,
`(819)085-2607`: true,
`(819)274-5153`: true,
`(821)143-6569`: true,
`(824)000-6213`: true,
`(826)146-1471`: true,
`(827)055-4196`: true,
`(831)517-7557`: true,
`(835)044-4685`: true,
`(835)566-4747`: true,
`(836)214-5561`: true,
`(836)667-7541`: true,
`(838)430-2097`: true,
`(839)611-8354`: true,
`(840)214-1443`: true,
`(842)206-9652`: true,
`(842)553-9277`: true,
`(842)984-2217`: true,
`(843)609-6669`: true,
`(843)954-4932`: true,
`(845)125-8340`: true,
`(846)415-6832`: true,
`(849)176-1461`: true,
`(850)456-0085`: true,
`(851)544-0548`: true,
`(851)950-9071`: true,
`(853)054-9411`: true,
`(853)714-7336`: true,
`(854)055-1538`: true,
`(854)768-9065`: true,
`(854)772-6556`: true,
`(855)148-9530`: true,
`(855)921-1046`: true,
`(856)368-2122`: true,
`(857)077-4220`: true,
`(857)454-3787`: true,
`(859)131-3651`: true,
`(862)731-8562`: true,
`(863)595-1623`: true,
`(864)113-0448`: true,
`(866)690-4927`: true,
`(869)168-3379`: true,
`(869)219-9586`: true,
`(869)636-8984`: true,
`(872)062-9910`: true,
`(873)138-2124`: true,
`(873)591-1697`: true,
`(876)342-2217`: true,
`(876)816-1712`: true,
`(877)428-2087`: true,
`(879)646-6310`: true,
`(881)626-2391`: true,
`(881)760-6150`: true,
`(883)422-0394`: true,
`(883)638-2566`: true,
`(885)578-8821`: true,
`(888)489-0328`: true,
`(890)215-4593`: true,
`(891)340-2881`: true,
`(891)550-3544`: true,
`(892)328-0619`: true,
`(893)120-9009`: true,
`(894)325-8747`: true,
`(894)371-5424`: true,
`(894)577-2581`: true,
`(895)254-0384`: true,
`(895)756-4212`: true,
`(896)161-1085`: true,
`(896)745-9705`: true,
`(896)988-8817`: true,
`(898)335-4657`: true,
`(900)591-9222`: true,
`(901)868-4243`: true,
`(902)063-0631`: true,
`(903)939-8820`: true,
`(904)319-2997`: true,
`(905)653-8129`: true,
`(906)466-2298`: true,
`(907)759-8056`: true,
`(909)246-1852`: true,
`(909)300-2377`: true,
`(909)345-0034`: true,
`(910)861-4300`: true,
`(911)021-7823`: true,
`(911)281-3420`: true,
`(911)724-4584`: true,
`(913)503-8339`: true,
`(914)021-5994`: true,
`(915)757-2966`: true,
`(916)147-7644`: true,
`(917)141-1025`: true,
`(917)694-5537`: true,
`(918)803-9971`: true,
`(919)532-5858`: true,
`(919)693-6668`: true,
`(921)251-4862`: true,
`(921)775-9266`: true,
`(922)750-4564`: true,
`(924)229-8600`: true,
`(925)020-5381`: true,
`(925)692-5744`: true,
`(925)878-9730`: true,
`(926)487-5368`: true,
`(928)631-5868`: true,
`(929)550-5648`: true,
`(929)907-8014`: true,
`(932)218-3738`: true,
`(935)580-3106`: true,
`(935)606-3273`: true,
`(935)751-3561`: true,
`(936)135-2310`: true,
`(938)413-6458`: true,
`(941)047-2527`: true,
`(941)296-8588`: true,
`(941)934-6234`: true,
`(942)354-1999`: true,
`(942)722-6917`: true,
`(943)217-1571`: true,
`(943)774-5357`: true,
`(944)886-8208`: true,
`(947)108-2454`: true,
`(947)538-2838`: true,
`(948)304-6100`: true,
`(948)733-3149`: true,
`(949)800-0810`: true,
`(951)270-9835`: true,
`(952)162-1559`: true,
`(952)853-3566`: true,
`(953)189-1330`: true,
`(955)947-0459`: true,
`(956)517-0702`: true,
`(957)103-7685`: true,
`(957)376-1507`: true,
`(957)568-5503`: true,
`(959)252-4837`: true,
`(959)866-6711`: true,
`(960)159-9490`: true,
`(961)012-7334`: true,
`(961)772-7344`: true,
`(962)558-0335`: true,
`(963)592-4777`: true,
`(964)921-2640`: true,
`(967)034-3119`: true,
`(967)803-7125`: true,
`(968)059-6712`: true,
`(968)923-4624`: true,
`(969)545-9064`: true,
`(970)639-3627`: true,
`(970)819-7458`: true,
`(971)387-8213`: true,
`(973)129-2831`: true,
`(973)147-3696`: true,
`(973)724-7344`: true,
`(974)718-6899`: true,
`(974)793-8041`: true,
`(976)135-2972`: true,
`(978)965-3841`: true,
`(979)722-7875`: true,
`(980)341-1664`: true,
`(980)930-4619`: true,
`(981)732-8982`: true,
`(983)627-8743`: true,
`(984)814-2316`: true,
`(985)173-3767`: true,
`(986)294-6279`: true,
`(989)251-0197`: true,
`(990)266-2799`: true,
`(991)231-1452`: true,
`(992)643-0429`: true,
`(995)289-6049`: true,
`(995)907-1091`: true,
`(995)952-5150`: true,
`(996)139-6132`: true,
`(999)673-0589`: true,
`(999)879-1284`: true},
`State`: {
`Alabama`: true,
`Alaska`: true,
`Arizona`: true,
`Arkansas`: true,
`California`: true,
`Colorado`: true,
`Connecticut`: true,
`Delaware`: true,
`Florida`: true,
`Georgia`: true,
`Hawaii`: true,
`Idaho`: true,
`Illinois`: true,
`Indiana`: true,
`Iowa`: true,
`Kansas`: true,
`Kentucky`: true,
`Louisiana`: true,
`Maine`: true,
`Maryland`: true,
`Massachusetts`: true,
`Michigan`: true,
`Minnesota`: true,
`Mississippi`: true,
`Missouri`: true,
`Montana`: true,
`Nebraska`: true,
`Nevada`: true,
`New Hampshire`: true,
`New Jersey`: true,
`New Mexico`: true,
`New York `: true,
`North Carolina`: true,
`North Dakota`: true,
`Ohio`: true,
`Oklahoma`: true,
`Oregon`: true,
`Pennsylvania`: true,
`Rhode Island`: true,
`South Carolina`: true,
`South Dakota`: true,
`Tennessee`: true,
`Texas`: true,
`Utah`: true,
`Vermont`: true,
`Virginia`: true,
`Washington`: true,
`West Virginia`: true,
`Wisconsin`: true,
`Wyoming`: true},
`Street`: {
`11th St`: true,
`1st St`: true,
`2nd St`: true,
`3rd St`: true,
`41st St`: true,
`4th St`: true,
`6th St`: true,
`7th St`: true,
`8th St`: true,
`9th St`: true,
`<NAME>n`: true,
`Abbey Ln`: true,
`Abercrombie St`: true,
`Aberdeen Ct`: true,
`Abernathy Rd`: true,
`Abington Ct`: true,
`Access Rd`: true,
`Ackerman Rd`: true,
`<NAME> NW`: true,
`Adair Dr`: true,
`Adair Hollow Rd`: true,
`Adairsville Pleasant Valley Rd`: true,
`<NAME> Rd`: true,
`Adams Way`: true,
`Adcock Loop`: true,
`Adcock Rd`: true,
`Aiken St`: true,
`Akin Dr`: true,
`Akin Rd`: true,
`Akin Way`: true,
`Akron St`: true,
`Alex Dr`: true,
`Alexander St`: true,
`Alford Rd`: true,
`<NAME>ir`: true,
`All Metals Dr`: true,
`Allatoona Dam Rd`: true,
`Allatoona Dr`: true,
`Allatoona Estates Dr`: true,
`Allatoona Landing Rd`: true,
`Allatoona Pass Rd`: true,
`Allatoona Trace Dr`: true,
`Allatoona Woods Trl`: true,
`Allegiance Ct`: true,
`Allen Cir`: true,
`Allen Rd`: true,
`Allison Cir`: true,
`Allweather St`: true,
`Alpine Dr`: true,
`Amanda Ln`: true,
`Amandas Ct`: true,
`Amberidge Dr`: true,
`Amberly Ln`: true,
`Amberwood Conn`: true,
`Amberwood Ct`: true,
`Amberwood Ln`: true,
`Amberwood Pl`: true,
`Amberwood Trl`: true,
`Amberwood Way`: true,
`Ampacet Dr`: true,
`Anchor Rd`: true,
`Anderson St`: true,
`<NAME> Trl`: true,
`Angus Trl`: true,
`Ann Cir`: true,
`Ann Rd`: true,
`Anna Pl`: true,
`Anns Ct`: true,
`Anns Trc`: true,
`Ansley Way`: true,
`Ansubet Dr`: true,
`Antebellum Ct`: true,
`Apache Dr`: true,
`Apache Trl`: true,
`Apex Dr`: true,
`Appaloosa Ct`: true,
`Apple Barrel Way`: true,
`Apple Ln`: true,
`Apple Tree Ln`: true,
`Apple Wood Ln`: true,
`Appletree Ct`: true,
`Appling Way`: true,
`April Ln`: true,
`Aragon Rd`: true,
`Arapaho Dr`: true,
`Arbor Ln`: true,
`Arbors Way`: true,
`Arbutus Trl`: true,
`Ardmore Cir`: true,
`Arizona Ave`: true,
`Arlington Way`: true,
`Arnold Rd`: true,
`<NAME>`: true,
`Arrington Rd`: true,
`Arrow Mountain Dr`: true,
`Arrowhead Ct`: true,
`Arrowhead Dr`: true,
`Arrowhead Ln`: true,
`Ash Ct`: true,
`Ash Way`: true,
`Ashford Ct`: true,
`Ashford Pt`: true,
`Ashley Ct`: true,
`Ashley Rd`: true,
`Ashwood Dr`: true,
`Aspen Dr`: true,
`Aspen Ln`: true,
`Assembly Dr`: true,
`Atco All`: true,
`Attaway Dr`: true,
`Atwood Rd`: true,
`Aubrey Lake Rd`: true,
`Aubrey Rd`: true,
`Aubrey St`: true,
`Auburn Dr`: true,
`Austin Rd`: true,
`Autry Rd`: true,
`Autumn Pl`: true,
`Autumn Ridge Dr`: true,
`Autumn Turn`: true,
`Autumn Wood Dr`: true,
`Avenue Of Savannah`: true,
`Avon Ct`: true,
`Azalea Dr`: true,
`Aztec Way`: true,
`B D Trl`: true,
`Backus Rd`: true,
`Bagwell Ln`: true,
`<NAME> Rd`: true,
`Bailey Rd`: true,
`Baker Rd`: true,
`Baker St`: true,
`Bald Eagle Lndg`: true,
`Baldwell Ct`: true,
`Balfour Dr`: true,
`Balsam Dr`: true,
`Bandit Ln`: true,
`Bangor St`: true,
`Baptist Cir`: true,
`Barnsley Church Rd`: true,
`Barnsley Ct`: true,
`Barnsley Dr`: true,
`Barnsley Garden Rd`: true,
`Barnsley Village Dr`: true,
`Barnsley Village Trl`: true,
`Barrett Ln`: true,
`Barrett Rd`: true,
`Barry Dr`: true,
`Bartow Beach Rd`: true,
`<NAME> Rd`: true,
`Bartow St`: true,
`Bates Rd`: true,
`Bay Ct`: true,
`Bearden Rd`: true,
`Beasley Rd`: true,
`Beaureguard St`: true,
`Beaver Trl`: true,
`Beavers Dr`: true,
`Bedford Ct`: true,
`Bedford Rdg`: true,
`Bee Tree Rd`: true,
`Beechwood Dr`: true,
`Beguine Dr`: true,
`Bell Dr`: true,
`<NAME> Rd`: true,
`Belmont Dr`: true,
`Belmont Way`: true,
`Benfield Cir`: true,
`Benham Cir`: true,
`<NAME> Rd`: true,
`Bennett Way`: true,
`Bent Water Dr`: true,
`Berkeley Pl`: true,
`Berkshire Dr`: true,
`Bestway Dr`: true,
`Bestway Pkwy`: true,
`Betsy Locke Pt`: true,
`Beverlie Dr`: true,
`Bevil Ridge Rd`: true,
`Biddy Rd`: true,
`Big Branch Ct`: true,
`Big Ditch Rd`: true,
`Big Oak Tree Rd`: true,
`Big Pond Rd`: true,
`Bill Black Rd`: true,
`<NAME> Rd`: true,
`Billies Cv`: true,
`Bingham Rd`: true,
`Birch Pl`: true,
`Birch Way`: true,
`Bishop Cv`: true,
`Bishop Dr`: true,
`Bishop Loop`: true,
`Bishop Mill Dr`: true,
`Bishop Rd`: true,
`Black Jack Mountain Cir`: true,
`Black Oak Rd`: true,
`Black Rd`: true,
`Black Water Dr`: true,
`Blackacre Trl`: true,
`Blackberry Rdg`: true,
`Blackfoot Trl`: true,
`Blacksmith Ln`: true,
`Bloomfield Ct`: true,
`Blueberry Rdg`: true,
`Bluebird Cir`: true,
`Bluegrass Cv`: true,
`Bluff Ct`: true,
`Boardwalk Ct`: true,
`Boatner Ave`: true,
`Bob O Link Dr`: true,
`Bob White Trl`: true,
`Bobcat Ct`: true,
`Boliver Rd`: true,
`Bonair St`: true,
`Boones Farm`: true,
`Boones Ridge Dr`: true,
`Boones Ridge Pkwy`: true,
`Boss Rd`: true,
`Boulder Crest Rd`: true,
`Boulder Rd`: true,
`Bowen Rd`: true,
`Bowens Ct`: true,
`Boyd Morris Dr`: true,
`Boyd Mountain Rd`: true,
`Boysenberry Ct`: true,
`Bozeman Rd`: true,
`Bradford Ct`: true,
`Bradford Dr`: true,
`Bradley Ln`: true,
`Bradley Trl`: true,
`Bramblewood Ct`: true,
`Bramblewood Dr`: true,
`Bramblewood Pl`: true,
`Bramblewood Trl`: true,
`Bramblewood Way`: true,
`Brandon Farm Rd`: true,
`Brandon Rdg`: true,
`Brandy Ln`: true,
`Branson Crossing Rd`: true,
`Branson Mill Dr`: true,
`Branton Rd`: true,
`<NAME>`: true,
`Brentwood Dr`: true,
`Brett Way`: true,
`Briar Chase Ct`: true,
`Briar Patch Ln`: true,
`Briarcrest Way`: true,
`Briarwood Ln`: true,
`Brickshire`: true,
`Brickshire Dr`: true,
`Bridgestone Way`: true,
`Bridlewood Ct`: true,
`Brighton Ct`: true,
`Brightwell Pl`: true,
`Bristol Ct`: true,
`Brittani Ln`: true,
`Broadlands Dr`: true,
`Broken Arrow Ct`: true,
`Bronco Ct`: true,
`Brook Dr`: true,
`Brook Knoll Ct`: true,
`Brooke Rd`: true,
`Brookhollow Ln`: true,
`Brookland Dr`: true,
`Brookshire Dr`: true,
`Brookside Ct`: true,
`Brookside Way`: true,
`Brookwood Dr`: true,
`Brown Dr`: true,
`Brown Farm Rd`: true,
`Brown Loop`: true,
`Brown Loop Spur`: true,
`Brown Rd`: true,
`Brownwood Dr`: true,
`Bruce St`: true,
`Brutis Rd`: true,
`Bryan Dr`: true,
`Bryan Ln`: true,
`Buckhorn Trl`: true,
`Buckingham Ct`: true,
`Buckland Ct`: true,
`Buckskin Dr`: true,
`Bucky St`: true,
`Buena Vista Cir`: true,
`Buford St`: true,
`Bunch Mountain Rd`: true,
`Burch Ln`: true,
`Burges Mill Rd`: true,
`Burnt Hickory Dr`: true,
`Burnt Hickory Rd`: true,
`Busch Dr`: true,
`Bushey Trl`: true,
`Buttonwood Dr`: true,
`Buttram Rd`: true,
`Byars Rd`: true,
`C J Ct`: true,
`C J Dr`: true,
`Caboose Ct`: true,
`Cade Dr`: true,
`Cagle Rd`: true,
`Cain Dr`: true,
`Calico Valley Rd`: true,
`Calloway Ln`: true,
`Calvary Ct`: true,
`Cambridge Ct`: true,
`Cambridge Way`: true,
`<NAME> Dr`: true,
`Camellia Ln`: true,
`Camelot Dr`: true,
`Camp Creek Rd`: true,
`Camp Dr`: true,
`Camp Pl`: true,
`Camp Sunrise Rd`: true,
`Camp Trl`: true,
`Campbell Dr`: true,
`Campfire Trl`: true,
`Candlestick Comm`: true,
`Canefield Dr`: true,
`<NAME>`: true,
`Cannon Ct`: true,
`Cannonade Run`: true,
`Canter Ln`: true,
`Canterbury Ct`: true,
`Canterbury Walk`: true,
`Cantrell Ln`: true,
`Cantrell Pt`: true,
`Cantrell St`: true,
`Canty Rd`: true,
`<NAME>kwy`: true,
`Captains Turn`: true,
`Captains Walk`: true,
`Cardinal Ct`: true,
`Cardinal Rd`: true,
`<NAME> Dr`: true,
`<NAME>`: true,
`Carnes Dr`: true,
`Carnes Rd`: true,
`Carolyn Ct`: true,
`Carr Rd`: true,
`Carriage Ln`: true,
`Carriage Trc`: true,
`Carrington Dr`: true,
`Carrington Trc`: true,
`<NAME> Rd`: true,
`Carson Ct`: true,
`Carson Loop`: true,
`Carson Rd`: true,
`<NAME> Blvd`: true,
`Carter Ln`: true,
`Carter Rd`: true,
`Carver Landing Rd`: true,
`Casey Dr`: true,
`Casey Ln`: true,
`Casey St`: true,
`Cass Dr`: true,
`Cass Station Dr`: true,
`Cass Station Pass`: true,
`Cassandra View`: true,
`Cassville Pine Log Rd`: true,
`Cassville Rd`: true,
`Cassville White Rd`: true,
`Catalpa Ct`: true,
`Cathedral Hght`: true,
`Catherine Cir`: true,
`Catherine Way`: true,
`Cedar Creek Church Rd`: true,
`Cedar Creek Rd`: true,
`Cedar Gate Ln`: true,
`Cedar Ln`: true,
`Cedar Rd`: true,
`Cedar Rdg`: true,
`Cedar Springs Dr`: true,
`Cedar St`: true,
`Cedar Way`: true,
`Cemetary Rd`: true,
`Center Bluff`: true,
`Center Rd`: true,
`Center St`: true,
`Centerport Dr`: true,
`Central Ave`: true,
`Chance Cir`: true,
`Chandler Ln`: true,
`Chapel Way`: true,
`Charismatic Rd`: true,
`Charles Ct`: true,
`Charles St`: true,
`Charlotte Dr`: true,
`Chase Pl`: true,
`Chateau Dr`: true,
`Cherokee Cir`: true,
`Cherokee Dr`: true,
`Cherokee Hght`: true,
`Cherokee Hills Dr`: true,
`Cherokee Pl`: true,
`Cherokee St`: true,
`Cherry St`: true,
`Cherrywood Ln`: true,
`Cherrywood Way`: true,
`Cheryl Dr`: true,
`Chestnut Ridge Ct`: true,
`Chestnut Ridge Dr`: true,
`Chestnut St`: true,
`Cheyenne Way`: true,
`Chickasaw Trl`: true,
`Chickasaw Way`: true,
`Chimney Ln`: true,
`Chimney Springs Dr`: true,
`Chippewa Dr`: true,
`Chippewa Way`: true,
`Chitwood Cemetary Rd`: true,
`Choctaw Ct`: true,
`Christon Dr`: true,
`Christopher Pl`: true,
`Christopher Rdg`: true,
`Chulio Dr`: true,
`Chunn Dr`: true,
`<NAME> Rd`: true,
`Church St`: true,
`Churchill Down`: true,
`Churchill Downs Down`: true,
`Cindy Ln`: true,
`Citation Pte`: true,
`Claire Cv`: true,
`Clark Cir`: true,
`Clark Way`: true,
`Clear Creek Rd`: true,
`Clear Lake Dr`: true,
`Clear Pass`: true,
`Clearview Dr`: true,
`Clearwater St`: true,
`<NAME> Rd`: true,
`Cliffhanger Pte`: true,
`Cline Dr`: true,
`<NAME> Rd`: true,
`Cline St`: true,
`Clover Dr`: true,
`Clover Ln`: true,
`Clover Pass`: true,
`Clubhouse Ct`: true,
`Clubview Dr`: true,
`Clydesdale Trl`: true,
`Cobblestone Dr`: true,
`Cochrans Way`: true,
`Coffee St`: true,
`Cole Ct`: true,
`Cole Dr`: true,
`Coleman St`: true,
`Colleen and Karen Rd`: true,
`College St`: true,
`Collins Dr`: true,
`Collins Pl`: true,
`Collins St`: true,
`Collum Rd`: true,
`Colonial Cir`: true,
`Colonial Club Dr`: true,
`Colony Ct`: true,
`Colony Dr`: true,
`Colt Ct`: true,
`Colt Way`: true,
`Columbia St`: true,
`Comedy Ln`: true,
`Commanche Dr`: true,
`Commanche Trl`: true,
`Commerce Dr`: true,
`Commerce Row`: true,
`Commerce Way`: true,
`Cone Rd`: true,
`Confederate St`: true,
`Connesena Rd`: true,
`Connie St`: true,
`Conyers Industrial Dr`: true,
`Cook St`: true,
`Cooper Mill Rd`: true,
`Copeland Rd`: true,
`Coperite Pl`: true,
`Copperhead Rd`: true,
`Corbitt Dr`: true,
`Corinth Rd`: true,
`Corson Trl`: true,
`Cottage Dr`: true,
`Cottage Trc`: true,
`Cottage Walk`: true,
`Cotton Bend`: true,
`Cotton Dr`: true,
`Cotton St`: true,
`Cottonwood Ct`: true,
`Country Club Dr`: true,
`Country Cove Ln`: true,
`Country Creek Rd`: true,
`Country Dr`: true,
`Country Ln`: true,
`Country Meadow Way`: true,
`Country Walk`: true,
`County Line Loop No 1`: true,
`County Line Rd`: true,
`County Line Road No 2`: true,
`Courrant St`: true,
`Court Xing`: true,
`Courtyard Dr`: true,
`Courtyard Ln`: true,
`Covered Bridge Rd`: true,
`Cowan Dr`: true,
`Cox Farm Rd`: true,
`Cox Farm Spur`: true,
`Cox Rd`: true,
`Cox St`: true,
`Cozy Ln`: true,
`Craigs Rd`: true,
`Crane Cir`: true,
`Creed Dr`: true,
`Creek Bend Ct`: true,
`Creek Dr`: true,
`Creek Trl`: true,
`Creekbend Dr`: true,
`Creekside Dr`: true,
`Creekside Ln`: true,
`Creekstone Ct`: true,
`Creekview Dr`: true,
`Crescent Dr`: true,
`Crestbrook Dr`: true,
`Crestview Ln`: true,
`Crestwood Ct`: true,
`Crestwood Rd`: true,
`Crimson Hill Dr`: true,
`Criss Black Rd`: true,
`Crolley Ln`: true,
`Cromwell Ct`: true,
`Cross Creek Dr`: true,
`Cross St`: true,
`Cross Tie Ct`: true,
`Crossbridge CT`: true,
`Crossfield Cir`: true,
`Crowe Dr`: true,
`Crowe Springs Rd`: true,
`Crowe Springs Spur`: true,
`Crump Rd`: true,
`Crystal Ln`: true,
`Crystal Mountain Rd`: true,
`Culver Rd`: true,
`Cumberland Gap`: true,
`Cumberland Rd`: true,
`Cummings Rd`: true,
`Curtis Ct`: true,
`Cut Off Rd`: true,
`Cypress Way`: true,
`Dabbs Dr`: true,
`Dan Dr`: true,
`Dana Way`: true,
`Danby Ct`: true,
`Darnell Rd`: true,
`David Rd`: true,
`David St`: true,
`Davids Way`: true,
`Davis Dr`: true,
`Davis Loop`: true,
`Davis St`: true,
`Davistown Rd`: true,
`Dawn Dr`: true,
`Dawns Way`: true,
`Dawson St`: true,
`Dean Dr`: true,
`Dean Rd`: true,
`Dean St`: true,
`<NAME>`: true,
`Deens Rd`: true,
`Deer Lodge Rd`: true,
`Deer Run Dr`: true,
`Deer Run Ln`: true,
`Deering Way`: true,
`Deerview Ct`: true,
`Defender St`: true,
`Dempsey Loop`: true,
`Dempsey Rd`: true,
`Dent Dr`: true,
`Denver Dr`: true,
`Derby Way`: true,
`Derrick Ln`: true,
`Devin Ln`: true,
`Devon Ct`: true,
`Dewberry Ln`: true,
`Dewey Dr`: true,
`Dianne Dr`: true,
`Dixie Dr`: true,
`Dobson Dr`: true,
`Dodd Rd`: true,
`Dodson Rd`: true,
`Doe Ct`: true,
`Dog Ln`: true,
`Dogwood Cir`: true,
`Dogwood Dr`: true,
`Dogwood Ln`: true,
`Dogwood Pl`: true,
`Dogwood Trl`: true,
`Dolphin Dr`: true,
`Donn Dr`: true,
`<NAME> Rd`: true,
`Doris Rd`: true,
`Doss Dr`: true,
`Douglas St`: true,
`Douthit Bridge Rd`: true,
`<NAME> Rd`: true,
`Dove Ct`: true,
`Dove Dr`: true,
`Dove Trl`: true,
`Dover Rd`: true,
`Downing Way`: true,
`Dripping Rock Trl`: true,
`Drury Ln`: true,
`<NAME> Rd`: true,
`Duncan Dr`: true,
`Dunhill Ct`: true,
`Durey Ct`: true,
`Dyar St`: true,
`Dysart Rd`: true,
`E Carter St`: true,
`E Cherokee Ave`: true,
`E Church St`: true,
`E Felton Rd`: true,
`E George St`: true,
`E Greenridge Rd`: true,
`E Holiday Ct`: true,
`E Howard St`: true,
`E Indiana Ave`: true,
`E Lee St`: true,
`E Main St`: true,
`E Mitchell Rd`: true,
`E Pleasant Valley Rd`: true,
`E Porter St`: true,
`E Railroad St`: true,
`E Rocky St`: true,
`Eagle Dr`: true,
`Eagle Glen Dr`: true,
`Eagle Ln`: true,
`Eagle Mountain Trl`: true,
`Eagle Pkwy`: true,
`Eagles Ct`: true,
`Eagles Nest Cv`: true,
`Eagles View Dr`: true,
`Earle Dr`: true,
`East Boxwood Dr`: true,
`East Heritage Dr`: true,
`East Valley Rd`: true,
`Easton Trc`: true,
`Eastview Ct`: true,
`Eastview Ter`: true,
`Eastwood Dr`: true,
`Echota Rd`: true,
`Edgewater Dr`: true,
`Edgewood Rd`: true,
`Edsel Dr`: true,
`Eidson St`: true,
`Elizabeth Rd`: true,
`Elizabeth St`: true,
`Elkhorn Ct`: true,
`Elliott St`: true,
`Ellis Rd`: true,
`Elm Dr`: true,
`Elm St`: true,
`Elmwood Pl`: true,
`Elrod Rdg`: true,
`Elrod St`: true,
`Ember Way`: true,
`Emerald Pass`: true,
`Emerald Run`: true,
`Emerald Springs Ct`: true,
`Emerald Springs Dr`: true,
`Emerald Springs Way`: true,
`Emerald Trl`: true,
`Engineer Ln`: true,
`English Turn`: true,
`Enon Ridge Rd`: true,
`Enterprise Dr`: true,
`Equestrian Way`: true,
`Estate Dr`: true,
`Estates Rdg`: true,
`Etowah Ct`: true,
`Etowah Dr`: true,
`Etowah Ln`: true,
`Etowah Ridge Dr`: true,
`Etowah Ridge Ovlk`: true,
`Etowah Ridge Trl`: true,
`Euharlee Five Forks Rd`: true,
`Euharlee Rd`: true,
`Euharlee St`: true,
`Evans Hightower Rd`: true,
`Evans Rd`: true,
`Evening Trl`: true,
`Everest Dr`: true,
`Everett Cir`: true,
`Evergreen Trl`: true,
`Ezell Rd`: true,
`Fairfield Ct`: true,
`Fairfield Dr`: true,
`Fairfield Ln`: true,
`Fairfield Way`: true,
`Fairmount Rd`: true,
`Fairview Church Rd`: true,
`Fairview Cir`: true,
`Fairview Dr`: true,
`Fairview St`: true,
`Faith Ln`: true,
`Falcon Cir`: true,
`Fall Dr`: true,
`Falling Springs Rd`: true,
`Farm Rd`: true,
`Farmbrook Dr`: true,
`Farmer Rd`: true,
`Farmstead Ct`: true,
`Farr Cir`: true,
`Fawn Lake Trl`: true,
`Fawn Ridge Dr`: true,
`Fawn View`: true,
`Felton Pl`: true,
`Felton St`: true,
`Ferguson Dr`: true,
`Ferry Views`: true,
`Fields Rd`: true,
`Fieldstone Ct`: true,
`Fieldstone Path`: true,
`Fieldwood Dr`: true,
`Finch Ct`: true,
`Findley Rd`: true,
`Finley St`: true,
`Fire Tower Rd`: true,
`Fireside Ct`: true,
`Fite St`: true,
`Five Forks Rd`: true,
`Flagstone Ct`: true,
`Flint Hill Rd`: true,
`Floral Dr`: true,
`Florence Dr`: true,
`Florida Ave`: true,
`Floyd Creek Church Rd`: true,
`Floyd Rd`: true,
`Folsom Glade Rd`: true,
`Folsom Rd`: true,
`Fools Gold Rd`: true,
`Foothills Pkwy`: true,
`Ford St`: true,
`Forest Hill Dr`: true,
`Forest Trl`: true,
`Forrest Ave`: true,
`Forrest Hill Dr`: true,
`Forrest Ln`: true,
`Fossetts Cv`: true,
`Fouche Ct`: true,
`Fouche Dr`: true,
`Four Feathers Ln`: true,
`Fowler Dr`: true,
`Fowler Rd`: true,
`Fox Chas`: true,
`Fox Hill Dr`: true,
`Fox Meadow Ct`: true,
`Foxfire Ln`: true,
`Foxhound Way`: true,
`Foxrun Ct`: true,
`Frances Way`: true,
`Franklin Dr`: true,
`<NAME> Dr`: true,
`Franklin Loop`: true,
`Fredda Ln`: true,
`Freedom Dr`: true,
`Freeman St`: true,
`Friction Dr`: true,
`Friendly Ln`: true,
`Friendship Rd`: true,
`Fuger Ln`: true,
`Fun Dr`: true,
`Funkhouser Industrial Access Rd`: true,
`Gaddis Rd`: true,
`Gail St`: true,
`Gaines Rd`: true,
`Gaither Boggs Rd`: true,
`Galt St`: true,
`Galway Dr`: true,
`Garden Gate`: true,
`Garland No 1 Rd`: true,
`Garland No 2 Rd`: true,
`Garrison Dr`: true,
`<NAME> Ave`: true,
`Gatepost Ln`: true,
`Gatlin Rd`: true,
`Gayle Dr`: true,
`Geneva Ln`: true,
`Gentilly Blvd`: true,
`Gentry Dr`: true,
`George St`: true,
`Georgia Ave`: true,
`Georgia Blvd`: true,
`Georgia North Cir`: true,
`Georgia North Industrial Rd`: true,
`Gertrude Ln`: true,
`Gibbons Rd`: true,
`Gill Rd`: true,
`<NAME>`: true,
`Gilmer St`: true,
`Gilreath Rd`: true,
`Gilreath Trl`: true,
`Glade Rd`: true,
`Glen Cove Dr`: true,
`Glenabby Dr`: true,
`<NAME>ve`: true,
`Glenmaura Way`: true,
`Glenmore Dr`: true,
`Glenn Dr`: true,
`Glory Ln`: true,
`Gold Creek Trl`: true,
`Gold Hill Dr`: true,
`Golden Eagle Dr`: true,
`Goode Dr`: true,
`<NAME> Rd`: true,
`Goodwin St`: true,
`Goodyear Ave`: true,
`<NAME> Rd`: true,
`Gordon Rd`: true,
`Gore Rd`: true,
`Gore Springs Rd`: true,
`Goss St`: true,
`Governors Ct`: true,
`Grace Park Dr`: true,
`Grace St`: true,
`Grand Main St`: true,
`Grandview Ct`: true,
`Grandview Dr`: true,
`Granger Dr`: true,
`Grant Dr`: true,
`Grapevine Way`: true,
`Grassdale Rd`: true,
`Gray Rd`: true,
`Gray St`: true,
`Graysburg Dr`: true,
`Graystone Dr`: true,
`Greatwood Dr`: true,
`Green Acre Ln`: true,
`Green Apple Ct`: true,
`Green Gable Pt`: true,
`Green Ives Ln`: true,
`Green Loop Rd`: true,
`Green Rd`: true,
`Green St`: true,
`Green Valley Trl`: true,
`Greenbriar Ave`: true,
`Greencliff Way`: true,
`Greenhouse Dr`: true,
`Greenmont Ct`: true,
`Greenridge Rd`: true,
`Greenridge Trl`: true,
`Greenway Ln`: true,
`Greenwood Dr`: true,
`Greyrock`: true,
`Greystone Ln`: true,
`Greystone Way`: true,
`Greywood Ln`: true,
`Griffin Mill Dr`: true,
`Griffin Rd`: true,
`Grimshaw Rd`: true,
`Grist Mill Ln`: true,
`Gristmill Parish`: true,
`Grogan Rd`: true,
`Groovers Landing Rd`: true,
`Grove Cir`: true,
`Grove Park Cir`: true,
`Grove Pointe Way`: true,
`Grove Springs Ct`: true,
`Grove Way`: true,
`Grover Rd`: true,
`Guest Holl`: true,
`Gum Dr`: true,
`Gum Springs Ln`: true,
`Gunston Hall`: true,
`Guyton Industrial Dr`: true,
`Guyton St`: true,
`Habersham Cir`: true,
`Haley Pl`: true,
`Hall St`: true,
`Hall Station Rd`: true,
`Hames Pte`: true,
`Hamil Ct`: true,
`Hamilton Blvd`: true,
`Hamilton Crossing Rd`: true,
`Hampton Dr`: true,
`Hampton Ln`: true,
`Haney Hollow Way`: true,
`Hannon Way`: true,
`Happy Hollow Rd`: true,
`Happy Valley Ln`: true,
`Harbor Dr`: true,
`Harbor Ln`: true,
`Hardin Bridge Rd`: true,
`Hardin Rd`: true,
`Hardwood Ct`: true,
`Hardwood Ridge Dr`: true,
`Hardwood Ridge Pkwy`: true,
`Hardy Rd`: true,
`Hargis Way`: true,
`Harris Rd`: true,
`Harris St`: true,
`Harrison Rd`: true,
`Harvest Way`: true,
`<NAME> Rd`: true,
`Hastings Dr`: true,
`Hatfield Rd`: true,
`Hattie St`: true,
`Hawk Rd`: true,
`Hawkins Rd`: true,
`Hawks Branch Ln`: true,
`Hawks Farm Rd`: true,
`Hawkstone Ct`: true,
`Hawthorne Dr`: true,
`<NAME>`: true,
`Hazelwood Rd`: true,
`Headden Rdg`: true,
`Heartwood Dr`: true,
`Heatco Ct`: true,
`Hedgerow Ct`: true,
`Heidelberg Ln`: true,
`Helen Ln`: true,
`Hemlock Pl`: true,
`Henderson Dr`: true,
`Henderson Rd`: true,
`Hendricks Rd`: true,
`Hendricks St`: true,
`<NAME> Rd`: true,
`Hepworth Ln`: true,
`Heritage Ave`: true,
`Heritage Cv`: true,
`Heritage Dr`: true,
`Heritage Way`: true,
`Herring St`: true,
`Hickory Forest Ln`: true,
`<NAME> Dr`: true,
`<NAME>oll`: true,
`Hickory Ln`: true,
`Hidden Valley Ln`: true,
`High Ct`: true,
`High Moon St`: true,
`High Point Ct`: true,
`High Pointe Dr`: true,
`Highland Cir`: true,
`Highland Crest Dr`: true,
`Highland Dr`: true,
`Highland Ln`: true,
`Highland Trl`: true,
`Highland Way`: true,
`Highpine Dr`: true,
`Hill St`: true,
`Hillside Dr`: true,
`Hillstone Way`: true,
`Hilltop Ct`: true,
`Hilltop Dr`: true,
`History St`: true,
`Hitchcock Sta`: true,
`Hobgood Rd`: true,
`Hodges Mine Rd`: true,
`Holcomb Rd`: true,
`Holcomb Spur`: true,
`Holcomb Trl`: true,
`Holloway Rd`: true,
`Hollows Dr`: true,
`Holly Ann St`: true,
`Holly Dr`: true,
`Holly Springs Rd`: true,
`Hollyhock Ln`: true,
`Holt Rd`: true,
`Home Place Dr`: true,
`Home Place Rd`: true,
`Homestead Dr`: true,
`Hometown Ct`: true,
`Honey Vine Trl`: true,
`Honeylocust Ct`: true,
`Honeysuckle Dr`: true,
`Hopkins Breeze`: true,
`Hopkins Farm Dr`: true,
`Hopkins Rd`: true,
`Hopson Rd`: true,
`Horizon Trl`: true,
`Horseshoe Ct`: true,
`Horseshoe Loop`: true,
`Horseshow Rd`: true,
`Hotel St`: true,
`Howard Ave`: true,
`Howard Dr`: true,
`Howard Heights St`: true,
`Howard St`: true,
`Howell Bend Rd`: true,
`Howell Rd`: true,
`Howell St`: true,
`Hughs Pl`: true,
`Hunt Club Ln`: true,
`Huntcliff Dr`: true,
`Hunters Cv`: true,
`Hunters Rdg`: true,
`Hunters View`: true,
`Huntington Ct`: true,
`Hwy 293`: true,
`Hwy 411`: true,
`Hyatt Ct`: true,
`I-75`: true,
`Idlewood Dr`: true,
`Imperial Ct`: true,
`Independence Way`: true,
`Indian Hills Dr`: true,
`Indian Hills Hght`: true,
`Indian Mounds Rd`: true,
`Indian Ridge Ct`: true,
`Indian Springs Dr`: true,
`Indian Trl`: true,
`Indian Valley Way`: true,
`Indian Woods Dr`: true,
`Industrial Dr`: true,
`Industrial Park Rd`: true,
`Ingram Rd`: true,
`Iron Belt Ct`: true,
`Iron Belt Rd`: true,
`Iron Hill Cv`: true,
`Iron Hill Rd`: true,
`Iron Mountain Rd`: true,
`Irwin St`: true,
`Isabella Ct`: true,
`Island Ford Rd`: true,
`Island Mill Rd`: true,
`<NAME> Rd`: true,
`Ivanhoe Pl`: true,
`Ivy Chase Way`: true,
`Ivy Ln`: true,
`Ivy Stone Ct`: true,
`J R Rd`: true,
`Jackson Dr`: true,
`Jackson Pl`: true,
`Jackson Rd`: true,
`<NAME>`: true,
`Jackson St`: true,
`Jacob Dr`: true,
`Jacobs Rd`: true,
`<NAME>ve`: true,
`James Place`: true,
`James Rd`: true,
`James St`: true,
`Jamesport Ln`: true,
`Janice Dr`: true,
`Janice Ln`: true,
`<NAME>`: true,
`Jasmine Ln`: true,
`Jazmin Sq`: true,
`Jeffery Ln`: true,
`Jeffery Rd`: true,
`Jenkins Dr`: true,
`Jennifer Ln`: true,
`Jenny Ln`: true,
`Jewell Rd`: true,
`Jill Ln`: true,
`Jim Dr`: true,
`<NAME> Rd`: true,
`Jim Ln`: true,
`<NAME> Rd`: true,
`Jockey Way`: true,
`<NAME> Pkwy`: true,
`<NAME> Rd`: true,
`<NAME> Dr`: true,
`<NAME> St`: true,
`<NAME> Rd`: true,
`<NAME>`: true,
`Johnson Dr`: true,
`Johnson Ln`: true,
`Johnson Mountain Rd`: true,
`Johnson St`: true,
`<NAME>`: true,
`<NAME>`: true,
`Jones Ct`: true,
`<NAME> Pl`: true,
`<NAME> Rd`: true,
`Jones Rd`: true,
`<NAME> Rd`: true,
`Jones St`: true,
`Jordan Rd`: true,
`Jordan St`: true,
`Joree Rd`: true,
`<NAME>`: true,
`Jude Dr`: true,
`<NAME>`: true,
`Juliana Way`: true,
`Juniper Ln`: true,
`Justine Rd`: true,
`Kakki Ct`: true,
`Kaleigh Ct`: true,
`Katie Dr`: true,
`Katie Rdg`: true,
`Katrina Dr`: true,
`Kay Rd`: true,
`Kayla Ct`: true,
`Keeling Lake Rd`: true,
`Keeling Mountain Rd`: true,
`Keith Rd`: true,
`Kelley Trl`: true,
`<NAME> Ct`: true,
`<NAME>`: true,
`Kelly Dr`: true,
`Ken St`: true,
`Kent Dr`: true,
`Kentucky Ave`: true,
`Kentucky Walk`: true,
`Kenwood Ln`: true,
`Kerry St`: true,
`Kimberly Dr`: true,
`<NAME>`: true,
`Kincannon Rd`: true,
`King Rd`: true,
`King St`: true,
`Kings Camp Rd`: true,
`Kings Dr`: true,
`Kingston Hwy`: true,
`Kingston Pointe Dr`: true,
`Kiowa Ct`: true,
`Kirby Ct`: true,
`Kirby Dr`: true,
`Kirk Rd`: true,
`Kitchen Mountain Rd`: true,
`Kitchens All`: true,
`Knight Dr`: true,
`Knight St`: true,
`Knight Way`: true,
`Knollwood Way`: true,
`Knucklesville Rd`: true,
`Kooweskoowe Blvd`: true,
`Kortlyn Pl`: true,
`Kovells Dr`: true,
`Kristen Ct`: true,
`Kristen Ln`: true,
`Kuhlman St`: true,
`Lacey Rd`: true,
`Ladds Mountain Rd`: true,
`Lake Ct`: true,
`Lake Dr`: true,
`Lake Drive No 1`: true,
`Lake Eagle Ct`: true,
`Lake Haven Dr`: true,
`Lake Marguerite Rd`: true,
`Lake Overlook Dr`: true,
`Lake Point Dr`: true,
`Lake Top Dr`: true,
`Lakeport`: true,
`Lakeshore Cir`: true,
`Lakeside Trl`: true,
`Lakeside Way`: true,
`Lakeview Ct`: true,
`Lakeview Drive No 1`: true,
`Lakeview Drive No 2`: true,
`Lakeview Drive No 3`: true,
`Lakewood Ct`: true,
`Lamplighter Cv`: true,
`Lancelot Ct`: true,
`Lancer Ct`: true,
`Landers Dr`: true,
`Landers Rd`: true,
`Lanham Field Rd`: true,
`Lanham Rd`: true,
`Lanier Dr`: true,
`Lantern Cir`: true,
`Lantern Light Trl`: true,
`Lark Cir`: true,
`Larkspur Ln`: true,
`Larkspur Rd`: true,
`Larkwood Cir`: true,
`Larsen Rdg`: true,
`Latimer Ln`: true,
`Latimer Rd`: true,
`Laura Dr`: true,
`Laurel Cv`: true,
`Laurel Dr`: true,
`Laurel Trc`: true,
`Laurel Way`: true,
`Laurelwood Ln`: true,
`Lauren Ln`: true,
`Lavanes Way`: true,
`Law Rd`: true,
`Lawrence St`: true,
`Lazy Water Dr`: true,
`Lead Mountain Rd`: true,
`Leake St`: true,
`Ledford Ln`: true,
`Lee Ln`: true,
`Lee Rd`: true,
`Lee St`: true,
`Legacy Way`: true,
`Legion St`: true,
`Leila Cv`: true,
`Lennox Park Ave`: true,
`Lenox Dr`: true,
`Leonard Dr`: true,
`Leslie Cv`: true,
`Lewis Dr`: true,
`Lewis Farm Rd`: true,
`Lewis Rd`: true,
`Lewis Way`: true,
`Lexington Ct`: true,
`Lexy Way`: true,
`Liberty Crossing Dr`: true,
`Liberty Dr`: true,
`Liberty Square Dr`: true,
`Lily Way`: true,
`Limerick Ct`: true,
`Linda Rd`: true,
`Lindsey Dr`: true,
`Lingerfelt Ln`: true,
`Linwood Rd`: true,
`Lipscomb Cir`: true,
`Litchfield St`: true,
`Little Gate Way`: true,
`Little John Ln`: true,
`Little John Trl`: true,
`Little St`: true,
`Little Valley Rd`: true,
`Littlefield Rd`: true,
`Live Oak Run`: true,
`Livsey Rd`: true,
`Lodge Rd`: true,
`Lois Ln`: true,
`Lois Rd`: true,
`London Ct`: true,
`Londonderry Way`: true,
`Long Branch Ct`: true,
`Long Rd`: true,
`Long Trl`: true,
`Longview Pte`: true,
`Lovell St`: true,
`Low Ct`: true,
`Lowery Rd`: true,
`Lowry Way`: true,
`Lucas Ln`: true,
`Lucas Rd`: true,
`Lucille Rd`: true,
`Luckie St`: true,
`Luke Ln`: true,
`Lumpkin Dr`: true,
`Lusk Ave`: true,
`Luther Knight Rd`: true,
`Luwanda Trl`: true,
`Lynch St`: true,
`<NAME> Rd`: true,
`<NAME> Rd`: true,
`Macedonia Rd`: true,
`Macra Dr`: true,
`Madden Rd`: true,
`Madden St`: true,
`Maddox Rd`: true,
`Madison Cir`: true,
`Madison Ct`: true,
`Madison Ln`: true,
`Madison Pl`: true,
`Madison Way`: true,
`Magnolia Ct`: true,
`Magnolia Dr`: true,
`Magnolia Farm Rd`: true,
`Mahan Ln`: true,
`Mahan Rd`: true,
`Main Lake Dr`: true,
`Main St`: true,
`Mallet Pte`: true,
`Mallory Ct`: true,
`Mallory Dr`: true,
`Manning Mill Rd`: true,
`Manning Mill Way`: true,
`Manning Rd`: true,
`Manor House Ln`: true,
`Manor Way`: true,
`Mansfield Rd`: true,
`Maple Ave`: true,
`Maple Dr`: true,
`Maple Grove Dr`: true,
`Maple Ln`: true,
`Maple Ridge Dr`: true,
`Maple St`: true,
`Maplewood Pl`: true,
`Maplewood Trl`: true,
`Marguerite Dr`: true,
`Marina Rd`: true,
`Mariner Way`: true,
`Mark Trl`: true,
`Market Place Blvd`: true,
`Marlin Ln`: true,
`Marr Rd`: true,
`Marshwood Glen`: true,
`Martha Ct`: true,
`Marthas Pl`: true,
`Marthas Walk`: true,
`Martin Cir`: true,
`Martin Loop`: true,
`<NAME>er King Jr Cir`: true,
`Martin Luther King Jr Dr`: true,
`Martin Rd`: true,
`<NAME> Ln`: true,
`Mary Ln`: true,
`Mary St`: true,
`Massell Dr`: true,
`Massingale Rd`: true,
`Mathews Rd`: true,
`<NAME> Rd`: true,
`Mauldin Cir`: true,
`Maxwell Rd`: true,
`May St`: true,
`Maybelle St`: true,
`Mayfield Rd`: true,
`Mayflower Cir`: true,
`Mayflower St`: true,
`Mayflower Way`: true,
`Mays Rd`: true,
`McCanless St`: true,
`McClure Dr`: true,
`McCormick Rd`: true,
`McCoy Rd`: true,
`McElreath St`: true,
`McEver St`: true,
`McKaskey Creek Rd`: true,
`McKay Dr`: true,
`McKelvey Ct`: true,
`McKenna Rd`: true,
`McKenzie Cir`: true,
`McKenzie St`: true,
`McKinley Ct`: true,
`McKinney Campground Rd`: true,
`McMillan Rd`: true,
`McStotts Rd`: true,
`McTier Cir`: true,
`Meadow Ln`: true,
`Meadowbridge Dr`: true,
`Meadowview Cir`: true,
`Meadowview Rd`: true,
`Medical Dr`: true,
`Melhana Dr`: true,
`Melone Dr`: true,
`Mercer Dr`: true,
`Mercer Ln`: true,
`Merchants Square Dr`: true,
`Michael Ln`: true,
`Michigan Ave`: true,
`Middle Ct`: true,
`Middlebrook Dr`: true,
`Middleton Ct`: true,
`Milam Bridge Rd`: true,
`Milam Cir`: true,
`Milam St`: true,
`Miles Dr`: true,
`Mill Creek Rd`: true,
`Mill Rock Dr`: true,
`Mill View Ct`: true,
`Miller Farm Rd`: true,
`Millers Way`: true,
`Millstone Pt`: true,
`Millstream Ct`: true,
`Milner Rd`: true,
`Milner St`: true,
`Miltons Walk`: true,
`Mimosa Ln`: true,
`Mimosa Ter`: true,
`Mineral Museum Dr`: true,
`Miners Pt`: true,
`Mint Rd`: true,
`Mirror Lake Dr`: true,
`Mission Hills Dr`: true,
`Mission Mountain Rd`: true,
`Mission Rd`: true,
`Mission Ridge Dr`: true,
`Misty Hollow Ct`: true,
`Misty Ridge Dr`: true,
`Misty Valley Dr`: true,
`Mitchell Ave`: true,
`Mitchell Rd`: true,
`Mockingbird Dr`: true,
`Mohawk Dr`: true,
`Mon<NAME>`: true,
`Montclair Ct`: true,
`Montgomery St`: true,
`Montview Cir`: true,
`Moody St`: true,
`Moonlight Dr`: true,
`Moore Rd`: true,
`Moore St`: true,
`Moores Spring Rd`: true,
`Morgan Ave`: true,
`Morgan Dr`: true,
`Moriah Way`: true,
`Morris Dr`: true,
`Morris Rd`: true,
`Mosley Dr`: true,
`Moss Landing Rd`: true,
`Moss Ln`: true,
`Moss Way`: true,
`Mossy Rock Ln`: true,
`Mostellers Mill Rd`: true,
`Motorsports Dr`: true,
`Mount Olive St`: true,
`Mount Pleasant Rd`: true,
`Mountain Breeze Rd`: true,
`Mountain Chase Dr`: true,
`Mountain Creek Trl`: true,
`Mountain Ridge Dr`: true,
`Mountain Ridge Rd`: true,
`Mountain Trail Ct`: true,
`Mountain View Ct`: true,
`Mountain View Dr`: true,
`Mountain View Rd`: true,
`Mountainbrook Dr`: true,
`Muirfield Walk`: true,
`Mulberry Ln`: true,
`Mulberry Way`: true,
`Mulinix Rd`: true,
`Mull St`: true,
`Mullinax Rd`: true,
`Mundy Rd`: true,
`Mundy St`: true,
`Murphy Ln`: true,
`Murray Ave`: true,
`N Bartow St`: true,
`N Cass St`: true,
`N Central Ave`: true,
`N Dixie Ave`: true,
`N Erwin St`: true,
`N Franklin St`: true,
`N Gilmer St`: true,
`N Main St`: true,
`N Morningside Dr`: true,
`N Museum Dr`: true,
`N Public Sq`: true,
`N Railroad St`: true,
`N Tennessee St`: true,
`N Wall St`: true,
`Nally Rd`: true,
`Natalie Dr`: true,
`Natchi Trl`: true,
`Navajo Ln`: true,
`Navajo Trl`: true,
`Navigation Pte`: true,
`Needle Point Rdg`: true,
`Neel St`: true,
`Nelson St`: true,
`New Hope Church Rd`: true,
`Nicholas Ln`: true,
`<NAME>ill`: true,
`Noble St`: true,
`Noland St`: true,
`Norland Ct`: true,
`North Ave`: true,
`North Dr`: true,
`North Hampton Dr`: true,
`North Oaks Cir`: true,
`North Point Dr`: true,
`North Ridge Cir`: true,
`North Ridge Ct`: true,
`North Ridge Dr`: true,
`North Ridge Pt`: true,
`North Valley Rd`: true,
`North Village Cir`: true,
`North Wesley Rdg`: true,
`North Woods Dr`: true,
`Northpoint Pkwy`: true,
`Northside Pkwy`: true,
`Norton Rd`: true,
`Nottingham Dr`: true,
`Nottingham Way`: true,
`November Ln`: true,
`Oak Beach Dr`: true,
`Oak Ct`: true,
`Oak Dr`: true,
`Oak Farm Dr`: true,
`Oak Grove Ct`: true,
`Oak Grove Ln`: true,
`Oak Grove Rd`: true,
`Oak Hill Cir`: true,
`Oak Hill Dr`: true,
`Oak Hill Ln`: true,
`Oak Hill Way`: true,
`Oak Hollow Rd`: true,
`Oak Leaf Dr`: true,
`Oak Ln`: true,
`Oak St`: true,
`Oak Street No 1`: true,
`Oak Street No 2`: true,
`Oak Way`: true,
`Oakbrook Dr`: true,
`Oakdale Dr`: true,
`Oakland St`: true,
`Oakridge Dr`: true,
`Oakside Ct`: true,
`Oakside Trl`: true,
`Oakwood Way`: true,
`Ohio Ave`: true,
`Ohio St`: true,
`Old 140 Hwy`: true,
`Old 41 Hwy`: true,
`Old Alabama Rd`: true,
`Old Alabama Spur`: true,
`Old Allatoona Rd`: true,
`Old Barn Way`: true,
`Old Bells Ferry Rd`: true,
`Old C C C Rd`: true,
`Old Canton Rd`: true,
`Old Cassville White Rd`: true,
`Old Cline Smith Rd`: true,
`Old Dallas Hwy`: true,
`Old Dallas Rd`: true,
`Old Dixie Hwy`: true,
`Old Farm Rd`: true,
`Old Field Rd`: true,
`Old Furnace Rd`: true,
`Old Gilliam Springs Rd`: true,
`Old Goodie Mountain Rd`: true,
`Old Grassdale Rd`: true,
`Old Hall Station Rd`: true,
`Old Hardin Bridge Rd`: true,
`Old Hemlock Cv`: true,
`Old Home Place Rd`: true,
`Old Jones Mill Rd`: true,
`Old Macedonia Campground Rd`: true,
`Old Martin Rd`: true,
`Old McKaskey Creek Rd`: true,
`Old Mill Farm Rd`: true,
`Old Mill Rd`: true,
`Old Old Alabama Rd`: true,
`Old Post Rd`: true,
`Old River Rd`: true,
`Old Rome Rd`: true,
`Old Roving Rd`: true,
`Old Rudy York Rd`: true,
`Old Sandtown Rd`: true,
`Old Spring Place Rd`: true,
`Old Stilesboro Rd`: true,
`Old Tennessee Hwy`: true,
`Old Tennessee Rd`: true,
`Old Wade Rd`: true,
`Olive Vine Church Rd`: true,
`Opal St`: true,
`Orchard Rd`: true,
`Ore Mine Rd`: true,
`Oriole Dr`: true,
`Otting Dr`: true,
`Overlook Cir`: true,
`Overlook Way`: true,
`Owensby Ln`: true,
`Oxford Ct`: true,
`Oxford Dr`: true,
`Oxford Ln`: true,
`Oxford Mill Way`: true,
`P M B Young Rd`: true,
`Paddock Way`: true,
`Padgett Rd`: true,
`Paga Mine Rd`: true,
`Paige Dr`: true,
`Paige St`: true,
`Palmer Rd`: true,
`Pam Cir`: true,
`Park Ct`: true,
`Park Marina Rd`: true,
`Park Place Dr`: true,
`Park St`: true,
`Parker Ave`: true,
`Parker Wood Rd`: true,
`Parkside View`: true,
`Parkview Dr`: true,
`Parmenter St`: true,
`<NAME> Rd`: true,
`Pasley Rd`: true,
`Pathfinder St`: true,
`Patricia Dr`: true,
`Patterson Dr`: true,
`Patterson Ln`: true,
`Patton Ln`: true,
`Patton St`: true,
`Pawnee Trl`: true,
`Peace Tree Ln`: true,
`<NAME>`: true,
`Peachtree St`: true,
`Pearl Ln`: true,
`Pearl St`: true,
`Pearson Rd`: true,
`Pearson St`: true,
`<NAME> Ct`: true,
`<NAME> Ct`: true,
`Pecan Ln`: true,
`Peddlers Way`: true,
`Peeples Valley Rd`: true,
`Pembroke Ln`: true,
`Pendley Trl`: true,
`Penelope Ln`: true,
`Penfield Dr`: true,
`Penny Ct`: true,
`Penny Ln`: true,
`Peppermill Dr`: true,
`Percheron Trl`: true,
`Perkins Dr`: true,
`Perkins Mountain Rd`: true,
`Perry Rd`: true,
`Pettit Cir`: true,
`Pettit Rd`: true,
`Phillips Dr`: true,
`Phoenix Air Dr`: true,
`Pickers Row`: true,
`Picklesimer Rd`: true,
`Pickys Holl`: true,
`Piedmont Ave`: true,
`Piedmont Ln`: true,
`Pilgrim St`: true,
`Pine Bow Rd`: true,
`Pine Cir`: true,
`Pine Dr`: true,
`Pine Forrest Rd`: true,
`Pine Grove Church Rd`: true,
`Pine Grove Cir`: true,
`Pine Grove Rd`: true,
`Pine Log Rd`: true,
`Pine Loop`: true,
`Pine Needle Trl`: true,
`Pine Oak Ct`: true,
`Pine Ridge Ct`: true,
`Pine Ridge Dr`: true,
`Pine Ridge Ln`: true,
`Pine Ridge Rd`: true,
`Pine St`: true,
`Pine Street No 1`: true,
`Pine Street No 2`: true,
`Pine Valley Cir`: true,
`Pine Valley Dr`: true,
`Pine Vista Cir`: true,
`Pine Water Ct`: true,
`Pine Wood Rd`: true,
`Pinecrest Dr`: true,
`Pinehill Dr`: true,
`Pinery Dr`: true,
`Piney Woods Rd`: true,
`Pinson Dr`: true,
`Pioneer Trl`: true,
`Pittman St`: true,
`Piute Pl`: true,
`Plainview Dr`: true,
`Plantation Rd`: true,
`Plantation Ridge Dr`: true,
`Planters Dr`: true,
`Pleasant Grove Church Rd`: true,
`Pleasant Ln`: true,
`Pleasant Run Dr`: true,
`Pleasant Valley Rd`: true,
`Plymouth Ct`: true,
`Plymouth Dr`: true,
`Point Dr`: true,
`Point Place Dr`: true,
`Pointe North Dr`: true,
`Pointe Way`: true,
`Polo Flds`: true,
`Pompano Ln`: true,
`Ponders Rd`: true,
`Popham Rd`: true,
`Poplar Springs Rd`: true,
`Poplar St`: true,
`Popular Dr`: true,
`Post Office Cir`: true,
`Postelle St`: true,
`Powell Rd`: true,
`Powers Ct`: true,
`Powersports Cir`: true,
`Prather St`: true,
`Pratt Rd`: true,
`Prayer Trl`: true,
`Prestwick Loop`: true,
`Princeton Ave`: true,
`Princeton Blvd`: true,
`Princeton Glen Ct`: true,
`Princeton Pl`: true,
`Princeton Place Dr`: true,
`Princeton Walk`: true,
`Priory Club Dr`: true,
`Public Sq`: true,
`Puckett Rd`: true,
`Puckett St`: true,
`Pumpkinvine Trl`: true,
`Puritan St`: true,
`Pyron Ct`: true,
`Quail Ct`: true,
`Quail Hollow Dr`: true,
`Quail Ridge Dr`: true,
`Quail Ridge Rd`: true,
`Quail Run`: true,
`Quality Dr`: true,
`R E Fields Rd`: true,
`Rail Dr`: true,
`Rail Ovlk`: true,
`Railroad Ave`: true,
`Railroad Pass`: true,
`Railroad St`: true,
`Raindrop Ln`: true,
`Randolph Rd`: true,
`Randy Way`: true,
`Ranell Pl`: true,
`Ranger Rd`: true,
`Rattler Rd`: true,
`Ravenfield Rd`: true,
`<NAME> Rd`: true,
`Recess Rd`: true,
`Red Apple Ter`: true,
`Red Barn Rd`: true,
`Red Bug Pt`: true,
`Red Fox Trl`: true,
`Red Oak Dr`: true,
`Red Tip Dr`: true,
`Red Top Beach Rd`: true,
`Red Top Cir`: true,
`Red Top Dr`: true,
`Red Top Mountain Rd`: true,
`Redcomb Dr`: true,
`Redd Rd`: true,
`Redding Rd`: true,
`Redfield Ct`: true,
`Rediger Ct`: true,
`Redwood Dr`: true,
`Reject Rd`: true,
`Remington Ct`: true,
`Remington Dr`: true,
`Remington Ln`: true,
`Retreat Rdg`: true,
`Rex Ln`: true,
`Reynolds Bend Rd`: true,
`Reynolds Bridge Rd`: true,
`Reynolds Ln`: true,
`Rhonda Ln`: true,
`Rice Dr`: true,
`Richards Rd`: true,
`Richland Dr`: true,
`Riddle Mill Rd`: true,
`Ridge Cross Rd`: true,
`Ridge Rd`: true,
`Ridge Row Dr`: true,
`Ridge View Dr`: true,
`Ridge Way`: true,
`Ridgedale Rd`: true,
`Ridgeline Way`: true,
`Ridgemont Way`: true,
`Ridgeview Ct`: true,
`Ridgeview Dr`: true,
`Ridgeview Trl`: true,
`Ridgewater Dr`: true,
`Ridgeway Ct`: true,
`Ridgewood Dr`: true,
`Ringers Rd`: true,
`Rip Rd`: true,
`Ripley Ave`: true,
`River Birch Cir`: true,
`River Birch Ct`: true,
`River Birch Dr`: true,
`River Birch Rd`: true,
`River Ct`: true,
`River Dr`: true,
`River Oaks Ct`: true,
`River Oaks Dr`: true,
`River Shoals Dr`: true,
`River Walk Pkwy`: true,
`Riverbend Rd`: true,
`Rivercreek Xing`: true,
`Riverside Ct`: true,
`Riverside Dr`: true,
`Riverview Ct`: true,
`Riverview Trl`: true,
`Riverwood Cv`: true,
`Roach Dr`: true,
`Road No 1 South`: true,
`Road No 2 South`: true,
`Road No 3 South`: true,
`Roberson Dr`: true,
`Roberson Rd`: true,
`Robert St`: true,
`Roberts Dr`: true,
`Roberts Way`: true,
`Robin Dr`: true,
`Robin Hood Dr`: true,
`Robinson Loop`: true,
`Rock Fence Cir`: true,
`Rock Fence Rd`: true,
`Rock Fence Road No 2`: true,
`Rock Ridge Ct`: true,
`Rock Ridge Rd`: true,
`Rockaway Ct`: true,
`Rockcrest Cir`: true,
`Rockpoint`: true,
`Rockridge Dr`: true,
`Rocky Ave`: true,
`Rocky Cir`: true,
`Rocky Mountain Pass`: true,
`Rocky Rd`: true,
`Rocky St`: true,
`Rogers Cut Off Rd`: true,
`Rogers Rd`: true,
`Rogers St`: true,
`Rolling Hills Dr`: true,
`Ron St`: true,
`Ronson St`: true,
`Roosevelt St`: true,
`Rose Brook Cir`: true,
`Rose Trl`: true,
`Rose Way`: true,
`Rosebury Ct`: true,
`Rosen St`: true,
`Rosewood Ln`: true,
`Ross Rd`: true,
`Roth Ln`: true,
`Roundtable Ct`: true,
`Roving Hills Cir`: true,
`Roving Rd`: true,
`Rowland Springs Rd`: true,
`Roxburgh Trl`: true,
`Roxy Pl`: true,
`Royal Lake Ct`: true,
`Royal Lake Cv`: true,
`Royal Lake Dr`: true,
`Royco Dr`: true,
`Rubie Ln`: true,
`Ruby Dabbs Ln`: true,
`Ruby St`: true,
`Rudy York Rd`: true,
`Ruff Dr`: true,
`Running Deer Trl`: true,
`Running Terrace Way`: true,
`Russell Dr`: true,
`Russell Rdg`: true,
`Russler Way`: true,
`<NAME>`: true,
`Ryan Rd`: true,
`Ryles Rd`: true,
`S Bartow St`: true,
`S Cass St`: true,
`S Central Ave`: true,
`S Dixie Ave`: true,
`S Erwin St`: true,
`S Franklin St`: true,
`S Gilmer St`: true,
`S Main St`: true,
`S Morningside Dr`: true,
`S Museum Dr`: true,
`S Public Sq`: true,
`S Railroad St`: true,
`S Tennessee St`: true,
`S Wall St`: true,
`Saddle Club Dr`: true,
`Saddle Field Cir`: true,
`Saddle Ln`: true,
`Saddle Ridge Dr`: true,
`Saddlebrook Dr`: true,
`Saddleman Ct`: true,
`Sage Way`: true,
`Saggus Rd`: true,
`Sailors Cv`: true,
`Saint Andrews Dr`: true,
`Saint Elmo Cir`: true,
`Saint Francis Pl`: true,
`Saint Ives Way`: true,
`Salacoa Creek Rd`: true,
`Salacoa Rd`: true,
`<NAME> Rd`: true,
`Samuel Way`: true,
`Sandcliffe Ln`: true,
`Sandtown Rd`: true,
`Saratoga Dr`: true,
`Sassafras Trl`: true,
`Sassy Ln`: true,
`Satcher Rd`: true,
`Scale House Dr`: true,
`Scarlett Oak Dr`: true,
`Scenic Mountain Dr`: true,
`School St`: true,
`Scott Dr`: true,
`Screaming Eagle Ct`: true,
`Sea Horse Cir`: true,
`Secretariat Ct`: true,
`Secretariat Rd`: true,
`Seminole Rd`: true,
`Seminole Trl`: true,
`Seneca Ln`: true,
`Sentry Dr`: true,
`Sequoia Pl`: true,
`Sequoyah Cir`: true,
`Sequoyah Trl`: true,
`Serena St`: true,
`Service Road No 3`: true,
`Setters Pte`: true,
`Settlers Cv`: true,
`Sewell Rd`: true,
`Shadow Ln`: true,
`Shady Oak Ln`: true,
`Shady Valley Dr`: true,
`Shagbark Dr`: true,
`Shake Rag Cir`: true,
`Shake Rag Rd`: true,
`Shaker Ct`: true,
`Shallowood Pl`: true,
`Sharp Way`: true,
`Shaw Blvd`: true,
`Shaw St`: true,
`Sheffield Pl`: true,
`Sheila Ln`: true,
`Sheila Rdg`: true,
`Shenandoah Pkwy`: true,
`Sherman Ln`: true,
`Sherwood Dr`: true,
`Sherwood Ln`: true,
`Sherwood Way`: true,
`Shiloh Church Rd`: true,
`Shinall Gaines Rd`: true,
`Shinall Rd`: true,
`Shirley Ln`: true,
`Shotgun Rd`: true,
`Shropshire Ln`: true,
`Signal Mountain Cir`: true,
`Signal Mountain Dr`: true,
`Silversmith Trl`: true,
`Simmons Dr`: true,
`<NAME>`: true,
`Simpson Rd`: true,
`Simpson Trl`: true,
`Singletree Rdg`: true,
`Siniard Dr`: true,
`Siniard Rd`: true,
`Sioux Rd`: true,
`Skinner St`: true,
`Skyline Dr`: true,
`Skyview Dr`: true,
`Skyview Pte`: true,
`Slopes Dr`: true,
`<NAME> Rd`: true,
`<NAME>`: true,
`Smith Dr`: true,
`Smith Rd`: true,
`Smyrna St`: true,
`Snapper Ln`: true,
`Snow Springs Church Rd`: true,
`Snow Springs Rd`: true,
`Snug Harbor Dr`: true,
`Soaring Heights Dr`: true,
`Soho Dr`: true,
`Somerset Club Dr`: true,
`Somerset Ln`: true,
`Sonya Pl`: true,
`South Ave`: true,
`South Bridge Dr`: true,
`South Dr`: true,
`South Oaks Dr`: true,
`South Valley Rd`: true,
`Southern Rd`: true,
`Southridge Trl`: true,
`Southview Dr`: true,
`Southwell Ave`: true,
`Southwood Dr`: true,
`Sparks Rd`: true,
`Sparks St`: true,
`Sparky Trl`: true,
`Sparrow Ct`: true,
`Spigs St`: true,
`Split Oak Dr`: true,
`Split Rail Ct`: true,
`Spring Creek Cir`: true,
`Spring Folly`: true,
`Spring Lake Trl`: true,
`Spring Meadows Ln`: true,
`Spring Place Rd`: true,
`Spring St`: true,
`Springhouse Ct`: true,
`Springmont Dr`: true,
`Springwell Ln`: true,
`Spruce Ln`: true,
`Spruce St`: true,
`Squires Ct`: true,
`SR 113`: true,
`SR 140`: true,
`SR 20`: true,
`SR 294`: true,
`SR 61`: true,
`Stamp Creek Rd`: true,
`Stampede Pass`: true,
`Standard Ct`: true,
`Star Dust Trl`: true,
`Starlight Dr`: true,
`Starnes Rd`: true,
`Starting Gate Dr`: true,
`Stately Oaks Dr`: true,
`Station Ct`: true,
`Station Rail Dr`: true,
`Station Way`: true,
`Staton Pl`: true,
`Steeplechase Ln`: true,
`Stephen Way`: true,
`Stephens Rd`: true,
`Stephens St`: true,
`Sterling Ct`: true,
`Stewart Dr`: true,
`Stewart Ln`: true,
`Stiles Ct`: true,
`Stiles Fairway`: true,
`Stiles Rd`: true,
`Stillmont Way`: true,
`Stillwater Ct`: true,
`Stoker Rd`: true,
`Stokley St`: true,
`Stone Gate Dr`: true,
`Stone Mill Dr`: true,
`Stonebridge Ct`: true,
`Stonebrook Dr`: true,
`Stonecreek Dr`: true,
`Stonehaven Cir`: true,
`Stonehenge Ct`: true,
`Stoner Rd`: true,
`Stoneridge Pl`: true,
`Stoners Chapel Rd`: true,
`Stonewall Ln`: true,
`Stonewall St`: true,
`Stoneybrook Ct`: true,
`Stratford Ln`: true,
`Stratford Way`: true,
`Striplin Cv`: true,
`Sue U Path`: true,
`Sugar Hill Rd`: true,
`Sugar Mill Dr`: true,
`Sugar Valley Rd`: true,
`Sugarberry Pl`: true,
`Sukkau Dr`: true,
`Sullins Rd`: true,
`Summer Dr`: true,
`Summer Pl`: true,
`Summer St`: true,
`Summerset Ct`: true,
`Summit Ridge Cir`: true,
`Summit Ridge Dr`: true,
`Summit St`: true,
`Sumner Ln`: true,
`Sunrise Dr`: true,
`Sunset Cir`: true,
`Sunset Dr`: true,
`Sunset Rd`: true,
`Sunset Ter`: true,
`Surrey Ln`: true,
`Sutton Rd`: true,
`Sutton Trl`: true,
`Swafford Rd`: true,
`Swallow Dr`: true,
`Swan Cir`: true,
`Sweet Eloise Ln`: true,
`Sweet Gracie Holl`: true,
`Sweet Gum Ln`: true,
`Sweet Water Ct`: true,
`Sweetbriar Cir`: true,
`Swisher Dr`: true,
`Syble Cv`: true,
`Tabernacle St`: true,
`Taff Rd`: true,
`Talisman Dr`: true,
`<NAME> Ln`: true,
`Tanager Ln`: true,
`Tanchez Dr`: true,
`Tanglewood Dr`: true,
`Tank Hill St`: true,
`Tant Rd`: true,
`<NAME> Rd`: true,
`Tanyard Rd`: true,
`Tara Way`: true,
`Tarpon Trl`: true,
`Tasha Trl`: true,
`<NAME> Rd`: true,
`Taylor Dr`: true,
`Taylor Ln`: true,
`Taylorsville Macedonia Rd`: true,
`Taylorsville Rd`: true,
`Teague Rd`: true,
`Teal Ct`: true,
`Tellus Dr`: true,
`Tennessee Ave`: true,
`Terrell Dr`: true,
`Terry Ln`: true,
`Thatch Ct`: true,
`Theater Ave`: true,
`Third Army Rd`: true,
`Thistle Stop`: true,
`Thomas Ct`: true,
`Thompson St`: true,
`Thornwood Dr`: true,
`Thoroughbred Ln`: true,
`Thrasher Ct`: true,
`Thrasher Rd`: true,
`Thunderhawk Ln`: true,
`Tidwell Rd`: true,
`Tillberry Ct`: true,
`Tillton Trl`: true,
`Timber Ridge Dr`: true,
`Timber Trl`: true,
`Timberlake Cv`: true,
`Timberlake Pte`: true,
`Timberland Cir`: true,
`Timberland Ct`: true,
`Timberwalk Ct`: true,
`Timberwood Knol`: true,
`Timberwood Rd`: true,
`Tinsley Dr`: true,
`Todd Rd`: true,
`<NAME> Rd`: true,
`Tomahawk Dr`: true,
`Top Ridge Ct`: true,
`Topridge Dr`: true,
`Tori Ln`: true,
`Towe Chapel Rd`: true,
`Tower Dr`: true,
`Tower Ridge Rd`: true,
`Tower St`: true,
`Town And Country Dr`: true,
`Townsend Dr`: true,
`Townsend Teague Rd`: true,
`Townsley Dr`: true,
`Tracy Ln`: true,
`Tramore Ct`: true,
`Trappers Cv`: true,
`Travelers Path`: true,
`Treemont Dr`: true,
`Triangle Ln`: true,
`Trimble Hollow Rd`: true,
`Trotters Walk`: true,
`Tuba Dr`: true,
`Tumlin St`: true,
`Tupelo Dr`: true,
`Turnberry Ct`: true,
`Turner Dr`: true,
`Turner St`: true,
`Turtle Rock Ct`: true,
`Twelve Oaks Dr`: true,
`Twin Branches Ln`: true,
`Twin Bridges Rd`: true,
`Twin Oaks Ln`: true,
`Twin Pines Rd`: true,
`Twinleaf Ct`: true,
`Two Gun Bailey Rd`: true,
`Two Run Creek Rd`: true,
`Two Run Creek Trl`: true,
`Two Run Trc`: true,
`Two Run Xing`: true,
`Unbridled Rd`: true,
`Val Hollow Ridge Rd`: true,
`Valley Creek Dr`: true,
`Valley Dale Dr`: true,
`Valley Dr`: true,
`Valley Trl`: true,
`Valley View Ct`: true,
`Valley View Dr`: true,
`Valley View Farm Rd`: true,
`Vaughan Ct`: true,
`Vaughan Dr`: true,
`<NAME> Rd`: true,
`Vaughn Rd`: true,
`Vaughn Spur`: true,
`Veach Loop`: true,
`Vermont Ave`: true,
`Victoria Dr`: true,
`Vigilant St`: true,
`Village Dr`: true,
`Village Trc`: true,
`Vineyard Mountain Rd`: true,
`Vineyard Rd`: true,
`Vineyard Way`: true,
`Vinnings Ln`: true,
`Vintage Ct`: true,
`Vintagewood Cv`: true,
`Virginia Ave`: true,
`Vista Ct`: true,
`Vista Woods Dr`: true,
`Vulcan Quarry Rd`: true,
`W Carter St`: true,
`W Cherokee Ave`: true,
`W Church St`: true,
`W Felton Rd`: true,
`W George St`: true,
`W Georgia Ave`: true,
`W Holiday Ct`: true,
`W Howard St`: true,
`W Indiana Ave`: true,
`W Iron Belt Rd`: true,
`W Lee St`: true,
`W Main St`: true,
`W Oak Grove Rd`: true,
`W Porter St`: true,
`W Railroad St`: true,
`W Rocky St`: true,
`Wade Chapel Rd`: true,
`Wade Rd`: true,
`Wagonwheel Dr`: true,
`Walden Xing`: true,
`Walker Hills Cir`: true,
`Walker Rd`: true,
`Walker St`: true,
`Walnut Dr`: true,
`Walnut Grove Rd`: true,
`Walnut Ln`: true,
`Walnut Trl`: true,
`Walt Way`: true,
`Walton St`: true,
`Wanda Dr`: true,
`Wansley Dr`: true,
`Ward Cir`: true,
`Ward Mountain Rd`: true,
`Ward Mountain Trl`: true,
`Warren Cv`: true,
`Washakie Ln`: true,
`Water Tower Rd`: true,
`Waterford Dr`: true,
`Waterfront Dr`: true,
`Waters Edge Dr`: true,
`Waters View`: true,
`Waterside Dr`: true,
`Waterstone Ct`: true,
`Waterstone Dr`: true,
`Watters Rd`: true,
`Wayland Cir`: true,
`Wayne Ave`: true,
`Wayne Dr`: true,
`Wayside Dr`: true,
`Wayside Rd`: true,
`Weaver St`: true,
`Webb Dr`: true,
`Websters Ferry Lndg`: true,
`Websters Overlook Dr`: true,
`Websters Overlook Lndg`: true,
`Weems Dr`: true,
`Weems Rd`: true,
`Weems Spur`: true,
`We<NAME> Ln`: true,
`Weissinger Rd`: true,
`Wellington Dr`: true,
`Wellons Rd`: true,
`Wells Dr`: true,
`Wells St`: true,
`Wentercress Dr`: true,
`<NAME> Ln`: true,
`Wesley Mill Dr`: true,
`Wesley Rd`: true,
`Wesley Trc`: true,
`Wessington Pl`: true,
`West Ave`: true,
`West Dr`: true,
`West Ln`: true,
`West Oak Dr`: true,
`West Ridge Ct`: true,
`West Ridge Dr`: true,
`Westchester Dr`: true,
`Westfield Park`: true,
`Westgate Dr`: true,
`Westminster Dr`: true,
`Westover Dr`: true,
`Westover Rdg`: true,
`Westside Chas`: true,
`Westview Dr`: true,
`Westwood Cir`: true,
`Westwood Dr`: true,
`Westwood Ln`: true,
`Wetlands Rd`: true,
`Wexford Cir`: true,
`Wey Bridge Ct`: true,
`Wheeler Rd`: true,
`Whipporwill Ct`: true,
`Whipporwill Ln`: true,
`Whispering Pine Cir`: true,
`Whispering Pine Ln`: true,
`Whistle Stop Dr`: true,
`White Oak Dr`: true,
`White Rd`: true,
`Widgeon Way`: true,
`Wild Flower Trl`: true,
`Wildberry Path`: true,
`Wilderness Camp Rd`: true,
`Wildwood Dr`: true,
`Wilkey St`: true,
`Wilkins Rd`: true,
`William Dr`: true,
`Williams Creek Trl`: true,
`Williams Rd`: true,
`Williams Spur Rd`: true,
`Williams St`: true,
`Willis Rd`: true,
`Willow Bend Dr`: true,
`Willow Cir`: true,
`Willow Ct`: true,
`Willow Ln`: true,
`Willow Trc`: true,
`Willow Wood Ln`: true,
`Willowbrook Ct`: true,
`Wilmer Way`: true,
`Wilson St`: true,
`Winchester Ave`: true,
`Winchester Dr`: true,
`Windcliff Ct`: true,
`Windermere Bend`: true,
`Windfield Dr`: true,
`Winding Branch Trc`: true,
`Winding Water Cv`: true,
`Windrush Dr`: true,
`Windsor Ct`: true,
`Windsor Trc`: true,
`Windy Hill Rd`: true,
`Wingfoot Ct`: true,
`Wingfoot Trl`: true,
`<NAME> Rd`: true,
`Winter Wood Ct`: true,
`Winter Wood Cv`: true,
`Winter Wood Dr`: true,
`Winter Wood Trc`: true,
`Winter Wood Trl`: true,
`Winter Wood Way`: true,
`Winterset Dr`: true,
`Wiseman Rd`: true,
`Wisteria Trl`: true,
`Wofford St`: true,
`Wolfcliff Rd`: true,
`Wolfpen Pass`: true,
`Wolfridge Trl`: true,
`Womack Dr`: true,
`Wood Cir`: true,
`Wood Forest Dr`: true,
`Wood Ln`: true,
`Wood Rd`: true,
`Wood St`: true,
`Woodall Rd`: true,
`Woodbine Dr`: true,
`Woodbridge Dr`: true,
`Woodcrest Dr`: true,
`Woodcrest Rd`: true,
`Wooddale Dr`: true,
`Woodhaven Ct`: true,
`Woodhaven Dr`: true,
`Woodland Bridge Rd`: true,
`Woodland Dr`: true,
`Woodland Rd`: true,
`Woodland Way`: true,
`Woodlands Way`: true,
`Woodsong Ct`: true,
`Woodview Dr`: true,
`Woodvine Ct`: true,
`Woodvine Dr`: true,
`Woody Rd`: true,
`Wooleys Rd`: true,
`Worthington Rd`: true,
`Wren Ct`: true,
`Wykle St`: true,
`Wynn Loop`: true,
`Wynn Rd`: true,
`Yacht Club Rd`: true,
`Yellow Brick Rd`: true,
`Yellow Hammer Dr`: true,
`Yonah Ct`: true,
`York Trl`: true,
`Young Deer Trl`: true,
`Young Loop`: true,
`Young Rd`: true,
`Young St`: true,
`Youngs Mill Rd`: true,
`Zena Dr`: true,
`Zion Rd`: true},
`ZipCode`: {
`01770`: true,
`02030`: true,
`02108`: true,
`02109`: true,
`02110`: true,
`02199`: true,
`02481`: true,
`02493`: true,
`06820`: true,
`06830`: true,
`06831`: true,
`06840`: true,
`06853`: true,
`06870`: true,
`06878`: true,
`06880`: true,
`06883`: true,
`07021`: true,
`07046`: true,
`07078`: true,
`07417`: true,
`07458`: true,
`07620`: true,
`07760`: true,
`07924`: true,
`07931`: true,
`07945`: true,
`10004`: true,
`10017`: true,
`10018`: true,
`10021`: true,
`10022`: true,
`10028`: true,
`10069`: true,
`10504`: true,
`10506`: true,
`10514`: true,
`10538`: true,
`10576`: true,
`10577`: true,
`10580`: true,
`10583`: true,
`11024`: true,
`11030`: true,
`11568`: true,
`11724`: true,
`19035`: true,
`19041`: true,
`19085`: true,
`19807`: true,
`20198`: true,
`20854`: true,
`22066`: true,
`23219`: true,
`28207`: true,
`30326`: true,
`32963`: true,
`33480`: true,
`33786`: true,
`33921`: true,
`34102`: true,
`34108`: true,
`34228`: true,
`60022`: true,
`60043`: true,
`60045`: true,
`60093`: true,
`60521`: true,
`60606`: true,
`60611`: true,
`63124`: true,
`74103`: true,
`75205`: true,
`75225`: true,
`76102`: true,
`77002`: true,
`77024`: true,
`78257`: true,
`83014`: true,
`85253`: true,
`89451`: true,
`90067`: true,
`90077`: true,
`90210`: true,
`90212`: true,
`90272`: true,
`90402`: true,
`91436`: true,
`92067`: true,
`92091`: true,
`92657`: true,
`93108`: true,
`94022`: true,
`94027`: true,
`94028`: true,
`94062`: true,
`94111`: true,
`94301`: true,
`94304`: true,
`94920`: true,
`98039`: true},
} | h28/table.go | 0.651909 | 0.757839 | table.go | starcoder |
package wkb
import (
"encoding/binary"
"fmt"
"io"
"reflect"
"github.com/xeonx/geom"
)
const (
//XDR is the flag used in WKB to represents Big Endian encoding
XDR = 0x00
//LDR is the flag used in WKB to represents Little Endian encoding
LDR = 0x01
)
//Type represents a geometry type as defined in the WKB specification
type Type uint32
//WKB types as defined in the WKB specification
const (
WKBPoint Type = 1
WKBLineString Type = 2
WKBPolygon Type = 3
WKBMultiPoint Type = 4
WKBMultiLineString Type = 5
WKBMultiPolygon Type = 6
WKBGeometryCollection Type = 7
)
//Flatten returns the flattened (ie. 2-dimensionnal) WKB type for the given type
func (Type Type) Flatten() Type {
return Type % 1000
}
//HasZ returns true if the WKB type as a Z component
func (Type Type) HasZ() bool {
return (Type >= 1000 && Type < 2000) || (Type >= 3000 && Type < 4000)
}
//HasM returns true if the WKB type as a M component
func (Type Type) HasM() bool {
return (Type >= 2000 && Type < 4000)
}
//Dimensioner represents objects able indicate if they have a Z or M component.
type Dimensioner interface {
HasZ() bool
HasM() bool
}
//Read reads a WKB geometry
func Read(r io.Reader) (geom.Geometry, error) {
//Read byte order
var wkbByteOrder uint8
if err := binary.Read(r, binary.BigEndian, &wkbByteOrder); err != nil {
return nil, err
}
var byteOrder binary.ByteOrder = binary.BigEndian
if wkbByteOrder == LDR {
byteOrder = binary.LittleEndian
} else if wkbByteOrder != XDR {
return nil, fmt.Errorf("Invalid WKB byte order. Expecting %d or %d, got '%d'", XDR, LDR, wkbByteOrder)
}
//Read geometry type
var Type Type
if err := binary.Read(r, byteOrder, &Type); err != nil {
return nil, err
}
switch Type.Flatten() {
case WKBPoint:
return readWkbPoint(r, byteOrder, Type)
case WKBLineString:
return readWkbLineString(r, byteOrder, Type)
case WKBPolygon:
return readWkbPolygon(r, byteOrder, Type)
case WKBMultiPoint:
return readWkbMultiPoint(r, byteOrder, Type)
case WKBMultiLineString:
return readWkbMultiLineString(r, byteOrder, Type)
case WKBMultiPolygon:
return readWkbMultiPolygon(r, byteOrder, Type)
case WKBGeometryCollection:
return readWkbGeometryCollection(r, byteOrder, Type)
}
return nil, fmt.Errorf("Unsupported WKB geometry type. Got '%d'", Type)
}
func readWkbPoint(r io.Reader, byteOrder binary.ByteOrder, dim Dimensioner) (geom.Geometry, error) {
var pt geom.Point
var z, m float64
if err := binary.Read(r, byteOrder, &pt.X); err != nil {
return nil, err
}
if err := binary.Read(r, byteOrder, &pt.Y); err != nil {
return nil, err
}
if dim.HasZ() {
if err := binary.Read(r, byteOrder, &z); err != nil {
return nil, err
}
}
if dim.HasM() {
if err := binary.Read(r, byteOrder, &m); err != nil {
return nil, err
}
}
if dim.HasZ() {
ptz := geom.PointZ{
Point: pt,
Z: z,
}
if dim.HasM() {
return &geom.PointZM{
PointZ: ptz,
M: m,
}, nil
}
return &ptz, nil
} else if dim.HasM() {
return &geom.PointM{
Point: pt,
M: m,
}, nil
}
return &pt, nil
}
func readWkbLineString(r io.Reader, byteOrder binary.ByteOrder, dim Dimensioner) (geom.Geometry, error) {
var numPoints uint32
if err := binary.Read(r, byteOrder, &numPoints); err != nil {
return nil, err
}
if dim.HasZ() {
if dim.HasM() {
line := make(geom.LineStringZM, numPoints)
if err := binary.Read(r, byteOrder, &line); err != nil {
return nil, err
}
return line, nil
}
line := make(geom.LineStringZ, numPoints)
if err := binary.Read(r, byteOrder, &line); err != nil {
return nil, err
}
return line, nil
} else if dim.HasM() {
line := make(geom.LineStringM, numPoints)
if err := binary.Read(r, byteOrder, &line); err != nil {
return nil, err
}
return line, nil
}
line := make(geom.LineString, numPoints)
if err := binary.Read(r, byteOrder, &line); err != nil {
return nil, err
}
return line, nil
}
func readWkbPolygon(r io.Reader, byteOrder binary.ByteOrder, dim Dimensioner) (geom.Geometry, error) {
var numRings uint32
if err := binary.Read(r, byteOrder, &numRings); err != nil {
return nil, err
}
geoms := make([]geom.Geometry, numRings)
for i := uint32(0); i < numRings; i++ {
geom, err := readWkbLineString(r, byteOrder, dim)
if err != nil {
return nil, err
}
geoms[i] = geom
}
var ok bool
if dim.HasZ() {
if dim.HasM() {
rings := make(geom.PolygonZM, len(geoms))
for i, g := range geoms {
rings[i], ok = g.(geom.LineStringZM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in PolygonZM: %s", reflect.TypeOf(g).String())
}
}
return rings, nil
}
rings := make(geom.PolygonZ, len(geoms))
for i, g := range geoms {
rings[i], ok = g.(geom.LineStringZ)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in PolygonZ: %s", reflect.TypeOf(g).String())
}
}
return rings, nil
} else if dim.HasM() {
rings := make(geom.PolygonM, len(geoms))
for i, g := range geoms {
rings[i], ok = g.(geom.LineStringM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in PolygonM: %s", reflect.TypeOf(g).String())
}
}
return rings, nil
}
rings := make(geom.Polygon, len(geoms))
for i, g := range geoms {
rings[i], ok = g.(geom.LineString)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in Polygon: %s", reflect.TypeOf(g).String())
}
}
return rings, nil
}
func readWkbMultiPoint(r io.Reader, byteOrder binary.ByteOrder, dim Dimensioner) (geom.Geometry, error) {
var numPoints uint32
if err := binary.Read(r, byteOrder, &numPoints); err != nil {
return nil, err
}
geoms := make([]geom.Geometry, numPoints)
for i := uint32(0); i < numPoints; i++ {
geom, err := Read(r)
if err != nil {
return nil, err
}
geoms[i] = geom
}
if dim.HasZ() {
if dim.HasM() {
points := make(geom.MultiPointZM, len(geoms))
for i, g := range geoms {
pt, ok := g.(*geom.PointZM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPointZM: %s", reflect.TypeOf(g).String())
}
points[i] = *pt
}
return points, nil
}
points := make(geom.MultiPointZ, len(geoms))
for i, g := range geoms {
pt, ok := g.(*geom.PointZ)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPointZ: %s", reflect.TypeOf(g).String())
}
points[i] = *pt
}
return points, nil
} else if dim.HasM() {
points := make(geom.MultiPointM, len(geoms))
for i, g := range geoms {
pt, ok := g.(*geom.PointM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPointM: %s", reflect.TypeOf(g).String())
}
points[i] = *pt
}
return points, nil
}
points := make(geom.MultiPoint, len(geoms))
for i, g := range geoms {
pt, ok := g.(*geom.Point)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPoint: %s", reflect.TypeOf(g).String())
}
points[i] = *pt
}
return points, nil
}
func readWkbMultiLineString(r io.Reader, byteOrder binary.ByteOrder, dim Dimensioner) (geom.Geometry, error) {
var numLineStrings uint32
if err := binary.Read(r, byteOrder, &numLineStrings); err != nil {
return nil, err
}
geoms := make([]geom.Geometry, numLineStrings)
for i := uint32(0); i < numLineStrings; i++ {
geom, err := Read(r)
if err != nil {
return nil, err
}
geoms[i] = geom
}
var ok bool
if dim.HasZ() {
if dim.HasM() {
lines := make(geom.MultiLineStringZM, len(geoms))
for i, g := range geoms {
lines[i], ok = g.(geom.LineStringZM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiLineStringZM: %s", reflect.TypeOf(g).String())
}
}
return lines, nil
}
lines := make(geom.MultiLineStringZ, len(geoms))
for i, g := range geoms {
lines[i], ok = g.(geom.LineStringZ)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiLineStringZ: %s", reflect.TypeOf(g).String())
}
}
return lines, nil
} else if dim.HasM() {
lines := make(geom.MultiLineStringM, len(geoms))
for i, g := range geoms {
lines[i], ok = g.(geom.LineStringM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiLineStringM: %s", reflect.TypeOf(g).String())
}
}
return lines, nil
}
lines := make(geom.MultiLineString, len(geoms))
for i, g := range geoms {
lines[i], ok = g.(geom.LineString)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiLineString: %s", reflect.TypeOf(g).String())
}
}
return lines, nil
}
func readWkbMultiPolygon(r io.Reader, byteOrder binary.ByteOrder, dim Dimensioner) (geom.Geometry, error) {
var numPolygons uint32
if err := binary.Read(r, byteOrder, &numPolygons); err != nil {
return nil, err
}
geoms := make([]geom.Geometry, numPolygons)
for i := uint32(0); i < numPolygons; i++ {
geom, err := Read(r)
if err != nil {
return nil, err
}
geoms[i] = geom
}
var ok bool
if dim.HasZ() {
if dim.HasM() {
polygons := make(geom.MultiPolygonZM, len(geoms))
for i, g := range geoms {
polygons[i], ok = g.(geom.PolygonZM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPolygonZM: %s", reflect.TypeOf(g).String())
}
}
return polygons, nil
}
polygons := make(geom.MultiPolygonZ, len(geoms))
for i, g := range geoms {
polygons[i], ok = g.(geom.PolygonZ)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPolygonZ: %s", reflect.TypeOf(g).String())
}
}
return polygons, nil
} else if dim.HasM() {
polygons := make(geom.MultiPolygonM, len(geoms))
for i, g := range geoms {
polygons[i], ok = g.(geom.PolygonM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPolygonM: %s", reflect.TypeOf(g).String())
}
}
return polygons, nil
}
polygons := make(geom.MultiPolygon, len(geoms))
for i, g := range geoms {
polygons[i], ok = g.(geom.Polygon)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in MultiPolygon: %s", reflect.TypeOf(g).String())
}
}
return polygons, nil
}
func readWkbGeometryCollection(r io.Reader, byteOrder binary.ByteOrder, dim Dimensioner) (geom.Geometry, error) {
var numGeoms uint32
if err := binary.Read(r, byteOrder, &numGeoms); err != nil {
return nil, err
}
geoms := make([]geom.Geometry, numGeoms)
for i := uint32(0); i < numGeoms; i++ {
geom, err := Read(r)
if err != nil {
return nil, err
}
geoms[i] = geom
}
var ok bool
if dim.HasZ() {
if dim.HasM() {
collection := make(geom.GeometryCollectionZM, len(geoms))
for i, g := range geoms {
collection[i], ok = g.(geom.GeometryZM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in GeometryCollectionZM: %s", reflect.TypeOf(g).String())
}
}
return collection, nil
}
collection := make(geom.GeometryCollectionZ, len(geoms))
for i, g := range geoms {
collection[i], ok = g.(geom.GeometryZ)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in GeometryCollectionZ: %s", reflect.TypeOf(g).String())
}
}
return collection, nil
} else if dim.HasM() {
collection := make(geom.GeometryCollectionM, len(geoms))
for i, g := range geoms {
collection[i], ok = g.(geom.GeometryM)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in GeometryCollectionM: %s", reflect.TypeOf(g).String())
}
}
return collection, nil
}
collection := make(geom.GeometryCollection, len(geoms))
for i, g := range geoms {
collection[i], ok = g.(geom.Geometry)
if !ok {
return nil, fmt.Errorf("Unexpected child geometry type in GeometryCollection: %s", reflect.TypeOf(g).String())
}
}
return collection, nil
} | encoding/wkb/wkb.go | 0.675015 | 0.435181 | wkb.go | starcoder |
package geom
import (
"math"
)
const EPS = 1e-9
type Point struct{ x, y float64 }
// Model a linear equation ax + by + c = 0.
// a is the slope.
// b = 0 if it is a vertical line; otherwise b = 1.
type Line struct{ a, b, c float64 }
// Given two points compute line: ax + by + c = 0.
func NewLine(p1, p2 Point) *Line {
var l Line
// l is vertical line
if p1.x == p2.x {
l.a = 1.0
l.b = 0
l.c = -p1.x
} else {
l.a = -(p1.y - p2.y) / (p1.x - p2.x)
l.b = 1.0
l.c = -(l.a * p1.x) - p1.y
}
return &l
}
func SameLines(l1, l2 *Line) bool {
return fabs(l1.a-l2.a) < EPS &&
fabs(l1.b-l2.b) < EPS &&
fabs(l1.c-l2.c) < EPS
}
func fabs(fb float64) float64 {
if fb < 0 {
return fb * (-1)
}
return fb
}
func IntersectionPoint(l1, l2 *Line) *Point {
// If l1 and l2 are parallel, return nil.
if fabs(l1.a-l2.a) < EPS && fabs(l1.b-l2.b) < EPS {
return nil // no intersection
}
var p Point
// Solve the system of two linear algebraic equations.
p.x = (l2.b*l1.c - l1.b*l2.c) / (l2.a*l1.b - l1.a*l2.b)
if fabs(l1.b) > EPS {
p.y = -(l1.a*p.x + l1.c)
} else {
p.y = -(l2.a*p.x + l2.c)
}
return &p
}
// Distance calculates the Euclidean distance between p1 and p2.
func Distance(p1, p2 Point) float64 {
return math.Sqrt((p1.x-p2.x)*(p1.x-p2.x) + (p1.y-p2.y)*(p1.y-p2.y))
}
// Given p1, p2 and p3 are collinear, is p3 on the segment formed between p1 and p2
func IsOnSegment(p1, p2, p3 Point) bool {
if Distance(p1, p3)-EPS <= Distance(p1, p2) &&
Distance(p2, p3)-EPS <= Distance(p1, p2) {
return true
}
return false
}
func max(x1, x2 float64) float64 {
if x1 < x2 {
return x2
}
return x1
}
func min(x1, x2 float64) float64 {
if x1 < x2 {
return x1
}
return x2
}
// Is p3 inside the rectangle formed by left-top p1 and right-bottom p2?
func IsInsideRectangle(p1, p2, p3 Point) bool {
if p3.x <= max(p1.x, p2.x) &&
p3.x >= min(p1.x, p2.x) &&
p3.y <= max(p1.y, p2.y) &&
p3.y >= min(p1.y, p2.y) {
return true
}
return false
}
type Rect struct {
p1, p2 Point
}
// Intersects is line drawn through two points intersects with rectangle.
func Intersects(pt1, pt2 Point, rect Rect) bool {
corners := []Point{rect.p1, {0, 0}, rect.p2, {0, 0}}
if IsInsideRectangle(corners[0], corners[2], pt1) ||
IsInsideRectangle(corners[0], corners[2], pt2) {
return true
}
corners[1] = corners[0]
corners[3] = corners[2]
corners[1].y, corners[3].y = corners[3].y, corners[1].y
line := NewLine(pt1, pt2)
intersect := false
for i := 0; i < 4; i++ {
edge := NewLine(corners[i], corners[(i+1)%4])
if SameLines(line, edge) {
if IsOnSegment(pt1, pt2, corners[i]) ||
IsOnSegment(pt1, pt2, corners[(i+1)%4]) {
intersect = true
break
}
continue
}
if p := IntersectionPoint(line, edge); p != nil {
if IsOnSegment(pt1, pt2, *p) &&
IsOnSegment(corners[i], corners[(i+1)%4], *p) {
intersect = true
break
}
}
}
return intersect
} | geom.go | 0.814274 | 0.553204 | geom.go | starcoder |
package models
import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)
// UserExperienceAnalyticsBatteryHealthModelPerformance
type UserExperienceAnalyticsBatteryHealthModelPerformance struct {
Entity
// Number of active devices for that model. Valid values -2147483648 to 2147483647
activeDevices *int32
// The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values -2147483648 to 2147483647
averageBatteryAgeInDays *int32
// The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values -2147483648 to 2147483647
averageEstimatedRuntimeInMinutes *int32
// The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647
averageMaxCapacityPercentage *int32
// Name of the device manufacturer.
manufacturer *string
// The model name of the device.
model *string
}
// NewUserExperienceAnalyticsBatteryHealthModelPerformance instantiates a new userExperienceAnalyticsBatteryHealthModelPerformance and sets the default values.
func NewUserExperienceAnalyticsBatteryHealthModelPerformance()(*UserExperienceAnalyticsBatteryHealthModelPerformance) {
m := &UserExperienceAnalyticsBatteryHealthModelPerformance{
Entity: *NewEntity(),
}
return m
}
// CreateUserExperienceAnalyticsBatteryHealthModelPerformanceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateUserExperienceAnalyticsBatteryHealthModelPerformanceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewUserExperienceAnalyticsBatteryHealthModelPerformance(), nil
}
// GetActiveDevices gets the activeDevices property value. Number of active devices for that model. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetActiveDevices()(*int32) {
if m == nil {
return nil
} else {
return m.activeDevices
}
}
// GetAverageBatteryAgeInDays gets the averageBatteryAgeInDays property value. The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageBatteryAgeInDays()(*int32) {
if m == nil {
return nil
} else {
return m.averageBatteryAgeInDays
}
}
// GetAverageEstimatedRuntimeInMinutes gets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageEstimatedRuntimeInMinutes()(*int32) {
if m == nil {
return nil
} else {
return m.averageEstimatedRuntimeInMinutes
}
}
// GetAverageMaxCapacityPercentage gets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetAverageMaxCapacityPercentage()(*int32) {
if m == nil {
return nil
} else {
return m.averageMaxCapacityPercentage
}
}
// GetFieldDeserializers the deserialization information for the current model
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Entity.GetFieldDeserializers()
res["activeDevices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetActiveDevices(val)
}
return nil
}
res["averageBatteryAgeInDays"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetAverageBatteryAgeInDays(val)
}
return nil
}
res["averageEstimatedRuntimeInMinutes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetAverageEstimatedRuntimeInMinutes(val)
}
return nil
}
res["averageMaxCapacityPercentage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetAverageMaxCapacityPercentage(val)
}
return nil
}
res["manufacturer"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetManufacturer(val)
}
return nil
}
res["model"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetModel(val)
}
return nil
}
return res
}
// GetManufacturer gets the manufacturer property value. Name of the device manufacturer.
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetManufacturer()(*string) {
if m == nil {
return nil
} else {
return m.manufacturer
}
}
// GetModel gets the model property value. The model name of the device.
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) GetModel()(*string) {
if m == nil {
return nil
} else {
return m.model
}
}
// Serialize serializes information the current object
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.Entity.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteInt32Value("activeDevices", m.GetActiveDevices())
if err != nil {
return err
}
}
{
err = writer.WriteInt32Value("averageBatteryAgeInDays", m.GetAverageBatteryAgeInDays())
if err != nil {
return err
}
}
{
err = writer.WriteInt32Value("averageEstimatedRuntimeInMinutes", m.GetAverageEstimatedRuntimeInMinutes())
if err != nil {
return err
}
}
{
err = writer.WriteInt32Value("averageMaxCapacityPercentage", m.GetAverageMaxCapacityPercentage())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("manufacturer", m.GetManufacturer())
if err != nil {
return err
}
}
{
err = writer.WriteStringValue("model", m.GetModel())
if err != nil {
return err
}
}
return nil
}
// SetActiveDevices sets the activeDevices property value. Number of active devices for that model. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetActiveDevices(value *int32)() {
if m != nil {
m.activeDevices = value
}
}
// SetAverageBatteryAgeInDays sets the averageBatteryAgeInDays property value. The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetAverageBatteryAgeInDays(value *int32)() {
if m != nil {
m.averageBatteryAgeInDays = value
}
}
// SetAverageEstimatedRuntimeInMinutes sets the averageEstimatedRuntimeInMinutes property value. The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetAverageEstimatedRuntimeInMinutes(value *int32)() {
if m != nil {
m.averageEstimatedRuntimeInMinutes = value
}
}
// SetAverageMaxCapacityPercentage sets the averageMaxCapacityPercentage property value. The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetAverageMaxCapacityPercentage(value *int32)() {
if m != nil {
m.averageMaxCapacityPercentage = value
}
}
// SetManufacturer sets the manufacturer property value. Name of the device manufacturer.
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetManufacturer(value *string)() {
if m != nil {
m.manufacturer = value
}
}
// SetModel sets the model property value. The model name of the device.
func (m *UserExperienceAnalyticsBatteryHealthModelPerformance) SetModel(value *string)() {
if m != nil {
m.model = value
}
} | models/user_experience_analytics_battery_health_model_performance.go | 0.772788 | 0.509154 | user_experience_analytics_battery_health_model_performance.go | starcoder |
package core
import (
"bytes"
"errors"
"image"
"image/jpeg"
"math"
"path"
"sync"
"github.com/bububa/facenet/imageutil"
tf "github.com/tensorflow/tensorflow/tensorflow/go"
"github.com/tensorflow/tensorflow/tensorflow/go/op"
)
// Net is a wrapper for the TensorFlow Facenet model.
type Net struct {
model *tf.SavedModel
modelPath string
modelName string
modelTags []string
mutex sync.Mutex
}
// NewNet returns a new TensorFlow Facenet instance.
func NewNet(modelPath string) *Net {
return &Net{modelPath: modelPath, modelTags: []string{"serve"}}
}
// DetectMultiple detect multiple faces try to use different minSize
func (t *Net) DetectMultiple(img image.Image, minSize int) (faces Faces, err error) {
src := imageutil.NormalizeImage(img, MaxImageSize)
faces, err = TrySizeExtractMultiple(src, false, minSize)
if err != nil {
return faces, err
}
if err = t.LoadModel(); err != nil {
return faces, err
}
for i, face := range faces {
thumb := imageutil.Thumb(src, face.CropArea(), CropSize)
if embeddings, err := t.getEmbeddings(thumb); err == nil {
faces[i].Embeddings = embeddings
}
}
return faces, nil
}
// DetectSingle detect single face try to use different minSize
func (t *Net) DetectSingle(img image.Image, minSize int) (face Face, err error) {
src := imageutil.NormalizeImage(img, MaxImageSize)
face, err = TrySizeExtractSingle(src, false, minSize)
if err != nil {
return face, err
}
if err = t.LoadModel(); err != nil {
return face, err
}
thumb := imageutil.Thumb(src, face.CropArea(), CropSize)
if embeddings, err := t.getEmbeddings(thumb); err == nil {
face.Embeddings = embeddings
}
return face, nil
}
// Detect runs the detection and facenet algorithms over the provided source image.
func (t *Net) Detect(img image.Image, minSize int, expected int) (faces Faces, err error) {
src := imageutil.NormalizeImage(img, MaxImageSize)
faces, err = Extract(src, false, minSize)
if err != nil {
return faces, err
}
if c := len(faces); c == 0 || expected > 0 && c == expected {
return faces, nil
}
if err = t.LoadModel(); err != nil {
return faces, err
}
for i, f := range faces {
if f.Area.Col == 0 || f.Area.Row == 0 {
continue
}
thumb := imageutil.Thumb(src, f.CropArea(), CropSize)
if embeddings, err := t.getEmbeddings(thumb); err == nil {
faces[i].Embeddings = embeddings
}
}
return faces, nil
}
// Train train images with label defined
func (t *Net) Train(label string, images []image.Image, minSize int) (person Person, err error) {
person.Name = label
person.Embeddings = make([]*Person_Embedding, 0, len(images))
for _, img := range images {
face, err := t.DetectSingle(img, minSize)
if err != nil {
return person, err
}
person.Embeddings = append(person.Embeddings, &Person_Embedding{
Value: face.Embeddings[0],
})
}
return
}
// ModelLoaded tests if the TensorFlow model is loaded.
func (t *Net) ModelLoaded() bool {
return t.model != nil
}
func (t *Net) LoadModel() error {
t.mutex.Lock()
defer t.mutex.Unlock()
if t.ModelLoaded() {
return nil
}
modelPath := path.Join(t.modelPath)
// log.Printf("faces: loading %s\n", filepath.Base(modelPath))
// Load model
model, err := tf.LoadSavedModel(modelPath, t.modelTags, nil)
if err != nil {
return err
}
t.model = model
return nil
}
func (t *Net) getEmbeddings(img image.Image) ([][]float32, error) {
tensor, err := makeTensorFromImage(img, CropSize.Width, CropSize.Height)
//tensor, err := imageToTensor(img, CropSize.Width, CropSize.Height)
if err != nil {
// log.Printf("faces: failed to convert image to tensor: %v\n", err)
return nil, err
}
trainPhaseBoolTensor, err := tf.NewTensor(false)
if err != nil {
return nil, err
}
output, err := t.model.Session.Run(
map[tf.Output]*tf.Tensor{
t.model.Graph.Operation("input").Output(0): tensor,
t.model.Graph.Operation("phase_train").Output(0): trainPhaseBoolTensor,
},
[]tf.Output{
t.model.Graph.Operation("embeddings").Output(0),
},
nil)
if err != nil {
// log.Printf("faces: %s\n", err)
return nil, err
}
if len(output) < 1 {
return nil, NewError(InferenceFailedErr, "inference failed, no output")
}
return output[0].Value().([][]float32), nil
}
/*
func imageToTensor(img image.Image, imageHeight, imageWidth int) (tfTensor *tf.Tensor, err error) {
if imageHeight <= 0 || imageWidth <= 0 {
return tfTensor, NewError(ImageToTensorSizeErr, "image width and height must be > 0")
}
var tfImage [1][][][3]float32
for j := 0; j < imageHeight; j++ {
tfImage[0] = append(tfImage[0], make([][3]float32, imageWidth))
}
for i := 0; i < imageWidth; i++ {
for j := 0; j < imageHeight; j++ {
r, g, b, _ := img.At(i, j).RGBA()
tfImage[0][j][i][0] = convertValue(r)
tfImage[0][j][i][1] = convertValue(g)
tfImage[0][j][i][2] = convertValue(b)
}
}
// pre whiten image
mean, std := meanStd(tfImage[0])
tensor, err := tf.NewTensor(tfImage)
if err != nil {
return nil, err
}
return preWhitenImage(tensor, mean, std)
}
*/
func makeTensorFromImage(img image.Image, imageWidth int, imageHeight int) (*tf.Tensor, error) {
var buf bytes.Buffer
if err := jpeg.Encode(&buf, img, nil); err != nil {
return nil, err
}
tensor, err := tf.NewTensor(buf.String())
if err != nil {
return nil, err
}
graph, input, output, err := makeTransformImageGraph(int32(imageWidth), int32(imageHeight))
if err != nil {
return nil, err
}
session, err := tf.NewSession(graph, nil)
if err != nil {
return nil, err
}
defer session.Close()
out, err := session.Run(
map[tf.Output]*tf.Tensor{input: tensor},
[]tf.Output{output},
nil)
if err != nil {
return nil, err
}
if len(out) < 1 || len(out[0].Value().([][][][]float32)) < 1 {
return nil, errors.New("invalid output")
}
mean, std := meanStd(out[0].Value().([][][][]float32)[0])
return preWhitenImage(out[0], mean, std)
}
// Creates a graph to decode, rezise and normalize an image
func makeTransformImageGraph(width int32, height int32) (graph *tf.Graph, input, output tf.Output, err error) {
s := op.NewScope()
input = op.Placeholder(s, tf.String)
// Decode PNG or JPEG
decode := op.DecodeJpeg(s, input, op.DecodeJpegChannels(3))
// Div and Sub perform (value-Mean)/Scale for each pixel
output = op.ResizeBilinear(s,
// Create a batch containing a single image
op.ExpandDims(s,
// Use decoded pixel values
op.Cast(s, decode, tf.Float),
op.Const(s.SubScope("make_batch"), int32(0))),
op.Const(s.SubScope("size"), []int32{height, width}),
)
graph, err = s.Finalize()
return graph, input, output, err
}
func preWhitenImage(img *tf.Tensor, mean, std float32) (*tf.Tensor, error) {
s := op.NewScope()
pimg := op.Placeholder(s, tf.Float, op.PlaceholderShape(tf.MakeShape(1, -1, -1, 3)))
out := op.Mul(s, op.Sub(s, pimg, op.Const(s.SubScope("mean"), mean)),
op.Const(s.SubScope("scale"), float32(1.0)/std))
outs, err := runScope(s, map[tf.Output]*tf.Tensor{pimg: img}, []tf.Output{out})
if err != nil {
return nil, err
}
return outs[0], nil
}
func runScope(s *op.Scope, inputs map[tf.Output]*tf.Tensor, outputs []tf.Output) ([]*tf.Tensor, error) {
graph, err := s.Finalize()
if err != nil {
return nil, err
}
session, err := tf.NewSession(graph, nil)
if err != nil {
return nil, err
}
defer session.Close()
return session.Run(inputs, outputs, nil)
}
func convertValue(value uint32) float32 {
return (float32(value>>8) - float32(127.5)) / float32(127.5)
}
func meanStd(img [][][]float32) (mean float32, std float32) {
count := len(img) * len(img[0]) * len(img[0][0])
for _, x := range img {
for _, y := range x {
for _, z := range y {
mean += z
}
}
}
mean /= float32(count)
for _, x := range img {
for _, y := range x {
for _, z := range y {
std += (z - mean) * (z - mean)
}
}
}
xstd := math.Sqrt(float64(std) / float64(count-1))
minstd := 1.0 / math.Sqrt(float64(count))
if xstd < minstd {
xstd = minstd
}
std = float32(xstd)
return
} | core/net.go | 0.690246 | 0.437643 | net.go | starcoder |
package main
import (
"fmt"
"math"
)
/* This is the function which implements the jump search algorithm.
The input to the function is the sorted array, the element which we
are looking for and the size of the sorted array.*/
func search(array []int, element, n int) int {
//Size to jump
var jump int = int(math.Sqrt(float64(n)))
initial := 0
/*Ensures that value of jump does not cross the
size of the array. And also checks if the value
at that jump is less than element or not.*/
for jump < n && array[jump] <= element {
/*This keeps track of the lower bound of the
interval in which element could be present*/
initial = jump
//Everytime we increase jump by sqrt(size of array)
jump = jump + int(math.Sqrt(float64(n)))
/*If jump exceeds the size of the array, then we
set jump as the last index of array + 1*/
if(jump >= n) {
jump = n
}
}
/*As the while loop ends, we are sure that the element, if
present in the array is present between index initial and jump.
We linearlly travere that interval to look for the element*/
for i := initial; i <= jump - 1; i++ {
//If we find the element, we return the index in the array
if(array[i] == element) {
return i
} else {
continue
}
}
//We reuturn -1 if element is not found in the array
return -1
}
func main() {
// Take length of array as input from the user
fmt.Print("Enter the size of the array: ")
var n int
fmt.Scan(&n)
// Take elements of array as input from the user
fmt.Print("Enter ", n, " numbers in increasing order followed by spaces : ")
array := make([]int, n)
for i := 0; i < n; i++ {
fmt.Scan(&array[i])
}
// Take element to search as input from the user
fmt.Print("Enter the element to search: ")
var element int
fmt.Scan(&element)
// Call search function to find the index
var index int = search(array, element, n)
/* If index is -1, the element is not present
Else print index of element in the array*/
if(index == -1) {
fmt.Print("\nThe element ", element, " is not present in the array.\n")
} else {
fmt.Print("\nThe element ", element, " is present at ", index, " index in the array.\n");
}
}
/* Sample I/O:
a)
Enter the size of the array: 6
Enter 6 numbers in increasing order followed by spaces : -3 -1 3 5 6 7
Enter the element to search: 5
The element 5 is present at 3 index in the array.
b)
Enter the size of the array: 6
Enter 6 numbers in increasing order followed by spaces : -2 -1 4 6 8 10
Enter the element to search: 5
The element 5 is not present in the array.
*/ | Go/search/Jump_Search/JumpSearch.go | 0.532182 | 0.706488 | JumpSearch.go | starcoder |
package main
type CsgOp int
const (
CsgUnion CsgOp = iota
CsgDifference
CsgIntersection
)
type Csg struct {
Namer
Grouper
L Groupable
R Groupable
Op CsgOp
OpTest func(bool, bool, bool) bool
}
// CsgUnion builds a CSG shape that is the union of a set of objects
func NewCsgUnion(o ...Groupable) (csg *Csg) {
// Try to get a balanced tree
for len(o) >= 2 {
// Even indices become CSG
for i := 1; i < len(o); i += 2 {
o[i-1] = NewCsg(CsgUnion, o[i-1], o[i])
}
// Odd indices are removed
n := (len(o) + 1) / 2
for i := 1; i < n; i++ {
o[i] = o[i*2]
}
o = o[:n]
}
if len(o) == 1 {
switch t := o[0].(type) {
case *Csg:
csg = t
}
}
return
}
func NewCsg(op CsgOp, a, b Groupable) *Csg {
g := &Csg{}
g.SetNameForKind("csg")
g.SetTransform()
g.L = a
g.R = b
g.Op = op
g.L.SetParent(g)
g.R.SetParent(g)
switch op {
case CsgUnion:
g.OpTest = opTestUnion
case CsgDifference:
g.OpTest = opTestDifference
case CsgIntersection:
g.OpTest = opTestIntersection
}
return g
}
func (g *Csg) Clone() Groupable {
o := NewCsg(g.Op, g.L.Clone(), g.R.Clone())
o.SetName("csgfrom_" + g.Name())
o.SetTransform(g.Transform())
return o
}
// Hit belongs to union if:
// - it's in the left shape, and the ray is not in the right shape
// - it's in the right shape, and the ray is not in the left shape
func opTestUnion(lhit, inL, inR bool) bool {
return (lhit && !inR) || (!lhit && !inL)
}
// Hit belongs to difference if:
// - it's in the left shape, and the ray is not in the right shape
// - it's in the right shape, and the ray is in the left shape
func opTestDifference(lhit, inL, inR bool) bool {
return (lhit && !inR) || (!lhit && inL)
}
// Hit belongs to intersection if:
// - it's in the left shape, and the ray is in the right shape
// - it's in the right shape, and the ray is in the left shape
func opTestIntersection(lhit, inL, inR bool) bool {
return (lhit && inR) || (!lhit && inL)
}
func (g *Csg) AddIntersections(ray Ray, xs *Intersections) {
ray = ray.Transform(g.Tinverse)
sIdx := xs.Len()
// Add intersections for the left shape
g.L.AddIntersections(ray, xs)
for i := sIdx; i < xs.Len(); i++ {
xs.DataAt(i).Lhit = true
}
// Add intersections for the right shape
rIdx := xs.Len()
g.R.AddIntersections(ray, xs)
for i := rIdx; i < xs.Len(); i++ {
xs.DataAt(i).Lhit = false
}
// Sort our intersections
xs.SortRange(sIdx)
// Now scan the intersection list keeping track of objects as the ray enters and leaves them
inL := false
inR := false
for i := sIdx; i < xs.Len(); {
lhit := xs.DataAt(i).Lhit
ok := g.OpTest(lhit, inL, inR)
// Update object trackers
if lhit {
inL = !inL
} else {
inR = !inR
}
if !ok {
// Remove intersection
xs.Remove(i)
} else {
// Keep intersection and move to the next!
i++
}
}
// Recompute the hit as we may have disrupted the hit list
xs.UpdateHit()
}
func (g *Csg) SetMaterial(m *Material) {
m = m.ProxifyPatterns(g)
g.L.SetMaterial(m)
g.R.SetMaterial(m)
}
func (g *Csg) Bounds() Box {
b := g.L.Bounds().Transform(g.L.Transform())
return b.Union(g.R.Bounds().Transform(g.R.Transform()))
} | csg.go | 0.642993 | 0.442335 | csg.go | starcoder |
package kubernetes
import (
"github.com/hashicorp/terraform/helper/schema"
)
func podSpecFields(isUpdatable bool) map[string]*schema.Schema {
s := map[string]*schema.Schema{
"active_deadline_seconds": {
Type: schema.TypeInt,
Optional: true,
ValidateFunc: validatePositiveInteger,
Description: "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.",
},
"container": {
Type: schema.TypeList,
Optional: true,
Description: "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/containers",
Elem: &schema.Resource{
Schema: containerFields(isUpdatable, false),
},
},
"init_container": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Description: "List of init containers belonging to the pod. Init containers always run to completion and each must complete succesfully before the next is started. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/",
Elem: &schema.Resource{
Schema: containerFields(isUpdatable, true),
},
},
"dns_policy": {
Type: schema.TypeString,
Optional: true,
Default: "ClusterFirst",
Description: "Set DNS policy for containers within the pod. One of 'ClusterFirst' or 'Default'. Defaults to 'ClusterFirst'.",
},
"host_ipc": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Use the host's ipc namespace. Optional: Default to false.",
},
"host_network": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified.",
},
"host_pid": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Use the host's pid namespace.",
},
"hostname": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.",
},
"image_pull_secrets": {
Type: schema.TypeList,
Description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod",
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
Required: true,
},
},
},
},
"node_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.",
},
"node_selector": {
Type: schema.TypeMap,
Optional: true,
Description: "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: http://kubernetes.io/docs/user-guide/node-selection.",
},
"restart_policy": {
Type: schema.TypeString,
Optional: true,
Default: "Always",
Description: "Restart policy for all containers within the pod. One of Always, OnFailure, Never. More info: http://kubernetes.io/docs/user-guide/pod-states#restartpolicy.",
},
"security_context": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"fs_group": {
Type: schema.TypeInt,
Description: "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume.",
Optional: true,
},
"run_as_non_root": {
Type: schema.TypeBool,
Description: "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does.",
Optional: true,
},
"run_as_user": {
Type: schema.TypeInt,
Description: "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified",
Optional: true,
},
"supplemental_groups": {
Type: schema.TypeSet,
Description: "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.",
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeInt,
},
},
"se_linux_options": {
Type: schema.TypeList,
Description: "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: seLinuxOptionsField(),
},
},
},
},
},
"service_account_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md.",
},
"subdomain": {
Type: schema.TypeString,
Optional: true,
Description: `If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all..`,
},
"termination_grace_period_seconds": {
Type: schema.TypeInt,
Optional: true,
Default: 30,
ValidateFunc: validateTerminationGracePeriodSeconds,
Description: "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process.",
},
"volume": {
Type: schema.TypeList,
Optional: true,
Description: "List of volumes that can be mounted by containers belonging to the pod. More info: http://kubernetes.io/docs/user-guide/volumes",
Elem: volumeSchema(),
},
}
if !isUpdatable {
for k, _ := range s {
if k == "active_deadline_seconds" {
// This field is always updatable
continue
}
if k == "container" {
// Some fields are always updatable
continue
}
s[k].ForceNew = true
}
}
return s
}
func volumeSchema() *schema.Resource {
v := commonVolumeSources()
v["config_map"] = &schema.Schema{
Type: schema.TypeList,
Description: "ConfigMap represents a configMap that should populate this volume",
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"items": {
Type: schema.TypeList,
Description: `If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.`,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"key": {
Type: schema.TypeString,
Optional: true,
Description: "The key to project.",
},
"mode": {
Type: schema.TypeInt,
Optional: true,
Description: `Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.`,
},
"path": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validateAttributeValueDoesNotContain(".."),
Description: `The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.`,
},
},
},
},
"default_mode": {
Type: schema.TypeInt,
Description: "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
Optional: true,
ValidateFunc: validateModeBits,
},
"name": {
Type: schema.TypeString,
Description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
Optional: true,
},
},
},
}
v["git_repo"] = &schema.Schema{
Type: schema.TypeList,
Description: "GitRepo represents a git repository at a particular revision.",
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"directory": {
Type: schema.TypeString,
Description: "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.",
Optional: true,
ValidateFunc: validateAttributeValueDoesNotContain(".."),
},
"repository": {
Type: schema.TypeString,
Description: "Repository URL",
Optional: true,
},
"revision": {
Type: schema.TypeString,
Description: "Commit hash for the specified revision.",
Optional: true,
},
},
},
}
v["downward_api"] = &schema.Schema{
Type: schema.TypeList,
Description: "DownwardAPI represents downward API about the pod that should populate this volume",
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"default_mode": {
Type: schema.TypeInt,
Description: "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
Optional: true,
},
"items": {
Type: schema.TypeList,
Description: `If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.`,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"field_ref": {
Type: schema.TypeList,
Required: true,
MaxItems: 1,
Description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"api_version": {
Type: schema.TypeString,
Optional: true,
Default: "v1",
Description: `Version of the schema the FieldPath is written in terms of, defaults to "v1".`,
},
"field_path": {
Type: schema.TypeString,
Optional: true,
Description: "Path of the field to select in the specified API version",
},
},
},
},
"mode": {
Type: schema.TypeInt,
Optional: true,
Description: `Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.`,
},
"path": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validateAttributeValueDoesNotContain(".."),
Description: `Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'`,
},
"resource_field_ref": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Description: "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"container_name": {
Type: schema.TypeString,
Required: true,
},
"quantity": {
Type: schema.TypeString,
Optional: true,
},
"resource": {
Type: schema.TypeString,
Required: true,
Description: "Resource to select",
},
},
},
},
},
},
},
},
},
}
v["empty_dir"] = &schema.Schema{
Type: schema.TypeList,
Description: "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir",
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"medium": {
Type: schema.TypeString,
Description: `What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir`,
Optional: true,
Default: "",
ValidateFunc: validateAttributeValueIsIn([]string{"", "Memory"}),
},
},
},
}
v["persistent_volume_claim"] = &schema.Schema{
Type: schema.TypeList,
Description: "The specification of a persistent volume.",
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"claim_name": {
Type: schema.TypeString,
Description: "ClaimName is the name of a PersistentVolumeClaim in the same ",
Optional: true,
},
"read_only": {
Type: schema.TypeBool,
Description: "Will force the ReadOnly setting in VolumeMounts.",
Optional: true,
Default: false,
},
},
},
}
v["secret"] = &schema.Schema{
Type: schema.TypeList,
Description: "Secret represents a secret that should populate this volume. More info: http://kubernetes.io/docs/user-guide/volumes#secrets",
Optional: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"default_mode": {
Type: schema.TypeInt,
Description: "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
Optional: true,
Default: 0644,
ValidateFunc: validateModeBits,
},
"items": {
Type: schema.TypeList,
Description: "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.",
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"key": {
Type: schema.TypeString,
Optional: true,
Description: "The key to project.",
},
"mode": {
Type: schema.TypeInt,
Optional: true,
Description: "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
},
"path": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validateAttributeValueDoesNotContain(".."),
Description: "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.",
},
},
},
},
"optional": {
Type: schema.TypeBool,
Description: "Optional: Specify whether the Secret or it's keys must be defined.",
Optional: true,
},
"secret_name": {
Type: schema.TypeString,
Description: "Name of the secret in the pod's namespace to use. More info: http://kubernetes.io/docs/user-guide/volumes#secrets",
Optional: true,
},
},
},
}
v["name"] = &schema.Schema{
Type: schema.TypeString,
Description: "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
Optional: true,
}
return &schema.Resource{
Schema: v,
}
} | vendor/github.com/terraform-providers/terraform-provider-kubernetes/kubernetes/schema_pod_spec.go | 0.796728 | 0.511046 | schema_pod_spec.go | starcoder |
// Go is a pass by value language (no exception here)
package main
import "fmt"
// declaring a function that takes an int, a float, a string and a bool value.
// the function works on copy so the changes are not seen outside (pass by value)
func changeValues(quantity int, price float64, name string, sold bool) {
quantity = 3
price = 500.5
name = "Mobile Phone"
sold = false
}
// declaring a function that takes in a pointer to int, a pointer to float, a pointer to string and a pointer to bool.
// the function makes a copy of each pointer but they point to the same address as the originals
func changeValuesByPointer(quantity *int, price *float64, name *string, sold *bool) {
//changing the values the pointers point to is seen outside the function
*quantity = 3
*price = 500.5
*name = "Mobile Phone"
*sold = false
}
// declaring struct type
type Product struct {
price float64
productName string
}
// declaring a function that takes in a struct value and modifies it
func changeProduct(p Product) {
p.price = 300
p.productName = "Bicycle"
// the changes are not seen to the outside world
}
// declaring a function that takes in a pointer to struct value and modifies the value
func changeProductByPointer(p *Product) {
(*p).price = 300
p.productName = "Bicycle"
// the changes are seen to the outside world
}
// declaring a function that takes in a slice
func changeSlice(s []int) {
for i := range s {
s[i]++
}
// the changes are seen to the outside world
}
// declaring a function that takes in a map
func changeMap(m map[string]int) {
m["a"] = 10
m["b"] = 20
m["x"] = 30
// the changes are seen to the outside world
}
func main() {
// declaring some variables
quantity, price, name, sold := 5, 300.2, "Laptop", true
fmt.Println("BEFORE calling changeValues():", quantity, price, name, sold)
// => BEFORE calling changeValues(): 5 300.2 Laptop true
// invoking the function has no effect on the variables.
// the function works on and modifies copies, not originals.
changeValues(quantity, price, name, sold)
fmt.Println("AFTER calling changeValues():", quantity, price, name, sold)
// => AFTER calling changeValues(): 5 300.2 Laptop true
// the function modifies the values.
changeValuesByPointer(&quantity, &price, &name, &sold)
fmt.Println("AFTER calling changeValuesByPointer():", quantity, price, name, sold)
// => AFTER calling changeValuesByPointer(): 3 500.5 Mobile Phone false
// declaring a struct value
present := Product{
price: 100,
productName: "Watch",
}
// invoking the function has no effect on the struct value.
// the function works on and modifies a copy, not the original.
changeProduct(present)
fmt.Println(present) // => {100 Watch}
// the function modifies the struct value.
changeProductByPointer(&present)
fmt.Println("AFTER calling changeProductByPointer:", present)
// => AFTER calling changeProductByPointer: {300 Bicycle}
// declaring a slice
prices := []int{10, 20, 30}
// When a function changes a slice or a map the actual data is changed.
changeSlice(prices)
fmt.Println("prices slice after calling changeSlice():", prices)
// => prices slice after calling changeSlice(): [11 21 31]
// declaring a map
myMap := map[string]int{"a": 1, "b": 2}
// When a function changes a slice or a map the actual data is changed.
changeMap(myMap)
fmt.Println("myMap after calling changeMap():", myMap)
// => myMap after calling changeMap(): map[a:10 b:20 x:30
// slices and maps are not meant to be used with pointers.
} | 78_master-go-programing/10 - pointers/2 - passing values and pointers to functions/main.go | 0.534127 | 0.478955 | main.go | starcoder |
package btcjson
import (
"errors"
)
// defaultHelpStrings contains the help text for all commands that are supported
// by btcjson by default.
var defaultHelpStrings = map[string]string{
"addmultisigaddress": `addmultisigaddress nrequired ["key",...] ("account" )
Add a multisignature address to the wallet where 'nrequired' signatures are
required for spending. Each key is an address of publickey. Optionally, account
may be provided to assign the address to that account.`,
"addnode": `addnode "node" "{add|remove|onetry}"
Add or remove a node from the list of hosts we connect to. If mode is "onetry"
then the host will be connected to once only, otherwise the node will be retried
upon disconnection.`,
"backupwallet": `backupwallet "destination"
Safely copies the wallet file to the destination provided, either a directory or
a filename.`,
"createmultisig": `createmultisig nrequired ["key", ...]
Creates a multi-signature address with m keys where "nrequired" signatures are
required from those m. A JSON object is returned containing the address and
redemption script:
{
"address":"address", # the value of the new address.
redeemScript":"script" # The stringified hex-encoded redemption script.
}`,
"createrawtransaction": `createrawtransaction [{"txid":"id", "vout":n},...] {"address":amount,...}
Creates a transaction spending the given inputs and outputting to the
given addresses. The return is a hex encoded string of the raw
transaction with *unsigned* inputs. The transaction is not stored in any
wallet.`,
// TODO(oga) this should be external since it is nonstandard.
"debuglevel": `debuglevel "levelspec"
Dynamically changes the debug logging level. Levelspec must be either a debug
level, one of the following:
trace,
debug,
info,
warn,
error,
critical.
Alternatively levelspec may be a specification of the form:
<subsystem>=<level>,<subsystem2>=<level2>
Where the valid subsystem names are:
AMGR,
BCDB,
BMGR,
BTCD,
CHAN,
DISC,
PEER,
RPCS,
SCRP,
SRVR,
TXMP.
Finally the keyword "show" will return a list of the available subsystems.
The command returns a string which will be "Done." if the command was sucessful,
or the list of subsystems if "show" was specified.`,
"decoderawtransaction": `decoderawtransaction "hexstring"
Decodes the seralized, hex-encoded transaction in hexstring and returns a JSON
object representing it:
{
"hex":"hex", # String of the hex encoded transaction provided.
"txid":"id", # The sha id of the transaction as a hex string
"version":n, # The version of the transaction as a number.
"locktime":t, # Locktime of the tx (number).
"vin": [ # Array of objects for inputs.
{
"txid":"id", # Txid that is spent.
"vout":n, # Output number.
"scriptSig": {
"asm":"asm", # Disasembled script as a string.
"hex":"hex", # Hex string of script.
},
"sequence":n, # Sequence number of script.
}
],
"vout": [ # Array of objects for outputs.
{
"value":x.xxx, # Value in BTC.
"n":n, # Numeric index.
"scriptPubkey": { # Object representing script.
"asm":"asm", # Disassembled script as string.
"hex":"hex", # Hex string of script.
"reqSigs":n, # Number of required signatures.
"type":"type" # Type as string, e.g. pubkeyhash.
},
}
]
"blockhash":"hash", # The block hash. as a string.
"confirmations":n # Number of confirmations in blockchain.
"time":t, # Transaction time in seconds since the epoch.
"blocktime":t, # Block time in seconds since the epoch.
}`,
"decodescript": `decodescript "hex"
Decodes the hex encoded script passed as a string and returns a JSON object:
{
"asm":"asm", # disassembled string of the script.
"hex":"hex", # hex string of the script.
"type":"type", # type of script as a string.
"reqSigs":n, # number of required signatures.
"addresses": [ # JSON array of address strings.
"address", # bitcoin address as a string.
],
"p2sh","address" # script address as a string.
}`,
"dumpprivkey": `dumpprivkey "bitcoinaddress"
Returns the private key corresponding to the provided address in a format
compatible with importprivkey.`,
"dumpwallet": `dumpwallet "filename"
Dumps all wallet keys into "filename" in a human readable format.`,
"encryptwallet": `encryptwallet "passphrase"
Encrypts the wallet with "passphrase". This command is for the initial
encryption of an otherwise unencrypted wallet, changing a passphrase
should use walletpassphrasechange.`,
"estimatefee": `estimatefee "numblocks"
Estimates the approximate fee per kilobyte needed for a transaction to
get confirmed within 'numblocks' blocks.`,
"estimatepriority": `estimatepriority "numblocks"
Estimates the approximate priority a zero-fee transaction needs to get
confirmed within 'numblocks' blocks.`,
"getaccount": `getaccount "address"
Returns the account associated with the given "address" as a string.`,
"getaccountaddress": `getaccountaddress "account"
Returns the current address used for receiving payments in this given account.`,
"getaddednodeinfo": `getaddednodeinfo dns ( "node" )
Returns a list of JSON objects with information about the local list of
permanent nodes. If dns is false, only a list of permanent nodes will
be provided, otherwise connected information will also be provided. If
node is not provided then all nodes will be detailed. The JSON return
format is as follows:
[
{
"addednode":"1.2.3.4", # node ip address as a string
"connected":true|false # boolean connectionstate.
"addresses": [
"address":"1.2.3.4:5678" # Bitcoin server host and port as a string.
"connected":"inbound", # The string "inbound" or "outbound".
],
},
...
]`,
"getaddressesbyaccount": `getaddressesbyaccount "account"
Returns the list of addresses for the given account:
[
"address", # Bitcoin address associated with the given account.
...
]`,
"getbalance": `getbalance ("account" "minconf")
Returns the balance for an account. If "account" is not specified this is the
total balance for the server. if "minconf" is provided then only transactions
with at least "minconf" confirmations will be counted for the balance. The
result is a JSON numeric type.`,
"getbestblockhash": `getbestblockhash
Returns the hash of the last block in the longest blockchain known to
the server as a hex encoded string.`,
"getblock": `getblock "hash" ( verbose verbosetx=false)
Returns data about the block with hash "hash". If verbose is false a
string of hex-encoded data for the block is returned. If verbose is true
a JSON object is provided with the following:
{
"hash":"hash", # The block hash (same as argument).
"confirmations":n, # Number of confirmations as numeric.
"size":n, # Block size as numeric.
"height":n, # Block height as numeric.
"version":n, # Block version as numeric.
"merkelroot":"...", # The merkle root of the block.
"tx" : [ # the transactions in the block as an array of strings.
"transactionid",
...
],
"time":t, # The block time in seconds since the epoch.
"nonce":n, # The nonce of the block as a number.
"bits":"1d00ffff", # the compact representation of the difficulty as bits.
"difficulty":n, # the difficulty of the block as a number.
"previousblockhash":"hash", # hash of the previous block as a string.
"nextblockhash":""hash", # hash of the next block as a string.
}
If "verbosetx" is true, the returned object will contain a "rawtx" member
instead of the "tx" member; It will contain objects representing the
transactions in the block in format used by getrawtransaction.
Please note that verbosetx is a btcd/btcjson extension.`,
"getblockcount": `getblockcount
Returns a numeric for the number of blocks in the longest block chain.`,
"getblockhash": `getblockhash index
Returns the hash of the block (as a string) at the given index in the
current blockchain.`,
"getblocktemplate": `getblocktemplate ( jsonrequestobject )
Returns a block template for external mining purposes. The optional
request object follows the following format:
{
"mode":"template" # Optional, "template" or omitted.
"capabilities": [ # List of strings, optional.
"support", # Client side features supported. one of:
... # "longpoll", "coinbasetxn", "coinbasevalue",
... # "proposal", "serverlist", "workid".
]
}
The result object is of the following format:
{
"version":n, # Numeric block version.
"previousblockhash":"string" # Hash of the current tip of the blocktrain.
"transactions":[
"data" # String of hex-encoded serialized transaction.
"hash" # Hex encoded hash of the tx.
"depends": [ # Array of numbers representing the transactions
n, # that must be included in the final block if
..., # this one is. A 1 based index into the
..., # transactions list.
]
"fee":n # Numeric transaction fee in satoshi. This is calculated by the diffrence between the sum of inputs and outputs. For coinbase transaction this is a negative number of total collected block fees. If not present fee is unknown; clients must not assume that there is no fee in this case.
"sigops":n # Number of total signature operations calculated for purposes of block limits. If not present the count is unknown but clients must not assume it is zero.
"required":true|false # If provided and true this transaction *must* be in the final block.
],
"coinbaseaux": { # Object of data to be included in coinbase's scriptSig.
"flags":"flags" # String of flags.
}
"coinbasevalue" # Numeric value in satoshi for maximum allowable input to coinbase transaction, including transaction fees and mining aware.
"coinbasetxn":{} # Object contining information for coinbase transaction.
"target":"target", # The hash target as a string.
"mintime":t, # Minimum timestamp appropriate for next block in seconds since the epoch.
"mutable":[ # Array of ways the template may be modified.
"value" # e.g. "time", "transactions", "prevblock", etc
]
"noncerange":"00000000ffffffff" # Wtring representing the range of valid nonces.
"sigopliit" # Numeric limit for max sigops in block.
"sizelimit" # Numeric limit of block size.
"curtime":t # Current timestamp in seconds since the epoch.
"bits":"xxx", # Compressed target for next block as string.
"height":n, # Numeric height of the next block.
}`,
"getconnectioncount": `getconnectioncount
Returns the number of connections to other nodes currently active as a JSON
number.`,
"getdifficulty": `getdifficulty
Returns the proof-of-work difficulty as a JSON number. The result is a
multiple of the minimum difficulty.`,
"getgenerate": `getgenerate
Returns JSON boolean whether or not the server is set to "mine" coins or not.`,
"gethashespersec": `gethashespersec
Returns a JSON number representing a recent measurement of hashes-per-second
during mining.`,
"getinfo": `getinfo
Returns a JSON object containing state information about the service:
{
"version":n, # Numeric server version.
"protocolversion":n, # Numeric protocol version.
"walletversion":n, # Numeric wallet version.
"balance":n, # Total balance in the wallet as a number.
"blocks":n, # Numeric detailing current number of blocks.
"timeoffset":n, # Numeric server time offset.
"proxy":"host:port" # Optional string detailing the proxy in use.
"difficulty":n, # Current blockchain difficulty as a number.
"testnet":true|false # Boolean if the server is testnet.
"keypoololdest":t, # Oldest timstamp for pre generated keys. (in seconds since the epoch).
"keypoolsize":n, # Numeric size of the wallet keypool.
"paytxfee":n, # Numeric transaction fee that has been set.
"unlocked_until":t, # Numeric time the wallet is unlocked for in seconds since epoch.
"errors":"..." # Any error messages as a string.
}`,
"getmininginfo": `getmininginfo
Returns a JSON object containing information related to mining:
{
"blocks":n, # Numeric current block
"currentblocksize":n, # Numeric last block size.
currentblocktx":n, # Numeric last block transaction
"difficulty":n, # Numeric current difficulty.
"errors":"...", # Current error string.
}`,
"getnettotals": `getnettotals
Returns JSON object containing network traffic statistics:
{
"totalbytesrecv":n, # Numeric total bytes received.
"totalbytessent":n, # Numeric total bytes sent.
"timemilis",t, # Total numeric of milliseconds since epoch.
}`,
"getnetworkhashps": `getnetworkhashps ( blocks=120 height=-1 )
Returns the estimated network hash rate per second based on the last
"blocks" blocks. If "blocks" is -1 then the number of blocks since the
last difficulty change will be used. If "height" is set then the
calculation will be carried out for the given block height instead of
the block tip. A JSON number is returned with the hashes per second
estimate.`,
"getnewaddress": `getnewaddress ( "account" )
Returns a string for a new Bitcoin address for receiving payments. In the case
that "account" is specified then the address will be for "account", else the
default account will be used.`,
"getpeerinfo": `getpeerinfo
Returns a list of JSON objects containing information about each connected
network node. The objects have the following format:
[
{
"addr":"host:port" # IP and port of the peer as a string.
"addrlocal":"ip:port" # Local address as a string.
"services":"00000001", # Services bitmask as a string.
"lastsend":t, # Time in seconds since epoch since last send.
"lastrecv":t, # Time in seconds since epoch since last received message.
"bytessent":n, # Total number of bytes sent.
"bytesrecv":n, # Total number of bytes received
"conntime":t, # Connection time in seconds since epoc.
"pingtime":n, # Ping time
"pingwait":n, # Ping wait.
"version":n, # The numeric peer version.
"subver":"/btcd:0.1/" # The peer useragent string.
"inbound":true|false, # True or false whether peer is inbound.
"startingheight":n, # Numeric block heght of peer at connect time.
"banscore":n, # The numeric ban score.
"syncnode":true|false, # Boolean if the peer is the current sync node.
}
]`,
"getrawchangeaddress": `getrawchangeaddress
Returns a string containing a new Bitcoin addres for receiving change.
This rpc call is for use with raw transactions only.`,
"getrawmempool": `getrawmempool ( verbose )
Returns the contents of the transaction memory pool as a JSON array. If
verbose is false just the transaction ids will be returned as strings.
If it is true then objects in the following format will be returned:
[
"transactionid": {
"size":n, # Numeric transaction size in bytes.
"fee":n, # Numeric transqaction fee in btc.
"time":t, # Time transaction entered pool in seconds since the epoch.
"height":n, # Numeric block height when the transaction entered pool.
"startingpriority:n, # Numeric transaction priority when it entered the pool.
"currentpriority":n, # Numeric transaction priority.
"depends":[ # Unconfirmed transactions used as inputs for this one. As an array of strings.
"transactionid", # Parent transaction id.
]
},
...
]`,
"getrawtransaction": `getrawtransaction "txid" ( verbose )
Returns raw data related to "txid". If verbose is false, a string containing
hex-encoded serialized data for txid. If verbose is true a JSON object with the
following information about txid is returned:
{
"hex":"data", # String of serialized, hex encoded data for txid.
"txid":"id", # String containing the transaction id (same as "txid" parameter)
"version":n # Numeric tx version number.
"locktime":t, # Transaction locktime.
"vin":[ # Array of objects representing transaction inputs.
{
"txid":"id", # Spent transaction id as a string.
"vout""n, # Spent transaction output no.
"scriptSig":{ # Signature script as an object.
"asm":"asm", # Disassembled script string.
"hex":"hex", # Hex serialized string.
},
"sequence":n, # Script sequence number.
},
...
],
vout:[ # Array of objects representing transaction outputs.
{
"value":n, # Numeric value of output in btc.
"n", n, # Numeric output index.
"scriptPubKey":{ # Object representing pubkey script.
"asm":"asm" # Disassembled string of script.
"hex":"hex" # Hex serialized string.
"reqSigs":n, # Number of required signatures.
"type":"pubkey", # Type of scirpt. e.g. pubkeyhash" or "pubkey".
"addresses":[ # Array of address strings.
"address", # Bitcoin address.
...
],
}
}
],
"blockhash":"hash" # Hash of the block the transaction is part of.
"confirmations":n, # Number of numeric confirmations of block.
"time":t, # Transaction time in seconds since the epoch.
"blocktime":t, # Block time in seconds since the epoch.
}`,
"getreceivedbyaccount": `getreceivedbyaccount "account" ( minconf=1 )
Returns the total amount of BTC received by addresses related to "account".
Only transactions with at least "minconf" confirmations are considered.`,
"getreceivedbyaddress": `getreceivedbyaddress "address" ( minconf=1 )
Returns the total amount of BTC received by the given address. Only transactions
with "minconf" confirmations will be used for the total.`,
"gettransaction": `gettransaction "txid"
Returns a JSON object containing detailed information about the in-wallet
transaction "txid". The object follows the following format:
{
"amount":n, # Transaction amount in BTC.
"confirmations":n, # Number of confirmations for transaction.
"blockhash":"hash", # Hash of block transaction is part of.
"blockindex":n, # Index of block transaction is part of.
"blocktime":t, # Time of block transaction is part of.
"txid":"id", # Transaction id.
"time":t, # Transaction time in seconds since epoch.
"timereceived":t, # Time transaction was received in seconds since epoch.
"details":[
{
"account":"name", # The acount name involvedi n the transaction. "" means the default.
"address":"address", # The address involved in the transaction as a string.
"category":"send|receive", # Category - either send or receive.
"amount":n, # numeric amount in BTC.
}
...
]
}`,
"gettxout": `gettxout "txid" n ( includemempool )
Returns an object containing detauls about an unspent transaction output
the "n"th output of "txid":
{
"bestblock":"hash", # Block has containing transaction.
"confirmations":n, # Number of confirmations for block.
"value":n # Transaction value in BTC.
scriptPubkey" {
"asm":"asm", # Disassembled string of script.
"hex":"hex", # String script serialized and hex encoded.
"reqSigs" # Numeric required signatures.
"type":"pubkeyhash" # Type of transaction. e.g. pubkeyhas
"addresses":[ # Array of strings containing addresses.
"address",
...
]
},
}`,
"gettxoutsetinfo": `gettxoutsetinfo
Returns an object containing startstics about the unspent transaction
output set:
{
"height":n, # Numeric current block height.
"bestblock":"hex" # Hex string of best block hash.
"transactions":n, # Numeric count of transactions.
"txouts":n # Numeric count of transaction outputs.
"bytes_serialized":n # Numeric serialized size.
"hash_serialized" # String of serialized hash.
"total_amount":n, # Numeric total amount in BTC.
}`,
"getwork": `getwork ( "data" )
If "data" is present it is a hex encoded block datastruture that has been byte
reversed, if this is the case then the server will try to solve the
block and return true upon success, false upon failure. If data is not
specified the following object is returned to describe the work to be
solved:
{
"midstate":"xxx", # String of precomputed hash state for the first half of the data (deprecated).
"data":"...", # Block data as string.
"hash1":"..." # Hash buffer for second hash as string. (deprecated).
"target":"...", # Byte reversed hash target.
}`,
"help": `help ( "command" )
With no arguemnts, lists the supported commands. If "command" is
specified then help text for that command is returned as a string.`,
"importprivkey": `importprivkey "privkey" ( "label" rescan=true )
Adds a private key (in the same format as dumpprivkey) to the wallet. If label
is provided this is used as a label for the key. If rescan is true then the
blockchain will be scanned for transaction.`,
"importwallet": `importwallet "filename"
Imports keys from the wallet dump file in "filename".`,
"invalidateblock": `invalidateblock "hash"
Mark block specified by "hash" as invalid.`,
"keypoolrefill": `keypoolrefill ( newsize=100 )
Refills the wallet pregenerated key pool to a size of "newsize"`,
"listaccounts": `listaccounts ( minconf=1)
Returns a JSON object mapping account names to account balances:
{
"accountname": n # Account name to numeric balance in BTC.
...
}`,
"listaddressgroupings": `listaddressgroupings
Returns a JSON array of array of addreses which have had their relation to each
other made public by common use as inputs or in the change address. The data
takes the following format:
[
[
[
"address", # Bitcoin address.
amount, # Amount in BTC.
"account" # Optional account name string.
],
...
],
...
]`,
"listlockunspent": `listlockunspent
Returns a JSON array of objects detailing transaction outputs that are
temporarily unspendable due to being processed by the lockunspent call.
[
{
"txid":"txid" # Id of locked transaction as a string.
"vout":n, # Numeric index of locked output.
},
...
]`,
"listreceivedbyaccount": `listreceivedbyaccount ( minconf=1 includeempty=false )
Returns a JSON array containing objects for each account detailing their
balances. Only transaction with at least "minconf" confirmations will be
included. If "includeempty" is true then accounts who have received no payments
will also be included, else they will be elided. The format is as follows:
[
{
"account":"name", # Name of the receiving account.
"amount":n, # Total received amount in BTC.
"confirmations":n, # Total confirmations for most recent transaction.
}
]`,
"listreceivedbyaddress": `listreceivedbyaddress ( minconf=1 includeempty=false )
Returns a JSON array containing objects for each address detailing their
balances. Only transaction with at least "minconf" confirmations will be
included. If "includeempty" is true then adresses who have received no payments
will also be included, else they will be elided. The format is as follows:
[
{
"account":"name", # Name of the receiving account.
"amount":n, # Total received amount in BTC.
"confirmations":n, # Total confirmations for most recent transaction.
}
]`,
"listsinceblock": `listsinceblock ("blockhash" minconf=1)
Gets all wallet transactions in block since "blockhash", if blockhash is
omitted then all transactions are provided. If present the only transactions
with "minconf" confirmations are listed.
{
"transactions":[
"account" # String of account related to the transaction.
"address" # String of related address of transaction.
"category":"send|receive" # String detailing whether transaction was a send or receive of funds.
"amount":n, # Numeric value of transaction. Negative if transaction category was "send"
"fee":n, # Numeric value of transaction fee in BTC.
"confirmations":n, # Number of transaction confirmations
"blockhash":"hash" # String of hash of block transaction is part of.
"blockindex":n, # Numeric index of block transaction is part of.
"blocktime":t, # Block time in seconds since the epoch.
"txid":"id", # Transaction id.
"time":t, # Transaction time in second since the epoch.
"timereceived":t, # Time transaction received in seconds since the epoch.
"comment":"...", # String of the comment associated with the transaction.
"to":"...", # String of "to" comment of the transaction.
]
"lastblock":"lastblockhash" # Hash of the last block as a string.
}`,
"listtransactions": `listtransactions ( "account" count=10 from=0 )
Returns up to "count" most recent wallet transactions for "account" (or all
accounts if none specified) skipping the first "from" transactions.
{
"transactions":[
"account" # String of account related to the transaction.
"address" # String of related address of transaction.
"category":"send|receive|move" # String detailing whether transaction was a send or receive of funds.Move is a local move between accounts and doesnt touch the blockchain.
"amount":n, # Numeric value of transaction. Negative if transaction category was "send"
"fee":n, # Numeric value of transaction fee in BTC.
"confirmations":n, # Number of transaction confirmations
"blockhash":"hash" # String of hash of block transaction is part of.
"blockindex":n, # Numeric index of block transaction is part of.
"blocktime":t, # Block time in seconds since the epoch.
"txid":"id", # Transaction id.
"time":t, # Transaction time in second since the epoch.
"timereceived":t, # Time transaction received in seconds since the epoch.
"comment":"...", # String of the comment associated with the transaction.
"to":"...", # String of "to" comment of the transaction.
]
"lastblock":"lastblockhash" # Hash of the last block as a string.
}`,
"listunspent": `listunspent (minconf=1 maxconf=9999999 ["address",...]
Returns a JSON array of objects representing unspent transaction outputs with
between minconf and maxconf confirmations (inclusive). If the array of addresses
is present then only txouts paid to the addresses listed will be considered. The
objects take the following format:
[
{
"txid":"id", # The transaction id as a string.
"vout":n, # The output number of the tx.
"address":"add", # String of the transaction address.
"account":"acc", # The associated account, "" for default.
"scriptPubkey":"key" # The pubkeyscript as a string.
"amount":n, # The value of the transaction in BTC.
"confirmations":n, # The numer of confirmations.
},
...
]`,
"lockunspent": `lockunspent unlock [{"txid":id", "vout":n},...]
Changes the llist of temporarily unspendable transaction outputs. The
transacion outputs in the list of objects provided will be marked as
locked (if unlock is false) or unlocked (unlock is true). A locked
transaction will not be chosen automatically to be spent when a
tranaction is created. Boolean is returned whether the command succeeded.`,
"move": `move "fromaccount" "toaccount" amount ( minconf=1 "comment" )
Moves a specifies amount from "fromaccount" to "toaccount". Only funds
with minconf confirmations are used. If comment is present this comment
will be stored in the wallet with the transaction. Boolean is returned
to denode success.`,
"ping": `ping
Queues a ping to be sent to each connected peer. Ping times are provided in
getpeerinfo.`,
"reconsiderblock": `reconsiderblock "hash"
Remove invalid mark from block specified by "hash" so it is considered again.`,
"searchrawtransaction": `searchrawtransaction "address" (verbose=1 skip=0 count=100)
Returns raw tx data related to credits or debits to "address". Skip indicates
the number of leading transactions to leave out of the final result. Count
represents the max number of transactions to return. If verbose is false, a
string containing hex-encoded serialized data for txid. If verbose is true a
JSON object with the following information about txid is returned:
{
"hex":"data", # String of serialized, hex encoded data for txid.
"txid":"id", # String containing the transaction id (same as "txid" parameter)
"version":n # Numeric tx version number.
"locktime":t, # Transaction locktime.
"vin":[ # Array of objects representing transaction inputs.
{
"txid":"id", # Spent transaction id as a string.
"vout""n, # Spent transaction output no.
"scriptSig":{ # Signature script as an object.
"asm":"asm", # Disassembled script string.
"hex":"hex", # Hex serialized string.
},
"sequence":n, # Script sequence number.
},
...
],
vout:[ # Array of objects representing transaction outputs.
{
"value":n, # Numeric value of output in btc.
"n", n, # Numeric output index.
"scriptPubKey":{ # Object representing pubkey script.
"asm":"asm" # Disassembled string of script.
"hex":"hex" # Hex serialized string.
"reqSigs":n, # Number of required signatures.
"type":"pubkey", # Type of scirpt. e.g. pubkeyhash" or "pubkey".
"addresses":[ # Array of address strings.
"address", # Bitcoin address.
...
],
}
}
],
"blockhash":"hash" # Hash of the block the transaction is part of.
"confirmations":n, # Number of numeric confirmations of block.
"time":t, # Transaction time in seconds since the epoch.
"blocktime":t, # Block time in seconds since the epoch.
}`,
"sendfrom": `sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf=1 "comment" "comment-to" )
Sends "amount" (rounded to the nearest 0.00000001) to
"tobitcoindaddress" from "fromaccount". Only funds with at least
"minconf" confirmations will be considered. If "comment" is present this
will be store the purpose of the transaction. If "comment-to" is present
this comment will be recorded locally to store the recipient of the
transaction.`,
"sendmany": `sendmany "fromaccount" {"address":amount,...} ( minconf=1 "comment" )
Sends funds to multiple recipients. Funds from "fromaccount" are send to the
address/amount pairs specified. Only funds with minconf confirmations are
considered. "comment" if present is recorded locally as the purpose of the
transaction.`,
"sendrawtransaction": `sendrawtransaction "hexstring" (allowhighfees=false)
Submits the hex-encoded transaction in "hexstring" to the bitcoin network via
the local node. If allowhighfees is true then high fees will be allowed.`,
"sendtoaddress": `sendtoaddress "bitcoindaddress" amount ( "comment" "comment-to")
Send "amount" BTC (rounded to the nearest 0.00000001) to "bitcoinaddress". If
comment is set, it will be stored locally to describe the purpose of the
transaction. If comment-to" is set it will be stored locally to describe the
recipient of the transaction. A string containing the transaction id is
returned if successful.`,
"setaccount": `setaccount "address" "account"
Sets the account associated with "address" to "account".`,
"setgenerate": `setgenerate generate ( genproclimit )
Sets the current mining state to "generate". Up to "genproclimit" processors
will be used, if genproclimit is -1 then it is unlimited.`,
"settxfee": `settxfee amount
Sets the current transaction fee.`,
"signmessage": `signmessage "address" "message"
Returns a signature for "message" with the private key of "address"`,
"signrawtransaction": `signrawtransaction "hexstring" ( prevtxs ["privatekey",...] sighashtype="ALL" )
Signs the inputs for the serialized and hex encoded transaction in
"hexstring". "prevtxs" optionally is an is an array of objects
representing the previous tx outputs that are spent here but may not yet
be in the blockchain, it takes the following format:
[
{
"txid":id:, # String of transaction id.
"vout":n, # Output number.
"scriptPubKey":"hex", # Hex encoded string of pubkey script from transaction.
"redemScript":"hex" # Hex encoded redemption script.
},
...
]
If the third argument is provided these base58-encoded private keys in
the list will be the only keys used to sign the transaction. sighashtype
optionally denoes the signature hash type to be used. is must be one of the
following:
"ALL",
"NONE",
"SINGLE",
"ALL|ANYONECANPAY",
"NONE|ANYONECANPAY",
"SINGLE|ANYONECANPAY".
The return value takes the following format:
{
"hex":"value" # Hex string of raw transactino with signatures applied.
"complete":n, # If the transaction has a complete set of signatures. 0 if false.
}`,
"stop": `stop
Stop the server.`,
"submitblock": `submitblock "data" ( optionalparameterobject )
Will attempt to submit the block serialized in "data" to the bitcoin network.
optionalparametersobject takes the following format:
{
"workid":"id" # If getblocktemplate provided a workid it must be included with submissions.
}`,
"validateaddress": `validateaddress "address
Returns a JSON objects containing information about the provided "address".
Format:
{
"isvalid":true|false, # If the address is valid. If false this is the only property returned.
"address:"address", # The address that was validated.
"ismine":true|false, # If the address belongs to the server.
"isscript:true|false, # If the address is a script address.
"pubkey":"pk", # The hex value of the public key associated with the address.
"iscompressed":true|false, # If the address is compresssed.
"account":"account", # The related account. "" is the default.
}`,
"verifychain": `verifychain ( checklevel=3 numblocks=288 )
Verifies the stored blockchain database. "checklevel" denotes how thorough the
check is and "numblocks" how many blocks from the tip will be verified.`,
"verifymessage": `verifymessage "bitcoinaddress" "signature" "message"
Verifies the signature "signature" for "message" from the key related
to "bitcoinaddress". The return is true or false if the signature
verified correctly.`,
"walletlock": `walletlock
Removes any encryption key for the wallet from memory, unlocking the wallet.
In order to use wallet functionality again the wallet must be unlocked via
walletpassphrase.`,
"walletpassphrase": `walletpassphrase "passphrase" timeout
Decrypts the wallet for "timeout" seconds with "passphrase". This is required
before using wallet functionality.`,
"walletpassphrasechange": `walletpassphrasechange "oldpassphrase" "newpassphrase"
Changes the wallet passphrase from "oldpassphrase" to "newpassphrase".`,
}
// GetHelpString returns a string containing help text for "cmdName". If
// cmdName is unknown to btcjson - either via the default command list or those
// registered using RegisterCustomCmd - an error will be returned.
func GetHelpString(cmdName string) (string, error) {
helpstr := ""
if help, ok := defaultHelpStrings[cmdName]; ok {
return help, nil
}
if c, ok := customCmds[cmdName]; ok {
return c.helpString, nil
}
return helpstr, errors.New("invalid command specified")
} | cmdhelp.go | 0.582729 | 0.421969 | cmdhelp.go | starcoder |
package petstore
import (
"encoding/json"
)
// Capitalization struct for Capitalization
type Capitalization struct {
SmallCamel *string `json:"smallCamel,omitempty"`
CapitalCamel *string `json:"CapitalCamel,omitempty"`
SmallSnake *string `json:"small_Snake,omitempty"`
CapitalSnake *string `json:"Capital_Snake,omitempty"`
SCAETHFlowPoints *string `json:"SCA_ETH_Flow_Points,omitempty"`
// Name of the pet
ATT_NAME *string `json:"ATT_NAME,omitempty"`
}
// NewCapitalization instantiates a new Capitalization object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewCapitalization() *Capitalization {
this := Capitalization{}
return &this
}
// NewCapitalizationWithDefaults instantiates a new Capitalization object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCapitalizationWithDefaults() *Capitalization {
this := Capitalization{}
return &this
}
// GetSmallCamel returns the SmallCamel field value if set, zero value otherwise.
func (o *Capitalization) GetSmallCamel() string {
if o == nil || o.SmallCamel == nil {
var ret string
return ret
}
return *o.SmallCamel
}
// GetSmallCamelOk returns a tuple with the SmallCamel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetSmallCamelOk() (*string, bool) {
if o == nil || o.SmallCamel == nil {
return nil, false
}
return o.SmallCamel, true
}
// HasSmallCamel returns a boolean if a field has been set.
func (o *Capitalization) HasSmallCamel() bool {
if o != nil && o.SmallCamel != nil {
return true
}
return false
}
// SetSmallCamel gets a reference to the given string and assigns it to the SmallCamel field.
func (o *Capitalization) SetSmallCamel(v string) {
o.SmallCamel = &v
}
// GetCapitalCamel returns the CapitalCamel field value if set, zero value otherwise.
func (o *Capitalization) GetCapitalCamel() string {
if o == nil || o.CapitalCamel == nil {
var ret string
return ret
}
return *o.CapitalCamel
}
// GetCapitalCamelOk returns a tuple with the CapitalCamel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetCapitalCamelOk() (*string, bool) {
if o == nil || o.CapitalCamel == nil {
return nil, false
}
return o.CapitalCamel, true
}
// HasCapitalCamel returns a boolean if a field has been set.
func (o *Capitalization) HasCapitalCamel() bool {
if o != nil && o.CapitalCamel != nil {
return true
}
return false
}
// SetCapitalCamel gets a reference to the given string and assigns it to the CapitalCamel field.
func (o *Capitalization) SetCapitalCamel(v string) {
o.CapitalCamel = &v
}
// GetSmallSnake returns the SmallSnake field value if set, zero value otherwise.
func (o *Capitalization) GetSmallSnake() string {
if o == nil || o.SmallSnake == nil {
var ret string
return ret
}
return *o.SmallSnake
}
// GetSmallSnakeOk returns a tuple with the SmallSnake field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetSmallSnakeOk() (*string, bool) {
if o == nil || o.SmallSnake == nil {
return nil, false
}
return o.SmallSnake, true
}
// HasSmallSnake returns a boolean if a field has been set.
func (o *Capitalization) HasSmallSnake() bool {
if o != nil && o.SmallSnake != nil {
return true
}
return false
}
// SetSmallSnake gets a reference to the given string and assigns it to the SmallSnake field.
func (o *Capitalization) SetSmallSnake(v string) {
o.SmallSnake = &v
}
// GetCapitalSnake returns the CapitalSnake field value if set, zero value otherwise.
func (o *Capitalization) GetCapitalSnake() string {
if o == nil || o.CapitalSnake == nil {
var ret string
return ret
}
return *o.CapitalSnake
}
// GetCapitalSnakeOk returns a tuple with the CapitalSnake field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetCapitalSnakeOk() (*string, bool) {
if o == nil || o.CapitalSnake == nil {
return nil, false
}
return o.CapitalSnake, true
}
// HasCapitalSnake returns a boolean if a field has been set.
func (o *Capitalization) HasCapitalSnake() bool {
if o != nil && o.CapitalSnake != nil {
return true
}
return false
}
// SetCapitalSnake gets a reference to the given string and assigns it to the CapitalSnake field.
func (o *Capitalization) SetCapitalSnake(v string) {
o.CapitalSnake = &v
}
// GetSCAETHFlowPoints returns the SCAETHFlowPoints field value if set, zero value otherwise.
func (o *Capitalization) GetSCAETHFlowPoints() string {
if o == nil || o.SCAETHFlowPoints == nil {
var ret string
return ret
}
return *o.SCAETHFlowPoints
}
// GetSCAETHFlowPointsOk returns a tuple with the SCAETHFlowPoints field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetSCAETHFlowPointsOk() (*string, bool) {
if o == nil || o.SCAETHFlowPoints == nil {
return nil, false
}
return o.SCAETHFlowPoints, true
}
// HasSCAETHFlowPoints returns a boolean if a field has been set.
func (o *Capitalization) HasSCAETHFlowPoints() bool {
if o != nil && o.SCAETHFlowPoints != nil {
return true
}
return false
}
// SetSCAETHFlowPoints gets a reference to the given string and assigns it to the SCAETHFlowPoints field.
func (o *Capitalization) SetSCAETHFlowPoints(v string) {
o.SCAETHFlowPoints = &v
}
// GetATT_NAME returns the ATT_NAME field value if set, zero value otherwise.
func (o *Capitalization) GetATT_NAME() string {
if o == nil || o.ATT_NAME == nil {
var ret string
return ret
}
return *o.ATT_NAME
}
// GetATT_NAMEOk returns a tuple with the ATT_NAME field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Capitalization) GetATT_NAMEOk() (*string, bool) {
if o == nil || o.ATT_NAME == nil {
return nil, false
}
return o.ATT_NAME, true
}
// HasATT_NAME returns a boolean if a field has been set.
func (o *Capitalization) HasATT_NAME() bool {
if o != nil && o.ATT_NAME != nil {
return true
}
return false
}
// SetATT_NAME gets a reference to the given string and assigns it to the ATT_NAME field.
func (o *Capitalization) SetATT_NAME(v string) {
o.ATT_NAME = &v
}
func (o Capitalization) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.SmallCamel != nil {
toSerialize["smallCamel"] = o.SmallCamel
}
if o.CapitalCamel != nil {
toSerialize["CapitalCamel"] = o.CapitalCamel
}
if o.SmallSnake != nil {
toSerialize["small_Snake"] = o.SmallSnake
}
if o.CapitalSnake != nil {
toSerialize["Capital_Snake"] = o.CapitalSnake
}
if o.SCAETHFlowPoints != nil {
toSerialize["SCA_ETH_Flow_Points"] = o.SCAETHFlowPoints
}
if o.ATT_NAME != nil {
toSerialize["ATT_NAME"] = o.ATT_NAME
}
return json.Marshal(toSerialize)
}
type NullableCapitalization struct {
value *Capitalization
isSet bool
}
func (v NullableCapitalization) Get() *Capitalization {
return v.value
}
func (v *NullableCapitalization) Set(val *Capitalization) {
v.value = val
v.isSet = true
}
func (v NullableCapitalization) IsSet() bool {
return v.isSet
}
func (v *NullableCapitalization) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCapitalization(val *Capitalization) *NullableCapitalization {
return &NullableCapitalization{value: val, isSet: true}
}
func (v NullableCapitalization) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCapitalization) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
} | samples/client/petstore/go/go-petstore/model_capitalization.go | 0.774839 | 0.407157 | model_capitalization.go | starcoder |
package kdtree
import (
"errors"
"gonum.org/v1/gonum/mat"
"github.com/sjwhitworth/golearn/metrics/pairwise"
"sort"
)
type node struct {
feature int
value []float64
srcRowNo int
left *node
right *node
}
// Tree is a kdtree.
type Tree struct {
firstDiv *node
data [][]float64
}
type SortData struct {
RowData [][]float64
Data []int
Feature int
}
func (d SortData) Len() int { return len(d.Data) }
func (d SortData) Less(i, j int) bool {
return d.RowData[d.Data[i]][d.Feature] < d.RowData[d.Data[j]][d.Feature]
}
func (d SortData) Swap(i, j int) { d.Data[i], d.Data[j] = d.Data[j], d.Data[i] }
// New return a Tree pointer.
func New() *Tree {
return &Tree{}
}
// Build builds the kdtree with specific data.
func (t *Tree) Build(data [][]float64) error {
if len(data) == 0 {
return errors.New("no input data")
}
size := len(data[0])
for _, v := range data {
if len(v) != size {
return errors.New("amounts of features are not the same")
}
}
t.data = data
newData := make([]int, len(data))
for k, _ := range newData {
newData[k] = k
}
if len(data) == 1 {
t.firstDiv = &node{feature: -1, srcRowNo: 0}
t.firstDiv.value = make([]float64, len(data[0]))
copy(t.firstDiv.value, data[0])
} else {
t.firstDiv = t.buildHandle(newData, 0)
}
return nil
}
// buildHandle builds the kdtree recursively.
func (t *Tree) buildHandle(data []int, featureIndex int) *node {
n := &node{feature: featureIndex}
tmp := SortData{RowData: t.data, Data: data, Feature: featureIndex}
sort.Sort(tmp)
middle := len(data) / 2
divPoint := middle
for i := middle + 1; i < len(data); i++ {
if t.data[data[i]][featureIndex] == t.data[data[middle]][featureIndex] {
divPoint = i
} else {
break
}
}
n.srcRowNo = data[divPoint]
n.value = make([]float64, len(t.data[data[divPoint]]))
copy(n.value, t.data[data[divPoint]])
if divPoint == 1 {
n.left = &node{feature: -1}
n.left.value = make([]float64, len(t.data[data[0]]))
copy(n.left.value, t.data[data[0]])
n.left.srcRowNo = data[0]
} else {
n.left = t.buildHandle(data[:divPoint], (featureIndex+1)%len(t.data[data[0]]))
}
if divPoint == (len(data) - 2) {
n.right = &node{feature: -1}
n.right.value = make([]float64, len(t.data[data[divPoint+1]]))
copy(n.right.value, t.data[data[divPoint+1]])
n.right.srcRowNo = data[divPoint+1]
} else if divPoint != (len(data) - 1) {
n.right = t.buildHandle(data[divPoint+1:], (featureIndex+1)%len(t.data[data[0]]))
} else {
n.right = &node{feature: -2}
}
return n
}
// Search return srcRowNo([]int) and length([]float64) contained
// k nearest neighbors from specific distance function.
func (t *Tree) Search(k int, disType pairwise.PairwiseDistanceFunc, target []float64) ([]int, []float64, error) {
if k > len(t.data) {
return []int{}, []float64{}, errors.New("k is largerer than amount of trainData")
}
if len(target) != len(t.data[0]) {
return []int{}, []float64{}, errors.New("amount of features is not equal")
}
h := newHeap()
t.searchHandle(k, disType, target, h, t.firstDiv)
srcRowNo := make([]int, k)
length := make([]float64, k)
i := k - 1
for h.size() != 0 {
srcRowNo[i] = h.maximum().srcRowNo
length[i] = h.maximum().length
i--
h.extractMax()
}
return srcRowNo, length, nil
}
func (t *Tree) searchHandle(k int, disType pairwise.PairwiseDistanceFunc, target []float64, h *heap, n *node) {
if n.feature == -1 {
vectorX := mat.NewDense(len(target), 1, target)
vectorY := mat.NewDense(len(target), 1, n.value)
length := disType.Distance(vectorX, vectorY)
h.insert(n.value, length, n.srcRowNo)
return
} else if n.feature == -2 {
return
}
dir := true
if target[n.feature] <= n.value[n.feature] {
t.searchHandle(k, disType, target, h, n.left)
} else {
dir = false
t.searchHandle(k, disType, target, h, n.right)
}
vectorX := mat.NewDense(len(target), 1, target)
vectorY := mat.NewDense(len(target), 1, n.value)
length := disType.Distance(vectorX, vectorY)
if k > h.size() {
h.insert(n.value, length, n.srcRowNo)
if dir {
t.searchAllNodes(k, disType, target, h, n.right)
} else {
t.searchAllNodes(k, disType, target, h, n.left)
}
} else if h.maximum().length > length {
h.extractMax()
h.insert(n.value, length, n.srcRowNo)
if dir {
t.searchAllNodes(k, disType, target, h, n.right)
} else {
t.searchAllNodes(k, disType, target, h, n.left)
}
} else {
vectorX = mat.NewDense(1, 1, []float64{target[n.feature]})
vectorY = mat.NewDense(1, 1, []float64{n.value[n.feature]})
length = disType.Distance(vectorX, vectorY)
if h.maximum().length > length {
if dir {
t.searchAllNodes(k, disType, target, h, n.right)
} else {
t.searchAllNodes(k, disType, target, h, n.left)
}
}
}
}
func (t *Tree) searchAllNodes(k int, disType pairwise.PairwiseDistanceFunc, target []float64, h *heap, n *node) {
vectorX := mat.NewDense(len(target), 1, target)
vectorY := mat.NewDense(len(target), 1, n.value)
length := disType.Distance(vectorX, vectorY)
if k > h.size() {
h.insert(n.value, length, n.srcRowNo)
} else if h.maximum().length > length {
h.extractMax()
h.insert(n.value, length, n.srcRowNo)
}
if n.left != nil {
t.searchAllNodes(k, disType, target, h, n.left)
}
if n.right != nil {
t.searchAllNodes(k, disType, target, h, n.right)
}
} | vendor/github.com/sjwhitworth/golearn/kdtree/kdtree.go | 0.629775 | 0.450178 | kdtree.go | starcoder |
package test
import (
"testing"
cdata "github.com/pip-services3-go/pip-services3-commons-go/data"
"github.com/stretchr/testify/assert"
)
type DummyPersistenceFixture struct {
dummy1 Dummy
dummy2 Dummy
persistence IDummyPersistence
}
func NewDummyPersistenceFixture(persistence IDummyPersistence) *DummyPersistenceFixture {
c := DummyPersistenceFixture{}
c.dummy1 = Dummy{Id: "", Key: "Key 11", Content: "Content 1"}
c.dummy2 = Dummy{Id: "", Key: "Key 2", Content: "Content 2"}
c.persistence = persistence
return &c
}
func (c *DummyPersistenceFixture) TestCrudOperations(t *testing.T) {
var dummy1 Dummy
var dummy2 Dummy
result, err := c.persistence.Create("", c.dummy1)
if err != nil {
t.Errorf("Create method error %v", err)
}
dummy1 = result
assert.NotNil(t, dummy1)
assert.NotNil(t, dummy1.Id)
assert.Equal(t, c.dummy1.Key, dummy1.Key)
assert.Equal(t, c.dummy1.Content, dummy1.Content)
// Create another dummy by send pointer
result, err = c.persistence.Create("", c.dummy2)
if err != nil {
t.Errorf("Create method error %v", err)
}
dummy2 = result
assert.NotNil(t, dummy2)
assert.NotNil(t, dummy2.Id)
assert.Equal(t, c.dummy2.Key, dummy2.Key)
assert.Equal(t, c.dummy2.Content, dummy2.Content)
page, errp := c.persistence.GetPageByFilter("", cdata.NewEmptyFilterParams(), cdata.NewPagingParams(0, 5, true))
if errp != nil {
t.Errorf("GetPageByFilter method error %v", err)
}
assert.NotNil(t, page)
assert.Len(t, page.Data, 2)
assert.NotNil(t, page.Total)
assert.Equal(t, *page.Total, (int64)(2))
item1 := page.Data[0]
assert.Equal(t, item1.Key, dummy1.Key)
item2 := page.Data[1]
assert.Equal(t, item2.Key, dummy2.Key)
// Update the dummy
dummy1.Content = "Updated Content 1"
result, err = c.persistence.Update("", dummy1)
if err != nil {
t.Errorf("Update method error %v", err)
}
assert.NotNil(t, result)
assert.Equal(t, dummy1.Id, result.Id)
assert.Equal(t, dummy1.Key, result.Key)
assert.Equal(t, dummy1.Content, result.Content)
// Set the dummy (updating)
dummy1.Content = "Updated Content 2"
result, err = c.persistence.Set("", dummy1)
if err != nil {
t.Errorf("Set method error %v", err)
}
assert.NotNil(t, result)
assert.Equal(t, dummy1.Id, result.Id)
assert.Equal(t, dummy1.Key, result.Key)
assert.Equal(t, dummy1.Content, result.Content)
// Set the dummy (creating)
dummy2.Id = "New_id"
dummy2.Key = "New_key"
result, err = c.persistence.Set("", dummy2)
if err != nil {
t.Errorf("Set method error %v", err)
}
assert.NotNil(t, result)
assert.Equal(t, dummy2.Id, result.Id)
assert.Equal(t, dummy2.Key, result.Key)
assert.Equal(t, dummy2.Content, result.Content)
// Partially update the dummy
updateMap := cdata.NewAnyValueMapFromTuples("content", "Partially Updated Content 1")
result, err = c.persistence.UpdatePartially("", dummy1.Id, updateMap)
if err != nil {
t.Errorf("UpdatePartially method error %v", err)
}
assert.NotNil(t, result)
assert.Equal(t, dummy1.Id, result.Id)
assert.Equal(t, dummy1.Key, result.Key)
assert.Equal(t, "Partially Updated Content 1", result.Content)
// Get the dummy by Id
result, err = c.persistence.GetOneById("", dummy1.Id)
if err != nil {
t.Errorf("GetOneById method error %v", err)
}
// Try to get item
assert.NotNil(t, result)
assert.Equal(t, dummy1.Id, result.Id)
assert.Equal(t, dummy1.Key, result.Key)
assert.Equal(t, "Partially Updated Content 1", result.Content)
// Delete the dummy
result, err = c.persistence.DeleteById("", dummy1.Id)
if err != nil {
t.Errorf("DeleteById method error %v", err)
}
assert.NotNil(t, result)
assert.Equal(t, dummy1.Id, result.Id)
assert.Equal(t, dummy1.Key, result.Key)
assert.Equal(t, "Partially Updated Content 1", result.Content)
// Get the deleted dummy
result, err = c.persistence.GetOneById("", dummy1.Id)
if err != nil {
t.Errorf("GetOneById method error %v", err)
}
// Try to get item, must be an empty Dummy struct
temp := Dummy{}
assert.Equal(t, temp, result)
}
func (c *DummyPersistenceFixture) TestBatchOperations(t *testing.T) {
var dummy1 Dummy
var dummy2 Dummy
// Create one dummy
result, err := c.persistence.Create("", c.dummy1)
if err != nil {
t.Errorf("Create method error %v", err)
}
dummy1 = result
assert.NotNil(t, dummy1)
assert.NotNil(t, dummy1.Id)
assert.Equal(t, c.dummy1.Key, dummy1.Key)
assert.Equal(t, c.dummy1.Content, dummy1.Content)
// Create another dummy
result, err = c.persistence.Create("", c.dummy2)
if err != nil {
t.Errorf("Create method error %v", err)
}
dummy2 = result
assert.NotNil(t, dummy2)
assert.NotNil(t, dummy2.Id)
assert.Equal(t, c.dummy2.Key, dummy2.Key)
assert.Equal(t, c.dummy2.Content, dummy2.Content)
// Read batch
items, err := c.persistence.GetListByIds("", []string{dummy1.Id, dummy2.Id})
if err != nil {
t.Errorf("GetListByIds method error %v", err)
}
//assert.isArray(t,items)
assert.NotNil(t, items)
assert.Len(t, items, 2)
// Delete batch
err = c.persistence.DeleteByIds("", []string{dummy1.Id, dummy2.Id})
if err != nil {
t.Errorf("DeleteByIds method error %v", err)
}
assert.Nil(t, err)
// Read empty batch
items, err = c.persistence.GetListByIds("", []string{dummy1.Id, dummy2.Id})
if err != nil {
t.Errorf("GetListByIds method error %v", err)
}
assert.NotNil(t, items)
assert.Len(t, items, 0)
} | test/fixtures/DummyPersistenceFixture.go | 0.588534 | 0.631765 | DummyPersistenceFixture.go | starcoder |
package v1alpha1
// GatewayListerExpansion allows custom methods to be added to
// GatewayLister.
type GatewayListerExpansion interface{}
// GatewayNamespaceListerExpansion allows custom methods to be added to
// GatewayNamespaceLister.
type GatewayNamespaceListerExpansion interface{}
// InsightsListerExpansion allows custom methods to be added to
// InsightsLister.
type InsightsListerExpansion interface{}
// InsightsNamespaceListerExpansion allows custom methods to be added to
// InsightsNamespaceLister.
type InsightsNamespaceListerExpansion interface{}
// InsightsAPIKeyListerExpansion allows custom methods to be added to
// InsightsAPIKeyLister.
type InsightsAPIKeyListerExpansion interface{}
// InsightsAPIKeyNamespaceListerExpansion allows custom methods to be added to
// InsightsAPIKeyNamespaceLister.
type InsightsAPIKeyNamespaceListerExpansion interface{}
// InsightsAnalyticsItemListerExpansion allows custom methods to be added to
// InsightsAnalyticsItemLister.
type InsightsAnalyticsItemListerExpansion interface{}
// InsightsAnalyticsItemNamespaceListerExpansion allows custom methods to be added to
// InsightsAnalyticsItemNamespaceLister.
type InsightsAnalyticsItemNamespaceListerExpansion interface{}
// InsightsSmartDetectionRuleListerExpansion allows custom methods to be added to
// InsightsSmartDetectionRuleLister.
type InsightsSmartDetectionRuleListerExpansion interface{}
// InsightsSmartDetectionRuleNamespaceListerExpansion allows custom methods to be added to
// InsightsSmartDetectionRuleNamespaceLister.
type InsightsSmartDetectionRuleNamespaceListerExpansion interface{}
// InsightsWebTestListerExpansion allows custom methods to be added to
// InsightsWebTestLister.
type InsightsWebTestListerExpansion interface{}
// InsightsWebTestNamespaceListerExpansion allows custom methods to be added to
// InsightsWebTestNamespaceLister.
type InsightsWebTestNamespaceListerExpansion interface{}
// SecurityGroupListerExpansion allows custom methods to be added to
// SecurityGroupLister.
type SecurityGroupListerExpansion interface{}
// SecurityGroupNamespaceListerExpansion allows custom methods to be added to
// SecurityGroupNamespaceLister.
type SecurityGroupNamespaceListerExpansion interface{} | client/listers/application/v1alpha1/expansion_generated.go | 0.542136 | 0.410756 | expansion_generated.go | starcoder |
package itertools
import (
"github.com/Tom-Johnston/mamba/ints"
)
//PermutationIterator is a struct containing the state of the iterator.
//It iterates over permutations according to Heap's algorithm.
type PermutationIterator struct {
n int
i int
c []int
p []int
}
//Permutations returns a new permuation iterator which iterates over all permutations of the elements {0, ..., n - 1}.
func Permutations(n int) *PermutationIterator {
a := make([]int, n)
for i := range a {
a[i] = i
}
p := PermutationIterator{i: -1, n: len(a), c: make([]int, len(a)), p: a}
return &p
}
//Value returns the current permutation.
//You must not modify the output of this function.
func (p *PermutationIterator) Value() []int {
return p.p
}
//Next moves the iterator to the next permutation, returning true if there is one and false if the previous permutation is the last one.
func (p *PermutationIterator) Next() bool {
if p.i == p.n {
return false
}
if p.i == -1 {
p.i++
return true
}
for p.i < p.n {
if p.c[p.i] < p.i {
if p.i%2 == 0 {
p.p[0], p.p[p.i] = p.p[p.i], p.p[0]
} else {
p.p[p.c[p.i]], p.p[p.i] = p.p[p.i], p.p[p.c[p.i]]
}
p.c[p.i]++
p.i = 0
return true
}
p.c[p.i] = 0
p.i++
}
return false
}
//LexicographicPermutationIterator is a struct contraining the state of an iterator which iterates over all permutations of {0, 1, ..., n-1} in lexicographic order.
type LexicographicPermutationIterator struct {
n int
a []int
first bool
}
//LexicographicPermutations returns a new iterator which iterates over all permutations of {0, ..., n-1} in lexicographic order.
//It is not safe to modify the output of the iterator.
func LexicographicPermutations(n int) *LexicographicPermutationIterator {
a := make([]int, n)
for i := range a {
a[i] = i
}
return &LexicographicPermutationIterator{n: n, a: a, first: true}
}
//Value returns the current permutation.
//You must not modify the output of this function.
func (iter *LexicographicPermutationIterator) Value() []int {
return iter.a
}
//Next moves the iterator to the next permutation, returning true if there is one and false if the previous permutation is the last one.
func (iter *LexicographicPermutationIterator) Next() bool {
n := iter.n
if n > 0 && iter.first {
iter.first = false
return true
}
if n > 1 && iter.a[n-2] < iter.a[n-1] {
iter.a[n-2], iter.a[n-1] = iter.a[n-1], iter.a[n-2]
return true
}
if n > 2 && iter.a[n-3] < iter.a[n-2] {
if iter.a[n-3] < iter.a[n-1] {
iter.a[n-3], iter.a[n-2], iter.a[n-1] = iter.a[n-1], iter.a[n-3], iter.a[n-2]
} else {
iter.a[n-3], iter.a[n-2], iter.a[n-1] = iter.a[n-2], iter.a[n-1], iter.a[n-3]
}
return true
}
for j := iter.n - 4; j >= 0; j-- {
if iter.a[j] >= iter.a[j+1] {
continue
}
if iter.a[j] < iter.a[n-1] {
iter.a[j], iter.a[j+1], iter.a[n-1] = iter.a[n-1], iter.a[j], iter.a[j+1]
} else {
for l := n - 2; l > 0; l-- {
if iter.a[j] >= iter.a[l] {
continue
}
iter.a[j], iter.a[l] = iter.a[l], iter.a[j]
iter.a[n-1], iter.a[j+1] = iter.a[j+1], iter.a[n-1]
break
}
}
k := j + 2
l := n - 2
for k < l {
iter.a[k], iter.a[l] = iter.a[l], iter.a[k]
k++
l--
}
return true
}
return false
}
//MultisetPermutationIterator is a struct containing the state of an iterator which iterates over all permutations of some multiset from {0, 1, ..., n-1} in lexicographic order.
type MultisetPermutationIterator struct {
lexIter *LexicographicPermutationIterator
}
//MultisetPermutations returns an iterator which iterates over all permutations of some multiset from {0, 1, ..., n-1} in lexicographic order. The number i appears freq[i] times in the multiset.
//It is not safe to modify the output of the iterator.
func MultisetPermutations(freq []int) *MultisetPermutationIterator {
n := ints.Sum(freq)
a := make([]int, 0, n)
for i := range freq {
for j := 0; j < freq[i]; j++ {
a = append(a, i)
}
}
return &MultisetPermutationIterator{lexIter: &LexicographicPermutationIterator{n: n, a: a, first: true}}
}
//Value returns the current permutation.
//You must not modify the output of this function.
func (iter *MultisetPermutationIterator) Value() []int {
return iter.lexIter.Value()
}
//Next moves the iterator to the next permutation, returning true if there is one and false if the previous permutation is the last one.
func (iter *MultisetPermutationIterator) Next() bool {
return iter.lexIter.Next()
}
//Topological sorts as in Algorithm V of The Art of Computer Programming Volume 4a Section 7.2.1.2.
//TopologicalSortIterator iterates over all topological sorts of {0, 1, ..., n-1} respecting some partial order of the total order 0 < 1 < ... < n -1.
type TopologicalSortIterator struct {
less func(i, j int) bool
state []int
invState []int
n int
first bool
}
//TopologicalSorts returns an iterator which iterates over all topological sorts of {0, 1, ... , n-1} according to the partial order less. If less(i,j) == true, then this only iterates over permutations where i appears before j.
//less must be a sub-order of the total order 0 < 1 < ... n -1 i.e. for inputs i < j the function less should return true if the condition i < j should be imposed and false otherwise. If i >= j, the function should return false.
//The function less doesn't need to be transitive as if i < j < k, then less(i,k) will never be called.
//If less(i,j) == true, then the inverse permutation is such that the value in position i is smaller than the value in position j. The function iter.InverseValue() returns the inverse permutation.
func TopologicalSorts(n int, less func(i, j int) bool) *TopologicalSortIterator {
state := make([]int, n)
for i := range state {
state[i] = i
}
invState := make([]int, n)
for i := range invState {
invState[i] = i
}
return &TopologicalSortIterator{less: less, state: state, invState: invState, n: n, first: true}
}
//Value returns the current permutation.
//You must not modify the value.
func (iter *TopologicalSortIterator) Value() []int {
return iter.state
}
//InverseValue returns the inverse the to current permutation.
//You must not modify the value.
func (iter *TopologicalSortIterator) InverseValue() []int {
return iter.invState
}
//Next attempts to advance the iterator to the next permutation, returning true if there is one and false otherwise.
func (iter *TopologicalSortIterator) Next() bool {
if iter.first {
iter.first = false
return true
}
n := iter.n
for k := n - 1; k >= 0; k-- {
j := iter.invState[k]
if j > 0 {
l := iter.state[j-1]
//TODO: Do we always have l < k here?
if !iter.less(l, k) {
iter.state[j-1] = k
iter.state[j] = l
iter.invState[k] = j - 1
iter.invState[l] = j
return true
}
}
for j < k {
l := iter.state[j+1]
iter.state[j] = l
iter.invState[l] = j
j++
}
iter.state[k] = k
iter.invState[k] = k
}
return false
}
//RestrictedPrefixPermutationIterator iterates over all permutations a_1 a_2 ... a_n of {0, ..., n-1} which pass the tests f([]int{a_1}), f([]int{a_1,a_2}) ... f([]int{a_1,...,a_n}).
//It iterates over the allowed permutations in lexicographic order.
type RestrictedPrefixPermutationIterator struct {
n int
a []int
f func([]int) bool
l []int
u []int
}
//RestrictedPrefixPermutations returns an iterator which iterates over all permutations a_1 a_2 ... a_n of {0, ..., n-1} which pass the tests f([]int{a_1}), f([]int{a_1,a_2}) ... f([]int{a_1,...,a_n}).
//It iterates over the allowed permutations in lexicographic order.
func RestrictedPrefixPermutations(n int, f func([]int) bool) *RestrictedPrefixPermutationIterator {
//We won't initialise a so we can use it as an indicator that we are in the first call of Next().
l := make([]int, n+1)
for i := 0; i < n; i++ {
l[i] = i + 1
}
l[n] = 0
u := make([]int, n)
return &RestrictedPrefixPermutationIterator{n: n, a: nil, f: f, l: l, u: u}
}
//Next attempts to advance the iterator to the next allowed permutation, returning true if there is one and false otherwise.
func (iter *RestrictedPrefixPermutationIterator) Next() bool {
//This is a copy of Algorithm X in 7.2.1.2 in Art of Computer Programming, Volume 4a.
//The flow control is quite complicated so removing the goto statements is a lot of work and would end up duplicating a lot of logic. This is only compounded by needing two entry points, one for the first call of Next() and one for every other call.
n := iter.n
k := n - 1
p := 0
q := 0
//Initialise
if iter.a == nil {
//The first call of Next()
iter.a = make([]int, n)
k = 0
if n == 0 {
return true
}
} else {
//Not the first call so the last thing we did was visit a permutation.
goto x6
}
x2:
p = n
q = iter.l[n]
x3:
iter.a[k] = q
if !iter.f(iter.a[:k+1]) {
goto x5
}
if k == n-1 {
return true
}
iter.u[k] = p
iter.l[p] = iter.l[q]
k++
goto x2
x5:
p = q
q = iter.l[p]
if q != n {
goto x3
}
x6:
k--
if k < 0 {
return false
}
p = iter.u[k]
q = iter.a[k]
iter.l[p] = q
goto x5
}
//Value returns the current permutation.
//You must not modify the value.
func (iter *RestrictedPrefixPermutationIterator) Value() []int {
return iter.a
}
//PermutationsByPatternIterator holds the state for an iterator which iterates over all permutations which pass a test function at every step.
type PermutationsByPatternIterator struct {
n int
a []int
f func([]int) bool
first bool
}
//PermutationsByPattern iterates over all permutations of {0, 1, ..., n -1} which pass the test function f at every step. The iterator starts with the empty permutation. It then does a DFS where the children of a permutation P of length l < n are the permutations of length l + 1 formed by appending a number x in {0, ..., l} and increasing by 1 every entry of P which is at least x. The function f is called at each node of the DFS and the iterator will prune the children of a node v if f(v) is false.
func PermutationsByPattern(n int, f func([]int) bool) *PermutationsByPatternIterator {
return &PermutationsByPatternIterator{n: n, a: nil, f: f}
}
//Value returns the current permutation.
//You must not modify the returned value.
func (iter *PermutationsByPatternIterator) Value() []int {
return iter.a
}
//Next attempts to move to the next valid permutation, returning true if one exists and false otherwise.
func (iter *PermutationsByPatternIterator) Next() bool {
//Initialise
if iter.a == nil || iter.first {
//The first call of Next()
iter.first = false
iter.a = make([]int, 0, iter.n)
if iter.n == 0 {
return true
}
} else {
//Not the first call so the last thing we did was visit a permutation.
goto x3
}
//Extend
x1:
iter.a = append(iter.a, len(iter.a))
//Test
x2:
if iter.f(iter.a) {
//Success
if len(iter.a) == iter.n {
return true
}
goto x1
}
//Test has failed so we need to increase the state.
x3:
if len(iter.a) == 0 {
return false
}
x := iter.a[len(iter.a)-1]
if x == 0 {
iter.a = iter.a[:len(iter.a)-1]
for i := range iter.a {
if iter.a[i] > x {
iter.a[i]--
}
}
goto x3
}
for i := range iter.a {
if iter.a[i] == x-1 {
iter.a[i]++
break
}
}
iter.a[len(iter.a)-1]--
goto x2
} | itertools/permutations.go | 0.76207 | 0.483587 | permutations.go | starcoder |
Package pkg provides libraries for building Controllers. Controllers implement Kubernetes APIs
and are foundational to building Operators, Workload APIs, Configuration APIs, Autoscalers, and more.
Client
Client provides a Read + Write client for reading and writing Kubernetes objects.
Cache
Cache provides a Read client for reading objects from a local cache.
A cache may register handlers to respond to events that update the cache.
Manager
Manager is required for creating a Controller and provides the Controller shared dependencies such as
clients, caches, schemes, etc. Controllers should be Started through the Manager by calling Manager.Start.
Controller
Controller implements a Kubernetes API by responding to events (object Create, Update, Delete) and ensuring that
the state specified in the Spec of the object matches the state of the system. This is called a Reconciler.
If they do not match, the Controller will create / update / delete objects as needed to make them match.
Controllers are implemented as worker queues that process reconcile.Requests (requests to Reconciler the
state for a specific object).
Unlike http handlers, Controllers DO NOT handle events directly, but enqueue Requests to eventually Reconciler
the object. This means the handling of multiple events may be batched together and the full state of the
system must be read for each Reconciler.
* Controllers require a Reconciler to be provided to perform the work pulled from the work queue.
* Controller require Watches to be configured to enqueue reconcile.Requests in response to events.
Reconciler
Reconciler is a function provided to a Controller that may be called at anytime with the Name and Namespace of an object.
When called, Reconciler will ensure that the state of the system matches what is specified in the object at the
time Reconciler is called.
Example: Reconciler invoked for a ReplicaSet object. The ReplicaSet specifies 5 replicas but only
3 Pods exist in the system. Reconciler creates 2 more Pods and sets their OwnerReference to point at the
ReplicaSet with controller=true.
* Reconciler contains all of the business logic of a Controller.
* Reconciler typically works on a single object type. - e.g. it will only reconcile ReplicaSets. For separate
types use separate Controllers.
* Reconciler is provided the Name / Namespace of the object to reconcile.
* Reconciler does not care about the event contents or event type responsible for triggering the Reconciler.
- e.g. it doesn't matter whether a ReplicaSet was created or updated, Reconciler will always compare the number of
Pods in the system against what is specified in the object at the time it is called.
Source
resource.Source is an argument to Controller.Watch that provides a stream of events.
Events typically come from watching Kubernetes APIs (e.g. Pod Create, Update, Delete).
Example: source.Kind uses the Kubernetes API Watch endpoint for a GroupVersionKind to provide
Create, Update, Delete events.
* Source provides a stream of events (e.g. object Create, Update, Delete) for Kubernetes objects typically
through the Watch API.
* Users SHOULD only use the provided Source implementations instead of implementing their own for nearly all cases.
EventHandler
handler.EventHandler is a argument to Controller.Watch that enqueues reconcile.Requests in response to events.
Example: a Pod Create event from a Source is provided to the eventhandler.EnqueueHandler, which enqueues a
reconcile.Request containing the name / Namespace of the Pod.
* EventHandlers handle events by enqueueing reconcile.Requests for one or more objects.
* EventHandlers MAY map an event for an object to a reconcile.Request for an object of the same type.
* EventHandlers MAY map an event for an object to a reconcile.Request for an object of a different type - e.g.
map a Pod event to a reconcile.Request for the owning ReplicaSet.
* EventHandlers MAY map an event for an object to multiple reconcile.Requests for objects of the same or a different
type - e.g. map a Node event to objects that respond to cluster resize events.
* Users SHOULD only use the provided EventHandler implementations instead of implementing their own for almost
all cases.
Predicate
predicate.Predicate is an optional argument to Controller.Watch that filters events. This allows common filters to be
reused and composed.
* Predicate takes and event and returns a bool (true to enqueue)
* Predicates are optional arguments
* Users SHOULD use the provided Predicate implementations, but MAY implement additional Predicates.
PodController Diagram
Source provides event:
* &source.KindSource{&v1.Pod{}} -> (Pod foo/bar Create Event)
EventHandler enqueues Request:
* &handler.EnqueueRequestForObject{} -> (reconcile.Request{types.NamespaceName{Name: "foo", Namespace: "bar"}})
Reconciler is called with the Request:
* Reconciler(reconcile.Request{types.NamespaceName{Name: "foo", Namespace: "bar"}})
Usage
The following example shows creating a new Controller program which Reconciles ReplicaSet objects in response
to Pod or ReplicaSet events. The Reconciler function simply adds a label to the ReplicaSet.
See the example/main.go for a usage example.
Controller Example
1. Watch ReplicaSet and Pods Sources
1.1 ReplicaSet -> handler.EnqueueRequestForObject - enqueue a Request with the ReplicaSet Namespace and Name.
1.2 Pod (created by ReplicaSet) -> handler.EnqueueRequestForOwnerHandler - enqueue a Request with the
Owning ReplicaSet Namespace and Name.
2. Reconciler ReplicaSet in response to an event
2.1 ReplicaSet object created -> Read ReplicaSet, try to read Pods -> if is missing create Pods.
2.2 Reconciler triggered by creation of Pods -> Read ReplicaSet and Pods, do nothing.
2.3 Reconciler triggered by deletion of Pods from some other actor -> Read ReplicaSet and Pods, create replacement Pods.
Watching and EventHandling
Controllers may Watch multiple Kinds of objects (e.g. Pods, ReplicaSets and Deployments), but they Reconciler
only a single Type. When one Type of object must be be updated in response to changes in another Type of object,
an EnqueueRequestFromMapFunc may be used to map events from one type to another. e.g. Respond to a cluster resize
event (add / delete Node) by re-reconciling all instances of some API.
A Deployment Controller might use an EnqueueRequestForObject and EnqueueRequestForOwner to:
* Watch for Deployment Events - enqueue the Namespace and Name of the Deployment.
* Watch for ReplicaSet Events - enqueue the Namespace and Name of the Deployment that created the ReplicaSet
(e.g the Owner)
Note: reconcile.Requests are deduplicated when they are enqueued. Many Pod Events for the same ReplicaSet
may trigger only 1 reconcile invocation as each Event results in the Handler trying to enqueue
the same reconcile.Request for the ReplicaSet.
Controller Writing Tips
Reconciler Runtime Complexity:
* It is better to write Controllers to perform an O(1) Reconciler N times (e.g. on N different objects) instead of
performing an O(N) Reconciler 1 time (e.g. on a single object which manages N other objects).
* Example: If you need to update all Services in response to a Node being added - Reconciler Services but Watch
Nodes (transformed to Service object name / Namespaces) instead of Reconciling Nodes and updating Services
Event Multiplexing:
* reconcile.Requests for the same Name / Namespace are batched and deduplicated when they are enqueued. This allows
Controllers to gracefully handle a high volume of events for a single object. Multiplexing multiple event Sources to
a single object Type will batch requests across events for different object types.
* Example: Pod events for a ReplicaSet are transformed to a ReplicaSet Name / Namespace, so the ReplicaSet
will be Reconciled only 1 time for multiple events from multiple Pods.
*/
package pkg | pkg/doc.go | 0.791176 | 0.651182 | doc.go | starcoder |
package bloomtree
import (
"crypto/sha512"
"errors"
"fmt"
"math"
"sort"
"github.com/willf/bitset"
)
// BloomFilter interface. Requires two methods:
// The BitArray method - returns the bloom filter as a bit array.
// The Proof method - If the element is in the bloom filter, it returns:
// indices, true (where "indices" is an integer array of the indices of the element in the bloom filter).
// If the element is not in the bloom filter, it returns:
// index, false (where "index" is one of the element indices that have a zero value in the bloom filter).
const maxK = uint8(255)
type BloomFilter interface {
Proof([]byte) ([]uint64, bool)
BitArray() *bitset.BitSet
MapElementToBF([]byte, []byte) []uint
NumOfHashes() uint
GetElementIndices([]byte) []uint
}
// BloomTree represents the bloom tree struct.
type BloomTree struct {
bf BloomFilter
nodes [][32]byte
}
// NewBloomTree creates a new bloom tree.
func NewBloomTree(b BloomFilter) (*BloomTree, error) {
if b.NumOfHashes() >= uint(maxK) {
return nil, fmt.Errorf("parameter k of the bloom filter must be smaller than %d", maxK)
}
bf := b.BitArray()
bfAsInt := bf.Bytes()
if len(bfAsInt) == 0 {
return nil, errors.New("tree must have at least 1 leaf")
}
leafs := make([][sha512.Size256]byte, int(math.Ceil(float64(len(bfAsInt))/float64(chunkSize/64))))
hashLeafs(bfAsInt, leafs)
leafNum := int(math.Exp2(math.Ceil(math.Log2(float64(len(leafs))))))
nodes := make([][32]byte, (leafNum*2)-1)
for i, v := range leafs {
nodes[i] = v
}
for i := len(leafs); i < leafNum; i++ {
nodes[i] = hashLeaf(uint64(0), uint64(i))
}
for i := leafNum; i < len(nodes); i++ {
nodes[i] = hashChild(nodes[2*(i-leafNum)], nodes[2*(i-leafNum)+1])
}
return &BloomTree{
bf: b,
nodes: nodes,
}, nil
}
func (bt *BloomTree) GetBloomFilter() BloomFilter {
return bt.bf
}
func order(a, b uint64) (uint64, uint64) {
if a > b {
return b, a
}
return a, b
}
func (bt *BloomTree) generateProof(indices []uint64) ([][32]byte, error) {
var hashes [][32]byte
var hashIndices []uint64
var hashIndicesBucket []int
var newIndices []uint64
prevIndices := indices
indMap := make(map[[2]uint64][2]int)
leavesPerLayer := uint64(len(bt.nodes) + 1)
currentLayer := uint64(0)
height := int(math.Log2(float64(len(bt.nodes) / 2)))
for i := 0; i <= height; i++ {
if len(newIndices) != 0 {
for j := 0; j < len(newIndices); j += 2 {
prevIndices = append(prevIndices, newIndices[j]/2)
}
newIndices = nil
}
for _, val := range prevIndices {
neighbor := val ^ 1
a, b := order(val, neighbor)
pair := [2]uint64{a, b}
if _, ok := indMap[pair]; ok {
if indMap[pair][0] != int(val) {
indMap[pair] = [2]int{-1, 0}
}
} else {
indMap[pair] = [2]int{int(val), int(neighbor + currentLayer)}
}
}
for k, v := range indMap {
if v[0] != -1 {
hashIndicesBucket = append(hashIndicesBucket, v[1])
}
newIndices = append(newIndices, k[0], k[1])
}
sort.Ints(hashIndicesBucket)
for _, elem := range hashIndicesBucket {
hashIndices = append(hashIndices, uint64(elem))
}
indMap = make(map[[2]uint64][2]int)
hashIndicesBucket = nil
leavesPerLayer /= 2
currentLayer += leavesPerLayer
prevIndices = nil
}
for _, hashInd := range hashIndices {
hashes = append(hashes, bt.nodes[hashInd])
}
return hashes, nil
}
func (bt *BloomTree) getChunksAndIndices(indices []uint64) ([][32]byte, []uint64) {
chunks := make([][32]byte, len(indices))
chunkIndices := make([]uint64, len(indices))
bf := bt.bf.BitArray()
bfAsInt := bf.Bytes()
leafs := make([][sha512.Size256]byte, int(math.Ceil(float64(len(bfAsInt))/float64(chunkSize/64))))
hashLeafs(bfAsInt, leafs)
for i, v := range indices {
index := uint64(math.Floor(float64(v) / float64(chunkSize)))
chunks[i] = leafs[index]
chunkIndices[i] = index
}
return chunks, chunkIndices
}
// GenerateCompactMultiProof returns a compact multiproof to verify the presence, or absence of an element in a bloom tree.
func (bt *BloomTree) GenerateCompactMultiProof(elem []byte) (*CompactMultiProof, error) {
var proofType uint8
indices, present := bt.bf.Proof(elem)
sort.Slice(indices, func(i, j int) bool { return indices[i] < indices[j] })
chunks, chunkIndices := bt.getChunksAndIndices(indices)
proof, err := bt.generateProof(chunkIndices)
if err != nil {
return newCompactMultiProof(nil, nil, maxK), err
}
if present {
return newCompactMultiProof(chunks, proof, maxK), nil
}
allIndices := bt.bf.GetElementIndices(elem)
for i, v := range allIndices {
if indices[0] == uint64(v) {
proofType = uint8(i)
}
}
return newCompactMultiProof(chunks, proof, proofType), nil
}
// Root returns the Bloom Tree root
func (bt *BloomTree) Root() [32]byte {
return bt.nodes[len(bt.nodes)-1]
}
func hashLeafs(leaf []uint64, hashes [][sha512.Size256]byte) {
step := uint64(chunkSize / 64)
index := uint64(0)
length := uint64(len(leaf))
for i := uint64(0); i < length; i += step {
diff := step
if length-i < step {
diff = length - i
}
hashes[index] = hashLeaf(index, leaf[i:i+diff]...)
index = index + 1
}
} | bloomTree.go | 0.665954 | 0.481698 | bloomTree.go | starcoder |
package pkg
import (
"fmt"
"reflect"
"time"
)
// EvaluateMultiplication will evaluate multiplication operation over two value
func EvaluateMultiplication(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv * rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv * int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) * rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not multiply data type of %s", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) * rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv * rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) * rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not multiply data type of %s", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv * float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv * float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv * rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not multiply data type of %s", right.Kind().String())
}
default:
return reflect.ValueOf(nil), fmt.Errorf("can not multiply data type of %s", left.Kind().String())
}
}
// EvaluateDivision will evaluate division operation over two value
func EvaluateDivision(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(float64(lv) / float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(float64(lv) / float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) / rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in division", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(float64(lv) / float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(float64(lv) / float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) / rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in division", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv / float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv / float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv / rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in division", right.Kind().String())
}
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in division", left.Kind().String())
}
}
// EvaluateModulo will evaluate modulo operation over two value
func EvaluateModulo(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv % rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv % int64(rv)), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in modulo", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) % rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(int64(lv) % int64(rv)), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in modulo", right.Kind().String())
}
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in modulo", left.Kind().String())
}
}
// EvaluateAddition will evaluate addition operation over two value
func EvaluateAddition(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.String:
lv := left.String()
switch right.Kind() {
case reflect.String:
rv := right.String()
return reflect.ValueOf(fmt.Sprintf("%s%s", lv, rv)), nil
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(fmt.Sprintf("%s%d", lv, rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(fmt.Sprintf("%s%d", lv, rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(fmt.Sprintf("%s%f", lv, rv)), nil
case reflect.Bool:
rv := right.Bool()
return reflect.ValueOf(fmt.Sprintf("%s%v", lv, rv)), nil
default:
if right.Type().String() == "time.Time" {
rv := right.Interface().(time.Time)
return reflect.ValueOf(fmt.Sprintf("%s%s", lv, rv.Format(time.RFC3339))), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in addition", right.Kind().String())
}
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.String:
rv := right.String()
return reflect.ValueOf(fmt.Sprintf("%d%s", lv, rv)), nil
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv + rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv + int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) + rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in addition", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.String:
rv := right.String()
return reflect.ValueOf(fmt.Sprintf("%d%s", lv, rv)), nil
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) + rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv + rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) + rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in division", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.String:
rv := right.String()
return reflect.ValueOf(fmt.Sprintf("%f%s", lv, rv)), nil
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv + float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv + float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv + rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in division", right.Kind().String())
}
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in division", left.Kind().String())
}
}
// EvaluateSubtraction will evaluate subtraction operation over two value
func EvaluateSubtraction(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv - rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv - int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) - rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in subtraction", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) - rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv - rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) - rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in subtraction", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv - float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv - float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv - rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in subtraction", right.Kind().String())
}
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in subtraction", left.Kind().String())
}
}
// EvaluateBitAnd will evaluate Bitwise And operation over two value
func EvaluateBitAnd(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv & rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv & int64(rv)), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in bitwise AND operation", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) & rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv & rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in bitwise AND operation", right.Kind().String())
}
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in bitwise AND operation", left.Kind().String())
}
}
// EvaluateBitOr will evaluate Bitwise Or operation over two value
func EvaluateBitOr(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv | rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv | int64(rv)), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in bitwise OR operation", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) | rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv | rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in bitwise OR operation", right.Kind().String())
}
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in bitwise OR operation", left.Kind().String())
}
}
// EvaluateGreaterThan will evaluate GreaterThan operation over two value
func EvaluateGreaterThan(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv > rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv > int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) > rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GT comparison", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) > rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv > rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) > rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GT comparison", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv > float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv > float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv > rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GT comparison", right.Kind().String())
}
default:
if left.Type().String() == "time.Time" && right.Type().String() == "time.Time" {
lv := left.Interface().(time.Time)
rv := right.Interface().(time.Time)
return reflect.ValueOf(lv.After(rv)), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GT comparison", left.Kind().String())
}
}
// EvaluateLesserThan will evaluate LesserThan operation over two value
func EvaluateLesserThan(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv < rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv < int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) < rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LT comparison", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) < rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv < rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) < rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LT comparison", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv < float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv < float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv < rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LT comparison", right.Kind().String())
}
default:
if left.Type().String() == "time.Time" && right.Type().String() == "time.Time" {
lv := left.Interface().(time.Time)
rv := right.Interface().(time.Time)
return reflect.ValueOf(lv.Before(rv)), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LT comparison", left.Kind().String())
}
}
// EvaluateGreaterThanEqual will evaluate GreaterThanEqual operation over two value
func EvaluateGreaterThanEqual(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv >= rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv >= int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) >= rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GTE comparison", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) >= rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv >= rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) >= rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GTE comparison", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv >= float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv >= float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv >= rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GTE comparison", right.Kind().String())
}
default:
if left.Type().String() == "time.Time" && right.Type().String() == "time.Time" {
lv := left.Interface().(time.Time)
rv := right.Interface().(time.Time)
return reflect.ValueOf(lv.After(rv) || lv == rv), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in GTE comparison", left.Kind().String())
}
}
// EvaluateLesserThanEqual will evaluate LesserThanEqual operation over two value
func EvaluateLesserThanEqual(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv <= rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv <= int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) <= rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LTE comparison", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) <= rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv <= rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) <= rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LTE comparison", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv <= float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv <= float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv <= rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LTE comparison", right.Kind().String())
}
default:
if left.Type().String() == "time.Time" && right.Type().String() == "time.Time" {
lv := left.Interface().(time.Time)
rv := right.Interface().(time.Time)
return reflect.ValueOf(lv.Before(rv) || lv == rv), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in LTE comparison", left.Kind().String())
}
}
// EvaluateEqual will evaluate Equal operation over two value
func EvaluateEqual(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.String:
lv := left.String()
if right.Kind() == reflect.String {
rv := right.String()
return reflect.ValueOf(lv == rv), nil
}
return reflect.ValueOf(false), nil
case reflect.Bool:
lv := left.Bool()
if right.Kind() == reflect.Bool {
rv := right.Bool()
return reflect.ValueOf(lv == rv), nil
}
return reflect.ValueOf(false), nil
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv == rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv == int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) == rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) == rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv == rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) == rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv == float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv == float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv == rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", right.Kind().String())
}
default:
if left.Type().String() == "time.Time" && right.Type().String() == "time.Time" {
lv := left.Interface().(time.Time)
rv := right.Interface().(time.Time)
return reflect.ValueOf(lv == rv), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", left.Kind().String())
}
}
// EvaluateNotEqual will evaluate NotEqual operation over two value
func EvaluateNotEqual(left, right reflect.Value) (reflect.Value, error) {
switch left.Kind() {
case reflect.String:
lv := left.String()
if right.Kind() == reflect.String {
rv := right.String()
return reflect.ValueOf(lv != rv), nil
}
return reflect.ValueOf(false), nil
case reflect.Bool:
lv := left.Bool()
if right.Kind() == reflect.Bool {
rv := right.Bool()
return reflect.ValueOf(lv != rv), nil
}
return reflect.ValueOf(false), nil
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
lv := left.Int()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv != rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv != int64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) != rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", right.Kind().String())
}
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
lv := left.Uint()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(int64(lv) != rv), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv != rv), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(float64(lv) != rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", right.Kind().String())
}
case reflect.Float32, reflect.Float64:
lv := left.Float()
switch right.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
rv := right.Int()
return reflect.ValueOf(lv != float64(rv)), nil
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
rv := right.Uint()
return reflect.ValueOf(lv != float64(rv)), nil
case reflect.Float32, reflect.Float64:
rv := right.Float()
return reflect.ValueOf(lv != rv), nil
default:
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", right.Kind().String())
}
default:
if left.Type().String() == "time.Time" && right.Type().String() == "time.Time" {
lv := left.Interface().(time.Time)
rv := right.Interface().(time.Time)
return reflect.ValueOf(lv != rv), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in EQ comparison", left.Kind().String())
}
}
// EvaluateLogicAnd will evaluate LogicalAnd operation over two value
func EvaluateLogicAnd(left, right reflect.Value) (reflect.Value, error) {
if left.Kind() == reflect.Bool && right.Kind() == reflect.Bool {
lv := left.Bool()
rv := right.Bool()
return reflect.ValueOf(lv && rv), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in Logical AND comparison", left.Kind().String())
}
// EvaluateLogicOr will evaluate LogicalOr operation over two value
func EvaluateLogicOr(left, right reflect.Value) (reflect.Value, error) {
if left.Kind() == reflect.Bool && right.Kind() == reflect.Bool {
lv := left.Bool()
rv := right.Bool()
return reflect.ValueOf(lv || rv), nil
}
return reflect.ValueOf(nil), fmt.Errorf("can not use data type of %s in Logical OR comparison", left.Kind().String())
} | pkg/reflectmath.go | 0.718792 | 0.701847 | reflectmath.go | starcoder |
// Package view provides a simple API for formatting dates as strings in a manner that is easy to use in view-models,
// especially when using Go templates.
package view
import (
"github.com/simplylizz/date"
)
const (
// DMYFormat is a typical British representation.
DMYFormat = "02/01/2006"
// MDYFormat is a typical American representation.
MDYFormat = "01/02/2006"
// ISOFormat is ISO-8601 YYYY-MM-DD.
ISOFormat = "2006-02-01"
// DefaultFormat is used by Format() unless a different format is set.
DefaultFormat = DMYFormat
)
// A VDate holds a Date and provides easy ways to render it, e.g. in Go templates.
type VDate struct {
d date.Date
f string
}
// NewVDate wraps a Date.
func NewVDate(d date.Date) VDate {
return VDate{d, DefaultFormat}
}
// Date returns the underlying date.
func (v VDate) Date() date.Date {
return v.d
}
// IsYesterday returns true if the date is yesterday's date.
func (v VDate) IsYesterday() bool {
return v.d.DaysSinceEpoch()+1 == date.Today().DaysSinceEpoch()
}
// IsToday returns true if the date is today's date.
func (v VDate) IsToday() bool {
return v.d.DaysSinceEpoch() == date.Today().DaysSinceEpoch()
}
// IsTomorrow returns true if the date is tomorrow's date.
func (v VDate) IsTomorrow() bool {
return v.d.DaysSinceEpoch()-1 == date.Today().DaysSinceEpoch()
}
// IsOdd returns true if the date is an odd number. This is useful for
// zebra striping etc.
func (v VDate) IsOdd() bool {
return v.d.DaysSinceEpoch()%2 == 0
}
// String formats the date in basic ISO8601 format YYYY-MM-DD.
func (v VDate) String() string {
if v.d.IsZero() {
return ""
}
return v.d.String()
}
// WithFormat creates a new instance containing the specified format string.
func (v VDate) WithFormat(f string) VDate {
return VDate{v.d, f}
}
// Format formats the date using the specified format string, or "02/01/2006" by default.
// Use WithFormat to set this up.
func (v VDate) Format() string {
return v.d.Format(v.f)
}
// Mon returns the day name as three letters.
func (v VDate) Mon() string {
return v.d.Format("Mon")
}
// Monday returns the full day name.
func (v VDate) Monday() string {
return v.d.Format("Monday")
}
// Day2 returns the day number without a leading zero.
func (v VDate) Day2() string {
return v.d.Format("2")
}
// Day02 returns the day number with a leading zero if necessary.
func (v VDate) Day02() string {
return v.d.Format("02")
}
// Day2nd returns the day number without a leading zero but with the appropriate
// "st", "nd", "rd", "th" suffix.
func (v VDate) Day2nd() string {
return v.d.Format("2nd")
}
// Month1 returns the month number without a leading zero.
func (v VDate) Month1() string {
return v.d.Format("1")
}
// Month01 returns the month number with a leading zero if necessary.
func (v VDate) Month01() string {
return v.d.Format("01")
}
// Jan returns the month name abbreviated to three letters.
func (v VDate) Jan() string {
return v.d.Format("Jan")
}
// January returns the full month name.
func (v VDate) January() string {
return v.d.Format("January")
}
// Year returns the four-digit year.
func (v VDate) Year() string {
return v.d.Format("2006")
}
// Next returns a fluent generator for later dates.
func (v VDate) Next() VDateDelta {
return VDateDelta{v.d, v.f, 1}
}
// Previous returns a fluent generator for earlier dates.
func (v VDate) Previous() VDateDelta {
return VDateDelta{v.d, v.f, -1}
}
//-------------------------------------------------------------------------------------------------
// Only lossy transcoding is supported here because the intention is that data exchange should be
// via the main Date type; VDate is only intended for output through view layers.
// MarshalText implements the encoding.TextMarshaler interface.
func (v VDate) MarshalText() ([]byte, error) {
return v.d.MarshalText()
}
// UnmarshalText implements the encoding.TextUnmarshaler interface.
// Note that the format value gets lost.
func (v *VDate) UnmarshalText(data []byte) (err error) {
u := &date.Date{}
err = u.UnmarshalText(data)
if err == nil {
v.d = *u
v.f = DefaultFormat
}
return err
}
//-------------------------------------------------------------------------------------------------
// VDateDelta is a VDate with the ability to add or subtract days, weeks, months or years.
type VDateDelta struct {
d date.Date
f string
sign date.PeriodOfDays
}
// Day adds or subtracts one day.
func (dd VDateDelta) Day() VDate {
return VDate{dd.d.Add(dd.sign), dd.f}
}
// Week adds or subtracts one week.
func (dd VDateDelta) Week() VDate {
return VDate{dd.d.Add(dd.sign * 7), dd.f}
}
// Month adds or subtracts one month.
func (dd VDateDelta) Month() VDate {
return VDate{dd.d.AddDate(0, int(dd.sign), 0), dd.f}
}
// Year adds or subtracts one year.
func (dd VDateDelta) Year() VDate {
return VDate{dd.d.AddDate(int(dd.sign), 0, 0), dd.f}
} | view/vdate.go | 0.872497 | 0.595757 | vdate.go | starcoder |
package main
import (
"container/heap"
"sort"
)
// Any is anything
type Any = interface{}
// HuffmanNode a node in a Huffman tree.
type HuffmanNode struct {
// left points to the left HuffmanNode.
left *HuffmanNode
// right points to the right HuffmanNode.
right *HuffmanNode
// token stored by a node.
// If the node is internal, then the token is rune(0), representing '\0'.
// Or else the token is a particular token in the document.
token rune
// count is the number of times the token is present in the document
count int
}
// hasLeft shows if the node has a left child.
func (hn HuffmanNode) hasLeft() bool { return hn.left != nil }
// hasRight shows if the node has a right child.
func (hn HuffmanNode) hasRight() bool { return hn.right != nil }
// ValidToken shows if a token is valid for non-package level access.
func (hn HuffmanNode) ValidToken() bool { return hn.token != rune(0) }
// Token represented by the HuffmanNode. The field is not modified ever after the creation of the huffman node.
func (hn HuffmanNode) Token() rune { return hn.token }
// Count is the number of times a rune is present in the document.
// If the token is a `ValidToken`, the count is not modified after the creation of the huffman node.
func (hn HuffmanNode) Count() int { return hn.count }
// HuffmanTree is a pointer to the root HuffmanNode of the tree.
// HuffmanTree cannot be a newtype because if it is, the spec (in the following line)
// https://golang.org/ref/spec#Method_declarations
// says that it you can't define methods on it.
// https://groups.google.com/g/golang-nuts/c/qf76N-uDcHA/m/DTCDNgaF_p4J
type HuffmanTree = *HuffmanNode
// MakeHuffmanTree creates a new HuffmanTree from a string.
func MakeHuffmanTree(content string) HuffmanTree {
// wordCount is a multiset.
wordCount := make(map[rune]int)
for _, char := range content {
// If key doesn't exist, the map defaults to returning 0.
wordCount[char]++
}
list := MakeHuffmanList(0)
for word, count := range wordCount {
list.Append(HuffmanNode{left: nil, right: nil, token: word, count: count})
}
heap.Init(&list)
for i := list.Len() - 1; i > 0; i-- {
// Retrieve the smallest (in `count`) two nodes.
first := heap.Pop(&list).(HuffmanNode)
second := heap.Pop(&list).(HuffmanNode)
// Every parent having `count` the sum of its children's `count`s.
// will ensure that the node of a tree would be the sum of its leaves.
merged := HuffmanNode{
left: &first,
right: &second,
token: rune(0),
count: first.count + second.count,
}
heap.Push(&list, merged)
}
// After n-1 merges there would only be one element left in the list.
if list.Len() != 1 {
panic("unreachable")
}
return HuffmanTree(&list[0])
}
// Huffman generates huffman codes by recursively appending '0' or '1' to the huffman node's code.
func (ht HuffmanTree) Huffman() map[string]string {
// The root node's path == "".
dict := make(map[string]string)
ht.genByPath(dict, "")
return dict
}
// genByPath generates the huffman codes for an existing HuffmanTree.
func (ht HuffmanTree) genByPath(dict map[string]string, path string) {
// Tokens will only be present in the leaf nodes
if ht.ValidToken() {
token := string(ht.token)
dict[token] = path
}
// A node is named by following the path from the root to it.
// Every left visit (visit left child) a '0' is appended to the code.
// Every right visit (visit right child) a '1' is appended to the code.
if ht.hasLeft() {
ht.left.genByPath(dict, path+"0")
}
if ht.hasRight() {
ht.right.genByPath(dict, path+"1")
}
}
// Huffman takes in a document string and compute the huffman codes into a `map[string]string`.
func Huffman(content string) map[string]string {
ht := MakeHuffmanTree(content)
return ht.Huffman()
}
// HuffmanList is used for building up the HuffmanTree.
type HuffmanList []HuffmanNode
// HuffmanList is compliant with `sort.Interface`.
var _ sort.Interface = HuffmanList{}
// *HuffmanList is compliant with `sort.Interface`.
var _ sort.Interface = (*HuffmanList)(nil)
// *HuffmanList is compliant with `heap.Interface`.
var _ heap.Interface = (*HuffmanList)(nil)
// MakeHuffmanList creates a new HuffmanList with given length.
func MakeHuffmanList(length int) HuffmanList { return make(HuffmanList, length) }
// Append adds a new HuffmanNode to HuffmanList.
func (hl *HuffmanList) Append(node HuffmanNode) { *hl = append(*hl, node) }
// Index returns the value of HuffmanList at a certain index.
func (hl HuffmanList) Index(idx int) HuffmanNode { return hl[idx] }
// The following functions Len, Less, Swap are defined on HuffmanList,
// but if an interface requires these three methods,
// both HuffmanList and *HuffmanList implement the interface.
// https://golangbyexample.com/pointer-vs-value-receiver-method-golang/
// End result is: sort package can use both HuffmanList and *HuffmanList,
// and heap package can only use *HuffmanList.
// Len shows the length of the list. It is defined for sort, heap package.
func (hl HuffmanList) Len() int { return len(hl) }
// Less compares two nodes based on `Count()`. It is defined for sort, heap package.
func (hl HuffmanList) Less(i, j int) bool { return hl[i].count < hl[j].count }
// Swap swaps two elements. It is defined for sort, heap package.
func (hl HuffmanList) Swap(i, j int) { hl[i], hl[j] = hl[j], hl[i] }
// Push adds an element to the tail of a list. It is defined for heap package.
func (hl *HuffmanList) Push(elem Any) {
hl.Append(elem.(HuffmanNode))
}
// Pop pops the last element from a list. It is defined for heap package.
func (hl *HuffmanList) Pop() (elem Any) {
list := *hl
last := len(list) - 1
// Takes out the last element and shorten existing list.
*hl, elem = list[:last], list[last]
return
} | huffman.go | 0.664976 | 0.443179 | huffman.go | starcoder |
package schedule
import (
"errors"
"fmt"
"math"
"strconv"
"strings"
"time"
)
type TimeUnit int
const timefmt = "2006-01-02 15:04:05"
const (
Minute TimeUnit = iota
Hour
Day
Week
Month
Year
)
var nilTime time.Time
var tuLookup = map[string]TimeUnit{
"Minute": Minute,
"Hour": Hour,
"Day": Day,
"Week": Week,
"Month": Month,
"Year": Year,
}
func (tu TimeUnit) String() string {
switch tu {
case Minute:
return "Minute"
case Hour:
return "Hour"
case Day:
return "Day"
case Week:
return "Week"
case Month:
return "Month"
case Year:
return "Year"
default:
return "(Unknown TimeUnit)"
}
}
func (tu TimeUnit) minApprox() time.Duration {
const (
maMinute = time.Minute
maHour = time.Hour
maDay = 24*time.Hour - time.Second
maWeek = 7 * maDay
maMonth = 28 * maDay
maYear = 365 * maDay
)
switch tu {
case Minute:
return maMinute
case Hour:
return maHour
case Day:
return maDay
case Week:
return maWeek
case Month:
return maMonth
case Year:
return maYear
default:
return 0
}
}
func (tu TimeUnit) maxApprox() time.Duration {
const (
maMinute = time.Minute
maHour = time.Hour
maDay = 24*time.Hour + time.Second
maWeek = 7 * maDay
maMonth = 31 * maDay
maYear = 366 * maDay
)
switch tu {
case Minute:
return maMinute
case Hour:
return maHour
case Day:
return maDay
case Week:
return maWeek
case Month:
return maMonth
case Year:
return maYear
default:
return 0
}
}
type Frequency struct {
Unit TimeUnit
Count uint
}
func (f Frequency) String() string {
return fmt.Sprintf("%d %s", f.Count, f.Unit)
}
func (f Frequency) addTo(t time.Time, mul uint) time.Time {
sec := t.Second()
min := t.Minute()
hour := t.Hour()
day := t.Day()
month := t.Month()
year := t.Year()
loc := t.Location()
fq := int(f.Count * mul)
switch f.Unit {
case Minute:
return t.Add(time.Minute * time.Duration(fq))
case Hour:
return t.Add(time.Hour * time.Duration(fq))
case Day:
return time.Date(year, month, day+fq, hour, min, sec, 0, loc)
case Week:
return time.Date(year, month, day+fq*7, hour, min, sec, 0, loc)
case Month:
return time.Date(year, month+time.Month(fq), day, hour, min, sec, 0, loc)
case Year:
return time.Date(year+fq, month, day, hour, min, sec, 0, loc)
default:
return nilTime
}
}
func (f Frequency) minApprox() time.Duration { return time.Duration(f.Count) * f.Unit.minApprox() }
func (f Frequency) maxApprox() time.Duration { return time.Duration(f.Count) * f.Unit.maxApprox() }
// Schedule describes a time schedule. It has a start and optional end point and an optional frequency.
type Schedule struct {
Start, End time.Time
Freq Frequency
}
// NextAfter calculates the next time in the schedule after t. If no such time exists, nil is returned (test with Time.IsZero()).
func (c Schedule) NextAfter(t time.Time) time.Time {
if !t.After(c.Start) {
return c.Start
}
if c.Freq.Count == 0 {
return nilTime
}
d := t.Sub(c.Start)
fmin := uint(math.Floor(float64(d) / float64(c.Freq.maxApprox())))
fmax := uint(math.Ceil(float64(d) / float64(c.Freq.minApprox())))
for f := fmin; f <= fmax; f++ {
t2 := c.Freq.addTo(c.Start, f)
if t2.Before(c.Start) || t2.Before(t) {
continue
}
if (!c.End.IsZero()) && t2.After(c.End) {
return nilTime
}
return t2
}
return nilTime // Should actually never happen...
}
func (c Schedule) String() string {
s := c.Start.UTC().Format(timefmt)
if c.Freq.Count > 0 {
s += " +" + c.Freq.String()
if !c.End.IsZero() {
s += " !" + c.End.UTC().Format(timefmt)
}
}
return s
}
func ParseSchedule(s string) (c Schedule, err error) {
elems := strings.Split(s, " ")
switch len(elems) {
case 6: // Everything specified
_end := elems[4] + " " + elems[5]
if c.End, err = time.ParseInLocation(timefmt, _end[1:], time.UTC); err != nil {
return
}
fallthrough
case 4: // start time and frequency
var count uint64
if count, err = strconv.ParseUint(elems[2][1:], 10, 32); err != nil {
return
}
c.Freq.Count = uint(count)
var ok bool
if c.Freq.Unit, ok = tuLookup[elems[3]]; !ok {
err = fmt.Errorf("Unknown timeunit %s", elems[3])
return
}
fallthrough
case 2: // Only start time
if c.Start, err = time.ParseInLocation(timefmt, elems[0]+" "+elems[1], time.UTC); err != nil {
return
}
default:
err = errors.New("Unknown schedule format")
}
return
}
type MultiSchedule []Schedule
func (mc MultiSchedule) NextAfter(t time.Time) time.Time {
var nearest time.Time
for _, c := range mc {
next := c.NextAfter(t)
if next.IsZero() {
continue
}
if nearest.IsZero() {
nearest = next
} else if next.Before(nearest) {
nearest = next
}
}
return nearest
}
func (mc MultiSchedule) String() (s string) {
sep := ""
for _, c := range mc {
s += sep + c.String()
sep = "\n"
}
return
}
func ParseMultiSchedule(s string) (mc MultiSchedule, err error) {
parts := strings.Split(s, "\n")
for l, _part := range parts {
part := strings.TrimSpace(_part)
if part == "" {
continue
}
c, err := ParseSchedule(part)
if err != nil {
return nil, fmt.Errorf("Line %d: %s", l+1, err)
}
mc = append(mc, c)
}
return
} | schedule/sched.go | 0.678966 | 0.442456 | sched.go | starcoder |
package db
import (
"reflect"
"time"
)
// Comparison defines methods for representing comparison operators in a
// portable way across databases.
type Comparison interface {
Operator() ComparisonOperator
Value() interface{}
}
// ComparisonOperator is a type we use to label comparison operators.
type ComparisonOperator uint8
// Comparison operators
const (
ComparisonOperatorNone ComparisonOperator = iota
ComparisonOperatorEqual
ComparisonOperatorNotEqual
ComparisonOperatorLessThan
ComparisonOperatorGreaterThan
ComparisonOperatorLessThanOrEqualTo
ComparisonOperatorGreaterThanOrEqualTo
ComparisonOperatorBetween
ComparisonOperatorNotBetween
ComparisonOperatorIn
ComparisonOperatorNotIn
ComparisonOperatorIs
ComparisonOperatorIsNot
ComparisonOperatorLike
ComparisonOperatorNotLike
ComparisonOperatorRegExp
ComparisonOperatorNotRegExp
ComparisonOperatorAfter
ComparisonOperatorBefore
ComparisonOperatorOnOrAfter
ComparisonOperatorOnOrBefore
)
type dbComparisonOperator struct {
t ComparisonOperator
op string
v interface{}
}
func (c *dbComparisonOperator) CustomOperator() string {
return c.op
}
func (c *dbComparisonOperator) Operator() ComparisonOperator {
return c.t
}
func (c *dbComparisonOperator) Value() interface{} {
return c.v
}
// Gte indicates whether the reference is greater than or equal to the given
// argument.
func Gte(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorGreaterThanOrEqualTo,
v: v,
}
}
// Lte indicates whether the reference is less than or equal to the given
// argument.
func Lte(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorLessThanOrEqualTo,
v: v,
}
}
// Eq indicates whether the constraint is equal to the given argument.
func Eq(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorEqual,
v: v,
}
}
// NotEq indicates whether the constraint is not equal to the given argument.
func NotEq(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorNotEqual,
v: v,
}
}
// Gt indicates whether the constraint is greater than the given argument.
func Gt(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorGreaterThan,
v: v,
}
}
// Lt indicates whether the constraint is less than the given argument.
func Lt(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorLessThan,
v: v,
}
}
// In indicates whether the argument is part of the reference.
func In(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorIn,
v: toInterfaceArray(v),
}
}
// NotIn indicates whether the argument is not part of the reference.
func NotIn(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorNotIn,
v: toInterfaceArray(v),
}
}
// After indicates whether the reference is after the given time.
func After(t time.Time) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorGreaterThan,
v: t,
}
}
// Before indicates whether the reference is before the given time.
func Before(t time.Time) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorLessThan,
v: t,
}
}
// OnOrAfter indicater whether the reference is after or equal to the given
// time value.
func OnOrAfter(t time.Time) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorGreaterThanOrEqualTo,
v: t,
}
}
// OnOrBefore indicates whether the reference is before or equal to the given
// time value.
func OnOrBefore(t time.Time) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorLessThanOrEqualTo,
v: t,
}
}
// Between indicates whether the reference is contained between the two given
// values.
func Between(a interface{}, b interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorBetween,
v: []interface{}{a, b},
}
}
// NotBetween indicates whether the reference is not contained between the two
// given values.
func NotBetween(a interface{}, b interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorNotBetween,
v: []interface{}{a, b},
}
}
// Is indicates whether the reference is nil, true or false.
func Is(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorIs,
v: v,
}
}
// IsNot indicates whether the reference is not nil, true nor false.
func IsNot(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorIsNot,
v: v,
}
}
// IsNull indicates whether the reference is a NULL value.
func IsNull() Comparison {
return Is(nil)
}
// IsNotNull indicates whether the reference is a NULL value.
func IsNotNull() Comparison {
return IsNot(nil)
}
/*
// IsDistinctFrom indicates whether the reference is different from
// the given value, including NULL values.
func IsDistinctFrom(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorIsDistinctFrom,
v: v,
}
}
// IsNotDistinctFrom indicates whether the reference is not different from the
// given value, including NULL values.
func IsNotDistinctFrom(v interface{}) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorIsNotDistinctFrom,
v: v,
}
}
*/
// Like indicates whether the reference matches the wildcard value.
func Like(v string) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorLike,
v: v,
}
}
// NotLike indicates whether the reference does not match the wildcard value.
func NotLike(v string) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorNotLike,
v: v,
}
}
/*
// ILike indicates whether the reference matches the wildcard value (case
// insensitive).
func ILike(v string) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorILike,
v: v,
}
}
// NotILike indicates whether the reference does not match the wildcard value
// (case insensitive).
func NotILike(v string) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorNotILike,
v: v,
}
}
*/
// RegExp indicates whether the reference matches the regexp pattern.
func RegExp(v string) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorRegExp,
v: v,
}
}
// NotRegExp indicates whether the reference does not match the regexp pattern.
func NotRegExp(v string) Comparison {
return &dbComparisonOperator{
t: ComparisonOperatorNotRegExp,
v: v,
}
}
// Op represents a custom comparison operator against the reference.
func Op(customOperator string, v interface{}) Comparison {
return &dbComparisonOperator{
op: customOperator,
t: ComparisonOperatorNone,
v: v,
}
}
func toInterfaceArray(v interface{}) []interface{} {
rv := reflect.ValueOf(v)
switch rv.Type().Kind() {
case reflect.Ptr:
return toInterfaceArray(rv.Elem().Interface())
case reflect.Slice:
elems := rv.Len()
args := make([]interface{}, elems)
for i := 0; i < elems; i++ {
args[i] = rv.Index(i).Interface()
}
return args
}
return []interface{}{v}
}
var _ Comparison = &dbComparisonOperator{} | comparison.go | 0.817246 | 0.531696 | comparison.go | starcoder |
package siesta
import (
"errors"
"fmt"
"io"
"net"
"strconv"
"strings"
"sync"
"time"
)
// InvalidOffset is a constant that is used to denote an invalid or uninitialized offset.
const InvalidOffset int64 = -1
// Connector is an interface that should provide ways to clearly interact with Kafka cluster and hide all broker management stuff from user.
type Connector interface {
// GetTopicMetadata is primarily used to discover leaders for given topics and how many partitions these topics have.
// Passing it an empty topic list will retrieve metadata for all topics in a cluster.
GetTopicMetadata(topics []string) (*MetadataResponse, error)
// GetAvailableOffset issues an offset request to a specified topic and partition with a given offset time.
// More on offset time here - https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-OffsetRequest
GetAvailableOffset(topic string, partition int32, offsetTime int64) (int64, error)
// Fetch issues a single fetch request to a broker responsible for a given topic and partition and returns a FetchResponse that contains messages starting from a given offset.
Fetch(topic string, partition int32, offset int64) (*FetchResponse, error)
// GetOffset gets the offset for a given group, topic and partition from Kafka. A part of new offset management API.
GetOffset(group string, topic string, partition int32) (int64, error)
// CommitOffset commits the offset for a given group, topic and partition to Kafka. A part of new offset management API.
CommitOffset(group string, topic string, partition int32, offset int64) error
GetLeader(topic string, partition int32) (*BrokerConnection, error)
GetConsumerMetadata(group string) (*ConsumerMetadataResponse, error)
// Metadata returns a structure that holds all topic and broker metadata.
Metadata() *Metadata
// Tells the Connector to close all existing connections and stop.
// This method is NOT blocking but returns a channel which will get a single value once the closing is finished.
Close() <-chan bool
}
// ConnectorConfig is used to pass multiple configuration values for a Connector
type ConnectorConfig struct {
// BrokerList is a bootstrap list to discover other brokers in a cluster. At least one broker is required.
BrokerList []string
// ReadTimeout is a timeout to read the response from a TCP socket.
ReadTimeout time.Duration
// WriteTimeout is a timeout to write the request to a TCP socket.
WriteTimeout time.Duration
// ConnectTimeout is a timeout to connect to a TCP socket.
ConnectTimeout time.Duration
// Sets whether the connection should be kept alive.
KeepAlive bool
// A keep alive period for a TCP connection.
KeepAliveTimeout time.Duration
// Maximum number of open connections for a connector.
MaxConnections int
// Maximum number of open connections for a single broker for a connector.
MaxConnectionsPerBroker int
// Maximum fetch size in bytes which will be used in all Consume() calls.
FetchSize int32
// The minimum amount of data the server should return for a fetch request. If insufficient data is available the request will block
FetchMinBytes int32
// The maximum amount of time the server will block before answering the fetch request if there isn't sufficient data to immediately satisfy FetchMinBytes
FetchMaxWaitTime int32
// Number of retries to get topic metadata.
MetadataRetries int
// Backoff value between topic metadata requests.
MetadataBackoff time.Duration
// MetadataTTL is how long topic metadata is considered valid. Used to refresh metadata from time to time even if no leader changes occurred.
MetadataTTL time.Duration
// Number of retries to commit an offset.
CommitOffsetRetries int
// Backoff value between commit offset requests.
CommitOffsetBackoff time.Duration
// Number of retries to get consumer metadata.
ConsumerMetadataRetries int
// Backoff value between consumer metadata requests.
ConsumerMetadataBackoff time.Duration
// ClientID that will be used by a connector to identify client requests by broker.
ClientID string
}
// NewConnectorConfig returns a new ConnectorConfig with sane defaults.
func NewConnectorConfig() *ConnectorConfig {
return &ConnectorConfig{
ReadTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,
ConnectTimeout: 5 * time.Second,
KeepAlive: true,
KeepAliveTimeout: 1 * time.Minute,
MaxConnections: 5,
MaxConnectionsPerBroker: 5,
FetchMinBytes: 1,
FetchSize: 1024000,
FetchMaxWaitTime: 1000,
MetadataRetries: 5,
MetadataBackoff: 200 * time.Millisecond,
MetadataTTL: 5 * time.Minute,
CommitOffsetRetries: 5,
CommitOffsetBackoff: 200 * time.Millisecond,
ConsumerMetadataRetries: 15,
ConsumerMetadataBackoff: 500 * time.Millisecond,
ClientID: "siesta",
}
}
// Validate validates this ConnectorConfig. Returns a corresponding error if the ConnectorConfig is invalid and nil otherwise.
func (cc *ConnectorConfig) Validate() error {
if cc == nil {
return errors.New("Please provide a ConnectorConfig.")
}
if len(cc.BrokerList) == 0 {
return errors.New("BrokerList must have at least one broker.")
}
if cc.ReadTimeout < time.Millisecond {
return errors.New("ReadTimeout must be at least 1ms.")
}
if cc.WriteTimeout < time.Millisecond {
return errors.New("WriteTimeout must be at least 1ms.")
}
if cc.ConnectTimeout < time.Millisecond {
return errors.New("ConnectTimeout must be at least 1ms.")
}
if cc.KeepAliveTimeout < time.Millisecond {
return errors.New("KeepAliveTimeout must be at least 1ms.")
}
if cc.MaxConnections < 1 {
return errors.New("MaxConnections cannot be less than 1.")
}
if cc.MaxConnectionsPerBroker < 1 {
return errors.New("MaxConnectionsPerBroker cannot be less than 1.")
}
if cc.FetchSize < 1 {
return errors.New("FetchSize cannot be less than 1.")
}
if cc.MetadataRetries < 0 {
return errors.New("MetadataRetries cannot be less than 0.")
}
if cc.MetadataBackoff < time.Millisecond {
return errors.New("MetadataBackoff must be at least 1ms.")
}
if cc.MetadataTTL < time.Millisecond {
return errors.New("MetadataTTL must be at least 1ms.")
}
if cc.CommitOffsetRetries < 0 {
return errors.New("CommitOffsetRetries cannot be less than 0.")
}
if cc.CommitOffsetBackoff < time.Millisecond {
return errors.New("CommitOffsetBackoff must be at least 1ms.")
}
if cc.ConsumerMetadataRetries < 0 {
return errors.New("ConsumerMetadataRetries cannot be less than 0.")
}
if cc.ConsumerMetadataBackoff < time.Millisecond {
return errors.New("ConsumerMetadataBackoff must be at least 1ms.")
}
if cc.ClientID == "" {
return errors.New("ClientId cannot be empty.")
}
return nil
}
// DefaultConnector is a default (and only one for now) Connector implementation for Siesta library.
type DefaultConnector struct {
config ConnectorConfig
metadata *Metadata
bootstrapBrokers []*BrokerConnection
lock sync.RWMutex
//offset coordination part
offsetCoordinators map[string]int32
}
// NewDefaultConnector creates a new DefaultConnector with a given ConnectorConfig. May return an error if the passed config is invalid.
func NewDefaultConnector(config *ConnectorConfig) (*DefaultConnector, error) {
if err := config.Validate(); err != nil {
return nil, err
}
bootstrapConnections := make([]*BrokerConnection, len(config.BrokerList))
for i := 0; i < len(config.BrokerList); i++ {
broker := config.BrokerList[i]
hostPort := strings.Split(broker, ":")
if len(hostPort) != 2 {
return nil, fmt.Errorf("incorrect broker connection string: %s", broker)
}
port, err := strconv.Atoi(hostPort[1])
if err != nil {
return nil, fmt.Errorf("incorrect port in broker connection string: %s", broker)
}
bootstrapConnections[i] = NewBrokerConnection(&Broker{
ID: -1,
Host: hostPort[0],
Port: int32(port),
}, config.KeepAliveTimeout)
}
connector := &DefaultConnector{
config: *config,
bootstrapBrokers: bootstrapConnections,
offsetCoordinators: make(map[string]int32),
}
connector.metadata = NewMetadata(connector, NewBrokers(config.KeepAliveTimeout), config.MetadataTTL)
return connector, nil
}
// Returns a string representation of this DefaultConnector.
func (dc *DefaultConnector) String() string {
return "Default Connector"
}
// GetTopicMetadata is primarily used to discover leaders for given topics and how many partitions these topics have.
// Passing it an empty topic list will retrieve metadata for all topics in a cluster.
func (dc *DefaultConnector) GetTopicMetadata(topics []string) (*MetadataResponse, error) {
for i := 0; i <= dc.config.MetadataRetries; i++ {
if metadata, err := dc.getMetadata(topics); err == nil {
return metadata, nil
}
Debugf(dc, "GetTopicMetadata for %s failed after %d try", topics, i)
time.Sleep(dc.config.MetadataBackoff)
}
return nil, fmt.Errorf("Could not get topic metadata for %s after %d retries", topics, dc.config.MetadataRetries)
}
// GetAvailableOffset issues an offset request to a specified topic and partition with a given offset time.
func (dc *DefaultConnector) GetAvailableOffset(topic string, partition int32, offsetTime int64) (int64, error) {
request := new(OffsetRequest)
request.AddPartitionOffsetRequestInfo(topic, partition, offsetTime, 1)
response, err := dc.sendToAllAndReturnFirstSuccessful(request, dc.offsetValidator)
if response != nil {
return response.(*OffsetResponse).PartitionErrorAndOffsets[topic][partition].Offsets[0], err
}
return -1, err
}
// Fetch issues a single fetch request to a broker responsible for a given topic and partition and returns a FetchResponse that contains messages starting from a given offset.
func (dc *DefaultConnector) Fetch(topic string, partition int32, offset int64) (*FetchResponse, error) {
response, err := dc.tryFetch(topic, partition, offset)
if err != nil {
return response, err
}
if response.Error(topic, partition) == ErrNotLeaderForPartition {
Infof(dc, "Sent a fetch reqest to a non-leader broker. Refleshing metadata for topic %s and retrying the request", topic)
err = dc.metadata.Refresh([]string{topic})
if err != nil {
return nil, err
}
response, err = dc.tryFetch(topic, partition, offset)
}
return response, err
}
func (dc *DefaultConnector) tryFetch(topic string, partition int32, offset int64) (*FetchResponse, error) {
brokerConnection, err := dc.GetLeader(topic, partition)
if err != nil {
return nil, err
}
request := new(FetchRequest)
request.MinBytes = dc.config.FetchMinBytes
request.MaxWait = dc.config.FetchMaxWaitTime
request.AddFetch(topic, partition, offset, dc.config.FetchSize)
bytes, err := dc.syncSendAndReceive(brokerConnection, request)
if err != nil {
dc.metadata.Invalidate(topic)
return nil, err
}
decoder := NewBinaryDecoder(bytes)
response := new(FetchResponse)
decodingErr := response.Read(decoder)
if decodingErr != nil {
dc.metadata.Invalidate(topic)
Errorf(dc, "Could not decode a FetchResponse. Reason: %s", decodingErr.Reason())
return nil, decodingErr.Error()
}
return response, nil
}
// GetOffset gets the offset for a given group, topic and partition from Kafka. A part of new offset management API.
func (dc *DefaultConnector) GetOffset(group string, topic string, partition int32) (int64, error) {
Logger.Info("Getting offset for group %s, topic %s, partition %d", group, topic, partition)
coordinator, err := dc.metadata.OffsetCoordinator(group)
if err != nil {
return InvalidOffset, err
}
request := NewOffsetFetchRequest(group)
request.AddOffset(topic, partition)
bytes, err := dc.syncSendAndReceive(coordinator, request)
if err != nil {
return InvalidOffset, err
}
response := new(OffsetFetchResponse)
decodingErr := dc.decode(bytes, response)
if decodingErr != nil {
Errorf(dc, "Could not decode an OffsetFetchResponse. Reason: %s", decodingErr.Reason())
return InvalidOffset, decodingErr.Error()
}
topicOffsets, exist := response.Offsets[topic]
if !exist {
return InvalidOffset, fmt.Errorf("OffsetFetchResponse does not contain information about requested topic")
}
if offset, exists := topicOffsets[partition]; !exists {
return InvalidOffset, fmt.Errorf("OffsetFetchResponse does not contain information about requested partition")
} else if offset.Error != ErrNoError {
return InvalidOffset, offset.Error
} else {
return offset.Offset, nil
}
}
// CommitOffset commits the offset for a given group, topic and partition to Kafka. A part of new offset management API.
func (dc *DefaultConnector) CommitOffset(group string, topic string, partition int32, offset int64) error {
for i := 0; i <= dc.config.CommitOffsetRetries; i++ {
err := dc.tryCommitOffset(group, topic, partition, offset)
if err == nil {
return nil
}
Debugf(dc, "Failed to commit offset %d for group %s, topic %s, partition %d after %d try: %s", offset, group, topic, partition, i, err)
time.Sleep(dc.config.CommitOffsetBackoff)
}
return fmt.Errorf("Could not get commit offset %d for group %s, topic %s, partition %d after %d retries", offset, group, topic, partition, dc.config.CommitOffsetRetries)
}
func (dc *DefaultConnector) GetLeader(topic string, partition int32) (*BrokerConnection, error) {
leader, err := dc.metadata.Leader(topic, partition)
if err != nil {
leader, err = dc.getLeaderRetryBackoff(topic, partition, dc.config.MetadataRetries)
if err != nil {
return nil, err
}
}
return dc.metadata.Brokers.Get(leader), nil
}
// Close tells the Connector to close all existing connections and stop.
// This method is NOT blocking but returns a channel which will get a single value once the closing is finished.
func (dc *DefaultConnector) Close() <-chan bool {
closed := make(chan bool)
go func() {
dc.bootstrapBrokers = nil
closed <- true
}()
return closed
}
func (dc *DefaultConnector) Metadata() *Metadata {
return dc.metadata
}
func (dc *DefaultConnector) getMetadata(topics []string) (*MetadataResponse, error) {
request := NewMetadataRequest(topics)
brokerConnections := dc.metadata.Brokers.GetAll()
response, err := dc.sendToAllBrokers(brokerConnections, request, dc.topicMetadataValidator(topics))
if err != nil {
response, err = dc.sendToAllBrokers(dc.bootstrapBrokers, request, dc.topicMetadataValidator(topics))
}
if response != nil {
return response.(*MetadataResponse), err
}
return nil, err
}
func (dc *DefaultConnector) getLeaderRetryBackoff(topic string, partition int32, retries int) (int32, error) {
var err error
for i := 0; i <= retries; i++ {
err = dc.metadata.Refresh([]string{topic})
if err != nil {
continue
}
leader := int32(-1)
leader, err = dc.metadata.Leader(topic, partition)
if err == nil {
return leader, nil
}
time.Sleep(dc.config.MetadataBackoff)
}
return -1, err
}
func (dc *DefaultConnector) GetConsumerMetadata(group string) (*ConsumerMetadataResponse, error) {
for i := 0; i <= dc.config.ConsumerMetadataRetries; i++ {
metadata, err := dc.tryGetConsumerMetadata(group)
if err == nil {
return metadata, nil
}
Debugf(dc, "Failed to get consumer coordinator for group %s after %d try: %s", group, i, err)
time.Sleep(dc.config.ConsumerMetadataBackoff)
}
return nil, fmt.Errorf("Could not get consumer coordinator for group %s after %d retries", group, dc.config.ConsumerMetadataRetries)
}
func (dc *DefaultConnector) tryGetConsumerMetadata(group string) (*ConsumerMetadataResponse, error) {
request := NewConsumerMetadataRequest(group)
response, err := dc.sendToAllAndReturnFirstSuccessful(request, dc.consumerMetadataValidator)
if err != nil {
Infof(dc, "Could not get consumer metadata from all known brokers: %s", err)
return nil, err
}
return response.(*ConsumerMetadataResponse), nil
}
func (dc *DefaultConnector) tryCommitOffset(group string, topic string, partition int32, offset int64) error {
coordinator, err := dc.metadata.OffsetCoordinator(group)
if err != nil {
return err
}
request := NewOffsetCommitRequest(group)
request.AddOffset(topic, partition, offset, time.Now().Unix(), "")
bytes, err := dc.syncSendAndReceive(coordinator, request)
if err != nil {
return err
}
response := new(OffsetCommitResponse)
decodingErr := dc.decode(bytes, response)
if decodingErr != nil {
Errorf(dc, "Could not decode an OffsetCommitResponse. Reason: %s", decodingErr.Reason())
return decodingErr.Error()
}
topicErrors, exist := response.CommitStatus[topic]
if !exist {
return fmt.Errorf("OffsetCommitResponse does not contain information about requested topic")
}
if partitionError, exist := topicErrors[partition]; !exist {
return fmt.Errorf("OffsetCommitResponse does not contain information about requested partition")
} else if partitionError != ErrNoError {
return partitionError
}
return nil
}
func (dc *DefaultConnector) decode(bytes []byte, response Response) *DecodingError {
decoder := NewBinaryDecoder(bytes)
decodingErr := response.Read(decoder)
if decodingErr != nil {
Errorf(dc, "Could not decode a response. Reason: %s", decodingErr.Reason())
return decodingErr
}
return nil
}
func (dc *DefaultConnector) sendToAllAndReturnFirstSuccessful(request Request, check func([]byte) (Response, error)) (Response, error) {
dc.lock.RLock()
brokerConnection := dc.metadata.Brokers.GetAll()
if len(brokerConnection) == 0 {
dc.lock.RUnlock()
err := dc.metadata.Refresh(nil)
if err != nil {
return nil, err
}
} else {
dc.lock.RUnlock()
}
response, err := dc.sendToAllBrokers(brokerConnection, request, check)
if err != nil {
response, err = dc.sendToAllBrokers(dc.bootstrapBrokers, request, check)
}
return response, err
}
func (dc *DefaultConnector) sendToAllBrokers(brokerConnections []*BrokerConnection, request Request, check func([]byte) (Response, error)) (Response, error) {
dc.lock.RLock()
defer dc.lock.RUnlock()
if len(brokerConnections) == 0 {
return nil, errors.New("Empty broker list")
}
responses := make(chan *rawResponseAndError, len(brokerConnections))
for i := 0; i < len(brokerConnections); i++ {
brokerConnection := brokerConnections[i]
go func() {
bytes, err := dc.syncSendAndReceive(brokerConnection, request)
responses <- &rawResponseAndError{bytes, brokerConnection, err}
}()
}
var response *rawResponseAndError
for i := 0; i < len(brokerConnections); i++ {
response = <-responses
if response.err == nil {
checkResult, err := check(response.bytes)
if err == nil {
return checkResult, nil
}
response.err = err
}
}
return nil, response.err
}
func (dc *DefaultConnector) syncSendAndReceive(broker *BrokerConnection, request Request) ([]byte, error) {
conn, err := broker.GetConnection()
if err != nil {
return nil, err
}
id := dc.metadata.Brokers.NextCorrelationID()
if err := dc.send(id, conn, request); err != nil {
return nil, err
}
bytes, err := dc.receive(conn)
if err != nil {
return nil, err
}
broker.ReleaseConnection(conn)
return bytes, err
}
func (dc *DefaultConnector) send(correlationID int32, conn *net.TCPConn, request Request) error {
writer := NewRequestHeader(correlationID, dc.config.ClientID, request)
bytes := make([]byte, writer.Size())
encoder := NewBinaryEncoder(bytes)
writer.Write(encoder)
err := conn.SetWriteDeadline(time.Now().Add(dc.config.WriteTimeout))
if err != nil {
return err
}
_, err = conn.Write(bytes)
return err
}
func (dc *DefaultConnector) receive(conn *net.TCPConn) ([]byte, error) {
err := conn.SetReadDeadline(time.Now().Add(dc.config.ReadTimeout))
if err != nil {
return nil, err
}
header := make([]byte, 8)
_, err = io.ReadFull(conn, header)
if err != nil {
return nil, err
}
decoder := NewBinaryDecoder(header)
length, err := decoder.GetInt32()
if err != nil {
return nil, err
}
response := make([]byte, length-4)
_, err = io.ReadFull(conn, response)
if err != nil {
return nil, err
}
return response, nil
}
func (dc *DefaultConnector) topicMetadataValidator(topics []string) func(bytes []byte) (Response, error) {
return func(bytes []byte) (Response, error) {
response := new(MetadataResponse)
err := dc.decode(bytes, response)
if err != nil {
return nil, err.Error()
}
if len(topics) > 0 {
for _, topic := range topics {
var topicMetadata *TopicMetadata
for _, topicMetadata = range response.TopicsMetadata {
if topicMetadata.Topic == topic {
break
}
}
if topicMetadata.Error != ErrNoError {
return nil, topicMetadata.Error
}
for _, partitionMetadata := range topicMetadata.PartitionsMetadata {
if partitionMetadata.Error != ErrNoError && partitionMetadata.Error != ErrReplicaNotAvailable {
return nil, partitionMetadata.Error
}
}
}
}
return response, nil
}
}
func (dc *DefaultConnector) consumerMetadataValidator(bytes []byte) (Response, error) {
response := new(ConsumerMetadataResponse)
err := dc.decode(bytes, response)
if err != nil {
return nil, err.Error()
}
if response.Error != ErrNoError {
return nil, response.Error
}
return response, nil
}
func (dc *DefaultConnector) offsetValidator(bytes []byte) (Response, error) {
response := new(OffsetResponse)
err := dc.decode(bytes, response)
if err != nil {
return nil, err.Error()
}
for _, offsets := range response.PartitionErrorAndOffsets {
for _, offset := range offsets {
if offset.Error != ErrNoError {
return nil, offset.Error
}
}
}
return response, nil
}
type rawResponseAndError struct {
bytes []byte
brokerConnection *BrokerConnection
err error
} | vendor/github.com/elodina/siesta/connector.go | 0.696887 | 0.414543 | connector.go | starcoder |
package processor
import (
"github.com/Jeffail/benthos/lib/log"
"github.com/Jeffail/benthos/lib/metrics"
"github.com/Jeffail/benthos/lib/types"
)
//------------------------------------------------------------------------------
func init() {
Constructors["split"] = TypeSpec{
constructor: NewSplit,
description: `
Extracts the individual parts of a multipart message and turns them each into a
unique message. It is NOT necessary to use the split processor when your output
only supports single part messages, since those message parts will automatically
be sent as individual messages.
Please note that when you split a message you will lose the coupling between the
acknowledgement from the output destination to the origin message at the input
source. If all but one part of a split message is successfully propagated to the
destination the source will still see an error and may attempt to resend the
entire message again.
The split operator is useful for breaking down messages containing a large
number of parts into smaller batches by using the split processor followed by
the combine processor. For example:
1 Message of 1000 parts -> Split -> Combine 10 -> 100 Messages of 10 parts.`,
}
}
//------------------------------------------------------------------------------
// Split is a processor that splits messages into a message per part.
type Split struct {
log log.Modular
stats metrics.Type
mCount metrics.StatCounter
mDropped metrics.StatCounter
mSent metrics.StatCounter
mSentParts metrics.StatCounter
}
// NewSplit returns a Split processor.
func NewSplit(
conf Config, mgr types.Manager, log log.Modular, stats metrics.Type,
) (Type, error) {
return &Split{
log: log.NewModule(".processor.split"),
stats: stats,
mCount: stats.GetCounter("processor.split.count"),
mDropped: stats.GetCounter("processor.split.dropped"),
mSent: stats.GetCounter("processor.split.sent"),
mSentParts: stats.GetCounter("processor.split.parts.sent"),
}, nil
}
//------------------------------------------------------------------------------
// ProcessMessage takes a single message and returns a slice of messages,
// containing a message per part.
func (s *Split) ProcessMessage(msg types.Message) ([]types.Message, types.Response) {
s.mCount.Incr(1)
if msg.Len() == 0 {
s.mDropped.Incr(1)
return nil, types.NewSimpleResponse(nil)
}
msgs := make([]types.Message, msg.Len())
for i, part := range msg.GetAll() {
msgs[i] = types.NewMessage([][]byte{part})
}
msg.IterMetadata(func(k, v string) error {
for _, m := range msgs {
m.SetMetadata(k, v)
}
return nil
})
s.mSent.Incr(int64(len(msgs)))
s.mSentParts.Incr(int64(len(msgs)))
return msgs, nil
}
//------------------------------------------------------------------------------ | lib/processor/split.go | 0.592549 | 0.480418 | split.go | starcoder |
package structs
/// <summary>
/// Represents the IMAGE_FILE_HEADER structure from <see href="https://docs.microsoft.com/en-us/windows/desktop/api/winnt/ns-winnt-_image_file_header">here</see>
/// </summary>
type FileHeader struct {
/// <summary>
/// The architecture type of the computer. An image file can only be run on the specified computer or a system that emulates the specified computer. This member can be one of the following values.
/// </summary>
Machine uint16
/// <summary>
/// The number of sections. This indicates the size of the section table, which immediately follows the headers. Note that the Windows loader limits the number of sections to 96.
/// </summary>
NumberOfSections uint16
/// <summary>
/// The low 32 bits of the time stamp of the image. This represents the date and time the image was created by the linker.
/// The value is represented in the number of seconds elapsed since midnight (00:00:00), January 1, 1970, Universal Coordinated Time, according to the system clock.
/// </summary>
TimeDateStamp uint32
/// <summary>
/// The offset of the symbol table, in bytes, or zero if no COFF symbol table exists.
/// </summary>
PointerForSymbolTable uint32
/// <summary>
/// The number of symbols in the symbol table.
/// </summary>
NumberOfSymbols uint32
/// <summary>
/// The size of the optional header, in bytes. This value should be 0 for object files.
/// </summary>
SizeOfOptionalHeader uint16
/// <summary>
/// The characteristics of the image. This member can be one or more of the following values.
/// </summary>
Characteristics uint16
}
//determines if a PE is based around 32x architecture.
func (fileHeader *FileHeader) Is32Bit() bool {
const imageFile32BitMachine = uint16(0x0100)
return (imageFile32BitMachine & fileHeader.Characteristics) == imageFile32BitMachine
}
//determines if a PE is a DLL.
func (fileHeader *FileHeader) IsDll() bool {
return (fileHeader.Characteristics & uint16(0x2000)) > 0
}
//determines if a PE is a valid EXE
func (fileHeader *FileHeader) IsExe() bool {
return (fileHeader.Characteristics & uint16(2)) > 0
} | structs/fileheader.go | 0.897139 | 0.406538 | fileheader.go | starcoder |
package dstream
import "fmt"
type concatHorizontal struct {
// The streams to be concatenated
streams []Dstream
// All names in all streams (in the same order used by
// GetPos).
names []string
// The index of the current stream within streams
pos int
// The number of observations in the concatenated stream
nobs int
// True if nobs is known yet (nobs is not known until reading
// the entire concatenated stream).
nobsKnown bool
// Map from variable names to stream index
namestream map[string]int
// Map from variable names to column position within its stream
namepos map[string]int
// Map from external position to stream index
posstream map[int]int
// Map from external position to column position within its stream
pospos map[int]int
}
// ConcatHorizontal concatenates a collection of Dstreams
// horizontally. The column names of all the Dstreams being combined
// must be distinct.
func ConcatHorizontal(streams ...Dstream) Dstream {
c := &concatHorizontal{
streams: streams,
}
haveName := make(map[string]bool)
// Construct the name to position mapping
c.namepos = make(map[string]int)
c.namestream = make(map[string]int)
c.posstream = make(map[int]int)
c.pospos = make(map[int]int)
pos := 0
for j, stream := range streams {
for k, na := range stream.Names() {
if haveName[na] {
msg := fmt.Sprintf("Name '%s' is not unique\n", na)
panic(msg)
}
haveName[na] = true
c.namestream[na] = j
c.namepos[na] = k
c.posstream[pos] = j
c.pospos[pos] = k
c.names = append(c.names, na)
pos++
}
}
return c
}
func (c *concatHorizontal) Close() {
for _, s := range c.streams {
s.Close()
}
}
func (c *concatHorizontal) GetPos(pos int) interface{} {
return c.streams[c.posstream[pos]].GetPos(c.pospos[pos])
}
func (c *concatHorizontal) NumObs() int {
if c.nobsKnown {
return c.nobs
}
return -1
}
func (c *concatHorizontal) NumVar() int {
return len(c.Names())
}
func (c *concatHorizontal) Names() []string {
return c.names
}
func (c *concatHorizontal) Get(name string) interface{} {
return c.streams[c.namestream[name]].GetPos(c.namepos[name])
}
func (c *concatHorizontal) Next() bool {
// Advance all the strings
var n1, n0 int
for _, s := range c.streams {
if s.Next() {
n1++
} else {
n0++
}
}
if n0 == 0 {
// All streams advanced
return true
}
if n0 > 0 && n1 > 0 {
panic("Streams have different lengths\n")
}
return false
}
func (c *concatHorizontal) Reset() {
c.pos = 0
c.nobs = 0
c.nobsKnown = false
for _, s := range c.streams {
s.Reset()
}
} | dstream/concathorizontal.go | 0.727007 | 0.459986 | concathorizontal.go | starcoder |
package geom
import (
"math"
)
// epsilon32 is the machine epsilon, or the upper bound on the relative error due to rounding in floating point arithmatic
var epsilon32 = float32(math.Nextafter32(1, 2) - 1)
const (
pi = 3.14159265358979323846264338327950288419716939937510582097494459 // http://oeis.org/A000796
sqrt2 = 1.41421356237309504880168872420969807856967187537694807317667974 // http://oeis.org/A002193
sqrt3 = 1.73205080756887729352744634150587236694280525381038062805580698 // http://oeis.org/A002194
maxFloat32 = math.MaxFloat32
)
// Radians converts degrees into radians
func Radians(degrees float32) float32 {
return degrees * pi / 180
}
// Degrees converts radians into degrees
func Degrees(radians float32) float32 {
return radians * 180 / pi
}
// sqrt returns the positive square root of v
// TODO: replace with https://github.com/rkusa/gm
func sqrt(v float32) float32 {
return float32(math.Sqrt(float64(v)))
}
// pow2 returns the next highest power of 2 or the number unchanged if it is already a power of 2.
// From https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2
func pow2(v uint32) uint32 {
v--
v |= v >> 1
v |= v >> 2
v |= v >> 4
v |= v >> 8
v |= v >> 16
return v + 1
}
// cmp reports whether x and y are closely equal.
func cmp(a, b float32) bool {
const maxDiff = 0.005
const maxRelDiff = 1e-5
diff := abs(a - b)
if diff <= maxDiff {
return true
}
a = abs(a)
b = abs(b)
largest := max(a, b)
if diff <= largest*maxRelDiff {
return true
}
return false
}
func clampZero(v float32) float32 {
if cmp(v, 0) {
return 0
}
return v
}
func clampZeroVec3(v Vec3) Vec3 {
return Vec3{
clampZero(v[0]),
clampZero(v[1]),
clampZero(v[2]),
}
}
func ClampZeroVec2(v Vec2) Vec2 {
return Vec2{
clampZero(v[0]),
clampZero(v[1]),
}
}
// clamp constrains v to be >=l and <= u
func clamp(v, l, u float32) float32 {
if v < l {
return l
}
if v > u {
return u
}
return v
}
// signbit32 returns true if x is negative or negative zero.
func signbit32(x float32) bool {
return math.Float32bits(x)&(1<<31) != 0
}
// max returns the maximum of a or b
func max(a, b float32) float32 {
if a > b {
return a
}
return b
}
// min returns the minimum of a or b
func min(a, b float32) float32 {
if a < b {
return a
}
return b
}
func abs(x float32) float32 {
switch {
case x < 0:
return -x
case x == 0:
// ensure abs(-0) = 0
return 0
}
return x
}
// copysign returns a value with the magnitude
// of x and the sign of y.
func copysign(x, y float32) float32 {
const sign = 1 << 31
return math.Float32frombits(math.Float32bits(x)&^sign | math.Float32bits(y)&sign)
}
// nonzero returns v if it is non-zero, or a small number close to zero otherwise
func nonzero(v float32) float32 {
if v != 0 {
return v
}
return copysign(math.SmallestNonzeroFloat32, v)
} | math.go | 0.807461 | 0.594404 | math.go | starcoder |
package geometry
// Alignment options for different vertex attribute layouts
const (
ALIGN_MULTI_BATCH = 0 // having each attribute in a different slice (1111)(2222)(3333)
ALIGN_SINGLE_BATCH = 1 // having all attributes in one slice but batched (111122223333)
ALIGN_INTERLEAVED = 2 // having all attributes in one slice but interleaved (123123123123)
)
// Geometry is a collection of vertex data and the way it's attributes are layed out.
// A vertex can have multiple attributes like position, normal, uv coordinate, etc.
// Those attributes are specified in the VertexAttribute.
// The data is a slice of slices to account for two data alignments.
// One alignment is having all attributes in different slices (1111)(2222)(3333).
// The other alignment is interleaving all attributes in one slice (123123123123).
// In the former case the length of each data slice must be a multiple of the
// correspondings dataType and count. In the latter case there is only one
// slice that has to be a length that is a multiple of all attributes dataTypes
// and counts combined.
type Geometry struct {
Layout []VertexAttribute
Data [][]float32
Alignment int
}
// Make constructs a Geometry with it's layout and the data.
func Make(layout []VertexAttribute, data [][]float32) Geometry {
// determine alignment
alignment := ALIGN_MULTI_BATCH
if len(data) == 1 {
alignment = ALIGN_INTERLEAVED
}
return Geometry{
Layout: layout,
Data: data,
Alignment: alignment,
}
}
// New constructs a reference to Geometry with it's layout and the data.
func New(layout []VertexAttribute, data [][]float32) *Geometry {
geometry := Make(layout, data)
return &geometry
}
// VertexAttribute specifies the layout of one vertex attribute.
// The id has to match the name of the vertex attribute used in the shader.
// The glType is the type of one element of the vertex attribute to specify.
// The count specifies of how many elements this vertex attribute consists of.
// The usage is a hint to how the vertex data is going to be used. Allowed
// usage options are gl.STREAM_DRAW, gl.STREAM_READ, gl.STREAM_COPY,
// gl.STATIC_DRAW, gl.STATIC_READ, gl.STATIC_COPY, gl.DYNAMIC_DRAW,
// gl.DYNAMIC_READ, or gl.DYNAMIC_COPY.
type VertexAttribute struct {
Id string
GlType uint32
Count int32
Usage int32
}
// VertexAttribute constructs a VertexAttribute with the given id, the type of one element, the number
// of elements and the OpenGL usage option.
func MakeVertexAttribute(id string, glType uint32, count int32, usage int32) VertexAttribute {
return VertexAttribute{
Id: id,
GlType: glType,
Count: count,
Usage: usage,
}
} | pkg/view/geometry/geometry.go | 0.732879 | 0.501465 | geometry.go | starcoder |
package ts
// SlicePkt implements Pkt interface and represents MPEG-TS packet that can be
// a slice of some more data (eg. slice of buffer that contains more packets).
// Use it only when you can't use ArrayPkt. Assigning variable of type SlicePkt
// to variable of type Pkt causes memory allocation (you can use *SlicePkt to
// avoid this).
type SlicePkt []byte
// AsPkt returns beginning of buf as SlicePkt. It panics if len(buf) < PktLen.
func AsPkt(buf []byte) SlicePkt {
if len(buf) < PktLen {
panic("buffer too small to be treat as MPEG-TS packet")
}
return SlicePkt(buf[:PktLen])
}
func (p SlicePkt) Bytes() []byte {
if len(p) != PktLen {
panic("wrong MPEG-TS packet length")
}
return p
}
func (p SlicePkt) Copy(pkt Pkt) {
copy(p, pkt.Bytes())
}
func (p SlicePkt) SyncOK() bool {
return p[0] == 0x47
}
func (p SlicePkt) SetSync() {
p[0] = 0x47
}
func (p SlicePkt) Pid() int16 {
return int16(p[1]&0x1f)<<8 | int16(p[2])
}
func (p SlicePkt) SetPid(pid int16) {
if uint(pid) > 8191 {
panic("Bad PID")
}
p[1] = p[1]&0xe0 | byte(pid>>8)
p[2] = byte(pid)
}
func (p SlicePkt) CC() int8 {
return int8(p[3] & 0x0f)
}
func (p SlicePkt) SetCC(b int8) {
p[3] = p[3]&0xf0 | byte(b)&0x0f
}
func (p SlicePkt) IncCC() {
b := p[3]
p[3] = b&0xf0 | (b+1)&0x0f
}
func (p SlicePkt) Flags() PktFlags {
return PktFlags(p[1]&0xe0 | (p[3] >> 4))
}
func (p SlicePkt) SetFlags(f PktFlags) {
p[1] = p[1]&0x1f | byte(f&0xf0)
p[3] = p[3]&0x0f | byte(f<<4)
}
func (p SlicePkt) AF() AF {
if !p.ContainsAF() {
return AF{}
}
alen := p[4]
if p.ContainsPayload() {
if alen > 182 {
return nil
}
} else {
if alen != 183 {
return nil
}
}
return AF(p[5 : 5+alen])
}
func (p SlicePkt) Payload() []byte {
if !p.ContainsPayload() {
return nil
}
offset := 4
if p.ContainsAF() {
af := p.AF()
if af == nil {
return nil
}
offset += len(af) + 1
}
return p[offset:]
}
func (p SlicePkt) ContainsError() bool {
return p[1]&0x80 != 0
}
func (p SlicePkt) SetContainsError(b bool) {
if b {
p[1] |= 0x80
} else {
p[1] &^= 0x80
}
}
func (p SlicePkt) PayloadUnitStart() bool {
return p[1]&0x40 != 0
}
func (p SlicePkt) SetPayloadUnitStart(b bool) {
if b {
p[1] |= 0x40
} else {
p[1] &^= 0x40
}
}
func (p SlicePkt) Prio() bool {
return p[1]&0x20 != 0
}
func (p SlicePkt) SetPrio(b bool) {
if b {
p[1] |= 0x20
} else {
p[1] &^= 0x20
}
}
func (p SlicePkt) ScramblingCtrl() PktScramblingCtrl {
return PktScramblingCtrl((p[3] >> 6) & 3)
}
func (p SlicePkt) SetScramblingCtrl(sc PktScramblingCtrl) {
p[3] = p[3]&0x3f | byte(sc&3)<<6
}
func (p SlicePkt) ContainsAF() bool {
return p[3]&0x20 != 0
}
func (p SlicePkt) SetContainsAF(b bool) {
if b {
p[3] |= 0x20
} else {
p[3] &^= 0x20
}
}
func (p SlicePkt) ContainsPayload() bool {
return p[3]&0x10 != 0
}
func (p SlicePkt) SetContainsPayload(b bool) {
if b {
p[3] |= 0x10
} else {
p[3] &^= 0x10
}
} | ts/slicepkt.go | 0.713032 | 0.559771 | slicepkt.go | starcoder |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.