text stringlengths 8.57k 38.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: artifact/artifacts.proto
package artifact
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protob... |
// (c) 2019-2020, <NAME>, Inc.
//
// This file is a derived work, based on the go-ethereum library whose original
// notices appear below.
//
// It is distributed under a license compatible with the licensing terms of the
// original code from which it is derived.
//
// Much love to the original authors for their work.... |
// Copyright © 2016 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
// 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/gongmarkdown/go/models"
)
// dummy variab... |
// This code is available on the terms of the project LICENSE.md file,
// also available online at https://blueoakcouncil.org/license/1.0.0.
//go:build lgpl
package eth
import (
"bytes"
"context"
"crypto/sha256"
"errors"
"fmt"
"math/big"
"strings"
"sync"
"time"
"decred.org/dcrdex/dex"
"decred.org/dcrdex/... |
// Copyright 2020 Authors of Cilium
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
package syscalls
// cat /usr/include/x86_64-linux-gnu/asm/unistd_64.h|grep define|awk '{print "\"sys_"$2"\":" $3","}' |sed -s 's/__NR_//g'
var gSyscallMap = map[string]int{
"sys_read": 0,
"sys_write": 1,
"sys_open": 2,
"sys_close": 3,
"sys_stat... |
// 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 picturebook
import (
"bytes"
"context"
"encoding/binary"
"errors"
"fmt"
"github.com/aaronland/go-image-rotate"
"github.com/aaronland/go-image-tools/util"
"github.com/aaronland/go-mimetypes"
"github.com/aaronland/go-picturebook/caption"
"github.com/aaronland/go-picturebook/filter"
"github.com/aaronla... |
package trans
import (
"encoding/json"
"fmt"
"math/big"
"sync"
"time"
log "github.com/alecthomas/log4go"
"github.com/boxproject/voucher/config"
"github.com/boxproject/voucher/localdb"
"github.com/boxproject/voucher/util"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"g... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/ad_group_ad_asset_view.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
common "google.golang.org/genproto/googleapis... |
// Copyright (c) 2017-2018 Zededa, Inc.
// SPDX-License-Identifier: Apache-2.0
package zedagent
import (
"bytes"
"fmt"
"io/ioutil"
"net"
"net/http"
"net/url"
"os"
"strings"
"time"
"github.com/golang/protobuf/proto"
zconfig "github.com/lf-edge/eve/api/go/config"
"github.com/lf-edge/eve/pkg/pillar/base"
"... |
package gkvdb
import (
"bytes"
"errors"
"os"
"sync"
"github.com/gogf/gf/container/gtype"
"github.com/gogf/gf/encoding/gbinary"
"github.com/gogf/gf/os/gcache"
"github.com/gogf/gf/os/gfile"
"github.com/sanrentai/gkvdb/gkvdb/gfilespace"
)
// 数据表
type Table struct {
mu sync.RWMutex // 并发互斥锁
db *DB ... |
// 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 ... |
// Copyright 2019 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.19.4
// source: envoy/extensions/common/tap/v3/common.proto
package tapv3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
v3 "github.com/envoyproxy/go-control-plane/envoy/config/tap/v3"
_ "github.com/e... |
/*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* or in the "... |
// 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... |
package search
import (
"bytes"
"context"
"errors"
"io"
"regexp"
"regexp/syntax"
"strings"
"sync"
"sync/atomic"
"time"
"unicode"
"unicode/utf8"
"github.com/sourcegraph/sourcegraph/cmd/searcher/protocol"
"github.com/sourcegraph/sourcegraph/internal/pathmatch"
"github.com/sourcegraph/sourcegraph/internal... |
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// source: /usr/share/vpp/api/core/punt.api.json
/*
Package punt is a generated VPP binary API for 'punt' module.
It consists of:
5 enums
5 aliases
11 types
2 unions
10 messages
5 services
*/
package punt
import (
"bytes"
"context"
"io"
... |
/*
* Copyright (C) 2019 Red Hat, 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... |
package okex
import (
"fmt"
"github.com/go-openapi/errors"
. "github.com/lucas7788/goex"
"github.com/lucas7788/goex/internal/logger"
"net/url"
"sort"
"strconv"
"strings"
"time"
)
type OKExSpot struct {
*OKEx
}
// [{
// "frozen":"0",
// "hold":"0",
// "id":"9150707",
// "currency... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.15.8
// source: url/url.proto
package url
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
c... |
// Copyright 2017 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/
//
// Unless required by appl... |
// Copyright 2016 PingCAP, 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 i... |
package mandy
import (
"../utils"
"../utils/git"
"../utils/shell"
"io/ioutil"
"time"
"strings"
"strconv"
"encoding/json"
"sort"
)
const MANDY_TAG = "Mandy"
const GITHUB_HTTP = "git://github.com"
const AOSPA_MANIFEST_NAME = "manifest"
const AOSPA_MANIFEST_URL = GITHUB_HTTP + "/AOSPA/manifest.git"
const MANI... |
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// Giorgis (<EMAIL>)
package libavcodec
//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
//#include <libavutil/opt.h>
import "C"
import (
"reflect"
"unsafe"
)
// Release ...
func (cctx *AvCodecContext) Re... |
/*
Copyright 2021 Skyscanner Limited.
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... |
// Copyright (c) 2012-2016 The Revel Framework Authors, All rights reserved.
// Revel Framework source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
package harness
// This file handles the app code introspection.
// It catalogs the controllers, their methods, and their a... |
// Copyright 2016 <NAME>. 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... |
// 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.
// DNS packet assembly. See RFC 1035.
//
// This is intended to support name resolution during net.Dial.
// It doesn't have to be blazing fast.
//
// Rather th... |
//
// DISCLAIMER
//
// Copyright 2017 ArangoDB GmbH, Cologne, Germany
//
// 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 require... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: connectionless_netmessages.proto
package dota
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.o... |
// 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... |
// Copyright 2016 NDP Systèmes. 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 applica... |
// Copyright 2022 The Go Language Server Authors
// SPDX-License-Identifier: BSD-3-Clause
package compiler
import (
"context"
"encoding/json"
"errors"
"fmt"
"os"
"path"
"strconv"
"strings"
"github.com/bytedance/sonic"
"github.com/getkin/kin-openapi/openapi3"
"github.com/go-openapi/jsonpointer"
"github.co... |
package trygo
import (
"errors"
"fmt"
"reflect"
"regexp"
"strconv"
"strings"
)
//`field:"name,limit:20,scope:[1 2 3],default:1,require,pattern:regex"`
//key: is tag item name, value: indicates whether there is value
var supportedTagitems = map[string]bool{
"limit": true,
"scope": true,
"default": true,
... |
// Package core contains the core Bazelisk logic, as well as abstractions for Bazel repositories.
package core
// TODO: split this file into multiple smaller ones in dedicated packages (e.g. execution, incompatible, ...).
import (
"bufio"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
"os/signal... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/mutate_job.proto
package resources
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
wrappers "github.com/catper/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/googlead... |
/*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
package tetra3d
import (
"math"
"strconv"
"github.com/kvartborg/vector"
)
// Matrix4 represents a 4x4 matrix for translation, scale, and rotation. A Matrix4 in Tetra3D is row-major (i.e. the X axis is matrix[0]).
type Matrix4 [4][4]float64
// NewMatrix4 returns a new identity Matrix4. A Matrix4 in Tetra3D is row... |
// 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... |
package state
import (
"encoding/json"
"github.com/alexbednarczyk/tesla-gopher/common"
)
const dataPath = "/vehicle_data"
const chargeStatePath = "/data_request/charge_state"
const climateStatePath = "/data_request/climate_state"
const driveStatePath = "/data_request/drive_state"
const guiSettingsPath = "/data_req... |
package main
import (
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"net/url"
"strconv"
"strings"
"time"
"donpdonp/gluon/comm"
"donpdonp/gluon/util"
"donpdonp/gluon/vm"
"github.com/ethereum/go-ethereum/crypto/secp256k1"
"github.com/robertkrimen/otto"
"golang.org/x/crypto/sha3"
)
var (
vm_list = vm.Li... |
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.14.0
// source: com/daml/ledger/api/v1/ledger_identity_service.proto
pa... |
// Copyright 2016 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... |
package raft
//
// this is an outline of the API that raft must expose to
// the service (or tester). see comments below for
// each of these functions for more details.
//
// rf = Make(...)
// create a new Raft server.
// rf.Start(command interface{}) (index, Term, isleader)
// start agreement on a new log entry
... |
/*
Package gopidfile provides tools for creating pidfiles and associating them with running processes. It can be used
as a library as part of a daemon, etc., or it can be used standalone as a command line wrapper.
*/
package gopidfile
import (
"context"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"runtime"
... |
package contractcourt
import (
"errors"
"fmt"
"sync"
"sync/atomic"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/dcrutil"
"github.com/decred/dcrd/wire"
"github.com/decred/dcrlnd/chainntnfs"
"github.com/decred/dcrlnd/channeldb"
"github.com/decred/dcrlnd/lnwallet"
"github.com/decred/dcr... |
/*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/*
Copyright 2015 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 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.1
// source: envoy/extensions/retry/priority/previous_priorities/v3/previous_priorities_config.proto
package previous_prioritiesv3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
_ "github.com/envoyp... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/config/filter/network/tcp_proxy/v2/tcp_proxy.proto
/*
Package v2 is a generated protocol buffer package.
It is generated from these files:
envoy/config/filter/network/tcp_proxy/v2/tcp_proxy.proto
It has these top-level messages:
TcpProxy
*/
package ... |
// This module contains a collection of YANG definitions
// for Cisco IOS-XR infra-infra-locale package configuration.
//
// This module contains definitions
// for the following management objects:
// locale: Define the geographical locale
//
// Copyright (c) 2013-2017 by Cisco Systems, Inc.
// All rights reserved... |
package geometry
import (
"math"
"github.com/tab58/v1/spatial/pkg/numeric"
"gonum.org/v1/gonum/blas/blas64"
)
// Matrix4D is a row-major representation of a 4x4 matrix.
type Matrix4D struct {
elements [16]float64
}
// Rows returns the number of rows in the matrix.
func (m *Matrix4D) Rows() uint { return 4 }
//... |
package exchange
import (
"crypto/rsa"
"crypto/sha256"
"encoding/json"
"fmt"
"github.com/open-horizon/anax/cli/cliconfig"
"github.com/open-horizon/anax/cli/cliutils"
"github.com/open-horizon/anax/common"
"github.com/open-horizon/anax/compcheck"
"github.com/open-horizon/anax/cutil"
"github.com/open-horizon/an... |
// Code generated by main. DO NOT EDIT.
package sese_019_001_01
import (
"bytes"
"encoding/xml"
"time"
)
type Account5 struct {
Id Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:sese.019.001.01 Id,omitempty"`
Dsgnt Max35Text `xml:"urn:iso:std:iso:20022:tech:xsd:sese.019.001.... |
// BSD-3-Clause
//
// Copyright 2021 <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:
// 1. Redistributions of source code must retain the above copyright notice,
// this list of cond... |
package models
import (
"encoding/xml"
)
// Input vMix Input struct
type Input struct {
Text string `xml:",chardata"`
Type string `xml:"Type,attr"`
Position string `xml:"Position,attr"`
RangeStart ... |
package kv
import (
"bufio"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"strings"
"sync"
"time"
log "github.com/sirupsen/logrus"
"github.com/neuvector/neuvector/controller/access"
"github.com/neuvector/neuvector/controller/api"
"github.com/neuvector/neuvector/controller/common"
"github.com/neuvector/neuve... |
package svg
// uses github.com/tdewolff/hasher
//go:generate hasher -type=Hash -file=hash.go
// Hash defines perfect hashes for a predefined list of strings
type Hash uint32
// Identifiers for the hashes associated with the text in the comments.
const (
A Hash = 0x101 // a
Alignment_Ba... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: proto/hello/api.proto
package hello
import (
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect... |
// 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 reflect
import (
"unsafe"
)
var native ffiReflect
func init() {
native = ffi(ffiReflect, "reflect")
}
type ffiReflect interface {
value_of(i inte... |
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package textencoding
import (
"github.com/unidoc/unidoc/common"
"github.com/unidoc/unidoc/pdf/core"
)
// Encoding for ZapfDingbats font.
type ZapfDingbatsEncoder struct {
}
func N... |
// Copyright (c) 2018-2019, AT&T Intellectual Property. All rights reserved.
//
// Copyright (c) 2015-2017 by Brocade Communications Systems, Inc.
// All rights reserved.
//
// SPDX-License-Identifier: MPL-2.0
// This file contains the 'context' object used to run a machine with a
// specific context.
package xpath
... |
// Copyright 2019-2020 <NAME>. All rights reserved. Use of this source
// code is governed by the MIT license that can be found in the LICENSE
// file.
// Package ui contains user-interface functions and helpers for termshark.
package ui
import (
"fmt"
"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"git... |
// Code generated by protoc-gen-go.
// source: google/logging/v2/log_entry.proto
// DO NOT EDIT!
/*
Package v2 is a generated protocol buffer package.
It is generated from these files:
google/logging/v2/log_entry.proto
google/logging/v2/logging_config.proto
google/logging/v2/logging_metrics.proto
google/logging/v... |
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package prototype
import (
"bytes"
"fmt"
"strings"
"sync"
pragma "github.com/golang/protobuf/v2/internal/pragma"
pfmt "github.com/golang/protobuf/v2/int... |
package meta
import (
"strconv"
)
//go:generate msgp
// FocalLength is a Focal Length expressed in millimeters.
type FocalLength float32
const (
// FocalLength Suffix in millimeters
sufFocalLength = "mm"
)
// NewFocalLength returns a new FocalLength by dividing
// "n" numerator and "d" demoninator
func NewFocal... |
// Package ipfsproxy implements the Cluster API interface by providing an
// IPFS HTTP interface as exposed by the go-ipfs daemon.
//
// In this API, select endpoints like pin*, add*, and repo* endpoints are used
// to instead perform cluster operations. Requests for any other endpoints are
// passed to the underlying ... |
/*
Copyright (c) 2017-2018 VMware, 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 law or agr... |
// Copyright 2020 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 textinput
import (
"context"
"strings"
"sync"
"time"
"unicode"
"github.com/atotto/clipboard"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
rw "github.com/mattn/go-runewidth"
)
const defaultBlinkSpeed = time.Millisecond * 530
// Internal ID management for text inputs. ... |
/*
Copyright 2019 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
package workflowrun
import (
"fmt"
"os"
"reflect"
"sync"
"time"
log "github.com/sirupsen/logrus"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/record"
"k8s.io/client-go/util/retry"
"git... |
package graphqlbackend
import (
"context"
"encoding/json"
"fmt"
"sort"
"strconv"
"sync"
"time"
"github.com/inconshreveable/log15"
"github.com/neelance/parallel"
"github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext"
"github.com/prometheus/client_golang/prometheus"
"github.com... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package telemetry
import (
"context"
"crypto/ecdsa"
"encoding/json"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"strings"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/s... |
package marketplace
import (
"fmt"
"github.com/lib/pq"
"math"
"qxklmrhx7qkzais6.onion/Tochka/tochka-free-market/modules/util"
"sort"
"time"
)
/*
Models
*/
type SerpItem struct {
ItemUuid string `json:"item_uuid"`
// Vendor details
StoreUuid string `json:"-"`
Storename string `json:"storenam... |
// Copyright 2022 The CubeFS 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 open provides functions for handling data related to the GlobalPlatform Environment OPEN.
package open
import (
"fmt"
"math/bits"
"github.com/pkg/errors"
"github.com/skythen/bertlv"
"github.com/skythen/gobalplatform/aid"
"github.com/skythen/gobalplatform/tag"
)
const (
LCSElfLoaded ... |
package parser
import(
"github.com/PuerkitoBio/goquery"
"bytes"
"fmt"
"strings"
"encoding/json"
"net/url"
)
const BaseYandexURL = "https://yandex.ru/search/touch/?service=www.yandex&ui=webmobileapp.yandex&numdoc=50&lr=213&p=0&text=%s"
type responseStruct struct {
Error error
Items []responseItem
}
type re... |
package types
import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"sort"
)
// liquidity module const types for swap
const (
// Price Directions
Increase = 1
Decrease = 2
Stay = 3
// Match Types
ExactMatch = 1
NoMatch = 2
FractionalMatch = 3
//OrderLifeSpanHeight = 0
DirectionXtoY =... |
/*
Livepeer is a peer-to-peer global video live streaming network. The Golp project is a go implementation of the Livepeer protocol. For more information, visit the project wiki.
*/
package main
import (
"context"
"errors"
"flag"
"fmt"
"io/ioutil"
"math/big"
"net/http"
"net/url"
"os"
"os/signal"
"os/user"... |
// Copyright 2018 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// Code generated by gen-benchmarks; DO NOT EDIT.
package boolNodes
import (
"testing"
)
func Benchmark2Off(b *testing.B) { runBenchmark(b, "2Off") }
func B... |
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"math/rand"
"os"
"regexp"
"runtime"
"strconv"
"strings"
"sync"
"time"
"github.com/alecthomas/kingpin"
foundation "github.com/estafette/estafette-foundation"
"github.com/rs/zerolog/log"
"github.com/prometheus/client_golang/prometheus"
"... |
//
// (C) Copyright 2019-2022 Intel Corporation.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1-devel
// protoc v3.5.0
// source: ctl/ctl.proto
package ctl
import (
protoreflect "google.golang.org/protobuf/reflect... |
package main
import (
"fmt"
"net"
"strings"
"time"
"github.com/miekg/dns"
"github.com/markdingo/autoreverse/dnsutil"
"github.com/markdingo/autoreverse/log"
)
// Many serve* functions either serve their answer or return a pending result as they do
// not know whether the caller has other options available to ... |
package crowdsort
import (
"fmt"
"math"
"math/rand"
"sort"
)
// A unique identifier for a batch of comparisons
type BatchId string
// PSortable describes the methods necessary to sort by performing comparisons
// in parallel. In addition to the standard sort.Interface methods, we have a
// methods ScheduleLess()... |
package sync
import (
"sync/atomic"
"github.com/elastos/Elastos.ELA.SPV/blockchain"
"github.com/elastos/Elastos.ELA.SPV/fprate"
"github.com/elastos/Elastos.ELA.SPV/peer"
"github.com/elastos/Elastos.ELA.SPV/util"
"github.com/elastos/Elastos.ELA/common"
"github.com/elastos/Elastos.ELA/p2p/msg"
)
const (
// mi... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/v1beta1/attestation.proto
package attestation_go_proto // import "github.com/grafeas/grafeas/proto/v1beta1/attestation_go_proto"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress error... |
// Copyright 2016 PingCAP, 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 i... |
// Package fsys is an abstraction for reading files that
// allows for virtual overlays on top of the files on disk.
package fsys
import (
"encoding/json"
"errors"
"fmt"
"io/fs"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"sort"
"strings"
"time"
)
// OverlayFile is the path to a text file in the OverlayJSON... |
// +build f10x_md
// Peripheral: RCC_Periph Reset and Clock Control.
// Instances:
// RCC mmap.RCC_BASE
// Registers:
// 0x00 32 CR
// 0x04 32 CFGR
// 0x08 32 CIR
// 0x0C 32 APB2RSTR
// 0x10 32 APB1RSTR
// 0x14 32 AHBENR
// 0x18 32 APB2ENR
// 0x1C 32 APB1ENR
// 0x20 32 BDCR
// 0x24 32 CSR
// Imp... |
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ticket
import (
"bytes"
"crypto/ecdsa"
"encoding/hex"
"errors"
"fmt"
"math/big"
"strconv"
"strings"
"sync"
"time"
"github.com/bnchain/bnchain... |
package fluxmonitor_test
import (
"encoding/json"
"fmt"
"math/big"
"strings"
"sync/atomic"
"testing"
"time"
"github.com/vordev/VOR/core/internal/cltest"
"github.com/vordev/VOR/core/internal/gethwrappers/generated/flags_wrapper"
faw "github.com/vordev/VOR/core/internal/gethwrappers/generated/flux_aggregator_... |
// Copyright 2017 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, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.