text
stringlengths
8.57k
38.1k
/* Copyright 2017-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 Apache License, Version ...
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM...
package net import ( "fmt" "io/ioutil" "net" "path/filepath" "syscall" "github.com/coreos/go-iptables/iptables" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/vishvananda/netlink" "k8s.io/apimachinery/pkg/types" "github.com/weaveworks/weave/common" "github.com/weaveworks/weave/common/od...
// Copyright (c) nano Author and TFG Co. All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, cop...
// Adapted from rlpx for Theta // Copyright 2015 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, ...
// Copyright (C) 2017 <NAME> // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation, version. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; withou...
// web100 provides tools for reading web100 snapshot logs, and parsing snapshots. package web100 import ( "bytes" "encoding/binary" "errors" "fmt" "io" "net" "strings" ) // NOTES: // This implementation relies on some apparent invariants that may or may not // be true across all NDT snaplogs. The invariants...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package akamai import ( "context" "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) // Use the `GtmProperty` re...
package compiler import ( "bytes" "encoding/json" "fmt" "go/ast" "go/token" "sort" "strings" "github.com/gopherjs/gopherjs/compiler/analysis" "github.com/gopherjs/gopherjs/gcexporter" "golang.org/x/tools/go/types" "golang.org/x/tools/go/types/typeutil" ) type pkgContext struct { *analysis.Info typeNames...
package openapi import ( "errors" "fmt" "log" "net/http" "regexp" "strings" "time" "github.com/go-openapi/loads" "github.com/go-openapi/spec" ) // specV2Analyser defines an SpecAnalyser implementation for OpenAPI v2 specification // Forcing creation of this object via constructor so proper input validation ...
// Copyright 2022 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 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 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR...
package app import ( "encoding/json" "fmt" "msfs2020-gopilot/internal/config" "msfs2020-gopilot/internal/util" "msfs2020-gopilot/internal/webserver" "msfs2020-gopilot/internal/websockets" "net" "net/http" "os" "os/signal" "path/filepath" "strings" "syscall" "time" "github.com/buger/jsonparser" alphafo...
package linearmodel import ( "log" "math" "strings" "sync" "time" "gonum.org/v1/gonum/floats" "github.com/pa-m/sklearn/metrics" "github.com/pa-m/sklearn/preprocessing" "github.com/pa-m/sklearn/base" "gonum.org/v1/gonum/mat" "gonum.org/v1/gonum/blas/blas64" "golang.org/x/exp/rand" "gonum.org/v1/gonum...
package styl import ( "fmt" . "gopkg.in/metakeule/goh4.v5" "strings" ) // values const ( Scroll_ = "scroll" // "background-attachment"=scroll | fixed | inherit Fixed_ = "fixed" Inherit_ = "inherit" Left_ = "left" // "background-position"=left | center | right |...
// Copyright 2019 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, ...
package common // config contains functions and structs for dealing with the configuration file. import ( "fmt" "math" "math/rand" "os" "path/filepath" "strconv" "strings" "github.com/open-horizon/edge-utilities/properties" ) // Cloud Sync Service or Edge Sync Service const ( CSS = "CSS" ESS = "ESS" ) //...
// Copyright 2015 The Xorm 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 dialects import ( "context" "database/sql" "errors" "fmt" "net/url" "strconv" "strings" "xorm.io/xorm/core" "xorm.io/xorm/schemas" ) var (...
package controllers import ( "context" "fmt" "sort" "time" "github.com/actions-runner-controller/actions-runner-controller/api/v1alpha1" "github.com/go-logr/logr" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s....
// Package operator contains main implementation of Flatcar Linux Update Operator. package operator import ( "context" "fmt" "time" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/selection" "...
package ingressip import ( "fmt" "net" "sort" "sync" "time" "github.com/golang/glog" kerrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/a...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: tensorflow/core/protobuf/remote_tensor_handle.proto package for_core_protos_go_proto import ( tensor_shape_go_proto "github.com/tensorflow/tensorflow/tensorflow/go/core/framework/tensor_shape_...
/* 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.13.0 // source: error_codes.proto package tfproto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runti...
package client import ( "bytes" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "strings" "time" ) // MNDApp struct handles API calls to Halo Masternodes DApp type MNDApp struct { CheckPayout bool `json:"checkpayout"` IntervalSeconds int `json:"intervalseconds"` AutomateAlert bool `json:...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1alpha1api20210501storage import ( "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" ...
package main import ( "encoding/xml" "fmt" "io" "log" "net/http" "os" "os/exec" "regexp" "strconv" ) const LISTEN_ADDRESS = ":9202" const NVIDIA_SMI_PATH = "/usr/bin/nvidia-smi" var testMode string type NvidiaSmiLog struct { DriverVersion string `xml:"driver_version"` CudaVersion string `xml:"cuda_vers...
package handler import ( "crypto/sha1" "fmt" "net/http" "net/url" "sort" "strconv" "sync" "time" "github.com/golang/protobuf/ptypes" "golang.org/x/net/context" "google.golang.org/appengine" "infra/appengine/sheriff-o-matic/som/analyzer" buildstep "infra/appengine/sheriff-o-matic/som/analyzer/step" "inf...
package command import ( "encoding/json" "fmt" "io/ioutil" "net" "os" "os/exec" "os/user" "strings" "github.com/hashicorp/vault/api" "github.com/hashicorp/vault/builtin/logical/ssh" "github.com/hashicorp/vault/meta" homedir "github.com/mitchellh/go-homedir" "github.com/mitchellh/mapstructure" "github.co...
// +build !ci,efl package efl // #cgo pkg-config: eina evas ecore-evas // #include <Eina.h> // #include <Evas.h> // #include <Ecore.h> // #include <Ecore_Evas.h> // #include <stdlib.h> // // void onObjectMouseDown_cgo(Evas_Object *, void *); import "C" import "log" import "image/color" import "math" import "sync" im...
package link import ( "context" "database/sql" "fmt" "hash/fnv" "time" "github.com/fabric8-services/fabric8-wit/closeable" "github.com/fabric8-services/fabric8-wit/application/repository" "github.com/fabric8-services/fabric8-wit/errors" "github.com/fabric8-services/fabric8-wit/gormsupport" "github.com/fabr...
package tdl /** Cisco's TDL - The Definition Language Copyright (c) 2021 Cisco Systems and/or its affiliates. Licensed under the Apache License, Version 2.0 (the "License"); that can be found in the LICENSE file in the root of the source tree. */ import ( "emu/core" engines "emu/plugins/field_engine" "emu/plugins/...
package sync import ( "context" "errors" "fmt" "github.com/spacemeshos/go-spacemesh/events" "github.com/spacemeshos/go-spacemesh/layerfetcher" "sync" "time" "github.com/spacemeshos/go-spacemesh/common/types" "github.com/spacemeshos/go-spacemesh/database" "github.com/spacemeshos/go-spacemesh/log" "github.co...
package generators import ( "bytes" "errors" "fmt" "time" "github.com/MichaelTJones/pcg" "github.com/brianvoe/gofakeit/v6" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/bsontype" ) // CollInfo stores global info on the collection to generate type CollInfo struct { // number of documen...
package helpers import ( "context" "math/rand" "reflect" "regexp" "strconv" "strings" "testing" "time" "github.com/savantes1/outcap" ) // Function anatomy testing struct type FuncAnatomyTest struct { Name string Obj interface{} ArgTypes []reflect.Type ReturnTypes []reflect.Type } // Runs standard fu...
// Code generated by protoc-gen-go. // source: google.golang.org/cloud/bigtable/internal/table_service_proto/bigtable_table_service_messages.proto // DO NOT EDIT! /* Package google_bigtable_admin_table_v1 is a generated protocol buffer package. It is generated from these files: google.golang.org/cloud/bigtable/inter...
package main import ( . "github.com/franeklubi/tie" . "./Mover" . "github.com/franeklubi/SimpleVector" . "github.com/franeklubi/SmartList" "time" "strconv" ) const ( // animation kinds BURST int = 0 E_BURST int = 1 ) var ( // defining bounds platforms []Bound = []Bound...
// Copyright 2016 HenryLee. 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 server import ( "encoding/json" "fmt" "net/http" "os" "strings" "time" "github.com/docker/distribution" "github.com/docker/distribution/context" "github.com/docker/distribution/digest" "github.com/docker/distribution/manifest/schema1" "github.com/docker/distribution/manifest/schema2" regapi "githu...
// Copyright 2020 <NAME> // // https://github.com/atc0005/bridge // // Licensed under the MIT License. See LICENSE file in the project root for // full license information. // Package matches provides types and functions intended to help with // collecting and validating file search results against required criteria. ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: domain/billing/payment/v1/payment.proto package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "r...
// Code generated by ec3. DO NOT EDIT. package p256 import "math/big" // scalarsize is the size of a field element in bytes. const scalarsize = 32 // scalar is a field element. type scalar [32]uint8 // scalarp is the field prime modulus as a big integer. var scalarp, _ = new(big.Int).SetString("1157920892103562487...
// Copyright 2016 <NAME>. All rights reserved. // Use of this source code is governed by the MIT-license // as defined in the LICENSE file. // +build android shiny package shiny import ( "image" "image/color" "image/draw" "log" rv "github.com/TheGrum/renderview" "golang.org/x/exp/shiny/widget/theme" "golan...
// Copyright 2016 NDP Systèmes. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
// Copyright 2018 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
package main import ( "bytes" "encoding/json" "errors" "flag" "fmt" "io/ioutil" "os" "os/exec" "strings" "sync" "time" "github.com/lucas-clemente/quic-go/internal/utils" "github.com/lucas-clemente/quic-go/rquic" "github.com/lucas-clemente/quic-go/rquic/rLogger" ) type netw struct { BW, RTT float64 } ...
package podcast import ( "bytes" "encoding/xml" "fmt" "io" "strconv" "strings" "time" "unicode/utf8" "github.com/pkg/errors" "github.com/podpalinc/rss-feed-generator/html2text" ) // Constants to use while generating podcast feed. const ( pVersion = "1.3.1" HEADER = "<?xml version=\"1.0\" encodi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: message.proto package xuperp2p 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 compi...
package main // import "github.com/practice-golang/9minutes" import ( "embed" "encoding/json" "fmt" "io/fs" "log" "net/http" "os" "regexp" "strings" "time" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" "gopkg.in/ini.v1" _ "modernc.org/sqlite" "github.com/practice-golang/9mi...
package httpbakery import ( "encoding/base64" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "net/http/cookiejar" "net/url" "strings" "sync" "time" "github.com/juju/loggo" "golang.org/x/net/publicsuffix" "gopkg.in/errgo.v1" "gopkg.in/macaroon.v1" "gopkg.in/macaroon-bakery.v1/bakery" "gopkg.in/mac...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: schema.proto package typed import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal va...
// Copyright 2014, The Serviced Authors. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package container import ( "bytes" "errors" "fmt" "net" "os" "regexp" "strconv" "strings" "sync" "text/template" "time" "github.com/zeno...
package main import ( "bufio" "context" "encoding/json" "fmt" "github.com/gorilla/websocket" "io" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" v1 "k8s.io/client-go/kubernetes/typed/core/v1" "k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/util/h...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2018 Datadog, Inc. package config import ( "bytes" "fmt" "net/url" "os" "path/filepath" "stri...
package cobra import ( "bytes" "fmt" "io" "os" "sort" "strings" "github.com/spf13/pflag" ) // Annotations for Bash completion. const ( BashCompFilenameExt = "cobra_annotation_bash_completion_filename_extensions" BashCompCustom = "cobra_annotation_bash_completion_custom" BashCompOneRequiredFlag...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package agent import ( "bytes" "compress/gzip" "encoding/base64" "encoding/json" "fmt" "net" "regexp" "sort" "strconv" "strings" "text/template" "github.com/Azure/agentbaker/pkg/agent/datamodel" "github.com/A...
/* SPDX-License-Identifier: MIT * * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved. */ package memmod import ( "errors" "fmt" "syscall" "unsafe" "golang.org/x/sys/windows" ) type addressList struct { next *addressList address uintptr } func (head *addressList) free() { for node := head; n...
package ingress import ( "context" "fmt" "regexp" "strings" iov1 "github.com/openshift/api/operatoringress/v1" logf "github.com/openshift/cluster-ingress-operator/pkg/log" "github.com/openshift/cluster-ingress-operator/pkg/manifests" retryable "github.com/openshift/cluster-ingress-operator/pkg/util/retryablee...
package main import ( "fmt" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" "github.com/tidwall/gjson" "math" "regexp" "sort" "strconv" "strings" "time" ) type SortFunc func(channels []Channel) []Channel type SortFuncs map[string]SortFunc var sortFuncs = SortFuncs { "Channel balance": func(channels ...
package gui import ( "fmt" "io/ioutil" "log" "os" "path" "regexp" "runtime" "strings" "time" "unicode" "github.com/felixangell/go-rope" "github.com/felixangell/phi-editor/cfg" "github.com/felixangell/strife" "github.com/veandco/go-sdl2/sdl" ) var ( timer int64 = 0 reset_timer int64 = 0 shoul...
/* 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 servermanager import ( "bytes" "fmt" "html/template" "io/ioutil" "net/http" "net/http/httputil" "net/url" "os" "path/filepath" "runtime" "strings" "time" "github.com/cj123/ini" "github.com/sirupsen/logrus" "golang.org/x/net/html" ) // stracker handles configuration of the stracker plugin // ht...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/overload/v3/overload.proto package envoy_config_overload_v3 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" any "github.com/gola...
package tortoisebeacon import ( "context" "errors" "fmt" "math/big" "sync" "sync/atomic" "time" "github.com/ALTree/bigfloat" "github.com/spacemeshos/go-spacemesh/common/types" "github.com/spacemeshos/go-spacemesh/common/util" "github.com/spacemeshos/go-spacemesh/database" "github.com/spacemeshos/go-spacem...
package open_im_sdk import ( "github.com/gorilla/websocket" ) type cmd2Value struct { Cmd string Value interface{} } type diff interface { Key() string Value() interface{} } //fixme---------------UiParam-->client--------------- type paramsUiAddFriend struct { UID string `json:"uid" validate:"require...
// pmm-agent // Copyright 2019 Percona 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 agr...
package accumulator import ( "fmt" "os" "time" ) // A FullForest is the entire accumulator of the UTXO set. This is // what the bridge node stores. Everything is always full. /* The forest is structured in the space of a tree numbered from the bottom left, taking up the space of a perfect tree that can contain t...
// Copyright 2021 BastionZero 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 wr...
// Copyright 2017 The Chromium 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 main import ( "context" "strconv" "github.com/golang/protobuf/jsonpb" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes...
// Copyright 2018 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: extension_user/extension_user.proto package extension_user import ( fmt "fmt" proto "github.com/cosmos/gogoproto/proto" extension_base "github.com/cosmos/gogoproto/protoc-gen-gogo/testdata/extension_base" extension_extra "github.com/cosmos/gogoproto/pr...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/services/ad_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.golang....
// Code generated by protoc-gen-go. DO NOT EDIT. // source: extensions/stackdriver/edges/edges.proto package google_cloud_meshtelemetry_v1alpha1 import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" grpc "google.golang.org/grpc" mat...
package pole import ( "fmt" "github.com/yaricom/goNEAT/v2/experiment" "github.com/yaricom/goNEAT/v2/neat" "github.com/yaricom/goNEAT/v2/neat/genetics" "github.com/yaricom/goNEAT/v2/neat/network" "math" "os" "sort" ) const thirtySixDegrees = 36 * math.Pi / 180.0 // The maximal number of time steps for Markov ...
package genesis import ( "bytes" "context" "crypto/rand" "encoding/json" "fmt" "github.com/EpiK-Protocol/go-epik/chain/actors/builtin" "github.com/EpiK-Protocol/go-epik/journal" "github.com/ipfs/go-cid" "github.com/ipfs/go-datastore" cbor "github.com/ipfs/go-ipld-cbor" logging "github.com/ipfs/go-log/v2" ...
package crowdin import ( "errors" "fmt" "strings" "time" ) // Publicly available high level functions generally combining several API calls const polldelaysec = 5 // Defines delay in seconds between each api call when polling a progress status // Lookup buildId for current project func (crowdin *C...
/* Copyright (C) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this file (originally named formatter.go) and associated documentation files * (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
// 13 december 2015 package ui // #include <stdlib.h> // #include "ui.h" // // TODO figure this one out // extern void *uimalloc(size_t); // static uiDrawBrush *newBrush(void) // { // uiDrawBrush *b; // // b = (uiDrawBrush *) uimalloc(sizeof (uiDrawBrush)); // return b; // } // static uiDrawBrushGradientStop *new...
/* * Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package util import ( "crypto/rsa" "encoding/xml" "fmt" "github.com/google/uuid" "github.com/intel-secl/intel-secl/v3/pkg/lib/common/crypt" commLog "github.com/intel-secl/intel-secl/v3/pkg/lib/common/log" "github.com/intel-s...
/* 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 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
package veneur import ( "bufio" "bytes" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "errors" "fmt" "net" "net/http" "net/url" "strconv" "sync" "syscall" "time" "github.com/DataDog/datadog-go/statsd" "github.com/Sirupsen/logrus" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credent...
// Copyright 2016 Google Inc. All Rights Reserved. // Copyright 2016 Palm Stone Games, 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/...
package blackjack import ( "fmt" "io" "math/rand" "os" "strconv" "strings" "time" "github.com/mbarley333/cards" ) type Action int var ActionStringMap = map[Action]string{ None: "Invalid Action", ActionHit: "Hit", ActionStand: "Stand", ActionQuit: "Quit", ActionDoubleDown: ...
package v8 // Reference materials: // https://developers.google.com/v8/embed#accessors // https://developers.google.com/v8/embed#exceptions // https://docs.google.com/document/d/1g8JFi8T_oAE_7uAri7Njtig7fKaPDfotU6huOa1alds/edit // TODO: // Value.Export(v) --> inverse of Context.Create() // Proxy objects // ...
// 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 2013 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 boosd import ( "fmt" "go/token" ) type ObjectKind int const ( ObjModel ObjectKind = iota ObjInterface ObjKynd ObjFlow ObjStock ObjTime ObjAu...
// 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 ( "flag" "fmt" "math/big" "time" "github.com/ldsec/lattigo/v2/ring" "github.com/ldsec/lattigo/v2/utils" ) // Vectorized oblivious evaluation is a two-party protocol for the function f(x) = ax + b where a sender // inputs the field elements a, b, and a receiver inputs x and learns f(x). // /...
// Code generated by msgraph.go/gen DO NOT EDIT. package msgraph import "time" // EducationAssignment undocumented type EducationAssignment struct { // Entity is the base model of EducationAssignment Entity // AddedStudentAction undocumented AddedStudentAction *EducationAddedStudentAction `json:"addedStudentActi...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: list_tool_execution_result.proto package execute import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" tool "github.com/easyopsapis/easyops-api-go/protorepo-models/e...
package main import ( "encoding/binary" "encoding/hex" "encoding/json" "fmt" "log" "os" "path/filepath" "regexp" "strings" "time" "unicode/utf8" ) // Prefetch file header struct type PrefetchHeader struct { Version uint32 Signature string _unk0 []byte Filesize uint32 Exename string Hash ...
// The MIT License // // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. // // Copyright (c) 2020 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 Soft...
//Package goydlidar is bindings to the ydlidar driver sdk. The documentation is in Chinese. So, I have no idea what it says. package goydlidar /* #include "cgoyddriver.h" #include <stdlib.h> #cgo CFLAGS: -I/usr/include #cgo CXXFLAGS: --std=c++11 //#cgo CXXFLAGS: -I/usr/include/c++/7 #cgo LDFLAGS: -L${SRCDIR} -lydl...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/http/fault/v3alpha/fault.proto package envoy_config_filter_http_fault_v3alpha import ( fmt "fmt" route "github.com/altipla-consulting/envoy-api/envoy/api/v3alpha/route" v3alpha1 "github.com/altipla-consulting/envoy-api/envoy/config/fil...
// Copyright (c) 2017-2018 Uber 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 applicabl...
// Package bot provides the replbot main functionality package bot import ( "context" _ "embed" // go:embed requires this "errors" "fmt" "github.com/gliderlabs/ssh" gossh "golang.org/x/crypto/ssh" "golang.org/x/sync/errgroup" "heckel.io/replbot/config" "heckel.io/replbot/util" "log" "net" "net/http" "net/...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package startcmd import ( "crypto/tls" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "path/filepath" "strconv" "strings" "time" "github.com/gorilla/mux" "github.com/rs/cors" "github.com/spf13/co...
// Copyright 2018-2019 CERN // // 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 wr...