text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (w *Writer) Write(file *File) error {
if !w.BypassValidation {
if err := file.Validate(); err != nil {
return err
}
}
w.lineNum = 0
// Iterate over all records in the file
if err := w.writeString(&file.Header); err != nil {
return err
}
isADV := file.IsADV()
if err := w.writeBatch(file, isADV);... | [
0.02479080855846405,
0.44976505637168884,
0.7703920006752014,
-0.16151398420333862,
0.9972807168960571,
0.34098193049430847,
0.5278836488723755,
0.49244868755340576,
-0.45658379793167114,
0.18855394423007965,
0.22101141512393951,
-0.22644424438476562,
-0.2222771793603897,
1.052212715148925... |
func (w *Writer) Flush() error {
return w.w.Flush()
} | [
-0.11482147872447968,
0.1372014582157135,
-0.009320893324911594,
0.03782541677355766,
0.4637235105037689,
-0.050815049558877945,
1.1170895099639893,
-0.3619379699230194,
-0.751285195350647,
-0.6990320086479187,
0.491923063993454,
0.6668853759765625,
-0.43665432929992676,
1.0499814748764038... |
func MakeBinValExpr(op string, eval valueEval) func(scanner parser.Scanner, a, b Expr) Expr {
return func(scanner parser.Scanner, a, b Expr) Expr {
return newBinExpr(scanner, a, b, op, "(%s "+op+" %s)",
func(ctx context.Context, a, b Value, _ Scope) (Value, error) {
return eval(a, b), nil
})
}
} | [
-0.15405727922916412,
-0.5824488401412964,
0.7766231298446655,
0.37749043107032776,
-1.143134593963623,
-0.043082255870103836,
-0.2294512838125229,
0.022035948932170868,
-0.5015396475791931,
0.24057629704475403,
-0.0696408674120903,
0.905657947063446,
0.2433067113161087,
-0.667775154113769... |
func NewAddExpr(scanner parser.Scanner, a, b Expr) Expr {
return newBinExpr(scanner, a, b, "+", "(%s + %s)",
func(ctx context.Context, a, b Value, _ Scope) (Value, error) {
return addValues(ctx, scanner, a, b)
})
} | [
-0.2013905644416809,
-0.7493176460266113,
0.630979061126709,
0.28972935676574707,
-1.500963568687439,
-0.2469020038843155,
-0.9957442879676819,
-0.08175759017467499,
0.2694808542728424,
-0.5196508169174194,
0.05106822028756142,
0.750702440738678,
-0.12189072370529175,
0.6746717095375061,
... |
func NewAddArrowExpr(scanner parser.Scanner, lhs, rhs Expr) Expr {
return newBinExpr(scanner, lhs, rhs, "+>", "(%s +> %s)",
func(_ context.Context, lhs, rhs Value, _ Scope) (Value, error) {
return evalValForAddArrow(lhs, rhs)
})
} | [
-0.12377235293388367,
-0.7240542769432068,
0.4510035514831543,
-0.07032060623168945,
-1.3094521760940552,
-0.20257292687892914,
-0.8147615790367126,
0.07867836207151413,
0.13212847709655762,
-0.3033283054828644,
-0.22424960136413574,
1.2018994092941284,
0.18147246539592743,
1.0420407056808... |
func NewSubExpr(scanner parser.Scanner, a, b Expr) Expr {
return newArithExpr(scanner, a, b, "-", func(a, b float64) float64 { return a - b })
} | [
0.7540645003318787,
-0.5391456484794617,
0.6960180997848511,
0.19465133547782898,
-1.237880825996399,
0.061966270208358765,
-1.2513266801834106,
0.6468324065208435,
-0.7799157500267029,
-0.03860267251729965,
0.003759244456887245,
0.5846794247627258,
0.3145681917667389,
-0.06125960499048233... |
func NewMulExpr(scanner parser.Scanner, a, b Expr) Expr {
return newArithExpr(scanner, a, b, "*", func(a, b float64) float64 { return a * b })
} | [
0.42917129397392273,
-0.5169023275375366,
0.6832730174064636,
0.4127615690231323,
-1.6370608806610107,
-0.4109286963939667,
-1.611132264137268,
0.4992653429508209,
0.05514742061495781,
-0.05765809118747711,
0.049717262387275696,
0.26735642552375793,
0.043391261249780655,
0.3648772537708282... |
func NewDivExpr(scanner parser.Scanner, a, b Expr) Expr {
return newArithExpr(scanner, a, b, "/", func(a, b float64) float64 { return a / b })
} | [
0.018761882558465004,
-0.33403611183166504,
0.6865823864936829,
0.5520097613334656,
-0.941152811050415,
-0.021787799894809723,
-0.2620479166507721,
-0.027811624109745026,
-0.6109740138053894,
-0.38978248834609985,
0.28655511140823364,
-0.32780909538269043,
-0.09227648377418518,
0.139617711... |
func NewModExpr(scanner parser.Scanner, a, b Expr) Expr {
return newArithExpr(scanner, a, b, "%%", func(a, b float64) float64 {
return math.Mod(a, b)
})
} | [
0.07701193541288376,
-0.7442201972007751,
0.587190568447113,
0.372030109167099,
-1.2282723188400269,
-0.33004698157310486,
-1.4086686372756958,
0.22362078726291656,
-0.37416088581085205,
-0.008102619089186192,
0.7267372012138367,
0.10222112387418747,
-0.12059719115495682,
0.209723785519599... |
func NewSubModExpr(scanner parser.Scanner, a, b Expr) Expr {
return newArithExpr(scanner, a, b, "-%", func(a, b float64) float64 {
return a - math.Mod(a, b)
})
} | [
0.43522122502326965,
-0.5578911900520325,
0.783595621585846,
0.44183993339538574,
-1.5367783308029175,
0.318582683801651,
-1.1501169204711914,
0.6553626656532288,
-0.7900359034538269,
-0.0817185491323471,
0.07874097675085068,
0.5468245148658752,
0.04895332455635071,
-0.2651437222957611,
... |
func NewPowExpr(scanner parser.Scanner, a, b Expr) Expr {
return newArithExpr(scanner, a, b, "^", func(a, b float64) float64 {
return math.Pow(a, b)
})
} | [
0.25945377349853516,
-0.2885567545890808,
0.6581156849861145,
0.20537009835243225,
-1.3808355331420898,
-0.07586955279111862,
-1.0005087852478027,
0.8746393918991089,
-0.9439018964767456,
-0.3612229824066162,
0.13518624007701874,
-0.1205563098192215,
-0.15216557681560516,
0.36971515417099,... |
func NewWithExpr(scanner parser.Scanner, a, b Expr) Expr {
return newBinExpr(scanner, a, b, "with", "(%s with %s)",
func(_ context.Context, a, b Value, _ Scope) (Value, error) {
if x, ok := a.(Set); ok {
return x.With(b), nil
}
return nil, errors.Errorf("'with' lhs must be a set, not %s", ValueTypeAsStr... | [
0.25730058550834656,
-0.8474313020706177,
0.5988284945487976,
0.11474836617708206,
-1.9054843187332153,
-0.9284542202949524,
-1.3113634586334229,
-0.8887631297111511,
-0.1746552735567093,
1.0676872730255127,
0.1538814753293991,
1.1581053733825684,
-0.19665949046611786,
0.48254549503326416,... |
func NewWithoutExpr(scanner parser.Scanner, a, b Expr) Expr {
return newBinExpr(scanner, a, b, "without", "(%s without %s)",
func(_ context.Context, a, b Value, _ Scope) (Value, error) {
if x, ok := a.(Set); ok {
if s := x.Without(b); s.IsTrue() {
return s, nil
}
return None, nil
}
return n... | [
0.11619336158037186,
-0.885924220085144,
0.5903026461601257,
-0.5923565030097961,
-1.850865364074707,
-0.32014042139053345,
-0.796650230884552,
-0.1816008985042572,
-0.6323129534721375,
0.5975114703178406,
-0.18993374705314636,
1.0381110906600952,
-0.7355327606201172,
0.5103565454483032,
... |
func NewWhereExpr(scanner parser.Scanner, a, pred Expr) Expr {
pred = ExprAsFunction(pred)
return newBinExpr(scanner, a, pred, "where", "(%s where %s)",
func(ctx context.Context, a, pred Value, local Scope) (Value, error) {
if x, ok := a.(Set); ok {
if p, ok := pred.(Closure); ok {
s, err := x.Where(fun... | [
0.26709264516830444,
-0.7596973776817322,
0.7367779612541199,
-0.032047562301158905,
-1.3262437582015991,
-0.5414738059043884,
-0.05252629518508911,
-0.005478513892740011,
-0.08185354620218277,
0.6858082413673401,
0.49042829871177673,
1.2318782806396484,
-0.17112648487091064,
0.52193599939... |
func NewOrderByExpr(scanner parser.Scanner, a, key Expr) Expr {
key = ExprAsFunction(key)
return newBinExpr(scanner, a, key, "orderby", "(%s orderby %s)",
func(ctx context.Context, a, key Value, local Scope) (Value, error) {
if x, ok := a.(Set); ok {
if k, ok := key.(Closure); ok {
values, err := OrderB... | [
-0.3051286041736603,
-0.8110393285751343,
0.6748802661895752,
0.5618327260017395,
-0.8682129383087158,
-0.5237264633178711,
0.16414082050323486,
-0.6161462664604187,
-0.6266999840736389,
0.8108751773834229,
0.24136652052402496,
0.8296387791633606,
-0.4331206977367401,
0.6077086329460144,
... |
func NewOrderExpr(scanner parser.Scanner, a, key Expr) Expr {
key = ExprAsFunction(key)
return newBinExpr(scanner, a, key, "order", "(%s orderby %s)",
func(ctx context.Context, a, less Value, local Scope) (Value, error) {
if x, ok := a.(Set); ok {
if l, ok := less.(Closure); ok {
values, err := OrderBy(... | [
-0.36854854226112366,
-0.7341704964637756,
0.872050940990448,
0.5710919499397278,
-0.5669680237770081,
-0.5994594097137451,
-0.40719038248062134,
-0.5842382907867432,
-0.15726132690906525,
0.7040070295333862,
0.08741763979196548,
0.45727255940437317,
-0.41200003027915955,
1.112163662910461... |
func NewRankExpr(scanner parser.Scanner, a, key Expr) Expr {
key = ExprAsFunction(key)
return newBinExpr(scanner, a, key, "rank", "(%s rank %s)",
func(ctx context.Context, a, tuplef Value, local Scope) (Value, error) {
if x, ok := a.(Set); ok {
if l, ok := tuplef.(Closure); ok {
return Rank(x, func(v Tu... | [
-0.24774585664272308,
-0.177027627825737,
0.43944236636161804,
0.30660462379455566,
-0.7681442499160767,
-0.8565497994422913,
-0.301154762506485,
0.14021725952625275,
-0.1774471551179886,
1.1849970817565918,
0.23904703557491302,
1.1241424083709717,
-0.27796471118927,
0.6708499789237976,
... |
func NewCallExpr(scanner parser.Scanner, a, b Expr) Expr {
return newBinExpr(scanner, a, b, "call", "«%s»(%s)", Call)
} | [
0.3098357617855072,
-0.11230190098285675,
0.5515729784965515,
0.42063993215560913,
-1.5663658380508423,
0.07737229764461517,
-1.7598320245742798,
-0.3763599693775177,
-0.0576346255838871,
0.4270542860031128,
-0.08609823137521744,
1.0487457513809204,
-1.1477047204971313,
0.581430971622467,
... |
func (e *BinExpr) String() string {
return fmt.Sprintf(e.format, e.a, e.b)
} | [
-0.26777854561805725,
-1.3840335607528687,
0.2388760894536972,
-0.07679788023233414,
0.08895973861217499,
0.9293062686920166,
0.4533885717391968,
-0.5009151101112366,
-0.8923784494400024,
-0.01008138433098793,
0.1258537769317627,
0.8244776129722595,
-0.16691842675209045,
-0.179567009210586... |
func (e *BinExpr) Eval(ctx context.Context, local Scope) (_ Value, err error) {
a, err := e.a.Eval(ctx, local)
if err != nil {
return nil, WrapContextErr(err, e, local)
}
b, err := e.b.Eval(ctx, local)
if err != nil {
return nil, WrapContextErr(err, e, local)
}
val, err := e.eval(ctx, a, b, local)
if err !... | [
0.039334241300821304,
-0.3514658510684967,
0.6246597170829773,
-0.10502094775438309,
0.1586354523897171,
0.5854660272598267,
0.27724218368530273,
0.5091753602027893,
-0.03663695231080055,
0.22650882601737976,
0.20620252192020416,
0.7489598393440247,
0.09408146888017654,
0.04180069640278816... |
func evalValForAddArrow(lhs, rhs Value) (Value, error) {
switch lhs := lhs.(type) {
case Tuple:
if rhs, ok := rhs.(Tuple); ok {
return MergeLeftToRight(lhs, rhs), nil
}
case Dict:
switch rhs := rhs.(type) {
case Dict:
return mergeDicts(lhs, rhs), nil
case Set:
if !rhs.IsTrue() {
return lhs, ni... | [
-0.39879971742630005,
0.12418186664581299,
0.7144551873207092,
-0.8500415086746216,
-0.270139217376709,
0.19469498097896576,
-1.3994883298873901,
-0.28744858503341675,
0.2602887749671936,
-0.07498898357152939,
1.049114465713501,
1.0193114280700684,
0.5057296752929688,
0.9971199631690979,
... |
func (o loadFromOnline) GetValue() interface{} {
return bool(o)
} | [
0.40100398659706116,
-0.02681785076856613,
0.5683860182762146,
0.852859377861023,
0.4554080665111542,
0.2810100018978119,
-0.1886027455329895,
-0.025707054883241653,
0.49106281995773315,
-0.06266467273235321,
-0.8396524786949158,
-0.11517507582902908,
0.19833087921142578,
-0.46947261691093... |
func LoadFromOnline(value bool) Option {
return loadFromOnline(value)
} | [
0.13786493241786957,
0.06640465557575226,
0.2513411045074463,
0.12096838653087616,
-0.9818839430809021,
0.16797451674938202,
-0.5366088151931763,
-0.3552553653717041,
0.303363174200058,
-0.2674197554588318,
-0.7744705080986023,
-1.0584650039672852,
-0.4510518014431,
-0.1784486621618271,
... |
func (o loadCustomPath) GetValue() interface{} {
return string(o)
} | [
0.5206171274185181,
-0.18685011565685272,
0.4065124988555908,
0.42509621381759644,
-0.33670133352279663,
-0.23075851798057556,
0.18674181401729584,
-0.5197553634643555,
0.9873449206352234,
0.36040371656417847,
-0.12367409467697144,
0.5265425443649292,
0.1228165552020073,
-0.403527200222015... |
func LoadFromCustomPath(value string) Option {
return loadCustomPath(value)
} | [
0.5364354252815247,
-0.09335201978683472,
0.10828971117734909,
0.08630304038524628,
-1.2912572622299194,
0.281161367893219,
0.4325583577156067,
-0.680446445941925,
0.7594060897827148,
0.24290019273757935,
-0.23633724451065063,
0.013035411946475506,
-0.35503140091896057,
-0.0254452284425497... |
func (o allowEmojiCodes) GetValue() interface{} {
return []string(o)
} | [
0.02518554963171482,
0.8421852588653564,
0.557644248008728,
0.9915755987167358,
-0.3526867926120758,
-0.562857449054718,
-0.15881367027759552,
-0.5252445340156555,
0.8582302927970886,
1.1929311752319336,
-0.2779728174209595,
0.17843253910541534,
-0.6232002377510071,
0.1412227749824524,
0... |
func AllowEmojiCodes(codes []string) Option {
return allowEmojiCodes(codes)
} | [
-0.22227638959884644,
0.49148401618003845,
0.0814780667424202,
0.3544479310512543,
-1.4545506238937378,
0.3457231819629669,
-0.22496972978115082,
0.03012620471417904,
0.07267666608095169,
0.8507115244865417,
0.42267733812332153,
-0.5330455899238586,
-1.2669782638549805,
0.3266909718513489,... |
func (o unicodeVersion) GetValue() interface{} {
return string(o)
} | [
0.126407653093338,
-0.1634368896484375,
0.5451335906982422,
0.78730309009552,
0.15148857235908508,
0.19897803664207458,
0.04988759383559227,
-0.48706239461898804,
1.044914960861206,
0.4269951581954956,
-0.5642272233963013,
0.1010381355881691,
0.23734067380428314,
-0.6674144864082336,
0.3... |
func UnicodeVersion(version string) Option {
return unicodeVersion(version)
} | [
-0.12240759283304214,
-0.7037520408630371,
0.222572922706604,
-0.01764369010925293,
-0.05312309414148331,
0.5110748410224915,
-0.0549904890358448,
0.7172815799713135,
0.7482985258102417,
0.35116374492645264,
-1.4301037788391113,
-0.17947813868522644,
0.4344804584980011,
-0.9560136198997498... |
func (o offlineFallback) GetValue() interface{} {
return bool(o)
} | [
0.5719780325889587,
0.6713700890541077,
0.49211356043815613,
1.407684564590454,
0.4635433852672577,
-0.015328416600823402,
0.28115272521972656,
-0.10140115767717361,
0.7321540713310242,
0.14414064586162567,
-0.8284338116645813,
-0.01486668549478054,
-0.25123801827430725,
-0.038574811071157... |
func UseFallbackToOffline(useOfflineFallback bool) Option {
return offlineFallback(useOfflineFallback)
} | [
0.3535896837711334,
-0.34054163098335266,
0.43235644698143005,
0.15366297960281372,
-0.36543726921081543,
-0.4636170268058777,
-0.11440073698759079,
-0.24756905436515808,
0.2201327681541443,
-0.5008697509765625,
-0.08561825752258301,
-0.4833589196205139,
-0.4550285339355469,
0.567302823066... |
func Asset(name string) ([]byte, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
}
return a.bytes, nil
}
return nil, fmt.Errorf("Asset %s not foun... | [
-0.7961483001708984,
-1.2313168048858643,
0.633165180683136,
-0.6093899011611938,
-1.546921730041504,
-0.11101024597883224,
0.12971386313438416,
-1.3390334844589233,
-1.1358720064163208,
0.4855233430862427,
0.3090141713619232,
0.32495471835136414,
-0.6009681224822998,
-0.44264674186706543,... |
func MustAsset(name string) []byte {
a, err := Asset(name)
if err != nil {
panic("asset: Asset(" + name + "): " + err.Error())
}
return a
} | [
-0.012778956443071365,
0.11985661834478378,
0.4091298282146454,
-0.5268413424491882,
-0.8276715278625488,
0.4719155430793762,
-0.8186293840408325,
-1.5736604928970337,
0.16388541460037231,
0.6357062458992004,
-0.5354578495025635,
0.35693347454071045,
0.0057142809964716434,
-0.0248885955661... |
func AssetInfo(name string) (os.FileInfo, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
}
return a.info, nil
}
return nil, fmt.Errorf("Asset... | [
0.371969997882843,
-1.1052993535995483,
0.5630446076393127,
-0.922572672367096,
-1.356387734413147,
0.0033556853886693716,
0.6777529716491699,
-0.8006685972213745,
-1.2748286724090576,
0.3115358352661133,
0.2636086046695709,
0.26388120651245117,
0.0635773167014122,
-0.3988074064254761,
0... |
func AssetNames() []string {
names := make([]string, 0, len(_bindata))
for name := range _bindata {
names = append(names, name)
}
return names
} | [
-0.7293784618377686,
-0.8460342288017273,
0.7321816682815552,
-0.39323121309280396,
-0.48951536417007446,
0.7661203145980835,
-0.5028699636459351,
-0.8655748963356018,
-0.4145073890686035,
0.8099913597106934,
0.16903363168239594,
1.163049578666687,
-0.028152840211987495,
0.0342608317732811... |
func New(log *logging.Logger, config types.ServerConfig, listenNetwork string, listenAddr string, db db.Storage) *KaiServer {
ks := &KaiServer{
logger: log,
listenAddr: listenAddr,
listenNetwork: listenNetwork,
router: NewRouter(),
config: config,
db: db,
}
ks.logger.D... | [
0.36382102966308594,
-0.8558670878410339,
0.8337438702583313,
-0.0643867701292038,
-0.5169418454170227,
-0.31331750750541687,
-0.13287517428398132,
-0.019448477774858475,
-0.410602867603302,
0.037497516721487045,
0.08141084760427475,
0.21756738424301147,
-0.1597955822944641,
1.052481293678... |
func (ks *KaiServer) Handler() http.Handler {
return ks.router.Handler()
} | [
0.39245063066482544,
-1.0148990154266357,
0.11902697384357452,
1.361728310585022,
-0.4926747679710388,
0.6598066687583923,
0.09065461158752441,
0.45202940702438354,
0.4641573131084442,
-0.8474311828613281,
0.3202499747276306,
0.15333281457424164,
0.4350597560405731,
-0.028703633695840836,
... |
func (ks *KaiServer) Start(keep bool) error {
var err error
ks.Listener, err = net.Listen(ks.listenNetwork, ks.listenAddr)
if err != nil {
ks.logger.Error("kai-failed-starting-server", err)
return err
}
if keep {
ks.logger.Info("started")
ks.server.Serve(ks.Listener)
return nil
}
go ks.server.Serve(... | [
0.6407822370529175,
-0.7025790214538574,
0.7992404699325562,
0.05974617972970009,
0.16106334328651428,
0.7154226303100586,
-0.46417737007141113,
0.30331680178642273,
-0.12211915105581284,
0.4608764946460724,
0.3190809190273285,
1.0395007133483887,
-0.39652305841445923,
1.0228302478790283,
... |
func (ks *KaiServer) Stop() error {
ks.logger.Info("stop-server")
defer ks.logger.Info("stop")
if ks.listenNetwork == "unix" {
if err := os.Remove(ks.listenAddr); err != nil {
ks.logger.Infof("failed-to-stop-server listenAddr: %s", ks.listenAddr)
return err
}
}
return ks.Listener.Close()
} | [
-0.41400444507598877,
-0.6523780822753906,
0.6034115552902222,
-0.24841442704200745,
-0.38411945104599,
0.7511919736862183,
-0.5652837157249451,
0.17284125089645386,
-0.40273523330688477,
0.603373646736145,
0.3285869061946869,
0.3755016624927521,
-0.7703927159309387,
0.29552987217903137,
... |
func main() {
j := 2
v := 30
key_str := fmt.Sprintf("%d%d", j, v)
fmt.Println(key_str, "aaa")
} | [
-0.726575493812561,
-0.39877849817276,
0.6522626876831055,
-0.16061609983444214,
-0.37432557344436646,
0.6340377330780029,
0.18869349360466003,
-0.42744821310043335,
-0.4133335053920746,
0.3309411108493805,
0.17042620480060577,
0.4594883918762207,
0.4021964371204376,
-0.05962805449962616,
... |
func findKthLargestHeap(nums []int, k int) int {
h := heap(nums)
h.build()
for i := 1; i < k; i++ {
h.pop()
}
return h.pop()
} | [
0.6503085494041443,
-0.3792661726474762,
0.7434749603271484,
0.48375654220581055,
-0.2863769233226776,
-0.12084302306175232,
-0.25683748722076416,
-0.025516344234347343,
-0.14497770369052887,
1.0975993871688843,
0.41828563809394836,
-0.27181926369667053,
-0.4906090199947357,
0.418413430452... |
func IncomingNode(n *gripdata.Node, db DB) error {
var p SProcChain
p.Push(LocallyCreated)
p.Push(NodeProc(VerifyNode))
p.Push(NodeProc(StoreNode))
p.Push(NodeProc(CreateNodeEphemera))
p.Push(SendAllToShareWithMe)
_, err := p.F(n, db)
return err
} | [
0.6531478762626648,
0.8114966750144958,
0.4799143075942993,
-0.08189021795988083,
0.3720141053199768,
0.5907131433486938,
0.8201223015785217,
0.5420249104499817,
-0.07643494755029678,
0.22875335812568665,
-0.5306157469749451,
1.0341750383377075,
-0.38156408071517944,
1.0134594440460205,
... |
func SendAllToShareWith(s gripcrypto.SignInf, sourceid []byte, db DB) error {
shl := FindAllToShareWith(sourceid, db)
for _, sh := range shl {
err := CreateNewSend(s, sh, db)
if err != nil {
return err
}
}
return nil
} | [
0.13465242087841034,
0.3980817496776581,
0.525066077709198,
0.8044494390487671,
0.4067701995372772,
0.20451095700263977,
0.4340590834617615,
-0.6516407132148743,
0.06482920050621033,
0.39120611548423767,
-1.277788758277893,
-0.09835051745176315,
-0.043428778648376465,
1.9677547216415405,
... |
func IncomingShareNode(s *gripdata.ShareNodeInfo, db DB) error {
var p SProcChain
n := db.GetNode(s.NodeID)
p.Push(LocallyCreated)
p.Push(ShareNodeProc(TargetNil))
p.Push(VerifyNodeSig)
p.Push(ShareNodeProc(CreateShareNodeAccount))
p.Push(ShareNodeProc(StoreShareNodeInfo))
p.Push(ShareNodeProc(ShareWith... | [
0.4390173554420471,
0.3976809084415436,
0.6335400938987732,
-0.4222412109375,
0.32877856492996216,
-0.09996316581964493,
0.603816032409668,
0.038074150681495667,
-0.03143509849905968,
-0.04276188462972641,
-0.47651252150535583,
0.7992560863494873,
-0.03807990252971649,
0.5603140592575073,
... |
func SendAllToAllKey(s gripcrypto.SignInf, k string, db DB) error {
shl := FindAllToShareWithFromKey(k, db)
for _, sh := range shl {
err := CreateNewSend(s, sh, db)
if err != nil {
return err
}
}
return nil
} | [
-0.06766396760940552,
0.24855853617191315,
0.6158389449119568,
1.3444894552230835,
-0.002344616688787937,
0.13427378237247467,
-0.2504250407218933,
-0.028266247361898422,
-0.34806618094444275,
1.0006332397460938,
-0.9755892753601074,
-0.268955796957016,
0.05805187299847603,
1.5557481050491... |
func IncomingUseShareNodeKey(k *gripdata.UseShareNodeKey, db DB) error {
if k.Key == "" {
return griperrors.ShareNodeKeyEmpty
}
n := db.GetNode(k.NodeID)
var p SProcChain
p.Push(LocallyCreated)
p.Push(VerifyNodeSig)
p.Push(UseKeyProc(CreateUseKeyAccount))
p.Push(UseKeyProc(StoreUseShareNodeKey))
p.... | [
-0.031843557953834534,
0.8200401663780212,
0.719512939453125,
-0.03788258135318756,
0.12542061507701874,
-0.196396142244339,
0.657473623752594,
-0.2695666551589966,
-0.5057753324508667,
0.4117526710033417,
-0.19508393108844757,
0.4764705002307892,
-0.1611977368593216,
1.2670735120773315,
... |
func VerifyNode(n *gripdata.Node, db DB) (bool, error) {
if n.PublicKey == nil || n.ID == nil {
return false, errors.New("Public key and ID must be specified")
}
h := sha512.New()
gripcrypto.HashBytes(h, n.PublicKey)
tid := h.Sum(nil)
if !bytes.Equal(n.ID, tid) {
return false, errors.New("ID does not ... | [
-0.18603065609931946,
0.479535847902298,
0.5884801745414734,
0.5913732051849365,
0.41946539282798767,
0.6965217590332031,
-0.7505809664726257,
0.16241654753684998,
0.01860804110765457,
0.20571573078632355,
-1.1770381927490234,
0.10182714462280273,
-0.43433231115341187,
1.1174665689468384,
... |
func GetNodeAccount(id []byte, db Accountdb) *gripdata.Account {
na := db.GetNodeAccount(id)
if na == nil {
return nil
}
if !na.Enabled {
return nil
}
return db.GetAccount(na.AccountID)
} | [
0.4257621467113495,
0.40874895453453064,
0.42121466994285583,
0.3599909842014313,
-0.05370834842324257,
-0.865256667137146,
0.45688629150390625,
0.0201039407402277,
0.9519574046134949,
0.012353777885437012,
0.34876710176467896,
0.5434792041778564,
-0.05476193130016327,
0.7326556444168091,
... |
func IsIDAccountEnabled(id []byte, db Accountdb) bool {
a := GetNodeAccount(id, db)
if a == nil {
return false
}
return a.Enabled
} | [
-0.1449609398841858,
0.2474614679813385,
0.24796836078166962,
0.05775400623679161,
-0.4172765910625458,
-0.8510382175445557,
-0.12692786753177643,
0.46081992983818054,
1.2434678077697754,
0.3778248429298401,
-0.9103819131851196,
0.22507132589817047,
-1.033272385597229,
0.22708018124103546,... |
func IsAccountEnabled(s gripcrypto.SignInf, db Accountdb) bool {
return IsIDAccountEnabled(s.GetNodeID(), db)
} | [
0.36630916595458984,
0.020846912637352943,
0.1280212253332138,
1.370999813079834,
-0.2891829311847687,
-0.47959041595458984,
0.309760719537735,
1.0063211917877197,
1.3327105045318604,
0.6332157850265503,
-0.39950084686279297,
0.12582668662071228,
-0.5864933729171753,
0.6224275231361389,
... |
func NewQueryCoinParams(accountID types.AccountID, creator, symbol types.Name) QueryCoinParams {
return QueryCoinParams{
AccountID: accountID,
Creator: creator,
Symbol: symbol,
}
} | [
0.3547094464302063,
0.3062953054904938,
0.035351384431123734,
-0.18151740729808807,
-0.360309898853302,
0.10319770872592926,
-0.2625926434993744,
-0.5590651035308838,
-0.8222000002861023,
-0.07480199635028839,
-0.1694003790616989,
1.0619738101959229,
-0.8676007986068726,
0.2453414797782898... |
func NewQueryCoinsParams(accountID types.AccountID) QueryCoinsParams {
return QueryCoinsParams{
AccountID: accountID,
}
} | [
0.553475558757782,
0.45196306705474854,
-0.013987108133733273,
-0.5716099739074707,
-0.5917181372642517,
-0.12769858539104462,
-0.3078744411468506,
-0.6814462542533875,
-0.15447865426540375,
0.11771506071090698,
0.273393839597702,
1.1957696676254272,
-0.3025648593902588,
-0.178259879350662... |
func NewQueryCoinPowerParams(accountID types.AccountID, creator, symbol types.Name) QueryCoinPowerParams {
return QueryCoinPowerParams{
AccountID: accountID,
Creator: creator,
Symbol: symbol,
}
} | [
0.4711364805698395,
-0.07051815092563629,
0.14239123463630676,
0.33839812874794006,
-0.4171043038368225,
-0.0751432329416275,
-0.686156153678894,
-0.36389434337615967,
-0.9272923469543457,
-0.06399606913328171,
-0.10348372906446457,
0.32171136140823364,
-0.8546326756477356,
0.5091968774795... |
func NewQueryCoinPowersParams(accountID types.AccountID) QueryCoinPowersParams {
return QueryCoinPowersParams{
AccountID: accountID,
}
} | [
0.9431670904159546,
-0.10995420068502426,
0.012352664954960346,
0.315506249666214,
-0.36875081062316895,
0.189211905002594,
-0.6097679734230042,
-0.23707425594329834,
0.18502017855644226,
-0.12267859280109406,
-0.008170012384653091,
0.3640710413455963,
-1.1284462213516235,
0.47986292839050... |
func NewQueryCoinStatParams(creator, symbol types.Name) QueryCoinStatParams {
return QueryCoinStatParams{
Creator: creator,
Symbol: symbol,
}
} | [
0.16705580055713654,
0.011325140483677387,
0.015142116695642471,
-0.605874240398407,
-0.237853541970253,
0.3007830083370209,
-0.5175414681434631,
-0.6847174167633057,
-0.8133828639984131,
-0.13184162974357605,
-0.6607277393341064,
0.754338800907135,
-0.10284998267889023,
-0.007448917254805... |
func NewQueryCoinDescParams(creator, symbol types.Name) QueryCoinDescParams {
return QueryCoinDescParams{
Creator: creator,
Symbol: symbol,
}
} | [
0.21302655339241028,
0.6739630699157715,
0.13609880208969116,
-0.5117731690406799,
0.06660455465316772,
0.11649478226900101,
-0.5519049167633057,
-0.21146218478679657,
-1.1017738580703735,
-0.3908882141113281,
-0.3736208975315094,
0.18089021742343903,
-0.8445578813552856,
0.164914503693580... |
func NewQueryLockedCoinsParams(accountID types.AccountID) QueryLockedCoinsParams {
return QueryLockedCoinsParams{
AccountID: accountID,
}
} | [
0.4595825672149658,
0.2137165516614914,
-0.008880460634827614,
-0.5391566157341003,
-0.4834772050380707,
-0.7445637583732605,
-0.0076379235833883286,
-0.6740519404411316,
0.4033459722995758,
-0.24259212613105774,
0.08801722526550293,
1.3155769109725952,
-0.7966684103012085,
-0.060875169932... |
func NewGetIdentityEndpointsOK() *GetIdentityEndpointsOK {
return &GetIdentityEndpointsOK{}
} | [
-0.12720416486263275,
-0.8711497783660889,
0.3163975775241852,
1.2443639039993286,
0.509030818939209,
0.3803789019584656,
0.4022027552127838,
0.6518651843070984,
-0.011856021359562874,
1.285792589187622,
-1.1189168691635132,
-0.5838025808334351,
-0.20284996926784515,
-1.0545302629470825,
... |
func (o *GetIdentityEndpointsOK) WithPayload(payload []*models.IdentityEndpoints) *GetIdentityEndpointsOK {
o.Payload = payload
return o
} | [
-0.10533926635980606,
-0.27366921305656433,
0.06626828014850616,
0.8370482325553894,
0.26437100768089294,
-0.00854230485856533,
0.06003424525260925,
0.2021195888519287,
0.4554765224456787,
1.1530569791793823,
-0.8485109806060791,
-0.8307138681411743,
-0.16943249106407166,
-0.90926456451416... |
func (o *GetIdentityEndpointsOK) SetPayload(payload []*models.IdentityEndpoints) {
o.Payload = payload
} | [
-0.3659995496273041,
0.03928852081298828,
-0.008575335144996643,
1.109222412109375,
0.5829227566719055,
0.46051931381225586,
-0.09285186976194382,
-0.008137729950249195,
0.2994846999645233,
1.355294108390808,
-0.7066504955291748,
-0.5483746528625488,
-0.782685399055481,
-0.568379819393158,... |
func (o *GetIdentityEndpointsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(200)
payload := o.Payload
if payload == nil {
// return empty array
payload = make([]*models.IdentityEndpoints, 0, 50)
}
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let... | [
-0.9862664341926575,
-0.36192187666893005,
0.16831287741661072,
0.7863157391548157,
1.0290952920913696,
-0.24335122108459473,
0.17746767401695251,
0.0909440815448761,
0.6521744728088379,
1.477508783340454,
-0.45104601979255676,
-0.8814200162887573,
-1.22247314453125,
-0.6441550254821777,
... |
func NewGetIdentityEndpointsNotFound() *GetIdentityEndpointsNotFound {
return &GetIdentityEndpointsNotFound{}
} | [
-0.2354377806186676,
-1.374450922012329,
0.40342360734939575,
1.139024257659912,
0.893254816532135,
0.9349647164344788,
0.19604066014289856,
0.4108504354953766,
0.5682279467582703,
0.16662338376045227,
-0.8670353889465332,
-0.010167941451072693,
-0.6544806361198425,
-0.7488795518875122,
... |
func (o *GetIdentityEndpointsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(404)
} | [
-0.9425927400588989,
-1.0607470273971558,
0.06464093178510666,
0.640653669834137,
1.791755199432373,
0.057138822972774506,
0.48366227746009827,
-0.3023691177368164,
0.40009576082229614,
0.8237624764442444,
-0.2287246286869049,
-0.6780742406845093,
-1.168699026107788,
-0.3808860182762146,
... |
func (p *Person) Info() string {
return fmt.Sprintf("%v %v (%v)", p.Firstname, p.Lastname, p.Phone)
} | [
0.10250993818044662,
-0.9322699904441833,
0.5592406392097473,
-0.5332005023956299,
-0.5025448203086853,
0.7747035026550293,
-1.0692968368530273,
-0.14984230697155,
-0.8989816904067993,
-0.15389932692050934,
0.1732458770275116,
-0.5107569694519043,
-0.06001080200076103,
-0.16803281009197235... |
func (c *Client) GetIssues(opts *GetIssuesOptions) ([]*Issue, error) {
return c.GetIssuesContext(context.Background(), opts)
} | [
-0.029232259839773178,
0.6626952886581421,
0.4300047755241394,
0.9285629987716675,
1.3438997268676758,
-0.4070250391960144,
-0.18308179080486298,
-0.81488436460495,
0.960821270942688,
-0.8813039660453796,
0.178273543715477,
0.8817037343978882,
-1.1523889303207397,
-0.35327577590942383,
-... |
func (c *Client) GetIssuesContext(ctx context.Context, opts *GetIssuesOptions) ([]*Issue, error) {
u, err := c.AddOptions("/api/v2/issues", opts)
if err != nil {
return nil, err
}
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return nil, err
}
issues := []*Issue{}
if err := c.Do(ctx, req, &issue... | [
-0.7070138454437256,
0.48097315430641174,
0.7850602269172668,
-0.28589344024658203,
0.42111775279045105,
-0.5899842977523804,
-0.8187282085418701,
-1.0108542442321777,
1.1848856210708618,
-0.10191387683153152,
-0.3189695477485657,
0.7540159821510315,
-0.8021520972251892,
-0.191208600997924... |
func (c *Client) GetUserMySelfRecentrlyViewedIssuesContext(ctx context.Context, opts *GetUserMySelfRecentrlyViewedIssuesOptions) (Issues, error) {
u := "/api/v2/users/myself/recentlyViewedIssues"
u, err := c.AddOptions(u, opts)
if err != nil {
return nil, err
}
req, err := c.NewRequest("GET", u, nil)
if err !... | [
-0.32880985736846924,
0.2739287316799164,
0.6525906324386597,
-0.7827295660972595,
-0.8100960850715637,
-0.6734433770179749,
-0.09646985679864883,
-1.0993680953979492,
0.5843331813812256,
-1.2812156677246094,
-0.2720142602920532,
0.90871262550354,
-0.2816474437713623,
-0.2839222848415375,
... |
func (c *Client) GetIssueCount(opts *GetIssuesCountOptions) (int, error) {
return c.GetIssueCountContext(context.Background(), opts)
} | [
0.29884496331214905,
0.47148463129997253,
0.6583166718482971,
0.11368828266859055,
0.5282615423202515,
-1.0090941190719604,
0.5850813388824463,
-0.03180159628391266,
0.2554702162742615,
-0.5149458050727844,
-0.05326734110713005,
0.6479832530021667,
-0.6023908257484436,
-0.5363340973854065,... |
func (c *Client) GetIssueCountContext(ctx context.Context, opts *GetIssuesCountOptions) (int, error) {
u := "/api/v2/issues/count"
u, err := c.AddOptions(u, opts)
if err != nil {
return 0, err
}
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return 0, err
}
r := new(p)
if err := c.Do(ctx, req, ... | [
-0.37712448835372925,
0.08934959769248962,
1.0115416049957275,
-0.22117719054222107,
-0.2607950270175934,
-0.5692409873008728,
-0.1607484221458435,
-0.2690790295600891,
0.24205568432807922,
0.17206889390945435,
-0.06426618993282318,
0.37469732761383057,
-0.8140483498573303,
-0.498040050268... |
func (c *Client) CreateIssue(input *CreateIssueInput) (*Issue, error) {
return c.CreateIssueContext(context.Background(), input)
} | [
-0.09643080085515976,
-0.07561339437961578,
0.4767323434352875,
1.0049957036972046,
0.03141070157289505,
0.6077199578285217,
-0.06061191111803055,
-0.7375348210334778,
0.4819677770137787,
-0.7298901677131653,
0.021950116381049156,
0.10535454750061035,
-1.4360963106155396,
0.027431080117821... |
func (c *Client) CreateIssueContext(ctx context.Context, input *CreateIssueInput) (*Issue, error) {
u := "/api/v2/issues"
if q := createQueryStringsFromIssueCustomFileds(input.CustomFields); q != "" {
u += "?" + q
}
req, err := c.NewRequest("POST", u, input)
if err != nil {
return nil, err
}
issue := new(... | [
-0.6725978255271912,
-0.4847516715526581,
0.5899469256401062,
0.17482666671276093,
-0.29354327917099,
0.14312417805194855,
-0.14551886916160583,
-0.7093627452850342,
0.6477818489074707,
0.21609896421432495,
-0.670276403427124,
0.21231211721897125,
-0.9393379092216492,
0.003929732833057642,... |
func (c *Client) GetIssue(issueIDOrKey string) (*Issue, error) {
return c.GetIssueContext(context.Background(), issueIDOrKey)
} | [
0.0434182770550251,
0.24416185915470123,
0.37662410736083984,
1.309569001197815,
0.04186546429991722,
-1.1912890672683716,
-0.24310453236103058,
-0.7895943522453308,
1.0929399728775024,
0.21829378604888916,
0.38756871223449707,
0.19710227847099304,
-0.7363957762718201,
0.08643743395805359,... |
func (c *Client) GetIssueContext(ctx context.Context, issueIDOrKey string) (*Issue, error) {
u := fmt.Sprintf("/api/v2/issues/%v", issueIDOrKey)
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return nil, err
}
issue := new(Issue)
if err := c.Do(ctx, req, &issue); err != nil {
return nil, err
}
re... | [
-0.7231427431106567,
0.2126392424106598,
0.6118465065956116,
-0.08436232805252075,
-0.11287495493888855,
-1.168788194656372,
-0.3797774314880371,
-0.8536240458488464,
0.8015842437744141,
0.4328886568546295,
-0.6803089380264282,
0.45215073227882385,
-0.4474114179611206,
0.05310248211026192,... |
func (c *Client) UpdateIssue(issueIDOrKey string, input *UpdateIssueInput) (*Issue, error) {
return c.UpdateIssueContext(context.Background(), issueIDOrKey, input)
} | [
-1.1665263175964355,
-0.6140239834785461,
0.2848808765411377,
1.032974123954773,
-0.8402000665664673,
-0.022405115887522697,
-0.2560521364212036,
-0.04184276983141899,
0.7570658922195435,
0.5187316536903381,
-0.06404900550842285,
0.31617507338523865,
-1.2323921918869019,
-0.269044220447540... |
func (c *Client) UpdateIssueContext(ctx context.Context, issueIDOrKey string, input *UpdateIssueInput) (*Issue, error) {
u := fmt.Sprintf("/api/v2/issues/%v", issueIDOrKey)
if q := createQueryStringsFromIssueCustomFileds(input.CustomFields); q != "" {
u += "?" + q
}
req, err := c.NewRequest("PATCH", u, input)
... | [
-0.9985712766647339,
-0.8790311813354492,
0.5610381364822388,
-0.2555011510848999,
-1.1944862604141235,
-0.2844649851322174,
-0.10755471140146255,
-0.2010040432214737,
0.8867453932762146,
0.7947922945022583,
-0.7059377431869507,
0.17015118896961212,
-1.0435028076171875,
-0.3923158943653106... |
func (c *Client) GetIssueComments(issueIDOrKey string, opts *GetIssueCommentsOptions) ([]*IssueComment, error) {
return c.GetIssueCommentsContext(context.Background(), issueIDOrKey, opts)
} | [
-0.9175633192062378,
-0.22747598588466644,
0.5428045392036438,
0.6269267201423645,
0.12540793418884277,
-1.4036500453948975,
0.2541918456554413,
-0.8925893902778625,
1.1518089771270752,
0.665510892868042,
-0.7312979698181152,
-0.05870279669761658,
-1.0141974687576294,
-0.11432032287120819,... |
func (c *Client) GetIssueCommentsContext(ctx context.Context, issueIDOrKey string, opts *GetIssueCommentsOptions) ([]*IssueComment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments", issueIDOrKey)
req, err := c.NewRequest("GET", u, opts)
if err != nil {
return nil, err
}
issueComment := []*IssueComment{}
... | [
-1.1016122102737427,
-0.03184349462389946,
0.9477037787437439,
-0.2913486063480377,
0.03888169303536415,
-0.9981756210327148,
-0.29852238297462463,
-1.2269972562789917,
1.009955644607544,
0.909933865070343,
-0.714112401008606,
0.2286621481180191,
-0.8179247975349426,
-0.221917986869812,
... |
func (c *Client) CreateIssueComment(issueIDOrKey string, input *CreateIssueCommentInput) (*IssueComment, error) {
return c.CreateIssueCommentContext(context.Background(), issueIDOrKey, input)
} | [
-0.4931606948375702,
-0.8667462468147278,
0.37062206864356995,
0.12100550532341003,
-0.17381082475185394,
-0.18173670768737793,
0.9061648845672607,
-0.7951999306678772,
0.7288249135017395,
0.22395417094230652,
-0.8732538819313049,
-0.31170397996902466,
-0.9281289577484131,
0.16446805000305... |
func (c *Client) CreateIssueCommentContext(ctx context.Context, issueIDOrKey string, input *CreateIssueCommentInput) (*IssueComment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments", issueIDOrKey)
req, err := c.NewRequest("POST", u, input)
if err != nil {
return nil, err
}
issueComment := new(IssueCommen... | [
-0.930575430393219,
-0.7043972015380859,
0.6286454200744629,
-0.4777269661426544,
-0.17692352831363678,
-0.01737477257847786,
0.16237148642539978,
-1.0175373554229736,
0.7929553389549255,
0.5467780232429504,
-0.7379510998725891,
-0.189438596367836,
-0.7453315854072571,
-0.04933274909853935... |
func (c *Client) GetIssueCommentsCount(issueIDOrKey string) (int, error) {
return c.GetIssueCommentsCountContext(context.Background(), issueIDOrKey)
} | [
-0.4047335982322693,
-0.018701549619436264,
0.7437044382095337,
-0.41427791118621826,
-0.28762778639793396,
-1.2351009845733643,
0.9034873843193054,
-0.7682185769081116,
0.2907431125640869,
0.744244396686554,
-0.43801382184028625,
-0.6080803871154785,
-0.8716877102851868,
-0.18165841698646... |
func (c *Client) GetIssueCommentsCountContext(ctx context.Context, issueIDOrKey string) (int, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments/count", issueIDOrKey)
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return 0, err
}
r := new(p)
if err := c.Do(ctx, req, &r); err != nil {
return 0, e... | [
-0.8033082485198975,
0.11153770238161087,
1.1796690225601196,
-0.42718079686164856,
-0.18686743080615997,
-0.748178243637085,
0.27025705575942993,
-0.9536659121513367,
0.17670847475528717,
0.7945518493652344,
-0.5141956210136414,
-0.2345285415649414,
-0.9133843779563904,
-0.277645409107208... |
func (c *Client) GetIssueComment(issueIDOrKey string, commentID int) (*IssueComment, error) {
return c.GetIssueCommentContext(context.Background(), issueIDOrKey, commentID)
} | [
-0.08744603395462036,
-0.4463028609752655,
0.4433428645133972,
0.039390020072460175,
0.05910240858793259,
-1.4653621912002563,
0.65095055103302,
-0.8846582770347595,
0.9709392189979553,
0.4007475972175598,
-0.4362643361091614,
0.26332488656044006,
-0.5445176362991333,
-0.13830260932445526,... |
func (c *Client) GetIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int) (*IssueComment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments/%v", issueIDOrKey, commentID)
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return nil, err
}
issueComment := new(IssueComment)
if er... | [
-0.469531387090683,
-0.352945476770401,
0.8612489700317383,
-0.453494131565094,
-0.10518309473991394,
-1.0417441129684448,
-0.05044190585613251,
-1.1412683725357056,
0.7670719027519226,
0.8326652646064758,
-0.49418905377388,
0.11385305970907211,
-0.5476956367492676,
-0.29486384987831116,
... |
func (c *Client) DeleteIssueComment(issueIDOrKey string, commentID int) (*IssueComment, error) {
return c.DeleteIssueCommentContext(context.Background(), issueIDOrKey, commentID)
} | [
-0.013803341425955296,
-0.591799795627594,
0.46156227588653564,
0.024877075105905533,
-0.20801936089992523,
-1.0406053066253662,
0.930799126625061,
-0.7437366843223572,
1.1763705015182495,
0.1690477430820465,
-0.7565544247627258,
-0.22019578516483307,
-0.4631682336330414,
0.415765792131423... |
func (c *Client) DeleteIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int) (*IssueComment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments/%v", issueIDOrKey, commentID)
req, err := c.NewRequest("DELETE", u, nil)
if err != nil {
return nil, err
}
issueComment := new(IssueComment)
... | [
-0.3397863507270813,
-0.6248859167098999,
0.7175582051277161,
-0.5041375160217285,
-0.1509713977575302,
-0.7126294374465942,
-0.015226125717163086,
-0.8905816674232483,
1.0408804416656494,
0.6562666296958923,
-0.37903058528900146,
0.1212766170501709,
-0.5910621285438538,
-0.214959487318992... |
func (c *Client) UpdateIssueComment(issueIDOrKey string, commentID int, input *UpdateIssueCommentInput) (*IssueComment, error) {
return c.UpdateIssueCommentContext(context.Background(), issueIDOrKey, commentID, input)
} | [
-0.9256829619407654,
-1.2923481464385986,
0.32979491353034973,
-0.15627659857273102,
-0.8670507073402405,
-0.6492210626602173,
1.080330729484558,
-0.540057897567749,
0.8429232835769653,
0.9201877117156982,
-0.8307632803916931,
-0.05468382313847542,
-0.9598227143287659,
-0.27127113938331604... |
func (c *Client) UpdateIssueCommentContext(ctx context.Context, issueIDOrKey string, commentID int, input *UpdateIssueCommentInput) (*IssueComment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments/%v", issueIDOrKey, commentID)
req, err := c.NewRequest("PATCH", u, input)
if err != nil {
return nil, err
}
i... | [
-1.085686206817627,
-1.1876378059387207,
0.6522610187530518,
-0.6238849759101868,
-0.6284824013710022,
-0.3773254454135895,
0.10104238241910934,
-0.7763922214508057,
0.9286289811134338,
1.042873501777649,
-0.6841004490852356,
0.0719389095902443,
-1.0469402074813843,
-0.6120101809501648,
... |
func (c *Client) GetIssueCommentsNotifications(issueIDOrKey string, commentID int) ([]*Notification, error) {
return c.GetIssueCommentsNotificationsContext(context.Background(), issueIDOrKey, commentID)
} | [
-0.14066247642040253,
-0.24299472570419312,
0.6383377313613892,
0.18827968835830688,
0.40529948472976685,
-0.8827989101409912,
0.7317428588867188,
-1.306067705154419,
0.5749818086624146,
0.6803473234176636,
-0.877116322517395,
-0.15111535787582397,
-0.19257190823554993,
0.0362321101129055,... |
func (c *Client) GetIssueCommentsNotificationsContext(ctx context.Context, issueIDOrKey string, commentID int) ([]*Notification, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments/%v/notifications", issueIDOrKey, commentID)
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return nil, err
}
notificati... | [
-0.07582154870033264,
0.5597289800643921,
1.0087577104568481,
-0.009334136731922626,
0.039298392832279205,
-0.7756590843200684,
0.003685807343572378,
-1.3497792482376099,
0.7523922324180603,
1.0477888584136963,
-0.8767436742782593,
0.12528248131275177,
0.21547050774097443,
0.01068588625639... |
func (c *Client) CreateIssueCommentsNotification(issueIDOrKey string, commentID int, input *CreateIssueCommentsNotificationInput) (*IssueComment, error) {
return c.CreateIssueCommentsNotificationContext(context.Background(), issueIDOrKey, commentID, input)
} | [
-0.07422765344381332,
-0.49062880873680115,
0.4383378326892853,
-0.042183369398117065,
0.12613022327423096,
-0.38669899106025696,
0.7872859239578247,
-0.9128146767616272,
0.5951029062271118,
0.3014072775840759,
-1.1676467657089233,
-0.47402432560920715,
-0.4266425669193268,
0.2313359379768... |
func (c *Client) CreateIssueCommentsNotificationContext(ctx context.Context, issueIDOrKey string, commentID int, input *CreateIssueCommentsNotificationInput) (*IssueComment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/comments/%v/notifications", issueIDOrKey, commentID)
req, err := c.NewRequest("POST", u, input)
i... | [
-0.1800200194120407,
-0.2014854997396469,
0.8522257208824158,
-0.3389909565448761,
0.019582474604249,
0.3307844400405884,
0.16913576424121857,
-1.1810123920440674,
0.5865777134895325,
0.7282817363739014,
-1.0459749698638916,
-0.06436312198638916,
-0.2278708666563034,
-0.009543318301439285,... |
func (c *Client) GetIssueAttachments(issueIDOrKey string) ([]*Attachment, error) {
return c.GetIssueAttachmentsContext(context.Background(), issueIDOrKey)
} | [
-1.1408593654632568,
0.3383867144584656,
0.4397010803222656,
1.6140514612197876,
-0.9050340056419373,
-0.6697996854782104,
0.1904561072587967,
-1.1687405109405518,
1.3134217262268066,
0.056458085775375366,
-0.47554725408554077,
-0.08220017701387405,
-1.271165132522583,
0.379172146320343,
... |
func (c *Client) GetIssueAttachmentsContext(ctx context.Context, issueIDOrKey string) ([]*Attachment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/attachments", issueIDOrKey)
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return nil, err
}
attachments := []*Attachment{}
if err := c.Do(ctx, req, &atta... | [
-1.06441330909729,
0.48112428188323975,
0.7171798348426819,
0.36090898513793945,
-0.7876980304718018,
-0.3176039159297943,
-0.18948915600776672,
-1.412110447883606,
1.3183554410934448,
0.40736591815948486,
-0.4719563126564026,
0.24799108505249023,
-0.6141914129257202,
0.15974736213684082,
... |
func (c *Client) GetIssueAttachment(issueIDOrKey string, attachmentID int, writer io.Writer) error {
return c.GetIssueAttachmentContext(context.Background(), issueIDOrKey, attachmentID, writer)
} | [
-0.4976692795753479,
-0.19477368891239166,
0.5122837424278259,
0.5931232571601868,
-0.8317315578460693,
-1.1368731260299683,
0.6575494408607483,
-1.0935267210006714,
0.8743032217025757,
-0.24903807044029236,
0.18752160668373108,
0.02861928753554821,
-0.724869430065155,
-0.18558967113494873... |
func (c *Client) GetIssueAttachmentContext(ctx context.Context, issueIDOrKey string, attachmentID int, writer io.Writer) error {
u := fmt.Sprintf("/api/v2/issues/%v/attachments/%v", issueIDOrKey, attachmentID)
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return err
}
if err := c.Do(ctx, req, writer)... | [
-0.8366901874542236,
-0.2498854398727417,
0.9833988547325134,
-0.05719166621565819,
-0.9147104620933533,
-0.43621858954429626,
0.0394371934235096,
-0.8767464756965637,
1.1093902587890625,
0.43051227927207947,
-0.05995384231209755,
0.25814923644065857,
-0.19526484608650208,
0.04277198389172... |
func (c *Client) DeleteIssueAttachment(issueIDOrKey string, attachmentID int) (*Attachment, error) {
return c.DeleteIssueAttachmentContext(context.Background(), issueIDOrKey, attachmentID)
} | [
-0.26292386651039124,
-0.4822571575641632,
0.5982378125190735,
0.8359350562095642,
-1.1611851453781128,
-0.2323952317237854,
0.6672015190124512,
-0.9965783953666687,
1.749105453491211,
-0.3032592833042145,
0.18358294665813446,
0.02103286236524582,
-0.7429930567741394,
0.33761802315711975,
... |
func (c *Client) DeleteIssueAttachmentContext(ctx context.Context, issueIDOrKey string, attachmentID int) (*Attachment, error) {
u := fmt.Sprintf("/api/v2/issues/%v/attachments/%v", issueIDOrKey, attachmentID)
req, err := c.NewRequest("DELETE", u, nil)
if err != nil {
return nil, err
}
attachment := new(Attach... | [
-0.20291076600551605,
-0.7501592636108398,
0.777972400188446,
-0.016513628885149956,
-1.132745623588562,
-0.011807197704911232,
-0.27983736991882324,
-0.8095144629478455,
1.7433308362960815,
0.11198029667139053,
0.029906729236245155,
0.4680642783641815,
-0.30421802401542664,
-0.09951800107... |
func (c *Client) GetIssueParticipants(issueIDOrKey string) ([]*User, error) {
return c.GetIssueParticipantsContext(context.Background(), issueIDOrKey)
} | [
-0.7056199312210083,
-0.08532176911830902,
0.21749737858772278,
0.23388488590717316,
-0.41645923256874084,
-1.1115411520004272,
-0.11020065099000931,
-0.16976973414421082,
1.5847995281219482,
0.581929624080658,
-0.6514002084732056,
-0.24877016246318817,
-1.1831364631652832,
-0.310963571071... |
func (c *Client) GetIssueParticipantsContext(ctx context.Context, issueIDOrKey string) ([]*User, error) {
u := fmt.Sprintf("/api/v2/issues/%v/participants", issueIDOrKey)
req, err := c.NewRequest("GET", u, nil)
if err != nil {
return nil, err
}
users := []*User{}
if err := c.Do(ctx, req, &users); err != nil {... | [
-1.1235054731369019,
-0.15457803010940552,
0.5554510354995728,
-0.5262035727500916,
-0.18055960536003113,
-0.8143706917762756,
-0.8985863924026489,
-0.23113316297531128,
1.265921950340271,
0.912155032157898,
-0.4978512227535248,
0.24839293956756592,
-1.081817626953125,
-0.34743738174438477... |
func (c *Client) GetIssueSharedFiles(issueIDOrKey string) ([]*SharedFile, error) {
return c.GetIssueSharedFilesContext(context.Background(), issueIDOrKey)
} | [
-0.3577262759208679,
0.6478275656700134,
0.32853415608406067,
0.6475781798362732,
0.19366209208965302,
-0.4010116159915924,
0.8639209270477295,
0.07521147280931473,
0.5863311290740967,
0.05170784145593643,
-0.6762474775314331,
-0.29218199849128723,
-1.050592303276062,
0.22914749383926392,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.