text
stringlengths
5.51k
28.1k
// 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/compute/v1/disk_type_service.proto package compute import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" _ "google.golang.org/genproto/googleapis/api/annotations" ...
// Copyright 2016 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 main import ( "compress/gzip" "html/template" "log" "math" "net/http" "strconv" "strings" "time" "github.com/1lann/lol-replay/recording" "github.com/dustin/go-humanize" ) type playerArg struct { ChampionImage string ChampionName string Summoner string } type recordingArg struct { IsCompl...
// Copyright Suneido Software Corp. All rights reserved. // Governed by the MIT license found in the LICENSE file. package dbms import ( "bytes" "io" "net" "net/http" "strconv" "strings" "sync" "time" "github.com/apmckinlay/gsuneido/dbms/commands" "github.com/apmckinlay/gsuneido/dbms/csio" . "github.com/a...
package proto_gen_lib import ( "github.com/valyala/fasttemplate" "io/ioutil" logger "log" "os" "path" "strconv" "strings" "unicode" "unicode/utf8" "github.com/dave/jennifer/jen" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/protoc-gen-go/descriptor" "github.com/pubgo/xerror" plugin "goo...
package models import ( "github.com/pkg/errors" "gorm.io/gorm/clause" "openscrm/app/constants" "openscrm/app/requests" "openscrm/common/app" "time" ) type CustomerTag struct { // GroupName 该成员添加此外部联系人所打标签的分组名称(标签功能需要企业微信升级到2.7.5及以上版本) GroupName string `json:"group_name"` // TagName 该成员添加此外部联系人所打标签名称 TagName...
package main import ( "context" "database/sql" "encoding/json" "errors" "fmt" "strings" "time" "github.com/go-telegram-bot-api/telegram-bot-api" "github.com/jmoiron/sqlx" qrcode "github.com/skip2/go-qrcode" ) type User struct { Id int `db:"id"` TelegramId int `db:"telegram_id"` Username ...
package baa import ( "fmt" "sync" ) const ( leafKindStatic uint = iota leafKindParam leafKindWide ) // Tree provlider router for baa with radix tree type Tree struct { autoHead bool autoTrailingSlash bool mu sync.RWMutex groups []*group nodes [RouteLength]*lea...
// Copyright 2013 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 types // This file implements the Function and BasicBlock types. import ( "bytes" "fmt" "io" "os" "strings" . "github.com/despiteallobjections/...
// Copyright 2016 Google Inc. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package strategy defines different strategies for drawing images. package strategy import ( "fmt" "image" "image/color" "log" "math/rand" "sort" "sync" "github.com/tswas...
/* *------------------------------------------------------------------ * Copyright (c) 2020 Cisco and/or its affiliates. * 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://w...
package slog import ( "bytes" "encoding/binary" "encoding/json" "errors" "fmt" "io" "log" "os" "reflect" "runtime" "sync" "time" ) type now func() time.Time type LogPrefixed interface { LogPrefix() string } type ReadAtWriter interface { io.ReaderAt io.Writer } var logging bool = true var logMutex *sy...
// 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...
// -*- Mode: Go; indent-tabs-mode: t -*- // // Copyright (C) 2017-2018 Canonical Ltd // // SPDX-License-Identifier: Apache-2.0 // package device import ( "fmt" "github.com/edgexfoundry/device-sdk-go/common" "io/ioutil" "path/filepath" "strings" "sync" "github.com/edgexfoundry/edgex-go/pkg/models" "gopkg.in/mg...
/* CC0 - free software. To the extent possible under law, all copyright and related or neighboring rights to this work are waived. See the LICENSE file for more information. */ package base32k import ( "bytes" "fmt" "math/rand" "testing" ) // 00000000 11111111 00000000 11111111 10101010 01010101 10101010 0101010...
package chained_bft import ( "bytes" "container/list" "path/filepath" "testing" "time" cCrypto "github.com/xuperchain/xupercore/kernel/consensus/base/driver/chained-bft/crypto" chainedBftPb "github.com/xuperchain/xupercore/kernel/consensus/base/driver/chained-bft/pb" cctx "github.com/xuperchain/xupercore/kern...
package go_mc_wrapped import ( "github.com/Tnze/go-mc/net/packet" "github.com/google/uuid" ) type HandshakingSetProtocolToServer struct { ProtocolVersion int `id:"0"` ServerHost string ServerPort uint16 NextState int } type HandshakingLegacyServerListPingToServer struct { Payload byte `id:"1"`...
/* * BSD 2-Clause License * * Copyright (c) 2019, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this...
package parser import ( "strings" "testing" . "github.com/smartystreets/goconvey/convey" ) func testFileInfo(file *File) *File { var Int32Type = &ScalarType{ScalarName: "int32"} var RootMessage = file.Messages[0] var RootMessage2 = file.Messages[4] var RootMessage2Type = &MessageType{file: file, Message: Root...
// Copyright 2016 <NAME>, Inc. All rights reserved. // Licensed under the Apache License, version 2.0: // http://www.apache.org/licenses/LICENSE-2.0 package types import ( "bytes" "sort" "github.com/attic-labs/noms/go/d" "github.com/attic-labs/noms/go/hash" ) const ( objectWindowSize = 8 orderedSeque...
// Copyright (c) 2013-2017 The btcsuite developers // Copyright (c) 2018 The bcext developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "math/big" "github.com/bcext/gcash/chaincfg" "github.com/bcext/gcash/chaincfg/chainhash" "gi...
package exec import ( "context" "errors" "fmt" "io" "path" "path/filepath" "strings" "code.cloudfoundry.org/lager" "code.cloudfoundry.org/lager/lagerctx" "github.com/concourse/concourse/atc" "github.com/concourse/concourse/atc/creds" "github.com/concourse/concourse/atc/db" "github.com/concourse/concourse...
package api import ( "bytes" "context" "crypto/tls" "crypto/x509" "encoding/json" "fmt" "io/ioutil" "net/http" "os" "os/signal" "sync" "syscall" "time" middleware "github.com/auth0/go-jwt-middleware/v2" "github.com/auth0/go-jwt-middleware/v2/validator" erAPI "github.com/luqmanMohammed/eventsrunner/crd...
package reconcilers import ( "context" "fmt" "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/handler" "sigs.k8s.io/controller-runtime/pkg/reconcile" "sigs.k8s.io/controller-runtime/pkg/source" "github.com/go-logr/log...
package zsocket import ( "fmt" "os" "runtime" "sync/atomic" "syscall" "unsafe" "github.com/newtools/zsocket/inet" "github.com/newtools/zsocket/nettypes" ) const ( TPacketAlignment = 16 MinimumFrameSize = TPacketAlignment << 7 MaximumFrameSize = TPacketAlignment << 11 EnableRX = 1 << 0 EnableTX ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: query.proto package querypb import "strconv" // EnumName is a helper function to simplify printing protocol buffer enums // by name. Given an enum map and a value, it returns a useful string. func EnumName(m map[int32]string, v int32) string { s, ok := m[v...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/compute/v1/zone_service.proto package compute // import "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "github.com/yandex-cloud/go-genpro...
// 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 ...
package sqlgen import ( "bytes" "database/sql" "database/sql/driver" "encoding/base64" "encoding/hex" "fmt" "reflect" "regexp" "strconv" "strings" "github.com/segmentio/ctlstore/pkg/schema" "github.com/segmentio/errors-go" ) type MetaTable struct { DriverName string FamilyName schema.FamilyName TableN...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: envoy/config/filter/http/modsec/v2/modsec.proto package ModSecurity_envoy import ( _ "github.com/envoyproxy/protoc-gen-validate/validate" protoreflect "google.golang.org/protobuf/reflect/prot...
// Copyright 2019 Prometheus Team // 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...
/* Copyright 2019 Cisco Systems 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 d...
/* Copyright 2019 Cisco Systems 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 d...
package main import ( "errors" "fmt" "runtime" "sort" "strings" "time" "github.com/golang/glog" "github.com/sostheim/lbex/annotations" "github.com/sostheim/lbex/nginx" "k8s.io/client-go/kubernetes" v1 "k8s.io/client-go/pkg/api/v1" "k8s.io/client-go/pkg/util/intstr" "k8s.io/client-go/tools/cache" ) var ...
package sdktests import ( "fmt" "strconv" h "github.com/launchdarkly/sdk-test-harness/framework/helpers" "github.com/launchdarkly/sdk-test-harness/framework/ldtest" o "github.com/launchdarkly/sdk-test-harness/framework/opt" "github.com/launchdarkly/sdk-test-harness/mockld" m "github.com/launchdarkly/go-test-h...
// Copyright 2016 The Gofem 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 porous implements models for porous media based on the Theory of Porous Media // References: // [1] <NAME> (2015) A consistent u-p formulation ...
// Copyright (c) 2021, 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...
// Copyright 2015 the GoSpatial Authors. All rights reserved. // Use of this source code is governed by an MIT-style // licence that can be found in the LICENCE.txt file. // This file was originally created by <NAME><<EMAIL>>, // Feb. 2015. package tools import ( "bufio" "fmt" "math" "os" "strconv" "strings" ...
//line cfg.y:2 package confish import __yyfmt__ "fmt" //line cfg.y:2 //line cfg.y:6 type cfgSymType struct { yys int val string } const SECTION_NAME = 57346 const ATTR_NAME = 57347 const SCALAR = 57348 var cfgToknames = [...]string{ "$end", "error", "$unk", "':'", "','", "'{'", "'}'", "'['", "']'", "SEC...
// Code generated by protoc-gen-go. // source: binlogdata.proto // DO NOT EDIT! /* Package binlogdata is a generated protocol buffer package. It is generated from these files: binlogdata.proto It has these top-level messages: Charset BinlogTransaction StreamKeyRangeRequest StreamKeyRangeResponse StreamTablesRe...
// Copyright 2015 Orchestrate, 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 ...
package main import ( "context" "database/sql" "errors" "fmt" "strings" "github.com/go-telegram-bot-api/telegram-bot-api" "github.com/jmoiron/sqlx" "github.com/tidwall/gjson" ) type User struct { Id int `db:"id"` TelegramId int `db:"telegram_id"` Username string `db:"username"` ChatId ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.15.7 // source: github.com/infobloxopen/atlas-app-toolkit/server/testdata/test.proto package server_test import ( context "context" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.gol...
package parser import ( "aura/src/ast" l "aura/src/lexer" "fmt" ) // Signature for functions to parse prefix expressions type PrefixParsFn func() ast.Expression // Signature for functions to parse suffix expressions type SuffixParseFn func(ast.Expression) ast.Expression // Signature for functions to parse infix ...
package checker import ( "fmt" "time" "go.avito.ru/DO/moira" "go.avito.ru/DO/moira/target" ) const ( chunkSize = 20 checkPointGap int64 = 120 ) // ErrTriggerHasNoTimeSeries used if trigger has no metrics type ErrTriggerHasNoTimeSeries struct{} // ErrTriggerHasNoTimeSeries implementation with consta...
package main import ( "bufio" "fmt" "github.com/atotto/clipboard" "github.com/op/go-logging" "github.com/pingcap/errors" "io" "net" "os" "os/signal" "path/filepath" "runtime" "runtime/pprof" "strings" "sync" "time" ) const ( ServerAddr = "10.0.2.2" ListenPort = 61234 SingleInstancePo...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: timerwheel_rpc.proto package model import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference impo...
package swim import ( "strings" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) var ( fixtureExceedKeySize = strings.Repeat("a", 33) fixtureExceedKeySizeInternal = labelsInternalNamespacePrefix + strings.Repeat("a", 33) fixtureExceedValueSize = strings.Repe...
package watch import ( "crypto/tls" "crypto/x509" "errors" "fmt" "net" "net/http" "net/http/cookiejar" "strconv" "strings" "time" "github.com/go-ping/ping" "reflect" "github.com/foomo/petze/config" log "github.com/sirupsen/logrus" ) var ( typeDNSConfigErr = reflect.TypeOf(&net.DNSCon...
package toolbox3d import ( "math" "sort" "github.com/unixpickle/model3d/model3d" ) // A RectSet maintains the set of all points contained in // a union of rectangular volumes. // // The exact list of original rectangles is not preserved, // but the information about the combined solid is. // // A RectSet may use ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: list.proto package configmap import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" container "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/co...
/* Copyright 2019 Cisco Systems 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 d...
package teams import ( "context" "encoding/json" "fmt" "strings" "sync" "time" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/client/go/sig3" "github.com/keybase/client/go/teams/hidden" ) // Things TeamLoader uses that are mocked out for tests. typ...
/* * Copyright 2019 <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...
package protoparse import ( "bytes" "strings" "github.com/golang/protobuf/proto" dpb "github.com/golang/protobuf/protoc-gen-go/descriptor" "github.com/Gitforxuyang/protoreflect/desc/internal" ) func (r *parseResult) generateSourceCodeInfo() *dpb.SourceCodeInfo { if r.nodes == nil { // skip files that do not...
package cli import ( "fmt" "io" "os" "path" "path/filepath" "sort" "strings" cmds "github.com/ipfs/go-ipfs/commands" files "github.com/ipfs/go-ipfs/commands/files" logging "gx/ipfs/QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52/go-log" u "gx/<KEY>" osh "gx/ipfs/QmXuBJ7DR6k3rmUEKtvVMhwjmXDuJgXXPUt4LQXKBMs...
package requests import ( "errors" "fmt" "reflect" "strconv" "strings" "github.com/stretchr/codecs/services" ) // set is a simple slice of unique strings. type set []string // add appends a variadic amount of strings to a set, returning the // resulting set. Duplicates will only exist once in the resulting /...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/protobuf/compiler/plugin.proto /* Package plugin_go is a generated protocol buffer package. It is generated from these files: google/protobuf/compiler/plugin.proto It has these top-level messages: Version CodeGeneratorRequest CodeGeneratorRespons...
// Copyright 2015 <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 writi...
package xmssmt // The core of XMSS and XMSSMT. import ( "github.com/cespare/xxhash" "container/heap" "encoding/binary" "runtime" "sync" ) // Represents a height t merkle tree of n-byte strings T[i,j] as // // T[t-1,0] // / // (...) (...) // / ...
// +build linux /* * Copyright (C) 2018 Red Hat, 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 ofthe License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
// 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. package big import "math/rand" // ProbablyPrime reports whether x is probably prime, // applying the Miller-Rabin test with n pseudorandomly chosen bases // a...
package greenplum import ( "encoding/json" "fmt" "regexp" "strconv" "strings" "time" "github.com/spf13/viper" "github.com/google/uuid" "github.com/blang/semver" "github.com/greenplum-db/gp-common-go-libs/cluster" "github.com/greenplum-db/gp-common-go-libs/gplog" "github.com/jackc/pgx" "github.com/wal-g...
/* 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 distributed under the License...
package oidc import ( "context" "crypto/sha256" "database/sql" "errors" "fmt" "time" "github.com/google/uuid" "github.com/ory/fosite" "github.com/authelia/authelia/v4/internal/authorization" "github.com/authelia/authelia/v4/internal/configuration/schema" "github.com/authelia/authelia/v4/internal/logging" ...
package httpSwagger import ( "bytes" "html/template" "net/http" "net/http/httptest" "strings" "testing" "github.com/stretchr/testify/assert" "github.com/swaggo/swag" ) type mockedSwag struct{} func (s *mockedSwag) ReadDoc() string { return `{ "swagger": "2.0", "info": { "description": "This...
/* Copyright 2020 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 (c) 2012 The gocql 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 cassandra import ( "bytes" "errors" "fmt" "math/big" "reflect" "strings" "time" "gopkg.in/inf.v0" "github.com/elastic/beats/libbeat/l...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: envoy/config/trace/v2alpha/xray.proto package envoy_config_trace_v2alpha import ( core "github.com/antJack/go-control-plane-v3/envoy/api/v2/core" _ "github.com/cncf/xds/go/udpa/annotations" ...
/* * Copyright (C) 2018 The DNA Authors * This file is part of The DNA library. * * The DNA is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) ...
package main import ( "encoding/json" "errors" "flag" "fmt" "io/ioutil" "os" "os/signal" "path/filepath" "regexp" "runtime" "strings" "time" "github.com/cloud66-oss/starter/common" "github.com/cloud66-oss/starter/packs" "github.com/cloud66-oss/starter/utils" "github.com/getsentry/raven-go" "github.co...
package container import ( "context" b64 "encoding/base64" "encoding/json" "fmt" "path/filepath" "strconv" "strings" "time" "github.com/containers/podman/v3/pkg/annotations" "github.com/containers/storage/pkg/stringid" "github.com/cri-o/cri-o/internal/config/device" "github.com/cri-o/cri-o/internal/lib" ...
// Copyright 2016 The G3N Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build !wasm package window import ( "bytes" "fmt" "image" _ "image/png" "os" "runtime" "github.com/g3n/engine/core" "github.com/g3n/engine/gls" ...
package vfsgen import ( "bytes" "compress/gzip" "errors" "io" "io/ioutil" "net/http" "os" pathpkg "path" "sort" "strconv" "text/template" "time" "github.com/shurcooL/httpfs/vfsutil" ) // Generate Go code that statically implements input filesystem, // write the output to a file specified in opt. func Ge...
package cloudstore import ( "context" "errors" "flag" "io" "io/ioutil" "net/http" "net/url" "os" "path/filepath" "strings" "time" "cloud.google.com/go/storage" log "github.com/sirupsen/logrus" gzip "github.com/youtube/vitess/go/cgzip" "golang.org/x/oauth2/google" "google.golang.org/api/googleapi" "go...
package ucum import ( "github.com/bertverhees/ucum" . "github.com/smartystreets/goconvey/convey" "os" "testing" ) func SetUpService() { var err error definitions := os.Getenv("GOPATH") + "/src/github.com/bertverhees/ucum/terminology_data/ucum-essence.xml" testservice, err = ucum.GetInstanceOfUcumEssenceService...
package docker import ( "bytes" "context" "fmt" "io" "io/ioutil" "sort" "time" "github.com/docker/go-units" "github.com/pkg/errors" "github.com/docker/distribution/reference" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/filters" "github.com/tilt-dev/tilt/internal/container" ...
package main import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "strconv" "time" "golang.org/x/exp/rand" "gonum.org/v1/gonum/stat/distuv" ) type Instroom struct { Complexiteit string `json:"COMPLEXITEIT"` Dist string `json:"Dist"` Lambda float64 `json:"La...
package main import ( "bytes" "encoding/xml" "flag" "fmt" "io" "io/ioutil" "math" "net/http" "os/exec" "strconv" "strings" "time" "golang.org/x/net/html/charset" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/log" "github.com/prometheus/common/version" ) // Info repre...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0 // protoc v3.17.3 // source: ydb_operation_v1.proto package Ydb_Operation_V1 import ( Ydb_Operations "github.com/ydb-platform/ydb-go-genproto/protos/Ydb_Operations" protoreflect "google.golang.org/protobuf/reflect/protor...
// Simple bittorrent client, created with duit. package main import ( "flag" "fmt" "image" "log" "os" "sort" "strconv" "time" "9fans.net/go/draw" "github.com/mjl-/duit" "github.com/anacrolix/torrent" "github.com/anacrolix/torrent/metainfo" "golang.org/x/time/rate" ) const ( colStatus = iota colName ...
/* Copyright 2019 Cisco Systems 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 d...
// Copyright 2020 PingCAP, Inc. // Modifications copyright (C) 2021 MatrixOrigin. // // 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 // /...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: list.proto package storageclass import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" container "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model...
package internal import ( "bufio" "context" "encoding/base64" "encoding/json" "fmt" "io" "syscall" "time" "github.com/docker/distribution/reference" "github.com/docker/docker/api/types" dcontainer "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/filters" "github.com/dock...
// Copyright 2021 IBM 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 agreed to...
package client import ( "bufio" "encoding/binary" "errors" "fmt" "io" "log" "net" "sync" "time" ) type FrameType byte const ( // MAX_BUFFERED_BYTES uint64 = 1024 * 512 FRAME_SIZE int = 4096 FRAME_TYPE_MESSAGE FrameType = 90 FRAME_TYPE_HEARTBEAT FrameType = 91 FRAM...
package smf import ( "fmt" "io" "io/ioutil" "os" "sort" "gitlab.com/gomidi/midi/v2" "gitlab.com/gomidi/midi/v2/internal/runningstatus" "gitlab.com/gomidi/midi/v2/internal/utils" ) type Logger interface { Printf(format string, vals ...interface{}) } // ReadFile opens file, creates the SMF and closes file fu...
/* Copyright 2019-2020 The Tekton 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, softw...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto package v2 import ( fmt "fmt" proto "github.com/golang/protobuf/proto" 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 compi...
// Copyright (c) 2014 The SurgeMQ Authors. 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 ...
package preprocessing import ( "fmt" _ "math" "testing" "github.com/pa-m/sklearn/base" "gonum.org/v1/gonum/floats" "gonum.org/v1/gonum/mat" ) func ExampleMinMaxScaler() { // adapted from http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html#sklearn.preprocessing.MinMaxScale...
package clustering import ( "fmt" "math" "sort" logf "sigs.k8s.io/controller-runtime/pkg/log" redisv1alpha1 "github.com/ucloud/redis-cluster-operator/pkg/apis/redis/v1alpha1" "github.com/ucloud/redis-cluster-operator/pkg/redisutil" ) var log = logf.Log.WithName("clustering") type migrationInfo struct { From...
// Code generated by protoc-gen-go. // source: query.proto // DO NOT EDIT! /* Package query is a generated protocol buffer package. It is generated from these files: query.proto */ package query // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is bein...
package scenes import "github.com/Noofbiz/pixelshader" var sShader = &pixelshader.PixelShader{FragShader: ` #ifdef GL_ES #define LOWP lowp precision mediump float; #else #define LOWP #endif uniform vec2 u_resolution; // Canvas size (width,height) uniform vec2 u_mouse; // mouse position in scree...
// Copyright 2015 The Chromium 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 cloudtail import ( "bytes" "context" "fmt" "io" "os" "path/filepath" "time" "gopkg.in/fsnotify.v1" "go.chromium.org/luci/common/clock"...
package sti import ( "fmt" "io" "io/ioutil" "os" "path" "path/filepath" "runtime" "strings" "github.com/openshift/source-to-image/pkg/api" dockerpkg "github.com/openshift/source-to-image/pkg/docker" "github.com/openshift/source-to-image/pkg/errors" "github.com/openshift/source-to-image/pkg/tar" "github.c...
package main import ( "encoding/json" "fmt" "log" "math" "os" "sort" "strconv" "strings" goton "github.com/move-ton/ton-client-go" "github.com/move-ton/ton-client-go/domain" "github.com/tealeg/xlsx/v3" ) func main() { if len(os.Args) < 2 { log.Fatal("Addresses not entered!") } ton, err := goton.New...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: auth_service.proto package pb import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.gola...