text stringlengths 5.51k 28.1k |
|---|
package request
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"math"
"mime"
"mime/multipart"
"net/http"
"net/textproto"
"net/url"
"path/filepath"
"reflect"
"strconv"
"strings"
"time"
"github.com/gildas/go-core"
"github.com/gildas/go-errors"
"github.com/gildas/go-logger"
"github.com/google/... |
/*
* umoci: Umoci Modifies Open Containers' Images
* Copyright (C) 2016, 2017 SUSE 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... |
package types
import (
"context"
"fmt"
"regexp"
"strconv"
"strings"
"time"
"github.com/Netflix/titus-executor/api/netflix/titus"
"github.com/Netflix/titus-executor/config"
"github.com/Netflix/titus-executor/uploader"
vpcapi "github.com/Netflix/titus-executor/vpc/api"
podCommon "github.com/Netflix/titus-kub... |
package config
import "time"
//Real Time Filtering by device/alertid/or other tags
// DeviceStatCfg current stats by device
type DeviceStatCfg struct {
ID int64 `xorm:"'id' pk autoincr"`
OrderID int64 `xorm:"orderid"`
DeviceID string `xorm:"deviceid" binding:"Required"`
AlertI... |
package ethrpc
import (
"bytes"
"encoding/json"
"math/big"
"unsafe"
)
// Syncing - object with syncing data info
type Syncing struct {
IsSyncing bool
StartingBlock int
CurrentBlock int
HighestBlock int
}
// UnmarshalJSON implements the json.Unmarshaler interface.
func (s *Syncing) UnmarshalJSON(data []... |
// #include "sam.h"
// #include "parse.h"
package main
import (
"fmt"
"os"
"strings"
"unicode/utf8"
)
var linex = "\n"
var wordx = " \t\n"
var cmdtab []Cmdtab = nil
func init() { cmdtab = cmdtab1 } // break init loop
var cmdtab1 = []Cmdtab{
/* cmdc text regexp addr defcmd defaddr count token fn */
{'\n', f... |
package chaincode
import (
"fmt"
"github.com/golang/protobuf/proto"
"github.com/hyperledger/fabric-sdk-go/pkg/client/channel"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/core"
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/fab"
"github.com/hyperledger/fabric-sdk-go/pkg/context"
coreco... |
package main
// or, a place you'd really like to have basic generics
// DO I REALLY HAVE TO TELL YOU NOT TO USE THIS? No, I really don't, and
// am kind of flattering myself by even saying it out loud, but on the
// off chance it isn't clear: DON'T USE THIS. YOU ARE CRAZY. GO AWAY.
import (
"crypto/cipher"
"fmt"
... |
/*
Copyright The containerd Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"math/rand"
"os"
"os/exec"
"strconv"
"strings"
"time"
"github.com/giagiannis/data-profiler/core"
)
type expOrderingParams struct {
mlScript *string // script used for approximation
output *string // output file path
repetitions *int // num... |
package main
import (
"encoding/json"
"encoding/xml"
"fmt"
"github.com/gradienthealth/dicom/dicomtag"
"net/http"
"os"
"strconv"
"strings"
"time"
"unicode"
)
//// Schema Data
type SchemaDef struct {
ClassDefs []*ClassDef
TagDefs map[string]*TagDef
ModuleDefs map[string]*ModuleDef
}
type ClassDef st... |
package main
import (
"fmt"
"github.com/360EntSecGroup-Skylar/excelize"
"log"
"strconv"
"strings"
"time"
)
// Sheet is a struct containing the filename and the excelize.File
type Sheet struct {
filename string
file *excelize.File
}
func (sheet *Sheet) init() {
sheet.file = excelize.NewFile()
}
func (sh... |
// Bidirectional RPC with JSON messages.
//
// Uses net/rpc, is inspired by net/rpc/jsonrpc, but does more than
// either:
//
// - fully bidirectional: server can call RPCs on the client
// - incoming messages with seq 0 are "untagged" and will not
// be responded to
//
// This allows one to do RPC over websockets wi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/tap/v3alpha/tap.proto
package envoy_service_tap_v3alpha
import (
context "context"
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
v3alpha1 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3alpha"
v3alpha "github.com/envoy... |
// Copyright 2017 Pilosa Corp.
//
// 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 list of conditions and the following disclaime... |
/*
Copyright 2021 The OpenYurt 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, so... |
package nativedtls
/*
#cgo LDFLAGS: ${SRCDIR}/openssl/libssl.a ${SRCDIR}/openssl/libcrypto.a -ldl
#cgo CFLAGS: -g -Wno-deprecated -I${SRCDIR}/openssl/include
#include <stdlib.h>
#include <string.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
extern int go_session_bio_write(BIO* bio, c... |
package main
import (
"fmt"
"github.com/life4/gweb/audio"
"github.com/life4/gweb/web"
)
type KeyBoard struct {
notes map[int]map[string]float64
context audio.AudioContext
doc web.Document
sounds map[int]map[string]*Sound
octave int
}
func (kbd KeyBoard) Octaves() []int {
max := 0
for octave := ran... |
package wallet
import (
"bytes"
"crypto/rand"
"fmt"
"io/ioutil"
"os"
"path"
"time"
"github.com/mit-dci/go-bverify/bitcoin/bech32"
"github.com/mit-dci/go-bverify/bitcoin/btcutil"
"github.com/mit-dci/go-bverify/bitcoin/chaincfg"
"github.com/mit-dci/go-bverify/bitcoin/chainhash"
"github.com/mit-dci/go-bverif... |
package mp
import (
"errors"
"fmt"
"io"
"strconv"
"sync"
"sync/atomic"
)
const (
unreachableCode = "internal error -- (supposedly) unreachable code was hit"
)
const (
errStringUnknownProtocol = "unknown protocol"
errStringMultipleAuths = "client has already authenticated"
errStringNotYetAuthed = "clie... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: rockamalg.proto
package rockamalgrpc
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.o... |
package db
import (
"errors"
"fmt"
"log"
"os"
"sort"
"strings"
"time"
"github.com/messagedb/messagedb/meta"
"github.com/messagedb/messagedb/sql"
)
// QueryExecutor executes every statement in an MessageDB Query. It is responsible for
// coordinating between the local tsdb.Store, the meta.Store, and the othe... |
package model
import (
"crypto/sha256"
"database/sql"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"reflect"
"testing"
"github.com/DATA-DOG/go-sqlmock"
_ "github.com/mattn/go-sqlite3"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
)
func TestDatabase_Fetch(t *testing.T) {
db := &Dat... |
package wasm
// #include <stdlib.h>
//
// extern void return_result(void *context, int32_t pointer, int32_t size, int32_t ident);
// extern void return_result_swift(void *context, int32_t pointer, int32_t size, int32_t ident, int32_t swiftself, int32_t swifterr);
//
// extern int32_t fetch_url(void *context, int32_t m... |
package fs
import (
"encoding"
"encoding/binary"
"errors"
"fmt"
"strings"
"time"
stdUnicode "unicode"
"golang.org/x/text/encoding/unicode"
)
// ISO 9660 Overview
// https://wiki.osdev.org/ISO_9660
const (
sectorSize sizeBytes = 0x800
systemAreaSize ... |
// Test vectors taken from https://tools.ietf.org/html/rfc7748
package dh_test
import (
"testing"
"github.com/crypto-y/babble/dh"
"github.com/stretchr/testify/require"
)
var x448, _ = dh.FromString("448")
func TestGenerateKeyPair448(t *testing.T) {
var (
priv = [56]byte{
0x9a, 0x8f, 0x49, 0x25, 0xd1, 0x51... |
// Package rdf provides functionality for working with RDF resources, including
// parsing and serialization of the various RDF formats.
//
// Data model
//
// The package adhers to the RDF data model as described in http://www.w3.org/TR/rdf11-concepts/.
//
// Data structures
//
// TODO.
//
// Encoding and decoding
//
... |
package main
import (
"bufio"
"fmt"
"io"
"os"
"strings"
"encoding/csv"
"github.com/BurntSushi/toml"
"flag"
"time"
"strconv"
"regexp"
)
type ScenarioLine struct {
logtype string
time string
srcip string
destip string
natsrcip string
natdestip string
rulename string
srczone string
destzone ... |
// Code generated by command: go run asm.go -out signature.s -stubs stub.go -seed 42 -num 256. DO NOT EDIT.
package signature
func Signature0() (uint32, int16)
func Signature1(int16, uint, uint32) (int64, int8, uint64, int64)
func Signature2(uint, int16) (uint32, uintptr, int16, uint16)
func Signature3(uintptr, ui... |
package etcdio
import (
"context"
"fmt"
"net/http"
"net/url"
"os"
"strconv"
"sync"
"sync/atomic"
"time"
"github.com/pkg/errors"
"github.com/yeqown/log"
"go.etcd.io/etcd/client/pkg/v3/fileutil"
"go.etcd.io/etcd/client/pkg/v3/types"
"go.etcd.io/etcd/raft/v3"
"go.etcd.io/etcd/raft/v3/raftpb"
"go.etcd.io/... |
// Copyright 2017 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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.12.1
// source: infra/tricium/api/admin/v1/la... |
// Copyright (c) 2015 Western Digital Corporation or its affiliates. All rights reserved.
// SPDX-License-Identifier: MIT
package wal
import (
"fmt"
"os"
"path"
"sort"
"sync"
log "github.com/golang/glog"
)
// defaultMaxFileSize is the size (in bytes) to which we try to limit
// individual log files. The bigg... |
package main
import log "github.com/Sirupsen/logrus"
import "strconv"
import "time"
import "net"
import "os"
import "io"
import "runtime/pprof"
import "encoding/binary"
import "github.com/google/gopacket"
import "github.com/google/gopacket/pcap"
import "github.com/google/gopacket/tcpassembly"
import "github.com/googl... |
// 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.
// Semaphore implementation exposed to Go.
// Intended use is provide a sleep and wakeup
// primitive that can be used in the contended case
// of other synchro... |
/*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL.txt and at www.mariadb.com/bsl11.
//
// Change Date: 2022-10-01
//
// On the date above, in accordance with the Business Source License, use
// of this software will be gov... |
/*
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 2017-2019 <NAME> (<EMAIL>).
//
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: envoy/extensions/filters/network/direct_response/v3/config.proto
package direct_responsev3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
v3 "github.com/envoyproxy/go-control-plane/envo... |
package clusters
import (
"errors"
"fmt"
"github.com/istio-ecosystem/admiral/admiral/pkg/controller/admiral"
"github.com/istio-ecosystem/admiral/admiral/pkg/controller/common"
"github.com/istio-ecosystem/admiral/admiral/pkg/controller/istio"
"github.com/istio-ecosystem/admiral/admiral/pkg/controller/util"
"gith... |
// 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 ... |
// 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... |
package teams
import (
"encoding/hex"
"fmt"
"strings"
"testing"
"time"
"golang.org/x/net/context"
"github.com/davecgh/go-spew/spew"
"github.com/keybase/client/go/externals"
"github.com/keybase/client/go/kbtest"
"github.com/keybase/client/go/libkb"
"github.com/keybase/client/go/protocol/keybase1"
"github.... |
// Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library 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... |
package entrypoint
import (
"context"
"encoding/json"
"fmt"
"os"
"sync"
"sync/atomic"
gw "sigs.k8s.io/gateway-api/apis/v1alpha1"
"github.com/datawire/ambassador/v2/cmd/ambex"
"github.com/datawire/ambassador/v2/pkg/acp"
"github.com/datawire/ambassador/v2/pkg/debug"
ecp_v2_cache "github.com/datawire/ambassa... |
/*
* Tencent is pleased to support the open source community by making Blueking Container Service available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obta... |
/*
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 nginx
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
"os/exec"
"sort"
"strings"
"sync"
"syscall"
"text/template"
"time"
log "github.com/sirupsen/logrus"
"github.com/sky-uk/feed/controller"
"github.com/sky-uk/feed/util"
)
const (
nginxStartDelay = time.Millisecond * 100
metricsUpdateI... |
package router
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import v2ray_core_common_net "github.com/whatedcgveg/v2ray-core/common/net"
import v2ray_core_common_net1 "github.com/whatedcgveg/v2ray-core/common/net"
// Reference imports to suppress errors if they are not ot... |
// Copyright (c) 2020 Zededa, Inc.
// SPDX-License-Identifier: Apache-2.0
//
// This is basically re-implementation of:
// https://github.com/opencontainers/runtime-tools/blob/master/generate/generate.go
// The reason we're not using it verbatim is that we only need a tiny
// subset of its functionality AND we are p... |
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file,
// You can obtain one at https://github.com/gogf/gf.
// Package gtime provides functionality for measuring and displ... |
package sparta
import (
"fmt"
"github.com/aws/aws-sdk-go/aws/session"
gocf "github.com/mweagle/go-cloudformation"
"github.com/pkg/errors"
"github.com/rs/zerolog"
)
// Ref: https://github.com/aws-samples/simple-websockets-chat-app
// APIV2RouteSelectionExpression represents a route selection
type APIV2RouteSele... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package startcmd
import (
"crypto/aes"
"crypto/rand"
"crypto/tls"
"encoding/json"
"fmt"
"net/http"
"net/url"
"strconv"
"strings"
"time"
"github.com/trustbloc/hub-auth/pkg/restapi/common/hydra"
"github.co... |
package config
import (
"context"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
"regexp"
"strconv"
"strings"
"github.com/ghodss/yaml"
"github.com/magiconair/properties"
"github.com/pkg/errors"
scyllaversionedclient "github.com/scylladb/scylla-operator/pkg/client/scylla/clientset/versioned"
"github.com/scyllad... |
package client
import (
"encoding/binary"
"fmt"
"io"
"net"
"os"
"syscall"
"unsafe"
"github.com/sequix/nbd/pkg/bytesutil"
"github.com/sequix/nbd/pkg/nbd"
)
// todo tls
// todo meta context
// todo timeout
// todo oldstyle & newstlye negotiation
// todo reconnect if link is down
type Client struct {
conn ... |
package mirror
import (
"bytes"
"context"
"fmt"
"io"
"net/http"
"net/url"
"path"
"strings"
"sync"
"time"
"k8s.io/klog"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/... |
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright © 2019 IBM Corporation and others.
//
// 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 la... |
//
// Copyright Coinbase, Inc. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
package accumulator
import (
"bytes"
crand "crypto/rand"
"errors"
"fmt"
"git.sr.ht/~sircmpwn/go-bare"
"github.com/coinbase/kryptology/pkg/core/curves"
)
type proofParamsMarshal struct {
X []byte `bare:"x"`
... |
/*
Copyright 2019 The Crossplane 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, sof... |
package kegg
import (
"encoding/csv"
"encoding/json"
"encoding/xml"
"fmt"
"image"
"image/png"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"sort"
"strconv"
"strings"
"github.com/fjukstad/gocache"
)
type Pathway struct {
Id string
Name string
Description string
Class string
Pathway... |
/*
Copyright 2020 The Crossplane 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, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: timeseries/v1/timeseries.proto
package timeseriesv1
import (
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "... |
/****************************************************************************
* Copyright 2019-2021, Optimizely, Inc. and contributors *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you m... |
package vault
import (
"errors"
"fmt"
"strings"
"time"
"github.com/hashicorp/errwrap"
multierror "github.com/hashicorp/go-multierror"
"github.com/hashicorp/hcl"
"github.com/hashicorp/hcl/hcl/ast"
"github.com/hashicorp/vault/helper/hclutil"
"github.com/hashicorp/vault/helper/identity"
"github.com/hashicorp/... |
/*
* Tencent is pleased to support the open source community by making Blueking Container Service available.
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License. You may obta... |
package main
import (
"bytes"
"io"
"os"
"os/exec"
"path/filepath"
"sync/atomic"
"syscall"
"time"
"github.com/rsms/go-log"
"github.com/rsms/memex/service-api"
)
const (
ServiceStateInit = uint32(iota)
ServiceStateStart // special state for when the runloop is entered
ServiceStateRun // should be runni... |
// Copyright 2019 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
// gen_interface creates the assemble/validate cpp files given the
// interface.json5 file.
// See README for more details.
import (
"flag... |
package grunway
import (
"fmt"
"log"
"net/http"
"reflect"
"sort"
"strings"
)
const (
NotFoundPrefix = "404 Not Found"
NotFoundErrorNumber = 4040000404
BadRequestPrefix = "400 Bad Request"
BadRequestErrorNumber = 40... |
package riak
import (
"fmt"
"net/http"
"net/http/httptest"
"net/url"
"testing"
"github.com/bfg-finsa/telegraf/testutil"
"github.com/stretchr/testify/require"
)
func TestRiak(t *testing.T) {
// Create a test server with the const response JSON
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWri... |
// Licensed under the MIT license.
// Inspired by the kured project: https://github.com/weaveworks/kured
package main
import (
"context"
"encoding/json"
"fmt"
"math/rand"
"os"
"os/exec"
"strings"
"time"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/weaveworks/kured/pkg/daemonsetlock... |
package rsync
import (
"bytes"
"context"
"io"
"github.com/pkg/errors"
"github.com/mutagen-io/mutagen/pkg/filesystem"
)
// EnsureValid ensures that ReceiverStatus' invariants are respected.
func (s *ReceiverStatus) EnsureValid() error {
// A nil receiver status is valid - it just represents not currently
// r... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: memfd.proto
package types
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/proto... |
package controllers
import (
"context"
"sort"
"strings"
"github.com/go-logr/logr"
"github.com/openshift-psap/special-resource-operator/pkg/assets"
"github.com/openshift-psap/special-resource-operator/pkg/cache"
"github.com/openshift-psap/special-resource-operator/pkg/clients"
"github.com/openshift-psap/specia... |
package meta
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os"
"path/filepath"
"reflect"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/cnosdb/cnosdb/pkg/network"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/raft"
"github.com/hashicorp/raft-boltdb"
"go.uber.org/zap"
)... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: replica/v1/replica.proto
package replica
import (
object "github.com/rotationalio/honu/object"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/pro... |
package gaussproc
import (
"errors"
"fmt"
"math"
"gonum.org/v1/gonum/stat/distmv"
"github.com/btracey/kernel"
"gonum.org/v1/gonum/mat"
"gonum.org/v1/gonum/stat"
"gonum.org/v1/gonum/stat/distuv"
)
var (
badInputDim = "gaussproc: input dimension mismatch"
badStorageDim = "gaussproc: storage dim... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/enums/criterion_type.proto
package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v1/enums"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto... |
package kubernetes
import (
"fmt"
"io/ioutil"
"os"
"path"
"strconv"
"strings"
"time"
logutil "github.com/docker/infrakit/pkg/log"
"github.com/docker/infrakit/pkg/run/scope"
"github.com/docker/infrakit/pkg/spi/flavor"
"github.com/docker/infrakit/pkg/spi/group"
"github.com/docker/infrakit/pkg/spi/instance"
... |
// 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... |
// Copyright (c) 2017 Arista Networks, Inc.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the COPYING file.
/*
Package excludespec provides APIs for loading a specification file that
describes which files or directories are excluded and/or included.
*/
package excludespec
im... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.6.1
// source: protos/output/languageSpecific/env.proto
package languageSpecific
import (
helpers "code-analyser/protos/pb/helpers"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "... |
// Copyright 2016-2018, Pulumi 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... |
// Copyright 2015 CoreOS, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package route
import (
"encoding/json"
"errors"
"fmt"
"sync"
"time"
"github.com/google/uuid"
"github.com/hyperledger/aries-framework-go/pkg/common/log"
"github.com/hyperledger/aries-framework-go/pkg/didcomm... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// // Use of this source code is governed by a BSD-style
// // license that can be found in the LICENSE file.
package gerrit
import (
"bufio"
"bytes"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/http/cookiejar"
"net/url"
"os"
"path"
"strconv"
"stri... |
package headscale
import (
"encoding/json"
"errors"
"fmt"
"io"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/rs/zerolog/log"
"github.com/tailscale/hujson"
"gopkg.in/yaml.v3"
"inet.af/netaddr"
"tailscale.com/tailcfg"
)
const (
errEmptyPolicy = Error("empty policy")
errInvalidAction = E... |
// Copyright (c) 2016, <NAME> <<EMAIL>>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this
// list of conditions and the following di... |
//go:build !nos3
// +build !nos3
/*
* JuiceFS, Copyright 2018 Juicedata, 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
*
* ... |
// Public Domain (-) 2010-present, The Web4 Authors.
// See the Web4 UNLICENSE file for details.
// Package term provides support for interacting with terminals.
package term
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"os"
"runtime"
"strconv"
"strings"
"sync"
"syscall"
"time"
"web4.cc/pkg/process"
)... |
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/dhowden/tag"
"github.com/disintegration/imaging"
"gopkg.in/yaml.v3"
)
// Song structure.
type Song struct {
File string `yaml:"file"`
Name string `yaml:"name"`
Author str... |
// Copyright 2019 The Kubedge 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 agree... |
package analyzer
import (
"fmt"
"io"
"os"
"github.com/icza/screp/rep"
"github.com/icza/screp/rep/repcmd"
)
func findPlayerID(replay *rep.Replay, names map[string]struct{}) byte {
for _, p := range replay.Header.PIDPlayers {
if _, ok := names[p.Name]; ok {
return p.ID
}
}
return 127 // On a byte field ... |
package d3d
import (
"errors"
"fmt"
"image"
"unsafe"
"github.com/kirides/screencapture/swizzle"
)
type PointerInfo struct {
pos POINT
size POINT
shapeInBuffer []byte
shapeOutBuffer *image.RGBA
visible bool
}
type OutputDuplicator struct {
device *ID3D11Device
deviceCtx ... |
package main
import (
"context"
"fmt"
"math"
"os"
"path/filepath"
"strings"
"time"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcwallet/wallet"
"github.com/jessevdk/go-flags"
"github.com/lightninglabs/protobuf-hex-display/jsonpb" // nolint
"github.com/lightningnetwork/lnd/aezeed"
"github.co... |
// Copyright 2012, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package tabletserver
import (
"bytes"
"context"
"encoding/json"
"fmt"
"net/http"
"sync"
"time"
log "github.com/golang/glog"
"github.com/youtube/vitess/... |
package warp
import (
"net/http"
"net/http/httptest"
"net/url"
"reflect"
"testing"
)
// Handler and ServeHTTP tests, Method rules
var registerRoutes = []struct {
pattern string
message string // to create a handle that returns the string
rules []Rule
}{
{"/leaf", "leaf", nil},
{"/tree/", "tree", nil},
/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/resultdb/proto/rpc/v1/invocation.proto
package rpcpb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_type "go.chromium.org/luci/resultdb/proto/type"
_ "google.gola... |
package util
import (
"bytes"
"encoding/json"
"fmt"
"github.com/Microsoft/hcsshim"
"github.com/Microsoft/hcsshim/hcn"
"github.com/Microsoft/windows-container-networking/cni"
cniSkel "github.com/containernetworking/cni/pkg/skel"
cniTypes "github.com/containernetworking/cni/pkg/types"
"net"
"os"
"os/exec"
"s... |
package main
import(
"errors"
"flag"
"fmt"
"math"
"os"
"reflect"
"sync"
"unsafe"
)
var idims [3]uint // input dimensions
var odims [3]uint // output dimensions
var mksphere = false
var input string
var output string
func init() {
flag.BoolVar(&mksphere, "sphere", false, "create 'sphere' output file")
flag.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.