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": 12,
"code_window": [
"\tsql = \"insert into t(id, a) values(2000, 'test')\"\n",
"\tencoder.Encode(sql, tableID)\n",
"\tc.Assert(alloc.Base(), Equals, int64(2000))\n",
"}\n",
"\n",
"func (s *testKvEncoderSuite) TestSimpleKeyEncode(c *C) {\n",
"\tencoder, err := New(\"test\", nil)\... | // Copyright 2017 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | util/kvencoder/allocator.go | 1 | https://github.com/pingcap/tidb/commit/c6258e3aeb79a06753e9d013b78a6f6e0b4df708 | [
0.0032545512076467276,
0.0011936606606468558,
0.00017772852152120322,
0.0008154412498697639,
0.0011400869116187096
] |
{
"id": 12,
"code_window": [
"\tsql = \"insert into t(id, a) values(2000, 'test')\"\n",
"\tencoder.Encode(sql, tableID)\n",
"\tc.Assert(alloc.Base(), Equals, int64(2000))\n",
"}\n",
"\n",
"func (s *testKvEncoderSuite) TestSimpleKeyEncode(c *C) {\n",
"\tencoder, err := New(\"test\", nil)\... | // Copyright 2011 The Snappy-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 snappy
import (
"encoding/binary"
"errors"
"io"
)
var (
// ErrCorrupt reports that the input is invalid.
ErrCorrupt = errors.New("snappy: ... | vendor/github.com/golang/snappy/decode.go | 0 | https://github.com/pingcap/tidb/commit/c6258e3aeb79a06753e9d013b78a6f6e0b4df708 | [
0.3686995804309845,
0.017955878749489784,
0.0001644194999244064,
0.00017465901328250766,
0.07028884440660477
] |
{
"id": 12,
"code_window": [
"\tsql = \"insert into t(id, a) values(2000, 'test')\"\n",
"\tencoder.Encode(sql, tableID)\n",
"\tc.Assert(alloc.Base(), Equals, int64(2000))\n",
"}\n",
"\n",
"func (s *testKvEncoderSuite) TestSimpleKeyEncode(c *C) {\n",
"\tencoder, err := New(\"test\", nil)\... | // Copyright 2012, 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 sync2
// What's in a name? Channels have all you need to emulate a counting
// semaphore with a boatload of extra functionality. However, in some
// cases... | vendor/github.com/ngaut/sync2/semaphore.go | 0 | https://github.com/pingcap/tidb/commit/c6258e3aeb79a06753e9d013b78a6f6e0b4df708 | [
0.00017661390302237123,
0.00017331691924482584,
0.0001703819289105013,
0.00017272477271035314,
0.000002117275926138973
] |
{
"id": 12,
"code_window": [
"\tsql = \"insert into t(id, a) values(2000, 'test')\"\n",
"\tencoder.Encode(sql, tableID)\n",
"\tc.Assert(alloc.Base(), Equals, int64(2000))\n",
"}\n",
"\n",
"func (s *testKvEncoderSuite) TestSimpleKeyEncode(c *C) {\n",
"\tencoder, err := New(\"test\", nil)\... | // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package util
// This a copy of Go std bytes.Buffer with some modification
// and some features stripped.
import (
"bytes"
"io"
)
// A Buffer is a variable-... | vendor/github.com/pingcap/goleveldb/leveldb/util/buffer.go | 0 | https://github.com/pingcap/tidb/commit/c6258e3aeb79a06753e9d013b78a6f6e0b4df708 | [
0.0007760896114632487,
0.0002071602939395234,
0.0001604139106348157,
0.00017291473341174424,
0.0001155105564976111
] |
{
"id": 0,
"code_window": [
"\t\tCommit: false,\n",
"\t\t// Resolved intents should maintain an abort span entry to prevent\n",
"\t\t// concurrent requests from failing to notice the transaction was aborted.\n",
"\t\tPoison: true,\n",
"\t})\n",
"\n",
"\tconst taskName = \"txnHeartbeater:... | // Copyright 2016 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | pkg/kv/kvserver/replica_range_lease.go | 1 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.5283776521682739,
0.0035163613501936197,
0.00015874742530286312,
0.0001690666249487549,
0.04136689752340317
] |
{
"id": 0,
"code_window": [
"\t\tCommit: false,\n",
"\t\t// Resolved intents should maintain an abort span entry to prevent\n",
"\t\t// concurrent requests from failing to notice the transaction was aborted.\n",
"\t\tPoison: true,\n",
"\t})\n",
"\n",
"\tconst taskName = \"txnHeartbeater:... | // Copyright 2021 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | pkg/cmd/generate-staticcheck/main.go | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.00017886346904560924,
0.00017233658581972122,
0.00016732470248825848,
0.0001724426110740751,
0.0000034939857869176194
] |
{
"id": 0,
"code_window": [
"\t\tCommit: false,\n",
"\t\t// Resolved intents should maintain an abort span entry to prevent\n",
"\t\t// concurrent requests from failing to notice the transaction was aborted.\n",
"\t\tPoison: true,\n",
"\t})\n",
"\n",
"\tconst taskName = \"txnHeartbeater:... | // Copyright 2022 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | pkg/sql/schemachanger/sctest_generated_test.go | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.0002166584599763155,
0.000170959610841237,
0.00016520557983312756,
0.00017107557505369186,
0.000004043457920488436
] |
{
"id": 0,
"code_window": [
"\t\tCommit: false,\n",
"\t\t// Resolved intents should maintain an abort span entry to prevent\n",
"\t\t// concurrent requests from failing to notice the transaction was aborted.\n",
"\t\tPoison: true,\n",
"\t})\n",
"\n",
"\tconst taskName = \"txnHeartbeater:... | select '[1, "a", true, null, {"c": "blah", "d": []}]':::JSON, '{"\n": ["\""], "\"": "\\"}'::JSONB | pkg/sql/sem/tree/testdata/pretty/json.sql | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.0001726736081764102,
0.0001726736081764102,
0.0001726736081764102,
0.0001726736081764102,
0
] |
{
"id": 1,
"code_window": [
"\t\"github.com/cockroachdb/cockroach/pkg/roachpb\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/settings\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util/envutil\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg... | // Copyright 2016 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | pkg/kv/kvserver/replica_range_lease.go | 1 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.12184959650039673,
0.0015071425586938858,
0.00016291666543111205,
0.00017011156887747347,
0.011725514195859432
] |
{
"id": 1,
"code_window": [
"\t\"github.com/cockroachdb/cockroach/pkg/roachpb\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/settings\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util/envutil\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg... | repartition from=../partition/single_col_range_partitioning_maxvalue to=../partition/unpartitioned
----
| pkg/ccl/spanconfigccl/spanconfigsqltranslatorccl/testdata/3node/repartition/single_col_range_partitioning_maxvalue_to_unpartitioned | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.0001688830234343186,
0.0001688830234343186,
0.0001688830234343186,
0.0001688830234343186,
0
] |
{
"id": 1,
"code_window": [
"\t\"github.com/cockroachdb/cockroach/pkg/roachpb\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/settings\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util/envutil\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg... | // Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | pkg/sql/opt/optgen/lang/parser_test.go | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.0028300215490162373,
0.0006147320964373648,
0.00016944773960858583,
0.00017231132369488478,
0.0009907082421705127
] |
{
"id": 1,
"code_window": [
"\t\"github.com/cockroachdb/cockroach/pkg/roachpb\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/settings\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg/util/envutil\"\n",
"\t\"github.com/cockroachdb/cockroach/pkg... | exec-ddl
CREATE TABLE a (k INT PRIMARY KEY, i INT, s STRING, d DECIMAL NOT NULL)
----
exec-ddl
CREATE TABLE b (x INT, z INT NOT NULL)
----
opt
SELECT k, i FROM a UNION SELECT * FROM b
----
union
├── columns: k:12 i:13
├── left columns: a.k:1 a.i:2
├── right columns: x:7 z:8
├── stats: [rows=2000, distinct(12,13)=... | pkg/sql/opt/xform/testdata/coster/set | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.00017784176452551037,
0.00017585685418453068,
0.00017041928367689252,
0.0001760628365445882,
0.000001662975250837917
] |
{
"id": 2,
"code_window": [
"\t// TransferLease will observe the circuit breaker, as transferring a\n",
"\t// lease when the range is unavailable results in, essentially, giving\n",
"\t// up on the lease and thus worsening the situation.\n",
"\tba.Add(leaseReq)\n",
"\t_, pErr := p.repl.Send(ctx,... | // Copyright 2018 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | pkg/kv/kvclient/kvcoord/txn_interceptor_heartbeater.go | 1 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.9966540336608887,
0.11530564725399017,
0.0001638974790694192,
0.0001696006511338055,
0.3019724190235138
] |
{
"id": 2,
"code_window": [
"\t// TransferLease will observe the circuit breaker, as transferring a\n",
"\t// lease when the range is unavailable results in, essentially, giving\n",
"\t// up on the lease and thus worsening the situation.\n",
"\tba.Add(leaseReq)\n",
"\t_, pErr := p.repl.Send(ctx,... | # =============================================================================
# decorrelate.opt contains normalization patterns that try to eliminate
# correlated subqueries. A correlated subquery is a subquery with one or more
# outer columns. For example:
#
# SELECT * FROM a WHERE (SELECT b.y FROM b WHERE a.x=b.x... | pkg/sql/opt/norm/rules/decorrelate.opt | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.00017872113676276058,
0.00017200957518070936,
0.0001604821445653215,
0.00017290443065576255,
0.000003855243448924739
] |
{
"id": 2,
"code_window": [
"\t// TransferLease will observe the circuit breaker, as transferring a\n",
"\t// lease when the range is unavailable results in, essentially, giving\n",
"\t// up on the lease and thus worsening the situation.\n",
"\tba.Add(leaseReq)\n",
"\t_, pErr := p.repl.Send(ctx,... |
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | licenses/BSD3-apache.thrift.lib.go.thrift.txt | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.00017909285088535398,
0.00017598856356926262,
0.00017105617735069245,
0.0001762822939781472,
0.000002034728140642983
] |
{
"id": 2,
"code_window": [
"\t// TransferLease will observe the circuit breaker, as transferring a\n",
"\t// lease when the range is unavailable results in, essentially, giving\n",
"\t// up on the lease and thus worsening the situation.\n",
"\tba.Add(leaseReq)\n",
"\t_, pErr := p.repl.Send(ctx,... | // Copyright 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... | pkg/cli/doctor_test.go | 0 | https://github.com/cockroachdb/cockroach/commit/dbe5954ec7032390cc5713bad5ed8fcdaf3b2d05 | [
0.00017955091607291251,
0.0001744298351695761,
0.00016817163850646466,
0.0001749871880747378,
0.0000028359665975585813
] |
{
"id": 0,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"\\nEndpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.StartupMessa... | /*
* Minio Cloud Storage, (C) 2016, 2017, 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 a... | cmd/server-startup-msg.go | 1 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.9981784820556641,
0.09023909270763397,
0.0001638282701605931,
0.0003873045789077878,
0.2810373604297638
] |
{
"id": 0,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"\\nEndpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.StartupMessa... | # 使用Kubernetes部署Minio [](https://slack.minio.io) [](https://goreportcard.com/report/minio/minio) [](https://hub.docker.com/r/minio... | docs/zh_CN/orchestration/kubernetes/README.md | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.00017367771943099797,
0.00016919072368182242,
0.00016411987598985434,
0.00016920320922508836,
0.0000023325237634708174
] |
{
"id": 0,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"\\nEndpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.StartupMessa... | foo = [
"1",
"2", # comment
]
| vendor/github.com/hashicorp/hcl/hcl/parser/test-fixtures/array_comment.hcl | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.0001637534733163193,
0.0001637534733163193,
0.0001637534733163193,
0.0001637534733163193,
0
] |
{
"id": 0,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"\\nEndpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.StartupMessa... | /*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | vendor/github.com/xwb1989/sqlparser/tracked_buffer.go | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.0002933082287199795,
0.00017892620235215873,
0.0001612796913832426,
0.00017066695727407932,
0.000031728519388707355
] |
{
"id": 1,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"Endpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.Start... | /*
* Minio Cloud Storage, (C) 2016, 2017, 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 a... | cmd/server-startup-msg.go | 1 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.9980067610740662,
0.09558088332414627,
0.00016776469419710338,
0.0004387489752843976,
0.28266239166259766
] |
{
"id": 1,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"Endpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.Start... | // Protocol Buffers for Go with Gadgets
//
// Copyright (c) 2016, The GoGo Authors. All rights reserved.
// http://github.com/gogo/protobuf
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... | vendor/github.com/gogo/protobuf/proto/timestamp_gogo.go | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.00017792063590604812,
0.0001726946356939152,
0.00016588924336247146,
0.00017348492110613734,
0.0000029244076813483844
] |
{
"id": 1,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"Endpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.Start... | // 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 http2
import (
"bytes"
"fmt"
"log"
"net/http"
"net/url"
"time"
"golang.org/x/net/http2/hpack"
"golang.org/x/net/lex/httplex"
)
// writeFramer... | vendor/golang.org/x/net/http2/write.go | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.00022653045016340911,
0.00017228156502824277,
0.00016063217481132597,
0.00017199473222717643,
0.000009837843208515551
] |
{
"id": 1,
"code_window": [
"\n",
"\tapiEndpointStr := strings.Join(apiEndpoints, \" \")\n",
"\n",
"\t// Colorize the message and print.\n",
"\tlogger.StartupMessage(colorBlue(\"Endpoint: \") + colorBold(fmt.Sprintf(getFormatStr(len(apiEndpointStr), 1), apiEndpointStr)))\n",
"\tlogger.Start... | // 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 norm
// This file contains Form-specific logic and wrappers for data in tables.go.
// Rune info is stored in a separate trie per composing form. A com... | vendor/golang.org/x/text/unicode/norm/forminfo.go | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.00017838300846051425,
0.00017435848712921143,
0.0001668655313551426,
0.0001753221295075491,
0.0000029034404178673867
] |
{
"id": 2,
"code_window": [
"func printCLIAccessMsg(endPoint string, alias string) {\n",
"\t// Get saved credentials.\n",
"\tcred := globalServerConfig.GetCredential()\n",
"\n",
"\t// Configure 'mc', following block prints platform specific information for minio client.\n",
"\tlogger.Startup... | /*
* Minio Cloud Storage, (C) 2016, 2017, 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 a... | cmd/server-startup-msg.go | 1 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.9983097314834595,
0.09455926716327667,
0.00016324974421877414,
0.0006173868896439672,
0.2853582501411438
] |
{
"id": 2,
"code_window": [
"func printCLIAccessMsg(endPoint string, alias string) {\n",
"\t// Get saved credentials.\n",
"\tcred := globalServerConfig.GetCredential()\n",
"\n",
"\t// Configure 'mc', following block prints platform specific information for minio client.\n",
"\tlogger.Startup... | version: "{build}"
platform: x64
clone_folder: c:\gopath\src\go.opencensus.io
environment:
GOPATH: 'c:\gopath'
GOVERSION: '1.11'
GO111MODULE: 'on'
CGO_ENABLED: '0' # See: https://github.com/appveyor/ci/issues/2613
install:
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
- go version
- go env
build: false
de... | vendor/go.opencensus.io/appveyor.yml | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.0001669852208578959,
0.00016612563922535628,
0.0001655087835388258,
0.00016588291327934712,
6.267129606385424e-7
] |
{
"id": 2,
"code_window": [
"func printCLIAccessMsg(endPoint string, alias string) {\n",
"\t// Get saved credentials.\n",
"\tcred := globalServerConfig.GetCredential()\n",
"\n",
"\t// Configure 'mc', following block prints platform specific information for minio client.\n",
"\tlogger.Startup... | /*
* Isomorphic Javascript library for Minio Browser JSON-RPC API, (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... | browser/webpack.production.config.js | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.00017255691636819392,
0.00016946368850767612,
0.000165039804414846,
0.00017017259960994124,
0.000002347872850805288
] |
{
"id": 2,
"code_window": [
"func printCLIAccessMsg(endPoint string, alias string) {\n",
"\t// Get saved credentials.\n",
"\tcred := globalServerConfig.GetCredential()\n",
"\n",
"\t// Configure 'mc', following block prints platform specific information for minio client.\n",
"\tlogger.Startup... | Copyright (c) 2015 Olivier Poitrey <rs@dailymotion.com>
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, pu... | vendor/github.com/rs/xhandler/LICENSE | 0 | https://github.com/minio/minio/commit/21c8693d9cca8f3ff1cedf2aee9f3bde89387880 | [
0.00017513599595986307,
0.00017446541460230947,
0.0001737948477966711,
0.00017446541460230947,
6.705740815959871e-7
] |
{
"id": 0,
"code_window": [
"\t\tc.nodeLister,\n",
"\t\tc.maxEndpointsPerSlice,\n",
"\t\tc.endpointSliceTracker,\n",
"\t\tc.topologyCache,\n",
"\t\tutilfeature.DefaultFeatureGate.Enabled(features.ServiceTrafficDistribution),\n",
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n"
],
"l... | /*
Copyright 2019 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/endpointslice/reconciler.go | 1 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.016052622348070145,
0.0013853604905307293,
0.0001638388930587098,
0.0002579843858256936,
0.002843814203515649
] |
{
"id": 0,
"code_window": [
"\t\tc.nodeLister,\n",
"\t\tc.maxEndpointsPerSlice,\n",
"\t\tc.endpointSliceTracker,\n",
"\t\tc.topologyCache,\n",
"\t\tutilfeature.DefaultFeatureGate.Enabled(features.ServiceTrafficDistribution),\n",
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n"
],
"l... | apiVersion: v1
kind: Pod
metadata:
name: restrictedvolumes9
spec:
containers:
- image: registry.k8s.io/pause
name: container1
securityContext:
allowPrivilegeEscalation: false
initContainers:
- image: registry.k8s.io/pause
name: initcontainer1
securityContext:
allowPrivilegeEscalati... | staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.13/fail/restrictedvolumes9.yaml | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00017668328655418009,
0.0001734253455651924,
0.00016842536570038646,
0.00017516738444101065,
0.0000035892746836907463
] |
{
"id": 0,
"code_window": [
"\t\tc.nodeLister,\n",
"\t\tc.maxEndpointsPerSlice,\n",
"\t\tc.endpointSliceTracker,\n",
"\t\tc.topologyCache,\n",
"\t\tutilfeature.DefaultFeatureGate.Enabled(features.ServiceTrafficDistribution),\n",
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n"
],
"l... | /*
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... | staging/src/k8s.io/client-go/listers/storage/v1/csinode.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.000187592493603006,
0.00017386696708854288,
0.00016441245679743588,
0.0001732298405840993,
0.000006763125838915585
] |
{
"id": 0,
"code_window": [
"\t\tc.nodeLister,\n",
"\t\tc.maxEndpointsPerSlice,\n",
"\t\tc.endpointSliceTracker,\n",
"\t\tc.topologyCache,\n",
"\t\tutilfeature.DefaultFeatureGate.Enabled(features.ServiceTrafficDistribution),\n",
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n"
],
"l... | /*
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... | staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1/rbac_client.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.0030166683718562126,
0.0004698796838056296,
0.00016508449334651232,
0.00017503048002254218,
0.0007576635689474642
] |
{
"id": 1,
"code_window": [
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"\n",
"\treturn c\n",
"}\n",
"\n"
],
"labels": [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t\tendpointslicerec.WithTrafficDistr... | /*
Copyright 2019 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/endpointslice/reconciler.go | 1 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.020573200657963753,
0.0006776320515200496,
0.0001646680320845917,
0.000169869395904243,
0.002725253812968731
] |
{
"id": 1,
"code_window": [
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"\n",
"\treturn c\n",
"}\n",
"\n"
],
"labels": [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t\tendpointslicerec.WithTrafficDistr... | /*
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/volume/flexvolume/mounter.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.005395421292632818,
0.0006475703557953238,
0.00016756706463638693,
0.000172886298969388,
0.0015014056116342545
] |
{
"id": 1,
"code_window": [
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"\n",
"\treturn c\n",
"}\n",
"\n"
],
"labels": [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t\tendpointslicerec.WithTrafficDistr... | file {
name: "github.com/containerd/cgroups/stats/v1/metrics.proto"
package: "io.containerd.cgroups.v1"
dependency: "gogoproto/gogo.proto"
message_type {
name: "Metrics"
field {
name: "hugetlb"
number: 1
label: LABEL_REPEATED
type: TYPE_MESSAGE
type_name: ".io.containerd.cg... | vendor/github.com/containerd/cgroups/stats/v1/metrics.pb.txt | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00018290890147909522,
0.00017401458171661943,
0.00016738774138502777,
0.0001742905587889254,
0.000002241148649773095
] |
{
"id": 1,
"code_window": [
"\t\tc.eventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"\n",
"\treturn c\n",
"}\n",
"\n"
],
"labels": [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t\tendpointslicerec.WithTrafficDistr... | # See the OWNERS docs at https://go.k8s.io/owners
approvers:
- bentheelder
- spiffxp
reviewers:
- bentheelder
- spiffxp
labels:
- sig/testing
| pkg/util/coverage/OWNERS | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00018290890147909522,
0.00017812629812397063,
0.00017334369476884604,
0.00017812629812397063,
0.000004782603355124593
] |
{
"id": 2,
"code_window": [
"\t// eventRecorder allows Reconciler to record and publish events.\n",
"\teventRecorder record.EventRecorder\n",
"\tcontrollerName string\n",
"}\n",
"\n",
"// endpointMeta includes the attributes we group slices on, this type helps with\n",
"// that logic in... | /*
Copyright 2019 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/endpointslice/reconciler.go | 1 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.9967104196548462,
0.057152971625328064,
0.0001654152147239074,
0.00036971960798837245,
0.2161145657300949
] |
{
"id": 2,
"code_window": [
"\t// eventRecorder allows Reconciler to record and publish events.\n",
"\teventRecorder record.EventRecorder\n",
"\tcontrollerName string\n",
"}\n",
"\n",
"// endpointMeta includes the attributes we group slices on, this type helps with\n",
"// that logic in... | /*
Copyright 2021 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/controller-manager/pkg/healthz/handler_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.0001806392683647573,
0.0001728023198666051,
0.0001677451655268669,
0.0001714210375212133,
0.0000034123784189432627
] |
{
"id": 2,
"code_window": [
"\t// eventRecorder allows Reconciler to record and publish events.\n",
"\teventRecorder record.EventRecorder\n",
"\tcontrollerName string\n",
"}\n",
"\n",
"// endpointMeta includes the attributes we group slices on, this type helps with\n",
"// that logic in... | // Copyright The OpenTelemetry 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 agre... | vendor/go.opentelemetry.io/otel/internal/global/handler.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.0012097215512767434,
0.0002673144917935133,
0.00016774867253843695,
0.00017353057046420872,
0.00029803853249177337
] |
{
"id": 2,
"code_window": [
"\t// eventRecorder allows Reconciler to record and publish events.\n",
"\teventRecorder record.EventRecorder\n",
"\tcontrollerName string\n",
"}\n",
"\n",
"// endpointMeta includes the attributes we group slices on, this type helps with\n",
"// that logic in... | /*
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... | staging/src/k8s.io/client-go/applyconfigurations/rbac/v1alpha1/policyrule.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.0004312087257858366,
0.00022588383581023663,
0.00016665595467202365,
0.00017953226051758975,
0.00009419838897883892
] |
{
"id": 3,
"code_window": [
"\n",
"}\n",
"\n",
"func NewReconciler(client clientset.Interface, nodeLister corelisters.NodeLister, maxEndpointsPerSlice int32, endpointSliceTracker *endpointsliceutil.EndpointSliceTracker, topologyCache *topologycache.TopologyCache, trafficDistributionEnabled bool, eve... | /*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/controller/endpointslice/endpointslice_controller.go | 1 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.9986333250999451,
0.03554198890924454,
0.00016057062020990998,
0.0002572101657278836,
0.1720409244298935
] |
{
"id": 3,
"code_window": [
"\n",
"}\n",
"\n",
"func NewReconciler(client clientset.Interface, nodeLister corelisters.NodeLister, maxEndpointsPerSlice int32, endpointSliceTracker *endpointsliceutil.EndpointSliceTracker, topologyCache *topologycache.TopologyCache, trafficDistributionEnabled bool, eve... | apiVersion: v1
kind: Pod
metadata:
name: etcd-version-monitor
namespace: kube-system
spec:
hostNetwork: true
containers:
- name: etcd-version-monitor
image: registry.k8s.io/etcd-version-monitor:0.1.3
command:
- /etcd-version-monitor
| cluster/images/etcd-version-monitor/etcd-version-monitor.yaml | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00016876471636351198,
0.00016745267203077674,
0.0001661406276980415,
0.00016745267203077674,
0.0000013120443327352405
] |
{
"id": 3,
"code_window": [
"\n",
"}\n",
"\n",
"func NewReconciler(client clientset.Interface, nodeLister corelisters.NodeLister, maxEndpointsPerSlice int32, endpointSliceTracker *endpointsliceutil.EndpointSliceTracker, topologyCache *topologycache.TopologyCache, trafficDistributionEnabled bool, eve... | apiVersion: v1
kind: ReplicationController
metadata:
name: update-demo-kitten
spec:
selector:
name: update-demo
version: kitten
template:
metadata:
labels:
name: update-demo
version: kitten
spec:
containers:
- image: registry.k8s.io/update-demo:kitten
name... | staging/src/k8s.io/cli-runtime/artifacts/kitten-rc.yaml | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00018280863878317177,
0.00017416437913198024,
0.00016811488603707403,
0.00017156958347186446,
0.000006273025974223856
] |
{
"id": 3,
"code_window": [
"\n",
"}\n",
"\n",
"func NewReconciler(client clientset.Interface, nodeLister corelisters.NodeLister, maxEndpointsPerSlice int32, endpointSliceTracker *endpointsliceutil.EndpointSliceTracker, topologyCache *topologycache.TopologyCache, trafficDistributionEnabled bool, eve... | /*
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/controller/controller_ref_manager_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00018002714205067605,
0.00016946918913163245,
0.00016539424541406333,
0.00016860768664628267,
0.0000031401325486513088
] |
{
"id": 5,
"code_window": [
"\t\tclient,\n",
"\t\tcorelisters.NewNodeLister(indexer),\n",
"\t\tmaxEndpointsPerSlice,\n",
"\t\tendpointsliceutil.NewEndpointSliceTracker(),\n",
"\t\tnil,\n",
"\t\tfalse,\n",
"\t\teventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"}\n",
"\... | /*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | pkg/controller/endpointslice/endpointslice_controller.go | 1 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.028233306482434273,
0.0016874424181878567,
0.0001631643099244684,
0.0001791474933270365,
0.004362231586128473
] |
{
"id": 5,
"code_window": [
"\t\tclient,\n",
"\t\tcorelisters.NewNodeLister(indexer),\n",
"\t\tmaxEndpointsPerSlice,\n",
"\t\tendpointsliceutil.NewEndpointSliceTracker(),\n",
"\t\tnil,\n",
"\t\tfalse,\n",
"\t\teventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"}\n",
"\... | apiVersion: v1
kind: Pod
metadata:
name: selinuxoptions0
spec:
containers:
- image: registry.k8s.io/pause
name: container1
securityContext: {}
initContainers:
- image: registry.k8s.io/pause
name: initcontainer1
securityContext:
seLinuxOptions: {}
securityContext: {}
| staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.11/pass/selinuxoptions0.yaml | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00017730383842717856,
0.00017596420366317034,
0.00017462455434724689,
0.00017596420366317034,
0.0000013396420399658382
] |
{
"id": 5,
"code_window": [
"\t\tclient,\n",
"\t\tcorelisters.NewNodeLister(indexer),\n",
"\t\tmaxEndpointsPerSlice,\n",
"\t\tendpointsliceutil.NewEndpointSliceTracker(),\n",
"\t\tnil,\n",
"\t\tfalse,\n",
"\t\teventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"}\n",
"\... | /*
Copyright 2018 Google LLC
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distrib... | vendor/github.com/GoogleCloudPlatform/k8s-cloud-provider/pkg/cloud/meta/key.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00017914628551807255,
0.00017206236952915788,
0.0001658177498029545,
0.00017345993546769023,
0.000004396470103529282
] |
{
"id": 5,
"code_window": [
"\t\tclient,\n",
"\t\tcorelisters.NewNodeLister(indexer),\n",
"\t\tmaxEndpointsPerSlice,\n",
"\t\tendpointsliceutil.NewEndpointSliceTracker(),\n",
"\t\tnil,\n",
"\t\tfalse,\n",
"\t\teventRecorder,\n",
"\t\tcontrollerName,\n",
"\t)\n",
"}\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, ... | plugin/pkg/admission/podtolerationrestriction/admission_test.go | 0 | https://github.com/kubernetes/kubernetes/commit/ec6fd2befac30ebb7dfb55b94d8c9874489a3902 | [
0.00023287504154723138,
0.00017418833158444613,
0.00016571722517255694,
0.0001729679061099887,
0.000010110412404173985
] |
{
"id": 0,
"code_window": [
" // Do the same thing in case we only have zero byte files to sync.\n",
" return 95;\n",
" }\n",
" var pct = 100 * $scope.model[folder].inSyncBytes / $scope.model[folder].globalBytes;\n",
" return Math.fl... | // Copyright (C) 2014 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
package scanner
import (
"context"
"errors"
"fmt"
"path/filepat... | lib/scanner/walk.go | 1 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.0007529562572017312,
0.0001779165759216994,
0.00016098792548291385,
0.00017091904010158032,
0.0000679080476402305
] |
{
"id": 0,
"code_window": [
" // Do the same thing in case we only have zero byte files to sync.\n",
" return 95;\n",
" }\n",
" var pct = 100 * $scope.model[folder].inSyncBytes / $scope.model[folder].globalBytes;\n",
" return Math.fl... | // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: database.proto
package main
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = ... | cmd/stdiscosrv/database.pb.go | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.00017627656052354723,
0.00017188438505399972,
0.00016220843826886266,
0.00017384439706802368,
0.000004136134521104395
] |
{
"id": 0,
"code_window": [
" // Do the same thing in case we only have zero byte files to sync.\n",
" return 95;\n",
" }\n",
" var pct = 100 * $scope.model[folder].inSyncBytes / $scope.model[folder].globalBytes;\n",
" return Math.fl... | // Copyright (C) 2015 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
// Package signature provides simple methods to create and verify si... | lib/signature/signature.go | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.00018137744336854666,
0.0001701253786450252,
0.00016387450159527361,
0.00016966761904768646,
0.000004195804194750963
] |
{
"id": 0,
"code_window": [
" // Do the same thing in case we only have zero byte files to sync.\n",
" return 95;\n",
" }\n",
" var pct = 100 * $scope.model[folder].inSyncBytes / $scope.model[folder].globalBytes;\n",
" return Math.fl... | // Copyright (C) 2015 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
package osutil
import (
"errors"
"path/filepath"
"github.com/sy... | lib/osutil/atomic.go | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.00045375287299975753,
0.00018879948765970767,
0.00016092606529127806,
0.00016942634829320014,
0.00007362350152106956
] |
{
"id": 1,
"code_window": [
" $scope.scanPercentage = function (folder) {\n",
" if (!$scope.scanProgress[folder]) {\n",
" return undefined;\n",
" }\n",
" var pct = 100 * $scope.scanProgress[folder].current / $scope.scanProgress[folder].total... | // Copyright (C) 2014 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
package scanner
import (
"context"
"errors"
"fmt"
"path/filepat... | lib/scanner/walk.go | 1 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.0010172936599701643,
0.00019983200763817877,
0.0001620767143322155,
0.0001717095001367852,
0.00012737138604279608
] |
{
"id": 1,
"code_window": [
" $scope.scanPercentage = function (folder) {\n",
" if (!$scope.scanProgress[folder]) {\n",
" return undefined;\n",
" }\n",
" var pct = 100 * $scope.scanProgress[folder].current / $scope.scanProgress[folder].total... | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 117.3 117.3" enable-background="new 0 0 117.3... | assets/logo-only.svg | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.00018803696730174124,
0.0001752597454469651,
0.00016736396355554461,
0.00017281901091337204,
0.000007948204256535973
] |
{
"id": 1,
"code_window": [
" $scope.scanPercentage = function (folder) {\n",
" if (!$scope.scanProgress[folder]) {\n",
" return undefined;\n",
" }\n",
" var pct = 100 * $scope.scanProgress[folder].current / $scope.scanProgress[folder].total... | <?xml version="1.0" encoding="UTF-8"?>
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<defs>
<linearGradient id="grad" gradientUnits="userSpaceOnUse" x1="8" y1="0" x2="8" y2="16">
<stop offset="0" style="stop-color:#26B6DB"/>
<stop... | assets/statusicons/notify.svg | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.00017365635721944273,
0.00017107464373111725,
0.00016667216550558805,
0.00017198501154780388,
0.0000026868244731304003
] |
{
"id": 1,
"code_window": [
" $scope.scanPercentage = function (folder) {\n",
" if (!$scope.scanProgress[folder]) {\n",
" return undefined;\n",
" }\n",
" var pct = 100 * $scope.scanProgress[folder].current / $scope.scanProgress[folder].total... | <app-card>
<app-card-title>{{title | uppercase}}</app-card-title>
<app-card-content>
<div fxLayout="row" fxLayoutAlign="space-between stretch">
<app-donut-chart [elementID]="chartID" fxFlex="30" [title]="title" (stateEvent)="onItemSelect($event)">
</app-donut-chart>
<... | next-gen-gui/src/app/charts/chart/chart.component.html | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.0001718254789011553,
0.00016970490105450153,
0.000167584337759763,
0.00016970490105450153,
0.0000021205705706961453
] |
{
"id": 3,
"code_window": [
"\t\t\ttotal += file.Size\n",
"\t\t}\n",
"\n",
"\t\trealToHashChan := make(chan protocol.FileInfo)\n",
"\t\tdone := make(chan struct{})\n",
"\t\tprogress := newByteCounter()\n",
"\n",
"\t\tnewParallelHasher(ctx, w.Folder, w.Filesystem, w.Hashers, finishedC... | // Copyright (C) 2014 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
package scanner
import (
"context"
"errors"
"fmt"
"path/filepat... | lib/scanner/walk.go | 1 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.998589813709259,
0.055626288056373596,
0.0001617114758118987,
0.00029999675462022424,
0.2268860787153244
] |
{
"id": 3,
"code_window": [
"\t\t\ttotal += file.Size\n",
"\t\t}\n",
"\n",
"\t\trealToHashChan := make(chan protocol.FileInfo)\n",
"\t\tdone := make(chan struct{})\n",
"\t\tprogress := newByteCounter()\n",
"\n",
"\t\tnewParallelHasher(ctx, w.Folder, w.Filesystem, w.Hashers, finishedC... | Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT
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... | gui/default/vendor/angular/angular-translate-loader-static-files.js.LICENSE | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.0001748476643115282,
0.00017436203779652715,
0.00017387639672961086,
0.00017436203779652715,
4.856337909586728e-7
] |
{
"id": 3,
"code_window": [
"\t\t\ttotal += file.Size\n",
"\t\t}\n",
"\n",
"\t\trealToHashChan := make(chan protocol.FileInfo)\n",
"\t\tdone := make(chan struct{})\n",
"\t\tprogress := newByteCounter()\n",
"\n",
"\t\tnewParallelHasher(ctx, w.Folder, w.Filesystem, w.Hashers, finishedC... | export interface SystemStatus {
alloc: number;
connectionServiceStatus: any;
cpuPercent: number; // allows returns 0
discoveryEnabled: boolean;
discoveryErrors: any;
discoveryMethods: number;
goroutines: number;
lastDialStatus: any;
myID: string;
pathSeparator: string;
startT... | next-gen-gui/src/app/system-status.ts | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.0001734339602990076,
0.000169444945640862,
0.00016545591643080115,
0.000169444945640862,
0.000003989021934103221
] |
{
"id": 3,
"code_window": [
"\t\t\ttotal += file.Size\n",
"\t\t}\n",
"\n",
"\t\trealToHashChan := make(chan protocol.FileInfo)\n",
"\t\tdone := make(chan struct{})\n",
"\t\tprogress := newByteCounter()\n",
"\n",
"\t\tnewParallelHasher(ctx, w.Folder, w.Filesystem, w.Hashers, finishedC... | // Copyright (C) 2014 The Protocol Authors.
package protocol
import (
"bytes"
"encoding/base32"
"encoding/binary"
"errors"
"fmt"
"strings"
"github.com/syncthing/syncthing/lib/sha256"
)
const (
DeviceIDLength = 32
ShortIDStringLength = 7
)
type (
DeviceID [DeviceIDLength]byte
ShortID uint64
)
var ... | lib/protocol/deviceid.go | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.0003781058476306498,
0.00017860646767076105,
0.00016354280523955822,
0.00017093827773351222,
0.0000427350023528561
] |
{
"id": 5,
"code_window": [
"\t\t\tfor {\n",
"\t\t\t\tselect {\n",
"\t\t\t\tcase <-done:\n",
"\t\t\t\t\tl.Debugln(w, \"Walk progress done\", w.Folder, w.Subs, w.Matcher)\n",
"\t\t\t\t\tticker.Stop()\n",
"\t\t\t\t\treturn\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
... | // Copyright (C) 2014 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
package scanner
import (
"context"
"errors"
"fmt"
"path/filepat... | lib/scanner/walk.go | 1 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.984483540058136,
0.013973185792565346,
0.00016239445540122688,
0.0001722317683743313,
0.11437942832708359
] |
{
"id": 5,
"code_window": [
"\t\t\tfor {\n",
"\t\t\t\tselect {\n",
"\t\t\t\tcase <-done:\n",
"\t\t\t\t\tl.Debugln(w, \"Walk progress done\", w.Folder, w.Subs, w.Matcher)\n",
"\t\t\t\t\tticker.Stop()\n",
"\t\t\t\t\treturn\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
... | // Copyright (C) 2019 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
package cli
import (
"encoding/json"
"errors"
"fmt"
"io"
"mime... | cmd/syncthing/cli/utils.go | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.000204160125576891,
0.0001740057923598215,
0.0001653056388022378,
0.00017255404964089394,
0.000008565164534957148
] |
{
"id": 5,
"code_window": [
"\t\t\tfor {\n",
"\t\t\t\tselect {\n",
"\t\t\t\tcase <-done:\n",
"\t\t\t\t\tl.Debugln(w, \"Walk progress done\", w.Folder, w.Subs, w.Matcher)\n",
"\t\t\t\t\tticker.Stop()\n",
"\t\t\t\t\treturn\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
... | <configuration version="37">
<folder id="a" label="a" path="a">
<device id="6564BQV-R2WYPMN-5OLXMII-CDJUKFD-BHNNCRA-WLQPAIV-ELSGAD2-RMFBFQU" introducedBy="">
<encryptionPassword></encryptionPassword>
</device>
</folder>
<folder id="b" label="b" path="b">
<device id="6564B... | lib/config/testdata/untrustedintroducer.xml | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.00017158544505946338,
0.00016915248124860227,
0.0001667195319896564,
0.00016915248124860227,
0.0000024329565349034965
] |
{
"id": 5,
"code_window": [
"\t\t\tfor {\n",
"\t\t\t\tselect {\n",
"\t\t\t\tcase <-done:\n",
"\t\t\t\t\tl.Debugln(w, \"Walk progress done\", w.Folder, w.Subs, w.Matcher)\n",
"\t\t\t\t\tticker.Stop()\n",
"\t\t\t\t\treturn\n"
],
"labels": [
"keep",
"keep",
"add",
"keep",
... | /*!
Fork Awesome 1.2.0
License - https://forkaweso.me/Fork-Awesome/license
Copyright 2018 Dave Gandy & Fork Awesome
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 ... | gui/default/vendor/fork-awesome/css/v5-compat.css | 0 | https://github.com/syncthing/syncthing/commit/2f3eacdb6c1c33650ccdd91f42e842c116200d92 | [
0.00017851096345111728,
0.00017649227811489254,
0.0001719961001072079,
0.0001768450892996043,
0.0000013240720591056743
] |
{
"id": 0,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"innodb_max_dirty_pages_pct\", Value: \"75\"},\n",
"\t{Scope: ScopeGlobal, Name: InnodbFilePerTable, Value: BoolOn, Type: TypeBool, AutoConvertNegativeBool: true},\n",
"\t{Scope: ScopeGlobal, Name: InnodbLogCompressedPages, Value: \"1\"},\n",
... | // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | sessionctx/variable/noop.go | 1 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.9415306448936462,
0.021442703902721405,
0.00016812706599012017,
0.0008487201994284987,
0.1303180605173111
] |
{
"id": 0,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"innodb_max_dirty_pages_pct\", Value: \"75\"},\n",
"\t{Scope: ScopeGlobal, Name: InnodbFilePerTable, Value: BoolOn, Type: TypeBool, AutoConvertNegativeBool: true},\n",
"\t{Scope: ScopeGlobal, Name: InnodbLogCompressedPages, Value: \"1\"},\n",
... | // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/tikv/unionstore/memdb_iterator.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017933601338882,
0.00016870407853275537,
0.00015493981481995434,
0.00016945814422797412,
0.0000049621871767158154
] |
{
"id": 0,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"innodb_max_dirty_pages_pct\", Value: \"75\"},\n",
"\t{Scope: ScopeGlobal, Name: InnodbFilePerTable, Value: BoolOn, Type: TypeBool, AutoConvertNegativeBool: true},\n",
"\t{Scope: ScopeGlobal, Name: InnodbLogCompressedPages, Value: \"1\"},\n",
... | // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | expression/collation_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017933601338882,
0.00017455843044444919,
0.00017264117195736617,
0.00017410152941010892,
0.0000018944890598504571
] |
{
"id": 0,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"innodb_max_dirty_pages_pct\", Value: \"75\"},\n",
"\t{Scope: ScopeGlobal, Name: InnodbFilePerTable, Value: BoolOn, Type: TypeBool, AutoConvertNegativeBool: true},\n",
"\t{Scope: ScopeGlobal, Name: InnodbLogCompressedPages, Value: \"1\"},\n",
... | // Copyright 2016 The ql Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSES/QL-LICENSE file.
// Copyright 2015 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complia... | table/column.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0002664311323314905,
0.0001727056223899126,
0.000160730691277422,
0.00017156163812614977,
0.00001200972019432811
] |
{
"id": 1,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: InnodbSupportXA, Value: \"1\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_compression_level\", Value: \"6\"},\n",
"\t{Scope: ScopeNone, Name: \"innodb_file_format_check\", Value: \"1\"},\n",
"\t{Scope: ScopeNone, Name: \"myisa... | // Copyright 2015 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | sessionctx/variable/sysvar.go | 1 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0310880858451128,
0.0009018514538183808,
0.00016031299310270697,
0.00017294763529207557,
0.003546547843143344
] |
{
"id": 1,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: InnodbSupportXA, Value: \"1\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_compression_level\", Value: \"6\"},\n",
"\t{Scope: ScopeNone, Name: \"innodb_file_format_check\", Value: \"1\"},\n",
"\t{Scope: ScopeNone, Name: \"myisa... | // Copyright 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/tikv/oracle/oracles/pd.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017829901480581611,
0.00016931031132116914,
0.0001607196609256789,
0.00016923945804592222,
0.0000037469988001248566
] |
{
"id": 1,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: InnodbSupportXA, Value: \"1\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_compression_level\", Value: \"6\"},\n",
"\t{Scope: ScopeNone, Name: \"innodb_file_format_check\", Value: \"1\"},\n",
"\t{Scope: ScopeNone, Name: \"myisa... | // Copyright 2018 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | ddl/failtest/fail_db_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017853325698524714,
0.00017155593377538025,
0.00016339427384082228,
0.0001722165907267481,
0.000003010232376254862
] |
{
"id": 1,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: InnodbSupportXA, Value: \"1\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_compression_level\", Value: \"6\"},\n",
"\t{Scope: ScopeNone, Name: \"innodb_file_format_check\", Value: \"1\"},\n",
"\t{Scope: ScopeNone, Name: \"myisa... | // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/tikv/oracle/oracles/export_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017820621724240482,
0.00017169911006931216,
0.00016787974163889885,
0.00017103513528127223,
0.000003442057050051517
] |
{
"id": 2,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"log_timestamps\", Value: \"\"},\n",
"\t{Scope: ScopeNone, Name: \"version_compile_machine\", Value: \"x86_64\"},\n",
"\t{Scope: ScopeGlobal, Name: \"event_scheduler\", Value: BoolOff},\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: \"ndb_... | // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | sessionctx/variable/noop.go | 1 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.991651713848114,
0.02574177086353302,
0.00017368550470564514,
0.001796458731405437,
0.13757169246673584
] |
{
"id": 2,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"log_timestamps\", Value: \"\"},\n",
"\t{Scope: ScopeNone, Name: \"version_compile_machine\", Value: \"x86_64\"},\n",
"\t{Scope: ScopeGlobal, Name: \"event_scheduler\", Value: BoolOff},\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: \"ndb_... | // Copyright 2021 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/tikv/util/rate_limit.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017766955716069788,
0.00017124997975770384,
0.0001663661969359964,
0.00017045935965143144,
0.000003482454530967516
] |
{
"id": 2,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"log_timestamps\", Value: \"\"},\n",
"\t{Scope: ScopeNone, Name: \"version_compile_machine\", Value: \"x86_64\"},\n",
"\t{Scope: ScopeGlobal, Name: \"event_scheduler\", Value: BoolOff},\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: \"ndb_... | // Copyright 2018 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | planner/core/errors.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017803160881157964,
0.00016723305452615023,
0.00016205028805416077,
0.00016555580077692866,
0.000005024010533816181
] |
{
"id": 2,
"code_window": [
"\t{Scope: ScopeGlobal, Name: \"log_timestamps\", Value: \"\"},\n",
"\t{Scope: ScopeNone, Name: \"version_compile_machine\", Value: \"x86_64\"},\n",
"\t{Scope: ScopeGlobal, Name: \"event_scheduler\", Value: BoolOff},\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: \"ndb_... | // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | executor/batch_point_get_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0001777549769030884,
0.00017057904915418476,
0.0001622446288820356,
0.00017167073383461684,
0.0000033109113246609922
] |
{
"id": 3,
"code_window": [
"\t{Scope: ScopeNone, Name: \"ignore_builtin_innodb\", Value: \"0\"},\n",
"\t{Scope: ScopeGlobal, Name: \"slow_query_log_file\", Value: \"/usr/local/mysql/data/localhost-slow.log\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_thread_sleep_delay\", Value: \"10000\"},\n",
"... | // Copyright 2015 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | sessionctx/variable/sysvar.go | 1 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0038960434030741453,
0.00041962371324189007,
0.00016250551561824977,
0.00017539068358018994,
0.0006750528700649738
] |
{
"id": 3,
"code_window": [
"\t{Scope: ScopeNone, Name: \"ignore_builtin_innodb\", Value: \"0\"},\n",
"\t{Scope: ScopeGlobal, Name: \"slow_query_log_file\", Value: \"/usr/local/mysql/data/localhost-slow.log\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_thread_sleep_delay\", Value: \"10000\"},\n",
"... | // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/mockstore/unistore/raw_handler_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017422706878278404,
0.00017145562742371112,
0.00016698123363312334,
0.00017184593889396638,
0.000002134167289113975
] |
{
"id": 3,
"code_window": [
"\t{Scope: ScopeNone, Name: \"ignore_builtin_innodb\", Value: \"0\"},\n",
"\t{Scope: ScopeGlobal, Name: \"slow_query_log_file\", Value: \"/usr/local/mysql/data/localhost-slow.log\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_thread_sleep_delay\", Value: \"10000\"},\n",
"... | // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/tikv/client_batch.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00042527419282123446,
0.00017359331832267344,
0.0001589188614161685,
0.00017047341680154204,
0.00002917963320214767
] |
{
"id": 3,
"code_window": [
"\t{Scope: ScopeNone, Name: \"ignore_builtin_innodb\", Value: \"0\"},\n",
"\t{Scope: ScopeGlobal, Name: \"slow_query_log_file\", Value: \"/usr/local/mysql/data/localhost-slow.log\"},\n",
"\t{Scope: ScopeGlobal, Name: \"innodb_thread_sleep_delay\", Value: \"10000\"},\n",
"... | // Copyright 2018 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | statistics/feedback.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0006408118060790002,
0.00017660246521700174,
0.00016091194993350655,
0.0001713781093712896,
0.00004777696085511707
] |
{
"id": 4,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: WindowingUseHighPrecision, Value: BoolOn, Type: TypeBool, IsHintUpdatable: true, SetSession: func(s *SessionVars, val string) error {\n",
"\t\ts.WindowingUseHighPrecision = TiDBOptOn(val)\n",
"\t\treturn nil\n",
"\t}},\n",
... | // Copyright 2015 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | sessionctx/variable/sysvar.go | 1 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.9982333183288574,
0.010500850155949593,
0.00016195823263842613,
0.00027677693287841976,
0.09067519009113312
] |
{
"id": 4,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: WindowingUseHighPrecision, Value: BoolOn, Type: TypeBool, IsHintUpdatable: true, SetSession: func(s *SessionVars, val string) error {\n",
"\t\ts.WindowingUseHighPrecision = TiDBOptOn(val)\n",
"\t\treturn nil\n",
"\t}},\n",
... | // Copyright 2021 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/tikv/test_probe.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.017354438081383705,
0.0006757827941328287,
0.0001628526661079377,
0.0001771206734701991,
0.002414903836324811
] |
{
"id": 4,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: WindowingUseHighPrecision, Value: BoolOn, Type: TypeBool, IsHintUpdatable: true, SetSession: func(s *SessionVars, val string) error {\n",
"\t\ts.WindowingUseHighPrecision = TiDBOptOn(val)\n",
"\t\treturn nil\n",
"\t}},\n",
... | // Copyright 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | store/tikv/tests/split_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00027561921160668135,
0.000172567117260769,
0.0001606390724191442,
0.00016891598352231085,
0.000020994497390347533
] |
{
"id": 4,
"code_window": [
"\t{Scope: ScopeGlobal | ScopeSession, Name: WindowingUseHighPrecision, Value: BoolOn, Type: TypeBool, IsHintUpdatable: true, SetSession: func(s *SessionVars, val string) error {\n",
"\t\ts.WindowingUseHighPrecision = TiDBOptOn(val)\n",
"\t\treturn nil\n",
"\t}},\n",
... | // Copyright 2017 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | expression/builtin_arithmetic_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0010348615469411016,
0.00020700329332612455,
0.0001618223759578541,
0.00017036615463439375,
0.0001560903328936547
] |
{
"id": 5,
"code_window": [
"\t\tif isGlobal, _ := config.GetTxnScopeFromConfig(); isGlobal {\n",
"\t\t\treturn oracle.GlobalTxnScope\n",
"\t\t}\n",
"\t\treturn oracle.LocalTxnScope\n",
"\t}()},\n",
"\t/* TiDB specific variables */\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: TiDBAll... | // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | sessionctx/variable/noop.go | 1 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0011191116645932198,
0.0002104661543853581,
0.0001642518473090604,
0.00017790061247069389,
0.00013321016740519553
] |
{
"id": 5,
"code_window": [
"\t\tif isGlobal, _ := config.GetTxnScopeFromConfig(); isGlobal {\n",
"\t\t\treturn oracle.GlobalTxnScope\n",
"\t\t}\n",
"\t\treturn oracle.LocalTxnScope\n",
"\t}()},\n",
"\t/* TiDB specific variables */\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: TiDBAll... | // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | expression/builtin_string_vec_test.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.0003573647409211844,
0.00017791900609154254,
0.00016706627502571791,
0.00017515887157060206,
0.00002475224027875811
] |
{
"id": 5,
"code_window": [
"\t\tif isGlobal, _ := config.GetTxnScopeFromConfig(); isGlobal {\n",
"\t\t\treturn oracle.GlobalTxnScope\n",
"\t\t}\n",
"\t\treturn oracle.LocalTxnScope\n",
"\t}()},\n",
"\t/* TiDB specific variables */\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: TiDBAll... | // Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | telemetry/telemetry.go | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00048218719894066453,
0.00020356276945676655,
0.00016279894043691456,
0.00017173701780848205,
0.00008732963033253327
] |
{
"id": 5,
"code_window": [
"\t\tif isGlobal, _ := config.GetTxnScopeFromConfig(); isGlobal {\n",
"\t\t\treturn oracle.GlobalTxnScope\n",
"\t\t}\n",
"\t\treturn oracle.LocalTxnScope\n",
"\t}()},\n",
"\t/* TiDB specific variables */\n",
"\t{Scope: ScopeGlobal | ScopeSession, Name: TiDBAll... | # Code Review Guide
## Things to do before you start reviewing the PR
* Make sure you are familiar with the packages the PR modifies.
* Make sure you have enough continuous time to review the PR, use 300 LOC per hour to estimate.
* Make sure you can follow the updates of the PR in the next few work days.
* Read th... | code_review_guide.md | 0 | https://github.com/pingcap/tidb/commit/80edc8cd20b452089a26b817b4b450b7f31db77f | [
0.00017471634782850742,
0.00017270589887630194,
0.00017020963423419744,
0.00017329842376057059,
0.0000014575730347132776
] |
{
"id": 0,
"code_window": [
"\n",
"\tconfigReqs := configDeps.AllPluginRequirements()\n",
"\t// FIXME: This is weird because ConfigTreeDependencies was written before\n",
"\t// we switched over to using earlyConfig as the main source of dependencies.\n",
"\t// In future we should clean this up t... | package command
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
plugin "github.com/hashicorp/go-plugin"
"github.com/kardianos/osext"
"github.com/hashicorp/terraform/addrs"
terraformProvider "github.com/hashicorp/terraform/builtin/providers/te... | command/plugins.go | 1 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.0032794338185340166,
0.0003028864157386124,
0.00015979348972905427,
0.00017221255984622985,
0.0004889043048024178
] |
{
"id": 0,
"code_window": [
"\n",
"\tconfigReqs := configDeps.AllPluginRequirements()\n",
"\t// FIXME: This is weird because ConfigTreeDependencies was written before\n",
"\t// we switched over to using earlyConfig as the main source of dependencies.\n",
"\t// In future we should clean this up t... | package addressscopes
import (
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/pagination"
)
// ListOptsBuilder allows extensions to add additional parameters to the
// List request.
type ListOptsBuilder interface {
ToAddressScopeListQuery() (string, error)
}
// ListOpts allows the filter... | vendor/github.com/gophercloud/gophercloud/openstack/networking/v2/extensions/layer3/addressscopes/requests.go | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.0002456025977153331,
0.0001745590998325497,
0.00016284181037917733,
0.00017091823974624276,
0.00001927456287376117
] |
{
"id": 0,
"code_window": [
"\n",
"\tconfigReqs := configDeps.AllPluginRequirements()\n",
"\t// FIXME: This is weird because ConfigTreeDependencies was written before\n",
"\t// we switched over to using earlyConfig as the main source of dependencies.\n",
"\t// In future we should clean this up t... | // Package resources implements the Azure ARM Resources service API version 2016-02-01.
//
//
package resources
// Copyright (c) Microsoft and contributors. 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.
//... | vendor/github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2016-02-01/resources/client.go | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.00017864888650365174,
0.0001709410425974056,
0.00016170437447726727,
0.0001719887659419328,
0.000006760654287063517
] |
{
"id": 0,
"code_window": [
"\n",
"\tconfigReqs := configDeps.AllPluginRequirements()\n",
"\t// FIXME: This is weird because ConfigTreeDependencies was written before\n",
"\t// we switched over to using earlyConfig as the main source of dependencies.\n",
"\t// In future we should clean this up t... | | json type \ dest type | bool | int | uint | float |string|
| --- | --- | --- | --- |--|--|
| number | positive => true <br/> negative => true <br/> zero => false| 23.2 => 23 <br/> -32.1 => -32| 12.1 => 12 <br/> -12.1 => 0|as normal|same as origin|
| string | empty string => false <br/> string "0" => false <br/> other... | vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.0001686109317233786,
0.0001686109317233786,
0.0001686109317233786,
0.0001686109317233786,
0
] |
{
"id": 1,
"code_window": [
"\tavailable = c.providerPluginSet() // re-discover to see newly-installed plugins\n",
"\n",
"\t// internal providers were already filtered out, since we don't need to get them.\n",
"\tchosen := choosePlugins(available, nil, requirements)\n",
"\n",
"\tdigests := m... | 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.998819887638092,
0.059405744075775146,
0.00016202586994040757,
0.00017031142488121986,
0.23423391580581665
] |
{
"id": 1,
"code_window": [
"\tavailable = c.providerPluginSet() // re-discover to see newly-installed plugins\n",
"\n",
"\t// internal providers were already filtered out, since we don't need to get them.\n",
"\tchosen := choosePlugins(available, nil, requirements)\n",
"\n",
"\tdigests := m... | // Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build gccgo
// +build !aix
#include <errno.h>
#include <stdint.h>
#include <unistd.h>
#define _STRINGIFY2_(x) #x
#define _STRINGIFY_(x) _STRINGIFY2_(x)
#d... | vendor/golang.org/x/sys/unix/gccgo_c.c | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.00017916355864144862,
0.00017084961291402578,
0.0001662142894929275,
0.00016901030903682113,
0.000005143636826687725
] |
{
"id": 1,
"code_window": [
"\tavailable = c.providerPluginSet() // re-discover to see newly-installed plugins\n",
"\n",
"\t// internal providers were already filtered out, since we don't need to get them.\n",
"\tchosen := choosePlugins(available, nil, requirements)\n",
"\n",
"\tdigests := m... | resource "test_object" "A" {
lifecycle {
create_before_destroy = true
}
}
resource "test_object" "B" {
test_string = "${test_object.A.id}"
}
| terraform/testdata/transform-destroy-cbd-edge-basic/main.tf | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.00017501179536338896,
0.00017501179536338896,
0.00017501179536338896,
0.00017501179536338896,
0
] |
{
"id": 1,
"code_window": [
"\tavailable = c.providerPluginSet() // re-discover to see newly-installed plugins\n",
"\n",
"\t// internal providers were already filtered out, since we don't need to get them.\n",
"\tchosen := choosePlugins(available, nil, requirements)\n",
"\n",
"\tdigests := m... | // Copyright 2010 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | vendor/github.com/golang/mock/gomock/matchers.go | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.0005413904436863959,
0.00019627435540314764,
0.00016078817134257406,
0.00017184315947815776,
0.00009240787767339498
] |
{
"id": 2,
"code_window": [
"\t// exceptional circumstances since it forces the provider's release\n",
"\t// schedule to be tied to that of Terraform Core.\n",
"\tInternal map[addrs.Provider]providers.Factory\n",
"}\n",
"\n",
"func choosePlugins(avail discovery.PluginMetaSet, internal map[ad... | package command
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
plugin "github.com/hashicorp/go-plugin"
"github.com/kardianos/osext"
"github.com/hashicorp/terraform/addrs"
terraformProvider "github.com/hashicorp/terraform/builtin/providers/te... | command/plugins.go | 1 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.9989596605300903,
0.19013336300849915,
0.00016583768592681736,
0.0038350147660821676,
0.34786778688430786
] |
{
"id": 2,
"code_window": [
"\t// exceptional circumstances since it forces the provider's release\n",
"\t// schedule to be tied to that of Terraform Core.\n",
"\tInternal map[addrs.Provider]providers.Factory\n",
"}\n",
"\n",
"func choosePlugins(avail discovery.PluginMetaSet, internal map[ad... | package planfile
import (
"archive/zip"
"encoding/json"
"fmt"
"io/ioutil"
"path"
"sort"
"strings"
"time"
version "github.com/hashicorp/go-version"
"github.com/hashicorp/terraform/configs/configload"
)
const configSnapshotPrefix = "tfconfig/"
const configSnapshotManifestFile = configSnapshotPrefix + "module... | plans/planfile/config_snapshot.go | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.00017419832875020802,
0.00016938158660195768,
0.00016740082355681807,
0.00016935051826294512,
0.0000014320195305117522
] |
{
"id": 2,
"code_window": [
"\t// exceptional circumstances since it forces the provider's release\n",
"\t// schedule to be tied to that of Terraform Core.\n",
"\tInternal map[addrs.Provider]providers.Factory\n",
"}\n",
"\n",
"func choosePlugins(avail discovery.PluginMetaSet, internal map[ad... | package states
import (
"fmt"
"math/rand"
"time"
"github.com/hashicorp/terraform/addrs"
)
// Resource represents the state of a resource.
type Resource struct {
// Addr is the module-relative address for the resource this state object
// belongs to.
Addr addrs.Resource
// EachMode is the multi-instance mode... | states/resource.go | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.00039787727291695774,
0.0001939339708769694,
0.00016290516941808164,
0.00016844911442603916,
0.000056963679526234046
] |
{
"id": 2,
"code_window": [
"\t// exceptional circumstances since it forces the provider's release\n",
"\t// schedule to be tied to that of Terraform Core.\n",
"\tInternal map[addrs.Provider]providers.Factory\n",
"}\n",
"\n",
"func choosePlugins(avail discovery.PluginMetaSet, internal map[ad... | // +build windows
package initwd
// no syscall.Stat_t on windows, return 0 for inodes
func inode(path string) (uint64, error) {
return 0, nil
}
| internal/initwd/inode_windows.go | 0 | https://github.com/hashicorp/terraform/commit/efafadbe5edbfd8faa250aa1eaed46fbb2d52ee2 | [
0.00016999895160552114,
0.00016999895160552114,
0.00016999895160552114,
0.00016999895160552114,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.