Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
3.08k
10.4k
package apcupsd import ( "context" "encoding/binary" "fmt" "net" "testing" "time" "github.com/circonus-labs/circonus-unified-agent/plugins/inputs" "github.com/circonus-labs/circonus-unified-agent/testutil" "github.com/stretchr/testify/require" ) func TestApcupsdDocs(t *testing.T) { apc := &ApcUpsd{} apc.D...
// Package walk implements a path walker which reads audio files under a path and // constructs an index.Library from supported metadata tags (see github.com/dhowden/tag). package walk import ( "crypto/sha1" "fmt" "log" "os" "path/filepath" "strings" "sync" "time" "github.com/dhowden/tag" "tchaik.com/index"...
/* license: https://mit-license.org * * DIMP : Decentralized Instant Messaging Protocol * * Written in 2021 by Moky <<EMAIL>> * * ============================================================================== * The MIT License (MIT) * * Copyright (c) 2021 <NAME> * * Permission...
package edgectl import ( "bufio" "bytes" "context" "fmt" "io" "log" "os" "os/exec" "regexp" "strings" "time" "github.com/pkg/errors" ) var validEmailAddress = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-...
/* * Copyright 2019 <NAME> <<EMAIL>> * Copyright 2019 SUSE 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...
// Code generated by smithy-go-codegen DO NOT EDIT. package ec2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" smithy "github.com/awslabs/smithy-go" "github.com/awslabs/smithy-go/middlew...
/* * 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...
package timeLag import ( "context" "fmt" "github.com/bookingcom/carbonapi/expr/helper" "github.com/bookingcom/carbonapi/expr/interfaces" "github.com/bookingcom/carbonapi/expr/types" "github.com/bookingcom/carbonapi/pkg/parser" ) type timeLag struct { interfaces.FunctionBase } func GetOrder() interfaces.Order...
package limiter import ( "container/list" "context" "strings" "sync" "testing" "github.com/stretchr/testify/assert" "github.com/platinummonkey/go-concurrency-limits/core" "github.com/platinummonkey/go-concurrency-limits/limit" "github.com/platinummonkey/go-concurrency-limits/strategy" ) type testFifoQueueC...
// Copyright 2018 The Gooid Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package egl /* #cgo android CFLAGS: -DANDROID -D__ANDROID__ #cgo android,!gles3 LDFLAGS: -lGLESv2 -lEGL #cgo android,gles3 LDFLAGS: -lGLESv3 -lEGL #cgo linu...
package bpf import ( "github.com/alecthomas/participle" "github.com/alecthomas/participle/lexer" "github.com/alecthomas/participle/lexer/ebnf" "log" ) // Filter expressions wrapper type Filter struct { Primitives *Expression ` @@ ` } // Expression consists of one or more Primitives type Expression struct { Pri...
package main import ( "fmt" "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" "strings" ) var ( inputsTitleBarStyle = lipgloss.NewStyle(). Padding(1, 0, 1, 2) inputsTitleStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#FFF...
// Code generated by protoc-gen-go. // source: request_forwarding_service.proto // DO NOT EDIT! /* Package vault is a generated protocol buffer package. It is generated from these files: request_forwarding_service.proto It has these top-level messages: */ package vault import proto "github.com/golang/protobuf/prot...
// Copyright 2019 New Relic Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package telemetry import ( "io/ioutil" "testing" "time" "github.com/newrelic/newrelic-telemetry-sdk-go/internal" ) func testSpanGroupJSON(t testing.TB, batches []Batch, expect string) { if th, ok := t.(interfac...
package clusterconfig import ( "context" "encoding/base64" "encoding/pem" "fmt" "strings" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" corev1client "k8s.io/client-go/kubernetes/typed/core/v1" "sigs.k8s.io/yaml" "github.com/openshift/insights-operator/pkg/record" ) // GatherC...
package mongobin import ( "archive/tar" "compress/gzip" "crypto/sha256" "encoding/hex" "fmt" "io" "net/http" "net/url" "path" "regexp" "strings" "time" "github.com/antonyho/memongo/memongolog" "github.com/spf13/afero" ) var afs afero.Afero func init() { afs = afero.Afero{ Fs: afero.NewOsFs(), } } ...
package types import ( "github.com/puppetlabs/wash/cmd/internal/find/parser/predicate" ) // EntryPredicate represents a predicate on a Wash entry. type EntryPredicate interface { predicate.Predicate P(Entry) bool SchemaP() EntrySchemaPredicate SetSchemaP(EntrySchemaPredicate) SchemaRequired() bool RequireSchem...
package service import ( "bufio" "encoding/binary" "io" "os" "unsafe" "github.com/indrenicloud/tricloud-agent/app/logg" "github.com/indrenicloud/tricloud-agent/wire" ) const ( ChunkSize = 1024 * 1024 * 10 AckSlots = 3 HeadSize = int(unsafe.Sizeof(DownlodMsg{}) + unsafe.Sizeof(wire.Header{})) ) const ( ...
package evmtest import ( "math/big" "testing" "github.com/smartcontractkit/chainlink/core/chains/evm" evmconfig "github.com/smartcontractkit/chainlink/core/chains/evm/config" evmmocks "github.com/smartcontractkit/chainlink/core/chains/evm/mocks" evmtypes "github.com/smartcontractkit/chainlink/core/chains/evm/ty...
package op import ( "bytes" "fmt" "math" "github.com/emicklei/melrose/core" ) type Merge struct { Target []core.Sequenceable } func (m Merge) Storex() string { var b bytes.Buffer fmt.Fprintf(&b, "merge(") core.AppendStorexList(&b, true, m.Target) fmt.Fprintf(&b, ")") return b.String() } // Replaced is pa...
package fixedwidth import ( "bytes" "fmt" "log" "reflect" "testing" "github.com/pkg/errors" ) func ExampleMarshal() { // define some data to encode people := struct { ID int `fixed:"1,5"` FirstName string `fixed:"6,15"` LastName string `fixed:"16,25"` Grade float64 `fixed:"26,30"` ...
package aws import ( "fmt" "net/http" "os" "strconv" "sync" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" "github.com/hairyhenderson/gomplate/v3/env" ) var describerClient InstanceDescriber...
// Copyright 2019 Yunion // // 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 writi...
package manager import ( "fmt" "strconv" appsv1 "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" kerrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachine...
/* * Cadence - The resource-oriented smart contract programming language * * Copyright 2019-2020 <NAME>, 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....
// +build linux package ipvs import ( "net" "syscall" "time" "fmt" "github.com/vishvananda/netlink/nl" "github.com/vishvananda/netns" ) const ( netlinkRecvSocketsTimeout = 3 * time.Second netlinkSendSocketTimeout = 30 * time.Second ) // Service defines an IPVS service in its entirety. type Service struct...
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. package utils import ( "crypto" "crypto/md5" "crypto/rsa" "crypto/sha512" "crypto/x509" "encoding/base64" "encoding/pem" "fmt" "io/ioutil" "os" "strconv" "strings" l4g "github.com/alecthomas/l...
package campaigns import ( "context" "database/sql" "encoding/json" "fmt" "math/rand" "time" "github.com/keegancsmith/sqlf" "github.com/pkg/errors" "github.com/sourcegraph/sourcegraph/internal/db/basestore" "github.com/sourcegraph/sourcegraph/internal/db/dbutil" ) // seededRand is used to populate the Rand...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package channels import ( "database/sql" "encoding/json" "log" "net/http" "github.com/mattn/go-sqlite3" "github.com/twitchdev/twitch-cli/internal/database" "github.com/twitchdev/twitch-cli/internal/mock...
/** * (C) 2020 Geotab Inc * * All files and artifacts in the repository at https://github.com/MEAE-GOT/W3C_VehicleSignalInterfaceImpl * are licensed under the provisions of the license provided by the LICENSE file in this repository. * **/ package main import ( "encoding/base64" "encoding/json" "fmt" "io/ioutil" ...
// This file is drived from the code available in linuxkit project under Apache License v2 // https://github.com/linuxkit/linuxkit/blob/master/pkg/init/cmd/service/logging.go package containerd import ( "bufio" "errors" "fmt" "io" "io/ioutil" "net" "os" "path/filepath" "strings" "syscall" "github.com/c...
// Copyright 2018 <NAME>.A.S. Atos Technologies - Bull, Rue Jean Jaures, B.P.68, 78340, Les Clayes-sous-Bois, France. // // 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...
/* * 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 ...
package azure import ( "context" "fmt" "log" "os" "strings" "testing" "time" "github.com/Azure/azure-sdk-for-go/profiles/2017-03-09/resources/mgmt/resources" armStorage "github.com/Azure/azure-sdk-for-go/profiles/2017-03-09/storage/mgmt/storage" "github.com/Azure/azure-sdk-for-go/storage" sasStorage "githu...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
-