text stringlengths 8.57k 38.1k |
|---|
package models
import "time"
// SgrCodeApplicationLanguage 字典-应用开发语言
type SgrCodeApplicationLanguage struct {
ID uint16 `gorm:"primaryKey;column:id;type:smallint(5) unsigned;not null" json:"id"`
Code string `gorm:"column:code;type:varchar(8)" json:"code"`
Name string `gorm:"column:name;type:varchar(50);not null"... |
// 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 packages
// See doc.go for package documentation and implementation notes.
import (
"context"
"fmt"
"go/ast"
"go/parser"
"go/token"
"go/types"
... |
package session
import (
"crypto/rand"
"encoding/binary"
"github.com/pkg/errors"
"github.com/zhyoulun/kcp-go/src/constant"
"github.com/zhyoulun/kcp-go/src/kcp"
"github.com/zhyoulun/kcp-go/src/util"
"golang.org/x/net/ipv4"
"io"
"net"
"sync"
"sync/atomic"
"time"
)
type (
// UDPSession defines a KCP session... |
package cl
import (
"encoding/json"
"go/ast"
"go/constant"
"go/token"
"go/types"
"log"
"math/big"
"strconv"
"strings"
"github.com/goplus/gox"
cast "github.com/goplus/c2go/clang/ast"
ctypes "github.com/goplus/c2go/clang/types"
)
// -------------------------------------------------------------------------... |
package qrcode
import (
"fmt"
"log"
"math"
"sync"
"github.com/yeqown/reedsolomon"
"github.com/yeqown/reedsolomon/binary"
)
// New generate a QRCode struct to create
func New(text string) (*QRCode, error) {
dst := DefaultEncodingOption()
return build(text, dst)
}
// NewWith generate a QRCode struct with
// s... |
package pipelines
import (
"errors"
"fmt"
"net/url"
"path/filepath"
"sort"
"strconv"
"strings"
"github.com/mitchellh/go-homedir"
"github.com/openshift/odo/pkg/log"
"github.com/spf13/afero"
corev1 "k8s.io/api/core/v1"
v1rbac "k8s.io/api/rbac/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"github.com/redhat-d... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/firestore/admin/v1beta2/index.proto
package admin // import "github.com/sgtsquiggs/go-genproto/googleapis/firestore/admin/v1beta2"
import proto "github.com/sgtsquiggs/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/sgtsquiggs/... |
package goble
import "C"
import (
"bytes"
"encoding/binary"
"fmt"
"log"
"time"
"github.com/raff/goble/xpc"
)
// "github.com/raff/goble/xpc"
//
// BLE support
//
var STATES = []string{"unknown", "resetting", "unsupported", "unauthorized", "poweredOff", "poweredOn"}
type Property int
const (
Broadcast ... |
package main
import (
"fmt"
"log"
"math/rand"
"net/http"
"net/url"
"regexp"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/kodabb/go-mtgban/mtgmatcher"
)
const (
MaxSearchQueryLen = 200
MaxSearchResults = 64
TooLongMessage = "Your query planeswalked away, try a shorter one"
TooManyMessage ... |
// Copyright 2016-2019 The Libsacloud 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... |
package raft
//
// this is an outline of the API that raft must expose to
// the service (or tester). see comments below for
// each of these functions for more details.
//
// rf = Make(...)
// create a new Raft server.
// rf.Start(command interface{}) (index, term, isleader)
// start agreement on a new log entry
... |
package raknet
import (
"bytes"
"context"
"fmt"
"github.com/firyuen/go-raknet/internal/message"
"net"
"strings"
"sync"
"sync/atomic"
"time"
)
const (
// currentProtocol is the current RakNet protocol version. This is Minecraft specific.
currentProtocol byte = 6
maxMTUSize = 1492
maxWindowSize = 1024
... |
// Copyright 2018 The Chubao 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 federation
import (
"bytes"
"context"
"fmt"
"sort"
"github.com/vektah/gqlparser/v2/ast"
"github.com/vektah/gqlparser/v2/formatter"
"github.com/vektah/gqlparser/v2/gqlerror"
"github.com/vektah/gqlparser/v2/validator"
"github.com/vvakame/fedeway/internal/graphql"
)
func emptyQueryDefinition() *TypeDef... |
// Code generated by "go generate robpike.io/ivy/parse"; DO NOT EDIT.
package parse
var helpLines = []string{
"Ivy is an interpreter for an APL-like language. It is a plaything and a work in",
"progress.",
"",
"Unlike APL, the input is ASCII and the results are exact (but see",
"the next paragraph). It uses exa... |
// Package client provies a client for interacting with microcontrollers
// using the Firmata protocol https://github.com/firmata/protocol.
package board
import (
"errors"
"fmt"
"io"
"math"
"time"
"github.com/sparkybots/gobot"
)
// Pin Modes
const (
Input = 0x00
Output = 0x01
Analog = 0x02
Pwm = 0x03
... |
package instrumentation
import (
"fmt"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"time"
log "github.com/sirupsen/logrus"
app "github.com/appdynamics/cluster-agent/appd"
appsv1 "k8s.io/api/apps/v1"
m "github.com/appdynamics/cluster-agent/models"
"github.com/appdynamics/cluster-agent/utils"
"k8... |
// Package iscsinl acts as an initiator for bootstrapping an iscsi connection
// Partial implementation of RFC3720 login and NETLINK_ISCSI, just enough to
// get a connection going.
package iscsinl
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os"
"path/filepath"
"strconv"
... |
// Package bawt is a ChatOps framework for Slack
package bawt
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"reflect"
"strconv"
"strings"
"sync"
"time"
"github.com/boltdb/bolt"
"github.com/cskr/pubsub"
"github.com/slack-go/slack"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
... |
// Copyright 2021 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/unifiedfleet/api/v1/... |
/*
* Copyright (C) 2020 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package main
import (
"context"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"flag"
"fmt"
"intel/isecl/lib/common/v3/middleware"
"intel/isecl/shub/resource/scheduler"
"io"
"io/ioutil"
stdlog "log"
"net/http"
"os"
"os... |
package frontend
import (
"github.com/XrXr/alang/ir"
"github.com/XrXr/alang/parsing"
"sort"
"strconv"
)
const undefinedMessage = "Undefined name"
func GenForProc(labelGen *LabelIdGen, order *ProcWorkOrder) {
var gen procGen
gen.rootScope = &scope{
gen: &gen,
varTable: make(map[string]int),
par... |
package ipmi
// Command is the field in an IPMI message
type Command struct {
ID uint8
NetFn NetFn
Name string
}
type Request interface {
// Pack encodes the object to data bytes
Pack() []byte
// Command return the IPMI command info (NetFn/Cmd).
// All IPMI specification specified commands are already pred... |
package transactions
import (
"bytes"
"fmt"
"io"
"math/big"
"github.com/aeternity/aepp-sdk-go/v8/binary"
"github.com/aeternity/aepp-sdk-go/v8/config"
"github.com/aeternity/aepp-sdk-go/v8/naet"
"github.com/aeternity/aepp-sdk-go/v8/account"
"github.com/aeternity/aepp-sdk-go/v8/utils"
rlp "github.com/aeternit... |
//
//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 agr... |
// Copyright 2014 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.
// Implementation of runtime/debug.WriteHeapDump. Writes all
// objects in the heap plus additional info (roots, threads,
// finalizers, etc.) to a file.
// Th... |
/*
Copyright 2017 The Nuclio 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, soft... |
package hitbtc
import (
"time"
"github.com/thrasher-corp/gocryptotrader/currency"
)
// Ticker holds ticker information
type Ticker struct {
Last float64
Ask float64
Bid float64
Timestamp time.Time
Volume float64
VolumeQuote float64
Symbol string
High float64
Low ... |
// Package model contains data required to show and use terminal user interface.
package model
import (
"fmt"
"github.com/croz-ltd/dpcmder/utils/logging"
"reflect"
"sort"
"strings"
)
// Side type is used for Left/Right constants.
type Side int
// Left and Right constants for addressing side in slices.
const (
... |
// Copyright 2019 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 randomizer
import (
"container/list"
"fmt"
"math/rand"
"reflect"
"sort"
"strings"
)
// give up completely if routing fails too many times
const maxTries = 200
// names of portals from the subrosia side.
var subrosianPortalNames = map[string]string{
"eastern suburbs": "volcanoes east",
"spool swa... |
package endpoint
import (
"github.com/a10networks/terraform-provider-thunder/thunder/axapi"
"github.com/clarketm/json"
"strconv"
)
//based on ACOS 5_2_1-P4_90
type InterfaceVe struct {
Inst struct {
AccessList InterfaceVeAccessList `json:"access-list"`
Action string ... |
// 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... |
/*
Copyright 2018 Turbine Labs, 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, softw... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/resources/customer.proto
package resources // import "google.golang.org/genproto/googleapis/ads/googleads/v0/resources"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import wrappers "github.com/go... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: crypto/keyspb/keyspb.proto
package keyspb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This... |
// Copyright 2011 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 main
import (
"bytes"
"errors"
"fmt"
"go/ast"
"go/build"
"go/parser"
"go/scanner"
"go/token"
"io/ioutil"
"log"
"math/rand"
"os"
"path/filep... |
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package para
import (
"bytes"
"sort"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/33cn/chain33/common"
"github.com/33cn/chain33/common/crypto"
"gi... |
// Copyright 2020 The gRPC 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 t... |
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright (C) 2021, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
package proxy
// NOTE: Do not add any constants or other variables to this file. It is used as text input
// to a shell script that generates the verrazzano-ap... |
// Copyright 2018 The GoPacket Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree.
package layers
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"github.com/google/gopacket"
)
... |
package main
import (
"bytes"
"encoding/json"
"flag"
"net/http"
"net"
"time"
"os"
"bufio"
"strings"
"io"
"strconv"
"github.com/alexcesaro/log/golog"
"github.com/alexcesaro/log"
"fmt"
"io/ioutil"
"crypto/tls"
"net/url"
"encoding/base64"
"encoding/xml"
"runtime"
)
var TOTAL_TIME = 60
var configParam... |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/extensions/filters/http/grpc_json_transcoder/v3alpha/transcoder.proto
package envoy_extensions_filters_http_grpc_json_transcoder_v3alpha
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/val... |
package grammar
import (
"fmt"
"io/ioutil"
"log"
"strconv"
yaml "gopkg.in/yaml.v2"
)
// Build deals with producing the symbols
// and the parse table for the provided grammar
// file in the specified file that will be a part of the package
// specified.
func Build(grammarFile string, format string, outputFile s... |
// // Copyright (c) 2020 Shorted Ltd Pty.
// //
// // 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, mo... |
//
// 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... |
// Copyright 2019 <NAME>. All rights reserved.
package analytics
import (
"fmt"
"log"
"math"
"sort"
"strconv"
"strings"
"time"
)
var mb = (1024.0 * 1024)
// TimeSeriesDoc -
type TimeSeriesDoc struct {
Target string `json:"target"`
DataPoints [][]float64 `json:"datapoints"`
}
// RangeDoc -
type Ra... |
// Copyright 2017 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.
// Releasebot manages the process of defining, packaging, and publishing Go releases.
// It is a work in progress; right now it only handles beta and minor (poi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.7.1
// source: natsrpc.proto
package nppbnatsrpc
import (
proto "github.com/golang/protobuf/proto"
md "github.com/huangjunwen/nproto/v2/pb/md"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
... |
// 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
ty... |
// 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 pcap
const (
HeaderSize = 24 // Header size.
RecordHeaderSize = 16 // Record header size.
Magic = 0xa1b2c3d4 // Magic numbe... |
// Copyright 2018, OpenCensus 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 chat
import (
"contexts/ctx"
"contexts/web"
mis "github.com/shylinux/toolkits"
"fmt"
"net/http"
"os"
"path"
"strings"
"toolkit"
)
func check(m *ctx.Message, arg []string) ([]string, string, bool) {
if !m.Options("sessid") || !m.Options("username") {
return nil, "", false
}
rid := m.Option("riv... |
package main
import (
"encoding/json"
"encoding/xml"
"errors"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"path"
"strconv"
"strings"
"time"
"./json_definitions"
"./xml_definitions"
"github.com/hashicorp/go-getter"
)
func downloadXML(url string) error {
// Build the file path.
pwd, _ := os.Getwd()
baseP... |
// Copyright 2016 The Periph Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
package allwinner
const (
clockSPIEnable clockSPI = 1 << 31 // SCLK_GATING
// 30:26 reserved
clockSPIOSC24M clockSPI = 0 << 24 // CLK_SRC... |
package domain
import (
"context"
"net/http"
"net/url"
"strconv"
"strings"
"time"
"github.com/json-iterator/go"
eh "github.com/looplab/eventhorizon"
log "github.com/superchalupa/sailfish/src/log"
"regexp"
)
// CmdIDSetter interface is for commands that can take a given command id
type CmdIDSetter interfa... |
package bitflow
import (
"errors"
"flag"
"fmt"
"net"
"net/url"
"os"
"runtime"
"strconv"
"strings"
"time"
"github.com/antongulenko/golib"
log "github.com/sirupsen/logrus"
)
type MarshallingFormat string
type EndpointType string
const (
UndefinedEndpoint = EndpointType("")
TcpEndpoint = EndpointTy... |
package cobra
import (
"fmt"
"os"
"strings"
"github.com/spf13/pflag"
)
const (
// ShellCompRequestCmd is the name of the hidden command that is used to request
// completion results from the program. It is used by the shell completion scripts.
ShellCompRequestCmd = "__complete"
// ShellCompNoDescRequestCmd ... |
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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 mongo
import (
"encoding/json"
"io/iout... |
// Copyright 2014 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... |
// Copyright 2017-2018 New Vector Ltd
// Copyright 2019-2020 The Matrix.org Foundation C.I.C.
//
// 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/LICE... |
// Copyright 2021 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 store
import (
"context"
"crypto/tls"
"errors"
"fmt"
"github.com/coreos/etcd/clientv3"
jwt "github.com/dgrijalva/jwt-go"
corev2 "github.com/sensu/sensu-go/api/core/v2"
"github.com/sensu/sensu-go/types"
)
// ErrAlreadyExists is returned when an object already exists
type ErrAlreadyExists struct {
Key... |
package steps
import (
"context"
"fmt"
"github.com/openshift/ci-tools/pkg/steps/utils"
"io"
"log"
"os"
"sort"
"strings"
"time"
"k8s.io/test-infra/prow/clonerefs"
"k8s.io/test-infra/prow/pod-utils/decorate"
coreapi "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/r... |
package relay
import (
"context"
"crypto/tls"
"errors"
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"os"
"strings"
"sync"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
redigo "github.com/garyburd/redigo/redis"
"github.com/gorilla/mux"
"github.com/gregjones/httpcache"... |
package shuffle
import (
"container/heap"
"context"
"fmt"
"io"
"sort"
"testing"
"time"
"github.com/estuary/flow/go/flow"
"github.com/estuary/flow/go/flow/ops"
"github.com/estuary/flow/go/labels"
pf "github.com/estuary/flow/go/protocols/flow"
"github.com/stretchr/testify/require"
"go.etcd.io/etcd/api/v3/m... |
/*
* 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 obta... |
package registration
import (
"context"
"crypto/x509"
"fmt"
"sync"
"sync/atomic"
"github.com/cenkalti/backoff/v4"
"github.com/pkg/errors"
flag "github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/oasislabs/oasis-core/go/common"
"github.com/oasislabs/oasis-core/go/common/crypto/signature"
fileSig... |
package parser
import (
"fmt"
"image/color"
"math"
"regexp"
"strconv"
"strings"
"github.com/benoitkugler/webrender/utils"
)
var (
// ColorKeywords maps color names to RGBA values
ColorKeywords = map[string]Color{}
hashRegexps = []hashRegexp{
{multiplier: 2., regexp: regexp.MustCompile("(?i)^([\\da-f])([... |
// NXP Ultra Secured Digital Host Controller (uSDHC) driver
// https://github.com/f-secure-foundry/tamago
//
// IP: https://www.mobiveil.com/esdhc/
//
// Copyright (c) F-Secure Corporation
// https://foundry.f-secure.com
//
// Use of this source code is governed by the license
// that can be found in the LICENSE file.
... |
package main
import (
"crypto/md5"
b64 "encoding/base64"
"encoding/hex"
"encoding/json"
"fmt"
"log"
"net"
"os"
"strconv"
"strings"
"sync"
"time"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"github.com/vishvananda/netlink"
"golang.org/x/sys/unix"... |
// This file and its contents are licensed under the Apache License 2.0.
// Please see the included NOTICE for copyright information and
// LICENSE for a copy of the license.
package main
import (
"context"
"flag"
"fmt"
"os"
"regexp"
"strconv"
"strings"
"time"
"github.com/inhies/go-bytesize"
"github.com/pr... |
// Copyright 2016 The Gofem 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 inp implements the input data read from a (.sim) JSON file
package inp
import (
"encoding/json"
goio "io"
"math"
"os"
"path/filepath"
"git... |
// Copyright © 2013-2016 Galvanized Logic Inc.
// Use is governed by a BSD-style license found in the LICENSE file.
package main
import (
"strconv"
"github.com/gazed/vu"
"github.com/gazed/vu/math/lin"
)
// hud is the 2D controller for all parts of the games heads-up-display (HUD).
type hud struct {
ui *vu.Ent... |
/*
* Copyright 2017-2018 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 agree... |
// components contain layout code that are shared by multiple pages but aren't widely used enough to be defined as
// widgets
package components
import (
"fmt"
"image/color"
"os/exec"
"runtime"
"strconv"
"strings"
"time"
"gioui.org/layout"
"gioui.org/unit"
"github.com/ararog/timeago"
"github.com/decred/d... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.6.1
// source: yandex/cloud/compute/v1/placement_group.proto
package compute
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
protoreflec... |
/*
Copyright 2021.
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
distributed un... |
package main
import (
"context"
"encoding/json"
"fmt"
"net/http"
"os"
"os/signal"
"syscall"
"time"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/go-cleanhttp"
"github.com/sirupsen/logrus"
"gopkg.in/alecthomas/kingpin.v2"
klabels "k8s.io/kubernetes/pkg/labels"
"github.com/square/p2/pkg/alertin... |
/*
************************ MAYMAY-BOT ************************
************************ By zduford ************************
*********** http://github.com/zduford/maymay-bot ***********
*********** Based on hammerandchisel's airhornbot **********
************************** ENJOY ***************************
*/
pa... |
package renter
// The download code follows a hopefully clean/intuitive flow for getting super
// high and computationally efficient parallelism on downloads. When a download
// is requested, it gets split into its respective chunks (which are downloaded
// individually) and then put into the download heap. The primar... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
package clouderrorreporting
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
timestamp "github.com/catper/protobuf/ptypes/timestamp"
_ "go... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package subtle_test
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"fmt"
"testing"
josecipher "github.com/square/go-jose/v3/cipher"
"github.com/stretchr/testify/require"
"github.com/hyperledger/aries-framewo... |
package amazon
import (
"net/http"
"net/http/httptest"
"testing"
"time"
"github.com/stretchr/testify/require"
)
func TestNewWishlist(t *testing.T) {
id := "123abc"
ts := newTestServer(t, id)
defer ts.Close()
wishlist, err := NewWishlist(ts.URL + "/hz/wishlist/ls/123abc")
require.NoError(t, err)
require.... |
// Package telegram contains everything related to the Telegram part of IRChuu.
package telegram
import (
"fmt"
"html"
"io"
"log"
"net/http"
"os"
"path"
"regexp"
"strconv"
"strings"
"sync"
"time"
"unicode/utf16"
"github.com/astravexton/irchuu/config"
irchuubase "github.com/astravexton/irchuu/db"
"gith... |
package models
import (
"encoding/json"
"fmt"
"github.com/APTrust/exchange/constants"
"strings"
"time"
)
/*
GenericFile contains information about a file that makes up
part (or all) of an IntellectualObject.
IntellectualObject is the object to which the file belongs.
Format is typically a mime-type, such as "a... |
package sqac
import (
"fmt"
"log"
"reflect"
"strconv"
"strings"
"github.com/1414C/sqac/common"
)
// MySQLFlavor is a MySQL-specific implementation.
// Methods defined in the PublicDB interface of struct-type
// BaseFlavor are called by default for MySQLFlavor. If
// the method as it exists in the BaseFlavor im... |
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
package redisc
import (
"strings"
"sync"
"testing"
"time"
"github.com/PuerkitoBio/redisc/redistest"
"github.com/PuerkitoBio/redisc/redistest/resp"
"github.com/garyburd/redigo/redis"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestClusterRefreshNormalServer(t *testing.T)... |
// Copyright 2018 The Nakama Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: GetUserInfo.proto
/*
Package GetUserInfo is a generated protocol buffer package.
It is generated from these files:
GetUserInfo.proto
It has these top-level messages:
C2S
S2C
Request
Response
*/
package GetUserInfo
import proto "github.com/golang/proto... |
/* Copyright 2018 The Bazel 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 agreed ... |
/*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright 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.
// Identify mismatches between assembly files and Go func declarations.
package main
import (
"bytes"
"fmt"
"go/ast"
"go/build"
"go/token"
"go/types"
"... |
/*
Copyright 2019 The Tekton 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, softw... |
package collectors
import (
"fmt"
"math"
"regexp"
"strings"
"time"
"bosun.org/_third_party/github.com/StackExchange/wmi"
"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/slog"
)
func init() {
collectors = append(collectors, &IntervalCollector{F: c_network_windows, init: winNetworkInit})
c_winnetteam ... |
package v1
import (
"encoding/json"
"fmt"
"strconv"
"strings"
"github.com/go-logr/logr"
v "github.com/hashicorp/go-version"
"github.com/percona/percona-backup-mongodb/pbm"
"github.com/pkg/errors"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.