text stringlengths 5.51k 28.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ospf_sh_proto_area.proto
package cisco_ios_xr_ipv4_ospf_oper_ospf_processes_process_default_vrf_process_information_protocol_areas_protocol_area
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to supp... |
/*
Copyright 2019 The MayaData 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
/*
* Copyright 2012-2019 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 ... |
// Copyright 2020 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 main
import (
"bytes"
"fmt"
"go/ast"
"go/token"
"go/types"
"path"
"reflect"
"regexp"
"strings"
"rsc.io/rf/refactor"
)
type posChecker func(... |
// Copyright 2019 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 check
import (
"testing"
)
func TestMessages(t *testing.T) {
const code = `package pkg
import (
"context"
"chromiumos/tast/errors"
"ch... |
package rssIn
import (
"context"
"crypto/tls"
"fmt"
"github.com/google/uuid"
"github.com/livelace/gosquito/pkg/gosquito/core"
log "github.com/livelace/logrus"
"github.com/mmcdole/gofeed"
"net/http"
"sync"
"time"
)
const (
PLUGIN_NAME = "rss"
DEFAULT_MATCH_TTL = "1d"
DEFAULT_SSL_VERIFY = true
)
func fe... |
package keeper
import (
"encoding/json"
"fmt"
codectypes "github.com/line/lfb-sdk/codec/types"
sdk "github.com/line/lfb-sdk/types"
sdkerrors "github.com/line/lfb-sdk/types/errors"
banktypes "github.com/line/lfb-sdk/x/bank/types"
distributiontypes "github.com/line/lfb-sdk/x/distribution/types"
ibctransfertypes... |
/*
Copyright 2017 The Elasticshift Authors.
*/
package integration
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"os"
"path/filepath"
"github.com/pkg/errors"
uuid "github.com/satori/go.uuid"
"github.com/sirupsen/logrus"
"github.com/elasticshift/elasticshift/api/types"
itypes "github.com/elasticshi... |
package bot
import (
"black-key/pkg/cache"
"black-key/pkg/helper"
"black-key/pkg/library/line/bot/template"
"black-key/pkg/model"
"black-key/pkg/model/bot"
"black-key/pkg/service/billing"
"context"
"encoding/json"
"fmt"
"strings"
"time"
underscore "github.com/ahl5esoft/golang-underscore"
"github.com/line... |
package tree
import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
)
func dumpNode(n *node, prefix string) {
fmt.Printf("%s%s fullpath:%s %v \r\n", prefix, n.path, n.FullPathPattern(), n.leaf)
for l := len(n.path); l > 0; l-- {
prefix += " "
}
for _, child := range n.staticBranches {
if child != ni... |
// Copyright 2015 The Serulian 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 typegraph
import (
"bytes"
"fmt"
"github.com/serulian/compiler/compilercommon"
"github.com/serulian/compiler/compilergraph"
"github.com/ser... |
package en
import (
"errors"
"strconv"
"strings"
"testing"
"github.com/gammban/numtow/internal/digit"
"github.com/gammban/numtow/internal/ds"
)
//nolint:gochecknoglobals
var testCaseConvertDS = []struct {
GiveDS ds.DigitString
GiveFmtGroupSep string
WantResult string
WantErr error
}{
... |
package lcp
import (
"bytes"
"encoding/binary"
"fmt"
)
// Pkt represents a LCP/IPCP/IPv6CP pkt
type Pkt struct {
// Proto is one of ProtoLCP, ProtoIPCP, ProtoIPv6CP
Proto PPPProtocolNumber
// Msg code
Code MsgCode
// Msg Id
ID uint8
// Msg length
Len uint16
// Magic Number if exists
MagicNum uint32
// r... |
/*
Package font is for typeface and font handling.
There is a certain confusion with the nomenclature of typesetting. We will
stick to the following definitions:
▪︎ A "typeface" is a family of fonts. An example is "Helvetica".
This corresponds to a TrueType "collection" (*.ttc).
▪︎ A "scalable font" is a font, i.e. ... |
package api
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"net/url"
"path"
"reflect"
"strconv"
"testing"
"github.com/google/go-github/github"
"github.com/gorilla/mux"
"k8s.io/api/extensions/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: batch_update_owner.proto
package dbservice
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
types "github.com/gogo/protobuf/types"
_ "github.com/mwitkow/go-proto-validators"
math "math"
)
// Reference ... |
/*
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 2017 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... |
// Copyright 2016 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 henchman
import (
"archive/tar"
"errors"
"fmt"
"os"
_ "path/filepath"
_ "reflect"
"strings"
"sync"
"time"
"github.com/mgutz/ansi"
)
// For ANSI color codes
var statuses = map[string]string{
"reset": ansi.ColorCode("reset"),
"ok": ansi.ColorCode("green"),
"changed": ansi.ColorCode("yellow"... |
// Copyright 2019 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writin... |
package kasalink
import (
"encoding/json"
"fmt"
"log"
"strings"
"time"
)
const (
getSysInfo = `{"system":{"get_sysinfo":{}}}`
reboot = `{"system":{"reboot":{"delay":1}}}`
turnOn = `{"system":{"set_relay_state":{"state":1}}}`
turn... |
package main
import (
"encoding/json"
"flag"
"image"
"image/color"
"image/color/palette"
"image/draw"
"image/gif"
"io/ioutil"
"log"
"math"
"os"
"github.com/llgcode/draw2d/draw2dimg"
)
const (
// Bot attributes
BotSize int = 60
MaxBotSpeed int = 12
MaxBotHealth int = 12
// How much edge margin ... |
/*
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 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writin... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: encoding/test.proto
package encoding
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.... |
package chat
import (
"bufio"
"fmt"
"io"
"log"
"net"
"os"
"strconv"
"strings"
"time"
"github.com/golang/protobuf/ptypes"
"github.com/hashicorp/memberlist"
"github.com/pborman/uuid"
"github.com/stefanhans/programming-reactive-systems-in-go/cli-chat/chat/chat-member"
)
// Execute a command specified by th... |
package main
import (
"context"
"fmt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/dustin/go-humanize"
"github.com/havoc-io/mutagen/cmd"
fs "github.com/havoc-io/mutagen/pkg/filesystem"
promptpkg "github.com/havoc-io/mutagen/pkg/prompt"
sessionsvcpkg "github.com/havoc-io/mutagen/pkg/service... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: Verification.proto
/*
Package Verification is a generated protocol buffer package.
It is generated from these files:
Verification.proto
It has these top-level messages:
C2S
S2C
Request
Response
*/
package Verification
import proto "github.com/golang/p... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: agent_install_progress.proto
package agent
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
math "math"
)
// Reference imports to suppress errors if they are n... |
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License... |
// Package rbtree provides an iterative (not recursive) red-black tree with
// obvious semantics and powerful, resettable iteration.
//
// This package provides the easy ability to modify nodes on the fly, but note
// that this comes with the easy footgun of messing up iteration. If you modify
// a tree during iteratio... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.18.1
// source: api/download/v1/download.proto
package v1
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.... |
// Copyright 2016 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... |
// This file defines basically everything the matcher does by specifying positive and negative keywords
package match
import "regexp"
// keywordMapping basically defines two sets of keywords.
// if at least one keyword from `from` and one from `to` is matched,
// then the match is positive
type keywordMapping struct ... |
package matroska
// https://tools.ietf.org/html/draft-ietf-cellar-ebml-00
// https://matroska.org/technical/specs/index.html
// https://www.matroska.org/technical/basics.html
// https://www.matroska.org/technical/codec_specs.html
// https://wiki.xiph.org/MatroskaOpus
// TODO: refactor simepleblock/block to just defer... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// source: tracing.proto
package pb
import (
reflect "reflect"
sync "sync"
pb "github.com/erda-project/erda-proto-go/oap/common/pb"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
pro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/errors/customer_manager_link_error.proto
package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.gol... |
/*
MIT License
Copyright 2016 Comcast Cable Communications Management, LLC
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, cop... |
/*
Copyright 2017 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
dis... |
package sfu
import (
"github.com/elliotchance/orderedmap"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
)
//
// VP8 munger
//
type TranslationParamsVP8 struct {
header *buffer.VP8
}
type VP8MungerParams struct {
pictureIdWrapHandler VP8PictureIdWrapHandler
extLastPictureId int32
pictureIdOffset ... |
package helmer
import (
"bytes"
"context"
"encoding/json"
"fmt"
"sort"
"time"
"github.com/pkg/errors"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/types"
"github.com/go-logr/logr"
"github.com/openshift-psap/special-resource-operato... |
package descriptor
import (
"fmt"
"strings"
"github.com/golang/protobuf/protoc-gen-go/descriptor"
gogen "github.com/golang/protobuf/protoc-gen-go/generator"
"github.com/partitio/micro-gateway/protoc-gen-micro-gateway/httprule"
)
// IsWellKnownType returns true if the provided fully qualified type name is consid... |
/*
* Copyright 2017 <NAME>, 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... |
package mdns
import (
"fmt"
"math/rand"
"net"
"sync"
"sync/atomic"
"time"
log "github.com/crypto-zero/go-micro/v2/logger"
"github.com/miekg/dns"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
)
var (
mdnsGroupIPv4 = net.ParseIP("172.16.17.32")
mdnsGroupIPv6 = net.ParseIP("fd00:c2b6:b24b:be67:2827:688d:e... |
// Copyright 2015 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 2015 The Vanadium 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 vom_test
import (
"bytes"
"fmt"
"io"
"math/rand"
"reflect"
"runtime"
"strings"
"sync"
"testing"
"v.io/v23/vdl"
"v.io/v23/vom"
"v.io/... |
package simulator_context
import (
"encoding/binary"
"encoding/hex"
"fmt"
"radio_simulator/lib/UeauCommon"
"radio_simulator/lib/milenage"
"radio_simulator/lib/nas/nasType"
"radio_simulator/lib/ngap/ngapType"
"radio_simulator/lib/openapi/models"
"radio_simulator/src/logger"
"sync"
)
// TS 33501 Annex A.8 Alg... |
package common
import (
"bytes"
"fmt"
"io"
"math/rand"
"os"
"os/exec"
"os/user"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
"github.com/adam-hanna/arrayOperations"
"github.com/alecthomas/participle/v2"
"github.com/alecthomas/participle/v2/lexer/stateful"
"github.com/mitchellh/mapstructure"
"git... |
// Copyright 2016 The Chromium 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 frontend
import (
"bytes"
"encoding/json"
"errors"
"io"
"mime/multipart"
"net/http"
"strconv"
"sync"
"time"
"golang.org/x/net/context"... |
package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net"
"net/http"
"reflect"
"strconv"
"strings"
"time"
"github.com/sirupsen/logrus"
admissionV1 "k8s.io/api/admission/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)
type ... |
// Query UPNP variables from Fritz!Box devices.
package fritzbox_upnp
// Copyright 2016 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LI... |
package gossip
import (
"context"
"fmt"
"time"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/pkg/errors"
"github.com/gohornet/hornet/pkg/dag"
"github.com/gohornet/hornet/pkg/metrics"
"github.com/gohornet/hornet/pkg/model/hornet"
"github.com/gohornet/hornet/pkg/model/milestone"
"github.com/gohornet/ho... |
// Copyright 2019 The Go Cloud Development Kit 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
// Copyright 2019, 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... |
// Copyright 2011 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 ldap
import (
"bytes"
hexpac "encoding/hex"
"errors"
"fmt"
"strings"
"unicode/utf8"
"github.com/CertiVox-i3-NTT/asn1-ber"
)
const (
FilterAnd... |
package gas
import (
"bytes"
"context"
"encoding/json"
"fmt"
"math"
"math/big"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/pkg/errors"
"github.com/shopspring/decimal"
"github.com/smartcontractkit/chainlink/core/chains"
evmclient "github.co... |
// 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.
// This file contains test cases for short valid and invalid programs.
package parser
import (
"go/internal/typeparams"
"testing"
)
var valids = []string{
... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: monitor/v1/monitor.proto
// Monitor Service
//
// The Key Transparency monitor server service consists of APIs to fetch
// monitor results queried using the mutations API.
package monitor_go_proto
import (
context "context"
fmt "fmt"
proto "github.com/go... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0-devel
// protoc v3.11.4
// source: tensorflow/core/framework/allocation_description.proto
package framework
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"... |
// Copyright 2017 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... |
package main
import (
"bufio"
"encoding/binary"
"flag"
"fmt"
"io"
"log"
"os"
"path/filepath"
"sort"
"strings"
)
var flags struct {
Consecutive bool
Recursive bool
PatternFiles MultiFlag
Files []string
Base uint64
}
var (
matcher = NewMatcher()
status int
)
func main() {
log.Set... |
/*
Package object contains objects for VK.
See more https://vk.com/dev/objects
*/
package object // import "github.com/SevereCloud/vksdk/v2/object"
import (
"bytes"
"encoding/json"
"reflect"
)
// Attachment interface.
type Attachment interface {
ToAttachment() string
}
// JSONObject interface.
type JSONObject i... |
package fenxiao
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
添加产品 APIRequest
taobao.fenxiao.product.add
添加分销平台产品数据。业务逻辑与分销系统前台页面一致。<br/><br/> * 产品图片默认为空<br/> * 产品发布后默认为下架状态
*/
type TaobaoFenxiaoProductAddRequest struct {
model.Params
// 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费)... |
package collector
import (
"github.com/jackc/pgx/v4"
"github.com/prometheus/client_golang/prometheus"
"github.com/weaponry/pgscv/internal/log"
"github.com/weaponry/pgscv/internal/model"
"github.com/weaponry/pgscv/internal/store"
"strconv"
"strings"
)
const (
userTablesQuery = "SELECT current_database() AS dat... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: orc8r/protos/mconfig.proto
package protos
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal... |
/**
* (C) Copyright 2014, Deft Labs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// Copyright 2019 GoAdmin Core Team. All rights reserved.
// Use of this source code is governed by a Apache-2.0 style
// license that can be found in the LICENSE file.
package plugins
import (
"bytes"
"net/http"
"strings"
"time"
"github.com/GoAdminGroup/go-admin/context"
"github.com/GoAdminGroup/go-admin/modu... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2/webhook.proto
package dialogflow
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf4 "github.com/golang/protob... |
/* Copyright 2017 The Bazel Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... |
/*
Copyright 2019 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
package report
import (
"fmt"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
"github.com/ghodss/yaml"
"github.com/jenkins-x/jx/pkg/cmd/helper"
"github.com/jenkins-x/jx/pkg/cmd/opts"
"github.com/jenkins-x/jx/pkg/cmd/opts/step"
"github.com/jenkins-x/jx/pkg/cmd/templates"
"github.com/jenkins-x/jx/pkg/kube... |
package translate
import (
"bytes"
"crypto/ecdsa"
"encoding/binary"
"encoding/gob"
"encoding/hex"
"errors"
"fmt"
ds "github.com/ipfs/go-datastore"
ic "github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/peer"
pstore_pb "github.com/libp2p/go-libp2p-peerstore/pb"
"github.com/multiforma... |
/*
* 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 boshdeployment
import (
"context"
"strconv"
"time"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/cont... |
// Copyright 2019 The Hugo 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 ... |
/*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
* This source code is licensed under the Apache License Version 2.0.
*/
package tke
import (
"encoding/json"
"errors"
"fmt"
"github.com/google/uuid"
"io/ioutil"
"nocalhost/pkg/nhctl/log"
"nocalhost/test/util"
"os"
"runtime"
"... |
// Function handling and built-in functions for littlelang interpreter
package interpreter
import (
"fmt"
"io/ioutil"
"sort"
"strconv"
"strings"
"github.com/benhoyt/littlelang/parser"
. "github.com/benhoyt/littlelang/tokenizer"
)
type functionType interface {
call(interp *interpreter, pos Position, args []V... |
package rawexec
import (
"context"
"fmt"
"os"
"path/filepath"
"runtime"
"strconv"
"syscall"
"time"
"github.com/hashicorp/consul-template/signals"
hclog "github.com/hashicorp/go-hclog"
plugin "github.com/hashicorp/go-plugin"
"github.com/hashicorp/nomad/client/driver/executor"
dstructs "github.com/hashicor... |
package wulai
//IntentSwitchMode 意图切换模式
type IntentSwitchMode string
const (
//INTENT_SWITCH_MODE_SWITCH :优先切换到其他意图
INTENT_SWITCH_MODE_SWITCH IntentSwitchMode = "INTENT_SWITCH_MODE_SWITCH"
//INTENT_SWITCH_MODE_STAY :优先停留在当前意图并填槽
INTENT_SWITCH_MODE_STAY IntentSwitchMode = "INTENT_SWITCH_MODE_STAY"
)
type Trigger... |
package couchbase
import (
"errors"
"fmt"
"math/rand"
"sync"
"sync/atomic"
"time"
"github.com/couchbase/eventing/dcp/transport/client"
"github.com/couchbase/eventing/logging"
)
// ErrorInvalidVbucket
var ErrorInvalidVbucket = errors.New("dcp.invalidVbucket")
// ErrorFailoverLog
var ErrorFailoverLog = errors... |
package main
import (
"compress/flate"
"context"
"errors"
"fmt"
"html/template"
"mime"
"net"
"net/http"
"net/url"
"os"
"os/signal"
"path"
"regexp"
"strconv"
"strings"
"syscall"
"time"
"github.com/prymitive/karma/internal/alertmanager"
"github.com/prymitive/karma/internal/config"
"github.com/prymit... |
package main
import (
"compress/gzip"
"context"
"encoding/json"
"fmt"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/inconshreveable/log15"
"github.com/snabb/sitemap"
"github.com/sourcegraph/sourcegraph/lib/codeintel/lsif/protocol"
"github.com/sourcegraph/sourcegraph/lib/err... |
package k8sutils
import (
"context"
"path"
redisv1beta1 "redis-operator/api/v1beta1"
"sort"
"github.com/banzaicloud/k8s-objectmatcher/patch"
"github.com/go-logr/logr"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
... |
package terraform
import (
"fmt"
"reflect"
"sort"
"strconv"
"strings"
"github.com/mitchellh/copystructure"
"github.com/mitchellh/reflectwalk"
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/configs/configschema"
"github.com/hashicorp/terraform/configs... |
package climacell
import (
"encoding/json"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
// not real weather data (which is why the sample is from the geographically
// impossible coordinates 91 degrees north and 181 degrees west), but the same
// format as a real... |
// Copyright 2019 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 platform
import (
"context"
"fmt"
"io/ioutil"
"math/rand"
"net/http"
"net/http/httptest"
"strconv"
"time"
"chromiumos/tast/common/pe... |
// Copyright 2020 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package migrations
import (
"context"
"fmt"
"net/http"
"os"
"sort"
"testing"
"time"
"code.gitea.io/gitea/modules/migrations/base"
"github.com/str... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
package python
import (
"fmt"
"io"
"strings"
sitter "github.com/kiteco/go-tree-sitter"
"github.com/kiteco/kiteco/kite-golib/errors"
"github.com/kiteco/kiteco/kite-golib/lexicalv0/lexer/treesitter"
"github.com/kiteco/kiteco/kite-golib/lexicalv0/render"
)
const symERROR = 65535
// Config is the set of formatti... |
/*
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... |
package message
import (
"gosips/sip/address"
)
/**
* A SIP Request is a request from a client to a server. The following Requests
* method names are defined by <a href = "http://www.ietf.org/rfc/rfc3261.txt">
* RFC3261</a>:
* <ul>
* <li>ACK - confirms that client has received a final Response to an INVITE
* R... |
/*
Copyright 2019 The Rook 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 agr... |
package cmd
import (
"context"
"fmt"
"github.com/loft-sh/devspace/cmd/flags"
"github.com/loft-sh/devspace/pkg/devspace/build"
"github.com/loft-sh/devspace/pkg/devspace/config/loader"
"github.com/loft-sh/devspace/pkg/devspace/config/localcache"
"github.com/loft-sh/devspace/pkg/devspace/config/versions/latest"
d... |
/*
* 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... |
// Machine-generated file.
// See http://winterdrache.de/bindings for details.
package sdl
// #include "includes.h"
import "C"
// Defines keyboard scancodes.
// Usage page 0x07
//
// These values are from usage page 0x07 (USB keyboard page).
// Usage page 0x0C
//
// These values are mapped from usage page... |
package main
import (
"asciidoc2md/ast"
"asciidoc2md/markdown"
"asciidoc2md/settings"
"asciidoc2md/utils"
"bufio"
"cdr.dev/slog"
"context"
"errors"
"fmt"
"gopkg.in/yaml.v3"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
"regexp"
"strings"
)
type IdMapEntry struct {
FileName string
Caption string
}
ty... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// 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... |
// Package fetch contains mechanism to fetch data from remote peers
package fetch
import (
"fmt"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/database"
"github.com/spacemeshos/go-spacemesh/log"
p2pconf "github.com/spacemeshos/go-spacemesh/p2p/config"
"github.com/spaceme... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.