text stringlengths 8.57k 38.1k |
|---|
package daemon
import (
"context"
"errors"
"fmt"
"io"
"math/rand"
"net"
"os"
"strings"
"sync/atomic"
"time"
"github.com/blang/semver"
"golang.org/x/net/ipv4"
"google.golang.org/grpc"
empty "google.golang.org/protobuf/types/known/emptypb"
"github.com/datawire/dlib/dgroup"
"github.com/datawire/dlib/dlo... |
package smr
import (
"bytes"
"context"
"crypto/ecdsa"
"encoding/hex"
"errors"
"sync"
"github.com/golang/protobuf/proto"
log "github.com/xuperchain/log15"
cons_base "github.com/xuperchain/xuperunion/consensus/base"
"github.com/xuperchain/xuperunion/consensus/common/chainedbft/config"
"github.com/xuperchain/... |
// Code generated by protoc-gen-go.
// source: mesos/authorizer/authorizer.proto
// DO NOT EDIT!
/*
Package mesos_authorization is a generated protocol buffer package.
It is generated from these files:
mesos/authorizer/authorizer.proto
It has these top-level messages:
Subject
Object
Request
*/
package authorizer... |
// 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 math
/*
Floating-point logarithm of the Gamma function.
*/
// The original C code and the long comment below are
// from FreeBSD's /usr/src/lib/msun/... |
package activityserve
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
"github.com/gologme/log"
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"github.com/dchest/uniuri"
"github.com/go-fed/httpsig"
)
// Actor repre... |
package main
import (
"context"
"fmt"
"runtime"
"time"
"github.com/apex/log"
"github.com/atc0005/bounce/config"
)
// NotifyResult wraps the results of notification operations to make it easier
// to inspect the status of various tasks so that we can take action on either
// error or success conditions
type Not... |
package discord
import (
"encoding/json"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/denverquane/amongusdiscord/game"
socketio "github.com/googollee/go-socket.io"
"log"
"net/http"
"os"
"os/signal"
"strconv"
"strings"
"sync"
"syscall"
)
type GuildOrLobbyId struct {
guildID string
lobbyCode strin... |
package OpenMCPVirtualService
import (
"context"
"fmt"
"math"
"os"
"strings"
"sync"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
//clusterv1alpha1 "openmcp/openmcp/apis/cluster/v1alpha1"
resourcev1alpha1 "openmcp/openmcp/apis/resource/v1alpha1"
"openmcp/openmcp/apis"
"openmcp/openmcp/omcplog"
"openmcp/open... |
// Copyright (c) 2020 OSRAM; Licensed under the MIT license.
// This code is responsible for communication with serial port adapters
package main
import (
"bytes"
"encoding/hex"
"fmt"
"log"
"math"
"math/rand"
"net"
"os"
"sort"
"sync"
"sync/atomic"
"time"
)
type dptr1Identifier string
type dptr1Adapter st... |
// +build !windows
// Copyright 2020 <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 ... |
package window
import (
"archive/zip"
"bytes"
"encoding/json"
"fmt"
"gotomate/app/window/button"
"gotomate/app/window/dialogs"
"gotomate/app/window/listbox"
"gotomate/app/window/menu"
"gotomate/fiber"
"gotomate/fiber/packages"
"io"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"githu... |
package terminal
import "github.com/lucasb-eyer/go-colorful"
const (
Xterm0 = 0
Xterm1 = 128.0 / 255.0
Xterm2 = 95.0 / 255.0
Xterm3 = 135.0 / 255.0
Xterm4 = 175.0 / 255.0
Xterm5 = 215.0 / 255.0
Xterm6 = 1
)
// Based on https://www.ditig.com/256-colors-cheat-sheet
var Xterm256 = []colorful.Color{
{R: Xterm0, ... |
// 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, distribute, sublicense, and/or sell
//... |
// Copyright 2020 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 storage
import (
"context"
"math"
"math/rand"
"os"
"path/filepath"
"strconv"
"sync"
"time"
"chromiumos/tast/common/testexec"
"chrom... |
// Copyright 2018 <NAME>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
... |
package canopus
import (
"bytes"
"encoding/binary"
"errors"
"log"
"sort"
"strings"
)
// Instantiates a new message object
// messageType (e.g. Confirm/Non-Confirm)
// CoAP code 404 - Not found etc
// Message ID uint16 unique id
func NewMessage(messageType uint8, code CoapCode, messageID uint16) Message {
retur... |
// Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package cmd
import (
"context"
"encoding/base64"
"fmt"
"io/ioutil"
"math/rand"
"os"
"path"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/leonelquinteros/gotext"
log "github.com/sirupsen/logrus"
"git... |
package staking
import (
"fmt"
"image"
"sort"
"strings"
"time"
"gioui.org/layout"
"gioui.org/text"
"gioui.org/unit"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/planetdecred/dcrlibwallet"
"github.com/planetdecred/godcr/ui/decredmaterial"
"github.com/planetdecred/godcr/ui/load"
"github.com/planetdecre... |
package main
import (
"bytes"
"fmt"
"log"
"os"
"sort"
"strconv"
"strings"
"github.com/lestrrat-go/codegen"
"github.com/pkg/errors"
)
func main() {
if err := _main(); err != nil {
log.Printf("%s", err)
os.Exit(1)
}
}
func _main() error {
return generateHeaders()
}
type headerField struct {
name ... |
//
// DISCLAIMER
//
// Copyright 2020 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... |
// Copyright 2018 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
/*
Copyright 2011-2021 <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, s... |
package doclib
import (
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
"github.com/blevesearch/bleve"
"github.com/peterwilliams97/pdf-search/serial"
"github.com/unidoc/unidoc/common"
pdf "github.com/unidoc/unidoc/pdf/model"
)
var ErrRange = errors.New("out of range... |
package session
import (
"bytes"
"encoding/xml"
"fmt"
"io"
"log"
"os"
"os/exec"
"sync"
"time"
"github.com/twstrike/coyim/client"
"github.com/twstrike/coyim/config"
"github.com/twstrike/coyim/event"
"github.com/twstrike/coyim/i18n"
"github.com/twstrike/coyim/roster"
"github.com/twstrike/coyim/xmpp"
"gi... |
package main
import (
"context"
"encoding/base64"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"math/rand"
"os"
"os/signal"
"os/user"
"runtime"
"strings"
"sync"
"time"
"github.com/gogo/protobuf/proto"
"github.com/matryer/resync"
qrterminal "github.com/mdp/qrterminal/v3"
"go.uber.org/zap"
"google.golang... |
// Copyright 2014 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
package main
import (
"context"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"runtime"
"strconv"
"sync"
"time"
"github.com/synerex/synerex_alpha/api/fleet"
socketio "github.com/googollee/go-socket.io"
"github.com/synerex/synerex_alpha/api"
"github.com/synerex/synerex_alpha/sxutil"
... |
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
package dataDefs
var Governments = map[string]string{
"government_none": "None",
"government_anarchy": "Anarchy",
"government_colony": "Colony",
"government_communism": "Communism",
"government_confederacy": "Confederacy",
"government_cooperative": "Cooperative",
"government_corporate": ... |
/*
Copyright 2017 caicloud authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... |
/*
* Copyright 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 downloader
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"math"
"os"
"path"
"strconv"
"strings"
"time"
)
const (
// SMOOTHINGFACTOR -
SMOOTHINGFACTOR = 0.005
resumerSuffix = ".audisto_"
// SelfTargetSuffix used when --targets=self, the output filename will be appended this suffi... |
// Copyright 2015-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be governed by the Apach... |
package estuary
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
//"net/http"
"path"
"time"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/config/configmap"
"github.com/rclone/rclone/fs/config/configstruct"
"github.com/rclone/rclone/fs/fserro... |
/*
* Copyright 2017 <NAME>, Inc. and Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: image.proto
package image_go_proto
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... |
// Copyright 2014 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... |
package base50
import (
"bytes"
"encoding/hex"
"testing"
)
func TestBase50AllOneByte(t *testing.T) {
for i := 0; i < 256; i++ {
for o := 0; o < 21; o++ {
ob := []byte{byte(i), byte(i), byte(i), byte(i),
byte(i), byte(i), byte(i)}
if o > 13 {
ob[0] = 0x00
ob[1] = 0x00
ob[2] = 0x00
ob[3... |
package handler
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"sort"
"strings"
"github.com/subosito/gotenv"
tb "gopkg.in/tucnak/telebot.v2"
)
func Handler(w http.ResponseWriter, r *http.Request) {
gotenv.Load()
var (
token = os.Getenv("TELEGRAM_TOKEN") // you mus... |
/*
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... |
// Copyright ©2013 The Gonum 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 mat
import (
"math"
"gonum.org/v1/gonum/blas"
"gonum.org/v1/gonum/blas/blas64"
"gonum.org/v1/gonum/lapack/lapack64"
)
const (
badTriangle = ... |
/*
Copyright 2017 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 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/*
Copyright 2015-2020 Gravitational, 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,... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Copyright 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
// Copyright 2014-2019 <NAME> <<EMAIL>>.
// Licensed under the MIT license.
// Powerful and easy to use http client
package httpclient
import (
"context"
"fmt"
"bytes"
"strings"
"time"
"io"
"io/ioutil"
"sync"
"net"
"net/http"
"net/http/cookiejar"
"net/http/httputil"
"net/url"
"crypto/tls"
"compre... |
// Copyright 2012 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.
// +build ignore
package main
// This program generates table.go and table_test.go.
// Invoke as:
//
// go run gen.go -version "xxx" >table.go
// go run... |
/*
* Copyright (c) 2018 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
*/
package tport
import (
"bufio"
"context"
"crypto/tls"
"errors"
"fmt"
"log"
"net"
"sort"
"strings"
"time"
"github.com/badu/http/hdr"
"githu... |
// Copyright (C) 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 t... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
package go_wasm_exec
import (
"crypto/rand"
"errors"
"fmt"
"io"
"log"
"math"
"os"
"reflect"
"sort"
"strings"
"time"
"github.com/pgavlin/warp/exec"
"github.com/pgavlin/warp/wasi"
"github.com/pgavlin/warp/wasm"
)
type Options struct {
Env map[string]string
Args []string
Stdin io.Reader
Stdout io.W... |
package gui
import (
"crypto/rand"
"fmt"
"net"
"os"
"runtime"
"strings"
"sync"
"time"
"github.com/niubaoshu/gotiny"
"github.com/tyler-smith/go-bip39"
"github.com/p9c/log"
"github.com/p9c/matrjoska/pkg/chainrpc/p2padvt"
"github.com/p9c/matrjoska/pkg/pipe"
"github.com/p9c/matrjoska/pkg/transport"
"githu... |
package main
import (
"context"
"crypto/tls"
"crypto/x509"
"fmt"
"github.com/autom8ter/machine"
"github.com/graphikDB/graphik/database"
"github.com/graphikDB/graphik/discover/k8s"
"github.com/graphikDB/graphik/gen/grpc/go"
"github.com/graphikDB/graphik/gql"
"github.com/graphikDB/graphik/gql/session"
"github... |
//go:build windows
// +build windows
package elocale
import (
"github.com/watermint/essentials/eidiom"
"github.com/watermint/essentials/eidiom/eoutcome"
"github.com/watermint/essentials/enative/ewindows"
)
func currentLocaleWithSysCall(apiName string) (string, eidiom.Outcome) {
locName := ewindows.NewBufferStrin... |
package tsdb
import (
"container/heap"
"encoding/binary"
"errors"
"fmt"
"sort"
"strings"
"github.com/influxdb/influxdb/influxql"
)
// MapperValue is a complex type, which can encapsulate data from both raw and aggregate
// mappers. This currently allows marshalling and network system to remain simpler. For
//... |
// Copyright (c) 2013 <NAME>. All rights reserved.
// See LICENCE file for permissions and restrictions.
//Package outside.
package outside
import (
"errors"
. "github.com/tHinqa/outside/types"
"math"
r "reflect"
"runtime"
"syscall"
"unsafe"
)
//import . "fmt"
//TODO(t): in/out flat structs within structs
//... |
package flat
import (
"errors"
"math"
"testing"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
dbm "github.com/cosmos/cosmos-sdk/db"
"github.com/cosmos/cosmos-sdk/db/memdb"
"github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/types/kv"
)
var (
... |
//
// fdx is a package encoding/decoding fdx formatted XML files.
//
// @author <NAME>, <<EMAIL>>
//
// BSD 2-Clause License
//
// Copyright (c) 2019, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following condit... |
package cpu
import (
"github.com/faiface/pixel"
"github.com/racerxdl/goboy/gameboy"
"github.com/racerxdl/goboy/pixhelp"
"image"
"image/color"
"sort"
)
type GPU struct {
mode gameboy.GPUMode
cpu *Core
modeClocks int
line ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.15.8
// source: biconom/client/rank/v1/rank_system.proto
package service_client_rank_pb
import (
rank_system "github.com/biconom/go-genproto/biconom/type/rank_system"
sort "github.com/biconom/go-genproto/bic... |
// Copyright 2016, 2017 Zebra Project
//
// 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 art
import (
"fmt"
"regexp"
"sort"
"strconv"
"strings"
)
const (
//
magicA9 = "${>a9+yeah+j7<ivy}"
magicJ7 = "@"
magicDs = magicA9 + magicJ7 + EnvSrcDb // need prefix
magicDo = magicA9 + magicJ7 + EnvOutDb // need prefix
HoldTop = "ITSELF"
CmndEnv = "ENV"
CmndVar = "VAR"
CmndRef = "REF"
CmndS... |
package downloader
import (
"context"
"errors"
"fmt"
"io"
"net/http"
"strings"
"sync"
"time"
"github.com/NVIDIA/aistore/3rdparty/glog"
"github.com/NVIDIA/aistore/cluster"
"github.com/NVIDIA/aistore/cmn"
"github.com/NVIDIA/aistore/fs"
"github.com/NVIDIA/aistore/stats"
)
// ===============================... |
// Copyright 2018-2020 (c) Cognizant Digital Business, Evolutionary AI. All rights reserved. Issued under the Apache 2.0 License.
package runner
// This file contains the implementation of the python based virtualenv
// runtime for studioML workloads
import (
"bufio"
"bytes"
"context"
"errors"
"fmt"
"io/ioutil... |
// Copyright (c) 2018, The GoKi 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 gi
import (
"image"
"log"
"github.com/goki/gi/gist"
"github.com/goki/gi/oswin"
"github.com/goki/gi/oswin/key"
"github.com/goki/gi/units"
... |
/**
* @Author: <NAME> <d33pblue>
* @Date: 2020-Apr-18
* @Project: Proof of Evolution
* @Filename: block.go
* @Last modified by: d33pblue
* @Last modified time: 2020-May-29
* @Copyright: 2020
*/
// Package block contains the definitions
// of blocks, transactions, nonce
package blockchain
import(
"fmt"
... |
// Copyright 2017 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package api
import (
"bytes"
"fmt"
"html/template"
"math/rand"
"net/http"
"net/http/httptest"
"os"
"testing"
"github.com/stretchr/testify/assert"
"github.c... |
/*
Copyright (c) 2016-2018 <NAME> / <NAME> v1
Distributable under the terms of The "BSD New" License
that can be found in the LICENSE file, herein included
as part of this header.
flarm-nmea.go: Functions for generating FLARM-related NMEA sentences
to communicate traffic bearing / distance to glider computers
... |
/*
Copyright 2017 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 commands
import (
"encoding/json"
"fmt"
"github.com/pivotal-cf/jhanda"
"github.com/pivotal-cf/om/download_clients"
"github.com/pivotal-cf/om/extractor"
"github.com/pivotal-cf/om/validator"
"io"
"io/ioutil"
"log"
"os"
"path"
"path/filepath"
)
type PivnetOptions struct {
PivnetProductSlug string ... |
package scene
import "math"
// The is a copy of fogleman/fauxl/matrix.go
type Matrix struct {
X00, X01, X02, X03 float64
X10, X11, X12, X13 float64
X20, X21, X22, X23 float64
X30, X31, X32, X33 float64
}
func Identity() Matrix {
return Matrix{
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1}
}
func Tra... |
/*
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 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
package device
import (
"github.com/neirolis/onvif-go/xsd"
"github.com/neirolis/onvif-go/xsd/onvif"
)
type Service struct {
Namespace xsd.AnyURI
XAddr xsd.AnyURI
Capabilities
Version onvif.OnvifVersion
}
type Capabilities struct {
Any string
}
type DeviceServiceCapabilities struct {
Network NetworkCapa... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: addressService.proto
package eth // import "github.com/chainweaver/protobuf/protoc-gen-go/eth"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
im... |
/*
Copyright 2019 Cisco Systems
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
/*
Copyright 2017 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 autopilot
import (
"bytes"
"fmt"
"math/rand"
"net"
"sync"
"time"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcutil"
"github.com/davecgh/go-spew/spew"
"github.com/cryptomeow/lnd/lnwire"
)
// Config couples all the items that an autopilot agent needs to function.
// All items within the s... |
/*
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... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package lifecycle
import (
"fmt"
"sort"
"strconv"
"sync"
lb "github.com/hyperledger/fabric-protos-go/peer/lifecycle"
"github.com/hyperledger/fabric/common/chaincode"
"github.com/hyperledger/fabric/common/util"
"github.com/hyp... |
// Command grpcui starts a simple web server that provides a web form for making gRPC requests.
// Command line parameters control how grpcui connects to the gRPC backend which actually services
// the requests. It can use a supplied descriptor file, proto source files, or service reflection
// for discovering the sche... |
package main
import (
"fmt"
"io"
"io/ioutil"
"strings"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
"github.com/lxc/lxd/client"
"github.com/lxc/lxd/lxc/config"
"github.com/lxc/lxd/shared"
"github.com/lxc/lxd/shared/api"
cli "github.com/lxc/lxd/shared/cmd"
"github.com/lxc/lxd/shared/i18n"
"github.com/lxc/... |
/*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: galleryimage.proto
package compute
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
common "github.com/microsoft/moc/rpc/common"
grpc "google.golang.org/grpc"
codes "go... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/resources/ad_group_bid_modifier.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/... |
/**
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022 Intel Corporation
* This application will be executed from an Ansible role during the provisioning process
* in deployment of experiance kit.
* The goal is to find 4 NIC's in the Linux for configuring and using SR-IOV.
*
* @author <NAME>
* @version... |
// Copyright 2018 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 filter
import (
"encoding/binary"
"fmt"
"sync"
"sync/atomic"
"time"
"syslog"
"github.com/google/netstack/tcpip"
"github.com/google/netst... |
package jvm
import "math"
//lint:file-ignore ST1006 MY
type InstructionCodeReader struct {
bytecode []byte
pc int
}
func NewInstructionCodeReader(code []byte, pc int) *InstructionCodeReader {
return &InstructionCodeReader{
bytecode: code,
pc: pc,
}
}
func (this *InstructionCodeReader) Reset(cod... |
// Copyright (c) 2019 Baidu, 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... |
package openflow13
// Package openflow13 provides OpenFlow 1.3 structs along with Read
// and Write methods for each.
// OpenFlow Wire Protocol 0x04
//
// Struct documentation is taken from the OpenFlow Switch
// Specification Version 1.3.3.
// https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-... |
// This module contains a collection of YANG definitions
// for Cisco IOS-XR wanphy-ui package operational data.
//
// This module contains definitions
// for the following management objects:
// wanphy: WANPHY operational data
//
// Copyright (c) 2013-2017 by Cisco Systems, Inc.
// All rights reserved.
package wan... |
package carbonapi
import (
"expvar"
"fmt"
"net/http"
"time"
"github.com/bookingcom/carbonapi/carbonapipb"
"github.com/lomik/zapwriter"
"github.com/prometheus/client_golang/prometheus"
"go.uber.org/zap"
"github.com/bookingcom/carbonapi/cache"
"github.com/bookingcom/carbonapi/cfg"
"github.com/bookingcom/car... |
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use ... |
// 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 2019 Cisco Systems
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
package main
import (
"encoding/json"
"errors"
"fmt"
"strings"
"github.com/hyperledger/fabric-chaincode-go/shim"
pb "github.com/hyperledger/fabric-protos-go/peer"
logger "github.com/sirupsen/logrus"
)
// ToggleLike Creates and then toggles likes as a boolean value
// for a datacall
func (this *SmartContract) ... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/cluster/outlier_detection.proto
package cluster
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/p... |
// Copyright © 2015-2017,2020-2021 <NAME>.
// All rights reserved, except as granted under license.
// Licensed per file LICENSE.txt
package resultset
import (
"encoding/json"
"fmt"
"io"
"os"
"strconv"
"strings"
"unicode/utf16"
"golang.org/x/net/idna"
"github.com/philpennock/character/entities"
"github.co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.