text stringlengths 1k 12k | metadata dict |
|---|---|
package backend
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"time"
"time-tracking-agent/internal/auth"
)
const baseURL = "http://localhost:3000"
type Client struct {
httpClient *http.Client
authManager *auth.Manager
}
func NewClient() *Client {
return &Client{
httpClient: &http.Client{Timeo... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Mansoor88-6/GO-agent",
"path": "internal/backend/client.go",
"language": "Go",
"commit": "d54903f",
"domain": "time-tracking API client",
"fit": "tool_use"
} |
package controller
import (
"net/http"
"strconv"
grpcClient "top-up-api/internal/grpc/client"
"top-up-api/internal/mapper"
"top-up-api/internal/service"
"top-up-api/pkg/logger"
"github.com/gin-gonic/gin"
)
type PurchaseHistoryRouter struct {
service service.PurchaseHistoryService
logger logger.Interface
a... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "mrkidvn44/top-up",
"path": "internal/controller/http/puchaseHistory.go",
"language": "Go",
"commit": "ccff082",
"domain": "golang-http-api-controller",
"fit": "tool_use"
} |
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"path/filepath"
"strings"
"time"
)
// ElasticsearchResponse represents the structure of the response from Elasticsearch
type ElasticsearchResponse struct {
Took int `json:"took"`
TimedOut bool `json:"timed_o... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "MoncefBahja/Elasticsearch-code",
"path": "internal/service/search.go",
"language": "Go",
"commit": "31ccea6",
"domain": "code search CLI with Elasticsearch",
"fit": "tool_use"
} |
package internal
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
func processTemplate(template, commitMessage string) string {
if !strings.Contains(template, "COMMIT_MESSAGE") {
fmt.Println("Warning: template doesn't include {COMMIT_MESSAGE}")
return commitMessage
}
finalCommitMessage := strings.ReplaceAll(t... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "tranvlnh26/go-commit",
"path": "internal/utils.go",
"language": "Go",
"commit": "6160ade",
"domain": "git tooling / commit message generation",
"fit": "tool_use"
} |
package apiserver
import (
"context"
"fmt"
"go-app_files-mgmt/internal/common"
"log"
"net/http"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/go-chi/cors"
)
type ApiServer struct {
router *chi.Mux
server *http.Server
Port int
uploadedFiles map[string]... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "dxps/go-app_playground",
"path": "go-app_files-mgmt/internal/svc/servers/apiserver/api_server.go",
"language": "Go",
"commit": "8d991da",
"domain": "go http file-management api server",
"fit": "tool_use"
} |
package controllers
import (
"ironcoach/models"
"ironcoach/services"
"net/http"
"github.com/gin-gonic/gin"
)
type ProgressController struct {
service *services.ProgressService
}
// Constructor for ProgressController
func NewProgressController() *ProgressController {
return &ProgressController{
service: serv... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "vaibhav07351/ironcoach",
"path": "backend/controllers/progress_controller.go",
"language": "Go",
"commit": "5c31db0",
"domain": "fitness_progress_api",
"fit": "tool_use"
} |
package storagesystem
import (
"context"
"fmt"
"io"
"math/rand"
"github.com/cockroachdb/errors"
"github.com/data-preservation-programs/singularity/model"
"github.com/gotidy/ptr"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/hash"
)
// IsSameEntry checks if a given model.File and a given fs.Obje... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "data-preservation-programs/singularity",
"path": "storagesystem/util.go",
"language": "Go",
"commit": "6c6c640",
"domain": "storage/filesystem utilities",
"fit": "tool_use"
} |
package main
import (
"context"
"fmt"
"log"
"os"
"go-training-system/internal/config"
"github.com/segmentio/kafka-go"
)
func main() {
if len(os.Args) < 2 {
fmt.Println("Usage: go run cmd/kafka/main.go [create-topics|list-topics]")
os.Exit(1)
}
cfg := config.LoadConfig()
if cfg == nil {
log.Fatal("F... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "thangta7698/golang-project",
"path": "cmd/kafka/main.go",
"language": "Go",
"commit": "5bd00d9",
"domain": "kafka-topic-admin-cli",
"fit": "tool_use"
} |
package controller
import (
"net/http"
"os"
"post-service/internal/model"
"github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v5"
)
func UserAuth() gin.HandlerFunc {
return jwtAuth(model.RoleUser)
}
func AdminAuth() gin.HandlerFunc {
return jwtAuth(model.RoleAdmin)
}
func jwtAuth(allow_role model.UserRole... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sevetis/Come",
"path": "come-back/post-service/internal/controller/jwt.go",
"language": "Go",
"commit": "a33ed9b",
"domain": "web-api-jwt-auth-middleware",
"fit": "tool_use"
} |
package repository
import (
"errors"
"github.com/sudhin-az/SOLE-SPOT-MICROSERVICES/Cart-Service/pkg/models"
"gorm.io/gorm"
)
type CartRepository struct {
DB *gorm.DB
}
func NewCartRepository(db *gorm.DB) *CartRepository {
return &CartRepository{
DB: db,
}
}
func (cr *CartRepository) QuantityOfProductInCart... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sudhin-az/Sole-Spot-Microservices",
"path": "Cart-Service/pkg/repository/cart.go",
"language": "Go",
"commit": "5a45f5d",
"domain": "ecommerce_cart_repository",
"fit": "tool_use"
} |
package Repository
import (
"Hawir/Domain"
"Hawir/UseCase"
"errors"
"fmt"
"context"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
)
type UserRepository struct {
DbCtx context.Context
Collection *mongo.Collection
}
func NewUserRepo... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "yigebis/Hawir",
"path": "Backend/Repository/userRepo.go",
"language": "Go",
"commit": "ef8dbb5",
"domain": "golang_mongodb_user_repository",
"fit": "tool_use"
} |
package books
import "github.com/sing3demons/go-library-api/pkg/kp"
type BookService interface {
GetBook(ctx kp.IContext, id string) (*Book, error)
CreateBook(ctx kp.IContext, book *Book) error
GetAllBooks(ctx kp.IContext, filter map[string]any) ([]*Book, error)
}
type bookService struct {
repo BookRepository
}
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sing3demons/go-library-api",
"path": "internal/books/service.go",
"language": "Go",
"commit": "b2cc7ae",
"domain": "go api service layer",
"fit": "tool_use"
} |
package rest
import (
"github.com/MingPV/clean-go-template/internal/entities"
"github.com/MingPV/clean-go-template/internal/monster/dto"
"github.com/MingPV/clean-go-template/internal/monster/usecase"
responses "github.com/MingPV/clean-go-template/pkg/responses"
"github.com/gofiber/fiber/v2"
)
type HttpMonsterHan... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "MingPV/game-type",
"path": "backend/internal/monster/handler/rest/handler.go",
"language": "Go",
"commit": "608af54",
"domain": "go_rest_api_handler",
"fit": "tool_use"
} |
package takeimageController
import (
"bytes"
"encoding/json"
"io"
"mime/multipart"
"net/http"
"pawscan/entities"
"pawscan/models/breedModel"
"pawscan/models/predictionModel"
"pawscan/models/userModel"
"pawscan/session"
"text/template"
)
type PredictionResponse struct {
Class uint ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "keyxzn/Software-Engineering-PawScan",
"path": "takeimageController.go",
"language": "Go",
"commit": "99c3947",
"domain": "web-ml-inference-service",
"fit": "tool_use"
} |
package main
import (
"context"
"dagger/maven/internal/dagger"
"encoding/xml"
"fmt"
)
const DefaultMavenCacheName = "maven-cache"
const DefaultWorkdir = "/app"
type pomProject struct {
// XMLName is used to ensure we're parsing the <project> element.
XMLName xml.Name `xml:"project"`
// Version captures the co... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "BasisTI/daggerverse",
"path": "maven/maven.go",
"language": "Go",
"commit": "4c03b55",
"domain": "CI/CD Maven build with Dagger",
"fit": "tool_use"
} |
/*
MIT License
# Copyright (c) 2025 OcomSoft
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, dis... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "ocomsoft/makemigrations",
"path": "internal/generator/generator.go",
"language": "Go",
"commit": "153d6b5",
"domain": "database-migrations generator",
"fit": "tool_use"
} |
package handler
import (
"strconv"
"github.com/gin-gonic/gin"
"github.com/hafizd-kurniawan/pos-baru/internal/domain/models"
"github.com/hafizd-kurniawan/pos-baru/internal/service"
"github.com/hafizd-kurniawan/pos-baru/pkg/utils"
)
type VehicleTypeHandler struct {
vehicleTypeService service.VehicleTypeService
}... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "hafizd-kurniawan/pos-baru",
"path": "internal/handler/vehicle_type_handler.go",
"language": "Go",
"commit": "7764307",
"domain": "REST API handler (vehicle types)",
"fit": "tool_use"
} |
//go:build cli
package orgmembers
import (
"context"
"errors"
"github.com/spf13/cobra"
"github.com/theopenlane/core/cmd/cli/cmd"
"github.com/theopenlane/core/pkg/openlaneclient"
)
var deleteCmd = &cobra.Command{
Use: "delete",
Short: "remove a user from a organization",
Run: func(cmd *cobra.Command, args... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "theopenlane/core",
"path": "cmd/cli/cmd/orgmembers/delete.go",
"language": "Go",
"commit": "ce8415b",
"domain": "cli_api_client_org_membership",
"fit": "tool_use"
} |
/*
Copyright (C) BABEC. All rights reserved.
Copyright (C) THL A29 Limited, a Tencent company. All rights reserved.
SPDX-License-Identifier: Apache-2.0
*/
package wasmer
import (
"fmt"
"strconv"
"sync"
"chainmaker.org/chainmaker/logger/v2"
"chainmaker.org/chainmaker/common/v2/serialize"
commonPb "chainmaker.... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "TKOTKCh/chainmaker-vm-wasmer",
"path": "vm-wasmer/v2@v2.4.0/sim_context.go",
"language": "Go",
"commit": "cb7af9a",
"domain": "blockchain-wasm-runtime",
"fit": "tool_use"
} |
/*
Copyright © 2025 Open Library Foundation
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, s... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "folio-org/eureka-setup",
"path": "eureka-cli/cmd/checkPorts.go",
"language": "Go",
"commit": "691ecab",
"domain": "docker-cli devops networking",
"fit": "tool_use"
} |
package service
import (
"bytes"
"context"
"encoding/json"
"fmt"
"net/http"
"time"
"github.com/go-redis/redis/v8"
"go.uber.org/zap"
"github.com/popeskul/insdr-messenger/internal/api"
"github.com/popeskul/insdr-messenger/internal/config"
"github.com/popeskul/insdr-messenger/internal/models"
"github.com/po... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "popeskul/insdr-messenger",
"path": "internal/service/message_service.go",
"language": "Go",
"commit": "0576e0a",
"domain": "messaging webhook service",
"fit": "tool_use"
} |
package cache
import (
"context"
"fmt"
"log/slog"
"github.com/prxssh/targeting-engine/internal/cache/scripts"
"github.com/prxssh/targeting-engine/internal/campaign"
"github.com/redis/go-redis/v9"
)
const (
keyPrefixCampaignMetadata = "campaign:meta:"
keyPatternCampaignMetadata = "campaign:meta:*"
)
func (c... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "prxssh/targeting-engine",
"path": "internal/cache/campaign.go",
"language": "Go",
"commit": "b1c6b4a",
"domain": "redis-backed campaign cache service",
"fit": "tool_use"
} |
package main
import (
"context"
"log"
"net/http"
"os"
"os/signal"
"syscall"
"time"
app "aviasales-bot/search-service/internal/application"
api "aviasales-bot/search-service/internal/infrastructure/aviasales"
httpiface "aviasales-bot/search-service/internal/interfaces/http"
"aviasales-bot/search-service/int... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "KamnevVladimir/aviabot-search-service",
"path": "cmd/main.go",
"language": "Go",
"commit": "c9bb1bc",
"domain": "flight search microservice",
"fit": "tool_use"
} |
package config
import (
"context"
"encoding/base64"
"fmt"
"net/smtp"
"os"
"path/filepath"
"sync"
_ "github.com/lib/pq"
"github.com/skip2/go-qrcode"
"go.mau.fi/whatsmeow"
"go.mau.fi/whatsmeow/store/sqlstore"
waLog "go.mau.fi/whatsmeow/util/log"
)
var (
meowWhatsapp *whatsmeow.Client
qrCodeSent bool
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "BananaLeaf77/notification-the-final-backend",
"path": "config/sender.go",
"language": "Go",
"commit": "e679c45",
"domain": "whatsapp-smtp notification service setup",
"fit": "tool_use"
} |
package user
import (
"bookstore_users_api/domain/users"
"bookstore_users_api/services"
"bookstore_users_api/utils/errors"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
)
func TestServiceInterface() {
}
func getUserId(userIdParam string) (int64, *errors.RestErr) {
userId, userErr := strconv.ParseInt(userI... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sanazmovahed/bookstore_users_api",
"path": "controllers/user/users-controller.go",
"language": "Go",
"commit": "4c93895",
"domain": "golang_rest_api_controller",
"fit": "tool_use"
} |
package repositories
import (
"context"
"github.com/RyseUp/uniqora-nft-marketplace/backend/internal/models"
)
type UserSession interface {
CreateUserSession(ctx context.Context, session *models.UserSession) error
GetSessionByRefreshToken(ctx context.Context, refreshToken string) (*models.UserSession, error)
Dele... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "devihor25/NFT-Marketplace",
"path": "backend/internal/repositories/user_session.go",
"language": "Go",
"commit": "de6e418",
"domain": "backend session repository / database access",
"fit": "tool_use"
} |
package goquery
import (
"fmt"
"strings"
)
type RawCondition struct {
SQL string
Args []any
}
type EqCondition struct {
Column any
Value any
}
type NotEqCondition struct {
Column any
Value any
}
type GtCondition struct {
Column any
Value any
}
type GteCondition struct {
Column any
Value any
}
ty... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "renan5g/goquery",
"path": "conditions.go",
"language": "Go",
"commit": "7c70c91",
"domain": "sql query builder",
"fit": "tool_use"
} |
package meta
import (
"encoding/json"
"fmt"
"net/url"
"strconv"
"strings"
"time"
"github.com/sirupsen/logrus"
metadomain "github.com/vfg2006/traffic-manager-api/infrastructure/integrator/meta/domain"
"github.com/vfg2006/traffic-manager-api/infrastructure/integrator/meta/metaclient"
"github.com/vfg2006/traff... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Vfg2006/traffic-manager-api",
"path": "infrastructure/integrator/meta/service.go",
"language": "Go",
"commit": "ab916c3",
"domain": "ads analytics API integration",
"fit": "tool_use"
} |
package atmessage
import (
"context"
"fmt"
"net/http"
"github.com/aiteung/musik"
_ "github.com/mattn/go-sqlite3"
"go.mau.fi/whatsmeow"
waProto "go.mau.fi/whatsmeow/proto/waE2E"
"go.mau.fi/whatsmeow/store/sqlstore"
"go.mau.fi/whatsmeow/types"
waLog "go.mau.fi/whatsmeow/util/log"
"google.golang.org/protobuf/... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "aiteung/atmessage",
"path": "whatsapp.go",
"language": "Go",
"commit": "d92746d",
"domain": "whatsapp-bot client wrapper",
"fit": "tool_use"
} |
package notification
import (
"context"
"errors"
"time"
sq "github.com/Masterminds/squirrel"
"github.com/jackc/pgx/v5"
"github.com/leighmacdonald/gbans/internal/auth/permission"
"github.com/leighmacdonald/gbans/internal/database"
"github.com/leighmacdonald/gbans/internal/domain"
"github.com/leighmacdonald/gb... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "leighmacdonald/gbans",
"path": "internal/notification/notification_repo.go",
"language": "Go",
"commit": "2c5aca5",
"domain": "notification repository / database access (Go, PostgreSQL)",
"fit": "tool_use"
} |
package handler
import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"go.mood/internal/middleware"
"go.mood/internal/model"
"go.mood/pkg"
"net/http"
"time"
)
// Цвета для логов (ANSI escape codes)
const (
colorReset = "\033[0m"
colorRed = "\033[31m"
colorGreen = "\033[32m"
colorYellow = "\033[33m"... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "DostonKholov/go-todo-app",
"path": "internal/handler/task.go",
"language": "Go",
"commit": "a106ac3",
"domain": "go_http_task_api",
"fit": "tool_use"
} |
package crud
import (
"test_tasks/entity"
"test_tasks/repository"
"time"
)
type TaskCrud struct {
repo *repository.TaskRepository
}
func NewTaskCrud(repo *repository.TaskRepository) *TaskCrud {
return &TaskCrud{repo: repo}
}
func (c *TaskCrud) Create(userID int, title string, description string) *entity.Task {... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "arthur2050/test_tasks",
"path": "service/crud/task.go",
"language": "Go",
"commit": "057a681",
"domain": "task-management service",
"fit": "tool_use"
} |
package coinbasefacilitator
import (
"fmt"
"os"
"github.com/coinbase/x402/go/pkg/types"
)
const (
CoinbaseFacilitatorBaseURL = "https://api.cdp.coinbase.com"
CoinbaseFacilitatorV2Route = "/platform/v2/x402"
)
// CreateCdpAuthHeaders creates CDP auth headers
func CreateCdpAuthHeaders(apiKeyID, apiKeySecret stri... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "arashi0-git/auto_stock-Hack1",
"path": "x402/go/pkg/coinbasefacilitator/facilitator.go",
"language": "Go",
"commit": "aef5197",
"domain": "crypto_api_client",
"fit": "tool_use"
} |
package usecases
import (
Domain "task_manager/Domain"
"task_manager/Repositories"
)
type TaskUsecase interface {
CreateTask(task Domain.Task) error
GetTaskByID(taskID string) (*Domain.Task, error)
GetAllTasks() ([]*Domain.Task, error)
UpdateTask(id string, task Domain.Task) error
DeleteTask(taskID string) er... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Yosef64/A2SV-Go-Backend",
"path": "task_manager/Usecases/task_usecases.go",
"language": "Go",
"commit": "289cc3a",
"domain": "task management service",
"fit": "tool_use"
} |
package gorm
import (
"context"
"github.com/shimauma0312/module-tickethub/backend/models"
"gorm.io/gorm"
)
type notificationRepository struct {
db *gorm.DB
}
func NewNotificationRepository(db *gorm.DB) *notificationRepository {
return ¬ificationRepository{db: db}
}
func (r *notificationRepository) Create(c... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "shimauma0312/module-tickethub",
"path": "backend/repositories/gorm/notification_repository.go",
"language": "Go",
"commit": "536f95b",
"domain": "backend notification repository (GORM ORM)",
"fit": "tool_use"
} |
// Package git Git调度器
// 提供定时扫描、批量处理等功能
package git
import (
"context"
"sync"
"time"
"daily-brief/internal/config"
"daily-brief/internal/storage"
"github.com/sirupsen/logrus"
)
// Scheduler Git扫描调度器
// 负责定时扫描所有仓库,管理扫描任务
type Scheduler struct {
scanner *Scanner // Git扫描器
config config.GitC... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "gaki1313/daily-brief",
"path": "internal/git/scheduler.go",
"language": "Go",
"commit": "4434008",
"domain": "git repository scanning scheduler",
"fit": "tool_use"
} |
package supabase
import (
"Harmony-Tune/internal/checkChord/domain/model"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"os"
)
var justIntonationCentsAdjustment = map[string]float64{
// 1度 (Unison)
"ルート": 0.0, // 完全1度 (Root)
// 2度 (Second)
"短2度": 11.73, // ♭2
"長2度": 3.91, // 2
// 3度 (Third)
"短3度": ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "RyoTonegawa/Harmony-Tune",
"path": "infrastructure/supabase/chordMasterRepository.go",
"language": "Go",
"commit": "033e2f1",
"domain": "supabase music-chord repository client",
"fit": "tool_use"
} |
package ginhandler
import (
"github.com/bhupendra-dudhwal/go-flexkit/internal/core/adapters"
"github.com/bhupendra-dudhwal/go-flexkit/internal/core/ports"
"github.com/bhupendra-dudhwal/go-flexkit/internal/inbound/middleware"
"github.com/gin-gonic/gin"
)
type ginHandler struct {
engine *gin.Engine
middleware... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "bhupendra-dudhwal/go-flexkit",
"path": "internal/inbound/handler/gin_handler/gin.go",
"language": "Go",
"commit": "58f8080",
"domain": "go web API routing (Gin)",
"fit": "tool_use"
} |
// Package tasks provides the controller for managing user tasks.
package tasks
import (
"net/http"
models "github.com/kubex-ecosystem/gdbase/factory/models/mcp"
svc "github.com/kubex-ecosystem/gobe/internal/bridges/gdbasez"
gl "github.com/kubex-ecosystem/gobe/internal/module/logger"
"github.com/gin-gonic/gin"
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "kubex-ecosystem/gobe",
"path": "internal/app/controllers/mcp/tasks/tasks_controller.go",
"language": "Go",
"commit": "58c68ba",
"domain": "web-api task management controller",
"fit": "tool_use"
} |
package db
import (
"encoding/json"
"fmt"
"time"
"tutorial/model"
"tutorial/service/cache"
"tutorial/service/logger"
"tutorial/service/metrics"
"github.com/bradfitz/gomemcache/memcache"
"gorm.io/gorm"
)
func CreateMovie(movie *model.Movies) error {
start := time.Now()
result := DB.Create(movie)
duration ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "trungenglish/Tutorial-Backend-Go",
"path": "service/db/movies.service.go",
"language": "Go",
"commit": "2db97b3",
"domain": "backend-service/database-cache",
"fit": "tool_use"
} |
package cached
import (
"net/http"
"net/url"
"github.com/sonr-io/sonr/types/webauthn/metadata"
)
// Option describes an optional pattern for this provider.
type Option func(provider *Provider) (err error)
// NewFunc describes the type used to create the underlying provider.
type NewFunc func(mds *metadata.Metada... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sonr-io/snrd",
"path": "types/webauthn/metadata/providers/cached/options.go",
"language": "Go",
"commit": "7570d67",
"domain": "webauthn metadata provider configuration",
"fit": "tool_use"
} |
package transactions
import (
pkg_response "cashier-be/pkg/responses"
"fmt"
"net/http"
"strconv"
"github.com/labstack/echo/v4"
)
type TransactionHandler struct {
Service ITransactionService
}
// --- Create Transaction ---
func (h *TransactionHandler) Create(c echo.Context) error {
var req TransactionRequest
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "yamanmnur/cashier-be",
"path": "src/transactions/transaction_handler.go",
"language": "Go",
"commit": "4159587",
"domain": "golang_web_api_transactions",
"fit": "tool_use"
} |
package project
import (
"context"
"fmt"
"github.com/spf13/cobra"
"github.com/roboco-io/gh-project-cli/internal/api"
"github.com/roboco-io/gh-project-cli/internal/auth"
"github.com/roboco-io/gh-project-cli/internal/service"
)
// LinkOptions holds options for the link command
type LinkOptions struct {
Reposit... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "roboco-io/gh-project-cli",
"path": "internal/cmd/project/link.go",
"language": "Go",
"commit": "b574859",
"domain": "GitHub project CLI/API integration",
"fit": "tool_use"
} |
package repository
import (
"github.com/tersorasora/freelance/internal/entity"
"gorm.io/gorm"
)
type ServiceRepository interface {
CreateService(service *entity.Service) error
DeleteService(serviceID string) error
GetAllServices() ([]entity.Service, error)
GetMyServices(userID string) ([]entity.Service, error)... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "tersorasora/freelance-go-backend",
"path": "internal/repository/service_repository.go",
"language": "Go",
"commit": "16affb8",
"domain": "golang_gorm_repository",
"fit": "tool_use"
} |
package internal
import (
"context"
"errors"
"fmt"
"html"
"os"
"strconv"
"time"
"github.com/YaroslavalsoraY/gator/internal/config"
"github.com/YaroslavalsoraY/gator/internal/database"
"github.com/google/uuid"
)
type Command struct {
Name string
Args []string
}
type Commands struct {
Handlers map[string... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "YaroslavalsoraY/agregator",
"path": "internal/commands.go",
"language": "Go",
"commit": "6d283da",
"domain": "go_cli_rss_feed_aggregator",
"fit": "tool_use"
} |
package main
import (
"context"
"fmt"
"net/http"
"time"
"github.com/nkiryanov/gophermart/internal/db"
"github.com/nkiryanov/gophermart/internal/handlers"
"github.com/nkiryanov/gophermart/internal/logger"
"github.com/nkiryanov/gophermart/internal/repository/postgres"
"github.com/nkiryanov/gophermart/internal/... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "nkiryanov/gophermart",
"path": "cmd/gophermart/app.go",
"language": "Go",
"commit": "7afa5c8",
"domain": "golang web service orchestration",
"fit": "tool_use"
} |
package main
import (
"os"
"time"
"github.com/kballard/go-shellquote"
"github.com/spf13/cobra"
pb "github.com/cjey/ally/proto"
)
func init() {
var cmd = &cobra.Command{
Use: "wakeup",
Run: runWakeup,
Short: "Start all enabled apps",
Long: "Start all enabled apps",
PersistentPreRun: parseEnvCon... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "CJey/ally",
"path": "cmd/ally/cmd_wakeup.go",
"language": "Go",
"commit": "5c92c94",
"domain": "CLI app/process manager",
"fit": "tool_use"
} |
package puqController
import (
"github.com/gin-gonic/gin"
"message/app/model"
"message/config/database"
"strconv"
"time"
)
func CreatePuq(c *gin.Context) {
var request struct {
Title string `json:"title"`
Content []model.PuqContent `json:"content"`
}
if err := c.ShouldBindJSON(&request); err... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "cbluebird/message",
"path": "backend/app/controller/puq/puq.go",
"language": "Go",
"commit": "07d39a0",
"domain": "social_feed_backend_api",
"fit": "tool_use"
} |
package main
import (
"context"
"log"
"dagger/simplelogin-cli/internal/dagger"
"github.com/juli3nk/go-utils/filedir"
)
// Lint Golang files
func (m *SimpleloginCli) LintGolang(
ctx context.Context,
checkOnlyModifiedFiles bool,
) (string, error) {
opts := dagger.GoLintOpts{}
if checkOnlyModifiedFiles {
fi... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "juli3nk/simplelogin-cli",
"path": ".dagger/lint.go",
"language": "Go",
"commit": "57c3c0d",
"domain": "CI linting pipeline (Go/Dagger)",
"fit": "tool_use"
} |
package service
import (
"fmt"
"github.com/4Noyis/url-shortener/internal/encoding"
"github.com/4Noyis/url-shortener/internal/filter"
"github.com/4Noyis/url-shortener/internal/models"
"github.com/4Noyis/url-shortener/internal/storage"
)
type URLService struct {
repo *storage.URLRepository
bloomFilter *f... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "4Noyis/url-shortener",
"path": "internal/service/url_service.go",
"language": "Go",
"commit": "0e451ce",
"domain": "url-shortener service",
"fit": "tool_use"
} |
package url
import (
"context"
"url_shortener/internal/constant/errors"
"url_shortener/internal/constant/model/db"
"url_shortener/internal/constant/model/dto"
persistencedb "url_shortener/internal/constant/model/persistenceDB"
"url_shortener/internal/storage"
"url_shortener/platform/logger"
"github.com/joomco... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "NebilMuhe/URL_Shortner",
"path": "internal/storage/url/url.go",
"language": "Go",
"commit": "2e582f2",
"domain": "url-shortener persistence service",
"fit": "tool_use"
} |
package handlers
import (
"net/http"
"github.com/getfider/fider/app/models/cmd"
"github.com/getfider/fider/app/models/query"
"github.com/getfider/fider/app/pkg/bus"
"github.com/getfider/fider/app/pkg/web"
)
// GetAllNotifications will get all the notifications for the new modal
func GetAllNotifications() web.Ha... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "wrehman1/ecsproject",
"path": "fider-main/app/handlers/notification.go",
"language": "Go",
"commit": "557db46",
"domain": "web-backend notifications/CQRS",
"fit": "tool_use"
} |
package controllers
import (
"smi-case-management-api/helpers"
"smi-case-management-api/models/responses"
"smi-case-management-api/services"
"github.com/gofiber/fiber/v2"
)
type RoomTypeController interface {
GetRoomTypeList(ctx *fiber.Ctx) error
}
type RoomTypeControllerImpl struct {
RoomTypeService services... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "4lviant/CMW_Go",
"path": "smi-case-management-api/controllers/room_type_controller.go",
"language": "Go",
"commit": "a3c5573",
"domain": "golang-fiber-web-api",
"fit": "tool_use"
} |
package schema
import (
"time"
"entgo.io/contrib/entgql"
"entgo.io/ent"
"entgo.io/ent/schema"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
"github.com/GoLabra/labra/src/api/entgql/annotations"
"github.com/GoLabra/labra/src/api/entgql/entity"
"github.com/lucsky/cuid"
)
// User holds the schema defi... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "GoLabra/labra",
"path": "src/api/entgql/ent/schema/user.go",
"language": "Go",
"commit": "8281ec1",
"domain": "go-ent graphql schema",
"fit": "tool_use"
} |
package database
import (
"context"
"fmt"
"log"
"os"
"time"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/ngenohkevin/lms/internal/config"
"github.com/ngenohkevin/lms/internal/database/queries"
)
type Database struct {
Pool *pgxpool.Pool
Queries *queries.Queries
}
func New(cfg *config.Config) (*Databas... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "ngenohkevin/lms",
"path": "internal/database/connection.go",
"language": "Go",
"commit": "8f9be52",
"domain": "backend-database-connection",
"fit": "tool_use"
} |
package service
import (
"context"
"errors"
adminpkg "github.com/mikios34/delivery-backend/admin"
"github.com/mikios34/delivery-backend/entity"
)
// adminService implements AdminService.
type adminService struct {
repo adminpkg.AdminRepository
}
// NewAdminService constructs an AdminService backed by the provi... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "mikios34/delivery-backend",
"path": "admin/service/admin_service.go",
"language": "Go",
"commit": "7495691",
"domain": "backend user/admin service",
"fit": "tool_use"
} |
// Package database provides database connectivity, models, and tenant isolation
// for the Audimodal.ai platform. It includes comprehensive migration support,
// tenant-scoped operations, and compliance features.
package database
import (
"context"
"fmt"
"time"
"github.com/google/uuid"
"gorm.io/gorm"... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Tributary-ai-services/audimodal",
"path": "internal/database/database.go",
"language": "Go",
"commit": "f987393",
"domain": "multi-tenant database service (Go/GORM)",
"fit": "tool_use"
} |
package applicanthistoryhandler
import (
"hr-tools-backend/db"
applicanthistorystore "hr-tools-backend/lib/applicant-history/store"
applicantstore "hr-tools-backend/lib/applicant/store"
pushhandler "hr-tools-backend/lib/space/push/handler"
spaceusersstore "hr-tools-backend/lib/space/users/store"
vacancystore "hr... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "i-plc-rus/hr-tools-backend",
"path": "lib/applicant-history/handler.go",
"language": "Go",
"commit": "b0aa25d",
"domain": "HR applicant history service",
"fit": "tool_use"
} |
package repository
import (
"errors"
"skillshare-api/model"
"gorm.io/gorm"
)
type EnrollmentRepository struct {
db *gorm.DB
}
func NewEnrollmentRepository(db *gorm.DB) *EnrollmentRepository {
return &EnrollmentRepository{db: db}
}
// Create creates a new enrollment
func (r *EnrollmentRepository) Create(enroll... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "christia006/skillshare-api-",
"path": "skillshare-api/repository/enrollment_repository.go",
"language": "Go",
"commit": "fc43550",
"domain": "golang-gorm repository",
"fit": "tool_use"
} |
package service
import (
"context"
"fmt"
"forum1/internal/entity"
"forum1/internal/repository"
)
type UserService interface {
Register(ctx context.Context, username, email, password string) (int64, error)
GetProfile(ctx context.Context, id int64) (*entity.User, error)
Login(ctx context.Context, username, passw... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "GeorgeTolen/forum-main",
"path": "internal/service/user_service.go",
"language": "Go",
"commit": "93e4011",
"domain": "user service / auth",
"fit": "tool_use"
} |
package parser
import (
"fmt"
"strings"
"github.com/cayleygraph/quad"
"github.com/distninja/distninja/store"
)
// ParsedBuild represents a parsed build statement before it's stored
type ParsedBuild struct {
Rule string
Outputs []string
Inputs []string
ImplicitDeps []string
OrderDeps [... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "distninja/distninja",
"path": "parser/parser.go",
"language": "Go",
"commit": "6bfc24e",
"domain": "build-system parsing (Ninja)",
"fit": "tool_use"
} |
package handler
import (
"net/http"
"strconv"
"twitter-example/internal/followservice/service"
"twitter-example/internal/util/middleware"
"twitter-example/internal/util/xlog"
"github.com/gin-gonic/gin"
"github.com/sirupsen/logrus"
)
type FollowHandler struct {
followService service.FollowService
}
func NewF... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "leobrines/twitter-example",
"path": "internal/followservice/handler/follow.go",
"language": "Go",
"commit": "e413182",
"domain": "social-media follow service API",
"fit": "tool_use"
} |
package handlers
import (
"net/http"
"strconv"
"github.com/gin-gonic/gin"
"baca-komik-api/database"
"baca-komik-api/models"
"baca-komik-api/services"
"baca-komik-api/utils"
)
type BookmarkHandler struct {
bookmarkService *services.BookmarkService
}
func NewBookmarkHandler(db *database.DB) *BookmarkHandler {... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "gilangprtm/baca-komik",
"path": "go_app/handlers/bookmark_handler.go",
"language": "Go",
"commit": "63e938d",
"domain": "go_web_api_handlers",
"fit": "tool_use"
} |
package main
// Build timestamp: 2025-09-03 17:41:19
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
sdk "github.com/jameswlane/devex/packages/plugin-sdk"
)
var version = "dev" // Set by goreleaser
// MATEPlugin implements MATE desktop environment configuration
type MATEPlugin struct {
*sdk.... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "jameswlane/devex",
"path": "packages/desktop-mate/main.go",
"language": "Go",
"commit": "bcb4c7e",
"domain": "linux desktop configuration plugin",
"fit": "tool_use"
} |
package main
import (
"context"
"database/sql"
"fmt"
"strings"
"sync"
"time"
log "github.com/charmbracelet/log"
)
// Job represents a single unit of work: a procedure to be run for a specific SOL ID.
type Job struct {
SolID string
Proc string
}
// worker is a single goroutine that processes jobs from the ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "vasu-chaturvedi/gemini_extract",
"path": "worker.go",
"language": "Go",
"commit": "ed898bd",
"domain": "concurrent DB ETL worker",
"fit": "tool_use"
} |
package kite
import (
"context"
"encoding/binary"
"encoding/json"
"fmt"
"math"
"net/http"
"net/url"
"strings"
"time"
log "github.com/sirupsen/logrus"
"github.com/souvik131/kite-go-library/ws"
)
const HeartBeatIntervalInSeconds float64 = 20
const BufferSize int = 1000
func GetWebsocketClientForWeb(ctx *c... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "souvik131/kite-go-library",
"path": "kite/kite_ws.go",
"language": "Go",
"commit": "fc5c404",
"domain": "financial market data websocket client",
"fit": "tool_use"
} |
package tasks
import (
"context"
"fmt"
"goscan/pkg/clickhouse"
"goscan/pkg/config"
"goscan/pkg/logger"
"sync"
"go.uber.org/zap"
)
// ExecutorRegistry executor registry
type ExecutorRegistry struct {
executors map[string]ExecutorCreator
mu sync.RWMutex
}
// NewExecutorRegistry creates a new executor ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "easayliu/goscan",
"path": "pkg/tasks/sync_executor.go",
"language": "Go",
"commit": "9c206ee",
"domain": "data-sync orchestration (Go, ClickHouse)",
"fit": "tool_use"
} |
/*
* Copyright (c) 2024 Yunshan Networks
*
* 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 a... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "deepflowio/deepflow",
"path": "server/controller/recorder/updater/nat_vm_connection.go",
"language": "Go",
"commit": "4d0a48a",
"domain": "cloud resource sync/controller",
"fit": "tool_use"
} |
package keeper
import (
"strconv"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/RWAs-labs/muse/x/crosschain/types"
)
func EmitEventInboundFinalized(ctx sdk.Context, cctx *types.CrossChainTx) {
currentOutParam := cctx.GetCurrentOutboundParam()
err := ctx.EventManager().EmitTypedEvents(&types.EventInbound... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "RWAs-labs/muse",
"path": "x/crosschain/keeper/events.go",
"language": "Go",
"commit": "921db09",
"domain": "blockchain-cosmos-crosschain-events",
"fit": "tool_use"
} |
package main
import (
"context"
"encoding/json"
"log"
"net/http"
"sync"
"time"
"github.com/gorilla/mux"
"golang.org/x/time/rate"
)
// Gateway represents the API Gateway
type Gateway struct {
router *mux.Router
rateLimiter *rate.Limiter
services map[string]string
mu sync.RWMutex
}
// Ser... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "mrunaldev/visual-path-training",
"path": "demos/week6/day29/api-gateway/main.go",
"language": "Go",
"commit": "97f3125",
"domain": "go-api-gateway",
"fit": "tool_use"
} |
package server
import (
"embed"
"encoding/json"
"fmt"
"io"
"log"
"net/http"
"os"
"os/exec"
"runtime"
"time"
"pc_cloud/internal/webrtcx"
// "pc_cloud/internal/devices"
"github.com/gorilla/websocket"
)
//go:embed assets/*.html
var assets embed.FS
// TODO: add devices, something wrong with imports?
type ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "agnar92/pcloud",
"path": "server/internal/server/http.go",
"language": "Go",
"commit": "b13fc94",
"domain": "webrtc remote control server",
"fit": "tool_use"
} |
package management
import (
"context"
"fmt"
)
// TemplateManagerWrapper wraps DefaultTemplateManager to implement the TemplateManager interface
type TemplateManagerWrapper struct {
manager *DefaultTemplateManager
}
// NewTemplateManagerWrapper creates a new wrapper for DefaultTemplateManager
func NewTemplateManag... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "perplext/LLMrecon",
"path": "src/template/management/wrapper.go",
"language": "Go",
"commit": "527032d",
"domain": "template-management",
"fit": "tool_use"
} |
package http
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"log"
"net/http"
"strings"
)
// JSONError represents detailed information about JSON parsing failures
type JSONError struct {
Type string `json:"type"`
Message string `json:"message"`
Offset int64 `json:"offset,omitempty"`
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "danshank/haiper",
"path": "internal/adapters/http/json_debug.go",
"language": "Go",
"commit": "d9a503f",
"domain": "http_json_parsing_debugging",
"fit": "tool_use"
} |
package facilities
import (
"context"
"encoding/json"
"io"
"github.com/cnc-csku/cnc-killer-be-rebuild/config"
"github.com/cnc-csku/cnc-killer-be-rebuild/core/models"
"github.com/cnc-csku/cnc-killer-be-rebuild/core/repositories"
"github.com/google/uuid"
"golang.org/x/oauth2"
)
type GoogleAuthInstance struct {... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "cnc-csku/cnc-killer-be-rebuild",
"path": "internal/adapters/facilities/auth_facility.go",
"language": "Go",
"commit": "1085308",
"domain": "oauth-authentication",
"fit": "tool_use"
} |
package models
import (
"fmt"
"ginchat/utils"
"gorm.io/gorm"
)
// 人员关系
type Contact struct {
gorm.Model
OwnerId uint //谁的关系信息
TargetId uint //对应的谁
Type int //对应的类型 1 好友 2 群 3
Desc string
}
func (table *Contact) TableName() string {
return "contact"
}
func SearchFiend(userId uint) []UserBasic {
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "xiaojieweiyi/ginChat",
"path": "models/contact.go",
"language": "Go",
"commit": "1d8d078",
"domain": "chat social graph / contacts service",
"fit": "tool_use"
} |
package http
import (
"io"
"context"
"net/http"
messages "github.com/bd878/gallery/server/messages/pkg/model"
files "github.com/bd878/gallery/server/files/pkg/model"
)
type Controller interface {
SaveMessage(ctx context.Context, id int64, text, title string, fileIDs []int64, threadID int64, userID int64, priva... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "bd878/lesnotes",
"path": "server/messages/internal/handler/http/http.go",
"language": "Go",
"commit": "43ad504",
"domain": "messaging-service HTTP handler",
"fit": "tool_use"
} |
package main
import (
"chirpy/internal/database"
"encoding/json"
"net/http"
"strings"
"time"
"github.com/google/uuid"
)
type Chirp struct {
ID uuid.UUID `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Body string `json:"body"`
UserID uuid.UUID ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "nicholas-tankiang/chirpy",
"path": "chirps.go",
"language": "Go",
"commit": "b049e6f",
"domain": "go_rest_api_microblog",
"fit": "tool_use"
} |
package db
import (
"context"
"errors"
"gorm.io/gorm"
"github.com/act3-ai/go-common/pkg/logger"
)
// BaseType is the interface for the base DB model functionality
// Processor knows how to process it's type to conver the raw data to a DB model.
type Processor interface {
PrimaryTable() string
Process(con *go... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "act3-ai/data-telemetry",
"path": "internal/db/processor.go",
"language": "Go",
"commit": "8760574",
"domain": "database processing pipeline",
"fit": "tool_use"
} |
package repository
import (
"context"
"database/sql"
"fmt"
"strings"
"time"
"jointrip/internal/domain/user"
"github.com/google/uuid"
"github.com/lib/pq"
)
// UserRepository implements the user.Repository interface
type UserRepository struct {
db *sql.DB
}
// NewUserRepository creates a new user repository... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "fluty84/jointrip",
"path": "internal/infra/repository/user_repository.go",
"language": "Go",
"commit": "aca1609",
"domain": "golang_postgres_repository",
"fit": "tool_use"
} |
package controller
import (
"goroutine-worker-pool-api/model/dto"
"goroutine-worker-pool-api/usecase"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
)
type JobController struct {
jobUC usecase.JobUsecase
}
func (ctrl *JobController) CreateJobController(ctx *gin.Context) {
var request struct {
Payload stri... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "mhmmdrivaldhi/goroutine-worker-pool",
"path": "delivery/controller/job_controller.go",
"language": "Go",
"commit": "0baadb4",
"domain": "golang web API / job queue controller",
"fit": "tool_use"
} |
package apis
import (
"context"
"ctyun-go-sdk/core"
"net/http"
)
// CtvpcRenewEipApi
/* 续订 EIP
*/type CtvpcRenewEipApi struct {
template core.CtyunRequestTemplate
client *core.CtyunClient
}
func NewCtvpcRenewEipApi(client *core.CtyunClient) *CtvpcRenewEipApi {
return &CtvpcRenewEipApi{
client: client,
t... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "fatelei/ctyun-go",
"path": "apis/ctvpc_renew_eip_api.go",
"language": "Go",
"commit": "58ee671",
"domain": "cloud API client (EIP management)",
"fit": "tool_use"
} |
package controllers
import (
"net/http"
"time"
"github.com/shirou/gopsutil/v3/process"
"system-monitor/models"
)
func GetProcessInfo(w http.ResponseWriter, r *http.Request) {
data := GetProcessInfoData()
RespondJSON(w, JSONResponse{
Status: http.StatusOK,
Payload: data,
})
}
func GetProcessInfoData() mo... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "vryptt/task-go",
"path": "controllers/process_controller.go",
"language": "Go",
"commit": "a9535da",
"domain": "system monitoring API",
"fit": "tool_use"
} |
package services
import (
"fmt"
"event-ticketing-platform/internal/models"
"event-ticketing-platform/internal/repositories"
)
// EventModerationService handles event moderation operations
type EventModerationService struct {
eventRepo *repositories.EventRepository
auditService *AuditService
}
//... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "deniswarui10/runtown",
"path": "internal/services/event_moderation.go",
"language": "Go",
"commit": "3a0e80c",
"domain": "event moderation service (Go backend)",
"fit": "tool_use"
} |
package utils
import (
"encoding/json"
"fmt"
"log"
"path/filepath"
"os"
"strings"
_ "github.com/go-sql-driver/mysql"
"github.com/golang-jwt/jwt"
"github.com/sahilsnghai/golang/Project11/internal/types"
"github.com/valyala/fasthttp"
)
func GetConfig() (*types.Config, error) {
// basePath, err := filepath.... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sahilsnghai/golang",
"path": "Project11/internal/utils/utils.go",
"language": "Go",
"commit": "40628cb",
"domain": "go_web_api_utils",
"fit": "tool_use"
} |
// /ui/accounts.go
package ui
import (
"balance/app"
"balance/models"
"fmt"
"strconv"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/dialog"
"fyne.io/fyne/v2/widget"
)
func createAccountsTab(a *app.App) fyne.CanvasObject {
var accounts []models.Account
list := widget.NewList(
func() in... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Galayand/balancev2",
"path": "ui/acconts.go",
"language": "Go",
"commit": "c417b43",
"domain": "personal-finance GUI account management",
"fit": "tool_use"
} |
package commands
import (
"fmt"
"lenavire/internal/ledger/application/ports"
"lenavire/internal/ledger/domain/entities"
"lenavire/internal/ledger/domain/valuesobjects"
)
type AddExpenseCommand struct {
amount int
}
func NewAddExpenseCommand(amount int) AddExpenseCommand {
return AddExpenseCommand{
amount: am... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Lioruby/lenavire-go",
"path": "internal/ledger/application/commands/add_expense/add_expense.go",
"language": "Go",
"commit": "805bc14",
"domain": "ledger/finance command handler",
"fit": "tool_use"
} |
package like
import (
"likes-comments-service/internal/clients/kafka"
"likes-comments-service/internal/repositories/like"
"likes-comments-service/pkg/domain"
"time"
)
type LikeService interface {
Create(like domain.Like) (string, error)
GetByPostId(postId string) ([]domain.Like, error)
GetByUserId(userId strin... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "ogmoggers/likes-comments-service",
"path": "internal/services/like/service.go",
"language": "Go",
"commit": "4aa2901",
"domain": "social-media-like-service",
"fit": "tool_use"
} |
package store
import (
"context"
"errors"
"strings"
"time"
"github.com/jackc/pgx/v5"
"golang.org/x/crypto/bcrypt"
)
type User struct {
ID string
Email string
CreatedAt time.Time
}
// normEmail trims and lowercases the email (needed if DB col isnt citext)
func normEmail(s string) string { return ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "nashwu/realtime-docs",
"path": "backend/internal/store/users.go",
"language": "Go",
"commit": "b65d3a4",
"domain": "user-authentication-database-store",
"fit": "tool_use"
} |
package controller
import (
"backend-wido-wicaksono/domain"
"backend-wido-wicaksono/helper"
"fmt"
"net/http"
"github.com/gin-gonic/gin"
)
type AuthController struct {
AuthUsecase domain.AuthUsecase
}
func (tc *AuthController) Register(c *gin.Context) {
var requestBody domain.AuthRegisterRequest
if err := c.... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "widcha/backend-wido-wicaksono",
"path": "api/controller/auth_controller.go",
"language": "Go",
"commit": "c2f6dad",
"domain": "web-api-auth",
"fit": "tool_use"
} |
package controllers
import (
"SIAku/config"
"SIAku/models"
"SIAku/utils"
"net/http"
"github.com/gin-gonic/gin"
)
type NilaiController struct{}
func NewNilaiController() *NilaiController {
return &NilaiController{}
}
func (nc *NilaiController) GetMyNilai(c *gin.Context) {
userID, _ := c.Get("user_id")
semes... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "RasyaGtps/Full-Stack-SIAku",
"path": "backend/controllers/nilai_controller.go",
"language": "Go",
"commit": "5bd829c",
"domain": "education_academic_api",
"fit": "tool_use"
} |
package webrtc
import (
"log"
"sync"
"github.com/pion/webrtc/v3"
)
type WebRTCManager struct {
api *webrtc.API
mu sync.RWMutex
}
func NewWebRTCManager() *WebRTCManager {
// Configure WebRTC settings for low latency
mediaEngine := &webrtc.MediaEngine{}
if err := mediaEngine.RegisterDefaultCodecs(); err != n... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "shubhodeepMitra/LiveStreaming",
"path": "backend/internal/webrtc/webrtc.go",
"language": "Go",
"commit": "2f342ec",
"domain": "webrtc_streaming",
"fit": "tool_use"
} |
package middleware
import (
"log"
"sermo-be/internal/config"
"sermo-be/pkg/firebase"
"github.com/gofiber/fiber/v2"
)
const (
FirebaseClientKey = "firebase_client"
)
// FirebaseMiddleware Firebase 클라이언트를 컨텍스트에 주입하는 미들웨어
func FirebaseMiddleware(cfg *config.Config) fiber.Handler {
return func(c *fiber.Ctx) error... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "sermones/sermo-be",
"path": "internal/middleware/firebase_middleware.go",
"language": "Go",
"commit": "32153bb",
"domain": "web-api-middleware/firebase",
"fit": "tool_use"
} |
package auth_handlers
import (
"context"
"database/sql"
"encoding/json"
"fmt"
"math"
"net/http"
"os"
"slices"
"strings"
"time"
"github.com/golang-jwt/jwt/v5"
"github.com/google/uuid"
"github.com/redis/go-redis/v9"
"github.com/rs/zerolog/log"
)
func extractUserIdFromToken(tokenStr string) (uuid.UUID, er... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "skyaker/Halo",
"path": "backend/auth_service/internal/handlers/middlewares.go",
"language": "Go",
"commit": "b4ed988",
"domain": "web-authentication-middleware",
"fit": "tool_use"
} |
package storage
import (
"encoding/hex"
"fmt"
"io"
"net/http"
"github.com/zeebo/blake3"
"audio2text/pkg/utils"
)
// HashUtils provides utilities for file hashing
type HashUtils struct{}
// NewHashUtils creates a new HashUtils instance
func NewHashUtils() *HashUtils {
return &HashUtils{}
}
// HashRemoteFile... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "irregulator/audio2text",
"path": "pkg/storage/hash.go",
"language": "Go",
"commit": "ccc8f85",
"domain": "file hashing utilities",
"fit": "tool_use"
} |
package bigquery
import (
"context"
"fmt"
"reflect"
"strings"
"time"
"cloud.google.com/go/bigquery"
"go.opentelemetry.io/collector/config/configretry"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/exporterhelper"
"go.opentelemetry.io/collector/pdata/ptrace"
)
/*
Do not ex... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "msyvr/otelex",
"path": "internal/spattex/bigquery/bigquery_exporter.go",
"language": "Go",
"commit": "231572f",
"domain": "observability-bigquery-exporter",
"fit": "tool_use"
} |
// Package weather provides functionality to collect weather data and send sunrise/sunset events.
package weather
import (
"context"
"fmt"
"log/slog"
"net/http"
"time"
"github.com/grafana/dskit/services"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
"go.opentelemetry.io/otel"
"go.opentele... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "zachfi/iotcontroller",
"path": "modules/weather/weather.go",
"language": "Go",
"commit": "d5540d3",
"domain": "IoT weather event service",
"fit": "tool_use"
} |
// Copyright 2022 Matrix Origin
//
// 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 ... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "matrixorigin/matrixone",
"path": "pkg/iscp/consumer_entry.go",
"language": "Go",
"commit": "b8c8af9",
"domain": "cdc job state management",
"fit": "tool_use"
} |
package tools
import (
"encoding/json"
"fmt"
"os"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/Exmplr-AI/aphelion-cli/internal/utils"
"github.com/Exmplr-AI/aphelion-cli/pkg/api"
)
var (
dryRun bool
params string
)
type ToolExecutionRequest struct {
Parameters map[string]interface{} `json... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "Exmplr-AI/aphelion-cli",
"path": "cmd/tools/try.go",
"language": "Go",
"commit": "f78ff68",
"domain": "CLI tool execution client",
"fit": "tool_use"
} |
package handlers
import (
"bytes"
"crypto/sha1"
"fmt"
"image"
"image/gif"
"image/jpeg"
"image/png"
"log"
"net/http"
"net/url"
"os"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/chai2010/webp"
"github.com/disintegration/imaging"
)
func ResizeHandler(w http.ResponseWriter, r *http.Request) {
... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "zhitoo/imagizer",
"path": "src/api/handlers/resize_handler.go",
"language": "Go",
"commit": "722c601",
"domain": "image-processing web API",
"fit": "tool_use"
} |
package payments
import (
"errors"
"fmt"
"github.com/bicosteve/booking-system/entities"
"github.com/bicosteve/booking-system/pkg/utils"
"github.com/stripe/stripe-go/v72"
"github.com/stripe/stripe-go/v72/paymentintent"
)
type PaymentClient interface {
CreatePayment(amount float64, userId, orderId int) (*stripe... | {
"source": "nvidia/Nemotron-Pretraining-Code-v3",
"repo": "bicosteve/booking-system",
"path": "pkg/payments/example.go",
"language": "Go",
"commit": "4860a42",
"domain": "payments/stripe_integration",
"fit": "tool_use"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.