Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
10
1.05M
package main import ( "context" "flag" "fmt" "math/rand" "strings" "sync" "time" "github.com/twmb/franz-go/pkg/kgo" ) type pconsumer struct { quit chan struct{} done chan struct{} recs chan []*kgo.Record } var ( brokers = flag.String("b", "", "comma delimited brokers to consume from") topic = flag.St...
package mtcpclient import ( "fmt" "math" "strconv" "time" "github.com/dachad/tcpgoon/tcpclient" ) func collectConnectionsStatus(connectionsStatusRegistry *GroupOfConnections, statusChannel <-chan tcpclient.Connection) { concurrentEstablished := 0 for { newConnectionStatusReported := <-statusChannel concur...
package pcf_handler import ( "gofree5gc/lib/openapi/models" "gofree5gc/src/pcf/logger" "gofree5gc/src/pcf/pcf_handler/pcf_message" "gofree5gc/src/pcf/pcf_producer" "time" "github.com/sirupsen/logrus" ) var HandlerLog *logrus.Entry func init() { // init Pool HandlerLog = logger.HandlerLog } func Handle() { ...
/* 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, ...
/* * This file is part of the KubeVirt 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 la...
// Copyright 2018 ETH Zurich // // 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 auxpow import ( "io" "github.com/elastos/Elastos.ELA/auxpow" "github.com/elastos/Elastos.ELA/common" ela "github.com/elastos/Elastos.ELA/core/types" "github.com/elastos/Elastos.ELA/core/types/payload" ) type SideAuxPow struct { SideAuxMerkleBranch []common.Uint256 SideAuxMerkleIndex int SideAuxBlock...
/* Copyright (c) 2020 Red Hat, 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...
package graph import ( "io" "net/http" "net/url" "github.com/docker/docker/pkg/archive" "github.com/docker/docker/pkg/httputils" "github.com/docker/docker/pkg/progressreader" "github.com/docker/docker/pkg/streamformatter" "github.com/docker/docker/runconfig" "github.com/docker/docker/utils" ) type ImageImpo...
/*- * Copyright 2014 Square 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 network // Agent - в рамках данного пакета нас итересуют только имена агентов type Agent interface { Name() string }
/* * Copyright 2019-20 Joaquim Rocha <jrocha@gmailbox.org> 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 * * Unl...
// Copyright The OpenTelemetry 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...
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
package htmlbrelement import ( "sync" "syscall/js" "github.com/realPy/hogosuru/baseobject" "github.com/realPy/hogosuru/document" "github.com/realPy/hogosuru/element" "github.com/realPy/hogosuru/htmlelement" ) var singleton sync.Once var htmlbrelementinterface js.Value //HtmlBrElement struct type HtmlBRElemen...
/* Copyright The Kubeform 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, softwar...
package model import ( "encoding/json" "strings" ) // Request Object type DeletePolicyAssignmentRequest struct { PolicyAssignmentId string `json:"policy_assignment_id"` } func (o DeletePolicyAssignmentRequest) String() string { data, err := json.Marshal(o) if err != nil { return "DeletePolicyAssignmentReques...
/* Copyright 2021 The Vitess 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 opentelemetry import ( "context" "go.opentelemetry.io/otel/baggage" "go.opentelemetry.io/otel/propagation" sdktrace "go.opentelemetry.io/otel/trace" "google.golang.org/grpc/metadata" ) // assert that metadataSupplier implements the TextMapCarrier interface var _ propagation.TextMapCarrier = new(metadata...
/* * This file is part of the kubevirt 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 la...
package kinesis import ( "github.com/awslabs/goformation/v4/cloudformation/policies" ) // Stream_StreamEncryption AWS CloudFormation Resource (AWS::Kinesis::Stream.StreamEncryption) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html type Stream_S...
// +build go1.12 // Note: Some of the packages we benchmark against require go 1.12 so we can only benchmark on go 1.12 package benchmarking import ( "context" "fmt" "strconv" "sync/atomic" "testing" "time" gohystrix "github.com/afex/hystrix-go/hystrix" "github.com/edwardhey/circuit/v3" "github.com/edwardhe...
package formatter import ( "reflect" "strings" "testing" "time" "github.com/hyperhq/hyper-api/types" "github.com/hyperhq/hypercli/pkg/stringid" ) func TestContainerPsContext(t *testing.T) { containerID := stringid.GenerateRandomID() unix := time.Now().Unix() var ctx containerContext cases := []struct { ...
package gounity_test // func TestPingPong(t *testing.T) { // ctx, err := testutil.NewTestContext() // assert.Nil(t, err, "failed to setup rest client to mock server") // defer ctx.TearDown() // resp, err := ctx.restClient.pingPong( // ctx.context, http.MethodGet, // fmt.Sprintf("api/instances/lun/sv_1?compact...
/* 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, softwar...
/******************************************************************************* * Copyright 2021 EdgeSec Ltd * * 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/lic...
// Code generated by swagger-doc. DO NOT EDIT. package v1beta1 func (DataVolume) SwaggerDoc() map[string]string { return map[string]string{ "": "DataVolume is an abstraction on top of PersistentVolumeClaims to allow easy population of those PersistentVolumeClaims with relation to VirtualMachines\n+genclient\n+k8s:...
package github import ( "bytes" "io" "io/ioutil" "log" "net/http" "sync" "time" "github.com/google/go-github/v38/github" ) const ( ctxEtag = ctxEtagType("etag") ctxId = ctxIdType("id") writeDelay = 1 * time.Second ) // ctxIdType is used to avoid collisions between packages using context type ctxI...
package amd64
End of preview. Expand in Data Studio

LangMap-TheStack-go-100M

Code finetuning dataset for go streamed from bigcode/the-stack.

  • Tokens collected: 100,000,000 (target: 100,000,000)
  • Tokenizer: allenai/OLMo-3-1025-7B
  • Schema: {"text": [...]} (sanitised source code)
Downloads last month
42