text
stringlengths
8.57k
38.1k
// Copyright (c) 2016 <NAME> // 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 l...
package activitypub import ( "bytes" "encoding/gob" "encoding/json" "fmt" "io" "reflect" "time" "github.com/valyala/fastjson" ) // CanReceiveActivities Types const ( ApplicationType ActivityVocabularyType = "Application" GroupType ActivityVocabularyType = "Group" OrganizationType ActivityVocabular...
package ctr import ( "context" "fmt" "io" "os" "os/signal" "path/filepath" "strconv" "strings" "sync" "syscall" "time" "github.com/containerd/console" "github.com/containerd/containerd/cio" "github.com/containerd/fifo" "github.com/hashicorp/go-multierror" "github.com/opencontainers/runc/libcontainer" ...
/* Copyright 2018 Harvey OS Team 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. 2. Redistr...
// svgdeck: make SVG slide decks package main import ( "flag" "fmt" "io/ioutil" "math" "os" "path/filepath" "strconv" "strings" "github.com/ajstarks/deck" svg "github.com/ajstarks/svgo/float" ) const ( mm2pt = 2.83464 // mm to pt conversion linespacing = 1.4 listspacing = 2.0 fontfactor = 1.0 l...
/*Copyright 2020 Infinidat Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed u...
// 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...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: import_public/sub/a.proto package sub import ( fmt "fmt" proto "github.com/cosmos/gogoproto/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/overload/v2alpha/overload.proto package v2alpha import ( fmt "fmt" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" any "github.com/golang/protobuf/ptypes/any" duration "github.com/golang/proto...
package main import ( "image/color" "github.com/bwiggs/go-nexrad/archive2" "golang.org/x/image/colornames" ) // ccColor Corollation Coefficient color spectrum func ccColor(val float32) color.Color { gradient := []gradientValue{ {0.275, colornames.Black}, {0.35, colornames.Darkgrey}, {0.4, colornames.Gray},...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/monitoring/v3/notification.proto package monitoring import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genproto/googleapis/api/annotations" import google_api3 "google.golang.org/genproto/goo...
package github import ( "encoding/json" "errors" "fmt" "github.com/go-resty/resty/v2" "github.com/gofiber/fiber/v2" "github.com/tsundata/assistant/api/pb" "github.com/tsundata/assistant/internal/pkg/sdk" "github.com/tsundata/assistant/internal/pkg/util" "net/http" "time" ) const ( ID = "github...
// // Copyright 2020 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
package logic // Copyright (c) Microsoft and contributors. 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 // // Unles...
package solana import ( "bytes" "crypto/ed25519" "encoding/base64" "encoding/json" "math/rand" "strconv" "sync" "time" "github.com/mr-tron/base58" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "github.com/sirupsen/logrus" "github.com/ybbus/jsonrpc" "github.com/kinecosystem/ag...
// Copyright 2013, 2014 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package gpx implements a simple GPX parser. package gpx import ( "bytes" "encoding/xml" "fmt" "io" "math" "os" "time" "golang.org/x/net/html/charset"...
package command import ( //"bufio" "fmt" "log" "strings" //"text/scanner" ) const NexthopVersion = "nexthop v0.0" const NexthopCopyright = "The MIT License (MIT)\r\n" + "\r\n" + "Copyright (c) 2016 The Nexthop Authors\r\n" + "\r\n" + "Permission is hereby granted, free of charge, to any person obtaining a c...
package easymongo import ( "context" "encoding/json" "errors" "fmt" "reflect" "time" "go.mongodb.org/mongo-driver/bson/bsoncodec" "go.mongodb.org/mongo-driver/bson/bsonoptions" "go.mongodb.org/mongo-driver/event" "go.mongodb.org/mongo-driver/mongo/readconcern" "go.mongodb.org/mongo-driver/mongo/writeconcer...
package terexlang import ( "errors" "fmt" "io/ioutil" "os/exec" "strings" "github.com/npillmayer/gorgo/lr" "github.com/npillmayer/gorgo/lr/earley" "github.com/npillmayer/gorgo/lr/scanner" "github.com/npillmayer/gorgo/lr/sppf" "github.com/npillmayer/gorgo/terex" "github.com/npillmayer/gorgo/terex/termr" "g...
package main import ( "bufio" "bytes" "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "regexp" "sort" "strings" "time" "github.com/go-ee/schkola/person" "github.com/go-ee/schkola/shared" "github.com/go-ee/schkola/student" "github.com/looplab/eventhorizon" "github.com/yvasiyarov/php_session_d...
/* * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * This source code is licensed under the Apache License Version 2.0. */ package ui import ( "encoding/json" "errors" "fmt" "github.com/derailed/tview" "github.com/gdamore/tcell/v2" "io/ioutil" v1 "k8s.io/api/core/v1" "k8s.io/ap...
package vsphereclient type VmInfo struct { VirtualMachines []VirtualMachine `json:"VirtualMachines"` } type VirtualMachine struct { Self struct { Type string `json:"Type"` Value string `json:"Value"` } `json:"Self"` Value interface{} `json:"Value"` AvailableField interface{} `json:"AvailableField"`...
package utils import ( "bufio" "bytes" "encoding/json" "fmt" "io" "io/ioutil" "net/http" "os" "os/exec" "regexp" "runtime/debug" "github.com/MohammedAl-Mahdawi/bnkr/app/dal" "github.com/MohammedAl-Mahdawi/bnkr/app/types" "github.com/MohammedAl-Mahdawi/bnkr/config" "github.com/pkg/sftp" "golang.org/x/c...
// Package jsonschema uses reflection to generate JSON Schemas from Go types [1]. // // If json tags are present on struct fields, they will be used to infer // property names and if a property is required (omitempty is present). // // [1] http://json-schema.org/latest/json-schema-validation.html package jsonschema im...
package runtime import ( "context" "fmt" "path/filepath" "time" beacon "github.com/oasisprotocol/oasis-core/go/beacon/api" "github.com/oasisprotocol/oasis-core/go/common" "github.com/oasisprotocol/oasis-core/go/common/cbor" "github.com/oasisprotocol/oasis-core/go/common/node" "github.com/oasisprotocol/oasis-...
// Copyright 2016 CoreOS, 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...
/* // Copyright (c) 2016 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
/* Copyright 2019 ahmetb. 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 distrib...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: nrpc.proto package nrpc // import "github.com/nats-rpc/nrpc" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" // Reference imports to suppress errors ...
// Copyright 2016-2018 The NATS Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
package nginx import ( "fmt" "net/http" "os" "os/exec" "path" "strconv" "strings" "time" "github.com/nginxinc/kubernetes-ingress/internal/metrics/collectors" "github.com/golang/glog" "github.com/nginxinc/nginx-plus-go-client/client" ) const ( // ReloadForEndpointsUpdate means that is caused by an endpoi...
// Copyright 2021 The forwarder Authors. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. package proxy import ( "context" "crypto/tls" "encoding/base64" "fmt" "net" "net/http" "net/url" "strconv" "strings" "sync" "time" "github.com/ea...
package cos // Basic imports import ( "context" "fmt" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" "github.com/toranger/cos-go-sdk-v5" "io/ioutil" "math/rand" "net/http" "net/url" "os" "strings" "testing" "time" ) // Define the suite, and absorb the built-in basic suite // fun...
// Based on code originally written by <NAME> in the public domain, // https://web.archive.org/web/20070212102708/http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_avl.aspx package avltree import ( "sync" "github.com/johan-bolmsjo/gods/v2/list" "github.com/johan-bolmsjo/gods/v2/math" ) // Maximum tree h...
// Copyright 2015 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 ...
package service import ( "bytes" "context" "errors" "io/ioutil" "net/http" "net/http/httptest" "runtime" "testing" "time" "github.com/grafana/grafana/pkg/bus" "github.com/grafana/grafana/pkg/components/simplejson" "github.com/grafana/grafana/pkg/infra/kvstore" "github.com/grafana/grafana/pkg/infra/log" ...
package tdl import ( "bytes" "fmt" "math" "testing" ) // compareBytes compares that two byte slices are equal. // In case they are not, it fails the test. func compareBytes(t *testing.T, a []byte, b []byte, message string) { if bytes.Compare(a, b) == 0 { return } if len(message) == 0 { message = fmt.Sprint...
/* * Spinnaker API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package swagger import ( "bytes" "encoding/json" "encoding/xml" "errors...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.3 // source: admin/public_admin.proto package admin import ( context "context" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" empty "github.com/golang/pr...
// Given a list of -prefix arguments, expand those prefixes to a list of Etcd // paths to Gazette consumers and compare the state of the consumer to the // state of the source journals to determine how much data backlog exists for // each consumer. In monitor mode, expose all consumers as Prometheus metrics // for cont...
package strutil import "strings" func HTMLEscapeSpecialRunes(str string) string { var b strings.Builder b.Grow(len(str)) for _, r := range str { entity, ok := runeEntity[r] if ok { b.WriteString(entity) } else { b.WriteRune(r) } } return b.String() } var runeEntity = map[rune]string{ ' ': "&nbsp;...
// Copyright 2014 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
// breed /* Copyright 2021 <NAME> and <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
package main import ( "bytes" "flag" "fmt" "log" "math/rand" "net" "os" "path/filepath" "sort" "strings" "sync" "time" "github.com/ammario/ipisp" "github.com/muesli/cache2go" "github.com/emicklei/dot" . "github.com/gagliardetto/utilz" "github.com/miekg/dns" "gopkg.in/pipe.v2" ) var ( // rootNS is...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/errors/bidding_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google.golang.org/genpro...
package v1 import ( "time" "k8s.io/kubernetes/pkg/api/unversioned" kapi "k8s.io/kubernetes/pkg/api/v1" ) // Build encapsulates the inputs needed to produce a new deployable image, as well as // the status of the execution and a reference to the Pod which executed the build. type Build struct { unversioned.TypeMe...
package buildah import ( "context" "encoding/json" "runtime" "strings" "time" "github.com/containers/buildah/docker" "github.com/containers/image/manifest" "github.com/containers/image/transports" "github.com/containers/image/types" "github.com/containers/storage/pkg/stringid" ociv1 "github.com/opencontain...
// Copyright 2018 The CUE Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
package agent import ( "net/http" "reflect" "sort" "strings" "syscall" "time" "github.com/labstack/echo/v4" "github.com/pkg/errors" "golang.org/x/exp/maps" "github.com/determined-ai/determined/master/internal/db" "github.com/determined-ai/determined/master/internal/sproto" "github.com/determined-ai/deter...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // Package manifest provides functionality to create Manifest files. package manifest import ( "errors" "fmt" "path/filepath" "strconv" "strings" "time" "github.com/aws/copilot-cli/internal/pkg/docker/...
/* * Copyright (C) 2019 <NAME>. All Rights Reserved. * Copyright (C) 2010-2012 The W32 Authors. All Rights Reserved. */ package w32 import ( "unsafe" ) // From MSDN: Windows Data Types // http://msdn.microsoft.com/en-us/library/s3f49ktz.aspx // http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751.asp...
// 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 main import ( "bytes" "flag" "fmt" "go/ast" "go/parser" "go/printer" "go/token" "io" "io/ioutil" "log" "os" "path/filepath" "sort" "strco...
/* * Copyright 2018- The Pixie 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 phpgrep import ( "testing" ) type matcherTest struct { pattern string input string } func mustCompile(t testing.TB, c *Compiler, code string) *Matcher { matcher, err := c.Compile([]byte(code)) if err != nil { t.Fatalf("pattern compilation error:\ntext: %q\nerr: %v", code, err) } return matcher } ...
// // Copyright 2020 The Dragonfly 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 la...
package main // import "ciena.com/envoyd" import ( "context" "os" "os/exec" "fmt" "log" "strconv" "time" "net" "io/ioutil" "io" "text/template" "encoding/json" "sync" "flag" "bufio" consulapi "github.com/hashicorp/consul/api" etcdapi "github.com/coreos/etcd/clientv3" ) // DATA STRUCTURES //Client pr...
// 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...
// Copyright 2016-2018, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
/* Copyright 2018 The Bazel 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 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package tlog implements a tamper-evident log // used in the Go module go.sum database server. // // This package is part of a DRAFT of what the go.sum databa...
package route53 import ( "context" "encoding/json" "errors" "fmt" "log" "sort" "strings" "time" "unicode/utf8" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/credentials" r53 "github.com/aws/aws-sdk-go-v2/service/route53" r53Types "github.com/aws/a...
package pgsql import ( "strings" "time" "github.com/elastic/libbeat/common" "github.com/elastic/libbeat/logp" "github.com/elastic/libbeat/publisher" "github.com/elastic/packetbeat/config" "github.com/elastic/packetbeat/procs" "github.com/elastic/packetbeat/protos" "github.com/elastic/packetbeat/protos/tcp" ...
// Copyright 2020 The Moov Authors // Use of this source code is governed by an Apache License // license that can be found in the LICENSE file. package imagecashletter import ( "encoding/json" "fmt" "strconv" "strings" "time" "unicode/utf8" ) // Errors specific to a ReturnDetail Record var ( msgReturnCode =...
package acceptance import ( "context" "time" kitlog "github.com/go-kit/kit/log" "k8s.io/api/admissionregistration/v1beta1" batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.i...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/dialogflow/v2/webhook.proto package dialogflow import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _struct "github.com/catper/protobuf/ptypes/struct" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Refer...
package future import ( "bytes" "context" "errors" "fmt" "github.com/algorand/go-algorand-sdk/abi" "github.com/algorand/go-algorand-sdk/client/v2/algod" "github.com/algorand/go-algorand-sdk/client/v2/common/models" "github.com/algorand/go-algorand-sdk/crypto" "github.com/algorand/go-algorand-sdk/types" ) //...
// Copyright 2017 <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 wri...
package baseabci import ( "bytes" "fmt" "io" "runtime/debug" "strings" "github.com/QOSGroup/qbase/account" "github.com/QOSGroup/qbase/mapper" "github.com/QOSGroup/qbase/qcp" "github.com/QOSGroup/qbase/version" ctx "github.com/QOSGroup/qbase/context" "github.com/QOSGroup/qbase/store" "github.com/QOSGroup/...
package progressui import ( "bytes" "container/ring" "context" "fmt" "io" "os" "sort" "strconv" "strings" "time" "github.com/containerd/console" "github.com/moby/buildkit/client" "github.com/morikuni/aec" digest "github.com/opencontainers/go-digest" "github.com/tonistiigi/units" "github.com/tonistiigi...
package main import ( "fmt" "os" "path/filepath" "sort" "text/tabwriter" "time" "gitlab.com/NebulousLabs/errors" "go.sia.tech/siad/build" "go.sia.tech/siad/modules" "go.sia.tech/siad/node/api" "go.sia.tech/siad/types" ) // byDirectoryInfo implements sort.Interface for []directoryInfo based on the // SiaPa...
/* Copyright 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, softw...
// ----------------------------------------------------------------------------- // ZR Library - Whirlpool Hash Package zr-whirl/[hash.go] // (c) <EMAIL> License: MIT // ----------------------------------------------------------------------------- package whi...
package model6 // Code generated by ../../generators/models.go. DO NOT EDIT. // You can regenerate it by running 'go generate ./models' from the directory above. import ( "github.com/andig/gosunspec" "github.com/andig/gosunspec/smdx" "github.com/andig/gosunspec/typelabel" ) // Block6 - Secure Write Sequential Req...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: msp/msp_principal.proto package msp // import "github.com/hyperledger/fabric/protos/msp" import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Mar...
// Code generated by protoc-gen-go. // source: packet_protoc.proto // DO NOT EDIT! package protoc import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf type...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: transport/internet/xtls/config.proto package xtls import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.or...
package vm import ( "crypto/sha1" "crypto/sha256" "fmt" "io/ioutil" "log" "math/big" "os" "text/tabwriter" "github.com/CityOfZion/neo-go/pkg/util" "golang.org/x/crypto/ripemd160" ) // Mode configures behaviour of the VM. type Mode uint // Available VM Modes. var ( ModeMute Mode = 1 << 0 ) // VM represen...
package util /** Copyright 2022 DataStax, 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: admission_control.proto package gowrapper import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Ma...
package replayed import ( "bytes" "compress/gzip" "context" "encoding/base64" "encoding/binary" "fmt" "io/ioutil" "os/exec" "runtime/debug" "strconv" "strings" "sync" "github.com/didi/sharingan/replayer-agent/common/handlers/ignore" "github.com/didi/sharingan/replayer-agent/common/handlers/tlog" "githu...
/* Copyright (c) 2017, UPMC Enterprises 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 the f...
package fsdup import ( "bytes" "errors" "io" ) // ntfsChunker reads and deduplicates files within the NTFS // file system. It implements the chunker interface. // // Assuming the input is an NTFS partition, it works in // three passes: // // Pass 1: Find FILE entries > $minSize according to $MFT (F): // _________...
package pgconn import ( "context" "crypto/tls" "crypto/x509" "errors" "fmt" "io" "io/ioutil" "math" "net" "net/url" "os" "path/filepath" "strconv" "strings" "time" "github.com/jackc/chunkreader/v2" "github.com/jackc/pgpassfile" "github.com/jackc/pgproto3/v2" "github.com/jackc/pgservicefile" ) type...
// Copyright 2021 <NAME> <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
package lib import ( "fmt" "net/http" "os" "strings" "time" oss "github.com/aliyun/aliyun-oss-go-sdk/oss" ) var headerOptionMap = map[string]interface{}{ oss.HTTPHeaderContentType: oss.ContentType, oss.HTTPHeaderCacheControl: oss.CacheControl, oss.HTTPHeaderContentDispositio...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...
package m2go type Order struct { AdjustmentNegative float64 `json:"adjustment_negative,omitempty"` AdjustmentPositive float64 `json:"adjustment_positive,omitempty"` AppliedRuleIds string `json:"applied_rule_ids,omitempty"` ...
package main import ( "fmt" "strings" "github.com/fatih/color" "sort" "github.com/EndlessCheng/mahjong-helper/util" "math" ) func printAccountInfo(accountID int) { fmt.Printf("您的账号 ID 为 ") color.New(color.FgHiGreen).Printf("%d", accountID) fmt.Printf(",该数字为雀魂服务器账号数据库中的 ID,该值越小表示您的注册时间越早\n") } // func (p *p...
package entities import ( "encoding/json" "errors" "net/http" "strings" "gopkg.in/yaml.v3" ) const ( CK_CSRF = "__csrf" CK_MUSIC_U = "MUSIC_U" CK_MUSIC_A = "MUSIC_A" CK_OSVER = "osver" // 系统版本 CK_DEVICE_ID = "deviceId" CK_APPVER = "appver" CK_VERSION_CODE = "versioncode"...
// Copyright 2021 TiKV Project 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 agre...
package main import ( "encoding/json" "fmt" "github.com/dsoprea/go-logging" "github.com/helmutkemper/telerik" "io/ioutil" "net/http" "os" "regexp" "sort" "strconv" "strings" ) type subFileList struct { Url string Name string } type Block struct { Id string All string Content string } var f...
// Copyright 2016-2017 Authors of Cilium // // 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) Huawei Technologies Co., Ltd. 2021. kunpengsecl licensed under the Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOU...
package ui import ( "errors" "fmt" "io/ioutil" "log" "os" "path/filepath" "strings" "time" "github.com/charmbracelet/bubbles/spinner" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/charm" "github.com/charmbracelet/charm/keygen" "github.com/charmbracelet/charm/ui/common" lib "github.c...
// Code generated by protoc-gen-go. // source: transaction.proto // DO NOT EDIT! package protos import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" import google_protobuf1 "github.com/golang/protobuf/ptypes/any" // R...
// +build soong /* * Copyright 2020-2021 Arm Limited. * SPDX-License-Identifier: Apache-2.0 * * 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/LIC...
package gizmo // Vars type represents a traversal variable type Vars string // Traversal struct type Traversal interface { AddV(...interface{}) Traversal AddE(...interface{}) Traversal Aggregate(...interface{}) Traversal And(...interface{}) Traversal As(...interface{}) Traversal // Between(...interface{}) Trave...
// Copyright 2020 The GMC Author. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // More information at https://github.com/snail007/gmc package gctx import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "mime/multipart" "net" "net...
package seccomp import ( "fmt" ) // List of x86-x64 syscalls // Source: https://raw.githubusercontent.com/torvalds/linux/master/arch/x86/entry/syscalls/syscall_64.tbl var systemCalls = map[int]string{ 0: "read", 1: "write", 2: "open", 3: "close", 4: "stat", 5: "fstat", 6: "lstat", 7: "poll", ...
package main import ( "context" "encoding/json" "errors" "fmt" "os" "os/signal" "path/filepath" "strconv" "strings" "sync" "syscall" "time" cbnet "github.com/cloud-barista/cb-larva/poc-cb-net/pkg/cb-network" model "github.com/cloud-barista/cb-larva/poc-cb-net/pkg/cb-network/model" cmdtype "github.com/c...