text stringlengths 8.57k 38.1k |
|---|
package imagine
//go:generate enumer -type=fieldType -trimprefix=fieldType -transform=kebab -text -output enums_fieldtype.go
//go:generate enumer -type=densityType -trimprefix=densityType -text -transform=kebab -output enums_densitytype.go
//go:generate enumer -type=dimensionOrder -trimprefix=dimensionOrder -text -tra... |
package fixvarnum
import (
"fmt"
"math"
"math/rand"
"testing"
num "github.com/shabbyrobe/go-num"
)
func assertU128Sz(t testing.TB, v num.U128, sz int, scratch []byte, args ...interface{}) {
// t.Helper() // Really slow!!
n := PutU128(scratch, v)
vd, osz := U128(scratch[:n])
if v != vd {
fatalfArgs(t, fm... |
// 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 mojom
import (
"bytes"
"fmt"
"strings"
)
// This file contains the types MojomFile and MojomDescriptor. These are the
// structures that are ... |
package shared
//
// BitmapQuery is a container and API for the construction of
// bitmap server queries. This code contains common functions
// shared by both client/server side.
//
import (
"fmt"
"github.com/RoaringBitmap/roaring/roaring64"
u "github.com/araddon/gou"
pb "github.com/disney/quanta/grpc"
"github... |
package ocp
import (
"bufio"
"errors"
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/containers/libpod/libpod"
"github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/bindings"
"github.com/containers/libpod/pkg/bindings/containers"
"github.com/co... |
/*
Copyright © 2020 ConsenSys
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
dis... |
// +build all fuzz
package tests
import (
"context"
"crypto/ecdsa"
"encoding/hex"
"fmt"
"math"
"math/big"
"os"
"os/exec"
"reflect"
"strings"
"time"
ethabi "github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bi... |
// Copyright 2018 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 main
import (
"context"
"errors"
"fmt"
"net/http"
"strings"
"time"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"git... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/auth/external_auth.proto
/*
Package auth is a generated protocol buffer package.
It is generated from these files:
api/auth/external_auth.proto
It has these top-level messages:
CheckRequest
CheckResponse
AttributeContext
*/
package auth
import prot... |
/*
Copyright 2022 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 2009 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 flag_test
import (
"bytes"
. "flag"
"fmt"
"internal/testenv"
"io"
"os"
"os/exec"
"runtime"
"sort"
"strconv"
"strings"
"testing"
"time"
)
... |
// Copyright 2016 The Cockroach 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 ag... |
// Copyright 2022 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.12.3
// source: fds/protobuf/stach/v2/table/ColumnDefinition.proto
package table
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/pr... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.14.0
// source: envoy/extensions/filters/network/thrift_proxy/filters/ratelimit/v3/rate_limit.proto
package envoy_extensions_filters_network_thrift_proxy_filters_ratelimit_v3
import (
v3 "github.com/cilium/pr... |
// Copyright (c) 2013-2016 The btcsuite developers
// Copyright (c) 2015-2019 The Eacred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package wallet
// This code was copied from eacrd/blockchain/difficulty.go and modified for
// eacrwallet's header stor... |
/*
* Copyright © 2019 – 2021 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
package authz
import (
"encoding/json"
"testing"
"github.com/fleetdm/fleet/v4/server/fleet"
"github.com/fleetdm/fleet/v4/server/ptr"
"github.com/fleetdm/fleet/v4/server/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
const (
read = fleet.ActionRead
list = fleet.A... |
// Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" fil... |
package types
import (
"bytes"
"errors"
"fmt"
"math/big"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/lianxiangcloud/linkchain/libs/common"
cmn "github.com/lianxiangcloud/linkchain/libs/common"
"github.com/lianxiangcloud/linkchain/libs/crypto/merkle"
"github.com/lianxiangcloud/linkchain/libs/ser"
"g... |
// Copyright 2015 The Vanadium 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 golib
import (
"fmt"
"os"
"path/filepath"
"reflect"
"strings"
"testing"
"time"
"v.io/jiri/jiritest"
"v.io/jiri/runutil"
"v.io/x/devtoo... |
package datatree
import (
"fmt"
"math/bits"
"os"
"path/filepath"
"runtime"
"sync/atomic"
"sort"
"github.com/dterei/gotsc"
sha256 "github.com/minio/sha256-simd"
)
//var Debug bool
const Debug = false
const (
FirstLevelAboveTwig int = 13
MinPruneCount int64 = 2
entriesPath = "entries"
twigMtPath = "twigm... |
// Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
package yaml
import (
"fmt"
"io"
)
// The version directive data.
type yamlVersionDirectiveT struct {
major int8 // The major version number.
minor int8 // The minor version number.
}
// The tag directive data.
type yamlTagDirectiveT struct {... |
package nanovgo
import (
"github.com/micaelAlastor/nanovgo/fontstashmini"
)
type nvgParams interface {
edgeAntiAlias() bool
renderCreate() error
renderCreateFramebuffer(w, h int, flags ImageFlags) *FrameBuffer
renderCreateTexture(texType nvgTextureType, w, h int, flags ImageFlags, data []byte) int
renderDeleteT... |
package sway
import "encoding/json"
type Rect struct {
X int64 `json:"x,omitempty"`
Y int64 `json:"y,omitempty"`
Width int64 `json:"width,omitempty"`
Height int64 `json:"height,omitempty"`
}
type WindowProperties struct {
Title string `json:"title,omitempty"`
Class string `json:"class,... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/ad_group_bid_modifier.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googleapis/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
// protoc v3.13.0
// source: pkg/logs/log.proto
package logs
import (
duration "github.com/golang/protobuf/ptypes/duration"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/pro... |
// Copyright 2019 Red Hat
//
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: infra/unifiedfleet/api/v1/proto/chromeos/lab/device.proto
package ufspb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
device "infra/unifiedfleet/api/v1/proto/chromeos/device"
manufacturing "infra/unifiedfleet/api/v1/proto/chromeos/manufactu... |
package transport
import (
"bytes"
"fmt"
"sync"
"time"
)
const (
// Maximum reordering in packets before packet threshold loss detection considers a packet lost.
// https://www.rfc-editor.org/rfc/rfc9002.html#section-6.1.1
packetThreshold = 3
// Maximum reordering in time before time threshold loss detection... |
package pgcat
import (
"context"
"database/sql/driver"
"fmt"
"net"
"runtime/debug"
"strings"
"sync"
"text/template"
"time"
"github.com/jackc/pgconn"
"github.com/jackc/pglogrepl"
"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/log/zapadapter"
... |
package main
import (
"bytes"
"context"
"encoding/json"
"fmt"
"github.com/grafana/grafana-plugin-sdk-go/backend/resource/httpadapter"
"io/ioutil"
"math"
"net/http"
"net/url"
"runtime"
"strconv"
"strings"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go... |
// Package dom is a thin wrapper of some useful dom functions for gopherjs.
package dom
import (
"github.com/gopherjs/gopherjs/js"
)
const (
// Wheel Delta
DeltaPixel = 0
DeltaLine = 1
DeltaPage = 2
// Event Phase
EvPhaseNone = 0
EvPhaseCapturing = 1
EvPhaseAtTarget = 2
EvPhaseBubb... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/bigquery/storage/v1beta2/stream.proto
package storage
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"... |
package main
import (
"flag"
"io/ioutil"
"log"
"net"
"net/http"
_ "net/http/pprof"
"sync"
"time"
"encoding/json"
"github.com/prometheus/client_golang/prometheus"
"crypto/tls"
"crypto/x509"
)
const (
namespace = "elasticsearch"
)
type VecInfo struct {
help string
labels []string
}
var (
gaugeMetr... |
package cos
import (
"context"
"encoding/xml"
"fmt"
"net/http"
)
type JobInput struct {
Object string `xml:"Object,omitempty"`
}
type JobOutput struct {
Region string `xml:"Region,omitempty"`
Bucket string `xml:"Bucket,omitempty"`
Object string `xml:"Object,omitempty"`
SpriteObject string ... |
package mock
import (
"context"
"github.com/savannahghi/enumutils"
"github.com/savannahghi/feedlib"
"github.com/savannahghi/onboarding/pkg/onboarding/application/dto"
"github.com/savannahghi/onboarding/pkg/onboarding/domain"
"github.com/savannahghi/profileutils"
)
// FakeInfrastructure mocks the infrastructure... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/auth/v3/external_auth.proto
package envoy_service_auth_v3
import (
context "context"
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
v3 "github.com/envoyproxy/go-cont... |
// Copyright © 2021, 2022 Weald Technology Trading.
// 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 l... |
// Copyright 2021 Intel Corporation. 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 app... |
package skeleton
import (
"fmt"
"regexp"
"strings"
"github.com/kiteco/kiteco/kite-go/lang/python/pythonimports"
"github.com/kiteco/kiteco/kite-go/lang/python/pythonscanner"
"github.com/kr/pretty"
)
// RawNode represents a generic node parsed from yaml
type RawNode map[string]interface{}
// Builder builds node... |
package sqllint
import (
"bytes"
"strings"
"github.com/pingcap/parser/ast"
"github.com/erda-project/erda/pkg/swagger/ddlconv"
)
var keywords = map[string]bool{
"ACCESSIBLE": true,
"ACCOUNT": true,
"ACTION": true,
"ADD": ... |
/*
* MinIO Client (C) 2014-2019 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/LICENSE-2.0
*
* Unless required by applicable law o... |
// Copyright 2020 cloudeng llc. All rights reserved.
// Use of this source code is governed by the Apache-2.0
// license that can be found in the LICENSE file.
package flags_test
import (
"flag"
"fmt"
"os"
"path/filepath"
"reflect"
"runtime"
"sort"
"strconv"
"strings"
"testing"
"time"
"cloudeng.io/cmduti... |
// Copyright (c) 2019, The Emergent 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 leabra
import (
"github.com/chewxy/math32"
"github.com/emer/emergent/erand"
"github.com/emer/etable/minmax"
"github.com/dhairyyas/leabra... |
package gogo
import (
"bytes"
"compress/gzip"
"fmt"
"io/ioutil"
"os"
"reflect"
"testing"
thisproto "github.com/gogo/protobuf/proto"
dpb "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
_ "github.com/gogo/protobuf/protoc-gen-gogo/plugin"
_ "github.com/gogo/protobuf/types"
otherproto "github.com/golang... |
package junos
import (
"encoding/xml"
"errors"
"fmt"
"strings"
"github.com/Juniper/go-netconf/netconf"
)
// ArpTable contains the ARP table on the device.
type ArpTable struct {
Count int `xml:"arp-entry-count"`
Entries []ArpEntry `xml:"arp-table-entry"`
}
// ArpEntry holds each individual ARP entry... |
/*
* zipindex, (C)2021 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/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
package pythontype
// Builtins contains values representing each python builtin
var Builtins struct {
// Constants
None Value // None represents the python value None
True Value // True represents the python value True
False Value // False represents the python value False
// Low-level types
Type Value //... |
// Copyright 2018 The LUCI 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... |
package chars
var Charsets0 = [256]uint32{
0x00206000, /* position 000 */
0x00206000, /* position 001 */
0x00206000, /* position 002 */
0x00206000, /* position 003 */
0x00206000, /* position 004 */
0x00206000, /* position 005 */
0x00206000, /* position 006 */
0x00206000, /* position 007 */
0x00206000, /* posi... |
// Copyright 2011 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 ssh
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
"math/big"
"reflect"
"strconv"
"strings"
)
// These are SSH message type numbers. ... |
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
// +build stm32f215
package rtc
import (
"embedded/mmio"
"unsafe"
"github.com/embeddedgo/stm32/p/mmap"
)
type Periph struct {
TR RTR
DR RDR
CR RCR
ISR RISR
PRER RPRER
WUTR RWUTR
CALIBR RCALIBR
ALRMAR RALRMR
ALRMBR RALRMR
WPR RWPR
_ ... |
/*
* Copyright 2018 The Kythe 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 by ap... |
// 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 w... |
// Copyright 2019 The NATS 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 wr... |
// Copyright 2021-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included in
// the file licenses/BSL-Couchbase.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 Lic... |
/*
Copyright 2020 The Knative 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, soft... |
// Copyright 2021 The Chromium OS 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 conference
import (
"context"
"fmt"
"regexp"
"strconv"
"strings"
"time"
"chromiumos/tast/common/action"
"chromiumos/tast/errors"
"ch... |
package raftstore
import (
"fmt"
"time"
"github.com/Connor1996/badger"
"github.com/pingcap-incubator/tinykv/kv/config"
"github.com/pingcap-incubator/tinykv/kv/raftstore/message"
"github.com/pingcap-incubator/tinykv/kv/raftstore/meta"
"github.com/pingcap-incubator/tinykv/kv/raftstore/runner"
"github.com/pingca... |
// Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
package external
import (
"bufio"
"encoding/json"
"fmt"
"io"
"log"
"os"
"os/exec"
"strings"
"time"
"github.com/fsouza/go-dockerclient"
"github.com/wercker/wercker/core"
"github.com/wercker/wercker/util"
)
// Used to unmarshal Dock... |
package render3d
import (
"math"
"math/rand"
"github.com/unixpickle/model3d/model3d"
)
const cosineEpsilon = 1e-8
// A Material determines how light bounces off a locally
// flat surface.
type Material interface {
// BSDF gets the amount of light that bounces off the
// surface into a given direction.
// It d... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/securitycenter/v1/asset.proto
package securitycenter
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_struct "github.com/golang/protobuf/ptypes/struct"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "goo... |
/* Copyright 2016-2017 Vector Creations Ltd
*
* 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/buildbucket/proto/common.proto
package buildbucketpb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they a... |
package paravirt
import (
"context"
"encoding/base64"
"fmt"
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/vmware-tanzu/velero-plugin-for-vsphere/pkg/backuprepository"
"github.com/vmware-tanzu/velero-plugin-for-vsphere/pkg/constants"
"github.com/vmware-tanzu/astrola... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: protos/groups/groups.proto
package groups
import (
enums "github.com/paranoiacblack/destiny2/service/protos/enums"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "g... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/bidding_strategy.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googleapis/ads/g... |
// Copyright 2018 Istio 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 i... |
/*
memberlist is a library that manages cluster
membership and member failure detection using a gossip based protocol.
The use cases for such a library are far-reaching: all distributed systems
require membership, and memberlist is a re-usable solution to managing
cluster membership and node failure detection.
member... |
package sweep
import (
"errors"
"fmt"
"math/rand"
"sync"
"sync/atomic"
"time"
"github.com/litecoinfinance/btcd/wire"
"github.com/litecoinfinance/btcutil"
"github.com/davecgh/go-spew/spew"
"github.com/litecoinfinance/lnd/chainntnfs"
"github.com/litecoinfinance/lnd/input"
"github.com/litecoinfinance/lnd/lnw... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-2020 Datadog, Inc.
package aggregator
import (
"expvar"
"fmt"
"sync"
"time"
"github.com/... |
package libpod
import (
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"sync"
"github.com/BurntSushi/toml"
is "github.com/containers/image/storage"
"github.com/containers/image/types"
"github.com/containers/libpod/libpod/image"
"github.com/containers/libpod/pkg/firewall"
"github.com/containers/libpod/pkg/hooks... |
// Copyright (c) 2015-2021 MinIO, Inc.
//
// This file is part of MinIO Object Storage stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (... |
// Command grpcurl makes GRPC requests (a la cURL, but HTTP/2). It can use a supplied descriptor file or
// service reflection to translate JSON request data into the appropriate protobuf request data and vice
// versa for presenting the response contents.
package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"... |
package main
import (
"crypto/md5"
"crypto/sha256"
"crypto/tls"
"crypto/x509"
"database/sql"
"encoding/base64"
"flag"
"fmt"
"net/url"
"os"
"strings"
"time"
"github.com/jmhodges/clock"
"golang.org/x/crypto/ocsp"
"golang.org/x/net/context"
"github.com/letsencrypt/boulder/akamai"
capb "github.com/letse... |
package take3
import (
"fmt"
"strconv"
"strings"
)
// マス番号 00~99,100~113
type Square uint32
const (
// 先手
FIRST = iota + 1
// 後手
SECOND
)
// 駒
const (
PIECE_EMPTY = ""
PIECE_K1 = "K"
PIECE_R1 = "R"
PIECE_B1 = "B"
PIECE_G1 = "G"
PIECE_S1 = "S"
PIECE_N1 = "N"
PIECE_L1 = "L"
PIECE_... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/asset/v1beta1/assets.proto
package asset // import "google.golang.org/genproto/googleapis/cloud/asset/v1beta1"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/golang/protobuf/ptypes/any"
i... |
/*
(c) Copyright 2017 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 applicable law or agre... |
/*
Copyright 2017 The Nuclio 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, soft... |
package dotweb
import (
"fmt"
"github.com/devfeel/dotweb/framework/crypto/uuid"
"net/http"
_ "net/http/pprof"
"runtime"
"runtime/debug"
"runtime/pprof"
"strconv"
"strings"
"context"
"errors"
"reflect"
"sync"
"time"
"github.com/devfeel/dotweb/cache"
"github.com/devfeel/dotweb/config"
"github.com/devf... |
/*MIT License
Copyright (c) 2021 <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, merge, publish, distribute... |
package stack
import (
"context"
"fmt"
"regexp"
"strings"
"time"
"github.com/go-logr/logr"
kabanerov1alpha2 "github.com/kabanero-io/kabanero-operator/pkg/apis/kabanero/v1alpha2"
sutils "github.com/kabanero-io/kabanero-operator/pkg/controller/stack/utils"
"github.com/kabanero-io/kabanero-operator/pkg/controll... |
package types
import (
"bytes"
"errors"
"fmt"
"github.com/meshplus/gosdk/kvsql/mysql"
"math"
"strconv"
gotime "time"
)
// Time format without fractional seconds precision.
const (
TimeFormat = "2006-01-02 15:04:05"
// TimeFSPFormat is time format with fractional seconds precision.
TimeFSPFormat = "2006-01-0... |
package swgen
import (
"encoding/json"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"path"
"reflect"
"strings"
"testing"
"time"
"github.com/kr/pretty"
)
type TestSampleStruct struct {
SimpleString string `json:"simple_string"`
SimpleInt int `json:"simple_int"`
}
type testEmptyStruct struct{}
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/v3/model.proto
package common
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.M... |
package compiler
import (
"bytes"
"code.google.com/p/go.tools/go/types"
"encoding/json"
"fmt"
"github.com/gopherjs/gopherjs/gcexporter"
"go/ast"
"go/build"
"go/parser"
"go/token"
"path/filepath"
"sort"
"strings"
)
type funcContext struct {
p *pkgContext
sig *types.Signature
allVar... |
// Copyright 2015 The Vanadium 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 parse implements the VDL parser, converting source files into a parse
// tree. The ParseFile function is the main entry point.
package parse
... |
//
// Copyright 2020 The AVFS 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 ag... |
package values
import (
"bufio"
"fmt"
"regexp"
"strings"
"github.com/planetdecred/godcr/ui/values/localizable"
)
const (
DefaultLangauge = localizable.ENGLISH
commentPrefix = "/"
)
var rex = regexp.MustCompile(`(?m)("(?:\\.|[^"\\])*")\s*=\s*("(?:\\.|[^"\\])*")`) // "key"="value"
var Languages = []string{lo... |
package plist
// #include <CoreFoundation/CoreFoundation.h>
import "C"
import (
"errors"
"reflect"
"strconv"
"strings"
"sync"
"time"
"unicode"
)
// Format represents the format of the property list
type Format struct {
cfFormat C.CFPropertyListFormat // don't export this, we want control over all valid value... |
package main
import (
"bytes"
"compress/gzip"
"context"
"crypto/ed25519"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"os"
"path"
"path/filepath"
"regexp"
"strings"
"time"
"openabyss/client/configuration"
"openabyss/client/console"
pb "openabyss/proto/server"
"openabyss/utils"
"github.com/fatih/color... |
package analysis
import (
"go/types"
"strconv"
"github.com/frk/isvalid/internal/search"
"github.com/frk/tagutil"
)
type (
// ValidatorStruct represents the result of the analysis of a validator struct type.
ValidatorStruct struct {
// Name of the validator struct type.
TypeName string
// The primary fiel... |
package w32
// window messages
const (
WM_APP = 32768
WM_ACTIVATE = 6
WM_ACTIVATEAPP = 28
WM_AFXFIRST = 864
WM_AFXLAST = 895
WM_ASKCBFORMATNAME = 780
WM_CANCELJOURNAL = 75
WM_CANCELMODE = 31
WM_CAPTURECHANGED ... |
package engine
import (
"fmt"
"os"
)
const generalHelpText = `Available functions:
Data structures
// Get or create database-backed Set (takes a name, returns a set object)
Set(string) -> userdata
// Add an element to the set
set:add(string)
// Remove an element from the set
set:del(string)
// Check if a set cont... |
package regression
import (
"errors"
"math"
"strconv"
"github.com/anyappinc/regression/v2/logger"
"gonum.org/v1/gonum/mat"
"gonum.org/v1/gonum/stat"
"gonum.org/v1/gonum/stat/distuv"
)
var (
// ErrNotEnoughObservations signals that there weren't enough observations to train the model.
ErrNotEnoughObservation... |
package parrotbebop
import (
"bytes"
"context"
"encoding/binary"
"encoding/json"
"errors"
"fmt"
"io"
"log"
"net"
"os"
"reflect"
"strconv"
"time"
"unsafe"
)
// Discover will initalize the connection with the drone.
func (d *Drone) Discover() error {
// A discover with JSON formated data like :
//
// {... |
package flightdb
import(
"fmt"
"time"
"github.com/skypies/geo"
quadgeo "github.com/paulmach/go.geo"
"github.com/paulmach/go.geo/quadtree"
)
// IntersectableTrack contains a track, and data structures for efficient intersections against
// geo.Restrictors
type IntersectableTrack struct {
Track // embed
l ... |
//line demo.y:2
//TODO Put your favorite license here
// yacc source generated by ebnf2y[1]
// at 2013-10-04 19:00:20.671014862 +0200 CEST
//
// $ ebnf2y -start Expression -o demo.y demo.ebnf
//
// CAUTION: If this file is a Go source file (*.go), it was generated
// automatically by '$ go tool yacc' from a *.y file... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.