Datasets:
sample_id stringlengths 32 32 | repository_id stringlengths 17 69 | revision stringlengths 40 40 | license stringclasses 7
values | relative_path stringlengths 4 103 | project stringlengths 1 69 | is_test bool 2
classes | source_sha256 stringlengths 64 64 | caret_utf16_offset int32 0 325k | caret_line_zero_based int32 0 10.1k | caret_column_utf16_zero_based int32 0 230 | caret_byte_offset int64 0 325k | target_end_utf16_offset int32 9 325k | target_end_byte_offset int64 9 325k | line_start_utf16_offset int32 0 325k | line_end_utf16_offset int32 9 325k | caret_kind stringclasses 12
values | caret_subkind stringclasses 114
values | tags listlengths 0 6 | left_context_start_utf16_offset int32 0 319k | left_context_truncated bool 2
classes | left_context stringlengths 0 6k | target_text stringlengths 1 200 | right_context stringlengths 0 1k | right_context_end_utf16_offset int32 12 326k | right_context_truncated bool 2
classes | end_of_line stringclasses 3
values | indentation stringclasses 78
values | quality_flags listlengths 0 3 | split_group stringlengths 10 62 | semantic_status stringclasses 4
values | semantic_reason stringclasses 179
values | config_version stringclasses 1
value | generator stringclasses 1
value | language stringclasses 1
value | package_name stringlengths 1 29 | caret_column_byte_zero_based int32 0 368 | line_start_byte_offset int64 0 325k | line_end_byte_offset int64 9 325k | left_context_start_byte_offset int64 0 319k | right_context_end_byte_offset int64 12 326k | build_constraint stringclasses 180
values | build_match bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6be9a5b6c2d8a999945e3ad2eaa78651 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 0 | 0 | 0 | 0 | 14 | 14 | 0 | 14 | line_start | continuation | [] | 0 | false | package config |
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configP... | 848 | false | LF | [] | grp_004ongoro-gitaid | syntax_fallback | no_package_clause | go-bulk/1 | goflc/0.1.0 | go | config | 0 | 0 | 14 | 0 | 848 | null | true | ||
8878f4767acfd991e2e2aa87a6dd27e2 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 16 | 2 | 0 | 16 | 24 | 24 | 16 | 24 | line_start | import_decl | [] | 0 | false | package config
| import ( |
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := fil... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 0 | 16 | 24 | 0 | 848 | null | true | |
addcd675cd8c878596cfaea3c17cd909 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 50 | 5 | 1 | 50 | 54 | 54 | 49 | 54 | line_start | import_spec | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
| "os" |
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "g... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 49 | 54 | 0 | 848 | null | true | |
9565834373bf4eeef55930c5593a650c | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 56 | 6 | 1 | 56 | 71 | 71 | 55 | 71 | line_start | import_spec | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
| "path/filepath" |
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.j... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 55 | 71 | 0 | 848 | null | true | |
dafab345d10c48b70c0ac18ab0d9ccef | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 75 | 9 | 0 | 75 | 95 | 95 | 75 | 95 | line_start | type_decl | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
| type Config struct { |
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 0 | 75 | 95 | 0 | 848 | null | true | |
84a1c66d24811d6c4fccae260d3d2aa8 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 97 | 10 | 1 | 97 | 133 | 133 | 96 | 133 | line_start | field | [
"struct_type"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
| GeminiKey string `json:"gemini_key"` |
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
i... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 96 | 133 | 0 | 848 | null | true | |
ff99c43e3f5f9dac09744a17467a88d5 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 135 | 11 | 1 | 135 | 166 | 166 | 134 | 166 | line_start | field | [
"struct_type"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
| Model string `json:"model"` |
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return ... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 134 | 166 | 0 | 848 | null | true | |
57d1b77e89a8450181d677c708144459 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 170 | 14 | 0 | 170 | 206 | 206 | 170 | 206 | line_start | func_decl | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
| func LoadConfig() (*Config, error) { |
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found a... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 0 | 170 | 206 | 0 | 848 | null | true | |
3aa168c45977a759c64a86f17e2e78e0 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 186 | 14 | 16 | 186 | 206 | 206 | 170 | 206 | argument_list | params_open | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig( | ) (*Config, error) { |
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found a... | 848 | false | LF | [
"target_starts_with_closer"
] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 16 | 170 | 206 | 0 | 848 | null | true | |
a7029e8aa6339dec9d5f35a339a4b182 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 208 | 15 | 1 | 208 | 237 | 237 | 207 | 237 | line_start | short_var_decl | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
| home, err := os.UserHomeDir() |
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with you... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 207 | 237 | 0 | 848 | null | true | |
b6cb1950954744e3ba004b9da20275ff | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 224 | 15 | 17 | 224 | 237 | 237 | 207 | 237 | member_access | package | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os. | UserHomeDir() |
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with you... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 17 | 207 | 237 | 0 | 848 | null | true | |
c614a157ad7331150ae69cc753568465 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 239 | 16 | 1 | 239 | 254 | 254 | 238 | 254 | error_handling | if_err_check | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
| if err != nil { |
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", co... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 238 | 254 | 0 | 848 | null | true | |
4b73584272f802246ab430a0b1f3f16e | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 242 | 16 | 4 | 242 | 254 | 254 | 238 | 254 | error_handling | if_err_cond | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if | err != nil { |
return nil, fmt.Errorf("could not find home directory: %v", err)
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", co... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 4 | 238 | 254 | 0 | 848 | null | true | |
c74c280304390b72b5f000010496ad6a | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 265 | 17 | 10 | 265 | 321 | 321 | 255 | 321 | identifier_partial | null | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return n | il, fmt.Errorf("could not find home directory: %v", err) |
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Co... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 10 | 255 | 321 | 0 | 848 | null | true | |
f25555722ad84179c5a9e995d35cedce | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 317 | 17 | 62 | 317 | 321 | 321 | 255 | 321 | argument_list | call_next | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", | err) |
}
configPath := filepath.Join(home, ".config", "gitaid", "config.json")
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Co... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 62 | 255 | 321 | 0 | 848 | null | true | |
463e5fb7ad7792eeaf313c2defc811c8 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 350 | 20 | 24 | 350 | 396 | 396 | 326 | 396 | member_access | package | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | Join(home, ".config", "gitaid", "config.json") |
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return n... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 24 | 326 | 396 | 0 | 848 | null | true | |
404bf1f2391b8e4f90694fc54dd75a98 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 358 | 20 | 32 | 358 | 396 | 396 | 326 | 396 | identifier_partial | null | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | e, ".config", "gitaid", "config.json") |
file, err := os.Open(configPath)
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return n... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 32 | 326 | 396 | 0 | 848 | null | true | |
92bdd48ad1a3b3328a500e4ebe101db3 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 400 | 22 | 1 | 400 | 432 | 432 | 399 | 432 | line_start | short_var_decl | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | file, err := os.Open(configPath) |
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse conf... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 399 | 432 | 0 | 848 | null | true | |
317008b2de10b466e10546afd5b0354a | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 413 | 22 | 14 | 413 | 432 | 432 | 399 | 432 | after_operator | := | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | os.Open(configPath) |
if err != nil {
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse conf... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 14 | 399 | 432 | 0 | 848 | null | true | |
4cceed066c7510c200a13e484a1e4661 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 444 | 23 | 11 | 444 | 449 | 449 | 433 | 449 | after_operator | != | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | nil { |
if os.IsNotExist(err) {
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 11 | 433 | 449 | 0 | 848 | null | true | |
14fb320738e3061bfacd71ee6fa99b00 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 452 | 24 | 2 | 452 | 475 | 475 | 450 | 475 | error_handling | err_body_if | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | if os.IsNotExist(err) { |
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
c... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 2 | 450 | 475 | 0 | 848 | null | true | |
10d9633b4414133fff1cfd2b3994b122 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 455 | 24 | 5 | 455 | 475 | 475 | 450 | 475 | control_flow | if | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | os.IsNotExist(err) { |
return nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath)
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
c... | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 5 | 450 | 475 | 0 | 848 | null | true | |
c83574d9e61ac5de41f5dcbb3d191c48 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 486 | 25 | 10 | 486 | 583 | 583 | 476 | 583 | error_handling | err_return | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | nil, fmt.Errorf("config file not found at %s. Please create it with your gemini_key", configPath) |
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 10 | 476 | 583 | 0 | 848 | null | true | |
e0b69a69da5fcab7195414111725153e | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 571 | 25 | 95 | 571 | 583 | 583 | 476 | 583 | token_boundary | null | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | configPath) |
}
return nil, err
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [
"target_starts_with_whitespace"
] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 95 | 476 | 583 | 0 | 848 | null | true | |
a63938f7b5070b9c8f98a6c3b63ceeb4 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 597 | 27 | 9 | 597 | 605 | 605 | 588 | 605 | error_handling | err_return | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | nil, err |
}
defer file.Close()
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 9 | 588 | 605 | 0 | 848 | null | true | |
c8cc1c8849add4d5004049421ed2ed5c | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 610 | 29 | 1 | 610 | 628 | 628 | 609 | 628 | line_start | defer | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | defer file.Close() |
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 609 | 628 | 0 | 848 | null | true | |
64f76a6ebfe7d0354b9736acc38198c0 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 623 | 29 | 14 | 623 | 628 | 628 | 609 | 628 | identifier_partial | null | [
"defer"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | ose() |
var cfg Config
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 14 | 609 | 628 | 0 | 848 | null | true | |
a017c62636b7941b3e7cff74a1583da7 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 631 | 31 | 1 | 631 | 645 | 645 | 630 | 645 | line_start | local_decl | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | var cfg Config |
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 1 | 630 | 645 | 0 | 848 | null | true | |
cadf60d5742cf202f6473501682b2207 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 657 | 32 | 11 | 657 | 705 | 705 | 646 | 705 | after_operator | := | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | json.NewDecoder(file).Decode(&cfg); err != nil { |
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 11 | 646 | 705 | 0 | 848 | null | true | |
0f68a0732bc2cb7ed12d8312defaf917 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 662 | 32 | 16 | 662 | 705 | 705 | 646 | 705 | member_access | package | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | NewDecoder(file).Decode(&cfg); err != nil { |
return nil, fmt.Errorf("failed to parse config: %v", err)
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 16 | 646 | 705 | 0 | 848 | null | true | |
674a7718e9cdce7d3d78376ca28d6ea5 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 715 | 33 | 9 | 715 | 765 | 765 | 706 | 765 | error_handling | err_return | [
"error_handling"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | nil, fmt.Errorf("failed to parse config: %v", err) |
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 9 | 706 | 765 | 0 | 848 | null | true | |
3756525b8c90c572b0a6eb6775a99ab5 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 731 | 33 | 25 | 731 | 765 | 765 | 706 | 765 | log_message | template_start | [
"error_handling",
"log_call"
] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | "failed to parse config: %v", err) |
}
if cfg.Model == "" {
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 25 | 706 | 765 | 0 | 848 | null | true | |
9f59444402993f1f38aca00a95106d00 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 774 | 36 | 4 | 774 | 791 | 791 | 770 | 791 | control_flow | if | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | cfg.Model == "" { |
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 4 | 770 | 791 | 0 | 848 | null | true | |
8b21b4fc5d7ad257aa1c44af7ceb692a | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 778 | 36 | 8 | 778 | 791 | 791 | 770 | 791 | member_access | value | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | Model == "" { |
cfg.Model = "gemini-1.5-flash"
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 8 | 770 | 791 | 0 | 848 | null | true | |
67575979df2ff60cbfae67f7b3d8e2d2 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 794 | 37 | 2 | 794 | 824 | 824 | 792 | 824 | line_start | assignment | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | cfg.Model = "gemini-1.5-flash" |
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 2 | 792 | 824 | 0 | 848 | null | true | |
8fa4671f1280f5204c4809a8a42cedca | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 798 | 37 | 6 | 798 | 824 | 824 | 792 | 824 | member_access | value | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | Model = "gemini-1.5-flash" |
}
return &cfg, nil
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 6 | 792 | 824 | 0 | 848 | null | true | |
45cb5691473c0e8f4d7d43b509a0f6d6 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/config/config.go | internal/config | false | d6f7250bbad45b0ce763611379d50969cbc982fd72d878699c8ef5d6a997d542 | 837 | 40 | 8 | 837 | 846 | 846 | 829 | 846 | after_keyword | return | [] | 0 | false | package config
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
)
type Config struct {
GeminiKey string `json:"gemini_key"`
Model string `json:"model"`
}
func LoadConfig() (*Config, error) {
home, err := os.UserHomeDir()
if err != nil {
return nil, fmt.Errorf("could not find home directory: %v", err... | &cfg, nil |
} | 848 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | config | 8 | 829 | 846 | 0 | 848 | null | true | |
9020c95a215c5d843885455f9315a31d | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 0 | 0 | 0 | 0 | 11 | 11 | 0 | 11 | line_start | continuation | [] | 0 | false | package git |
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--ca... | 606 | false | LF | [] | grp_004ongoro-gitaid | syntax_fallback | no_package_clause | go-bulk/1 | goflc/0.1.0 | go | git | 0 | 0 | 11 | 0 | 606 | null | true | ||
6d0959149a1966da58ec30c960c0a693 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 23 | 3 | 1 | 23 | 28 | 28 | 22 | 28 | line_start | import_spec | [] | 0 | false | package git
import (
| "fmt" |
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err ... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 1 | 22 | 28 | 0 | 606 | null | true | |
fe230a9d22b83465cdd60faafb1964d8 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 30 | 4 | 1 | 30 | 39 | 39 | 29 | 39 | line_start | import_spec | [] | 0 | false | package git
import (
"fmt"
| "os/exec" |
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Outp... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 1 | 29 | 39 | 0 | 606 | null | true | |
2387ead00541ac9cc0e7f3b01f7a8ca8 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 41 | 5 | 1 | 41 | 50 | 50 | 40 | 50 | line_start | import_spec | [] | 0 | false | package git
import (
"fmt"
"os/exec"
| "strings" |
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Output()
if er... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 1 | 40 | 50 | 0 | 606 | null | true | |
21e21fee3a7221661363724d11840d21 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 59 | 8 | 5 | 59 | 92 | 92 | 54 | 92 | after_keyword | func | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func | GetStagedDiff() (string, error) { |
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 5 | 54 | 92 | 0 | 606 | null | true | |
6a97c75ad312951af3ef127dddde4dd3 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 80 | 8 | 26 | 80 | 92 | 92 | 54 | 92 | identifier_partial | null | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (stri | ng, error) { |
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 26 | 54 | 92 | 0 | 606 | null | true | |
ab41201cb2d58119f7df967bf57398eb | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 131 | 10 | 11 | 131 | 197 | 197 | 120 | 197 | after_operator | := | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := | exec.Command("git", "rev-parse", "--is-inside-work-tree").Output() |
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 11 | 120 | 197 | 0 | 606 | null | true | |
97f3b1d223d043468362266036d84daa | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 164 | 10 | 44 | 164 | 197 | 197 | 120 | 197 | argument_list | call_next | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", | "--is-inside-work-tree").Output() |
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 44 | 120 | 197 | 0 | 606 | null | true | |
f801e7aff2a2e9070753fbca7891a4c7 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 231 | 12 | 16 | 231 | 262 | 262 | 215 | 262 | token_boundary | null | [
"error_handling"
] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt | .Errorf("not a git repository") |
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 16 | 215 | 262 | 0 | 606 | null | true | |
9f9ab64148f3ff8c867675c6ef4349ed | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 235 | 12 | 20 | 235 | 262 | 262 | 215 | 262 | identifier_partial | null | [
"error_handling"
] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Err | orf("not a git repository") |
}
// Get staged changes
cmd := exec.Command("git", "diff", "--cached")
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
... | 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 20 | 215 | 262 | 0 | 606 | null | true | |
fa50ca3861df2ad397864e7085022643 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 303 | 16 | 13 | 303 | 337 | 337 | 290 | 337 | member_access | package | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec. | Command("git", "diff", "--cached") |
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 13 | 290 | 337 | 0 | 606 | null | true | |
6ab6d243a86c9d31b8ce465881de1372 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 318 | 16 | 28 | 318 | 337 | 337 | 290 | 337 | argument_list | call_next | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", | "diff", "--cached") |
out, err := cmd.Output()
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 28 | 290 | 337 | 0 | 606 | null | true | |
0af8bac29cd1c82a7a69db42510e631a | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 339 | 17 | 1 | 339 | 363 | 363 | 338 | 363 | line_start | short_var_decl | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | out, err := cmd.Output() |
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 1 | 338 | 363 | 0 | 606 | null | true | |
913467d3393f6f9db107379a2c5d6578 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 355 | 17 | 17 | 355 | 363 | 363 | 338 | 363 | member_access | value | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | Output() |
if err != nil {
return "", fmt.Errorf("failed to get git diff: %v", err)
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 17 | 338 | 363 | 0 | 606 | null | true | |
fffe1a69cd24313342f5a8b35836b2d1 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 398 | 19 | 17 | 398 | 439 | 439 | 381 | 439 | member_access | package | [
"error_handling"
] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | Errorf("failed to get git diff: %v", err) |
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 17 | 381 | 439 | 0 | 606 | null | true | |
ea94b53236dfa0ffc618644bb703e45a | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 405 | 19 | 24 | 405 | 439 | 439 | 381 | 439 | log_message | template_start | [
"error_handling",
"log_call"
] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | "failed to get git diff: %v", err) |
}
diff := string(out)
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 24 | 381 | 439 | 0 | 606 | null | true | |
6360f228ab2878d3d476a340f463e8b5 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 445 | 22 | 1 | 445 | 464 | 464 | 444 | 464 | line_start | short_var_decl | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | diff := string(out) |
if strings.TrimSpace(diff) == "" {
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 1 | 444 | 464 | 0 | 606 | null | true | |
cc3a7cc047ff92a084d50f4532bd583e | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 477 | 23 | 12 | 477 | 500 | 500 | 465 | 500 | member_access | package | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | TrimSpace(diff) == "" { |
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 12 | 465 | 500 | 0 | 606 | null | true | |
e7c8817737df45c690925cafb9679b9c | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 496 | 23 | 31 | 496 | 500 | 500 | 465 | 500 | after_operator | == | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | "" { |
return "", fmt.Errorf("no staged changes found. Use 'git add' to stage files")
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 31 | 465 | 500 | 0 | 606 | null | true | |
c9dc36a665c38960057f977f2a62cac5 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 510 | 24 | 9 | 510 | 581 | 581 | 501 | 581 | after_keyword | return | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | "", fmt.Errorf("no staged changes found. Use 'git add' to stage files") |
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 9 | 501 | 581 | 0 | 606 | null | true | |
348c857973f1a99002f662e63553ff6b | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 526 | 24 | 25 | 526 | 581 | 581 | 501 | 581 | log_message | template_body | [
"log_call"
] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | no staged changes found. Use 'git add' to stage files") |
}
return diff, nil
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 25 | 501 | 581 | 0 | 606 | null | true | |
9ab134b5a9e65d01d780ffc4a2142ac4 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | internal/git/git.go | internal/git | false | 1531e4363e5087a63f8210851e48603b87a84820f162b008ec40df60efb206a8 | 594 | 27 | 8 | 594 | 603 | 603 | 586 | 603 | after_keyword | return | [] | 0 | false | package git
import (
"fmt"
"os/exec"
"strings"
)
func GetStagedDiff() (string, error) {
// Check if in a git repo
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
if err != nil {
return "", fmt.Errorf("not a git repository")
}
// Get staged changes
cmd := exec.Command("git", "d... | diff, nil |
}
| 606 | false | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | git | 8 | 586 | 603 | 0 | 606 | null | true | |
c34032bc146853f756138b7ffa769b79 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 0 | 0 | 0 | 0 | 12 | 12 | 0 | 12 | line_start | continuation | [] | 0 | false | package main |
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit message followin... | 1,012 | true | LF | [] | grp_004ongoro-gitaid | syntax_fallback | no_package_clause | go-bulk/1 | goflc/0.1.0 | go | main | 0 | 0 | 12 | 0 | 1,012 | null | true | ||
d9140fa5a5084ee04e1193c57222d36a | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 33 | 4 | 1 | 33 | 42 | 42 | 32 | 42 | line_start | import_spec | [] | 0 | false | package main
import (
"bufio"
| "context" |
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit message following the Conventional Commits spe... | 1,042 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 1 | 32 | 42 | 0 | 1,042 | null | true | |
2b2afd1c331fe8c22274a088eaf4d631 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 87 | 11 | 1 | 87 | 132 | 132 | 86 | 132 | line_start | import_spec | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
| "github.com/004Ongoro/gitaid/internal/config" |
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit message following the Conventional Commits specification.
Format:
<type>(<scope>): <subject>
[optional body]
[optional footer(s)]
Typ... | 1,132 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 1 | 86 | 132 | 0 | 1,132 | null | true | |
b07231fa6c906c8d8790f0568c5651a9 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 134 | 12 | 1 | 134 | 176 | 176 | 133 | 176 | line_start | import_spec | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
| "github.com/004Ongoro/gitaid/internal/git" |
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit message following the Conventional Commits specification.
Format:
<type>(<scope>): <subject>
[optional body]
[optional footer(s)]
Types: feat, fix, docs, style, refactor, perf, ... | 1,176 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 1 | 133 | 176 | 0 | 1,176 | null | true | |
7e67ab3bfbb984bf4bd30177a33ca06e | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 178 | 13 | 1 | 178 | 203 | 203 | 177 | 203 | line_start | import_spec | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
| "google.golang.org/genai" |
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit message following the Conventional Commits specification.
Format:
<type>(<scope>): <subject>
[optional body]
[optional footer(s)]
Types: feat, fix, docs, style, refactor, perf, test, chore.
Do not use emo... | 1,203 | true | LF | [] | grp_004ongoro-gitaid | resolved | null | go-bulk/1 | goflc/0.1.0 | go | main | 1 | 177 | 203 | 0 | 1,203 | null | true | |
b8801c4c9a705023366edd3724b88202 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 644 | 29 | 0 | 644 | 657 | 657 | 644 | 657 | line_start | func_decl | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | func main() { |
cfg, err := config.LoadConfig()
if err != nil {
log.Fatalf("Configuration error: %v", err)
}
diff, err := git.GetStagedDiff()
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil... | 1,657 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 0 | 644 | 657 | 0 | 1,657 | null | true | |
3a2bb1be84aa9b742defb4b3f78a75a0 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 654 | 29 | 10 | 654 | 657 | 657 | 644 | 657 | argument_list | params_open | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | ) { |
cfg, err := config.LoadConfig()
if err != nil {
log.Fatalf("Configuration error: %v", err)
}
diff, err := git.GetStagedDiff()
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil... | 1,657 | true | LF | [
"target_starts_with_closer"
] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 10 | 644 | 657 | 0 | 1,657 | null | true | |
854932c8ce25c39645976c1a37e7f7cc | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 663 | 30 | 5 | 663 | 690 | 690 | 658 | 690 | token_boundary | null | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | err := config.LoadConfig() |
if err != nil {
log.Fatalf("Configuration error: %v", err)
}
diff, err := git.GetStagedDiff()
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create... | 1,690 | true | LF | [
"target_starts_with_whitespace"
] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 5 | 658 | 690 | 0 | 1,690 | null | true | |
7aa871305642488f8e913deba0777f24 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 678 | 30 | 20 | 678 | 690 | 690 | 658 | 690 | member_access | package | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | LoadConfig() |
if err != nil {
log.Fatalf("Configuration error: %v", err)
}
diff, err := git.GetStagedDiff()
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create... | 1,690 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 20 | 658 | 690 | 0 | 1,690 | null | true | |
65493475540e1a20180442028dc90f68 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 722 | 32 | 14 | 722 | 752 | 752 | 708 | 752 | log_message | template_body | [
"error_handling",
"log_call"
] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | Configuration error: %v", err) |
}
diff, err := git.GetStagedDiff()
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cf... | 1,752 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 14 | 708 | 752 | 0 | 1,752 | null | true | |
c0ff27f46984b1c5bd68690ba3367911 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 748 | 32 | 40 | 748 | 752 | 752 | 708 | 752 | argument_list | call_next | [
"error_handling"
] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | err) |
}
diff, err := git.GetStagedDiff()
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cf... | 1,752 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 40 | 708 | 752 | 0 | 1,752 | null | true | |
be0eaa6aff298c20881452f8ee982dd2 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 760 | 35 | 3 | 760 | 790 | 790 | 757 | 790 | identifier_partial | null | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | ff, err := git.GetStagedDiff() |
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx c... | 1,790 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 3 | 757 | 790 | 0 | 1,790 | null | true | |
6732152c3f161cd0e814ecd71a06cfb2 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 775 | 35 | 18 | 775 | 790 | 790 | 757 | 790 | member_access | package | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | GetStagedDiff() |
if err != nil {
log.Fatalf("Git error: %v", err)
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx c... | 1,790 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 18 | 757 | 790 | 0 | 1,790 | null | true | |
9101a0453781fda5f36a9584fb5d982c | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 821 | 37 | 13 | 821 | 842 | 842 | 808 | 842 | log_message | template_start | [
"error_handling",
"log_call"
] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | "Git error: %v", err) |
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Co... | 1,842 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 13 | 808 | 842 | 0 | 1,842 | null | true | |
3f2c7786baad5fb6b394581d2b0eb822 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 822 | 37 | 14 | 822 | 842 | 842 | 808 | 842 | log_message | template_body | [
"error_handling",
"log_call"
] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | Git error: %v", err) |
}
ctx := context.Background()
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Co... | 1,842 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 14 | 808 | 842 | 0 | 1,842 | null | true | |
413479ea3150902c88f4c4b0a100dded | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 848 | 40 | 1 | 848 | 875 | 875 | 847 | 875 | line_start | short_var_decl | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | ctx := context.Background() |
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Config, diff string) {
fmt.Println... | 1,875 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 1 | 847 | 875 | 0 | 1,875 | null | true | |
4fb67e55efa8b8d6bc7658ae4c1f0824 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 855 | 40 | 8 | 855 | 875 | 875 | 847 | 875 | after_operator | := | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | context.Background() |
client, err := genai.NewClient(ctx, &genai.ClientConfig{
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Config, diff string) {
fmt.Println... | 1,875 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 8 | 847 | 875 | 0 | 1,875 | null | true | |
7c59b886622830bf67b13041b50d30d2 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 877 | 41 | 1 | 877 | 933 | 933 | 876 | 933 | line_start | short_var_decl | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | client, err := genai.NewClient(ctx, &genai.ClientConfig{ |
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Config, diff string) {
fmt.Println("Analyzing changes and generating commit message...")
p... | 1,933 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 1 | 876 | 933 | 0 | 1,933 | null | true | |
b98f7561aa337c8b2af43c5947c497b0 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 892 | 41 | 16 | 892 | 933 | 933 | 876 | 933 | after_operator | := | [] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | genai.NewClient(ctx, &genai.ClientConfig{ |
APIKey: cfg.GeminiKey,
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Config, diff string) {
fmt.Println("Analyzing changes and generating commit message...")
p... | 1,933 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 16 | 876 | 933 | 0 | 1,933 | null | true | |
8335aaaa332e3037d44ae4b8fe84c876 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 944 | 42 | 10 | 944 | 958 | 958 | 934 | 958 | composite_literal | key_value | [
"composite_literal"
] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | cfg.GeminiKey, |
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Config, diff string) {
fmt.Println("Analyzing changes and generating commit message...")
prompt := fmt.Sprintf("%s\... | 1,958 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 10 | 934 | 958 | 0 | 1,958 | null | true | |
cf56f9013c9f50e2c653cce7872053e8 | github.com/004Ongoro/gitaid | 23a48f0f10dbe79a30a004577c9040bbe86605c2 | MIT | main.go | . | false | db3da6ac638c99e192f27cb9b783a2321f8f0c904b468c916765257263613915 | 948 | 42 | 14 | 948 | 958 | 958 | 934 | 958 | member_access | value | [
"composite_literal"
] | 0 | false | package main
import (
"bufio"
"context"
"fmt"
"log"
"os"
"os/exec"
"strings"
"github.com/004Ongoro/gitaid/internal/config"
"github.com/004Ongoro/gitaid/internal/git"
"google.golang.org/genai"
)
const systemPrompt = `You are a git commit generator.
Analyze the provided diff and write a detailed commit mess... | GeminiKey, |
})
if err != nil {
log.Fatalf("Failed to create Gemini client: %v", err)
}
generateMessage(ctx, client, cfg, diff)
}
func generateMessage(ctx context.Context, client *genai.Client, cfg *config.Config, diff string) {
fmt.Println("Analyzing changes and generating commit message...")
prompt := fmt.Sprintf("%s\... | 1,958 | true | LF | [] | grp_004ongoro-gitaid | partially_resolved | external_imports_unresolved | go-bulk/1 | goflc/0.1.0 | go | main | 14 | 934 | 958 | 0 | 1,958 | null | true |
Go full-line completion dataset (go/types)
Caret-based full-line completion samples extracted from permissively licensed Go repositories with the goflc builder
(Go go/parser + go/types). Each sample is an exact editor position: left_context ends at the caret, target_text
is the rest of the physical line (no newline, trailing whitespace excluded), right_context follows it. Original source
is reconstructable from offsets (byte offsets as used by Go tooling, plus UTF-16 offsets for IDEs); every row carries
repository_id, revision, relative_path and license for attribution.
| Config | Content |
|---|---|
samples |
canonical samples (flc-sample/v1 fields, Go profile: byte + UTF-16 offsets, package, build constraints) |
semantic |
go/types facts computed on the target-free editor snapshot (flc-semantic/v1, editor_snapshot policy, offline tier) |
prompts |
ready flc-prompt/v2 pairs: prompt (special tokens as text) + completion ending with `< |
repos |
per-repository provenance and processing status |
corpus |
whole accepted source files for causal pretraining (exact content, has_bom/newline_style recorded; same licence, generated-code, secret and cross-repository dedup rules) |
Splits are assigned per repository group (forks/near-copies together); cross-repository duplicate files are kept once.
Generated code (// Code generated ... DO NOT EDIT., *.pb.go, ...), vendor/ and testdata/ are excluded.
No code was built or executed (no go build, go generate, cgo or module download).
How the semantic context is produced
For every sample the builder removes the hidden target from the file (editor-equivalent snapshot) and asks go/types what
is visible at the caret: RET result type, EXPECT expected type, ARG parameters (incl. receiver and closure
parameters), LOCAL locals declared before the caret, FIELD/METHOD members of the method receiver, RECV/MEMBER
the selector base (package x or a value type) and its accessible members after ., CALL the callee signature inside
an argument list, TYPE contracts of nearby repository types. Analysis is offline: the standard library and packages of
the same repository resolve; external modules are not downloaded, so their symbols are reported as unresolved
(partially_resolved). Facts never come from the hidden target (per-record leakage audit; a record that fails it is
emitted without facts). The samples table is the canonical, model-agnostic record without facts; the facts live in
semantic (join by sample_id), and prompts already contains both rendered as training pairs.
from datasets import load_dataset
repo = "dvislobokov/go-ml-complation"
prompts = load_dataset(repo, "prompts", split="train") # ready prompt/completion pairs
samples = load_dataset(repo, "samples", split="train") # canonical samples (no semantic columns)
semantic = load_dataset(repo, "semantic", split="train") # structured go/types facts, same sample_id
Examples (real rows from the prompts config)
prompt ends at the caret with <|complete|>; the model must produce completion (rest of the line + <|eol|>).
Code is shortened here to its last lines; stored prompts keep up to 4,000 characters of code.
Empty line (start of a statement)
github.com/alecthomas/units · util.go:60 · sample_id 00053d44f0688a4f0e1875fd15d9ba81
<|go|><|path|>util.go
<|sem|>
RET (int64, error)
ARG s:string unitMap:map[string]float64
LOCAL f:float64 neg:bool orig:string
<|code|>
…
return x, s[i:], nil
}
func ParseUnit(s string, unitMap map[string]float64) (int64, error) {
// [-+]?([0-9]*(\.[0-9]*)?[a-z]+)+
orig := s
f := float64(0)
neg := false
// Consume [-+]?
if s != "" {
<|complete|>
completion: c := s[0]<|eol|>
After . (package or receiver members)
github.com/noiseonwires/labean · monitor.go:82 · sample_id 0001f8f6fff81b6802e7b4da4178916e
<|go|><|path|>monitor.go
<|sem|>
ARG m:taskMonitor
LOCAL PollPeriod:untyped int
FIELD scheduleStop:chan scheduledCancel cancelStop:chan scheduledCancel terminate:chan os.Signal queue:[]scheduledCancel env:*state
METHOD CancelTask(cmd string); Process(); ScheduleTaskToStop(cancelCmd string, timeout uint16)
RECV *state
MEMBER config:*appConfig; monitor:*taskMonitor; log:logger; authorized(r *http.Request)->bool
TYPE scheduledCancel: cmd:string; startTime:time.Time; timeout:time.Duration
<|code|>
…
case task := <-m.scheduleStop:
m.queue = append(m.queue, task)
case task := <-m.cancelStop:
tmp := m.queue[:0]
for _, p := range m.queue {
if p.cmd != task.cmd {
tmp = append(tmp, p)
}
}
m.queue = tmp
case <-m.terminate:
m.env.<|complete|>
completion: log.Info("Terminate request received, shutting down tasks...")<|eol|>
Inside an argument list (callee signature)
github.com/bingcicle/friendly-potato · main.go:61 · sample_id 0001f020e1be1e3f3801e287ffc06bfd
<|go|><|path|>main.go
<|sem|>
EXPECT string
LOCAL all:[]anymap eq:*string field:*string inputs:*string mode:*string p:string rex:*string
CALL strings.TrimSpace(s string)->string @0 s:string
<|code|>
…
mode := flag.String("mode", "merge", "merge|filter")
inputs := flag.String("in", "", "comma-separated JSONL files")
field := flag.String("field", "", "field name for filter")
eq := flag.String("eq", "", "value equals (string compare)")
rex := flag.String("rex", "", "regex match")
flag.Parse()
if *inputs == "" { log.Fatal("--in required") }
var all []anymap
for _, p := range strings.Split(*inputs, ",") {
items, err := readJSONL(strings.TrimSpace(<|complete|>
completion: p))<|eol|>
After a keyword (nearby project types)
github.com/csyezheng/a2fa · cmd/commands/remove.go:76 · sample_id 002a49707aabc942bc3575db21dd96ef
<|go|><|path|>cmd/commands/remove.go
<|sem|>
RET *removeCommand
EXPECT *removeCommand
LOCAL removeCmd:*removeCommand
TYPE removeCommand: r:*rootCommand; name:string; use:string; commands:[]Commander; Args(ctx context.Context, cd *Commandeer, args []string)->error; Commands()->[]Commander; Init(cd *Commandeer)->error; Name()->string; PreRun(cd *Commandeer, runner *Commandeer)->error; Run(ctx context.Context, cd *Commandeer, args []string)->error
<|code|>
…
}
func (c *removeCommand) Commands() []Commander {
return c.commands
}
func newRemoveCommand() *removeCommand {
removeCmd := &removeCommand{
name: "remove",
use: "remove <account name> [user name]",
}
return <|complete|>
completion: removeCmd<|eol|>
Progress (updated each batch)
| Status | Repositories | Samples |
|---|---|---|
| failed | 43 | 0 |
| packed | 11 | 213095 |
| pending | 10 | 0 |
| skipped | 129 | 0 |
| uploaded | 43350 | 233789732 |
Last update: 2026-10-10T04:11:34Z
- Downloads last month
- 670