text stringlengths 8.57k 38.1k |
|---|
package tcp
import (
"context"
"encoding/binary"
"math"
"math/rand"
"sync"
"sync/atomic"
"time"
"golang.org/x/sys/unix"
"github.com/datawire/dlib/dlog"
"github.com/telepresenceio/telepresence/v2/pkg/connpool"
"github.com/telepresenceio/telepresence/v2/pkg/tun/buffer"
"github.com/telepresenceio/telepresen... |
// Copyright © 2018-2021 <NAME> <<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, pu... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/common.proto
package common
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 is a c... |
/*
* Copyright (c) 2018, https://github.com/nebulaim
* 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
*
* Un... |
// Copyright 2016-2018, Pulumi 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... |
package t3cutil
/*
* 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
*... |
package main
import (
"compress/gzip"
"flag"
"io/ioutil"
"log"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"strconv"
"sync"
"time"
"github.com/kpawlik/geojson"
"github.com/rotblauer/catTracks/catTracks"
)
//start the url handlers, special init for everything?
//Toodle to do , Command line port a... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/attr_value.proto
package framework
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 _ ... |
package distsqlsrv
import (
"context"
"fmt"
"math/big"
"testing"
"github.com/znbasedb/znbase/pkg/base"
"github.com/znbasedb/znbase/pkg/internal/client"
"github.com/znbasedb/znbase/pkg/sql/coltypes"
"github.com/znbasedb/znbase/pkg/sql/distsql"
"github.com/znbasedb/znbase/pkg/sql/distsqlpb"
"github.com/znbase... |
package analysis
import (
"go/types"
"github.com/frk/tagutil"
)
////////////////////////////////////////////////////////////////////////////////
// Target Types
////////////////////////////////////////////////////////////////////////////////
type (
// QueryStruct represents the result of the analysis of a target... |
package main
// interpolate.go
import (
"bufio"
"bytes"
//"bytes"
//"encoding/json"
"fmt"
"io/ioutil"
//"net/http"
"os"
//"path/filepath"
//m2h "mdtohtml"
"path"
"path/filepath"
"regexp"
"sort"
s "strings"
"time"
"github.com/joeatbayes/goutil/jutil"
m2h "github.com/joeatbayes/goutil/mdtohtml"
)
... |
/* Copyright 2018-2021 Workiva 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.20.1
// protoc v3.11.2
// source: gitrepo_artifact_provider.proto
package client
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/p... |
package awsplacementgroup
import (
"context"
"fmt"
"reflect"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/go-logr/logr"
configv1 "github.com/openshift/api/config/v1"
machinev1beta1 "github.com/openshift/api/machi... |
package proto
const (
OpError = 0
OpTimeout = 1
OpReply = 2
OpCreatePlaybackStream = 3
OpDeletePlaybackStream = 4
OpCreateRecordStream = 5
OpDeleteRecordStream = 6
OpExit = 7
OpAuth = 8
OpSetClientName = 9
OpLookupSink = 10
OpLookupSource = 11
OpDrainPlaybackSt... |
package updatecheck
import (
"encoding/json"
"io"
"net/http"
"net/url"
"sort"
"strconv"
"strings"
"time"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/cockroachdb/errors"
"github.com/coreos/go-semver/semver"
"github.com/inconshreveable/log15"
"github.com/prometheus/client_golang/... |
package support
import (
"fmt"
"io"
"strings"
"sync"
"time"
"github.com/golang/glog"
kapi "k8s.io/kubernetes/pkg/api"
kerrors "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/client/cache"
"k8s.io/kubernetes/pkg/client/record"
kclient "k8s.io/kubernetes/pk... |
// Copyright 2015 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
package core
import (
"github.com/DisgoOrg/disgo/discord"
)
// CacheStrategy is used to determine whether something should be cached when making an api request. When using the
// gateway, you'll receive the event shortly afterwards if you have the correct GatewayIntents.
type CacheStrategy func(bot *Bot) bool
// De... |
//
//Copyright The containerd Authors.
//
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in ... |
// Copyright 2019 Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
package main
import (
"regexp"
"strconv"
"strings"
"time"
"4d63.com/tz"
"github.com/bwmarrin/discordgo"
"github.com/fatih/structs"
)
var (
// regexpSwitchFC contains a regular expression for matching valid Nintendo Switch friend codes
regexpSwitchFC = regexp.MustCompile(`SW-[0-9]{4}-[0-9]{4}-[0-9]{4}`)
)
v... |
package vrf_test
import (
"context"
"math/big"
"strconv"
"strings"
"testing"
"time"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/accounts/keystore"
"github.com... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/automl/v1beta1/model.proto
package automl
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Refer... |
package types
import (
"math"
)
// Defines the basic types such as ID types, and world units.
type Ticks int64
const (
TicksPerDay = 24000
TicksPerSecond = 20
NanosecondsInSecond = 1e9
)
// 1 "TickTime" is the duration of a server "tick". This value is intended for
// use in sub-tick physics calcu... |
package multiplexing
import (
"context"
"encoding/binary"
"errors"
"fmt"
"io"
"math"
"net"
"sync"
"time"
"github.com/mutagen-io/mutagen/pkg/multiplexing/ring"
)
var (
// ErrMultiplexerClosed is returned from operations that fail due to a
// multiplexer being closed.
ErrMultiplexerClosed = errors.New("mu... |
package bus
import (
"context"
"git.900sui.cn/kc/rpcinterface/interface/common"
)
const (
ZHIFUBAO = 1
WEIXIN = 2
XIANJIN = 3
OTHER = 4
)
const (
//消毒地点
DISINFECT_ADDRESS_SITTING_ROOT = 1 //客厅
DISINFECT_ADDRESS_CORRIDOR = 2 //走廊
DISINFECT_ADDRESS_RECEPTION = 3 //接待处
DISINFECT_ADDRESS_RESTAREA ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: pb/v1/protocol.proto
package pb_v1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference impo... |
// Implements a simple phase delay from different n-Antenna elements
package antenna
import (
"encoding/json"
"io"
"log"
// "flag"
"fmt"
"math"
"math/cmplx"
"github.com/wiless/vlib"
)
var Nodes = 360
var Radius float64 = 1
var imagval complex128 = 0 + 1i
var freq float64 = 2.0e9
var cspeed float64 = 3.0e8... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: src/main/protobuf/option_filters.proto
package options
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.gola... |
// Package strings provides methods that work on strings or runes--but also types descended from them.
// Where possible, the functions take either a string or a rune.
// Most, if not all, functions from the standard "strings" package are replicated here, but with generic inputs.
package strings
import (
"fmt"
"strc... |
package common
import (
"context"
"errors"
"fmt"
"io/ioutil"
"net/url"
"os"
"strconv"
"strings"
"time"
"gopkg.in/yaml.v2"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
log "github.com/sirupsen/logrus"
keptnmodels "github.com/keptn/go-utils/pkg/api/models"
keptnapi "github.com/keptn/go-utils/p... |
// Code generated from SQLite.g4 by ANTLR 4.8. DO NOT EDIT.
package parser // SQLite
import "github.com/antlr/antlr4/runtime/Go/antlr"
// BaseSQLiteListener is a complete listener for a parse tree produced by SQLiteParser.
type BaseSQLiteListener struct{}
var _ SQLiteListener = &BaseSQLiteListener{}
// VisitTermin... |
package memstats
import (
"context"
"fmt"
"runtime"
"sync"
"time"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/label"
"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/unit"
)
// config contains optional settings for reporting runtime metrics.
type config struct {
// MinimumReadMemStatsIn... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: connection.proto
package connection
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
connectioncontext "github.com/networkservicemesh/networkservicemesh/controlplane/pkg/apis/c... |
package interp
import (
"reflect"
"strconv"
)
// tcat defines interpreter type categories
type tcat uint
// Types for go language
const (
nilT tcat = iota
aliasT
arrayT
binT
binPkgT
boolT
builtinT
byteT
chanT
complex64T
complex128T
errorT
float32T
float64T
funcT
interfaceT
intT
int8T
int16T
int... |
// Copyright 2019 Yunion
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
// Package nl has low level primitives for making Netlink calls.
package nl
import (
"bytes"
"encoding/binary"
"fmt"
"net"
"runtime"
"sync"
"sync/atomic"
"syscall"
"unsafe"
"github.com/vishvananda/netns"
"golang.org/x/sys/unix"
)
const (
// Family type definitions
FAMILY_ALL = unix.AF_UNSPEC
FAMILY_V4... |
// Copyright 2014 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this fi... |
/*
Copyright 2020 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... |
package uvm
import (
"bytes"
"context"
"encoding/gob"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/Microsoft/go-winio/pkg/security"
"github.com/Microsoft/hcsshim/internal/copyfile"
"github.com/Microsoft/hcsshim/internal/guestrequest"
"github.com/Microsoft/hcsshim/internal/hcs/re... |
package blockchain
import (
"encoding/binary"
"fmt"
"math"
"runtime"
"testing"
"time"
"github.com/cctip/bchd/chaincfg"
"github.com/cctip/bchd/chaincfg/chainhash"
"github.com/cctip/bchd/database"
"github.com/cctip/bchd/txscript"
"github.com/cctip/bchd/wire"
"github.com/davecgh/go-spew/spew"
"github.com/gc... |
// Copyright 2009 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 sort provides primitives for sorting slices and user-defined
// collections.
// sort 包为切片及用户定义的集合的排序操作提供了原语.
package sort
// A type, typically a co... |
package dmr
import (
"fmt"
"strings"
)
// Data Header Packet Format
const (
PacketFormatUDT uint8 = iota // 0b0000
PacketFormatResponse // 0b0001
PacketFormatUnconfirmedData // 0b0010
PacketFormatConfirmedData // 0b0011
_ ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common.proto
package axonserver
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/any"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt... |
// Copyright 2016 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 tar
import (
"math"
"strings"
"testing"
"time"
)
func TestFitsInBase256(t *testing.T) {
vectors := []struct {
in int64
width int
ok b... |
package spider
import (
"github.com/go-redis/redis/v7"
"github.com/panjf2000/ants/v2"
"github.com/spf13/viper"
"github.com/valyala/fasthttp"
"go_movies/utils"
"log"
"regexp"
"runtime"
"strconv"
"strings"
"sync"
"time"
)
const ApiHost = "https://api.okzy.tv/api.php/provide/vod"
const AcList = "list"
const ... |
// Copyright 2015 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
package orm
import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"sort"
"time"
"gorm.io/gorm"
"github.com/tealeg/xlsx/v3"
"github.com/fullstack-lang/gonggooglecharts/go/models"
)
// dummy va... |
// Copyright 2015 <NAME> and The Caddy 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... |
// Copyright (C) 2019-2020 Zilliz. 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 l... |
// Copyright 2020 <NAME>.
//
// Use of this source code is governed by Apache 2 LICENSE that can be
// found in the LICENSE file.
// TODO
//
// - Go through bash file and check for missing checks/features and update this list
// - Need timestamps in stages output to correlate stages with metrics, e.g. mpstat.log
// - ... |
package project
import (
"bufio"
"fmt"
"github.com/spf13/cobra"
//"github.com/yyn1110/logs"
"javaPlugin/pkg/db"
"javaPlugin/pkg/logs"
"os"
"os/signal"
"path/filepath"
"runtime"
"strings"
"sync"
"syscall"
"time"
)
const (
programName = "javaPlugin"
version = "0.11"
)
var (
dbNameTest string
pa... |
// Code generated by goyacc -p hex -o hex/hex_parser.go hex/hex_grammar.y. DO NOT EDIT.
//line hex/hex_grammar.y:31
package hex
import __yyfmt__ "fmt"
//line hex/hex_grammar.y:31
import (
"github.com/VirusTotal/gyp/ast"
gyperror "github.com/VirusTotal/gyp/error"
)
const StringChainingThreshold int = 200
type by... |
// Copyright 2020 The NATS 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 wr... |
package cloud
import (
"context"
"errors"
"fmt"
"math/rand"
"os"
"strconv"
"strings"
"time"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/util"
"github.com/nifcloud/nifcloud-sdk-go/nifcloud"
"github.com/nifcloud/nifcloud-sdk-go/service/computing"
"k8s.io/api... |
// 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... |
/*
*
* k6 - a next-generation load testing tool
* Copyright (C) 2019 Load Impact
*
* 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 (at your o... |
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, <NAME>, All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of sou... |
package blockchain
import (
"context"
"errors"
"fmt"
"log"
"math"
"math/big"
"strconv"
"strings"
"time"
"github.com/KyberNetwork/reserve-data/common"
ether "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
ethereum "github.com/ethereum/go-ethereum/common"
"github.com/... |
// Copyright (c) 2014 Couchbase, 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 writin... |
// main.go
package main
import (
"fmt"
"math/rand"
"os"
"time"
"golang.org/x/image/colornames"
"github.com/veandco/go-sdl2/mix"
"github.com/veandco/go-sdl2/sdl"
)
//==============SETTINGS==============
const (
//==============WINDOW SETTINGS==============
TITLE string = "Tank game"
SCREEN_WIDTH ... |
package cola
import (
"crypto/tls"
"fmt"
"net"
"os"
"os/exec"
"path/filepath"
"reflect"
"runtime"
"runtime/debug"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/valyala/fasthttp"
"github.com/valyala/fasthttp/reuseport"
"github.com/xs23933/cola/log"
)
// Hand Handler
type Hand func(*Ctx)
// Op... |
// 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 security
import (
"context"
"fmt"
"os"
"os/user"
"path/filepath"
"strings"
chk "chromiumos/tast/local/bundles/cros/security/filecheck"... |
// Copyright 2020 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 2020 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 equal provides code generator for Equal like functions.
package equal
import (
"bytes"
"fmt"
"go/ast"
"go/build"
"go/format"
"go/importer"
"go/parser"
"go/token"
"go/types"
"io/ioutil"
"log"
"os/exec"
"path/filepath"
"strconv"
"strings"
"unicode"
)
func init() {
log.SetFlags(log.Llongfile)... |
// Copyright 2013 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found
// at https://github.com/julienschmidt/httprouter/blob/master/LICENSE
package gin
import (
"bytes"
"net/url"
"strings"
"unicode"
"unicode/utf8"
"github.com/gin-gonic/gin/internal/bytes... |
// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package main
import (
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"path/filepath"
"time"
"github.com/google/syzkaller/dashboard/dashapi"
"github.com/... |
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package reindexer
import (
"encoding/json"
"fmt"
"math/rand"
"strings"
"testing"
"github.com/restream/reindexer"
"github.com/stretchr/testify/require"
)
const (
fieldsUpdateNs = "test_items_fields_update"
truncateNs = "test_truncate"
removeItemsNs = "test_remove_items"
)
func init() {
tnamespaces["t... |
// Copyright 2015 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.
//
// Adapted from github.com/reganm/ls
package client
import (
"bytes"
"fmt"
"math"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/keybase/client/go/protocol/keybase1"
)
//... |
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not... |
// 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 2016 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... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use ... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: opentelemetry/proto/metrics/experimental/configservice.proto
package experimental
import (
context "context"
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
v1 "github.com/honeycombio/refinery/internal/opentelemetry-proto-gen/resource/v1"
grpc "googl... |
// Copyright (c) 2017-2018 Zededa, Inc.
// SPDX-License-Identifier: Apache-2.0
// dnsmasq configlets for overlay and underlay interfaces towards domU
package zedrouter
import (
"bufio"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strconv"
"strings"
"syscall"
"time"
"github.com/google/go-cmp/cmp"
"github.com/lf-ed... |
// Package http provides a server which implements server push system provided
// by the new go http package.
package http
import (
"bytes"
"crypto/tls"
"errors"
"fmt"
"io"
"net"
"net/http"
"strings"
"sync"
"time"
"github.com/dimfeld/httptreemux"
"github.com/influx6/faux/context"
"github.com/influx6/octo... |
// Copyright 2019 The ebml-go authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
package pango
import (
"os"
"strings"
"sync"
"github.com/benoitkugler/textlayout/language"
)
type Language = language.Language
// /* We embed a private struct right *before* a where a PangoLanguage *
// * points to.
// */
// typedef struct {
// gconstpointer lang_info;
// gconstpointer script_for_l... |
// Copyright 2015 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... |
//
// goamz - Go packages to interact with the Amazon Web Services.
//
// https://wiki.ubuntu.com/goamz
//
// Copyright (c) 2014 Canonical Ltd.
//
package ec2_test
import (
"strings"
"time"
. "gopkg.in/check.v1"
"gopkg.in/amz.v3/aws"
"gopkg.in/amz.v3/ec2"
)
// Network interface tests with example responses
... |
//
// Copyright (c) 2015 The heketi Authors
//
// This file is licensed to you under your choice of the GNU Lesser
// General Public License, version 3 or any later version (LGPLv3 or
// later), or the GNU General Public License, version 2 (GPLv2), in all
// cases as published by the Free Software Foundation.
//
packa... |
// Package control controls which resources a query may consume.
//
// The Controller manages the resources available to each query and ensures
// an optimal use of those resources to execute queries in a timely manner.
// The controller also maintains the state of a query as it goes through the
// various stages of ex... |
package materialize
import (
"context"
"encoding/json"
"fmt"
"io"
"math"
"sync"
"github.com/estuary/flow/go/protocols/fdb/tuple"
pf "github.com/estuary/flow/go/protocols/flow"
"github.com/sirupsen/logrus"
"go.gazette.dev/core/broker/client"
)
// TxnClient is a client of a driver's Transactions RPC.
type Tx... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/config/pg_gateway/config_request.proto
package pg_gateway // import "github.com/chef/automate/api/config/pg_gateway"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import shared "github.com/chef/automate/api/config/sh... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/core/config_source.proto
package envoy_api_v2_core
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
wrappers "github.com... |
// Copyright 2016 The G3N 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 gui
import (
"fmt"
"github.com/g3n/engine/math32"
"github.com/g3n/engine/window"
)
// TabBar is a panel which can contain other panels arranged in... |
package service
import (
"bytes"
"crypto/hmac"
"crypto/sha1"
"crypto/sha256"
"encoding/base64"
"encoding/json"
"encoding/xml"
"fmt"
"hash"
"io"
"mime"
"net/url"
"path"
"reflect"
"sort"
"strconv"
"strings"
"github.com/alibabacloud-go/tea/tea"
)
var characters = map[string]bool{"-": true, "_": true, ... |
package gpexp
import (
"time"
"github.com/pilosa/go-pilosa"
"github.com/pilosa/pilosa/roaring"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)
// TODO if using column translation, column ids might get way out of
// order. Could be worth sorting everything after translation (as an
// option?). Instead of ... |
package layers
import (
"log"
"gitlab.com/akita/dnn/tensor"
"gitlab.com/akita/mgpusim/driver"
"gitlab.com/akita/mgpusim/insts"
"gitlab.com/akita/mgpusim/kernels"
)
// A Conv2D can perform convolution operation on input data.
type Conv2D struct {
GPUDriver *driver.Driver
GPUCtx *driver.Context
Te... |
package gorm
import (
"database/sql"
"errors"
"fmt"
"reflect"
"strings"
"time"
)
// DB contains information for current db connection
type DB struct {
Value interface{}
Error error
RowsAffected int64
callbacks *Callback
db sqlCommon
parent *DB... |
/*
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... |
/*
Copyright 2017 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 writing, software
dist... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.12.2
// source: eolymp/ranker/activity.proto
package ranker
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.... |
// Copyright 2015 Prometheus Team
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
// Copyright 2020 The LUCI 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: solo/pb/solo.proto
package pb
import (
reflect "reflect"
sync "sync"
api "github.com/fanaticscripter/EggContractor/api"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
prot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.