hunk dict | file stringlengths 0 11.8M | file_path stringlengths 2 234 | label int64 0 1 | commit_url stringlengths 74 103 | dependency_score listlengths 5 5 |
|---|---|---|---|---|---|
{
"id": 2,
"code_window": [
"\t\t\t\tArgs: \"\",\n",
"\t\t\t},\n",
"\t\t\tLog: LogConfig{\n",
"\t\t\t\tOrder: \"topo-order\",\n",
"\t\t\t\tShowGraph: \"when-maximised\",\n",
"\t\t\t},\n",
"\t\t\tSkipHookPrefix: \"WIP\",\n",
"\t\t\tAutoFetch: true,\n",
"... | # User Config
Default path for the config file:
- Linux: `~/.config/lazygit/config.yml`
- MacOS: `~/Library/Application Support/lazygit/config.yml`
- Windows: `%APPDATA%\lazygit\config.yml`
For old installations (slightly embarrassing: I didn't realise at the time that you didn't need to supply a vendor name to the ... | docs/Config.md | 1 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.006660872139036655,
0.0003942014300264418,
0.0001627956808079034,
0.00016906674136407673,
0.0009632192086428404
] |
{
"id": 2,
"code_window": [
"\t\t\t\tArgs: \"\",\n",
"\t\t\t},\n",
"\t\t\tLog: LogConfig{\n",
"\t\t\t\tOrder: \"topo-order\",\n",
"\t\t\t\tShowGraph: \"when-maximised\",\n",
"\t\t\t},\n",
"\t\t\tSkipHookPrefix: \"WIP\",\n",
"\t\t\tAutoFetch: true,\n",
"... | package oscommands
import (
"github.com/jesseduffield/lazygit/pkg/common"
"github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/utils"
)
// NewDummyOSCommand creates a new dummy OSCommand for testing
func NewDummyOSCommand() *OSCommand {
osCmd := NewOSCommand(utils.NewDummyCommon(), ... | pkg/commands/oscommands/dummies.go | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.001443934626877308,
0.00041987717850133777,
0.00016510873683728278,
0.00019294310186523944,
0.00043534798896871507
] |
{
"id": 2,
"code_window": [
"\t\t\t\tArgs: \"\",\n",
"\t\t\t},\n",
"\t\t\tLog: LogConfig{\n",
"\t\t\t\tOrder: \"topo-order\",\n",
"\t\t\t\tShowGraph: \"when-maximised\",\n",
"\t\t\t},\n",
"\t\t\tSkipHookPrefix: \"WIP\",\n",
"\t\t\tAutoFetch: true,\n",
"... | package config
import (
yaml "github.com/jesseduffield/yaml"
)
// NewDummyAppConfig creates a new dummy AppConfig for testing
func NewDummyAppConfig() *AppConfig {
appConfig := &AppConfig{
Name: "lazygit",
Version: "unversioned",
Commit: "",
BuildDate: "",
Debug: false,
BuildSour... | pkg/config/dummies.go | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.00017178615962620825,
0.00016927358228713274,
0.00016639141540508717,
0.00016964320093393326,
0.0000022178480776346987
] |
{
"id": 2,
"code_window": [
"\t\t\t\tArgs: \"\",\n",
"\t\t\t},\n",
"\t\t\tLog: LogConfig{\n",
"\t\t\t\tOrder: \"topo-order\",\n",
"\t\t\t\tShowGraph: \"when-maximised\",\n",
"\t\t\t},\n",
"\t\t\tSkipHookPrefix: \"WIP\",\n",
"\t\t\tAutoFetch: true,\n",
"... | # git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store
| test/integration/pullRebaseConflict/expected/origin/info/exclude | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.00016570885782130063,
0.00016570885782130063,
0.00016570885782130063,
0.00016570885782130063,
0
] |
{
"id": 3,
"code_window": [
"\n",
"\tc *types.HelperCommon,\n",
") *LocalCommitsContext {\n",
"\tviewModel := NewLocalCommitsViewModel(getModel)\n",
"\n",
"\treturn &LocalCommitsContext{\n",
"\t\tLocalCommitsViewModel: viewModel,\n",
"\t\tViewportListContextTrait: &ViewportListContex... | package config
import (
"time"
)
type UserConfig struct {
Gui GuiConfig `yaml:"gui"`
Git GitConfig `yaml:"git"`
Update UpdateConfig `yaml:"update"`
Refresher RefresherConfig `yaml:"refresher"`
Reporting string `ya... | pkg/config/user_config.go | 1 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.0010757467243820429,
0.00020544652943499386,
0.0001647977769607678,
0.00017123992438428104,
0.00012573407730087638
] |
{
"id": 3,
"code_window": [
"\n",
"\tc *types.HelperCommon,\n",
") *LocalCommitsContext {\n",
"\tviewModel := NewLocalCommitsViewModel(getModel)\n",
"\n",
"\treturn &LocalCommitsContext{\n",
"\t\tLocalCommitsViewModel: viewModel,\n",
"\t\tViewportListContextTrait: &ViewportListContex... | ref: refs/heads/master
| test/integration/stashAllChanges/expected/repo/.git_keep/HEAD | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.00017725618090480566,
0.00017725618090480566,
0.00017725618090480566,
0.00017725618090480566,
0
] |
{
"id": 3,
"code_window": [
"\n",
"\tc *types.HelperCommon,\n",
") *LocalCommitsContext {\n",
"\tviewModel := NewLocalCommitsViewModel(getModel)\n",
"\n",
"\treturn &LocalCommitsContext{\n",
"\t\tLocalCommitsViewModel: viewModel,\n",
"\t\tViewportListContextTrait: &ViewportListContex... | #!/bin/sh
set -e
cd $1
git init
git config user.email "CI@example.com"
git config user.name "CI"
echo test0 > file0
git add .
git commit -am file0
echo test1 > file1
git add .
git commit -am file1
echo test2 > file2
git add .
git commit -am file2
echo test3 > file3
git add .
| test/integration/rebaseRewordOldCommit/setup.sh | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.00017579049745108932,
0.0001748922950355336,
0.0001735590340103954,
0.00017532732454128563,
9.61527121035033e-7
] |
{
"id": 3,
"code_window": [
"\n",
"\tc *types.HelperCommon,\n",
") *LocalCommitsContext {\n",
"\tviewModel := NewLocalCommitsViewModel(getModel)\n",
"\n",
"\treturn &LocalCommitsContext{\n",
"\t\tLocalCommitsViewModel: viewModel,\n",
"\t\tViewportListContextTrait: &ViewportListContex... | /*
* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen
* THIS FILE MUST NOT BE EDITED BY HAND
*/
package assert
import (
http "net/http"
url "net/url"
time "time"
)
// Conditionf uses a Comparison to assert a complex condition.
func Conditionf(t TestingT, comp Comparison, msg string, args ..... | vendor/github.com/stretchr/testify/assert/assertion_format.go | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.004642541985958815,
0.00024233385920524597,
0.00016508449334651232,
0.00016914974548853934,
0.0005132742808200419
] |
{
"id": 4,
"code_window": [
"\tshowWholeGitGraph bool\n",
"}\n",
"\n",
"func NewLocalCommitsViewModel(getModel func() []*models.Commit) *LocalCommitsViewModel {\n",
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n"
... | package context
import (
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/commands/models"
"github.com/jesseduffield/lazygit/pkg/gui/types"
)
type LocalCommitsContext struct {
*LocalCommitsViewModel
*ViewportListContextTrait
}
var _ types.IListContext = (*LocalCommitsContext)(nil)
func Ne... | pkg/gui/context/local_commits_context.go | 1 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.9992884397506714,
0.5490089058876038,
0.00022152469318825752,
0.7807497978210449,
0.45917412638664246
] |
{
"id": 4,
"code_window": [
"\tshowWholeGitGraph bool\n",
"}\n",
"\n",
"func NewLocalCommitsViewModel(getModel func() []*models.Commit) *LocalCommitsViewModel {\n",
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n"
... | test2
| test/integration/reflogCheckout/expected/repo/file2 | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.0001758753351168707,
0.0001758753351168707,
0.0001758753351168707,
0.0001758753351168707,
0
] |
{
"id": 4,
"code_window": [
"\tshowWholeGitGraph bool\n",
"}\n",
"\n",
"func NewLocalCommitsViewModel(getModel func() []*models.Commit) *LocalCommitsViewModel {\n",
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n"
... | // Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package packet
import (
"crypto"
"crypto/rand"
"io"
"time"
)
// Config collects a number of parameters along with sensible defaults.
// A nil *Config is v... | vendor/golang.org/x/crypto/openpgp/packet/config.go | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.00017632397066336125,
0.00016953906742855906,
0.00016455173317808658,
0.00016936977044679224,
0.0000043302516132825986
] |
{
"id": 4,
"code_window": [
"\tshowWholeGitGraph bool\n",
"}\n",
"\n",
"func NewLocalCommitsViewModel(getModel func() []*models.Commit) *LocalCommitsViewModel {\n",
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n"
... | // Generated automatically. DO NOT HAND-EDIT.
package vt420
import "github.com/gdamore/tcell/v2/terminfo"
func init() {
// DEC VT420
terminfo.AddTerminfo(&terminfo.Terminfo{
Name: "vt420",
Columns: 80,
Lines: 24,
Bell: "\a",
Clear: "\x1b[H\x1b[2J$<50>",
ShowCursor: ... | vendor/github.com/gdamore/tcell/v2/terminfo/v/vt420/term.go | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.00017097496311180294,
0.00016962717927526683,
0.00016845602658577263,
0.00016962946392595768,
8.563973210584663e-7
] |
{
"id": 5,
"code_window": [
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n",
"\t}\n",
"\n",
"\treturn self\n",
"}\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"k... | package context
import (
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/commands/models"
"github.com/jesseduffield/lazygit/pkg/gui/types"
)
type LocalCommitsContext struct {
*LocalCommitsViewModel
*ViewportListContextTrait
}
var _ types.IListContext = (*LocalCommitsContext)(nil)
func Ne... | pkg/gui/context/local_commits_context.go | 1 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.9968525767326355,
0.08823692798614502,
0.0001672329963184893,
0.00493871234357357,
0.2740183472633362
] |
{
"id": 5,
"code_window": [
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n",
"\t}\n",
"\n",
"\treturn self\n",
"}\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"k... | package git_config
type FakeGitConfig struct {
mockResponses map[string]string
}
func NewFakeGitConfig(mockResponses map[string]string) *FakeGitConfig {
return &FakeGitConfig{
mockResponses: mockResponses,
}
}
func (self *FakeGitConfig) Get(key string) string {
if self.mockResponses == nil {
return ""
}
re... | pkg/commands/git_config/fake_git_config.go | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.00020038035290781409,
0.0001786978536983952,
0.0001664950541453436,
0.00016921813949011266,
0.00001537209755042568
] |
{
"id": 5,
"code_window": [
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n",
"\t}\n",
"\n",
"\treturn self\n",
"}\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"k... | // Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package packet
import (
"crypto"
"crypto/md5"
"crypto/rsa"
"encoding/binary"
"fmt"
"hash"
"io"
"math/big"
"strconv"
"time"
"golang.org/x/crypto/ope... | vendor/golang.org/x/crypto/openpgp/packet/public_key_v3.go | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.000368313369108364,
0.00017796180327422917,
0.00016332650557160378,
0.0001707390765659511,
0.000036795467167394236
] |
{
"id": 5,
"code_window": [
"\tself := &LocalCommitsViewModel{\n",
"\t\tBasicViewModel: NewBasicViewModel(getModel),\n",
"\t\tlimitCommits: true,\n",
"\t}\n",
"\n",
"\treturn self\n",
"}\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"k... | # Contributing to Go
Go is an open source project.
It is the work of hundreds of contributors. We appreciate your help!
## Filing issues
When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions:
1. What version of Go are you using (`go version`)?
2. What operating system and... | vendor/golang.org/x/term/CONTRIBUTING.md | 0 | https://github.com/jesseduffield/lazygit/commit/666180cfd02f7ff69faa7425caa5eef358955827 | [
0.0001775362907210365,
0.00017653877148404717,
0.0001752275275066495,
0.000176852525328286,
9.683055850473465e-7
] |
{
"id": 0,
"code_window": [
"func checkJSON(input []byte) (raw []byte, err error) {\n",
"\tif !isString(input) {\n",
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tif len(input) == 2 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input[1:]) {\n",
"\t\t... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json_test.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.9980927109718323,
0.21419358253479004,
0.00016999327635858208,
0.0027624862268567085,
0.36915984749794006
] |
{
"id": 0,
"code_window": [
"func checkJSON(input []byte) (raw []byte, err error) {\n",
"\tif !isString(input) {\n",
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tif len(input) == 2 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input[1:]) {\n",
"\t\t... | - Assert(slice, Contains, item)
- Parallel test support
| vendor/gopkg.in/check.v1/TODO | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017292998381890357,
0.00017292998381890357,
0.00017292998381890357,
0.00017292998381890357,
0
] |
{
"id": 0,
"code_window": [
"func checkJSON(input []byte) (raw []byte, err error) {\n",
"\tif !isString(input) {\n",
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tif len(input) == 2 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input[1:]) {\n",
"\t\t... | // Copyright 2015 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | tests/vm_test_util.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.003834273898974061,
0.0003510313981678337,
0.00016890639381017536,
0.00017275393474847078,
0.0007349103107117116
] |
{
"id": 0,
"code_window": [
"func checkJSON(input []byte) (raw []byte, err error) {\n",
"\tif !isString(input) {\n",
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tif len(input) == 2 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input[1:]) {\n",
"\t\t... | /**********************************************************************
* Copyright (c) 2015 Andrew Poelstra *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | crypto/secp256k1/libsecp256k1/src/ecmult_const.h | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017402069352101535,
0.00017019717779476196,
0.00016637366206850857,
0.00017019717779476196,
0.00000382351572625339
] |
{
"id": 1,
"code_window": [
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tinput = input[1 : len(input)-1]\n",
"\tif len(input) == 0 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input) {\n",
"\t\treturn nil, ErrMissingPrefix\n"
],
"labels": [
"ke... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.9981979727745056,
0.14250889420509338,
0.00016344506002496928,
0.0009592033457010984,
0.3399401009082794
] |
{
"id": 1,
"code_window": [
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tinput = input[1 : len(input)-1]\n",
"\tif len(input) == 0 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input) {\n",
"\t\treturn nil, ErrMissingPrefix\n"
],
"labels": [
"ke... | {
"randomStatetest" : {
"env" : {
"currentCoinbase" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
"currentDifficulty" : "0x051d6a3cd647",
"currentGasLimit" : "0x7fffffffffffffff",
"currentNumber" : "0x00",
"currentTimestamp" : "0x01",
"... | tests/files/StateTests/RandomTests/st201503181547GO.json | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017676351126283407,
0.00016744836466386914,
0.00016490419511683285,
0.00016599723312538117,
0.0000036766323319170624
] |
{
"id": 1,
"code_window": [
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tinput = input[1 : len(input)-1]\n",
"\tif len(input) == 0 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input) {\n",
"\t\treturn nil, ErrMissingPrefix\n"
],
"labels": [
"ke... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | core/types/transaction_signing.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0007629439351148903,
0.0002044210268650204,
0.0001638281246414408,
0.00017125552403740585,
0.00010869392281165347
] |
{
"id": 1,
"code_window": [
"\t\treturn nil, errNonString\n",
"\t}\n",
"\tinput = input[1 : len(input)-1]\n",
"\tif len(input) == 0 {\n",
"\t\treturn nil, ErrEmptyString\n",
"\t}\n",
"\tif !bytesHave0xPrefix(input) {\n",
"\t\treturn nil, ErrMissingPrefix\n"
],
"labels": [
"ke... | Pod::Spec.new do |spec|
spec.name = 'Geth'
spec.version = '{{.Version}}'
spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' }
spec.homepage = 'https://github.com/ethereum/go-ethereum'
spec.authors = { {{range .Contributors}}
'{{.Name}}' => '{{.Email}}',{{en... | build/pod.podspec | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0001777791912900284,
0.00017429717991035432,
0.0001714665413601324,
0.00017364576342515647,
0.0000026179673113801982
] |
{
"id": 2,
"code_window": [
"var unmarshalBytesTests = []unmarshalTest{\n",
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json_test.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.998496413230896,
0.1294110119342804,
0.00016297833644784987,
0.0016033956781029701,
0.29089051485061646
] |
{
"id": 2,
"code_window": [
"var unmarshalBytesTests = []unmarshalTest{\n",
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",... | // Created by cgo -godefs - DO NOT EDIT
// cgo -godefs types_netbsd.go
// +build arm,netbsd
package unix
const (
sizeofPtr = 0x4
sizeofShort = 0x2
sizeofInt = 0x4
sizeofLong = 0x4
sizeofLongLong = 0x8
)
type (
_C_short int16
_C_int int32
_C_long int32
_C_long_long int64
)
t... | vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00022128869022708386,
0.00017171043145935982,
0.00016018998576328158,
0.00017005050904117525,
0.000010854105312319007
] |
{
"id": 2,
"code_window": [
"var unmarshalBytesTests = []unmarshalTest{\n",
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",... | // Copyright 2015 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | eth/fetcher/fetcher.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0011285056825727224,
0.00019158754730597138,
0.00016084661183413118,
0.00016970337310340255,
0.0001292108790948987
] |
{
"id": 2,
"code_window": [
"var unmarshalBytesTests = []unmarshalTest{\n",
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",... | /**********************************************************************
* Copyright (c) 2013, 2014 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | crypto/secp256k1/libsecp256k1/src/num_gmp.h | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017299891624134034,
0.000168876358657144,
0.00016249761392828077,
0.00017113251669798046,
0.000004574352715280838
] |
{
"id": 3,
"code_window": [
"\t{input: `\"0x01zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x\"`, want: referenceBytes(\"\")},\n",
"\t{input: `\"0x02\"`, want: referenceBytes(\"02\")},\n",
"\t{input: `\"0X02\"`, want: referenceBytes(\"02\")},\n",
"\t{inp... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json_test.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.13770326972007751,
0.00841501634567976,
0.00016410859825555235,
0.00023357506142929196,
0.02672940492630005
] |
{
"id": 3,
"code_window": [
"\t{input: `\"0x01zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x\"`, want: referenceBytes(\"\")},\n",
"\t{input: `\"0x02\"`, want: referenceBytes(\"02\")},\n",
"\t{input: `\"0X02\"`, want: referenceBytes(\"02\")},\n",
"\t{inp... | {
"randomStatetest" : {
"env" : {
"currentCoinbase" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
"currentDifficulty" : "0x051d6a3cd647",
"currentGasLimit" : "0x7fffffffffffffff",
"currentNumber" : "0x00",
"currentTimestamp" : "0x01",
"... | tests/files/StateTests/RandomTests/st201503181358GO.json | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0005558424745686352,
0.00022146131959743798,
0.00016409890668001026,
0.00016697992396075279,
0.00012726294517051429
] |
{
"id": 3,
"code_window": [
"\t{input: `\"0x01zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x\"`, want: referenceBytes(\"\")},\n",
"\t{input: `\"0x02\"`, want: referenceBytes(\"02\")},\n",
"\t{input: `\"0X02\"`, want: referenceBytes(\"02\")},\n",
"\t{inp... | {
"randomStatetest" : {
"env" : {
"currentCoinbase" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
"currentDifficulty" : "0x051d6a3cd647",
"currentGasLimit" : "0x7fffffffffffffff",
"currentNumber" : "0x00",
"currentTimestamp" : "0x01",
"... | tests/files/StateTests/RandomTests/st201503130752PYTHON.json | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017558209947310388,
0.00016884083743207157,
0.00016441982006654143,
0.00016839144518598914,
0.0000035782331906375475
] |
{
"id": 3,
"code_window": [
"\t{input: `\"0x01zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x\"`, want: referenceBytes(\"\")},\n",
"\t{input: `\"0x02\"`, want: referenceBytes(\"02\")},\n",
"\t{input: `\"0X02\"`, want: referenceBytes(\"02\")},\n",
"\t{inp... | // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Solaris system calls.
// This file is compiled as ordinary Go code,
// but it is also input to mksyscall,
// which parses the //sys lines and generates syste... | vendor/golang.org/x/sys/unix/syscall_solaris.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0006406169850379229,
0.00018615440058056265,
0.00016135690384544432,
0.00016982429951895028,
0.00006334588397294283
] |
{
"id": 4,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json_test.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.7433958649635315,
0.04190244898200035,
0.00016417886945419014,
0.00017555493104737252,
0.14917293190956116
] |
{
"id": 4,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | // Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !gccgo
#include "textflag.h"
//
// System call support for ARM, NetBSD
//
// Just jump to package syscall's implementation for all these functions.... | vendor/golang.org/x/sys/unix/asm_netbsd_arm.s | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0001760457962518558,
0.00017453280452173203,
0.000173520966200158,
0.0001740316511131823,
0.0000010899717608481296
] |
{
"id": 4,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package websocket
import (
"bufio"
"fmt"
"io"
"net/http"
)
func newServerConn(rwc io.ReadWriteCloser, buf *bufio.ReadWriter, req *http.Request, config *Co... | vendor/golang.org/x/net/websocket/server.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0015245249960571527,
0.00029547230224125087,
0.00016439741011708975,
0.00017067733278963715,
0.00037197835627011955
] |
{
"id": 4,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | {
"randomStatetest" : {
"env" : {
"currentCoinbase" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
"currentDifficulty" : "0x051d6a3cd647",
"currentGasLimit" : "0x7fffffffffffffff",
"currentNumber" : "0x00",
"currentTimestamp" : "0x01",
"... | tests/files/StateTests/RandomTests/st201504090553CPPJIT.json | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017385170212946832,
0.00016693765064701438,
0.00016405072528868914,
0.0001661995192989707,
0.000002929585207311902
] |
{
"id": 5,
"code_window": [
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: big.NewInt(0)},\n",
"\t{input: `\"0x2\"`, want: big.NewInt(0x2)},\n",
"\t{input: `\"0x2F2\"`, want: big.NewInt(0x2f2)},\n",
"\t{input: `\"0X2F2\"`, wa... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json_test.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.680288553237915,
0.029079534113407135,
0.0001663985603954643,
0.0003639168571680784,
0.13058684766292572
] |
{
"id": 5,
"code_window": [
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: big.NewInt(0)},\n",
"\t{input: `\"0x2\"`, want: big.NewInt(0x2)},\n",
"\t{input: `\"0x2F2\"`, want: big.NewInt(0x2f2)},\n",
"\t{input: `\"0X2F2\"`, wa... | // Copyright 2015 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | eth/downloader/api.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00030264342785812914,
0.00017636845586821437,
0.00016261154087260365,
0.00016761294682510197,
0.00003173591539962217
] |
{
"id": 5,
"code_window": [
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: big.NewInt(0)},\n",
"\t{input: `\"0x2\"`, want: big.NewInt(0x2)},\n",
"\t{input: `\"0x2F2\"`, want: big.NewInt(0x2f2)},\n",
"\t{input: `\"0X2F2\"`, wa... | // Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package comparer
import "bytes"
type bytesComparer struct{}
func (bytesComparer) Compare(a, b []byte) int {
return bytes.... | vendor/github.com/syndtr/goleveldb/leveldb/comparer/bytes_comparer.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0005808256100863218,
0.00029143484425731003,
0.00016623616102151573,
0.00018709039431996644,
0.00016576828784309328
] |
{
"id": 5,
"code_window": [
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: big.NewInt(0)},\n",
"\t{input: `\"0x2\"`, want: big.NewInt(0x2)},\n",
"\t{input: `\"0x2F2\"`, want: big.NewInt(0x2f2)},\n",
"\t{input: `\"0X2F2\"`, wa... | // Copyright 2016 Zack Guo <zack.y.guo@gmail.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
package termui
// Par displays a paragraph.
/*
par := termui.NewPar("Simple Text")
par.Height = 3
par.Width = 17
par.BorderLabel = "Label"
*... | vendor/github.com/gizak/termui/par.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017640470468904823,
0.00017076515359804034,
0.00016038698959164321,
0.00017102962010540068,
0.000004495866960496642
] |
{
"id": 6,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json_test.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.7433958649635315,
0.04190244898200035,
0.00016417886945419014,
0.00017555493104737252,
0.14917293190956116
] |
{
"id": 6,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | // Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build amd64,solaris
package unix
// TODO(aram): remove these before Go 1.3.
const (
SYS_EXECVE = 59
SYS_FCNTL = 62
)
| vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017592866788618267,
0.00017308822134509683,
0.000170247774804011,
0.00017308822134509683,
0.0000028404465410858393
] |
{
"id": 6,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | {
"randomStatetest" : {
"env" : {
"currentCoinbase" : "945304eb96065b2a98b57a48a06ae28d285a71b5",
"currentDifficulty" : "0x051d6a3cd647",
"currentGasLimit" : "0x7fffffffffffffff",
"currentNumber" : "0x00",
"currentTimestamp" : "0x01",
"... | tests/files/StateTests/RandomTests/st201503140002PYTHON.json | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017385170212946832,
0.0001682250149315223,
0.00016405072528868914,
0.00016758040874265134,
0.000003722032261066488
] |
{
"id": 6,
"code_window": [
"\t// invalid encoding\n",
"\t{input: \"\", wantErr: errNonString},\n",
"\t{input: \"null\", wantErr: errNonString},\n",
"\t{input: \"10\", wantErr: errNonString},\n",
"\t{input: `\"\"`, wantErr: ErrEmptyString},\n",
"\t{input: `\"0\"`, wantErr: ErrMissingPrefix},... | package: github.com/gizak/termui
import:
- package: github.com/mattn/go-runewidth
- package: github.com/mitchellh/go-wordwrap
- package: github.com/nsf/termbox-go
- package: golang.org/x/net
subpackages:
- websocket
- package: github.com/maruel/panicparse
| vendor/github.com/gizak/termui/glide.yaml | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017518927052151412,
0.00017518927052151412,
0.00017518927052151412,
0.00017518927052151412,
0
] |
{
"id": 7,
"code_window": [
"\t{input: `\"0xfffffffffffffffff\"`, wantErr: ErrUint64Range},\n",
"\t{input: `\"0xx\"`, wantErr: ErrSyntax},\n",
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: uint64(0)},\n",
"\t{input: `\"0x2\"... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | common/hexutil/json_test.go | 1 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.9253779053688049,
0.04621094465255737,
0.00016076456813607365,
0.00019501050701364875,
0.17996755242347717
] |
{
"id": 7,
"code_window": [
"\t{input: `\"0xfffffffffffffffff\"`, wantErr: ErrUint64Range},\n",
"\t{input: `\"0xx\"`, wantErr: ErrSyntax},\n",
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: uint64(0)},\n",
"\t{input: `\"0x2\"... | // Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
package main
// This program generates table.go and table_test.go.
// Invoke as
//
// go run gen.go |gofmt >table.go
// go run gen.go -test |... | vendor/golang.org/x/net/html/atom/gen.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00017801990907173604,
0.0001686133909970522,
0.00016067108663264662,
0.00016835903807077557,
0.0000032194714094657684
] |
{
"id": 7,
"code_window": [
"\t{input: `\"0xfffffffffffffffff\"`, wantErr: ErrUint64Range},\n",
"\t{input: `\"0xx\"`, wantErr: ErrSyntax},\n",
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: uint64(0)},\n",
"\t{input: `\"0x2\"... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | accounts/abi/error.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.0013044545194134116,
0.00031136826146394014,
0.0001639539113966748,
0.00017021983512677252,
0.00037537567550316453
] |
{
"id": 7,
"code_window": [
"\t{input: `\"0xfffffffffffffffff\"`, wantErr: ErrUint64Range},\n",
"\t{input: `\"0xx\"`, wantErr: ErrSyntax},\n",
"\t{input: `\"0x1zz01\"`, wantErr: ErrSyntax},\n",
"\n",
"\t// valid encoding\n",
"\t{input: `\"0x0\"`, want: uint64(0)},\n",
"\t{input: `\"0x2\"... | // Copyright 2016 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | swarm/storage/database.go | 0 | https://github.com/ethereum/go-ethereum/commit/01f6f2d741e717f669b7ba1d6b88991f28e30c72 | [
0.00019717674877028912,
0.00017135719826910645,
0.0001583723205840215,
0.00016748590860515833,
0.000010125201697519515
] |
{
"id": 0,
"code_window": [
"\t}\n",
"\tif body != expectedBody {\n",
"\t\tt.Errorf(\"Expected body: '%s', saw: '%s'\", expectedBody, body)\n",
"\t}\n",
"\tfakeHandler.ValidateRequest(t, \"/foo/bar\", \"GET\", &fakeHandler.ResponseBody)\n",
"}\n",
"\n",
"func TestRunController(t *tes... | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | pkg/cloudcfg/cloudcfg_test.go | 1 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.9867398738861084,
0.0871405228972435,
0.00016621730173937976,
0.0008565459866076708,
0.23837310075759888
] |
{
"id": 0,
"code_window": [
"\t}\n",
"\tif body != expectedBody {\n",
"\t\tt.Errorf(\"Expected body: '%s', saw: '%s'\", expectedBody, body)\n",
"\t}\n",
"\tfakeHandler.ValidateRequest(t, \"/foo/bar\", \"GET\", &fakeHandler.ResponseBody)\n",
"}\n",
"\n",
"func TestRunController(t *tes... | // Package drive provides access to the Drive API.
//
// See https://developers.google.com/drive/
//
// Usage example:
//
// import "code.google.com/p/google-api-go-client/drive/v1"
// ...
// driveService, err := drive.New(oauthHttpClient)
package drive
import (
"bytes"
"code.google.com/p/google-api-go-client/... | third_party/src/code.google.com/p/google-api-go-client/drive/v1/drive-gen.go | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.0013985843397676945,
0.00024266693799290806,
0.00016075445455498993,
0.00017430052685085684,
0.00027168000815436244
] |
{
"id": 0,
"code_window": [
"\t}\n",
"\tif body != expectedBody {\n",
"\t\tt.Errorf(\"Expected body: '%s', saw: '%s'\", expectedBody, body)\n",
"\t}\n",
"\tfakeHandler.ValidateRequest(t, \"/foo/bar\", \"GET\", &fakeHandler.ResponseBody)\n",
"}\n",
"\n",
"func TestRunController(t *tes... | // Copyright 2014 Docker authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the DOCKER-LICENSE file.
package engine
import (
"os"
"testing"
)
func TestJobStatusOK(t *testing.T) {
eng := newTestEngine(t)
defer os.RemoveAll(eng.Root())
eng.Register(... | third_party/src/github.com/fsouza/go-dockerclient/engine/job_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.00030074993264861405,
0.00020560807024594396,
0.00016644377319607884,
0.0002060775295831263,
0.00004115623596590012
] |
{
"id": 0,
"code_window": [
"\t}\n",
"\tif body != expectedBody {\n",
"\t\tt.Errorf(\"Expected body: '%s', saw: '%s'\", expectedBody, body)\n",
"\t}\n",
"\tfakeHandler.ValidateRequest(t, \"/foo/bar\", \"GET\", &fakeHandler.ResponseBody)\n",
"}\n",
"\n",
"func TestRunController(t *tes... | package yaml
import (
"math"
"strconv"
"strings"
)
// TODO: merge, timestamps, base 60 floats, omap.
type resolveMapItem struct {
value interface{}
tag string
}
var resolveTable = make([]byte, 256)
var resolveMap = make(map[string]resolveMapItem)
func init() {
t := resolveTable
t[int('+')] = 'S' // Sign
... | third_party/src/gonuts.org/v1/yaml/resolve.go | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.0007012292044237256,
0.00020840684010181576,
0.00016871595289558172,
0.00017368649423588067,
0.00013173872139304876
] |
{
"id": 1,
"code_window": [
"}\n",
"\n",
"// FakeHandler is to assist in testing HTTP requests.\n",
"type FakeHandler struct {\n",
"\tRequestReceived *http.Request\n",
"\tStatusCode int\n",
"\tResponseBody string\n",
"\t// For logging - you can use a *testing.T\n"
],
"lab... | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | pkg/util/fake_handler.go | 1 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.9969383478164673,
0.42801469564437866,
0.00017122473218478262,
0.007774427533149719,
0.490446001291275
] |
{
"id": 1,
"code_window": [
"}\n",
"\n",
"// FakeHandler is to assist in testing HTTP requests.\n",
"type FakeHandler struct {\n",
"\tRequestReceived *http.Request\n",
"\tStatusCode int\n",
"\tResponseBody string\n",
"\t// For logging - you can use a *testing.T\n"
],
"lab... | {
"items": [
{
"id": "testRun",
"desiredState": {
"replicas": 2,
"replicasInSet": {
"name": "testRun"
},
"podTemplate": {
"desiredState": {
"image": "docker... | api/examples/controller-list.json | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.0005825826083309948,
0.00029022464877925813,
0.0001781844621291384,
0.0002000657987082377,
0.00016940275963861495
] |
{
"id": 1,
"code_window": [
"}\n",
"\n",
"// FakeHandler is to assist in testing HTTP requests.\n",
"type FakeHandler struct {\n",
"\tRequestReceived *http.Request\n",
"\tStatusCode int\n",
"\tResponseBody string\n",
"\t// For logging - you can use a *testing.T\n"
],
"lab... | {
"kind": "discovery#restDescription",
"etag": "\"kEk3sFj6Ef5_yR1-H3bAO6qw9mI/UNFMI_ENJ3hAFRWSi4GLSerTeFg\"",
"discoveryVersion": "v1",
"id": "discovery:v1",
"name": "discovery",
"version": "v1",
"title": "APIs Discovery Service",
"description": "Lets you discover information about other Google APIs, such as wh... | third_party/src/code.google.com/p/google-api-go-client/discovery/v1/discovery-api.json | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.0010089267743751407,
0.0002774458553176373,
0.0001675828971201554,
0.00020960596157237887,
0.00016742391744628549
] |
{
"id": 1,
"code_window": [
"}\n",
"\n",
"// FakeHandler is to assist in testing HTTP requests.\n",
"type FakeHandler struct {\n",
"\tRequestReceived *http.Request\n",
"\tStatusCode int\n",
"\tResponseBody string\n",
"\t// For logging - you can use a *testing.T\n"
],
"lab... | {
"id": "php",
"desiredState": {
"manifest": {
"containers": [{
"image": "dockerfile/nginx",
"ports": [{
"containerPort": 80,
"hostPort": 8080
}]
}]
}
},
"labels": {
"name": "foo"
}
}
| api/examples/pod.json | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.00017390758148394525,
0.0001720332948025316,
0.00017015900812111795,
0.0001720332948025316,
0.0000018742866814136505
] |
{
"id": 2,
"code_window": [
"\n",
"\tbodyReceived, err := ioutil.ReadAll(request.Body)\n",
"\tif err != nil && f.T != nil {\n",
"\t\tf.T.Logf(\"Received read error: %#v\", err)\n",
"\t}\n",
"\tf.ResponseBody = string(bodyReceived)\n",
"}\n",
"\n",
"func (f FakeHandler) ValidateRe... | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | pkg/util/fake_handler.go | 1 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.9973766803741455,
0.38436153531074524,
0.00017870886949822307,
0.003889276646077633,
0.4521389305591583
] |
{
"id": 2,
"code_window": [
"\n",
"\tbodyReceived, err := ioutil.ReadAll(request.Body)\n",
"\tif err != nil && f.T != nil {\n",
"\t\tf.T.Logf(\"Received read error: %#v\", err)\n",
"\t}\n",
"\tf.ResponseBody = string(bodyReceived)\n",
"}\n",
"\n",
"func (f FakeHandler) ValidateRe... | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | pkg/client/container_info_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.013504328206181526,
0.002833303064107895,
0.00017040206876117736,
0.00017951559857465327,
0.004866850562393665
] |
{
"id": 2,
"code_window": [
"\n",
"\tbodyReceived, err := ioutil.ReadAll(request.Body)\n",
"\tif err != nil && f.T != nil {\n",
"\t\tf.T.Logf(\"Received read error: %#v\", err)\n",
"\t}\n",
"\tf.ResponseBody = string(bodyReceived)\n",
"}\n",
"\n",
"func (f FakeHandler) ValidateRe... | // Copyright 2014 Docker authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the DOCKER-LICENSE file.
package utils
import (
"errors"
)
type Utsname struct {
Release [65]byte
}
func uname() (*Utsname, error) {
return nil, errors.New("Kernel version ... | third_party/src/github.com/fsouza/go-dockerclient/utils/utils_windows.go | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.00017784938972909003,
0.00017485421267338097,
0.00017185905016958714,
0.00017485421267338097,
0.00000299516977975145
] |
{
"id": 2,
"code_window": [
"\n",
"\tbodyReceived, err := ioutil.ReadAll(request.Body)\n",
"\tif err != nil && f.T != nil {\n",
"\t\tf.T.Logf(\"Received read error: %#v\", err)\n",
"\t}\n",
"\tf.ResponseBody = string(bodyReceived)\n",
"}\n",
"\n",
"func (f FakeHandler) ValidateRe... | {
"kind": "discovery#restDescription",
"etag": "\"kEk3sFj6Ef5_yR1-H3bAO6qw9mI/WlcQEurGo0sEddzjdUrIBdx9npM\"",
"discoveryVersion": "v1",
"id": "oauth2:v1",
"name": "oauth2",
"version": "v1",
"title": "Google OAuth2 API",
"description": "Lets you access OAuth2 protocol related APIs.",
"ownerDomain": "google.com"... | third_party/src/code.google.com/p/google-api-go-client/oauth2/v1/oauth2-api.json | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.00017702662444207817,
0.00017326381930615753,
0.00016928526747506112,
0.00017374464368913323,
0.000001998044808715349
] |
{
"id": 3,
"code_window": [
"\t\tt.Errorf(\"Unexpected method: %s\", f.RequestReceived.Method)\n",
"\t}\n",
"\tif body != nil {\n",
"\t\tif *body != f.ResponseBody {\n",
"\t\t\tt.Errorf(\"Received body:\\n%s\\n Doesn't match expected body:\\n%s\", f.ResponseBody, *body)\n",
"\t\t}\n",
"\... | /*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | pkg/util/fake_handler.go | 1 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.9910218119621277,
0.1434735208749771,
0.0001785319036571309,
0.0029613683000206947,
0.346015065908432
] |
{
"id": 3,
"code_window": [
"\t\tt.Errorf(\"Unexpected method: %s\", f.RequestReceived.Method)\n",
"\t}\n",
"\tif body != nil {\n",
"\t\tif *body != f.ResponseBody {\n",
"\t\t\tt.Errorf(\"Received body:\\n%s\\n Doesn't match expected body:\\n%s\", f.ResponseBody, *body)\n",
"\t\t}\n",
"\... | // Copyright 2011 The goauth2 Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The oauth package provides support for making
// OAuth2-authenticated HTTP requests.
//
// Example usage:
//
// // Specify your configuration. (typicall... | third_party/src/code.google.com/p/goauth2/oauth/oauth.go | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.002233373699709773,
0.0002994972746819258,
0.00016238066018559039,
0.00017354663577862084,
0.0003727477160282433
] |
{
"id": 3,
"code_window": [
"\t\tt.Errorf(\"Unexpected method: %s\", f.RequestReceived.Method)\n",
"\t}\n",
"\tif body != nil {\n",
"\t\tif *body != f.ResponseBody {\n",
"\t\t\tt.Errorf(\"Received body:\\n%s\\n Doesn't match expected body:\\n%s\", f.ResponseBody, *body)\n",
"\t\t}\n",
"\... | {
"kind": "discovery#restDescription",
"etag": "\"kEk3sFj6Ef5_yR1-H3bAO6qw9mI/5fAOCCT-EMDzKZ0hPKCYdJUAc9k\"",
"discoveryVersion": "v1",
"id": "customsearch:v1",
"name": "customsearch",
"version": "v1",
"title": "CustomSearch API",
"description": "Lets you search over a website or collection of websites",
"owne... | third_party/src/code.google.com/p/google-api-go-client/customsearch/v1/customsearch-api.json | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.0001789197704056278,
0.00017561142158228904,
0.00016965693794190884,
0.0001757655991241336,
0.000001678367993918073
] |
{
"id": 3,
"code_window": [
"\t\tt.Errorf(\"Unexpected method: %s\", f.RequestReceived.Method)\n",
"\t}\n",
"\tif body != nil {\n",
"\t\tif *body != f.ResponseBody {\n",
"\t\t\tt.Errorf(\"Received body:\\n%s\\n Doesn't match expected body:\\n%s\", f.ResponseBody, *body)\n",
"\t\t}\n",
"\... | /*
Copyright 2013 CoreOS Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | third_party/src/github.com/coreos/go-systemd/journal/send.go | 0 | https://github.com/kubernetes/kubernetes/commit/b6a260940c7661baea30599c5f5ad370de3c9633 | [
0.00017922882398124784,
0.00017203176685143262,
0.00016506874817423522,
0.000171849547768943,
0.000003982055659434991
] |
{
"id": 0,
"code_window": [
"func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 {\n",
"\tavailablePodCount := int32(0)\n",
"\tfor _, pod := range pods {\n",
"\t\t// TODO: Make the time.Now() as argument to allow unit test this.\n",
"\t\tif IsPodAvailable(&pod, minReadySeconds, ... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | test/e2e/deployment.go | 1 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.07605889439582825,
0.0016146426787599921,
0.00016501634672749788,
0.000174592700204812,
0.007400323636829853
] |
{
"id": 0,
"code_window": [
"func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 {\n",
"\tavailablePodCount := int32(0)\n",
"\tfor _, pod := range pods {\n",
"\t\t// TODO: Make the time.Now() as argument to allow unit test this.\n",
"\t\tif IsPodAvailable(&pod, minReadySeconds, ... | ### flannel
This is used mostly for the `docker-multinode` config, but also in other places where flannel runs in a container.
For `amd64`, this image equals to `quay.io/coreos/flannel` to maintain official support.
For other architectures, `flannel` is cross-compiled. The `debian-iptables` image serves as base image... | cluster/images/flannel/README.md | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017324024520348758,
0.00017238158034160733,
0.00017161063442472368,
0.00017229386139661074,
6.681710260636464e-7
] |
{
"id": 0,
"code_window": [
"func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 {\n",
"\tavailablePodCount := int32(0)\n",
"\tfor _, pod := range pods {\n",
"\t\t// TODO: Make the time.Now() as argument to allow unit test this.\n",
"\t\tif IsPodAvailable(&pod, minReadySeconds, ... | // Go support for Protocol Buffers - Google's data interchange format
//
// Copyright 2012 The Go Authors. All rights reserved.
// https://github.com/golang/protobuf
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met... | vendor/github.com/gogo/protobuf/proto/pointer_unsafe.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.0005717574968002737,
0.00026546159642748535,
0.0001633806969039142,
0.00018452011863701046,
0.00013289396883919835
] |
{
"id": 0,
"code_window": [
"func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 {\n",
"\tavailablePodCount := int32(0)\n",
"\tfor _, pod := range pods {\n",
"\t\t// TODO: Make the time.Now() as argument to allow unit test this.\n",
"\t\tif IsPodAvailable(&pod, minReadySeconds, ... | // Copyright 2015 CoreOS, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | vendor/github.com/coreos/go-systemd/dbus/subscription.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.0001781549071893096,
0.000169500257470645,
0.00016311438230331987,
0.0001689915225142613,
0.0000036230278510629432
] |
{
"id": 1,
"code_window": [
"\t\ttestScalePausedDeployment(f)\n",
"\t})\n",
"\tIt(\"scaled rollout should not block on annotation check\", func() {\n",
"\t\ttestScaledRolloutDeployment(f)\n",
"\t})\n",
"})\n",
"\n",
"func newRS(rsName string, replicas int32, rsPodLabels map[string]st... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | test/e2e/deployment.go | 1 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.9991852641105652,
0.18888628482818604,
0.00016474639414809644,
0.0010562229435890913,
0.38273799419403076
] |
{
"id": 1,
"code_window": [
"\t\ttestScalePausedDeployment(f)\n",
"\t})\n",
"\tIt(\"scaled rollout should not block on annotation check\", func() {\n",
"\t\ttestScaledRolloutDeployment(f)\n",
"\t})\n",
"})\n",
"\n",
"func newRS(rsName string, replicas int32, rsPodLabels map[string]st... | language: go
go:
- 1.4
- 1.5
- 1.6
- tip
install:
- go get -v -t ./...
- go get golang.org/x/tools/cmd/cover
- go get github.com/onsi/gomega
- go install github.com/onsi/ginkgo/ginkgo
- export PATH=$PATH:$HOME/gopath/bin
script: $HOME/gopath/bin/ginkgo -r --randomizeAllSpecs --randomizeSuites --race... | vendor/github.com/onsi/ginkgo/.travis.yml | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017933633353095502,
0.0001774434931576252,
0.00017555063823238015,
0.0001774434931576252,
0.0000018928476492874324
] |
{
"id": 1,
"code_window": [
"\t\ttestScalePausedDeployment(f)\n",
"\t})\n",
"\tIt(\"scaled rollout should not block on annotation check\", func() {\n",
"\t\ttestScaledRolloutDeployment(f)\n",
"\t})\n",
"})\n",
"\n",
"func newRS(rsName string, replicas int32, rsPodLabels map[string]st... | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/registry/deployment/registry.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.0004521656082943082,
0.00024264937383122742,
0.0001659475965425372,
0.0002037929225480184,
0.00009272352326661348
] |
{
"id": 1,
"code_window": [
"\t\ttestScalePausedDeployment(f)\n",
"\t})\n",
"\tIt(\"scaled rollout should not block on annotation check\", func() {\n",
"\t\ttestScaledRolloutDeployment(f)\n",
"\t})\n",
"})\n",
"\n",
"func newRS(rsName string, replicas int32, rsPodLabels map[string]st... | <!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- BEGIN STRIP_FOR_RELEASE -->
<img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/kubernet... | docs/devel/kubemark-guide.md | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017584649322088808,
0.00016940869682002813,
0.00016148727445397526,
0.00016898450849112123,
0.0000036596682093659183
] |
{
"id": 2,
"code_window": [
"\tif err != nil {\n",
"\t\tframework.Logf(\"error in waiting for pods to come up: %s\", err)\n",
"\t\tExpect(err).NotTo(HaveOccurred())\n",
"\t}\n",
"\t// Wait for the required pods to be ready for at least minReadySeconds (be available)\n",
"\tdeploymentMinReady... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | test/e2e/deployment.go | 1 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.9989620447158813,
0.05029904469847679,
0.00016559893265366554,
0.00324069382622838,
0.181295707821846
] |
{
"id": 2,
"code_window": [
"\tif err != nil {\n",
"\t\tframework.Logf(\"error in waiting for pods to come up: %s\", err)\n",
"\t\tExpect(err).NotTo(HaveOccurred())\n",
"\t}\n",
"\t// Wait for the required pods to be ready for at least minReadySeconds (be available)\n",
"\tdeploymentMinReady... | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/client/cache/reflector_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00019341813458595425,
0.000171513733221218,
0.00015711023297626525,
0.0001723001041682437,
0.00000595762639932218
] |
{
"id": 2,
"code_window": [
"\tif err != nil {\n",
"\t\tframework.Logf(\"error in waiting for pods to come up: %s\", err)\n",
"\t\tExpect(err).NotTo(HaveOccurred())\n",
"\t}\n",
"\t// Wait for the required pods to be ready for at least minReadySeconds (be available)\n",
"\tdeploymentMinReady... | kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nfs
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi
| examples/volumes/nfs/nfs-pvc.yaml | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017372956790495664,
0.00017244800983462483,
0.00017116645176429302,
0.00017244800983462483,
0.000001281558070331812
] |
{
"id": 2,
"code_window": [
"\tif err != nil {\n",
"\t\tframework.Logf(\"error in waiting for pods to come up: %s\", err)\n",
"\t\tExpect(err).NotTo(HaveOccurred())\n",
"\t}\n",
"\t// Wait for the required pods to be ready for at least minReadySeconds (be available)\n",
"\tdeploymentMinReady... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/volume/fc/fc_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00020631207735277712,
0.00017202756134793162,
0.0001594467757968232,
0.0001712975645205006,
0.00001058667476172559
] |
{
"id": 3,
"code_window": [
"\n",
"\t// Create a deployment to delete nginx pods and instead bring up redis-slave pods.\n",
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n"
],
"labels": [
"keep",
"add",
"... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | test/e2e/deployment.go | 1 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.9990600943565369,
0.6812758445739746,
0.00016727461479604244,
0.997321605682373,
0.4524376392364502
] |
{
"id": 3,
"code_window": [
"\n",
"\t// Create a deployment to delete nginx pods and instead bring up redis-slave pods.\n",
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n"
],
"labels": [
"keep",
"add",
"... | // +build linux
package libcontainer
import (
"fmt"
"os"
"github.com/opencontainers/runc/libcontainer/system"
)
func newRestoredProcess(pid int, fds []string) (*restoredProcess, error) {
var (
err error
)
proc, err := os.FindProcess(pid)
if err != nil {
return nil, err
}
started, err := system.GetProce... | vendor/github.com/opencontainers/runc/libcontainer/restored_process.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017778496840037405,
0.00016987680282909423,
0.00016394516569562256,
0.00016977831546682864,
0.0000034878685255534947
] |
{
"id": 3,
"code_window": [
"\n",
"\t// Create a deployment to delete nginx pods and instead bring up redis-slave pods.\n",
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n"
],
"labels": [
"keep",
"add",
"... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | cmd/kube-proxy/app/conntrack.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017790196579881012,
0.0001715383114060387,
0.00016740913270041347,
0.0001709992648102343,
0.000003909867700713221
] |
{
"id": 3,
"code_window": [
"\n",
"\t// Create a deployment to delete nginx pods and instead bring up redis-slave pods.\n",
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n"
],
"labels": [
"keep",
"add",
"... | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/registry/rolebinding/doc.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017784313240554184,
0.00017454740009270608,
0.00017125168233178556,
0.00017454740009270608,
0.0000032957250368781388
] |
{
"id": 4,
"code_window": [
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n",
"\tdeploymentImage := \"gcr.io/google_samples/gb-redisslave:v1\"\n",
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyTy... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | test/e2e/deployment.go | 1 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.9984686970710754,
0.25249168276786804,
0.0001644928997848183,
0.006668150424957275,
0.41016557812690735
] |
{
"id": 4,
"code_window": [
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n",
"\tdeploymentImage := \"gcr.io/google_samples/gb-redisslave:v1\"\n",
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyTy... | The MIT License (MIT)
Copyright (c) 2013 Phillip Bond
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, pub... | vendor/bitbucket.org/bertimus9/systemstat/LICENSE | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017895355995278805,
0.0001738100399961695,
0.00017051585018634796,
0.00017196068074554205,
0.000003684544935822487
] |
{
"id": 4,
"code_window": [
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n",
"\tdeploymentImage := \"gcr.io/google_samples/gb-redisslave:v1\"\n",
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyTy... | <!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- BEGIN STRIP_FOR_RELEASE -->
<img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/kubernetes/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/kubernet... | docs/user-guide/config-best-practices.md | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017051585018634796,
0.00016800223966129124,
0.0001640730770304799,
0.00016921330825425684,
0.000002505042175471317
] |
{
"id": 4,
"code_window": [
"\tdeploymentName, deploymentImageName := \"test-rollover-deployment\", \"redis-slave\"\n",
"\tdeploymentReplicas := int32(4)\n",
"\tdeploymentImage := \"gcr.io/google_samples/gb-redisslave:v1\"\n",
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyTy... | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/controller/volume/persistentvolume/delete_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.0001778824662324041,
0.00017159190610982478,
0.00016427361697424203,
0.00017169116472359747,
0.0000035435905374470167
] |
{
"id": 5,
"code_window": [
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyType\n",
"\tframework.Logf(\"Creating deployment %s\", deploymentName)\n",
"\tnewDeployment := newDeployment(deploymentName, deploymentReplicas, deploymentPodLabels, deploymentImageName, deploymentImage, d... | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/controller/deployment/util/deployment_util.go | 1 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.8641325235366821,
0.0159646924585104,
0.00016096796025522053,
0.0006501798634417355,
0.0977616235613823
] |
{
"id": 5,
"code_window": [
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyType\n",
"\tframework.Logf(\"Creating deployment %s\", deploymentName)\n",
"\tnewDeployment := newDeployment(deploymentName, deploymentReplicas, deploymentPodLabels, deploymentImageName, deploymentImage, d... | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/util/config/configuration_map.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017883653345052153,
0.0001712923840386793,
0.0001608706807019189,
0.00017209822544828057,
0.000006284134997258661
] |
{
"id": 5,
"code_window": [
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyType\n",
"\tframework.Logf(\"Creating deployment %s\", deploymentName)\n",
"\tnewDeployment := newDeployment(deploymentName, deploymentReplicas, deploymentPodLabels, deploymentImageName, deploymentImage, d... | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/registry/registrytest/endpoint.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.0001991835015360266,
0.00017296035366598517,
0.00016263774887192994,
0.00017205398762598634,
0.000009570127986080479
] |
{
"id": 5,
"code_window": [
"\tdeploymentStrategyType := extensions.RollingUpdateDeploymentStrategyType\n",
"\tframework.Logf(\"Creating deployment %s\", deploymentName)\n",
"\tnewDeployment := newDeployment(deploymentName, deploymentReplicas, deploymentPodLabels, deploymentImageName, deploymentImage, d... | // +build linux
package configs
import "syscall"
func (n *Namespace) Syscall() int {
return namespaceInfo[n.Type]
}
var namespaceInfo = map[NamespaceType]int{
NEWNET: syscall.CLONE_NEWNET,
NEWNS: syscall.CLONE_NEWNS,
NEWUSER: syscall.CLONE_NEWUSER,
NEWIPC: syscall.CLONE_NEWIPC,
NEWUTS: syscall.CLONE_NEWU... | vendor/github.com/opencontainers/runc/libcontainer/configs/namespaces_syscall.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00017365338862873614,
0.00017161639698315412,
0.00016891348059289157,
0.00017194935935549438,
0.0000018272648958372883
] |
{
"id": 6,
"code_window": [
"\terr = framework.WaitForDeploymentUpdatedReplicasLTE(c, ns, deploymentName, 1, deployment.Generation)\n",
"\t// Check if it's updated to revision 1 correctly\n",
"\t_, newRS := checkDeploymentRevision(c, ns, deploymentName, \"1\", deploymentImageName, deploymentImage)\n",
... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | test/e2e/deployment.go | 1 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.9980424642562866,
0.04784594103693962,
0.0001649269979679957,
0.003423864021897316,
0.198272243142128
] |
{
"id": 6,
"code_window": [
"\terr = framework.WaitForDeploymentUpdatedReplicasLTE(c, ns, deploymentName, 1, deployment.Generation)\n",
"\t// Check if it's updated to revision 1 correctly\n",
"\t_, newRS := checkDeploymentRevision(c, ns, deploymentName, \"1\", deploymentImageName, deploymentImage)\n",
... | /*
Copyright 2015 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | test/images/porter/porter.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.00025775146787054837,
0.00018124279449693859,
0.00016854729619808495,
0.00017096681403927505,
0.00002721100281632971
] |
{
"id": 6,
"code_window": [
"\terr = framework.WaitForDeploymentUpdatedReplicasLTE(c, ns, deploymentName, 1, deployment.Generation)\n",
"\t// Check if it's updated to revision 1 correctly\n",
"\t_, newRS := checkDeploymentRevision(c, ns, deploymentName, \"1\", deploymentImageName, deploymentImage)\n",
... | /*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | federation/client/clientset_generated/federation_release_1_4/typed/core/v1/namespace.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.000642420316580683,
0.00019578772480599582,
0.00015751719183754176,
0.00016606618009973317,
0.00011547682515811175
] |
{
"id": 6,
"code_window": [
"\terr = framework.WaitForDeploymentUpdatedReplicasLTE(c, ns, deploymentName, 1, deployment.Generation)\n",
"\t// Check if it's updated to revision 1 correctly\n",
"\t_, newRS := checkDeploymentRevision(c, ns, deploymentName, \"1\", deploymentImageName, deploymentImage)\n",
... | package members
import (
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
// ListOpts allows the filtering and sorting of paginated collections through
// the API. Filtering is achieved by passing in struct field values that map to
// the floating IP attributes you want to see retu... | vendor/github.com/rackspace/gophercloud/openstack/networking/v2/extensions/lbaas/members/requests.go | 0 | https://github.com/kubernetes/kubernetes/commit/b45afc04a2cd3eca6b36911c765213dcb0140975 | [
0.0003393425140529871,
0.00018883107986766845,
0.00016426702495664358,
0.00016801778110675514,
0.00005051785410614684
] |
{
"id": 0,
"code_window": [
"\t\"github.com/harness/gitness/types\"\n",
")\n",
"\n",
"type Controller struct {\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"type registrationCheck func(ctx context.Context) (bool, error)\n",
"\n"
],
"file_path... | // Copyright 2022 Harness Inc. All rights reserved.
// Use of this source code is governed by the Polyform Free Trial License
// that can be found in the LICENSE.md file for this repository.
package user
import (
"context"
"fmt"
"github.com/harness/gitness/internal/api/controller/system"
"github.com/harness/gitn... | internal/api/controller/user/register.go | 1 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.9956955909729004,
0.19927534461021423,
0.00016868571401573718,
0.00017032865434885025,
0.3982101082801819
] |
{
"id": 0,
"code_window": [
"\t\"github.com/harness/gitness/types\"\n",
")\n",
"\n",
"type Controller struct {\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"type registrationCheck func(ctx context.Context) (bool, error)\n",
"\n"
],
"file_path... | // Copyright 2022 Harness Inc. All rights reserved.
// Use of this source code is governed by the Polyform Free Trial License
// that can be found in the LICENSE.md file for this repository.
package authz
import (
"context"
"errors"
"github.com/harness/gitness/internal/auth"
"github.com/harness/gitness/types"
"... | internal/auth/authz/authz.go | 0 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.005490415263921022,
0.0012392040807753801,
0.00016784931358415633,
0.00016988502466119826,
0.0021256364416331053
] |
{
"id": 0,
"code_window": [
"\t\"github.com/harness/gitness/types\"\n",
")\n",
"\n",
"type Controller struct {\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"type registrationCheck func(ctx context.Context) (bool, error)\n",
"\n"
],
"file_path... | # Compiled Form Modules
*.fmx
# Compiled Menu Modules
*.mmx
# Compiled Pre-Linked Libraries
*.plx
| resources/gitignore/OracleForms.gitignore | 0 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.00017208945064339787,
0.00017208945064339787,
0.00017208945064339787,
0.00017208945064339787,
0
] |
{
"id": 0,
"code_window": [
"\t\"github.com/harness/gitness/types\"\n",
")\n",
"\n",
"type Controller struct {\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"type registrationCheck func(ctx context.Context) (bool, error)\n",
"\n"
],
"file_path... | // Copyright 2022 Harness Inc. All rights reserved.
// Use of this source code is governed by the Polyform Free Trial License
// that can be found in the LICENSE.md file for this repository.
package serviceaccount
import (
"context"
"github.com/harness/gitness/internal/auth/authz"
"github.com/harness/gitness/inte... | internal/api/controller/serviceaccount/controller.go | 0 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.9959761500358582,
0.39410680532455444,
0.0001690373755991459,
0.00024163725902326405,
0.48248937726020813
] |
{
"id": 1,
"code_window": [
"type Controller struct {\n",
"\tprincipalStore store.PrincipalStore\n",
"\tconfig *types.Config\n",
"}\n",
"\n",
"func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n",
"\treturn &Controller{\n"
],
"labels"... | // Copyright 2022 Harness Inc. All rights reserved.
// Use of this source code is governed by the Polyform Free Trial License
// that can be found in the LICENSE.md file for this repository.
package account
import (
"encoding/json"
"net/http"
"github.com/harness/gitness/internal/api/controller/user"
"github.com/... | internal/api/handler/account/register.go | 1 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.6917928457260132,
0.17307813465595245,
0.00016893376596271992,
0.00017538326210342348,
0.2994800806045532
] |
{
"id": 1,
"code_window": [
"type Controller struct {\n",
"\tprincipalStore store.PrincipalStore\n",
"\tconfig *types.Config\n",
"}\n",
"\n",
"func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n",
"\treturn &Controller{\n"
],
"labels"... | # Ignore Play! working directory #
bin/
/db
.eclipse
/lib/
/logs/
/modules
/project/project
/project/target
/target
tmp/
test-result
server.pid
*.eml
/dist/
.cache
| resources/gitignore/PlayFramework.gitignore | 0 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.00017491119797341526,
0.0001743751490721479,
0.00017383910017088056,
0.0001743751490721479,
5.360489012673497e-7
] |
{
"id": 1,
"code_window": [
"type Controller struct {\n",
"\tprincipalStore store.PrincipalStore\n",
"\tconfig *types.Config\n",
"}\n",
"\n",
"func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n",
"\treturn &Controller{\n"
],
"labels"... | CREATE INDEX webhooks_repo_id
ON webhooks(webhook_repo_id);
| internal/store/database/migrate/postgres/0008_create_index_webhooks_repo_id.up.sql | 0 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.00016560776566620916,
0.00016560776566620916,
0.00016560776566620916,
0.00016560776566620916,
0
] |
{
"id": 1,
"code_window": [
"type Controller struct {\n",
"\tprincipalStore store.PrincipalStore\n",
"\tconfig *types.Config\n",
"}\n",
"\n",
"func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n",
"\treturn &Controller{\n"
],
"labels"... | // Copyright 2022 Harness Inc. All rights reserved.
// Use of this source code is governed by the Polyform Free Trial License
// that can be found in the LICENSE.md file for this repository.
package auth
import (
"context"
"fmt"
"github.com/harness/gitness/internal/auth"
"github.com/harness/gitness/internal/auth... | internal/api/auth/auth.go | 0 | https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb | [
0.00018007760809268802,
0.00017149456834886223,
0.0001646057062316686,
0.0001718864223221317,
0.000003878102234011749
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.