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": 3, "code_window": [ "\treqd discovery.PluginRequirements,\n", ") (map[addrs.Provider]providers.Factory, []error) {\n", "\tfactories := make(map[addrs.Provider]providers.Factory, len(reqd))\n", "\tvar errs []error\n", "\n", "\tchosen := choosePlugins(r.Available, r.Internal, reqd)\n",...
package command import ( "fmt" "log" "os" "sort" "strings" "github.com/hashicorp/hcl/v2" "github.com/hashicorp/terraform-config-inspect/tfconfig" "github.com/posener/complete" "github.com/zclconf/go-cty/cty" "github.com/hashicorp/errwrap" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terra...
command/init.go
1
https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2
[ 0.9975467324256897, 0.04730893298983574, 0.00016107650299090892, 0.0001715507823973894, 0.20726631581783295 ]
{ "id": 3, "code_window": [ "\treqd discovery.PluginRequirements,\n", ") (map[addrs.Provider]providers.Factory, []error) {\n", "\tfactories := make(map[addrs.Provider]providers.Factory, len(reqd))\n", "\tvar errs []error\n", "\n", "\tchosen := choosePlugins(r.Available, r.Internal, reqd)\n",...
// Package complete provides a tool for bash writing bash completion in go. // // Writing bash completion scripts is a hard work. This package provides an easy way // to create bash completion scripts for any command, and also an easy way to install/uninstall // the completion of the command. package complete import (...
vendor/github.com/posener/complete/complete.go
0
https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2
[ 0.00017422110249754041, 0.00017011539603117853, 0.00016527915431652218, 0.00016925025556702167, 0.000003042855951207457 ]
{ "id": 3, "code_window": [ "\treqd discovery.PluginRequirements,\n", ") (map[addrs.Provider]providers.Factory, []error) {\n", "\tfactories := make(map[addrs.Provider]providers.Factory, len(reqd))\n", "\tvar errs []error\n", "\n", "\tchosen := choosePlugins(r.Available, r.Internal, reqd)\n",...
The following files were ported to Go from C files of libyaml, and thus are still covered by their original copyright and license: apic.go emitterc.go parserc.go readerc.go scannerc.go writerc.go yamlh.go yamlprivateh.go Copyright (c) 2006 Kirill Simonov Permission is hereby granted, ...
vendor/gopkg.in/yaml.v2/LICENSE.libyaml
0
https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2
[ 0.00017574807861819863, 0.0001705550093902275, 0.0001646630116738379, 0.00017090447363443673, 0.000004008731593785342 ]
{ "id": 3, "code_window": [ "\treqd discovery.PluginRequirements,\n", ") (map[addrs.Provider]providers.Factory, []error) {\n", "\tfactories := make(map[addrs.Provider]providers.Factory, len(reqd))\n", "\tvar errs []error\n", "\n", "\tchosen := choosePlugins(r.Available, r.Internal, reqd)\n",...
/* * * Copyright 2016 gRPC 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 agree...
vendor/google.golang.org/grpc/internal/transport/handler_server.go
0
https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2
[ 0.004709617234766483, 0.0002762384829111397, 0.00016044924268499017, 0.00016926511307246983, 0.0006763486308045685 ]
{ "id": 0, "code_window": [ "// guessIsRPCReq - returns true if the request is for an RPC endpoint.\n", "func guessIsRPCReq(req *http.Request) bool {\n", "\tif req == nil {\n", "\t\treturn false\n", "\t}\n", "\treturn req.Method == http.MethodPost\n", "}\n", "\n", "func (h redire...
/* * Minio Cloud Storage, (C) 2016 Minio, 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 la...
cmd/generic-handlers_test.go
1
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.9990590214729309, 0.2605735659599304, 0.0001682329166214913, 0.00028654708876274526, 0.43651798367500305 ]
{ "id": 0, "code_window": [ "// guessIsRPCReq - returns true if the request is for an RPC endpoint.\n", "func guessIsRPCReq(req *http.Request) bool {\n", "\tif req == nil {\n", "\t\treturn false\n", "\t}\n", "\treturn req.Method == http.MethodPost\n", "}\n", "\n", "func (h redire...
// 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. // Package jws provides a partial implementation // of JSON Web Signature encoding and decoding. // It exists to support the golang.org/x/oauth2 package. // // ...
vendor/golang.org/x/oauth2/jws/jws.go
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.0023669558577239513, 0.00043486221693456173, 0.0001636189263081178, 0.0001766745263012126, 0.0005225481581874192 ]
{ "id": 0, "code_window": [ "// guessIsRPCReq - returns true if the request is for an RPC endpoint.\n", "func guessIsRPCReq(req *http.Request) bool {\n", "\tif req == nil {\n", "\t\treturn false\n", "\t}\n", "\treturn req.Method == http.MethodPost\n", "}\n", "\n", "func (h redire...
/* * * Copyright 2017 gRPC 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 agree...
vendor/google.golang.org/grpc/codes/code_string.go
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.00019796400738414377, 0.00017568274051882327, 0.00016846985090523958, 0.00017247910727746785, 0.000009422447874385398 ]
{ "id": 0, "code_window": [ "// guessIsRPCReq - returns true if the request is for an RPC endpoint.\n", "func guessIsRPCReq(req *http.Request) bool {\n", "\tif req == nil {\n", "\t\treturn false\n", "\t}\n", "\treturn req.Method == http.MethodPost\n", "}\n", "\n", "func (h redire...
// 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 !go1.7 package context import ( "errors" "fmt" "sync" "time" ) // An emptyCtx is never canceled, has no values, and has no deadline. It is not ...
vendor/golang.org/x/net/context/pre_go17.go
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.000640275829937309, 0.00020066714205313474, 0.00016415728896390647, 0.00016913360741455108, 0.00009201706416206434 ]
{ "id": 1, "code_window": [ "func TestGuessIsRPC(t *testing.T) {\n", "\tif guessIsRPCReq(nil) {\n", "\t\tt.Fatal(\"Unexpected return for nil request\")\n", "\t}\n", "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n" ], "labels": [ "keep", ...
/* * Minio Cloud Storage, (C) 2016 Minio, 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 la...
cmd/generic-handlers_test.go
1
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.9984796643257141, 0.23619234561920166, 0.0001652901992201805, 0.0003217664489056915, 0.4068933129310608 ]
{ "id": 1, "code_window": [ "func TestGuessIsRPC(t *testing.T) {\n", "\tif guessIsRPCReq(nil) {\n", "\t\tt.Fatal(\"Unexpected return for nil request\")\n", "\t}\n", "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n" ], "labels": [ "keep", ...
/* * Minio Cloud Storage, (C) 2016 Minio, 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 la...
cmd/tree-walk.go
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.00017857804778032005, 0.00017048415611498058, 0.00016308452177327126, 0.00017059530364349484, 0.0000034388281164865475 ]
{ "id": 1, "code_window": [ "func TestGuessIsRPC(t *testing.T) {\n", "\tif guessIsRPCReq(nil) {\n", "\t\tt.Fatal(\"Unexpected return for nil request\")\n", "\t}\n", "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n" ], "labels": [ "keep", ...
The MIT License (MIT) Copyright (c) 2016 Apcera Inc. 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, publ...
vendor/github.com/nats-io/go-nats-streaming/LICENSE
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.00017838674830272794, 0.00017458002548664808, 0.00017066810687538236, 0.0001746851921780035, 0.000003151999635520042 ]
{ "id": 1, "code_window": [ "func TestGuessIsRPC(t *testing.T) {\n", "\tif guessIsRPCReq(nil) {\n", "\t\tt.Fatal(\"Unexpected return for nil request\")\n", "\t}\n", "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n" ], "labels": [ "keep", ...
// Copyright 2015 The etcd 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 t...
vendor/github.com/coreos/etcd/pkg/logutil/merge_logger.go
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.00018221713253296912, 0.00017338038014713675, 0.00016629497986286879, 0.00017347416724078357, 0.0000037852009882044513 ]
{ "id": 2, "code_window": [ "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n", "\t}\n", "\tif !guessIsRPCReq(r) {\n", "\t\tt.Fatal(\"Test shouldn't fail for a possible net/rpc request.\")\n", "\t}\n" ], "labels": [ "keep", "keep", ...
/* * Minio Cloud Storage, (C) 2016 Minio, 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 la...
cmd/generic-handlers_test.go
1
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.9981392621994019, 0.18822278082370758, 0.00016490199777763337, 0.00030458628316409886, 0.3657934367656708 ]
{ "id": 2, "code_window": [ "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n", "\t}\n", "\tif !guessIsRPCReq(r) {\n", "\t\tt.Fatal(\"Test shouldn't fail for a possible net/rpc request.\")\n", "\t}\n" ], "labels": [ "keep", "keep", ...
// Copyright (c) 2016 Uber Technologies, Inc. // // 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...
vendor/go.uber.org/atomic/string.go
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.00018264677783008665, 0.00017416475748177618, 0.0001660745620029047, 0.00017531821504235268, 0.000005719477940147044 ]
{ "id": 2, "code_window": [ "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n", "\t}\n", "\tif !guessIsRPCReq(r) {\n", "\t\tt.Fatal(\"Test shouldn't fail for a possible net/rpc request.\")\n", "\t}\n" ], "labels": [ "keep", "keep", ...
// Copyright 2012-present Oliver Eilhard. All rights reserved. // Use of this source code is governed by a MIT-license. // See http://olivere.mit-license.org/license.txt for details. package elastic import ( "time" ) // RangeAggregation is a multi-bucket value source based aggregation that // enables the user to de...
vendor/gopkg.in/olivere/elastic.v5/search_aggs_bucket_range.go
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.003730162512511015, 0.0005032432381995022, 0.0001658160035731271, 0.00017166425823234022, 0.0009333865600638092 ]
{ "id": 2, "code_window": [ "\tr := &http.Request{\n", "\t\tProto: \"HTTP/1.0\",\n", "\t\tMethod: http.MethodPost,\n", "\t}\n", "\tif !guessIsRPCReq(r) {\n", "\t\tt.Fatal(\"Test shouldn't fail for a possible net/rpc request.\")\n", "\t}\n" ], "labels": [ "keep", "keep", ...
/* * Minio Cloud Storage (C) 2018 Minio, 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...
browser/app/js/objects/__tests__/ObjectsList.test.js
0
https://github.com/minio/minio/commit/40852801ea63d0e10f220c0d7d2a8d6a8efa5688
[ 0.0001775571145117283, 0.00017322039639111608, 0.00016738071280997247, 0.00017397185729350895, 0.000003677780796351726 ]
{ "id": 0, "code_window": [ "func (container *Container) Mount() error {\n", "\timage, err := container.GetImage()\n", "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\treturn image.Mount(container.RootfsPath(), container.rwPath())\n", "}\n", "\n", "func (container *Containe...
package docker import ( "crypto/rand" "encoding/hex" "encoding/json" "fmt" "github.com/dotcloud/docker/utils" "io" "io/ioutil" "log" "os" "os/exec" "path" "path/filepath" "strconv" "strings" "time" ) type Image struct { ID string `json:"id"` Parent string `json:"parent,omi...
image.go
1
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.9947356581687927, 0.05348462983965874, 0.00016550846339669079, 0.00017057699733413756, 0.21534688770771027 ]
{ "id": 0, "code_window": [ "func (container *Container) Mount() error {\n", "\timage, err := container.GetImage()\n", "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\treturn image.Mount(container.RootfsPath(), container.rwPath())\n", "}\n", "\n", "func (container *Containe...
// 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 ipv6_test import ( "code.google.com/p/go.net/ipv6" "net" "os" "runtime" "testing" ) var packetConnMulticastSocketOptionTests = []struct { net, ...
vendor/src/code.google.com/p/go.net/ipv6/multicastsockopt_test.go
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.0001905660901684314, 0.00017359419143758714, 0.00016675848746672273, 0.00017156990361399949, 0.000006923960427229758 ]
{ "id": 0, "code_window": [ "func (container *Container) Mount() error {\n", "\timage, err := container.GetImage()\n", "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\treturn image.Mount(container.RootfsPath(), container.rwPath())\n", "}\n", "\n", "func (container *Containe...
package pty import ( "errors" "os" "syscall" "unsafe" ) // see ioccom.h const sys_IOCPARM_MASK = 0x1fff func open() (pty, tty *os.File, err error) { p, err := os.OpenFile("/dev/ptmx", os.O_RDWR, 0) if err != nil { return nil, nil, err } sname, err := ptsname(p) if err != nil { return nil, nil, err } ...
vendor/src/github.com/kr/pty/pty_darwin.go
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.00019318278646096587, 0.00017106952145695686, 0.00016326858894899487, 0.00016798269643913954, 0.000009519344530417584 ]
{ "id": 0, "code_window": [ "func (container *Container) Mount() error {\n", "\timage, err := container.GetImage()\n", "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\treturn image.Mount(container.RootfsPath(), container.rwPath())\n", "}\n", "\n", "func (container *Containe...
# Docker: what's next? This document is a high-level overview of where we want to take Docker next. It is a curated selection of planned improvements which are either important, difficult, or both. For a more complete view of planned and requested improvements, see [the Github issues](https://github.com/dotcloud/dock...
hack/ROADMAP.md
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.0001902621443150565, 0.0001717723935144022, 0.00016300212882924825, 0.0001663022703723982, 0.000010137748176930472 ]
{ "id": 1, "code_window": [ "\t\t}\n", "\t}\n", "}\n", "\n", "func TestMount(t *testing.T) {\n", "\tgraph := tempGraph(t)\n", "\tdefer os.RemoveAll(graph.Root)\n", "\tarchive, err := fakeTar()\n", "\tif err != nil {\n" ], "labels": [ "keep", "keep", "keep", "k...
package docker import ( "archive/tar" "bytes" "errors" "github.com/dotcloud/docker/utils" "io" "io/ioutil" "os" "path" "testing" "time" ) func TestInit(t *testing.T) { graph := tempGraph(t) defer os.RemoveAll(graph.Root) // Root should exist if _, err := os.Stat(graph.Root); err != nil { t.Fatal(err) ...
graph_test.go
1
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.9980251789093018, 0.680218517780304, 0.00016662639973219484, 0.9375990629196167, 0.41370993852615356 ]
{ "id": 1, "code_window": [ "\t\t}\n", "\t}\n", "}\n", "\n", "func TestMount(t *testing.T) {\n", "\tgraph := tempGraph(t)\n", "\tdefer os.RemoveAll(graph.Root)\n", "\tarchive, err := fakeTar()\n", "\tif err != nil {\n" ], "labels": [ "keep", "keep", "keep", "k...
/*! * Bootstrap v2.3.0 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:"...
docs/theme/docker/static/css/bootstrap.min.css
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.0001705698377918452, 0.0001705698377918452, 0.0001705698377918452, 0.0001705698377918452, 0 ]
{ "id": 1, "code_window": [ "\t\t}\n", "\t}\n", "}\n", "\n", "func TestMount(t *testing.T) {\n", "\tgraph := tempGraph(t)\n", "\tdefer os.RemoveAll(graph.Root)\n", "\tarchive, err := fakeTar()\n", "\tif err != nil {\n" ], "labels": [ "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 ipv6 import "syscall" func ipv6PathMTU(fd int) (int, error) { // TODO(mikio): Implement this return 0, syscall.EPLAN9 }
vendor/src/code.google.com/p/go.net/ipv6/sockopt_rfc3542_plan9.go
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.0001756335113896057, 0.00017347378889098763, 0.0001713140809442848, 0.00017347378889098763, 0.000002159715222660452 ]
{ "id": 1, "code_window": [ "\t\t}\n", "\t}\n", "}\n", "\n", "func TestMount(t *testing.T) {\n", "\tgraph := tempGraph(t)\n", "\tdefer os.RemoveAll(graph.Root)\n", "\tarchive, err := fakeTar()\n", "\tif err != nil {\n" ], "labels": [ "keep", "keep", "keep", "k...
Docker on Arch ============== The AUR lxc-docker and lxc-docker-git packages handle building docker on Arch linux. The PKGBUILD specifies all dependencies, build, and packaging steps. Dependencies ============ The only buildtime dependencies are git and go which are available via pacman. The -s flag can be used on ...
packaging/archlinux/README.archlinux
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.00017378144548274577, 0.0001683299196884036, 0.00016410171519964933, 0.0001671065838309005, 0.0000040453014662489295 ]
{ "id": 2, "code_window": [ "\trw := path.Join(tmp, \"rw\")\n", "\tif err := os.MkdirAll(rw, 0700); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\tif err := image.Mount(rootfs, rw); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\t// FIXME: test for mount contents\n" ], "la...
package docker import ( "archive/tar" "bytes" "errors" "github.com/dotcloud/docker/utils" "io" "io/ioutil" "os" "path" "testing" "time" ) func TestInit(t *testing.T) { graph := tempGraph(t) defer os.RemoveAll(graph.Root) // Root should exist if _, err := os.Stat(graph.Root); err != nil { t.Fatal(err) ...
graph_test.go
1
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.9985253214836121, 0.042113419622182846, 0.00016298596165142953, 0.00030991656240075827, 0.17969562113285065 ]
{ "id": 2, "code_window": [ "\trw := path.Join(tmp, \"rw\")\n", "\tif err := os.MkdirAll(rw, 0700); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\tif err := image.Mount(rootfs, rw); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\t// FIXME: test for mount contents\n" ], "la...
# Hacking on Docker The hack/ directory holds information and tools for everyone involved in the process of creating and distributing Docker, specifically: ## Guides If you're a *contributor* or aspiring contributor, you should read CONTRIBUTORS.md. If you're a *maintainer* or aspiring maintainer, you should read M...
hack/README.md
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.00017065134306903929, 0.00016731633513700217, 0.00016386123024858534, 0.00016743643209338188, 0.0000027733522074413486 ]
{ "id": 2, "code_window": [ "\trw := path.Join(tmp, \"rw\")\n", "\tif err := os.MkdirAll(rw, 0700); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\tif err := image.Mount(rootfs, rw); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\t// FIXME: test for mount contents\n" ], "la...
:title: Registry API :description: API Documentation for Docker Registry :keywords: API, Docker, index, registry, REST, documentation =================== Docker Registry API =================== 1. Brief introduction ===================== - This is the REST API for the Docker Registry - It stores the images and the ...
docs/sources/api/registry_api.rst
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.00018918848945759237, 0.00017077999655157328, 0.00016037476598285139, 0.00017091807967517525, 0.000004581183020491153 ]
{ "id": 2, "code_window": [ "\trw := path.Join(tmp, \"rw\")\n", "\tif err := os.MkdirAll(rw, 0700); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\tif err := image.Mount(rootfs, rw); err != nil {\n", "\t\tt.Fatal(err)\n", "\t}\n", "\t// FIXME: test for mount contents\n" ], "la...
:title: Registry Documentation :description: Documentation for docker Registry and Registry API :keywords: docker, registry, api, index .. _registryindexspec: ===================== Registry & Index Spec ===================== 1. The 3 roles =============== 1.1 Index --------- The Index is responsible for centralizi...
docs/sources/api/registry_index_spec.rst
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.00022081827046349645, 0.00017013699107337743, 0.00016037476598285139, 0.00017020769882947206, 0.0000077476388469222 ]
{ "id": 3, "code_window": [ "\t}\n", "\treturn Tar(layerPath, compression)\n", "}\n", "\n", "func (image *Image) Mount(root, rw string) error {\n", "\tif mounted, err := Mounted(root); err != nil {\n", "\t\treturn err\n", "\t} else if mounted {\n", "\t\treturn fmt.Errorf(\"%s is ...
package docker import ( "encoding/json" "errors" "flag" "fmt" "github.com/dotcloud/docker/term" "github.com/dotcloud/docker/utils" "github.com/kr/pty" "io" "io/ioutil" "log" "net" "os" "os/exec" "path" "path/filepath" "strconv" "strings" "syscall" "time" ) type Container struct { root string ID ...
container.go
1
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.9976339340209961, 0.048469215631484985, 0.00016336746921297163, 0.00017027735884767026, 0.19831009209156036 ]
{ "id": 3, "code_window": [ "\t}\n", "\treturn Tar(layerPath, compression)\n", "}\n", "\n", "func (image *Image) Mount(root, rw string) error {\n", "\tif mounted, err := Mounted(root); err != nil {\n", "\t\treturn err\n", "\t} else if mounted {\n", "\t\treturn fmt.Errorf(\"%s is ...
#data <!DOCTYPE html><p><b><i><u></p> <p>X #errors Line: 1 Col: 31 Unexpected end tag (p). Ignored. Line: 1 Col: 36 Expected closing tag. Unexpected end of file. #document | <!DOCTYPE html> | <html> | <head> | <body> | <p> | <b> | <i> | <u> | <b> | <i> | <u> | ...
vendor/src/code.google.com/p/go.net/html/testdata/webkit/tests15.dat
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.0001779620215529576, 0.00017236989515367895, 0.00016673973004799336, 0.00017306524387095124, 0.000003384068122613826 ]
{ "id": 3, "code_window": [ "\t}\n", "\treturn Tar(layerPath, compression)\n", "}\n", "\n", "func (image *Image) Mount(root, rw string) error {\n", "\tif mounted, err := Mounted(root); err != nil {\n", "\t\treturn err\n", "\t} else if mounted {\n", "\t\treturn fmt.Errorf(\"%s is ...
// 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 darwin freebsd linux netbsd openbsd windows package ipv4_test import ( "code.google.com/p/go.net/ipv4" "net" "os" "runtime" "testing" ) type ...
vendor/src/code.google.com/p/go.net/ipv4/multicastsockopt_test.go
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.0002604246838018298, 0.0001834716968005523, 0.0001688886695774272, 0.00017046609718818218, 0.000027219706680625677 ]
{ "id": 3, "code_window": [ "\t}\n", "\treturn Tar(layerPath, compression)\n", "}\n", "\n", "func (image *Image) Mount(root, rw string) error {\n", "\tif mounted, err := Mounted(root); err != nil {\n", "\t\treturn err\n", "\t} else if mounted {\n", "\t\treturn fmt.Errorf(\"%s is ...
.. note:: Docker is still under heavy development! We don't recommend using it in production yet, but we're getting closer with each release. Please see our blog post, `"Getting to Docker 1.0" <http://blog.docker.io/2013/08/getting-to-docker-1-0/>`_
docs/sources/installation/install_header.inc
0
https://github.com/moby/moby/commit/e368c8bb01b3c52c8e4c334c3a7f32556af9d632
[ 0.00017332271090708673, 0.00017332271090708673, 0.00017332271090708673, 0.00017332271090708673, 0 ]
{ "id": 0, "code_window": [ "// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.\n", "\n", "package trie\n", "\n", "import (\n", "\t\"fmt\"\n", "\t\"sync\"\n", "\n", "\t\"github.com/ethereum/go-ethereum/common\"\n" ], "labels": [ "keep", ...
// Copyright 2020 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...
trie/stacktrie.go
1
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.0249385554343462, 0.000842181034386158, 0.00016345785115845501, 0.00017017035861499608, 0.003828583052381873 ]
{ "id": 0, "code_window": [ "// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.\n", "\n", "package trie\n", "\n", "import (\n", "\t\"fmt\"\n", "\t\"sync\"\n", "\n", "\t\"github.com/ethereum/go-ethereum/common\"\n" ], "labels": [ "keep", ...
# Prover implementation for Weierstrass curves of the form # y^2 = x^3 + A * x + B, specifically with a = 0 and b = 7, with group laws # operating on affine and Jacobian coordinates, including the point at infinity # represented by a 4th variable in coordinates. load("group_prover.sage") class affinepoint: def __i...
crypto/secp256k1/libsecp256k1/sage/weierstrass_prover.sage
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00017610019131097943, 0.00017019937513396144, 0.00016246414452325553, 0.00017042318359017372, 0.000003065612645514193 ]
{ "id": 0, "code_window": [ "// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.\n", "\n", "package trie\n", "\n", "import (\n", "\t\"fmt\"\n", "\t\"sync\"\n", "\n", "\t\"github.com/ethereum/go-ethereum/common\"\n" ], "labels": [ "keep", ...
[{"X":"0000000000000000000000000000000000000000000000000000000000000000","Y":"0000000000000000000000000000000000000000000000000000000000000000","Expected":"0000000000000000000000000000000000000000000000000000000000000000"},{"X":"0000000000000000000000000000000000000000000000000000000000000000","Y":"00000000000000000000...
core/vm/testdata/testcases_add.json
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.0038521396927535534, 0.0038521396927535534, 0.0038521396927535534, 0.0038521396927535534, 0 ]
{ "id": 0, "code_window": [ "// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.\n", "\n", "package trie\n", "\n", "import (\n", "\t\"fmt\"\n", "\t\"sync\"\n", "\n", "\t\"github.com/ethereum/go-ethereum/common\"\n" ], "labels": [ "keep", ...
// +build !go1.4 package log import ( "sync/atomic" "unsafe" ) // swapHandler wraps another handler that may be swapped out // dynamically at runtime in a thread-safe fashion. type swapHandler struct { handler unsafe.Pointer } func (h *swapHandler) Log(r *Record) error { return h.Get().Log(r) } func (h *swapHa...
log/handler_go13.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.0003386034513823688, 0.0002234099229099229, 0.00016511046851519495, 0.00016651586338412017, 0.00008145614265231416 ]
{ "id": 1, "code_window": [ "\t\"github.com/ethereum/go-ethereum/log\"\n", "\t\"github.com/ethereum/go-ethereum/rlp\"\n", ")\n", "\n", "var stPool = sync.Pool{\n", "\tNew: func() interface{} {\n", "\t\treturn NewStackTrie(nil)\n", "\t},\n", "}\n" ], "labels": [ "keep", ...
// Copyright 2020 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...
trie/stacktrie.go
1
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.9986255168914795, 0.11243975907564163, 0.0001617150119272992, 0.0003507300280034542, 0.29800695180892944 ]
{ "id": 1, "code_window": [ "\t\"github.com/ethereum/go-ethereum/log\"\n", "\t\"github.com/ethereum/go-ethereum/rlp\"\n", ")\n", "\n", "var stPool = sync.Pool{\n", "\tNew: func() interface{} {\n", "\t\treturn NewStackTrie(nil)\n", "\t},\n", "}\n" ], "labels": [ "keep", ...
package bn256 // For details of the algorithms used, see "Multiplication and Squaring on // Pairing-Friendly Fields, Devegili et al. // http://eprint.iacr.org/2006/471.pdf. import ( "math/big" ) // gfP12 implements the field of size p¹² as a quadratic extension of gfP6 // where ω²=τ. type gfP12 struct { x, y gfP6 ...
crypto/bn256/cloudflare/gfp12.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00018069869838654995, 0.00017163058510050178, 0.00016005546785891056, 0.0001714245299808681, 0.000004401892965688603 ]
{ "id": 1, "code_window": [ "\t\"github.com/ethereum/go-ethereum/log\"\n", "\t\"github.com/ethereum/go-ethereum/rlp\"\n", ")\n", "\n", "var stPool = sync.Pool{\n", "\tNew: func() interface{} {\n", "\t\treturn NewStackTrie(nil)\n", "\t},\n", "}\n" ], "labels": [ "keep", ...
// Copyright 2020 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...
internal/utesting/utesting_test.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00017769854457583278, 0.00016975983453448862, 0.00016171486640814692, 0.00017082462727557868, 0.00000535710978510906 ]
{ "id": 1, "code_window": [ "\t\"github.com/ethereum/go-ethereum/log\"\n", "\t\"github.com/ethereum/go-ethereum/rlp\"\n", ")\n", "\n", "var stPool = sync.Pool{\n", "\tNew: func() interface{} {\n", "\t\treturn NewStackTrie(nil)\n", "\t},\n", "}\n" ], "labels": [ "keep", ...
[ { "Input": "0000000000000000000000000000000017f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb0000000000000000000000000000000008b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e10000000000000000000000000000000017f1d3a73197...
core/vm/testdata/precompiles/blsG1Add.json
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.009971192106604576, 0.0017075450159609318, 0.0001727529743220657, 0.0006690306472592056, 0.0021978437434881926 ]
{ "id": 2, "code_window": [ "\t\treturn common.BytesToHash(ret)\n", "\t}\n", "\treturn common.BytesToHash(st.val)\n", "}\n", "\n", "// Commit will commit the current node to database db\n", "func (st *StackTrie) Commit(db ethdb.KeyValueStore) common.Hash {\n", "\toldDb := st.db\n", ...
// Copyright 2020 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...
trie/stacktrie.go
1
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.9978173971176147, 0.1172669306397438, 0.00016884019714780152, 0.0035013933666050434, 0.2786172032356262 ]
{ "id": 2, "code_window": [ "\t\treturn common.BytesToHash(ret)\n", "\t}\n", "\treturn common.BytesToHash(st.val)\n", "}\n", "\n", "// Commit will commit the current node to database db\n", "func (st *StackTrie) Commit(db ethdb.KeyValueStore) common.Hash {\n", "\toldDb := st.db\n", ...
{"address":"289d485d9771714cce91d3393d764e1311907acc","crypto":{"cipher":"aes-128-ctr","ciphertext":"faf32ca89d286b107f5e6d842802e05263c49b78d46eac74e6109e9a963378ab","cipherparams":{"iv":"558833eec4a665a8c55608d7d503407d"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"d571fff447ffb24314f9513f516024...
accounts/keystore/testdata/keystore/zzz
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00016813926049508154, 0.00016813926049508154, 0.00016813926049508154, 0.00016813926049508154, 0 ]
{ "id": 2, "code_window": [ "\t\treturn common.BytesToHash(ret)\n", "\t}\n", "\treturn common.BytesToHash(st.val)\n", "}\n", "\n", "// Commit will commit the current node to database db\n", "func (st *StackTrie) Commit(db ethdb.KeyValueStore) common.Hash {\n", "\toldDb := st.db\n", ...
// Copyright 2017 The go-ethereum Authors // This file is part of go-ethereum. // // go-ethereum is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
cmd/puppeth/module.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00031655366183258593, 0.00018439910490997136, 0.00016640093235764652, 0.00016954075545072556, 0.000038205784221645445 ]
{ "id": 2, "code_window": [ "\t\treturn common.BytesToHash(ret)\n", "\t}\n", "\treturn common.BytesToHash(st.val)\n", "}\n", "\n", "// Commit will commit the current node to database db\n", "func (st *StackTrie) Commit(db ethdb.KeyValueStore) common.Hash {\n", "\toldDb := st.db\n", ...
{ "context": { "difficulty": "3755480783", "gasLimit": "5401723", "miner": "0xd049bfd667cb46aa3ef5df0da3e57db3be39e511", "number": "2294702", "timestamp": "1513676146" }, "genesis": { "alloc": { "0x13e4acefe6a6700604929946e70e6443e4e73447": { "balance": "0xcf3e0938579f000", ...
eth/tracers/testdata/call_tracer_create.json
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.012357435189187527, 0.0033941336441785097, 0.00016715170932002366, 0.00020009871514048427, 0.004771409556269646 ]
{ "id": 3, "code_window": [ "\tst.hash()\n", "\th := common.BytesToHash(st.val)\n", "\treturn h\n", "}" ], "labels": [ "keep", "keep", "replace", "keep" ], "after_edit": [ "\treturn h, nil\n" ], "file_path": "trie/stacktrie.go", "type": "replace", "edit_start_line...
// Copyright 2020 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...
trie/stacktrie.go
1
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.9980947375297546, 0.21404887735843658, 0.00016555123147554696, 0.00029963775887154043, 0.39744433760643005 ]
{ "id": 3, "code_window": [ "\tst.hash()\n", "\th := common.BytesToHash(st.val)\n", "\treturn h\n", "}" ], "labels": [ "keep", "keep", "replace", "keep" ], "after_edit": [ "\treturn h, nil\n" ], "file_path": "trie/stacktrie.go", "type": "replace", "edit_start_line...
// Copyright 2019 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...
ethdb/dbtest/testsuite.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00017606945766601712, 0.00017021165695041418, 0.00016342308663297445, 0.0001707252231426537, 0.0000030730254820809932 ]
{ "id": 3, "code_window": [ "\tst.hash()\n", "\th := common.BytesToHash(st.val)\n", "\treturn h\n", "}" ], "labels": [ "keep", "keep", "replace", "keep" ], "after_edit": [ "\treturn h, nil\n" ], "file_path": "trie/stacktrie.go", "type": "replace", "edit_start_line...
## Fuzzers To run a fuzzer locally, you need [go-fuzz](https://github.com/dvyukov/go-fuzz) installed. First build a fuzzing-binary out of the selected package: ``` (cd ./rlp && CGO_ENABLED=0 go-fuzz-build .) ``` That command should generate a `rlp-fuzz.zip` in the `rlp/` directory. If you are already in that direct...
tests/fuzzers/README.md
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.0001729016366880387, 0.00016968019190244377, 0.00016744903405196965, 0.0001694474194664508, 0.0000018379537323198747 ]
{ "id": 3, "code_window": [ "\tst.hash()\n", "\th := common.BytesToHash(st.val)\n", "\treturn h\n", "}" ], "labels": [ "keep", "keep", "replace", "keep" ], "after_edit": [ "\treturn h, nil\n" ], "file_path": "trie/stacktrie.go", "type": "replace", "edit_start_line...
// Copyright 2019 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/asm/compiler_test.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00018234869639854878, 0.00017395534086972475, 0.00016997690545395017, 0.00017269534873776138, 0.0000036468097732722526 ]
{ "id": 4, "code_window": [ "\t\troot, _ := trie.Commit(nil)\n", "\t\t// Flush memdb -> disk (sponge)\n", "\t\tdb.Commit(root, false, nil)\n", "\t\t// And flush stacktrie -> disk\n", "\t\tstRoot := stTrie.Commit(stTrie.db)\n", "\t\tif stRoot != root {\n", "\t\t\tt.Fatalf(\"root wrong, go...
// Copyright 2020 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...
trie/stacktrie.go
1
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.0071600996889173985, 0.00042786780977621675, 0.00016476384189445525, 0.0001743143075145781, 0.0010984196560457349 ]
{ "id": 4, "code_window": [ "\t\troot, _ := trie.Commit(nil)\n", "\t\t// Flush memdb -> disk (sponge)\n", "\t\tdb.Commit(root, false, nil)\n", "\t\t// And flush stacktrie -> disk\n", "\t\tstRoot := stTrie.Commit(stTrie.db)\n", "\t\tif stRoot != root {\n", "\t\t\tt.Fatalf(\"root wrong, go...
// Copyright 2018 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...
metrics/cpu_syscall.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.00017836854385677725, 0.0001752369134919718, 0.00017068632587324828, 0.00017594639211893082, 0.0000029491204713849584 ]
{ "id": 4, "code_window": [ "\t\troot, _ := trie.Commit(nil)\n", "\t\t// Flush memdb -> disk (sponge)\n", "\t\tdb.Commit(root, false, nil)\n", "\t\t// And flush stacktrie -> disk\n", "\t\tstRoot := stTrie.Commit(stTrie.db)\n", "\t\tif stRoot != root {\n", "\t\t\tt.Fatalf(\"root wrong, go...
// Copyright 2017 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/accounts.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.0003526221262291074, 0.000178751623025164, 0.00016244572179857641, 0.00017104213475249708, 0.00003729488162207417 ]
{ "id": 4, "code_window": [ "\t\troot, _ := trie.Commit(nil)\n", "\t\t// Flush memdb -> disk (sponge)\n", "\t\tdb.Commit(root, false, nil)\n", "\t\t// And flush stacktrie -> disk\n", "\t\tstRoot := stTrie.Commit(stTrie.db)\n", "\t\tif stRoot != root {\n", "\t\t\tt.Fatalf(\"root wrong, go...
// 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...
rlp/raw.go
0
https://github.com/ethereum/go-ethereum/commit/86dd005544179818edd78ef6c9396b9574e8a614
[ 0.0014264759374782443, 0.0002499202382750809, 0.00016480250633321702, 0.00017548369942232966, 0.0002801776572596282 ]
{ "id": 0, "code_window": [ "\t// State returns a wrapper object that provides safe concurrent access to\n", "\t// the global state.\n", "\tState() *states.SyncState\n", "\n", "\t// InstanceExpander returns a helper object for tracking the expansion of\n", "\t// graph nodes during the plan p...
package terraform import ( "github.com/hashicorp/hcl/v2" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/configs/configschema" "github.com/hashicorp/terraform/instances" "github.com/hashicorp/terraform/lang" "github.com/hashicorp/terraform/plans" "github.com/hashicorp/terraform/providers"...
terraform/eval_context.go
1
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.19656337797641754, 0.016452666372060776, 0.00016635381325613707, 0.0005115379462949932, 0.047253601253032684 ]
{ "id": 0, "code_window": [ "\t// State returns a wrapper object that provides safe concurrent access to\n", "\t// the global state.\n", "\tState() *states.SyncState\n", "\n", "\t// InstanceExpander returns a helper object for tracking the expansion of\n", "\t// graph nodes during the plan p...
/* * * Copyright 2018 gRPC 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 agree...
vendor/google.golang.org/grpc/version.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.00016951560974121094, 0.00016892807616386563, 0.00016783156024757773, 0.00016943707305472344, 7.760198741380009e-7 ]
{ "id": 0, "code_window": [ "\t// State returns a wrapper object that provides safe concurrent access to\n", "\t// the global state.\n", "\tState() *states.SyncState\n", "\n", "\t// InstanceExpander returns a helper object for tracking the expansion of\n", "\t// graph nodes during the plan p...
--- layout: "functions" page_title: "base64gzip - Functions - Configuration Language" sidebar_current: "docs-funcs-encoding-base64gzip" description: |- The base64encode function compresses the given string with gzip and then encodes the result in Base64. --- # `base64gzip` Function -> **Note:** This page is about...
website/docs/configuration/functions/base64gzip.html.md
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0001689988566795364, 0.00016729356138966978, 0.00016555629554204643, 0.00016730953939259052, 0.0000013271255738800392 ]
{ "id": 0, "code_window": [ "\t// State returns a wrapper object that provides safe concurrent access to\n", "\t// the global state.\n", "\tState() *states.SyncState\n", "\n", "\t// InstanceExpander returns a helper object for tracking the expansion of\n", "\t// graph nodes during the plan p...
package api import ( "encoding/json" "fmt" "path" "sync" "time" ) const ( // DefaultSemaphoreSessionName is the Session Name we assign if none is provided DefaultSemaphoreSessionName = "Consul API Semaphore" // DefaultSemaphoreSessionTTL is the default session TTL if no Session is provided // when creating ...
vendor/github.com/hashicorp/consul/api/semaphore.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0013380693271756172, 0.00028799346182495356, 0.0001644627918722108, 0.00020857671916019171, 0.00021632740390487015 ]
{ "id": 1, "code_window": [ "\tProvisionerLock *sync.Mutex\n", "\tChangesValue *plans.ChangesSync\n", "\tStateValue *states.SyncState\n", "\tInstanceExpanderValue *instances.Expander\n", "}\n", "\n", "// BuiltinEvalContext implements EvalContext\n", "var _ E...
package terraform import ( "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hcldec" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/configs/configschema" "github.com/hashicorp/terraform/instances" "github.com/hashicorp/terraform/lang" "github.com/hashicorp/terraform/plans" "git...
terraform/eval_context_mock.go
1
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.7416344285011292, 0.02281353250145912, 0.00016742605657782406, 0.0003457686980254948, 0.12332039326429367 ]
{ "id": 1, "code_window": [ "\tProvisionerLock *sync.Mutex\n", "\tChangesValue *plans.ChangesSync\n", "\tStateValue *states.SyncState\n", "\tInstanceExpanderValue *instances.Expander\n", "}\n", "\n", "// BuiltinEvalContext implements EvalContext\n", "var _ E...
// Package token defines constants representing the lexical tokens for HCL // (HashiCorp Configuration Language) package token import ( "fmt" "strconv" "strings" hclstrconv "github.com/hashicorp/hcl/hcl/strconv" ) // Token defines a single HCL token which can be obtained via the Scanner type Token struct { Type...
vendor/github.com/hashicorp/hcl/hcl/token/token.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.00017630329239182174, 0.00016924994997680187, 0.00016008935926947743, 0.00016850174870342016, 0.000004712228019343456 ]
{ "id": 1, "code_window": [ "\tProvisionerLock *sync.Mutex\n", "\tChangesValue *plans.ChangesSync\n", "\tStateValue *states.SyncState\n", "\tInstanceExpanderValue *instances.Expander\n", "}\n", "\n", "// BuiltinEvalContext implements EvalContext\n", "var _ E...
// Copyright 2016 Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package uuid import ( "encoding/binary" ) // NewUUID returns a Version 1 UUID based on the current NodeID and clock // sequence, and the current time. If the N...
vendor/github.com/google/uuid/version1.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.00017742915952112526, 0.000173190186615102, 0.00016572528693359345, 0.0001748781796777621, 0.000004065717803314328 ]
{ "id": 1, "code_window": [ "\tProvisionerLock *sync.Mutex\n", "\tChangesValue *plans.ChangesSync\n", "\tStateValue *states.SyncState\n", "\tInstanceExpanderValue *instances.Expander\n", "}\n", "\n", "// BuiltinEvalContext implements EvalContext\n", "var _ E...
/* Copyright 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, softw...
vendor/k8s.io/api/authentication/v1beta1/generated.pb.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.00018761359388008714, 0.0001722054003039375, 0.00016232929192483425, 0.00017279943858738989, 0.000003370803824509494 ]
{ "id": 2, "code_window": [ "\n", "func (ctx *BuiltinEvalContext) State() *states.SyncState {\n", "\treturn ctx.StateValue\n", "}\n", "\n", "func (ctx *BuiltinEvalContext) InstanceExpander() *instances.Expander {\n", "\treturn ctx.InstanceExpanderValue\n", "}" ], "labels": [ ...
package terraform import ( "context" "fmt" "log" "sync" "github.com/hashicorp/terraform/instances" "github.com/hashicorp/terraform/plans" "github.com/hashicorp/terraform/providers" "github.com/hashicorp/terraform/provisioners" "github.com/hashicorp/terraform/version" "github.com/hashicorp/terraform/states"...
terraform/eval_context_builtin.go
1
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.9700844287872314, 0.25779813528060913, 0.00016753720410633832, 0.024033887311816216, 0.3502471148967743 ]
{ "id": 2, "code_window": [ "\n", "func (ctx *BuiltinEvalContext) State() *states.SyncState {\n", "\treturn ctx.StateValue\n", "}\n", "\n", "func (ctx *BuiltinEvalContext) InstanceExpander() *instances.Expander {\n", "\treturn ctx.InstanceExpanderValue\n", "}" ], "labels": [ ...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package sts import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" "github.com/aws/aws-s...
vendor/github.com/aws/aws-sdk-go/service/sts/service.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0003655701584648341, 0.00019848791998811066, 0.00016813042748253793, 0.00017413057503290474, 0.00005775904355687089 ]
{ "id": 2, "code_window": [ "\n", "func (ctx *BuiltinEvalContext) State() *states.SyncState {\n", "\treturn ctx.StateValue\n", "}\n", "\n", "func (ctx *BuiltinEvalContext) InstanceExpander() *instances.Expander {\n", "\treturn ctx.InstanceExpanderValue\n", "}" ], "labels": [ ...
package jsoniter import ( "strconv" ) type int32Any struct { baseAny val int32 } func (any *int32Any) LastError() error { return nil } func (any *int32Any) ValueType() ValueType { return NumberValue } func (any *int32Any) MustBeValid() Any { return any } func (any *int32Any) ToBool() bool { return any.val ...
vendor/github.com/json-iterator/go/any_int32.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0015132559929043055, 0.0006668336573056877, 0.00017058104276657104, 0.000619142665527761, 0.00041044101817533374 ]
{ "id": 2, "code_window": [ "\n", "func (ctx *BuiltinEvalContext) State() *states.SyncState {\n", "\treturn ctx.StateValue\n", "}\n", "\n", "func (ctx *BuiltinEvalContext) InstanceExpander() *instances.Expander {\n", "\treturn ctx.InstanceExpanderValue\n", "}" ], "labels": [ ...
// go run mkasm_darwin.go arm64 // Code generated by the command above; DO NOT EDIT. // +build go1.12 #include "textflag.h" TEXT ·libc_getgroups_trampoline(SB),NOSPLIT,$0-0 JMP libc_getgroups(SB) TEXT ·libc_setgroups_trampoline(SB),NOSPLIT,$0-0 JMP libc_setgroups(SB) TEXT ·libc_wait4_trampoline(SB),NOSPLIT,$0-0 JM...
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0001726082555251196, 0.00017168765771202743, 0.00016988000425044447, 0.0001719065912766382, 7.366876957348722e-7 ]
{ "id": 3, "code_window": [ "\tStateCalled bool\n", "\tStateState *states.SyncState\n", "\n", "\tInstanceExpanderCalled bool\n", "\tInstanceExpanderExpander *instances.Expander\n", "}\n", "\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", ...
package terraform import ( "context" "fmt" "log" "sync" "github.com/hashicorp/terraform/instances" "github.com/hashicorp/terraform/plans" "github.com/hashicorp/terraform/providers" "github.com/hashicorp/terraform/provisioners" "github.com/hashicorp/terraform/version" "github.com/hashicorp/terraform/states"...
terraform/eval_context_builtin.go
1
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.027134841307997704, 0.0012707982677966356, 0.0001646556193009019, 0.00017112912610173225, 0.004747998900711536 ]
{ "id": 3, "code_window": [ "\tStateCalled bool\n", "\tStateState *states.SyncState\n", "\n", "\tInstanceExpanderCalled bool\n", "\tInstanceExpanderExpander *instances.Expander\n", "}\n", "\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", ...
package terraform import ( "log" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/configs" "github.com/hashicorp/terraform/states" ) // RemovedModuleTransformer implements GraphTransformer to add nodes indicating // when a module was removed from the configuration. type RemovedModuleTransfo...
terraform/transform_removed_modules.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.010303820483386517, 0.002212673891335726, 0.00017042644321918488, 0.00017743914213497192, 0.0040456573478877544 ]
{ "id": 3, "code_window": [ "\tStateCalled bool\n", "\tStateState *states.SyncState\n", "\n", "\tInstanceExpanderCalled bool\n", "\tInstanceExpanderExpander *instances.Expander\n", "}\n", "\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", ...
variable "input" { }
terraform/testdata/plan-destroy-interpolated-count/mod/main.tf
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0001788305671652779, 0.0001788305671652779, 0.0001788305671652779, 0.0001788305671652779, 0 ]
{ "id": 3, "code_window": [ "\tStateCalled bool\n", "\tStateState *states.SyncState\n", "\n", "\tInstanceExpanderCalled bool\n", "\tInstanceExpanderExpander *instances.Expander\n", "}\n", "\n" ], "labels": [ "keep", "keep", "add", "keep", "keep", "keep", ...
/* * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
vendor/github.com/davecgh/go-spew/spew/common.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.00040974828880280256, 0.00017782161012291908, 0.00016305682947859168, 0.00017016289348248392, 0.00003995268343714997 ]
{ "id": 4, "code_window": [ "\tc.StateCalled = true\n", "\treturn c.StateState\n", "}\n", "\n", "func (c *MockEvalContext) InstanceExpander() *instances.Expander {\n", "\tc.InstanceExpanderCalled = true\n", "\treturn c.InstanceExpanderExpander\n", "}" ], "labels": [ "keep", ...
package terraform import ( "github.com/hashicorp/hcl/v2" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/configs/configschema" "github.com/hashicorp/terraform/instances" "github.com/hashicorp/terraform/lang" "github.com/hashicorp/terraform/plans" "github.com/hashicorp/terraform/providers"...
terraform/eval_context.go
1
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.9117540717124939, 0.09913652390241623, 0.00016311158833559602, 0.0001837702002376318, 0.27146053314208984 ]
{ "id": 4, "code_window": [ "\tc.StateCalled = true\n", "\treturn c.StateState\n", "}\n", "\n", "func (c *MockEvalContext) InstanceExpander() *instances.Expander {\n", "\tc.InstanceExpanderCalled = true\n", "\treturn c.InstanceExpanderExpander\n", "}" ], "labels": [ "keep", ...
resource "aws_instance" "foo" {} resource "aws_instance" "web" { count = "${aws_instance.foo.bar}" } resource "aws_load_balancer" "weblb" { members = "${aws_instance.web.*.id}" }
terraform/testdata/graph-count-var-resource/main.tf
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.00016918248729780316, 0.00016918248729780316, 0.00016918248729780316, 0.00016918248729780316, 0 ]
{ "id": 4, "code_window": [ "\tc.StateCalled = true\n", "\treturn c.StateState\n", "}\n", "\n", "func (c *MockEvalContext) InstanceExpander() *instances.Expander {\n", "\tc.InstanceExpanderCalled = true\n", "\treturn c.InstanceExpanderExpander\n", "}" ], "labels": [ "keep", ...
package objchange import ( "github.com/hashicorp/terraform/configs/configschema" "github.com/zclconf/go-cty/cty" ) // NormalizeObjectFromLegacySDK takes an object that may have been generated // by the legacy Terraform SDK (i.e. returned from a provider with the // LegacyTypeSystem opt-out set) and does its best to...
plans/objchange/normalize_obj.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0001739229919621721, 0.0001697664993116632, 0.0001639629917917773, 0.00016972243611235172, 0.0000025572057893441524 ]
{ "id": 4, "code_window": [ "\tc.StateCalled = true\n", "\treturn c.StateState\n", "}\n", "\n", "func (c *MockEvalContext) InstanceExpander() *instances.Expander {\n", "\tc.InstanceExpanderCalled = true\n", "\treturn c.InstanceExpanderExpander\n", "}" ], "labels": [ "keep", ...
// +build !appengine package msgpack import ( "unsafe" ) // bytesToString converts byte slice to string. func bytesToString(b []byte) string { //nolint:deadcode,unused return *(*string)(unsafe.Pointer(&b)) } // stringToBytes converts string to byte slice. func stringToBytes(s string) []byte { return *(*[]byte)(u...
vendor/github.com/vmihailenco/msgpack/v4/unsafe.go
0
https://github.com/hashicorp/terraform/commit/d6a586709cf8eee53b46b56bcf00fa7fa44d6441
[ 0.0003134869912173599, 0.00022125219402369112, 0.0001714761892799288, 0.00017879338702186942, 0.00006528822996187955 ]
{ "id": 0, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- asridharan\n", "- brendandburns\n", "- fgrzadkowski\n", "\n", "---\n", "\n", "**Stop. This guide has been supersede...
<!-- 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/local-cluster/docker.md
1
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.022455761209130287, 0.001108467229641974, 0.0001619755057618022, 0.00020499282982200384, 0.00395092973485589 ]
{ "id": 0, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- asridharan\n", "- brendandburns\n", "- fgrzadkowski\n", "\n", "---\n", "\n", "**Stop. This guide has been supersede...
/* 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/client/clientset_generated/internalclientset/typed/batch/unversioned/batch_client.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0011721088085323572, 0.0002633407711982727, 0.00016158292419277132, 0.00016615993808954954, 0.0002878054801840335 ]
{ "id": 0, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- asridharan\n", "- brendandburns\n", "- fgrzadkowski\n", "\n", "---\n", "\n", "**Stop. This guide has been supersede...
/* 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/kubelet/util/format/resources.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0001800396858016029, 0.0001754155382514, 0.00017056673823390156, 0.00017552784993313253, 0.0000036425872167455964 ]
{ "id": 0, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- asridharan\n", "- brendandburns\n", "- fgrzadkowski\n", "\n", "---\n", "\n", "**Stop. This guide has been supersede...
/* 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/unversioned/containerinfo_test.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00018610787810757756, 0.00017205034964717925, 0.00016495358431711793, 0.0001715630933176726, 0.000005752991000917973 ]
{ "id": 1, "code_window": [ "Here's a diagram of what the final result will look like:\n", "\n", "![Kubernetes Single Node on Docker](../../getting-started-guides/k8s-singlenode-docker.png)\n", "\n", "* TOC\n", "{:toc}\n", "\n", "## Prerequisites\n", "\n", "**Note: These step...
<!-- 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/local-cluster/vagrant.md
1
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.001995071303099394, 0.00027071672957390547, 0.0001629744510864839, 0.00016855087596923113, 0.0003555479634087533 ]
{ "id": 1, "code_window": [ "Here's a diagram of what the final result will look like:\n", "\n", "![Kubernetes Single Node on Docker](../../getting-started-guides/k8s-singlenode-docker.png)\n", "\n", "* TOC\n", "{:toc}\n", "\n", "## Prerequisites\n", "\n", "**Note: These step...
/* 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/kubelet/pod/mirror_client_test.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0002369050052948296, 0.00018243142403662205, 0.0001683744485490024, 0.00017205948824994266, 0.000024566146748838946 ]
{ "id": 1, "code_window": [ "Here's a diagram of what the final result will look like:\n", "\n", "![Kubernetes Single Node on Docker](../../getting-started-guides/k8s-singlenode-docker.png)\n", "\n", "* TOC\n", "{:toc}\n", "\n", "## Prerequisites\n", "\n", "**Note: These step...
/* 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/cloudprovider/providers/openstack/openstack_volumes.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00017706191283650696, 0.00017069138993974775, 0.00016583861724939197, 0.00017055585340131074, 0.000002593365252323565 ]
{ "id": 1, "code_window": [ "Here's a diagram of what the final result will look like:\n", "\n", "![Kubernetes Single Node on Docker](../../getting-started-guides/k8s-singlenode-docker.png)\n", "\n", "* TOC\n", "{:toc}\n", "\n", "## Prerequisites\n", "\n", "**Note: These step...
// Extensions for Protocol Buffers to create more go like structures. // // Copyright (c) 2015, Vastech SA (PTY) LTD. All rights reserved. // http://github.com/gogo/protobuf/gogoproto // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following cond...
vendor/github.com/gogo/protobuf/vanity/foreach.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00017367028340231627, 0.00017019669758155942, 0.00016707951726857573, 0.0001699109561741352, 0.0000022181961867318023 ]
{ "id": 2, "code_window": [ "\n", "```shell\n", "docker-machine ssh `docker-machine active` curl $ip\n", "```\n", "\n", "### Turning down your cluster\n", "\n", "1\\. Delete the nginx service and deployment:\n", "\n", "If you plan on re-creating your nginx deployment and serv...
<!-- 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/local-cluster/local.md
1
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.006391829811036587, 0.0015960369491949677, 0.0001682807196630165, 0.0007887727115303278, 0.0019014334538951516 ]
{ "id": 2, "code_window": [ "\n", "```shell\n", "docker-machine ssh `docker-machine active` curl $ip\n", "```\n", "\n", "### Turning down your cluster\n", "\n", "1\\. Delete the nginx service and deployment:\n", "\n", "If you plan on re-creating your nginx deployment and serv...
This folder contains the sources needed to build the gen-swagger-doc container. To build the container image, ``` $ sudo docker build -t gcr.io/google_containers/gen-swagger-docs:v1 . ``` To generate the html docs, ``` $ ./run-gen-swagger-docs.sh <API version> <absolute output path, default to PWD> ``` The genera...
hack/gen-swagger-doc/README.md
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0002110274654114619, 0.00020364791271276772, 0.00019626834546215832, 0.00020364791271276772, 0.000007379559974651784 ]
{ "id": 2, "code_window": [ "\n", "```shell\n", "docker-machine ssh `docker-machine active` curl $ip\n", "```\n", "\n", "### Turning down your cluster\n", "\n", "1\\. Delete the nginx service and deployment:\n", "\n", "If you plan on re-creating your nginx deployment and serv...
// Copyright 2012 Gary Burd // // 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 wr...
vendor/github.com/garyburd/redigo/redis/redis.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00022165761038195342, 0.00018555481801740825, 0.00016816282004583627, 0.00017407978884875774, 0.000020441324522835203 ]
{ "id": 2, "code_window": [ "\n", "```shell\n", "docker-machine ssh `docker-machine active` curl $ip\n", "```\n", "\n", "### Turning down your cluster\n", "\n", "1\\. Delete the nginx service and deployment:\n", "\n", "If you plan on re-creating your nginx deployment and serv...
package bolt // maxMapSize represents the largest mmap size supported by Bolt. const maxMapSize = 0x7FFFFFFF // 2GB // maxAllocSize is the size used when creating array pointers. const maxAllocSize = 0xFFFFFFF
vendor/github.com/boltdb/bolt/bolt_386.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00016974384197965264, 0.00016974384197965264, 0.00016974384197965264, 0.00016974384197965264, 0 ]
{ "id": 3, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- erictune\n", "- mikedanese\n", "- thockin\n", "\n", "---\n", "\n", "\n", "\n", "* TOC\n", "{:toc}\n", ...
<!-- 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/local-cluster/docker.md
1
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0007090079598128796, 0.00023692275863140821, 0.0001608843303984031, 0.00018214798183180392, 0.00012708482972811908 ]
{ "id": 3, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- erictune\n", "- mikedanese\n", "- thockin\n", "\n", "---\n", "\n", "\n", "\n", "* TOC\n", "{:toc}\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 atom provides integer codes (also known as atoms) for a fixed set of // frequently occurring HTML strings: tag names and attribute keys such as "p" /...
vendor/golang.org/x/net/html/atom/atom.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.001135392696596682, 0.0002898094244301319, 0.00016380577289965004, 0.0001687881158431992, 0.000319622311508283 ]
{ "id": 3, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- erictune\n", "- mikedanese\n", "- thockin\n", "\n", "---\n", "\n", "\n", "\n", "* TOC\n", "{:toc}\n", ...
package matchers import ( "fmt" "github.com/onsi/gomega/format" ) type BeFalseMatcher struct { } func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err error) { if !isBool(actual) { return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) } return actual == fal...
vendor/github.com/onsi/gomega/matchers/be_false_matcher.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00016807368956506252, 0.00016653636703267694, 0.00016494728333782405, 0.00016658809909131378, 0.000001276874286304519 ]
{ "id": 3, "code_window": [ "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- erictune\n", "- mikedanese\n", "- thockin\n", "\n", "---\n", "\n", "\n", "\n", "* TOC\n", "{:toc}\n", ...
seqdiag { activation = none; admin[label = "Manual Admin"]; ca[label = "Manual CA"] master; kubelet[stacked]; admin => ca [label="create\n- master-cert"]; admin ->> master [label="start\n- ca-root\n- master-cert"]; admin => ca [label="create\n- kubelet-cert"]; admin ->> kubelet [label="start\n- ca-...
docs/design/clustering/static.seqdiag
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00016802178288344294, 0.00016799951845314354, 0.00016797725402284414, 0.00016799951845314354, 2.2264430299401283e-8 ]
{ "id": 4, "code_window": [ "\n", "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- brendandburns\n", "- derekwaynecarr\n", "- jbeda\n", "---\n", "\n", "did no\n", "\n", "Running Kubern...
<!-- 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/local-cluster/vagrant.md
1
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.5549432039260864, 0.013795237988233566, 0.0001634037762414664, 0.0008870535530149937, 0.08253402262926102 ]
{ "id": 4, "code_window": [ "\n", "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- brendandburns\n", "- derekwaynecarr\n", "- jbeda\n", "---\n", "\n", "did no\n", "\n", "Running Kubern...
test:{SHA}qvTGHdzF6KLavt4PO0gs2a6pQ00= test2:$apr1$a0j62R97$mYqFkloXH0/UOaUnAiV2b0
vendor/github.com/abbot/go-http-auth/test.htpasswd
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0001663128932705149, 0.0001663128932705149, 0.0001663128932705149, 0.0001663128932705149, 0 ]
{ "id": 4, "code_window": [ "\n", "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- brendandburns\n", "- derekwaynecarr\n", "- jbeda\n", "---\n", "\n", "did no\n", "\n", "Running Kubern...
/* 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/security/podsecuritypolicy/provider.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0004448340623639524, 0.0001780746824806556, 0.00016324491298291832, 0.00016977134509943426, 0.000048809684813022614 ]
{ "id": 4, "code_window": [ "\n", "<!-- END STRIP_FOR_RELEASE -->\n", "\n", "<!-- END MUNGE: UNVERSIONED_WARNING -->\n", "\n", "---\n", "assignees:\n", "- brendandburns\n", "- derekwaynecarr\n", "- jbeda\n", "---\n", "\n", "did no\n", "\n", "Running Kubern...
/* 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/cloudprovider/providers/aws/aws_test.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0013710075290873647, 0.0001966757554328069, 0.00016224061255343258, 0.00017071056936401874, 0.00012434538803063333 ]
{ "id": 5, "code_window": [ "Running Kubernetes with Vagrant (and VirtualBox) is an easy way to run/test/develop on your local machine (Linux, Mac OS X).\n", "\n", "* TOC\n", "{:toc}\n", "\n", "### Prerequisites\n", "\n", "1. Install latest version >= 1.7.4 of [Vagrant](http://www.va...
<!-- 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/local-cluster/docker.md
1
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0007505824905820191, 0.00025074920267798007, 0.00016447031521238387, 0.00019724745652638376, 0.00012910267105326056 ]
{ "id": 5, "code_window": [ "Running Kubernetes with Vagrant (and VirtualBox) is an easy way to run/test/develop on your local machine (Linux, Mac OS X).\n", "\n", "* TOC\n", "{:toc}\n", "\n", "### Prerequisites\n", "\n", "1. Install latest version >= 1.7.4 of [Vagrant](http://www.va...
/* 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/registry/thirdpartyresource/strategy.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00017421727534383535, 0.00016936002066358924, 0.00016643885464873165, 0.00016873802815098315, 0.000002342970219615381 ]
{ "id": 5, "code_window": [ "Running Kubernetes with Vagrant (and VirtualBox) is an easy way to run/test/develop on your local machine (Linux, Mac OS X).\n", "\n", "* TOC\n", "{:toc}\n", "\n", "### Prerequisites\n", "\n", "1. Install latest version >= 1.7.4 of [Vagrant](http://www.va...
// Copyright 2013 Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package googleapi import ( "encoding/json" "strconv" ) // Int64s is a slice of int64s that marshal as quoted strings in JSON. type Int64s []int64 func (q *Int6...
vendor/google.golang.org/api/googleapi/types.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.0007853429997339845, 0.00022233370691537857, 0.00016664943541400135, 0.00017235252016689628, 0.00013833734556101263 ]
{ "id": 5, "code_window": [ "Running Kubernetes with Vagrant (and VirtualBox) is an easy way to run/test/develop on your local machine (Linux, Mac OS X).\n", "\n", "* TOC\n", "{:toc}\n", "\n", "### Prerequisites\n", "\n", "1. Install latest version >= 1.7.4 of [Vagrant](http://www.va...
/* 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/kubelet/reason_cache_test.go
0
https://github.com/kubernetes/kubernetes/commit/5546dfd3dcc02e14299b2a0d5977db3873e88c8e
[ 0.00019323601736687124, 0.00017374110757373273, 0.00016800864250399172, 0.0001709449861664325, 0.00000813187853054842 ]
{ "id": 0, "code_window": [ " \"//pkg/util/validation:go_default_library\",\n", " \"//pkg/util/validation/field:go_default_library\",\n", " \"//pkg/util/wait:go_default_library\",\n", " \"//pkg/version:go_default_library\",\n", " \"//pkg/volume:go_default_libra...
package(default_visibility = ["//visibility:public"]) licenses(["notice"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", "go_test", ) go_library( name = "go_default_library", srcs = [ "active_deadline.go", "disk_manager.go", "doc.go", "kubelet.go", ...
pkg/kubelet/BUILD
1
https://github.com/kubernetes/kubernetes/commit/3fbf68ef6847264f8dcf1934951ef1cd5548d2a8
[ 0.9484266638755798, 0.05367730185389519, 0.00016476855671498924, 0.007315534166991711, 0.20026971399784088 ]
{ "id": 0, "code_window": [ " \"//pkg/util/validation:go_default_library\",\n", " \"//pkg/util/validation/field:go_default_library\",\n", " \"//pkg/util/wait:go_default_library\",\n", " \"//pkg/version:go_default_library\",\n", " \"//pkg/volume:go_default_libra...
// +build !ignore_autogenerated /* 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 applica...
staging/src/k8s.io/client-go/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go
0
https://github.com/kubernetes/kubernetes/commit/3fbf68ef6847264f8dcf1934951ef1cd5548d2a8
[ 0.0012804912403225899, 0.00019340899598319083, 0.0001629421312827617, 0.0001714327954687178, 0.00010855672735488042 ]
{ "id": 0, "code_window": [ " \"//pkg/util/validation:go_default_library\",\n", " \"//pkg/util/validation/field:go_default_library\",\n", " \"//pkg/util/wait:go_default_library\",\n", " \"//pkg/version:go_default_library\",\n", " \"//pkg/volume:go_default_libra...
package(default_visibility = ["//visibility:public"]) licenses(["notice"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", "go_test", ) go_library( name = "go_default_library", srcs = [ "error.go", "metadata.go", "predicates.go", "utils.go", ], tags =...
plugin/pkg/scheduler/algorithm/predicates/BUILD
0
https://github.com/kubernetes/kubernetes/commit/3fbf68ef6847264f8dcf1934951ef1cd5548d2a8
[ 0.041504617780447006, 0.01253864448517561, 0.00016705879534129053, 0.0036522820591926575, 0.01586737111210823 ]
{ "id": 0, "code_window": [ " \"//pkg/util/validation:go_default_library\",\n", " \"//pkg/util/validation/field:go_default_library\",\n", " \"//pkg/util/wait:go_default_library\",\n", " \"//pkg/version:go_default_library\",\n", " \"//pkg/volume:go_default_libra...
apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: kube-registry-proxy namespace: kube-system labels: k8s-app: kube-registry kubernetes.io/cluster-service: "true" version: v0.4 spec: template: metadata: labels: k8s-app: kube-registry kubernetes.io/name: "kube-re...
cluster/saltbase/salt/kube-registry-proxy/kube-registry-proxy.yaml
0
https://github.com/kubernetes/kubernetes/commit/3fbf68ef6847264f8dcf1934951ef1cd5548d2a8
[ 0.00017691086395643651, 0.0001738076825859025, 0.00017126572492998093, 0.00017352704890072346, 0.000002511512093406054 ]