text stringlengths 1k 12k | metadata dict |
|---|---|
package main
import (
"context"
"crypto/rand"
"encoding/hex"
"log"
"net/http"
"os"
"os/signal"
"time"
)
// Use an unexported key type to avoid collisions in context.
type ctxKey struct{}
var requestIDKey = &ctxKey{}
// Standardize on a widely used header name for correlation.
const headerRequestID = "X-Requ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "shamssahal/http-context-propagation",
"path": "main.go",
"language": "Go",
"commit": "4f6a605",
"domain": "go_http_middleware_observability",
"fit": "tool_use"
} |
package types
import (
"slices"
"github.com/alexellis/arkade/pkg/config"
)
type InstallerOptions struct {
Namespace string
CreateNamespace bool
KubeconfigPath string
NodeArch string
Helm *HelmConfig
Verbose bool
Secrets []K8sSecret
}
type K8sSecret struct {
Type ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "alexellis/arkade",
"path": "pkg/types/types.go",
"language": "Go",
"commit": "97b4b07",
"domain": "kubernetes-helm installer config",
"fit": "tool_use"
} |
package main
import (
"flag"
"log"
"os"
"os/signal"
"syscall"
"github.com/ywadi/PathwayDB/redis"
"github.com/ywadi/PathwayDB/storage"
)
// getEnv reads an environment variable or returns a fallback value.
func getEnv(key, fallback string) string {
if value, exists := os.LookupEnv(key); exists {
return valu... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "ywadi/PathwayDB",
"path": "cmd/redis-server/main.go",
"language": "Go",
"commit": "c7cfe9b",
"domain": "redis-compatible database server",
"fit": "tool_use"
} |
package mpol
import (
"context"
"fmt"
"strings"
"time"
"github.com/go-logr/logr"
"github.com/julienschmidt/httprouter"
kyvernov2 "github.com/kyverno/kyverno/api/kyverno/v2"
"github.com/kyverno/kyverno/pkg/breaker"
celengine "github.com/kyverno/kyverno/pkg/cel/engine"
"github.com/kyverno/kyverno/pkg/cel/libs... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "kaisenlinux/kyverno",
"path": "pkg/webhooks/resource/mpol/handler.go",
"language": "Go",
"commit": "3939e7d",
"domain": "kubernetes-admission-webhook-policy-engine",
"fit": "tool_use"
} |
package failure
import (
"context"
"fmt"
"math/rand"
"strings"
"sync"
"time"
"github.com/sirupsen/logrus"
)
// Rule represents a failure simulation rule
type Rule struct {
Name string
Enabled bool
Type string // "error", "timeout", "slow", "panic"
Probability float64 // 0.0 to 1.0
Op... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "elda-mahaindra/temporal-flow-demo",
"path": "svc-transaction/util/failure/simulator.go",
"language": "Go",
"commit": "1b20b34",
"domain": "failure-injection/simulation",
"fit": "tool_use"
} |
package service
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"time"
)
// Image2VideoService 阿里云图生视频服务
type Image2VideoService struct {
APIKey string
BaseURL string
}
// Image2VideoRequest 图生视频任务请求
type Image2VideoRequest struct {
Model string `json:"model"`
Input Image2V... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "difyz9/caton2video",
"path": "service/image2video.go",
"language": "Go",
"commit": "8d10855",
"domain": "AI media generation API client",
"fit": "tool_use"
} |
// SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors.
//
// SPDX-License-Identifier: Apache-2.0
package execution
import (
"context"
"strings"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/sets"
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "openmcp-project/landscaper",
"path": "pkg/landscaper/execution/helper.go",
"language": "Go",
"commit": "d5e3e00",
"domain": "kubernetes-controller",
"fit": "tool_use"
} |
package mitmtools
import (
"bytes"
"github.com/Leviathangk/go-glog/glog"
"github.com/Leviathangk/go-mitmtools-v2/handler"
"github.com/lqqyt2423/go-mitmproxy/proxy"
"os/exec"
"strconv"
"strings"
"syscall"
"time"
)
type MitmWorker struct {
Proxy *proxy.Proxy
Config *Config
}
// NewWorker 创建一个处理器
func NewWo... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Leviathangk/go-mitmtools-v2",
"path": "mitmtools/start.go",
"language": "Go",
"commit": "2824b7b",
"domain": "MITM HTTP proxy worker/orchestration",
"fit": "tool_use"
} |
package main
import (
"encoding/json"
"log"
"net/http"
"time"
"github.com/gorilla/mux"
"github.com/nats-io/nats.go"
)
type ThreatHandler struct {
nc *nats.Conn
}
// NewThreatHandler creates a new threat handler instance
func NewThreatHandler() *ThreatHandler {
// Connect to NATS with optimized settings for ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "SewakPannnu/cybersecurityAssignment",
"path": "source/api-gateway/threat_handlers.go",
"language": "Go",
"commit": "4e93c8f",
"domain": "security-threat-api-gateway",
"fit": "tool_use"
} |
// Package fetcher provides HTTP content fetching and processing functionality.
package fetcher
import (
"fmt"
"io"
"log"
"net/http"
"strings"
"github.com/stackloklabs/gofetch/pkg/processor"
"github.com/stackloklabs/gofetch/pkg/robots"
)
// HTTPFetcher handles HTTP requests and content retrieval
type HTTPFetc... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "StacklokLabs/gofetch",
"path": "pkg/fetcher/fetcher.go",
"language": "Go",
"commit": "08144d7",
"domain": "web-fetching/http-client",
"fit": "tool_use"
} |
package go_shopware_admin_sdk
import (
"net/http"
"time"
)
type CmsPageTranslationRepository struct {
*GenericRepository[CmsPageTranslation]
}
func NewCmsPageTranslationRepository(client *Client) *CmsPageTranslationRepository {
return &CmsPageTranslationRepository{
GenericRepository: NewGenericRepository[Cms... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "FriendsOfShopware/go-shopware-admin-api-sdk",
"path": "repo_cms_page_translation.go",
"language": "Go",
"commit": "e984fc9",
"domain": "ecommerce API client (Shopware SDK)",
"fit": "tool_use"
} |
package replayer_adapter_go
import (
"context"
"go.temporal.io/sdk/interceptor"
"go.temporal.io/sdk/workflow"
)
// Pass the call to the next interceptor and notify runner when it's done
type runnerWorkflowInboundInterceptor struct {
interceptor.WorkflowInboundInterceptorBase
}
func (ii *runnerWorkflowInboundInt... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "phuongdnguyen/tonkatsu",
"path": "replayer-adapter-go/inbound_interceptor.go",
"language": "Go",
"commit": "a745022",
"domain": "temporal-workflow-interceptor",
"fit": "tool_use"
} |
package fxgrpc
import (
"context"
"fmt"
"time"
reloader "github.com/exoscale/stelling/fxcert-reloader"
fxhttp "github.com/exoscale/stelling/fxhttp"
zapgrpc "github.com/exoscale/stelling/fxlogging/grpc"
"go.uber.org/fx"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"google.golang.org/grpc"
"google.golang.org/... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "exoscale/stelling",
"path": "fxgrpc/grpc_server.go",
"language": "Go",
"commit": "f5751ea",
"domain": "go-grpc server module / dependency injection",
"fit": "tool_use"
} |
package sync
import (
"context"
"sync"
"time"
"github.com/barimehdi77/cupid-api/internal/logger"
"go.uber.org/zap"
)
// Scheduler manages automatic synchronization timing
type Scheduler struct {
interval time.Duration
ticker *time.Ticker
stopChan chan struct{}
isRunning bool
mu sync.RWMutex
ne... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "barimehdi77/cupid-api",
"path": "internal/sync/scheduler.go",
"language": "Go",
"commit": "7cea29d",
"domain": "concurrent job scheduler / service sync",
"fit": "tool_use"
} |
package command
import (
"fmt"
"strings"
)
// Handler interface that all command handlers must implement
type Handler interface {
Execute(args []string) error
}
// Registry to hold all handlers
var handlers = make(map[string]Handler)
// RegisterHandler registers a handler for a command
func RegisterHandler(comma... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Ayndpa/GoAuthX",
"path": "internal/command/handler.go",
"language": "Go",
"commit": "59d175a",
"domain": "cli-command-dispatch",
"fit": "tool_use"
} |
package services
import (
"context"
"slices"
mpb "github.com/vapusdata-ecosystem/apis/protos/models/v1alpha1"
pb "github.com/vapusdata-ecosystem/apis/protos/vapusai-studio/v1alpha1"
pkgs "github.com/vapusdata-ecosystem/vapusai/aistudio/pkgs"
"github.com/vapusdata-ecosystem/vapusai/aistudio/utils"
aidmstore "gi... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "vapusdata-ecosystem/vapus-ai",
"path": "app/aistudio/services/aiguardrails.go",
"language": "Go",
"commit": "c0c575c",
"domain": "ai-guardrails-service",
"fit": "tool_use"
} |
package storage
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"sync"
)
// FileStorage implements Storage interface using file system
type FileStorage struct {
basePath string // 存储目录的基础路径
mu sync.RWMutex // 读写锁,保证并发安全
}
// NewFileStorage creates a new file storage
// 创建新的文件存储
func NewFileSto... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "2003GJZ/MsgRouter",
"path": "storage/file.go",
"language": "Go",
"commit": "d3fcfe9",
"domain": "file-based result storage",
"fit": "tool_use"
} |
package kubernetes
import (
"github.com/go-kure/kure/pkg/errors"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// CreateStatefulSet returns a StatefulSet with sensible defaults set.
func CreateStatefulSet(name, namespace string) *appsv1.StatefulSet {
obj... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "go-kure/kure",
"path": "internal/kubernetes/statefulset.go",
"language": "Go",
"commit": "4c61119",
"domain": "kubernetes-resource-builder",
"fit": "tool_use"
} |
package auth
import (
"context"
"golang-auth-service/internal/app/store"
"golang-auth-service/internal/usecases/auth"
"golang-auth-service/pkg/reqresp"
"log"
)
type Service interface {
RegisterUser(ctx context.Context, request reqresp.RegisterUserRequest) (reqresp.RegisterUserResponse, error)
LoginUser(ctx con... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "AdlbkA/GolangFinal",
"path": "AuthService/internal/service/auth/service.go",
"language": "Go",
"commit": "ee12c37",
"domain": "golang-auth-service",
"fit": "tool_use"
} |
package networks
import (
"fmt"
"sync"
"github.com/sirupsen/logrus"
)
// BridgeManager manages bridge networks
type BridgeManager struct {
logger *logrus.Logger
mu sync.RWMutex
bridges map[string]*Bridge
}
// Bridge represents a bridge network
type Bridge struct {
ID string
Name string
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "humuhumu33/HologramFire",
"path": "libs/hologram-sdk/engine/internal/networks/bridge.go",
"language": "Go",
"commit": "98763e2",
"domain": "container networking / bridge management",
"fit": "tool_use"
} |
package handlers
import (
"net/http"
"github.com/gofiber/fiber/v2"
"github.com/mfaizh22/book-management-backend/internal/logger"
"github.com/mfaizh22/book-management-backend/internal/model"
"github.com/mfaizh22/book-management-backend/internal/service"
"go.uber.org/zap"
)
// BookHandler handles book-related re... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "evaizee/byFood-book-management-backend",
"path": "internal/api/handlers/book_handler.go",
"language": "Go",
"commit": "f5c75e3",
"domain": "go-web-api-handlers",
"fit": "tool_use"
} |
package service
import (
"github.com/ecomz/backend/libs/logger"
"github.com/ecomz/backend/product-service/internal/dto"
"github.com/ecomz/backend/product-service/internal/model"
"github.com/ecomz/backend/product-service/internal/repository"
"go.uber.org/zap"
)
type ProductService interface {
CreateProduct(data ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "ecomz/backend",
"path": "services/product-service/internal/service/product_service.go",
"language": "Go",
"commit": "751c9b9",
"domain": "ecommerce-product-service",
"fit": "tool_use"
} |
package train
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"regexp"
"strings"
"time"
)
const (
BaseURL = "https://eticket.railway.uz/api/v3"
BaseURLv1 = "https://eticket.railway.uz/api/v1"
TrainsListEndpoint = "/handbook/trains/list"
CSRFTokenEndpoint = "/c... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "AlibekAbdunasimov/chiptatop",
"path": "internal/services/train/client.go",
"language": "Go",
"commit": "1c51b20",
"domain": "railway ticket API client",
"fit": "tool_use"
} |
package system
import (
"errors"
"fmt"
"strings"
"go-devops-mimi/server/model/system"
systemReq "go-devops-mimi/server/model/system/request"
"go-devops-mimi/server/public/common"
"go-devops-mimi/server/public/tools"
"gorm.io/gorm"
)
type RoleService struct{}
// Exist 判断资源是否存在
func (s RoleService) Exist(fil... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "qishu321/go-devops-mimi",
"path": "server/service/system/system_role_service.go",
"language": "Go",
"commit": "7d5ff7e",
"domain": "RBAC role management service (Go/GORM/Casbin)",
"fit": "tool_use"
} |
package agentmonitor
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"sync"
"time"
"github.com/CloudDetail/apo-receiver/pkg/model"
v1 "github.com/prometheus/client_golang/api/prometheus/v1"
pm "github.com/prometheus/common/model"
)
type DingTalkMessage struct {
Msgtype stri... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "CloudDetail/apo-receiver",
"path": "pkg/componment/agentmonitor/agent_monitor_server.go",
"language": "Go",
"commit": "587edd8",
"domain": "agent monitoring/observability service",
"fit": "tool_use"
} |
package backlog
type Service interface {
CreateBackLog(backlogs RegisterBackLogInput) (BackLog, error)
FindBackLog() ([]BackLog, error)
FindBackLogById(id uint) (BackLog, error)
GetListBackLog(page int, sortFilter SortFilterBackLog) (Pagination, error)
UpdateBackLog(inputBackLog RegisterBackLogInput, id int) (Bac... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "LimDjoni/MRP-Backend",
"path": "model/backlog/service.go",
"language": "Go",
"commit": "5b9edfe",
"domain": "golang backend service layer (CRUD backlog)",
"fit": "tool_use"
} |
package service
import (
"context"
"database/sql"
"fmt"
"db_blueprints/db_sql/internal/domain/product/controller/dto"
"db_blueprints/db_sql/internal/domain/product/repository"
user_repo "db_blueprints/db_sql/internal/domain/user/repository"
"db_blueprints/db_sql/internal/model"
"db_blueprints/db_sql/pkgs/pagi... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "QuocAnh189/DB_Blueprints",
"path": "db_sql/internal/domain/product/service/product.go",
"language": "Go",
"commit": "fe64f40",
"domain": "golang backend service layer (product management)",
"fit": "tool_use"
} |
package main
import (
"context"
"encoding/json"
"log"
"net/http"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/secretsmanager"
)
var smClient *secretsmanager.Client
f... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "gurunandan-bhat/mario-cdk",
"path": "lambda/secrets/main.go",
"language": "Go",
"commit": "15daba2",
"domain": "aws-lambda-secretsmanager",
"fit": "tool_use"
} |
package apis
import (
"fmt"
"github.com/sipt/shuttle/controller/model"
"resty.dev/v3"
apipkg "github.com/sipt/shuttle/cmd/api"
)
// Inbound inbound listener structure
type Inbound struct {
Name string `json:"name"`
Type string `json:"typ"`
Addr string `json:"addr"`
}
// APIClient API client
type APIClient s... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sipt/shuttle-cli",
"path": "apis/api.go",
"language": "Go",
"commit": "c92ab0f",
"domain": "go http api client/service control",
"fit": "tool_use"
} |
package dict_type
import (
"context"
"github.com/feihua/zero-admin/api/admin/internal/common/errorx"
"github.com/feihua/zero-admin/api/admin/internal/common/res"
"github.com/feihua/zero-admin/rpc/sys/sysclient"
"github.com/zeromicro/go-zero/core/logc"
"google.golang.org/grpc/status"
"github.com/feihua/zero-adm... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "feihua/zero-admin",
"path": "api/admin/internal/logic/sys/dict_type/updatedicttypestatuslogic.go",
"language": "Go",
"commit": "0667c30",
"domain": "go-zero admin dictionary management API",
"fit": "tool_use"
} |
package Procesamiento
import (
"bufio"
"fmt"
"os"
"strings"
aux "tp2/auxiliares"
)
const (
LARGO_LEER_ARCHIVO = 2
LARGO_VER_VISITANTES = 3
LARGO_MAS_VISITADOS = 2
)
func Procesamiento() {
detector := aux.CrearDetector()
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
if scanner.Text() == ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "FacundoBarrasso/AlgoritmosYEstructurasDeDatos-Buchwald-FIUBA",
"path": "tp2/procesamiento/procesamiento.go",
"language": "Go",
"commit": "1910d5e",
"domain": "CLI command processor for visitor analytics",
"fit": "tool_use"
} |
package core
import (
"context"
"fmt"
"sync"
)
// SecretString encapsulates a secret reference along with the means to resolve it.
// It provides lazy resolution with one-time use semantics by default for enhanced security.
type SecretString struct {
// ref holds the reference to the secret
ref SecretRef
// re... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "input-output-hk/catalyst-forge-libs",
"path": "secrets/core/secret_string.go",
"language": "Go",
"commit": "763ad89",
"domain": "secret management library",
"fit": "tool_use"
} |
package repository
import (
"context"
"fmt"
"github.com/metal-stack/api/go/enum"
adminv2 "github.com/metal-stack/api/go/metalstack/admin/v2"
apiv2 "github.com/metal-stack/api/go/metalstack/api/v2"
"github.com/metal-stack/metal-apiserver/pkg/db/metal"
"github.com/metal-stack/metal-apiserver/pkg/errorutil"
"goo... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "metal-stack/metal-apiserver",
"path": "pkg/repository/filesystemlayout.go",
"language": "Go",
"commit": "11c787f",
"domain": "infrastructure storage API repository",
"fit": "tool_use"
} |
package gosnappi
import (
"fmt"
"strings"
"github.com/ghodss/yaml"
otg "github.com/open-traffic-generator/snappi/gosnappi/otg"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
)
// ***** FlowIpv6Routing *****
type flowIpv6Routing struct {
validation
obj *otg... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "open-traffic-generator/snappi",
"path": "gosnappi/flow_ipv6_routing.go",
"language": "Go",
"commit": "5c0f053",
"domain": "network traffic generation / IPv6 routing config",
"fit": "tool_use"
} |
package api
import (
"bytes"
"encoding/json"
hvmndApiClient "hvmnd/webapp/internal/services/hvmnd-api-client"
"io"
"log"
"net/http"
"time"
)
type AuthAPIHandler struct {
APIClient *hvmndApiClient.APIClient
}
func (aah *AuthAPIHandler) Registration(w http.ResponseWriter, r *http.Request) {
v... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Smarandii/hvmnd-web-app",
"path": "internal/handlers/api/auth.go",
"language": "Go",
"commit": "76aeddb",
"domain": "web-auth-api",
"fit": "tool_use"
} |
package models
import (
"database/sql/driver"
"encoding/json"
"fmt"
"time"
"github.com/google/uuid"
)
type Service struct {
ID uuid.UUID `db:"id"`
Name string `db:"name"`
Description string `db:"description"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"upda... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "johnnyfreeman/beacon",
"path": "internal/models/models.go",
"language": "Go",
"commit": "4fb5f91",
"domain": "service monitoring / uptime tracking models",
"fit": "tool_use"
} |
package main
import (
"fmt"
"net/http"
"strings"
"time"
mqtt "github.com/eclipse/paho.mqtt.golang"
"golang.org/x/time/rate"
)
// Rate limiter: 10 requests per second, burst of 100
var limiter = rate.NewLimiter(10, 100)
// Health check function
func healthCheck() bool {
client := &http.Client{
Timeout: 3 * ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "spafrost/gqgmc-mqtt-bridge",
"path": "handlers.go",
"language": "Go",
"commit": "b25aecd",
"domain": "iot_http_to_mqtt_gateway",
"fit": "tool_use"
} |
package logic
import (
"errors"
"git.kanosolution.net/kano/kaos"
"github.com/ariefdarmawan/datahub"
"github.com/sebarcode/codekit"
"github.com/sebarcode/xbex/model"
)
type UserHandler struct {
}
func (obj *UserHandler) ChangePassword(db *datahub.Hub, userid, password, salt string) error {
userMeta, err := dat... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sebarcode/xbex",
"path": "logic/user.go",
"language": "Go",
"commit": "559ce8c",
"domain": "user-management service",
"fit": "tool_use"
} |
package main
import (
"flag"
"os"
"time"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
_ "k8s.io/client-go/plugin/pkg/client/auth"
ctrl "sigs.k8s.io/controller-run... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "EzalB/aws-devops",
"path": "crd-canary-operator/cmd/manager/main.go",
"language": "Go",
"commit": "ce45ea4",
"domain": "kubernetes-operator",
"fit": "tool_use"
} |
package moov
import (
"context"
"net/http"
)
// LinkAccountTerminalApplication links an account to a terminal application.
func (c Client) LinkAccountTerminalApplication(ctx context.Context, accountID, terminalApplicationID string) (*AccountTerminalApplication, error) {
resp, err := c.CallHttp(ctx,
Endpoint(http... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "moovfinancial/moov-go",
"path": "pkg/moov/account_terminal_application_api.go",
"language": "Go",
"commit": "ffdcc11",
"domain": "payments-api-client",
"fit": "tool_use"
} |
package controllers
import (
"fmt"
"guestbook_backend/helper/utils/hub"
"log"
"net/http"
"time"
)
type Controllers struct {
hubSSe *hub.HubSse
}
func NewControllers(hub *hub.HubSse) *Controllers {
return &Controllers{
hubSSe: hub,
}
}
func (c *Controllers) ScanVisitorHandler() http.HandlerFunc {
return f... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "adriansyahInnotech/guestbook_backend",
"path": "apps/sse_guestbook/controllers/controllers.go",
"language": "Go",
"commit": "23009db",
"domain": "Go HTTP SSE service",
"fit": "tool_use"
} |
// ProfileHandler handles user profile related commands
package handler
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"github.com/urfave/cli/v2"
)
type Profile struct {
Name string `json:"name"`
Email string `json:"email"`
}
type ProfileStore struct {
Profiles map[string]Profile `json:"profiles"`
}
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "susilnem/gcm",
"path": "internal/handler/profile_handler.go",
"language": "Go",
"commit": "b898871",
"domain": "cli git profile manager",
"fit": "tool_use"
} |
package rpc
import (
"context"
"fmt"
"log/slog"
"net/http"
"strconv"
"github.com/asaskevich/govalidator"
"github.com/fox-one/mixin-sdk-go/v2"
"github.com/google/uuid"
"github.com/pandodao/generic"
"github.com/pandodao/safe-wallet/core"
"github.com/pandodao/safe-wallet/handler/rpc/safewallet"
"github.com/p... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "pandodao/safe-wallet",
"path": "handler/rpc/rpc.go",
"language": "Go",
"commit": "bd0bc69",
"domain": "crypto wallet RPC service",
"fit": "tool_use"
} |
package net
import (
"bytes"
"crypto/tls"
"flag"
"fmt"
"io"
"log"
"net"
"net/http"
"net/http/httptrace"
"net/url"
"os"
"strings"
"time"
)
const (
_hoursPerDay = 24
_defaultTimeout = 5 * time.Second
_userAgent = "updo/1.0"
_httpsPort = ":443"
)
func parseHeaders(headers []string) map[str... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Owloops/updo",
"path": "net/net.go",
"language": "Go",
"commit": "557f318",
"domain": "network/http monitoring",
"fit": "tool_use"
} |
package crud
import (
"time"
"github.com/pershelf/pershelf/globals"
)
// Follow model
type Follow struct {
ID int `gorm:"column:id;type:int(11);primaryKey;autoIncrement" json:"id"`
FollowerID int `gorm:"column:follower_id;type:int(11);not null" json:"follower_id"`
FollowedID int `gorm:... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "pershelf-devs/pershelf-backend",
"path": "helper-pershelf/crud/follow.go",
"language": "Go",
"commit": "ce3db74",
"domain": "go-gorm-crud-social-graph",
"fit": "tool_use"
} |
package service
import (
"fmt"
"log"
"ainews-server/crawler/internal/crawler"
"ainews-server/crawler/internal/model"
"ainews-server/crawler/internal/repository"
"ainews-server/crawler/internal/scheduler"
)
// CrawlerService 爬虫服务接口
type CrawlerService interface {
// StartCrawler 启动爬虫
StartCrawler() error
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "leo985/ai-news-server",
"path": "crawler/internal/service/crawler_service.go",
"language": "Go",
"commit": "ba8c611",
"domain": "web-crawler service layer",
"fit": "tool_use"
} |
package service
import (
"context"
"fmt"
"time"
"webblueprint/internal/engine"
"webblueprint/internal/types"
"webblueprint/pkg/blueprint"
"webblueprint/pkg/models"
"webblueprint/pkg/repository"
"github.com/google/uuid"
)
// ExecutionService provides high-level operations for managing blueprint executions
ty... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "ashkan90/webblueprint",
"path": "pkg/service/execution.go",
"language": "Go",
"commit": "a175856",
"domain": "workflow-orchestration service",
"fit": "tool_use"
} |
package http_handler
import (
"fmt"
"net/http"
http_apigen "github.com/D4rk1ink/gin-hexagonal-example/internal/application/handler/http/apigen"
http_mapper "github.com/D4rk1ink/gin-hexagonal-example/internal/application/handler/http/mapper"
http_util "github.com/D4rk1ink/gin-hexagonal-example/internal/applicatio... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "D4rk1ink/gin-hexagonal-example",
"path": "internal/application/handler/http/user_http.go",
"language": "Go",
"commit": "d8702a7",
"domain": "go-web-api-user-management",
"fit": "tool_use"
} |
package node
import (
"context"
"encoding/json"
"fmt"
"github.com/zeromicro/go-zero/core/logx"
clientv3 "go.etcd.io/etcd/client/v3"
"google.golang.org/protobuf/encoding/protojson"
login_proto "login/proto/common"
)
type NodeAllocator struct {
Client *clientv3.Client
Prefix string
}
func NewNodeAllocator(cli... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "luyuancpp/mmorpg",
"path": "go/login/internal/logic/pkg/node/node_allocator.go",
"language": "Go",
"commit": "b84e3f2",
"domain": "distributed-service node allocation (etcd)",
"fit": "tool_use"
} |
package main
import (
"bufio"
"fmt"
"os"
"strings"
"github.com/MichaelLaguatan/pokedex/internal/pokeapi"
)
type cliCommand struct {
name string
description string
callback func(*Config) error
}
type Config struct {
pokeapiClient pokeapi.Client
pokedex map[string]pokeapi.Pokemon
location ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "MichaelLaguatan/pokedex",
"path": "repl.go",
"language": "Go",
"commit": "000e48b",
"domain": "cli-pokedex-api-client",
"fit": "tool_use"
} |
package persistence
import (
"context"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
"monitoring/internal/domain"
)
var _ domain.OAuthStateRepo = &oAuthStateRepo{}
type oAuthStateRepo struct {
db *mongo.Database
collection string
}
type OAuthStateDoc struct {
ID ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Jibaru/monitoring",
"path": "internal/persistence/oauth_state_repo.go",
"language": "Go",
"commit": "52fa55c",
"domain": "go-mongodb-oauth-state-repository",
"fit": "tool_use"
} |
package storage
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"net/http"
"strings"
)
type S3Storage struct {
endpoint string
bucketName string
}
func NewS3Storage(endpoint, bucketName string) *S3Storage {
return &S3Storage{
endpoint: endpoint,
bucketName: bucketName,
}
}
func (s *S3Storage) Uplo... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "aqqnoor/1337b04rd",
"path": "internal/adapters/storage/s3_storage.go",
"language": "Go",
"commit": "7844768",
"domain": "object-storage adapter",
"fit": "tool_use"
} |
// crucible
// One-Time-Programmable (OTP) fusing tool
//
// Copyright (c) The crucible authors. All Rights Reserved.
//
// Use of this source code is governed by the license
// that can be found in the LICENSE file.
package fusemap
import (
"fmt"
"io/fs"
"os"
"github.com/ghodss/yaml"
)
// Parse converts a fuse... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "usbarmory/crucible",
"path": "fusemap/yaml.go",
"language": "Go",
"commit": "4bf849c",
"domain": "embedded hardware fuse configuration parsing",
"fit": "tool_use"
} |
package client
import (
"encoding/json"
"net/http"
"net/url"
"time"
)
type StationInfo struct {
Name string `json:"name"`
DistanceToArrival float64 `json:"distanceToArrival"`
}
type StationsResponse struct {
SystemName string `json:"name"`
Stations []StationInfo `json:"stations"`
}
ty... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "ArthurAm/EDTradePulse",
"path": "internal/client/edsm_stations.go",
"language": "Go",
"commit": "59a5ead",
"domain": "external API client (EDSM stations)",
"fit": "tool_use"
} |
package etcd
import (
"context"
"sort"
"time"
v1 "github.com/gandelm/gandelm/api/v1"
"github.com/gandelm/gandelm/internal/container"
"github.com/gandelm/gandelm/internal/converter"
"github.com/gandelm/gandelm/internal/core/domain/entity"
"github.com/gandelm/gandelm/internal/core/domain/repository"
metav1 "k8... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "gandelm/gandelm",
"path": "internal/core/infrastructure/etcd/artifact_repository.go",
"language": "Go",
"commit": "da04565",
"domain": "kubernetes-crd-repository",
"fit": "tool_use"
} |
// shared/middleware/auth.go
package middleware
import (
"net/http"
"strings"
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v4"
"github.com/gin-contrib/cors"
)
func AuthMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
authHeader := c.GetHeader("Authorization")
if authHeader == "" {
c... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "shashnavad/task-management",
"path": "shared/middleware/auth.go",
"language": "Go",
"commit": "4eb9cf1",
"domain": "web-api-auth-middleware",
"fit": "tool_use"
} |
package ai
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
)
// OpenWebUIClient implements the Client interface for OpenWebUI
type OpenWebUIClient struct {
baseURL string
apiKey string
model string
client *http.Client
}
// NewOpenWebUIClient creates a new OpenWebUI client
func NewOpenW... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "erkineren/pullpoet",
"path": "internal/ai/openwebui.go",
"language": "Go",
"commit": "eb6a1e4",
"domain": "LLM API client / OpenWebUI integration",
"fit": "tool_use"
} |
package queue
import (
"context"
"sync"
"time"
"github.com/deckhouse/deckhouse/pkg/log"
metricsstorage "github.com/deckhouse/deckhouse/pkg/metrics-storage"
"github.com/flant/shell-operator/pkg/task"
)
const MainQueueName = "main"
// TaskQueueSet is a manager for a set of named queues
type TaskQueueSet struct... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "flant/shell-operator",
"path": "pkg/task/queue/queue_set.go",
"language": "Go",
"commit": "9899fab",
"domain": "concurrent task queue management",
"fit": "tool_use"
} |
package main
import (
"context"
"errors"
"flag"
"fmt"
"os"
"strconv"
"strings"
"time"
"github.com/outcatcher/fwd2me/forwarder"
)
const portSeparator = ":"
var (
leaseDuration = time.Hour
retryDuration = time.Second
checkDuration = 10 * time.Second
errEmptyPortList = errors.New("empty port list")
)
f... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "outcatcher/fwd2me",
"path": "ensure.go",
"language": "Go",
"commit": "cb2879c",
"domain": "network port forwarding CLI",
"fit": "tool_use"
} |
package main
import (
"context"
"fmt"
"log"
"net"
"os"
"os/signal"
"github.com/joho/godotenv"
"github.com/miha-plemenitas/PlayList/GameService/db"
"github.com/miha-plemenitas/PlayList/GameService/pkg/game"
"github.com/miha-plemenitas/PlayList/GameService/pkg/game/audit"
gamepb "github.com/miha-plemenitas/P... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "miha-plemenitas/PlayList",
"path": "GameService/cmd/server/main.go",
"language": "Go",
"commit": "ee2deda",
"domain": "gRPC game service backend",
"fit": "tool_use"
} |
package redis
import (
"context"
"errors"
"time"
"github.com/redis/go-redis/v9"
"github.com/sirupsen/logrus"
)
func SetNX(ctx context.Context, client *redis.Client, key, value string, ttl time.Duration) (err error) {
now := time.Now()
var ok bool
defer func() {
l := logrus.WithContext(ctx).WithFields(logru... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "nnothing1/gorder",
"path": "internal/common/handler/redis/client.go",
"language": "Go",
"commit": "b916b34",
"domain": "redis client wrapper",
"fit": "tool_use"
} |
package models
import (
"database/sql"
"encoding/json"
"fmt"
"time"
"github.com/youssefrag/SoundSphere/cache"
"github.com/youssefrag/SoundSphere/db"
)
type Song struct {
ID int64 `json:"id"`
Name string `json:"name" binding:"required"`
ArtistEmail string `json:"artistEmail... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "youssefrag/SoundSphere",
"path": "backend/models/song.go",
"language": "Go",
"commit": "74c6f60",
"domain": "music-service backend model/db layer",
"fit": "tool_use"
} |
package store
import (
"errors"
"sync"
"time"
"babytracker-api/models"
)
// MockStore implements the ProductStore interface for in-memory data.
type MockStore struct {
mu sync.Mutex
productPriceEntries []models.ProductPriceEntry
nextID int
}
// NewMockStore creates and initializ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "tmac12/milkdata",
"path": "backend/store/mock_products.go",
"language": "Go",
"commit": "bd20310",
"domain": "go backend mock datastore",
"fit": "tool_use"
} |
package core
import (
"davinci/common"
"davinci/common/log"
"davinci/core/mysql"
"fmt"
"github.com/c-bata/go-prompt"
"github.com/go-mysql-org/go-mysql/client"
"strconv"
"strings"
)
var excludeMysqlDB = []string{
"information_schema",
"mysql",
"performance_schema",
"sys",
}
type Mysql struct {
conn *cl... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Ape1ron/davinci",
"path": "core/mysql.go",
"language": "Go",
"commit": "29eec71",
"domain": "mysql-client/database-introspection",
"fit": "tool_use"
} |
package events
import (
"encoding/json"
"fmt"
)
type HeartbeatEvent struct {
Event
LastSequence *int
}
type HeartbeatAckEvent struct {
Event
}
func NewHeartbeatEvent(sequence *int) *HeartbeatEvent {
return &HeartbeatEvent{
Event: Event{
Operation: Heartbeat,
},
LastSequence: sequence,
}
}
func (hbE... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "lckrugel/tod_discord",
"path": "internal/gateway/events/heartbeat.go",
"language": "Go",
"commit": "825eeab",
"domain": "websocket gateway events",
"fit": "tool_use"
} |
package api
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/hex"
"encoding/json"
"html/template"
"net/http"
"log"
"sync"
"time"
"golang.org/x/crypto/scrypt"
"github.com/feliipecosta/totp-server/pkg/models"
"github.com/feliipecosta/totp-server/pkg/totp"
)
var (
templates = template... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "feliipecosta/totp-server",
"path": "pkg/api/api.go",
"language": "Go",
"commit": "d78678f",
"domain": "go web API / TOTP service",
"fit": "tool_use"
} |
package router
import (
"context"
"log/slog"
"net/http"
"selfhosted/app"
"selfhosted/database"
"selfhosted/database/store"
"time"
)
func SetupMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodGet {
next.ServeHTTP(... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "workflou/selfhosted",
"path": "router/middleware.go",
"language": "Go",
"commit": "af84a2c",
"domain": "go-web-middleware-auth-session",
"fit": "tool_use"
} |
package server
import (
"encoding/json"
"net/http"
"github.com/agnath18K/lumo/pkg/auth"
)
// handleLogin handles the /api/v1/auth/login endpoint
func (s *Server) handleLogin(w http.ResponseWriter, r *http.Request) {
// Only allow POST requests
if r.Method != http.MethodPost {
http.Error(w, "Method not allowed... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "agnath18K/lumo_cli",
"path": "pkg/server/auth_handlers.go",
"language": "Go",
"commit": "9cd8d81",
"domain": "web_auth_api",
"fit": "tool_use"
} |
package server
import (
"fmt"
"os/exec"
"strconv"
"strings"
"github.com/rs/zerolog/log"
"github.com/shivase/claude-code-agents/internal/tmux"
)
// MessageClient - tmux-based message client
type MessageClient struct {
sessionName string
tmuxManager *tmux.TmuxManagerImpl
}
// NewMessageClient - Create client ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sumik5/claude-code-agents",
"path": "start-agents/internal/server/message_client.go",
"language": "Go",
"commit": "7615115",
"domain": "tmux-based agent messaging",
"fit": "tool_use"
} |
package fileHandlers
import (
"encoding/json"
"net/http"
"strings"
"time"
"myScalidraw/internal/domain/models"
"myScalidraw/pkg/uuid"
"github.com/gofiber/fiber/v2"
)
type CreateFileRequest struct {
Name string `json:"name"`
ParentID string `json:"parentId"`
ParentPath string `json:"parentPath"`... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "lkgiovani/myScalidraw",
"path": "back-end/internal/delivery/handlers/fileHandlers/createFile.go",
"language": "Go",
"commit": "74c20b7",
"domain": "file-management HTTP API",
"fit": "tool_use"
} |
package main
import (
"context"
"encoding/json"
"fmt"
"io"
"log"
"log/slog"
"net/http"
"strconv"
"sync"
"time"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/client"
"github.com/prometheus/client_golang/prometheus"
"github.com/prome... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Lemionday/thesis-storm",
"path": "storm-exporter/metrics_docker_supervisors.go",
"language": "Go",
"commit": "b1b17f3",
"domain": "docker monitoring / prometheus exporter",
"fit": "tool_use"
} |
package models
import (
"context"
"database/sql"
"fmt"
"time"
)
type EventModel struct {
DB *sql.DB
}
type Event struct {
ID int `json:"id"`
OwnerId int `json:"owner_id"`
Name string `json:"name" binding:"required,min=3"`
Description string `json:"description" binding:"required,min... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "rajan-marasini/event-api",
"path": "internal/models/event.model.go",
"language": "Go",
"commit": "cb29c73",
"domain": "go-sql-crud-model",
"fit": "tool_use"
} |
package data
import (
"context"
"fmt"
"github.com/aarondl/sqlboiler/v4/boil"
"github.com/aarondl/sqlboiler/v4/queries/qm"
models "github.com/aliexpressru/alilo-backend/internal/app/dbmodels"
"github.com/aliexpressru/alilo-backend/pkg/util/logger"
"github.com/golang/protobuf/ptypes/timestamp"
)
func (s *Store)... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "aliexpressru/alilo-backend",
"path": "internal/app/data/trace.go",
"language": "Go",
"commit": "2d81e27",
"domain": "backend data access (Go + SQLBoiler ORM)",
"fit": "tool_use"
} |
package logic
import (
"bytes"
"context"
"encoding/json"
"github.com/bytedance/sonic"
"github.com/feihua/zero-admin/rpc/search/internal/svc"
"github.com/feihua/zero-admin/rpc/search/search"
"github.com/zeromicro/go-zero/core/logx"
)
type SearchSimpleLogic struct {
ctx context.Context
svcCtx *svc.ServiceC... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "feihua/zero-admin",
"path": "rpc/search/internal/logic/search_simple_logic.go",
"language": "Go",
"commit": "0667c30",
"domain": "go-microservice-elasticsearch-search",
"fit": "tool_use"
} |
package main
import (
"encoding/json"
"log"
"io"
"net/http"
"os"
"os/exec"
"strings"
"sync/atomic"
"time"
"github.com/gorilla/websocket"
)
// --- Server State ---
var activeConnections int32
var sessionIdCounter int32
var startTime time.Time
// A simple struct to handle JSON messages from the client
type w... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "blakjakau/dev.jakbox.conduit",
"path": "handlers.go",
"language": "Go",
"commit": "f532fcd",
"domain": "websocket terminal server",
"fit": "tool_use"
} |
package handlers
import (
"encoding/json"
"log"
"net/http"
"github.com/jaycynth/behaviour-analysis-totp-phishing/models"
"github.com/jaycynth/behaviour-analysis-totp-phishing/services"
)
type DeviceHandler struct {
service *services.DeviceService
}
func NewDeviceHandler(service *services.DeviceService) *Devic... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "jaycynth/behaviour-analysis-totp-phishing",
"path": "handlers/device-metadata-handler.go",
"language": "Go",
"commit": "20d080d",
"domain": "go-web-api device metadata sync",
"fit": "tool_use"
} |
package controllers
import (
"context"
"fmt"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
)
type NodeReconciler struct {
Client client.Client
Scheme ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "williamkoller/k8s-addon",
"path": "internal/controllers/node_controller.go",
"language": "Go",
"commit": "50e03b2",
"domain": "kubernetes-controller",
"fit": "tool_use"
} |
package worker
import (
"context"
"errors"
"net/url"
"time"
"github.com/foohq/ren"
"github.com/foohq/ren/modules"
risoros "github.com/risor-io/risor/os"
"golang.org/x/sync/errgroup"
"github.com/foohq/foojank/internal/vessel/log"
"github.com/foohq/foojank/internal/vessel/message"
)
var errDone = errors.New... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "fooHQ/foojank",
"path": "internal/vessel/worker/service.go",
"language": "Go",
"commit": "f0dc883",
"domain": "script execution worker/service orchestration",
"fit": "tool_use"
} |
package api
import (
"context"
"errors"
"github.com/zagvozdeen/creavo/api/oas"
"github.com/zagvozdeen/creavo/internal/store"
"net/http"
)
func (app *Application) CreateChannelUser(ctx context.Context, req *oas.CreateChannelUserReq) (*oas.ChannelUser, error) {
user, err := app.store.GetUserByEmail(ctx, req.Email... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "zagvozdeen/creavo",
"path": "api/channel_user.go",
"language": "Go",
"commit": "328dbea",
"domain": "go web API / channel membership service",
"fit": "tool_use"
} |
package pod
import (
"errors"
"fmt"
"sort"
"strings"
"sync"
"time"
)
// ErrNotFound indicates the pod does not exist in the store.
var ErrNotFound = errors.New("pod not found")
// Summary represents the data shown in the pods list view.
type Summary struct {
Name string `json:"name"`
Namespace ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "leliang129/kubedash",
"path": "internal/pod/store.go",
"language": "Go",
"commit": "d0c7a9f",
"domain": "kubernetes pod mock store/service",
"fit": "tool_use"
} |
package crontab
import (
"fmt"
"go-iptv/dao"
"go-iptv/models"
"go-iptv/until"
"io"
"log"
"net/http"
"regexp"
"strings"
"time"
)
func Crontab() {
log.Println("定时任务服务启动...")
cfg := dao.GetConfig()
autoUpdate := cfg.Channel.Auto
upInterval := cfg.Channel.Interval
if autoUpdate == 1 && upInterval > 0 {
i... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "wz1st/go-iptv",
"path": "crontab/crontab.go",
"language": "Go",
"commit": "fb3bd97",
"domain": "iptv playlist ingestion/cron updater",
"fit": "tool_use"
} |
// Package valkeyglide implementa um provider para o driver valkey-glide.
// Este provider oferece implementação completa da interface IClient
// com suporte a todas as operações Valkey de forma desacoplada.
package valkeyglide
import (
"crypto/tls"
"fmt"
"net"
glide "github.com/valkey-io/valkey-glide/go/v2"
"gi... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "fsvxavier/nexs-lib",
"path": "cache/valkey/providers/valkey-glide/provider.go",
"language": "Go",
"commit": "cbc27e5",
"domain": "cache client provider (Valkey/Redis)",
"fit": "tool_use"
} |
package huggingface
import (
"context"
"errors"
"fmt"
"io"
"log"
"os"
"path/filepath"
"github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/aws/smithy-go"
"github.com/llmariner/inference-manager/engine/internal/modeldownloader/common"
mv1 "github.com/llmariner/model-manager/api/v1"
)
const siFilename = "m... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "llmariner/inference-manager",
"path": "engine/internal/modeldownloader/huggingface/download.go",
"language": "Go",
"commit": "e954811",
"domain": "ML model artifact downloading (S3/HuggingFace)",
"fit": "tool_use"
} |
package stats
import (
"os"
"path/filepath"
"reflect"
"sync"
"time"
"github.com/segmentio/stats/v5/version"
)
// An Engine carries the context for producing metrics. It is configured by
// setting the exported fields or using the helper methods to create sub-engines
// that inherit the configuration of the bas... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "segmentio/stats",
"path": "engine.go",
"language": "Go",
"commit": "007b723",
"domain": "metrics/telemetry library",
"fit": "tool_use"
} |
package cflibdns
import (
"context"
"fmt"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/dns"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/zones"
"github.com/libdns/libdns"
"github.com/sirupsen/logrus"
"os"
"time"
)
// New creates ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "zxspirit/cflibdns",
"path": "provider.go",
"language": "Go",
"commit": "df2dadb",
"domain": "cloudflare_dns_provider",
"fit": "tool_use"
} |
package datarecording
import (
"context"
"database/sql"
"errors"
"fmt"
"os"
"reflect"
"strings"
"sync"
// Need to use SQLite connections.
_ "github.com/mattn/go-sqlite3"
"github.com/rs/xid"
"github.com/tebeka/atexit"
)
// DataRecorder is a backend that can record and store data
type DataRecorder interfac... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Bharadwaj-07/akita",
"path": "datarecording/datarecorder.go",
"language": "Go",
"commit": "e01545c",
"domain": "go-sqlite data recording library",
"fit": "tool_use"
} |
package handlers
import (
"context"
"encoding/json"
"ggbuddy/database"
"ggbuddy/models"
"ggbuddy/utils"
"net/http"
"strings"
"time"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"golang.org/x/crypto/bcrypt"
)
func RegisterHandler(w http.ResponseWriter, r *http.Request) {
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "PongsatornWaiyaworn/GGbuddy-web",
"path": "BACKEND/handlers/Auth.go",
"language": "Go",
"commit": "419c8fa",
"domain": "web-backend-authentication",
"fit": "tool_use"
} |
package service
import (
"context"
"dc-analytics-service-backend/internal/models"
"dc-analytics-service-backend/internal/repository"
)
type deviceService struct {
deviceRepo repository.DeviceRepository
}
func NewDeviceService(deviceRepo repository.DeviceRepository) DeviceService {
return &deviceService{deviceRe... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Github33321/dc-analytics-service-backend",
"path": "internal/service/device_service_impl.go",
"language": "Go",
"commit": "11aeeaa",
"domain": "backend device service",
"fit": "tool_use"
} |
package api
import (
"ads-system/internal/api/handlers/auction"
"ads-system/internal/api/handlers/clicks"
"ads-system/internal/api/handlers/impressions"
"ads-system/internal/database"
"ads-system/internal/logger"
"github.com/gin-gonic/gin"
"github.com/redis/go-redis/v9"
)
type Server struct {
Querier da... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "rodrwan/ads",
"path": "internal/api/api.go",
"language": "Go",
"commit": "df95cbb",
"domain": "ad-tech API server",
"fit": "tool_use"
} |
package repository
import (
"log"
"sort"
"sync"
"hw12/internal/model"
)
const (
homeworksJson = "./homeworks.json"
studiesJson = "./studies.json"
workoutsJson = "./workouts.json"
)
type TodoRepository struct {
homeworks []*model.HomeworkItem
studies []*model.StudyItem
workouts []*model.WorkoutItem
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "boris-andreev/otus_hw12",
"path": "internal/repository/todoRepository.go",
"language": "Go",
"commit": "77b6793",
"domain": "golang todo repository / persistence",
"fit": "tool_use"
} |
package service
import (
"context"
"fmt"
"sync"
"time"
"github.com/RyanLisse/go-crypto-bot-clean/backend/internal/domain/model"
"github.com/RyanLisse/go-crypto-bot-clean/backend/internal/domain/port"
"github.com/rs/zerolog"
)
// FallbackStrategy represents a strategy for credential fallback
type FallbackStrat... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "RyanLisse/go-crypto-bot-clean",
"path": "backend/internal/domain/service/credential_fallback_service.go",
"language": "Go",
"commit": "b5ad8cb",
"domain": "credential management / API service",
"fit": "tool_use"
} |
package controllers
import (
"MillyPhoto/db"
"MillyPhoto/models"
"fmt"
"github.com/gin-gonic/gin"
"log"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
)
func UploadRental(c *gin.Context) {
name := c.PostForm("name")
form, _ := c.MultipartForm()
files := form.File["photos"]
if err := db.DB.Model(&m... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "himka0-0/PhotoMil",
"path": "controllers/AdminRental.go",
"language": "Go",
"commit": "b25c84f",
"domain": "web backend file upload & CRUD",
"fit": "tool_use"
} |
package sandbox
import (
"bytes"
"context"
"fmt"
"io"
"time"
"github.com/docker/docker/api/types/container"
docker "github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"
)
type TMPFSDockerManager struct {
dockerClient *docker.Client
cmd []string
execIDs map[SandboxID]string... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Feedonya/Runner",
"path": "code-runner/internal/sandbox/tmpfsdocker.go",
"language": "Go",
"commit": "55e2c8e",
"domain": "docker-sandbox-manager",
"fit": "tool_use"
} |
package http
import (
"context"
"log"
"net/http"
"time"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
// Server represents the HTTP server
type Server struct {
echo *echo.Echo
handlers *Handlers
}
// NewServer creates a new HTTP server
func NewServer(handlers *Handlers) *Serve... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "mikedonnici/cqrs-demo",
"path": "internal/http/server.go",
"language": "Go",
"commit": "2347927",
"domain": "go-http-api-cqrs",
"fit": "tool_use"
} |
package handler
import (
"errors"
"live-chat-server/config"
"live-chat-server/interfaces"
"live-chat-server/repositories"
"live-chat-server/utils"
"github.com/gofiber/fiber/v2"
)
type PublicHandler struct {
inboxRepo repositories.InboxRepository
logger interfaces.Logger
langContext int... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "LiamAshdown/TalkDeskly",
"path": "backend/handlers/public_handler.go",
"language": "Go",
"commit": "e190ae6",
"domain": "web-api-handlers/live-chat",
"fit": "tool_use"
} |
package lampofs
import (
"io"
"time"
)
type LampEvent struct {
Type string // READ, WRITE, PUT, DELETE, UPDATE
Path string
Timestamp int64
Data interface{}
}
type Driver interface {
Read(path string) (io.ReadCloser, error)
Write(path string, data []byte) error
Put(path string, data []byte) er... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "vanvanni/lampofs",
"path": "lampofs.go",
"language": "Go",
"commit": "c3097ff",
"domain": "filesystem abstraction with event hooks",
"fit": "tool_use"
} |
package frontlas
import (
"net/http"
"runtime"
"github.com/singchia/frontier/pkg/frontlas/config"
"github.com/singchia/frontier/pkg/frontlas/repo"
"github.com/singchia/frontier/pkg/frontlas/server"
"github.com/singchia/frontier/pkg/utils"
"k8s.io/klog/v2"
)
type Frontlas struct {
repo *repo.Dao
server *se... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "singchia/frontier",
"path": "pkg/frontlas/frontlas.go",
"language": "Go",
"commit": "92dc12b",
"domain": "go backend service bootstrap",
"fit": "tool_use"
} |
package controllers
import (
"net/http"
"go-crawler/internal/services"
"github.com/gin-gonic/gin"
)
// CrawlerController holds the crawler and gemini services
type CrawlerController struct {
CrawlerService services.CrawlerService
GeminiService services.GeminiService
}
// NewCrawlerController creates a new C... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "hblab-duongdv1/go-crawler",
"path": "internal/controllers/crawler.go",
"language": "Go",
"commit": "2f26943",
"domain": "web-crawler API with LLM summarization",
"fit": "tool_use"
} |
package cmd
import (
"bufio"
"fmt"
"io"
"os"
"strings"
"github.com/cloudygreybeard/contextmemory/cmd/cmctl/internal/storage"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
var createCmd = &cobra.Command{
Use: "create",
Short: "Create a new memory",
Long: `Create a new memory with optional name, lab... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "cloudygreybeard/contextmemory",
"path": "cmd/cmctl/cmd/create.go",
"language": "Go",
"commit": "20c86e5",
"domain": "CLI memory storage management",
"fit": "tool_use"
} |
package main
import (
"context"
"net/http"
"os"
"os/signal"
"syscall"
"time"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/giovannigabriele/go-todo-bot/internal/config"
"github.com/giovannigabriele/go-todo-bot/internal/health"
"github.com/giovannigabriele/go-todo-bot/internal/llm"
"gith... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "jgabriele321/Getitdone_DEMO",
"path": "cmd/bot/main.go",
"language": "Go",
"commit": "fa747b6",
"domain": "telegram-bot-service-orchestration",
"fit": "tool_use"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.