text stringlengths 5.51k 28.1k |
|---|
// Copyright 2017 Google, Inc. 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 (
"encoding/binary"
"errors"
"external/google/gopacket"
)
// BFD Control Packet Format
// -----... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2018 Datadog, Inc.
// +build docker
package containers
import (
"fmt"
"math"
"sort"
"strings"
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.14.0
// source: loop.proto
package proto
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.gol... |
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
// Copyright ©2016 The Gonum 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 moreland
import (
"fmt"
"image/color"
"math"
"github.com/hneemann/nplot/palette"
)
// luminance is a color palette that interpolates
// betwe... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.1
// source: envoy/extensions/filters/http/tap/v3/tap.proto
package envoy_extensions_filters_http_tap_v3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
v3 "github.com/envoyproxy/go-control-plane/env... |
// Copyright 2018 The Kubeflow 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 agr... |
/*
Copyright 2019 The Vitess 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... |
// Copyright 2021 Matrix Origin
//
// 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 create ...
Copyright © 2020 The k3d Author(s)
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, p... |
package kubernetes
import (
"fmt"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)
var iter8typeMeta = meta_v1.TypeMeta{
Kind: PluralType[iter8experiments],
APIVersion: ApiIter8Version,
}
// https://github.com/iter8-tools/docs/blob/master/doc_files/iter8_crd.md
/*
spec:
... |
// Code generated by smithy-go-codegen DO NOT EDIT.
package s3
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
s3cust "github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations"
"github.com/aws/aws-sdk-go-v2/service/s3/types... |
// Copyright 2015 Light Code Labs, 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 agre... |
//
// 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 main
import (
"context"
"errors"
"fmt"
"os"
"os/signal"
"regexp"
"strconv"
"time"
"github.com/AlecAivazis/survey/v2/terminal"
"github.com/jojomi/team/persistance"
"github.com/PaesslerAG/gval"
"github.com/google/uuid"
"github.com/iancoleman/strcase"
"github.com/jojomi/go-script/v2"
"github.com/... |
package docker
import (
"archive/tar"
"context"
"fmt"
"io"
"io/ioutil"
"math"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/docker/go-connections/nat"
"github.com/docker/go-units"
"github.com/pkg/errors"
corecluster "github.com/projecteru2/core/cluster"
"github.com/projecteru2/core/log"... |
package main
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"image"
"image/color"
"image/jpeg"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
"time"
"github.com/fogleman/gg"
"github.com/golang/freetype/truetype"
"github.com/nfnt/resize"
"github.com/wcharczuk/go-chart/v2"
"github.com/wcharczuk... |
package bwtestlib
import (
"bufio"
"bytes"
"crypto/aes"
"encoding/binary"
"encoding/gob"
"fmt"
"math"
"os"
"runtime/debug"
"sort"
"strconv"
"sync"
"time"
log "github.com/inconshreveable/log15"
"github.com/scionproto/scion/go/lib/common"
"github.com/scionproto/scion/go/lib/sciond"
"github.com/scionpr... |
// Copyright 2020 Anapaya Systems
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
package sharder
import (
"context"
"fmt"
"time"
"0chain.net/core/cache"
"0chain.net/core/ememorystore"
"0chain.net/chaincore/block"
"0chain.net/chaincore/chain"
"0chain.net/chaincore/round"
"0chain.net/chaincore/state"
"0chain.net/core/common"
"0chain.net/core/datastore"
"0chain.net/sharder/blockstore"
... |
// +build extensive_tests
// only built if manually enforced (via the build tag above)
package proto3
import (
"bufio"
"bytes"
"encoding/binary"
"math"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: internal/users/keyboard/callback_data/datatype.proto
package callback_data
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... |
// 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... |
package getpan
import (
"bytes"
"errors"
"fmt"
"github.com/companieshouse/gopan/gopan"
"github.com/ian-kent/go-log/log"
"gopkg.in/yaml.v1"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"strings"
"sync"
"time"
)
type DependencyList struct {
Dependencies []*Dependency
Par... |
// Copyright (c) 2015-2021 MinIO, Inc.
//
// This file is part of MinIO Object Storage stack
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (... |
// Code generated by transpiler. DO NOT EDIT.
/**
* Go Video Downloader
*
* Copyright 2019 Tenta, 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.or... |
//
// 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: connectionless_netmessages.proto
package dota
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
// ... |
package sync
import (
"context"
"fmt"
"time"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/zarbchain/zarb-go/block"
"github.com/zarbchain/zarb-go/consensus"
"github.com/zarbchain/zarb-go/crypto"
"github.com/zarbchain/zarb-go/logger"
"github.com/zarbchain/zarb-go/network"
"github.com/zarbchain/zarb-go/... |
// Copyright Suneido Software Corp. All rights reserved.
// Governed by the MIT license found in the LICENSE file.
package runtime
import (
"testing"
"github.com/apmckinlay/gsuneido/util/assert"
)
func TestOne(t *testing.T) {
assert := assert.T(t).This
test := func(year int, month int, day int,
hour int, minu... |
/*
Copyright 2021 The Vitess 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... |
/*
Copyright 2018 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 2018 The OpenEBS 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, softwa... |
package set
import (
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/spf13/cobra"
"k8s.io/klog/v2"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
utiler... |
/*
* Cadence - The resource-oriented smart contract programming language
*
* Copyright 2019-2020 <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.... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.12.3
// source: internal/sync/raftpb/rpc.proto
package raftpb
import (
serverpb "github.com/flipkart-incubator/dkv/pkg/serverpb"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "goo... |
package cpu
import "fmt"
// addressing modes
const (
_ = iota
absolute
absoluteX
absoluteY
accumulator
immediate
implied
indirect
indirectX
indirectY
relative
zeropage
zeropageX
zeropageY
)
var addressingNames = [...]string{
"",
"absolute",
"absoluteX",
"absoluteY",
"accumulator",
"immediate",
"... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v0/common/user_lists.proto
package common // import "google.golang.org/genproto/googleapis/ads/googleads/v0/common"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import wrappers "github.com/golang/pr... |
/*
Copyright AppsCode Inc. and Contributors
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 © 2020 The PES Open Source Team <EMAIL>
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 compiler
import (
"bufio"
"bytes"
"fmt"
"io"
"os"
"runtime"
"strconv"
"strings"
"time"
"github.com/gijit/gi/pkg/front"
"github.com/gijit/gi/pkg/verb"
golua "github.com/glycerine/golua/lua"
)
var p = verb.P
// Arrange that main.main runs on main thread.
// We want LuaJIT to always be on the one
/... |
package routing
import (
"context"
"fmt"
"net/http"
"reflect"
"runtime"
"strconv"
"strings"
)
type paramsKey int
var ctxKey paramsKey
var handlers = make(map[string]http.HandlerFunc)
// AddHandler adds an http.HandlerFunc into a list of handlers to be retrieved
// by name (canonical or alias) on runtime
fun... |
package main
import (
"fmt"
"log"
"net/url"
"os"
"strings"
"time"
"strconv"
"github.com/DataDog/datadog-go/statsd"
"github.com/Shopify/sarama"
docopt "github.com/docopt/docopt-go"
influxdb "github.com/influxdata/influxdb/client/v2"
"github.com/jurriaan/kafkatools"
"github.com/olekukonko/tablewriter"
)
... |
// Package types provides built-in types specified in
// YANG RFC 6020 and types used in YDK Go APIs.
//
// YANG Development Kit Copyright 2017 Cisco Systems. All rights reserved.
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: activity.proto
/*
Package cross is a generated protocol buffer package.
It is generated from these files:
activity.proto
alliance.proto
arena.proto
arenapvp.proto
battle.proto
buff.proto
chuangshi.proto
collect.proto
common.proto
dense_wat.proto
d... |
/*
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, ... |
package common
import (
"crypto/x509"
"errors"
"fmt"
"net"
"github.com/couchbase/cbauth/metakv"
"github.com/couchbase/cbauth/service"
couchbase "github.com/couchbase/eventing/dcp"
"github.com/couchbase/gocb/v2"
)
var BucketNotWatched = errors.New("Bucket not being watched")
type DcpStreamBoundary string
co... |
// Copyright 2019 <NAME>. All rights reserved. Use of this source
// code is governed by the MIT license that can be found in the LICENSE
// file.
// Package padding provides a widget that pads an inner widget on the sides, above and below
package padding
import (
"errors"
"fmt"
"github.com/gcla/gowid"
"github.... |
package radix
import (
"fmt"
"runtime"
"sync"
"sync/atomic"
)
const (
replaceEmptyRootWithLeaf uint32 = iota
replaceLeafRootWithNode
rootLeafUpdate
nodePrefixMiss
nodeLeafInsert
nodeLeafInsert256
nodeLeafUpdate
nodeLeafUpdate256
)
var debugOperationName = map[uint32]string{
replaceEmptyRootWithLeaf: "R... |
// Copyright 2022 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
package rangekey
import (
"bytes"
"fmt"
"github.com/cockroachdb/pebble/internal/base"
"github.com/cockroachdb/pebble/internal/invariant... |
/*
* Copyright (C) 2020 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package resource
import (
"crypto/x509"
"encoding/base64"
"encoding/json"
"encoding/pem"
"fmt"
commLogMsg "intel/isecl/lib/common/v4/log/message"
"intel/isecl/sqvs/v4/config"
"intel/isecl/sqvs/v4/constants"
"intel/isecl... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: lorawan-stack/api/enums.proto
package ttnpb
import (
fmt "fmt"
math "math"
strconv "strconv"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
)
// Reference imports to sup... |
package ec2
//-----------------------------------------------------------------------------
// Package factored import statement:
//-----------------------------------------------------------------------------
import (
"github.com/katosys/kato/pkg/cli"
)
//-----------------------------------------------------------... |
package logstf
import (
"github.com/leighmacdonald/steamid"
"github.com/stretchr/testify/assert"
"log"
"math"
"path"
"testing"
)
// getExamplePath looks relative to the current and parent directories for a
// matching file in the example_data folder. It just lets us run tests from project root or
// package roo... |
package main
import (
"github.com/go-telegram-bot-api/telegram-bot-api"
"github.com/robfig/cron"
"goreviewbot/code"
"goreviewbot/msgc"
"goreviewbot/rss"
"log"
"math/rand"
"regexp"
"strconv"
"strings"
"time"
"unicode/utf8"
)
//4:抽取出常用的两个对象
type TeleBot struct {
botAPI *tgbotapi.BotAPI
updates tgbotapi.U... |
package networkwatcher
// 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
//... |
package rapica
import (
"fmt"
"strings"
"time"
"github.com/gnue/felica-look/felica"
)
/*
#include "rapica_get.h"
*/
import "C"
var moduleName = "RapiCa"
func init() {
felica.Register(moduleName, new(felica_module))
}
type felica_module struct {
}
// RapiCa/鹿児島市交通局
type RapiCa struct {
Info RapicaInfo ... |
package math3d
import (
"fmt"
"math"
)
type Matrix44 struct {
m11 float64 // 0
m12 float64 // 1
m13 float64 // 2
m14 float64 // 3
m21 float64 // 4
m22 float64 // 5
m23 float64 // 6
m24 float64 // 7
m31 float64 // 8
m32 float64 // 9
m33 float64 // 10
m34 float64 // 11
m41 float64 // 12
m42 float64 // 1... |
// Copyright 2018 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package db
import "time"
// Enum for different progress states of an application
const (
Rejected = iota
InSubmission
InProcess
Confirmed
Running
CostsPending
CostsInProcess
Done
)
// Enum for different kinds of applications
const (
SchoolEvent = iota
Training
Seminar
Conference
Course
Miscellaneous
O... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.15.5
// source: protos/domain/job.grpc.proto
package domain
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "re... |
package websocket // import "nhooyr.io/websocket"
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"net/http"
"reflect"
"runtime"
"strings"
"sync"
"syscall/js"
"nhooyr.io/websocket/internal/bpool"
"nhooyr.io/websocket/internal/wsjs"
"nhooyr.io/websocket/internal/xsync"
)
// Conn provides a wrapper around... |
package dex
import (
"encoding/hex"
"encoding/json"
"fmt"
"io/ioutil"
"math/big"
"testing"
"github.com/lianxiangcloud/linkchain/libs/common"
"github.com/lianxiangcloud/linkchain/libs/crypto"
"github.com/lianxiangcloud/linkchain/libs/crypto/secp256k1"
"github.com/lianxiangcloud/linkchain/libs/db"
"github.co... |
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
"time"
"github.com/toebes/go-client/onshape"
)
// fileInfo is what is passed from the fileThread to the outputThread for writing
type fileInfo struct {
Path string
OnshapeURL string
Name uniqueString
SKU uniqueString... |
// Go binding for nanomsg
package nanomsg
// #include <nanomsg/nn.h>
// #include <stdlib.h>
// #cgo pkg-config: libnanomsg
import "C"
import (
"errors"
"reflect"
"runtime"
"syscall"
"time"
"unsafe"
)
// C.NN_MSG is defined as size_t(-1), which makes cgo produce an error.
const nn_msg = ^C.size_t(0)
// SP add... |
package types
import (
"bytes"
"encoding/base64"
"encoding/gob"
"encoding/json"
"fmt"
"html/template"
// "regexp"
"strings"
"time"
"github.com/skypies/geo"
fdb "github.com/skypies/flightdb"
"github.com/skypies/complaints/config"
"github.com/skypies/complaints/flightid"
"golang.org/x/net/context"
"go... |
// Copyright 2009 The Go Authors.
// 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 sortutil sorts and searches common slice types, and offers
// helper functions for sorting floats with radixsort.
packa... |
package ice
import (
"bytes"
"crypto/hmac"
"crypto/rand"
"crypto/sha1"
"encoding/binary"
"encoding/hex"
"fmt"
"hash/crc32"
"net"
"strings"
)
// STUN (Session Traversal Utilities for NAT)
// RFC 5389 (https://tools.ietf.org/html/rfc5389).
type stunMessage struct {
// Message length in bytes, NOT including ... |
package obfs
import (
"bytes"
"encoding/binary"
"math/rand"
"strings"
"time"
"github.com/LincolnYe/avege/common"
"github.com/LincolnYe/avege/outbound/ss/ssr"
)
func init() {
register("tls1.2_ticket_auth", newTLS12TicketAuth)
register("tls1.2_ticket_fastauth", newTLS12TicketFastAuth)
}
type tlsAuthData stru... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: yandex/cloud/iam/v1/role_service.proto
package iam
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google... |
// 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 a... |
package main
import (
"bytes"
"context"
"crypto/x509"
"flag"
"fmt"
"html/template"
"io/ioutil"
netmail "net/mail"
"os"
"strings"
"time"
"github.com/letsencrypt/boulder/cmd"
"github.com/letsencrypt/boulder/core"
corepb "github.com/letsencrypt/boulder/core/proto"
"github.com/letsencrypt/boulder/db"
bgrp... |
package main
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"github.com/0leksandr/my.go"
"io/ioutil"
"os"
"os/exec"
"reflect"
"regexp"
"strings"
"sync"
"testing"
"time"
)
// TODO: test modifying root dir: https://github.com/0leksandr/sshmirror/issues/4
// TODO: test tabs, zero-symbols and others in fil... |
// Code generated by entc, DO NOT EDIT.
package ent
import (
"fmt"
"hope/apps/novel/internal/data/ent/novel"
"hope/apps/novel/internal/data/ent/novelclassify"
"strings"
"time"
"entgo.io/ent/dialect/sql"
)
// Novel is the model entity for the Novel schema.
type Novel struct {
config `json:"-"`
// ID of the e... |
package goprotoc
import (
"archive/zip"
"bytes"
"context"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"sort"
"strings"
"unicode"
"github.com/golang/protobuf/proto"
"github.com/jhump/protoreflect/desc"
"github.com/jhump/goprotoc/plugins"
)
var protocVersionStruct = plugins.ProtocVe... |
package rds
// AvailabilityZone contains Availability Zone information
// See http://goo.gl/GWF4zF for more details.
type AvailabilityZone struct {
Name string `xml:"Name"`
ProvisionedIopsCapable bool `xml:"ProvisionedIopsCapable"`
}
// CharacterSet represents a character set used by a Database ... |
// Copyright (c) 2020 <NAME>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
package davisweather
import (
"bytes"
"compress/zlib"
"crypto/md5"
"encoding/hex"
"encoding/json"
"errors"
"io/ioutil"
"log"
"sync"
"time"
"github.com/the... |
package cl
/*
#cgo CFLAGS: -I CL -w
#cgo !darwin LDFLAGS: -lOpenCL
#cgo darwin LDFLAGS: -framework OpenCL
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
*/
import "C"
import (
"errors"
"fmt"
"reflect"
"strings"
"unsafe"
)
var (
// ErrUnknown is generally an unexpected result from a... |
package cntest
import (
"bufio"
"context"
"database/sql"
"errors"
"fmt"
"io"
"net"
"os"
"path/filepath"
"regexp"
"strings"
"time"
"github.com/cybernostics/cntest/random"
"github.com/cybernostics/cntest/wait"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.c... |
package focus
import (
"bufio"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"os/signal"
"path/filepath"
"strings"
"syscall"
"time"
"github.com/adrg/xdg"
"github.com/faiface/beep"
"github.com/faiface/beep/flac"
"github.com/faiface/beep/mp3"
"github.com/faiface/beep/speaker"
"github.com/faiface/beep/vorbis... |
//line parse.y:3
package json
import __yyfmt__ "fmt"
//line parse.y:5
import (
"fmt"
"strconv"
"github.com/hashicorp/hcl/hcl"
)
//line parse.y:15
type jsonSymType struct {
yys int
num int
str string
obj *hcl.Object
objlist []*hcl.Object
}
const NUMBER = 57346
const COLON = 57347
const COMMA... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: useragent.proto
package web
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.... |
package katyusha
import (
"bytes"
"encoding/base64"
"encoding/csv"
"fmt"
"io"
"os"
"regexp"
"sort"
"strings"
"sync"
"text/template"
"time"
"github.com/mattn/go-isatty"
"github.com/mgutz/ansi"
"github.com/seveas/readline"
"github.com/sirupsen/logrus"
"golang.org/x/crypto/ssh"
"gopkg.in/yaml.v2"
)
ty... |
package config
import (
"encoding/base64"
"fmt"
"io/ioutil"
"os"
"os/user"
"path/filepath"
"strings"
"time"
"gopkg.in/yaml.v3"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
k8sYaml "sigs.k8s.io/yaml"
)
// KubernetesConfig is the base configuration structure for Kubernetes
type Kub... |
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
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: riff.proto
package streaming
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise... |
package main
import (
"context"
"errors"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"path/filepath"
"strings"
"syscall"
"time"
speech "cloud.google.com/go/speech/apiv1"
"github.com/go-playground/validator"
"github.com/google/uuid"
"github.com/julienschmidt/httprouter"
"github.com/spf13/viper"
speechpb "... |
package webapi
import (
"bytes"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"regexp"
"strconv"
"strings"
"github.com/denisskin/bin"
"github.com/likecoin-pro/likecoin/assets"
"github.com/likecoin-pro/likecoin/blockchain"
"github.com/likecoin-pro/likecoin/blockchain/db"
"github.com/like... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.24.0-devel
// protoc v3.7.1
// source: blog/app/proto/data/error.proto
package data
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.or... |
package tfe
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"math/rand"
"net/http"
"net/url"
"os"
"reflect"
"strconv"
"strings"
"time"
"github.com/google/go-querystring/query"
"github.com/hashicorp/go-cleanhttp"
retryablehttp "github.com/hashicorp/go-retryablehttp"
"github.com/svanhar... |
package types
import (
"bytes"
"fmt"
"time"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto"
tmtypes "github.com/tendermint/tendermint/types"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
)
// Validator defines the total amount of b... |
// metar is a go program to fetch the aviation METAR's and TAF's for a given list of airports in console (terminal) mode.
// Usage:
// Retrieve messages for a list of stations (IATA or ICAO codes):
// $ metar lhr jfk bru uudd
// Find the IATA/ICAO airport code for an airport
// $ metar -s munich
// $ metar -s ne... |
// +build !js
package webrtc
import (
"fmt"
"regexp"
"strconv"
"strings"
"github.com/pion/logging"
"github.com/pion/sdp/v2"
)
// trackDetails represents any media source that can be represented in a SDP
// This isn't keyed by SSRC because it also needs to support rid based sources
type trackDetails struct {
... |
package engine
import (
"encoding/json"
"syscall/js"
"time"
"github.com/fkmhrk/go-wasm-stg/game"
"github.com/fkmhrk/go-wasm-stg/game/dead"
"github.com/fkmhrk/go-wasm-stg/game/draw"
"github.com/fkmhrk/go-wasm-stg/game/image"
"github.com/fkmhrk/go-wasm-stg/game/move"
"github.com/fkmhrk/go-wasm-stg/game/shot"
... |
package rpc
import (
"bytes"
"encoding/json"
"fmt"
"time"
enginetypes "github.com/projecteru2/core/engine/types"
"github.com/projecteru2/core/log"
pb "github.com/projecteru2/core/rpc/gen"
"github.com/projecteru2/core/types"
"github.com/projecteru2/core/utils"
"golang.org/x/net/context"
)
func toRPCServiceS... |
package main
import (
"bytes"
"encoding/base64"
"encoding/binary"
"errors"
"flag"
"fmt"
"io"
"log"
"math/rand"
"net"
"os"
"path"
"strconv"
"strings"
"time"
ss "github.com/shadowsocks/shadowsocks-go/shadowsocks"
)
var debug ss.DebugLog
var (
errAddrType = errors.New("socks addr type not support... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/rpc/code.proto
/*
Package code is a generated protocol buffer package.
It is generated from these files:
google/rpc/code.proto
It has these top-level messages:
*/
package code
import proto "github.com/golang/protobuf/proto"
import fmt... |
package market
import (
"database/sql"
"encoding/binary"
"fmt"
"log"
"time"
)
// DailyQuote 市场每日报价
type DailyQuote struct {
Market
UTCOffset int
Date time.Time
Quotes []CompanyDailyQuote
}
// Marshal 序列化
func (q DailyQuote) Marshal() []byte {
count := uint32(len(q.Quotes))
buffer := make([]byte, 1... |
// Copyright © 2017 Microsoft <<EMAIL>>
//
// 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, publ... |
/*
Copyright IBM Corp. 2016 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 to in wri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.