text stringlengths 8.57k 38.1k |
|---|
// Code generated by protoc-gen-go.
// source: birds.proto
// DO NOT EDIT!
/*
Package models is a generated protocol buffer package.
It is generated from these files:
birds.proto
It has these top-level messages:
Empty
Bird
BirdId
BirdCatalog
*/
package models
import proto "github.com/golang/protobuf/proto"
imp... |
//
// Name
// decurret-asset-rebalancer.go
//
// Description
// This program is rebalancer of asset.
//
// Copyright (C) 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
//... |
// Copyright 2014 <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 main
import (
"github.com/gordonklaus/flux/go/types"
"fmt"
"go/ast"
"go/parser"
"go/token"
"strconv"
"strings"
)
// Flux code is stored in a subset of ... |
// Copyright (c) 2019 Tailscale Inc & 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 magicsock
import (
"bytes"
"crypto/hmac"
"crypto/subtle"
"encoding/binary"
"errors"
"hash"
"net"
"strings"
"sync"
"time"
"githu... |
package survivalserver
import (
"encoding/base64"
"fmt"
"sort"
"strings"
"sync"
"time"
medcomodels "github.com/ldsec/medco/connector/models"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
querytoolsserver "github.com/ldsec/medco/connector/server/querytools"
"github.com/ldsec/medco/connector/server/... |
// Code generated by goyacc -o y.go -l parse.y. DO NOT EDIT.
package iscdhcp
import __yyfmt__ "fmt"
import (
"fmt"
"net"
"strings"
)
type yySymType struct {
yys int
num int
str string
strList []string
ipList []net.IP
ip net.IP
statement ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/config/ingest/config_request.proto
package ingest // import "github.com/chef/automate/api/config/ingest"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import shared "github.com/chef/automate/api/config/shared"
import... |
// Copyright (c) 2016 The Go Authors. All rights reserved.
// Copyright (c) 2019-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 are
// met:
//
// * Redistributions of source code m... |
// Copyright (c) 2016 <NAME>, Inc.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the COPYING file.
package cql
import (
"container/list"
"encoding/json"
"fmt"
"os"
"strconv"
"time"
"github.com/aristanetworks/quantumfs"
"github.com/aristanetworks/quantumfs/qlog"
"gi... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/endpoint/v3/endpoint.proto
package envoy_config_endpoint_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
pro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.11.2
// source: proto/clarifai/api/utils/test_proto.proto
package utils
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.gol... |
package main
import "testing"
const aroundD4 = (CFile|DFile|EFile)&(Rank3|Rank4|Rank5) ^ (DFile & Rank4)
type boardsTest struct{ input, empty, want Board }
func TestAttackFill(t *testing.T) {
for _, dir := range []struct {
f func(Board) Board
name string
tests []boardsTest
}{
{
south, "south", []b... |
// Copyright (c) 2017 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... |
package main
func LookupECO(eco string) string {
if o, ok := ECOMap[eco]; ok {
return eco + " " + o
}
return eco
}
var ECOMap = map[string]string{
"A00": "Polish (Sokolsky) Opening",
"A01": "Nimzovich-Larsen attack",
"A02": "Bird's opening",
"A03": "Bird's opening",
"A04": "Reti opening"... |
package storage
import (
"context"
"io"
"net"
"sync"
"github.com/zero-os/0-Disk/config"
"github.com/zero-os/0-Disk/errors"
"github.com/zero-os/0-Disk/log"
"github.com/zero-os/0-Disk/nbd/ardb"
)
// NewCluster creates a new storage cluster for the given vdiskID,
// using the given controller to control the ser... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: github.com/yext/cloudprober/probes/http/proto/config.proto
package cloudprober_probes_http
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = pr... |
package blockchain
import (
"encoding/json"
"fmt"
"reflect"
"sort"
"strconv"
"strings"
"time"
"github.com/incognitochain/incognito-chain/common"
"github.com/incognitochain/incognito-chain/database"
"github.com/incognitochain/incognito-chain/incognitokey"
"github.com/incognitochain/incognito-chain/metadata"... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.22.0
// protoc v3.13.0
// source: grpeakec_proto/pkerr/error.proto
package protogen
import (
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
timestamp "github.com/golang/protobuf/ptypes/t... |
package gatewaySlack
import (
"errors"
"fmt"
"log"
"strconv"
"encoding/json"
"io/ioutil"
"net/http"
"github.com/1egoman/slick/gateway"
"golang.org/x/net/websocket"
)
// Create a custom http client for use throughout the package.
var httpClient *http.Client = &http.Client{
// Timeout: 3000,
}
func New(to... |
// 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 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package netstack
import (
"context"
"fmt"
"strings"
"sync"
"syslog/logger"
"netstack/dns"
"netstack/fidlconv"
"netstack/filter"
"netstack/link"... |
// Copyright 2020 Antrea 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... |
/*
Copyright 2019 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright 2013 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
package astisub
import (
"errors"
"fmt"
"math"
"os"
"path/filepath"
"strconv"
"strings"
"time"
)
// Bytes
var (
BytesBOM = []byte{239, 187, 191}
bytesLineSeparator = []byte("\n")
bytesSpace = []byte(" ")
)
// Colors
var (
ColorBlack = &Color{}
ColorBlue = &Color{Blue: 255}
ColorC... |
// Copyright 2013 The Prometheus 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... |
/*
Copyright 2021-2022 The Volcano Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... |
package squashfs
// #cgo pkg-config: libsquashfs1
// #include <string.h>
// #include <errno.h>
// #include <stdlib.h>
// #include <sqfs/compressor.h>
// #include <sqfs/dir.h>
// #include <sqfs/io.h>
// #include <sqfs/super.h>
// #include <sqfs/inode.h>
// #include <sqfs/dir_reader.h>
// #include <sqfs/id_table.h>
// #... |
package restore
import (
"bufio"
"fmt"
"os"
"regexp"
"runtime/debug"
"strings"
"sync"
"github.com/greenplum-db/gp-common-go-libs/cluster"
"github.com/greenplum-db/gp-common-go-libs/gplog"
"github.com/greenplum-db/gpbackup/filepath"
"github.com/greenplum-db/gpbackup/history"
"github.com/greenplum-db/gpback... |
// Copyright 2020-2021 Buf 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... |
// Copyright 2018 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
package v1beta2
import (
"encoding/json"
"fmt"
"github.com/cybozu-go/moco/pkg/constants"
"github.com/robfig/cron/v3"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/equality"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/validation/field"
corev1ac "k8s.io/client-go/appl... |
package ha
import (
"encoding/xml"
"github.com/PaloAltoNetworks/pango/util"
"github.com/PaloAltoNetworks/pango/version"
)
// Config is a normalized, version independent representation of a device
// HA configuration.
type Config struct {
Enable bool
GroupId int
Description ... |
// 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... |
// 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 api
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"math/big"
"net/http"
"strconv"
"strings"
"sync"
"testing"
"time"
"github.com/golang/protobuf/proto"
"github.com/spacemeshos/ed25519"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/common/u... |
package api
import (
"fmt"
"net/http"
"sort"
"strconv"
"github.com/julienschmidt/httprouter"
"github.com/threefoldtech/rivine/build"
"github.com/threefoldtech/rivine/crypto"
"github.com/threefoldtech/rivine/modules"
rapi "github.com/threefoldtech/rivine/pkg/api"
rtypes "github.com/threefoldtech/rivine/types... |
package pcstore
import (
"encoding/json"
"errors"
"fmt"
"path"
"time"
"github.com/gofrs/uuid"
"github.com/hashicorp/consul/api"
"github.com/rcrowley/go-metrics"
"github.com/sirupsen/logrus"
klabels "k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/util/sets"
"github.com/square/p2/pkg/labels"
"github... |
package planfile
import (
"fmt"
"io"
"io/ioutil"
"google.golang.org/protobuf/proto"
"github.com/hashicorp/terraform/internal/addrs"
"github.com/hashicorp/terraform/internal/plans"
"github.com/hashicorp/terraform/internal/plans/internal/planproto"
"github.com/hashicorp/terraform/internal/states"
"github.com/... |
package streamanalytics
// Copyright (c) Microsoft and contributors. 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
/... |
/*
* 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 ... |
package imagebuildah
import (
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"strings"
is "github.com/containers/image/storage"
"github.com/containers/image/transports"
"github.com/containers/image/transports/alltransports"
"github.com/containers/image/types"
"github.com/containers/storage"
"github.com/contai... |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
package main
import (
"bytes"
"encoding/binary"
"kp_proto"
"net"
"runtime"
"strings"
"sync"
"time"
//"fmt"
//"strconv"
//"syscall"
)
// 收发应该放到两个独立的goroutine中
type ConnState int
const (
E_STATE_CONNECTING ConnState = iota
E_STATE_REGISTERING
E_STATE_CONNECTED
E_STATE_DISCONNECTED
E_STATE_REGISTER_FAI... |
package scraper
import (
"bytes"
"context"
"errors"
"fmt"
"math"
"math/rand"
"strconv"
"strings"
"time"
kitlog "github.com/go-kit/kit/log" //nolint:staticcheck // TODO(mem): replace in BBE
"github.com/go-kit/kit/log/level" //nolint:staticcheck // TODO(mem): replace in BBE
"github.com/go-logfmt/logfmt"
"... |
package influxql
import (
"encoding/binary"
"errors"
"fmt"
"hash/fnv"
"sort"
"strings"
"time"
)
// DB represents an interface to the underlying storage.
type DB interface {
// Returns a list of series data ids matching a name and tags.
MatchSeries(name string, tags map[string]string) []uint32
// Returns a ... |
package poly_test
import (
"math"
"sort"
"testing"
"github.com/adamcolton/geom/calc/cmpr"
"github.com/adamcolton/geom/calc/poly"
"github.com/adamcolton/geom/geomerr"
"github.com/adamcolton/geom/geomtest"
"github.com/stretchr/testify/assert"
)
func sortFloats(fs []float64) {
sort.Slice(fs, func(i, j int) boo... |
// Copyright 2021 The present-tex 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 latex
import (
"bufio"
"bytes"
"fmt"
"io"
"strconv"
"github.com/yuin/goldmark/ast"
"github.com/yuin/goldmark/renderer"
"github.com/y... |
package api
import (
"context"
"fmt"
"io"
"log"
"os"
"path"
"path/filepath"
"sync"
"syscall"
"time"
"github.com/kraken-hpc/go-fork"
"github.com/kraken-hpc/imageapi/models"
"github.com/kraken-hpc/uinit"
"github.com/sirupsen/logrus"
"golang.org/x/sys/unix"
)
// Unlike other subsystems, we wrap models.Co... |
package requests
import "errors"
var (
NIL_TYPE_ERROR = errors.New("数据类型为nil")
UNKONWN_TYPE_ERROR = errors.New("未知的数据类型")
API_RESPONSE_ERROR = errors.New("接口返回错误")
EMPTY_RESPONSE = errors.New("响应为空")
)
type ErrorResponse struct {
ErrorResponse struct {
Code int `json:"code"`
Msg string... |
/*
Copyright 2015 Gravitational, 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, soft... |
package metrics
import (
"context"
"errors"
"net/http"
"sort"
"strings"
"sync"
"time"
"github.com/go-kit/kit/metrics"
stdprometheus "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github... |
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
Copyright The containerd Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
// 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 s3
import (
"bufio"
"compress/gzip"
"context"
"crypto/sha256"
"encodin... |
// 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 language
import (
"bytes"
"errors"
"fmt"
"sort"
"strconv"
"strings"
"golang.org/x/text/internal/tag"
)
// isAlpha returns true if the byte is ... |
package dasm
import "fmt"
const defaultInstructionLen = 1
// disassembler is a function that returns the relevant assembly code and length
// of the instruction.
//
// Assembly and instruction length are calculated from the given ROM bytes and
// program counter.
type disassembler func([]byte, int64) (string, int64)... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/common/asset_types.proto
package common // import "google.golang.org/genproto/googleapis/ads/googleads/v1/common"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import wrappers "github.com/golang/p... |
//go:generate struct-markdown
//go:generate mapstructure-to-hcl2 -type Config,SSH,WinRM,SSHTemporaryKeyPair
package communicator
import (
"errors"
"fmt"
"io/ioutil"
"net"
"os"
"time"
"github.com/hashicorp/hcl/v2/hcldec"
helperssh "github.com/hashicorp/packer-plugin-sdk/communicator/ssh"
"github.com/hashicor... |
// Copyright 2015 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... |
// Easily define configuration parameters for your app and this package will
// collect the values in the following order, each overriding the previous
// if a value is provided: (1) code-specified default value, (2) configuration
// file, (3) environmental variables and (4) command-line. A more powerful
// alternative... |
package seeds
import (
//"fmt"
"github.com/jteutenberg/downpore/util"
"log"
)
type multiAligner struct {
segments [][]int
tempSets []*util.IntSet
pos []int //seed positions in each sequence
offset []int //plus bases (0 for exact match)
gaps []int //distance since last match
}
func NewMultiAligner() *multiAl... |
// Copyright 2020 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// ManagedAndroidLobApp Contains properties and inherited properties for Managed Android Line Of Business apps.
type ManagedAndroidLobApp struct {
// ManagedMobileLobApp is the base model of ManagedAndroidLobApp
ManagedMobileLobApp
// ... |
// Copyright 2021 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... |
package telemetry_dialout
import (
// "encoding/json"
"crypto/tls"
"errors"
"fmt"
spb "proto"
sdc "sonic_data_client"
"github.com/go-redis/redis"
log "github.com/golang/glog"
gpb "github.com/openconfig/gnmi/proto/gnmi"
"github.com/openconfig/ygot/ygot"
"github.com/Workiva/go-datastructures/queue"
"golang.o... |
package pigpaxos
import (
"fmt"
"github.com/acharapko/pbench/cfg"
"github.com/acharapko/pbench/idservice"
"github.com/acharapko/pbench/log"
"github.com/acharapko/pbench/net"
"github.com/acharapko/pbench/node"
"math/rand"
"sort"
"sync"
"time"
)
const GrayTimeoutMultiplier = 1000
const TickerDuration = 10
ty... |
// Code generated by protoc-gen-go.
// source: google/bigtable/admin/v2/table.proto
// DO NOT EDIT!
package admin
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf4 "github.com/golang/protobuf/pty... |
// +build sam,atsamd21g18a
// Peripheral abstraction layer for the atsamd21.
//
// Datasheet:
// http://ww1.microchip.com/downloads/en/DeviceDoc/SAMD21-Family-DataSheet-DS40001882D.pdf
//
package machine
import (
"device/arm"
"device/sam"
"errors"
)
const CPU_FREQUENCY = 48000000
type GPIOMode uint8
const (
GP... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/core/config_source.proto
package envoy_api_v2_core
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import wrappers "github.com/golang/protobuf/ptype... |
package database
import (
// Stdlib
"encoding/json"
"strconv"
"strings"
// RPC
"github.com/asuleymanov/golos-go/types"
)
type DiscussionQuery struct {
Tag string `json:"tag"`
Limit uint32 `json:"limit"`
FilterTags []string `json:"filter_tags"`
StartAuthor string `json:"star... |
package nsdp
import (
"encoding/binary"
"fmt"
"net"
"reflect"
"strings"
)
// LinkStatus defines the speed of a network link.
type LinkStatus uint8
const (
// LinkDown marks a link to be down.
LinkDown LinkStatus = iota
// LinkSpeed10MbitHalfDuplex is the speed of a 10Mbit Ethernet link in half-duplex mode.
... |
package nes
import (
"fmt"
)
const (
HiPassStrong = 225574
HiPassWeak = 57593
)
var (
SquareLookup = []int{
0, 1, 0, 0, 0, 0, 0, 0,
0, 1, 1, 0, 0, 0, 0, 0,
0, 1, 1, 1, 1, 0, 0, 0,
1, 0, 0, 1, 1, 1, 1, 1,
}
TriangleLookup = []int16{
15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0,
0, 1, 2, 3... |
package main
import (
"fmt"
"strconv"
"time"
"github.com/hako/durafmt" //github.com/hako/durafmt
"github.com/stretchr/objx"
"google.golang.org/api/admin/directory/v1"
)
func getManagerUserList(adminSvc *admin.Service, nextPageToken string, managerID string) (*admin.Users, error) {
//Drive api Example see http... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/model.proto
package automl
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
timestamp "github.com/catper/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Refer... |
package vm
import (
"fmt"
"github.com/yourfavoritedev/golang-interpreter/code"
"github.com/yourfavoritedev/golang-interpreter/compiler"
"github.com/yourfavoritedev/golang-interpreter/object"
)
const StackSize = 2048 // arbitrary number
const GlobalsSize = 65536 // upper limit on the number of global bindings ... |
// 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 implementations
import (
"context"
"encoding/json"
"fmt"
"github.com/nortonlifelock/aegis/internal/integrations"
"github.com/nortonlifelock/domain"
"github.com/nortonlifelock/log"
"regexp"
"strconv"
"strings"
"sync"
"time"
)
// AssetSyncJob implements the Job interface required to run the job
type ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) IBAX. All rights reserved.
* See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
package smart
import... |
package discover
import (
"bytes"
"container/list"
"errors"
"fmt"
"io"
"net"
"sync"
"time"
"github.com/lianxiangcloud/linkchain/libs/p2p/common"
"github.com/lianxiangcloud/linkchain/libs/p2p/netutil"
"github.com/lianxiangcloud/linkchain/libs/crypto"
"github.com/lianxiangcloud/linkchain/libs/log"
"github... |
package main
import (
"bufio"
"bytes"
"encoding/json"
"flag"
"fmt"
"go/format"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"sort"
"strings"
"github.com/rhysd/actionlint"
"gopkg.in/yaml.v3"
)
type yamlExt int
const (
yamlExtYAML yamlExt = iota
yamlExtYML
)
func (ext yamlExt) String() string {
if ext ==... |
package chronus
import (
"fmt"
"log"
"os"
"regexp"
"strconv"
"strings"
"time"
"github.com/runeimp/chronus/tzinfo"
)
const (
Version = "0.1.0"
)
const (
// GitDateTime specifies the format used by Git
GitDateTime = "Mon Jan 2 15:04:05 2006 -0700" // Tue Apr 13 17:58:42 2021 -0700
// ISO8601 specifies th... |
// See https://esolangs.org/wiki/Starfish for more info.
package starfish
import (
"fmt"
"io/ioutil"
"math/rand"
"os"
"strings"
"time"
)
// Direction is a value representing the direction a ><> is swimming.
type Direction byte
const (
Right Direction = iota
Down
Left
Up
)
var reader chan byte
// Stack is... |
// Copyright 2013 Ooyala, Inc.
/*
Package statsd provides a Go dogstatsd client. Dogstatsd extends the popular statsd,
adding tags and histograms and pushing upstream to Datadog.
Refer to http://docs.datadoghq.com/guides/dogstatsd/ for information about DogStatsD.
statsd is based on go-statsd-client.
*/
package stat... |
// Go support for Protocol Buffers RPC which compatiable with https://github.com/Baidu-ecom/Jprotobuf-rpc-socket
//
// Copyright 2002-2007 the original author or 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 ... |
/*
Copyright © 2021 VMware
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
distribut... |
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package parser2v2
import "github.com/spdx/gordf/rdfloader/parser"
var (
// NAMESPACES
NS_SPDX = "http://spdx.org/rdf/terms#"
NS_RDFS = "http://www.w3.org/2000/01/rdf-schema#"
NS_RDF = parser.RDFNS
NS_PTR = "http://www.w3.org/2009/pointers#"
NS_DOAP =... |
/*
Copyright (c) 2015-2016 <NAME>
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.
datalog.go: Log stratux data as it is received. Bucket data into timestamp time slots.
*/
package main
import (
"database/sql"
"errors"
"fmt... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// source: trigger.proto
package pb
import (
reflect "reflect"
sync "sync"
_ "github.com/erda-project/erda-proto-go/common/pb"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect ... |
/*
* Copyright 2020 The Goava 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 agre... |
package app
import (
"bytes"
"encoding/json"
"fmt"
"os"
"path"
"sync"
"sync/atomic"
gethcmn "github.com/ethereum/go-ethereum/common"
gethcore "github.com/ethereum/go-ethereum/core"
gethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethere... |
/*
Copyright 2022 The nagare media 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: build/build.proto
package build
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
_ "github.com/wxio/wxb/internal/schemas/semantics"
math "math"
)
// Reference imports to suppre... |
/*
* Cadence - The resource-oriented smart contract programming language
*
* Copyright 2019-2021 <NAME>, 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.... |
// Copyright 2019, 2020 The Agostle Authors. All rights reserved.
// Use of this source code is governed by an Apache 2.0
// license that can be found in the LICENSE file.
package converter
import (
"bytes"
"encoding/hex"
"errors"
"fmt"
"io"
"mime"
"mime/multipart"
"os"
"os/exec"
"path/filepath"
"regexp"
... |
package backend
import (
"fmt"
"github.com/isaacev/Plaid/frontend"
)
// Compile takes an abstract-syntax-tree in the form of a `frontend.Program`
// node (which is assumed to be semantically correct) and returns both a
// `FuncPrototype` for the top-level main function and a slice of all other
// function prototyp... |
//go:build sspl
package mutagen
// mutagenSSPLEnhancementsHeader is an additional message to include in the
// license text if using SSPL-licensed enhancements.
const mutagenSSPLEnhancementsHeader = `
Mutagen SSPL-Licensed Enhancements
Copyright (c) 2020-present Mutagen IO, Inc.
This executable contains Mutagen enh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.