text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func NewFrontend() *Server {
return &Server{
ReadHeaderTimeout: 10 * time.Second,
ReadTimeout: 1 * time.Minute,
WriteTimeout: 1 * time.Minute,
IdleTimeout: 75 * time.Second,
TCPKeepAlivePeriod: 60 * time.Second,
GraceTimeout: 30 * time.Second,
WaitBeforeShutdown: 10 * time.Seco... | [
-0.09960626065731049,
-1.040039300918579,
0.4977593421936035,
-0.39176589250564575,
-0.11530325561761856,
-0.0034343842417001724,
0.05965213477611542,
-0.8831385374069214,
0.38219332695007324,
-0.23169027268886566,
-0.22457076609134674,
0.9339812994003296,
-0.5436455011367798,
0.6344518065... |
func NewBackend() *Server {
return &Server{
IdleTimeout: 620 * time.Second,
TCPKeepAlivePeriod: 3 * time.Minute,
GraceTimeout: 30 * time.Second,
WaitBeforeShutdown: 10 * time.Second,
TrustProxy: Trusted(),
H2C: true,
Handler: http.NotFoundHandler(),
}
} | [
-0.167136088013649,
-0.9630951285362244,
0.5556532144546509,
-0.0366036519408226,
0.3295013904571533,
0.25612983107566833,
0.2832632064819336,
-0.31419679522514343,
0.2663986384868622,
0.5637738108634949,
-0.2452239841222763,
0.7816458940505981,
-1.1292738914489746,
-0.18671134114265442,
... |
func GetBearerToken(r *http.Request) (string, error) {
// FIXME optimize this !!
auth := r.Header.Get("Authorization")
if len(auth) == 0 {
return "", ErrNoToken
}
parts := strings.Split(auth, " ")
if len(parts) != 2 {
return "", ErrNoToken
}
if parts[0] == "Bearer" {
return parts[1], nil
}
return ""... | [
0.11072348803281784,
-0.2696390151977539,
1.1810368299484253,
0.5362051129341125,
-0.4344046711921692,
-0.5599367618560791,
-0.030974404886364937,
0.28665217757225037,
0.7027899622917175,
-0.8652110695838928,
0.5133716464042664,
1.0950334072113037,
0.062170956283807755,
0.9345155954360962,... |
func GetClientID(ctx context.Context, r *http.Request) (string, error) {
token, err := GetBearerToken(r)
if err != nil {
return "", err
}
// FIXME optimize this, e.g. implement caching
auth, err := FindAuthorizationByToken(ctx, token)
if err != nil {
return "", err
}
if auth == nil {
return "", ErrNotAu... | [
0.918294370174408,
-0.09577837586402893,
0.6920605301856995,
0.4754239618778229,
-0.35288381576538086,
-0.0812850296497345,
0.540026843547821,
-1.0342999696731567,
0.729736864566803,
0.810130774974823,
1.3072391748428345,
0.6400367617607117,
0.15236997604370117,
0.6811655759811401,
0.774... |
func ConfirmLoginChallenge(ctx context.Context, token string) (*account.Account, int, error) {
if token == "" {
return nil, http.StatusUnauthorized, ErrNoToken
}
acc, err := account.FindAccountByToken(ctx, token)
if err != nil {
return nil, http.StatusInternalServerError, err
}
if acc == nil {
return nil, h... | [
0.04265782609581947,
-0.3819466531276703,
0.42176762223243713,
-0.12535463273525238,
-0.7277307510375977,
-0.3391815423965454,
-0.23094980418682098,
0.13054491579532623,
0.2771976590156555,
0.38559356331825256,
-0.6359660625457764,
0.5255945920944214,
-0.17727354168891907,
0.01161062251776... |
func HTTPAction(srcPod string, target string, kub *helpers.Kubectl) ResultType {
command := fmt.Sprintf(
"%s exec -n %s %s 2>/dev/null -- %s --output /dev/stout -w '%%{http_code}'",
helpers.KubectlCmd, helpers.DefaultNamespace,
srcPod, helpers.CurlFail(target))
log.Infof("Executing HTTPAction '%s'", command)
... | [
-0.8460977077484131,
-0.18858622014522552,
0.7543251514434814,
-0.11036786437034607,
0.35613349080085754,
0.08764898777008057,
0.1383708268404007,
-0.1515820473432541,
-0.15459710359573364,
1.1931575536727905,
0.09016309678554535,
0.6704321503639221,
-0.9213694930076599,
0.1756181269884109... |
func HTTPActionPrivate(srcPod string, dest TargetDetails, kub *helpers.Kubectl) ResultType {
return HTTPAction(
srcPod,
fmt.Sprintf("http://%s/private", dest),
kub)
} | [
-1.2567131519317627,
-0.147532656788826,
0.5517771244049072,
0.046896349638700485,
0.5865329504013062,
0.10133130103349686,
-0.7562805414199829,
-1.409316062927246,
-0.14727537333965302,
0.07151961326599121,
-0.18949410319328308,
1.3437697887420654,
-0.23113027215003967,
0.2017890810966491... |
func HTTPActionPublic(srcPod string, dest TargetDetails, kub *helpers.Kubectl) ResultType {
return HTTPAction(
srcPod,
fmt.Sprintf("http://%s/public", dest),
kub)
} | [
-0.5832289457321167,
-0.02226869761943817,
0.37922337651252747,
0.14667093753814697,
0.5816099643707275,
0.6849802732467651,
-0.5946797132492065,
-0.5593860745429993,
-1.3072786331176758,
0.7153210639953613,
-0.3781476318836212,
1.2706364393234253,
0.20811770856380463,
0.2866019904613495,
... |
func NetPerfAction(srcPod string, dest TargetDetails, kub *helpers.Kubectl) ResultType {
return ResultType{}
} | [
-0.5451102256774902,
0.1340617686510086,
0.2441369593143463,
-0.021320465952157974,
0.4982335865497589,
-0.6370168924331665,
-0.09186477214097977,
-0.6614426374435425,
0.11366745084524155,
-0.24879741668701172,
-0.25862613320350647,
-0.5237937569618225,
-0.3946388065814972,
0.1834601163864... |
func PingAction(srcPod string, dest TargetDetails, kub *helpers.Kubectl) ResultType {
command := fmt.Sprintf("%s exec -n %s %s -- %s",
helpers.KubectlCmd, helpers.DefaultNamespace,
srcPod, helpers.Ping(string(dest.IP)))
res := kub.Exec(command)
if res.WasSuccessful() {
return ResultOK
}
return ResultTimeout... | [
-0.47004303336143494,
0.062011148780584335,
0.5847107172012329,
0.06756296753883362,
0.6486207842826843,
0.44933903217315674,
-0.3795253336429596,
-0.06291797757148743,
-0.11159877479076385,
1.5300711393356323,
0.2732833921909332,
0.4193090498447418,
-0.7759585380554199,
-0.124187223613262... |
func (l *lexer) peek() rune {
r := l.next()
l.backup()
return r
} | [
0.641192615032196,
0.38442203402519226,
0.5788355469703674,
-0.8393067121505737,
-0.5399959087371826,
-0.3918866515159607,
-0.3863028883934021,
-0.8909308314323425,
-0.3142149746417999,
-0.06007983908057213,
0.5489498376846313,
0.7148702144622803,
-0.12553641200065613,
-0.26994839310646057... |
func (l *lexer) backup() {
l.pos -= l.width
} | [
-0.23667772114276886,
-0.34855175018310547,
0.37226617336273193,
-0.839096188545227,
-0.4359641671180725,
0.4367980360984802,
0.256801038980484,
0.455432653427124,
-0.03265273571014404,
0.3860871195793152,
0.04851235821843147,
-0.3792530596256256,
-0.5442819595336914,
0.04849392920732498,
... |
func (l *lexer) accept(valid string) bool {
if strings.IndexRune(valid, l.next()) >= 0 {
return true
}
l.backup()
return false
} | [
-0.2277224361896515,
-0.0499238446354866,
0.7151437401771545,
-0.15194067358970642,
-1.5209391117095947,
0.5541842579841614,
0.004031124524772167,
0.4762134552001953,
-0.3036136329174042,
0.028674844652414322,
0.21823501586914062,
-0.29937973618507385,
-1.3809460401535034,
0.44179800152778... |
func (l *lexer) acceptRuneRun(valid string) {
for strings.IndexRune(valid, l.next()) >= 0 {
}
l.backup()
} | [
-0.22085516154766083,
-0.9058427810668945,
0.44340968132019043,
-0.6237251162528992,
-1.1162233352661133,
0.2747355103492737,
0.3246026933193207,
0.8188567757606506,
-0.46424001455307007,
-0.25046175718307495,
0.05632990598678589,
0.5342897176742554,
-1.318717360496521,
0.5840049386024475,... |
func lexOpenParen(l *lexer) stateFn {
l.emit(_LPAREN)
l.parenDepth++
r := l.next()
switch r {
case ' ', '\t', '\n', '\r':
return lexWhitespace
case '\'':
return lexQuote
case '`':
return lexQuasiquote
case ',':
return lexUnquote
case '(':
return lexOpenParen
case ')':
return lexCloseParen
case... | [
-0.17012493312358856,
-0.7858085036277771,
0.7062814235687256,
-0.8508524894714355,
-1.771844744682312,
0.024746524170041084,
-0.2012987583875656,
0.24621035158634186,
0.20614467561244965,
-1.0465754270553589,
0.08932928740978241,
0.2814144492149353,
-0.41483786702156067,
-0.14827422797679... |
func lexInt(l *lexer) stateFn {
digits := "0123456789"
l.acceptRuneRun(digits)
r := l.peek()
switch r {
case ' ', '\t', '\n':
l.emit(_INT)
l.next()
return lexWhitespace
case '.':
l.next()
return lexFloat
case ')':
l.emit(_INT)
l.next()
return lexCloseParen
case ';':
l.emit(_INT)
l.next()
... | [
0.7474000453948975,
-0.5292305946350098,
0.5831718444824219,
-0.7876543998718262,
-0.9342451095581055,
-0.20704638957977295,
-0.4855499267578125,
-0.16811087727546692,
-0.21667233109474182,
-0.5483524203300476,
0.16571031510829926,
-0.01608036831021309,
0.4571985900402069,
0.11409790813922... |
func lexFloat(l *lexer) stateFn {
digits := "0123456789"
l.acceptRuneRun(digits)
l.emit(_FLOAT)
r := l.next()
switch r {
case ' ', '\t', '\n':
return lexWhitespace
case ')':
return lexCloseParen
case ';':
return lexComment
}
return l.errorf("unexpected run in lexFloat: %c", r)
} | [
1.2318851947784424,
0.44304147362709045,
0.4251972436904907,
0.0025706293527036905,
-0.42199820280075073,
-0.45247822999954224,
-0.08775702863931656,
0.29136866331100464,
-0.5876012444496155,
-0.9964419007301331,
0.3475624918937683,
-0.28471702337265015,
0.14755207300186157,
0.887705147266... |
func lexCloseParen(l *lexer) stateFn {
l.emit(_RPAREN)
l.parenDepth--
if l.parenDepth < 0 {
return l.errorf("unexpected close paren")
}
r := l.next()
switch r {
case ' ', '\t', '\n':
return lexWhitespace
case '(':
return lexOpenParen
case ')':
return lexCloseParen
case ';':
return lexComment
}
re... | [
0.49476078152656555,
-0.8440498113632202,
0.7293151021003723,
-0.46493038535118103,
-1.5892419815063477,
0.309847891330719,
-0.592452883720398,
-0.19635772705078125,
-0.17668260633945465,
-0.3938383162021637,
0.5774975419044495,
-0.10039908438920975,
-0.5630226135253906,
0.1138008236885070... |
func (c *Client) DeleteAlarms(ctx context.Context, params *DeleteAlarmsInput, optFns ...func(*Options)) (*DeleteAlarmsOutput, error) {
if params == nil {
params = &DeleteAlarmsInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DeleteAlarms", params, optFns, c.addOperationDeleteAlarmsMiddlewares)
if err !... | [
-0.4302937090396881,
0.4087212383747101,
0.6591726541519165,
0.6103606224060059,
0.6498233675956726,
-0.3662814199924469,
0.28802722692489624,
-1.5425407886505127,
0.980940043926239,
-0.44699782133102417,
-0.6006636023521423,
1.171038269996643,
-0.713959813117981,
-0.38983431458473206,
-... |
func initPxMap() [][]bool {
maze, err := os.Open(mazeFile)
if err != nil {
log.Fatal(err)
}
defer maze.Close()
colorMap, err := png.Decode(maze)
if err != nil {
log.Fatal(err)
}
sizeX = colorMap.Bounds().Max.X
sizeY = colorMap.Bounds().Max.Y
var pxMap [][]bool
for x := 0; x < sizeX; x++ {
var temp [... | [
-0.9288319945335388,
-0.42487165331840515,
0.8693007230758667,
-0.8819826245307922,
-0.4002287983894348,
0.47164174914360046,
0.5495111346244812,
0.4298417270183563,
0.24766357243061066,
0.6102271676063538,
-0.21007132530212402,
-0.2861260175704956,
-0.7093865871429443,
0.7276715040206909,... |
func saveImage(nodeMap [][]node, file string) {
solved := image.NewRGBA(image.Rect(0, 0, sizeX, sizeY))
for x := 0; x < sizeX; x++ {
for y := 0; y < sizeY; y++ {
if nodeMap[x][y].nodeType == "wall" {
solved.Set(x, y, color.Black)
} else {
solved.Set(x, y, color.White)
}
}
}
for i := 0; i < len... | [
-0.851799726486206,
-0.1400572806596756,
1.0118948221206665,
-0.6092728972434998,
0.5874812602996826,
0.04416889697313309,
1.0214940309524536,
-0.4244862496852875,
-0.6399760842323303,
0.8479548692703247,
-0.07092823833227158,
-0.5088804960250854,
-0.4661902189254761,
0.6685791611671448,
... |
func initNodeMap(pxMap [][]bool) {
for x := 0; x < sizeX; x++ {
var temp []node
for y := 0; y < sizeY; y++ {
temp = append(temp, node{})
}
nodeMap = append(nodeMap, temp)
}
} | [
-1.2813483476638794,
0.6463093161582947,
0.4617336690425873,
-0.6008042097091675,
0.2939629554748535,
0.4798709750175476,
0.1478351503610611,
-0.17050229012966156,
0.2635013163089752,
0.26164308190345764,
-0.3041565418243408,
-0.30944693088531494,
-0.2734750211238861,
0.4492911100387573,
... |
func initAdjMap(pxMap [][]bool) {
for x := 0; x < sizeX; x++ {
for y := 0; y < sizeY; y++ {
if pxMap[x][y] && nodeMap[x][y].nodeType != "dEnd" && nodeMap[x][y].nodeType != "path" {
//scanning x++
ix := x
iy := y
for pxMap[ix][y] {
if ix+1 < sizeX {
ix++
} else {
break
}
... | [
-0.37108826637268066,
0.3773344159126282,
1.0721700191497803,
-0.555343747138977,
-0.80502849817276,
0.3734387159347534,
0.9016438126564026,
-0.8108757734298706,
0.1271064132452011,
0.2598126530647278,
0.6226228475570679,
-0.6917952299118042,
-0.5976407527923584,
0.2982613444328308,
-0.1... |
func wBfs(startNode *node) *node {
var bfsQueue []*node
bfsQueue = append(bfsQueue, startNode)
currNode := startNode
var endNode *node
for currNode.nodeType != "end" {
currNode.visited = true
//Sorting the weight array of the current node se the cheapest nodes are scanned first
start := 0
for i := 0; i < l... | [
0.179616317152977,
-0.4624681770801544,
1.0368983745574951,
-1.0379825830459595,
0.12211237847805023,
-0.39628663659095764,
0.5443959832191467,
-0.32314836978912354,
-0.09788617491722107,
0.10992882400751114,
0.7980826497077942,
1.4424670934677124,
-1.3460863828659058,
0.27570125460624695,... |
func Verify() {
list, _ := proxyServiceInstance.GetUnVerified()
for _, p := range list {
verifyJob <- p
}
} | [
0.15158531069755554,
0.4050034284591675,
0.43696871399879456,
0.5528208613395691,
1.0534383058547974,
0.3456881642341614,
-0.09750748425722122,
0.329602986574173,
-0.6676980257034302,
-0.9031780958175659,
-1.177752137184143,
0.6730585694313049,
-1.053624153137207,
1.532423496246338,
-0.7... |
func (s Service) Update(ctx context.Context, req *productpb.UpdateRequest) (product *productpb.Product, err error) {
var updateParams bson.M
if err = mapstructure.Decode(req, &updateParams); err != nil {
log.Error(err)
return
}
updateLowerParams := make(bson.M, len(updateParams))
for key, val := range updatePa... | [
-0.9023385643959045,
-0.9065502285957336,
0.5644367933273315,
0.6230522394180298,
0.2504773736000061,
0.6745834946632385,
0.007891296409070492,
-0.7224571108818054,
0.14497067034244537,
0.4454295039176941,
0.10119564086198807,
0.8801797032356262,
-1.3925886154174805,
0.35148873925209045,
... |
func NewClient(config *cfg.ProxyConfig, cancel context.CancelFunc) (client *proxy.Client) {
client, _ = proxy.NewClient(config, ns, cancel)
return
} | [
0.8656699657440186,
0.18199874460697174,
0.21457937359809875,
0.11700741946697235,
-0.8036789894104004,
-0.3681159019470215,
0.6359513998031616,
0.5874086618423462,
-0.031784214079380035,
0.06753544509410858,
-0.3353007137775421,
0.18896134197711945,
-0.32757389545440674,
-1.08101785182952... |
func IsCPF(doc string) bool {
const (
size = 9
pos = 10
)
return isCPFOrCNPJ(doc, CPFRegexp, size, pos)
} | [
0.3660338222980499,
-0.014541435986757278,
0.1376567929983139,
0.1021340936422348,
-0.6459247469902039,
-0.5334610342979431,
0.5417363047599792,
0.6789147853851318,
-0.1497540920972824,
0.1483086347579956,
-0.81646329164505,
-0.1285874843597412,
-0.996746838092804,
0.4492596685886383,
-0... |
func IsCNPJ(doc string) bool {
const (
size = 12
pos = 5
)
return isCPFOrCNPJ(doc, CNPJRegexp, size, pos)
} | [
-0.010984553024172783,
-0.4067738950252533,
0.06425133347511292,
0.49298638105392456,
-1.2481091022491455,
0.10265679657459259,
0.3545534014701843,
0.2933274805545807,
0.07621277868747711,
0.05651651322841644,
-0.37424105405807495,
-0.9086443781852722,
-1.224172592163086,
0.878002047538757... |
func isCPFOrCNPJ(doc string, pattern *regexp.Regexp, size int, position int) bool {
if !pattern.MatchString(doc) {
return false
}
// Removes special characters.
clean(&doc)
// Invalidates documents with all
// digits equal.
if allEq(doc) {
return false
}
// Calculates the first digit.
d := doc[:size]
... | [
-0.09594205766916275,
-0.09010644257068634,
0.3042989671230316,
-0.28441664576530457,
-0.7462932467460632,
-0.3135077655315399,
0.5900905728340149,
-0.13599763810634613,
-0.011736659333109856,
0.019650669768452644,
-0.2205091267824173,
-0.4279780387878418,
-0.5276603698730469,
0.2609075605... |
func clean(doc *string) {
buf := bytes.NewBufferString("")
for _, r := range *doc {
if unicode.IsDigit(r) {
buf.WriteRune(r)
}
}
*doc = buf.String()
} | [
0.38633108139038086,
0.2553921937942505,
0.4317503571510315,
-0.22720596194267273,
-0.802497148513794,
0.2655718922615051,
0.02092435024678707,
-0.3080717921257019,
-0.2845191955566406,
0.5504855513572693,
-0.41142311692237854,
0.08968821167945862,
-0.9869006872177124,
0.6846489310264587,
... |
func allEq(doc string) bool {
base := doc[0]
for i := 1; i < len(doc); i++ {
if base != doc[i] {
return false
}
}
return true
} | [
-0.5835948586463928,
-0.4454793334007263,
0.7213824391365051,
1.0214216709136963,
-0.6103869080543518,
0.7912722826004028,
-0.3998667299747467,
0.5553343296051025,
-0.3667723834514618,
0.49482786655426025,
-0.6195341348648071,
-0.3199363350868225,
-0.6929923295974731,
0.48776715993881226,
... |
func calculateDigit(doc string, position int) string {
var sum int
for _, r := range doc {
sum += int(r-'0') * position
position--
if position < 2 {
position = 9
}
}
sum %= 11
if sum < 2 {
return "0"
}
return strconv.Itoa(11 - sum)
} | [
0.19547519087791443,
-0.39026200771331787,
0.669110119342804,
-0.821249783039093,
-0.3362736403942108,
0.24901390075683594,
0.28985831141471863,
0.5286538004875183,
-0.0692603811621666,
0.4035470187664032,
-0.6614552736282349,
-1.2175697088241577,
-0.33844923973083496,
0.11838635057210922,... |
func (r *Repository) GetAll() ([]Provider, error) {
glog.Info("Querying for all providers")
collection := r.Mongo.Database(dbName).Collection(collectionName)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
cur, err := collection.Find(ctx, bson.D{})
if err != nil {
glog.... | [
-0.23057159781455994,
0.027281271293759346,
0.4883207678794861,
0.40247929096221924,
0.47087839245796204,
0.5879051089286804,
-0.8285872936248779,
0.11798280477523804,
0.4145820736885071,
0.8331338167190552,
-0.03000687062740326,
1.2764238119125366,
-0.9169685244560242,
1.0317147970199585,... |
func (r *Repository) GetOne(uuid apimongo.UUID) (*Provider, error) {
glog.Infof("Querying for provider with UUID: %s", uuid)
collection := r.Mongo.Database(dbName).Collection(collectionName)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
var provider Provider
err := col... | [
-1.0490919351577759,
0.763390064239502,
0.6254461407661438,
-0.3607681095600128,
0.4518829584121704,
-0.10033643245697021,
-0.02629844844341278,
0.03707252815365791,
-0.05965287610888481,
1.0113216638565063,
-0.27712613344192505,
0.24187397956848145,
-1.3601328134536743,
-0.354855567216873... |
func (r *Repository) CreateOne(provider Provider) bool {
glog.Infof("Creating new provider: %+v", provider)
collection := r.Mongo.Database(dbName).Collection(collectionName)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
_, err := collection.InsertOne(ctx, provider)
if ... | [
-1.164872169494629,
1.2038702964782715,
0.7956231832504272,
-0.48823297023773193,
1.0334750413894653,
1.2117252349853516,
0.12617215514183044,
-0.06329882144927979,
0.011965456418693066,
1.292265772819519,
-0.9541248679161072,
-1.1519620418548584,
-1.6188486814498901,
0.5965168476104736,
... |
func (r *Repository) DeleteOne(uuid apimongo.UUID) (bool, error) {
glog.Infof("Deleting provider with UUID: %s", uuid)
collection := r.Mongo.Database(dbName).Collection(collectionName)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
res, err := collection.DeleteOne(ctx, b... | [
-1.6041429042816162,
0.9787980318069458,
0.778245210647583,
-0.4265207350254059,
0.4415963590145111,
0.7317428588867188,
0.32572898268699646,
0.3201451301574707,
-0.15215611457824707,
1.2319965362548828,
-0.6456430554389954,
-0.42239266633987427,
-1.3640621900558472,
0.011584149673581123,
... |
func (r *Repository) DeleteAll(uuids []apimongo.UUID) (bool, error) {
glog.Infof("Deleting providers with UUID: %v", uuids)
collection := r.Mongo.Database(dbName).Collection(collectionName)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
filter := bson.M{"_id": bson.M{"$i... | [
-0.9871252179145813,
0.3515184819698334,
0.746346116065979,
-0.017620472237467766,
-0.04881235957145691,
0.6529201865196228,
-0.3576693534851074,
0.5276992321014404,
0.006787026301026344,
1.2585582733154297,
-0.05718649551272392,
-0.1448323279619217,
-0.9813206195831299,
0.4870354235172272... |
func NewXXHash64(seed uint64) (*XXHash64, error) {
this := new(XXHash64)
this.seed = seed
return this, nil
} | [
0.03088037110865116,
0.23253679275512695,
0.32119765877723694,
1.7296816110610962,
-0.8444749116897583,
-0.8592996001243591,
-0.8072503209114075,
0.10197075456380844,
0.021453192457556725,
-0.4649142026901245,
-0.9073578715324402,
-0.2910604178905487,
0.1128273457288742,
0.4999547600746155... |
func (this *XXHash64) SetSeed(seed uint64) {
this.seed = seed
} | [
0.4272083640098572,
0.3378443717956543,
0.2413305938243866,
1.0503541231155396,
-0.4711555242538452,
0.5426861643791199,
-0.20539619028568268,
0.39414575695991516,
0.902931809425354,
-0.9194908142089844,
-1.092576026916504,
0.5017538070678711,
-0.09182950109243393,
0.5594019293785095,
-0... |
func (this *XXHash64) Hash(data []byte) uint64 {
end := len(data)
var h64 uint64
n := 0
if end >= 32 {
end32 := end - 32
v1 := this.seed + _XXHASH_PRIME64_1 + _XXHASH_PRIME64_2
v2 := this.seed + _XXHASH_PRIME64_2
v3 := this.seed
v4 := this.seed - _XXHASH_PRIME64_1
for n <= end32 {
buf := data[n : n... | [
0.21244068443775177,
0.44875776767730713,
1.0057287216186523,
0.8734505772590637,
-0.4067844748497009,
0.5666705369949341,
0.0636003166437149,
-0.276361346244812,
0.3352012634277344,
-0.19776245951652527,
-0.5757867693901062,
-0.018998119980096817,
-0.32021084427833557,
0.2106943428516388,... |
func (opts CreateOptions) toConfig() createConfig {
cfg := createConfig{}
for _, v := range opts {
v(&cfg)
}
return cfg
} | [
-0.10560552030801773,
0.1259198635816574,
0.37351253628730774,
-0.20337510108947754,
1.162922978401184,
-0.2174825519323349,
0.22770752012729645,
0.0943276658654213,
-0.038744304329156876,
1.082816481590271,
-0.5707216858863831,
-0.21050682663917542,
-0.027526777237653732,
0.87145507335662... |
func (opts CreateOptions) Extend(other CreateOptions) CreateOptions {
var out CreateOptions
out = append(out, opts...)
out = append(out, other...)
return out
} | [
0.13354767858982086,
0.1455080658197403,
0.5368327498435974,
0.7217659950256348,
0.4739890992641449,
0.31685468554496765,
-1.5227704048156738,
-0.31802207231521606,
0.6694812774658203,
0.04841669648885727,
-0.9032921195030212,
0.5826659798622131,
-0.1515815258026123,
0.885779619216919,
-... |
func (opts CreateOptions) Data() map[string][]byte {
return opts.toConfig().Data
} | [
-0.9717148542404175,
-0.041798245161771774,
0.21091507375240326,
-0.7830064296722412,
0.571371853351593,
1.0944597721099854,
-0.5077399015426636,
-0.7376548647880554,
-0.08692924678325653,
-0.06758034229278564,
-0.8079195022583008,
0.42441120743751526,
0.471554696559906,
0.4610302746295929... |
func (opts CreateOptions) Labels() map[string]string {
return opts.toConfig().Labels
} | [
-1.2059788703918457,
-0.06835509836673737,
0.24138860404491425,
-1.3023203611373901,
0.5840694904327393,
0.9427760243415833,
-1.1510661840438843,
-0.7524518966674805,
-0.090879887342453,
0.8732821941375732,
-0.2811252772808075,
-0.12665286660194397,
-0.17586517333984375,
0.5143283605575562... |
func (opts CreateOptions) Namespace() string {
return opts.toConfig().Namespace
} | [
0.10349026322364807,
-0.0349816270172596,
0.14922258257865906,
0.12889376282691956,
0.9718967080116272,
0.7150464653968811,
-0.102824367582798,
-1.2555696964263916,
1.0977238416671753,
-0.04216742888092995,
0.35779497027397156,
0.7315354943275452,
-0.1310342401266098,
0.05565829202532768,
... |
func (opts CreateOptions) StringData() map[string]string {
return opts.toConfig().StringData
} | [
-0.7005977034568787,
-0.5973290801048279,
0.24813562631607056,
-1.284045934677124,
0.6356306672096252,
1.1832269430160522,
-0.648911714553833,
-0.6172298789024353,
-0.009389366023242474,
0.26536107063293457,
-0.44561314582824707,
0.852558434009552,
0.347250372171402,
0.17019179463386536,
... |
func WithCreateData(val map[string][]byte) CreateOption {
return func(cfg *createConfig) {
cfg.Data = val
}
} | [
0.10891732573509216,
-0.04987166449427605,
0.10448753088712692,
-0.4649289548397064,
0.14655129611492157,
0.64235919713974,
-0.41558465361595154,
-0.7429478168487549,
0.24488534033298492,
-0.28536227345466614,
-0.7909599542617798,
-0.8973059058189392,
0.8533214926719666,
1.470933437347412,... |
func WithCreateLabels(val map[string]string) CreateOption {
return func(cfg *createConfig) {
cfg.Labels = val
}
} | [
-0.07987790554761887,
-0.10619284212589264,
0.20081909000873566,
-0.8366739153862,
0.3638603687286377,
0.3063068091869354,
-0.5467220544815063,
-0.9847615361213684,
-0.4862804412841797,
0.8232841491699219,
-0.13686881959438324,
-1.2669715881347656,
0.2782733142375946,
1.187970757484436,
... |
func WithCreateNamespace(val string) CreateOption {
return func(cfg *createConfig) {
cfg.Namespace = val
}
} | [
0.11742434650659561,
0.026382068172097206,
0.2699897885322571,
-0.23166856169700623,
0.14593204855918884,
-0.11336354166269302,
0.12430322915315628,
-1.5728992223739624,
0.7508409023284912,
0.599646270275116,
-0.6403590440750122,
-1.0123955011367798,
0.6519559025764465,
1.786155343055725,
... |
func WithCreateStringData(val map[string]string) CreateOption {
return func(cfg *createConfig) {
cfg.StringData = val
}
} | [
-0.20147885382175446,
-0.2830323278903961,
0.18713004887104034,
-0.8231759667396545,
0.054800864309072495,
0.9592911601066589,
-0.36139345169067383,
-0.6228109002113342,
-0.6370572447776794,
0.249595046043396,
-0.48852914571762085,
-0.44081100821495056,
0.5711369514465332,
0.69699031114578... |
func CreateOptionDefaults() CreateOptions {
return CreateOptions{
WithCreateNamespace("default"),
}
} | [
0.8631788492202759,
0.4248623549938202,
0.12158030271530151,
0.7842279076576233,
2.2220945358276367,
0.2482437789440155,
-0.7122737169265747,
-0.6830035448074341,
0.6684659719467163,
0.2627401053905487,
-0.7099798917770386,
-1.018364429473877,
-0.3271639049053192,
0.5770856738090515,
-1.... |
func NewEvent(timestampMs int64, message string) *Event {
event := &Event{
InputLogEvent: &cloudwatchlogs.InputLogEvent{
Timestamp: aws.Int64(timestampMs),
Message: aws.String(message)},
}
return event
} | [
1.3986282348632812,
-0.045683734118938446,
0.3815341591835022,
-0.19130375981330872,
-0.3243797719478607,
0.37500837445259094,
-0.5111263990402222,
-0.33224883675575256,
0.44457224011421204,
-0.2599535584449768,
0.16608422994613647,
1.276144027709961,
-0.2185235321521759,
-0.54635238647460... |
func (logEvent *Event) eventPayloadBytes() int {
return len(*logEvent.InputLogEvent.Message) + perEventHeaderBytes
} | [
0.4360204339027405,
-0.06265361607074738,
0.7888190746307373,
-1.1122967004776,
-0.3003416359424591,
-0.052841875702142715,
-0.7487549185752869,
-0.7434755563735962,
0.7350589632987976,
-0.2515115439891815,
-0.6729685664176941,
-0.09303540736436844,
-0.5264008641242981,
-0.3859614729881286... |
func newEventBatch(key PusherKey) *eventBatch {
return &eventBatch{
putLogEventsInput: &cloudwatchlogs.PutLogEventsInput{
LogGroupName: aws.String(key.LogGroupName),
LogStreamName: aws.String(key.LogStreamName),
LogEvents: make([]*cloudwatchlogs.InputLogEvent, 0, maxRequestEventCount)},
}
} | [
0.7103618383407593,
0.050864968448877335,
0.21163645386695862,
-0.17908068001270294,
-0.6714972853660583,
-0.3277943432331085,
-0.2886275053024292,
-0.5755873918533325,
0.14621089398860931,
-0.25331878662109375,
0.0162558201700449,
0.5310299396514893,
-0.6320888996124268,
0.377594888210296... |
func (batch *eventBatch) isActive(targetTimestampMs *int64) bool {
// new log event batch
if batch.minTimestampMs == 0 || batch.maxTimestampMs == 0 {
return true
}
if *targetTimestampMs-batch.minTimestampMs > 24*3600*1e3 {
return false
}
if batch.maxTimestampMs-*targetTimestampMs > 24*3600*1e3 {
return fals... | [
-0.35865962505340576,
-1.497470498085022,
0.9081222414970398,
0.2797257900238037,
-0.3757379651069641,
0.1594284325838089,
-1.0547574758529663,
0.4246138334274292,
0.6357936263084412,
-0.4707432687282562,
-0.12216082215309143,
1.041273593902588,
-0.2955767512321472,
-0.8328744769096375,
... |
func (batch *eventBatch) sortLogEvents() {
inputLogEvents := batch.putLogEventsInput.LogEvents
sort.Stable(ByTimestamp(inputLogEvents))
} | [
0.572097897529602,
-0.7193048000335693,
0.35313573479652405,
-0.09186707437038422,
-0.02257407084107399,
0.24917756021022797,
-0.48940131068229675,
-0.6406874656677246,
-0.2750304341316223,
-0.4919610619544983,
-0.5798683166503906,
0.9985448718070984,
-0.2673192024230957,
-0.15486253798007... |
func NewPusher(pusherKey PusherKey, retryCnt int,
svcStructuredLog Client, logger *zap.Logger) Pusher {
pusher := newLogPusher(pusherKey, svcStructuredLog, logger)
pusher.retryCnt = defaultRetryCount
if retryCnt > 0 {
pusher.retryCnt = retryCnt
}
return pusher
} | [
0.13093502819538116,
-0.33167868852615356,
0.42180687189102173,
0.6281818151473999,
-0.8818041682243347,
0.08894374966621399,
-0.7536324858665466,
0.3205265700817108,
-0.23838424682617188,
-0.025199806317687035,
-0.46387800574302673,
-0.1834351271390915,
-0.397901713848114,
1.0039809942245... |
func newLogPusher(pusherKey PusherKey,
svcStructuredLog Client, logger *zap.Logger) *logPusher {
pusher := &logPusher{
logGroupName: aws.String(pusherKey.LogGroupName),
logStreamName: aws.String(pusherKey.LogStreamName),
svcStructuredLog: svcStructuredLog,
logger: logger,
}
pusher.logEventB... | [
0.20717138051986694,
-0.20777039229869843,
0.3915867209434509,
0.05378542095422745,
-1.4410669803619385,
-0.27824875712394714,
-1.2954578399658203,
-0.35792380571365356,
-0.27174055576324463,
0.4388565719127655,
-0.48794448375701904,
-0.24380093812942505,
-0.341481477022171,
0.708173036575... |
func (p *logPusher) AddLogEntry(logEvent *Event) error {
var err error
if logEvent != nil {
err = logEvent.Validate(p.logger)
if err != nil {
return err
}
prevBatch := p.addLogEvent(logEvent)
if prevBatch != nil {
err = p.pushEventBatch(prevBatch)
}
}
return err
} | [
0.7172068953514099,
0.7035517692565918,
0.7545838952064514,
0.5775958299636841,
0.13138529658317566,
-0.20444585382938385,
-0.040291015058755875,
0.30601227283477783,
0.5844487547874451,
0.20981654524803162,
-0.19629213213920593,
0.27570998668670654,
0.1386505365371704,
0.8271934986114502,... |
func IsNotExist(err error) bool | [
-0.266053706407547,
-0.022537464275956154,
0.24479232728481293,
1.3307887315750122,
0.07157339155673981,
0.4333072602748871,
-0.27318668365478516,
-0.11991746723651886,
0.2177007645368576,
1.0364669561386108,
-0.33167967200279236,
-0.5066066384315491,
-0.4438486397266388,
0.713762819766998... |
func Mkdir(name string, perm os.FileMode,) error | [
0.46115824580192566,
-0.4641490876674652,
0.45419377088546753,
0.727719247341156,
-1.7299375534057617,
1.4877159595489502,
0.4172559678554535,
0.5678228139877319,
-0.45806628465652466,
0.015996377915143967,
-0.046803589910268784,
-0.25105762481689453,
-0.7980271577835083,
0.219746217131614... |
func Unsetenv(key string) error | [
-0.8850728869438171,
0.2115652859210968,
0.15256541967391968,
0.28159141540527344,
-0.46429699659347534,
0.06641796976327896,
0.4795810580253601,
0.3469924330711365,
-1.4332579374313354,
0.9212150573730469,
-0.055480558425188065,
0.6471698880195618,
0.007183616980910301,
0.2502102553844452... |
func ProcessStateExitCode(p *os.ProcessState,) int | [
-0.020775506272912025,
-0.9638940691947937,
0.3180714547634125,
-0.566182017326355,
-0.18853093683719635,
0.02402970939874649,
0.3513055145740509,
0.3253447115421295,
-0.19134536385536194,
0.4305422902107239,
0.3495655953884125,
-0.28000298142433167,
0.5067108869552612,
-0.6663902997970581... |
func FileReaddirnames(f *os.File, n int) ([]string, error) | [
-1.408406376838684,
0.45729514956474304,
0.44160109758377075,
0.03243190795183182,
-0.6229215860366821,
0.30167052149772644,
-0.22274650633335114,
-0.10490196198225021,
-0.33964279294013977,
-0.31145933270454407,
-0.32886016368865967,
-0.13107489049434662,
0.40047526359558105,
0.4403980076... |
func Environ() []string | [
0.042992573231458664,
-0.5724503397941589,
0.42698413133621216,
0.2702809274196625,
0.145658940076828,
0.9560239911079407,
-0.2573775351047516,
1.100952386856079,
-0.11579190939664841,
0.5046591758728027,
-1.1783078908920288,
1.2691644430160522,
-0.14100608229637146,
0.43674397468566895,
... |
func ExpandEnv(s string) string | [
0.18449656665325165,
0.08516423404216766,
0.31399163603782654,
0.2758801579475403,
-1.157820463180542,
0.31205257773399353,
0.2635694444179535,
-0.1067885085940361,
-0.07047759741544724,
0.11183784157037735,
0.48646458983421326,
0.346339613199234,
-0.1500106006860733,
-0.34080156683921814,... |
func Getpid() int | [
1.4286707639694214,
-0.008531030267477036,
0.6391281485557556,
0.826749861240387,
0.6237313747406006,
0.7504419088363647,
0.9004201889038086,
0.11962498724460602,
0.37458401918411255,
-0.3826853036880493,
0.15461966395378113,
0.17777244746685028,
-1.2354555130004883,
-0.6448934674263,
1.... |
func Getuid() int | [
0.35213854908943176,
0.633186936378479,
0.4500964283943176,
0.9624481201171875,
0.27239924669265747,
0.4100658595561981,
1.571768045425415,
0.6529431343078613,
0.8133383393287659,
-1.8840909004211426,
-0.5922853350639343,
1.5530970096588135,
-0.31438738107681274,
0.148367241024971,
0.275... |
func FileChdir(f *os.File,) error | [
0.31689125299453735,
0.07748930156230927,
0.3233512341976166,
0.7052611112594604,
-0.589387059211731,
0.39417076110839844,
0.31957343220710754,
0.11278154700994492,
-1.0626288652420044,
0.02552381157875061,
0.4095974862575531,
0.06184413284063339,
1.4234572649002075,
0.7815221548080444,
... |
func Expand(s string, mapping func(string) string) string | [
0.42827630043029785,
0.05383725464344025,
0.5719447731971741,
0.18091583251953125,
-1.7810533046722412,
-0.34587687253952026,
-0.19388142228126526,
0.923682451248169,
-0.11303076148033142,
-0.520302951335907,
0.8484727144241333,
0.37310177087783813,
0.9950200319290161,
-0.6629330515861511,... |
func Link(oldname, newname string) error | [
0.1992398202419281,
-0.3909141421318054,
0.22966432571411133,
0.548239529132843,
-0.1946413218975067,
0.13168799877166748,
0.043432679027318954,
0.09090395271778107,
0.11965912580490112,
0.2712942957878113,
-0.536236584186554,
1.8832205533981323,
0.01085571013391018,
-0.2398901879787445,
... |
func Truncate(name string, size int64) error | [
0.6017121076583862,
0.7104683518409729,
0.32266154885292053,
0.5350854992866516,
-0.6779291033744812,
-0.7009144425392151,
-0.4160594344139099,
-0.7996510863304138,
0.023426372557878494,
0.7865399122238159,
-0.9985091090202332,
0.41071778535842896,
-0.8441482782363892,
-0.6955673098564148,... |
func UserHomeDir() (string, error) | [
0.17953971028327942,
-0.5038086771965027,
0.3910708427429199,
1.2354881763458252,
-0.9626224637031555,
0.3144993185997009,
1.542047142982483,
-0.4113316237926483,
0.6340029835700989,
-0.008646415546536446,
-0.6225079894065857,
0.7062480449676514,
-0.17917031049728394,
-0.05515419691801071,... |
func OpenFile(name string, flag int, perm os.FileMode,) (*os.File, error) | [
0.49717429280281067,
0.21652601659297943,
0.43204763531684875,
0.7486398220062256,
-1.3559852838516235,
0.8036959171295166,
0.2616736888885498,
0.32488757371902466,
-1.2469682693481445,
-0.2554706335067749,
-0.1091030165553093,
-0.015943530946969986,
-0.7888071537017822,
-0.504039168357849... |
func UserCacheDir() (string, error) | [
-0.7839611172676086,
0.08757862448692322,
0.35342493653297424,
1.228213906288147,
-1.835619568824768,
0.30765193700790405,
0.4281407296657562,
-0.25545430183410645,
0.3137204945087433,
0.1676149070262909,
-0.8348854184150696,
0.416033536195755,
0.30259376764297485,
0.05842190608382225,
-... |
func FileSync(f *os.File,) error | [
1.0941269397735596,
0.8268139362335205,
0.33694255352020264,
0.8366864919662476,
-0.6779335737228394,
0.17299790680408478,
0.42204350233078003,
-0.20213042199611664,
-1.2906646728515625,
-0.4147208333015442,
0.43099015951156616,
0.44835108518600464,
2.2874155044555664,
-0.23690015077590942... |
func FileTruncate(f *os.File, size int64) error | [
0.6276156902313232,
1.0383063554763794,
0.5002942085266113,
0.36803892254829407,
0.9116900563240051,
-0.4717697501182556,
0.012836509384214878,
0.20068450272083282,
-1.3946887254714966,
-0.21103759109973907,
-0.12227458506822586,
-0.2789100408554077,
0.24854275584220886,
-0.435212433338165... |
func ProcessRelease(p *os.Process,) error | [
0.4458947777748108,
-0.852638304233551,
0.4040085971355438,
0.3413349688053131,
-0.3395148515701294,
0.333774596452713,
-0.40558579564094543,
0.022545700892806053,
0.127407044172287,
0.18368318676948547,
0.5399131178855896,
0.02202102169394493,
-0.3568604588508606,
0.6314113736152649,
0.... |
func ProcessStateSuccess(p *os.ProcessState,) bool | [
-0.19398920238018036,
-0.36066165566444397,
0.6149598956108093,
-0.2718113660812378,
-0.5131697058677673,
1.1326141357421875,
-0.2347358912229538,
0.2992577850818634,
0.3310982882976532,
0.2663961350917816,
-0.7239265441894531,
-0.4652469754219055,
0.6286870837211609,
-1.0069798231124878,
... |
func FileStat(f *os.File,) (os.FileInfo, error) | [
0.3379818797111511,
-0.6584075093269348,
0.405739963054657,
-1.206116795539856,
-0.7989624738693237,
0.1915806382894516,
0.13515028357505798,
-0.35541510581970215,
-1.1310843229293823,
0.022669747471809387,
-0.4412350654602051,
0.314505398273468,
1.1472290754318237,
0.12373384833335876,
... |
func StartProcess(name string, argv []string, attr *os.ProcAttr,) (*os.Process, error) | [
0.7146202325820923,
-0.8541828989982605,
0.43116241693496704,
0.2930958867073059,
-0.5146996378898621,
0.1535540223121643,
0.3451874256134033,
-0.1367802768945694,
-0.140394389629364,
0.07582210004329681,
-0.15560923516750336,
0.5962625741958618,
0.2834775149822235,
0.024085702374577522,
... |
func ProcessKill(p *os.Process,) error | [
1.4513710737228394,
-1.0295240879058838,
0.2389441430568695,
0.6531124114990234,
0.10517560690641403,
0.7883632779121399,
0.03021324798464775,
-0.24740248918533325,
0.37487801909446716,
0.9383623600006104,
0.4399409890174866,
0.5079593062400818,
0.48114001750946045,
-0.2712191343307495,
... |
func Chdir(dir string) error | [
0.20169341564178467,
-0.15670007467269897,
0.27495601773262024,
0.8628646731376648,
-1.2650007009506226,
0.4882093369960785,
0.08405838161706924,
0.4133971333503723,
0.12772050499916077,
0.30491116642951965,
0.45904189348220825,
1.002099871635437,
0.006554228253662586,
1.0382028818130493,
... |
func Geteuid() int | [
0.20661988854408264,
0.9828468561172485,
0.500143826007843,
0.4310885965824127,
0.250069260597229,
0.47834205627441406,
1.272351861000061,
1.3923572301864624,
0.7584168910980225,
-0.4337949752807617,
0.04032260924577713,
0.3976469039916992,
-0.37949296832084656,
0.5670543313026428,
0.542... |
func Getpagesize() int | [
0.8557888865470886,
0.610837996006012,
0.6432488560676575,
0.4093334674835205,
0.46240511536598206,
-0.13910920917987823,
0.6343538761138916,
0.49543869495391846,
-0.38059788942337036,
-0.8459363579750061,
0.5397111177444458,
0.0040827724151313305,
-1.385634422302246,
0.6132522821426392,
... |
func Setenv(key, value string) error | [
-0.14822934567928314,
0.09116151183843613,
0.23628336191177368,
0.9266979098320007,
-0.6560862064361572,
0.910293698310852,
-0.28852832317352295,
-0.04598980396986008,
-1.3801497220993042,
0.829093337059021,
-0.42852649092674255,
1.0542569160461426,
-0.018766289576888084,
-0.24472394585609... |
func FileChmod(f *os.File, mode os.FileMode,) error | [
0.09039289504289627,
-0.38398081064224243,
0.42699697613716125,
0.49759340286254883,
-0.11519384384155273,
0.9882977604866028,
-0.3621077835559845,
0.7627303600311279,
-1.4015356302261353,
0.6751052737236023,
0.028672806918621063,
0.05616643279790878,
1.088104009628296,
-0.1872472316026687... |
func ProcessStateString(p *os.ProcessState,) string | [
-0.16474775969982147,
-0.9895403385162354,
0.3668069541454315,
-0.9189649224281311,
-0.6035531163215637,
0.4891916811466217,
-0.5577043890953064,
-0.9034944176673889,
-0.013575742952525616,
0.52267986536026,
0.5797868967056274,
-0.027503950521349907,
-0.37918326258659363,
-0.82178455591201... |
func Hostname() (string, error) | [
0.2588861286640167,
-0.4131909906864166,
0.34025827050209045,
1.247366189956665,
-0.7887536287307739,
-0.4821075201034546,
0.9523159861564636,
0.6189380884170532,
-0.7832379937171936,
0.2752965986728668,
0.2173657864332199,
0.16665127873420715,
-0.11908186972141266,
-0.6029726266860962,
... |
func MkdirAll(path string, perm os.FileMode,) error | [
0.6485621929168701,
-0.28279799222946167,
0.39362165331840515,
0.7819077968597412,
-1.8403724431991577,
1.6760586500167847,
0.4590737521648407,
0.6385540962219238,
-0.030281508341431618,
0.4058209955692291,
-0.1993933469057083,
0.8481404185295105,
-0.029034528881311417,
-0.3599059581756592... |
func ProcessStatePid(p *os.ProcessState,) int | [
0.49080511927604675,
-1.1061917543411255,
0.4398292899131775,
-0.7091212868690491,
-0.5282279849052429,
0.39318549633026123,
-0.19069606065750122,
-0.4103851616382599,
1.30118727684021,
0.6327651143074036,
0.4837145507335663,
-0.23995189368724823,
-0.11297232657670975,
-0.5302401781082153,... |
func ProcessStateSysUsage(p *os.ProcessState,) interface{} | [
-0.3366606533527374,
-0.43193310499191284,
0.6671861410140991,
-0.009188072755932808,
0.20438021421432495,
-1.1125209331512451,
0.8001327514648438,
-0.8325179219245911,
0.764555811882019,
0.2180861532688141,
0.13503797352313995,
-0.23102165758609772,
0.8799200654029846,
0.29597315192222595... |
func ProcessStateSystemTime(p *os.ProcessState,) time.Duration | [
-0.5257130861282349,
-0.5166622996330261,
0.4954240918159485,
-0.07685108482837677,
0.1819337010383606,
0.2562711834907532,
-0.2837264835834503,
-0.47777649760246277,
0.6981210112571716,
1.0558714866638184,
-0.3381868898868561,
-0.5178492665290833,
0.33685553073883057,
0.7448659539222717,
... |
func Chtimes(name string, atime time.Time, mtime time.Time) error | [
0.09248777478933334,
-0.3311610817909241,
0.5183261632919312,
-0.4669319987297058,
-1.1559669971466064,
0.18231795728206635,
-0.9324916005134583,
-0.272539347410202,
-0.40537452697753906,
2.407536745071411,
-0.6747177839279175,
1.2332936525344849,
0.26073747873306274,
0.20686429738998413,
... |
func IsPathSeparator(c uint8) bool | [
-0.32921338081359863,
-0.16286326944828033,
0.44955974817276,
0.5428733229637146,
-0.10226864367723465,
-0.2555476725101471,
0.42356470227241516,
-0.15937116742134094,
1.070666790008545,
-0.1829865425825119,
-0.9749597311019897,
-1.5331767797470093,
-1.1214393377304077,
1.0215537548065186,... |
func FileClose(f *os.File,) error | [
0.6443702578544617,
0.26527807116508484,
0.4745681881904602,
1.2445722818374634,
-0.573154866695404,
0.6880457401275635,
0.24014517664909363,
-0.0005597057170234621,
-1.722022294998169,
0.03968369588255882,
1.0175875425338745,
-0.5621052980422974,
1.0664050579071045,
0.4978999197483063,
... |
func FileFd(f *os.File,) uintptr | [
0.6767879724502563,
-0.6016431450843811,
0.2806386947631836,
-0.22015847265720367,
-0.43705061078071594,
0.41393226385116577,
0.2628208100795746,
-0.1990547478199005,
-0.8837606906890869,
-0.6398202776908875,
0.980941891670227,
-0.3215441405773163,
0.7188708186149597,
0.8834575414657593,
... |
func FileReadAt(f *os.File, b []byte, off int64) (int, error) | [
-0.0864659920334816,
-0.6057942509651184,
0.4809742569923401,
-0.7998877763748169,
-0.7317824363708496,
0.9643688797950745,
-0.409981369972229,
0.42596980929374695,
-1.1570595502853394,
0.11206416040658951,
0.7331199645996094,
-0.08200407028198242,
0.6474399566650391,
-0.5591046214103699,
... |
func FileWriteString(f *os.File, s string) (int, error) | [
-0.9397168159484863,
-0.9802427887916565,
0.48322024941444397,
0.08110032230615616,
-0.11434625834226608,
-0.02399752289056778,
0.8387830257415771,
0.20200490951538086,
-1.2506167888641357,
0.5138598084449768,
0.12227427959442139,
-0.42418745160102844,
0.7311047315597534,
-1.00311267375946... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.