text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go.
// source: cq.proto
// DO NOT EDIT!
/*
Package cq is a generated protocol buffer package.
It is generated from these files:
cq.proto
It has these top-level messages:
Config
Rietveld
Gerrit
Verifiers
*/
package cq
import proto "github.com/golang/protobuf/proto"
import fmt "fm... |
package lexer
import (
"fmt"
"github.com/graphql-go/graphql/gqlerrors"
"github.com/graphql-go/graphql/language/source"
)
const (
EOF = iota + 1
BANG
DOLLAR
PAREN_L
PAREN_R
SPREAD
COLON
EQUALS
AT
BRACKET_L
BRACKET_R
BRACE_L
PIPE
BRACE_R
NAME
VARIABLE
INT
FLOAT
STRING
)
var TokenKind map[int]int... |
package service
import (
"encoding/json"
"errors"
"bytes"
"math/big"
"math"
"fmt"
. "github.com/elastos/Elastos.ELA.Utility/common"
"github.com/elastos/Elastos.ELA.Utility/http/util"
sideser "github.com/elastos/Elastos.ELA.SideChain/service"
side "github.com/elastos/Elastos.ELA.SideChain/types"
"github.c... |
// Copyright 2016 The Cockroach Authors.
//
// Licensed as a CockroachDB Enterprise file under the Cockroach Community
// License (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// https://github.com/cockroachdb/cockroach/blob/master/LI... |
// Copyright (c) 2014 RightScale, Inc. - see LICENSE
package tunnel
import (
"bufio"
"bytes"
"errors"
"flag"
"fmt"
"io"
"net"
"net/http"
// imported per documentation - https://golang.org/pkg/net/http/pprof/
_ "net/http/pprof"
"net/url"
"os"
"regexp"
"runtime"
"strings"
"sync"
"time"
"github.com/r... |
package main
import (
"crypto/rsa"
"crypto/subtle"
"crypto/x509"
"encoding/json"
"encoding/pem"
"fmt"
"net/http"
"reflect"
"strings"
"time"
jwtgo "github.com/dgrijalva/jwt-go"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclsyntax"
"github.com/zclconf/go-cty/cty"
)
// context keys for JWT... |
package netaddr
import (
"fmt"
"strings"
)
// IPv6Net represents an IPv6 network.
type IPv6Net struct {
base *IPv6
m128 *Mask128
}
/*
ParseIPv6Net parses a string into an IPv6Net type. Accepts addresses in the form of:
* single IP (eg. FEfc00:e968:6179::de52:7100)
* CIDR format (eg. ::1/128)
*/
func ParseIPv6N... |
package perforce
import (
"bufio"
"context"
"io"
"strings"
"github.com/cockroachdb/errors"
"github.com/gobwas/glob"
"github.com/inconshreveable/log15"
"github.com/sourcegraph/sourcegraph/internal/authz"
"github.com/sourcegraph/sourcegraph/internal/extsvc"
)
// p4ProtectLine is a parsed line from `p4 protec... |
package blockchain
import (
"encoding/hex"
"errors"
"math/big"
"os"
"strconv"
"strings"
"sync"
"time"
"github.com/champii/go-dht/dht"
logging "github.com/op/go-logging"
"github.com/vmihailenco/msgpack"
)
const (
COMMAND_CUSTOM_GET_INFO = iota
COMMAND_CUSTOM_NEW_TRANSACTION
COMMAND_CUSTOM_NEW_BLOCK
)
v... |
package export
import (
"encoding/json"
"fmt"
"github.com/sirupsen/logrus"
"github.com/weiliang-ms/easyctl/pkg/util/command"
"github.com/weiliang-ms/easyctl/pkg/util/slice"
"gopkg.in/yaml.v2"
"io"
"io/ioutil"
"net/http"
"os"
"runtime"
"strings"
"sync"
"time"
)
// 包含关系
// harbor -> 包含多个project
// project... |
/*
Copyright 2018 The kube-fledged 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.
// source: google/ads/googleads/v3/services/expanded_landing_page_view_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resou... |
/**
* Copyright 2019 IBM Corp.
*
* 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... |
package pilotdiscovery
import (
"context"
"fmt"
"io"
"math"
"math/rand"
"net/http"
"time"
"github.com/Stoakes/go-pkg/log"
xdsapi "github.com/envoyproxy/go-control-plane/envoy/api/v2"
core1 "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
discoveryv2 "github.com/envoyproxy/go-control-plane/envoy/s... |
package app
import (
"fmt"
"net"
"net/http"
"net/http/pprof"
"os"
"os/signal"
"strconv"
"syscall"
clusterclient "github.com/openshift/cluster-api/pkg/client/clientset_generated/clientset"
apiv1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
versionhelper "k8s.io/apimachinery/pkg/version"
"... |
package offsettrk
import (
"bytes"
"sort"
"strconv"
"time"
"github.com/mailgun/kafka-pixy/actor"
"github.com/mailgun/kafka-pixy/consumer"
"github.com/mailgun/kafka-pixy/offsetmgr"
"github.com/pkg/errors"
)
const (
base64EncodeMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
)
var (
... |
package gerrit
import (
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"strings"
"github.com/zeebo/errs"
"go.uber.org/zap"
)
// Client abstracts interaction with the Gerrit client, largely just so that it can be
// possible to mock. Ew.
type Client interface {
QueryChange... |
// DHT操作
package common
import (
"bytes"
"crypto/sha1"
"encoding/hex"
"errors"
"fmt"
"io"
"log"
"math"
"math/rand"
"net"
"os"
"runtime"
"strings"
"sync/atomic"
"time"
"github.com/ylqjgm/SCDht/models"
"github.com/zeebo/bencode"
"gopkg.in/mgo.v2/bson"
)
var (
BOOTSTRAP = []string{
"172.16.17.32:68... |
package mimetype
import (
"github.com/gabriel-vasile/mimetype/internal/magic"
)
// mimetype stores the list of MIME types in a tree structure with
// "application/octet-stream" at the root of the hierarchy. The hierarchy
// approach minimizes the number of checks that need to be done on the input
// and allows for m... |
// Copyright 2012, 2013 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.
package worker
import (
"strings"
"sync"
"time"
"github.com/juju/clock"
"github.com/juju/errors"
"gopkg.in/tomb.v2"
)
// DefaultRestartDelay holds the default length of time that a worker
// will wait between ex... |
// Copyright (c) 2016 <NAME>
// 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 l... |
package spotify
import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"path/filepath"
"strings"
"time"
"github.com/charlesyu108/spotify-cli/utils"
)
// tokensT defines tokens and related info
// for interfacing with the Spotify API
type tokensT struct {
AppAccessToken ... |
// Copyright (c) 2013 Couchbase, 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 w... |
// Copyright 2011 The Avalon Project Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the LICENSE file.
//
// This is a translation of a part of GeographicLib-1.15 to Go.
//
// Original copyright notice:
// Copyright (c) <NAME> (2011) <<EMAIL>> and ... |
// Copyright (c) 2020 Blockwatch Data Inc.
// Author: <EMAIL>
package server
import (
"encoding/json"
"fmt"
"io"
"math"
"net/http"
"strconv"
"strings"
"time"
"blockwatch.cc/packdb/encoding/csv"
"blockwatch.cc/packdb/pack"
"blockwatch.cc/packdb/util"
"blockwatch.cc/tzindex/chain"
"blockwatch.cc/tzindex/e... |
package main
import (
"crypto/tls"
"flag"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"os"
"path"
"strconv"
"strings"
"sync"
"text/tabwriter"
"time"
"github.com/coreos/fleet/third_party/github.com/coreos/go-etcd/etcd"
log "github.com/coreos/fleet/third_party/github.com/golang/glog"
"github.com/coreos/fl... |
// 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 ogr
/*
#include "go_ogr_wkb.h"
#include "gdal_version.h"
*/
import "C"
import (
"unsafe"
)
/* -------------------------------------------------------------------- */
/* Geometry functions */
/* ----------------------------------------------------------------... |
package main
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"image"
"image/png"
"io/ioutil"
"log"
"math/rand"
"os"
"os/exec"
"runtime"
"runtime/pprof"
"strings"
"time"
"github.com/fogleman/gg"
kingpin "gopkg.in/alecthomas/kingpin.v2"
)
const maxImageDiff = 94.0
const gcFrequency = 100
var cwd, _ =... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: telemetry_top.proto
/*
Package telemetry_top is a generated protocol buffer package.
It is generated from these files:
telemetry_top.proto
It has these top-level messages:
TelemetryFieldOptions
TelemetryStream
IETFSensors
EnterpriseSensors
JuniperNetw... |
// 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.
// watch.go holds all code to handle updates to the syncbase gamelog.
// Update() is to be run as a goroutine, getting a watchstream from
// the syncgroup... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
package jail
import (
"os"
"os/exec"
"path"
"runtime"
"syscall"
"time"
"unsafe"
)
func (j *Cell) Command(name string, args ...string) *Cmd {
c := exec.Command(name, args...)
c.Dir = j.Dir
c.SysProcAttr = &syscall.SysProcAttr{
Ptrace: true,
}
return &Cmd{
Cmd: c,
}
}
func (j *Cell) Create(name string... |
package sprites
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"image"
"image/color"
"io"
"os"
"github.com/murkland/bnrom/paletted"
"github.com/murkland/gbarom/bgr555"
"github.com/murkland/gbarom/lz77"
)
type ROMInfo struct {
Offset int64
Count int
}
func FindROMInfo(romID string) *ROMInfo {
switc... |
// -*- Mode: Go; indent-tabs-mode: t -*-
//
// Copyright (C) 2019 IOTech Ltd
//
// SPDX-License-Identifier: Apache-2.0
/* Apache v2 license
* Copyright (C) <2019> Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
package driver
import (
"crypto/tls"
"fmt"
"github.com/intel/rsp-sw-toolkit-im-suite-mq... |
package structs
import "encoding/json"
type TypeSetting struct {
Name string `json:"name" binding:"required"`
Settings interface{} `json:"settings" binding:"required"`
}
type Field struct {
ID int64 `json:"id"`
TenantID int64 `json:"tenant_id"`
ObjectID int64 `json:"obj... |
package main
import (
"errors"
"fmt"
"os"
"os/exec"
"strconv"
"strings"
"github.com/adnsv/go-utils/git"
"github.com/adnsv/go-utils/version"
"github.com/blang/semver/v4"
cli "github.com/jawher/mow.cli"
"github.com/tcnksm/go-input"
)
var vtRestore = func() {}
func check(err error) {
if err != nil {
fmt.... |
package main
import (
"bytes"
"debug/elf"
"encoding/binary"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"sort"
"strconv"
"strings"
"github.com/qeedquan/go-binutils/iberty/demangle"
"golang.org/x/arch/x86/x86asm"
)
func main() {
log.SetFlags(0)
log.SetPrefix("xeas: ")
xs := NewXS()
flag.IntVar(&xs.Mod... |
// Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package shoprepository
import (
"context"
"database/sql"
"database/sql/driver"
"fmt"
"strings"
"time"
v1 "github.com/GameComponent/economy-service/pkg/api/v1"
repository "github.com/GameComponent/economy-service/pkg/repository"
ptypes "github.com/golang/protobuf/ptypes"
"go.uber.org/zap"
)
// NullTime is a... |
// Copyright 2015 Kochava. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in LICENSE.txt.
package envi
import (
"encoding"
"fmt"
"net/url"
"os"
"reflect"
"strconv"
"strings"
"time"
)
// DefaultMaxSliceLen is the default maximum slice length used when pars... |
// Package intqa provides quality assurance for the pkglint code.
package intqa
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
"io"
"os"
"path"
"reflect"
"sort"
"strings"
"unicode"
)
type Error int
const (
ENone Error = iota + 1
EAll
// EMissingTest complains if a function or method does not have a
/... |
package cff
import (
"fmt"
"io"
"math"
"sort"
)
// Top DICT Data - see CFF spec 9 p. 14
func (f *Font) parseDict(dict []byte) {
f.bluefuzz = 1
f.blueshift = 7
f.bluescale = 0.039625
operands := make([]int, 0, 48)
operandsf := make([]float64, 0, 48)
pos := -1
for {
pos++
if len(dict) <= pos {
return... |
package subslicer
import (
"context"
"encoding/hex"
"fmt"
"io"
"math"
"math/rand"
"net"
"os"
"path/filepath"
"sync"
"syscall"
"time"
"github.com/dzeromsk/subslicer/freezer"
nsjailpb "github.com/dzeromsk/subslicer/freezer/pb"
"github.com/golang/protobuf/proto"
)
type Function struct {
*freezer.Freeze... |
package cloud
import (
"bytes"
"fmt"
"strings"
"text/template"
"github.com/appscode/go-version"
"github.com/ghodss/yaml"
api "github.com/pharmer/pharmer/apis/v1alpha1"
"github.com/pkg/errors"
kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha2"
)
// https://github.com/pharmer/pharmer/issues/... |
// Package server handles the web server and executing commands that come in
// via webhooks.
package server
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"net/url"
"os"
"os/signal"
"strings"
"syscall"
"time"
"github.com/elazarl/go-bindata-assetfs"
"github.com/gorilla/mux"
"github.com/hootsuite/atlan... |
package ihex32
import (
"encoding/hex"
"errors"
"fmt"
"os"
"runtime"
"strings"
"sync"
"github.com/rs/zerolog/log"
)
var (
//numProc controls the number of goRoutines that are run for the parallel parts of the programm.
numProc = runtime.NumCPU()
//validateChecksums controls whether checksum validation wil... |
// 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 main
import (
"encoding/json"
"encoding/xml"
"fmt"
"html"
"io/ioutil"
"net/http"
"net/url"
"os"
"path/filepath"
"regexp"
"sort"
"stri... |
package tls
// #include "shim.h"
import "C"
import (
"errors"
"fmt"
"io"
"net"
"runtime"
"strings"
"sync"
"time"
"unsafe"
"github.com/imroc/tls/internal/errgroup"
"github.com/imroc/tls/internal/future"
)
var (
zeroReturn = errors.New("zero return")
wantRead = errors.New("want read")
wantWrite = erro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/domain_category_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
_ "g... |
// Copyright (c) 2021, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
// Package cluster handles cluster analysis
package cluster
import (
encjson "encoding/json"
"fmt"
"github.com/verrazzano/verrazzano/tools/analysis/internal... |
/*
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 transport
import (
"encoding/json"
"errors"
"fmt"
"github.com/gwos/tcg/setup"
"github.com/gwos/tcg/subseconds"
"net/http"
"net/url"
"strconv"
)
// MetricKind defines the metric kind of the time series.
type MetricKind string
// MetricKindUnspecified - Do not use this default value.
// Gauge - An inst... |
package publisher
import (
"context"
"crypto/ecdsa"
"crypto/rand"
"crypto/sha256"
"crypto/tls"
"crypto/x509"
"encoding/asn1"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"math/big"
"net/http"
"net/url"
"strings"
"sync"
"time"
ct "github.com/google/certificate-transparency-go"
ctClient "github.c... |
package onmyoji
import (
"fmt"
"strconv"
"strings"
"github.com/benbjohnson/immutable"
)
// Optimizer represents what to optimize for.
type Optimizer string
// Constants for selecting what to optimize.
const (
Damage Optimizer = "Damage"
HP = "HP"
Heal = "Heal"
)
// A comparison fun... |
/*
Copyright 2018-2019 <NAME>, S.A.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
package client
type operation interface {
Process(state *albionState)
}
//go:generate stringer -type=OperationType
type OperationType uint16
const (
opUnused = 0
opPing = 1
opJoin = 2
opCreateAccount ... |
package uuid
import (
"encoding/hex"
"fmt"
"io"
"math/rand"
"net"
"sync"
"testing"
"time"
)
type order int8
const (
LT order = -1
EQ order = 0
GT order = 1
)
func TestTickCompare(t *testing.T) {
const (
a = 0
ap1 = 1
ap2 = 2
bm2 = tickCentury - 2
bm1 = tickCentury - 1
b = tickCentury
... |
/*
* Copyright 2019 VMware, Inc. All rights reserved. Licensed under the Apache v2 License.
*/
package types
import "encoding/xml"
// FirewallConfigWithXml allows to enable/disable firewall on a specific edge gateway
// Reference: vCloud Director API for NSX Programming Guide
// https://code.vmware.com/docs/6900... |
package subcmd
import (
"context"
"fmt"
"strconv"
"testing"
"time"
"github.com/google/go-cmp/cmp"
)
func TestNoArgs(t *testing.T) {
err := Run(context.Background(), &command{}, []string{"y"})
if err != nil {
t.Error(err)
}
}
func TestOptionalArg(t *testing.T) {
cmd := new(command)
err := Run(context.B... |
package server
/*
* 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
* ... |
package charset
// CP866 charset, see http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP866.TXT
var CP866 = New(table_CP866)
var table_CP866 = [256]rune{
0x00: 0x0000, // NULL
0x01: 0x0001, // START OF HEADING
0x02: 0x0002, // START OF TEXT
0x03: 0x0003, // END OF TEXT
0x04: 0x0004, // END OF TRANSMISSI... |
package pinger
// Pinger provides ICMP ECHO_REQUEST handling.
import (
"fmt"
"net"
"sync"
"time"
"github.com/pkg/errors"
"golang.org/x/net/icmp"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
Log "github.com/arush15june/ping/pkg/logger"
)
// IANA ProtocolNumbers
const (
ProtocolICMP4 = 1
ProtocolIPv... |
package main
import (
"log"
"os"
"github.com/jackpal/Taipei-Torrent/torrent"
"encoding/hex"
"flag"
"math"
"os/signal"
"code.google.com/p/gcfg"
"time"
"encoding/csv"
socks "github.com/hailiang/gosocks"
)
const MAX_OUR_REQUESTS = 2
var (
seedDir string = "/tmp/client/store/seed"
torrentDir string ... |
package sqllog
import (
"context"
"database/sql"
"strings"
"time"
"github.com/pkg/errors"
"github.com/devec0/kine/pkg/broadcaster"
"github.com/devec0/kine/pkg/drivers/generic"
"github.com/devec0/kine/pkg/server"
log "k8s.io/klog/v2"
)
const (
compactInterval = 5 * time.Minute
compactTimeout = 5 * time.... |
// Package sdk provides primitives to interact the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
package sdk
import (
"time"
)
// AddonsConfig defines model for AddonsConfig.
type AddonsConfig struct {
// Cert-Manager
CertManager *CertManagerConfig `json:"certManager,omite... |
package chanbackup
import (
"bytes"
"fmt"
"io"
"net"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/wakiyamap/lnd/channeldb"
"github.com/wakiyamap/lnd/keychain"
"github.com/wakiyamap/lnd/lnwire"
)
// ... |
// Copyright 2020 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package yack_test
import (
"reflect"
"strings"
"testing"
"github.com/fzipp/gg/yack"
"github.com/fzipp/gg/yack/cond"
"github.com/fzipp/gg/yack/stmt"
)
func Test... |
package handler
import (
"bytes"
"fmt"
"github.com/google/uuid"
color "github.com/mgutz/ansi"
"github.com/tj/go-spin"
"github.com/wagoodman/bashful/pkg/config"
"github.com/wagoodman/bashful/pkg/runtime"
"github.com/wagoodman/bashful/utils"
"github.com/wagoodman/jotframe"
"github.com/wayneashleyberry/terminal... |
/*
Copyright 2019 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 2017 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... |
/*
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 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... |
package libpod
import (
"fmt"
"math/rand"
"strconv"
"strings"
"time"
"github.com/containers/libpod/pkg/lookup"
"github.com/containers/libpod/pkg/util"
"github.com/cri-o/ocicni/pkg/ocicni"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/runtime-tools/generate"
"github.com/pkg/er... |
// Copyright (c) <NAME>. (https://github.com/jeevatkm)
// Source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"crypto/tls"
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"net/http/httputil"
"net/url"
"os"
"os/exec"
"os/signal"... |
// Copyright 2016 ETH Zurich
// Copyright 2018 ETH Zurich, 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 ... |
package main
/*
#define _GNU_SOURCE
#include <errno.h>
#include <sched.h>
#include <stdio.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
__attribute__((constructor)) void init(void) {
pid_t pid;
int ret;
if (geteuid() != 0) {
return;
}
// Unshar... |
package main
import (
"encoding/json"
"flag"
"fmt"
"io"
"log"
"os"
"path/filepath"
"strings"
"time"
"gitlab.com/NebulousLabs/encoding"
"gitlab.com/NebulousLabs/errors"
"go.sia.tech/siad/modules"
"go.sia.tech/siad/modules/gateway"
siaPersist "go.sia.tech/siad/persist"
)
const (
nodeScannerDirName = "Si... |
package agent
import (
"context"
"crypto/tls"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"time"
"go.opencensus.io/trace"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
pb... |
// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
package schema
import (
"context"
"fmt"
"math"
"sort"
"strconv"
"strings"
"github.com/facebook/ent/dialect"
"github... |
package state
import (
"fmt"
"strings"
"sync"
"time"
eventbus "github.com/Dataman-Cloud/swan/src/event"
"github.com/Dataman-Cloud/swan/src/manager/store"
"github.com/Dataman-Cloud/swan/src/mesosproto/mesos"
"github.com/Dataman-Cloud/swan/src/types"
"github.com/Sirupsen/logrus"
"github.com/golang/protobuf/p... |
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
package browser
import (
"html"
"net/url"
"strings"
"io"
"github.com/PuerkitoBio/goquery"
"github.com/headzoo/surf/errors"
)
// Submittable represents an element that may be submitted, such as a form.
type Submittable interface {
Method() string
Action() string
Input(name, value string) error
Set(name, va... |
// Package msgraph is a go lang implementation of the Microsoft Graph API
//
// See: https://developer.microsoft.com/en-us/graph/docs/concepts/overview
package msgraph
import (
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"sync"
"time"
)
const (
odataSearchParamKey = "$sear... |
/*
Copyright © 2020 Dell Inc. or its subsidiaries. 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 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: protocol.proto
package protocol
import (
proto "github.com/golang/protobuf/proto"
common "github.com/offchainlabs/arbitrum/packages/arb-util/common"
protoreflect "google.golang.org/protobuf/... |
// +build avr,atmega328p
package machine
import (
"device/avr"
"runtime/interrupt"
"runtime/volatile"
)
const irq_USART0_RX = avr.IRQ_USART_RX
// getPortMask returns the PORTx register and mask for the pin.
func (p Pin) getPortMask() (*volatile.Register8, uint8) {
switch {
case p >= PB0 && p <= PB7: // port B
... |
package deb
import (
"encoding/json"
"fmt"
"github.com/smira/aptly/aptly"
"github.com/smira/aptly/utils"
"path/filepath"
"strconv"
"strings"
)
// Package is single instance of Debian package
type Package struct {
// Basic package properties
Name string
Version string
Architecture string
// If... |
// Copyright 2018 NetApp, Inc. All Rights Reserved.
package ucpclient
import (
"strings"
)
// UCPRoleCreateJSONTemplateFullPermissions is the YAML required to create a new UCP Role with full control
const UCPRoleCreateJSONTemplateFullPermissions = `
{
"name": "{ROLE_NAME}",
"system_role": false,
"operations":... |
// Copyright 2011 The LevelDB-Go and Pebble 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 base
import (
"bytes"
"fmt"
"strings"
"github.com/cockroachdb/pebble/cache"
"github.com/cockroachdb/pebble/vfs"
)
// Compress... |
package router
import (
"fmt"
"log"
"sort"
"sync"
"github.com/hashicorp/consul/agent/metadata"
"github.com/hashicorp/consul/agent/structs"
"github.com/hashicorp/consul/lib"
"github.com/hashicorp/consul/types"
"github.com/hashicorp/serf/coordinate"
"github.com/hashicorp/serf/serf"
)
// Router keeps track of... |
// Copyright 2019 PingCAP, 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 i... |
/*
Maddy Mail Server - Composable all-in-one email server.
Copyright © 2019-2020 <NAME> <<EMAIL>>, Maddy Mail Server contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of t... |
package tss
import (
"context"
"encoding/hex"
"fmt"
"io"
"sync"
"time"
sdkClient "github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/tendermint/tendermint/libs/log"
"google.gol... |
// Copyright 2019 the Go-FUSE 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 fs provides infrastructure to build tree-organized filesystems.
//
// A tree-organized filesystem is similar to UNIX or Plan 9 filesystem: it
//... |
// Code generated by protoc-gen-go.
// source: ospf_sh_request_list.proto
// DO NOT EDIT!
/*
Package cisco_ios_xr_ipv4_ospf_oper_ospf_processes_process_vrfs_vrf_adjacency_information_requests_request is a generated protocol buffer package.
It is generated from these files:
ospf_sh_request_list.proto
It has these to... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/trace/v2/opencensus.proto
package envoy_config_trace_v2
import (
fmt "fmt"
v1 "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1"
_ "github.com/cncf/udpa/go/udpa/annotations"
core "github.com/envoyproxy/go-control-plane/envo... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/evaluator.proto
package pb
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.go... |
// Copyright 2017 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.