text stringlengths 8.57k 38.1k |
|---|
package imagecollage
import (
"errors"
"fmt"
"log"
"sort"
)
// stb_rect_pack.h - v1.01 - public domain - rectangle packing
// <NAME> 2014
//
// Useful for e.g. packing rectangular textures into an atlas.
// Does not do rotation.
//
// Before #including,
//
// #define STB_RECT_PACK_IMPLEMENTATION
//
// in the f... |
/*
* Copyright 2017 XLAB d.o.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package model2d
import (
"math"
"math/rand"
"sort"
"github.com/unixpickle/essentials"
"github.com/unixpickle/model3d/numerical"
)
const (
DefaultBezierFitterNumIters = 100
DefaultBezierFitTolerance = 1e-8
DefaultBezierFitDelta = 1e-6
DefaultBezierFitMinStepScale = 1e-2
DefaultBezierFitLineStep ... |
// Copyright (c) 2013 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 w... |
package txnetwork
import (
"bytes"
"fmt"
"github.com/abchain/fabric/core/gossip"
model "github.com/abchain/fabric/core/gossip/model"
"github.com/abchain/fabric/core/gossip/stub"
pb "github.com/abchain/fabric/protos"
)
type txMemPoolItem struct {
digest []byte
digestSeries uint64
tx *pb.Transa... |
package workers
import (
"encoding/json"
"fmt"
"github.com/APTrust/exchange/constants"
"github.com/APTrust/exchange/context"
"github.com/APTrust/exchange/models"
"github.com/APTrust/exchange/network"
"github.com/APTrust/exchange/util"
"github.com/nsqio/go-nsq"
"net/url"
"strings"
"time"
)
// TODO: Move con... |
package domain
import (
"context"
"database/sql"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
"reflect"
"regexp"
"strconv"
"strings"
"sync"
"time"
"unicode"
"github.com/gobuffalo/buffalo"
"github.com/gobuffalo/envy"
mwi18n "github.com/gobuffalo/mw-i18n"
"github.com/gobuffalo/packr/v2"
"github.... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/proposal.proto
package peer // import "github.com/hyperledger/fabric/protos/peer"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import token "github.com/hyperledger/fabric/protos/token"
// Reference imports to supp... |
// Licensed to the LF AI & Data foundation 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 th... |
// Licensed to 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. Apache Software Foundation (ASF) licenses this file to you under
// the Apache License, Version 2.0 (the "Li... |
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package followschema
import (
"context"
introspection1 "github.com/99designs/gqlgen/codegen/testserver/followschema/introspection"
invalid_packagename "github.com/99designs/gqlgen/codegen/testserver/followschema/invalid-packagename"
"github.com/99des... |
// Code generated by protoc-gen-go.
// source: github.com/micro/go-os/router/proto/router.proto
// DO NOT EDIT!
/*
Package go_micro_os_router is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-os/router/proto/router.proto
It has these top-level messages:
Stats
Service
N... |
package smokescreen
import (
"context"
"crypto/tls"
"errors"
"fmt"
"io"
"net"
"net/http"
"os"
"os/signal"
"strings"
"syscall"
"time"
proxyproto "github.com/armon/go-proxyproto"
"github.com/rs/xid"
"github.com/sirupsen/logrus"
"github.com/stripe/goproxy"
"github.com/stripe/smokescreen/internal/einhorn... |
// Copyright 2014 The Gogs 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 models
import (
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"net/smtp"
"net/textproto"
"regexp"
"strings"
"github.com/Unknwon/com"
"github... |
package config
import (
"fmt"
"os"
"path/filepath"
"time"
"github.com/lianxiangcloud/linkchain/libs/log"
)
const (
// FuzzModeDrop is a mode in which we randomly drop reads/writes, connections or sleep
FuzzModeDrop = iota
// FuzzModeDelay is a mode in which we randomly sleep
FuzzModeDelay
)
// NOTE: Most o... |
// 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 config
import (
"encoding/json"
"fmt"
"github.com/GoAdminGroup/go-admin/modules/logger"
"github.com/GoAdminGroup/go-admin/modules/utils"
... |
// The MIT License
//
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
//
// 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 limit... |
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the cod... |
// sms_service_ReportService.go
package v4
import (
"encoding/json"
// "time"
"errors"
"fmt"
)
// 通过 ReportService,您可以获取推广效果的详细报表。
// 说明: 目前报告总体分为两种类型:实时报告和异步报告。实时报告适用于小量、移动推广客户端等等
// 来使用,返回条数有限制,但是实时响应性强。异步报告需要从获取的链接进行报告下载。
// 目前分小时报告提供到“账户”和“计划”粒度。 搜索词报告数据非完全实时,系统无法为您提供 3 个小时以内的结果。
const (
GET_RealTimeQueryDat... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: target.proto
package api
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 compile-tim... |
// Copyright (c) of parts are held by the various contributors (see the CLA)
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
package opr
import (
"context"
"crypto/sha256"
"encoding/binary"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"os"
"sort"
"strco... |
// Copyright 2019 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 postgres
import (
"context"
"database/sql"
"fmt"
"sort"
"strings"
"github.com/Masterminds/squirrel"
"github.com/lib/pq"
"golang.org/x/pkgsite/... |
package snapshot
import (
"context"
"encoding/json"
"fmt"
"os"
"path/filepath"
"time"
iotago "github.com/iotaledger/iota.go/v3"
"github.com/pkg/errors"
"github.com/gohornet/hornet/pkg/common"
"github.com/gohornet/hornet/pkg/dag"
"github.com/gohornet/hornet/pkg/database"
"github.com/gohornet/hornet/pkg/m... |
package generators
import (
"bytes"
"fmt"
"math"
"time"
"github.com/MichaelTJones/pcg"
"github.com/globalsign/mgo/bson"
"github.com/manveru/faker"
)
// CollInfo stores global info on the collection to generate
type CollInfo struct {
// number of document in the collection
Count int
// MongoDB version
Vers... |
package main
import (
"crypto/tls"
"errors"
"fmt"
"github.com/RediSearch/redisearch-go/redisearch"
"net/http"
"net/url"
"reflect"
"strings"
"sync"
"time"
"github.com/gomodule/redigo/redis"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
promstru... |
// Package frame implements access to FLAC audio frames.
//
// A brief introduction of the FLAC audio format [1] follows. FLAC encoders
// divide the audio stream into blocks through a process called blocking [2]. A
// block contains the unencoded audio samples from all channels during a short
// period of time. Each a... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: moc_common_computecommon.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
// ... |
package main
import (
"os"
"io/ioutil"
"strings"
"strconv"
"fmt"
"ioncreate.com/tools/vvssh/utils"
"github.com/spf13/pflag"
"errors"
"ioncreate.com/tools/vvssh/plugin"
"bufio"
"regexp"
"io"
)
/*
以下在我41岁第一天时思路变化,:
我要创造一个简单的语言v,用来控制SSH,:
语言特征为:每行一个语句. 命令或者变量特征为$$开头空格结尾
<< 表示向SSH 命令输出 空格 后面跟命令 是内部命令 可以有$$... |
package main
import (
"errors"
"fmt"
"github.com/go-gl/gl/v3.3-core/gl"
"github.com/go-gl/glfw/v3.1/glfw"
"github.com/go-gl/mathgl/mgl32"
"github.com/nfnt/resize"
"image"
"image/draw"
_ "image/jpeg"
"log"
"math"
"os"
"runtime"
"strings"
"unsafe"
)
func init() {
runtime.LockOSThread()
}
func glDebugCa... |
package gsm
// taken from http://www.unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT
var escDecode = map[byte]*utf8Enc{
0x0A: {1, [3]byte{0x0c, 0x00, 0x00}}, // FORM FEED
0x14: {1, [3]byte{0x5e, 0x00, 0x00}}, // CIRCUMFLEX ACCENT
0x28: {1, [3]byte{0x7b, 0x00, 0x00}}, // LEFT CURLY BRACKET
0x29: {1, [3]byte{0x7d, 0x0... |
package road_generator
import (
"fmt"
"log"
"math"
"math/rand"
"sort"
"upsilon_cities_go/lib/cities/city"
"upsilon_cities_go/lib/cities/map/grid"
"upsilon_cities_go/lib/cities/map/map_generator/map_level"
"upsilon_cities_go/lib/cities/map/pattern"
"upsilon_cities_go/lib/cities/node"
"upsilon_cities_go/lib/c... |
// Package bch facilitates the use of Bose-Chaudhuri-Hocquenghem (BCH) codes and error checking.
// Note that the basis of this package is ported from the example at http://www.eccpage.com/bch3.c.
package bch
import (
"fmt"
"math"
)
type cachedTotalSize struct {
dataLength int
correctableErrors int
}
var... |
/**********************************************************************
* Unicode Test *
* <NAME> *
* <EMAIL> *
* v1.00 - 2017-01-09 ... |
package mesh
import "math"
// The implementation of the eigenvalue decomposition
// algorithm has been adapted from JAMA.
// http://www.iaa.ncku.edu.tw/~dychiang/lab/program/mohr3d/source/Jama%5CEigenvalueDecomposition.html
type eigen struct {
n int // square matrix size
// storage of eigenvectors
v Mesher
// sto... |
package main
import (
"bytes"
"fmt"
"math"
"os"
"os/signal"
"sort"
"syscall"
"time"
"github.com/gocql/gocql"
"github.com/uber/cherami-thrift/.generated/go/shared"
"github.com/urfave/cli"
)
// TODO:
// - look at (unmerged) DLQ extents, as well
// - sort extents appropriately for "consuming", "unconsumed" a... |
package morph
import (
"yap/alg/perceptron"
"yap/nlp/parser/dependency"
"yap/util"
G "yap/alg/graph"
Transition "yap/alg/transition"
TransitionModel "yap/alg/transition/model"
T "yap/nlp/parser/dependency/transition"
nlp "yap/nlp/types"
"log"
"runtime"
"sort"
"testing"
)
// sent: HELIM MZHIBIM .
// latti... |
// SPDX-License-Identifier: MIT
package gl
import (
"errors"
"math"
"syscall"
"unsafe"
)
var (
gpActiveTexture uintptr
gpAttachShader uintptr
gpBindAttribLocation uintptr
gpBindBuffer uintptr
gpBindFramebufferEXT uintptr
gpBindTexture ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: proto/token_get_nft_infos.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflec... |
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.
package main
import (
"context"
"fmt"
"os"
"path"
"strconv"
"strings"
"sync"
"time"
"github.com/alecthomas/units"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/oklog/run"
"github.com/opentracing/op... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: pb/options.proto
package pb
import (
_ "github.com/fizx/go-proto-gql/pb"
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "g... |
// Copyright (c) 2020 Tailscale Inc & 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 resolver
import (
"bytes"
"context"
"encoding/binary"
"errors"
"fmt"
"io"
"io/ioutil"
"math/rand"
"net"
"net/http"
"runtime"
"s... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: infra/qscheduler/qslib/protos/state.proto
package protos
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
)
// Reference imports to suppress errors if they are not otherwise... |
package compiler
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"go/ast"
"go/constant"
"go/token"
"go/types"
"net/url"
"runtime/debug"
"sort"
"strconv"
"strings"
"text/template"
"unicode"
"github.com/gopherjs/gopherjs/compiler/analysis"
"github.com/gopherjs/gopherjs/compiler/typesutil"
)
func (fc... |
// Copyright 2018 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 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 types
import (
"go/token"
"sync"
"sync/atomic"
)
// Type-checking Named types is subtle, because they may be recursively
// defined, and because th... |
package org
import (
"fmt"
"html"
"log"
"regexp"
"strconv"
"strings"
"unicode"
h "golang.org/x/net/html"
"golang.org/x/net/html/atom"
)
// HTMLWriter exports an org document into a html document.
type HTMLWriter struct {
ExtendingWriter Writer
HighlightCodeBlock func(source, lang string, inline bool)... |
// 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
//
// 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.
// source: envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.proto
package envoy_config_filter_network_thrift_proxy_v2alpha1
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "g... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/maps/playablelocations/v3/resources.proto
package playablelocations
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
_ "google.golang.org/genproto/googleapis/type/l... |
// Code generated by protoc-gen-go.
// source: api.proto
// DO NOT EDIT!
/*
Package types is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
GetServerVersionRequest
GetServerVersionResponse
StartDownloadRequest
StartDownloadResponse
StopDownload... |
// 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 (c) 2020 tickstep.
//
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: storage.proto
package zconfig
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type DsType ... |
package main
/*
* This file is part of theary.
*
* It uses portion of code from Go-Guerrilla SMTPd
* Copyright (c) 2012 Flashmob, GuerrillaMail.com
*
* theary is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foun... |
// Package commandeer sets up command line flags based on the fields and field
// tags of a struct. It helps ease common pains of CLI app development by
// allowing you to unobtrusively define flags in a library package while having
// a tiny main package which calls commandeer.Run* or commandeer.Flags.
//
// Run is th... |
package matcher
import (
"bufio"
"encoding/hex"
"fmt"
"os"
"path/filepath"
"time"
"github.com/decred/dcrd/chaincfg"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/dcrutil"
"github.com/decred/dcrd/txscript"
"github.com/decred/dcrd/wire"
"github.com/decred/slog"
"github.com/matheusd/dc... |
/*
Copyright 2014 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 2019 asana Author. 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... |
package parser_test
import (
"math"
"math/big"
"regexp"
"testing"
"github.com/tada/dgo/dgo"
"github.com/tada/dgo/internal"
"github.com/tada/dgo/stringer"
"github.com/tada/dgo/test/assert"
"github.com/tada/dgo/test/require"
"github.com/tada/dgo/tf"
"github.com/tada/dgo/typ"
"github.com/tada/dgo/vf"
)
func... |
package client
import (
"context"
"encoding/json"
"github.com/jjeffcaii/reactor-go/scheduler"
"github.com/rsocket/rsocket-go"
"github.com/rsocket/rsocket-go/payload"
"github.com/rsocket/rsocket-go/rx"
"github.com/rsocket/rsocket-go/rx/flux"
"github.com/rsocket/rsocket-go/rx/mono"
"github.com/google/uuid"
log... |
package main
import (
"encoding/hex"
"flag"
"fmt"
"log"
"math/rand"
"os"
"os/signal"
"strconv"
"strings"
"syscall"
"time"
"github.com/bwmarrin/discordgo"
)
var (
//変数定義
prefix = flag.String("prefix", "", "call prefix")
token = flag.String("token", "", "bot token")
clientID ... |
/*
Copyright 2014 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 contractor
// contracts.go handles forming and renewing contracts for the contractor. This
// includes deciding when new contracts need to be formed, when contracts need
// to be renewed, and if contracts need to be blacklisted.
import (
"errors"
"fmt"
"math/big"
"time"
"github.com/NebulousLabs/Sia/buil... |
// 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 syntax
import (
"bytes"
"fmt"
"testing"
"unicode"
)
type parseTest struct {
Regexp string
Dump string
}
var parseTests = []parseTest{
// Ba... |
// Copyright 2010 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 dwarf
// Cut, pasted, tr-and-awk'ed from tables in
// http://dwarfstd.org/doc/Dwarf3.pdf
// Table 18
const (
DW_TAG_array_type = 0x01
... |
//lint:file-ignore U1001 Ignore all unused code, this is only used in tests.
package integration
import (
"context"
"fmt"
"io/ioutil"
"os"
"os/exec"
"os/signal"
"path/filepath"
"strconv"
"strings"
"sync"
"syscall"
"testing"
"time"
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
sdk "git... |
package compliance
import (
"io/ioutil"
"math/rand"
"testing"
"encoding/json"
"fmt"
"strings"
"sort"
"github.com/chef/automate/api/interservice/compliance/ingest/events/compliance"
"github.com/chef/automate/api/interservice/compliance/ingest/events/inspec"
"github.com/chef/automate/components/compliance... |
package framework
import (
"encoding/json"
"fmt"
"strings"
"time"
"github.com/docker/go-connections/nat"
"github.com/gohornet/hornet/plugins/autopeering"
"github.com/gohornet/hornet/core/app"
"github.com/gohornet/hornet/core/gossip"
"github.com/gohornet/hornet/core/p2p"
"github.com/gohornet/hornet/core/pr... |
// 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/resources/bidding_strategy.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/ads/g... |
// +build f411xe
package spi
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
import (
"bits"
"mmio"
"unsafe"
"stm32/o/f411xe/mmap"
)
type SPI_Periph struct {
CR1 RCR1
_ uint16
CR2 RCR2
_ uint16
SR RSR
_ uint16
DR RDR
_ uint16
CRCPR RCRCPR
_ uint16
RXCRC... |
// Copyright 2017 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 maintapi
import (
"context"
"encoding/hex"
"flag"
"fmt"
"sync"
"testing"
"time"
"github.com/google/go-cmp/cmp"
"golang.org/x/build/gerrit"
"... |
package itest
import (
"context"
"encoding/json"
"fmt"
"net"
"net/http"
"os"
"path/filepath"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"testing"
"time"
"unicode/utf8"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
"k8s.i... |
//----------------------------------------
// 代码由GenlibVcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------
package vcl
import (
. "github.com/ying32/govcl/vcl/api"
. "github.com/ying32/govcl/vcl/types"
"unsafe"
)
type TWinControl struct {
IWinControl
... |
// Copyright 2019,2020 Kaleido
// 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... |
// Copyright 2017 GRAIL, 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.
package tool
import (
"bytes"
"context"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
golog "log"
"math"
"os"
"path/filepath"
"regexp"
"sort"
"str... |
// 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... |
package scheduler
import (
"context"
)
const (
// QuantityG - quantity unit G
QuantityG = 1000000000
// QuantityM - quantity unit M
QuantityM = 100000000
)
// Object - interface for base resource
type Object interface {
GetName() string
}
// Options - resource options
type Options map[string]interface{}
// N... |
// Copyright (c) 2018-present, MultiVAC Foundation.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
// Copyright (c) 2013-2016 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICEN... |
// 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... |
// Copyright © 2018 <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... |
// Copyright 2016 The CC 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 cc
import (
"encoding/binary"
"go/token"
"sort"
"strings"
"time"
"github.com/cznic/golex/lex"
"github.com/cznic/mathutil"
"github.com/cznic/xc... |
/*
Copyright 2015 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... |
// SPDX-License-Identifier: Apache-2.0
// Copyright(c) 2018-2020 Saaras Inc.
package openapi
import (
"bytes"
"crypto/sha256"
"encoding/json"
"fmt"
"github.com/ghodss/yaml"
"github.com/go-openapi/loads"
"github.com/go-openapi/spec"
//"github.com/go-openapi/swag"
v1 "github.com/saarasio/enroute/enroute-dp/apis... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: dolt/services/eventsapi/v1alpha1/event_constants.proto
package eventsapi
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.... |
package controller
import (
"CommoditySalesSystem/models"
"database/sql"
"fmt"
"github.com/gin-gonic/gin"
"math/rand"
"path"
"strconv"
"time"
)
var Sum int
//var Exits bool
func ShowMain(c *gin.Context) {
var islogin bool
var isAdmain bool
var messsgeOrder int
var makeSureArrive int
var sessions models... |
// Code generated by protoc-gen-go.
// source: rpc.proto
// DO NOT EDIT!
/*
Package anycable is a generated protocol buffer package.
It is generated from these files:
rpc.proto
It has these top-level messages:
ConnectionRequest
ConnectionResponse
CommandMessage
CommandResponse
DisconnectRequest
DisconnectResp... |
package zktx
/*
#cgo LDFLAGS: -L/usr/local/lib -lzk_mint -lzk_send -lzk_deposit -lzk_redeem -lff -lsnark -lstdc++ -lgmp -lgmpxx
#include "mintcgo.hpp"
#include "sendcgo.hpp"
#include "depositcgo.hpp"
#include "redeemcgo.hpp"
#include <stdlib.h>
*/
import "C"
import (
"bytes"
"crypto/ecdsa"
"crypto/rand"
"crypt... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: yandex/cloud/datasphere/v1/node_service.proto
package datasphere
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protorefle... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: datapb/data.proto
/*
Package datapb is a generated protocol buffer package.
It is generated from these files:
datapb/data.proto
It has these top-level messages:
DataHash
DataEntry
Data
DataArray
*/
package datapb
import proto "github.com/golang/protob... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/talent/v4beta1/batch.proto
package talent
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"
status "go... |
package main
import (
"bufio"
"container/list"
"fmt"
"github.com/yuin/gopher-lua"
"io/ioutil"
"os"
"strconv"
"strings"
"unicode"
)
const luaStartBlockMarker = "<?lua"
const luaEndBlockMarker = "lua?>"
var content string
var contentLength int
var currentPosition = 0
var currentLineNumber = 0
var currentFile ... |
// Copyright 2018 The Cockroach Authors.
//
// Licensed as a CockroachDB Enterprise file under the Cockroach Community
// License (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// https://github.com/cockroachdb/cockroach/blob/master/li... |
// See the file LICENSE for copyright and licensing information.
// Derived from FUSE's fuse_kernel.h, which carries this notice:
/*
This file defines the kernel interface of FUSE
Copyright (C) 2001-2007 <NAME> <<EMAIL>>
This -- and only this -- header file may also be distributed under
the terms of the... |
/* Create excecutable to compute individual TSS for each cell */
package main
import(
utils "github.com/opoirion/snATACUtils/ATACdemultiplexUtils"
"flag"
"os"
"io"
"fmt"
"log"
"sync"
"strings"
"strconv"
"github.com/biogo/store/interval"
"time"
"bytes"
"path"
"math"
)
//////////////// INSTANCES //////... |
package main
import (
"bytes"
"encoding/json"
"github.com/pokt-network/pocket-core/app/cmd/rpc"
"github.com/pokt-network/pocket-core/codec"
types3 "github.com/pokt-network/pocket-core/codec/types"
"github.com/pokt-network/pocket-core/crypto"
pc "github.com/pokt-network/pocket-core/types"
appTypes "github.com/p... |
// Copyright 2020 The GoPacket Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file in the root of the source tree.
package layers
import (
"encoding/binary"
"fmt"
"github.com/google/gopacket"
)
const (
// RFC 2865 3. Packet For... |
package main
import (
"bytes"
"crypto/tls"
"embed"
"encoding/json"
"errors"
"flag"
"fmt"
"log"
"math/rand"
"net/http"
"os"
"strings"
"sync"
"text/template"
"time"
"github.com/fleetdm/fleet/v4/server/fleet"
"github.com/fleetdm/fleet/v4/server/service"
"github.com/google/uuid"
"github.com/valyala/fas... |
package main
import (
"crypto/sha1"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"path/filepath"
"sync/atomic"
"time"
"github.com/deroproject/derohe/globals"
"github.com/deroproject/derohe/rpc"
"github.com/deroproject/graviton"
"github.com/docopt/docopt-go"
"github.com/gorilla/mux"
"github.com/ybbus/jso... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: opentelemetry/proto/experimental/metrics/configservice/configservice.proto
package configservice
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/gogo/protobuf/proto"
v1 "github.com/open-telemetry/opentelemetry-collector-contrib/ext... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.