text
stringlengths
8.57k
38.1k
// Copyright 2019 ScyllaDB // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
package model import ( "bytes" "encoding/gob" "fmt" "log" "strings" "github.com/teamhephy/router/utils" modelerUtility "github.com/teamhephy/router/utils/modeler" appv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s....
package main import "fmt" type sMagic struct { toSqBB []bitBoard // all possible atkBoards dep on blockers innerBB bitBoard // atks on empty board magic uint64 shift uint } var mBishopTab [64]sMagic var mRookTab [64]sMagic // all attacks from current square func (m *sMagic) atks(allBB bitBoard) bitBoard ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/core/config_source.proto package core import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" _ "github.com/lyft/protoc-gen-validate/validate" ...
package tsm1 /* A TSM file is composed for four sections: header, blocks, index and the footer. ┌────────┬────────────────────────────────────┬─────────────┬──────────────┐ │ Header │ Blocks │ Index │ Footer │ │5 bytes │ N bytes │ N bytes │ 4 by...
// Copyright 2017 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // make-fuchsia-vol is a temporarily useful script that provisions Fuchsia // volumes based on paths provided. package main import ( "flag" "fmt" "io"...
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.18.1 // source: Runtime/EventHorizon/Subscriptions.proto pa...
// Copyright 2021 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
package operator import ( "errors" "fmt" "os" // kube oauthv1 "github.com/openshift/api/oauth/v1" routev1 "github.com/openshift/api/route/v1" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/klog" ...
package control import ( "bytes" "context" "fmt" "github.com/goradd/gengen/pkg/maps" "github.com/goradd/goradd/pkg/base" "github.com/goradd/goradd/pkg/config" "github.com/goradd/goradd/pkg/datetime" "github.com/goradd/goradd/pkg/html" "github.com/goradd/goradd/pkg/page" html2 "html" "strconv" "time" ) typ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: transformer/request/request.proto package request // import "github.com/ampproject/amppackager/transformer/request" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not o...
package kerb import ( "crypto/rand" "crypto/subtle" "encoding/binary" "github.com/jmckaskill/asn1" "io" "time" ) // GSS requests are a bit screwy in that they are partially asn1 The format // is: // // [APPLICATION 0] IMPLICIT SEQUENCE { // mech OBJECT IDENTIFIER // data of unknown type and may not be asn1 // }...
//---------------------------------------- // 代码由GenlibVcl工具自动生成。 // Copyright © ying32. All Rights Reserved. // //---------------------------------------- package vcl import ( . "github.com/ying32/govcl/vcl/api" . "github.com/ying32/govcl/vcl/types" "unsafe" ) type TImageButton struct { IControl ...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package db import ( "context" "fmt" "strings" "time" "github.com/google/uuid" "github.com/jmoiron/sqlx" "github.com/pkg/errors" "github.com/determined-ai/determined/master/internal/api" "github.com/determined-ai/determined/master/pkg/model" "github.com/determined-ai/determined/master/pkg/ptrs" "github.com...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: ask_plan.proto /* Package sonm is a generated protocol buffer package. It is generated from these files: ask_plan.proto benchmarks.proto bigint.proto capabilities.proto container.proto dwh.proto insonmnia.proto marketplace.proto net.proto node.prot...
// Package graph is used to process graphs. It converts, writes, aligns reads and processes GROOT graphs. package graph import ( "bytes" "fmt" "sort" "strconv" "sync" "github.com/will-rowe/gfa" "github.com/will-rowe/groot/src/lshe" "github.com/will-rowe/groot/src/misc" "github.com/will-rowe/groot/src/seqio" ...
// Code generated by main. DO NOT EDIT. package camt_044_001_03 import ( "bytes" "encoding/xml" "time" ) type ActiveCurrencyAnd13DecimalAmount struct { Value float64 `xml:",chardata"` Ccy ActiveCurrencyCode `xml:"Ccy,attr"` } // Must match the pattern [A-Z]{3,3} type ActiveCurrencyCode string typ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: mesh-packet.proto package rem import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a...
package fmfm import ( "fmt" "math" "sync" "time" "github.com/but80/fmfm.core/ymf" "github.com/but80/fmfm.core/ymf/ymfdata" "gopkg.in/but80/go-smaf.v1/pb/smaf" ) var defaultPC = &smaf.VM35VoicePC{ Version: smaf.VM35FMVoiceVersion_VM5, Name: "default", VoiceType: smaf.VoiceType_FM, FmVoice: &smaf.VM3...
package radix import ( "context" "crypto/sha1" "encoding/hex" "errors" "fmt" "io" "strconv" "strings" "sync" "github.com/mediocregopher/radix/v4/resp" "github.com/mediocregopher/radix/v4/resp/resp3" ) // ActionProperties describes various properties of an Action. It should be // expected that more fields ...
// Copyright 2010-2012 The W32 Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package w32 import ( "unsafe" ) // From MSDN: Windows Data Types // http://msdn.microsoft.com/en-us/library/s3f49ktz.aspx // http://msdn.mi...
package mint import ( "bytes" "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/rsa" _ "crypto/sha256" "crypto/x509" "encoding/asn1" "encoding/hex" "math/big" "testing" ) var ( ecGroups = []namedGroup{namedGroupP256, namedGroupP384, namedGroupP521} ffGroups = []namedGroup{namedGroupFF2048,...
/* * Minio Go Library for Amazon S3 Compatible Cloud Storage * Copyright 2015-2018 Minio, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/L...
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file implements TestFormats; a test that verifies // format strings in the compiler (this directory and all // subdirectories, recursively). // // TestF...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.19.4 // source: envoy/extensions/http/original_ip_detection/custom_header/v3/custom_header.proto package custom_headerv3 import ( _ "github.com/cncf/xds/go/udpa/annotations" v3 "github.com/envoyproxy/go-cont...
/* Copyright 2019-2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
/* Copyright 2017 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/* Copyright 2018 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this fi...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0-devel // protoc v3.17.3 // source: crypto_service.proto package services import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect"...
// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2019 The Go Cloud Development Kit Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
// +build ignore /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributio...
package sarama import ( "fmt" "sync" "time" "github.com/eapache/go-resiliency/breaker" ) func forceFlushThreshold() int { return int(MaxRequestSize - (10 * 1024)) // 10KiB is safety room for misc. overhead, we might want to calculate this more precisely? } // ProducerConfig is used to pass multiple configurati...
package truetype import ( "os" "reflect" "testing" "github.com/benoitkugler/textlayout/fonts" "golang.org/x/image/font/sfnt" fx "golang.org/x/image/math/fixed" ) func pt(x, y float32) fonts.SegmentPoint { return fonts.SegmentPoint{X: x, Y: y} } func moveTo(xa, ya float32) fonts.Segment { return fonts.Segmen...
package bert import ( "bytes" "math/big" "reflect" "testing" ) func TestEncodeNoCompression(t *testing.T) { // Small Integer assertEncode(t, 1, []byte{131, 97, 1}) assertEncode(t, 42, []byte{131, 97, 42}) // Integer assertEncode(t, 257, []byte{131, 98, 0, 0, 1, 1}) assertEncode(t, 1025, []byte{131, 98, 0,...
/* * Copyright 2018 INS Ecosystem * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package snowstorm import ( "fmt" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow" "github.com/ava-labs/avalanchego/snow/choices" "github.com/ava-labs/avalanchego/snow/consensu...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/overload/v3alpha/overload.proto package envoy_config_overload_v3alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" any "githu...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: app/log/config.proto package log import ( log "github.com/v2fly/v2ray-core/v5/common/log" _ "github.com/v2fly/v2ray-core/v5/common/protoext" protoreflect "google.golang.org/protobuf/reflect/...
package bollmaker import ( "context" "fmt" "math" "sync" "github.com/c9s/bbgo/pkg/indicator" "github.com/c9s/bbgo/pkg/util" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/c9s/bbgo/pkg/bbgo" "github.com/c9s/bbgo/pkg/fixedpoint" "github.com/c9s/bbgo/pkg/types" ) // TODO: // 1) add option...
// The MIT License (MIT) // Copyright (c) 2014 <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Copyright (c) 2020 Zededa, Inc. // SPDX-License-Identifier: Apache-2.0 package volumemgr import ( "fmt" "strings" "time" zconfig "github.com/lf-edge/eve/api/go/config" "github.com/lf-edge/eve/pkg/pillar/types" "github.com/lf-edge/eve/pkg/pillar/utils" uuid "github.com/satori/go.uuid" log "github.com/sirup...
package ui import ( "errors" "fmt" "io/ioutil" "log" "math" "sort" "strings" "time" "github.com/charmbracelet/bubbles/paginator" "github.com/charmbracelet/bubbles/spinner" "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/charm" "github.com/c...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: ask_plan.proto /* Package sonm is a generated protocol buffer package. It is generated from these files: ask_plan.proto benchmarks.proto bigint.proto capabilities.proto container.proto dwh.proto insonmnia.proto marketplace.proto net.proto node.prot...
// Copyright 2016-2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package devdrawdriver import ( "bytes" "encoding/binary" "errors" "fmt" "image" "image/color" "image/draw" "io" "io/ioutil" "os" "strconv" "st...
package image // Modified from https://github.com/moby/moby/blob/1009e6a40b295187e038b67e184e9c0384d95538/pkg/archive/archive.go // Licensed under the Apache License Version 2.0 import ( "archive/tar" "bufio" "bytes" "compress/gzip" "fmt" "io" "io/ioutil" ...
package main import "fmt" //The "fmt" package is imported and it will be used inside the main function to print text to the standard output. import "math" import "unsafe" import "time" import "sync" /* What kind of variable type? bool Numeric Types int8, int16, int32, int64, int uint8, uint16, uint32, uint64, uint ...
/** * Tenta DNS Server * * Copyright 2017 Tenta, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
// Copyright 2012 The Freetype-Go Authors. All rights reserved. // Use of this source code is governed by your choice of either the // FreeType License or the GNU General Public License version 2 (or // any later version), both of which can be found in the LICENSE file. package freetype import ( "errors" "fmt" "lo...
// // Copyright (c) 2016 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
package executor import ( "bytes" "encoding/hex" "github.com/33cn/chain33/client/mocks" "github.com/33cn/chain33/types" "github.com/stretchr/testify/mock" "math/big" "strings" "testing" "github.com/33cn/chain33/util" "github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common" zt "github.com/33cn/plugin/plu...
/* * @description : An utilities tool build with GoLang to help user to run build certains files without enter a set of commands with flags (similar with Makefile), supported GoLang, Docker, C and etc... * @version : "1.0.1" (02/06/2020 16:24:33) Rectified unable to build file with command = "build"...
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. package model import ( "fmt" "io" "strconv" "time" "github.com/cmsgov/easi-app/pkg/models" "github.com/google/uuid" ) // Denotes type of a document that is attached to a 508/accessibility request, // which can be one of a number of common types, o...
// Copyright (C) 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: proto/state/types.proto package state import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/golang/protobuf/ptypes/timestamp" types "github.com/tendermint/tendermint/abci/types" types1 "github....
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc (unknown) // source: document/options/annotations.proto package pboptions import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.gola...
/* Copyright 2016-2020 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
// cmd/9c/9.out.h from Vita Nuova. // // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. // Portions Copyright © 1995-1997 <NAME> (<EMAIL>) // Portions Copyright © 1997-1999 Vita Nuova Limited // Portions Copyright © 2000-2008 Vita Nuova Holdings Limited (www.vitanuova.com) // Portions Copyright © ...
package mysqlstream import ( "context" "database/sql" "fmt" "os" "strings" "sync" "time" "github.com/moiot/gravity/pkg/inputs/helper" "github.com/juju/errors" "github.com/pingcap/parser" "github.com/prometheus/client_golang/prometheus" uuid "github.com/satori/go.uuid" gomysql "github.com/siddontang/go-m...
package raft // // this is an outline of the API that raft must expose to // the service (or tester). see comments below for // each of these functions for more details. // // rf = Make(...) // create a new Raft server. // rf.Start(command interface{}) (index, term, isleader) // start agreement on a new Log entry ...
package main import ( "context" "encoding/json" "flag" "fmt" "io/ioutil" "log" "net/http" "os" "strconv" "strings" "time" "github.com/Kucoin/kucoin-go-sdk" "github.com/NYTimes/gziphandler" binance2 "github.com/adshao/go-binance/v2" common "github.com/adshao/go-binance/v2/common" "github.com/binance-ex...
/* * Copyright 2020 <NAME>, Inc. and Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* Copyright © LiquidWeb Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
package discovery import ( "bytes" "encoding/binary" "math/rand" "net" "path/filepath" "sync" "sync/atomic" "time" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/libonomy/libonomy-light/crypto" "github.com/libonomy/libonomy-light/log" "github.com/libonomy/libonomy-light/p2p/config" "github.co...
// Copyright 2018-2019 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "bytes" "context" "flag" "fmt" "io" "io/ioutil" "log" "net" "os" "os/exec" "path/filepath" "strings" "syscall" "uns...
package main import ( "context" "crypto/tls" "errors" "flag" "fmt" "io" "io/ioutil" "log" "net/http" "net/url" "os" "os/exec" "sort" "strings" "text/tabwriter" "golang.org/x/build/gerrit" "golang.org/x/oauth2" "github.com/google/go-github/v36/github" "github.com/mattn/go-shellwords" "github.com/r...
package ics import ( "errors" "fmt" "io/ioutil" "os" "regexp" "strconv" "strings" "sync" "time" duration "github.com/channelmeter/iso8601duration" ) func init() { mutex = new(sync.Mutex) DeleteTempFiles = true FilePath = "tmp/" RepeatRuleApply = false MaxRepeats = 10 } type Parser struct { inputChan...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// Package schema implements core Relational Algrebra schema objects such as Table, // Schema, DataSource, Fields, Headers, Index. package schema import ( "database/sql/driver" "encoding/json" "fmt" "hash/fnv" "sort" "strings" "sync" "time" u "github.com/araddon/gou" "github.com/golang/protobuf/proto" "gi...
package dcrwallet import ( "bytes" "context" "encoding/hex" "fmt" "strings" "sync" "sync/atomic" "time" "github.com/decred/dcrd/chaincfg/chainhash" "github.com/decred/dcrd/chaincfg/v2" "github.com/decred/dcrd/dcrutil/v2" "github.com/decred/dcrd/txscript/v2" "github.com/decred/dcrd/wire" "github.com/dec...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/spanner/v1/result_set.proto package spanner import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _struct "github.com/golang/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference impo...
/* Copyright 2020 Elotl Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
package lmath import ( "math" "gonet/base" ) func M_mulDivS32_C(a int, b int, c int) int{ return int(int64(a) * int64(b) / int64(c)) } func M_catmullrom_C(t float32, p0 float32, p1 float32, p2 float32, p3 float32) float32{ return 0.5 * ((3.0*p1 - 3.0*p2 + p3 - p0)*t*t*t + (2.0*p0 - 5.0*p1 + 4.0*p2 - p3)*t*t+ ...
/* * Public Domain Software * * I (<NAME>) am the author of the source code in this file. * I have placed the source code in this file in the public domain. * * For further information see: http://creativecommons.org/publicdomain/zero/1.0/ */ package getch /* The code in this file was inspired by: http://code...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: Runtime/EventHorizon/Consumer.proto package eventhorizon import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" artifacts "go.dolittle.io/chaostests/contracts/artifacts" pro...
package server import ( "context" "net" "strings" "time" "github.com/cockroachdb/cockroach/pkg/util/syncutil" "github.com/gogo/protobuf/proto" "github.com/pkg/errors" "go.uber.org/atomic" "google.golang.org/grpc" "github.com/elliotcourant/kronos/kronoshttp" "github.com/elliotcourant/kronos/kronosstats" "...
package msf import ( "errors" "fmt" "math" "mosaicmfg.com/ps-postprocess/gcode" ) type TowerLayer struct { TopZ float32 // Z value of the top of this layer Thickness float32 // height of extruded paths Density float32 // 0..1 Transitions []Transition } func (l TowerLayer) String() str...
// Copyright 2019 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
package note import ( "github.com/Joptim/music-rehearsal/theory/interval" "github.com/Joptim/music-rehearsal/theory/natural" "testing" ) func TestNew(t *testing.T) { table := []struct { in string expected Note }{ {"Cb-3", Note{natural.NewTestHelper("C", t), -3, -1}}, {"A0", Note{natural.NewTestHelp...
package unum import ( "math" "github.com/UNO-SOFT/go-xsd/util" ) func Vec3_Back() Vec3 { return Vec3{0, 0, -1} } func Vec3_Down() Vec3 { return Vec3{0, -1, 0} } func Vec3_Fwd() Vec3 { return Vec3{0, 0, 1} } func Vec3_Left() Vec3 { return Vec3{-1, 0, 0} } func Vec3_One() Vec3 { ret...
// Copyright 2021 <NAME>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
package addons import ( "bytes" "context" "fmt" "io" "log" "net" "reflect" "regexp" "strconv" "strings" "sync" "text/template" "time" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/config" "github.com...
// // Define safe prime groups along with some primative operations on the groups. // package srp import "math/big" // // Define the default group to be 4096 bit. Use of a group should always be done // via the "dGrp" variable, rather than calling a "group****()" method directly // //var dGrp = group4096() type gro...
package server /* * go-raknet * * Copyright (c) 2018 beito * * This software is released under the MIT License. * http://opensource.org/licenses/mit-license.php */ import ( "errors" "net" "time" "github.com/beito123/go-raknet/binary" "github.com/beito123/go-raknet/protocol" "github.com/beito123/go-rakne...
package main import ( "bytes" "image" "image/color" "image/draw" "image/png" "math" "time" "github.com/faiface/pixel" "github.com/faiface/pixel/pixelgl" ) const texSize = 64 type actionSquare struct { X int Y int block int active bool } type WorldState struct { Tiles *WorldTiles Las...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: api/ripple/reseller.proto package ripple import ( api "github.com/alphauslabs/blue-sdk-go/api" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/pro...
package main import ( // "math/rand" "encoding/binary" "github.com/kniren/gota/dataframe" "github.com/sbinet/go-python" "gonum.org/v1/gonum/mat" "math" "strconv" "os" "bufio" "errors" "runtime" "github.com/dedis/kyber" "github.com/dedis/kyber/pairing/bn256" "encoding/json" // "fmt" "sort" ) var ( p...
package proxyman import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import v2ray_core_common_net "v2ray.com/core/common/net" import v2ray_core_common_net1 "v2ray.com/core/common/net" import v2ray_core_transport_internet "v2ray.com/core/transport/internet" // Reference imports to suppr...
package telegram import "io" // User struct. type User struct { ID int64 `json:"id"` IsBot bool `json:"is_bot"` FirstName string `json:"first_name"` LastName *string `json:"last_name,omitempty"` Username *string `json:"usern...
package main import ( "fmt" "image" "image/color" _ "image/png" "math" "math/bits" "math/rand" _ "github.com/klauspost/gad/ep06/data" // Load data. "github.com/klauspost/gfx" "golang.org/x/image/draw" ) const ( renderWidth = 640 renderHeight = 360 ) // Generates binary data. // To install go-bindata, d...
package pkg import ( "bytes" "fmt" "net/http" "os" "os/exec" "path" "path/filepath" "regexp" "strings" "sync" "text/template" "time" "qvalet/pkg/utils" "github.com/Masterminds/goutils" "github.com/beyondstorage/go-storage/v4/types" "github.com/gin-gonic/gin" "github.com/pkg/errors" "github.com/siru...
package main import ( "context" "encoding/json" "errors" "fmt" "log" "os" "strconv" "time" "brisk" "github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/mvcc/mvccpb" "github.com/labstack/echo" "github.com/labstack/echo/middleware" "github.com/rs/xid" ) var ( // Etcd 通过配置文件获取Etcd的地址 Etcd ...
// This code is available on the terms of the project LICENSE.md file, // also available online at https://blueoakcouncil.org/license/1.0.0. // Package order defines the Order and Match types used throughout the DEX. package order import ( "database/sql" "database/sql/driver" "encoding/binary" "encoding/hex" "fm...
// Copyright 2021-2022 the Kubeapps contributors. // SPDX-License-Identifier: Apache-2.0 package main import ( "context" "encoding/json" "fmt" "strings" "time" helmv2 "github.com/fluxcd/helm-controller/api/v2beta1" fluxmeta "github.com/fluxcd/pkg/apis/meta" sourcev1 "github.com/fluxcd/source-controller/api/v...
//(C) Copyright [2020] Hewlett Packard Enterprise Development LP // //Licensed under the Apache License, Version 2.0 (the "License"); you may //not use this file except in compliance with the License. You may obtain //a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by a...