text stringlengths 8.57k 38.1k |
|---|
package resources
import (
"context"
"errors"
"fmt"
"os"
"sort"
"strconv"
"strings"
"time"
"github.com/containersol/prescale-operator/api/v1alpha1"
constants "github.com/containersol/prescale-operator/internal"
"github.com/containersol/prescale-operator/internal/quotas"
sr "github.com/containersol/prescal... |
package main
import (
"bytes"
"encoding/json"
"fmt"
"os"
"os/exec"
"path/filepath"
"reflect"
"regexp"
"runtime"
"sort"
"strconv"
"strings"
"sync"
"time"
"github.com/google/shlex"
"gopkg.in/alecthomas/kingpin.v2"
)
type Severity string
// Linter message severity levels.
const (
Warning Severity = "w... |
/*
* Copyright 2016 Google Inc. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// WindowsDefenderAdvancedThreatProtectionConfiguration Windows Defender AdvancedThreatProtection Configuration.
type WindowsDefenderAdvancedThreatProtectionConfiguration struct {
// DeviceConfiguration is the base model of WindowsDefend... |
// Package v8 provides a Go API for interacting with the V8 javascript library.
package v8
// #include <stdlib.h>
// #include "v8wrap.h"
// #cgo CXXFLAGS: -std=c++11
// #cgo LDFLAGS: -lv8_base -lv8_libbase -lv8_snapshot -lv8_libplatform -ldl -pthread
import "C"
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"pa... |
package main
import (
"flag"
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"os"
"path"
"strings"
"sync"
"text/tabwriter"
"time"
"github.com/coreos/fleet/api"
"github.com/coreos/fleet/client"
"github.com/coreos/fleet/etcd"
"github.com/coreos/fleet/job"
"github.com/coreos/fleet/log"
"github.com/coreos/fleet... |
// Copyright 2012, 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 tabletmanager exports the ActionAgent object. It keeps the local tablet
state, starts / stops all associated services (query service,
update stream, bin... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/chaincode.proto
package peer // import "github.com/hyperledger/fabric/protos/peer"
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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/extensions/filters/http/gzip/v3/gzip.proto
package envoy_extensions_filters_http_gzip_v3
import (
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/compressor/v3"
_ "gith... |
package main
import (
. "MidtermForecast/APIs"
. "MidtermForecast/Predict"
. "MidtermForecast/Utils"
"encoding/json"
"fmt"
"os"
"time"
)
var (
MODEL_WEIGHT_538 = 0.9
SUM_BETA = 16.0
)
var (
election_date = time.Date(2018, 11, 6, 11, 0, 0, 0, time.UTC)
polls_538_senate = ... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/lightstep/lightstep-tracer-common/tmpgen/metrics.proto
/*
Package metricspb is a generated protocol buffer package.
It is generated from these files:
github.com/lightstep/lightstep-tracer-common/tmpgen/metrics.proto
It has these top-level messag... |
// Copyright (c) 2021 Terminus, 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 agree... |
/*
Copyright 2016 The Rook Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... |
package evepraisal
import (
"fmt"
"log"
"math"
"strings"
"time"
"github.com/evepraisal/go-evepraisal/parsers"
"github.com/evepraisal/go-evepraisal/typedb"
)
var (
ErrNoValidLinesFound = fmt.Errorf("No valid lines found")
)
type Totals struct {
Buy float64 `json:"buy"`
Sell float64 `json:"sell"`
Volu... |
package tsm1
import (
"context"
"fmt"
"math"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/influxdata/influxdb/kit/tracing"
"github.com/influxdata/influxdb/models"
"github.com/influxdata/influxdb/storage/wal"
"github.com/influxdata/influxdb/tsdb"
"github.com/influxdata/influxql"
"github.com/prometheu... |
// Copyright 2015 <NAME> and The Caddy Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
package radix
import (
"fmt"
"reflect"
"strings"
"sync"
"sync/atomic"
"time"
"errors"
"github.com/mediocregopher/radix/v3/resp"
"github.com/mediocregopher/radix/v3/resp/resp2"
"github.com/mediocregopher/radix/v3/trace"
)
// dedupe is used to deduplicate a function invocation, so if multiple
// go-routines... |
package system
import (
"context"
adapter "github.com/casbin/gorm-adapter/v3"
"github.com/flipped-aurora/gin-vue-admin/server/service/system"
"github.com/pkg/errors"
"gorm.io/gorm"
)
const initOrderCasbin = initOrderApi + 1
type initCasbin struct{}
// auto run
func init() {
system.RegisterInit(initOrderCasbin... |
package qrcode
import (
"fmt"
"io"
"log"
"math"
"os"
"sync"
"github.com/yeqown/reedsolomon"
"github.com/yeqown/reedsolomon/binary"
"github.com/BROUSSOLLE-Brice/go-qrcode/matrix"
)
var (
// _debug mode flag
_debug = false
// once to load versions config file
//once sync.Once
)
// New generate a QRCode... |
package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"math/rand"
"mime"
"net/http"
"net/url"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"time"
"github.com/fsnotify/fsnotify"
"github.com/getkin/kin-openapi/openapi3"
"github.com/getkin/kin-openapi/openapi3filter"
"github.com... |
// Code generated by protoc-gen-go.
// source: google.golang.org/genproto/googleapis/bigtable/admin/v2/table.proto
// DO NOT EDIT!
package google_bigtable_admin_v2 // import "google.golang.org/genproto/googleapis/bigtable/admin/v2"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
im... |
// 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 tortoise
import (
"context"
"errors"
"fmt"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/log"
"github.com/spacemeshos/go-spacemesh/mesh"
"github.com/syndtr/goleveldb/leveldb"
)
type blockDataProvider interface {
GetBlock(types.BlockID) (*types.Block, error)
... |
/*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
package mysql
import (
"fmt"
"strconv"
"strings"
"k8s.io/klog/v2"
)
func NewInnoDBMetrics(c *Check) *InnoDBMetrics {
return &InnoDBMetrics{Check: c}
}
type InnoDBMetrics struct {
*Check
}
func (p *InnoDBMetrics) get_stats_from_innodb_status() (mapinterface, error) {
var innodb_status_text string
_, err := ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.18.1
// source: google/ads/googleads/v10/common/tag_snippet.proto
package common
import (
proto "github.com/golang/protobuf/proto"
enums "github.com/nico-juni/googleads-go/v10/pb/enums"
_ "google.golang.org... |
// podium
// https://github.com/topfreegames/podium
// Licensed under the MIT license:
// http://www.opensource.org/licenses/mit-license
// Copyright © 2016 Top Free Games <<EMAIL>>
// Forked from
// https://github.com/dayvson/go-leaderboard
// Copyright © 2013 <NAME>
package leaderboard
import (
"context"
"encodin... |
package pmt
import (
"bytes"
"crypto/sha256"
"sort"
)
// BPT
// Binary Patricia Tree.
// Two types of Entry in the Tree:
// Node - a node in a binary tree that ends in Values (Left and Right)
// Value - a key / value pair where the key is a ChainID and the value
// is the hash of the state of the ... |
/*
* Copyright 2020 Mandelsoft. All rights reserved.
* This file is licensed under the Apache Software License, v. 2 except as noted
* otherwise in the LICENSE file
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
package v2
// ADX1345 registers
const Adx1345AddressLow = 0x53
const Adx1345AddressHigh = 0x1D
const (
// Data rate
ADX1345_RATE_3200HZ Adxl345Rate = 0x0F // 3200 Hz
ADX1345_RATE_1600HZ Adxl345Rate = 0x0E // 1600 Hz
ADX1345_RATE_800HZ Adxl345Rate = 0x0D // 800 Hz
ADX1345_RATE_400HZ Adxl345Rate = 0x0C // 400 Hz... |
// This file contains functions for transpiling binary operator expressions.
package transpiler
import (
"fmt"
goast "go/ast"
"go/token"
"strings"
"github.com/Konstantin8105/c4go/ast"
"github.com/Konstantin8105/c4go/program"
"github.com/Konstantin8105/c4go/types"
"github.com/Konstantin8105/c4go/util"
)
// C... |
/*
*
* k6 - a next-generation load testing tool
* Copyright (C) 2019 Load Impact
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your o... |
// Code generated by protoc-gen-go.
// source: api/api.proto
// DO NOT EDIT!
/*
Package api is a generated protocol buffer package.
It is generated from these files:
api/api.proto
It has these top-level messages:
Client
CreateClientReq
CreateClientResp
DeleteClientReq
DeleteClientResp
Password
CreatePassword... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v2/errors/setting_error.proto
package errors
import (
fmt "fmt"
math "math"
proto "github.com/catper/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are no... |
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Package play provides common code for playing videos on Chrome.
package play
import (
"context"
"image"
"image/color"
"image/png"
"math"
"net... |
// 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.
// HTTP Request reading and parsing.
// Package http implements parsing of HTTP requests, replies, and URLs and
// provides an extensible HTTP server and a bas... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v3/services/asset_service.proto
package services
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
resources "google.golang.org/genproto/googleapis/ads/googleads/v3/resources"
_ "google.gola... |
package main
import (
"bufio"
"context"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/golang/geo/s2"
"github.com/influxdata/influxdb-client-go"
protocol "github.com/influxdata/line-protocol"
flags "github.com/jessevdk/go-flags"
"github.com/joho/godotenv"
... |
package norns
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"image"
"io/ioutil"
"net/url"
"os"
"os/exec"
"os/signal"
"path/filepath"
"strings"
"sync"
"time"
"github.com/disintegration/imaging"
"github.com/gorilla/websocket"
"github.com/schollz/logger"
"github.com/schollz/norns.online/src/... |
/*
Execute BigDataScript:
This program allows different "commands"
Commands:
1) default (no command) : Execute BDS Java package (compiler and interpreter)
2) exec : Execute shell command and:
i) Enforce maximum execution time,
ii) redirect STDOUT and STDERR to files
iii) show ... |
// Copyright 2019 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
// Copyright 2016 The prometheus-operator 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 ... |
// Copyright 2015-2017 Piprate 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 agre... |
/*
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, ... |
package monitoring
import (
"fmt"
"math/rand"
"strconv"
"strings"
"time"
"github.com/cockroachdb/errors"
"github.com/grafana-tools/sdk"
)
// Container describes a Docker container to be observed.
//
// These correspond to dashboards in Grafana.
type Container struct {
// Name of the Docker container, e.g. "s... |
package testhelpers
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"strings"
"sync"
"syscall"
"testing"
"time"
"github.com/filecoin-project/go-address"
"github.com/ipfs/go-cid"
ma "github.com/multiformats/go-multiaddr"
m... |
// Package kiteticker provides kite ticker access using callbacks.
package kiteticker
import (
"encoding/binary"
"encoding/json"
"fmt"
"math"
"net/url"
"sync"
"time"
"github.com/gorilla/websocket"
"github.com/sohamganatra/gokiteconnect"
)
// OHLC represents OHLC packets.
type OHLC struct {
InstrumentToken ... |
package rpc
import (
"bytes"
"encoding/hex"
"fmt"
"strconv"
"github.com/copernet/copernicus/model/blockindex"
"github.com/copernet/copernicus/model/chain"
"github.com/copernet/copernicus/model/mempool"
"github.com/copernet/copernicus/rpc/btcjson"
"github.com/copernet/copernicus/util"
"gopkg.in/fatih/set.v0"... |
// Copyright (c) 2018 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... |
// Copyright 2019 The LevelDB-Go and Pebble 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 pebble
import (
"fmt"
"io"
"sort"
"sync/atomic"
"github.com/cockroachdb/errors"
"github.com/cockroachdb/pebble/internal/base"... |
// 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 strconv
import "math"
// An extFloat represents an extended floating-point number, with more
// precision than a float64. It does not try to save bits... |
// MIT License
//
// (C) Copyright [2018-2021] Hewlett Packard Enterprise Development LP
//
// 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 limitatio... |
// Code generated by go-bindata.
// sources:
// dict/unidict.aa
// dict/unidict.ab
// dict/unidict.ac
// dict/unidict.ad
// dict/unidict.ae
// dict/unidict.af
// dict/unidict.ag
// dict/unidict.ah
// dict/unidict.ai
// dict/unidict.aj
// dict/unidict.ak
// dict/unidict.al
// dict/unidict.am
// dict/unidict.an
// dict/u... |
package gps
import (
"fmt"
"os"
"os/signal"
"path/filepath"
"runtime"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/Masterminds/semver"
)
// Used to compute a friendly filepath from a URL-shaped input
//
// TODO(sdboyer) this is awful. Right?
var sanitizer = strings.NewReplacer(":", "-", "/", "-", "+",... |
// Package unicode provide Go+ "unicode" package, as "unicode" package in Go.
package unicode
import (
reflect "reflect"
unicode "unicode"
gop "github.com/goplus/gop"
qspec "github.com/goplus/gop/exec.spec"
)
func toSlice0(args []interface{}) []*unicode.RangeTable {
ret := make([]*unicode.RangeTable, len(args))... |
// 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... |
package fakedns
import (
"bufio"
"context"
"encoding/binary"
"fmt"
"io/ioutil"
"log"
"net"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/emirpasic/gods/trees/avltree"
"github.com/miekg/dns"
"github.com/pkg/errors"
"github.com/shadowsocks/go-shadowsocks2/... |
// Copyright 2017 The Fuchsia 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 daemon
import (
"errors"
"fmt"
"io"
"io/ioutil"
"log"
"net/url"
"os"
"path/filepath"
"strings"
"sync"
"time"
"amber/pkg"
"amber/sour... |
//
// Copyright 2019 AT&T Intellectual Property
// Copyright 2019 Nokia
//
// 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 ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: exchange.proto
package baseline
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 comp... |
/*
Copyright 2018 BlackRock, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
package transmission
import (
"encoding/json"
"time"
)
type Response struct {
Result string `json:"result"`
Arguments *json.RawMessage `json:"arguments"`
Tag int `json:"tag"`
}
type SessionStats struct {
ActiveTorrents int `json:"activeTorrentCount"`
DownloadSpeed ... |
package libs
import (
"github.com/gotranspile/cxgo/types"
)
const (
sdl2H = "SDL2/SDL.h"
sdl2OpenGLH = "SDL2/SDL_opengl.h"
sdl2OpenGLExtH = "SDL2/SDL_opengl_glext.h"
sdl2StdIncH = "SDL2/SDL_stdinc.h"
)
func init() {
RegisterLibrary(sdl2H, func(c *Env) *Library {
boolT := types.BoolT()
sintT ... |
package parser
import (
"fmt"
"go/ast"
"go/token"
"go/types"
"sort"
"github.com/donnol/tools/internal/utils/debug"
"golang.org/x/tools/go/packages"
)
type Inspector struct {
parser *Parser
pkg *packages.Package
}
type InspectOption struct {
Parser *Parser
}
func NewInspector(opt InspectOption) *Inspecto... |
package device
import (
"encoding/json"
"fmt"
"os"
"strconv"
"strings"
"sync"
"time"
"github.com/sirupsen/logrus"
"github.com/toni-moreno/snmpcollector/pkg/agent/bus"
"github.com/toni-moreno/snmpcollector/pkg/agent/output"
"github.com/toni-moreno/snmpcollector/pkg/agent/selfmon"
"github.com/toni-moreno/sn... |
package suite_test
import (
"bytes"
"errors"
"flag"
"fmt"
"io/ioutil"
"math/rand"
"os"
"os/exec"
"strings"
"sync"
"testing"
"time"
"github.com/ljupcho/testify/suite"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
// SuiteRequireTwice is intended to test the usage of suit... |
package managers
import (
"apiroute/logs"
cfg "apiroute/managers/configmanager"
"apiroute/models"
"apiroute/util"
"encoding/json"
"errors"
"regexp"
"strconv"
"strings"
"time"
)
// protocol
const (
ProtocolHTTP = "HTTP"
ProtocolREST = "REST"
ProtocolUI = "UI"
ProtocolUDP = "UDP"
ProtocolTCP ... |
/*
* Copyright(c) 2019 Lianjia, 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... |
package plugins
import (
"bytes"
"fmt"
"path"
"path/filepath"
"strings"
"unicode"
dpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
"github.com/jhump/gopoet"
"github.com/jhump/protoreflect/desc"
)
// GoNames is a helper for computing the names and types of Go elements that are
// generated from prot... |
/*
Copyright 2017 xgfone
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
distribu... |
/*
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 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 ... |
/*
Copyright 2019 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... |
// Copyright (c) 2021 Terminus, 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 agree... |
// Copyright 2020 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//go:generate goversioninfo
package main
import (
context2 "context"
"flag"
"fmt"
"net"
"net/http"
_ "net/http/pprof"
"net/url"
"os"
"os/signal"
"path/filepath"
"runtime"
"strings"
"syscall"
"time"
"gi... |
package crtview
import (
"bytes"
"math"
"regexp"
"sync"
"unicode/utf8"
"github.com/gdamore/tcell/v2"
"github.com/mattn/go-runewidth"
)
// InputField is a one-line box (three lines if there is a title) where the
// user can enter text. Use SetAcceptanceFunc() to accept or reject input,
// SetChangedFunc() to l... |
/*
Copyright 2019 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... |
//stateful function that reads messages from Kafka topic and writes to data lake
//event messages are put on to Kafka by the ingest REST endpoint
package main
import (
"bytes"
"context"
"database/sql"
"encoding/json"
"errors"
"fmt"
"io"
"log"
"net/http"
"os"
"reflect"
"strconv"
"strings"
"time"
secret... |
// Code generated by protoc-gen-go.
// source: client/pkg/shard/shard.proto
// DO NOT EDIT!
/*
Package shard is a generated protocol buffer package.
It is generated from these files:
client/pkg/shard/shard.proto
It has these top-level messages:
ServerState
FrontendState
ServerRole
Addresses
StartRegister
Fini... |
package tests
import (
"encoding/base64"
"errors"
"fmt"
"os"
"strings"
"testing"
"time"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/reporters"
. "github.com/onsi/gomega"
"github.com/portworx/sched-ops/k8s/batch"
"github.com/portworx/sched-ops/k8s/core"
"github.com/portworx/sched-ops/task"
"github... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: canary/google.proto
package canary
import (
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
protoreflect "google.golang.org/protobuf/reflect/pr... |
package main
import (
"fmt"
"gitee.com/jntse/gotoolkit/log"
"gitee.com/jntse/gotoolkit/net"
"gitee.com/jntse/gotoolkit/redis"
"gitee.com/jntse/gotoolkit/util"
"gitee.com/jntse/gotoolkit/eventqueue"
"gitee.com/jntse/minehero/pbmsg"
"gitee.com/jntse/minehero/server/tbl"
_"gitee.com/jntse/minehero/server/def"
p... |
// Copyright (c) 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 ProgBuilder object which is used by the parser to
// build up the set of Inst (instructi... |
/*
*
* Copyright 2021 gRPC 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 api
import (
"bytes"
"encoding/json"
"github.com/cespare/xxhash"
. "github.com/loveandpeople/lp.go/consts"
"github.com/loveandpeople/lp.go/pow"
"github.com/loveandpeople/lp.go/trinary"
"github.com/pkg/errors"
"io/ioutil"
"math"
"math/rand"
"net/http"
"net/url"
"strconv"
"sync"
)
// QuorumLevel d... |
package GoDuktape
//#cgo LDFLAGS: -lm
/*
#include "duktape.h"
typedef duk_context* duk_context_ptr;
extern duk_idx_t push_c_function(duk_context_ptr ctx, const char* name);
extern duk_int_t eval_string(duk_context_ptr context, const char* src);
extern duk_int_t compile_function_string(duk_context_ptr ctx, const char*... |
package ttlv
import (
"bytes"
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"github.com/ansel1/merry"
"io"
"math"
"math/big"
"reflect"
"strings"
"time"
)
type DateTimeExtended struct {
time.Time
}
func (t *DateTimeExtended) UnmarshalTTLV(d *Decoder, ttlv TTLV) error {
if len(ttlv) == 0 {
return nil... |
// Copyright 2022 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... |
// Tickdoc is a simple utility similar to godoc that generates documentation from comments.
//
// The 'tickdoc' utility understands several special comments to help it generate clean documentation.
//
// 1. tick:ignore -- can be added to any field, method, function or struct and tickdoc will simply skip it
// and not g... |
// Copyright (c) 2013 <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and t... |
/*
Copyright (c) 2016 IBM Corporation and other 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 ... |
// Copyright (c) 2021 Terminus, 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 agree... |
// Package nl has low level primitives for making Netlink calls.
package nl
import (
"bytes"
"encoding/binary"
"fmt"
"net"
"runtime"
"sync"
"sync/atomic"
"syscall"
"unsafe"
"github.com/vishvananda/netns"
)
const (
// Family type definitions
FAMILY_ALL = syscall.AF_UNSPEC
FAMILY_V4 ... |
// Code generated by goa v3.1.3, DO NOT EDIT.
//
// africastalking HTTP client types
//
// Command:
// $ goa gen github.com/wondenge/at-notifiers/design
package client
import (
africastalking "github.com/wondenge/at-notifiers/gen/africastalking"
africastalkingviews "github.com/wondenge/at-notifiers/gen/africastalki... |
package faker
var cityPrefix = []string{
"North",
"East",
"West",
"South",
"New",
"Lake",
"Port",
}
var citySuffix = []string{
"town",
"ton",
"land",
"ville",
"berg",
"burgh",
"borough",
"bury",
"view",
"port",
"mouth",
"stad",
"furt",
"chester",
"mouth",
"fort",
"haven",
"side",
"shire",
}
... |
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
// +build stm32l4x6
package dma
import (
"embedded/mmio"
"unsafe"
"github.com/embeddedgo/stm32/p/bus"
"github.com/embeddedgo/stm32/p/mmap"
)
type Periph struct {
ISR RISR
IFCR RIFCR
C [7]RC
_ [5]uint32
CSELR RCSELR
}
func DMA1() *Periph { return (*P... |
package dnscrypt
import (
"context"
crypto_rand "crypto/rand"
"encoding/binary"
"errors"
"fmt"
"net"
"runtime"
"strings"
"sync"
"time"
"github.com/Jigsaw-Code/outline-go-tun2socks/tunnel/intra/dnsx"
"github.com/Jigsaw-Code/outline-go-tun2socks/tunnel/intra/xdns"
"github.com/eycorsican/go-tun2socks/common... |
package fileseq
import (
"bytes"
"fmt"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"text/template"
)
// A FileSequence represents a path to a sequence of files,
// and expresses a valid frames range (one that can be parsed
// by FrameSet. It also includes one or more padding characters
// to dictate how m... |
// Copyright 2019 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.