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": 4,
"code_window": [
"\t\thandleError(ExitBadArgs, errors.New(\"key required\"))\n",
"\t}\n",
"\tkey := c.Args()[0]\n",
"\tttl := c.Int(\"ttl\")\n",
"\tctx, cancel := contextWithTotalTimeout(c)\n",
"\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.S... | // Copyright 2015 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | etcdctl/ctlv2/command/rmdir_command.go | 1 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.19911399483680725,
0.034513700753450394,
0.00016571122978348285,
0.00017708353698253632,
0.07365718483924866
] |
{
"id": 4,
"code_window": [
"\t\thandleError(ExitBadArgs, errors.New(\"key required\"))\n",
"\t}\n",
"\tkey := c.Args()[0]\n",
"\tttl := c.Int(\"ttl\")\n",
"\tctx, cancel := contextWithTotalTimeout(c)\n",
"\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.S... | // +build !notfastpath
// Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
// Use of this source code is governed by a MIT license found in the LICENSE file.
// ************************************************************
// DO NOT EDIT.
// THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
// ************... | cmd/vendor/github.com/ugorji/go/codec/fast-path.go.tmpl | 0 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.0013786278432235122,
0.00021891795040573925,
0.0001618040114408359,
0.0001758399448590353,
0.00020124638103879988
] |
{
"id": 4,
"code_window": [
"\t\thandleError(ExitBadArgs, errors.New(\"key required\"))\n",
"\t}\n",
"\tkey := c.Args()[0]\n",
"\tttl := c.Int(\"ttl\")\n",
"\tctx, cancel := contextWithTotalTimeout(c)\n",
"\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.S... | package pb
import (
"io"
)
// It's proxy reader, implement io.Reader
type Reader struct {
io.Reader
bar *ProgressBar
}
func (r *Reader) Read(p []byte) (n int, err error) {
n, err = r.Reader.Read(p)
r.bar.Add(n)
return
}
| cmd/vendor/gopkg.in/cheggaaa/pb.v1/reader.go | 0 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.00017480649694334716,
0.00017341777856927365,
0.00017202906019520015,
0.00017341777856927365,
0.0000013887183740735054
] |
{
"id": 4,
"code_window": [
"\t\thandleError(ExitBadArgs, errors.New(\"key required\"))\n",
"\t}\n",
"\tkey := c.Args()[0]\n",
"\tttl := c.Int(\"ttl\")\n",
"\tctx, cancel := contextWithTotalTimeout(c)\n",
"\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.S... | [](https://travis-ci.org/spf13/pflag)
## Description
pflag is a drop-in replacement for Go's flag package, implementing
POSIX/GNU-style --flags.
pflag is compatible with the [GNU extensions to the POSIX recommendations
for command-line options][1]. ... | cmd/vendor/github.com/spf13/pflag/README.md | 0 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.0005291139823384583,
0.00018222947255708277,
0.00016044374206103384,
0.00016941590001806617,
0.00006955697608646005
] |
{
"id": 5,
"code_window": [
"\tif err != nil {\n",
"\t\thandleError(ExitServerError, err)\n",
"\t}\n",
"}"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\tif c.GlobalString(\"output\") != \"simple\" {\n",
"\t\tprintResponseKey(resp, c.GlobalString(\... | // Copyright 2015 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | etcdctl/ctlv2/command/rm_command.go | 1 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.9920990467071533,
0.14190581440925598,
0.00016611401224508882,
0.0001755404082359746,
0.347089946269989
] |
{
"id": 5,
"code_window": [
"\tif err != nil {\n",
"\t\thandleError(ExitServerError, err)\n",
"\t}\n",
"}"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\tif c.GlobalString(\"output\") != \"simple\" {\n",
"\t\tprintResponseKey(resp, c.GlobalString(\... | # Maintenance
## Overview
An etcd cluster needs periodic maintenance to remain reliable. Depending on an etcd application's needs, this maintenance can usually be automated and performed without downtime or significantly degraded performance.
All etcd maintenance manages storage resources consumed by the etcd keyspa... | Documentation/op-guide/maintenance.md | 0 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.00041479093488305807,
0.00018875031673815101,
0.00016534568567294627,
0.00016773820971138775,
0.00006820975249866024
] |
{
"id": 5,
"code_window": [
"\tif err != nil {\n",
"\t\thandleError(ExitServerError, err)\n",
"\t}\n",
"}"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\tif c.GlobalString(\"output\") != \"simple\" {\n",
"\t\tprintResponseKey(resp, c.GlobalString(\... | // Copyright 2015 CoreOS, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | cmd/vendor/github.com/coreos/pkg/capnslog/journald_formatter.go | 0 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.0010341607267037034,
0.00031210208544507623,
0.00017084230785258114,
0.00017657702846918255,
0.000297023740131408
] |
{
"id": 5,
"code_window": [
"\tif err != nil {\n",
"\t\thandleError(ExitServerError, err)\n",
"\t}\n",
"}"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\tif c.GlobalString(\"output\") != \"simple\" {\n",
"\t\tprintResponseKey(resp, c.GlobalString(\... | // 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 !gccgo
#include "textflag.h"
//
// System call support for 386, FreeBSD
//
// Just jump to package syscall's implementation for all these functions... | cmd/vendor/golang.org/x/sys/unix/asm_dragonfly_386.s | 0 | https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2 | [
0.00017960843979381025,
0.00017275696154683828,
0.00016739348939154297,
0.0001712689845589921,
0.000005096524091641186
] |
{
"id": 0,
"code_window": [
"\t\t// are unlikely to happen.\n",
"\t\treturn\n",
"\t}\n",
"\tsr := &tracingpb.StructuredRecord{\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\n",
"\tvar now time.Time\n",
"\tif clock := s.testing.Clock; clock !... | // 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/util/tracing/span_test.go | 1 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.987246036529541,
0.018697576597332954,
0.0001653398503549397,
0.00017250579548999667,
0.13304239511489868
] |
{
"id": 0,
"code_window": [
"\t\t// are unlikely to happen.\n",
"\t\treturn\n",
"\t}\n",
"\tsr := &tracingpb.StructuredRecord{\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\n",
"\tvar now time.Time\n",
"\tif clock := s.testing.Clock; clock !... | // Copyright 2017 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/stats/histogram.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.0005028066807426512,
0.00019005492504220456,
0.00016363858594559133,
0.0001691733777988702,
0.00006843107257736847
] |
{
"id": 0,
"code_window": [
"\t\t// are unlikely to happen.\n",
"\t\treturn\n",
"\t}\n",
"\tsr := &tracingpb.StructuredRecord{\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\n",
"\tvar now time.Time\n",
"\tif clock := s.testing.Clock; clock !... | [32 0 0 0 0 0 0 0] | pkg/util/json/testdata/encoded/structure_lonely_null.json.bytes | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00017589092021808028,
0.00017589092021808028,
0.00017589092021808028,
0.00017589092021808028,
0
] |
{
"id": 0,
"code_window": [
"\t\t// are unlikely to happen.\n",
"\t\treturn\n",
"\t}\n",
"\tsr := &tracingpb.StructuredRecord{\n"
],
"labels": [
"keep",
"keep",
"add",
"keep"
],
"after_edit": [
"\n",
"\tvar now time.Time\n",
"\tif clock := s.testing.Clock; clock !... | // 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/storage/testing_knobs.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00017568760085850954,
0.0001718679122859612,
0.00016804822371341288,
0.0001718679122859612,
0.00000381968857254833
] |
{
"id": 1,
"code_window": [
"\tsr := &tracingpb.StructuredRecord{\n",
"\t\tTime: time.Now(),\n",
"\t\tPayload: p,\n",
"\t}\n",
"\ts.recordInternal(sr, &s.mu.recording.structured)\n"
],
"labels": [
"keep",
"replace",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t... | // 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/util/tracing/crdbspan.go | 1 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.9981752634048462,
0.019653908908367157,
0.00016356869309674948,
0.0002596335834823549,
0.1357024610042572
] |
{
"id": 1,
"code_window": [
"\tsr := &tracingpb.StructuredRecord{\n",
"\t\tTime: time.Now(),\n",
"\t\tPayload: p,\n",
"\t}\n",
"\ts.recordInternal(sr, &s.mu.recording.structured)\n"
],
"labels": [
"keep",
"replace",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t... | // 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/dev/recording/recording.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.0018273958703503013,
0.00032172646024264395,
0.00016788036737125367,
0.00018102256581187248,
0.0003627690894063562
] |
{
"id": 1,
"code_window": [
"\tsr := &tracingpb.StructuredRecord{\n",
"\t\tTime: time.Now(),\n",
"\t\tPayload: p,\n",
"\t}\n",
"\ts.recordInternal(sr, &s.mu.recording.structured)\n"
],
"labels": [
"keep",
"replace",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t... | // 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/testutils/lint/passes/passesutil/passes_util_test.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.0001774191769072786,
0.00017277283768635243,
0.000169723920407705,
0.00017209799261763692,
0.0000025204583380400436
] |
{
"id": 1,
"code_window": [
"\tsr := &tracingpb.StructuredRecord{\n",
"\t\tTime: time.Now(),\n",
"\t\tPayload: p,\n",
"\t}\n",
"\ts.recordInternal(sr, &s.mu.recording.structured)\n"
],
"labels": [
"keep",
"replace",
"keep",
"keep",
"keep"
],
"after_edit": [
"\t... | // Code generated by TestPretty. DO NOT EDIT.
// GENERATED FILE DO NOT EDIT
1:
-
IMPORT
TABLE
t (
i
INT8,
s
STRING
)
CSV
DATA (
$1
)
6:
------
IMPORT
TABLE t (
i
INT8,
s
STRING
)
CSV DATA (
$1
)
15:
---------------
IMPORT
TABLE t (
i INT8,
s STRING
)
CSV DA... | pkg/sql/sem/tree/testdata/pretty/import4.align-only.golden | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00017114426009356976,
0.00016702016000635922,
0.0001646658347453922,
0.00016676230006851256,
0.000002012264303630218
] |
{
"id": 2,
"code_window": [
"}\n",
"\n",
"// TestSpanRecordStructuredLimit tests recording behavior when the size of\n",
"// structured data recorded into the span exceeds the configured limit.\n",
"func TestSpanRecordStructuredLimit(t *testing.T) {\n",
"\ttr := NewTracer()\n",
"\tsp := ... | // 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/util/tracing/crdbspan.go | 1 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.009846220724284649,
0.0013422550400719047,
0.00016360785230062902,
0.0002555058163125068,
0.0022077925968915224
] |
{
"id": 2,
"code_window": [
"}\n",
"\n",
"// TestSpanRecordStructuredLimit tests recording behavior when the size of\n",
"// structured data recorded into the span exceeds the configured limit.\n",
"func TestSpanRecordStructuredLimit(t *testing.T) {\n",
"\ttr := NewTracer()\n",
"\tsp := ... | // Copyright 2019 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/pgwire/pgcode/doc.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00017880670202430338,
0.00017176626715809107,
0.00016472581773996353,
0.00017176626715809107,
0.000007040442142169923
] |
{
"id": 2,
"code_window": [
"}\n",
"\n",
"// TestSpanRecordStructuredLimit tests recording behavior when the size of\n",
"// structured data recorded into the span exceeds the configured limit.\n",
"func TestSpanRecordStructuredLimit(t *testing.T) {\n",
"\ttr := NewTracer()\n",
"\tsp := ... | // 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/sql/catalog/schemaexpr/computed_column_rewrites_test.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00017917210061568767,
0.00017277018923778087,
0.00016729965864215046,
0.00017221990856342018,
0.0000035245795970695326
] |
{
"id": 2,
"code_window": [
"}\n",
"\n",
"// TestSpanRecordStructuredLimit tests recording behavior when the size of\n",
"// structured data recorded into the span exceeds the configured limit.\n",
"func TestSpanRecordStructuredLimit(t *testing.T) {\n",
"\ttr := NewTracer()\n",
"\tsp := ... | // 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/geo/geogfn/azimuth.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00017939363897312433,
0.00017202337039634585,
0.00016324275929946452,
0.00017185014439746737,
0.000004193988843326224
] |
{
"id": 3,
"code_window": [
"\tpad := func(i int) string { return fmt.Sprintf(\"%06d\", i) }\n",
"\tpayload := func(i int) Structured { return &types.StringValue{Value: pad(i)} }\n",
"\tanyPayload, err := types.MarshalAny(payload(42))\n",
"\trequire.NoError(t, err)\n",
"\tstructuredRecord := &tr... | // 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/util/tracing/crdbspan.go | 1 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.013701115734875202,
0.0006765119032934308,
0.00016207006410695612,
0.00017231833771802485,
0.0020210538059473038
] |
{
"id": 3,
"code_window": [
"\tpad := func(i int) string { return fmt.Sprintf(\"%06d\", i) }\n",
"\tpayload := func(i int) Structured { return &types.StringValue{Value: pad(i)} }\n",
"\tanyPayload, err := types.MarshalAny(payload(42))\n",
"\trequire.NoError(t, err)\n",
"\tstructuredRecord := &tr... | // 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/colexec/materializer_test.go | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.0005343774682842195,
0.00019921721832361072,
0.00016028333629947156,
0.00017227957141585648,
0.00009522926120553166
] |
{
"id": 3,
"code_window": [
"\tpad := func(i int) string { return fmt.Sprintf(\"%06d\", i) }\n",
"\tpayload := func(i int) Structured { return &types.StringValue{Value: pad(i)} }\n",
"\tanyPayload, err := types.MarshalAny(payload(42))\n",
"\trequire.NoError(t, err)\n",
"\tstructuredRecord := &tr... | show_savepoint_stmt ::=
'SHOW' 'SAVEPOINT' 'STATUS'
| docs/generated/sql/bnf/show_savepoint_status.bnf | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00016758768470026553,
0.00016758768470026553,
0.00016758768470026553,
0.00016758768470026553,
0
] |
{
"id": 3,
"code_window": [
"\tpad := func(i int) string { return fmt.Sprintf(\"%06d\", i) }\n",
"\tpayload := func(i int) Structured { return &types.StringValue{Value: pad(i)} }\n",
"\tanyPayload, err := types.MarshalAny(payload(42))\n",
"\trequire.NoError(t, err)\n",
"\tstructuredRecord := &tr... | // 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/sql/schemachanger/scpb/scpb.proto | 0 | https://github.com/cockroachdb/cockroach/commit/9d55d63b9132b4917e2864581f66cc426836f488 | [
0.00017816611216403544,
0.00016742211300879717,
0.0001611499465070665,
0.0001664734591031447,
0.000003934645974368323
] |
{
"id": 0,
"code_window": [
"\t\"github.com/photoprism/photoprism/internal/forms\"\n",
"\t\"github.com/photoprism/photoprism/internal/photoprism\"\n",
")\n",
"\n",
"// `GET /api/v1/photos`\n",
"//\n",
"// Query:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"r... | package api
import (
"log"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/photoprism/photoprism/internal/forms"
"github.com/photoprism/photoprism/internal/photoprism"
)
// `GET /api/v1/photos`
//
// Query:
// - `q`: string Query string `form:""`
// ... | internal/api/photos.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.31110820174217224,
0.037396594882011414,
0.00016873719869181514,
0.007006804458796978,
0.09144072979688644
] |
{
"id": 0,
"code_window": [
"\t\"github.com/photoprism/photoprism/internal/forms\"\n",
"\t\"github.com/photoprism/photoprism/internal/photoprism\"\n",
")\n",
"\n",
"// `GET /api/v1/photos`\n",
"//\n",
"// Query:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"r... | package models
import (
"github.com/gosimple/slug"
"github.com/jinzhu/gorm"
)
type Lens struct {
gorm.Model
LensSlug string
LensModel string
LensMake string
LensType string
LensOwner string
LensDescription string `gorm:"type:text;"`
LensNotes string `gorm:"type:text;"`... | internal/models/lens.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017798002227209508,
0.00017410558939445764,
0.00016650886391289532,
0.00017596589168533683,
0.000004358635123935528
] |
{
"id": 0,
"code_window": [
"\t\"github.com/photoprism/photoprism/internal/forms\"\n",
"\t\"github.com/photoprism/photoprism/internal/photoprism\"\n",
")\n",
"\n",
"// `GET /api/v1/photos`\n",
"//\n",
"// Query:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"r... | package photoprism
import (
"bufio"
"errors"
"io/ioutil"
"log"
"os"
"sort"
tf "github.com/tensorflow/tensorflow/tensorflow/go"
"github.com/tensorflow/tensorflow/tensorflow/go/op"
)
// TensorFlow if a tensorflow wrapper given a graph, labels and a modelPath.
type TensorFlow struct {
modelPath string
graph ... | internal/photoprism/tensorflow.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.0025461751502007246,
0.0002913888019975275,
0.0001665217278059572,
0.00017436774214729667,
0.0005172952078282833
] |
{
"id": 0,
"code_window": [
"\t\"github.com/photoprism/photoprism/internal/forms\"\n",
"\t\"github.com/photoprism/photoprism/internal/photoprism\"\n",
")\n",
"\n",
"// `GET /api/v1/photos`\n",
"//\n",
"// Query:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"r... | @import url("../node_modules/vuetify/dist/vuetify.min.css");
@import url("../node_modules/material-design-icons-iconfont/dist/material-design-icons.css");
@import url("photo.css");
#app div.loading {
text-align: center;
margin: 50px 20px;
}
#busy-overlay {
display: none;
position: absolute;
top: ... | frontend/css/app.css | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017629707872401923,
0.00017213515820913017,
0.00016592023894190788,
0.0001750865631038323,
0.00000429096235166071
] |
{
"id": 1,
"code_window": [
"//\n",
"// Query:\n",
"// - `q`: string Query string `form:\"\"`\n",
"//\t - `tags`: string Tags string `form:\"tags\"`\n",
"//\t - `cat`: string Category\n",
"//\t - `country`: string Country code\n",
"//\t - `camera`: int Camera ID\... | package api
import (
"log"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/photoprism/photoprism/internal/forms"
"github.com/photoprism/photoprism/internal/photoprism"
)
// `GET /api/v1/photos`
//
// Query:
// - `q`: string Query string `form:""`
// ... | internal/api/photos.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.9767905473709106,
0.10966609418392181,
0.000165429271874018,
0.008417998440563679,
0.2896370589733124
] |
{
"id": 1,
"code_window": [
"//\n",
"// Query:\n",
"// - `q`: string Query string `form:\"\"`\n",
"//\t - `tags`: string Tags string `form:\"tags\"`\n",
"//\t - `cat`: string Category\n",
"//\t - `country`: string Country code\n",
"//\t - `camera`: int Camera ID\... | /*
This package contains commands and flags to be used by the main application.
See https://photoprism.org/ for more information about PhotoPrism.
*/
package commands
| internal/commands/doc.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00019380691810511053,
0.00019380691810511053,
0.00019380691810511053,
0.00019380691810511053,
0
] |
{
"id": 1,
"code_window": [
"//\n",
"// Query:\n",
"// - `q`: string Query string `form:\"\"`\n",
"//\t - `tags`: string Tags string `form:\"tags\"`\n",
"//\t - `cat`: string Category\n",
"//\t - `country`: string Country code\n",
"//\t - `camera`: int Camera ID\... | /*
Package forms contains tagged structs for input value validation.
See https://photoprism.org/ for more information about PhotoPrism.
*/
package forms
| internal/forms/doc.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00042150975787080824,
0.00042150975787080824,
0.00042150975787080824,
0.00042150975787080824,
0
] |
{
"id": 1,
"code_window": [
"//\n",
"// Query:\n",
"// - `q`: string Query string `form:\"\"`\n",
"//\t - `tags`: string Tags string `form:\"tags\"`\n",
"//\t - `cat`: string Category\n",
"//\t - `country`: string Country code\n",
"//\t - `camera`: int Camera ID\... | import Api from 'common/api';
import User from 'model/user';
class Session {
/**
* @param {Storage} storage
*/
constructor(storage) {
this.storage = storage;
this.session_token = this.storage.getItem('session_token');
const userJson = this.storage.getItem('user');
th... | frontend/src/common/session.js | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017542278510518372,
0.00017155254317913204,
0.0001678630942478776,
0.0001709399075480178,
0.000002371359414610197
] |
{
"id": 2,
"code_window": [
"\n",
"\t\tc.JSON(http.StatusOK, result)\n",
"\t})\n",
"}\n",
"\n",
"// `POST /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
... | package api
import (
"fmt"
"log"
"strconv"
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/photoprism"
)
var photoIconSvg = []byte(`
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c... | internal/api/thumbnails.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.000327931105857715,
0.0002170884981751442,
0.0001632564380997792,
0.00018078202265314758,
0.00006206661782925949
] |
{
"id": 2,
"code_window": [
"\n",
"\t\tc.JSON(http.StatusOK, result)\n",
"\t})\n",
"}\n",
"\n",
"// `POST /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
... | package models
import (
"github.com/jinzhu/gorm"
)
type Location struct {
gorm.Model
LocDisplayName string
LocLat float64
LocLong float64
LocCategory string
LocType string
LocName string
LocHouseNr string
LocStreet string
LocSuburb string
LocCity string... | internal/models/location.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017668548389337957,
0.0001725093461573124,
0.00016828184016048908,
0.00017256071441806853,
0.0000034309655347897206
] |
{
"id": 2,
"code_window": [
"\n",
"\t\tc.JSON(http.StatusOK, result)\n",
"\t})\n",
"}\n",
"\n",
"// `POST /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
... | package commands
import (
"fmt"
"log"
"github.com/photoprism/photoprism/internal/photoprism"
"github.com/urfave/cli"
)
var IndexCommand = cli.Command{
Name: "index",
Usage: "Re-indexes all originals",
Action: indexAction,
}
// Indexes original photos; called by IndexCommand
func indexAction(context *cli.C... | internal/commands/index.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.002712571993470192,
0.000904124986846,
0.00016703394067008048,
0.00036844704300165176,
0.0010566256241872907
] |
{
"id": 2,
"code_window": [
"\n",
"\t\tc.JSON(http.StatusOK, result)\n",
"\t})\n",
"}\n",
"\n",
"// `POST /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
... | export GO111MODULE=on
GOCMD=go
GOINSTALL=$(GOCMD) install
GOBUILD=$(GOCMD) build
GOMOD=$(GOCMD) mod
GORUN=$(GOCMD) run
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOFMT=$(GOCMD) fmt
GOIMPORTS=goimports
BINARY_NAME=photoprism
all: tensorflow-model dep js build
install: install-bin install-assets inst... | Makefile | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.0024718905333429575,
0.0005526244058273733,
0.00016480154590681195,
0.0001694973325356841,
0.0008583244634792209
] |
{
"id": 3,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func LikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.POST(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch(conf... | package api
import (
"log"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/photoprism/photoprism/internal/forms"
"github.com/photoprism/photoprism/internal/photoprism"
)
// `GET /api/v1/photos`
//
// Query:
// - `q`: string Query string `form:""`
// ... | internal/api/photos.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.9970912933349609,
0.4089927077293396,
0.00017332303104922175,
0.05181700363755226,
0.4799380302429199
] |
{
"id": 3,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func LikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.POST(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch(conf... | package photoprism
import (
"log"
"os"
"os/user"
"path/filepath"
"time"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mssql" // Import gorm drivers
_ "github.com/jinzhu/gorm/dialects/mysql"
_ "github.com/jinzhu/gorm/dialects/postgres"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/kyl... | internal/photoprism/config.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.008406909182667732,
0.0011168294586241245,
0.00016424464411102235,
0.00017182627925649285,
0.002070925198495388
] |
{
"id": 3,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func LikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.POST(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch(conf... | module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true,
},
extends: 'eslint:recommended',
parserOptions: {
sourceType: 'module',
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
indent:... | frontend/.eslintrc.js | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017463654512539506,
0.00017420202493667603,
0.00017335046140942723,
0.00017461908282712102,
6.021919602972048e-7
] |
{
"id": 3,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func LikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.POST(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch(conf... | package photoprism
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestMediaFile_GetThumbnail(t *testing.T) {
conf := NewTestConfig()
conf.CreateDirectories()
conf.InitializeTestData(t)
image1, err := NewMediaFile(conf.ImportPath + "/iphone/IMG_6788.JPG")
assert.Nil(t, err)
thumbnail1, err... | internal/photoprism/thumbnails_test.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.005033720284700394,
0.0019555387552827597,
0.00016594411863479763,
0.001763737527653575,
0.001566398423165083
] |
{
"id": 4,
"code_window": [
"\t})\n",
"}\n",
"\n",
"// `DELETE /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
],
"after_edit": [
"// DELETE /api/v1/photos/:photoId/like\n"
],
... | package api
import (
"log"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/photoprism/photoprism/internal/forms"
"github.com/photoprism/photoprism/internal/photoprism"
)
// `GET /api/v1/photos`
//
// Query:
// - `q`: string Query string `form:""`
// ... | internal/api/photos.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.02425936982035637,
0.0061126030050218105,
0.00015871957293711603,
0.0011193312238901854,
0.008426300249993801
] |
{
"id": 4,
"code_window": [
"\t})\n",
"}\n",
"\n",
"// `DELETE /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
],
"after_edit": [
"// DELETE /api/v1/photos/:photoId/like\n"
],
... | version: '3.3'
services:
photoprism:
build: .
image: photoprism/photoprism
command: tail -f /dev/null
database:
image: mysql:latest
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
environment:
MYSQL_ROOT_PASSWORD: photoprism... | docker-compose.travis.yml | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.0001717075501801446,
0.00016987956769298762,
0.00016805158520583063,
0.00016987956769298762,
0.0000018279824871569872
] |
{
"id": 4,
"code_window": [
"\t})\n",
"}\n",
"\n",
"// `DELETE /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
],
"after_edit": [
"// DELETE /api/v1/photos/:photoId/like\n"
],
... | const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const webpack = require('webpack');
const PATHS = {
app: path.join(__dirname, 'src/app.js'),
css: path.join(__dirname, 'css'),
build: path.join(__dirname, '../assets/public/build'),
};
const cssPlugin = new E... | frontend/webpack.config.js | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017292339180130512,
0.00016950703866314143,
0.00016648726887069643,
0.0001696045364951715,
0.0000019667993456096156
] |
{
"id": 4,
"code_window": [
"\t})\n",
"}\n",
"\n",
"// `DELETE /api/v1/photos/:photoId/like`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
],
"after_edit": [
"// DELETE /api/v1/photos/:photoId/like\n"
],
... | package commands
import (
"fmt"
"log"
"github.com/photoprism/photoprism/internal/photoprism"
"github.com/urfave/cli"
)
var IndexCommand = cli.Command{
Name: "index",
Usage: "Re-indexes all originals",
Action: indexAction,
}
// Indexes original photos; called by IndexCommand
func indexAction(context *cli.C... | internal/commands/index.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.002670127199962735,
0.0009126901859417558,
0.0001676989340921864,
0.0004064673848915845,
0.001032995292916894
] |
{
"id": 5,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func DislikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.DELETE(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch... | package api
import (
"fmt"
"log"
"strconv"
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/photoprism"
)
var photoIconSvg = []byte(`
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c... | internal/api/thumbnails.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.9880561828613281,
0.22440820932388306,
0.00016820163000375032,
0.0011127120815217495,
0.3900347948074341
] |
{
"id": 5,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func DislikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.DELETE(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch... | package server
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/photoprism"
)
func Start(conf *photoprism.Config) {
if conf.ServerMode != "" {
gin.SetMode(conf.ServerMode)
} else if conf.Debug == false {
gin.SetMode(gin.ReleaseMode)
}
app := gin.Default()
// Set temp... | internal/server/server.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.004545351956039667,
0.001636109664104879,
0.00016571122978348285,
0.00019726587925106287,
0.0020571851637214422
] |
{
"id": 5,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func DislikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.DELETE(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch... | package commands
import (
"fmt"
"github.com/photoprism/photoprism/internal/photoprism"
"github.com/urfave/cli"
)
var ConfigCommand = cli.Command{
Name: "config",
Usage: "Displays global configuration values",
Action: configAction,
}
// Prints current configuration; called by ConfigCommand
func configAction... | internal/commands/config.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00308084674179554,
0.0011221308959648013,
0.00017118931282311678,
0.0006182438228279352,
0.001147483242675662
] |
{
"id": 5,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `photoId`: Photo ID as returned by the API\n",
"func DislikePhoto(router *gin.RouterGroup, conf *photoprism.Config) {\n",
"\trouter.DELETE(\"/photos/:photoId/like\", func(c *gin.Context) {\n",
"\t\tsearch := photoprism.NewSearch... | package photoprism
import (
"image"
"os"
"sort"
"github.com/RobCherry/vibrant"
"github.com/lucasb-eyer/go-colorful"
"golang.org/x/image/colornames"
)
func getColorNames(actualColor colorful.Color) (result []string) {
var maxDistance = 0.22
for colorName, colorRGBA := range colornames.Map {
colorColorful, ... | internal/photoprism/colors.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.0014531450578942895,
0.0003862683952320367,
0.00016489335393998772,
0.000174839558894746,
0.00047714009997434914
] |
{
"id": 6,
"code_window": [
"<path d=\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\"/>\n",
"</svg>`)\n",
"\n",
"// `GET /api/v1/thumbnails/:type/:size/:hash`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"ke... | package api
import (
"log"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"github.com/photoprism/photoprism/internal/forms"
"github.com/photoprism/photoprism/internal/photoprism"
)
// `GET /api/v1/photos`
//
// Query:
// - `q`: string Query string `form:""`
// ... | internal/api/photos.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00018151324184145778,
0.00017152352666016668,
0.00015974199050106108,
0.000171209845575504,
0.000005706357114831917
] |
{
"id": 6,
"code_window": [
"<path d=\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\"/>\n",
"</svg>`)\n",
"\n",
"// `GET /api/v1/thumbnails/:type/:size/:hash`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"ke... | <template>
<v-container fluid>
<h1>TODO</h1>
<p class="md-subheading">
This page is not implemented yet
</p>
</v-container>
</template>
<script>
export default {
name: 'todo',
data() {
return {
};
},
methods: {
... | frontend/src/app/pages/todo.vue | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017471666797064245,
0.00017122812278103083,
0.00016669345495756716,
0.00017175116227008402,
0.000002965483190564555
] |
{
"id": 6,
"code_window": [
"<path d=\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\"/>\n",
"</svg>`)\n",
"\n",
"// `GET /api/v1/thumbnails/:type/:size/:hash`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"ke... | module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
mocha: true,
},
extends: 'eslint:recommended',
parserOptions: {
sourceType: 'module',
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
indent:... | frontend/.eslintrc.js | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.0001745673071127385,
0.0001710012584226206,
0.00016786405467428267,
0.00017057244258467108,
0.0000027533394586498616
] |
{
"id": 6,
"code_window": [
"<path d=\"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z\"/>\n",
"</svg>`)\n",
"\n",
"// `GET /api/v1/thumbnails/:type/:size/:hash`\n",
"//\n",
"// Parameters:\n"
],
"labels": [
"ke... | package photoprism
import (
"strings"
"time"
"github.com/jinzhu/gorm"
"github.com/photoprism/photoprism/internal/forms"
"github.com/photoprism/photoprism/internal/models"
)
// Search searches given an originals path and a db instance.
type Search struct {
originalsPath string
db *gorm.DB
}
// Sear... | internal/photoprism/search.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.000245540781179443,
0.00017335143638774753,
0.00016318967391271144,
0.00017134653171524405,
0.000016208901797654107
] |
{
"id": 7,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `type`: string Format, either \"fit\" or \"square\"\n",
"// - `size`: int Size in pixels\n",
"// - `hash`: string The file hash as returned by the search API\n",
"func GetThumbnail(router *gin.RouterGroup, conf *photoprism.C... | package api
import (
"fmt"
"log"
"strconv"
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/photoprism"
)
var photoIconSvg = []byte(`
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c... | internal/api/thumbnails.go | 1 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.999065101146698,
0.5017451047897339,
0.00020451472664717585,
0.5027450323104858,
0.4947584867477417
] |
{
"id": 7,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `type`: string Format, either \"fit\" or \"square\"\n",
"// - `size`: int Size in pixels\n",
"// - `hash`: string The file hash as returned by the search API\n",
"func GetThumbnail(router *gin.RouterGroup, conf *photoprism.C... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{{ .title }}</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | assets/templates/index.tmpl | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00020451472664717585,
0.00017706802464090288,
0.00016862461052369326,
0.0001707345072645694,
0.000013751445294474252
] |
{
"id": 7,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `type`: string Format, either \"fit\" or \"square\"\n",
"// - `size`: int Size in pixels\n",
"// - `hash`: string The file hash as returned by the search API\n",
"func GetThumbnail(router *gin.RouterGroup, conf *photoprism.C... | import axios from 'axios';
import Event from 'pubsub-js';
import 'babel-polyfill';
const Api = axios.create({
baseURL: '/api/v1',
headers: {common: {
'X-Session-Token': window.localStorage.getItem('session_token'),
}},
});
Api.interceptors.request.use(function (config) {
// Do something before... | frontend/src/common/api.js | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00017129071056842804,
0.0001691685029072687,
0.00016694239457137883,
0.00016946374671533704,
0.000001575307578605134
] |
{
"id": 7,
"code_window": [
"//\n",
"// Parameters:\n",
"// - `type`: string Format, either \"fit\" or \"square\"\n",
"// - `size`: int Size in pixels\n",
"// - `hash`: string The file hash as returned by the search API\n",
"func GetThumbnail(router *gin.RouterGroup, conf *photoprism.C... | package photoprism
import (
"encoding/json"
"fmt"
"net/http"
"strconv"
"strings"
"github.com/photoprism/photoprism/internal/models"
"github.com/pkg/errors"
)
type openstreetmapAddress struct {
HouseNumber string `json:"house_number"`
Road string `json:"road"`
Suburb string `json:"suburb"`
Town... | internal/photoprism/openstreetmap.go | 0 | https://github.com/photoprism/photoprism/commit/4a33d430e9d765b502cd1d08d1c88f7b0d88e9fc | [
0.00018806137086357921,
0.0001723563182167709,
0.00016627262812107801,
0.00017024211410898715,
0.0000067803957790602
] |
{
"id": 0,
"code_window": [
"\ts.txn.SetOption(tikvstore.EnableAsyncCommit, s.GetSessionVars().EnableAsyncCommit)\n",
"\ts.txn.SetOption(tikvstore.Enable1PC, s.GetSessionVars().Enable1PC)\n",
"\t// priority of the sysvar is lower than `start transaction with causal consistency only`\n",
"\tif s.txn.... | // 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/tests/async_commit_test.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.004583071451634169,
0.0008054801146499813,
0.00016112705634441227,
0.00020522321574389935,
0.001162746106274426
] |
{
"id": 0,
"code_window": [
"\ts.txn.SetOption(tikvstore.EnableAsyncCommit, s.GetSessionVars().EnableAsyncCommit)\n",
"\ts.txn.SetOption(tikvstore.Enable1PC, s.GetSessionVars().Enable1PC)\n",
"\t// priority of the sysvar is lower than `start transaction with causal consistency only`\n",
"\tif s.txn.... | // 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... | cmd/benchdb/main.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00028536797617562115,
0.00017807450785767287,
0.00016349650104530156,
0.00017148174811154604,
0.00002794576357700862
] |
{
"id": 0,
"code_window": [
"\ts.txn.SetOption(tikvstore.EnableAsyncCommit, s.GetSessionVars().EnableAsyncCommit)\n",
"\ts.txn.SetOption(tikvstore.Enable1PC, s.GetSessionVars().Enable1PC)\n",
"\t// priority of the sysvar is lower than `start transaction with causal consistency only`\n",
"\tif s.txn.... | // 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/flag_simplify_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017726175428833812,
0.0001703081652522087,
0.00016282378055620939,
0.0001719819993013516,
0.000005398880148277385
] |
{
"id": 0,
"code_window": [
"\ts.txn.SetOption(tikvstore.EnableAsyncCommit, s.GetSessionVars().EnableAsyncCommit)\n",
"\ts.txn.SetOption(tikvstore.Enable1PC, s.GetSessionVars().Enable1PC)\n",
"\t// priority of the sysvar is lower than `start transaction with causal consistency only`\n",
"\tif s.txn.... | // 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/tests/prewrite_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0018848096951842308,
0.0007151690078899264,
0.0001706697221379727,
0.00028926675440743566,
0.0006540819304063916
] |
{
"id": 1,
"code_window": [
"\t\ttxn.SetEnableAsyncCommit(val.(bool))\n",
"\tcase tikvstore.Enable1PC:\n",
"\t\ttxn.SetEnable1PC(val.(bool))\n",
"\tcase tikvstore.TxnScope:\n",
"\t\ttxn.SetScope(val.(string))\n",
"\tcase tikvstore.IsStalenessReadOnly:\n",
"\t\ttxn.KVTxn.GetSnapshot().Set... | // 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/2pc.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.010382532142102718,
0.00044745136983692646,
0.00015928478387650102,
0.0001703912712400779,
0.0012507502688094974
] |
{
"id": 1,
"code_window": [
"\t\ttxn.SetEnableAsyncCommit(val.(bool))\n",
"\tcase tikvstore.Enable1PC:\n",
"\t\ttxn.SetEnable1PC(val.(bool))\n",
"\tcase tikvstore.TxnScope:\n",
"\t\ttxn.SetScope(val.(string))\n",
"\tcase tikvstore.IsStalenessReadOnly:\n",
"\t\ttxn.KVTxn.GetSnapshot().Set... | // 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... | metrics/distsql.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017803467926569283,
0.00017335405573248863,
0.0001697998377494514,
0.00017339065379928797,
0.0000030009500733285677
] |
{
"id": 1,
"code_window": [
"\t\ttxn.SetEnableAsyncCommit(val.(bool))\n",
"\tcase tikvstore.Enable1PC:\n",
"\t\ttxn.SetEnable1PC(val.(bool))\n",
"\tcase tikvstore.TxnScope:\n",
"\t\ttxn.SetScope(val.(string))\n",
"\tcase tikvstore.IsStalenessReadOnly:\n",
"\t\ttxn.KVTxn.GetSnapshot().Set... | // 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... | ddl/partition_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017906090943142772,
0.00017319137987215072,
0.0001644380099605769,
0.00017349647532682866,
0.0000035210389341955306
] |
{
"id": 1,
"code_window": [
"\t\ttxn.SetEnableAsyncCommit(val.(bool))\n",
"\tcase tikvstore.Enable1PC:\n",
"\t\ttxn.SetEnable1PC(val.(bool))\n",
"\tcase tikvstore.TxnScope:\n",
"\t\ttxn.SetScope(val.(string))\n",
"\tcase tikvstore.IsStalenessReadOnly:\n",
"\t\ttxn.KVTxn.GetSnapshot().Set... | // 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... | util/sem/sem_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00030291450093500316,
0.00018843816360458732,
0.00016510557907167822,
0.00017481963732279837,
0.0000434783760283608
] |
{
"id": 2,
"code_window": [
"\t}\n",
"}\n",
"\n",
"func (txn *tikvTxn) GetOption(opt int) interface{} {\n",
"\tswitch opt {\n",
"\tcase tikvstore.TxnScope:\n",
"\t\treturn txn.KVTxn.GetScope()\n",
"\tdefault:\n",
"\t\treturn txn.KVTxn.GetOption(opt)\n"
],
"labels": [
"kee... | // 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/tests/async_commit_test.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.9984310269355774,
0.19682219624519348,
0.00016755492833908647,
0.001384414848871529,
0.358079731464386
] |
{
"id": 2,
"code_window": [
"\t}\n",
"}\n",
"\n",
"func (txn *tikvTxn) GetOption(opt int) interface{} {\n",
"\tswitch opt {\n",
"\tcase tikvstore.TxnScope:\n",
"\t\treturn txn.KVTxn.GetScope()\n",
"\tdefault:\n",
"\t\treturn txn.KVTxn.GetOption(opt)\n"
],
"labels": [
"kee... | // 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/implementation/sort.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0011422841344028711,
0.0004860006447415799,
0.00016833640984259546,
0.00021469152125064284,
0.00038316816790029407
] |
{
"id": 2,
"code_window": [
"\t}\n",
"}\n",
"\n",
"func (txn *tikvTxn) GetOption(opt int) interface{} {\n",
"\tswitch opt {\n",
"\tcase tikvstore.TxnScope:\n",
"\t\treturn txn.KVTxn.GetScope()\n",
"\tdefault:\n",
"\t\treturn txn.KVTxn.GetOption(opt)\n"
],
"labels": [
"kee... | // 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/inspection_result.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.2692027688026428,
0.003419159445911646,
0.0001649559271754697,
0.000207298799068667,
0.02423463948071003
] |
{
"id": 2,
"code_window": [
"\t}\n",
"}\n",
"\n",
"func (txn *tikvTxn) GetOption(opt int) interface{} {\n",
"\tswitch opt {\n",
"\tcase tikvstore.TxnScope:\n",
"\t\treturn txn.KVTxn.GetScope()\n",
"\tdefault:\n",
"\t\treturn txn.KVTxn.GetOption(opt)\n"
],
"labels": [
"kee... | // 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/typeinfer_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0009992802515625954,
0.0001832127891248092,
0.0001647954195505008,
0.00016897049499675632,
0.00007356721471296623
] |
{
"id": 3,
"code_window": [
"}\n",
"\n",
"func (c *twoPhaseCommitter) needLinearizability() bool {\n",
"\tGuaranteeLinearizabilityOption := c.txn.us.GetOption(kv.GuaranteeLinearizability)\n",
"\t// by default, guarantee\n",
"\treturn GuaranteeLinearizabilityOption == nil || GuaranteeLineariz... | // 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/txn.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.9984217882156372,
0.04015001654624939,
0.00016236535157077014,
0.000320158782415092,
0.19255274534225464
] |
{
"id": 3,
"code_window": [
"}\n",
"\n",
"func (c *twoPhaseCommitter) needLinearizability() bool {\n",
"\tGuaranteeLinearizabilityOption := c.txn.us.GetOption(kv.GuaranteeLinearizability)\n",
"\t// by default, guarantee\n",
"\treturn GuaranteeLinearizabilityOption == nil || GuaranteeLineariz... | // 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/chunk/mutrow.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.001064728363417089,
0.00021941811428405344,
0.00016724287706892937,
0.00017339180340059102,
0.00014934258069843054
] |
{
"id": 3,
"code_window": [
"}\n",
"\n",
"func (c *twoPhaseCommitter) needLinearizability() bool {\n",
"\tGuaranteeLinearizabilityOption := c.txn.us.GetOption(kv.GuaranteeLinearizability)\n",
"\t// by default, guarantee\n",
"\treturn GuaranteeLinearizabilityOption == nil || GuaranteeLineariz... | # Heap Profile Recorder
- Author(s): [Yisaer](https://github.com/Yisaer) (Song Gao)
- Last updated: 2020-05-11
- Discussion at: https://github.com/pingcap/tidb/pull/16777
## Abstract
"Heap Profiler Recorder" profile the flat heap usage periodically in an extra goroutine to record the global `SimpleLRUCache` mem... | docs/design/2020-05-11-heap-profile-record.md | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0015114558627828956,
0.0003409252385608852,
0.0001661808491917327,
0.0001728850620565936,
0.00044246413744986057
] |
{
"id": 3,
"code_window": [
"}\n",
"\n",
"func (c *twoPhaseCommitter) needLinearizability() bool {\n",
"\tGuaranteeLinearizabilityOption := c.txn.us.GetOption(kv.GuaranteeLinearizability)\n",
"\t// by default, guarantee\n",
"\treturn GuaranteeLinearizabilityOption == nil || GuaranteeLineariz... | // 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... | types/compare.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0015114558627828956,
0.00026887052808888257,
0.00016673145000822842,
0.00017121332348324358,
0.0003447018680162728
] |
{
"id": 4,
"code_window": [
"\t\"github.com/pingcap/errors\"\n",
"\t\"github.com/pingcap/kvproto/pkg/kvrpcpb\"\n",
"\t\"github.com/pingcap/tidb/store/mockstore/unistore\"\n",
"\t\"github.com/pingcap/tidb/store/tikv\"\n",
"\ttikverr \"github.com/pingcap/tidb/store/tikv/error\"\n",
"\t\"github... | // 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/tests/async_commit_test.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.4216547906398773,
0.009789135307073593,
0.00016181851970031857,
0.0001707045448711142,
0.056304652243852615
] |
{
"id": 4,
"code_window": [
"\t\"github.com/pingcap/errors\"\n",
"\t\"github.com/pingcap/kvproto/pkg/kvrpcpb\"\n",
"\t\"github.com/pingcap/tidb/store/mockstore/unistore\"\n",
"\t\"github.com/pingcap/tidb/store/tikv\"\n",
"\ttikverr \"github.com/pingcap/tidb/store/tikv/error\"\n",
"\t\"github... | ## Maintainers
- [dongxu](https://github.com/c4pt0r)
- [Ewan Chou](https://github.com/coocood)
- [goroutine](https://github.com/ngaut)
- [qiuyesuifeng](https://github.com/qiuyesuifeng)
- [Shen Li](https://github.com/shenli)
- [siddontang](https://github.com/siddontang)
| docs/MAINTAINERS.md | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017360008496325463,
0.00017360008496325463,
0.00017360008496325463,
0.00017360008496325463,
0
] |
{
"id": 4,
"code_window": [
"\t\"github.com/pingcap/errors\"\n",
"\t\"github.com/pingcap/kvproto/pkg/kvrpcpb\"\n",
"\t\"github.com/pingcap/tidb/store/mockstore/unistore\"\n",
"\t\"github.com/pingcap/tidb/store/tikv\"\n",
"\ttikverr \"github.com/pingcap/tidb/store/tikv/error\"\n",
"\t\"github... | // 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/mockstore/mocktikv/pd.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.006922960747033358,
0.0006658604834228754,
0.00016345347103197128,
0.00020579362171702087,
0.0014774168375879526
] |
{
"id": 4,
"code_window": [
"\t\"github.com/pingcap/errors\"\n",
"\t\"github.com/pingcap/kvproto/pkg/kvrpcpb\"\n",
"\t\"github.com/pingcap/tidb/store/mockstore/unistore\"\n",
"\t\"github.com/pingcap/tidb/store/tikv\"\n",
"\ttikverr \"github.com/pingcap/tidb/store/tikv/error\"\n",
"\t\"github... | // 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... | util/arena/arena_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0001718520070426166,
0.00016892615531105548,
0.0001658278633840382,
0.00016813796537462622,
0.0000016871736079338007
] |
{
"id": 5,
"code_window": [
"\tc.Assert(errors.Cause(err), Equals, tikverr.ErrNotExist)\n",
"}\n",
"\n",
"func (s *testAsyncCommitCommon) beginAsyncCommitWithLinearizability(c *C) tikv.TxnProbe {\n",
"\ttxn := s.beginAsyncCommit(c)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, true)\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/txn.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.03319559618830681,
0.00224282150156796,
0.000163796721608378,
0.0008251490071415901,
0.004644479602575302
] |
{
"id": 5,
"code_window": [
"\tc.Assert(errors.Cause(err), Equals, tikverr.ErrNotExist)\n",
"}\n",
"\n",
"func (s *testAsyncCommitCommon) beginAsyncCommitWithLinearizability(c *C) tikv.TxnProbe {\n",
"\ttxn := s.beginAsyncCommit(c)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, true)\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... | util/chunk/chunk.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0005334965535439551,
0.0001928324782056734,
0.0001602148695383221,
0.00017055973876267672,
0.0000602302243351005
] |
{
"id": 5,
"code_window": [
"\tc.Assert(errors.Cause(err), Equals, tikverr.ErrNotExist)\n",
"}\n",
"\n",
"func (s *testAsyncCommitCommon) beginAsyncCommitWithLinearizability(c *C) tikv.TxnProbe {\n",
"\ttxn := s.beginAsyncCommit(c)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, true)\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/driver/txn/scanner.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0020915460772812366,
0.0008753899019211531,
0.00017396760813426226,
0.0006180229247547686,
0.0007890076376497746
] |
{
"id": 5,
"code_window": [
"\tc.Assert(errors.Cause(err), Equals, tikverr.ErrNotExist)\n",
"}\n",
"\n",
"func (s *testAsyncCommitCommon) beginAsyncCommitWithLinearizability(c *C) tikv.TxnProbe {\n",
"\ttxn := s.beginAsyncCommit(c)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, true)\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... | executor/prepared.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0021758561488240957,
0.0002497019886504859,
0.00016154903278220445,
0.00017184905300382525,
0.00033838438685052097
] |
{
"id": 6,
"code_window": [
"\tc.Assert(err, IsNil)\n",
"\ttxn.SetEnableAsyncCommit(false)\n",
"\ttxn.SetEnable1PC(false)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, false)\n",
"\n",
"\t// Prewrite the lock without committing it\n",
"\tc.Assert(failpoint.Enable(\"github.com/pingcap... | // 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/tests/async_commit_test.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.9958561062812805,
0.07376092672348022,
0.00016128875722642988,
0.0017952669877558947,
0.24831753969192505
] |
{
"id": 6,
"code_window": [
"\tc.Assert(err, IsNil)\n",
"\ttxn.SetEnableAsyncCommit(false)\n",
"\ttxn.SetEnable1PC(false)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, false)\n",
"\n",
"\t// Prewrite the lock without committing it\n",
"\tc.Assert(failpoint.Enable(\"github.com/pingcap... | // 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... | meta/autoid/errors.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017587716865818948,
0.00016959030472207814,
0.0001641560229472816,
0.00016922717622946948,
0.0000035420273434283445
] |
{
"id": 6,
"code_window": [
"\tc.Assert(err, IsNil)\n",
"\ttxn.SetEnableAsyncCommit(false)\n",
"\ttxn.SetEnable1PC(false)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, false)\n",
"\n",
"\t// Prewrite the lock without committing it\n",
"\tc.Assert(failpoint.Enable(\"github.com/pingcap... | // 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... | executor/inspection_common.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.000332129915477708,
0.00018953060498461127,
0.00015999519382603467,
0.00016903915093280375,
0.00005407467688200995
] |
{
"id": 6,
"code_window": [
"\tc.Assert(err, IsNil)\n",
"\ttxn.SetEnableAsyncCommit(false)\n",
"\ttxn.SetEnable1PC(false)\n",
"\ttxn.SetOption(kv.GuaranteeLinearizability, false)\n",
"\n",
"\t// Prewrite the lock without committing it\n",
"\tc.Assert(failpoint.Enable(\"github.com/pingcap... | // 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/pd_codec.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0023175848182290792,
0.00033296996844001114,
0.00016126017726492137,
0.00016843578487168998,
0.0005729246768169105
] |
{
"id": 7,
"code_window": [
"\tpriority Priority\n",
"\tisPessimistic bool\n",
"\tenableAsyncCommit bool\n",
"\tenable1PC bool\n",
"\tscope string\n",
"\tkvFilter KVFilter\n",
"}\n"
],
"labels": [
"keep",
"keep",
"keep",
... | // 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/driver/txn/txn_driver.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.02992088906466961,
0.0018972638063132763,
0.00016502170183230191,
0.0002483304706402123,
0.005938828457146883
] |
{
"id": 7,
"code_window": [
"\tpriority Priority\n",
"\tisPessimistic bool\n",
"\tenableAsyncCommit bool\n",
"\tenable1PC bool\n",
"\tscope string\n",
"\tkvFilter KVFilter\n",
"}\n"
],
"labels": [
"keep",
"keep",
"keep",
... | lease = "0"
mem-quota-query = 34359738368
nested-loop-join-cache-capacity = 20971520
host = "127.0.0.1"
[status]
status-host = "127.0.0.1"
[performance]
stats-lease = "0"
[experimental]
allow-expression-index = true
| cmd/explaintest/config.toml | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017656288400758058,
0.00017283446504734457,
0.00016910604608710855,
0.00017283446504734457,
0.000003728418960236013
] |
{
"id": 7,
"code_window": [
"\tpriority Priority\n",
"\tisPessimistic bool\n",
"\tenableAsyncCommit bool\n",
"\tenable1PC bool\n",
"\tscope string\n",
"\tkvFilter KVFilter\n",
"}\n"
],
"labels": [
"keep",
"keep",
"keep",
... | // 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... | util/profile/flamegraph.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00025226586149074137,
0.000178916088771075,
0.00016765449254307896,
0.00017433593166060746,
0.000017779620975488797
] |
{
"id": 7,
"code_window": [
"\tpriority Priority\n",
"\tisPessimistic bool\n",
"\tenableAsyncCommit bool\n",
"\tenable1PC bool\n",
"\tscope string\n",
"\tkvFilter KVFilter\n",
"}\n"
],
"labels": [
"keep",
"keep",
"keep",
... | // 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... | types/etc_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017874260083772242,
0.0001733948156470433,
0.0001656289241509512,
0.0001740069274092093,
0.0000032993320928653702
] |
{
"id": 8,
"code_window": [
"// SetEnable1PC indicates if the transaction will try to use 1 phase commit.\n",
"func (txn *KVTxn) SetEnable1PC(b bool) {\n",
"\ttxn.enable1PC = b\n",
"}\n",
"\n",
"// SetScope sets the geographical scope of the transaction.\n",
"func (txn *KVTxn) SetScope(s... | // 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/tests/async_commit_test.go | 1 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.9938148260116577,
0.0371333509683609,
0.00016290968051180243,
0.000176332556293346,
0.1619819700717926
] |
{
"id": 8,
"code_window": [
"// SetEnable1PC indicates if the transaction will try to use 1 phase commit.\n",
"func (txn *KVTxn) SetEnable1PC(b bool) {\n",
"\ttxn.enable1PC = b\n",
"}\n",
"\n",
"// SetScope sets the geographical scope of the transaction.\n",
"func (txn *KVTxn) SetScope(s... | // 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/tests/async_commit_fail_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.01267069298774004,
0.0013121264055371284,
0.00016692648932803422,
0.00022509775590151548,
0.0030078210402280092
] |
{
"id": 8,
"code_window": [
"// SetEnable1PC indicates if the transaction will try to use 1 phase commit.\n",
"func (txn *KVTxn) SetEnable1PC(b bool) {\n",
"\ttxn.enable1PC = b\n",
"}\n",
"\n",
"// SetScope sets the geographical scope of the transaction.\n",
"func (txn *KVTxn) SetScope(s... | // 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/handle/dump_test.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.00017982229474000633,
0.0001742609601933509,
0.00016359880100935698,
0.0001747573260217905,
0.0000043155364437552635
] |
{
"id": 8,
"code_window": [
"// SetEnable1PC indicates if the transaction will try to use 1 phase commit.\n",
"func (txn *KVTxn) SetEnable1PC(b bool) {\n",
"\ttxn.enable1PC = b\n",
"}\n",
"\n",
"// SetScope sets the geographical scope of the transaction.\n",
"func (txn *KVTxn) SetScope(s... | // 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... | util/collate/general_ci.go | 0 | https://github.com/pingcap/tidb/commit/cc83cc524f8d3fd661f6e62d129ba043cc74501e | [
0.0004541362286545336,
0.00018358857778366655,
0.0001650772464927286,
0.00016879310715012252,
0.000055629268899792805
] |
{
"id": 0,
"code_window": [
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\t// Find all non-empty buckets and get a fresh slice of their entries.\n",
"\tvar buckets [][]*Node\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tif len(b.entries) > 0 {\n",
"\t\t\tbuckets =... | // Copyright 2015 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | p2p/discover/table.go | 1 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.9990425705909729,
0.42987295985221863,
0.0001665018789935857,
0.02118196338415146,
0.47639408707618713
] |
{
"id": 0,
"code_window": [
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\t// Find all non-empty buckets and get a fresh slice of their entries.\n",
"\tvar buckets [][]*Node\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tif len(b.entries) > 0 {\n",
"\t\t\tbuckets =... | // mkerrors.sh -m64
// Code generated by the command above; see README.md. DO NOT EDIT.
// +build arm64,darwin
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs -- -m64 _const.go
package unix
import "syscall"
const (
AF_APPLETALK = 0x10
AF_CCITT = 0xa
AF_CHAOS ... | vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go | 0 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.0008371007279492915,
0.00019682869606185704,
0.0001615872315596789,
0.00017132026550825685,
0.00007116919732652605
] |
{
"id": 0,
"code_window": [
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\t// Find all non-empty buckets and get a fresh slice of their entries.\n",
"\tvar buckets [][]*Node\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tif len(b.entries) > 0 {\n",
"\t\t\tbuckets =... | package bn256
import (
"math/big"
)
// twistPoint implements the elliptic curve y²=x³+3/ξ over GF(p²). Points are
// kept in Jacobian form and t=z² when valid. The group G₂ is the set of
// n-torsion points of this curve over GF(p²) (where n = Order)
type twistPoint struct {
x, y, z, t gfP2
}
var twistB = &gfP2{
... | crypto/bn256/cloudflare/twist.go | 0 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.6883249878883362,
0.060482803732156754,
0.00016769542708061635,
0.00017434258188586682,
0.18664175271987915
] |
{
"id": 0,
"code_window": [
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\t// Find all non-empty buckets and get a fresh slice of their entries.\n",
"\tvar buckets [][]*Node\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tif len(b.entries) > 0 {\n",
"\t\t\tbuckets =... | package natpmp
import "time"
type callObserver interface {
observeCall(msg []byte, result []byte, err error)
}
// A caller that records the RPC call.
type recorder struct {
child caller
observer callObserver
}
func (n *recorder) call(msg []byte, timeout time.Duration) (result []byte, err error) {
result, err... | vendor/github.com/jackpal/go-nat-pmp/recorder.go | 0 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.00017098052194342017,
0.00016979509382508695,
0.0001686096511548385,
0.00016979509382508695,
0.0000011854353942908347
] |
{
"id": 1,
"code_window": [
"func (tab *Table) copyLiveNodes() {\n",
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\tnow := time.Now()\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tfor _, n := range b.entries {\n",
"\t\t\tif now.Sub(n.addedAt) >= seedMinTableTime {... | // Copyright 2014 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License... | trie/node.go | 1 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.9721493721008301,
0.0881885290145874,
0.0001616897206986323,
0.0003018675197381526,
0.24628527462482452
] |
{
"id": 1,
"code_window": [
"func (tab *Table) copyLiveNodes() {\n",
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\tnow := time.Now()\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tfor _, n := range b.entries {\n",
"\t\t\tif now.Sub(n.addedAt) >= seedMinTableTime {... | /**********************************************************************
* Copyright (c) 2013, 2014 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... | crypto/secp256k1/libsecp256k1/src/field_5x52_impl.h | 0 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.9660096764564514,
0.023400062695145607,
0.00016232587222475559,
0.00017459328228142112,
0.1410249024629593
] |
{
"id": 1,
"code_window": [
"func (tab *Table) copyLiveNodes() {\n",
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\tnow := time.Now()\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tfor _, n := range b.entries {\n",
"\t\t\tif now.Sub(n.addedAt) >= seedMinTableTime {... | // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package websocket
import (
"bufio"
"io"
"net"
"net/http"
"net/url"
)
// DialError is an error that occurs while dialling a websocket server.
type DialErr... | vendor/golang.org/x/net/websocket/client.go | 0 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.0005083224386908114,
0.00023606188187841326,
0.00016475064330734313,
0.00017412012675777078,
0.00011232728866161779
] |
{
"id": 1,
"code_window": [
"func (tab *Table) copyLiveNodes() {\n",
"\ttab.mutex.Lock()\n",
"\tdefer tab.mutex.Unlock()\n",
"\n",
"\tnow := time.Now()\n",
"\tfor _, b := range tab.buckets {\n",
"\t\tfor _, n := range b.entries {\n",
"\t\t\tif now.Sub(n.addedAt) >= seedMinTableTime {... | // Copyright 2011 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package uuid
import (
"crypto/md5"
"crypto/sha1"
"hash"
)
// Well known Name Space IDs and UUIDs
var (
NameSpace_DNS = Parse("6ba7b810-9dad-11d1-80b4-00c04f... | vendor/github.com/pborman/uuid/hash.go | 0 | https://github.com/ethereum/go-ethereum/commit/cf05ef9106779da0df62c0c03312fc489171aaa5 | [
0.0001792182301869616,
0.0001709634525468573,
0.00016251821944024414,
0.0001719168940326199,
0.000005260538728180109
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.