text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: up_insert_global_variables.proto
package pkg
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
math "math"
)
// Reference imports to suppress errors if they are not... |
// Copyright 2020 The Nakama 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 serversext
import (
"math"
"github.com/huaweicloud/huaweicloud-sdk-go"
"github.com/huaweicloud/huaweicloud-sdk-go/openstack"
"github.com/huaweicloud/huaweicloud-sdk-go/openstack/blockstorage/v2/volumes"
"github.com/huaweicloud/huaweicloud-sdk-go/openstack/bss/v1/resource"
"github.com/huaweicloud/huaweic... |
package datasource
import (
"fmt"
"reflect"
"strconv"
"strings"
"sync"
)
var mu sync.Mutex
const (
// OperEq 等于
OperEq string = "="
// OperNoteq 不等于
OperNoteq string = "<>"
// OperGt 大于
OperGt string = ">"
// OperLt 小于
OperLt string = "<"
// OperGtEg 大于等于
OperGtEg string = ">="
// OperLtEg 小于等于
Oper... |
// Copyright 2015 The Goga 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 goga
import (
"bytes"
"time"
"github.com/cpmech/gosl/chk"
"github.com/cpmech/gosl/io"
"github.com/cpmech/gosl/utl"
)
// TexReport produces TeX... |
/*
* Copyright 2021 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
package retwt
import (
"bufio"
"encoding/base32"
"encoding/gob"
"encoding/json"
"errors"
"fmt"
"io"
"regexp"
"strings"
"time"
"git.mills.io/yarnsocial/yarn/types"
log "github.com/sirupsen/logrus"
"golang.org/x/crypto/blake2b"
)
func init() {
gob.Register(&reTwt{})
}
var (
tagsRe = regexp.MustCompi... |
package rest
import (
"encoding/json"
"fmt"
"github.com/netapp/harvest/v2/cmd/collectors/rest/plugins/certificate"
"github.com/netapp/harvest/v2/cmd/collectors/rest/plugins/disk"
"github.com/netapp/harvest/v2/cmd/collectors/rest/plugins/qtree"
"github.com/netapp/harvest/v2/cmd/collectors/rest/plugins/sensor"
"g... |
// Package execute contains the implementation of the execution phase in the query engine.
package execute
import (
"context"
"fmt"
"math"
"reflect"
"sync"
"time"
"github.com/influxdata/flux"
"github.com/influxdata/flux/codes"
"github.com/influxdata/flux/internal/errors"
"github.com/influxdata/flux/memory"
... |
package field
import (
"errors"
"fmt"
"go/ast"
"go/types"
"path/filepath"
"sync"
"github.com/lolopinto/ent/internal/astparser"
"golang.org/x/tools/go/packages"
)
type parseResult struct {
entType types.Type
pkgPath string
err error
private bool
}
type packageExplorer struct {
m sync.Mutex
// hav... |
// 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.
// This package implements RSA encryption as specified in PKCS#1.
package rsa
// TODO(agl): Add support for PSS padding.
import (
"big";
"bytes";
"crypto/s... |
// Copyright (c) 2020 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"errors"
"fmt"
"io/ioutil"
"net"
"os"
"os/user"
"path/filepath"
"runtime"
"strings"
"time"
"decred.org/dcrwallet/wallet/txrules"
"github.com... |
package manager
import (
"context"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"runtime/pprof"
"strings"
"sync"
"time"
"github.com/stashapp/stash/internal/desktop"
"github.com/stashapp/stash/internal/dlna"
"github.com/stashapp/stash/internal/log"
"github.com/stashapp/stash/internal/manager/config"
... |
// package stapler implements OCSP stapling feature described here: http://en.wikipedia.org/wiki/OCSP_stapling
// stapler provides implementation that caches the staple on the first request and periodically updates the cache
// OCSP specs:
// https://tools.ietf.org/html/rfc2560
// http://tools.ietf.org/html/rfc60... |
// +build linux
package firecracker
/**
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 vorteil.io Pty Ltd
*/
import (
"context"
"errors"
"fmt"
"net"
"os"
"path/filepath"
"strings"
"sync"
"syscall"
"time"
"github.com/firecracker-microvm/firecracker-go-sdk"
"github.com/firecracker-microvm/firec... |
//
// Copyright (c) 2014-2019 Cesanta Software Limited
// 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
//
// Un... |
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
//
... |
package main
import (
"fmt"
"github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/inpututil"
. "github.com/shnifer/magellan/commons"
. "github.com/shnifer/magellan/draw"
"github.com/shnifer/magellan/graph"
. "github.com/shnifer/magellan/log"
"github.com/shnifer/magellan/v2"
"golang.org/x/image/colorn... |
package main
import (
"crypto/sha256"
"crypto/tls"
"flag"
"fmt"
"net"
// _ "net/http/pprof"
"os"
"runtime"
"time"
"github.com/ginuerzh/gost"
"github.com/go-log/log"
)
var (
options route
routes []route
)
func init() {
gost.SetLogger(&gost.LogLogger{})
var (
configureFile string
printVersion bo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: nft/service.proto
package nftpb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
import _ "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... |
/*
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, ... |
package itest
import (
"context"
"crypto/rand"
"encoding/json"
"testing"
"time"
"github.com/btcsuite/btcutil"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/lnrpc/invoicesrpc"
"github.com/lightningnetwork/lnd/lnrpc/routerrpc"
"github.com/lightningnetwork/lnd/lntest"
"github.com/li... |
// Inspired by fabric-samples, in particular fabcar and marbles_chaincode_private.go
// Place this file in: fabric-sample/chaincode/marbles02_private/go
package main
/* Imports
* 2 utility libraries for formatting, reading and writing JSON
* 2 specific Hyperledger Fabric specific libraries for Smart Contracts
*/
i... |
// Copyright ©2012 The bíogo 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 sam
import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"math"
"reflect"
"strconv"
"unsafe"
)
// ASCII is a printable ASCII character ... |
package pdf
import (
"bytes"
"github.com/johnfercher/maroto/internal"
"github.com/johnfercher/maroto/pkg/consts"
"github.com/johnfercher/maroto/pkg/props"
"github.com/jung-kurt/gofpdf"
)
// Maroto is the principal abstraction to create a PDF document.
type Maroto interface {
// Grid System
Row(height float64, ... |
package tlog
import (
"encoding/hex"
"fmt"
"io"
"path/filepath"
"runtime/debug"
"strconv"
"strings"
"time"
"github.com/nikandfor/errors"
"github.com/nikandfor/loc"
"github.com/nikandfor/tlog/low"
"golang.org/x/crypto/ssh/terminal"
)
type (
ConsoleWriter struct {
io.Writer
f int
d Decoder
addpa... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ligato/linux/punt/punt.proto
package linux_punt
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
/... |
// Copyright (c) 2021 GoDaddy Operating Company, LLC. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT
package lambda
import (
"compress/gzip"
"context"
"encoding/json"
"fmt"
"net/http"
"net/http/httptest"
"os"
"reflect"
"testing"
"time"
"github.com/davecgh/go-spew/spew"
"github.c... |
package segments
import (
"fmt"
"oh-my-posh/environment"
"oh-my-posh/properties"
"oh-my-posh/regex"
"strconv"
"strings"
"gopkg.in/ini.v1"
)
// GitStatus represents part of the status of a git repository
type GitStatus struct {
ScmStatus
}
func (s *GitStatus) add(code string) {
switch code {
case ".":
re... |
package server
import (
"fmt"
"html/template"
"net/http"
"os"
"os/exec"
"reflect"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/named-data/YaNFD/core"
"github.com/named-data/YaNFD/dispatch"
"github.com/named-data/YaNFD/face"
"github.com/named-data/YaNFD/fw"
"github.com/named-data/YaN... |
// Copyright 2020 <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 writing, sof... |
//*
// User Agent
//
// Manage application type, operating system, or application platform.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.19.4
// source: io/common/useragent.proto
package io
import (
protoreflect "google.golang.org/protobuf/reflect/prot... |
// Copyright (c) 2020-2021 Doc.ai and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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/license... |
/*
Copyright 2009-2016 Weibo, Inc.
All files licensed under the Apache License, Version 2.0 (the "License");
you may not use these files except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... |
package user_account
import (
"context"
"strings"
"time"
"database/sql/driver"
"github.com/jmoiron/sqlx"
"github.com/lib/pq"
"github.com/pkg/errors"
"gopkg.in/go-playground/validator.v9"
"remoteschool/smarthead/internal/platform/auth"
"remoteschool/smarthead/internal/platform/web"
)
// Repository defines t... |
package main
import (
"database/sql"
"fmt"
"os"
"os/signal"
"strings"
"sync"
"syscall"
"time"
"strconv"
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
"github.com/pkg/errors"
"golang.org/x/oauth2"
_ "github.com/lib/pq" // PostgreSQL Driver
twitch "github.com/gempir/go-twitch-i... |
// Copyright 2015 Comcast Cable Communications Management, 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 b... |
package quadrant
import (
"fmt"
"strconv"
"github.com/gdamore/tcell/v2"
"github.com/hculpan/kabtrek/game"
)
// Direction constants
const (
_ = iota
Dir1
Dir2
Dir3
Dir4
Dir5
Dir6
Dir7
Dir8
Dir9
)
// State of interface - which option currently selected
const (
Normal = iota
NavigationX
NavigationY
W... |
// Copyright (c) 2021 PaddlePaddle 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... |
package downloader
import (
"errors"
"sync"
"time"
"github.com/beego/beego/v2/core/logs"
"github.com/ethereum/go-ethereum/common"
"land-bridge/network/linq/downloader/prque"
"land-bridge/network/utils"
)
var (
blockCacheItems = 8192 // Maximum number of blocks to cache before throttling the download
b... |
/*
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, ... |
package expr
//go:generate stringer -type=tokenkind
import (
"fmt"
"io"
"strconv"
"unicode"
"unicode/utf8"
)
func lower(ch rune) rune {
return ('a' - 'A') | ch
}
func isdecimal(ch rune) bool {
return '0' <= ch && ch <= '9'
}
func isoctal(ch rune) bool {
return '0' <= ch && ch <= '7'
}
func ishex(ch rune) ... |
package ldvalue
import (
"encoding/json"
"sort"
"testing"
"github.com/stretchr/testify/assert"
)
func TestArrayOf(t *testing.T) {
item0 := String("a")
item1 := Int(1)
value := ArrayOf(item0, item1)
assert.Equal(t, ArrayType, value.Type())
assert.Equal(t, 2, value.Count())
assert.True(t, value.IsDefined()... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/shared_criterion.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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: types.proto
package tensorflow
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... |
package handlers
import (
"context"
"fmt"
"testing"
"time"
"github.com/tokenized/smart-contract/pkg/bitcoin"
"github.com/tokenized/smart-contract/pkg/spynode/handlers/data"
handlerStorage "github.com/tokenized/smart-contract/pkg/spynode/handlers/storage"
"github.com/tokenized/smart-contract/pkg/storage"
"git... |
package vtbmusic
import (
"SMLKBOT/data/botstruct"
"SMLKBOT/data/helps"
"SMLKBOT/utils/cqfunction"
"encoding/json"
"fmt"
"log"
"regexp"
"runtime"
"strconv"
"strings"
"time"
)
type msgType struct {
content string
ctype int8
}
var waiting = make(chan *waitingChan, 15)
var counter int8 = 0
type newReque... |
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/monitoring/v3/agent.proto
// DO NOT EDIT!
/*
Package google_monitoring_v3 is a generated protocol buffer package.
It is generated from these files:
google.golang.org/genproto/googleapis/monitoring/v3/agent.proto
google.golang.org/g... |
package saml
import (
"bytes"
"compress/flate"
"encoding/base64"
"encoding/pem"
"encoding/xml"
"fmt"
"html/template"
"net/http"
"net/url"
"regexp"
"time"
"github.com/crewjam/go-xmlsec"
"github.com/remind101/empire/pkg/jwt"
)
// ServiceProvider implements SAML Service provider.
//
// In SAML, service pro... |
package cli
import (
"bytes"
"io/ioutil"
"net/http"
"os"
"path"
"testing"
"time"
"github.com/pin/tftp"
)
func TestBootEnvCli(t *testing.T) {
var (
bootEnvCreateBadJSONString = "{asdgasdg}"
bootEnvCreateInputString string = `{
"name": "john"
}
`
bootEnvCreateFredInputString string = `fred`
... |
// Code generated by goyacc -o parser.go parser.go.y. DO NOT EDIT.
//line parser.go.y:3
package vm
import __yyfmt__ "fmt"
//line parser.go.y:3
//line parser.go.y:6
type yySymType struct {
yys int
expr Expr
exprs []Expr
str string
lit interface{}
}
const ident = 57346
const lit = 57347
const cfor = 5734... |
// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package integration
import (
"context"
"crypto/tls"
"crypto/x509/pkix"
"encoding/base64"
"encoding/json"
"fmt"
"net/http"
"net/http/httptest"
"net/url"
"regexp"
"strings"
"testing"
"time"
v1 "k... |
package ukf
import (
"fmt"
"math"
filter "github.com/milosgajdos/go-estimate"
"github.com/milosgajdos/go-estimate/estimate"
"github.com/milosgajdos/go-estimate/noise"
"github.com/milosgajdos/matrix"
"gonum.org/v1/gonum/mat"
)
// SigmaPoints represents UKF sigma points and their covariance
type SigmaPoints str... |
// Copyright 2019 The nutsdb 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... |
// +build f303xe
// Peripheral: SYSCFG_Periph System configuration controller.
// Instances:
// SYSCFG mmap.SYSCFG_BASE
// Registers:
// 0x00 32 CFGR1 Configuration register 1.
// 0x04 32 RCR CCM SRAM protection register.
// 0x08 32 EXTICR[4] External interrupt configuration registers.
// 0x18 3... |
// Harmonograph generates GIF animations of random Harmonograph immitation figures.
// run https://github.com/liudng/dogo to have a watcher restart the app on change.
package main
import (
"image"
"image/color"
"image/png"
"io"
"io/ioutil"
"log"
"math"
"net/http"
"strconv"
"sync"
)
var palette = []color.Col... |
/*
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 buildbaron
import (
"context"
"fmt"
"html/template"
"io"
"io/ioutil"
"net/http"
"net/url"
"regexp"
"strconv"
"strings"
"time"
"github.com/evergreen-ci/evergreen"
"github.com/evergreen-ci/evergreen/model"
"github.com/evergreen-ci/evergreen/model/event"
"github.com/evergreen-ci/evergreen/model/ta... |
package main
/*
#include <fcntl.h>
#include <sys/stat.h>
int set_symlink_timestamp(const char *pathname, struct timespec atime, struct timespec mtime)
{
int ret;
struct timespec ts[2];
ts[0] = atime;
ts[1] = mtime;
ret = utimensat(AT_FDCWD, pathname, ts, AT_SYMLINK_NOFOLLOW);
return ret;
}
*/
import "C"
import... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.13.0
// source: helper/storagepacker/types.proto
package storagepacker
import (
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
protoreflect "google.golang.org/protobuf/... |
package main
import (
"bufio"
"bytes"
"fmt"
"log"
"net"
"strings"
"time"
"github.com/go-ini/ini"
"github.com/pkg/errors"
)
/** Missing codes
* NULL (NUL) 0
* Line Feed (LF) 10
* Carriage Return (CR) 13
* Bell (BEL) 7
* BackSpace (BS) 8
* Horizontal Tab (HT) 9
* Vertical Tab (VT) 11
... |
package cluster
/*
Copyright 2019 Crunchy Data Solutions, 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 l... |
package tidio
import (
"bytes"
_ "embed"
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"strings"
"time"
. "github.com/gregoryv/web"
"github.com/gregoryv/web/apidoc"
"github.com/gregoryv/web/toc"
"github.com/gorilla/mux"
"github.com/gregoryv/ant"
"github.com/gregoryv/rs"
)
func NewRouter(... |
// Oekaki (Japanese: お絵描き, o- (formal prefix) + e "picture" + kaki "to draw") is a Japanese term
// used to describe the act of drawing a picture.
package main
import (
"crypto/subtle"
"fmt"
"github.com/gorilla/websocket"
"html/template"
"image"
"image/color"
"image/draw"
"math/rand"
"net/http"
"os"
"os/si... |
// Copyright 2020 Anapaya 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 i... |
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package bootstrap
import (
"errors"
"fmt"
"math"
"time"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/snow"
"github.com/ava-labs/avalanchego/snow/choices"
"github.com/ava-labs... |
package main
import (
"bufio"
"context"
"database/sql"
"encoding/binary"
"io"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"regexp"
"strconv"
"time"
"github.com/go-redis/redis/v8"
"github.com/jasonlvhit/gocron"
_ "github.com/go-sql-driver/mysql"
"gopkg.in/yaml.v2"
)
type feeds struct {
Feeds []feed `ya... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.17.1
// source: cnameManager.proto
package pb
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/p... |
package history
// Generated file, please do not change!!!
import (
"encoding/json"
)
/**
* A Record captures the differences in a resource between one version and the next.
* (Recall that the version number is not always incremented by one; see [Optimistic Concurrency Control](/general-concepts#optimistic-concurre... |
package storages
import (
"context"
"errors"
"fmt"
"strings"
"github.com/jitsucom/jitsu/server/adapters"
"github.com/jitsucom/jitsu/server/appconfig"
"github.com/jitsucom/jitsu/server/caching"
"github.com/jitsucom/jitsu/server/enrichment"
"github.com/jitsucom/jitsu/server/events"
"github.com/jitsucom/jitsu/... |
// Package solvere provides an implementation of a recursive, validating, DNSSEC aware DNS resolver, and
// a basic question and answer cache implementation.
package solvere
import (
"bytes"
"context"
"crypto/rand"
"encoding/binary"
"errors"
"fmt"
mrand "math/rand"
"net"
"os"
"strings"
"time"
"github.com/... |
package cryptopals
import (
"bytes"
"crypto/aes"
"encoding/base64"
"encoding/hex"
"fmt"
)
// Base64Decode decodes a byte array from base64 encoding
// Seems to be returning too long a slice for s1c6
func Base64Decode(src []byte) ([]byte, error) {
b := make([]byte, base64.StdEncoding.DecodedLen(len(src)))
_, er... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/interservice/ingest/automate_event.proto
package ingest // import "github.com/chef/automate/api/interservice/ingest"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import event "github.com/chef/automate/api/interservi... |
/*
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 easy
import (
"bytes"
"context"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"net/http"
"net/http/httputil"
"net/url"
"regexp"
"strings"
"time"
"github.com/jxskiss/gopkg/internal/unsafeheader"
"github.com/jxskiss/gopkg/json"
)
var (
hdrContentTypeKey = http.CanonicalHeaderKey("Content-T... |
package node
import (
. "DNA/common"
. "DNA/common/config"
"DNA/common/log"
"DNA/core/ledger"
"DNA/core/transaction"
"DNA/crypto"
"DNA/events"
. "DNA/net/message"
. "DNA/net/protocol"
"bytes"
"encoding/binary"
"errors"
"fmt"
"math/rand"
"net"
"runtime"
"strconv"
"strings"
"sync"
"sync/atomic"
"tim... |
package basecli
import (
"encoding/json"
"fmt"
"sort"
"strings"
"github.com/iter8-tools/iter8/base"
"github.com/iter8-tools/iter8/base/log"
)
type histBar struct {
X float64 `json:"x" yaml:"x"`
Y float64 `json:"y" yaml:"y"`
}
type hist struct {
Values []histBar `json:"values" yaml:"values"`
Key string ... |
package amqp
import (
"expvar"
"strconv"
"strings"
"time"
"github.com/elastic/beats/libbeat/common"
"github.com/elastic/beats/libbeat/logp"
"github.com/elastic/beats/packetbeat/protos"
"github.com/elastic/beats/packetbeat/protos/tcp"
"github.com/elastic/beats/packetbeat/publish"
)
var (
debugf = logp.Ma... |
// Copyright 2014 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... |
/*
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 (
"fmt"
"os"
"strings"
"time"
"github.com/GeertJohan/yubigo"
"github.com/davecgh/go-spew/spew"
docopt "github.com/docopt/docopt-go"
"github.com/fsnotify/fsnotify"
"github.com/glauth/glauth/pkg/config"
"github.com/glauth/glauth/pkg/frontend"
gologgingr "github.com/glauth/glauth/pkg/golog... |
/*
Handlers and types specific to Metrics analysis tasks.
*/
package metrics_analysis
import (
"context"
"fmt"
"net/http"
"path"
"path/filepath"
"strconv"
"text/template"
"cloud.google.com/go/datastore"
"github.com/gorilla/mux"
"go.skia.org/infra/ct/go/ctfe/chromium_analysis"
"go.skia.org/infra/ct/go/ctf... |
package k8s
import (
"context"
"fmt"
"strings"
"time"
"github.com/lyft/flyteplugins/go/tasks/pluginmachinery/flytek8s/config"
"github.com/lyft/flyteplugins/go/tasks/pluginmachinery/io"
"github.com/lyft/flytestdlib/contextutils"
stdErrors "github.com/lyft/flytestdlib/errors"
"k8s.io/client-go/util/workqueue"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/remote_fused_graph_execute_info.proto
package tensorflow
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Mars... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: protobuf/tensorflow/types.proto
/*
Package framework is a generated protocol buffer package.
It is generated from these files:
protobuf/tensorflow/types.proto
It has these top-level messages:
*/
package framework
import proto "github.com/gogo/protobuf/p... |
// Copyright 2018 The gVisor 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 main
import (
"encoding/json"
"fmt"
"os"
"os/exec"
"strconv"
"strings"
"time"
"github.com/docker/docker/pkg/integration/checker"
"github.com/docker/engine-api/types"
"github.com/docker/engine-api/types/container"
"github.com/go-check/check"
)
func checkValidGraphDriver(c *check.C, name string) {
... |
package main
import (
"encoding/json"
"flag"
"fmt"
"net/http"
"net/url"
"os"
"regexp"
"sort"
"strconv"
"strings"
"time"
)
var permittedProperties = []string{
"dewpoint",
"heatIndex",
"maxTemperature",
"minTemperature",
"pressure",
"probabilityOfPrecipitation",
"probabilityOfThunder",
"quantitativeP... |
package connect
import (
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/asn1"
"errors"
"fmt"
"io/ioutil"
"log"
"net"
"net/url"
"strings"
"sync"
"github.com/hashicorp/consul/agent/connect"
"github.com/hashicorp/consul/api"
)
// parseLeafX509Cert will parse an X509 certificate
// from the TLS ce... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: orderer/cluster.proto
package orderer // import "github.com/hyperledger/udo/protos/orderer"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import common "github.com/hyperledger/udo/protos/common"
import (
context "golan... |
/*
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 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
package interfaces
import (
"context"
"io"
"net/http"
"time"
"github.com/buildbuddy-io/buildbuddy/server/tables"
aclpb "github.com/buildbuddy-io/buildbuddy/proto/acl"
apipb "github.com/buildbuddy-io/buildbuddy/proto/api/v1"
akpb "github.com/buildbuddy-io/buildbuddy/proto/api_key"
espb "github.com/buildbuddy... |
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
// Copyright (c) 2017 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
// Copyright 2017 <NAME>. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package main
import (
"bufio"
"bytes"
"flag"
"fmt"
"io"
"log"
"math/rand"
"os"
"os/signal"
"path/filepath"
"syscall"
"time"
"github.com/OWASP/Amass/config"
"g... |
// Code generated by protoc-gen-go.
// source: phonenumber.proto
// DO NOT EDIT!
package phonenumbers
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
... |
package contextutil
import (
"errors"
"fmt"
"go/build"
"io/fs"
"os"
"path/filepath"
"sort"
"strings"
"syscall"
"github.com/charlievieth/buildutil/internal/readdir"
"golang.org/x/tools/go/buildutil"
)
// DefaultProjectTombstones are the files used by FindProjectRoot to
// determine the root of a project.
v... |
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.
package host
import (
"bytes"
"encoding/binary"
"encoding/gob"
"fmt"
"io"
"ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.