text stringlengths 8.57k 38.1k |
|---|
package controller
import (
"encoding/json"
"fmt"
"strings"
"github.com/valyala/fasttemplate"
"github.com/argoproj/argo/errors"
wfv1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1"
"github.com/argoproj/argo/workflow/common"
"github.com/argoproj/argo/workflow/templateresolution"
)
// dagContext holds c... |
package dao
import (
"bytes"
"context"
"encoding/binary"
"errors"
"fmt"
iocore "io"
"sort"
"github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/nspcc-dev/neo-go/pkg/core/mpt"
"github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/nspcc-dev/neo-go/pkg/co... |
// Code generated by protoc-gen-go.
// source: common/configtx.proto
// DO NOT EDIT!
package common
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
//... |
// Package roothash implements the roothash application.
package roothash
import (
"fmt"
"github.com/tendermint/tendermint/abci/types"
beacon "github.com/oasisprotocol/oasis-core/go/beacon/api"
"github.com/oasisprotocol/oasis-core/go/common"
"github.com/oasisprotocol/oasis-core/go/common/cbor"
"github.com/oasi... |
// Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
/*
Package mqmetric contains a set of routines common to several
commands used to export MQ metrics to different backend
storage mechanisms including Prometheus and InfluxDB.
*/
package mqmetric
/*
Copyright (c) IBM Corporation 2016
Licensed under the Apache License, Version 2.0 (the "License");
you may not use... |
// Copyright 2017 Factom Foundation
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
package p2p
import (
"encoding/gob"
"fmt"
"hash/crc32"
"net"
"os"
"time"
"github.com/FactomProject/factomd/common/messages"
"github.com/FactomProject/factomd/common/primitiv... |
package smokescreen
import (
"context"
"crypto/tls"
"errors"
"fmt"
"net"
"net/http"
"os"
"os/signal"
"strings"
"syscall"
"time"
proxyproto "github.com/armon/go-proxyproto"
"github.com/elazarl/goproxy"
"github.com/sirupsen/logrus"
"github.com/stripe/go-einhorn/einhorn"
acl "github.com/stripe/smokescree... |
package iso
import (
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strings"
vmwcommon "github.com/hashicorp/packer/builder/vmware/common"
"github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate"
)
type vmxTemplateD... |
package service
import (
"context"
"crypto/tls"
"fmt"
"os"
"os/signal"
"strings"
"sync"
"syscall"
"time"
"github.com/plgd-dev/device/pkg/net/coap"
"github.com/plgd-dev/go-coap/v2/message"
coapCodes "github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/message/status"
"github.com... |
// Copyright 2013 The Changkong 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 fenxiao
const VersionNo = "20140725"
/* 合作分销关系 */
type Cooperation struct {
AuthPayway []string `json:"auth_payway"`
CooperateId int... |
package fgbgp
import (
"bytes"
"errors"
"fmt"
"log"
"net"
"sync"
"time"
"github.com/benjojo/fgbgp/messages"
)
const (
STATE_IDLE = iota
STATE_CONNECT
STATE_ACTIVE
STATE_OPENSENT
STATE_OPENCONFIRM
STATE_ESTABLISHED
)
type State struct {
CurState int
OpenReceived bool
Time time.Time
}
ty... |
// Copyright 2019 The SQLFlow 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 applicab... |
// Copyright 2019. Akamai Technologies, 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... |
// Package layerfetcher fetches layers from remote peers
package layerfetcher
import (
"context"
"errors"
"fmt"
"sync"
"time"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/common/util"
"github.com/spacemeshos/go-spacemesh/database"
"github.com/spacemeshos/go-spacemes... |
package main
import (
"fmt"
"github.com/rcsolis/gofundamentals/concurrency"
"reflect"
)
// Package variables
var Message string
// Declare variables in block
var (
street string
country string = "Mexico"
state string
postalcode int = 12345
)
func primitives() {
fmt.Println("*** PRIMITIVES")
// ... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: temporal/api/enums/v1/failed_cause.proto
package enums
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
math "math"
strconv "strconv"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.... |
package wow
// CharacterSpec represents the character specilization information
// for a particular WoW character from a given WoW profile.
type CharacterSpec struct {
Name string `json:"name"`
Role string `json:"role"`
BackgroundImage string `json:"backgroundImage"`
Icon string `j... |
package jarvice
import (
"bufio"
"bytes"
"crypto/tls"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"math"
"net"
"net/http"
"net/url"
"os"
"path"
"path/filepath"
"reflect"
"strconv"
"strings"
"text/tabwriter"
"github.com/jessevdk/go-flags"
)
const (
JarviceHpcConfigPath = "/.config/jarvi... |
// Copyright (c) 2018-2021 Splunk 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 appl... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/tasks/v2beta2/task.proto
package tasks
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 "googl... |
// Package visual provides a simple visualizer system that's based on faiface/pixel.
package visual
import (
"errors"
"fmt"
"log"
"math"
"reflect"
"sync"
"time"
"unsafe"
"github.com/faiface/pixel"
"github.com/faiface/pixel/pixelgl"
"github.com/faiface/pixel/text"
glfw "github.com/go-gl/glf... |
package internal
import (
"context"
"errors"
"fmt"
"io/ioutil"
"math/rand"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"sync"
"time"
"github.com/axgle/mahonia"
"github.com/chromedp/cdproto/cdp"
"github.com/chromedp/cdproto/dom"
"github.com/chromedp/cdproto/network"
"github.com/chromedp/cdproto/pag... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: sk-unix.proto
package types
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/pro... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: swagger.proto
package api_pb
import (
proto "github.com/golang/protobuf/proto"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
protoreflect "google.golang.org/prot... |
package avardstock
import (
"context"
"encoding/csv"
"encoding/json"
"errors"
"fmt"
"github.com/jinzhu/gorm"
. "github.com/qasemt/helper"
"golang.org/x/sync/semaphore"
_ "golang.org/x/sync/semaphore"
"io/ioutil"
"os"
"path"
"strconv"
"strings"
"sync"
"time"
)
func floatFromString(raw interface{}) (flo... |
// Copyright 2014, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package worker
import (
"fmt"
"html/template"
"strings"
"sync"
"time"
"code.google.com/p/go.net/context"
"github.com/youtube/vitess/go/event"
"github.co... |
// Copyright 2014 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 radix
import (
"context"
"fmt"
"io"
"reflect"
"strings"
"sync"
"sync/atomic"
"time"
"errors"
"github.com/mediocregopher/radix/v4/internal/proc"
"github.com/mediocregopher/radix/v4/resp"
"github.com/mediocregopher/radix/v4/resp/resp3"
"github.com/mediocregopher/radix/v4/trace"
)
// dedupe is use... |
package service
import (
"fmt"
"gin-web/models"
"gin-web/pkg/global"
"gin-web/pkg/request"
"gin-web/pkg/utils"
"github.com/jinzhu/gorm"
uuid "github.com/satori/go.uuid"
"strings"
)
// 查询待审批目标列表(指定用户)
func (s *MysqlService) GetWorkflowApprovingList(flowId uint, targetId uint, approvalId uint) ([]models.SysWork... |
/*
* Copyright 2020-2021 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... |
// 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 tendermint
import (
"encoding/hex"
"fmt"
"math"
"net"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/33cn/chain33/common/crypto"
... |
// Copyright (c) 2017-2020 Uber Technologies Inc.
// Portions of the Software are attributed to Copyright (c) 2020 Temporal Technologies Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Soft... |
/*
Copyright 2016 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, ... |
//go:generate swagger generate spec -m -o ../../api/swagger/swagger.json
// Package classification OSD API.
//
// OpenStorage is a clustered implementation of the Open Storage specification and relies on the OCI runtime.
// It allows you to run stateful services in containers in a multi-host clustered environment.
// ... |
// Copyright 2021 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: config.proto
package configpb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
configpb "github.com/google/certificate-transparency-go/trillian/ctfe/configpb"
keyspb "github.com/google/trillian/crypto/keyspb"
math "math"
)
// Reference impor... |
package enc
import (
"io"
"strconv"
"strings"
"testing"
"github.com/SignorMercurio/attrezzi/cmd"
"github.com/SignorMercurio/attrezzi/test"
)
var (
base = "./testdata/"
in = base + "in.txt"
out = base + "out.txt"
bla = "blabla/bla.txt"
pubKeyOut = base + "pub.pem"
pr... |
// Copyright 2020 WHTCORPS INC, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.21.0
// protoc v3.11.4
// source: steammessages_oauth.steamworkssdk.proto
package steamworks
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.... |
package nebula
import (
"context"
"errors"
"fmt"
"net"
"sync"
"sync/atomic"
"time"
"github.com/rcrowley/go-metrics"
"github.com/sirupsen/logrus"
"github.com/slackhq/nebula/cert"
"github.com/slackhq/nebula/cidr"
"github.com/slackhq/nebula/header"
"github.com/slackhq/nebula/iputil"
"github.com/slackhq/neb... |
package controllers
import (
"cloudnativeapp/clm/api/v1beta1"
"cloudnativeapp/clm/internal"
"cloudnativeapp/clm/pkg/dag"
"cloudnativeapp/clm/pkg/plugin"
"cloudnativeapp/clm/pkg/utils"
"context"
"encoding/json"
"errors"
"fmt"
"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
v1 "k8s.io/apimachinery/pkg... |
package mdc
import (
"strconv"
"github.com/hexops/vecty"
"github.com/hexops/vecty/elem"
"github.com/hexops/vecty/event"
"github.com/hexops/vecty/prop"
"github.com/soypat/mdc/icons"
)
// Button implements the button Material Design Component
// https://material.io/components/buttons
//
// Take care when adding ... |
// +build dispmanx
package dispmanx
import (
"fmt"
"unsafe"
"github.com/djthorpe/gopi/v3"
)
////////////////////////////////////////////////////////////////////////////////
// CGO
/*
#cgo pkg-config: bcm_host
#include <bcm_host.h>
*/
import "C"
//////////////////////////////////////////////////////////////////... |
package Server
import (
"encoding/json"
"regexp"
"math/rand"
"time"
"code.myceliUs.com/CargoWebServer/Cargo/Entities/BPMS"
"code.myceliUs.com/CargoWebServer/Cargo/Entities/CargoEntities"
"code.myceliUs.com/Utility"
)
const (
AccountEvent = "AccountEvent"
AccountRegisterSuc... |
package scene
import (
"context"
"fgame/fgame/common/message"
"fgame/fgame/core/aoi"
"fgame/fgame/core/fsm"
coretypes "fgame/fgame/core/types"
activitytypes "fgame/fgame/game/activity/types"
actvitytypes "fgame/fgame/game/activity/types"
alliancetypes "fgame/fgame/game/alliance/types"
cdcommon "fgame/fgame/ga... |
package system_metrics_reader
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
"time"
"github.com/syunkitada/goapp/pkg/lib/logger"
"github.com/syunkitada/goapp/pkg/lib/str_utils"
"github.com/syunkitada/goapp/pkg/resource/config"
"github.com/syunkitada/goapp/pkg/resource/consts"
"github.com/syunkitada/goapp/... |
// Code generated by protoc-gen-go.
// source: binlogdata.proto
// DO NOT EDIT!
/*
Package binlogdata is a generated protocol buffer package.
It is generated from these files:
binlogdata.proto
It has these top-level messages:
Charset
BinlogTransaction
StreamEvent
StreamUpdateRequest
StreamUpdateResponse
Strea... |
/*
Copyright (c) 2021 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
dist... |
package conn
import (
"bufio"
"context"
"errors"
"fmt"
"io"
"math"
"net"
"reflect"
"runtime/debug"
"sync"
"sync/atomic"
"time"
"github.com/gogo/protobuf/proto"
"github.com/tendermint/tendermint/internal/libs/flowrate"
"github.com/tendermint/tendermint/internal/libs/protoio"
"github.com/tendermint/ten... |
package saml
import (
"bytes"
"compress/flate"
"crypto/rsa"
"crypto/x509"
"encoding/base64"
"encoding/xml"
"errors"
"fmt"
"html/template"
"net/http"
"net/url"
"regexp"
"time"
"github.com/beevik/etree"
"github.com/crewjam/saml/logger"
"github.com/crewjam/saml/xmlenc"
dsig "github.com/russellhaering/go... |
// Copyright 2016-2021, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
// Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
//
// Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
//
// See LICENSE.txt for license information
//
package counts
import (
"bufio"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path"
"path/filepath"
"strconv"
"strings"
"github.com/gvallee/collective_profiler/tools/pkg/errors"
)
const (
/* All... |
package gocloak
import (
"encoding/json"
"strings"
)
// GetQueryParams converts the struct to map[string]string
// The fields tags must have `json:"<name>,string,omitempty"` format for all types, except strings
// The string fields must have: `json:"<name>,omitempty"`. The `json:"<name>,string,omitempty"` tag for s... |
// Copyright 2020 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... |
// +build development
// This build tag ensures that this file will not be included unless
// the `development` tag is explicitly requested (which should be never)
package models
import (
"fmt"
"math/rand"
"time"
"github.com/gobuffalo/events"
"github.com/silinternational/cover-api/storage"
"github.com/gobu... |
/*
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 2014 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... |
package ansi
import (
"fmt"
"strconv"
"strings"
)
// SGR Set Graphics Rendition (affects character attributes)
const (
SGRCodeClear = 0 // clear all special attributes
SGRCodeBold = 1 // bold or increased intensity
SGRCodeDim = 2 // dim or secondary color on gigi
SGRCodeItalic = 3 // ital... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/errors/feed_error.proto
package errors
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not o... |
package gov
import (
"fmt"
"github.com/irisnet/irishub/app/v1/params"
"github.com/irisnet/irishub/codec"
sdk "github.com/irisnet/irishub/types"
"strconv"
"time"
)
const (
CRITICAL_DEPOSIT = 4000
IMPORTANT_DEPOSIT = 2000
NORMAL_DEPOSIT = 1000
CRITICAL = "Critical"
IMPORTANT ... |
//
// 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... |
package appdynamics
//#cgo CFLAGS: -I${SRCDIR}
//#cgo LDFLAGS: -L${SRCDIR}/lib -lappdynamics -ldl -Wl,-rpath,${SRCDIR}/lib
//#cgo linux LDFLAGS: -lrt
//#include "include/appdynamics.h"
//#include <stdlib.h>
//#include <stdint.h>
/*
extern void appd_config_set_golang(void);
uintptr_t bthandle_to_uint(appd_bt_handle bt... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package startcmd
import (
"fmt"
"net/http"
"strconv"
"strings"
"time"
"github.com/cenkalti/backoff/v4"
"github.com/hyperledger/aries-framework-go-ext/component/vdr/orb"
"github.com/hyperledger/aries-framewor... |
package base
import (
"encoding/json"
"expvar"
"fmt"
"math"
"sort"
"sync"
)
var shardedClockExpvars *expvar.Map
func init() {
shardedClockExpvars = expvar.NewMap("syncGateway_index_clocks")
}
const (
KIndexPartitionKey = "_idxPartitionMap"
kIndexPrefix = "_idx"
kCountKeyFormat =... |
//<developer>
// <name><NAME></name>
// <email><EMAIL></email>
// <wx>superexc</wx>
// <qqgroup>128148617</qqgroup>
// <url>https://jsq.ink</url>
// <role>pku engineer</role>
// <date>2019-03-16 19:40:24</date>
//</624456072358268928>
/*
版权所有IBM公司。保留所有权利。
SPDX许可证标识符:Apache-2.0
**/
package stat... |
/*
Copyright The containerd Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
package main
import (
"bufio"
"context"
"crypto/sha256"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"math/rand"
"os"
"os/signal"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"sync"
"syscall"
"time"
dynsampler "github.com/honeycombio/dynsampler-go"
"github.com/honeycombio/libhoney-go"
"github.co... |
package utils
import (
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
"time"
"github.com/nuclio/logger"
"github.com/pkg/errors"
"github.com/v3io/frames"
"github.com/v3io/frames/pb"
"github.com/v3io/frames/v3ioutils"
v3io "github.com/v3io/v3io-go/pkg/dataplane"
v3iohttp "github.com/v3io/v3io-go/pkg/datap... |
// Package qs - q scripting language
package qs
import (
"flag"
"fmt"
"io"
"math"
"os"
"runtime"
"strconv"
"strings"
)
func OpenBase(L *LState) int {
global := L.Get(GlobalsIndex).(*LOAList)
L.SetGlobal("_G", global)
L.SetGlobal("_VERSION", LString(PGM+" "+VER))
basemod := L.RegisterModule("_G", baseFuncs... |
//-----------------------------------------------------------------------------
/*
RISC-V Debugger 0.13
Debug Module Interface
*/
//-----------------------------------------------------------------------------
package rv13
import (
"errors"
"fmt"
"math/rand"
"time"
"github.com/deadsy/rvdbg/bitstr"
"github.co... |
package ai
import (
//"fmt"
"bytes"
"log"
"math"
"math/rand"
"sync/atomic"
"time"
"golang.org/x/net/context"
"../bitboard"
"../ptn"
"../tak"
)
const (
MaxEval int64 = 1 << 30
MinEval = -MaxEval
WinThreshold = 1 << 29
Illegal = -1 << 31
tableSize uint64 = (1 << 20)
... |
package backend
import (
"fmt"
"net"
"net/http"
"sync"
"time"
"github.com/3scale/3scale-go-client/threescale"
"github.com/3scale/3scale-go-client/threescale/api"
http2 "github.com/3scale/3scale-go-client/threescale/http"
)
// Backend defines the connection to a single backend and maintains a cache
// for mul... |
package p1
import (
"bytes"
"io"
"testing"
"time"
"github.com/oklog/ulid"
)
func TestNewAndMerge(t *testing.T) {
t1 := New([4]byte{}, []byte("Hello, "))
t1.Duration = 7
time.Sleep(10 * time.Millisecond)
t2 := New([4]byte{}, []byte("world!"))
t2.Duration = 5
tm := t2.Merge(t1)
if tm.ULID.Compare(t1.UL... |
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// source: binapis/vpp1904/.vppapi/plugins/igmp.api.json
/*
Package igmp is a generated VPP binary API for 'igmp' module.
It consists of:
3 enums
2 aliases
7 types
1 union
19 messages
9 services
*/
package igmp
import (
"bytes"
"context"
... |
package mqtt_parsing
import (
"bytes"
"fmt"
"io"
// "log"
)
//Message is the interface all our packets will be implementing
type Message interface {
Encode() []byte
Type() uint8
}
/*
How feasible is it to do a no-copy version of this. So many inward ptrs later on.
*/
const (
CONNECT = uint8(iota + 1)
CONNAC... |
/*
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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/config/builder_api/config_request.proto
package builder_api
import (
fmt "fmt"
shared "github.com/chef/automate/api/config/shared"
_ "github.com/chef/automate/components/automate-grpc/protoc-gen-a2-config/api/a2conf"
proto "github.com/golang/protobuf... |
package ilium
import "fmt"
import "math/rand"
type PathTracer struct {
pathTypes TracerPathType
weighingMethod TracerWeighingMethod
beta float32
russianRouletteContribution TracerRussianRouletteContribution
russianRouletteState *RussianRouletteState
m... |
// Copyright Suneido Software Corp. All rights reserved.
// Governed by the MIT license found in the LICENSE file.
package dnum
import (
"fmt"
"math"
"testing"
"unsafe"
"github.com/apmckinlay/gsuneido/util/assert"
"github.com/apmckinlay/gsuneido/util/ptest"
)
func Test_size(t *testing.T) {
// due to allignme... |
package templates
import (
"bytes"
"fmt"
"io"
"net/url"
"reflect"
"regexp"
"strings"
"time"
"unicode/utf8"
"emperror.dev/errors"
"github.com/botlabs-gg/yagpdb/bot"
"github.com/botlabs-gg/yagpdb/common"
"github.com/botlabs-gg/yagpdb/common/scheduledevents2"
"github.com/jonas747/discordgo/v2"
"github.com... |
/*
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 law or agreed to in wri... |
/*
Copyright 2016 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 IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package ldap
import (
"fmt"
"net"
"net/url"
"regexp"
"strconv"
"strings"
"github.com/Knetic/govaluate"
"github.com/cloudflare/cfssl/log"
"github.com/hyperledger/fabric-ca/api"
causer "github.com/hyperledger/fabric-ca/lib/se... |
package canvas
import (
"image/color"
"math"
"reflect"
"sort"
"strconv"
"strings"
"unicode/utf8"
canvasText "github.com/tdewolff/canvas/text"
)
// TextAlign specifies how the text should align or whether it should be justified.
type TextAlign int
// see TextAlign
const (
Left TextAlign = iota
Right
Cente... |
package model134
// Code generated by ../../generators/models.go. DO NOT EDIT.
// You can regenerate it by running 'go generate ./models' from the directory above.
import (
"github.com/andig/gosunspec"
"github.com/andig/gosunspec/smdx"
"github.com/andig/gosunspec/typelabel"
)
// Block134 - Freq-Watt Crv - Curve-B... |
// 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/feed_item_target.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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.15.8
// source: isuxportal/resources/contestant_instance.proto
package resources
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimp... |
package main
import (
"bufio"
"bytes"
"context"
"encoding/base64"
"encoding/json"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"path/filepath"
"regexp"
"runtime"
"sort"
"strings"
"github.com/flynn/json5"
"go.skia.org/infra/autoroll/go/roller"
"go.skia.org/infra/go/auth"
"go.skia.org/infra/go/common"
... |
// Copyright (c) 2015-2021, NVIDIA CORPORATION.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"container/list"
"fmt"
"io"
"log"
"math"
"net/http"
"os"
"os/exec"
"sync"
"time"
"bazil.org/fuse"
"github.com/NVIDIA/fission"
"github.com/NVIDIA/sortedmap"
"github.com/NVIDIA/proxyfs/bucketsta... |
// Copyright 2015-2017 trivago GmbH
//
// 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 2017 the Heptio Ark 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 law or agreed to in writ... |
// Copyright IBM Corp. 2017, 2021 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0
package ibm
import (
"errors"
"fmt"
"log"
"strconv"
"strings"
"time"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/soft... |
package ghmon
import (
"encoding/json"
"fmt"
"github.com/kelseyhightower/envconfig"
"github.com/kirsle/configdir"
"io/ioutil"
"log"
"net/url"
"os"
"os/exec"
"path/filepath"
"sort"
"sync"
"time"
)
type Configuration struct {
OwnQuery string `split_words:"true"`
ReviewQuery string `split_words:"true"`
R... |
package main
import (
"regexp"
"strings"
"github.com/prometheus/client_golang/prometheus"
log "github.com/sirupsen/logrus"
)
// Namespace raw metrics
var namespaceRawMetrics = map[string]metricType{
"allow-nonxdr-writes": mtGauge,
"allow-xdr-writes": mtGauge,
"cache_r... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/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 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 api
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
"time"
"github.com/chromium/hstspreload"
"github.com/chromium/hstspreload.org/database"
"github.com/chromium/hstspreload/chromium/preloadlist"
)
var emptyIssues = hstspreload.Issues{}
var issuesWithWarnings = hstspreload.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.