text stringlengths 8.57k 38.1k |
|---|
package spice
import (
"bytes"
"encoding/binary"
"errors"
"log"
"sync"
"sync/atomic"
"time"
)
const (
SPICE_MSG_MAIN_MIGRATE_BEGIN = 101
SPICE_MSG_MAIN_MIGRATE_CANCEL = 102
SPICE_MSG_MAIN_INIT = 103
SPICE_MSG_MAIN_CHANNELS_LIST = 104
SPICE_MSG_MAIN_MOUSE_MODE = 105
SPICE_MSG_MAI... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0-devel
// protoc v3.11.4
// source: tensorflow/core/framework/variable.proto
package framework
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "g... |
package main
import (
"errors"
"fmt"
"os"
"path/filepath"
"strings"
"simulator/v2/cache"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
func initZapLog(level zapcore.Level) *zap.Logger {
config := zap.NewDevelopmentConfig()
config.EncoderConfig.EncodeLev... |
// 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 migrate
import (
"context"
"errors"
"fmt"
"io/fs"
"math"
"path/filepath"
"strconv"
"strings"
"testing"
"a... |
// Copyright 2016 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Copyright 2015 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// Package csource generates [almost] equivalent C programs from syzkaller programs.
package csource
import (
"bytes"
"fmt"
"regexp"
"sort"
"strings"... |
// 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 applicabl... |
package cache
import (
"context"
"fmt"
"runtime/debug"
"sort"
"strings"
"sync"
"sync/atomic"
"time"
log "github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
"k... |
package chainlink
import (
"context"
stderr "errors"
"fmt"
"os"
"os/signal"
"reflect"
"sync"
"syscall"
uuid "github.com/satori/go.uuid"
"github.com/pkg/errors"
"github.com/smartcontractkit/chainlink/core/service"
"github.com/smartcontractkit/chainlink/core/services/cron"
"github.com/smartcontractkit/cha... |
// Code generated by main. DO NOT EDIT.
package caam_005_001_02
import (
"bytes"
"encoding/base64"
"encoding/xml"
"time"
)
type ATMDiagnosticRequest2 struct {
Envt ATMEnvironment9 `xml:"urn:iso:std:iso:20022:tech:xsd:caam.005.001.02 Envt"`
ATMGblSts ATMStatus1 `xml:"urn:iso:std:iso:20022:tech:xsd:caa... |
package main
import (
"encoding/binary"
"os"
"regexp"
"strings"
"github.com/Windblade-GR01/glfont"
findfont "github.com/flopp/go-findfont"
)
// FntCharImage stores sprite and position
type FntCharImage struct {
ofs, w uint16
img []Sprite
}
// Fnt is a interface for basic font information
type Fnt struct ... |
// Copyright 2015 <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 period
import (
"fmt"
"time"
)
const daysPerYearE4 = 3652425 // 365.2425 days by the Gregorian rule
const daysPerMonthE4 = 304369 // 30.4369 days per mo... |
package main
import (
"encoding/hex"
"flag"
"fmt"
"math/big"
"math/rand"
"os"
"path"
"runtime"
"strconv"
"time"
ethCommon "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/harmony-one/bls/ffi/go/bls"
"github.com/pkg/errors"
"github.com/harmony-one/harmony/api/s... |
package tsdb
import (
"errors"
"fmt"
"sort"
"strings"
"time"
"github.com/influxdb/influxdb/influxql"
"github.com/influxdb/influxdb/models"
"github.com/influxdb/influxdb/pkg/slices"
)
// AggregateExecutor represents a mapper for execute aggregate SELECT statements.
type AggregateExecutor struct {
stmt *in... |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package twofish implements Bruce Schneier's Twofish encryption algorithm.
package twofish // import "github.com/conseweb/golangcrypto/twofish"
// Twofish is... |
package genetics
import (
"errors"
"fmt"
"github.com/yaricom/goNEAT/v2/neat"
"github.com/yaricom/goNEAT/v2/neat/math"
"github.com/yaricom/goNEAT/v2/neat/network"
"io"
"math/rand"
"reflect"
)
// A Genome is the primary source of genotype information used to create a phenotype.
// It contains 3 major constitue... |
package webpagetest
import (
"encoding/json"
"fmt"
"net/url"
"sort"
"strconv"
)
// https://sites.google.com/a/webpagetest.org/docs/advanced-features/raw-test-results
// Pages is struct for links to various pages about test run
type Pages struct {
Details string `json:"details"`
Checklist string `json:"che... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: PlanExport.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"... |
package common
import (
"bytes"
"encoding/json"
"fmt"
"io"
"math/rand"
"os/exec"
"regexp"
"strconv"
"strings"
"time"
"github.com/argoproj/argo/errors"
"github.com/argoproj/argo/pkg/apis/workflow"
wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
"github.com/argoproj/argo/pkg/client/clientset/ve... |
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file implements type-checking of identifiers and type expressions.
package types
import (
"go/ast"
"go/token"
"sort"
"strconv"
"github.com/godoc... |
package kong
import (
"encoding/json"
"fmt"
)
// Service represents a Service in Kong.
// Read https://getkong.org/docs/0.13.x/admin-api/#Service-object
// +k8s:deepcopy-gen=true
type Service struct {
ClientCertificate *Certificate `json:"client_certificate,omitempty" yaml:"client_certificate,omitempty"`
ConnectT... |
package main
import (
. "./quadedge"
"fmt"
"github.com/ajstarks/svgo/float"
"io/ioutil"
"log"
"math"
"net/http"
"os"
// "text/template"
"bytes"
)
var fileno int = 0
func nextfile() string {
fileno++
return fmt.Sprintf("hello%02d.svg", fileno)
}
var debug bool = false
func debugDraw(e0 *Edge, e1 *Edge) ... |
/*
Copyright 2011 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 writing, software
di... |
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package modload
import (
"cmd/go/internal/base"
"cmd/go/internal/cfg"
"cmd/go/internal/mvs"
"cmd/go/internal/par"
"context"
"fmt"
"os"
"reflect"
"runt... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.2
// source: Common.proto
package common
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
... |
package tapdance
import (
"bytes"
"context"
"crypto/rand"
"encoding/base64"
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"io"
"net"
"strconv"
"strings"
"sync"
"time"
"github.com/golang/protobuf/proto"
pb "github.com/refraction-networking/gotapdance/protobuf"
tls "github.com/refraction-networking/u... |
// Licensed to LinDB under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. LinDB licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compli... |
package geodesic
import (
"errors"
"math"
"github.com/pymaxion/geographiclib-go/geodesic/capabilities"
)
/*
Geodesic is a type representing geodesic calculations.
The shortest path between two points on a ellipsoid at (lat1, lon1) and (lat2,
lon2) is called the geodesic. Its length is s12 and the geodesic fro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/errors/conversion_upload_error.proto
package errors
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if t... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.18.0
// source: xds/type/v3/cel.proto
package v3
import (
_ "github.com/cncf/xds/go/xds/annotations/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
wrapp... |
package kubexp
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"sort"
"strconv"
"strings"
"text/template"
"github.com/alitari/gocui"
yaml "gopkg.in/yaml.v2"
)
var defaultTemplate = `{{.metadata.name | printf "%-50.50s" }}`
var templateCache = map[string]*template.Template{}
func resourceListTpl... |
package servicemanager
import (
"context"
"crypto/tls"
"encoding/json"
_ "expvar" // For stat collection
"fmt"
"net"
"net/http"
_ "net/http/pprof" // For debugging
"strconv"
"strings"
"sync"
"time"
"github.com/couchbase/cbauth"
"github.com/couchbase/cbauth/metakv"
"github.com/couchbase/cbauth/service"
... |
/*
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 requi... |
package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"runtime"
"strconv"
"strings"
"time"
"unicode"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/endpoints"
"github.com/aws/aws-sdk-go-v2/aws/... |
package core
import (
"bytes"
"context"
"fmt"
"log"
"os"
"path/filepath"
"runtime"
"sort"
"strings"
"time"
"unicode"
"github.com/jmigpin/editor/core/fswatcher"
"github.com/jmigpin/editor/core/lsproto"
"github.com/jmigpin/editor/ui"
"github.com/jmigpin/editor/util/drawutil/drawer4"
"github.com/jmigpin/... |
/*
* MIT License
*
* (C) Copyright [2021-2022] Hewlett Packard Enterprise Development LP
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limita... |
// Copyright (c) 2015-2016 The btcsuite developers
// Copyright (c) 2016-2021 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package blockchain
import (
"context"
"fmt"
"sync"
"time"
"github.com/decred/dcrd/blockchain/standalone/v2"
"git... |
//go:build !nesgo
// +build !nesgo
package cpu
import (
. "github.com/retroenv/nesgo/pkg/addressing"
)
// Opcode is a NES CPU opcode that contains the instruction info and used
// addressing mode.
type Opcode struct {
Instruction *Instruction
Addressing Mode
Timing byte
PageCrossCycle bool
}
// ... |
package git2graph
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"strconv"
"strings"
log "github.com/sirupsen/logrus"
)
// DebugMode Debug mode
var DebugMode = false
// NoOutput No output
var NoOutput = false
// Color color structure
type Color struct {
ReleaseIdx int
color strin... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2/audio_config.proto
package dialogflow // import "google.golang.org/genproto/googleapis/cloud/dialogflow/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/go... |
package stashvision
var poeItemClassesToNames = make(map[string][]string)
var poeItemNamesToClasses = make(map[string]string)
func init() {
poeItemClassesToNames["Amulet"] = []string{
"Writhing Talisman",
"Deadhand Talisman",
"Chrysalis Talisman",
"Agate Amulet",
"Citrine A... |
package discovery
import (
"time"
"net"
"github.com/ethereum/go-ethereum/common"
"crypto/ecdsa"
"fmt"
//"github.com/sirupsen/logrus"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/crypto"
"github.com/pkg/errors"
"sort"
//"github.com/ethereum/go-ethereum/common/mclock"
"bytes"
)
cons... |
package reservation
import (
"context"
"git.900sui.cn/kc/base/common/functions"
"git.900sui.cn/kc/rpcinterface/interface/cards"
"git.900sui.cn/kc/rpcinterface/interface/common"
product2 "git.900sui.cn/kc/rpcinterface/interface/product"
"git.900sui.cn/kc/rpcinterface/interface/staff"
)
//预约状态
func GetStatusList(... |
//
//Copyright [2016] [SnapRoute Inc]
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
package lib
import (
"encoding"
"encoding/base64"
"fmt"
"gopkg.in/dedis/crypto.v0/abstract"
"gopkg.in/dedis/crypto.v0/random"
"gopkg.in/dedis/onet.v1/log"
"gopkg.in/dedis/onet.v1/network"
"strings"
"sync"
)
// MaxHomomorphicInt is upper bound for integers used in messages, a failed decryption will return thi... |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"errors"
"fmt"
"go/build"
"go/scanner"
"go/token"
"os"
pathpkg "path"
"path/filepath"
"sort"
"strings"
"time"
"unic... |
package templaterouter
import (
"crypto/md5"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"reflect"
"regexp"
"strconv"
"strings"
"sync"
"text/template"
"time"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/util/sets"
cmdutil "github.com/openshift/origin/pkg/cmd/util"
routeapi ... |
// Copyright (c) 2004-present Facebook 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 (@generated) by entc, DO NOT EDIT.
package ent
import (
"fmt"
"strings"
"time"
"github.com/facebookincubator/ent/dialect/sql"
"gi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: responses.proto
package sdp
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/pro... |
// Copyright 2019+ <NAME>. All rights reserved.
// License information can be found in the LICENSE file.
// Based on work by <NAME>, released under BSD License.
package zstd
import (
"errors"
"fmt"
"math"
)
const (
// For encoding we only support up to
maxEncTableLog = 8
maxEncTablesize = 1 << maxTableLog... |
/*
Copyright 2020 The Knative Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
// +build l1xx_md
package flash
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
import (
"bits"
"mmio"
"unsafe"
"stm32/o/l1xx_md/mmap"
)
type FLASH_Periph struct {
ACR RACR
PECR RPECR
PDKEYR RPDKEYR
PEKEYR RPEKEYR
PRGKEYR RPRGKEYR
OPTKEYR ROPTKEYR
SR RSR
OBR ROBR
WRPR RWRPR
_ ... |
package v2
import (
"context"
"crypto/tls"
"fmt"
"net/http"
"os"
"strconv"
"time"
"github.com/streadway/amqp"
"github.com/RTradeLtd/Temporal/rtfscluster"
"github.com/RTradeLtd/Temporal/utils"
pbLens "github.com/RTradeLtd/grpc/lensv2"
pbOrch "github.com/RTradeLtd/grpc/nexus"
pbSigner "github.com/RTradeLt... |
package tx_ver2
import (
"errors"
"fmt"
"math/big"
"github.com/incognitochain/incognito-chain/common"
"github.com/incognitochain/incognito-chain/dataaccessobject/statedb"
"github.com/incognitochain/incognito-chain/privacy"
"github.com/incognitochain/incognito-chain/privacy/privacy_v2/mlsag"
"github.com/incogn... |
package dmgo
import (
"sort"
)
type lcd struct {
// not marshalled in snapshot
framebuffer [160 * 144 * 4]byte
// everything else marshalled
FlipRequested bool // for whatever really draws the fb
PastFirstFrame bool
VideoRAM [0x4000]byte
HighBankActive bool
CGBMode bool
BGPa... |
// Copyright (c) 2013 The Go Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd.
// Package lint provides the foundation for tools like gosimple.
package lint
import (
... |
// +build !exclude_app_test
package node
import (
"fmt"
"os"
"path/filepath"
"runtime"
"strconv"
"testing"
"time"
"github.com/spacemeshos/amcl"
"github.com/spacemeshos/amcl/BLS381"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com... |
package main
import (
"flag"
"fmt"
"io"
"math/rand"
"os"
"time"
)
type Board [5][5]int
const (
WIN = 10000
LOSS = -10000
MAXIMIZER = 1
MINIMIZER = -1
UNSET = 0
)
var leafNodeCount int = 0
var maxDepth int = 10 // initializing to 10 not a mistake
// Arrays of losing triplets and winning q... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/change_status.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/googl... |
// DO NOT EDIT THIS FILE. GENERATED BY svdxgen.
// +build k210
// Package sysctl provides access to the registers of the SYSCTL peripheral.
//
// Instances:
// SYSCTL SYSCTL_BASE - - System Controller
// Registers:
// 0x000 32 GIT_ID Git short commit id
// 0x004 32 CLK_FREQ System clock base freq... |
package main
import (
"fmt"
"image/color"
"github.com/200sc/go-dist/floatrange"
"github.com/200sc/go-dist/intrange"
"github.com/oakmound/oak/render/mod"
"github.com/oakmound/oak/render/particle"
"github.com/oakmound/oak"
"github.com/oakmound/oak/examples/slide/show"
"github.com/oakmound/oak/examples/slide/s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/resources/billing_setup.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/googl... |
/*
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 obtain a copy of... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: moc_nodeagent_container.proto
package storage
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "github.com/microso... |
package mapper
import "image/color"
import "fmt"
type Block struct {
Id int16 // composed of "byte" and "add" from a chunk Section
Data int8 // actually only 4 bits (0-15)
// missing: light/skyligh
}
const (
Air = iota
Stone
Grass
Dirt
Cobblestone
Planks
Sapling
Bedrock
Flowing_water
Water
Flowing_l... |
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package load
import (
"bytes"
"cmd/go/internal/base"
"cmd/go/internal/str"
"errors"
"fmt"
"go/ast"
"go/build"
"go/doc"
"go/parser"
"go/token"
"inter... |
// Copyright 2020 Dolthub, 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... |
/*
Copyright 2015 The Kubernetes 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 applicable law or ag... |
package txpool
import (
"errors"
"fmt"
"math/big"
"github.com/golang/protobuf/ptypes/any"
"github.com/hashicorp/go-hclog"
"google.golang.org/grpc"
"github.com/0xPolygon/polygon-edge/blockchain"
"github.com/0xPolygon/polygon-edge/chain"
"github.com/0xPolygon/polygon-edge/network"
"github.com/0xPolygon/polyg... |
// +build linux_bpf
package ebpf
import (
"bytes"
"expvar"
"fmt"
"strings"
"sync"
"sync/atomic"
"time"
"unsafe"
"github.com/DataDog/agent-payload/process"
"github.com/DataDog/datadog-agent/pkg/ebpf/netlink"
"github.com/DataDog/datadog-agent/pkg/process/util"
"github.com/DataDog/datadog-agent/pkg/util/log... |
package webhook
import (
"context"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"math/rand"
"net"
"net/http"
"runtime"
"runtime/debug"
"strings"
"time"
"github.com/golang/glog"
"github.com/mattbaird/jsonpatch"
"github.com/open-policy-agent/kubernetes-policy-controller/pkg/opa"
"github.com/open-policy-ag... |
package repos
import (
"context"
"fmt"
"sort"
"strconv"
"strings"
"sync"
"github.com/grafana/regexp"
regexpsyntax "github.com/grafana/regexp/syntax"
"github.com/inconshreveable/log15"
otlog "github.com/opentracing/opentracing-go/log"
"golang.org/x/sync/errgroup"
"golang.org/x/sync/semaphore"
"github.com... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
package agreementbot
import (
"fmt"
"github.com/golang/glog"
"github.com/open-horizon/anax/agreementbot/persistence"
"github.com/open-horizon/anax/config"
"github.com/open-horizon/anax/cutil"
"github.com/open-horizon/anax/events"
"github.com/open-horizon/anax/exchange"
"github.com/open-horizon/anax/externalpol... |
/*
Notice: This file has been modified for Hyperledger Fabric SDK Go usage.
Please review third_party pinning scripts and patches for more details.
*/
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/chaincode.proto
package peer // import "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyp... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: proto/TransactionGetReceipt.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "refl... |
package tree
import (
"errors"
"fmt"
"golang.org/x/sync/semaphore"
"golang.org/x/text/language"
"golang.org/x/text/message"
"io"
"os"
"os/user"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"sync"
"time"
)
// Node represent some node in the tree
// contains FileInfo, and its childs
type Node stru... |
/*
Copyright 2017 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, ... |
/*
author:domicat
date: 2017-2-14
brief:xlsx转lua工具,支持id重复检测,支持json格式错误检测。
*/
package main
import (
"bufio"
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"regexp"
"runtime"
"sort"
"strconv"
"strings"
"time"
"unicode"
"github.com/360EntSecGroup-Skylar/excelize"
"git... |
package rpc
import (
"context"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"encoding/base64"
"net"
"net/http"
"os"
"strings"
"sync"
"time"
"github.com/edaniels/golog"
"github.com/google/uuid"
"github.com/grandcat/zeroconf"
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
grpc_... |
package alt
// #include <stdlib.h>
// #include "Module.h"
import "C"
import (
"errors"
"fmt"
"unsafe"
"github.com/shockdev04/altv-go-pkg/internal/module"
)
type VehicleModCategory = uint8
type VehicleLockState = uint8
type VehicleDoorState = uint8
type NumberPlateStyle = uint8
type RadioStation = uint8
type Vehi... |
// Copyright 2022 The CubeFS 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... |
// Copyright (c) 2021 Terminus, 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 agree... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
// Package webserver static HTTP server
package main
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"math/big"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"time"
ethereum "energi.world/core/gen3"
"energi.world/core/gen3/common"
"energi.world/core/gen3/common/hexut... |
// +build !tinygo
package gfx
import (
"math"
"math/rand"
)
// SimplexNoise is a speed-improved simplex noise algorithm for 2D, 3D and 4D.
//
// Based on example code by <NAME> (<EMAIL>).
// Optimisations by <NAME> (<EMAIL>).
// Better rank ordering method by <NAME> in 2012.
//
// This could be speeded up even fur... |
// Copyright 2018-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 ... |
// This file was generated from JSON Schema using quicktype, do not modify it directly.
// To parse and unparse this JSON data, add this code to your project and do:
//
// searchAll, err := UnmarshalSearchAll(bytes)
// bytes, err = searchAll.Marshal()
package search_all
import "bytes"
import "errors"
import "en... |
package util
// ConvertStringToX52Charmap converts a string to a byte slice that is accepted
// by the X52 MFD display. If replace is true, then runes that are not
// recognized by this function are replaced with the replacement byte, otherwise
// they are dropped from the output
func ConvertStringToX52Charmap(s strin... |
package v2
import (
"encoding/json"
"strings"
"time"
of "github.com/cisco-cx/of/pkg/v2"
of_snmp "github.com/cisco-cx/of/pkg/v2/snmp"
logger "github.com/cisco-cx/of/wrap/logrus/v2"
prometheus "github.com/cisco-cx/of/wrap/prometheus/client_golang/v2"
prommodel "github.com/prometheus/common/model"
)
// Implemen... |
/*
Package data is used to store and fetch data about the irc environment.
It comes in two major pieces; State and Store. These are the main types
that provide access to all others.
State
State is the state about the irc world. Who is online, in what channel, what
modes are on the channel or user, what topic is set.... |
// The MIT License (MIT)
//
// Copyright (c) 2014 wandoulabs
// Copyright (c) 2014 siddontang
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limi... |
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"fmt"
"go/ast"
"go/build"
"go/parser"
"go/token"
"go/types"
"io"
"log"
"os"
"sort"
"strconv"
"strings"
"sync"
"gi... |
// SPDX-License-Identifier: Unlicense OR MIT
//go:build (linux && !android && !nox11) || freebsd || openbsd
// +build linux,!android,!nox11 freebsd openbsd
package wm
/*
#cgo openbsd CFLAGS: -I/usr/X11R6/include -I/usr/local/include
#cgo openbsd LDFLAGS: -L/usr/X11R6/lib -L/usr/local/lib
#cgo freebsd openbsd LDFLAGS... |
package soyjs
import (
"bytes"
"fmt"
"io"
"sort"
"strconv"
"strings"
"text/template"
"github.com/robfig/soy/ast"
"github.com/robfig/soy/data"
"github.com/robfig/soy/soymsg"
)
type state struct {
wr io.Writer
node ast.Node // current node, for errors
indentLevels int
namespace strin... |
package gonetworkmanager
import (
"encoding/json"
"github.com/godbus/dbus"
)
const (
NetworkManagerInterface = "org.freedesktop.NetworkManager"
NetworkManagerObjectPath = "/org/freedesktop/NetworkManager"
/* Methods */
NetworkManagerReload = NetworkManagerInterface + ".Reload"
Netwo... |
/*
* Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved
*
* This source code file is licensed under the MIT License, you may obtain a copy of the License at
*
* http://opensource.org/licenses/MIT
*
*/
package cl
import (
"bufio"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
"t... |
package ingest
import (
"bytes"
"context"
"encoding/base64"
"errors"
"fmt"
"io"
"time"
"github.com/filecoin-project/go-indexer-core"
v0 "github.com/filecoin-project/storetheindex/api/v0"
"github.com/filecoin-project/storetheindex/api/v0/ingest/schema"
"github.com/filecoin-project/storetheindex/internal/met... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
// Copyright (c) 2018, The GoKi 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 gi
import (
"fmt"
"log"
"reflect"
"sync"
"github.com/goki/gi/gist"
"github.com/goki/gi/units"
"github.com/goki/ki/ki"
"github.com/goki/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.