text stringlengths 5.51k 28.1k |
|---|
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package idemix
import (
"fmt"
"reflect"
"strconv"
"github.com/IBM/idemix"
csp "github.com/IBM/idemix/bccsp"
"github.com/IBM/idemix/bccsp/keystore"
bccsp "github.com/IBM/idemix/bccsp/schemes"
idemix2 "github.com/IBM/idemix/bcc... |
// Copyright 2018 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
// Copyright 2015 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.
package overlord
import (
"encoding/json"
"errors"
"github.com/gorilla/websocket"
"io"
"log"
"net"
"strings"
"time"
)
// RegistrationFailedEr... |
package main
import (
"time"
"net/url"
"strings"
"io/ioutil"
"encoding/json"
"sync"
"strconv"
"math/rand"
)
type JobManager struct {
/* meta */
scheduler Scheduler
job Job
/* resource */
network string
resources map[string]NodeStatus
resourcesMu sync.Mutex
/* statu... |
package main
import (
"github.com/veandco/go-sdl2/sdl"
"time"
"github.com/veandco/go-sdl2/gfx"
"math"
"fmt"
"github.com/veandco/go-sdl2/ttf"
"github.com/veandco/go-sdl2/img"
)
var count = 0
const (
gravity = 0.2
initialSlime1X = 200
initialSlime2X = 600
)
type gameMode int
const (
playing gameMode = iot... |
package core
import (
"sync"
"unicode/utf8"
"unicode"
"reflect"
"errors"
"github.com/zhaowanda/go.rpc/log"
"golang.org/x/net/context"
"io"
"github.com/zhaowanda/go.rpc/codec/gob"
"strings"
"github.com/zhaowanda/go.rpc/gorpc"
"github.com/zhaowanda/go.rpc/codec"
"net"
"net/http"
)
const (
// Defaults use... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/service/load_stats/v2/lrs.proto
package envoy_service_load_stats_v2
import (
context "context"
fmt "fmt"
core "github.com/altipla-consulting/envoy-api/envoy/api/v2/core"
endpoint "github.com/altipla-consulting/envoy-api/envoy/api/v2/endpoint"
_ "g... |
package ref
import (
"github.com/hedzr/assert"
"gopkg.in/hedzr/errors.v2"
"reflect"
"testing"
"time"
"unsafe"
)
func TestClone(t *testing.T) {
defer initLogger(t)()
t.Run("GOB copier: simple clone", testGobSimpleClone)
t.Run("Default copier: cloneable clone", testDefaultCloneableClone)
t.Run("Default copie... |
package ethereum
import (
"encoding/json"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"strconv"
"strings"
"testing"
"time"
"github.com/cosmos/cosmos-sdk/client/keys"
cKeys "github.com/cosmos/cosmos-sdk/crypto/keys"
. "gopkg.in/check.v1"
"gitlab.com/thorchain/thornode/bifrost/config"... |
// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
// 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... |
// +build mage
// This is a magefile, and is a "makefile for go".
// See https://magefile.org/
package main
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"runtime"
"strings"
"time"
. "get.porter.sh/operator/mage"
"get.porter.sh/operator/mage/docker"
"github.com/carolynvs/magex/mgx"
"gith... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: test.proto
/*
Package golang is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
TestRequest
TestResponse
CustomOption
*/
package golang
import proto "github.com/golang/protobuf/proto"
i... |
package river
import (
"bytes"
"encoding/json"
"expvar"
"fmt"
"reflect"
"strconv"
"sync"
"github.com/johnsiilver/boutique"
"github.com/johnsiilver/golib/development/telemetry/streaming/river/state"
"github.com/johnsiilver/golib/development/telemetry/streaming/river/state/actions"
"github.com/johnsiilver/go... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the MIT License.
// This product includes software developed at Guance Cloud (https://www.guance.com/).
// Copyright 2021-present Guance, Inc.
package script
import (
"os"
"path/filepath"
"sync"
"time"
"gitlab.jiagouyun.com... |
// name: zombieDinner
// author: johnny
// version:
// 2021-11-12 - removed TABs
// 2021-08-29 - fixed issue#12 - added spacing to handVisual and rolledVisual for when they are less than three die.
// 2020-12-11 - fixed issue#2 (random large percantages) and #4 (almost had brains stat)
// 2020-04-15 - clean... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/*
Copyright 2019 Cisco 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 in writing, software
d... |
/*
Copyright 2019 Cisco 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 in writing, software
d... |
package builder
import (
"fmt"
"io"
"log"
"net/url"
"os"
"path"
"path/filepath"
"strings"
"github.com/disintegration/imaging"
"github.com/spf13/afero"
"github.com/spf13/fsync"
"github.com/spf13/viper"
"github.com/aymerick/kowa/helpers"
"github.com/aymerick/kowa/models"
"github.com/aymerick/kowa/themes... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0-devel
// protoc v3.17.3
// source: get_by_solidity_id.proto
package services
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "refl... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: kubeappsapis/core/resources/v1alpha1/resources.proto
package v1alpha1
import (
v1alpha1 "github.com/kubeapps/kubeapps/cmd/kubeapps-apis/gen/core/packages/v1alpha1"
protoreflect "google.golang... |
/*
Package ramfs implements a 9P2000 file server keeping all files in
memory.
A 9P2000 server is an agent that provides one or more hierarchical
file systems -- file trees -- that may be accessed by processes.
A server responds to requests by clients to navigate the hierarchy,
and to create, remove, read, and write fi... |
/*
==================================================================================
Copyright (c) 2019 AT&T Intellectual Property.
Copyright (c) 2019 Nokia
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 co... |
package commands
import (
"fmt"
"io/ioutil"
"net"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"runtime"
"strings"
"time"
"github.com/hashicorp/go-version"
"github.com/urfave/cli"
"gopkg.in/yaml.v2"
"github.com/phase2/rig/util"
)
// ProjectSync is the command volume and file sync operations
type Pr... |
package manager
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net/url"
"os"
"sort"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/pkg/errors"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/clientv3/snapshot"
"go.etcd.io/etcd/embed"
"go.etcd.io/etcd/etcdserver/api/membership"
"go.etcd.io/etcd/le... |
package admin
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"strings"
"time"
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/concurrency"
"github.com/golang/protobuf/proto"
"github.com/spf13/cobra"
"github.com/virtual-disk-array/vda/pkg/lib"
"github.com/virtual-disk-array/vda/pk... |
package biz
import (
"compress/gzip"
"context"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"os"
"path/filepath"
"poa-service/app/analysis/internal/conf"
"poa-service/app/analysis/internal/data/ent"
"poa-service/app/analysis/internal/data/ent/zeeklog"
"sort"
"strconv"
"strings"
"sync"
"time"
"unicode"... |
package cdn
import (
"bytes"
"context"
"crypto/tls"
"errors"
"fmt"
"io/ioutil"
"net"
"net/http"
"strconv"
"strings"
"time"
"github.com/amartorelli/particles/pkg/api"
"github.com/amartorelli/particles/pkg/cache"
"github.com/amartorelli/particles/pkg/util"
"github.com/sirupsen/logrus"
)
var (
errCacheI... |
//
//Copyright [2016] [SnapRoute Inc]
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
// Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" fil... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc (unknown)
// source: einride/bigquery/public/v1/hacker_news_story.proto
package publicv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/pro... |
// Package gocron : A Golang Job Scheduling Package.
//
// An in-process scheduler for periodic jobs that uses the builder pattern
// for configuration. Schedule lets you run Golang functions periodically
// at pre-determined intervals using a simple, human-friendly syntax.
//
// Inspired by the Ruby module clockwork <... |
// Copyright 2019 The GoKi Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// based on golang.org/x/exp/shiny:
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license th... |
// Copyright 2020 The PipeCD 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 2016 Apcera Inc. All rights reserved.
package main
import (
"flag"
"fmt"
"os"
"os/signal"
"reflect"
"runtime"
"strings"
"time"
natsd "github.com/nats-io/gnatsd/server"
stand "github.com/nats-io/nats-streaming-server/server"
"github.com/nats-io/nats-streaming-server/stores"
)
var usageStr = `... |
// Copyright Contributors to the Open Cluster Management project
package internal
import (
"bytes"
"errors"
"fmt"
"os"
"sort"
"strings"
"github.com/open-cluster-management/policy-generator-plugin/internal/types"
"gopkg.in/yaml.v3"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
)
const (
configPolicyKi... |
package operator
import (
"bytes"
"fmt"
"net"
"os/exec"
"reflect"
"strings"
"sync"
"time"
"github.com/golang/glog"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/wait"
informers_core_v1 "k8s.io/client-go/informers/core/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/t... |
// Package protocols contains the key switching protocol which permits to switch a ciphertext
// encrypted under a specific key by using an El-Gamal encryption (probabilistic) to a ciphertext encrypted
// under another key.
// The El-Gamal ciphertext should be encrypted by the collective public key of the cothority. In... |
package collector
import (
"fmt"
"github.com/coder-van/v-stats/metrics"
"github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/disk"
"github.com/shirou/gopsutil/host"
"github.com/shirou/gopsutil/load"
"github.com/shirou/gopsutil/mem"
"github.com/shirou/gopsutil/net"
"os"
"strings"
)
/*
收集系统各指标 top 命令... |
// Package rqlobj provides basic object relational mapping against an sql(ite) database
package rqlobj
import (
"fmt"
"io"
"io/ioutil"
"log"
"regexp"
"strconv"
"strings"
"time"
"github.com/pkg/errors"
"github.com/rqlite/gorqlite"
)
var (
// ErrNoKeyField is returned for tables without primary key identifi... |
package argon2
import (
"bytes"
"errors"
"fmt"
"math/rand"
"testing"
)
func TestReferenceCases(t *testing.T) {
// This test does not follow idiomatic Go style because it aims to provide
// copy-and-paste functionality from the reference implementation. The
// hashtest() and argon2_verify() calls are copied an... |
package main
import (
"context"
"encoding/binary"
"errors"
"flag"
"fmt"
"github.com/luispater/go-ntlm/ntlm"
"github.com/luispater/goproxy"
"github.com/luispater/shadowsocks-go/cmd/shadowsocks-local/plugins"
ss "github.com/luispater/shadowsocks-go/shadowsocks"
"github.com/sevlyar/go-daemon"
"io"
"log"
"mat... |
package main
import (
"bufio"
"context"
"errors"
"fmt"
"log"
"math"
"os"
"runtime"
"strconv"
"strings"
"time"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
)
// this is the help message we output when -h is passed or a bad flag is given
var help_msg string = `
usage: rm... |
package main
import (
"bufio"
"crypto/md5"
"encoding/hex"
"encoding/xml"
"fmt"
"math"
"net"
"sort"
"time"
)
//
// Structures for BOINC client authorization
//
// Basic information from here: https://boinc.berkeley.edu/trac/wiki/GuiRpcProtocol
// and observed real world responses
//
//
// BOINC Client author... |
package lb
import (
"context"
"crypto/md5"
"encoding/hex"
"fmt"
"regexp"
"sort"
"github.com/kubernetes-sigs/aws-alb-ingress-controller/internal/alb/sg"
"github.com/kubernetes-sigs/aws-alb-ingress-controller/internal/k8s"
"github.com/kubernetes-sigs/aws-alb-ingress-controller/internal/aws/albrgt"
"github.c... |
package pg
import (
"context"
"fmt"
"github.com/jackc/pgtype"
"github.com/jackc/pgx/v4"
"github.com/jschaf/pggen/internal/pg/pgoid"
"sync"
"time"
)
// Type is a Postgres type.
type Type interface {
OID() pgtype.OID // pg_type.oid: row identifier
String() string // pg_type.typname: data type name
Kind() Typ... |
/*
Copyright 2019 Cisco 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 in writing, software
d... |
// Code generated by protoc-gen-go.
// source: keyspb.proto
// DO NOT EDIT!
/*
Package keyspb is a generated protocol buffer package.
It is generated from these files:
keyspb.proto
It has these top-level messages:
Specification
PEMKeyFile
PrivateKey
PublicKey
*/
package keyspb
import proto "github.com/golang/p... |
// Copyright 2015 The etcd 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 Upspin 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 storecache
import (
"expvar"
"os"
"strings"
"time"
"upspin.io/bind"
"upspin.io/errors"
"upspin.io/log"
"upspin.io/serverutil"
"upspin.io/... |
package lightGin
import (
"fmt"
"html/template"
"net"
"net/http"
"os"
"path"
"sync"
"github.com/YoJn/lightGin/internal/common"
)
const defaultMultipartMemory = 32 << 20 // 32 MB
var defaultAppEngine bool
// HandlerFunc middleware 包括处理逻辑
type HandlerFunc func(*Context)
// HandlersChain middleware array.
ty... |
// Copyright The OpenTelemetry 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... |
// Package proxy implements a DNS proxy that supports all known DNS
// encryption protocols.
package proxy
import (
"fmt"
"net"
"net/http"
"sync"
"sync/atomic"
"time"
"github.com/AdguardTeam/dnsproxy/fastip"
"github.com/AdguardTeam/dnsproxy/proxyutil"
"github.com/AdguardTeam/dnsproxy/upstream"
"github.com/A... |
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file implements various field and method lookup functions.
package types2
// LookupFieldOrMethod looks up a field or method with given package and nam... |
package networking
import (
"fmt"
"os"
"strings"
"time"
networkclient "github.com/openshift/origin/pkg/network/generated/internalclientset"
testexutil "github.com/openshift/origin/test/extended/util"
testutil "github.com/openshift/origin/test/util"
corev1 "k8s.io/api/core/v1"
kapierrs "k8s.io/apimachinery/p... |
package netdicom
// This file implements the ServiceUser (i.e., a DICOM DIMSE client) class.
//go:generate stringer -type QRLevel
import (
"fmt"
"net"
"sync"
"github.com/grailbio/go-dicom"
"github.com/grailbio/go-dicom/dicomio"
"github.com/grailbio/go-dicom/dicomlog"
"github.com/grailbio/go-dicom/dicomtag"
... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/change_status_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
_ "goo... |
// Copyright Splunk, 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 wri... |
// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium
package ipcache
import (
"bytes"
"context"
"errors"
"fmt"
"net"
"sync"
"github.com/sirupsen/logrus"
"github.com/cilium/cilium/pkg/controller"
"github.com/cilium/cilium/pkg/identity"
"github.com/cilium/cilium/pkg/labels"
cidrlabels "git... |
/*
Copyright 2016 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... |
// 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 consul
import (
"fmt"
"io"
"net"
"os"
"time"
"github.com/hashicorp/consul/agent/structs"
"github.com/hashicorp/consul/tlsutil"
"github.com/hashicorp/consul/types"
"github.com/hashicorp/consul/version"
"github.com/hashicorp/memberlist"
"github.com/hashicorp/raft"
"github.com/hashicorp/serf/serf"
"... |
/*
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 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 ... |
package state
import (
"reflect"
"runtime"
"runtime/debug"
"testing"
"github.com/prysmaticlabs/go-bitfield"
p2ppb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
"github.com/prysmaticlabs/prysm/shared/bytesutil"
"github.com/prysmaticlabs/prysm/shared/testutil/assert"
"github.com/prysmaticlabs/prysm/shar... |
/*
SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors
SPDX-License-Identifier: Apache-2.0
*/
package cmd
import (
"context"
"crypto/x509"
"encoding/json"
"encoding/pem"
"errors"
"fmt"
"os"
"path/filepath"
"github.com/gardener/gardenlogin/internal/certificatecache"
"g... |
package arc_test
import (
"bytes"
"fmt"
"math"
"os"
)
// # The arc length function solves the 2nd order equation w.r.t. ddl
// # Returns two values as ddl1 and ddl2
//
// 𝜓 is psi
// 𝐪 is iq
// Δu is da, dao
// δū is dab
// δut is dat
// Δλ is dl
// δu is dat, d... |
// Code generated by smithy-go-codegen DO NOT EDIT.
package rds
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/rds/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/... |
// 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.
package runtime
import (
"internal/abi"
"runtime/internal/sys"
"unsafe"
)
// cbs stores all registered Go callbacks.
var cbs struct {
lock mutex
ctxt [... |
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package devserver
import (
"context"
"errors"
"fmt"
"hash/crc32"
"io"
"io/ioutil"
"math/rand"
"net/http"
"net/url"
"os"
"path"
"regexp"
"... |
// Copyright 2018 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... |
package tview
import (
"fmt"
"math"
"regexp"
"strconv"
"strings"
"unicode"
"github.com/gdamore/tcell"
runewidth "github.com/mattn/go-runewidth"
)
// Text alignment within a box.
const (
AlignLeft = iota
AlignCenter
AlignRight
)
// Common regular expressions.
var (
colorPattern = regexp.MustCompile(`... |
package views
import (
"container/ring"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"runtime"
"strconv"
"time"
"github.com/denandz/glorp/replay"
"github.com/fsnotify/fsnotify"
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
)
// ReplayView - struct that holds the main replayview elements
type ReplayVi... |
package inventory
import (
"errors"
"fmt"
"github.com/phelix-/psostats/v2/pkg/model"
"log"
"github.com/TheTitanrain/w32"
"github.com/phelix-/psostats/v2/client/internal/numbers"
)
//goland:noinspection GoUnusedConst
const (
itemArray = 0x00A8D81C
itemArrayCount = 0x00A8D820
itemId =... |
/*
* 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... |
// Copyright 2015 The Azul3D Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build js
package webgl
import (
"errors"
"fmt"
"github.com/gopherjs/gopherjs/js"
"github.com/slimsag/gfx"
"github.com/slimsag/gfx/internal/state"... |
// 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... |
// 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 2017 Capsule8, 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 ... |
/*
Copyright 2020 Elotl Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... |
/*
* Copyright 2017 XLAB d.o.o.
*
* 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 ... |
// Command rqlited is the rqlite server.
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os"
"os/signal"
"path/filepath"
"runtime"
"strings"
"time"
consul "github.com/rqlite/rqlite-disco-clients/consul"
"github.com/rqlite/rqlite-disco-clients/dns"
"github.com/rqlit... |
package servicefabric
// 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 mobile
import (
"runtime"
"strconv"
"time"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
"fyne.io/fyne/v2/internal"
"fyne.io/fyne/v2/internal/animation"
intapp "fyne.io/fyne/v2/internal/app"
"fyne.io/fyne/v2/internal/cache"
"fyne.io/fyne/v2/internal/driver"
"fyne.io/fyne/v2/internal/driver/common"
"f... |
//go:build linux
// +build linux
package vsock_test
import (
"bytes"
"fmt"
"io"
"math"
"net"
"os"
"regexp"
"strconv"
"sync"
"testing"
"time"
"github.com/google/go-cmp/cmp"
"github.com/mdlayher/vsock"
"github.com/mdlayher/vsock/internal/vsutil"
"golang.org/x/net/nettest"
"golang.org/x/sync/errgroup"
... |
package dxfuse
import (
"context"
"errors"
"fmt"
"log"
"net/http"
"os"
"runtime"
"sync"
"time"
"github.com/dnanexus/dxda"
"github.com/jacobsa/fuse"
)
const (
maxNumBulkDataThreads = 8
numFileThreads = 4
sweepPeriodicTime = 1 * time.Minute
)
type Chunk struct {
fileId string
index in... |
// Copyright (c) 2019, AT&T Intellectual Property. All rights reseved.
//
// SPDX-License-Identifier: GPL-2.0-only
package notifyd
import (
"bytes"
"encoding/json"
"io/ioutil"
"log"
"log/syslog"
"os"
"os/exec"
"runtime"
"strings"
"sync"
"sync/atomic"
"github.com/danos/utils/args"
"github.com/go-ini/ini"
... |
// +build linux
// Copyright Amazon.com Inc. or its affiliates. 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. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "li... |
/*
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 writing, software
distri... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: catalog.proto
package catalog
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/p... |
package rod_test
import (
"bytes"
"context"
"errors"
"image/png"
"io"
"path/filepath"
"sort"
"strings"
"sync"
"time"
"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/devices"
"github.com/go-rod/rod/lib/input"
"github.com/go-rod/rod/lib/proto"
"github.com/ysmood/kit"
)
func (s *S) TestGetPageURL() {
... |
package pkglint
import (
"netbsd.org/pkglint/makepat"
"netbsd.org/pkglint/textproc"
)
// MkCondChecker checks conditions in Makefiles.
// These conditions occur in .if and .elif clauses, as well as the
// :? modifier.
type MkCondChecker struct {
MkLine *MkLine
MkLines *MkLines
}
func NewMkCondChecker(mkLine *Mk... |
// 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.
package ime
import (
"context"
"encoding/json"
"fmt"
"time"
"chromiumos/tast/common/action"
"chromiumos/tast/errors"
"chromiumos/tast/local/ch... |
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
//
// This file is part of ewm-cloud-robotics
// (see https://github.com/SAP/ewm-cloud-robotics).
//
// This file is licensed under the Apache Software License, v. 2 except as noted
// otherwise in the LICENSE file (https://github.com/SAP/ew... |
package client
import (
"encoding/json"
"fmt"
"log"
"math/rand"
"net"
"os"
"path/filepath"
"sync"
"sync/atomic"
"time"
cellaserv "github.com/evolutek/cellaserv3-protobuf"
"github.com/evolutek/cellaserv3/broker/cellaserv/api"
cs_api "github.com/evolutek/cellaserv3/broker/cellaserv/api"
"github.com/evolut... |
package controller
import (
"context"
"errors"
"fmt"
"net"
"reflect"
"strings"
cloudnetworkv1 "github.com/openshift/api/cloudnetwork/v1"
cloudnetworkclientset "github.com/openshift/client-go/cloudnetwork/clientset/versioned"
cloudnetworkscheme "github.com/openshift/client-go/cloudnetwork/clientset/versioned/... |
// The MIT License
//
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
//
// Copyright (c) 2020 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 Soft... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.