Dataset Viewer
Auto-converted to Parquet Duplicate
code
stringlengths
10
1.34M
language
stringclasses
1 value
// A basic package to decode Wave files. package audio import ( "rog-go.googlecode.com/hg/exp/abc" "os" "fmt" "io" "encoding/binary" "reflect" "strings" ) func init() { Register("readwav", wInput, map[string]abc.Socket { "out": abc.Socket{SamplesT, abc.Male}, "1": abc.Socket{abc.StringT, abc.Female}, ...
Go
/* Go program to decode an audio stream of Morse code into a stream of ASCII. See the ALGORITHM file for a description of what's going on, and 'proof.hs' as the original proof-of-concept implementation of this algorithm in Haskell. */ package main import ( "fmt" "math" "rand" "sort" ) type token int ...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2011 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2011 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2012 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // http://code.google.com/p/goprotobuf/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // m...
Go
End of preview. Expand in Data Studio

Go-Code-Large

Go-Code-Large is a large-scale corpus of Go (Golang) programming language source code, comprising 316,427 code samples stored in .jsonl format. The dataset is designed to support research and development in large language model (LLM) pretraining, static analysis, cloud-native systems, and modern backend software engineering.

By offering a focused and curated dataset for Go, this corpus enables experimentation in concurrent programming, distributed systems, and performance-oriented backend services—domains where Go is widely adopted.

Go-Code-Large addresses the relative scarcity of large, language-specific datasets for Go, enabling targeted research into idiomatic Go patterns, concurrency primitives, and scalable system design.

1. Dataset Composition

Programming Language

Go (Golang)

Total Size

316,427 code samples

File Format

.jsonl (JSON Lines)

2. Content Overview

The dataset captures a broad range of Go programming constructs, from core syntax to advanced concurrency and systems-level patterns.

2.1 Core Language Features

  • Functions and method declarations
  • Interfaces and type implementations
  • Struct definitions and composition
  • Package imports and module usage
  • Constants and variables (const, var)
  • Error handling patterns (error interface)
  • Type assertions and type switches

2.2 Concurrency and Parallelism

  • Goroutines (go keyword)

  • Channels (buffered and unbuffered)

  • Select statements

  • Synchronization primitives:

    • Mutexes (sync.Mutex, sync.RWMutex)
    • Wait groups (sync.WaitGroup)
    • Atomic operations
  • Worker pools and pipeline patterns

  • Context-based cancellation (context.Context)

2.3 Software Design Patterns

  • Modular package design
  • Dependency injection patterns
  • Interface-driven development
  • Middleware patterns (HTTP servers)
  • Logging and configuration handling
  • Error propagation and wrapping

2.4 Memory and Performance

  • Garbage-collected memory model
  • Allocation patterns and optimization
  • Slice and map internals
  • Pointer usage and escape analysis patterns
  • Efficient I/O handling (bufio, io.Reader, io.Writer)

2.5 Data Structures and Algorithms

  • Arrays, slices, and maps
  • Custom data structures
  • Trees and graph representations
  • Queues and stacks
  • Hash-based structures
  • Sorting and searching algorithms

3. Intended Research Applications


3.1 Fine-Tuning and Adaptation

  • Code completion systems for Go
  • Intelligent IDE assistants
  • Automated refactoring tools
  • Conversational coding agents
  • Backend service generation models

3.2 Code Intelligence Tasks

  • Code summarization
  • Code-to-text generation
  • Documentation generation
  • Bug detection (e.g., race conditions, nil pointer dereference)
  • Security vulnerability detection
  • Clone detection
  • Code similarity analysis
  • Dead code detection
  • Complexity estimation
  • Concurrency pattern analysis

4. Key Advantages

  • Language-specific: Focused purely on Go (no cross-language noise)
  • Concurrency-rich: Includes real-world usage of goroutines and channels
  • Modern ecosystem: Reflects cloud-native and backend engineering practices
  • Research-ready: Suitable for ML pipelines, static analysis, and tooling
  • Balanced scale: Large enough for meaningful training while manageable for experimentation

Thanks to open source community for all the guidance & support!!

Downloads last month
30