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": [ "func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n", "\treturn &Controller{\n", "\t\tprincipalStore: principalStore,\n", "\t\tconfig: config,\n", "\t}\n", "}\n", "\n" ], "labels": [ "keep", "keep"...
// 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 router import ( "fmt" "net/http" "github.com/harness/gitness/githook" "github.com/harness/gitness/internal/api/con...
internal/router/api.go
1
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.10979121923446655, 0.003494459670037031, 0.00016406683425884694, 0.00017553524230606854, 0.016300508752465248 ]
{ "id": 2, "code_window": [ "func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n", "\treturn &Controller{\n", "\t\tprincipalStore: principalStore,\n", "\t\tconfig: config,\n", "\t}\n", "}\n", "\n" ], "labels": [ "keep", "keep"...
// 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" "errors" "github.com/harness/gitness/internal/api/usererror" "github.com/harness/gitness/i...
internal/api/controller/user/logout.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.045601919293403625, 0.009261088445782661, 0.00017212866805493832, 0.00017750852566678077, 0.018170416355133057 ]
{ "id": 2, "code_window": [ "func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n", "\treturn &Controller{\n", "\t\tprincipalStore: principalStore,\n", "\t\tconfig: config,\n", "\t}\n", "}\n", "\n" ], "labels": [ "keep", "keep"...
// 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 hash import ( "context" "io" "testing" "time" "github.com/stretchr/testify/require" ) var ( byte1 = []byte{1} ...
gitrpc/hash/source_test.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00018042701412923634, 0.0001741278829285875, 0.00017100822879001498, 0.0001735663099680096, 0.000002472783307894133 ]
{ "id": 2, "code_window": [ "func NewController(principalStore store.PrincipalStore, config *types.Config) *Controller {\n", "\treturn &Controller{\n", "\t\tprincipalStore: principalStore,\n", "\t\tconfig: config,\n", "\t}\n", "}\n", "\n" ], "labels": [ "keep", "keep"...
allowpaths: ['*'] operationIdOverrides: {}
web/src/services/code/overrides.yaml
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00016586646961513907, 0.00016586646961513907, 0.00016586646961513907, 0.00016586646961513907, 0 ]
{ "id": 3, "code_window": [ "\n", "func IsUserRegistrationAllowed(ctx context.Context, principalStore store.PrincipalStore,\n", "\tconfig *types.Config) (bool, error) {\n", "\tusrCount, err := principalStore.CountUsers(ctx)\n", "\tif err != nil {\n", "\t\treturn false, err\n", "\t}\n" ...
// 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 system import ( "context" "github.com/harness/gitness/internal/store" "github.com/harness/gitness/types" ) type Co...
internal/api/controller/system/controller.go
1
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.9988934397697449, 0.49969178438186646, 0.0001748234935803339, 0.49984943866729736, 0.4986926019191742 ]
{ "id": 3, "code_window": [ "\n", "func IsUserRegistrationAllowed(ctx context.Context, principalStore store.PrincipalStore,\n", "\tconfig *types.Config) (bool, error) {\n", "\tusrCount, err := principalStore.CountUsers(ctx)\n", "\tif err != nil {\n", "\t\treturn false, err\n", "\t}\n" ...
import React from 'react' import { useGet } from 'restful-react' import type { TypesCommit } from 'services/code' import type { GitInfoProps } from 'utils/GitUtils' import { voidFn, LIST_FETCHING_LIMIT } from 'utils/Utils' import { usePageIndex } from 'hooks/usePageIndex' import { useStrings } from 'framework/strings' ...
web/src/pages/PullRequest/PullRequestCommits/PullRequestCommits.tsx
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0001765606866683811, 0.00017240858869627118, 0.00016916570893954486, 0.0001726563205011189, 0.0000024476782982674194 ]
{ "id": 3, "code_window": [ "\n", "func IsUserRegistrationAllowed(ctx context.Context, principalStore store.PrincipalStore,\n", "\tconfig *types.Config) (bool, error) {\n", "\tusrCount, err := principalStore.CountUsers(ctx)\n", "\tif err != nil {\n", "\t\treturn false, err\n", "\t}\n" ...
*.class # Package Files # *.jar *.war # gwt caches and compiled units # war/gwt_bree/ gwt-unitCache/ # boilerplate generated classes # .apt_generated/ # more caches and things from deploy # war/WEB-INF/deploy/ war/WEB-INF/classes/ #compilation logs .gwt/ #gwt junit compilation files www-test/ #old GWT (1.5) crea...
resources/gitignore/GWT.gitignore
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00016940671775955707, 0.00016764858446549624, 0.00016614045307505876, 0.00016739859711378813, 0.0000013451129916575155 ]
{ "id": 3, "code_window": [ "\n", "func IsUserRegistrationAllowed(ctx context.Context, principalStore store.PrincipalStore,\n", "\tconfig *types.Config) (bool, error) {\n", "\tusrCount, err := principalStore.CountUsers(ctx)\n", "\tif err != nil {\n", "\t\treturn false, err\n", "\t}\n" ...
// 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 repo import ( "context" "io" "strings" "github.com/harness/gitness/gitrpc" apiauth "github.com/harness/gitness/in...
internal/api/controller/repo/diff.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0008042411063797772, 0.0002599992440082133, 0.00016649696044623852, 0.00017541075067128986, 0.0001810093381209299 ]
{ "id": 4, "code_window": [ "\t}\n", "\n", "\treturn usrCount == 0 || config.AllowSignUp, nil\n", "}" ], "labels": [ "keep", "replace", "replace", "keep" ], "after_edit": [], "file_path": "internal/api/controller/system/controller.go", "type": "replace", "edit_start_lin...
// 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.0044996654614806175, 0.001036602072417736, 0.00016631226753816009, 0.00016919475456234068, 0.0017315380973741412 ]
{ "id": 4, "code_window": [ "\t}\n", "\n", "\treturn usrCount == 0 || config.AllowSignUp, nil\n", "}" ], "labels": [ "keep", "replace", "replace", "keep" ], "after_edit": [], "file_path": "internal/api/controller/system/controller.go", "type": "replace", "edit_start_lin...
// This import is required in order for ModuleFederationPlugin // to work properly. import('./bootstrap')
web/src/index.tsx
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0001729402138153091, 0.0001729402138153091, 0.0001729402138153091, 0.0001729402138153091, 0 ]
{ "id": 4, "code_window": [ "\t}\n", "\n", "\treturn usrCount == 0 || config.AllowSignUp, nil\n", "}" ], "labels": [ "keep", "replace", "replace", "keep" ], "after_edit": [], "file_path": "internal/api/controller/system/controller.go", "type": "replace", "edit_start_lin...
ALTER TABLE pullreq_activities ADD COLUMN pullreq_activity_outdated BOOLEAN; ALTER TABLE pullreq_activities ADD COLUMN pullreq_activity_code_comment_merge_base_sha TEXT; ALTER TABLE pullreq_activities ADD COLUMN pullreq_activity_code_comment_source_sha TEXT; ALTER TABLE pullreq_activities ADD COLUMN pullreq_activity_co...
internal/store/database/migrate/sqlite/0014_alter_pullreq_activity_code_comments.up.sql
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.000256716477451846, 0.000256716477451846, 0.000256716477451846, 0.000256716477451846, 0 ]
{ "id": 4, "code_window": [ "\t}\n", "\n", "\treturn usrCount == 0 || config.AllowSignUp, nil\n", "}" ], "labels": [ "keep", "replace", "replace", "keep" ], "after_edit": [], "file_path": "internal/api/controller/system/controller.go", "type": "replace", "edit_start_lin...
// 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 repo import ( "encoding/json" "net/http" "github.com/harness/gitness/internal/api/controller/repo" "github.com/har...
internal/api/handler/repo/create.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00018003485456574708, 0.00017350699636153877, 0.00017024211410898715, 0.00017187550838571042, 0.000003987510353908874 ]
{ "id": 5, "code_window": [ ")\n", "\n", "// RegisterCheck checks the DB and env config flag to return boolean\n", "// which represents if a user sign-up is allowed or not.\n", "func (c *Controller) RegisterCheck(ctx context.Context) (bool, error) {\n", "\tcheck, err := IsUserRegistrationAll...
// 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 router import ( "fmt" "net/http" "github.com/harness/gitness/githook" "github.com/harness/gitness/internal/api/con...
internal/router/api.go
1
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0015444094315171242, 0.0002911872579716146, 0.00016515408060513437, 0.00017089313769247383, 0.00030036020325496793 ]
{ "id": 5, "code_window": [ ")\n", "\n", "// RegisterCheck checks the DB and env config flag to return boolean\n", "// which represents if a user sign-up is allowed or not.\n", "func (c *Controller) RegisterCheck(ctx context.Context) (bool, error) {\n", "\tcheck, err := IsUserRegistrationAll...
import React, { useCallback, useMemo } from 'react' import cx from 'classnames' import { Button, ButtonSize, Container, Layout, Pagination } from '@harness/uicore' import { useStrings } from 'framework/strings' import { useUpdateQueryParams } from 'hooks/useUpdateQueryParams' import css from './ResourceListingPaginatio...
web/src/components/ResourceListingPagination/ResourceListingPagination.tsx
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017567453323863447, 0.00017144487355835736, 0.00016788132779765874, 0.00017131929052993655, 0.000002376045586061082 ]
{ "id": 5, "code_window": [ ")\n", "\n", "// RegisterCheck checks the DB and env config flag to return boolean\n", "// which represents if a user sign-up is allowed or not.\n", "func (c *Controller) RegisterCheck(ctx context.Context) (bool, error) {\n", "\tcheck, err := IsUserRegistrationAll...
/* eslint-disable */ // this is an auto-generated file declare const styles: { readonly pagination: string readonly main: string readonly roundedButton: string readonly selected: string readonly buttonLeft: string readonly buttonRight: string } export default styles
web/src/components/ResourceListingPagination/ResourceListingPagination.module.scss.d.ts
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0001729139912640676, 0.0001726349873933941, 0.0001723559689708054, 0.0001726349873933941, 2.7901114663109183e-7 ]
{ "id": 5, "code_window": [ ")\n", "\n", "// RegisterCheck checks the DB and env config flag to return boolean\n", "// which represents if a user sign-up is allowed or not.\n", "func (c *Controller) RegisterCheck(ctx context.Context) (bool, error) {\n", "\tcheck, err := IsUserRegistrationAll...
// 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 gitrpc type Repository interface { GetGitUID() string } // CreateRPCReadParams creates base read parameters for gitrp...
gitrpc/params.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00018128148803953081, 0.0001784899941412732, 0.0001756985002430156, 0.0001784899941412732, 0.000002791493898257613 ]
{ "id": 6, "code_window": [ "\n", "// Register creates a new user and returns a new session token on success.\n", "// This differs from the Create method as it doesn't require auth, but has limited\n", "// functionalities (unable to create admin user for example).\n", "func (c *Controller) Regis...
// 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.9916704893112183, 0.40894460678100586, 0.00017512612976133823, 0.4623793363571167, 0.36868810653686523 ]
{ "id": 6, "code_window": [ "\n", "// Register creates a new user and returns a new session token on success.\n", "// This differs from the Create method as it doesn't require auth, but has limited\n", "// functionalities (unable to create admin user for example).\n", "func (c *Controller) Regis...
// 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 repo import ( "encoding/json" "net/http" "github.com/harness/gitness/internal/api/controller/repo" "github.com/har...
internal/api/handler/repo/update.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0016342946328222752, 0.00046917685540392995, 0.0001700955763226375, 0.0001783583575161174, 0.0005825982079841197 ]
{ "id": 6, "code_window": [ "\n", "// Register creates a new user and returns a new session token on success.\n", "// This differs from the Create method as it doesn't require auth, but has limited\n", "// functionalities (unable to create admin user for example).\n", "func (c *Controller) Regis...
// 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 types defines common data structures. package types import "github.com/harness/gitness/types/enum" type ( // Servi...
types/service_account.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00023268748191185296, 0.0001815131981857121, 0.00016427737136837095, 0.0001719386491458863, 0.000023247586796060205 ]
{ "id": 6, "code_window": [ "\n", "// Register creates a new user and returns a new session token on success.\n", "// This differs from the Create method as it doesn't require auth, but has limited\n", "// functionalities (unable to create admin user for example).\n", "func (c *Controller) Regis...
// 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 events import ( "context" "github.com/harness/gitness/stream" ) // StreamProducer is an abstraction of a producer f...
events/stream.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.9941794872283936, 0.33159586787223816, 0.0001772053074091673, 0.00043094780994579196, 0.46851736307144165 ]
{ "id": 7, "code_window": [ "\tin *CreateInput) (*types.TokenResponse, error) {\n", "\tsignUpAllowed, err := system.IsUserRegistrationAllowed(ctx, c.principalStore, c.config)\n", "\tif err != nil {\n", "\t\treturn nil, err\n", "\t}\n" ], "labels": [ "keep", "replace", "keep", ...
// 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.9982306361198425, 0.20001666247844696, 0.00017861975356936455, 0.00039982402813620865, 0.39910703897476196 ]
{ "id": 7, "code_window": [ "\tin *CreateInput) (*types.TokenResponse, error) {\n", "\tsignUpAllowed, err := system.IsUserRegistrationAllowed(ctx, c.principalStore, c.config)\n", "\tif err != nil {\n", "\t\treturn nil, err\n", "\t}\n" ], "labels": [ "keep", "replace", "keep", ...
// 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 check import ( "github.com/google/wire" ) // WireSet provides a wire set for this package. var WireSet = wire.NewSet(...
types/check/wire.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0007845404325053096, 0.00037679789238609374, 0.00016634906933177263, 0.000179504175321199, 0.00028836753335781395 ]
{ "id": 7, "code_window": [ "\tin *CreateInput) (*types.TokenResponse, error) {\n", "\tsignUpAllowed, err := system.IsUserRegistrationAllowed(ctx, c.principalStore, c.config)\n", "\tif err != nil {\n", "\t\treturn nil, err\n", "\t}\n" ], "labels": [ "keep", "replace", "keep", ...
.mainCtn { height: var(--page-min-height, 100%); background-color: var(--primary-bg) !important; .adminBadge { padding: var(--spacing-xsmall) 6px; border-radius: 4px; border: 1px solid var(--grey-200); background: var(--grey-50); } }
web/src/pages/UsersListing/UsersListing.module.scss
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017830412252806127, 0.00017703490448184311, 0.00017576568643562496, 0.00017703490448184311, 0.0000012692180462181568 ]
{ "id": 7, "code_window": [ "\tin *CreateInput) (*types.TokenResponse, error) {\n", "\tsignUpAllowed, err := system.IsUserRegistrationAllowed(ctx, c.principalStore, c.config)\n", "\tif err != nil {\n", "\t\treturn nil, err\n", "\t}\n" ], "labels": [ "keep", "replace", "keep", ...
// 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 webhook import ( "github.com/harness/gitness/internal/auth/authz" "github.com/harness/gitness/internal/services/webho...
internal/api/controller/webhook/wire.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017775548622012138, 0.00017330533592030406, 0.0001682279398664832, 0.0001739325962262228, 0.000003914811259164708 ]
{ "id": 8, "code_window": [ "import (\n", "\t\"encoding/json\"\n", "\t\"net/http\"\n", "\n", "\t\"github.com/harness/gitness/internal/api/controller/user\"\n", "\t\"github.com/harness/gitness/internal/api/render\"\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep",...
// 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 router import ( "fmt" "net/http" "github.com/harness/gitness/githook" "github.com/harness/gitness/internal/api/con...
internal/router/api.go
1
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.004100764635950327, 0.0003390689962543547, 0.00016421833424828947, 0.0001720136497169733, 0.0006163254729472101 ]
{ "id": 8, "code_window": [ "import (\n", "\t\"encoding/json\"\n", "\t\"net/http\"\n", "\n", "\t\"github.com/harness/gitness/internal/api/controller/user\"\n", "\t\"github.com/harness/gitness/internal/api/render\"\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep",...
// 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 client import ( "bytes" "context" "encoding/json" "fmt" "io" "net/http" "net/http/httputil" "net/url" "github...
client/client.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.03731555491685867, 0.0016014198772609234, 0.000164046956342645, 0.00016762458835728467, 0.007142849266529083 ]
{ "id": 8, "code_window": [ "import (\n", "\t\"encoding/json\"\n", "\t\"net/http\"\n", "\n", "\t\"github.com/harness/gitness/internal/api/controller/user\"\n", "\t\"github.com/harness/gitness/internal/api/render\"\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep",...
// 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 repo import ( "context" "fmt" "strings" "time" apiauth "github.com/harness/gitness/internal/api/auth" "github.co...
internal/api/controller/repo/create_path.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0010135348420590162, 0.00029444816755130887, 0.00016952208534348756, 0.00017454501357860863, 0.0002601658634375781 ]
{ "id": 8, "code_window": [ "import (\n", "\t\"encoding/json\"\n", "\t\"net/http\"\n", "\n", "\t\"github.com/harness/gitness/internal/api/controller/user\"\n", "\t\"github.com/harness/gitness/internal/api/render\"\n", ")\n", "\n" ], "labels": [ "keep", "keep", "keep",...
// 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 pullreq import ( "strconv" "github.com/harness/gitness/lock" ) func (c *Controller) newMutexForPR(repoUID string, p...
internal/api/controller/pullreq/locks.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0002000716485781595, 0.00018783607811201364, 0.00017560050764586776, 0.00018783607811201364, 0.000012235570466145873 ]
{ "id": 9, "code_window": [ ")\n", "\n", "// HandleRegister returns an http.HandlerFunc that processes an http.Request\n", "// to register the named user account with the system.\n", "func HandleRegister(userCtrl *user.Controller) http.HandlerFunc {\n", "\treturn func(w http.ResponseWriter, ...
// 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 system import ( "context" "github.com/harness/gitness/internal/store" "github.com/harness/gitness/types" ) type Co...
internal/api/controller/system/controller.go
1
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00219017849303782, 0.0007199353422038257, 0.0001656491367612034, 0.0002619569131638855, 0.0008518637041561306 ]
{ "id": 9, "code_window": [ ")\n", "\n", "// HandleRegister returns an http.HandlerFunc that processes an http.Request\n", "// to register the named user account with the system.\n", "func HandleRegister(userCtrl *user.Controller) http.HandlerFunc {\n", "\treturn func(w http.ResponseWriter, ...
// 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 version provides the version number. package version import ( "strconv" "github.com/coreos/go-semver/semver" ) v...
version/version.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0001789610687410459, 0.00017553182260598987, 0.0001726522168610245, 0.00017541844863444567, 0.000002225558546342654 ]
{ "id": 9, "code_window": [ ")\n", "\n", "// HandleRegister returns an http.HandlerFunc that processes an http.Request\n", "// to register the named user account with the system.\n", "func HandleRegister(userCtrl *user.Controller) http.HandlerFunc {\n", "\treturn func(w http.ResponseWriter, ...
// 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/login.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.9896155595779419, 0.2892308235168457, 0.00016822504403535277, 0.08356976509094238, 0.41006067395210266 ]
{ "id": 9, "code_window": [ ")\n", "\n", "// HandleRegister returns an http.HandlerFunc that processes an http.Request\n", "// to register the named user account with the system.\n", "func HandleRegister(userCtrl *user.Controller) http.HandlerFunc {\n", "\treturn func(w http.ResponseWriter, ...
import React from 'react' import { Text, StringSubstitute, IconName } from '@harness/uicore' import cx from 'classnames' import { CodeIcon } from 'utils/GitUtils' import { useStrings } from 'framework/strings' import css from './ExecutionStatusLabel.module.scss' export type EnumPullReqExecutionState = 'success' | 'fai...
web/src/components/ExecutionStatusLabel/ExecutionStatusLabel.tsx
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017893427866511047, 0.0001748664362821728, 0.0001722654269542545, 0.00017451787425670773, 0.000002208023033745121 ]
{ "id": 10, "code_window": [ "\t\tif err != nil {\n", "\t\t\trender.BadRequestf(w, \"Invalid request body: %s.\", err)\n", "\t\t\treturn\n", "\t\t}\n", "\n", "\t\ttokenResponse, err := userCtrl.Register(ctx, in)\n", "\t\tif err != nil {\n", "\t\t\trender.TranslatedUserError(w, err)\n...
// 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 system import ( "context" "github.com/harness/gitness/internal/store" "github.com/harness/gitness/types" ) type Co...
internal/api/controller/system/controller.go
1
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0002146231709048152, 0.00018470364739187062, 0.00017139232659246773, 0.00017639953875914216, 0.000017557422324898653 ]
{ "id": 10, "code_window": [ "\t\tif err != nil {\n", "\t\t\trender.BadRequestf(w, \"Invalid request body: %s.\", err)\n", "\t\t\treturn\n", "\t\t}\n", "\n", "\t\ttokenResponse, err := userCtrl.Register(ctx, in)\n", "\t\tif err != nil {\n", "\t\t\trender.TranslatedUserError(w, err)\n...
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.21.11 // source: http.proto package rpc import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a ...
gitrpc/rpc/http_grpc.pb.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0044305711053311825, 0.0005596625269390643, 0.00016481599595863372, 0.00017745843797456473, 0.0009113047854043543 ]
{ "id": 10, "code_window": [ "\t\tif err != nil {\n", "\t\t\trender.BadRequestf(w, \"Invalid request body: %s.\", err)\n", "\t\t\treturn\n", "\t\t}\n", "\n", "\t\ttokenResponse, err := userCtrl.Register(ctx, in)\n", "\t\tif err != nil {\n", "\t\t\trender.TranslatedUserError(w, err)\n...
// 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" "encoding/json" "os" "text/template" "time" "github.com/harness/gitness/cli/provide" "...
cli/operations/user/self.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0001790549431461841, 0.00016945631068665534, 0.0001583676494192332, 0.0001699376734904945, 0.000006275962732615881 ]
{ "id": 10, "code_window": [ "\t\tif err != nil {\n", "\t\t\trender.BadRequestf(w, \"Invalid request body: %s.\", err)\n", "\t\t\treturn\n", "\t\t}\n", "\n", "\t\ttokenResponse, err := userCtrl.Register(ctx, in)\n", "\t\tif err != nil {\n", "\t\t\trender.TranslatedUserError(w, err)\n...
CREATE TABLE spaces ( space_id SERIAL PRIMARY KEY ,space_version INTEGER NOT NULL DEFAULT 0 ,space_parent_id INTEGER DEFAULT NULL ,space_uid TEXT NOT NULL ,space_description TEXT ,space_is_public BOOLEAN NOT NULL ,space_created_by INTEGER NOT NULL ,space_created BIGINT NOT NULL ,s...
internal/store/database/migrate/postgres/0001_create_table_b_spaces.up.sql
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00016420206520706415, 0.00016200714162550867, 0.0001598122325958684, 0.00016200714162550867, 0.0000021949163055978715 ]
{ "id": 11, "code_window": [ "\tsetupServiceAccounts(r, saCtrl)\n", "\tsetupPrincipals(r, principalCtrl)\n", "\tsetupInternal(r, githookCtrl)\n", "\tsetupAdmin(r, userCtrl)\n", "\tsetupAccount(r, userCtrl)\n", "\tsetupSystem(r, sysCtrl)\n", "\tsetupResources(r)\n", "}\n" ], "labe...
// 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.0002620341256260872, 0.00019248855824116617, 0.00016864438657648861, 0.0001763537438819185, 0.00003494675183901563 ]
{ "id": 11, "code_window": [ "\tsetupServiceAccounts(r, saCtrl)\n", "\tsetupPrincipals(r, principalCtrl)\n", "\tsetupInternal(r, githookCtrl)\n", "\tsetupAdmin(r, userCtrl)\n", "\tsetupAccount(r, userCtrl)\n", "\tsetupSystem(r, sysCtrl)\n", "\tsetupResources(r)\n", "}\n" ], "labe...
// 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 space import ( "context" "fmt" "math" "github.com/harness/gitness/internal/auth" "github.com/harness/gitness/type...
internal/api/controller/space/delete_repositories.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.0001794158888515085, 0.00017583734006620944, 0.00017279302119277418, 0.00017557022511027753, 0.0000024401915652561 ]
{ "id": 11, "code_window": [ "\tsetupServiceAccounts(r, saCtrl)\n", "\tsetupPrincipals(r, principalCtrl)\n", "\tsetupInternal(r, githookCtrl)\n", "\tsetupAdmin(r, userCtrl)\n", "\tsetupAccount(r, userCtrl)\n", "\tsetupSystem(r, sysCtrl)\n", "\tsetupResources(r)\n", "}\n" ], "labe...
// 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 space import ( "net/http" "github.com/harness/gitness/internal/api/controller/space" "github.com/harness/gitness/in...
internal/api/handler/space/list_repos.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00018021777214016765, 0.0001760062004905194, 0.00017230848607141525, 0.00017616634431760758, 0.000002956293428724166 ]
{ "id": 11, "code_window": [ "\tsetupServiceAccounts(r, saCtrl)\n", "\tsetupPrincipals(r, principalCtrl)\n", "\tsetupInternal(r, githookCtrl)\n", "\tsetupAdmin(r, userCtrl)\n", "\tsetupAccount(r, userCtrl)\n", "\tsetupSystem(r, sysCtrl)\n", "\tsetupResources(r)\n", "}\n" ], "labe...
// 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 events import ( "bytes" "context" "encoding/gob" "fmt" "time" ) // GenericReporter represents an event reporter t...
events/reporter.go
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00018014390661846846, 0.0001743292814353481, 0.00016667168529238552, 0.0001748802897054702, 0.000004791337232745718 ]
{ "id": 12, "code_window": [ "\t\t\t})\n", "\t\t})\n", "\t})\n", "}\n", "\n", "func setupAccount(r chi.Router, userCtrl *user.Controller) {\n", "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "repl...
// 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.023076022043824196, 0.008751560933887959, 0.0001718736457405612, 0.005879174917936325, 0.009492077864706516 ]
{ "id": 12, "code_window": [ "\t\t\t})\n", "\t\t})\n", "\t})\n", "}\n", "\n", "func setupAccount(r chi.Router, userCtrl *user.Controller) {\n", "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "repl...
const generateStringTypes = require('../strings/generateTypes.cjs') class GenerateStringTypesPlugin { apply(compiler) { compiler.hooks.emit.tapAsync('GenerateStringTypesPlugin', (compilation, callback) => { try { generateStringTypes().then( () => callback(), e => callback(e) ...
web/scripts/webpack/GenerateStringTypesPlugin.js
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017233443213626742, 0.00017204825417138636, 0.00017176206165459007, 0.00017204825417138636, 2.861852408386767e-7 ]
{ "id": 12, "code_window": [ "\t\t\t})\n", "\t\t})\n", "\t})\n", "}\n", "\n", "func setupAccount(r chi.Router, userCtrl *user.Controller) {\n", "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "repl...
/* eslint-disable */ // this is an auto-generated file declare const styles: { readonly main: string } export default styles
web/src/components/NavigationCheck/NavigationCheck.module.scss.d.ts
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017380081408191472, 0.00017380081408191472, 0.00017380081408191472, 0.00017380081408191472, 0 ]
{ "id": 12, "code_window": [ "\t\t\t})\n", "\t\t})\n", "\t})\n", "}\n", "\n", "func setupAccount(r chi.Router, userCtrl *user.Controller) {\n", "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n" ], "labels": [ "keep", "keep", "keep", "keep", "keep", "repl...
/.htaccess /administrator/cache/* /administrator/components/com_actionlogs/* /administrator/components/com_admin/* /administrator/components/com_ajax/* /administrator/components/com_associations/* /administrator/components/com_banners/* /administrator/components/com_cache/* /administrator/components/com_categories/* /a...
resources/gitignore/Joomla.gitignore
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017476783250458539, 0.00016808546206448227, 0.0001634823129279539, 0.00016787364438641816, 0.000003045184257643996 ]
{ "id": 13, "code_window": [ "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n", "\tr.Post(\"/register\", account.HandleRegister(userCtrl))\n", "\tr.Post(\"/logout\", account.HandleLogout(userCtrl))\n", "}" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit"...
// 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 system import ( "context" "github.com/harness/gitness/internal/store" "github.com/harness/gitness/types" ) type Co...
internal/api/controller/system/controller.go
1
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00018203684885520488, 0.00017612078227102757, 0.00017068404122255743, 0.0001758811267791316, 0.000004997563792130677 ]
{ "id": 13, "code_window": [ "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n", "\tr.Post(\"/register\", account.HandleRegister(userCtrl))\n", "\tr.Post(\"/logout\", account.HandleLogout(userCtrl))\n", "}" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit"...
import PrOpen from 'images/pull-request-open.svg' import PrMerged from 'images/pull-request-merged.svg' import PrClosed from 'images/pull-request-closed.svg' import PrRejected from 'images/pull-request-rejected.svg' import PrDraft from 'images/pull-request-draft.svg' import EmptyState from 'images/empty-state.svg' impo...
web/src/images/index.ts
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017556888633407652, 0.00017208245117217302, 0.0001666340249357745, 0.00017404441314283758, 0.000003902558091795072 ]
{ "id": 13, "code_window": [ "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n", "\tr.Post(\"/register\", account.HandleRegister(userCtrl))\n", "\tr.Post(\"/logout\", account.HandleLogout(userCtrl))\n", "}" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit"...
import React, { useEffect, useMemo, useRef } from 'react' import { Container } from '@harness/uicore' import { LanguageDescription } from '@codemirror/language' import { indentWithTab } from '@codemirror/commands' import cx from 'classnames' import type { ViewUpdate } from '@codemirror/view' import type { Text } from '...
web/src/components/Editor/Editor.tsx
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017991216736845672, 0.000174529806827195, 0.0001700128777883947, 0.00017441822274122387, 0.000002591164957266301 ]
{ "id": 13, "code_window": [ "\tr.Post(\"/login\", account.HandleLogin(userCtrl))\n", "\tr.Post(\"/register\", account.HandleRegister(userCtrl))\n", "\tr.Post(\"/logout\", account.HandleLogout(userCtrl))\n", "}" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit"...
/* eslint-disable */ // this is an auto-generated file declare const styles: { readonly main: string readonly withBorder: string readonly standalone: string readonly layout: string readonly text: string } export default styles
web/src/components/LoadingSpinner/LoadingSpinner.module.scss.d.ts
0
https://github.com/harness/gitness/commit/f18f142401b4a8dea0e7e0d7339b2de4741a7cbb
[ 0.00017991216736845672, 0.00017483059491496533, 0.00016974902246147394, 0.00017483059491496533, 0.00000508157245349139 ]
{ "id": 0, "code_window": [ "\n", "// MaxUnavailable returns the maximum unavailable pods a rolling deployment can take.\n", "func MaxUnavailable(deployment extensions.Deployment) int32 {\n", "\tif !IsRollingUpdate(&deployment) || *(deployment.Spec.Replicas) == 0 {\n", "\t\treturn int32(0)\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, ...
pkg/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.9987285733222961, 0.22264932096004486, 0.00016709609190002084, 0.000938807672355324, 0.41005009412765503 ]
{ "id": 0, "code_window": [ "\n", "// MaxUnavailable returns the maximum unavailable pods a rolling deployment can take.\n", "func MaxUnavailable(deployment extensions.Deployment) int32 {\n", "\tif !IsRollingUpdate(&deployment) || *(deployment.Spec.Replicas) == 0 {\n", "\t\treturn int32(0)\n", ...
/* 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/serviceaccount/util.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00019922282081097364, 0.00017591429059393704, 0.00016611781029496342, 0.00017325347289443016, 0.000009806582056626212 ]
{ "id": 0, "code_window": [ "\n", "// MaxUnavailable returns the maximum unavailable pods a rolling deployment can take.\n", "func MaxUnavailable(deployment extensions.Deployment) int32 {\n", "\tif !IsRollingUpdate(&deployment) || *(deployment.Spec.Replicas) == 0 {\n", "\t\treturn int32(0)\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, ...
pkg/kubectl/rollback.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.2916630208492279, 0.020020712167024612, 0.0001671842037467286, 0.0003942938055843115, 0.06409919261932373 ]
{ "id": 0, "code_window": [ "\n", "// MaxUnavailable returns the maximum unavailable pods a rolling deployment can take.\n", "func MaxUnavailable(deployment extensions.Deployment) int32 {\n", "\tif !IsRollingUpdate(&deployment) || *(deployment.Spec.Replicas) == 0 {\n", "\t\treturn int32(0)\n", ...
The MIT License (MIT) Copyright (c) 2016 Yasuhiro Matsumoto 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, merg...
vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/LICENSE
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001881675561890006, 0.00018006771279033273, 0.00017400278011336923, 0.00017803280206862837, 0.000005959075224382104 ]
{ "id": 1, "code_window": [ "\t_, maxUnavailable, _ := ResolveFenceposts(deployment.Spec.Strategy.RollingUpdate.MaxSurge, deployment.Spec.Strategy.RollingUpdate.MaxUnavailable, *(deployment.Spec.Replicas))\n", "\treturn maxUnavailable\n", "}\n", "\n", "// MaxUnavailableInternal returns the maxim...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.11441151052713394, 0.006042172200977802, 0.00016401021275669336, 0.00023923754633869976, 0.021287813782691956 ]
{ "id": 1, "code_window": [ "\t_, maxUnavailable, _ := ResolveFenceposts(deployment.Spec.Strategy.RollingUpdate.MaxSurge, deployment.Spec.Strategy.RollingUpdate.MaxUnavailable, *(deployment.Spec.Replicas))\n", "\treturn maxUnavailable\n", "}\n", "\n", "// MaxUnavailableInternal returns the maxim...
/* 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, ...
plugin/pkg/admission/imagepolicy/admission.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0011614436516538262, 0.00022030744003131986, 0.00016344443429261446, 0.0001672329963184893, 0.00019708345644176006 ]
{ "id": 1, "code_window": [ "\t_, maxUnavailable, _ := ResolveFenceposts(deployment.Spec.Strategy.RollingUpdate.MaxSurge, deployment.Spec.Strategy.RollingUpdate.MaxUnavailable, *(deployment.Spec.Replicas))\n", "\treturn maxUnavailable\n", "}\n", "\n", "// MaxUnavailableInternal returns the maxim...
package(default_visibility = ["//visibility:public"]) licenses(["notice"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", ) go_library( name = "go_default_library", srcs = ["assertion.go"], tags = ["automanaged"], deps = ["//vendor/github.com/onsi/gomega/types:go_default_library"], ) ...
vendor/github.com/onsi/gomega/internal/assertion/BUILD
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001679312699707225, 0.00016618722293060273, 0.00016447236703243107, 0.00016615803178865463, 0.000001412242113474349 ]
{ "id": 1, "code_window": [ "\t_, maxUnavailable, _ := ResolveFenceposts(deployment.Spec.Strategy.RollingUpdate.MaxSurge, deployment.Spec.Strategy.RollingUpdate.MaxUnavailable, *(deployment.Spec.Replicas))\n", "\treturn maxUnavailable\n", "}\n", "\n", "// MaxUnavailableInternal returns the maxim...
// 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. // +build darwin dragonfly freebsd linux netbsd openbsd solaris package unix func itoa(val int) string { // do it here rather than with fmt to avoid dependenc...
vendor/golang.org/x/sys/unix/str.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00019376756972633302, 0.00017612677766010165, 0.0001662707218201831, 0.0001683420268818736, 0.000012502556273830123 ]
{ "id": 2, "code_window": [ "\t\t\treturn fmt.Sprintf(\"Waiting for rollout to finish: %d out of %d new replicas have been updated...\\n\", deployment.Status.UpdatedReplicas, deployment.Spec.Replicas), false, nil\n", "\t\t}\n", "\t\tif deployment.Status.Replicas > deployment.Status.UpdatedReplicas {\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, ...
pkg/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0028353931847959757, 0.000315033714286983, 0.000162201322382316, 0.00017006606503855437, 0.0004796290013473481 ]
{ "id": 2, "code_window": [ "\t\t\treturn fmt.Sprintf(\"Waiting for rollout to finish: %d out of %d new replicas have been updated...\\n\", deployment.Status.UpdatedReplicas, deployment.Spec.Replicas), false, nil\n", "\t\t}\n", "\t\tif deployment.Status.Replicas > deployment.Status.UpdatedReplicas {\n",...
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 = ["controller.go"], tags = ["automanaged"], deps = [ "//federation/apis/federation/v1beta1:g...
federation/pkg/federation-controller/sync/BUILD
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017380826466251165, 0.00017104441940318793, 0.00016655919898767024, 0.00017156641115434468, 0.0000022261167487158673 ]
{ "id": 2, "code_window": [ "\t\t\treturn fmt.Sprintf(\"Waiting for rollout to finish: %d out of %d new replicas have been updated...\\n\", deployment.Status.UpdatedReplicas, deployment.Spec.Replicas), false, nil\n", "\t\t}\n", "\t\tif deployment.Status.Replicas > deployment.Status.UpdatedReplicas {\n",...
# 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. CLEANFILES+=maketables maketables: maketables.go go build $^ tables: maketables ./maketables > tables.go gofmt -w -s tables.go # Build (but do not run) maket...
vendor/golang.org/x/text/language/Makefile
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017464904522057623, 0.00017302337801083922, 0.00017139772535301745, 0.00017302337801083922, 0.0000016256599337793887 ]
{ "id": 2, "code_window": [ "\t\t\treturn fmt.Sprintf(\"Waiting for rollout to finish: %d out of %d new replicas have been updated...\\n\", deployment.Status.UpdatedReplicas, deployment.Spec.Replicas), false, nil\n", "\t\t}\n", "\t\tif deployment.Status.Replicas > deployment.Status.UpdatedReplicas {\n",...
language: go go: - 1.5.4 - 1.6.3 - 1.7 go_import_path: google.golang.org/grpc before_install: - if [[ $TRAVIS_GO_VERSION != 1.5* ]]; then go get github.com/golang/lint/golint; fi - go get -u golang.org/x/tools/cmd/goimports github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover ...
vendor/google.golang.org/grpc/.travis.yml
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017560587730258703, 0.00017270594253204763, 0.00016980600776150823, 0.00017270594253204763, 0.000002899934770539403 ]
{ "id": 3, "code_window": [ "\t\"testing\"\n", "\n", "\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n", "\tintstrutil \"k8s.io/apimachinery/pkg/util/intstr\"\n", "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.2713809311389923, 0.00896336231380701, 0.00016512574802618474, 0.0001735113764880225, 0.0479109026491642 ]
{ "id": 3, "code_window": [ "\t\"testing\"\n", "\n", "\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n", "\tintstrutil \"k8s.io/apimachinery/pkg/util/intstr\"\n", "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\...
package pflag import "strconv" // -- uint64 Value type uint64Value uint64 func newUint64Value(val uint64, p *uint64) *uint64Value { *p = val return (*uint64Value)(p) } func (i *uint64Value) Set(s string) error { v, err := strconv.ParseUint(s, 0, 64) *i = uint64Value(v) return err } func (i *uint64Value) Type(...
vendor/github.com/spf13/pflag/uint64.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0041886926628649235, 0.0007223426946438849, 0.00016489994595758617, 0.0001938954519573599, 0.0012402806896716356 ]
{ "id": 3, "code_window": [ "\t\"testing\"\n", "\n", "\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n", "\tintstrutil \"k8s.io/apimachinery/pkg/util/intstr\"\n", "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\...
/* 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/retry/util_test.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.004404434934258461, 0.0007024186197668314, 0.00016779618454165757, 0.00017517845844849944, 0.0013992342865094543 ]
{ "id": 3, "code_window": [ "\t\"testing\"\n", "\n", "\tmetav1 \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n", "\tintstrutil \"k8s.io/apimachinery/pkg/util/intstr\"\n", "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\...
package gophercloud import ( "errors" "net/url" "path/filepath" "strings" "time" ) // WaitFor polls a predicate function, once per second, up to a timeout limit. // It usually does this to wait for a resource to transition to a certain state. // Resource packages will wrap this in a more convenient function that...
vendor/github.com/rackspace/gophercloud/util.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00029753008857369423, 0.00019018485909327865, 0.00016440573381260037, 0.00017476300126872957, 0.00004085849650437012 ]
{ "id": 4, "code_window": [ "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\"\n", ")\n", "\n", "func intOrStringP(i int) *intstrutil.IntOrString {\n", "\tintstr := intstrutil.FromInt(i)\n", "\treturn &intstr\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, ...
pkg/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.999037504196167, 0.3295153081417084, 0.00016523267549928278, 0.0001761737366905436, 0.46073105931282043 ]
{ "id": 4, "code_window": [ "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\"\n", ")\n", "\n", "func intOrStringP(i int) *intstrutil.IntOrString {\n", "\tintstr := intstrutil.FromInt(i)\n", "\treturn &intstr\n"...
/* Copyright 2017 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, ...
staging/src/k8s.io/client-go/informers/autoscaling/interface.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0003433204547036439, 0.0002014329074881971, 0.00016651632904540747, 0.0001750566007103771, 0.00006361304986057803 ]
{ "id": 4, "code_window": [ "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\"\n", ")\n", "\n", "func intOrStringP(i int) *intstrutil.IntOrString {\n", "\tintstr := intstrutil.FromInt(i)\n", "\treturn &intstr\n"...
package autorest import ( "bytes" "encoding/json" "encoding/xml" "fmt" "io" "net/url" "reflect" "sort" "strings" ) // EncodedAs is a series of constants specifying various data encodings type EncodedAs string const ( // EncodedAsJSON states that data is encoded as JSON EncodedAsJSON EncodedAs = "JSON" /...
vendor/github.com/Azure/go-autorest/autorest/utility.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0018184841610491276, 0.00028720416594296694, 0.00016261928249150515, 0.00016926435637287796, 0.0003789804468397051 ]
{ "id": 4, "code_window": [ "\t\"k8s.io/kubernetes/pkg/apis/extensions\"\n", "\t\"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake\"\n", ")\n", "\n", "func intOrStringP(i int) *intstrutil.IntOrString {\n", "\tintstr := intstrutil.FromInt(i)\n", "\treturn &intstr\n"...
/* Copyright 2017 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_clientset/typed/extensions/v1beta1/generated_expansion.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001777434372343123, 0.0001737002021400258, 0.00016601913375779986, 0.00017733799177221954, 0.000005433846581581747 ]
{ "id": 5, "code_window": [ "func TestDeploymentStatusViewerStatus(t *testing.T) {\n", "\ttests := []struct {\n", "\t\tgeneration int64\n", "\t\tspecReplicas int32\n", "\t\tmaxUnavailable *intstrutil.IntOrString\n", "\t\tstatus extensions.DeploymentStatus\n", "\t\tmsg ...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.9980044960975647, 0.07349064946174622, 0.00016378829604946077, 0.00048296112800017, 0.2446385622024536 ]
{ "id": 5, "code_window": [ "func TestDeploymentStatusViewerStatus(t *testing.T) {\n", "\ttests := []struct {\n", "\t\tgeneration int64\n", "\t\tspecReplicas int32\n", "\t\tmaxUnavailable *intstrutil.IntOrString\n", "\t\tstatus extensions.DeploymentStatus\n", "\t\tmsg ...
package(default_visibility = ["//visibility:public"]) licenses(["notice"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", ) go_library( name = "go_default_library", srcs = [ "api.go", "service.go", "waiters.go", ], tags = ["automanaged"], deps = [ "/...
vendor/github.com/aws/aws-sdk-go/service/elb/BUILD
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017406034749001265, 0.00017214423860423267, 0.0001672765356488526, 0.0001729532377794385, 0.000002470799472575891 ]
{ "id": 5, "code_window": [ "func TestDeploymentStatusViewerStatus(t *testing.T) {\n", "\ttests := []struct {\n", "\t\tgeneration int64\n", "\t\tspecReplicas int32\n", "\t\tmaxUnavailable *intstrutil.IntOrString\n", "\t\tstatus extensions.DeploymentStatus\n", "\t\tmsg ...
# -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" # Require a recent version of vagrant otherwise some have reported errors setting host names on boxes Vagrant.require_version ">= 1.7.4" if ARGV.first == "up" && ENV...
Vagrantfile
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001818094460759312, 0.00017150321218650788, 0.00016314921958837658, 0.0001717245759209618, 0.000003662283234007191 ]
{ "id": 5, "code_window": [ "func TestDeploymentStatusViewerStatus(t *testing.T) {\n", "\ttests := []struct {\n", "\t\tgeneration int64\n", "\t\tspecReplicas int32\n", "\t\tmaxUnavailable *intstrutil.IntOrString\n", "\t\tstatus extensions.DeploymentStatus\n", "\t\tmsg ...
/* Copyright (c) 2015 VMware, 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 t...
vendor/github.com/vmware/govmomi/object/ovf_manager.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017715326976031065, 0.00017252932593692094, 0.00016762524319346994, 0.00017209092038683593, 0.0000032216075851465575 ]
{ "id": 6, "code_window": [ "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(0),\n", "\t\t\tstatus: extensions.DeploymentStatus{\n", "\t\t\t\tObservedGeneration: 1,\n", "\t\t\t\tReplica...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.11707483977079391, 0.005038021132349968, 0.00016366744239348918, 0.00027229267288930714, 0.020615627989172935 ]
{ "id": 6, "code_window": [ "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(0),\n", "\t\t\tstatus: extensions.DeploymentStatus{\n", "\t\t\t\tObservedGeneration: 1,\n", "\t\t\t\tReplica...
/* Copyright 2017 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/informers/informers_generated/externalversions/rbac/v1alpha1/clusterrole.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00018766942957881838, 0.00017239709268324077, 0.00016399675223510712, 0.00016978770145215094, 0.000007468625881301705 ]
{ "id": 6, "code_window": [ "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(0),\n", "\t\t\tstatus: extensions.DeploymentStatus{\n", "\t\t\t\tObservedGeneration: 1,\n", "\t\t\t\tReplica...
This file has moved to [https://github.com/kubernetes/community/blob/master/contributors/design-proposals/kubectl-login.md](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/kubectl-login.md)
docs/proposals/kubectl-login.md
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017185694014187902, 0.00017185694014187902, 0.00017185694014187902, 0.00017185694014187902, 0 ]
{ "id": 6, "code_window": [ "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(0),\n", "\t\t\tstatus: extensions.DeploymentStatus{\n", "\t\t\t\tObservedGeneration: 1,\n", "\t\t\t\tReplica...
reviewers: - justinsb - freehan - david-mcmahon
pkg/api/service/OWNERS
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017171933723147959, 0.00017171933723147959, 0.00017171933723147959, 0.00017171933723147959, 0 ]
{ "id": 7, "code_window": [ "\t\t\t\tAvailableReplicas: 1,\n", "\t\t\t\tUnavailableReplicas: 1,\n", "\t\t\t},\n", "\n", "\t\t\tmsg: \"Waiting for rollout to finish: 1 of 2 updated replicas are available (minimum required: 2)...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.40700942277908325, 0.01725403033196926, 0.0001644842850510031, 0.00021906908659730107, 0.0730416402220726 ]
{ "id": 7, "code_window": [ "\t\t\t\tAvailableReplicas: 1,\n", "\t\t\t\tUnavailableReplicas: 1,\n", "\t\t\t},\n", "\n", "\t\t\tmsg: \"Waiting for rollout to finish: 1 of 2 updated replicas are available (minimum required: 2)...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\...
/* Copyright 2017 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, ...
staging/src/k8s.io/client-go/pkg/apis/authorization/v1beta1/generated.proto
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0002677790471352637, 0.00017939551617018878, 0.00016256254457402974, 0.0001688910706434399, 0.000028483313144533895 ]
{ "id": 7, "code_window": [ "\t\t\t\tAvailableReplicas: 1,\n", "\t\t\t\tUnavailableReplicas: 1,\n", "\t\t\t},\n", "\n", "\t\t\tmsg: \"Waiting for rollout to finish: 1 of 2 updated replicas are available (minimum required: 2)...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\...
## Java EE Application using WildFly and MySQL The following document describes the deployment of a Java EE application using [WildFly](http://wildfly.org) application server and MySQL database server on Kubernetes. The sample application source code is at: https://github.com/javaee-samples/javaee7-simple-sample. ###...
examples/javaee/README.md
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001734620745992288, 0.00016667430463712662, 0.00015918684948701411, 0.00016674186917953193, 0.000003827133696177043 ]
{ "id": 7, "code_window": [ "\t\t\t\tAvailableReplicas: 1,\n", "\t\t\t\tUnavailableReplicas: 1,\n", "\t\t\t},\n", "\n", "\t\t\tmsg: \"Waiting for rollout to finish: 1 of 2 updated replicas are available (minimum required: 2)...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\...
package restful // Copyright 2013 Ernest Micklei. All rights reserved. // Use of this source code is governed by a license // that can be found in the LICENSE file. import ( "bytes" "errors" "fmt" "net/http" "os" "runtime" "strings" "sync" "github.com/emicklei/go-restful/log" ) // Container holds a collect...
vendor/github.com/emicklei/go-restful/container.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0007859010365791619, 0.00019852422701660544, 0.0001640721457079053, 0.0001722219167277217, 0.00010654501966200769 ]
{ "id": 8, "code_window": [ "\n", "\t\t\tmsg: \"Waiting for deployment spec update to be observed...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(1),\n", "\t\t\tstatus: ex...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.842667818069458, 0.030400250107049942, 0.00016227169544436038, 0.00037908865488134325, 0.14881515502929688 ]
{ "id": 8, "code_window": [ "\n", "\t\t\tmsg: \"Waiting for deployment spec update to be observed...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(1),\n", "\t\t\tstatus: ex...
The MIT License (MIT) Copyright (c) 2015 Microsoft Corporation 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, m...
vendor/github.com/Azure/go-ansiterm/LICENSE
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017916270007845014, 0.00017310114344581962, 0.00016753528325352818, 0.00017260546155739576, 0.000004759795501740882 ]
{ "id": 8, "code_window": [ "\n", "\t\t\tmsg: \"Waiting for deployment spec update to be observed...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(1),\n", "\t\t\tstatus: ex...
apiVersion: v1 items: - apiVersion: v1 kind: Service metadata: labels: app: svc1 name: svc1 spec: ports: - name: "81" port: 81 protocol: TCP targetPort: 81 selector: app: svc1 sessionAffinity: None type: ClusterIP - apiVersion: v1 kind: Service metadat...
pkg/kubectl/cmd/testdata/edit/testcase-create-list/svc.yaml
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017471534374635667, 0.0001728829665808007, 0.0001721178414300084, 0.00017234931874554604, 0.000001062190676748287 ]
{ "id": 8, "code_window": [ "\n", "\t\t\tmsg: \"Waiting for deployment spec update to be observed...\\n\",\n", "\t\t\tdone: false,\n", "\t\t},\n", "\t\t{\n", "\t\t\tgeneration: 1,\n", "\t\t\tspecReplicas: 2,\n", "\t\t\tmaxUnavailable: intOrStringP(1),\n", "\t\t\tstatus: ex...
// +build !windows package system import ( "os" "path/filepath" ) // MkdirAll creates a directory named path along with any necessary parents, // with permission specified by attribute perm for all dir created. func MkdirAll(path string, perm os.FileMode) error { return os.MkdirAll(path, perm) } // IsAbs is a pl...
vendor/github.com/docker/docker/pkg/system/filesys.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00016350818623322994, 0.0001626076700631529, 0.00016170715389307588, 0.0001626076700631529, 9.005161700770259e-7 ]
{ "id": 9, "code_window": [ "\t}\n", "\n", "\tfor i := range tests {\n", "\t\ttest := tests[i]\n", "\t\tt.Logf(\"testing scenario %d\", i)\n", "\t\td := &extensions.Deployment{\n", "\t\t\tObjectMeta: metav1.ObjectMeta{\n", "\t\t\t\tNamespace: \"bar\",\n", "\t\t\t\tName: \"...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.998085618019104, 0.1944446861743927, 0.0001647173339733854, 0.0001780986785888672, 0.37185919284820557 ]
{ "id": 9, "code_window": [ "\t}\n", "\n", "\tfor i := range tests {\n", "\t\ttest := tests[i]\n", "\t\tt.Logf(\"testing scenario %d\", i)\n", "\t\td := &extensions.Deployment{\n", "\t\t\tObjectMeta: metav1.ObjectMeta{\n", "\t\t\t\tNamespace: \"bar\",\n", "\t\t\t\tName: \"...
// 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...
vendor/github.com/google/cadvisor/container/raw/factory.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001777641155058518, 0.00017242744797840714, 0.00016448175301775336, 0.00017308531096205115, 0.000004247119250067044 ]
{ "id": 9, "code_window": [ "\t}\n", "\n", "\tfor i := range tests {\n", "\t\ttest := tests[i]\n", "\t\tt.Logf(\"testing scenario %d\", i)\n", "\t\td := &extensions.Deployment{\n", "\t\t\tObjectMeta: metav1.ObjectMeta{\n", "\t\t\t\tNamespace: \"bar\",\n", "\t\t\t\tName: \"...
/* Copyright 2017 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/kubeadm/app/discovery/token/token_test.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.013938254676759243, 0.0023279848974198103, 0.0001718901767162606, 0.0001782979816198349, 0.004761213902384043 ]
{ "id": 9, "code_window": [ "\t}\n", "\n", "\tfor i := range tests {\n", "\t\ttest := tests[i]\n", "\t\tt.Logf(\"testing scenario %d\", i)\n", "\t\td := &extensions.Deployment{\n", "\t\t\tObjectMeta: metav1.ObjectMeta{\n", "\t\t\t\tNamespace: \"bar\",\n", "\t\t\t\tName: \"...
{ "plugin": "filelog", "pluginConfig": { "timestamp": "dummy", "message": "dummy", "timestampFormat": "dummy" }, "logPath": "/dev/null", "lookback": "10m", "bufferSize": 10, "source": "kernel-monitor", "conditions": [], "rules": [] }
test/kubemark/resources/kernel-monitor.json
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.000177097535924986, 0.00017494198982603848, 0.00017278642917517573, 0.00017494198982603848, 0.000002155553374905139 ]
{ "id": 10, "code_window": [ "\t\t\t\tGeneration: test.generation,\n", "\t\t\t},\n", "\t\t\tSpec: extensions.DeploymentSpec{\n", "\t\t\t\tStrategy: extensions.DeploymentStrategy{\n", "\t\t\t\t\tType: extensions.RollingUpdateDeploymentStrategyType,\n", "\t\t\t\t\tRollingUpdate: &extensions.Ro...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.05649162083864212, 0.0024279740173369646, 0.00016406243958044797, 0.00020671692618634552, 0.009914012625813484 ]
{ "id": 10, "code_window": [ "\t\t\t\tGeneration: test.generation,\n", "\t\t\t},\n", "\t\t\tSpec: extensions.DeploymentSpec{\n", "\t\t\t\tStrategy: extensions.DeploymentStrategy{\n", "\t\t\t\t\tType: extensions.RollingUpdateDeploymentStrategyType,\n", "\t\t\t\t\tRollingUpdate: &extensions.Ro...
/* 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/azure/azure_zones.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001787466899259016, 0.00017310553812421858, 0.0001704646274447441, 0.0001718213752610609, 0.00000318137767862936 ]
{ "id": 10, "code_window": [ "\t\t\t\tGeneration: test.generation,\n", "\t\t\t},\n", "\t\t\tSpec: extensions.DeploymentSpec{\n", "\t\t\t\tStrategy: extensions.DeploymentStrategy{\n", "\t\t\t\t\tType: extensions.RollingUpdateDeploymentStrategyType,\n", "\t\t\t\t\tRollingUpdate: &extensions.Ro...
/* Copyright 2017 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, ...
staging/src/k8s.io/client-go/kubernetes/typed/certificates/v1beta1/fake/doc.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017859251238405704, 0.00017640892474446446, 0.00017321102495770901, 0.0001774232368916273, 0.0000023110926576919155 ]
{ "id": 10, "code_window": [ "\t\t\t\tGeneration: test.generation,\n", "\t\t\t},\n", "\t\t\tSpec: extensions.DeploymentSpec{\n", "\t\t\t\tStrategy: extensions.DeploymentStrategy{\n", "\t\t\t\t\tType: extensions.RollingUpdateDeploymentStrategyType,\n", "\t\t\t\t\tRollingUpdate: &extensions.Ro...
// 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 go1.2 package language import "sort" var sortStable = sort.Stable
vendor/golang.org/x/text/language/go1_2.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017796661995816976, 0.00017433208995498717, 0.00017069754539988935, 0.00017433208995498717, 0.000003634537279140204 ]
{ "id": 11, "code_window": [ "\t\t\t\tReplicas: test.specReplicas,\n", "\t\t\t},\n", "\t\t\tStatus: test.status,\n", "\t\t}\n", "\t\tif test.maxUnavailable != nil {\n", "\t\t\td.Spec.Strategy.RollingUpdate.MaxUnavailable = *test.maxUnavailable\n", "\t\t}\n", "\t\tclient := fake.NewSi...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.9980151653289795, 0.1394057422876358, 0.00016369897639378905, 0.0001950371079146862, 0.33342453837394714 ]
{ "id": 11, "code_window": [ "\t\t\t\tReplicas: test.specReplicas,\n", "\t\t\t},\n", "\t\t\tStatus: test.status,\n", "\t\t}\n", "\t\tif test.maxUnavailable != nil {\n", "\t\t\td.Spec.Strategy.RollingUpdate.MaxUnavailable = *test.maxUnavailable\n", "\t\t}\n", "\t\tclient := fake.NewSi...
/* 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/cm/pod_container_manager_linux.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017907987057697028, 0.0001712130178930238, 0.0001618034002603963, 0.00017187712364830077, 0.00000448608852821053 ]
{ "id": 11, "code_window": [ "\t\t\t\tReplicas: test.specReplicas,\n", "\t\t\t},\n", "\t\t\tStatus: test.status,\n", "\t\t}\n", "\t\tif test.maxUnavailable != nil {\n", "\t\t\td.Spec.Strategy.RollingUpdate.MaxUnavailable = *test.maxUnavailable\n", "\t\t}\n", "\t\tclient := fake.NewSi...
// Copyright 2011 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 ssh import ( "bytes" "errors" "fmt" "io" ) // clientAuthenticate authenticates with the remote server. See RFC 4252. func (c *connection) clientAu...
vendor/golang.org/x/crypto/ssh/client_auth.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0003403269511181861, 0.0001725887559587136, 0.00016040564514696598, 0.00016902570496313274, 0.000024786131689324975 ]
{ "id": 11, "code_window": [ "\t\t\t\tReplicas: test.specReplicas,\n", "\t\t\t},\n", "\t\t\tStatus: test.status,\n", "\t\t}\n", "\t\tif test.maxUnavailable != nil {\n", "\t\t\td.Spec.Strategy.RollingUpdate.MaxUnavailable = *test.maxUnavailable\n", "\t\t}\n", "\t\tclient := fake.NewSi...
This file is autogenerated, but we've stopped checking such files into the repository to reduce the need for rebases. Please run hack/generate-docs.sh to populate this file.
docs/yaml/kubectl/kubectl_drain.yaml
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017620011931285262, 0.00017620011931285262, 0.00017620011931285262, 0.00017620011931285262, 0 ]
{ "id": 12, "code_window": [ "\t\tclient := fake.NewSimpleClientset(d).Extensions()\n", "\t\tdsv := &DeploymentStatusViewer{c: client}\n", "\t\tmsg, done, err := dsv.Status(\"bar\", \"foo\", 0)\n", "\t\tif err != nil {\n", "\t\t\tt.Fatalf(\"unexpected error: %v\", err)\n", "\t\t}\n", "\t...
/* 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/kubectl/rollout_status_test.go
1
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.9990425705909729, 0.14244282245635986, 0.00016364699695259333, 0.0007231629570014775, 0.3326268196105957 ]
{ "id": 12, "code_window": [ "\t\tclient := fake.NewSimpleClientset(d).Extensions()\n", "\t\tdsv := &DeploymentStatusViewer{c: client}\n", "\t\tmsg, done, err := dsv.Status(\"bar\", \"foo\", 0)\n", "\t\tif err != nil {\n", "\t\t\tt.Fatalf(\"unexpected error: %v\", err)\n", "\t\t}\n", "\t...
/* 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, ...
staging/src/k8s.io/apimachinery/pkg/conversion/deep_equal.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0001791418471839279, 0.00017317227320745587, 0.00016814230184536427, 0.00017270247917622328, 0.000004732100478577195 ]
{ "id": 12, "code_window": [ "\t\tclient := fake.NewSimpleClientset(d).Extensions()\n", "\t\tdsv := &DeploymentStatusViewer{c: client}\n", "\t\tmsg, done, err := dsv.Status(\"bar\", \"foo\", 0)\n", "\t\tif err != nil {\n", "\t\t\tt.Fatalf(\"unexpected error: %v\", err)\n", "\t\t}\n", "\t...
/* Copyright 2017 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/clientset/typed/rbac/v1beta1/fake/fake_role.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.00017918508092407137, 0.00016751674411352724, 0.000163470467668958, 0.0001655433006817475, 0.000004631466254068073 ]
{ "id": 12, "code_window": [ "\t\tclient := fake.NewSimpleClientset(d).Extensions()\n", "\t\tdsv := &DeploymentStatusViewer{c: client}\n", "\t\tmsg, done, err := dsv.Status(\"bar\", \"foo\", 0)\n", "\t\tif err != nil {\n", "\t\t\tt.Fatalf(\"unexpected error: %v\", err)\n", "\t\t}\n", "\t...
package jlexer import "fmt" // LexerError implements the error interface and represents all possible errors that can be // generated during parsing the JSON data. type LexerError struct { Reason string Offset int Data string } func (l *LexerError) Error() string { return fmt.Sprintf("parse error: %s near offse...
vendor/github.com/mailru/easyjson/jlexer/error.go
0
https://github.com/kubernetes/kubernetes/commit/1923cc60c95943543f036a1c9633f3c4219c917f
[ 0.0002936081727966666, 0.00025274697691202164, 0.0002118857519235462, 0.00025274697691202164, 0.000040861210436560214 ]