text stringlengths 8.57k 38.1k |
|---|
package jago
import (
"strconv"
"github.com/orcaman/concurrent-map"
"fmt"
"time"
"sync"
"reflect"
"strings"
)
/*
|--------------------------------------------------------------------------
| Execution Engine
|--------------------------------------------------------------------------
|
| This part is the runtim... |
// Copyright 2009-2014 <NAME>
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Web server of freegeoip.net
package main
import (
"database/sql"
"encoding/binary"
"encoding/json"
"encoding/xml"
"expvar"
"flag"
"fmt"
"io"
"log"
"math/rand"
"net"
"ne... |
package sudoku
import (
"container/heap"
"fmt"
"runtime"
"strconv"
"sync"
)
/*
* A CompoundSolveStep is a series of 0 or more PrecursorSteps that are cull
* steps (as opposed to fill steps), terminated with a single, non-optional
* fill step. This organization reflects the observation that cull steps are
* o... |
package structure
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"regexp"
"strconv"
"strings"
"github.com/bridgecrewio/yor/src/common"
"github.com/bridgecrewio/yor/src/common/logger"
"github.com/bridgecrewio/yor/src/common/structure"
"github.com/bridgecrewio/yor/src/common/tagg... |
package node
import (
"crypto/ecdsa"
"fmt"
"sync"
"time"
"github.com/sirupsen/logrus"
"strconv"
"github.com/Fantom-foundation/go-lachesis/src/net"
"github.com/Fantom-foundation/go-lachesis/src/peers"
"github.com/Fantom-foundation/go-lachesis/src/poset"
"github.com/Fantom-foundation/go-lachesis/src/proxy"
... |
// Code generated by protoc-gen-go.
// source: common/configtx.proto
// DO NOT EDIT!
package common
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 aperture
import (
"context"
"crypto/tls"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"regexp"
"strings"
"sync"
"time"
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
gateway "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
flags "github.com/jessevdk/go-fla... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opencensus/proto/trace/v1/trace_config.proto
package v1
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 _ = mat... |
package server
import (
"encoding/json"
"fmt"
"math/rand"
"net/http"
"net/url"
"sort"
"strings"
"sync"
"time"
"github.com/coreos/etcd/third_party/github.com/goraft/raft"
"github.com/coreos/etcd/third_party/github.com/gorilla/mux"
"github.com/coreos/etcd/discovery"
etcdErr "github.com/coreos/etcd/error"
... |
// package p2p is a low-level library responsible for peer discovery and
// sending/receiving messages.
package p2p
import (
"context"
"crypto/rand"
"errors"
"fmt"
"io/ioutil"
mathrand "math/rand"
"net"
"path/filepath"
"strings"
"sync"
"time"
"github.com/albrow/stringset"
lru "github.com/hashicorp/golang... |
// Copyright 2018 Owkin, 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 helpers
// 解决一些原生Go方法没「有默认值」而直接panic的问题;「从晦涩到好用」。
// 用Go解释Go
import (
"crypto/md5"
"encoding/base64"
"encoding/json"
"fmt"
"ginyii/config"
"html"
"io"
"io/ioutil"
"log"
"math"
"math/rand"
"net/http"
"net/url"
"os"
"regexp"
"strconv"
"strings"
"time"
)
var CommonConfig = map[string]string{
"... |
package typestruct
import (
. "github.com/KouKouChan/CSO2-Server/kerlong"
. "github.com/KouKouChan/CSO2-Server/kerlong/encode"
)
//发送出去的包结构,其中一些未知,知道后会加入user里去
type UserInfo struct {
//flags uint32 // should always be 0xFFFFFFFF for a full update
NexonID uint64 // nexon id?
userName ... |
// Copyright 2018-2019 <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 ... |
// +build small
/*
http://www.apache.org/licenses/LICENSE-2.0.txt
Copyright 2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... |
package main
import (
"database/sql"
_ "debug/dwarf"
"fmt"
_ "github.com/denisenkom/go-mssqldb"
"github.com/kardianos/service"
"github.com/robfig/cron/v3"
"log"
"net/http"
"net/url"
"os"
"strconv"
"time"
"workwxboot/pkg/workwx"
)
/****
交叉编译为exe
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hook.proto
package v1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwi... |
package exporter
import (
"fmt"
"net/http"
"runtime"
"strconv"
"strings"
"sync"
"time"
"github.com/gomodule/redigo/redis"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"
)
type BuildInfo struct {
Version string
... |
package bitstamp
import (
"encoding/json"
"errors"
"fmt"
"net/http"
"net/url"
"reflect"
"strconv"
"strings"
"time"
"github.com/thrasher-/gocryptotrader/common"
"github.com/thrasher-/gocryptotrader/config"
"github.com/thrasher-/gocryptotrader/currency"
exchange "github.com/thrasher-/gocryptotrader/exchang... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package css
import (
"bytes"
"fmt"
"os"
"testing"
"github.com/tdewolff/minify/v2"
"github.com/tdewolff/parse/v2/css"
"github.com/tdewolff/test"
)
func TestCSS(t *testing.T) {
cssTests := []struct {
css string
expected string
}{
{"/*comment*/", ""},
{"/*! bang comment */", "/*!bang comment*/"},... |
package mysql
import (
"database/sql"
"fmt"
"strings"
"time"
"github.com/cenkalti/backoff/v4"
"github.com/fleetdm/fleet/v4/server/fleet"
"github.com/jmoiron/sqlx"
"github.com/pkg/errors"
)
var hostSearchColumns = []string{"hostname", "uuid", "hardware_serial", "primary_ip"}
func (d *Datastore) NewHost(host ... |
package statsd
import (
"bufio"
"bytes"
"errors"
"fmt"
"log"
"net"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/influxdata/telegraf/plugins/parsers/graphite"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal"
"github.com/influxdata/telegraf/plugins/inputs"
"github.com/... |
package controller
import (
"fmt"
"strconv"
"time"
"github.com/containous/maesh/internal/deployer"
"github.com/containous/maesh/internal/k8s"
"github.com/containous/maesh/internal/message"
"github.com/containous/maesh/internal/providers/kubernetes"
"github.com/containous/maesh/internal/providers/smi"
"github... |
package v1
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// AllowAllCapabilities can be used as a value for the
// SecurityContextConstraints.AllowAllCapabilities field and means that any
// capabilities are allowed to be requested.
var AllowAllCapabilities corev1.Capability =... |
package main
import (
"fmt"
"io"
"log"
"os"
"os/user"
"sort"
"strconv"
"sync"
"time"
"9fans.net/go/plan9"
"github.com/rjkroege/edwood/ninep"
"github.com/rjkroege/edwood/util"
)
type fileServer struct {
conn io.ReadWriteCloser
fids map[uint32]*Fid
fcall []fsfunc
closing bool
u... |
// Copyright (c) 2013-2014 The btcsuite developers
// Copyright (c) 2015-2017 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 (
"encoding/base64"
"fmt"
"html/template"
"net"
"net/url"
"os"
"path/filepath"
"runtime"
"... |
package app
import (
"bufio"
"bytes"
"encoding/csv"
"errors"
"fmt"
"io"
"log"
"math"
"os"
"strconv"
"strings"
"time"
"unicode/utf8"
)
const (
olePpsTypeRoot = 5
olePpsTypeDir = 1
olePpsTypeFile = 2
oleDataSizeSmall = 0x1000
oleLongIntSize = 4
olePpsSize = 0x80
)
// Csv2XlsConverter ... |
// Copyright (c) 2016-2019 <NAME>. All rights reserved.
// Copyright (c) 2016-2019 <NAME>. All rights reserved.
// Copyright (c) 2020-2021 Oasis Labs Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions a... |
// Copyright 2021 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Package kubecertagent provides controllers that ensure a pod (the kube-cert-agent), is
// co-located with the Kubernetes controller manager so that Pinniped can access its signing keys.
package kubecertagent
im... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fab3
import (
"bytes"
"encoding/hex"
"encoding/json"
"fmt"
"net/http"
"strconv"
"strings"
"github.com/gogo/protobuf/proto"
"go.uber.org/zap"
"github.com/hyperledger/fabric-chaincode-evm/event"
"github.com/hyperled... |
// Copyright © 2018 <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 wri... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/services/asset_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"
_ "google.gola... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/firestore/v1beta1/common.proto
package firestore
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Refe... |
// Copyright © 2013-2016 Galvanized Logic Inc.
// Use is governed by a BSD-style license found in the LICENSE file.
package main
import (
"sort"
"github.com/gazed/vu"
"github.com/gazed/vu/math/lin"
)
// trooper is a cube that represents the players health and
// progress for a level. Each new level increases the... |
package console
import (
"errors"
"fmt"
"html/template"
"net/http"
"net/url"
"os"
"path"
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/justinas/alice"
"k8s.io/client-go/discovery"
"k8s.io/client-go/rest"
"k8s.io/klog"
v1 "console/pkg/api/v1"
"console/pkg/auth"
"console/pkg/hyperc... |
// Copyright 2019 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 server
import (
"bytes"
"context"
"encoding/hex"
"encoding/json"
"encoding/xml"
"fmt"
"io/ioutil"
"net"
"os"
"os/signal"
"strings"
"time"
"github.com/davecgh/go-spew/spew"
log "github.com/sirupsen/logrus"
)
type Config struct {
UDPAddress *net.UDPAddr
USBPath string
WebSocketPort ... |
/*
Copyright 2016-2017 by <NAME>
This software is provided 'as-is', without any express or implied warranty. In
no event will the authors be held liable for any damages arising from the use of
this software.
Permission is granted to anyone to use this software for any purpose, including
commercial applications, and t... |
// Package virtualfund implements an off-chain protocol to virtually fund a channel.
package virtualfund // import "github.com/statechannels/go-nitro/virtualfund"
import (
"bytes"
"errors"
"fmt"
"math/big"
"strings"
"github.com/statechannels/go-nitro/channel"
"github.com/statechannels/go-nitro/channel/consensu... |
// Code generated by protoc-gen-go.
// source: ctmap.proto
// DO NOT EDIT!
/*
Package ctmap is a generated protocol buffer package.
It is generated from these files:
ctmap.proto
It has these top-level messages:
MapHead
SignedMapHead
DigitallySigned
GetLeafRequest
GetLeafResponse
UpdateLeafRequest
UpdateLeafR... |
package tamil
import (
"fmt"
"reflect"
"strings"
"github.com/stts-se/translit"
)
// Translit
type Translit struct {
theTree *rNode
revTree *rNode
alwaysAcceptASCII bool
defaultChar string
}
// Result struct
type Result struct {
Input string // Input string
//InputNorm string //... |
package main
import (
"crypto/sha256"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"strings"
"github.com/ghodss/yaml"
"github.com/golang/glog"
"k8s.io/api/admission/v1beta1"
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimach... |
// ORIGINAL: javatest/TextDocumentConstructionTest.java
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation t... |
package file
import (
"fmt"
"strings"
)
type CustomerFileModel struct {
CustomerId string `json:"customerId,omitempty"` // offset 0, length 10
CustomerTag string `json:"customerTag,omitempty"` // offset 1, length 50
... |
// Copyright 2020 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 node
import (
"bytes"
"encoding/base64"
"errors"
"fmt"
"github.com/btcsuite/btcd/btcec"
"log"
"math/rand"
"net"
"net/http"
"net/rpc"
"sync"
"time"
)
const Debug = 0
// These parameters are tuned by the tests
var (
BLOCK_SIZE_THRESHOLD = 10
DIFFICULTY uint32 = 3
)
func DPrintf(... |
package types
import (
"bytes"
"fmt"
"io"
"math"
"runtime"
"strings"
"sync/atomic"
"github.com/lyraproj/issue/issue"
"github.com/lyraproj/puppet-evaluator/eval"
"github.com/lyraproj/puppet-evaluator/hash"
"github.com/lyraproj/puppet-evaluator/utils"
"github.com/lyraproj/puppet-parser/parser"
"github.com/... |
package config
import (
"fmt"
"io/ioutil"
"os"
"sync"
"gopkg.in/yaml.v2"
"github.com/kiali/kiali/config/security"
"github.com/kiali/kiali/log"
)
// Environment variables that can override the ConfigMap yaml values
const (
// External services auth
EnvGrafanaPassword = "<PASSWORD>"
EnvGrafanaToken ... |
// Copyright 2017-2018 DERO Project. All rights reserved.
// Use of this source code in any form is governed by RESEARCH license.
// license can be found in the LICENSE file.
// GPG: 0F39 E425 8C65 3947 702A 8234 08B2 0360 A03A 9DE8
//
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A... |
/*
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, ... |
// Peripheral: RCC_Periph Reset and Clock Control.
// Instances:
// RCC mmap.RCC_BASE
// Registers:
// 0x00 32 CR Clock control register.
// 0x04 32 CFGR Clock configuration register.
// 0x08 32 CIR Clock interrupt register.
// 0x0C 32 APB2RSTR APB2 peripheral reset register.
// 0x10 32 APB1... |
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package ec2
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Get characteristics for a single EC2 Instance Type.
... |
// Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
/*
Copyright 2021 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, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/google_ads_field_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
_ "... |
// Copyright (c) 2020-2021 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/packdb/vec"
"blockwatch.cc/tzgo/te... |
// Copyright 2016 by <NAME>, see LICENSE file
// The SX1276 package interfaces with a HopeRF RFM95/96/97/98 LoRA radio connected to an SPI bus.
//
// The RFM9x modules use a Semtech SX1276 radio chip. This package has also been tested with a
// Dorji DRF1278 module and it should work fine with other radio modules usin... |
package dialect
var Keywords map[string]struct{}
var ReservedForTableAlias map[string]struct{}
var ReservedForColumnAlias map[string]struct{}
func init() {
Keywords = make(map[string]struct{})
Keywords[ABS] = struct{}{}
Keywords[ADD] = struct{}{}
Keywords[ASC] = struct{}{}
Keywords[ALL] = struct{}{}
Keywords[AL... |
package quic
import (
"crypto/tls"
"errors"
"fmt"
"net"
"sync/atomic"
"time"
"github.com/lucas-clemente/quic-go/ackhandler"
"github.com/lucas-clemente/quic-go/congestion"
"github.com/lucas-clemente/quic-go/flowcontrol"
"github.com/lucas-clemente/quic-go/frames"
"github.com/lucas-clemente/quic-go/handshake"... |
// DO NOT EDIT THIS FILE. GENERATED BY svdxgen.
// +build stm32f215
// Package gpio provides access to the registers of the GPIO peripheral.
//
// Instances:
// GPIOA GPIOA_BASE AHB1 - General-purpose I/Os
// GPIOB GPIOB_BASE AHB1 - General-purpose I/Os
// GPIOC GPIOC_BASE AHB1 - General-purpose I/Os
/... |
// Copyright (c) 2020, The Emergent Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// layers that receive modulatory projections--(original code from SendDeepMod in cemer)
package pvlv
import (
"fmt"
"strconv"
"github.com/emer... |
// Copyright © 2022 Kaleido, Inc.
//
// 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/licenses/LICENSE-2.0
//
// Unle... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.6.1
// source: yandex/cloud/resourcemanager/v1/folder.proto
package resourcemanager
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protorefl... |
package vcpu
import (
"fmt"
"strconv"
"strings"
"k8s.io/apimachinery/pkg/api/resource"
"kubevirt.io/client-go/log"
k8sv1 "k8s.io/api/core/v1"
v12 "kubevirt.io/api/core/v1"
v1 "kubevirt.io/kubevirt/pkg/handler-launcher-com/cmd/v1"
"kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api"
)
type VCPUPool inte... |
package main
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
type prometheusMetrics struct {
requestsTotal *prometheus.CounterVec
tlsTotal *prometheus.CounterVec
shieldTotal ... |
package server
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"io/ioutil"
"net/http"
"path"
"strings"
"sync/atomic"
"time"
"github.com/rs/zerolog"
"github.com/twitchtv/twirp"
"golang.org/x/sync/errgroup"
"github.com/jotfs/jotfs/internal/db"
"github.com/jotfs/jotfs/internal/log"
"github.com/jotfs/jot... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: errcode.proto
package errcode
import (
fmt "fmt"
math "math"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Err... |
// Copyright 2018 <NAME>. All rights reserved.
package mdb
import (
"bufio"
"bytes"
"encoding/gob"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"github.com/simagix/gox"
"github.com/simagix/keyhole/sim/util"
)
// COLLSCAN constance
const COLLSCAN = "... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/common/asset_types.proto
package common
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/googleads/v2/... |
package palette
import "image/color"
var Xterm = []color.Color{
color.RGBA{0x0, 0x0, 0x0, 0x0},
color.RGBA{0x80, 0x0, 0x0, 0xff},
color.RGBA{0x0, 0x80, 0x0, 0xff},
color.RGBA{0x80, 0x80, 0x0, 0xff},
color.RGBA{0x0, 0x0, 0x80, 0xff},
color.RGBA{0x80, 0x0, 0x80, 0xff},
color.RGBA{0x0, 0x80, 0x80, 0xff},
color.R... |
/*
Copyright 2021 The actions-runner-controller 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 ... |
// Copyright 2019 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 (C) 2020 BGBiao Ltd. All rights reserved.
*
*FileName:main.go
*Author:BGBiao
*Date:2020年05月07日
*Description:
*
================================================================*/
package kafka
import (
"fmt"
"reflect"
"github.com/Shopify/... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: yandex/cloud/logging/v1/log_group.proto
package logging
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durat... |
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: infra/libs/skylab/inventor... |
package vm
import (
"fmt"
"github.com/mna/lune/types"
)
var (
_BINOPS = [...]byte{
types.OP_ADD: '+',
types.OP_SUB: '-',
types.OP_MUL: '*',
types.OP_DIV: '/',
types.OP_MOD: '%',
types.OP_POW: '^',
}
_CMPOPS = [...]func(types.Value, types.Value) bool{
types.OP_EQ: areEqual,
types.OP_LT: isLessTh... |
// Copyright 2015 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL.txt and at www.mariadb.com/bsl11.
//
// Change Date: 2022-10-01
//
// On the date above, in accordance with the Business Source License, use
// of this software will be gov... |
/*
Purpose:
- MGRS/UTMREF <-> UTM <-> Lon Lat
Description:
- Package for converting coordinates between WGS84 Lon Lat, UTM and MGRS/UTMREF.
Releases:
- v0.1.0 - 2019/05/09 : initial release
- v0.2.0 - 2019/05/10 : coord formatting changed
- v0.2.1 - 2019/05/12 : redundant comments removed
Author:
- <NAME>
Copyright... |
// +build !test_no_exec
package main
import (
"bufio"
"fmt"
"net/http"
"os"
"os/exec"
"reflect"
"runtime"
"sort"
"strings"
"sync"
"time"
"github.com/docker/docker/pkg/integration/checker"
icmd "github.com/docker/docker/pkg/integration/cmd"
"github.com/go-check/check"
)
func (s *DockerSuite) TestExec(c... |
// Copyright 2016-2020 Authors of Cilium
//
// 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.22.0
// protoc v3.10.1
// source: envoy/config/filter/http/aws_lambda/v2alpha/aws_lambda.proto
package envoy_config_filter_http_aws_lambda_v2alpha
import (
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/cloudprofiler/v2/profiler.proto
/*
Package cloudprofiler is a generated protocol buffer package.
It is generated from these files:
google/devtools/cloudprofiler/v2/profiler.proto
It has these top-level messages:
CreateProfileRequest
Updat... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: envoy/config/core/v3/extension.proto
package corev3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
any "github.com/golang/protobu... |
// Package grpcurl provides the core functionality exposed by the grpcurl command, for
// dynamically connecting to a server, using the reflection service to inspect the server,
// and invoking RPCs. The grpcurl command-line tool constructs a DescriptorSource, based
// on the command-line parameters, and supplies an In... |
package cloud
import (
"context"
"fmt"
"math"
"os"
"os/user"
"regexp"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ec2"
ec2aws "github.com/aws/aws-sdk-go/service/ec2"
"github.com/evergreen-ci/evergreen"
"github.com/evergreen-c... |
// Copyright 2018 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
// Copyright 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 in wri... |
/*
Copyright IBM Corp All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package ledger
import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
"syscall"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
docker "github.com/fsouza/go-dockerclient"
"github... |
//
// Copyright 2022 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
package hurricane
import (
"godin/utilities"
"math"
)
/* Constants
SPH: Standard Project Hurricane
PMH: Probable Maximum Hurricane
Pressure profile equation
(p-Cp)/(Pw - Cp) = e ^ (-R/r)
Pw: Peripheral Pressure, pressure at edge of storm, should be a bit below MSLP
Cp: Central Pressure (P0 in paper)
Rmax: Radius of... |
// 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 message
import (
"encoding/hex"
"fmt"
"v.io/v23/context"
"v.io/v23/naming"
"v.io/v23/rpc/version"
"v.io/v23/security"
)
// TODO(mattr): L... |
package gorgonia
import (
"encoding/csv"
"fmt"
"io"
"github.com/pkg/errors"
"gorgonia.org/tensor"
)
// This file deals with the compilation from a expression graph into a program
// that is executed by an interpreter
// Compile takes a graph and outputs a program suitable for *tapeMachine to run
func Compile(g... |
// 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 eql
import (
"fmt"
"os"
"testing"
"github.com/antlr/antlr4/runtime/Go/... |
// Copyright 2019 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Package cloudpb is a subset of protobufs, copied from google.golang.org/genproto/googleapis/datastore/v1.
//
// They are copied here to provide compatibility ... |
// Copyright 2017 Granitic. All rights reserved.
// Use of this source code is governed by an Apache 2.0 license that can be found in the LICENSE file at the root of this project.
/*
Package inifile provides a Go struct that can parse an INI-style file and make the configuration in that file
available via a series of ... |
package syntax
import (
"bytes"
"fmt"
"strconv"
"unicode"
"unicode/utf8"
)
type Prefix struct {
PrefixStr []rune
PrefixSet CharSet
CaseInsensitive bool
}
// It takes a RegexTree and computes the set of chars that can start it.
func getFirstCharsPrefix(tree *RegexTree) *Prefix {
... |
// Copyright 2014 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 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... |
package wasmgo
import (
"fmt"
"github.com/zhangsifeng92/geos/common/eos_math"
"github.com/zhangsifeng92/geos/crypto"
"github.com/zhangsifeng92/geos/crypto/rlp"
"github.com/zhangsifeng92/geos/exception"
"github.com/zhangsifeng92/geos/exception/try"
"github.com/zhangsifeng92/geos/log"
"os"
//"time"
//"github.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.